@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.
- package/cli.js +47 -4
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/parserEntryWorker.js +41 -2
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/providers/context/manifest.json +3 -3
- package/providers/context/provider.yaml +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
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.
|
|
28
|
-
"@c4a/extract": "0.7.
|
|
29
|
-
"@c4a/extract-contract": "0.7.
|
|
30
|
-
"@c4a/extract-go": "0.7.
|
|
31
|
-
"@c4a/extract-mdx": "0.7.
|
|
32
|
-
"@c4a/extract-proto": "0.7.
|
|
33
|
-
"@c4a/extract-rush": "0.7.
|
|
34
|
-
"@c4a/extract-sql": "0.7.
|
|
35
|
-
"@c4a/extract-style": "0.7.
|
|
36
|
-
"@c4a/extract-thrift": "0.7.
|
|
37
|
-
"@c4a/extract-ts": "0.7.
|
|
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",
|
package/parserEntryWorker.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
1
|
+
0.7.80
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c4a",
|
|
3
|
-
"version": "0.7.
|
|
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.
|
|
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",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "agent-graph.bundle.v1",
|
|
3
3
|
"provider": {
|
|
4
4
|
"id": "c4a/context",
|
|
5
|
-
"version": "0.7.
|
|
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:
|
|
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:
|
|
915
|
+
"digest": "sha256:556c83549374c46fc90dd0e9deb66edba9c2f646effecfe53a1e7ab3a6b9f0b2"
|
|
916
916
|
}
|