openpond 0.0.37 → 0.0.39

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 (219) hide show
  1. package/README.md +3 -7
  2. package/dist/api/core.d.ts +6 -0
  3. package/dist/api/types.d.ts +0 -50
  4. package/dist/api/vercel-protection.d.ts +1 -0
  5. package/dist/api.d.ts +2 -8
  6. package/dist/chunks/{app-layer-LF2HK2B2.js → app-layer-LTBWNA2F.js} +32 -10
  7. package/dist/chunks/app-server-runtime-VYYJ2AWX.js +18 -0
  8. package/dist/chunks/{apps-ZMCMQZKX.js → apps-CZAJBGE3.js} +6 -124
  9. package/dist/chunks/{chunk-MHBQWGCL.js → chunk-2SF6HLT7.js} +5463 -5535
  10. package/dist/chunks/{chunk-VFL2JVBZ.js → chunk-3CDPPVLE.js} +111 -84
  11. package/dist/chunks/{chunk-N6E6YSTP.js → chunk-3HW6OSHP.js} +1 -3
  12. package/dist/chunks/{chunk-43YI36NA.js → chunk-3KLQ52B2.js} +228 -5
  13. package/dist/chunks/chunk-4HIWFIMN.js +37172 -0
  14. package/dist/chunks/{chunk-WTA33KQQ.js → chunk-4N6E3OVF.js} +4 -4
  15. package/dist/chunks/{chunk-35PPAOWD.js → chunk-6V7MJVRO.js} +56 -11
  16. package/dist/chunks/{chunk-ICLLW5QD.js → chunk-BQQZNGI6.js} +154 -194
  17. package/dist/chunks/chunk-DBHSOTYZ.js +1552 -0
  18. package/dist/chunks/{chunk-ZZ4ECDTP.js → chunk-FCVVOMIP.js} +145 -5
  19. package/dist/chunks/{chunk-A3CJUBA7.js → chunk-JIEUB6OS.js} +1 -1
  20. package/dist/chunks/{chunk-WL76II47.js → chunk-JJPAMKXZ.js} +1 -1
  21. package/dist/chunks/{chunk-2WMGA5FE.js → chunk-JRROTGQT.js} +1 -110
  22. package/dist/chunks/chunk-KHNHUA2H.js +1737 -0
  23. package/dist/chunks/{chunk-LNKYEHIJ.js → chunk-L6XH4ZGZ.js} +1 -1
  24. package/dist/chunks/chunk-M2NXTLH2.js +4054 -0
  25. package/dist/chunks/{chunk-IATK3CIP.js → chunk-MIZHCABO.js} +2 -195
  26. package/dist/chunks/chunk-SMNFI2FU.js +113 -0
  27. package/dist/chunks/chunk-VCVQLECH.js +675 -0
  28. package/dist/chunks/{chunk-KT2BB4AR.js → chunk-ZJBJQCQZ.js} +179 -52
  29. package/dist/chunks/{cli-5NFIDCRL.js → cli-JS76LCW2.js} +9 -5
  30. package/dist/chunks/{core-commands-7223BEQL.js → core-commands-4MRJQZJV.js} +7 -5
  31. package/dist/chunks/{harness-OMJXIGEW.js → desktop-test-RNMWLOVU.js} +15 -14
  32. package/dist/chunks/{chunk-ZPL4GZML.js → extension-GDRW22N3.js} +5866 -3601
  33. package/dist/chunks/{help-YPPROIS7.js → help-LWNREJ7U.js} +1 -1
  34. package/dist/chunks/{opchat-K7IYFPX6.js → opchat-2K2JIGK3.js} +9 -10
  35. package/dist/chunks/{organizations-W3FMAWQ4.js → organizations-Z5HVD2E7.js} +11 -9
  36. package/dist/chunks/{profile-N4B3F7M7.js → profile-QNECVVGN.js} +12 -38
  37. package/dist/chunks/{project-agent-NA6SGU25.js → project-agent-W3V75WBR.js} +9 -411
  38. package/dist/chunks/{sandbox-command-AKCFJKKN.js → sandbox-command-X3FO74NX.js} +7 -5
  39. package/dist/chunks/{sandbox-template-5NKTAXCL.js → sandbox-template-5B4T4BGU.js} +8 -6
  40. package/dist/chunks/{src-XAVSQTVR.js → src-ESAILPUH.js} +32 -30
  41. package/dist/chunks/src-IC5RX4L6.js +63517 -0
  42. package/dist/chunks/{teams-bot-557NZC73.js → teams-bot-NTQ6VFFL.js} +6 -4
  43. package/dist/chunks/training-BR5A7SPU.js +320 -0
  44. package/dist/chunks/{workspaces-S2H75XQB.js → workspaces-XC3QBD2Y.js} +2 -2
  45. package/dist/cli.js +24 -12
  46. package/dist/client-types.d.ts +1 -9
  47. package/dist/client.d.ts +3 -3
  48. package/dist/config.d.ts +9 -3
  49. package/dist/index.js +1300 -1091
  50. package/dist/profile/local-profile-types.d.ts +16 -0
  51. package/dist/profile/local-profile.d.ts +50 -4
  52. package/dist/sandbox/client-handles.d.ts +33 -46
  53. package/dist/sandbox/client.d.ts +4 -26
  54. package/dist/sandbox/sandbox-instance-client.d.ts +5 -5
  55. package/dist/sandbox/types/client.d.ts +1 -2
  56. package/dist/sandbox/types/core.d.ts +0 -1
  57. package/dist/sandbox/types/org-project-agent.d.ts +3 -89
  58. package/dist/sandbox/types/record.d.ts +1 -2
  59. package/dist/sandbox/types/runtime-profiles.d.ts +2 -2
  60. package/dist/sandbox-template/manifest.d.ts +1 -1
  61. package/dist/skills/openpond-agent-authoring/SKILL.md +40 -0
  62. package/dist/skills/openpond-agent-authoring/references/action-and-chat-design.md +13 -0
  63. package/dist/skills/openpond-agent-authoring/references/integrations-and-setup.md +13 -0
  64. package/dist/skills/openpond-agent-authoring/references/profile-layout.md +29 -0
  65. package/dist/skills/openpond-agent-authoring/references/validation-and-repair.md +14 -0
  66. package/dist/skills/openpond-desktop-harness/SKILL.md +1 -1
  67. package/dist/skills/openpond-skill-authoring/SKILL.md +44 -0
  68. package/dist/skills/openpond-skill-authoring/references/copying-and-adaptation.md +16 -0
  69. package/dist/skills/openpond-skill-authoring/references/skill-package-layout.md +38 -0
  70. package/dist/skills/openpond-skill-authoring/references/validation-and-repair.md +24 -0
  71. package/dist/skills/openpond-skill-authoring/scripts/validate-skill.mjs +102 -0
  72. package/dist/skills/openpond-taskset-authoring/SKILL.md +64 -22
  73. package/dist/skills/openpond-taskset-authoring/artifact.json +39 -0
  74. package/dist/skills/openpond-taskset-authoring/references/graders-and-rewards.md +3 -0
  75. package/dist/skills/openpond-taskset-authoring/references/method-selection.md +1 -1
  76. package/dist/skills/openpond-taskset-authoring/references/privacy-and-provenance.md +2 -0
  77. package/dist/skills/openpond-taskset-authoring/references/task-design.md +32 -0
  78. package/dist/web/assets/{AppDialog-y6krB0MJ.js → AppDialog-Bua3f-6v.js} +1 -1
  79. package/dist/web/assets/{AppsView-4F6oLktr.js → AppsView-DrJkHeSO.js} +1 -1
  80. package/dist/web/assets/BrowserSidebar-Bf-4Vozm.js +1 -0
  81. package/dist/web/assets/CommandMenu-DDZlGQiB.js +1 -0
  82. package/dist/web/assets/CommunityView-BtcCrba7.js +1 -0
  83. package/dist/web/assets/ComposerCreateImproveStrip-DOe5Otg6.js +1 -0
  84. package/dist/web/assets/GetStartedView-CG4z0Dtw.js +1 -0
  85. package/dist/web/assets/GetStartedView-yVmnGZPw.css +1 -0
  86. package/dist/web/assets/LabModelVersionDetailPage-BEkmSKuv.js +1 -0
  87. package/dist/web/assets/LabSkillSidebar-BIotN_RB.js +1 -0
  88. package/dist/web/assets/LabsRoute-CfOe0Zt5.js +3 -0
  89. package/dist/web/assets/LabsRoute-CoSPO4HR.css +1 -0
  90. package/dist/web/assets/MainChatThread-C0-l1mHt.js +2 -0
  91. package/dist/web/assets/MainPane-Bky_Rqcx.css +1 -0
  92. package/dist/web/assets/MainPane-aOVlVyRK.js +6 -0
  93. package/dist/web/assets/MarkdownText-D7DT1k1k.js +9 -0
  94. package/dist/web/assets/Messages-CBIXruA9.js +9 -0
  95. package/dist/web/assets/NativeSkillSidebar-C4t69Y7B.js +1 -0
  96. package/dist/web/assets/NewProjectDialog-Bat65tYD.js +1 -0
  97. package/dist/web/assets/OutputsPage-C58n39Db.js +1 -0
  98. package/dist/web/assets/RightChatPanelStack-Bp7nZxQ0.js +1 -0
  99. package/dist/web/assets/ScheduledWorkPage-BXP0j_c_.js +1 -0
  100. package/dist/web/assets/SettingsView-CtWK_aQ0.css +1 -0
  101. package/dist/web/assets/SettingsView-DOOfhO9a.js +6 -0
  102. package/dist/web/assets/TeamChatView-Cgxm-pKA.css +1 -0
  103. package/dist/web/assets/TeamChatView-De2wdqyY.js +3 -0
  104. package/dist/web/assets/{TerminalOverlay-B56XmI-k.js → TerminalOverlay-BsuCH3NX.js} +1 -1
  105. package/dist/web/assets/TrainingCreationPanel-D2OFWyQ-.js +1 -0
  106. package/dist/web/assets/TrainingDraftPanel-DBpulXTz.js +1 -0
  107. package/dist/web/assets/{UsageSettingsSection-r3CqRm6Q.js → UsageSettingsSection-DzMLUXAO.js} +37 -37
  108. package/dist/web/assets/WorkspaceDiffPanel-B7yIhjNF.js +14 -0
  109. package/dist/web/assets/WorkspaceEnvironmentMenu-B6jXM9xG.js +32 -0
  110. package/dist/web/assets/WorkspaceGitDialogs-CQ0fl9Qk.js +1 -0
  111. package/dist/web/assets/{WorkspaceMonacoEditor-CHd22UcG.js → WorkspaceMonacoEditor-C2ctzITz.js} +3 -3
  112. package/dist/web/assets/arrow-up-right-ecwcx3xt.js +1 -0
  113. package/dist/web/assets/chevron-up-DP8PPfWd.js +1 -0
  114. package/dist/web/assets/circle-alert-envg1D6O.js +1 -0
  115. package/dist/web/assets/cloud-upload-5MGPLnaA.js +1 -0
  116. package/dist/web/assets/{cssMode-KFDYjM8T.js → cssMode-CFifcEfw.js} +1 -1
  117. package/dist/web/assets/folder-open-Dq3ZjeEP.js +1 -0
  118. package/dist/web/assets/folder-plus-EiZ5wbv_.js +1 -0
  119. package/dist/web/assets/git-branch-w29jmQ-X.js +1 -0
  120. package/dist/web/assets/{git-commit-horizontal-C8UFKlXy.js → git-commit-horizontal-CGZM0PZo.js} +1 -1
  121. package/dist/web/assets/{htmlMode-NbLN3n6Q.js → htmlMode-Ct1P-_lf.js} +1 -1
  122. package/dist/web/assets/index-ByIQyiUl.js +178 -0
  123. package/dist/web/assets/index-D4uCeiep.js +1 -0
  124. package/dist/web/assets/index-D9jTe16Q.css +1 -0
  125. package/dist/web/assets/info-Cd2HkIeb.js +1 -0
  126. package/dist/web/assets/{jsonMode-Bl3r4LM_.js → jsonMode-BAUNCNAX.js} +1 -1
  127. package/dist/web/assets/{lspLanguageFeatures-DH22w5XD.js → lspLanguageFeatures-fucFYI1A.js} +1 -1
  128. package/dist/web/assets/monaco.contribution-Ce4v5kei.js +2 -0
  129. package/dist/web/assets/monaco.contribution-DLLMi4cB.js +2 -0
  130. package/dist/web/assets/monaco.contribution-g9QiIm1d.js +2 -0
  131. package/dist/web/assets/monaco.contribution-nG-5Cyjz.js +2 -0
  132. package/dist/web/assets/monitor-DgHCnCKl.js +1 -0
  133. package/dist/web/assets/{play-2NDQ4-7K.js → play-Be0XDHBu.js} +1 -1
  134. package/dist/web/assets/{python-CQ0TmUW9.js → python-CEhEiPo7.js} +1 -1
  135. package/dist/web/assets/{refresh-cw-CyermMsy.js → refresh-cw-DH0KLbdD.js} +1 -1
  136. package/dist/web/assets/reply-D1TK2yV8.js +1 -0
  137. package/dist/web/assets/{save-Bij3cc3Q.js → save-C1MSeBnQ.js} +1 -1
  138. package/dist/web/assets/square-CemI-0g5.js +1 -0
  139. package/dist/web/assets/square-pen-CqfsvR_n.js +1 -0
  140. package/dist/web/assets/{toggleHighContrast-CxALivAH.js → toggleHighContrast-DrdQN3Rl.js} +1 -1
  141. package/dist/web/assets/training-BQVNUTZA.css +1 -0
  142. package/dist/web/assets/training-model-data-B7-1Bxil.js +1 -0
  143. package/dist/web/assets/{tsMode-vH4lMS7h.js → tsMode-CKB5oOUU.js} +1 -1
  144. package/dist/web/assets/{upload-DbJfEI3G.js → upload-t751LLqP.js} +1 -1
  145. package/dist/web/assets/useLocalAgentSchedules-CzC3wfIP.js +1 -0
  146. package/dist/web/assets/{wifi-off-BnVFBG28.js → wifi-off-CxTHH3JU.js} +1 -1
  147. package/dist/web/assets/{workers-CBihj7z6.js → workers-CqYddzCd.js} +1 -1
  148. package/dist/web/assets/{yaml-Bhkoq1sy.js → yaml-e5wBkc-C.js} +1 -1
  149. package/dist/web/index.html +2 -2
  150. package/docs/command-reference.md +76 -41
  151. package/package.json +3 -1
  152. package/dist/chunks/chunk-3VURZQHA.js +0 -864
  153. package/dist/chunks/chunk-BWA3COR4.js +0 -3535
  154. package/dist/chunks/chunk-HLCTINEP.js +0 -224
  155. package/dist/chunks/chunk-PGET7EZF.js +0 -3896
  156. package/dist/chunks/chunk-T4QXKU5Y.js +0 -1
  157. package/dist/chunks/chunk-XEJ7XXUQ.js +0 -1301
  158. package/dist/chunks/cli-AS3DZ7XB.js +0 -23
  159. package/dist/chunks/extend-6N5S5KA5.js +0 -89
  160. package/dist/chunks/extension-FJSVCG2Q.js +0 -121
  161. package/dist/chunks/fileFromPath-DHCRY3BD.js +0 -2151
  162. package/dist/chunks/src-SCS4KKP4.js +0 -105881
  163. package/dist/web/assets/BrowserSidebar-C0MHQaaD.js +0 -1
  164. package/dist/web/assets/CloudWorkView-DNoPIlMj.css +0 -1
  165. package/dist/web/assets/CloudWorkView-DwFIZoXy.js +0 -1
  166. package/dist/web/assets/CommandMenu-CYGFrMZi.js +0 -1
  167. package/dist/web/assets/CommunityView-C6n89YXz.js +0 -1
  168. package/dist/web/assets/ComposerCreateImproveStrip-C3RwXC3_.js +0 -1
  169. package/dist/web/assets/GetStartedView-DBLdduwr.css +0 -1
  170. package/dist/web/assets/GetStartedView-fwD0ZXo9.js +0 -1
  171. package/dist/web/assets/LabSkillSidebar-BSuc-NJr.js +0 -1
  172. package/dist/web/assets/LabsRoute-BrJkBNig.css +0 -1
  173. package/dist/web/assets/LabsRoute-D2y8dSsT.js +0 -3
  174. package/dist/web/assets/MainChatThread-Dj_Ry6WQ.js +0 -2
  175. package/dist/web/assets/MakeAgentTutorialLearningPanel-Bz2VDaRe.js +0 -2
  176. package/dist/web/assets/MarkdownText-B6Nu_0Fz.js +0 -7
  177. package/dist/web/assets/Messages-CH2wfv2a.js +0 -10
  178. package/dist/web/assets/NativeSkillSidebar-4iUfgwqO.js +0 -1
  179. package/dist/web/assets/NewProjectDialog-8M5-6-h-.js +0 -1
  180. package/dist/web/assets/PostTrainingLearningPanel-CdG5KHZs.js +0 -2
  181. package/dist/web/assets/PostTrainingStatusPill-COZ4qISQ.js +0 -1
  182. package/dist/web/assets/ProfileSettingsSection-Bo7dybgW.js +0 -1
  183. package/dist/web/assets/ProfileSettingsSection-Cg4tKO-C.css +0 -1
  184. package/dist/web/assets/RightChatPanelStack-Di8zoHJI.js +0 -1
  185. package/dist/web/assets/SettingsView-BcYyY66X.css +0 -1
  186. package/dist/web/assets/SettingsView-CAaKdDHt.js +0 -6
  187. package/dist/web/assets/TeamChatView-Bx44q3WV.css +0 -1
  188. package/dist/web/assets/TeamChatView-CzQYFBap.js +0 -3
  189. package/dist/web/assets/TrainingCreationPanel-C_ntWAAP.js +0 -1
  190. package/dist/web/assets/TrainingDraftPanel-3hJIxLNn.js +0 -1
  191. package/dist/web/assets/WorkspaceDiffPanel-By8PWUuE.js +0 -14
  192. package/dist/web/assets/WorkspaceEnvironmentMenu-7wmC-spz.js +0 -32
  193. package/dist/web/assets/WorkspaceGitDialogs-Hn--lsRh.js +0 -1
  194. package/dist/web/assets/activity-Dp5V58om.js +0 -1
  195. package/dist/web/assets/boxes-DE7WJaEv.js +0 -1
  196. package/dist/web/assets/chevron-up-BWx8gGab.js +0 -1
  197. package/dist/web/assets/circle-x-DnmOfZIg.js +0 -1
  198. package/dist/web/assets/copy-BjWvaXLC.js +0 -1
  199. package/dist/web/assets/create-pipeline-request-C4V6-lWN.js +0 -4
  200. package/dist/web/assets/credit-card-Bjg0Zaw5.js +0 -1
  201. package/dist/web/assets/file-BrC1KjAS.js +0 -1
  202. package/dist/web/assets/git-branch-DTeeARsp.js +0 -1
  203. package/dist/web/assets/index-BcZetaeD.css +0 -1
  204. package/dist/web/assets/index-DQalqxbw.js +0 -177
  205. package/dist/web/assets/index-DYxF_d9i.js +0 -1
  206. package/dist/web/assets/info-BXBpMeVU.js +0 -1
  207. package/dist/web/assets/make-agent-tutorial-CAnTPFCK.js +0 -2
  208. package/dist/web/assets/monaco.contribution-C0BsxYAz.js +0 -2
  209. package/dist/web/assets/monaco.contribution-CzpXjm9j.js +0 -2
  210. package/dist/web/assets/monaco.contribution-DK-g-i00.js +0 -2
  211. package/dist/web/assets/monaco.contribution-iAurj7TQ.js +0 -2
  212. package/dist/web/assets/monitor-Ba2FFblh.js +0 -1
  213. package/dist/web/assets/reply-BSExNLHM.js +0 -1
  214. package/dist/web/assets/rotate-cw-DJ-zYG9E.js +0 -1
  215. package/dist/web/assets/training-BN8CALIc.css +0 -1
  216. package/dist/web/assets/training-model-data-BXUCzS0p.js +0 -1
  217. package/dist/web/tokens/eth.svg +0 -1
  218. package/dist/web/tokens/usdc.svg +0 -1
  219. package/docs/agent-edit-check-status-json.md +0 -132
@@ -1,10 +1,12 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
2
  import {
3
3
  resolveSandboxClient
4
- } from "./chunk-ZZ4ECDTP.js";
5
- import "./chunk-2WMGA5FE.js";
6
- import "./chunk-VFL2JVBZ.js";
7
- import "./chunk-BWA3COR4.js";
4
+ } from "./chunk-FCVVOMIP.js";
5
+ import "./chunk-KHNHUA2H.js";
6
+ import "./chunk-JRROTGQT.js";
7
+ import "./chunk-SMNFI2FU.js";
8
+ import "./chunk-3CDPPVLE.js";
9
+ import "./chunk-DBHSOTYZ.js";
8
10
  import "./chunk-KSRWKXRB.js";
9
11
  import {
10
12
  optionString,
@@ -0,0 +1,320 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import {
3
+ resolveApiBaseUrlOption
4
+ } from "./chunk-SMNFI2FU.js";
5
+ import "./chunk-KSRWKXRB.js";
6
+ import {
7
+ optionString,
8
+ parseBooleanOption,
9
+ parseIntegerOption,
10
+ parseNumberOption
11
+ } from "./chunk-MUMPWI4O.js";
12
+ import "./chunk-UACZUFIA.js";
13
+
14
+ // src/cli/training.ts
15
+ import { readFile } from "node:fs/promises";
16
+ import { request as requestHttp } from "node:http";
17
+ import os from "node:os";
18
+ import path from "node:path";
19
+ import { createInterface } from "node:readline/promises";
20
+ var DEFAULT_LOCAL_TRAINING_API_URL = "http://127.0.0.1:17874";
21
+ var TERMINAL_STATUSES = /* @__PURE__ */ new Set([
22
+ "cancelled",
23
+ "completed",
24
+ "failed",
25
+ "succeeded"
26
+ ]);
27
+ async function runTrainingCommand(options, rest, dependencies = {}) {
28
+ const subcommand = rest[0];
29
+ const id = rest[1];
30
+ if (!subcommand || ![
31
+ "start",
32
+ "status",
33
+ "watch",
34
+ "logs",
35
+ "cancel",
36
+ "artifacts"
37
+ ].includes(
38
+ subcommand
39
+ ) || !id) {
40
+ throw new Error(
41
+ "usage: training <start|status|watch|logs|cancel|artifacts> <model-run-id|run-id>"
42
+ );
43
+ }
44
+ if (rest.length > 2) {
45
+ throw new Error(`training ${subcommand} accepts exactly one identifier`);
46
+ }
47
+ const baseUrl = resolveApiBaseUrlOption(options) ?? process.env.OPENPOND_LOCAL_API_URL?.replace(/\/$/, "") ?? DEFAULT_LOCAL_TRAINING_API_URL;
48
+ const client = new TrainingApiClient({
49
+ baseUrl,
50
+ request: dependencies.request ?? await createLocalAuthenticatedRequest(baseUrl)
51
+ });
52
+ const json = parseBooleanOption(options.json);
53
+ if (subcommand === "start") {
54
+ await startTraining({
55
+ client,
56
+ dependencies,
57
+ json,
58
+ modelRunId: id,
59
+ options
60
+ });
61
+ return;
62
+ }
63
+ if (subcommand === "watch") {
64
+ await watchTraining({
65
+ client,
66
+ runId: id,
67
+ json,
68
+ intervalMs: parseIntegerOption(options.intervalMs, "interval-ms") ?? 2e3,
69
+ sleep: dependencies.sleep
70
+ });
71
+ return;
72
+ }
73
+ const endpoint = subcommand === "status" ? "status" : subcommand === "logs" ? "logs" : subcommand === "artifacts" ? "artifacts" : "cancel";
74
+ const result = await client.modelRun(
75
+ id,
76
+ endpoint,
77
+ subcommand === "cancel" ? "POST" : "GET"
78
+ );
79
+ printResult(result, json);
80
+ }
81
+ async function createLocalAuthenticatedRequest(baseUrl) {
82
+ const url = new URL(baseUrl);
83
+ if (url.protocol !== "http:" || !["127.0.0.1", "localhost", "::1"].includes(url.hostname)) {
84
+ return fetch;
85
+ }
86
+ const appHome = process.env.OPENPOND_APP_HOME?.trim() || path.join(os.homedir(), ".openpond", "openpond-app");
87
+ const token = (await readFile(path.join(appHome, "token"), "utf8")).trim();
88
+ if (!token) {
89
+ throw new Error("OpenPond local capability token is empty.");
90
+ }
91
+ return (async (resource, init = {}) => {
92
+ const target = resource instanceof Request ? new URL(resource.url) : new URL(String(resource));
93
+ const headers = new Headers(init.headers);
94
+ headers.set("authorization", `Bearer ${token}`);
95
+ const nodeHeaders = {};
96
+ headers.forEach((value, name) => {
97
+ nodeHeaders[name] = value;
98
+ });
99
+ return new Promise((resolve, reject) => {
100
+ let settled = false;
101
+ const request = requestHttp(
102
+ target,
103
+ {
104
+ method: init.method ?? "GET",
105
+ headers: nodeHeaders
106
+ },
107
+ (response) => {
108
+ const chunks = [];
109
+ response.on("data", (chunk) => chunks.push(chunk));
110
+ response.once("error", rejectOnce);
111
+ response.once("end", () => {
112
+ if (settled) return;
113
+ settled = true;
114
+ const responseHeaders = new Headers();
115
+ for (const [name, value] of Object.entries(response.headers)) {
116
+ if (Array.isArray(value)) {
117
+ for (const item of value) responseHeaders.append(name, item);
118
+ } else if (value !== void 0) {
119
+ responseHeaders.set(name, value);
120
+ }
121
+ }
122
+ resolve(
123
+ new Response(new Uint8Array(Buffer.concat(chunks)), {
124
+ status: response.statusCode ?? 500,
125
+ statusText: response.statusMessage,
126
+ headers: responseHeaders
127
+ })
128
+ );
129
+ });
130
+ }
131
+ );
132
+ const rejectOnce = (error) => {
133
+ if (settled) return;
134
+ settled = true;
135
+ reject(error);
136
+ };
137
+ request.once("error", rejectOnce);
138
+ if (init.signal) {
139
+ const abort = () => request.destroy(
140
+ init.signal?.reason instanceof Error ? init.signal.reason : new Error("Training API request aborted.")
141
+ );
142
+ if (init.signal.aborted) abort();
143
+ else init.signal.addEventListener("abort", abort, { once: true });
144
+ }
145
+ if (init.body !== void 0 && init.body !== null) {
146
+ if (typeof init.body !== "string" && !(init.body instanceof Uint8Array)) {
147
+ request.destroy(
148
+ new Error("Local Training API supports string or byte request bodies.")
149
+ );
150
+ return;
151
+ }
152
+ request.write(init.body);
153
+ }
154
+ request.end();
155
+ });
156
+ });
157
+ }
158
+ var TrainingApiClient = class {
159
+ baseUrl;
160
+ request;
161
+ constructor(input) {
162
+ this.baseUrl = input.baseUrl.replace(/\/$/, "");
163
+ this.request = input.request ?? fetch;
164
+ }
165
+ modelRun(id, action, method, body) {
166
+ return this.json(
167
+ `/v1/training/model-runs/${encodeURIComponent(id)}/${action}`,
168
+ method,
169
+ body
170
+ );
171
+ }
172
+ async json(pathname, method, body) {
173
+ const response = await this.request(`${this.baseUrl}${pathname}`, {
174
+ method,
175
+ headers: body === void 0 ? { Accept: "application/json" } : {
176
+ Accept: "application/json",
177
+ "Content-Type": "application/json"
178
+ },
179
+ body: body === void 0 ? void 0 : JSON.stringify(body)
180
+ });
181
+ const text = await response.text();
182
+ let payload = null;
183
+ if (text) {
184
+ try {
185
+ payload = JSON.parse(text);
186
+ } catch {
187
+ payload = text;
188
+ }
189
+ }
190
+ if (!response.ok) {
191
+ const message = payload && typeof payload === "object" && "error" in payload && typeof payload.error === "string" ? payload.error : `${response.status} ${response.statusText}`.trim();
192
+ throw new Error(`Training API request failed: ${message}`);
193
+ }
194
+ return payload;
195
+ }
196
+ };
197
+ async function startTraining(input) {
198
+ const maximumSpendUsd = parseNumberOption(
199
+ input.options.maxSpend,
200
+ "max-spend"
201
+ ) ?? null;
202
+ if (maximumSpendUsd !== null && maximumSpendUsd < 0) {
203
+ throw new Error("max-spend must be non-negative");
204
+ }
205
+ const retentionDays = parseIntegerOption(input.options.retentionDays, "retention-days") ?? null;
206
+ if (retentionDays !== null && retentionDays <= 0) {
207
+ throw new Error("retention-days must be a positive integer");
208
+ }
209
+ const manifestPath = optionString(input.options, "manifest");
210
+ const manifest = manifestPath ? await readManifest(manifestPath) : void 0;
211
+ const controls = { maximumSpendUsd, retentionDays };
212
+ const preparation = await input.client.modelRun(
213
+ input.modelRunId,
214
+ "prepare",
215
+ "POST",
216
+ controls
217
+ );
218
+ if (!input.json) {
219
+ console.log("Preparation:");
220
+ console.log(JSON.stringify(preparation, null, 2));
221
+ }
222
+ const confirmed = parseBooleanOption(input.options.yes) || await confirmStart(input.dependencies.confirm);
223
+ if (!confirmed) {
224
+ throw new Error("Training start cancelled.");
225
+ }
226
+ const result = await input.client.modelRun(
227
+ input.modelRunId,
228
+ "start",
229
+ "POST",
230
+ { ...controls, manifest }
231
+ );
232
+ printResult(result, input.json);
233
+ if (parseBooleanOption(input.options.detach)) return;
234
+ const runId = readRunId(result) ?? input.modelRunId;
235
+ await watchTraining({
236
+ client: input.client,
237
+ runId,
238
+ json: input.json,
239
+ intervalMs: 2e3,
240
+ sleep: input.dependencies.sleep
241
+ });
242
+ }
243
+ async function watchTraining(input) {
244
+ if (input.intervalMs < 250) {
245
+ throw new Error("interval-ms must be at least 250");
246
+ }
247
+ const sleep = input.sleep ?? ((milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds)));
248
+ let previous = "";
249
+ for (; ; ) {
250
+ const status = await input.client.modelRun(
251
+ input.runId,
252
+ "status",
253
+ "GET"
254
+ );
255
+ const serialized = JSON.stringify(status);
256
+ if (input.json || serialized !== previous) {
257
+ printResult(status, input.json);
258
+ previous = serialized;
259
+ }
260
+ if (TERMINAL_STATUSES.has(readStatus(status))) return;
261
+ await sleep(input.intervalMs);
262
+ }
263
+ }
264
+ async function readManifest(path2) {
265
+ let parsed;
266
+ try {
267
+ parsed = JSON.parse(await readFile(path2, "utf8"));
268
+ } catch (error) {
269
+ throw new Error(
270
+ `Could not read Harness Run Manifest ${path2}: ${error instanceof Error ? error.message : String(error)}`
271
+ );
272
+ }
273
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
274
+ throw new Error("Harness Run Manifest must be a JSON object.");
275
+ }
276
+ return parsed;
277
+ }
278
+ async function confirmStart(injected) {
279
+ const message = "Start this exact prepared training run? Downloads, provisioning, or spend may begin.";
280
+ if (injected) return injected(message);
281
+ if (!process.stdin.isTTY || !process.stdout.isTTY) {
282
+ throw new Error(
283
+ "training start requires --yes when standard input is not interactive"
284
+ );
285
+ }
286
+ const prompt = createInterface({
287
+ input: process.stdin,
288
+ output: process.stdout
289
+ });
290
+ try {
291
+ const answer = await prompt.question(`${message} [y/N] `);
292
+ return answer.trim().toLowerCase() === "y" || answer.trim().toLowerCase() === "yes";
293
+ } finally {
294
+ prompt.close();
295
+ }
296
+ }
297
+ function readRunId(value) {
298
+ if (!value || typeof value !== "object") return null;
299
+ const job = "job" in value ? value.job : null;
300
+ if (!job || typeof job !== "object" || !("id" in job)) return null;
301
+ return typeof job.id === "string" ? job.id : null;
302
+ }
303
+ function readStatus(value) {
304
+ if (!value || typeof value !== "object") return "";
305
+ if ("state" in value && typeof value.state === "string") {
306
+ return value.state;
307
+ }
308
+ return "status" in value && typeof value.status === "string" ? value.status : "";
309
+ }
310
+ function printResult(value, json) {
311
+ if (json) {
312
+ console.log(JSON.stringify(value));
313
+ return;
314
+ }
315
+ console.log(JSON.stringify(value, null, 2));
316
+ }
317
+ export {
318
+ TrainingApiClient,
319
+ runTrainingCommand
320
+ };
@@ -45,8 +45,8 @@ import {
45
45
  truncatePatch,
46
46
  uniqueSortedPaths,
47
47
  workspaceImageContentType
48
- } from "./chunk-LNKYEHIJ.js";
49
- import "./chunk-WL76II47.js";
48
+ } from "./chunk-L6XH4ZGZ.js";
49
+ import "./chunk-JJPAMKXZ.js";
50
50
  import "./chunk-UACZUFIA.js";
51
51
  export {
52
52
  MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,
package/dist/cli.js CHANGED
@@ -1,14 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
3
3
  import {
4
- parseArgs,
4
+ parseArgs
5
+ } from "./chunks/chunk-JRROTGQT.js";
6
+ import {
5
7
  resolveAccountOption,
6
8
  resolveBaseUrlOption
7
- } from "./chunks/chunk-2WMGA5FE.js";
9
+ } from "./chunks/chunk-SMNFI2FU.js";
8
10
  import {
9
11
  getInstalledCliVersion,
10
12
  runCliCommand
11
- } from "./chunks/chunk-VFL2JVBZ.js";
13
+ } from "./chunks/chunk-3CDPPVLE.js";
12
14
  import "./chunks/chunk-KSRWKXRB.js";
13
15
  import {
14
16
  parseBooleanOption
@@ -35,11 +37,11 @@ async function runOpenPondCli(argv = process.argv.slice(2)) {
35
37
  return;
36
38
  }
37
39
  if (action === "check-update") {
38
- await (await import("./chunks/core-commands-7223BEQL.js")).runCheckUpdate();
40
+ await (await import("./chunks/core-commands-4MRJQZJV.js")).runCheckUpdate();
39
41
  return;
40
42
  }
41
43
  if (action === "help") {
42
- (await import("./chunks/help-YPPROIS7.js")).printHelp();
44
+ (await import("./chunks/help-LWNREJ7U.js")).printHelp();
43
45
  return;
44
46
  }
45
47
  const selectedAccount = resolveAccountOption(options);
@@ -51,31 +53,41 @@ async function runOpenPondCli(argv = process.argv.slice(2)) {
51
53
  process.env.OPENPOND_BASE_URL = selectedBaseUrl;
52
54
  }
53
55
  if (action === "tui") {
54
- await (await import("./chunks/app-layer-LF2HK2B2.js")).runOpenPondTerminalCommand(options, rest);
56
+ await (await import("./chunks/app-layer-LTBWNA2F.js")).runOpenPondTerminalCommand(options, rest);
55
57
  return;
56
58
  }
57
59
  if (action === "ui") {
58
- await (await import("./chunks/app-layer-LF2HK2B2.js")).runOpenPondServerCommand("web", options, rest);
60
+ await (await import("./chunks/app-layer-LTBWNA2F.js")).runOpenPondServerCommand("web", options, rest);
59
61
  return;
60
62
  }
61
63
  if (await runCliCommand({ command, options, rest })) {
62
64
  return;
63
65
  }
64
- (await import("./chunks/help-YPPROIS7.js")).printHelp();
66
+ (await import("./chunks/help-LWNREJ7U.js")).printHelp();
65
67
  process.exit(1);
66
68
  }
67
69
  async function runEmbeddedCompanion(argv) {
70
+ if (argv[0] === "__app-server") {
71
+ process.argv = [process.execPath, "openpond-app-server", ...argv.slice(1)];
72
+ const [{ createOpenPondAppServer }, { runOpenPondAppServerCli }] = await Promise.all([
73
+ import("./chunks/app-server-runtime-VYYJ2AWX.js"),
74
+ import("./chunks/cli-JS76LCW2.js")
75
+ ]);
76
+ await runOpenPondAppServerCli(createOpenPondAppServer);
77
+ return true;
78
+ }
68
79
  if (argv[0] === "__server") {
69
80
  process.argv = [process.execPath, "openpond-server", ...argv.slice(1)];
70
81
  const [{ createOpenPondServer }, { runOpenPondServerCli }] = await Promise.all([
71
- import("./chunks/src-SCS4KKP4.js"),
72
- import("./chunks/cli-5NFIDCRL.js")
82
+ import("./chunks/src-IC5RX4L6.js"),
83
+ import("./chunks/cli-JS76LCW2.js")
73
84
  ]);
74
- await runOpenPondServerCli(createOpenPondServer);
85
+ const { createOpenPondAppServer } = await import("./chunks/app-server-runtime-VYYJ2AWX.js");
86
+ await runOpenPondServerCli({ createOpenPondServer, createOpenPondAppServer });
75
87
  return true;
76
88
  }
77
89
  if (argv[0] === "__terminal") {
78
- await (await import("./chunks/src-XAVSQTVR.js")).runOpenPondTerminalCli(argv.slice(1));
90
+ await (await import("./chunks/src-ESAILPUH.js")).runOpenPondTerminalCli(argv.slice(1));
79
91
  return true;
80
92
  }
81
93
  return false;
@@ -1,5 +1,5 @@
1
1
  import type { StreamCallbacks } from "./stream.js";
2
- import type { AgentCreateRequest, AppEnvironmentGetResponse, AppEnvironmentUpdateResponse, AppExecutionTimelineResponse, AppListItem, AppRuntimeSummary, AppSchedulesResponse, AssistantMode, AssistantRunResponse, CreateRepoRequest, CreateRepoResponse, DeploymentLogEntry, OpenPondAccountBalanceResponse, OpenPondAccountResponse, OpenPondApiHealth, OpenToolRecipe, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse } from "./api.js";
2
+ import type { AgentCreateRequest, AppEnvironmentGetResponse, AppEnvironmentUpdateResponse, AppExecutionTimelineResponse, AppListItem, AppRuntimeSummary, AppSchedulesResponse, AssistantMode, AssistantRunResponse, CreateRepoRequest, CreateRepoResponse, DeploymentLogEntry, OpenPondAccountResponse, OpenPondApiHealth, OpenToolRecipe, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse } from "./api.js";
3
3
  export type OpenPondClientOptions = {
4
4
  apiKey?: string;
5
5
  baseUrl?: string;
@@ -42,7 +42,6 @@ export type OpenPondClient = {
42
42
  apiKey: string;
43
43
  account: {
44
44
  get: () => Promise<OpenPondAccountResponse>;
45
- balance: () => Promise<OpenPondAccountBalanceResponse>;
46
45
  health: () => Promise<OpenPondApiHealth>;
47
46
  };
48
47
  chat: {
@@ -98,7 +97,6 @@ export type OpenPondClient = {
98
97
  promotePreview: (input: AppPromotePreviewOptions) => Promise<PromotePreviewToProductionResponse>;
99
98
  envGet: (input: AppEnvironmentGetOptions) => Promise<AppEnvironmentGetResponse>;
100
99
  envSet: (input: AppEnvironmentSetOptions) => Promise<AppEnvironmentUpdateResponse>;
101
- positionsTx: (input?: PositionsTxOptions) => Promise<unknown>;
102
100
  };
103
101
  repo: {
104
102
  create: (input: CreateRepoRequest & {
@@ -214,9 +212,3 @@ export type AppPromotePreviewOptions = {
214
212
  export type AppStartOptions = {
215
213
  appId: string;
216
214
  } & StartAppLifecycleRequest;
217
- export type PositionsTxOptions = {
218
- method?: "GET" | "POST";
219
- body?: unknown;
220
- params?: Record<string, unknown>;
221
- query?: Record<string, string>;
222
- };
package/dist/client.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  export type { StreamCallbacks } from "./stream.js";
2
- export type { AssistantMode, AssistantRunResponse, AgentCreateRequest, AppEnvironmentGetResponse, AppEnvironmentUpdateRequest, AppEnvironmentUpdateResponse, AppExecutionDeployment, AppExecutionTimelineResponse, AppExecutionToolRun, AppListItem, AppRuntimeSummary, AppSchedule, AppScheduleSummary, AppSchedulesResponse, CreateRepoRequest, CreateRepoResponse, DeploymentDetail, DeploymentLogEntry, OpenPondAccount, OpenPondAccountBalanceResponse, OpenPondAccountProduct, OpenPondAccountResponse, OpenPondApiHealth, OpenPondApiHealthResponse, OpenToolRecipe, OpenToolRecipeDomain, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRecipeSummary, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse, } from "./api.js";
2
+ export type { AssistantMode, AssistantRunResponse, AgentCreateRequest, AppEnvironmentGetResponse, AppEnvironmentUpdateRequest, AppEnvironmentUpdateResponse, AppExecutionDeployment, AppExecutionTimelineResponse, AppExecutionToolRun, AppListItem, AppRuntimeSummary, AppSchedule, AppScheduleSummary, AppSchedulesResponse, CreateRepoRequest, CreateRepoResponse, DeploymentDetail, DeploymentLogEntry, OpenPondAccount, OpenPondAccountProduct, OpenPondAccountResponse, OpenPondApiHealth, OpenPondApiHealthResponse, OpenToolRecipe, OpenToolRecipeDomain, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRecipeSummary, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse, } from "./api.js";
3
3
  export type { ChatRequestBody, ResponseItem, ResponseMessageItem, TemplateBootstrap, ToolCallItem, ToolOutputItem, UsageInfo, } from "./types.js";
4
4
  export type { HostedChatCompletion, HostedChatContinuation, HostedChatMessage, HostedChatRequestOptions, HostedChatRole, HostedChatStreamDelta, HostedChatTool, HostedChatToolCall, HostedChatToolChoice, HostedChatUsage, HostedChatApiBaseUrlOptions, HostedModel, HostedModelRequestOptions, HostedModelsRequestOptions, HostedModelsResponse, HostedProvider, HostedProviderRequestOptions, HostedProvidersRequestOptions, HostedProvidersResponse, } from "./hosted-chat.js";
5
5
  export type { OpChatCompletionSummary, OpChatSmokeOptions, OpChatSmokeSummary, OpChatStreamSummary, OpChatToolSummary, } from "./opchat-smoke.js";
6
6
  export type { Bar as IndicatorBar, BollingerResult, MacdResult, MaCrossResult, MaCrossSignal, PriceChangeResult, } from "./indicators.js";
7
- export { apiFetch, checkOpenPondApiHealth, getAppRuntimeSummary, commitFiles, createAgentFromPrompt, createRepo, createHeadlessApps, createLocalProject, deleteOrArchiveSchedule, deployApp, deployLatestTemplate, getAppEnvironment, getAppExecutionTimeline, getScheduleExecutionLog, updateAppEnvironment, executeHostedTool, executeUserTool, fetchToolManifest, getDeploymentDetail, getDeploymentLogs, getDeploymentStatus, getLatestDeploymentForApp, getOpenPondAccount, getOpenPondAccountBalance, getOpenToolRecipe, getOpenToolRules, getTemplateStatus, getUserPerformance, runAssistantMode, listApps, listAppSchedules, listDeploymentScheduleExecutionLogs, listOpenToolRecipes, listScheduleExecutionLogs, listTemplateBranches, listUserTools, postAgentDigest, promotePreviewToProduction, resolveWorkerBaseUrl, runScheduleNow, searchOpenToolRecipes, startAppLifecycle, startAppSchedules, stopAppSchedules, stopCurrentAppSchedules, submitPositionsTx, } from "./api.js";
7
+ export { apiFetch, checkOpenPondApiHealth, getAppRuntimeSummary, commitFiles, createAgentFromPrompt, createRepo, createHeadlessApps, createLocalProject, deleteOrArchiveSchedule, deployApp, deployLatestTemplate, getAppEnvironment, getAppExecutionTimeline, getScheduleExecutionLog, updateAppEnvironment, executeHostedTool, executeUserTool, fetchToolManifest, getDeploymentDetail, getDeploymentLogs, getDeploymentStatus, getLatestDeploymentForApp, getOpenPondAccount, getOpenToolRecipe, getOpenToolRules, getTemplateStatus, getUserPerformance, runAssistantMode, listApps, listAppSchedules, listDeploymentScheduleExecutionLogs, listOpenToolRecipes, listScheduleExecutionLogs, listTemplateBranches, listUserTools, postAgentDigest, promotePreviewToProduction, resolveWorkerBaseUrl, runScheduleNow, searchOpenToolRecipes, startAppLifecycle, startAppSchedules, stopAppSchedules, stopCurrentAppSchedules, } from "./api.js";
8
8
  export { DEFAULT_OPENPOND_API_BASE_URL, DEFAULT_OPENPOND_CHAT_API_BASE_URL, DEFAULT_OPENPOND_OPCHAT_API_BASE_URL, DEFAULT_OPENPOND_WEB_BASE_URL, } from "./urls.js";
9
9
  export { getOpChatModel, getOpChatProvider, listOpChatModels, listOpChatProviders, listHostedModels, listHostedProviders, resolveHostedChatApiBaseUrl, resolveOpChatApiBaseUrl, sendHostedChatTurn, streamHostedChatTurn, } from "./hosted-chat.js";
10
10
  export { runOpChatSmoke } from "./opchat-smoke.js";
@@ -13,7 +13,7 @@ export { DEFAULT_CACHE_TTL_MS, getCachedApps, getCachedTools, setCachedApps, set
13
13
  export { getConfigPath, listConfiguredProfiles, loadConfig, loadGlobalConfig, saveConfig, saveGlobalConfig, saveProfileApiKey, setActiveProfile, } from "./config.js";
14
14
  export type { ActiveProfileSelector, ConfiguredProfile, LocalConfig, SaveProfileApiKeyInput, SetActiveProfileOptions, } from "./config.js";
15
15
  export { consumeStream, formatStreamItem, normalizeDataFrames } from "./stream.js";
16
- export type { OpenPondClientOptions, ToolSummary, ToolListResult, DeploymentWatchResult, AgentCreateStreamCallbacks, AgentCreateStreamResult, OpenPondClient, ToolListOptions, ToolRunOptions, DeployWatchOptions, TemplateTargetOptions, TemplateUpdateOptions, AppsListOptions, AppsToolsOptions, AppsPerformanceOptions, AppSummaryOptions, AppSchedulesOptions, AppSchedulesStartOptions, AppSchedulesStopOptions, ScheduleRunNowOptions, ScheduleDeleteOptions, ScheduleExecutionLogsOptions, ScheduleExecutionLogOptions, DeploymentScheduleExecutionLogsOptions, AppExecutionTimelineOptions, AppsAssistantRunOptions, ExecuteUserToolOptions, AppEnvironmentSetOptions, AppEnvironmentGetOptions, AppDeployOptions, AppPromotePreviewOptions, AppStartOptions, PositionsTxOptions, } from "./client-types.js";
16
+ export type { OpenPondClientOptions, ToolSummary, ToolListResult, DeploymentWatchResult, AgentCreateStreamCallbacks, AgentCreateStreamResult, OpenPondClient, ToolListOptions, ToolRunOptions, DeployWatchOptions, TemplateTargetOptions, TemplateUpdateOptions, AppsListOptions, AppsToolsOptions, AppsPerformanceOptions, AppSummaryOptions, AppSchedulesOptions, AppSchedulesStartOptions, AppSchedulesStopOptions, ScheduleRunNowOptions, ScheduleDeleteOptions, ScheduleExecutionLogsOptions, ScheduleExecutionLogOptions, DeploymentScheduleExecutionLogsOptions, AppExecutionTimelineOptions, AppsAssistantRunOptions, ExecuteUserToolOptions, AppEnvironmentSetOptions, AppEnvironmentGetOptions, AppDeployOptions, AppPromotePreviewOptions, AppStartOptions, } from "./client-types.js";
17
17
  import type { OpenPondClientOptions, AgentCreateStreamCallbacks, AgentCreateStreamResult, OpenPondClient } from "./client-types.js";
18
18
  export declare function consumeAgentCreateStream(response: Response, callbacks?: AgentCreateStreamCallbacks): Promise<AgentCreateStreamResult>;
19
19
  export declare function createClient(options: OpenPondClientOptions): OpenPondClient;
package/dist/config.d.ts CHANGED
@@ -26,7 +26,6 @@ export type LocalOpenPondProfileCheckStatus = {
26
26
  export type LocalOpenPondProfileHostedSourceCheckStatus = {
27
27
  status: string;
28
28
  agentId?: string | null;
29
- workItemId?: string | null;
30
29
  deployPlanStatus?: string | null;
31
30
  canRun?: boolean | null;
32
31
  canDeploy?: boolean | null;
@@ -126,13 +125,20 @@ export type LocalOpenPondProfileConfig = {
126
125
  mode: "local";
127
126
  lastCheck?: LocalOpenPondProfileCheckStatus;
128
127
  lastPush?: LocalOpenPondProfilePushStatus;
128
+ profiles?: LocalOpenPondProfileCatalogEntry[];
129
+ };
130
+ export type LocalOpenPondProfileCatalogEntry = {
131
+ source: "local" | "github" | "openpond_git";
132
+ repositoryId: string;
133
+ repoPath: string;
134
+ profile: string;
135
+ lastCheck?: LocalOpenPondProfileCheckStatus;
136
+ lastPush?: LocalOpenPondProfilePushStatus;
129
137
  };
130
- export type LocalGoalStorageLocation = "global" | "workspace";
131
138
  export type LocalConfig = {
132
139
  accounts?: LocalAccountConfig[];
133
140
  activeProfile?: ActiveProfileSelector;
134
141
  openpondProfile?: LocalOpenPondProfileConfig;
135
- goalStorageLocation?: LocalGoalStorageLocation;
136
142
  baseUrl?: string;
137
143
  apiBaseUrl?: string;
138
144
  chatApiBaseUrl?: string;