bunch of nixos updates
This commit is contained in:
@@ -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 },
|
||||
};
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user