agentroam 0.2.0-preview.75 → 0.2.0-preview.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -0
- package/dist/todo-mcp-command.js +27 -0
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -29,6 +29,10 @@ import { runDesktopCommand } from "./desktop-authorization.js";
|
|
|
29
29
|
import { withCliProgress } from "../bin/cli-progress.mjs";
|
|
30
30
|
const VERSION = AGENTROAM_VERSION;
|
|
31
31
|
export async function main(argv) {
|
|
32
|
+
if (argv[0] === "mcp" && argv[1] === "todo") {
|
|
33
|
+
const { runTodoMcpCommand } = await import("./todo-mcp-command.js");
|
|
34
|
+
return runTodoMcpCommand(argv.slice(2));
|
|
35
|
+
}
|
|
32
36
|
if (argv.includes("--help") || argv.includes("-h")) {
|
|
33
37
|
console.log(`AgentRoam
|
|
34
38
|
agentroam [start] [--local-only] [--test-no-pairing] [--data-dir PATH]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { pathToFileURL, fileURLToPath } from "node:url";
|
|
3
|
+
import { existsSync } from "node:fs";
|
|
4
|
+
import { detectPlatform } from "./platform.js";
|
|
5
|
+
import { resolvePlatformRuntime } from "./platform-packages.js";
|
|
6
|
+
export async function runTodoMcpCommand(argv) {
|
|
7
|
+
const at = argv.indexOf("--service"), serviceId = at >= 0 ? argv[at + 1] : undefined;
|
|
8
|
+
if (!serviceId || serviceId.startsWith("-"))
|
|
9
|
+
throw new Error("Usage: agentroam mcp todo --service <serviceId>");
|
|
10
|
+
let entry;
|
|
11
|
+
const sibling = fileURLToPath(new URL("../../native-runtime/dist/index.js", import.meta.url));
|
|
12
|
+
if (existsSync(sibling))
|
|
13
|
+
entry = sibling;
|
|
14
|
+
else {
|
|
15
|
+
try {
|
|
16
|
+
entry = createRequire(import.meta.url).resolve("@agent/native-runtime");
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
const { runtimeRoot } = resolvePlatformRuntime(detectPlatform());
|
|
20
|
+
entry = createRequire(`${runtimeRoot}/package.json`).resolve("@agent/native-runtime");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const runtime = await import(pathToFileURL(entry).href);
|
|
24
|
+
if (typeof runtime.runTodoMcpStdio !== "function")
|
|
25
|
+
throw new Error("Installed runtime lacks Todo MCP support; update the runtime");
|
|
26
|
+
await runtime.runTodoMcpStdio({ serviceId });
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentroam",
|
|
3
|
-
"version": "0.2.0-preview.
|
|
3
|
+
"version": "0.2.0-preview.77",
|
|
4
4
|
"description": "Zero-install mobile remote terminal and file console",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"ws": "^8.21.3"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"agentroam-runtime-darwin-arm64": "0.2.0-preview.
|
|
31
|
-
"agentroam-runtime-win32-x64": "0.2.0-preview.
|
|
32
|
-
"agentroam-cloudflared-darwin-arm64": "0.2.0-preview.
|
|
33
|
-
"agentroam-cloudflared-win32-x64": "0.2.0-preview.
|
|
34
|
-
"agentroam-tui-darwin-arm64": "0.2.0-preview.
|
|
35
|
-
"@caoqu/agentroam-tui-win32-x64": "0.2.0-preview.
|
|
30
|
+
"agentroam-runtime-darwin-arm64": "0.2.0-preview.77",
|
|
31
|
+
"agentroam-runtime-win32-x64": "0.2.0-preview.77",
|
|
32
|
+
"agentroam-cloudflared-darwin-arm64": "0.2.0-preview.76",
|
|
33
|
+
"agentroam-cloudflared-win32-x64": "0.2.0-preview.76",
|
|
34
|
+
"agentroam-tui-darwin-arm64": "0.2.0-preview.77",
|
|
35
|
+
"@caoqu/agentroam-tui-win32-x64": "0.2.0-preview.77"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.0.0",
|