openpond 0.2.0 → 0.2.1

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 (220) hide show
  1. package/dist/chunks/actions-command-QP3NMDK4.js +2 -0
  2. package/dist/chunks/app-layer-N7VFRVJ2.js +3 -0
  3. package/dist/chunks/app-server-runtime-OCLPUI7F.js +2 -0
  4. package/dist/chunks/apps-AMG75TI4.js +2 -0
  5. package/dist/chunks/chunk-22UARBPW.js +3 -0
  6. package/dist/chunks/chunk-3A7HZJNE.js +1 -0
  7. package/dist/chunks/chunk-3M53YXEI.js +2 -0
  8. package/dist/chunks/chunk-3NDRIQTI.js +2 -0
  9. package/dist/chunks/chunk-5BBVEWG3.js +2 -0
  10. package/dist/chunks/chunk-5O7ZVCMV.js +6 -0
  11. package/dist/chunks/chunk-6FA3GG5B.js +33 -0
  12. package/dist/chunks/chunk-6MI4KKWF.js +2 -0
  13. package/dist/chunks/chunk-BBG546O6.js +6 -0
  14. package/dist/chunks/chunk-BX4J2VDU.js +2 -0
  15. package/dist/chunks/chunk-BZMVB3GS.js +2 -0
  16. package/dist/chunks/chunk-C5LOZSVS.js +2 -0
  17. package/dist/chunks/chunk-CWQWV2T3.js +2 -0
  18. package/dist/chunks/chunk-DUA3QP6Y.js +19 -0
  19. package/dist/chunks/chunk-EAPFMACH.js +10 -0
  20. package/dist/chunks/chunk-ES2ISFJC.js +66 -0
  21. package/dist/chunks/chunk-F65NIZLM.js +2199 -0
  22. package/dist/chunks/chunk-FGJ5LFPL.js +5 -0
  23. package/dist/chunks/chunk-FTQLQJQV.js +2 -0
  24. package/dist/chunks/chunk-FY7OQ5RK.js +24 -0
  25. package/dist/chunks/chunk-FYCJSUFV.js +53 -0
  26. package/dist/chunks/chunk-GLUWATL5.js +2 -0
  27. package/dist/chunks/chunk-H7IWJN7L.js +17 -0
  28. package/dist/chunks/chunk-HZP5U2AA.js +3 -0
  29. package/dist/chunks/chunk-I5K74TOH.js +3 -0
  30. package/dist/chunks/chunk-IR3YJWPW.js +7 -0
  31. package/dist/chunks/chunk-KU7QOHFT.js +2872 -0
  32. package/dist/chunks/chunk-KV553EWX.js +16 -0
  33. package/dist/chunks/chunk-MGN6GLNZ.js +2 -0
  34. package/dist/chunks/chunk-OG5Q6NXK.js +28 -0
  35. package/dist/chunks/chunk-OGPHXXCD.js +1 -0
  36. package/dist/chunks/chunk-PI36UHRA.js +18 -0
  37. package/dist/chunks/chunk-RWSAGQTP.js +2 -0
  38. package/dist/chunks/chunk-SAE4OIPC.js +2 -0
  39. package/dist/chunks/chunk-SDO4FC4Q.js +2 -0
  40. package/dist/chunks/chunk-UKUVMXOW.js +12 -0
  41. package/dist/chunks/chunk-VCLCFK3O.js +36 -0
  42. package/dist/chunks/chunk-VYUMTRB3.js +5 -0
  43. package/dist/chunks/chunk-X37KMV27.js +1 -0
  44. package/dist/chunks/chunk-XDHAGACI.js +3 -0
  45. package/dist/chunks/chunk-XEOEKFG6.js +71 -0
  46. package/dist/chunks/chunk-ZF7TEGY5.js +5 -0
  47. package/dist/chunks/chunk-ZVOO7FKM.js +2 -0
  48. package/dist/chunks/cli-M2FG7SSI.js +2 -0
  49. package/dist/chunks/configuration-command-XBKBIZBO.js +2 -0
  50. package/dist/chunks/continual-D75WA7E7.js +7 -0
  51. package/dist/chunks/core-commands-LUZVWXQR.js +2 -0
  52. package/dist/chunks/database-X2CUV732.js +2 -0
  53. package/dist/chunks/desktop-test-KGC4JVJ7.js +3 -0
  54. package/dist/chunks/dist-NKLXFA37.js +2 -0
  55. package/dist/chunks/extension-NQ7N5LEY.js +5 -0
  56. package/dist/chunks/help-MWK66XZK.js +8 -0
  57. package/dist/chunks/module-ES6BEMUI-ZVL3F6NW.js +2 -0
  58. package/dist/chunks/module-asyncify-2EFITU5U-R7TVXNAE.js +2 -0
  59. package/dist/chunks/opchat-XJZA3QKZ.js +3 -0
  60. package/dist/chunks/organizations-UECDFEYE.js +2 -0
  61. package/dist/chunks/profile-KUMIZURM.js +3 -0
  62. package/dist/chunks/project-agent-NILMJHLV.js +2 -0
  63. package/dist/chunks/sandbox-command-QHH65OSE.js +2 -0
  64. package/dist/chunks/sandbox-template-N7I63PNU.js +10 -0
  65. package/dist/chunks/src-724HF43W.js +82 -0
  66. package/dist/chunks/src-VTKTTKQO.js +319 -0
  67. package/dist/chunks/taskset-PISBOILQ.js +2 -0
  68. package/dist/chunks/teams-bot-UV4RU53M.js +3 -0
  69. package/dist/chunks/training-2NDOWH5S.js +2 -0
  70. package/dist/chunks/workspaces-XXT4KUD3.js +2 -0
  71. package/dist/cli.js +3 -109
  72. package/dist/index.js +1 -31230
  73. package/dist/sandbox-template/manifest.js +1 -18380
  74. package/dist/web/assets/App-DxecRQUL.js +176 -0
  75. package/dist/web/assets/AppDialog-B65Eo3gp.js +1 -0
  76. package/dist/web/assets/AppTerminalPanel-B2EKQM7W.js +2 -0
  77. package/dist/web/assets/{AppsView-B1NUuAIf.js → AppsView-BBoVe7s2.js} +1 -1
  78. package/dist/web/assets/{BrowserSidebar-DOvYxXeP.js → BrowserSidebar-CSM1atSJ.js} +1 -1
  79. package/dist/web/assets/{CartesianChart-pOrYpzBr.js → CartesianChart-CJKfXiEG.js} +1 -1
  80. package/dist/web/assets/{CollaborationTabs-CgbR-MBJ.js → CollaborationTabs-BMZamWFC.js} +1 -1
  81. package/dist/web/assets/{CommandMenu-CrIr4qUX.js → CommandMenu-B3U1z2eo.js} +1 -1
  82. package/dist/web/assets/{CommunityView-CvAVQ_HZ.js → CommunityView-CTyRUcfy.js} +1 -1
  83. package/dist/web/assets/{ComposerCreateImproveStrip-DybcKwwd.js → ComposerCreateImproveStrip-D7usvRtK.js} +1 -1
  84. package/dist/web/assets/GetStartedView-Ibu7oKWJ.js +1 -0
  85. package/dist/web/assets/HostedModelLearningReview-qnzIkT70.js +1 -0
  86. package/dist/web/assets/HostedModelLearningSettings--PKjpYsy.js +1 -0
  87. package/dist/web/assets/LabModelVersionDetailPage-s9uUN6fV.js +1 -0
  88. package/dist/web/assets/{LabSkillSidebar-CuaYrtiu.js → LabSkillSidebar-BKYseMiJ.js} +1 -1
  89. package/dist/web/assets/LabsRoute-C1FWCoYb.css +1 -0
  90. package/dist/web/assets/LabsRoute-DoRs0K6v.js +32 -0
  91. package/dist/web/assets/MainChatThread-DvuyMcMB.js +2 -0
  92. package/dist/web/assets/MainPane-BWwcxgHD.js +8 -0
  93. package/dist/web/assets/{MarkdownText-DOlVQR8a.js → MarkdownText-D8XC5UT_.js} +1 -1
  94. package/dist/web/assets/{Messages-DMubppta.js → Messages-e4A8JUjD.js} +6 -6
  95. package/dist/web/assets/{NativeSkillSidebar-DSFwZ-od.js → NativeSkillSidebar-D2Joh8XB.js} +1 -1
  96. package/dist/web/assets/{NewExperienceSwitcher-Dj0ePIJ-.js → NewExperienceSwitcher-CzGebt2E.js} +1 -1
  97. package/dist/web/assets/{NewProjectDialog-B8NQV-Ji.js → NewProjectDialog-CdMTSxUE.js} +1 -1
  98. package/dist/web/assets/{OutputsPage-D_LDYTgV.js → OutputsPage-m7cSb8dW.js} +1 -1
  99. package/dist/web/assets/{ProjectsPage-xjDYPc_W.js → ProjectsPage-C9mz8W1g.js} +1 -1
  100. package/dist/web/assets/RightChatPanelStack-B4LEqKEj.js +1 -0
  101. package/dist/web/assets/{RightSidebarHomePanel-j0VckZUu.js → RightSidebarHomePanel-DOeUsH7h.js} +1 -1
  102. package/dist/web/assets/{ScheduledWorkPage-1aT4bBY-.js → ScheduledWorkPage-UXZSSWgA.js} +1 -1
  103. package/dist/web/assets/{SettingsView-BSpuMDpv.js → SettingsView-CQm1ai73.js} +7 -7
  104. package/dist/web/assets/TeamChatView-C4haojB7.js +3 -0
  105. package/dist/web/assets/{TerminalOverlay-CrSwUk2d.js → TerminalOverlay-p2GZsuyQ.js} +3 -3
  106. package/dist/web/assets/{TrainingCreationPanel-B4HMRwUg.js → TrainingCreationPanel-BYJSlO8X.js} +1 -1
  107. package/dist/web/assets/{TrainingDraftPanel-D4r1tN3I.js → TrainingDraftPanel-DR5KlayH.js} +1 -1
  108. package/dist/web/assets/{UsageSettingsSection-2aymqwIM.js → UsageSettingsSection-BQToNXE4.js} +5 -5
  109. package/dist/web/assets/{WorkSidebarPanel-B0X0OiR6.js → WorkSidebarPanel--EeytWeg.js} +1 -1
  110. package/dist/web/assets/WorkspaceDiffPanel-BrovSYhn.js +14 -0
  111. package/dist/web/assets/{WorkspaceEnvironmentMenu-OAfMEt7L.js → WorkspaceEnvironmentMenu-l-keRgvj.js} +3 -3
  112. package/dist/web/assets/{WorkspaceGitDialogs-YxcPH2Rq.js → WorkspaceGitDialogs-aicWzaZu.js} +1 -1
  113. package/dist/web/assets/{WorkspaceMonacoEditor-COKTiQZl.js → WorkspaceMonacoEditor-CO_E74jM.js} +36 -36
  114. package/dist/web/assets/{arrow-up-right-_TX-awvK.js → arrow-up-right-rwPXNfVn.js} +1 -1
  115. package/dist/web/assets/chat-file-links-B3jDstSC.js +1 -0
  116. package/dist/web/assets/chevron-up-D089nvYQ.js +1 -0
  117. package/dist/web/assets/{clipboard-CyRSS8Sy.js → clipboard-DwEExyU4.js} +1 -1
  118. package/dist/web/assets/{cloud-upload-uBJBUYTy.js → cloud-upload-D2he0-vQ.js} +1 -1
  119. package/dist/web/assets/{cssMode-BrXSsZYs.js → cssMode-DS4k0NcI.js} +1 -1
  120. package/dist/web/assets/{folder-open-DktdZNW7.js → folder-open-CAOLduKD.js} +1 -1
  121. package/dist/web/assets/{folder-plus-DO06i9Vo.js → folder-plus-D56MrxVT.js} +1 -1
  122. package/dist/web/assets/{git-commit-horizontal-zFSIkPs7.js → git-commit-horizontal-CeNM0oKJ.js} +1 -1
  123. package/dist/web/assets/{htmlMode-X9UMFkjt.js → htmlMode-Xkni5erh.js} +1 -1
  124. package/dist/web/assets/{index-ByQIHpc9.css → index-BGMzUaup.css} +1 -1
  125. package/dist/web/assets/{index-UOGdfLzi.js → index-KwyAyscP.js} +1 -1
  126. package/dist/web/assets/{info-BEJXUqCD.js → info-CcrBaEE_.js} +1 -1
  127. package/dist/web/assets/{jsonMode-DIsB-j2E.js → jsonMode-C4YPbQB7.js} +1 -1
  128. package/dist/web/assets/{lspLanguageFeatures-CmZ17KpA.js → lspLanguageFeatures-CF5oMTz6.js} +1 -1
  129. package/dist/web/assets/{minimize-2-DumTpFtE.js → minimize-2-DzHQnInk.js} +1 -1
  130. package/dist/web/assets/{monaco.contribution-DJ_NmcHu.js → monaco.contribution-0EN4mGCC.js} +2 -2
  131. package/dist/web/assets/{monaco.contribution-YVDfJcG4.js → monaco.contribution-B4qcTP0w.js} +2 -2
  132. package/dist/web/assets/{monaco.contribution-LZEujgny.js → monaco.contribution-CJK_NrBm.js} +2 -2
  133. package/dist/web/assets/{monaco.contribution-D6w5PJji.js → monaco.contribution-CkPGKNd-.js} +2 -2
  134. package/dist/web/assets/{play-CLFeH7CU.js → play-p3-AMTPL.js} +1 -1
  135. package/dist/web/assets/{python-Djbda_qZ.js → python-B0kpTxAZ.js} +1 -1
  136. package/dist/web/assets/{refresh-cw-B4IpQ_7Q.js → refresh-cw-_jbTIzzr.js} +1 -1
  137. package/dist/web/assets/{save-BbTHztnA.js → save-Cy6hEotx.js} +1 -1
  138. package/dist/web/assets/{square-BJrVbmz6.js → square-DKQkcrOH.js} +1 -1
  139. package/dist/web/assets/{toggleHighContrast-BopU5W9S.js → toggleHighContrast-Bnk1VVVq.js} +1 -1
  140. package/dist/web/assets/{tsMode-CH_0_YDX.js → tsMode-BDrSVy7V.js} +1 -1
  141. package/dist/web/assets/{upload-UumVeufu.js → upload-COn0my_O.js} +1 -1
  142. package/dist/web/assets/{useLocalAgentSchedules-BRa23U7O.js → useLocalAgentSchedules-iZNB4Oee.js} +1 -1
  143. package/dist/web/assets/{wifi-off-BWJWivn6.js → wifi-off-Cqt-ZLXY.js} +1 -1
  144. package/dist/web/assets/{workers-pTe8RvSI.js → workers-hu0Ym93h.js} +1 -1
  145. package/dist/web/assets/{yaml-DNLASORn.js → yaml-D-JLDGL6.js} +1 -1
  146. package/dist/web/index.html +2 -2
  147. package/package.json +4 -3
  148. package/dist/chunks/actions-command-6N5XWMR6.js +0 -185
  149. package/dist/chunks/app-layer-F3CGXB33.js +0 -216
  150. package/dist/chunks/app-server-runtime-RHO5TFUC.js +0 -23
  151. package/dist/chunks/apps-L5XCL7QY.js +0 -429
  152. package/dist/chunks/chunk-26AMV5ZI.js +0 -634
  153. package/dist/chunks/chunk-3EB7I67T.js +0 -630
  154. package/dist/chunks/chunk-3ELF4FXY.js +0 -96
  155. package/dist/chunks/chunk-3VEYNDHN.js +0 -669
  156. package/dist/chunks/chunk-4KA25HUP.js +0 -5648
  157. package/dist/chunks/chunk-4L3ZJS2T.js +0 -1207
  158. package/dist/chunks/chunk-6SMNG6YA.js +0 -1303
  159. package/dist/chunks/chunk-7RIGZB7N.js +0 -1148
  160. package/dist/chunks/chunk-A6G3PFA5.js +0 -2164
  161. package/dist/chunks/chunk-BVY5JYM6.js +0 -512
  162. package/dist/chunks/chunk-DLQQIWN2.js +0 -648
  163. package/dist/chunks/chunk-FJ2JGB2N.js +0 -1373
  164. package/dist/chunks/chunk-FQS2QL5F.js +0 -14522
  165. package/dist/chunks/chunk-G65WAOJV.js +0 -1643
  166. package/dist/chunks/chunk-JTHL5XJ2.js +0 -1838
  167. package/dist/chunks/chunk-K4TZEHAW.js +0 -602
  168. package/dist/chunks/chunk-KCRCIQPD.js +0 -66
  169. package/dist/chunks/chunk-KSRWKXRB.js +0 -12
  170. package/dist/chunks/chunk-MUMPWI4O.js +0 -92
  171. package/dist/chunks/chunk-NTK22KJD.js +0 -10707
  172. package/dist/chunks/chunk-OCBRPU2K.js +0 -629
  173. package/dist/chunks/chunk-PS37DB5F.js +0 -183
  174. package/dist/chunks/chunk-R3C3MNSI.js +0 -140
  175. package/dist/chunks/chunk-SMNFI2FU.js +0 -113
  176. package/dist/chunks/chunk-UACZUFIA.js +0 -47
  177. package/dist/chunks/chunk-UZMVNKXM.js +0 -1275
  178. package/dist/chunks/chunk-VT6BLHMB.js +0 -67198
  179. package/dist/chunks/chunk-W5GKHH77.js +0 -168
  180. package/dist/chunks/chunk-X6F4LBTQ.js +0 -832
  181. package/dist/chunks/chunk-X7ZG4TSW.js +0 -3063
  182. package/dist/chunks/chunk-XA4KBDMY.js +0 -13723
  183. package/dist/chunks/chunk-YVCYVDNP.js +0 -746
  184. package/dist/chunks/chunk-ZNQEROWP.js +0 -254
  185. package/dist/chunks/cli-D2MUUBEX.js +0 -23
  186. package/dist/chunks/configuration-command-NR6JYIUD.js +0 -187
  187. package/dist/chunks/continual-37CE4LLJ.js +0 -803
  188. package/dist/chunks/core-commands-SWGIOZLW.js +0 -50
  189. package/dist/chunks/database-DEYUZDIM.js +0 -20
  190. package/dist/chunks/desktop-test-QOS7G5NE.js +0 -148
  191. package/dist/chunks/dist-AKYCQNNF.js +0 -187
  192. package/dist/chunks/extension-HJUJBQAD.js +0 -9378
  193. package/dist/chunks/help-J6PZ23IC.js +0 -67
  194. package/dist/chunks/opchat-ABX5YBAT.js +0 -169
  195. package/dist/chunks/organizations-CPNC47DO.js +0 -806
  196. package/dist/chunks/profile-Q3HB5MIO.js +0 -1136
  197. package/dist/chunks/project-agent-YHUBX4OR.js +0 -516
  198. package/dist/chunks/sandbox-command-YFL5QTWX.js +0 -1661
  199. package/dist/chunks/sandbox-template-Z6P7NTNF.js +0 -1655
  200. package/dist/chunks/src-7XEENEBI.js +0 -3628
  201. package/dist/chunks/src-KBBIV4NT.js +0 -56125
  202. package/dist/chunks/taskset-2TRZBRRT.js +0 -66
  203. package/dist/chunks/teams-bot-WD33NLH5.js +0 -146
  204. package/dist/chunks/training-4XH37UZB.js +0 -17
  205. package/dist/chunks/workspaces-WG2MH2WE.js +0 -99
  206. package/dist/web/assets/App-C9aGkxVg.js +0 -173
  207. package/dist/web/assets/AppDialog-CK6_lg8c.js +0 -1
  208. package/dist/web/assets/AppTerminalPanel-BKqgX4sd.js +0 -2
  209. package/dist/web/assets/GetStartedView-DVInkexN.js +0 -1
  210. package/dist/web/assets/LabModelVersionDetailPage-NaaPElmM.js +0 -1
  211. package/dist/web/assets/LabsRoute-BRR6x3SX.js +0 -2
  212. package/dist/web/assets/LabsRoute-CGFgymTX.css +0 -1
  213. package/dist/web/assets/MainChatThread-BfkjCZB9.js +0 -2
  214. package/dist/web/assets/MainPane-Gw-YK38n.js +0 -8
  215. package/dist/web/assets/RightChatPanelStack-BktRQ9wg.js +0 -1
  216. package/dist/web/assets/TeamChatView-BPWJbDf1.js +0 -3
  217. package/dist/web/assets/WorkspaceDiffPanel-Pg7GL0br.js +0 -14
  218. package/dist/web/assets/chat-file-links-CWLsRYvW.js +0 -1
  219. package/dist/web/assets/chevron-up--mNnEqha.js +0 -1
  220. package/dist/web/assets/index-BEPmTPIA.js +0 -1
@@ -1,516 +0,0 @@
1
- import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import {
3
- PROJECT_SOURCE_UPLOAD_CONCURRENCY,
4
- PROJECT_SOURCE_UPLOAD_LIMITS,
5
- PROJECT_SOURCE_UPLOAD_MAX_BYTES,
6
- PROJECT_SOURCE_UPLOAD_MAX_FILES,
7
- PROJECT_SOURCE_UPLOAD_MAX_FILE_BYTES,
8
- PROJECT_SOURCE_UPLOAD_TRANSPORT,
9
- buildAgentSourceChecksInput,
10
- buildAgentSourceConfig,
11
- buildAgentSourcePolicy,
12
- buildAgentSourcePublishInput,
13
- buildAgentUpdateInput,
14
- buildAgentUpsertInput,
15
- buildProjectUpdateInput,
16
- buildProjectUpsertInput,
17
- collectAgentSdkProjectSourceUploadEntries,
18
- collectProjectSourceUploadEntries,
19
- mergeProjectSourceUploadEntries,
20
- parseAgentEntrypointScope,
21
- parseAgentSourceCheckDispatch,
22
- parseAgentSourceCheckKind,
23
- parseAgentSourceMode,
24
- parseAgentTriggerType,
25
- parsePositiveLimit,
26
- parseProjectSourceType,
27
- resolveLocalAgentSdkCommand,
28
- resolveProjectSourceUploadBranch
29
- } from "./chunk-G65WAOJV.js";
30
- import "./chunk-3ELF4FXY.js";
31
- import "./chunk-YVCYVDNP.js";
32
- import "./chunk-X7ZG4TSW.js";
33
- import {
34
- parseSandboxWorkflowModeOption,
35
- resolveSandboxClient,
36
- runCommand
37
- } from "./chunk-3VEYNDHN.js";
38
- import "./chunk-FJ2JGB2N.js";
39
- import "./chunk-SMNFI2FU.js";
40
- import "./chunk-KSRWKXRB.js";
41
- import "./chunk-PS37DB5F.js";
42
- import "./chunk-4KA25HUP.js";
43
- import "./chunk-ZNQEROWP.js";
44
- import "./chunk-7RIGZB7N.js";
45
- import "./chunk-4L3ZJS2T.js";
46
- import "./chunk-JTHL5XJ2.js";
47
- import "./chunk-FQS2QL5F.js";
48
- import {
49
- optionString,
50
- optionalJsonObject,
51
- parseBooleanOption,
52
- requiredTeamId
53
- } from "./chunk-MUMPWI4O.js";
54
- import "./chunk-UACZUFIA.js";
55
-
56
- // src/cli/project-agent-formatters.ts
57
- function formatProjectLine(project) {
58
- const source = project.gitRepo ? `${project.gitOwner ?? "_"}/${project.gitRepo}` : project.internalRepoPath ?? project.templateRepoUrl ?? project.normalizedSourceIdentity;
59
- return [
60
- project.id,
61
- project.status,
62
- project.sourceType,
63
- project.name,
64
- source
65
- ].join(" ");
66
- }
67
- function formatAgentLine(agent) {
68
- const entrypoint = agent.selectedEntrypoint.name ? `${agent.selectedEntrypoint.scope}:${agent.selectedEntrypoint.name}` : agent.selectedEntrypoint.scope;
69
- const agentSource = agent.runtimeSource ? [
70
- agent.runtimeSource.mode,
71
- agent.runtimeSource.publishedSnapshotName ?? agent.runtimeSource.publishedSnapshotId ?? agent.runtimeSource.sourceRef
72
- ].filter((value) => Boolean(value)).join(":") : "latest_source";
73
- return [
74
- agent.id,
75
- agent.status,
76
- agent.triggerType,
77
- agent.defaultWorkflowMode,
78
- agentSource,
79
- entrypoint,
80
- agent.name
81
- ].join(" ");
82
- }
83
-
84
- // src/cli/agent-source-workflows.ts
85
- async function runAgentSourceWorkflow(client, options, rest) {
86
- const sourceCommand = rest[1]?.trim();
87
- const agentId = rest[2]?.trim();
88
- const usage = "usage: agent source <deploy-plan|checks|manifest-snapshots|setup|publish> <agent-id> --team-id <id>";
89
- const teamId = requiredTeamId(options, usage);
90
- if (!sourceCommand || !agentId) {
91
- throw new Error(usage);
92
- }
93
- if (sourceCommand === "deploy-plan") {
94
- const deployPlan = await client.agents.sourceDeployPlan(agentId, {
95
- teamId
96
- });
97
- console.log(JSON.stringify({ deployPlan }, null, 2));
98
- return;
99
- }
100
- if (sourceCommand === "manifest-snapshots") {
101
- const manifestSnapshots = await client.agents.manifestSnapshots(agentId, {
102
- teamId,
103
- limit: parsePositiveLimit(options.limit)
104
- });
105
- console.log(JSON.stringify({ manifestSnapshots }, null, 2));
106
- return;
107
- }
108
- if (sourceCommand === "checks") {
109
- const result = await client.agents.requestSourceChecks(
110
- agentId,
111
- buildAgentSourceChecksInput(teamId, options)
112
- );
113
- console.log(JSON.stringify(result, null, 2));
114
- return;
115
- }
116
- if (sourceCommand === "setup") {
117
- const provider = typeof options.provider === "string" ? options.provider.trim() : "";
118
- const allowedActions = typeof options.allowedActions === "string" ? options.allowedActions.split(",").map((value) => value.trim()).filter(Boolean) : [];
119
- if (!provider || allowedActions.length === 0) {
120
- throw new Error(`${usage}; setup requires --provider and --allowed-actions`);
121
- }
122
- const result = await client.agents.configureSourceSetup(agentId, {
123
- teamId,
124
- integrationBindings: [{
125
- provider,
126
- mode: "connected",
127
- connectionMode: "member_connection",
128
- grantPolicy: "read_only",
129
- allowedActions,
130
- enabled: true
131
- }]
132
- });
133
- console.log(JSON.stringify(result, null, 2));
134
- return;
135
- }
136
- if (sourceCommand === "publish") {
137
- const result = await client.agents.publishSource(
138
- agentId,
139
- buildAgentSourcePublishInput(teamId, options)
140
- );
141
- console.log(JSON.stringify(result, null, 2));
142
- return;
143
- }
144
- throw new Error(usage);
145
- }
146
-
147
- // src/cli/agent-sdk-local-command.ts
148
- import path from "node:path";
149
- var LOCAL_AGENT_SDK_COMMANDS = /* @__PURE__ */ new Set([
150
- "inspect",
151
- "build",
152
- "validate",
153
- "eval",
154
- "traces"
155
- ]);
156
- function shouldDelegateLocalAgentSdkCommand(subcommand, options) {
157
- if (LOCAL_AGENT_SDK_COMMANDS.has(subcommand)) return true;
158
- return subcommand === "run" && !optionString(options, "teamId");
159
- }
160
- async function runLocalAgentSdkCommand(options, rest) {
161
- const subcommand = rest[0] || "inspect";
162
- const cwd = path.resolve(
163
- optionString(options, "cwd") || optionString(options, "path") || "."
164
- );
165
- const args = [subcommand, ...rest.slice(1), "--cwd", cwd];
166
- if (parseBooleanOption(options.json)) args.push("--json");
167
- appendForwardedOption(args, options, "input", "input");
168
- appendForwardedOption(args, options, "inputFile", "input-file");
169
- const command = resolveLocalAgentSdkCommand(cwd);
170
- const result = await runCommand(command.command, [...command.args, ...args], {
171
- cwd,
172
- inherit: true
173
- });
174
- if (result.code !== 0) process.exitCode = result.code ?? 1;
175
- }
176
- function appendForwardedOption(args, options, optionKey, cliName) {
177
- const value = optionString(options, optionKey);
178
- if (value) args.push(`--${cliName}`, value);
179
- }
180
-
181
- // src/cli/agent-command.ts
182
- async function runAgentCommand(options, rest) {
183
- const subcommand = rest[0] || "list";
184
- if (shouldDelegateLocalAgentSdkCommand(subcommand, options)) {
185
- await runLocalAgentSdkCommand(options, rest);
186
- return;
187
- }
188
- const client = await resolveSandboxClient(options);
189
- if (subcommand === "list") {
190
- const teamId = requiredTeamId(options, "usage: agent list");
191
- const agents = await client.agents.list({ teamId });
192
- if (parseBooleanOption(options.json)) {
193
- console.log(JSON.stringify({ agents }, null, 2));
194
- return;
195
- }
196
- if (agents.length === 0) {
197
- console.log("no sandbox agents found");
198
- return;
199
- }
200
- for (const agent of agents) {
201
- console.log(formatAgentLine(agent));
202
- }
203
- return;
204
- }
205
- if (subcommand === "create" || subcommand === "upsert") {
206
- const agent = await client.agents.upsert(buildAgentUpsertInput(options));
207
- console.log(JSON.stringify({ agent }, null, 2));
208
- return;
209
- }
210
- if (subcommand === "get") {
211
- const agentId = rest[1]?.trim();
212
- const teamId = requiredTeamId(options, "usage: agent get <agentId>");
213
- if (!agentId) {
214
- throw new Error("usage: agent get <agentId> --team-id <id>");
215
- }
216
- const agent = await client.agents.get(agentId, { teamId });
217
- console.log(JSON.stringify({ agent }, null, 2));
218
- return;
219
- }
220
- if (subcommand === "run") {
221
- const agentId = rest[1]?.trim();
222
- const teamId = requiredTeamId(options, "usage: agent run <agentId>");
223
- if (!agentId) {
224
- throw new Error("usage: agent run <agentId> --team-id <id>");
225
- }
226
- const idempotencyKey = optionString(options, "idempotencyKey");
227
- const conversationId = optionString(options, "conversationId");
228
- const targetProjectId = optionString(options, "targetProjectId");
229
- const triggerType = parseAgentTriggerType(options.triggerType);
230
- const workflowMode = parseSandboxWorkflowModeOption(options.workflowMode);
231
- const inputObject = optionalJsonObject(options, "input", "input");
232
- const metadata = optionalJsonObject(options, "metadata", "metadata");
233
- const agentSourcePolicy = buildAgentSourcePolicy(options);
234
- const result = await client.agents.run(agentId, {
235
- teamId,
236
- ...conversationId ? { conversationId } : {},
237
- ...idempotencyKey ? { idempotencyKey } : {},
238
- ...targetProjectId ? { targetProjectId } : {},
239
- ...targetProjectId ? { targetProject: { id: targetProjectId } } : {},
240
- ...triggerType ? { triggerType } : {},
241
- ...workflowMode ? { workflowMode } : {},
242
- ...inputObject ? { input: inputObject } : {},
243
- ...metadata ? { metadata } : {},
244
- ...agentSourcePolicy ? { runtimeSourcePolicy: agentSourcePolicy } : {}
245
- });
246
- console.log(JSON.stringify(result, null, 2));
247
- return;
248
- }
249
- if (subcommand === "bind-runtime-source" || subcommand === "bind-source") {
250
- const agentId = rest[1]?.trim();
251
- const teamId = requiredTeamId(
252
- options,
253
- "usage: agent bind-source <agentId>"
254
- );
255
- if (!agentId) {
256
- throw new Error(
257
- "usage: agent bind-source <agentId> --team-id <id> --source-mode latest_source|published_snapshot|auto"
258
- );
259
- }
260
- const agentSource = buildAgentSourceConfig(options);
261
- if (!agentSource?.mode) {
262
- throw new Error(
263
- "usage: agent bind-source <agentId> --team-id <id> --source-mode latest_source|published_snapshot|auto"
264
- );
265
- }
266
- const agent = await client.agents.update(agentId, {
267
- teamId,
268
- runtimeSource: agentSource
269
- });
270
- console.log(
271
- JSON.stringify({ agent, agentSource: agent.runtimeSource }, null, 2)
272
- );
273
- return;
274
- }
275
- if (subcommand === "run-test") {
276
- const agentId = rest[1]?.trim();
277
- const teamId = requiredTeamId(options, "usage: agent run-test <agentId>");
278
- if (!agentId) {
279
- throw new Error("usage: agent run-test <agentId> --team-id <id>");
280
- }
281
- const idempotencyKey = optionString(options, "idempotencyKey");
282
- const conversationId = optionString(options, "conversationId");
283
- const targetProjectId = optionString(options, "targetProjectId");
284
- const inputObject = optionalJsonObject(options, "input", "input");
285
- const metadata = optionalJsonObject(options, "metadata", "metadata");
286
- const workflowMode = parseSandboxWorkflowModeOption(options.workflowMode);
287
- const result = await client.agents.run(agentId, {
288
- teamId,
289
- ...conversationId ? { conversationId } : {},
290
- ...idempotencyKey ? { idempotencyKey } : {},
291
- ...targetProjectId ? { targetProjectId } : {},
292
- ...targetProjectId ? { targetProject: { id: targetProjectId } } : {},
293
- ...workflowMode ? { workflowMode } : {},
294
- ...inputObject ? { input: inputObject } : {},
295
- metadata: {
296
- ...metadata ?? {},
297
- source: "agent_run_test"
298
- },
299
- runtimeSourcePolicy: buildAgentSourcePolicy(
300
- options,
301
- "diagnostic"
302
- )
303
- });
304
- console.log(
305
- JSON.stringify(
306
- {
307
- resolvedRuntimeSource: result.run.runtimeSource,
308
- agent: result.agent,
309
- run: result.run,
310
- sandbox: result.sandbox ?? null
311
- },
312
- null,
313
- 2
314
- )
315
- );
316
- return;
317
- }
318
- if (subcommand === "source") {
319
- await runAgentSourceWorkflow(client, options, rest);
320
- return;
321
- }
322
- if (subcommand === "update") {
323
- const agentId = rest[1]?.trim();
324
- const teamId = requiredTeamId(options, "usage: agent update <agentId>");
325
- if (!agentId) {
326
- throw new Error("usage: agent update <agentId> --team-id <id>");
327
- }
328
- const agent = await client.agents.update(
329
- agentId,
330
- buildAgentUpdateInput(teamId, options)
331
- );
332
- console.log(JSON.stringify({ agent }, null, 2));
333
- return;
334
- }
335
- if (subcommand === "archive") {
336
- const agentId = rest[1]?.trim();
337
- const teamId = requiredTeamId(options, "usage: agent archive <agentId>");
338
- if (!agentId) {
339
- throw new Error("usage: agent archive <agentId> --team-id <id>");
340
- }
341
- const agent = await client.agents.archive(agentId, { teamId });
342
- console.log(JSON.stringify({ agent }, null, 2));
343
- return;
344
- }
345
- throw new Error(
346
- "usage: agent <inspect|build|validate|eval|traces|list|create|upsert|get|update|run|run-test|bind-source|source|edit|archive> [--team-id <id>] [--project-id <id>] [--name <name>]"
347
- );
348
- }
349
-
350
- // src/cli/project-command.ts
351
- import path2 from "node:path";
352
- async function runProjectCommand(options, rest) {
353
- const subcommand = rest[0] || "list";
354
- const client = await resolveSandboxClient(options);
355
- if (subcommand === "list") {
356
- const teamId = requiredTeamId(options, "usage: project list");
357
- const projects = await client.projects.list({ teamId });
358
- if (parseBooleanOption(options.json)) {
359
- console.log(JSON.stringify({ projects }, null, 2));
360
- return;
361
- }
362
- if (projects.length === 0) {
363
- console.log("no sandbox projects found");
364
- return;
365
- }
366
- for (const project of projects) {
367
- console.log(formatProjectLine(project));
368
- }
369
- return;
370
- }
371
- if (subcommand === "create" || subcommand === "upsert") {
372
- const project = await client.projects.upsert(
373
- buildProjectUpsertInput(options)
374
- );
375
- console.log(JSON.stringify({ project }, null, 2));
376
- return;
377
- }
378
- if (subcommand === "get") {
379
- const projectId = rest[1]?.trim();
380
- const teamId = requiredTeamId(options, "usage: project get <projectId>");
381
- if (!projectId) {
382
- throw new Error("usage: project get <projectId> --team-id <id>");
383
- }
384
- const project = await client.projects.get(projectId, { teamId });
385
- console.log(JSON.stringify({ project }, null, 2));
386
- return;
387
- }
388
- if (subcommand === "update") {
389
- const projectId = rest[1]?.trim();
390
- const teamId = requiredTeamId(options, "usage: project update <projectId>");
391
- if (!projectId) {
392
- throw new Error("usage: project update <projectId> --team-id <id>");
393
- }
394
- const project = await client.projects.update(
395
- projectId,
396
- buildProjectUpdateInput(teamId, options)
397
- );
398
- console.log(JSON.stringify({ project }, null, 2));
399
- return;
400
- }
401
- if (subcommand === "sync") {
402
- const projectId = rest[1]?.trim();
403
- const teamId = requiredTeamId(options, "usage: project sync <projectId>");
404
- if (!projectId) {
405
- throw new Error("usage: project sync <projectId> --team-id <id>");
406
- }
407
- const project = await client.projects.sync(projectId, { teamId });
408
- console.log(JSON.stringify({ project }, null, 2));
409
- return;
410
- }
411
- if (subcommand === "source-upload" || subcommand === "upload-source") {
412
- const projectId = rest[1]?.trim();
413
- const teamId = requiredTeamId(
414
- options,
415
- "usage: project source-upload <projectId>"
416
- );
417
- if (!projectId) {
418
- throw new Error(
419
- "usage: project source-upload <projectId> --team-id <id> [--path <dir>]"
420
- );
421
- }
422
- const projectPath = path2.resolve(optionString(options, "path") || ".");
423
- const branch = await resolveProjectSourceUploadBranch(projectPath, options);
424
- const commitMessage = optionString(options, "commitMessage") || optionString(options, "commit-message") || "Upload OpenPond project source";
425
- const collected = await collectProjectSourceUploadEntries(projectPath);
426
- const agentSdk = await collectAgentSdkProjectSourceUploadEntries(
427
- projectPath,
428
- collected.entries
429
- );
430
- const upload = mergeProjectSourceUploadEntries(collected, agentSdk.entries);
431
- const project = await client.projects.uploadSource(projectId, {
432
- teamId,
433
- entries: upload.entries,
434
- ...branch ? { branch } : {},
435
- commitMessage
436
- });
437
- console.log(
438
- JSON.stringify(
439
- {
440
- project,
441
- uploaded: {
442
- path: projectPath,
443
- branch,
444
- fileCount: upload.fileCount,
445
- totalBytes: upload.totalBytes,
446
- limits: upload.limits,
447
- transport: upload.transport,
448
- ...agentSdk.generatedManifestPath ? {
449
- agentSdk: {
450
- generatedManifestPath: agentSdk.generatedManifestPath,
451
- generatedEntryCount: agentSdk.entries.length,
452
- synthesizedOpenPondYaml: agentSdk.synthesizedOpenPondYaml,
453
- uploadMetadataPath: agentSdk.uploadMetadataPath,
454
- uploadMetadataHash: agentSdk.uploadMetadataHash,
455
- commands: agentSdk.uploadMetadata?.commands,
456
- dependencySetup: agentSdk.uploadMetadata?.dependencySetup,
457
- packageManager: agentSdk.uploadMetadata?.packageManager,
458
- sourceTreeMode: agentSdk.uploadMetadata?.sourceTreeMode,
459
- artifactHashes: agentSdk.uploadMetadata?.artifactHashes
460
- }
461
- } : {}
462
- }
463
- },
464
- null,
465
- 2
466
- )
467
- );
468
- return;
469
- }
470
- if (subcommand === "archive") {
471
- const projectId = rest[1]?.trim();
472
- const teamId = requiredTeamId(
473
- options,
474
- "usage: project archive <projectId>"
475
- );
476
- if (!projectId) {
477
- throw new Error("usage: project archive <projectId> --team-id <id>");
478
- }
479
- const project = await client.projects.archive(projectId, { teamId });
480
- console.log(JSON.stringify({ project }, null, 2));
481
- return;
482
- }
483
- throw new Error(
484
- "usage: project <list|create|upsert|get|update|sync|source-upload|archive> [--team-id <id>] [--name <name>]"
485
- );
486
- }
487
- export {
488
- PROJECT_SOURCE_UPLOAD_CONCURRENCY,
489
- PROJECT_SOURCE_UPLOAD_LIMITS,
490
- PROJECT_SOURCE_UPLOAD_MAX_BYTES,
491
- PROJECT_SOURCE_UPLOAD_MAX_FILES,
492
- PROJECT_SOURCE_UPLOAD_MAX_FILE_BYTES,
493
- PROJECT_SOURCE_UPLOAD_TRANSPORT,
494
- buildAgentSourceChecksInput,
495
- buildAgentSourceConfig,
496
- buildAgentSourcePolicy,
497
- buildAgentSourcePublishInput,
498
- buildAgentUpdateInput,
499
- buildAgentUpsertInput,
500
- buildProjectUpdateInput,
501
- buildProjectUpsertInput,
502
- collectProjectSourceUploadEntries,
503
- formatAgentLine,
504
- formatProjectLine,
505
- parseAgentEntrypointScope,
506
- parseAgentSourceCheckDispatch,
507
- parseAgentSourceCheckKind,
508
- parseAgentSourceMode,
509
- parseAgentTriggerType,
510
- parsePositiveLimit,
511
- parseProjectSourceType,
512
- resolveLocalAgentSdkCommand,
513
- runAgentCommand,
514
- runAgentSourceWorkflow,
515
- runProjectCommand
516
- };