@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-312.pyc +0 -0
- package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-312.pyc +0 -0
- package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
- package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +1 -1
- package/plugins/solution-architect/skills/estimate/evals/evals.json +1 -1
- package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +6 -2
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +96 -19
- package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +73 -9
- package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +3 -2
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +7 -2
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +14 -1
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +17 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +18 -16
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/also-builds.css +3 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/also-builds.js +16 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/feature-tasks.js +21 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/link-picker.css +8 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/link-picker.js +43 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/also-builds-browser.test.mjs +63 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/feature-tasks-browser.test.mjs +30 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +8 -8
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/link-picker-browser.test.mjs +83 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-html.test.mjs +14 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +8 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +3 -0
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +19 -1
- package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +6 -5
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +35 -8
- package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +35 -8
- package/src/cli/install.mjs +18 -2
- package/src/cli/registry.mjs +8 -0
- package/src/cli/targets.mjs +4 -2
- package/src/cli/uninstall.mjs +11 -1
package/src/cli/install.mjs
CHANGED
|
@@ -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) {
|
package/src/cli/registry.mjs
CHANGED
|
@@ -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
|
+
}
|
package/src/cli/targets.mjs
CHANGED
|
@@ -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
|
|
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
|
|
package/src/cli/uninstall.mjs
CHANGED
|
@@ -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;
|