@contextforge/cli 0.1.6 → 0.1.7
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/dist/index.js +7 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -128,7 +128,7 @@ async function doctorCommand(options = {}) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
// src/commands/init.ts
|
|
131
|
-
import {
|
|
131
|
+
import { select } from "@inquirer/prompts";
|
|
132
132
|
import {
|
|
133
133
|
DEFAULT_CORE_PACKS,
|
|
134
134
|
DEFAULT_TOOLS,
|
|
@@ -155,19 +155,17 @@ async function selectTools() {
|
|
|
155
155
|
if (!canPrompt()) {
|
|
156
156
|
return DEFAULT_TOOLS;
|
|
157
157
|
}
|
|
158
|
-
const selected = await
|
|
158
|
+
const selected = await select({
|
|
159
159
|
message: "Which AI tools should ContextForge configure?",
|
|
160
|
-
required: true,
|
|
161
160
|
choices: [
|
|
162
|
-
{ name: "All agents", value: "all"
|
|
161
|
+
{ name: "All agents", value: "all" },
|
|
163
162
|
...DEFAULT_TOOLS.map((tool) => ({
|
|
164
|
-
name: TOOL_LABELS[tool]
|
|
165
|
-
value: tool
|
|
166
|
-
checked: false
|
|
163
|
+
name: `${TOOL_LABELS[tool]} only`,
|
|
164
|
+
value: tool
|
|
167
165
|
}))
|
|
168
166
|
]
|
|
169
167
|
});
|
|
170
|
-
return selected
|
|
168
|
+
return selected === "all" ? DEFAULT_TOOLS : [selected];
|
|
171
169
|
}
|
|
172
170
|
function printRecommendedAddCommands(recommended) {
|
|
173
171
|
if (recommended.length === 0) {
|
|
@@ -280,7 +278,7 @@ async function syncCommand(options = {}) {
|
|
|
280
278
|
|
|
281
279
|
// src/index.ts
|
|
282
280
|
var program = new Command();
|
|
283
|
-
program.name("contextforge").description("Make existing codebases AI-agent ready").version("0.1.
|
|
281
|
+
program.name("contextforge").description("Make existing codebases AI-agent ready").version("0.1.7");
|
|
284
282
|
program.command("init").description("Initialize AI-agent instructions").option("--registry <url>", "Static remote registry index URL", collectRegistryOption, []).action(initCommand);
|
|
285
283
|
program.command("add").argument("<pack>").description("Add an instruction pack").option("--registry <url>", "Static remote registry index URL", collectRegistryOption, []).option("--force", "Re-download and regenerate even when the pack is already installed").option("--dry-run", "Show what would be installed without writing files").action(addCommand);
|
|
286
284
|
program.command("sync").description("Sync generated AI instruction files").option("--registry <url>", "Static remote registry index URL", collectRegistryOption, []).action(syncCommand);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contextforge/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"contextforge": "dist/index.js"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"commander": "^14.0.0",
|
|
14
14
|
"ora": "^8.2.0",
|
|
15
15
|
"picocolors": "^1.1.1",
|
|
16
|
-
"@contextforge/core": "0.1.
|
|
16
|
+
"@contextforge/core": "0.1.7"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"tsx": "^4.20.0"
|