@openai/agents-core 0.8.5 → 0.9.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/agentToolRunConfig.js +3 -0
- package/dist/agentToolRunConfig.js.map +1 -1
- package/dist/agentToolRunConfig.mjs +3 -0
- package/dist/agentToolRunConfig.mjs.map +1 -1
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +15 -1
- package/dist/errors.js.map +1 -1
- package/dist/errors.mjs +13 -0
- package/dist/errors.mjs.map +1 -1
- package/dist/handoff.js +1 -1
- package/dist/handoff.js.map +1 -1
- package/dist/handoff.mjs +1 -1
- package/dist/handoff.mjs.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/items.d.ts +13 -0
- package/dist/items.js +15 -0
- package/dist/items.js.map +1 -1
- package/dist/items.mjs +15 -0
- package/dist/items.mjs.map +1 -1
- package/dist/memory/historyMutations.d.ts +6 -0
- package/dist/memory/historyMutations.js +32 -0
- package/dist/memory/historyMutations.js.map +1 -0
- package/dist/memory/historyMutations.mjs +29 -0
- package/dist/memory/historyMutations.mjs.map +1 -0
- package/dist/memory/memorySession.d.ts +3 -2
- package/dist/memory/memorySession.js +7 -0
- package/dist/memory/memorySession.js.map +1 -1
- package/dist/memory/memorySession.mjs +7 -0
- package/dist/memory/memorySession.mjs.map +1 -1
- package/dist/memory/session.d.ts +22 -0
- package/dist/memory/session.js +6 -0
- package/dist/memory/session.js.map +1 -1
- package/dist/memory/session.mjs +5 -0
- package/dist/memory/session.mjs.map +1 -1
- package/dist/metadata.js +2 -2
- package/dist/metadata.mjs +2 -2
- package/dist/model.d.ts +21 -0
- package/dist/run.d.ts +7 -1
- package/dist/run.js +152 -57
- package/dist/run.js.map +1 -1
- package/dist/run.mjs +153 -58
- package/dist/run.mjs.map +1 -1
- package/dist/runState.d.ts +110 -3
- package/dist/runState.js +414 -53
- package/dist/runState.js.map +1 -1
- package/dist/runState.mjs +412 -53
- package/dist/runState.mjs.map +1 -1
- package/dist/runner/errorHandlers.d.ts +13 -4
- package/dist/runner/errorHandlers.js +22 -4
- package/dist/runner/errorHandlers.js.map +1 -1
- package/dist/runner/errorHandlers.mjs +21 -4
- package/dist/runner/errorHandlers.mjs.map +1 -1
- package/dist/runner/items.js +11 -1
- package/dist/runner/items.js.map +1 -1
- package/dist/runner/items.mjs +11 -1
- package/dist/runner/items.mjs.map +1 -1
- package/dist/runner/modelPreparation.d.ts +1 -1
- package/dist/runner/modelPreparation.js +7 -7
- package/dist/runner/modelPreparation.js.map +1 -1
- package/dist/runner/modelPreparation.mjs +7 -7
- package/dist/runner/modelPreparation.mjs.map +1 -1
- package/dist/runner/runLoop.d.ts +2 -1
- package/dist/runner/runLoop.js +2 -2
- package/dist/runner/runLoop.js.map +1 -1
- package/dist/runner/runLoop.mjs +2 -2
- package/dist/runner/runLoop.mjs.map +1 -1
- package/dist/runner/sandbox.d.ts +33 -0
- package/dist/runner/sandbox.js +92 -0
- package/dist/runner/sandbox.js.map +1 -0
- package/dist/runner/sandbox.mjs +83 -0
- package/dist/runner/sandbox.mjs.map +1 -0
- package/dist/runner/sessionPersistence.js +33 -12
- package/dist/runner/sessionPersistence.js.map +1 -1
- package/dist/runner/sessionPersistence.mjs +33 -12
- package/dist/runner/sessionPersistence.mjs.map +1 -1
- package/dist/runner/streamReconciliation.d.ts +14 -0
- package/dist/runner/streamReconciliation.js +80 -0
- package/dist/runner/streamReconciliation.js.map +1 -0
- package/dist/runner/streamReconciliation.mjs +72 -0
- package/dist/runner/streamReconciliation.mjs.map +1 -0
- package/dist/runner/toolExecution.js +25 -13
- package/dist/runner/toolExecution.js.map +1 -1
- package/dist/runner/toolExecution.mjs +25 -13
- package/dist/runner/toolExecution.mjs.map +1 -1
- package/dist/runner/toolUseTracker.d.ts +3 -1
- package/dist/runner/toolUseTracker.js +2 -2
- package/dist/runner/toolUseTracker.js.map +1 -1
- package/dist/runner/toolUseTracker.mjs +2 -2
- package/dist/runner/toolUseTracker.mjs.map +1 -1
- package/dist/runner/tracing.js +1 -0
- package/dist/runner/tracing.js.map +1 -1
- package/dist/runner/tracing.mjs +1 -0
- package/dist/runner/tracing.mjs.map +1 -1
- package/dist/runner/turnPreparation.d.ts +2 -4
- package/dist/runner/turnPreparation.js +7 -3
- package/dist/runner/turnPreparation.js.map +1 -1
- package/dist/runner/turnPreparation.mjs +7 -3
- package/dist/runner/turnPreparation.mjs.map +1 -1
- package/dist/runner/turnResolution.js +158 -31
- package/dist/runner/turnResolution.js.map +1 -1
- package/dist/runner/turnResolution.mjs +160 -33
- package/dist/runner/turnResolution.mjs.map +1 -1
- package/dist/runner/types.d.ts +8 -8
- package/dist/sandbox/agent.d.ts +24 -0
- package/dist/sandbox/agent.js +68 -0
- package/dist/sandbox/agent.js.map +1 -0
- package/dist/sandbox/agent.mjs +64 -0
- package/dist/sandbox/agent.mjs.map +1 -0
- package/dist/sandbox/brand.d.ts +1 -0
- package/dist/sandbox/brand.js +5 -0
- package/dist/sandbox/brand.js.map +1 -0
- package/dist/sandbox/brand.mjs +2 -0
- package/dist/sandbox/brand.mjs.map +1 -0
- package/dist/sandbox/capabilities/base.d.ts +25 -0
- package/dist/sandbox/capabilities/base.js +89 -0
- package/dist/sandbox/capabilities/base.js.map +1 -0
- package/dist/sandbox/capabilities/base.mjs +84 -0
- package/dist/sandbox/capabilities/base.mjs.map +1 -0
- package/dist/sandbox/capabilities/compaction.d.ts +33 -0
- package/dist/sandbox/capabilities/compaction.js +172 -0
- package/dist/sandbox/capabilities/compaction.js.map +1 -0
- package/dist/sandbox/capabilities/compaction.mjs +164 -0
- package/dist/sandbox/capabilities/compaction.mjs.map +1 -0
- package/dist/sandbox/capabilities/filesystem.d.ts +14 -0
- package/dist/sandbox/capabilities/filesystem.js +447 -0
- package/dist/sandbox/capabilities/filesystem.js.map +1 -0
- package/dist/sandbox/capabilities/filesystem.mjs +444 -0
- package/dist/sandbox/capabilities/filesystem.mjs.map +1 -0
- package/dist/sandbox/capabilities/index.d.ts +19 -0
- package/dist/sandbox/capabilities/index.js +31 -0
- package/dist/sandbox/capabilities/index.js.map +1 -0
- package/dist/sandbox/capabilities/index.mjs +17 -0
- package/dist/sandbox/capabilities/index.mjs.map +1 -0
- package/dist/sandbox/capabilities/memory.d.ts +52 -0
- package/dist/sandbox/capabilities/memory.js +290 -0
- package/dist/sandbox/capabilities/memory.js.map +1 -0
- package/dist/sandbox/capabilities/memory.mjs +286 -0
- package/dist/sandbox/capabilities/memory.mjs.map +1 -0
- package/dist/sandbox/capabilities/shell.d.ts +15 -0
- package/dist/sandbox/capabilities/shell.js +130 -0
- package/dist/sandbox/capabilities/shell.js.map +1 -0
- package/dist/sandbox/capabilities/shell.mjs +127 -0
- package/dist/sandbox/capabilities/shell.mjs.map +1 -0
- package/dist/sandbox/capabilities/skills.d.ts +47 -0
- package/dist/sandbox/capabilities/skills.js +453 -0
- package/dist/sandbox/capabilities/skills.js.map +1 -0
- package/dist/sandbox/capabilities/skills.mjs +449 -0
- package/dist/sandbox/capabilities/skills.mjs.map +1 -0
- package/dist/sandbox/capabilities/transport.d.ts +3 -0
- package/dist/sandbox/capabilities/transport.js +33 -0
- package/dist/sandbox/capabilities/transport.js.map +1 -0
- package/dist/sandbox/capabilities/transport.mjs +28 -0
- package/dist/sandbox/capabilities/transport.mjs.map +1 -0
- package/dist/sandbox/client.d.ts +53 -0
- package/dist/sandbox/client.js +34 -0
- package/dist/sandbox/client.js.map +1 -0
- package/dist/sandbox/client.mjs +31 -0
- package/dist/sandbox/client.mjs.map +1 -0
- package/dist/sandbox/entries/factories.d.ts +17 -0
- package/dist/sandbox/entries/factories.js +112 -0
- package/dist/sandbox/entries/factories.js.map +1 -0
- package/dist/sandbox/entries/factories.mjs +94 -0
- package/dist/sandbox/entries/factories.mjs.map +1 -0
- package/dist/sandbox/entries/guards.d.ts +5 -0
- package/dist/sandbox/entries/guards.js +19 -0
- package/dist/sandbox/entries/guards.js.map +1 -0
- package/dist/sandbox/entries/guards.mjs +13 -0
- package/dist/sandbox/entries/guards.mjs.map +1 -0
- package/dist/sandbox/entries/index.d.ts +3 -0
- package/dist/sandbox/entries/index.js +26 -0
- package/dist/sandbox/entries/index.js.map +1 -0
- package/dist/sandbox/entries/index.mjs +3 -0
- package/dist/sandbox/entries/index.mjs.map +1 -0
- package/dist/sandbox/entries/types.d.ts +177 -0
- package/dist/sandbox/entries/types.js +3 -0
- package/dist/sandbox/entries/types.js.map +1 -0
- package/dist/sandbox/entries/types.mjs +2 -0
- package/dist/sandbox/entries/types.mjs.map +1 -0
- package/dist/sandbox/errors.d.ts +151 -0
- package/dist/sandbox/errors.js +303 -0
- package/dist/sandbox/errors.js.map +1 -0
- package/dist/sandbox/errors.mjs +251 -0
- package/dist/sandbox/errors.mjs.map +1 -0
- package/dist/sandbox/events.d.ts +51 -0
- package/dist/sandbox/events.js +104 -0
- package/dist/sandbox/events.js.map +1 -0
- package/dist/sandbox/events.mjs +95 -0
- package/dist/sandbox/events.mjs.map +1 -0
- package/dist/sandbox/index.d.ts +14 -0
- package/dist/sandbox/index.js +31 -0
- package/dist/sandbox/index.js.map +1 -0
- package/dist/sandbox/index.mjs +15 -0
- package/dist/sandbox/index.mjs.map +1 -0
- package/dist/sandbox/internal.d.ts +7 -0
- package/dist/sandbox/internal.js +46 -0
- package/dist/sandbox/internal.js.map +1 -0
- package/dist/sandbox/internal.mjs +8 -0
- package/dist/sandbox/internal.mjs.map +1 -0
- package/dist/sandbox/local.d.ts +3 -0
- package/dist/sandbox/local.js +20 -0
- package/dist/sandbox/local.js.map +1 -0
- package/dist/sandbox/local.mjs +4 -0
- package/dist/sandbox/local.mjs.map +1 -0
- package/dist/sandbox/localSkills.d.ts +13 -0
- package/dist/sandbox/localSkills.js +62 -0
- package/dist/sandbox/localSkills.js.map +1 -0
- package/dist/sandbox/localSkills.mjs +59 -0
- package/dist/sandbox/localSkills.mjs.map +1 -0
- package/dist/sandbox/manifest.d.ts +86 -0
- package/dist/sandbox/manifest.js +553 -0
- package/dist/sandbox/manifest.js.map +1 -0
- package/dist/sandbox/manifest.mjs +545 -0
- package/dist/sandbox/manifest.mjs.map +1 -0
- package/dist/sandbox/memory/generation.d.ts +56 -0
- package/dist/sandbox/memory/generation.js +426 -0
- package/dist/sandbox/memory/generation.js.map +1 -0
- package/dist/sandbox/memory/generation.mjs +385 -0
- package/dist/sandbox/memory/generation.mjs.map +1 -0
- package/dist/sandbox/memory/prompts.d.ts +16 -0
- package/dist/sandbox/memory/prompts.js +1685 -0
- package/dist/sandbox/memory/prompts.js.map +1 -0
- package/dist/sandbox/memory/prompts.mjs +1679 -0
- package/dist/sandbox/memory/prompts.mjs.map +1 -0
- package/dist/sandbox/memory/rollouts.d.ts +33 -0
- package/dist/sandbox/memory/rollouts.js +228 -0
- package/dist/sandbox/memory/rollouts.js.map +1 -0
- package/dist/sandbox/memory/rollouts.mjs +221 -0
- package/dist/sandbox/memory/rollouts.mjs.map +1 -0
- package/dist/sandbox/memory/storage.d.ts +70 -0
- package/dist/sandbox/memory/storage.js +543 -0
- package/dist/sandbox/memory/storage.js.map +1 -0
- package/dist/sandbox/memory/storage.mjs +537 -0
- package/dist/sandbox/memory/storage.mjs.map +1 -0
- package/dist/sandbox/pathGrants.d.ts +11 -0
- package/dist/sandbox/pathGrants.js +28 -0
- package/dist/sandbox/pathGrants.js.map +1 -0
- package/dist/sandbox/pathGrants.mjs +25 -0
- package/dist/sandbox/pathGrants.mjs.map +1 -0
- package/dist/sandbox/permissions.d.ts +29 -0
- package/dist/sandbox/permissions.js +140 -0
- package/dist/sandbox/permissions.js.map +1 -0
- package/dist/sandbox/permissions.mjs +134 -0
- package/dist/sandbox/permissions.mjs.map +1 -0
- package/dist/sandbox/runtime/agentKeys.d.ts +7 -0
- package/dist/sandbox/runtime/agentKeys.js +76 -0
- package/dist/sandbox/runtime/agentKeys.js.map +1 -0
- package/dist/sandbox/runtime/agentKeys.mjs +69 -0
- package/dist/sandbox/runtime/agentKeys.mjs.map +1 -0
- package/dist/sandbox/runtime/agentPreparation.d.ts +20 -0
- package/dist/sandbox/runtime/agentPreparation.js +178 -0
- package/dist/sandbox/runtime/agentPreparation.js.map +1 -0
- package/dist/sandbox/runtime/agentPreparation.mjs +172 -0
- package/dist/sandbox/runtime/agentPreparation.mjs.map +1 -0
- package/dist/sandbox/runtime/index.d.ts +5 -0
- package/dist/sandbox/runtime/index.js +22 -0
- package/dist/sandbox/runtime/index.js.map +1 -0
- package/dist/sandbox/runtime/index.mjs +6 -0
- package/dist/sandbox/runtime/index.mjs.map +1 -0
- package/dist/sandbox/runtime/livePreservedSessions.d.ts +25 -0
- package/dist/sandbox/runtime/livePreservedSessions.js +58 -0
- package/dist/sandbox/runtime/livePreservedSessions.js.map +1 -0
- package/dist/sandbox/runtime/livePreservedSessions.mjs +51 -0
- package/dist/sandbox/runtime/livePreservedSessions.mjs.map +1 -0
- package/dist/sandbox/runtime/manager.d.ts +68 -0
- package/dist/sandbox/runtime/manager.js +704 -0
- package/dist/sandbox/runtime/manager.js.map +1 -0
- package/dist/sandbox/runtime/manager.mjs +697 -0
- package/dist/sandbox/runtime/manager.mjs.map +1 -0
- package/dist/sandbox/runtime/prompts.d.ts +6 -0
- package/dist/sandbox/runtime/prompts.js +108 -0
- package/dist/sandbox/runtime/prompts.js.map +1 -0
- package/dist/sandbox/runtime/prompts.mjs +101 -0
- package/dist/sandbox/runtime/prompts.mjs.map +1 -0
- package/dist/sandbox/runtime/providedSessionManifest.d.ts +3 -0
- package/dist/sandbox/runtime/providedSessionManifest.js +175 -0
- package/dist/sandbox/runtime/providedSessionManifest.js.map +1 -0
- package/dist/sandbox/runtime/providedSessionManifest.mjs +172 -0
- package/dist/sandbox/runtime/providedSessionManifest.mjs.map +1 -0
- package/dist/sandbox/runtime/runAsManifest.d.ts +4 -0
- package/dist/sandbox/runtime/runAsManifest.js +40 -0
- package/dist/sandbox/runtime/runAsManifest.js.map +1 -0
- package/dist/sandbox/runtime/runAsManifest.mjs +36 -0
- package/dist/sandbox/runtime/runAsManifest.mjs.map +1 -0
- package/dist/sandbox/runtime/sessionLifecycle.d.ts +6 -0
- package/dist/sandbox/runtime/sessionLifecycle.js +222 -0
- package/dist/sandbox/runtime/sessionLifecycle.js.map +1 -0
- package/dist/sandbox/runtime/sessionLifecycle.mjs +215 -0
- package/dist/sandbox/runtime/sessionLifecycle.mjs.map +1 -0
- package/dist/sandbox/runtime/sessionSerialization.d.ts +12 -0
- package/dist/sandbox/runtime/sessionSerialization.js +74 -0
- package/dist/sandbox/runtime/sessionSerialization.js.map +1 -0
- package/dist/sandbox/runtime/sessionSerialization.mjs +71 -0
- package/dist/sandbox/runtime/sessionSerialization.mjs.map +1 -0
- package/dist/sandbox/runtime/sessionState.d.ts +26 -0
- package/dist/sandbox/runtime/sessionState.js +113 -0
- package/dist/sandbox/runtime/sessionState.js.map +1 -0
- package/dist/sandbox/runtime/sessionState.mjs +104 -0
- package/dist/sandbox/runtime/sessionState.mjs.map +1 -0
- package/dist/sandbox/runtime/spans.d.ts +1 -0
- package/dist/sandbox/runtime/spans.js +51 -0
- package/dist/sandbox/runtime/spans.js.map +1 -0
- package/dist/sandbox/runtime/spans.mjs +48 -0
- package/dist/sandbox/runtime/spans.mjs.map +1 -0
- package/dist/sandbox/runtime/toolRehydration.d.ts +34 -0
- package/dist/sandbox/runtime/toolRehydration.js +207 -0
- package/dist/sandbox/runtime/toolRehydration.js.map +1 -0
- package/dist/sandbox/runtime/toolRehydration.mjs +200 -0
- package/dist/sandbox/runtime/toolRehydration.mjs.map +1 -0
- package/dist/sandbox/sandboxes/docker.d.ts +75 -0
- package/dist/sandbox/sandboxes/docker.js +2015 -0
- package/dist/sandbox/sandboxes/docker.js.map +1 -0
- package/dist/sandbox/sandboxes/docker.mjs +2010 -0
- package/dist/sandbox/sandboxes/docker.mjs.map +1 -0
- package/dist/sandbox/sandboxes/index.d.ts +3 -0
- package/dist/sandbox/sandboxes/index.js +20 -0
- package/dist/sandbox/sandboxes/index.js.map +1 -0
- package/dist/sandbox/sandboxes/index.mjs +4 -0
- package/dist/sandbox/sandboxes/index.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/localSnapshotPaths.d.ts +1 -0
- package/dist/sandbox/sandboxes/shared/localSnapshotPaths.js +22 -0
- package/dist/sandbox/sandboxes/shared/localSnapshotPaths.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/localSnapshotPaths.mjs +19 -0
- package/dist/sandbox/sandboxes/shared/localSnapshotPaths.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/localSnapshots.d.ts +34 -0
- package/dist/sandbox/sandboxes/shared/localSnapshots.js +525 -0
- package/dist/sandbox/sandboxes/shared/localSnapshots.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/localSnapshots.mjs +508 -0
- package/dist/sandbox/sandboxes/shared/localSnapshots.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/localWorkspace.d.ts +27 -0
- package/dist/sandbox/sandboxes/shared/localWorkspace.js +693 -0
- package/dist/sandbox/sandboxes/shared/localWorkspace.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/localWorkspace.mjs +684 -0
- package/dist/sandbox/sandboxes/shared/localWorkspace.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/manifestPersistence.d.ts +15 -0
- package/dist/sandbox/sandboxes/shared/manifestPersistence.js +191 -0
- package/dist/sandbox/sandboxes/shared/manifestPersistence.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/manifestPersistence.mjs +182 -0
- package/dist/sandbox/sandboxes/shared/manifestPersistence.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/pty.d.ts +9 -0
- package/dist/sandbox/sandboxes/shared/pty.js +151 -0
- package/dist/sandbox/sandboxes/shared/pty.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/pty.mjs +148 -0
- package/dist/sandbox/sandboxes/shared/pty.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/runProcess.d.ts +16 -0
- package/dist/sandbox/sandboxes/shared/runProcess.js +90 -0
- package/dist/sandbox/sandboxes/shared/runProcess.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/runProcess.mjs +86 -0
- package/dist/sandbox/sandboxes/shared/runProcess.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/sessionStateValues.d.ts +18 -0
- package/dist/sandbox/sandboxes/shared/sessionStateValues.js +40 -0
- package/dist/sandbox/sandboxes/shared/sessionStateValues.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/sessionStateValues.mjs +35 -0
- package/dist/sandbox/sandboxes/shared/sessionStateValues.mjs.map +1 -0
- package/dist/sandbox/sandboxes/shared/shellCommand.d.ts +17 -0
- package/dist/sandbox/sandboxes/shared/shellCommand.js +38 -0
- package/dist/sandbox/sandboxes/shared/shellCommand.js.map +1 -0
- package/dist/sandbox/sandboxes/shared/shellCommand.mjs +34 -0
- package/dist/sandbox/sandboxes/shared/shellCommand.mjs.map +1 -0
- package/dist/sandbox/sandboxes/types.d.ts +11 -0
- package/dist/sandbox/sandboxes/types.js +3 -0
- package/dist/sandbox/sandboxes/types.js.map +1 -0
- package/dist/sandbox/sandboxes/types.mjs +2 -0
- package/dist/sandbox/sandboxes/types.mjs.map +1 -0
- package/dist/sandbox/sandboxes/unixLocal.d.ts +95 -0
- package/dist/sandbox/sandboxes/unixLocal.js +863 -0
- package/dist/sandbox/sandboxes/unixLocal.js.map +1 -0
- package/dist/sandbox/sandboxes/unixLocal.mjs +858 -0
- package/dist/sandbox/sandboxes/unixLocal.mjs.map +1 -0
- package/dist/sandbox/session.d.ts +123 -0
- package/dist/sandbox/session.js +58 -0
- package/dist/sandbox/session.js.map +1 -0
- package/dist/sandbox/session.mjs +50 -0
- package/dist/sandbox/session.mjs.map +1 -0
- package/dist/sandbox/shared/compare.d.ts +2 -0
- package/dist/sandbox/shared/compare.js +13 -0
- package/dist/sandbox/shared/compare.js.map +1 -0
- package/dist/sandbox/shared/compare.mjs +9 -0
- package/dist/sandbox/shared/compare.mjs.map +1 -0
- package/dist/sandbox/shared/environment.d.ts +14 -0
- package/dist/sandbox/shared/environment.js +69 -0
- package/dist/sandbox/shared/environment.js.map +1 -0
- package/dist/sandbox/shared/environment.mjs +59 -0
- package/dist/sandbox/shared/environment.mjs.map +1 -0
- package/dist/sandbox/shared/hostPath.d.ts +4 -0
- package/dist/sandbox/shared/hostPath.js +22 -0
- package/dist/sandbox/shared/hostPath.js.map +1 -0
- package/dist/sandbox/shared/hostPath.mjs +16 -0
- package/dist/sandbox/shared/hostPath.mjs.map +1 -0
- package/dist/sandbox/shared/manifestCollections.d.ts +12 -0
- package/dist/sandbox/shared/manifestCollections.js +40 -0
- package/dist/sandbox/shared/manifestCollections.js.map +1 -0
- package/dist/sandbox/shared/manifestCollections.mjs +34 -0
- package/dist/sandbox/shared/manifestCollections.mjs.map +1 -0
- package/dist/sandbox/shared/media.d.ts +6 -0
- package/dist/sandbox/shared/media.js +126 -0
- package/dist/sandbox/shared/media.js.map +1 -0
- package/dist/sandbox/shared/media.mjs +119 -0
- package/dist/sandbox/shared/media.mjs.map +1 -0
- package/dist/sandbox/shared/output.d.ts +12 -0
- package/dist/sandbox/shared/output.js +108 -0
- package/dist/sandbox/shared/output.js.map +1 -0
- package/dist/sandbox/shared/output.mjs +103 -0
- package/dist/sandbox/shared/output.mjs.map +1 -0
- package/dist/sandbox/shared/posixPath.d.ts +7 -0
- package/dist/sandbox/shared/posixPath.js +90 -0
- package/dist/sandbox/shared/posixPath.js.map +1 -0
- package/dist/sandbox/shared/posixPath.mjs +81 -0
- package/dist/sandbox/shared/posixPath.mjs.map +1 -0
- package/dist/sandbox/shared/remoteMountCommandAllowlist.d.ts +3 -0
- package/dist/sandbox/shared/remoteMountCommandAllowlist.js +33 -0
- package/dist/sandbox/shared/remoteMountCommandAllowlist.js.map +1 -0
- package/dist/sandbox/shared/remoteMountCommandAllowlist.mjs +28 -0
- package/dist/sandbox/shared/remoteMountCommandAllowlist.mjs.map +1 -0
- package/dist/sandbox/shared/shell.d.ts +1 -0
- package/dist/sandbox/shared/shell.js +7 -0
- package/dist/sandbox/shared/shell.js.map +1 -0
- package/dist/sandbox/shared/shell.mjs +4 -0
- package/dist/sandbox/shared/shell.mjs.map +1 -0
- package/dist/sandbox/shared/stableJson.d.ts +12 -0
- package/dist/sandbox/shared/stableJson.js +40 -0
- package/dist/sandbox/shared/stableJson.js.map +1 -0
- package/dist/sandbox/shared/stableJson.mjs +35 -0
- package/dist/sandbox/shared/stableJson.mjs.map +1 -0
- package/dist/sandbox/shared/typeGuards.d.ts +6 -0
- package/dist/sandbox/shared/typeGuards.js +34 -0
- package/dist/sandbox/shared/typeGuards.js.map +1 -0
- package/dist/sandbox/shared/typeGuards.mjs +26 -0
- package/dist/sandbox/shared/typeGuards.mjs.map +1 -0
- package/dist/sandbox/snapshot.d.ts +60 -0
- package/dist/sandbox/snapshot.js +45 -0
- package/dist/sandbox/snapshot.js.map +1 -0
- package/dist/sandbox/snapshot.mjs +39 -0
- package/dist/sandbox/snapshot.mjs.map +1 -0
- package/dist/sandbox/users.d.ts +11 -0
- package/dist/sandbox/users.js +31 -0
- package/dist/sandbox/users.js.map +1 -0
- package/dist/sandbox/users.mjs +26 -0
- package/dist/sandbox/users.mjs.map +1 -0
- package/dist/sandbox/workspacePaths.d.ts +20 -0
- package/dist/sandbox/workspacePaths.js +73 -0
- package/dist/sandbox/workspacePaths.js.map +1 -0
- package/dist/sandbox/workspacePaths.mjs +69 -0
- package/dist/sandbox/workspacePaths.mjs.map +1 -0
- package/dist/tool.js +1 -1
- package/dist/tool.js.map +1 -1
- package/dist/tool.mjs +1 -1
- package/dist/tool.mjs.map +1 -1
- package/dist/types/protocol.d.ts +8 -0
- package/dist/types/protocol.js +1 -0
- package/dist/types/protocol.js.map +1 -1
- package/dist/types/protocol.mjs +1 -0
- package/dist/types/protocol.mjs.map +1 -1
- package/dist/utils/messages.d.ts +6 -0
- package/dist/utils/messages.js +21 -0
- package/dist/utils/messages.js.map +1 -1
- package/dist/utils/messages.mjs +20 -0
- package/dist/utils/messages.mjs.map +1 -1
- package/dist/utils/strictToolSchema.d.ts +4 -0
- package/dist/utils/strictToolSchema.js +358 -0
- package/dist/utils/strictToolSchema.js.map +1 -0
- package/dist/utils/strictToolSchema.mjs +353 -0
- package/dist/utils/strictToolSchema.mjs.map +1 -0
- package/dist/utils/tools.d.ts +3 -1
- package/dist/utils/tools.js +18 -7
- package/dist/utils/tools.js.map +1 -1
- package/dist/utils/tools.mjs +18 -7
- package/dist/utils/tools.mjs.map +1 -1
- package/dist/utils/zodJsonSchemaCompat.js +18 -16
- package/dist/utils/zodJsonSchemaCompat.js.map +1 -1
- package/dist/utils/zodJsonSchemaCompat.mjs +18 -16
- package/dist/utils/zodJsonSchemaCompat.mjs.map +1 -1
- package/package.json +25 -1
package/dist/runState.d.ts
CHANGED
|
@@ -34,8 +34,12 @@ import type { AgentToolInvocation } from './agentToolInvocation';
|
|
|
34
34
|
* - 1.7: Adds optional approval rejection messages.
|
|
35
35
|
* - 1.8: Adds tool search item variants, batched computer actions, and GA computer tool
|
|
36
36
|
* aliasing to serialized run state payloads.
|
|
37
|
+
* - 1.9: Adds optional sandbox session persistence with a versioned session-state
|
|
38
|
+
* envelope for sandbox-agent resume.
|
|
39
|
+
* - 1.10: Adds optional stable agent identity keys so duplicate-name agent graphs can
|
|
40
|
+
* serialize and resume without ambiguous name resolution.
|
|
37
41
|
*/
|
|
38
|
-
export declare const CURRENT_SCHEMA_VERSION: "1.
|
|
42
|
+
export declare const CURRENT_SCHEMA_VERSION: "1.10";
|
|
39
43
|
type ContextOverrideStrategy = 'merge' | 'replace';
|
|
40
44
|
declare const serializedSpanBase: z.ZodObject<{
|
|
41
45
|
object: z.ZodLiteral<"trace.span">;
|
|
@@ -53,6 +57,40 @@ declare const serializedSpanBase: z.ZodObject<{
|
|
|
53
57
|
type SerializedSpanType = z.infer<typeof serializedSpanBase> & {
|
|
54
58
|
previous_span?: SerializedSpanType;
|
|
55
59
|
};
|
|
60
|
+
declare const sandboxStateSchema: z.ZodObject<{
|
|
61
|
+
backendId: z.ZodString;
|
|
62
|
+
currentAgentKey: z.ZodString;
|
|
63
|
+
currentAgentName: z.ZodString;
|
|
64
|
+
sessionState: z.ZodObject<{
|
|
65
|
+
version: z.ZodLiteral<1>;
|
|
66
|
+
backendId: z.ZodString;
|
|
67
|
+
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
68
|
+
snapshot: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
69
|
+
snapshotFingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
snapshotFingerprintVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
workspaceReady: z.ZodBoolean;
|
|
72
|
+
exposedPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
73
|
+
providerState: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
sessionsByAgent: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
76
|
+
backendId: z.ZodString;
|
|
77
|
+
currentAgentKey: z.ZodString;
|
|
78
|
+
currentAgentName: z.ZodString;
|
|
79
|
+
sessionState: z.ZodObject<{
|
|
80
|
+
version: z.ZodLiteral<1>;
|
|
81
|
+
backendId: z.ZodString;
|
|
82
|
+
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
83
|
+
snapshot: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
84
|
+
snapshotFingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
snapshotFingerprintVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
workspaceReady: z.ZodBoolean;
|
|
87
|
+
exposedPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
88
|
+
providerState: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
preservedOwnedSession: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
reuseLiveSession: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
56
94
|
export declare const SerializedRunState: z.ZodObject<{
|
|
57
95
|
$schemaVersion: z.ZodEnum<{
|
|
58
96
|
"1.0": "1.0";
|
|
@@ -64,10 +102,13 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
64
102
|
1.6: "1.6";
|
|
65
103
|
1.7: "1.7";
|
|
66
104
|
1.8: "1.8";
|
|
105
|
+
1.9: "1.9";
|
|
106
|
+
"1.10": "1.10";
|
|
67
107
|
}>;
|
|
68
108
|
currentTurn: z.ZodNumber;
|
|
69
109
|
currentAgent: z.ZodObject<{
|
|
70
110
|
name: z.ZodString;
|
|
111
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
71
112
|
}, z.core.$strip>;
|
|
72
113
|
originalInput: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
73
114
|
providerData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -311,6 +352,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
311
352
|
type: z.ZodLiteral<"update_file">;
|
|
312
353
|
path: z.ZodString;
|
|
313
354
|
diff: z.ZodString;
|
|
355
|
+
moveTo: z.ZodOptional<z.ZodString>;
|
|
314
356
|
}, z.core.$strip>, z.ZodObject<{
|
|
315
357
|
type: z.ZodLiteral<"delete_file">;
|
|
316
358
|
path: z.ZodString;
|
|
@@ -658,6 +700,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
658
700
|
type: z.ZodLiteral<"update_file">;
|
|
659
701
|
path: z.ZodString;
|
|
660
702
|
diff: z.ZodString;
|
|
703
|
+
moveTo: z.ZodOptional<z.ZodString>;
|
|
661
704
|
}, z.core.$strip>, z.ZodObject<{
|
|
662
705
|
type: z.ZodLiteral<"delete_file">;
|
|
663
706
|
path: z.ZodString;
|
|
@@ -828,6 +871,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
828
871
|
agentOutput: z.ZodAny;
|
|
829
872
|
agent: z.ZodObject<{
|
|
830
873
|
name: z.ZodString;
|
|
874
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
831
875
|
}, z.core.$strip>;
|
|
832
876
|
output: z.ZodObject<{
|
|
833
877
|
tripwireTriggered: z.ZodBoolean;
|
|
@@ -1100,6 +1144,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1100
1144
|
type: z.ZodLiteral<"update_file">;
|
|
1101
1145
|
path: z.ZodString;
|
|
1102
1146
|
diff: z.ZodString;
|
|
1147
|
+
moveTo: z.ZodOptional<z.ZodString>;
|
|
1103
1148
|
}, z.core.$strip>, z.ZodObject<{
|
|
1104
1149
|
type: z.ZodLiteral<"delete_file">;
|
|
1105
1150
|
path: z.ZodString;
|
|
@@ -1258,6 +1303,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1258
1303
|
}, z.core.$strip>;
|
|
1259
1304
|
agent: z.ZodObject<{
|
|
1260
1305
|
name: z.ZodString;
|
|
1306
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1261
1307
|
}, z.core.$strip>;
|
|
1262
1308
|
}, z.core.$strip>, z.ZodObject<{
|
|
1263
1309
|
type: z.ZodLiteral<"tool_search_call_item">;
|
|
@@ -1276,6 +1322,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1276
1322
|
}, z.core.$strip>;
|
|
1277
1323
|
agent: z.ZodObject<{
|
|
1278
1324
|
name: z.ZodString;
|
|
1325
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1279
1326
|
}, z.core.$strip>;
|
|
1280
1327
|
}, z.core.$strip>, z.ZodObject<{
|
|
1281
1328
|
type: z.ZodLiteral<"tool_search_output_item">;
|
|
@@ -1294,6 +1341,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1294
1341
|
}, z.core.$strip>;
|
|
1295
1342
|
agent: z.ZodObject<{
|
|
1296
1343
|
name: z.ZodString;
|
|
1344
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1297
1345
|
}, z.core.$strip>;
|
|
1298
1346
|
}, z.core.$strip>, z.ZodObject<{
|
|
1299
1347
|
type: z.ZodLiteral<"tool_call_item">;
|
|
@@ -1423,6 +1471,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1423
1471
|
type: z.ZodLiteral<"update_file">;
|
|
1424
1472
|
path: z.ZodString;
|
|
1425
1473
|
diff: z.ZodString;
|
|
1474
|
+
moveTo: z.ZodOptional<z.ZodString>;
|
|
1426
1475
|
}, z.core.$strip>, z.ZodObject<{
|
|
1427
1476
|
type: z.ZodLiteral<"delete_file">;
|
|
1428
1477
|
path: z.ZodString;
|
|
@@ -1459,6 +1508,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1459
1508
|
}, z.core.$strip>]>;
|
|
1460
1509
|
agent: z.ZodObject<{
|
|
1461
1510
|
name: z.ZodString;
|
|
1511
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1462
1512
|
}, z.core.$strip>;
|
|
1463
1513
|
}, z.core.$strip>, z.ZodObject<{
|
|
1464
1514
|
type: z.ZodLiteral<"tool_call_output_item">;
|
|
@@ -1564,6 +1614,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1564
1614
|
}, z.core.$strip>]>;
|
|
1565
1615
|
agent: z.ZodObject<{
|
|
1566
1616
|
name: z.ZodString;
|
|
1617
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1567
1618
|
}, z.core.$strip>;
|
|
1568
1619
|
output: z.ZodString;
|
|
1569
1620
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1585,6 +1636,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1585
1636
|
}, z.core.$strip>;
|
|
1586
1637
|
agent: z.ZodObject<{
|
|
1587
1638
|
name: z.ZodString;
|
|
1639
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1588
1640
|
}, z.core.$strip>;
|
|
1589
1641
|
}, z.core.$strip>, z.ZodObject<{
|
|
1590
1642
|
type: z.ZodLiteral<"handoff_call_item">;
|
|
@@ -1604,6 +1656,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1604
1656
|
}, z.core.$strip>;
|
|
1605
1657
|
agent: z.ZodObject<{
|
|
1606
1658
|
name: z.ZodString;
|
|
1659
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1607
1660
|
}, z.core.$strip>;
|
|
1608
1661
|
}, z.core.$strip>, z.ZodObject<{
|
|
1609
1662
|
type: z.ZodLiteral<"handoff_output_item">;
|
|
@@ -1673,9 +1726,11 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1673
1726
|
}, z.core.$strip>;
|
|
1674
1727
|
sourceAgent: z.ZodObject<{
|
|
1675
1728
|
name: z.ZodString;
|
|
1729
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1676
1730
|
}, z.core.$strip>;
|
|
1677
1731
|
targetAgent: z.ZodObject<{
|
|
1678
1732
|
name: z.ZodString;
|
|
1733
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1679
1734
|
}, z.core.$strip>;
|
|
1680
1735
|
}, z.core.$strip>, z.ZodObject<{
|
|
1681
1736
|
type: z.ZodLiteral<"tool_approval_item">;
|
|
@@ -1826,6 +1881,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1826
1881
|
type: z.ZodLiteral<"update_file">;
|
|
1827
1882
|
path: z.ZodString;
|
|
1828
1883
|
diff: z.ZodString;
|
|
1884
|
+
moveTo: z.ZodOptional<z.ZodString>;
|
|
1829
1885
|
}, z.core.$strip>, z.ZodObject<{
|
|
1830
1886
|
type: z.ZodLiteral<"delete_file">;
|
|
1831
1887
|
path: z.ZodString;
|
|
@@ -1833,6 +1889,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1833
1889
|
}, z.core.$strip>]>;
|
|
1834
1890
|
agent: z.ZodObject<{
|
|
1835
1891
|
name: z.ZodString;
|
|
1892
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1836
1893
|
}, z.core.$strip>;
|
|
1837
1894
|
toolName: z.ZodOptional<z.ZodString>;
|
|
1838
1895
|
}, z.core.$strip>], "type">>;
|
|
@@ -1874,6 +1931,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1874
1931
|
}, z.core.$strip>;
|
|
1875
1932
|
agent: z.ZodObject<{
|
|
1876
1933
|
name: z.ZodString;
|
|
1934
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1877
1935
|
}, z.core.$strip>;
|
|
1878
1936
|
}, z.core.$strip>, z.ZodObject<{
|
|
1879
1937
|
type: z.ZodLiteral<"tool_search_call_item">;
|
|
@@ -1892,6 +1950,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1892
1950
|
}, z.core.$strip>;
|
|
1893
1951
|
agent: z.ZodObject<{
|
|
1894
1952
|
name: z.ZodString;
|
|
1953
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1895
1954
|
}, z.core.$strip>;
|
|
1896
1955
|
}, z.core.$strip>, z.ZodObject<{
|
|
1897
1956
|
type: z.ZodLiteral<"tool_search_output_item">;
|
|
@@ -1910,6 +1969,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
1910
1969
|
}, z.core.$strip>;
|
|
1911
1970
|
agent: z.ZodObject<{
|
|
1912
1971
|
name: z.ZodString;
|
|
1972
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
1913
1973
|
}, z.core.$strip>;
|
|
1914
1974
|
}, z.core.$strip>, z.ZodObject<{
|
|
1915
1975
|
type: z.ZodLiteral<"tool_call_item">;
|
|
@@ -2039,6 +2099,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2039
2099
|
type: z.ZodLiteral<"update_file">;
|
|
2040
2100
|
path: z.ZodString;
|
|
2041
2101
|
diff: z.ZodString;
|
|
2102
|
+
moveTo: z.ZodOptional<z.ZodString>;
|
|
2042
2103
|
}, z.core.$strip>, z.ZodObject<{
|
|
2043
2104
|
type: z.ZodLiteral<"delete_file">;
|
|
2044
2105
|
path: z.ZodString;
|
|
@@ -2075,6 +2136,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2075
2136
|
}, z.core.$strip>]>;
|
|
2076
2137
|
agent: z.ZodObject<{
|
|
2077
2138
|
name: z.ZodString;
|
|
2139
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
2078
2140
|
}, z.core.$strip>;
|
|
2079
2141
|
}, z.core.$strip>, z.ZodObject<{
|
|
2080
2142
|
type: z.ZodLiteral<"tool_call_output_item">;
|
|
@@ -2180,6 +2242,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2180
2242
|
}, z.core.$strip>]>;
|
|
2181
2243
|
agent: z.ZodObject<{
|
|
2182
2244
|
name: z.ZodString;
|
|
2245
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
2183
2246
|
}, z.core.$strip>;
|
|
2184
2247
|
output: z.ZodString;
|
|
2185
2248
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2201,6 +2264,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2201
2264
|
}, z.core.$strip>;
|
|
2202
2265
|
agent: z.ZodObject<{
|
|
2203
2266
|
name: z.ZodString;
|
|
2267
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
2204
2268
|
}, z.core.$strip>;
|
|
2205
2269
|
}, z.core.$strip>, z.ZodObject<{
|
|
2206
2270
|
type: z.ZodLiteral<"handoff_call_item">;
|
|
@@ -2220,6 +2284,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2220
2284
|
}, z.core.$strip>;
|
|
2221
2285
|
agent: z.ZodObject<{
|
|
2222
2286
|
name: z.ZodString;
|
|
2287
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
2223
2288
|
}, z.core.$strip>;
|
|
2224
2289
|
}, z.core.$strip>, z.ZodObject<{
|
|
2225
2290
|
type: z.ZodLiteral<"handoff_output_item">;
|
|
@@ -2289,9 +2354,11 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2289
2354
|
}, z.core.$strip>;
|
|
2290
2355
|
sourceAgent: z.ZodObject<{
|
|
2291
2356
|
name: z.ZodString;
|
|
2357
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
2292
2358
|
}, z.core.$strip>;
|
|
2293
2359
|
targetAgent: z.ZodObject<{
|
|
2294
2360
|
name: z.ZodString;
|
|
2361
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
2295
2362
|
}, z.core.$strip>;
|
|
2296
2363
|
}, z.core.$strip>, z.ZodObject<{
|
|
2297
2364
|
type: z.ZodLiteral<"tool_approval_item">;
|
|
@@ -2442,6 +2509,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2442
2509
|
type: z.ZodLiteral<"update_file">;
|
|
2443
2510
|
path: z.ZodString;
|
|
2444
2511
|
diff: z.ZodString;
|
|
2512
|
+
moveTo: z.ZodOptional<z.ZodString>;
|
|
2445
2513
|
}, z.core.$strip>, z.ZodObject<{
|
|
2446
2514
|
type: z.ZodLiteral<"delete_file">;
|
|
2447
2515
|
path: z.ZodString;
|
|
@@ -2449,6 +2517,7 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2449
2517
|
}, z.core.$strip>]>;
|
|
2450
2518
|
agent: z.ZodObject<{
|
|
2451
2519
|
name: z.ZodString;
|
|
2520
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
2452
2521
|
}, z.core.$strip>;
|
|
2453
2522
|
toolName: z.ZodOptional<z.ZodString>;
|
|
2454
2523
|
}, z.core.$strip>], "type">>;
|
|
@@ -2506,6 +2575,40 @@ export declare const SerializedRunState: z.ZodObject<{
|
|
|
2506
2575
|
metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2507
2576
|
tracing_api_key: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2508
2577
|
}, z.core.$strip>>;
|
|
2578
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
2579
|
+
backendId: z.ZodString;
|
|
2580
|
+
currentAgentKey: z.ZodString;
|
|
2581
|
+
currentAgentName: z.ZodString;
|
|
2582
|
+
sessionState: z.ZodObject<{
|
|
2583
|
+
version: z.ZodLiteral<1>;
|
|
2584
|
+
backendId: z.ZodString;
|
|
2585
|
+
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2586
|
+
snapshot: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2587
|
+
snapshotFingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2588
|
+
snapshotFingerprintVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2589
|
+
workspaceReady: z.ZodBoolean;
|
|
2590
|
+
exposedPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2591
|
+
providerState: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2592
|
+
}, z.core.$strip>;
|
|
2593
|
+
sessionsByAgent: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2594
|
+
backendId: z.ZodString;
|
|
2595
|
+
currentAgentKey: z.ZodString;
|
|
2596
|
+
currentAgentName: z.ZodString;
|
|
2597
|
+
sessionState: z.ZodObject<{
|
|
2598
|
+
version: z.ZodLiteral<1>;
|
|
2599
|
+
backendId: z.ZodString;
|
|
2600
|
+
manifest: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2601
|
+
snapshot: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2602
|
+
snapshotFingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2603
|
+
snapshotFingerprintVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2604
|
+
workspaceReady: z.ZodBoolean;
|
|
2605
|
+
exposedPorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2606
|
+
providerState: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2607
|
+
}, z.core.$strip>;
|
|
2608
|
+
preservedOwnedSession: z.ZodOptional<z.ZodBoolean>;
|
|
2609
|
+
reuseLiveSession: z.ZodOptional<z.ZodBoolean>;
|
|
2610
|
+
}, z.core.$strip>>;
|
|
2611
|
+
}, z.core.$strip>>;
|
|
2509
2612
|
}, z.core.$strip>;
|
|
2510
2613
|
export type FinalOutputSource = 'error_handler' | 'turn_resolution';
|
|
2511
2614
|
type ToolSearchRuntimeToolEntry<TContext = UnknownContext> = {
|
|
@@ -2649,10 +2752,14 @@ export declare class RunState<TContext, TAgent extends Agent<any, any>> {
|
|
|
2649
2752
|
*/
|
|
2650
2753
|
_trace: Trace | null;
|
|
2651
2754
|
/**
|
|
2652
|
-
* Runtime-only tool_search-loaded tools, scoped by agent
|
|
2755
|
+
* Runtime-only tool_search-loaded tools, scoped by agent object and preserved across turns for
|
|
2653
2756
|
* the lifetime of this in-memory run.
|
|
2654
2757
|
*/
|
|
2655
|
-
|
|
2758
|
+
_toolSearchRuntimeToolsByAgent: Map<Agent<any, any>, ToolSearchRuntimeToolState<TContext>>;
|
|
2759
|
+
/**
|
|
2760
|
+
* Persisted sandbox session metadata for sandbox-agent resume.
|
|
2761
|
+
*/
|
|
2762
|
+
_sandbox: z.infer<typeof sandboxStateSchema> | undefined;
|
|
2656
2763
|
constructor(context: RunContext<TContext>, originalInput: string | AgentInputItem[], startingAgent: TAgent, maxTurns: number);
|
|
2657
2764
|
/**
|
|
2658
2765
|
* Updates server-managed conversation identifiers as a single operation.
|