igel-qe-core 1.0.11 → 1.0.12
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/cli/index.js +0 -27
- package/package.json +1 -1
- package/src/cli/index.ts +0 -26
package/dist/cli/index.js
CHANGED
|
@@ -415,25 +415,6 @@ program
|
|
|
415
415
|
else {
|
|
416
416
|
console.log(chalk.green(" ✓ Framework context files already up to date"));
|
|
417
417
|
}
|
|
418
|
-
// Step 2c — enrich framework context files via AST/dependency graph + DB sync
|
|
419
|
-
console.log(chalk.yellow("3c. Enriching framework context files (AST + dependency graph + DB sync)…"));
|
|
420
|
-
try {
|
|
421
|
-
const enrichResult = await runWorkflow("enrich_framework_context", {
|
|
422
|
-
repo_path: workspaceRoot,
|
|
423
|
-
});
|
|
424
|
-
if (typeof enrichResult.enriched_count === "number") {
|
|
425
|
-
console.log(chalk.green(` ✓ Enriched ${enrichResult.enriched_count} context.md file(s)`));
|
|
426
|
-
}
|
|
427
|
-
else if (enrichResult.raw) {
|
|
428
|
-
console.log(chalk.green(" ✓ Context enrichment completed"));
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
console.log(chalk.yellow(" ⚠ Context enrichment returned no summary; continuing"));
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
catch (e) {
|
|
435
|
-
console.log(chalk.yellow(` ⚠ Context enrichment skipped: ${e instanceof Error ? e.message : String(e)}`));
|
|
436
|
-
}
|
|
437
418
|
// Step 2d — Copilot CLI enrichment pass (asks login if needed), then DB sync.
|
|
438
419
|
console.log(chalk.yellow("3d. Enriching context via GitHub Copilot CLI…"));
|
|
439
420
|
try {
|
|
@@ -453,14 +434,6 @@ program
|
|
|
453
434
|
if (run.failed > 0) {
|
|
454
435
|
console.log(chalk.yellow(` ⚠ Copilot failed to update ${run.failed} context.md file(s)`));
|
|
455
436
|
}
|
|
456
|
-
// Persist updated file content/metadata to DB without overwriting Copilot edits.
|
|
457
|
-
const contextPaths = allContextFiles.map((p) => p.replace(`${workspaceRoot}/`, ""));
|
|
458
|
-
await runWorkflow("enrich_framework_context", {
|
|
459
|
-
repo_path: workspaceRoot,
|
|
460
|
-
context_paths: contextPaths,
|
|
461
|
-
persist_only: true,
|
|
462
|
-
});
|
|
463
|
-
console.log(chalk.green(" ✓ Synced Copilot-enriched context metadata to DB"));
|
|
464
437
|
}
|
|
465
438
|
}
|
|
466
439
|
catch (e) {
|
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -445,23 +445,6 @@ program
|
|
|
445
445
|
console.log(chalk.green(" ✓ Framework context files already up to date"));
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
// Step 2c — enrich framework context files via AST/dependency graph + DB sync
|
|
449
|
-
console.log(chalk.yellow("3c. Enriching framework context files (AST + dependency graph + DB sync)…"));
|
|
450
|
-
try {
|
|
451
|
-
const enrichResult = await runWorkflow("enrich_framework_context", {
|
|
452
|
-
repo_path: workspaceRoot,
|
|
453
|
-
}) as { enriched_count?: number; status?: string; message?: string };
|
|
454
|
-
|
|
455
|
-
if (typeof enrichResult.enriched_count === "number") {
|
|
456
|
-
console.log(chalk.green(` ✓ Enriched ${enrichResult.enriched_count} context.md file(s)`));
|
|
457
|
-
} else if ((enrichResult as { raw?: string }).raw) {
|
|
458
|
-
console.log(chalk.green(" ✓ Context enrichment completed"));
|
|
459
|
-
} else {
|
|
460
|
-
console.log(chalk.yellow(" ⚠ Context enrichment returned no summary; continuing"));
|
|
461
|
-
}
|
|
462
|
-
} catch (e: unknown) {
|
|
463
|
-
console.log(chalk.yellow(` ⚠ Context enrichment skipped: ${e instanceof Error ? e.message : String(e)}`));
|
|
464
|
-
}
|
|
465
448
|
|
|
466
449
|
// Step 2d — Copilot CLI enrichment pass (asks login if needed), then DB sync.
|
|
467
450
|
console.log(chalk.yellow("3d. Enriching context via GitHub Copilot CLI…"));
|
|
@@ -479,15 +462,6 @@ program
|
|
|
479
462
|
if (run.failed > 0) {
|
|
480
463
|
console.log(chalk.yellow(` ⚠ Copilot failed to update ${run.failed} context.md file(s)`));
|
|
481
464
|
}
|
|
482
|
-
|
|
483
|
-
// Persist updated file content/metadata to DB without overwriting Copilot edits.
|
|
484
|
-
const contextPaths = allContextFiles.map((p) => p.replace(`${workspaceRoot}/`, ""));
|
|
485
|
-
await runWorkflow("enrich_framework_context", {
|
|
486
|
-
repo_path: workspaceRoot,
|
|
487
|
-
context_paths: contextPaths,
|
|
488
|
-
persist_only: true,
|
|
489
|
-
});
|
|
490
|
-
console.log(chalk.green(" ✓ Synced Copilot-enriched context metadata to DB"));
|
|
491
465
|
}
|
|
492
466
|
} catch (e: unknown) {
|
|
493
467
|
console.log(chalk.yellow(` ⚠ Copilot context enrichment skipped: ${e instanceof Error ? e.message : String(e)}`));
|