@sentropic/h2a-cli 0.75.0 → 0.78.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 (350) hide show
  1. package/dist/index.d.ts +1 -37
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -41
  4. package/dist/index.js.map +1 -1
  5. package/package.json +4 -15
  6. package/dist/bin.d.ts +0 -3
  7. package/dist/bin.d.ts.map +0 -1
  8. package/dist/bin.js +0 -83
  9. package/dist/bin.js.map +0 -1
  10. package/dist/cli-contract.d.ts +0 -62
  11. package/dist/cli-contract.d.ts.map +0 -1
  12. package/dist/cli-contract.js +0 -794
  13. package/dist/cli-contract.js.map +0 -1
  14. package/dist/cli.d.ts +0 -254
  15. package/dist/cli.d.ts.map +0 -1
  16. package/dist/cli.js +0 -4672
  17. package/dist/cli.js.map +0 -1
  18. package/dist/hosts/agy.d.ts +0 -14
  19. package/dist/hosts/agy.d.ts.map +0 -1
  20. package/dist/hosts/agy.js +0 -47
  21. package/dist/hosts/agy.js.map +0 -1
  22. package/dist/hosts/claude.d.ts +0 -12
  23. package/dist/hosts/claude.d.ts.map +0 -1
  24. package/dist/hosts/claude.js +0 -46
  25. package/dist/hosts/claude.js.map +0 -1
  26. package/dist/hosts/codex.d.ts +0 -65
  27. package/dist/hosts/codex.d.ts.map +0 -1
  28. package/dist/hosts/codex.js +0 -45
  29. package/dist/hosts/codex.js.map +0 -1
  30. package/dist/hosts/gemini.d.ts +0 -12
  31. package/dist/hosts/gemini.d.ts.map +0 -1
  32. package/dist/hosts/gemini.js +0 -46
  33. package/dist/hosts/gemini.js.map +0 -1
  34. package/dist/hosts/plugin.d.ts +0 -151
  35. package/dist/hosts/plugin.d.ts.map +0 -1
  36. package/dist/hosts/plugin.js +0 -188
  37. package/dist/hosts/plugin.js.map +0 -1
  38. package/dist/mcp.d.ts +0 -2
  39. package/dist/mcp.d.ts.map +0 -1
  40. package/dist/mcp.js +0 -32
  41. package/dist/mcp.js.map +0 -1
  42. package/dist/runtime/blockage/index.d.ts +0 -3
  43. package/dist/runtime/blockage/index.d.ts.map +0 -1
  44. package/dist/runtime/blockage/index.js +0 -3
  45. package/dist/runtime/blockage/index.js.map +0 -1
  46. package/dist/runtime/blockage/notifiers.d.ts +0 -52
  47. package/dist/runtime/blockage/notifiers.d.ts.map +0 -1
  48. package/dist/runtime/blockage/notifiers.js +0 -74
  49. package/dist/runtime/blockage/notifiers.js.map +0 -1
  50. package/dist/runtime/blockage/registry.d.ts +0 -30
  51. package/dist/runtime/blockage/registry.d.ts.map +0 -1
  52. package/dist/runtime/blockage/registry.js +0 -86
  53. package/dist/runtime/blockage/registry.js.map +0 -1
  54. package/dist/runtime/deploy/k8s-sidecar.d.ts +0 -92
  55. package/dist/runtime/deploy/k8s-sidecar.d.ts.map +0 -1
  56. package/dist/runtime/deploy/k8s-sidecar.js +0 -166
  57. package/dist/runtime/deploy/k8s-sidecar.js.map +0 -1
  58. package/dist/runtime/deploy/k8s-tenant.d.ts +0 -86
  59. package/dist/runtime/deploy/k8s-tenant.d.ts.map +0 -1
  60. package/dist/runtime/deploy/k8s-tenant.js +0 -255
  61. package/dist/runtime/deploy/k8s-tenant.js.map +0 -1
  62. package/dist/runtime/drive/inbox-wake.d.ts +0 -36
  63. package/dist/runtime/drive/inbox-wake.d.ts.map +0 -1
  64. package/dist/runtime/drive/inbox-wake.js +0 -50
  65. package/dist/runtime/drive/inbox-wake.js.map +0 -1
  66. package/dist/runtime/drive/index.d.ts +0 -173
  67. package/dist/runtime/drive/index.d.ts.map +0 -1
  68. package/dist/runtime/drive/index.js +0 -503
  69. package/dist/runtime/drive/index.js.map +0 -1
  70. package/dist/runtime/drumbeat/deciders.d.ts +0 -32
  71. package/dist/runtime/drumbeat/deciders.d.ts.map +0 -1
  72. package/dist/runtime/drumbeat/deciders.js +0 -65
  73. package/dist/runtime/drumbeat/deciders.js.map +0 -1
  74. package/dist/runtime/drumbeat/decisions.d.ts +0 -19
  75. package/dist/runtime/drumbeat/decisions.d.ts.map +0 -1
  76. package/dist/runtime/drumbeat/decisions.js +0 -34
  77. package/dist/runtime/drumbeat/decisions.js.map +0 -1
  78. package/dist/runtime/drumbeat/inbox-relance.d.ts +0 -29
  79. package/dist/runtime/drumbeat/inbox-relance.d.ts.map +0 -1
  80. package/dist/runtime/drumbeat/inbox-relance.js +0 -101
  81. package/dist/runtime/drumbeat/inbox-relance.js.map +0 -1
  82. package/dist/runtime/drumbeat/index.d.ts +0 -8
  83. package/dist/runtime/drumbeat/index.d.ts.map +0 -1
  84. package/dist/runtime/drumbeat/index.js +0 -8
  85. package/dist/runtime/drumbeat/index.js.map +0 -1
  86. package/dist/runtime/drumbeat/registry.d.ts +0 -60
  87. package/dist/runtime/drumbeat/registry.d.ts.map +0 -1
  88. package/dist/runtime/drumbeat/registry.js +0 -115
  89. package/dist/runtime/drumbeat/registry.js.map +0 -1
  90. package/dist/runtime/drumbeat/relaunchers.d.ts +0 -111
  91. package/dist/runtime/drumbeat/relaunchers.d.ts.map +0 -1
  92. package/dist/runtime/drumbeat/relaunchers.js +0 -260
  93. package/dist/runtime/drumbeat/relaunchers.js.map +0 -1
  94. package/dist/runtime/drumbeat/scan.d.ts +0 -36
  95. package/dist/runtime/drumbeat/scan.d.ts.map +0 -1
  96. package/dist/runtime/drumbeat/scan.js +0 -41
  97. package/dist/runtime/drumbeat/scan.js.map +0 -1
  98. package/dist/runtime/drumbeat/watch.d.ts +0 -74
  99. package/dist/runtime/drumbeat/watch.d.ts.map +0 -1
  100. package/dist/runtime/drumbeat/watch.js +0 -216
  101. package/dist/runtime/drumbeat/watch.js.map +0 -1
  102. package/dist/runtime/escalation/index.d.ts +0 -2
  103. package/dist/runtime/escalation/index.d.ts.map +0 -1
  104. package/dist/runtime/escalation/index.js +0 -2
  105. package/dist/runtime/escalation/index.js.map +0 -1
  106. package/dist/runtime/escalation/registry.d.ts +0 -44
  107. package/dist/runtime/escalation/registry.d.ts.map +0 -1
  108. package/dist/runtime/escalation/registry.js +0 -79
  109. package/dist/runtime/escalation/registry.js.map +0 -1
  110. package/dist/runtime/governance/claims.d.ts +0 -43
  111. package/dist/runtime/governance/claims.d.ts.map +0 -1
  112. package/dist/runtime/governance/claims.js +0 -93
  113. package/dist/runtime/governance/claims.js.map +0 -1
  114. package/dist/runtime/governance/conductor.d.ts +0 -79
  115. package/dist/runtime/governance/conductor.d.ts.map +0 -1
  116. package/dist/runtime/governance/conductor.js +0 -106
  117. package/dist/runtime/governance/conductor.js.map +0 -1
  118. package/dist/runtime/governance/index.d.ts +0 -5
  119. package/dist/runtime/governance/index.d.ts.map +0 -1
  120. package/dist/runtime/governance/index.js +0 -5
  121. package/dist/runtime/governance/index.js.map +0 -1
  122. package/dist/runtime/governance/launch-check.d.ts +0 -93
  123. package/dist/runtime/governance/launch-check.d.ts.map +0 -1
  124. package/dist/runtime/governance/launch-check.js +0 -113
  125. package/dist/runtime/governance/launch-check.js.map +0 -1
  126. package/dist/runtime/governance/spawns.d.ts +0 -50
  127. package/dist/runtime/governance/spawns.d.ts.map +0 -1
  128. package/dist/runtime/governance/spawns.js +0 -91
  129. package/dist/runtime/governance/spawns.js.map +0 -1
  130. package/dist/runtime/identity/bindings.d.ts +0 -84
  131. package/dist/runtime/identity/bindings.d.ts.map +0 -1
  132. package/dist/runtime/identity/bindings.js +0 -112
  133. package/dist/runtime/identity/bindings.js.map +0 -1
  134. package/dist/runtime/identity/index.d.ts +0 -11
  135. package/dist/runtime/identity/index.d.ts.map +0 -1
  136. package/dist/runtime/identity/index.js +0 -6
  137. package/dist/runtime/identity/index.js.map +0 -1
  138. package/dist/runtime/identity/live.d.ts +0 -26
  139. package/dist/runtime/identity/live.d.ts.map +0 -1
  140. package/dist/runtime/identity/live.js +0 -232
  141. package/dist/runtime/identity/live.js.map +0 -1
  142. package/dist/runtime/identity/migration.d.ts +0 -55
  143. package/dist/runtime/identity/migration.d.ts.map +0 -1
  144. package/dist/runtime/identity/migration.js +0 -100
  145. package/dist/runtime/identity/migration.js.map +0 -1
  146. package/dist/runtime/identity/readers.d.ts +0 -42
  147. package/dist/runtime/identity/readers.d.ts.map +0 -1
  148. package/dist/runtime/identity/readers.js +0 -248
  149. package/dist/runtime/identity/readers.js.map +0 -1
  150. package/dist/runtime/identity/resolver.d.ts +0 -50
  151. package/dist/runtime/identity/resolver.d.ts.map +0 -1
  152. package/dist/runtime/identity/resolver.js +0 -61
  153. package/dist/runtime/identity/resolver.js.map +0 -1
  154. package/dist/runtime/identity/workspace-id.d.ts +0 -43
  155. package/dist/runtime/identity/workspace-id.d.ts.map +0 -1
  156. package/dist/runtime/identity/workspace-id.js +0 -138
  157. package/dist/runtime/identity/workspace-id.js.map +0 -1
  158. package/dist/runtime/local-files/index.d.ts +0 -8
  159. package/dist/runtime/local-files/index.d.ts.map +0 -1
  160. package/dist/runtime/local-files/index.js +0 -8
  161. package/dist/runtime/local-files/index.js.map +0 -1
  162. package/dist/runtime/local-files/lease.d.ts +0 -62
  163. package/dist/runtime/local-files/lease.d.ts.map +0 -1
  164. package/dist/runtime/local-files/lease.js +0 -249
  165. package/dist/runtime/local-files/lease.js.map +0 -1
  166. package/dist/runtime/local-files/locks.d.ts +0 -43
  167. package/dist/runtime/local-files/locks.d.ts.map +0 -1
  168. package/dist/runtime/local-files/locks.js +0 -197
  169. package/dist/runtime/local-files/locks.js.map +0 -1
  170. package/dist/runtime/local-files/migrate.d.ts +0 -31
  171. package/dist/runtime/local-files/migrate.d.ts.map +0 -1
  172. package/dist/runtime/local-files/migrate.js +0 -104
  173. package/dist/runtime/local-files/migrate.js.map +0 -1
  174. package/dist/runtime/local-files/paths.d.ts +0 -146
  175. package/dist/runtime/local-files/paths.d.ts.map +0 -1
  176. package/dist/runtime/local-files/paths.js +0 -233
  177. package/dist/runtime/local-files/paths.js.map +0 -1
  178. package/dist/runtime/local-files/presence.d.ts +0 -80
  179. package/dist/runtime/local-files/presence.d.ts.map +0 -1
  180. package/dist/runtime/local-files/presence.js +0 -250
  181. package/dist/runtime/local-files/presence.js.map +0 -1
  182. package/dist/runtime/local-files/schema.d.ts +0 -47
  183. package/dist/runtime/local-files/schema.d.ts.map +0 -1
  184. package/dist/runtime/local-files/schema.js +0 -77
  185. package/dist/runtime/local-files/schema.js.map +0 -1
  186. package/dist/runtime/local-files/store.d.ts +0 -132
  187. package/dist/runtime/local-files/store.d.ts.map +0 -1
  188. package/dist/runtime/local-files/store.js +0 -997
  189. package/dist/runtime/local-files/store.js.map +0 -1
  190. package/dist/runtime/loop/index.d.ts +0 -73
  191. package/dist/runtime/loop/index.d.ts.map +0 -1
  192. package/dist/runtime/loop/index.js +0 -107
  193. package/dist/runtime/loop/index.js.map +0 -1
  194. package/dist/runtime/mcp/handlers.d.ts +0 -196
  195. package/dist/runtime/mcp/handlers.d.ts.map +0 -1
  196. package/dist/runtime/mcp/handlers.js +0 -1025
  197. package/dist/runtime/mcp/handlers.js.map +0 -1
  198. package/dist/runtime/mcp/index.d.ts +0 -7
  199. package/dist/runtime/mcp/index.d.ts.map +0 -1
  200. package/dist/runtime/mcp/index.js +0 -7
  201. package/dist/runtime/mcp/index.js.map +0 -1
  202. package/dist/runtime/mcp/notifications.d.ts +0 -47
  203. package/dist/runtime/mcp/notifications.d.ts.map +0 -1
  204. package/dist/runtime/mcp/notifications.js +0 -204
  205. package/dist/runtime/mcp/notifications.js.map +0 -1
  206. package/dist/runtime/mcp/server.d.ts +0 -45
  207. package/dist/runtime/mcp/server.d.ts.map +0 -1
  208. package/dist/runtime/mcp/server.js +0 -94
  209. package/dist/runtime/mcp/server.js.map +0 -1
  210. package/dist/runtime/mcp/sessions.d.ts +0 -68
  211. package/dist/runtime/mcp/sessions.d.ts.map +0 -1
  212. package/dist/runtime/mcp/sessions.js +0 -152
  213. package/dist/runtime/mcp/sessions.js.map +0 -1
  214. package/dist/runtime/mcp/stdio.d.ts +0 -72
  215. package/dist/runtime/mcp/stdio.d.ts.map +0 -1
  216. package/dist/runtime/mcp/stdio.js +0 -274
  217. package/dist/runtime/mcp/stdio.js.map +0 -1
  218. package/dist/runtime/mcp/tools.d.ts +0 -19
  219. package/dist/runtime/mcp/tools.d.ts.map +0 -1
  220. package/dist/runtime/mcp/tools.js +0 -525
  221. package/dist/runtime/mcp/tools.js.map +0 -1
  222. package/dist/runtime/mcp-http/app.d.ts +0 -33
  223. package/dist/runtime/mcp-http/app.d.ts.map +0 -1
  224. package/dist/runtime/mcp-http/app.js +0 -162
  225. package/dist/runtime/mcp-http/app.js.map +0 -1
  226. package/dist/runtime/mcp-http/hosted-mcp-server.d.ts +0 -14
  227. package/dist/runtime/mcp-http/hosted-mcp-server.d.ts.map +0 -1
  228. package/dist/runtime/mcp-http/hosted-mcp-server.js +0 -38
  229. package/dist/runtime/mcp-http/hosted-mcp-server.js.map +0 -1
  230. package/dist/runtime/mcp-http/index.d.ts +0 -18
  231. package/dist/runtime/mcp-http/index.d.ts.map +0 -1
  232. package/dist/runtime/mcp-http/index.js +0 -18
  233. package/dist/runtime/mcp-http/index.js.map +0 -1
  234. package/dist/runtime/mcp-http/main.d.ts +0 -2
  235. package/dist/runtime/mcp-http/main.d.ts.map +0 -1
  236. package/dist/runtime/mcp-http/main.js +0 -14
  237. package/dist/runtime/mcp-http/main.js.map +0 -1
  238. package/dist/runtime/mcp-http/oauth/broker-login.d.ts +0 -50
  239. package/dist/runtime/mcp-http/oauth/broker-login.d.ts.map +0 -1
  240. package/dist/runtime/mcp-http/oauth/broker-login.js +0 -41
  241. package/dist/runtime/mcp-http/oauth/broker-login.js.map +0 -1
  242. package/dist/runtime/mcp-http/oauth/broker-routes.d.ts +0 -45
  243. package/dist/runtime/mcp-http/oauth/broker-routes.d.ts.map +0 -1
  244. package/dist/runtime/mcp-http/oauth/broker-routes.js +0 -54
  245. package/dist/runtime/mcp-http/oauth/broker-routes.js.map +0 -1
  246. package/dist/runtime/mcp-http/oauth/config.d.ts +0 -49
  247. package/dist/runtime/mcp-http/oauth/config.d.ts.map +0 -1
  248. package/dist/runtime/mcp-http/oauth/config.js +0 -69
  249. package/dist/runtime/mcp-http/oauth/config.js.map +0 -1
  250. package/dist/runtime/mcp-http/oauth/crypto.d.ts +0 -14
  251. package/dist/runtime/mcp-http/oauth/crypto.d.ts.map +0 -1
  252. package/dist/runtime/mcp-http/oauth/crypto.js +0 -29
  253. package/dist/runtime/mcp-http/oauth/crypto.js.map +0 -1
  254. package/dist/runtime/mcp-http/oauth/file-store.d.ts +0 -48
  255. package/dist/runtime/mcp-http/oauth/file-store.d.ts.map +0 -1
  256. package/dist/runtime/mcp-http/oauth/file-store.js +0 -101
  257. package/dist/runtime/mcp-http/oauth/file-store.js.map +0 -1
  258. package/dist/runtime/mcp-http/oauth/hono-oauth-router.d.ts +0 -5
  259. package/dist/runtime/mcp-http/oauth/hono-oauth-router.d.ts.map +0 -1
  260. package/dist/runtime/mcp-http/oauth/hono-oauth-router.js +0 -92
  261. package/dist/runtime/mcp-http/oauth/hono-oauth-router.js.map +0 -1
  262. package/dist/runtime/mcp-http/oauth/oidc-rp.d.ts +0 -56
  263. package/dist/runtime/mcp-http/oauth/oidc-rp.d.ts.map +0 -1
  264. package/dist/runtime/mcp-http/oauth/oidc-rp.js +0 -63
  265. package/dist/runtime/mcp-http/oauth/oidc-rp.js.map +0 -1
  266. package/dist/runtime/mcp-http/oauth/redirect-uri.d.ts +0 -11
  267. package/dist/runtime/mcp-http/oauth/redirect-uri.d.ts.map +0 -1
  268. package/dist/runtime/mcp-http/oauth/redirect-uri.js +0 -29
  269. package/dist/runtime/mcp-http/oauth/redirect-uri.js.map +0 -1
  270. package/dist/runtime/mcp-http/oauth/single-tenant-provider.d.ts +0 -70
  271. package/dist/runtime/mcp-http/oauth/single-tenant-provider.d.ts.map +0 -1
  272. package/dist/runtime/mcp-http/oauth/single-tenant-provider.js +0 -247
  273. package/dist/runtime/mcp-http/oauth/single-tenant-provider.js.map +0 -1
  274. package/dist/runtime/mcp-http/oauth/tenancy.d.ts +0 -3
  275. package/dist/runtime/mcp-http/oauth/tenancy.d.ts.map +0 -1
  276. package/dist/runtime/mcp-http/oauth/tenancy.js +0 -18
  277. package/dist/runtime/mcp-http/oauth/tenancy.js.map +0 -1
  278. package/dist/runtime/mcp-http/readonly-allowlist.d.ts +0 -24
  279. package/dist/runtime/mcp-http/readonly-allowlist.d.ts.map +0 -1
  280. package/dist/runtime/mcp-http/readonly-allowlist.js +0 -43
  281. package/dist/runtime/mcp-http/readonly-allowlist.js.map +0 -1
  282. package/dist/runtime/mcp-http/serve.d.ts +0 -39
  283. package/dist/runtime/mcp-http/serve.d.ts.map +0 -1
  284. package/dist/runtime/mcp-http/serve.js +0 -100
  285. package/dist/runtime/mcp-http/serve.js.map +0 -1
  286. package/dist/runtime/mirror/accept.d.ts +0 -57
  287. package/dist/runtime/mirror/accept.d.ts.map +0 -1
  288. package/dist/runtime/mirror/accept.js +0 -70
  289. package/dist/runtime/mirror/accept.js.map +0 -1
  290. package/dist/runtime/mirror/build.d.ts +0 -44
  291. package/dist/runtime/mirror/build.d.ts.map +0 -1
  292. package/dist/runtime/mirror/build.js +0 -37
  293. package/dist/runtime/mirror/build.js.map +0 -1
  294. package/dist/runtime/mirror/index.d.ts +0 -9
  295. package/dist/runtime/mirror/index.d.ts.map +0 -1
  296. package/dist/runtime/mirror/index.js +0 -9
  297. package/dist/runtime/mirror/index.js.map +0 -1
  298. package/dist/runtime/mirror/serve.d.ts +0 -21
  299. package/dist/runtime/mirror/serve.d.ts.map +0 -1
  300. package/dist/runtime/mirror/serve.js +0 -141
  301. package/dist/runtime/mirror/serve.js.map +0 -1
  302. package/dist/runtime/nhi.d.ts +0 -15
  303. package/dist/runtime/nhi.d.ts.map +0 -1
  304. package/dist/runtime/nhi.js +0 -26
  305. package/dist/runtime/nhi.js.map +0 -1
  306. package/dist/runtime/remote/accept.d.ts +0 -50
  307. package/dist/runtime/remote/accept.d.ts.map +0 -1
  308. package/dist/runtime/remote/accept.js +0 -54
  309. package/dist/runtime/remote/accept.js.map +0 -1
  310. package/dist/runtime/remote/client.d.ts +0 -27
  311. package/dist/runtime/remote/client.d.ts.map +0 -1
  312. package/dist/runtime/remote/client.js +0 -34
  313. package/dist/runtime/remote/client.js.map +0 -1
  314. package/dist/runtime/remote/index.d.ts +0 -5
  315. package/dist/runtime/remote/index.d.ts.map +0 -1
  316. package/dist/runtime/remote/index.js +0 -5
  317. package/dist/runtime/remote/index.js.map +0 -1
  318. package/dist/runtime/remote/serve.d.ts +0 -27
  319. package/dist/runtime/remote/serve.d.ts.map +0 -1
  320. package/dist/runtime/remote/serve.js +0 -26
  321. package/dist/runtime/remote/serve.js.map +0 -1
  322. package/dist/runtime/remote/server.d.ts +0 -36
  323. package/dist/runtime/remote/server.d.ts.map +0 -1
  324. package/dist/runtime/remote/server.js +0 -100
  325. package/dist/runtime/remote/server.js.map +0 -1
  326. package/dist/runtime/sysml/client.d.ts +0 -44
  327. package/dist/runtime/sysml/client.d.ts.map +0 -1
  328. package/dist/runtime/sysml/client.js +0 -52
  329. package/dist/runtime/sysml/client.js.map +0 -1
  330. package/dist/runtime/sysml/disclosure.d.ts +0 -23
  331. package/dist/runtime/sysml/disclosure.d.ts.map +0 -1
  332. package/dist/runtime/sysml/disclosure.js +0 -53
  333. package/dist/runtime/sysml/disclosure.js.map +0 -1
  334. package/dist/runtime/sysml/index.d.ts +0 -4
  335. package/dist/runtime/sysml/index.d.ts.map +0 -1
  336. package/dist/runtime/sysml/index.js +0 -4
  337. package/dist/runtime/sysml/index.js.map +0 -1
  338. package/dist/runtime/sysml/verify.d.ts +0 -32
  339. package/dist/runtime/sysml/verify.d.ts.map +0 -1
  340. package/dist/runtime/sysml/verify.js +0 -67
  341. package/dist/runtime/sysml/verify.js.map +0 -1
  342. package/dist/runtime/upgrade/index.d.ts +0 -96
  343. package/dist/runtime/upgrade/index.d.ts.map +0 -1
  344. package/dist/runtime/upgrade/index.js +0 -185
  345. package/dist/runtime/upgrade/index.js.map +0 -1
  346. package/dist/runtime/version/agent-version.d.ts +0 -15
  347. package/dist/runtime/version/agent-version.d.ts.map +0 -1
  348. package/dist/runtime/version/agent-version.js +0 -53
  349. package/dist/runtime/version/agent-version.js.map +0 -1
  350. package/skills/h2a/SKILL.md +0 -345
@@ -1,525 +0,0 @@
1
- import { H2A_CLI_MCP_TOOL_NAMES } from "../../mcp.js";
2
- /**
3
- * Canonical tool descriptors for the in-process MCP server. Schemas are
4
- * intentionally permissive — wire-level validation lives in the store /
5
- * @sentropic/h2a invariants, not in the MCP shim.
6
- */
7
- export const H2A_CLI_MCP_TOOL_DESCRIPTORS = [
8
- {
9
- name: "h2a_register_instance",
10
- description: "Register an h2a instance (PRINCIPAL / CONDUCTOR / AGENT / ...) in the local registry.",
11
- inputSchema: {
12
- type: "object",
13
- properties: {
14
- registration: {
15
- type: "object",
16
- description: "Full H2AActorRegistration record."
17
- }
18
- },
19
- required: ["registration"]
20
- }
21
- },
22
- {
23
- name: "h2a_discover_instances",
24
- description: "List instances from the registry, optionally filtered by role and/or scope.",
25
- inputSchema: {
26
- type: "object",
27
- properties: {
28
- role: { type: "string" },
29
- scope: { type: "string" }
30
- }
31
- }
32
- },
33
- {
34
- name: "h2a_open_negotiation",
35
- description: "Open a new negotiation. The record is persisted under negotiations/<id>/state.json.",
36
- inputSchema: {
37
- type: "object",
38
- properties: {
39
- record: {
40
- type: "object",
41
- description: "Full H2ANegotiationRecord: { id, scope, parties, subject, status, requiredSigners, ... }."
42
- }
43
- },
44
- required: ["record"]
45
- }
46
- },
47
- {
48
- name: "h2a_offer",
49
- description: "Submit an initial offer (journal entry, type=propose) bearing the current artifact.",
50
- inputSchema: {
51
- type: "object",
52
- properties: {
53
- negotiationId: { type: "string" },
54
- instance: {
55
- type: "string",
56
- description: "Conductor instance id producing the offer."
57
- },
58
- artifact: {
59
- description: "Arbitrary JSON-serializable artifact to propose."
60
- },
61
- eventId: {
62
- type: "string",
63
- description: "Optional deterministic event id; generated if absent."
64
- }
65
- },
66
- required: ["negotiationId", "instance", "artifact"]
67
- }
68
- },
69
- {
70
- name: "h2a_counteroffer",
71
- description: "Submit a counter-offer (journal entry, type=counter) bearing a revised artifact.",
72
- inputSchema: {
73
- type: "object",
74
- properties: {
75
- negotiationId: { type: "string" },
76
- instance: {
77
- type: "string",
78
- description: "Conductor instance id producing the counter-offer."
79
- },
80
- artifact: {
81
- description: "Arbitrary JSON-serializable artifact to counter with."
82
- },
83
- eventId: {
84
- type: "string",
85
- description: "Optional deterministic event id; generated if absent."
86
- }
87
- },
88
- required: ["negotiationId", "instance", "artifact"]
89
- }
90
- },
91
- {
92
- name: "h2a_sign",
93
- description: "Sign the canonical {artifactHash} of an artifact with an ed25519 PEM-encoded private key. The signature is appended as a journal event with body.kind='signature'.",
94
- inputSchema: {
95
- type: "object",
96
- properties: {
97
- negotiationId: { type: "string" },
98
- instance: { type: "string" },
99
- artifact: {
100
- description: "JSON-serializable artifact whose canonical hash is signed."
101
- },
102
- privateKeyPem: {
103
- type: "string",
104
- description: "ed25519 PKCS#8 PEM-encoded private key contents (NOT a file path)."
105
- },
106
- eventId: { type: "string" }
107
- },
108
- required: ["negotiationId", "instance", "artifact", "privateKeyPem"]
109
- }
110
- },
111
- {
112
- name: "h2a_stabilize",
113
- description: "Stabilize a negotiation once the registered signers' ed25519 signatures form a quorum on a single artifactHash. Returns the stabilized record and the winning hash.",
114
- inputSchema: {
115
- type: "object",
116
- properties: {
117
- negotiationId: { type: "string" },
118
- eventId: {
119
- type: "string",
120
- description: "Optional deterministic id for the final 'stabilized' event."
121
- }
122
- },
123
- required: ["negotiationId"]
124
- }
125
- },
126
- {
127
- name: "h2a_attest_comprehension",
128
- description: "Emit a signed, non-binding comprehension-attestation for a dossier hash. When negotiationId is provided, appends an event with no artifactKind.",
129
- inputSchema: {
130
- type: "object",
131
- properties: {
132
- negotiationId: { type: "string" },
133
- instance: { type: "string" },
134
- dossier: {
135
- description: "JSON-serializable dossier. The tool computes its canonical sha256 hash."
136
- },
137
- dossierHash: { type: "string", description: "Precomputed sha256:<hex> dossier hash." },
138
- privateKeyPem: {
139
- type: "string",
140
- description: "ed25519 PKCS#8 PEM-encoded private key contents (NOT a file path)."
141
- },
142
- role: { type: "string", description: "Actor role; defaults to the instance's first registered role." },
143
- scope: { type: "string", description: "Actor scope; defaults to the instance's first registered scope or negotiation scope." },
144
- eventId: { type: "string" },
145
- at: { type: "string" },
146
- causationId: { type: "string" },
147
- correlationId: { type: "string" }
148
- },
149
- required: ["instance", "privateKeyPem"]
150
- }
151
- },
152
- {
153
- name: "h2a_declare_conflit_interet",
154
- description: "Append a declaration-interet journal event for an instance in a negotiation.",
155
- inputSchema: {
156
- type: "object",
157
- properties: {
158
- negotiationId: { type: "string" },
159
- instance: { type: "string" },
160
- interets: {
161
- type: "array",
162
- items: { type: "string" }
163
- },
164
- bindings: {
165
- type: "array",
166
- items: { type: "string" }
167
- },
168
- masqueImpactCollectif: { type: "boolean" },
169
- eventId: { type: "string" },
170
- at: { type: "string" }
171
- },
172
- required: ["negotiationId", "instance", "interets"]
173
- }
174
- },
175
- {
176
- name: "h2a_conflict_posture",
177
- description: "Derive postureConflit for the negotiation signers and declared subjects.",
178
- inputSchema: {
179
- type: "object",
180
- properties: {
181
- negotiationId: { type: "string" }
182
- },
183
- required: ["negotiationId"]
184
- }
185
- },
186
- {
187
- name: "h2a_inbox",
188
- description: "Inbox dispatch — read | put | pop envelopes for a given instance.",
189
- inputSchema: {
190
- type: "object",
191
- properties: {
192
- action: { type: "string", enum: ["read", "put", "pop"] },
193
- instance: { type: "string" },
194
- envelope: { type: "object" },
195
- envelopeId: { type: "string" }
196
- },
197
- required: ["action", "instance"]
198
- }
199
- },
200
- {
201
- name: "h2a_append_journal",
202
- description: "Append a journal event to a negotiation's chained journal.jsonl.",
203
- inputSchema: {
204
- type: "object",
205
- properties: {
206
- negotiationId: { type: "string" },
207
- payload: { type: "object" }
208
- },
209
- required: ["negotiationId", "payload"]
210
- }
211
- },
212
- {
213
- name: "h2a_escalate",
214
- description: "Escalate a negotiation to a higher control surface. Appends a journal event with type=escalate carrying { kind: 'escalation', channel, payload }.",
215
- inputSchema: {
216
- type: "object",
217
- properties: {
218
- negotiationId: { type: "string" },
219
- instance: {
220
- type: "string",
221
- description: "Instance performing the escalation (acts as MANDATAIRE)."
222
- },
223
- channel: {
224
- type: "string",
225
- enum: ["advise", "decide", "alert"]
226
- },
227
- payload: {
228
- description: "Arbitrary JSON-serializable escalation payload."
229
- }
230
- },
231
- required: ["negotiationId", "instance", "channel"]
232
- }
233
- },
234
- {
235
- name: "h2a_session_open",
236
- description: "Open a live session for an instance (DEC-050/051). Writes a presence file under <root>/.h2a/presence/<sessionId>.json and returns the session plus the currently-fresh peers. The session subscribes by default to all canonical notification topics.",
237
- inputSchema: {
238
- type: "object",
239
- properties: {
240
- instance: {
241
- type: "string",
242
- description: "Identity of the live attachment (e.g. 'claude:proj-1')."
243
- },
244
- host: {
245
- type: "string",
246
- description: "Optional host CLI hint ('claude', 'codex', 'gemini', ...)."
247
- },
248
- pid: {
249
- type: "number",
250
- description: "Optional PID of the holding process; defaults to the mcp-serve PID."
251
- },
252
- interests: {
253
- type: "object",
254
- description: "Scopes / negotiations the session wants to observe.",
255
- properties: {
256
- scopes: { type: "array", items: { type: "string" } },
257
- negotiations: { type: "array", items: { type: "string" } }
258
- }
259
- },
260
- subscribedTopics: {
261
- type: "array",
262
- items: { type: "string" },
263
- description: "Subset of canonical notification topics to subscribe to. Defaults to all four."
264
- },
265
- sessionId: {
266
- type: "string",
267
- description: "Optional explicit session id (UUID-like). Generated if absent."
268
- }
269
- },
270
- required: ["instance"]
271
- }
272
- },
273
- {
274
- name: "h2a_session_close",
275
- description: "Close a previously-opened session (DEC-051). Stops the heartbeat, marks the final state, and deletes the presence file for the 'closed'/'expired' terminal states.",
276
- inputSchema: {
277
- type: "object",
278
- properties: {
279
- sessionId: { type: "string" },
280
- state: {
281
- type: "string",
282
- enum: ["closed", "draining", "expired"],
283
- description: "Final state to record. Defaults to 'closed'."
284
- }
285
- },
286
- required: ["sessionId"]
287
- }
288
- },
289
- {
290
- name: "h2a_discover_sessions",
291
- description: "List currently-live peer sessions (DEC-051). Reads presence files under <root>/.h2a/presence/ and filters by freshness (default expiry 90s). Optional scope/instance/name filters.",
292
- inputSchema: {
293
- type: "object",
294
- properties: {
295
- scope: { type: "string" },
296
- instance: { type: "string" },
297
- name: {
298
- type: "string",
299
- description: "Case-insensitive substring match on session.name (display name). Use to find a peer by friendly name when you don't know the full instance id."
300
- }
301
- }
302
- }
303
- },
304
- {
305
- name: "h2a_nhi_report",
306
- description: "Derive a Non-Human-Identity posture (OWASP NHI Top 10 / NIST CSF) from the registry (DEC-087): per-risk findings (NHI1 offboarding, NHI4 auth, NHI5 over-privilege, NHI7 long-lived keys, NHI9 reuse) plus a summary. Read-only.",
307
- inputSchema: {
308
- type: "object",
309
- properties: {
310
- longLivedKeyMaxDays: {
311
- type: "number",
312
- description: "Keys older than this many days are flagged long-lived (NHI7). Default 90."
313
- }
314
- }
315
- }
316
- },
317
- {
318
- name: "h2a_nhi_inventory",
319
- description: "Per-identity inventory of the NHI estate (DEC-090): each instance with its active keys (fingerprint, age, long-lived flag, reuse), subagents (status, capability bound) and offboard state, plus estate totals. Read-only.",
320
- inputSchema: {
321
- type: "object",
322
- properties: {
323
- longLivedKeyMaxDays: {
324
- type: "number",
325
- description: "Keys older than this many days are flagged long-lived. Default 90."
326
- }
327
- }
328
- }
329
- },
330
- {
331
- name: "h2a_nhi_attest",
332
- description: "Emit a signed attestation of the current NHI posture (DEC-087): an ed25519-signed `event` envelope whose body carries the posture report. Actor role/scope default to the instance's registration.",
333
- inputSchema: {
334
- type: "object",
335
- properties: {
336
- instance: { type: "string" },
337
- privateKeyPem: {
338
- type: "string",
339
- description: "ed25519 PKCS#8 PEM-encoded private key contents (NOT a file path)."
340
- },
341
- role: { type: "string", description: "Actor role; defaults to the instance's first registered role." },
342
- scope: { type: "string", description: "Actor scope; defaults to the instance's first registered scope." },
343
- longLivedKeyMaxDays: { type: "number" }
344
- },
345
- required: ["instance", "privateKeyPem"]
346
- }
347
- },
348
- {
349
- name: "h2a_nhi_offboard",
350
- description: "Coordinated decommission of an NHI (DEC-089): revoke every active key and every active subagent of the instance, then append an offboard tombstone. Idempotent. Returns the tombstone.",
351
- inputSchema: {
352
- type: "object",
353
- properties: {
354
- instance: { type: "string" },
355
- reason: { type: "string" }
356
- },
357
- required: ["instance"]
358
- }
359
- },
360
- {
361
- name: "h2a_nhi_export",
362
- description: "Export an instance's active public keys as a SPIFFE-trust-bundle / JWKS-shaped object (NHI P3 interop, DEC-094). Trust-anchor material in a bundle shape; live SPIRE integration stays in an external connector.",
363
- inputSchema: {
364
- type: "object",
365
- properties: {
366
- instance: { type: "string" },
367
- trustDomain: { type: "string", description: "SPIFFE trust domain, e.g. example.org" }
368
- },
369
- required: ["instance", "trustDomain"]
370
- }
371
- },
372
- {
373
- name: "h2a_blockage_raise",
374
- description: "Raise a blockage (DEC-092, EVO-3) so peers in scope are notified (peer.blocked push) — distinct from the drumbeat stall and from escalation. Durable.",
375
- inputSchema: {
376
- type: "object",
377
- properties: {
378
- instance: { type: "string" },
379
- reason: { type: "string" },
380
- scope: { type: "string" },
381
- needs: { type: "string", description: "What would unblock it (helps a peer act)." }
382
- },
383
- required: ["instance", "reason"]
384
- }
385
- },
386
- {
387
- name: "h2a_blockage_list",
388
- description: "List recorded blockages (DEC-092), optionally filtered by scope or active-only.",
389
- inputSchema: {
390
- type: "object",
391
- properties: {
392
- scope: { type: "string" },
393
- active: { type: "boolean", description: "Only unresolved blockages." }
394
- }
395
- }
396
- },
397
- {
398
- name: "h2a_blockage_resolve",
399
- description: "Resolve a blockage (DEC-092, idempotent); the dispatcher then pushes peer.unblocked.",
400
- inputSchema: {
401
- type: "object",
402
- properties: {
403
- instance: { type: "string" },
404
- by: { type: "string" }
405
- },
406
- required: ["instance"]
407
- }
408
- },
409
- {
410
- name: "h2a_conductor",
411
- description: "Resolve the live conductor/owner of a workspace (WP-G1, read-only). conductor = the earliest active-claim live agent (WP-G1b), or the live agent registered with role CONDUCTOR (WP-G1a), or null. candidates = all in-workspace live agents. Accepts workspaceId (ws:…) or workspacePath (filesystem path).",
412
- inputSchema: {
413
- type: "object",
414
- properties: {
415
- workspaceId: {
416
- type: "string",
417
- description: "Workspace id in ws:<uuid> form. Mutually exclusive with workspacePath."
418
- },
419
- workspacePath: {
420
- type: "string",
421
- description: "Filesystem path; resolved to a workspaceId via the same derivation presence uses."
422
- }
423
- }
424
- }
425
- },
426
- {
427
- name: "h2a_conductor_claim",
428
- description: "Claim the conductor role for a workspace (WP-G1b, additive/reversible). Appends a claim event and returns the post-claim conductorFor resolution — the caller sees who the conductor now is (should be itself if it won the election). Earliest live claimant wins.",
429
- inputSchema: {
430
- type: "object",
431
- properties: {
432
- instance: {
433
- type: "string",
434
- description: "The claiming instance id (perennial, host:label:uuid12)."
435
- },
436
- workspaceId: {
437
- type: "string",
438
- description: "Workspace id in ws:<uuid> form. Mutually exclusive with workspacePath."
439
- },
440
- workspacePath: {
441
- type: "string",
442
- description: "Filesystem path; resolved to a workspaceId via the same derivation presence uses."
443
- }
444
- },
445
- required: ["instance"]
446
- }
447
- },
448
- {
449
- name: "h2a_conductor_release",
450
- description: "Release the conductor claim for a workspace (WP-G1b, additive/reversible). Appends a release event and returns the post-release conductorFor resolution so the caller sees the new conductor (or null if no other claimant is live).",
451
- inputSchema: {
452
- type: "object",
453
- properties: {
454
- instance: {
455
- type: "string",
456
- description: "The releasing instance id (perennial, host:label:uuid12)."
457
- },
458
- workspaceId: {
459
- type: "string",
460
- description: "Workspace id in ws:<uuid> form. Mutually exclusive with workspacePath."
461
- },
462
- workspacePath: {
463
- type: "string",
464
- description: "Filesystem path; resolved to a workspaceId via the same derivation presence uses."
465
- }
466
- },
467
- required: ["instance"]
468
- }
469
- },
470
- {
471
- name: "h2a_conductor_launch_check",
472
- description: "DRY-RUN (D3): poll track workspace-activity and return a recommendation to launch a conductor if work is durably stalled and no conductor is live. h2a does NOT spawn anything — this is advisory only. The launch is parked pending a spawn policy and remote-trigger support. Returns: { workspaceId, trackAvailable, conductor, conductorLive, pending, stalled, recommendation, reason, suggestedHosts? }.",
473
- inputSchema: {
474
- type: "object",
475
- properties: {
476
- workspaceId: {
477
- type: "string",
478
- description: "Workspace id in ws:<uuid> form. Mutually exclusive with workspacePath."
479
- },
480
- workspacePath: {
481
- type: "string",
482
- description: "Filesystem path; resolved to a workspaceId via the same derivation presence uses."
483
- },
484
- idleMs: {
485
- type: "number",
486
- description: "Idle threshold in milliseconds for track workspace-activity (default 86400000 = 24h)."
487
- }
488
- }
489
- }
490
- },
491
- {
492
- name: "h2a_conductor_launch",
493
- description: "D3 EMISSION: when work is stalled and no conductor is live, EMIT a conductor-launch-request envelope to a live remote agent. Gated by confirm=true (human gate) and a 1/30min/workspace cap. h2a NEVER spawns a process — it only puts a request envelope to remote; remote executes the actual spawn. Without confirm=true, returns a DRY-RUN preview (action: 'would-emit'). Requires instance (self/sender) when confirm=true.",
494
- inputSchema: {
495
- type: "object",
496
- properties: {
497
- workspaceId: {
498
- type: "string",
499
- description: "Workspace id in ws:<uuid> form. Mutually exclusive with workspacePath."
500
- },
501
- workspacePath: {
502
- type: "string",
503
- description: "Filesystem path; resolved to a workspaceId via the same derivation presence uses."
504
- },
505
- idleMs: {
506
- type: "number",
507
- description: "Idle threshold in milliseconds (default 86400000 = 24h)."
508
- },
509
- confirm: {
510
- type: "boolean",
511
- description: "Human gate: set true to actually emit the request. Without it, returns a DRY-RUN preview."
512
- },
513
- remote: {
514
- type: "string",
515
- description: "Optional: explicit remote instance id to target. If absent, the first live remote: agent is used."
516
- },
517
- instance: {
518
- type: "string",
519
- description: "Self (sender/signer) instance id. Required when confirm=true."
520
- }
521
- }
522
- }
523
- }
524
- ];
525
- //# sourceMappingURL=tools.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/runtime/mcp/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB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D,aAAa,EAAE;oBACb,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,mFAAmF;iBACjG;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,0DAA0D;iBACxE;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,2FAA2F;iBACzG;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,mGAAmG;iBACjH;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,+DAA+D;iBAC7E;aACF;SACF;KACF;CACF,CAAC"}
@@ -1,33 +0,0 @@
1
- import { Hono } from "hono";
2
- import type { McpServer } from "../mcp/server.js";
3
- import type { BrokerLogin } from "./oauth/broker-login.js";
4
- import { type H2AHostedOAuthConfig } from "./oauth/config.js";
5
- import type { SingleTenantOAuthProvider } from "./oauth/single-tenant-provider.js";
6
- export interface HostedAppDeps {
7
- oauthProvider: SingleTenantOAuthProvider;
8
- oauthConfig: H2AHostedOAuthConfig;
9
- /** The in-process h2a MCP dispatch (createMcpServer) — its read-only tools are exposed. */
10
- h2aMcpServer: McpServer;
11
- /**
12
- * EVO-12 P2 (mode 3): when `oauthConfig.brokerMode`, the broker login (built
13
- * from `oauthConfig.upstream`). Its /authorize delegates the user login to
14
- * 39-auth instead of the consent secret. Omit for single-tenant.
15
- */
16
- brokerLogin?: BrokerLogin;
17
- /**
18
- * EVO-12 P2 (mode 3, multi-tenant): per-user /mcp serving. When present AND
19
- * `oauthConfig.brokerMode`, the /mcp handler derives each request's tenant
20
- * root from the access token's `sub` (rootForSub(baseRoot, sub)) and serves
21
- * that tenant's h2a dispatch — instead of the single `h2aMcpServer`. Underlying
22
- * servers are cached per root; a session is pinned to the tenant that opened
23
- * it (a token for another tenant cannot reuse it). `h2aMcpServer` remains the
24
- * fallback for any non-broker path.
25
- */
26
- tenancy?: {
27
- baseRoot: string;
28
- /** Build the in-process h2a dispatch rooted at `root` (e.g. createMcpServer({ root })). */
29
- createServer: (root: string) => McpServer;
30
- };
31
- }
32
- export declare function createHostedApp(deps: HostedAppDeps): Hono;
33
- //# sourceMappingURL=app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/runtime/mcp-http/app.ts"],"names":[],"mappings":"AAQA,OAAO,EAAgB,IAAI,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAA0B,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAGnF,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,yBAAyB,CAAC;IACzC,WAAW,EAAE,oBAAoB,CAAC;IAClC,2FAA2F;IAC3F,YAAY,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,2FAA2F;QAC3F,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC;KAC3C,CAAC;CACH;AAQD,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CA2JzD"}