openpond 0.1.1 → 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 (225) hide show
  1. package/README.md +4 -4
  2. package/dist/cache.d.ts +7 -10
  3. package/dist/chunks/actions-command-QP3NMDK4.js +2 -0
  4. package/dist/chunks/app-layer-N7VFRVJ2.js +3 -0
  5. package/dist/chunks/app-server-runtime-OCLPUI7F.js +2 -0
  6. package/dist/chunks/apps-AMG75TI4.js +2 -0
  7. package/dist/chunks/chunk-22UARBPW.js +3 -0
  8. package/dist/chunks/chunk-3A7HZJNE.js +1 -0
  9. package/dist/chunks/chunk-3M53YXEI.js +2 -0
  10. package/dist/chunks/chunk-3NDRIQTI.js +2 -0
  11. package/dist/chunks/chunk-5BBVEWG3.js +2 -0
  12. package/dist/chunks/chunk-5O7ZVCMV.js +6 -0
  13. package/dist/chunks/chunk-6FA3GG5B.js +33 -0
  14. package/dist/chunks/chunk-6MI4KKWF.js +2 -0
  15. package/dist/chunks/chunk-BBG546O6.js +6 -0
  16. package/dist/chunks/chunk-BX4J2VDU.js +2 -0
  17. package/dist/chunks/chunk-BZMVB3GS.js +2 -0
  18. package/dist/chunks/chunk-C5LOZSVS.js +2 -0
  19. package/dist/chunks/chunk-CWQWV2T3.js +2 -0
  20. package/dist/chunks/chunk-DUA3QP6Y.js +19 -0
  21. package/dist/chunks/chunk-EAPFMACH.js +10 -0
  22. package/dist/chunks/chunk-ES2ISFJC.js +66 -0
  23. package/dist/chunks/chunk-F65NIZLM.js +2199 -0
  24. package/dist/chunks/chunk-FGJ5LFPL.js +5 -0
  25. package/dist/chunks/chunk-FTQLQJQV.js +2 -0
  26. package/dist/chunks/chunk-FY7OQ5RK.js +24 -0
  27. package/dist/chunks/chunk-FYCJSUFV.js +53 -0
  28. package/dist/chunks/chunk-GLUWATL5.js +2 -0
  29. package/dist/chunks/chunk-H7IWJN7L.js +17 -0
  30. package/dist/chunks/chunk-HZP5U2AA.js +3 -0
  31. package/dist/chunks/chunk-I5K74TOH.js +3 -0
  32. package/dist/chunks/chunk-IR3YJWPW.js +7 -0
  33. package/dist/chunks/chunk-KU7QOHFT.js +2872 -0
  34. package/dist/chunks/chunk-KV553EWX.js +16 -0
  35. package/dist/chunks/chunk-MGN6GLNZ.js +2 -0
  36. package/dist/chunks/chunk-OG5Q6NXK.js +28 -0
  37. package/dist/chunks/chunk-OGPHXXCD.js +1 -0
  38. package/dist/chunks/chunk-PI36UHRA.js +18 -0
  39. package/dist/chunks/chunk-RWSAGQTP.js +2 -0
  40. package/dist/chunks/chunk-SAE4OIPC.js +2 -0
  41. package/dist/chunks/chunk-SDO4FC4Q.js +2 -0
  42. package/dist/chunks/chunk-UKUVMXOW.js +12 -0
  43. package/dist/chunks/chunk-VCLCFK3O.js +36 -0
  44. package/dist/chunks/chunk-VYUMTRB3.js +5 -0
  45. package/dist/chunks/chunk-X37KMV27.js +1 -0
  46. package/dist/chunks/chunk-XDHAGACI.js +3 -0
  47. package/dist/chunks/chunk-XEOEKFG6.js +71 -0
  48. package/dist/chunks/chunk-ZF7TEGY5.js +5 -0
  49. package/dist/chunks/chunk-ZVOO7FKM.js +2 -0
  50. package/dist/chunks/cli-M2FG7SSI.js +2 -0
  51. package/dist/chunks/configuration-command-XBKBIZBO.js +2 -0
  52. package/dist/chunks/continual-D75WA7E7.js +7 -0
  53. package/dist/chunks/core-commands-LUZVWXQR.js +2 -0
  54. package/dist/chunks/database-X2CUV732.js +2 -0
  55. package/dist/chunks/desktop-test-KGC4JVJ7.js +3 -0
  56. package/dist/chunks/dist-NKLXFA37.js +2 -0
  57. package/dist/chunks/extension-NQ7N5LEY.js +5 -0
  58. package/dist/chunks/help-MWK66XZK.js +8 -0
  59. package/dist/chunks/module-ES6BEMUI-ZVL3F6NW.js +2 -0
  60. package/dist/chunks/module-asyncify-2EFITU5U-R7TVXNAE.js +2 -0
  61. package/dist/chunks/opchat-XJZA3QKZ.js +3 -0
  62. package/dist/chunks/organizations-UECDFEYE.js +2 -0
  63. package/dist/chunks/profile-KUMIZURM.js +3 -0
  64. package/dist/chunks/project-agent-NILMJHLV.js +2 -0
  65. package/dist/chunks/sandbox-command-QHH65OSE.js +2 -0
  66. package/dist/chunks/sandbox-template-N7I63PNU.js +10 -0
  67. package/dist/chunks/src-724HF43W.js +82 -0
  68. package/dist/chunks/src-VTKTTKQO.js +319 -0
  69. package/dist/chunks/taskset-PISBOILQ.js +2 -0
  70. package/dist/chunks/teams-bot-UV4RU53M.js +3 -0
  71. package/dist/chunks/training-2NDOWH5S.js +2 -0
  72. package/dist/chunks/workspaces-XXT4KUD3.js +2 -0
  73. package/dist/cli.js +3 -101
  74. package/dist/client.d.ts +1 -1
  75. package/dist/config.d.ts +1 -0
  76. package/dist/index.js +1 -26305
  77. package/dist/private-json-file.d.ts +1 -2
  78. package/dist/sandbox-template/manifest.js +1 -18380
  79. package/dist/web/assets/App-DxecRQUL.js +176 -0
  80. package/dist/web/assets/AppDialog-B65Eo3gp.js +1 -0
  81. package/dist/web/assets/AppTerminalPanel-B2EKQM7W.js +2 -0
  82. package/dist/web/assets/{AppsView-Ck_OzQWf.js → AppsView-BBoVe7s2.js} +1 -1
  83. package/dist/web/assets/{BrowserSidebar-CqciX8aL.js → BrowserSidebar-CSM1atSJ.js} +1 -1
  84. package/dist/web/assets/{CartesianChart-Y0lsL4vC.js → CartesianChart-CJKfXiEG.js} +1 -1
  85. package/dist/web/assets/{CollaborationTabs-BOb9PjvS.js → CollaborationTabs-BMZamWFC.js} +1 -1
  86. package/dist/web/assets/{CommandMenu-Co6JnmTu.js → CommandMenu-B3U1z2eo.js} +1 -1
  87. package/dist/web/assets/{CommunityView-BbTSeL7h.js → CommunityView-CTyRUcfy.js} +1 -1
  88. package/dist/web/assets/{ComposerCreateImproveStrip-BGzCWVFp.js → ComposerCreateImproveStrip-D7usvRtK.js} +1 -1
  89. package/dist/web/assets/GetStartedView-Ibu7oKWJ.js +1 -0
  90. package/dist/web/assets/HostedModelLearningReview-qnzIkT70.js +1 -0
  91. package/dist/web/assets/HostedModelLearningSettings--PKjpYsy.js +1 -0
  92. package/dist/web/assets/LabModelVersionDetailPage-s9uUN6fV.js +1 -0
  93. package/dist/web/assets/{LabSkillSidebar-C5oS6UmH.js → LabSkillSidebar-BKYseMiJ.js} +1 -1
  94. package/dist/web/assets/LabsRoute-C1FWCoYb.css +1 -0
  95. package/dist/web/assets/LabsRoute-DoRs0K6v.js +32 -0
  96. package/dist/web/assets/MainChatThread-DvuyMcMB.js +2 -0
  97. package/dist/web/assets/MainPane-BWwcxgHD.js +8 -0
  98. package/dist/web/assets/{MarkdownText-DqJarmTh.js → MarkdownText-D8XC5UT_.js} +1 -1
  99. package/dist/web/assets/{Messages-BaT7HOzB.js → Messages-e4A8JUjD.js} +6 -6
  100. package/dist/web/assets/{NativeSkillSidebar-DXp8snN5.js → NativeSkillSidebar-D2Joh8XB.js} +1 -1
  101. package/dist/web/assets/{NewExperienceSwitcher-CLHuGUN5.js → NewExperienceSwitcher-CzGebt2E.js} +1 -1
  102. package/dist/web/assets/{NewProjectDialog-CzpHCAaC.js → NewProjectDialog-CdMTSxUE.js} +1 -1
  103. package/dist/web/assets/{OutputsPage-DIzx-Ge6.js → OutputsPage-m7cSb8dW.js} +1 -1
  104. package/dist/web/assets/{ProjectsPage-DojwrhOy.js → ProjectsPage-C9mz8W1g.js} +1 -1
  105. package/dist/web/assets/RightChatPanelStack-B4LEqKEj.js +1 -0
  106. package/dist/web/assets/{RightSidebarHomePanel-DTzfuEX3.js → RightSidebarHomePanel-DOeUsH7h.js} +1 -1
  107. package/dist/web/assets/ScheduledWorkPage-UXZSSWgA.js +1 -0
  108. package/dist/web/assets/SettingsView-CAH0vreE.css +1 -0
  109. package/dist/web/assets/SettingsView-CQm1ai73.js +9 -0
  110. package/dist/web/assets/TeamChatView-C4haojB7.js +3 -0
  111. package/dist/web/assets/{TerminalOverlay-DnNVrCtu.js → TerminalOverlay-p2GZsuyQ.js} +3 -3
  112. package/dist/web/assets/{TrainingCreationPanel-CDwwyucO.js → TrainingCreationPanel-BYJSlO8X.js} +1 -1
  113. package/dist/web/assets/{TrainingDraftPanel-BijDnV_0.js → TrainingDraftPanel-DR5KlayH.js} +1 -1
  114. package/dist/web/assets/{UsageSettingsSection-Y5BFAu1p.js → UsageSettingsSection-BQToNXE4.js} +5 -5
  115. package/dist/web/assets/{WorkSidebarPanel-CkJlvZKm.js → WorkSidebarPanel--EeytWeg.js} +1 -1
  116. package/dist/web/assets/WorkspaceDiffPanel-BrovSYhn.js +14 -0
  117. package/dist/web/assets/{WorkspaceEnvironmentMenu-D8knAy1q.js → WorkspaceEnvironmentMenu-l-keRgvj.js} +3 -3
  118. package/dist/web/assets/{WorkspaceGitDialogs-_LHTrvh6.js → WorkspaceGitDialogs-aicWzaZu.js} +1 -1
  119. package/dist/web/assets/{WorkspaceMonacoEditor-B2B7OM_L.js → WorkspaceMonacoEditor-CO_E74jM.js} +36 -36
  120. package/dist/web/assets/{arrow-up-right-4nAzMtjW.js → arrow-up-right-rwPXNfVn.js} +1 -1
  121. package/dist/web/assets/chat-file-links-B3jDstSC.js +1 -0
  122. package/dist/web/assets/chevron-up-D089nvYQ.js +1 -0
  123. package/dist/web/assets/{clipboard-BzjUoZFo.js → clipboard-DwEExyU4.js} +1 -1
  124. package/dist/web/assets/{cloud-upload-CsrrwS-b.js → cloud-upload-D2he0-vQ.js} +1 -1
  125. package/dist/web/assets/{cssMode-CIbSSHKJ.js → cssMode-DS4k0NcI.js} +1 -1
  126. package/dist/web/assets/{folder-open-vRTuLzpS.js → folder-open-CAOLduKD.js} +1 -1
  127. package/dist/web/assets/{folder-plus-hyqwgUnx.js → folder-plus-D56MrxVT.js} +1 -1
  128. package/dist/web/assets/{git-commit-horizontal-CaxKfeYa.js → git-commit-horizontal-CeNM0oKJ.js} +1 -1
  129. package/dist/web/assets/{htmlMode-C3MGQGam.js → htmlMode-Xkni5erh.js} +1 -1
  130. package/dist/web/assets/{index-ByQIHpc9.css → index-BGMzUaup.css} +1 -1
  131. package/dist/web/assets/{index-Dvq7bpBG.js → index-KwyAyscP.js} +1 -1
  132. package/dist/web/assets/{info-aYWeE1Iw.js → info-CcrBaEE_.js} +1 -1
  133. package/dist/web/assets/{jsonMode-CpD6UkT7.js → jsonMode-C4YPbQB7.js} +1 -1
  134. package/dist/web/assets/{lspLanguageFeatures-DpcK8ZI6.js → lspLanguageFeatures-CF5oMTz6.js} +1 -1
  135. package/dist/web/assets/{minimize-2-DeYg7XqB.js → minimize-2-DzHQnInk.js} +1 -1
  136. package/dist/web/assets/{monaco.contribution-CrrdDQgP.js → monaco.contribution-0EN4mGCC.js} +2 -2
  137. package/dist/web/assets/{monaco.contribution-JWFq0HzV.js → monaco.contribution-B4qcTP0w.js} +2 -2
  138. package/dist/web/assets/{monaco.contribution-BDTM0ZJq.js → monaco.contribution-CJK_NrBm.js} +2 -2
  139. package/dist/web/assets/{monaco.contribution-C-_ekTxy.js → monaco.contribution-CkPGKNd-.js} +2 -2
  140. package/dist/web/assets/{play-BqgRTddV.js → play-p3-AMTPL.js} +1 -1
  141. package/dist/web/assets/{python-B67wope9.js → python-B0kpTxAZ.js} +1 -1
  142. package/dist/web/assets/{refresh-cw-DwMA_2On.js → refresh-cw-_jbTIzzr.js} +1 -1
  143. package/dist/web/assets/{save-B0BKh5oQ.js → save-Cy6hEotx.js} +1 -1
  144. package/dist/web/assets/{square-LY3oz82L.js → square-DKQkcrOH.js} +1 -1
  145. package/dist/web/assets/{toggleHighContrast-B2jka5B1.js → toggleHighContrast-Bnk1VVVq.js} +1 -1
  146. package/dist/web/assets/{tsMode-1MUwluYD.js → tsMode-BDrSVy7V.js} +1 -1
  147. package/dist/web/assets/{upload-bSKSkFVa.js → upload-COn0my_O.js} +1 -1
  148. package/dist/web/assets/{useLocalAgentSchedules--jnnM4Fz.js → useLocalAgentSchedules-iZNB4Oee.js} +1 -1
  149. package/dist/web/assets/{wifi-off-DA34iPmr.js → wifi-off-Cqt-ZLXY.js} +1 -1
  150. package/dist/web/assets/{workers-CczIcRcl.js → workers-hu0Ym93h.js} +1 -1
  151. package/dist/web/assets/{yaml-DwEGoHA9.js → yaml-D-JLDGL6.js} +1 -1
  152. package/dist/web/index.html +2 -2
  153. package/docs/command-reference.md +28 -2
  154. package/package.json +10 -7
  155. package/dist/chunks/actions-command-6N5XWMR6.js +0 -185
  156. package/dist/chunks/app-layer-XEYHFJHI.js +0 -214
  157. package/dist/chunks/app-server-runtime-FJM2EQPH.js +0 -21
  158. package/dist/chunks/apps-GSXUDK6V.js +0 -427
  159. package/dist/chunks/chunk-2JABRRNR.js +0 -183
  160. package/dist/chunks/chunk-47EIAYI7.js +0 -2162
  161. package/dist/chunks/chunk-4L3ZJS2T.js +0 -1207
  162. package/dist/chunks/chunk-5TKZBMQM.js +0 -731
  163. package/dist/chunks/chunk-6G6MDZLM.js +0 -14509
  164. package/dist/chunks/chunk-BVY5JYM6.js +0 -512
  165. package/dist/chunks/chunk-C5TKGE5Y.js +0 -1275
  166. package/dist/chunks/chunk-CNTM26OW.js +0 -602
  167. package/dist/chunks/chunk-D7BO5Y5J.js +0 -1531
  168. package/dist/chunks/chunk-DJL4TJYG.js +0 -70
  169. package/dist/chunks/chunk-DLQQIWN2.js +0 -648
  170. package/dist/chunks/chunk-DNXBJZAU.js +0 -630
  171. package/dist/chunks/chunk-EFET7LB7.js +0 -1331
  172. package/dist/chunks/chunk-FQS2QL5F.js +0 -14522
  173. package/dist/chunks/chunk-HFPUR4CQ.js +0 -669
  174. package/dist/chunks/chunk-J3YDKJFD.js +0 -88
  175. package/dist/chunks/chunk-J7PYGDRY.js +0 -634
  176. package/dist/chunks/chunk-JTHL5XJ2.js +0 -1838
  177. package/dist/chunks/chunk-KSRWKXRB.js +0 -12
  178. package/dist/chunks/chunk-KWDOAJJI.js +0 -238
  179. package/dist/chunks/chunk-MUMPWI4O.js +0 -92
  180. package/dist/chunks/chunk-N3TGCM7J.js +0 -1135
  181. package/dist/chunks/chunk-NTK22KJD.js +0 -10707
  182. package/dist/chunks/chunk-O6B6YCMI.js +0 -57688
  183. package/dist/chunks/chunk-R3C3MNSI.js +0 -140
  184. package/dist/chunks/chunk-SMNFI2FU.js +0 -113
  185. package/dist/chunks/chunk-UACZUFIA.js +0 -47
  186. package/dist/chunks/chunk-W5GKHH77.js +0 -168
  187. package/dist/chunks/chunk-WBAZFKC7.js +0 -1643
  188. package/dist/chunks/chunk-X7ZG4TSW.js +0 -3063
  189. package/dist/chunks/chunk-YVCYVDNP.js +0 -746
  190. package/dist/chunks/cli-6PFRZ2WV.js +0 -21
  191. package/dist/chunks/continual-FYDKLCO7.js +0 -803
  192. package/dist/chunks/core-commands-MAN3CSJQ.js +0 -48
  193. package/dist/chunks/desktop-test-OE5SST2W.js +0 -146
  194. package/dist/chunks/extension-J3CIEDP4.js +0 -10041
  195. package/dist/chunks/help-JNGJJFU5.js +0 -67
  196. package/dist/chunks/opchat-6HEQJFLL.js +0 -167
  197. package/dist/chunks/organizations-MWAPNOCK.js +0 -804
  198. package/dist/chunks/profile-P7HMONTZ.js +0 -1134
  199. package/dist/chunks/project-agent-2RAK7GAZ.js +0 -514
  200. package/dist/chunks/sandbox-command-G22CPFNK.js +0 -1659
  201. package/dist/chunks/sandbox-template-S4WRUWJ6.js +0 -1653
  202. package/dist/chunks/src-BKBZ7WLO.js +0 -3624
  203. package/dist/chunks/src-RTGN2O4H.js +0 -65745
  204. package/dist/chunks/taskset-BMI7KOWP.js +0 -66
  205. package/dist/chunks/teams-bot-5VBYEN7M.js +0 -144
  206. package/dist/chunks/training-UPVSGDTB.js +0 -17
  207. package/dist/chunks/workspaces-IJQPWX3H.js +0 -99
  208. package/dist/web/assets/App-BOkhmdHu.js +0 -173
  209. package/dist/web/assets/AppDialog-BCjKFUBn.js +0 -1
  210. package/dist/web/assets/AppTerminalPanel-DRU8GIfy.js +0 -2
  211. package/dist/web/assets/GetStartedView-jEogFjxP.js +0 -1
  212. package/dist/web/assets/LabModelVersionDetailPage-CrudId_1.js +0 -1
  213. package/dist/web/assets/LabsRoute-9v8qwEBc.js +0 -2
  214. package/dist/web/assets/LabsRoute-CGFgymTX.css +0 -1
  215. package/dist/web/assets/MainChatThread-VtMpAxlP.js +0 -2
  216. package/dist/web/assets/MainPane-BbknUzp3.js +0 -8
  217. package/dist/web/assets/RightChatPanelStack-CIE5bgmO.js +0 -1
  218. package/dist/web/assets/ScheduledWorkPage-DdbcQGSv.js +0 -1
  219. package/dist/web/assets/SettingsView-CC5GXaE1.css +0 -1
  220. package/dist/web/assets/SettingsView-QT_OLmDh.js +0 -6
  221. package/dist/web/assets/TeamChatView-C4-nG1tC.js +0 -3
  222. package/dist/web/assets/WorkspaceDiffPanel-CBgzmBk8.js +0 -14
  223. package/dist/web/assets/chat-file-links-Bned0MT7.js +0 -1
  224. package/dist/web/assets/chevron-up-DK7ejCfk.js +0 -1
  225. package/dist/web/assets/index-66-ohHD5.js +0 -1
@@ -1,514 +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-WBAZFKC7.js";
30
- import "./chunk-J3YDKJFD.js";
31
- import "./chunk-YVCYVDNP.js";
32
- import "./chunk-X7ZG4TSW.js";
33
- import {
34
- parseSandboxWorkflowModeOption,
35
- resolveSandboxClient,
36
- runCommand
37
- } from "./chunk-HFPUR4CQ.js";
38
- import "./chunk-2JABRRNR.js";
39
- import "./chunk-SMNFI2FU.js";
40
- import "./chunk-N3TGCM7J.js";
41
- import "./chunk-4L3ZJS2T.js";
42
- import "./chunk-JTHL5XJ2.js";
43
- import "./chunk-D7BO5Y5J.js";
44
- import "./chunk-KSRWKXRB.js";
45
- import "./chunk-FQS2QL5F.js";
46
- import {
47
- optionString,
48
- optionalJsonObject,
49
- parseBooleanOption,
50
- requiredTeamId
51
- } from "./chunk-MUMPWI4O.js";
52
- import "./chunk-UACZUFIA.js";
53
-
54
- // src/cli/project-agent-formatters.ts
55
- function formatProjectLine(project) {
56
- const source = project.gitRepo ? `${project.gitOwner ?? "_"}/${project.gitRepo}` : project.internalRepoPath ?? project.templateRepoUrl ?? project.normalizedSourceIdentity;
57
- return [
58
- project.id,
59
- project.status,
60
- project.sourceType,
61
- project.name,
62
- source
63
- ].join(" ");
64
- }
65
- function formatAgentLine(agent) {
66
- const entrypoint = agent.selectedEntrypoint.name ? `${agent.selectedEntrypoint.scope}:${agent.selectedEntrypoint.name}` : agent.selectedEntrypoint.scope;
67
- const agentSource = agent.runtimeSource ? [
68
- agent.runtimeSource.mode,
69
- agent.runtimeSource.publishedSnapshotName ?? agent.runtimeSource.publishedSnapshotId ?? agent.runtimeSource.sourceRef
70
- ].filter((value) => Boolean(value)).join(":") : "latest_source";
71
- return [
72
- agent.id,
73
- agent.status,
74
- agent.triggerType,
75
- agent.defaultWorkflowMode,
76
- agentSource,
77
- entrypoint,
78
- agent.name
79
- ].join(" ");
80
- }
81
-
82
- // src/cli/agent-source-workflows.ts
83
- async function runAgentSourceWorkflow(client, options, rest) {
84
- const sourceCommand = rest[1]?.trim();
85
- const agentId = rest[2]?.trim();
86
- const usage = "usage: agent source <deploy-plan|checks|manifest-snapshots|setup|publish> <agent-id> --team-id <id>";
87
- const teamId = requiredTeamId(options, usage);
88
- if (!sourceCommand || !agentId) {
89
- throw new Error(usage);
90
- }
91
- if (sourceCommand === "deploy-plan") {
92
- const deployPlan = await client.agents.sourceDeployPlan(agentId, {
93
- teamId
94
- });
95
- console.log(JSON.stringify({ deployPlan }, null, 2));
96
- return;
97
- }
98
- if (sourceCommand === "manifest-snapshots") {
99
- const manifestSnapshots = await client.agents.manifestSnapshots(agentId, {
100
- teamId,
101
- limit: parsePositiveLimit(options.limit)
102
- });
103
- console.log(JSON.stringify({ manifestSnapshots }, null, 2));
104
- return;
105
- }
106
- if (sourceCommand === "checks") {
107
- const result = await client.agents.requestSourceChecks(
108
- agentId,
109
- buildAgentSourceChecksInput(teamId, options)
110
- );
111
- console.log(JSON.stringify(result, null, 2));
112
- return;
113
- }
114
- if (sourceCommand === "setup") {
115
- const provider = typeof options.provider === "string" ? options.provider.trim() : "";
116
- const allowedActions = typeof options.allowedActions === "string" ? options.allowedActions.split(",").map((value) => value.trim()).filter(Boolean) : [];
117
- if (!provider || allowedActions.length === 0) {
118
- throw new Error(`${usage}; setup requires --provider and --allowed-actions`);
119
- }
120
- const result = await client.agents.configureSourceSetup(agentId, {
121
- teamId,
122
- integrationBindings: [{
123
- provider,
124
- mode: "connected",
125
- connectionMode: "member_connection",
126
- grantPolicy: "read_only",
127
- allowedActions,
128
- enabled: true
129
- }]
130
- });
131
- console.log(JSON.stringify(result, null, 2));
132
- return;
133
- }
134
- if (sourceCommand === "publish") {
135
- const result = await client.agents.publishSource(
136
- agentId,
137
- buildAgentSourcePublishInput(teamId, options)
138
- );
139
- console.log(JSON.stringify(result, null, 2));
140
- return;
141
- }
142
- throw new Error(usage);
143
- }
144
-
145
- // src/cli/agent-sdk-local-command.ts
146
- import path from "node:path";
147
- var LOCAL_AGENT_SDK_COMMANDS = /* @__PURE__ */ new Set([
148
- "inspect",
149
- "build",
150
- "validate",
151
- "eval",
152
- "traces"
153
- ]);
154
- function shouldDelegateLocalAgentSdkCommand(subcommand, options) {
155
- if (LOCAL_AGENT_SDK_COMMANDS.has(subcommand)) return true;
156
- return subcommand === "run" && !optionString(options, "teamId");
157
- }
158
- async function runLocalAgentSdkCommand(options, rest) {
159
- const subcommand = rest[0] || "inspect";
160
- const cwd = path.resolve(
161
- optionString(options, "cwd") || optionString(options, "path") || "."
162
- );
163
- const args = [subcommand, ...rest.slice(1), "--cwd", cwd];
164
- if (parseBooleanOption(options.json)) args.push("--json");
165
- appendForwardedOption(args, options, "input", "input");
166
- appendForwardedOption(args, options, "inputFile", "input-file");
167
- const command = resolveLocalAgentSdkCommand(cwd);
168
- const result = await runCommand(command.command, [...command.args, ...args], {
169
- cwd,
170
- inherit: true
171
- });
172
- if (result.code !== 0) process.exitCode = result.code ?? 1;
173
- }
174
- function appendForwardedOption(args, options, optionKey, cliName) {
175
- const value = optionString(options, optionKey);
176
- if (value) args.push(`--${cliName}`, value);
177
- }
178
-
179
- // src/cli/agent-command.ts
180
- async function runAgentCommand(options, rest) {
181
- const subcommand = rest[0] || "list";
182
- if (shouldDelegateLocalAgentSdkCommand(subcommand, options)) {
183
- await runLocalAgentSdkCommand(options, rest);
184
- return;
185
- }
186
- const client = await resolveSandboxClient(options);
187
- if (subcommand === "list") {
188
- const teamId = requiredTeamId(options, "usage: agent list");
189
- const agents = await client.agents.list({ teamId });
190
- if (parseBooleanOption(options.json)) {
191
- console.log(JSON.stringify({ agents }, null, 2));
192
- return;
193
- }
194
- if (agents.length === 0) {
195
- console.log("no sandbox agents found");
196
- return;
197
- }
198
- for (const agent of agents) {
199
- console.log(formatAgentLine(agent));
200
- }
201
- return;
202
- }
203
- if (subcommand === "create" || subcommand === "upsert") {
204
- const agent = await client.agents.upsert(buildAgentUpsertInput(options));
205
- console.log(JSON.stringify({ agent }, null, 2));
206
- return;
207
- }
208
- if (subcommand === "get") {
209
- const agentId = rest[1]?.trim();
210
- const teamId = requiredTeamId(options, "usage: agent get <agentId>");
211
- if (!agentId) {
212
- throw new Error("usage: agent get <agentId> --team-id <id>");
213
- }
214
- const agent = await client.agents.get(agentId, { teamId });
215
- console.log(JSON.stringify({ agent }, null, 2));
216
- return;
217
- }
218
- if (subcommand === "run") {
219
- const agentId = rest[1]?.trim();
220
- const teamId = requiredTeamId(options, "usage: agent run <agentId>");
221
- if (!agentId) {
222
- throw new Error("usage: agent run <agentId> --team-id <id>");
223
- }
224
- const idempotencyKey = optionString(options, "idempotencyKey");
225
- const conversationId = optionString(options, "conversationId");
226
- const targetProjectId = optionString(options, "targetProjectId");
227
- const triggerType = parseAgentTriggerType(options.triggerType);
228
- const workflowMode = parseSandboxWorkflowModeOption(options.workflowMode);
229
- const inputObject = optionalJsonObject(options, "input", "input");
230
- const metadata = optionalJsonObject(options, "metadata", "metadata");
231
- const agentSourcePolicy = buildAgentSourcePolicy(options);
232
- const result = await client.agents.run(agentId, {
233
- teamId,
234
- ...conversationId ? { conversationId } : {},
235
- ...idempotencyKey ? { idempotencyKey } : {},
236
- ...targetProjectId ? { targetProjectId } : {},
237
- ...targetProjectId ? { targetProject: { id: targetProjectId } } : {},
238
- ...triggerType ? { triggerType } : {},
239
- ...workflowMode ? { workflowMode } : {},
240
- ...inputObject ? { input: inputObject } : {},
241
- ...metadata ? { metadata } : {},
242
- ...agentSourcePolicy ? { runtimeSourcePolicy: agentSourcePolicy } : {}
243
- });
244
- console.log(JSON.stringify(result, null, 2));
245
- return;
246
- }
247
- if (subcommand === "bind-runtime-source" || subcommand === "bind-source") {
248
- const agentId = rest[1]?.trim();
249
- const teamId = requiredTeamId(
250
- options,
251
- "usage: agent bind-source <agentId>"
252
- );
253
- if (!agentId) {
254
- throw new Error(
255
- "usage: agent bind-source <agentId> --team-id <id> --source-mode latest_source|published_snapshot|auto"
256
- );
257
- }
258
- const agentSource = buildAgentSourceConfig(options);
259
- if (!agentSource?.mode) {
260
- throw new Error(
261
- "usage: agent bind-source <agentId> --team-id <id> --source-mode latest_source|published_snapshot|auto"
262
- );
263
- }
264
- const agent = await client.agents.update(agentId, {
265
- teamId,
266
- runtimeSource: agentSource
267
- });
268
- console.log(
269
- JSON.stringify({ agent, agentSource: agent.runtimeSource }, null, 2)
270
- );
271
- return;
272
- }
273
- if (subcommand === "run-test") {
274
- const agentId = rest[1]?.trim();
275
- const teamId = requiredTeamId(options, "usage: agent run-test <agentId>");
276
- if (!agentId) {
277
- throw new Error("usage: agent run-test <agentId> --team-id <id>");
278
- }
279
- const idempotencyKey = optionString(options, "idempotencyKey");
280
- const conversationId = optionString(options, "conversationId");
281
- const targetProjectId = optionString(options, "targetProjectId");
282
- const inputObject = optionalJsonObject(options, "input", "input");
283
- const metadata = optionalJsonObject(options, "metadata", "metadata");
284
- const workflowMode = parseSandboxWorkflowModeOption(options.workflowMode);
285
- const result = await client.agents.run(agentId, {
286
- teamId,
287
- ...conversationId ? { conversationId } : {},
288
- ...idempotencyKey ? { idempotencyKey } : {},
289
- ...targetProjectId ? { targetProjectId } : {},
290
- ...targetProjectId ? { targetProject: { id: targetProjectId } } : {},
291
- ...workflowMode ? { workflowMode } : {},
292
- ...inputObject ? { input: inputObject } : {},
293
- metadata: {
294
- ...metadata ?? {},
295
- source: "agent_run_test"
296
- },
297
- runtimeSourcePolicy: buildAgentSourcePolicy(
298
- options,
299
- "diagnostic"
300
- )
301
- });
302
- console.log(
303
- JSON.stringify(
304
- {
305
- resolvedRuntimeSource: result.run.runtimeSource,
306
- agent: result.agent,
307
- run: result.run,
308
- sandbox: result.sandbox ?? null
309
- },
310
- null,
311
- 2
312
- )
313
- );
314
- return;
315
- }
316
- if (subcommand === "source") {
317
- await runAgentSourceWorkflow(client, options, rest);
318
- return;
319
- }
320
- if (subcommand === "update") {
321
- const agentId = rest[1]?.trim();
322
- const teamId = requiredTeamId(options, "usage: agent update <agentId>");
323
- if (!agentId) {
324
- throw new Error("usage: agent update <agentId> --team-id <id>");
325
- }
326
- const agent = await client.agents.update(
327
- agentId,
328
- buildAgentUpdateInput(teamId, options)
329
- );
330
- console.log(JSON.stringify({ agent }, null, 2));
331
- return;
332
- }
333
- if (subcommand === "archive") {
334
- const agentId = rest[1]?.trim();
335
- const teamId = requiredTeamId(options, "usage: agent archive <agentId>");
336
- if (!agentId) {
337
- throw new Error("usage: agent archive <agentId> --team-id <id>");
338
- }
339
- const agent = await client.agents.archive(agentId, { teamId });
340
- console.log(JSON.stringify({ agent }, null, 2));
341
- return;
342
- }
343
- throw new Error(
344
- "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>]"
345
- );
346
- }
347
-
348
- // src/cli/project-command.ts
349
- import path2 from "node:path";
350
- async function runProjectCommand(options, rest) {
351
- const subcommand = rest[0] || "list";
352
- const client = await resolveSandboxClient(options);
353
- if (subcommand === "list") {
354
- const teamId = requiredTeamId(options, "usage: project list");
355
- const projects = await client.projects.list({ teamId });
356
- if (parseBooleanOption(options.json)) {
357
- console.log(JSON.stringify({ projects }, null, 2));
358
- return;
359
- }
360
- if (projects.length === 0) {
361
- console.log("no sandbox projects found");
362
- return;
363
- }
364
- for (const project of projects) {
365
- console.log(formatProjectLine(project));
366
- }
367
- return;
368
- }
369
- if (subcommand === "create" || subcommand === "upsert") {
370
- const project = await client.projects.upsert(
371
- buildProjectUpsertInput(options)
372
- );
373
- console.log(JSON.stringify({ project }, null, 2));
374
- return;
375
- }
376
- if (subcommand === "get") {
377
- const projectId = rest[1]?.trim();
378
- const teamId = requiredTeamId(options, "usage: project get <projectId>");
379
- if (!projectId) {
380
- throw new Error("usage: project get <projectId> --team-id <id>");
381
- }
382
- const project = await client.projects.get(projectId, { teamId });
383
- console.log(JSON.stringify({ project }, null, 2));
384
- return;
385
- }
386
- if (subcommand === "update") {
387
- const projectId = rest[1]?.trim();
388
- const teamId = requiredTeamId(options, "usage: project update <projectId>");
389
- if (!projectId) {
390
- throw new Error("usage: project update <projectId> --team-id <id>");
391
- }
392
- const project = await client.projects.update(
393
- projectId,
394
- buildProjectUpdateInput(teamId, options)
395
- );
396
- console.log(JSON.stringify({ project }, null, 2));
397
- return;
398
- }
399
- if (subcommand === "sync") {
400
- const projectId = rest[1]?.trim();
401
- const teamId = requiredTeamId(options, "usage: project sync <projectId>");
402
- if (!projectId) {
403
- throw new Error("usage: project sync <projectId> --team-id <id>");
404
- }
405
- const project = await client.projects.sync(projectId, { teamId });
406
- console.log(JSON.stringify({ project }, null, 2));
407
- return;
408
- }
409
- if (subcommand === "source-upload" || subcommand === "upload-source") {
410
- const projectId = rest[1]?.trim();
411
- const teamId = requiredTeamId(
412
- options,
413
- "usage: project source-upload <projectId>"
414
- );
415
- if (!projectId) {
416
- throw new Error(
417
- "usage: project source-upload <projectId> --team-id <id> [--path <dir>]"
418
- );
419
- }
420
- const projectPath = path2.resolve(optionString(options, "path") || ".");
421
- const branch = await resolveProjectSourceUploadBranch(projectPath, options);
422
- const commitMessage = optionString(options, "commitMessage") || optionString(options, "commit-message") || "Upload OpenPond project source";
423
- const collected = await collectProjectSourceUploadEntries(projectPath);
424
- const agentSdk = await collectAgentSdkProjectSourceUploadEntries(
425
- projectPath,
426
- collected.entries
427
- );
428
- const upload = mergeProjectSourceUploadEntries(collected, agentSdk.entries);
429
- const project = await client.projects.uploadSource(projectId, {
430
- teamId,
431
- entries: upload.entries,
432
- ...branch ? { branch } : {},
433
- commitMessage
434
- });
435
- console.log(
436
- JSON.stringify(
437
- {
438
- project,
439
- uploaded: {
440
- path: projectPath,
441
- branch,
442
- fileCount: upload.fileCount,
443
- totalBytes: upload.totalBytes,
444
- limits: upload.limits,
445
- transport: upload.transport,
446
- ...agentSdk.generatedManifestPath ? {
447
- agentSdk: {
448
- generatedManifestPath: agentSdk.generatedManifestPath,
449
- generatedEntryCount: agentSdk.entries.length,
450
- synthesizedOpenPondYaml: agentSdk.synthesizedOpenPondYaml,
451
- uploadMetadataPath: agentSdk.uploadMetadataPath,
452
- uploadMetadataHash: agentSdk.uploadMetadataHash,
453
- commands: agentSdk.uploadMetadata?.commands,
454
- dependencySetup: agentSdk.uploadMetadata?.dependencySetup,
455
- packageManager: agentSdk.uploadMetadata?.packageManager,
456
- sourceTreeMode: agentSdk.uploadMetadata?.sourceTreeMode,
457
- artifactHashes: agentSdk.uploadMetadata?.artifactHashes
458
- }
459
- } : {}
460
- }
461
- },
462
- null,
463
- 2
464
- )
465
- );
466
- return;
467
- }
468
- if (subcommand === "archive") {
469
- const projectId = rest[1]?.trim();
470
- const teamId = requiredTeamId(
471
- options,
472
- "usage: project archive <projectId>"
473
- );
474
- if (!projectId) {
475
- throw new Error("usage: project archive <projectId> --team-id <id>");
476
- }
477
- const project = await client.projects.archive(projectId, { teamId });
478
- console.log(JSON.stringify({ project }, null, 2));
479
- return;
480
- }
481
- throw new Error(
482
- "usage: project <list|create|upsert|get|update|sync|source-upload|archive> [--team-id <id>] [--name <name>]"
483
- );
484
- }
485
- export {
486
- PROJECT_SOURCE_UPLOAD_CONCURRENCY,
487
- PROJECT_SOURCE_UPLOAD_LIMITS,
488
- PROJECT_SOURCE_UPLOAD_MAX_BYTES,
489
- PROJECT_SOURCE_UPLOAD_MAX_FILES,
490
- PROJECT_SOURCE_UPLOAD_MAX_FILE_BYTES,
491
- PROJECT_SOURCE_UPLOAD_TRANSPORT,
492
- buildAgentSourceChecksInput,
493
- buildAgentSourceConfig,
494
- buildAgentSourcePolicy,
495
- buildAgentSourcePublishInput,
496
- buildAgentUpdateInput,
497
- buildAgentUpsertInput,
498
- buildProjectUpdateInput,
499
- buildProjectUpsertInput,
500
- collectProjectSourceUploadEntries,
501
- formatAgentLine,
502
- formatProjectLine,
503
- parseAgentEntrypointScope,
504
- parseAgentSourceCheckDispatch,
505
- parseAgentSourceCheckKind,
506
- parseAgentSourceMode,
507
- parseAgentTriggerType,
508
- parsePositiveLimit,
509
- parseProjectSourceType,
510
- resolveLocalAgentSdkCommand,
511
- runAgentCommand,
512
- runAgentSourceWorkflow,
513
- runProjectCommand
514
- };