@agent-compose/cli 0.1.0 → 0.1.2
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/README.md +2 -4
- package/dist/index.js +5 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -14,9 +14,7 @@ npm install -g @agent-compose/cli
|
|
|
14
14
|
agentc init # install Claude Code skills (~/.claude/skills/)
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Requires Node ≥ 20.
|
|
18
|
-
attestations](https://docs.npmjs.com/generating-provenance-statements) —
|
|
19
|
-
verify with `npm view @agent-compose/cli`.
|
|
17
|
+
Requires Node ≥ 20. Published via [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers) — every release is OIDC-authenticated by GitHub Actions; no long-lived publish tokens involved.
|
|
20
18
|
|
|
21
19
|
From a clone of this repo (contributor / dev install):
|
|
22
20
|
|
|
@@ -127,7 +125,7 @@ Claude Code session running inside this repo:
|
|
|
127
125
|
|
|
128
126
|
| Variable | Description | Default |
|
|
129
127
|
|---|---|---|
|
|
130
|
-
| `AGENT_COMPOSE_URL` | Server base URL | `https://
|
|
128
|
+
| `AGENT_COMPOSE_URL` | Server base URL | `https://api.agentcompose.ai` |
|
|
131
129
|
| `AGENT_COMPOSE_API_KEY` | Bearer key for everyday calls | — |
|
|
132
130
|
| `AGENT_COMPOSE_ADMIN_KEY` | Admin-scoped `ac_…` key for `keys create` / `keys list` | — |
|
|
133
131
|
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,8 @@ import { createRequire } from "node:module";
|
|
|
3
3
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
// src/index.ts
|
|
6
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
7
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
6
8
|
import { program } from "commander";
|
|
7
9
|
|
|
8
10
|
// src/commands/register.ts
|
|
@@ -143,7 +145,7 @@ var _envFactory = _activeEnv ? _local.factories?.[_activeEnv] : undefined;
|
|
|
143
145
|
function fallbackDashboardUrl(env) {
|
|
144
146
|
return env === "local" ? "http://localhost:3000" : "https://platform.agentcompose.ai";
|
|
145
147
|
}
|
|
146
|
-
var defaultUrl = process.env.AGENT_COMPOSE_URL ?? _envUrl ?? _global.url ?? "https://
|
|
148
|
+
var defaultUrl = process.env.AGENT_COMPOSE_URL ?? _envUrl ?? _global.url ?? "https://api.agentcompose.ai";
|
|
147
149
|
var defaultDashboardUrl = process.env.AGENT_COMPOSE_DASHBOARD_URL ?? _envDashboardUrl ?? _global.dashboardUrl ?? fallbackDashboardUrl(_activeEnv);
|
|
148
150
|
var defaultApiKey = process.env.AGENT_COMPOSE_API_KEY ?? _envKey ?? _global.apiKey ?? "";
|
|
149
151
|
var defaultFactory = process.env.AGENT_COMPOSE_FACTORY ?? _envFactory ?? "default";
|
|
@@ -963,7 +965,8 @@ var cancelCommand = new Command12("cancel").description("Cancel an in-progress r
|
|
|
963
965
|
});
|
|
964
966
|
|
|
965
967
|
// src/index.ts
|
|
966
|
-
|
|
968
|
+
var pkg = JSON.parse(readFileSync3(fileURLToPath2(new URL("../package.json", import.meta.url)), "utf8"));
|
|
969
|
+
program.name("agentc").description("CLI for agent-compose — register, invoke, and monitor workflows").version(pkg.version);
|
|
967
970
|
program.addCommand(registerCommand);
|
|
968
971
|
program.addCommand(invokeCommand);
|
|
969
972
|
program.addCommand(listCommand);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-compose/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Command-line interface for agent-compose — register, invoke, and monitor workflows from your terminal.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"type": "module",
|
|
25
25
|
"bin": {
|
|
26
|
-
"agentc": "
|
|
26
|
+
"agentc": "dist/index.js"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"dist",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"prepublishOnly": "bun run build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@agent-compose/sdk": "^0.
|
|
47
|
+
"@agent-compose/sdk": "^0.2.0",
|
|
48
48
|
"commander": "^12.0.0",
|
|
49
49
|
"picocolors": "^1.1.1"
|
|
50
50
|
},
|