squads-cli 0.2.0 → 0.2.1
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 +521 -288
- package/dist/auth-YW3UPFSB.js +23 -0
- package/dist/auth-YW3UPFSB.js.map +1 -0
- package/dist/autonomy-PSVZVX7A.js +105 -0
- package/dist/autonomy-PSVZVX7A.js.map +1 -0
- package/dist/chunk-67RO2HKR.js +174 -0
- package/dist/chunk-67RO2HKR.js.map +1 -0
- package/dist/chunk-7OCVIDC7.js +12 -0
- package/dist/chunk-7OCVIDC7.js.map +1 -0
- package/dist/chunk-BODLDQY7.js +452 -0
- package/dist/chunk-BODLDQY7.js.map +1 -0
- package/dist/chunk-EHQJHRIW.js +103 -0
- package/dist/chunk-EHQJHRIW.js.map +1 -0
- package/dist/chunk-FFFCFZ6A.js +121 -0
- package/dist/chunk-FFFCFZ6A.js.map +1 -0
- package/dist/chunk-FIWT2NMM.js +165 -0
- package/dist/chunk-FIWT2NMM.js.map +1 -0
- package/dist/chunk-HF4WR7RA.js +154 -0
- package/dist/chunk-HF4WR7RA.js.map +1 -0
- package/dist/chunk-J6QF4ZQX.js +230 -0
- package/dist/chunk-J6QF4ZQX.js.map +1 -0
- package/dist/chunk-LOA3KWYJ.js +294 -0
- package/dist/chunk-LOA3KWYJ.js.map +1 -0
- package/dist/chunk-M5FXNY6Y.js +384 -0
- package/dist/chunk-M5FXNY6Y.js.map +1 -0
- package/dist/chunk-QHNUMM4V.js +87 -0
- package/dist/chunk-QHNUMM4V.js.map +1 -0
- package/dist/chunk-QJ7C7CMB.js +223 -0
- package/dist/chunk-QJ7C7CMB.js.map +1 -0
- package/dist/chunk-RM6BWILN.js +74 -0
- package/dist/chunk-RM6BWILN.js.map +1 -0
- package/dist/chunk-TYFTF53O.js +613 -0
- package/dist/chunk-TYFTF53O.js.map +1 -0
- package/dist/chunk-TZXD6WFN.js +420 -0
- package/dist/chunk-TZXD6WFN.js.map +1 -0
- package/dist/chunk-WVOIY5GW.js +621 -0
- package/dist/chunk-WVOIY5GW.js.map +1 -0
- package/dist/chunk-Z2UKDBNL.js +162 -0
- package/dist/chunk-Z2UKDBNL.js.map +1 -0
- package/dist/chunk-ZTQ7ISUR.js +338 -0
- package/dist/chunk-ZTQ7ISUR.js.map +1 -0
- package/dist/cli.js +2483 -5902
- package/dist/cli.js.map +1 -1
- package/dist/context-GWPF4SEY.js +291 -0
- package/dist/context-GWPF4SEY.js.map +1 -0
- package/dist/context-feed-AJGVAR6H.js +394 -0
- package/dist/context-feed-AJGVAR6H.js.map +1 -0
- package/dist/cost-XBCDJ7XC.js +275 -0
- package/dist/cost-XBCDJ7XC.js.map +1 -0
- package/dist/create-BLFGG6PF.js +286 -0
- package/dist/create-BLFGG6PF.js.map +1 -0
- package/dist/dashboard-LGT2B2BL.js +951 -0
- package/dist/dashboard-LGT2B2BL.js.map +1 -0
- package/dist/dashboard-RMK2BOD2.js +794 -0
- package/dist/dashboard-RMK2BOD2.js.map +1 -0
- package/dist/doctor-XPUIIBHJ.js +374 -0
- package/dist/doctor-XPUIIBHJ.js.map +1 -0
- package/dist/env-config-SQEI3Y7Y.js +21 -0
- package/dist/env-config-SQEI3Y7Y.js.map +1 -0
- package/dist/exec-OUXM7JBF.js +223 -0
- package/dist/exec-OUXM7JBF.js.map +1 -0
- package/dist/feedback-KNAOG5QK.js +229 -0
- package/dist/feedback-KNAOG5QK.js.map +1 -0
- package/dist/github-UQTM5KMS.js +23 -0
- package/dist/github-UQTM5KMS.js.map +1 -0
- package/dist/goal-BVHV5573.js +168 -0
- package/dist/goal-BVHV5573.js.map +1 -0
- package/dist/health-4UXN44PF.js +218 -0
- package/dist/health-4UXN44PF.js.map +1 -0
- package/dist/history-ILH3SWHB.js +232 -0
- package/dist/history-ILH3SWHB.js.map +1 -0
- package/dist/index.d.ts +736 -8
- package/dist/index.js +1312 -6
- package/dist/index.js.map +1 -1
- package/dist/init-XQZ7BOGT.js +812 -0
- package/dist/init-XQZ7BOGT.js.map +1 -0
- package/dist/kpi-RQIU7WGK.js +413 -0
- package/dist/kpi-RQIU7WGK.js.map +1 -0
- package/dist/learn-OIFUVZAS.js +269 -0
- package/dist/learn-OIFUVZAS.js.map +1 -0
- package/dist/login-DXZANWZY.js +155 -0
- package/dist/login-DXZANWZY.js.map +1 -0
- package/dist/memory-T3ACCS7E.js +560 -0
- package/dist/memory-T3ACCS7E.js.map +1 -0
- package/dist/memory-VNF2VFRB.js +23 -0
- package/dist/memory-VNF2VFRB.js.map +1 -0
- package/dist/progress-DAUZMT3N.js +202 -0
- package/dist/progress-DAUZMT3N.js.map +1 -0
- package/dist/providers-3P5D2XL5.js +65 -0
- package/dist/providers-3P5D2XL5.js.map +1 -0
- package/dist/results-UECWGLTB.js +224 -0
- package/dist/results-UECWGLTB.js.map +1 -0
- package/dist/run-I6KAXU6U.js +4049 -0
- package/dist/run-I6KAXU6U.js.map +1 -0
- package/dist/session-HBU6KZOD.js +64 -0
- package/dist/session-HBU6KZOD.js.map +1 -0
- package/dist/sessions-CK25VGPL.js +333 -0
- package/dist/sessions-CK25VGPL.js.map +1 -0
- package/dist/squad-parser-DCG65BJS.js +35 -0
- package/dist/squad-parser-DCG65BJS.js.map +1 -0
- package/dist/stats-G6NAU5BD.js +334 -0
- package/dist/stats-G6NAU5BD.js.map +1 -0
- package/dist/status-AQNLDZVN.js +352 -0
- package/dist/status-AQNLDZVN.js.map +1 -0
- package/dist/sync-ZI3MHA4G.js +836 -0
- package/dist/sync-ZI3MHA4G.js.map +1 -0
- package/dist/templates/core/AGENTS.md.template +51 -0
- package/dist/templates/core/BUSINESS_BRIEF.md.template +29 -0
- package/dist/templates/core/CLAUDE.md.template +48 -0
- package/dist/templates/core/provider.yaml.template +5 -0
- package/dist/templates/first-squad/SQUAD.md.template +23 -0
- package/dist/templates/first-squad/lead.md.template +44 -0
- package/dist/templates/memory/getting-started/state.md.template +19 -0
- package/dist/templates/seed/BUSINESS_BRIEF.md.template +27 -0
- package/dist/templates/seed/CLAUDE.md.template +119 -0
- package/dist/templates/seed/README.md.template +42 -0
- package/dist/templates/seed/config/SYSTEM.md +52 -0
- package/dist/templates/seed/config/provider.yaml +4 -0
- package/dist/templates/seed/hooks/settings.json.template +31 -0
- package/dist/templates/seed/memory/company/directives.md +37 -0
- package/dist/templates/seed/memory/company/manager/state.md +16 -0
- package/dist/templates/seed/memory/engineering/issue-solver/state.md +12 -0
- package/dist/templates/seed/memory/intelligence/intel-lead/state.md +9 -0
- package/dist/templates/seed/memory/marketing/content-drafter/state.md +12 -0
- package/dist/templates/seed/memory/operations/ops-lead/state.md +12 -0
- package/dist/templates/seed/memory/product/lead/state.md +14 -0
- package/dist/templates/seed/memory/research/lead/state.md +14 -0
- package/dist/templates/seed/skills/gh/SKILL.md +57 -0
- package/dist/templates/seed/skills/squads-cli/SKILL.md +84 -0
- package/dist/templates/seed/squads/company/SQUAD.md +51 -0
- package/dist/templates/seed/squads/company/company-critic.md +49 -0
- package/dist/templates/seed/squads/company/company-eval.md +49 -0
- package/dist/templates/seed/squads/company/event-dispatcher.md +43 -0
- package/dist/templates/seed/squads/company/goal-tracker.md +43 -0
- package/dist/templates/seed/squads/company/manager.md +54 -0
- package/dist/templates/seed/squads/engineering/SQUAD.md +48 -0
- package/dist/templates/seed/squads/engineering/code-reviewer.md +57 -0
- package/dist/templates/seed/squads/engineering/issue-solver.md +58 -0
- package/dist/templates/seed/squads/engineering/test-writer.md +50 -0
- package/dist/templates/seed/squads/intelligence/SQUAD.md +38 -0
- package/dist/templates/seed/squads/intelligence/intel-critic.md +36 -0
- package/dist/templates/seed/squads/intelligence/intel-eval.md +31 -0
- package/dist/templates/seed/squads/intelligence/intel-lead.md +71 -0
- package/dist/templates/seed/squads/marketing/SQUAD.md +47 -0
- package/dist/templates/seed/squads/marketing/content-drafter.md +71 -0
- package/dist/templates/seed/squads/marketing/growth-analyst.md +49 -0
- package/dist/templates/seed/squads/marketing/social-poster.md +44 -0
- package/dist/templates/seed/squads/operations/SQUAD.md +45 -0
- package/dist/templates/seed/squads/operations/finance-tracker.md +47 -0
- package/dist/templates/seed/squads/operations/goal-tracker.md +48 -0
- package/dist/templates/seed/squads/operations/ops-lead.md +58 -0
- package/dist/templates/seed/squads/product/SQUAD.md +41 -0
- package/dist/templates/seed/squads/product/lead.md +56 -0
- package/dist/templates/seed/squads/product/scanner.md +50 -0
- package/dist/templates/seed/squads/product/worker.md +55 -0
- package/dist/templates/seed/squads/research/SQUAD.md +38 -0
- package/dist/templates/seed/squads/research/analyst.md +50 -0
- package/dist/templates/seed/squads/research/lead.md +52 -0
- package/dist/templates/seed/squads/research/synthesizer.md +59 -0
- package/dist/templates/skills/squads-learn/SKILL.md +86 -0
- package/dist/templates/skills/squads-workflow/instruction.md +70 -0
- package/dist/terminal-FBQFQTKZ.js +55 -0
- package/dist/terminal-FBQFQTKZ.js.map +1 -0
- package/dist/update-D7CGIZ3M.js +18 -0
- package/dist/update-D7CGIZ3M.js.map +1 -0
- package/dist/update-STU276HR.js +83 -0
- package/dist/update-STU276HR.js.map +1 -0
- package/package.json +31 -13
- package/templates/core/AGENTS.md.template +51 -0
- package/templates/core/BUSINESS_BRIEF.md.template +29 -0
- package/templates/core/CLAUDE.md.template +48 -0
- package/templates/core/provider.yaml.template +5 -0
- package/templates/first-squad/SQUAD.md.template +23 -0
- package/templates/first-squad/lead.md.template +44 -0
- package/templates/memory/getting-started/state.md.template +19 -0
- package/templates/seed/BUSINESS_BRIEF.md.template +27 -0
- package/templates/seed/CLAUDE.md.template +119 -0
- package/templates/seed/README.md.template +42 -0
- package/templates/seed/config/SYSTEM.md +52 -0
- package/templates/seed/config/provider.yaml +4 -0
- package/templates/seed/hooks/settings.json.template +31 -0
- package/templates/seed/memory/company/directives.md +37 -0
- package/templates/seed/memory/company/manager/state.md +16 -0
- package/templates/seed/memory/engineering/issue-solver/state.md +12 -0
- package/templates/seed/memory/intelligence/intel-lead/state.md +9 -0
- package/templates/seed/memory/marketing/content-drafter/state.md +12 -0
- package/templates/seed/memory/operations/ops-lead/state.md +12 -0
- package/templates/seed/memory/product/lead/state.md +14 -0
- package/templates/seed/memory/research/lead/state.md +14 -0
- package/templates/seed/skills/gh/SKILL.md +57 -0
- package/templates/seed/skills/squads-cli/SKILL.md +84 -0
- package/templates/seed/squads/company/SQUAD.md +51 -0
- package/templates/seed/squads/company/company-critic.md +49 -0
- package/templates/seed/squads/company/company-eval.md +49 -0
- package/templates/seed/squads/company/event-dispatcher.md +43 -0
- package/templates/seed/squads/company/goal-tracker.md +43 -0
- package/templates/seed/squads/company/manager.md +54 -0
- package/templates/seed/squads/engineering/SQUAD.md +48 -0
- package/templates/seed/squads/engineering/code-reviewer.md +57 -0
- package/templates/seed/squads/engineering/issue-solver.md +58 -0
- package/templates/seed/squads/engineering/test-writer.md +50 -0
- package/templates/seed/squads/intelligence/SQUAD.md +38 -0
- package/templates/seed/squads/intelligence/intel-critic.md +36 -0
- package/templates/seed/squads/intelligence/intel-eval.md +31 -0
- package/templates/seed/squads/intelligence/intel-lead.md +71 -0
- package/templates/seed/squads/marketing/SQUAD.md +47 -0
- package/templates/seed/squads/marketing/content-drafter.md +71 -0
- package/templates/seed/squads/marketing/growth-analyst.md +49 -0
- package/templates/seed/squads/marketing/social-poster.md +44 -0
- package/templates/seed/squads/operations/SQUAD.md +45 -0
- package/templates/seed/squads/operations/finance-tracker.md +47 -0
- package/templates/seed/squads/operations/goal-tracker.md +48 -0
- package/templates/seed/squads/operations/ops-lead.md +58 -0
- package/templates/seed/squads/product/SQUAD.md +41 -0
- package/templates/seed/squads/product/lead.md +56 -0
- package/templates/seed/squads/product/scanner.md +50 -0
- package/templates/seed/squads/product/worker.md +55 -0
- package/templates/seed/squads/research/SQUAD.md +38 -0
- package/templates/seed/squads/research/analyst.md +50 -0
- package/templates/seed/squads/research/lead.md +52 -0
- package/templates/seed/squads/research/synthesizer.md +59 -0
- package/templates/skills/squads-learn/SKILL.md +86 -0
- package/templates/skills/squads-workflow/instruction.md +70 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
Events,
|
|
4
|
+
track
|
|
5
|
+
} from "./chunk-QJ7C7CMB.js";
|
|
6
|
+
import {
|
|
7
|
+
findSquadsDir,
|
|
8
|
+
listSquads,
|
|
9
|
+
loadSquad,
|
|
10
|
+
resolveExecutionContext
|
|
11
|
+
} from "./chunk-TYFTF53O.js";
|
|
12
|
+
import {
|
|
13
|
+
RESET,
|
|
14
|
+
bold,
|
|
15
|
+
box,
|
|
16
|
+
colors,
|
|
17
|
+
gradient,
|
|
18
|
+
icons,
|
|
19
|
+
padEnd,
|
|
20
|
+
writeLine
|
|
21
|
+
} from "./chunk-M5FXNY6Y.js";
|
|
22
|
+
import "./chunk-7OCVIDC7.js";
|
|
23
|
+
|
|
24
|
+
// src/commands/context.ts
|
|
25
|
+
async function contextShowCommand(squadName, options = {}) {
|
|
26
|
+
await track(Events.CLI_CONTEXT, { squad: squadName });
|
|
27
|
+
const squadsDir = findSquadsDir();
|
|
28
|
+
if (!squadsDir) {
|
|
29
|
+
writeLine(`${colors.red}No .agents/squads directory found${RESET}`);
|
|
30
|
+
writeLine(`${colors.dim}Run \`squads init\` to create one.${RESET}`);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
const squad = loadSquad(squadName);
|
|
34
|
+
if (!squad) {
|
|
35
|
+
writeLine(`${colors.red}Squad "${squadName}" not found.${RESET}`);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
const execContext = resolveExecutionContext(squad);
|
|
39
|
+
if (options.json) {
|
|
40
|
+
console.log(JSON.stringify({
|
|
41
|
+
name: squad.name,
|
|
42
|
+
mission: squad.mission,
|
|
43
|
+
repo: squad.repo,
|
|
44
|
+
stack: squad.stack,
|
|
45
|
+
effort: squad.effort,
|
|
46
|
+
context: squad.context,
|
|
47
|
+
resolved: execContext.resolved
|
|
48
|
+
}, null, 2));
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
writeLine();
|
|
52
|
+
writeLine(` ${gradient("squads")} ${colors.dim}context${RESET} ${colors.cyan}${squad.name}${RESET}`);
|
|
53
|
+
const ctx = squad.context;
|
|
54
|
+
if (!ctx) {
|
|
55
|
+
writeLine();
|
|
56
|
+
writeLine(` ${colors.yellow}No context defined in SQUAD.md frontmatter${RESET}`);
|
|
57
|
+
writeLine();
|
|
58
|
+
writeLine(` ${colors.dim}Add a frontmatter block to ${squad.name}/SQUAD.md:${RESET}`);
|
|
59
|
+
writeLine();
|
|
60
|
+
writeLine(` ${colors.dim}---${RESET}`);
|
|
61
|
+
writeLine(` ${colors.dim}name: ${squad.name}${RESET}`);
|
|
62
|
+
writeLine(` ${colors.dim}context:${RESET}`);
|
|
63
|
+
writeLine(` ${colors.dim} mcp: [chrome-devtools]${RESET}`);
|
|
64
|
+
writeLine(` ${colors.dim} model: { default: sonnet }${RESET}`);
|
|
65
|
+
writeLine(` ${colors.dim} budget: { daily: 10 }${RESET}`);
|
|
66
|
+
writeLine(` ${colors.dim}---${RESET}`);
|
|
67
|
+
writeLine();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
const tableWidth = 54;
|
|
71
|
+
writeLine();
|
|
72
|
+
writeLine(` ${colors.purple}${box.horizontal.repeat(tableWidth)}${RESET}`);
|
|
73
|
+
const mcpSource = execContext.resolved.mcpSource;
|
|
74
|
+
const mcpSourceLabel = mcpSource === "squad-local" ? `${colors.green}squad-local${RESET}` : mcpSource === "generated" ? `${colors.cyan}generated${RESET}` : mcpSource === "user-override" ? `${colors.yellow}user-override${RESET}` : `${colors.dim}fallback${RESET}`;
|
|
75
|
+
if (execContext.resolved.mcpServers.length > 0) {
|
|
76
|
+
writeLine(` ${bold}MCP${RESET} ${colors.cyan}${execContext.resolved.mcpServers.join(", ")}${RESET} ${colors.dim}(${mcpSourceLabel})${RESET}`);
|
|
77
|
+
} else if (ctx?.mcp && ctx.mcp.length > 0) {
|
|
78
|
+
writeLine(` ${bold}MCP${RESET} ${colors.cyan}${ctx.mcp.join(", ")}${RESET}`);
|
|
79
|
+
} else {
|
|
80
|
+
writeLine(` ${bold}MCP${RESET} ${colors.dim}none${RESET}`);
|
|
81
|
+
}
|
|
82
|
+
const resolvedSkills = execContext.resolved.skills || [];
|
|
83
|
+
if (resolvedSkills.length > 0) {
|
|
84
|
+
const skillLabels = resolvedSkills.map((s) => {
|
|
85
|
+
const sourceColor = s.source === "squad-local" ? colors.green : s.source === "project" ? colors.cyan : colors.dim;
|
|
86
|
+
return `${colors.cyan}${s.name}${RESET} ${sourceColor}(${s.source})${RESET}`;
|
|
87
|
+
});
|
|
88
|
+
writeLine(` ${bold}Skills${RESET} ${skillLabels.join(", ")}`);
|
|
89
|
+
} else if (ctx?.skills && ctx.skills.length > 0) {
|
|
90
|
+
writeLine(` ${bold}Skills${RESET} ${colors.cyan}${ctx.skills.join(", ")}${RESET}`);
|
|
91
|
+
}
|
|
92
|
+
if (ctx.memory?.load && ctx.memory.load.length > 0) {
|
|
93
|
+
writeLine(` ${bold}Memory${RESET} ${colors.cyan}${ctx.memory.load.join(", ")}${RESET}`);
|
|
94
|
+
}
|
|
95
|
+
if (ctx.model) {
|
|
96
|
+
const modelParts = [];
|
|
97
|
+
if (ctx.model.default) modelParts.push(`${colors.white}${ctx.model.default}${RESET} ${colors.dim}(default)${RESET}`);
|
|
98
|
+
if (ctx.model.expensive) modelParts.push(`${colors.yellow}${ctx.model.expensive}${RESET} ${colors.dim}(expensive)${RESET}`);
|
|
99
|
+
if (ctx.model.cheap) modelParts.push(`${colors.green}${ctx.model.cheap}${RESET} ${colors.dim}(cheap)${RESET}`);
|
|
100
|
+
writeLine(` ${bold}Model${RESET} ${modelParts.join(", ")}`);
|
|
101
|
+
}
|
|
102
|
+
if (ctx.budget) {
|
|
103
|
+
const budgetParts = [];
|
|
104
|
+
if (ctx.budget.daily) budgetParts.push(`$${ctx.budget.daily}/day`);
|
|
105
|
+
if (ctx.budget.weekly) budgetParts.push(`$${ctx.budget.weekly}/week`);
|
|
106
|
+
if (ctx.budget.perExecution) budgetParts.push(`$${ctx.budget.perExecution}/run`);
|
|
107
|
+
writeLine(` ${bold}Budget${RESET} ${colors.green}${budgetParts.join(", ")}${RESET}`);
|
|
108
|
+
}
|
|
109
|
+
if (squad.effort) {
|
|
110
|
+
const effortColor = squad.effort === "high" ? colors.red : squad.effort === "medium" ? colors.yellow : colors.green;
|
|
111
|
+
writeLine(` ${bold}Effort${RESET} ${effortColor}${squad.effort}${RESET}`);
|
|
112
|
+
}
|
|
113
|
+
if (squad.repo) {
|
|
114
|
+
writeLine(` ${bold}Repo${RESET} ${colors.dim}${squad.repo}${RESET}`);
|
|
115
|
+
}
|
|
116
|
+
if (squad.stack) {
|
|
117
|
+
writeLine(` ${bold}Stack${RESET} ${colors.dim}${squad.stack}${RESET}`);
|
|
118
|
+
}
|
|
119
|
+
writeLine(` ${colors.purple}${box.horizontal.repeat(tableWidth)}${RESET}`);
|
|
120
|
+
writeLine();
|
|
121
|
+
writeLine(` ${colors.dim}$${RESET} squads context show ${colors.cyan}${squad.name}${RESET} --json ${colors.dim}JSON output${RESET}`);
|
|
122
|
+
writeLine(` ${colors.dim}$${RESET} squads run ${colors.cyan}${squad.name}${RESET} ${colors.dim}Run with this context${RESET}`);
|
|
123
|
+
writeLine();
|
|
124
|
+
}
|
|
125
|
+
async function contextListCommand(options = {}) {
|
|
126
|
+
await track(Events.CLI_CONTEXT, { action: "list" });
|
|
127
|
+
const squadsDir = findSquadsDir();
|
|
128
|
+
if (!squadsDir) {
|
|
129
|
+
writeLine(`${colors.red}No .agents/squads directory found${RESET}`);
|
|
130
|
+
process.exit(1);
|
|
131
|
+
}
|
|
132
|
+
const squads = listSquads(squadsDir);
|
|
133
|
+
if (options.json) {
|
|
134
|
+
const contexts = {};
|
|
135
|
+
for (const name of squads) {
|
|
136
|
+
const squad = loadSquad(name);
|
|
137
|
+
if (squad) {
|
|
138
|
+
contexts[name] = squad.context;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
console.log(JSON.stringify(contexts, null, 2));
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
writeLine();
|
|
145
|
+
writeLine(` ${gradient("squads")} ${colors.dim}context list${RESET}`);
|
|
146
|
+
writeLine();
|
|
147
|
+
const w = { name: 14, mcp: 24, model: 12, budget: 12 };
|
|
148
|
+
const tableWidth = w.name + w.mcp + w.model + w.budget + 6;
|
|
149
|
+
writeLine(` ${colors.purple}${box.topLeft}${colors.dim}${box.horizontal.repeat(tableWidth)}${colors.purple}${box.topRight}${RESET}`);
|
|
150
|
+
const header = ` ${colors.purple}${box.vertical}${RESET} ${bold}${padEnd("SQUAD", w.name)}${RESET}${bold}${padEnd("MCP", w.mcp)}${RESET}${bold}${padEnd("MODEL", w.model)}${RESET}${bold}BUDGET${RESET} ${colors.purple}${box.vertical}${RESET}`;
|
|
151
|
+
writeLine(header);
|
|
152
|
+
writeLine(` ${colors.purple}${box.teeRight}${colors.dim}${box.horizontal.repeat(tableWidth)}${colors.purple}${box.teeLeft}${RESET}`);
|
|
153
|
+
for (const name of squads) {
|
|
154
|
+
const squad = loadSquad(name);
|
|
155
|
+
const ctx = squad?.context;
|
|
156
|
+
const mcpStr = ctx?.mcp?.slice(0, 2).join(", ") || `${colors.dim}\u2014${RESET}`;
|
|
157
|
+
const modelStr = ctx?.model?.default || `${colors.dim}\u2014${RESET}`;
|
|
158
|
+
const budgetStr = ctx?.budget?.daily ? `$${ctx.budget.daily}/d` : `${colors.dim}\u2014${RESET}`;
|
|
159
|
+
const row = ` ${colors.purple}${box.vertical}${RESET} ${colors.cyan}${padEnd(name, w.name)}${RESET}${padEnd(mcpStr, w.mcp)}${padEnd(modelStr, w.model)}${padEnd(budgetStr, w.budget)}${colors.purple}${box.vertical}${RESET}`;
|
|
160
|
+
writeLine(row);
|
|
161
|
+
}
|
|
162
|
+
writeLine(` ${colors.purple}${box.bottomLeft}${colors.dim}${box.horizontal.repeat(tableWidth)}${colors.purple}${box.bottomRight}${RESET}`);
|
|
163
|
+
writeLine();
|
|
164
|
+
}
|
|
165
|
+
async function contextActivateCommand(squadName, options = {}) {
|
|
166
|
+
await track(Events.CLI_CONTEXT, { squad: squadName, action: "activate" });
|
|
167
|
+
const squadsDir = findSquadsDir();
|
|
168
|
+
if (!squadsDir) {
|
|
169
|
+
writeLine(`${colors.red}No .agents/squads directory found${RESET}`);
|
|
170
|
+
process.exit(1);
|
|
171
|
+
}
|
|
172
|
+
const squad = loadSquad(squadName);
|
|
173
|
+
if (!squad) {
|
|
174
|
+
writeLine(`${colors.red}Squad "${squadName}" not found.${RESET}`);
|
|
175
|
+
process.exit(1);
|
|
176
|
+
}
|
|
177
|
+
const execContext = resolveExecutionContext(squad, options.force);
|
|
178
|
+
if (options.json) {
|
|
179
|
+
console.log(JSON.stringify(execContext, null, 2));
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (options.dryRun) {
|
|
183
|
+
writeLine();
|
|
184
|
+
writeLine(` ${gradient("squads")} ${colors.dim}context activate${RESET} ${colors.cyan}${squadName}${RESET} ${colors.yellow}(dry run)${RESET}`);
|
|
185
|
+
writeLine();
|
|
186
|
+
writeLine(` ${colors.dim}Would resolve:${RESET}`);
|
|
187
|
+
writeLine();
|
|
188
|
+
writeLine(` ${bold}MCP Config${RESET}`);
|
|
189
|
+
writeLine(` Path: ${execContext.resolved.mcpConfigPath}`);
|
|
190
|
+
writeLine(` Source: ${execContext.resolved.mcpSource}`);
|
|
191
|
+
if (execContext.resolved.mcpServers.length > 0) {
|
|
192
|
+
writeLine(` Servers: ${execContext.resolved.mcpServers.join(", ")}`);
|
|
193
|
+
}
|
|
194
|
+
if (execContext.resolved.skills && execContext.resolved.skills.length > 0) {
|
|
195
|
+
writeLine();
|
|
196
|
+
writeLine(` ${bold}Skills${RESET}`);
|
|
197
|
+
for (const skill of execContext.resolved.skills) {
|
|
198
|
+
const sourceColor = skill.source === "squad-local" ? colors.green : skill.source === "project" ? colors.cyan : colors.dim;
|
|
199
|
+
writeLine(` ${colors.cyan}${skill.name}${RESET} ${sourceColor}(${skill.source})${RESET}`);
|
|
200
|
+
writeLine(` ${colors.dim}${skill.path}${RESET}`);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (execContext.resolved.memoryPaths.length > 0) {
|
|
204
|
+
writeLine();
|
|
205
|
+
writeLine(` ${bold}Memory${RESET}`);
|
|
206
|
+
for (const path of execContext.resolved.memoryPaths) {
|
|
207
|
+
writeLine(` ${colors.dim}${path}${RESET}`);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
writeLine();
|
|
211
|
+
writeLine(` ${colors.dim}Run without --dry-run to generate config${RESET}`);
|
|
212
|
+
writeLine();
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
writeLine();
|
|
216
|
+
writeLine(` ${gradient("squads")} ${colors.dim}context activate${RESET} ${colors.cyan}${squadName}${RESET}`);
|
|
217
|
+
writeLine();
|
|
218
|
+
const mcpSourceLabel = execContext.resolved.mcpSource === "squad-local" ? `${colors.green}squad-local${RESET}` : execContext.resolved.mcpSource === "generated" ? `${colors.cyan}generated${RESET}` : execContext.resolved.mcpSource === "user-override" ? `${colors.yellow}user override${RESET}` : `${colors.dim}fallback${RESET}`;
|
|
219
|
+
const sourceLabel = mcpSourceLabel;
|
|
220
|
+
writeLine(` ${icons.success} MCP config: ${sourceLabel}`);
|
|
221
|
+
writeLine(` ${colors.dim}${execContext.resolved.mcpConfigPath}${RESET}`);
|
|
222
|
+
if (execContext.resolved.mcpServers.length > 0) {
|
|
223
|
+
writeLine(` ${colors.dim}Servers: ${execContext.resolved.mcpServers.join(", ")}${RESET}`);
|
|
224
|
+
}
|
|
225
|
+
if (execContext.resolved.skills && execContext.resolved.skills.length > 0) {
|
|
226
|
+
const bySource = execContext.resolved.skills.reduce((acc, s) => {
|
|
227
|
+
acc[s.source] = (acc[s.source] || 0) + 1;
|
|
228
|
+
return acc;
|
|
229
|
+
}, {});
|
|
230
|
+
const sourceSummary = Object.entries(bySource).map(([source, count]) => `${count} ${source}`).join(", ");
|
|
231
|
+
writeLine(` ${icons.success} Skills: ${execContext.resolved.skills.length} resolved (${sourceSummary})`);
|
|
232
|
+
}
|
|
233
|
+
if (execContext.resolved.memoryPaths.length > 0) {
|
|
234
|
+
writeLine(` ${icons.success} Memory: ${execContext.resolved.memoryPaths.length} files`);
|
|
235
|
+
}
|
|
236
|
+
writeLine();
|
|
237
|
+
writeLine(` ${colors.dim}To use this context manually:${RESET}`);
|
|
238
|
+
writeLine(` ${colors.dim}$${RESET} claude --mcp-config '${execContext.resolved.mcpConfigPath}'`);
|
|
239
|
+
writeLine();
|
|
240
|
+
writeLine(` ${colors.dim}Or run with squads:${RESET}`);
|
|
241
|
+
writeLine(` ${colors.dim}$${RESET} squads run ${colors.cyan}${squadName}${RESET}`);
|
|
242
|
+
writeLine();
|
|
243
|
+
}
|
|
244
|
+
async function contextPromptCommand(squadName, options = {}) {
|
|
245
|
+
await track(Events.CLI_CONTEXT, { squad: squadName, action: "prompt" });
|
|
246
|
+
const squadsDir = findSquadsDir();
|
|
247
|
+
if (!squadsDir) {
|
|
248
|
+
console.error("No .agents/squads directory found");
|
|
249
|
+
process.exit(1);
|
|
250
|
+
}
|
|
251
|
+
const squad = loadSquad(squadName);
|
|
252
|
+
if (!squad) {
|
|
253
|
+
console.error(`Squad "${squadName}" not found.`);
|
|
254
|
+
process.exit(1);
|
|
255
|
+
}
|
|
256
|
+
if (!options.agent) {
|
|
257
|
+
console.error("Agent required. Use -a <agent>");
|
|
258
|
+
process.exit(1);
|
|
259
|
+
}
|
|
260
|
+
const agentPath = `.agents/squads/${squadName}/${options.agent}.md`;
|
|
261
|
+
const prompt = `Execute the ${options.agent} agent from squad ${squadName}.
|
|
262
|
+
|
|
263
|
+
Read the agent definition at ${agentPath} and follow its instructions exactly.
|
|
264
|
+
|
|
265
|
+
CRITICAL INSTRUCTIONS:
|
|
266
|
+
- Work autonomously - do NOT ask clarifying questions
|
|
267
|
+
- Use Task tool to spawn sub-agents when needed
|
|
268
|
+
- Output findings to GitHub issues (gh issue create)
|
|
269
|
+
- Output code changes as PRs (gh pr create)
|
|
270
|
+
- Update memory files in .agents/memory/${squadName}/${options.agent}/
|
|
271
|
+
- Type /exit when done
|
|
272
|
+
|
|
273
|
+
Begin now.`;
|
|
274
|
+
if (options.json) {
|
|
275
|
+
console.log(JSON.stringify({
|
|
276
|
+
squad: squadName,
|
|
277
|
+
agent: options.agent,
|
|
278
|
+
agentPath,
|
|
279
|
+
prompt
|
|
280
|
+
}, null, 2));
|
|
281
|
+
} else {
|
|
282
|
+
console.log(prompt);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
export {
|
|
286
|
+
contextActivateCommand,
|
|
287
|
+
contextListCommand,
|
|
288
|
+
contextPromptCommand,
|
|
289
|
+
contextShowCommand
|
|
290
|
+
};
|
|
291
|
+
//# sourceMappingURL=context-GWPF4SEY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/context.ts"],"sourcesContent":["import {\n findSquadsDir,\n loadSquad,\n listSquads,\n SquadContext,\n resolveExecutionContext,\n} from '../lib/squad-parser.js';\nimport { track, Events } from '../lib/telemetry.js';\nimport {\n colors,\n bold,\n RESET,\n gradient,\n box,\n padEnd,\n writeLine,\n icons,\n} from '../lib/terminal.js';\n\ninterface ContextOptions {\n json?: boolean;\n}\n\nexport async function contextShowCommand(\n squadName: string,\n options: ContextOptions = {}\n): Promise<void> {\n await track(Events.CLI_CONTEXT, { squad: squadName });\n const squadsDir = findSquadsDir();\n\n if (!squadsDir) {\n writeLine(`${colors.red}No .agents/squads directory found${RESET}`);\n writeLine(`${colors.dim}Run \\`squads init\\` to create one.${RESET}`);\n process.exit(1);\n }\n\n const squad = loadSquad(squadName);\n\n if (!squad) {\n writeLine(`${colors.red}Squad \"${squadName}\" not found.${RESET}`);\n process.exit(1);\n }\n\n // Resolve execution context to get full skill and MCP info\n const execContext = resolveExecutionContext(squad);\n\n if (options.json) {\n console.log(JSON.stringify({\n name: squad.name,\n mission: squad.mission,\n repo: squad.repo,\n stack: squad.stack,\n effort: squad.effort,\n context: squad.context,\n resolved: execContext.resolved,\n }, null, 2));\n return;\n }\n\n writeLine();\n writeLine(` ${gradient('squads')} ${colors.dim}context${RESET} ${colors.cyan}${squad.name}${RESET}`);\n\n const ctx = squad.context;\n\n if (!ctx) {\n writeLine();\n writeLine(` ${colors.yellow}No context defined in SQUAD.md frontmatter${RESET}`);\n writeLine();\n writeLine(` ${colors.dim}Add a frontmatter block to ${squad.name}/SQUAD.md:${RESET}`);\n writeLine();\n writeLine(` ${colors.dim}---${RESET}`);\n writeLine(` ${colors.dim}name: ${squad.name}${RESET}`);\n writeLine(` ${colors.dim}context:${RESET}`);\n writeLine(` ${colors.dim} mcp: [chrome-devtools]${RESET}`);\n writeLine(` ${colors.dim} model: { default: sonnet }${RESET}`);\n writeLine(` ${colors.dim} budget: { daily: 10 }${RESET}`);\n writeLine(` ${colors.dim}---${RESET}`);\n writeLine();\n return;\n }\n\n const tableWidth = 54;\n writeLine();\n writeLine(` ${colors.purple}${box.horizontal.repeat(tableWidth)}${RESET}`);\n\n // MCP Config (show resolved source)\n const mcpSource = execContext.resolved.mcpSource;\n const mcpSourceLabel = mcpSource === 'squad-local' ? `${colors.green}squad-local${RESET}` :\n mcpSource === 'generated' ? `${colors.cyan}generated${RESET}` :\n mcpSource === 'user-override' ? `${colors.yellow}user-override${RESET}` :\n `${colors.dim}fallback${RESET}`;\n\n if (execContext.resolved.mcpServers.length > 0) {\n writeLine(` ${bold}MCP${RESET} ${colors.cyan}${execContext.resolved.mcpServers.join(', ')}${RESET} ${colors.dim}(${mcpSourceLabel})${RESET}`);\n } else if (ctx?.mcp && ctx.mcp.length > 0) {\n writeLine(` ${bold}MCP${RESET} ${colors.cyan}${ctx.mcp.join(', ')}${RESET}`);\n } else {\n writeLine(` ${bold}MCP${RESET} ${colors.dim}none${RESET}`);\n }\n\n // Skills (show resolved with sources)\n const resolvedSkills = execContext.resolved.skills || [];\n if (resolvedSkills.length > 0) {\n const skillLabels = resolvedSkills.map(s => {\n const sourceColor = s.source === 'squad-local' ? colors.green :\n s.source === 'project' ? colors.cyan :\n colors.dim;\n return `${colors.cyan}${s.name}${RESET} ${sourceColor}(${s.source})${RESET}`;\n });\n writeLine(` ${bold}Skills${RESET} ${skillLabels.join(', ')}`);\n } else if (ctx?.skills && ctx.skills.length > 0) {\n writeLine(` ${bold}Skills${RESET} ${colors.cyan}${ctx.skills.join(', ')}${RESET}`);\n }\n\n // Memory\n if (ctx.memory?.load && ctx.memory.load.length > 0) {\n writeLine(` ${bold}Memory${RESET} ${colors.cyan}${ctx.memory.load.join(', ')}${RESET}`);\n }\n\n // Model\n if (ctx.model) {\n const modelParts: string[] = [];\n if (ctx.model.default) modelParts.push(`${colors.white}${ctx.model.default}${RESET} ${colors.dim}(default)${RESET}`);\n if (ctx.model.expensive) modelParts.push(`${colors.yellow}${ctx.model.expensive}${RESET} ${colors.dim}(expensive)${RESET}`);\n if (ctx.model.cheap) modelParts.push(`${colors.green}${ctx.model.cheap}${RESET} ${colors.dim}(cheap)${RESET}`);\n writeLine(` ${bold}Model${RESET} ${modelParts.join(', ')}`);\n }\n\n // Budget\n if (ctx.budget) {\n const budgetParts: string[] = [];\n if (ctx.budget.daily) budgetParts.push(`$${ctx.budget.daily}/day`);\n if (ctx.budget.weekly) budgetParts.push(`$${ctx.budget.weekly}/week`);\n if (ctx.budget.perExecution) budgetParts.push(`$${ctx.budget.perExecution}/run`);\n writeLine(` ${bold}Budget${RESET} ${colors.green}${budgetParts.join(', ')}${RESET}`);\n }\n\n // Effort\n if (squad.effort) {\n const effortColor = squad.effort === 'high' ? colors.red :\n squad.effort === 'medium' ? colors.yellow : colors.green;\n writeLine(` ${bold}Effort${RESET} ${effortColor}${squad.effort}${RESET}`);\n }\n\n // Stack/Repo info\n if (squad.repo) {\n writeLine(` ${bold}Repo${RESET} ${colors.dim}${squad.repo}${RESET}`);\n }\n if (squad.stack) {\n writeLine(` ${bold}Stack${RESET} ${colors.dim}${squad.stack}${RESET}`);\n }\n\n writeLine(` ${colors.purple}${box.horizontal.repeat(tableWidth)}${RESET}`);\n writeLine();\n\n // Commands\n writeLine(` ${colors.dim}$${RESET} squads context show ${colors.cyan}${squad.name}${RESET} --json ${colors.dim}JSON output${RESET}`);\n writeLine(` ${colors.dim}$${RESET} squads run ${colors.cyan}${squad.name}${RESET} ${colors.dim}Run with this context${RESET}`);\n writeLine();\n}\n\nexport async function contextListCommand(\n options: ContextOptions = {}\n): Promise<void> {\n await track(Events.CLI_CONTEXT, { action: 'list' });\n const squadsDir = findSquadsDir();\n\n if (!squadsDir) {\n writeLine(`${colors.red}No .agents/squads directory found${RESET}`);\n process.exit(1);\n }\n\n const squads = listSquads(squadsDir);\n\n if (options.json) {\n const contexts: Record<string, SquadContext | undefined> = {};\n for (const name of squads) {\n const squad = loadSquad(name);\n if (squad) {\n contexts[name] = squad.context;\n }\n }\n console.log(JSON.stringify(contexts, null, 2));\n return;\n }\n\n writeLine();\n writeLine(` ${gradient('squads')} ${colors.dim}context list${RESET}`);\n writeLine();\n\n const w = { name: 14, mcp: 24, model: 12, budget: 12 };\n const tableWidth = w.name + w.mcp + w.model + w.budget + 6;\n\n writeLine(` ${colors.purple}${box.topLeft}${colors.dim}${box.horizontal.repeat(tableWidth)}${colors.purple}${box.topRight}${RESET}`);\n\n const header = ` ${colors.purple}${box.vertical}${RESET} ` +\n `${bold}${padEnd('SQUAD', w.name)}${RESET}` +\n `${bold}${padEnd('MCP', w.mcp)}${RESET}` +\n `${bold}${padEnd('MODEL', w.model)}${RESET}` +\n `${bold}BUDGET${RESET}` +\n ` ${colors.purple}${box.vertical}${RESET}`;\n writeLine(header);\n\n writeLine(` ${colors.purple}${box.teeRight}${colors.dim}${box.horizontal.repeat(tableWidth)}${colors.purple}${box.teeLeft}${RESET}`);\n\n for (const name of squads) {\n const squad = loadSquad(name);\n const ctx = squad?.context;\n\n const mcpStr = ctx?.mcp?.slice(0, 2).join(', ') || `${colors.dim}—${RESET}`;\n const modelStr = ctx?.model?.default || `${colors.dim}—${RESET}`;\n const budgetStr = ctx?.budget?.daily ? `$${ctx.budget.daily}/d` : `${colors.dim}—${RESET}`;\n\n const row = ` ${colors.purple}${box.vertical}${RESET} ` +\n `${colors.cyan}${padEnd(name, w.name)}${RESET}` +\n `${padEnd(mcpStr, w.mcp)}` +\n `${padEnd(modelStr, w.model)}` +\n `${padEnd(budgetStr, w.budget)}` +\n `${colors.purple}${box.vertical}${RESET}`;\n\n writeLine(row);\n }\n\n writeLine(` ${colors.purple}${box.bottomLeft}${colors.dim}${box.horizontal.repeat(tableWidth)}${colors.purple}${box.bottomRight}${RESET}`);\n writeLine();\n}\n\ninterface ActivateOptions {\n dryRun?: boolean;\n force?: boolean;\n json?: boolean;\n}\n\n/**\n * Activate execution context for a squad.\n * Resolves MCP config, skills, and memory paths.\n * Generates squad-scoped .mcp.json if needed.\n */\nexport async function contextActivateCommand(\n squadName: string,\n options: ActivateOptions = {}\n): Promise<void> {\n await track(Events.CLI_CONTEXT, { squad: squadName, action: 'activate' });\n\n const squadsDir = findSquadsDir();\n if (!squadsDir) {\n writeLine(`${colors.red}No .agents/squads directory found${RESET}`);\n process.exit(1);\n }\n\n const squad = loadSquad(squadName);\n if (!squad) {\n writeLine(`${colors.red}Squad \"${squadName}\" not found.${RESET}`);\n process.exit(1);\n }\n\n // Resolve execution context\n const execContext = resolveExecutionContext(squad, options.force);\n\n if (options.json) {\n console.log(JSON.stringify(execContext, null, 2));\n return;\n }\n\n if (options.dryRun) {\n writeLine();\n writeLine(` ${gradient('squads')} ${colors.dim}context activate${RESET} ${colors.cyan}${squadName}${RESET} ${colors.yellow}(dry run)${RESET}`);\n writeLine();\n writeLine(` ${colors.dim}Would resolve:${RESET}`);\n writeLine();\n writeLine(` ${bold}MCP Config${RESET}`);\n writeLine(` Path: ${execContext.resolved.mcpConfigPath}`);\n writeLine(` Source: ${execContext.resolved.mcpSource}`);\n if (execContext.resolved.mcpServers.length > 0) {\n writeLine(` Servers: ${execContext.resolved.mcpServers.join(', ')}`);\n }\n\n if (execContext.resolved.skills && execContext.resolved.skills.length > 0) {\n writeLine();\n writeLine(` ${bold}Skills${RESET}`);\n for (const skill of execContext.resolved.skills) {\n const sourceColor = skill.source === 'squad-local' ? colors.green :\n skill.source === 'project' ? colors.cyan :\n colors.dim;\n writeLine(` ${colors.cyan}${skill.name}${RESET} ${sourceColor}(${skill.source})${RESET}`);\n writeLine(` ${colors.dim}${skill.path}${RESET}`);\n }\n }\n\n if (execContext.resolved.memoryPaths.length > 0) {\n writeLine();\n writeLine(` ${bold}Memory${RESET}`);\n for (const path of execContext.resolved.memoryPaths) {\n writeLine(` ${colors.dim}${path}${RESET}`);\n }\n }\n\n writeLine();\n writeLine(` ${colors.dim}Run without --dry-run to generate config${RESET}`);\n writeLine();\n return;\n }\n\n // Actually activate (generate config if needed)\n writeLine();\n writeLine(` ${gradient('squads')} ${colors.dim}context activate${RESET} ${colors.cyan}${squadName}${RESET}`);\n writeLine();\n\n // Show what was resolved/generated\n const mcpSourceLabel = execContext.resolved.mcpSource === 'squad-local'\n ? `${colors.green}squad-local${RESET}`\n : execContext.resolved.mcpSource === 'generated'\n ? `${colors.cyan}generated${RESET}`\n : execContext.resolved.mcpSource === 'user-override'\n ? `${colors.yellow}user override${RESET}`\n : `${colors.dim}fallback${RESET}`;\n\n const sourceLabel = mcpSourceLabel;\n\n writeLine(` ${icons.success} MCP config: ${sourceLabel}`);\n writeLine(` ${colors.dim}${execContext.resolved.mcpConfigPath}${RESET}`);\n\n if (execContext.resolved.mcpServers.length > 0) {\n writeLine(` ${colors.dim}Servers: ${execContext.resolved.mcpServers.join(', ')}${RESET}`);\n }\n\n if (execContext.resolved.skills && execContext.resolved.skills.length > 0) {\n // Group skills by source\n const bySource = execContext.resolved.skills.reduce((acc, s) => {\n acc[s.source] = (acc[s.source] || 0) + 1;\n return acc;\n }, {} as Record<string, number>);\n\n const sourceSummary = Object.entries(bySource)\n .map(([source, count]) => `${count} ${source}`)\n .join(', ');\n\n writeLine(` ${icons.success} Skills: ${execContext.resolved.skills.length} resolved (${sourceSummary})`);\n }\n\n if (execContext.resolved.memoryPaths.length > 0) {\n writeLine(` ${icons.success} Memory: ${execContext.resolved.memoryPaths.length} files`);\n }\n\n writeLine();\n writeLine(` ${colors.dim}To use this context manually:${RESET}`);\n writeLine(` ${colors.dim}$${RESET} claude --mcp-config '${execContext.resolved.mcpConfigPath}'`);\n writeLine();\n writeLine(` ${colors.dim}Or run with squads:${RESET}`);\n writeLine(` ${colors.dim}$${RESET} squads run ${colors.cyan}${squadName}${RESET}`);\n writeLine();\n}\n\n/**\n * Output a ready-to-use prompt for Claude Code execution.\n * Usage: squads context prompt <squad> -a <agent>\n * Pipe to claude: squads context prompt company -a event-dispatcher | claude --print\n */\ninterface PromptOptions {\n agent?: string;\n json?: boolean;\n}\n\nexport async function contextPromptCommand(\n squadName: string,\n options: PromptOptions = {}\n): Promise<void> {\n await track(Events.CLI_CONTEXT, { squad: squadName, action: 'prompt' });\n const squadsDir = findSquadsDir();\n\n if (!squadsDir) {\n console.error('No .agents/squads directory found');\n process.exit(1);\n }\n\n const squad = loadSquad(squadName);\n if (!squad) {\n console.error(`Squad \"${squadName}\" not found.`);\n process.exit(1);\n }\n\n if (!options.agent) {\n console.error('Agent required. Use -a <agent>');\n process.exit(1);\n }\n\n const agentPath = `.agents/squads/${squadName}/${options.agent}.md`;\n\n // Build the prompt for Claude\n const prompt = `Execute the ${options.agent} agent from squad ${squadName}.\n\nRead the agent definition at ${agentPath} and follow its instructions exactly.\n\nCRITICAL INSTRUCTIONS:\n- Work autonomously - do NOT ask clarifying questions\n- Use Task tool to spawn sub-agents when needed\n- Output findings to GitHub issues (gh issue create)\n- Output code changes as PRs (gh pr create)\n- Update memory files in .agents/memory/${squadName}/${options.agent}/\n- Type /exit when done\n\nBegin now.`;\n\n if (options.json) {\n console.log(JSON.stringify({\n squad: squadName,\n agent: options.agent,\n agentPath,\n prompt,\n }, null, 2));\n } else {\n // Output raw prompt for piping to claude\n console.log(prompt);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,eAAsB,mBACpB,WACA,UAA0B,CAAC,GACZ;AACf,QAAM,MAAM,OAAO,aAAa,EAAE,OAAO,UAAU,CAAC;AACpD,QAAM,YAAY,cAAc;AAEhC,MAAI,CAAC,WAAW;AACd,cAAU,GAAG,OAAO,GAAG,oCAAoC,KAAK,EAAE;AAClE,cAAU,GAAG,OAAO,GAAG,qCAAqC,KAAK,EAAE;AACnE,YAAQ,KAAK,CAAC;AAAA,EAChB;AAEA,QAAM,QAAQ,UAAU,SAAS;AAEjC,MAAI,CAAC,OAAO;AACV,cAAU,GAAG,OAAO,GAAG,UAAU,SAAS,eAAe,KAAK,EAAE;AAChE,YAAQ,KAAK,CAAC;AAAA,EAChB;AAGA,QAAM,cAAc,wBAAwB,KAAK;AAEjD,MAAI,QAAQ,MAAM;AAChB,YAAQ,IAAI,KAAK,UAAU;AAAA,MACzB,MAAM,MAAM;AAAA,MACZ,SAAS,MAAM;AAAA,MACf,MAAM,MAAM;AAAA,MACZ,OAAO,MAAM;AAAA,MACb,QAAQ,MAAM;AAAA,MACd,SAAS,MAAM;AAAA,MACf,UAAU,YAAY;AAAA,IACxB,GAAG,MAAM,CAAC,CAAC;AACX;AAAA,EACF;AAEA,YAAU;AACV,YAAU,KAAK,SAAS,QAAQ,CAAC,IAAI,OAAO,GAAG,UAAU,KAAK,IAAI,OAAO,IAAI,GAAG,MAAM,IAAI,GAAG,KAAK,EAAE;AAEpG,QAAM,MAAM,MAAM;AAElB,MAAI,CAAC,KAAK;AACR,cAAU;AACV,cAAU,KAAK,OAAO,MAAM,6CAA6C,KAAK,EAAE;AAChF,cAAU;AACV,cAAU,KAAK,OAAO,GAAG,8BAA8B,MAAM,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