@agentage/cli 0.82.0 → 0.82.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.
- package/README.md +1 -14
- package/dist/commands/extension/create-install.js +2 -2
- package/dist/commands/extension/create-source.d.ts +0 -1
- package/dist/commands/extension/create-source.js +0 -6
- package/dist/commands/extension/lifecycle-commands.js +2 -2
- package/dist/commands/extension/lifecycle.d.ts +0 -1
- package/dist/commands/extension/lifecycle.js +1 -4
- package/dist/commands/extension/release-steps.js +1 -1
- package/dist/lib/auth/machines-base.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -83,23 +83,10 @@ the GitHub release. A change only in a root `*.md` file, `docs/` or `.github/` r
|
|
|
83
83
|
A `.release-ignore` file adds more patterns. The new package is private: it goes to npm only when
|
|
84
84
|
you remove `"private": true`. The rule in full: [docs/reference.md](docs/reference.md#extension-release).
|
|
85
85
|
|
|
86
|
-
## How to work on this repo
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
npm ci
|
|
90
|
-
npm run verify # type-check, lint, format, test, build
|
|
91
|
-
npm run build && npm run test:e2e -- --grep @offline # e2e with a loopback npm registry
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## How a change is released
|
|
95
|
-
|
|
96
|
-
A merge of a normal change releases nothing. The `chore(release): X.Y.Z` PR from
|
|
97
|
-
`prepare-release.yml` changes `package.json`; its merge runs `release.yml`, which publishes to npm
|
|
98
|
-
with OIDC trusted publishing and pushes the tag `vX.Y.Z`. Details: [docs/release.md](docs/release.md).
|
|
99
|
-
|
|
100
86
|
## For agents
|
|
101
87
|
|
|
102
88
|
- Read [AGENTS.md](AGENTS.md) (the same file as `CLAUDE.md`): commands, layout and where each fact lives.
|
|
89
|
+
- Work on this repo: `npm ci`, then `npm run verify`. A release is described in [docs/release.md](docs/release.md): a normal merge releases nothing.
|
|
103
90
|
- Never run `setup`, `update`, `extension up` or `extension install` on a shared machine, and always add `--no-install` to `extension create`.
|
|
104
91
|
- Never publish to npm by hand: only `release.yml` publishes.
|
|
105
92
|
|
|
@@ -6,7 +6,7 @@ import { hostClient } from '../../lib/daemon/host-client.js';
|
|
|
6
6
|
import { CliError } from '../../lib/json-output.js';
|
|
7
7
|
import { loadKitTool } from './kit-tool.js';
|
|
8
8
|
import { confirmed, report, summaryOf, terminalIo } from './lifecycle.js';
|
|
9
|
-
import {
|
|
9
|
+
import { TEMPLATE } from './create-source.js';
|
|
10
10
|
import { ignoreLocal } from './up-local.js';
|
|
11
11
|
import { buildPackage, newerKitLine, npmIn } from './package-build.js';
|
|
12
12
|
export const createInstallDeps = {
|
|
@@ -70,7 +70,7 @@ export const installCreated = async (folder, install, deps = createInstallDeps)
|
|
|
70
70
|
};
|
|
71
71
|
// Another repo, or a branch of ours, is code nobody reviewed for you: its build script runs here.
|
|
72
72
|
export const trustFrom = async (from, opts, io = terminalIo()) => {
|
|
73
|
-
if (
|
|
73
|
+
if (from === TEMPLATE)
|
|
74
74
|
return;
|
|
75
75
|
console.error(`template ${from}: code from that repo will be built and run on this machine`);
|
|
76
76
|
if (opts.yes)
|
|
@@ -4,13 +4,7 @@ import { basename, dirname, join } from 'node:path';
|
|
|
4
4
|
import { promisify } from 'node:util';
|
|
5
5
|
import { holdSignals } from '../../core/loader/dispose.js';
|
|
6
6
|
const run = promisify(execFile);
|
|
7
|
-
// The kit repo holds the template in its folder template/; the old repo held it at its root.
|
|
8
7
|
export const TEMPLATE = 'agentage/kit:template';
|
|
9
|
-
export const OWN_TEMPLATES = [
|
|
10
|
-
TEMPLATE,
|
|
11
|
-
'agentage/platform:template',
|
|
12
|
-
'agentage/extension-template',
|
|
13
|
-
];
|
|
14
8
|
// owner/repo, then #branch and :folder, each optional: nothing that can pass for a flag or leave the repo.
|
|
15
9
|
const FROM = /^[\w.-]+\/[\w.-]+(?:#\w[\w./-]*)?(?::\w[\w.-]*(?:\/\w[\w.-]*)*)?$/;
|
|
16
10
|
export const fromRefusal = (from) => !FROM.test(from) || from.includes('..')
|
|
@@ -24,8 +24,8 @@ const addInstall = (group, { install, list }) => {
|
|
|
24
24
|
addJson(group
|
|
25
25
|
.command('install')
|
|
26
26
|
.description('Install an extension in the daemon and run it')
|
|
27
|
-
.argument('<name>', '<id>, <id>@<version> or a local folder')
|
|
28
|
-
.
|
|
27
|
+
.argument('<name>', '<id>, <id>@<version> or a local folder'))
|
|
28
|
+
.showHelpAfterError('(--off is gone: agentage extension install <name>, then extension disable <id>)')
|
|
29
29
|
.addHelpText('after', INSTALL_HELP)
|
|
30
30
|
.action((name, opts) => install({ name, ...opts }));
|
|
31
31
|
addJson(group
|
|
@@ -56,10 +56,7 @@ export const runInstall = async (opts, deps) => {
|
|
|
56
56
|
const seal = await deps.sealOff?.().catch(() => null);
|
|
57
57
|
if (seal)
|
|
58
58
|
console.error(seal);
|
|
59
|
-
|
|
60
|
-
return report(done, already ? ' (already installed)' : '');
|
|
61
|
-
console.error('install --off is now: agentage extension disable <id>');
|
|
62
|
-
return report(await host.change(done.id, { enabled: false }));
|
|
59
|
+
return report(done, already ? ' (already installed)' : '');
|
|
63
60
|
};
|
|
64
61
|
export const runEnabled = async (id, enabled, deps) => report(await (await deps.host()).change(specOf(id).id, { enabled }));
|
|
65
62
|
const askLine = async (question) => {
|
|
@@ -34,7 +34,7 @@ export const attach = async (run, tag, repo, names, target) => {
|
|
|
34
34
|
}
|
|
35
35
|
step(`record: ${names.join(', ')} attached to release ${tag}`);
|
|
36
36
|
};
|
|
37
|
-
// The part images
|
|
37
|
+
// The part images and the one image (app hosts), all pushed by digest.
|
|
38
38
|
export const buildImages = async (dir, oneImage, tool, committed) => {
|
|
39
39
|
await runImageBuild({ push: true, dir }, tool, committed);
|
|
40
40
|
if (!oneImage)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentage/cli",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.1",
|
|
4
4
|
"description": "The agentage CLI - connect this machine to agentage from the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@agentage/apphost": "0.8.5",
|
|
58
|
-
"@agentage/extension": "0.25.
|
|
58
|
+
"@agentage/extension": "0.25.12",
|
|
59
59
|
"@electric-sql/pglite": "^0.6.0",
|
|
60
60
|
"@tailwindcss/postcss": "^4.3.5",
|
|
61
61
|
"chalk": "^6.0.0",
|