@inf-monkeys-tech/monkeys-cli 0.11.3 → 0.11.5

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 (680) hide show
  1. package/README.md +39 -30
  2. package/README.zh.md +34 -25
  3. package/bin/run.js +5 -5
  4. package/dist/agent-work/adapters.d.ts +1 -1
  5. package/dist/agent-work/adapters.d.ts.map +1 -1
  6. package/dist/agent-work/adapters.js +38 -34
  7. package/dist/agent-work/adapters.js.map +1 -1
  8. package/dist/agent-work/client.d.ts +17 -17
  9. package/dist/agent-work/client.d.ts.map +1 -1
  10. package/dist/agent-work/client.js +42 -42
  11. package/dist/agent-work/client.js.map +1 -1
  12. package/dist/agent-work/context.d.ts +1 -1
  13. package/dist/agent-work/context.d.ts.map +1 -1
  14. package/dist/agent-work/context.js +4 -4
  15. package/dist/agent-work/context.js.map +1 -1
  16. package/dist/agent-work/contracts.d.ts +11 -7
  17. package/dist/agent-work/contracts.d.ts.map +1 -1
  18. package/dist/agent-work/contracts.js +5 -3
  19. package/dist/agent-work/contracts.js.map +1 -1
  20. package/dist/agent-work/definitions.d.ts.map +1 -1
  21. package/dist/agent-work/definitions.js +19 -19
  22. package/dist/agent-work/definitions.js.map +1 -1
  23. package/dist/agent-work/input.js +3 -3
  24. package/dist/agent-work/input.js.map +1 -1
  25. package/dist/agent-work/output.d.ts +2 -2
  26. package/dist/agent-work/polling.d.ts +3 -3
  27. package/dist/agent-work/polling.d.ts.map +1 -1
  28. package/dist/agent-work/polling.js +13 -13
  29. package/dist/agent-work/polling.js.map +1 -1
  30. package/dist/agent-work/runtime.d.ts +1 -1
  31. package/dist/agent-work/runtime.d.ts.map +1 -1
  32. package/dist/agent-work/runtime.js +2 -2
  33. package/dist/agent-work/runtime.js.map +1 -1
  34. package/dist/api/command-runtime.d.ts +1 -1
  35. package/dist/api/command-runtime.d.ts.map +1 -1
  36. package/dist/api/command-runtime.js +2 -2
  37. package/dist/api/command-runtime.js.map +1 -1
  38. package/dist/api/operation-policy.js +1 -1
  39. package/dist/api/operation-policy.js.map +1 -1
  40. package/dist/client/execution.d.ts +16 -3
  41. package/dist/client/execution.d.ts.map +1 -1
  42. package/dist/client/execution.js +25 -3
  43. package/dist/client/execution.js.map +1 -1
  44. package/dist/client/post-review.d.ts +11 -7
  45. package/dist/client/post-review.d.ts.map +1 -1
  46. package/dist/client/post-review.js +11 -6
  47. package/dist/client/post-review.js.map +1 -1
  48. package/dist/client/workflow.d.ts +9 -5
  49. package/dist/client/workflow.d.ts.map +1 -1
  50. package/dist/client/workflow.js +16 -3
  51. package/dist/client/workflow.js.map +1 -1
  52. package/dist/command/metadata.js +1 -1
  53. package/dist/command/metadata.js.map +1 -1
  54. package/dist/command-support/asset-feature-backfill.d.ts +2 -2
  55. package/dist/command-support/asset-feature-backfill.d.ts.map +1 -1
  56. package/dist/command-support/asset-feature-backfill.js +2 -2
  57. package/dist/command-support/asset-feature-backfill.js.map +1 -1
  58. package/dist/commands/agent/work/assign/existing.d.ts +2 -2
  59. package/dist/commands/agent/work/assign/existing.d.ts.map +1 -1
  60. package/dist/commands/agent/work/assign/existing.js +5 -5
  61. package/dist/commands/agent/work/assign/existing.js.map +1 -1
  62. package/dist/commands/agent/work/assign/new.d.ts +2 -2
  63. package/dist/commands/agent/work/assign/new.d.ts.map +1 -1
  64. package/dist/commands/agent/work/assign/new.js +5 -5
  65. package/dist/commands/agent/work/assign/new.js.map +1 -1
  66. package/dist/commands/agent/work/collaborators.d.ts +1 -1
  67. package/dist/commands/agent/work/collaborators.d.ts.map +1 -1
  68. package/dist/commands/agent/work/collaborators.js +3 -3
  69. package/dist/commands/agent/work/collaborators.js.map +1 -1
  70. package/dist/commands/agent/work/conversation/send.d.ts +2 -2
  71. package/dist/commands/agent/work/conversation/send.d.ts.map +1 -1
  72. package/dist/commands/agent/work/conversation/send.js +5 -5
  73. package/dist/commands/agent/work/conversation/send.js.map +1 -1
  74. package/dist/commands/agent/work/create.d.ts +1 -1
  75. package/dist/commands/agent/work/create.d.ts.map +1 -1
  76. package/dist/commands/agent/work/create.js +3 -3
  77. package/dist/commands/agent/work/create.js.map +1 -1
  78. package/dist/commands/agent/work/delete.d.ts +2 -2
  79. package/dist/commands/agent/work/delete.d.ts.map +1 -1
  80. package/dist/commands/agent/work/delete.js +6 -6
  81. package/dist/commands/agent/work/delete.js.map +1 -1
  82. package/dist/commands/agent/work/get.d.ts +2 -2
  83. package/dist/commands/agent/work/get.d.ts.map +1 -1
  84. package/dist/commands/agent/work/get.js +5 -5
  85. package/dist/commands/agent/work/get.js.map +1 -1
  86. package/dist/commands/agent/work/list.d.ts +6 -3
  87. package/dist/commands/agent/work/list.d.ts.map +1 -1
  88. package/dist/commands/agent/work/list.js +29 -12
  89. package/dist/commands/agent/work/list.js.map +1 -1
  90. package/dist/commands/agent/work/pause.d.ts +2 -2
  91. package/dist/commands/agent/work/pause.d.ts.map +1 -1
  92. package/dist/commands/agent/work/pause.js +5 -5
  93. package/dist/commands/agent/work/pause.js.map +1 -1
  94. package/dist/commands/agent/work/resume.d.ts +2 -2
  95. package/dist/commands/agent/work/resume.d.ts.map +1 -1
  96. package/dist/commands/agent/work/resume.js +5 -5
  97. package/dist/commands/agent/work/resume.js.map +1 -1
  98. package/dist/commands/agent/work/retry.d.ts +2 -2
  99. package/dist/commands/agent/work/retry.d.ts.map +1 -1
  100. package/dist/commands/agent/work/retry.js +5 -5
  101. package/dist/commands/agent/work/retry.js.map +1 -1
  102. package/dist/commands/agent/work/review/approve.d.ts +2 -2
  103. package/dist/commands/agent/work/review/approve.d.ts.map +1 -1
  104. package/dist/commands/agent/work/review/approve.js +5 -5
  105. package/dist/commands/agent/work/review/approve.js.map +1 -1
  106. package/dist/commands/agent/work/review/request-changes.d.ts +2 -2
  107. package/dist/commands/agent/work/review/request-changes.d.ts.map +1 -1
  108. package/dist/commands/agent/work/review/request-changes.js +5 -5
  109. package/dist/commands/agent/work/review/request-changes.js.map +1 -1
  110. package/dist/commands/agent/work/runtime/list.d.ts +7 -2
  111. package/dist/commands/agent/work/runtime/list.d.ts.map +1 -1
  112. package/dist/commands/agent/work/runtime/list.js +16 -5
  113. package/dist/commands/agent/work/runtime/list.js.map +1 -1
  114. package/dist/commands/agent/work/spec/approve.d.ts +2 -2
  115. package/dist/commands/agent/work/spec/approve.d.ts.map +1 -1
  116. package/dist/commands/agent/work/spec/approve.js +5 -5
  117. package/dist/commands/agent/work/spec/approve.js.map +1 -1
  118. package/dist/commands/agent/work/spec/request-revision.d.ts +2 -2
  119. package/dist/commands/agent/work/spec/request-revision.d.ts.map +1 -1
  120. package/dist/commands/agent/work/spec/request-revision.js +4 -4
  121. package/dist/commands/agent/work/spec/request-revision.js.map +1 -1
  122. package/dist/commands/agent/work/update.d.ts +2 -2
  123. package/dist/commands/agent/work/update.d.ts.map +1 -1
  124. package/dist/commands/agent/work/update.js +5 -5
  125. package/dist/commands/agent/work/update.js.map +1 -1
  126. package/dist/commands/agent/work/wait.d.ts +2 -2
  127. package/dist/commands/agent/work/wait.d.ts.map +1 -1
  128. package/dist/commands/agent/work/wait.js +5 -5
  129. package/dist/commands/agent/work/wait.js.map +1 -1
  130. package/dist/commands/agent/work/watch.d.ts +2 -2
  131. package/dist/commands/agent/work/watch.d.ts.map +1 -1
  132. package/dist/commands/agent/work/watch.js +5 -5
  133. package/dist/commands/agent/work/watch.js.map +1 -1
  134. package/dist/commands/api/call.d.ts +1 -1
  135. package/dist/commands/api/call.d.ts.map +1 -1
  136. package/dist/commands/api/call.js +2 -2
  137. package/dist/commands/api/call.js.map +1 -1
  138. package/dist/commands/api/describe.d.ts +1 -1
  139. package/dist/commands/api/describe.d.ts.map +1 -1
  140. package/dist/commands/api/describe.js +2 -2
  141. package/dist/commands/api/describe.js.map +1 -1
  142. package/dist/commands/api/list.d.ts +6 -1
  143. package/dist/commands/api/list.d.ts.map +1 -1
  144. package/dist/commands/api/list.js +14 -3
  145. package/dist/commands/api/list.js.map +1 -1
  146. package/dist/commands/auth/api-key/import.d.ts +1 -1
  147. package/dist/commands/auth/api-key/import.d.ts.map +1 -1
  148. package/dist/commands/auth/api-key/import.js +4 -4
  149. package/dist/commands/auth/api-key/import.js.map +1 -1
  150. package/dist/commands/auth/doctor.d.ts +1 -1
  151. package/dist/commands/auth/doctor.d.ts.map +1 -1
  152. package/dist/commands/auth/doctor.js +4 -4
  153. package/dist/commands/auth/doctor.js.map +1 -1
  154. package/dist/commands/auth/login.d.ts +3 -3
  155. package/dist/commands/auth/login.d.ts.map +1 -1
  156. package/dist/commands/auth/login.js +31 -27
  157. package/dist/commands/auth/login.js.map +1 -1
  158. package/dist/commands/auth/logout.d.ts +1 -1
  159. package/dist/commands/auth/logout.d.ts.map +1 -1
  160. package/dist/commands/auth/logout.js +3 -3
  161. package/dist/commands/auth/logout.js.map +1 -1
  162. package/dist/commands/auth/whoami.d.ts +1 -1
  163. package/dist/commands/auth/whoami.d.ts.map +1 -1
  164. package/dist/commands/auth/whoami.js +3 -3
  165. package/dist/commands/auth/whoami.js.map +1 -1
  166. package/dist/commands/config/export.d.ts +1 -1
  167. package/dist/commands/config/export.d.ts.map +1 -1
  168. package/dist/commands/config/export.js +2 -2
  169. package/dist/commands/config/export.js.map +1 -1
  170. package/dist/commands/config/get.d.ts +1 -1
  171. package/dist/commands/config/get.d.ts.map +1 -1
  172. package/dist/commands/config/get.js +2 -2
  173. package/dist/commands/config/get.js.map +1 -1
  174. package/dist/commands/config/history.d.ts +6 -2
  175. package/dist/commands/config/history.d.ts.map +1 -1
  176. package/dist/commands/config/history.js +26 -7
  177. package/dist/commands/config/history.js.map +1 -1
  178. package/dist/commands/config/list.d.ts +6 -2
  179. package/dist/commands/config/list.d.ts.map +1 -1
  180. package/dist/commands/config/list.js +17 -9
  181. package/dist/commands/config/list.js.map +1 -1
  182. package/dist/commands/config/overview.d.ts +1 -1
  183. package/dist/commands/config/overview.d.ts.map +1 -1
  184. package/dist/commands/config/overview.js +2 -2
  185. package/dist/commands/config/overview.js.map +1 -1
  186. package/dist/commands/config/patch.d.ts +1 -1
  187. package/dist/commands/config/patch.d.ts.map +1 -1
  188. package/dist/commands/config/patch.js +2 -2
  189. package/dist/commands/config/patch.js.map +1 -1
  190. package/dist/commands/config/set.d.ts +1 -1
  191. package/dist/commands/config/set.d.ts.map +1 -1
  192. package/dist/commands/config/set.js +2 -2
  193. package/dist/commands/config/set.js.map +1 -1
  194. package/dist/commands/config/validate.d.ts +1 -1
  195. package/dist/commands/config/validate.d.ts.map +1 -1
  196. package/dist/commands/config/validate.js +2 -2
  197. package/dist/commands/config/validate.js.map +1 -1
  198. package/dist/commands/context/show.d.ts +1 -1
  199. package/dist/commands/context/show.d.ts.map +1 -1
  200. package/dist/commands/context/show.js +4 -4
  201. package/dist/commands/context/show.js.map +1 -1
  202. package/dist/commands/data/asset/attachment/download.d.ts +1 -1
  203. package/dist/commands/data/asset/attachment/download.js +2 -2
  204. package/dist/commands/data/asset/attachment/download.js.map +1 -1
  205. package/dist/commands/data/asset/create.d.ts +1 -1
  206. package/dist/commands/data/asset/create.js +2 -2
  207. package/dist/commands/data/asset/create.js.map +1 -1
  208. package/dist/commands/data/asset/delete.d.ts +1 -1
  209. package/dist/commands/data/asset/delete.js +2 -2
  210. package/dist/commands/data/asset/delete.js.map +1 -1
  211. package/dist/commands/data/asset/enrich-jsonl.d.ts +1 -1
  212. package/dist/commands/data/asset/enrich-jsonl.js +1 -1
  213. package/dist/commands/data/asset/enrich-jsonl.js.map +1 -1
  214. package/dist/commands/data/asset/export.d.ts +1 -1
  215. package/dist/commands/data/asset/export.js +2 -2
  216. package/dist/commands/data/asset/export.js.map +1 -1
  217. package/dist/commands/data/asset/feature-backfill.d.ts +1 -1
  218. package/dist/commands/data/asset/feature-backfill.js +1 -1
  219. package/dist/commands/data/asset/feature-backfill.js.map +1 -1
  220. package/dist/commands/data/asset/get.d.ts +1 -1
  221. package/dist/commands/data/asset/get.js +2 -2
  222. package/dist/commands/data/asset/get.js.map +1 -1
  223. package/dist/commands/data/asset/import-jsonl/cancel.d.ts +1 -1
  224. package/dist/commands/data/asset/import-jsonl/cancel.js +2 -2
  225. package/dist/commands/data/asset/import-jsonl/cancel.js.map +1 -1
  226. package/dist/commands/data/asset/import-jsonl/status.d.ts +1 -1
  227. package/dist/commands/data/asset/import-jsonl/status.js +2 -2
  228. package/dist/commands/data/asset/import-jsonl/status.js.map +1 -1
  229. package/dist/commands/data/asset/import-jsonl.d.ts +1 -1
  230. package/dist/commands/data/asset/import-jsonl.js +2 -2
  231. package/dist/commands/data/asset/import-jsonl.js.map +1 -1
  232. package/dist/commands/data/asset/import.d.ts +1 -1
  233. package/dist/commands/data/asset/import.js +2 -2
  234. package/dist/commands/data/asset/import.js.map +1 -1
  235. package/dist/commands/data/asset/list.d.ts +6 -3
  236. package/dist/commands/data/asset/list.d.ts.map +1 -1
  237. package/dist/commands/data/asset/list.js +40 -32
  238. package/dist/commands/data/asset/list.js.map +1 -1
  239. package/dist/commands/data/asset/media/download.d.ts +1 -1
  240. package/dist/commands/data/asset/media/download.js +2 -2
  241. package/dist/commands/data/asset/media/download.js.map +1 -1
  242. package/dist/commands/data/asset/sample.d.ts +1 -1
  243. package/dist/commands/data/asset/sample.js +4 -4
  244. package/dist/commands/data/asset/sample.js.map +1 -1
  245. package/dist/commands/data/asset/search.d.ts +6 -3
  246. package/dist/commands/data/asset/search.d.ts.map +1 -1
  247. package/dist/commands/data/asset/search.js +39 -31
  248. package/dist/commands/data/asset/search.js.map +1 -1
  249. package/dist/commands/data/asset/update.d.ts +1 -1
  250. package/dist/commands/data/asset/update.js +2 -2
  251. package/dist/commands/data/asset/update.js.map +1 -1
  252. package/dist/commands/data/bucket/create.d.ts +1 -1
  253. package/dist/commands/data/bucket/create.js +2 -2
  254. package/dist/commands/data/bucket/create.js.map +1 -1
  255. package/dist/commands/data/bucket/get.d.ts +1 -1
  256. package/dist/commands/data/bucket/get.js +2 -2
  257. package/dist/commands/data/bucket/get.js.map +1 -1
  258. package/dist/commands/data/bucket/list.d.ts +6 -2
  259. package/dist/commands/data/bucket/list.d.ts.map +1 -1
  260. package/dist/commands/data/bucket/list.js +5 -4
  261. package/dist/commands/data/bucket/list.js.map +1 -1
  262. package/dist/commands/data/bucket/update.d.ts +1 -1
  263. package/dist/commands/data/bucket/update.js +2 -2
  264. package/dist/commands/data/bucket/update.js.map +1 -1
  265. package/dist/commands/data/container/copy.d.ts +1 -1
  266. package/dist/commands/data/container/copy.js +2 -2
  267. package/dist/commands/data/container/copy.js.map +1 -1
  268. package/dist/commands/data/container/move.d.ts +1 -1
  269. package/dist/commands/data/container/move.js +2 -2
  270. package/dist/commands/data/container/move.js.map +1 -1
  271. package/dist/commands/data/container/remove.d.ts +1 -1
  272. package/dist/commands/data/container/remove.js +2 -2
  273. package/dist/commands/data/container/remove.js.map +1 -1
  274. package/dist/commands/data/container/trash/list.d.ts +6 -2
  275. package/dist/commands/data/container/trash/list.d.ts.map +1 -1
  276. package/dist/commands/data/container/trash/list.js +26 -5
  277. package/dist/commands/data/container/trash/list.js.map +1 -1
  278. package/dist/commands/data/container/trash/restore.d.ts +1 -1
  279. package/dist/commands/data/container/trash/restore.js +2 -2
  280. package/dist/commands/data/container/trash/restore.js.map +1 -1
  281. package/dist/commands/data/field/ensure.d.ts +1 -1
  282. package/dist/commands/data/field/ensure.js +2 -2
  283. package/dist/commands/data/field/ensure.js.map +1 -1
  284. package/dist/commands/data/field/get.d.ts +1 -1
  285. package/dist/commands/data/field/get.js +2 -2
  286. package/dist/commands/data/field/get.js.map +1 -1
  287. package/dist/commands/data/field/list.d.ts +6 -2
  288. package/dist/commands/data/field/list.d.ts.map +1 -1
  289. package/dist/commands/data/field/list.js +32 -12
  290. package/dist/commands/data/field/list.js.map +1 -1
  291. package/dist/commands/data/field/update.d.ts +1 -1
  292. package/dist/commands/data/field/update.js +2 -2
  293. package/dist/commands/data/field/update.js.map +1 -1
  294. package/dist/commands/data/ontology/create.d.ts +1 -1
  295. package/dist/commands/data/ontology/create.d.ts.map +1 -1
  296. package/dist/commands/data/ontology/create.js +3 -3
  297. package/dist/commands/data/ontology/create.js.map +1 -1
  298. package/dist/commands/data/ontology/export.d.ts +1 -1
  299. package/dist/commands/data/ontology/export.js +2 -2
  300. package/dist/commands/data/ontology/export.js.map +1 -1
  301. package/dist/commands/data/ontology/get.d.ts +1 -1
  302. package/dist/commands/data/ontology/get.d.ts.map +1 -1
  303. package/dist/commands/data/ontology/get.js +3 -3
  304. package/dist/commands/data/ontology/get.js.map +1 -1
  305. package/dist/commands/data/ontology/import.d.ts +1 -1
  306. package/dist/commands/data/ontology/import.js +2 -2
  307. package/dist/commands/data/ontology/import.js.map +1 -1
  308. package/dist/commands/data/ontology/list.d.ts +6 -2
  309. package/dist/commands/data/ontology/list.d.ts.map +1 -1
  310. package/dist/commands/data/ontology/list.js +5 -4
  311. package/dist/commands/data/ontology/list.js.map +1 -1
  312. package/dist/commands/data/ontology/update.d.ts +1 -1
  313. package/dist/commands/data/ontology/update.d.ts.map +1 -1
  314. package/dist/commands/data/ontology/update.js +3 -3
  315. package/dist/commands/data/ontology/update.js.map +1 -1
  316. package/dist/commands/data/tag/create.d.ts +1 -1
  317. package/dist/commands/data/tag/create.js +2 -2
  318. package/dist/commands/data/tag/create.js.map +1 -1
  319. package/dist/commands/data/tag/delete.d.ts +1 -1
  320. package/dist/commands/data/tag/delete.js +2 -2
  321. package/dist/commands/data/tag/delete.js.map +1 -1
  322. package/dist/commands/data/tag/get.d.ts +1 -1
  323. package/dist/commands/data/tag/get.js +2 -2
  324. package/dist/commands/data/tag/get.js.map +1 -1
  325. package/dist/commands/data/tag/list.d.ts +6 -2
  326. package/dist/commands/data/tag/list.d.ts.map +1 -1
  327. package/dist/commands/data/tag/list.js +29 -6
  328. package/dist/commands/data/tag/list.js.map +1 -1
  329. package/dist/commands/data/tag/update.d.ts +1 -1
  330. package/dist/commands/data/tag/update.js +2 -2
  331. package/dist/commands/data/tag/update.js.map +1 -1
  332. package/dist/commands/data/tag-group/create.d.ts +1 -1
  333. package/dist/commands/data/tag-group/create.js +2 -2
  334. package/dist/commands/data/tag-group/create.js.map +1 -1
  335. package/dist/commands/data/tag-group/delete.d.ts +1 -1
  336. package/dist/commands/data/tag-group/delete.js +2 -2
  337. package/dist/commands/data/tag-group/delete.js.map +1 -1
  338. package/dist/commands/data/tag-group/get.d.ts +1 -1
  339. package/dist/commands/data/tag-group/get.js +2 -2
  340. package/dist/commands/data/tag-group/get.js.map +1 -1
  341. package/dist/commands/data/tag-group/list.d.ts +6 -2
  342. package/dist/commands/data/tag-group/list.d.ts.map +1 -1
  343. package/dist/commands/data/tag-group/list.js +29 -6
  344. package/dist/commands/data/tag-group/list.js.map +1 -1
  345. package/dist/commands/data/tag-group/set-tags.d.ts +1 -1
  346. package/dist/commands/data/tag-group/set-tags.js +2 -2
  347. package/dist/commands/data/tag-group/set-tags.js.map +1 -1
  348. package/dist/commands/data/tag-group/update.d.ts +1 -1
  349. package/dist/commands/data/tag-group/update.js +2 -2
  350. package/dist/commands/data/tag-group/update.js.map +1 -1
  351. package/dist/commands/data/value/batch-set.d.ts +1 -1
  352. package/dist/commands/data/value/batch-set.js +2 -2
  353. package/dist/commands/data/value/batch-set.js.map +1 -1
  354. package/dist/commands/data/value/get.d.ts +1 -1
  355. package/dist/commands/data/value/get.js +2 -2
  356. package/dist/commands/data/value/get.js.map +1 -1
  357. package/dist/commands/data/value/set.d.ts +1 -1
  358. package/dist/commands/data/value/set.js +2 -2
  359. package/dist/commands/data/value/set.js.map +1 -1
  360. package/dist/commands/data/view/convert-to-container.d.ts +1 -1
  361. package/dist/commands/data/view/convert-to-container.js +2 -2
  362. package/dist/commands/data/view/convert-to-container.js.map +1 -1
  363. package/dist/commands/data/view/create.d.ts +1 -1
  364. package/dist/commands/data/view/create.js +2 -2
  365. package/dist/commands/data/view/create.js.map +1 -1
  366. package/dist/commands/data/view/delete.d.ts +1 -1
  367. package/dist/commands/data/view/delete.js +2 -2
  368. package/dist/commands/data/view/delete.js.map +1 -1
  369. package/dist/commands/data/view/rows.d.ts +6 -3
  370. package/dist/commands/data/view/rows.d.ts.map +1 -1
  371. package/dist/commands/data/view/rows.js +32 -19
  372. package/dist/commands/data/view/rows.js.map +1 -1
  373. package/dist/commands/data/view/tree.d.ts +1 -1
  374. package/dist/commands/data/view/tree.js +2 -2
  375. package/dist/commands/data/view/tree.js.map +1 -1
  376. package/dist/commands/data/view/update.d.ts +1 -1
  377. package/dist/commands/data/view/update.js +2 -2
  378. package/dist/commands/data/view/update.js.map +1 -1
  379. package/dist/commands/deployment/list.d.ts +5 -0
  380. package/dist/commands/deployment/list.d.ts.map +1 -1
  381. package/dist/commands/deployment/list.js +9 -5
  382. package/dist/commands/deployment/list.js.map +1 -1
  383. package/dist/commands/deployment/remove.d.ts.map +1 -1
  384. package/dist/commands/deployment/remove.js +1 -1
  385. package/dist/commands/deployment/remove.js.map +1 -1
  386. package/dist/commands/execution/get.d.ts +1 -1
  387. package/dist/commands/execution/get.d.ts.map +1 -1
  388. package/dist/commands/execution/get.js +2 -2
  389. package/dist/commands/execution/get.js.map +1 -1
  390. package/dist/commands/execution/list.d.ts +11 -7
  391. package/dist/commands/execution/list.d.ts.map +1 -1
  392. package/dist/commands/execution/list.js +27 -16
  393. package/dist/commands/execution/list.js.map +1 -1
  394. package/dist/commands/execution/wait.d.ts +1 -1
  395. package/dist/commands/execution/wait.d.ts.map +1 -1
  396. package/dist/commands/execution/wait.js +2 -2
  397. package/dist/commands/execution/wait.js.map +1 -1
  398. package/dist/commands/execution/watch.d.ts +1 -1
  399. package/dist/commands/execution/watch.d.ts.map +1 -1
  400. package/dist/commands/execution/watch.js +2 -2
  401. package/dist/commands/execution/watch.js.map +1 -1
  402. package/dist/commands/file/download.d.ts +1 -1
  403. package/dist/commands/file/download.d.ts.map +1 -1
  404. package/dist/commands/file/download.js +2 -2
  405. package/dist/commands/file/download.js.map +1 -1
  406. package/dist/commands/file/upload.d.ts +1 -1
  407. package/dist/commands/file/upload.d.ts.map +1 -1
  408. package/dist/commands/file/upload.js +2 -2
  409. package/dist/commands/file/upload.js.map +1 -1
  410. package/dist/commands/identity/get.d.ts +1 -1
  411. package/dist/commands/identity/get.d.ts.map +1 -1
  412. package/dist/commands/identity/get.js +2 -2
  413. package/dist/commands/identity/get.js.map +1 -1
  414. package/dist/commands/identity/list.d.ts +3 -2
  415. package/dist/commands/identity/list.d.ts.map +1 -1
  416. package/dist/commands/identity/list.js +5 -8
  417. package/dist/commands/identity/list.js.map +1 -1
  418. package/dist/commands/post-review/get.d.ts +1 -1
  419. package/dist/commands/post-review/get.d.ts.map +1 -1
  420. package/dist/commands/post-review/get.js +2 -2
  421. package/dist/commands/post-review/get.js.map +1 -1
  422. package/dist/commands/post-review/list.d.ts +12 -8
  423. package/dist/commands/post-review/list.d.ts.map +1 -1
  424. package/dist/commands/post-review/list.js +24 -15
  425. package/dist/commands/post-review/list.js.map +1 -1
  426. package/dist/commands/schema.d.ts +1 -1
  427. package/dist/commands/schema.d.ts.map +1 -1
  428. package/dist/commands/schema.js +2 -2
  429. package/dist/commands/schema.js.map +1 -1
  430. package/dist/commands/skills/list.d.ts +5 -0
  431. package/dist/commands/skills/list.d.ts.map +1 -1
  432. package/dist/commands/skills/list.js +3 -2
  433. package/dist/commands/skills/list.js.map +1 -1
  434. package/dist/commands/{profile → subscription}/add.d.ts +1 -1
  435. package/dist/commands/subscription/add.d.ts.map +1 -0
  436. package/dist/commands/{profile → subscription}/add.js +7 -7
  437. package/dist/commands/subscription/add.js.map +1 -0
  438. package/dist/commands/{profile → subscription}/current.d.ts +1 -1
  439. package/dist/commands/subscription/current.d.ts.map +1 -0
  440. package/dist/commands/subscription/current.js +13 -0
  441. package/dist/commands/subscription/current.js.map +1 -0
  442. package/dist/commands/subscription/list.d.ts +14 -0
  443. package/dist/commands/subscription/list.d.ts.map +1 -0
  444. package/dist/commands/subscription/list.js +12 -0
  445. package/dist/commands/subscription/list.js.map +1 -0
  446. package/dist/commands/{profile → subscription}/remove.d.ts +1 -1
  447. package/dist/commands/subscription/remove.d.ts.map +1 -0
  448. package/dist/commands/subscription/remove.js +18 -0
  449. package/dist/commands/subscription/remove.js.map +1 -0
  450. package/dist/commands/{profile → subscription}/show.d.ts +1 -1
  451. package/dist/commands/subscription/show.d.ts.map +1 -0
  452. package/dist/commands/subscription/show.js +18 -0
  453. package/dist/commands/subscription/show.js.map +1 -0
  454. package/dist/commands/{profile → subscription}/test.d.ts +1 -1
  455. package/dist/commands/subscription/test.d.ts.map +1 -0
  456. package/dist/commands/{profile → subscription}/test.js +6 -6
  457. package/dist/commands/subscription/test.js.map +1 -0
  458. package/dist/commands/{profile → subscription}/update.d.ts +1 -1
  459. package/dist/commands/subscription/update.d.ts.map +1 -0
  460. package/dist/commands/{profile → subscription}/update.js +7 -7
  461. package/dist/commands/subscription/update.js.map +1 -0
  462. package/dist/commands/{profile → subscription}/use.d.ts +1 -1
  463. package/dist/commands/subscription/use.d.ts.map +1 -0
  464. package/dist/commands/subscription/use.js +18 -0
  465. package/dist/commands/subscription/use.js.map +1 -0
  466. package/dist/commands/team/get.d.ts +1 -1
  467. package/dist/commands/team/get.d.ts.map +1 -1
  468. package/dist/commands/team/get.js +3 -3
  469. package/dist/commands/team/get.js.map +1 -1
  470. package/dist/commands/team/list.d.ts +3 -2
  471. package/dist/commands/team/list.d.ts.map +1 -1
  472. package/dist/commands/team/list.js +6 -9
  473. package/dist/commands/team/list.js.map +1 -1
  474. package/dist/commands/workflow/create.d.ts +1 -1
  475. package/dist/commands/workflow/create.d.ts.map +1 -1
  476. package/dist/commands/workflow/create.js +2 -2
  477. package/dist/commands/workflow/create.js.map +1 -1
  478. package/dist/commands/workflow/delete.d.ts +1 -1
  479. package/dist/commands/workflow/delete.d.ts.map +1 -1
  480. package/dist/commands/workflow/delete.js +2 -2
  481. package/dist/commands/workflow/delete.js.map +1 -1
  482. package/dist/commands/workflow/get.d.ts +1 -1
  483. package/dist/commands/workflow/get.d.ts.map +1 -1
  484. package/dist/commands/workflow/get.js +2 -2
  485. package/dist/commands/workflow/get.js.map +1 -1
  486. package/dist/commands/workflow/import.d.ts +1 -1
  487. package/dist/commands/workflow/import.d.ts.map +1 -1
  488. package/dist/commands/workflow/import.js +2 -2
  489. package/dist/commands/workflow/import.js.map +1 -1
  490. package/dist/commands/workflow/list.d.ts +11 -7
  491. package/dist/commands/workflow/list.d.ts.map +1 -1
  492. package/dist/commands/workflow/list.js +25 -15
  493. package/dist/commands/workflow/list.js.map +1 -1
  494. package/dist/commands/workflow/run.d.ts +1 -1
  495. package/dist/commands/workflow/run.d.ts.map +1 -1
  496. package/dist/commands/workflow/run.js +2 -2
  497. package/dist/commands/workflow/run.js.map +1 -1
  498. package/dist/commands/workflow/update.d.ts +1 -1
  499. package/dist/commands/workflow/update.d.ts.map +1 -1
  500. package/dist/commands/workflow/update.js +2 -2
  501. package/dist/commands/workflow/update.js.map +1 -1
  502. package/dist/config/{environment-profile.d.ts → environment-subscription.d.ts} +2 -2
  503. package/dist/config/environment-subscription.d.ts.map +1 -0
  504. package/dist/config/{environment-profile.js → environment-subscription.js} +8 -8
  505. package/dist/config/environment-subscription.js.map +1 -0
  506. package/dist/config/fast-subscription-list.d.ts +6 -0
  507. package/dist/config/fast-subscription-list.d.ts.map +1 -0
  508. package/dist/config/{fast-profile-list.js → fast-subscription-list.js} +6 -4
  509. package/dist/config/fast-subscription-list.js.map +1 -0
  510. package/dist/config/index.d.ts +1 -1
  511. package/dist/config/index.d.ts.map +1 -1
  512. package/dist/config/index.js +1 -1
  513. package/dist/config/index.js.map +1 -1
  514. package/dist/config/registry.d.ts +18 -18
  515. package/dist/config/registry.d.ts.map +1 -1
  516. package/dist/config/registry.js +72 -72
  517. package/dist/config/registry.js.map +1 -1
  518. package/dist/config/schema.d.ts +6 -6
  519. package/dist/config/schema.d.ts.map +1 -1
  520. package/dist/config/schema.js +12 -12
  521. package/dist/config/schema.js.map +1 -1
  522. package/dist/config/store.d.ts.map +1 -1
  523. package/dist/config/store.js +4 -4
  524. package/dist/config/store.js.map +1 -1
  525. package/dist/context/resolver.d.ts +3 -3
  526. package/dist/context/resolver.d.ts.map +1 -1
  527. package/dist/context/resolver.js +30 -28
  528. package/dist/context/resolver.js.map +1 -1
  529. package/dist/contracts/result.d.ts +1 -1
  530. package/dist/contracts/result.js +1 -1
  531. package/dist/contracts/result.js.map +1 -1
  532. package/dist/contracts/version.d.ts +1 -1
  533. package/dist/contracts/version.js +1 -1
  534. package/dist/credential/auth-service.d.ts +69 -2
  535. package/dist/credential/auth-service.d.ts.map +1 -1
  536. package/dist/credential/auth-service.js +10 -9
  537. package/dist/credential/auth-service.js.map +1 -1
  538. package/dist/credential/command-runtime.d.ts +3 -3
  539. package/dist/credential/command-runtime.d.ts.map +1 -1
  540. package/dist/credential/command-runtime.js +5 -5
  541. package/dist/credential/command-runtime.js.map +1 -1
  542. package/dist/credential/storage-doctor.js +1 -1
  543. package/dist/credential/storage-doctor.js.map +1 -1
  544. package/dist/data/asset-jsonl-import.d.ts +1 -1
  545. package/dist/data/asset-jsonl-import.d.ts.map +1 -1
  546. package/dist/data/asset-jsonl-import.js +2 -2
  547. package/dist/data/asset-jsonl-import.js.map +1 -1
  548. package/dist/data/client.d.ts.map +1 -1
  549. package/dist/data/client.js +3 -2
  550. package/dist/data/client.js.map +1 -1
  551. package/dist/data/command.d.ts +3 -3
  552. package/dist/data/command.d.ts.map +1 -1
  553. package/dist/data/command.js +4 -4
  554. package/dist/data/command.js.map +1 -1
  555. package/dist/data/contract-variant.js +1 -1
  556. package/dist/data/contract-variant.js.map +1 -1
  557. package/dist/data/feature-values.js +1 -1
  558. package/dist/data/feature-values.js.map +1 -1
  559. package/dist/data/kernel-bindings.js +7 -7
  560. package/dist/data/kernel-bindings.js.map +1 -1
  561. package/dist/data/ontology-command.d.ts +5 -6
  562. package/dist/data/ontology-command.d.ts.map +1 -1
  563. package/dist/data/ontology-command.js +22 -8
  564. package/dist/data/ontology-command.js.map +1 -1
  565. package/dist/data/policy.js +2 -2
  566. package/dist/data/policy.js.map +1 -1
  567. package/dist/data/view-rows.d.ts +1 -1
  568. package/dist/data/view-rows.d.ts.map +1 -1
  569. package/dist/data/view-rows.js +6 -6
  570. package/dist/data/view-rows.js.map +1 -1
  571. package/dist/data-transfer/asset-export.d.ts +1 -1
  572. package/dist/data-transfer/asset-export.d.ts.map +1 -1
  573. package/dist/data-transfer/asset-export.js +3 -3
  574. package/dist/data-transfer/asset-export.js.map +1 -1
  575. package/dist/data-transfer/asset-import.d.ts +1 -1
  576. package/dist/data-transfer/asset-import.d.ts.map +1 -1
  577. package/dist/data-transfer/asset-import.js +1 -1
  578. package/dist/data-transfer/asset-import.js.map +1 -1
  579. package/dist/data-transfer/ontology-export.d.ts +1 -1
  580. package/dist/data-transfer/ontology-export.d.ts.map +1 -1
  581. package/dist/data-transfer/ontology-export.js +1 -1
  582. package/dist/data-transfer/ontology-export.js.map +1 -1
  583. package/dist/data-transfer/ontology-import.d.ts +1 -1
  584. package/dist/data-transfer/ontology-import.d.ts.map +1 -1
  585. package/dist/data-transfer/ontology-import.js +1 -1
  586. package/dist/data-transfer/ontology-import.js.map +1 -1
  587. package/dist/discovery/client.d.ts +7 -3
  588. package/dist/discovery/client.d.ts.map +1 -1
  589. package/dist/discovery/client.js +44 -28
  590. package/dist/discovery/client.js.map +1 -1
  591. package/dist/fallback/evidence.js +1 -1
  592. package/dist/fallback/evidence.js.map +1 -1
  593. package/dist/pagination/index.d.ts +52 -0
  594. package/dist/pagination/index.d.ts.map +1 -0
  595. package/dist/pagination/index.js +117 -0
  596. package/dist/pagination/index.js.map +1 -0
  597. package/dist/semantic/runtime.d.ts +1 -1
  598. package/dist/semantic/runtime.d.ts.map +1 -1
  599. package/dist/semantic/runtime.js +1 -1
  600. package/dist/semantic/runtime.js.map +1 -1
  601. package/dist/system-config/client.d.ts +49 -14
  602. package/dist/system-config/client.d.ts.map +1 -1
  603. package/dist/system-config/client.js +17 -1
  604. package/dist/system-config/client.js.map +1 -1
  605. package/dist/system-config/context.d.ts +1 -1
  606. package/dist/system-config/context.js +3 -3
  607. package/dist/system-config/context.js.map +1 -1
  608. package/dist/system-config/contracts.d.ts +52 -7
  609. package/dist/system-config/contracts.d.ts.map +1 -1
  610. package/dist/system-config/contracts.js +36 -1
  611. package/dist/system-config/contracts.js.map +1 -1
  612. package/dist/system-config/definitions.d.ts +1 -0
  613. package/dist/system-config/definitions.d.ts.map +1 -1
  614. package/dist/system-config/definitions.js +1 -0
  615. package/dist/system-config/definitions.js.map +1 -1
  616. package/dist/system-config/read.d.ts +31 -42
  617. package/dist/system-config/read.d.ts.map +1 -1
  618. package/dist/system-config/read.js +18 -19
  619. package/dist/system-config/read.js.map +1 -1
  620. package/dist/system-config/runtime.d.ts +1 -1
  621. package/dist/system-config/runtime.d.ts.map +1 -1
  622. package/dist/system-config/runtime.js +2 -2
  623. package/dist/system-config/runtime.js.map +1 -1
  624. package/oclif.manifest.json +1616 -1031
  625. package/package.json +6 -6
  626. package/skills/monkeys-agent-work/SKILL.md +1 -1
  627. package/skills/monkeys-agent-work/references/agent-work.md +30 -30
  628. package/skills/monkeys-auth/SKILL.md +5 -5
  629. package/skills/monkeys-auth/references/authentication.md +11 -11
  630. package/skills/monkeys-data/SKILL.md +1 -1
  631. package/skills/monkeys-data/references/data-governance.md +3 -3
  632. package/skills/monkeys-data/references/data-perspective.md +1 -1
  633. package/skills/monkeys-data/references/data-read.md +6 -6
  634. package/skills/monkeys-data/references/data-transfer.md +8 -8
  635. package/skills/monkeys-data/references/data-write.md +1 -1
  636. package/skills/monkeys-data/references/ontology-feature-search.md +2 -2
  637. package/skills/monkeys-data/references/ontology-model.md +1 -1
  638. package/skills/monkeys-openapi/SKILL.md +1 -1
  639. package/skills/monkeys-openapi/references/fallback.md +2 -2
  640. package/skills/monkeys-shared/SKILL.md +4 -3
  641. package/skills/monkeys-shared/agents/openai.yaml +1 -1
  642. package/skills/monkeys-shared/references/compatibility.md +2 -2
  643. package/skills/monkeys-shared/references/pagination.md +13 -0
  644. package/skills/monkeys-shared/references/platform-overview.md +1 -1
  645. package/skills/monkeys-shared/references/safety-errors.md +2 -2
  646. package/skills/monkeys-system-config/SKILL.md +1 -1
  647. package/skills/monkeys-system-config/references/system-config.md +11 -11
  648. package/skills/monkeys-workflow/SKILL.md +1 -1
  649. package/skills/monkeys-workflow/references/workflow-execution-files.md +2 -2
  650. package/dist/commands/profile/add.d.ts.map +0 -1
  651. package/dist/commands/profile/add.js.map +0 -1
  652. package/dist/commands/profile/current.d.ts.map +0 -1
  653. package/dist/commands/profile/current.js +0 -13
  654. package/dist/commands/profile/current.js.map +0 -1
  655. package/dist/commands/profile/list.d.ts +0 -9
  656. package/dist/commands/profile/list.d.ts.map +0 -1
  657. package/dist/commands/profile/list.js +0 -11
  658. package/dist/commands/profile/list.js.map +0 -1
  659. package/dist/commands/profile/remove.d.ts.map +0 -1
  660. package/dist/commands/profile/remove.js +0 -18
  661. package/dist/commands/profile/remove.js.map +0 -1
  662. package/dist/commands/profile/show.d.ts.map +0 -1
  663. package/dist/commands/profile/show.js +0 -18
  664. package/dist/commands/profile/show.js.map +0 -1
  665. package/dist/commands/profile/test.d.ts.map +0 -1
  666. package/dist/commands/profile/test.js.map +0 -1
  667. package/dist/commands/profile/update.d.ts.map +0 -1
  668. package/dist/commands/profile/update.js.map +0 -1
  669. package/dist/commands/profile/use.d.ts.map +0 -1
  670. package/dist/commands/profile/use.js +0 -18
  671. package/dist/commands/profile/use.js.map +0 -1
  672. package/dist/config/environment-profile.d.ts.map +0 -1
  673. package/dist/config/environment-profile.js.map +0 -1
  674. package/dist/config/fast-profile-list.d.ts +0 -6
  675. package/dist/config/fast-profile-list.d.ts.map +0 -1
  676. package/dist/config/fast-profile-list.js.map +0 -1
  677. package/dist/discovery/pagination.d.ts +0 -20
  678. package/dist/discovery/pagination.d.ts.map +0 -1
  679. package/dist/discovery/pagination.js +0 -32
  680. package/dist/discovery/pagination.js.map +0 -1
package/README.md CHANGED
@@ -11,7 +11,7 @@ The CLI is the only execution layer. Seven focused Chinese-language Skills bundl
11
11
  ## Why monkeys-cli?
12
12
 
13
13
  - **Agent-Native** — The CLI and all official Skills ship in the same package and install with one command
14
- - **Multi-Subscription** — Connect one local CLI to multiple cloud or self-hosted endpoints and switch Profiles quickly
14
+ - **Multi-Subscription** — Connect one local CLI to multiple cloud or self-hosted endpoints and switch Subscriptions quickly
15
15
  - **Semantic First** — Workflow, Execution, Agent Work, Data, and Config have explicit domain commands
16
16
  - **Open Coverage** — Discover the OpenAPI contract actually published by a deployment and make controlled raw API calls
17
17
  - **Automation Friendly** — Stable JSON/NDJSON output, fixed exit codes, request IDs, and context summaries
@@ -22,7 +22,7 @@ The CLI is the only execution layer. Seven focused Chinese-language Skills bundl
22
22
 
23
23
  | Category | Capabilities |
24
24
  | ----------------------- | -------------------------------------------------------------------------------------------------------- |
25
- | 🔗 Deployment & Profile | Manage multiple endpoints, Tenants, Teams, and Profiles across cloud and self-hosted deployments |
25
+ | 🔗 Deployment & Subscription | Manage multiple endpoints, Tenants, Teams, and Subscriptions across cloud and self-hosted deployments |
26
26
  | 🔐 Authentication | Browser Device Code login, API Key login, status checks, identity lookup, and secure-storage diagnostics |
27
27
  | 🔁 Workflow & Execution | Workflow CRUD, import, run, and Execution query, wait, and status streaming |
28
28
  | 🤖 Agent Work | Create, query, assign, converse, approve Specs, control runs, review, and watch state |
@@ -56,7 +56,7 @@ npm install --global @inf-monkeys-tech/monkeys-cli
56
56
 
57
57
  #### Step 2 — Sign in to a subscription
58
58
 
59
- The subscription URL is the endpoint associated with the Profile. After browser login, the CLI reads the authenticated Tenant's `tenantId`, uses it as the Profile name, and makes that Profile current.
59
+ The subscription URL is the endpoint associated with the Subscription. After browser login, the CLI reads the authenticated Tenant's `tenantId`, uses it as the Subscription name, and makes that Subscription current.
60
60
 
61
61
  ```bash
62
62
  monkeys auth login --url https://customer.example.com
@@ -68,7 +68,7 @@ The CLI prints and opens the login URL for that endpoint. Account credentials ar
68
68
 
69
69
  ```bash
70
70
  monkeys auth status --output json
71
- monkeys profile list --output json
71
+ monkeys subscription list --output json
72
72
  monkeys workflow list --team <team-id> --output json
73
73
  ```
74
74
 
@@ -94,11 +94,11 @@ monkeys auth login \
94
94
  --output json
95
95
  ```
96
96
 
97
- Send the returned authorization URL to the user. After the user finishes browser login, resume polling with the temporary Profile and Device Code returned by the same response:
97
+ Send the returned authorization URL to the user. After the user finishes browser login, resume polling with the temporary Subscription and Device Code returned by the same response:
98
98
 
99
99
  ```bash
100
100
  monkeys auth login \
101
- --profile <temporary-profile> \
101
+ --subscription <temporary-subscription> \
102
102
  --device-code <device-code> \
103
103
  --output json
104
104
  ```
@@ -107,7 +107,7 @@ monkeys auth login \
107
107
 
108
108
  ```bash
109
109
  monkeys auth status --output json
110
- monkeys profile list --output json
110
+ monkeys subscription list --output json
111
111
  ```
112
112
 
113
113
  For API Key authentication, never put the Key in command arguments or shell history:
@@ -123,7 +123,7 @@ monkeys auth login \
123
123
 
124
124
  | Skill | Description |
125
125
  | --- | --- |
126
- | [`monkeys-shared`](skills/monkeys-shared/SKILL.md) | Profile, Context, Team, Identity, output, safety, errors, and version rules |
126
+ | [`monkeys-shared`](skills/monkeys-shared/SKILL.md) | Subscription, Context, Team, Identity, output, safety, errors, and version rules |
127
127
  | [`monkeys-auth`](skills/monkeys-auth/SKILL.md) | Browser and API Key authentication |
128
128
  | [`monkeys-workflow`](skills/monkeys-workflow/SKILL.md) | Workflow, Execution, and file transfer |
129
129
  | [`monkeys-agent-work`](skills/monkeys-agent-work/SKILL.md) | Kernel Agent Work lifecycle |
@@ -148,7 +148,7 @@ Agents can read the exact embedded version without locating npm files, for examp
148
148
  | `auth login` | Start browser login for an endpoint URL or import an API Key from secure input |
149
149
  | `auth status` | Validate the current Credential and return identity, Team, Surface, and permission information |
150
150
  | `auth whoami` | Query the current server-side identity |
151
- | `auth logout` | Remove the Credential stored for a Profile |
151
+ | `auth logout` | Remove the Credential stored for a Subscription |
152
152
  | `auth doctor` | Check secure read/write behavior for the current browser Session Store |
153
153
  | `auth api-key import` | Import an API Key from stdin or a named environment variable |
154
154
 
@@ -167,7 +167,7 @@ monkeys auth login --url https://customer.example.com --api-key-env MONKEYS_API_
167
167
 
168
168
  ### Ephemeral Environment Authentication
169
169
 
170
- Automation hosts can provide one non-persistent, read-only Profile without running a login command:
170
+ Automation hosts can provide one non-persistent, read-only Subscription without running a login command:
171
171
 
172
172
  ```bash
173
173
  MONKEYS_ENDPOINT=https://customer.example.com \
@@ -175,14 +175,14 @@ MONKEYS_ACCESS_TOKEN=<access-token> \
175
175
  monkeys context show --output json
176
176
  ```
177
177
 
178
- Both variables are required. While they are present, the CLI uses only the `environment` Profile and rejects Profile or deployment mutations. The CLI does not infer who issued the access token or how the host obtained it.
178
+ Both variables are required. While they are present, the CLI uses only the `environment` Subscription and rejects Subscription or deployment mutations. The CLI does not infer who issued the access token or how the host obtained it.
179
179
 
180
180
  ### Switch Subscriptions
181
181
 
182
182
  ```bash
183
- monkeys profile list --output json
184
- monkeys profile use --name <profile-name> --output json
185
- monkeys profile test --name <profile-name> --output json
183
+ monkeys subscription list --output json
184
+ monkeys subscription use --name <subscription-name> --output json
185
+ monkeys subscription test --name <subscription-name> --output json
186
186
  ```
187
187
 
188
188
  ## Updates
@@ -217,20 +217,20 @@ monkeys-cli provides three levels of access, from stable domain operations to th
217
217
  Use these first. They provide context validation, risk classification, and stable output for humans and Agents.
218
218
 
219
219
  ```bash
220
- monkeys workflow list --profile customer-a --team <team-id> --output json
221
- monkeys workflow run <workflow-id> --profile customer-a --team <team-id> --input-json '{"prompt":"hello"}' --output json
222
- monkeys execution wait <execution-id> --profile customer-a --team <team-id> --timeout-seconds 600 --output json
223
- monkeys agent work list --profile customer-kernel --output json
224
- monkeys data asset list --profile customer-kernel --perspective kernel --ontology <ontology-id> --output json
225
- monkeys config overview --profile customer-kernel --output json
220
+ monkeys workflow list --subscription customer-a --team <team-id> --output json
221
+ monkeys workflow run <workflow-id> --subscription customer-a --team <team-id> --input-json '{"prompt":"hello"}' --output json
222
+ monkeys execution wait <execution-id> --subscription customer-a --team <team-id> --timeout-seconds 600 --output json
223
+ monkeys agent work list --subscription customer-kernel --output json
224
+ monkeys data asset list --subscription customer-kernel --perspective kernel --ontology <ontology-id> --output json
225
+ monkeys config overview --subscription customer-kernel --output json
226
226
  ```
227
227
 
228
228
  Context and identity are first-class discovery surfaces:
229
229
 
230
230
  ```bash
231
- monkeys context show --profile customer-a
232
- monkeys team list --profile customer-a --page-all
233
- monkeys identity list --profile customer-kernel --user-type agent --page-all
231
+ monkeys context show --subscription customer-a
232
+ monkeys team list --subscription customer-a --page-all
233
+ monkeys identity list --subscription customer-kernel --user-type agent --page-all
234
234
  monkeys schema workflow run
235
235
  ```
236
236
 
@@ -239,24 +239,33 @@ monkeys schema workflow run
239
239
  List and describe real Operations from the fresh OpenAPI contract published by the current deployment.
240
240
 
241
241
  ```bash
242
- monkeys api list --profile customer-a --output json
243
- monkeys api describe --operation-id <operation-id> --profile customer-a --output json
242
+ monkeys api list --subscription customer-a --output json
243
+ monkeys api describe --operation-id <operation-id> --subscription customer-a --output json
244
244
  ```
245
245
 
246
246
  ### 3. Controlled Raw API
247
247
 
248
- Use raw API calls only when there is no suitable semantic command. Writes require explicit confirmation. When a semantic command returns controlled fallback evidence, consume it only in the same Profile, Tenant, Team, and Credential Context.
248
+ Use raw API calls only when there is no suitable semantic command. Writes require explicit confirmation. When a semantic command returns controlled fallback evidence, consume it only in the same Subscription, Tenant, Team, and Credential Context.
249
249
 
250
250
  ```bash
251
251
  monkeys api call \
252
252
  --operation-id <operation-id> \
253
- --profile customer-a \
253
+ --subscription customer-a \
254
254
  --query-json '{}' \
255
255
  --output json
256
256
  ```
257
257
 
258
258
  ## Advanced Usage
259
259
 
260
+ ### Unified Pagination
261
+
262
+ Every `list`, `search`, and `rows` command uses the same pagination contract: `--page-size`, `--page-token`, `--page-all`, `--page-limit`, and `--page-delay`. Results always expose `items` and `pageInfo`; continue with `pageInfo.nextPageToken` only under the exact same Subscription, Team, filters, and page size.
263
+
264
+ ```bash
265
+ monkeys workflow list --subscription customer-a --page-size 50 --output json
266
+ monkeys workflow list --subscription customer-a --page-token <next-page-token> --page-size 50 --output json
267
+ ```
268
+
260
269
  ### Structured Output
261
270
 
262
271
  JSON is the default for automation and Agents; long-running status watches use NDJSON. `--format pretty|table|csv|ndjson|text` changes presentation, `--jq` filters the full JSON envelope, and `--output` remains a compatibility alias. Successful results go to stdout with exit code `0`. Errors use a fixed non-zero exit code.
@@ -279,7 +288,7 @@ For mutating commands that support `--dry-run`, run the preflight first. After i
279
288
 
280
289
  ```bash
281
290
  monkeys workflow delete <workflow-id> \
282
- --profile customer-a \
291
+ --subscription customer-a \
283
292
  --team <team-id> \
284
293
  --dry-run \
285
294
  --output json
@@ -287,12 +296,12 @@ monkeys workflow delete <workflow-id> \
287
296
 
288
297
  ### Explicit Context
289
298
 
290
- - `--profile` selects the subscription and Credential
299
+ - `--subscription` selects the subscription and Credential
291
300
  - `--team` selects a Team context or an explicit Team filter
292
301
  - `--perspective kernel|studio` asserts the Data perspective without expanding permissions
293
302
  - `--resource-team` identifies the downstream data-resource partition when required
294
303
 
295
- Never infer Profile, Team, Ontology, or other IDs from resource names. Resolve the real context with read-only commands first.
304
+ Never infer Subscription, Team, Ontology, or other IDs from resource names. Resolve the real context with read-only commands first.
296
305
 
297
306
  ### Detailed Documentation
298
307
 
package/README.zh.md CHANGED
@@ -11,7 +11,7 @@ CLI 是唯一执行层;npm 包内的 7 个聚焦领域 Skill 按需指导 Agen
11
11
  ## 为什么选择 monkeys-cli?
12
12
 
13
13
  - **Agent 原生** — CLI 与全部官方 Skills 同包、同版本发布,一条命令完成安装
14
- - **多订阅设计** — 一个本地 CLI 可连接多个云端或私有化 Endpoint,并快速切换 Profile
14
+ - **多订阅设计** — 一个本地 CLI 可连接多个云端或私有化 Endpoint,并快速切换 Subscription
15
15
  - **语义优先** — Workflow、Execution、Agent Work、Data 和 Config 都有明确的领域命令
16
16
  - **开放覆盖** — 动态发现部署实际发布的 OpenAPI,并提供受控的原始 API 调用
17
17
  - **自动化友好** — 稳定 JSON/NDJSON 输出、固定退出码、Request ID 和上下文摘要
@@ -22,7 +22,7 @@ CLI 是唯一执行层;npm 包内的 7 个聚焦领域 Skill 按需指导 Agen
22
22
 
23
23
  | 类别 | 能力 |
24
24
  | ------------------------ | ----------------------------------------------------------------------- |
25
- | 🔗 Deployment 与 Profile | 管理多个 Endpoint、Tenant、Team 和 Profile,支持云端及私有化部署 |
25
+ | 🔗 Deployment 与 Subscription | 管理多个 Endpoint、Tenant、Team 和 Subscription,支持云端及私有化部署 |
26
26
  | 🔐 认证 | 浏览器 Device Code 登录、API Key 登录、状态验证、身份查询和安全存储诊断 |
27
27
  | 🔁 Workflow 与 Execution | Workflow CRUD、导入、运行,以及 Execution 查询、等待和状态流 |
28
28
  | 🤖 Agent Work | 创建、查询、分配、对话、Spec 审批、运行控制、Review 与状态观察 |
@@ -56,7 +56,7 @@ npm install --global @inf-monkeys-tech/monkeys-cli
56
56
 
57
57
  #### 第 2 步 — 登录订阅
58
58
 
59
- 订阅 URL 就是该 Profile 对应的 Endpoint。浏览器登录成功后,CLI 会读取当前租户的 `tenantId`,用它命名 Profile,并设为当前订阅。
59
+ 订阅 URL 就是该 Subscription 对应的 Endpoint。浏览器登录成功后,CLI 会读取当前租户的 `tenantId`,用它命名 Subscription,并设为当前订阅。
60
60
 
61
61
  ```bash
62
62
  monkeys auth login --url https://customer.example.com
@@ -68,7 +68,7 @@ CLI 会输出并打开该 Endpoint 的登录 URL。账户密码只在浏览器
68
68
 
69
69
  ```bash
70
70
  monkeys auth status --output json
71
- monkeys profile list --output json
71
+ monkeys subscription list --output json
72
72
  monkeys workflow list --team <team-id> --output json
73
73
  ```
74
74
 
@@ -94,11 +94,11 @@ monkeys auth login \
94
94
  --output json
95
95
  ```
96
96
 
97
- 把返回的授权 URL 交给用户。用户完成浏览器登录后,使用同一响应中的临时 Profile 和 Device Code 继续轮询:
97
+ 把返回的授权 URL 交给用户。用户完成浏览器登录后,使用同一响应中的临时 Subscription 和 Device Code 继续轮询:
98
98
 
99
99
  ```bash
100
100
  monkeys auth login \
101
- --profile <temporary-profile> \
101
+ --subscription <temporary-subscription> \
102
102
  --device-code <device-code> \
103
103
  --output json
104
104
  ```
@@ -107,7 +107,7 @@ monkeys auth login \
107
107
 
108
108
  ```bash
109
109
  monkeys auth status --output json
110
- monkeys profile list --output json
110
+ monkeys subscription list --output json
111
111
  ```
112
112
 
113
113
  如果使用 API Key,不要把 Key 放进参数或 shell history:
@@ -123,7 +123,7 @@ monkeys auth login \
123
123
 
124
124
  | Skill | 说明 |
125
125
  | --- | --- |
126
- | [`monkeys-shared`](skills/monkeys-shared/SKILL.md) | Profile、Context、Team、Identity、输出、安全、错误与版本规则 |
126
+ | [`monkeys-shared`](skills/monkeys-shared/SKILL.md) | Subscription、Context、Team、Identity、输出、安全、错误与版本规则 |
127
127
  | [`monkeys-auth`](skills/monkeys-auth/SKILL.md) | 浏览器登录与 API Key 认证 |
128
128
  | [`monkeys-workflow`](skills/monkeys-workflow/SKILL.md) | Workflow、Execution 与文件 |
129
129
  | [`monkeys-agent-work`](skills/monkeys-agent-work/SKILL.md) | Kernel Agent Work 全生命周期 |
@@ -148,7 +148,7 @@ Agent 可直接读取 npm 包内的同版本内容,例如 `monkeys skills read
148
148
  | `auth login` | 使用 Endpoint URL 发起浏览器登录,或从安全输入导入 API Key |
149
149
  | `auth status` | 验证当前 Credential,并返回身份、Team、Surface 和权限 |
150
150
  | `auth whoami` | 查询当前服务端身份 |
151
- | `auth logout` | 移除指定 Profile 保存的 Credential |
151
+ | `auth logout` | 移除指定 Subscription 保存的 Credential |
152
152
  | `auth doctor` | 检查当前浏览器 Session Store 的安全读写能力 |
153
153
  | `auth api-key import` | 从 stdin 或指定环境变量导入 API Key |
154
154
 
@@ -168,9 +168,9 @@ monkeys auth login --url https://customer.example.com --api-key-env MONKEYS_API_
168
168
  ### 多订阅切换
169
169
 
170
170
  ```bash
171
- monkeys profile list --output json
172
- monkeys profile use --name <profile-name> --output json
173
- monkeys profile test --name <profile-name> --output json
171
+ monkeys subscription list --output json
172
+ monkeys subscription use --name <subscription-name> --output json
173
+ monkeys subscription test --name <subscription-name> --output json
174
174
  ```
175
175
 
176
176
  ## 版本更新
@@ -205,12 +205,12 @@ monkeys-cli 提供三种调用粒度,从稳定领域操作到部署实际发
205
205
  优先供人类和 Agent 使用,内置上下文校验、风险分类和稳定输出。
206
206
 
207
207
  ```bash
208
- monkeys workflow list --profile customer-a --team <team-id> --output json
209
- monkeys workflow run <workflow-id> --profile customer-a --team <team-id> --input-json '{"prompt":"hello"}' --output json
210
- monkeys execution wait <execution-id> --profile customer-a --team <team-id> --timeout-seconds 600 --output json
211
- monkeys agent work list --profile customer-kernel --output json
212
- monkeys data asset list --profile customer-kernel --perspective kernel --ontology <ontology-id> --output json
213
- monkeys config overview --profile customer-kernel --output json
208
+ monkeys workflow list --subscription customer-a --team <team-id> --output json
209
+ monkeys workflow run <workflow-id> --subscription customer-a --team <team-id> --input-json '{"prompt":"hello"}' --output json
210
+ monkeys execution wait <execution-id> --subscription customer-a --team <team-id> --timeout-seconds 600 --output json
211
+ monkeys agent work list --subscription customer-kernel --output json
212
+ monkeys data asset list --subscription customer-kernel --perspective kernel --ontology <ontology-id> --output json
213
+ monkeys config overview --subscription customer-kernel --output json
214
214
  ```
215
215
 
216
216
  ### 2. OpenAPI 发现
@@ -218,24 +218,33 @@ monkeys config overview --profile customer-kernel --output json
218
218
  从当前部署发布的新鲜 OpenAPI 合同中列出并描述真实 Operation。
219
219
 
220
220
  ```bash
221
- monkeys api list --profile customer-a --output json
222
- monkeys api describe --operation-id <operation-id> --profile customer-a --output json
221
+ monkeys api list --subscription customer-a --output json
222
+ monkeys api describe --operation-id <operation-id> --subscription customer-a --output json
223
223
  ```
224
224
 
225
225
  ### 3. 受控原始 API
226
226
 
227
- 只在没有合适语义命令时使用。写操作要求显式确认;语义命令返回受控降级证据时,必须在相同 Profile、Tenant、Team 和 Credential Context 中消费。
227
+ 只在没有合适语义命令时使用。写操作要求显式确认;语义命令返回受控降级证据时,必须在相同 Subscription、Tenant、Team 和 Credential Context 中消费。
228
228
 
229
229
  ```bash
230
230
  monkeys api call \
231
231
  --operation-id <operation-id> \
232
- --profile customer-a \
232
+ --subscription customer-a \
233
233
  --query-json '{}' \
234
234
  --output json
235
235
  ```
236
236
 
237
237
  ## 进阶用法
238
238
 
239
+ ### 统一分页
240
+
241
+ 所有 `list`、`search` 和 `rows` 命令统一使用 `--page-size`、`--page-token`、`--page-all`、`--page-limit` 和 `--page-delay`。输出统一为 `items` 和 `pageInfo`;只有在 Subscription、Team、筛选条件和分页大小完全相同时,才能继续使用 `pageInfo.nextPageToken`。
242
+
243
+ ```bash
244
+ monkeys workflow list --subscription customer-a --page-size 50 --output json
245
+ monkeys workflow list --subscription customer-a --page-token <next-page-token> --page-size 50 --output json
246
+ ```
247
+
239
248
  ### 结构化输出
240
249
 
241
250
  自动化和 Agent 使用 `--output json`;长时间状态观察使用 NDJSON。成功结果写入 stdout 且退出码为 `0`,错误写入 stderr 并返回固定非零退出码。
@@ -258,7 +267,7 @@ monkeys api call \
258
267
 
259
268
  ```bash
260
269
  monkeys workflow delete <workflow-id> \
261
- --profile customer-a \
270
+ --subscription customer-a \
262
271
  --team <team-id> \
263
272
  --dry-run \
264
273
  --output json
@@ -266,12 +275,12 @@ monkeys workflow delete <workflow-id> \
266
275
 
267
276
  ### 明确上下文
268
277
 
269
- - `--profile` 选择订阅和 Credential
278
+ - `--subscription` 选择订阅和 Credential
270
279
  - `--team` 选择 Team 上下文或显式筛选
271
280
  - `--perspective kernel|studio` 断言 Data 视角,不扩大权限
272
281
  - `--resource-team` 在需要时明确下游数据资源分区
273
282
 
274
- 不要根据资源名称猜测 Profile、Team、Ontology 或其他 ID;先用只读命令解析真实上下文。
283
+ 不要根据资源名称猜测 Subscription、Team、Ontology 或其他 ID;先用只读命令解析真实上下文。
275
284
 
276
285
  ### 深入文档
277
286
 
package/bin/run.js CHANGED
@@ -10,8 +10,8 @@ const fastVersion =
10
10
  args[0] === 'version' &&
11
11
  args[1] === 'show' &&
12
12
  (args.length === 2 || (args.length === 4 && args[2] === '--output' && ['json', 'text'].includes(args[3])));
13
- const fastProfileList =
14
- args[0] === 'profile' &&
13
+ const fastSubscriptionList =
14
+ args[0] === 'subscription' &&
15
15
  args[1] === 'list' &&
16
16
  (args.length === 2 || (args.length === 4 && args[2] === '--output' && ['json', 'text'].includes(args[3])));
17
17
 
@@ -68,10 +68,10 @@ if (install) {
68
68
  );
69
69
  }
70
70
  }
71
- } else if (fastProfileList) {
72
- const { renderFastProfileList } = await import('../dist/config/fast-profile-list.js');
71
+ } else if (fastSubscriptionList) {
72
+ const { renderFastSubscriptionList } = await import('../dist/config/fast-subscription-list.js');
73
73
  const outputIndex = args.indexOf('--output');
74
- const result = await renderFastProfileList(outputIndex >= 0 ? args[outputIndex + 1] : 'json');
74
+ const result = await renderFastSubscriptionList(outputIndex >= 0 ? args[outputIndex + 1] : 'json');
75
75
  process.stdout.write(`${result.text}\n`);
76
76
  process.exitCode = result.exitCode;
77
77
  } else {
@@ -4,7 +4,7 @@ export declare function adaptAgentWorkSummary(value: unknown): AgentWorkSummary;
4
4
  export declare function adaptAgentWorkDetail(value: unknown): AgentWorkDetail;
5
5
  export declare function adaptAgentWorkList(value: unknown, options: {
6
6
  attentionRequired?: boolean;
7
- limit: number;
7
+ pageSize: number;
8
8
  }): AgentWorkListResult;
9
9
  export declare function adaptAgentWorkCollaborators(value: unknown): AgentWorkCollaboratorResult;
10
10
  export declare function adaptSafeCollection(value: unknown): {
@@ -1 +1 @@
1
- {"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/agent-work/adapters.ts"],"names":[],"mappings":"AACA,OAAO,EAgBL,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAKxB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAYxB,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAWxE;AA0CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CA8BtE;AAuDD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CA4CpE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAuB/H;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,2BAA2B,CAiFvF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CA4B/H"}
1
+ {"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/agent-work/adapters.ts"],"names":[],"mappings":"AACA,OAAO,EAgBL,KAAK,2BAA2B,EAChC,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAKxB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAYxB,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAWxE;AA0CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAmCtE;AAuDD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CA4CpE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAyBlI;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,2BAA2B,CAwFvF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CA4B/H"}
@@ -20,7 +20,7 @@ export function normalizeAgentWorkStatus(value) {
20
20
  };
21
21
  if (typeof value === 'string' && legacyAliases[value])
22
22
  return legacyAliases[value];
23
- return strictEnumValue(AGENT_WORK_STATUSES, value, 'preparing', 'Agent Work status');
23
+ return strictEnumValue(AGENT_WORK_STATUSES, value, 'preparing', 'Dev Agent Work status');
24
24
  }
25
25
  function inferPhase(status) {
26
26
  if (status === 'pending_review' || status === 'pending_acceptance')
@@ -67,16 +67,16 @@ export function adaptAgentWorkSummary(value) {
67
67
  const raw = rawAgentWorkSchema.parse(value);
68
68
  const status = normalizeAgentWorkStatus(raw.status);
69
69
  return {
70
- attentionState: strictEnumValue(AGENT_WORK_ATTENTION_STATES, raw.attentionState, inferAttention(status), 'Agent Work attention state'),
70
+ attentionState: strictEnumValue(AGENT_WORK_ATTENTION_STATES, raw.attentionState, inferAttention(status), 'Dev Agent Work attention state'),
71
71
  createdTimestamp: raw.createdTimestamp,
72
72
  id: raw.id,
73
- phase: strictEnumValue(AGENT_WORK_PHASES, raw.phase, inferPhase(status), 'Agent Work phase'),
74
- priority: strictEnumValue(AGENT_WORK_PRIORITIES, raw.priority, 'medium', 'Agent Work priority'),
73
+ phase: strictEnumValue(AGENT_WORK_PHASES, raw.phase, inferPhase(status), 'Dev Agent Work phase'),
74
+ priority: strictEnumValue(AGENT_WORK_PRIORITIES, raw.priority, 'medium', 'Dev Agent Work priority'),
75
75
  referenceImages: raw.referenceImages.map(referenceImage),
76
76
  status,
77
77
  title: raw.title,
78
78
  updatedTimestamp: raw.updatedTimestamp,
79
- workType: strictEnumValue(AGENT_WORK_TYPES, raw.workType, 'adaptive', 'Agent Work type'),
79
+ workType: strictEnumValue(AGENT_WORK_TYPES, raw.workType, 'adaptive', 'Dev Agent Work type'),
80
80
  ...(optionalString(raw.description) ? { description: optionalString(raw.description) } : {}),
81
81
  ...(optionalString(raw.repoUrl) ? { repoUrl: optionalString(raw.repoUrl) } : {}),
82
82
  ...(optionalString(raw.repoRef) ? { repoRef: optionalString(raw.repoRef) } : {}),
@@ -105,7 +105,7 @@ function adaptRun(value) {
105
105
  id,
106
106
  ...(item.status === undefined || item.status === null
107
107
  ? {}
108
- : { status: strictEnumValue(AGENT_WORK_RUN_STATUSES, item.status, 'queued', 'Agent Work run status') }),
108
+ : { status: strictEnumValue(AGENT_WORK_RUN_STATUSES, item.status, 'queued', 'Dev Agent Work run status') }),
109
109
  ...(optionalString(item.runtimeId) ? { runtimeId: optionalString(item.runtimeId) } : {}),
110
110
  ...(optionalString(item.triggerType) ? { triggerType: optionalString(item.triggerType) } : {}),
111
111
  ...(optionalString(item.resultSummary) ? { resultSummary: optionalString(item.resultSummary) } : {}),
@@ -200,17 +200,19 @@ export function adaptAgentWorkList(value, options) {
200
200
  const filtered = options.attentionRequired
201
201
  ? all.filter((item) => ['user_input_required', 'spec_approval_required', 'blocked'].includes(item.attentionState))
202
202
  : all;
203
- const items = filtered.slice(0, options.limit);
203
+ const items = filtered.slice(0, options.pageSize);
204
204
  return {
205
205
  items,
206
206
  returned: items.length,
207
- serverTotal: optionalNumber(raw.summary?.totalCount) ?? all.length,
207
+ serverTotal: optionalNumber(raw.pageInfo?.total) ?? optionalNumber(raw.summary?.totalCount) ?? all.length,
208
208
  ...(raw.pageInfo
209
209
  ? {
210
210
  pageInfo: {
211
211
  hasMore: raw.pageInfo.hasMore,
212
- limit: raw.pageInfo.limit,
213
- ...(optionalString(raw.pageInfo.nextCursor) ? { nextCursor: optionalString(raw.pageInfo.nextCursor) } : {}),
212
+ pageSize: raw.pageInfo.pageSize,
213
+ returned: raw.pageInfo.returned,
214
+ ...(optionalNumber(raw.pageInfo.total) === undefined ? {} : { total: optionalNumber(raw.pageInfo.total) }),
215
+ ...(optionalString(raw.pageInfo.nextPageToken) ? { nextPageToken: optionalString(raw.pageInfo.nextPageToken) } : {}),
214
216
  },
215
217
  }
216
218
  : {}),
@@ -223,50 +225,52 @@ export function adaptAgentWorkCollaborators(value) {
223
225
  const items = raw.items.map((item) => {
224
226
  const id = optionalString(item.id);
225
227
  if (!id)
226
- throw new Error('Agent Work collaborator is missing id');
228
+ throw new Error('Dev Agent Work collaborator is missing id');
227
229
  const operationalState = strictEnumValue(AGENT_RUNTIME_OPERATIONAL_STATES, item.operationalState, 'offline', 'Agent Runtime operational state');
228
230
  const assignments = Array.isArray(item.assignments)
229
231
  ? item.assignments.map((assignmentValue) => {
230
232
  if (!assignmentValue || typeof assignmentValue !== 'object')
231
- throw new Error('Agent Work collaborator assignment must be an object');
233
+ throw new Error('Dev Agent Work collaborator assignment must be an object');
232
234
  const assignment = assignmentValue;
233
- if (!assignment.issue || typeof assignment.issue !== 'object')
234
- throw new Error('Agent Work collaborator assignment is missing issue');
235
- const issue = assignment.issue;
236
- const issueId = optionalString(issue.id);
237
- const title = optionalString(issue.title);
238
- if (!issueId || !title)
239
- throw new Error('Agent Work collaborator assignment issue is missing id or title');
240
- const status = normalizeAgentWorkStatus(issue.status);
235
+ if (!assignment.workItem || typeof assignment.workItem !== 'object')
236
+ throw new Error('Dev Agent Work collaborator assignment is missing Work Item');
237
+ const workItem = assignment.workItem;
238
+ const workItemId = optionalString(workItem.id);
239
+ const title = optionalString(workItem.title);
240
+ if (!workItemId || !title)
241
+ throw new Error('Dev Agent Work collaborator assignment Work Item is missing id or title');
242
+ const status = normalizeAgentWorkStatus(workItem.status);
241
243
  const currentRun = adaptRun(assignment.currentRun);
242
244
  return {
243
- issue: {
244
- attentionState: strictEnumValue(AGENT_WORK_ATTENTION_STATES, issue.attentionState, inferAttention(status), 'Agent Work attention state'),
245
- id: issueId,
246
- phase: strictEnumValue(AGENT_WORK_PHASES, issue.phase, inferPhase(status), 'Agent Work phase'),
247
- priority: strictEnumValue(AGENT_WORK_PRIORITIES, issue.priority, 'medium', 'Agent Work priority'),
245
+ workItem: {
246
+ attentionState: strictEnumValue(AGENT_WORK_ATTENTION_STATES, workItem.attentionState, inferAttention(status), 'Dev Agent Work attention state'),
247
+ id: workItemId,
248
+ phase: strictEnumValue(AGENT_WORK_PHASES, workItem.phase, inferPhase(status), 'Dev Agent Work phase'),
249
+ priority: strictEnumValue(AGENT_WORK_PRIORITIES, workItem.priority, 'medium', 'Dev Agent Work priority'),
248
250
  status,
249
251
  title,
250
- ...(optionalString(issue.repoUrl) ? { repoUrl: optionalString(issue.repoUrl) } : {}),
251
- ...(optionalString(issue.repoRef) ? { repoRef: optionalString(issue.repoRef) } : {}),
252
- ...(optionalNumber(issue.updatedTimestamp) === undefined ? {} : { updatedTimestamp: optionalNumber(issue.updatedTimestamp) }),
252
+ ...(optionalString(workItem.repoUrl) ? { repoUrl: optionalString(workItem.repoUrl) } : {}),
253
+ ...(optionalString(workItem.repoRef) ? { repoRef: optionalString(workItem.repoRef) } : {}),
254
+ ...(optionalNumber(workItem.updatedTimestamp) === undefined
255
+ ? {}
256
+ : { updatedTimestamp: optionalNumber(workItem.updatedTimestamp) }),
253
257
  },
254
258
  ...(assignment.bindingStatus === undefined
255
259
  ? {}
256
260
  : {
257
- bindingStatus: strictEnumValue(AGENT_WORK_BINDING_STATUSES, assignment.bindingStatus, 'bound', 'Agent Work binding status'),
261
+ bindingStatus: strictEnumValue(AGENT_WORK_BINDING_STATUSES, assignment.bindingStatus, 'bound', 'Dev Agent Work binding status'),
258
262
  }),
259
263
  ...(assignment.leaseMode === undefined
260
264
  ? {}
261
265
  : {
262
- leaseMode: strictEnumValue(AGENT_WORK_LEASE_MODES, assignment.leaseMode, 'exclusive_existing', 'Agent Work lease mode'),
266
+ leaseMode: strictEnumValue(AGENT_WORK_LEASE_MODES, assignment.leaseMode, 'exclusive_existing', 'Dev Agent Work lease mode'),
263
267
  }),
264
268
  ...(currentRun ? { currentRun } : {}),
265
269
  };
266
270
  })
267
271
  : [];
268
272
  return {
269
- activeIssueCount: optionalNumber(item.activeIssueCount) ?? assignments.length,
273
+ activeWorkItemCount: optionalNumber(item.activeWorkItemCount) ?? assignments.length,
270
274
  assignments,
271
275
  id,
272
276
  operationalState,
@@ -309,9 +313,9 @@ export function adaptSafeCollection(value) {
309
313
  if (item[key] !== undefined && item[key] !== null)
310
314
  safe[key] = item[key];
311
315
  }
312
- if (item.issue && typeof item.issue === 'object') {
313
- const issue = item.issue;
314
- safe.issue = { id: issue.id, title: issue.title, status: issue.status, priority: issue.priority };
316
+ if (item.workItem && typeof item.workItem === 'object') {
317
+ const workItem = item.workItem;
318
+ safe.workItem = { id: workItem.id, title: workItem.title, status: workItem.status, priority: workItem.priority };
315
319
  }
316
320
  return safe;
317
321
  });