@codemcp/ade-cli 0.1.0 → 0.2.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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-format.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +271 -276
- package/.turbo/turbo-typecheck.log +1 -1
- package/dist/commands/install.js +7 -1
- package/dist/commands/setup.js +7 -1
- package/package.json +3 -3
- package/src/commands/install.spec.ts +2 -1
- package/src/commands/install.ts +11 -1
- package/src/commands/setup.spec.ts +2 -1
- package/src/commands/setup.ts +11 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/commands/install.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as clack from "@clack/prompts";
|
|
2
2
|
import { readLockFile } from "@codemcp/ade-core";
|
|
3
|
-
import { getHarnessWriter, getHarnessIds, installSkills } from "@codemcp/ade-harnesses";
|
|
3
|
+
import { getHarnessWriter, getHarnessIds, installSkills, writeInlineSkills } from "@codemcp/ade-harnesses";
|
|
4
4
|
export async function runInstall(projectRoot, harnessIds) {
|
|
5
5
|
clack.intro("ade install");
|
|
6
6
|
const lockFile = await readLockFile(projectRoot);
|
|
@@ -25,6 +25,12 @@ export async function runInstall(projectRoot, harnessIds) {
|
|
|
25
25
|
await writer.install(logicalConfig, projectRoot);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
const modifiedSkills = await writeInlineSkills(logicalConfig, projectRoot);
|
|
29
|
+
if (modifiedSkills.length > 0) {
|
|
30
|
+
clack.log.warn(`The following skills have been locally modified and will NOT be updated:\n` +
|
|
31
|
+
modifiedSkills.map((s) => ` - ${s}`).join("\n") +
|
|
32
|
+
`\n\nTo use the latest defaults, remove .ade/skills/ and re-run install.`);
|
|
33
|
+
}
|
|
28
34
|
await installSkills(logicalConfig.skills, projectRoot);
|
|
29
35
|
if (logicalConfig.knowledge_sources.length > 0) {
|
|
30
36
|
clack.log.info("Knowledge sources configured. Initialize them separately:\n npx @codemcp/knowledge init");
|
package/dist/commands/setup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as clack from "@clack/prompts";
|
|
2
2
|
import { readUserConfig, writeUserConfig, writeLockFile, resolve, collectDocsets, createDefaultRegistry, getFacet, getOption, sortFacets, getVisibleOptions } from "@codemcp/ade-core";
|
|
3
|
-
import { allHarnessWriters, getHarnessWriter, installSkills } from "@codemcp/ade-harnesses";
|
|
3
|
+
import { allHarnessWriters, getHarnessWriter, installSkills, writeInlineSkills } from "@codemcp/ade-harnesses";
|
|
4
4
|
export async function runSetup(projectRoot, catalog) {
|
|
5
5
|
clack.intro("ade setup");
|
|
6
6
|
const existingConfig = await readUserConfig(projectRoot);
|
|
@@ -115,6 +115,12 @@ export async function runSetup(projectRoot, catalog) {
|
|
|
115
115
|
await writer.install(logicalConfig, projectRoot);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
+
const modifiedSkills = await writeInlineSkills(logicalConfig, projectRoot);
|
|
119
|
+
if (modifiedSkills.length > 0) {
|
|
120
|
+
clack.log.warn(`The following skills have been locally modified and will NOT be updated:\n` +
|
|
121
|
+
modifiedSkills.map((s) => ` - ${s}`).join("\n") +
|
|
122
|
+
`\n\nTo use the latest defaults, remove .ade/skills/ and re-run setup.`);
|
|
123
|
+
}
|
|
118
124
|
await installSkills(logicalConfig.skills, projectRoot);
|
|
119
125
|
if (logicalConfig.knowledge_sources.length > 0) {
|
|
120
126
|
clack.log.info("Knowledge sources selected. Initialize them separately:\n npx @codemcp/knowledge init");
|
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@clack/prompts": "^1.1.0",
|
|
14
|
-
"@codemcp/ade-core": "0.
|
|
15
|
-
"@codemcp/ade-harnesses": "0.
|
|
14
|
+
"@codemcp/ade-core": "0.2.0",
|
|
15
|
+
"@codemcp/ade-harnesses": "0.2.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@codemcp/knowledge": "2.1.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"rimraf": "^6.0.1",
|
|
25
25
|
"typescript": "^5.7.3"
|
|
26
26
|
},
|
|
27
|
-
"version": "0.
|
|
27
|
+
"version": "0.2.0",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsc -p tsconfig.build.json",
|
|
30
30
|
"clean:build": "rimraf ./dist",
|
|
@@ -49,7 +49,8 @@ vi.mock("@codemcp/ade-harnesses", () => ({
|
|
|
49
49
|
"kiro",
|
|
50
50
|
"opencode"
|
|
51
51
|
]),
|
|
52
|
-
installSkills: vi.fn().mockResolvedValue(undefined)
|
|
52
|
+
installSkills: vi.fn().mockResolvedValue(undefined),
|
|
53
|
+
writeInlineSkills: vi.fn().mockResolvedValue([])
|
|
53
54
|
}));
|
|
54
55
|
|
|
55
56
|
import * as clack from "@clack/prompts";
|
package/src/commands/install.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { readLockFile } from "@codemcp/ade-core";
|
|
|
3
3
|
import {
|
|
4
4
|
getHarnessWriter,
|
|
5
5
|
getHarnessIds,
|
|
6
|
-
installSkills
|
|
6
|
+
installSkills,
|
|
7
|
+
writeInlineSkills
|
|
7
8
|
} from "@codemcp/ade-harnesses";
|
|
8
9
|
|
|
9
10
|
export async function runInstall(
|
|
@@ -41,6 +42,15 @@ export async function runInstall(
|
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
45
|
+
const modifiedSkills = await writeInlineSkills(logicalConfig, projectRoot);
|
|
46
|
+
if (modifiedSkills.length > 0) {
|
|
47
|
+
clack.log.warn(
|
|
48
|
+
`The following skills have been locally modified and will NOT be updated:\n` +
|
|
49
|
+
modifiedSkills.map((s) => ` - ${s}`).join("\n") +
|
|
50
|
+
`\n\nTo use the latest defaults, remove .ade/skills/ and re-run install.`
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
await installSkills(logicalConfig.skills, projectRoot);
|
|
45
55
|
|
|
46
56
|
if (logicalConfig.knowledge_sources.length > 0) {
|
|
@@ -51,7 +51,8 @@ vi.mock("@codemcp/ade-harnesses", () => ({
|
|
|
51
51
|
install: vi.fn().mockResolvedValue(undefined)
|
|
52
52
|
}),
|
|
53
53
|
getHarnessIds: vi.fn().mockReturnValue(["claude-code"]),
|
|
54
|
-
installSkills: vi.fn().mockResolvedValue(undefined)
|
|
54
|
+
installSkills: vi.fn().mockResolvedValue(undefined),
|
|
55
|
+
writeInlineSkills: vi.fn().mockResolvedValue([])
|
|
55
56
|
}));
|
|
56
57
|
|
|
57
58
|
import * as clack from "@clack/prompts";
|
package/src/commands/setup.ts
CHANGED
|
@@ -18,7 +18,8 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
allHarnessWriters,
|
|
20
20
|
getHarnessWriter,
|
|
21
|
-
installSkills
|
|
21
|
+
installSkills,
|
|
22
|
+
writeInlineSkills
|
|
22
23
|
} from "@codemcp/ade-harnesses";
|
|
23
24
|
|
|
24
25
|
export async function runSetup(
|
|
@@ -162,6 +163,15 @@ export async function runSetup(
|
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
|
|
166
|
+
const modifiedSkills = await writeInlineSkills(logicalConfig, projectRoot);
|
|
167
|
+
if (modifiedSkills.length > 0) {
|
|
168
|
+
clack.log.warn(
|
|
169
|
+
`The following skills have been locally modified and will NOT be updated:\n` +
|
|
170
|
+
modifiedSkills.map((s) => ` - ${s}`).join("\n") +
|
|
171
|
+
`\n\nTo use the latest defaults, remove .ade/skills/ and re-run setup.`
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
165
175
|
await installSkills(logicalConfig.skills, projectRoot);
|
|
166
176
|
|
|
167
177
|
if (logicalConfig.knowledge_sources.length > 0) {
|