cclaw-cli 0.7.1 → 0.9.0

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/dist/install.js CHANGED
@@ -17,7 +17,9 @@ import { contextMonitorScript, promptGuardScript, workflowGuardScript } from "./
17
17
  import { META_SKILL_NAME, usingCclawSkillMarkdown } from "./content/meta-skill.js";
18
18
  import { ARTIFACT_TEMPLATES, CURSOR_WORKFLOW_RULE_MDC, RULEBOOK_MARKDOWN, buildRulesJson } from "./content/templates.js";
19
19
  import { stageSkillFolder, stageSkillMarkdown } from "./content/skills.js";
20
+ import { STAGE_EXAMPLES_REFERENCE_DIR, stageExamplesReferenceMarkdown } from "./content/examples.js";
20
21
  import { LANGUAGE_RULE_PACK_DIR, LANGUAGE_RULE_PACK_FILES, LANGUAGE_RULE_PACK_GENERATORS, LEGACY_LANGUAGE_RULE_PACK_FOLDERS, UTILITY_SKILL_FOLDERS, UTILITY_SKILL_MAP } from "./content/utility-skills.js";
22
+ import { HARNESS_TOOL_REFS_DIR, HARNESS_TOOL_REFS_INDEX_MD, harnessToolRefMarkdown } from "./content/harness-tool-refs.js";
21
23
  import { createInitialFlowState } from "./flow-state.js";
22
24
  import { ensureDir, exists, writeFileSafe } from "./fs-utils.js";
23
25
  import { ensureGitignore, removeGitignorePatterns } from "./gitignore.js";
@@ -169,6 +171,14 @@ async function writeSkills(projectRoot, config) {
169
171
  for (const stage of COMMAND_FILE_ORDER) {
170
172
  const folder = stageSkillFolder(stage);
171
173
  await writeFileSafe(runtimePath(projectRoot, "skills", folder, "SKILL.md"), stageSkillMarkdown(stage));
174
+ // Progressive disclosure (A.2#8): materialize the full example artifact as
175
+ // a sibling reference file. The stage skill only links to it; agents load
176
+ // the reference on demand.
177
+ const referenceMarkdown = stageExamplesReferenceMarkdown(stage);
178
+ if (referenceMarkdown) {
179
+ const referenceDir = STAGE_EXAMPLES_REFERENCE_DIR.split("/");
180
+ await writeFileSafe(runtimePath(projectRoot, ...referenceDir, `${stage}-examples.md`), referenceMarkdown);
181
+ }
172
182
  }
173
183
  // Utility skills (not flow stages)
174
184
  await writeFileSafe(runtimePath(projectRoot, "skills", "learnings", "SKILL.md"), learnSkillMarkdown());
@@ -201,6 +211,15 @@ async function writeSkills(projectRoot, config) {
201
211
  await fs.rm(legacyPath, { recursive: true, force: true });
202
212
  }
203
213
  }
214
+ // Per-harness tool maps (A.1#4). One reference file per supported harness
215
+ // plus an index; stage/utility skills cite these instead of hardcoding
216
+ // tool names inline.
217
+ const harnessIds = ["claude", "cursor", "opencode", "codex"];
218
+ const harnessRefsDir = HARNESS_TOOL_REFS_DIR.split("/");
219
+ await writeFileSafe(runtimePath(projectRoot, ...harnessRefsDir, "README.md"), HARNESS_TOOL_REFS_INDEX_MD);
220
+ for (const harness of harnessIds) {
221
+ await writeFileSafe(runtimePath(projectRoot, ...harnessRefsDir, `${harness}.md`), harnessToolRefMarkdown(harness));
222
+ }
204
223
  }
205
224
  async function writeUtilityCommands(projectRoot) {
206
225
  await writeFileSafe(runtimePath(projectRoot, "commands", "learn.md"), learnCommandContract());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cclaw-cli",
3
- "version": "0.7.1",
3
+ "version": "0.9.0",
4
4
  "description": "Installer-first flow toolkit for coding agents",
5
5
  "type": "module",
6
6
  "bin": {