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,602 +0,0 @@
1
- import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import {
3
- ensureApiKey,
4
- fetchAppsWithCache,
5
- formatTokenizedRepoUrl,
6
- formatTokenizedRepoUrlForPrint,
7
- getGitRemoteUrl,
8
- pollDeploymentLogs,
9
- promptConfirm,
10
- promptForApiKey,
11
- promptForPath,
12
- redactToken,
13
- resolveApiKey,
14
- resolveAppTarget,
15
- resolveRepoUrl,
16
- runCommand,
17
- warnOnRepoHostMismatch
18
- } from "./chunk-3VEYNDHN.js";
19
- import {
20
- checkOpenPondApiHealth,
21
- createHeadlessApps,
22
- createRepo,
23
- deployLatestTemplate,
24
- executeHostedTool,
25
- getDeploymentDetail,
26
- getLatestDeploymentForApp,
27
- getOpenPondAccount,
28
- getTemplateStatus,
29
- listConfiguredProfiles,
30
- listTemplateBranches,
31
- loadConfig,
32
- saveProfileApiKey,
33
- setActiveProfile,
34
- submitBacktestRun
35
- } from "./chunk-FJ2JGB2N.js";
36
- import {
37
- normalizeTemplateRepoUrl,
38
- resolveApiBaseUrlOption,
39
- resolveBaseUrl,
40
- resolveBaseUrlOption,
41
- resolveChatApiBaseUrlOption,
42
- resolvePublicApiBaseUrl
43
- } from "./chunk-SMNFI2FU.js";
44
- import {
45
- compareSemver,
46
- fetchLatestNpmVersion,
47
- getInstalledCliVersion
48
- } from "./chunk-7RIGZB7N.js";
49
- import {
50
- parseBooleanOption,
51
- parseJsonOption,
52
- resolveTemplateEnvironment
53
- } from "./chunk-MUMPWI4O.js";
54
-
55
- // src/cli/core-commands.ts
56
- import { promises as fs, existsSync } from "node:fs";
57
- import path from "node:path";
58
- import { stdin as input } from "node:process";
59
- async function runTemplateStatus(_options, target) {
60
- const config = await loadConfig();
61
- const uiBase = resolveBaseUrl(config);
62
- const apiBase = resolvePublicApiBaseUrl(config);
63
- const apiKey = await ensureApiKey(config, uiBase);
64
- const { app } = await resolveAppTarget(apiBase, apiKey, target);
65
- const status = await getTemplateStatus(apiBase, apiKey, app.id);
66
- console.log(JSON.stringify(status, null, 2));
67
- }
68
- async function runTemplateBranches(_options, target) {
69
- const config = await loadConfig();
70
- const uiBase = resolveBaseUrl(config);
71
- const apiBase = resolvePublicApiBaseUrl(config);
72
- const apiKey = await ensureApiKey(config, uiBase);
73
- const { app } = await resolveAppTarget(apiBase, apiKey, target);
74
- const branches = await listTemplateBranches(apiBase, apiKey, app.id);
75
- console.log(JSON.stringify(branches, null, 2));
76
- }
77
- async function runTemplateUpdate(options, target) {
78
- const config = await loadConfig();
79
- const uiBase = resolveBaseUrl(config);
80
- const apiBase = resolvePublicApiBaseUrl(config);
81
- const apiKey = await ensureApiKey(config, uiBase);
82
- const { app } = await resolveAppTarget(apiBase, apiKey, target);
83
- const envRaw = typeof options.env === "string" ? options.env : typeof options.environment === "string" ? options.environment : void 0;
84
- const environment = resolveTemplateEnvironment(envRaw);
85
- const result = await deployLatestTemplate(apiBase, apiKey, app.id, {
86
- environment
87
- });
88
- console.log(JSON.stringify(result, null, 2));
89
- }
90
- async function runLogin(options) {
91
- const config = await loadConfig();
92
- const baseUrl = resolveBaseUrl(config);
93
- const rawApiKey = typeof options.apiKey === "string" ? options.apiKey : typeof options.key === "string" ? options.key : null;
94
- const apiKey = rawApiKey ? rawApiKey.trim() : await promptForApiKey();
95
- if (!apiKey) {
96
- throw new Error("API key is required");
97
- }
98
- if (!apiKey.startsWith("opk_")) {
99
- console.log("warning: API keys usually start with opk_.");
100
- }
101
- await saveProfileApiKey({
102
- handle: config.activeProfile?.handle || "default",
103
- apiKey,
104
- baseUrl,
105
- apiBaseUrl: config.apiBaseUrl,
106
- chatApiBaseUrl: config.chatApiBaseUrl,
107
- setActive: true
108
- });
109
- console.log("Saved account credentials to the encrypted OpenPond credential store.");
110
- }
111
- async function runProfiles(options, rest) {
112
- const subcommand = rest[0] || "list";
113
- if (subcommand === "list") {
114
- const profiles = await listConfiguredProfiles();
115
- console.log(JSON.stringify({ profiles }, null, 2));
116
- return;
117
- }
118
- if (subcommand === "use") {
119
- const handle = rest[1];
120
- if (!handle) {
121
- throw new Error("usage: profiles use <name> [--base-url <url>]");
122
- }
123
- const profile = await setActiveProfile(handle, {
124
- baseUrl: resolveBaseUrlOption(options)
125
- });
126
- console.log(JSON.stringify({ profile }, null, 2));
127
- return;
128
- }
129
- if (subcommand === "save") {
130
- const handle = rest[1];
131
- if (!handle) {
132
- throw new Error(
133
- "usage: profiles save <name> --api-key <key> [--base-url <url>] [--api-base-url <url>] [--chat-api-base-url <url>]"
134
- );
135
- }
136
- const rawApiKey = typeof options.apiKey === "string" ? options.apiKey : typeof options.key === "string" ? options.key : null;
137
- const apiKey = rawApiKey ? rawApiKey.trim() : await promptForApiKey();
138
- const environment = typeof options.environment === "string" ? options.environment : typeof options.env === "string" ? options.env : void 0;
139
- const profile = await saveProfileApiKey({
140
- handle,
141
- apiKey,
142
- baseUrl: resolveBaseUrlOption(options),
143
- apiBaseUrl: resolveApiBaseUrlOption(options),
144
- chatApiBaseUrl: resolveChatApiBaseUrlOption(options),
145
- environment,
146
- setActive: true
147
- });
148
- console.log(JSON.stringify({ profile }, null, 2));
149
- return;
150
- }
151
- throw new Error("usage: profiles <list|use|save> [args]");
152
- }
153
- async function runAccount() {
154
- const config = await loadConfig();
155
- const uiBase = resolveBaseUrl(config);
156
- const apiBase = resolvePublicApiBaseUrl(config);
157
- const apiKey = await ensureApiKey(config, uiBase);
158
- const account = await getOpenPondAccount(apiBase, apiKey);
159
- console.log(JSON.stringify(account, null, 2));
160
- }
161
- async function runHealth(_options) {
162
- const config = await loadConfig();
163
- const apiBase = resolvePublicApiBaseUrl(config);
164
- const apiKey = resolveApiKey(config);
165
- const health = await checkOpenPondApiHealth(apiBase, apiKey);
166
- console.log(JSON.stringify(health, null, 2));
167
- }
168
- async function runToolList(options, target) {
169
- const config = await loadConfig();
170
- const uiBase = resolveBaseUrl(config);
171
- const apiBase = resolvePublicApiBaseUrl(config);
172
- const apiKey = await ensureApiKey(config, uiBase);
173
- const { app } = await resolveAppTarget(apiBase, apiKey, target);
174
- const branch = typeof options.branch === "string" ? String(options.branch) : void 0;
175
- const latest = await getLatestDeploymentForApp(apiBase, apiKey, app.id, {
176
- branch
177
- });
178
- if (!latest?.id) {
179
- console.log("no deployments found");
180
- return;
181
- }
182
- const detail = await getDeploymentDetail(apiBase, apiKey, latest.id);
183
- const toolsRaw = (detail && Array.isArray(detail.toolsJson) ? detail.toolsJson : null) || (detail && typeof detail.metadataJson === "object" && detail.metadataJson ? detail.metadataJson.tools : null);
184
- const tools = Array.isArray(toolsRaw) ? toolsRaw : [];
185
- if (tools.length === 0) {
186
- console.log("no tools found");
187
- return;
188
- }
189
- for (const tool of tools) {
190
- const record = tool;
191
- const profile = record.profile || record.function;
192
- const name = record.name || profile?.name || "unknown";
193
- const description = record.description || profile?.description || "";
194
- console.log(description ? `${name} - ${description}` : name);
195
- }
196
- }
197
- async function runToolRun(options, target, toolName) {
198
- const config = await loadConfig();
199
- const uiBase = resolveBaseUrl(config);
200
- const apiBase = resolvePublicApiBaseUrl(config);
201
- const apiKey = await ensureApiKey(config, uiBase);
202
- const { app } = await resolveAppTarget(apiBase, apiKey, target);
203
- const branch = typeof options.branch === "string" ? String(options.branch) : void 0;
204
- const latest = await getLatestDeploymentForApp(apiBase, apiKey, app.id, {
205
- branch
206
- });
207
- if (!latest?.id) {
208
- throw new Error("no deployments found");
209
- }
210
- let body = void 0;
211
- if (typeof options.body === "string") {
212
- try {
213
- body = JSON.parse(options.body);
214
- } catch {
215
- throw new Error("tool body must be valid JSON");
216
- }
217
- }
218
- const method = typeof options.method === "string" ? String(options.method).toUpperCase() : "POST";
219
- const result = await executeHostedTool(uiBase, apiKey, {
220
- appId: app.id,
221
- deploymentId: latest.id,
222
- toolName,
223
- method,
224
- body,
225
- headers: apiKey ? { "openpond-api-key": apiKey } : void 0
226
- });
227
- if (!result.ok) {
228
- throw new Error(result.error || `tool failed (${result.status})`);
229
- }
230
- const output = result.data ?? { ok: true };
231
- console.log(JSON.stringify(output, null, 2));
232
- }
233
- async function runBacktestRun(options, target, toolName) {
234
- const config = await loadConfig();
235
- const uiBase = resolveBaseUrl(config);
236
- const apiBase = resolvePublicApiBaseUrl(config);
237
- const apiKey = await ensureApiKey(config, uiBase);
238
- const { app } = await resolveAppTarget(apiBase, apiKey, target);
239
- const branch = typeof options.branch === "string" ? String(options.branch) : void 0;
240
- const deploymentId = typeof options.deploymentId === "string" ? String(options.deploymentId) : void 0;
241
- const latest = deploymentId ? { id: deploymentId } : await getLatestDeploymentForApp(apiBase, apiKey, app.id, { branch });
242
- if (!latest?.id) {
243
- throw new Error("no deployments found");
244
- }
245
- const bodyRaw = typeof options.body === "string" ? parseJsonOption(String(options.body), "body") : {};
246
- if (!bodyRaw || typeof bodyRaw !== "object" || Array.isArray(bodyRaw)) {
247
- throw new Error("body must be a JSON object");
248
- }
249
- const method = typeof options.method === "string" ? String(options.method).toUpperCase() : "POST";
250
- const payload = {
251
- ...bodyRaw,
252
- appId: app.id,
253
- deploymentId: latest.id,
254
- toolName,
255
- method
256
- };
257
- const result = await submitBacktestRun(apiBase, apiKey, payload);
258
- console.log(JSON.stringify(result, null, 2));
259
- }
260
- async function runDeployWatch(options, target) {
261
- const config = await loadConfig();
262
- const uiBase = resolveBaseUrl(config);
263
- const apiBase = resolvePublicApiBaseUrl(config);
264
- const apiKey = await ensureApiKey(config, uiBase);
265
- const { app, handle, repo } = await resolveAppTarget(apiBase, apiKey, target);
266
- const branch = typeof options.branch === "string" ? String(options.branch) : void 0;
267
- const deploymentId = typeof options.deploymentId === "string" ? String(options.deploymentId) : void 0;
268
- const latest = deploymentId ? { id: deploymentId } : await getLatestDeploymentForApp(apiBase, apiKey, app.id, {
269
- branch
270
- });
271
- if (!latest?.id) {
272
- console.log("no deployments found");
273
- return;
274
- }
275
- await pollDeploymentLogs({
276
- baseUrl: apiBase,
277
- apiKey,
278
- deploymentId: latest.id,
279
- prefix: `[${handle}/${repo}] `,
280
- intervalMs: options.interval ? Number(options.interval) : void 0,
281
- timeoutMs: options.timeout ? Number(options.timeout) : void 0
282
- });
283
- }
284
- async function runRepoCreate(options, nameParts) {
285
- const name = (typeof options.name === "string" ? options.name : null) || nameParts.join(" ");
286
- const trimmedName = name.trim();
287
- if (!trimmedName) {
288
- throw new Error(
289
- "usage: repo create --name <name> [--team-id <id>] [--path <dir>] [--template <owner/repo|url>] [--template-branch <branch>] [--empty|--opentool] [--sandbox] [--token] [--auto-schedule-migration <true|false>]"
290
- );
291
- }
292
- const config = await loadConfig();
293
- const uiBase = resolveBaseUrl(config);
294
- const apiKey = await ensureApiKey(config, uiBase);
295
- const apiBase = resolvePublicApiBaseUrl(config);
296
- const teamId = typeof options.teamId === "string" && options.teamId.trim() ? options.teamId.trim() : void 0;
297
- const templateInput = typeof options.template === "string" ? options.template.trim() : "";
298
- if (templateInput && (options.empty === "true" || options.opentool === "true")) {
299
- throw new Error("choose one: --template or --empty/--opentool");
300
- }
301
- if (options.empty === "true" && options.opentool === "true") {
302
- throw new Error("choose one: --empty or --opentool");
303
- }
304
- const description = typeof options.description === "string" ? options.description.trim() : void 0;
305
- const templateBranch = typeof options.templateBranch === "string" && options.templateBranch.trim().length > 0 ? options.templateBranch.trim() : void 0;
306
- const envVars = typeof options.env === "string" ? parseJsonOption(options.env, "env") : void 0;
307
- if (envVars) {
308
- if (typeof envVars !== "object" || Array.isArray(envVars)) {
309
- throw new Error("env must be a JSON object");
310
- }
311
- for (const [key, value] of Object.entries(envVars)) {
312
- if (typeof value !== "string") {
313
- throw new Error(`env value for ${key} must be a string`);
314
- }
315
- }
316
- }
317
- if (templateInput) {
318
- if (options.deployOnPush !== void 0) {
319
- console.warn(
320
- "deploy-on-push is not used for template create (auto deploys)"
321
- );
322
- }
323
- const templateRepoUrl = normalizeTemplateRepoUrl(templateInput, uiBase);
324
- const response2 = await createHeadlessApps(
325
- apiBase,
326
- apiKey,
327
- [
328
- {
329
- name: trimmedName,
330
- ...description ? { description } : {},
331
- templateRepoUrl,
332
- ...templateBranch ? { templateBranch } : {},
333
- ...envVars ? { envVars } : {}
334
- }
335
- ],
336
- teamId
337
- );
338
- const item = response2.items?.[0];
339
- if (!item || item.status !== "ok" || !item.appId) {
340
- throw new Error(item?.error || "Template create failed");
341
- }
342
- console.log(`app_id: ${item.appId}`);
343
- if (item.deploymentId) {
344
- console.log(`deployment_id: ${item.deploymentId}`);
345
- }
346
- if (item.conversationId) {
347
- console.log(`conversation_id: ${item.conversationId}`);
348
- }
349
- return;
350
- }
351
- const defaultPath = process.cwd();
352
- const rawPath = typeof options.path === "string" ? options.path : typeof options.dir === "string" ? options.dir : null;
353
- const targetPath = rawPath && rawPath.trim().length > 0 ? rawPath.trim() : input.isTTY ? await promptForPath(defaultPath) : defaultPath;
354
- const repoPath = path.resolve(targetPath);
355
- if (existsSync(repoPath)) {
356
- const stats = await fs.stat(repoPath);
357
- if (!stats.isDirectory()) {
358
- throw new Error(`path is not a directory: ${repoPath}`);
359
- }
360
- } else {
361
- await fs.mkdir(repoPath, { recursive: true });
362
- }
363
- const entries = await fs.readdir(repoPath);
364
- const nonGitEntries = entries.filter((entry) => entry !== ".git");
365
- const isEmpty = nonGitEntries.length === 0;
366
- const force = parseBooleanOption(options.yes) || parseBooleanOption(options.force);
367
- if (!isEmpty && !force) {
368
- const proceed = await promptConfirm(
369
- `Directory is not empty (${repoPath}). Continue?`,
370
- false
371
- );
372
- if (!proceed) {
373
- console.log("aborted");
374
- return;
375
- }
376
- }
377
- const gitDir = path.join(repoPath, ".git");
378
- const hasGit = existsSync(gitDir);
379
- if (!hasGit) {
380
- const proceed = force ? true : await promptConfirm("Initialize git repository here?", true);
381
- if (!proceed) {
382
- console.log("aborted");
383
- return;
384
- }
385
- const result = await runCommand("git", ["init"], { cwd: repoPath });
386
- if (result.code !== 0) {
387
- throw new Error(
388
- `git init failed: ${result.stderr.trim() || result.stdout.trim() || "unknown error"}`
389
- );
390
- }
391
- }
392
- const originUrl = await getGitRemoteUrl(repoPath, "origin");
393
- if (originUrl && !force) {
394
- const proceed = await promptConfirm(
395
- `Remote "origin" already set (${originUrl}). Replace it?`,
396
- false
397
- );
398
- if (!proceed) {
399
- console.log("aborted");
400
- return;
401
- }
402
- }
403
- const repoInit = options.opentool === "true" ? "opentool" : "empty";
404
- const sandbox = parseBooleanOption(options.sandbox);
405
- const deployOnPush = parseBooleanOption(options.deployOnPush);
406
- const autoScheduleMigrationOption = options.autoScheduleMigration;
407
- const autoScheduleMigrationSpecified = typeof autoScheduleMigrationOption === "string" || typeof autoScheduleMigrationOption === "boolean";
408
- const autoScheduleMigration = autoScheduleMigrationSpecified ? parseBooleanOption(autoScheduleMigrationOption) : void 0;
409
- const response = await createRepo(apiBase, apiKey, {
410
- name: trimmedName,
411
- ...teamId ? { teamId } : {},
412
- ...description ? { description } : {},
413
- ...repoInit ? { repoInit } : {},
414
- ...sandbox ? { sandbox: true } : {},
415
- ...envVars ? { envVars } : {},
416
- ...deployOnPush ? { deployOnPush: true } : {},
417
- ...autoScheduleMigrationSpecified ? { autoScheduleMigration } : {}
418
- });
419
- const repoUrl = resolveRepoUrl(response);
420
- warnOnRepoHostMismatch(repoUrl);
421
- const useTokenRemote = parseBooleanOption(options.token) || parseBooleanOption(options.setRemoteToken);
422
- const tokenRemote = formatTokenizedRepoUrl(repoUrl, apiKey);
423
- const remoteUrl = useTokenRemote ? tokenRemote : repoUrl;
424
- const remoteArgs = originUrl ? ["remote", "set-url", "origin", remoteUrl] : ["remote", "add", "origin", remoteUrl];
425
- const remoteResult = await runCommand("git", remoteArgs, { cwd: repoPath });
426
- if (remoteResult.code !== 0) {
427
- throw new Error(
428
- `git remote failed: ${redactToken(
429
- remoteResult.stderr.trim() || remoteResult.stdout.trim() || "unknown error"
430
- )}`
431
- );
432
- }
433
- const displayRemote = useTokenRemote ? formatTokenizedRepoUrlForPrint(repoUrl) : repoUrl;
434
- console.log(`app_id: ${response.appId}`);
435
- if (response.gitOwner && response.gitRepo) {
436
- console.log(`repo: ${response.gitOwner}/${response.gitRepo}`);
437
- }
438
- console.log(`remote: ${displayRemote}`);
439
- console.log('next: git add . && git commit -m "init"');
440
- const defaultBranch = response.defaultBranch || "master";
441
- console.log(
442
- `next: openpond repo push --path ${repoPath} --branch ${defaultBranch}`
443
- );
444
- if (!useTokenRemote) {
445
- console.log(
446
- `token-remote (non-interactive): git -C ${repoPath} remote set-url origin ${formatTokenizedRepoUrlForPrint(
447
- repoUrl
448
- )}`
449
- );
450
- }
451
- try {
452
- await fetchAppsWithCache({ apiBase, apiKey, forceRefresh: true });
453
- } catch (error) {
454
- console.warn("cache refresh failed", error);
455
- }
456
- }
457
- async function resolveGitBranch(repoPath) {
458
- const result = await runCommand(
459
- "git",
460
- ["rev-parse", "--abbrev-ref", "HEAD"],
461
- {
462
- cwd: repoPath
463
- }
464
- );
465
- if (result.code !== 0) return null;
466
- const branch = result.stdout.trim();
467
- return branch.length > 0 ? branch : null;
468
- }
469
- async function runRepoPush(options) {
470
- const config = await loadConfig();
471
- const baseUrl = resolveBaseUrl(config);
472
- const apiKey = await ensureApiKey(config, baseUrl);
473
- const rawPath = typeof options.path === "string" ? options.path : typeof options.dir === "string" ? options.dir : null;
474
- const repoPath = path.resolve(
475
- rawPath && rawPath.trim().length > 0 ? rawPath.trim() : "."
476
- );
477
- const gitDir = path.join(repoPath, ".git");
478
- if (!existsSync(gitDir)) {
479
- throw new Error(`git repo not found at ${repoPath} (missing .git)`);
480
- }
481
- const originUrl = await getGitRemoteUrl(repoPath, "origin");
482
- if (!originUrl) {
483
- throw new Error("origin remote not set; run `openpond repo create` first");
484
- }
485
- warnOnRepoHostMismatch(originUrl);
486
- const branchOption = typeof options.branch === "string" ? options.branch.trim() : "";
487
- const resolvedBranch = branchOption || await resolveGitBranch(repoPath);
488
- if (!resolvedBranch) {
489
- throw new Error("unable to resolve git branch; pass --branch");
490
- }
491
- let tokenRemote;
492
- try {
493
- tokenRemote = formatTokenizedRepoUrl(originUrl, apiKey);
494
- } catch {
495
- throw new Error("origin remote must be https for tokenized pushes");
496
- }
497
- const keepTokenRemote = parseBooleanOption(options.keepTokenRemote) || parseBooleanOption(options.token) || parseBooleanOption(options.setRemoteToken);
498
- const alreadyTokenized = originUrl.includes("x-access-token:");
499
- const restoreUrl = !keepTokenRemote && !alreadyTokenized ? originUrl : null;
500
- const previousPrompt = process.env.GIT_TERMINAL_PROMPT;
501
- process.env.GIT_TERMINAL_PROMPT = "0";
502
- try {
503
- if (!alreadyTokenized) {
504
- const setResult = await runCommand(
505
- "git",
506
- ["remote", "set-url", "origin", tokenRemote],
507
- {
508
- cwd: repoPath
509
- }
510
- );
511
- if (setResult.code !== 0) {
512
- throw new Error(
513
- `git remote set-url failed: ${redactToken(
514
- setResult.stderr.trim() || setResult.stdout.trim() || "unknown error"
515
- )}`
516
- );
517
- }
518
- }
519
- const pushResult = await runCommand(
520
- "git",
521
- ["push", "-u", "origin", resolvedBranch],
522
- {
523
- cwd: repoPath,
524
- inherit: true
525
- }
526
- );
527
- if (pushResult.code !== 0) {
528
- throw new Error("git push failed");
529
- }
530
- } finally {
531
- if (restoreUrl) {
532
- await runCommand("git", ["remote", "set-url", "origin", restoreUrl], {
533
- cwd: repoPath
534
- }).catch(() => null);
535
- }
536
- if (previousPrompt === void 0) {
537
- delete process.env.GIT_TERMINAL_PROMPT;
538
- } else {
539
- process.env.GIT_TERMINAL_PROMPT = previousPrompt;
540
- }
541
- }
542
- }
543
- async function runOpentool(rawArgs) {
544
- if (rawArgs.length === 0) {
545
- throw new Error("usage: opentool <init|validate|build> [args]");
546
- }
547
- const command = process.platform === "win32" ? "npx.cmd" : "npx";
548
- const result = await runCommand(command, ["opentool", ...rawArgs], {
549
- inherit: true
550
- });
551
- if (result.code !== 0) {
552
- throw new Error("opentool command failed");
553
- }
554
- }
555
- async function runCheckUpdate() {
556
- const packageName = "openpond";
557
- const installed = getInstalledCliVersion();
558
- const latest = await fetchLatestNpmVersion(packageName);
559
- const installCommand = `npm i -g ${packageName}@${latest}`;
560
- const cmp = compareSemver(installed, latest);
561
- if (cmp === 0) {
562
- console.log(`${packageName} is up to date (${installed})`);
563
- return;
564
- }
565
- if (cmp === -1) {
566
- console.log(`Update available: ${installed} -> ${latest}`);
567
- console.log(`Run: ${installCommand}`);
568
- return;
569
- }
570
- if (cmp === 1) {
571
- console.log(
572
- `Installed version (${installed}) is newer than npm latest (${latest}).`
573
- );
574
- return;
575
- }
576
- if (installed === latest) {
577
- console.log(`${packageName} is up to date (${installed})`);
578
- return;
579
- }
580
- console.log(`Installed: ${installed}`);
581
- console.log(`Latest: ${latest}`);
582
- console.log(`Run: ${installCommand}`);
583
- }
584
-
585
- export {
586
- runTemplateStatus,
587
- runTemplateBranches,
588
- runTemplateUpdate,
589
- runLogin,
590
- runProfiles,
591
- runAccount,
592
- runHealth,
593
- runToolList,
594
- runToolRun,
595
- runBacktestRun,
596
- runDeployWatch,
597
- runRepoCreate,
598
- resolveGitBranch,
599
- runRepoPush,
600
- runOpentool,
601
- runCheckUpdate
602
- };
@@ -1,66 +0,0 @@
1
- import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
-
3
- // ../server/src/constants.ts
4
- var DEFAULT_HOST = "127.0.0.1";
5
- var DEFAULT_PORT = 17874;
6
- var VERSION = "0.2.0";
7
- var HOSTED_CHAT_SYSTEM_PROMPT = "You are OpenPond Chat. Respond in the user's language. If the user's latest message is language-neutral, ambiguous, or only a short test, respond in English. Be concise and directly answer the latest request. Do not use emojis. Use Markdown when it improves scanability. If you emit reasoning or thinking content, keep it sparse and user-readable: at most one short sentence for major progress, decisions, or blockers. Omit reasoning for routine searches, reads, tool calls, and obvious next steps. Do not restate the user request, narrate every action, or include code blocks, code excerpts, diffs, raw tool payloads, or markdown examples in reasoning. Put necessary code or exact snippets only in the final assistant answer. When the user asks to show or preview an image that is available as a workspace path or signed image URL, use Markdown image syntax like ![description](path-or-url) instead of a bare path or raw HTML. For workspace-backed answers, use a Codex-style shape: brief outcome first, then Changed Files if files changed, then Verification if checks ran. End with a concise final answer that summarizes the result and verification when relevant. Do not mention raw tool JSON, internal repo paths, or origin/remote URLs unless the user explicitly asks for them or they are necessary to explain a git/deploy failure.";
8
-
9
- // ../server/src/utils.ts
10
- import { randomUUID } from "node:crypto";
11
- import path from "node:path";
12
- import { fileURLToPath } from "node:url";
13
- function now() {
14
- return (/* @__PURE__ */ new Date()).toISOString();
15
- }
16
- function textFromUnknown(value) {
17
- if (typeof value === "string") return value;
18
- if (value instanceof Error) return value.message || value.name;
19
- if (value === null || value === void 0) return "";
20
- try {
21
- return JSON.stringify(value);
22
- } catch {
23
- return String(value);
24
- }
25
- }
26
- function extractDelta(params) {
27
- if (!params || typeof params !== "object") return "";
28
- const record = params;
29
- for (const key of ["delta", "text", "output", "chunk", "message"]) {
30
- if (typeof record[key] === "string") return record[key];
31
- }
32
- if (record.delta && typeof record.delta === "object") return textFromUnknown(record.delta);
33
- return "";
34
- }
35
- function event(input) {
36
- return {
37
- id: randomUUID(),
38
- timestamp: now(),
39
- ...input
40
- };
41
- }
42
- function parseListen(input) {
43
- const value = input.replace(/^https?:\/\//, "");
44
- const [host, port] = value.split(":");
45
- return {
46
- host: host || DEFAULT_HOST,
47
- port: port ? Number.parseInt(port, 10) : DEFAULT_PORT
48
- };
49
- }
50
- function isCliEntrypoint(metaUrl) {
51
- const entry = process.argv[1] ? path.resolve(process.argv[1]) : "";
52
- return entry === path.resolve(fileURLToPath(metaUrl));
53
- }
54
-
55
- export {
56
- DEFAULT_HOST,
57
- DEFAULT_PORT,
58
- VERSION,
59
- HOSTED_CHAT_SYSTEM_PROMPT,
60
- now,
61
- textFromUnknown,
62
- extractDelta,
63
- event,
64
- parseListen,
65
- isCliEntrypoint
66
- };
@@ -1,12 +0,0 @@
1
- import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
-
3
- // ../../packages/cloud/src/urls.ts
4
- var DEFAULT_OPENPOND_WEB_BASE_URL = "https://openpond.ai";
5
- var DEFAULT_OPENPOND_API_BASE_URL = "https://api.openpond.ai";
6
- var DEFAULT_OPENPOND_OPCHAT_API_BASE_URL = "https://api.openpond.ai/opchat/v1";
7
-
8
- export {
9
- DEFAULT_OPENPOND_WEB_BASE_URL,
10
- DEFAULT_OPENPOND_API_BASE_URL,
11
- DEFAULT_OPENPOND_OPCHAT_API_BASE_URL
12
- };