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,1135 +0,0 @@
1
- import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import {
3
- parseBooleanOption
4
- } from "./chunk-MUMPWI4O.js";
5
-
6
- // src/cli/common/version.ts
7
- import { readFileSync } from "node:fs";
8
- import path from "node:path";
9
- function getInstalledCliVersion() {
10
- const candidatePaths = [
11
- "../../../package.json",
12
- "../../package.json",
13
- "../package.json",
14
- "./package.json",
15
- "../../../../package.json"
16
- ];
17
- for (const candidatePath of candidatePaths) {
18
- try {
19
- const packageJsonPath = new URL(candidatePath, import.meta.url);
20
- const raw = readFileSync(packageJsonPath, "utf-8");
21
- const parsed = JSON.parse(raw);
22
- if (typeof parsed.version === "string") {
23
- return parsed.version;
24
- }
25
- } catch {
26
- }
27
- }
28
- try {
29
- const raw = readFileSync(path.join(path.dirname(process.execPath), "package.json"), "utf-8");
30
- const parsed = JSON.parse(raw);
31
- if (typeof parsed.version === "string") {
32
- return parsed.version;
33
- }
34
- } catch {
35
- }
36
- return "unknown";
37
- }
38
- function parseSemver(version) {
39
- const match = /^v?(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(version.trim());
40
- if (!match) return null;
41
- const major = Number.parseInt(match[1], 10);
42
- const minor = Number.parseInt(match[2], 10);
43
- const patch = Number.parseInt(match[3], 10);
44
- if (!Number.isFinite(major) || !Number.isFinite(minor) || !Number.isFinite(patch)) {
45
- return null;
46
- }
47
- return [major, minor, patch];
48
- }
49
- function compareSemver(left, right) {
50
- const l = parseSemver(left);
51
- const r = parseSemver(right);
52
- if (!l || !r) return null;
53
- for (let i = 0; i < 3; i += 1) {
54
- if (l[i] < r[i]) return -1;
55
- if (l[i] > r[i]) return 1;
56
- }
57
- return 0;
58
- }
59
- async function fetchLatestNpmVersion(packageName) {
60
- const controller = new AbortController();
61
- const timer = setTimeout(() => controller.abort(), 7e3);
62
- try {
63
- const response = await fetch(
64
- `https://registry.npmjs.org/${encodeURIComponent(packageName)}/latest`,
65
- { signal: controller.signal }
66
- );
67
- if (!response.ok) {
68
- const text = await response.text().catch(() => "");
69
- throw new Error(
70
- `npm registry request failed: ${response.status} ${text}`.trim()
71
- );
72
- }
73
- const payload = await response.json().catch(() => ({}));
74
- if (typeof payload.version !== "string" || payload.version.trim().length === 0) {
75
- throw new Error("npm registry payload missing version");
76
- }
77
- return payload.version.trim();
78
- } finally {
79
- clearTimeout(timer);
80
- }
81
- }
82
-
83
- // src/cli/command-option-schemas.ts
84
- var boolean = "boolean";
85
- var integer = "integer";
86
- var json = "json";
87
- var number = "number";
88
- var string = "string";
89
- var CHAT_OPTION_SCHEMA = {
90
- agent: string,
91
- approvalPolicy: string,
92
- cwd: string,
93
- json: boolean,
94
- maxOutputBytes: integer,
95
- message: string,
96
- messageFile: string,
97
- model: string,
98
- noServerStart: boolean,
99
- nonInteractive: boolean,
100
- project: string,
101
- provider: string,
102
- resume: string,
103
- sandbox: string,
104
- server: string,
105
- stdin: boolean,
106
- timeoutSec: integer,
107
- yes: boolean
108
- };
109
- var SANDBOX_OPTION_SCHEMA = {
110
- access: string,
111
- agentId: string,
112
- all: boolean,
113
- artifactPaths: string,
114
- async: boolean,
115
- authHeader: string,
116
- authHeaderValue: string,
117
- authToken: string,
118
- autoStart: boolean,
119
- baseRef: string,
120
- branch: string,
121
- budget: number,
122
- budgetUsd: number,
123
- cleanup: boolean,
124
- cols: integer,
125
- command: string,
126
- content: string,
127
- contentBase64: string,
128
- contents: string,
129
- contentsBase64: string,
130
- cpu: number,
131
- create: boolean,
132
- description: string,
133
- diskGb: number,
134
- dockerBuildArgs: json,
135
- dockerRegistrySecretRefs: string,
136
- dockerfile: string,
137
- dockerfileContext: string,
138
- dockerfileTarget: string,
139
- domain: string,
140
- env: string,
141
- environment: string,
142
- envLiteral: string,
143
- envName: string,
144
- envRef: string,
145
- expectedMppMode: string,
146
- expectedVersion: integer,
147
- failOnUnpreservedChanges: boolean,
148
- ffOnly: boolean,
149
- forceWithLease: boolean,
150
- fork: boolean,
151
- fromPath: string,
152
- idempotencyKey: string,
153
- idleTimeoutSeconds: integer,
154
- image: string,
155
- imageDigest: string,
156
- input: string,
157
- inputBase64: string,
158
- integrationCapabilities: string,
159
- integrationConnection: string,
160
- integrationScopes: string,
161
- intervalMs: integer,
162
- json: boolean,
163
- keep: boolean,
164
- label: string,
165
- leaseId: string,
166
- lifecycleHint: json,
167
- manifestPath: string,
168
- maxDurationSeconds: integer,
169
- maxEntries: number,
170
- maxResults: number,
171
- memoryGb: number,
172
- message: string,
173
- name: string,
174
- noPreview: boolean,
175
- overwrite: boolean,
176
- params: json,
177
- path: string,
178
- paths: string,
179
- payload: json,
180
- port: integer,
181
- preview: boolean,
182
- projectId: string,
183
- publish: boolean,
184
- q: string,
185
- query: string,
186
- rebase: boolean,
187
- recursive: boolean,
188
- registrySecretRef: string,
189
- remote: string,
190
- replayState: string,
191
- repo: string,
192
- respondAsync: boolean,
193
- rows: integer,
194
- runtimeAgentId: string,
195
- runtimeBaseBranch: string,
196
- runtimeBaseSha: string,
197
- runtimeId: string,
198
- runtimeProfileId: string,
199
- runtimeProjectId: string,
200
- runtimePromotionPolicy: string,
201
- runtimeWorkspaceRoot: string,
202
- sandboxId: string,
203
- scope: string,
204
- since: integer,
205
- snapshot: boolean,
206
- snapshotId: string,
207
- sourceProjectId: string,
208
- sourceRepoUrl: string,
209
- sourceSandboxId: string,
210
- startPoint: string,
211
- status: string,
212
- stdin: boolean,
213
- summary: boolean,
214
- tag: string,
215
- tags: string,
216
- targetId: string,
217
- targetType: string,
218
- teamId: string,
219
- templateName: string,
220
- templateVersion: string,
221
- templateVisibility: string,
222
- timeoutSeconds: integer,
223
- toPath: string,
224
- type: string,
225
- useCase: string,
226
- validationCommand: string,
227
- value: string,
228
- version: string,
229
- volumeDeleteOnSandboxDelete: boolean,
230
- volumeMountPath: string,
231
- volumeName: string,
232
- volumeStorageGb: number,
233
- workflowMode: string
234
- };
235
- var SANDBOX_TEMPLATE_OPTION_SCHEMA = {
236
- action: string,
237
- agentId: string,
238
- budget: number,
239
- budgetUsd: number,
240
- build: string,
241
- branch: string,
242
- commit: boolean,
243
- commitMessage: string,
244
- description: string,
245
- dir: string,
246
- disableSchedule: string,
247
- disableSchedules: string,
248
- enableSchedule: string,
249
- enableSchedules: string,
250
- entrypoint: string,
251
- env: json,
252
- envRef: string,
253
- file: string,
254
- force: boolean,
255
- idleTimeoutSeconds: integer,
256
- inherit: boolean,
257
- input: json,
258
- inputFile: string,
259
- inputFiles: string,
260
- inputJson: json,
261
- inputs: json,
262
- json: boolean,
263
- keepTokenRemote: boolean,
264
- manifest: string,
265
- maxDurationSeconds: integer,
266
- name: string,
267
- noPush: boolean,
268
- noWrite: boolean,
269
- out: string,
270
- outDir: string,
271
- output: string,
272
- outputDir: string,
273
- params: json,
274
- path: string,
275
- plan: string,
276
- projectId: string,
277
- repo: string,
278
- runtimeAgentId: string,
279
- runtimeBaseBranch: string,
280
- runtimeBaseSha: string,
281
- runtimeId: string,
282
- runtimeProjectId: string,
283
- runtimePromotionPolicy: string,
284
- scheduleMode: string,
285
- scheduleOverride: json,
286
- scheduleOverrides: json,
287
- schedules: string,
288
- service: string,
289
- setRemoteToken: boolean,
290
- setupTimeoutSeconds: integer,
291
- target: string,
292
- teamId: string,
293
- timeoutSeconds: integer,
294
- token: string,
295
- workflowMode: string,
296
- yes: boolean
297
- };
298
- var PROJECT_OPTION_SCHEMA = {
299
- branch: string,
300
- commitMessage: string,
301
- defaultBranch: string,
302
- description: string,
303
- gitOwner: string,
304
- gitRepo: string,
305
- internalRepoPath: string,
306
- json: boolean,
307
- name: string,
308
- path: string,
309
- projectId: string,
310
- repo: string,
311
- sourceCheckDispatch: string,
312
- sourceType: string,
313
- teamId: string,
314
- templateRepoUrl: string
315
- };
316
- var AGENT_OPTION_SCHEMA = {
317
- agentId: string,
318
- agentEdit: json,
319
- allowLatestSource: boolean,
320
- allowedActions: string,
321
- attachmentsJson: json,
322
- baseSha: string,
323
- chatMode: string,
324
- checkKind: string,
325
- conversationId: string,
326
- cwd: string,
327
- dispatch: string,
328
- entrypointName: string,
329
- entrypointScope: string,
330
- expectedManifestHash: string,
331
- evalStatus: string,
332
- expectedSourceCommitSha: string,
333
- idempotencyKey: string,
334
- input: json,
335
- inputFile: string,
336
- json: boolean,
337
- limit: integer,
338
- message: string,
339
- metadata: json,
340
- name: string,
341
- path: string,
342
- payload: json,
343
- projectId: string,
344
- prompt: string,
345
- provider: string,
346
- publishedSnapshotId: string,
347
- ref: string,
348
- requirePublishedSnapshot: boolean,
349
- requiredEnv: string,
350
- requiredIntegrations: string,
351
- runtimePromotionPolicy: string,
352
- runtimeSourceMode: string,
353
- sourceCheckDispatch: string,
354
- sourceMode: string,
355
- sourceRef: string,
356
- status: string,
357
- targetProjectId: string,
358
- teamId: string,
359
- triggerType: string,
360
- workflowMode: string
361
- };
362
-
363
- // src/cli/command-registry.ts
364
- var CLI_GLOBAL_OPTION_SCHEMA = {
365
- account: "string",
366
- apiBaseUrl: "string",
367
- apiBaseurl: "string",
368
- baseUrl: "string",
369
- baseurl: "string",
370
- chatApiBaseUrl: "string",
371
- chatApiBaseurl: "string",
372
- checkUpdate: "boolean",
373
- cwd: "string",
374
- help: "boolean",
375
- json: "boolean",
376
- profile: "string",
377
- sandboxApiUrl: "string",
378
- sandboxApiurl: "string",
379
- tui: "boolean",
380
- version: "boolean"
381
- };
382
- var CLI_SHORT_OPTION_ALIASES = {
383
- C: "cwd",
384
- f: "force",
385
- h: "help",
386
- j: "json",
387
- v: "version",
388
- y: "yes"
389
- };
390
- var PROFILE_SDK_OPTION_SCHEMA = {
391
- cwd: "string",
392
- input: "json",
393
- inputFile: "string",
394
- json: "boolean",
395
- path: "string"
396
- };
397
- var CLI_COMMAND_REGISTRY = [
398
- {
399
- name: "help",
400
- usage: "openpond help",
401
- optionSchema: {},
402
- handler: async () => (await import("./help-JNGJJFU5.js")).printHelp()
403
- },
404
- {
405
- name: "version",
406
- usage: "openpond version",
407
- optionSchema: {},
408
- handler: () => console.log(getInstalledCliVersion())
409
- },
410
- {
411
- name: "check-update",
412
- usage: "openpond check-update",
413
- optionSchema: {},
414
- handler: async () => (await import("./core-commands-MAN3CSJQ.js")).runCheckUpdate()
415
- },
416
- {
417
- name: "login",
418
- usage: "openpond login [--base-url <url>]",
419
- optionSchema: CLI_GLOBAL_OPTION_SCHEMA,
420
- handler: async ({ options }) => (await import("./core-commands-MAN3CSJQ.js")).runLogin(options)
421
- },
422
- {
423
- name: "init",
424
- usage: "openpond init [--path <dir>] [--profile <name>] [--template <name>] [--force] [--json]",
425
- optionSchema: {
426
- ...CLI_GLOBAL_OPTION_SCHEMA,
427
- force: "boolean",
428
- path: "string",
429
- template: "string"
430
- },
431
- handler: async ({ options }) => (await import("./profile-P7HMONTZ.js")).runOpenPondInitCommand(options)
432
- },
433
- {
434
- name: "profile",
435
- usage: "openpond profile <current|init|load|check|push|commit|diff|catalog>",
436
- optionSchema: {
437
- checkKind: "string",
438
- conversationId: "string",
439
- ensureHosted: "boolean",
440
- expectedManifestHash: "string",
441
- force: "boolean",
442
- hostedCheckKind: "string",
443
- hostedRunAgentId: "string",
444
- hostedRunConversationId: "string",
445
- hostedRunIdempotencyKey: "string",
446
- hostedRunInput: "json",
447
- hostedRunRetry: "boolean",
448
- hostedRunTargetProjectId: "string",
449
- hostedSourceDispatch: "string",
450
- hostedSourceAgentId: "string",
451
- hostedSourceChecks: "boolean",
452
- hostedSourceProjectId: "string",
453
- json: "boolean",
454
- kind: "string",
455
- path: "string",
456
- publishHostedSource: "boolean",
457
- teamId: "string"
458
- },
459
- handler: async ({ options, rest }) => (await import("./profile-P7HMONTZ.js")).runOpenPondProfileCommand(options, rest)
460
- },
461
- {
462
- name: "agents",
463
- usage: "openpond agents [--json]",
464
- optionSchema: { json: "boolean" },
465
- handler: async ({ options, rest }) => (await import("./profile-P7HMONTZ.js")).runOpenPondAgentsCommand(options, rest)
466
- },
467
- {
468
- name: "actions",
469
- usage: "openpond actions <check|build|run|dev|publish> [action-id] [--cwd DIR] [--input JSON|--input-file PATH]",
470
- optionSchema: {
471
- apiKey: "string",
472
- baseUrl: "string",
473
- cwd: "string",
474
- input: "string",
475
- inputFile: "string",
476
- json: "boolean",
477
- outputDirectory: "string",
478
- sourceDirectory: "string",
479
- sourceCommitSha: "string",
480
- sourceRef: "string",
481
- projectId: "string",
482
- teamId: "string",
483
- timeoutMs: "integer"
484
- },
485
- handler: async ({ options, rest }) => (await import("./actions-command-6N5XWMR6.js")).runProjectActionsCommand(options, rest)
486
- },
487
- ...profileSdkAliasDefinitions(),
488
- {
489
- name: "extension",
490
- usage: "openpond extension <add|preview|list|inspect|update|remove> [owner/repo]",
491
- usages: [
492
- "openpond extension add <owner/repo> [--ref <branch|tag|sha>] [--json]",
493
- "openpond extension update <owner/repo> [--ref <branch|tag|sha>] [--json]",
494
- "openpond extension update --all [--json]",
495
- "openpond extension remove <owner/repo> [--json]"
496
- ],
497
- optionSchema: { all: "boolean", json: "boolean", ref: "string" },
498
- handler: async ({ options, rest }) => (await import("./extension-J3CIEDP4.js")).runOpenPondExtensionCommand(options, rest)
499
- },
500
- {
501
- name: "profiles",
502
- usage: "openpond profiles [args]",
503
- optionSchema: { json: "boolean" },
504
- handler: async ({ options, rest }) => (await import("./core-commands-MAN3CSJQ.js")).runProfiles(options, rest)
505
- },
506
- {
507
- name: "account",
508
- usage: "openpond account",
509
- optionSchema: { json: "boolean" },
510
- handler: async () => (await import("./core-commands-MAN3CSJQ.js")).runAccount()
511
- },
512
- {
513
- name: "health",
514
- usage: "openpond health",
515
- optionSchema: { json: "boolean" },
516
- handler: async ({ options }) => (await import("./core-commands-MAN3CSJQ.js")).runHealth(options)
517
- },
518
- {
519
- name: "app-server",
520
- usage: "openpond app-server [--store-dir DIR]",
521
- optionSchema: {
522
- storeDir: "string"
523
- },
524
- handler: async ({ options, rest }) => (await import("./app-layer-XEYHFJHI.js")).runOpenPondServerCommand("app-server", options, rest)
525
- },
526
- {
527
- name: "serve",
528
- usage: "openpond serve [args]",
529
- optionSchema: {
530
- host: "string",
531
- hostname: "string",
532
- listen: "string",
533
- port: "integer"
534
- },
535
- handler: async ({ options, rest }) => (await import("./app-layer-XEYHFJHI.js")).runOpenPondServerCommand("serve", options, rest)
536
- },
537
- {
538
- name: "ui",
539
- usage: "openpond ui [--no-open] [--hostname HOST] [--port PORT]",
540
- optionSchema: {
541
- host: "string",
542
- hostname: "string",
543
- listen: "string",
544
- noOpen: "boolean",
545
- port: "integer",
546
- webRoot: "string"
547
- },
548
- handler: async ({ options, rest }) => (await import("./app-layer-XEYHFJHI.js")).runOpenPondServerCommand("web", options, rest)
549
- },
550
- {
551
- name: "tui",
552
- aliases: ["interactive"],
553
- usage: "openpond tui [--provider <id>] [--model <id>] [--project <id>]",
554
- optionSchema: {
555
- cwd: "string",
556
- model: "string",
557
- noServerStart: "boolean",
558
- project: "string",
559
- provider: "string",
560
- server: "string"
561
- },
562
- handler: async ({ options, rest }) => (await import("./app-layer-XEYHFJHI.js")).runOpenPondTerminalCommand(options, rest)
563
- },
564
- {
565
- name: "chat",
566
- usage: "openpond chat (--message-file <path>|--message <text>|--stdin) --non-interactive [--provider <id>] [--model <id>] [--agent <id>] [--project <id>] [--resume <session-id>] [--yes] [--approval-policy <policy>] [--json] [--timeout-sec <n>] [--max-output-bytes <n>] [--sandbox <mode>]",
567
- optionSchema: CHAT_OPTION_SCHEMA,
568
- handler: async ({ options, rest }) => (await import("./app-layer-XEYHFJHI.js")).runOpenPondTerminalCommand(options, rest)
569
- },
570
- {
571
- name: "tool",
572
- usage: "openpond tool <list|run> <handle>/<repo> [args]",
573
- optionSchema: { body: "json", json: "boolean" },
574
- handler: runToolCommand
575
- },
576
- {
577
- name: "backtest",
578
- usage: "openpond backtest <run|events|get> <handle>/<repo> [args]",
579
- optionSchema: {
580
- body: "json",
581
- branch: "string",
582
- deploymentId: "string",
583
- limit: "integer",
584
- runId: "string"
585
- },
586
- handler: runBacktestCommand
587
- },
588
- {
589
- name: "deploy",
590
- usage: "openpond deploy watch <handle>/<repo> [--branch <branch>]",
591
- optionSchema: { branch: "string" },
592
- handler: runDeployCommand
593
- },
594
- {
595
- name: "template",
596
- usage: "openpond template <status|branches|update> <handle>/<repo> [--env preview|production]",
597
- optionSchema: { env: "string" },
598
- handler: runTemplateCommand
599
- },
600
- {
601
- name: "sandbox-template",
602
- usage: "openpond sandbox-template <command> [args]",
603
- optionSchema: SANDBOX_TEMPLATE_OPTION_SCHEMA,
604
- handler: async ({ options, rest }) => (await import("./sandbox-template-S4WRUWJ6.js")).runSandboxTemplateCommand(options, rest)
605
- },
606
- {
607
- name: "repo",
608
- usage: "openpond repo <create|push> [--name <name>] [--path <dir>] [--branch <branch>]",
609
- optionSchema: {
610
- branch: "string",
611
- name: "string",
612
- path: "string"
613
- },
614
- handler: runRepoCommand
615
- },
616
- {
617
- name: "organizations",
618
- aliases: ["organization"],
619
- usage: "openpond organizations <login|list|use|logout|whoami> [args]",
620
- optionSchema: {
621
- accessToken: "string",
622
- arguments: "json",
623
- callbackPort: "integer",
624
- clientId: "string",
625
- customDomain: "string",
626
- displayName: "string",
627
- email: "string",
628
- env: "string",
629
- environment: "string",
630
- json: "boolean",
631
- name: "string",
632
- open: "boolean",
633
- origin: "string",
634
- primaryContactEmail: "string",
635
- printToken: "boolean",
636
- resourceUrl: "string",
637
- role: "string",
638
- scope: "string",
639
- scopes: "string",
640
- slug: "string",
641
- status: "string",
642
- timeout: "integer",
643
- timeoutSeconds: "integer",
644
- tool: "string",
645
- toolName: "string",
646
- toolset: "string",
647
- url: "string"
648
- },
649
- handler: async ({ options, rest }) => (await import("./organizations-MWAPNOCK.js")).runOrganizationsCommand(options, rest)
650
- },
651
- {
652
- name: "project",
653
- usage: "openpond project <list|create|upsert|get|update|sync|source-upload|archive> [args]",
654
- optionSchema: PROJECT_OPTION_SCHEMA,
655
- handler: async ({ options, rest }) => (await import("./project-agent-2RAK7GAZ.js")).runProjectCommand(options, rest)
656
- },
657
- {
658
- name: "agent",
659
- usage: "openpond agent <inspect|build|validate|eval|traces|list|create|upsert|get|update|run|run-test|bind-source|source|archive> [args]",
660
- usages: [
661
- "openpond agent run <action> [--cwd <project>] [--input <json>]",
662
- "openpond agent run <agentId> --team-id <id> [--conversation-id <id>] [--target-project-id <projectId>] [--input <json>]",
663
- "openpond agent source checks <agentId> --team-id <id> [--check-kind <kind>]",
664
- "openpond agent source publish <agentId> --team-id <id> [--expected-manifest-hash <hash>]"
665
- ],
666
- optionSchema: AGENT_OPTION_SCHEMA,
667
- handler: async ({ options, rest }) => (await import("./project-agent-2RAK7GAZ.js")).runAgentCommand(options, rest)
668
- },
669
- {
670
- name: "desktop-test",
671
- usage: "openpond desktop-test <run|attach> <scenario...> [--isolated|--attach|--packaged|--none] [--app <path>] [--artifacts-dir <path>] [--json <path>]",
672
- optionSchema: {
673
- artifactsDir: "string",
674
- attach: "boolean",
675
- cwd: "string",
676
- devtoolsPort: "integer",
677
- grep: "string",
678
- isolated: "boolean",
679
- json: "string",
680
- jsonPath: "string",
681
- keepHome: "boolean",
682
- none: "boolean",
683
- server: "string",
684
- timeoutMs: "integer",
685
- token: "string",
686
- tokenFile: "string"
687
- },
688
- handler: async ({ options, rest }) => (await import("./desktop-test-OE5SST2W.js")).runDesktopTestCommand(options, rest)
689
- },
690
- {
691
- name: "sandbox",
692
- usage: "openpond sandbox <command> [args]",
693
- optionSchema: SANDBOX_OPTION_SCHEMA,
694
- handler: async ({ options, rest }) => (await import("./sandbox-command-G22CPFNK.js")).runSandboxCommand(options, rest)
695
- },
696
- {
697
- name: "continual",
698
- usage: "openpond continual <init|validate|run|report> [manifest-or-series-id]",
699
- usages: [
700
- "openpond continual init --from <tasks.jsonl> [--output <continual-support.yaml>] [--non-interactive]",
701
- "openpond continual validate <continual-support.yaml> [--json]",
702
- "openpond continual run <continual-support.yaml> [--api-base-url <url>] [--json]",
703
- "openpond continual report <comparison-series-id> [--output <report.json>] [--json]"
704
- ],
705
- optionSchema: {
706
- apiBaseUrl: "string",
707
- commit: "string",
708
- correctionCasesPerFamily: "integer",
709
- correctionSelection: "string",
710
- description: "string",
711
- from: "string",
712
- grader: "string",
713
- id: "string",
714
- json: "boolean",
715
- license: "string",
716
- name: "string",
717
- nonInteractive: "boolean",
718
- output: "string",
719
- repository: "string",
720
- seed: "string",
721
- semanticSimilarityThreshold: "number"
722
- },
723
- handler: async ({ options, rest }) => (await import("./continual-FYDKLCO7.js")).runContinualCommand(options, rest)
724
- },
725
- {
726
- name: "training",
727
- usage: "openpond training <create-project|start|status|watch|logs|cancel|resume|artifacts|benchmark> <taskset-id|model-run-id|run-id|model-id>",
728
- usages: [
729
- "openpond training create-project <taskset-id> --recipe <path> [--project-id <id>] [--profile <id>] [--name <name>] [--objective <text>] [--destination <id>] [--rollout-placement <local|remote>] [--gpu-placement-objective <fast|balanced|economical>] [--run-preset <preset>] [--max-spend <usd>] [--retention-days <days>] [--json]",
730
- "openpond training start <model-project-id> [--comparison-series-entry <entry-id>] [--manifest <path>] [--yes] [--export-approved] [--max-spend <usd>] [--retention-days <days>] [--detach] [--json]",
731
- "openpond training status <run-id> [--json]",
732
- "openpond training watch <run-id> [--interval-ms <ms>] [--json]",
733
- "openpond training logs <run-id> [--json]",
734
- "openpond training cancel <run-id> [--json]",
735
- "openpond training resume <model-run-id> [--json]",
736
- "openpond training artifacts <run-id> [--json]",
737
- "openpond training benchmark <model-id> [--provider <id>] [--model <id>] [--reasoning-effort <level>] [--max-spend <usd>] [--json]"
738
- ],
739
- optionSchema: {
740
- apiBaseUrl: "string",
741
- comparisonSeriesEntry: "string",
742
- detach: "boolean",
743
- destination: "string",
744
- exportApproved: "boolean",
745
- gpuPlacementObjective: "string",
746
- intervalMs: "integer",
747
- json: "boolean",
748
- manifest: "string",
749
- maxSpend: "number",
750
- model: "string",
751
- name: "string",
752
- objective: "string",
753
- profile: "string",
754
- projectId: "string",
755
- provider: "string",
756
- recipe: "string",
757
- reasoningEffort: "string",
758
- retentionDays: "integer",
759
- rolloutPlacement: "string",
760
- runPreset: "string",
761
- yes: "boolean"
762
- },
763
- handler: async ({ options, rest }) => (await import("./training-UPVSGDTB.js")).runTrainingCommand(options, rest)
764
- },
765
- {
766
- name: "taskset",
767
- usage: "openpond taskset <import|publish|readiness|delete-draft> <package-path|draft-id|taskset-id> [--profile <id>] [--model <id>] [--json]",
768
- usages: [
769
- "openpond taskset import <package-directory|taskset.json> [--profile <id>] [--json]",
770
- "openpond taskset publish <draft-id> [--model <id>] [--json]",
771
- "openpond taskset readiness <taskset-id> [--json]",
772
- "openpond taskset delete-draft <draft-id> [--json]"
773
- ],
774
- optionSchema: {
775
- apiBaseUrl: "string",
776
- json: "boolean",
777
- model: "string",
778
- profile: "string"
779
- },
780
- handler: async ({ options, rest }) => (await import("./taskset-BMI7KOWP.js")).runTasksetCommand(options, rest)
781
- },
782
- {
783
- name: "opchat",
784
- usage: "openpond opchat <command> [args]",
785
- optionSchema: {
786
- compatModel: "string",
787
- compatibilityModel: "string",
788
- env: "string",
789
- environment: "string",
790
- json: "boolean",
791
- message: "string",
792
- model: "string",
793
- opchatApiBaseUrl: "string",
794
- opchatApiUrl: "string",
795
- prompt: "string",
796
- skipStream: "boolean",
797
- skipTool: "boolean",
798
- stream: "boolean"
799
- },
800
- handler: async ({ options, rest }) => (await import("./opchat-6HEQJFLL.js")).runOpChatCommand(options, rest)
801
- },
802
- {
803
- name: "teams-bot",
804
- usage: "openpond teams-bot <command> [args]",
805
- optionSchema: {
806
- json: "boolean",
807
- teamId: "string"
808
- },
809
- handler: async ({ options, rest }) => (await import("./teams-bot-5VBYEN7M.js")).runTeamsBotCommand(options, rest)
810
- },
811
- {
812
- name: "apps",
813
- usage: "openpond apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|agent create> [args]",
814
- optionSchema: {
815
- appId: "string",
816
- body: "json",
817
- env: "json",
818
- json: "boolean",
819
- limit: "integer",
820
- refresh: "boolean",
821
- teamId: "string",
822
- watch: "boolean"
823
- },
824
- handler: runAppsCommand
825
- },
826
- {
827
- name: "opentool",
828
- usage: "openpond opentool <init|validate|build> [args]",
829
- optionSchema: {},
830
- handler: async ({ rest }) => (await import("./core-commands-MAN3CSJQ.js")).runOpentool(rest)
831
- }
832
- ];
833
- var CLI_COMMAND_BY_NAME = /* @__PURE__ */ new Map();
834
- for (const definition of CLI_COMMAND_REGISTRY) {
835
- CLI_COMMAND_BY_NAME.set(definition.name, definition);
836
- for (const alias of definition.aliases ?? []) {
837
- CLI_COMMAND_BY_NAME.set(alias, definition);
838
- }
839
- }
840
- function listCliCommandDefinitions() {
841
- return CLI_COMMAND_REGISTRY;
842
- }
843
- function getCliCommandDefinition(command) {
844
- return CLI_COMMAND_BY_NAME.get(command) ?? null;
845
- }
846
- function getCliOptionKind(command, key) {
847
- const definition = command ? getCliCommandDefinition(command) : getCliCommandDefinition("ui");
848
- return definition?.optionSchema[key] ?? CLI_GLOBAL_OPTION_SCHEMA[key];
849
- }
850
- function getAnyCliOptionKind(key) {
851
- const globalKind = CLI_GLOBAL_OPTION_SCHEMA[key];
852
- if (globalKind) return globalKind;
853
- for (const definition of CLI_COMMAND_REGISTRY) {
854
- const kind = definition.optionSchema[key];
855
- if (kind) return kind;
856
- }
857
- return void 0;
858
- }
859
- async function runCliCommand(context) {
860
- const definition = getCliCommandDefinition(context.command);
861
- if (!definition) return false;
862
- if (parseBooleanOption(context.options.help)) {
863
- printCliCommandUsage(definition);
864
- return true;
865
- }
866
- await definition.handler(context);
867
- return true;
868
- }
869
- function formatCliCommandUsage(definition) {
870
- const lines = [
871
- `Usage:`,
872
- ` ${definition.usage}`,
873
- ...(definition.usages ?? []).map((usage) => ` ${usage}`)
874
- ];
875
- if (definition.aliases?.length) {
876
- lines.push("", `Aliases:`, ` ${definition.aliases.join(", ")}`);
877
- }
878
- const options = Object.entries(definition.optionSchema).sort(
879
- ([left], [right]) => left.localeCompare(right)
880
- );
881
- if (options.length > 0) {
882
- lines.push("", "Options:");
883
- for (const [name, kind] of options) {
884
- const optionName = cliOptionName(name);
885
- lines.push(kind === "boolean" ? ` --${optionName}` : ` --${optionName} <${kind}>`);
886
- }
887
- }
888
- return lines.join("\n");
889
- }
890
- function printCliCommandUsage(definition) {
891
- console.log(formatCliCommandUsage(definition));
892
- }
893
- function cliOptionName(name) {
894
- return name.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`);
895
- }
896
- function profileSdkAliasDefinitions() {
897
- const aliases = ["inspect", "build", "validate", "eval", "run"];
898
- return aliases.map((name) => ({
899
- name,
900
- usage: `openpond ${name} [args]`,
901
- optionSchema: PROFILE_SDK_OPTION_SCHEMA,
902
- handler: async ({ options, rest }) => (await import("./profile-P7HMONTZ.js")).runOpenPondProfileSdkAlias(name, options, rest)
903
- }));
904
- }
905
- async function runToolCommand({ options, rest }) {
906
- const { runToolList, runToolRun } = await import("./core-commands-MAN3CSJQ.js");
907
- const subcommand = rest[0];
908
- if (subcommand === "list") {
909
- const target = rest[1];
910
- if (!target) {
911
- throw new Error("usage: tool list <handle>/<repo>");
912
- }
913
- await runToolList(options, target);
914
- return;
915
- }
916
- if (subcommand === "run") {
917
- const target = rest[1];
918
- const toolName = rest[2];
919
- if (!target || !toolName) {
920
- throw new Error(
921
- "usage: tool run <handle>/<repo> <tool> [--body <json>]"
922
- );
923
- }
924
- await runToolRun(options, target, toolName);
925
- return;
926
- }
927
- throw new Error("usage: tool <list|run> <handle>/<repo> [args]");
928
- }
929
- async function runBacktestCommand({ options, rest }) {
930
- const { runBacktestRun } = await import("./core-commands-MAN3CSJQ.js");
931
- const { runBacktestEvents, runBacktestGet } = await import("./apps-GSXUDK6V.js");
932
- const subcommand = rest[0] || "run";
933
- if (subcommand === "run") {
934
- const target = rest[1];
935
- const toolName = rest[2];
936
- if (!target || !toolName) {
937
- throw new Error(
938
- "usage: backtest run <handle>/<repo> <tool> [--body <json>] [--branch <branch>] [--deployment-id <id>]"
939
- );
940
- }
941
- await runBacktestRun(options, target, toolName);
942
- return;
943
- }
944
- if (subcommand === "events") {
945
- const target = rest[1];
946
- if (!target) {
947
- throw new Error(
948
- "usage: backtest events <handle>/<repo> [--run-id <id>] [--limit <n>]"
949
- );
950
- }
951
- await runBacktestEvents(options, target);
952
- return;
953
- }
954
- if (subcommand === "get") {
955
- const target = rest[1];
956
- if (!target) {
957
- throw new Error("usage: backtest get <handle>/<repo> --run-id <id>");
958
- }
959
- await runBacktestGet(options, target);
960
- return;
961
- }
962
- throw new Error("usage: backtest <run|events|get> <handle>/<repo> [args]");
963
- }
964
- async function runDeployCommand({ options, rest }) {
965
- const { runDeployWatch } = await import("./core-commands-MAN3CSJQ.js");
966
- const subcommand = rest[0] || "watch";
967
- if (subcommand !== "watch") {
968
- throw new Error(
969
- "usage: deploy watch <handle>/<repo> [--branch <branch>]"
970
- );
971
- }
972
- const target = rest[1];
973
- if (!target) {
974
- throw new Error(
975
- "usage: deploy watch <handle>/<repo> [--branch <branch>]"
976
- );
977
- }
978
- await runDeployWatch(options, target);
979
- }
980
- async function runTemplateCommand({ options, rest }) {
981
- const { runTemplateBranches, runTemplateStatus, runTemplateUpdate } = await import("./core-commands-MAN3CSJQ.js");
982
- const subcommand = rest[0] || "status";
983
- const target = rest[1];
984
- if (!target) {
985
- throw new Error(
986
- "usage: template <status|branches|update> <handle>/<repo> [--env preview|production]"
987
- );
988
- }
989
- if (subcommand === "status") {
990
- await runTemplateStatus(options, target);
991
- return;
992
- }
993
- if (subcommand === "branches") {
994
- await runTemplateBranches(options, target);
995
- return;
996
- }
997
- if (subcommand === "update") {
998
- await runTemplateUpdate(options, target);
999
- return;
1000
- }
1001
- throw new Error(
1002
- "usage: template <status|branches|update> <handle>/<repo> [--env preview|production]"
1003
- );
1004
- }
1005
- async function runRepoCommand({ options, rest }) {
1006
- const { runRepoCreate, runRepoPush } = await import("./core-commands-MAN3CSJQ.js");
1007
- const subcommand = rest[0] || "create";
1008
- if (subcommand === "create") {
1009
- await runRepoCreate(options, rest.slice(1));
1010
- return;
1011
- }
1012
- if (subcommand === "push") {
1013
- await runRepoPush(options);
1014
- return;
1015
- }
1016
- throw new Error(
1017
- "usage: repo <create|push> [--name <name>] [--path <dir>] [--branch <branch>]"
1018
- );
1019
- }
1020
- async function runAppsCommand({ options, rest }) {
1021
- const {
1022
- runAppsAgentCreate,
1023
- runAppsAssistant,
1024
- runAppsCodeVisibility,
1025
- runAppsDeploy,
1026
- runAppsEnvGet,
1027
- runAppsEnvSet,
1028
- runAppsList,
1029
- runAppsPerformance,
1030
- runAppsSummary,
1031
- runAppsTools,
1032
- runAppsToolsExecute
1033
- } = await import("./apps-GSXUDK6V.js");
1034
- const subcommand = rest[0];
1035
- if (subcommand === "list") {
1036
- await runAppsList(options);
1037
- return;
1038
- }
1039
- if (subcommand === "code-visibility") {
1040
- const target = rest[1];
1041
- if (!target) {
1042
- throw new Error(
1043
- "usage: apps code-visibility <handle>/<repo> --visibility public|private"
1044
- );
1045
- }
1046
- await runAppsCodeVisibility(options, target);
1047
- return;
1048
- }
1049
- if (subcommand === "tools") {
1050
- if (rest[1] === "execute") {
1051
- const appId = rest[2];
1052
- const deploymentId = rest[3];
1053
- const toolName = rest[4];
1054
- if (!appId || !deploymentId || !toolName) {
1055
- throw new Error(
1056
- "usage: apps tools execute <appId> <deploymentId> <tool> [--body <json>]"
1057
- );
1058
- }
1059
- await runAppsToolsExecute(options, appId, deploymentId, toolName);
1060
- return;
1061
- }
1062
- await runAppsTools();
1063
- return;
1064
- }
1065
- if (subcommand === "deploy") {
1066
- const target = rest[1];
1067
- if (!target) {
1068
- throw new Error(
1069
- "usage: apps deploy <handle>/<repo> [--env preview|production] [--watch]"
1070
- );
1071
- }
1072
- await runAppsDeploy(options, target);
1073
- return;
1074
- }
1075
- if (subcommand === "env" && rest[1] === "get") {
1076
- const target = rest[2];
1077
- if (!target) {
1078
- throw new Error("usage: apps env get <handle>/<repo>");
1079
- }
1080
- await runAppsEnvGet(options, target);
1081
- return;
1082
- }
1083
- if (subcommand === "env" && rest[1] === "set") {
1084
- const target = rest[2];
1085
- if (!target) {
1086
- throw new Error("usage: apps env set <handle>/<repo> --env <json>");
1087
- }
1088
- await runAppsEnvSet(options, target);
1089
- return;
1090
- }
1091
- if (subcommand === "performance") {
1092
- await runAppsPerformance(options);
1093
- return;
1094
- }
1095
- if (subcommand === "summary") {
1096
- const target = rest[1];
1097
- if (!target) {
1098
- throw new Error("usage: apps summary <handle>/<repo>");
1099
- }
1100
- await runAppsSummary(options, target);
1101
- return;
1102
- }
1103
- if (subcommand === "assistant") {
1104
- const mode = rest[1];
1105
- const target = rest[2];
1106
- if (mode !== "plan" && mode !== "performance" || !target) {
1107
- throw new Error(
1108
- "usage: apps assistant <plan|performance> <handle>/<repo> --prompt <text>"
1109
- );
1110
- }
1111
- await runAppsAssistant(options, mode, target, rest.slice(3));
1112
- return;
1113
- }
1114
- if (subcommand === "agent" && rest[1] === "create") {
1115
- await runAppsAgentCreate(options, rest.slice(2));
1116
- return;
1117
- }
1118
- throw new Error(
1119
- "usage: apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|agent create> [args]"
1120
- );
1121
- }
1122
-
1123
- export {
1124
- getInstalledCliVersion,
1125
- compareSemver,
1126
- fetchLatestNpmVersion,
1127
- CLI_GLOBAL_OPTION_SCHEMA,
1128
- CLI_SHORT_OPTION_ALIASES,
1129
- listCliCommandDefinitions,
1130
- getCliCommandDefinition,
1131
- getCliOptionKind,
1132
- getAnyCliOptionKind,
1133
- runCliCommand,
1134
- formatCliCommandUsage
1135
- };