@c4a/context-cli 0.7.14-beta.1 → 0.7.14
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 +11 -1
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +11 -0
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +11 -0
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +11 -0
- package/plugins/skills/context/SKILL.md +11 -0
- package/providers/context/manifest.json +11 -11
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/knowledge-updates.md +44 -2
- package/providers/context/resources/procedures/knowledge-updates.md +44 -2
- package/providers/context/resources/procedures/work-start-report.md +11 -0
- package/providers/context/resources/templates/work-start-report.md +7 -1
- package/providers/context/skills/work-production-stage/SKILL.md +3 -1
package/cli.js
CHANGED
|
@@ -68950,6 +68950,10 @@ function renderAgents(projectName, language) {
|
|
|
68950
68950
|
"- Context 完成只证明知识工作流状态,不证明 Git 提交范围安全。保留任务开始前已有的工作树变更,只按明确路径暂存;不要用 `git add -A` 把无关修改、删除或未跟踪目录带入提交。",
|
|
68951
68951
|
"- 发布知识包前可按产品需要定制 `src/package-templates/kb/wikis/index.md`;不要编辑生成后的 `dist/` 页面。",
|
|
68952
68952
|
"",
|
|
68953
|
+
"## 导航与分类",
|
|
68954
|
+
"",
|
|
68955
|
+
"新增或修订知识前,读取现有知识地图、总览和相关栏目正文,理解并复用分类意图。按当前 Route 的 knowledge-updates 指引安排文章、命名与顺序。新增来源或产品不自动新增顶层目录;确需调整顶层名称、用途或结构时,在开工报告或现有计划展示前后结构与复用不足的理由,取得具体方案确认后应用。已有明确批准不重复询问,常规落位不新增人审。将长期栏目用途简要维护在本文件或现有组织说明中。",
|
|
68956
|
+
"",
|
|
68953
68957
|
"## 图表风格(可修改)",
|
|
68954
68958
|
"",
|
|
68955
68959
|
"- 默认简约:约 1px 细线;文字与线条使用随主题变化的默认色,不加彩色装饰。Mermaid 不硬编码调色板、背景或主题初始化;线宽由支持它的展示端设置,不因此阻塞写作。",
|
|
@@ -68992,6 +68996,10 @@ function renderAgents(projectName, language) {
|
|
|
68992
68996
|
"- Context completion proves knowledge-workflow state, not Git commit safety. Preserve worktree changes that existed before the task, stage only explicit paths, and never use `git add -A` to mix unrelated modifications, deletions, or untracked directories into the deliverable.",
|
|
68993
68997
|
"- Customize `src/package-templates/kb/wikis/index.md` for the product before publishing a knowledge package; do not edit generated `dist/` pages.",
|
|
68994
68998
|
"",
|
|
68999
|
+
"## Navigation and Classification",
|
|
69000
|
+
"",
|
|
69001
|
+
"Before adding or revising knowledge, read the current map, overview and relevant category articles to understand and reuse their intent. Follow the current Route's knowledge-updates guidance for placement, names and order. A new source or product does not automatically warrant a top-level category. Present top-level name, purpose or structure changes with a before/after tree and reuse rationale in the work-start report or current plan, and obtain approval of the concrete proposal before applying it. Reuse explicit prior approval; ordinary placements add no review gate. Keep lasting category intent concise in this file or the existing organization guide.",
|
|
69002
|
+
"",
|
|
68995
69003
|
"## Diagram style (user editable)",
|
|
68996
69004
|
"",
|
|
68997
69005
|
"- Keep diagrams minimal: approximately 1px lines, theme-default text and stroke colors, no colorful decoration. Avoid fixed Mermaid palettes, backgrounds and theme initialization. Configure line width in a capable viewer; unsupported styling never blocks authoring.",
|
|
@@ -73453,7 +73461,8 @@ async function buildProjectPackagesInternal(projectRoot, options) {
|
|
|
73453
73461
|
const revisionInterruptedProduction = !!production && !!await readApprovedRevision2(projectRoot);
|
|
73454
73462
|
await finishApprovedRevision(projectRoot);
|
|
73455
73463
|
const { readKnowledgeUpdate } = await Promise.resolve().then(() => (init_knowledgeUpdate(), exports_knowledgeUpdate));
|
|
73456
|
-
|
|
73464
|
+
const productionEnded = !production || dispatchProductionStage(production, productionCapabilitiesSchema.parse({})).state === "ended";
|
|
73465
|
+
if (productionEnded && !revisionInterruptedProduction && !production?.delivery && !maintenanceActive && !await readTaskRollback(projectRoot) && !await readApprovedRevision2(projectRoot) && !await readKnowledgeUpdate(projectRoot) && (await readProjectCloseStatus(projectRoot)).state === "ready") {
|
|
73457
73466
|
const { clearCompletedLifecycle: clearCompletedLifecycle2 } = await Promise.resolve().then(() => (init_lifecycleCleanup(), exports_lifecycleCleanup));
|
|
73458
73467
|
await clearCompletedLifecycle2(projectRoot);
|
|
73459
73468
|
}
|
|
@@ -73559,6 +73568,7 @@ var init_packageBuilder = __esm(() => {
|
|
|
73559
73568
|
init_packageSiteAddress();
|
|
73560
73569
|
init_knowledgeMap2();
|
|
73561
73570
|
init_approvedFileRead();
|
|
73571
|
+
init_productionStage();
|
|
73562
73572
|
init_productionStageStore();
|
|
73563
73573
|
init_productionDelivery();
|
|
73564
73574
|
init_writeLock();
|