@contextforge/cli 0.1.7 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -17
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -135,7 +135,6 @@ import {
135
135
  createConfig,
136
136
  detectProject,
137
137
  fetchRegistry as fetchRegistry2,
138
- installPack,
139
138
  missingMandatoryCorePacks,
140
139
  recommendPacks,
141
140
  syncProject
@@ -167,16 +166,6 @@ async function selectTools() {
167
166
  });
168
167
  return selected === "all" ? DEFAULT_TOOLS : [selected];
169
168
  }
170
- function printRecommendedAddCommands(recommended) {
171
- if (recommended.length === 0) {
172
- return;
173
- }
174
- console.log("");
175
- console.log(pc3.bold("Recommended packs:"));
176
- for (const pack of recommended) {
177
- console.log(`npx @contextforge/cli add ${pack.name}`);
178
- }
179
- }
180
169
  async function initCommand(options = {}) {
181
170
  const root = process.cwd();
182
171
  const registryUrl = resolveRegistryUrl(void 0, options);
@@ -193,12 +182,10 @@ async function initCommand(options = {}) {
193
182
  const tools = await selectTools();
194
183
  const packNames = [
195
184
  .../* @__PURE__ */ new Set([
196
- ...DEFAULT_CORE_PACKS.filter((packName) => registry.packs.some((pack) => pack.name === packName))
185
+ ...DEFAULT_CORE_PACKS.filter((packName) => registry.packs.some((pack) => pack.name === packName)),
186
+ ...recommended.map((pack) => pack.name)
197
187
  ])
198
188
  ];
199
- for (const packName of packNames) {
200
- await installPack(root, registryUrl, packName, { force: true });
201
- }
202
189
  const initialConfig = createConfig(
203
190
  analysis,
204
191
  packNames.map((name) => ({ name })),
@@ -208,7 +195,6 @@ async function initCommand(options = {}) {
208
195
  const result = await syncProject(root, initialConfig);
209
196
  console.log(pc3.green("ContextForge initialized."));
210
197
  console.log(formatGeneratedFiles(result.generatedFiles));
211
- printRecommendedAddCommands(recommended);
212
198
  }
213
199
 
214
200
  // src/commands/list.ts
@@ -278,7 +264,7 @@ async function syncCommand(options = {}) {
278
264
 
279
265
  // src/index.ts
280
266
  var program = new Command();
281
- program.name("contextforge").description("Make existing codebases AI-agent ready").version("0.1.7");
267
+ program.name("contextforge").description("Make existing codebases AI-agent ready").version("0.1.9");
282
268
  program.command("init").description("Initialize AI-agent instructions").option("--registry <url>", "Static remote registry index URL", collectRegistryOption, []).action(initCommand);
283
269
  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);
284
270
  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.7",
3
+ "version": "0.1.9",
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.7"
16
+ "@contextforge/core": "0.1.9"
17
17
  },
18
18
  "devDependencies": {
19
19
  "tsx": "^4.20.0"