openpond 0.2.12 → 0.2.13

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-GF4Y7XF4.js → actions-command-Q5HXY5XD.js} +1 -1
  4. package/dist/chunks/{app-layer-2GL42D4P.js → app-layer-S6H572UM.js} +1 -1
  5. package/dist/chunks/{app-server-runtime-24KZ44ZT.js → app-server-runtime-GIFUDGYZ.js} +1 -1
  6. package/dist/chunks/{apps-CABD3NMT.js → apps-K5HMFAPI.js} +1 -1
  7. package/dist/chunks/{chunk-GHN2HOZZ.js → chunk-3GLSX322.js} +2 -2
  8. package/dist/chunks/{chunk-UM2K7YHI.js → chunk-3V5FPSOK.js} +1 -1
  9. package/dist/chunks/{chunk-NWSHAK3L.js → chunk-3YH3S5U2.js} +1 -1
  10. package/dist/chunks/{chunk-4LEX4GTH.js → chunk-ECH6PXVK.js} +1 -1
  11. package/dist/chunks/chunk-MPQWFPGA.js +5 -0
  12. package/dist/chunks/{chunk-RTHNSE6G.js → chunk-MSF7ZBFG.js} +1 -1
  13. package/dist/chunks/{chunk-VTNKXJMD.js → chunk-NHBCFMAC.js} +1 -1
  14. package/dist/chunks/{chunk-645ZCJMN.js → chunk-NYPLOXEP.js} +1 -1
  15. package/dist/chunks/{chunk-L564A7TY.js → chunk-OHGSESPN.js} +1 -1
  16. package/dist/chunks/chunk-OW4KET6I.js +5 -0
  17. package/dist/chunks/{chunk-VAKLZZUV.js → chunk-XK77GSBL.js} +264 -264
  18. package/dist/chunks/{chunk-USXJTOD5.js → chunk-ZMRT4B4H.js} +14 -14
  19. package/dist/chunks/{cli-5CB2IOBD.js → cli-XJJYXKXM.js} +1 -1
  20. package/dist/chunks/{configuration-command-ZLORYSWN.js → configuration-command-Q7XVBZ2E.js} +1 -1
  21. package/dist/chunks/{core-commands-ZG7XHCIV.js → core-commands-6GZ7T4SK.js} +1 -1
  22. package/dist/chunks/{desktop-test-VHPQRCW4.js → desktop-test-EKPOPWTL.js} +1 -1
  23. package/dist/chunks/{extension-B25YICMA.js → extension-A2BWJMRQ.js} +1 -1
  24. package/dist/chunks/{help-A3WX4THT.js → help-MTWG7AXZ.js} +1 -1
  25. package/dist/chunks/{opchat-54TLTDTZ.js → opchat-4QGK6MRL.js} +1 -1
  26. package/dist/chunks/{organizations-BUWM3YH7.js → organizations-TTUM577J.js} +1 -1
  27. package/dist/chunks/{profile-3WAMFPYW.js → profile-C33CIJOV.js} +1 -1
  28. package/dist/chunks/{project-agent-MODOYPZH.js → project-agent-5P3ALPRY.js} +1 -1
  29. package/dist/chunks/{sandbox-command-E5NLILGZ.js → sandbox-command-CEIXSDW2.js} +1 -1
  30. package/dist/chunks/{sandbox-template-JXBTBECW.js → sandbox-template-KTKWVKZ7.js} +1 -1
  31. package/dist/chunks/src-7NWHHROY.js +319 -0
  32. package/dist/chunks/{src-DCKMDSJG.js → src-ZAF6VEWJ.js} +1 -1
  33. package/dist/chunks/{teams-bot-PBZVFB5A.js → teams-bot-O7IFQ3L6.js} +1 -1
  34. package/dist/chunks/{workspaces-A6ONMJW5.js → workspaces-I5BVMFVY.js} +1 -1
  35. package/dist/cli.js +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/web/assets/{App-Br9-pOIC.js → App-BqgpZNh-.js} +33 -33
  38. package/dist/web/assets/{AppDialog-C6Xd84LF.js → AppDialog-BCzsyF8y.js} +1 -1
  39. package/dist/web/assets/{AppTerminalPanel-CjLTHGd7.js → AppTerminalPanel-Cqtaoc93.js} +2 -2
  40. package/dist/web/assets/{AppsView-BaOXLPG_.js → AppsView-BHz8ruGV.js} +1 -1
  41. package/dist/web/assets/{BrowserSidebar-C1UHkaci.js → BrowserSidebar-vrHh2y_s.js} +1 -1
  42. package/dist/web/assets/{CartesianChart-CC6gURj1.js → CartesianChart-C5PgQkxh.js} +1 -1
  43. package/dist/web/assets/{CollaborationTabs-D3v9jxIV.js → CollaborationTabs-OSqxEZgD.js} +1 -1
  44. package/dist/web/assets/{CommandMenu-DZJ4xot1.js → CommandMenu-XMeH3T6m.js} +1 -1
  45. package/dist/web/assets/{CommunityView-VElVyeHB.js → CommunityView-BPsy_BnG.js} +1 -1
  46. package/dist/web/assets/{ComposerCreateImproveStrip-D_Pldm1h.js → ComposerCreateImproveStrip-Bsh9eyj1.js} +1 -1
  47. package/dist/web/assets/{GetStartedView-Ciy_6VB-.js → GetStartedView-Ay67q9mX.js} +1 -1
  48. package/dist/web/assets/HostedModelLearningReview-C8PfSxcz.js +1 -0
  49. package/dist/web/assets/{HostedModelLearningSettings-Cba2jDOj.js → HostedModelLearningSettings-MG_1VD7H.js} +1 -1
  50. package/dist/web/assets/{LabModelVersionDetailPage-YGGjl8dY.js → LabModelVersionDetailPage-CPkCZhBg.js} +1 -1
  51. package/dist/web/assets/{LabSkillSidebar-D55wufz-.js → LabSkillSidebar-Y06Ghxe7.js} +1 -1
  52. package/dist/web/assets/{LabsRoute-BvJAvcAo.js → LabsRoute-CBy4evwc.js} +4 -4
  53. package/dist/web/assets/{MainChatThread-CQ9hEgUz.js → MainChatThread-CqG9WewR.js} +2 -2
  54. package/dist/web/assets/{MainPane-CH2CUmxD.js → MainPane-CQVCd0hz.js} +4 -4
  55. package/dist/web/assets/{MarkdownText-B7CT2cwK.js → MarkdownText-BSXFJB5s.js} +1 -1
  56. package/dist/web/assets/{Messages-9_Bf5Lii.js → Messages-CcKLreir.js} +1 -1
  57. package/dist/web/assets/{NativeSkillSidebar-BIpYM4uF.js → NativeSkillSidebar-BF4T1Tuy.js} +1 -1
  58. package/dist/web/assets/{NewExperienceSwitcher-D6RLDRgD.js → NewExperienceSwitcher-BH2-_iQt.js} +1 -1
  59. package/dist/web/assets/{NewProjectDialog-DlnYnpsm.js → NewProjectDialog-BSkPgqLX.js} +1 -1
  60. package/dist/web/assets/{OutputsPage-D1JY14ij.js → OutputsPage-DBAfj1e_.js} +1 -1
  61. package/dist/web/assets/{ProjectsPage-kRy0z4oP.js → ProjectsPage-DOTViI5-.js} +1 -1
  62. package/dist/web/assets/{RightChatPanelStack-D0Zdekbb.js → RightChatPanelStack-D3wuMm3F.js} +1 -1
  63. package/dist/web/assets/{RightSidebarHomePanel-BCW78Zbx.js → RightSidebarHomePanel-DLP1LFoX.js} +1 -1
  64. package/dist/web/assets/{ScheduledWorkPage-D2iewjFh.js → ScheduledWorkPage-BETU42Pi.js} +1 -1
  65. package/dist/web/assets/{SettingsView-CLSg--Vp.css → SettingsView-B9Tn0_zX.css} +1 -1
  66. package/dist/web/assets/SettingsView-D2eKwMH6.js +9 -0
  67. package/dist/web/assets/{TeamChatView-BhcWyJXF.js → TeamChatView-ytGArG3p.js} +1 -1
  68. package/dist/web/assets/{TerminalOverlay-GXVklUL1.js → TerminalOverlay-FV-T6Vk6.js} +1 -1
  69. package/dist/web/assets/{TrainingCreationPanel-DPEt3Kcq.js → TrainingCreationPanel-D7UhsNpa.js} +1 -1
  70. package/dist/web/assets/{TrainingDraftPanel-BiYk2Ti6.js → TrainingDraftPanel-BZ4ZhYbm.js} +1 -1
  71. package/dist/web/assets/{UsageSettingsSection-DOR-WjP_.js → UsageSettingsSection-Ml9cMCUi.js} +1 -1
  72. package/dist/web/assets/{WorkSidebarPanel-MFyj6kAC.js → WorkSidebarPanel-DZZK0_vI.js} +1 -1
  73. package/dist/web/assets/{WorkspaceDiffPanel-Dhk5IRNe.js → WorkspaceDiffPanel-CSLiV2LC.js} +3 -3
  74. package/dist/web/assets/{WorkspaceEnvironmentMenu-CR-2HGxj.js → WorkspaceEnvironmentMenu-dqDA6sik.js} +1 -1
  75. package/dist/web/assets/{WorkspaceGitDialogs-YTvn4Rpj.js → WorkspaceGitDialogs-C9ptN_7-.js} +1 -1
  76. package/dist/web/assets/{WorkspaceMonacoEditor-C_NHJaDf.js → WorkspaceMonacoEditor-BOa6xAaO.js} +3 -3
  77. package/dist/web/assets/{arrow-up-right-B_joTAq0.js → arrow-up-right-Qq_YNPUt.js} +1 -1
  78. package/dist/web/assets/{chat-file-links-CtG3brZZ.js → chat-file-links-z54bmvhH.js} +1 -1
  79. package/dist/web/assets/chevron-up-CIrVx_eP.js +1 -0
  80. package/dist/web/assets/{clipboard-BuMCABK6.js → clipboard-C_cLfHiu.js} +1 -1
  81. package/dist/web/assets/{cloud-upload-Cx6hdgxq.js → cloud-upload-B1A_725d.js} +1 -1
  82. package/dist/web/assets/{cssMode-DgBmbKa2.js → cssMode-DKjB86V7.js} +1 -1
  83. package/dist/web/assets/{folder-open-CbqwcgQ4.js → folder-open-BAqrqIkA.js} +1 -1
  84. package/dist/web/assets/{folder-plus-DsZqlrho.js → folder-plus-Aw6rEy1D.js} +1 -1
  85. package/dist/web/assets/{git-commit-horizontal-DI-UCrjd.js → git-commit-horizontal-75RSWQ3Q.js} +1 -1
  86. package/dist/web/assets/{htmlMode-BuyogX60.js → htmlMode-CH03ACqd.js} +1 -1
  87. package/dist/web/assets/{index-BPeus0zA.js → index-C0gdp_hv.js} +2 -2
  88. package/dist/web/assets/{info-Csd_7rfz.js → info-CXzXdZ1o.js} +1 -1
  89. package/dist/web/assets/{jsonMode-DflDpOXZ.js → jsonMode-Bvmzl5ln.js} +1 -1
  90. package/dist/web/assets/{lspLanguageFeatures-C_Z8VeHY.js → lspLanguageFeatures-BKXLyuIE.js} +1 -1
  91. package/dist/web/assets/{minimize-2-CiM53hsa.js → minimize-2-C-6SC3Bs.js} +1 -1
  92. package/dist/web/assets/{monaco.contribution-JwSEb0Jo.js → monaco.contribution-BON5T_eJ.js} +2 -2
  93. package/dist/web/assets/{monaco.contribution-CGcq8kux.js → monaco.contribution-BwSCuTR3.js} +2 -2
  94. package/dist/web/assets/{monaco.contribution-CRL61P2H.js → monaco.contribution-Cv_QTWVQ.js} +2 -2
  95. package/dist/web/assets/{monaco.contribution-BINeU8ff.js → monaco.contribution-rtAnmt_x.js} +2 -2
  96. package/dist/web/assets/{play-DkIcSdr1.js → play-BnkiBq8x.js} +1 -1
  97. package/dist/web/assets/{python--dgmZUVn.js → python-Rd5MxRAN.js} +1 -1
  98. package/dist/web/assets/{refresh-cw-DgmxGLBV.js → refresh-cw-BISaiIBt.js} +1 -1
  99. package/dist/web/assets/{save-C_D7xpZD.js → save-BcVbYiGU.js} +1 -1
  100. package/dist/web/assets/{square-BcHQSDWK.js → square-Bn32OIid.js} +1 -1
  101. package/dist/web/assets/{toggleHighContrast-8waBinRS.js → toggleHighContrast-DDw4wPS9.js} +1 -1
  102. package/dist/web/assets/{tsMode-BBuDuuGt.js → tsMode-Dt73U5ww.js} +1 -1
  103. package/dist/web/assets/{upload-C7vLlEEp.js → upload-AB1N3bCZ.js} +1 -1
  104. package/dist/web/assets/{useLocalAgentSchedules-Bjl2NojO.js → useLocalAgentSchedules-D7QTyYKj.js} +1 -1
  105. package/dist/web/assets/{wifi-off-BLh536Wc.js → wifi-off-BAX1UWLx.js} +1 -1
  106. package/dist/web/assets/{workers-B6wHgIsA.js → workers-DE3-vPyS.js} +1 -1
  107. package/dist/web/assets/{yaml-8rW7oQNv.js → yaml-C0JBPZbg.js} +1 -1
  108. package/dist/web/index.html +1 -1
  109. package/package.json +1 -1
  110. package/dist/chunks/chunk-4LSZK4MF.js +0 -6
  111. package/dist/chunks/chunk-F5JZYYKU.js +0 -5
  112. package/dist/chunks/src-IBMTL45C.js +0 -319
  113. package/dist/web/assets/HostedModelLearningReview-__PVEYUw.js +0 -1
  114. package/dist/web/assets/SettingsView-JjtvXV3D.js +0 -9
  115. package/dist/web/assets/chevron-up-BKSpg6hY.js +0 -1
@@ -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-RTHNSE6G.js";import"./chunk-F5JZYYKU.js";import"./chunk-L564A7TY.js";import"./chunk-UM2K7YHI.js";import"./chunk-NWSHAK3L.js";import"./chunk-USXJTOD5.js";import"./chunk-6MI4KKWF.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-J2S7BOZU.js";import"./chunk-I4FOBNHQ.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-MSF7ZBFG.js";import"./chunk-MPQWFPGA.js";import"./chunk-OHGSESPN.js";import"./chunk-3V5FPSOK.js";import"./chunk-3YH3S5U2.js";import"./chunk-ZMRT4B4H.js";import"./chunk-6MI4KKWF.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-J2S7BOZU.js";import"./chunk-I4FOBNHQ.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-645ZCJMN.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-GHN2HOZZ.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-NYPLOXEP.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-3GLSX322.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-4LEX4GTH.js";import"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-4LSZK4MF.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-R33VLNFY.js";import"./chunk-J2S7BOZU.js";import"./chunk-I4FOBNHQ.js";import"./chunk-645ZCJMN.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-GHN2HOZZ.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-ECH6PXVK.js";import"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-OW4KET6I.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-R33VLNFY.js";import"./chunk-J2S7BOZU.js";import"./chunk-I4FOBNHQ.js";import"./chunk-NYPLOXEP.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-3GLSX322.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-4LSZK4MF.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-R33VLNFY.js";import"./chunk-J2S7BOZU.js";import"./chunk-I4FOBNHQ.js";import{a as c}from"./chunk-645ZCJMN.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-GHN2HOZZ.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-OW4KET6I.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-R33VLNFY.js";import"./chunk-J2S7BOZU.js";import"./chunk-I4FOBNHQ.js";import{a as c}from"./chunk-NYPLOXEP.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-3GLSX322.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};