squadfoundry 0.1.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.
Files changed (309) hide show
  1. package/AGENTS.md +76 -0
  2. package/PROJECT.md +79 -0
  3. package/README.md +255 -0
  4. package/dist/orchestrator/adapters/context/IContextAdapter.d.ts +65 -0
  5. package/dist/orchestrator/adapters/context/IContextAdapter.d.ts.map +1 -0
  6. package/dist/orchestrator/adapters/context/IContextAdapter.js +12 -0
  7. package/dist/orchestrator/adapters/context/IContextAdapter.js.map +1 -0
  8. package/dist/orchestrator/adapters/context/filesystem.context-adapter.d.ts +33 -0
  9. package/dist/orchestrator/adapters/context/filesystem.context-adapter.d.ts.map +1 -0
  10. package/dist/orchestrator/adapters/context/filesystem.context-adapter.js +179 -0
  11. package/dist/orchestrator/adapters/context/filesystem.context-adapter.js.map +1 -0
  12. package/dist/orchestrator/adapters/deploy/IDeployAdapter.d.ts +78 -0
  13. package/dist/orchestrator/adapters/deploy/IDeployAdapter.d.ts.map +1 -0
  14. package/dist/orchestrator/adapters/deploy/IDeployAdapter.js +14 -0
  15. package/dist/orchestrator/adapters/deploy/IDeployAdapter.js.map +1 -0
  16. package/dist/orchestrator/adapters/deploy/vercel.adapter.d.ts +31 -0
  17. package/dist/orchestrator/adapters/deploy/vercel.adapter.d.ts.map +1 -0
  18. package/dist/orchestrator/adapters/deploy/vercel.adapter.js +83 -0
  19. package/dist/orchestrator/adapters/deploy/vercel.adapter.js.map +1 -0
  20. package/dist/orchestrator/adapters/host/IHostAdapter.d.ts +89 -0
  21. package/dist/orchestrator/adapters/host/IHostAdapter.d.ts.map +1 -0
  22. package/dist/orchestrator/adapters/host/IHostAdapter.js +10 -0
  23. package/dist/orchestrator/adapters/host/IHostAdapter.js.map +1 -0
  24. package/dist/orchestrator/adapters/host/anthropic.adapter.d.ts +27 -0
  25. package/dist/orchestrator/adapters/host/anthropic.adapter.d.ts.map +1 -0
  26. package/dist/orchestrator/adapters/host/anthropic.adapter.js +118 -0
  27. package/dist/orchestrator/adapters/host/anthropic.adapter.js.map +1 -0
  28. package/dist/orchestrator/adapters/host/antigravity.adapter.d.ts +53 -0
  29. package/dist/orchestrator/adapters/host/antigravity.adapter.d.ts.map +1 -0
  30. package/dist/orchestrator/adapters/host/antigravity.adapter.js +148 -0
  31. package/dist/orchestrator/adapters/host/antigravity.adapter.js.map +1 -0
  32. package/dist/orchestrator/adapters/host/claude-code.adapter.d.ts +13 -0
  33. package/dist/orchestrator/adapters/host/claude-code.adapter.d.ts.map +1 -0
  34. package/dist/orchestrator/adapters/host/claude-code.adapter.js +27 -0
  35. package/dist/orchestrator/adapters/host/claude-code.adapter.js.map +1 -0
  36. package/dist/orchestrator/adapters/host/command-model-invoker.d.ts +8 -0
  37. package/dist/orchestrator/adapters/host/command-model-invoker.d.ts.map +1 -0
  38. package/dist/orchestrator/adapters/host/command-model-invoker.js +46 -0
  39. package/dist/orchestrator/adapters/host/command-model-invoker.js.map +1 -0
  40. package/dist/orchestrator/adapters/host/ide.adapter.d.ts +61 -0
  41. package/dist/orchestrator/adapters/host/ide.adapter.d.ts.map +1 -0
  42. package/dist/orchestrator/adapters/host/ide.adapter.js +173 -0
  43. package/dist/orchestrator/adapters/host/ide.adapter.js.map +1 -0
  44. package/dist/orchestrator/adapters/host/local.adapter.d.ts +26 -0
  45. package/dist/orchestrator/adapters/host/local.adapter.d.ts.map +1 -0
  46. package/dist/orchestrator/adapters/host/local.adapter.js +82 -0
  47. package/dist/orchestrator/adapters/host/local.adapter.js.map +1 -0
  48. package/dist/orchestrator/adapters/host/openai.adapter.d.ts +26 -0
  49. package/dist/orchestrator/adapters/host/openai.adapter.d.ts.map +1 -0
  50. package/dist/orchestrator/adapters/host/openai.adapter.js +77 -0
  51. package/dist/orchestrator/adapters/host/openai.adapter.js.map +1 -0
  52. package/dist/orchestrator/adapters/host/opencode.adapter.d.ts +13 -0
  53. package/dist/orchestrator/adapters/host/opencode.adapter.d.ts.map +1 -0
  54. package/dist/orchestrator/adapters/host/opencode.adapter.js +27 -0
  55. package/dist/orchestrator/adapters/host/opencode.adapter.js.map +1 -0
  56. package/dist/orchestrator/adapters/model/IModelAdapter.d.ts +68 -0
  57. package/dist/orchestrator/adapters/model/IModelAdapter.d.ts.map +1 -0
  58. package/dist/orchestrator/adapters/model/IModelAdapter.js +11 -0
  59. package/dist/orchestrator/adapters/model/IModelAdapter.js.map +1 -0
  60. package/dist/orchestrator/adapters/publishing/ISocialMediaAdapter.d.ts +93 -0
  61. package/dist/orchestrator/adapters/publishing/ISocialMediaAdapter.d.ts.map +1 -0
  62. package/dist/orchestrator/adapters/publishing/ISocialMediaAdapter.js +10 -0
  63. package/dist/orchestrator/adapters/publishing/ISocialMediaAdapter.js.map +1 -0
  64. package/dist/orchestrator/adapters/publishing/instagram.adapter.d.ts +34 -0
  65. package/dist/orchestrator/adapters/publishing/instagram.adapter.d.ts.map +1 -0
  66. package/dist/orchestrator/adapters/publishing/instagram.adapter.js +105 -0
  67. package/dist/orchestrator/adapters/publishing/instagram.adapter.js.map +1 -0
  68. package/dist/orchestrator/adapters/tools/IToolAdapter.d.ts +52 -0
  69. package/dist/orchestrator/adapters/tools/IToolAdapter.d.ts.map +1 -0
  70. package/dist/orchestrator/adapters/tools/IToolAdapter.js +10 -0
  71. package/dist/orchestrator/adapters/tools/IToolAdapter.js.map +1 -0
  72. package/dist/orchestrator/adapters/vcs/IVCSAdapter.d.ts +89 -0
  73. package/dist/orchestrator/adapters/vcs/IVCSAdapter.d.ts.map +1 -0
  74. package/dist/orchestrator/adapters/vcs/IVCSAdapter.js +11 -0
  75. package/dist/orchestrator/adapters/vcs/IVCSAdapter.js.map +1 -0
  76. package/dist/orchestrator/adapters/vcs/github.adapter.d.ts +36 -0
  77. package/dist/orchestrator/adapters/vcs/github.adapter.d.ts.map +1 -0
  78. package/dist/orchestrator/adapters/vcs/github.adapter.js +110 -0
  79. package/dist/orchestrator/adapters/vcs/github.adapter.js.map +1 -0
  80. package/dist/orchestrator/artifacts/artifact-store.d.ts +47 -0
  81. package/dist/orchestrator/artifacts/artifact-store.d.ts.map +1 -0
  82. package/dist/orchestrator/artifacts/artifact-store.js +135 -0
  83. package/dist/orchestrator/artifacts/artifact-store.js.map +1 -0
  84. package/dist/orchestrator/builder/domain-classifier.d.ts +24 -0
  85. package/dist/orchestrator/builder/domain-classifier.d.ts.map +1 -0
  86. package/dist/orchestrator/builder/domain-classifier.js +156 -0
  87. package/dist/orchestrator/builder/domain-classifier.js.map +1 -0
  88. package/dist/orchestrator/builder/interview-questions.d.ts +13 -0
  89. package/dist/orchestrator/builder/interview-questions.d.ts.map +1 -0
  90. package/dist/orchestrator/builder/interview-questions.js +127 -0
  91. package/dist/orchestrator/builder/interview-questions.js.map +1 -0
  92. package/dist/orchestrator/builder/squad-builder.d.ts +53 -0
  93. package/dist/orchestrator/builder/squad-builder.d.ts.map +1 -0
  94. package/dist/orchestrator/builder/squad-builder.js +107 -0
  95. package/dist/orchestrator/builder/squad-builder.js.map +1 -0
  96. package/dist/orchestrator/builder/squad-generator.d.ts +33 -0
  97. package/dist/orchestrator/builder/squad-generator.d.ts.map +1 -0
  98. package/dist/orchestrator/builder/squad-generator.js +360 -0
  99. package/dist/orchestrator/builder/squad-generator.js.map +1 -0
  100. package/dist/orchestrator/cli/index.d.ts +3 -0
  101. package/dist/orchestrator/cli/index.d.ts.map +1 -0
  102. package/dist/orchestrator/cli/index.js +8 -0
  103. package/dist/orchestrator/cli/index.js.map +1 -0
  104. package/dist/orchestrator/context/context-index.d.ts +48 -0
  105. package/dist/orchestrator/context/context-index.d.ts.map +1 -0
  106. package/dist/orchestrator/context/context-index.js +116 -0
  107. package/dist/orchestrator/context/context-index.js.map +1 -0
  108. package/dist/orchestrator/context/context-loader.d.ts +49 -0
  109. package/dist/orchestrator/context/context-loader.d.ts.map +1 -0
  110. package/dist/orchestrator/context/context-loader.js +111 -0
  111. package/dist/orchestrator/context/context-loader.js.map +1 -0
  112. package/dist/orchestrator/core/guardrails.d.ts +33 -0
  113. package/dist/orchestrator/core/guardrails.d.ts.map +1 -0
  114. package/dist/orchestrator/core/guardrails.js +272 -0
  115. package/dist/orchestrator/core/guardrails.js.map +1 -0
  116. package/dist/orchestrator/core/state-machine.d.ts +65 -0
  117. package/dist/orchestrator/core/state-machine.d.ts.map +1 -0
  118. package/dist/orchestrator/core/state-machine.js +227 -0
  119. package/dist/orchestrator/core/state-machine.js.map +1 -0
  120. package/dist/orchestrator/core/types.d.ts +364 -0
  121. package/dist/orchestrator/core/types.d.ts.map +1 -0
  122. package/dist/orchestrator/core/types.js +10 -0
  123. package/dist/orchestrator/core/types.js.map +1 -0
  124. package/dist/orchestrator/index.d.ts +75 -0
  125. package/dist/orchestrator/index.d.ts.map +1 -0
  126. package/dist/orchestrator/index.js +64 -0
  127. package/dist/orchestrator/index.js.map +1 -0
  128. package/dist/orchestrator/mcp/server.d.ts +35 -0
  129. package/dist/orchestrator/mcp/server.d.ts.map +1 -0
  130. package/dist/orchestrator/mcp/server.js +378 -0
  131. package/dist/orchestrator/mcp/server.js.map +1 -0
  132. package/dist/orchestrator/runtime/agent-dispatcher.d.ts +25 -0
  133. package/dist/orchestrator/runtime/agent-dispatcher.d.ts.map +1 -0
  134. package/dist/orchestrator/runtime/agent-dispatcher.js +82 -0
  135. package/dist/orchestrator/runtime/agent-dispatcher.js.map +1 -0
  136. package/dist/orchestrator/runtime/approval-gate.d.ts +55 -0
  137. package/dist/orchestrator/runtime/approval-gate.d.ts.map +1 -0
  138. package/dist/orchestrator/runtime/approval-gate.js +104 -0
  139. package/dist/orchestrator/runtime/approval-gate.js.map +1 -0
  140. package/dist/orchestrator/runtime/handoff-manager.d.ts +29 -0
  141. package/dist/orchestrator/runtime/handoff-manager.d.ts.map +1 -0
  142. package/dist/orchestrator/runtime/handoff-manager.js +80 -0
  143. package/dist/orchestrator/runtime/handoff-manager.js.map +1 -0
  144. package/dist/orchestrator/runtime/job-manager.d.ts +39 -0
  145. package/dist/orchestrator/runtime/job-manager.d.ts.map +1 -0
  146. package/dist/orchestrator/runtime/job-manager.js +132 -0
  147. package/dist/orchestrator/runtime/job-manager.js.map +1 -0
  148. package/dist/orchestrator/runtime/squad-runtime.d.ts +70 -0
  149. package/dist/orchestrator/runtime/squad-runtime.d.ts.map +1 -0
  150. package/dist/orchestrator/runtime/squad-runtime.js +249 -0
  151. package/dist/orchestrator/runtime/squad-runtime.js.map +1 -0
  152. package/dist/orchestrator/shell/cli.d.ts +4 -0
  153. package/dist/orchestrator/shell/cli.d.ts.map +1 -0
  154. package/dist/orchestrator/shell/cli.js +27 -0
  155. package/dist/orchestrator/shell/cli.js.map +1 -0
  156. package/dist/orchestrator/shell/commands/create.command.d.ts +3 -0
  157. package/dist/orchestrator/shell/commands/create.command.d.ts.map +1 -0
  158. package/dist/orchestrator/shell/commands/create.command.js +41 -0
  159. package/dist/orchestrator/shell/commands/create.command.js.map +1 -0
  160. package/dist/orchestrator/shell/commands/edit.command.d.ts +3 -0
  161. package/dist/orchestrator/shell/commands/edit.command.d.ts.map +1 -0
  162. package/dist/orchestrator/shell/commands/edit.command.js +49 -0
  163. package/dist/orchestrator/shell/commands/edit.command.js.map +1 -0
  164. package/dist/orchestrator/shell/commands/hosts.command.d.ts +3 -0
  165. package/dist/orchestrator/shell/commands/hosts.command.d.ts.map +1 -0
  166. package/dist/orchestrator/shell/commands/hosts.command.js +27 -0
  167. package/dist/orchestrator/shell/commands/hosts.command.js.map +1 -0
  168. package/dist/orchestrator/shell/commands/init.command.d.ts +3 -0
  169. package/dist/orchestrator/shell/commands/init.command.d.ts.map +1 -0
  170. package/dist/orchestrator/shell/commands/init.command.js +13 -0
  171. package/dist/orchestrator/shell/commands/init.command.js.map +1 -0
  172. package/dist/orchestrator/shell/commands/list.command.d.ts +3 -0
  173. package/dist/orchestrator/shell/commands/list.command.d.ts.map +1 -0
  174. package/dist/orchestrator/shell/commands/list.command.js +18 -0
  175. package/dist/orchestrator/shell/commands/list.command.js.map +1 -0
  176. package/dist/orchestrator/shell/commands/run.command.d.ts +3 -0
  177. package/dist/orchestrator/shell/commands/run.command.d.ts.map +1 -0
  178. package/dist/orchestrator/shell/commands/run.command.js +71 -0
  179. package/dist/orchestrator/shell/commands/run.command.js.map +1 -0
  180. package/dist/orchestrator/shell/commands/status.command.d.ts +3 -0
  181. package/dist/orchestrator/shell/commands/status.command.d.ts.map +1 -0
  182. package/dist/orchestrator/shell/commands/status.command.js +29 -0
  183. package/dist/orchestrator/shell/commands/status.command.js.map +1 -0
  184. package/dist/orchestrator/shell/services/active-host-detector.service.d.ts +25 -0
  185. package/dist/orchestrator/shell/services/active-host-detector.service.d.ts.map +1 -0
  186. package/dist/orchestrator/shell/services/active-host-detector.service.js +128 -0
  187. package/dist/orchestrator/shell/services/active-host-detector.service.js.map +1 -0
  188. package/dist/orchestrator/shell/services/host-resolution.service.d.ts +42 -0
  189. package/dist/orchestrator/shell/services/host-resolution.service.d.ts.map +1 -0
  190. package/dist/orchestrator/shell/services/host-resolution.service.js +108 -0
  191. package/dist/orchestrator/shell/services/host-resolution.service.js.map +1 -0
  192. package/dist/orchestrator/shell/services/host-runtime.service.d.ts +23 -0
  193. package/dist/orchestrator/shell/services/host-runtime.service.d.ts.map +1 -0
  194. package/dist/orchestrator/shell/services/host-runtime.service.js +167 -0
  195. package/dist/orchestrator/shell/services/host-runtime.service.js.map +1 -0
  196. package/dist/orchestrator/shell/services/interview-host-bridge.service.d.ts +14 -0
  197. package/dist/orchestrator/shell/services/interview-host-bridge.service.d.ts.map +1 -0
  198. package/dist/orchestrator/shell/services/interview-host-bridge.service.js +16 -0
  199. package/dist/orchestrator/shell/services/interview-host-bridge.service.js.map +1 -0
  200. package/dist/orchestrator/shell/services/job-execution.service.d.ts +22 -0
  201. package/dist/orchestrator/shell/services/job-execution.service.d.ts.map +1 -0
  202. package/dist/orchestrator/shell/services/job-execution.service.js +39 -0
  203. package/dist/orchestrator/shell/services/job-execution.service.js.map +1 -0
  204. package/dist/orchestrator/shell/services/project-bootstrap.service.d.ts +6 -0
  205. package/dist/orchestrator/shell/services/project-bootstrap.service.d.ts.map +1 -0
  206. package/dist/orchestrator/shell/services/project-bootstrap.service.js +111 -0
  207. package/dist/orchestrator/shell/services/project-bootstrap.service.js.map +1 -0
  208. package/dist/orchestrator/shell/services/squad-scaffold.service.d.ts +3 -0
  209. package/dist/orchestrator/shell/services/squad-scaffold.service.d.ts.map +1 -0
  210. package/dist/orchestrator/shell/services/squad-scaffold.service.js +30 -0
  211. package/dist/orchestrator/shell/services/squad-scaffold.service.js.map +1 -0
  212. package/dist/tests/integration/instagram-squad.test.d.ts +8 -0
  213. package/dist/tests/integration/instagram-squad.test.d.ts.map +1 -0
  214. package/dist/tests/integration/instagram-squad.test.js +187 -0
  215. package/dist/tests/integration/instagram-squad.test.js.map +1 -0
  216. package/dist/tests/integration/shell/cli-run-host-native.test.d.ts +2 -0
  217. package/dist/tests/integration/shell/cli-run-host-native.test.d.ts.map +1 -0
  218. package/dist/tests/integration/shell/cli-run-host-native.test.js +42 -0
  219. package/dist/tests/integration/shell/cli-run-host-native.test.js.map +1 -0
  220. package/dist/tests/integration/software-squad.test.d.ts +8 -0
  221. package/dist/tests/integration/software-squad.test.d.ts.map +1 -0
  222. package/dist/tests/integration/software-squad.test.js +207 -0
  223. package/dist/tests/integration/software-squad.test.js.map +1 -0
  224. package/dist/tests/unit/artifact-store.test.d.ts +2 -0
  225. package/dist/tests/unit/artifact-store.test.d.ts.map +1 -0
  226. package/dist/tests/unit/artifact-store.test.js +137 -0
  227. package/dist/tests/unit/artifact-store.test.js.map +1 -0
  228. package/dist/tests/unit/context-loader.test.d.ts +2 -0
  229. package/dist/tests/unit/context-loader.test.d.ts.map +1 -0
  230. package/dist/tests/unit/context-loader.test.js +109 -0
  231. package/dist/tests/unit/context-loader.test.js.map +1 -0
  232. package/dist/tests/unit/docs/host-native-docs.test.d.ts +2 -0
  233. package/dist/tests/unit/docs/host-native-docs.test.d.ts.map +1 -0
  234. package/dist/tests/unit/docs/host-native-docs.test.js +18 -0
  235. package/dist/tests/unit/docs/host-native-docs.test.js.map +1 -0
  236. package/dist/tests/unit/guardrails.test.d.ts +2 -0
  237. package/dist/tests/unit/guardrails.test.d.ts.map +1 -0
  238. package/dist/tests/unit/guardrails.test.js +202 -0
  239. package/dist/tests/unit/guardrails.test.js.map +1 -0
  240. package/dist/tests/unit/host/host-adapter-contract.test.d.ts +2 -0
  241. package/dist/tests/unit/host/host-adapter-contract.test.d.ts.map +1 -0
  242. package/dist/tests/unit/host/host-adapter-contract.test.js +53 -0
  243. package/dist/tests/unit/host/host-adapter-contract.test.js.map +1 -0
  244. package/dist/tests/unit/host/ide.adapter.test.d.ts +2 -0
  245. package/dist/tests/unit/host/ide.adapter.test.d.ts.map +1 -0
  246. package/dist/tests/unit/host/ide.adapter.test.js +17 -0
  247. package/dist/tests/unit/host/ide.adapter.test.js.map +1 -0
  248. package/dist/tests/unit/host/native-ide-adapters.test.d.ts +2 -0
  249. package/dist/tests/unit/host/native-ide-adapters.test.d.ts.map +1 -0
  250. package/dist/tests/unit/host/native-ide-adapters.test.js +26 -0
  251. package/dist/tests/unit/host/native-ide-adapters.test.js.map +1 -0
  252. package/dist/tests/unit/runtime/squad-runtime-host-metadata.test.d.ts +2 -0
  253. package/dist/tests/unit/runtime/squad-runtime-host-metadata.test.d.ts.map +1 -0
  254. package/dist/tests/unit/runtime/squad-runtime-host-metadata.test.js +128 -0
  255. package/dist/tests/unit/runtime/squad-runtime-host-metadata.test.js.map +1 -0
  256. package/dist/tests/unit/shell/active-host-detector.test.d.ts +2 -0
  257. package/dist/tests/unit/shell/active-host-detector.test.d.ts.map +1 -0
  258. package/dist/tests/unit/shell/active-host-detector.test.js +85 -0
  259. package/dist/tests/unit/shell/active-host-detector.test.js.map +1 -0
  260. package/dist/tests/unit/shell/host-resolution.service.test.d.ts +2 -0
  261. package/dist/tests/unit/shell/host-resolution.service.test.d.ts.map +1 -0
  262. package/dist/tests/unit/shell/host-resolution.service.test.js +252 -0
  263. package/dist/tests/unit/shell/host-resolution.service.test.js.map +1 -0
  264. package/dist/tests/unit/shell/interview-host-bridge.test.d.ts +2 -0
  265. package/dist/tests/unit/shell/interview-host-bridge.test.d.ts.map +1 -0
  266. package/dist/tests/unit/shell/interview-host-bridge.test.js +58 -0
  267. package/dist/tests/unit/shell/interview-host-bridge.test.js.map +1 -0
  268. package/dist/tests/unit/shell/project-bootstrap.service.test.d.ts +2 -0
  269. package/dist/tests/unit/shell/project-bootstrap.service.test.d.ts.map +1 -0
  270. package/dist/tests/unit/shell/project-bootstrap.service.test.js +58 -0
  271. package/dist/tests/unit/shell/project-bootstrap.service.test.js.map +1 -0
  272. package/dist/tests/unit/shell/squad-scaffold.service.test.d.ts +2 -0
  273. package/dist/tests/unit/shell/squad-scaffold.service.test.d.ts.map +1 -0
  274. package/dist/tests/unit/shell/squad-scaffold.service.test.js +40 -0
  275. package/dist/tests/unit/shell/squad-scaffold.service.test.js.map +1 -0
  276. package/dist/tests/unit/squad-builder.test.d.ts +2 -0
  277. package/dist/tests/unit/squad-builder.test.d.ts.map +1 -0
  278. package/dist/tests/unit/squad-builder.test.js +126 -0
  279. package/dist/tests/unit/squad-builder.test.js.map +1 -0
  280. package/dist/tests/unit/state-machine.test.d.ts +2 -0
  281. package/dist/tests/unit/state-machine.test.d.ts.map +1 -0
  282. package/dist/tests/unit/state-machine.test.js +133 -0
  283. package/dist/tests/unit/state-machine.test.js.map +1 -0
  284. package/docs/architecture/overview.md +115 -0
  285. package/docs/development/adding-agents.md +75 -0
  286. package/docs/development/adding-hosts.md +104 -0
  287. package/docs/development/adding-integrations.md +83 -0
  288. package/docs/development/host-detection-and-resolution.md +59 -0
  289. package/docs/squads/how-to-create.md +85 -0
  290. package/docs/squads/how-to-execute.md +139 -0
  291. package/docs/superpowers/plans/2026-04-01-host-native-cli-shell-implementation.md +617 -0
  292. package/docs/superpowers/specs/2026-04-01-host-native-cli-shell-design.md +253 -0
  293. package/package.json +103 -0
  294. package/squads/examples/instagram-content/AGENTS.md +63 -0
  295. package/squads/examples/instagram-content/POLICIES.md +45 -0
  296. package/squads/examples/instagram-content/SQUAD.md +63 -0
  297. package/squads/examples/instagram-content/WORKFLOW.md +58 -0
  298. package/squads/examples/instagram-content/config/squad.json +474 -0
  299. package/squads/examples/software-development/AGENTS.md +88 -0
  300. package/squads/examples/software-development/POLICIES.md +44 -0
  301. package/squads/examples/software-development/SQUAD.md +65 -0
  302. package/squads/examples/software-development/WORKFLOW.md +78 -0
  303. package/squads/examples/software-development/config/squad.json +442 -0
  304. package/templates/AGENTS.md +46 -0
  305. package/templates/POLICIES.md +24 -0
  306. package/templates/PROJECT.md +52 -0
  307. package/templates/SQUAD.md +52 -0
  308. package/templates/TASKS.md +31 -0
  309. package/templates/WORKFLOW.md +35 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-runtime.service.js","sourceRoot":"","sources":["../../../../orchestrator/shell/services/host-runtime.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAA;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAA;AAElF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM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';
2
+ export type InterviewBridgeState = {
3
+ turnCount: number;
4
+ history: string[];
5
+ };
6
+ export type InterviewBridgeResult = {
7
+ content: string;
8
+ activeModel: string;
9
+ status: 'continue' | 'complete';
10
+ };
11
+ export declare class InterviewHostBridgeService {
12
+ nextTurn(hostAdapter: IHostAdapter, input: InterviewTurnInput, state: InterviewBridgeState): Promise<InterviewBridgeResult>;
13
+ }
14
+ //# sourceMappingURL=interview-host-bridge.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interview-host-bridge.service.d.ts","sourceRoot":"","sources":["../../../../orchestrator/shell/services/interview-host-bridge.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAEnB,MAAM,qCAAqC,CAAA;AAE5C,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,UAAU,GAAG,UAAU,CAAA;CAChC,CAAA;AAED,qBAAa,0BAA0B;IAC/B,QAAQ,CACZ,WAAW,EAAE,YAAY,EACzB,KAAK,EAAE,kBAAkB,EACzB,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,qBAAqB,CAAC;CAelC"}
@@ -0,0 +1,16 @@
1
+ export class InterviewHostBridgeService {
2
+ async nextTurn(hostAdapter, input, state) {
3
+ const adapterState = {
4
+ turnCount: state.turnCount,
5
+ history: state.history,
6
+ };
7
+ const turn = await hostAdapter.runInterviewTurn(input, adapterState);
8
+ const activeModel = (await hostAdapter.getActiveModel()) ?? 'host-default';
9
+ return {
10
+ content: turn.content,
11
+ activeModel,
12
+ status: turn.status,
13
+ };
14
+ }
15
+ }
16
+ //# sourceMappingURL=interview-host-bridge.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interview-host-bridge.service.js","sourceRoot":"","sources":["../../../../orchestrator/shell/services/interview-host-bridge.service.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,0BAA0B;IACrC,KAAK,CAAC,QAAQ,CACZ,WAAyB,EACzB,KAAyB,EACzB,KAA2B;QAE3B,MAAM,YAAY,GAAuB;YACvC,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAA;QAED,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;QACpE,MAAM,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,cAAc,EAAE,CAAC,IAAI,cAAc,CAAA;QAE1E,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW;YACX,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAA;IACH,CAAC;CACF"}
@@ -0,0 +1,22 @@
1
+ import type { SquadDefinition } from '../../core/types.js';
2
+ export type RunSquadOptions = {
3
+ cwd: string;
4
+ artifactsDir: string;
5
+ squad: SquadDefinition;
6
+ objective: string;
7
+ input: string;
8
+ };
9
+ export type RunSquadResult = {
10
+ squad: SquadDefinition;
11
+ jobId: string;
12
+ status: string;
13
+ resolvedHost: string;
14
+ confidence: 'high' | 'medium' | 'low';
15
+ reasons: string[];
16
+ activeModel: string;
17
+ fallbackPath: 'detected' | 'persisted' | 'assisted-selection';
18
+ };
19
+ export declare class JobExecutionService {
20
+ runSquad(options: RunSquadOptions): Promise<RunSquadResult>;
21
+ }
22
+ //# sourceMappingURL=job-execution.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-execution.service.d.ts","sourceRoot":"","sources":["../../../../orchestrator/shell/services/job-execution.service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAI1D,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,eAAe,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,eAAe,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAA;IACrC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,UAAU,GAAG,WAAW,GAAG,oBAAoB,CAAA;CAC9D,CAAA;AAED,qBAAa,mBAAmB;IACxB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;CA2ClE"}
@@ -0,0 +1,39 @@
1
+ import { mkdir, writeFile } from 'node:fs/promises';
2
+ import { dirname, join } from 'node:path';
3
+ import { createSquadRuntime } from '../../runtime/squad-runtime.js';
4
+ import { HostRuntimeService } from './host-runtime.service.js';
5
+ export class JobExecutionService {
6
+ async runSquad(options) {
7
+ const hostRuntime = new HostRuntimeService(options.cwd);
8
+ const resolved = await hostRuntime.resolveForCommand('run');
9
+ const runtime = createSquadRuntime({
10
+ artifactsDir: options.artifactsDir,
11
+ hostAdapter: resolved.hostAdapter,
12
+ contextRootPath: options.cwd,
13
+ });
14
+ const job = await runtime.startJob(options.squad, options.objective, options.input);
15
+ await runtime.runAll(options.squad, job);
16
+ const metadata = {
17
+ resolvedHost: resolved.hostId,
18
+ confidence: resolved.confidence,
19
+ reasons: resolved.reasons,
20
+ activeModel: resolved.activeModel,
21
+ fallbackPath: resolved.path,
22
+ timestamp: new Date().toISOString(),
23
+ };
24
+ const metadataPath = join(options.artifactsDir, options.squad.id, job.id, 'reports', 'runtime-metadata.json');
25
+ await mkdir(dirname(metadataPath), { recursive: true });
26
+ await writeFile(metadataPath, `${JSON.stringify(metadata, null, 2)}\n`, 'utf-8');
27
+ return {
28
+ squad: options.squad,
29
+ jobId: job.id,
30
+ status: job.status,
31
+ resolvedHost: resolved.hostId,
32
+ confidence: resolved.confidence,
33
+ reasons: resolved.reasons,
34
+ activeModel: resolved.activeModel,
35
+ fallbackPath: resolved.path,
36
+ };
37
+ }
38
+ }
39
+ //# sourceMappingURL=job-execution.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-execution.service.js","sourceRoot":"","sources":["../../../../orchestrator/shell/services/job-execution.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAqB9D,MAAM,OAAO,mBAAmB;IAC9B,KAAK,CAAC,QAAQ,CAAC,OAAwB;QACrC,MAAM,WAAW,GAAG,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QACvD,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;QAE3D,MAAM,OAAO,GAAG,kBAAkB,CAAC;YACjC,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,eAAe,EAAE,OAAO,CAAC,GAAG;SAC7B,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;QACnF,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;QAExC,MAAM,QAAQ,GAAG;YACf,YAAY,EAAE,QAAQ,CAAC,MAAM;YAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;YAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,YAAY,EAAE,QAAQ,CAAC,IAAI;YAC3B,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC,CAAA;QAED,MAAM,YAAY,GAAG,IAAI,CACvB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,KAAK,CAAC,EAAE,EAChB,GAAG,CAAC,EAAE,EACN,SAAS,EACT,uBAAuB,CACxB,CAAA;QACD,MAAM,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;QACvD,MAAM,SAAS,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QAEhF,OAAO;YACL,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,KAAK,EAAE,GAAG,CAAC,EAAE;YACb,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,YAAY,EAAE,QAAQ,CAAC,MAAM;YAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;YAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,YAAY,EAAE,QAAQ,CAAC,IAAI;SAC5B,CAAA;IACH,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ type InitProjectOptions = {
2
+ force?: boolean;
3
+ };
4
+ export declare function initProject(workspaceDir: string, options?: InitProjectOptions): Promise<void>;
5
+ export {};
6
+ //# sourceMappingURL=project-bootstrap.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-bootstrap.service.d.ts","sourceRoot":"","sources":["../../../../orchestrator/shell/services/project-bootstrap.service.ts"],"names":[],"mappings":"AAgHA,KAAK,kBAAkB,GAAG;IACxB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,wBAAsB,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBvG"}
@@ -0,0 +1,111 @@
1
+ import { access, mkdir, writeFile } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ const PROJECT_CONFIG_FILE = 'squad-foundry.config.json';
4
+ const HOST_PREFERENCES_FILE = 'squad-foundry.hosts.json';
5
+ const defaultProjectConfig = {
6
+ version: 1,
7
+ cliMode: 'shell',
8
+ };
9
+ const defaultHostPreferences = {
10
+ preferredHost: null,
11
+ lastValidated: null,
12
+ hosts: [],
13
+ };
14
+ const IDE_COMMANDS = {
15
+ 'squad-init.md': [
16
+ '# Squad Foundry Init',
17
+ '',
18
+ 'Initialize Squad Foundry in this project:',
19
+ '',
20
+ '```bash',
21
+ 'squad-foundry init --force',
22
+ '```',
23
+ ].join('\n'),
24
+ 'squad-create.md': [
25
+ '# Squad Foundry Create',
26
+ '',
27
+ 'Start guided interview and create squad:',
28
+ '',
29
+ '```bash',
30
+ 'squad-foundry create',
31
+ '```',
32
+ ].join('\n'),
33
+ 'squad-edit.md': [
34
+ '# Squad Foundry Edit',
35
+ '',
36
+ 'Edit existing squad definition:',
37
+ '',
38
+ '```bash',
39
+ 'squad-foundry edit software-development',
40
+ '```',
41
+ ].join('\n'),
42
+ 'squad-run.md': [
43
+ '# Squad Foundry Run',
44
+ '',
45
+ 'Run a squad workflow:',
46
+ '',
47
+ '```bash',
48
+ 'squad-foundry run software-development --objective "Implement feature" --input "Details"',
49
+ '```',
50
+ ].join('\n'),
51
+ 'squad-status.md': [
52
+ '# Squad Foundry Status',
53
+ '',
54
+ 'Check job status and host metadata:',
55
+ '',
56
+ '```bash',
57
+ 'squad-foundry status software-development <job-id>',
58
+ '```',
59
+ ].join('\n'),
60
+ 'squad-hosts.md': [
61
+ '# Squad Foundry Hosts',
62
+ '',
63
+ 'Inspect resolved host/model and persisted preference:',
64
+ '',
65
+ '```bash',
66
+ 'squad-foundry hosts',
67
+ '```',
68
+ ].join('\n'),
69
+ };
70
+ async function writeJsonFile(filePath, content) {
71
+ await writeFile(filePath, `${JSON.stringify(content, null, 2)}\n`, 'utf-8');
72
+ }
73
+ async function scaffoldIdeCommands(workspaceDir) {
74
+ const targetDirs = [
75
+ join(workspaceDir, '.opencode', 'commands'),
76
+ join(workspaceDir, '.claude', 'commands'),
77
+ ];
78
+ for (const dir of targetDirs) {
79
+ await mkdir(dir, { recursive: true });
80
+ for (const [fileName, content] of Object.entries(IDE_COMMANDS)) {
81
+ await writeFile(join(dir, fileName), `${content}\n`, 'utf-8');
82
+ }
83
+ }
84
+ }
85
+ async function fileExists(filePath) {
86
+ try {
87
+ await access(filePath);
88
+ return true;
89
+ }
90
+ catch {
91
+ return false;
92
+ }
93
+ }
94
+ export async function initProject(workspaceDir, options = {}) {
95
+ await mkdir(workspaceDir, { recursive: true });
96
+ const configPath = join(workspaceDir, PROJECT_CONFIG_FILE);
97
+ const hostsPath = join(workspaceDir, HOST_PREFERENCES_FILE);
98
+ const force = options.force ?? false;
99
+ if (!force) {
100
+ const [hasConfig, hasHosts] = await Promise.all([fileExists(configPath), fileExists(hostsPath)]);
101
+ if (hasConfig || hasHosts) {
102
+ throw new Error('Squad Foundry config files already exist. Re-run with --force to overwrite.');
103
+ }
104
+ }
105
+ await Promise.all([
106
+ writeJsonFile(configPath, defaultProjectConfig),
107
+ writeJsonFile(hostsPath, defaultHostPreferences),
108
+ ]);
109
+ await scaffoldIdeCommands(workspaceDir);
110
+ }
111
+ //# sourceMappingURL=project-bootstrap.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-bootstrap.service.js","sourceRoot":"","sources":["../../../../orchestrator/shell/services/project-bootstrap.service.ts"],"names":[],"mappings":"AAAA,OAAO,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,SAAS,GAAG,IAAI,CAAC,YAAY,EAAE,qBAAqB,CAAC,CAAA;IAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,KAAK,CAAA;IAEpC,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;QAChG,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,6EAA6E,CAAC,CAAA;QAChG,CAAC;IACH,CAAC;IAED,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,aAAa,CAAC,UAAU,EAAE,oBAAoB,CAAC;QAC/C,aAAa,CAAC,SAAS,EAAE,sBAAsB,CAAC;KACjD,CAAC,CAAA;IAEF,MAAM,mBAAmB,CAAC,YAAY,CAAC,CAAA;AACzC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function resolveSquadConfigPath(cwd: string, squadId: string): string | null;
2
+ export declare function listSquadIds(cwd: string): string[];
3
+ //# sourceMappingURL=squad-scaffold.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"squad-scaffold.service.d.ts","sourceRoot":"","sources":["../../../../orchestrator/shell/services/squad-scaffold.service.ts"],"names":[],"mappings":"AAKA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQlF;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAkBlD"}
@@ -0,0 +1,30 @@
1
+ import { existsSync, readdirSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ const RESERVED_SQUAD_DIRS = new Set(['templates', 'examples']);
4
+ export function resolveSquadConfigPath(cwd, squadId) {
5
+ const primary = join(cwd, 'squads', squadId, 'config', 'squad.json');
6
+ if (existsSync(primary))
7
+ return primary;
8
+ const example = join(cwd, 'squads', 'examples', squadId, 'config', 'squad.json');
9
+ if (existsSync(example))
10
+ return example;
11
+ return null;
12
+ }
13
+ export function listSquadIds(cwd) {
14
+ const squadsDir = join(cwd, 'squads');
15
+ if (!existsSync(squadsDir))
16
+ return [];
17
+ const rootSquads = readdirSync(squadsDir, { withFileTypes: true })
18
+ .filter((entry) => entry.isDirectory() && !RESERVED_SQUAD_DIRS.has(entry.name))
19
+ .map((entry) => entry.name);
20
+ const exampleDir = join(squadsDir, 'examples');
21
+ const exampleSquads = existsSync(exampleDir)
22
+ ? readdirSync(exampleDir, { withFileTypes: true })
23
+ .filter((entry) => entry.isDirectory())
24
+ .map((entry) => entry.name)
25
+ : [];
26
+ return [...new Set([...rootSquads, ...exampleSquads])]
27
+ .filter((squadId) => resolveSquadConfigPath(cwd, squadId) !== null)
28
+ .sort((a, b) => a.localeCompare(b));
29
+ }
30
+ //# sourceMappingURL=squad-scaffold.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"squad-scaffold.service.js","sourceRoot":"","sources":["../../../../orchestrator/shell/services/squad-scaffold.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;AAE9D,MAAM,UAAU,sBAAsB,CAAC,GAAW,EAAE,OAAe;IACjE,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAA;IACpE,IAAI,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAA;IAEvC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,UAAU,EA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,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;AACvC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Integration test: Instagram Content Squad
3
+ *
4
+ * Proves that the platform is domain-agnostic.
5
+ * Uses a minimal Instagram-style squad config with stub adapters.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=instagram-squad.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instagram-squad.test.d.ts","sourceRoot":"","sources":["../../../tests/integration/instagram-squad.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,187 @@
1
+ /**
2
+ * Integration test: Instagram Content Squad
3
+ *
4
+ * Proves that the platform is domain-agnostic.
5
+ * Uses a minimal Instagram-style squad config with stub adapters.
6
+ */
7
+ import { describe, it, expect, beforeEach, afterEach } from 'vitest';
8
+ import { mkdirSync, rmSync, existsSync } from 'node:fs';
9
+ import { createSquadRuntime } from '../../orchestrator/runtime/squad-runtime.js';
10
+ import { ArtifactStore } from '../../orchestrator/artifacts/artifact-store.js';
11
+ import { LocalHostAdapter } from '../../orchestrator/adapters/host/local.adapter.js';
12
+ import { createSquadBuilder } from '../../orchestrator/builder/squad-builder.js';
13
+ const TEST_DIR = '/tmp/sf-integration-ig';
14
+ // Minimal Instagram squad for testing (no publish gate to allow full run)
15
+ const INSTAGRAM_SQUAD = {
16
+ id: 'test-instagram',
17
+ name: 'Test Instagram Squad',
18
+ domain: 'social-media',
19
+ objective: 'Create and publish Instagram content',
20
+ description: 'Test instagram squad with copywriting and review steps',
21
+ context: '',
22
+ agents: [
23
+ {
24
+ id: 'strategy-agent',
25
+ name: 'Strategy Agent',
26
+ role: 'Strategist',
27
+ domain: 'social-media',
28
+ objective: 'Define strategy',
29
+ instructions: 'Create a content strategy',
30
+ inputs: [],
31
+ outputs: [],
32
+ allowedTools: [],
33
+ constraints: [],
34
+ successCriteria: [],
35
+ failureCriteria: [],
36
+ allowedStates: ['READY_FOR_EXECUTION', 'RUNNING_STEP'],
37
+ blockingConditions: [],
38
+ handoffRules: [{ condition: 'done', targetAgentId: 'copy-agent', description: 'pass', requiresApproval: false }],
39
+ responseFormat: 'markdown',
40
+ },
41
+ {
42
+ id: 'copy-agent',
43
+ name: 'Copy Agent',
44
+ role: 'Copywriter',
45
+ domain: 'social-media',
46
+ objective: 'Write caption',
47
+ instructions: 'Write an Instagram caption',
48
+ inputs: [],
49
+ outputs: [],
50
+ allowedTools: [],
51
+ constraints: ['Max 2200 characters', 'Max 30 hashtags'],
52
+ successCriteria: [],
53
+ failureCriteria: [],
54
+ allowedStates: ['READY_FOR_EXECUTION', 'RUNNING_STEP'],
55
+ blockingConditions: [],
56
+ handoffRules: [],
57
+ responseFormat: 'markdown',
58
+ },
59
+ ],
60
+ workflow: {
61
+ id: 'wf-instagram-test',
62
+ name: 'Instagram Test Workflow',
63
+ description: 'Simplified instagram workflow',
64
+ entryStepId: 'step-strategy',
65
+ steps: [
66
+ {
67
+ id: 'step-strategy',
68
+ name: 'Strategy',
69
+ agentId: 'strategy-agent',
70
+ description: 'Define content strategy',
71
+ dependsOn: [],
72
+ guardrails: [],
73
+ requiresApprovalBefore: false,
74
+ requiresApprovalAfter: false,
75
+ requiredArtifacts: [],
76
+ producedArtifacts: ['strategy_brief'],
77
+ nextStepId: 'step-copy',
78
+ },
79
+ {
80
+ id: 'step-copy',
81
+ name: 'Copywriting',
82
+ agentId: 'copy-agent',
83
+ description: 'Write caption',
84
+ dependsOn: ['step-strategy'],
85
+ guardrails: [],
86
+ requiresApprovalBefore: false,
87
+ requiresApprovalAfter: false,
88
+ requiredArtifacts: [],
89
+ producedArtifacts: ['caption_draft'],
90
+ },
91
+ ],
92
+ },
93
+ policy: {
94
+ id: 'policy-instagram-test',
95
+ name: 'Test Instagram Policy',
96
+ description: '',
97
+ guardrails: [],
98
+ prohibitedActions: ['Auto-publish without human approval'],
99
+ requiredApprovals: [{ action: 'publish', description: 'Human must approve' }],
100
+ },
101
+ expectedArtifacts: [
102
+ { id: 'a1', name: 'Caption', description: 'Instagram caption', path: 'outputs/caption.md', required: true, format: 'markdown' },
103
+ ],
104
+ allowedIntegrations: [
105
+ { id: 'instagram', type: 'social-media', name: 'Instagram', required: false, status: 'stub' },
106
+ ],
107
+ templates: [],
108
+ successCriteria: ['Caption created and approved'],
109
+ failureCriteria: ['Caption creation failed'],
110
+ metadata: {
111
+ version: '1.0.0',
112
+ createdAt: new Date().toISOString(),
113
+ updatedAt: new Date().toISOString(),
114
+ tags: ['social-media', 'instagram', 'test'],
115
+ hostCompatibility: ['any'],
116
+ },
117
+ };
118
+ describe('Instagram Squad Integration', () => {
119
+ beforeEach(() => {
120
+ mkdirSync(TEST_DIR, { recursive: true });
121
+ });
122
+ afterEach(() => {
123
+ if (existsSync(TEST_DIR)) {
124
+ rmSync(TEST_DIR, { recursive: true, force: true });
125
+ }
126
+ });
127
+ it('runs a two-step content workflow to completion', async () => {
128
+ const hostAdapter = new LocalHostAdapter();
129
+ await hostAdapter.initialize();
130
+ const runtime = createSquadRuntime({
131
+ artifactsDir: TEST_DIR,
132
+ hostAdapter,
133
+ contextRootPath: TEST_DIR,
134
+ });
135
+ const job = await runtime.startJob(INSTAGRAM_SQUAD, 'Create summer campaign post', 'Post about our summer sale');
136
+ await runtime.runAll(INSTAGRAM_SQUAD, job);
137
+ expect(job.status).toBe('COMPLETED');
138
+ });
139
+ it('persists artifacts from both steps', async () => {
140
+ const hostAdapter = new LocalHostAdapter();
141
+ await hostAdapter.initialize();
142
+ const runtime = createSquadRuntime({
143
+ artifactsDir: TEST_DIR,
144
+ hostAdapter,
145
+ contextRootPath: TEST_DIR,
146
+ });
147
+ const job = await runtime.startJob(INSTAGRAM_SQUAD, 'Test campaign', 'New product launch');
148
+ await runtime.runAll(INSTAGRAM_SQUAD, job);
149
+ const store = new ArtifactStore(TEST_DIR);
150
+ const loaded = store.loadJob(INSTAGRAM_SQUAD.id, job.id);
151
+ expect(loaded?.status).toBe('COMPLETED');
152
+ });
153
+ it('squad domain is social-media, not software-development', () => {
154
+ expect(INSTAGRAM_SQUAD.domain).toBe('social-media');
155
+ expect(INSTAGRAM_SQUAD.domain).not.toBe('software-development');
156
+ });
157
+ it('policy prohibits auto-publishing', () => {
158
+ const prohibited = INSTAGRAM_SQUAD.policy.prohibitedActions;
159
+ expect(prohibited.some((a) => a.toLowerCase().includes('publish'))).toBe(true);
160
+ });
161
+ it('requires human approval for publishing', () => {
162
+ const required = INSTAGRAM_SQUAD.policy.requiredApprovals;
163
+ expect(required.some((r) => r.action === 'publish')).toBe(true);
164
+ });
165
+ it('generates instagram squad from builder interview', () => {
166
+ const builder = createSquadBuilder({ contextRootPath: TEST_DIR, outputDir: TEST_DIR });
167
+ const answers = [
168
+ { questionId: 'q_objective', answer: 'Automate Instagram content creation' },
169
+ { questionId: 'q_domain', answer: '3' },
170
+ { questionId: 'q_description', answer: 'Squad for creating, reviewing, and publishing Instagram posts' },
171
+ { questionId: 'q_inputs', answer: 'Campaign brief or topic' },
172
+ { questionId: 'q_outputs', answer: 'Published Instagram post' },
173
+ { questionId: 'q_steps', answer: '1. Strategy, 2. Research, 3. Write, 4. Review, 5. Approve, 6. Publish' },
174
+ { questionId: 'q_approvals', answer: 'Publishing always requires human approval' },
175
+ { questionId: 'q_human_in_loop', answer: 'Never auto-publish' },
176
+ { questionId: 'q_tools', answer: 'Instagram Graph API' },
177
+ { questionId: 'q_squad_name', answer: 'my-instagram-squad' },
178
+ ];
179
+ const result = builder.conductInterview(answers);
180
+ expect(result.squadDefinition.domain).toBe('social-media');
181
+ expect(result.squadDefinition.id).toBe('my-instagram-squad');
182
+ expect(result.squadDefinition.agents.length).toBeGreaterThan(0);
183
+ const hasPublishGuardrail = result.squadDefinition.policy.guardrails.some((g) => g.ruleKey === 'require_approval_before_publish');
184
+ expect(hasPublishGuardrail).toBe(true);
185
+ });
186
+ });
187
+ //# sourceMappingURL=instagram-squad.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instagram-squad.test.js","sourceRoot":"","sources":["../../../tests/integration/instagram-squad.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAA;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAA;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAGhF,MAAM,QAAQ,GAAG,wBAAwB,CAAA;AAEzC,0EAA0E;AAC1E,MAAM,eAAe,GAAoB;IACvC,EAAE,EAAE,gBAAgB;IACpB,IAAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE,cAAc;IACtB,SAAS,EAAE,sCAAsC;IACjD,WAAW,EAAE,wDAAwD;IACrE,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,cAAc;YACtB,SAAS,EAAE,iBAAiB;YAC5B,YAAY,EAAE,2BAA2B;YACzC,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,EAAE;YACX,YAAY,EAAE,EAAE;YAChB,WAAW,EAAE,EAAE;YACf,eAAe,EAAE,EAAE;YACnB,eAAe,EAAE,EAAE;YACnB,aAAa,EAAE,CAAC,qBAAqB,EAAE,cAAc,CAAC;YACtD,kBAAkB,EAAE,EAAE;YACtB,YAAY,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,K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@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cli-run-host-native.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-run-host-native.test.d.ts","sourceRoot":"","sources":["../../../../tests/integration/shell/cli-run-host-native.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import { mkdtemp, mkdir, writeFile } from 'node:fs/promises';
2
+ import { tmpdir } from 'node:os';
3
+ import { join } from 'node:path';
4
+ import { describe, expect, it, vi } from 'vitest';
5
+ import { createShellProgram } from '../../../orchestrator/shell/cli.js';
6
+ describe('Host-native shell CLI', () => {
7
+ it('prints help with init/create/edit/run/list/status/hosts', () => {
8
+ const output = createShellProgram().helpInformation();
9
+ expect(output).toContain('init');
10
+ expect(output).toContain('create');
11
+ expect(output).toContain('edit');
12
+ expect(output).toContain('run');
13
+ expect(output).toContain('list');
14
+ expect(output).toContain('status');
15
+ expect(output).toContain('hosts');
16
+ });
17
+ it('fails run command when squad file does not exist', async () => {
18
+ const cwd = await mkdtemp(join(tmpdir(), 'sf-shell-test-'));
19
+ const program = createShellProgram();
20
+ await expect(program.parseAsync(['node', 'squad-foundry', 'run', 'missing-squad', '--cwd', cwd])).rejects.toThrow(/Squad not found/);
21
+ });
22
+ it('fails run command on invalid squad definition', async () => {
23
+ const cwd = await mkdtemp(join(tmpdir(), 'sf-shell-test-'));
24
+ const configDir = join(cwd, 'squads', 'bad', 'config');
25
+ await mkdir(configDir, { recursive: true });
26
+ await writeFile(join(configDir, 'squad.json'), JSON.stringify({ id: 1, name: true }), 'utf-8');
27
+ const program = createShellProgram();
28
+ await expect(program.parseAsync(['node', 'squad-foundry', 'run', 'bad', '--cwd', cwd])).rejects.toThrow(/Invalid squad definition/);
29
+ });
30
+ it('prints no-squad message for list command in empty workspace', async () => {
31
+ const cwd = await mkdtemp(join(tmpdir(), 'sf-shell-test-'));
32
+ const spy = vi.spyOn(console, 'log').mockImplementation(() => undefined);
33
+ try {
34
+ await createShellProgram().parseAsync(['node', 'squad-foundry', 'list', '--cwd', cwd]);
35
+ expect(spy).toHaveBeenCalledWith('No squads found.');
36
+ }
37
+ finally {
38
+ spy.mockRestore();
39
+ }
40
+ });
41
+ });
42
+ //# sourceMappingURL=cli-run-host-native.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-run-host-native.test.js","sourceRoot":"","sources":["../../../../tests/integration/shell/cli-run-host-native.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAEvE,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;QACjE,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC,eAAe,EAAE,CAAA;QAErD,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QAChC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;QAClC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QAChC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;QAC/B,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;QAChC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;QAClC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;IACnC,CAAC,CAAC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MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAA;QAC3D,MAAM,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;QACxE,IAAI,CAAC;YACH,MAAM,kBAAkB,EAAE,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;YACtF,MAAM,CAAC,GAAG,CAAC,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;QACtD,CAAC;gBAAS,CAAC;YACT,GAAG,CAAC,WAAW,EAAE,CAAA;QACnB,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Integration test: Software Development Squad
3
+ *
4
+ * Tests the full squad runtime with the software-development squad config.
5
+ * Uses stub host adapter — no real LLM calls.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=software-squad.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"software-squad.test.d.ts","sourceRoot":"","sources":["../../../tests/integration/software-squad.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}