@danielblomma/cortex-mcp 0.4.2 → 0.6.4

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 (61) hide show
  1. package/README.md +64 -16
  2. package/bin/cortex.mjs +32 -60
  3. package/package.json +17 -3
  4. package/scaffold/.context/ontology.cypher +47 -0
  5. package/scaffold/.githooks/post-commit +14 -0
  6. package/scaffold/.githooks/post-rewrite +23 -0
  7. package/scaffold/mcp/package-lock.json +19 -23
  8. package/scaffold/mcp/package.json +3 -1
  9. package/scaffold/mcp/src/contextEntities.ts +311 -0
  10. package/scaffold/mcp/src/defaults.ts +6 -0
  11. package/scaffold/mcp/src/embed.ts +163 -37
  12. package/scaffold/mcp/src/frontmatter.ts +39 -0
  13. package/scaffold/mcp/src/graph.ts +330 -109
  14. package/scaffold/mcp/src/graphMetrics.ts +12 -0
  15. package/scaffold/mcp/src/impactPresentation.ts +202 -0
  16. package/scaffold/mcp/src/impactRanking.ts +237 -0
  17. package/scaffold/mcp/src/impactResponse.ts +47 -0
  18. package/scaffold/mcp/src/impactResults.ts +173 -0
  19. package/scaffold/mcp/src/impactSeed.ts +33 -0
  20. package/scaffold/mcp/src/impactTraversal.ts +83 -0
  21. package/scaffold/mcp/src/jsonl.ts +34 -0
  22. package/scaffold/mcp/src/loadGraph.ts +345 -86
  23. package/scaffold/mcp/src/paths.ts +24 -2
  24. package/scaffold/mcp/src/presets.ts +137 -0
  25. package/scaffold/mcp/src/relatedResponse.ts +30 -0
  26. package/scaffold/mcp/src/relatedTraversal.ts +101 -0
  27. package/scaffold/mcp/src/rules.ts +27 -0
  28. package/scaffold/mcp/src/search.ts +191 -355
  29. package/scaffold/mcp/src/searchCore.ts +274 -0
  30. package/scaffold/mcp/src/searchResults.ts +133 -0
  31. package/scaffold/mcp/src/server.ts +95 -3
  32. package/scaffold/mcp/src/types.ts +99 -3
  33. package/scaffold/scripts/context.sh +12 -46
  34. package/scaffold/scripts/dashboard.mjs +797 -0
  35. package/scaffold/scripts/dashboard.sh +13 -0
  36. package/scaffold/scripts/ingest.mjs +2219 -59
  37. package/scaffold/scripts/install-git-hooks.sh +3 -1
  38. package/scaffold/scripts/memory-compile.mjs +232 -0
  39. package/scaffold/scripts/memory-compile.sh +20 -0
  40. package/scaffold/scripts/memory-lint.mjs +375 -0
  41. package/scaffold/scripts/memory-lint.sh +20 -0
  42. package/scaffold/scripts/parsers/config.mjs +178 -0
  43. package/scaffold/scripts/parsers/cpp.mjs +316 -0
  44. package/scaffold/scripts/parsers/dotnet/VbNetParser/Program.cs +374 -0
  45. package/scaffold/scripts/parsers/dotnet/VbNetParser/VbNetParser.csproj +13 -0
  46. package/scaffold/scripts/parsers/javascript/ast.mjs +61 -0
  47. package/scaffold/scripts/parsers/javascript/calls.mjs +53 -0
  48. package/scaffold/scripts/parsers/javascript/chunks.mjs +388 -0
  49. package/scaffold/scripts/parsers/javascript/imports.mjs +162 -0
  50. package/scaffold/scripts/parsers/javascript/patterns.mjs +82 -0
  51. package/scaffold/scripts/parsers/javascript/scope-analysis.mjs +3 -0
  52. package/scaffold/scripts/parsers/javascript/scope-builder.mjs +305 -0
  53. package/scaffold/scripts/parsers/javascript/scope-resolver.mjs +82 -0
  54. package/scaffold/scripts/parsers/javascript.mjs +27 -350
  55. package/scaffold/scripts/parsers/resources.mjs +166 -0
  56. package/scaffold/scripts/parsers/sql.mjs +137 -0
  57. package/scaffold/scripts/parsers/vbnet.mjs +143 -0
  58. package/scaffold/scripts/status.sh +15 -8
  59. package/scaffold/scripts/capture-note.sh +0 -55
  60. package/scaffold/scripts/plan-state-engine.cjs +0 -310
  61. package/scaffold/scripts/plan-state.sh +0 -71
package/README.md CHANGED
@@ -1,5 +1,12 @@
1
+ <p align="center">
2
+ <img src="docs/logo.png" alt="Cortex" width="600" />
3
+ </p>
4
+
1
5
  # Cortex MCP
2
6
 
7
+ [![npm version](https://img.shields.io/npm/v/%40danielblomma%2Fcortex-mcp)](https://www.npmjs.com/package/@danielblomma/cortex-mcp)
8
+ [![npm downloads](https://img.shields.io/npm/dw/%40danielblomma%2Fcortex-mcp)](https://www.npmjs.com/package/@danielblomma/cortex-mcp)
9
+
3
10
  `@danielblomma/cortex-mcp` is a local, repo-scoped context platform for coding assistants.
4
11
  It indexes your codebase into structured entities (files, rules, ADRs) and exposes that context over MCP (JSON-RPC over stdio).
5
12
 
@@ -15,20 +22,10 @@ It indexes your codebase into structured entities (files, rules, ADRs) and expos
15
22
 
16
23
  ## Core Features
17
24
 
18
- - Semantic search (files, rules, ADRs).
19
- - Graph relationships between entities and constraints.
25
+ - Semantic search across files, rules, and ADRs.
26
+ - Graph relationships between entities and architectural constraints.
20
27
  - Architectural rules and ADR context for implementation decisions.
21
-
22
- ## Advanced Features (Experimental)
23
-
24
- Cortex can extract function-level chunks and build call graphs in experimental builds:
25
-
26
- - `context.find_callers` - what calls this function?
27
- - `context.trace_calls` - what does this function call?
28
- - `context.impact_analysis` - what is impacted if this function changes?
29
- - Requires JavaScript/TypeScript codebase and semantic chunking/call graph indexing enabled.
30
-
31
- These APIs are experimental and may not be exposed in every installation.
28
+ - Live TUI dashboard showing what Cortex adds to your repo.
32
29
 
33
30
  ## Requirements
34
31
 
@@ -53,6 +50,7 @@ cortex init --bootstrap
53
50
  This will:
54
51
 
55
52
  - scaffold `.context/`, `scripts/`, `mcp/`, `.githooks/`, and docs files
53
+ - activate git hooks for checkout, pull/merge, commit, and rewrite events
56
54
  - build and prepare the local MCP server
57
55
  - try to auto-register MCP connections for Claude/Codex (if installed)
58
56
  - start background sync unless disabled
@@ -63,6 +61,12 @@ Disable watcher setup:
63
61
  cortex init --bootstrap --no-watch
64
62
  ```
65
63
 
64
+ Check context status:
65
+
66
+ ```bash
67
+ cortex status
68
+ ```
69
+
66
70
  ## Verify MCP Connection
67
71
 
68
72
  Claude:
@@ -173,6 +177,31 @@ Input:
173
177
  - "Show related files for this ADR."
174
178
  - "What active architectural rules apply to this API?"
175
179
 
180
+ ## Dashboard
181
+
182
+ A live TUI that shows what Cortex adds to your repository at a glance.
183
+
184
+ ```bash
185
+ cortex dashboard
186
+ ```
187
+
188
+ ![Cortex dashboard](https://raw.githubusercontent.com/DanielBlomma/cortex/main/docs/dashboard-screenshot.png)
189
+
190
+ The dashboard displays:
191
+
192
+ - **WITHOUT vs WITH CORTEX** — side-by-side comparison of raw files versus indexed entities (files, chunks, relations, rules, embeddings, trust signals).
193
+ - **TOKENS** — per-task token estimate comparing typical LLM file reads without Cortex (~12 files) versus Cortex searches (~3 queries). Shows the reduction ratio and percentage.
194
+ - **CORTEX ADDS** — summary of what Cortex layers on top: chunks, relations, rules, embeddings, and which capabilities are unlocked (semantic search, graph traversal, impact analysis).
195
+ - **RELATIONS** — bar chart of relation types in the graph (CALLS, DEFINES, CONSTRAINS, IMPLEMENTS, IMPORTS, SUPERSEDES) and their counts.
196
+ - **HEALTH** — freshness percentage (how up-to-date the index is relative to uncommitted changes), last sync timestamp, and embedding status with model name.
197
+ - **TOP CONNECTED** — the five most connected entities in the graph by edge count, showing which files or rules are central to the codebase.
198
+
199
+ Options:
200
+
201
+ - `--interval <sec>` — auto-refresh interval (default: 2 seconds).
202
+ - Press `r` to force refresh, `q` to quit.
203
+ - Non-TTY output (piped) produces a single snapshot with ANSI stripped.
204
+
176
205
  ## Common Commands
177
206
 
178
207
  ```text
@@ -182,13 +211,32 @@ cortex mcp
182
211
  cortex bootstrap
183
212
  cortex update
184
213
  cortex status
214
+ cortex dashboard [--interval <sec>]
185
215
  cortex watch [start|stop|status|run|once] [--interval <sec>] [--debounce <sec>] [--mode <auto|event|poll>]
186
- cortex note <title> [text]
187
- cortex plan
188
- cortex todo [text|list|done <id>|reopen <id>|remove <id>]
189
216
  cortex help
190
217
  ```
191
218
 
219
+ ## Automated Release
220
+
221
+ This repository includes two GitHub Actions workflows:
222
+
223
+ - `Release Bump` (`.github/workflows/release-bump.yml`)
224
+ - Manual `workflow_dispatch` from `main`
225
+ - Bumps semver (`patch`/`minor`/`major`)
226
+ - Syncs release metadata files (`package.json`, `server.json`, plugin manifests)
227
+ - Runs tests
228
+ - Commits and tags `vX.Y.Z`
229
+
230
+ - `Release Publish` (`.github/workflows/release-publish.yml`)
231
+ - Triggers on tag push `v*.*.*`
232
+ - Verifies tag/version sync
233
+ - Runs root tests + MCP build/tests
234
+ - Publishes `@danielblomma/cortex-mcp` to npm
235
+
236
+ Required GitHub secret:
237
+
238
+ - `NPM_TOKEN` (npm automation token with publish rights for `@danielblomma/cortex-mcp`)
239
+
192
240
  ## Limitations
193
241
 
194
242
  - Requires repo initialization (`cortex init --bootstrap`).
package/bin/cortex.mjs CHANGED
@@ -16,7 +16,6 @@ const GITIGNORE_LINES = [
16
16
  ".context/db/",
17
17
  ".context/embeddings/",
18
18
  ".context/cache/",
19
- ".context/plan/",
20
19
  ".context/hooks/",
21
20
  ".npm-cache/",
22
21
  "mcp/.npm-cache/",
@@ -56,9 +55,8 @@ function printHelp() {
56
55
  console.log(" cortex ingest [--changed] [--verbose]");
57
56
  console.log(" cortex embed [--changed]");
58
57
  console.log(" cortex graph-load [--no-reset]");
59
- console.log(" cortex note <title> [text]");
60
- console.log(" cortex plan");
61
- console.log(" cortex todo [text|list|done <id>|reopen <id>|remove <id>]");
58
+ console.log(" cortex memory-compile [--dry-run] [--verbose]");
59
+ console.log(" cortex memory-lint [--verbose] [--json]");
62
60
  console.log(" cortex help");
63
61
  }
64
62
 
@@ -257,32 +255,6 @@ function upsertSectionByMarkers(targetPath, startMarker, endMarker, sectionConte
257
255
 
258
256
  function installClaudeCommands(targetDir) {
259
257
  const commandSpecs = [
260
- {
261
- file: "note.md",
262
- content: `---
263
- description: "Save important project context into Cortex notes"
264
- argument-hint: "<title> [details]"
265
- ---
266
- Execute: cortex note "$ARGUMENTS"
267
- `
268
- },
269
- {
270
- file: "todo.md",
271
- content: `---
272
- description: "Add or list Cortex TODOs"
273
- argument-hint: "<text|list|done <id>|reopen <id>|remove <id>>"
274
- ---
275
- Execute: cortex todo "$ARGUMENTS"
276
- `
277
- },
278
- {
279
- file: "plan.md",
280
- content: `---
281
- description: "Show Cortex auto-plan progress"
282
- ---
283
- Execute: cortex plan
284
- `
285
- },
286
258
  {
287
259
  file: "context-update.md",
288
260
  content: `---
@@ -309,10 +281,7 @@ function installCodexAgentsSection(targetDir) {
309
281
  const startMarker = "<!-- cortex:auto:start -->";
310
282
  const endMarker = "<!-- cortex:auto:end -->";
311
283
  const section = `## Cortex Auto Workflow
312
- - Use \`cortex todo "<task>"\` for every new implementation task.
313
- - Use \`cortex note "<title>" "<details>"\` when an important decision is made.
314
284
  - Run \`cortex update\` before completing substantial code changes.
315
- - Use \`cortex plan\` to inspect current progress and next command.
316
285
  - If background sync is enabled, check with \`cortex watch status\`.`;
317
286
  const changed = upsertSectionByMarkers(agentsPath, startMarker, endMarker, section);
318
287
  return { path: agentsPath, changed };
@@ -461,6 +430,27 @@ async function connectMcpClients(targetDir, options = {}) {
461
430
  return connected;
462
431
  }
463
432
 
433
+ async function maybeInstallGitHooks(targetDir) {
434
+ const installScript = path.join(targetDir, "scripts", "install-git-hooks.sh");
435
+ if (!fs.existsSync(installScript)) {
436
+ return false;
437
+ }
438
+
439
+ const gitRepo = await runCommandResult("git", ["rev-parse", "--show-toplevel"], targetDir, "ignore");
440
+ if (!gitRepo.ok) {
441
+ console.log("[cortex] git hooks skipped (not a Git repository)");
442
+ return false;
443
+ }
444
+
445
+ try {
446
+ await runCommand("bash", [installScript], targetDir);
447
+ return true;
448
+ } catch (error) {
449
+ console.log(`[cortex] failed to install git hooks: ${toErrorMessage(error)}`);
450
+ return false;
451
+ }
452
+ }
453
+
464
454
  function ensureProjectInitialized(targetDir) {
465
455
  const mcpPackageJson = path.join(targetDir, "mcp", "package.json");
466
456
  if (!fs.existsSync(mcpPackageJson)) {
@@ -504,7 +494,7 @@ async function ensureProjectInitializedForMcp(targetDir) {
504
494
  fs.mkdirSync(targetDir, { recursive: true });
505
495
  installScaffold(targetDir, false);
506
496
  installAssistantHelpers(targetDir);
507
- await markPlanEvent(targetDir, "init");
497
+ await maybeInstallGitHooks(targetDir);
508
498
  console.log(`[cortex] auto-init completed in ${targetDir}`);
509
499
  }
510
500
 
@@ -522,18 +512,6 @@ async function runContextCommand(cwd, contextArgs) {
522
512
  await runCommand("bash", [contextScript, ...contextArgs], cwd);
523
513
  }
524
514
 
525
- async function markPlanEvent(targetDir, eventName) {
526
- const planScript = path.join(targetDir, "scripts", "plan-state.sh");
527
- if (!fs.existsSync(planScript)) {
528
- return;
529
- }
530
-
531
- const result = await runCommandResult("bash", [planScript, "event", eventName], targetDir, "ignore");
532
- if (!result.ok) {
533
- console.log(`[cortex] warning: failed to update automatic plan state for event '${eventName}'`);
534
- }
535
- }
536
-
537
515
  async function run() {
538
516
  const cliVersion = readCliVersion();
539
517
  process.env.CORTEX_CLI_VERSION = cliVersion;
@@ -558,11 +536,11 @@ async function run() {
558
536
  fs.mkdirSync(target, { recursive: true });
559
537
  installScaffold(target, force);
560
538
  const helpers = installAssistantHelpers(target);
561
- await markPlanEvent(target, "init");
539
+ await maybeInstallGitHooks(target);
562
540
 
563
541
  console.log(`[cortex] initialized in ${target}`);
564
542
  console.log("[cortex] scaffold copied: .context/, scripts/, mcp/, .githooks/, docs/");
565
- console.log(`[cortex] Claude commands ready: /note /todo /plan /context-update (${helpers.claude.total} files)`);
543
+ console.log(`[cortex] Claude commands ready: /context-update (${helpers.claude.total} files)`);
566
544
  if (helpers.codex.changed) {
567
545
  console.log("[cortex] Codex workflow instructions added to AGENTS.md");
568
546
  } else {
@@ -600,10 +578,7 @@ async function run() {
600
578
  }
601
579
 
602
580
  if (connect) {
603
- const connected = await connectMcpClients(target);
604
- if (connected > 0) {
605
- await markPlanEvent(target, "connect");
606
- }
581
+ await connectMcpClients(target);
607
582
  }
608
583
 
609
584
  if (watch && bootstrap) {
@@ -619,10 +594,7 @@ async function run() {
619
594
  if (helpers.claude.changed > 0 || helpers.codex.changed) {
620
595
  console.log("[cortex] assistant helpers updated (.claude/commands + AGENTS.md)");
621
596
  }
622
- const connected = await connectMcpClients(target, { skipBuild });
623
- if (connected > 0) {
624
- await markPlanEvent(target, "connect");
625
- }
597
+ await connectMcpClients(target, { skipBuild });
626
598
  return;
627
599
  }
628
600
 
@@ -648,11 +620,11 @@ async function run() {
648
620
  "ingest",
649
621
  "embed",
650
622
  "graph-load",
623
+ "dashboard",
651
624
  "watch",
652
- "note",
653
- "plan",
654
- "todo",
655
- "refresh"
625
+ "refresh",
626
+ "memory-compile",
627
+ "memory-lint"
656
628
  ]);
657
629
 
658
630
  if (!passthrough.has(command)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielblomma/cortex-mcp",
3
3
  "mcpName": "io.github.DanielBlomma/cortex",
4
- "version": "0.4.2",
4
+ "version": "0.6.4",
5
5
  "description": "Local, repo-scoped context platform for coding assistants. Semantic search, graph relationships, and architectural rule context.",
6
6
  "type": "module",
7
7
  "author": "Daniel Blomma",
@@ -24,17 +24,31 @@
24
24
  "claude",
25
25
  "codex"
26
26
  ],
27
+ "exports": {
28
+ ".": "./bin/cortex.mjs",
29
+ "./types": "./mcp/dist/types.js"
30
+ },
27
31
  "bin": {
28
32
  "cortex": "bin/cortex.mjs"
29
33
  },
30
34
  "files": [
31
35
  "bin",
32
- "scaffold",
36
+ "scaffold/.context",
37
+ "scaffold/.githooks",
38
+ "scaffold/docs",
39
+ "scaffold/scripts",
40
+ "scaffold/mcp/src",
41
+ "scaffold/mcp/tests",
42
+ "scaffold/mcp/package.json",
43
+ "scaffold/mcp/package-lock.json",
44
+ "scaffold/mcp/tsconfig.json",
33
45
  "README.md",
34
46
  "docs/MCP_MARKETPLACE.md"
35
47
  ],
36
48
  "scripts": {
37
- "test": "node tests/plan-state.test.mjs",
49
+ "test": "node tests/context-regressions.test.mjs && node --test tests/ingest-units.test.mjs tests/javascript-parser.test.mjs tests/sql-parser.test.mjs tests/config-parser.test.mjs tests/resources-parser.test.mjs tests/vbnet-parser.test.mjs tests/cpp-parser.test.mjs tests/multi-level.test.mjs",
50
+ "release:sync-version": "node scripts/sync-release-version.mjs",
51
+ "release:check-version-sync": "node scripts/sync-release-version.mjs --check",
38
52
  "prepublishOnly": "echo 'Ready to publish to npm'"
39
53
  },
40
54
  "engines": {
@@ -45,12 +45,46 @@ CREATE NODE TABLE IF NOT EXISTS Chunk(
45
45
  kind STRING,
46
46
  signature STRING,
47
47
  body STRING,
48
+ description STRING,
48
49
  start_line INT64,
49
50
  end_line INT64,
50
51
  language STRING,
52
+ exported BOOL,
51
53
  checksum STRING,
52
54
  updated_at STRING,
55
+ source_of_truth BOOL,
56
+ trust_level INT64,
57
+ status STRING,
58
+ PRIMARY KEY(id)
59
+ );
60
+
61
+ CREATE NODE TABLE IF NOT EXISTS Module(
62
+ id STRING,
63
+ path STRING,
64
+ name STRING,
65
+ summary STRING,
66
+ file_count INT64,
67
+ exported_symbols STRING,
68
+ updated_at STRING,
69
+ source_of_truth BOOL,
70
+ trust_level INT64,
71
+ status STRING,
72
+ PRIMARY KEY(id)
73
+ );
74
+
75
+ CREATE NODE TABLE IF NOT EXISTS Project(
76
+ id STRING,
77
+ path STRING,
78
+ name STRING,
79
+ kind STRING,
80
+ language STRING,
81
+ target_framework STRING,
82
+ summary STRING,
83
+ file_count INT64,
84
+ updated_at STRING,
85
+ source_of_truth BOOL,
53
86
  trust_level INT64,
87
+ status STRING,
54
88
  PRIMARY KEY(id)
55
89
  );
56
90
 
@@ -61,3 +95,16 @@ CREATE REL TABLE IF NOT EXISTS SUPERSEDES(FROM ADR TO ADR, reason STRING);
61
95
  CREATE REL TABLE IF NOT EXISTS DEFINES(FROM File TO Chunk);
62
96
  CREATE REL TABLE IF NOT EXISTS CALLS(FROM Chunk TO Chunk, call_type STRING);
63
97
  CREATE REL TABLE IF NOT EXISTS IMPORTS(FROM Chunk TO File, import_name STRING);
98
+ CREATE REL TABLE IF NOT EXISTS CALLS_SQL(FROM File TO Chunk, note STRING);
99
+ CREATE REL TABLE IF NOT EXISTS USES_CONFIG_KEY(FROM File TO Chunk, note STRING);
100
+ CREATE REL TABLE IF NOT EXISTS USES_RESOURCE_KEY(FROM File TO Chunk, note STRING);
101
+ CREATE REL TABLE IF NOT EXISTS USES_SETTING_KEY(FROM File TO Chunk, note STRING);
102
+ CREATE REL TABLE IF NOT EXISTS CONTAINS(FROM Module TO File);
103
+ CREATE REL TABLE IF NOT EXISTS CONTAINS_MODULE(FROM Module TO Module);
104
+ CREATE REL TABLE IF NOT EXISTS EXPORTS(FROM Module TO Chunk);
105
+ CREATE REL TABLE IF NOT EXISTS INCLUDES_FILE(FROM Project TO File);
106
+ CREATE REL TABLE IF NOT EXISTS REFERENCES_PROJECT(FROM Project TO Project, note STRING);
107
+ CREATE REL TABLE IF NOT EXISTS USES_RESOURCE(FROM File TO File, note STRING);
108
+ CREATE REL TABLE IF NOT EXISTS USES_SETTING(FROM File TO File, note STRING);
109
+ CREATE REL TABLE IF NOT EXISTS USES_CONFIG(FROM File TO File, note STRING);
110
+ CREATE REL TABLE IF NOT EXISTS TRANSFORMS_CONFIG(FROM File TO File, note STRING);
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || true)"
5
+ if [[ -z "$REPO_ROOT" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ RUNNER="$REPO_ROOT/.githooks/_cortex-update-runner.sh"
10
+ if [[ ! -x "$RUNNER" ]]; then
11
+ exit 0
12
+ fi
13
+
14
+ nohup bash "$RUNNER" >/dev/null 2>&1 &
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ command_name="${1:-}"
5
+ case "$command_name" in
6
+ amend|rebase)
7
+ ;;
8
+ *)
9
+ exit 0
10
+ ;;
11
+ esac
12
+
13
+ REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || true)"
14
+ if [[ -z "$REPO_ROOT" ]]; then
15
+ exit 0
16
+ fi
17
+
18
+ RUNNER="$REPO_ROOT/.githooks/_cortex-update-runner.sh"
19
+ if [[ ! -x "$RUNNER" ]]; then
20
+ exit 0
21
+ fi
22
+
23
+ nohup bash "$RUNNER" >/dev/null 2>&1 &
@@ -33,9 +33,9 @@
33
33
  }
34
34
  },
35
35
  "node_modules/@hono/node-server": {
36
- "version": "1.19.9",
37
- "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.9.tgz",
38
- "integrity": "sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw==",
36
+ "version": "1.19.10",
37
+ "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.10.tgz",
38
+ "integrity": "sha512-hZ7nOssGqRgyV3FVVQdfi+U4q02uB23bpnYpdvNXkYTRRyWx84b7yf1ans+dnJ/7h41sGL3CeQTfO+ZGxuO+Iw==",
39
39
  "license": "MIT",
40
40
  "engines": {
41
41
  "node": ">=18.14.1"
@@ -236,7 +236,6 @@
236
236
  "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.13.tgz",
237
237
  "integrity": "sha512-akNQMv0wW5uyRpD2v2IEyRSZiR+BeGuoB6L310EgGObO44HSMNT8z1xzio28V8qOrgYaopIDNA18YgdXd+qTiw==",
238
238
  "license": "MIT",
239
- "peer": true,
240
239
  "dependencies": {
241
240
  "undici-types": "~6.21.0"
242
241
  }
@@ -1040,12 +1039,12 @@
1040
1039
  }
1041
1040
  },
1042
1041
  "node_modules/express-rate-limit": {
1043
- "version": "8.2.1",
1044
- "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.2.1.tgz",
1045
- "integrity": "sha512-PCZEIEIxqwhzw4KF0n7QF4QqruVTcF73O5kFKUnGOyjbCCgizBBiFaYpd/fnBLUMPw/BWw9OsiN7GgrNYr7j6g==",
1042
+ "version": "8.3.1",
1043
+ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.3.1.tgz",
1044
+ "integrity": "sha512-D1dKN+cmyPWuvB+G2SREQDzPY1agpBIcTa9sJxOPMCNeH3gwzhqJRDWCXW3gg0y//+LQ/8j52JbMROWyrKdMdw==",
1046
1045
  "license": "MIT",
1047
1046
  "dependencies": {
1048
- "ip-address": "10.0.1"
1047
+ "ip-address": "10.1.0"
1049
1048
  },
1050
1049
  "engines": {
1051
1050
  "node": ">= 16"
@@ -1285,11 +1284,10 @@
1285
1284
  }
1286
1285
  },
1287
1286
  "node_modules/hono": {
1288
- "version": "4.12.3",
1289
- "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.3.tgz",
1290
- "integrity": "sha512-SFsVSjp8sj5UumXOOFlkZOG6XS9SJDKw0TbwFeV+AJ8xlST8kxK5Z/5EYa111UY8732lK2S/xB653ceuaoGwpg==",
1287
+ "version": "4.12.7",
1288
+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.7.tgz",
1289
+ "integrity": "sha512-jq9l1DM0zVIvsm3lv9Nw9nlJnMNPOcAtsbsgiUhWcFzPE99Gvo6yRTlszSLLYacMeQ6quHD6hMfId8crVHvexw==",
1291
1290
  "license": "MIT",
1292
- "peer": true,
1293
1291
  "engines": {
1294
1292
  "node": ">=16.9.0"
1295
1293
  }
@@ -1363,9 +1361,9 @@
1363
1361
  "license": "ISC"
1364
1362
  },
1365
1363
  "node_modules/ip-address": {
1366
- "version": "10.0.1",
1367
- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.0.1.tgz",
1368
- "integrity": "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==",
1364
+ "version": "10.1.0",
1365
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz",
1366
+ "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==",
1369
1367
  "license": "MIT",
1370
1368
  "engines": {
1371
1369
  "node": ">= 12"
@@ -1681,9 +1679,9 @@
1681
1679
  }
1682
1680
  },
1683
1681
  "node_modules/path-to-regexp": {
1684
- "version": "8.3.0",
1685
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",
1686
- "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",
1682
+ "version": "8.4.0",
1683
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.0.tgz",
1684
+ "integrity": "sha512-PuseHIvAnz3bjrM2rGJtSgo1zjgxapTLZ7x2pjhzWwlp4SJQgK3f3iZIQwkpEnBaKz6seKBADpM4B4ySkuYypg==",
1687
1685
  "license": "MIT",
1688
1686
  "funding": {
1689
1687
  "type": "opencollective",
@@ -2277,9 +2275,9 @@
2277
2275
  }
2278
2276
  },
2279
2277
  "node_modules/tar": {
2280
- "version": "7.5.9",
2281
- "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.9.tgz",
2282
- "integrity": "sha512-BTLcK0xsDh2+PUe9F6c2TlRp4zOOBMTkoQHQIWSIzI0R7KG46uEwq4OPk2W7bZcprBMsuaeFsqwYr7pjh6CuHg==",
2278
+ "version": "7.5.11",
2279
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.11.tgz",
2280
+ "integrity": "sha512-ChjMH33/KetonMTAtpYdgUFr0tbz69Fp2v7zWxQfYZX4g5ZN2nOBXm1R2xyA+lMIKrLKIoKAwFj93jE/avX9cQ==",
2283
2281
  "license": "BlueOak-1.0.0",
2284
2282
  "dependencies": {
2285
2283
  "@isaacs/fs-minipass": "^4.0.0",
@@ -2446,7 +2444,6 @@
2446
2444
  "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
2447
2445
  "dev": true,
2448
2446
  "license": "Apache-2.0",
2449
- "peer": true,
2450
2447
  "bin": {
2451
2448
  "tsc": "bin/tsc",
2452
2449
  "tsserver": "bin/tsserver"
@@ -2605,7 +2602,6 @@
2605
2602
  "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
2606
2603
  "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
2607
2604
  "license": "MIT",
2608
- "peer": true,
2609
2605
  "funding": {
2610
2606
  "url": "https://github.com/sponsors/colinhacks"
2611
2607
  }
@@ -19,7 +19,9 @@
19
19
  },
20
20
  "overrides": {
21
21
  "cmake-js": "^8.0.0",
22
- "tar": "^7.5.9"
22
+ "express-rate-limit": "^8.3.1",
23
+ "hono": "^4.12.7",
24
+ "tar": "^7.5.11"
23
25
  },
24
26
  "devDependencies": {
25
27
  "@types/node": "^22.10.1",