openpond 0.0.30-bootstrap.0
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/CHANGELOG.md +128 -0
- package/LICENSE +21 -0
- package/README.md +162 -0
- package/RELEASE.md +20 -0
- package/dist/api/core.d.ts +22 -0
- package/dist/api/deployments.d.ts +30 -0
- package/dist/api/types.d.ts +624 -0
- package/dist/api.d.ts +90 -0
- package/dist/cache.d.ts +22 -0
- package/dist/chunks/app-layer-YKXEQGOW.js +163 -0
- package/dist/chunks/apps-GGSIN2ZF.js +539 -0
- package/dist/chunks/chunk-3CC6MH35.js +1663 -0
- package/dist/chunks/chunk-3Y4EL3P6.js +1090 -0
- package/dist/chunks/chunk-4HYJG2JE.js +3875 -0
- package/dist/chunks/chunk-5G4E547X.js +294 -0
- package/dist/chunks/chunk-74O6FGVN.js +598 -0
- package/dist/chunks/chunk-AUJLPKGI.js +632 -0
- package/dist/chunks/chunk-BYAPLT37.js +744 -0
- package/dist/chunks/chunk-FUP7EGT7.js +1845 -0
- package/dist/chunks/chunk-I6HN3ZGW.js +88 -0
- package/dist/chunks/chunk-KRKGHVMQ.js +294 -0
- package/dist/chunks/chunk-LHYK6QO2.js +1300 -0
- package/dist/chunks/chunk-NLBKZZEK.js +224 -0
- package/dist/chunks/chunk-OG75GMVO.js +1 -0
- package/dist/chunks/chunk-Q57SVPEH.js +11663 -0
- package/dist/chunks/chunk-UACZUFIA.js +47 -0
- package/dist/chunks/chunk-VQX33YAG.js +5135 -0
- package/dist/chunks/chunk-W5GKHH77.js +168 -0
- package/dist/chunks/chunk-WYDVQOBL.js +17581 -0
- package/dist/chunks/chunk-XSAXENQD.js +4167 -0
- package/dist/chunks/chunk-Y6G6WRTG.js +210 -0
- package/dist/chunks/cli-NVKNE4AZ.js +11 -0
- package/dist/chunks/cli-X3HPLSOV.js +19 -0
- package/dist/chunks/core-commands-IM2UKLU4.js +41 -0
- package/dist/chunks/extend-YXCBULPO.js +84 -0
- package/dist/chunks/harness-GMK6IY2U.js +140 -0
- package/dist/chunks/help-LMH5FGT2.js +65 -0
- package/dist/chunks/opchat-BWXZ32GX.js +169 -0
- package/dist/chunks/organizations-4ISQRGMQ.js +738 -0
- package/dist/chunks/profile-NLDZDT3L.js +1110 -0
- package/dist/chunks/project-agent-ZPVO25HA.js +892 -0
- package/dist/chunks/sandbox-command-5GFJ2U3V.js +1652 -0
- package/dist/chunks/sandbox-template-LZN4F55Z.js +1646 -0
- package/dist/chunks/src-3RBI4DNN.js +3595 -0
- package/dist/chunks/src-EYXQS6XD.js +73427 -0
- package/dist/chunks/teams-bot-WP3FHKGA.js +137 -0
- package/dist/cli.js +77 -0
- package/dist/client-types.d.ts +222 -0
- package/dist/client.d.ts +19 -0
- package/dist/config.d.ts +184 -0
- package/dist/hosted-chat.d.ts +162 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +25481 -0
- package/dist/indicators.d.ts +38 -0
- package/dist/opchat-smoke.d.ts +47 -0
- package/dist/private-json-file.d.ts +3 -0
- package/dist/profile/local-profile-types.d.ts +160 -0
- package/dist/profile/local-profile.d.ts +69 -0
- package/dist/profile/profile-catalog.d.ts +14 -0
- package/dist/profile/profile-git.d.ts +17 -0
- package/dist/profile/profile-promotion.d.ts +21 -0
- package/dist/profile/profile-setup-gate.d.ts +22 -0
- package/dist/profile/profile-skills.d.ts +30 -0
- package/dist/profile/profile-source-upload.d.ts +29 -0
- package/dist/profile/source-upload-cache.d.ts +29 -0
- package/dist/sandbox/async-request-options.d.ts +2 -0
- package/dist/sandbox/client-handles.d.ts +113 -0
- package/dist/sandbox/client.d.ts +348 -0
- package/dist/sandbox/runtime-handle.d.ts +36 -0
- package/dist/sandbox/sandbox-instance-client.d.ts +72 -0
- package/dist/sandbox/smoke.d.ts +3 -0
- package/dist/sandbox/stream.d.ts +7 -0
- package/dist/sandbox/types/billing.d.ts +176 -0
- package/dist/sandbox/types/client.d.ts +103 -0
- package/dist/sandbox/types/core.d.ts +140 -0
- package/dist/sandbox/types/index.d.ts +14 -0
- package/dist/sandbox/types/io.d.ts +240 -0
- package/dist/sandbox/types/microsoft-teams-bot.d.ts +51 -0
- package/dist/sandbox/types/org-project-agent.d.ts +610 -0
- package/dist/sandbox/types/record.d.ts +53 -0
- package/dist/sandbox/types/responses.d.ts +295 -0
- package/dist/sandbox/types/runtime-profiles.d.ts +15 -0
- package/dist/sandbox/types/runtime.d.ts +152 -0
- package/dist/sandbox/types/schedules.d.ts +141 -0
- package/dist/sandbox/types/snapshots.d.ts +205 -0
- package/dist/sandbox/types/workflow-modes.d.ts +1 -0
- package/dist/sandbox/types/workload-sources.d.ts +20 -0
- package/dist/sandbox/url.d.ts +2 -0
- package/dist/sandbox-template/manifest.d.ts +304 -0
- package/dist/sandbox-template/manifest.js +18381 -0
- package/dist/skills/openpond-cli/SKILL.md +49 -0
- package/dist/skills/openpond-desktop-harness/SKILL.md +113 -0
- package/dist/skills/openpond-desktop-harness/agents/openai.yaml +4 -0
- package/dist/skills/openpond-taskset-authoring/SKILL.md +38 -0
- package/dist/skills/openpond-taskset-authoring/references/graders-and-rewards.md +11 -0
- package/dist/skills/openpond-taskset-authoring/references/method-selection.md +12 -0
- package/dist/skills/openpond-taskset-authoring/references/privacy-and-provenance.md +8 -0
- package/dist/skills/openpond-taskset-authoring/references/task-design.md +13 -0
- package/dist/stream.d.ts +20 -0
- package/dist/types.d.ts +57 -0
- package/dist/urls.d.ts +4 -0
- package/dist/web/assets/AppsView-Bu-Nc3Ew.js +1 -0
- package/dist/web/assets/AppsView-DIhprTIC.css +1 -0
- package/dist/web/assets/BrowserSidebar-CCguQ-DR.js +1 -0
- package/dist/web/assets/BrowserSidebar-D9i7gQzw.css +1 -0
- package/dist/web/assets/CloudWorkView-DNoPIlMj.css +1 -0
- package/dist/web/assets/CloudWorkView-Dr3xqLE5.js +1 -0
- package/dist/web/assets/CommandMenu-CnodJFHD.js +1 -0
- package/dist/web/assets/CommandMenu-hNQCm8mw.css +1 -0
- package/dist/web/assets/CommunityView-CIbjNUZr.js +1 -0
- package/dist/web/assets/CommunityView-DSik4sd2.css +1 -0
- package/dist/web/assets/GetStartedView-C3ZrnEz5.css +1 -0
- package/dist/web/assets/GetStartedView-C8nyH_PT.js +1 -0
- package/dist/web/assets/LabsExtensions-GtJzxDnK.js +1 -0
- package/dist/web/assets/LabsProfile-DG7rWYur.js +1 -0
- package/dist/web/assets/LabsRoute-D6MDHBzq.js +2 -0
- package/dist/web/assets/LabsRoute-TEt9j1vB.css +1 -0
- package/dist/web/assets/LabsSignals-BfsDN86w.js +1 -0
- package/dist/web/assets/LabsSignals-D6iA6Ryl.css +1 -0
- package/dist/web/assets/NewProjectDialog-CaKiCoVS.js +1 -0
- package/dist/web/assets/ProfileSettingsSection-DTQS2DVL.css +1 -0
- package/dist/web/assets/ProfileSettingsSection-DxEzoF3K.js +1 -0
- package/dist/web/assets/ProfileView-CEscW7Ru.js +1 -0
- package/dist/web/assets/SettingsView-DwbGu8Kj.css +1 -0
- package/dist/web/assets/SettingsView-JIRR_FO4.js +63 -0
- package/dist/web/assets/TeamChatView-B5M1ThhJ.js +3 -0
- package/dist/web/assets/TeamChatView-Bx44q3WV.css +1 -0
- package/dist/web/assets/TerminalOverlay-C1iP4OS1.js +19 -0
- package/dist/web/assets/TerminalOverlay-DwBiZLwk.css +1 -0
- package/dist/web/assets/TrainingSettingsSection-BDYvI2te.js +1 -0
- package/dist/web/assets/TrainingView-CoCFK6W3.js +5 -0
- package/dist/web/assets/WorkspaceDiffPanel-CMxKQeo7.js +14 -0
- package/dist/web/assets/WorkspaceEnvironmentMenu-B8JJbwIz.js +32 -0
- package/dist/web/assets/WorkspaceEnvironmentMenu-DGIFdG3o.css +1 -0
- package/dist/web/assets/WorkspaceGitDialogs-B4sp9BGn.js +1 -0
- package/dist/web/assets/WorkspaceMonacoEditor-BBqimG5X.js +845 -0
- package/dist/web/assets/WorkspaceMonacoEditor-BwKcXIZw.css +1 -0
- package/dist/web/assets/boxes-DAaDUabq.js +1 -0
- package/dist/web/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/dist/web/assets/css.worker-DBVD8oXr.js +93 -0
- package/dist/web/assets/cssMode-CBF1mieJ.js +1 -0
- package/dist/web/assets/dockerfile-BG73LgW2.js +1 -0
- package/dist/web/assets/editor.worker-CdQrwHl8.js +26 -0
- package/dist/web/assets/git-commit-horizontal-CAickXpN.js +1 -0
- package/dist/web/assets/git-dialogs-BZDqS1eT.css +1 -0
- package/dist/web/assets/html.worker-CwpTb9lJ.js +470 -0
- package/dist/web/assets/htmlMode-2u8OHtWO.js +1 -0
- package/dist/web/assets/index-BdY6A-YN.css +1 -0
- package/dist/web/assets/index-CU2qhUYV.js +195 -0
- package/dist/web/assets/index-Dz2B3-4C.js +1 -0
- package/dist/web/assets/info-CQNTh78o.js +1 -0
- package/dist/web/assets/json.worker-BoL8UZqY.js +58 -0
- package/dist/web/assets/jsonMode-C4CWXViX.js +7 -0
- package/dist/web/assets/lspLanguageFeatures-CBs_BOlB.js +4 -0
- package/dist/web/assets/markdown-BFxVWTOG.js +1 -0
- package/dist/web/assets/monaco.contribution-C1LUxAKf.js +2 -0
- package/dist/web/assets/monaco.contribution-Cpf6dWsh.js +2 -0
- package/dist/web/assets/monaco.contribution-lOXpG2xQ.js +2 -0
- package/dist/web/assets/monaco.contribution-sd3cFkcN.js +2 -0
- package/dist/web/assets/monitor-DsIswrMV.js +1 -0
- package/dist/web/assets/play-CeRw21NV.js +1 -0
- package/dist/web/assets/python-CXYq3BUl.js +1 -0
- package/dist/web/assets/refresh-cw-N5b_6AP5.js +1 -0
- package/dist/web/assets/reply-BSKjZrJg.js +1 -0
- package/dist/web/assets/save-D0oHH1a3.js +1 -0
- package/dist/web/assets/settings-lists-BEg6LMcy.css +1 -0
- package/dist/web/assets/shell-DiJ1NA_G.js +1 -0
- package/dist/web/assets/toggleHighContrast-B7NOMXDY.css +1 -0
- package/dist/web/assets/toggleHighContrast-DRjlcwes.js +62 -0
- package/dist/web/assets/training-model-data-BPrc68VG.js +1 -0
- package/dist/web/assets/ts.worker-BH9nVgjN.js +67718 -0
- package/dist/web/assets/tsMode-x-1A7ZcB.js +11 -0
- package/dist/web/assets/wifi-off-Dt52ofzh.js +1 -0
- package/dist/web/assets/workers-Ciff6Dzi.js +1 -0
- package/dist/web/assets/yaml-CB67Kxnz.js +1 -0
- package/dist/web/connected-apps/github.svg +3 -0
- package/dist/web/connected-apps/google.svg +6 -0
- package/dist/web/connected-apps/linear.svg +3 -0
- package/dist/web/connected-apps/microsoft.svg +6 -0
- package/dist/web/connected-apps/notion.svg +3 -0
- package/dist/web/connected-apps/openpond-mcp.svg +4 -0
- package/dist/web/connected-apps/slack.svg +6 -0
- package/dist/web/connected-apps/x.svg +3 -0
- package/dist/web/favicon-16x16.png +0 -0
- package/dist/web/favicon-32x32.png +0 -0
- package/dist/web/index.html +16 -0
- package/dist/web/openpond-icon.png +0 -0
- package/dist/web/openpond-wordlogo-white.png +0 -0
- package/dist/web/tokens/eth.svg +1 -0
- package/dist/web/tokens/usdc.svg +1 -0
- package/docs/agent-edit-check-status-json.md +132 -0
- package/docs/command-reference.md +695 -0
- package/package.json +84 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
resolveSandboxClient
|
|
4
|
+
} from "./chunk-XSAXENQD.js";
|
|
5
|
+
import "./chunk-5G4E547X.js";
|
|
6
|
+
import {
|
|
7
|
+
optionString,
|
|
8
|
+
parseJsonOption,
|
|
9
|
+
requiredTeamId
|
|
10
|
+
} from "./chunk-3Y4EL3P6.js";
|
|
11
|
+
import "./chunk-UACZUFIA.js";
|
|
12
|
+
|
|
13
|
+
// src/cli/teams-bot.ts
|
|
14
|
+
function usage() {
|
|
15
|
+
return [
|
|
16
|
+
"usage: teams-bot <overview|bind|rebind|diagnostics|diagnostic-run>",
|
|
17
|
+
" teams-bot overview --team-id <id>",
|
|
18
|
+
" teams-bot bind --team-id <id> --token <token> [--project-id <id>] [--agent-id <id>] [--microsoft-connection-id <id>]",
|
|
19
|
+
" teams-bot rebind <bindingId> --team-id <id> [--project-id <id>] [--agent-id <id>] [--microsoft-connection-id <id>]",
|
|
20
|
+
" teams-bot diagnostics <bindingId> --team-id <id>",
|
|
21
|
+
" teams-bot diagnostic-run <bindingId> --team-id <id> --prompt <text> [--attachments-json <json-array>] [--action-input-json <json-object>]"
|
|
22
|
+
].join("\n");
|
|
23
|
+
}
|
|
24
|
+
function nullableOption(options, key) {
|
|
25
|
+
if (!(key in options)) return void 0;
|
|
26
|
+
const value = optionString(options, key);
|
|
27
|
+
if (!value || value === "null" || value === "none") return null;
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
function bindingTargetInput(options) {
|
|
31
|
+
const teamId = requiredTeamId(options, "usage: teams-bot rebind <bindingId>");
|
|
32
|
+
const sandboxId = nullableOption(options, "sandboxId");
|
|
33
|
+
const projectId = nullableOption(options, "projectId");
|
|
34
|
+
const agentId = nullableOption(options, "agentId");
|
|
35
|
+
const microsoftConnectionId = nullableOption(options, "microsoftConnectionId");
|
|
36
|
+
return {
|
|
37
|
+
teamId,
|
|
38
|
+
...sandboxId !== void 0 ? { sandboxId } : {},
|
|
39
|
+
...projectId !== void 0 ? { projectId } : {},
|
|
40
|
+
...agentId !== void 0 ? { agentId } : {},
|
|
41
|
+
...microsoftConnectionId !== void 0 ? { microsoftConnectionId } : {}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function attachmentsInput(options) {
|
|
45
|
+
const raw = optionString(options, "attachmentsJson");
|
|
46
|
+
if (!raw) return void 0;
|
|
47
|
+
const parsed = parseJsonOption(raw, "attachments-json");
|
|
48
|
+
if (!Array.isArray(parsed)) {
|
|
49
|
+
throw new Error("attachments-json must be a JSON array");
|
|
50
|
+
}
|
|
51
|
+
for (const attachment of parsed) {
|
|
52
|
+
if (!attachment || typeof attachment !== "object" || Array.isArray(attachment)) {
|
|
53
|
+
throw new Error("attachments-json entries must be JSON objects");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return parsed;
|
|
57
|
+
}
|
|
58
|
+
function actionInput(options) {
|
|
59
|
+
const raw = optionString(options, "actionInputJson");
|
|
60
|
+
if (!raw) return void 0;
|
|
61
|
+
const parsed = parseJsonOption(raw, "action-input-json");
|
|
62
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
63
|
+
throw new Error("action-input-json must be a JSON object");
|
|
64
|
+
}
|
|
65
|
+
return parsed;
|
|
66
|
+
}
|
|
67
|
+
async function runTeamsBotCommand(options, rest) {
|
|
68
|
+
const subcommand = rest[0] || "overview";
|
|
69
|
+
const client = await resolveSandboxClient(options);
|
|
70
|
+
if (subcommand === "overview") {
|
|
71
|
+
const teamId = requiredTeamId(options, "usage: teams-bot overview");
|
|
72
|
+
console.log(
|
|
73
|
+
JSON.stringify(await client.getMicrosoftTeamsBotOverview({ teamId }), null, 2)
|
|
74
|
+
);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (subcommand === "bind") {
|
|
78
|
+
const token = optionString(options, "token");
|
|
79
|
+
if (!token) throw new Error(usage());
|
|
80
|
+
const result = await client.bindMicrosoftTeamsBotConversation({
|
|
81
|
+
...bindingTargetInput(options),
|
|
82
|
+
token
|
|
83
|
+
});
|
|
84
|
+
console.log(JSON.stringify(result, null, 2));
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (subcommand === "rebind") {
|
|
88
|
+
const bindingId = rest[1]?.trim();
|
|
89
|
+
if (!bindingId) throw new Error(usage());
|
|
90
|
+
const result = await client.rebindMicrosoftTeamsBotConversation(
|
|
91
|
+
bindingId,
|
|
92
|
+
bindingTargetInput(options)
|
|
93
|
+
);
|
|
94
|
+
console.log(JSON.stringify(result, null, 2));
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (subcommand === "diagnostics") {
|
|
98
|
+
const bindingId = rest[1]?.trim();
|
|
99
|
+
const teamId = requiredTeamId(options, "usage: teams-bot diagnostics <bindingId>");
|
|
100
|
+
if (!bindingId) throw new Error(usage());
|
|
101
|
+
console.log(
|
|
102
|
+
JSON.stringify(
|
|
103
|
+
await client.sendMicrosoftTeamsBotDiagnostic({ teamId, bindingId }),
|
|
104
|
+
null,
|
|
105
|
+
2
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (subcommand === "diagnostic-run") {
|
|
111
|
+
const bindingId = rest[1]?.trim();
|
|
112
|
+
const teamId = requiredTeamId(
|
|
113
|
+
options,
|
|
114
|
+
"usage: teams-bot diagnostic-run <bindingId>"
|
|
115
|
+
);
|
|
116
|
+
const prompt = optionString(options, "prompt");
|
|
117
|
+
if (!bindingId || !prompt) throw new Error(usage());
|
|
118
|
+
console.log(
|
|
119
|
+
JSON.stringify(
|
|
120
|
+
await client.sendMicrosoftTeamsBotDiagnosticRun({
|
|
121
|
+
teamId,
|
|
122
|
+
bindingId,
|
|
123
|
+
prompt,
|
|
124
|
+
attachments: attachmentsInput(options),
|
|
125
|
+
actionInput: actionInput(options)
|
|
126
|
+
}),
|
|
127
|
+
null,
|
|
128
|
+
2
|
|
129
|
+
)
|
|
130
|
+
);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
throw new Error(usage());
|
|
134
|
+
}
|
|
135
|
+
export {
|
|
136
|
+
runTeamsBotCommand
|
|
137
|
+
};
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
parseArgs,
|
|
5
|
+
resolveAccountOption,
|
|
6
|
+
resolveBaseUrlOption
|
|
7
|
+
} from "./chunks/chunk-5G4E547X.js";
|
|
8
|
+
import {
|
|
9
|
+
getInstalledCliVersion,
|
|
10
|
+
parseBooleanOption,
|
|
11
|
+
runCliCommand
|
|
12
|
+
} from "./chunks/chunk-3Y4EL3P6.js";
|
|
13
|
+
import "./chunks/chunk-UACZUFIA.js";
|
|
14
|
+
|
|
15
|
+
// src/cli/main.ts
|
|
16
|
+
async function runOpenPondCli(argv = process.argv.slice(2)) {
|
|
17
|
+
if (await runEmbeddedCompanion(argv)) return;
|
|
18
|
+
const { command, options, rest } = parseArgs(argv);
|
|
19
|
+
if (options.version !== void 0 && !command) {
|
|
20
|
+
console.log(getInstalledCliVersion());
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (options.checkUpdate !== void 0) {
|
|
24
|
+
await (await import("./chunks/core-commands-IM2UKLU4.js")).runCheckUpdate();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const selectedAccount = resolveAccountOption(options);
|
|
28
|
+
const selectedBaseUrl = resolveBaseUrlOption(options);
|
|
29
|
+
if (selectedAccount) {
|
|
30
|
+
process.env.OPENPOND_ACCOUNT = selectedAccount;
|
|
31
|
+
}
|
|
32
|
+
if (selectedBaseUrl) {
|
|
33
|
+
process.env.OPENPOND_BASE_URL = selectedBaseUrl;
|
|
34
|
+
}
|
|
35
|
+
if (parseBooleanOption(options.tui)) {
|
|
36
|
+
await (await import("./chunks/app-layer-YKXEQGOW.js")).runOpenPondTerminalCommand(options, rest);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (!command && process.stdin.isTTY && process.stdout.isTTY) {
|
|
40
|
+
await (await import("./chunks/app-layer-YKXEQGOW.js")).runOpenPondTerminalCommand(options, rest);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!command) {
|
|
44
|
+
(await import("./chunks/help-LMH5FGT2.js")).printHelp();
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (await runCliCommand({ command, options, rest })) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
(await import("./chunks/help-LMH5FGT2.js")).printHelp();
|
|
51
|
+
process.exit(1);
|
|
52
|
+
}
|
|
53
|
+
async function runEmbeddedCompanion(argv) {
|
|
54
|
+
if (argv[0] === "__server") {
|
|
55
|
+
process.argv = [process.execPath, "openpond-server", ...argv.slice(1)];
|
|
56
|
+
const [{ createOpenPondServer }, { runOpenPondServerCli }] = await Promise.all([
|
|
57
|
+
import("./chunks/src-EYXQS6XD.js"),
|
|
58
|
+
import("./chunks/cli-NVKNE4AZ.js")
|
|
59
|
+
]);
|
|
60
|
+
await runOpenPondServerCli(createOpenPondServer);
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
if (argv[0] === "__terminal") {
|
|
64
|
+
await (await import("./chunks/src-3RBI4DNN.js")).runOpenPondTerminalCli(argv.slice(1));
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
void runOpenPondCli().catch((error) => {
|
|
70
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
71
|
+
console.error(message);
|
|
72
|
+
const exitCode = typeof error.exitCode === "number" ? error.exitCode : 1;
|
|
73
|
+
process.exit(exitCode);
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
runOpenPondCli
|
|
77
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import type { StreamCallbacks } from "./stream.js";
|
|
2
|
+
import type { AgentCreateRequest, AppEnvironmentGetResponse, AppEnvironmentUpdateResponse, AppExecutionTimelineResponse, AppListItem, AppRuntimeSummary, AppSchedulesResponse, AssistantMode, AssistantRunResponse, CreateRepoRequest, CreateRepoResponse, DeploymentLogEntry, OpenPondAccountBalanceResponse, OpenPondAccountResponse, OpenPondApiHealth, OpenToolRecipe, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse } from "./api.js";
|
|
3
|
+
export type OpenPondClientOptions = {
|
|
4
|
+
apiKey?: string;
|
|
5
|
+
baseUrl?: string;
|
|
6
|
+
apiUrl?: string;
|
|
7
|
+
chatApiUrl?: string;
|
|
8
|
+
opChatApiUrl?: string;
|
|
9
|
+
toolUrl?: string;
|
|
10
|
+
cacheTtlMs?: number;
|
|
11
|
+
useCache?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type ToolSummary = {
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
raw: unknown;
|
|
17
|
+
};
|
|
18
|
+
export type ToolListResult = {
|
|
19
|
+
app: AppListItem;
|
|
20
|
+
deploymentId: string | null;
|
|
21
|
+
tools: ToolSummary[];
|
|
22
|
+
};
|
|
23
|
+
export type DeploymentWatchResult = {
|
|
24
|
+
deploymentId: string;
|
|
25
|
+
status: string | "timeout" | null;
|
|
26
|
+
logs: DeploymentLogEntry[];
|
|
27
|
+
};
|
|
28
|
+
export type AgentCreateStreamCallbacks = StreamCallbacks & {
|
|
29
|
+
onAppId?: (appId: string) => void;
|
|
30
|
+
onDeploymentId?: (deploymentId: string) => void;
|
|
31
|
+
};
|
|
32
|
+
export type AgentCreateStreamResult = {
|
|
33
|
+
conversationId?: string;
|
|
34
|
+
appId?: string;
|
|
35
|
+
deploymentId?: string;
|
|
36
|
+
};
|
|
37
|
+
export type OpenPondClient = {
|
|
38
|
+
baseUrl: string;
|
|
39
|
+
apiUrl: string;
|
|
40
|
+
chatApiUrl: string;
|
|
41
|
+
toolUrl: string;
|
|
42
|
+
apiKey: string;
|
|
43
|
+
account: {
|
|
44
|
+
get: () => Promise<OpenPondAccountResponse>;
|
|
45
|
+
balance: () => Promise<OpenPondAccountBalanceResponse>;
|
|
46
|
+
health: () => Promise<OpenPondApiHealth>;
|
|
47
|
+
};
|
|
48
|
+
chat: {
|
|
49
|
+
providers: () => Promise<import("./hosted-chat.js").HostedProvidersResponse>;
|
|
50
|
+
provider: (provider: string) => Promise<import("./hosted-chat.js").HostedProvider>;
|
|
51
|
+
models: () => Promise<import("./hosted-chat.js").HostedModelsResponse>;
|
|
52
|
+
model: (model: string) => Promise<import("./hosted-chat.js").HostedModel>;
|
|
53
|
+
send: (input: Omit<import("./hosted-chat.js").HostedChatRequestOptions, "apiBaseUrl" | "token">) => Promise<import("./hosted-chat.js").HostedChatCompletion>;
|
|
54
|
+
stream: (input: Omit<import("./hosted-chat.js").HostedChatRequestOptions, "apiBaseUrl" | "token">) => AsyncGenerator<import("./hosted-chat.js").HostedChatStreamDelta, void, unknown>;
|
|
55
|
+
};
|
|
56
|
+
tool: {
|
|
57
|
+
list: (target: string, options?: ToolListOptions) => Promise<ToolListResult>;
|
|
58
|
+
run: (target: string, toolName: string, options?: ToolRunOptions) => Promise<ToolExecuteResponse>;
|
|
59
|
+
};
|
|
60
|
+
deploy: {
|
|
61
|
+
watch: (target: string, options?: DeployWatchOptions) => Promise<DeploymentWatchResult>;
|
|
62
|
+
};
|
|
63
|
+
template: {
|
|
64
|
+
status: (target: string, options?: TemplateTargetOptions) => Promise<TemplateStatusResponse>;
|
|
65
|
+
branches: (target: string, options?: TemplateTargetOptions) => Promise<TemplateBranchesResponse>;
|
|
66
|
+
update: (target: string, options?: TemplateUpdateOptions) => Promise<TemplateDeployLatestResponse>;
|
|
67
|
+
};
|
|
68
|
+
opentool: {
|
|
69
|
+
recipesList: (input?: OpenToolRecipeListRequest) => Promise<OpenToolRecipeListResponse>;
|
|
70
|
+
recipesSearch: (input: OpenToolRecipeSearchRequest) => Promise<OpenToolRecipeSearchResponse>;
|
|
71
|
+
recipeGet: (input: OpenToolRecipeGetRequest) => Promise<OpenToolRecipe>;
|
|
72
|
+
rulesGet: (input: OpenToolRulesGetRequest) => Promise<OpenToolRulesGetResponse>;
|
|
73
|
+
};
|
|
74
|
+
apps: {
|
|
75
|
+
list: (options?: AppsListOptions) => Promise<AppListItem[]>;
|
|
76
|
+
tools: (options?: AppsToolsOptions) => Promise<unknown[]>;
|
|
77
|
+
performance: (options?: AppsPerformanceOptions) => Promise<unknown>;
|
|
78
|
+
summary: (input: AppSummaryOptions) => Promise<AppRuntimeSummary>;
|
|
79
|
+
schedules: (input: AppSchedulesOptions) => Promise<AppSchedulesResponse>;
|
|
80
|
+
schedulesStart: (input: AppSchedulesStartOptions) => Promise<ScheduleToggleResult>;
|
|
81
|
+
schedulesStop: (input: AppSchedulesStopOptions) => Promise<ScheduleToggleResult>;
|
|
82
|
+
schedulesStopCurrent: () => Promise<ScheduleToggleResult>;
|
|
83
|
+
scheduleRunNow: (input: ScheduleRunNowOptions) => Promise<ScheduleRunNowResponse>;
|
|
84
|
+
scheduleDelete: (input: ScheduleDeleteOptions) => Promise<ScheduleDeleteResponse>;
|
|
85
|
+
scheduleExecutionLogs: (input: ScheduleExecutionLogsOptions) => Promise<ScheduleExecutionLogsResponse>;
|
|
86
|
+
scheduleExecutionLog: (input: ScheduleExecutionLogOptions) => Promise<ScheduleExecutionLog>;
|
|
87
|
+
deploymentScheduleExecutionLogs: (input: DeploymentScheduleExecutionLogsOptions) => Promise<ScheduleExecutionLogsResponse>;
|
|
88
|
+
executionTimeline: (input: AppExecutionTimelineOptions) => Promise<AppExecutionTimelineResponse>;
|
|
89
|
+
assistantRun: (input: AppsAssistantRunOptions) => Promise<AssistantRunResponse>;
|
|
90
|
+
agentCreate: (input: AgentCreateRequest & {
|
|
91
|
+
refreshCache?: boolean;
|
|
92
|
+
}, callbacks?: AgentCreateStreamCallbacks) => Promise<AgentCreateStreamResult>;
|
|
93
|
+
toolsExecute: (input: ExecuteUserToolOptions) => Promise<ToolExecuteResponse>;
|
|
94
|
+
deploy: (input: AppDeployOptions) => Promise<{
|
|
95
|
+
deploymentId: string;
|
|
96
|
+
}>;
|
|
97
|
+
startApp: (input: AppStartOptions) => Promise<StartAppLifecycleResponse>;
|
|
98
|
+
promotePreview: (input: AppPromotePreviewOptions) => Promise<PromotePreviewToProductionResponse>;
|
|
99
|
+
envGet: (input: AppEnvironmentGetOptions) => Promise<AppEnvironmentGetResponse>;
|
|
100
|
+
envSet: (input: AppEnvironmentSetOptions) => Promise<AppEnvironmentUpdateResponse>;
|
|
101
|
+
positionsTx: (input?: PositionsTxOptions) => Promise<unknown>;
|
|
102
|
+
};
|
|
103
|
+
repo: {
|
|
104
|
+
create: (input: CreateRepoRequest & {
|
|
105
|
+
refreshCache?: boolean;
|
|
106
|
+
}) => Promise<CreateRepoResponse>;
|
|
107
|
+
};
|
|
108
|
+
cache: {
|
|
109
|
+
refresh: () => Promise<void>;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
export type ToolListOptions = {
|
|
113
|
+
branch?: string;
|
|
114
|
+
forceRefresh?: boolean;
|
|
115
|
+
deploymentId?: string;
|
|
116
|
+
};
|
|
117
|
+
export type ToolRunOptions = {
|
|
118
|
+
branch?: string;
|
|
119
|
+
deploymentId?: string;
|
|
120
|
+
method?: ToolExecuteRequest["method"];
|
|
121
|
+
body?: unknown;
|
|
122
|
+
headers?: Record<string, string>;
|
|
123
|
+
forceRefresh?: boolean;
|
|
124
|
+
};
|
|
125
|
+
export type DeployWatchOptions = {
|
|
126
|
+
branch?: string;
|
|
127
|
+
deploymentId?: string;
|
|
128
|
+
intervalMs?: number;
|
|
129
|
+
timeoutMs?: number;
|
|
130
|
+
forceRefresh?: boolean;
|
|
131
|
+
onLog?: (log: DeploymentLogEntry) => void;
|
|
132
|
+
onStatus?: (status: string | null) => void;
|
|
133
|
+
};
|
|
134
|
+
export type TemplateTargetOptions = {
|
|
135
|
+
forceRefresh?: boolean;
|
|
136
|
+
};
|
|
137
|
+
export type TemplateUpdateOptions = {
|
|
138
|
+
environment?: TemplateDeployLatestRequest["environment"];
|
|
139
|
+
forceRefresh?: boolean;
|
|
140
|
+
};
|
|
141
|
+
export type AppsListOptions = {
|
|
142
|
+
handle?: string;
|
|
143
|
+
forceRefresh?: boolean;
|
|
144
|
+
};
|
|
145
|
+
export type AppsToolsOptions = {
|
|
146
|
+
forceRefresh?: boolean;
|
|
147
|
+
};
|
|
148
|
+
export type AppsPerformanceOptions = {
|
|
149
|
+
appId?: string;
|
|
150
|
+
};
|
|
151
|
+
export type AppSummaryOptions = {
|
|
152
|
+
appId: string;
|
|
153
|
+
};
|
|
154
|
+
export type AppSchedulesOptions = {
|
|
155
|
+
appId: string;
|
|
156
|
+
};
|
|
157
|
+
export type AppSchedulesStartOptions = {
|
|
158
|
+
appId: string;
|
|
159
|
+
} & ScheduleToggleRequest;
|
|
160
|
+
export type AppSchedulesStopOptions = {
|
|
161
|
+
appId: string;
|
|
162
|
+
};
|
|
163
|
+
export type ScheduleRunNowOptions = ScheduleRunNowRequest;
|
|
164
|
+
export type ScheduleDeleteOptions = {
|
|
165
|
+
appId: string;
|
|
166
|
+
scheduleId: string;
|
|
167
|
+
};
|
|
168
|
+
export type ScheduleExecutionLogsOptions = {
|
|
169
|
+
scheduleId: string;
|
|
170
|
+
limit?: number;
|
|
171
|
+
};
|
|
172
|
+
export type ScheduleExecutionLogOptions = {
|
|
173
|
+
runId: string;
|
|
174
|
+
};
|
|
175
|
+
export type DeploymentScheduleExecutionLogsOptions = {
|
|
176
|
+
deploymentId: string;
|
|
177
|
+
limit?: number;
|
|
178
|
+
};
|
|
179
|
+
export type AppExecutionTimelineOptions = {
|
|
180
|
+
appId: string;
|
|
181
|
+
limit?: number;
|
|
182
|
+
};
|
|
183
|
+
export type AppsAssistantRunOptions = {
|
|
184
|
+
appId: string;
|
|
185
|
+
mode: AssistantMode;
|
|
186
|
+
prompt: string;
|
|
187
|
+
};
|
|
188
|
+
export type ExecuteUserToolOptions = {
|
|
189
|
+
appId: string;
|
|
190
|
+
deploymentId: string;
|
|
191
|
+
toolName: string;
|
|
192
|
+
scheduleId?: string;
|
|
193
|
+
method?: ToolExecuteRequest["method"];
|
|
194
|
+
body?: unknown;
|
|
195
|
+
headers?: Record<string, string>;
|
|
196
|
+
notifyEmail?: boolean;
|
|
197
|
+
};
|
|
198
|
+
export type AppEnvironmentSetOptions = {
|
|
199
|
+
appId: string;
|
|
200
|
+
envVars: Record<string, string>;
|
|
201
|
+
};
|
|
202
|
+
export type AppEnvironmentGetOptions = {
|
|
203
|
+
appId: string;
|
|
204
|
+
};
|
|
205
|
+
export type AppDeployOptions = {
|
|
206
|
+
appId: string;
|
|
207
|
+
environment?: "preview" | "production";
|
|
208
|
+
commitSha?: string;
|
|
209
|
+
branch?: string;
|
|
210
|
+
};
|
|
211
|
+
export type AppPromotePreviewOptions = {
|
|
212
|
+
appId: string;
|
|
213
|
+
} & PromotePreviewToProductionRequest;
|
|
214
|
+
export type AppStartOptions = {
|
|
215
|
+
appId: string;
|
|
216
|
+
} & StartAppLifecycleRequest;
|
|
217
|
+
export type PositionsTxOptions = {
|
|
218
|
+
method?: "GET" | "POST";
|
|
219
|
+
body?: unknown;
|
|
220
|
+
params?: Record<string, unknown>;
|
|
221
|
+
query?: Record<string, string>;
|
|
222
|
+
};
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type { StreamCallbacks } from "./stream.js";
|
|
2
|
+
export type { AssistantMode, AssistantRunResponse, AgentCreateRequest, AppEnvironmentGetResponse, AppEnvironmentUpdateRequest, AppEnvironmentUpdateResponse, AppExecutionDeployment, AppExecutionTimelineResponse, AppExecutionToolRun, AppListItem, AppRuntimeSummary, AppSchedule, AppScheduleSummary, AppSchedulesResponse, CreateRepoRequest, CreateRepoResponse, DeploymentDetail, DeploymentLogEntry, OpenPondAccount, OpenPondAccountBalanceResponse, OpenPondAccountProduct, OpenPondAccountResponse, OpenPondApiHealth, OpenPondApiHealthResponse, OpenToolRecipe, OpenToolRecipeDomain, OpenToolRecipeGetRequest, OpenToolRecipeListRequest, OpenToolRecipeListResponse, OpenToolRecipeSearchRequest, OpenToolRecipeSearchResponse, OpenToolRecipeSummary, OpenToolRulesGetRequest, OpenToolRulesGetResponse, PromotePreviewToProductionRequest, PromotePreviewToProductionResponse, ScheduleDeleteResponse, ScheduleExecutionLog, ScheduleExecutionLogsResponse, ScheduleRunNowRequest, ScheduleRunNowResponse, ScheduleToggleRequest, ScheduleToggleResult, StartAppLifecycleRequest, StartAppLifecycleResponse, TemplateBranchesResponse, TemplateDeployLatestRequest, TemplateDeployLatestResponse, TemplateStatusResponse, ToolExecuteRequest, ToolExecuteResponse, } from "./api.js";
|
|
3
|
+
export type { ChatRequestBody, ResponseItem, ResponseMessageItem, TemplateBootstrap, ToolCallItem, ToolOutputItem, UsageInfo, } from "./types.js";
|
|
4
|
+
export type { HostedChatCompletion, HostedChatContinuation, HostedChatMessage, HostedChatRequestOptions, HostedChatRole, HostedChatStreamDelta, HostedChatTool, HostedChatToolCall, HostedChatToolChoice, HostedChatUsage, HostedChatApiBaseUrlOptions, HostedModel, HostedModelRequestOptions, HostedModelsRequestOptions, HostedModelsResponse, HostedProvider, HostedProviderRequestOptions, HostedProvidersRequestOptions, HostedProvidersResponse, } from "./hosted-chat.js";
|
|
5
|
+
export type { OpChatCompletionSummary, OpChatSmokeOptions, OpChatSmokeSummary, OpChatStreamSummary, OpChatToolSummary, } from "./opchat-smoke.js";
|
|
6
|
+
export type { Bar as IndicatorBar, BollingerResult, MacdResult, MaCrossResult, MaCrossSignal, PriceChangeResult, } from "./indicators.js";
|
|
7
|
+
export { apiFetch, checkOpenPondApiHealth, getAppRuntimeSummary, commitFiles, createAgentFromPrompt, createRepo, createHeadlessApps, createLocalProject, deleteOrArchiveSchedule, deployApp, deployLatestTemplate, getAppEnvironment, getAppExecutionTimeline, getScheduleExecutionLog, updateAppEnvironment, executeHostedTool, executeUserTool, fetchToolManifest, getDeploymentDetail, getDeploymentLogs, getDeploymentStatus, getLatestDeploymentForApp, getOpenPondAccount, getOpenPondAccountBalance, getOpenToolRecipe, getOpenToolRules, getTemplateStatus, getUserPerformance, runAssistantMode, listApps, listAppSchedules, listDeploymentScheduleExecutionLogs, listOpenToolRecipes, listScheduleExecutionLogs, listTemplateBranches, listUserTools, postAgentDigest, promotePreviewToProduction, resolveWorkerBaseUrl, runScheduleNow, searchOpenToolRecipes, startAppLifecycle, startAppSchedules, stopAppSchedules, stopCurrentAppSchedules, submitPositionsTx, } from "./api.js";
|
|
8
|
+
export { DEFAULT_OPENPOND_API_BASE_URL, DEFAULT_OPENPOND_CHAT_API_BASE_URL, DEFAULT_OPENPOND_OPCHAT_API_BASE_URL, DEFAULT_OPENPOND_WEB_BASE_URL, } from "./urls.js";
|
|
9
|
+
export { getOpChatModel, getOpChatProvider, listOpChatModels, listOpChatProviders, listHostedModels, listHostedProviders, resolveHostedChatApiBaseUrl, resolveOpChatApiBaseUrl, sendHostedChatTurn, streamHostedChatTurn, } from "./hosted-chat.js";
|
|
10
|
+
export { runOpChatSmoke } from "./opchat-smoke.js";
|
|
11
|
+
export { computeAtr, computeBollinger, computeEma, computeEmaSeries, computeMacd, computeMaCross, computePriceChange, computeRsi, computeSma, computeSmaSeries, } from "./indicators.js";
|
|
12
|
+
export { DEFAULT_CACHE_TTL_MS, getCachedApps, getCachedTools, setCachedApps, setCachedTools, } from "./cache.js";
|
|
13
|
+
export { getConfigPath, listConfiguredProfiles, loadConfig, loadGlobalConfig, saveConfig, saveGlobalConfig, saveProfileApiKey, setActiveProfile, } from "./config.js";
|
|
14
|
+
export type { ActiveProfileSelector, ConfiguredProfile, LocalConfig, SaveProfileApiKeyInput, SetActiveProfileOptions, } from "./config.js";
|
|
15
|
+
export { consumeStream, formatStreamItem, normalizeDataFrames } from "./stream.js";
|
|
16
|
+
export type { OpenPondClientOptions, ToolSummary, ToolListResult, DeploymentWatchResult, AgentCreateStreamCallbacks, AgentCreateStreamResult, OpenPondClient, ToolListOptions, ToolRunOptions, DeployWatchOptions, TemplateTargetOptions, TemplateUpdateOptions, AppsListOptions, AppsToolsOptions, AppsPerformanceOptions, AppSummaryOptions, AppSchedulesOptions, AppSchedulesStartOptions, AppSchedulesStopOptions, ScheduleRunNowOptions, ScheduleDeleteOptions, ScheduleExecutionLogsOptions, ScheduleExecutionLogOptions, DeploymentScheduleExecutionLogsOptions, AppExecutionTimelineOptions, AppsAssistantRunOptions, ExecuteUserToolOptions, AppEnvironmentSetOptions, AppEnvironmentGetOptions, AppDeployOptions, AppPromotePreviewOptions, AppStartOptions, PositionsTxOptions, } from "./client-types.js";
|
|
17
|
+
import type { OpenPondClientOptions, AgentCreateStreamCallbacks, AgentCreateStreamResult, OpenPondClient } from "./client-types.js";
|
|
18
|
+
export declare function consumeAgentCreateStream(response: Response, callbacks?: AgentCreateStreamCallbacks): Promise<AgentCreateStreamResult>;
|
|
19
|
+
export declare function createClient(options: OpenPondClientOptions): OpenPondClient;
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
export type LocalSessionConfig = {
|
|
2
|
+
token?: string;
|
|
3
|
+
appId?: string | null;
|
|
4
|
+
conversationId?: string | null;
|
|
5
|
+
};
|
|
6
|
+
export type LocalAccountConfig = {
|
|
7
|
+
handle: string;
|
|
8
|
+
apiKey?: string;
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
apiBaseUrl?: string;
|
|
11
|
+
chatApiBaseUrl?: string;
|
|
12
|
+
environment?: string;
|
|
13
|
+
session?: LocalSessionConfig;
|
|
14
|
+
};
|
|
15
|
+
export type ActiveProfileSelector = {
|
|
16
|
+
handle: string;
|
|
17
|
+
baseUrl?: string | null;
|
|
18
|
+
};
|
|
19
|
+
export type LocalOpenPondProfileCheckStatus = {
|
|
20
|
+
command: "inspect" | "build" | "validate" | "eval" | "run";
|
|
21
|
+
status: "passed" | "failed";
|
|
22
|
+
checkedAt: string;
|
|
23
|
+
exitCode?: number | null;
|
|
24
|
+
sourceHead?: string | null;
|
|
25
|
+
};
|
|
26
|
+
export type LocalOpenPondProfileHostedSourceCheckStatus = {
|
|
27
|
+
status: string;
|
|
28
|
+
agentId?: string | null;
|
|
29
|
+
workItemId?: string | null;
|
|
30
|
+
deployPlanStatus?: string | null;
|
|
31
|
+
canRun?: boolean | null;
|
|
32
|
+
canDeploy?: boolean | null;
|
|
33
|
+
sourceRef?: string | null;
|
|
34
|
+
sourceCommitSha?: string | null;
|
|
35
|
+
manifestHash?: string | null;
|
|
36
|
+
manifestPath?: string | null;
|
|
37
|
+
setupCommands?: string[];
|
|
38
|
+
validationCommands?: string[];
|
|
39
|
+
requiredChecks?: string[];
|
|
40
|
+
evalNames?: string[];
|
|
41
|
+
blockedReasons?: string[];
|
|
42
|
+
staleReasons?: string[];
|
|
43
|
+
runtimeId?: string | null;
|
|
44
|
+
sandboxId?: string | null;
|
|
45
|
+
traceArtifactRefs?: string[];
|
|
46
|
+
evalResultArtifactRefs?: string[];
|
|
47
|
+
validatorArtifactRefs?: string[];
|
|
48
|
+
checkedAt?: string | null;
|
|
49
|
+
error?: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type LocalOpenPondProfileHostedMaterializationStatus = {
|
|
52
|
+
status: string;
|
|
53
|
+
agentId?: string | null;
|
|
54
|
+
runtimeAgentId?: string | null;
|
|
55
|
+
projectId?: string | null;
|
|
56
|
+
sourceRoot?: string | null;
|
|
57
|
+
sourceRef?: string | null;
|
|
58
|
+
sourceCommitSha?: string | null;
|
|
59
|
+
manifestHash?: string | null;
|
|
60
|
+
manifestPath?: string | null;
|
|
61
|
+
manifestSyncedAt?: string | null;
|
|
62
|
+
fileCount?: number | null;
|
|
63
|
+
totalBytes?: number | null;
|
|
64
|
+
generatedManifestPath?: string | null;
|
|
65
|
+
synthesizedOpenPondYaml?: boolean | null;
|
|
66
|
+
uploadMetadataPath?: string | null;
|
|
67
|
+
setupCommands?: string[];
|
|
68
|
+
validationCommands?: string[];
|
|
69
|
+
materializedAt?: string | null;
|
|
70
|
+
error?: string | null;
|
|
71
|
+
};
|
|
72
|
+
export type LocalOpenPondProfileHostedPublishStatus = {
|
|
73
|
+
status: string;
|
|
74
|
+
agentId?: string | null;
|
|
75
|
+
snapshotId?: string | null;
|
|
76
|
+
sourceRef?: string | null;
|
|
77
|
+
sourceCommitSha?: string | null;
|
|
78
|
+
manifestHash?: string | null;
|
|
79
|
+
manifestPath?: string | null;
|
|
80
|
+
buildStatus?: string | null;
|
|
81
|
+
validationStatus?: string | null;
|
|
82
|
+
evalStatus?: string | null;
|
|
83
|
+
publishedAt?: string | null;
|
|
84
|
+
error?: string | null;
|
|
85
|
+
};
|
|
86
|
+
export type LocalOpenPondProfileHostedRunSummary = {
|
|
87
|
+
status: string;
|
|
88
|
+
agentId?: string | null;
|
|
89
|
+
runId?: string | null;
|
|
90
|
+
runtimeId?: string | null;
|
|
91
|
+
sandboxId?: string | null;
|
|
92
|
+
sourceRef?: string | null;
|
|
93
|
+
sourceCommitSha?: string | null;
|
|
94
|
+
manifestHash?: string | null;
|
|
95
|
+
setupGateStatus?: string | null;
|
|
96
|
+
setupRequirementRefs?: string[];
|
|
97
|
+
artifactRefs?: string[];
|
|
98
|
+
traceArtifactRefs?: string[];
|
|
99
|
+
evalArtifactRefs?: string[];
|
|
100
|
+
startedAt?: string | null;
|
|
101
|
+
completedAt?: string | null;
|
|
102
|
+
error?: string | null;
|
|
103
|
+
};
|
|
104
|
+
export type LocalOpenPondProfilePushStatus = {
|
|
105
|
+
status: "pushed" | "failed";
|
|
106
|
+
promotionStatus?: "uploaded" | "hosted_source_materialized" | "hosted_source_materialize_failed" | "hosted_source_check_pending" | "hosted_source_check_failed" | "hosted_source_published" | "hosted_source_publish_failed" | "hosted_run_pending" | "hosted_run_passed" | "hosted_run_failed" | null;
|
|
107
|
+
hostedRunStatus?: "not_started" | "running" | "passed" | "failed" | null;
|
|
108
|
+
pushedAt: string;
|
|
109
|
+
teamId?: string | null;
|
|
110
|
+
projectId?: string | null;
|
|
111
|
+
localHead?: string | null;
|
|
112
|
+
hostedHead?: string | null;
|
|
113
|
+
sourceRef?: string | null;
|
|
114
|
+
localGoalId?: string | null;
|
|
115
|
+
hostedGoalId?: string | null;
|
|
116
|
+
hostedRunAgentId?: string | null;
|
|
117
|
+
hostedRunId?: string | null;
|
|
118
|
+
hostedRunAt?: string | null;
|
|
119
|
+
hostedSourceMaterialization?: LocalOpenPondProfileHostedMaterializationStatus | null;
|
|
120
|
+
hostedSourceCheck?: LocalOpenPondProfileHostedSourceCheckStatus | null;
|
|
121
|
+
hostedPublish?: LocalOpenPondProfileHostedPublishStatus | null;
|
|
122
|
+
hostedRun?: LocalOpenPondProfileHostedRunSummary | null;
|
|
123
|
+
error?: string | null;
|
|
124
|
+
};
|
|
125
|
+
export type LocalOpenPondProfileConfig = {
|
|
126
|
+
repoPath: string;
|
|
127
|
+
profile: string;
|
|
128
|
+
mode: "local";
|
|
129
|
+
lastCheck?: LocalOpenPondProfileCheckStatus;
|
|
130
|
+
lastPush?: LocalOpenPondProfilePushStatus;
|
|
131
|
+
};
|
|
132
|
+
export type LocalGoalStorageLocation = "global" | "workspace";
|
|
133
|
+
export type LocalConfig = {
|
|
134
|
+
accounts?: LocalAccountConfig[];
|
|
135
|
+
activeProfile?: ActiveProfileSelector;
|
|
136
|
+
openpondProfile?: LocalOpenPondProfileConfig;
|
|
137
|
+
goalStorageLocation?: LocalGoalStorageLocation;
|
|
138
|
+
baseUrl?: string;
|
|
139
|
+
apiBaseUrl?: string;
|
|
140
|
+
chatApiBaseUrl?: string;
|
|
141
|
+
apiKey?: string;
|
|
142
|
+
token?: string;
|
|
143
|
+
appId?: string | null;
|
|
144
|
+
conversationId?: string | null;
|
|
145
|
+
lspEnabled?: boolean;
|
|
146
|
+
executionMode?: "local" | "hosted";
|
|
147
|
+
mode?: "general" | "builder";
|
|
148
|
+
};
|
|
149
|
+
export type ConfiguredProfile = {
|
|
150
|
+
handle: string;
|
|
151
|
+
baseUrl: string | null;
|
|
152
|
+
apiBaseUrl: string | null;
|
|
153
|
+
chatApiBaseUrl: string | null;
|
|
154
|
+
environment: string | null;
|
|
155
|
+
isActive: boolean;
|
|
156
|
+
hasApiKey: boolean;
|
|
157
|
+
hasSessionToken: boolean;
|
|
158
|
+
sessionAppId: string | null;
|
|
159
|
+
sessionConversationId: string | null;
|
|
160
|
+
};
|
|
161
|
+
export type SetActiveProfileOptions = {
|
|
162
|
+
baseUrl?: string | null;
|
|
163
|
+
};
|
|
164
|
+
export type SaveProfileApiKeyInput = {
|
|
165
|
+
handle: string;
|
|
166
|
+
apiKey: string;
|
|
167
|
+
baseUrl?: string | null;
|
|
168
|
+
apiBaseUrl?: string | null;
|
|
169
|
+
chatApiBaseUrl?: string | null;
|
|
170
|
+
environment?: string | null;
|
|
171
|
+
setActive?: boolean;
|
|
172
|
+
};
|
|
173
|
+
export type LoadConfigOptions = {
|
|
174
|
+
account?: string;
|
|
175
|
+
baseUrl?: string;
|
|
176
|
+
};
|
|
177
|
+
export declare function getConfigPath(): string;
|
|
178
|
+
export declare function loadGlobalConfig(): Promise<LocalConfig>;
|
|
179
|
+
export declare function loadConfig(options?: LoadConfigOptions): Promise<LocalConfig>;
|
|
180
|
+
export declare function listConfiguredProfiles(): Promise<ConfiguredProfile[]>;
|
|
181
|
+
export declare function setActiveProfile(handle: string, options?: SetActiveProfileOptions): Promise<ConfiguredProfile>;
|
|
182
|
+
export declare function saveProfileApiKey(input: SaveProfileApiKeyInput): Promise<ConfiguredProfile>;
|
|
183
|
+
export declare function saveConfig(next: LocalConfig): Promise<void>;
|
|
184
|
+
export declare function saveGlobalConfig(next: LocalConfig): Promise<void>;
|