bunch of nixos updates

This commit is contained in:
2026-03-09 02:50:31 +00:00
parent 961676025b
commit 396882d364
16 changed files with 715 additions and 36 deletions
-20
View File
@@ -1,5 +1,4 @@
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
import { Type } from "@sinclair/typebox";
import fs from "node:fs";
import path from "node:path";
import os from "node:os";
@@ -47,23 +46,4 @@ export default function (pi: ExtensionAPI) {
},
});
pi.registerTool({
name: "shot_path",
label: "Latest screenshot path",
description: "Get the latest screenshot path for this machine",
parameters: Type.Object({}),
async execute() {
const result = getLatestScreenshotPath();
if (result.error) {
return {
content: [{ type: "text", text: result.error }],
details: { error: result.error },
};
}
return {
content: [{ type: "text", text: result.path! }],
details: { path: result.path },
};
},
});
}