@synsci/sdk 2.0.2-test.42.1 → 2.0.2-test.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/v2/gen/sdk.gen.d.ts +14 -7
- package/dist/src/v2/gen/sdk.gen.js +24 -4
- package/dist/src/v2/gen/types.gen.d.ts +482 -10
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AccountBalanceResponses, AccountBillingModeGetResponses, AccountBillingModeSetResponses, AccountDeviceRevokeResponses, AccountDevicesResponses, AccountGetResponses, AccountLoginKeyResponses, AccountLogoutResponses, AccountSessionResponses, AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillDeleteResponses, AppSkillsResponses, AppSkillWriteResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config4, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, ExperimentalResourceListResponses, FileAnnotationsCreateResponses, FileAnnotationsDeleteResponses, FileAnnotationsHistoryResponses, FileAnnotationsListResponses, FileAnnotationsUpdateResponses, FileArtifactSaveErrors, FileArtifactSaveResponses, FileArtifactsResponses, FileInspectResponses, FileLineageResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileReviewsCurrentErrors, FileReviewsCurrentResponses, FileReviewsFinalizeErrors, FileReviewsFinalizeResponses, FileReviewsHistoryResponses, FileReviewsResolveErrors, FileReviewsResolveResponses, FileReviewsRunResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalProjectCreateErrors, GlobalProjectCreateResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NotebookExecuteResponses, NotebookInterruptResponses, NotebookKernelDeleteResponses, NotebookKernelInterruptResponses, NotebookKernelRestartResponses, NotebookKernelsResponses, NotebookKernelStopResponses, NotebookRestartResponses, NotebookStatusResponses, NotebookStopResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionStandingListResponses, PermissionStandingRevokeResponses, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectListResponses, ProjectTrustGetErrors, ProjectTrustGetResponses, ProjectTrustUpdateErrors, ProjectTrustUpdateResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, ProvenanceReviewsListResponses, ProvenanceReviewsResolveErrors, ProvenanceReviewsResolveResponses, ProvenanceTraceErrors, ProvenanceTraceResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutSettingsSandboxResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SearchQueryResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionFilesystemGrantErrors, SessionFilesystemGrantResponses, SessionFilesystemListErrors, SessionFilesystemListResponses, SessionFilesystemRevokeErrors, SessionFilesystemRevokeResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionReviewErrors, SessionReviewResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySearchResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, SettingsReviewGetResponses, SettingsReviewSetResponses, SettingsSkillsInstallErrors, SettingsSkillsInstallResponses, SettingsStorageRelocateResponses, SettingsStorageResetLocationResponses, SettingsStorageUsageResponses, SettingsUsageGetResponses, SettingsWalletGetResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
2
|
+
import type { AccountBalanceResponses, AccountBillingModeGetResponses, AccountBillingModeSetResponses, AccountDeviceRevokeResponses, AccountDevicesResponses, AccountGetResponses, AccountLoginKeyResponses, AccountLogoutResponses, AccountSessionResponses, AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillDeleteResponses, AppSkillsResponses, AppSkillWriteResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config4, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, ExperimentalResourceListResponses, FileAnnotationsCreateResponses, FileAnnotationsDeleteResponses, FileAnnotationsHistoryResponses, FileAnnotationsListResponses, FileAnnotationsUpdateResponses, FileArtifactSaveErrors, FileArtifactSaveResponses, FileArtifactsResponses, FileInspectResponses, FileLineageResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileReviewsCurrentErrors, FileReviewsCurrentResponses, FileReviewsFinalizeErrors, FileReviewsFinalizeResponses, FileReviewsHistoryResponses, FileReviewsResolveErrors, FileReviewsResolveResponses, FileReviewsRunResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalProjectCreateErrors, GlobalProjectCreateResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NotebookExecuteResponses, NotebookInterruptResponses, NotebookKernelDeleteResponses, NotebookKernelInterruptResponses, NotebookKernelRestartResponses, NotebookKernelsResponses, NotebookKernelStopResponses, NotebookRestartResponses, NotebookStatusResponses, NotebookStopResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionStandingListResponses, PermissionStandingRevokeResponses, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectExecutionErrors, ProjectExecutionResponses, ProjectListResponses, ProjectTrustGetErrors, ProjectTrustGetResponses, ProjectTrustUpdateErrors, ProjectTrustUpdateResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, ProvenanceReviewsListResponses, ProvenanceReviewsResolveErrors, ProvenanceReviewsResolveResponses, ProvenanceTraceErrors, ProvenanceTraceResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutSettingsSandboxResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SearchQueryResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionFilesystemGrantErrors, SessionFilesystemGrantResponses, SessionFilesystemListErrors, SessionFilesystemListResponses, SessionFilesystemRevokeErrors, SessionFilesystemRevokeResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionReviewErrors, SessionReviewResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySearchResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, SettingsReviewGetResponses, SettingsReviewSetResponses, SettingsSkillsInstallErrors, SettingsSkillsInstallResponses, SettingsStorageRelocateResponses, SettingsStorageResetLocationResponses, SettingsStorageUsageResponses, SettingsUsageGetResponses, SettingsWalletGetResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -281,6 +281,7 @@ export declare class Jobs extends HeyApiClient {
|
|
|
281
281
|
container?: string;
|
|
282
282
|
artifacts?: Array<string>;
|
|
283
283
|
checkpoint?: string;
|
|
284
|
+
sessionID?: string;
|
|
284
285
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SettingsComputeJobsStartResponses, SettingsComputeJobsStartErrors, ThrowOnError, "fields">;
|
|
285
286
|
/**
|
|
286
287
|
* Clear completed compute jobs
|
|
@@ -533,6 +534,17 @@ export declare class Project2 extends HeyApiClient {
|
|
|
533
534
|
current<ThrowOnError extends boolean = false>(parameters?: {
|
|
534
535
|
directory?: string;
|
|
535
536
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectCurrentResponses, unknown, ThrowOnError, "fields">;
|
|
537
|
+
/**
|
|
538
|
+
* Inspect session execution authority
|
|
539
|
+
*
|
|
540
|
+
* Return the trust, filesystem-grant, and sandbox revisions that would govern a session process without starting one.
|
|
541
|
+
*/
|
|
542
|
+
execution<ThrowOnError extends boolean = false>(parameters: {
|
|
543
|
+
projectID: string;
|
|
544
|
+
directory?: string;
|
|
545
|
+
sessionID: string;
|
|
546
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
547
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectExecutionResponses, ProjectExecutionErrors, ThrowOnError, "fields">;
|
|
536
548
|
/**
|
|
537
549
|
* Update project
|
|
538
550
|
*
|
|
@@ -573,13 +585,8 @@ export declare class Pty extends HeyApiClient {
|
|
|
573
585
|
*/
|
|
574
586
|
create<ThrowOnError extends boolean = false>(parameters?: {
|
|
575
587
|
directory?: string;
|
|
576
|
-
|
|
577
|
-
args?: Array<string>;
|
|
578
|
-
cwd?: string;
|
|
588
|
+
sessionID?: string;
|
|
579
589
|
title?: string;
|
|
580
|
-
env?: {
|
|
581
|
-
[key: string]: string;
|
|
582
|
-
};
|
|
583
590
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyCreateResponses, PtyCreateErrors, ThrowOnError, "fields">;
|
|
584
591
|
/**
|
|
585
592
|
* Remove PTY session
|
|
@@ -498,6 +498,7 @@ export class Jobs extends HeyApiClient {
|
|
|
498
498
|
{ in: "body", key: "container" },
|
|
499
499
|
{ in: "body", key: "artifacts" },
|
|
500
500
|
{ in: "body", key: "checkpoint" },
|
|
501
|
+
{ in: "body", key: "sessionID" },
|
|
501
502
|
],
|
|
502
503
|
},
|
|
503
504
|
]);
|
|
@@ -1005,6 +1006,28 @@ export class Project2 extends HeyApiClient {
|
|
|
1005
1006
|
...params,
|
|
1006
1007
|
});
|
|
1007
1008
|
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Inspect session execution authority
|
|
1011
|
+
*
|
|
1012
|
+
* Return the trust, filesystem-grant, and sandbox revisions that would govern a session process without starting one.
|
|
1013
|
+
*/
|
|
1014
|
+
execution(parameters, options) {
|
|
1015
|
+
const params = buildClientParams([parameters], [
|
|
1016
|
+
{
|
|
1017
|
+
args: [
|
|
1018
|
+
{ in: "path", key: "projectID" },
|
|
1019
|
+
{ in: "query", key: "directory" },
|
|
1020
|
+
{ in: "query", key: "sessionID" },
|
|
1021
|
+
{ in: "query", key: "capability" },
|
|
1022
|
+
],
|
|
1023
|
+
},
|
|
1024
|
+
]);
|
|
1025
|
+
return (options?.client ?? this.client).get({
|
|
1026
|
+
url: "/project/{projectID}/execution",
|
|
1027
|
+
...options,
|
|
1028
|
+
...params,
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1008
1031
|
/**
|
|
1009
1032
|
* Update project
|
|
1010
1033
|
*
|
|
@@ -1062,11 +1085,8 @@ export class Pty extends HeyApiClient {
|
|
|
1062
1085
|
{
|
|
1063
1086
|
args: [
|
|
1064
1087
|
{ in: "query", key: "directory" },
|
|
1065
|
-
{ in: "body", key: "
|
|
1066
|
-
{ in: "body", key: "args" },
|
|
1067
|
-
{ in: "body", key: "cwd" },
|
|
1088
|
+
{ in: "body", key: "sessionID" },
|
|
1068
1089
|
{ in: "body", key: "title" },
|
|
1069
|
-
{ in: "body", key: "env" },
|
|
1070
1090
|
],
|
|
1071
1091
|
},
|
|
1072
1092
|
]);
|
|
@@ -65,6 +65,34 @@ export type EventServerInstanceDisposed = {
|
|
|
65
65
|
directory: string;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
+
export type EventProjectTrustChanged = {
|
|
69
|
+
type: "project.trust.changed";
|
|
70
|
+
properties: {
|
|
71
|
+
status: {
|
|
72
|
+
projectID: string;
|
|
73
|
+
root: string;
|
|
74
|
+
revision: number;
|
|
75
|
+
state: "trusted" | "untrusted" | "revoked";
|
|
76
|
+
source: "default" | "persisted";
|
|
77
|
+
canExecuteProjectCode: boolean;
|
|
78
|
+
time?: {
|
|
79
|
+
updated: number;
|
|
80
|
+
trusted?: number;
|
|
81
|
+
revoked?: number;
|
|
82
|
+
};
|
|
83
|
+
remediation?: {
|
|
84
|
+
code: "trust_project_required";
|
|
85
|
+
message: string;
|
|
86
|
+
method: "PUT";
|
|
87
|
+
path: string;
|
|
88
|
+
body: {
|
|
89
|
+
trusted: true;
|
|
90
|
+
root: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
68
96
|
export type EventLspClientDiagnostics = {
|
|
69
97
|
type: "lsp.client.diagnostics";
|
|
70
98
|
properties: {
|
|
@@ -751,6 +779,40 @@ export type Pty = {
|
|
|
751
779
|
command: string;
|
|
752
780
|
args: Array<string>;
|
|
753
781
|
cwd: string;
|
|
782
|
+
projectID: string;
|
|
783
|
+
sessionID: string;
|
|
784
|
+
authority: {
|
|
785
|
+
allowed: boolean;
|
|
786
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
787
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
788
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
789
|
+
projectID: string;
|
|
790
|
+
sessionID: string;
|
|
791
|
+
trustRevision: number;
|
|
792
|
+
grantRevision: number;
|
|
793
|
+
generation: string;
|
|
794
|
+
workspace: string;
|
|
795
|
+
writable: Array<string>;
|
|
796
|
+
sandbox: {
|
|
797
|
+
enabled: boolean;
|
|
798
|
+
network: "allow" | "deny";
|
|
799
|
+
allowWrite: Array<string>;
|
|
800
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
801
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
802
|
+
available: boolean;
|
|
803
|
+
enforced: boolean;
|
|
804
|
+
};
|
|
805
|
+
remediation?: {
|
|
806
|
+
code: "trust_project_required";
|
|
807
|
+
message: string;
|
|
808
|
+
method: "PUT";
|
|
809
|
+
path: string;
|
|
810
|
+
body: {
|
|
811
|
+
trusted: true;
|
|
812
|
+
root: string;
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
};
|
|
754
816
|
status: "running" | "exited";
|
|
755
817
|
pid: number;
|
|
756
818
|
};
|
|
@@ -792,7 +854,7 @@ export type EventWorktreeFailed = {
|
|
|
792
854
|
message: string;
|
|
793
855
|
};
|
|
794
856
|
};
|
|
795
|
-
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventSessionFilesystemChanged | EventFileEdited | EventVcsBranchUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionContext | EventSessionCompaction | EventSessionCompacted | EventTodoUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSkillUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
857
|
+
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventProjectTrustChanged | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventSessionFilesystemChanged | EventFileEdited | EventVcsBranchUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionContext | EventSessionCompaction | EventSessionCompacted | EventTodoUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSkillUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
796
858
|
export type GlobalEvent = {
|
|
797
859
|
directory: string;
|
|
798
860
|
payload: Event;
|
|
@@ -1462,11 +1524,11 @@ export type LayoutConfig = "auto" | "stretch";
|
|
|
1462
1524
|
*/
|
|
1463
1525
|
export type SandboxConfig = {
|
|
1464
1526
|
/**
|
|
1465
|
-
* Run
|
|
1527
|
+
* Run local terminals, kernels, and shell commands inside an OS sandbox (macOS Seatbelt / Linux bubblewrap) that confines writes to authorized project roots. Enabled by default.
|
|
1466
1528
|
*/
|
|
1467
1529
|
enabled?: boolean;
|
|
1468
1530
|
/**
|
|
1469
|
-
* Whether sandboxed commands may reach the network. Default:
|
|
1531
|
+
* Whether sandboxed commands may reach the network. Default: deny.
|
|
1470
1532
|
*/
|
|
1471
1533
|
network?: "allow" | "deny";
|
|
1472
1534
|
/**
|
|
@@ -1474,7 +1536,7 @@ export type SandboxConfig = {
|
|
|
1474
1536
|
*/
|
|
1475
1537
|
allowWrite?: Array<string>;
|
|
1476
1538
|
/**
|
|
1477
|
-
* Behaviour when no sandbox backend exists on this platform: '
|
|
1539
|
+
* Behaviour when no sandbox backend exists on this platform: 'error' (default) refuses to run, 'warn' runs unsandboxed with a notice, and 'allow' runs unsandboxed silently.
|
|
1478
1540
|
*/
|
|
1479
1541
|
onUnavailable?: "warn" | "error" | "allow";
|
|
1480
1542
|
};
|
|
@@ -3054,6 +3116,39 @@ export type SettingsComputeJobsListResponses = {
|
|
|
3054
3116
|
};
|
|
3055
3117
|
};
|
|
3056
3118
|
capture_error?: string;
|
|
3119
|
+
session_id?: string;
|
|
3120
|
+
authority?: {
|
|
3121
|
+
allowed: boolean;
|
|
3122
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
3123
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
3124
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
3125
|
+
projectID: string;
|
|
3126
|
+
sessionID: string;
|
|
3127
|
+
trustRevision: number;
|
|
3128
|
+
grantRevision: number;
|
|
3129
|
+
generation: string;
|
|
3130
|
+
workspace: string;
|
|
3131
|
+
writable: Array<string>;
|
|
3132
|
+
sandbox: {
|
|
3133
|
+
enabled: boolean;
|
|
3134
|
+
network: "allow" | "deny";
|
|
3135
|
+
allowWrite: Array<string>;
|
|
3136
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
3137
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
3138
|
+
available: boolean;
|
|
3139
|
+
enforced: boolean;
|
|
3140
|
+
};
|
|
3141
|
+
remediation?: {
|
|
3142
|
+
code: "trust_project_required";
|
|
3143
|
+
message: string;
|
|
3144
|
+
method: "PUT";
|
|
3145
|
+
path: string;
|
|
3146
|
+
body: {
|
|
3147
|
+
trusted: true;
|
|
3148
|
+
root: string;
|
|
3149
|
+
};
|
|
3150
|
+
};
|
|
3151
|
+
};
|
|
3057
3152
|
scope?: {
|
|
3058
3153
|
directory: string;
|
|
3059
3154
|
key: string;
|
|
@@ -3090,6 +3185,7 @@ export type SettingsComputeJobsStartData = {
|
|
|
3090
3185
|
container?: string;
|
|
3091
3186
|
artifacts?: Array<string>;
|
|
3092
3187
|
checkpoint?: string;
|
|
3188
|
+
sessionID: string;
|
|
3093
3189
|
};
|
|
3094
3190
|
path?: never;
|
|
3095
3191
|
query?: {
|
|
@@ -3389,6 +3485,39 @@ export type SettingsComputeJobsStartResponses = {
|
|
|
3389
3485
|
};
|
|
3390
3486
|
};
|
|
3391
3487
|
capture_error?: string;
|
|
3488
|
+
session_id?: string;
|
|
3489
|
+
authority?: {
|
|
3490
|
+
allowed: boolean;
|
|
3491
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
3492
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
3493
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
3494
|
+
projectID: string;
|
|
3495
|
+
sessionID: string;
|
|
3496
|
+
trustRevision: number;
|
|
3497
|
+
grantRevision: number;
|
|
3498
|
+
generation: string;
|
|
3499
|
+
workspace: string;
|
|
3500
|
+
writable: Array<string>;
|
|
3501
|
+
sandbox: {
|
|
3502
|
+
enabled: boolean;
|
|
3503
|
+
network: "allow" | "deny";
|
|
3504
|
+
allowWrite: Array<string>;
|
|
3505
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
3506
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
3507
|
+
available: boolean;
|
|
3508
|
+
enforced: boolean;
|
|
3509
|
+
};
|
|
3510
|
+
remediation?: {
|
|
3511
|
+
code: "trust_project_required";
|
|
3512
|
+
message: string;
|
|
3513
|
+
method: "PUT";
|
|
3514
|
+
path: string;
|
|
3515
|
+
body: {
|
|
3516
|
+
trusted: true;
|
|
3517
|
+
root: string;
|
|
3518
|
+
};
|
|
3519
|
+
};
|
|
3520
|
+
};
|
|
3392
3521
|
scope?: {
|
|
3393
3522
|
directory: string;
|
|
3394
3523
|
key: string;
|
|
@@ -3748,6 +3877,39 @@ export type SettingsComputeJobsCancelResponses = {
|
|
|
3748
3877
|
};
|
|
3749
3878
|
};
|
|
3750
3879
|
capture_error?: string;
|
|
3880
|
+
session_id?: string;
|
|
3881
|
+
authority?: {
|
|
3882
|
+
allowed: boolean;
|
|
3883
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
3884
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
3885
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
3886
|
+
projectID: string;
|
|
3887
|
+
sessionID: string;
|
|
3888
|
+
trustRevision: number;
|
|
3889
|
+
grantRevision: number;
|
|
3890
|
+
generation: string;
|
|
3891
|
+
workspace: string;
|
|
3892
|
+
writable: Array<string>;
|
|
3893
|
+
sandbox: {
|
|
3894
|
+
enabled: boolean;
|
|
3895
|
+
network: "allow" | "deny";
|
|
3896
|
+
allowWrite: Array<string>;
|
|
3897
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
3898
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
3899
|
+
available: boolean;
|
|
3900
|
+
enforced: boolean;
|
|
3901
|
+
};
|
|
3902
|
+
remediation?: {
|
|
3903
|
+
code: "trust_project_required";
|
|
3904
|
+
message: string;
|
|
3905
|
+
method: "PUT";
|
|
3906
|
+
path: string;
|
|
3907
|
+
body: {
|
|
3908
|
+
trusted: true;
|
|
3909
|
+
root: string;
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3751
3913
|
scope?: {
|
|
3752
3914
|
directory: string;
|
|
3753
3915
|
key: string;
|
|
@@ -4067,6 +4229,7 @@ export type ProjectTrustGetResponses = {
|
|
|
4067
4229
|
200: {
|
|
4068
4230
|
projectID: string;
|
|
4069
4231
|
root: string;
|
|
4232
|
+
revision: number;
|
|
4070
4233
|
state: "trusted" | "untrusted" | "revoked";
|
|
4071
4234
|
source: "default" | "persisted";
|
|
4072
4235
|
canExecuteProjectCode: boolean;
|
|
@@ -4124,6 +4287,7 @@ export type ProjectTrustUpdateResponses = {
|
|
|
4124
4287
|
200: {
|
|
4125
4288
|
projectID: string;
|
|
4126
4289
|
root: string;
|
|
4290
|
+
revision: number;
|
|
4127
4291
|
state: "trusted" | "untrusted" | "revoked";
|
|
4128
4292
|
source: "default" | "persisted";
|
|
4129
4293
|
canExecuteProjectCode: boolean;
|
|
@@ -4145,6 +4309,63 @@ export type ProjectTrustUpdateResponses = {
|
|
|
4145
4309
|
};
|
|
4146
4310
|
};
|
|
4147
4311
|
export type ProjectTrustUpdateResponse = ProjectTrustUpdateResponses[keyof ProjectTrustUpdateResponses];
|
|
4312
|
+
export type ProjectExecutionData = {
|
|
4313
|
+
body?: never;
|
|
4314
|
+
path: {
|
|
4315
|
+
projectID: string;
|
|
4316
|
+
};
|
|
4317
|
+
query: {
|
|
4318
|
+
directory?: string;
|
|
4319
|
+
sessionID: string;
|
|
4320
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
4321
|
+
};
|
|
4322
|
+
url: "/project/{projectID}/execution";
|
|
4323
|
+
};
|
|
4324
|
+
export type ProjectExecutionErrors = {
|
|
4325
|
+
/**
|
|
4326
|
+
* Not found
|
|
4327
|
+
*/
|
|
4328
|
+
404: NotFoundError;
|
|
4329
|
+
};
|
|
4330
|
+
export type ProjectExecutionError = ProjectExecutionErrors[keyof ProjectExecutionErrors];
|
|
4331
|
+
export type ProjectExecutionResponses = {
|
|
4332
|
+
/**
|
|
4333
|
+
* Effective process authority
|
|
4334
|
+
*/
|
|
4335
|
+
200: {
|
|
4336
|
+
allowed: boolean;
|
|
4337
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
4338
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
4339
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
4340
|
+
projectID: string;
|
|
4341
|
+
sessionID: string;
|
|
4342
|
+
trustRevision: number;
|
|
4343
|
+
grantRevision: number;
|
|
4344
|
+
generation: string;
|
|
4345
|
+
workspace: string;
|
|
4346
|
+
writable: Array<string>;
|
|
4347
|
+
sandbox: {
|
|
4348
|
+
enabled: boolean;
|
|
4349
|
+
network: "allow" | "deny";
|
|
4350
|
+
allowWrite: Array<string>;
|
|
4351
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
4352
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
4353
|
+
available: boolean;
|
|
4354
|
+
enforced: boolean;
|
|
4355
|
+
};
|
|
4356
|
+
remediation?: {
|
|
4357
|
+
code: "trust_project_required";
|
|
4358
|
+
message: string;
|
|
4359
|
+
method: "PUT";
|
|
4360
|
+
path: string;
|
|
4361
|
+
body: {
|
|
4362
|
+
trusted: true;
|
|
4363
|
+
root: string;
|
|
4364
|
+
};
|
|
4365
|
+
};
|
|
4366
|
+
};
|
|
4367
|
+
};
|
|
4368
|
+
export type ProjectExecutionResponse = ProjectExecutionResponses[keyof ProjectExecutionResponses];
|
|
4148
4369
|
export type ProjectUpdateData = {
|
|
4149
4370
|
body?: {
|
|
4150
4371
|
name?: string;
|
|
@@ -4203,13 +4424,8 @@ export type PtyListResponses = {
|
|
|
4203
4424
|
export type PtyListResponse = PtyListResponses[keyof PtyListResponses];
|
|
4204
4425
|
export type PtyCreateData = {
|
|
4205
4426
|
body?: {
|
|
4206
|
-
|
|
4207
|
-
args?: Array<string>;
|
|
4208
|
-
cwd?: string;
|
|
4427
|
+
sessionID: string;
|
|
4209
4428
|
title?: string;
|
|
4210
|
-
env?: {
|
|
4211
|
-
[key: string]: string;
|
|
4212
|
-
};
|
|
4213
4429
|
};
|
|
4214
4430
|
path?: never;
|
|
4215
4431
|
query?: {
|
|
@@ -6993,6 +7209,38 @@ export type NotebookKernelsResponses = {
|
|
|
6993
7209
|
process_identity_verified: boolean | null;
|
|
6994
7210
|
started_at: number | null;
|
|
6995
7211
|
last_activity_at: number | null;
|
|
7212
|
+
authority: {
|
|
7213
|
+
allowed: boolean;
|
|
7214
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7215
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7216
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7217
|
+
projectID: string;
|
|
7218
|
+
sessionID: string;
|
|
7219
|
+
trustRevision: number;
|
|
7220
|
+
grantRevision: number;
|
|
7221
|
+
generation: string;
|
|
7222
|
+
workspace: string;
|
|
7223
|
+
writable: Array<string>;
|
|
7224
|
+
sandbox: {
|
|
7225
|
+
enabled: boolean;
|
|
7226
|
+
network: "allow" | "deny";
|
|
7227
|
+
allowWrite: Array<string>;
|
|
7228
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7229
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7230
|
+
available: boolean;
|
|
7231
|
+
enforced: boolean;
|
|
7232
|
+
};
|
|
7233
|
+
remediation?: {
|
|
7234
|
+
code: "trust_project_required";
|
|
7235
|
+
message: string;
|
|
7236
|
+
method: "PUT";
|
|
7237
|
+
path: string;
|
|
7238
|
+
body: {
|
|
7239
|
+
trusted: true;
|
|
7240
|
+
root: string;
|
|
7241
|
+
};
|
|
7242
|
+
};
|
|
7243
|
+
} | null;
|
|
6996
7244
|
resources?: {
|
|
6997
7245
|
cpu_percent?: number;
|
|
6998
7246
|
memory_bytes?: number;
|
|
@@ -7052,6 +7300,38 @@ export type NotebookKernelRestartResponses = {
|
|
|
7052
7300
|
process_identity_verified: boolean | null;
|
|
7053
7301
|
started_at: number | null;
|
|
7054
7302
|
last_activity_at: number | null;
|
|
7303
|
+
authority: {
|
|
7304
|
+
allowed: boolean;
|
|
7305
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7306
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7307
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7308
|
+
projectID: string;
|
|
7309
|
+
sessionID: string;
|
|
7310
|
+
trustRevision: number;
|
|
7311
|
+
grantRevision: number;
|
|
7312
|
+
generation: string;
|
|
7313
|
+
workspace: string;
|
|
7314
|
+
writable: Array<string>;
|
|
7315
|
+
sandbox: {
|
|
7316
|
+
enabled: boolean;
|
|
7317
|
+
network: "allow" | "deny";
|
|
7318
|
+
allowWrite: Array<string>;
|
|
7319
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7320
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7321
|
+
available: boolean;
|
|
7322
|
+
enforced: boolean;
|
|
7323
|
+
};
|
|
7324
|
+
remediation?: {
|
|
7325
|
+
code: "trust_project_required";
|
|
7326
|
+
message: string;
|
|
7327
|
+
method: "PUT";
|
|
7328
|
+
path: string;
|
|
7329
|
+
body: {
|
|
7330
|
+
trusted: true;
|
|
7331
|
+
root: string;
|
|
7332
|
+
};
|
|
7333
|
+
};
|
|
7334
|
+
} | null;
|
|
7055
7335
|
resources?: {
|
|
7056
7336
|
cpu_percent?: number;
|
|
7057
7337
|
memory_bytes?: number;
|
|
@@ -7110,6 +7390,38 @@ export type NotebookKernelStopResponses = {
|
|
|
7110
7390
|
process_identity_verified: boolean | null;
|
|
7111
7391
|
started_at: number | null;
|
|
7112
7392
|
last_activity_at: number | null;
|
|
7393
|
+
authority: {
|
|
7394
|
+
allowed: boolean;
|
|
7395
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7396
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7397
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7398
|
+
projectID: string;
|
|
7399
|
+
sessionID: string;
|
|
7400
|
+
trustRevision: number;
|
|
7401
|
+
grantRevision: number;
|
|
7402
|
+
generation: string;
|
|
7403
|
+
workspace: string;
|
|
7404
|
+
writable: Array<string>;
|
|
7405
|
+
sandbox: {
|
|
7406
|
+
enabled: boolean;
|
|
7407
|
+
network: "allow" | "deny";
|
|
7408
|
+
allowWrite: Array<string>;
|
|
7409
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7410
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7411
|
+
available: boolean;
|
|
7412
|
+
enforced: boolean;
|
|
7413
|
+
};
|
|
7414
|
+
remediation?: {
|
|
7415
|
+
code: "trust_project_required";
|
|
7416
|
+
message: string;
|
|
7417
|
+
method: "PUT";
|
|
7418
|
+
path: string;
|
|
7419
|
+
body: {
|
|
7420
|
+
trusted: true;
|
|
7421
|
+
root: string;
|
|
7422
|
+
};
|
|
7423
|
+
};
|
|
7424
|
+
} | null;
|
|
7113
7425
|
resources?: {
|
|
7114
7426
|
cpu_percent?: number;
|
|
7115
7427
|
memory_bytes?: number;
|
|
@@ -7168,6 +7480,38 @@ export type NotebookKernelInterruptResponses = {
|
|
|
7168
7480
|
process_identity_verified: boolean | null;
|
|
7169
7481
|
started_at: number | null;
|
|
7170
7482
|
last_activity_at: number | null;
|
|
7483
|
+
authority: {
|
|
7484
|
+
allowed: boolean;
|
|
7485
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7486
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7487
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7488
|
+
projectID: string;
|
|
7489
|
+
sessionID: string;
|
|
7490
|
+
trustRevision: number;
|
|
7491
|
+
grantRevision: number;
|
|
7492
|
+
generation: string;
|
|
7493
|
+
workspace: string;
|
|
7494
|
+
writable: Array<string>;
|
|
7495
|
+
sandbox: {
|
|
7496
|
+
enabled: boolean;
|
|
7497
|
+
network: "allow" | "deny";
|
|
7498
|
+
allowWrite: Array<string>;
|
|
7499
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7500
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7501
|
+
available: boolean;
|
|
7502
|
+
enforced: boolean;
|
|
7503
|
+
};
|
|
7504
|
+
remediation?: {
|
|
7505
|
+
code: "trust_project_required";
|
|
7506
|
+
message: string;
|
|
7507
|
+
method: "PUT";
|
|
7508
|
+
path: string;
|
|
7509
|
+
body: {
|
|
7510
|
+
trusted: true;
|
|
7511
|
+
root: string;
|
|
7512
|
+
};
|
|
7513
|
+
};
|
|
7514
|
+
} | null;
|
|
7171
7515
|
resources?: {
|
|
7172
7516
|
cpu_percent?: number;
|
|
7173
7517
|
memory_bytes?: number;
|
|
@@ -7264,6 +7608,38 @@ export type NotebookStatusResponses = {
|
|
|
7264
7608
|
process_identity_verified: boolean | null;
|
|
7265
7609
|
started_at: number | null;
|
|
7266
7610
|
last_activity_at: number | null;
|
|
7611
|
+
authority: {
|
|
7612
|
+
allowed: boolean;
|
|
7613
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7614
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7615
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7616
|
+
projectID: string;
|
|
7617
|
+
sessionID: string;
|
|
7618
|
+
trustRevision: number;
|
|
7619
|
+
grantRevision: number;
|
|
7620
|
+
generation: string;
|
|
7621
|
+
workspace: string;
|
|
7622
|
+
writable: Array<string>;
|
|
7623
|
+
sandbox: {
|
|
7624
|
+
enabled: boolean;
|
|
7625
|
+
network: "allow" | "deny";
|
|
7626
|
+
allowWrite: Array<string>;
|
|
7627
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7628
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7629
|
+
available: boolean;
|
|
7630
|
+
enforced: boolean;
|
|
7631
|
+
};
|
|
7632
|
+
remediation?: {
|
|
7633
|
+
code: "trust_project_required";
|
|
7634
|
+
message: string;
|
|
7635
|
+
method: "PUT";
|
|
7636
|
+
path: string;
|
|
7637
|
+
body: {
|
|
7638
|
+
trusted: true;
|
|
7639
|
+
root: string;
|
|
7640
|
+
};
|
|
7641
|
+
};
|
|
7642
|
+
} | null;
|
|
7267
7643
|
resources?: {
|
|
7268
7644
|
cpu_percent?: number;
|
|
7269
7645
|
memory_bytes?: number;
|
|
@@ -7322,6 +7698,38 @@ export type NotebookRestartResponses = {
|
|
|
7322
7698
|
process_identity_verified: boolean | null;
|
|
7323
7699
|
started_at: number | null;
|
|
7324
7700
|
last_activity_at: number | null;
|
|
7701
|
+
authority: {
|
|
7702
|
+
allowed: boolean;
|
|
7703
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7704
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7705
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7706
|
+
projectID: string;
|
|
7707
|
+
sessionID: string;
|
|
7708
|
+
trustRevision: number;
|
|
7709
|
+
grantRevision: number;
|
|
7710
|
+
generation: string;
|
|
7711
|
+
workspace: string;
|
|
7712
|
+
writable: Array<string>;
|
|
7713
|
+
sandbox: {
|
|
7714
|
+
enabled: boolean;
|
|
7715
|
+
network: "allow" | "deny";
|
|
7716
|
+
allowWrite: Array<string>;
|
|
7717
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7718
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7719
|
+
available: boolean;
|
|
7720
|
+
enforced: boolean;
|
|
7721
|
+
};
|
|
7722
|
+
remediation?: {
|
|
7723
|
+
code: "trust_project_required";
|
|
7724
|
+
message: string;
|
|
7725
|
+
method: "PUT";
|
|
7726
|
+
path: string;
|
|
7727
|
+
body: {
|
|
7728
|
+
trusted: true;
|
|
7729
|
+
root: string;
|
|
7730
|
+
};
|
|
7731
|
+
};
|
|
7732
|
+
} | null;
|
|
7325
7733
|
resources?: {
|
|
7326
7734
|
cpu_percent?: number;
|
|
7327
7735
|
memory_bytes?: number;
|
|
@@ -7380,6 +7788,38 @@ export type NotebookStopResponses = {
|
|
|
7380
7788
|
process_identity_verified: boolean | null;
|
|
7381
7789
|
started_at: number | null;
|
|
7382
7790
|
last_activity_at: number | null;
|
|
7791
|
+
authority: {
|
|
7792
|
+
allowed: boolean;
|
|
7793
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7794
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7795
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7796
|
+
projectID: string;
|
|
7797
|
+
sessionID: string;
|
|
7798
|
+
trustRevision: number;
|
|
7799
|
+
grantRevision: number;
|
|
7800
|
+
generation: string;
|
|
7801
|
+
workspace: string;
|
|
7802
|
+
writable: Array<string>;
|
|
7803
|
+
sandbox: {
|
|
7804
|
+
enabled: boolean;
|
|
7805
|
+
network: "allow" | "deny";
|
|
7806
|
+
allowWrite: Array<string>;
|
|
7807
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7808
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7809
|
+
available: boolean;
|
|
7810
|
+
enforced: boolean;
|
|
7811
|
+
};
|
|
7812
|
+
remediation?: {
|
|
7813
|
+
code: "trust_project_required";
|
|
7814
|
+
message: string;
|
|
7815
|
+
method: "PUT";
|
|
7816
|
+
path: string;
|
|
7817
|
+
body: {
|
|
7818
|
+
trusted: true;
|
|
7819
|
+
root: string;
|
|
7820
|
+
};
|
|
7821
|
+
};
|
|
7822
|
+
} | null;
|
|
7383
7823
|
resources?: {
|
|
7384
7824
|
cpu_percent?: number;
|
|
7385
7825
|
memory_bytes?: number;
|
|
@@ -7438,6 +7878,38 @@ export type NotebookInterruptResponses = {
|
|
|
7438
7878
|
process_identity_verified: boolean | null;
|
|
7439
7879
|
started_at: number | null;
|
|
7440
7880
|
last_activity_at: number | null;
|
|
7881
|
+
authority: {
|
|
7882
|
+
allowed: boolean;
|
|
7883
|
+
reason: "allowed" | "project_untrusted" | "sandbox_unavailable";
|
|
7884
|
+
capability: "terminal" | "kernel" | "shell" | "local_job" | "remote_job" | "package_install" | "project_plugin" | "project_mcp" | "project_formatter" | "project_lsp" | "provider_token_command";
|
|
7885
|
+
mode: "read_only" | "sandboxed" | "host";
|
|
7886
|
+
projectID: string;
|
|
7887
|
+
sessionID: string;
|
|
7888
|
+
trustRevision: number;
|
|
7889
|
+
grantRevision: number;
|
|
7890
|
+
generation: string;
|
|
7891
|
+
workspace: string;
|
|
7892
|
+
writable: Array<string>;
|
|
7893
|
+
sandbox: {
|
|
7894
|
+
enabled: boolean;
|
|
7895
|
+
network: "allow" | "deny";
|
|
7896
|
+
allowWrite: Array<string>;
|
|
7897
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
7898
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
7899
|
+
available: boolean;
|
|
7900
|
+
enforced: boolean;
|
|
7901
|
+
};
|
|
7902
|
+
remediation?: {
|
|
7903
|
+
code: "trust_project_required";
|
|
7904
|
+
message: string;
|
|
7905
|
+
method: "PUT";
|
|
7906
|
+
path: string;
|
|
7907
|
+
body: {
|
|
7908
|
+
trusted: true;
|
|
7909
|
+
root: string;
|
|
7910
|
+
};
|
|
7911
|
+
};
|
|
7912
|
+
} | null;
|
|
7441
7913
|
resources?: {
|
|
7442
7914
|
cpu_percent?: number;
|
|
7443
7915
|
memory_bytes?: number;
|