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
package/README.md CHANGED
@@ -69,7 +69,6 @@ openpond apps env set <handle>/<repo> --env '{"OPENTOOL_PUBLIC_HL_SIGNAL_BOT_CON
69
69
  openpond apps performance [--app-id <id>]
70
70
  openpond apps agent create --prompt "Build a daily digest agent"
71
71
  openpond apps tools execute <appId> <deploymentId> <tool> --body '{"foo":"bar"}'
72
- openpond apps positions tx --method GET --params '{"status":"open"}'
73
72
  openpond opentool init --dir .
74
73
  ```
75
74
 
@@ -106,14 +105,12 @@ Command reference:
106
105
  - `openpond apps performance [--app-id <id>]`: fetch performance summary, optionally scoped to an app.
107
106
  - `openpond apps agent create --prompt <text> [--template-id <id>]`: create an agent from a prompt (streams deploy logs by default).
108
107
  - `openpond apps tools execute <appId> <deploymentId> <tool> [--body <json>] [--method <METHOD>] [--headers <json>]`: execute a tool for a specific deployment.
109
- - `openpond apps positions tx [--method <GET|POST>] [--body <json>] [--params <json>]`: read or submit positions.
110
108
  - `openpond opentool <init|validate|build> [args]`: run OpenTool CLI commands via `npx opentool`.
111
109
 
112
- Agent source/edit status:
110
+ Agent source operations:
113
111
 
114
- - `openpond agent edit check-status <workItemId> --team-id <id> [--limit <n>] [--json]`: return the compact source-check status for an agent edit work item.
115
- - `openpond agent source check-status <workItemId> --team-id <id> [--limit <n>] [--json]`: alias for the same work-item status projection under the source command group.
116
- - The machine-readable status contract is documented in [`docs/agent-edit-check-status-json.md`](docs/agent-edit-check-status-json.md).
112
+ - `openpond agent source checks <agentId> --team-id <id> [--check-kind <kind>]`: request validation or eval checks for an Agent source version.
113
+ - `openpond agent source publish <agentId> --team-id <id> [--expected-manifest-hash <hash>]`: publish a validated Agent source version.
117
114
 
118
115
  ## TypeScript package
119
116
 
@@ -136,7 +133,6 @@ const result = await client.tool.run("handle/repo", "myTool", {
136
133
 
137
134
  const apps = await client.apps.list();
138
135
  const account = await client.account.get();
139
- const balance = await client.account.balance();
140
136
  const health = await client.account.health();
141
137
  const accountTools = await client.apps.tools();
142
138
  const performance = await client.apps.performance({ appId: "app_123" });
@@ -18,5 +18,11 @@ export declare class ApiResponseTooLargeError extends Error {
18
18
  readonly code = "OPENPOND_API_RESPONSE_TOO_LARGE";
19
19
  constructor(maximumBytes: number, requestUrl: string);
20
20
  }
21
+ export declare class OpenPondApiError extends Error {
22
+ readonly status: number;
23
+ readonly apiMessage: string | null;
24
+ readonly code: string;
25
+ constructor(status: number, errorCode: string | null, label: string, apiMessage?: string | null);
26
+ }
21
27
  export declare function apiFetch(baseUrl: string, token: string | null, requestPath: string, options?: ApiFetchOptions): Promise<Response>;
22
28
  export declare function readApiJson<T>(response: Response, label: string): Promise<T>;
@@ -186,34 +186,6 @@ export type AppRuntimeSummary = {
186
186
  error: string | null;
187
187
  } | null;
188
188
  };
189
- wallet: {
190
- personalWalletAddress: string | null;
191
- operatingWalletAddress: string | null;
192
- arbitrum: {
193
- eth: {
194
- raw: string;
195
- formatted: string;
196
- } | null;
197
- usdc: {
198
- raw: string;
199
- formatted: string;
200
- } | null;
201
- };
202
- hyperliquid: {
203
- mainnet: {
204
- accountValue: number | null;
205
- withdrawable: number | null;
206
- totalMarginUsed: number | null;
207
- error?: string;
208
- };
209
- testnet: {
210
- accountValue: number | null;
211
- withdrawable: number | null;
212
- totalMarginUsed: number | null;
213
- error?: string;
214
- };
215
- };
216
- };
217
189
  asOf: string;
218
190
  };
219
191
  export type ScheduleExecutionStatus = "success" | "failed" | "timeout" | string;
@@ -491,7 +463,6 @@ export type OpenPondAccountProduct = {
491
463
  duration: number | null;
492
464
  restrictedModels: string[] | null;
493
465
  gatewayEntitlements: unknown | null;
494
- duckHoldings: number | null;
495
466
  isActive: boolean | null;
496
467
  };
497
468
  export type OpenPondAccount = {
@@ -501,8 +472,6 @@ export type OpenPondAccount = {
501
472
  handle: string | null;
502
473
  image: string | null;
503
474
  timezone: string | null;
504
- turnkeyWalletAddress: string | null;
505
- turnkeyOperatingWalletAddress: string | null;
506
475
  isAdmin: boolean;
507
476
  isVerified: boolean;
508
477
  dailyAgentAppId: string | null;
@@ -514,25 +483,6 @@ export type OpenPondAccountResponse = {
514
483
  products: OpenPondAccountProduct[];
515
484
  asOf: string;
516
485
  };
517
- export type OpenPondAccountBalanceBreakdownItem = {
518
- wallet: "operating" | "personal" | string;
519
- chain: string;
520
- chainId: number | null;
521
- asset: string;
522
- amount: string | null;
523
- usdValue: string | null;
524
- };
525
- export type OpenPondAccountBalanceResponse = {
526
- balanceKind: "openpond_funding" | string;
527
- balanceUsd: string | null;
528
- balanceUsdCents: number | null;
529
- balanceLabel: string;
530
- currency: "USD" | string;
531
- asOf: string;
532
- stale?: boolean;
533
- credits?: string | null;
534
- breakdown: OpenPondAccountBalanceBreakdownItem[];
535
- };
536
486
  export type OpenPondApiHealthResponse = {
537
487
  status: string;
538
488
  service?: string;
@@ -0,0 +1 @@
1
+ export declare function withVercelProtectionBypass(requestUrl: string, inputHeaders?: HeadersInit, env?: Record<string, string | undefined>): Headers;
package/dist/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import type { AgentCreateRequest, AppCodeVisibilityUpdateResponse, AppEnvironmentGetResponse, AppEnvironmentUpdateRequest, AppEnvironmentUpdateResponse, AppExecutionTimelineResponse, AppListItem, AppRuntimeSummary, AppSchedulesResponse, AssistantRunRequest, AssistantRunResponse, BacktestRunRequest, CreateLocalProjectInput, CreateRepoRequest, CreateRepoResponse, HeadlessAppRequest, HeadlessAppsResponse, OpenPondAccountBalanceResponse, OpenPondAccountResponse, OpenPondApiHealth, OpenToolRecipe, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRulesGetRequest, OpenToolRulesGetResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse, ToolManifest } from "./api/types.js";
1
+ import type { AgentCreateRequest, AppCodeVisibilityUpdateResponse, AppEnvironmentGetResponse, AppEnvironmentUpdateRequest, AppEnvironmentUpdateResponse, AppExecutionTimelineResponse, AppListItem, AppRuntimeSummary, AppSchedulesResponse, AssistantRunRequest, AssistantRunResponse, BacktestRunRequest, CreateLocalProjectInput, CreateRepoRequest, CreateRepoResponse, HeadlessAppRequest, HeadlessAppsResponse, OpenPondAccountResponse, OpenPondApiHealth, OpenToolRecipe, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRulesGetRequest, OpenToolRulesGetResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse, ToolManifest } from "./api/types.js";
2
2
  import type { ChatRequestBody } from "./types.js";
3
3
  export { apiFetch } from "./api/core.js";
4
4
  export { commitFiles, deployApp, getDeploymentDetail, getDeploymentLogs, getDeploymentStatus, getLatestDeploymentForApp, promotePreviewToProduction, startAppLifecycle, } from "./api/deployments.js";
5
- export type { AgentCreateRequest, AppCodeVisibilityUpdateResponse, AppEnvironmentGetResponse, AppEnvironmentUpdateRequest, AppEnvironmentUpdateResponse, AppExecutionDeployment, AppExecutionTimelineResponse, AppExecutionToolRun, AppListItem, AppRuntimeSummary, AppSchedule, AppSchedulesResponse, AppScheduleSummary, AssistantMode, AssistantRunRequest, AssistantRunResponse, BacktestRunRequest, CreateLocalProjectInput, CreateRepoRequest, CreateRepoResponse, DeploymentDetail, DeploymentLogEntry, HeadlessAppRequest, HeadlessAppResponse, HeadlessAppsResponse, OpenPondAccount, OpenPondAccountBalanceResponse, OpenPondAccountProduct, OpenPondAccountResponse, OpenPondApiHealth, OpenPondApiHealthResponse, OpenToolRecipe, OpenToolRecipeDomain, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRecipeSummary, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleExecutionStatus, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse, ToolManifest, } from "./api/types.js";
5
+ export type { AgentCreateRequest, AppCodeVisibilityUpdateResponse, AppEnvironmentGetResponse, AppEnvironmentUpdateRequest, AppEnvironmentUpdateResponse, AppExecutionDeployment, AppExecutionTimelineResponse, AppExecutionToolRun, AppListItem, AppRuntimeSummary, AppSchedule, AppSchedulesResponse, AppScheduleSummary, AssistantMode, AssistantRunRequest, AssistantRunResponse, BacktestRunRequest, CreateLocalProjectInput, CreateRepoRequest, CreateRepoResponse, DeploymentDetail, DeploymentLogEntry, HeadlessAppRequest, HeadlessAppResponse, HeadlessAppsResponse, OpenPondAccount, OpenPondAccountProduct, OpenPondAccountResponse, OpenPondApiHealth, OpenPondApiHealthResponse, OpenToolRecipe, OpenToolRecipeDomain, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRecipeSummary, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleExecutionStatus, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse, ToolManifest, } from "./api/types.js";
6
6
  export declare function listApps(apiBase: string, token: string, options?: {
7
7
  handle?: string;
8
8
  limit?: number;
@@ -50,7 +50,6 @@ export declare function getUserPerformance(baseUrl: string, token: string, optio
50
50
  }): Promise<unknown>;
51
51
  export declare function getAppRuntimeSummary(baseUrl: string, token: string, appId: string): Promise<AppRuntimeSummary>;
52
52
  export declare function getOpenPondAccount(baseUrl: string, token: string): Promise<OpenPondAccountResponse>;
53
- export declare function getOpenPondAccountBalance(baseUrl: string, token: string): Promise<OpenPondAccountBalanceResponse>;
54
53
  export declare function checkOpenPondApiHealth(baseUrl: string, token?: string | null): Promise<OpenPondApiHealth>;
55
54
  export declare function runAssistantMode(baseUrl: string, token: string, payload: AssistantRunRequest): Promise<AssistantRunResponse>;
56
55
  export declare function postAgentDigest(baseUrl: string, token: string, body: {
@@ -73,11 +72,6 @@ export declare function executeUserTool(baseUrl: string, token: string, body: {
73
72
  data?: unknown;
74
73
  error?: string;
75
74
  }>;
76
- export declare function submitPositionsTx(baseUrl: string, token: string, params: {
77
- method: "GET" | "POST";
78
- body?: unknown;
79
- query?: Record<string, string>;
80
- }): Promise<unknown>;
81
75
  export declare function submitBacktestRun(baseUrl: string, token: string, body: BacktestRunRequest): Promise<unknown>;
82
76
  export declare function submitBacktestTx(baseUrl: string, token: string, params: {
83
77
  method: "GET" | "POST";
@@ -1,12 +1,14 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
2
  import {
3
3
  runProcessCommand
4
- } from "./chunk-ZZ4ECDTP.js";
4
+ } from "./chunk-FCVVOMIP.js";
5
+ import "./chunk-KHNHUA2H.js";
5
6
  import {
6
7
  CliUsageError
7
- } from "./chunk-2WMGA5FE.js";
8
- import "./chunk-VFL2JVBZ.js";
9
- import "./chunk-BWA3COR4.js";
8
+ } from "./chunk-JRROTGQT.js";
9
+ import "./chunk-SMNFI2FU.js";
10
+ import "./chunk-3CDPPVLE.js";
11
+ import "./chunk-DBHSOTYZ.js";
10
12
  import "./chunk-KSRWKXRB.js";
11
13
  import "./chunk-MUMPWI4O.js";
12
14
  import "./chunk-UACZUFIA.js";
@@ -46,7 +48,9 @@ var OpenPondChildProcessExitError = class extends Error {
46
48
  exitCode;
47
49
  };
48
50
  async function runOpenPondServerCommand(mode, options, rest) {
49
- const server = resolveAppEntrypoint("server");
51
+ const server = resolveAppEntrypoint(
52
+ mode === "app-server" ? "app-server" : "server"
53
+ );
50
54
  const args = [...server.args, mode, ...forwardedOptions(options), ...rest];
51
55
  if (mode === "web") {
52
56
  args.push(options.noOpen === true || options.noOpen === "true" ? "--print-access-url" : "--open-browser");
@@ -85,7 +89,13 @@ function findWorkspaceRoot() {
85
89
  function resolveAppEntrypoint(app) {
86
90
  const workspaceRoot = findWorkspaceRoot();
87
91
  if (workspaceRoot) {
88
- const source = path.join(workspaceRoot, "apps", app, "src", "index.ts");
92
+ const source = app === "app-server" ? path.join(
93
+ workspaceRoot,
94
+ "apps",
95
+ "server",
96
+ "src",
97
+ "app-server-entry.ts"
98
+ ) : path.join(workspaceRoot, "apps", app, "src", "index.ts");
89
99
  if (existsSync(source)) {
90
100
  const workspaceRequire = createRequire(path.join(workspaceRoot, "package.json"));
91
101
  return {
@@ -94,13 +104,25 @@ function resolveAppEntrypoint(app) {
94
104
  cwd: workspaceRoot
95
105
  };
96
106
  }
97
- const built = path.join(workspaceRoot, "apps", app, "dist", "index.js");
98
- if (existsSync(built)) return { runner: process.execPath, args: [built], cwd: workspaceRoot };
107
+ const built = app === "app-server" ? path.join(
108
+ workspaceRoot,
109
+ "apps",
110
+ "server",
111
+ "dist",
112
+ "app-server-entry.js"
113
+ ) : path.join(workspaceRoot, "apps", app, "dist", "index.js");
114
+ if (existsSync(built)) {
115
+ return { runner: process.execPath, args: [built], cwd: workspaceRoot };
116
+ }
99
117
  }
100
118
  const installedCli = installedCliEntrypoint();
101
- const embeddedMode = app === "server" ? "__server" : "__terminal";
119
+ const embeddedMode = app === "app-server" ? "__app-server" : app === "server" ? "__server" : "__terminal";
102
120
  if (installedCli) {
103
- return { runner: process.execPath, args: [installedCli, embeddedMode], cwd: path.dirname(path.dirname(installedCli)) };
121
+ return {
122
+ runner: process.execPath,
123
+ args: [installedCli, embeddedMode],
124
+ cwd: path.dirname(path.dirname(installedCli))
125
+ };
104
126
  }
105
127
  if (isCompiledExecutable()) return { runner: process.execPath, args: [embeddedMode], cwd: process.cwd() };
106
128
  throw new Error(`Could not find the installed OpenPond ${app} companion.`);
@@ -0,0 +1,18 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import {
3
+ APP_SERVER_COMPOSITION,
4
+ createOpenPondAppServer
5
+ } from "./chunk-4HIWFIMN.js";
6
+ import "./chunk-VCVQLECH.js";
7
+ import "./chunk-BQQZNGI6.js";
8
+ import "./chunk-L6XH4ZGZ.js";
9
+ import "./chunk-JJPAMKXZ.js";
10
+ import "./chunk-2SF6HLT7.js";
11
+ import "./chunk-M2NXTLH2.js";
12
+ import "./chunk-WYDVQOBL.js";
13
+ import "./chunk-KHNHUA2H.js";
14
+ import "./chunk-UACZUFIA.js";
15
+ export {
16
+ APP_SERVER_COMPOSITION,
17
+ createOpenPondAppServer
18
+ };
@@ -10,12 +10,14 @@ import {
10
10
  normalizeRepoName,
11
11
  pollDeploymentLogs,
12
12
  resolveAppTarget
13
- } from "./chunk-ZZ4ECDTP.js";
13
+ } from "./chunk-FCVVOMIP.js";
14
+ import "./chunk-KHNHUA2H.js";
15
+ import "./chunk-JRROTGQT.js";
14
16
  import {
15
17
  resolveBaseUrl,
16
18
  resolvePublicApiBaseUrl
17
- } from "./chunk-2WMGA5FE.js";
18
- import "./chunk-VFL2JVBZ.js";
19
+ } from "./chunk-SMNFI2FU.js";
20
+ import "./chunk-3CDPPVLE.js";
19
21
  import {
20
22
  createAgentFromPrompt,
21
23
  deployApp,
@@ -27,10 +29,9 @@ import {
27
29
  runAssistantMode,
28
30
  submitBacktestDetail,
29
31
  submitBacktestTx,
30
- submitPositionsTx,
31
32
  updateAppCodeVisibility,
32
33
  updateAppEnvironment
33
- } from "./chunk-BWA3COR4.js";
34
+ } from "./chunk-DBHSOTYZ.js";
34
35
  import "./chunk-KSRWKXRB.js";
35
36
  import {
36
37
  parseBooleanOption,
@@ -325,90 +326,6 @@ async function runAppsDeploy(options, target) {
325
326
  timeoutMs: options.timeout ? Number(options.timeout) : void 0
326
327
  });
327
328
  }
328
- async function runAppsPositionsTx(options) {
329
- const config = await loadConfig();
330
- const uiBase = resolveBaseUrl(config);
331
- const apiKey = await ensureApiKey(config, uiBase);
332
- const apiBase = resolvePublicApiBaseUrl(config);
333
- const methodRaw = typeof options.method === "string" ? String(options.method).toUpperCase() : "POST";
334
- const method = methodRaw === "GET" ? "GET" : "POST";
335
- if (methodRaw !== "GET" && methodRaw !== "POST") {
336
- throw new Error("method must be GET or POST");
337
- }
338
- let query;
339
- if (method === "GET" && typeof options.params === "string") {
340
- const parsed = parseJsonOption(String(options.params), "params");
341
- if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
342
- throw new Error("params must be a JSON object");
343
- }
344
- query = {};
345
- for (const [key, value] of Object.entries(
346
- parsed
347
- )) {
348
- if (value === void 0) continue;
349
- query[key] = typeof value === "string" ? value : JSON.stringify(value);
350
- }
351
- }
352
- const body = method === "POST" && typeof options.body === "string" ? parseJsonOption(String(options.body), "body") : void 0;
353
- const result = await submitPositionsTx(apiBase, apiKey, {
354
- method,
355
- body,
356
- query
357
- });
358
- console.log(JSON.stringify(result, null, 2));
359
- }
360
- function resolveStoreEventsParams(options) {
361
- let params = {};
362
- if (typeof options.params === "string") {
363
- const parsed = parseJsonOption(String(options.params), "params");
364
- if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
365
- throw new Error("params must be a JSON object");
366
- }
367
- for (const [key, value] of Object.entries(
368
- parsed
369
- )) {
370
- if (value === void 0) continue;
371
- params[key] = typeof value === "string" ? value : JSON.stringify(value);
372
- }
373
- }
374
- const addParam = (key, value) => {
375
- if (value === void 0 || value === "") return;
376
- params[key] = value;
377
- };
378
- addParam(
379
- "source",
380
- typeof options.source === "string" ? options.source.trim() : void 0
381
- );
382
- addParam(
383
- "walletAddress",
384
- typeof options.walletAddress === "string" ? options.walletAddress.trim() : void 0
385
- );
386
- addParam(
387
- "symbol",
388
- typeof options.symbol === "string" ? options.symbol.trim() : void 0
389
- );
390
- addParam(
391
- "cursor",
392
- typeof options.cursor === "string" ? options.cursor.trim() : void 0
393
- );
394
- addParam(
395
- "status",
396
- typeof options.status === "string" ? options.status.trim() : void 0
397
- );
398
- addParam("since", parseTimeOption(options.since, "since"));
399
- addParam("until", parseTimeOption(options.until, "until"));
400
- if (typeof options.limit === "string" && options.limit.trim().length > 0) {
401
- const parsed = Number.parseInt(options.limit, 10);
402
- if (!Number.isFinite(parsed)) {
403
- throw new Error("limit must be a number");
404
- }
405
- addParam("limit", String(parsed));
406
- }
407
- if (options.history !== void 0) {
408
- addParam("history", parseBooleanOption(options.history) ? "true" : "false");
409
- }
410
- return Object.keys(params).length ? params : void 0;
411
- }
412
329
  function resolveBacktestEventsParams(options) {
413
330
  let params = {};
414
331
  if (typeof options.params === "string") {
@@ -431,10 +348,6 @@ function resolveBacktestEventsParams(options) {
431
348
  "source",
432
349
  typeof options.source === "string" ? options.source.trim() : void 0
433
350
  );
434
- addParam(
435
- "walletAddress",
436
- typeof options.walletAddress === "string" ? options.walletAddress.trim() : void 0
437
- );
438
351
  addParam(
439
352
  "symbol",
440
353
  typeof options.symbol === "string" ? options.symbol.trim() : void 0
@@ -462,18 +375,6 @@ function resolveBacktestEventsParams(options) {
462
375
  }
463
376
  return Object.keys(params).length ? params : void 0;
464
377
  }
465
- async function runAppsStoreEvents(options) {
466
- const config = await loadConfig();
467
- const uiBase = resolveBaseUrl(config);
468
- const apiKey = await ensureApiKey(config, uiBase);
469
- const apiBase = resolvePublicApiBaseUrl(config);
470
- const query = resolveStoreEventsParams(options);
471
- const result = await submitPositionsTx(apiBase, apiKey, {
472
- method: "GET",
473
- query
474
- });
475
- console.log(JSON.stringify(result, null, 2));
476
- }
477
378
  async function runBacktestEvents(options, target) {
478
379
  const config = await loadConfig();
479
380
  const uiBase = resolveBaseUrl(config);
@@ -506,24 +407,8 @@ async function runBacktestGet(options, target) {
506
407
  });
507
408
  console.log(JSON.stringify(result, null, 2));
508
409
  }
509
- async function runAppsTradeFacts(options) {
510
- const config = await loadConfig();
511
- const uiBase = resolveBaseUrl(config);
512
- const apiKey = await ensureApiKey(config, uiBase);
513
- const apiBase = resolvePublicApiBaseUrl(config);
514
- const appId = typeof options.appId === "string" ? options.appId : void 0;
515
- const performance = await getUserPerformance(apiBase, apiKey, { appId });
516
- if (performance && typeof performance === "object" && "trades" in performance && Array.isArray(performance.trades)) {
517
- console.log(
518
- JSON.stringify(performance.trades, null, 2)
519
- );
520
- return;
521
- }
522
- console.log(JSON.stringify(performance, null, 2));
523
- }
524
410
  export {
525
411
  resolveBacktestEventsParams,
526
- resolveStoreEventsParams,
527
412
  runAppsAgentCreate,
528
413
  runAppsAssistant,
529
414
  runAppsCodeVisibility,
@@ -532,12 +417,9 @@ export {
532
417
  runAppsEnvSet,
533
418
  runAppsList,
534
419
  runAppsPerformance,
535
- runAppsPositionsTx,
536
- runAppsStoreEvents,
537
420
  runAppsSummary,
538
421
  runAppsTools,
539
422
  runAppsToolsExecute,
540
- runAppsTradeFacts,
541
423
  runBacktestEvents,
542
424
  runBacktestGet
543
425
  };