@c4a/context-cli 0.7.73 → 0.7.80

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.80",
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.80",
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.80",
28
+ "@c4a/extract": "0.7.80",
29
+ "@c4a/extract-contract": "0.7.80",
30
+ "@c4a/extract-go": "0.7.80",
31
+ "@c4a/extract-mdx": "0.7.80",
32
+ "@c4a/extract-proto": "0.7.80",
33
+ "@c4a/extract-rush": "0.7.80",
34
+ "@c4a/extract-sql": "0.7.80",
35
+ "@c4a/extract-style": "0.7.80",
36
+ "@c4a/extract-thrift": "0.7.80",
37
+ "@c4a/extract-ts": "0.7.80",
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.80
@@ -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.80",
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.80",
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.80",
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.80",
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.80"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -589,7 +589,7 @@
589
589
  },
590
590
  {
591
591
  "path": "provider.yaml",
592
- "digest": "sha256:e1f538feb3cf2b1d7b0501f12ee5b61d799e01ce6ca8921c06ab5777fc486e70"
592
+ "digest": "sha256:999b7f1541f461ef32e2e65fbed1d5e241dd673c771ed6d742ce963bf23b62a8"
593
593
  },
594
594
  {
595
595
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -912,5 +912,5 @@
912
912
  "indexer": [],
913
913
  "workspace": []
914
914
  },
915
- "digest": "sha256:06bf467ee8af28f928d1baafd64b103410306ebe949e297665852a34c46a2e3c"
915
+ "digest": "sha256:556c83549374c46fc90dd0e9deb66edba9c2f646effecfe53a1e7ab3a6b9f0b2"
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.80
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs: