openpond 0.2.21 → 0.2.23

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 (115) hide show
  1. package/dist/app-server.d.ts +2 -0
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/{actions-command-33SJXJKC.js → actions-command-CZD7U6CC.js} +1 -1
  4. package/dist/chunks/{app-layer-LMB3B4TY.js → app-layer-4CK6ZEKN.js} +1 -1
  5. package/dist/chunks/app-server-runtime-5XZWU7JL.js +2 -0
  6. package/dist/chunks/{apps-2MNOKPO2.js → apps-NIQBGOGH.js} +1 -1
  7. package/dist/chunks/{chunk-WXAZLP5W.js → chunk-3XUBKIBN.js} +1 -1
  8. package/dist/chunks/{chunk-E764DRA6.js → chunk-3YAGJU2X.js} +1 -1
  9. package/dist/chunks/{chunk-Q7QAKAGF.js → chunk-CTC5EYSH.js} +14 -14
  10. package/dist/chunks/{chunk-IGRYR3PT.js → chunk-CXDS2LSW.js} +1 -1
  11. package/dist/chunks/{chunk-TWA56GFU.js → chunk-H75VJFMZ.js} +1 -1
  12. package/dist/chunks/{chunk-UN3A7GEU.js → chunk-J3WNPOLS.js} +1 -1
  13. package/dist/chunks/{chunk-CUB5BQIQ.js → chunk-JS6MS2NR.js} +2 -2
  14. package/dist/chunks/chunk-MD7IADMT.js +5 -0
  15. package/dist/chunks/{chunk-M57DLSRG.js → chunk-NS3VMSTX.js} +302 -302
  16. package/dist/chunks/{chunk-M3FDHTJ2.js → chunk-Q76GR2JM.js} +1 -1
  17. package/dist/chunks/{chunk-3KK2O7A4.js → chunk-T3VPZRIX.js} +1 -1
  18. package/dist/chunks/{chunk-P7EHGAOW.js → chunk-V2BBMZ7I.js} +1 -1
  19. package/dist/chunks/chunk-WYHHDJEG.js +28 -0
  20. package/dist/chunks/{chunk-3P6B6NZN.js → chunk-XDVKDELR.js} +1 -1
  21. package/dist/chunks/{cli-5YDIW3WP.js → cli-GWKOPTLS.js} +1 -1
  22. package/dist/chunks/{configuration-command-DSNTY5II.js → configuration-command-OAZNWOFX.js} +1 -1
  23. package/dist/chunks/{core-commands-IDPOMDVM.js → core-commands-VGUAOSWS.js} +1 -1
  24. package/dist/chunks/{desktop-test-VNGOXPKF.js → desktop-test-SPTFR43A.js} +1 -1
  25. package/dist/chunks/{extension-A5RB7I6T.js → extension-AZRG5IPK.js} +1 -1
  26. package/dist/chunks/{help-46NAZU6H.js → help-6IMGNP7A.js} +1 -1
  27. package/dist/chunks/{opchat-2VPS674O.js → opchat-OS7WAVZO.js} +1 -1
  28. package/dist/chunks/{organizations-H4HZDRYM.js → organizations-QPACFCMH.js} +1 -1
  29. package/dist/chunks/{profile-TATWHJYY.js → profile-A3YR3WVU.js} +1 -1
  30. package/dist/chunks/{project-agent-3YOZKDEE.js → project-agent-5H6VCDAY.js} +1 -1
  31. package/dist/chunks/{sandbox-command-RYX3KKMX.js → sandbox-command-RKUHXCZJ.js} +1 -1
  32. package/dist/chunks/{sandbox-template-XYY5C3FD.js → sandbox-template-FK2TGQPK.js} +1 -1
  33. package/dist/chunks/{src-DHJBKILI.js → src-RZFKQSHW.js} +109 -109
  34. package/dist/chunks/{src-4R2FGHSH.js → src-UIX7LWM7.js} +1 -1
  35. package/dist/chunks/{teams-bot-FUALFQMX.js → teams-bot-PASMNRFS.js} +1 -1
  36. package/dist/chunks/{workspaces-H6H6XO2Q.js → workspaces-YFAAPNVP.js} +1 -1
  37. package/dist/cli.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/web/assets/{App-CmqvOgHr.js → App-CZo3tYaG.js} +36 -36
  40. package/dist/web/assets/{AppDialog-DdKmw4d6.js → AppDialog-18Y9aU8z.js} +1 -1
  41. package/dist/web/assets/{AppTerminalPanel-W2pjVUtg.js → AppTerminalPanel-9jAU4wYe.js} +2 -2
  42. package/dist/web/assets/{AppsView-RKIWikGP.js → AppsView-BCYnY9mm.js} +1 -1
  43. package/dist/web/assets/{BrowserSidebar-Dqo6nl7J.js → BrowserSidebar-BVf3sUAG.js} +1 -1
  44. package/dist/web/assets/{CartesianChart-DTZeIAQy.js → CartesianChart-iai9Dz1D.js} +1 -1
  45. package/dist/web/assets/{CollaborationTabs-h4UCjUB4.js → CollaborationTabs-D7bZIwFC.js} +1 -1
  46. package/dist/web/assets/{CommandMenu-B2SH7g8V.js → CommandMenu-diFDbKQl.js} +1 -1
  47. package/dist/web/assets/{CommunityView-BtI1_qwS.js → CommunityView-DaLkwOxW.js} +1 -1
  48. package/dist/web/assets/{ComposerCreateImproveStrip-BW8RhDkB.js → ComposerCreateImproveStrip-B59nTCE7.js} +1 -1
  49. package/dist/web/assets/{GetStartedView-Fqk2AYt7.js → GetStartedView-BETryURK.js} +1 -1
  50. package/dist/web/assets/HostedModelLearningReview-D5JtAiLZ.js +1 -0
  51. package/dist/web/assets/{HostedModelLearningSettings-CgS4Z4WT.js → HostedModelLearningSettings-FCly06RA.js} +1 -1
  52. package/dist/web/assets/{LabModelVersionDetailPage-Dpr2GpAR.js → LabModelVersionDetailPage-9MzQj6cy.js} +1 -1
  53. package/dist/web/assets/{LabSkillSidebar-BDmNaZ8f.js → LabSkillSidebar-BJHO5-J9.js} +1 -1
  54. package/dist/web/assets/{LabsRoute-CVWKsnzj.js → LabsRoute-6jVWrbOO.js} +4 -4
  55. package/dist/web/assets/{MainChatThread-Bq6f3AUB.js → MainChatThread-DAoPK8jG.js} +2 -2
  56. package/dist/web/assets/{MainPane-CGa9bSOr.js → MainPane-LDPzuZSj.js} +4 -4
  57. package/dist/web/assets/{MarkdownText-BORA69YO.js → MarkdownText-B8URwlq9.js} +1 -1
  58. package/dist/web/assets/{Messages-Bwyst8lC.js → Messages-Byk73D9T.js} +1 -1
  59. package/dist/web/assets/{NativeSkillSidebar-Dt4xs-gi.js → NativeSkillSidebar-BodHqCCH.js} +1 -1
  60. package/dist/web/assets/{NewExperienceSwitcher-C-T2my1F.js → NewExperienceSwitcher-BkUxxlOu.js} +1 -1
  61. package/dist/web/assets/{NewProjectDialog-Bd-8y1vE.js → NewProjectDialog-BZr2wm-4.js} +1 -1
  62. package/dist/web/assets/{OutputsPage-DYnvMsY-.js → OutputsPage-C8ZDtD1Y.js} +1 -1
  63. package/dist/web/assets/{ProjectsPage-BPytEvtz.js → ProjectsPage-CgfjGsl2.js} +1 -1
  64. package/dist/web/assets/{RightChatPanelStack-CJR0y6c5.js → RightChatPanelStack-DV3csVka.js} +1 -1
  65. package/dist/web/assets/{RightSidebarHomePanel-Cn0x7kgh.js → RightSidebarHomePanel-DvLaHLBb.js} +1 -1
  66. package/dist/web/assets/{ScheduledWorkPage-DaHVYiok.js → ScheduledWorkPage-DtzxPTAL.js} +1 -1
  67. package/dist/web/assets/{SettingsView-DwIdA2Qy.js → SettingsView-C3sVxgPc.js} +3 -3
  68. package/dist/web/assets/{TeamChatView-C1VmxtuK.js → TeamChatView-B-w2nrWF.js} +1 -1
  69. package/dist/web/assets/{TerminalOverlay-CPIWstqb.js → TerminalOverlay-_X7WVAev.js} +1 -1
  70. package/dist/web/assets/{TrainingCreationPanel-CjFkopVx.js → TrainingCreationPanel-DaVppW1m.js} +1 -1
  71. package/dist/web/assets/{TrainingDraftPanel-BbiN33_a.js → TrainingDraftPanel-CVj19T6L.js} +1 -1
  72. package/dist/web/assets/{UsageSettingsSection-BxT4ZptX.js → UsageSettingsSection-fRTHVjhG.js} +1 -1
  73. package/dist/web/assets/{WorkSidebarPanel-nb-GyANT.js → WorkSidebarPanel-CGOQwdIW.js} +1 -1
  74. package/dist/web/assets/{WorkspaceDiffPanel-DFi28DQv.js → WorkspaceDiffPanel-D6hbMv14.js} +3 -3
  75. package/dist/web/assets/{WorkspaceEnvironmentMenu-DW6IImGA.js → WorkspaceEnvironmentMenu-rWj1aDI4.js} +1 -1
  76. package/dist/web/assets/{WorkspaceGitDialogs-DvV8_9aF.js → WorkspaceGitDialogs-DVU5SrD-.js} +1 -1
  77. package/dist/web/assets/{WorkspaceMonacoEditor-BYqlTbx1.js → WorkspaceMonacoEditor-D78JPviN.js} +3 -3
  78. package/dist/web/assets/{arrow-up-right-BQGeuv2m.js → arrow-up-right-CnaPKXjg.js} +1 -1
  79. package/dist/web/assets/{chat-file-links-BjlG4ZTF.js → chat-file-links-D1INEr8r.js} +1 -1
  80. package/dist/web/assets/chevron-up-Bx5d_Wmr.js +1 -0
  81. package/dist/web/assets/{clipboard-CImDHdf4.js → clipboard-B8GTg8tx.js} +1 -1
  82. package/dist/web/assets/{cloud-upload-DSrjiFxa.js → cloud-upload-BlEc_10E.js} +1 -1
  83. package/dist/web/assets/{cssMode-CO6QKs7A.js → cssMode-BiYvezMD.js} +1 -1
  84. package/dist/web/assets/{folder-open-DWt_CiJ4.js → folder-open-BaNdbDD5.js} +1 -1
  85. package/dist/web/assets/{folder-plus-DZJsMZZS.js → folder-plus-BQhz_VxM.js} +1 -1
  86. package/dist/web/assets/{git-commit-horizontal-BmhX8D3M.js → git-commit-horizontal-wv523Ooq.js} +1 -1
  87. package/dist/web/assets/{htmlMode-BbhUfh60.js → htmlMode-BaMdOCq4.js} +1 -1
  88. package/dist/web/assets/{index-VrrkDcgt.js → index-DP8vqolj.js} +2 -2
  89. package/dist/web/assets/{info-C0HVDnJn.js → info-C0Ova1D9.js} +1 -1
  90. package/dist/web/assets/{jsonMode-qUE2PjNm.js → jsonMode-BTt0GByK.js} +1 -1
  91. package/dist/web/assets/{lspLanguageFeatures-CfX3VOob.js → lspLanguageFeatures-C-1acLbv.js} +1 -1
  92. package/dist/web/assets/{minimize-2-BPu3-DJH.js → minimize-2-CW5KYp0W.js} +1 -1
  93. package/dist/web/assets/{monaco.contribution-adURqSPk.js → monaco.contribution-CpiBa8rP.js} +2 -2
  94. package/dist/web/assets/{monaco.contribution-CKQpqdUm.js → monaco.contribution-DoAhyjpn.js} +2 -2
  95. package/dist/web/assets/{monaco.contribution-BtbXAYNA.js → monaco.contribution-DyKzYxR3.js} +2 -2
  96. package/dist/web/assets/{monaco.contribution-DBKGSgm8.js → monaco.contribution-P9b5cZU2.js} +2 -2
  97. package/dist/web/assets/{play-CUyIuBFF.js → play-jV1i4pfe.js} +1 -1
  98. package/dist/web/assets/{python-q4l4w80D.js → python-BQnnGrv3.js} +1 -1
  99. package/dist/web/assets/{refresh-cw-IMz7arkM.js → refresh-cw-REnkUGNy.js} +1 -1
  100. package/dist/web/assets/{save-Cj-5iVpt.js → save-B2WTTCI_.js} +1 -1
  101. package/dist/web/assets/{square-zOxRs5It.js → square-CRb2lKMC.js} +1 -1
  102. package/dist/web/assets/{toggleHighContrast-Dj-u2UZ6.js → toggleHighContrast-BGsGhGW4.js} +1 -1
  103. package/dist/web/assets/{tsMode-B-r-e3os.js → tsMode-BWtSmvFs.js} +1 -1
  104. package/dist/web/assets/{upload-BpElaH7O.js → upload-B_PICaZn.js} +1 -1
  105. package/dist/web/assets/{useLocalAgentSchedules-wyJ9JjmR.js → useLocalAgentSchedules-zmmvBnwd.js} +1 -1
  106. package/dist/web/assets/{wifi-off-DWRK-TPQ.js → wifi-off-CjKTt0zE.js} +1 -1
  107. package/dist/web/assets/{workers-Pk9mKuOt.js → workers-CxglqyKV.js} +1 -1
  108. package/dist/web/assets/{yaml-hbr5HzqB.js → yaml-DgyPsmb2.js} +1 -1
  109. package/dist/web/index.html +1 -1
  110. package/package.json +1 -1
  111. package/dist/chunks/app-server-runtime-YAHD6FWN.js +0 -2
  112. package/dist/chunks/chunk-A2PIGBPD.js +0 -28
  113. package/dist/chunks/chunk-FRWPAVCD.js +0 -5
  114. package/dist/web/assets/HostedModelLearningReview-mBYA71Zs.js +0 -1
  115. package/dist/web/assets/chevron-up-BbI7fj2g.js +0 -1
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as n}from"./chunk-FTQLQJQV.js";var s="127.0.0.1";var f="0.2.21",m="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.";import{randomUUID as p}from"node:crypto";import i from"node:path";import{fileURLToPath as c}from"node:url";function u(){return new Date().toISOString()}n(u,"now");function l(e){if(typeof e=="string")return e;if(e instanceof Error)return e.message||e.name;if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}}n(l,"textFromUnknown");function w(e){if(!e||typeof e!="object")return"";let t=e;for(let r of["delta","text","output","chunk","message"])if(typeof t[r]=="string")return t[r];return t.delta&&typeof t.delta=="object"?l(t.delta):""}n(w,"extractDelta");function x(e){return{id:p(),timestamp:u(),...e}}n(x,"event");function k(e){let t=e.replace(/^https?:\/\//,""),[r,o]=t.split(":");return{host:r||s,port:o?Number.parseInt(o,10):17874}}n(k,"parseListen");function b(e){return(process.argv[1]?i.resolve(process.argv[1]):"")===i.resolve(c(e))}n(b,"isCliEntrypoint");export{s as a,f as b,m as c,u as d,l as e,w as f,x as g,k as h,b as i};
2
+ import{a as n}from"./chunk-FTQLQJQV.js";var s="127.0.0.1";var f="0.2.23",m="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.";import{randomUUID as p}from"node:crypto";import i from"node:path";import{fileURLToPath as c}from"node:url";function u(){return new Date().toISOString()}n(u,"now");function l(e){if(typeof e=="string")return e;if(e instanceof Error)return e.message||e.name;if(e==null)return"";try{return JSON.stringify(e)}catch{return String(e)}}n(l,"textFromUnknown");function w(e){if(!e||typeof e!="object")return"";let t=e;for(let r of["delta","text","output","chunk","message"])if(typeof t[r]=="string")return t[r];return t.delta&&typeof t.delta=="object"?l(t.delta):""}n(w,"extractDelta");function x(e){return{id:p(),timestamp:u(),...e}}n(x,"event");function k(e){let t=e.replace(/^https?:\/\//,""),[r,o]=t.split(":");return{host:r||s,port:o?Number.parseInt(o,10):17874}}n(k,"parseListen");function b(e){return(process.argv[1]?i.resolve(process.argv[1]):"")===i.resolve(c(e))}n(b,"isCliEntrypoint");export{s as a,f as b,m as c,u as d,l as e,w as f,x as g,k as h,b as i};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{i as a,j as b,k as c}from"./chunk-WXAZLP5W.js";import"./chunk-FRWPAVCD.js";import"./chunk-3P6B6NZN.js";import"./chunk-P7EHGAOW.js";import"./chunk-M3FDHTJ2.js";import"./chunk-Q7QAKAGF.js";import"./chunk-6MI4KKWF.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-J2S7BOZU.js";import"./chunk-A2PIGBPD.js";import"./chunk-6FA3GG5B.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-FTQLQJQV.js";export{a as resolveWebLaunchMessages,c as runOpenPondAppServerCli,b as runOpenPondServerCli};
2
+ import{i as a,j as b,k as c}from"./chunk-3XUBKIBN.js";import"./chunk-MD7IADMT.js";import"./chunk-XDVKDELR.js";import"./chunk-V2BBMZ7I.js";import"./chunk-Q76GR2JM.js";import"./chunk-CTC5EYSH.js";import"./chunk-6MI4KKWF.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-J2S7BOZU.js";import"./chunk-WYHHDJEG.js";import"./chunk-6FA3GG5B.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-FTQLQJQV.js";export{a as resolveWebLaunchMessages,c as runOpenPondAppServerCli,b as runOpenPondServerCli};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as f}from"./chunk-IGRYR3PT.js";import{$a as I,Ba as J,Qa as N,Ra as q,Ua as k,Wa as A,Xa as B,_a as H,b as d,c as w,e as b,hb as E,ib as M,ja as C,jb as T,la as m,ma as j,na as x,oa as F,pa as v,qa as P}from"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import{d as O,f as S,h as g}from"./chunk-H7IWJN7L.js";import"./chunk-CUB5BQIQ.js";import"./chunk-3M53YXEI.js";import{a as l}from"./chunk-FTQLQJQV.js";import R from"node:path";import{readFile as p}from"node:fs/promises";var n=l((t,s)=>typeof t[s]=="string"?t[s]:void 0,"stringOption");function a(t){console.log(JSON.stringify(t,null,2))}l(a,"print");function U(t,s){let i=n(t,"keyPath");if(i){let r=JSON.parse(i);if(Array.isArray(r)&&r.length&&r.every(c=>typeof c=="string"&&c.length))return r;throw new f("--key-path must be a JSON array of key segments.")}if(!s)throw new f("Specify a setting key, or --key-path for keys containing dots.");return s.split(".")}l(U,"keyPath");async function G(t,s){let i=S({home:n(t,"home")}),r=s[0]??"get",c=g(i).config;if(r==="path"){console.log(c);return}if(r==="export"){let e=await T(i),o=n(t,"file");o?(await b(R.resolve(o),JSON.stringify(e,null,2),{privateParent:!1}),a({path:R.resolve(o),requiresRebinding:e.requiresRebinding})):a(e);return}if(r==="backup"||r==="restore"){let e=n(t,"file"),o=n(t,"keyFile");if(!e||!o)throw new f(`config ${r} requires --file <encrypted-backup> and --key-file <separate-32-byte-key-file>.`);let u=await p(o),y=u.length===32?u:Buffer.from(u.toString("utf8").trim(),"base64");try{a(r==="backup"?await E(i,e,y):await M(e,i,y))}finally{y.fill(0),u.fill(0)}return}if(r==="collect-orphans"){a(await N(i));return}if(r==="schema"){a(F());return}if(r==="migrate"){let e=n(t,"resolutionFile"),o=e?q.parse(JSON.parse(await p(e,"utf8"))):void 0;a(await k(i,{resolutions:o,sourceAppHome:n(t,"sourceAppHome"),sourceConfig:n(t,"sourceConfig"),sourceBrowserState:n(t,"sourceBrowserState"),dryRun:t.dryRun===!0||t.dryRun==="true"}));return}if(r==="recover"){let e=n(t,"revision");a(e?await x(i,e,n(t,"expectedRevision")??d(await w(c))):await A(i));return}if(r==="restart-migration"){a(await B(i));return}if(r==="effective"){a(await I(i,{projectRoot:n(t,"projectRoot"),accountId:n(t,"accountId")}));return}if(r==="trust"||r==="untrust"){let e=n(t,"projectRoot")??s[1];if(!e)throw new f("Specify the canonical project root with --project-root.");await H(i,e,n(t,"accountId")??"local",r==="trust"),a({root:e,trusted:r==="trust"});return}if(r==="revisions"){a(await m(i));return}if(r==="validate"){let e=n(t,"file")??c;C(await p(e,"utf8"),e,t.project===!0||t.project==="true"?"project":"user"),a({valid:!0,path:e});return}if(r==="replace"){let e=n(t,"file");if(!e)throw new f("config replace requires --file <validated-toml-file>.");a(await j(i,n(t,"expectedRevision")??d(await w(c)),await p(e,"utf8")));return}if(r==="doctor"){let e=await w(c),o=null;try{await v(i)}catch(u){o=O(u,c)}a({home:i,path:c,rawRevision:d(e),issue:o,recoverableRevisions:await m(i),migration:await w(R.join(g(i).runtime,"migration.json"))!==null}),o&&(process.exitCode=1);return}if(await k(i),r==="clear-cache"){await J(i),a({cleared:!0,path:g(i).cache});return}let h=await v(i);if(r==="get"){if(!s[1]&&!t.keyPath){a(h);return}let e=h.document;for(let o of U(t,s[1]))e=e&&typeof e=="object"?e[o]:void 0;a(e??null);return}if(r==="set"||r==="unset"){let e=U(t,s[1]),o;if(r==="set"){let u=n(t,"value")??s[2];if(u===void 0)throw new f("config set requires a value. Use JSON for arrays, tables, numbers and booleans.");try{o=JSON.parse(u)}catch{o=u}}a(await P(i,n(t,"expectedRevision")??h.rawRevision,[r==="set"?{op:"set",path:e,value:o}:{op:"unset",path:e}]));return}throw new f(`Unknown config command: ${r}`)}l(G,"runConfigurationCommand");export{G as runConfigurationCommand};
2
+ import{a as f}from"./chunk-CXDS2LSW.js";import{$a as I,Ba as J,Qa as N,Ra as q,Ua as k,Wa as A,Xa as B,_a as H,b as d,c as w,e as b,hb as E,ib as M,ja as C,jb as T,la as m,ma as j,na as x,oa as F,pa as v,qa as P}from"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import{d as O,f as S,h as g}from"./chunk-H7IWJN7L.js";import"./chunk-JS6MS2NR.js";import"./chunk-3M53YXEI.js";import{a as l}from"./chunk-FTQLQJQV.js";import R from"node:path";import{readFile as p}from"node:fs/promises";var n=l((t,s)=>typeof t[s]=="string"?t[s]:void 0,"stringOption");function a(t){console.log(JSON.stringify(t,null,2))}l(a,"print");function U(t,s){let i=n(t,"keyPath");if(i){let r=JSON.parse(i);if(Array.isArray(r)&&r.length&&r.every(c=>typeof c=="string"&&c.length))return r;throw new f("--key-path must be a JSON array of key segments.")}if(!s)throw new f("Specify a setting key, or --key-path for keys containing dots.");return s.split(".")}l(U,"keyPath");async function G(t,s){let i=S({home:n(t,"home")}),r=s[0]??"get",c=g(i).config;if(r==="path"){console.log(c);return}if(r==="export"){let e=await T(i),o=n(t,"file");o?(await b(R.resolve(o),JSON.stringify(e,null,2),{privateParent:!1}),a({path:R.resolve(o),requiresRebinding:e.requiresRebinding})):a(e);return}if(r==="backup"||r==="restore"){let e=n(t,"file"),o=n(t,"keyFile");if(!e||!o)throw new f(`config ${r} requires --file <encrypted-backup> and --key-file <separate-32-byte-key-file>.`);let u=await p(o),y=u.length===32?u:Buffer.from(u.toString("utf8").trim(),"base64");try{a(r==="backup"?await E(i,e,y):await M(e,i,y))}finally{y.fill(0),u.fill(0)}return}if(r==="collect-orphans"){a(await N(i));return}if(r==="schema"){a(F());return}if(r==="migrate"){let e=n(t,"resolutionFile"),o=e?q.parse(JSON.parse(await p(e,"utf8"))):void 0;a(await k(i,{resolutions:o,sourceAppHome:n(t,"sourceAppHome"),sourceConfig:n(t,"sourceConfig"),sourceBrowserState:n(t,"sourceBrowserState"),dryRun:t.dryRun===!0||t.dryRun==="true"}));return}if(r==="recover"){let e=n(t,"revision");a(e?await x(i,e,n(t,"expectedRevision")??d(await w(c))):await A(i));return}if(r==="restart-migration"){a(await B(i));return}if(r==="effective"){a(await I(i,{projectRoot:n(t,"projectRoot"),accountId:n(t,"accountId")}));return}if(r==="trust"||r==="untrust"){let e=n(t,"projectRoot")??s[1];if(!e)throw new f("Specify the canonical project root with --project-root.");await H(i,e,n(t,"accountId")??"local",r==="trust"),a({root:e,trusted:r==="trust"});return}if(r==="revisions"){a(await m(i));return}if(r==="validate"){let e=n(t,"file")??c;C(await p(e,"utf8"),e,t.project===!0||t.project==="true"?"project":"user"),a({valid:!0,path:e});return}if(r==="replace"){let e=n(t,"file");if(!e)throw new f("config replace requires --file <validated-toml-file>.");a(await j(i,n(t,"expectedRevision")??d(await w(c)),await p(e,"utf8")));return}if(r==="doctor"){let e=await w(c),o=null;try{await v(i)}catch(u){o=O(u,c)}a({home:i,path:c,rawRevision:d(e),issue:o,recoverableRevisions:await m(i),migration:await w(R.join(g(i).runtime,"migration.json"))!==null}),o&&(process.exitCode=1);return}if(await k(i),r==="clear-cache"){await J(i),a({cleared:!0,path:g(i).cache});return}let h=await v(i);if(r==="get"){if(!s[1]&&!t.keyPath){a(h);return}let e=h.document;for(let o of U(t,s[1]))e=e&&typeof e=="object"?e[o]:void 0;a(e??null);return}if(r==="set"||r==="unset"){let e=U(t,s[1]),o;if(r==="set"){let u=n(t,"value")??s[2];if(u===void 0)throw new f("config set requires a value. Use JSON for arrays, tables, numbers and booleans.");try{o=JSON.parse(u)}catch{o=u}}a(await P(i,n(t,"expectedRevision")??h.rawRevision,[r==="set"?{op:"set",path:e,value:o}:{op:"unset",path:e}]));return}throw new f(`Unknown config command: ${r}`)}l(G,"runConfigurationCommand");export{G as runConfigurationCommand};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"./chunk-E764DRA6.js";import"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-TWA56GFU.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-UN3A7GEU.js";import"./chunk-J2S7BOZU.js";import"./chunk-A2PIGBPD.js";import"./chunk-IGRYR3PT.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-CUB5BQIQ.js";import"./chunk-3M53YXEI.js";import"./chunk-FTQLQJQV.js";export{m as resolveGitBranch,f as runAccount,j as runBacktestRun,p as runCheckUpdate,k as runDeployWatch,g as runHealth,d as runLogin,o as runOpentool,e as runProfiles,l as runRepoCreate,n as runRepoPush,b as runTemplateBranches,a as runTemplateStatus,c as runTemplateUpdate,h as runToolList,i as runToolRun};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"./chunk-3YAGJU2X.js";import"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-H75VJFMZ.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-J3WNPOLS.js";import"./chunk-J2S7BOZU.js";import"./chunk-WYHHDJEG.js";import"./chunk-CXDS2LSW.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-JS6MS2NR.js";import"./chunk-3M53YXEI.js";import"./chunk-FTQLQJQV.js";export{m as resolveGitBranch,f as runAccount,j as runBacktestRun,p as runCheckUpdate,k as runDeployWatch,g as runHealth,d as runLogin,o as runOpentool,e as runProfiles,l as runRepoCreate,n as runRepoPush,b as runTemplateBranches,a as runTemplateStatus,c as runTemplateUpdate,h as runToolList,i as runToolRun};
@@ -1,3 +1,3 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{x as f}from"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-TWA56GFU.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-UN3A7GEU.js";import"./chunk-J2S7BOZU.js";import"./chunk-A2PIGBPD.js";import{a as c}from"./chunk-IGRYR3PT.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-CUB5BQIQ.js";import{c as p,f as u}from"./chunk-3M53YXEI.js";import{a as r}from"./chunk-FTQLQJQV.js";import d from"node:path";import{access as v}from"node:fs/promises";import{constants as C}from"node:fs";import{createRequire as P}from"node:module";var l=d.join("scripts","desktop-harness.ts");async function $(n,t){let o=await j({options:n,rest:t}),e=await f(o.command,o.args,{cwd:o.cwd,inherit:!0,timeoutMs:0});if(e.code!==0)throw new m(e.code)}r($,"runDesktopTestCommand");async function j(n){let t=n.options,o=n.rest,e=o[0];if(e!=="run"&&e!=="attach")throw new c(D());let a=o.slice(1);if(a.length===0)throw new c("usage: openpond desktop-test run <scenario...> [options]");let g=p(t,"cwd")||n.cwd||process.cwd(),w=await O(g),k=(n.env??process.env).OPENPOND_NODE_BINARY?.trim()||process.execPath,s=[P(import.meta.url).resolve("tsx/cli"),l,"run",...a],h=x(t,e);return h&&s.push(`--${h}`),i(s,"--app",t,"app"),i(s,"--server",t,"server"),i(s,"--token",t,"token"),i(s,"--token-file",t,"tokenFile"),i(s,"--devtools-port",t,"devtoolsPort"),i(s,"--artifacts-dir",t,"artifactsDir"),H(s,t),i(s,"--grep",t,"grep"),i(s,"--timeout-ms",t,"timeoutMs"),u(t.keepHome)&&s.push("--keep-home"),{command:k,args:s,cwd:w}}r(j,"buildDesktopHarnessInvocation");async function O(n){let t=d.resolve(n);for(;;){let o=d.join(t,l);if(await R(o))return t;let e=d.dirname(t);if(e===t)throw new c(`Could not find ${l}. Run this command from the OpenPond source checkout or pass --cwd <repo>.`);t=e}}r(O,"resolveDesktopHarnessRepoRoot");function x(n,t){let o=t==="attach"?"attach":null;for(let e of["isolated","attach","packaged","none"])if(u(n[e])){if(o&&o!==e)throw new c("Choose only one desktop harness launch mode: --isolated, --attach, --packaged, or --none.");o=e}return o}r(x,"resolveLaunchMode");function i(n,t,o,e){let a=p(o,e);a&&n.push(t,a)}r(i,"appendStringFlag");function H(n,t){let o=p(t,"json"),e=p(t,"jsonPath");if(o&&y(o))throw new c("harness --json requires a report path. Use --json <path> or --json-path <path>.");if(o&&e&&o!==e)throw new c("Use only one JSON report path: --json <path> or --json-path <path>.");let a=o||e;a&&n.push("--json",a)}r(H,"appendJsonFlag");function y(n){return/^(true|false|1|0|yes|no)$/i.test(n)}r(y,"isBooleanLiteral");async function R(n){try{return await v(n,C.R_OK),!0}catch{return!1}}r(R,"fileExists");function D(){return["usage: openpond desktop-test run <scenario...> [options]"," openpond desktop-test attach <scenario...> [options]","","Options include --isolated, --attach, --packaged, --none, --app <path>,","--server <url>, --token <token>, --token-file <path>, --devtools-port <port>, --artifacts-dir <path>,","--json <path>, --json-path <path>, --grep <pattern>, --timeout-ms <ms>,","--keep-home, and --cwd <repo>."].join(`
2
+ import{x as f}from"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-H75VJFMZ.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-J3WNPOLS.js";import"./chunk-J2S7BOZU.js";import"./chunk-WYHHDJEG.js";import{a as c}from"./chunk-CXDS2LSW.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-JS6MS2NR.js";import{c as p,f as u}from"./chunk-3M53YXEI.js";import{a as r}from"./chunk-FTQLQJQV.js";import d from"node:path";import{access as v}from"node:fs/promises";import{constants as C}from"node:fs";import{createRequire as P}from"node:module";var l=d.join("scripts","desktop-harness.ts");async function $(n,t){let o=await j({options:n,rest:t}),e=await f(o.command,o.args,{cwd:o.cwd,inherit:!0,timeoutMs:0});if(e.code!==0)throw new m(e.code)}r($,"runDesktopTestCommand");async function j(n){let t=n.options,o=n.rest,e=o[0];if(e!=="run"&&e!=="attach")throw new c(D());let a=o.slice(1);if(a.length===0)throw new c("usage: openpond desktop-test run <scenario...> [options]");let g=p(t,"cwd")||n.cwd||process.cwd(),w=await O(g),k=(n.env??process.env).OPENPOND_NODE_BINARY?.trim()||process.execPath,s=[P(import.meta.url).resolve("tsx/cli"),l,"run",...a],h=x(t,e);return h&&s.push(`--${h}`),i(s,"--app",t,"app"),i(s,"--server",t,"server"),i(s,"--token",t,"token"),i(s,"--token-file",t,"tokenFile"),i(s,"--devtools-port",t,"devtoolsPort"),i(s,"--artifacts-dir",t,"artifactsDir"),H(s,t),i(s,"--grep",t,"grep"),i(s,"--timeout-ms",t,"timeoutMs"),u(t.keepHome)&&s.push("--keep-home"),{command:k,args:s,cwd:w}}r(j,"buildDesktopHarnessInvocation");async function O(n){let t=d.resolve(n);for(;;){let o=d.join(t,l);if(await R(o))return t;let e=d.dirname(t);if(e===t)throw new c(`Could not find ${l}. Run this command from the OpenPond source checkout or pass --cwd <repo>.`);t=e}}r(O,"resolveDesktopHarnessRepoRoot");function x(n,t){let o=t==="attach"?"attach":null;for(let e of["isolated","attach","packaged","none"])if(u(n[e])){if(o&&o!==e)throw new c("Choose only one desktop harness launch mode: --isolated, --attach, --packaged, or --none.");o=e}return o}r(x,"resolveLaunchMode");function i(n,t,o,e){let a=p(o,e);a&&n.push(t,a)}r(i,"appendStringFlag");function H(n,t){let o=p(t,"json"),e=p(t,"jsonPath");if(o&&y(o))throw new c("harness --json requires a report path. Use --json <path> or --json-path <path>.");if(o&&e&&o!==e)throw new c("Use only one JSON report path: --json <path> or --json-path <path>.");let a=o||e;a&&n.push("--json",a)}r(H,"appendJsonFlag");function y(n){return/^(true|false|1|0|yes|no)$/i.test(n)}r(y,"isBooleanLiteral");async function R(n){try{return await v(n,C.R_OK),!0}catch{return!1}}r(R,"fileExists");function D(){return["usage: openpond desktop-test run <scenario...> [options]"," openpond desktop-test attach <scenario...> [options]","","Options include --isolated, --attach, --packaged, --none, --app <path>,","--server <url>, --token <token>, --token-file <path>, --devtools-port <port>, --artifacts-dir <path>,","--json <path>, --json-path <path>, --grep <pattern>, --timeout-ms <ms>,","--keep-home, and --cwd <repo>."].join(`
3
3
  `)}r(D,"desktopHarnessCliUsage");var m=class extends Error{static{r(this,"HarnessCommandFailedError")}exitCode;constructor(t){let o=typeof t=="number"&&t>0?t:1;super(`desktop harness failed with exit code ${o}`),this.name="HarnessCommandFailedError",this.exitCode=o}};export{j as buildDesktopHarnessInvocation,O as resolveDesktopHarnessRepoRoot,$ as runDesktopTestCommand};