@agentage/cli 0.77.1 → 0.78.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.
|
@@ -2,6 +2,7 @@ import { existsSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSyn
|
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import {} from 'commander';
|
|
4
4
|
import { addJson, CliError } from '../../lib/json-output.js';
|
|
5
|
+
import { siteFqdn } from '../../lib/net/origins.js';
|
|
5
6
|
import { installCreated, trustFrom } from './create-install.js';
|
|
6
7
|
import { clone, fromRefusal, repoRef, TEMPLATE } from './create-source.js';
|
|
7
8
|
import { terminalIo } from './lifecycle.js';
|
|
@@ -108,13 +109,17 @@ const shape = (dir, from, id, kept) => {
|
|
|
108
109
|
throw new Error(`template ${from}: ${err.message}`);
|
|
109
110
|
}
|
|
110
111
|
};
|
|
112
|
+
// Without a set site no address is printed: the default site may not answer for an extension host.
|
|
113
|
+
const hostLine = (id) => process.env['AGENTAGE_SITE_FQDN']?.trim()
|
|
114
|
+
? `host ${id}.${siteFqdn()}`
|
|
115
|
+
: `host ${id} on your site (set AGENTAGE_SITE_FQDN to print its address)`;
|
|
111
116
|
const printNext = (dir, from, id, kept) => {
|
|
112
117
|
const kit = String(json(join(dir, 'package.json'))['dependencies']?.['@agentage/extension'] ?? '?');
|
|
113
118
|
const { repo, ref, folder } = repoRef(from);
|
|
114
119
|
const branch = ref ? `branch ${ref}` : 'default branch';
|
|
115
120
|
console.log(` template ${repo}${folder ? `:${folder}` : ''} (${branch}, kit ${kit.replace(/^[\^~]/, '')})`);
|
|
116
121
|
console.log(` kept ${kept.join(', ')}`);
|
|
117
|
-
console.log(` id ${id} ·
|
|
122
|
+
console.log(` id ${id} · ${hostLine(id)} · contract ${id}.mcpc.json`);
|
|
118
123
|
console.log(` next cd ${dir} && agentage extension up`);
|
|
119
124
|
};
|
|
120
125
|
// Clones the template's default branch (or the #branch of --from; only its :folder) into ./extension-<id>, no history;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentage/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.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",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"prepublishOnly": "npm run verify"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@agentage/apphost": "0.8.
|
|
58
|
-
"@agentage/extension": "0.25.
|
|
59
|
-
"@electric-sql/pglite": "^0.
|
|
57
|
+
"@agentage/apphost": "0.8.4",
|
|
58
|
+
"@agentage/extension": "0.25.5",
|
|
59
|
+
"@electric-sql/pglite": "^0.6.0",
|
|
60
60
|
"@tailwindcss/postcss": "^4.3.5",
|
|
61
61
|
"chalk": "^6.0.0",
|
|
62
62
|
"commander": "^15.0.0",
|