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,205 @@
|
|
|
1
|
+
import type { SandboxCommand, SandboxState } from "./index.js";
|
|
2
|
+
export type SandboxSnapshotTemplateVisibility = "private" | "team";
|
|
3
|
+
export type SandboxSnapshotTemplateInput = {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
tags?: string[];
|
|
8
|
+
visibility?: SandboxSnapshotTemplateVisibility;
|
|
9
|
+
useCase?: string;
|
|
10
|
+
};
|
|
11
|
+
export type SandboxSnapshotTemplate = {
|
|
12
|
+
name: string;
|
|
13
|
+
version: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
tags: string[];
|
|
16
|
+
visibility: SandboxSnapshotTemplateVisibility;
|
|
17
|
+
useCase: string | null;
|
|
18
|
+
};
|
|
19
|
+
export type SandboxSnapshotReplayRetentionClass = "ephemeral" | "cached" | "pinned";
|
|
20
|
+
export type SandboxSnapshotReplayState = "draft" | "validated" | "published";
|
|
21
|
+
export type SandboxSnapshotReplayManifest = {
|
|
22
|
+
state: SandboxSnapshotReplayState;
|
|
23
|
+
retention: {
|
|
24
|
+
class: SandboxSnapshotReplayRetentionClass;
|
|
25
|
+
ttlSeconds: number | null;
|
|
26
|
+
};
|
|
27
|
+
metadata?: Record<string, unknown>;
|
|
28
|
+
};
|
|
29
|
+
export type SandboxSnapshotValidationCommandResult = {
|
|
30
|
+
command: string;
|
|
31
|
+
cwd: string | null;
|
|
32
|
+
status: SandboxCommand["status"];
|
|
33
|
+
exitCode: number | null;
|
|
34
|
+
output: string;
|
|
35
|
+
startedAt: string;
|
|
36
|
+
completedAt: string | null;
|
|
37
|
+
};
|
|
38
|
+
export type SandboxSnapshotValidationProbeResult = {
|
|
39
|
+
name: string | null;
|
|
40
|
+
port: number;
|
|
41
|
+
path: string;
|
|
42
|
+
expectedStatus: number;
|
|
43
|
+
actualStatus: number | null;
|
|
44
|
+
ok: boolean;
|
|
45
|
+
error: string | null;
|
|
46
|
+
startedAt: string;
|
|
47
|
+
completedAt: string | null;
|
|
48
|
+
};
|
|
49
|
+
export type SandboxSnapshotValidationResult = {
|
|
50
|
+
id: string;
|
|
51
|
+
status: "passed" | "failed";
|
|
52
|
+
sourceSandboxId: string;
|
|
53
|
+
validationSandboxId: string | null;
|
|
54
|
+
snapshotId: string;
|
|
55
|
+
commands: SandboxSnapshotValidationCommandResult[];
|
|
56
|
+
probes: SandboxSnapshotValidationProbeResult[];
|
|
57
|
+
cleanup: {
|
|
58
|
+
action: "stop" | "delete" | "archive";
|
|
59
|
+
status: "succeeded" | "failed" | "skipped";
|
|
60
|
+
error: string | null;
|
|
61
|
+
};
|
|
62
|
+
error: string | null;
|
|
63
|
+
startedAt: string;
|
|
64
|
+
completedAt: string;
|
|
65
|
+
};
|
|
66
|
+
export type SandboxSnapshotValidateInput = {
|
|
67
|
+
cleanup?: "stop" | "delete" | "archive";
|
|
68
|
+
};
|
|
69
|
+
export type SandboxSnapshotTemplateUpdateInput = {
|
|
70
|
+
description?: string | null;
|
|
71
|
+
tags?: string[];
|
|
72
|
+
visibility?: SandboxSnapshotTemplateVisibility;
|
|
73
|
+
useCase?: string | null;
|
|
74
|
+
};
|
|
75
|
+
export type SandboxSnapshotRetentionUpdateInput = {
|
|
76
|
+
class?: SandboxSnapshotReplayRetentionClass;
|
|
77
|
+
ttlSeconds?: number | null;
|
|
78
|
+
};
|
|
79
|
+
export type SandboxSnapshotUpdateInput = {
|
|
80
|
+
template?: SandboxSnapshotTemplateUpdateInput;
|
|
81
|
+
retention?: SandboxSnapshotRetentionUpdateInput;
|
|
82
|
+
};
|
|
83
|
+
export type SandboxSnapshotInput = Record<string, unknown>;
|
|
84
|
+
export type SandboxSnapshot = {
|
|
85
|
+
id: string;
|
|
86
|
+
sandboxId: string;
|
|
87
|
+
name: string;
|
|
88
|
+
state: "ready";
|
|
89
|
+
sizeGb: number;
|
|
90
|
+
template?: SandboxSnapshotTemplate | null;
|
|
91
|
+
replay?: SandboxSnapshotReplayManifest | null;
|
|
92
|
+
metadata?: Record<string, unknown>;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
};
|
|
95
|
+
export type SandboxSnapshotJob = {
|
|
96
|
+
id: string;
|
|
97
|
+
snapshotId: string;
|
|
98
|
+
name: string;
|
|
99
|
+
status: "queued" | "running" | "succeeded" | "failed";
|
|
100
|
+
error: string | null;
|
|
101
|
+
startedAt: string | null;
|
|
102
|
+
completedAt: string | null;
|
|
103
|
+
};
|
|
104
|
+
export type SandboxArchiveRef = {
|
|
105
|
+
id: string;
|
|
106
|
+
sandboxId: string;
|
|
107
|
+
snapshotId: string | null;
|
|
108
|
+
storage: "simulated" | "runner_local" | "s3";
|
|
109
|
+
createdAt: string;
|
|
110
|
+
restoredAt: string | null;
|
|
111
|
+
};
|
|
112
|
+
export type SandboxSnapshotCatalogEntry = {
|
|
113
|
+
id: string;
|
|
114
|
+
kind: "snapshot" | "archive";
|
|
115
|
+
sandboxId: string;
|
|
116
|
+
sandboxState: SandboxState;
|
|
117
|
+
sandboxRepo: string | null;
|
|
118
|
+
teamId: string;
|
|
119
|
+
projectId?: string | null;
|
|
120
|
+
agentId?: string | null;
|
|
121
|
+
name: string;
|
|
122
|
+
snapshot: SandboxSnapshot | null;
|
|
123
|
+
archive: SandboxArchiveRef | null;
|
|
124
|
+
sizeGb: number | null;
|
|
125
|
+
storage: SandboxArchiveRef["storage"] | "snapshot" | null;
|
|
126
|
+
storageCost?: {
|
|
127
|
+
sizeGb: number | null;
|
|
128
|
+
retentionClass: SandboxSnapshotReplayRetentionClass | null;
|
|
129
|
+
estimatedMonthlyUsd: string | null;
|
|
130
|
+
pricingSource: "configured" | "not_configured";
|
|
131
|
+
};
|
|
132
|
+
template: SandboxSnapshotTemplate | null;
|
|
133
|
+
replay?: SandboxSnapshotReplayManifest | null;
|
|
134
|
+
createdAt: string;
|
|
135
|
+
metadata?: Record<string, unknown>;
|
|
136
|
+
};
|
|
137
|
+
export type SandboxTemplateCatalogEntry = {
|
|
138
|
+
id: string;
|
|
139
|
+
snapshotId: string;
|
|
140
|
+
sandboxId: string;
|
|
141
|
+
sandboxState: SandboxState;
|
|
142
|
+
sandboxRepo: string | null;
|
|
143
|
+
teamId: string;
|
|
144
|
+
projectId: string | null;
|
|
145
|
+
agentId: string | null;
|
|
146
|
+
name: string;
|
|
147
|
+
version: string;
|
|
148
|
+
description: string | null;
|
|
149
|
+
tags: string[];
|
|
150
|
+
visibility: SandboxSnapshotTemplateVisibility;
|
|
151
|
+
useCase: string | null;
|
|
152
|
+
sizeGb: number | null;
|
|
153
|
+
source?: {
|
|
154
|
+
repo: string | null;
|
|
155
|
+
ref: string | null;
|
|
156
|
+
commitSha: string | null;
|
|
157
|
+
projectId: string | null;
|
|
158
|
+
agentId: string | null;
|
|
159
|
+
};
|
|
160
|
+
storageCost?: SandboxSnapshotCatalogEntry["storageCost"];
|
|
161
|
+
replay: SandboxSnapshotReplayManifest;
|
|
162
|
+
snapshot: SandboxSnapshot;
|
|
163
|
+
createdAt: string;
|
|
164
|
+
};
|
|
165
|
+
export type SandboxPublishedSnapshotCatalogEntry = SandboxTemplateCatalogEntry;
|
|
166
|
+
export type SandboxTemplateBuildStatus = "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
167
|
+
export type SandboxTemplateBuildPublishStatus = "skipped" | "published" | "failed";
|
|
168
|
+
export type SandboxTemplateBuildCreateInput = {
|
|
169
|
+
teamId?: string;
|
|
170
|
+
sourceRepoUrl?: string;
|
|
171
|
+
sourceProjectId?: string;
|
|
172
|
+
branch?: string;
|
|
173
|
+
manifestPath?: string;
|
|
174
|
+
publish?: boolean;
|
|
175
|
+
};
|
|
176
|
+
export type SandboxTemplateBuildRecord = {
|
|
177
|
+
id: string;
|
|
178
|
+
teamId: string;
|
|
179
|
+
sourceProjectId: string | null;
|
|
180
|
+
sourceRepoUrl: string;
|
|
181
|
+
sourceOwner: string;
|
|
182
|
+
sourceRepo: string;
|
|
183
|
+
sourceBranch: string;
|
|
184
|
+
sourceCommitSha: string | null;
|
|
185
|
+
manifestPath: string;
|
|
186
|
+
manifestHash: string | null;
|
|
187
|
+
manifest: Record<string, unknown> | null;
|
|
188
|
+
status: SandboxTemplateBuildStatus;
|
|
189
|
+
buildSandboxId: string | null;
|
|
190
|
+
snapshotId: string | null;
|
|
191
|
+
validationSandboxId: string | null;
|
|
192
|
+
validation: Record<string, unknown> | null;
|
|
193
|
+
publishStatus: SandboxTemplateBuildPublishStatus | null;
|
|
194
|
+
logs: string[];
|
|
195
|
+
error: string | null;
|
|
196
|
+
requestedByUserId: string;
|
|
197
|
+
startedAt: string | null;
|
|
198
|
+
completedAt: string | null;
|
|
199
|
+
createdAt: string | null;
|
|
200
|
+
updatedAt: string | null;
|
|
201
|
+
};
|
|
202
|
+
export type SandboxPublishedSnapshotBuildStatus = SandboxTemplateBuildStatus;
|
|
203
|
+
export type SandboxPublishedSnapshotBuildPublishStatus = SandboxTemplateBuildPublishStatus;
|
|
204
|
+
export type SandboxPublishedSnapshotBuildCreateInput = SandboxTemplateBuildCreateInput;
|
|
205
|
+
export type SandboxPublishedSnapshotBuildRecord = SandboxTemplateBuildRecord;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SandboxWorkflowMode = "readonly" | "attempt" | "feature" | "rollout" | "replay" | "template_build" | "scheduled_run" | "patch_only" | "hotfix" | "multi_feature_batch";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type SandboxWorkloadImageSourceInput = {
|
|
2
|
+
ref: string;
|
|
3
|
+
digest?: string;
|
|
4
|
+
registrySecretRef?: string;
|
|
5
|
+
platform?: "linux/amd64";
|
|
6
|
+
workspaceRoot?: string;
|
|
7
|
+
};
|
|
8
|
+
export type SandboxWorkloadDockerfileSourceInput = {
|
|
9
|
+
context: string;
|
|
10
|
+
path: string;
|
|
11
|
+
target?: string;
|
|
12
|
+
buildArgs?: Record<string, string>;
|
|
13
|
+
registrySecretRefs?: string[];
|
|
14
|
+
platform?: "linux/amd64";
|
|
15
|
+
workspaceRoot?: string;
|
|
16
|
+
};
|
|
17
|
+
export type SandboxWorkloadSourceInput = {
|
|
18
|
+
image?: SandboxWorkloadImageSourceInput;
|
|
19
|
+
dockerfile?: SandboxWorkloadDockerfileSourceInput;
|
|
20
|
+
};
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SANDBOX_TEMPLATE_PREVIEW_PORT_MIN = 3000;
|
|
3
|
+
export declare const SANDBOX_TEMPLATE_PREVIEW_PORT_MAX = 9999;
|
|
4
|
+
export declare const OPENPOND_MANIFEST_FILE_NAME = "openpond.yaml";
|
|
5
|
+
export declare const SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME = "openpond-template-plan.json";
|
|
6
|
+
export declare const SANDBOX_TEMPLATE_BUILD_PLAN_KIND = "openpond.sandboxTemplate.buildPlan.v1";
|
|
7
|
+
export declare const SandboxTemplateManifestSchema: z.ZodObject<{
|
|
8
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
version: z.ZodString;
|
|
11
|
+
useCase: z.ZodString;
|
|
12
|
+
description: z.ZodString;
|
|
13
|
+
runtime: z.ZodObject<{
|
|
14
|
+
base: z.ZodOptional<z.ZodString>;
|
|
15
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
16
|
+
image: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
ref: z.ZodString;
|
|
18
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
19
|
+
registrySecretRef: z.ZodOptional<z.ZodString>;
|
|
20
|
+
platform: z.ZodOptional<z.ZodLiteral<"linux/amd64">>;
|
|
21
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strict>>;
|
|
23
|
+
dockerfile: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
context: z.ZodDefault<z.ZodString>;
|
|
25
|
+
path: z.ZodDefault<z.ZodString>;
|
|
26
|
+
target: z.ZodOptional<z.ZodString>;
|
|
27
|
+
buildArgs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
|
+
registrySecretRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
+
platform: z.ZodOptional<z.ZodLiteral<"linux/amd64">>;
|
|
30
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
cpu: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
memoryGb: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
diskGb: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strict>>;
|
|
38
|
+
setup: z.ZodDefault<z.ZodObject<{
|
|
39
|
+
commands: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
validation: z.ZodObject<{
|
|
42
|
+
commands: z.ZodArray<z.ZodString>;
|
|
43
|
+
probes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
44
|
+
name: z.ZodOptional<z.ZodString>;
|
|
45
|
+
port: z.ZodNumber;
|
|
46
|
+
path: z.ZodDefault<z.ZodString>;
|
|
47
|
+
expectedStatus: z.ZodDefault<z.ZodNumber>;
|
|
48
|
+
}, z.core.$strict>>>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
start: z.ZodObject<{
|
|
51
|
+
command: z.ZodString;
|
|
52
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
53
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
requiresStart: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
ports: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
56
|
+
port: z.ZodNumber;
|
|
57
|
+
protocol: z.ZodDefault<z.ZodLiteral<"http">>;
|
|
58
|
+
label: z.ZodOptional<z.ZodString>;
|
|
59
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
60
|
+
private: "private";
|
|
61
|
+
public: "public";
|
|
62
|
+
}>>;
|
|
63
|
+
path: z.ZodDefault<z.ZodString>;
|
|
64
|
+
}, z.core.$strict>>>;
|
|
65
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
68
|
+
command: z.ZodString;
|
|
69
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
70
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
requiresStart: z.ZodDefault<z.ZodBoolean>;
|
|
72
|
+
ports: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
73
|
+
port: z.ZodNumber;
|
|
74
|
+
protocol: z.ZodDefault<z.ZodLiteral<"http">>;
|
|
75
|
+
label: z.ZodOptional<z.ZodString>;
|
|
76
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
77
|
+
private: "private";
|
|
78
|
+
public: "public";
|
|
79
|
+
}>>;
|
|
80
|
+
path: z.ZodDefault<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>>>;
|
|
82
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
}, z.core.$strict>>>;
|
|
85
|
+
services: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
+
command: z.ZodString;
|
|
87
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
88
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
requiresStart: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
ports: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
91
|
+
port: z.ZodNumber;
|
|
92
|
+
protocol: z.ZodDefault<z.ZodLiteral<"http">>;
|
|
93
|
+
label: z.ZodOptional<z.ZodString>;
|
|
94
|
+
access: z.ZodDefault<z.ZodEnum<{
|
|
95
|
+
private: "private";
|
|
96
|
+
public: "public";
|
|
97
|
+
}>>;
|
|
98
|
+
path: z.ZodDefault<z.ZodString>;
|
|
99
|
+
}, z.core.$strict>>>;
|
|
100
|
+
artifactPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
}, z.core.$strict>>>;
|
|
103
|
+
schedules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
description: z.ZodOptional<z.ZodString>;
|
|
106
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
107
|
+
rate: z.ZodOptional<z.ZodString>;
|
|
108
|
+
once: z.ZodOptional<z.ZodString>;
|
|
109
|
+
scheduleType: z.ZodOptional<z.ZodEnum<{
|
|
110
|
+
rate: "rate";
|
|
111
|
+
cron: "cron";
|
|
112
|
+
once: "once";
|
|
113
|
+
}>>;
|
|
114
|
+
scheduleExpression: z.ZodOptional<z.ZodString>;
|
|
115
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
116
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
+
startAt: z.ZodOptional<z.ZodString>;
|
|
118
|
+
endAt: z.ZodOptional<z.ZodString>;
|
|
119
|
+
maxRuns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
120
|
+
runtimePolicy: z.ZodDefault<z.ZodEnum<{
|
|
121
|
+
run_and_stop: "run_and_stop";
|
|
122
|
+
run_and_archive: "run_and_archive";
|
|
123
|
+
run_and_delete: "run_and_delete";
|
|
124
|
+
use_existing_running: "use_existing_running";
|
|
125
|
+
}>>;
|
|
126
|
+
action: z.ZodOptional<z.ZodString>;
|
|
127
|
+
actionName: z.ZodOptional<z.ZodString>;
|
|
128
|
+
command: z.ZodOptional<z.ZodString>;
|
|
129
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
action: "action";
|
|
132
|
+
service: "service";
|
|
133
|
+
command: "command";
|
|
134
|
+
start: "start";
|
|
135
|
+
}>>;
|
|
136
|
+
name: z.ZodOptional<z.ZodString>;
|
|
137
|
+
actionName: z.ZodOptional<z.ZodString>;
|
|
138
|
+
command: z.ZodOptional<z.ZodString>;
|
|
139
|
+
requiresStart: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
requiresStart: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
budget: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
maxUsd: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
cpu: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
memoryGb: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
diskGb: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
150
|
+
quotas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
151
|
+
lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
152
|
+
retentionPolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
153
|
+
env: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
154
|
+
name: z.ZodString;
|
|
155
|
+
value: z.ZodOptional<z.ZodString>;
|
|
156
|
+
secretRef: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, z.core.$strict>>>;
|
|
158
|
+
integrationLeases: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
159
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
160
|
+
}, z.core.$strict>>>;
|
|
161
|
+
mcp: z.ZodDefault<z.ZodObject<{
|
|
162
|
+
endpoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
163
|
+
name: z.ZodOptional<z.ZodString>;
|
|
164
|
+
service: z.ZodOptional<z.ZodString>;
|
|
165
|
+
port: z.ZodNumber;
|
|
166
|
+
path: z.ZodDefault<z.ZodString>;
|
|
167
|
+
}, z.core.$strict>>>;
|
|
168
|
+
}, z.core.$strict>>;
|
|
169
|
+
volumes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
170
|
+
name: z.ZodOptional<z.ZodString>;
|
|
171
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
172
|
+
storageGb: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
deleteOnSandboxDelete: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
+
}, z.core.$strict>>>;
|
|
175
|
+
integrations: z.ZodDefault<z.ZodObject<{
|
|
176
|
+
requiredLeases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
177
|
+
provider: z.ZodEnum<{
|
|
178
|
+
google: "google";
|
|
179
|
+
github: "github";
|
|
180
|
+
x: "x";
|
|
181
|
+
}>;
|
|
182
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
183
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
184
|
+
}, z.core.$strict>>>;
|
|
185
|
+
}, z.core.$strict>>;
|
|
186
|
+
permissions: z.ZodDefault<z.ZodObject<{
|
|
187
|
+
opchat: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
models: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
189
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
190
|
+
}, z.core.$strict>>;
|
|
191
|
+
}, z.core.$catchall<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
192
|
+
inputs: z.ZodDefault<z.ZodObject<{
|
|
193
|
+
schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
194
|
+
env: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
197
|
+
secret: z.ZodDefault<z.ZodBoolean>;
|
|
198
|
+
description: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strict>>>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
201
|
+
artifacts: z.ZodDefault<z.ZodObject<{
|
|
202
|
+
paths: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
network: z.ZodDefault<z.ZodObject<{
|
|
205
|
+
egress: z.ZodDefault<z.ZodEnum<{
|
|
206
|
+
block: "block";
|
|
207
|
+
restricted: "restricted";
|
|
208
|
+
allow: "allow";
|
|
209
|
+
}>>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
export type SandboxTemplateManifest = z.infer<typeof SandboxTemplateManifestSchema>;
|
|
213
|
+
export type SandboxTemplateResources = NonNullable<SandboxTemplateManifest["resources"]>;
|
|
214
|
+
export type SandboxTemplatePort = SandboxTemplateManifest["start"]["ports"][number];
|
|
215
|
+
export type SandboxTemplateCommand = SandboxTemplateManifest["start"];
|
|
216
|
+
export type SandboxTemplateNamedCommand = SandboxTemplateManifest["actions"][number];
|
|
217
|
+
export type SandboxTemplateSchedule = SandboxTemplateManifest["schedules"][number];
|
|
218
|
+
export type SandboxTemplateVolume = SandboxTemplateManifest["volumes"][number];
|
|
219
|
+
export type SandboxTemplateExecutableKind = "start" | "action" | "service";
|
|
220
|
+
export type SandboxTemplateExecutable = SandboxTemplateCommand & {
|
|
221
|
+
kind: SandboxTemplateExecutableKind;
|
|
222
|
+
name: string;
|
|
223
|
+
};
|
|
224
|
+
export type SandboxTemplateBuildPlan = {
|
|
225
|
+
kind: typeof SANDBOX_TEMPLATE_BUILD_PLAN_KIND;
|
|
226
|
+
schemaVersion: 1;
|
|
227
|
+
manifestFile: string;
|
|
228
|
+
projectRoot: string;
|
|
229
|
+
manifest: SandboxTemplateManifest;
|
|
230
|
+
metadata: Record<string, unknown>;
|
|
231
|
+
executables: SandboxTemplateExecutable[];
|
|
232
|
+
};
|
|
233
|
+
export type SandboxTemplateValidationDiagnostic = {
|
|
234
|
+
path: string;
|
|
235
|
+
message: string;
|
|
236
|
+
code: string;
|
|
237
|
+
};
|
|
238
|
+
export type SandboxTemplateValidationResult = {
|
|
239
|
+
ok: true;
|
|
240
|
+
manifest: SandboxTemplateManifest;
|
|
241
|
+
diagnostics: [];
|
|
242
|
+
} | {
|
|
243
|
+
ok: false;
|
|
244
|
+
manifest: null;
|
|
245
|
+
diagnostics: SandboxTemplateValidationDiagnostic[];
|
|
246
|
+
};
|
|
247
|
+
export declare const SandboxTemplateValidationDiagnosticSchema: z.ZodObject<{
|
|
248
|
+
path: z.ZodString;
|
|
249
|
+
message: z.ZodString;
|
|
250
|
+
code: z.ZodString;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
export declare function validateSandboxTemplateYaml(source: string): SandboxTemplateValidationResult;
|
|
253
|
+
export declare function validateSandboxTemplateManifest(value: unknown): SandboxTemplateValidationResult;
|
|
254
|
+
export declare function parseSandboxTemplateYaml(source: string): SandboxTemplateManifest;
|
|
255
|
+
export declare function formatSandboxTemplateDiagnostics(diagnostics: SandboxTemplateValidationDiagnostic[]): string;
|
|
256
|
+
export declare function defineSandboxTemplate<T extends SandboxTemplateManifest>(template: T): T;
|
|
257
|
+
export declare function sandboxTemplateResources(resources?: Partial<SandboxTemplateResources>): SandboxTemplateResources;
|
|
258
|
+
export declare function sandboxTemplateDurableVolume(volume: SandboxTemplateVolume): SandboxTemplateVolume;
|
|
259
|
+
export declare function sandboxTemplatePreviewPort(port: number, options?: Omit<Partial<SandboxTemplatePort>, "port">): SandboxTemplatePort;
|
|
260
|
+
export type SandboxTemplateFileInputOptions = {
|
|
261
|
+
targetPath: string;
|
|
262
|
+
title?: string;
|
|
263
|
+
description?: string;
|
|
264
|
+
accept?: string[];
|
|
265
|
+
multiple?: boolean;
|
|
266
|
+
};
|
|
267
|
+
export type SandboxTemplateFileInputSchema = {
|
|
268
|
+
type: "string";
|
|
269
|
+
format: "file";
|
|
270
|
+
title?: string;
|
|
271
|
+
description?: string;
|
|
272
|
+
"x-openpond-upload": {
|
|
273
|
+
targetPath: string;
|
|
274
|
+
accept?: string[];
|
|
275
|
+
multiple?: false;
|
|
276
|
+
};
|
|
277
|
+
} | {
|
|
278
|
+
type: "array";
|
|
279
|
+
title?: string;
|
|
280
|
+
description?: string;
|
|
281
|
+
items: {
|
|
282
|
+
type: "string";
|
|
283
|
+
format: "file";
|
|
284
|
+
};
|
|
285
|
+
"x-openpond-upload": {
|
|
286
|
+
targetPath: string;
|
|
287
|
+
accept?: string[];
|
|
288
|
+
multiple: true;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
export declare function sandboxTemplateFileInput(options: SandboxTemplateFileInputOptions): SandboxTemplateFileInputSchema;
|
|
292
|
+
export declare function sandboxTemplateExecutableEntries(manifest: SandboxTemplateManifest): SandboxTemplateExecutable[];
|
|
293
|
+
export declare function sandboxTemplateBuildMetadata(manifest: SandboxTemplateManifest): Record<string, unknown>;
|
|
294
|
+
export declare function sandboxTemplateBuildPlan(input: {
|
|
295
|
+
manifest: SandboxTemplateManifest;
|
|
296
|
+
manifestFile: string;
|
|
297
|
+
projectRoot: string;
|
|
298
|
+
}): SandboxTemplateBuildPlan;
|
|
299
|
+
export type SandboxTemplateScaffoldInput = {
|
|
300
|
+
name: string;
|
|
301
|
+
description?: string;
|
|
302
|
+
};
|
|
303
|
+
export declare function sandboxTemplateScaffoldFiles(input: SandboxTemplateScaffoldInput): Record<string, string>;
|
|
304
|
+
export declare function sandboxTemplateJsonSchema(): Record<string, unknown>;
|