effect-agent 0.1.0-beta.122 → 0.1.0-beta.124
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/capabilities/CodeMode.mjs +1 -0
- package/dist/capabilities/CodeMode.mjs.map +1 -1
- package/dist/durable/MessageDelivery.d.mts +38 -38
- package/dist/durable/MessageDeliveryStoreConformance.d.mts +38 -38
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +1 -2
- package/dist/sandbox/InteractiveBrowser.d.mts +1 -1
- package/dist/sandbox/PageScreenshot.d.mts +48 -2
- package/package.json +1 -1
- package/src/capabilities/CodeMode.ts +9 -0
- package/src/index.ts +0 -1
- package/dist/PageScreenshot-BpgZKAxl.d.mts +0 -48
- package/dist/sandbox/ProtectedBrowser.d.mts +0 -283
- package/dist/sandbox/ProtectedBrowser.mjs +0 -298
- package/dist/sandbox/ProtectedBrowser.mjs.map +0 -1
- package/src/sandbox/ProtectedBrowser.ts +0 -452
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"effect-agent","version":"0.1.0-beta.122","devDependencies":{"@effect/platform-node":"4.0.0-rc.116","@effect/vitest":"4.0.0-rc.116","effect":"4.0.0-rc.116","typescript":"7.0.2","vite-plus":"0.3.2"},"peerDependencies":{"effect":"^4.0.0-rc.116"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./activity-store":{"types":"./dist/durable/ActivityStore.d.mts","default":"./dist/durable/ActivityStore.mjs"},"./admin":{"types":"./dist/durable/Admin.d.mts","default":"./dist/durable/Admin.mjs"},"./agent":{"types":"./dist/core/Agent.d.mts","default":"./dist/core/Agent.mjs"},"./agent-error":{"types":"./dist/core/AgentError.d.mts","default":"./dist/core/AgentError.mjs"},"./agent-policy":{"types":"./dist/core/AgentPolicy.d.mts","default":"./dist/core/AgentPolicy.mjs"},"./agent-registration":{"types":"./dist/durable/AgentRegistration.d.mts","default":"./dist/durable/AgentRegistration.mjs"},"./agent-runtime":{"types":"./dist/engine/AgentRuntime.d.mts","default":"./dist/engine/AgentRuntime.mjs"},"./agent-updates":{"types":"./dist/core/AgentUpdates.d.mts","default":"./dist/core/AgentUpdates.mjs"},"./approval":{"types":"./dist/capabilities/Approval.d.mts","default":"./dist/capabilities/Approval.mjs"},"./budget":{"types":"./dist/capabilities/Budget.d.mts","default":"./dist/capabilities/Budget.mjs"},"./code-executor":{"types":"./dist/sandbox/CodeExecutor.d.mts","default":"./dist/sandbox/CodeExecutor.mjs"},"./code-mode":{"types":"./dist/capabilities/CodeMode.d.mts","default":"./dist/capabilities/CodeMode.mjs"},"./commands":{"types":"./dist/capabilities/Commands.d.mts","default":"./dist/capabilities/Commands.mjs"},"./committed-activity":{"types":"./dist/durable/CommittedActivity.d.mts","default":"./dist/durable/CommittedActivity.mjs"},"./compaction":{"types":"./dist/engine/Compaction.d.mts","default":"./dist/engine/Compaction.mjs"},"./context-compactor":{"types":"./dist/engine/ContextCompactor.d.mts","default":"./dist/engine/ContextCompactor.mjs"},"./context-history":{"types":"./dist/engine/ContextHistory.d.mts","default":"./dist/engine/ContextHistory.mjs"},"./context-tools":{"types":"./dist/capabilities/ContextTools.d.mts","default":"./dist/capabilities/ContextTools.mjs"},"./context-window":{"types":"./dist/engine/ContextWindow.d.mts","default":"./dist/engine/ContextWindow.mjs"},"./digest":{"types":"./dist/durable/Digest.d.mts","default":"./dist/durable/Digest.mjs"},"./durable-agent-runtime":{"types":"./dist/durable/DurableAgentRuntime.d.mts","default":"./dist/durable/DurableAgentRuntime.mjs"},"./durable-failpoint":{"types":"./dist/durable/DurableFailpoint.d.mts","default":"./dist/durable/DurableFailpoint.mjs"},"./durable-step":{"types":"./dist/engine/DurableStep.d.mts","default":"./dist/engine/DurableStep.mjs"},"./event-source":{"types":"./dist/durable/EventSource.d.mts","default":"./dist/durable/EventSource.mjs"},"./failure-diagnostic":{"types":"./dist/core/FailureDiagnostic.d.mts","default":"./dist/core/FailureDiagnostic.mjs"},"./git-hub-workflow-source":{"types":"./dist/durable/GitHubWorkflowSource.d.mts","default":"./dist/durable/GitHubWorkflowSource.mjs"},"./id-generator":{"types":"./dist/core/IdGenerator.d.mts","default":"./dist/core/IdGenerator.mjs"},"./identifiers":{"types":"./dist/core/Identifiers.d.mts","default":"./dist/core/Identifiers.mjs"},"./in-memory":{"types":"./dist/InMemory.d.mts","default":"./dist/InMemory.mjs"},"./interactive-browser":{"types":"./dist/sandbox/InteractiveBrowser.d.mts","default":"./dist/sandbox/InteractiveBrowser.mjs"},"./mcp":{"types":"./dist/capabilities/Mcp.d.mts","default":"./dist/capabilities/Mcp.mjs"},"./mcp-client":{"types":"./dist/capabilities/McpClient.d.mts","default":"./dist/capabilities/McpClient.mjs"},"./memory":{"types":"./dist/core/Memory.d.mts","default":"./dist/core/Memory.mjs"},"./memory-namespace":{"types":"./dist/core/MemoryNamespace.d.mts","default":"./dist/core/MemoryNamespace.mjs"},"./memory-notes":{"types":"./dist/capabilities/MemoryNotes.d.mts","default":"./dist/capabilities/MemoryNotes.mjs"},"./memory-reference":{"types":"./dist/core/MemoryReference.d.mts","default":"./dist/core/MemoryReference.mjs"},"./memory-revalidation":{"types":"./dist/core/MemoryRevalidation.d.mts","default":"./dist/core/MemoryRevalidation.mjs"},"./memory-store":{"types":"./dist/core/MemoryStore.d.mts","default":"./dist/core/MemoryStore.mjs"},"./message-delivery":{"types":"./dist/durable/MessageDelivery.d.mts","default":"./dist/durable/MessageDelivery.mjs"},"./messaging":{"types":"./dist/capabilities/Messaging.d.mts","default":"./dist/capabilities/Messaging.mjs"},"./messaging-host":{"types":"./dist/engine/MessagingHost.d.mts","default":"./dist/engine/MessagingHost.mjs"},"./model-context":{"types":"./dist/capabilities/ModelContext.d.mts","default":"./dist/capabilities/ModelContext.mjs"},"./operation-authorizer":{"types":"./dist/durable/OperationAuthorizer.d.mts","default":"./dist/durable/OperationAuthorizer.mjs"},"./output":{"types":"./dist/engine/Output.d.mts","default":"./dist/engine/Output.mjs"},"./page-capture":{"types":"./dist/sandbox/PageCapture.d.mts","default":"./dist/sandbox/PageCapture.mjs"},"./page-crawl":{"types":"./dist/sandbox/PageCrawl.d.mts","default":"./dist/sandbox/PageCrawl.mjs"},"./page-screenshot":{"types":"./dist/sandbox/PageScreenshot.d.mts","default":"./dist/sandbox/PageScreenshot.mjs"},"./persistent-history":{"types":"./dist/durable/PersistentHistory.d.mts","default":"./dist/durable/PersistentHistory.mjs"},"./prepared-input-admission":{"types":"./dist/durable/PreparedInputAdmission.d.mts","default":"./dist/durable/PreparedInputAdmission.mjs"},"./protected-browser":{"types":"./dist/sandbox/ProtectedBrowser.d.mts","default":"./dist/sandbox/ProtectedBrowser.mjs"},"./receipt":{"types":"./dist/core/Receipt.d.mts","default":"./dist/core/Receipt.mjs"},"./records":{"types":"./dist/durable/Records.d.mts","default":"./dist/durable/Records.mjs"},"./recovery":{"types":"./dist/durable/Recovery.d.mts","default":"./dist/durable/Recovery.mjs"},"./redaction":{"types":"./dist/capabilities/Redaction.d.mts","default":"./dist/capabilities/Redaction.mjs"},"./remembering":{"types":"./dist/capabilities/Remembering.d.mts","default":"./dist/capabilities/Remembering.mjs"},"./remembering-store":{"types":"./dist/core/RememberingStore.d.mts","default":"./dist/core/RememberingStore.mjs"},"./run-event":{"types":"./dist/core/RunEvent.d.mts","default":"./dist/core/RunEvent.mjs"},"./run-event-sink":{"types":"./dist/engine/RunEventSink.d.mts","default":"./dist/engine/RunEventSink.mjs"},"./run-hooks":{"types":"./dist/capabilities/RunHooks.d.mts","default":"./dist/capabilities/RunHooks.mjs"},"./run-journal":{"types":"./dist/durable/RunJournal.d.mts","default":"./dist/durable/RunJournal.mjs"},"./run-options":{"types":"./dist/engine/RunOptions.d.mts","default":"./dist/engine/RunOptions.mjs"},"./run-policy-usage":{"types":"./dist/core/RunPolicyUsage.d.mts","default":"./dist/core/RunPolicyUsage.mjs"},"./sandbox":{"types":"./dist/sandbox/Sandbox.d.mts","default":"./dist/sandbox/Sandbox.mjs"},"./schedule":{"types":"./dist/durable/Schedule.d.mts","default":"./dist/durable/Schedule.mjs"},"./schedule-transition":{"types":"./dist/durable/ScheduleTransition.d.mts","default":"./dist/durable/ScheduleTransition.mjs"},"./scheduling":{"types":"./dist/durable/Scheduling.d.mts","default":"./dist/durable/Scheduling.mjs"},"./semantic-memory":{"types":"./dist/capabilities/SemanticMemory.d.mts","default":"./dist/capabilities/SemanticMemory.mjs"},"./semantic-memory-index":{"types":"./dist/core/SemanticMemoryIndex.d.mts","default":"./dist/core/SemanticMemoryIndex.mjs"},"./semantic-memory-revalidation":{"types":"./dist/core/SemanticMemoryRevalidation.d.mts","default":"./dist/core/SemanticMemoryRevalidation.mjs"},"./sql-thread-native-reads":{"types":"./dist/durable/SqlThreadNativeReads.d.mts","default":"./dist/durable/SqlThreadNativeReads.mjs"},"./sql-memory-store":{"types":"./dist/durable/SqlMemoryStore.d.mts","default":"./dist/durable/SqlMemoryStore.mjs"},"./sql-message-delivery-store":{"types":"./dist/durable/SqlMessageDeliveryStore.d.mts","default":"./dist/durable/SqlMessageDeliveryStore.mjs"},"./sql-storage-v2-upgrade":{"types":"./dist/durable/SqlStorageV2Upgrade.d.mts","default":"./dist/durable/SqlStorageV2Upgrade.mjs"},"./sql-subscription-store":{"types":"./dist/durable/SqlSubscriptionStore.d.mts","default":"./dist/durable/SqlSubscriptionStore.mjs"},"./subagent":{"types":"./dist/capabilities/Subagent.d.mts","default":"./dist/capabilities/Subagent.mjs"},"./subagent-contract":{"types":"./dist/core/SubagentContract.d.mts","default":"./dist/core/SubagentContract.mjs"},"./subagent-host":{"types":"./dist/engine/SubagentHost.d.mts","default":"./dist/engine/SubagentHost.mjs"},"./subagent-reservations":{"types":"./dist/capabilities/SubagentReservations.d.mts","default":"./dist/capabilities/SubagentReservations.mjs"},"./submission-ledger":{"types":"./dist/durable/SubmissionLedger.d.mts","default":"./dist/durable/SubmissionLedger.mjs"},"./submission-status":{"types":"./dist/durable/SubmissionStatus.d.mts","default":"./dist/durable/SubmissionStatus.mjs"},"./subscription":{"types":"./dist/durable/Subscription.d.mts","default":"./dist/durable/Subscription.mjs"},"./subscription-input":{"types":"./dist/durable/SubscriptionInput.d.mts","default":"./dist/durable/SubscriptionInput.mjs"},"./subscription-tools":{"types":"./dist/durable/SubscriptionTools.d.mts","default":"./dist/durable/SubscriptionTools.mjs"},"./subscription-transition":{"types":"./dist/durable/SubscriptionTransition.d.mts","default":"./dist/durable/SubscriptionTransition.mjs"},"./subscriptions":{"types":"./dist/durable/Subscriptions.d.mts","default":"./dist/durable/Subscriptions.mjs"},"./testing/certification":{"types":"./dist/durable/Certification.d.mts","default":"./dist/durable/Certification.mjs"},"./testing/durable-failpoint-test-control":{"types":"./dist/durable/DurableFailpointTestControl.d.mts","default":"./dist/durable/DurableFailpointTestControl.mjs"},"./testing/message-delivery-store-conformance":{"types":"./dist/durable/MessageDeliveryStoreConformance.d.mts","default":"./dist/durable/MessageDeliveryStoreConformance.mjs"},"./testing/schedule-store-conformance":{"types":"./dist/durable/ScheduleStoreConformance.d.mts","default":"./dist/durable/ScheduleStoreConformance.mjs"},"./testing/submission-ledger-conformance":{"types":"./dist/durable/SubmissionLedgerConformance.d.mts","default":"./dist/durable/SubmissionLedgerConformance.mjs"},"./testing/subscription-store-conformance":{"types":"./dist/durable/SubscriptionStoreConformance.d.mts","default":"./dist/durable/SubscriptionStoreConformance.mjs"},"./testing/thread-store-conformance":{"types":"./dist/durable/ThreadStoreConformance.d.mts","default":"./dist/durable/ThreadStoreConformance.mjs"},"./thread":{"types":"./dist/core/Thread.d.mts","default":"./dist/core/Thread.mjs"},"./thread-context-history":{"types":"./dist/durable/ThreadContextHistory.d.mts","default":"./dist/durable/ThreadContextHistory.mjs"},"./thread-context-history-projection":{"types":"./dist/durable/ThreadContextHistoryProjection.d.mts","default":"./dist/durable/ThreadContextHistoryProjection.mjs"},"./thread-history":{"types":"./dist/engine/ThreadHistory.d.mts","default":"./dist/engine/ThreadHistory.mjs"},"./thread-invariants":{"types":"./dist/durable/ThreadInvariants.d.mts","default":"./dist/durable/ThreadInvariants.mjs"},"./thread-projection":{"types":"./dist/durable/ThreadProjection.d.mts","default":"./dist/durable/ThreadProjection.mjs"},"./thread-projection-maintenance":{"types":"./dist/durable/ThreadProjectionMaintenance.d.mts","default":"./dist/durable/ThreadProjectionMaintenance.mjs"},"./thread-store":{"types":"./dist/durable/ThreadStore.d.mts","default":"./dist/durable/ThreadStore.mjs"},"./tool-broker":{"types":"./dist/engine/ToolBroker.d.mts","default":"./dist/engine/ToolBroker.mjs"},"./tool-discovery":{"types":"./dist/capabilities/ToolDiscovery.d.mts","default":"./dist/capabilities/ToolDiscovery.mjs"},"./tool-exposure":{"types":"./dist/ToolExposure.d.mts","default":"./dist/ToolExposure.mjs"},"./tool-reconciler":{"types":"./dist/durable/ToolReconciler.d.mts","default":"./dist/durable/ToolReconciler.mjs"},"./tool-result":{"types":"./dist/core/ToolResult.d.mts","default":"./dist/core/ToolResult.mjs"},"./usage":{"types":"./dist/core/Usage.d.mts","default":"./dist/core/Usage.mjs"},"./wake-scheduler":{"types":"./dist/durable/WakeScheduler.d.mts","default":"./dist/durable/WakeScheduler.mjs"},"./web-capture":{"types":"./dist/capabilities/WebCapture.d.mts","default":"./dist/capabilities/WebCapture.mjs"},"./web-search":{"types":"./dist/capabilities/WebSearch.d.mts","default":"./dist/capabilities/WebSearch.mjs"},"./worker":{"types":"./dist/core/Worker.d.mts","default":"./dist/core/Worker.mjs"},"./worker-host":{"types":"./dist/durable/WorkerHost.d.mts","default":"./dist/durable/WorkerHost.mjs"}},"description":"Effect-native agents, execution, subagents, and sandbox contracts in one tree-shakeable package.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/effect-agent"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json","test":"vp test --passWithNoTests"}}
|
|
1
|
+
{"name":"effect-agent","version":"0.1.0-beta.124","devDependencies":{"@effect/platform-node":"4.0.0-rc.116","@effect/vitest":"4.0.0-rc.116","effect":"4.0.0-rc.116","typescript":"7.0.2","vite-plus":"0.3.2"},"peerDependencies":{"effect":"^4.0.0-rc.116"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./activity-store":{"types":"./dist/durable/ActivityStore.d.mts","default":"./dist/durable/ActivityStore.mjs"},"./admin":{"types":"./dist/durable/Admin.d.mts","default":"./dist/durable/Admin.mjs"},"./agent":{"types":"./dist/core/Agent.d.mts","default":"./dist/core/Agent.mjs"},"./agent-error":{"types":"./dist/core/AgentError.d.mts","default":"./dist/core/AgentError.mjs"},"./agent-policy":{"types":"./dist/core/AgentPolicy.d.mts","default":"./dist/core/AgentPolicy.mjs"},"./agent-registration":{"types":"./dist/durable/AgentRegistration.d.mts","default":"./dist/durable/AgentRegistration.mjs"},"./agent-runtime":{"types":"./dist/engine/AgentRuntime.d.mts","default":"./dist/engine/AgentRuntime.mjs"},"./agent-updates":{"types":"./dist/core/AgentUpdates.d.mts","default":"./dist/core/AgentUpdates.mjs"},"./approval":{"types":"./dist/capabilities/Approval.d.mts","default":"./dist/capabilities/Approval.mjs"},"./budget":{"types":"./dist/capabilities/Budget.d.mts","default":"./dist/capabilities/Budget.mjs"},"./code-executor":{"types":"./dist/sandbox/CodeExecutor.d.mts","default":"./dist/sandbox/CodeExecutor.mjs"},"./code-mode":{"types":"./dist/capabilities/CodeMode.d.mts","default":"./dist/capabilities/CodeMode.mjs"},"./commands":{"types":"./dist/capabilities/Commands.d.mts","default":"./dist/capabilities/Commands.mjs"},"./committed-activity":{"types":"./dist/durable/CommittedActivity.d.mts","default":"./dist/durable/CommittedActivity.mjs"},"./compaction":{"types":"./dist/engine/Compaction.d.mts","default":"./dist/engine/Compaction.mjs"},"./context-compactor":{"types":"./dist/engine/ContextCompactor.d.mts","default":"./dist/engine/ContextCompactor.mjs"},"./context-history":{"types":"./dist/engine/ContextHistory.d.mts","default":"./dist/engine/ContextHistory.mjs"},"./context-tools":{"types":"./dist/capabilities/ContextTools.d.mts","default":"./dist/capabilities/ContextTools.mjs"},"./context-window":{"types":"./dist/engine/ContextWindow.d.mts","default":"./dist/engine/ContextWindow.mjs"},"./digest":{"types":"./dist/durable/Digest.d.mts","default":"./dist/durable/Digest.mjs"},"./durable-agent-runtime":{"types":"./dist/durable/DurableAgentRuntime.d.mts","default":"./dist/durable/DurableAgentRuntime.mjs"},"./durable-failpoint":{"types":"./dist/durable/DurableFailpoint.d.mts","default":"./dist/durable/DurableFailpoint.mjs"},"./durable-step":{"types":"./dist/engine/DurableStep.d.mts","default":"./dist/engine/DurableStep.mjs"},"./event-source":{"types":"./dist/durable/EventSource.d.mts","default":"./dist/durable/EventSource.mjs"},"./failure-diagnostic":{"types":"./dist/core/FailureDiagnostic.d.mts","default":"./dist/core/FailureDiagnostic.mjs"},"./git-hub-workflow-source":{"types":"./dist/durable/GitHubWorkflowSource.d.mts","default":"./dist/durable/GitHubWorkflowSource.mjs"},"./id-generator":{"types":"./dist/core/IdGenerator.d.mts","default":"./dist/core/IdGenerator.mjs"},"./identifiers":{"types":"./dist/core/Identifiers.d.mts","default":"./dist/core/Identifiers.mjs"},"./in-memory":{"types":"./dist/InMemory.d.mts","default":"./dist/InMemory.mjs"},"./interactive-browser":{"types":"./dist/sandbox/InteractiveBrowser.d.mts","default":"./dist/sandbox/InteractiveBrowser.mjs"},"./mcp":{"types":"./dist/capabilities/Mcp.d.mts","default":"./dist/capabilities/Mcp.mjs"},"./mcp-client":{"types":"./dist/capabilities/McpClient.d.mts","default":"./dist/capabilities/McpClient.mjs"},"./memory":{"types":"./dist/core/Memory.d.mts","default":"./dist/core/Memory.mjs"},"./memory-namespace":{"types":"./dist/core/MemoryNamespace.d.mts","default":"./dist/core/MemoryNamespace.mjs"},"./memory-notes":{"types":"./dist/capabilities/MemoryNotes.d.mts","default":"./dist/capabilities/MemoryNotes.mjs"},"./memory-reference":{"types":"./dist/core/MemoryReference.d.mts","default":"./dist/core/MemoryReference.mjs"},"./memory-revalidation":{"types":"./dist/core/MemoryRevalidation.d.mts","default":"./dist/core/MemoryRevalidation.mjs"},"./memory-store":{"types":"./dist/core/MemoryStore.d.mts","default":"./dist/core/MemoryStore.mjs"},"./message-delivery":{"types":"./dist/durable/MessageDelivery.d.mts","default":"./dist/durable/MessageDelivery.mjs"},"./messaging":{"types":"./dist/capabilities/Messaging.d.mts","default":"./dist/capabilities/Messaging.mjs"},"./messaging-host":{"types":"./dist/engine/MessagingHost.d.mts","default":"./dist/engine/MessagingHost.mjs"},"./model-context":{"types":"./dist/capabilities/ModelContext.d.mts","default":"./dist/capabilities/ModelContext.mjs"},"./operation-authorizer":{"types":"./dist/durable/OperationAuthorizer.d.mts","default":"./dist/durable/OperationAuthorizer.mjs"},"./output":{"types":"./dist/engine/Output.d.mts","default":"./dist/engine/Output.mjs"},"./page-capture":{"types":"./dist/sandbox/PageCapture.d.mts","default":"./dist/sandbox/PageCapture.mjs"},"./page-crawl":{"types":"./dist/sandbox/PageCrawl.d.mts","default":"./dist/sandbox/PageCrawl.mjs"},"./page-screenshot":{"types":"./dist/sandbox/PageScreenshot.d.mts","default":"./dist/sandbox/PageScreenshot.mjs"},"./persistent-history":{"types":"./dist/durable/PersistentHistory.d.mts","default":"./dist/durable/PersistentHistory.mjs"},"./prepared-input-admission":{"types":"./dist/durable/PreparedInputAdmission.d.mts","default":"./dist/durable/PreparedInputAdmission.mjs"},"./receipt":{"types":"./dist/core/Receipt.d.mts","default":"./dist/core/Receipt.mjs"},"./records":{"types":"./dist/durable/Records.d.mts","default":"./dist/durable/Records.mjs"},"./recovery":{"types":"./dist/durable/Recovery.d.mts","default":"./dist/durable/Recovery.mjs"},"./redaction":{"types":"./dist/capabilities/Redaction.d.mts","default":"./dist/capabilities/Redaction.mjs"},"./remembering":{"types":"./dist/capabilities/Remembering.d.mts","default":"./dist/capabilities/Remembering.mjs"},"./remembering-store":{"types":"./dist/core/RememberingStore.d.mts","default":"./dist/core/RememberingStore.mjs"},"./run-event":{"types":"./dist/core/RunEvent.d.mts","default":"./dist/core/RunEvent.mjs"},"./run-event-sink":{"types":"./dist/engine/RunEventSink.d.mts","default":"./dist/engine/RunEventSink.mjs"},"./run-hooks":{"types":"./dist/capabilities/RunHooks.d.mts","default":"./dist/capabilities/RunHooks.mjs"},"./run-journal":{"types":"./dist/durable/RunJournal.d.mts","default":"./dist/durable/RunJournal.mjs"},"./run-options":{"types":"./dist/engine/RunOptions.d.mts","default":"./dist/engine/RunOptions.mjs"},"./run-policy-usage":{"types":"./dist/core/RunPolicyUsage.d.mts","default":"./dist/core/RunPolicyUsage.mjs"},"./sandbox":{"types":"./dist/sandbox/Sandbox.d.mts","default":"./dist/sandbox/Sandbox.mjs"},"./schedule":{"types":"./dist/durable/Schedule.d.mts","default":"./dist/durable/Schedule.mjs"},"./schedule-transition":{"types":"./dist/durable/ScheduleTransition.d.mts","default":"./dist/durable/ScheduleTransition.mjs"},"./scheduling":{"types":"./dist/durable/Scheduling.d.mts","default":"./dist/durable/Scheduling.mjs"},"./semantic-memory":{"types":"./dist/capabilities/SemanticMemory.d.mts","default":"./dist/capabilities/SemanticMemory.mjs"},"./semantic-memory-index":{"types":"./dist/core/SemanticMemoryIndex.d.mts","default":"./dist/core/SemanticMemoryIndex.mjs"},"./semantic-memory-revalidation":{"types":"./dist/core/SemanticMemoryRevalidation.d.mts","default":"./dist/core/SemanticMemoryRevalidation.mjs"},"./sql-thread-native-reads":{"types":"./dist/durable/SqlThreadNativeReads.d.mts","default":"./dist/durable/SqlThreadNativeReads.mjs"},"./sql-memory-store":{"types":"./dist/durable/SqlMemoryStore.d.mts","default":"./dist/durable/SqlMemoryStore.mjs"},"./sql-message-delivery-store":{"types":"./dist/durable/SqlMessageDeliveryStore.d.mts","default":"./dist/durable/SqlMessageDeliveryStore.mjs"},"./sql-storage-v2-upgrade":{"types":"./dist/durable/SqlStorageV2Upgrade.d.mts","default":"./dist/durable/SqlStorageV2Upgrade.mjs"},"./sql-subscription-store":{"types":"./dist/durable/SqlSubscriptionStore.d.mts","default":"./dist/durable/SqlSubscriptionStore.mjs"},"./subagent":{"types":"./dist/capabilities/Subagent.d.mts","default":"./dist/capabilities/Subagent.mjs"},"./subagent-contract":{"types":"./dist/core/SubagentContract.d.mts","default":"./dist/core/SubagentContract.mjs"},"./subagent-host":{"types":"./dist/engine/SubagentHost.d.mts","default":"./dist/engine/SubagentHost.mjs"},"./subagent-reservations":{"types":"./dist/capabilities/SubagentReservations.d.mts","default":"./dist/capabilities/SubagentReservations.mjs"},"./submission-ledger":{"types":"./dist/durable/SubmissionLedger.d.mts","default":"./dist/durable/SubmissionLedger.mjs"},"./submission-status":{"types":"./dist/durable/SubmissionStatus.d.mts","default":"./dist/durable/SubmissionStatus.mjs"},"./subscription":{"types":"./dist/durable/Subscription.d.mts","default":"./dist/durable/Subscription.mjs"},"./subscription-input":{"types":"./dist/durable/SubscriptionInput.d.mts","default":"./dist/durable/SubscriptionInput.mjs"},"./subscription-tools":{"types":"./dist/durable/SubscriptionTools.d.mts","default":"./dist/durable/SubscriptionTools.mjs"},"./subscription-transition":{"types":"./dist/durable/SubscriptionTransition.d.mts","default":"./dist/durable/SubscriptionTransition.mjs"},"./subscriptions":{"types":"./dist/durable/Subscriptions.d.mts","default":"./dist/durable/Subscriptions.mjs"},"./testing/certification":{"types":"./dist/durable/Certification.d.mts","default":"./dist/durable/Certification.mjs"},"./testing/durable-failpoint-test-control":{"types":"./dist/durable/DurableFailpointTestControl.d.mts","default":"./dist/durable/DurableFailpointTestControl.mjs"},"./testing/message-delivery-store-conformance":{"types":"./dist/durable/MessageDeliveryStoreConformance.d.mts","default":"./dist/durable/MessageDeliveryStoreConformance.mjs"},"./testing/schedule-store-conformance":{"types":"./dist/durable/ScheduleStoreConformance.d.mts","default":"./dist/durable/ScheduleStoreConformance.mjs"},"./testing/submission-ledger-conformance":{"types":"./dist/durable/SubmissionLedgerConformance.d.mts","default":"./dist/durable/SubmissionLedgerConformance.mjs"},"./testing/subscription-store-conformance":{"types":"./dist/durable/SubscriptionStoreConformance.d.mts","default":"./dist/durable/SubscriptionStoreConformance.mjs"},"./testing/thread-store-conformance":{"types":"./dist/durable/ThreadStoreConformance.d.mts","default":"./dist/durable/ThreadStoreConformance.mjs"},"./thread":{"types":"./dist/core/Thread.d.mts","default":"./dist/core/Thread.mjs"},"./thread-context-history":{"types":"./dist/durable/ThreadContextHistory.d.mts","default":"./dist/durable/ThreadContextHistory.mjs"},"./thread-context-history-projection":{"types":"./dist/durable/ThreadContextHistoryProjection.d.mts","default":"./dist/durable/ThreadContextHistoryProjection.mjs"},"./thread-history":{"types":"./dist/engine/ThreadHistory.d.mts","default":"./dist/engine/ThreadHistory.mjs"},"./thread-invariants":{"types":"./dist/durable/ThreadInvariants.d.mts","default":"./dist/durable/ThreadInvariants.mjs"},"./thread-projection":{"types":"./dist/durable/ThreadProjection.d.mts","default":"./dist/durable/ThreadProjection.mjs"},"./thread-projection-maintenance":{"types":"./dist/durable/ThreadProjectionMaintenance.d.mts","default":"./dist/durable/ThreadProjectionMaintenance.mjs"},"./thread-store":{"types":"./dist/durable/ThreadStore.d.mts","default":"./dist/durable/ThreadStore.mjs"},"./tool-broker":{"types":"./dist/engine/ToolBroker.d.mts","default":"./dist/engine/ToolBroker.mjs"},"./tool-discovery":{"types":"./dist/capabilities/ToolDiscovery.d.mts","default":"./dist/capabilities/ToolDiscovery.mjs"},"./tool-exposure":{"types":"./dist/ToolExposure.d.mts","default":"./dist/ToolExposure.mjs"},"./tool-reconciler":{"types":"./dist/durable/ToolReconciler.d.mts","default":"./dist/durable/ToolReconciler.mjs"},"./tool-result":{"types":"./dist/core/ToolResult.d.mts","default":"./dist/core/ToolResult.mjs"},"./usage":{"types":"./dist/core/Usage.d.mts","default":"./dist/core/Usage.mjs"},"./wake-scheduler":{"types":"./dist/durable/WakeScheduler.d.mts","default":"./dist/durable/WakeScheduler.mjs"},"./web-capture":{"types":"./dist/capabilities/WebCapture.d.mts","default":"./dist/capabilities/WebCapture.mjs"},"./web-search":{"types":"./dist/capabilities/WebSearch.d.mts","default":"./dist/capabilities/WebSearch.mjs"},"./worker":{"types":"./dist/core/Worker.d.mts","default":"./dist/core/Worker.mjs"},"./worker-host":{"types":"./dist/durable/WorkerHost.d.mts","default":"./dist/durable/WorkerHost.mjs"}},"description":"Effect-native agents, execution, subagents, and sandbox contracts in one tree-shakeable package.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/danieljvdm/effect-agent.git","directory":"packages/effect-agent"},"files":["dist","src"],"type":"module","sideEffects":[],"publishConfig":{"access":"public"},"scripts":{"build":"vp pack","check":"tsc --noEmit -p tsconfig.json","test":"vp test --passWithNoTests"}}
|
|
@@ -377,6 +377,15 @@ const renderJsonSchemaType = (
|
|
|
377
377
|
if (isJsonSchemaRecord(schema.additionalProperties)) {
|
|
378
378
|
return `Record<string, ${renderJsonSchemaType(schema.additionalProperties, defs, depth + 1, indent)}>`;
|
|
379
379
|
}
|
|
380
|
+
// Schema.Record(Schema.String, Schema.Never) accepts only an empty object.
|
|
381
|
+
if (
|
|
382
|
+
type === "object" &&
|
|
383
|
+
!("properties" in schema) &&
|
|
384
|
+
!("patternProperties" in schema) &&
|
|
385
|
+
schema.additionalProperties === false
|
|
386
|
+
) {
|
|
387
|
+
return "Record<string, never>";
|
|
388
|
+
}
|
|
380
389
|
// A bare `{ "type": "object" }` states "any JSON object" (Schema.Json's
|
|
381
390
|
// object member derives to exactly this); rendering it as an
|
|
382
391
|
// unconstrained record is faithful, not a deriver degradation.
|
package/src/index.ts
CHANGED
|
@@ -35,7 +35,6 @@ export * as Output from "./engine/Output.ts";
|
|
|
35
35
|
export * as PageCapture from "./sandbox/PageCapture.ts";
|
|
36
36
|
export * as PageCrawl from "./sandbox/PageCrawl.ts";
|
|
37
37
|
export * as PageScreenshot from "./sandbox/PageScreenshot.ts";
|
|
38
|
-
export * as ProtectedBrowser from "./sandbox/ProtectedBrowser.ts";
|
|
39
38
|
export * as Receipt from "./core/Receipt.ts";
|
|
40
39
|
export * as Redaction from "./capabilities/Redaction.ts";
|
|
41
40
|
export * as Remembering from "./capabilities/Remembering.ts";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { p as SandboxImplementation } from "./Sandbox-CEsDWBLq.mjs";
|
|
2
|
-
import { B as PageUrlTarget, E as PageCaptureUnsupportedError, M as PageNavigationOptions, N as PageResourcePolicy, V as PageViewport, h as PageCaptureNavigationError, k as PageHtmlTarget, v as PageCaptureProtocolError, y as PageCaptureRateLimitedError } from "./PageCapture-Df8Xwskw.mjs";
|
|
3
|
-
import { Context, Effect, Schema } from "effect";
|
|
4
|
-
declare namespace PageScreenshot_d_exports {
|
|
5
|
-
export { PageScreenshot, PageScreenshotCapture, PageScreenshotError, PageScreenshotLimits, PageScreenshotOutputLimitError, PageScreenshotRequest, PageScreenshotResult };
|
|
6
|
-
}
|
|
7
|
-
declare const PageScreenshotLimits_base: Schema.Class<PageScreenshotLimits, Schema.Struct<{
|
|
8
|
-
readonly maxOutputBytes: Schema.Int;
|
|
9
|
-
}>, {}>;
|
|
10
|
-
/** The byte limit and full-page choice are fixed before Browser Run starts. */
|
|
11
|
-
declare class PageScreenshotLimits extends PageScreenshotLimits_base {}
|
|
12
|
-
declare const PageScreenshotRequest_base: Schema.Class<PageScreenshotRequest, Schema.Struct<{
|
|
13
|
-
readonly target: Schema.Union<readonly [typeof PageUrlTarget, typeof PageHtmlTarget]>;
|
|
14
|
-
readonly engine: Schema.Literals<readonly ["chromium", "kitesurf"]>;
|
|
15
|
-
readonly limits: typeof PageScreenshotLimits;
|
|
16
|
-
readonly fullPage: Schema.Boolean;
|
|
17
|
-
readonly navigation: Schema.optionalKey<typeof PageNavigationOptions>;
|
|
18
|
-
readonly viewport: Schema.optionalKey<typeof PageViewport>;
|
|
19
|
-
readonly resourcePolicy: Schema.optionalKey<typeof PageResourcePolicy>;
|
|
20
|
-
}>, {}>;
|
|
21
|
-
/** Schema-first request for exactly one PNG screenshot. */
|
|
22
|
-
declare class PageScreenshotRequest extends PageScreenshotRequest_base {}
|
|
23
|
-
declare const PageScreenshotResult_base: Schema.Class<PageScreenshotResult, Schema.Struct<{
|
|
24
|
-
readonly implementation: typeof SandboxImplementation;
|
|
25
|
-
readonly mediaType: Schema.Literal<"image/png">;
|
|
26
|
-
readonly bytes: Schema.Uint8Array;
|
|
27
|
-
}>, {}>;
|
|
28
|
-
/** The only successful output: bytes are caller-owned and never durable framework data. */
|
|
29
|
-
declare class PageScreenshotResult extends PageScreenshotResult_base {}
|
|
30
|
-
declare const PageScreenshotOutputLimitError_base: Schema.Class<PageScreenshotOutputLimitError, Schema.TaggedStruct<"PageScreenshotOutputLimitError", {
|
|
31
|
-
readonly implementation: typeof SandboxImplementation;
|
|
32
|
-
readonly limit: Schema.Int;
|
|
33
|
-
readonly observed: Schema.Natural;
|
|
34
|
-
}>, import("effect/Cause").YieldableError>;
|
|
35
|
-
/** The response crossed the request's PNG byte limit. */
|
|
36
|
-
declare class PageScreenshotOutputLimitError extends PageScreenshotOutputLimitError_base {}
|
|
37
|
-
/** Expected screenshot failures. The shared capture errors keep identical semantics. */
|
|
38
|
-
declare const PageScreenshotError: Schema.Union<readonly [typeof PageCaptureRateLimitedError, typeof PageCaptureNavigationError, typeof PageCaptureUnsupportedError, typeof PageCaptureProtocolError, typeof PageScreenshotOutputLimitError]>;
|
|
39
|
-
type PageScreenshotError = typeof PageScreenshotError.Type;
|
|
40
|
-
declare const PageScreenshot_base: Context.ServiceClass<PageScreenshot, "@effect-agent/sandbox/PageScreenshot", {
|
|
41
|
-
readonly capture: (request: PageScreenshotRequest) => Effect.Effect<PageScreenshotResult, PageScreenshotError>;
|
|
42
|
-
}>;
|
|
43
|
-
/** Stateless, one-output PNG capture port. It owns neither persistence nor later byte handoff. */
|
|
44
|
-
declare class PageScreenshot extends PageScreenshot_base {}
|
|
45
|
-
type PageScreenshotCapture = (request: PageScreenshotRequest) => Effect.Effect<PageScreenshotResult, PageScreenshotError>;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { PageScreenshotOutputLimitError as a, PageScreenshot_d_exports as c, PageScreenshotLimits as i, PageScreenshotCapture as n, PageScreenshotRequest as o, PageScreenshotError as r, PageScreenshotResult as s, PageScreenshot as t };
|
|
48
|
-
//# sourceMappingURL=PageScreenshot-BpgZKAxl.d.mts.map
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import { InteractiveBrowserPolicy } from "./InteractiveBrowser.mjs";
|
|
2
|
-
import { Context, Effect, Layer, Redacted, Schema, Scope } from "effect";
|
|
3
|
-
declare namespace ProtectedBrowser_d_exports {
|
|
4
|
-
export { BrowserCredentialAccess, BrowserCredentialMaterial, BrowserReference, CardCredential, CredentialAccessError, CredentialAccessRequest, CredentialDispatch, CredentialFieldRole, CredentialKind, CredentialMilestone, CredentialObservationDecision, CredentialObservationGrant, CredentialOffer, CredentialOfferMetadata, CredentialOrigin, CredentialTarget, CredentialUseAuthorization, CredentialUseResult, ListCredentialOffers, LoginCredential, ProtectedBrowser, ProtectedBrowserAction, ProtectedBrowserCheckpoint, ProtectedBrowserClick, ProtectedBrowserControl, ProtectedBrowserError, ProtectedBrowserFill, ProtectedBrowserHandle, ProtectedBrowserNavigate, ProtectedBrowserObservation, ProtectedBrowserSession, ProtectedCleanup, ProtectedObservationState, UseCredential };
|
|
5
|
-
}
|
|
6
|
-
/** Canonical HTTPS origin, including a non-default port. Host grants match exactly. */
|
|
7
|
-
export declare const CredentialOrigin: Schema.String;
|
|
8
|
-
export declare const BrowserReference: Schema.String;
|
|
9
|
-
export declare const CredentialKind: Schema.Literals<readonly ["login", "card"]>;
|
|
10
|
-
export declare const CredentialFieldRole: Schema.Literals<readonly ["username", "password", "card-name", "card-number", "card-expiry", "card-expiry-month", "card-expiry-year", "card-security-code"]>;
|
|
11
|
-
declare const CredentialTarget_base: Schema.Class<CredentialTarget, Schema.Struct<{
|
|
12
|
-
readonly topOrigin: Schema.String;
|
|
13
|
-
readonly frameOrigin: Schema.String;
|
|
14
|
-
readonly recipientOrigin: Schema.String;
|
|
15
|
-
readonly document: Schema.String;
|
|
16
|
-
readonly frame: Schema.String;
|
|
17
|
-
readonly form: Schema.String;
|
|
18
|
-
}>, {}>;
|
|
19
|
-
export declare class CredentialTarget extends CredentialTarget_base {}
|
|
20
|
-
declare const ProtectedBrowserControl_base: Schema.Class<ProtectedBrowserControl, Schema.Struct<{
|
|
21
|
-
readonly ref: Schema.String;
|
|
22
|
-
readonly target: typeof CredentialTarget;
|
|
23
|
-
readonly role: Schema.Union<readonly [Schema.Literals<readonly ["username", "password", "card-name", "card-number", "card-expiry", "card-expiry-month", "card-expiry-year", "card-security-code"]>, Schema.Literals<readonly ["text", "select", "radio", "checkbox", "submit", "link", "button", "unsupported"]>]>;
|
|
24
|
-
readonly label: Schema.String;
|
|
25
|
-
/** Current native radio/checkbox state; field values are never included. */
|
|
26
|
-
readonly checked: Schema.optionalKey<Schema.Boolean>;
|
|
27
|
-
/**
|
|
28
|
-
* Ordinary select choices only; credential choices and raw option values remain private.
|
|
29
|
-
* Omitted choices or labels beyond the bounds set the observation's truncated flag.
|
|
30
|
-
*/
|
|
31
|
-
readonly options: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
32
|
-
readonly label: Schema.String;
|
|
33
|
-
readonly selected: Schema.Boolean;
|
|
34
|
-
readonly disabled: Schema.Boolean;
|
|
35
|
-
}>>>;
|
|
36
|
-
/** Resolved HTTPS destination for a native link; target.recipientOrigin is its origin. */
|
|
37
|
-
readonly url: Schema.optionalKey<Schema.NonEmptyString>;
|
|
38
|
-
}>, {}>;
|
|
39
|
-
export declare class ProtectedBrowserControl extends ProtectedBrowserControl_base {}
|
|
40
|
-
declare const ProtectedBrowserObservation_base: Schema.Class<ProtectedBrowserObservation, Schema.Struct<{
|
|
41
|
-
readonly document: Schema.String;
|
|
42
|
-
readonly topOrigin: Schema.String;
|
|
43
|
-
readonly text: Schema.String;
|
|
44
|
-
readonly controls: Schema.$Array<typeof ProtectedBrowserControl>;
|
|
45
|
-
readonly truncated: Schema.Boolean;
|
|
46
|
-
readonly observation: Schema.Literals<readonly ["before-exposure", "approved-after-exposure"]>;
|
|
47
|
-
}>, {}>;
|
|
48
|
-
export declare class ProtectedBrowserObservation extends ProtectedBrowserObservation_base {}
|
|
49
|
-
declare const CredentialOfferMetadata_base: Schema.Class<CredentialOfferMetadata, Schema.Struct<{
|
|
50
|
-
readonly label: Schema.String;
|
|
51
|
-
readonly brand: Schema.optionalKey<Schema.String>;
|
|
52
|
-
readonly lastFour: Schema.optionalKey<Schema.String>;
|
|
53
|
-
/** Plaintext metadata disclosed only when the host authorizes listing this offer. */
|
|
54
|
-
readonly billingAddress: Schema.optionalKey<Schema.Struct<{
|
|
55
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
56
|
-
readonly line1: Schema.optionalKey<Schema.String>;
|
|
57
|
-
readonly line2: Schema.optionalKey<Schema.String>;
|
|
58
|
-
readonly city: Schema.optionalKey<Schema.String>;
|
|
59
|
-
readonly region: Schema.optionalKey<Schema.String>;
|
|
60
|
-
readonly postalCode: Schema.optionalKey<Schema.String>;
|
|
61
|
-
readonly country: Schema.optionalKey<Schema.String>;
|
|
62
|
-
}>>;
|
|
63
|
-
}>, {}>;
|
|
64
|
-
export declare class CredentialOfferMetadata extends CredentialOfferMetadata_base {}
|
|
65
|
-
declare const CredentialOffer_base: Schema.Class<CredentialOffer, Schema.Struct<{
|
|
66
|
-
readonly ref: Schema.String;
|
|
67
|
-
readonly kind: Schema.Literals<readonly ["login", "card"]>;
|
|
68
|
-
readonly metadata: typeof CredentialOfferMetadata;
|
|
69
|
-
}>, {}>;
|
|
70
|
-
export declare class CredentialOffer extends CredentialOffer_base {}
|
|
71
|
-
declare const ListCredentialOffers_base: Schema.Class<ListCredentialOffers, Schema.Struct<{
|
|
72
|
-
readonly kind: Schema.Literals<readonly ["login", "card"]>;
|
|
73
|
-
readonly target: Schema.String;
|
|
74
|
-
}>, {}>;
|
|
75
|
-
export declare class ListCredentialOffers extends ListCredentialOffers_base {}
|
|
76
|
-
declare const UseCredential_base: Schema.Class<UseCredential, Schema.Struct<{
|
|
77
|
-
readonly offer: Schema.String;
|
|
78
|
-
readonly fields: Schema.$Array<Schema.Struct<{
|
|
79
|
-
readonly ref: Schema.String;
|
|
80
|
-
readonly role: Schema.Literals<readonly ["username", "password", "card-name", "card-number", "card-expiry", "card-expiry-month", "card-expiry-year", "card-security-code"]>;
|
|
81
|
-
}>>;
|
|
82
|
-
readonly submit: Schema.optionalKey<Schema.String>;
|
|
83
|
-
}>, {}>;
|
|
84
|
-
export declare class UseCredential extends UseCredential_base {}
|
|
85
|
-
declare const ProtectedBrowserNavigate_base: Schema.Class<ProtectedBrowserNavigate, Schema.Struct<{
|
|
86
|
-
readonly url: Schema.String;
|
|
87
|
-
}>, {}>;
|
|
88
|
-
export declare class ProtectedBrowserNavigate extends ProtectedBrowserNavigate_base {}
|
|
89
|
-
declare const ProtectedBrowserClick_base: Schema.Class<ProtectedBrowserClick, Schema.Struct<{
|
|
90
|
-
readonly ref: Schema.String;
|
|
91
|
-
}>, {}>;
|
|
92
|
-
export declare class ProtectedBrowserClick extends ProtectedBrowserClick_base {}
|
|
93
|
-
declare const ProtectedBrowserFill_base: Schema.Class<ProtectedBrowserFill, Schema.Struct<{
|
|
94
|
-
readonly ref: Schema.String;
|
|
95
|
-
readonly value: Schema.String;
|
|
96
|
-
}>, {}>;
|
|
97
|
-
/**
|
|
98
|
-
* Non-secret text for an ordinary text control or native single select in the current observation.
|
|
99
|
-
* Never pass credential material. Credential roles, including username, require useCredential.
|
|
100
|
-
* Selects match one enabled option's exact observed label. Empty text clears text controls.
|
|
101
|
-
*/
|
|
102
|
-
export declare class ProtectedBrowserFill extends ProtectedBrowserFill_base {}
|
|
103
|
-
export declare const CredentialDispatch: Schema.Literals<readonly ["not-dispatched", "possibly-dispatched", "dispatched"]>;
|
|
104
|
-
export declare const CredentialMilestone: Schema.Literals<readonly ["none", "partial-fill", "filled", "submission-dispatched"]>;
|
|
105
|
-
export declare const ProtectedObservationState: Schema.Literals<readonly ["before-exposure", "protected", "approved-after-exposure", "closed"]>;
|
|
106
|
-
export declare const ProtectedCleanup: Schema.Literals<readonly ["not-requested", "confirmed", "unconfirmed"]>;
|
|
107
|
-
declare const ProtectedBrowserError_base: Schema.Class<ProtectedBrowserError, Schema.TaggedStruct<"ProtectedBrowserError", {
|
|
108
|
-
readonly dispatch: Schema.Literals<readonly ["not-dispatched", "possibly-dispatched", "dispatched"]>;
|
|
109
|
-
readonly milestone: Schema.Literals<readonly ["none", "partial-fill", "filled", "submission-dispatched"]>;
|
|
110
|
-
readonly observation: Schema.Literals<readonly ["before-exposure", "protected", "approved-after-exposure", "closed"]>;
|
|
111
|
-
readonly cleanup: Schema.Literals<readonly ["not-requested", "confirmed", "unconfirmed"]>;
|
|
112
|
-
readonly reason: Schema.Literals<readonly ["denied", "missing-credential", "stale-reference", "unsupported", "needs-attention", "busy", "closed", "limit", "timeout", "provider", "resolver", "outcome-unknown", "observation-blocked"]>;
|
|
113
|
-
}>, import("effect/Cause").YieldableError>;
|
|
114
|
-
/** No foreign message/cause or page data may enter this failure. Closure does not undo dispatch. */
|
|
115
|
-
export declare class ProtectedBrowserError extends ProtectedBrowserError_base {}
|
|
116
|
-
declare const CredentialUseResult_base: Schema.Class<CredentialUseResult, Schema.Struct<{
|
|
117
|
-
readonly dispatch: Schema.Literals<readonly ["not-dispatched", "possibly-dispatched", "dispatched"]>;
|
|
118
|
-
readonly milestone: Schema.Literals<readonly ["none", "partial-fill", "filled", "submission-dispatched"]>;
|
|
119
|
-
readonly observation: Schema.Literals<readonly ["before-exposure", "protected", "approved-after-exposure", "closed"]>;
|
|
120
|
-
readonly cleanup: Schema.Literals<readonly ["not-requested", "confirmed", "unconfirmed"]>;
|
|
121
|
-
readonly authentication: Schema.Literal<"unverified">;
|
|
122
|
-
}>, {}>;
|
|
123
|
-
export declare class CredentialUseResult extends CredentialUseResult_base {}
|
|
124
|
-
/** Host-only material. Never encode it into Tool results, checkpoints, or storage. */
|
|
125
|
-
export declare const LoginCredential: Schema.TaggedStruct<"LoginCredential", {
|
|
126
|
-
readonly username: Schema.Redacted<Schema.NonEmptyString>;
|
|
127
|
-
readonly password: Schema.Redacted<Schema.NonEmptyString>;
|
|
128
|
-
}>;
|
|
129
|
-
/** Security codes are transient, never persisted. Dummy tests are not PCI compliance evidence. */
|
|
130
|
-
export declare const CardCredential: Schema.TaggedStruct<"CardCredential", {
|
|
131
|
-
readonly name: Schema.Redacted<Schema.NonEmptyString>;
|
|
132
|
-
readonly number: Schema.Redacted<Schema.String>;
|
|
133
|
-
readonly expiry: Schema.Redacted<Schema.NonEmptyString>;
|
|
134
|
-
readonly expiryMonth: Schema.Redacted<Schema.String>;
|
|
135
|
-
readonly expiryYear: Schema.Redacted<Schema.String>;
|
|
136
|
-
readonly securityCode: Schema.optionalKey<Schema.Redacted<Schema.String>>;
|
|
137
|
-
}>;
|
|
138
|
-
export declare const BrowserCredentialMaterial: Schema.Union<readonly [Schema.TaggedStruct<"LoginCredential", {
|
|
139
|
-
readonly username: Schema.Redacted<Schema.NonEmptyString>;
|
|
140
|
-
readonly password: Schema.Redacted<Schema.NonEmptyString>;
|
|
141
|
-
}>, Schema.TaggedStruct<"CardCredential", {
|
|
142
|
-
readonly name: Schema.Redacted<Schema.NonEmptyString>;
|
|
143
|
-
readonly number: Schema.Redacted<Schema.String>;
|
|
144
|
-
readonly expiry: Schema.Redacted<Schema.NonEmptyString>;
|
|
145
|
-
readonly expiryMonth: Schema.Redacted<Schema.String>;
|
|
146
|
-
readonly expiryYear: Schema.Redacted<Schema.String>;
|
|
147
|
-
readonly securityCode: Schema.optionalKey<Schema.Redacted<Schema.String>>;
|
|
148
|
-
}>]>;
|
|
149
|
-
export type BrowserCredentialMaterial = typeof BrowserCredentialMaterial.Type;
|
|
150
|
-
declare const CredentialAccessError_base: Schema.Class<CredentialAccessError, Schema.TaggedStruct<"CredentialAccessError", {
|
|
151
|
-
readonly reason: Schema.Literals<readonly ["denied", "missing-credential", "needs-attention", "busy", "resolver"]>;
|
|
152
|
-
}>, import("effect/Cause").YieldableError>;
|
|
153
|
-
/** Use busy for transient host-authority unavailability; return promptly without waiting for Tool completion. */
|
|
154
|
-
export declare class CredentialAccessError extends CredentialAccessError_base {}
|
|
155
|
-
export interface CredentialAccessRequest {
|
|
156
|
-
readonly caller: Redacted.Redacted<string>;
|
|
157
|
-
readonly kind: typeof CredentialKind.Type;
|
|
158
|
-
readonly target: CredentialTarget;
|
|
159
|
-
}
|
|
160
|
-
export interface CredentialUseAuthorization extends CredentialAccessRequest {
|
|
161
|
-
readonly key: Redacted.Redacted<string>;
|
|
162
|
-
readonly roles: ReadonlyArray<typeof CredentialFieldRole.Type>;
|
|
163
|
-
readonly submit: boolean;
|
|
164
|
-
}
|
|
165
|
-
/** Exact current action proposed to host authority; no ordinary fill value or secret is included. */
|
|
166
|
-
export declare const ProtectedBrowserAction: Schema.Union<readonly [Schema.TaggedStruct<"Navigate", {
|
|
167
|
-
readonly url: Schema.String;
|
|
168
|
-
}>, Schema.TaggedStruct<"Fill", {
|
|
169
|
-
readonly ref: Schema.String;
|
|
170
|
-
readonly target: typeof CredentialTarget;
|
|
171
|
-
readonly role: Schema.Literals<readonly ["text", "select"]>;
|
|
172
|
-
}>, Schema.TaggedStruct<"Click", {
|
|
173
|
-
readonly ref: Schema.String;
|
|
174
|
-
readonly target: typeof CredentialTarget;
|
|
175
|
-
readonly role: Schema.Literals<readonly ["button", "radio", "checkbox"]>;
|
|
176
|
-
}>, Schema.TaggedStruct<"Click", {
|
|
177
|
-
readonly ref: Schema.String;
|
|
178
|
-
readonly target: typeof CredentialTarget;
|
|
179
|
-
readonly role: Schema.Literal<"link">;
|
|
180
|
-
readonly url: Schema.NonEmptyString;
|
|
181
|
-
}>, Schema.TaggedStruct<"Submit", {
|
|
182
|
-
readonly ref: Schema.String;
|
|
183
|
-
readonly target: typeof CredentialTarget;
|
|
184
|
-
}>]>;
|
|
185
|
-
export type ProtectedBrowserAction = typeof ProtectedBrowserAction.Type;
|
|
186
|
-
declare const CredentialObservationGrant_base: Schema.Class<CredentialObservationGrant, Schema.Struct<{
|
|
187
|
-
readonly decision: Schema.Literal<"trust-recipient-no-credential-echo">;
|
|
188
|
-
readonly origins: Schema.$Array<Schema.String>;
|
|
189
|
-
}>, {}>;
|
|
190
|
-
/**
|
|
191
|
-
* Trust only these current observation origins. The top origin must be included. Other frames
|
|
192
|
-
* supply neither text nor usable refs. This does not expand network policy or credential grants.
|
|
193
|
-
*/
|
|
194
|
-
export declare class CredentialObservationGrant extends CredentialObservationGrant_base {}
|
|
195
|
-
export declare const CredentialObservationDecision: Schema.Union<readonly [Schema.Literals<readonly ["trust-recipient-no-credential-echo", "deny"]>, typeof CredentialObservationGrant]>;
|
|
196
|
-
declare const BrowserCredentialAccess_base: Context.ServiceClass<BrowserCredentialAccess, "@effect-agent/sandbox/BrowserCredentialAccess", {
|
|
197
|
-
readonly caller: Effect.Effect<Redacted.Redacted<string>, CredentialAccessError>;
|
|
198
|
-
readonly list: (request: CredentialAccessRequest) => Effect.Effect<ReadonlyArray<{
|
|
199
|
-
readonly key: Redacted.Redacted<string>;
|
|
200
|
-
readonly metadata: CredentialOfferMetadata;
|
|
201
|
-
}>, CredentialAccessError>;
|
|
202
|
-
readonly authorize: (request: CredentialUseAuthorization) => Effect.Effect<void, CredentialAccessError>;
|
|
203
|
-
readonly resolve: (request: CredentialUseAuthorization) => Effect.Effect<BrowserCredentialMaterial, CredentialAccessError>;
|
|
204
|
-
/**
|
|
205
|
-
* Optional host authority for every ordinary navigate/fill/click, mandatory for Submit.
|
|
206
|
-
* Recheck caller ownership, user intent, current submission/continuation grants for ALL prior
|
|
207
|
-
* exposures, and this exact target. Exposures may come from separate credential frames/forms.
|
|
208
|
-
* Without this hook, ordinary actions retain their observation gate and Submit is unsupported.
|
|
209
|
-
* Observation trust alone never authorizes a new native submit. Called again on each action;
|
|
210
|
-
* approvals are not cached. The pass revalidates caller and target after this hook returns.
|
|
211
|
-
*/
|
|
212
|
-
readonly authorizeAction?: (request: {
|
|
213
|
-
readonly caller: Redacted.Redacted<string>;
|
|
214
|
-
readonly action: ProtectedBrowserAction;
|
|
215
|
-
readonly exposures: ReadonlyArray<CredentialTarget>;
|
|
216
|
-
}) => Effect.Effect<void, CredentialAccessError>;
|
|
217
|
-
/**
|
|
218
|
-
* Explicitly trust all observed destinations not to echo credentials, including transformed
|
|
219
|
-
* or delayed echoes. Called for every observation and non-secret action after exposure.
|
|
220
|
-
* The string grant trusts all current observed origins. Return CredentialObservationGrant
|
|
221
|
-
* to select an explicit subset instead. This is recipient trust, not submission authority,
|
|
222
|
-
* a universal secrecy guarantee, or a login verifier.
|
|
223
|
-
*/
|
|
224
|
-
readonly observation: (request: {
|
|
225
|
-
readonly caller: Redacted.Redacted<string>;
|
|
226
|
-
readonly topOrigin: typeof CredentialOrigin.Type;
|
|
227
|
-
readonly frameOrigins: ReadonlyArray<typeof CredentialOrigin.Type>;
|
|
228
|
-
readonly exposures: ReadonlyArray<CredentialTarget>;
|
|
229
|
-
/** A human may have entered secrets; explicitly authorize observation even with no vault exposures. */
|
|
230
|
-
readonly humanExposure?: boolean;
|
|
231
|
-
/** Origins present when the human received control, retained across durable suspension. */
|
|
232
|
-
readonly humanOrigins?: ReadonlyArray<typeof CredentialOrigin.Type>;
|
|
233
|
-
}) => Effect.Effect<typeof CredentialObservationDecision.Type, CredentialAccessError>;
|
|
234
|
-
}>;
|
|
235
|
-
/**
|
|
236
|
-
* Host-only vault and grant port. Derive caller from the authorized invocation, never Tool input.
|
|
237
|
-
* Recheck account ownership, current grants, merchant/frame/recipient pairing, and any side
|
|
238
|
-
* effects caused by filling. Listing authorizes metadata only. Grant checks never widen network
|
|
239
|
-
* policy. Implementations must not log material or put it in defects/traces.
|
|
240
|
-
*/
|
|
241
|
-
export declare class BrowserCredentialAccess extends BrowserCredentialAccess_base {}
|
|
242
|
-
declare const ProtectedBrowserCheckpoint_base: Schema.Class<ProtectedBrowserCheckpoint, Schema.Struct<{
|
|
243
|
-
readonly policy: typeof InteractiveBrowserPolicy;
|
|
244
|
-
readonly startedAt: Schema.Natural;
|
|
245
|
-
readonly actions: Schema.Natural;
|
|
246
|
-
readonly exposures: Schema.$Array<typeof CredentialTarget>;
|
|
247
|
-
readonly humanExposure: Schema.Boolean;
|
|
248
|
-
readonly humanOrigins: Schema.$Array<Schema.String>;
|
|
249
|
-
readonly dispatch: Schema.Literals<readonly ["not-dispatched", "possibly-dispatched", "dispatched"]>;
|
|
250
|
-
readonly milestone: Schema.Literals<readonly ["none", "partial-fill", "filled", "submission-dispatched"]>;
|
|
251
|
-
}>, {}>;
|
|
252
|
-
/**
|
|
253
|
-
* Host-only suspended-pass state. Persist with the host's fenced controller receipt, never in
|
|
254
|
-
* a Tool result. It contains no credential material, offers, DOM references usable after resume,
|
|
255
|
-
* cookies, page text, or provider capability. A host must restore its own credential exposure
|
|
256
|
-
* ledger as well. The original deadline and action allowance include time spent with the human.
|
|
257
|
-
*/
|
|
258
|
-
export declare class ProtectedBrowserCheckpoint extends ProtectedBrowserCheckpoint_base {}
|
|
259
|
-
/** A private ephemeral pass. No selectors, JavaScript, screenshots, viewer, or provider identity. */
|
|
260
|
-
export interface ProtectedBrowserHandle {
|
|
261
|
-
readonly navigate: (request: ProtectedBrowserNavigate) => Effect.Effect<void, ProtectedBrowserError>;
|
|
262
|
-
readonly observe: Effect.Effect<ProtectedBrowserObservation, ProtectedBrowserError>;
|
|
263
|
-
readonly click: (request: ProtectedBrowserClick) => Effect.Effect<void, ProtectedBrowserError>;
|
|
264
|
-
/** Uses the same lock, budgets, current-target checks and post-exposure grant as other actions. */
|
|
265
|
-
readonly fill: (request: ProtectedBrowserFill) => Effect.Effect<void, ProtectedBrowserError>;
|
|
266
|
-
readonly listCredentialOffers: (request: ListCredentialOffers) => Effect.Effect<ReadonlyArray<CredentialOffer>, ProtectedBrowserError>;
|
|
267
|
-
readonly useCredential: (request: UseCredential) => Effect.Effect<CredentialUseResult, ProtectedBrowserError>;
|
|
268
|
-
readonly close: Effect.Effect<typeof ProtectedCleanup.Type>;
|
|
269
|
-
}
|
|
270
|
-
declare const ProtectedBrowser_base: Context.ServiceClass<ProtectedBrowser, "@effect-agent/sandbox/ProtectedBrowser", {
|
|
271
|
-
readonly open: (policy: InteractiveBrowserPolicy) => Effect.Effect<ProtectedBrowserHandle, ProtectedBrowserError, Scope.Scope | BrowserCredentialAccess>;
|
|
272
|
-
}>;
|
|
273
|
-
export declare class ProtectedBrowser extends ProtectedBrowser_base {}
|
|
274
|
-
declare const ProtectedBrowserSession_base: Context.ServiceClass<ProtectedBrowserSession, "@effect-agent/sandbox/ProtectedBrowserSession", {
|
|
275
|
-
readonly get: Effect.Effect<ProtectedBrowserHandle, ProtectedBrowserError>;
|
|
276
|
-
}>;
|
|
277
|
-
/** Build once in an execution/Attempt Layer. Acquires lazily and shares one pass across Tools. */
|
|
278
|
-
export declare class ProtectedBrowserSession extends ProtectedBrowserSession_base {
|
|
279
|
-
static layer(policy: InteractiveBrowserPolicy): Layer.Layer<ProtectedBrowserSession, never, BrowserCredentialAccess | ProtectedBrowser>;
|
|
280
|
-
}
|
|
281
|
-
//#endregion
|
|
282
|
-
export { ProtectedBrowser_d_exports as t };
|
|
283
|
-
//# sourceMappingURL=ProtectedBrowser.d.mts.map
|