@ngockhoale/ukit 1.5.5 → 1.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngockhoale/ukit",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "Install/update an index-first AI workspace for Claude Code, Antigravity, OpenAI Codex, and OpenCode.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,6 +18,7 @@ export async function runDiff({ packageRoot, projectRoot, packageVersion, argv =
18
18
  const toolsArg = parseToolsArg(argv);
19
19
  const selectedOptionalTools = resolveOptionalToolKeys(toolsArg);
20
20
  const selectedAdapterItemIds = toSelectedAdapterItemIds(selectedOptionalTools);
21
+ const withCodegraph = argv.includes('--with-codegraph');
21
22
 
22
23
  const pathConfig = buildPathConfig({ packageRoot, projectRoot });
23
24
 
@@ -26,6 +27,7 @@ export async function runDiff({ packageRoot, projectRoot, packageVersion, argv =
26
27
  pathConfig,
27
28
  dryRun: true,
28
29
  selectedAdapterItemIds,
30
+ withCodegraph,
29
31
  });
30
32
 
31
33
  console.log('[UKit] Diff preview:');
@@ -198,6 +198,7 @@ export async function pruneDeselectedAdapters({
198
198
  export async function runInstall({ packageRoot, projectRoot, packageVersion, argv = [] }) {
199
199
  const toolsArg = parseToolsArg(argv);
200
200
  const selectedOptionalTools = resolveOptionalToolKeys(toolsArg);
201
+ const withCodegraph = argv.includes('--with-codegraph');
201
202
 
202
203
  const pruneResult = await pruneDeselectedAdapters({
203
204
  projectRoot,
@@ -213,6 +214,7 @@ export async function runInstall({ packageRoot, projectRoot, packageVersion, arg
213
214
  dryRun: false,
214
215
  selectedAdapterItemIds,
215
216
  retainedManagedRelativePaths: pruneResult?.retainedManagedPaths ?? [],
217
+ withCodegraph,
216
218
  });
217
219
 
218
220
  const { create, update, unchanged, skip } = result.summary;
package/src/cli/index.js CHANGED
@@ -92,6 +92,10 @@ export async function runCli({ argv, packageRoot, projectRoot, packageVersion })
92
92
  console.log(' Values: claude, antigravity, codex, opencode');
93
93
  console.log(' Example: ukit install --tools=claude,codex,opencode');
94
94
  console.log(' Use --tools=none to disable all optional adapters');
95
+ console.log(' --with-codegraph Enable CodeGraph MCP integration in CLAUDE.md');
96
+ console.log(' Adds routing rules that prefer codegraph_* tools for');
97
+ console.log(' symbol search, context building, and impact analysis.');
98
+ console.log(' Omit this flag to remove the section on reinstall.');
95
99
  console.log('');
96
100
  console.log('Maintainer / debug examples:');
97
101
  console.log(' ukit index build');
@@ -217,6 +217,7 @@ export async function runInstallPipeline({
217
217
  dryRun,
218
218
  selectedAdapterItemIds,
219
219
  retainedManagedRelativePaths = [],
220
+ withCodegraph = false,
220
221
  }) {
221
222
  // Check for an existing install before making any changes.
222
223
  // cleanupLegacyPaths() is only safe to run on reinstalls: on a fresh install
@@ -239,6 +240,7 @@ export async function runInstallPipeline({
239
240
  stackContext,
240
241
  packageVersion,
241
242
  providerContext,
243
+ withCodegraph,
242
244
  });
243
245
 
244
246
  const plan = await buildInstallPlan({
@@ -1,4 +1,17 @@
1
- export function buildTemplateVariables({ projectContext, stackContext, packageVersion, providerContext }) {
1
+ const CODEGRAPH_SECTION = `
2
+ ## CodeGraph Integration (active)
3
+
4
+ CodeGraph MCP is enabled for this project. When \`codegraph_*\` tools appear in your tool list:
5
+ - **Symbol search** → \`codegraph_search\` (replaces \`node .claude/ukit/index/query-index.mjs\`)
6
+ - **Context building** → \`codegraph_context\` (replaces \`resolve-context.mjs\`)
7
+ - **Impact analysis** → \`codegraph_impact\` (replaces \`impact-context.mjs\`)
8
+ - **Call graph** → \`codegraph_trace\`, \`codegraph_callers\`, \`codegraph_callees\` (new capability, no UKit equivalent)
9
+
10
+ UKit routing, memory, and skill activation remain primary. CodeGraph is the index query layer only.
11
+ To disable: rerun \`ukit install\` without \`--with-codegraph\`.
12
+ `;
13
+
14
+ export function buildTemplateVariables({ projectContext, stackContext, packageVersion, providerContext, withCodegraph = false }) {
2
15
  return {
3
16
  project: {
4
17
  name: projectContext.project.name,
@@ -35,5 +48,6 @@ export function buildTemplateVariables({ projectContext, stackContext, packageVe
35
48
  user: {
36
49
  profile: 'default',
37
50
  },
51
+ codegraphSection: withCodegraph ? CODEGRAPH_SECTION : '',
38
52
  };
39
53
  }
@@ -165,3 +165,4 @@ DuraOne skill chỉ active khi pack `duraone` được cài hoặc `.claude/skil
165
165
  - `.claude/skills/duraone/references/sql.md`
166
166
  - `.claude/skills/duraone/references/workflow.md`
167
167
  - Khi không active: dùng generic coding standards + project-specific patterns từ index.
168
+ {{codegraphSection}}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.5",
2
+ "version": "1.5.6",
3
3
  "agent": "claude-code",
4
4
  "autonomy": {
5
5
  "level": "balanced",