@agentage/cli 0.43.0 → 0.44.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.
|
@@ -10,11 +10,12 @@ const ROUTED = ['pages', 'ui', 'api', 'mcp'];
|
|
|
10
10
|
// `_` is a separator here, so `template__echo` is the id too.
|
|
11
11
|
const WORD = /(?<![A-Za-z0-9])template(?![A-Za-z0-9])/g;
|
|
12
12
|
const LOCK = 'package-lock.json';
|
|
13
|
-
// What else goes with a dropped part: manifest keys the kit refuses without it, the store's SQL.
|
|
13
|
+
// What else goes with a dropped part: manifest keys the kit refuses without it, the store's SQL, the contract file of api and mcp.
|
|
14
14
|
const PRUNE = {
|
|
15
15
|
cli: { keys: [['agentage', 'commands']] },
|
|
16
|
-
mcp: { keys: [['agentage', 'settings', 'mcp.listing']] },
|
|
17
|
-
|
|
16
|
+
mcp: { keys: [['agentage', 'settings', 'mcp.listing']], paths: ['template.mcpc.json'] },
|
|
17
|
+
api: { paths: ['openapi.json'] },
|
|
18
|
+
store: { paths: ['migrations', 'seeds'] },
|
|
18
19
|
};
|
|
19
20
|
const refusal = ({ id, parts, from = TEMPLATE }, kept) => {
|
|
20
21
|
const unknown = parts.find((part) => !PARTS.includes(part));
|
|
@@ -39,7 +40,7 @@ const drop = (dir, kept) => {
|
|
|
39
40
|
const pkg = json(join(dir, 'package.json'));
|
|
40
41
|
for (const part of PARTS.filter((part) => !kept.includes(part))) {
|
|
41
42
|
delete pkg['agentage']?.parts?.[part];
|
|
42
|
-
for (const sub of [join('src', part), ...(PRUNE[part]?.
|
|
43
|
+
for (const sub of [join('src', part), ...(PRUNE[part]?.paths ?? [])])
|
|
43
44
|
rmSync(join(dir, sub), { recursive: true, force: true });
|
|
44
45
|
for (const path of PRUNE[part]?.keys ?? []) {
|
|
45
46
|
const parent = path.slice(0, -1).reduce((at, key) => at?.[key], pkg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentage/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.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",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"prepublishOnly": "npm run verify"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@agentage/extension": "^0.
|
|
58
|
+
"@agentage/extension": "^0.5.0",
|
|
59
59
|
"chalk": "^6.0.0",
|
|
60
60
|
"commander": "^15.0.0",
|
|
61
61
|
"open": "^11.0.0"
|