Skip to content

Commit 6a9d30a

Browse files
committed
Integrate local skills CLI after mainline drift
PR #1162 adds local skills discovery and CLI management. Current main already changed startup heap handling and knowledge graph corruption-test isolation, so the merge keeps the skills CLI fast-path while preserving main's unconditional NODE_OPTIONS heap guard and searches corruption artifacts from the resolved Orama path. Constraint: Resolve PR #1162 against main at f102b60 without dropping either the skills CLI bypass or the mainline heap/knowledge-graph fixes. Rejected: Keep the PR's older CCR-only heap guard | main intentionally expanded the heap guard for local long-running agents. Rejected: Search corrupted Orama files from a broad config root | the resolved persistence path is the authoritative location under redirected config state. Confidence: high Scope-risk: moderate Directive: Keep skills management commands available before provider startup validation so broken provider config does not block local skills inspection. Tested: bun test src/utils/conversationArc.perf.test.ts src/skills/loadSkillsDir.test.ts src/cli/handlers/skills.test.ts src/commands.test.ts src/entrypoints/cli.skills.test.ts src/utils/knowledgeGraph.stress.test.ts Tested: bun run build Tested: node dist/cli.mjs --version Tested: git diff --check
2 parents f102b60 + 732be43 commit 6a9d30a

21 files changed

Lines changed: 2231 additions & 123 deletions

src/bootstrap/state.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ export const onSessionSwitch = sessionSwitched.subscribe
514514
*/
515515
export function getSessionProjectDir(): string | null {
516516
const ctx = getSdkContext()
517-
return ctx?.sessionProjectDir ?? STATE.sessionProjectDir
517+
return ctx ? ctx.sessionProjectDir : STATE.sessionProjectDir
518518
}
519519

520520
export function getOriginalCwd(): string {
@@ -1651,4 +1651,3 @@ export function isReplBridgeActive(): boolean {
16511651
export function getReplBridgeHandle(): null {
16521652
return null
16531653
}
1654-

0 commit comments

Comments
 (0)