openpond 0.2.40 → 0.2.42
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 +23 -1
- package/dist/app-server.js +1 -1
- package/dist/chunks/actions-command-6EMO4BIK.js +2 -0
- package/dist/chunks/{app-layer-W2M7SM2L.js → app-layer-ETI5QXQ3.js} +1 -1
- package/dist/chunks/app-server-runtime-CJ7SJTTF.js +2 -0
- package/dist/chunks/apps-LH5AJCUI.js +2 -0
- package/dist/chunks/{chunk-FFTVDR3E.js → chunk-2VTXKZNK.js} +132 -132
- package/dist/chunks/{chunk-ALYT2HWV.js → chunk-2Z6H32OC.js} +1 -1
- package/dist/chunks/chunk-3CKJETWW.js +2 -0
- package/dist/chunks/chunk-4F2Q4CFS.js +4 -0
- package/dist/chunks/{chunk-3HQEEZPO.js → chunk-65BW2QXY.js} +1 -1
- package/dist/chunks/{chunk-J4S7AVGF.js → chunk-6UGTLC7Z.js} +1 -1
- package/dist/chunks/chunk-76YP4FDQ.js +3 -0
- package/dist/chunks/{chunk-YHBIGFFA.js → chunk-AANEPCEZ.js} +1 -1
- package/dist/chunks/chunk-ALZRXBEC.js +33 -0
- package/dist/chunks/chunk-ANCZVBMI.js +42 -0
- package/dist/chunks/chunk-AT6XYNQ5.js +2 -0
- package/dist/chunks/{chunk-IYWNO4RB.js → chunk-AUOMUBLE.js} +2 -2
- package/dist/chunks/{chunk-4QURHV3Q.js → chunk-BAQ3DWH2.js} +1 -1
- package/dist/chunks/chunk-BJSXEGWG.js +2 -0
- package/dist/chunks/chunk-DXAZUJPA.js +2 -0
- package/dist/chunks/{chunk-H7YH35JO.js → chunk-EEJ3HL6O.js} +1 -1
- package/dist/chunks/chunk-GC4OCTP6.js +2 -0
- package/dist/chunks/chunk-JYM3O4G7.js +5 -0
- package/dist/chunks/chunk-KCENW4ME.js +2 -0
- package/dist/chunks/{chunk-T7Y5OYO2.js → chunk-KIGN4FI6.js} +1 -1
- package/dist/chunks/{chunk-FUFIZ37W.js → chunk-LRGLV6JX.js} +1 -1
- package/dist/chunks/chunk-MOMDY22U.js +2 -0
- package/dist/chunks/chunk-MTJNKRXL.js +22 -0
- package/dist/chunks/{chunk-JARGGWF5.js → chunk-NT2UKDF7.js} +1 -1
- package/dist/chunks/chunk-OUN6VQDO.js +5 -0
- package/dist/chunks/{chunk-3UQU3KOS.js → chunk-QZ4KTU65.js} +1 -1
- package/dist/chunks/chunk-R6YJY7F2.js +3 -0
- package/dist/chunks/chunk-S2MLTFZF.js +2 -0
- package/dist/chunks/chunk-SUAT5DR4.js +9 -0
- package/dist/chunks/{chunk-ELUCM7CG.js → chunk-TPMXLA5Y.js} +7 -7
- package/dist/chunks/{chunk-TU5ITNMX.js → chunk-TPOW52DO.js} +3 -3
- package/dist/chunks/chunk-V62BHD5G.js +2 -0
- package/dist/chunks/{chunk-JIG7KQOX.js → chunk-VI3ZF54E.js} +2 -2
- package/dist/chunks/{chunk-ZCFX6HQO.js → chunk-VQG25QBJ.js} +1 -1
- package/dist/chunks/{chunk-ASRSYRE3.js → chunk-VTWY3U4M.js} +1 -1
- package/dist/chunks/chunk-XJAK6DDB.js +5 -0
- package/dist/chunks/chunk-Z2BYC6TP.js +2 -0
- package/dist/chunks/chunk-Z7VAZVC5.js +578 -0
- package/dist/chunks/{chunk-562Q5UVS.js → chunk-ZG7QX66E.js} +1 -1
- package/dist/chunks/{chunk-WWCU4ETR.js → chunk-ZLQQUZH7.js} +1 -1
- package/dist/chunks/{chunk-3QXPXBVG.js → chunk-ZQWXPDCB.js} +1 -1
- package/dist/chunks/cli-FM3DESGO.js +2 -0
- package/dist/chunks/configuration-command-N2FD7DWB.js +2 -0
- package/dist/chunks/core-commands-D2MJ7QFZ.js +2 -0
- package/dist/chunks/datasets-UYIZCMNZ.js +13 -0
- package/dist/chunks/desktop-test-IWDHFDSZ.js +3 -0
- package/dist/chunks/dist-ELWB75PL.js +2 -0
- package/dist/chunks/{dist-GKCGK44T.js → dist-JPRXSUXC.js} +1 -1
- package/dist/chunks/experiments-Q6TAHJV3.js +2 -0
- package/dist/chunks/{extension-3P3JNRYN.js → extension-7GYFAHRP.js} +1 -1
- package/dist/chunks/{help-23QDOMG7.js → help-MD7Z72QS.js} +1 -1
- package/dist/chunks/hosted-harness-runtime-LMYM7PYZ.js +2 -0
- package/dist/chunks/hosted-profile-compiler-H2J5HFT3.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-control-VV2NXFBE.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-inspection-XMPRKON6.js +3 -0
- package/dist/chunks/hosted-profile-evaluation-preparation-ZZ3MZJDR.js +3 -0
- package/dist/chunks/opchat-URWW53CK.js +3 -0
- package/dist/chunks/organizations-BPBJV7LZ.js +2 -0
- package/dist/chunks/{profile-NJMKPS6Z.js → profile-BZDCYKGL.js} +1 -1
- package/dist/chunks/project-agent-U6YNYPHS.js +2 -0
- package/dist/chunks/sandbox-command-TTLFWUXV.js +2 -0
- package/dist/chunks/{sandbox-template-RCDR2FXX.js → sandbox-template-ZYXK4QCI.js} +1 -1
- package/dist/chunks/{src-H7VE4J62.js → src-5Z35O6L7.js} +1 -1
- package/dist/chunks/src-NABQMSR3.js +325 -0
- package/dist/chunks/{teams-bot-KCKZTM3N.js → teams-bot-WXGP3PA6.js} +1 -1
- package/dist/chunks/{workspaces-J5QQUR53.js → workspaces-7WY3ZVQW.js} +1 -1
- package/dist/cli.js +3 -3
- package/dist/index.js +1 -1
- package/dist/web/assets/App-BpYDvJ6x.js +226 -0
- package/dist/web/assets/{AppDialog-CmPsGOzE.js → AppDialog-DMymIOcU.js} +1 -1
- package/dist/web/assets/{AppTerminalPanel-0_Ewf4wJ.js → AppTerminalPanel-CFsUD-di.js} +2 -2
- package/dist/web/assets/{AppsView-Ddn9R2I-.js → AppsView-CUrRKOiz.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-j2Yyiaz-.js → BrowserSidebar-C5psWtoF.js} +1 -1
- package/dist/web/assets/{CartesianChart-BWAkc0mY.js → CartesianChart-DVGs4fGn.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-SVc7oX8N.js → CollaborationTabs-D6eqNw88.js} +1 -1
- package/dist/web/assets/{CommandMenu-CcX5ypdX.js → CommandMenu--GRjuf3j.js} +1 -1
- package/dist/web/assets/{CommunityView-B7W1C8KG.js → CommunityView-CHGceVA_.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-BBKdrbNP.js → ComposerCreateImproveStrip-D08PAaxI.js} +1 -1
- package/dist/web/assets/{GetStartedView-BXuTBT4U.js → GetStartedView-BPZcWzsG.js} +1 -1
- package/dist/web/assets/HostedModelLearningReview-DiS-n3XW.js +1 -0
- package/dist/web/assets/HostedModelLearningSettings-BmEMKcoy.js +1 -0
- package/dist/web/assets/{LabModelVersionDetailPage-CctGBUae.js → LabModelVersionDetailPage-CX5pOLl2.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-Cl8Sdiqc.js → LabSkillSidebar-C4vAz_0b.js} +1 -1
- package/dist/web/assets/LabsRoute-BL04wKhE.js +52 -0
- package/dist/web/assets/LabsRoute-Cq9XLVDP.css +1 -0
- package/dist/web/assets/{MainChatThread-BaEeNsrh.js → MainChatThread-BSwHDALr.js} +2 -2
- package/dist/web/assets/{MainPane-Dw90VsN-.js → MainPane-EwtIf5_E.js} +14 -14
- package/dist/web/assets/{MarkdownText-CGGUFrZe.js → MarkdownText-Bj9uRWtM.js} +1 -1
- package/dist/web/assets/{NativeSkillSidebar-2mgh6WV4.js → NativeSkillSidebar-U7PHw5DO.js} +1 -1
- package/dist/web/assets/{NewExperienceSwitcher-DMTe3jS9.js → NewExperienceSwitcher-DneuamYK.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-D6pvuCoo.js → NewProjectDialog-CrpXYCYV.js} +1 -1
- package/dist/web/assets/{OutputsPage-DMeIKxzN.js → OutputsPage-C1SPqz45.js} +1 -1
- package/dist/web/assets/{ProjectsPage-V5oXwB-5.js → ProjectsPage-CCW3mGQb.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-B0y2XNdm.js → RightChatPanelStack-D7ECzLfp.js} +1 -1
- package/dist/web/assets/{RightSidebarHomePanel-BksZR71F.js → RightSidebarHomePanel-B-4r-yLc.js} +1 -1
- package/dist/web/assets/{ScheduledWorkPage-BRcVebWV.js → ScheduledWorkPage-XjmcT64Z.js} +1 -1
- package/dist/web/assets/{SettingsView-CtI170q1.js → SettingsView-BEBpD7W0.js} +3 -3
- package/dist/web/assets/{TeamChatView-DWGM8eXj.js → TeamChatView-n9GnPY4F.js} +2 -2
- package/dist/web/assets/{TerminalOverlay-DLSmAkbQ.js → TerminalOverlay-CNaaMo7W.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-C6e6zhC8.js → TrainingCreationPanel-CEEXMmC5.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-Q1GXOAlQ.js → TrainingDraftPanel-CwyoL_Dy.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-UET2vS1c.js → UsageSettingsSection-BNjgosYd.js} +1 -1
- package/dist/web/assets/{WorkSidebarPanel-DMsXId2s.js → WorkSidebarPanel-BatJltaq.js} +1 -1
- package/dist/web/assets/{WorkspaceDiffPanel-B_eZE-bq.js → WorkspaceDiffPanel-Cbr7qcqm.js} +3 -3
- package/dist/web/assets/{WorkspaceEnvironmentMenu-C848cDBP.js → WorkspaceEnvironmentMenu-DYu-PXRv.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-CSnIC26s.js → WorkspaceGitDialogs-BoamHtgk.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-C5dvv9s_.js → WorkspaceMonacoEditor-yg83VXk5.js} +3 -3
- package/dist/web/assets/{arrow-up-right-CsvQameJ.js → arrow-up-right-CN9lcbsD.js} +1 -1
- package/dist/web/assets/{clipboard-fZsv7_ot.js → clipboard-DfLDGpSz.js} +1 -1
- package/dist/web/assets/{cloud-upload-CUXNsLn2.js → cloud-upload-hk4EBTu-.js} +1 -1
- package/dist/web/assets/{cssMode-1tbsSShK.js → cssMode-DkhTpCaH.js} +1 -1
- package/dist/web/assets/{folder-open-Da8t5AtB.js → folder-open-BmhusYOx.js} +1 -1
- package/dist/web/assets/{folder-plus-X7B8dzc3.js → folder-plus-Bedc_RqV.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-CajQIfK5.js → git-commit-horizontal-D2Zvz4i7.js} +1 -1
- package/dist/web/assets/{htmlMode-qapgENKW.js → htmlMode-Bf3_KJ2b.js} +1 -1
- package/dist/web/assets/{index-DUQK09vA.js → index-CpTHPmvd.js} +2 -2
- package/dist/web/assets/index-DUIWDN8o.css +1 -0
- package/dist/web/assets/{info-BYfs9_PT.js → info-CayXQYUk.js} +1 -1
- package/dist/web/assets/{jsonMode-DYPkWxLK.js → jsonMode-_Ywm0ZC4.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-Cbcp__rz.js → lspLanguageFeatures-Caw_TPYu.js} +1 -1
- package/dist/web/assets/{minimize-2-Dp7tWjno.js → minimize-2-sPQtjkx8.js} +1 -1
- package/dist/web/assets/{monaco.contribution-DApKEq_e.js → monaco.contribution-Bqi-s2-g.js} +2 -2
- package/dist/web/assets/{monaco.contribution-COP3_DCK.js → monaco.contribution-CngZuH1Z.js} +2 -2
- package/dist/web/assets/{monaco.contribution-cIq6c5M4.js → monaco.contribution-DKY5M77J.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CcL6YtdZ.js → monaco.contribution-DmEqb8O2.js} +2 -2
- package/dist/web/assets/{monitor-nP1D5S_1.js → monitor-BuaCDSIZ.js} +1 -1
- package/dist/web/assets/{python-DXYfRGSs.js → python-D6SoZF70.js} +1 -1
- package/dist/web/assets/{refresh-cw-D_9Q01ox.js → refresh-cw-DmpWkVF6.js} +1 -1
- package/dist/web/assets/{save-BxG7d5Nm.js → save-Di43Sc13.js} +1 -1
- package/dist/web/assets/{square--Ua9DQPL.js → square-Cui64whj.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-CqAtkn5E.js → toggleHighContrast-e8XiQRTr.js} +1 -1
- package/dist/web/assets/{tsMode-BCdfa4wT.js → tsMode-Cvh0MpFm.js} +1 -1
- package/dist/web/assets/{upload-BkYSJcbc.js → upload-Dphgk6dy.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-CGlPbPZr.js → useLocalAgentSchedules-CDN8WQld.js} +1 -1
- package/dist/web/assets/{useSessionTurnCache-DtNQyWXl.js → useSessionTurnCache-Bvcc_al6.js} +1 -1
- package/dist/web/assets/{wifi-off-DF8YmlRa.js → wifi-off-CIWXrn3o.js} +1 -1
- package/dist/web/assets/{workers-BUHY0ojx.js → workers-XU4YZxHD.js} +1 -1
- package/dist/web/assets/{yaml-CtBzXx8s.js → yaml-BZ0UGaZH.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunks/actions-command-X2ERGYMA.js +0 -2
- package/dist/chunks/app-server-runtime-IO3FDF37.js +0 -2
- package/dist/chunks/apps-IBVU56HR.js +0 -2
- package/dist/chunks/chunk-5OA57RW4.js +0 -2
- package/dist/chunks/chunk-62H5KUOS.js +0 -12
- package/dist/chunks/chunk-AOBTILU5.js +0 -2
- package/dist/chunks/chunk-CYZOPDTW.js +0 -2
- package/dist/chunks/chunk-DDHUSA3I.js +0 -2
- package/dist/chunks/chunk-DWY6YCBI.js +0 -578
- package/dist/chunks/chunk-GTG2ODOV.js +0 -5
- package/dist/chunks/chunk-PKBU37CH.js +0 -5
- package/dist/chunks/chunk-QCLVO56H.js +0 -4
- package/dist/chunks/chunk-QK2GLRCY.js +0 -53
- package/dist/chunks/chunk-SHCKK3SU.js +0 -2
- package/dist/chunks/chunk-XRI3HLZ3.js +0 -42
- package/dist/chunks/chunk-ZCPIVNCS.js +0 -2
- package/dist/chunks/cli-QXO6OHZJ.js +0 -2
- package/dist/chunks/configuration-command-6VJUXQNZ.js +0 -2
- package/dist/chunks/core-commands-J6OY62PE.js +0 -2
- package/dist/chunks/datasets-W24QTQL7.js +0 -13
- package/dist/chunks/desktop-test-SHS2VUYP.js +0 -3
- package/dist/chunks/dist-4OUZANXR.js +0 -2
- package/dist/chunks/experiments-O7WTSICN.js +0 -2
- package/dist/chunks/hosted-harness-runtime-U7JV7Z5T.js +0 -2
- package/dist/chunks/hosted-profile-compiler-ZCVMUTFA.js +0 -3
- package/dist/chunks/opchat-OI2YFNNY.js +0 -3
- package/dist/chunks/organizations-LB5QXKWT.js +0 -2
- package/dist/chunks/project-agent-SZLUVG3U.js +0 -2
- package/dist/chunks/sandbox-command-FQBOFZGM.js +0 -2
- package/dist/chunks/src-JVSP6UKT.js +0 -325
- package/dist/web/assets/App-BL1D_PLh.js +0 -226
- package/dist/web/assets/HostedModelLearningReview-C3oAdyoF.js +0 -1
- package/dist/web/assets/HostedModelLearningSettings-9e5z5eRf.js +0 -1
- package/dist/web/assets/LabsRoute-C1FWCoYb.css +0 -1
- package/dist/web/assets/LabsRoute-di9O0XV1.js +0 -32
- package/dist/web/assets/index-lqk3IxE0.css +0 -1
package/dist/app-server.d.ts
CHANGED
|
@@ -15988,6 +15988,8 @@ declare const AGENT_RPC_METHODS: readonly [
|
|
|
15988
15988
|
"profile/evaluations/executeRun",
|
|
15989
15989
|
"profile/evaluations/compare",
|
|
15990
15990
|
"profile/evaluations/report",
|
|
15991
|
+
"experiments/executeCase",
|
|
15992
|
+
"experiments/cancelCase",
|
|
15991
15993
|
"harness/inspect",
|
|
15992
15994
|
"harness/proposalReview",
|
|
15993
15995
|
"harness/review",
|
|
@@ -16050,6 +16052,8 @@ type AgentRuntimeHost = {
|
|
|
16050
16052
|
profileEvaluationExecuteRun(params: unknown): Promise<unknown>;
|
|
16051
16053
|
profileEvaluationCompare(params: unknown): Promise<unknown>;
|
|
16052
16054
|
profileEvaluationReport(params: unknown): Promise<unknown>;
|
|
16055
|
+
experimentExecuteCase?(params: unknown): Promise<unknown>;
|
|
16056
|
+
experimentCancelCase?(params: unknown): Promise<unknown>;
|
|
16053
16057
|
harnessInspect(params: unknown): Promise<unknown>;
|
|
16054
16058
|
harnessProposalReview(params: unknown): Promise<unknown>;
|
|
16055
16059
|
harnessReview(params: unknown): Promise<unknown>;
|
|
@@ -16069,6 +16073,18 @@ type AgentRuntimeHost = {
|
|
|
16069
16073
|
type JsonRpcRequest = z.infer<typeof JsonRpcRequestSchema>;
|
|
16070
16074
|
type JsonRpcNotification = z.infer<typeof JsonRpcNotificationSchema>;
|
|
16071
16075
|
declare const HostStorageRequestSchema: z.ZodDiscriminatedUnion<[
|
|
16076
|
+
z.ZodObject<{
|
|
16077
|
+
contractVersion: z.ZodLiteral<1>;
|
|
16078
|
+
requestId: z.ZodString;
|
|
16079
|
+
operation: z.ZodLiteral<"experiment/policy">;
|
|
16080
|
+
params: z.ZodObject<{
|
|
16081
|
+
caseId: z.ZodString;
|
|
16082
|
+
admissionHash: z.ZodString;
|
|
16083
|
+
ordinal: z.ZodNumber;
|
|
16084
|
+
messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16085
|
+
tools: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16086
|
+
}, z.core.$strict>;
|
|
16087
|
+
}, z.core.$strict>,
|
|
16072
16088
|
z.ZodObject<{
|
|
16073
16089
|
contractVersion: z.ZodLiteral<1>;
|
|
16074
16090
|
requestId: z.ZodString;
|
|
@@ -30173,12 +30189,18 @@ declare const AdmittedHostedProfileReleaseSchema: z.ZodObject<{
|
|
|
30173
30189
|
id: z.ZodString;
|
|
30174
30190
|
contentHash: z.ZodString;
|
|
30175
30191
|
}, z.core.$strict>;
|
|
30192
|
+
hostExecution: z.ZodOptional<z.ZodObject<{
|
|
30193
|
+
conversationId: z.ZodString;
|
|
30194
|
+
turnId: z.ZodString;
|
|
30195
|
+
}, z.core.$strict>>;
|
|
30176
30196
|
workspaceId: z.ZodString;
|
|
30177
30197
|
assetsPath: z.ZodString;
|
|
30178
30198
|
}, z.core.$strict>;
|
|
30179
30199
|
type AdmittedHostedProfileRelease = z.infer<typeof AdmittedHostedProfileReleaseSchema>;
|
|
30180
|
-
type AppServerRuntimeCoreStorage = TurnRunnerDependencies["store"] & Pick<SqliteStore, "sessionCount" | "insertSessionAtFront" | "getSession" | "updateSession" | "appendRuntimeEvent" | "runtimeEventPageRows" | "turnsForSession" | "upsertApproval" | "upsertModelUsageRecord">;
|
|
30200
|
+
type AppServerRuntimeCoreStorage = TurnRunnerDependencies["store"] & Pick<SqliteStore, "sessionCount" | "insertSessionAtFront" | "getSession" | "updateSession" | "appendRuntimeEvent" | "runtimeEventPageRows" | "turnsForSession" | "upsertApproval" | "upsertModelUsageRecord" | "runtimeEventsForTurn" | "listModelUsageRecords">;
|
|
30181
30201
|
export type OpenPondAppServerOptions = {
|
|
30202
|
+
/** Dedicated host-admitted case runtime; credentials/spend remain at its owner. */
|
|
30203
|
+
experimentPolicyClient?: AgentHostStorageClient;
|
|
30182
30204
|
hostStorageClient?: AgentHostStorageClient;
|
|
30183
30205
|
/** Select all mutable runtime domains together after host capability negotiation. */
|
|
30184
30206
|
runtimeStorage?: {
|
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{Rc as r}from"./chunks/chunk-Z7VAZVC5.js";import"./chunks/chunk-NT2UKDF7.js";import{e as p}from"./chunks/chunk-BJSXEGWG.js";import"./chunks/chunk-JYM3O4G7.js";import{i as e}from"./chunks/chunk-OUN6VQDO.js";import"./chunks/chunk-VTWY3U4M.js";import"./chunks/chunk-GC4OCTP6.js";import"./chunks/chunk-SUAT5DR4.js";import"./chunks/chunk-R6YJY7F2.js";import"./chunks/chunk-AT6XYNQ5.js";import"./chunks/chunk-2VTXKZNK.js";import"./chunks/chunk-EEJ3HL6O.js";import"./chunks/chunk-MOMDY22U.js";import"./chunks/chunk-S2MLTFZF.js";import"./chunks/chunk-BAQ3DWH2.js";import"./chunks/chunk-AANEPCEZ.js";import"./chunks/chunk-VI3ZF54E.js";import"./chunks/chunk-L3KS6MOV.js";import"./chunks/chunk-3CKJETWW.js";import"./chunks/chunk-XEOEKFG6.js";import"./chunks/chunk-ZQWXPDCB.js";import"./chunks/chunk-6MI4KKWF.js";import"./chunks/chunk-TPMXLA5Y.js";import"./chunks/chunk-KCENW4ME.js";import"./chunks/chunk-2Z6H32OC.js";import"./chunks/chunk-MJC26GOX.js";import"./chunks/chunk-TPOW52DO.js";import"./chunks/chunk-QUNRWDVO.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-SDO4FC4Q.js";import"./chunks/chunk-IR3YJWPW.js";import"./chunks/chunk-ALZRXBEC.js";import"./chunks/chunk-MTJNKRXL.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as v}from"./chunk-65BW2QXY.js";import"./chunk-XWPC3AN4.js";import{f as b}from"./chunk-3M53YXEI.js";import{b as R,c as p,d as m}from"./chunk-XEOEKFG6.js";import{p as O}from"./chunk-XJAK6DDB.js";import{d as P}from"./chunk-DXAZUJPA.js";import"./chunk-GLUWATL5.js";import"./chunk-KCENW4ME.js";import"./chunk-2Z6H32OC.js";import"./chunk-MJC26GOX.js";import"./chunk-TPOW52DO.js";import"./chunk-QUNRWDVO.js";import"./chunk-ALZRXBEC.js";import"./chunk-MTJNKRXL.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import{a as c}from"./chunk-FTQLQJQV.js";import{promises as $,watch as C}from"node:fs";import y from"node:path";import{execFile as J}from"node:child_process";import{promisify as k}from"node:util";var K=k(J);async function G(t,n){let e=n[0]??"check",o=y.resolve(i(t,"cwd")??process.cwd()),l=i(t,"sourceDirectory"),u=i(t,"outputDirectory"),d=b(t.json);if(e==="check"||e==="build"){let r=await p({projectRoot:o,sourceDirectory:l,outputDirectory:u});if(d){console.log(JSON.stringify({status:"passed",actionCount:r.registry.actions.length,registry:r.registry,manifest:r.manifest,outputDirectory:r.outputDirectory},null,2));return}console.log(`${e==="check"?"Validated":"Built"} ${r.registry.actions.length} Project Action${r.registry.actions.length===1?"":"s"}.`),console.log(`Registry: ${r.registryPath}`),console.log(`Bundle: ${r.bundlePath}`);return}if(e==="run"){let r=n[1];if(!r)throw new Error("usage: openpond actions run <action-id> [--input JSON|--input-file PATH]");let a=await m({projectRoot:o,sourceDirectory:l,outputDirectory:u,build:"always"}).run({actionId:r,input:await I(t,o),timeoutMs:A(t,"timeoutMs")});console.log(JSON.stringify(a,null,2));return}if(e==="dev"){let r=n[1]??null;await _({projectRoot:o,sourceDirectory:l,outputDirectory:u,actionId:r,options:t,json:d});return}if(e==="publish"){let r=j(t,"projectId"),s=j(t,"teamId"),a=i(t,"apiKey"),w=process.env.OPENPOND_API_KEY?.trim()||null,g=a||w?null:await P({account:i(t,"account")}),h=a??w??(g?v(g):null);if(!h)throw new Error("OpenPond API key is required. Select a saved OpenPond account, set OPENPOND_API_KEY, or pass --api-key.");let N=await p({projectRoot:o,sourceDirectory:l,outputDirectory:u}),E=i(t,"sourceCommitSha")??await D(o,["rev-parse","HEAD"]),S=i(t,"sourceRef")??await D(o,["rev-parse","--abbrev-ref","HEAD"]),f=await O({apiKey:h,baseUrl:i(t,"baseUrl")??(process.env.OPENPOND_API_URL?.trim()||g?.apiBaseUrl)}).actions.publish({projectId:r,teamId:s,sourceRef:S,sourceCommitSha:E,build:N});console.log(d?JSON.stringify({release:f},null,2):`Published Project Actions release ${f.id} from ${f.sourceCommitSha}.`);return}throw new Error("usage: openpond actions <check|build|run|dev|publish> [action-id]")}c(G,"runProjectActionsCommand");async function _(t){let n=!1,e=!1,o=c(async()=>{if(n){e=!0;return}n=!0;try{let r=m({projectRoot:t.projectRoot,sourceDirectory:t.sourceDirectory,outputDirectory:t.outputDirectory,build:"always"});if(t.actionId){let s=await r.run({actionId:t.actionId,input:await I(t.options,t.projectRoot),timeoutMs:A(t.options,"timeoutMs")});console.log(JSON.stringify(s,null,2))}else{let s=await r.build(),a={status:"ready",actionCount:s.registry.actions.length,bundleHash:s.manifest.bundleHash};console.log(t.json?JSON.stringify(a):`Ready with ${a.actionCount} Project Action${a.actionCount===1?"":"s"}.`)}}catch(r){console.error(r instanceof Error?r.message:String(r))}finally{n=!1,e&&(e=!1,await o())}},"execute");await o();let l=await R(t.projectRoot),u=y.resolve(t.projectRoot,t.sourceDirectory??l.sourceDirectory??"openpond/actions");console.log(`Watching ${u}`);let d=C(u,{recursive:!0},()=>{setTimeout(()=>{o()},50)});await new Promise(r=>{let s=c(()=>{d.close(),r()},"stop");process.once("SIGINT",s),process.once("SIGTERM",s)})}c(_,"runDev");async function I(t,n){let e=i(t,"input"),o=i(t,"inputFile");if(e&&o)throw new Error("Use either --input or --input-file, not both.");return e?JSON.parse(e):o?JSON.parse(await $.readFile(y.resolve(n,o),"utf8")):{}}c(I,"actionInput");function i(t,n){let e=t[n];return typeof e=="string"&&e.trim()?e.trim():void 0}c(i,"stringOption");function j(t,n){let e=i(t,n);if(!e)throw new Error(`--${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)} is required.`);return e}c(j,"requiredOption");async function D(t,n){let{stdout:e}=await K("git",n,{cwd:t}),o=e.trim();if(!o)throw new Error(`git ${n.join(" ")} returned no value.`);return o}c(D,"gitValue");function A(t,n){let e=i(t,n);if(e===void 0)return;let o=Number(e);if(!Number.isInteger(o)||o<=0)throw new Error(`--${n} must be a positive integer.`);return o}c(A,"integerOption");export{G as runProjectActionsCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{u as m}from"./chunk-
|
|
2
|
+
import{u as m}from"./chunk-LRGLV6JX.js";import"./chunk-65BW2QXY.js";import"./chunk-BSHAIAXY.js";import{a as l}from"./chunk-QZ4KTU65.js";import"./chunk-AUOMUBLE.js";import"./chunk-XWPC3AN4.js";import"./chunk-3M53YXEI.js";import"./chunk-OGPHXXCD.js";import"./chunk-XJAK6DDB.js";import"./chunk-Z2BYC6TP.js";import"./chunk-DXAZUJPA.js";import"./chunk-GLUWATL5.js";import"./chunk-KCENW4ME.js";import"./chunk-2Z6H32OC.js";import"./chunk-MJC26GOX.js";import"./chunk-TPOW52DO.js";import"./chunk-QUNRWDVO.js";import"./chunk-ALZRXBEC.js";import"./chunk-MTJNKRXL.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.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{Qc as c,Rc as d}from"./chunk-Z7VAZVC5.js";import"./chunk-NT2UKDF7.js";import{e as b}from"./chunk-BJSXEGWG.js";import"./chunk-JYM3O4G7.js";import{i as a}from"./chunk-OUN6VQDO.js";import"./chunk-VTWY3U4M.js";import"./chunk-GC4OCTP6.js";import"./chunk-SUAT5DR4.js";import"./chunk-R6YJY7F2.js";import"./chunk-AT6XYNQ5.js";import"./chunk-2VTXKZNK.js";import"./chunk-EEJ3HL6O.js";import"./chunk-MOMDY22U.js";import"./chunk-S2MLTFZF.js";import"./chunk-BAQ3DWH2.js";import"./chunk-AANEPCEZ.js";import"./chunk-VI3ZF54E.js";import"./chunk-L3KS6MOV.js";import"./chunk-3CKJETWW.js";import"./chunk-XEOEKFG6.js";import"./chunk-ZQWXPDCB.js";import"./chunk-6MI4KKWF.js";import"./chunk-TPMXLA5Y.js";import"./chunk-KCENW4ME.js";import"./chunk-2Z6H32OC.js";import"./chunk-MJC26GOX.js";import"./chunk-TPOW52DO.js";import"./chunk-QUNRWDVO.js";import"./chunk-6FA3GG5B.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-ALZRXBEC.js";import"./chunk-MTJNKRXL.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{f as $,g as J,h as L,i as v,j as q}from"./chunk-LRGLV6JX.js";import{c as g}from"./chunk-65BW2QXY.js";import{f as m,h as y}from"./chunk-BSHAIAXY.js";import"./chunk-QZ4KTU65.js";import"./chunk-AUOMUBLE.js";import"./chunk-XWPC3AN4.js";import{a as S,f as w,j as T,k as j}from"./chunk-3M53YXEI.js";import"./chunk-OGPHXXCD.js";import"./chunk-XJAK6DDB.js";import{b as H,c as Q}from"./chunk-22UARBPW.js";import{J as C,K as G,L as k,O as W,Q as M,S as z,T as F,c as D,m as K,r as V,s as _}from"./chunk-Z2BYC6TP.js";import{d as f}from"./chunk-DXAZUJPA.js";import"./chunk-GLUWATL5.js";import"./chunk-KCENW4ME.js";import"./chunk-2Z6H32OC.js";import"./chunk-MJC26GOX.js";import"./chunk-TPOW52DO.js";import"./chunk-QUNRWDVO.js";import"./chunk-ALZRXBEC.js";import"./chunk-MTJNKRXL.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.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};
|