@owlmeans/viable-sdk 0.1.18-rc.8 → 0.1.18

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 (498) hide show
  1. package/README.md +29 -11
  2. package/agent-meta/manifest.json +16 -0
  3. package/agent-meta/skills/viable-sdk/SKILL.md +1033 -0
  4. package/build/api/collect/types.d.ts +30 -0
  5. package/build/api/collect/types.d.ts.map +1 -0
  6. package/build/api/collect/types.js +2 -0
  7. package/build/api/collect/types.js.map +1 -0
  8. package/build/api/collect.d.ts +14 -0
  9. package/build/api/collect.d.ts.map +1 -0
  10. package/build/api/collect.js +132 -0
  11. package/build/api/collect.js.map +1 -0
  12. package/build/api/consts.local.d.ts +21 -0
  13. package/build/api/consts.local.d.ts.map +1 -0
  14. package/build/api/consts.local.js +25 -0
  15. package/build/api/consts.local.js.map +1 -0
  16. package/build/api/index.d.ts +5 -0
  17. package/build/api/index.d.ts.map +1 -1
  18. package/build/api/index.js +2 -0
  19. package/build/api/index.js.map +1 -1
  20. package/build/api/remote.d.ts +13 -6
  21. package/build/api/remote.d.ts.map +1 -1
  22. package/build/api/remote.js +302 -35
  23. package/build/api/remote.js.map +1 -1
  24. package/build/api/transport/types.d.ts +14 -0
  25. package/build/api/transport/types.d.ts.map +1 -0
  26. package/build/api/transport/types.js +2 -0
  27. package/build/api/transport/types.js.map +1 -0
  28. package/build/api/transport.d.ts +4 -0
  29. package/build/api/transport.d.ts.map +1 -0
  30. package/build/api/transport.js +32 -0
  31. package/build/api/transport.js.map +1 -0
  32. package/build/api/types.d.ts +9 -0
  33. package/build/api/types.d.ts.map +1 -0
  34. package/build/api/types.js +2 -0
  35. package/build/api/types.js.map +1 -0
  36. package/build/api/types.local.d.ts +3 -0
  37. package/build/api/types.local.d.ts.map +1 -0
  38. package/build/api/types.local.js +2 -0
  39. package/build/api/types.local.js.map +1 -0
  40. package/build/consts.d.ts +29 -14
  41. package/build/consts.d.ts.map +1 -1
  42. package/build/consts.js +30 -14
  43. package/build/consts.js.map +1 -1
  44. package/build/context/consts.local.d.ts +18 -0
  45. package/build/context/consts.local.d.ts.map +1 -0
  46. package/build/context/consts.local.js +18 -0
  47. package/build/context/consts.local.js.map +1 -0
  48. package/build/context/index.d.ts +3 -7
  49. package/build/context/index.d.ts.map +1 -1
  50. package/build/context/index.js +58 -25
  51. package/build/context/index.js.map +1 -1
  52. package/build/context/types.d.ts +26 -0
  53. package/build/context/types.d.ts.map +1 -0
  54. package/build/context/types.js +2 -0
  55. package/build/context/types.js.map +1 -0
  56. package/build/executor/boot-check.d.ts +1 -40
  57. package/build/executor/boot-check.d.ts.map +1 -1
  58. package/build/executor/boot-check.js +22 -19
  59. package/build/executor/boot-check.js.map +1 -1
  60. package/build/executor/consts.d.ts +55 -0
  61. package/build/executor/consts.d.ts.map +1 -0
  62. package/build/executor/consts.js +66 -0
  63. package/build/executor/consts.js.map +1 -0
  64. package/build/executor/consts.local.d.ts +63 -0
  65. package/build/executor/consts.local.d.ts.map +1 -0
  66. package/build/executor/consts.local.js +69 -0
  67. package/build/executor/consts.local.js.map +1 -0
  68. package/build/executor/env/types.d.ts +40 -0
  69. package/build/executor/env/types.d.ts.map +1 -0
  70. package/build/executor/env/types.js +2 -0
  71. package/build/executor/env/types.js.map +1 -0
  72. package/build/executor/env.d.ts +11 -20
  73. package/build/executor/env.d.ts.map +1 -1
  74. package/build/executor/env.js +39 -59
  75. package/build/executor/env.js.map +1 -1
  76. package/build/executor/errors.d.ts +15 -0
  77. package/build/executor/errors.d.ts.map +1 -1
  78. package/build/executor/errors.js +19 -2
  79. package/build/executor/errors.js.map +1 -1
  80. package/build/executor/files/types.d.ts +106 -0
  81. package/build/executor/files/types.d.ts.map +1 -0
  82. package/build/executor/files/types.js +2 -0
  83. package/build/executor/files/types.js.map +1 -0
  84. package/build/executor/files.d.ts +2 -50
  85. package/build/executor/files.d.ts.map +1 -1
  86. package/build/executor/files.js +225 -68
  87. package/build/executor/files.js.map +1 -1
  88. package/build/executor/git/types.d.ts +19 -0
  89. package/build/executor/git/types.d.ts.map +1 -0
  90. package/build/executor/git/types.js +2 -0
  91. package/build/executor/git/types.js.map +1 -0
  92. package/build/executor/git.d.ts +4 -36
  93. package/build/executor/git.d.ts.map +1 -1
  94. package/build/executor/git.js +206 -241
  95. package/build/executor/git.js.map +1 -1
  96. package/build/executor/glob/types.d.ts +12 -0
  97. package/build/executor/glob/types.d.ts.map +1 -0
  98. package/build/executor/glob/types.js +2 -0
  99. package/build/executor/glob/types.js.map +1 -0
  100. package/build/executor/glob.d.ts +4 -0
  101. package/build/executor/glob.d.ts.map +1 -0
  102. package/build/executor/glob.js +11 -0
  103. package/build/executor/glob.js.map +1 -0
  104. package/build/executor/health/types.d.ts +39 -0
  105. package/build/executor/health/types.d.ts.map +1 -0
  106. package/build/executor/health/types.js +2 -0
  107. package/build/executor/health/types.js.map +1 -0
  108. package/build/executor/health.d.ts +3 -83
  109. package/build/executor/health.d.ts.map +1 -1
  110. package/build/executor/health.js +76 -91
  111. package/build/executor/health.js.map +1 -1
  112. package/build/executor/index.d.ts +14 -15
  113. package/build/executor/index.d.ts.map +1 -1
  114. package/build/executor/index.js +36 -18
  115. package/build/executor/index.js.map +1 -1
  116. package/build/executor/integrity/types.d.ts +25 -0
  117. package/build/executor/integrity/types.d.ts.map +1 -0
  118. package/build/executor/integrity/types.js +2 -0
  119. package/build/executor/integrity/types.js.map +1 -0
  120. package/build/executor/integrity.d.ts +5 -15
  121. package/build/executor/integrity.d.ts.map +1 -1
  122. package/build/executor/integrity.js +28 -39
  123. package/build/executor/integrity.js.map +1 -1
  124. package/build/executor/layout/types.d.ts +69 -0
  125. package/build/executor/layout/types.d.ts.map +1 -0
  126. package/build/executor/layout/types.js +2 -0
  127. package/build/executor/layout/types.js.map +1 -0
  128. package/build/executor/layout.d.ts +9 -56
  129. package/build/executor/layout.d.ts.map +1 -1
  130. package/build/executor/layout.js +35 -82
  131. package/build/executor/layout.js.map +1 -1
  132. package/build/executor/shell/types.d.ts +76 -0
  133. package/build/executor/shell/types.d.ts.map +1 -0
  134. package/build/executor/shell/types.js +2 -0
  135. package/build/executor/shell/types.js.map +1 -0
  136. package/build/executor/shell.d.ts +3 -78
  137. package/build/executor/shell.d.ts.map +1 -1
  138. package/build/executor/shell.js +61 -91
  139. package/build/executor/shell.js.map +1 -1
  140. package/build/executor/spawn/types.d.ts +98 -0
  141. package/build/executor/spawn/types.d.ts.map +1 -0
  142. package/build/executor/spawn/types.js +2 -0
  143. package/build/executor/spawn/types.js.map +1 -0
  144. package/build/executor/spawn.d.ts +3 -103
  145. package/build/executor/spawn.d.ts.map +1 -1
  146. package/build/executor/spawn.js +192 -274
  147. package/build/executor/spawn.js.map +1 -1
  148. package/build/executor/types.d.ts +123 -0
  149. package/build/executor/types.d.ts.map +1 -0
  150. package/build/executor/types.js +2 -0
  151. package/build/executor/types.js.map +1 -0
  152. package/build/executor/types.local.d.ts +6 -0
  153. package/build/executor/types.local.d.ts.map +1 -0
  154. package/build/executor/types.local.js +2 -0
  155. package/build/executor/types.local.js.map +1 -0
  156. package/build/index.d.ts +14 -1
  157. package/build/index.d.ts.map +1 -1
  158. package/build/index.js +5 -1
  159. package/build/index.js.map +1 -1
  160. package/build/project/consts.d.ts +17 -0
  161. package/build/project/consts.d.ts.map +1 -0
  162. package/build/project/consts.js +17 -0
  163. package/build/project/consts.js.map +1 -0
  164. package/build/project/consts.local.d.ts +4 -0
  165. package/build/project/consts.local.d.ts.map +1 -0
  166. package/build/project/consts.local.js +4 -0
  167. package/build/project/consts.local.js.map +1 -0
  168. package/build/project/dotenv/types.d.ts +39 -0
  169. package/build/project/dotenv/types.d.ts.map +1 -0
  170. package/build/project/dotenv/types.js +2 -0
  171. package/build/project/dotenv/types.js.map +1 -0
  172. package/build/project/dotenv.d.ts +4 -0
  173. package/build/project/dotenv.d.ts.map +1 -0
  174. package/build/project/dotenv.js +56 -0
  175. package/build/project/dotenv.js.map +1 -0
  176. package/build/project/env/types.d.ts +40 -0
  177. package/build/project/env/types.d.ts.map +1 -0
  178. package/build/project/env/types.js +2 -0
  179. package/build/project/env/types.js.map +1 -0
  180. package/build/project/env.d.ts +2 -98
  181. package/build/project/env.d.ts.map +1 -1
  182. package/build/project/env.js +63 -215
  183. package/build/project/env.js.map +1 -1
  184. package/build/project/marker/types.d.ts +33 -0
  185. package/build/project/marker/types.d.ts.map +1 -0
  186. package/build/project/marker/types.js +2 -0
  187. package/build/project/marker/types.js.map +1 -0
  188. package/build/project/marker.d.ts +4 -25
  189. package/build/project/marker.d.ts.map +1 -1
  190. package/build/project/marker.js +40 -43
  191. package/build/project/marker.js.map +1 -1
  192. package/build/project/probe/types.d.ts +22 -0
  193. package/build/project/probe/types.d.ts.map +1 -0
  194. package/build/project/probe/types.js +2 -0
  195. package/build/project/probe/types.js.map +1 -0
  196. package/build/project/probe.d.ts +4 -0
  197. package/build/project/probe.d.ts.map +1 -0
  198. package/build/project/probe.js +39 -0
  199. package/build/project/probe.js.map +1 -0
  200. package/build/project/report/types.d.ts +18 -0
  201. package/build/project/report/types.d.ts.map +1 -0
  202. package/build/project/report/types.js +2 -0
  203. package/build/project/report/types.js.map +1 -0
  204. package/build/project/report.d.ts +7 -0
  205. package/build/project/report.d.ts.map +1 -0
  206. package/build/project/report.js +68 -0
  207. package/build/project/report.js.map +1 -0
  208. package/build/project/setup/types.d.ts +32 -0
  209. package/build/project/setup/types.d.ts.map +1 -0
  210. package/build/project/setup/types.js +2 -0
  211. package/build/project/setup/types.js.map +1 -0
  212. package/build/project/setup.d.ts +4 -53
  213. package/build/project/setup.d.ts.map +1 -1
  214. package/build/project/setup.js +112 -175
  215. package/build/project/setup.js.map +1 -1
  216. package/build/project/types.d.ts +37 -0
  217. package/build/project/types.d.ts.map +1 -0
  218. package/build/project/types.js +2 -0
  219. package/build/project/types.js.map +1 -0
  220. package/build/run/consts.local.d.ts +3 -0
  221. package/build/run/consts.local.d.ts.map +1 -0
  222. package/build/run/consts.local.js +26 -0
  223. package/build/run/consts.local.js.map +1 -0
  224. package/build/run/index.d.ts +11 -69
  225. package/build/run/index.d.ts.map +1 -1
  226. package/build/run/index.js +9 -147
  227. package/build/run/index.js.map +1 -1
  228. package/build/run/local/types.d.ts +39 -0
  229. package/build/run/local/types.d.ts.map +1 -0
  230. package/build/run/local/types.js +2 -0
  231. package/build/run/local/types.js.map +1 -0
  232. package/build/run/local.d.ts +3 -0
  233. package/build/run/local.d.ts.map +1 -0
  234. package/build/run/local.js +130 -0
  235. package/build/run/local.js.map +1 -0
  236. package/build/run/process/types.d.ts +15 -0
  237. package/build/run/process/types.d.ts.map +1 -0
  238. package/build/run/process/types.js +2 -0
  239. package/build/run/process/types.js.map +1 -0
  240. package/build/run/process.d.ts +4 -0
  241. package/build/run/process.d.ts.map +1 -0
  242. package/build/run/process.js +20 -0
  243. package/build/run/process.js.map +1 -0
  244. package/build/run/serve.d.ts +14 -9
  245. package/build/run/serve.d.ts.map +1 -1
  246. package/build/run/serve.js +1 -25
  247. package/build/run/serve.js.map +1 -1
  248. package/build/run/state/types.d.ts +35 -0
  249. package/build/run/state/types.d.ts.map +1 -0
  250. package/build/run/state/types.js +2 -0
  251. package/build/run/state/types.js.map +1 -0
  252. package/build/run/state.d.ts +3 -62
  253. package/build/run/state.d.ts.map +1 -1
  254. package/build/run/state.js +96 -123
  255. package/build/run/state.js.map +1 -1
  256. package/build/run/types.d.ts +78 -0
  257. package/build/run/types.d.ts.map +1 -0
  258. package/build/run/types.js +2 -0
  259. package/build/run/types.js.map +1 -0
  260. package/build/session/consts.local.d.ts +5 -0
  261. package/build/session/consts.local.d.ts.map +1 -0
  262. package/build/session/consts.local.js +5 -0
  263. package/build/session/consts.local.js.map +1 -0
  264. package/build/session/index.d.ts +5 -10
  265. package/build/session/index.d.ts.map +1 -1
  266. package/build/session/index.js +84 -15
  267. package/build/session/index.js.map +1 -1
  268. package/build/session/questions.d.ts +16 -0
  269. package/build/session/questions.d.ts.map +1 -0
  270. package/build/session/questions.js +17 -0
  271. package/build/session/questions.js.map +1 -0
  272. package/build/session/queue.d.ts +61 -0
  273. package/build/session/queue.d.ts.map +1 -0
  274. package/build/session/queue.js +156 -0
  275. package/build/session/queue.js.map +1 -0
  276. package/build/session/tasks.d.ts +11 -30
  277. package/build/session/tasks.d.ts.map +1 -1
  278. package/build/session/tasks.js +18 -78
  279. package/build/session/tasks.js.map +1 -1
  280. package/build/session/types.d.ts +20 -0
  281. package/build/session/types.d.ts.map +1 -0
  282. package/build/session/types.js +2 -0
  283. package/build/session/types.js.map +1 -0
  284. package/build/task/consts.d.ts +12 -0
  285. package/build/task/consts.d.ts.map +1 -0
  286. package/build/task/consts.js +12 -0
  287. package/build/task/consts.js.map +1 -0
  288. package/build/task/consts.local.d.ts +19 -0
  289. package/build/task/consts.local.d.ts.map +1 -0
  290. package/build/task/consts.local.js +72 -0
  291. package/build/task/consts.local.js.map +1 -0
  292. package/build/task/driver.d.ts +1 -28
  293. package/build/task/driver.d.ts.map +1 -1
  294. package/build/task/driver.js +2 -9
  295. package/build/task/driver.js.map +1 -1
  296. package/build/task/envelope/types.d.ts +29 -0
  297. package/build/task/envelope/types.d.ts.map +1 -0
  298. package/build/task/envelope/types.js +2 -0
  299. package/build/task/envelope/types.js.map +1 -0
  300. package/build/task/envelope.d.ts +4 -34
  301. package/build/task/envelope.d.ts.map +1 -1
  302. package/build/task/envelope.js +103 -165
  303. package/build/task/envelope.js.map +1 -1
  304. package/build/task/index.d.ts +5 -0
  305. package/build/task/index.d.ts.map +1 -1
  306. package/build/task/index.js +2 -0
  307. package/build/task/index.js.map +1 -1
  308. package/build/task/inquiry/types.d.ts +38 -0
  309. package/build/task/inquiry/types.d.ts.map +1 -0
  310. package/build/task/inquiry/types.js +2 -0
  311. package/build/task/inquiry/types.js.map +1 -0
  312. package/build/task/inquiry.d.ts +5 -0
  313. package/build/task/inquiry.d.ts.map +1 -0
  314. package/build/task/inquiry.js +188 -0
  315. package/build/task/inquiry.js.map +1 -0
  316. package/build/task/types.d.ts +48 -0
  317. package/build/task/types.d.ts.map +1 -0
  318. package/build/task/types.js +2 -0
  319. package/build/task/types.js.map +1 -0
  320. package/build/tools/account/types.d.ts +24 -0
  321. package/build/tools/account/types.d.ts.map +1 -0
  322. package/build/tools/account/types.js +2 -0
  323. package/build/tools/account/types.js.map +1 -0
  324. package/build/tools/account.d.ts +4 -0
  325. package/build/tools/account.d.ts.map +1 -0
  326. package/build/tools/account.js +72 -0
  327. package/build/tools/account.js.map +1 -0
  328. package/build/tools/blueprints/types.d.ts +5 -0
  329. package/build/tools/blueprints/types.d.ts.map +1 -0
  330. package/build/tools/blueprints/types.js +2 -0
  331. package/build/tools/blueprints/types.js.map +1 -0
  332. package/build/tools/blueprints.d.ts +4 -0
  333. package/build/tools/blueprints.d.ts.map +1 -0
  334. package/build/tools/blueprints.js +23 -0
  335. package/build/tools/blueprints.js.map +1 -0
  336. package/build/tools/catalogue/types.d.ts +8 -0
  337. package/build/tools/catalogue/types.d.ts.map +1 -0
  338. package/build/tools/catalogue/types.js +2 -0
  339. package/build/tools/catalogue/types.js.map +1 -0
  340. package/build/tools/catalogue.d.ts +8 -6
  341. package/build/tools/catalogue.d.ts.map +1 -1
  342. package/build/tools/catalogue.js +2565 -213
  343. package/build/tools/catalogue.js.map +1 -1
  344. package/build/tools/config/types.d.ts +19 -0
  345. package/build/tools/config/types.d.ts.map +1 -0
  346. package/build/tools/config/types.js +2 -0
  347. package/build/tools/config/types.js.map +1 -0
  348. package/build/tools/config.d.ts +4 -0
  349. package/build/tools/config.d.ts.map +1 -0
  350. package/build/tools/config.js +42 -0
  351. package/build/tools/config.js.map +1 -0
  352. package/build/tools/consts.d.ts +61 -0
  353. package/build/tools/consts.d.ts.map +1 -0
  354. package/build/tools/consts.js +515 -0
  355. package/build/tools/consts.js.map +1 -0
  356. package/build/tools/consts.local.d.ts +131 -0
  357. package/build/tools/consts.local.d.ts.map +1 -0
  358. package/build/tools/consts.local.js +236 -0
  359. package/build/tools/consts.local.js.map +1 -0
  360. package/build/tools/control/types.d.ts +17 -0
  361. package/build/tools/control/types.d.ts.map +1 -0
  362. package/build/tools/control/types.js +2 -0
  363. package/build/tools/control/types.js.map +1 -0
  364. package/build/tools/control.d.ts +4 -0
  365. package/build/tools/control.d.ts.map +1 -0
  366. package/build/tools/control.js +44 -0
  367. package/build/tools/control.js.map +1 -0
  368. package/build/tools/feed/types.d.ts +21 -0
  369. package/build/tools/feed/types.d.ts.map +1 -0
  370. package/build/tools/feed/types.js +2 -0
  371. package/build/tools/feed/types.js.map +1 -0
  372. package/build/tools/feed.d.ts +4 -0
  373. package/build/tools/feed.d.ts.map +1 -0
  374. package/build/tools/feed.js +75 -0
  375. package/build/tools/feed.js.map +1 -0
  376. package/build/tools/git/types.d.ts +25 -0
  377. package/build/tools/git/types.d.ts.map +1 -0
  378. package/build/tools/git/types.js +2 -0
  379. package/build/tools/git/types.js.map +1 -0
  380. package/build/tools/git.d.ts +4 -0
  381. package/build/tools/git.d.ts.map +1 -0
  382. package/build/tools/git.js +83 -0
  383. package/build/tools/git.js.map +1 -0
  384. package/build/tools/handover/types.d.ts +49 -0
  385. package/build/tools/handover/types.d.ts.map +1 -0
  386. package/build/tools/handover/types.js +2 -0
  387. package/build/tools/handover/types.js.map +1 -0
  388. package/build/tools/handover.d.ts +8 -0
  389. package/build/tools/handover.d.ts.map +1 -0
  390. package/build/tools/handover.js +138 -0
  391. package/build/tools/handover.js.map +1 -0
  392. package/build/tools/host/types.d.ts +34 -0
  393. package/build/tools/host/types.d.ts.map +1 -0
  394. package/build/tools/host/types.js +2 -0
  395. package/build/tools/host/types.js.map +1 -0
  396. package/build/tools/host.d.ts +4 -0
  397. package/build/tools/host.d.ts.map +1 -0
  398. package/build/tools/host.js +13 -0
  399. package/build/tools/host.js.map +1 -0
  400. package/build/tools/iam/types.d.ts +44 -0
  401. package/build/tools/iam/types.d.ts.map +1 -0
  402. package/build/tools/iam/types.js +2 -0
  403. package/build/tools/iam/types.js.map +1 -0
  404. package/build/tools/iam.d.ts +4 -0
  405. package/build/tools/iam.d.ts.map +1 -0
  406. package/build/tools/iam.js +229 -0
  407. package/build/tools/iam.js.map +1 -0
  408. package/build/tools/index.d.ts +27 -1
  409. package/build/tools/index.d.ts.map +1 -1
  410. package/build/tools/index.js +14 -1
  411. package/build/tools/index.js.map +1 -1
  412. package/build/tools/inflight/types.d.ts +47 -0
  413. package/build/tools/inflight/types.d.ts.map +1 -0
  414. package/build/tools/inflight/types.js +2 -0
  415. package/build/tools/inflight/types.js.map +1 -0
  416. package/build/tools/inflight.d.ts +3 -0
  417. package/build/tools/inflight.d.ts.map +1 -0
  418. package/build/tools/inflight.js +88 -0
  419. package/build/tools/inflight.js.map +1 -0
  420. package/build/tools/kits/types.d.ts +12 -0
  421. package/build/tools/kits/types.d.ts.map +1 -0
  422. package/build/tools/kits/types.js +2 -0
  423. package/build/tools/kits/types.js.map +1 -0
  424. package/build/tools/kits.d.ts +4 -0
  425. package/build/tools/kits.d.ts.map +1 -0
  426. package/build/tools/kits.js +33 -0
  427. package/build/tools/kits.js.map +1 -0
  428. package/build/tools/mcp.d.ts +13 -19
  429. package/build/tools/mcp.d.ts.map +1 -1
  430. package/build/tools/mcp.js +117 -38
  431. package/build/tools/mcp.js.map +1 -1
  432. package/build/tools/platform.d.ts +14 -0
  433. package/build/tools/platform.d.ts.map +1 -0
  434. package/build/tools/platform.js +90 -0
  435. package/build/tools/platform.js.map +1 -0
  436. package/build/tools/production/types.d.ts +22 -0
  437. package/build/tools/production/types.d.ts.map +1 -0
  438. package/build/tools/production/types.js +2 -0
  439. package/build/tools/production/types.js.map +1 -0
  440. package/build/tools/production.d.ts +4 -0
  441. package/build/tools/production.d.ts.map +1 -0
  442. package/build/tools/production.js +80 -0
  443. package/build/tools/production.js.map +1 -0
  444. package/build/tools/refusal/types.d.ts +95 -0
  445. package/build/tools/refusal/types.d.ts.map +1 -0
  446. package/build/tools/refusal/types.js +2 -0
  447. package/build/tools/refusal/types.js.map +1 -0
  448. package/build/tools/refusal.d.ts +4 -0
  449. package/build/tools/refusal.d.ts.map +1 -0
  450. package/build/tools/refusal.js +663 -0
  451. package/build/tools/refusal.js.map +1 -0
  452. package/build/tools/settings/types.d.ts +42 -0
  453. package/build/tools/settings/types.d.ts.map +1 -0
  454. package/build/tools/settings/types.js +2 -0
  455. package/build/tools/settings/types.js.map +1 -0
  456. package/build/tools/settings.d.ts +4 -0
  457. package/build/tools/settings.d.ts.map +1 -0
  458. package/build/tools/settings.js +71 -0
  459. package/build/tools/settings.js.map +1 -0
  460. package/build/tools/status/types.d.ts +25 -0
  461. package/build/tools/status/types.d.ts.map +1 -0
  462. package/build/tools/status/types.js +2 -0
  463. package/build/tools/status/types.js.map +1 -0
  464. package/build/tools/status.d.ts +4 -0
  465. package/build/tools/status.d.ts.map +1 -0
  466. package/build/tools/status.js +183 -0
  467. package/build/tools/status.js.map +1 -0
  468. package/build/tools/stories/types.d.ts +48 -0
  469. package/build/tools/stories/types.d.ts.map +1 -0
  470. package/build/tools/stories/types.js +2 -0
  471. package/build/tools/stories/types.js.map +1 -0
  472. package/build/tools/stories.d.ts +8 -0
  473. package/build/tools/stories.d.ts.map +1 -0
  474. package/build/tools/stories.js +79 -0
  475. package/build/tools/stories.js.map +1 -0
  476. package/build/tools/types.d.ts +177 -26
  477. package/build/tools/types.d.ts.map +1 -1
  478. package/build/tools/types.js +1 -32
  479. package/build/tools/types.js.map +1 -1
  480. package/build/types.d.ts +391 -26
  481. package/build/types.d.ts.map +1 -1
  482. package/build/utils.d.ts +8 -0
  483. package/build/utils.d.ts.map +1 -0
  484. package/build/utils.js +12 -0
  485. package/build/utils.js.map +1 -0
  486. package/package.json +30 -34
  487. package/build/harness/index.d.ts +0 -28
  488. package/build/harness/index.d.ts.map +0 -1
  489. package/build/harness/index.js +0 -83
  490. package/build/harness/index.js.map +0 -1
  491. package/build/harness/templates.d.ts +0 -30
  492. package/build/harness/templates.d.ts.map +0 -1
  493. package/build/harness/templates.js +0 -154
  494. package/build/harness/templates.js.map +0 -1
  495. package/build/tools/jobs.d.ts +0 -12
  496. package/build/tools/jobs.d.ts.map +0 -1
  497. package/build/tools/jobs.js +0 -47
  498. package/build/tools/jobs.js.map +0 -1
package/build/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type { ConnectCapabilities, ConnectCapabilitiesView, ConnectHarness, ConnectJob, ConnectLlm, ConnectMarker, ConnectOp, ConnectOpResult, ConnectOpSubmission, ConnectPipelineState, ConnectProjectStatus, ConnectSessionView, ConnectStoryDeletion, ConnectStoryItem, ConnectStoryList, ConnectStoryMutation, ConnectTarget, ModelTask, ModelTaskResult, SlotCommandPayload } from '@owlmeans/viable-common';
1
+ import type { PlanningFacade } from '@owlmeans/planning';
2
+ import type { BlueprintCatalogue, ConnectAccessTokenList, ConnectAccessTokenRevoked, ConnectIntentPickup, ConnectPrivacyChoices, ConnectProfileSettingsView, ConnectProjectSettings, ConnectAgentLock, ConnectBrandingBackfill, ConnectCapabilities, ConnectConfigSaveBody, ConnectConfigScope, ConnectOrganizationBranding, ConnectOrganizationBrandingSave, ConnectProjectConfig, ConnectConvertCreateBody, ConnectConvertProceedBody, ConnectConvertStartBody, ConnectFileContent, ConnectFileMetaQuery, ConnectFileWritten, ConnectSlotView, ConnectGitCommit, ConnectGitCommitResult, ConnectGitRevertResult, ConnectGitState, ConnectGitStatus, ConnectGitSyncResult, ConnectGithubAuthorize, ConnectGithubBranchList, ConnectGithubBranchQuery, ConnectGithubConnection, ConnectGithubDisconnected, ConnectGithubLinkBody, ConnectGithubLinked, ConnectGithubPublishBody, ConnectGithubRepoList, ConnectGithubRepoQuery, ConnectProductionAuth, ConnectProductionDomain, ConnectProductionRedirects, ConnectProductionStatus, ConnectHarness, ConnectKitApplyBody, ConnectKitApplyResult, ConnectKitDescribe, ConnectLlm, ConnectMarker, ConnectOp, ConnectOpResult, ConnectOpSubmission, ConnectPipelineState, ConnectProjectBranding, ConnectProjectBrandingSave, ConnectProjectStatus, ConnectProjectSummary, ConnectSessionView, ConnectStoryStatus, ConnectTarget, ConversionStatusView, ConvertCheck, InquiryAnswerPayload, InquiryPayload, ModelTask, ModelTaskResult, SlotCommandPayload, IamAssignGrant, IamDefinitionUpdate, IamGrant, IamGrantsQuery, IamGrantsResponse, IamGroup, IamGroupCreate, IamGroupEdit, IamGroupsResponse, IamMember, IamMembersResponse, IamOrganization, IamOrganizationEdit, IamOrganizationsResponse, IamPermissionDefinition, IamPermissionsResponse, IamProjectMemberInvite, IamProjectMemberUpdate, IamProjectUserInvite, IamProjectUserUpdate, IamRevokeGrant, IamUser, IamUsersResponse, ConnectActivityQuery, ConnectFeedPage, ConnectFeedQuery, ConnectFileChanges, AgentSteerArgs, AgentSteerResult, AgentStopArgs, StoryBatchStartArgs, StoryBatchView } from '@owlmeans/viable-common';
2
3
  export interface SdkOptions {
3
4
  apiUrl: string;
4
5
  /** The access token. The connector authenticates with nothing else. */
@@ -21,15 +22,17 @@ export interface SdkOptions {
21
22
  * written against this, so a tool cannot accidentally work in only one of the two.
22
23
  */
23
24
  export interface ConnectorApi {
24
- capabilities: () => Promise<ConnectCapabilitiesView>;
25
25
  openSession: (args: OpenSessionArgs) => Promise<ConnectSessionView>;
26
26
  closeSession: (sessionId: string) => Promise<void>;
27
- heartbeat: (sessionId: string) => Promise<ConnectSessionView>;
28
27
  pullOps: (sessionId: string, waitSec: number) => Promise<ConnectOp[]>;
29
28
  submitOp: (sessionId: string, result: ConnectOpResult) => Promise<ConnectOpSubmission>;
30
29
  project: {
31
- create: (prompt: string, target?: ConnectTarget) => Promise<ConnectJob>;
32
- confirm: (projectId: string, edits: ProjectEdits) => Promise<ConnectJob>;
30
+ /**
31
+ * `sessionId`: the caller's UNATTACHED delegated session — its parent performs the checks the
32
+ * platform runs before the project card exists. Absent, the platform performs them.
33
+ */
34
+ create: (prompt: string, target?: ConnectTarget, sessionId?: string) => Promise<ConnectProjectStatus>;
35
+ confirm: (projectId: string, edits: ProjectEdits) => Promise<ConnectProjectStatus>;
33
36
  list: () => Promise<Array<{
34
37
  id: string;
35
38
  name: string;
@@ -40,24 +43,366 @@ export interface ConnectorApi {
40
43
  projectId?: string;
41
44
  slug?: string;
42
45
  }) => Promise<ConnectProjectStatus>;
43
- reinit: (projectId: string) => Promise<ConnectJob>;
44
- modify: (projectId: string, prompt: string) => Promise<ConnectJob>;
45
- job: (projectId: string, jobId: string, waitSec?: number) => Promise<ConnectJob>;
46
+ reinit: (projectId: string) => Promise<ConnectProjectStatus>;
47
+ modify: (projectId: string, prompt: string) => Promise<ConnectProjectStatus>;
48
+ /**
49
+ * Rename the project: its record, specification, vision and what its code calls it. The web
50
+ * address stays. A new name starts an agent run, paid like an open-ended change.
51
+ */
52
+ rename: (projectId: string, name: string, description?: string) => Promise<ConnectProjectStatus>;
53
+ /**
54
+ * The planning kits the project can take: ready sets of card types and status flows, each
55
+ * for one kind of work-management product.
56
+ */
57
+ kitDescribe: (projectId: string) => Promise<ConnectKitDescribe>;
58
+ /**
59
+ * Write one kit's card types and flows into the project's common package (`types` keeps only
60
+ * those type keys). The platform rebuilds the preview itself; the answer says what was written.
61
+ */
62
+ kitApply: (projectId: string, body: ConnectKitApplyBody) => Promise<ConnectKitApplyResult>;
63
+ /**
64
+ * Delete the project and everything it owns — its preview and production workloads, its
65
+ * stories and documents, its configuration and its connector sessions. Cannot be undone; the
66
+ * answer names what was deleted.
67
+ */
68
+ destroy: (projectId: string) => Promise<ConnectProjectSummary>;
69
+ /**
70
+ * Release the project's agent lock by force — the recovery for a lock a crashed run left
71
+ * behind. A run still working is not stopped by it; the answer is the lock as it now stands.
72
+ */
73
+ unlock: (projectId: string) => Promise<ConnectAgentLock>;
74
+ /**
75
+ * Stop what the agent runs now — the web's Stop. A story run stops at its next step boundary and
76
+ * its changes since that run started are rolled back (the story returns to planned); an
77
+ * open-ended change stops once the model's current answer arrives and ends with a short summary,
78
+ * its edits kept; the `batch` scope cancels the batch first. Answers the lock, `stopping` set.
79
+ * Refused `AgentNotRunning` when nothing it reaches runs.
80
+ */
81
+ stop: (projectId: string, args: AgentStopArgs) => Promise<ConnectAgentLock>;
82
+ /**
83
+ * Send the open-ended change that runs now a message, read before the agent's next model call.
84
+ * Refused `AgentNotRunning` when no such run is open to messages.
85
+ */
86
+ steer: (projectId: string, args: AgentSteerArgs) => Promise<AgentSteerResult>;
87
+ /**
88
+ * A story batch — the web's Run all: several planned stories implemented one after another, in
89
+ * the order the platform chooses for building them.
90
+ */
91
+ batch: {
92
+ /**
93
+ * Start one over the stories named (card ids), or every planned story when `stories` is left
94
+ * out. Refused `StoryBatchActive` while another runs, `StoryBatchEmpty` when nothing planned is
95
+ * selected; each story's start is admitted like a person's Start.
96
+ */
97
+ start: (projectId: string, args: StoryBatchStartArgs) => Promise<StoryBatchView>;
98
+ /** The project's latest batch, or `null` when none ever ran. */
99
+ get: (projectId: string) => Promise<StoryBatchView | null>;
100
+ /** No further story starts; the story in progress is stopped through {@link stop}. */
101
+ cancel: (projectId: string) => Promise<StoryBatchView>;
102
+ };
103
+ /**
104
+ * What the project's agent did after a cursor — run starts and stops, pipeline steps, card,
105
+ * workload and conversion changes, git proposals, tool outcomes, and with `detail: thinking` the
106
+ * model's own words. Held up to `wait` seconds (at most 20) when nothing came yet; `gap` says
107
+ * entries after the cursor were dropped. The browser's project socket, polled.
108
+ */
109
+ activity: (projectId: string, query?: ConnectActivityQuery) => Promise<ConnectFeedPage>;
110
+ /**
111
+ * The project's inference override (`null` inherits the person's preference), what it resolves
112
+ * to and whether the plan allows the delegated mode.
113
+ */
114
+ llm: (projectId: string) => Promise<ConnectProjectSettings>;
115
+ /**
116
+ * Pin the project's inference mode, or `null` to inherit the person's preference again — a
117
+ * capability of the plan: refused `CapabilityRequired` when the plan has no delegated mode
118
+ * (clearing an override included, exactly as in the browser). It is the DEFAULT the
119
+ * URL-configured host and the browser use; a stdio connector already running keeps its `--llm`.
120
+ */
121
+ setLlm: (projectId: string, llmMode: ConnectLlm | null) => Promise<ConnectProjectSettings>;
122
+ };
123
+ /**
124
+ * The project settings a person edits on the project's control panel: the copyright line, the
125
+ * organization name, the Terms and Privacy links and the Google tag — and, read-only, where the
126
+ * platform credit stands (`credit`).
127
+ *
128
+ * Read and written as ONE record, because the platform validates them as one — a save merges the
129
+ * patch over what is stored, checks and moderates the merged record exactly as the web save does,
130
+ * and answers with it. `scope` names the production workload's own set; absent, the preview's.
131
+ */
132
+ projectBranding: (projectId: string, scope?: ConnectConfigScope) => Promise<ConnectProjectBranding>;
133
+ /**
134
+ * Change some of the project settings; the fields left out keep their stored values.
135
+ *
136
+ * The platform applies a change of the preview's set by a configuration push (which rebuilds it);
137
+ * production takes it at the next Publish. For a local target that push is a `Configure`
138
+ * operation, so the caller attaches its connector first.
139
+ */
140
+ saveProjectBranding: (projectId: string, patch: ConnectProjectBrandingSave, scope?: ConnectConfigScope) => Promise<ConnectProjectBranding>;
141
+ /**
142
+ * Hide (`true`) or show the platform credit — white label, a capability of the plan: refused
143
+ * `CapabilityRequired` when the plan does not include it. Answers the settings with the credit.
144
+ */
145
+ setPlatformCredit: (projectId: string, hidden: boolean, scope?: ConnectConfigScope) => Promise<ConnectProjectBranding>;
146
+ /** Replace the project's organization name and copyright with the organization's defaults. */
147
+ copyOrganizationBranding: (projectId: string, scope?: ConnectConfigScope) => Promise<ConnectProjectBranding>;
148
+ /**
149
+ * The project's configuration variables — what its generated application reads from its
150
+ * environment. A backend variable's value is a secret and never comes back: only whether it is set.
151
+ */
152
+ config: {
153
+ get: (projectId: string, scope?: ConnectConfigScope) => Promise<ConnectProjectConfig>;
154
+ /** Set the variables named (a patch); a save of the preview's set reconfigures and rebuilds it. */
155
+ save: (projectId: string, body: ConnectConfigSaveBody, scope?: ConnectConfigScope) => Promise<ConnectProjectConfig>;
156
+ /** Let the platform's agent read the sources again for the variables they declare. */
157
+ recollect: (projectId: string) => Promise<ConnectProjectConfig>;
158
+ };
159
+ /** The organization's own records. */
160
+ account: {
161
+ /** Installed blueprint and case catalogue; available before any project exists. */
162
+ blueprints: () => Promise<BlueprintCatalogue>;
163
+ /** The organization's branding defaults — what every new project starts with. */
164
+ branding: {
165
+ get: () => Promise<ConnectOrganizationBranding>;
166
+ save: (patch: ConnectOrganizationBrandingSave) => Promise<ConnectOrganizationBranding>;
167
+ /** Fill the projects' blank branding rows from the defaults; answers how many changed. */
168
+ backfill: () => Promise<ConnectBrandingBackfill>;
169
+ };
170
+ /**
171
+ * The person's own inference preference — the default of every project without an override.
172
+ * `set` is a capability of the plan (refused `CapabilityRequired` without the delegated mode).
173
+ */
174
+ llm: {
175
+ get: () => Promise<ConnectProfileSettingsView>;
176
+ set: (llmMode: ConnectLlm) => Promise<ConnectProfileSettingsView>;
177
+ };
178
+ /** The person's own access tokens: listed and revoked — never created through the connector. */
179
+ tokens: {
180
+ list: () => Promise<ConnectAccessTokenList>;
181
+ /** Revoke one of the person's own tokens (this connector's own included); idempotent. */
182
+ revoke: (tokenId: string) => Promise<ConnectAccessTokenRevoked>;
183
+ };
184
+ /** The person's own marketing consents: read, and withdrawn — never granted. */
185
+ privacy: {
186
+ status: () => Promise<ConnectPrivacyChoices>;
187
+ /** Write `granted: false` for each key; an unknown key refuses the whole call. */
188
+ withdraw: (keys: string[]) => Promise<ConnectPrivacyChoices>;
189
+ };
190
+ /** A prompt stashed on the public site, collected ONCE by its reference. */
191
+ intent: {
192
+ pickup: (ref: string) => Promise<ConnectIntentPickup>;
193
+ };
194
+ /** The organization's notices after a cursor, held up to `wait` seconds — the browser's toasts. */
195
+ notifications: (query?: ConnectFeedQuery) => Promise<ConnectFeedPage>;
46
196
  };
47
197
  story: {
48
- list: (projectId: string, query?: StoryQuery) => Promise<ConnectStoryList>;
49
- get: (projectId: string, storyId: string) => Promise<ConnectStoryItem>;
50
- create: (projectId: string, story: string) => Promise<ConnectStoryMutation>;
51
- update: (projectId: string, storyId: string, story: string) => Promise<ConnectStoryMutation>;
52
- remove: (projectId: string, storyId: string) => Promise<ConnectStoryDeletion>;
53
- develop: (projectId: string, storyId: string) => Promise<ConnectJob>;
198
+ status: (projectId: string, storyId: string) => Promise<ConnectStoryStatus>;
199
+ };
200
+ /**
201
+ * The platform's planning surface: projects, user stories and the documents behind them as
202
+ * cards, and every change to one as a transition.
203
+ *
204
+ * The story tools read and write through it. The scope it answers for is the CREDENTIAL's —
205
+ * the platform takes the organization, the profile and the channel from the token (over HTTP)
206
+ * or from the caller it authenticated (in process), never from anything a tool sends.
207
+ */
208
+ planning: PlanningFacade;
209
+ /**
210
+ * A cloud target's generated tree — the web editor's reads and writes. Paths are relative to the
211
+ * project root, as `list` prints them.
212
+ */
213
+ files: {
214
+ list: (projectId: string) => Promise<string[]>;
215
+ /** One file's content. */
216
+ get: (projectId: string, path: string) => Promise<ConnectFileContent>;
217
+ /**
218
+ * Replace one file's whole content (a new path creates it). The content is checked like the web
219
+ * editor's save and the preview is rebuilt; a build that failed is named on `buildWarning`, and
220
+ * the write stands either way. A file that decides how the project builds and starts is refused.
221
+ */
222
+ save: (projectId: string, path: string, content: string) => Promise<ConnectFileWritten>;
223
+ /** Delete one file, then rebuild the preview — `buildWarning` as for {@link save}. */
224
+ remove: (projectId: string, path: string) => Promise<ConnectFileWritten>;
225
+ /** The project's metadata documents of one kind: stories, specifications, or all of them. */
226
+ meta: (projectId: string, query: ConnectFileMetaQuery) => Promise<string[]>;
227
+ /**
228
+ * The preview tree's file changes after a cursor, held up to `wait` seconds; the read starts the
229
+ * preview's watcher when it is not running yet (`watching` says whether it runs).
230
+ */
231
+ changes: (projectId: string, query?: ConnectFeedQuery) => Promise<ConnectFileChanges>;
232
+ };
233
+ /**
234
+ * The project's PREVIEW workload — the web's sandbox controls; each answers the workload as it
235
+ * then stands. A cloud target only: a local project's process is the user's own.
236
+ */
237
+ sandbox: {
238
+ /** Start the preview (provisioning it first when it has none). */
239
+ run: (projectId: string) => Promise<ConnectSlotView>;
240
+ restart: (projectId: string) => Promise<ConnectSlotView>;
241
+ stop: (projectId: string) => Promise<ConnectSlotView>;
242
+ /**
243
+ * Reinstall the dependencies and rebuild — the repair for a preview that will not build. It runs
244
+ * on after the answer, holding the project's agent lock until it is done.
245
+ */
246
+ rebuild: (projectId: string) => Promise<ConnectSlotView>;
247
+ };
248
+ /** The organization's workloads, every project and kind (preview, production, local). */
249
+ slot: {
250
+ list: () => Promise<ConnectSlotView[]>;
251
+ };
252
+ /**
253
+ * A cloud target's git repository — the web Git dialog's own calls. Every write waits while an
254
+ * agent run holds the project (`git-busy`); a revert is a NEW commit, history is never rewritten.
255
+ */
256
+ git: {
257
+ /**
258
+ * The project's GitHub connection and its working tree — `git` is `null` while the preview is not
259
+ * ready (reading git there would start a stopped preview).
260
+ */
261
+ status: (projectId: string) => Promise<ConnectGitState>;
262
+ /** The latest commits, newest first. */
263
+ log: (projectId: string) => Promise<ConnectGitCommit[]>;
264
+ /** Commit every change of the working tree; `commit` is `null` when there was nothing to commit. */
265
+ commit: (projectId: string, message: string) => Promise<ConnectGitCommitResult>;
266
+ /** Throw away every uncommitted change; answers the clean tree. */
267
+ discard: (projectId: string) => Promise<ConnectGitStatus>;
268
+ /** Go back to one earlier commit's tree as a new commit, then rebuild the preview. */
269
+ revert: (projectId: string, hash: string) => Promise<ConnectGitRevertResult>;
270
+ };
271
+ /**
272
+ * The project's GitHub connection. `authorize` answers the address the PERSON opens: GitHub returns
273
+ * to the platform's web application, which completes the connection — nothing here completes it.
274
+ * The GitHub token is never answered.
275
+ */
276
+ github: {
277
+ authorize: (projectId: string) => Promise<ConnectGithubAuthorize>;
278
+ /** Publish to a new repository or an existing one; push and pull work from then on. */
279
+ publish: (projectId: string, body: ConnectGithubPublishBody) => Promise<ConnectGithubConnection>;
280
+ push: (projectId: string) => Promise<ConnectGitSyncResult>;
281
+ pull: (projectId: string) => Promise<ConnectGitSyncResult>;
282
+ /** Forget the connection — the repository on GitHub is left as it is. */
283
+ disconnect: (projectId: string) => Promise<ConnectGithubDisconnected>;
284
+ /** One page of the person's repositories. */
285
+ repos: (projectId: string, query?: ConnectGithubRepoQuery) => Promise<ConnectGithubRepoList>;
286
+ /** One page of one repository's branches. */
287
+ branches: (projectId: string, query: ConnectGithubBranchQuery) => Promise<ConnectGithubBranchList>;
288
+ /** Record which repository an imported project came FROM — nothing is pushed or published. */
289
+ link: (projectId: string, body: ConnectGithubLinkBody) => Promise<ConnectGithubLinked>;
290
+ };
291
+ /**
292
+ * A cloud target's PRODUCTION workload — the web Publish dialog's own calls; never the preview.
293
+ * A publish holds a published-sites unit of the plan (`LimitExhausted` when it has no room), a
294
+ * custom domain and the standalone sign-in are paid capabilities (`CapabilityRequired`). The
295
+ * sign-in's client secret is never answered: `auth` says whether one is set.
296
+ */
297
+ production: {
298
+ /** The production workload (`null` before the first publish) and its domain. */
299
+ status: (projectId: string) => Promise<ConnectProductionStatus>;
300
+ /** Build and deploy the current sources as the published site; it goes live after the answer. */
301
+ publish: (projectId: string) => Promise<ConnectProductionStatus>;
302
+ /** Restart the site — a stopped one is redeployed, and takes a published-sites unit again. */
303
+ restart: (projectId: string) => Promise<ConnectProductionStatus>;
304
+ /** Stop the site and give its published-sites unit back; its data is kept. */
305
+ stop: (projectId: string) => Promise<ConnectProductionStatus>;
306
+ domain: {
307
+ /** Attach a custom domain; answers the DNS records the owner creates. */
308
+ attach: (projectId: string, domain: string) => Promise<ConnectProductionDomain | null>;
309
+ /** Ask the provider again whether the records are in place. */
310
+ verify: (projectId: string) => Promise<ConnectProductionDomain | null>;
311
+ /** Detach the custom domain; the generated address keeps serving. */
312
+ detach: (projectId: string) => Promise<ConnectProductionDomain | null>;
313
+ };
314
+ /** The standalone sign-in configuration — never its secret. */
315
+ auth: (projectId: string) => Promise<ConnectProductionAuth>;
316
+ /** Replace the standalone redirect addresses; applied on the next publish. */
317
+ setRedirects: (projectId: string, redirects: string[]) => Promise<ConnectProductionRedirects>;
318
+ };
319
+ /**
320
+ * The generated app's sign-in — the owner console's own calls, per project and per app: `scope`
321
+ * picks the preview's client (absent) or production's. Platform records, so a local target's app is
322
+ * managed here too. An IAM refusal the owner can act on (the staff group's members, bundles or
323
+ * existence, a managed definition, the last owner) is `IamRefused` (`iam-refused:<marker>`); a
324
+ * backend that keeps a listing in a console of its own answers it empty with `external: true`.
325
+ * Organizations travel by slug, groups by key.
326
+ */
327
+ iam: {
328
+ /** Every end user of every app the organization owns — read-only; a person is managed per project. */
329
+ organizationUsers: () => Promise<IamUsersResponse>;
330
+ /** The app's permission definitions and its tenancy flags. */
331
+ permissions: (projectId: string, scope?: ConnectConfigScope) => Promise<IamPermissionsResponse>;
332
+ /** A definition's default class or organization binding; an omitted setting is kept. */
333
+ setDefault: (projectId: string, body: IamDefinitionUpdate) => Promise<IamPermissionDefinition>;
334
+ grants: {
335
+ /**
336
+ * Every grant, one person's (`profileId`) or one group's (`group` with its `entitySlug`) — what
337
+ * is held, plus the inherited grants a subject's own restriction withholds (`restricted: true`).
338
+ */
339
+ list: (projectId: string, query?: IamGrantsQuery) => Promise<IamGrantsResponse>;
340
+ /** Grant to exactly one subject — a person or a group. */
341
+ assign: (projectId: string, body: IamAssignGrant) => Promise<IamGrant>;
342
+ /** A whole-permission revoke restricts the subject; `mode: inherit` takes its own value back. */
343
+ revoke: (projectId: string, body: IamRevokeGrant) => Promise<void>;
344
+ };
345
+ users: {
346
+ list: (projectId: string, scope?: ConnectConfigScope) => Promise<IamUsersResponse>;
347
+ /** Find-or-create, by e-mail. */
348
+ invite: (projectId: string, body: IamProjectUserInvite) => Promise<IamUser>;
349
+ update: (projectId: string, profileId: string, body: IamProjectUserUpdate) => Promise<IamUser>;
350
+ /** Remove from this app only — the account and its other apps stay. */
351
+ remove: (projectId: string, profileId: string, scope?: ConnectConfigScope) => Promise<void>;
352
+ };
353
+ organizations: {
354
+ list: (projectId: string, scope?: ConnectConfigScope) => Promise<IamOrganizationsResponse>;
355
+ /** Retitle; the slug stays. */
356
+ update: (projectId: string, entitySlug: string, body: IamOrganizationEdit) => Promise<IamOrganization>;
357
+ members: (projectId: string, entitySlug: string, scope?: ConnectConfigScope) => Promise<IamMembersResponse>;
358
+ addMember: (projectId: string, entitySlug: string, body: IamProjectMemberInvite) => Promise<IamMember>;
359
+ updateMember: (projectId: string, entitySlug: string, profileId: string, body: IamProjectMemberUpdate) => Promise<IamMember>;
360
+ removeMember: (projectId: string, entitySlug: string, profileId: string, scope?: ConnectConfigScope) => Promise<void>;
361
+ };
362
+ groups: {
363
+ list: (projectId: string, entitySlug: string, scope?: ConnectConfigScope) => Promise<IamGroupsResponse>;
364
+ /** Find-or-create by key. */
365
+ ensure: (projectId: string, entitySlug: string, body: IamGroupCreate) => Promise<IamGroup>;
366
+ /** Title and the WHOLE bundle list (it replaces the group's); an omitted field is kept. */
367
+ update: (projectId: string, entitySlug: string, group: string, body: IamGroupEdit) => Promise<IamGroup>;
368
+ remove: (projectId: string, entitySlug: string, group: string, scope?: ConnectConfigScope) => Promise<void>;
369
+ members: (projectId: string, entitySlug: string, group: string, scope?: ConnectConfigScope) => Promise<IamMembersResponse>;
370
+ addMembers: (projectId: string, entitySlug: string, group: string, profileIds: string[], scope?: ConnectConfigScope) => Promise<void>;
371
+ removeMembers: (projectId: string, entitySlug: string, group: string, profileIds: string[], scope?: ConnectConfigScope) => Promise<void>;
372
+ };
54
373
  };
55
374
  pipeline: {
56
375
  state: (projectId: string, runId: string) => Promise<ConnectPipelineState>;
57
376
  resume: (projectId: string, runId: string, args?: {
58
377
  from?: string;
59
378
  force?: boolean;
60
- }) => Promise<ConnectJob>;
379
+ }) => Promise<ConnectPipelineState>;
380
+ };
381
+ /**
382
+ * Bringing an application the platform did not generate onto its rails.
383
+ *
384
+ * State-changing verbs return the conversion's current domain status. Long-running work remains
385
+ * server-side and is observed through `status`; broker records are never part of this API.
386
+ */
387
+ convert: {
388
+ create: (args: ConnectConvertCreateBody) => Promise<ConversionStatusView>;
389
+ check: (projectId: string) => Promise<ConvertCheck>;
390
+ /** `body.confirm`: a person agreed to what the start uses (`ConnectConfirmationRequired` otherwise). */
391
+ start: (projectId: string, body?: ConnectConvertStartBody) => Promise<ConversionStatusView>;
392
+ proceed: (projectId: string, body: ConnectConvertProceedBody) => Promise<ConversionStatusView>;
393
+ status: (projectId: string) => Promise<ConversionStatusView>;
394
+ purge: (projectId: string) => Promise<ConversionStatusView>;
395
+ };
396
+ /**
397
+ * Answering a question by its own id.
398
+ *
399
+ * The fallback path, and never the first one: while a connector holds the question it answers
400
+ * the OPERATION it arrived on, which is what the platform is actually waiting for. This is for a
401
+ * run that parked while nobody was attached — its operation has timed out, and the question is
402
+ * then reachable only through the project it belongs to.
403
+ */
404
+ inquiry: {
405
+ answer: (projectId: string, inquiryId: string, answer: InquiryAnswerPayload) => Promise<unknown>;
61
406
  };
62
407
  }
63
408
  export interface OpenSessionArgs {
@@ -74,15 +419,9 @@ export interface ProjectEdits {
74
419
  description?: string;
75
420
  specification?: string;
76
421
  vision?: string;
422
+ designSystem?: string;
77
423
  target?: ConnectTarget;
78
424
  }
79
- export interface StoryQuery {
80
- page?: number;
81
- size?: number;
82
- status?: string;
83
- area?: string;
84
- q?: string;
85
- }
86
425
  /** What a connector executes locally. Absent for a cloud target — the platform's pod does it. */
87
426
  export interface LocalExecutor {
88
427
  execute: (payload: SlotCommandPayload) => Promise<unknown>;
@@ -98,8 +437,16 @@ export interface LocalExecutor {
98
437
  export interface SessionRuntime {
99
438
  session: ConnectSessionView;
100
439
  stats: SessionStats;
101
- /** The next model task for the parent agent, or null if none arrives within the wait. */
102
- nextTask: (waitMs: number) => Promise<ModelTask | null>;
440
+ /**
441
+ * The next model task for the parent agent, or null if none arrives within the wait or the
442
+ * signal aborts. Among queued tasks, the one that expires first.
443
+ */
444
+ nextTask: (waitMs: number, signal?: AbortSignal) => Promise<ModelTask | null>;
445
+ /**
446
+ * Whether a model task is queued, waiting up to `waitMs` for one; takes nothing. What a tool
447
+ * blocked on a platform call races that call against.
448
+ */
449
+ taskAvailable: (waitMs: number, signal?: AbortSignal) => Promise<boolean>;
103
450
  /** A task already handed out and not yet answered — what an answer is checked against. */
104
451
  taskById: (taskId: string) => ModelTask | null;
105
452
  /** Handed to the parent and still unanswered, oldest first. */
@@ -108,6 +455,22 @@ export interface SessionRuntime {
108
455
  submitTask: (result: ModelTaskResult) => Promise<void>;
109
456
  /** How many tasks are waiting right now. */
110
457
  pendingTasks: () => number;
458
+ /**
459
+ * The next question for the person the parent agent is working for, or null within the wait.
460
+ *
461
+ * A separate queue from the tasks and drained by a separate tool, because the two are answered
462
+ * by different parties on entirely different timescales — and a question that reached a
463
+ * subagent would be answered by a model, which is the one outcome asking exists to avoid.
464
+ */
465
+ nextQuestion: (waitMs: number) => Promise<InquiryPayload | null>;
466
+ /** A question already put to the parent and not yet answered — what an answer is checked against. */
467
+ questionById: (inquiryId: string) => InquiryPayload | null;
468
+ /** Put to the parent and still unanswered, oldest first. */
469
+ outstandingQuestions: () => InquiryPayload[];
470
+ /** Hand back what the person decided. */
471
+ answerQuestion: (answer: InquiryAnswerPayload) => Promise<void>;
472
+ /** How many questions are waiting right now. */
473
+ pendingQuestions: () => number;
111
474
  close: () => Promise<void>;
112
475
  }
113
476
  export interface SessionStats {
@@ -115,9 +478,11 @@ export interface SessionStats {
115
478
  opsFailed: number;
116
479
  tasksDelivered: number;
117
480
  tasksSubmitted: number;
481
+ questionsDelivered: number;
482
+ questionsAnswered: number;
118
483
  lastActivityAt: number;
119
- /** How the connector is currently receiving operations. */
120
- transport: 'socket' | 'pull' | 'none';
484
+ /** How the connector is currently receiving operations: by long poll, or not at all once closed. */
485
+ transport: 'pull' | 'none';
121
486
  }
122
487
  export interface SdkMarker extends ConnectMarker {
123
488
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAAE,uBAAuB,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EACnG,SAAS,EAAE,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,oBAAoB,EAC3F,kBAAkB,EAAE,oB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AA;IACzE,0FAA0F;IAC1F,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAA;IAC9C,+DAA+D;IAC/D,gBAAgB,EAAE,MAAM,SAAS,EAAE,CAAA;IACnC,2DAA2D;IAC3D,UAAU,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACtD,4CAA4C;IAC5C,YAAY,EAAE,MAAM,MAAM,CAAA;IAC1B;;;;;;OAMG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAChE,qGAAqG;IACrG,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,cAAc,GAAG,IAAI,CAAA;IAC1D,4DAA4D;IAC5D,oBAAoB,EAAE,MAAM,cAAc,EAAE,CAAA;IAC5C,yCAAyC;IACzC,cAAc,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/D,gDAAgD;IAChD,gBAAgB,EAAE,MAAM,MAAM,CAAA;IAC9B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,oGAAoG;IACpG,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,SAAU,SAAQ,aAAa;CAAG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The `/mcp` URL a person, a doc or a verification tool should use: the value the merged
3
+ * configuration names (environment over `~/.owlmeans`, already resolved by the caller), else the
4
+ * production default. An empty value counts as unset, and a trailing slash is dropped — a
5
+ * canonical resource URI (RFC 8707) has one spelling.
6
+ */
7
+ export declare const resolveMcpUrl: (values: Record<string, string | undefined>) => string;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,WAAY,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,KAAG,MAI1E,CAAA"}
package/build/utils.js ADDED
@@ -0,0 +1,12 @@
1
+ import { DEFAULT_MCP_URL, ENV_MCP_URL } from './consts.js';
2
+ /**
3
+ * The `/mcp` URL a person, a doc or a verification tool should use: the value the merged
4
+ * configuration names (environment over `~/.owlmeans`, already resolved by the caller), else the
5
+ * production default. An empty value counts as unset, and a trailing slash is dropped — a
6
+ * canonical resource URI (RFC 8707) has one spelling.
7
+ */
8
+ export const resolveMcpUrl = (values) => {
9
+ const named = values[ENV_MCP_URL];
10
+ return (named != null && named !== '' ? named : DEFAULT_MCP_URL).replace(/\/+$/, '');
11
+ };
12
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE1D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAA0C,EAAU,EAAE;IAClF,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAA;IAEjC,OAAO,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AACtF,CAAC,CAAA"}