@inferencesh/sdk 0.38.5 → 0.38.6
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/types.d.ts +94 -5
- package/dist/types.js +30 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -23,9 +23,11 @@ export interface InternalToolsConfig {
|
|
|
23
23
|
* (Remote on), declared as an app's credentials are (provider slug,
|
|
24
24
|
* scopes): the runner's own, as a task of theirs resolves it; a runner
|
|
25
25
|
* with none is asked to connect it and the call waits. None declared,
|
|
26
|
-
* none given. The model's arguments never add any.
|
|
26
|
+
* none given. The model's arguments never add any. Each entry's mode
|
|
27
|
+
* says when the box gets it: auto (the default) at once, ask on first
|
|
28
|
+
* use once a person approves it (SandboxCredential).
|
|
27
29
|
*/
|
|
28
|
-
sandbox_credentials?:
|
|
30
|
+
sandbox_credentials?: SandboxCredential[];
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
33
|
* AgentPermissions is what an agent's new chats in its own workspace may do
|
|
@@ -3100,7 +3102,7 @@ export interface WorkerRAM {
|
|
|
3100
3102
|
* a task lists the ones it needs (Task.Requires); the scheduler only sends
|
|
3101
3103
|
* a task to an engine that has every one it needs.
|
|
3102
3104
|
*/
|
|
3103
|
-
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity";
|
|
3105
|
+
export type EngineCapability = "egress_gateway" | "sandboxes" | "capacity" | "egress_pending";
|
|
3104
3106
|
/**
|
|
3105
3107
|
* EngineCapabilityEgressGateway: the engine runs its sandboxes behind
|
|
3106
3108
|
* the egress gateway, so it can take bound secrets (the v2 secrets
|
|
@@ -3117,6 +3119,14 @@ export declare const EngineCapabilitySandboxes: EngineCapability;
|
|
|
3117
3119
|
* (INF-1156).
|
|
3118
3120
|
*/
|
|
3119
3121
|
export declare const EngineCapabilityCapacity: EngineCapability;
|
|
3122
|
+
/**
|
|
3123
|
+
* EngineCapabilityEgressPending: the engine's gateway takes pending
|
|
3124
|
+
* bound secrets (BoundSecret.Pending: no value) and fetches each value
|
|
3125
|
+
* on first use through POST /engines/{id}/egress/resolve, with the
|
|
3126
|
+
* triggers EgressTrigger names; it also reports the hosts its boxes
|
|
3127
|
+
* reach (POST /engines/{id}/egress/hosts) (INF-1173).
|
|
3128
|
+
*/
|
|
3129
|
+
export declare const EngineCapabilityEgressPending: EngineCapability;
|
|
3120
3130
|
/**
|
|
3121
3131
|
* EngineCapabilities is a set of capabilities, kept as a list. Nil and
|
|
3122
3132
|
* empty are the same: nothing beyond the base contract.
|
|
@@ -5110,7 +5120,76 @@ export interface CreateSandboxRequest {
|
|
|
5110
5120
|
* engine's gateway places the values toward those hosts and renews
|
|
5111
5121
|
* the ones that expire, always from the login chosen here.
|
|
5112
5122
|
*/
|
|
5113
|
-
credentials?:
|
|
5123
|
+
credentials?: SandboxCredential[];
|
|
5124
|
+
}
|
|
5125
|
+
/**
|
|
5126
|
+
* SandboxCredentialMode is when a sandbox's login is given to its box.
|
|
5127
|
+
*/
|
|
5128
|
+
export type SandboxCredentialMode = "auto" | "ask";
|
|
5129
|
+
/**
|
|
5130
|
+
* SandboxCredentialAuto (the default): the login is chosen when the
|
|
5131
|
+
* sandbox is made and given without asking.
|
|
5132
|
+
*/
|
|
5133
|
+
export declare const SandboxCredentialAuto: SandboxCredentialMode;
|
|
5134
|
+
/**
|
|
5135
|
+
* SandboxCredentialAsk: the box gets the login on first use, once a
|
|
5136
|
+
* person approves it on the tool call running there; a run nobody
|
|
5137
|
+
* watches (a trigger, a schedule) never gets it (INF-1173). Needs an
|
|
5138
|
+
* engine with EngineCapabilityEgressPending.
|
|
5139
|
+
*/
|
|
5140
|
+
export declare const SandboxCredentialAsk: SandboxCredentialMode;
|
|
5141
|
+
/**
|
|
5142
|
+
* SandboxCredential is a login a sandbox's box gets: a requirement by
|
|
5143
|
+
* provider, as an app declares one, and when it is given (Mode, auto when
|
|
5144
|
+
* unset). It reads and writes as the requirement's fields plus "mode", so
|
|
5145
|
+
* a plain requirement is an auto one.
|
|
5146
|
+
*/
|
|
5147
|
+
export interface SandboxCredential {
|
|
5148
|
+
slug?: string;
|
|
5149
|
+
capabilities?: string[];
|
|
5150
|
+
description?: string;
|
|
5151
|
+
optional?: boolean;
|
|
5152
|
+
secrets?: string[];
|
|
5153
|
+
scopes?: string[];
|
|
5154
|
+
/**
|
|
5155
|
+
* Provider describes the company the credential belongs to, for a
|
|
5156
|
+
* catalog row that does not exist yet. Its slug defaults to the
|
|
5157
|
+
* credential slug.
|
|
5158
|
+
*/
|
|
5159
|
+
provider?: CompanySeed;
|
|
5160
|
+
/**
|
|
5161
|
+
* Auth is the credential's auth provider, for a slug no row defines yet.
|
|
5162
|
+
*/
|
|
5163
|
+
auth?: AuthMethod;
|
|
5164
|
+
/**
|
|
5165
|
+
* The rest describe the platform api_key scheme a platform app's deploy
|
|
5166
|
+
* catalogues for the slug: set on the scheme it creates, and filled into
|
|
5167
|
+
* an existing one only where that is still empty (an admin's edit
|
|
5168
|
+
* stands). Any other deploy ignores them.
|
|
5169
|
+
* DisplayName is the scheme's name ("Claude Code"); at most
|
|
5170
|
+
* MaxCredentialDisplayName characters.
|
|
5171
|
+
*/
|
|
5172
|
+
display_name?: string;
|
|
5173
|
+
/**
|
|
5174
|
+
* ConnectionScope is who a connection belongs to: team (empty) or user.
|
|
5175
|
+
*/
|
|
5176
|
+
connection_scope?: CredentialScope;
|
|
5177
|
+
/**
|
|
5178
|
+
* Instructions tell a person how to get the key (markdown, at most
|
|
5179
|
+
* MaxAuthProviderInstructions characters).
|
|
5180
|
+
*/
|
|
5181
|
+
instructions?: string;
|
|
5182
|
+
/**
|
|
5183
|
+
* DocsURL is the scheme's documentation link.
|
|
5184
|
+
*/
|
|
5185
|
+
docs_url?: string;
|
|
5186
|
+
/**
|
|
5187
|
+
* ExpiresAfterDays is how long a saved key lasts: it counts as expired
|
|
5188
|
+
* this many days after it is saved. 0 is never; at most
|
|
5189
|
+
* MaxExpiresAfterDays.
|
|
5190
|
+
*/
|
|
5191
|
+
expires_after_days?: number;
|
|
5192
|
+
mode?: SandboxCredentialMode;
|
|
5114
5193
|
}
|
|
5115
5194
|
/**
|
|
5116
5195
|
* SandboxDTO is the API response for a sandbox.
|
|
@@ -7290,6 +7369,16 @@ export declare const InterruptResourceTurn: InterruptResourceType;
|
|
|
7290
7369
|
* wait call (InterruptResourceToolInvocation).
|
|
7291
7370
|
*/
|
|
7292
7371
|
export declare const InterruptReasonWait: InterruptReason;
|
|
7372
|
+
/**
|
|
7373
|
+
* InterruptReasonEgressLogin asks whether a sandbox's box gets one of its
|
|
7374
|
+
* owner's logins, on the tool call running there (a remote_exec) when the
|
|
7375
|
+
* box first reaches the login's host (INF-1173). Its resource is that call
|
|
7376
|
+
* (InterruptResourceToolInvocation), which keeps running: the engine holds
|
|
7377
|
+
* the request until the answer, and asks for it again
|
|
7378
|
+
* (POST /engines/{id}/egress/resolve). Allow gives the login, deny or no
|
|
7379
|
+
* answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
|
|
7380
|
+
*/
|
|
7381
|
+
export declare const InterruptReasonEgressLogin: InterruptReason;
|
|
7293
7382
|
/**
|
|
7294
7383
|
* MergeStrategy defines how a delta field should be merged by consumers.
|
|
7295
7384
|
*/
|
|
@@ -8565,7 +8654,7 @@ export declare const AgentRunStateRejected: AgentRunState;
|
|
|
8565
8654
|
* InterruptReason describes why an agent run is in an interrupted state.
|
|
8566
8655
|
* Aligns with AG-UI interrupt outcome reasons.
|
|
8567
8656
|
*/
|
|
8568
|
-
export type InterruptReason = "wait" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
|
|
8657
|
+
export type InterruptReason = "wait" | "egress_login" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
|
|
8569
8658
|
export declare const InterruptReasonToolApproval: InterruptReason;
|
|
8570
8659
|
export declare const InterruptReasonClientTool: InterruptReason;
|
|
8571
8660
|
export declare const InterruptReasonWidget: InterruptReason;
|
package/dist/types.js
CHANGED
|
@@ -454,6 +454,14 @@ export const EngineCapabilitySandboxes = "sandboxes";
|
|
|
454
454
|
* (INF-1156).
|
|
455
455
|
*/
|
|
456
456
|
export const EngineCapabilityCapacity = "capacity";
|
|
457
|
+
/**
|
|
458
|
+
* EngineCapabilityEgressPending: the engine's gateway takes pending
|
|
459
|
+
* bound secrets (BoundSecret.Pending: no value) and fetches each value
|
|
460
|
+
* on first use through POST /engines/{id}/egress/resolve, with the
|
|
461
|
+
* triggers EgressTrigger names; it also reports the hosts its boxes
|
|
462
|
+
* reach (POST /engines/{id}/egress/hosts) (INF-1173).
|
|
463
|
+
*/
|
|
464
|
+
export const EngineCapabilityEgressPending = "egress_pending";
|
|
457
465
|
export const ErrorCodeInvalidRequest = "invalid_request";
|
|
458
466
|
export const ErrorCodeValidationError = "validation_error";
|
|
459
467
|
export const ErrorCodeUnauthorized = "unauthorized";
|
|
@@ -785,6 +793,18 @@ export const SandboxStatusFailed = "failed";
|
|
|
785
793
|
export const SandboxDesiredRunning = "running";
|
|
786
794
|
export const SandboxDesiredStopped = "stopped";
|
|
787
795
|
export const SandboxDesiredDeleted = "deleted";
|
|
796
|
+
/**
|
|
797
|
+
* SandboxCredentialAuto (the default): the login is chosen when the
|
|
798
|
+
* sandbox is made and given without asking.
|
|
799
|
+
*/
|
|
800
|
+
export const SandboxCredentialAuto = "auto";
|
|
801
|
+
/**
|
|
802
|
+
* SandboxCredentialAsk: the box gets the login on first use, once a
|
|
803
|
+
* person approves it on the tool call running there; a run nobody
|
|
804
|
+
* watches (a trigger, a schedule) never gets it (INF-1173). Needs an
|
|
805
|
+
* engine with EngineCapabilityEgressPending.
|
|
806
|
+
*/
|
|
807
|
+
export const SandboxCredentialAsk = "ask";
|
|
788
808
|
/**
|
|
789
809
|
* UpdateRequested: the request was sent and nothing has answered it yet.
|
|
790
810
|
* An engine older than engine_update_result never answers, so its update stays here.
|
|
@@ -1218,6 +1238,16 @@ export const InterruptResourceTurn = "turn";
|
|
|
1218
1238
|
* wait call (InterruptResourceToolInvocation).
|
|
1219
1239
|
*/
|
|
1220
1240
|
export const InterruptReasonWait = "wait";
|
|
1241
|
+
/**
|
|
1242
|
+
* InterruptReasonEgressLogin asks whether a sandbox's box gets one of its
|
|
1243
|
+
* owner's logins, on the tool call running there (a remote_exec) when the
|
|
1244
|
+
* box first reaches the login's host (INF-1173). Its resource is that call
|
|
1245
|
+
* (InterruptResourceToolInvocation), which keeps running: the engine holds
|
|
1246
|
+
* the request until the answer, and asks for it again
|
|
1247
|
+
* (POST /engines/{id}/egress/resolve). Allow gives the login, deny or no
|
|
1248
|
+
* answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
|
|
1249
|
+
*/
|
|
1250
|
+
export const InterruptReasonEgressLogin = "egress_login";
|
|
1221
1251
|
export const MergeStrategyConcat = "concat";
|
|
1222
1252
|
export const MergeStrategyReplace = "replace";
|
|
1223
1253
|
export const MergeStrategyIndexed = "indexed";
|