openpond 0.2.10 → 0.2.12
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.
- package/dist/app-server.d.ts +6 -0
- package/dist/app-server.js +1 -1
- package/dist/chunks/{actions-command-V5DZWEON.js → actions-command-GF4Y7XF4.js} +1 -1
- package/dist/chunks/{app-layer-SFV6ZPKZ.js → app-layer-2GL42D4P.js} +1 -1
- package/dist/chunks/app-server-runtime-24KZ44ZT.js +2 -0
- package/dist/chunks/{apps-SR7CAM42.js → apps-CABD3NMT.js} +1 -1
- package/dist/chunks/{chunk-4LLHOG7L.js → chunk-4LEX4GTH.js} +1 -1
- package/dist/chunks/{chunk-B6IIGPWS.js → chunk-4LSZK4MF.js} +1 -1
- package/dist/chunks/{chunk-QOR55VHT.js → chunk-645ZCJMN.js} +1 -1
- package/dist/chunks/{chunk-KRNLKKN6.js → chunk-F5JZYYKU.js} +3 -3
- package/dist/chunks/{chunk-5N6YRABR.js → chunk-GHN2HOZZ.js} +2 -2
- package/dist/chunks/{chunk-UW6ES5DM.js → chunk-I4FOBNHQ.js} +15 -15
- package/dist/chunks/{chunk-BCXVKU6S.js → chunk-L564A7TY.js} +1 -1
- package/dist/chunks/{chunk-DY5RF2YE.js → chunk-NWSHAK3L.js} +1 -1
- package/dist/chunks/{chunk-O4IARD7H.js → chunk-R33VLNFY.js} +1 -1
- package/dist/chunks/{chunk-FMLVT4EZ.js → chunk-RTHNSE6G.js} +1 -1
- package/dist/chunks/{chunk-LLJI6QAY.js → chunk-UM2K7YHI.js} +1 -1
- package/dist/chunks/{chunk-S64WASAO.js → chunk-USXJTOD5.js} +14 -14
- package/dist/chunks/{chunk-NZLYYZLO.js → chunk-VAKLZZUV.js} +346 -337
- package/dist/chunks/{chunk-XAZ76RCR.js → chunk-VTNKXJMD.js} +1 -1
- package/dist/chunks/{cli-VXFL2WME.js → cli-5CB2IOBD.js} +1 -1
- package/dist/chunks/{configuration-command-EBN7RH3X.js → configuration-command-ZLORYSWN.js} +1 -1
- package/dist/chunks/{core-commands-2S4UQPXW.js → core-commands-ZG7XHCIV.js} +1 -1
- package/dist/chunks/{desktop-test-WN7ZLQVQ.js → desktop-test-VHPQRCW4.js} +1 -1
- package/dist/chunks/{extension-ERM5EUUO.js → extension-B25YICMA.js} +1 -1
- package/dist/chunks/{help-N25BKIHM.js → help-A3WX4THT.js} +1 -1
- package/dist/chunks/{opchat-V4A4WCND.js → opchat-54TLTDTZ.js} +1 -1
- package/dist/chunks/{organizations-TSOT7MDT.js → organizations-BUWM3YH7.js} +1 -1
- package/dist/chunks/{profile-3JQ3XM6Q.js → profile-3WAMFPYW.js} +1 -1
- package/dist/chunks/{project-agent-S76FWVPV.js → project-agent-MODOYPZH.js} +1 -1
- package/dist/chunks/{sandbox-command-YQDGQBBQ.js → sandbox-command-E5NLILGZ.js} +1 -1
- package/dist/chunks/{sandbox-template-GM2A3437.js → sandbox-template-JXBTBECW.js} +1 -1
- package/dist/chunks/{src-BC7WOVGF.js → src-DCKMDSJG.js} +1 -1
- package/dist/chunks/src-IBMTL45C.js +319 -0
- package/dist/chunks/{teams-bot-M6QLZAHA.js → teams-bot-PBZVFB5A.js} +1 -1
- package/dist/chunks/{workspaces-TYFFU3CY.js → workspaces-A6ONMJW5.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/web/assets/{App-D1U6kSz8.js → App-Br9-pOIC.js} +15 -15
- package/dist/web/assets/{AppDialog-C_wj-KTH.js → AppDialog-C6Xd84LF.js} +1 -1
- package/dist/web/assets/{AppTerminalPanel-GQhALHCi.js → AppTerminalPanel-CjLTHGd7.js} +2 -2
- package/dist/web/assets/{AppsView-Bc5PfPnk.js → AppsView-BaOXLPG_.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-D8Ku-nD-.js → BrowserSidebar-C1UHkaci.js} +1 -1
- package/dist/web/assets/{CartesianChart-BUEUHUwc.js → CartesianChart-CC6gURj1.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-BTTdhqUf.js → CollaborationTabs-D3v9jxIV.js} +1 -1
- package/dist/web/assets/{CommandMenu-BB3412TF.js → CommandMenu-DZJ4xot1.js} +1 -1
- package/dist/web/assets/{CommunityView-CaOqCQbn.js → CommunityView-VElVyeHB.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-DKQQF6FT.js → ComposerCreateImproveStrip-D_Pldm1h.js} +1 -1
- package/dist/web/assets/{GetStartedView-BLthAuLo.js → GetStartedView-Ciy_6VB-.js} +1 -1
- package/dist/web/assets/HostedModelLearningReview-__PVEYUw.js +1 -0
- package/dist/web/assets/{HostedModelLearningSettings-xuawAwZ1.js → HostedModelLearningSettings-Cba2jDOj.js} +1 -1
- package/dist/web/assets/{LabModelVersionDetailPage-nA_xJV4H.js → LabModelVersionDetailPage-YGGjl8dY.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-BxaI8xjn.js → LabSkillSidebar-D55wufz-.js} +1 -1
- package/dist/web/assets/{LabsRoute-I1VgYVSW.js → LabsRoute-BvJAvcAo.js} +4 -4
- package/dist/web/assets/{MainChatThread-0yAFAApw.js → MainChatThread-CQ9hEgUz.js} +2 -2
- package/dist/web/assets/{MainPane-BkK23NmD.js → MainPane-CH2CUmxD.js} +4 -4
- package/dist/web/assets/{MarkdownText-CSy6RUzu.js → MarkdownText-B7CT2cwK.js} +1 -1
- package/dist/web/assets/{Messages-DRnD4ycT.js → Messages-9_Bf5Lii.js} +1 -1
- package/dist/web/assets/{NativeSkillSidebar-0kK4txXY.js → NativeSkillSidebar-BIpYM4uF.js} +1 -1
- package/dist/web/assets/{NewExperienceSwitcher-CuHFmQZ1.js → NewExperienceSwitcher-D6RLDRgD.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-QMbImvtq.js → NewProjectDialog-DlnYnpsm.js} +1 -1
- package/dist/web/assets/{OutputsPage-tJQj_C7K.js → OutputsPage-D1JY14ij.js} +1 -1
- package/dist/web/assets/{ProjectsPage-CHoeuMVm.js → ProjectsPage-kRy0z4oP.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-DdBHknXy.js → RightChatPanelStack-D0Zdekbb.js} +1 -1
- package/dist/web/assets/{RightSidebarHomePanel-DL9VscoI.js → RightSidebarHomePanel-BCW78Zbx.js} +1 -1
- package/dist/web/assets/{ScheduledWorkPage-DVSk_tz1.js → ScheduledWorkPage-D2iewjFh.js} +1 -1
- package/dist/web/assets/{SettingsView-DYXsc8pe.js → SettingsView-JjtvXV3D.js} +3 -3
- package/dist/web/assets/{TeamChatView-BdmLpNJQ.js → TeamChatView-BhcWyJXF.js} +1 -1
- package/dist/web/assets/{TerminalOverlay-35INMyIo.js → TerminalOverlay-GXVklUL1.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-C4oA23lB.js → TrainingCreationPanel-DPEt3Kcq.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-DajmSUjT.js → TrainingDraftPanel-BiYk2Ti6.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-4mMW5CCE.js → UsageSettingsSection-DOR-WjP_.js} +1 -1
- package/dist/web/assets/{WorkSidebarPanel-0oh4ApC0.js → WorkSidebarPanel-MFyj6kAC.js} +1 -1
- package/dist/web/assets/{WorkspaceDiffPanel-BfOdJANp.js → WorkspaceDiffPanel-Dhk5IRNe.js} +3 -3
- package/dist/web/assets/{WorkspaceEnvironmentMenu-DCrxjVfu.js → WorkspaceEnvironmentMenu-CR-2HGxj.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-mu5Mr3hW.js → WorkspaceGitDialogs-YTvn4Rpj.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-CFC33Waw.js → WorkspaceMonacoEditor-C_NHJaDf.js} +3 -3
- package/dist/web/assets/{arrow-up-right-dJx7maFY.js → arrow-up-right-B_joTAq0.js} +1 -1
- package/dist/web/assets/{chat-file-links-BXD1AwPF.js → chat-file-links-CtG3brZZ.js} +1 -1
- package/dist/web/assets/chevron-up-BKSpg6hY.js +1 -0
- package/dist/web/assets/{clipboard-CCJZR-8j.js → clipboard-BuMCABK6.js} +1 -1
- package/dist/web/assets/{cloud-upload-CYQZw9m5.js → cloud-upload-Cx6hdgxq.js} +1 -1
- package/dist/web/assets/{cssMode-CKwxmzPX.js → cssMode-DgBmbKa2.js} +1 -1
- package/dist/web/assets/{folder-open-B9lPxBW0.js → folder-open-CbqwcgQ4.js} +1 -1
- package/dist/web/assets/{folder-plus-DgXtyqTf.js → folder-plus-DsZqlrho.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-Cm0tPGvL.js → git-commit-horizontal-DI-UCrjd.js} +1 -1
- package/dist/web/assets/{htmlMode-Bwb6JdSr.js → htmlMode-BuyogX60.js} +1 -1
- package/dist/web/assets/{index-Dfsd0LDx.js → index-BPeus0zA.js} +2 -2
- package/dist/web/assets/{info-BLgd_8Oq.js → info-Csd_7rfz.js} +1 -1
- package/dist/web/assets/{jsonMode-DoZL4jgt.js → jsonMode-DflDpOXZ.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-BxirakcU.js → lspLanguageFeatures-C_Z8VeHY.js} +1 -1
- package/dist/web/assets/{minimize-2-CP-_0nRE.js → minimize-2-CiM53hsa.js} +1 -1
- package/dist/web/assets/{monaco.contribution-pBFeal1v.js → monaco.contribution-BINeU8ff.js} +2 -2
- package/dist/web/assets/{monaco.contribution-DHrI3HWL.js → monaco.contribution-CGcq8kux.js} +2 -2
- package/dist/web/assets/{monaco.contribution-Dxq_7cwt.js → monaco.contribution-CRL61P2H.js} +2 -2
- package/dist/web/assets/{monaco.contribution-BTNxSZpZ.js → monaco.contribution-JwSEb0Jo.js} +2 -2
- package/dist/web/assets/{play-B4cFsEn7.js → play-DkIcSdr1.js} +1 -1
- package/dist/web/assets/{python-DvAyA_jv.js → python--dgmZUVn.js} +1 -1
- package/dist/web/assets/{refresh-cw-CzkAZOVW.js → refresh-cw-DgmxGLBV.js} +1 -1
- package/dist/web/assets/{save-DlPx250u.js → save-C_D7xpZD.js} +1 -1
- package/dist/web/assets/{square-MKAcADT9.js → square-BcHQSDWK.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-DbcI754Q.js → toggleHighContrast-8waBinRS.js} +1 -1
- package/dist/web/assets/{tsMode-CgGy_BG2.js → tsMode-BBuDuuGt.js} +1 -1
- package/dist/web/assets/{upload-ZzMzt67j.js → upload-C7vLlEEp.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-BgKPG9Lf.js → useLocalAgentSchedules-Bjl2NojO.js} +1 -1
- package/dist/web/assets/{wifi-off-GL_4UdJA.js → wifi-off-BLh536Wc.js} +1 -1
- package/dist/web/assets/{workers-ZMthqdmJ.js → workers-B6wHgIsA.js} +1 -1
- package/dist/web/assets/{yaml-Czl4Tvh-.js → yaml-8rW7oQNv.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/chunks/app-server-runtime-ZXY5LJRB.js +0 -2
- package/dist/chunks/src-UB37L2XB.js +0 -319
- package/dist/web/assets/HostedModelLearningReview--D5Soo61.js +0 -1
- package/dist/web/assets/chevron-up-uZmnI2RY.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{d as F}from"./chunk-
|
|
2
|
+
import{d as F}from"./chunk-L564A7TY.js";import{a as o}from"./chunk-FTQLQJQV.js";import{spawn as nt,spawnSync as At}from"node:child_process";import{accessSync as vt,constants as Rt,existsSync as _t,promises as Bt}from"node:fs";import et from"node:path";var rt="Git is required for OpenPond app workspaces, but macOS reports Apple Command Line Tools are not installed. OpenPond skipped /usr/bin/git to avoid opening the Xcode installer prompt. Install Command Line Tools with `xcode-select --install`, install Git from Homebrew, or put a non-Apple git binary earlier on PATH.",T;function Lt(e){try{return _t(e)?(vt(e,Rt.X_OK),!0):!1}catch{return!1}}o(Lt,"isExecutable");function Ot(){let e=(process.env.PATH??"").split(et.delimiter).map(t=>t.trim()).filter(Boolean);for(let t of e){let n=et.join(t,"git");if(!(n==="/usr/bin/git"||n==="/bin/git")&&Lt(n))return n}return null}o(Ot,"firstNonAppleGitOnPath");function it(){let e=At("/usr/bin/xcode-select",["-p"],{encoding:"utf8",stdio:["ignore","pipe","pipe"]});return e.status===0&&!!e.stdout.trim()}o(it,"appleDeveloperToolsAvailable");function Dt(e){if(e!=="git"||process.platform!=="darwin")return{command:e};if(T!==void 0)return{command:T};let t=Ot();return t?(T=t,{command:t}):it()?(T="git",{command:"git"}):{error:rt}}o(Dt,"resolveWorkspaceCommand");function u(e,t,n,r={},i){return new Promise(s=>{let a=Dt(e);if("error"in a){s({code:1,stdout:"",stderr:a.error});return}let c=nt(a.command,t,{cwd:n,env:{...process.env,...r,GIT_TERMINAL_PROMPT:"0"},stdio:[i===void 0?"ignore":"pipe","pipe","pipe"]}),d=[],p=[];i!==void 0&&c.stdin?.end(i),c.stdout?.on("data",h=>d.push(h)),c.stderr?.on("data",h=>p.push(h)),c.on("error",h=>{s({code:1,stdout:"",stderr:h.message})}),c.on("close",h=>{s({code:h??1,stdout:Buffer.concat(d).toString("utf8"),stderr:Buffer.concat(p).toString("utf8")})})})}o(u,"runCommand");function Gt(e){return!!(e&&e.includes(rt.slice(0,80)))}o(Gt,"isMacOSGitDeveloperToolsMissing");async function Se(e){await Bt.mkdir(e,{recursive:!0});let t=await u("git",["--version"],e);if(t.code===0)return{ok:!0,command:T??"git",version:(t.stdout||t.stderr).trim()};let n=t.stderr.trim()||t.stdout.trim()||"Git is required for OpenPond app workspaces.";return{ok:!1,error:n,installAction:process.platform==="darwin"&&Gt(n)?"macos_command_line_tools":"manual_git_install"}}o(Se,"checkWorkspaceGitAvailability");function ye(){if(process.platform!=="darwin")return{ok:!1,error:"Apple Command Line Tools installation is only available on macOS."};if(it())return{ok:!0,message:"Apple Command Line Tools already appear to be installed."};try{return nt("/usr/bin/xcode-select",["--install"],{detached:!0,stdio:"ignore"}).unref(),{ok:!0,message:"Opened the Apple Command Line Tools installer."}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}o(ye,"startMacOSCommandLineToolsInstall");import{promises as k}from"node:fs";import m from"node:path";var st=24e3,ot=8e4,It=512*1024,ct=15*1024*1024,Tt=20*1024*1024,Mt=new Set([".cache",".eggs",".git",".ipynb_checkpoints",".mypy_cache",".next",".nox",".nuxt",".openpond",".output",".parcel-cache",".pytest_cache",".pyre",".ruff_cache",".svelte-kit",".tox",".turbo",".venv","__pycache__","artifacts","build","coverage","dist","env","node_modules","out","site-packages","target","venv","volumes"]),zt=new Set([".7z",".avif",".db",".doc",".docx",".gif",".gz",".ico",".jpeg",".jpg",".mov",".mp4",".pdf",".png",".sqlite",".tar",".webp",".xls",".xlsm",".xlsx",".zip"]),$t=new Map([[".avif","image/avif"],[".gif","image/gif"],[".jpeg","image/jpeg"],[".jpg","image/jpeg"],[".png","image/png"],[".webp","image/webp"]]),Nt=new Map([[".m4v","video/x-m4v"],[".mov","video/quicktime"],[".mp4","video/mp4"],[".webm","video/webm"]]),Ht=new Set([".doc",".docx",".pdf"]);function Ut(e){return e.replace(/[^a-zA-Z0-9._-]/g,"-").slice(0,120)||"app"}o(Ut,"safeAppSegment");function N(e){if(!e)return"unknown";try{let t=new URL(e).hostname.toLowerCase();if(t==="github.com"||t.endsWith(".github.com"))return"github";if(t==="openpond.ai"||t.endsWith(".openpond.ai"))return"openpond"}catch{return"unknown"}return"local_git"}o(N,"sourceFromRemote");function $(e){return e.replace(/x-access-token:[^@]+@/g,"x-access-token:***@").replace(/Authorization:\s*Basic\s+[A-Za-z0-9+/=]+/gi,"Authorization: Basic ***")}o($,"redactRemoteUrl");async function G(e){try{return await k.access(e),!0}catch{return!1}}o(G,"pathExists");async function O(e){return await G(e)?(await u("git",["rev-parse","--git-dir"],e)).code===0:!1}o(O,"isGitRepo");function X(e){return e.length<=st?e:`${e.slice(0,st)}
|
|
3
3
|
|
|
4
4
|
[diff truncated]`}o(X,"truncatePatch");function jt(e){return e.length<=ot?e:`${e.slice(0,ot)}
|
|
5
5
|
|
|
@@ -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-
|
|
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};
|
|
@@ -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-
|
|
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};
|
|
@@ -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-
|
|
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};
|
|
@@ -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-
|
|
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(`
|
|
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};
|