@leejungkiin/awkit 1.4.2 → 1.4.3
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/bin/awk.js +26 -1
- package/package.json +1 -1
package/bin/awk.js
CHANGED
|
@@ -2158,6 +2158,29 @@ async function cmdInit(forceFlag = false) {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
2160
|
|
|
2161
|
+
// ── 5.5. GitNexus: Code Intelligence Index ──────────────────────────────
|
|
2162
|
+
info('Indexing codebase with GitNexus...');
|
|
2163
|
+
try {
|
|
2164
|
+
// Only index if there are actual source files
|
|
2165
|
+
const hasSource = execSync(
|
|
2166
|
+
`find . -maxdepth 4 \\( -name "*.swift" -o -name "*.kt" -o -name "*.ts" -o -name "*.js" -o -name "*.dart" -o -name "*.py" \\) -not -path "*/node_modules/*" -not -path "*/.build/*" -not -path "*/Pods/*" | head -1`,
|
|
2167
|
+
{ cwd, encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'] }
|
|
2168
|
+
).trim();
|
|
2169
|
+
|
|
2170
|
+
if (hasSource) {
|
|
2171
|
+
execSync('npx -y gitnexus analyze', {
|
|
2172
|
+
cwd,
|
|
2173
|
+
stdio: 'ignore',
|
|
2174
|
+
});
|
|
2175
|
+
ok('GitNexus index created (.gitnexus/)');
|
|
2176
|
+
} else {
|
|
2177
|
+
dim('No source files found — skipping GitNexus index (run later: npx gitnexus analyze)');
|
|
2178
|
+
}
|
|
2179
|
+
} catch (e) {
|
|
2180
|
+
warn(`GitNexus indexing failed: ${e.message}`);
|
|
2181
|
+
dim('Run manually later: npx gitnexus analyze');
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2161
2184
|
// ── 6. Summary ─────────────────────────────────────────────────────────────
|
|
2162
2185
|
log('');
|
|
2163
2186
|
log(`${C.gray}${'─'.repeat(56)}${C.reset}`);
|
|
@@ -2166,11 +2189,13 @@ async function cmdInit(forceFlag = false) {
|
|
|
2166
2189
|
dim(`Type: ${projectType}`);
|
|
2167
2190
|
dim(`Firebase: analytics, crashlytics, remote-config, auth`);
|
|
2168
2191
|
dim(`Files: .project-identity, ${workspaceName}, CODEBASE.md`);
|
|
2169
|
-
dim(`Symphony: task tracking ready
|
|
2192
|
+
dim(`Symphony: task tracking ready`);
|
|
2193
|
+
dim(`GitNexus: code intelligence index`);
|
|
2170
2194
|
log('');
|
|
2171
2195
|
log(`${C.cyan}👉 Open ${workspaceName} in VS Code to get started.${C.reset}`);
|
|
2172
2196
|
log(`${C.cyan}👉 Run '/codebase-sync' in AI chat to keep CODEBASE.md updated.${C.reset}`);
|
|
2173
2197
|
log(`${C.cyan}👉 Run 'symphony task list' to manage tasks.${C.reset}`);
|
|
2198
|
+
log(`${C.cyan}👉 Run 'npx gitnexus analyze' after major changes to refresh index.${C.reset}`);
|
|
2174
2199
|
log('');
|
|
2175
2200
|
}
|
|
2176
2201
|
|