@opengeni/core 0.8.0 → 0.11.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/index.d.ts +148 -6
- package/dist/index.js +827 -127
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/application/new-session-drafts.ts +126 -0
- package/src/application/session-commands.ts +2 -0
- package/src/dependencies.ts +2 -0
- package/src/domain/resources.ts +32 -1
- package/src/domain/scheduled-tasks.ts +27 -9
- package/src/domain/session-tool-policy.ts +211 -0
- package/src/domain/sessions.ts +369 -84
- package/src/index.ts +2 -0
- package/src/sandbox/fleet.ts +149 -39
- package/src/sandbox/routing.ts +261 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Settings } from '@opengeni/config';
|
|
2
|
-
import { ScheduledTask, Document, GitHubAppApiPort, ConnectionCredentialsPort, SessionAuthorizationPort, Permission, AccessContext, AccessGrant, SessionAuthorizationActor, SessionAuthorizationTarget, SessionAuthorizationOperation, SessionAuthorizationSurface, SessionAuthorizationListScope, LimitAction, LimitDecision, TurnInitiator, TurnInitiatorContext, SessionTurnSource, CapabilityCatalogItem, CapabilityInstallation, CapabilityCatalogResponse, CreateCapabilityCatalogItemRequest, EnableCapabilityRequest, VariableSet, Rig, RigVersion, CreateRigRequest, RigDefinitionEditPayload, RigChange, ProposeRigChangeRequest, UpdateRigRequest, CapabilityPack, SocialConnection, ScheduledTaskAgentConfig, ToolRef, ResourceRef, CreateScheduledTaskRequest, UpdateScheduledTaskRequest, ReasoningEffort, SessionMcpCredentialUpdateInput, SessionEvent, SessionTurn, GoalSpec, SessionMcpServerMetadata,
|
|
2
|
+
import { ScheduledTask, Document, GitHubAppApiPort, ConnectionCredentialsPort, SessionAuthorizationPort, Permission, AccessContext, AccessGrant, SessionAuthorizationActor, SessionAuthorizationTarget, SessionAuthorizationOperation, SessionAuthorizationSurface, SessionAuthorizationListScope, LimitAction, LimitDecision, TurnInitiator, TurnInitiatorContext, SessionTurnSource, CapabilityCatalogItem, CapabilityInstallation, CapabilityCatalogResponse, CreateCapabilityCatalogItemRequest, EnableCapabilityRequest, VariableSet, Rig, RigVersion, CreateRigRequest, RigDefinitionEditPayload, RigChange, ProposeRigChangeRequest, UpdateRigRequest, CapabilityPack, SocialConnection, ScheduledTaskAgentConfig, ToolRef, ResourceRef, SessionEffectiveToolPolicy, SessionToolPolicy, Session, CreateScheduledTaskRequest, UpdateScheduledTaskRequest, SessionSpawnDenial, ReasoningEffort, SessionMcpCredentialUpdateInput, SessionEvent, SessionTurn, TurnExecutionPolicyV1, GoalSpec, SessionMcpServerMetadata, CreateSessionResponse, SessionMcpApprovalPolicy, UpdateSessionMcpApprovalPolicyResponse, WorkspaceMember, NewSessionDraft, SessionControlRequest, SessionControlResponse, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, DeleteSessionQueueItemRequest, SessionQueueMutationResponse, EditSessionQueueItemRequest, ComposerDraft, MoveSessionQueueItemRequest, SaveComposerDraftRequest, SteerSessionQueueItemRequest } from '@opengeni/contracts';
|
|
3
3
|
export { mergeToolRefs, stableJson } from '@opengeni/contracts';
|
|
4
4
|
import * as _opengeni_db from '@opengeni/db';
|
|
5
5
|
import { Database, SandboxRecord, EnabledMcpCapabilityServer, UpdateScheduledTaskInput, SessionCommandActor, CreateSessionMcpServerInput, UpdateSessionMcpServerCredentialsInput } from '@opengeni/db';
|
|
@@ -155,6 +155,8 @@ type AppDependencies = {
|
|
|
155
155
|
*/
|
|
156
156
|
sessionAuthorization?: SessionAuthorizationPort | null;
|
|
157
157
|
managedAuth?: ManagedAuth | null;
|
|
158
|
+
/** Injectable Codex HTTP transport for deterministic API/provider tests. */
|
|
159
|
+
codexFetch?: typeof fetch;
|
|
158
160
|
sandboxClient?: ApiSandboxClient;
|
|
159
161
|
/**
|
|
160
162
|
* Resume a box by id from a serialized resume_state envelope (the lease's
|
|
@@ -194,6 +196,14 @@ type FleetServices = {
|
|
|
194
196
|
db: Database;
|
|
195
197
|
settings: Settings;
|
|
196
198
|
bus?: EventBus;
|
|
199
|
+
/** API-direct readiness owner for the session's home group. Production wires
|
|
200
|
+
* this to the same viewer/provider verification + rematerialization path; core
|
|
201
|
+
* tests may omit it when exercising pointer mechanics only. */
|
|
202
|
+
ensureSessionGroupReady?: (ctx: FleetContext) => Promise<FleetReadinessHold>;
|
|
203
|
+
};
|
|
204
|
+
type FleetReadinessHold = {
|
|
205
|
+
/** Release target liveness only after route publication settles. */
|
|
206
|
+
release: () => Promise<void>;
|
|
197
207
|
};
|
|
198
208
|
type FleetContext = {
|
|
199
209
|
accountId: string;
|
|
@@ -250,6 +260,21 @@ type FleetSandboxEntry = {
|
|
|
250
260
|
/** Selfhosted only: whether a display (real/Xvfb) is present. */
|
|
251
261
|
hasDisplay?: boolean;
|
|
252
262
|
lastSeenAt?: string | null;
|
|
263
|
+
/** Orthogonal truth dimensions. `liveness` is only their conservative UI
|
|
264
|
+
* projection and is never evidence for a specific dimension. */
|
|
265
|
+
providerStatus: "not_created" | "creating" | "exists" | "missing" | "unknown";
|
|
266
|
+
leaseLiveness: "cold" | "warming" | "warm" | "draining" | null;
|
|
267
|
+
routeStatus: "attached" | "detached";
|
|
268
|
+
archiveStatus: "none" | "available" | "unverified" | "invalid";
|
|
269
|
+
restoreStatus: "not_required" | "pending" | "restoring" | "verifying" | "ready" | "degraded" | "unrecoverable";
|
|
270
|
+
workspaceStatus: "unknown" | "not_ready" | "ready" | "degraded" | "unrecoverable";
|
|
271
|
+
leaseEpoch: number | null;
|
|
272
|
+
routeEpoch: number;
|
|
273
|
+
/** Numeric/boolean persistence truth only. Archive locations, content hashes,
|
|
274
|
+
* provider identities, and storage handles are intentionally not projected. */
|
|
275
|
+
workspaceGeneration: number | null;
|
|
276
|
+
archiveGeneration: number | null;
|
|
277
|
+
archiveComplete: boolean;
|
|
253
278
|
};
|
|
254
279
|
type FleetListResult = {
|
|
255
280
|
/** The session's currently-active sandbox id, or null == the group box. */
|
|
@@ -264,7 +289,7 @@ type FleetSwapResult = {
|
|
|
264
289
|
activeSandboxId: string | null;
|
|
265
290
|
activeEpoch: number;
|
|
266
291
|
reason?: string;
|
|
267
|
-
code?: BackendUnresolvableCode | "concurrent_swap";
|
|
292
|
+
code?: BackendUnresolvableCode | "concurrent_swap" | "recovery_in_progress" | "recovery_degraded" | "recovery_unrecoverable";
|
|
268
293
|
};
|
|
269
294
|
/**
|
|
270
295
|
* List the fleet: the session's own Modal group box (a synthetic entry) + the
|
|
@@ -371,8 +396,19 @@ declare function routingEnabled(settings: Settings): boolean;
|
|
|
371
396
|
* unchanged; a selfhosted active pointer routes the op to the machine.
|
|
372
397
|
*/
|
|
373
398
|
declare function wrapChannelABoxWithRouting(services: ChannelARoutingServices, ids: {
|
|
399
|
+
accountId: string;
|
|
374
400
|
workspaceId: string;
|
|
375
401
|
sessionId: string;
|
|
402
|
+
homeLease: {
|
|
403
|
+
sandboxGroupId: string;
|
|
404
|
+
leaseEpoch: number;
|
|
405
|
+
instanceId: string;
|
|
406
|
+
backend: string;
|
|
407
|
+
};
|
|
408
|
+
directRequest: {
|
|
409
|
+
requestId: string;
|
|
410
|
+
holderId: string;
|
|
411
|
+
};
|
|
376
412
|
}, established: EstablishedSandboxSession): EstablishedSandboxSession;
|
|
377
413
|
|
|
378
414
|
type AccessDeps = {
|
|
@@ -613,10 +649,21 @@ declare function buildMarketingDailyAnalysisAgentConfig(input: {
|
|
|
613
649
|
promptInstructions?: string;
|
|
614
650
|
}): ScheduledTaskAgentConfig;
|
|
615
651
|
|
|
616
|
-
declare function validateToolRefs(tools: ToolRef[], settings:
|
|
652
|
+
declare function validateToolRefs(tools: ToolRef[], settings: McpSettings): ToolRef[];
|
|
617
653
|
type McpSettings = Pick<Settings, "mcpServers">;
|
|
618
654
|
declare function enabledCapabilityMcpToolRefs(settings: McpSettings, runtimeSettings: McpSettings): ToolRef[];
|
|
619
655
|
declare function withDefaultEnabledCapabilityMcpTools(tools: ToolRef[], settings: McpSettings, runtimeSettings: McpSettings): ToolRef[];
|
|
656
|
+
/** Drop stored refs that are no longer present in the current runtime registry. */
|
|
657
|
+
declare function availableToolRefs(tools: ToolRef[], settings: McpSettings): ToolRef[];
|
|
658
|
+
/** A child or fixed-policy follow-up may narrow its allow-list, never widen it. */
|
|
659
|
+
declare function assertToolRefsSubset(requested: ToolRef[], allowed: ToolRef[], message?: string): void;
|
|
660
|
+
/** Validate runtime availability and then enforce the durable policy fence. */
|
|
661
|
+
declare function validateToolRefsForSessionPolicy(input: {
|
|
662
|
+
requested: ToolRef[];
|
|
663
|
+
settings: McpSettings;
|
|
664
|
+
allowedTools: ToolRef[];
|
|
665
|
+
message: string;
|
|
666
|
+
}): ToolRef[];
|
|
620
667
|
declare function normalizeResources(resources: ResourceRef[]): ResourceRef[];
|
|
621
668
|
declare function mergeResourceRefs(existing: ResourceRef[], additions: ResourceRef[]): ResourceRef[];
|
|
622
669
|
declare function validateGitHubRepositorySelectionShapes(resources: ResourceRef[]): number[];
|
|
@@ -625,6 +672,34 @@ declare function validateGitHubRepositorySelectionShape(resources: ResourceRef[]
|
|
|
625
672
|
declare function validateGitHubRepositorySelection(db: Database, workspaceId: string, resources: ResourceRef[]): Promise<void>;
|
|
626
673
|
declare function validateFileResources(db: Database, workspaceId: string, resources: ResourceRef[]): Promise<void>;
|
|
627
674
|
|
|
675
|
+
type ResolvedSessionToolPolicy = {
|
|
676
|
+
toolRefs: ToolRef[];
|
|
677
|
+
effectivePolicy: SessionEffectiveToolPolicy;
|
|
678
|
+
};
|
|
679
|
+
type SessionToolPolicyInput = {
|
|
680
|
+
toolPolicy?: SessionToolPolicy | null;
|
|
681
|
+
sessionTools: ToolRef[];
|
|
682
|
+
turnTools?: ToolRef[];
|
|
683
|
+
/** Undefined preserves the legacy merge path for pre-provenance callers. */
|
|
684
|
+
turnToolsProvided?: boolean;
|
|
685
|
+
availableMcpServerIds: Iterable<string>;
|
|
686
|
+
/** Current omitted-tools defaults, intentionally narrower than all servers. */
|
|
687
|
+
defaultMcpServerIds?: Iterable<string>;
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Resolve the same ID-only policy used by API projections and worker turns.
|
|
691
|
+
* This function never receives endpoint URLs, credentials, schemas, or live
|
|
692
|
+
* probe results. `availableMcpServerIds` is the resolved runtime registry;
|
|
693
|
+
* `defaultMcpServerIds` is the capability-only omitted-tools set.
|
|
694
|
+
*/
|
|
695
|
+
declare function resolveSessionToolPolicy(input: SessionToolPolicyInput): ResolvedSessionToolPolicy;
|
|
696
|
+
/** Current full runtime registry IDs, including configured static servers. */
|
|
697
|
+
declare function workspaceSessionToolPolicyServerIds(db: Database, workspaceId: string, settings: Settings): Promise<string[]>;
|
|
698
|
+
/** Current omitted-tools defaults; this preserves capability-first behavior. */
|
|
699
|
+
declare function workspaceSessionToolPolicyDefaultServerIds(db: Database, workspaceId: string, settings: Settings): Promise<string[]>;
|
|
700
|
+
/** Add a bounded, secret-safe effective projection to a session response. */
|
|
701
|
+
declare function sessionWithEffectiveToolPolicy(session: Session, workspaceServerIds: Iterable<string>, workspaceDefaultServerIds?: Iterable<string>): Session;
|
|
702
|
+
|
|
628
703
|
/**
|
|
629
704
|
* Whether a raw scheduled-task payload explicitly set agentConfig.tools.
|
|
630
705
|
* Zod's `.default([])` erases the distinction between "absent" and
|
|
@@ -693,6 +768,36 @@ declare function manualScheduledTaskTriggerWorkflowId(taskId: string, triggerTok
|
|
|
693
768
|
*/
|
|
694
769
|
declare function manualScheduledTaskTriggerUsageKey(workspaceId: string, taskId: string, triggerToken: string): string;
|
|
695
770
|
|
|
771
|
+
/** Transport-neutral typed denial raised only after its audit row committed. */
|
|
772
|
+
declare class SessionSpawnDeniedError extends Error {
|
|
773
|
+
readonly denial: SessionSpawnDenial;
|
|
774
|
+
constructor(denial: SessionSpawnDenial);
|
|
775
|
+
}
|
|
776
|
+
declare function sessionSpawnDenialEnvelope(error: SessionSpawnDeniedError): {
|
|
777
|
+
readonly error: {
|
|
778
|
+
readonly code: "nested_agent_depth_exceeded" | "nested_agent_depth_override_forbidden";
|
|
779
|
+
readonly message: string;
|
|
780
|
+
readonly details: {
|
|
781
|
+
readonly denial: {
|
|
782
|
+
id: string;
|
|
783
|
+
accountId: string;
|
|
784
|
+
workspaceId: string;
|
|
785
|
+
parentSessionId: string | null;
|
|
786
|
+
rootSessionId: string | null;
|
|
787
|
+
currentDepth: number;
|
|
788
|
+
attemptedDepth: number;
|
|
789
|
+
effectiveMaxNestedAgentDepth: number;
|
|
790
|
+
requestedMaxNestedAgentDepthOverride: number | null;
|
|
791
|
+
policySource: "default" | "session" | "workspace" | "deployment";
|
|
792
|
+
policySessionId: string | null;
|
|
793
|
+
subjectId: string | null;
|
|
794
|
+
code: "nested_agent_depth_exceeded" | "nested_agent_depth_override_forbidden";
|
|
795
|
+
idempotencyKey: string | null;
|
|
796
|
+
createdAt: string;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
};
|
|
696
801
|
declare function settingsWithSessionMcpServerMetadata(settings: Settings, servers: SessionMcpServerMetadata[]): Settings;
|
|
697
802
|
declare function createAndStartSession(input: {
|
|
698
803
|
requestedSessionId?: string;
|
|
@@ -705,9 +810,11 @@ declare function createAndStartSession(input: {
|
|
|
705
810
|
turnInstructions?: string | null;
|
|
706
811
|
resources: ResourceRef[];
|
|
707
812
|
tools: ToolRef[];
|
|
813
|
+
toolPolicy?: SessionToolPolicy;
|
|
708
814
|
clientEventId?: string;
|
|
709
815
|
model: string;
|
|
710
816
|
reasoningEffort: Settings["openaiReasoningEffort"];
|
|
817
|
+
turnExecutionPolicy: TurnExecutionPolicyV1;
|
|
711
818
|
sandboxBackend: Settings["sandboxBackend"];
|
|
712
819
|
metadata: Record<string, unknown>;
|
|
713
820
|
createdBy?: TurnInitiator;
|
|
@@ -735,6 +842,13 @@ declare function createAndStartSession(input: {
|
|
|
735
842
|
settings: Settings;
|
|
736
843
|
workingDir?: string | null;
|
|
737
844
|
} | null;
|
|
845
|
+
consumeNewSessionDraft?: {
|
|
846
|
+
subjectId: string;
|
|
847
|
+
expectedRevision: number;
|
|
848
|
+
} | null;
|
|
849
|
+
maxNestedAgentDepthOverride?: number | null;
|
|
850
|
+
allowNestedAgentDepthIncrease?: boolean;
|
|
851
|
+
subjectId?: string | null;
|
|
738
852
|
}): Promise<CreateSessionResponse>;
|
|
739
853
|
declare function workflowIdForSession(sessionId: string): string;
|
|
740
854
|
/**
|
|
@@ -753,6 +867,7 @@ declare function workflowIdForSession(sessionId: string): string;
|
|
|
753
867
|
* later) and the MCP surfaces that share them validate identically and cannot
|
|
754
868
|
* drift.
|
|
755
869
|
*/
|
|
870
|
+
declare function canonicalConfiguredModel(settings: Settings, model: string | null | undefined): string | null | undefined;
|
|
756
871
|
declare function assertConfiguredModel(settings: Settings, model: string | null | undefined): void;
|
|
757
872
|
/**
|
|
758
873
|
* Reject a model the WORKSPACE's model policy blocks, at the same choke points
|
|
@@ -787,6 +902,7 @@ declare function postUserMessageTurn(input: {
|
|
|
787
902
|
turnInstructions?: string | null;
|
|
788
903
|
resources: ResourceRef[];
|
|
789
904
|
tools: ToolRef[];
|
|
905
|
+
toolsProvided: boolean;
|
|
790
906
|
model?: string | null;
|
|
791
907
|
reasoningEffort?: Settings["openaiReasoningEffort"] | null;
|
|
792
908
|
clientEventId?: string;
|
|
@@ -798,6 +914,8 @@ declare function postUserMessageTurn(input: {
|
|
|
798
914
|
commandActor?: SessionCommandActor;
|
|
799
915
|
controlEtag?: string | null;
|
|
800
916
|
expectedDraftRevision?: number | null;
|
|
917
|
+
reasoningEffortFallback?: Settings["openaiReasoningEffort"];
|
|
918
|
+
turnExecutionPolicy: TurnExecutionPolicyV1;
|
|
801
919
|
}): Promise<{
|
|
802
920
|
accepted: SessionEvent;
|
|
803
921
|
turn: SessionTurn;
|
|
@@ -816,8 +934,9 @@ declare function createSessionForRequest(deps: ApiRouteDeps, grant: AccessGrant,
|
|
|
816
934
|
* Full accept-user-message flow shared by the `user.message` branch of
|
|
817
935
|
* `POST /sessions/:id/events` and the first-party MCP `session_send_message`
|
|
818
936
|
* tool: resource/tool validation, usage limits, the locked append + turn
|
|
819
|
-
* enqueue, and usage recording. `toolsProvided: false`
|
|
820
|
-
*
|
|
937
|
+
* enqueue, and usage recording. `toolsProvided: false` durably preserves an
|
|
938
|
+
* absent `tools` key so execution inherits the session policy; an explicit
|
|
939
|
+
* empty array is a deliberate per-turn narrowing.
|
|
821
940
|
*/
|
|
822
941
|
declare function acceptSessionUserMessage(deps: AcceptSessionUserMessageDependencies, grant: AccessGrant, workspaceId: string, sessionId: string, input: {
|
|
823
942
|
text: string;
|
|
@@ -855,6 +974,17 @@ declare function updateSessionTitle(deps: {
|
|
|
855
974
|
title: string | null;
|
|
856
975
|
relatedSessionAccess: "target" | "root";
|
|
857
976
|
}>;
|
|
977
|
+
/**
|
|
978
|
+
* Update one existing session MCP server's approval policy. The database
|
|
979
|
+
* serializes this write with attempt claim under the session lock: an already
|
|
980
|
+
* claimed attempt retains its immutable snapshot, while the next claim captures
|
|
981
|
+
* this value. No attempt is cancelled, restarted, or reinterpreted.
|
|
982
|
+
*/
|
|
983
|
+
declare function updateSessionMcpApprovalPolicy(deps: {
|
|
984
|
+
db: Database;
|
|
985
|
+
bus: EventBus;
|
|
986
|
+
sessionAuthorization?: SessionAuthorizationPort | null;
|
|
987
|
+
}, grant: AccessGrant, sessionId: string, serverId: string, requireApproval: SessionMcpApprovalPolicy): Promise<UpdateSessionMcpApprovalPolicyResponse>;
|
|
858
988
|
declare function readSessionLineage(deps: Pick<ApiRouteDeps, "db" | "sessionAuthorization">, grant: AccessGrant, sessionId: string): Promise<_opengeni_db.SessionLineage>;
|
|
859
989
|
|
|
860
990
|
/** A member can manage other members (directly or via the admin wildcard). */
|
|
@@ -891,6 +1021,18 @@ declare function assertWorkspaceDeletable(input: {
|
|
|
891
1021
|
activeSessionCount: number;
|
|
892
1022
|
}): void;
|
|
893
1023
|
|
|
1024
|
+
type NewSessionDraftDependencies = Pick<AppDependencies, "settings" | "db" | "objectStorage">;
|
|
1025
|
+
/** Read the authenticated actor's server-authoritative pre-session composer state. */
|
|
1026
|
+
declare function getActorNewSessionDraft(deps: Pick<NewSessionDraftDependencies, "settings" | "db">, grant: AccessGrant, workspaceId: string): Promise<NewSessionDraft>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Validate and save one exact actor-private draft revision. Create-time-only
|
|
1029
|
+
* checks (live machine target, rig/variable-set state, and permission
|
|
1030
|
+
* delegation) intentionally remain in createSessionForRequest: a recoverable
|
|
1031
|
+
* draft may represent incomplete options, while no invalid option can become a
|
|
1032
|
+
* session without passing that single canonical create boundary.
|
|
1033
|
+
*/
|
|
1034
|
+
declare function saveActorNewSessionDraft(deps: NewSessionDraftDependencies, grant: AccessGrant, workspaceId: string, rawInput: unknown): Promise<NewSessionDraft>;
|
|
1035
|
+
|
|
894
1036
|
type HumanSessionCommandContext = {
|
|
895
1037
|
accountId: string;
|
|
896
1038
|
workspaceId: string;
|
|
@@ -975,4 +1117,4 @@ declare function controlHumanWorkspace(deps: {
|
|
|
975
1117
|
declare function getHumanComposerDraft(deps: SessionAuthorizationCommandDeps, context: HumanSessionCommandContext): Promise<ComposerDraft>;
|
|
976
1118
|
declare function saveHumanComposerDraft(deps: SessionAuthorizationCommandDeps, context: HumanSessionCommandContext, input: SaveComposerDraftRequest): Promise<ComposerDraft>;
|
|
977
1119
|
|
|
978
|
-
export { type AcceptSessionUserMessageDependencies, type AccessDeps, type AgentSessionCommandContext, type ApiRouteDeps, type ApiSandboxClient, type ApiSandboxSession, type AppDependencies, type ChannelARoutingServices, type DocumentIndexClient, type FleetContext, type FleetListResult, type FleetLiveness, type FleetSandboxEntry, type FleetServices, type FleetSwapResult, type HumanSessionCommandContext, type LimitCheckInput, type LimitDependencies, MARKETING_SOCIAL_PACK_ID, MAX_CHECKS_PER_RIG, MAX_CREDENTIAL_HOOKS_PER_RIG, MAX_DEFAULT_VARIABLE_SETS_PER_RIG, MAX_ENVIRONMENTS_PER_WORKSPACE, MAX_RIGS_PER_WORKSPACE, MAX_VARIABLES_PER_ENVIRONMENT, type ManagedAuth, type McpCapabilityProbe, type McpCapabilityProbeInput, type McpCapabilityProbeResult, type ObjectStorageDependency, type ProvisionResult, type ResolvedSessionAuthorization, type ResumeBoxByIdInput, type ResumedSandboxSession, type RigServices, type RigVerificationClassification, type RunOnOp, type RunOnResult, SESSION_AUTHORIZATION_DEFAULT_REAUTHORIZE_MS, SESSION_WORKFLOW_WAKE_DISPATCHER_PERIOD_MS, SESSION_WORKFLOW_WAKE_DISPATCHER_SCHEDULE_ID, SESSION_WORKFLOW_WAKE_DISPATCHER_WORKFLOW_TYPE, SessionAuthorizationDeniedError, type SessionAuthorizationDependencies, SessionAuthorizationUnavailableError, type SessionWorkflowClient, acceptSessionUserMessage, activateRigVersionForApi, appendRigSetupCommand, applyCapabilityEnablement, assertAllowedEnvironmentVariableName, assertAllowedVariableSetVariableName, assertConfiguredModel, assertPackSandboxImageCompatible, assertWorkspaceDeletable, assertWorkspaceMemberRemovable, assertWorkspaceModelPolicyAllows, buildCapabilityCatalog, buildFleetContextForSession, buildMarketingDailyAnalysisAgentConfig, checkLimit, classifyRigVerificationOutcome, controlAgentSessionWorkstream, controlHumanSessionWorkstream, controlHumanWorkspace, createAndStartSession, createCatalogItem, createRigForApi, createRigVersionForApi, createSessionForRequest, createValidatedScheduledTask, deleteHumanQueuePrompt, deleteRigForApi, disableCapability, discoverMcpRegistryCapabilities, editHumanQueuePrompt, enableCapability, enabledCapabilityMcpToolRefs, getCapabilityPack, getHumanComposerDraft, hasPermission, isBuiltInCapabilityPack, isUserMember, listCapabilityPacks, listFleet, listRigChangesForApi, listRigVersionsForApi, listWorkspaceCapabilityPacks, manualScheduledTaskTriggerUsageKey, manualScheduledTaskTriggerWorkflowId, memberCanAdminister, mergeResourceRefs, moveHumanQueuePrompt, normalizeResources, officialMcpRegistryUrl, postUserMessageTurn, promoteSetupAppendChange, promoteVerifiedDefinitionEditChangeForApi, proposeRigChangeForApi, provisionSandbox, readSessionLineage, reasoningEffortForSession, recordRigAuditEvent, recordVariableSetAuditEvent, recordWorkspaceUsage, relayConfigFromSettings, relayDialBaseFromSettings, requireAccessContext, requireAccessGrant, requireEnvironmentEncryption, requireLimit, requirePermission, requireQueuedTurnForApi, requireRigChangeForApi, requireRigForApi, requireScheduledTaskForApi, requireSessionAuthorization, requireSessionAuthorizationListScope, requireVariableSetEncryption, requireVariableSetForApi, resolveCapabilityPack, resolveMemberSubjectId, restoreScheduledTask, rigActorForGrant, routingEnabled, runOnSandbox, saveHumanComposerDraft, scheduledTaskTemporalScheduleId, scheduledTaskToolsProvided, scheduledTaskTriggerToken, sendAgentSessionMessage, settingsWithEnabledCapabilityMcpServers, settingsWithMcpCapabilityServers, settingsWithSessionMcpServerMetadata, steerAgentSession, steerHumanQueuePrompt, swapActiveSandbox, syncCreatedScheduledTask, syncUpdatedScheduledTask, updateRigForApi, updateSessionTitle, validateFileResources, validateGitHubRepositorySelection, validateGitHubRepositorySelectionShape, validateGitHubRepositorySelectionShapes, validateMcpCapabilityConnection, validateToolRefs, validateVariableSetAttachment, validatedScheduledTaskUpdate, withDefaultEnabledCapabilityMcpTools, workflowIdForSession, wrapChannelABoxWithRouting };
|
|
1120
|
+
export { type AcceptSessionUserMessageDependencies, type AccessDeps, type AgentSessionCommandContext, type ApiRouteDeps, type ApiSandboxClient, type ApiSandboxSession, type AppDependencies, type ChannelARoutingServices, type DocumentIndexClient, type FleetContext, type FleetListResult, type FleetLiveness, type FleetReadinessHold, type FleetSandboxEntry, type FleetServices, type FleetSwapResult, type HumanSessionCommandContext, type LimitCheckInput, type LimitDependencies, MARKETING_SOCIAL_PACK_ID, MAX_CHECKS_PER_RIG, MAX_CREDENTIAL_HOOKS_PER_RIG, MAX_DEFAULT_VARIABLE_SETS_PER_RIG, MAX_ENVIRONMENTS_PER_WORKSPACE, MAX_RIGS_PER_WORKSPACE, MAX_VARIABLES_PER_ENVIRONMENT, type ManagedAuth, type McpCapabilityProbe, type McpCapabilityProbeInput, type McpCapabilityProbeResult, type ObjectStorageDependency, type ProvisionResult, type ResolvedSessionAuthorization, type ResolvedSessionToolPolicy, type ResumeBoxByIdInput, type ResumedSandboxSession, type RigServices, type RigVerificationClassification, type RunOnOp, type RunOnResult, SESSION_AUTHORIZATION_DEFAULT_REAUTHORIZE_MS, SESSION_WORKFLOW_WAKE_DISPATCHER_PERIOD_MS, SESSION_WORKFLOW_WAKE_DISPATCHER_SCHEDULE_ID, SESSION_WORKFLOW_WAKE_DISPATCHER_WORKFLOW_TYPE, SessionAuthorizationDeniedError, type SessionAuthorizationDependencies, SessionAuthorizationUnavailableError, SessionSpawnDeniedError, type SessionToolPolicyInput, type SessionWorkflowClient, acceptSessionUserMessage, activateRigVersionForApi, appendRigSetupCommand, applyCapabilityEnablement, assertAllowedEnvironmentVariableName, assertAllowedVariableSetVariableName, assertConfiguredModel, assertPackSandboxImageCompatible, assertToolRefsSubset, assertWorkspaceDeletable, assertWorkspaceMemberRemovable, assertWorkspaceModelPolicyAllows, availableToolRefs, buildCapabilityCatalog, buildFleetContextForSession, buildMarketingDailyAnalysisAgentConfig, canonicalConfiguredModel, checkLimit, classifyRigVerificationOutcome, controlAgentSessionWorkstream, controlHumanSessionWorkstream, controlHumanWorkspace, createAndStartSession, createCatalogItem, createRigForApi, createRigVersionForApi, createSessionForRequest, createValidatedScheduledTask, deleteHumanQueuePrompt, deleteRigForApi, disableCapability, discoverMcpRegistryCapabilities, editHumanQueuePrompt, enableCapability, enabledCapabilityMcpToolRefs, getActorNewSessionDraft, getCapabilityPack, getHumanComposerDraft, hasPermission, isBuiltInCapabilityPack, isUserMember, listCapabilityPacks, listFleet, listRigChangesForApi, listRigVersionsForApi, listWorkspaceCapabilityPacks, manualScheduledTaskTriggerUsageKey, manualScheduledTaskTriggerWorkflowId, memberCanAdminister, mergeResourceRefs, moveHumanQueuePrompt, normalizeResources, officialMcpRegistryUrl, postUserMessageTurn, promoteSetupAppendChange, promoteVerifiedDefinitionEditChangeForApi, proposeRigChangeForApi, provisionSandbox, readSessionLineage, reasoningEffortForSession, recordRigAuditEvent, recordVariableSetAuditEvent, recordWorkspaceUsage, relayConfigFromSettings, relayDialBaseFromSettings, requireAccessContext, requireAccessGrant, requireEnvironmentEncryption, requireLimit, requirePermission, requireQueuedTurnForApi, requireRigChangeForApi, requireRigForApi, requireScheduledTaskForApi, requireSessionAuthorization, requireSessionAuthorizationListScope, requireVariableSetEncryption, requireVariableSetForApi, resolveCapabilityPack, resolveMemberSubjectId, resolveSessionToolPolicy, restoreScheduledTask, rigActorForGrant, routingEnabled, runOnSandbox, saveActorNewSessionDraft, saveHumanComposerDraft, scheduledTaskTemporalScheduleId, scheduledTaskToolsProvided, scheduledTaskTriggerToken, sendAgentSessionMessage, sessionSpawnDenialEnvelope, sessionWithEffectiveToolPolicy, settingsWithEnabledCapabilityMcpServers, settingsWithMcpCapabilityServers, settingsWithSessionMcpServerMetadata, steerAgentSession, steerHumanQueuePrompt, swapActiveSandbox, syncCreatedScheduledTask, syncUpdatedScheduledTask, updateRigForApi, updateSessionMcpApprovalPolicy, updateSessionTitle, validateFileResources, validateGitHubRepositorySelection, validateGitHubRepositorySelectionShape, validateGitHubRepositorySelectionShapes, validateMcpCapabilityConnection, validateToolRefs, validateToolRefsForSessionPolicy, validateVariableSetAttachment, validatedScheduledTaskUpdate, withDefaultEnabledCapabilityMcpTools, workflowIdForSession, workspaceSessionToolPolicyDefaultServerIds, workspaceSessionToolPolicyServerIds, wrapChannelABoxWithRouting };
|