@c4a/context-cli 0.7.55 → 0.7.61

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 (27) hide show
  1. package/README.md +9 -6
  2. package/README.zh-CN.md +5 -3
  3. package/browser/diagrams.js +104 -104
  4. package/cli.js +2736 -1758
  5. package/indexers/contracts/profile-contract.json +245 -245
  6. package/indexers/release-manifest.json +1 -1
  7. package/package.json +12 -12
  8. package/parserEntryWorker.js +41 -2
  9. package/plugins/VERSION +1 -1
  10. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  11. package/plugins/claude/skills/context-plan/references/project-planning.md +6 -0
  12. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  13. package/plugins/codex/skills/context-plan/references/project-planning.md +6 -0
  14. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  15. package/plugins/cursor/skills/context-plan/references/project-planning.md +6 -0
  16. package/plugins/skills/context-plan/references/project-planning.md +6 -0
  17. package/providers/context/actions/translate-site-locales.yaml +5 -0
  18. package/providers/context/codes.yaml +1 -0
  19. package/providers/context/graphs/workspace.yaml +14 -1
  20. package/providers/context/manifest.json +35 -13
  21. package/providers/context/provider.yaml +1 -1
  22. package/providers/context/resources/manuals/guides/package-outputs.md +34 -4
  23. package/providers/context/resources/manuals/guides/page-customization.md +16 -0
  24. package/providers/context/resources/manuals/guides/site-translation.md +78 -0
  25. package/providers/context/resources/manuals/reference/project-api.md +7 -3
  26. package/providers/context/skills/record-workspace-version/SKILL.md +3 -2
  27. package/providers/context/skills/translate-site-locales/SKILL.md +36 -0
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: translate-site-locales
3
+ description: Translate approved knowledge for the website locales declared in site.locales when the workspace Route selects this action.
4
+ ---
5
+
6
+ Run `context translate prepare --format json`. The task lists every article and
7
+ knowledge map title that is missing or stale for each declared locale, with the
8
+ `expected_digest` to submit. Approved knowledge in the primary language remains
9
+ the only source of truth; translations never change it.
10
+
11
+ For each article, read the approved file and write a complete translation to a
12
+ temporary file under `.tmp/agent-payloads/`. Keep its structure exactly:
13
+
14
+ - frontmatter contains only a translated `title` and optional `description`;
15
+ - keep every `context:section` marker, id and order unchanged;
16
+ - keep every fenced code block, language and content unchanged; only Mermaid
17
+ labels may be translated;
18
+ - keep every link target unchanged; translate link labels only;
19
+ - keep product names, commands, file paths, identifiers and API names as written.
20
+
21
+ Translate knowledge map titles as short navigation labels. Submit with
22
+ `context translate submit --input <file> --format json`. Input fields:
23
+ `expected_digest`, `articles` (list of `{locale, approved_path, file}`) and
24
+ `map_entries` (list of `{locale, key, title}`). Validation is all-or-nothing:
25
+ fix each reported item and submit again. A large task may be submitted in
26
+ several batches with the same digest; untranslated pages show the original with
27
+ a notice.
28
+
29
+ When the user declines translation for this iteration, run
30
+ `context translate skip --digest <expected_digest> --format json`. The website
31
+ then publishes the pending pages in the primary language with a notice. Do not
32
+ skip on your own judgment.
33
+
34
+ Consume the returned `workflow.current` directly. In managed mode resume
35
+ `context run --managed --until blocked-or-complete --format json`. Translating
36
+ does not authorize a commit, upload or deployment.