claude-flow 3.32.35 → 3.32.36

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 (41) hide show
  1. package/.claude/helpers/hook-handler.cjs +134 -3
  2. package/.claude/helpers/intelligence.cjs +47 -4
  3. package/node_modules/@claude-flow/codex/.agents/skills/github-automation/SKILL.md +32 -0
  4. package/node_modules/@claude-flow/codex/.agents/skills/performance-analysis/SKILL.md +32 -0
  5. package/node_modules/@claude-flow/codex/dist/dual-mode/cli.d.ts +4 -0
  6. package/node_modules/@claude-flow/codex/dist/dual-mode/cli.d.ts.map +1 -1
  7. package/node_modules/@claude-flow/codex/dist/dual-mode/cli.js +20 -1
  8. package/node_modules/@claude-flow/codex/dist/dual-mode/cli.js.map +1 -1
  9. package/node_modules/@claude-flow/codex/dist/dual-mode/orchestrator.d.ts +4 -0
  10. package/node_modules/@claude-flow/codex/dist/dual-mode/orchestrator.d.ts.map +1 -1
  11. package/node_modules/@claude-flow/codex/dist/dual-mode/orchestrator.js +18 -2
  12. package/node_modules/@claude-flow/codex/dist/dual-mode/orchestrator.js.map +1 -1
  13. package/node_modules/@claude-flow/codex/dist/generators/skill-md.d.ts +11 -5
  14. package/node_modules/@claude-flow/codex/dist/generators/skill-md.d.ts.map +1 -1
  15. package/node_modules/@claude-flow/codex/dist/generators/skill-md.js +84 -849
  16. package/node_modules/@claude-flow/codex/dist/generators/skill-md.js.map +1 -1
  17. package/node_modules/@claude-flow/codex/dist/initializer.d.ts.map +1 -1
  18. package/node_modules/@claude-flow/codex/dist/initializer.js +9 -13
  19. package/node_modules/@claude-flow/codex/dist/initializer.js.map +1 -1
  20. package/package.json +1 -1
  21. package/v3/@claude-flow/cli/bin/cli.js +25 -1
  22. package/v3/@claude-flow/cli/catalog-manifest.json +2 -2
  23. package/v3/@claude-flow/cli/dist/src/commands/agent.js +1 -1
  24. package/v3/@claude-flow/cli/dist/src/commands/doctor.js +159 -11
  25. package/v3/@claude-flow/cli/dist/src/commands/hooks.js +39 -4
  26. package/v3/@claude-flow/cli/dist/src/commands/mcp.js +1 -1
  27. package/v3/@claude-flow/cli/dist/src/commands/memory-distill.js +1 -0
  28. package/v3/@claude-flow/cli/dist/src/commands/swarm.js +28 -0
  29. package/v3/@claude-flow/cli/dist/src/init/executor.js +16 -10
  30. package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +15 -4
  31. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +18 -5
  32. package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts +25 -0
  33. package/v3/@claude-flow/cli/dist/src/mcp-server.js +57 -2
  34. package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.js +51 -10
  35. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +34 -8
  36. package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +2 -0
  37. package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +5 -1
  38. package/v3/@claude-flow/cli/dist/src/services/memory-distillation.d.ts +1 -0
  39. package/v3/@claude-flow/cli/dist/src/services/memory-distillation.js +81 -5
  40. package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +1 -0
  41. package/v3/@claude-flow/cli/package.json +1 -1
@@ -1,20 +1,26 @@
1
1
  /**
2
2
  * @claude-flow/codex - SKILL.md Generator
3
3
  *
4
- * Generates SKILL.md files for OpenAI Codex CLI skills
5
- * Uses YAML frontmatter for metadata
4
+ * Custom skills are rendered from typed options. Built-in skills use the
5
+ * packaged `.agents/skills` trees as their canonical definitions so direct
6
+ * generation, project initialization, and npm artifacts cannot drift.
6
7
  */
7
- import type { SkillMdOptions } from '../types.js';
8
+ import type { BuiltInSkill, SkillMdOptions } from '../types.js';
9
+ export declare const BUILT_IN_SKILL_NAMES: readonly BuiltInSkill[];
8
10
  /**
9
- * Generate a SKILL.md file based on the provided options
11
+ * Generate a SKILL.md file based on the provided options.
10
12
  */
11
13
  export declare function generateSkillMd(options: SkillMdOptions): Promise<string>;
12
14
  /**
13
- * Generate a skill from a built-in template
15
+ * Read one canonical built-in tree from the package payload.
14
16
  */
15
17
  export declare function generateBuiltInSkill(skillName: string): Promise<{
16
18
  skillMd: string;
17
19
  scripts: Record<string, string>;
18
20
  references: Record<string, string>;
19
21
  }>;
22
+ /**
23
+ * Ensure every skill-local path is contained in and shipped with its tree.
24
+ */
25
+ export declare function validateBuiltInSkillPayload(skillName: string, skillMd: string, scripts: Record<string, string>, references: Record<string, string>): void;
20
26
  //# sourceMappingURL=skill-md.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skill-md.d.ts","sourceRoot":"","sources":["../../src/generators/skill-md.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,aAAa,CAAC;AAEhE;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyE9E;AA+DD;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CAkjBnG"}
1
+ {"version":3,"file":"skill-md.d.ts","sourceRoot":"","sources":["../../src/generators/skill-md.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAgB,MAAM,aAAa,CAAC;AAE9E,eAAO,MAAM,oBAAoB,EAAE,SAAS,YAAY,EAOvD,CAAC;AAOF;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0D9E;AAsFD;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CAuBnG;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACjC,IAAI,CAmBN"}