openpond 0.2.21 → 0.2.22
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 +2 -0
- package/dist/app-server.js +1 -1
- package/dist/chunks/{actions-command-33SJXJKC.js → actions-command-P62RTUD6.js} +1 -1
- package/dist/chunks/{app-layer-LMB3B4TY.js → app-layer-6SOR3QBT.js} +1 -1
- package/dist/chunks/app-server-runtime-7POHOWYT.js +2 -0
- package/dist/chunks/{apps-2MNOKPO2.js → apps-HFTYJ74Q.js} +1 -1
- package/dist/chunks/{chunk-3P6B6NZN.js → chunk-2ESK5DPT.js} +1 -1
- package/dist/chunks/chunk-DQNSR2Q7.js +28 -0
- package/dist/chunks/{chunk-P7EHGAOW.js → chunk-GGFXBQ3B.js} +1 -1
- package/dist/chunks/{chunk-M57DLSRG.js → chunk-GKSPJZSF.js} +302 -302
- package/dist/chunks/{chunk-3KK2O7A4.js → chunk-GTV6J3M2.js} +1 -1
- package/dist/chunks/{chunk-UN3A7GEU.js → chunk-HPJFRC4R.js} +1 -1
- package/dist/chunks/{chunk-M3FDHTJ2.js → chunk-MCDTLTSV.js} +1 -1
- package/dist/chunks/chunk-MD7IADMT.js +5 -0
- package/dist/chunks/{chunk-Q7QAKAGF.js → chunk-ONMUSXZU.js} +14 -14
- package/dist/chunks/{chunk-TWA56GFU.js → chunk-QIQDNEFD.js} +1 -1
- package/dist/chunks/{chunk-WXAZLP5W.js → chunk-TDEMXZ3R.js} +1 -1
- package/dist/chunks/{chunk-E764DRA6.js → chunk-VNCJGHJC.js} +1 -1
- package/dist/chunks/{chunk-CUB5BQIQ.js → chunk-VU4NRDKZ.js} +2 -2
- package/dist/chunks/{chunk-IGRYR3PT.js → chunk-YH35HMNN.js} +1 -1
- package/dist/chunks/{cli-5YDIW3WP.js → cli-J5YD6UAN.js} +1 -1
- package/dist/chunks/{configuration-command-DSNTY5II.js → configuration-command-QIY6A4XZ.js} +1 -1
- package/dist/chunks/{core-commands-IDPOMDVM.js → core-commands-GDEELWSN.js} +1 -1
- package/dist/chunks/{desktop-test-VNGOXPKF.js → desktop-test-QIW5H3YZ.js} +1 -1
- package/dist/chunks/{extension-A5RB7I6T.js → extension-T5IOOMNR.js} +1 -1
- package/dist/chunks/{help-46NAZU6H.js → help-A2NLYYDQ.js} +1 -1
- package/dist/chunks/{opchat-2VPS674O.js → opchat-WMMKFVVB.js} +1 -1
- package/dist/chunks/{organizations-H4HZDRYM.js → organizations-RVMJ2UXS.js} +1 -1
- package/dist/chunks/{profile-TATWHJYY.js → profile-M5YD4P5E.js} +1 -1
- package/dist/chunks/{project-agent-3YOZKDEE.js → project-agent-6JUCQ4JO.js} +1 -1
- package/dist/chunks/{sandbox-command-RYX3KKMX.js → sandbox-command-KADUJT5Y.js} +1 -1
- package/dist/chunks/{sandbox-template-XYY5C3FD.js → sandbox-template-4SOHDYWY.js} +1 -1
- package/dist/chunks/{src-4R2FGHSH.js → src-GHTPFT4Q.js} +1 -1
- package/dist/chunks/{src-DHJBKILI.js → src-T3RRUIRF.js} +109 -109
- package/dist/chunks/{teams-bot-FUALFQMX.js → teams-bot-B2TEGEXF.js} +1 -1
- package/dist/chunks/{workspaces-H6H6XO2Q.js → workspaces-66IE4AVY.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/web/assets/{App-CmqvOgHr.js → App-CZo3tYaG.js} +36 -36
- package/dist/web/assets/{AppDialog-DdKmw4d6.js → AppDialog-18Y9aU8z.js} +1 -1
- package/dist/web/assets/{AppTerminalPanel-W2pjVUtg.js → AppTerminalPanel-9jAU4wYe.js} +2 -2
- package/dist/web/assets/{AppsView-RKIWikGP.js → AppsView-BCYnY9mm.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-Dqo6nl7J.js → BrowserSidebar-BVf3sUAG.js} +1 -1
- package/dist/web/assets/{CartesianChart-DTZeIAQy.js → CartesianChart-iai9Dz1D.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-h4UCjUB4.js → CollaborationTabs-D7bZIwFC.js} +1 -1
- package/dist/web/assets/{CommandMenu-B2SH7g8V.js → CommandMenu-diFDbKQl.js} +1 -1
- package/dist/web/assets/{CommunityView-BtI1_qwS.js → CommunityView-DaLkwOxW.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-BW8RhDkB.js → ComposerCreateImproveStrip-B59nTCE7.js} +1 -1
- package/dist/web/assets/{GetStartedView-Fqk2AYt7.js → GetStartedView-BETryURK.js} +1 -1
- package/dist/web/assets/HostedModelLearningReview-D5JtAiLZ.js +1 -0
- package/dist/web/assets/{HostedModelLearningSettings-CgS4Z4WT.js → HostedModelLearningSettings-FCly06RA.js} +1 -1
- package/dist/web/assets/{LabModelVersionDetailPage-Dpr2GpAR.js → LabModelVersionDetailPage-9MzQj6cy.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-BDmNaZ8f.js → LabSkillSidebar-BJHO5-J9.js} +1 -1
- package/dist/web/assets/{LabsRoute-CVWKsnzj.js → LabsRoute-6jVWrbOO.js} +4 -4
- package/dist/web/assets/{MainChatThread-Bq6f3AUB.js → MainChatThread-DAoPK8jG.js} +2 -2
- package/dist/web/assets/{MainPane-CGa9bSOr.js → MainPane-LDPzuZSj.js} +4 -4
- package/dist/web/assets/{MarkdownText-BORA69YO.js → MarkdownText-B8URwlq9.js} +1 -1
- package/dist/web/assets/{Messages-Bwyst8lC.js → Messages-Byk73D9T.js} +1 -1
- package/dist/web/assets/{NativeSkillSidebar-Dt4xs-gi.js → NativeSkillSidebar-BodHqCCH.js} +1 -1
- package/dist/web/assets/{NewExperienceSwitcher-C-T2my1F.js → NewExperienceSwitcher-BkUxxlOu.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-Bd-8y1vE.js → NewProjectDialog-BZr2wm-4.js} +1 -1
- package/dist/web/assets/{OutputsPage-DYnvMsY-.js → OutputsPage-C8ZDtD1Y.js} +1 -1
- package/dist/web/assets/{ProjectsPage-BPytEvtz.js → ProjectsPage-CgfjGsl2.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-CJR0y6c5.js → RightChatPanelStack-DV3csVka.js} +1 -1
- package/dist/web/assets/{RightSidebarHomePanel-Cn0x7kgh.js → RightSidebarHomePanel-DvLaHLBb.js} +1 -1
- package/dist/web/assets/{ScheduledWorkPage-DaHVYiok.js → ScheduledWorkPage-DtzxPTAL.js} +1 -1
- package/dist/web/assets/{SettingsView-DwIdA2Qy.js → SettingsView-C3sVxgPc.js} +3 -3
- package/dist/web/assets/{TeamChatView-C1VmxtuK.js → TeamChatView-B-w2nrWF.js} +1 -1
- package/dist/web/assets/{TerminalOverlay-CPIWstqb.js → TerminalOverlay-_X7WVAev.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-CjFkopVx.js → TrainingCreationPanel-DaVppW1m.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-BbiN33_a.js → TrainingDraftPanel-CVj19T6L.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-BxT4ZptX.js → UsageSettingsSection-fRTHVjhG.js} +1 -1
- package/dist/web/assets/{WorkSidebarPanel-nb-GyANT.js → WorkSidebarPanel-CGOQwdIW.js} +1 -1
- package/dist/web/assets/{WorkspaceDiffPanel-DFi28DQv.js → WorkspaceDiffPanel-D6hbMv14.js} +3 -3
- package/dist/web/assets/{WorkspaceEnvironmentMenu-DW6IImGA.js → WorkspaceEnvironmentMenu-rWj1aDI4.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-DvV8_9aF.js → WorkspaceGitDialogs-DVU5SrD-.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-BYqlTbx1.js → WorkspaceMonacoEditor-D78JPviN.js} +3 -3
- package/dist/web/assets/{arrow-up-right-BQGeuv2m.js → arrow-up-right-CnaPKXjg.js} +1 -1
- package/dist/web/assets/{chat-file-links-BjlG4ZTF.js → chat-file-links-D1INEr8r.js} +1 -1
- package/dist/web/assets/chevron-up-Bx5d_Wmr.js +1 -0
- package/dist/web/assets/{clipboard-CImDHdf4.js → clipboard-B8GTg8tx.js} +1 -1
- package/dist/web/assets/{cloud-upload-DSrjiFxa.js → cloud-upload-BlEc_10E.js} +1 -1
- package/dist/web/assets/{cssMode-CO6QKs7A.js → cssMode-BiYvezMD.js} +1 -1
- package/dist/web/assets/{folder-open-DWt_CiJ4.js → folder-open-BaNdbDD5.js} +1 -1
- package/dist/web/assets/{folder-plus-DZJsMZZS.js → folder-plus-BQhz_VxM.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-BmhX8D3M.js → git-commit-horizontal-wv523Ooq.js} +1 -1
- package/dist/web/assets/{htmlMode-BbhUfh60.js → htmlMode-BaMdOCq4.js} +1 -1
- package/dist/web/assets/{index-VrrkDcgt.js → index-DP8vqolj.js} +2 -2
- package/dist/web/assets/{info-C0HVDnJn.js → info-C0Ova1D9.js} +1 -1
- package/dist/web/assets/{jsonMode-qUE2PjNm.js → jsonMode-BTt0GByK.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-CfX3VOob.js → lspLanguageFeatures-C-1acLbv.js} +1 -1
- package/dist/web/assets/{minimize-2-BPu3-DJH.js → minimize-2-CW5KYp0W.js} +1 -1
- package/dist/web/assets/{monaco.contribution-adURqSPk.js → monaco.contribution-CpiBa8rP.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CKQpqdUm.js → monaco.contribution-DoAhyjpn.js} +2 -2
- package/dist/web/assets/{monaco.contribution-BtbXAYNA.js → monaco.contribution-DyKzYxR3.js} +2 -2
- package/dist/web/assets/{monaco.contribution-DBKGSgm8.js → monaco.contribution-P9b5cZU2.js} +2 -2
- package/dist/web/assets/{play-CUyIuBFF.js → play-jV1i4pfe.js} +1 -1
- package/dist/web/assets/{python-q4l4w80D.js → python-BQnnGrv3.js} +1 -1
- package/dist/web/assets/{refresh-cw-IMz7arkM.js → refresh-cw-REnkUGNy.js} +1 -1
- package/dist/web/assets/{save-Cj-5iVpt.js → save-B2WTTCI_.js} +1 -1
- package/dist/web/assets/{square-zOxRs5It.js → square-CRb2lKMC.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-Dj-u2UZ6.js → toggleHighContrast-BGsGhGW4.js} +1 -1
- package/dist/web/assets/{tsMode-B-r-e3os.js → tsMode-BWtSmvFs.js} +1 -1
- package/dist/web/assets/{upload-BpElaH7O.js → upload-B_PICaZn.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-wyJ9JjmR.js → useLocalAgentSchedules-zmmvBnwd.js} +1 -1
- package/dist/web/assets/{wifi-off-DWRK-TPQ.js → wifi-off-CjKTt0zE.js} +1 -1
- package/dist/web/assets/{workers-Pk9mKuOt.js → workers-CxglqyKV.js} +1 -1
- package/dist/web/assets/{yaml-hbr5HzqB.js → yaml-DgyPsmb2.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/chunks/app-server-runtime-YAHD6FWN.js +0 -2
- package/dist/chunks/chunk-A2PIGBPD.js +0 -28
- package/dist/chunks/chunk-FRWPAVCD.js +0 -5
- package/dist/web/assets/HostedModelLearningReview-mBYA71Zs.js +0 -1
- package/dist/web/assets/chevron-up-BbI7fj2g.js +0 -1
package/dist/app-server.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare const AGENT_RPC_METHODS: readonly [
|
|
|
19
19
|
"userInput/resolve",
|
|
20
20
|
"profile/workflows",
|
|
21
21
|
"profile/evaluations",
|
|
22
|
+
"profile/trainingSource",
|
|
22
23
|
"profile/evaluations/prepare",
|
|
23
24
|
"profile/evaluations/run",
|
|
24
25
|
"profile/evaluations/runSuite",
|
|
@@ -71,6 +72,7 @@ type AgentRuntimeHost = {
|
|
|
71
72
|
userInputResolve(params: unknown): Promise<unknown>;
|
|
72
73
|
profileWorkflows(params: unknown): Promise<unknown>;
|
|
73
74
|
profileEvaluations(params: unknown): Promise<unknown>;
|
|
75
|
+
profileTrainingSource(params: unknown): Promise<unknown>;
|
|
74
76
|
profileEvaluationPrepare(params: unknown): Promise<unknown>;
|
|
75
77
|
profileEvaluationRun(params: unknown): Promise<unknown>;
|
|
76
78
|
profileEvaluationRunSuite(params: unknown): Promise<unknown>;
|
package/dist/app-server.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{
|
|
2
|
+
import{fd as r}from"./chunks/chunk-GKSPJZSF.js";import"./chunks/chunk-GTV6J3M2.js";import{j as e,t as p}from"./chunks/chunk-MD7IADMT.js";import"./chunks/chunk-2ESK5DPT.js";import"./chunks/chunk-GGFXBQ3B.js";import"./chunks/chunk-MCDTLTSV.js";import"./chunks/chunk-XEOEKFG6.js";import"./chunks/chunk-ONMUSXZU.js";import"./chunks/chunk-6MI4KKWF.js";import"./chunks/chunk-SDO4FC4Q.js";import"./chunks/chunk-IR3YJWPW.js";import"./chunks/chunk-HPJFRC4R.js";import"./chunks/chunk-J2S7BOZU.js";import"./chunks/chunk-DQNSR2Q7.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-NNLI4OWY.js";import"./chunks/chunk-HZP5U2AA.js";import"./chunks/chunk-ES2ISFJC.js";import"./chunks/chunk-H7IWJN7L.js";import"./chunks/chunk-FTQLQJQV.js";export{e as AGENT_PROTOCOL_VERSION,r as createOpenPondAppServer,p as runAppServerJsonl};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{b as h,c as f,d as p}from"./chunk-XEOEKFG6.js";import{a as w}from"./chunk-
|
|
2
|
+
import{b as h,c as f,d as p}from"./chunk-XEOEKFG6.js";import{a as w}from"./chunk-QIQDNEFD.js";import"./chunk-HPJFRC4R.js";import"./chunk-J2S7BOZU.js";import"./chunk-DQNSR2Q7.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import{f as y}from"./chunk-3M53YXEI.js";import{a as c}from"./chunk-FTQLQJQV.js";import{promises as I,watch as N}from"node:fs";import m from"node:path";import{execFile as A}from"node:child_process";import{promisify as E}from"node:util";var S=E(A);async function x(t,n){let r=n[0]??"check",e=m.resolve(s(t,"cwd")??process.cwd()),l=s(t,"sourceDirectory"),u=s(t,"outputDirectory"),d=y(t.json);if(r==="check"||r==="build"){let o=await f({projectRoot:e,sourceDirectory:l,outputDirectory:u});if(d){console.log(JSON.stringify({status:"passed",actionCount:o.registry.actions.length,registry:o.registry,manifest:o.manifest,outputDirectory:o.outputDirectory},null,2));return}console.log(`${r==="check"?"Validated":"Built"} ${o.registry.actions.length} Project Action${o.registry.actions.length===1?"":"s"}.`),console.log(`Registry: ${o.registryPath}`),console.log(`Bundle: ${o.bundlePath}`);return}if(r==="run"){let o=n[1];if(!o)throw new Error("usage: openpond actions run <action-id> [--input JSON|--input-file PATH]");let a=await p({projectRoot:e,sourceDirectory:l,outputDirectory:u,build:"always"}).run({actionId:o,input:await v(t,e),timeoutMs:R(t,"timeoutMs")});console.log(JSON.stringify(a,null,2));return}if(r==="dev"){let o=n[1]??null;await $({projectRoot:e,sourceDirectory:l,outputDirectory:u,actionId:o,options:t,json:d});return}if(r==="publish"){let o=b(t,"projectId"),i=b(t,"teamId"),a=s(t,"apiKey")??process.env.OPENPOND_API_KEY?.trim();if(!a)throw new Error("OpenPond API key is required. Set OPENPOND_API_KEY or pass --api-key.");let j=await f({projectRoot:e,sourceDirectory:l,outputDirectory:u}),D=s(t,"sourceCommitSha")??await P(e,["rev-parse","HEAD"]),O=s(t,"sourceRef")??await P(e,["rev-parse","--abbrev-ref","HEAD"]),g=await w({apiKey:a,baseUrl:s(t,"baseUrl")??process.env.OPENPOND_API_URL}).actions.publish({projectId:o,teamId:i,sourceRef:O,sourceCommitSha:D,build:j});console.log(d?JSON.stringify({release:g},null,2):`Published Project Actions release ${g.id} from ${g.sourceCommitSha}.`);return}throw new Error("usage: openpond actions <check|build|run|dev|publish> [action-id]")}c(x,"runProjectActionsCommand");async function $(t){let n=!1,r=!1,e=c(async()=>{if(n){r=!0;return}n=!0;try{let o=p({projectRoot:t.projectRoot,sourceDirectory:t.sourceDirectory,outputDirectory:t.outputDirectory,build:"always"});if(t.actionId){let i=await o.run({actionId:t.actionId,input:await v(t.options,t.projectRoot),timeoutMs:R(t.options,"timeoutMs")});console.log(JSON.stringify(i,null,2))}else{let i=await o.build(),a={status:"ready",actionCount:i.registry.actions.length,bundleHash:i.manifest.bundleHash};console.log(t.json?JSON.stringify(a):`Ready with ${a.actionCount} Project Action${a.actionCount===1?"":"s"}.`)}}catch(o){console.error(o instanceof Error?o.message:String(o))}finally{n=!1,r&&(r=!1,await e())}},"execute");await e();let l=await h(t.projectRoot),u=m.resolve(t.projectRoot,t.sourceDirectory??l.sourceDirectory??"openpond/actions");console.log(`Watching ${u}`);let d=N(u,{recursive:!0},()=>{setTimeout(()=>{e()},50)});await new Promise(o=>{let i=c(()=>{d.close(),o()},"stop");process.once("SIGINT",i),process.once("SIGTERM",i)})}c($,"runDev");async function v(t,n){let r=s(t,"input"),e=s(t,"inputFile");if(r&&e)throw new Error("Use either --input or --input-file, not both.");return r?JSON.parse(r):e?JSON.parse(await I.readFile(m.resolve(n,e),"utf8")):{}}c(v,"actionInput");function s(t,n){let r=t[n];return typeof r=="string"&&r.trim()?r.trim():void 0}c(s,"stringOption");function b(t,n){let r=s(t,n);if(!r)throw new Error(`--${n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)} is required.`);return r}c(b,"requiredOption");async function P(t,n){let{stdout:r}=await S("git",n,{cwd:t}),e=r.trim();if(!e)throw new Error(`git ${n.join(" ")} returned no value.`);return e}c(P,"gitValue");function R(t,n){let r=s(t,n);if(r===void 0)return;let e=Number(r);if(!Number.isInteger(e)||e<=0)throw new Error(`--${n} must be a positive integer.`);return e}c(R,"integerOption");export{x as runProjectActionsCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{x as m}from"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-
|
|
2
|
+
import{x as m}from"./chunk-G2VYRU27.js";import"./chunk-ZVOO7FKM.js";import"./chunk-OGPHXXCD.js";import"./chunk-QIQDNEFD.js";import"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-HPJFRC4R.js";import"./chunk-J2S7BOZU.js";import"./chunk-DQNSR2Q7.js";import{a as l}from"./chunk-YH35HMNN.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-VU4NRDKZ.js";import"./chunk-3M53YXEI.js";import{a as i}from"./chunk-FTQLQJQV.js";import{existsSync as c}from"node:fs";import{createRequire as v}from"node:module";import s from"node:path";import{fileURLToPath as E}from"node:url";var p="24.18.0";function N(e=process.versions.node){let r=/^(\d+)\.(\d+)\.(\d+)/.exec(e),n=r?Number(r[1]):Number.NaN,o=r?Number(r[2]):Number.NaN;return n===24&&o>=18?null:[`OpenPond TUI requires Node.js ${p} or newer in the Node 24 release line; detected Node.js ${e}.`,`Switch Node versions and retry (with nvm: \`nvm install ${p} && nvm use ${p}\`).`].join(`
|
|
3
3
|
`)}i(N,"openPondTuiNodeRuntimeMessage");var u=s.dirname(E(import.meta.url)),O=class extends Error{constructor(n,o){super(n);this.exitCode=o;this.name="OpenPondChildProcessExitError"}exitCode;static{i(this,"OpenPondChildProcessExitError")}};async function F(e,r,n){let o=f(e==="app-server"?"app-server":"server"),t=[...o.args,e,...P(r),...n];e==="web"&&t.push(r.noOpen===!0||r.noOpen==="true"?"--print-access-url":"--open-browser");let a=e==="web"&&typeof r.webRoot!="string"?C():null;a&&t.push("--web-root",a),await w(o.runner,t,e==="app-server"?process.cwd():o.cwd)}i(F,"runOpenPondServerCommand");async function q(e,r){b(e);let n=N();if(n)throw new l(n);let o=f("terminal"),t=f("server"),a=[...o.args,"chat",...P(R(e)),...r];await w(o.runner,a,process.cwd(),{OPENPOND_SERVER_RUNNER:t.runner,OPENPOND_SERVER_ARGS:JSON.stringify(t.args),OPENPOND_SERVER_CWD:t.cwd})}i(q,"runOpenPondTerminalCommand");function h(){if(process.env.OPENPOND_FORCE_EMBEDDED_COMPANIONS==="1")return null;let e=[s.resolve(u,"../../../.."),s.resolve(u,"../../.."),process.cwd()];for(let r of e)if(c(s.join(r,"apps","server"))&&c(s.join(r,"apps","terminal")))return r;return null}i(h,"findWorkspaceRoot");function f(e){let r=h();if(r){let t=e==="app-server"?s.join(r,"apps","server","src","app-server-entry.ts"):s.join(r,"apps",e,"src","index.ts");if(c(t)){let d=v(s.join(r,"package.json"));return{runner:process.execPath,args:[d.resolve("tsx/cli"),t],cwd:r}}let a=e==="app-server"?s.join(r,"apps","server","dist","app-server-entry.js"):s.join(r,"apps",e,"dist","index.js");if(c(a))return{runner:process.execPath,args:[a],cwd:r}}let n=_(),o=e==="app-server"?"__app-server":e==="server"?"__server":"__terminal";if(n)return{runner:process.execPath,args:[n,o],cwd:s.dirname(s.dirname(n))};if(D())return{runner:process.execPath,args:[o],cwd:process.cwd()};throw new Error(`Could not find the installed OpenPond ${e} companion.`)}i(f,"resolveAppEntrypoint");function _(){for(let e of[s.resolve(u,"../cli.js"),s.resolve(u,"../../dist/cli.js")])if(c(e))return e;return null}i(_,"installedCliEntrypoint");function C(){if(!1){let n=s.join(s.dirname(process.execPath),"web");return c(s.join(n,"index.html"))?n:null}let e=_();if(!e)return null;let r=s.join(s.dirname(e),"web");return c(s.join(r,"index.html"))?r:null}i(C,"packagedWebRoot");function D(){if(!1)return!0;let e=process.argv[1];return!!(e&&s.resolve(e)===s.resolve(process.execPath))}i(D,"isCompiledExecutable");function P(e){let r=new Set(["account","handle","baseUrl","noOpen","tui","home"]),n=[];for(let[o,t]of Object.entries(e)){if(r.has(o))continue;let a=`--${o.replace(/[A-Z]/g,d=>`-${d.toLowerCase()}`)}`;if(t===!0||t==="true")n.push(a);else{if(t===!1||t==="false")continue;n.push(a,t)}}return n}i(P,"forwardedOptions");function R(e){let r=process.cwd(),n={...e};return typeof e.cwd=="string"&&e.cwd.trim().length>0&&(n.cwd=s.resolve(r,e.cwd)),typeof e.messageFile=="string"&&e.messageFile.trim().length>0&&(n.messageFile=s.resolve(r,e.messageFile)),n}i(R,"normalizeTerminalPaths");function b(e){if(typeof e.approvalPolicy=="string"&&!["on-request","never","on-failure","untrusted"].includes(e.approvalPolicy))throw new l("approval-policy must be on-request, never, on-failure, or untrusted");if(typeof e.sandbox=="string"&&!["read-only","workspace-write","danger-full-access"].includes(e.sandbox))throw new l("sandbox must be read-only, workspace-write, or danger-full-access")}i(b,"validateTerminalForwardingOptions");async function w(e,r,n,o){let t=await m(e,r,{cwd:n,detached:!1,env:o,inherit:!0,timeoutMs:0});if(t.code!==0||t.signal){let a=t.signal?`signal ${t.signal}`:`code ${t.code??"unknown"}`;throw new O(`${s.basename(e)} exited with ${a}`,t.code??1)}}i(w,"runChild");export{O as OpenPondChildProcessExitError,F as runOpenPondServerCommand,q as runOpenPondTerminalCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{ed as c,fd as d}from"./chunk-GKSPJZSF.js";import"./chunk-GTV6J3M2.js";import{j as a,t as b}from"./chunk-MD7IADMT.js";import"./chunk-2ESK5DPT.js";import"./chunk-GGFXBQ3B.js";import"./chunk-MCDTLTSV.js";import"./chunk-XEOEKFG6.js";import"./chunk-ONMUSXZU.js";import"./chunk-6MI4KKWF.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-HPJFRC4R.js";import"./chunk-J2S7BOZU.js";import"./chunk-DQNSR2Q7.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 AGENT_PROTOCOL_VERSION,c as APP_SERVER_COMPOSITION,d as createOpenPondAppServer,b as runAppServerJsonl};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{c as g,i as $,j as J,k as L,l as v,m as q}from"./chunk-G2VYRU27.js";import{f as m,h as y}from"./chunk-ZVOO7FKM.js";import{b as H,c as Q}from"./chunk-22UARBPW.js";import"./chunk-OGPHXXCD.js";import"./chunk-
|
|
2
|
+
import{c as g,i as $,j as J,k as L,l as v,m as q}from"./chunk-G2VYRU27.js";import{f as m,h as y}from"./chunk-ZVOO7FKM.js";import{b as H,c as Q}from"./chunk-22UARBPW.js";import"./chunk-OGPHXXCD.js";import"./chunk-QIQDNEFD.js";import{J as C,K as G,L as k,O as W,Q as M,S as z,T as F,Z as f,c as D,m as K,r as V,s as _}from"./chunk-SS3EG6S2.js";import"./chunk-GLUWATL5.js";import"./chunk-HPJFRC4R.js";import"./chunk-J2S7BOZU.js";import"./chunk-DQNSR2Q7.js";import"./chunk-YH35HMNN.js";import"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-VU4NRDKZ.js";import{a as S,f as w,j as T,k as j}from"./chunk-3M53YXEI.js";import{a as p}from"./chunk-FTQLQJQV.js";async function ie(){let e=await f(),s=m(e),t=await g(e,s),n=y(e),r=await L({apiBase:n,apiKey:t});console.log(JSON.stringify(r,null,2))}p(ie,"runAppsTools");async function se(e){let s=await f(),t=m(s),n=y(s),r=await g(s,t),i=typeof e.handle=="string"?String(e.handle):void 0,o=i?$(i):null,c=e.refresh!==void 0?w(e.refresh):void 0,l=await J({apiBase:n,apiKey:r,forceRefresh:c}),u=o?l.filter(a=>$(a.handle||a.gitOwner)===o):l;if(u.length===0){console.log("no apps found");return}if(w(e.json)){console.log(JSON.stringify({apps:u},null,2));return}for(let a of u){let d=a.handle||a.gitOwner||"unknown",h=a.repo||a.gitRepo||a.id,B=a.latestDeployment?.status||"no-deploy",R=a.latestDeployment?.gitBranch||a.defaultBranch||"-",I=a.codeVisibility||"unknown",E=a.sandbox?"yes":"no";console.log(`${d}/${h} ${B} ${R} code=${I} sandbox=${E} ${a.id}`)}}p(se,"runAppsList");async function oe(e,s){let t=typeof e.visibility=="string"?e.visibility.trim():typeof e.codeVisibility=="string"?e.codeVisibility.trim():"";if(t!=="public"&&t!=="private")throw new Error("usage: apps code-visibility <handle>/<repo> --visibility public|private");let n=await f(),r=m(n),i=y(n),o=await g(n,r),{app:c,handle:l,repo:u}=await v(i,o,s),a=await K(i,o,c.id,t);console.log(`${l}/${u} code_visibility=${a.app?.codeVisibility??t} app_id=${c.id}`)}p(oe,"runAppsCodeVisibility");async function ae(e){let s=await f(),t=m(s),n=await g(s,t),r=y(s),i=typeof e.appId=="string"?String(e.appId):void 0,o=await G(r,n,{appId:i});console.log(JSON.stringify(o,null,2))}p(ae,"runAppsPerformance");async function ce(e,s){let t=await f(),n=m(t),r=y(t),i=await g(t,n),{app:o}=await v(r,i,s),c=await k(r,i,o.id);console.log(JSON.stringify(c,null,2))}p(ce,"runAppsSummary");async function le(e,s,t,n){let r=(typeof e.prompt=="string"?e.prompt:null)||n.join(" ");if(!r.trim())throw new Error("usage: apps assistant <plan|performance> <handle>/<repo> --prompt <text>");let i=await f(),o=m(i),c=y(i),l=await g(i,o),{app:u}=await v(c,l,t),a=await W(c,l,{appId:u.id,mode:s,prompt:r.trim()});console.log(JSON.stringify(a,null,2))}p(le,"runAppsAssistant");async function de(e,s){let t=await f(),n=m(t),r=await g(t,n),i=y(t),o=(typeof e.prompt=="string"?e.prompt:null)||s.join(" ");if(!o.trim())throw new Error("usage: apps agent create --prompt <text> [--team-id <id>]");let c=typeof e.templateRepoUrl=="string"?e.templateRepoUrl:void 0,l=typeof e.templateBranch=="string"?e.templateBranch:void 0,u=typeof e.templateLocalPath=="string"?e.templateLocalPath:void 0,a=typeof e.teamId=="string"&&e.teamId.trim()?e.teamId.trim():void 0;if(u&&String(u).trim().length>0)throw new Error("templateLocalPath is not supported; use templateRepoUrl");let d=typeof e.env=="string"?S(e.env,"env"):void 0;if(d){if(typeof d!="object"||Array.isArray(d))throw new Error("env must be a JSON object");for(let[b,A]of Object.entries(d))if(typeof A!="string")throw new Error(`env value for ${b} must be a string`)}let h=c||l||d?{templateRepoUrl:c,templateBranch:l,envVars:d}:void 0,B=typeof e.deployEnvironment=="string"?e.deployEnvironment==="preview"?"preview":"production":void 0,R=e.deployDisabled!==void 0?w(e.deployDisabled):void 0,I=e.streamDeployLogs!==void 0?w(e.streamDeployLogs):!0,E=await C(i,r,{prompt:o.trim(),...a?{teamId:a}:{},...h?{template:h}:{},...B?{deployEnvironment:B}:{},...R!==void 0?{deployDisabled:R}:{},streamDeployLogs:I});if(!E.ok){let b=await E.text().catch(()=>"");throw new Error(`agent create failed: ${E.status} ${b}`)}let N=null,O=null,P=null;await H(E,{onConversationId:p(b=>{N=b},"onConversationId"),onItems:p(b=>{for(let A of b){let U=Q(A);U&&console.log(U);let x=A;!O&&typeof x.appId=="string"&&(O=x.appId),!P&&typeof x.deploymentId=="string"&&(P=x.deploymentId)}},"onItems")}),N&&console.log(`conversation_id: ${N}`),O&&console.log(`app_id: ${O}`),P&&console.log(`deployment_id: ${P}`);try{await J({apiBase:i,apiKey:r,forceRefresh:!0}),await L({apiBase:i,apiKey:r,forceRefresh:!0})}catch(b){console.warn("cache refresh failed",b)}}p(de,"runAppsAgentCreate");async function pe(e,s,t,n){let r=await f(),i=m(r),o=await g(r,i),c=y(r),l=typeof e.method=="string"?String(e.method).toUpperCase():void 0,u=l&&["GET","POST","PUT","DELETE"].includes(l)?l:void 0;if(l&&!u)throw new Error("method must be GET, POST, PUT, or DELETE");let a=typeof e.body=="string"?S(String(e.body),"body"):void 0,d=typeof e.headers=="string"?S(String(e.headers),"headers"):void 0,h=typeof e.scheduleId=="string"?String(e.scheduleId):void 0,B=w(e.notifyEmail),R=w(e.summary)||w(e.withSummary),I=await M(c,o,{appId:s,deploymentId:t,toolName:n,scheduleId:h,method:u,body:a,headers:d,notifyEmail:B||void 0});if(console.log(JSON.stringify(I,null,2)),R&&I.ok){let E=await k(c,o,s);console.log(JSON.stringify({summary:E},null,2))}}p(pe,"runAppsToolsExecute");async function ue(e,s){let t=typeof e.env=="string"?e.env:typeof e.vars=="string"?e.vars:typeof e.envVars=="string"?e.envVars:null;if(!t)throw new Error("usage: apps env set <handle>/<repo> --env <json>");let n=S(t,"env");if(!n||typeof n!="object"||Array.isArray(n))throw new Error("env must be a JSON object");let r={};for(let[d,h]of Object.entries(n)){if(typeof h!="string")throw new Error(`env value for ${d} must be a string`);if(!d.startsWith("OPENTOOL_PUBLIC_"))throw new Error("only OPENTOOL_PUBLIC_ env vars can be set");r[d]=h}let i=await f(),o=m(i),c=y(i),l=await g(i,o),{app:u}=await v(c,l,s),a=await V(c,l,u.id,{envVars:r});console.log(JSON.stringify(a,null,2))}p(ue,"runAppsEnvSet");async function fe(e,s){let t=await f(),n=m(t),r=y(t),i=await g(t,n),{app:o}=await v(r,i,s),c=await _(r,i,o.id);console.log(JSON.stringify(c,null,2))}p(fe,"runAppsEnvGet");async function ge(e,s){let t=await f(),n=m(t),r=y(t),i=await g(t,n),{app:o,handle:c,repo:l}=await v(r,i,s),u=typeof e.env=="string"?e.env:typeof e.environment=="string"?e.environment:void 0,a=j(u),d=await D(r,i,o.id,{environment:a});console.log(JSON.stringify(d,null,2)),(w(e.watch)||w(e.wait)||w(e.follow))&&await q({baseUrl:r,apiKey:i,deploymentId:d.deploymentId,prefix:`[${c}/${l}] `,intervalMs:e.interval?Number(e.interval):void 0,timeoutMs:e.timeout?Number(e.timeout):void 0})}p(ge,"runAppsDeploy");function X(e){let s={};if(typeof e.params=="string"){let n=S(String(e.params),"params");if(!n||typeof n!="object"||Array.isArray(n))throw new Error("params must be a JSON object");for(let[r,i]of Object.entries(n))i!==void 0&&(s[r]=typeof i=="string"?i:JSON.stringify(i))}let t=p((n,r)=>{r===void 0||r===""||(s[n]=r)},"addParam");if(t("source",typeof e.source=="string"?e.source.trim():void 0),t("symbol",typeof e.symbol=="string"?e.symbol.trim():void 0),t("cursor",typeof e.cursor=="string"?e.cursor.trim():void 0),t("status",typeof e.status=="string"?e.status.trim():void 0),t("backtestRunId",typeof e.runId=="string"?e.runId.trim():typeof e.backtestRunId=="string"?e.backtestRunId.trim():void 0),t("since",T(e.since,"since")),t("until",T(e.until,"until")),typeof e.limit=="string"&&e.limit.trim().length>0){let n=Number.parseInt(e.limit,10);if(!Number.isFinite(n))throw new Error("limit must be a number");t("limit",String(n))}return Object.keys(s).length?s:void 0}p(X,"resolveBacktestEventsParams");async function me(e,s){let t=await f(),n=m(t),r=await g(t,n),i=y(t),{app:o}=await v(i,r,s),c={...X(e)??{},appId:o.id},l=await z(i,r,{method:"GET",query:c});console.log(JSON.stringify(l,null,2))}p(me,"runBacktestEvents");async function ye(e,s){let t=typeof e.runId=="string"?e.runId.trim():typeof e.backtestRunId=="string"?e.backtestRunId.trim():"";if(!t)throw new Error("usage: backtest get <handle>/<repo> --run-id <id>");let n=await f(),r=m(n),i=await g(n,r),o=y(n),{app:c}=await v(o,i,s),l=await F(o,i,{appId:c.id,runId:t});console.log(JSON.stringify(l,null,2))}p(ye,"runBacktestGet");export{X as resolveBacktestEventsParams,de as runAppsAgentCreate,le as runAppsAssistant,oe as runAppsCodeVisibility,ge as runAppsDeploy,fe as runAppsEnvGet,ue as runAppsEnvSet,se as runAppsList,ae as runAppsPerformance,ce as runAppsSummary,ie as runAppsTools,pe as runAppsToolsExecute,me as runBacktestEvents,ye as runBacktestGet};
|
|
@@ -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.
|
|
2
|
+
import{a as n}from"./chunk-FTQLQJQV.js";var s="127.0.0.1";var f="0.2.22",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  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};
|