@v11g/agents-rock 1.0.11 → 1.0.13

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 (48) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
  4. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
  5. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
  6. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
  7. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
  8. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
  9. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-312.pyc +0 -0
  10. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-312.pyc +0 -0
  11. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-312.pyc +0 -0
  12. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-312.pyc +0 -0
  13. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-312.pyc +0 -0
  14. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-312.pyc +0 -0
  15. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-312.pyc +0 -0
  16. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  17. package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +1 -1
  18. package/plugins/solution-architect/skills/estimate/evals/evals.json +1 -1
  19. package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +6 -2
  20. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +96 -19
  21. package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +73 -9
  22. package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +3 -2
  23. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +7 -2
  24. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +14 -1
  25. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +2 -2
  26. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +17 -0
  27. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +18 -16
  28. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/also-builds.css +3 -0
  29. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/also-builds.js +16 -0
  30. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/feature-tasks.js +21 -0
  31. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/link-picker.css +8 -0
  32. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/link-picker.js +43 -0
  33. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/also-builds-browser.test.mjs +63 -0
  34. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/feature-tasks-browser.test.mjs +30 -0
  35. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +8 -8
  36. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/link-picker-browser.test.mjs +83 -0
  37. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-html.test.mjs +14 -0
  38. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +1 -1
  39. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +8 -0
  40. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +3 -0
  41. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +19 -1
  42. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +6 -5
  43. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +35 -8
  44. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +35 -8
  45. package/src/cli/install.mjs +18 -2
  46. package/src/cli/registry.mjs +8 -0
  47. package/src/cli/targets.mjs +4 -2
  48. package/src/cli/uninstall.mjs +11 -1
@@ -1,6 +1,6 @@
1
- import { cpSync, existsSync, lstatSync, mkdirSync, readlinkSync, rmSync, symlinkSync } from 'node:fs';
1
+ import { copyFileSync, cpSync, existsSync, lstatSync, mkdirSync, readlinkSync, rmSync, symlinkSync } from 'node:fs';
2
2
  import path from 'node:path';
3
- import { listSkills } from './registry.mjs';
3
+ import { listSkills, listWorkflows } from './registry.mjs';
4
4
 
5
5
  export function installPlugin({ pluginDir, targets, agents, force = false }) {
6
6
  const result = { installed: [], skipped: [], reused: [] };
@@ -10,9 +10,25 @@ export function installPlugin({ pluginDir, targets, agents, force = false }) {
10
10
  linkAgent({ skill: skill.name, canonical, agent, targets, force, result });
11
11
  }
12
12
  }
13
+ if (agents.includes('claude')) copyWorkflows({ pluginDir, targets, force, result });
13
14
  return result;
14
15
  }
15
16
 
17
+ // Workflows are Claude Code only, so they are plain copies with no canonical.
18
+ function copyWorkflows({ pluginDir, targets, force, result }) {
19
+ for (const workflow of listWorkflows(pluginDir)) {
20
+ const skill = `workflows/${workflow.name}`;
21
+ const dest = path.join(targets.workflows, workflow.name);
22
+ if (existsSync(dest) && !force) {
23
+ result.reused.push({ skill, path: dest });
24
+ continue;
25
+ }
26
+ mkdirSync(targets.workflows, { recursive: true });
27
+ copyFileSync(workflow.file, dest);
28
+ result.installed.push({ skill, agent: 'claude', mode: 'file' });
29
+ }
30
+ }
31
+
16
32
  const NOT_SHIPPED = new Set(['evals']);
17
33
 
18
34
  function shipsToUsers(src) {
@@ -24,3 +24,11 @@ export function listSkills(pluginDir) {
24
24
  .filter((entry) => entry.isDirectory())
25
25
  .map((entry) => ({ name: entry.name, dir: path.join(skillsDir, entry.name) }));
26
26
  }
27
+
28
+ export function listWorkflows(pluginDir) {
29
+ const workflowsDir = path.join(pluginDir, 'workflows');
30
+ if (!existsSync(workflowsDir)) return [];
31
+ return readdirSync(workflowsDir, { withFileTypes: true })
32
+ .filter((entry) => entry.isFile() && entry.name.endsWith('.js'))
33
+ .map((entry) => ({ name: entry.name, file: path.join(workflowsDir, entry.name) }));
34
+ }
@@ -7,8 +7,8 @@ const CANONICAL = ['.agents', 'skills'];
7
7
 
8
8
  /**
9
9
  * Resolve every path an install writes to. Both scopes share one shape —
10
- * a canonical skills dir plus one skills dir per agent — so install and
11
- * uninstall stay scope-agnostic.
10
+ * a canonical skills dir, one skills dir per agent, and Claude's workflows
11
+ * dir — so install and uninstall stay scope-agnostic.
12
12
  */
13
13
  export function resolveTargets({ scope, root, home = homedir(), env = process.env }) {
14
14
  if (scope === 'project') return projectTargets(requireRoot(root));
@@ -25,6 +25,7 @@ function projectTargets(root) {
25
25
  return {
26
26
  canonical: path.join(root, ...CANONICAL),
27
27
  agentDirs: mapAgents((agent) => path.join(root, AGENT_HOMES[agent].dir, 'skills')),
28
+ workflows: path.join(root, AGENT_HOMES.claude.dir, 'workflows'),
28
29
  };
29
30
  }
30
31
 
@@ -32,6 +33,7 @@ function userTargets(home, env) {
32
33
  return {
33
34
  canonical: path.join(home, ...CANONICAL),
34
35
  agentDirs: mapAgents((agent) => path.join(agentHome(agent, home, env), 'skills')),
36
+ workflows: path.join(agentHome('claude', home, env), 'workflows'),
35
37
  };
36
38
  }
37
39
 
@@ -1,6 +1,6 @@
1
1
  import { existsSync, lstatSync, rmSync } from 'node:fs';
2
2
  import path from 'node:path';
3
- import { listSkills } from './registry.mjs';
3
+ import { listSkills, listWorkflows } from './registry.mjs';
4
4
 
5
5
  export function uninstallPlugin({ pluginDir, targets, agents, force = false }) {
6
6
  const result = { removed: [], canonicalRemoved: [], skipped: [] };
@@ -10,9 +10,19 @@ export function uninstallPlugin({ pluginDir, targets, agents, force = false }) {
10
10
  }
11
11
  maybeRemoveCanonical(skill.name, targets, result);
12
12
  }
13
+ if (agents.includes('claude')) removeWorkflows(pluginDir, targets, result);
13
14
  return result;
14
15
  }
15
16
 
17
+ function removeWorkflows(pluginDir, targets, result) {
18
+ for (const workflow of listWorkflows(pluginDir)) {
19
+ const dest = path.join(targets.workflows, workflow.name);
20
+ if (!existsSync(dest)) continue;
21
+ rmSync(dest, { force: true });
22
+ result.removed.push({ skill: `workflows/${workflow.name}`, agent: 'claude' });
23
+ }
24
+ }
25
+
16
26
  function removeAgentEntry({ skill, agent, targets, force, result }) {
17
27
  const linkPath = path.join(targets.agentDirs[agent], skill);
18
28
  let stat;