openpond 0.0.37 → 0.0.39
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/README.md +3 -7
- package/dist/api/core.d.ts +6 -0
- package/dist/api/types.d.ts +0 -50
- package/dist/api/vercel-protection.d.ts +1 -0
- package/dist/api.d.ts +2 -8
- package/dist/chunks/{app-layer-LF2HK2B2.js → app-layer-LTBWNA2F.js} +32 -10
- package/dist/chunks/app-server-runtime-VYYJ2AWX.js +18 -0
- package/dist/chunks/{apps-ZMCMQZKX.js → apps-CZAJBGE3.js} +6 -124
- package/dist/chunks/{chunk-MHBQWGCL.js → chunk-2SF6HLT7.js} +5463 -5535
- package/dist/chunks/{chunk-VFL2JVBZ.js → chunk-3CDPPVLE.js} +111 -84
- package/dist/chunks/{chunk-N6E6YSTP.js → chunk-3HW6OSHP.js} +1 -3
- package/dist/chunks/{chunk-43YI36NA.js → chunk-3KLQ52B2.js} +228 -5
- package/dist/chunks/chunk-4HIWFIMN.js +37172 -0
- package/dist/chunks/{chunk-WTA33KQQ.js → chunk-4N6E3OVF.js} +4 -4
- package/dist/chunks/{chunk-35PPAOWD.js → chunk-6V7MJVRO.js} +56 -11
- package/dist/chunks/{chunk-ICLLW5QD.js → chunk-BQQZNGI6.js} +154 -194
- package/dist/chunks/chunk-DBHSOTYZ.js +1552 -0
- package/dist/chunks/{chunk-ZZ4ECDTP.js → chunk-FCVVOMIP.js} +145 -5
- package/dist/chunks/{chunk-A3CJUBA7.js → chunk-JIEUB6OS.js} +1 -1
- package/dist/chunks/{chunk-WL76II47.js → chunk-JJPAMKXZ.js} +1 -1
- package/dist/chunks/{chunk-2WMGA5FE.js → chunk-JRROTGQT.js} +1 -110
- package/dist/chunks/chunk-KHNHUA2H.js +1737 -0
- package/dist/chunks/{chunk-LNKYEHIJ.js → chunk-L6XH4ZGZ.js} +1 -1
- package/dist/chunks/chunk-M2NXTLH2.js +4054 -0
- package/dist/chunks/{chunk-IATK3CIP.js → chunk-MIZHCABO.js} +2 -195
- package/dist/chunks/chunk-SMNFI2FU.js +113 -0
- package/dist/chunks/chunk-VCVQLECH.js +675 -0
- package/dist/chunks/{chunk-KT2BB4AR.js → chunk-ZJBJQCQZ.js} +179 -52
- package/dist/chunks/{cli-5NFIDCRL.js → cli-JS76LCW2.js} +9 -5
- package/dist/chunks/{core-commands-7223BEQL.js → core-commands-4MRJQZJV.js} +7 -5
- package/dist/chunks/{harness-OMJXIGEW.js → desktop-test-RNMWLOVU.js} +15 -14
- package/dist/chunks/{chunk-ZPL4GZML.js → extension-GDRW22N3.js} +5866 -3601
- package/dist/chunks/{help-YPPROIS7.js → help-LWNREJ7U.js} +1 -1
- package/dist/chunks/{opchat-K7IYFPX6.js → opchat-2K2JIGK3.js} +9 -10
- package/dist/chunks/{organizations-W3FMAWQ4.js → organizations-Z5HVD2E7.js} +11 -9
- package/dist/chunks/{profile-N4B3F7M7.js → profile-QNECVVGN.js} +12 -38
- package/dist/chunks/{project-agent-NA6SGU25.js → project-agent-W3V75WBR.js} +9 -411
- package/dist/chunks/{sandbox-command-AKCFJKKN.js → sandbox-command-X3FO74NX.js} +7 -5
- package/dist/chunks/{sandbox-template-5NKTAXCL.js → sandbox-template-5B4T4BGU.js} +8 -6
- package/dist/chunks/{src-XAVSQTVR.js → src-ESAILPUH.js} +32 -30
- package/dist/chunks/src-IC5RX4L6.js +63517 -0
- package/dist/chunks/{teams-bot-557NZC73.js → teams-bot-NTQ6VFFL.js} +6 -4
- package/dist/chunks/training-BR5A7SPU.js +320 -0
- package/dist/chunks/{workspaces-S2H75XQB.js → workspaces-XC3QBD2Y.js} +2 -2
- package/dist/cli.js +24 -12
- package/dist/client-types.d.ts +1 -9
- package/dist/client.d.ts +3 -3
- package/dist/config.d.ts +9 -3
- package/dist/index.js +1300 -1091
- package/dist/profile/local-profile-types.d.ts +16 -0
- package/dist/profile/local-profile.d.ts +50 -4
- package/dist/sandbox/client-handles.d.ts +33 -46
- package/dist/sandbox/client.d.ts +4 -26
- package/dist/sandbox/sandbox-instance-client.d.ts +5 -5
- package/dist/sandbox/types/client.d.ts +1 -2
- package/dist/sandbox/types/core.d.ts +0 -1
- package/dist/sandbox/types/org-project-agent.d.ts +3 -89
- package/dist/sandbox/types/record.d.ts +1 -2
- package/dist/sandbox/types/runtime-profiles.d.ts +2 -2
- package/dist/sandbox-template/manifest.d.ts +1 -1
- package/dist/skills/openpond-agent-authoring/SKILL.md +40 -0
- package/dist/skills/openpond-agent-authoring/references/action-and-chat-design.md +13 -0
- package/dist/skills/openpond-agent-authoring/references/integrations-and-setup.md +13 -0
- package/dist/skills/openpond-agent-authoring/references/profile-layout.md +29 -0
- package/dist/skills/openpond-agent-authoring/references/validation-and-repair.md +14 -0
- package/dist/skills/openpond-desktop-harness/SKILL.md +1 -1
- package/dist/skills/openpond-skill-authoring/SKILL.md +44 -0
- package/dist/skills/openpond-skill-authoring/references/copying-and-adaptation.md +16 -0
- package/dist/skills/openpond-skill-authoring/references/skill-package-layout.md +38 -0
- package/dist/skills/openpond-skill-authoring/references/validation-and-repair.md +24 -0
- package/dist/skills/openpond-skill-authoring/scripts/validate-skill.mjs +102 -0
- package/dist/skills/openpond-taskset-authoring/SKILL.md +64 -22
- package/dist/skills/openpond-taskset-authoring/artifact.json +39 -0
- package/dist/skills/openpond-taskset-authoring/references/graders-and-rewards.md +3 -0
- package/dist/skills/openpond-taskset-authoring/references/method-selection.md +1 -1
- package/dist/skills/openpond-taskset-authoring/references/privacy-and-provenance.md +2 -0
- package/dist/skills/openpond-taskset-authoring/references/task-design.md +32 -0
- package/dist/web/assets/{AppDialog-y6krB0MJ.js → AppDialog-Bua3f-6v.js} +1 -1
- package/dist/web/assets/{AppsView-4F6oLktr.js → AppsView-DrJkHeSO.js} +1 -1
- package/dist/web/assets/BrowserSidebar-Bf-4Vozm.js +1 -0
- package/dist/web/assets/CommandMenu-DDZlGQiB.js +1 -0
- package/dist/web/assets/CommunityView-BtcCrba7.js +1 -0
- package/dist/web/assets/ComposerCreateImproveStrip-DOe5Otg6.js +1 -0
- package/dist/web/assets/GetStartedView-CG4z0Dtw.js +1 -0
- package/dist/web/assets/GetStartedView-yVmnGZPw.css +1 -0
- package/dist/web/assets/LabModelVersionDetailPage-BEkmSKuv.js +1 -0
- package/dist/web/assets/LabSkillSidebar-BIotN_RB.js +1 -0
- package/dist/web/assets/LabsRoute-CfOe0Zt5.js +3 -0
- package/dist/web/assets/LabsRoute-CoSPO4HR.css +1 -0
- package/dist/web/assets/MainChatThread-C0-l1mHt.js +2 -0
- package/dist/web/assets/MainPane-Bky_Rqcx.css +1 -0
- package/dist/web/assets/MainPane-aOVlVyRK.js +6 -0
- package/dist/web/assets/MarkdownText-D7DT1k1k.js +9 -0
- package/dist/web/assets/Messages-CBIXruA9.js +9 -0
- package/dist/web/assets/NativeSkillSidebar-C4t69Y7B.js +1 -0
- package/dist/web/assets/NewProjectDialog-Bat65tYD.js +1 -0
- package/dist/web/assets/OutputsPage-C58n39Db.js +1 -0
- package/dist/web/assets/RightChatPanelStack-Bp7nZxQ0.js +1 -0
- package/dist/web/assets/ScheduledWorkPage-BXP0j_c_.js +1 -0
- package/dist/web/assets/SettingsView-CtWK_aQ0.css +1 -0
- package/dist/web/assets/SettingsView-DOOfhO9a.js +6 -0
- package/dist/web/assets/TeamChatView-Cgxm-pKA.css +1 -0
- package/dist/web/assets/TeamChatView-De2wdqyY.js +3 -0
- package/dist/web/assets/{TerminalOverlay-B56XmI-k.js → TerminalOverlay-BsuCH3NX.js} +1 -1
- package/dist/web/assets/TrainingCreationPanel-D2OFWyQ-.js +1 -0
- package/dist/web/assets/TrainingDraftPanel-DBpulXTz.js +1 -0
- package/dist/web/assets/{UsageSettingsSection-r3CqRm6Q.js → UsageSettingsSection-DzMLUXAO.js} +37 -37
- package/dist/web/assets/WorkspaceDiffPanel-B7yIhjNF.js +14 -0
- package/dist/web/assets/WorkspaceEnvironmentMenu-B6jXM9xG.js +32 -0
- package/dist/web/assets/WorkspaceGitDialogs-CQ0fl9Qk.js +1 -0
- package/dist/web/assets/{WorkspaceMonacoEditor-CHd22UcG.js → WorkspaceMonacoEditor-C2ctzITz.js} +3 -3
- package/dist/web/assets/arrow-up-right-ecwcx3xt.js +1 -0
- package/dist/web/assets/chevron-up-DP8PPfWd.js +1 -0
- package/dist/web/assets/circle-alert-envg1D6O.js +1 -0
- package/dist/web/assets/cloud-upload-5MGPLnaA.js +1 -0
- package/dist/web/assets/{cssMode-KFDYjM8T.js → cssMode-CFifcEfw.js} +1 -1
- package/dist/web/assets/folder-open-Dq3ZjeEP.js +1 -0
- package/dist/web/assets/folder-plus-EiZ5wbv_.js +1 -0
- package/dist/web/assets/git-branch-w29jmQ-X.js +1 -0
- package/dist/web/assets/{git-commit-horizontal-C8UFKlXy.js → git-commit-horizontal-CGZM0PZo.js} +1 -1
- package/dist/web/assets/{htmlMode-NbLN3n6Q.js → htmlMode-Ct1P-_lf.js} +1 -1
- package/dist/web/assets/index-ByIQyiUl.js +178 -0
- package/dist/web/assets/index-D4uCeiep.js +1 -0
- package/dist/web/assets/index-D9jTe16Q.css +1 -0
- package/dist/web/assets/info-Cd2HkIeb.js +1 -0
- package/dist/web/assets/{jsonMode-Bl3r4LM_.js → jsonMode-BAUNCNAX.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-DH22w5XD.js → lspLanguageFeatures-fucFYI1A.js} +1 -1
- package/dist/web/assets/monaco.contribution-Ce4v5kei.js +2 -0
- package/dist/web/assets/monaco.contribution-DLLMi4cB.js +2 -0
- package/dist/web/assets/monaco.contribution-g9QiIm1d.js +2 -0
- package/dist/web/assets/monaco.contribution-nG-5Cyjz.js +2 -0
- package/dist/web/assets/monitor-DgHCnCKl.js +1 -0
- package/dist/web/assets/{play-2NDQ4-7K.js → play-Be0XDHBu.js} +1 -1
- package/dist/web/assets/{python-CQ0TmUW9.js → python-CEhEiPo7.js} +1 -1
- package/dist/web/assets/{refresh-cw-CyermMsy.js → refresh-cw-DH0KLbdD.js} +1 -1
- package/dist/web/assets/reply-D1TK2yV8.js +1 -0
- package/dist/web/assets/{save-Bij3cc3Q.js → save-C1MSeBnQ.js} +1 -1
- package/dist/web/assets/square-CemI-0g5.js +1 -0
- package/dist/web/assets/square-pen-CqfsvR_n.js +1 -0
- package/dist/web/assets/{toggleHighContrast-CxALivAH.js → toggleHighContrast-DrdQN3Rl.js} +1 -1
- package/dist/web/assets/training-BQVNUTZA.css +1 -0
- package/dist/web/assets/training-model-data-B7-1Bxil.js +1 -0
- package/dist/web/assets/{tsMode-vH4lMS7h.js → tsMode-CKB5oOUU.js} +1 -1
- package/dist/web/assets/{upload-DbJfEI3G.js → upload-t751LLqP.js} +1 -1
- package/dist/web/assets/useLocalAgentSchedules-CzC3wfIP.js +1 -0
- package/dist/web/assets/{wifi-off-BnVFBG28.js → wifi-off-CxTHH3JU.js} +1 -1
- package/dist/web/assets/{workers-CBihj7z6.js → workers-CqYddzCd.js} +1 -1
- package/dist/web/assets/{yaml-Bhkoq1sy.js → yaml-e5wBkc-C.js} +1 -1
- package/dist/web/index.html +2 -2
- package/docs/command-reference.md +76 -41
- package/package.json +3 -1
- package/dist/chunks/chunk-3VURZQHA.js +0 -864
- package/dist/chunks/chunk-BWA3COR4.js +0 -3535
- package/dist/chunks/chunk-HLCTINEP.js +0 -224
- package/dist/chunks/chunk-PGET7EZF.js +0 -3896
- package/dist/chunks/chunk-T4QXKU5Y.js +0 -1
- package/dist/chunks/chunk-XEJ7XXUQ.js +0 -1301
- package/dist/chunks/cli-AS3DZ7XB.js +0 -23
- package/dist/chunks/extend-6N5S5KA5.js +0 -89
- package/dist/chunks/extension-FJSVCG2Q.js +0 -121
- package/dist/chunks/fileFromPath-DHCRY3BD.js +0 -2151
- package/dist/chunks/src-SCS4KKP4.js +0 -105881
- package/dist/web/assets/BrowserSidebar-C0MHQaaD.js +0 -1
- package/dist/web/assets/CloudWorkView-DNoPIlMj.css +0 -1
- package/dist/web/assets/CloudWorkView-DwFIZoXy.js +0 -1
- package/dist/web/assets/CommandMenu-CYGFrMZi.js +0 -1
- package/dist/web/assets/CommunityView-C6n89YXz.js +0 -1
- package/dist/web/assets/ComposerCreateImproveStrip-C3RwXC3_.js +0 -1
- package/dist/web/assets/GetStartedView-DBLdduwr.css +0 -1
- package/dist/web/assets/GetStartedView-fwD0ZXo9.js +0 -1
- package/dist/web/assets/LabSkillSidebar-BSuc-NJr.js +0 -1
- package/dist/web/assets/LabsRoute-BrJkBNig.css +0 -1
- package/dist/web/assets/LabsRoute-D2y8dSsT.js +0 -3
- package/dist/web/assets/MainChatThread-Dj_Ry6WQ.js +0 -2
- package/dist/web/assets/MakeAgentTutorialLearningPanel-Bz2VDaRe.js +0 -2
- package/dist/web/assets/MarkdownText-B6Nu_0Fz.js +0 -7
- package/dist/web/assets/Messages-CH2wfv2a.js +0 -10
- package/dist/web/assets/NativeSkillSidebar-4iUfgwqO.js +0 -1
- package/dist/web/assets/NewProjectDialog-8M5-6-h-.js +0 -1
- package/dist/web/assets/PostTrainingLearningPanel-CdG5KHZs.js +0 -2
- package/dist/web/assets/PostTrainingStatusPill-COZ4qISQ.js +0 -1
- package/dist/web/assets/ProfileSettingsSection-Bo7dybgW.js +0 -1
- package/dist/web/assets/ProfileSettingsSection-Cg4tKO-C.css +0 -1
- package/dist/web/assets/RightChatPanelStack-Di8zoHJI.js +0 -1
- package/dist/web/assets/SettingsView-BcYyY66X.css +0 -1
- package/dist/web/assets/SettingsView-CAaKdDHt.js +0 -6
- package/dist/web/assets/TeamChatView-Bx44q3WV.css +0 -1
- package/dist/web/assets/TeamChatView-CzQYFBap.js +0 -3
- package/dist/web/assets/TrainingCreationPanel-C_ntWAAP.js +0 -1
- package/dist/web/assets/TrainingDraftPanel-3hJIxLNn.js +0 -1
- package/dist/web/assets/WorkspaceDiffPanel-By8PWUuE.js +0 -14
- package/dist/web/assets/WorkspaceEnvironmentMenu-7wmC-spz.js +0 -32
- package/dist/web/assets/WorkspaceGitDialogs-Hn--lsRh.js +0 -1
- package/dist/web/assets/activity-Dp5V58om.js +0 -1
- package/dist/web/assets/boxes-DE7WJaEv.js +0 -1
- package/dist/web/assets/chevron-up-BWx8gGab.js +0 -1
- package/dist/web/assets/circle-x-DnmOfZIg.js +0 -1
- package/dist/web/assets/copy-BjWvaXLC.js +0 -1
- package/dist/web/assets/create-pipeline-request-C4V6-lWN.js +0 -4
- package/dist/web/assets/credit-card-Bjg0Zaw5.js +0 -1
- package/dist/web/assets/file-BrC1KjAS.js +0 -1
- package/dist/web/assets/git-branch-DTeeARsp.js +0 -1
- package/dist/web/assets/index-BcZetaeD.css +0 -1
- package/dist/web/assets/index-DQalqxbw.js +0 -177
- package/dist/web/assets/index-DYxF_d9i.js +0 -1
- package/dist/web/assets/info-BXBpMeVU.js +0 -1
- package/dist/web/assets/make-agent-tutorial-CAnTPFCK.js +0 -2
- package/dist/web/assets/monaco.contribution-C0BsxYAz.js +0 -2
- package/dist/web/assets/monaco.contribution-CzpXjm9j.js +0 -2
- package/dist/web/assets/monaco.contribution-DK-g-i00.js +0 -2
- package/dist/web/assets/monaco.contribution-iAurj7TQ.js +0 -2
- package/dist/web/assets/monitor-Ba2FFblh.js +0 -1
- package/dist/web/assets/reply-BSExNLHM.js +0 -1
- package/dist/web/assets/rotate-cw-DJ-zYG9E.js +0 -1
- package/dist/web/assets/training-BN8CALIc.css +0 -1
- package/dist/web/assets/training-model-data-BXUCzS0p.js +0 -1
- package/dist/web/tokens/eth.svg +0 -1
- package/dist/web/tokens/usdc.svg +0 -1
- package/docs/agent-edit-check-status-json.md +0 -132
|
@@ -15,15 +15,17 @@ import {
|
|
|
15
15
|
summarizeReplayArtifact,
|
|
16
16
|
summarizeSandbox,
|
|
17
17
|
waitForSandboxCreateReady
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3HW6OSHP.js";
|
|
19
19
|
import {
|
|
20
20
|
readSandboxSecretValue,
|
|
21
21
|
resolveSandboxClient,
|
|
22
22
|
summarizeSandboxSecret
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-FCVVOMIP.js";
|
|
24
|
+
import "./chunk-KHNHUA2H.js";
|
|
25
|
+
import "./chunk-JRROTGQT.js";
|
|
26
|
+
import "./chunk-SMNFI2FU.js";
|
|
27
|
+
import "./chunk-3CDPPVLE.js";
|
|
28
|
+
import "./chunk-DBHSOTYZ.js";
|
|
27
29
|
import "./chunk-KSRWKXRB.js";
|
|
28
30
|
import {
|
|
29
31
|
parseBooleanOption,
|
|
@@ -2,10 +2,10 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
|
|
|
2
2
|
import {
|
|
3
3
|
createSandboxFromPlan,
|
|
4
4
|
summarizeSandbox
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3HW6OSHP.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveGitBranch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4N6E3OVF.js";
|
|
9
9
|
import {
|
|
10
10
|
OPENPOND_MANIFEST_FILE_NAME,
|
|
11
11
|
SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,
|
|
@@ -33,16 +33,18 @@ import {
|
|
|
33
33
|
runCommand,
|
|
34
34
|
runShellCommand,
|
|
35
35
|
warnOnRepoHostMismatch
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FCVVOMIP.js";
|
|
37
|
+
import "./chunk-KHNHUA2H.js";
|
|
38
|
+
import "./chunk-JRROTGQT.js";
|
|
37
39
|
import {
|
|
38
40
|
resolveBaseUrl,
|
|
39
41
|
resolvePublicApiBaseUrl
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-SMNFI2FU.js";
|
|
43
|
+
import "./chunk-3CDPPVLE.js";
|
|
42
44
|
import {
|
|
43
45
|
createRepo,
|
|
44
46
|
loadConfig
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-DBHSOTYZ.js";
|
|
46
48
|
import "./chunk-KSRWKXRB.js";
|
|
47
49
|
import {
|
|
48
50
|
parseBooleanOption,
|
|
@@ -3,7 +3,7 @@ import { createRequire as __openpondCreateRequire } from "node:module"; var requ
|
|
|
3
3
|
import {
|
|
4
4
|
createReadyLineParser,
|
|
5
5
|
openUrlWithSystemBrowser
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BQQZNGI6.js";
|
|
7
7
|
import {
|
|
8
8
|
ApprovalSchema,
|
|
9
9
|
ContextUsageSnapshotSchema,
|
|
@@ -12,13 +12,14 @@ import {
|
|
|
12
12
|
DEFAULT_OPENPOND_CHAT_MODEL,
|
|
13
13
|
DEFAULT_OPENPOND_COMMAND_ACCESS_MODE,
|
|
14
14
|
OpenPondCommandAccessModeSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2SF6HLT7.js";
|
|
16
16
|
import {
|
|
17
17
|
CONNECTED_APP_CATALOG,
|
|
18
18
|
buildConnectedAppInstallUrl,
|
|
19
19
|
connectedAppById
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-M2NXTLH2.js";
|
|
21
21
|
import "./chunk-WYDVQOBL.js";
|
|
22
|
+
import "./chunk-KHNHUA2H.js";
|
|
22
23
|
import "./chunk-UACZUFIA.js";
|
|
23
24
|
|
|
24
25
|
// ../terminal/src/index.ts
|
|
@@ -153,7 +154,7 @@ var SLASH_COMMANDS = [
|
|
|
153
154
|
{ name: "agents", usage: "/agents", description: "list agents" },
|
|
154
155
|
{ name: "agent", usage: "/agent <id>", description: "select agent", requiresArgument: true },
|
|
155
156
|
{ name: "run", usage: "/run <action> [json]", description: "run profile action", requiresArgument: true },
|
|
156
|
-
{ name: "settings", usage: "/settings
|
|
157
|
+
{ name: "settings", usage: "/settings", description: "show settings" },
|
|
157
158
|
{ name: "logs", usage: "/logs", description: "show recent events" },
|
|
158
159
|
{ name: "compact", usage: "/compact", description: "compact current session" },
|
|
159
160
|
{ name: "clear", usage: "/clear", description: "clear terminal transcript" },
|
|
@@ -970,7 +971,6 @@ var OPENAI_COMPATIBLE_CHAT_PROVIDER_IDS = [
|
|
|
970
971
|
"moonshot",
|
|
971
972
|
"together",
|
|
972
973
|
"groq",
|
|
973
|
-
"fireworks",
|
|
974
974
|
"custom-openai-compatible"
|
|
975
975
|
];
|
|
976
976
|
var RUNNABLE_CHAT_PROVIDER_IDS = [
|
|
@@ -1266,6 +1266,7 @@ function parseTerminalArgs(argv, defaultCwd = process.cwd()) {
|
|
|
1266
1266
|
provider: DEFAULT_CHAT_PROVIDER,
|
|
1267
1267
|
model: null,
|
|
1268
1268
|
cwd: defaultCwd,
|
|
1269
|
+
agent: null,
|
|
1269
1270
|
project: null,
|
|
1270
1271
|
resume: null,
|
|
1271
1272
|
noServerStart: false,
|
|
@@ -1292,6 +1293,8 @@ function parseTerminalArgs(argv, defaultCwd = process.cwd()) {
|
|
|
1292
1293
|
} else if (arg === "--cwd") {
|
|
1293
1294
|
options.cwd = path.resolve(rest[++i] ?? options.cwd);
|
|
1294
1295
|
options.cwdExplicit = true;
|
|
1296
|
+
} else if (arg === "--agent") {
|
|
1297
|
+
options.agent = readStringArg(rest, ++i, "agent");
|
|
1295
1298
|
} else if (arg === "--project") {
|
|
1296
1299
|
options.project = rest[++i] ?? null;
|
|
1297
1300
|
} else if (arg === "--resume") {
|
|
@@ -2060,7 +2063,7 @@ ${formatTerminalProjects(latest)}`, "warning"));
|
|
|
2060
2063
|
return;
|
|
2061
2064
|
}
|
|
2062
2065
|
if (command.type === "settings") {
|
|
2063
|
-
await handleSettingsCommand(command.args, context
|
|
2066
|
+
await handleSettingsCommand(command.args, context);
|
|
2064
2067
|
return;
|
|
2065
2068
|
}
|
|
2066
2069
|
if (command.type === "logs") {
|
|
@@ -2164,40 +2167,21 @@ async function patchTerminalSessionCommandAccess(connection, sessionId, mode) {
|
|
|
2164
2167
|
body: JSON.stringify({ openPondCommandAccessMode: mode })
|
|
2165
2168
|
});
|
|
2166
2169
|
}
|
|
2167
|
-
async function handleSettingsCommand(args, context
|
|
2170
|
+
async function handleSettingsCommand(args, context) {
|
|
2168
2171
|
const latest = context.getPayload() ?? await context.refreshBootstrap();
|
|
2169
2172
|
const subcommand = args[0] ?? "show";
|
|
2170
2173
|
if (subcommand === "show") {
|
|
2171
2174
|
context.addItem(systemItem(formatTerminalSettings(latest)));
|
|
2172
2175
|
return;
|
|
2173
2176
|
}
|
|
2174
|
-
|
|
2175
|
-
context.addItem(systemItem("Usage: /settings [goal-storage global|workspace]", "warning"));
|
|
2176
|
-
return;
|
|
2177
|
-
}
|
|
2178
|
-
const location = args[1];
|
|
2179
|
-
if (location !== "global" && location !== "workspace") {
|
|
2180
|
-
context.addItem(systemItem("Usage: /settings goal-storage global|workspace", "warning"));
|
|
2181
|
-
return;
|
|
2182
|
-
}
|
|
2183
|
-
const updated = await apiFetch(connection.server, connection.token, "/v1/preferences", {
|
|
2184
|
-
method: "PATCH",
|
|
2185
|
-
body: JSON.stringify({ goalStorageLocation: location })
|
|
2186
|
-
});
|
|
2187
|
-
context.setPayload(updated);
|
|
2188
|
-
context.addItem(systemItem(`Goal storage set to ${goalStorageLabel(updated.preferences.goalStorageLocation)}.`));
|
|
2177
|
+
context.addItem(systemItem("Usage: /settings", "warning"));
|
|
2189
2178
|
}
|
|
2190
2179
|
function formatTerminalSettings(payload) {
|
|
2191
2180
|
return [
|
|
2192
2181
|
"Settings:",
|
|
2193
|
-
`
|
|
2194
|
-
"",
|
|
2195
|
-
"Change it with /settings goal-storage global or /settings goal-storage workspace."
|
|
2182
|
+
`Default chat: ${payload.preferences.defaultChatProvider} / ${payload.preferences.defaultChatModel}`
|
|
2196
2183
|
].join("\n");
|
|
2197
2184
|
}
|
|
2198
|
-
function goalStorageLabel(location) {
|
|
2199
|
-
return location === "workspace" ? ".openpond/goals in the working directory" : "~/.openpond/goals";
|
|
2200
|
-
}
|
|
2201
2185
|
async function handleProfileCommand(args, context, connection) {
|
|
2202
2186
|
const subcommand = args[0] ?? "current";
|
|
2203
2187
|
if (subcommand === "init") {
|
|
@@ -2733,6 +2717,18 @@ async function runOneShotChat(options, io = {}) {
|
|
|
2733
2717
|
}
|
|
2734
2718
|
});
|
|
2735
2719
|
await deadline.run("event stream readiness", eventStream.ready);
|
|
2720
|
+
const profileActionCatalog = (payload.profile.actionCatalog ?? []).filter(
|
|
2721
|
+
(action) => profileActionMatchesAgent(action, options.agent) && (!action.agentId || payload.profile.agents.some(
|
|
2722
|
+
(agent) => agent.enabled && agent.id === action.agentId
|
|
2723
|
+
))
|
|
2724
|
+
).map((action) => ({
|
|
2725
|
+
...action,
|
|
2726
|
+
implementation: {
|
|
2727
|
+
...action.implementation ?? {},
|
|
2728
|
+
type: "openpond-profile-action",
|
|
2729
|
+
actionId: action.id
|
|
2730
|
+
}
|
|
2731
|
+
}));
|
|
2736
2732
|
await deadline.run("turn submission", apiFetch(connection.server, connection.token, `/v1/sessions/${activeSessionId}/turns`, {
|
|
2737
2733
|
method: "POST",
|
|
2738
2734
|
body: JSON.stringify({
|
|
@@ -2740,6 +2736,7 @@ async function runOneShotChat(options, io = {}) {
|
|
|
2740
2736
|
...options.cwdExplicit || !options.project && !options.resume ? { cwd: options.cwd } : {},
|
|
2741
2737
|
model: modelId,
|
|
2742
2738
|
modelRef: activeModelRef(options, payload.providers),
|
|
2739
|
+
...profileActionCatalog.length > 0 ? { openPondActionCatalog: profileActionCatalog } : {},
|
|
2743
2740
|
approvalPolicy: options.yes ? "never" : options.approvalPolicy,
|
|
2744
2741
|
sandbox: options.sandbox,
|
|
2745
2742
|
metadata: {
|
|
@@ -2747,7 +2744,8 @@ async function runOneShotChat(options, io = {}) {
|
|
|
2747
2744
|
openpondTerminal: {
|
|
2748
2745
|
mode: "one-shot",
|
|
2749
2746
|
nonInteractive: true,
|
|
2750
|
-
sandbox: options.sandbox
|
|
2747
|
+
sandbox: options.sandbox,
|
|
2748
|
+
...options.agent ? { agentId: options.agent } : {}
|
|
2751
2749
|
}
|
|
2752
2750
|
}
|
|
2753
2751
|
}),
|
|
@@ -2810,6 +2808,10 @@ async function runOneShotChat(options, io = {}) {
|
|
|
2810
2808
|
if (timedOut && !options.json) output2.write("\n[turn timeout]\n");
|
|
2811
2809
|
}
|
|
2812
2810
|
}
|
|
2811
|
+
function profileActionMatchesAgent(action, agentId) {
|
|
2812
|
+
if (!agentId) return true;
|
|
2813
|
+
return action.agentId === agentId || action.id === agentId || action.id.startsWith(`${agentId}.`);
|
|
2814
|
+
}
|
|
2813
2815
|
function createOneShotDeadline(timeoutSec) {
|
|
2814
2816
|
const controller = new AbortController();
|
|
2815
2817
|
let phase = "startup";
|
|
@@ -3585,7 +3587,7 @@ async function runOpenPondTerminalCli(argv = process.argv.slice(2)) {
|
|
|
3585
3587
|
const { command, options } = parseTerminalArgs(argv);
|
|
3586
3588
|
if (command !== "chat") {
|
|
3587
3589
|
output.write(
|
|
3588
|
-
"Usage: openpond-app chat [--server URL] [--provider PROVIDER] [--model MODEL] [--cwd DIR] [--project APP_ID] [--resume SESSION_ID] (--message TEXT|--message-file PATH|--stdin) --non-interactive [--yes] [--approval-policy POLICY] [--json] [--timeout-sec SEC] [--max-output-bytes BYTES] [--sandbox MODE]\n"
|
|
3590
|
+
"Usage: openpond-app chat [--server URL] [--provider PROVIDER] [--model MODEL] [--agent AGENT_ID] [--cwd DIR] [--project APP_ID] [--resume SESSION_ID] (--message TEXT|--message-file PATH|--stdin) --non-interactive [--yes] [--approval-policy POLICY] [--json] [--timeout-sec SEC] [--max-output-bytes BYTES] [--sandbox MODE]\n"
|
|
3589
3591
|
);
|
|
3590
3592
|
return;
|
|
3591
3593
|
}
|