@c4a/context-cli 0.7.70 → 0.7.72

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 (46) hide show
  1. package/README.md +9 -0
  2. package/README.zh-CN.md +2 -0
  3. package/cli.js +7902 -7853
  4. package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +2 -2
  5. package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +2 -2
  6. package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +2 -2
  7. package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +2 -2
  8. package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +2 -2
  9. package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +2 -2
  10. package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +2 -2
  11. package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +2 -2
  12. package/indexers/bundles/context-code-indexer/references/indexer.md +2 -2
  13. package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +2 -1
  14. package/indexers/bundles/context-markdown-indexer/references/indexer.md +2 -2
  15. package/indexers/contracts/profile-contract.json +245 -245
  16. package/indexers/release-manifest.json +14 -14
  17. package/package.json +12 -12
  18. package/parserEntryWorker.js +23 -11
  19. package/plugins/VERSION +1 -1
  20. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  21. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  22. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  23. package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +2 -2
  24. package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +2 -2
  25. package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +2 -2
  26. package/plugins/skills/context-code-indexer/references/composers/event-flow.md +2 -2
  27. package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +2 -2
  28. package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +2 -2
  29. package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +2 -2
  30. package/plugins/skills/context-code-indexer/references/composers/public-contract.md +2 -2
  31. package/plugins/skills/context-code-indexer/references/indexer.md +2 -2
  32. package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +2 -1
  33. package/plugins/skills/context-markdown-indexer/references/indexer.md +2 -2
  34. package/providers/context/manifest.json +21 -21
  35. package/providers/context/provider.yaml +1 -1
  36. package/providers/context/resources/manuals/guides/code-indexer-skill-authoring.md +2 -1
  37. package/providers/context/resources/manuals/guides/knowledge-updates.md +7 -5
  38. package/providers/context/resources/manuals/guides/markdown-indexer-skill-authoring.md +1 -1
  39. package/providers/context/resources/manuals/guides/package-outputs.md +2 -2
  40. package/providers/context/resources/manuals/guides/site-translation.md +19 -18
  41. package/providers/context/resources/manuals/reference/package-templates.md +2 -2
  42. package/providers/context/resources/procedures/approved-revision.md +8 -4
  43. package/providers/context/resources/procedures/knowledge-updates.md +7 -5
  44. package/providers/context/resources/procedures/production-stage-files.md +6 -4
  45. package/providers/context/resources/procedures/source-update.md +9 -0
  46. package/providers/context/skills/translate-site-locales/SKILL.md +6 -7
package/README.md CHANGED
@@ -33,6 +33,9 @@ an LLM itself.
33
33
 
34
34
  ## Install the Agent integration
35
35
 
36
+ Requires Node.js 20 or newer. Knowledge workspaces install their dependencies
37
+ with Bun (`bun install` after `context init`), so install Bun as well.
38
+
36
39
  ```bash
37
40
  npm install -g @c4a/context-cli@latest
38
41
  context plugin install # global installation
@@ -40,6 +43,12 @@ context plugin install # global installation
40
43
  context plugin install --local /path/to/repo --agent auto-detect
41
44
  ```
42
45
 
46
+ The source repository is also a plugin marketplace. Claude Code and Codex can
47
+ install the `c4a` plugin from it with `claude plugin marketplace add context4ai/context`
48
+ and `claude plugin install c4a@c4a`, or `codex plugin marketplace add context4ai/context`
49
+ and `codex plugin add c4a@c4a`. The CLI is still required; the plugin delegates
50
+ the workflow and the bundled Indexers to it.
51
+
43
52
  `--local` requires explicit `--agent`: `claude`, `cursor`, `codex`, `all`, `auto-detect`, or `standalone`. The path is a repository root: explicit hosts install into `.claude`, `.cursor`, or `.agents` without detection. `all` installs all three. Only `auto-detect` checks existing `.claude`, `.cursor`, and `.agents` directories in the target repository, never PATH or installed desktop applications; it falls back to `.agents/skills` when none exist. `standalone` instead writes all skills directly to `<path>/skills`, with no commands or host subdirectory. All modes support `--dry-run` and preserve global configuration.
44
53
 
45
54
  Migration from 0.7.20: add `--agent auto-detect` to bare `--local`; for explicit hosts pass the repository root, not its host directory. Global installation is unchanged. Host detection does not verify runtime loading.
package/README.zh-CN.md CHANGED
@@ -33,6 +33,8 @@ context plugin install # 全局安装
33
33
  context plugin install --local /path/to/repo --agent auto-detect
34
34
  ```
35
35
 
36
+ 源码仓库本身也是插件市场。Claude Code 与 Codex 可以从中安装 `c4a` 插件:`claude plugin marketplace add context4ai/context` 后执行 `claude plugin install c4a@c4a`,或 `codex plugin marketplace add context4ai/context` 后执行 `codex plugin add c4a@c4a`。CLI 仍需安装,插件把工作流和随包的 Indexer 交给它执行。
37
+
36
38
  `--local` 必须显式搭配 `--agent`:`claude`、`cursor`、`codex`、`all`、`auto-detect` 或 `standalone`。路径为仓库根;指定宿主直接写入对应 `.claude`、`.cursor`、`.agents` 子目录,不检测是否安装宿主。`all` 全装;只有 `auto-detect` 检测目标仓库已有的 `.claude`、`.cursor`、`.agents` 目录,不检测 PATH 或桌面应用;均不存在时兜底 `.agents/skills`。`standalone` 则直接写入 `<path>/skills`,不生成 commands 或宿主子目录。均支持 `--dry-run`,不改全局配置。
37
39
 
38
40
  从 0.7.20 迁移:裸 `--local` 补充 `--agent auto-detect`;指定宿主时传仓库根,不再传宿主目录。全局安装不变。自动探测不代表宿主已加载,安装后需刷新宿主。