@kya-os/cli 2.0.0 → 2.0.3

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 (945) hide show
  1. package/README.md +167 -231
  2. package/bin/__tests__/kya-os-shim.e2e.test.js +160 -0
  3. package/bin/__tests__/resolve-binary.test.js +54 -0
  4. package/bin/dco.js +17 -0
  5. package/bin/kya-os.js +135 -0
  6. package/bin/resolve-binary.js +98 -0
  7. package/bin/run-compile.mjs +29 -0
  8. package/dist/sidecar/sidecar/src/conformance/pins.js +54 -0
  9. package/dist/sidecar/sidecar/src/conformance/pins.js.map +1 -0
  10. package/dist/sidecar/sidecar/src/conformance/reference/adapter-helpers.js +117 -0
  11. package/dist/sidecar/sidecar/src/conformance/reference/adapter-helpers.js.map +1 -0
  12. package/dist/sidecar/sidecar/src/conformance/reference/crypto-kit.js +101 -0
  13. package/dist/sidecar/sidecar/src/conformance/reference/crypto-kit.js.map +1 -0
  14. package/dist/sidecar/sidecar/src/conformance/reference/reference-adapter.js +326 -0
  15. package/dist/sidecar/sidecar/src/conformance/reference/reference-adapter.js.map +1 -0
  16. package/dist/sidecar/sidecar/src/conformance/reference/runner.js +126 -0
  17. package/dist/sidecar/sidecar/src/conformance/reference/runner.js.map +1 -0
  18. package/dist/sidecar/sidecar/src/conformance/reference/types.js +40 -0
  19. package/dist/sidecar/sidecar/src/conformance/reference/types.js.map +1 -0
  20. package/dist/sidecar/sidecar/src/daemon.js +151 -0
  21. package/dist/sidecar/sidecar/src/daemon.js.map +1 -0
  22. package/dist/sidecar/sidecar/src/framing.js +36 -0
  23. package/dist/sidecar/sidecar/src/framing.js.map +1 -0
  24. package/dist/sidecar/sidecar/src/identity-manager.js +73 -0
  25. package/dist/sidecar/sidecar/src/identity-manager.js.map +1 -0
  26. package/dist/sidecar/sidecar/src/index.js +80 -0
  27. package/dist/sidecar/sidecar/src/index.js.map +1 -0
  28. package/dist/sidecar/sidecar/src/ops/convert-to-ssh.js +11 -0
  29. package/dist/sidecar/sidecar/src/ops/convert-to-ssh.js.map +1 -0
  30. package/dist/sidecar/sidecar/src/ops/echo.js +5 -0
  31. package/dist/sidecar/sidecar/src/ops/echo.js.map +1 -0
  32. package/dist/sidecar/sidecar/src/ops/ensure-identity.js +36 -0
  33. package/dist/sidecar/sidecar/src/ops/ensure-identity.js.map +1 -0
  34. package/dist/sidecar/sidecar/src/ops/resolve-identity.js +233 -0
  35. package/dist/sidecar/sidecar/src/ops/resolve-identity.js.map +1 -0
  36. package/dist/sidecar/sidecar/src/ops/rotate-identity.js +37 -0
  37. package/dist/sidecar/sidecar/src/ops/rotate-identity.js.map +1 -0
  38. package/dist/sidecar/sidecar/src/ops/run-conformance.js +78 -0
  39. package/dist/sidecar/sidecar/src/ops/run-conformance.js.map +1 -0
  40. package/dist/sidecar/sidecar/src/ops/sign-with-ed25519-seed.js +12 -0
  41. package/dist/sidecar/sidecar/src/ops/sign-with-ed25519-seed.js.map +1 -0
  42. package/dist/sidecar/sidecar/src/ops/sign.js +24 -0
  43. package/dist/sidecar/sidecar/src/ops/sign.js.map +1 -0
  44. package/dist/sidecar/sidecar/src/ops/verify-audit-bundle.js +139 -0
  45. package/dist/sidecar/sidecar/src/ops/verify-audit-bundle.js.map +1 -0
  46. package/dist/sidecar/sidecar/src/ssh-key.js +297 -0
  47. package/dist/sidecar/sidecar/src/ssh-key.js.map +1 -0
  48. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.d.ts +62 -0
  49. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.js +92 -0
  50. package/node_modules/@kya-os/contracts/dist/agent-deployment.d.ts +723 -0
  51. package/node_modules/@kya-os/contracts/dist/agent-deployment.js +270 -0
  52. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-schemas.d.ts +49 -0
  53. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-schemas.js +30 -0
  54. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.d.ts +37 -0
  55. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.js +10 -0
  56. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.d.ts +53 -0
  57. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.js +49 -0
  58. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.d.ts +15 -0
  59. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.js +46 -0
  60. package/node_modules/@kya-os/contracts/dist/agentshield-api/schemas.d.ts +6583 -0
  61. package/node_modules/@kya-os/contracts/dist/agentshield-api/schemas.js +340 -0
  62. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.d.ts +344 -0
  63. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.js +26 -0
  64. package/node_modules/@kya-os/contracts/dist/attribution/index.d.ts +80 -0
  65. package/node_modules/@kya-os/contracts/dist/attribution/index.js +74 -0
  66. package/node_modules/@kya-os/contracts/dist/audit/index.d.ts +147 -0
  67. package/node_modules/@kya-os/contracts/dist/audit/index.js +51 -0
  68. package/node_modules/@kya-os/contracts/dist/cli-read/analyze.d.ts +162 -0
  69. package/node_modules/@kya-os/contracts/dist/cli-read/analyze.js +38 -0
  70. package/node_modules/@kya-os/contracts/dist/cli-read/common.d.ts +70 -0
  71. package/node_modules/@kya-os/contracts/dist/cli-read/common.js +55 -0
  72. package/node_modules/@kya-os/contracts/dist/cli-read/index.d.ts +5 -0
  73. package/node_modules/@kya-os/contracts/dist/cli-read/index.js +21 -0
  74. package/node_modules/@kya-os/contracts/dist/cli-read/monitor.d.ts +241 -0
  75. package/node_modules/@kya-os/contracts/dist/cli-read/monitor.js +70 -0
  76. package/node_modules/@kya-os/contracts/dist/cli-read/projects.d.ts +195 -0
  77. package/node_modules/@kya-os/contracts/dist/cli-read/projects.js +48 -0
  78. package/node_modules/@kya-os/contracts/dist/cli-read/settings.d.ts +274 -0
  79. package/node_modules/@kya-os/contracts/dist/cli-read/settings.js +56 -0
  80. package/node_modules/@kya-os/contracts/dist/cli.d.ts +542 -0
  81. package/node_modules/@kya-os/contracts/dist/cli.js +266 -0
  82. package/node_modules/@kya-os/contracts/dist/compute-binding.d.ts +48 -0
  83. package/node_modules/@kya-os/contracts/dist/compute-binding.js +42 -0
  84. package/node_modules/@kya-os/contracts/dist/compute.d.ts +474 -0
  85. package/node_modules/@kya-os/contracts/dist/compute.js +213 -0
  86. package/node_modules/@kya-os/contracts/dist/config/base.d.ts +76 -0
  87. package/node_modules/@kya-os/contracts/dist/config/base.js +11 -0
  88. package/node_modules/@kya-os/contracts/dist/config/builder.d.ts +33 -0
  89. package/node_modules/@kya-os/contracts/dist/config/builder.js +71 -0
  90. package/node_modules/@kya-os/contracts/dist/config/checkpoint-env.d.ts +25 -0
  91. package/node_modules/@kya-os/contracts/dist/config/checkpoint-env.js +38 -0
  92. package/node_modules/@kya-os/contracts/dist/config/client-messages.d.ts +216 -0
  93. package/node_modules/@kya-os/contracts/dist/config/client-messages.js +50 -0
  94. package/node_modules/@kya-os/contracts/dist/config/delegation-denial.d.ts +14 -0
  95. package/node_modules/@kya-os/contracts/dist/config/delegation-denial.js +30 -0
  96. package/node_modules/@kya-os/contracts/dist/config/delegation.d.ts +194 -0
  97. package/node_modules/@kya-os/contracts/dist/config/delegation.js +10 -0
  98. package/node_modules/@kya-os/contracts/dist/config/identity.d.ts +1164 -0
  99. package/node_modules/@kya-os/contracts/dist/config/identity.js +155 -0
  100. package/node_modules/@kya-os/contracts/dist/config/index.d.ts +45 -0
  101. package/node_modules/@kya-os/contracts/dist/config/index.js +41 -0
  102. package/node_modules/@kya-os/contracts/dist/config/proofing.d.ts +120 -0
  103. package/node_modules/@kya-os/contracts/dist/config/proofing.js +10 -0
  104. package/node_modules/@kya-os/contracts/dist/config/tool-context.d.ts +94 -0
  105. package/node_modules/@kya-os/contracts/dist/config/tool-context.js +13 -0
  106. package/node_modules/@kya-os/contracts/dist/config/tool-protection.d.ts +164 -0
  107. package/node_modules/@kya-os/contracts/dist/config/tool-protection.js +10 -0
  108. package/node_modules/@kya-os/contracts/dist/config/tool-refusal.d.ts +54 -0
  109. package/node_modules/@kya-os/contracts/dist/config/tool-refusal.js +82 -0
  110. package/node_modules/@kya-os/contracts/dist/consent/authorization-progress.d.ts +163 -0
  111. package/node_modules/@kya-os/contracts/dist/consent/authorization-progress.js +42 -0
  112. package/node_modules/@kya-os/contracts/dist/consent/index.d.ts +14 -0
  113. package/node_modules/@kya-os/contracts/dist/consent/index.js +94 -0
  114. package/node_modules/@kya-os/contracts/dist/consent/schemas.d.ts +965 -0
  115. package/node_modules/@kya-os/contracts/dist/consent/schemas.js +335 -0
  116. package/node_modules/@kya-os/contracts/dist/consent/types.d.ts +155 -0
  117. package/node_modules/@kya-os/contracts/dist/consent/types.js +10 -0
  118. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.d.ts +49 -0
  119. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.js +235 -0
  120. package/node_modules/@kya-os/contracts/dist/dashboard-config/index.d.ts +10 -0
  121. package/node_modules/@kya-os/contracts/dist/dashboard-config/index.js +37 -0
  122. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.d.ts +13351 -0
  123. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.js +267 -0
  124. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.d.ts +359 -0
  125. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.js +10 -0
  126. package/node_modules/@kya-os/contracts/dist/delegation/constraints.d.ts +1021 -0
  127. package/node_modules/@kya-os/contracts/dist/delegation/constraints.js +218 -0
  128. package/node_modules/@kya-os/contracts/dist/delegation/index.d.ts +7 -0
  129. package/node_modules/@kya-os/contracts/dist/delegation/index.js +23 -0
  130. package/node_modules/@kya-os/contracts/dist/delegation/schemas.d.ts +9302 -0
  131. package/node_modules/@kya-os/contracts/dist/delegation/schemas.js +585 -0
  132. package/node_modules/@kya-os/contracts/dist/deploy/index.d.ts +27 -0
  133. package/node_modules/@kya-os/contracts/dist/deploy/index.js +62 -0
  134. package/node_modules/@kya-os/contracts/dist/deploy/schemas.d.ts +1001 -0
  135. package/node_modules/@kya-os/contracts/dist/deploy/schemas.js +284 -0
  136. package/node_modules/@kya-os/contracts/dist/deploy/types.d.ts +256 -0
  137. package/node_modules/@kya-os/contracts/dist/deploy/types.js +10 -0
  138. package/node_modules/@kya-os/contracts/dist/did/index.d.ts +8 -0
  139. package/node_modules/@kya-os/contracts/dist/did/index.js +24 -0
  140. package/node_modules/@kya-os/contracts/dist/did/resolve-contract.d.ts +219 -0
  141. package/node_modules/@kya-os/contracts/dist/did/resolve-contract.js +31 -0
  142. package/node_modules/@kya-os/contracts/dist/did/schemas.d.ts +112 -0
  143. package/node_modules/@kya-os/contracts/dist/did/schemas.js +172 -0
  144. package/node_modules/@kya-os/contracts/dist/did/types.d.ts +163 -0
  145. package/node_modules/@kya-os/contracts/dist/did/types.js +70 -0
  146. package/node_modules/@kya-os/contracts/dist/env/constants.d.ts +57 -0
  147. package/node_modules/@kya-os/contracts/dist/env/constants.js +59 -0
  148. package/node_modules/@kya-os/contracts/dist/env/index.d.ts +4 -0
  149. package/node_modules/@kya-os/contracts/dist/env/index.js +20 -0
  150. package/node_modules/@kya-os/contracts/dist/fleet/index.d.ts +17 -0
  151. package/node_modules/@kya-os/contracts/dist/fleet/index.js +69 -0
  152. package/node_modules/@kya-os/contracts/dist/gateway/agents.d.ts +21 -0
  153. package/node_modules/@kya-os/contracts/dist/gateway/agents.js +12 -0
  154. package/node_modules/@kya-os/contracts/dist/gateway/cron.d.ts +33 -0
  155. package/node_modules/@kya-os/contracts/dist/gateway/cron.js +16 -0
  156. package/node_modules/@kya-os/contracts/dist/gateway/index.d.ts +20 -0
  157. package/node_modules/@kya-os/contracts/dist/gateway/index.js +37 -0
  158. package/node_modules/@kya-os/contracts/dist/gateway/sessions.d.ts +30 -0
  159. package/node_modules/@kya-os/contracts/dist/gateway/sessions.js +15 -0
  160. package/node_modules/@kya-os/contracts/dist/gateway/skills.d.ts +445 -0
  161. package/node_modules/@kya-os/contracts/dist/gateway/skills.js +47 -0
  162. package/node_modules/@kya-os/contracts/dist/gateway/usage.d.ts +43 -0
  163. package/node_modules/@kya-os/contracts/dist/gateway/usage.js +18 -0
  164. package/node_modules/@kya-os/contracts/dist/handshake/github-credential-anchor.d.ts +299 -0
  165. package/node_modules/@kya-os/contracts/dist/handshake/github-credential-anchor.js +200 -0
  166. package/node_modules/@kya-os/contracts/dist/handshake/index.d.ts +16 -0
  167. package/node_modules/@kya-os/contracts/dist/handshake/index.js +32 -0
  168. package/node_modules/@kya-os/contracts/dist/handshake/schemas.d.ts +557 -0
  169. package/node_modules/@kya-os/contracts/dist/handshake/schemas.js +282 -0
  170. package/node_modules/@kya-os/contracts/dist/handshake/verify.d.ts +36 -0
  171. package/node_modules/@kya-os/contracts/dist/handshake/verify.js +58 -0
  172. package/node_modules/@kya-os/contracts/dist/handshake.d.ts +12 -0
  173. package/node_modules/@kya-os/contracts/dist/handshake.js +28 -0
  174. package/node_modules/@kya-os/contracts/dist/identity/index.d.ts +10 -0
  175. package/node_modules/@kya-os/contracts/dist/identity/index.js +30 -0
  176. package/node_modules/@kya-os/contracts/dist/identity/schemas.d.ts +250 -0
  177. package/node_modules/@kya-os/contracts/dist/identity/schemas.js +115 -0
  178. package/node_modules/@kya-os/contracts/dist/index.d.ts +28 -0
  179. package/node_modules/@kya-os/contracts/dist/index.js +66 -0
  180. package/node_modules/@kya-os/contracts/dist/molti/admin-ws.d.ts +1871 -0
  181. package/node_modules/@kya-os/contracts/dist/molti/admin-ws.js +177 -0
  182. package/node_modules/@kya-os/contracts/dist/molti/index.d.ts +30 -0
  183. package/node_modules/@kya-os/contracts/dist/molti/index.js +86 -0
  184. package/node_modules/@kya-os/contracts/dist/molti/schemas.d.ts +837 -0
  185. package/node_modules/@kya-os/contracts/dist/molti/schemas.js +267 -0
  186. package/node_modules/@kya-os/contracts/dist/molti/types.d.ts +216 -0
  187. package/node_modules/@kya-os/contracts/dist/molti/types.js +25 -0
  188. package/node_modules/@kya-os/contracts/dist/pairing/index.d.ts +44 -0
  189. package/node_modules/@kya-os/contracts/dist/pairing/index.js +11 -0
  190. package/node_modules/@kya-os/contracts/dist/policy/index.d.ts +8 -0
  191. package/node_modules/@kya-os/contracts/dist/policy/index.js +41 -0
  192. package/node_modules/@kya-os/contracts/dist/policy/schemas.d.ts +3839 -0
  193. package/node_modules/@kya-os/contracts/dist/policy/schemas.js +424 -0
  194. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.d.ts +476 -0
  195. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.js +116 -0
  196. package/node_modules/@kya-os/contracts/dist/proof/index.d.ts +15 -0
  197. package/node_modules/@kya-os/contracts/dist/proof/index.js +32 -0
  198. package/node_modules/@kya-os/contracts/dist/proof/proof-record.d.ts +837 -0
  199. package/node_modules/@kya-os/contracts/dist/proof/proof-record.js +133 -0
  200. package/node_modules/@kya-os/contracts/dist/proof/signing-spec.d.ts +146 -0
  201. package/node_modules/@kya-os/contracts/dist/proof/signing-spec.js +122 -0
  202. package/node_modules/@kya-os/contracts/dist/proof.d.ts +12 -0
  203. package/node_modules/@kya-os/contracts/dist/proof.js +28 -0
  204. package/node_modules/@kya-os/contracts/dist/registry.d.ts +342 -0
  205. package/node_modules/@kya-os/contracts/dist/registry.js +118 -0
  206. package/node_modules/@kya-os/contracts/dist/reputation/api.d.ts +2866 -0
  207. package/node_modules/@kya-os/contracts/dist/reputation/api.js +397 -0
  208. package/node_modules/@kya-os/contracts/dist/reputation/constants.d.ts +242 -0
  209. package/node_modules/@kya-os/contracts/dist/reputation/constants.js +259 -0
  210. package/node_modules/@kya-os/contracts/dist/reputation/credentials.d.ts +1493 -0
  211. package/node_modules/@kya-os/contracts/dist/reputation/credentials.js +302 -0
  212. package/node_modules/@kya-os/contracts/dist/reputation/index.d.ts +21 -0
  213. package/node_modules/@kya-os/contracts/dist/reputation/index.js +42 -0
  214. package/node_modules/@kya-os/contracts/dist/reputation/interactions.d.ts +146 -0
  215. package/node_modules/@kya-os/contracts/dist/reputation/interactions.js +82 -0
  216. package/node_modules/@kya-os/contracts/dist/reputation/schemas.d.ts +1600 -0
  217. package/node_modules/@kya-os/contracts/dist/reputation/schemas.js +499 -0
  218. package/node_modules/@kya-os/contracts/dist/review/canonicalize.d.ts +87 -0
  219. package/node_modules/@kya-os/contracts/dist/review/canonicalize.js +122 -0
  220. package/node_modules/@kya-os/contracts/dist/review/fix-attestation.d.ts +151 -0
  221. package/node_modules/@kya-os/contracts/dist/review/fix-attestation.js +105 -0
  222. package/node_modules/@kya-os/contracts/dist/review/index.d.ts +9 -0
  223. package/node_modules/@kya-os/contracts/dist/review/index.js +25 -0
  224. package/node_modules/@kya-os/contracts/dist/review/registry.d.ts +349 -0
  225. package/node_modules/@kya-os/contracts/dist/review/registry.js +293 -0
  226. package/node_modules/@kya-os/contracts/dist/review/schemas.d.ts +249 -0
  227. package/node_modules/@kya-os/contracts/dist/review/schemas.js +102 -0
  228. package/node_modules/@kya-os/contracts/dist/review/verify.d.ts +72 -0
  229. package/node_modules/@kya-os/contracts/dist/review/verify.js +111 -0
  230. package/node_modules/@kya-os/contracts/dist/runtime/errors.d.ts +347 -0
  231. package/node_modules/@kya-os/contracts/dist/runtime/errors.js +119 -0
  232. package/node_modules/@kya-os/contracts/dist/runtime/headers.d.ts +87 -0
  233. package/node_modules/@kya-os/contracts/dist/runtime/headers.js +85 -0
  234. package/node_modules/@kya-os/contracts/dist/runtime/index.d.ts +5 -0
  235. package/node_modules/@kya-os/contracts/dist/runtime/index.js +21 -0
  236. package/node_modules/@kya-os/contracts/dist/skills/index.d.ts +8 -0
  237. package/node_modules/@kya-os/contracts/dist/skills/index.js +24 -0
  238. package/node_modules/@kya-os/contracts/dist/skills/schemas.d.ts +92 -0
  239. package/node_modules/@kya-os/contracts/dist/skills/schemas.js +82 -0
  240. package/node_modules/@kya-os/contracts/dist/test.d.ts +251 -0
  241. package/node_modules/@kya-os/contracts/dist/test.js +119 -0
  242. package/node_modules/@kya-os/contracts/dist/tlkrc/index.d.ts +4 -0
  243. package/node_modules/@kya-os/contracts/dist/tlkrc/index.js +20 -0
  244. package/node_modules/@kya-os/contracts/dist/tlkrc/rotation.d.ts +245 -0
  245. package/node_modules/@kya-os/contracts/dist/tlkrc/rotation.js +126 -0
  246. package/node_modules/@kya-os/contracts/dist/tool-protection/index.d.ts +1369 -0
  247. package/node_modules/@kya-os/contracts/dist/tool-protection/index.js +499 -0
  248. package/node_modules/@kya-os/contracts/dist/utils/validation.d.ts +30 -0
  249. package/node_modules/@kya-os/contracts/dist/utils/validation.js +69 -0
  250. package/node_modules/@kya-os/contracts/dist/vault/index.d.ts +9 -0
  251. package/node_modules/@kya-os/contracts/dist/vault/index.js +16 -0
  252. package/node_modules/@kya-os/contracts/dist/vault/schemas.d.ts +71 -0
  253. package/node_modules/@kya-os/contracts/dist/vault/schemas.js +52 -0
  254. package/node_modules/@kya-os/contracts/dist/vault/types.d.ts +15 -0
  255. package/node_modules/@kya-os/contracts/dist/vault/types.js +9 -0
  256. package/node_modules/@kya-os/contracts/dist/vc/index.d.ts +7 -0
  257. package/node_modules/@kya-os/contracts/dist/vc/index.js +23 -0
  258. package/node_modules/@kya-os/contracts/dist/vc/schemas.d.ts +2483 -0
  259. package/node_modules/@kya-os/contracts/dist/vc/schemas.js +224 -0
  260. package/node_modules/@kya-os/contracts/dist/vc/statuslist.d.ts +493 -0
  261. package/node_modules/@kya-os/contracts/dist/vc/statuslist.js +132 -0
  262. package/node_modules/@kya-os/contracts/dist/verifier/index.d.ts +8 -0
  263. package/node_modules/@kya-os/contracts/dist/verifier/index.js +24 -0
  264. package/node_modules/@kya-os/contracts/dist/verifier/schemas.d.ts +216 -0
  265. package/node_modules/@kya-os/contracts/dist/verifier/schemas.js +94 -0
  266. package/node_modules/@kya-os/contracts/dist/verifier.d.ts +11 -0
  267. package/node_modules/@kya-os/contracts/dist/verifier.js +27 -0
  268. package/node_modules/@kya-os/contracts/dist/well-known/index.d.ts +1013 -0
  269. package/node_modules/@kya-os/contracts/dist/well-known/index.js +302 -0
  270. package/node_modules/@kya-os/contracts/dist/workbench/a2a.d.ts +267 -0
  271. package/node_modules/@kya-os/contracts/dist/workbench/a2a.js +124 -0
  272. package/node_modules/@kya-os/contracts/dist/workbench/artifact-bindings.d.ts +1448 -0
  273. package/node_modules/@kya-os/contracts/dist/workbench/artifact-bindings.js +233 -0
  274. package/node_modules/@kya-os/contracts/dist/workbench/cache.d.ts +461 -0
  275. package/node_modules/@kya-os/contracts/dist/workbench/cache.js +165 -0
  276. package/node_modules/@kya-os/contracts/dist/workbench/economics.d.ts +1097 -0
  277. package/node_modules/@kya-os/contracts/dist/workbench/economics.js +87 -0
  278. package/node_modules/@kya-os/contracts/dist/workbench/execution.d.ts +594 -0
  279. package/node_modules/@kya-os/contracts/dist/workbench/execution.js +76 -0
  280. package/node_modules/@kya-os/contracts/dist/workbench/governed.d.ts +4323 -0
  281. package/node_modules/@kya-os/contracts/dist/workbench/governed.js +37 -0
  282. package/node_modules/@kya-os/contracts/dist/workbench/graph-interfaces.d.ts +1330 -0
  283. package/node_modules/@kya-os/contracts/dist/workbench/graph-interfaces.js +302 -0
  284. package/node_modules/@kya-os/contracts/dist/workbench/index.d.ts +17 -0
  285. package/node_modules/@kya-os/contracts/dist/workbench/index.js +33 -0
  286. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.d.ts +7603 -0
  287. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.js +20 -0
  288. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.d.ts +797 -0
  289. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.js +80 -0
  290. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.d.ts +3245 -0
  291. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.js +475 -0
  292. package/node_modules/@kya-os/contracts/dist/workbench/managed-worker.d.ts +199 -0
  293. package/node_modules/@kya-os/contracts/dist/workbench/managed-worker.js +49 -0
  294. package/node_modules/@kya-os/contracts/dist/workbench/review.d.ts +1585 -0
  295. package/node_modules/@kya-os/contracts/dist/workbench/review.js +84 -0
  296. package/node_modules/@kya-os/contracts/dist/workbench/routing.d.ts +1200 -0
  297. package/node_modules/@kya-os/contracts/dist/workbench/routing.js +93 -0
  298. package/node_modules/@kya-os/contracts/dist/workbench/task-status-projection.d.ts +190 -0
  299. package/node_modules/@kya-os/contracts/dist/workbench/task-status-projection.js +49 -0
  300. package/node_modules/@kya-os/contracts/dist/workbench/tracking.d.ts +3364 -0
  301. package/node_modules/@kya-os/contracts/dist/workbench/tracking.js +221 -0
  302. package/node_modules/@kya-os/contracts/dist/workbench/usage.d.ts +62 -0
  303. package/node_modules/@kya-os/contracts/dist/workbench/usage.js +57 -0
  304. package/node_modules/@kya-os/contracts/package.json +185 -0
  305. package/node_modules/@kya-os/contracts/parity-vectors/delegation-conformance.json +265 -0
  306. package/node_modules/@kya-os/contracts/parity-vectors/did-key.json +134 -0
  307. package/node_modules/@kya-os/contracts/parity-vectors/index.ts +253 -0
  308. package/node_modules/@kya-os/contracts/parity-vectors/scope-matching.json +330 -0
  309. package/node_modules/@kya-os/contracts/parity-vectors/vc-jwt.json +210 -0
  310. package/node_modules/@kya-os/contracts/parity-vectors/workbench/artifact-bindings.v1.json +1005 -0
  311. package/node_modules/@kya-os/contracts/parity-vectors/workbench/graph-interfaces.v1.json +1967 -0
  312. package/node_modules/@kya-os/contracts/parity-vectors/workbench/linear-installation.v1.json +75 -0
  313. package/node_modules/@kya-os/contracts/parity-vectors/workbench/task-status-projection.v1.json +591 -0
  314. package/node_modules/@kya-os/contracts/parity-vectors/workbench/tracker-document-upgrade.v1.json +516 -0
  315. package/node_modules/zod/LICENSE +21 -0
  316. package/node_modules/zod/README.md +208 -0
  317. package/node_modules/zod/dist/cjs/index.js +22 -0
  318. package/node_modules/zod/dist/cjs/package.json +3 -0
  319. package/node_modules/zod/dist/cjs/v3/ZodError.js +137 -0
  320. package/node_modules/zod/dist/cjs/v3/benchmarks/datetime.js +54 -0
  321. package/node_modules/zod/dist/cjs/v3/benchmarks/discriminatedUnion.js +79 -0
  322. package/node_modules/zod/dist/cjs/v3/benchmarks/index.js +59 -0
  323. package/node_modules/zod/dist/cjs/v3/benchmarks/ipv4.js +54 -0
  324. package/node_modules/zod/dist/cjs/v3/benchmarks/object.js +70 -0
  325. package/node_modules/zod/dist/cjs/v3/benchmarks/primitives.js +159 -0
  326. package/node_modules/zod/dist/cjs/v3/benchmarks/realworld.js +56 -0
  327. package/node_modules/zod/dist/cjs/v3/benchmarks/string.js +55 -0
  328. package/node_modules/zod/dist/cjs/v3/benchmarks/union.js +79 -0
  329. package/node_modules/zod/dist/cjs/v3/errors.js +17 -0
  330. package/node_modules/zod/dist/cjs/v3/external.js +22 -0
  331. package/node_modules/zod/dist/cjs/v3/helpers/enumUtil.js +2 -0
  332. package/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js +9 -0
  333. package/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js +124 -0
  334. package/node_modules/zod/dist/cjs/v3/helpers/partialUtil.js +2 -0
  335. package/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js +2 -0
  336. package/node_modules/zod/dist/cjs/v3/helpers/util.js +137 -0
  337. package/node_modules/zod/dist/cjs/v3/index.js +33 -0
  338. package/node_modules/zod/dist/cjs/v3/locales/en.js +109 -0
  339. package/node_modules/zod/dist/cjs/v3/standard-schema.js +2 -0
  340. package/node_modules/zod/dist/cjs/v3/tests/Mocker.js +57 -0
  341. package/node_modules/zod/dist/cjs/v3/types.js +3773 -0
  342. package/node_modules/zod/dist/cjs/v4/classic/checks.js +32 -0
  343. package/node_modules/zod/dist/cjs/v4/classic/coerce.js +47 -0
  344. package/node_modules/zod/dist/cjs/v4/classic/compat.js +63 -0
  345. package/node_modules/zod/dist/cjs/v4/classic/errors.js +67 -0
  346. package/node_modules/zod/dist/cjs/v4/classic/external.js +69 -0
  347. package/node_modules/zod/dist/cjs/v4/classic/index.js +33 -0
  348. package/node_modules/zod/dist/cjs/v4/classic/iso.js +60 -0
  349. package/node_modules/zod/dist/cjs/v4/classic/parse.js +32 -0
  350. package/node_modules/zod/dist/cjs/v4/classic/schemas.js +1100 -0
  351. package/node_modules/zod/dist/cjs/v4/core/api.js +1021 -0
  352. package/node_modules/zod/dist/cjs/v4/core/checks.js +580 -0
  353. package/node_modules/zod/dist/cjs/v4/core/config.js +10 -0
  354. package/node_modules/zod/dist/cjs/v4/core/core.js +63 -0
  355. package/node_modules/zod/dist/cjs/v4/core/doc.js +39 -0
  356. package/node_modules/zod/dist/cjs/v4/core/errors.js +222 -0
  357. package/node_modules/zod/dist/cjs/v4/core/function.js +102 -0
  358. package/node_modules/zod/dist/cjs/v4/core/index.js +44 -0
  359. package/node_modules/zod/dist/cjs/v4/core/json-schema.js +2 -0
  360. package/node_modules/zod/dist/cjs/v4/core/parse.js +87 -0
  361. package/node_modules/zod/dist/cjs/v4/core/regexes.js +103 -0
  362. package/node_modules/zod/dist/cjs/v4/core/registries.js +47 -0
  363. package/node_modules/zod/dist/cjs/v4/core/schemas.js +1719 -0
  364. package/node_modules/zod/dist/cjs/v4/core/standard-schema.js +2 -0
  365. package/node_modules/zod/dist/cjs/v4/core/to-json-schema.js +833 -0
  366. package/node_modules/zod/dist/cjs/v4/core/util.js +537 -0
  367. package/node_modules/zod/dist/cjs/v4/core/versions.js +8 -0
  368. package/node_modules/zod/dist/cjs/v4/core/zsf.js +172 -0
  369. package/node_modules/zod/dist/cjs/v4/index.js +22 -0
  370. package/node_modules/zod/dist/cjs/v4/locales/ar.js +142 -0
  371. package/node_modules/zod/dist/cjs/v4/locales/az.js +141 -0
  372. package/node_modules/zod/dist/cjs/v4/locales/be.js +190 -0
  373. package/node_modules/zod/dist/cjs/v4/locales/ca.js +144 -0
  374. package/node_modules/zod/dist/cjs/v4/locales/cs.js +161 -0
  375. package/node_modules/zod/dist/cjs/v4/locales/de.js +142 -0
  376. package/node_modules/zod/dist/cjs/v4/locales/en.js +145 -0
  377. package/node_modules/zod/dist/cjs/v4/locales/es.js +143 -0
  378. package/node_modules/zod/dist/cjs/v4/locales/fa.js +148 -0
  379. package/node_modules/zod/dist/cjs/v4/locales/fi.js +148 -0
  380. package/node_modules/zod/dist/cjs/v4/locales/fr-CA.js +143 -0
  381. package/node_modules/zod/dist/cjs/v4/locales/fr.js +142 -0
  382. package/node_modules/zod/dist/cjs/v4/locales/he.js +143 -0
  383. package/node_modules/zod/dist/cjs/v4/locales/hu.js +143 -0
  384. package/node_modules/zod/dist/cjs/v4/locales/id.js +142 -0
  385. package/node_modules/zod/dist/cjs/v4/locales/index.js +82 -0
  386. package/node_modules/zod/dist/cjs/v4/locales/it.js +143 -0
  387. package/node_modules/zod/dist/cjs/v4/locales/ja.js +141 -0
  388. package/node_modules/zod/dist/cjs/v4/locales/kh.js +143 -0
  389. package/node_modules/zod/dist/cjs/v4/locales/ko.js +147 -0
  390. package/node_modules/zod/dist/cjs/v4/locales/mk.js +144 -0
  391. package/node_modules/zod/dist/cjs/v4/locales/ms.js +142 -0
  392. package/node_modules/zod/dist/cjs/v4/locales/nl.js +143 -0
  393. package/node_modules/zod/dist/cjs/v4/locales/no.js +142 -0
  394. package/node_modules/zod/dist/cjs/v4/locales/ota.js +143 -0
  395. package/node_modules/zod/dist/cjs/v4/locales/pl.js +143 -0
  396. package/node_modules/zod/dist/cjs/v4/locales/ps.js +148 -0
  397. package/node_modules/zod/dist/cjs/v4/locales/pt.js +142 -0
  398. package/node_modules/zod/dist/cjs/v4/locales/ru.js +190 -0
  399. package/node_modules/zod/dist/cjs/v4/locales/sl.js +143 -0
  400. package/node_modules/zod/dist/cjs/v4/locales/sv.js +144 -0
  401. package/node_modules/zod/dist/cjs/v4/locales/ta.js +143 -0
  402. package/node_modules/zod/dist/cjs/v4/locales/th.js +143 -0
  403. package/node_modules/zod/dist/cjs/v4/locales/tr.js +143 -0
  404. package/node_modules/zod/dist/cjs/v4/locales/ua.js +143 -0
  405. package/node_modules/zod/dist/cjs/v4/locales/ur.js +143 -0
  406. package/node_modules/zod/dist/cjs/v4/locales/vi.js +142 -0
  407. package/node_modules/zod/dist/cjs/v4/locales/zh-CN.js +142 -0
  408. package/node_modules/zod/dist/cjs/v4/locales/zh-TW.js +143 -0
  409. package/node_modules/zod/dist/cjs/v4/mini/checks.js +34 -0
  410. package/node_modules/zod/dist/cjs/v4/mini/coerce.js +47 -0
  411. package/node_modules/zod/dist/cjs/v4/mini/external.js +61 -0
  412. package/node_modules/zod/dist/cjs/v4/mini/index.js +32 -0
  413. package/node_modules/zod/dist/cjs/v4/mini/iso.js +60 -0
  414. package/node_modules/zod/dist/cjs/v4/mini/parse.js +8 -0
  415. package/node_modules/zod/dist/cjs/v4/mini/schemas.js +831 -0
  416. package/node_modules/zod/dist/esm/index.js +3 -0
  417. package/node_modules/zod/dist/esm/package.json +3 -0
  418. package/node_modules/zod/dist/esm/v3/ZodError.js +132 -0
  419. package/node_modules/zod/dist/esm/v3/benchmarks/datetime.js +49 -0
  420. package/node_modules/zod/dist/esm/v3/benchmarks/discriminatedUnion.js +74 -0
  421. package/node_modules/zod/dist/esm/v3/benchmarks/index.js +54 -0
  422. package/node_modules/zod/dist/esm/v3/benchmarks/ipv4.js +49 -0
  423. package/node_modules/zod/dist/esm/v3/benchmarks/object.js +65 -0
  424. package/node_modules/zod/dist/esm/v3/benchmarks/primitives.js +154 -0
  425. package/node_modules/zod/dist/esm/v3/benchmarks/realworld.js +51 -0
  426. package/node_modules/zod/dist/esm/v3/benchmarks/string.js +50 -0
  427. package/node_modules/zod/dist/esm/v3/benchmarks/union.js +74 -0
  428. package/node_modules/zod/dist/esm/v3/errors.js +9 -0
  429. package/node_modules/zod/dist/esm/v3/external.js +6 -0
  430. package/node_modules/zod/dist/esm/v3/helpers/enumUtil.js +1 -0
  431. package/node_modules/zod/dist/esm/v3/helpers/errorUtil.js +6 -0
  432. package/node_modules/zod/dist/esm/v3/helpers/parseUtil.js +109 -0
  433. package/node_modules/zod/dist/esm/v3/helpers/partialUtil.js +1 -0
  434. package/node_modules/zod/dist/esm/v3/helpers/typeAliases.js +1 -0
  435. package/node_modules/zod/dist/esm/v3/helpers/util.js +133 -0
  436. package/node_modules/zod/dist/esm/v3/index.js +4 -0
  437. package/node_modules/zod/dist/esm/v3/locales/en.js +107 -0
  438. package/node_modules/zod/dist/esm/v3/standard-schema.js +1 -0
  439. package/node_modules/zod/dist/esm/v3/tests/Mocker.js +53 -0
  440. package/node_modules/zod/dist/esm/v3/types.js +3691 -0
  441. package/node_modules/zod/dist/esm/v4/classic/checks.js +1 -0
  442. package/node_modules/zod/dist/esm/v4/classic/coerce.js +17 -0
  443. package/node_modules/zod/dist/esm/v4/classic/compat.js +33 -0
  444. package/node_modules/zod/dist/esm/v4/classic/errors.js +41 -0
  445. package/node_modules/zod/dist/esm/v4/classic/external.js +18 -0
  446. package/node_modules/zod/dist/esm/v4/classic/index.js +4 -0
  447. package/node_modules/zod/dist/esm/v4/classic/iso.js +30 -0
  448. package/node_modules/zod/dist/esm/v4/classic/parse.js +6 -0
  449. package/node_modules/zod/dist/esm/v4/classic/schemas.js +998 -0
  450. package/node_modules/zod/dist/esm/v4/core/api.js +889 -0
  451. package/node_modules/zod/dist/esm/v4/core/checks.js +554 -0
  452. package/node_modules/zod/dist/esm/v4/core/config.js +6 -0
  453. package/node_modules/zod/dist/esm/v4/core/core.js +57 -0
  454. package/node_modules/zod/dist/esm/v4/core/doc.js +35 -0
  455. package/node_modules/zod/dist/esm/v4/core/errors.js +191 -0
  456. package/node_modules/zod/dist/esm/v4/core/function.js +75 -0
  457. package/node_modules/zod/dist/esm/v4/core/index.js +15 -0
  458. package/node_modules/zod/dist/esm/v4/core/json-schema.js +1 -0
  459. package/node_modules/zod/dist/esm/v4/core/parse.js +57 -0
  460. package/node_modules/zod/dist/esm/v4/core/regexes.js +95 -0
  461. package/node_modules/zod/dist/esm/v4/core/registries.js +42 -0
  462. package/node_modules/zod/dist/esm/v4/core/schemas.js +1688 -0
  463. package/node_modules/zod/dist/esm/v4/core/standard-schema.js +1 -0
  464. package/node_modules/zod/dist/esm/v4/core/to-json-schema.js +828 -0
  465. package/node_modules/zod/dist/esm/v4/core/util.js +491 -0
  466. package/node_modules/zod/dist/esm/v4/core/versions.js +5 -0
  467. package/node_modules/zod/dist/esm/v4/core/zsf.js +171 -0
  468. package/node_modules/zod/dist/esm/v4/index.js +3 -0
  469. package/node_modules/zod/dist/esm/v4/locales/ar.js +116 -0
  470. package/node_modules/zod/dist/esm/v4/locales/az.js +115 -0
  471. package/node_modules/zod/dist/esm/v4/locales/be.js +164 -0
  472. package/node_modules/zod/dist/esm/v4/locales/ca.js +118 -0
  473. package/node_modules/zod/dist/esm/v4/locales/cs.js +135 -0
  474. package/node_modules/zod/dist/esm/v4/locales/de.js +116 -0
  475. package/node_modules/zod/dist/esm/v4/locales/en.js +117 -0
  476. package/node_modules/zod/dist/esm/v4/locales/es.js +117 -0
  477. package/node_modules/zod/dist/esm/v4/locales/fa.js +122 -0
  478. package/node_modules/zod/dist/esm/v4/locales/fi.js +122 -0
  479. package/node_modules/zod/dist/esm/v4/locales/fr-CA.js +117 -0
  480. package/node_modules/zod/dist/esm/v4/locales/fr.js +116 -0
  481. package/node_modules/zod/dist/esm/v4/locales/he.js +117 -0
  482. package/node_modules/zod/dist/esm/v4/locales/hu.js +117 -0
  483. package/node_modules/zod/dist/esm/v4/locales/id.js +116 -0
  484. package/node_modules/zod/dist/esm/v4/locales/index.js +38 -0
  485. package/node_modules/zod/dist/esm/v4/locales/it.js +117 -0
  486. package/node_modules/zod/dist/esm/v4/locales/ja.js +115 -0
  487. package/node_modules/zod/dist/esm/v4/locales/kh.js +117 -0
  488. package/node_modules/zod/dist/esm/v4/locales/ko.js +121 -0
  489. package/node_modules/zod/dist/esm/v4/locales/mk.js +118 -0
  490. package/node_modules/zod/dist/esm/v4/locales/ms.js +116 -0
  491. package/node_modules/zod/dist/esm/v4/locales/nl.js +117 -0
  492. package/node_modules/zod/dist/esm/v4/locales/no.js +116 -0
  493. package/node_modules/zod/dist/esm/v4/locales/ota.js +117 -0
  494. package/node_modules/zod/dist/esm/v4/locales/pl.js +117 -0
  495. package/node_modules/zod/dist/esm/v4/locales/ps.js +122 -0
  496. package/node_modules/zod/dist/esm/v4/locales/pt.js +116 -0
  497. package/node_modules/zod/dist/esm/v4/locales/ru.js +164 -0
  498. package/node_modules/zod/dist/esm/v4/locales/sl.js +117 -0
  499. package/node_modules/zod/dist/esm/v4/locales/sv.js +118 -0
  500. package/node_modules/zod/dist/esm/v4/locales/ta.js +117 -0
  501. package/node_modules/zod/dist/esm/v4/locales/th.js +117 -0
  502. package/node_modules/zod/dist/esm/v4/locales/tr.js +115 -0
  503. package/node_modules/zod/dist/esm/v4/locales/ua.js +117 -0
  504. package/node_modules/zod/dist/esm/v4/locales/ur.js +117 -0
  505. package/node_modules/zod/dist/esm/v4/locales/vi.js +116 -0
  506. package/node_modules/zod/dist/esm/v4/locales/zh-CN.js +116 -0
  507. package/node_modules/zod/dist/esm/v4/locales/zh-TW.js +117 -0
  508. package/node_modules/zod/dist/esm/v4/mini/checks.js +1 -0
  509. package/node_modules/zod/dist/esm/v4/mini/coerce.js +17 -0
  510. package/node_modules/zod/dist/esm/v4/mini/external.js +13 -0
  511. package/node_modules/zod/dist/esm/v4/mini/index.js +3 -0
  512. package/node_modules/zod/dist/esm/v4/mini/iso.js +30 -0
  513. package/node_modules/zod/dist/esm/v4/mini/parse.js +1 -0
  514. package/node_modules/zod/dist/esm/v4/mini/schemas.js +725 -0
  515. package/node_modules/zod/dist/types/index.d.ts +3 -0
  516. package/node_modules/zod/dist/types/package.json +3 -0
  517. package/node_modules/zod/dist/types/v3/ZodError.d.ts +164 -0
  518. package/node_modules/zod/dist/types/v3/benchmarks/datetime.d.ts +5 -0
  519. package/node_modules/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +5 -0
  520. package/node_modules/zod/dist/types/v3/benchmarks/index.d.ts +1 -0
  521. package/node_modules/zod/dist/types/v3/benchmarks/ipv4.d.ts +5 -0
  522. package/node_modules/zod/dist/types/v3/benchmarks/object.d.ts +5 -0
  523. package/node_modules/zod/dist/types/v3/benchmarks/primitives.d.ts +5 -0
  524. package/node_modules/zod/dist/types/v3/benchmarks/realworld.d.ts +5 -0
  525. package/node_modules/zod/dist/types/v3/benchmarks/string.d.ts +5 -0
  526. package/node_modules/zod/dist/types/v3/benchmarks/union.d.ts +5 -0
  527. package/node_modules/zod/dist/types/v3/errors.d.ts +5 -0
  528. package/node_modules/zod/dist/types/v3/external.d.ts +6 -0
  529. package/node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts +8 -0
  530. package/node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts +9 -0
  531. package/node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts +78 -0
  532. package/node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts +8 -0
  533. package/node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts +2 -0
  534. package/node_modules/zod/dist/types/v3/helpers/util.d.ts +85 -0
  535. package/node_modules/zod/dist/types/v3/index.d.ts +4 -0
  536. package/node_modules/zod/dist/types/v3/locales/en.d.ts +3 -0
  537. package/node_modules/zod/dist/types/v3/standard-schema.d.ts +102 -0
  538. package/node_modules/zod/dist/types/v3/tests/Mocker.d.ts +17 -0
  539. package/node_modules/zod/dist/types/v3/types.d.ts +1031 -0
  540. package/node_modules/zod/dist/types/v4/classic/checks.d.ts +1 -0
  541. package/node_modules/zod/dist/types/v4/classic/coerce.d.ts +17 -0
  542. package/node_modules/zod/dist/types/v4/classic/compat.d.ts +48 -0
  543. package/node_modules/zod/dist/types/v4/classic/errors.d.ts +30 -0
  544. package/node_modules/zod/dist/types/v4/classic/external.d.ts +13 -0
  545. package/node_modules/zod/dist/types/v4/classic/index.d.ts +4 -0
  546. package/node_modules/zod/dist/types/v4/classic/iso.d.ts +22 -0
  547. package/node_modules/zod/dist/types/v4/classic/parse.d.ts +23 -0
  548. package/node_modules/zod/dist/types/v4/classic/schemas.d.ts +624 -0
  549. package/node_modules/zod/dist/types/v4/core/api.d.ts +281 -0
  550. package/node_modules/zod/dist/types/v4/core/checks.d.ts +277 -0
  551. package/node_modules/zod/dist/types/v4/core/config.d.ts +9 -0
  552. package/node_modules/zod/dist/types/v4/core/core.d.ts +47 -0
  553. package/node_modules/zod/dist/types/v4/core/doc.d.ts +14 -0
  554. package/node_modules/zod/dist/types/v4/core/errors.d.ts +204 -0
  555. package/node_modules/zod/dist/types/v4/core/function.d.ts +52 -0
  556. package/node_modules/zod/dist/types/v4/core/index.d.ts +15 -0
  557. package/node_modules/zod/dist/types/v4/core/json-schema.d.ts +87 -0
  558. package/node_modules/zod/dist/types/v4/core/parse.d.ts +25 -0
  559. package/node_modules/zod/dist/types/v4/core/regexes.d.ts +62 -0
  560. package/node_modules/zod/dist/types/v4/core/registries.d.ts +39 -0
  561. package/node_modules/zod/dist/types/v4/core/schemas.d.ts +1005 -0
  562. package/node_modules/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
  563. package/node_modules/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
  564. package/node_modules/zod/dist/types/v4/core/util.d.ts +183 -0
  565. package/node_modules/zod/dist/types/v4/core/versions.d.ts +5 -0
  566. package/node_modules/zod/dist/types/v4/core/zsf.d.ts +91 -0
  567. package/node_modules/zod/dist/types/v4/index.d.ts +3 -0
  568. package/node_modules/zod/dist/types/v4/locales/ar.d.ts +4 -0
  569. package/node_modules/zod/dist/types/v4/locales/az.d.ts +4 -0
  570. package/node_modules/zod/dist/types/v4/locales/be.d.ts +4 -0
  571. package/node_modules/zod/dist/types/v4/locales/ca.d.ts +4 -0
  572. package/node_modules/zod/dist/types/v4/locales/cs.d.ts +4 -0
  573. package/node_modules/zod/dist/types/v4/locales/de.d.ts +4 -0
  574. package/node_modules/zod/dist/types/v4/locales/en.d.ts +5 -0
  575. package/node_modules/zod/dist/types/v4/locales/es.d.ts +4 -0
  576. package/node_modules/zod/dist/types/v4/locales/fa.d.ts +4 -0
  577. package/node_modules/zod/dist/types/v4/locales/fi.d.ts +4 -0
  578. package/node_modules/zod/dist/types/v4/locales/fr-CA.d.ts +4 -0
  579. package/node_modules/zod/dist/types/v4/locales/fr.d.ts +4 -0
  580. package/node_modules/zod/dist/types/v4/locales/he.d.ts +4 -0
  581. package/node_modules/zod/dist/types/v4/locales/hu.d.ts +4 -0
  582. package/node_modules/zod/dist/types/v4/locales/id.d.ts +4 -0
  583. package/node_modules/zod/dist/types/v4/locales/index.d.ts +38 -0
  584. package/node_modules/zod/dist/types/v4/locales/it.d.ts +4 -0
  585. package/node_modules/zod/dist/types/v4/locales/ja.d.ts +4 -0
  586. package/node_modules/zod/dist/types/v4/locales/kh.d.ts +4 -0
  587. package/node_modules/zod/dist/types/v4/locales/ko.d.ts +4 -0
  588. package/node_modules/zod/dist/types/v4/locales/mk.d.ts +4 -0
  589. package/node_modules/zod/dist/types/v4/locales/ms.d.ts +4 -0
  590. package/node_modules/zod/dist/types/v4/locales/nl.d.ts +4 -0
  591. package/node_modules/zod/dist/types/v4/locales/no.d.ts +4 -0
  592. package/node_modules/zod/dist/types/v4/locales/ota.d.ts +4 -0
  593. package/node_modules/zod/dist/types/v4/locales/pl.d.ts +4 -0
  594. package/node_modules/zod/dist/types/v4/locales/ps.d.ts +4 -0
  595. package/node_modules/zod/dist/types/v4/locales/pt.d.ts +4 -0
  596. package/node_modules/zod/dist/types/v4/locales/ru.d.ts +4 -0
  597. package/node_modules/zod/dist/types/v4/locales/sl.d.ts +4 -0
  598. package/node_modules/zod/dist/types/v4/locales/sv.d.ts +4 -0
  599. package/node_modules/zod/dist/types/v4/locales/ta.d.ts +4 -0
  600. package/node_modules/zod/dist/types/v4/locales/th.d.ts +4 -0
  601. package/node_modules/zod/dist/types/v4/locales/tr.d.ts +5 -0
  602. package/node_modules/zod/dist/types/v4/locales/ua.d.ts +4 -0
  603. package/node_modules/zod/dist/types/v4/locales/ur.d.ts +4 -0
  604. package/node_modules/zod/dist/types/v4/locales/vi.d.ts +4 -0
  605. package/node_modules/zod/dist/types/v4/locales/zh-CN.d.ts +4 -0
  606. package/node_modules/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
  607. package/node_modules/zod/dist/types/v4/mini/checks.d.ts +1 -0
  608. package/node_modules/zod/dist/types/v4/mini/coerce.d.ts +7 -0
  609. package/node_modules/zod/dist/types/v4/mini/external.d.ts +11 -0
  610. package/node_modules/zod/dist/types/v4/mini/index.d.ts +3 -0
  611. package/node_modules/zod/dist/types/v4/mini/iso.d.ts +22 -0
  612. package/node_modules/zod/dist/types/v4/mini/parse.d.ts +1 -0
  613. package/node_modules/zod/dist/types/v4/mini/schemas.d.ts +351 -0
  614. package/node_modules/zod/package.json +120 -0
  615. package/node_modules/zod/v3/index.d.ts +3 -0
  616. package/node_modules/zod/v3/index.js +1 -0
  617. package/node_modules/zod/v4/core/index.d.ts +1 -0
  618. package/node_modules/zod/v4/core/index.js +1 -0
  619. package/node_modules/zod/v4/index.d.ts +3 -0
  620. package/node_modules/zod/v4/index.js +1 -0
  621. package/node_modules/zod/v4/locales/en.d.ts +2 -0
  622. package/node_modules/zod/v4/locales/en.js +2 -0
  623. package/node_modules/zod/v4/locales/index.d.ts +1 -0
  624. package/node_modules/zod/v4/locales/index.js +1 -0
  625. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  626. package/node_modules/zod/v4-mini/index.js +1 -0
  627. package/package.json +31 -33
  628. package/skills/fix/INSTRUCTIONS.md +40 -0
  629. package/skills/fix/skill.json +8 -0
  630. package/skills/review/INSTRUCTIONS.md +49 -0
  631. package/skills/review/skill.json +8 -0
  632. package/dist/commands/build.d.ts +0 -5
  633. package/dist/commands/build.d.ts.map +0 -1
  634. package/dist/commands/build.js +0 -173
  635. package/dist/commands/build.js.map +0 -1
  636. package/dist/commands/check.d.ts +0 -6
  637. package/dist/commands/check.d.ts.map +0 -1
  638. package/dist/commands/check.js +0 -145
  639. package/dist/commands/check.js.map +0 -1
  640. package/dist/commands/checkpoint-init.d.ts +0 -32
  641. package/dist/commands/checkpoint-init.d.ts.map +0 -1
  642. package/dist/commands/checkpoint-init.js +0 -521
  643. package/dist/commands/checkpoint-init.js.map +0 -1
  644. package/dist/commands/claim.d.ts +0 -22
  645. package/dist/commands/claim.d.ts.map +0 -1
  646. package/dist/commands/claim.js +0 -315
  647. package/dist/commands/claim.js.map +0 -1
  648. package/dist/commands/dco.d.ts +0 -55
  649. package/dist/commands/dco.d.ts.map +0 -1
  650. package/dist/commands/dco.js +0 -280
  651. package/dist/commands/dco.js.map +0 -1
  652. package/dist/commands/demo.d.ts +0 -10
  653. package/dist/commands/demo.d.ts.map +0 -1
  654. package/dist/commands/demo.js +0 -584
  655. package/dist/commands/demo.js.map +0 -1
  656. package/dist/commands/dev.d.ts +0 -5
  657. package/dist/commands/dev.d.ts.map +0 -1
  658. package/dist/commands/dev.js +0 -77
  659. package/dist/commands/dev.js.map +0 -1
  660. package/dist/commands/doctor.d.ts +0 -11
  661. package/dist/commands/doctor.d.ts.map +0 -1
  662. package/dist/commands/doctor.js +0 -524
  663. package/dist/commands/doctor.js.map +0 -1
  664. package/dist/commands/env.d.ts +0 -2
  665. package/dist/commands/env.d.ts.map +0 -1
  666. package/dist/commands/env.js +0 -320
  667. package/dist/commands/env.js.map +0 -1
  668. package/dist/commands/identity.d.ts +0 -14
  669. package/dist/commands/identity.d.ts.map +0 -1
  670. package/dist/commands/identity.js +0 -204
  671. package/dist/commands/identity.js.map +0 -1
  672. package/dist/commands/init.d.ts +0 -21
  673. package/dist/commands/init.d.ts.map +0 -1
  674. package/dist/commands/init.js +0 -358
  675. package/dist/commands/init.js.map +0 -1
  676. package/dist/commands/receipts.d.ts +0 -22
  677. package/dist/commands/receipts.d.ts.map +0 -1
  678. package/dist/commands/receipts.js +0 -189
  679. package/dist/commands/receipts.js.map +0 -1
  680. package/dist/commands/register.d.ts +0 -34
  681. package/dist/commands/register.d.ts.map +0 -1
  682. package/dist/commands/register.js +0 -463
  683. package/dist/commands/register.js.map +0 -1
  684. package/dist/commands/rotate.d.ts +0 -13
  685. package/dist/commands/rotate.d.ts.map +0 -1
  686. package/dist/commands/rotate.js +0 -167
  687. package/dist/commands/rotate.js.map +0 -1
  688. package/dist/commands/start.d.ts +0 -5
  689. package/dist/commands/start.d.ts.map +0 -1
  690. package/dist/commands/start.js +0 -129
  691. package/dist/commands/start.js.map +0 -1
  692. package/dist/commands/status.d.ts +0 -9
  693. package/dist/commands/status.d.ts.map +0 -1
  694. package/dist/commands/status.js +0 -199
  695. package/dist/commands/status.js.map +0 -1
  696. package/dist/commands/verify.d.ts +0 -22
  697. package/dist/commands/verify.d.ts.map +0 -1
  698. package/dist/commands/verify.js +0 -491
  699. package/dist/commands/verify.js.map +0 -1
  700. package/dist/components/agent-avatar.d.ts +0 -87
  701. package/dist/components/agent-avatar.d.ts.map +0 -1
  702. package/dist/components/agent-avatar.js +0 -257
  703. package/dist/components/agent-avatar.js.map +0 -1
  704. package/dist/components/agent-card.d.ts +0 -14
  705. package/dist/components/agent-card.d.ts.map +0 -1
  706. package/dist/components/agent-card.js +0 -167
  707. package/dist/components/agent-card.js.map +0 -1
  708. package/dist/components/agent-table.d.ts +0 -31
  709. package/dist/components/agent-table.d.ts.map +0 -1
  710. package/dist/components/agent-table.js +0 -341
  711. package/dist/components/agent-table.js.map +0 -1
  712. package/dist/components/box.d.ts +0 -14
  713. package/dist/components/box.d.ts.map +0 -1
  714. package/dist/components/box.js +0 -222
  715. package/dist/components/box.js.map +0 -1
  716. package/dist/components/claim-experience.d.ts +0 -21
  717. package/dist/components/claim-experience.d.ts.map +0 -1
  718. package/dist/components/claim-experience.js +0 -138
  719. package/dist/components/claim-experience.js.map +0 -1
  720. package/dist/components/index.d.ts +0 -17
  721. package/dist/components/index.d.ts.map +0 -1
  722. package/dist/components/index.js +0 -18
  723. package/dist/components/index.js.map +0 -1
  724. package/dist/components/messages.d.ts +0 -62
  725. package/dist/components/messages.d.ts.map +0 -1
  726. package/dist/components/messages.js +0 -146
  727. package/dist/components/messages.js.map +0 -1
  728. package/dist/components/types.d.ts +0 -51
  729. package/dist/components/types.d.ts.map +0 -1
  730. package/dist/components/types.js +0 -5
  731. package/dist/components/types.js.map +0 -1
  732. package/dist/components/welcome.d.ts +0 -46
  733. package/dist/components/welcome.d.ts.map +0 -1
  734. package/dist/components/welcome.js +0 -182
  735. package/dist/components/welcome.js.map +0 -1
  736. package/dist/dco.d.ts +0 -4
  737. package/dist/dco.d.ts.map +0 -1
  738. package/dist/dco.js +0 -21
  739. package/dist/dco.js.map +0 -1
  740. package/dist/effects/animation-engine.d.ts +0 -173
  741. package/dist/effects/animation-engine.d.ts.map +0 -1
  742. package/dist/effects/animation-engine.js +0 -254
  743. package/dist/effects/animation-engine.js.map +0 -1
  744. package/dist/effects/cli-integration.d.ts +0 -86
  745. package/dist/effects/cli-integration.d.ts.map +0 -1
  746. package/dist/effects/cli-integration.js +0 -310
  747. package/dist/effects/cli-integration.js.map +0 -1
  748. package/dist/effects/config.d.ts +0 -95
  749. package/dist/effects/config.d.ts.map +0 -1
  750. package/dist/effects/config.js +0 -216
  751. package/dist/effects/config.js.map +0 -1
  752. package/dist/effects/effect-runner.d.ts +0 -69
  753. package/dist/effects/effect-runner.d.ts.map +0 -1
  754. package/dist/effects/effect-runner.js +0 -255
  755. package/dist/effects/effect-runner.js.map +0 -1
  756. package/dist/effects/gradient.d.ts +0 -131
  757. package/dist/effects/gradient.d.ts.map +0 -1
  758. package/dist/effects/gradient.js +0 -236
  759. package/dist/effects/gradient.js.map +0 -1
  760. package/dist/effects/implementations/beams.d.ts +0 -80
  761. package/dist/effects/implementations/beams.d.ts.map +0 -1
  762. package/dist/effects/implementations/beams.js +0 -221
  763. package/dist/effects/implementations/beams.js.map +0 -1
  764. package/dist/effects/implementations/blackhole.d.ts +0 -98
  765. package/dist/effects/implementations/blackhole.d.ts.map +0 -1
  766. package/dist/effects/implementations/blackhole.js +0 -421
  767. package/dist/effects/implementations/blackhole.js.map +0 -1
  768. package/dist/effects/implementations/burn.d.ts +0 -74
  769. package/dist/effects/implementations/burn.d.ts.map +0 -1
  770. package/dist/effects/implementations/burn.js +0 -234
  771. package/dist/effects/implementations/burn.js.map +0 -1
  772. package/dist/effects/implementations/decrypt.d.ts +0 -115
  773. package/dist/effects/implementations/decrypt.d.ts.map +0 -1
  774. package/dist/effects/implementations/decrypt.js +0 -394
  775. package/dist/effects/implementations/decrypt.js.map +0 -1
  776. package/dist/effects/implementations/waves.d.ts +0 -78
  777. package/dist/effects/implementations/waves.d.ts.map +0 -1
  778. package/dist/effects/implementations/waves.js +0 -278
  779. package/dist/effects/implementations/waves.js.map +0 -1
  780. package/dist/effects/index.d.ts +0 -34
  781. package/dist/effects/index.d.ts.map +0 -1
  782. package/dist/effects/index.js +0 -114
  783. package/dist/effects/index.js.map +0 -1
  784. package/dist/effects/motion-engine.d.ts +0 -168
  785. package/dist/effects/motion-engine.d.ts.map +0 -1
  786. package/dist/effects/motion-engine.js +0 -353
  787. package/dist/effects/motion-engine.js.map +0 -1
  788. package/dist/effects/safe-executor.d.ts +0 -55
  789. package/dist/effects/safe-executor.d.ts.map +0 -1
  790. package/dist/effects/safe-executor.js +0 -210
  791. package/dist/effects/safe-executor.js.map +0 -1
  792. package/dist/effects/types.d.ts +0 -199
  793. package/dist/effects/types.d.ts.map +0 -1
  794. package/dist/effects/types.js +0 -80
  795. package/dist/effects/types.js.map +0 -1
  796. package/dist/effects/utils.d.ts +0 -104
  797. package/dist/effects/utils.d.ts.map +0 -1
  798. package/dist/effects/utils.js +0 -280
  799. package/dist/effects/utils.js.map +0 -1
  800. package/dist/index.d.ts +0 -4
  801. package/dist/index.js +0 -213
  802. package/dist/utils/api-response.d.ts +0 -96
  803. package/dist/utils/api-response.d.ts.map +0 -1
  804. package/dist/utils/api-response.js +0 -86
  805. package/dist/utils/api-response.js.map +0 -1
  806. package/dist/utils/checkpoint-api.d.ts +0 -86
  807. package/dist/utils/checkpoint-api.d.ts.map +0 -1
  808. package/dist/utils/checkpoint-api.js +0 -196
  809. package/dist/utils/checkpoint-api.js.map +0 -1
  810. package/dist/utils/checkpoint-env.d.ts +0 -23
  811. package/dist/utils/checkpoint-env.d.ts.map +0 -1
  812. package/dist/utils/checkpoint-env.js +0 -59
  813. package/dist/utils/checkpoint-env.js.map +0 -1
  814. package/dist/utils/checkpoint-scaffold.d.ts +0 -61
  815. package/dist/utils/checkpoint-scaffold.d.ts.map +0 -1
  816. package/dist/utils/checkpoint-scaffold.js +0 -268
  817. package/dist/utils/checkpoint-scaffold.js.map +0 -1
  818. package/dist/utils/cli-kit/browser.d.ts +0 -24
  819. package/dist/utils/cli-kit/browser.d.ts.map +0 -1
  820. package/dist/utils/cli-kit/browser.js +0 -58
  821. package/dist/utils/cli-kit/browser.js.map +0 -1
  822. package/dist/utils/cli-kit/claim-polling.d.ts +0 -18
  823. package/dist/utils/cli-kit/claim-polling.d.ts.map +0 -1
  824. package/dist/utils/cli-kit/claim-polling.js +0 -90
  825. package/dist/utils/cli-kit/claim-polling.js.map +0 -1
  826. package/dist/utils/cli-kit/diagnostics.d.ts +0 -9
  827. package/dist/utils/cli-kit/diagnostics.d.ts.map +0 -1
  828. package/dist/utils/cli-kit/diagnostics.js +0 -11
  829. package/dist/utils/cli-kit/diagnostics.js.map +0 -1
  830. package/dist/utils/cli-kit/fs-safe.d.ts +0 -14
  831. package/dist/utils/cli-kit/fs-safe.d.ts.map +0 -1
  832. package/dist/utils/cli-kit/fs-safe.js +0 -20
  833. package/dist/utils/cli-kit/fs-safe.js.map +0 -1
  834. package/dist/utils/cli-kit/index.d.ts +0 -15
  835. package/dist/utils/cli-kit/index.d.ts.map +0 -1
  836. package/dist/utils/cli-kit/index.js +0 -10
  837. package/dist/utils/cli-kit/index.js.map +0 -1
  838. package/dist/utils/cli-kit/json-file.d.ts +0 -21
  839. package/dist/utils/cli-kit/json-file.d.ts.map +0 -1
  840. package/dist/utils/cli-kit/json-file.js +0 -51
  841. package/dist/utils/cli-kit/json-file.js.map +0 -1
  842. package/dist/utils/cli-kit/marker-block.d.ts +0 -26
  843. package/dist/utils/cli-kit/marker-block.d.ts.map +0 -1
  844. package/dist/utils/cli-kit/marker-block.js +0 -61
  845. package/dist/utils/cli-kit/marker-block.js.map +0 -1
  846. package/dist/utils/cli-kit/paths.d.ts +0 -15
  847. package/dist/utils/cli-kit/paths.d.ts.map +0 -1
  848. package/dist/utils/cli-kit/paths.js +0 -21
  849. package/dist/utils/cli-kit/paths.js.map +0 -1
  850. package/dist/utils/cli-kit/secure-storage.d.ts +0 -14
  851. package/dist/utils/cli-kit/secure-storage.d.ts.map +0 -1
  852. package/dist/utils/cli-kit/secure-storage.js +0 -20
  853. package/dist/utils/cli-kit/secure-storage.js.map +0 -1
  854. package/dist/utils/cli-kit/step-report.d.ts +0 -16
  855. package/dist/utils/cli-kit/step-report.d.ts.map +0 -1
  856. package/dist/utils/cli-kit/step-report.js +0 -36
  857. package/dist/utils/cli-kit/step-report.js.map +0 -1
  858. package/dist/utils/dco/agent-metadata.d.ts +0 -24
  859. package/dist/utils/dco/agent-metadata.d.ts.map +0 -1
  860. package/dist/utils/dco/agent-metadata.js +0 -46
  861. package/dist/utils/dco/agent-metadata.js.map +0 -1
  862. package/dist/utils/dco/claude-config.d.ts +0 -55
  863. package/dist/utils/dco/claude-config.d.ts.map +0 -1
  864. package/dist/utils/dco/claude-config.js +0 -66
  865. package/dist/utils/dco/claude-config.js.map +0 -1
  866. package/dist/utils/dco/dispatch.d.ts +0 -59
  867. package/dist/utils/dco/dispatch.d.ts.map +0 -1
  868. package/dist/utils/dco/dispatch.js +0 -332
  869. package/dist/utils/dco/dispatch.js.map +0 -1
  870. package/dist/utils/dco/git-config.d.ts +0 -47
  871. package/dist/utils/dco/git-config.d.ts.map +0 -1
  872. package/dist/utils/dco/git-config.js +0 -161
  873. package/dist/utils/dco/git-config.js.map +0 -1
  874. package/dist/utils/dco/github.d.ts +0 -57
  875. package/dist/utils/dco/github.d.ts.map +0 -1
  876. package/dist/utils/dco/github.js +0 -165
  877. package/dist/utils/dco/github.js.map +0 -1
  878. package/dist/utils/dco/paths.d.ts +0 -9
  879. package/dist/utils/dco/paths.d.ts.map +0 -1
  880. package/dist/utils/dco/paths.js +0 -18
  881. package/dist/utils/dco/paths.js.map +0 -1
  882. package/dist/utils/dco/render.d.ts +0 -4
  883. package/dist/utils/dco/render.d.ts.map +0 -1
  884. package/dist/utils/dco/render.js +0 -35
  885. package/dist/utils/dco/render.js.map +0 -1
  886. package/dist/utils/dco/resolve-agent.d.ts +0 -54
  887. package/dist/utils/dco/resolve-agent.d.ts.map +0 -1
  888. package/dist/utils/dco/resolve-agent.js +0 -164
  889. package/dist/utils/dco/resolve-agent.js.map +0 -1
  890. package/dist/utils/dco/setup.d.ts +0 -50
  891. package/dist/utils/dco/setup.d.ts.map +0 -1
  892. package/dist/utils/dco/setup.js +0 -842
  893. package/dist/utils/dco/setup.js.map +0 -1
  894. package/dist/utils/dco/ssh-key.d.ts +0 -56
  895. package/dist/utils/dco/ssh-key.d.ts.map +0 -1
  896. package/dist/utils/dco/ssh-key.js +0 -197
  897. package/dist/utils/dco/ssh-key.js.map +0 -1
  898. package/dist/utils/dco/status.d.ts +0 -12
  899. package/dist/utils/dco/status.d.ts.map +0 -1
  900. package/dist/utils/dco/status.js +0 -238
  901. package/dist/utils/dco/status.js.map +0 -1
  902. package/dist/utils/dco/verify.d.ts +0 -114
  903. package/dist/utils/dco/verify.d.ts.map +0 -1
  904. package/dist/utils/dco/verify.js +0 -383
  905. package/dist/utils/dco/verify.js.map +0 -1
  906. package/dist/utils/env-manager.d.ts +0 -122
  907. package/dist/utils/env-manager.d.ts.map +0 -1
  908. package/dist/utils/env-manager.js +0 -514
  909. package/dist/utils/env-manager.js.map +0 -1
  910. package/dist/utils/gitignore.d.ts +0 -17
  911. package/dist/utils/gitignore.d.ts.map +0 -1
  912. package/dist/utils/gitignore.js +0 -40
  913. package/dist/utils/gitignore.js.map +0 -1
  914. package/dist/utils/identity-heal.d.ts +0 -16
  915. package/dist/utils/identity-heal.d.ts.map +0 -1
  916. package/dist/utils/identity-heal.js +0 -37
  917. package/dist/utils/identity-heal.js.map +0 -1
  918. package/dist/utils/identity-manager.d.ts +0 -41
  919. package/dist/utils/identity-manager.d.ts.map +0 -1
  920. package/dist/utils/identity-manager.js +0 -159
  921. package/dist/utils/identity-manager.js.map +0 -1
  922. package/dist/utils/kta-api.d.ts +0 -103
  923. package/dist/utils/kta-api.d.ts.map +0 -1
  924. package/dist/utils/kta-api.js +0 -149
  925. package/dist/utils/kta-api.js.map +0 -1
  926. package/dist/utils/platform-detector.d.ts +0 -54
  927. package/dist/utils/platform-detector.d.ts.map +0 -1
  928. package/dist/utils/platform-detector.js +0 -197
  929. package/dist/utils/platform-detector.js.map +0 -1
  930. package/dist/utils/poll.d.ts +0 -50
  931. package/dist/utils/poll.d.ts.map +0 -1
  932. package/dist/utils/poll.js +0 -73
  933. package/dist/utils/poll.js.map +0 -1
  934. package/dist/utils/prompts.d.ts +0 -24
  935. package/dist/utils/prompts.d.ts.map +0 -1
  936. package/dist/utils/prompts.js +0 -160
  937. package/dist/utils/prompts.js.map +0 -1
  938. package/dist/utils/screen-manager.d.ts +0 -10
  939. package/dist/utils/screen-manager.d.ts.map +0 -1
  940. package/dist/utils/screen-manager.js +0 -54
  941. package/dist/utils/screen-manager.js.map +0 -1
  942. package/dist/utils/time.d.ts +0 -19
  943. package/dist/utils/time.d.ts.map +0 -1
  944. package/dist/utils/time.js +0 -30
  945. package/dist/utils/time.js.map +0 -1
@@ -0,0 +1,3245 @@
1
+ import { z } from 'zod';
2
+ export declare const TaskSourceProviderSchema: z.ZodEnum<["linear", "github", "discord", "didcomm", "a2a"]>;
3
+ export declare const TaskStandingCapabilitySchema: z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>;
4
+ /** Fixed allocation per call, not a provider price estimate or a guaranteed billing ceiling. */
5
+ export declare const TaskModelPolicySchema: z.ZodObject<{
6
+ provider: z.ZodLiteral<"anthropic">;
7
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
8
+ maxOutputTokens: z.ZodNumber;
9
+ maxRequestBytes: z.ZodNumber;
10
+ reservedCostMicrousd: z.ZodNumber;
11
+ }, "strict", z.ZodTypeAny, {
12
+ provider: "anthropic";
13
+ models: string[];
14
+ maxOutputTokens: number;
15
+ maxRequestBytes: number;
16
+ reservedCostMicrousd: number;
17
+ }, {
18
+ provider: "anthropic";
19
+ models: string[];
20
+ maxOutputTokens: number;
21
+ maxRequestBytes: number;
22
+ reservedCostMicrousd: number;
23
+ }>;
24
+ export type TaskModelPolicy = z.infer<typeof TaskModelPolicySchema>;
25
+ /** Initial text-only Messages profile. No caller endpoints, keys, hosted tools or streaming. */
26
+ export declare const TaskModelMessagesSchema: z.ZodObject<{
27
+ model: z.ZodString;
28
+ max_tokens: z.ZodNumber;
29
+ messages: z.ZodArray<z.ZodObject<{
30
+ role: z.ZodEnum<["user", "assistant"]>;
31
+ content: z.ZodString;
32
+ }, "strict", z.ZodTypeAny, {
33
+ role: "user" | "assistant";
34
+ content: string;
35
+ }, {
36
+ role: "user" | "assistant";
37
+ content: string;
38
+ }>, "many">;
39
+ system: z.ZodOptional<z.ZodString>;
40
+ temperature: z.ZodOptional<z.ZodNumber>;
41
+ stream: z.ZodOptional<z.ZodLiteral<false>>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ model: string;
44
+ max_tokens: number;
45
+ messages: {
46
+ role: "user" | "assistant";
47
+ content: string;
48
+ }[];
49
+ system?: string | undefined;
50
+ temperature?: number | undefined;
51
+ stream?: false | undefined;
52
+ }, {
53
+ model: string;
54
+ max_tokens: number;
55
+ messages: {
56
+ role: "user" | "assistant";
57
+ content: string;
58
+ }[];
59
+ system?: string | undefined;
60
+ temperature?: number | undefined;
61
+ stream?: false | undefined;
62
+ }>;
63
+ export type TaskModelMessages = z.infer<typeof TaskModelMessagesSchema>;
64
+ export declare const TaskModelStatusSchema: z.ZodObject<{
65
+ admissionId: z.ZodString;
66
+ operationId: z.ZodString;
67
+ ownerEpoch: z.ZodNumber;
68
+ }, "strict", z.ZodTypeAny, {
69
+ operationId: string;
70
+ ownerEpoch: number;
71
+ admissionId: string;
72
+ }, {
73
+ operationId: string;
74
+ ownerEpoch: number;
75
+ admissionId: string;
76
+ }>;
77
+ export declare const TaskModelInvokeSchema: z.ZodObject<{
78
+ admissionId: z.ZodString;
79
+ operationId: z.ZodString;
80
+ ownerEpoch: z.ZodNumber;
81
+ } & {
82
+ request: z.ZodObject<{
83
+ model: z.ZodString;
84
+ max_tokens: z.ZodNumber;
85
+ messages: z.ZodArray<z.ZodObject<{
86
+ role: z.ZodEnum<["user", "assistant"]>;
87
+ content: z.ZodString;
88
+ }, "strict", z.ZodTypeAny, {
89
+ role: "user" | "assistant";
90
+ content: string;
91
+ }, {
92
+ role: "user" | "assistant";
93
+ content: string;
94
+ }>, "many">;
95
+ system: z.ZodOptional<z.ZodString>;
96
+ temperature: z.ZodOptional<z.ZodNumber>;
97
+ stream: z.ZodOptional<z.ZodLiteral<false>>;
98
+ }, "strict", z.ZodTypeAny, {
99
+ model: string;
100
+ max_tokens: number;
101
+ messages: {
102
+ role: "user" | "assistant";
103
+ content: string;
104
+ }[];
105
+ system?: string | undefined;
106
+ temperature?: number | undefined;
107
+ stream?: false | undefined;
108
+ }, {
109
+ model: string;
110
+ max_tokens: number;
111
+ messages: {
112
+ role: "user" | "assistant";
113
+ content: string;
114
+ }[];
115
+ system?: string | undefined;
116
+ temperature?: number | undefined;
117
+ stream?: false | undefined;
118
+ }>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ request: {
121
+ model: string;
122
+ max_tokens: number;
123
+ messages: {
124
+ role: "user" | "assistant";
125
+ content: string;
126
+ }[];
127
+ system?: string | undefined;
128
+ temperature?: number | undefined;
129
+ stream?: false | undefined;
130
+ };
131
+ operationId: string;
132
+ ownerEpoch: number;
133
+ admissionId: string;
134
+ }, {
135
+ request: {
136
+ model: string;
137
+ max_tokens: number;
138
+ messages: {
139
+ role: "user" | "assistant";
140
+ content: string;
141
+ }[];
142
+ system?: string | undefined;
143
+ temperature?: number | undefined;
144
+ stream?: false | undefined;
145
+ };
146
+ operationId: string;
147
+ ownerEpoch: number;
148
+ admissionId: string;
149
+ }>;
150
+ export type TaskModelInvoke = z.infer<typeof TaskModelInvokeSchema>;
151
+ export type TaskModelStatus = z.infer<typeof TaskModelStatusSchema>;
152
+ export declare const TaskModelUsageSchema: z.ZodObject<{
153
+ newInputTokens: z.ZodNullable<z.ZodNumber>;
154
+ cacheReadInputTokens: z.ZodNullable<z.ZodNumber>;
155
+ cacheWriteInputTokens: z.ZodNullable<z.ZodNumber>;
156
+ cacheWrite5mInputTokens: z.ZodNullable<z.ZodNumber>;
157
+ cacheWrite1hInputTokens: z.ZodNullable<z.ZodNumber>;
158
+ totalInputTokens: z.ZodNullable<z.ZodNumber>;
159
+ outputTokens: z.ZodNullable<z.ZodNumber>;
160
+ coverage: z.ZodEnum<["complete", "partial", "unknown"]>;
161
+ }, "strict", z.ZodTypeAny, {
162
+ outputTokens: number | null;
163
+ newInputTokens: number | null;
164
+ cacheWriteInputTokens: number | null;
165
+ cacheReadInputTokens: number | null;
166
+ cacheWrite5mInputTokens: number | null;
167
+ cacheWrite1hInputTokens: number | null;
168
+ totalInputTokens: number | null;
169
+ coverage: "unknown" | "complete" | "partial";
170
+ }, {
171
+ outputTokens: number | null;
172
+ newInputTokens: number | null;
173
+ cacheWriteInputTokens: number | null;
174
+ cacheReadInputTokens: number | null;
175
+ cacheWrite5mInputTokens: number | null;
176
+ cacheWrite1hInputTokens: number | null;
177
+ totalInputTokens: number | null;
178
+ coverage: "unknown" | "complete" | "partial";
179
+ }>;
180
+ export declare const TaskModelReceiptSchema: z.ZodObject<{
181
+ schema: z.ZodLiteral<"kya.task.model-receipt.v1">;
182
+ admissionId: z.ZodString;
183
+ admissionDigest: z.ZodString;
184
+ operationId: z.ZodString;
185
+ requestDigest: z.ZodString;
186
+ provider: z.ZodLiteral<"anthropic">;
187
+ model: z.ZodString;
188
+ reservedCostMicrousd: z.ZodNumber;
189
+ usage: z.ZodNullable<z.ZodObject<{
190
+ newInputTokens: z.ZodNullable<z.ZodNumber>;
191
+ cacheReadInputTokens: z.ZodNullable<z.ZodNumber>;
192
+ cacheWriteInputTokens: z.ZodNullable<z.ZodNumber>;
193
+ cacheWrite5mInputTokens: z.ZodNullable<z.ZodNumber>;
194
+ cacheWrite1hInputTokens: z.ZodNullable<z.ZodNumber>;
195
+ totalInputTokens: z.ZodNullable<z.ZodNumber>;
196
+ outputTokens: z.ZodNullable<z.ZodNumber>;
197
+ coverage: z.ZodEnum<["complete", "partial", "unknown"]>;
198
+ }, "strict", z.ZodTypeAny, {
199
+ outputTokens: number | null;
200
+ newInputTokens: number | null;
201
+ cacheWriteInputTokens: number | null;
202
+ cacheReadInputTokens: number | null;
203
+ cacheWrite5mInputTokens: number | null;
204
+ cacheWrite1hInputTokens: number | null;
205
+ totalInputTokens: number | null;
206
+ coverage: "unknown" | "complete" | "partial";
207
+ }, {
208
+ outputTokens: number | null;
209
+ newInputTokens: number | null;
210
+ cacheWriteInputTokens: number | null;
211
+ cacheReadInputTokens: number | null;
212
+ cacheWrite5mInputTokens: number | null;
213
+ cacheWrite1hInputTokens: number | null;
214
+ totalInputTokens: number | null;
215
+ coverage: "unknown" | "complete" | "partial";
216
+ }>>;
217
+ outputDigest: z.ZodOptional<z.ZodString>;
218
+ code: z.ZodEnum<["MODEL_STARTED", "MODEL_COMPLETED", "MODEL_OUTCOME_UNKNOWN"]>;
219
+ durationMs: z.ZodNullable<z.ZodNumber>;
220
+ requestStartedAtMs: z.ZodNullable<z.ZodNumber>;
221
+ costBasis: z.ZodLiteral<"unknown">;
222
+ billingVerified: z.ZodLiteral<false>;
223
+ }, "strict", z.ZodTypeAny, {
224
+ code: "MODEL_STARTED" | "MODEL_COMPLETED" | "MODEL_OUTCOME_UNKNOWN";
225
+ provider: "anthropic";
226
+ model: string;
227
+ requestStartedAtMs: number | null;
228
+ usage: {
229
+ outputTokens: number | null;
230
+ newInputTokens: number | null;
231
+ cacheWriteInputTokens: number | null;
232
+ cacheReadInputTokens: number | null;
233
+ cacheWrite5mInputTokens: number | null;
234
+ cacheWrite1hInputTokens: number | null;
235
+ totalInputTokens: number | null;
236
+ coverage: "unknown" | "complete" | "partial";
237
+ } | null;
238
+ operationId: string;
239
+ reservedCostMicrousd: number;
240
+ admissionId: string;
241
+ schema: "kya.task.model-receipt.v1";
242
+ admissionDigest: string;
243
+ requestDigest: string;
244
+ durationMs: number | null;
245
+ costBasis: "unknown";
246
+ billingVerified: false;
247
+ outputDigest?: string | undefined;
248
+ }, {
249
+ code: "MODEL_STARTED" | "MODEL_COMPLETED" | "MODEL_OUTCOME_UNKNOWN";
250
+ provider: "anthropic";
251
+ model: string;
252
+ requestStartedAtMs: number | null;
253
+ usage: {
254
+ outputTokens: number | null;
255
+ newInputTokens: number | null;
256
+ cacheWriteInputTokens: number | null;
257
+ cacheReadInputTokens: number | null;
258
+ cacheWrite5mInputTokens: number | null;
259
+ cacheWrite1hInputTokens: number | null;
260
+ totalInputTokens: number | null;
261
+ coverage: "unknown" | "complete" | "partial";
262
+ } | null;
263
+ operationId: string;
264
+ reservedCostMicrousd: number;
265
+ admissionId: string;
266
+ schema: "kya.task.model-receipt.v1";
267
+ admissionDigest: string;
268
+ requestDigest: string;
269
+ durationMs: number | null;
270
+ costBasis: "unknown";
271
+ billingVerified: false;
272
+ outputDigest?: string | undefined;
273
+ }>;
274
+ export type TaskModelReceipt = z.infer<typeof TaskModelReceiptSchema>;
275
+ export declare const TaskStandingPolicySchema: z.ZodObject<{
276
+ maxConcurrentOperations: z.ZodNumber;
277
+ maxAttemptsPerTask: z.ZodNumber;
278
+ workers: z.ZodArray<z.ZodObject<{
279
+ did: z.ZodString;
280
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
281
+ }, "strict", z.ZodTypeAny, {
282
+ did: string;
283
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
284
+ }, {
285
+ did: string;
286
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
287
+ }>, "many">;
288
+ }, "strict", z.ZodTypeAny, {
289
+ maxConcurrentOperations: number;
290
+ maxAttemptsPerTask: number;
291
+ workers: {
292
+ did: string;
293
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
294
+ }[];
295
+ }, {
296
+ maxConcurrentOperations: number;
297
+ maxAttemptsPerTask: number;
298
+ workers: {
299
+ did: string;
300
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
301
+ }[];
302
+ }>;
303
+ export declare const LinearInstallationWorkflowSchema: z.ZodEffects<z.ZodObject<{
304
+ destinationDid: z.ZodString;
305
+ ownerEpoch: z.ZodNumber;
306
+ allowedActorIds: z.ZodArray<z.ZodString, "many">;
307
+ allowedRepositories: z.ZodArray<z.ZodString, "many">;
308
+ maxRuntimeSeconds: z.ZodNumber;
309
+ maxOperations: z.ZodNumber;
310
+ maxCostMicrousd: z.ZodNumber;
311
+ allowDraftPullRequest: z.ZodDefault<z.ZodBoolean>;
312
+ executionMode: z.ZodDefault<z.ZodEnum<["review_required", "work_to_draft_pr"]>>;
313
+ standingApproval: z.ZodOptional<z.ZodObject<{
314
+ maxConcurrentOperations: z.ZodNumber;
315
+ maxAttemptsPerTask: z.ZodNumber;
316
+ workers: z.ZodArray<z.ZodObject<{
317
+ did: z.ZodString;
318
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
319
+ }, "strict", z.ZodTypeAny, {
320
+ did: string;
321
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
322
+ }, {
323
+ did: string;
324
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
325
+ }>, "many">;
326
+ }, "strict", z.ZodTypeAny, {
327
+ maxConcurrentOperations: number;
328
+ maxAttemptsPerTask: number;
329
+ workers: {
330
+ did: string;
331
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
332
+ }[];
333
+ }, {
334
+ maxConcurrentOperations: number;
335
+ maxAttemptsPerTask: number;
336
+ workers: {
337
+ did: string;
338
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
339
+ }[];
340
+ }>>;
341
+ modelPolicy: z.ZodOptional<z.ZodObject<{
342
+ provider: z.ZodLiteral<"anthropic">;
343
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
344
+ maxOutputTokens: z.ZodNumber;
345
+ maxRequestBytes: z.ZodNumber;
346
+ reservedCostMicrousd: z.ZodNumber;
347
+ }, "strict", z.ZodTypeAny, {
348
+ provider: "anthropic";
349
+ models: string[];
350
+ maxOutputTokens: number;
351
+ maxRequestBytes: number;
352
+ reservedCostMicrousd: number;
353
+ }, {
354
+ provider: "anthropic";
355
+ models: string[];
356
+ maxOutputTokens: number;
357
+ maxRequestBytes: number;
358
+ reservedCostMicrousd: number;
359
+ }>>;
360
+ }, "strict", z.ZodTypeAny, {
361
+ ownerEpoch: number;
362
+ destinationDid: string;
363
+ allowedActorIds: string[];
364
+ allowedRepositories: string[];
365
+ maxRuntimeSeconds: number;
366
+ maxOperations: number;
367
+ maxCostMicrousd: number;
368
+ allowDraftPullRequest: boolean;
369
+ executionMode: "review_required" | "work_to_draft_pr";
370
+ standingApproval?: {
371
+ maxConcurrentOperations: number;
372
+ maxAttemptsPerTask: number;
373
+ workers: {
374
+ did: string;
375
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
376
+ }[];
377
+ } | undefined;
378
+ modelPolicy?: {
379
+ provider: "anthropic";
380
+ models: string[];
381
+ maxOutputTokens: number;
382
+ maxRequestBytes: number;
383
+ reservedCostMicrousd: number;
384
+ } | undefined;
385
+ }, {
386
+ ownerEpoch: number;
387
+ destinationDid: string;
388
+ allowedActorIds: string[];
389
+ allowedRepositories: string[];
390
+ maxRuntimeSeconds: number;
391
+ maxOperations: number;
392
+ maxCostMicrousd: number;
393
+ allowDraftPullRequest?: boolean | undefined;
394
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
395
+ standingApproval?: {
396
+ maxConcurrentOperations: number;
397
+ maxAttemptsPerTask: number;
398
+ workers: {
399
+ did: string;
400
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
401
+ }[];
402
+ } | undefined;
403
+ modelPolicy?: {
404
+ provider: "anthropic";
405
+ models: string[];
406
+ maxOutputTokens: number;
407
+ maxRequestBytes: number;
408
+ reservedCostMicrousd: number;
409
+ } | undefined;
410
+ }>, {
411
+ ownerEpoch: number;
412
+ destinationDid: string;
413
+ allowedActorIds: string[];
414
+ allowedRepositories: string[];
415
+ maxRuntimeSeconds: number;
416
+ maxOperations: number;
417
+ maxCostMicrousd: number;
418
+ allowDraftPullRequest: boolean;
419
+ executionMode: "review_required" | "work_to_draft_pr";
420
+ standingApproval?: {
421
+ maxConcurrentOperations: number;
422
+ maxAttemptsPerTask: number;
423
+ workers: {
424
+ did: string;
425
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
426
+ }[];
427
+ } | undefined;
428
+ modelPolicy?: {
429
+ provider: "anthropic";
430
+ models: string[];
431
+ maxOutputTokens: number;
432
+ maxRequestBytes: number;
433
+ reservedCostMicrousd: number;
434
+ } | undefined;
435
+ }, {
436
+ ownerEpoch: number;
437
+ destinationDid: string;
438
+ allowedActorIds: string[];
439
+ allowedRepositories: string[];
440
+ maxRuntimeSeconds: number;
441
+ maxOperations: number;
442
+ maxCostMicrousd: number;
443
+ allowDraftPullRequest?: boolean | undefined;
444
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
445
+ standingApproval?: {
446
+ maxConcurrentOperations: number;
447
+ maxAttemptsPerTask: number;
448
+ workers: {
449
+ did: string;
450
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
451
+ }[];
452
+ } | undefined;
453
+ modelPolicy?: {
454
+ provider: "anthropic";
455
+ models: string[];
456
+ maxOutputTokens: number;
457
+ maxRequestBytes: number;
458
+ reservedCostMicrousd: number;
459
+ } | undefined;
460
+ }>;
461
+ export type LinearInstallationWorkflow = z.infer<typeof LinearInstallationWorkflowSchema>;
462
+ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
463
+ projectId: z.ZodString;
464
+ workspaceId: z.ZodString;
465
+ oauthClientId: z.ZodString;
466
+ appUserId: z.ZodString;
467
+ webhookId: z.ZodString;
468
+ webhookSecret: z.ZodString;
469
+ accessToken: z.ZodString;
470
+ enabled: z.ZodDefault<z.ZodBoolean>;
471
+ workflow: z.ZodEffects<z.ZodObject<{
472
+ destinationDid: z.ZodString;
473
+ ownerEpoch: z.ZodNumber;
474
+ allowedActorIds: z.ZodArray<z.ZodString, "many">;
475
+ allowedRepositories: z.ZodArray<z.ZodString, "many">;
476
+ maxRuntimeSeconds: z.ZodNumber;
477
+ maxOperations: z.ZodNumber;
478
+ maxCostMicrousd: z.ZodNumber;
479
+ allowDraftPullRequest: z.ZodDefault<z.ZodBoolean>;
480
+ executionMode: z.ZodDefault<z.ZodEnum<["review_required", "work_to_draft_pr"]>>;
481
+ standingApproval: z.ZodOptional<z.ZodObject<{
482
+ maxConcurrentOperations: z.ZodNumber;
483
+ maxAttemptsPerTask: z.ZodNumber;
484
+ workers: z.ZodArray<z.ZodObject<{
485
+ did: z.ZodString;
486
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
487
+ }, "strict", z.ZodTypeAny, {
488
+ did: string;
489
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
490
+ }, {
491
+ did: string;
492
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
493
+ }>, "many">;
494
+ }, "strict", z.ZodTypeAny, {
495
+ maxConcurrentOperations: number;
496
+ maxAttemptsPerTask: number;
497
+ workers: {
498
+ did: string;
499
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
500
+ }[];
501
+ }, {
502
+ maxConcurrentOperations: number;
503
+ maxAttemptsPerTask: number;
504
+ workers: {
505
+ did: string;
506
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
507
+ }[];
508
+ }>>;
509
+ modelPolicy: z.ZodOptional<z.ZodObject<{
510
+ provider: z.ZodLiteral<"anthropic">;
511
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
512
+ maxOutputTokens: z.ZodNumber;
513
+ maxRequestBytes: z.ZodNumber;
514
+ reservedCostMicrousd: z.ZodNumber;
515
+ }, "strict", z.ZodTypeAny, {
516
+ provider: "anthropic";
517
+ models: string[];
518
+ maxOutputTokens: number;
519
+ maxRequestBytes: number;
520
+ reservedCostMicrousd: number;
521
+ }, {
522
+ provider: "anthropic";
523
+ models: string[];
524
+ maxOutputTokens: number;
525
+ maxRequestBytes: number;
526
+ reservedCostMicrousd: number;
527
+ }>>;
528
+ }, "strict", z.ZodTypeAny, {
529
+ ownerEpoch: number;
530
+ destinationDid: string;
531
+ allowedActorIds: string[];
532
+ allowedRepositories: string[];
533
+ maxRuntimeSeconds: number;
534
+ maxOperations: number;
535
+ maxCostMicrousd: number;
536
+ allowDraftPullRequest: boolean;
537
+ executionMode: "review_required" | "work_to_draft_pr";
538
+ standingApproval?: {
539
+ maxConcurrentOperations: number;
540
+ maxAttemptsPerTask: number;
541
+ workers: {
542
+ did: string;
543
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
544
+ }[];
545
+ } | undefined;
546
+ modelPolicy?: {
547
+ provider: "anthropic";
548
+ models: string[];
549
+ maxOutputTokens: number;
550
+ maxRequestBytes: number;
551
+ reservedCostMicrousd: number;
552
+ } | undefined;
553
+ }, {
554
+ ownerEpoch: number;
555
+ destinationDid: string;
556
+ allowedActorIds: string[];
557
+ allowedRepositories: string[];
558
+ maxRuntimeSeconds: number;
559
+ maxOperations: number;
560
+ maxCostMicrousd: number;
561
+ allowDraftPullRequest?: boolean | undefined;
562
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
563
+ standingApproval?: {
564
+ maxConcurrentOperations: number;
565
+ maxAttemptsPerTask: number;
566
+ workers: {
567
+ did: string;
568
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
569
+ }[];
570
+ } | undefined;
571
+ modelPolicy?: {
572
+ provider: "anthropic";
573
+ models: string[];
574
+ maxOutputTokens: number;
575
+ maxRequestBytes: number;
576
+ reservedCostMicrousd: number;
577
+ } | undefined;
578
+ }>, {
579
+ ownerEpoch: number;
580
+ destinationDid: string;
581
+ allowedActorIds: string[];
582
+ allowedRepositories: string[];
583
+ maxRuntimeSeconds: number;
584
+ maxOperations: number;
585
+ maxCostMicrousd: number;
586
+ allowDraftPullRequest: boolean;
587
+ executionMode: "review_required" | "work_to_draft_pr";
588
+ standingApproval?: {
589
+ maxConcurrentOperations: number;
590
+ maxAttemptsPerTask: number;
591
+ workers: {
592
+ did: string;
593
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
594
+ }[];
595
+ } | undefined;
596
+ modelPolicy?: {
597
+ provider: "anthropic";
598
+ models: string[];
599
+ maxOutputTokens: number;
600
+ maxRequestBytes: number;
601
+ reservedCostMicrousd: number;
602
+ } | undefined;
603
+ }, {
604
+ ownerEpoch: number;
605
+ destinationDid: string;
606
+ allowedActorIds: string[];
607
+ allowedRepositories: string[];
608
+ maxRuntimeSeconds: number;
609
+ maxOperations: number;
610
+ maxCostMicrousd: number;
611
+ allowDraftPullRequest?: boolean | undefined;
612
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
613
+ standingApproval?: {
614
+ maxConcurrentOperations: number;
615
+ maxAttemptsPerTask: number;
616
+ workers: {
617
+ did: string;
618
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
619
+ }[];
620
+ } | undefined;
621
+ modelPolicy?: {
622
+ provider: "anthropic";
623
+ models: string[];
624
+ maxOutputTokens: number;
625
+ maxRequestBytes: number;
626
+ reservedCostMicrousd: number;
627
+ } | undefined;
628
+ }>;
629
+ }, "strict", z.ZodTypeAny, {
630
+ projectId: string;
631
+ enabled: boolean;
632
+ workspaceId: string;
633
+ oauthClientId: string;
634
+ appUserId: string;
635
+ webhookId: string;
636
+ webhookSecret: string;
637
+ accessToken: string;
638
+ workflow: {
639
+ ownerEpoch: number;
640
+ destinationDid: string;
641
+ allowedActorIds: string[];
642
+ allowedRepositories: string[];
643
+ maxRuntimeSeconds: number;
644
+ maxOperations: number;
645
+ maxCostMicrousd: number;
646
+ allowDraftPullRequest: boolean;
647
+ executionMode: "review_required" | "work_to_draft_pr";
648
+ standingApproval?: {
649
+ maxConcurrentOperations: number;
650
+ maxAttemptsPerTask: number;
651
+ workers: {
652
+ did: string;
653
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
654
+ }[];
655
+ } | undefined;
656
+ modelPolicy?: {
657
+ provider: "anthropic";
658
+ models: string[];
659
+ maxOutputTokens: number;
660
+ maxRequestBytes: number;
661
+ reservedCostMicrousd: number;
662
+ } | undefined;
663
+ };
664
+ }, {
665
+ projectId: string;
666
+ workspaceId: string;
667
+ oauthClientId: string;
668
+ appUserId: string;
669
+ webhookId: string;
670
+ webhookSecret: string;
671
+ accessToken: string;
672
+ workflow: {
673
+ ownerEpoch: number;
674
+ destinationDid: string;
675
+ allowedActorIds: string[];
676
+ allowedRepositories: string[];
677
+ maxRuntimeSeconds: number;
678
+ maxOperations: number;
679
+ maxCostMicrousd: number;
680
+ allowDraftPullRequest?: boolean | undefined;
681
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
682
+ standingApproval?: {
683
+ maxConcurrentOperations: number;
684
+ maxAttemptsPerTask: number;
685
+ workers: {
686
+ did: string;
687
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
688
+ }[];
689
+ } | undefined;
690
+ modelPolicy?: {
691
+ provider: "anthropic";
692
+ models: string[];
693
+ maxOutputTokens: number;
694
+ maxRequestBytes: number;
695
+ reservedCostMicrousd: number;
696
+ } | undefined;
697
+ };
698
+ enabled?: boolean | undefined;
699
+ }>;
700
+ export declare const GitHubTaskSourceConfigSchema: z.ZodObject<{
701
+ provider: z.ZodLiteral<"github">;
702
+ githubInstallationId: z.ZodNumber;
703
+ repository: z.ZodEffects<z.ZodString, string, string>;
704
+ agentUserId: z.ZodString;
705
+ webhookSecret: z.ZodString;
706
+ }, "strict", z.ZodTypeAny, {
707
+ provider: "github";
708
+ repository: string;
709
+ webhookSecret: string;
710
+ githubInstallationId: number;
711
+ agentUserId: string;
712
+ }, {
713
+ provider: "github";
714
+ repository: string;
715
+ webhookSecret: string;
716
+ githubInstallationId: number;
717
+ agentUserId: string;
718
+ }>;
719
+ export declare const DiscordTaskSourceConfigSchema: z.ZodObject<{
720
+ provider: z.ZodLiteral<"discord">;
721
+ applicationId: z.ZodString;
722
+ publicKeyHex: z.ZodString;
723
+ guildId: z.ZodString;
724
+ channelIds: z.ZodArray<z.ZodString, "many">;
725
+ commandName: z.ZodString;
726
+ }, "strict", z.ZodTypeAny, {
727
+ provider: "discord";
728
+ applicationId: string;
729
+ publicKeyHex: string;
730
+ guildId: string;
731
+ channelIds: string[];
732
+ commandName: string;
733
+ }, {
734
+ provider: "discord";
735
+ applicationId: string;
736
+ publicKeyHex: string;
737
+ guildId: string;
738
+ channelIds: string[];
739
+ commandName: string;
740
+ }>;
741
+ export declare const DidCommTaskSourceConfigSchema: z.ZodObject<{
742
+ provider: z.ZodLiteral<"didcomm">;
743
+ recipientDid: z.ZodString;
744
+ }, "strict", z.ZodTypeAny, {
745
+ provider: "didcomm";
746
+ recipientDid: string;
747
+ }, {
748
+ provider: "didcomm";
749
+ recipientDid: string;
750
+ }>;
751
+ export declare const A2ATaskSourceConfigSchema: z.ZodObject<{
752
+ provider: z.ZodLiteral<"a2a">;
753
+ recipientDid: z.ZodString;
754
+ }, "strict", z.ZodTypeAny, {
755
+ provider: "a2a";
756
+ recipientDid: string;
757
+ }, {
758
+ provider: "a2a";
759
+ recipientDid: string;
760
+ }>;
761
+ export declare const DidCommTaskSourceBindingSchema: z.ZodObject<{
762
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
763
+ organizationId: z.ZodString;
764
+ projectId: z.ZodString;
765
+ installationId: z.ZodString;
766
+ ownerEpoch: z.ZodNumber;
767
+ }, "strict", z.ZodTypeAny, {
768
+ projectId: string;
769
+ organizationId: string;
770
+ ownerEpoch: number;
771
+ schema: "kya.task.source-binding.v1";
772
+ installationId: string;
773
+ }, {
774
+ projectId: string;
775
+ organizationId: string;
776
+ ownerEpoch: number;
777
+ schema: "kya.task.source-binding.v1";
778
+ installationId: string;
779
+ }>;
780
+ export declare const DidCommTaskSourceMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
781
+ id: z.ZodString;
782
+ from: z.ZodString;
783
+ to: z.ZodArray<z.ZodString, "many">;
784
+ created_time: z.ZodNumber;
785
+ expires_time: z.ZodNumber;
786
+ thid: z.ZodString;
787
+ pthid: z.ZodOptional<z.ZodString>;
788
+ } & {
789
+ type: z.ZodLiteral<"https://kya-os.ai/didcomm/task/assign">;
790
+ body: z.ZodObject<{
791
+ description: z.ZodString;
792
+ priority: z.ZodOptional<z.ZodEnum<["low", "normal", "urgent"]>>;
793
+ relayTimeoutMs: z.ZodOptional<z.ZodNumber>;
794
+ taskId: z.ZodString;
795
+ context: z.ZodObject<{
796
+ kyaTaskSource: z.ZodObject<{
797
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
798
+ organizationId: z.ZodString;
799
+ projectId: z.ZodString;
800
+ installationId: z.ZodString;
801
+ ownerEpoch: z.ZodNumber;
802
+ }, "strict", z.ZodTypeAny, {
803
+ projectId: string;
804
+ organizationId: string;
805
+ ownerEpoch: number;
806
+ schema: "kya.task.source-binding.v1";
807
+ installationId: string;
808
+ }, {
809
+ projectId: string;
810
+ organizationId: string;
811
+ ownerEpoch: number;
812
+ schema: "kya.task.source-binding.v1";
813
+ installationId: string;
814
+ }>;
815
+ repo: z.ZodOptional<z.ZodString>;
816
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
817
+ kyaTaskSource: z.ZodObject<{
818
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
819
+ organizationId: z.ZodString;
820
+ projectId: z.ZodString;
821
+ installationId: z.ZodString;
822
+ ownerEpoch: z.ZodNumber;
823
+ }, "strict", z.ZodTypeAny, {
824
+ projectId: string;
825
+ organizationId: string;
826
+ ownerEpoch: number;
827
+ schema: "kya.task.source-binding.v1";
828
+ installationId: string;
829
+ }, {
830
+ projectId: string;
831
+ organizationId: string;
832
+ ownerEpoch: number;
833
+ schema: "kya.task.source-binding.v1";
834
+ installationId: string;
835
+ }>;
836
+ repo: z.ZodOptional<z.ZodString>;
837
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
838
+ kyaTaskSource: z.ZodObject<{
839
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
840
+ organizationId: z.ZodString;
841
+ projectId: z.ZodString;
842
+ installationId: z.ZodString;
843
+ ownerEpoch: z.ZodNumber;
844
+ }, "strict", z.ZodTypeAny, {
845
+ projectId: string;
846
+ organizationId: string;
847
+ ownerEpoch: number;
848
+ schema: "kya.task.source-binding.v1";
849
+ installationId: string;
850
+ }, {
851
+ projectId: string;
852
+ organizationId: string;
853
+ ownerEpoch: number;
854
+ schema: "kya.task.source-binding.v1";
855
+ installationId: string;
856
+ }>;
857
+ repo: z.ZodOptional<z.ZodString>;
858
+ }, z.ZodUnknown, "strip">>;
859
+ }, "strict", z.ZodTypeAny, {
860
+ taskId: string;
861
+ context: {
862
+ kyaTaskSource: {
863
+ projectId: string;
864
+ organizationId: string;
865
+ ownerEpoch: number;
866
+ schema: "kya.task.source-binding.v1";
867
+ installationId: string;
868
+ };
869
+ repo?: string | undefined;
870
+ } & {
871
+ [k: string]: unknown;
872
+ };
873
+ description: string;
874
+ priority?: "low" | "normal" | "urgent" | undefined;
875
+ relayTimeoutMs?: number | undefined;
876
+ }, {
877
+ taskId: string;
878
+ context: {
879
+ kyaTaskSource: {
880
+ projectId: string;
881
+ organizationId: string;
882
+ ownerEpoch: number;
883
+ schema: "kya.task.source-binding.v1";
884
+ installationId: string;
885
+ };
886
+ repo?: string | undefined;
887
+ } & {
888
+ [k: string]: unknown;
889
+ };
890
+ description: string;
891
+ priority?: "low" | "normal" | "urgent" | undefined;
892
+ relayTimeoutMs?: number | undefined;
893
+ }>;
894
+ }, "strict", z.ZodTypeAny, {
895
+ type: "https://kya-os.ai/didcomm/task/assign";
896
+ id: string;
897
+ from: string;
898
+ to: string[];
899
+ created_time: number;
900
+ expires_time: number;
901
+ thid: string;
902
+ body: {
903
+ taskId: string;
904
+ context: {
905
+ kyaTaskSource: {
906
+ projectId: string;
907
+ organizationId: string;
908
+ ownerEpoch: number;
909
+ schema: "kya.task.source-binding.v1";
910
+ installationId: string;
911
+ };
912
+ repo?: string | undefined;
913
+ } & {
914
+ [k: string]: unknown;
915
+ };
916
+ description: string;
917
+ priority?: "low" | "normal" | "urgent" | undefined;
918
+ relayTimeoutMs?: number | undefined;
919
+ };
920
+ pthid?: string | undefined;
921
+ }, {
922
+ type: "https://kya-os.ai/didcomm/task/assign";
923
+ id: string;
924
+ from: string;
925
+ to: string[];
926
+ created_time: number;
927
+ expires_time: number;
928
+ thid: string;
929
+ body: {
930
+ taskId: string;
931
+ context: {
932
+ kyaTaskSource: {
933
+ projectId: string;
934
+ organizationId: string;
935
+ ownerEpoch: number;
936
+ schema: "kya.task.source-binding.v1";
937
+ installationId: string;
938
+ };
939
+ repo?: string | undefined;
940
+ } & {
941
+ [k: string]: unknown;
942
+ };
943
+ description: string;
944
+ priority?: "low" | "normal" | "urgent" | undefined;
945
+ relayTimeoutMs?: number | undefined;
946
+ };
947
+ pthid?: string | undefined;
948
+ }>, z.ZodObject<{
949
+ id: z.ZodString;
950
+ from: z.ZodString;
951
+ to: z.ZodArray<z.ZodString, "many">;
952
+ created_time: z.ZodNumber;
953
+ expires_time: z.ZodNumber;
954
+ thid: z.ZodString;
955
+ pthid: z.ZodOptional<z.ZodString>;
956
+ } & {
957
+ type: z.ZodLiteral<"https://kya-os.ai/didcomm/task/steer">;
958
+ body: z.ZodObject<{
959
+ instruction: z.ZodString;
960
+ priority: z.ZodOptional<z.ZodEnum<["low", "normal", "urgent"]>>;
961
+ taskId: z.ZodString;
962
+ context: z.ZodObject<{
963
+ kyaTaskSource: z.ZodObject<{
964
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
965
+ organizationId: z.ZodString;
966
+ projectId: z.ZodString;
967
+ installationId: z.ZodString;
968
+ ownerEpoch: z.ZodNumber;
969
+ }, "strict", z.ZodTypeAny, {
970
+ projectId: string;
971
+ organizationId: string;
972
+ ownerEpoch: number;
973
+ schema: "kya.task.source-binding.v1";
974
+ installationId: string;
975
+ }, {
976
+ projectId: string;
977
+ organizationId: string;
978
+ ownerEpoch: number;
979
+ schema: "kya.task.source-binding.v1";
980
+ installationId: string;
981
+ }>;
982
+ repo: z.ZodOptional<z.ZodString>;
983
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
984
+ kyaTaskSource: z.ZodObject<{
985
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
986
+ organizationId: z.ZodString;
987
+ projectId: z.ZodString;
988
+ installationId: z.ZodString;
989
+ ownerEpoch: z.ZodNumber;
990
+ }, "strict", z.ZodTypeAny, {
991
+ projectId: string;
992
+ organizationId: string;
993
+ ownerEpoch: number;
994
+ schema: "kya.task.source-binding.v1";
995
+ installationId: string;
996
+ }, {
997
+ projectId: string;
998
+ organizationId: string;
999
+ ownerEpoch: number;
1000
+ schema: "kya.task.source-binding.v1";
1001
+ installationId: string;
1002
+ }>;
1003
+ repo: z.ZodOptional<z.ZodString>;
1004
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1005
+ kyaTaskSource: z.ZodObject<{
1006
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
1007
+ organizationId: z.ZodString;
1008
+ projectId: z.ZodString;
1009
+ installationId: z.ZodString;
1010
+ ownerEpoch: z.ZodNumber;
1011
+ }, "strict", z.ZodTypeAny, {
1012
+ projectId: string;
1013
+ organizationId: string;
1014
+ ownerEpoch: number;
1015
+ schema: "kya.task.source-binding.v1";
1016
+ installationId: string;
1017
+ }, {
1018
+ projectId: string;
1019
+ organizationId: string;
1020
+ ownerEpoch: number;
1021
+ schema: "kya.task.source-binding.v1";
1022
+ installationId: string;
1023
+ }>;
1024
+ repo: z.ZodOptional<z.ZodString>;
1025
+ }, z.ZodUnknown, "strip">>;
1026
+ }, "strict", z.ZodTypeAny, {
1027
+ taskId: string;
1028
+ context: {
1029
+ kyaTaskSource: {
1030
+ projectId: string;
1031
+ organizationId: string;
1032
+ ownerEpoch: number;
1033
+ schema: "kya.task.source-binding.v1";
1034
+ installationId: string;
1035
+ };
1036
+ repo?: string | undefined;
1037
+ } & {
1038
+ [k: string]: unknown;
1039
+ };
1040
+ instruction: string;
1041
+ priority?: "low" | "normal" | "urgent" | undefined;
1042
+ }, {
1043
+ taskId: string;
1044
+ context: {
1045
+ kyaTaskSource: {
1046
+ projectId: string;
1047
+ organizationId: string;
1048
+ ownerEpoch: number;
1049
+ schema: "kya.task.source-binding.v1";
1050
+ installationId: string;
1051
+ };
1052
+ repo?: string | undefined;
1053
+ } & {
1054
+ [k: string]: unknown;
1055
+ };
1056
+ instruction: string;
1057
+ priority?: "low" | "normal" | "urgent" | undefined;
1058
+ }>;
1059
+ }, "strict", z.ZodTypeAny, {
1060
+ type: "https://kya-os.ai/didcomm/task/steer";
1061
+ id: string;
1062
+ from: string;
1063
+ to: string[];
1064
+ created_time: number;
1065
+ expires_time: number;
1066
+ thid: string;
1067
+ body: {
1068
+ taskId: string;
1069
+ context: {
1070
+ kyaTaskSource: {
1071
+ projectId: string;
1072
+ organizationId: string;
1073
+ ownerEpoch: number;
1074
+ schema: "kya.task.source-binding.v1";
1075
+ installationId: string;
1076
+ };
1077
+ repo?: string | undefined;
1078
+ } & {
1079
+ [k: string]: unknown;
1080
+ };
1081
+ instruction: string;
1082
+ priority?: "low" | "normal" | "urgent" | undefined;
1083
+ };
1084
+ pthid?: string | undefined;
1085
+ }, {
1086
+ type: "https://kya-os.ai/didcomm/task/steer";
1087
+ id: string;
1088
+ from: string;
1089
+ to: string[];
1090
+ created_time: number;
1091
+ expires_time: number;
1092
+ thid: string;
1093
+ body: {
1094
+ taskId: string;
1095
+ context: {
1096
+ kyaTaskSource: {
1097
+ projectId: string;
1098
+ organizationId: string;
1099
+ ownerEpoch: number;
1100
+ schema: "kya.task.source-binding.v1";
1101
+ installationId: string;
1102
+ };
1103
+ repo?: string | undefined;
1104
+ } & {
1105
+ [k: string]: unknown;
1106
+ };
1107
+ instruction: string;
1108
+ priority?: "low" | "normal" | "urgent" | undefined;
1109
+ };
1110
+ pthid?: string | undefined;
1111
+ }>, z.ZodObject<{
1112
+ id: z.ZodString;
1113
+ from: z.ZodString;
1114
+ to: z.ZodArray<z.ZodString, "many">;
1115
+ created_time: z.ZodNumber;
1116
+ expires_time: z.ZodNumber;
1117
+ thid: z.ZodString;
1118
+ pthid: z.ZodOptional<z.ZodString>;
1119
+ } & {
1120
+ type: z.ZodLiteral<"https://kya-os.ai/didcomm/task/cancel">;
1121
+ body: z.ZodObject<{
1122
+ taskId: z.ZodString;
1123
+ context: z.ZodObject<{
1124
+ kyaTaskSource: z.ZodObject<{
1125
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
1126
+ organizationId: z.ZodString;
1127
+ projectId: z.ZodString;
1128
+ installationId: z.ZodString;
1129
+ ownerEpoch: z.ZodNumber;
1130
+ }, "strict", z.ZodTypeAny, {
1131
+ projectId: string;
1132
+ organizationId: string;
1133
+ ownerEpoch: number;
1134
+ schema: "kya.task.source-binding.v1";
1135
+ installationId: string;
1136
+ }, {
1137
+ projectId: string;
1138
+ organizationId: string;
1139
+ ownerEpoch: number;
1140
+ schema: "kya.task.source-binding.v1";
1141
+ installationId: string;
1142
+ }>;
1143
+ repo: z.ZodOptional<z.ZodString>;
1144
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1145
+ kyaTaskSource: z.ZodObject<{
1146
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
1147
+ organizationId: z.ZodString;
1148
+ projectId: z.ZodString;
1149
+ installationId: z.ZodString;
1150
+ ownerEpoch: z.ZodNumber;
1151
+ }, "strict", z.ZodTypeAny, {
1152
+ projectId: string;
1153
+ organizationId: string;
1154
+ ownerEpoch: number;
1155
+ schema: "kya.task.source-binding.v1";
1156
+ installationId: string;
1157
+ }, {
1158
+ projectId: string;
1159
+ organizationId: string;
1160
+ ownerEpoch: number;
1161
+ schema: "kya.task.source-binding.v1";
1162
+ installationId: string;
1163
+ }>;
1164
+ repo: z.ZodOptional<z.ZodString>;
1165
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1166
+ kyaTaskSource: z.ZodObject<{
1167
+ schema: z.ZodLiteral<"kya.task.source-binding.v1">;
1168
+ organizationId: z.ZodString;
1169
+ projectId: z.ZodString;
1170
+ installationId: z.ZodString;
1171
+ ownerEpoch: z.ZodNumber;
1172
+ }, "strict", z.ZodTypeAny, {
1173
+ projectId: string;
1174
+ organizationId: string;
1175
+ ownerEpoch: number;
1176
+ schema: "kya.task.source-binding.v1";
1177
+ installationId: string;
1178
+ }, {
1179
+ projectId: string;
1180
+ organizationId: string;
1181
+ ownerEpoch: number;
1182
+ schema: "kya.task.source-binding.v1";
1183
+ installationId: string;
1184
+ }>;
1185
+ repo: z.ZodOptional<z.ZodString>;
1186
+ }, z.ZodUnknown, "strip">>;
1187
+ }, "strict", z.ZodTypeAny, {
1188
+ taskId: string;
1189
+ context: {
1190
+ kyaTaskSource: {
1191
+ projectId: string;
1192
+ organizationId: string;
1193
+ ownerEpoch: number;
1194
+ schema: "kya.task.source-binding.v1";
1195
+ installationId: string;
1196
+ };
1197
+ repo?: string | undefined;
1198
+ } & {
1199
+ [k: string]: unknown;
1200
+ };
1201
+ }, {
1202
+ taskId: string;
1203
+ context: {
1204
+ kyaTaskSource: {
1205
+ projectId: string;
1206
+ organizationId: string;
1207
+ ownerEpoch: number;
1208
+ schema: "kya.task.source-binding.v1";
1209
+ installationId: string;
1210
+ };
1211
+ repo?: string | undefined;
1212
+ } & {
1213
+ [k: string]: unknown;
1214
+ };
1215
+ }>;
1216
+ }, "strict", z.ZodTypeAny, {
1217
+ type: "https://kya-os.ai/didcomm/task/cancel";
1218
+ id: string;
1219
+ from: string;
1220
+ to: string[];
1221
+ created_time: number;
1222
+ expires_time: number;
1223
+ thid: string;
1224
+ body: {
1225
+ taskId: string;
1226
+ context: {
1227
+ kyaTaskSource: {
1228
+ projectId: string;
1229
+ organizationId: string;
1230
+ ownerEpoch: number;
1231
+ schema: "kya.task.source-binding.v1";
1232
+ installationId: string;
1233
+ };
1234
+ repo?: string | undefined;
1235
+ } & {
1236
+ [k: string]: unknown;
1237
+ };
1238
+ };
1239
+ pthid?: string | undefined;
1240
+ }, {
1241
+ type: "https://kya-os.ai/didcomm/task/cancel";
1242
+ id: string;
1243
+ from: string;
1244
+ to: string[];
1245
+ created_time: number;
1246
+ expires_time: number;
1247
+ thid: string;
1248
+ body: {
1249
+ taskId: string;
1250
+ context: {
1251
+ kyaTaskSource: {
1252
+ projectId: string;
1253
+ organizationId: string;
1254
+ ownerEpoch: number;
1255
+ schema: "kya.task.source-binding.v1";
1256
+ installationId: string;
1257
+ };
1258
+ repo?: string | undefined;
1259
+ } & {
1260
+ [k: string]: unknown;
1261
+ };
1262
+ };
1263
+ pthid?: string | undefined;
1264
+ }>]>;
1265
+ export declare const TaskSourceProviderConfigSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1266
+ provider: z.ZodLiteral<"github">;
1267
+ githubInstallationId: z.ZodNumber;
1268
+ repository: z.ZodEffects<z.ZodString, string, string>;
1269
+ agentUserId: z.ZodString;
1270
+ webhookSecret: z.ZodString;
1271
+ }, "strict", z.ZodTypeAny, {
1272
+ provider: "github";
1273
+ repository: string;
1274
+ webhookSecret: string;
1275
+ githubInstallationId: number;
1276
+ agentUserId: string;
1277
+ }, {
1278
+ provider: "github";
1279
+ repository: string;
1280
+ webhookSecret: string;
1281
+ githubInstallationId: number;
1282
+ agentUserId: string;
1283
+ }>, z.ZodObject<{
1284
+ provider: z.ZodLiteral<"discord">;
1285
+ applicationId: z.ZodString;
1286
+ publicKeyHex: z.ZodString;
1287
+ guildId: z.ZodString;
1288
+ channelIds: z.ZodArray<z.ZodString, "many">;
1289
+ commandName: z.ZodString;
1290
+ }, "strict", z.ZodTypeAny, {
1291
+ provider: "discord";
1292
+ applicationId: string;
1293
+ publicKeyHex: string;
1294
+ guildId: string;
1295
+ channelIds: string[];
1296
+ commandName: string;
1297
+ }, {
1298
+ provider: "discord";
1299
+ applicationId: string;
1300
+ publicKeyHex: string;
1301
+ guildId: string;
1302
+ channelIds: string[];
1303
+ commandName: string;
1304
+ }>, z.ZodObject<{
1305
+ provider: z.ZodLiteral<"didcomm">;
1306
+ recipientDid: z.ZodString;
1307
+ }, "strict", z.ZodTypeAny, {
1308
+ provider: "didcomm";
1309
+ recipientDid: string;
1310
+ }, {
1311
+ provider: "didcomm";
1312
+ recipientDid: string;
1313
+ }>, z.ZodObject<{
1314
+ provider: z.ZodLiteral<"a2a">;
1315
+ recipientDid: z.ZodString;
1316
+ }, "strict", z.ZodTypeAny, {
1317
+ provider: "a2a";
1318
+ recipientDid: string;
1319
+ }, {
1320
+ provider: "a2a";
1321
+ recipientDid: string;
1322
+ }>]>;
1323
+ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1324
+ projectId: z.ZodString;
1325
+ source: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
1326
+ provider: z.ZodLiteral<"github">;
1327
+ githubInstallationId: z.ZodNumber;
1328
+ repository: z.ZodEffects<z.ZodString, string, string>;
1329
+ agentUserId: z.ZodString;
1330
+ webhookSecret: z.ZodString;
1331
+ }, "strict", z.ZodTypeAny, {
1332
+ provider: "github";
1333
+ repository: string;
1334
+ webhookSecret: string;
1335
+ githubInstallationId: number;
1336
+ agentUserId: string;
1337
+ }, {
1338
+ provider: "github";
1339
+ repository: string;
1340
+ webhookSecret: string;
1341
+ githubInstallationId: number;
1342
+ agentUserId: string;
1343
+ }>, z.ZodObject<{
1344
+ provider: z.ZodLiteral<"discord">;
1345
+ applicationId: z.ZodString;
1346
+ publicKeyHex: z.ZodString;
1347
+ guildId: z.ZodString;
1348
+ channelIds: z.ZodArray<z.ZodString, "many">;
1349
+ commandName: z.ZodString;
1350
+ }, "strict", z.ZodTypeAny, {
1351
+ provider: "discord";
1352
+ applicationId: string;
1353
+ publicKeyHex: string;
1354
+ guildId: string;
1355
+ channelIds: string[];
1356
+ commandName: string;
1357
+ }, {
1358
+ provider: "discord";
1359
+ applicationId: string;
1360
+ publicKeyHex: string;
1361
+ guildId: string;
1362
+ channelIds: string[];
1363
+ commandName: string;
1364
+ }>, z.ZodObject<{
1365
+ provider: z.ZodLiteral<"didcomm">;
1366
+ recipientDid: z.ZodString;
1367
+ }, "strict", z.ZodTypeAny, {
1368
+ provider: "didcomm";
1369
+ recipientDid: string;
1370
+ }, {
1371
+ provider: "didcomm";
1372
+ recipientDid: string;
1373
+ }>, z.ZodObject<{
1374
+ provider: z.ZodLiteral<"a2a">;
1375
+ recipientDid: z.ZodString;
1376
+ }, "strict", z.ZodTypeAny, {
1377
+ provider: "a2a";
1378
+ recipientDid: string;
1379
+ }, {
1380
+ provider: "a2a";
1381
+ recipientDid: string;
1382
+ }>]>;
1383
+ /** Setup only: encrypted server custody, never included in source or workload responses. */
1384
+ discordBotToken: z.ZodOptional<z.ZodString>;
1385
+ enabled: z.ZodDefault<z.ZodBoolean>;
1386
+ workflow: z.ZodEffects<z.ZodObject<{
1387
+ destinationDid: z.ZodString;
1388
+ ownerEpoch: z.ZodNumber;
1389
+ allowedActorIds: z.ZodArray<z.ZodString, "many">;
1390
+ allowedRepositories: z.ZodArray<z.ZodString, "many">;
1391
+ maxRuntimeSeconds: z.ZodNumber;
1392
+ maxOperations: z.ZodNumber;
1393
+ maxCostMicrousd: z.ZodNumber;
1394
+ allowDraftPullRequest: z.ZodDefault<z.ZodBoolean>;
1395
+ executionMode: z.ZodDefault<z.ZodEnum<["review_required", "work_to_draft_pr"]>>;
1396
+ standingApproval: z.ZodOptional<z.ZodObject<{
1397
+ maxConcurrentOperations: z.ZodNumber;
1398
+ maxAttemptsPerTask: z.ZodNumber;
1399
+ workers: z.ZodArray<z.ZodObject<{
1400
+ did: z.ZodString;
1401
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
1402
+ }, "strict", z.ZodTypeAny, {
1403
+ did: string;
1404
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1405
+ }, {
1406
+ did: string;
1407
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1408
+ }>, "many">;
1409
+ }, "strict", z.ZodTypeAny, {
1410
+ maxConcurrentOperations: number;
1411
+ maxAttemptsPerTask: number;
1412
+ workers: {
1413
+ did: string;
1414
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1415
+ }[];
1416
+ }, {
1417
+ maxConcurrentOperations: number;
1418
+ maxAttemptsPerTask: number;
1419
+ workers: {
1420
+ did: string;
1421
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1422
+ }[];
1423
+ }>>;
1424
+ modelPolicy: z.ZodOptional<z.ZodObject<{
1425
+ provider: z.ZodLiteral<"anthropic">;
1426
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1427
+ maxOutputTokens: z.ZodNumber;
1428
+ maxRequestBytes: z.ZodNumber;
1429
+ reservedCostMicrousd: z.ZodNumber;
1430
+ }, "strict", z.ZodTypeAny, {
1431
+ provider: "anthropic";
1432
+ models: string[];
1433
+ maxOutputTokens: number;
1434
+ maxRequestBytes: number;
1435
+ reservedCostMicrousd: number;
1436
+ }, {
1437
+ provider: "anthropic";
1438
+ models: string[];
1439
+ maxOutputTokens: number;
1440
+ maxRequestBytes: number;
1441
+ reservedCostMicrousd: number;
1442
+ }>>;
1443
+ }, "strict", z.ZodTypeAny, {
1444
+ ownerEpoch: number;
1445
+ destinationDid: string;
1446
+ allowedActorIds: string[];
1447
+ allowedRepositories: string[];
1448
+ maxRuntimeSeconds: number;
1449
+ maxOperations: number;
1450
+ maxCostMicrousd: number;
1451
+ allowDraftPullRequest: boolean;
1452
+ executionMode: "review_required" | "work_to_draft_pr";
1453
+ standingApproval?: {
1454
+ maxConcurrentOperations: number;
1455
+ maxAttemptsPerTask: number;
1456
+ workers: {
1457
+ did: string;
1458
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1459
+ }[];
1460
+ } | undefined;
1461
+ modelPolicy?: {
1462
+ provider: "anthropic";
1463
+ models: string[];
1464
+ maxOutputTokens: number;
1465
+ maxRequestBytes: number;
1466
+ reservedCostMicrousd: number;
1467
+ } | undefined;
1468
+ }, {
1469
+ ownerEpoch: number;
1470
+ destinationDid: string;
1471
+ allowedActorIds: string[];
1472
+ allowedRepositories: string[];
1473
+ maxRuntimeSeconds: number;
1474
+ maxOperations: number;
1475
+ maxCostMicrousd: number;
1476
+ allowDraftPullRequest?: boolean | undefined;
1477
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
1478
+ standingApproval?: {
1479
+ maxConcurrentOperations: number;
1480
+ maxAttemptsPerTask: number;
1481
+ workers: {
1482
+ did: string;
1483
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1484
+ }[];
1485
+ } | undefined;
1486
+ modelPolicy?: {
1487
+ provider: "anthropic";
1488
+ models: string[];
1489
+ maxOutputTokens: number;
1490
+ maxRequestBytes: number;
1491
+ reservedCostMicrousd: number;
1492
+ } | undefined;
1493
+ }>, {
1494
+ ownerEpoch: number;
1495
+ destinationDid: string;
1496
+ allowedActorIds: string[];
1497
+ allowedRepositories: string[];
1498
+ maxRuntimeSeconds: number;
1499
+ maxOperations: number;
1500
+ maxCostMicrousd: number;
1501
+ allowDraftPullRequest: boolean;
1502
+ executionMode: "review_required" | "work_to_draft_pr";
1503
+ standingApproval?: {
1504
+ maxConcurrentOperations: number;
1505
+ maxAttemptsPerTask: number;
1506
+ workers: {
1507
+ did: string;
1508
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1509
+ }[];
1510
+ } | undefined;
1511
+ modelPolicy?: {
1512
+ provider: "anthropic";
1513
+ models: string[];
1514
+ maxOutputTokens: number;
1515
+ maxRequestBytes: number;
1516
+ reservedCostMicrousd: number;
1517
+ } | undefined;
1518
+ }, {
1519
+ ownerEpoch: number;
1520
+ destinationDid: string;
1521
+ allowedActorIds: string[];
1522
+ allowedRepositories: string[];
1523
+ maxRuntimeSeconds: number;
1524
+ maxOperations: number;
1525
+ maxCostMicrousd: number;
1526
+ allowDraftPullRequest?: boolean | undefined;
1527
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
1528
+ standingApproval?: {
1529
+ maxConcurrentOperations: number;
1530
+ maxAttemptsPerTask: number;
1531
+ workers: {
1532
+ did: string;
1533
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1534
+ }[];
1535
+ } | undefined;
1536
+ modelPolicy?: {
1537
+ provider: "anthropic";
1538
+ models: string[];
1539
+ maxOutputTokens: number;
1540
+ maxRequestBytes: number;
1541
+ reservedCostMicrousd: number;
1542
+ } | undefined;
1543
+ }>;
1544
+ }, "strict", z.ZodTypeAny, {
1545
+ projectId: string;
1546
+ enabled: boolean;
1547
+ source: {
1548
+ provider: "github";
1549
+ repository: string;
1550
+ webhookSecret: string;
1551
+ githubInstallationId: number;
1552
+ agentUserId: string;
1553
+ } | {
1554
+ provider: "discord";
1555
+ applicationId: string;
1556
+ publicKeyHex: string;
1557
+ guildId: string;
1558
+ channelIds: string[];
1559
+ commandName: string;
1560
+ } | {
1561
+ provider: "didcomm";
1562
+ recipientDid: string;
1563
+ } | {
1564
+ provider: "a2a";
1565
+ recipientDid: string;
1566
+ };
1567
+ workflow: {
1568
+ ownerEpoch: number;
1569
+ destinationDid: string;
1570
+ allowedActorIds: string[];
1571
+ allowedRepositories: string[];
1572
+ maxRuntimeSeconds: number;
1573
+ maxOperations: number;
1574
+ maxCostMicrousd: number;
1575
+ allowDraftPullRequest: boolean;
1576
+ executionMode: "review_required" | "work_to_draft_pr";
1577
+ standingApproval?: {
1578
+ maxConcurrentOperations: number;
1579
+ maxAttemptsPerTask: number;
1580
+ workers: {
1581
+ did: string;
1582
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1583
+ }[];
1584
+ } | undefined;
1585
+ modelPolicy?: {
1586
+ provider: "anthropic";
1587
+ models: string[];
1588
+ maxOutputTokens: number;
1589
+ maxRequestBytes: number;
1590
+ reservedCostMicrousd: number;
1591
+ } | undefined;
1592
+ };
1593
+ discordBotToken?: string | undefined;
1594
+ }, {
1595
+ projectId: string;
1596
+ source: {
1597
+ provider: "github";
1598
+ repository: string;
1599
+ webhookSecret: string;
1600
+ githubInstallationId: number;
1601
+ agentUserId: string;
1602
+ } | {
1603
+ provider: "discord";
1604
+ applicationId: string;
1605
+ publicKeyHex: string;
1606
+ guildId: string;
1607
+ channelIds: string[];
1608
+ commandName: string;
1609
+ } | {
1610
+ provider: "didcomm";
1611
+ recipientDid: string;
1612
+ } | {
1613
+ provider: "a2a";
1614
+ recipientDid: string;
1615
+ };
1616
+ workflow: {
1617
+ ownerEpoch: number;
1618
+ destinationDid: string;
1619
+ allowedActorIds: string[];
1620
+ allowedRepositories: string[];
1621
+ maxRuntimeSeconds: number;
1622
+ maxOperations: number;
1623
+ maxCostMicrousd: number;
1624
+ allowDraftPullRequest?: boolean | undefined;
1625
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
1626
+ standingApproval?: {
1627
+ maxConcurrentOperations: number;
1628
+ maxAttemptsPerTask: number;
1629
+ workers: {
1630
+ did: string;
1631
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1632
+ }[];
1633
+ } | undefined;
1634
+ modelPolicy?: {
1635
+ provider: "anthropic";
1636
+ models: string[];
1637
+ maxOutputTokens: number;
1638
+ maxRequestBytes: number;
1639
+ reservedCostMicrousd: number;
1640
+ } | undefined;
1641
+ };
1642
+ enabled?: boolean | undefined;
1643
+ discordBotToken?: string | undefined;
1644
+ }>;
1645
+ /** Authenticated source material, never an executable authorization. */
1646
+ export declare const TaskSourceIntentSchema: z.ZodObject<{
1647
+ schema: z.ZodLiteral<"kya.task.source-intent.v1">;
1648
+ taskId: z.ZodString;
1649
+ operationId: z.ZodString;
1650
+ installationId: z.ZodString;
1651
+ organizationId: z.ZodString;
1652
+ projectId: z.ZodString;
1653
+ sessionId: z.ZodString;
1654
+ sourceRevision: z.ZodNumber;
1655
+ ownerEpoch: z.ZodNumber;
1656
+ destinationDid: z.ZodString;
1657
+ kind: z.ZodEnum<["created", "prompted", "stop"]>;
1658
+ source: z.ZodObject<{
1659
+ provider: z.ZodEnum<["linear", "github", "discord", "didcomm", "a2a"]>;
1660
+ workspaceId: z.ZodString;
1661
+ actorId: z.ZodString;
1662
+ issueId: z.ZodOptional<z.ZodString>;
1663
+ }, "strict", z.ZodTypeAny, {
1664
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
1665
+ actorId: string;
1666
+ workspaceId: string;
1667
+ issueId?: string | undefined;
1668
+ }, {
1669
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
1670
+ actorId: string;
1671
+ workspaceId: string;
1672
+ issueId?: string | undefined;
1673
+ }>;
1674
+ untrustedInput: z.ZodEffects<z.ZodString, string, string>;
1675
+ inputDigest: z.ZodString;
1676
+ workflow: z.ZodEffects<z.ZodObject<{
1677
+ destinationDid: z.ZodString;
1678
+ ownerEpoch: z.ZodNumber;
1679
+ allowedActorIds: z.ZodArray<z.ZodString, "many">;
1680
+ allowedRepositories: z.ZodArray<z.ZodString, "many">;
1681
+ maxRuntimeSeconds: z.ZodNumber;
1682
+ maxOperations: z.ZodNumber;
1683
+ maxCostMicrousd: z.ZodNumber;
1684
+ allowDraftPullRequest: z.ZodDefault<z.ZodBoolean>;
1685
+ executionMode: z.ZodDefault<z.ZodEnum<["review_required", "work_to_draft_pr"]>>;
1686
+ standingApproval: z.ZodOptional<z.ZodObject<{
1687
+ maxConcurrentOperations: z.ZodNumber;
1688
+ maxAttemptsPerTask: z.ZodNumber;
1689
+ workers: z.ZodArray<z.ZodObject<{
1690
+ did: z.ZodString;
1691
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
1692
+ }, "strict", z.ZodTypeAny, {
1693
+ did: string;
1694
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1695
+ }, {
1696
+ did: string;
1697
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1698
+ }>, "many">;
1699
+ }, "strict", z.ZodTypeAny, {
1700
+ maxConcurrentOperations: number;
1701
+ maxAttemptsPerTask: number;
1702
+ workers: {
1703
+ did: string;
1704
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1705
+ }[];
1706
+ }, {
1707
+ maxConcurrentOperations: number;
1708
+ maxAttemptsPerTask: number;
1709
+ workers: {
1710
+ did: string;
1711
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1712
+ }[];
1713
+ }>>;
1714
+ modelPolicy: z.ZodOptional<z.ZodObject<{
1715
+ provider: z.ZodLiteral<"anthropic">;
1716
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1717
+ maxOutputTokens: z.ZodNumber;
1718
+ maxRequestBytes: z.ZodNumber;
1719
+ reservedCostMicrousd: z.ZodNumber;
1720
+ }, "strict", z.ZodTypeAny, {
1721
+ provider: "anthropic";
1722
+ models: string[];
1723
+ maxOutputTokens: number;
1724
+ maxRequestBytes: number;
1725
+ reservedCostMicrousd: number;
1726
+ }, {
1727
+ provider: "anthropic";
1728
+ models: string[];
1729
+ maxOutputTokens: number;
1730
+ maxRequestBytes: number;
1731
+ reservedCostMicrousd: number;
1732
+ }>>;
1733
+ }, "strict", z.ZodTypeAny, {
1734
+ ownerEpoch: number;
1735
+ destinationDid: string;
1736
+ allowedActorIds: string[];
1737
+ allowedRepositories: string[];
1738
+ maxRuntimeSeconds: number;
1739
+ maxOperations: number;
1740
+ maxCostMicrousd: number;
1741
+ allowDraftPullRequest: boolean;
1742
+ executionMode: "review_required" | "work_to_draft_pr";
1743
+ standingApproval?: {
1744
+ maxConcurrentOperations: number;
1745
+ maxAttemptsPerTask: number;
1746
+ workers: {
1747
+ did: string;
1748
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1749
+ }[];
1750
+ } | undefined;
1751
+ modelPolicy?: {
1752
+ provider: "anthropic";
1753
+ models: string[];
1754
+ maxOutputTokens: number;
1755
+ maxRequestBytes: number;
1756
+ reservedCostMicrousd: number;
1757
+ } | undefined;
1758
+ }, {
1759
+ ownerEpoch: number;
1760
+ destinationDid: string;
1761
+ allowedActorIds: string[];
1762
+ allowedRepositories: string[];
1763
+ maxRuntimeSeconds: number;
1764
+ maxOperations: number;
1765
+ maxCostMicrousd: number;
1766
+ allowDraftPullRequest?: boolean | undefined;
1767
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
1768
+ standingApproval?: {
1769
+ maxConcurrentOperations: number;
1770
+ maxAttemptsPerTask: number;
1771
+ workers: {
1772
+ did: string;
1773
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1774
+ }[];
1775
+ } | undefined;
1776
+ modelPolicy?: {
1777
+ provider: "anthropic";
1778
+ models: string[];
1779
+ maxOutputTokens: number;
1780
+ maxRequestBytes: number;
1781
+ reservedCostMicrousd: number;
1782
+ } | undefined;
1783
+ }>, {
1784
+ ownerEpoch: number;
1785
+ destinationDid: string;
1786
+ allowedActorIds: string[];
1787
+ allowedRepositories: string[];
1788
+ maxRuntimeSeconds: number;
1789
+ maxOperations: number;
1790
+ maxCostMicrousd: number;
1791
+ allowDraftPullRequest: boolean;
1792
+ executionMode: "review_required" | "work_to_draft_pr";
1793
+ standingApproval?: {
1794
+ maxConcurrentOperations: number;
1795
+ maxAttemptsPerTask: number;
1796
+ workers: {
1797
+ did: string;
1798
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1799
+ }[];
1800
+ } | undefined;
1801
+ modelPolicy?: {
1802
+ provider: "anthropic";
1803
+ models: string[];
1804
+ maxOutputTokens: number;
1805
+ maxRequestBytes: number;
1806
+ reservedCostMicrousd: number;
1807
+ } | undefined;
1808
+ }, {
1809
+ ownerEpoch: number;
1810
+ destinationDid: string;
1811
+ allowedActorIds: string[];
1812
+ allowedRepositories: string[];
1813
+ maxRuntimeSeconds: number;
1814
+ maxOperations: number;
1815
+ maxCostMicrousd: number;
1816
+ allowDraftPullRequest?: boolean | undefined;
1817
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
1818
+ standingApproval?: {
1819
+ maxConcurrentOperations: number;
1820
+ maxAttemptsPerTask: number;
1821
+ workers: {
1822
+ did: string;
1823
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1824
+ }[];
1825
+ } | undefined;
1826
+ modelPolicy?: {
1827
+ provider: "anthropic";
1828
+ models: string[];
1829
+ maxOutputTokens: number;
1830
+ maxRequestBytes: number;
1831
+ reservedCostMicrousd: number;
1832
+ } | undefined;
1833
+ }>;
1834
+ authorization: z.ZodLiteral<"requires_task_approval">;
1835
+ }, "strict", z.ZodTypeAny, {
1836
+ projectId: string;
1837
+ organizationId: string;
1838
+ sessionId: string;
1839
+ taskId: string;
1840
+ kind: "stop" | "created" | "prompted";
1841
+ authorization: "requires_task_approval";
1842
+ source: {
1843
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
1844
+ actorId: string;
1845
+ workspaceId: string;
1846
+ issueId?: string | undefined;
1847
+ };
1848
+ sourceRevision: number;
1849
+ inputDigest: string;
1850
+ operationId: string;
1851
+ ownerEpoch: number;
1852
+ schema: "kya.task.source-intent.v1";
1853
+ destinationDid: string;
1854
+ workflow: {
1855
+ ownerEpoch: number;
1856
+ destinationDid: string;
1857
+ allowedActorIds: string[];
1858
+ allowedRepositories: string[];
1859
+ maxRuntimeSeconds: number;
1860
+ maxOperations: number;
1861
+ maxCostMicrousd: number;
1862
+ allowDraftPullRequest: boolean;
1863
+ executionMode: "review_required" | "work_to_draft_pr";
1864
+ standingApproval?: {
1865
+ maxConcurrentOperations: number;
1866
+ maxAttemptsPerTask: number;
1867
+ workers: {
1868
+ did: string;
1869
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1870
+ }[];
1871
+ } | undefined;
1872
+ modelPolicy?: {
1873
+ provider: "anthropic";
1874
+ models: string[];
1875
+ maxOutputTokens: number;
1876
+ maxRequestBytes: number;
1877
+ reservedCostMicrousd: number;
1878
+ } | undefined;
1879
+ };
1880
+ installationId: string;
1881
+ untrustedInput: string;
1882
+ }, {
1883
+ projectId: string;
1884
+ organizationId: string;
1885
+ sessionId: string;
1886
+ taskId: string;
1887
+ kind: "stop" | "created" | "prompted";
1888
+ authorization: "requires_task_approval";
1889
+ source: {
1890
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
1891
+ actorId: string;
1892
+ workspaceId: string;
1893
+ issueId?: string | undefined;
1894
+ };
1895
+ sourceRevision: number;
1896
+ inputDigest: string;
1897
+ operationId: string;
1898
+ ownerEpoch: number;
1899
+ schema: "kya.task.source-intent.v1";
1900
+ destinationDid: string;
1901
+ workflow: {
1902
+ ownerEpoch: number;
1903
+ destinationDid: string;
1904
+ allowedActorIds: string[];
1905
+ allowedRepositories: string[];
1906
+ maxRuntimeSeconds: number;
1907
+ maxOperations: number;
1908
+ maxCostMicrousd: number;
1909
+ allowDraftPullRequest?: boolean | undefined;
1910
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
1911
+ standingApproval?: {
1912
+ maxConcurrentOperations: number;
1913
+ maxAttemptsPerTask: number;
1914
+ workers: {
1915
+ did: string;
1916
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
1917
+ }[];
1918
+ } | undefined;
1919
+ modelPolicy?: {
1920
+ provider: "anthropic";
1921
+ models: string[];
1922
+ maxOutputTokens: number;
1923
+ maxRequestBytes: number;
1924
+ reservedCostMicrousd: number;
1925
+ } | undefined;
1926
+ };
1927
+ installationId: string;
1928
+ untrustedInput: string;
1929
+ }>;
1930
+ export type TaskSourceIntent = z.infer<typeof TaskSourceIntentSchema>;
1931
+ /** Scope is derived from authenticated workload authority, never request-body tenancy. */
1932
+ export declare const TaskMailboxScopeSchema: z.ZodObject<{
1933
+ organizationId: z.ZodString;
1934
+ projectId: z.ZodString;
1935
+ destinationDid: z.ZodString;
1936
+ ownerEpoch: z.ZodNumber;
1937
+ }, "strict", z.ZodTypeAny, {
1938
+ projectId: string;
1939
+ organizationId: string;
1940
+ ownerEpoch: number;
1941
+ destinationDid: string;
1942
+ }, {
1943
+ projectId: string;
1944
+ organizationId: string;
1945
+ ownerEpoch: number;
1946
+ destinationDid: string;
1947
+ }>;
1948
+ export type TaskMailboxScope = z.infer<typeof TaskMailboxScopeSchema>;
1949
+ export declare const TaskMailboxClaimRequestSchema: z.ZodEffects<z.ZodObject<{
1950
+ ownerEpoch: z.ZodNumber;
1951
+ acceptedProviders: z.ZodDefault<z.ZodArray<z.ZodEnum<["linear", "github", "discord", "didcomm", "a2a"]>, "many">>;
1952
+ claimId: z.ZodOptional<z.ZodString>;
1953
+ claimToken: z.ZodOptional<z.ZodString>;
1954
+ }, "strict", z.ZodTypeAny, {
1955
+ ownerEpoch: number;
1956
+ acceptedProviders: ("discord" | "linear" | "github" | "didcomm" | "a2a")[];
1957
+ claimId?: string | undefined;
1958
+ claimToken?: string | undefined;
1959
+ }, {
1960
+ ownerEpoch: number;
1961
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
1962
+ claimId?: string | undefined;
1963
+ claimToken?: string | undefined;
1964
+ }>, {
1965
+ ownerEpoch: number;
1966
+ acceptedProviders: ("discord" | "linear" | "github" | "didcomm" | "a2a")[];
1967
+ claimId?: string | undefined;
1968
+ claimToken?: string | undefined;
1969
+ }, {
1970
+ ownerEpoch: number;
1971
+ acceptedProviders?: ("discord" | "linear" | "github" | "didcomm" | "a2a")[] | undefined;
1972
+ claimId?: string | undefined;
1973
+ claimToken?: string | undefined;
1974
+ }>;
1975
+ export declare const TaskMailboxStatusRequestSchema: z.ZodObject<{
1976
+ ownerEpoch: z.ZodNumber;
1977
+ claimId: z.ZodString;
1978
+ }, "strict", z.ZodTypeAny, {
1979
+ ownerEpoch: number;
1980
+ claimId: string;
1981
+ }, {
1982
+ ownerEpoch: number;
1983
+ claimId: string;
1984
+ }>;
1985
+ export declare const TaskMailboxClaimSchema: z.ZodObject<{
1986
+ claimId: z.ZodString;
1987
+ claimToken: z.ZodString;
1988
+ claimExpiresAt: z.ZodString;
1989
+ deliveryState: z.ZodEnum<["claimed", "accepted", "unknown", "cancelled"]>;
1990
+ intent: z.ZodObject<{
1991
+ schema: z.ZodLiteral<"kya.task.source-intent.v1">;
1992
+ taskId: z.ZodString;
1993
+ operationId: z.ZodString;
1994
+ installationId: z.ZodString;
1995
+ organizationId: z.ZodString;
1996
+ projectId: z.ZodString;
1997
+ sessionId: z.ZodString;
1998
+ sourceRevision: z.ZodNumber;
1999
+ ownerEpoch: z.ZodNumber;
2000
+ destinationDid: z.ZodString;
2001
+ kind: z.ZodEnum<["created", "prompted", "stop"]>;
2002
+ source: z.ZodObject<{
2003
+ provider: z.ZodEnum<["linear", "github", "discord", "didcomm", "a2a"]>;
2004
+ workspaceId: z.ZodString;
2005
+ actorId: z.ZodString;
2006
+ issueId: z.ZodOptional<z.ZodString>;
2007
+ }, "strict", z.ZodTypeAny, {
2008
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
2009
+ actorId: string;
2010
+ workspaceId: string;
2011
+ issueId?: string | undefined;
2012
+ }, {
2013
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
2014
+ actorId: string;
2015
+ workspaceId: string;
2016
+ issueId?: string | undefined;
2017
+ }>;
2018
+ untrustedInput: z.ZodEffects<z.ZodString, string, string>;
2019
+ inputDigest: z.ZodString;
2020
+ workflow: z.ZodEffects<z.ZodObject<{
2021
+ destinationDid: z.ZodString;
2022
+ ownerEpoch: z.ZodNumber;
2023
+ allowedActorIds: z.ZodArray<z.ZodString, "many">;
2024
+ allowedRepositories: z.ZodArray<z.ZodString, "many">;
2025
+ maxRuntimeSeconds: z.ZodNumber;
2026
+ maxOperations: z.ZodNumber;
2027
+ maxCostMicrousd: z.ZodNumber;
2028
+ allowDraftPullRequest: z.ZodDefault<z.ZodBoolean>;
2029
+ executionMode: z.ZodDefault<z.ZodEnum<["review_required", "work_to_draft_pr"]>>;
2030
+ standingApproval: z.ZodOptional<z.ZodObject<{
2031
+ maxConcurrentOperations: z.ZodNumber;
2032
+ maxAttemptsPerTask: z.ZodNumber;
2033
+ workers: z.ZodArray<z.ZodObject<{
2034
+ did: z.ZodString;
2035
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
2036
+ }, "strict", z.ZodTypeAny, {
2037
+ did: string;
2038
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2039
+ }, {
2040
+ did: string;
2041
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2042
+ }>, "many">;
2043
+ }, "strict", z.ZodTypeAny, {
2044
+ maxConcurrentOperations: number;
2045
+ maxAttemptsPerTask: number;
2046
+ workers: {
2047
+ did: string;
2048
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2049
+ }[];
2050
+ }, {
2051
+ maxConcurrentOperations: number;
2052
+ maxAttemptsPerTask: number;
2053
+ workers: {
2054
+ did: string;
2055
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2056
+ }[];
2057
+ }>>;
2058
+ modelPolicy: z.ZodOptional<z.ZodObject<{
2059
+ provider: z.ZodLiteral<"anthropic">;
2060
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2061
+ maxOutputTokens: z.ZodNumber;
2062
+ maxRequestBytes: z.ZodNumber;
2063
+ reservedCostMicrousd: z.ZodNumber;
2064
+ }, "strict", z.ZodTypeAny, {
2065
+ provider: "anthropic";
2066
+ models: string[];
2067
+ maxOutputTokens: number;
2068
+ maxRequestBytes: number;
2069
+ reservedCostMicrousd: number;
2070
+ }, {
2071
+ provider: "anthropic";
2072
+ models: string[];
2073
+ maxOutputTokens: number;
2074
+ maxRequestBytes: number;
2075
+ reservedCostMicrousd: number;
2076
+ }>>;
2077
+ }, "strict", z.ZodTypeAny, {
2078
+ ownerEpoch: number;
2079
+ destinationDid: string;
2080
+ allowedActorIds: string[];
2081
+ allowedRepositories: string[];
2082
+ maxRuntimeSeconds: number;
2083
+ maxOperations: number;
2084
+ maxCostMicrousd: number;
2085
+ allowDraftPullRequest: boolean;
2086
+ executionMode: "review_required" | "work_to_draft_pr";
2087
+ standingApproval?: {
2088
+ maxConcurrentOperations: number;
2089
+ maxAttemptsPerTask: number;
2090
+ workers: {
2091
+ did: string;
2092
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2093
+ }[];
2094
+ } | undefined;
2095
+ modelPolicy?: {
2096
+ provider: "anthropic";
2097
+ models: string[];
2098
+ maxOutputTokens: number;
2099
+ maxRequestBytes: number;
2100
+ reservedCostMicrousd: number;
2101
+ } | undefined;
2102
+ }, {
2103
+ ownerEpoch: number;
2104
+ destinationDid: string;
2105
+ allowedActorIds: string[];
2106
+ allowedRepositories: string[];
2107
+ maxRuntimeSeconds: number;
2108
+ maxOperations: number;
2109
+ maxCostMicrousd: number;
2110
+ allowDraftPullRequest?: boolean | undefined;
2111
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
2112
+ standingApproval?: {
2113
+ maxConcurrentOperations: number;
2114
+ maxAttemptsPerTask: number;
2115
+ workers: {
2116
+ did: string;
2117
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2118
+ }[];
2119
+ } | undefined;
2120
+ modelPolicy?: {
2121
+ provider: "anthropic";
2122
+ models: string[];
2123
+ maxOutputTokens: number;
2124
+ maxRequestBytes: number;
2125
+ reservedCostMicrousd: number;
2126
+ } | undefined;
2127
+ }>, {
2128
+ ownerEpoch: number;
2129
+ destinationDid: string;
2130
+ allowedActorIds: string[];
2131
+ allowedRepositories: string[];
2132
+ maxRuntimeSeconds: number;
2133
+ maxOperations: number;
2134
+ maxCostMicrousd: number;
2135
+ allowDraftPullRequest: boolean;
2136
+ executionMode: "review_required" | "work_to_draft_pr";
2137
+ standingApproval?: {
2138
+ maxConcurrentOperations: number;
2139
+ maxAttemptsPerTask: number;
2140
+ workers: {
2141
+ did: string;
2142
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2143
+ }[];
2144
+ } | undefined;
2145
+ modelPolicy?: {
2146
+ provider: "anthropic";
2147
+ models: string[];
2148
+ maxOutputTokens: number;
2149
+ maxRequestBytes: number;
2150
+ reservedCostMicrousd: number;
2151
+ } | undefined;
2152
+ }, {
2153
+ ownerEpoch: number;
2154
+ destinationDid: string;
2155
+ allowedActorIds: string[];
2156
+ allowedRepositories: string[];
2157
+ maxRuntimeSeconds: number;
2158
+ maxOperations: number;
2159
+ maxCostMicrousd: number;
2160
+ allowDraftPullRequest?: boolean | undefined;
2161
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
2162
+ standingApproval?: {
2163
+ maxConcurrentOperations: number;
2164
+ maxAttemptsPerTask: number;
2165
+ workers: {
2166
+ did: string;
2167
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2168
+ }[];
2169
+ } | undefined;
2170
+ modelPolicy?: {
2171
+ provider: "anthropic";
2172
+ models: string[];
2173
+ maxOutputTokens: number;
2174
+ maxRequestBytes: number;
2175
+ reservedCostMicrousd: number;
2176
+ } | undefined;
2177
+ }>;
2178
+ authorization: z.ZodLiteral<"requires_task_approval">;
2179
+ }, "strict", z.ZodTypeAny, {
2180
+ projectId: string;
2181
+ organizationId: string;
2182
+ sessionId: string;
2183
+ taskId: string;
2184
+ kind: "stop" | "created" | "prompted";
2185
+ authorization: "requires_task_approval";
2186
+ source: {
2187
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
2188
+ actorId: string;
2189
+ workspaceId: string;
2190
+ issueId?: string | undefined;
2191
+ };
2192
+ sourceRevision: number;
2193
+ inputDigest: string;
2194
+ operationId: string;
2195
+ ownerEpoch: number;
2196
+ schema: "kya.task.source-intent.v1";
2197
+ destinationDid: string;
2198
+ workflow: {
2199
+ ownerEpoch: number;
2200
+ destinationDid: string;
2201
+ allowedActorIds: string[];
2202
+ allowedRepositories: string[];
2203
+ maxRuntimeSeconds: number;
2204
+ maxOperations: number;
2205
+ maxCostMicrousd: number;
2206
+ allowDraftPullRequest: boolean;
2207
+ executionMode: "review_required" | "work_to_draft_pr";
2208
+ standingApproval?: {
2209
+ maxConcurrentOperations: number;
2210
+ maxAttemptsPerTask: number;
2211
+ workers: {
2212
+ did: string;
2213
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2214
+ }[];
2215
+ } | undefined;
2216
+ modelPolicy?: {
2217
+ provider: "anthropic";
2218
+ models: string[];
2219
+ maxOutputTokens: number;
2220
+ maxRequestBytes: number;
2221
+ reservedCostMicrousd: number;
2222
+ } | undefined;
2223
+ };
2224
+ installationId: string;
2225
+ untrustedInput: string;
2226
+ }, {
2227
+ projectId: string;
2228
+ organizationId: string;
2229
+ sessionId: string;
2230
+ taskId: string;
2231
+ kind: "stop" | "created" | "prompted";
2232
+ authorization: "requires_task_approval";
2233
+ source: {
2234
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
2235
+ actorId: string;
2236
+ workspaceId: string;
2237
+ issueId?: string | undefined;
2238
+ };
2239
+ sourceRevision: number;
2240
+ inputDigest: string;
2241
+ operationId: string;
2242
+ ownerEpoch: number;
2243
+ schema: "kya.task.source-intent.v1";
2244
+ destinationDid: string;
2245
+ workflow: {
2246
+ ownerEpoch: number;
2247
+ destinationDid: string;
2248
+ allowedActorIds: string[];
2249
+ allowedRepositories: string[];
2250
+ maxRuntimeSeconds: number;
2251
+ maxOperations: number;
2252
+ maxCostMicrousd: number;
2253
+ allowDraftPullRequest?: boolean | undefined;
2254
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
2255
+ standingApproval?: {
2256
+ maxConcurrentOperations: number;
2257
+ maxAttemptsPerTask: number;
2258
+ workers: {
2259
+ did: string;
2260
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2261
+ }[];
2262
+ } | undefined;
2263
+ modelPolicy?: {
2264
+ provider: "anthropic";
2265
+ models: string[];
2266
+ maxOutputTokens: number;
2267
+ maxRequestBytes: number;
2268
+ reservedCostMicrousd: number;
2269
+ } | undefined;
2270
+ };
2271
+ installationId: string;
2272
+ untrustedInput: string;
2273
+ }>;
2274
+ }, "strict", z.ZodTypeAny, {
2275
+ claimId: string;
2276
+ claimToken: string;
2277
+ claimExpiresAt: string;
2278
+ deliveryState: "unknown" | "claimed" | "accepted" | "cancelled";
2279
+ intent: {
2280
+ projectId: string;
2281
+ organizationId: string;
2282
+ sessionId: string;
2283
+ taskId: string;
2284
+ kind: "stop" | "created" | "prompted";
2285
+ authorization: "requires_task_approval";
2286
+ source: {
2287
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
2288
+ actorId: string;
2289
+ workspaceId: string;
2290
+ issueId?: string | undefined;
2291
+ };
2292
+ sourceRevision: number;
2293
+ inputDigest: string;
2294
+ operationId: string;
2295
+ ownerEpoch: number;
2296
+ schema: "kya.task.source-intent.v1";
2297
+ destinationDid: string;
2298
+ workflow: {
2299
+ ownerEpoch: number;
2300
+ destinationDid: string;
2301
+ allowedActorIds: string[];
2302
+ allowedRepositories: string[];
2303
+ maxRuntimeSeconds: number;
2304
+ maxOperations: number;
2305
+ maxCostMicrousd: number;
2306
+ allowDraftPullRequest: boolean;
2307
+ executionMode: "review_required" | "work_to_draft_pr";
2308
+ standingApproval?: {
2309
+ maxConcurrentOperations: number;
2310
+ maxAttemptsPerTask: number;
2311
+ workers: {
2312
+ did: string;
2313
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2314
+ }[];
2315
+ } | undefined;
2316
+ modelPolicy?: {
2317
+ provider: "anthropic";
2318
+ models: string[];
2319
+ maxOutputTokens: number;
2320
+ maxRequestBytes: number;
2321
+ reservedCostMicrousd: number;
2322
+ } | undefined;
2323
+ };
2324
+ installationId: string;
2325
+ untrustedInput: string;
2326
+ };
2327
+ }, {
2328
+ claimId: string;
2329
+ claimToken: string;
2330
+ claimExpiresAt: string;
2331
+ deliveryState: "unknown" | "claimed" | "accepted" | "cancelled";
2332
+ intent: {
2333
+ projectId: string;
2334
+ organizationId: string;
2335
+ sessionId: string;
2336
+ taskId: string;
2337
+ kind: "stop" | "created" | "prompted";
2338
+ authorization: "requires_task_approval";
2339
+ source: {
2340
+ provider: "discord" | "linear" | "github" | "didcomm" | "a2a";
2341
+ actorId: string;
2342
+ workspaceId: string;
2343
+ issueId?: string | undefined;
2344
+ };
2345
+ sourceRevision: number;
2346
+ inputDigest: string;
2347
+ operationId: string;
2348
+ ownerEpoch: number;
2349
+ schema: "kya.task.source-intent.v1";
2350
+ destinationDid: string;
2351
+ workflow: {
2352
+ ownerEpoch: number;
2353
+ destinationDid: string;
2354
+ allowedActorIds: string[];
2355
+ allowedRepositories: string[];
2356
+ maxRuntimeSeconds: number;
2357
+ maxOperations: number;
2358
+ maxCostMicrousd: number;
2359
+ allowDraftPullRequest?: boolean | undefined;
2360
+ executionMode?: "review_required" | "work_to_draft_pr" | undefined;
2361
+ standingApproval?: {
2362
+ maxConcurrentOperations: number;
2363
+ maxAttemptsPerTask: number;
2364
+ workers: {
2365
+ did: string;
2366
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2367
+ }[];
2368
+ } | undefined;
2369
+ modelPolicy?: {
2370
+ provider: "anthropic";
2371
+ models: string[];
2372
+ maxOutputTokens: number;
2373
+ maxRequestBytes: number;
2374
+ reservedCostMicrousd: number;
2375
+ } | undefined;
2376
+ };
2377
+ installationId: string;
2378
+ untrustedInput: string;
2379
+ };
2380
+ }>;
2381
+ export type TaskMailboxClaim = z.infer<typeof TaskMailboxClaimSchema>;
2382
+ export declare const TaskMailboxStatusSchema: z.ZodObject<{
2383
+ claimId: z.ZodString;
2384
+ operationId: z.ZodString;
2385
+ taskId: z.ZodString;
2386
+ sourceRevision: z.ZodNumber;
2387
+ ownerEpoch: z.ZodNumber;
2388
+ deliveryState: z.ZodEnum<["pending", "claimed", "accepted", "unknown", "cancelled"]>;
2389
+ outcome: z.ZodEnum<["claimed", "accepted", "not_delivered", "unknown"]>;
2390
+ claimExpiresAt: z.ZodString;
2391
+ }, "strict", z.ZodTypeAny, {
2392
+ taskId: string;
2393
+ outcome: "unknown" | "claimed" | "accepted" | "not_delivered";
2394
+ sourceRevision: number;
2395
+ operationId: string;
2396
+ ownerEpoch: number;
2397
+ claimId: string;
2398
+ claimExpiresAt: string;
2399
+ deliveryState: "unknown" | "pending" | "claimed" | "accepted" | "cancelled";
2400
+ }, {
2401
+ taskId: string;
2402
+ outcome: "unknown" | "claimed" | "accepted" | "not_delivered";
2403
+ sourceRevision: number;
2404
+ operationId: string;
2405
+ ownerEpoch: number;
2406
+ claimId: string;
2407
+ claimExpiresAt: string;
2408
+ deliveryState: "unknown" | "pending" | "claimed" | "accepted" | "cancelled";
2409
+ }>;
2410
+ export type TaskMailboxStatus = z.infer<typeof TaskMailboxStatusSchema>;
2411
+ export declare const TaskMailboxSettlementSchema: z.ZodObject<{
2412
+ claimId: z.ZodString;
2413
+ operationId: z.ZodString;
2414
+ taskId: z.ZodString;
2415
+ sourceRevision: z.ZodNumber;
2416
+ ownerEpoch: z.ZodNumber;
2417
+ claimToken: z.ZodString;
2418
+ outcome: z.ZodEnum<["accepted", "not_delivered", "unknown"]>;
2419
+ }, "strict", z.ZodTypeAny, {
2420
+ taskId: string;
2421
+ outcome: "unknown" | "accepted" | "not_delivered";
2422
+ sourceRevision: number;
2423
+ operationId: string;
2424
+ ownerEpoch: number;
2425
+ claimId: string;
2426
+ claimToken: string;
2427
+ }, {
2428
+ taskId: string;
2429
+ outcome: "unknown" | "accepted" | "not_delivered";
2430
+ sourceRevision: number;
2431
+ operationId: string;
2432
+ ownerEpoch: number;
2433
+ claimId: string;
2434
+ claimToken: string;
2435
+ }>;
2436
+ export type TaskMailboxSettlement = z.infer<typeof TaskMailboxSettlementSchema>;
2437
+ export declare const ApproveTaskPublicationSchema: z.ZodObject<{
2438
+ reporterDid: z.ZodString;
2439
+ repository: z.ZodString;
2440
+ baseSha: z.ZodString;
2441
+ expiresAt: z.ZodString;
2442
+ publishDraftPullRequest: z.ZodDefault<z.ZodBoolean>;
2443
+ sourceOperationId: z.ZodString;
2444
+ taskId: z.ZodString;
2445
+ sourceRevision: z.ZodNumber;
2446
+ ownerEpoch: z.ZodNumber;
2447
+ specRevision: z.ZodNumber;
2448
+ manifestDigest: z.ZodString;
2449
+ executionOperationId: z.ZodString;
2450
+ }, "strict", z.ZodTypeAny, {
2451
+ expiresAt: string;
2452
+ taskId: string;
2453
+ specRevision: number;
2454
+ manifestDigest: string;
2455
+ sourceRevision: number;
2456
+ repository: string;
2457
+ ownerEpoch: number;
2458
+ reporterDid: string;
2459
+ baseSha: string;
2460
+ publishDraftPullRequest: boolean;
2461
+ sourceOperationId: string;
2462
+ executionOperationId: string;
2463
+ }, {
2464
+ expiresAt: string;
2465
+ taskId: string;
2466
+ specRevision: number;
2467
+ manifestDigest: string;
2468
+ sourceRevision: number;
2469
+ repository: string;
2470
+ ownerEpoch: number;
2471
+ reporterDid: string;
2472
+ baseSha: string;
2473
+ sourceOperationId: string;
2474
+ executionOperationId: string;
2475
+ publishDraftPullRequest?: boolean | undefined;
2476
+ }>;
2477
+ export declare const FleetPullRequestReceiptSchema: z.ZodObject<{
2478
+ schema: z.ZodLiteral<"kya.fleet.pull-request.v1">;
2479
+ taskId: z.ZodString;
2480
+ number: z.ZodNumber;
2481
+ headSha: z.ZodString;
2482
+ }, "strict", z.ZodTypeAny, {
2483
+ number: number;
2484
+ taskId: string;
2485
+ schema: "kya.fleet.pull-request.v1";
2486
+ headSha: string;
2487
+ }, {
2488
+ number: number;
2489
+ taskId: string;
2490
+ schema: "kya.fleet.pull-request.v1";
2491
+ headSha: string;
2492
+ }>;
2493
+ export declare const TaskMailboxResultSchema: z.ZodObject<{
2494
+ outcome: z.ZodEnum<["completed", "failed", "cancelled"]>;
2495
+ artifact: z.ZodOptional<z.ZodObject<{
2496
+ schema: z.ZodLiteral<"kya.fleet.pull-request.v1">;
2497
+ taskId: z.ZodString;
2498
+ number: z.ZodNumber;
2499
+ headSha: z.ZodString;
2500
+ }, "strict", z.ZodTypeAny, {
2501
+ number: number;
2502
+ taskId: string;
2503
+ schema: "kya.fleet.pull-request.v1";
2504
+ headSha: string;
2505
+ }, {
2506
+ number: number;
2507
+ taskId: string;
2508
+ schema: "kya.fleet.pull-request.v1";
2509
+ headSha: string;
2510
+ }>>;
2511
+ sourceOperationId: z.ZodString;
2512
+ taskId: z.ZodString;
2513
+ sourceRevision: z.ZodNumber;
2514
+ ownerEpoch: z.ZodNumber;
2515
+ specRevision: z.ZodNumber;
2516
+ manifestDigest: z.ZodString;
2517
+ executionOperationId: z.ZodString;
2518
+ }, "strict", z.ZodTypeAny, {
2519
+ taskId: string;
2520
+ outcome: "completed" | "failed" | "cancelled";
2521
+ specRevision: number;
2522
+ manifestDigest: string;
2523
+ sourceRevision: number;
2524
+ ownerEpoch: number;
2525
+ sourceOperationId: string;
2526
+ executionOperationId: string;
2527
+ artifact?: {
2528
+ number: number;
2529
+ taskId: string;
2530
+ schema: "kya.fleet.pull-request.v1";
2531
+ headSha: string;
2532
+ } | undefined;
2533
+ }, {
2534
+ taskId: string;
2535
+ outcome: "completed" | "failed" | "cancelled";
2536
+ specRevision: number;
2537
+ manifestDigest: string;
2538
+ sourceRevision: number;
2539
+ ownerEpoch: number;
2540
+ sourceOperationId: string;
2541
+ executionOperationId: string;
2542
+ artifact?: {
2543
+ number: number;
2544
+ taskId: string;
2545
+ schema: "kya.fleet.pull-request.v1";
2546
+ headSha: string;
2547
+ } | undefined;
2548
+ }>;
2549
+ export type TaskMailboxResult = z.infer<typeof TaskMailboxResultSchema>;
2550
+ export declare const ApprovedTaskPublicationSchema: z.ZodObject<{
2551
+ reporterDid: z.ZodString;
2552
+ repository: z.ZodString;
2553
+ baseSha: z.ZodString;
2554
+ expiresAt: z.ZodString;
2555
+ publishDraftPullRequest: z.ZodDefault<z.ZodBoolean>;
2556
+ sourceOperationId: z.ZodString;
2557
+ taskId: z.ZodString;
2558
+ sourceRevision: z.ZodNumber;
2559
+ ownerEpoch: z.ZodNumber;
2560
+ specRevision: z.ZodNumber;
2561
+ manifestDigest: z.ZodString;
2562
+ executionOperationId: z.ZodString;
2563
+ } & {
2564
+ schema: z.ZodLiteral<"kya.task.publication-binding.v1">;
2565
+ branch: z.ZodString;
2566
+ approvedByUserId: z.ZodString;
2567
+ approvedAt: z.ZodString;
2568
+ githubInstallationId: z.ZodOptional<z.ZodNumber>;
2569
+ }, "strict", z.ZodTypeAny, {
2570
+ expiresAt: string;
2571
+ taskId: string;
2572
+ specRevision: number;
2573
+ manifestDigest: string;
2574
+ sourceRevision: number;
2575
+ repository: string;
2576
+ ownerEpoch: number;
2577
+ schema: "kya.task.publication-binding.v1";
2578
+ reporterDid: string;
2579
+ baseSha: string;
2580
+ publishDraftPullRequest: boolean;
2581
+ sourceOperationId: string;
2582
+ executionOperationId: string;
2583
+ branch: string;
2584
+ approvedByUserId: string;
2585
+ approvedAt: string;
2586
+ githubInstallationId?: number | undefined;
2587
+ }, {
2588
+ expiresAt: string;
2589
+ taskId: string;
2590
+ specRevision: number;
2591
+ manifestDigest: string;
2592
+ sourceRevision: number;
2593
+ repository: string;
2594
+ ownerEpoch: number;
2595
+ schema: "kya.task.publication-binding.v1";
2596
+ reporterDid: string;
2597
+ baseSha: string;
2598
+ sourceOperationId: string;
2599
+ executionOperationId: string;
2600
+ branch: string;
2601
+ approvedByUserId: string;
2602
+ approvedAt: string;
2603
+ githubInstallationId?: number | undefined;
2604
+ publishDraftPullRequest?: boolean | undefined;
2605
+ }>;
2606
+ export type ApprovedTaskPublication = z.infer<typeof ApprovedTaskPublicationSchema>;
2607
+ export declare const TaskStandingLimitsSchema: z.ZodObject<{
2608
+ maxRuntimeSeconds: z.ZodNumber;
2609
+ maxCostMicrousd: z.ZodNumber;
2610
+ maxOperations: z.ZodNumber;
2611
+ }, "strict", z.ZodTypeAny, {
2612
+ maxRuntimeSeconds: number;
2613
+ maxOperations: number;
2614
+ maxCostMicrousd: number;
2615
+ }, {
2616
+ maxRuntimeSeconds: number;
2617
+ maxOperations: number;
2618
+ maxCostMicrousd: number;
2619
+ }>;
2620
+ export declare const TaskStandingAdmissionRequestSchema: z.ZodEffects<z.ZodObject<{
2621
+ workerDid: z.ZodString;
2622
+ repository: z.ZodString;
2623
+ baseSha: z.ZodString;
2624
+ attemptNumber: z.ZodNumber;
2625
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
2626
+ limits: z.ZodObject<{
2627
+ maxRuntimeSeconds: z.ZodNumber;
2628
+ maxCostMicrousd: z.ZodNumber;
2629
+ maxOperations: z.ZodNumber;
2630
+ }, "strict", z.ZodTypeAny, {
2631
+ maxRuntimeSeconds: number;
2632
+ maxOperations: number;
2633
+ maxCostMicrousd: number;
2634
+ }, {
2635
+ maxRuntimeSeconds: number;
2636
+ maxOperations: number;
2637
+ maxCostMicrousd: number;
2638
+ }>;
2639
+ modelPolicy: z.ZodOptional<z.ZodObject<{
2640
+ provider: z.ZodLiteral<"anthropic">;
2641
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2642
+ maxOutputTokens: z.ZodNumber;
2643
+ maxRequestBytes: z.ZodNumber;
2644
+ reservedCostMicrousd: z.ZodNumber;
2645
+ }, "strict", z.ZodTypeAny, {
2646
+ provider: "anthropic";
2647
+ models: string[];
2648
+ maxOutputTokens: number;
2649
+ maxRequestBytes: number;
2650
+ reservedCostMicrousd: number;
2651
+ }, {
2652
+ provider: "anthropic";
2653
+ models: string[];
2654
+ maxOutputTokens: number;
2655
+ maxRequestBytes: number;
2656
+ reservedCostMicrousd: number;
2657
+ }>>;
2658
+ sourceOperationId: z.ZodString;
2659
+ taskId: z.ZodString;
2660
+ sourceRevision: z.ZodNumber;
2661
+ ownerEpoch: z.ZodNumber;
2662
+ specRevision: z.ZodNumber;
2663
+ manifestDigest: z.ZodString;
2664
+ executionOperationId: z.ZodString;
2665
+ }, "strict", z.ZodTypeAny, {
2666
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2667
+ taskId: string;
2668
+ specRevision: number;
2669
+ manifestDigest: string;
2670
+ sourceRevision: number;
2671
+ repository: string;
2672
+ attemptNumber: number;
2673
+ ownerEpoch: number;
2674
+ baseSha: string;
2675
+ sourceOperationId: string;
2676
+ executionOperationId: string;
2677
+ workerDid: string;
2678
+ limits: {
2679
+ maxRuntimeSeconds: number;
2680
+ maxOperations: number;
2681
+ maxCostMicrousd: number;
2682
+ };
2683
+ modelPolicy?: {
2684
+ provider: "anthropic";
2685
+ models: string[];
2686
+ maxOutputTokens: number;
2687
+ maxRequestBytes: number;
2688
+ reservedCostMicrousd: number;
2689
+ } | undefined;
2690
+ }, {
2691
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2692
+ taskId: string;
2693
+ specRevision: number;
2694
+ manifestDigest: string;
2695
+ sourceRevision: number;
2696
+ repository: string;
2697
+ attemptNumber: number;
2698
+ ownerEpoch: number;
2699
+ baseSha: string;
2700
+ sourceOperationId: string;
2701
+ executionOperationId: string;
2702
+ workerDid: string;
2703
+ limits: {
2704
+ maxRuntimeSeconds: number;
2705
+ maxOperations: number;
2706
+ maxCostMicrousd: number;
2707
+ };
2708
+ modelPolicy?: {
2709
+ provider: "anthropic";
2710
+ models: string[];
2711
+ maxOutputTokens: number;
2712
+ maxRequestBytes: number;
2713
+ reservedCostMicrousd: number;
2714
+ } | undefined;
2715
+ }>, {
2716
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2717
+ taskId: string;
2718
+ specRevision: number;
2719
+ manifestDigest: string;
2720
+ sourceRevision: number;
2721
+ repository: string;
2722
+ attemptNumber: number;
2723
+ ownerEpoch: number;
2724
+ baseSha: string;
2725
+ sourceOperationId: string;
2726
+ executionOperationId: string;
2727
+ workerDid: string;
2728
+ limits: {
2729
+ maxRuntimeSeconds: number;
2730
+ maxOperations: number;
2731
+ maxCostMicrousd: number;
2732
+ };
2733
+ modelPolicy?: {
2734
+ provider: "anthropic";
2735
+ models: string[];
2736
+ maxOutputTokens: number;
2737
+ maxRequestBytes: number;
2738
+ reservedCostMicrousd: number;
2739
+ } | undefined;
2740
+ }, {
2741
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2742
+ taskId: string;
2743
+ specRevision: number;
2744
+ manifestDigest: string;
2745
+ sourceRevision: number;
2746
+ repository: string;
2747
+ attemptNumber: number;
2748
+ ownerEpoch: number;
2749
+ baseSha: string;
2750
+ sourceOperationId: string;
2751
+ executionOperationId: string;
2752
+ workerDid: string;
2753
+ limits: {
2754
+ maxRuntimeSeconds: number;
2755
+ maxOperations: number;
2756
+ maxCostMicrousd: number;
2757
+ };
2758
+ modelPolicy?: {
2759
+ provider: "anthropic";
2760
+ models: string[];
2761
+ maxOutputTokens: number;
2762
+ maxRequestBytes: number;
2763
+ reservedCostMicrousd: number;
2764
+ } | undefined;
2765
+ }>;
2766
+ export type TaskStandingAdmissionRequest = z.infer<typeof TaskStandingAdmissionRequestSchema>;
2767
+ export declare const TaskStandingAdmissionSchema: z.ZodEffects<z.ZodObject<Omit<{
2768
+ workerDid: z.ZodString;
2769
+ repository: z.ZodString;
2770
+ baseSha: z.ZodString;
2771
+ attemptNumber: z.ZodNumber;
2772
+ capabilities: z.ZodEffects<z.ZodArray<z.ZodEnum<["task.execute", "model.invoke", "github.branch.write", "github.pull_request.draft"]>, "many">, ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[], ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[]>;
2773
+ limits: z.ZodObject<{
2774
+ maxRuntimeSeconds: z.ZodNumber;
2775
+ maxCostMicrousd: z.ZodNumber;
2776
+ maxOperations: z.ZodNumber;
2777
+ }, "strict", z.ZodTypeAny, {
2778
+ maxRuntimeSeconds: number;
2779
+ maxOperations: number;
2780
+ maxCostMicrousd: number;
2781
+ }, {
2782
+ maxRuntimeSeconds: number;
2783
+ maxOperations: number;
2784
+ maxCostMicrousd: number;
2785
+ }>;
2786
+ modelPolicy: z.ZodOptional<z.ZodObject<{
2787
+ provider: z.ZodLiteral<"anthropic">;
2788
+ models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2789
+ maxOutputTokens: z.ZodNumber;
2790
+ maxRequestBytes: z.ZodNumber;
2791
+ reservedCostMicrousd: z.ZodNumber;
2792
+ }, "strict", z.ZodTypeAny, {
2793
+ provider: "anthropic";
2794
+ models: string[];
2795
+ maxOutputTokens: number;
2796
+ maxRequestBytes: number;
2797
+ reservedCostMicrousd: number;
2798
+ }, {
2799
+ provider: "anthropic";
2800
+ models: string[];
2801
+ maxOutputTokens: number;
2802
+ maxRequestBytes: number;
2803
+ reservedCostMicrousd: number;
2804
+ }>>;
2805
+ sourceOperationId: z.ZodString;
2806
+ taskId: z.ZodString;
2807
+ sourceRevision: z.ZodNumber;
2808
+ ownerEpoch: z.ZodNumber;
2809
+ specRevision: z.ZodNumber;
2810
+ manifestDigest: z.ZodString;
2811
+ executionOperationId: z.ZodString;
2812
+ }, "workerDid"> & {
2813
+ schema: z.ZodLiteral<"kya.task.admission.v1">;
2814
+ admissionId: z.ZodString;
2815
+ organizationId: z.ZodString;
2816
+ projectId: z.ZodString;
2817
+ installationId: z.ZodString;
2818
+ leadDid: z.ZodString;
2819
+ holderDid: z.ZodString;
2820
+ branch: z.ZodString;
2821
+ notBefore: z.ZodString;
2822
+ expiresAt: z.ZodString;
2823
+ policyProvenance: z.ZodLiteral<"administrator_registered">;
2824
+ requiresOnlineActionGate: z.ZodLiteral<true>;
2825
+ credentialExport: z.ZodLiteral<false>;
2826
+ }, "strict", z.ZodTypeAny, {
2827
+ projectId: string;
2828
+ organizationId: string;
2829
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2830
+ expiresAt: string;
2831
+ taskId: string;
2832
+ notBefore: string;
2833
+ specRevision: number;
2834
+ manifestDigest: string;
2835
+ sourceRevision: number;
2836
+ repository: string;
2837
+ attemptNumber: number;
2838
+ ownerEpoch: number;
2839
+ admissionId: string;
2840
+ schema: "kya.task.admission.v1";
2841
+ installationId: string;
2842
+ baseSha: string;
2843
+ sourceOperationId: string;
2844
+ executionOperationId: string;
2845
+ branch: string;
2846
+ limits: {
2847
+ maxRuntimeSeconds: number;
2848
+ maxOperations: number;
2849
+ maxCostMicrousd: number;
2850
+ };
2851
+ leadDid: string;
2852
+ holderDid: string;
2853
+ policyProvenance: "administrator_registered";
2854
+ requiresOnlineActionGate: true;
2855
+ credentialExport: false;
2856
+ modelPolicy?: {
2857
+ provider: "anthropic";
2858
+ models: string[];
2859
+ maxOutputTokens: number;
2860
+ maxRequestBytes: number;
2861
+ reservedCostMicrousd: number;
2862
+ } | undefined;
2863
+ }, {
2864
+ projectId: string;
2865
+ organizationId: string;
2866
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2867
+ expiresAt: string;
2868
+ taskId: string;
2869
+ notBefore: string;
2870
+ specRevision: number;
2871
+ manifestDigest: string;
2872
+ sourceRevision: number;
2873
+ repository: string;
2874
+ attemptNumber: number;
2875
+ ownerEpoch: number;
2876
+ admissionId: string;
2877
+ schema: "kya.task.admission.v1";
2878
+ installationId: string;
2879
+ baseSha: string;
2880
+ sourceOperationId: string;
2881
+ executionOperationId: string;
2882
+ branch: string;
2883
+ limits: {
2884
+ maxRuntimeSeconds: number;
2885
+ maxOperations: number;
2886
+ maxCostMicrousd: number;
2887
+ };
2888
+ leadDid: string;
2889
+ holderDid: string;
2890
+ policyProvenance: "administrator_registered";
2891
+ requiresOnlineActionGate: true;
2892
+ credentialExport: false;
2893
+ modelPolicy?: {
2894
+ provider: "anthropic";
2895
+ models: string[];
2896
+ maxOutputTokens: number;
2897
+ maxRequestBytes: number;
2898
+ reservedCostMicrousd: number;
2899
+ } | undefined;
2900
+ }>, {
2901
+ projectId: string;
2902
+ organizationId: string;
2903
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2904
+ expiresAt: string;
2905
+ taskId: string;
2906
+ notBefore: string;
2907
+ specRevision: number;
2908
+ manifestDigest: string;
2909
+ sourceRevision: number;
2910
+ repository: string;
2911
+ attemptNumber: number;
2912
+ ownerEpoch: number;
2913
+ admissionId: string;
2914
+ schema: "kya.task.admission.v1";
2915
+ installationId: string;
2916
+ baseSha: string;
2917
+ sourceOperationId: string;
2918
+ executionOperationId: string;
2919
+ branch: string;
2920
+ limits: {
2921
+ maxRuntimeSeconds: number;
2922
+ maxOperations: number;
2923
+ maxCostMicrousd: number;
2924
+ };
2925
+ leadDid: string;
2926
+ holderDid: string;
2927
+ policyProvenance: "administrator_registered";
2928
+ requiresOnlineActionGate: true;
2929
+ credentialExport: false;
2930
+ modelPolicy?: {
2931
+ provider: "anthropic";
2932
+ models: string[];
2933
+ maxOutputTokens: number;
2934
+ maxRequestBytes: number;
2935
+ reservedCostMicrousd: number;
2936
+ } | undefined;
2937
+ }, {
2938
+ projectId: string;
2939
+ organizationId: string;
2940
+ capabilities: ("task.execute" | "model.invoke" | "github.branch.write" | "github.pull_request.draft")[];
2941
+ expiresAt: string;
2942
+ taskId: string;
2943
+ notBefore: string;
2944
+ specRevision: number;
2945
+ manifestDigest: string;
2946
+ sourceRevision: number;
2947
+ repository: string;
2948
+ attemptNumber: number;
2949
+ ownerEpoch: number;
2950
+ admissionId: string;
2951
+ schema: "kya.task.admission.v1";
2952
+ installationId: string;
2953
+ baseSha: string;
2954
+ sourceOperationId: string;
2955
+ executionOperationId: string;
2956
+ branch: string;
2957
+ limits: {
2958
+ maxRuntimeSeconds: number;
2959
+ maxOperations: number;
2960
+ maxCostMicrousd: number;
2961
+ };
2962
+ leadDid: string;
2963
+ holderDid: string;
2964
+ policyProvenance: "administrator_registered";
2965
+ requiresOnlineActionGate: true;
2966
+ credentialExport: false;
2967
+ modelPolicy?: {
2968
+ provider: "anthropic";
2969
+ models: string[];
2970
+ maxOutputTokens: number;
2971
+ maxRequestBytes: number;
2972
+ reservedCostMicrousd: number;
2973
+ } | undefined;
2974
+ }>;
2975
+ export type TaskStandingAdmission = z.infer<typeof TaskStandingAdmissionSchema>;
2976
+ export declare const TaskStandingActionSchema: z.ZodObject<{
2977
+ admissionId: z.ZodString;
2978
+ operationId: z.ZodString;
2979
+ ownerEpoch: z.ZodNumber;
2980
+ action: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2981
+ kind: z.ZodLiteral<"task.start">;
2982
+ }, "strict", z.ZodTypeAny, {
2983
+ kind: "task.start";
2984
+ }, {
2985
+ kind: "task.start";
2986
+ }>, z.ZodObject<{
2987
+ kind: z.ZodLiteral<"model.invoke">;
2988
+ provider: z.ZodLiteral<"anthropic">;
2989
+ model: z.ZodString;
2990
+ requestDigest: z.ZodString;
2991
+ maxOutputTokens: z.ZodNumber;
2992
+ }, "strict", z.ZodTypeAny, {
2993
+ provider: "anthropic";
2994
+ kind: "model.invoke";
2995
+ model: string;
2996
+ maxOutputTokens: number;
2997
+ requestDigest: string;
2998
+ }, {
2999
+ provider: "anthropic";
3000
+ kind: "model.invoke";
3001
+ model: string;
3002
+ maxOutputTokens: number;
3003
+ requestDigest: string;
3004
+ }>, z.ZodObject<{
3005
+ kind: z.ZodLiteral<"task.finish">;
3006
+ outcome: z.ZodEnum<["completed", "failed", "cancelled", "unknown"]>;
3007
+ }, "strict", z.ZodTypeAny, {
3008
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3009
+ kind: "task.finish";
3010
+ }, {
3011
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3012
+ kind: "task.finish";
3013
+ }>, z.ZodObject<{
3014
+ kind: z.ZodLiteral<"github.commit">;
3015
+ expectedHeadSha: z.ZodString;
3016
+ message: z.ZodString;
3017
+ files: z.ZodArray<z.ZodObject<{
3018
+ path: z.ZodString;
3019
+ content: z.ZodNullable<z.ZodString>;
3020
+ }, "strict", z.ZodTypeAny, {
3021
+ path: string;
3022
+ content: string | null;
3023
+ }, {
3024
+ path: string;
3025
+ content: string | null;
3026
+ }>, "many">;
3027
+ }, "strict", z.ZodTypeAny, {
3028
+ message: string;
3029
+ kind: "github.commit";
3030
+ expectedHeadSha: string;
3031
+ files: {
3032
+ path: string;
3033
+ content: string | null;
3034
+ }[];
3035
+ }, {
3036
+ message: string;
3037
+ kind: "github.commit";
3038
+ expectedHeadSha: string;
3039
+ files: {
3040
+ path: string;
3041
+ content: string | null;
3042
+ }[];
3043
+ }>, z.ZodObject<{
3044
+ kind: z.ZodLiteral<"github.pull_request.draft">;
3045
+ headSha: z.ZodString;
3046
+ }, "strict", z.ZodTypeAny, {
3047
+ kind: "github.pull_request.draft";
3048
+ headSha: string;
3049
+ }, {
3050
+ kind: "github.pull_request.draft";
3051
+ headSha: string;
3052
+ }>]>;
3053
+ }, "strict", z.ZodTypeAny, {
3054
+ action: {
3055
+ kind: "task.start";
3056
+ } | {
3057
+ provider: "anthropic";
3058
+ kind: "model.invoke";
3059
+ model: string;
3060
+ maxOutputTokens: number;
3061
+ requestDigest: string;
3062
+ } | {
3063
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3064
+ kind: "task.finish";
3065
+ } | {
3066
+ message: string;
3067
+ kind: "github.commit";
3068
+ expectedHeadSha: string;
3069
+ files: {
3070
+ path: string;
3071
+ content: string | null;
3072
+ }[];
3073
+ } | {
3074
+ kind: "github.pull_request.draft";
3075
+ headSha: string;
3076
+ };
3077
+ operationId: string;
3078
+ ownerEpoch: number;
3079
+ admissionId: string;
3080
+ }, {
3081
+ action: {
3082
+ kind: "task.start";
3083
+ } | {
3084
+ provider: "anthropic";
3085
+ kind: "model.invoke";
3086
+ model: string;
3087
+ maxOutputTokens: number;
3088
+ requestDigest: string;
3089
+ } | {
3090
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3091
+ kind: "task.finish";
3092
+ } | {
3093
+ message: string;
3094
+ kind: "github.commit";
3095
+ expectedHeadSha: string;
3096
+ files: {
3097
+ path: string;
3098
+ content: string | null;
3099
+ }[];
3100
+ } | {
3101
+ kind: "github.pull_request.draft";
3102
+ headSha: string;
3103
+ };
3104
+ operationId: string;
3105
+ ownerEpoch: number;
3106
+ admissionId: string;
3107
+ }>;
3108
+ export type TaskStandingAction = z.infer<typeof TaskStandingActionSchema>;
3109
+ export declare const TaskStandingReconcileSchema: z.ZodObject<{
3110
+ admissionId: z.ZodString;
3111
+ operationId: z.ZodString;
3112
+ ownerEpoch: z.ZodNumber;
3113
+ action: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3114
+ kind: z.ZodLiteral<"task.start">;
3115
+ }, "strict", z.ZodTypeAny, {
3116
+ kind: "task.start";
3117
+ }, {
3118
+ kind: "task.start";
3119
+ }>, z.ZodObject<{
3120
+ kind: z.ZodLiteral<"model.invoke">;
3121
+ provider: z.ZodLiteral<"anthropic">;
3122
+ model: z.ZodString;
3123
+ requestDigest: z.ZodString;
3124
+ maxOutputTokens: z.ZodNumber;
3125
+ }, "strict", z.ZodTypeAny, {
3126
+ provider: "anthropic";
3127
+ kind: "model.invoke";
3128
+ model: string;
3129
+ maxOutputTokens: number;
3130
+ requestDigest: string;
3131
+ }, {
3132
+ provider: "anthropic";
3133
+ kind: "model.invoke";
3134
+ model: string;
3135
+ maxOutputTokens: number;
3136
+ requestDigest: string;
3137
+ }>, z.ZodObject<{
3138
+ kind: z.ZodLiteral<"task.finish">;
3139
+ outcome: z.ZodEnum<["completed", "failed", "cancelled", "unknown"]>;
3140
+ }, "strict", z.ZodTypeAny, {
3141
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3142
+ kind: "task.finish";
3143
+ }, {
3144
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3145
+ kind: "task.finish";
3146
+ }>, z.ZodObject<{
3147
+ kind: z.ZodLiteral<"github.commit">;
3148
+ expectedHeadSha: z.ZodString;
3149
+ message: z.ZodString;
3150
+ files: z.ZodArray<z.ZodObject<{
3151
+ path: z.ZodString;
3152
+ content: z.ZodNullable<z.ZodString>;
3153
+ }, "strict", z.ZodTypeAny, {
3154
+ path: string;
3155
+ content: string | null;
3156
+ }, {
3157
+ path: string;
3158
+ content: string | null;
3159
+ }>, "many">;
3160
+ }, "strict", z.ZodTypeAny, {
3161
+ message: string;
3162
+ kind: "github.commit";
3163
+ expectedHeadSha: string;
3164
+ files: {
3165
+ path: string;
3166
+ content: string | null;
3167
+ }[];
3168
+ }, {
3169
+ message: string;
3170
+ kind: "github.commit";
3171
+ expectedHeadSha: string;
3172
+ files: {
3173
+ path: string;
3174
+ content: string | null;
3175
+ }[];
3176
+ }>, z.ZodObject<{
3177
+ kind: z.ZodLiteral<"github.pull_request.draft">;
3178
+ headSha: z.ZodString;
3179
+ }, "strict", z.ZodTypeAny, {
3180
+ kind: "github.pull_request.draft";
3181
+ headSha: string;
3182
+ }, {
3183
+ kind: "github.pull_request.draft";
3184
+ headSha: string;
3185
+ }>]>;
3186
+ } & {
3187
+ originalOwnerEpoch: z.ZodNumber;
3188
+ }, "strict", z.ZodTypeAny, {
3189
+ action: {
3190
+ kind: "task.start";
3191
+ } | {
3192
+ provider: "anthropic";
3193
+ kind: "model.invoke";
3194
+ model: string;
3195
+ maxOutputTokens: number;
3196
+ requestDigest: string;
3197
+ } | {
3198
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3199
+ kind: "task.finish";
3200
+ } | {
3201
+ message: string;
3202
+ kind: "github.commit";
3203
+ expectedHeadSha: string;
3204
+ files: {
3205
+ path: string;
3206
+ content: string | null;
3207
+ }[];
3208
+ } | {
3209
+ kind: "github.pull_request.draft";
3210
+ headSha: string;
3211
+ };
3212
+ operationId: string;
3213
+ ownerEpoch: number;
3214
+ admissionId: string;
3215
+ originalOwnerEpoch: number;
3216
+ }, {
3217
+ action: {
3218
+ kind: "task.start";
3219
+ } | {
3220
+ provider: "anthropic";
3221
+ kind: "model.invoke";
3222
+ model: string;
3223
+ maxOutputTokens: number;
3224
+ requestDigest: string;
3225
+ } | {
3226
+ outcome: "unknown" | "completed" | "failed" | "cancelled";
3227
+ kind: "task.finish";
3228
+ } | {
3229
+ message: string;
3230
+ kind: "github.commit";
3231
+ expectedHeadSha: string;
3232
+ files: {
3233
+ path: string;
3234
+ content: string | null;
3235
+ }[];
3236
+ } | {
3237
+ kind: "github.pull_request.draft";
3238
+ headSha: string;
3239
+ };
3240
+ operationId: string;
3241
+ ownerEpoch: number;
3242
+ admissionId: string;
3243
+ originalOwnerEpoch: number;
3244
+ }>;
3245
+ export type TaskStandingReconcile = z.infer<typeof TaskStandingReconcileSchema>;