@tpsdev-ai/cli 0.3.3 → 0.4.0
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/bin/tps.ts +26 -0
- package/package.json +8 -7
package/bin/tps.ts
CHANGED
|
@@ -18,6 +18,7 @@ const cli = meow(
|
|
|
18
18
|
heartbeat <agent-id> [--nonono] Send a heartbeat/ping for an agent
|
|
19
19
|
context <action> Workstream context memory (read/update/list)
|
|
20
20
|
mail <action> Mailroom operations (send/check/list/search)
|
|
21
|
+
agent run Run tps-agent one-shot run (from config)
|
|
21
22
|
identity <action> Key management (init/show/register/list/revoke/verify)
|
|
22
23
|
secrets <action> Secret management (set/list/remove)
|
|
23
24
|
git <action> Git utilities (worktree)
|
|
@@ -200,6 +201,31 @@ async function main() {
|
|
|
200
201
|
break;
|
|
201
202
|
}
|
|
202
203
|
|
|
204
|
+
case "agent": {
|
|
205
|
+
if (rest[0] !== "run") {
|
|
206
|
+
console.error("Usage: tps agent run --config <path> --message <text>");
|
|
207
|
+
process.exit(1);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const cfgIdx = process.argv.indexOf("--config");
|
|
211
|
+
const msgIdx = process.argv.indexOf("--message");
|
|
212
|
+
if (cfgIdx < 0 || msgIdx < 0) {
|
|
213
|
+
console.error("Usage: tps agent run --config <path> --message <text>");
|
|
214
|
+
process.exit(1);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const configPath = process.argv[cfgIdx + 1];
|
|
218
|
+
const message = process.argv.slice(msgIdx + 1).join(" ");
|
|
219
|
+
if (!configPath || !message) {
|
|
220
|
+
console.error("Usage: tps agent run --config <path> --message <text>");
|
|
221
|
+
process.exit(1);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const { runAgent } = await import("../src/commands/agent.js");
|
|
225
|
+
await runAgent({ action: "run", config: configPath, message });
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
|
|
203
229
|
case "office": {
|
|
204
230
|
const action = rest[0] as "start" | "stop" | "list" | "status" | "relay" | "exec" | "join" | "revoke" | "sync" | "connect" | "kill" | "setup" | undefined;
|
|
205
231
|
const validActions = ["start", "stop", "list", "status", "relay", "exec", "join", "revoke", "sync", "connect", "kill", "setup"];
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tpsdev-ai/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TPS Report CLI
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "TPS Report CLI \u2014 because every agent needs the proper paperwork.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"tps": "./bin/tps.cjs"
|
|
8
8
|
},
|
|
9
9
|
"optionalDependencies": {
|
|
10
|
-
"@tpsdev-ai/cli-darwin-arm64": "0.
|
|
11
|
-
"@tpsdev-ai/cli-darwin-x64": "0.
|
|
12
|
-
"@tpsdev-ai/cli-linux-arm64": "0.
|
|
13
|
-
"@tpsdev-ai/cli-linux-x64": "0.
|
|
10
|
+
"@tpsdev-ai/cli-darwin-arm64": "0.4.0",
|
|
11
|
+
"@tpsdev-ai/cli-darwin-x64": "0.4.0",
|
|
12
|
+
"@tpsdev-ai/cli-linux-arm64": "0.4.0",
|
|
13
|
+
"@tpsdev-ai/cli-linux-x64": "0.4.0"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsc",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"noise-handshake": "^4.2.0",
|
|
49
49
|
"react": "^18.3.1",
|
|
50
50
|
"ws": "^8.19.0",
|
|
51
|
-
"zod": "^3.24.0"
|
|
51
|
+
"zod": "^3.24.0",
|
|
52
|
+
"@tpsdev-ai/agent": "workspace:*"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@biomejs/biome": "^2.4.4",
|