@agentage/cli 0.57.0 → 0.59.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/README.md CHANGED
@@ -26,7 +26,7 @@ the extensions of your account's profile once; after that each machine keeps its
26
26
 
27
27
  `agentage setup --no-browser` prints the sign-in URL. Open it in a browser on this same machine,
28
28
  because sign-in returns to `localhost`. On a server, use a personal access token from the
29
- dashboard (**Settings -> API tokens**):
29
+ dashboard (**Settings**, then **API tokens**):
30
30
 
31
31
  ```bash
32
32
  AGENTAGE_TOKEN=aga_... agentage status
@@ -36,19 +36,20 @@ More: [docs/reference.md](docs/reference.md#token-auth-ci-and-headless).
36
36
 
37
37
  ## Commands
38
38
 
39
- | Command | What it does |
40
- | ----------------------------- | ----------------------------------------------------------------------------- |
41
- | `agentage setup` | Sign in, install your account's profile, show status, start the daemon |
42
- | `agentage setup --no-browser` | Print the sign-in URL instead of opening a browser |
43
- | `agentage setup --reauth` | Force a fresh sign-in |
44
- | `agentage setup --disconnect` | Sign out and remove local credentials |
45
- | `agentage status` | Version, update, target, sign-in, endpoint, then machine, profile, extensions |
46
- | `agentage update` | Install the latest published version (`--check` only reports) |
47
- | `agentage daemon status` | The local daemon on 127.0.0.1:4243 (`stop`, `restart`); `setup` starts it |
48
- | `agentage extension ...` | Manage extensions, see [Extensions](#extensions) |
49
- | any command with `--json` | One JSON object on stdout: `{ success, data }` or `{ success, error }` |
50
-
51
- More: [author commands](docs/extensions.md#author-commands) and [the lifecycle](docs/extensions.md#lifecycle).
39
+ | Command | What it does |
40
+ | ----------------------------- | ---------------------------------------------------------------------------------- |
41
+ | `agentage setup` | Sign in, install your account's profile, show status, start the daemon |
42
+ | `agentage setup --no-browser` | Print the sign-in URL instead of opening a browser |
43
+ | `agentage setup --reauth` | Force a fresh sign-in |
44
+ | `agentage setup --disconnect` | Sign out and remove local credentials |
45
+ | `agentage status` | Version, update, target, sign-in, endpoint, then machine, profile, extensions |
46
+ | `agentage update` | Install the latest published version (`--check` only reports) |
47
+ | `agentage daemon status` | The local daemon on 127.0.0.1:4243 (`start`, `stop`, `restart`); `setup` starts it |
48
+ | `agentage extension ...` | Manage extensions, see [Extensions](#extensions) |
49
+ | any command with `--json` | One JSON object on stdout: `{ success, data }` or `{ success, error }` |
50
+
51
+ More: [author commands](docs/extensions.md#author-commands) and
52
+ [the lifecycle](docs/reference.md#extension-lifecycle).
52
53
 
53
54
  ## Extensions
54
55
 
@@ -68,8 +69,9 @@ agentage probe ping # run a command by its exten
68
69
  agentage extension remove probe # take it out again; --purge also deletes its data
69
70
  ```
70
71
 
71
- Extensions run in the CLI process with your privileges, so install only ones you trust. npm runs with
72
- `--ignore-scripts`. The account token leaves the environment before extension code loads.
72
+ Extensions run with your privileges, in the daemon and in the CLI process, so install only ones
73
+ you trust. npm runs with `--ignore-scripts`. The account token leaves the environment before
74
+ extension code loads.
73
75
 
74
76
  More: [docs/profiles.md](docs/profiles.md).
75
77
 
@@ -93,16 +95,19 @@ More: [docs/extensions.md](docs/extensions.md#run-it-locally).
93
95
 
94
96
  Everything lives in the config directory, `~/.agentage` by default:
95
97
 
96
- | Path | What |
97
- | --------------------------- | --------------------------------------------------- |
98
- | `~/.agentage/auth.json` | your sign-in, owner-only |
99
- | `~/.agentage/profile.json` | the profile: what this account wants |
100
- | `~/.agentage/machine.json` | this machine's id, name, dev extensions and account |
101
- | `~/.agentage/extensions/` | installed extensions; `current` names the live tree |
102
- | `~/.agentage/state/` | the last run of each extension |
103
- | `~/.agentage/commands.json` | cli 0.51's command holders; read, never written |
104
- | `~/.agentage/secrets.json` | extension secrets, owner-only |
105
- | `~/.agentage/data/<id>/` | what each extension keeps |
98
+ | Path | What |
99
+ | ------------------------------- | ----------------------------------------------------- |
100
+ | `~/.agentage/auth.json` | your sign-in, owner-only |
101
+ | `~/.agentage/profile.json` | the profile: what this account wants |
102
+ | `~/.agentage/machine.json` | this machine's id, name, dev extensions and account |
103
+ | `~/.agentage/installation.json` | this machine's extension list, written by the daemon |
104
+ | `~/.agentage/daemon.json` | the running daemon: pid, port, host token; owner-only |
105
+ | `~/.agentage/extensions/` | installed extensions, one tree per id and version |
106
+ | `~/.agentage/state/` | the last run of each extension |
107
+ | `~/.agentage/commands.json` | cli 0.51's command holders; read, never written |
108
+ | `~/.agentage/secrets.json` | extension secrets, owner-only |
109
+ | `~/.agentage/data/<id>/` | what each extension keeps |
110
+ | `~/.agentage/logs/` | `daemon.log` and each extension's log |
106
111
 
107
112
  `status` writes `machine.json` even before you sign in.
108
113
 
@@ -114,7 +119,8 @@ delete `~/.agentage`.
114
119
  - `setup` registers a one-off OAuth client and waits for the browser on a localhost callback.
115
120
  - Tokens land in `~/.agentage/auth.json` (owner-only) and refresh automatically.
116
121
  - `status` checks the session against the account's introspection endpoint.
117
- - Nothing runs in the background.
122
+ - The daemon is the only background process. It starts when a command needs it and runs until
123
+ `agentage daemon stop`. Nothing installs on a timer.
118
124
 
119
125
  ## Configuration
120
126
 
@@ -124,6 +130,7 @@ delete `~/.agentage`.
124
130
  | `AGENTAGE_CONFIG_DIR` | `~/.agentage` | Config and credentials directory |
125
131
  | `AGENTAGE_TOKEN` | - | Personal access token for CI and headless machines |
126
132
  | `AGENTAGE_EXTENSIONS_DIR` | `<config>/extensions` | Where extensions are installed |
133
+ | `AGENTAGE_DAEMON_PORT` | `4243` | The daemon's port on 127.0.0.1 |
127
134
  | `NO_COLOR` | - | Disable colored output |
128
135
 
129
136
  ## Develop
@@ -139,16 +146,19 @@ npm registry that serves `fixtures/`.
139
146
 
140
147
  ## Release
141
148
 
142
- GitHub Actions publishes to npm when a release PR merges to `master` as a `chore(release): X.Y.Z`
143
- commit that touches `package.json`. It skips a version already on npm.
149
+ Dispatch `prepare-release.yml` (a weekly schedule also dispatches it). It opens a
150
+ `chore(release): X.Y.Z` PR and arms auto-merge. On the merge, `release.yml` runs verify and the
151
+ agentage/e2e cli tier on the packed cli, then publishes to npm with OIDC trusted publishing and
152
+ provenance, and pushes the tag `vX.Y.Z`. It skips a version already on npm.
144
153
 
145
154
  - The publish worked but the tag push failed: push the tag by hand on the release commit
146
- (`git tag v0.52.0 <release commit> && git push origin v0.52.0`); never publish again.
147
- - The agentage/e2e cli tier (`e2e.yml` on a PR) is not a required check; `release.yml` runs only
148
- its `@smoke` tests before the publish. No workflow of this repo runs its lifecycle, execution
149
- and reload tests on a candidate; agentage/e2e runs them on its own PRs against the published cli.
155
+ (`git tag vX.Y.Z <release commit> && git push origin vX.Y.Z`); never publish again.
156
+ - The cli tier failed: fix the cli or the e2e test, then dispatch `release.yml` again.
157
+ - `release.yml` runs only the `@smoke` tests of the agentage/e2e cli tier on the candidate. The
158
+ lifecycle, execution and reload tests of agentage/e2e run on its own PRs against the published
159
+ cli.
150
160
  - Before the release PR merges, check: the PR checks of the release commit are green, and the cli
151
- project of agentage/e2e passes 48 of 48 against the packed tarball of that commit
161
+ project of agentage/e2e passes in full against the packed tarball of that commit
152
162
  (`AGENTAGE_CLI_TARBALL=<tgz> npm run test:cli -- --retries=0`).
153
163
 
154
164
  ## Documentation
@@ -0,0 +1,18 @@
1
+ import { type Command } from 'commander';
2
+ import { type AuthState } from '../../lib/fs/config.js';
3
+ import { type Links } from '../../lib/net/origins.js';
4
+ export interface AuthTokenOptions {
5
+ json?: boolean;
6
+ }
7
+ export interface SessionToken {
8
+ accessToken: string;
9
+ expiresAt: string | null;
10
+ }
11
+ export interface AuthTokenDeps {
12
+ read: () => AuthState | null;
13
+ refresh: (auth: AuthState, links: Links) => Promise<void>;
14
+ now: () => number;
15
+ }
16
+ export declare const MIN_LIFE_MS = 60000;
17
+ export declare const runAuthToken: (opts?: AuthTokenOptions, deps?: AuthTokenDeps) => Promise<SessionToken>;
18
+ export declare const registerAuth: (program: Command, token: (opts: AuthTokenOptions) => Promise<void>) => void;
@@ -0,0 +1,56 @@
1
+ import {} from 'commander';
2
+ import { refreshOrThrow } from '../../lib/auth/api.js';
3
+ import { AuthRequiredError } from '../../lib/auth/auth-errors.js';
4
+ import { credentialLinks } from '../../lib/auth/env-match.js';
5
+ import { readAuth } from '../../lib/fs/config.js';
6
+ import { addJson } from '../../lib/json-output.js';
7
+ import { helpOrUnknown } from '../extension/list.js';
8
+ import {} from '../../lib/net/origins.js';
9
+ const defaultDeps = { read: readAuth, refresh: refreshOrThrow, now: Date.now };
10
+ // A token that lives under this long is refreshed first, so the caller can still use it.
11
+ export const MIN_LIFE_MS = 60_000;
12
+ const fresh = (auth, now) => !!auth && auth.kind !== 'pat' && (auth.tokens.expiresAt ?? 0) - now >= MIN_LIFE_MS;
13
+ // Another process may have rotated the refresh token first: its stored, fresh token serves.
14
+ const refreshed = async (auth, deps) => {
15
+ try {
16
+ await deps.refresh(auth, credentialLinks(auth));
17
+ return auth;
18
+ }
19
+ catch (err) {
20
+ const stored = deps.read();
21
+ if (!(err instanceof AuthRequiredError) || !fresh(stored, deps.now()))
22
+ throw err;
23
+ if (stored.tokens.accessToken === auth.tokens.accessToken)
24
+ throw err;
25
+ return stored;
26
+ }
27
+ };
28
+ // Only the stored session: AGENTAGE_TOKEN (a PAT) is never read here, so it is never printed.
29
+ export const runAuthToken = async (opts = {}, deps = defaultDeps) => {
30
+ const auth = deps.read();
31
+ if (!auth || auth.kind === 'pat')
32
+ throw new AuthRequiredError('not signed in - run: agentage setup');
33
+ const live = fresh(auth, deps.now()) ? auth : await refreshed(auth, deps);
34
+ const { accessToken, expiresAt } = live.tokens;
35
+ // With --json the token goes only into the envelope on stdout, never to stderr.
36
+ if (!opts.json)
37
+ console.log(accessToken);
38
+ return {
39
+ accessToken,
40
+ expiresAt: expiresAt === undefined ? null : new Date(expiresAt).toISOString(),
41
+ };
42
+ };
43
+ const HELP = `
44
+ Prints a short-lived access token of the signed-in session on stdout, refreshed first when it
45
+ expires within 60 s; --json gives { accessToken, expiresAt }. It never prints a personal access
46
+ token (AGENTAGE_TOKEN). Signed out, it exits 1 with auth_required. The desktop uses it.`;
47
+ export const registerAuth = (program, token) => {
48
+ const group = program
49
+ .command('auth', { hidden: true })
50
+ .description('The session of this machine, for other local clients')
51
+ .allowExcessArguments()
52
+ .action(helpOrUnknown);
53
+ addJson(group.command('token').description('Print a fresh session access token'))
54
+ .addHelpText('after', HELP)
55
+ .action(token);
56
+ };
@@ -31,6 +31,7 @@ export declare const runDaemonRestart: (ensure?: () => Promise<number>, settle?:
31
31
  }>;
32
32
  type Action = (opts: DaemonOptions) => Promise<void>;
33
33
  export interface DaemonActions {
34
+ start: Action;
34
35
  status: Action;
35
36
  stop: Action;
36
37
  restart: Action;
@@ -95,14 +95,16 @@ export const runDaemonRestart = async (ensure = () => ensureDaemon(), settle = s
95
95
  const HELP = `
96
96
  The daemon runs the installed extensions on 127.0.0.1 (port 4243, AGENTAGE_DAEMON_PORT for
97
97
  another), one child process each, and serves /api/{id}/* and /host/extensions. setup starts it,
98
- and so does each command that needs it. daemon.json in the config folder names its pid and port.`;
98
+ and so does each command that needs it; daemon start prints its pid, url, protocol and startedBy
99
+ (AGENTAGE_STARTED_BY=desktop when the desktop starts it). daemon.json in the config folder names its pid and port.`;
99
100
  export const registerDaemon = (program, actions) => {
100
101
  const group = program
101
102
  .command('daemon')
102
- .description('Show, stop or restart the local daemon that runs extensions')
103
+ .description('Start, show, stop or restart the local daemon that runs extensions')
103
104
  .allowExcessArguments()
104
105
  .addHelpText('after', HELP)
105
106
  .action(helpOrUnknown);
107
+ addJson(group.command('start').description('Connect to the daemon, or start it')).action(actions.start);
106
108
  addJson(group.command('status').description('Show the daemon and its extensions')).action(actions.status);
107
109
  addJson(group.command('stop').description('Stop the daemon and every extension')).action(actions.stop);
108
110
  addJson(group.command('restart').description('Stop the daemon, then start it')).action(actions.restart);
@@ -6,4 +6,5 @@ export interface DaemonRunDeps {
6
6
  export declare const clockRateOf: (env?: NodeJS.ProcessEnv) => {
7
7
  clockRate?: number;
8
8
  };
9
+ export declare const startedByOf: (env?: NodeJS.ProcessEnv) => string;
9
10
  export declare const runDaemon: (deps: DaemonRunDeps) => Promise<void>;
@@ -9,6 +9,12 @@ export const clockRateOf = (env = process.env) => {
9
9
  const raw = env['AGENTAGE_DAEMON_CLOCK_RATE'];
10
10
  return raw ? { clockRate: Number(raw) } : {};
11
11
  };
12
+ const STARTERS = ['cli', 'desktop'];
13
+ // C5: the desktop sets AGENTAGE_STARTED_BY=desktop; unset or another value is the cli.
14
+ export const startedByOf = (env = process.env) => {
15
+ const raw = env['AGENTAGE_STARTED_BY'] ?? '';
16
+ return STARTERS.includes(raw) ? raw : 'cli';
17
+ };
12
18
  const signalled = () => new Promise((resolve) => {
13
19
  process.once('SIGTERM', resolve);
14
20
  process.once('SIGINT', resolve);
@@ -40,7 +46,11 @@ export const runDaemon = async (deps) => {
40
46
  version: VERSION,
41
47
  ...clockRateOf(),
42
48
  };
43
- const daemon = await createDaemon({ ...opts, install: deps.installer(), startedBy: 'cli' }).catch(busy);
49
+ const daemon = await createDaemon({
50
+ ...opts,
51
+ install: deps.installer(),
52
+ startedBy: startedByOf(),
53
+ }).catch(busy);
44
54
  await stopping;
45
55
  await daemon.stop();
46
56
  };
@@ -0,0 +1,8 @@
1
+ import { type DaemonFile } from '../../lib/daemon/daemon-file.js';
2
+ export interface DaemonStart {
3
+ pid: number;
4
+ url: string;
5
+ protocol: number;
6
+ startedBy: string;
7
+ }
8
+ export declare const runDaemonStart: (ensure?: () => Promise<number>, read?: () => DaemonFile | null) => Promise<DaemonStart>;
@@ -0,0 +1,14 @@
1
+ import { ensureDaemon } from '../../lib/daemon/daemon-client.js';
2
+ import { readDaemonFile } from '../../lib/daemon/daemon-file.js';
3
+ import { CliError } from '../../lib/json-output.js';
4
+ // Connect-or-start: the running daemon of this config folder, else a new one.
5
+ export const runDaemonStart = async (ensure = () => ensureDaemon(), read = readDaemonFile) => {
6
+ const port = await ensure();
7
+ const file = read();
8
+ if (!file || file.port !== port)
9
+ throw new CliError('daemon_unavailable', `no daemon.json names the daemon on 127.0.0.1:${port}`);
10
+ const { pid, protocol, startedBy } = file;
11
+ const url = `http://127.0.0.1:${port}`;
12
+ console.log(`daemon: running on 127.0.0.1:${port}, pid ${pid}, started by ${startedBy}`);
13
+ return { pid, url, protocol, startedBy };
14
+ };
@@ -8,7 +8,7 @@ import { installCreated, trustFrom } from './create-install.js';
8
8
  import { terminalIo } from './lifecycle.js';
9
9
  const run = promisify(execFile);
10
10
  export const TEMPLATE = 'agentage/extension-template';
11
- export const PARTS = ['pages', 'ui', 'api', 'mcp', 'worker', 'store', 'cli'];
11
+ export const PARTS = ['pages', 'ui', 'api', 'mcp', 'worker', 'store', 'cli', 'app'];
12
12
  const ROUTED = ['pages', 'ui', 'api', 'mcp'];
13
13
  // `_` is a separator here, so `template__echo` is the id too.
14
14
  const WORD = /(?<![A-Za-z0-9])template(?![A-Za-z0-9])/g;
@@ -21,6 +21,7 @@ const PRUNE = {
21
21
  mcp: { keys: [['agentage', 'settings', 'mcp.listing']], paths: ['template.mcpc.json'] },
22
22
  api: { paths: ['openapi.json'] },
23
23
  store: { paths: ['migrations', 'seeds'] },
24
+ app: { keys: [['agentage', 'app']], paths: ['src/app-part.test.tsx', 'src/app-lint.test.ts'] },
24
25
  };
25
26
  const refusal = ({ id, parts, from = TEMPLATE }, kept) => {
26
27
  const unknown = parts.find((part) => !PARTS.includes(part));
@@ -105,7 +106,7 @@ const CI = join('.github', 'workflows', 'ci.yml');
105
106
  const FLOOR = /MIN_EXECUTED: '\d+'/;
106
107
  const LOWERED = " ci MIN_EXECUTED is 1: after the first green run, set it to the gate's count";
107
108
  const BY_HAND = ` ci no MIN_EXECUTED line found in ${CI}: set it by hand to the gate's count`;
108
- // The template's floor counts the gate's tests for all seven parts; a subset's count is unknown.
109
+ // The template's floor counts the gate's tests for all eight parts; a subset's count is unknown.
109
110
  const lowerFloor = (dir, kept) => {
110
111
  if (kept.length === PARTS.length)
111
112
  return undefined;
@@ -159,7 +160,7 @@ export const addCreate = (group, create) => addJson(group
159
160
  .command('create')
160
161
  .description('Create ./extension-<id> from the extension template with the parts named')
161
162
  .argument('<id>', 'the extension id, also its host and contract name')
162
- .argument('[parts...]', `parts to keep (default: all seven): ${PARTS.join(', ')}`)
163
+ .argument('[parts...]', `parts to keep (default: all eight): ${PARTS.join(', ')}`)
163
164
  .option('--from <owner/repo[#branch]>', `the template repo (default: ${TEMPLATE})`)
164
165
  .option('--no-install', 'build the folder, but do not give it to the daemon')
165
166
  .option('--yes', 'run code from another --from repo or branch without asking')).action((id, parts, o) => create({ id, parts, ...o }));
@@ -37,7 +37,9 @@ const registerApi = (program, ext, run) => {
37
37
  };
38
38
  // Manifests only, never code: each stub hands the command line, --help included, to the extension.
39
39
  export const registerDelegates = (program, argv, wrap, tool = loadKitTool) => {
40
- const core = program.commands.map((command) => command.name());
40
+ // Hidden commands (auth, for local clients) stay out of the usage line.
41
+ const shown = program.createHelp().visibleCommands(program);
42
+ const core = shown.map((command) => command.name()).filter((name) => name !== 'help');
41
43
  // The daemon's installation once it exists; before the one-time move, the old lists.
42
44
  const extensions = installedExtensions() ?? loadSet(scan(readMachine() ?? NO_MACHINE));
43
45
  const verbs = claimVerbs(extensions, readHeld());
@@ -1,5 +1,7 @@
1
+ import { runAuthToken } from './commands/auth/token.js';
1
2
  import {} from './commands/auth/setup.js';
2
3
  import { runDaemonRestart, runDaemonStatus, runDaemonStop } from './commands/daemon/daemon.js';
4
+ import { runDaemonStart } from './commands/daemon/start.js';
3
5
  import { cliInstaller, npmNewest } from './commands/daemon/installer.js';
4
6
  import { moveBeforeStart } from './commands/daemon/move.js';
5
7
  import { runDaemon } from './commands/daemon/run.js';
@@ -69,6 +71,7 @@ export const defaultDeps = {
69
71
  }),
70
72
  status: (opts) => runStatus(opts),
71
73
  update: (opts) => runUpdate(opts),
74
+ authToken: (opts) => runAuthToken(opts),
72
75
  extensionInstall: (opts) => runInstall(opts, { ...lifecycle, fromNpm, hasMarket, sealOff }),
73
76
  extensionRemove: (opts) => runRemove(opts, { ...lifecycle, io: terminalIo() }),
74
77
  extensionList: (opts) => runList(opts, listDeps),
@@ -84,6 +87,7 @@ export const defaultDeps = {
84
87
  extensionDown: (opts) => runExtensionDown(opts),
85
88
  extensionToken: (opts) => runExtensionToken(opts),
86
89
  daemon: {
90
+ start: () => runDaemonStart(),
87
91
  status: () => runDaemonStatus(),
88
92
  stop: () => runDaemonStop(),
89
93
  restart: () => runDaemonRestart(),
package/dist/program.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Command } from 'commander';
2
2
  import { type SetupOptions } from './commands/auth/setup.js';
3
+ import { type AuthTokenOptions } from './commands/auth/token.js';
3
4
  import { type DaemonOptions } from './commands/daemon/daemon.js';
4
5
  import { type ExtensionBuildOptions, type ExtensionCheckOptions } from './commands/extension/build.js';
5
6
  import { type ExtensionCreateOptions } from './commands/extension/create.js';
@@ -17,6 +18,7 @@ export interface ProgramDeps {
17
18
  setup: Run<SetupOptions>;
18
19
  status: Run<StatusOptions>;
19
20
  update: Run<UpdateOptions>;
21
+ authToken: Run<AuthTokenOptions>;
20
22
  extensionInstall: Run<InstallOptions>;
21
23
  extensionRemove: Run<RemoveOptions>;
22
24
  extensionList: Run<ListOptions>;
@@ -35,7 +37,7 @@ export interface ProgramDeps {
35
37
  extensionUp: Run<ExtensionUpFlags>;
36
38
  extensionDown: Run<ExtensionDownOptions>;
37
39
  extensionToken: Run<ExtensionTokenOptions>;
38
- daemon: Record<'status' | 'stop' | 'restart' | 'run', Run<DaemonOptions>>;
40
+ daemon: Record<'start' | 'status' | 'stop' | 'restart' | 'run', Run<DaemonOptions>>;
39
41
  kitTool: LoadKitTool;
40
42
  updateHint: () => string | null;
41
43
  refreshUpdateCache: () => Promise<void>;
package/dist/program.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
  import { Command, CommanderError } from 'commander';
3
3
  import { registerSetup } from './commands/auth/setup.js';
4
+ import { registerAuth } from './commands/auth/token.js';
4
5
  import { registerDaemon } from './commands/daemon/daemon.js';
5
6
  import {} from './commands/extension/build.js';
6
7
  import {} from './commands/extension/create.js';
@@ -68,8 +69,10 @@ export const createProgram = (deps = defaultDeps, argv = process.argv) => {
68
69
  registerSetup(program, withAction(deps, deps.setup, 'Setup failed: ', (o) => !!(o.dryRun || o.check)));
69
70
  registerStatus(program, withAction(deps, deps.status, '', pinned));
70
71
  registerUpdate(program, withAction(deps, deps.update));
72
+ registerAuth(program, withAction(deps, deps.authToken));
71
73
  const daemon = (fn) => withAction(deps, fn);
72
74
  registerDaemon(program, {
75
+ start: daemon(deps.daemon.start),
73
76
  status: daemon(deps.daemon.status),
74
77
  stop: daemon(deps.daemon.stop),
75
78
  restart: daemon(deps.daemon.restart),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentage/cli",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
4
4
  "description": "The agentage CLI - connect this machine to agentage from the terminal",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",