@agent-compose/cli 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Layr Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,141 @@
1
+ # agentc
2
+
3
+ CLI for agent-compose — register workflows, dispatch runs, manage secrets,
4
+ and stream live execution logs.
5
+
6
+ ---
7
+
8
+ ## Install
9
+
10
+ From npm (recommended):
11
+
12
+ ```bash
13
+ npm install -g @agent-compose/cli
14
+ agentc init # install Claude Code skills (~/.claude/skills/)
15
+ ```
16
+
17
+ Requires Node ≥ 20. The package is published with [npm provenance
18
+ attestations](https://docs.npmjs.com/generating-provenance-statements) —
19
+ verify with `npm view @agent-compose/cli`.
20
+
21
+ From a clone of this repo (contributor / dev install):
22
+
23
+ ```bash
24
+ # Make sure ~/.bun/bin is on PATH (add to ~/.zshrc / ~/.bashrc)
25
+ export PATH="$HOME/.bun/bin:$PATH"
26
+
27
+ cd cli && bun link # makes `agentc` available globally
28
+ agentc init --dev # install Claude Code skills, including dev-only ones
29
+ ```
30
+
31
+ The `--dev` flag installs additional skills (`/ac:dev-setup`, `/ac:release`)
32
+ that live in `cli/skills-dev/` and ship only with the source repo — not
33
+ the npm tarball.
34
+
35
+ Or, without installing:
36
+
37
+ ```bash
38
+ alias agentc="bun /path/to/agent-compose/cli/src/index.ts"
39
+ ```
40
+
41
+ ---
42
+
43
+ ## Authentication
44
+
45
+ Mint your first admin-scoped key from the dashboard (sign in via
46
+ magic-link → **Settings → API Keys → Create key**), then save it locally:
47
+
48
+ ```bash
49
+ agentc auth login ac_YOUR_KEY # writes ~/.config/agentc/settings.json
50
+ agentc auth status # show where the active key/url comes from
51
+ agentc auth logout # remove the saved key
52
+ ```
53
+
54
+ You can also set `AGENT_COMPOSE_API_KEY` directly as an env var.
55
+
56
+ The legacy `ADMIN_KEY` env-token bootstrap path has been removed entirely.
57
+
58
+ ---
59
+
60
+ ## Commands
61
+
62
+ ```
63
+ agentc register <workflow> Bundle and register a workflow (-n NAME, -v VERSION,
64
+ --schedule CRON, --build to capture a snapshot environment)
65
+ agentc invoke <template> Dispatch a run; --follow to stream logs until settle
66
+ agentc list List registered templates (name + version per row)
67
+ agentc logs <run-id> Stream live events for a run (re-attaches via SSE)
68
+
69
+ agentc secrets list <workflow> List secret keys (metadata only)
70
+ agentc secrets set <workflow> <key> Set a secret value (prompts; stored in GCP)
71
+ agentc secrets delete <workflow> <key> Delete a secret
72
+
73
+ agentc usage Current calendar-month usage rollup
74
+ agentc snapshot list List the team's saved sandbox snapshots
75
+ agentc snapshot delete <run-id> Delete a saved snapshot
76
+
77
+ agentc auth login <key> Save API key persistently
78
+ agentc auth logout Remove the saved key
79
+ agentc auth status Show where the active key/url is coming from
80
+
81
+ agentc keys create <name> Mint a new ac_… key (requires admin-scoped caller key
82
+ via --admin-key or AGENT_COMPOSE_ADMIN_KEY).
83
+ --scopes read,invoke,admin --expires-in 30d
84
+ agentc keys list List your team's keys (same admin requirement)
85
+
86
+ agentc init Install Claude Code skills (~/.claude/skills/)
87
+ agentc init --dev Also install developer-only skills from cli/skills-dev/
88
+ (clone install only — not bundled with the npm tarball)
89
+ ```
90
+
91
+ To mint your FIRST admin key, sign in at `<server-url>/login` and use
92
+ the dashboard's create-key dialog (one-time reveal). The CLI's `keys`
93
+ subcommands then work against `--admin-key <that-ac_…>`.
94
+
95
+ ---
96
+
97
+ ## Claude Code skills
98
+
99
+ After `agentc init`, the following slash-commands are available in any
100
+ Claude Code session running inside this repo:
101
+
102
+ **Public skills** (shipped with both npm and clone installs — `cli/skills/`):
103
+
104
+ | Skill | What it does |
105
+ |---|---|
106
+ | `/ac:setup` | Walks first-time setup against an existing server |
107
+ | `/ac:demo` | Guided first-run walkthrough |
108
+ | `/ac:register` | Bundle + register the current workflow |
109
+ | `/ac:invoke` | Dispatch a registered workflow with input |
110
+ | `/ac:register-invoke` | Register-then-invoke combo for fast iteration |
111
+ | `/ac:logs` | Tail logs for a running run |
112
+ | `/ac:secrets` | Manage per-workflow secrets |
113
+ | `/ac:generate-workflow` | Scaffold a new workflow from a plain-English description |
114
+ | `/ac:generate-agent` | Scaffold an agent prompt + iteration logic |
115
+ | `/ac:generate-runtime` | Scaffold a custom runtime for an exotic model/API |
116
+
117
+ **Dev-only skills** (clone install only — `cli/skills-dev/`, install with `agentc init --dev`):
118
+
119
+ | Skill | What it does |
120
+ |---|---|
121
+ | `/ac:dev-setup` | Bootstrap the local Docker server + dashboard |
122
+ | `/ac:release` | Cut a tagged release for the server, SDK, or CLI and watch CI deploy / publish |
123
+
124
+ ---
125
+
126
+ ## Environment variables
127
+
128
+ | Variable | Description | Default |
129
+ |---|---|---|
130
+ | `AGENT_COMPOSE_URL` | Server base URL | `https://agent-compose-server.fly.dev` |
131
+ | `AGENT_COMPOSE_API_KEY` | Bearer key for everyday calls | — |
132
+ | `AGENT_COMPOSE_ADMIN_KEY` | Admin-scoped `ac_…` key for `keys create` / `keys list` | — |
133
+
134
+ All commands also accept `--url`, `--api-key`, `--admin-key` flags. Flag
135
+ values win over env vars; env vars win over `~/.config/agentc/settings.json`;
136
+ the global config wins over the built-in defaults.
137
+
138
+ Project-level overrides live in `.agentc/settings.json` (committed) and
139
+ `.agentc/settings.local.json` (gitignored, per-developer). Both can pin
140
+ the active environment via `{ env: "local" | "prod" | … }` and a map of
141
+ named env definitions.