@intutic/cli 2.1.0 → 2.3.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 (368) hide show
  1. package/README.md +8 -8
  2. package/dist/cli.d.ts +0 -1
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +492 -21
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands/apiCommand.d.ts +40 -0
  7. package/dist/commands/apiCommand.d.ts.map +1 -0
  8. package/dist/commands/apiCommand.js +88 -0
  9. package/dist/commands/apiCommand.js.map +1 -0
  10. package/dist/commands/budget.d.ts +4 -0
  11. package/dist/commands/budget.d.ts.map +1 -1
  12. package/dist/commands/budget.js +8 -0
  13. package/dist/commands/budget.js.map +1 -1
  14. package/dist/commands/compliance.d.ts +122 -0
  15. package/dist/commands/compliance.d.ts.map +1 -0
  16. package/dist/commands/compliance.js +278 -0
  17. package/dist/commands/compliance.js.map +1 -0
  18. package/dist/commands/connect.d.ts +26 -1
  19. package/dist/commands/connect.d.ts.map +1 -1
  20. package/dist/commands/connect.js +222 -86
  21. package/dist/commands/connect.js.map +1 -1
  22. package/dist/commands/credentials.d.ts +1 -1
  23. package/dist/commands/credentials.js +1 -1
  24. package/dist/commands/decision.d.ts +4 -4
  25. package/dist/commands/decision.js +4 -4
  26. package/dist/commands/disconnect.d.ts +29 -0
  27. package/dist/commands/disconnect.d.ts.map +1 -0
  28. package/dist/commands/disconnect.js +266 -0
  29. package/dist/commands/disconnect.js.map +1 -0
  30. package/dist/commands/doctor.d.ts +0 -1
  31. package/dist/commands/doctor.d.ts.map +1 -1
  32. package/dist/commands/doctor.js +0 -1
  33. package/dist/commands/doctor.js.map +1 -1
  34. package/dist/commands/enforce.d.ts +1 -1
  35. package/dist/commands/enforce.js +1 -1
  36. package/dist/commands/enterprise.d.ts +3 -2
  37. package/dist/commands/enterprise.d.ts.map +1 -1
  38. package/dist/commands/enterprise.js +11 -3
  39. package/dist/commands/enterprise.js.map +1 -1
  40. package/dist/commands/env.d.ts +1 -1
  41. package/dist/commands/env.d.ts.map +1 -1
  42. package/dist/commands/env.js +3 -8
  43. package/dist/commands/env.js.map +1 -1
  44. package/dist/commands/exec.d.ts +2 -3
  45. package/dist/commands/exec.d.ts.map +1 -1
  46. package/dist/commands/exec.js +4 -5
  47. package/dist/commands/exec.js.map +1 -1
  48. package/dist/commands/gateLiveness.d.ts +15 -0
  49. package/dist/commands/gateLiveness.d.ts.map +1 -0
  50. package/dist/commands/gateLiveness.js +34 -0
  51. package/dist/commands/gateLiveness.js.map +1 -0
  52. package/dist/commands/gateway.d.ts +16 -4
  53. package/dist/commands/gateway.d.ts.map +1 -1
  54. package/dist/commands/gateway.js +47 -6
  55. package/dist/commands/gateway.js.map +1 -1
  56. package/dist/commands/github.d.ts +20 -0
  57. package/dist/commands/github.d.ts.map +1 -0
  58. package/dist/commands/github.js +41 -0
  59. package/dist/commands/github.js.map +1 -0
  60. package/dist/commands/guardrails.d.ts +28 -2
  61. package/dist/commands/guardrails.d.ts.map +1 -1
  62. package/dist/commands/guardrails.js +233 -24
  63. package/dist/commands/guardrails.js.map +1 -1
  64. package/dist/commands/init.d.ts +1 -2
  65. package/dist/commands/init.d.ts.map +1 -1
  66. package/dist/commands/init.js +3 -2
  67. package/dist/commands/init.js.map +1 -1
  68. package/dist/commands/install-daemon.d.ts +1 -1
  69. package/dist/commands/install-daemon.js +2 -2
  70. package/dist/commands/integrity.d.ts +10 -2
  71. package/dist/commands/integrity.d.ts.map +1 -1
  72. package/dist/commands/integrity.js +10 -3
  73. package/dist/commands/integrity.js.map +1 -1
  74. package/dist/commands/inventory.d.ts +60 -0
  75. package/dist/commands/inventory.d.ts.map +1 -0
  76. package/dist/commands/inventory.js +141 -0
  77. package/dist/commands/inventory.js.map +1 -0
  78. package/dist/commands/judge.d.ts +1 -1
  79. package/dist/commands/judge.js +2 -2
  80. package/dist/commands/judge.js.map +1 -1
  81. package/dist/commands/login.d.ts +0 -1
  82. package/dist/commands/login.d.ts.map +1 -1
  83. package/dist/commands/login.js +0 -1
  84. package/dist/commands/login.js.map +1 -1
  85. package/dist/commands/logout.d.ts +0 -1
  86. package/dist/commands/logout.d.ts.map +1 -1
  87. package/dist/commands/logout.js +0 -1
  88. package/dist/commands/logout.js.map +1 -1
  89. package/dist/commands/mcp.d.ts +31 -0
  90. package/dist/commands/mcp.d.ts.map +1 -0
  91. package/dist/commands/mcp.js +65 -0
  92. package/dist/commands/mcp.js.map +1 -0
  93. package/dist/commands/notifications.d.ts +54 -0
  94. package/dist/commands/notifications.d.ts.map +1 -0
  95. package/dist/commands/notifications.js +151 -0
  96. package/dist/commands/notifications.js.map +1 -0
  97. package/dist/commands/org.d.ts +3 -3
  98. package/dist/commands/org.js +3 -3
  99. package/dist/commands/policy.d.ts +6 -1
  100. package/dist/commands/policy.d.ts.map +1 -1
  101. package/dist/commands/policy.js +77 -37
  102. package/dist/commands/policy.js.map +1 -1
  103. package/dist/commands/predict-cost.d.ts +1 -2
  104. package/dist/commands/predict-cost.d.ts.map +1 -1
  105. package/dist/commands/predict-cost.js +1 -4
  106. package/dist/commands/predict-cost.js.map +1 -1
  107. package/dist/commands/rollback.d.ts.map +1 -1
  108. package/dist/commands/rollback.js +3 -1
  109. package/dist/commands/rollback.js.map +1 -1
  110. package/dist/commands/routing.d.ts +1 -1
  111. package/dist/commands/routing.js +1 -1
  112. package/dist/commands/rules.d.ts +74 -0
  113. package/dist/commands/rules.d.ts.map +1 -0
  114. package/dist/commands/rules.js +283 -0
  115. package/dist/commands/rules.js.map +1 -0
  116. package/dist/commands/settings.d.ts +43 -0
  117. package/dist/commands/settings.d.ts.map +1 -0
  118. package/dist/commands/settings.js +108 -0
  119. package/dist/commands/settings.js.map +1 -0
  120. package/dist/commands/setup.d.ts +1 -1
  121. package/dist/commands/setup.js +1 -1
  122. package/dist/commands/siem.d.ts +53 -0
  123. package/dist/commands/siem.d.ts.map +1 -0
  124. package/dist/commands/siem.js +132 -0
  125. package/dist/commands/siem.js.map +1 -0
  126. package/dist/commands/skill.d.ts +5 -5
  127. package/dist/commands/skill.js +7 -7
  128. package/dist/commands/skill.js.map +1 -1
  129. package/dist/commands/status.d.ts +0 -1
  130. package/dist/commands/status.d.ts.map +1 -1
  131. package/dist/commands/status.js +2 -3
  132. package/dist/commands/status.js.map +1 -1
  133. package/dist/commands/syncContext.d.ts +0 -1
  134. package/dist/commands/syncContext.d.ts.map +1 -1
  135. package/dist/commands/syncContext.js +0 -1
  136. package/dist/commands/syncContext.js.map +1 -1
  137. package/dist/commands/team.d.ts +2 -2
  138. package/dist/commands/team.js +2 -2
  139. package/dist/commands/traces.d.ts +0 -3
  140. package/dist/commands/traces.d.ts.map +1 -1
  141. package/dist/commands/traces.js +0 -3
  142. package/dist/commands/traces.js.map +1 -1
  143. package/dist/commands/usage.d.ts +41 -0
  144. package/dist/commands/usage.d.ts.map +1 -0
  145. package/dist/commands/usage.js +129 -0
  146. package/dist/commands/usage.js.map +1 -0
  147. package/dist/commands/whoami.d.ts +0 -1
  148. package/dist/commands/whoami.d.ts.map +1 -1
  149. package/dist/commands/whoami.js +0 -1
  150. package/dist/commands/whoami.js.map +1 -1
  151. package/dist/config/keychain.d.ts +0 -1
  152. package/dist/config/keychain.d.ts.map +1 -1
  153. package/dist/config/keychain.js +0 -1
  154. package/dist/config/keychain.js.map +1 -1
  155. package/dist/config/paths.d.ts +0 -1
  156. package/dist/config/paths.d.ts.map +1 -1
  157. package/dist/config/paths.js +0 -1
  158. package/dist/config/paths.js.map +1 -1
  159. package/dist/config/store.d.ts +0 -1
  160. package/dist/config/store.d.ts.map +1 -1
  161. package/dist/config/store.js +0 -1
  162. package/dist/config/store.js.map +1 -1
  163. package/dist/harness/ag2.d.ts +1 -1
  164. package/dist/harness/ag2.js +1 -1
  165. package/dist/harness/agentFramework.d.ts +1 -1
  166. package/dist/harness/agentFramework.js +1 -1
  167. package/dist/harness/agenticOrchestrator.d.ts +4 -6
  168. package/dist/harness/agenticOrchestrator.d.ts.map +1 -1
  169. package/dist/harness/agenticOrchestrator.js +5 -7
  170. package/dist/harness/agenticOrchestrator.js.map +1 -1
  171. package/dist/harness/agentsMd.d.ts +24 -0
  172. package/dist/harness/agentsMd.d.ts.map +1 -0
  173. package/dist/harness/agentsMd.js +28 -0
  174. package/dist/harness/agentsMd.js.map +1 -0
  175. package/dist/harness/aider.d.ts +3 -1
  176. package/dist/harness/aider.d.ts.map +1 -1
  177. package/dist/harness/aider.js +9 -7
  178. package/dist/harness/aider.js.map +1 -1
  179. package/dist/harness/antigravity.d.ts +23 -5
  180. package/dist/harness/antigravity.d.ts.map +1 -1
  181. package/dist/harness/antigravity.js +45 -54
  182. package/dist/harness/antigravity.js.map +1 -1
  183. package/dist/harness/autogen.d.ts +1 -1
  184. package/dist/harness/autogen.js +2 -2
  185. package/dist/harness/autogen.js.map +1 -1
  186. package/dist/harness/claudeCode.d.ts +22 -1
  187. package/dist/harness/claudeCode.d.ts.map +1 -1
  188. package/dist/harness/claudeCode.js +47 -3
  189. package/dist/harness/claudeCode.js.map +1 -1
  190. package/dist/harness/cline.d.ts.map +1 -1
  191. package/dist/harness/cline.js +16 -24
  192. package/dist/harness/cline.js.map +1 -1
  193. package/dist/harness/codex.d.ts +6 -1
  194. package/dist/harness/codex.d.ts.map +1 -1
  195. package/dist/harness/codex.js +26 -28
  196. package/dist/harness/codex.js.map +1 -1
  197. package/dist/harness/continue.d.ts +10 -4
  198. package/dist/harness/continue.d.ts.map +1 -1
  199. package/dist/harness/continue.js +22 -22
  200. package/dist/harness/continue.js.map +1 -1
  201. package/dist/harness/cursor.d.ts +5 -2
  202. package/dist/harness/cursor.d.ts.map +1 -1
  203. package/dist/harness/cursor.js +19 -27
  204. package/dist/harness/cursor.js.map +1 -1
  205. package/dist/harness/detector.d.ts +0 -1
  206. package/dist/harness/detector.d.ts.map +1 -1
  207. package/dist/harness/detector.js +0 -1
  208. package/dist/harness/detector.js.map +1 -1
  209. package/dist/harness/dsh.d.ts +5 -3
  210. package/dist/harness/dsh.d.ts.map +1 -1
  211. package/dist/harness/dsh.js +17 -29
  212. package/dist/harness/dsh.js.map +1 -1
  213. package/dist/harness/eve.d.ts +3 -4
  214. package/dist/harness/eve.d.ts.map +1 -1
  215. package/dist/harness/eve.js +3 -4
  216. package/dist/harness/eve.js.map +1 -1
  217. package/dist/harness/githubCopilot.d.ts +4 -1
  218. package/dist/harness/githubCopilot.d.ts.map +1 -1
  219. package/dist/harness/githubCopilot.js +13 -24
  220. package/dist/harness/githubCopilot.js.map +1 -1
  221. package/dist/harness/goose.d.ts +7 -3
  222. package/dist/harness/goose.d.ts.map +1 -1
  223. package/dist/harness/goose.js +18 -21
  224. package/dist/harness/goose.js.map +1 -1
  225. package/dist/harness/grok.d.ts +2 -2
  226. package/dist/harness/grok.d.ts.map +1 -1
  227. package/dist/harness/grok.js +15 -28
  228. package/dist/harness/grok.js.map +1 -1
  229. package/dist/harness/hermes.d.ts +6 -0
  230. package/dist/harness/hermes.d.ts.map +1 -1
  231. package/dist/harness/hermes.js +17 -16
  232. package/dist/harness/hermes.js.map +1 -1
  233. package/dist/harness/jsSdkGatedAdapter.d.ts.map +1 -1
  234. package/dist/harness/jsSdkGatedAdapter.js +4 -6
  235. package/dist/harness/jsSdkGatedAdapter.js.map +1 -1
  236. package/dist/harness/langgraph.d.ts.map +1 -1
  237. package/dist/harness/langgraph.js +4 -6
  238. package/dist/harness/langgraph.js.map +1 -1
  239. package/dist/harness/muse.d.ts +3 -7
  240. package/dist/harness/muse.d.ts.map +1 -1
  241. package/dist/harness/muse.js +17 -39
  242. package/dist/harness/muse.js.map +1 -1
  243. package/dist/harness/n8n.d.ts +13 -7
  244. package/dist/harness/n8n.d.ts.map +1 -1
  245. package/dist/harness/n8n.js +21 -127
  246. package/dist/harness/n8n.js.map +1 -1
  247. package/dist/harness/openWebUI.d.ts.map +1 -1
  248. package/dist/harness/openWebUI.js +5 -4
  249. package/dist/harness/openWebUI.js.map +1 -1
  250. package/dist/harness/openaiAgents.d.ts +1 -1
  251. package/dist/harness/openaiAgents.d.ts.map +1 -1
  252. package/dist/harness/openaiAgents.js +6 -3
  253. package/dist/harness/openaiAgents.js.map +1 -1
  254. package/dist/harness/openclaw.d.ts +8 -0
  255. package/dist/harness/openclaw.d.ts.map +1 -1
  256. package/dist/harness/openclaw.js +27 -12
  257. package/dist/harness/openclaw.js.map +1 -1
  258. package/dist/harness/opencode.d.ts +4 -5
  259. package/dist/harness/opencode.d.ts.map +1 -1
  260. package/dist/harness/opencode.js +17 -34
  261. package/dist/harness/opencode.js.map +1 -1
  262. package/dist/harness/openhands.d.ts +9 -3
  263. package/dist/harness/openhands.d.ts.map +1 -1
  264. package/dist/harness/openhands.js +43 -25
  265. package/dist/harness/openhands.js.map +1 -1
  266. package/dist/harness/pi.d.ts +7 -2
  267. package/dist/harness/pi.d.ts.map +1 -1
  268. package/dist/harness/pi.js +19 -18
  269. package/dist/harness/pi.js.map +1 -1
  270. package/dist/harness/rooCode.d.ts +12 -5
  271. package/dist/harness/rooCode.d.ts.map +1 -1
  272. package/dist/harness/rooCode.js +25 -43
  273. package/dist/harness/rooCode.js.map +1 -1
  274. package/dist/harness/rulesFiles.d.ts +53 -0
  275. package/dist/harness/rulesFiles.d.ts.map +1 -0
  276. package/dist/harness/rulesFiles.js +106 -0
  277. package/dist/harness/rulesFiles.js.map +1 -0
  278. package/dist/harness/sdkGatedAdapter.d.ts.map +1 -1
  279. package/dist/harness/sdkGatedAdapter.js +4 -6
  280. package/dist/harness/sdkGatedAdapter.js.map +1 -1
  281. package/dist/harness/smolagents.d.ts +2 -2
  282. package/dist/harness/smolagents.js +3 -3
  283. package/dist/harness/smolagents.js.map +1 -1
  284. package/dist/harness/types.d.ts +20 -6
  285. package/dist/harness/types.d.ts.map +1 -1
  286. package/dist/harness/types.js +1 -95
  287. package/dist/harness/types.js.map +1 -1
  288. package/dist/harness/windsurf.d.ts +7 -2
  289. package/dist/harness/windsurf.d.ts.map +1 -1
  290. package/dist/harness/windsurf.js +22 -29
  291. package/dist/harness/windsurf.js.map +1 -1
  292. package/dist/harness/xirp.d.ts +6 -9
  293. package/dist/harness/xirp.d.ts.map +1 -1
  294. package/dist/harness/xirp.js +7 -10
  295. package/dist/harness/xirp.js.map +1 -1
  296. package/dist/lib/api.d.ts +27 -1
  297. package/dist/lib/api.d.ts.map +1 -1
  298. package/dist/lib/api.js +55 -18
  299. package/dist/lib/api.js.map +1 -1
  300. package/dist/lib/ciscoScanner.d.ts +1 -1
  301. package/dist/lib/ciscoScanner.js +1 -1
  302. package/dist/lib/decisionsLogRefresh.d.ts.map +1 -1
  303. package/dist/lib/decisionsLogRefresh.js +6 -7
  304. package/dist/lib/decisionsLogRefresh.js.map +1 -1
  305. package/dist/lib/deviceReport.d.ts +15 -0
  306. package/dist/lib/deviceReport.d.ts.map +1 -1
  307. package/dist/lib/deviceReport.js +30 -0
  308. package/dist/lib/deviceReport.js.map +1 -1
  309. package/dist/lib/envInjector.d.ts +16 -6
  310. package/dist/lib/envInjector.d.ts.map +1 -1
  311. package/dist/lib/envInjector.js +99 -88
  312. package/dist/lib/envInjector.js.map +1 -1
  313. package/dist/lib/gitHooks.d.ts +0 -1
  314. package/dist/lib/gitHooks.d.ts.map +1 -1
  315. package/dist/lib/gitHooks.js +8 -9
  316. package/dist/lib/gitHooks.js.map +1 -1
  317. package/dist/lib/gracefulShutdown.d.ts +1 -1
  318. package/dist/lib/gracefulShutdown.js +1 -1
  319. package/dist/lib/hash.d.ts +0 -1
  320. package/dist/lib/hash.d.ts.map +1 -1
  321. package/dist/lib/hash.js +0 -1
  322. package/dist/lib/hash.js.map +1 -1
  323. package/dist/lib/inventory.d.ts +47 -0
  324. package/dist/lib/inventory.d.ts.map +1 -0
  325. package/dist/lib/inventory.js +106 -0
  326. package/dist/lib/inventory.js.map +1 -0
  327. package/dist/lib/logger.d.ts +0 -1
  328. package/dist/lib/logger.d.ts.map +1 -1
  329. package/dist/lib/logger.js +0 -1
  330. package/dist/lib/logger.js.map +1 -1
  331. package/dist/lib/mdmManifest.d.ts +30 -2
  332. package/dist/lib/mdmManifest.d.ts.map +1 -1
  333. package/dist/lib/mdmManifest.js +50 -2
  334. package/dist/lib/mdmManifest.js.map +1 -1
  335. package/dist/lib/onboarding.d.ts +0 -1
  336. package/dist/lib/onboarding.d.ts.map +1 -1
  337. package/dist/lib/onboarding.js +2 -3
  338. package/dist/lib/onboarding.js.map +1 -1
  339. package/dist/lib/otelPropagation.d.ts +1 -1
  340. package/dist/lib/otelPropagation.js +1 -1
  341. package/dist/lib/policySnapshot.d.ts +3 -1
  342. package/dist/lib/policySnapshot.d.ts.map +1 -1
  343. package/dist/lib/policySnapshot.js +15 -5
  344. package/dist/lib/policySnapshot.js.map +1 -1
  345. package/dist/lib/process.d.ts +5 -1
  346. package/dist/lib/process.d.ts.map +1 -1
  347. package/dist/lib/process.js +13 -4
  348. package/dist/lib/process.js.map +1 -1
  349. package/dist/lib/providerProbe.d.ts +2 -2
  350. package/dist/lib/providerProbe.js +2 -2
  351. package/dist/lib/sandbox/firecracker.d.ts +3 -3
  352. package/dist/lib/sandbox/firecracker.js +3 -3
  353. package/dist/lib/sandbox/index.d.ts +2 -2
  354. package/dist/lib/sandbox/index.js +2 -2
  355. package/dist/lib/sandbox/oci.d.ts +1 -1
  356. package/dist/lib/sandbox/oci.js +1 -1
  357. package/dist/lib/sandbox/types.d.ts +1 -1
  358. package/dist/lib/sandbox/types.js +1 -1
  359. package/dist/lib/sopFrontMatter.d.ts +1 -1
  360. package/dist/lib/sopFrontMatter.js +1 -1
  361. package/package.json +6 -5
  362. package/resources/sandbox/Dockerfile +1 -1
  363. package/resources/sandbox/entrypoint.sh +4 -4
  364. package/resources/sandbox/firecracker-launch.sh +1 -1
  365. package/dist/harness/base.d.ts +0 -20
  366. package/dist/harness/base.d.ts.map +0 -1
  367. package/dist/harness/base.js +0 -73
  368. package/dist/harness/base.js.map +0 -1
@@ -1,11 +1,18 @@
1
1
  /**
2
2
  * rooCode.ts — Roo Code adapter.
3
3
  *
4
- * Detects the Roo Code VS Code extension and writes Intutic governance rules
5
- * as .roorules. Roo Code has no hook system to install a tool-call gate into,
6
- * and keeps its API provider and base URL in its own settings panel rather
7
- * than in any file this adapter can write, so routing it through the proxy is
8
- * a manual step (see the Roo Code integration page).
4
+ * Detects the Roo Code VS Code extension and writes the rule sets into the
5
+ * workspace's `AGENTS.md` through the shared writer (agentsMd.ts). Roo reads
6
+ * `AGENTS.md` at the workspace root unless `roo-cline.useAgentRules` is off,
7
+ * the default being on. Not `.roo/rules/`: once that directory has a file,
8
+ * Roo stops reading a `.roorules` or `.clinerules` the user keeps
9
+ * (https://github.com/RooCodeInc/Roo-Code/blob/b867ec9145750d0ae1ff7f02d35406e9bf2a0b16/src/core/prompts/sections/custom-instructions.ts).
10
+ * Earlier versions overwrote `.roorules`; the user's own copy comes back.
11
+ *
12
+ * Roo Code has no hook system to install a tool-call gate into, and keeps its
13
+ * API provider and base URL in its own settings panel rather than in any file
14
+ * this adapter can write, so routing it through the proxy is a manual step
15
+ * (see the Roo Code integration page).
9
16
  *
10
17
  * HLD §3.14 — Harness Onboarding Matrix
11
18
  * @module
@@ -1 +1 @@
1
- {"version":3,"file":"rooCode.d.ts","sourceRoot":"","sources":["../../src/harness/rooCode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAMjD,eAAO,MAAM,cAAc,EAAE,eAyD5B,CAAA"}
1
+ {"version":3,"file":"rooCode.d.ts","sourceRoot":"","sources":["../../src/harness/rooCode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAMjD,eAAO,MAAM,cAAc,EAAE,eA8B5B,CAAA"}
@@ -1,28 +1,34 @@
1
1
  /**
2
2
  * rooCode.ts — Roo Code adapter.
3
3
  *
4
- * Detects the Roo Code VS Code extension and writes Intutic governance rules
5
- * as .roorules. Roo Code has no hook system to install a tool-call gate into,
6
- * and keeps its API provider and base URL in its own settings panel rather
7
- * than in any file this adapter can write, so routing it through the proxy is
8
- * a manual step (see the Roo Code integration page).
4
+ * Detects the Roo Code VS Code extension and writes the rule sets into the
5
+ * workspace's `AGENTS.md` through the shared writer (agentsMd.ts). Roo reads
6
+ * `AGENTS.md` at the workspace root unless `roo-cline.useAgentRules` is off,
7
+ * the default being on. Not `.roo/rules/`: once that directory has a file,
8
+ * Roo stops reading a `.roorules` or `.clinerules` the user keeps
9
+ * (https://github.com/RooCodeInc/Roo-Code/blob/b867ec9145750d0ae1ff7f02d35406e9bf2a0b16/src/core/prompts/sections/custom-instructions.ts).
10
+ * Earlier versions overwrote `.roorules`; the user's own copy comes back.
11
+ *
12
+ * Roo Code has no hook system to install a tool-call gate into, and keeps its
13
+ * API provider and base URL in its own settings panel rather than in any file
14
+ * this adapter can write, so routing it through the proxy is a manual step
15
+ * (see the Roo Code integration page).
9
16
  *
10
17
  * HLD §3.14 — Harness Onboarding Matrix
11
18
  * @module
12
19
  */
13
- import { access, readdir, writeFile, rename, mkdir } from 'node:fs/promises';
14
- import { join, dirname } from 'node:path';
20
+ import { access, readdir } from 'node:fs/promises';
21
+ import { join } from 'node:path';
15
22
  import { homedir } from 'node:os';
16
23
  import { HarnessType } from '@intutic/shared-types';
17
- import { hashFile } from '../lib/hash.js';
18
- import { newIso } from '@intutic/id';
19
- const CONFIG_FILE = '.roorules';
24
+ import { AGENTS_MD, agentsMdHash, writeAgentsMd } from './agentsMd.js';
25
+ import { retireLegacyRulesFile } from './rulesFiles.js';
26
+ const LEGACY_FILE = '.roorules';
20
27
  export const rooCodeAdapter = {
21
28
  type: HarnessType.ROO_CODE,
22
- configFileName: CONFIG_FILE,
29
+ configFileName: AGENTS_MD,
23
30
  async detect(workspaceRoot) {
24
- // Check for .roomodes or .roorules in workspace
25
- for (const marker of ['.roomodes', '.roorules']) {
31
+ for (const marker of ['.roomodes', LEGACY_FILE]) {
26
32
  try {
27
33
  await access(join(workspaceRoot, marker));
28
34
  return true;
@@ -31,44 +37,20 @@ export const rooCodeAdapter = {
31
37
  // fall through
32
38
  }
33
39
  }
34
- // Check for VS Code extension directory
35
40
  try {
36
- const extensionsDir = join(homedir(), '.vscode', 'extensions');
37
- const entries = await readdir(extensionsDir);
41
+ const entries = await readdir(join(homedir(), '.vscode', 'extensions'));
38
42
  return entries.some((entry) => entry.startsWith('rooveterinaryinc.roo-cline-'));
39
43
  }
40
44
  catch {
41
45
  return false;
42
46
  }
43
47
  },
44
- async writeConfig(workspaceRoot, sops, _proxyUrl) {
45
- const filePath = join(workspaceRoot, CONFIG_FILE);
46
- const instructions = sops.length > 0
47
- ? sops.map((sop) => `## ${sop.title}\n\n${sop.content}`).join('\n\n---\n\n')
48
- : '# Intutic governance active — no SOP rules configured yet.';
49
- const content = [
50
- '# Intutic Governance Rules (auto-generated)',
51
- '# DO NOT EDIT — managed by intutic sync daemon',
52
- `# Last sync: ${newIso()}`,
53
- '# NOTE: Roo Code has no hook system, so these rules are advisory.',
54
- '# Governance is enforced via the proxy and the drift guard.',
55
- '',
56
- instructions,
57
- '',
58
- ].join('\n');
59
- await mkdir(dirname(filePath), { recursive: true });
60
- const tmp = filePath + '.intutic-tmp';
61
- await writeFile(tmp, content, 'utf-8');
62
- await rename(tmp, filePath);
63
- return filePath;
48
+ async writeConfig(workspaceRoot, sops, proxyUrl) {
49
+ await retireLegacyRulesFile(workspaceRoot, LEGACY_FILE);
50
+ return writeAgentsMd(workspaceRoot, sops, proxyUrl);
64
51
  },
65
- async readCurrentHash(workspaceRoot) {
66
- try {
67
- return await hashFile(join(workspaceRoot, CONFIG_FILE));
68
- }
69
- catch {
70
- return null;
71
- }
52
+ readCurrentHash(workspaceRoot) {
53
+ return agentsMdHash(workspaceRoot);
72
54
  },
73
55
  };
74
56
  //# sourceMappingURL=rooCode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rooCode.js","s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EAAE,QAAQ,CAAC,CAAA;IACrD,CAAC;IAED,eAAe,CAAC,aAAqB;QACnC,OAAO,YAAY,CAAC,aAAa,CAAC,CAAA;IACpC,CAAC;CACF,CAAA"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * rulesFiles.ts — the two ways a rule set reaches a harness's instructions.
3
+ *
4
+ * Which file each harness reads is `HARNESS_RULES_FILES` in
5
+ * `@intutic/shared-types`, with the product documentation that says so. The
6
+ * adapters write through these helpers, and `rulesFiles.test.ts` checks every
7
+ * adapter writes where the map says and nowhere else.
8
+ *
9
+ * - {@link writeRulesSectionFile}: a file the user also writes (`CLAUDE.md`,
10
+ * `AGENTS.md`, `GEMINI.md`, `.goosehints`, ...). The rule sets go between
11
+ * the INTUTIC:RULES markers and the rest of the file is the user's.
12
+ * - {@link writeOwnRulesFile}: a file of Intutic's own in a directory the
13
+ * product reads every file of (`.cursor/rules/`, `.continue/rules/`, ...).
14
+ *
15
+ * Neither carries a sync time: the same rule sets give the same bytes, so a
16
+ * sync with nothing new leaves the file alone.
17
+ *
18
+ * @module
19
+ */
20
+ import type { SyncSopEntry } from '@intutic/shared-types';
21
+ /**
22
+ * One markdown section per SOP. Each SOP the control plane synced ends with
23
+ * its `sop://` pointer comment, which maps the rules in the file back to the
24
+ * SOP that produced them.
25
+ */
26
+ export declare function buildSopSections(sops: SyncSopEntry[]): string;
27
+ /**
28
+ * The rule sets as markdown: the generated header (which `intutic disconnect`
29
+ * recognises), the proxy URL, one section per SOP.
30
+ */
31
+ export declare function buildRulesBody(sops: SyncSopEntry[], proxyUrl: string, shape: 'section' | 'file'): string;
32
+ /**
33
+ * Writes the rule sets as the marked section of `relPath`. Nothing is written
34
+ * without a rule set. Returns the absolute path, or null.
35
+ */
36
+ export declare function writeRulesSectionFile(workspaceRoot: string, relPath: string, sops: SyncSopEntry[], proxyUrl: string): Promise<string | null>;
37
+ /** The section's hash: the user's own edits elsewhere in the file are not drift. */
38
+ export declare function rulesSectionHash(workspaceRoot: string, relPath: string): Promise<string | null>;
39
+ /**
40
+ * Writes the rule sets as Intutic's own file `relPath`, after `frontMatter`
41
+ * (the product's own keys, e.g. `alwaysApply: true`) when given. Nothing is
42
+ * written without a rule set. Returns the absolute path, or null.
43
+ */
44
+ export declare function writeOwnRulesFile(workspaceRoot: string, relPath: string, sops: SyncSopEntry[], proxyUrl: string, frontMatter?: string): Promise<string | null>;
45
+ /** The hash of a whole file Intutic owns; null when it does not exist. */
46
+ export declare function ownRulesFileHash(workspaceRoot: string, relPath: string): Promise<string | null>;
47
+ /**
48
+ * Takes back the whole rules file earlier versions wrote at `relPath`, a path
49
+ * the product has stopped reading or reads only as a legacy fallback: the
50
+ * user's original comes back, or the file goes when Intutic created it.
51
+ */
52
+ export declare function retireLegacyRulesFile(workspaceRoot: string, relPath: string): Promise<void>;
53
+ //# sourceMappingURL=rulesFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rulesFiles.d.ts","sourceRoot":"","sources":["../../src/harness/rulesFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAIzD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,MAAM,CAI7D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAWxG;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAKxB;AAED,oFAAoF;AACpF,wBAAsB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CASrG;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQxB;AAED,0EAA0E;AAC1E,wBAAsB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAMrG;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3F"}
@@ -0,0 +1,106 @@
1
+ /**
2
+ * rulesFiles.ts — the two ways a rule set reaches a harness's instructions.
3
+ *
4
+ * Which file each harness reads is `HARNESS_RULES_FILES` in
5
+ * `@intutic/shared-types`, with the product documentation that says so. The
6
+ * adapters write through these helpers, and `rulesFiles.test.ts` checks every
7
+ * adapter writes where the map says and nowhere else.
8
+ *
9
+ * - {@link writeRulesSectionFile}: a file the user also writes (`CLAUDE.md`,
10
+ * `AGENTS.md`, `GEMINI.md`, `.goosehints`, ...). The rule sets go between
11
+ * the INTUTIC:RULES markers and the rest of the file is the user's.
12
+ * - {@link writeOwnRulesFile}: a file of Intutic's own in a directory the
13
+ * product reads every file of (`.cursor/rules/`, `.continue/rules/`, ...).
14
+ *
15
+ * Neither carries a sync time: the same rule sets give the same bytes, so a
16
+ * sync with nothing new leaves the file alone.
17
+ *
18
+ * @module
19
+ */
20
+ import { join } from 'node:path';
21
+ import { readFile } from 'node:fs/promises';
22
+ import { retireRulesFile, rulesSectionOf, writeOwnedFile, writeRulesSection } from '@intutic/sync-daemon';
23
+ import { hashFile, hashString } from '../lib/hash.js';
24
+ /**
25
+ * One markdown section per SOP. Each SOP the control plane synced ends with
26
+ * its `sop://` pointer comment, which maps the rules in the file back to the
27
+ * SOP that produced them.
28
+ */
29
+ export function buildSopSections(sops) {
30
+ return sops
31
+ .map((sop) => `## ${sop.title}\n\n${sop.content}${sop.sopRef ? `\n${sop.sopRef}` : ''}`)
32
+ .join('\n\n---\n\n');
33
+ }
34
+ /**
35
+ * The rule sets as markdown: the generated header (which `intutic disconnect`
36
+ * recognises), the proxy URL, one section per SOP.
37
+ */
38
+ export function buildRulesBody(sops, proxyUrl, shape) {
39
+ return [
40
+ '# Intutic Governance Rules (auto-generated)',
41
+ shape === 'section'
42
+ ? '# DO NOT EDIT this section — managed by intutic sync daemon; edit outside the INTUTIC:RULES markers'
43
+ : '# DO NOT EDIT — managed by intutic sync daemon; put rules of your own in another file',
44
+ '',
45
+ `> **Proxy URL:** \`${proxyUrl}\``,
46
+ '',
47
+ buildSopSections(sops),
48
+ ].join('\n');
49
+ }
50
+ /**
51
+ * Writes the rule sets as the marked section of `relPath`. Nothing is written
52
+ * without a rule set. Returns the absolute path, or null.
53
+ */
54
+ export async function writeRulesSectionFile(workspaceRoot, relPath, sops, proxyUrl) {
55
+ if (sops.length === 0)
56
+ return null;
57
+ const filePath = join(workspaceRoot, relPath);
58
+ await writeRulesSection(filePath, workspaceRoot, buildRulesBody(sops, proxyUrl, 'section'));
59
+ return filePath;
60
+ }
61
+ /** The section's hash: the user's own edits elsewhere in the file are not drift. */
62
+ export async function rulesSectionHash(workspaceRoot, relPath) {
63
+ let content;
64
+ try {
65
+ content = await readFile(join(workspaceRoot, relPath), 'utf-8');
66
+ }
67
+ catch {
68
+ return null;
69
+ }
70
+ const section = rulesSectionOf(content);
71
+ return section === null ? null : hashString(section);
72
+ }
73
+ /**
74
+ * Writes the rule sets as Intutic's own file `relPath`, after `frontMatter`
75
+ * (the product's own keys, e.g. `alwaysApply: true`) when given. Nothing is
76
+ * written without a rule set. Returns the absolute path, or null.
77
+ */
78
+ export async function writeOwnRulesFile(workspaceRoot, relPath, sops, proxyUrl, frontMatter) {
79
+ if (sops.length === 0)
80
+ return null;
81
+ const filePath = join(workspaceRoot, relPath);
82
+ const body = `${buildRulesBody(sops, proxyUrl, 'file')}\n`;
83
+ const content = frontMatter ? `---\n${frontMatter.trimEnd()}\n---\n\n${body}` : body;
84
+ // Unchanged rule sets leave the file, and its modification time, alone.
85
+ if ((await readFile(filePath, 'utf-8').catch(() => null)) !== content)
86
+ await writeOwnedFile(filePath, workspaceRoot, content);
87
+ return filePath;
88
+ }
89
+ /** The hash of a whole file Intutic owns; null when it does not exist. */
90
+ export async function ownRulesFileHash(workspaceRoot, relPath) {
91
+ try {
92
+ return await hashFile(join(workspaceRoot, relPath));
93
+ }
94
+ catch {
95
+ return null;
96
+ }
97
+ }
98
+ /**
99
+ * Takes back the whole rules file earlier versions wrote at `relPath`, a path
100
+ * the product has stopped reading or reads only as a legacy fallback: the
101
+ * user's original comes back, or the file goes when Intutic created it.
102
+ */
103
+ export function retireLegacyRulesFile(workspaceRoot, relPath) {
104
+ return retireRulesFile(join(workspaceRoot, relPath), workspaceRoot);
105
+ }
106
+ //# sourceMappingURL=rulesFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rulesFiles.js","sourceRoot":"","sources":["../../src/harness/rulesFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACzG,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAoB;IACnD,OAAO,IAAI;SACR,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,G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,CAAA;AACrE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sdkGatedAdapter.d.ts","sourceRoot":"","sources":["../../src/harness/sdkGatedAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,uBAAuB,CAAA;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AASjD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,qBAAqB;IACpC,8DAA8D;IAC9D,IAAI,EAAE,WAAW,CAAA;IACjB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;IACpC,kFAAkF;IAClF,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,+EAA+E;IAC/E,UAAU,EAAE,MAAM,CAAA;IAClB,oFAAoF;IACpF,YAAY,EAAE,MAAM,CAAA;IACpB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAA;CACjB;AAOD,6EAA6E;AAC7E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,GAAG,eAAe,CAwDhF"}
1
+ {"version":3,"file":"sdkGatedAdapter.d.ts","sourceRoot":"","sources":["../../src/harness/sdkGatedAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,uBAAuB,CAAA;AAEtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAUjD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,qBAAqB;IACpC,8DAA8D;IAC9D,IAAI,EAAE,WAAW,CAAA;IACjB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;IACpC,kFAAkF;IAClF,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,+EAA+E;IAC/E,UAAU,EAAE,MAAM,CAAA;IAClB,oFAAoF;IACpF,YAAY,EAAE,MAAM,CAAA;IACpB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAA;CACjB;AAOD,6EAA6E;AAC7E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,qBAAqB,GAAG,eAAe,CAqDhF"}
@@ -16,11 +16,12 @@
16
16
  * HLD §3.14 — Harness Onboarding Matrix
17
17
  * @module
18
18
  */
19
- import { join, dirname } from 'node:path';
20
- import { readFile, writeFile, rename, mkdir } from 'node:fs/promises';
19
+ import { join } from 'node:path';
20
+ import { readFile } from 'node:fs/promises';
21
21
  import { anthropicBaseUrl, openaiBaseUrl, proxyHost } from '@intutic/shared-types';
22
22
  import { hashFile } from '../lib/hash.js';
23
23
  import { newIso } from '@intutic/id';
24
+ import { writeOwnedFile } from '@intutic/sync-daemon';
24
25
  const CONFIG_FILE = '.env.intutic';
25
26
  /** Dependency manifests scanned by default — same three langgraph.ts uses. */
26
27
  const DEFAULT_MANIFEST_FILES = ['pyproject.toml', 'requirements.txt', 'uv.lock'];
@@ -67,10 +68,7 @@ export function makeSdkGatedAdapter(spec) {
67
68
  `# See https://docs.intutic.ai/integrations/${spec.docsSlug}`,
68
69
  '',
69
70
  ].join('\n');
70
- await mkdir(dirname(filePath), { recursive: true });
71
- const tmpEnv = filePath + '.intutic-tmp';
72
- await writeFile(tmpEnv, envContent, 'utf-8');
73
- await rename(tmpEnv, filePath);
71
+ await writeOwnedFile(filePath, workspaceRoot, envContent);
74
72
  return filePath;
75
73
  },
76
74
  async readCurrentHash(workspaceRoot) {
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C,YAAY,EAAE;gBACxB,8CAA8C,IAAI,CAAC,QAAQ,EAAE;gBAC7D,EAAE;aACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAEZ,MAAM,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,UAAU,CAAC,CAAA;YAEzD,OAAO,QAAQ,CAAA;QACjB,CAAC;QAED,KAAK,CAAC,eAAe,CAAC,aAAqB;YACzC,IAAI,CAAC;gBACH,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAA;YACzD,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -12,8 +12,8 @@
12
12
  * tool calls at all; its choke point is the generated Python CODE STRING,
13
13
  * gated by `intutic_clawde.gate.adapters.smolagents.IntuticPythonExecutor`
14
14
  * (wraps any `PythonExecutor`) — verified live against smolagents==1.26.0 by
15
- * driving a real `CodeAgent.run()` end to end. See that module's doc (and
16
- * TD-377) for what governing code TEXT does and does not cover.
15
+ * driving a real `CodeAgent.run()` end to end. See that module's doc for
16
+ * what governing code TEXT does and does not cover.
17
17
  *
18
18
  * HLD §3.14 — Harness Onboarding Matrix
19
19
  * @module
@@ -12,8 +12,8 @@
12
12
  * tool calls at all; its choke point is the generated Python CODE STRING,
13
13
  * gated by `intutic_clawde.gate.adapters.smolagents.IntuticPythonExecutor`
14
14
  * (wraps any `PythonExecutor`) — verified live against smolagents==1.26.0 by
15
- * driving a real `CodeAgent.run()` end to end. See that module's doc (and
16
- * TD-377) for what governing code TEXT does and does not cover.
15
+ * driving a real `CodeAgent.run()` end to end. See that module's doc for
16
+ * what governing code TEXT does and does not cover.
17
17
  *
18
18
  * HLD §3.14 — Harness Onboarding Matrix
19
19
  * @module
@@ -27,7 +27,7 @@ export const smolagentsAdapter = makeSdkGatedAdapter({
27
27
  pipInstall: 'intutic-clawde[smolagents]',
28
28
  importLine: 'from intutic_clawde.gate.adapters.smolagents import IntuticPythonExecutor',
29
29
  usageSummary: 'IntuticPythonExecutor gates CodeAgent\'s generated code text before running it; ' +
30
- 'ToolCallingAgent tools are covered by @guard/guard_tools instead (see TD-377).',
30
+ 'ToolCallingAgent tools are covered by @guard/guard_tools instead.',
31
31
  docsSlug: 'smolagents',
32
32
  });
33
33
  //# sourceMappingURL=smolagents.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smolagents.js","sourceRoot":"","sources":["../../src/harness/smolagents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;IACnD,IAAI,EAAE,WAAW,CAAC,UAAU;IAC5B,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,UAAU,EAAE,4BAA4B;IACxC,UAAU,EAAE,2EAA2E;IACvF,YAAY,EACV,kFAAkF;QAClF,gFAAgF;IAClF,QAAQ,EAAE,YAAY;CACvB,CAAC,CAAA"}
1
+ {"version":3,"file":"smolagents.js","sourceRoot":"","sources":["../../src/harness/smolagents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;IACnD,IAAI,EAAE,WAAW,CAAC,UAAU;IAC5B,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,UAAU,EAAE,4BAA4B;IACxC,UAAU,EAAE,2EAA2E;IACvF,YAAY,EACV,kFAAkF;QAClF,mEAAmE;IACrE,QAAQ,EAAE,YAAY;CACvB,CAAC,CAAA"}
@@ -5,7 +5,6 @@
5
5
  * config to its native config file, and read the current file hash.
6
6
  *
7
7
  * HLD §3.14 — Harness Onboarding Matrix
8
- * LLD #8 — Sync Daemon / CLI
9
8
  * @module
10
9
  */
11
10
  import type { HarnessType, SyncSopEntry } from '@intutic/shared-types';
@@ -13,18 +12,33 @@ import type { HarnessType, SyncSopEntry } from '@intutic/shared-types';
13
12
  export interface IHarnessAdapter {
14
13
  /** Harness type identifier. */
15
14
  readonly type: HarnessType;
16
- /** Config file name relative to workspace root. */
15
+ /**
16
+ * The file drift is tracked on, relative to the workspace root: the
17
+ * harness's rules file when it has one in the workspace (`rulesFileOf` in
18
+ * `@intutic/shared-types`), else the workspace file the adapter writes; ''
19
+ * for none.
20
+ */
17
21
  readonly configFileName: string;
18
22
  /** Detect whether this harness is present in the workspace. */
19
23
  detect(workspaceRoot: string): Promise<boolean>;
20
24
  /**
21
- * Write governance config to the harness's native config file.
22
- * Returns the absolute path written, or null if skipped.
25
+ * Install what governs this harness whatever rule sets the workspace has:
26
+ * its tool-call gate, and the proxy routing that rides with it. The gate
27
+ * enforces the built-in protections, the destructive-command tier, group
28
+ * rules and holds, none of which need a rule set, so `intutic connect` runs
29
+ * this for every configured harness. Absent when the harness has no gate
30
+ * Intutic installs.
31
+ */
32
+ installGate?(workspaceRoot: string, proxyUrl: string): Promise<void>;
33
+ /**
34
+ * Write the rule sets into the file the harness reads as standing
35
+ * instructions — the one `HARNESS_RULES_FILES` names, and no other.
36
+ * `intutic connect` calls it only when a rule set targets the harness, or
37
+ * on a forced sync. Returns the absolute path written, or null if nothing
38
+ * was.
23
39
  */
24
40
  writeConfig(workspaceRoot: string, sops: SyncSopEntry[], proxyUrl: string): Promise<string | null>;
25
41
  /** Read SHA-256 hash of current config file content. Returns null if file doesn't exist. */
26
42
  readCurrentHash(workspaceRoot: string): Promise<string | null>;
27
43
  }
28
- /** Harness config file mapping for file-based harnesses. */
29
- export declare const HARNESS_CONFIG_FILES: Record<HarnessType, string>;
30
44
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/harness/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEtE,oDAAoD;AACpD,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,+DAA+D;IAC/D,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/C;;;OAGG;IACH,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAClG,4FAA4F;IAC5F,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CAC/D;AAED,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CA4F5D,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/harness/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEtE,oDAAoD;AACpD,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,+DAA+D;IAC/D,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC/C;;;;;;;OAOG;IACH,WAAW,CAAC,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACpE;;;;;;OAMG;IACH,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAClG,4FAA4F;IAC5F,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CAC/D"}
@@ -5,101 +5,7 @@
5
5
  * config to its native config file, and read the current file hash.
6
6
  *
7
7
  * HLD §3.14 — Harness Onboarding Matrix
8
- * LLD #8 — Sync Daemon / CLI
9
8
  * @module
10
9
  */
11
- /** Harness config file mapping for file-based harnesses. */
12
- export const HARNESS_CONFIG_FILES = {
13
- 'cursor': '.cursorrules',
14
- 'claude-code': 'CLAUDE.md',
15
- 'antigravity': '.gemini/settings.json',
16
- 'windsurf': '.windsurfrules',
17
- 'aider': '.aider.conf.yml',
18
- 'openhands': 'config.toml',
19
- 'codex': '.env.intutic',
20
- 'n8n': '', // Phase 2 — TD-037: API call, not file write
21
- 'openclaw': '.openclaw/openclaw.json',
22
- 'hermes': '.hermes/config.yaml',
23
- 'pi': '.pi/hooks.json',
24
- 'github-copilot': '.github/copilot-instructions.md',
25
- 'cline': '',
26
- 'roo-code': '',
27
- 'continue': '',
28
- 'claude-desktop': '',
29
- 'goose': '',
30
- 'open-webui': '',
31
- 'langgraph': '.env.intutic',
32
- // Muse Code reads AGENTS.md (falling back to CLAUDE.md) — see muse.ts.
33
- 'muse-code': 'AGENTS.md',
34
- // AGENTS.md is Grok Build's native rules file — the same cross-tool
35
- // convention Codex/Amp read. Delivered via the generic markdown formatter
36
- // (`buildMarkdownContent`/`formatMarkdown`) every `---`-separated rules
37
- // file in this codebase already shares (Cursor, Claude Code, Windsurf,
38
- // GitHub Copilot) — not a bespoke format.
39
- 'grok': 'AGENTS.md',
40
- // OpenCode reads AGENTS.md (CLAUDE.md fallback) — see opencode.ts. The gate
41
- // is the plugin `openCodeHooks.ts` generates, not this file.
42
- 'opencode': 'AGENTS.md',
43
- // dsh has no workspace-relative rules file in the research this phase could
44
- // verify — its config lives entirely under $DSH_HOME (profiles/*/cordis.patch.yml,
45
- // settings.yaml), not the project workspace. Empty, matching goose/cline/
46
- // continue/claude-desktop/open-webui's precedent for "no single canonical
47
- // file" harnesses; dsh.ts's own adapter resolves its real paths directly.
48
- 'dsh': '',
49
- // Xirp writes no config of its own — see xirp.ts's module doc. It
50
- // orchestrates other already-gated harnesses (Claude Code, Codex,
51
- // Antigravity/Gemini CLI), whose own adapters do the real writing.
52
- 'xirp': '',
53
- // Agentic Orchestrator writes no config of its own — see
54
- // agenticOrchestrator.ts's module doc. It orchestrates other CLI backends
55
- // (Claude Code, Codex, OpenCode), whose own adapters do the real writing.
56
- 'agentic-orchestrator': '',
57
- // Wave 1 SDK-gated frameworks — same rationale as langgraph above: no
58
- // on-disk hook/config file exists to gate tool calls, so each of these
59
- // writes .env.intutic (proxy base-URL vars + an SDK-gate pointer comment).
60
- 'langchain': '.env.intutic',
61
- 'crewai': '.env.intutic',
62
- 'autogen': '.env.intutic',
63
- 'ag2': '.env.intutic',
64
- 'google-adk': '.env.intutic',
65
- 'openai-agents': '.env.intutic',
66
- 'pydantic-ai': '.env.intutic',
67
- 'smolagents': '.env.intutic',
68
- // A4: AWS Strands Agents — same Python SDK-gated rationale as the Wave 1
69
- // family above (gate ships in intutic_clawde.gate.adapters.strands).
70
- 'strands': '.env.intutic',
71
- // TD-375: Microsoft Agent Framework — same Python SDK-gated rationale
72
- // (gate ships in intutic_clawde.gate.adapters.agent_framework).
73
- 'agent-framework': '.env.intutic',
74
- // T2: JS/TS SDK-gated frameworks — same rationale as the Wave 1 Python
75
- // family above, but the blocking gate ships in @intutic/gate
76
- // (packages/gate-js) rather than intutic-clawde.
77
- 'mastra': '.env.intutic',
78
- 'vercel-ai-sdk': '.env.intutic',
79
- // eve (Vercel, PREVIEW) — same JS/TS SDK-gated family; detection is a
80
- // compound `eve` dep + `agent/` directory check — see eve.ts.
81
- 'eve': '.env.intutic',
82
- // TrueForge (embedded-library mode only — see trueforge.ts's module doc
83
- // and the HarnessType.TRUEFORGE doc comment); same JS/TS SDK-gated family.
84
- 'trueforge': '.env.intutic',
85
- // A3: Vercel platform-agent runtimes — same @intutic/gate family. Note the
86
- // env vars are weaker still for ai-sdk-harness (tool execution is
87
- // server-side in Vercel Sandbox microVMs; see aiSdkHarness.ts's module doc
88
- // and the envPreamble override it carries).
89
- 'ai-sdk-harness': '.env.intutic',
90
- 'ai-sdk-workflow': '.env.intutic',
91
- // B2: AWS Bedrock AgentCore Runtime — hosts the customer's own framework
92
- // code unchanged; the actual tool-call gate belongs to whichever
93
- // already-supported framework adapter that code uses (Strands, LangGraph,
94
- // ...), same 'delegated'/no-file-of-its-own shape as xirp/
95
- // agentic-orchestrator above. See agentcore.ts's module doc.
96
- 'agentcore-runtime': '',
97
- // B3: TrueForge, standalone/hosted server (see the HarnessType.TRUEFORGE_SERVER
98
- // doc comment) — no CLI adapter exists for this row at all: it is an
99
- // operator-configured deployment, not a package.json dependency of
100
- // whatever repo `intutic init` runs against, so there is nothing for this
101
- // detector to find and no config file to write. Governed entirely by
102
- // services/trueforge-bridge instead (GateKind: 'bridge').
103
- 'trueforge-server': '',
104
- };
10
+ export {};
105
11
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/harness/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAqBH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,oBAAoB,GAAgC;IAC/D,QAAQ,EAAE,cAAc;IACxB,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,uBAAuB;IACtC,UAAU,EAAE,gBAAgB;IA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,EAAE,cAAc;IACxB,eAAe,EAAE,cAAc;IAC/B,sEAAsE;IACtE,8DAA8D;IAC9D,KAAK,EAAE,cAAc;IACrB,wEAAwE;IACxE,2EAA2E;IAC3E,WAAW,EAAE,cAAc;IAC3B,2EAA2E;IAC3E,kEAAkE;IAClE,2EAA2E;IAC3E,4CAA4C;IAC5C,gBAAgB,EAAE,cAAc;IAChC,iBAAiB,EAAE,cAAc;IACjC,yEAAyE;IACzE,iEAAiE;IACjE,0EAA0E;IAC1E,2DAA2D;IAC3D,6DAA6D;IAC7D,mBAAmB,EAAE,EAAE;IACvB,gFAAgF;IAChF,qEAAqE;IACrE,mEAAmE;IACnE,0EAA0E;IAC1E,qEAAqE;IACrE,0DAA0D;IAC1D,kBAAkB,EAAE,EAAE;CACvB,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/harness/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -1,10 +1,15 @@
1
1
  /**
2
2
  * windsurf.ts — Windsurf adapter (full implementation with hooks + TLS MITM proxy config).
3
3
  *
4
- * Writes .windsurfrules governance text and injects Cascade hook scripts
4
+ * Writes the rule sets to `.windsurf/rules/intutic-governance.md` with
5
+ * `trigger: always_on`, which Cascade includes in every message
6
+ * (https://docs.devin.ai/desktop/cascade/memories, where Windsurf's rules
7
+ * docs now live; `.windsurfrules`, which earlier versions overwrote, is the
8
+ * legacy single file, and the user's own copy of it comes back), and injects
9
+ * Cascade hook scripts
5
10
  * at user-level (~/.codeium/windsurf/hooks.json) and workspace-level
6
11
  * (.windsurf/hooks.json), merged with any hooks already there. Also merges
7
- * HTTP proxy settings into ~/.codeium/windsurf/settings.json, and switches
12
+ * HTTP proxy settings into Windsurf's user settings.json, and switches
8
13
  * the IDE HTTP proxy of every JetBrains IDE where the Windsurf plugin is set
9
14
  * up, so Windsurf's AI traffic goes through the Intutic TLS MITM proxy.
10
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"windsurf.d.ts","sourceRoot":"","sources":["../../src/harness/windsurf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAWjD,eAAO,MAAM,eAAe,EAAE,eAkC7B,CAAA"}
1
+ {"version":3,"file":"windsurf.d.ts","sourceRoot":"","sources":["../../src/harness/windsurf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AASjD,eAAO,MAAM,eAAe,EAAE,eA4B7B,CAAA"}