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,202 @@
1
+ import { describe, it, expect, beforeEach } from 'vitest';
2
+ import { createGuardrailEngine } from '../../orchestrator/core/guardrails.js';
3
+ function makeCtx(overrides = {}) {
4
+ const job = {
5
+ id: 'j1',
6
+ squadId: 'sq1',
7
+ status: 'RUNNING_STEP',
8
+ objective: 'test',
9
+ initialInput: '',
10
+ loadedContext: {
11
+ projectMd: undefined,
12
+ tasksMd: undefined,
13
+ docs: [],
14
+ specs: [],
15
+ playbooks: [],
16
+ policies: [],
17
+ templates: [],
18
+ custom: [],
19
+ },
20
+ artifacts: [],
21
+ approvals: [],
22
+ currentStepId: 'step-1',
23
+ currentAgentId: 'agent-1',
24
+ history: [],
25
+ startedAt: new Date().toISOString(),
26
+ updatedAt: new Date().toISOString(),
27
+ };
28
+ const step = {
29
+ id: 'step-1',
30
+ name: 'Test Step',
31
+ agentId: 'agent-1',
32
+ description: '',
33
+ dependsOn: [],
34
+ guardrails: [],
35
+ requiresApprovalBefore: false,
36
+ requiresApprovalAfter: false,
37
+ requiredArtifacts: [],
38
+ producedArtifacts: [],
39
+ };
40
+ const agent = {
41
+ id: 'agent-1',
42
+ name: 'Test Agent',
43
+ role: 'tester',
44
+ domain: 'custom',
45
+ objective: 'test',
46
+ instructions: '',
47
+ inputs: [],
48
+ outputs: [],
49
+ allowedTools: [],
50
+ constraints: [],
51
+ successCriteria: [],
52
+ failureCriteria: [],
53
+ allowedStates: ['RUNNING_STEP', 'READY_FOR_EXECUTION'],
54
+ blockingConditions: [],
55
+ handoffRules: [],
56
+ responseFormat: 'markdown',
57
+ };
58
+ return { job, step, agent, ...overrides };
59
+ }
60
+ describe('GuardrailEngine', () => {
61
+ let engine;
62
+ beforeEach(() => {
63
+ engine = createGuardrailEngine();
64
+ });
65
+ describe('require_minimum_context', () => {
66
+ it('passes when projectMd is present', () => {
67
+ const ctx = makeCtx();
68
+ ctx.job.loadedContext.projectMd = '# Project';
69
+ const result = engine.evaluate({ id: 'g1', name: 'min-ctx', description: '', severity: 'block', ruleKey: 'require_minimum_context', params: { requiredFields: ['projectMd'] } }, ctx);
70
+ expect(result.passed).toBe(true);
71
+ });
72
+ it('blocks when projectMd is missing', () => {
73
+ const ctx = makeCtx();
74
+ const result = engine.evaluate({ id: 'g1', name: 'min-ctx', description: '', severity: 'block', ruleKey: 'require_minimum_context', params: { requiredFields: ['projectMd'] } }, ctx);
75
+ expect(result.passed).toBe(false);
76
+ expect(result.blockedTransition).toBe(true);
77
+ });
78
+ });
79
+ describe('require_artifact_before_step', () => {
80
+ it('passes when required artifact is present', () => {
81
+ const ctx = makeCtx();
82
+ ctx.job.artifacts.push({
83
+ id: 'a1',
84
+ name: 'prd',
85
+ path: 'outputs/prd.md',
86
+ producedByAgentId: 'product-agent',
87
+ producedAtStepId: 'step-product',
88
+ format: 'markdown',
89
+ createdAt: new Date().toISOString(),
90
+ });
91
+ const result = engine.evaluate({ id: 'g2', name: 'req-artifact', description: '', severity: 'block', ruleKey: 'require_artifact_before_step', params: { artifactNames: ['prd'] } }, ctx);
92
+ expect(result.passed).toBe(true);
93
+ });
94
+ it('blocks when required artifact is missing', () => {
95
+ const ctx = makeCtx();
96
+ const result = engine.evaluate({ id: 'g2', name: 'req-artifact', description: '', severity: 'block', ruleKey: 'require_artifact_before_step', params: { artifactNames: ['prd'] } }, ctx);
97
+ expect(result.passed).toBe(false);
98
+ });
99
+ });
100
+ describe('require_approval_before_publish', () => {
101
+ it('passes for non-publish steps', () => {
102
+ const ctx = makeCtx();
103
+ const result = engine.evaluate({ id: 'g3', name: 'pub', description: '', severity: 'block', ruleKey: 'require_approval_before_publish' }, ctx);
104
+ expect(result.passed).toBe(true);
105
+ });
106
+ it('blocks publish step without approval', () => {
107
+ const ctx = makeCtx();
108
+ ctx.step.name = 'Publish Post';
109
+ const result = engine.evaluate({ id: 'g3', name: 'pub', description: '', severity: 'block', ruleKey: 'require_approval_before_publish' }, ctx);
110
+ expect(result.passed).toBe(false);
111
+ expect(result.blockedTransition).toBe(true);
112
+ });
113
+ it('passes publish step with approval', () => {
114
+ const ctx = makeCtx();
115
+ ctx.step.name = 'Publish Post';
116
+ ctx.job.approvals.push({
117
+ id: 'ap1',
118
+ stepId: ctx.step.id,
119
+ requiredFor: 'publish',
120
+ status: 'approved',
121
+ requestedAt: new Date().toISOString(),
122
+ resolvedAt: new Date().toISOString(),
123
+ });
124
+ const result = engine.evaluate({ id: 'g3', name: 'pub', description: '', severity: 'block', ruleKey: 'require_approval_before_publish' }, ctx);
125
+ expect(result.passed).toBe(true);
126
+ });
127
+ });
128
+ describe('require_human_before_deploy', () => {
129
+ it('blocks deploy without approval', () => {
130
+ const ctx = makeCtx();
131
+ ctx.step.name = 'Deploy to Production';
132
+ const result = engine.evaluate({ id: 'g4', name: 'deploy', description: '', severity: 'block', ruleKey: 'require_human_before_deploy' }, ctx);
133
+ expect(result.passed).toBe(false);
134
+ });
135
+ it('passes deploy with approval', () => {
136
+ const ctx = makeCtx();
137
+ ctx.step.name = 'Deploy';
138
+ ctx.job.approvals.push({
139
+ id: 'ap2',
140
+ stepId: ctx.step.id,
141
+ requiredFor: 'deploy',
142
+ status: 'approved',
143
+ requestedAt: new Date().toISOString(),
144
+ resolvedAt: new Date().toISOString(),
145
+ });
146
+ const result = engine.evaluate({ id: 'g4', name: 'deploy', description: '', severity: 'block', ruleKey: 'require_human_before_deploy' }, ctx);
147
+ expect(result.passed).toBe(true);
148
+ });
149
+ });
150
+ describe('block_invalid_state_transition', () => {
151
+ it('blocks agent acting in non-allowed state', () => {
152
+ const ctx = makeCtx();
153
+ ctx.job.status = 'BLOCKED';
154
+ const result = engine.evaluate({ id: 'g5', name: 'state', description: '', severity: 'block', ruleKey: 'block_invalid_state_transition' }, ctx);
155
+ expect(result.passed).toBe(false);
156
+ });
157
+ it('passes agent acting in allowed state', () => {
158
+ const ctx = makeCtx();
159
+ ctx.job.status = 'RUNNING_STEP';
160
+ const result = engine.evaluate({ id: 'g5', name: 'state', description: '', severity: 'block', ruleKey: 'block_invalid_state_transition' }, ctx);
161
+ expect(result.passed).toBe(true);
162
+ });
163
+ });
164
+ describe('evaluateAll', () => {
165
+ it('returns blocked=true when any block-severity rule fails', () => {
166
+ const ctx = makeCtx();
167
+ ctx.step.name = 'Deploy';
168
+ const rules = [
169
+ { id: 'g1', name: 'deploy', description: '', severity: 'block', ruleKey: 'require_human_before_deploy' },
170
+ ];
171
+ const { blocked } = engine.evaluateAll(rules, ctx);
172
+ expect(blocked).toBe(true);
173
+ });
174
+ it('returns blocked=false when all rules pass', () => {
175
+ const ctx = makeCtx();
176
+ ctx.job.loadedContext.projectMd = '# Project';
177
+ const rules = [
178
+ { id: 'g1', name: 'ctx', description: '', severity: 'warn', ruleKey: 'require_minimum_context', params: { requiredFields: ['projectMd'] } },
179
+ ];
180
+ const { blocked } = engine.evaluateAll(rules, ctx);
181
+ expect(blocked).toBe(false);
182
+ });
183
+ });
184
+ describe('custom evaluators', () => {
185
+ it('allows registering and using custom guardrail evaluators', () => {
186
+ engine.register('custom_rule', (ctx, _params) => ({
187
+ guardrailId: 'custom',
188
+ passed: ctx.job.objective === 'allowed',
189
+ severity: 'block',
190
+ message: 'Custom check',
191
+ }));
192
+ const ctx = makeCtx();
193
+ ctx.job.objective = 'denied';
194
+ const result = engine.evaluate({ id: 'cg1', name: 'custom', description: '', severity: 'block', ruleKey: 'custom_rule' }, ctx);
195
+ expect(result.passed).toBe(false);
196
+ ctx.job.objective = 'allowed';
197
+ const result2 = engine.evaluate({ id: 'cg1', name: 'custom', description: '', severity: 'block', ruleKey: 'custom_rule' }, ctx);
198
+ expect(result2.passed).toBe(true);
199
+ });
200
+ });
201
+ });
202
+ //# sourceMappingURL=guardrails.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardrails.test.js","sourceRoot":"","sources":["../../../tests/unit/guardrails.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACzD,OAAO,EAAE,qBAAqB,EAAmB,MAAM,uCAAuC,CAAA;AAG9F,SAAS,OAAO,CAAC,YAAiD,EAAE;IAClE,MAAM,GAAG,GAAkB;QACzB,EAAE,EAAE,IAAI;QACR,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,EAAE;QAChB,aAAa,EAAE;YACb,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,SAAS;YAClB,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;YACT,SAAS,EAAE,EAAE;YACb,QAAQ,EAAE,EAAE;YACZ,SAAS,EAAE,EAAE;YACb,MAAM,EAAE,EAAE;SACX;QACD,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,SAAS;QACzB,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACpC,CAAA;IAED,MAAM,IAAI,GAAiB;QACzB,EAAE,EAAE,QAAQ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EAAE,CAAC,CAAC;gBAChD,WAAW,EAAE,QAAQ;gBACrB,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS;gBACvC,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,cAAc;aACxB,CAAC,CAAC,CAAA;YAEH,MAAM,GAAG,GAAG,OAAO,EAAE,CAAA;YACrB,GAAG,CAAC,GAAG,CAAC,SAAS,GAAG,QAAQ,CAAA;YAC5B,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAC5B,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,EACzF,GAAG,CACJ,CAAA;YACD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAEjC,GAAG,CAAC,GAAG,CAAC,SAAS,GAAG,SAAS,CAAA;YAC7B,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAC7B,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,EACzF,GAAG,CACJ,CAAA;YACD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACnC,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=host-adapter-contract.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-adapter-contract.test.d.ts","sourceRoot":"","sources":["../../../../tests/unit/host/host-adapter-contract.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { AntigravityHostAdapter } from '../../../orchestrator/adapters/host/antigravity.adapter.js';
3
+ import { IDEHostAdapter } from '../../../orchestrator/adapters/host/ide.adapter.js';
4
+ import { LocalHostAdapter } from '../../../orchestrator/adapters/host/local.adapter.js';
5
+ const detectionContext = {
6
+ cwd: process.cwd(),
7
+ argv: ['node', 'test'],
8
+ env: {},
9
+ };
10
+ const interviewState = {
11
+ turnCount: 1,
12
+ history: [],
13
+ };
14
+ function assertContract(adapter) {
15
+ expect(typeof adapter.detect).toBe('function');
16
+ expect(typeof adapter.runInterviewTurn).toBe('function');
17
+ expect(typeof adapter.getActiveModel).toBe('function');
18
+ }
19
+ describe('host adapter contract', () => {
20
+ it('local adapter exposes new host contract methods', async () => {
21
+ const adapter = new LocalHostAdapter();
22
+ assertContract(adapter);
23
+ const detection = adapter.detect(detectionContext);
24
+ expect(typeof detection.isDetected).toBe('boolean');
25
+ const turn = await adapter.runInterviewTurn({ prompt: 'hello' }, interviewState);
26
+ expect(turn.status).toBe('continue');
27
+ const model = await adapter.getActiveModel();
28
+ expect(typeof model).toBe('string');
29
+ });
30
+ it('antigravity adapter exposes new host contract methods', async () => {
31
+ const adapter = new AntigravityHostAdapter();
32
+ assertContract(adapter);
33
+ const detection = adapter.detect({ ...detectionContext, argv: ['antigravity'] });
34
+ expect(detection.confidence).toMatch(/high|medium|low/);
35
+ const turn = await adapter.runInterviewTurn({ prompt: 'hello' }, interviewState);
36
+ expect(turn.status).toBe('continue');
37
+ const model = await adapter.getActiveModel();
38
+ expect(typeof model).toBe('string');
39
+ });
40
+ it('ide adapter exposes new host contract methods', async () => {
41
+ const adapter = new IDEHostAdapter(async (prompt) => `response:${prompt}`, {
42
+ activeModel: 'gpt-5.3-codex',
43
+ });
44
+ assertContract(adapter);
45
+ const detection = adapter.detect({ ...detectionContext, env: { OPENCODE: '1' } });
46
+ expect(typeof detection.isDetected).toBe('boolean');
47
+ const turn = await adapter.runInterviewTurn({ prompt: 'hello' }, interviewState);
48
+ expect(turn.content).toContain('response:hello');
49
+ const model = await adapter.getActiveModel();
50
+ expect(model).toBe('gpt-5.3-codex');
51
+ });
52
+ });
53
+ //# sourceMappingURL=host-adapter-contract.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-adapter-contract.test.js","sourceRoot":"","sources":["../../../../tests/unit/host/host-adapter-contract.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAG7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAA;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAA;AAEvF,MAAM,gBAAgB,GAAyB;IAC7C,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;IAClB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,EAAE;CACR,CAAA;AAED,MAAM,cAAc,GAAG;IACrB,SAAS,EAAE,CAAC;IACZ,OAAO,EAAE,EAAE;CACZ,CAAA;AAED,SAAS,cAAc,CAAC,OAAqB;IAC3C,MAAM,CAAC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IAC9C,MAAM,CAAC,OAAO,OAAO,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACxD,MAAM,CAAC,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;AACxD,CAAC;AAED,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;QAC/D,MAAM,OAAO,GAAG,IAAI,gBAAgB,EAAE,CAAA;QACtC,cAAc,CAAC,OAAO,CAAC,CAAA;QAEvB,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;Q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MAAM,EAAE,EAAE,CAAC,YAAY,MAAM,EAAE,EAAE;YACzE,WAAW,EAAE,eAAe;SAC7B,CAAC,CAAA;QACF,cAAc,CAAC,OAAO,CAAC,CAAA;QAEvB,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG,gBAAgB,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,CAAA;QACjF,MAAM,CAAC,OAAO,SAAS,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAEnD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,cAAc,CAAC,CAAA;QAChF,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;QAEhD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAA;QAC5C,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IACrC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ide.adapter.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ide.adapter.test.d.ts","sourceRoot":"","sources":["../../../../tests/unit/host/ide.adapter.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { IDEHostAdapter } from '../../../orchestrator/adapters/host/ide.adapter.js';
3
+ describe('IDEHostAdapter', () => {
4
+ it('parses handoff when allowedAgentIds metadata includes target', async () => {
5
+ const adapter = new IDEHostAdapter(async () => 'HANDOFF:reviewer-agent:step_completed');
6
+ const agent = { id: 'code-agent', name: 'Code Agent' };
7
+ const job = { id: 'job-1', loadedContext: { docs: [] } };
8
+ const step = { id: 'step-1', name: 'Step 1' };
9
+ const response = await adapter.sendPrompt('prompt', agent, job, step, {
10
+ metadata: {
11
+ allowedAgentIds: ['reviewer-agent', 'test-agent'],
12
+ },
13
+ });
14
+ expect(response.handoffSignal?.targetAgentId).toBe('reviewer-agent');
15
+ });
16
+ });
17
+ //# sourceMappingURL=ide.adapter.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ide.adapter.test.js","sourceRoot":"","sources":["../../../../tests/unit/host/ide.adapter.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAA;AAGnF,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,8DAA8D,EAAE,KAAK,IAAI,EAAE;QAC5E,MAAM,OAAO,GAAG,IAAI,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC,uCAAuC,CAAC,CAAA;QAEvF,MAAM,KAAK,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAgC,CAAA;QACpF,MAAM,GAAG,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAA8B,CAAA;QACpF,MAAM,IAAI,GAAG,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAA6B,CAAA;QAExE,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE;YACpE,QAAQ,EAAE;gBACR,eAAe,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC;aAClD;SACF,CAAC,CAAA;QAEF,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=native-ide-adapters.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-ide-adapters.test.d.ts","sourceRoot":"","sources":["../../../../tests/unit/host/native-ide-adapters.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { ClaudeCodeHostAdapter } from '../../../orchestrator/adapters/host/claude-code.adapter.js';
3
+ import { OpenCodeHostAdapter } from '../../../orchestrator/adapters/host/opencode.adapter.js';
4
+ describe('native IDE adapters', () => {
5
+ it('uses claude-code adapter id and invoker for interview turns', async () => {
6
+ const adapter = new ClaudeCodeHostAdapter({
7
+ invoker: async (prompt) => `claude:${prompt}`,
8
+ activeModel: 'claude-sonnet-4-5',
9
+ });
10
+ expect(adapter.id).toBe('claude-code');
11
+ const result = await adapter.runInterviewTurn({ prompt: 'question?' }, { turnCount: 1, history: [] });
12
+ expect(result.content).toContain('claude:question?');
13
+ expect(await adapter.getActiveModel()).toBe('claude-sonnet-4-5');
14
+ });
15
+ it('uses opencode adapter id and invoker for interview turns', async () => {
16
+ const adapter = new OpenCodeHostAdapter({
17
+ invoker: async (prompt) => `opencode:${prompt}`,
18
+ activeModel: 'gpt-5.3-codex',
19
+ });
20
+ expect(adapter.id).toBe('opencode');
21
+ const result = await adapter.runInterviewTurn({ prompt: 'question?' }, { turnCount: 1, history: [] });
22
+ expect(result.content).toContain('opencode:question?');
23
+ expect(await adapter.getActiveModel()).toBe('gpt-5.3-codex');
24
+ });
25
+ });
26
+ //# sourceMappingURL=native-ide-adapters.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-ide-adapters.test.js","sourceRoot":"","sources":["../../../../tests/unit/host/native-ide-adapters.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,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MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAA;QACtD,MAAM,CAAC,MAAM,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=squad-runtime-host-metadata.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"squad-runtime-host-metadata.test.d.ts","sourceRoot":"","sources":["../../../../tests/unit/runtime/squad-runtime-host-metadata.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,128 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import { rmSync } from 'node:fs';
3
+ import { createSquadRuntime } from '../../../orchestrator/runtime/squad-runtime.js';
4
+ const TEST_DIR = '/tmp/sf-runtime-host-metadata';
5
+ class CapturingHostAdapter {
6
+ id = 'capture';
7
+ name = 'Capture Adapter';
8
+ lastOptions;
9
+ detect(_context) {
10
+ return { isDetected: true, confidence: 'high', reasons: ['test'] };
11
+ }
12
+ async initialize() {
13
+ // no-op
14
+ }
15
+ async runInterviewTurn(_input, _state) {
16
+ return { content: 'ok', status: 'continue' };
17
+ }
18
+ async getActiveModel() {
19
+ return 'test-model';
20
+ }
21
+ async sendPrompt(_prompt, agent, job, step, options) {
22
+ this.lastOptions = options;
23
+ return {
24
+ agentId: agent.id,
25
+ stepId: step.id,
26
+ jobId: job.id,
27
+ content: 'ok',
28
+ artifacts: [],
29
+ status: 'success',
30
+ };
31
+ }
32
+ getCapabilities() {
33
+ return {
34
+ supportsStreaming: false,
35
+ supportsToolUse: false,
36
+ supportsVision: false,
37
+ maxContextTokens: 1024,
38
+ supportedModels: ['test-model'],
39
+ };
40
+ }
41
+ async healthCheck() {
42
+ return true;
43
+ }
44
+ }
45
+ const SQUAD = {
46
+ id: 'meta-test',
47
+ name: 'Metadata Test Squad',
48
+ domain: 'software-development',
49
+ objective: 'Verify runtime metadata passthrough',
50
+ description: '',
51
+ context: '',
52
+ agents: [
53
+ {
54
+ id: 'agent-a',
55
+ name: 'Agent A',
56
+ role: 'Role A',
57
+ domain: 'software-development',
58
+ objective: 'Do work',
59
+ instructions: 'respond',
60
+ inputs: [],
61
+ outputs: [],
62
+ allowedTools: [],
63
+ constraints: [],
64
+ successCriteria: [],
65
+ failureCriteria: [],
66
+ allowedStates: ['READY_FOR_EXECUTION', 'RUNNING_STEP'],
67
+ blockingConditions: [],
68
+ handoffRules: [],
69
+ responseFormat: 'markdown',
70
+ },
71
+ ],
72
+ workflow: {
73
+ id: 'wf-meta-test',
74
+ name: 'Workflow',
75
+ description: '',
76
+ entryStepId: 'step-a',
77
+ steps: [
78
+ {
79
+ id: 'step-a',
80
+ name: 'Step A',
81
+ agentId: 'agent-a',
82
+ description: '',
83
+ dependsOn: [],
84
+ guardrails: [],
85
+ requiresApprovalBefore: false,
86
+ requiresApprovalAfter: false,
87
+ requiredArtifacts: [],
88
+ producedArtifacts: [],
89
+ },
90
+ ],
91
+ },
92
+ policy: {
93
+ id: 'policy',
94
+ name: 'policy',
95
+ description: '',
96
+ guardrails: [],
97
+ prohibitedActions: [],
98
+ requiredApprovals: [],
99
+ },
100
+ expectedArtifacts: [],
101
+ allowedIntegrations: [],
102
+ templates: [],
103
+ successCriteria: [],
104
+ failureCriteria: [],
105
+ metadata: {
106
+ version: '1.0.0',
107
+ createdAt: new Date().toISOString(),
108
+ updatedAt: new Date().toISOString(),
109
+ tags: [],
110
+ hostCompatibility: ['any'],
111
+ },
112
+ };
113
+ describe('SquadRuntime host metadata', () => {
114
+ it('passes allowedAgentIds metadata to host adapter', async () => {
115
+ rmSync(TEST_DIR, { recursive: true, force: true });
116
+ const hostAdapter = new CapturingHostAdapter();
117
+ const runtime = createSquadRuntime({
118
+ artifactsDir: TEST_DIR,
119
+ hostAdapter,
120
+ contextRootPath: TEST_DIR,
121
+ });
122
+ const job = await runtime.startJob(SQUAD, 'meta objective', 'meta input');
123
+ await runtime.runAll(SQUAD, job);
124
+ const allowedAgentIds = hostAdapter.lastOptions?.metadata?.['allowedAgentIds'];
125
+ expect(allowedAgentIds).toEqual(['agent-a']);
126
+ });
127
+ });
128
+ //# sourceMappingURL=squad-runtime-host-metadata.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"squad-runtime-host-metadata.test.js","sourceRoot":"","sources":["../../../../tests/unit/runtime/squad-runtime-host-metadata.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAUhC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAA;AAWnF,MAAM,QAAQ,GAAG,+BAA+B,CAAA;AAEhD,MAAM,oBAAoB;IACf,EAAE,GAAG,SAAS,CAAA;IACd,IAAI,GAAG,iBAAiB,CAAA;IAC1B,WAAW,CAA2B;IAE7C,MAAM,CAAC,QAA8B;QACnC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAA;IACpE,CAAC;IAED,KAAK,CAAC,UAAU;QACd,QAAQ;IACV,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,MAA0B,EAAE,MAA0B;QAC3E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,CAAA;IAC9C,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAe,EACf,KAAsB,EACtB,GAAkB,EAClB,IAAkB,EAClB,OAAuB;QAEvB,IAAI,CAAC,WAAW,GAAG,OAAO,CAAA;QAC1B,OAAO;YACL,OAAO,EAAE,KAAK,CAAC,EAAE;YACjB,MAAM,EAAE,IAAI,CAAC,EAA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,MAAM,eAAe,GAAG,WAAW,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAa,CAAA;QAC1F,MAAM,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=active-host-detector.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-host-detector.test.d.ts","sourceRoot":"","sources":["../../../../tests/unit/shell/active-host-detector.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,85 @@
1
+ import { mkdtemp, rm, writeFile } from 'node:fs/promises';
2
+ import { tmpdir } from 'node:os';
3
+ import { join } from 'node:path';
4
+ import { describe, expect, it } from 'vitest';
5
+ import { ActiveHostDetector } from '../../../orchestrator/shell/services/active-host-detector.service.js';
6
+ describe('active host detector', () => {
7
+ it('returns high confidence for strong host signals', async () => {
8
+ const cwd = await mkdtemp(join(tmpdir(), 'squad-foundry-detector-'));
9
+ try {
10
+ const detector = new ActiveHostDetector();
11
+ const result = await detector.detect({ cwd, argv: ['claude'] });
12
+ expect(result.confidence).toBe('high');
13
+ expect(result.detectedHostId).toBe('claude-code');
14
+ }
15
+ finally {
16
+ await rm(cwd, { recursive: true, force: true });
17
+ }
18
+ });
19
+ it('detects strong host signal from path-style argv entries', async () => {
20
+ const cwd = await mkdtemp(join(tmpdir(), 'squad-foundry-detector-'));
21
+ try {
22
+ const detector = new ActiveHostDetector();
23
+ const result = await detector.detect({
24
+ cwd,
25
+ argv: ['/usr/local/bin/opencode'],
26
+ });
27
+ expect(result.confidence).toBe('high');
28
+ expect(result.detectedHostId).toBe('opencode');
29
+ }
30
+ finally {
31
+ await rm(cwd, { recursive: true, force: true });
32
+ }
33
+ });
34
+ it('returns medium confidence for medium-only host signals', async () => {
35
+ const cwd = await mkdtemp(join(tmpdir(), 'squad-foundry-detector-'));
36
+ try {
37
+ await writeFile(join(cwd, 'CLAUDE.md'), '# claude marker\n', 'utf-8');
38
+ const detector = new ActiveHostDetector();
39
+ const result = await detector.detect({ cwd, argv: [], env: {} });
40
+ expect(result.confidence).toBe('medium');
41
+ expect(result.detectedHostId).toBe('claude-code');
42
+ }
43
+ finally {
44
+ await rm(cwd, { recursive: true, force: true });
45
+ }
46
+ });
47
+ it('resolves score ties deterministically and keeps reasons stable', async () => {
48
+ const cwd = await mkdtemp(join(tmpdir(), 'squad-foundry-detector-'));
49
+ try {
50
+ const detector = new ActiveHostDetector();
51
+ const input = {
52
+ cwd,
53
+ env: {
54
+ CLAUDECODE: '1',
55
+ OPENCODE: '1',
56
+ },
57
+ };
58
+ const first = await detector.detect(input);
59
+ const second = await detector.detect(input);
60
+ expect(first.detectedHostId).toBe('claude-code');
61
+ expect(second.detectedHostId).toBe('claude-code');
62
+ expect(first.confidence).toBe('low');
63
+ expect(first.reasons).toEqual([...first.reasons].sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' })));
64
+ expect(first.reasons).toEqual(second.reasons);
65
+ expect(first.reasons.some((reason) => reason.includes('Tie at score'))).toBe(true);
66
+ }
67
+ finally {
68
+ await rm(cwd, { recursive: true, force: true });
69
+ }
70
+ });
71
+ it('returns low confidence when no meaningful signals exist', async () => {
72
+ const cwd = await mkdtemp(join(tmpdir(), 'squad-foundry-detector-'));
73
+ try {
74
+ const detector = new ActiveHostDetector();
75
+ const result = await detector.detect({ cwd, argv: [], env: {} });
76
+ expect(result.confidence).toBe('low');
77
+ expect(result.detectedHostId).toBeNull();
78
+ expect(result.reasons).toEqual([]);
79
+ }
80
+ finally {
81
+ await rm(cwd, { recursive: true, force: true });
82
+ }
83
+ });
84
+ });
85
+ //# sourceMappingURL=active-host-detector.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-host-detector.test.js","sourceRoot":"","sources":["../../../../tests/unit/shell/active-host-detector.test.ts"],"names":[],"mappings":"AAAA,OAAO,E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AC;YACT,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;QACjD,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,yDAAyD,EAAE,KAAK,IAAI,EAAE;QACvE,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,yBAAyB,CAAC,CAAC,CAAA;QAEpE,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,IAAI,kBAAkB,EAAE,CAAA;YACzC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAA;YAEhE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACrC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAA;YACxC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QACpC,CAAC;gBAAS,CAAC;YACT,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;QACjD,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=host-resolution.service.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-resolution.service.test.d.ts","sourceRoot":"","sources":["../../../../tests/unit/shell/host-resolution.service.test.ts"],"names":[],"mappings":""}