@tpsdev-ai/cli 0.3.4 → 0.4.1

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.
Files changed (2) hide show
  1. package/bin/tps.ts +26 -0
  2. 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.3.4",
4
- "description": "TPS Report CLI because every agent needs the proper paperwork.",
3
+ "version": "0.4.1",
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.3.2",
11
- "@tpsdev-ai/cli-darwin-x64": "0.3.2",
12
- "@tpsdev-ai/cli-linux-arm64": "0.3.2",
13
- "@tpsdev-ai/cli-linux-x64": "0.3.2"
10
+ "@tpsdev-ai/cli-darwin-arm64": "0.4.1",
11
+ "@tpsdev-ai/cli-darwin-x64": "0.4.1",
12
+ "@tpsdev-ai/cli-linux-arm64": "0.4.1",
13
+ "@tpsdev-ai/cli-linux-x64": "0.4.1"
14
14
  },
15
15
  "scripts": {
16
16
  "build": "tsc",
@@ -56,7 +56,8 @@
56
56
  "@types/node": "^22.0.0",
57
57
  "@types/react": "^18.3.0",
58
58
  "fast-check": "^4.5.3",
59
- "typescript": "^5.7.0"
59
+ "typescript": "^5.7.0",
60
+ "@tpsdev-ai/agent": "workspace:*"
60
61
  },
61
62
  "files": [
62
63
  "bin",