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,348 @@
|
|
|
1
|
+
import { OpenPondSandboxInstanceClient } from "./sandbox-instance-client.js";
|
|
2
|
+
import type { SandboxIntegrationConnectionStatusFilter, SandboxAsyncRequestOptions, SandboxScheduleCreateInput, SandboxScheduleUpdateInput, SandboxForkInput, SandboxForkOptions, SandboxTemplateLaunchInput, SandboxPublishedSnapshotBuildCreateInput, SandboxPublishedSnapshotBuildRecord, SandboxSecretMetadata, SandboxSecretCreateInput, SandboxSecretRotateInput, SandboxSecretAttachInput, SandboxSnapshotTemplateVisibility, SandboxTemplateBuildCreateInput, SandboxTemplateBuildRecord, OpenPondOrganization, OpenPondOrganizationCreateInput, OpenPondOrganizationUpdateInput, OpenPondOrganizationMember, OpenPondOrganizationMemberUpsertInput, OpenPondOrganizationMcpServer, OpenPondOrganizationMcpGenerateInput, SandboxProject, OpenPondHostedProfilePushInput, OpenPondHostedProfilePushResponse, OpenPondHostedProfileSummary, SandboxAgent, SandboxProjectUpsertInput, SandboxProjectUpdateInput, SandboxProjectSourceUploadInput, SandboxProjectGitRemoteResponse, SandboxAgentUpsertInput, SandboxAgentUpdateInput, SandboxAgentRunInput, SandboxAgentSourceChecksRequestInput, SandboxAgentSourceChecksRequestResult, SandboxAgentSourceDeployPlan, SandboxAgentSourcePublishInput, SandboxAgentSourcePublishResult, SandboxAgentEditWorkItemOpenInput, SandboxAgentEditWorkItemOpenResult, SandboxCodingWorkItem, SandboxCodingWorkItemActivity, SandboxCodingWorkItemActivityListInput, SandboxCodingWorkItemArtifact, SandboxCodingWorkItemBackgroundInput, SandboxCodingWorkItemBackgroundResult, SandboxCodingWorkItemChatInput, SandboxCodingWorkItemChatResult, SandboxCodingWorkItemGetInput, SandboxCodingWorkItemPromotionInput, SandboxCodingWorkItemStatusResult, SandboxAgentManifestSnapshot, SandboxAgentRunResponse, MicrosoftTeamsBotOverview, MicrosoftTeamsBotBindingTargetInput, MicrosoftTeamsBotBindingResponse, MicrosoftTeamsBotDiagnosticRunInput, MicrosoftTeamsBotDiagnosticRunResponse, SandboxRecord, SandboxSnapshotCatalogResponse, SandboxPublishedSnapshotCatalogResponse, SandboxTemplateCatalogResponse, SandboxRuntime, SandboxRuntimeCreateInput, SandboxRuntimeSandboxCreateInput, SandboxRuntimeEventInput, SandboxRuntimeCheckpointInput, SandboxRuntimePromoteInput, SandboxRuntimeSourcePreserveInput, SandboxRuntimeTransitionInput, SandboxRuntimeSandboxResponse, SandboxRuntimeEventResponse, SandboxRuntimeEventsResponse, SandboxRuntimePromoteResponse, SandboxRuntimeSourcePreserveResponse, SandboxIntegrationConnectionsResponse, SandboxForkResponse, SandboxPublishedSnapshotLaunchResponse, SandboxTemplateLaunchResponse, SandboxScheduleListResponse, SandboxScheduleResponse, SandboxScheduleRunListResponse, SandboxScheduleRunResponse, SandboxReplayInput, SandboxReplayResponse, SandboxReplayListResponse, SandboxReplayLogsResponse, SandboxReplayArtifactsResponse, SandboxPublishedSnapshotBuildLogsResponse, SandboxTemplateBuildLogsResponse, SandboxSmokeOptions, SandboxSmokeSummary, OpenPondSandboxClientOptions, OpenPondSandboxMcpServerConfig, OpenPondSandboxRuntimeHandle } from "./types/index.js";
|
|
3
|
+
export declare class OpenPondSandboxClient extends OpenPondSandboxInstanceClient {
|
|
4
|
+
readonly runtimes: {
|
|
5
|
+
list: (input?: {
|
|
6
|
+
teamId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
agentId?: string;
|
|
9
|
+
}) => Promise<SandboxRuntime[]>;
|
|
10
|
+
create: (input: SandboxRuntimeCreateInput) => Promise<SandboxRuntime>;
|
|
11
|
+
handle: (runtimeId: string, initial?: SandboxRuntime | null) => OpenPondSandboxRuntimeHandle;
|
|
12
|
+
get: (runtimeId: string) => Promise<SandboxRuntime>;
|
|
13
|
+
createSandbox: (runtimeId: string, input?: SandboxRuntimeSandboxCreateInput, options?: SandboxAsyncRequestOptions) => Promise<SandboxRuntimeSandboxResponse>;
|
|
14
|
+
updateStatus: (runtimeId: string, input: SandboxRuntimeTransitionInput) => Promise<SandboxRuntime>;
|
|
15
|
+
events: (runtimeId: string) => Promise<SandboxRuntimeEventsResponse>;
|
|
16
|
+
event: (runtimeId: string, input: SandboxRuntimeEventInput) => Promise<SandboxRuntimeEventResponse>;
|
|
17
|
+
checkpoint: (runtimeId: string, input?: SandboxRuntimeCheckpointInput) => Promise<SandboxRuntime>;
|
|
18
|
+
promote: (runtimeId: string, input: SandboxRuntimePromoteInput, options?: {
|
|
19
|
+
teamId?: string;
|
|
20
|
+
}) => Promise<SandboxRuntimePromoteResponse>;
|
|
21
|
+
preserveSource: (runtimeId: string, input?: SandboxRuntimeSourcePreserveInput, options?: {
|
|
22
|
+
teamId?: string;
|
|
23
|
+
}) => Promise<SandboxRuntimeSourcePreserveResponse>;
|
|
24
|
+
};
|
|
25
|
+
readonly sandboxes: {
|
|
26
|
+
list: (input?: {
|
|
27
|
+
teamId?: string;
|
|
28
|
+
projectId?: string;
|
|
29
|
+
agentId?: string;
|
|
30
|
+
}) => Promise<SandboxRecord[]>;
|
|
31
|
+
create: (input: import("src/index.js").SandboxCreateInput) => Promise<SandboxRecord>;
|
|
32
|
+
get: (sandboxId: string) => Promise<SandboxRecord>;
|
|
33
|
+
pricing: () => Promise<import("src/index.js").SandboxPricingResponse>;
|
|
34
|
+
costs: (input?: {
|
|
35
|
+
teamId?: string;
|
|
36
|
+
projectId?: string;
|
|
37
|
+
agentId?: string;
|
|
38
|
+
}) => Promise<import("src/index.js").SandboxCostSummaryResponse>;
|
|
39
|
+
};
|
|
40
|
+
readonly profile: {
|
|
41
|
+
get(input: {
|
|
42
|
+
teamId: string;
|
|
43
|
+
}): Promise<OpenPondHostedProfileSummary | null>;
|
|
44
|
+
status(input: {
|
|
45
|
+
teamId: string;
|
|
46
|
+
}): Promise<OpenPondHostedProfileSummary | null>;
|
|
47
|
+
ensureHosted(input: {
|
|
48
|
+
teamId: string;
|
|
49
|
+
}): Promise<OpenPondHostedProfileSummary>;
|
|
50
|
+
push(input: OpenPondHostedProfilePushInput): Promise<OpenPondHostedProfilePushResponse>;
|
|
51
|
+
};
|
|
52
|
+
readonly projects: {
|
|
53
|
+
list: (input: {
|
|
54
|
+
teamId: string;
|
|
55
|
+
}) => Promise<SandboxProject[]>;
|
|
56
|
+
upsert: (input: SandboxProjectUpsertInput) => Promise<SandboxProject>;
|
|
57
|
+
upsertGitRemote: (input: SandboxProjectUpsertInput) => Promise<SandboxProjectGitRemoteResponse>;
|
|
58
|
+
get: (projectId: string, input: {
|
|
59
|
+
teamId: string;
|
|
60
|
+
}) => Promise<SandboxProject>;
|
|
61
|
+
update: (projectId: string, input: SandboxProjectUpdateInput) => Promise<SandboxProject>;
|
|
62
|
+
sync: (projectId: string, input: {
|
|
63
|
+
teamId: string;
|
|
64
|
+
}) => Promise<SandboxProject>;
|
|
65
|
+
ensureGitRemote: (projectId: string, input: {
|
|
66
|
+
teamId: string;
|
|
67
|
+
}) => Promise<SandboxProjectGitRemoteResponse>;
|
|
68
|
+
getGitRemote: (projectId: string, input: {
|
|
69
|
+
teamId: string;
|
|
70
|
+
}) => Promise<SandboxProjectGitRemoteResponse>;
|
|
71
|
+
git: (projectId: string, input: {
|
|
72
|
+
teamId: string;
|
|
73
|
+
}) => Promise<SandboxProjectGitRemoteResponse>;
|
|
74
|
+
uploadSource: (projectId: string, input: SandboxProjectSourceUploadInput) => Promise<SandboxProject>;
|
|
75
|
+
archive: (projectId: string, input: {
|
|
76
|
+
teamId: string;
|
|
77
|
+
}) => Promise<SandboxProject>;
|
|
78
|
+
};
|
|
79
|
+
readonly agents: {
|
|
80
|
+
list: (input: {
|
|
81
|
+
teamId: string;
|
|
82
|
+
}) => Promise<SandboxAgent[]>;
|
|
83
|
+
upsert: (input: SandboxAgentUpsertInput) => Promise<SandboxAgent>;
|
|
84
|
+
get: (agentId: string, input: {
|
|
85
|
+
teamId: string;
|
|
86
|
+
}) => Promise<SandboxAgent>;
|
|
87
|
+
update: (agentId: string, input: SandboxAgentUpdateInput) => Promise<SandboxAgent>;
|
|
88
|
+
archive: (agentId: string, input: {
|
|
89
|
+
teamId: string;
|
|
90
|
+
}) => Promise<SandboxAgent>;
|
|
91
|
+
run: (agentId: string, input: SandboxAgentRunInput) => Promise<SandboxAgentRunResponse>;
|
|
92
|
+
sourceDeployPlan: (agentId: string, input: {
|
|
93
|
+
teamId: string;
|
|
94
|
+
}) => Promise<SandboxAgentSourceDeployPlan>;
|
|
95
|
+
manifestSnapshots: (agentId: string, input: {
|
|
96
|
+
teamId: string;
|
|
97
|
+
limit?: number;
|
|
98
|
+
}) => Promise<SandboxAgentManifestSnapshot[]>;
|
|
99
|
+
requestSourceChecks: (agentId: string, input: SandboxAgentSourceChecksRequestInput) => Promise<SandboxAgentSourceChecksRequestResult>;
|
|
100
|
+
publishSource: (agentId: string, input: SandboxAgentSourcePublishInput) => Promise<SandboxAgentSourcePublishResult>;
|
|
101
|
+
openEditWorkItem: (agentId: string, input: SandboxAgentEditWorkItemOpenInput) => Promise<SandboxAgentEditWorkItemOpenResult>;
|
|
102
|
+
};
|
|
103
|
+
readonly workItems: {
|
|
104
|
+
get: (workItemId: string, input: SandboxCodingWorkItemGetInput) => Promise<SandboxCodingWorkItem>;
|
|
105
|
+
chat: (workItemId: string, input: SandboxCodingWorkItemChatInput) => Promise<SandboxCodingWorkItemChatResult>;
|
|
106
|
+
activity: (workItemId: string, input: SandboxCodingWorkItemActivityListInput) => Promise<SandboxCodingWorkItemActivity[]>;
|
|
107
|
+
status: (workItemId: string, input: SandboxCodingWorkItemActivityListInput & {
|
|
108
|
+
includeArchived?: boolean;
|
|
109
|
+
}) => Promise<SandboxCodingWorkItemStatusResult>;
|
|
110
|
+
handleBackground: (workItemId: string, input: SandboxCodingWorkItemBackgroundInput) => Promise<SandboxCodingWorkItemBackgroundResult>;
|
|
111
|
+
promoteCheckpoint: (workItemId: string, input: SandboxCodingWorkItemPromotionInput) => Promise<SandboxCodingWorkItemArtifact>;
|
|
112
|
+
promoteCommit: (workItemId: string, input: SandboxCodingWorkItemPromotionInput) => Promise<SandboxCodingWorkItemArtifact>;
|
|
113
|
+
promotePullRequest: (workItemId: string, input: SandboxCodingWorkItemPromotionInput) => Promise<SandboxCodingWorkItemArtifact>;
|
|
114
|
+
};
|
|
115
|
+
list(input?: {
|
|
116
|
+
teamId?: string;
|
|
117
|
+
projectId?: string;
|
|
118
|
+
agentId?: string;
|
|
119
|
+
}): Promise<SandboxRecord[]>;
|
|
120
|
+
listSecrets(input?: {
|
|
121
|
+
teamId?: string;
|
|
122
|
+
}): Promise<SandboxSecretMetadata[]>;
|
|
123
|
+
getSecret(secretId: string, input?: {
|
|
124
|
+
teamId?: string;
|
|
125
|
+
}): Promise<SandboxSecretMetadata>;
|
|
126
|
+
createSecret(input: SandboxSecretCreateInput): Promise<SandboxSecretMetadata>;
|
|
127
|
+
rotateSecret(secretId: string, input: SandboxSecretRotateInput): Promise<SandboxSecretMetadata>;
|
|
128
|
+
attachSecret(secretId: string, input: SandboxSecretAttachInput): Promise<SandboxSecretMetadata>;
|
|
129
|
+
revokeSecret(secretId: string, input?: {
|
|
130
|
+
teamId?: string;
|
|
131
|
+
}): Promise<SandboxSecretMetadata>;
|
|
132
|
+
deleteSecret(secretId: string, input?: {
|
|
133
|
+
teamId?: string;
|
|
134
|
+
}): Promise<SandboxSecretMetadata>;
|
|
135
|
+
snapshotCatalog(input?: {
|
|
136
|
+
teamId?: string;
|
|
137
|
+
projectId?: string;
|
|
138
|
+
agentId?: string;
|
|
139
|
+
q?: string;
|
|
140
|
+
kind?: "snapshot" | "archive";
|
|
141
|
+
replayState?: "draft" | "validated" | "published";
|
|
142
|
+
visibility?: SandboxSnapshotTemplateVisibility;
|
|
143
|
+
tag?: string;
|
|
144
|
+
useCase?: string;
|
|
145
|
+
limit?: number;
|
|
146
|
+
}): Promise<SandboxSnapshotCatalogResponse>;
|
|
147
|
+
listSandboxRuntimes(input?: {
|
|
148
|
+
teamId?: string;
|
|
149
|
+
projectId?: string;
|
|
150
|
+
agentId?: string;
|
|
151
|
+
}): Promise<SandboxRuntime[]>;
|
|
152
|
+
listProjects(input: {
|
|
153
|
+
teamId: string;
|
|
154
|
+
}): Promise<SandboxProject[]>;
|
|
155
|
+
upsertProject(input: SandboxProjectUpsertInput): Promise<SandboxProject>;
|
|
156
|
+
getHostedProfile(input: {
|
|
157
|
+
teamId: string;
|
|
158
|
+
}): Promise<OpenPondHostedProfileSummary | null>;
|
|
159
|
+
ensureHostedProfile(input: {
|
|
160
|
+
teamId: string;
|
|
161
|
+
}): Promise<OpenPondHostedProfileSummary>;
|
|
162
|
+
pushHostedProfile(input: OpenPondHostedProfilePushInput): Promise<OpenPondHostedProfilePushResponse>;
|
|
163
|
+
upsertProjectGitRemote(input: SandboxProjectUpsertInput): Promise<SandboxProjectGitRemoteResponse>;
|
|
164
|
+
getProject(projectId: string, input: {
|
|
165
|
+
teamId: string;
|
|
166
|
+
}): Promise<SandboxProject>;
|
|
167
|
+
syncProject(projectId: string, input: {
|
|
168
|
+
teamId: string;
|
|
169
|
+
}): Promise<SandboxProject>;
|
|
170
|
+
ensureProjectGitRemote(projectId: string, input: {
|
|
171
|
+
teamId: string;
|
|
172
|
+
}): Promise<SandboxProjectGitRemoteResponse>;
|
|
173
|
+
uploadProjectSource(projectId: string, input: SandboxProjectSourceUploadInput): Promise<SandboxProject>;
|
|
174
|
+
updateProject(projectId: string, input: SandboxProjectUpdateInput): Promise<SandboxProject>;
|
|
175
|
+
archiveProject(projectId: string, input: {
|
|
176
|
+
teamId: string;
|
|
177
|
+
}): Promise<SandboxProject>;
|
|
178
|
+
listAgents(input: {
|
|
179
|
+
teamId: string;
|
|
180
|
+
}): Promise<SandboxAgent[]>;
|
|
181
|
+
upsertAgent(input: SandboxAgentUpsertInput): Promise<SandboxAgent>;
|
|
182
|
+
getAgent(agentId: string, input: {
|
|
183
|
+
teamId: string;
|
|
184
|
+
}): Promise<SandboxAgent>;
|
|
185
|
+
archiveAgent(agentId: string, input: {
|
|
186
|
+
teamId: string;
|
|
187
|
+
}): Promise<SandboxAgent>;
|
|
188
|
+
updateAgent(agentId: string, input: SandboxAgentUpdateInput): Promise<SandboxAgent>;
|
|
189
|
+
runAgent(agentId: string, input: SandboxAgentRunInput): Promise<SandboxAgentRunResponse>;
|
|
190
|
+
getAgentSourceDeployPlan(agentId: string, input: {
|
|
191
|
+
teamId: string;
|
|
192
|
+
}): Promise<SandboxAgentSourceDeployPlan>;
|
|
193
|
+
listAgentManifestSnapshots(agentId: string, input: {
|
|
194
|
+
teamId: string;
|
|
195
|
+
limit?: number;
|
|
196
|
+
}): Promise<SandboxAgentManifestSnapshot[]>;
|
|
197
|
+
requestAgentSourceChecks(agentId: string, input: SandboxAgentSourceChecksRequestInput): Promise<SandboxAgentSourceChecksRequestResult>;
|
|
198
|
+
publishAgentSource(agentId: string, input: SandboxAgentSourcePublishInput): Promise<SandboxAgentSourcePublishResult>;
|
|
199
|
+
openAgentEditWorkItem(agentId: string, input: SandboxAgentEditWorkItemOpenInput): Promise<SandboxAgentEditWorkItemOpenResult>;
|
|
200
|
+
getCodingWorkItem(workItemId: string, input: SandboxCodingWorkItemGetInput): Promise<SandboxCodingWorkItem>;
|
|
201
|
+
sendCodingWorkItemChat(workItemId: string, input: SandboxCodingWorkItemChatInput): Promise<SandboxCodingWorkItemChatResult>;
|
|
202
|
+
listCodingWorkItemActivity(workItemId: string, input: SandboxCodingWorkItemActivityListInput): Promise<SandboxCodingWorkItemActivity[]>;
|
|
203
|
+
getCodingWorkItemStatus(workItemId: string, input: SandboxCodingWorkItemActivityListInput & {
|
|
204
|
+
includeArchived?: boolean;
|
|
205
|
+
}): Promise<SandboxCodingWorkItemStatusResult>;
|
|
206
|
+
handleCodingWorkItemInBackground(workItemId: string, input: SandboxCodingWorkItemBackgroundInput): Promise<SandboxCodingWorkItemBackgroundResult>;
|
|
207
|
+
promoteCodingWorkItemResult(workItemId: string, action: "checkpoint" | "commit" | "pr", input: SandboxCodingWorkItemPromotionInput): Promise<SandboxCodingWorkItemArtifact>;
|
|
208
|
+
getMicrosoftTeamsBotOverview(input: {
|
|
209
|
+
teamId: string;
|
|
210
|
+
}): Promise<MicrosoftTeamsBotOverview>;
|
|
211
|
+
bindMicrosoftTeamsBotConversation(input: MicrosoftTeamsBotBindingTargetInput & {
|
|
212
|
+
token: string;
|
|
213
|
+
}): Promise<MicrosoftTeamsBotBindingResponse>;
|
|
214
|
+
rebindMicrosoftTeamsBotConversation(bindingId: string, input: MicrosoftTeamsBotBindingTargetInput): Promise<MicrosoftTeamsBotBindingResponse>;
|
|
215
|
+
unlinkMicrosoftTeamsBotConversation(input: {
|
|
216
|
+
teamId: string;
|
|
217
|
+
bindingId: string;
|
|
218
|
+
}): Promise<MicrosoftTeamsBotBindingResponse>;
|
|
219
|
+
sendMicrosoftTeamsBotDiagnostic(input: {
|
|
220
|
+
teamId: string;
|
|
221
|
+
bindingId: string;
|
|
222
|
+
}): Promise<MicrosoftTeamsBotBindingResponse & {
|
|
223
|
+
diagnosticStatus: string;
|
|
224
|
+
}>;
|
|
225
|
+
sendMicrosoftTeamsBotDiagnosticRun(input: MicrosoftTeamsBotDiagnosticRunInput): Promise<MicrosoftTeamsBotDiagnosticRunResponse>;
|
|
226
|
+
createSandboxRuntime(input: SandboxRuntimeCreateInput): Promise<SandboxRuntime>;
|
|
227
|
+
sandboxRuntime(runtimeId: string, initial?: SandboxRuntime | null): OpenPondSandboxRuntimeHandle;
|
|
228
|
+
getSandboxRuntime(runtimeId: string): Promise<SandboxRuntime>;
|
|
229
|
+
createSandboxRuntimeSandbox(runtimeId: string, input?: SandboxRuntimeSandboxCreateInput, options?: SandboxAsyncRequestOptions): Promise<SandboxRuntimeSandboxResponse>;
|
|
230
|
+
updateSandboxRuntimeStatus(runtimeId: string, input: SandboxRuntimeTransitionInput): Promise<SandboxRuntime>;
|
|
231
|
+
listSandboxRuntimeEvents(runtimeId: string): Promise<SandboxRuntimeEventsResponse>;
|
|
232
|
+
emitSandboxRuntimeEvent(runtimeId: string, input: SandboxRuntimeEventInput): Promise<SandboxRuntimeEventResponse>;
|
|
233
|
+
checkpointSandboxRuntime(runtimeId: string, input: SandboxRuntimeCheckpointInput): Promise<SandboxRuntime>;
|
|
234
|
+
promoteSandboxRuntime(runtimeId: string, input: SandboxRuntimePromoteInput, options?: {
|
|
235
|
+
teamId?: string;
|
|
236
|
+
}): Promise<SandboxRuntimePromoteResponse>;
|
|
237
|
+
preserveSandboxRuntimeSource(runtimeId: string, input?: SandboxRuntimeSourcePreserveInput, options?: {
|
|
238
|
+
teamId?: string;
|
|
239
|
+
}): Promise<SandboxRuntimeSourcePreserveResponse>;
|
|
240
|
+
forkSnapshot(snapshotId: string, input?: SandboxForkInput & {
|
|
241
|
+
teamId?: string;
|
|
242
|
+
projectId?: string;
|
|
243
|
+
}, options?: SandboxForkOptions): Promise<SandboxForkResponse>;
|
|
244
|
+
templates(input?: {
|
|
245
|
+
teamId?: string;
|
|
246
|
+
projectId?: string;
|
|
247
|
+
q?: string;
|
|
248
|
+
name?: string;
|
|
249
|
+
version?: string;
|
|
250
|
+
visibility?: SandboxSnapshotTemplateVisibility;
|
|
251
|
+
tag?: string;
|
|
252
|
+
useCase?: string;
|
|
253
|
+
limit?: number;
|
|
254
|
+
}): Promise<SandboxTemplateCatalogResponse>;
|
|
255
|
+
publishedSnapshots(input?: {
|
|
256
|
+
teamId?: string;
|
|
257
|
+
projectId?: string;
|
|
258
|
+
q?: string;
|
|
259
|
+
name?: string;
|
|
260
|
+
version?: string;
|
|
261
|
+
visibility?: SandboxSnapshotTemplateVisibility;
|
|
262
|
+
tag?: string;
|
|
263
|
+
useCase?: string;
|
|
264
|
+
limit?: number;
|
|
265
|
+
}): Promise<SandboxPublishedSnapshotCatalogResponse>;
|
|
266
|
+
launchTemplate(input: SandboxTemplateLaunchInput & {
|
|
267
|
+
teamId?: string;
|
|
268
|
+
projectId?: string;
|
|
269
|
+
}): Promise<SandboxTemplateLaunchResponse>;
|
|
270
|
+
runPublishedSnapshot(input: SandboxTemplateLaunchInput & {
|
|
271
|
+
teamId?: string;
|
|
272
|
+
projectId?: string;
|
|
273
|
+
}): Promise<SandboxPublishedSnapshotLaunchResponse>;
|
|
274
|
+
listSchedules(input?: {
|
|
275
|
+
teamId?: string;
|
|
276
|
+
projectId?: string;
|
|
277
|
+
sourceSandboxId?: string;
|
|
278
|
+
}): Promise<SandboxScheduleListResponse>;
|
|
279
|
+
createSchedule(input: SandboxScheduleCreateInput): Promise<SandboxScheduleResponse>;
|
|
280
|
+
getSchedule(scheduleId: string): Promise<SandboxScheduleResponse>;
|
|
281
|
+
updateSchedule(scheduleId: string, input: SandboxScheduleUpdateInput): Promise<SandboxScheduleResponse>;
|
|
282
|
+
deleteSchedule(scheduleId: string): Promise<SandboxScheduleResponse>;
|
|
283
|
+
listScheduleRuns(scheduleId: string, input?: {
|
|
284
|
+
limit?: number;
|
|
285
|
+
}): Promise<SandboxScheduleRunListResponse>;
|
|
286
|
+
runScheduleNow(scheduleId: string, input?: {
|
|
287
|
+
idempotencyKey?: string;
|
|
288
|
+
}): Promise<SandboxScheduleRunResponse>;
|
|
289
|
+
listTemplateBuilds(input: {
|
|
290
|
+
teamId: string;
|
|
291
|
+
}): Promise<SandboxTemplateBuildRecord[]>;
|
|
292
|
+
createTemplateBuild(input: SandboxTemplateBuildCreateInput): Promise<SandboxTemplateBuildRecord>;
|
|
293
|
+
getTemplateBuild(buildId: string): Promise<SandboxTemplateBuildRecord>;
|
|
294
|
+
getTemplateBuildLogs(buildId: string): Promise<SandboxTemplateBuildLogsResponse>;
|
|
295
|
+
cancelTemplateBuild(buildId: string): Promise<SandboxTemplateBuildRecord>;
|
|
296
|
+
listPublishedSnapshotBuilds(input: {
|
|
297
|
+
teamId: string;
|
|
298
|
+
}): Promise<SandboxPublishedSnapshotBuildRecord[]>;
|
|
299
|
+
createPublishedSnapshotBuild(input: SandboxPublishedSnapshotBuildCreateInput): Promise<SandboxPublishedSnapshotBuildRecord>;
|
|
300
|
+
getPublishedSnapshotBuild(buildId: string): Promise<SandboxPublishedSnapshotBuildRecord>;
|
|
301
|
+
getPublishedSnapshotBuildLogs(buildId: string): Promise<SandboxPublishedSnapshotBuildLogsResponse>;
|
|
302
|
+
cancelPublishedSnapshotBuild(buildId: string): Promise<SandboxPublishedSnapshotBuildRecord>;
|
|
303
|
+
listOrganizations(): Promise<OpenPondOrganization[]>;
|
|
304
|
+
createOrganization(input: OpenPondOrganizationCreateInput): Promise<OpenPondOrganization>;
|
|
305
|
+
getOrganization(slug: string): Promise<OpenPondOrganization>;
|
|
306
|
+
updateOrganization(slug: string, input: OpenPondOrganizationUpdateInput): Promise<OpenPondOrganization>;
|
|
307
|
+
listOrganizationMembers(slug: string): Promise<OpenPondOrganizationMember[]>;
|
|
308
|
+
upsertOrganizationMember(slug: string, input: OpenPondOrganizationMemberUpsertInput): Promise<OpenPondOrganizationMember>;
|
|
309
|
+
getOrganizationMcpServer(slug: string): Promise<OpenPondOrganizationMcpServer | null>;
|
|
310
|
+
generateOrganizationMcpServer(slug: string, input?: OpenPondOrganizationMcpGenerateInput): Promise<OpenPondOrganizationMcpServer | null>;
|
|
311
|
+
rotateOrganizationMcpServer(slug: string): Promise<OpenPondOrganizationMcpServer | null>;
|
|
312
|
+
disableOrganizationMcpServer(slug: string): Promise<OpenPondOrganizationMcpServer | null>;
|
|
313
|
+
enableOrganizationMcpServer(slug: string): Promise<OpenPondOrganizationMcpServer | null>;
|
|
314
|
+
startReplay(input: SandboxReplayInput & {
|
|
315
|
+
teamId?: string;
|
|
316
|
+
projectId?: string;
|
|
317
|
+
}): Promise<SandboxReplayResponse>;
|
|
318
|
+
listReplays(input?: {
|
|
319
|
+
teamId?: string;
|
|
320
|
+
projectId?: string;
|
|
321
|
+
}): Promise<SandboxReplayListResponse>;
|
|
322
|
+
getReplay(replayId: string, input?: {
|
|
323
|
+
teamId?: string;
|
|
324
|
+
projectId?: string;
|
|
325
|
+
}): Promise<SandboxReplayResponse>;
|
|
326
|
+
getReplayLogs(replayId: string, input?: {
|
|
327
|
+
teamId?: string;
|
|
328
|
+
projectId?: string;
|
|
329
|
+
}): Promise<SandboxReplayLogsResponse>;
|
|
330
|
+
getReplayArtifacts(replayId: string, input?: {
|
|
331
|
+
teamId?: string;
|
|
332
|
+
projectId?: string;
|
|
333
|
+
}): Promise<SandboxReplayArtifactsResponse>;
|
|
334
|
+
cancelReplay(replayId: string, input?: {
|
|
335
|
+
teamId?: string;
|
|
336
|
+
projectId?: string;
|
|
337
|
+
}): Promise<SandboxReplayResponse>;
|
|
338
|
+
integrationConnections(input?: {
|
|
339
|
+
teamId?: string;
|
|
340
|
+
projectId?: string;
|
|
341
|
+
agentId?: string;
|
|
342
|
+
status?: SandboxIntegrationConnectionStatusFilter;
|
|
343
|
+
}): Promise<SandboxIntegrationConnectionsResponse>;
|
|
344
|
+
mcpServerConfig(): OpenPondSandboxMcpServerConfig;
|
|
345
|
+
smoke(options?: SandboxSmokeOptions): Promise<SandboxSmokeSummary>;
|
|
346
|
+
}
|
|
347
|
+
export declare function createOpenPondSandboxClient(options: OpenPondSandboxClientOptions): OpenPondSandboxClient;
|
|
348
|
+
export { normalizeSandboxApiUrl } from "./url.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { OpenPondSandboxRuntimeHandle, SandboxExecInput, SandboxFileDownloadInput, SandboxFileListInput, SandboxFileMkdirInput, SandboxFileMoveInput, SandboxFileSearchInput, SandboxOpenPortInput, SandboxRecord, SandboxRuntime, SandboxRuntimeCheckpointInput, SandboxRuntimeEventInput, SandboxRuntimePromoteInput, SandboxRuntimePromoteResponse, SandboxRuntimeSourcePreserveInput, SandboxRuntimeSourcePreserveResponse, SandboxRuntimeSandboxCreateInput, SandboxRuntimeSandboxResponse, SandboxRuntimeTransitionInput, SandboxRuntimeEventsResponse, SandboxRuntimeEventResponse, SandboxAsyncRequestOptions, SandboxFileUploadResponse, SandboxFileDownloadResponse, SandboxFileDeleteResponse, SandboxFileListResponse, SandboxFileMkdirResponse, SandboxFileMoveResponse, SandboxFileStatResponse, SandboxFileSearchResponse, SandboxOpenPortResponse, SandboxExecResponse } from "./types/index.js";
|
|
2
|
+
export type SandboxRuntimeHandleClient = {
|
|
3
|
+
getSandboxRuntime(runtimeId: string): Promise<SandboxRuntime>;
|
|
4
|
+
createSandboxRuntimeSandbox(runtimeId: string, input?: SandboxRuntimeSandboxCreateInput, options?: SandboxAsyncRequestOptions): Promise<SandboxRuntimeSandboxResponse>;
|
|
5
|
+
updateSandboxRuntimeStatus(runtimeId: string, input: SandboxRuntimeTransitionInput): Promise<SandboxRuntime>;
|
|
6
|
+
listSandboxRuntimeEvents(runtimeId: string): Promise<SandboxRuntimeEventsResponse>;
|
|
7
|
+
emitSandboxRuntimeEvent(runtimeId: string, input: SandboxRuntimeEventInput): Promise<SandboxRuntimeEventResponse>;
|
|
8
|
+
checkpointSandboxRuntime(runtimeId: string, input: SandboxRuntimeCheckpointInput): Promise<SandboxRuntime>;
|
|
9
|
+
promoteSandboxRuntime(runtimeId: string, input: SandboxRuntimePromoteInput, options?: {
|
|
10
|
+
teamId?: string;
|
|
11
|
+
}): Promise<SandboxRuntimePromoteResponse>;
|
|
12
|
+
preserveSandboxRuntimeSource(runtimeId: string, input?: SandboxRuntimeSourcePreserveInput, options?: {
|
|
13
|
+
teamId?: string;
|
|
14
|
+
}): Promise<SandboxRuntimeSourcePreserveResponse>;
|
|
15
|
+
get(sandboxId: string): Promise<SandboxRecord>;
|
|
16
|
+
start(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<{
|
|
17
|
+
sandbox: SandboxRecord;
|
|
18
|
+
}>;
|
|
19
|
+
restore(sandboxId: string): Promise<{
|
|
20
|
+
sandbox: SandboxRecord;
|
|
21
|
+
}>;
|
|
22
|
+
uploadFile(sandboxId: string, path: string, contents: string): Promise<SandboxFileUploadResponse>;
|
|
23
|
+
downloadFile(sandboxId: string, path: string): Promise<string>;
|
|
24
|
+
downloadFileResponse(sandboxId: string, input: string | SandboxFileDownloadInput): Promise<SandboxFileDownloadResponse>;
|
|
25
|
+
listFiles(sandboxId: string, input?: SandboxFileListInput): Promise<SandboxFileListResponse>;
|
|
26
|
+
deleteFile(sandboxId: string, path: string, input?: {
|
|
27
|
+
recursive?: boolean;
|
|
28
|
+
}): Promise<SandboxFileDeleteResponse>;
|
|
29
|
+
searchFiles(sandboxId: string, input: SandboxFileSearchInput): Promise<SandboxFileSearchResponse>;
|
|
30
|
+
statFile(sandboxId: string, path: string): Promise<SandboxFileStatResponse>;
|
|
31
|
+
mkdir(sandboxId: string, input: string | SandboxFileMkdirInput): Promise<SandboxFileMkdirResponse>;
|
|
32
|
+
moveFile(sandboxId: string, input: SandboxFileMoveInput): Promise<SandboxFileMoveResponse>;
|
|
33
|
+
exec(sandboxId: string, input: SandboxExecInput): Promise<SandboxExecResponse>;
|
|
34
|
+
openPort(sandboxId: string, input: SandboxOpenPortInput): Promise<SandboxOpenPortResponse>;
|
|
35
|
+
};
|
|
36
|
+
export declare function createSandboxRuntimeHandle(client: SandboxRuntimeHandleClient, runtimeId: string, initial?: SandboxRuntime | null): OpenPondSandboxRuntimeHandle;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { SandboxIntegrationConnectionLeaseInput, SandboxCreateInput, SandboxCreateOptions, SandboxAsyncRequestOptions, SandboxForkInput, SandboxExecInput, SandboxProcessStartInput, SandboxPtyStartInput, SandboxPtyInput, SandboxOpenPortInput, SandboxGitDiffInput, SandboxGitPatchExportInput, SandboxGitBranchInput, SandboxGitCommitInput, SandboxGitPullInput, SandboxGitPushInput, SandboxFileDownloadInput, SandboxFileListInput, SandboxFileMkdirInput, SandboxFileMoveInput, SandboxFileSearchInput, SandboxReceipt, SandboxSnapshotValidateInput, SandboxSnapshotUpdateInput, SandboxSnapshotInput, SandboxRecord, SandboxIntegrationLeasesResponse, SandboxExecResponse, SandboxProcessStartResponse, SandboxProcessListResponse, SandboxProcessStatusResponse, SandboxProcessStopResponse, SandboxPtyStartResponse, SandboxPtyListResponse, SandboxPtyStatusResponse, SandboxPtyInputResponse, SandboxPtyStopResponse, SandboxOpenPortResponse, SandboxSnapshotResponse, SandboxSnapshotValidationResponse, SandboxForkResponse, SandboxReceiptResponse, SandboxLifecycleAcceptedResponse, SandboxStartResponse, SandboxRestoreResponse, SandboxGitStatusResponse, SandboxGitDiffResponse, SandboxGitPatchExportResponse, SandboxGitBranchResponse, SandboxGitCommitResponse, SandboxGitPullResponse, SandboxGitPushResponse, SandboxFileUploadResponse, SandboxFileDownloadResponse, SandboxFileListResponse, SandboxFileDeleteResponse, SandboxFileMkdirResponse, SandboxFileMoveResponse, SandboxFileStatResponse, SandboxFileSearchResponse, SandboxBillingStatusResponse, SandboxPricingResponse, SandboxCostSummaryResponse, OpenPondSandboxClientOptions } from "./types/index.js";
|
|
2
|
+
export declare class OpenPondSandboxInstanceClient {
|
|
3
|
+
protected readonly apiKey: string;
|
|
4
|
+
private readonly apiRootUrl;
|
|
5
|
+
protected readonly sandboxApiUrl: string;
|
|
6
|
+
constructor(options: OpenPondSandboxClientOptions);
|
|
7
|
+
create(input: SandboxCreateInput, options?: SandboxCreateOptions): Promise<SandboxRecord>;
|
|
8
|
+
get(sandboxId: string): Promise<SandboxRecord>;
|
|
9
|
+
exec(sandboxId: string, input: SandboxExecInput): Promise<SandboxExecResponse>;
|
|
10
|
+
startProcess(sandboxId: string, input: SandboxProcessStartInput): Promise<SandboxProcessStartResponse>;
|
|
11
|
+
listProcesses(sandboxId: string): Promise<SandboxProcessListResponse>;
|
|
12
|
+
getProcess(sandboxId: string, processId: string, input?: {
|
|
13
|
+
since?: number;
|
|
14
|
+
}): Promise<SandboxProcessStatusResponse>;
|
|
15
|
+
stopProcess(sandboxId: string, processId: string): Promise<SandboxProcessStopResponse>;
|
|
16
|
+
streamProcessOutput(sandboxId: string, processId: string, input?: {
|
|
17
|
+
since?: number;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
startPty(sandboxId: string, input?: SandboxPtyStartInput): Promise<SandboxPtyStartResponse>;
|
|
20
|
+
listPtys(sandboxId: string): Promise<SandboxPtyListResponse>;
|
|
21
|
+
getPty(sandboxId: string, ptyId: string, input?: {
|
|
22
|
+
since?: number;
|
|
23
|
+
}): Promise<SandboxPtyStatusResponse>;
|
|
24
|
+
writePtyInput(sandboxId: string, ptyId: string, input: string | Uint8Array | SandboxPtyInput): Promise<SandboxPtyInputResponse>;
|
|
25
|
+
stopPty(sandboxId: string, ptyId: string): Promise<SandboxPtyStopResponse>;
|
|
26
|
+
streamPtyOutput(sandboxId: string, ptyId: string, input?: {
|
|
27
|
+
since?: number;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
uploadFile(sandboxId: string, path: string, contents: string): Promise<SandboxFileUploadResponse>;
|
|
30
|
+
uploadFileBase64(sandboxId: string, path: string, contentsBase64: string): Promise<SandboxFileUploadResponse>;
|
|
31
|
+
downloadFile(sandboxId: string, path: string): Promise<string>;
|
|
32
|
+
downloadFileResponse(sandboxId: string, input: string | SandboxFileDownloadInput): Promise<SandboxFileDownloadResponse>;
|
|
33
|
+
listFiles(sandboxId: string, input?: SandboxFileListInput): Promise<SandboxFileListResponse>;
|
|
34
|
+
deleteFile(sandboxId: string, path: string, input?: {
|
|
35
|
+
recursive?: boolean;
|
|
36
|
+
}): Promise<SandboxFileDeleteResponse>;
|
|
37
|
+
statFile(sandboxId: string, path: string): Promise<SandboxFileStatResponse>;
|
|
38
|
+
mkdir(sandboxId: string, input: string | SandboxFileMkdirInput): Promise<SandboxFileMkdirResponse>;
|
|
39
|
+
moveFile(sandboxId: string, input: SandboxFileMoveInput): Promise<SandboxFileMoveResponse>;
|
|
40
|
+
searchFiles(sandboxId: string, input: SandboxFileSearchInput): Promise<SandboxFileSearchResponse>;
|
|
41
|
+
openPort(sandboxId: string, input: SandboxOpenPortInput): Promise<SandboxOpenPortResponse>;
|
|
42
|
+
createSnapshot(sandboxId: string, input: SandboxSnapshotInput): Promise<SandboxSnapshotResponse>;
|
|
43
|
+
updateSnapshot(sandboxId: string, snapshotId: string, input: SandboxSnapshotUpdateInput): Promise<SandboxSnapshotResponse>;
|
|
44
|
+
validateSnapshot(sandboxId: string, snapshotId: string, input?: SandboxSnapshotValidateInput): Promise<SandboxSnapshotValidationResponse>;
|
|
45
|
+
publishSnapshot(sandboxId: string, snapshotId: string): Promise<SandboxSnapshotResponse>;
|
|
46
|
+
fork(sandboxId: string, input?: SandboxForkInput): Promise<SandboxForkResponse>;
|
|
47
|
+
stop(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<SandboxReceiptResponse | SandboxLifecycleAcceptedResponse>;
|
|
48
|
+
start(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<SandboxStartResponse>;
|
|
49
|
+
restore(sandboxId: string): Promise<SandboxRestoreResponse>;
|
|
50
|
+
delete(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<SandboxRecord>;
|
|
51
|
+
receipts(sandboxId: string): Promise<SandboxReceipt[]>;
|
|
52
|
+
logs(sandboxId: string): Promise<string[]>;
|
|
53
|
+
gitStatus(sandboxId: string): Promise<SandboxGitStatusResponse>;
|
|
54
|
+
gitDiff(sandboxId: string, input?: SandboxGitDiffInput): Promise<SandboxGitDiffResponse>;
|
|
55
|
+
gitExportPatch(sandboxId: string, input?: SandboxGitPatchExportInput): Promise<SandboxGitPatchExportResponse>;
|
|
56
|
+
gitBranch(sandboxId: string, input: SandboxGitBranchInput): Promise<SandboxGitBranchResponse>;
|
|
57
|
+
gitCommit(sandboxId: string, input: SandboxGitCommitInput): Promise<SandboxGitCommitResponse>;
|
|
58
|
+
gitPull(sandboxId: string, input?: SandboxGitPullInput): Promise<SandboxGitPullResponse>;
|
|
59
|
+
gitPush(sandboxId: string, input?: SandboxGitPushInput): Promise<SandboxGitPushResponse>;
|
|
60
|
+
billing(sandboxId: string): Promise<SandboxBillingStatusResponse>;
|
|
61
|
+
pricing(): Promise<SandboxPricingResponse>;
|
|
62
|
+
costs(input?: {
|
|
63
|
+
teamId?: string;
|
|
64
|
+
projectId?: string;
|
|
65
|
+
agentId?: string;
|
|
66
|
+
}): Promise<SandboxCostSummaryResponse>;
|
|
67
|
+
integrationLeases(sandboxId: string): Promise<SandboxIntegrationLeasesResponse>;
|
|
68
|
+
attachIntegrationConnection(sandboxId: string, input: SandboxIntegrationConnectionLeaseInput): Promise<SandboxIntegrationLeasesResponse>;
|
|
69
|
+
removeIntegrationLease(sandboxId: string, leaseId: string): Promise<SandboxIntegrationLeasesResponse>;
|
|
70
|
+
protected request<T>(path: string, init?: RequestInit): Promise<T>;
|
|
71
|
+
protected requestApiRoot<T>(path: string, init?: RequestInit): Promise<T>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { OpenPondSandboxClient } from "./client.js";
|
|
2
|
+
import type { SandboxSmokeOptions, SandboxSmokeSummary } from "./types/index.js";
|
|
3
|
+
export declare function runSandboxSmoke(client: OpenPondSandboxClient, options?: SandboxSmokeOptions): Promise<SandboxSmokeSummary>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SandboxPtyInput } from "./types/index.js";
|
|
2
|
+
export declare function streamSandboxEventOutput(params: {
|
|
3
|
+
sandboxApiUrl: string;
|
|
4
|
+
apiKey: string;
|
|
5
|
+
path: string;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
export declare function normalizePtyInput(input: string | Uint8Array | SandboxPtyInput): SandboxPtyInput;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import type { SandboxPreviewAccess, SandboxPreviewAuthPolicy, SandboxPreviewCorsPolicy, SandboxPreviewHeaderPolicy, SandboxResources, SandboxState } from "./index.js";
|
|
2
|
+
export type SandboxPricingRate = {
|
|
3
|
+
key: "cpu" | "memory" | "disk" | "durable_volume_storage";
|
|
4
|
+
label: string;
|
|
5
|
+
unit: string;
|
|
6
|
+
unitPriceUsd: string;
|
|
7
|
+
unitPriceHourlyUsd: string;
|
|
8
|
+
unitPriceMonthlyUsd: string | null;
|
|
9
|
+
};
|
|
10
|
+
export type SandboxPublicResourceTierKey = "tiny" | "small" | "default" | "builder" | "heavy-builder";
|
|
11
|
+
export type SandboxKeepRunningEstimateLineItem = {
|
|
12
|
+
label: string;
|
|
13
|
+
quantity: number;
|
|
14
|
+
unit: string;
|
|
15
|
+
hourlyUsd: string;
|
|
16
|
+
monthlyUsd: string;
|
|
17
|
+
};
|
|
18
|
+
export type SandboxKeepRunningEstimate = {
|
|
19
|
+
resources: SandboxResources;
|
|
20
|
+
matchedTierKey: SandboxPublicResourceTierKey | null;
|
|
21
|
+
hourlyUsd: string;
|
|
22
|
+
monthlyUsd: string;
|
|
23
|
+
durationDays: number;
|
|
24
|
+
pricingSource: "openpond_poc_config";
|
|
25
|
+
lineItems: SandboxKeepRunningEstimateLineItem[];
|
|
26
|
+
};
|
|
27
|
+
export type SandboxPublicResourceTier = {
|
|
28
|
+
key: SandboxPublicResourceTierKey;
|
|
29
|
+
label: string;
|
|
30
|
+
description: string;
|
|
31
|
+
resources: SandboxResources;
|
|
32
|
+
goodFit: string[];
|
|
33
|
+
poorFit: string[];
|
|
34
|
+
keepRunningEstimate: SandboxKeepRunningEstimate;
|
|
35
|
+
};
|
|
36
|
+
export type SandboxPricingRateCard = {
|
|
37
|
+
currency: "USD";
|
|
38
|
+
source: "openpond_poc_config";
|
|
39
|
+
effectiveAt: string;
|
|
40
|
+
rates: SandboxPricingRate[];
|
|
41
|
+
tiers: SandboxPublicResourceTier[];
|
|
42
|
+
};
|
|
43
|
+
export type SandboxCostLineItemSummary = {
|
|
44
|
+
label: string;
|
|
45
|
+
unit: string;
|
|
46
|
+
quantity: number;
|
|
47
|
+
amountUsd: string;
|
|
48
|
+
};
|
|
49
|
+
export type SandboxCostSandboxSummary = {
|
|
50
|
+
sandboxId: string;
|
|
51
|
+
state: SandboxState;
|
|
52
|
+
repo: string | null;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
receiptCount: number;
|
|
56
|
+
totalUsd: string;
|
|
57
|
+
durationSeconds: number;
|
|
58
|
+
latestReceiptRef: string | null;
|
|
59
|
+
latestReceiptAt: string | null;
|
|
60
|
+
};
|
|
61
|
+
export type SandboxCostSummary = {
|
|
62
|
+
teamId: string;
|
|
63
|
+
ownerUserId: string;
|
|
64
|
+
pricing: SandboxPricingRateCard;
|
|
65
|
+
summary: {
|
|
66
|
+
sandboxCount: number;
|
|
67
|
+
runningCount: number;
|
|
68
|
+
stoppedCount: number;
|
|
69
|
+
archivedCount: number;
|
|
70
|
+
receiptCount: number;
|
|
71
|
+
totalUsd: string;
|
|
72
|
+
totalDurationSeconds: number;
|
|
73
|
+
activeReservedUsd: string;
|
|
74
|
+
activeRemainingBudgetUsd: string;
|
|
75
|
+
activeRunnerSlots: number;
|
|
76
|
+
};
|
|
77
|
+
lineItems: SandboxCostLineItemSummary[];
|
|
78
|
+
sandboxes: SandboxCostSandboxSummary[];
|
|
79
|
+
recentReceipts: SandboxReceipt[];
|
|
80
|
+
generatedAt: string;
|
|
81
|
+
};
|
|
82
|
+
export type SandboxBillingStatus = {
|
|
83
|
+
sandboxId: string;
|
|
84
|
+
state: SandboxState;
|
|
85
|
+
billingModel: "reserve_capture" | "session";
|
|
86
|
+
reservationStatus: SandboxReservation["status"];
|
|
87
|
+
budgetUsd: string;
|
|
88
|
+
reservedUsd: string;
|
|
89
|
+
capturedUsd: string;
|
|
90
|
+
remainingBudgetUsd: string;
|
|
91
|
+
mppMode: NonNullable<SandboxReservation["mpp"]>["mode"] | null;
|
|
92
|
+
sessionRef: string | null;
|
|
93
|
+
channelId: string | null;
|
|
94
|
+
depositUsd: string | null;
|
|
95
|
+
acceptedCumulativeUsd: string | null;
|
|
96
|
+
remainingSessionUsd: string | null;
|
|
97
|
+
tickCount: number;
|
|
98
|
+
lastTickAt: string | null;
|
|
99
|
+
finalizedAt: string | null;
|
|
100
|
+
lastReceiptRef: string | null;
|
|
101
|
+
keepRunningEstimate?: SandboxKeepRunningEstimate;
|
|
102
|
+
};
|
|
103
|
+
export type SandboxReservation = {
|
|
104
|
+
id: string;
|
|
105
|
+
status: "reserved" | "captured" | "released";
|
|
106
|
+
reservedUsd: string;
|
|
107
|
+
capturedUsd: string;
|
|
108
|
+
mpp?: {
|
|
109
|
+
mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook";
|
|
110
|
+
settlementRail: "tempo_usdce";
|
|
111
|
+
reservationRef: string;
|
|
112
|
+
sessionRef?: string | null;
|
|
113
|
+
channelId?: string | null;
|
|
114
|
+
depositUsd?: string | null;
|
|
115
|
+
acceptedCumulativeUsd?: string | null;
|
|
116
|
+
remainingUsd?: string | null;
|
|
117
|
+
tickCount?: number;
|
|
118
|
+
lastTickAt?: string | null;
|
|
119
|
+
finalizedAt?: string | null;
|
|
120
|
+
lastReceiptRef?: string | null;
|
|
121
|
+
};
|
|
122
|
+
createdAt: string;
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
};
|
|
125
|
+
export type SandboxReceiptLineItem = {
|
|
126
|
+
label: string;
|
|
127
|
+
quantity: number;
|
|
128
|
+
unit: string;
|
|
129
|
+
unitPriceUsd: string;
|
|
130
|
+
amountUsd: string;
|
|
131
|
+
};
|
|
132
|
+
export type SandboxReceipt = {
|
|
133
|
+
id: string;
|
|
134
|
+
sandboxId: string;
|
|
135
|
+
reservationId: string;
|
|
136
|
+
status: "captured" | "released";
|
|
137
|
+
reason: "stopped" | "deleted" | "archived" | "budget_exhausted" | "duration_exceeded" | "idle_timeout" | "manual_capture";
|
|
138
|
+
totalUsd: string;
|
|
139
|
+
durationSeconds: number;
|
|
140
|
+
lineItems: SandboxReceiptLineItem[];
|
|
141
|
+
mpp: {
|
|
142
|
+
mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook";
|
|
143
|
+
settlementRail: "tempo_usdce";
|
|
144
|
+
receiptRef: string;
|
|
145
|
+
sessionRef?: string | null;
|
|
146
|
+
channelId?: string | null;
|
|
147
|
+
acceptedCumulativeUsd?: string | null;
|
|
148
|
+
depositUsd?: string | null;
|
|
149
|
+
remainingUsd?: string | null;
|
|
150
|
+
};
|
|
151
|
+
createdAt: string;
|
|
152
|
+
};
|
|
153
|
+
export type SandboxCommand = {
|
|
154
|
+
id: string;
|
|
155
|
+
command: string;
|
|
156
|
+
status: "queued" | "running" | "succeeded" | "failed" | "skipped";
|
|
157
|
+
output: string;
|
|
158
|
+
exitCode: number | null;
|
|
159
|
+
startedAt: string;
|
|
160
|
+
completedAt: string | null;
|
|
161
|
+
};
|
|
162
|
+
export type SandboxPreviewPort = {
|
|
163
|
+
id: string;
|
|
164
|
+
port: number;
|
|
165
|
+
label: string | null;
|
|
166
|
+
url: string;
|
|
167
|
+
targetUrl?: string | null;
|
|
168
|
+
customDomain?: string | null;
|
|
169
|
+
access: SandboxPreviewAccess;
|
|
170
|
+
autoStart?: boolean;
|
|
171
|
+
cors?: SandboxPreviewCorsPolicy;
|
|
172
|
+
headerPolicy?: SandboxPreviewHeaderPolicy;
|
|
173
|
+
authPolicy?: SandboxPreviewAuthPolicy;
|
|
174
|
+
token: string;
|
|
175
|
+
createdAt: string;
|
|
176
|
+
};
|