openpond 0.2.0 → 0.2.2

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-F55CBR2K.js +2 -0
  2. package/dist/chunks/app-layer-GNYLOBCX.js +3 -0
  3. package/dist/chunks/app-server-runtime-VAGY4LQS.js +2 -0
  4. package/dist/chunks/apps-HZ5JGBDR.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-6FA3GG5B.js +33 -0
  10. package/dist/chunks/chunk-6MI4KKWF.js +2 -0
  11. package/dist/chunks/chunk-7D2LMRP7.js +2 -0
  12. package/dist/chunks/chunk-A42DFLOR.js +16 -0
  13. package/dist/chunks/chunk-AF57BF75.js +24 -0
  14. package/dist/chunks/chunk-BX4J2VDU.js +2 -0
  15. package/dist/chunks/chunk-BZMVB3GS.js +2 -0
  16. package/dist/chunks/chunk-CCJG7GLE.js +5 -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-EG3XB6M6.js +5 -0
  21. package/dist/chunks/chunk-ES2ISFJC.js +66 -0
  22. package/dist/chunks/chunk-FTQLQJQV.js +2 -0
  23. package/dist/chunks/chunk-FYCJSUFV.js +53 -0
  24. package/dist/chunks/chunk-GEANXBLX.js +2 -0
  25. package/dist/chunks/chunk-GLUWATL5.js +2 -0
  26. package/dist/chunks/chunk-GPZYIVFV.js +2199 -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-I7G35U7K.js +2 -0
  31. package/dist/chunks/chunk-IR3YJWPW.js +7 -0
  32. package/dist/chunks/chunk-J7WZSLHS.js +18 -0
  33. package/dist/chunks/chunk-K35OOAW2.js +6 -0
  34. package/dist/chunks/chunk-KDXLNQNF.js +12 -0
  35. package/dist/chunks/chunk-KJYNLFWD.js +2872 -0
  36. package/dist/chunks/chunk-KV2IXO2T.js +6 -0
  37. package/dist/chunks/chunk-NVGMZ2IN.js +2 -0
  38. package/dist/chunks/chunk-OGPHXXCD.js +1 -0
  39. package/dist/chunks/chunk-RAKJWIYO.js +36 -0
  40. package/dist/chunks/chunk-RWSAGQTP.js +2 -0
  41. package/dist/chunks/chunk-SDO4FC4Q.js +2 -0
  42. package/dist/chunks/chunk-T5XCPX4P.js +3 -0
  43. package/dist/chunks/chunk-VYUMTRB3.js +5 -0
  44. package/dist/chunks/chunk-X37KMV27.js +1 -0
  45. package/dist/chunks/chunk-XAYIETBO.js +28 -0
  46. package/dist/chunks/chunk-XEOEKFG6.js +71 -0
  47. package/dist/chunks/chunk-ZVOO7FKM.js +2 -0
  48. package/dist/chunks/cli-UYTSZB4Y.js +2 -0
  49. package/dist/chunks/configuration-command-HAPIYG25.js +2 -0
  50. package/dist/chunks/continual-D75WA7E7.js +7 -0
  51. package/dist/chunks/core-commands-N37UZEVE.js +2 -0
  52. package/dist/chunks/database-X2CUV732.js +2 -0
  53. package/dist/chunks/desktop-test-V7FBEG7U.js +3 -0
  54. package/dist/chunks/dist-NKLXFA37.js +2 -0
  55. package/dist/chunks/extension-NEPOQ44P.js +5 -0
  56. package/dist/chunks/help-HC4N5ZQC.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-C7XRN4ZW.js +3 -0
  60. package/dist/chunks/organizations-LQGRZJ2V.js +2 -0
  61. package/dist/chunks/profile-UWM24A7R.js +3 -0
  62. package/dist/chunks/project-agent-2ME52ZJW.js +2 -0
  63. package/dist/chunks/sandbox-command-53L3ZICT.js +2 -0
  64. package/dist/chunks/sandbox-template-55HUM5H7.js +10 -0
  65. package/dist/chunks/src-EYJF2LWV.js +319 -0
  66. package/dist/chunks/src-VGW2UEMV.js +82 -0
  67. package/dist/chunks/taskset-PISBOILQ.js +2 -0
  68. package/dist/chunks/teams-bot-FHD2HCHN.js +3 -0
  69. package/dist/chunks/training-2NDOWH5S.js +2 -0
  70. package/dist/chunks/workspaces-CQFVCR7T.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-BoJQRfeu.js +176 -0
  75. package/dist/web/assets/AppDialog-rdfmJsGF.js +1 -0
  76. package/dist/web/assets/AppTerminalPanel-CLW0kxtg.js +2 -0
  77. package/dist/web/assets/{AppsView-B1NUuAIf.js → AppsView-DxMXadnp.js} +1 -1
  78. package/dist/web/assets/{BrowserSidebar-DOvYxXeP.js → BrowserSidebar-BH_jl0JS.js} +1 -1
  79. package/dist/web/assets/{CartesianChart-pOrYpzBr.js → CartesianChart-oT_rMYpf.js} +1 -1
  80. package/dist/web/assets/{CollaborationTabs-CgbR-MBJ.js → CollaborationTabs-CukgFGE0.js} +1 -1
  81. package/dist/web/assets/{CommandMenu-CrIr4qUX.js → CommandMenu-2btBTgOF.js} +1 -1
  82. package/dist/web/assets/{CommunityView-CvAVQ_HZ.js → CommunityView-DMTREmN5.js} +1 -1
  83. package/dist/web/assets/{ComposerCreateImproveStrip-DybcKwwd.js → ComposerCreateImproveStrip-3tN55cg9.js} +1 -1
  84. package/dist/web/assets/GetStartedView-CMHL24_w.js +1 -0
  85. package/dist/web/assets/HostedModelLearningReview-CqkSelkC.js +1 -0
  86. package/dist/web/assets/HostedModelLearningSettings-xqd2lSW3.js +1 -0
  87. package/dist/web/assets/LabModelVersionDetailPage-Bpnya5DM.js +1 -0
  88. package/dist/web/assets/{LabSkillSidebar-CuaYrtiu.js → LabSkillSidebar-BKZjScr8.js} +1 -1
  89. package/dist/web/assets/LabsRoute-BhPFmA_Z.js +32 -0
  90. package/dist/web/assets/LabsRoute-C1FWCoYb.css +1 -0
  91. package/dist/web/assets/MainChatThread-Bosxokt-.js +2 -0
  92. package/dist/web/assets/MainPane-Di-Rwe7x.js +8 -0
  93. package/dist/web/assets/{MarkdownText-DOlVQR8a.js → MarkdownText-dK4SBPp_.js} +1 -1
  94. package/dist/web/assets/{Messages-DMubppta.js → Messages-ftYRMKYa.js} +6 -6
  95. package/dist/web/assets/{NativeSkillSidebar-DSFwZ-od.js → NativeSkillSidebar-Cwo7JdB2.js} +1 -1
  96. package/dist/web/assets/{NewExperienceSwitcher-Dj0ePIJ-.js → NewExperienceSwitcher-C1_JzTq2.js} +1 -1
  97. package/dist/web/assets/{NewProjectDialog-B8NQV-Ji.js → NewProjectDialog-CxP6v6YW.js} +1 -1
  98. package/dist/web/assets/{OutputsPage-D_LDYTgV.js → OutputsPage-DL21_Alp.js} +1 -1
  99. package/dist/web/assets/{ProjectsPage-xjDYPc_W.js → ProjectsPage-BO9VyvMA.js} +1 -1
  100. package/dist/web/assets/RightChatPanelStack-DaqAnzdR.js +1 -0
  101. package/dist/web/assets/{RightSidebarHomePanel-j0VckZUu.js → RightSidebarHomePanel-PbUG12AO.js} +1 -1
  102. package/dist/web/assets/{ScheduledWorkPage-1aT4bBY-.js → ScheduledWorkPage-BhL-cXML.js} +1 -1
  103. package/dist/web/assets/{SettingsView-BSpuMDpv.js → SettingsView-D6-s7G88.js} +7 -7
  104. package/dist/web/assets/TeamChatView-DbS1N-fo.js +3 -0
  105. package/dist/web/assets/{TerminalOverlay-CrSwUk2d.js → TerminalOverlay-CphyBXJR.js} +3 -3
  106. package/dist/web/assets/{TrainingCreationPanel-B4HMRwUg.js → TrainingCreationPanel-Czsdraix.js} +1 -1
  107. package/dist/web/assets/{TrainingDraftPanel-D4r1tN3I.js → TrainingDraftPanel-Bq3B5pUk.js} +1 -1
  108. package/dist/web/assets/{UsageSettingsSection-2aymqwIM.js → UsageSettingsSection-B74FNwaP.js} +5 -5
  109. package/dist/web/assets/{WorkSidebarPanel-B0X0OiR6.js → WorkSidebarPanel-BgaK4XSg.js} +1 -1
  110. package/dist/web/assets/WorkspaceDiffPanel-C3seHnVY.js +14 -0
  111. package/dist/web/assets/{WorkspaceEnvironmentMenu-OAfMEt7L.js → WorkspaceEnvironmentMenu-DPghQUdv.js} +3 -3
  112. package/dist/web/assets/{WorkspaceGitDialogs-YxcPH2Rq.js → WorkspaceGitDialogs-D8c6Okb_.js} +1 -1
  113. package/dist/web/assets/{WorkspaceMonacoEditor-COKTiQZl.js → WorkspaceMonacoEditor-2kjRFf4l.js} +36 -36
  114. package/dist/web/assets/{arrow-up-right-_TX-awvK.js → arrow-up-right-C5X-29oa.js} +1 -1
  115. package/dist/web/assets/chat-file-links-Bmz9kVct.js +1 -0
  116. package/dist/web/assets/chevron-up-NbP9vY4E.js +1 -0
  117. package/dist/web/assets/{clipboard-CyRSS8Sy.js → clipboard-fvHMXPWa.js} +1 -1
  118. package/dist/web/assets/{cloud-upload-uBJBUYTy.js → cloud-upload-BAycsdHL.js} +1 -1
  119. package/dist/web/assets/{cssMode-BrXSsZYs.js → cssMode-Yis679a5.js} +1 -1
  120. package/dist/web/assets/{folder-open-DktdZNW7.js → folder-open-bii4KUCv.js} +1 -1
  121. package/dist/web/assets/{folder-plus-DO06i9Vo.js → folder-plus-B0B7mUCx.js} +1 -1
  122. package/dist/web/assets/{git-commit-horizontal-zFSIkPs7.js → git-commit-horizontal-B6yTdtnB.js} +1 -1
  123. package/dist/web/assets/{htmlMode-X9UMFkjt.js → htmlMode-DHeBSKVF.js} +1 -1
  124. package/dist/web/assets/{index-UOGdfLzi.js → index-667pXXsu.js} +1 -1
  125. package/dist/web/assets/{index-ByQIHpc9.css → index-BGMzUaup.css} +1 -1
  126. package/dist/web/assets/{info-BEJXUqCD.js → info-NCOESX3I.js} +1 -1
  127. package/dist/web/assets/{jsonMode-DIsB-j2E.js → jsonMode-C4oxy1cU.js} +1 -1
  128. package/dist/web/assets/{lspLanguageFeatures-CmZ17KpA.js → lspLanguageFeatures-CLj3WGZW.js} +1 -1
  129. package/dist/web/assets/{minimize-2-DumTpFtE.js → minimize-2-DtI1vgd7.js} +1 -1
  130. package/dist/web/assets/{monaco.contribution-D6w5PJji.js → monaco.contribution-DZPgekIQ.js} +2 -2
  131. package/dist/web/assets/{monaco.contribution-DJ_NmcHu.js → monaco.contribution-Ddw-TznO.js} +2 -2
  132. package/dist/web/assets/{monaco.contribution-YVDfJcG4.js → monaco.contribution-DhVPJ-oY.js} +2 -2
  133. package/dist/web/assets/{monaco.contribution-LZEujgny.js → monaco.contribution-DrW6DjWP.js} +2 -2
  134. package/dist/web/assets/{play-CLFeH7CU.js → play-DB3XFAnG.js} +1 -1
  135. package/dist/web/assets/{python-Djbda_qZ.js → python-DLyUeEeL.js} +1 -1
  136. package/dist/web/assets/{refresh-cw-B4IpQ_7Q.js → refresh-cw-0zSLZtfp.js} +1 -1
  137. package/dist/web/assets/{save-BbTHztnA.js → save-BCZlshOA.js} +1 -1
  138. package/dist/web/assets/{square-BJrVbmz6.js → square-CRytZWR_.js} +1 -1
  139. package/dist/web/assets/{toggleHighContrast-BopU5W9S.js → toggleHighContrast-TXg0rI_R.js} +1 -1
  140. package/dist/web/assets/{tsMode-CH_0_YDX.js → tsMode-Bj1019AY.js} +1 -1
  141. package/dist/web/assets/{upload-UumVeufu.js → upload-CnE9u7GB.js} +1 -1
  142. package/dist/web/assets/{useLocalAgentSchedules-BRa23U7O.js → useLocalAgentSchedules-qI87RHVI.js} +1 -1
  143. package/dist/web/assets/{wifi-off-BWJWivn6.js → wifi-off-CfuwRBx7.js} +1 -1
  144. package/dist/web/assets/{workers-pTe8RvSI.js → workers-CXdUI7wU.js} +1 -1
  145. package/dist/web/assets/{yaml-DNLASORn.js → yaml-AP8aiwLm.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,1148 +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
- home: "string",
376
- json: "boolean",
377
- profile: "string",
378
- sandboxApiUrl: "string",
379
- sandboxApiurl: "string",
380
- tui: "boolean",
381
- version: "boolean"
382
- };
383
- var CLI_SHORT_OPTION_ALIASES = {
384
- C: "cwd",
385
- f: "force",
386
- h: "help",
387
- j: "json",
388
- v: "version",
389
- y: "yes"
390
- };
391
- var PROFILE_SDK_OPTION_SCHEMA = {
392
- cwd: "string",
393
- input: "json",
394
- inputFile: "string",
395
- json: "boolean",
396
- path: "string"
397
- };
398
- var CLI_COMMAND_REGISTRY = [
399
- {
400
- name: "home",
401
- usage: "openpond home [--home <directory>]",
402
- optionSchema: {},
403
- handler: async () => console.log((await import("./dist-AKYCQNNF.js")).resolveOpenPondHome())
404
- },
405
- {
406
- name: "config",
407
- usage: "openpond config <get|set|unset|path|validate|schema|doctor|migrate|recover|restart-migration|revisions|replace|effective|trust|untrust|export|backup|restore|collect-orphans|clear-cache> [key] [value] [--home <directory>] [--json]",
408
- optionSchema: { keyPath: "json", value: "string", file: "string", project: "boolean", revision: "string", expectedRevision: "string", sourceAppHome: "string", sourceConfig: "string", sourceBrowserState: "string", dryRun: "boolean" },
409
- handler: async ({ options, rest }) => (await import("./configuration-command-NR6JYIUD.js")).runConfigurationCommand(options, rest)
410
- },
411
- {
412
- name: "help",
413
- usage: "openpond help",
414
- optionSchema: {},
415
- handler: async () => (await import("./help-J6PZ23IC.js")).printHelp()
416
- },
417
- {
418
- name: "version",
419
- usage: "openpond version",
420
- optionSchema: {},
421
- handler: () => console.log(getInstalledCliVersion())
422
- },
423
- {
424
- name: "check-update",
425
- usage: "openpond check-update",
426
- optionSchema: {},
427
- handler: async () => (await import("./core-commands-SWGIOZLW.js")).runCheckUpdate()
428
- },
429
- {
430
- name: "login",
431
- usage: "openpond login [--base-url <url>]",
432
- optionSchema: CLI_GLOBAL_OPTION_SCHEMA,
433
- handler: async ({ options }) => (await import("./core-commands-SWGIOZLW.js")).runLogin(options)
434
- },
435
- {
436
- name: "init",
437
- usage: "openpond init [--path <dir>] [--profile <name>] [--template <name>] [--force] [--json]",
438
- optionSchema: {
439
- ...CLI_GLOBAL_OPTION_SCHEMA,
440
- force: "boolean",
441
- path: "string",
442
- template: "string"
443
- },
444
- handler: async ({ options }) => (await import("./profile-Q3HB5MIO.js")).runOpenPondInitCommand(options)
445
- },
446
- {
447
- name: "profile",
448
- usage: "openpond profile <current|init|load|check|push|commit|diff|catalog>",
449
- optionSchema: {
450
- checkKind: "string",
451
- conversationId: "string",
452
- ensureHosted: "boolean",
453
- expectedManifestHash: "string",
454
- force: "boolean",
455
- hostedCheckKind: "string",
456
- hostedRunAgentId: "string",
457
- hostedRunConversationId: "string",
458
- hostedRunIdempotencyKey: "string",
459
- hostedRunInput: "json",
460
- hostedRunRetry: "boolean",
461
- hostedRunTargetProjectId: "string",
462
- hostedSourceDispatch: "string",
463
- hostedSourceAgentId: "string",
464
- hostedSourceChecks: "boolean",
465
- hostedSourceProjectId: "string",
466
- json: "boolean",
467
- kind: "string",
468
- path: "string",
469
- publishHostedSource: "boolean",
470
- teamId: "string"
471
- },
472
- handler: async ({ options, rest }) => (await import("./profile-Q3HB5MIO.js")).runOpenPondProfileCommand(options, rest)
473
- },
474
- {
475
- name: "agents",
476
- usage: "openpond agents [--json]",
477
- optionSchema: { json: "boolean" },
478
- handler: async ({ options, rest }) => (await import("./profile-Q3HB5MIO.js")).runOpenPondAgentsCommand(options, rest)
479
- },
480
- {
481
- name: "actions",
482
- usage: "openpond actions <check|build|run|dev|publish> [action-id] [--cwd DIR] [--input JSON|--input-file PATH]",
483
- optionSchema: {
484
- apiKey: "string",
485
- baseUrl: "string",
486
- cwd: "string",
487
- input: "string",
488
- inputFile: "string",
489
- json: "boolean",
490
- outputDirectory: "string",
491
- sourceDirectory: "string",
492
- sourceCommitSha: "string",
493
- sourceRef: "string",
494
- projectId: "string",
495
- teamId: "string",
496
- timeoutMs: "integer"
497
- },
498
- handler: async ({ options, rest }) => (await import("./actions-command-6N5XWMR6.js")).runProjectActionsCommand(options, rest)
499
- },
500
- ...profileSdkAliasDefinitions(),
501
- {
502
- name: "extension",
503
- usage: "openpond extension <add|preview|list|inspect|update|remove> [owner/repo]",
504
- usages: [
505
- "openpond extension add <owner/repo> [--ref <branch|tag|sha>] [--json]",
506
- "openpond extension update <owner/repo> [--ref <branch|tag|sha>] [--json]",
507
- "openpond extension update --all [--json]",
508
- "openpond extension remove <owner/repo> [--json]"
509
- ],
510
- optionSchema: { all: "boolean", json: "boolean", ref: "string" },
511
- handler: async ({ options, rest }) => (await import("./extension-HJUJBQAD.js")).runOpenPondExtensionCommand(options, rest)
512
- },
513
- {
514
- name: "profiles",
515
- usage: "openpond profiles [args]",
516
- optionSchema: { json: "boolean" },
517
- handler: async ({ options, rest }) => (await import("./core-commands-SWGIOZLW.js")).runProfiles(options, rest)
518
- },
519
- {
520
- name: "account",
521
- usage: "openpond account",
522
- optionSchema: { json: "boolean" },
523
- handler: async () => (await import("./core-commands-SWGIOZLW.js")).runAccount()
524
- },
525
- {
526
- name: "health",
527
- usage: "openpond health",
528
- optionSchema: { json: "boolean" },
529
- handler: async ({ options }) => (await import("./core-commands-SWGIOZLW.js")).runHealth(options)
530
- },
531
- {
532
- name: "app-server",
533
- usage: "openpond app-server [--home DIR]",
534
- optionSchema: {
535
- home: "string"
536
- },
537
- handler: async ({ options, rest }) => (await import("./app-layer-F3CGXB33.js")).runOpenPondServerCommand("app-server", options, rest)
538
- },
539
- {
540
- name: "serve",
541
- usage: "openpond serve [args]",
542
- optionSchema: {
543
- host: "string",
544
- hostname: "string",
545
- listen: "string",
546
- port: "integer"
547
- },
548
- handler: async ({ options, rest }) => (await import("./app-layer-F3CGXB33.js")).runOpenPondServerCommand("serve", options, rest)
549
- },
550
- {
551
- name: "ui",
552
- usage: "openpond ui [--no-open] [--hostname HOST] [--port PORT]",
553
- optionSchema: {
554
- host: "string",
555
- hostname: "string",
556
- listen: "string",
557
- noOpen: "boolean",
558
- port: "integer",
559
- webRoot: "string"
560
- },
561
- handler: async ({ options, rest }) => (await import("./app-layer-F3CGXB33.js")).runOpenPondServerCommand("web", options, rest)
562
- },
563
- {
564
- name: "tui",
565
- aliases: ["interactive"],
566
- usage: "openpond tui [--provider <id>] [--model <id>] [--project <id>]",
567
- optionSchema: {
568
- cwd: "string",
569
- model: "string",
570
- noServerStart: "boolean",
571
- project: "string",
572
- provider: "string",
573
- server: "string"
574
- },
575
- handler: async ({ options, rest }) => (await import("./app-layer-F3CGXB33.js")).runOpenPondTerminalCommand(options, rest)
576
- },
577
- {
578
- name: "chat",
579
- 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>]",
580
- optionSchema: CHAT_OPTION_SCHEMA,
581
- handler: async ({ options, rest }) => (await import("./app-layer-F3CGXB33.js")).runOpenPondTerminalCommand(options, rest)
582
- },
583
- {
584
- name: "tool",
585
- usage: "openpond tool <list|run> <handle>/<repo> [args]",
586
- optionSchema: { body: "json", json: "boolean" },
587
- handler: runToolCommand
588
- },
589
- {
590
- name: "backtest",
591
- usage: "openpond backtest <run|events|get> <handle>/<repo> [args]",
592
- optionSchema: {
593
- body: "json",
594
- branch: "string",
595
- deploymentId: "string",
596
- limit: "integer",
597
- runId: "string"
598
- },
599
- handler: runBacktestCommand
600
- },
601
- {
602
- name: "deploy",
603
- usage: "openpond deploy watch <handle>/<repo> [--branch <branch>]",
604
- optionSchema: { branch: "string" },
605
- handler: runDeployCommand
606
- },
607
- {
608
- name: "template",
609
- usage: "openpond template <status|branches|update> <handle>/<repo> [--env preview|production]",
610
- optionSchema: { env: "string" },
611
- handler: runTemplateCommand
612
- },
613
- {
614
- name: "sandbox-template",
615
- usage: "openpond sandbox-template <command> [args]",
616
- optionSchema: SANDBOX_TEMPLATE_OPTION_SCHEMA,
617
- handler: async ({ options, rest }) => (await import("./sandbox-template-Z6P7NTNF.js")).runSandboxTemplateCommand(options, rest)
618
- },
619
- {
620
- name: "repo",
621
- usage: "openpond repo <create|push> [--name <name>] [--path <dir>] [--branch <branch>]",
622
- optionSchema: {
623
- branch: "string",
624
- name: "string",
625
- path: "string"
626
- },
627
- handler: runRepoCommand
628
- },
629
- {
630
- name: "organizations",
631
- aliases: ["organization"],
632
- usage: "openpond organizations <login|list|use|logout|whoami> [args]",
633
- optionSchema: {
634
- accessToken: "string",
635
- arguments: "json",
636
- callbackPort: "integer",
637
- clientId: "string",
638
- customDomain: "string",
639
- displayName: "string",
640
- email: "string",
641
- env: "string",
642
- environment: "string",
643
- json: "boolean",
644
- name: "string",
645
- open: "boolean",
646
- origin: "string",
647
- primaryContactEmail: "string",
648
- printToken: "boolean",
649
- resourceUrl: "string",
650
- role: "string",
651
- scope: "string",
652
- scopes: "string",
653
- slug: "string",
654
- status: "string",
655
- timeout: "integer",
656
- timeoutSeconds: "integer",
657
- tool: "string",
658
- toolName: "string",
659
- toolset: "string",
660
- url: "string"
661
- },
662
- handler: async ({ options, rest }) => (await import("./organizations-CPNC47DO.js")).runOrganizationsCommand(options, rest)
663
- },
664
- {
665
- name: "project",
666
- usage: "openpond project <list|create|upsert|get|update|sync|source-upload|archive> [args]",
667
- optionSchema: PROJECT_OPTION_SCHEMA,
668
- handler: async ({ options, rest }) => (await import("./project-agent-YHUBX4OR.js")).runProjectCommand(options, rest)
669
- },
670
- {
671
- name: "agent",
672
- usage: "openpond agent <inspect|build|validate|eval|traces|list|create|upsert|get|update|run|run-test|bind-source|source|archive> [args]",
673
- usages: [
674
- "openpond agent run <action> [--cwd <project>] [--input <json>]",
675
- "openpond agent run <agentId> --team-id <id> [--conversation-id <id>] [--target-project-id <projectId>] [--input <json>]",
676
- "openpond agent source checks <agentId> --team-id <id> [--check-kind <kind>]",
677
- "openpond agent source publish <agentId> --team-id <id> [--expected-manifest-hash <hash>]"
678
- ],
679
- optionSchema: AGENT_OPTION_SCHEMA,
680
- handler: async ({ options, rest }) => (await import("./project-agent-YHUBX4OR.js")).runAgentCommand(options, rest)
681
- },
682
- {
683
- name: "desktop-test",
684
- usage: "openpond desktop-test <run|attach> <scenario...> [--isolated|--attach|--packaged|--none] [--app <path>] [--artifacts-dir <path>] [--json <path>]",
685
- optionSchema: {
686
- artifactsDir: "string",
687
- attach: "boolean",
688
- cwd: "string",
689
- devtoolsPort: "integer",
690
- grep: "string",
691
- isolated: "boolean",
692
- json: "string",
693
- jsonPath: "string",
694
- keepHome: "boolean",
695
- none: "boolean",
696
- server: "string",
697
- timeoutMs: "integer",
698
- token: "string",
699
- tokenFile: "string"
700
- },
701
- handler: async ({ options, rest }) => (await import("./desktop-test-QOS7G5NE.js")).runDesktopTestCommand(options, rest)
702
- },
703
- {
704
- name: "sandbox",
705
- usage: "openpond sandbox <command> [args]",
706
- optionSchema: SANDBOX_OPTION_SCHEMA,
707
- handler: async ({ options, rest }) => (await import("./sandbox-command-YFL5QTWX.js")).runSandboxCommand(options, rest)
708
- },
709
- {
710
- name: "continual",
711
- usage: "openpond continual <init|validate|run|report> [manifest-or-series-id]",
712
- usages: [
713
- "openpond continual init --from <tasks.jsonl> [--output <continual-support.yaml>] [--non-interactive]",
714
- "openpond continual validate <continual-support.yaml> [--json]",
715
- "openpond continual run <continual-support.yaml> [--api-base-url <url>] [--json]",
716
- "openpond continual report <comparison-series-id> [--output <report.json>] [--json]"
717
- ],
718
- optionSchema: {
719
- apiBaseUrl: "string",
720
- commit: "string",
721
- correctionCasesPerFamily: "integer",
722
- correctionSelection: "string",
723
- description: "string",
724
- from: "string",
725
- grader: "string",
726
- id: "string",
727
- json: "boolean",
728
- license: "string",
729
- name: "string",
730
- nonInteractive: "boolean",
731
- output: "string",
732
- repository: "string",
733
- seed: "string",
734
- semanticSimilarityThreshold: "number"
735
- },
736
- handler: async ({ options, rest }) => (await import("./continual-37CE4LLJ.js")).runContinualCommand(options, rest)
737
- },
738
- {
739
- name: "training",
740
- usage: "openpond training <create-project|start|status|watch|logs|cancel|resume|artifacts|benchmark> <taskset-id|model-run-id|run-id|model-id>",
741
- usages: [
742
- "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]",
743
- "openpond training start <model-project-id> [--comparison-series-entry <entry-id>] [--manifest <path>] [--yes] [--export-approved] [--max-spend <usd>] [--retention-days <days>] [--detach] [--json]",
744
- "openpond training status <run-id> [--json]",
745
- "openpond training watch <run-id> [--interval-ms <ms>] [--json]",
746
- "openpond training logs <run-id> [--json]",
747
- "openpond training cancel <run-id> [--json]",
748
- "openpond training resume <model-run-id> [--json]",
749
- "openpond training artifacts <run-id> [--json]",
750
- "openpond training benchmark <model-id> [--provider <id>] [--model <id>] [--reasoning-effort <level>] [--max-spend <usd>] [--json]"
751
- ],
752
- optionSchema: {
753
- apiBaseUrl: "string",
754
- comparisonSeriesEntry: "string",
755
- detach: "boolean",
756
- destination: "string",
757
- exportApproved: "boolean",
758
- gpuPlacementObjective: "string",
759
- intervalMs: "integer",
760
- json: "boolean",
761
- manifest: "string",
762
- maxSpend: "number",
763
- model: "string",
764
- name: "string",
765
- objective: "string",
766
- profile: "string",
767
- projectId: "string",
768
- provider: "string",
769
- recipe: "string",
770
- reasoningEffort: "string",
771
- retentionDays: "integer",
772
- rolloutPlacement: "string",
773
- runPreset: "string",
774
- yes: "boolean"
775
- },
776
- handler: async ({ options, rest }) => (await import("./training-4XH37UZB.js")).runTrainingCommand(options, rest)
777
- },
778
- {
779
- name: "taskset",
780
- usage: "openpond taskset <import|publish|readiness|delete-draft> <package-path|draft-id|taskset-id> [--profile <id>] [--model <id>] [--json]",
781
- usages: [
782
- "openpond taskset import <package-directory|taskset.json> [--profile <id>] [--json]",
783
- "openpond taskset publish <draft-id> [--model <id>] [--json]",
784
- "openpond taskset readiness <taskset-id> [--json]",
785
- "openpond taskset delete-draft <draft-id> [--json]"
786
- ],
787
- optionSchema: {
788
- apiBaseUrl: "string",
789
- json: "boolean",
790
- model: "string",
791
- profile: "string"
792
- },
793
- handler: async ({ options, rest }) => (await import("./taskset-2TRZBRRT.js")).runTasksetCommand(options, rest)
794
- },
795
- {
796
- name: "opchat",
797
- usage: "openpond opchat <command> [args]",
798
- optionSchema: {
799
- compatModel: "string",
800
- compatibilityModel: "string",
801
- env: "string",
802
- environment: "string",
803
- json: "boolean",
804
- message: "string",
805
- model: "string",
806
- opchatApiBaseUrl: "string",
807
- opchatApiUrl: "string",
808
- prompt: "string",
809
- skipStream: "boolean",
810
- skipTool: "boolean",
811
- stream: "boolean"
812
- },
813
- handler: async ({ options, rest }) => (await import("./opchat-ABX5YBAT.js")).runOpChatCommand(options, rest)
814
- },
815
- {
816
- name: "teams-bot",
817
- usage: "openpond teams-bot <command> [args]",
818
- optionSchema: {
819
- json: "boolean",
820
- teamId: "string"
821
- },
822
- handler: async ({ options, rest }) => (await import("./teams-bot-WD33NLH5.js")).runTeamsBotCommand(options, rest)
823
- },
824
- {
825
- name: "apps",
826
- usage: "openpond apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|agent create> [args]",
827
- optionSchema: {
828
- appId: "string",
829
- body: "json",
830
- env: "json",
831
- json: "boolean",
832
- limit: "integer",
833
- refresh: "boolean",
834
- teamId: "string",
835
- watch: "boolean"
836
- },
837
- handler: runAppsCommand
838
- },
839
- {
840
- name: "opentool",
841
- usage: "openpond opentool <init|validate|build> [args]",
842
- optionSchema: {},
843
- handler: async ({ rest }) => (await import("./core-commands-SWGIOZLW.js")).runOpentool(rest)
844
- }
845
- ];
846
- var CLI_COMMAND_BY_NAME = /* @__PURE__ */ new Map();
847
- for (const definition of CLI_COMMAND_REGISTRY) {
848
- CLI_COMMAND_BY_NAME.set(definition.name, definition);
849
- for (const alias of definition.aliases ?? []) {
850
- CLI_COMMAND_BY_NAME.set(alias, definition);
851
- }
852
- }
853
- function listCliCommandDefinitions() {
854
- return CLI_COMMAND_REGISTRY;
855
- }
856
- function getCliCommandDefinition(command) {
857
- return CLI_COMMAND_BY_NAME.get(command) ?? null;
858
- }
859
- function getCliOptionKind(command, key) {
860
- const definition = command ? getCliCommandDefinition(command) : getCliCommandDefinition("ui");
861
- return definition?.optionSchema[key] ?? CLI_GLOBAL_OPTION_SCHEMA[key];
862
- }
863
- function getAnyCliOptionKind(key) {
864
- const globalKind = CLI_GLOBAL_OPTION_SCHEMA[key];
865
- if (globalKind) return globalKind;
866
- for (const definition of CLI_COMMAND_REGISTRY) {
867
- const kind = definition.optionSchema[key];
868
- if (kind) return kind;
869
- }
870
- return void 0;
871
- }
872
- async function runCliCommand(context) {
873
- const definition = getCliCommandDefinition(context.command);
874
- if (!definition) return false;
875
- if (parseBooleanOption(context.options.help)) {
876
- printCliCommandUsage(definition);
877
- return true;
878
- }
879
- await definition.handler(context);
880
- return true;
881
- }
882
- function formatCliCommandUsage(definition) {
883
- const lines = [
884
- `Usage:`,
885
- ` ${definition.usage}`,
886
- ...(definition.usages ?? []).map((usage) => ` ${usage}`)
887
- ];
888
- if (definition.aliases?.length) {
889
- lines.push("", `Aliases:`, ` ${definition.aliases.join(", ")}`);
890
- }
891
- const options = Object.entries(definition.optionSchema).sort(
892
- ([left], [right]) => left.localeCompare(right)
893
- );
894
- if (options.length > 0) {
895
- lines.push("", "Options:");
896
- for (const [name, kind] of options) {
897
- const optionName = cliOptionName(name);
898
- lines.push(kind === "boolean" ? ` --${optionName}` : ` --${optionName} <${kind}>`);
899
- }
900
- }
901
- return lines.join("\n");
902
- }
903
- function printCliCommandUsage(definition) {
904
- console.log(formatCliCommandUsage(definition));
905
- }
906
- function cliOptionName(name) {
907
- return name.replace(/[A-Z]/g, (char) => `-${char.toLowerCase()}`);
908
- }
909
- function profileSdkAliasDefinitions() {
910
- const aliases = ["inspect", "build", "validate", "eval", "run"];
911
- return aliases.map((name) => ({
912
- name,
913
- usage: `openpond ${name} [args]`,
914
- optionSchema: PROFILE_SDK_OPTION_SCHEMA,
915
- handler: async ({ options, rest }) => (await import("./profile-Q3HB5MIO.js")).runOpenPondProfileSdkAlias(name, options, rest)
916
- }));
917
- }
918
- async function runToolCommand({ options, rest }) {
919
- const { runToolList, runToolRun } = await import("./core-commands-SWGIOZLW.js");
920
- const subcommand = rest[0];
921
- if (subcommand === "list") {
922
- const target = rest[1];
923
- if (!target) {
924
- throw new Error("usage: tool list <handle>/<repo>");
925
- }
926
- await runToolList(options, target);
927
- return;
928
- }
929
- if (subcommand === "run") {
930
- const target = rest[1];
931
- const toolName = rest[2];
932
- if (!target || !toolName) {
933
- throw new Error(
934
- "usage: tool run <handle>/<repo> <tool> [--body <json>]"
935
- );
936
- }
937
- await runToolRun(options, target, toolName);
938
- return;
939
- }
940
- throw new Error("usage: tool <list|run> <handle>/<repo> [args]");
941
- }
942
- async function runBacktestCommand({ options, rest }) {
943
- const { runBacktestRun } = await import("./core-commands-SWGIOZLW.js");
944
- const { runBacktestEvents, runBacktestGet } = await import("./apps-L5XCL7QY.js");
945
- const subcommand = rest[0] || "run";
946
- if (subcommand === "run") {
947
- const target = rest[1];
948
- const toolName = rest[2];
949
- if (!target || !toolName) {
950
- throw new Error(
951
- "usage: backtest run <handle>/<repo> <tool> [--body <json>] [--branch <branch>] [--deployment-id <id>]"
952
- );
953
- }
954
- await runBacktestRun(options, target, toolName);
955
- return;
956
- }
957
- if (subcommand === "events") {
958
- const target = rest[1];
959
- if (!target) {
960
- throw new Error(
961
- "usage: backtest events <handle>/<repo> [--run-id <id>] [--limit <n>]"
962
- );
963
- }
964
- await runBacktestEvents(options, target);
965
- return;
966
- }
967
- if (subcommand === "get") {
968
- const target = rest[1];
969
- if (!target) {
970
- throw new Error("usage: backtest get <handle>/<repo> --run-id <id>");
971
- }
972
- await runBacktestGet(options, target);
973
- return;
974
- }
975
- throw new Error("usage: backtest <run|events|get> <handle>/<repo> [args]");
976
- }
977
- async function runDeployCommand({ options, rest }) {
978
- const { runDeployWatch } = await import("./core-commands-SWGIOZLW.js");
979
- const subcommand = rest[0] || "watch";
980
- if (subcommand !== "watch") {
981
- throw new Error(
982
- "usage: deploy watch <handle>/<repo> [--branch <branch>]"
983
- );
984
- }
985
- const target = rest[1];
986
- if (!target) {
987
- throw new Error(
988
- "usage: deploy watch <handle>/<repo> [--branch <branch>]"
989
- );
990
- }
991
- await runDeployWatch(options, target);
992
- }
993
- async function runTemplateCommand({ options, rest }) {
994
- const { runTemplateBranches, runTemplateStatus, runTemplateUpdate } = await import("./core-commands-SWGIOZLW.js");
995
- const subcommand = rest[0] || "status";
996
- const target = rest[1];
997
- if (!target) {
998
- throw new Error(
999
- "usage: template <status|branches|update> <handle>/<repo> [--env preview|production]"
1000
- );
1001
- }
1002
- if (subcommand === "status") {
1003
- await runTemplateStatus(options, target);
1004
- return;
1005
- }
1006
- if (subcommand === "branches") {
1007
- await runTemplateBranches(options, target);
1008
- return;
1009
- }
1010
- if (subcommand === "update") {
1011
- await runTemplateUpdate(options, target);
1012
- return;
1013
- }
1014
- throw new Error(
1015
- "usage: template <status|branches|update> <handle>/<repo> [--env preview|production]"
1016
- );
1017
- }
1018
- async function runRepoCommand({ options, rest }) {
1019
- const { runRepoCreate, runRepoPush } = await import("./core-commands-SWGIOZLW.js");
1020
- const subcommand = rest[0] || "create";
1021
- if (subcommand === "create") {
1022
- await runRepoCreate(options, rest.slice(1));
1023
- return;
1024
- }
1025
- if (subcommand === "push") {
1026
- await runRepoPush(options);
1027
- return;
1028
- }
1029
- throw new Error(
1030
- "usage: repo <create|push> [--name <name>] [--path <dir>] [--branch <branch>]"
1031
- );
1032
- }
1033
- async function runAppsCommand({ options, rest }) {
1034
- const {
1035
- runAppsAgentCreate,
1036
- runAppsAssistant,
1037
- runAppsCodeVisibility,
1038
- runAppsDeploy,
1039
- runAppsEnvGet,
1040
- runAppsEnvSet,
1041
- runAppsList,
1042
- runAppsPerformance,
1043
- runAppsSummary,
1044
- runAppsTools,
1045
- runAppsToolsExecute
1046
- } = await import("./apps-L5XCL7QY.js");
1047
- const subcommand = rest[0];
1048
- if (subcommand === "list") {
1049
- await runAppsList(options);
1050
- return;
1051
- }
1052
- if (subcommand === "code-visibility") {
1053
- const target = rest[1];
1054
- if (!target) {
1055
- throw new Error(
1056
- "usage: apps code-visibility <handle>/<repo> --visibility public|private"
1057
- );
1058
- }
1059
- await runAppsCodeVisibility(options, target);
1060
- return;
1061
- }
1062
- if (subcommand === "tools") {
1063
- if (rest[1] === "execute") {
1064
- const appId = rest[2];
1065
- const deploymentId = rest[3];
1066
- const toolName = rest[4];
1067
- if (!appId || !deploymentId || !toolName) {
1068
- throw new Error(
1069
- "usage: apps tools execute <appId> <deploymentId> <tool> [--body <json>]"
1070
- );
1071
- }
1072
- await runAppsToolsExecute(options, appId, deploymentId, toolName);
1073
- return;
1074
- }
1075
- await runAppsTools();
1076
- return;
1077
- }
1078
- if (subcommand === "deploy") {
1079
- const target = rest[1];
1080
- if (!target) {
1081
- throw new Error(
1082
- "usage: apps deploy <handle>/<repo> [--env preview|production] [--watch]"
1083
- );
1084
- }
1085
- await runAppsDeploy(options, target);
1086
- return;
1087
- }
1088
- if (subcommand === "env" && rest[1] === "get") {
1089
- const target = rest[2];
1090
- if (!target) {
1091
- throw new Error("usage: apps env get <handle>/<repo>");
1092
- }
1093
- await runAppsEnvGet(options, target);
1094
- return;
1095
- }
1096
- if (subcommand === "env" && rest[1] === "set") {
1097
- const target = rest[2];
1098
- if (!target) {
1099
- throw new Error("usage: apps env set <handle>/<repo> --env <json>");
1100
- }
1101
- await runAppsEnvSet(options, target);
1102
- return;
1103
- }
1104
- if (subcommand === "performance") {
1105
- await runAppsPerformance(options);
1106
- return;
1107
- }
1108
- if (subcommand === "summary") {
1109
- const target = rest[1];
1110
- if (!target) {
1111
- throw new Error("usage: apps summary <handle>/<repo>");
1112
- }
1113
- await runAppsSummary(options, target);
1114
- return;
1115
- }
1116
- if (subcommand === "assistant") {
1117
- const mode = rest[1];
1118
- const target = rest[2];
1119
- if (mode !== "plan" && mode !== "performance" || !target) {
1120
- throw new Error(
1121
- "usage: apps assistant <plan|performance> <handle>/<repo> --prompt <text>"
1122
- );
1123
- }
1124
- await runAppsAssistant(options, mode, target, rest.slice(3));
1125
- return;
1126
- }
1127
- if (subcommand === "agent" && rest[1] === "create") {
1128
- await runAppsAgentCreate(options, rest.slice(2));
1129
- return;
1130
- }
1131
- throw new Error(
1132
- "usage: apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|agent create> [args]"
1133
- );
1134
- }
1135
-
1136
- export {
1137
- getInstalledCliVersion,
1138
- compareSemver,
1139
- fetchLatestNpmVersion,
1140
- CLI_GLOBAL_OPTION_SCHEMA,
1141
- CLI_SHORT_OPTION_ALIASES,
1142
- listCliCommandDefinitions,
1143
- getCliCommandDefinition,
1144
- getCliOptionKind,
1145
- getAnyCliOptionKind,
1146
- runCliCommand,
1147
- formatCliCommandUsage
1148
- };