@c4a/context-cli 0.7.50 → 0.7.55
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 +1082 -779
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/parserEntryWorker.js +32 -0
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context-inspect-search.md +8 -0
- package/plugins/claude/commands/context.md +335 -266
- package/plugins/claude/resources/context/imports.md +87 -0
- package/plugins/claude/resources/context/local-install.md +21 -0
- package/plugins/claude/skills/context-inspect-search/SKILL.md +8 -0
- package/plugins/claude/skills/context-repo-content/SKILL.md +2 -1
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +335 -266
- package/plugins/codex/skills/context/references/imports.md +87 -0
- package/plugins/codex/skills/context/references/local-install.md +21 -0
- package/plugins/codex/skills/context-inspect-search/SKILL.md +8 -0
- package/plugins/codex/skills/context-repo-content/SKILL.md +2 -1
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context-inspect-search.md +8 -0
- package/plugins/cursor/commands/c4a-context.md +335 -266
- package/plugins/cursor/resources/context/imports.md +87 -0
- package/plugins/cursor/resources/context/local-install.md +21 -0
- package/plugins/cursor/skills/context-inspect-search/SKILL.md +8 -0
- package/plugins/cursor/skills/context-repo-content/SKILL.md +2 -1
- package/plugins/skills/context/SKILL.md +335 -266
- package/plugins/skills/context/references/imports.md +87 -0
- package/plugins/skills/context/references/local-install.md +21 -0
- package/plugins/skills/context-inspect-search/SKILL.md +8 -0
- package/plugins/skills/context-repo-content/SKILL.md +2 -1
- package/providers/context/actions/repair-project-entry.yaml +1 -0
- package/providers/context/manifest.json +14 -10
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/imports.md +90 -0
- package/providers/context/resources/manuals/guides/knowledge-updates.md +13 -0
- package/providers/context/resources/manuals/guides/package-outputs.md +8 -0
- package/providers/context/resources/procedures/knowledge-updates.md +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c4a/context-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.55",
|
|
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.55",
|
|
28
|
+
"@c4a/extract": "0.7.55",
|
|
29
|
+
"@c4a/extract-contract": "0.7.55",
|
|
30
|
+
"@c4a/extract-go": "0.7.55",
|
|
31
|
+
"@c4a/extract-mdx": "0.7.55",
|
|
32
|
+
"@c4a/extract-proto": "0.7.55",
|
|
33
|
+
"@c4a/extract-rush": "0.7.55",
|
|
34
|
+
"@c4a/extract-sql": "0.7.55",
|
|
35
|
+
"@c4a/extract-style": "0.7.55",
|
|
36
|
+
"@c4a/extract-thrift": "0.7.55",
|
|
37
|
+
"@c4a/extract-ts": "0.7.55",
|
|
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
|
@@ -16739,6 +16739,37 @@ var init_repoContent = __esm(() => {
|
|
|
16739
16739
|
}).strict();
|
|
16740
16740
|
});
|
|
16741
16741
|
|
|
16742
|
+
// ../context/src/imports.ts
|
|
16743
|
+
var importUrlSchema, importIdSchema, importEntrySchema, importsRegistrySchema;
|
|
16744
|
+
var init_imports = __esm(() => {
|
|
16745
|
+
init_zod();
|
|
16746
|
+
init_repoContent();
|
|
16747
|
+
importUrlSchema = exports_external.string().min(1).refine((value) => {
|
|
16748
|
+
if (!/^https?:\/\/[^/?#\\]/iu.test(value) || /[\s\u0000-\u001f\u007f<>\\]/u.test(value))
|
|
16749
|
+
return false;
|
|
16750
|
+
try {
|
|
16751
|
+
const url = new URL(value);
|
|
16752
|
+
return ["https:", "http:"].includes(url.protocol) && !!url.hostname && !url.username && !url.password;
|
|
16753
|
+
} catch {
|
|
16754
|
+
return false;
|
|
16755
|
+
}
|
|
16756
|
+
}, "Use an absolute http:// or https:// entrance without credentials, whitespace or backslashes");
|
|
16757
|
+
importIdSchema = exports_external.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/u);
|
|
16758
|
+
importEntrySchema = exports_external.object({
|
|
16759
|
+
url: importUrlSchema,
|
|
16760
|
+
kind: exports_external.string().min(1).optional(),
|
|
16761
|
+
format: exports_external.string().min(1).optional(),
|
|
16762
|
+
title: exports_external.string().min(1).optional(),
|
|
16763
|
+
description: exports_external.string().optional(),
|
|
16764
|
+
path: repoContentPathSchema.optional(),
|
|
16765
|
+
version: exports_external.string().min(1).optional()
|
|
16766
|
+
}).strict();
|
|
16767
|
+
importsRegistrySchema = exports_external.object({
|
|
16768
|
+
protocol: exports_external.literal("context.imports/v1"),
|
|
16769
|
+
imports: exports_external.record(importIdSchema, importEntrySchema)
|
|
16770
|
+
}).strict();
|
|
16771
|
+
});
|
|
16772
|
+
|
|
16742
16773
|
// ../context/src/indexerRequirementComparison.ts
|
|
16743
16774
|
function setRelation(oldValues, newValues) {
|
|
16744
16775
|
const oldContained = [...oldValues].every((value) => newValues.has(value));
|
|
@@ -20608,6 +20639,7 @@ var init_src = __esm(() => {
|
|
|
20608
20639
|
init_packageSite();
|
|
20609
20640
|
init_contracts();
|
|
20610
20641
|
init_contracts();
|
|
20642
|
+
init_imports();
|
|
20611
20643
|
init_repoContent();
|
|
20612
20644
|
init_indexerProvider();
|
|
20613
20645
|
init_indexerRegistry();
|
package/plugins/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.55
|
|
@@ -59,6 +59,14 @@ access policies, not additional source-order modes or production settings.
|
|
|
59
59
|
|
|
60
60
|
## Search available material according to the configured mode
|
|
61
61
|
|
|
62
|
+
Workspace `imports.yaml` and a package's optional `wikis/imports.md` list external
|
|
63
|
+
entrances, not bundled or verified knowledge. When a relevant article links to
|
|
64
|
+
`context:import/<id>`, read that declaration (at the same workspace commit for
|
|
65
|
+
remote reads) and use its URL through available authorized tools. Do not append
|
|
66
|
+
the declared path/version to the URL or visit unrelated entries. Local tools and
|
|
67
|
+
MCP follow the same rule; neither reading nor registration authorizes installation
|
|
68
|
+
or execution of a Skill/plugin. Temporary query reads do not update declarations.
|
|
69
|
+
|
|
62
70
|
Same-repository original documents and authored Skills may be registered in
|
|
63
71
|
workspace-root `repo-content.yaml`, with a `repo-content/` symlink view. They are
|
|
64
72
|
another readable entrance, not duplicated approved knowledge. Select them when
|