@c4a/context-cli 0.7.73 → 0.7.81

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "protocol": "context.indexer.cli-release-manifest/v1",
3
3
  "package": "@c4a/context-cli",
4
- "version": "0.7.73",
4
+ "version": "0.7.81",
5
5
  "issuer": "context4ai/context",
6
6
  "bundles": [
7
7
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/context-cli",
3
- "version": "0.7.73",
3
+ "version": "0.7.81",
4
4
  "type": "module",
5
5
  "description": "Local runtime and Agent integration for traceable knowledge production",
6
6
  "license": "MIT",
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@c4a/agent-graph": "0.3.0",
27
- "@c4a/context": "0.7.73",
28
- "@c4a/extract": "0.7.73",
29
- "@c4a/extract-contract": "0.7.73",
30
- "@c4a/extract-go": "0.7.73",
31
- "@c4a/extract-mdx": "0.7.73",
32
- "@c4a/extract-proto": "0.7.73",
33
- "@c4a/extract-rush": "0.7.73",
34
- "@c4a/extract-sql": "0.7.73",
35
- "@c4a/extract-style": "0.7.73",
36
- "@c4a/extract-thrift": "0.7.73",
37
- "@c4a/extract-ts": "0.7.73",
27
+ "@c4a/context": "0.7.81",
28
+ "@c4a/extract": "0.7.81",
29
+ "@c4a/extract-contract": "0.7.81",
30
+ "@c4a/extract-go": "0.7.81",
31
+ "@c4a/extract-mdx": "0.7.81",
32
+ "@c4a/extract-proto": "0.7.81",
33
+ "@c4a/extract-rush": "0.7.81",
34
+ "@c4a/extract-sql": "0.7.81",
35
+ "@c4a/extract-style": "0.7.81",
36
+ "@c4a/extract-thrift": "0.7.81",
37
+ "@c4a/extract-ts": "0.7.81",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "fast-xml-parser": "^5.10.1",
@@ -472,6 +472,40 @@ var init_debugTrace = __esm(() => {
472
472
  SENSITIVE_OPTION = /^(--(?:auth|authorization|password|secret|token|otp|cookie|api-key))(?:=|$)/iu;
473
473
  });
474
474
 
475
+ // src/project/derivedValueCache.ts
476
+ class DerivedValueCache {
477
+ values = new Map;
478
+ bytes = 0;
479
+ get(key, calculate) {
480
+ const existing = this.values.get(key);
481
+ if (existing) {
482
+ this.values.delete(key);
483
+ this.values.set(key, existing);
484
+ return existing.value;
485
+ }
486
+ const value = calculate();
487
+ let serialized;
488
+ try {
489
+ serialized = JSON.stringify(value);
490
+ } catch {
491
+ return value;
492
+ }
493
+ if (serialized === undefined)
494
+ return value;
495
+ const bytes = Buffer.byteLength(key) + Buffer.byteLength(serialized);
496
+ if (bytes > 8 * 1024 * 1024)
497
+ return value;
498
+ while (this.values.size >= 512 || this.bytes + bytes > 8 * 1024 * 1024) {
499
+ const oldest = this.values.keys().next().value;
500
+ this.bytes -= this.values.get(oldest).bytes;
501
+ this.values.delete(oldest);
502
+ }
503
+ this.values.set(key, { value, bytes });
504
+ this.bytes += bytes;
505
+ return value;
506
+ }
507
+ }
508
+
475
509
  // src/project/commandReadCache.ts
476
510
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
477
511
  import { readdir, stat } from "node:fs/promises";
@@ -485,7 +519,7 @@ async function readCommandDirectory(path) {
485
519
  return [...entries];
486
520
  }
487
521
  function withCommandReadCache(action) {
488
- return commandReads.getStore() === undefined ? commandReads.run(new Map, action) : action();
522
+ return commandReads.getStore() === undefined ? commandValues.run(new DerivedValueCache, () => commandReads.run(new Map, action)) : action();
489
523
  }
490
524
  async function reuseCommandFileRead(input) {
491
525
  const cache = commandReads.getStore();
@@ -541,10 +575,15 @@ async function reuseCommandFileRead(input) {
541
575
  throw error;
542
576
  }
543
577
  }
544
- var commandReads, MAX_READS = 64;
578
+ function reuseCommandValue(key, calculate) {
579
+ const cache = commandValues.getStore();
580
+ return cache ? cache.get(key, calculate) : calculate();
581
+ }
582
+ var commandReads, MAX_READS = 64, commandValues;
545
583
  var init_commandReadCache = __esm(() => {
546
584
  init_debugTrace();
547
585
  commandReads = new AsyncLocalStorage2;
586
+ commandValues = new AsyncLocalStorage2;
548
587
  });
549
588
 
550
589
  // ../../node_modules/.bun/zod@3.25.76/node_modules/zod/v3/helpers/util.js
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.73
1
+ 0.7.81
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
4
- "version": "0.7.73",
4
+ "version": "0.7.81",
5
5
  "author": {
6
6
  "name": "c4a"
7
7
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.73",
3
+ "version": "0.7.81",
4
4
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
5
5
  "author": { "name": "c4a" },
6
6
  "homepage": "https://github.com/context4ai/c4a",
@@ -10,7 +10,7 @@
10
10
  "skills": "./skills/",
11
11
  "interface": {
12
12
  "displayName": "C4A Context",
13
- "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.73",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.81",
14
14
  "longDescription": "Create a Context workspace and use agent-guided next steps to register sources, run extraction, review candidates, build package outputs, and verify health without silently mutating source repositories.",
15
15
  "developerName": "c4a",
16
16
  "category": "Productivity",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.73",
4
+ "version": "0.7.81",
5
5
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
6
6
  "author": {
7
7
  "name": "Context4AI",
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.73"
5
+ "version": "0.7.81"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -378,7 +378,7 @@
378
378
  {
379
379
  "id": "procedure.source-capture-detailed",
380
380
  "path": "resources/procedures/source-capture-detailed.md",
381
- "digest": "sha256:f49fd80a51f68c1e27c59c9aeb4875fb21a4e53d10f26e75d251b4e024f49b83"
381
+ "digest": "sha256:1cc431617b39e474d97bc7491d43b88b2fc5e66b8678369d48dd973243da634f"
382
382
  },
383
383
  {
384
384
  "id": "procedure.source-update",
@@ -589,7 +589,7 @@
589
589
  },
590
590
  {
591
591
  "path": "provider.yaml",
592
- "digest": "sha256:e1f538feb3cf2b1d7b0501f12ee5b61d799e01ce6ca8921c06ab5777fc486e70"
592
+ "digest": "sha256:b6de8a6243166ee22e8082ee307cda0b3ffc7e1bc1b61c39d72c7a66cd30a0d3"
593
593
  },
594
594
  {
595
595
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -789,7 +789,7 @@
789
789
  },
790
790
  {
791
791
  "path": "resources/procedures/source-capture-detailed.md",
792
- "digest": "sha256:f49fd80a51f68c1e27c59c9aeb4875fb21a4e53d10f26e75d251b4e024f49b83"
792
+ "digest": "sha256:1cc431617b39e474d97bc7491d43b88b2fc5e66b8678369d48dd973243da634f"
793
793
  },
794
794
  {
795
795
  "path": "resources/procedures/source-update.md",
@@ -912,5 +912,5 @@
912
912
  "indexer": [],
913
913
  "workspace": []
914
914
  },
915
- "digest": "sha256:06bf467ee8af28f928d1baafd64b103410306ebe949e297665852a34c46a2e3c"
915
+ "digest": "sha256:aaec2f8a1e4531e2a017d5b30b2a6194f25ba095aea469861580542f04117914"
916
916
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.73
3
+ version: 0.7.81
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -63,8 +63,9 @@ each source. Registration itself does not fetch remote content or grant access.
63
63
 
64
64
  Register the scope the user actually requested, not the containing monorepo merely
65
65
  because it is convenient to clone. Reuse one local checkout and register its
66
- confirmed module directories through the existing source registration command.
67
- Read that command's current schema for local path/subpath fields. Keep a source
66
+ confirmed module directories through the existing source registration command:
67
+ point `local` at the module directory, or give the checkout root or `remote` and
68
+ `ref` together with a repository-relative `subpath`. Keep a source
68
69
  for each independently selected application/service boundary; names alone do not
69
70
  restrict filesystem reads. `modules: []` means no registered child boundary, not
70
71
  that the repository has no directories or cannot be narrowed.