@eloxiv/contracts 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/Agent.d.ts +792 -0
- package/dist/Agent.d.ts.map +1 -0
- package/dist/Agent.js +610 -0
- package/dist/Agent.js.map +1 -0
- package/dist/Analytics.d.ts +46 -0
- package/dist/Analytics.d.ts.map +1 -0
- package/dist/Analytics.js +89 -0
- package/dist/Analytics.js.map +1 -0
- package/dist/Approval.d.ts +70 -0
- package/dist/Approval.d.ts.map +1 -0
- package/dist/Approval.js +127 -0
- package/dist/Approval.js.map +1 -0
- package/dist/Catalog.d.ts +238 -0
- package/dist/Catalog.d.ts.map +1 -0
- package/dist/Catalog.js +169 -0
- package/dist/Catalog.js.map +1 -0
- package/dist/Checklist.d.ts +99 -0
- package/dist/Checklist.d.ts.map +1 -0
- package/dist/Checklist.js +105 -0
- package/dist/Checklist.js.map +1 -0
- package/dist/Data.d.ts +107 -0
- package/dist/Data.d.ts.map +1 -0
- package/dist/Data.js +93 -0
- package/dist/Data.js.map +1 -0
- package/dist/Devices.d.ts +857 -0
- package/dist/Devices.d.ts.map +1 -0
- package/dist/Devices.js +590 -0
- package/dist/Devices.js.map +1 -0
- package/dist/Durable.d.ts +406 -0
- package/dist/Durable.d.ts.map +1 -0
- package/dist/Durable.js +203 -0
- package/dist/Durable.js.map +1 -0
- package/dist/Errors.d.ts +95 -0
- package/dist/Errors.d.ts.map +1 -0
- package/dist/Errors.js +72 -0
- package/dist/Errors.js.map +1 -0
- package/dist/JsonSchema.d.ts +355 -0
- package/dist/JsonSchema.d.ts.map +1 -0
- package/dist/JsonSchema.js +151 -0
- package/dist/JsonSchema.js.map +1 -0
- package/dist/Manifest.d.ts +353 -0
- package/dist/Manifest.d.ts.map +1 -0
- package/dist/Manifest.js +894 -0
- package/dist/Manifest.js.map +1 -0
- package/dist/Module.d.ts +447 -0
- package/dist/Module.d.ts.map +1 -0
- package/dist/Module.js +221 -0
- package/dist/Module.js.map +1 -0
- package/dist/Optimistic.d.ts +192 -0
- package/dist/Optimistic.d.ts.map +1 -0
- package/dist/Optimistic.js +319 -0
- package/dist/Optimistic.js.map +1 -0
- package/dist/Projection.d.ts +163 -0
- package/dist/Projection.d.ts.map +1 -0
- package/dist/Projection.js +158 -0
- package/dist/Projection.js.map +1 -0
- package/dist/Proposals.d.ts +103 -0
- package/dist/Proposals.d.ts.map +1 -0
- package/dist/Proposals.js +72 -0
- package/dist/Proposals.js.map +1 -0
- package/dist/Receipt.d.ts +243 -0
- package/dist/Receipt.d.ts.map +1 -0
- package/dist/Receipt.js +108 -0
- package/dist/Receipt.js.map +1 -0
- package/dist/Records.d.ts +297 -0
- package/dist/Records.d.ts.map +1 -0
- package/dist/Records.js +171 -0
- package/dist/Records.js.map +1 -0
- package/dist/Render.d.ts +207 -0
- package/dist/Render.d.ts.map +1 -0
- package/dist/Render.js +502 -0
- package/dist/Render.js.map +1 -0
- package/dist/Rpc.d.ts +115 -0
- package/dist/Rpc.d.ts.map +1 -0
- package/dist/Rpc.js +68 -0
- package/dist/Rpc.js.map +1 -0
- package/dist/SearchLanguages.d.ts +4 -0
- package/dist/SearchLanguages.d.ts.map +1 -0
- package/dist/SearchLanguages.js +33 -0
- package/dist/SearchLanguages.js.map +1 -0
- package/dist/Service.d.ts +59 -0
- package/dist/Service.d.ts.map +1 -0
- package/dist/Service.js +38 -0
- package/dist/Service.js.map +1 -0
- package/dist/Versions.d.ts +9 -0
- package/dist/Versions.d.ts.map +1 -0
- package/dist/Versions.js +78 -0
- package/dist/Versions.js.map +1 -0
- package/dist/contracts/ActionConsent.d.ts +189 -0
- package/dist/contracts/ActionConsent.d.ts.map +1 -0
- package/dist/contracts/ActionConsent.js +129 -0
- package/dist/contracts/ActionConsent.js.map +1 -0
- package/dist/contracts/ActionRegistry.d.ts +149 -0
- package/dist/contracts/ActionRegistry.d.ts.map +1 -0
- package/dist/contracts/ActionRegistry.js +37 -0
- package/dist/contracts/ActionRegistry.js.map +1 -0
- package/dist/contracts/Actor.d.ts +129 -0
- package/dist/contracts/Actor.d.ts.map +1 -0
- package/dist/contracts/Actor.js +47 -0
- package/dist/contracts/Actor.js.map +1 -0
- package/dist/contracts/AgentResources.d.ts +248 -0
- package/dist/contracts/AgentResources.d.ts.map +1 -0
- package/dist/contracts/AgentResources.js +158 -0
- package/dist/contracts/AgentResources.js.map +1 -0
- package/dist/contracts/AgentRuntime.d.ts +453 -0
- package/dist/contracts/AgentRuntime.d.ts.map +1 -0
- package/dist/contracts/AgentRuntime.js +117 -0
- package/dist/contracts/AgentRuntime.js.map +1 -0
- package/dist/contracts/Approvals.d.ts +303 -0
- package/dist/contracts/Approvals.d.ts.map +1 -0
- package/dist/contracts/Approvals.js +117 -0
- package/dist/contracts/Approvals.js.map +1 -0
- package/dist/contracts/Audit.d.ts +510 -0
- package/dist/contracts/Audit.d.ts.map +1 -0
- package/dist/contracts/Audit.js +139 -0
- package/dist/contracts/Audit.js.map +1 -0
- package/dist/contracts/CalendarProvider.d.ts +572 -0
- package/dist/contracts/CalendarProvider.d.ts.map +1 -0
- package/dist/contracts/CalendarProvider.js +203 -0
- package/dist/contracts/CalendarProvider.js.map +1 -0
- package/dist/contracts/Capability.d.ts +197 -0
- package/dist/contracts/Capability.d.ts.map +1 -0
- package/dist/contracts/Capability.js +189 -0
- package/dist/contracts/Capability.js.map +1 -0
- package/dist/contracts/ClientSDK.d.ts +250 -0
- package/dist/contracts/ClientSDK.d.ts.map +1 -0
- package/dist/contracts/ClientSDK.js +184 -0
- package/dist/contracts/ClientSDK.js.map +1 -0
- package/dist/contracts/CollabDocument.d.ts +781 -0
- package/dist/contracts/CollabDocument.d.ts.map +1 -0
- package/dist/contracts/CollabDocument.js +364 -0
- package/dist/contracts/CollabDocument.js.map +1 -0
- package/dist/contracts/Command.d.ts +183 -0
- package/dist/contracts/Command.d.ts.map +1 -0
- package/dist/contracts/Command.js +66 -0
- package/dist/contracts/Command.js.map +1 -0
- package/dist/contracts/Connections.d.ts +612 -0
- package/dist/contracts/Connections.d.ts.map +1 -0
- package/dist/contracts/Connections.js +323 -0
- package/dist/contracts/Connections.js.map +1 -0
- package/dist/contracts/ContextAccounting.d.ts +79 -0
- package/dist/contracts/ContextAccounting.d.ts.map +1 -0
- package/dist/contracts/ContextAccounting.js +32 -0
- package/dist/contracts/ContextAccounting.js.map +1 -0
- package/dist/contracts/Daemon.d.ts +486 -0
- package/dist/contracts/Daemon.d.ts.map +1 -0
- package/dist/contracts/Daemon.js +192 -0
- package/dist/contracts/Daemon.js.map +1 -0
- package/dist/contracts/DbTx.d.ts +149 -0
- package/dist/contracts/DbTx.d.ts.map +1 -0
- package/dist/contracts/DbTx.js +94 -0
- package/dist/contracts/DbTx.js.map +1 -0
- package/dist/contracts/Delegation.d.ts +121 -0
- package/dist/contracts/Delegation.d.ts.map +1 -0
- package/dist/contracts/Delegation.js +76 -0
- package/dist/contracts/Delegation.js.map +1 -0
- package/dist/contracts/DeviceControl.d.ts +293 -0
- package/dist/contracts/DeviceControl.d.ts.map +1 -0
- package/dist/contracts/DeviceControl.js +107 -0
- package/dist/contracts/DeviceControl.js.map +1 -0
- package/dist/contracts/Directory.d.ts +492 -0
- package/dist/contracts/Directory.d.ts.map +1 -0
- package/dist/contracts/Directory.js +225 -0
- package/dist/contracts/Directory.js.map +1 -0
- package/dist/contracts/DirectoryProvider.d.ts +214 -0
- package/dist/contracts/DirectoryProvider.d.ts.map +1 -0
- package/dist/contracts/DirectoryProvider.js +73 -0
- package/dist/contracts/DirectoryProvider.js.map +1 -0
- package/dist/contracts/DocumentSource.d.ts +190 -0
- package/dist/contracts/DocumentSource.d.ts.map +1 -0
- package/dist/contracts/DocumentSource.js +64 -0
- package/dist/contracts/DocumentSource.js.map +1 -0
- package/dist/contracts/Files.d.ts +762 -0
- package/dist/contracts/Files.d.ts.map +1 -0
- package/dist/contracts/Files.js +339 -0
- package/dist/contracts/Files.js.map +1 -0
- package/dist/contracts/Flags.d.ts +265 -0
- package/dist/contracts/Flags.d.ts.map +1 -0
- package/dist/contracts/Flags.js +197 -0
- package/dist/contracts/Flags.js.map +1 -0
- package/dist/contracts/Host.d.ts +320 -0
- package/dist/contracts/Host.d.ts.map +1 -0
- package/dist/contracts/Host.js +224 -0
- package/dist/contracts/Host.js.map +1 -0
- package/dist/contracts/HttpApi.d.ts +102 -0
- package/dist/contracts/HttpApi.d.ts.map +1 -0
- package/dist/contracts/HttpApi.js +89 -0
- package/dist/contracts/HttpApi.js.map +1 -0
- package/dist/contracts/Ingestion.d.ts +522 -0
- package/dist/contracts/Ingestion.d.ts.map +1 -0
- package/dist/contracts/Ingestion.js +275 -0
- package/dist/contracts/Ingestion.js.map +1 -0
- package/dist/contracts/Ingress.d.ts +132 -0
- package/dist/contracts/Ingress.d.ts.map +1 -0
- package/dist/contracts/Ingress.js +102 -0
- package/dist/contracts/Ingress.js.map +1 -0
- package/dist/contracts/Invocation.d.ts +361 -0
- package/dist/contracts/Invocation.d.ts.map +1 -0
- package/dist/contracts/Invocation.js +104 -0
- package/dist/contracts/Invocation.js.map +1 -0
- package/dist/contracts/LocalClient.d.ts +878 -0
- package/dist/contracts/LocalClient.d.ts.map +1 -0
- package/dist/contracts/LocalClient.js +423 -0
- package/dist/contracts/LocalClient.js.map +1 -0
- package/dist/contracts/Locale.d.ts +162 -0
- package/dist/contracts/Locale.d.ts.map +1 -0
- package/dist/contracts/Locale.js +123 -0
- package/dist/contracts/Locale.js.map +1 -0
- package/dist/contracts/MachineIdentity.d.ts +434 -0
- package/dist/contracts/MachineIdentity.d.ts.map +1 -0
- package/dist/contracts/MachineIdentity.js +223 -0
- package/dist/contracts/MachineIdentity.js.map +1 -0
- package/dist/contracts/MailProvider.d.ts +791 -0
- package/dist/contracts/MailProvider.d.ts.map +1 -0
- package/dist/contracts/MailProvider.js +237 -0
- package/dist/contracts/MailProvider.js.map +1 -0
- package/dist/contracts/Memory.d.ts +62 -0
- package/dist/contracts/Memory.d.ts.map +1 -0
- package/dist/contracts/Memory.js +43 -0
- package/dist/contracts/Memory.js.map +1 -0
- package/dist/contracts/Messaging.d.ts +154 -0
- package/dist/contracts/Messaging.d.ts.map +1 -0
- package/dist/contracts/Messaging.js +97 -0
- package/dist/contracts/Messaging.js.map +1 -0
- package/dist/contracts/Metering.d.ts +334 -0
- package/dist/contracts/Metering.d.ts.map +1 -0
- package/dist/contracts/Metering.js +202 -0
- package/dist/contracts/Metering.js.map +1 -0
- package/dist/contracts/ModelProvider.d.ts +142 -0
- package/dist/contracts/ModelProvider.d.ts.map +1 -0
- package/dist/contracts/ModelProvider.js +72 -0
- package/dist/contracts/ModelProvider.js.map +1 -0
- package/dist/contracts/ModuleManifest.d.ts +2519 -0
- package/dist/contracts/ModuleManifest.d.ts.map +1 -0
- package/dist/contracts/ModuleManifest.js +272 -0
- package/dist/contracts/ModuleManifest.js.map +1 -0
- package/dist/contracts/NotificationChannel.d.ts +378 -0
- package/dist/contracts/NotificationChannel.d.ts.map +1 -0
- package/dist/contracts/NotificationChannel.js +136 -0
- package/dist/contracts/NotificationChannel.js.map +1 -0
- package/dist/contracts/Notifications.d.ts +417 -0
- package/dist/contracts/Notifications.d.ts.map +1 -0
- package/dist/contracts/Notifications.js +267 -0
- package/dist/contracts/Notifications.js.map +1 -0
- package/dist/contracts/Outbox.d.ts +469 -0
- package/dist/contracts/Outbox.d.ts.map +1 -0
- package/dist/contracts/Outbox.js +215 -0
- package/dist/contracts/Outbox.js.map +1 -0
- package/dist/contracts/Privacy.d.ts +1029 -0
- package/dist/contracts/Privacy.d.ts.map +1 -0
- package/dist/contracts/Privacy.js +437 -0
- package/dist/contracts/Privacy.js.map +1 -0
- package/dist/contracts/Progress.d.ts +305 -0
- package/dist/contracts/Progress.d.ts.map +1 -0
- package/dist/contracts/Progress.js +174 -0
- package/dist/contracts/Progress.js.map +1 -0
- package/dist/contracts/QuerySurface.d.ts +231 -0
- package/dist/contracts/QuerySurface.d.ts.map +1 -0
- package/dist/contracts/QuerySurface.js +113 -0
- package/dist/contracts/QuerySurface.js.map +1 -0
- package/dist/contracts/Readiness.d.ts +105 -0
- package/dist/contracts/Readiness.d.ts.map +1 -0
- package/dist/contracts/Readiness.js +57 -0
- package/dist/contracts/Readiness.js.map +1 -0
- package/dist/contracts/Release.d.ts +295 -0
- package/dist/contracts/Release.d.ts.map +1 -0
- package/dist/contracts/Release.js +175 -0
- package/dist/contracts/Release.js.map +1 -0
- package/dist/contracts/ResultRendering.d.ts +533 -0
- package/dist/contracts/ResultRendering.d.ts.map +1 -0
- package/dist/contracts/ResultRendering.js +59 -0
- package/dist/contracts/ResultRendering.js.map +1 -0
- package/dist/contracts/Sandbox.d.ts +1164 -0
- package/dist/contracts/Sandbox.d.ts.map +1 -0
- package/dist/contracts/Sandbox.js +550 -0
- package/dist/contracts/Sandbox.js.map +1 -0
- package/dist/contracts/Scheduler.d.ts +814 -0
- package/dist/contracts/Scheduler.d.ts.map +1 -0
- package/dist/contracts/Scheduler.js +202 -0
- package/dist/contracts/Scheduler.js.map +1 -0
- package/dist/contracts/ScreenContext.d.ts +514 -0
- package/dist/contracts/ScreenContext.d.ts.map +1 -0
- package/dist/contracts/ScreenContext.js +272 -0
- package/dist/contracts/ScreenContext.js.map +1 -0
- package/dist/contracts/Search.d.ts +308 -0
- package/dist/contracts/Search.d.ts.map +1 -0
- package/dist/contracts/Search.js +107 -0
- package/dist/contracts/Search.js.map +1 -0
- package/dist/contracts/Secrets.d.ts +483 -0
- package/dist/contracts/Secrets.d.ts.map +1 -0
- package/dist/contracts/Secrets.js +136 -0
- package/dist/contracts/Secrets.js.map +1 -0
- package/dist/contracts/Settings.d.ts +221 -0
- package/dist/contracts/Settings.d.ts.map +1 -0
- package/dist/contracts/Settings.js +163 -0
- package/dist/contracts/Settings.js.map +1 -0
- package/dist/contracts/Sharing.d.ts +319 -0
- package/dist/contracts/Sharing.d.ts.map +1 -0
- package/dist/contracts/Sharing.js +172 -0
- package/dist/contracts/Sharing.js.map +1 -0
- package/dist/contracts/Slot.d.ts +162 -0
- package/dist/contracts/Slot.d.ts.map +1 -0
- package/dist/contracts/Slot.js +56 -0
- package/dist/contracts/Slot.js.map +1 -0
- package/dist/contracts/Space.d.ts +256 -0
- package/dist/contracts/Space.d.ts.map +1 -0
- package/dist/contracts/Space.js +133 -0
- package/dist/contracts/Space.js.map +1 -0
- package/dist/contracts/StorageAdapter.d.ts +124 -0
- package/dist/contracts/StorageAdapter.d.ts.map +1 -0
- package/dist/contracts/StorageAdapter.js +96 -0
- package/dist/contracts/StorageAdapter.js.map +1 -0
- package/dist/contracts/StorageBackend.d.ts +310 -0
- package/dist/contracts/StorageBackend.d.ts.map +1 -0
- package/dist/contracts/StorageBackend.js +196 -0
- package/dist/contracts/StorageBackend.js.map +1 -0
- package/dist/contracts/Sync.d.ts +286 -0
- package/dist/contracts/Sync.d.ts.map +1 -0
- package/dist/contracts/Sync.js +157 -0
- package/dist/contracts/Sync.js.map +1 -0
- package/dist/contracts/Telemetry.d.ts +183 -0
- package/dist/contracts/Telemetry.d.ts.map +1 -0
- package/dist/contracts/Telemetry.js +153 -0
- package/dist/contracts/Telemetry.js.map +1 -0
- package/dist/contracts/ThemeTokens.d.ts +212 -0
- package/dist/contracts/ThemeTokens.d.ts.map +1 -0
- package/dist/contracts/ThemeTokens.js +111 -0
- package/dist/contracts/ThemeTokens.js.map +1 -0
- package/dist/contracts/ToolSource.d.ts +135 -0
- package/dist/contracts/ToolSource.d.ts.map +1 -0
- package/dist/contracts/ToolSource.js +81 -0
- package/dist/contracts/ToolSource.js.map +1 -0
- package/dist/contracts/Versioning.d.ts +363 -0
- package/dist/contracts/Versioning.d.ts.map +1 -0
- package/dist/contracts/Versioning.js +201 -0
- package/dist/contracts/Versioning.js.map +1 -0
- package/dist/contracts/View.d.ts +232 -0
- package/dist/contracts/View.d.ts.map +1 -0
- package/dist/contracts/View.js +102 -0
- package/dist/contracts/View.js.map +1 -0
- package/dist/contracts/WorkItems.d.ts +242 -0
- package/dist/contracts/WorkItems.d.ts.map +1 -0
- package/dist/contracts/WorkItems.js +126 -0
- package/dist/contracts/WorkItems.js.map +1 -0
- package/dist/contracts/Workflow.d.ts +191 -0
- package/dist/contracts/Workflow.d.ts.map +1 -0
- package/dist/contracts/Workflow.js +63 -0
- package/dist/contracts/Workflow.js.map +1 -0
- package/dist/contracts/index.d.ts +75 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +196 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/devices/module.d.ts +3777 -0
- package/dist/devices/module.d.ts.map +1 -0
- package/dist/devices/module.js +179 -0
- package/dist/devices/module.js.map +1 -0
- package/dist/drizzle/Entity.d.ts +148 -0
- package/dist/drizzle/Entity.d.ts.map +1 -0
- package/dist/drizzle/Entity.js +396 -0
- package/dist/drizzle/Entity.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -3
- package/schema/Actor.json +46 -0
- package/schema/AuditRecord.json +403 -0
- package/schema/DaemonHealth.json +29 -0
- package/schema/InvocationError.json +257 -0
- package/schema/InvocationReceipt.json +253 -0
- package/schema/Lockfile.json +129 -0
- package/schema/OutboxEvent.json +36 -0
- package/schema/PairingConfirm.json +33 -0
- package/schema/PairingResult.json +18 -0
- package/schema/PairingStart.json +18 -0
- package/schema/ProvenanceEntry.json +110 -0
- package/schema/ReplayEnvelope.json +269 -0
- package/schema/Surface.json +17 -0
- package/schema/codegen/LocalClient.json +1295 -0
- package/schema/codegen/Sandbox.json +320 -0
- package/schema/contracts/ActionConsent.json +1930 -0
- package/schema/contracts/ActionRegistry.json +722 -0
- package/schema/contracts/Actor.json +451 -0
- package/schema/contracts/AgentResources.json +1400 -0
- package/schema/contracts/AgentRuntime.json +4017 -0
- package/schema/contracts/Approvals.json +2916 -0
- package/schema/contracts/Audit.json +3268 -0
- package/schema/contracts/CalendarProvider.json +5557 -0
- package/schema/contracts/ClientSDK.json +1400 -0
- package/schema/contracts/CollabDocument.json +4012 -0
- package/schema/contracts/Command.json +616 -0
- package/schema/contracts/Connections.json +6687 -0
- package/schema/contracts/ContextAccounting.json +685 -0
- package/schema/contracts/Daemon.json +4555 -0
- package/schema/contracts/DbTx.json +321 -0
- package/schema/contracts/Delegation.json +949 -0
- package/schema/contracts/DeviceControl.json +2626 -0
- package/schema/contracts/Directory.json +5168 -0
- package/schema/contracts/DirectoryProvider.json +2090 -0
- package/schema/contracts/DocumentSource.json +2044 -0
- package/schema/contracts/Files.json +4122 -0
- package/schema/contracts/Flags.json +1202 -0
- package/schema/contracts/Host.json +1769 -0
- package/schema/contracts/HttpApi.json +1615 -0
- package/schema/contracts/Ingestion.json +3211 -0
- package/schema/contracts/Ingress.json +819 -0
- package/schema/contracts/Invocation.json +2044 -0
- package/schema/contracts/LocalClient.json +6642 -0
- package/schema/contracts/Locale.json +654 -0
- package/schema/contracts/MachineIdentity.json +2303 -0
- package/schema/contracts/MailProvider.json +6663 -0
- package/schema/contracts/Memory.json +579 -0
- package/schema/contracts/Messaging.json +1764 -0
- package/schema/contracts/Metering.json +3060 -0
- package/schema/contracts/ModelProvider.json +1127 -0
- package/schema/contracts/ModuleManifest.json +9449 -0
- package/schema/contracts/NotificationChannel.json +986 -0
- package/schema/contracts/Notifications.json +4280 -0
- package/schema/contracts/Outbox.json +1451 -0
- package/schema/contracts/Privacy.json +4354 -0
- package/schema/contracts/Progress.json +1524 -0
- package/schema/contracts/QuerySurface.json +661 -0
- package/schema/contracts/Readiness.json +209 -0
- package/schema/contracts/Release.json +805 -0
- package/schema/contracts/ResultRendering.json +2859 -0
- package/schema/contracts/Sandbox.json +2286 -0
- package/schema/contracts/Scheduler.json +6138 -0
- package/schema/contracts/ScreenContext.json +1238 -0
- package/schema/contracts/Search.json +1058 -0
- package/schema/contracts/Secrets.json +2444 -0
- package/schema/contracts/Settings.json +654 -0
- package/schema/contracts/Sharing.json +2854 -0
- package/schema/contracts/Slot.json +537 -0
- package/schema/contracts/Space.json +892 -0
- package/schema/contracts/StorageAdapter.json +623 -0
- package/schema/contracts/StorageBackend.json +2421 -0
- package/schema/contracts/Sync.json +894 -0
- package/schema/contracts/Telemetry.json +696 -0
- package/schema/contracts/ThemeTokens.json +547 -0
- package/schema/contracts/ToolSource.json +1333 -0
- package/schema/contracts/Versioning.json +1481 -0
- package/schema/contracts/View.json +750 -0
- package/schema/contracts/WorkItems.json +1731 -0
- package/schema/contracts/Workflow.json +1242 -0
- package/src/Agent.ts +758 -0
- package/src/Analytics.ts +110 -0
- package/src/Approval.ts +131 -0
- package/src/Catalog.ts +192 -0
- package/src/Checklist.ts +162 -0
- package/src/Data.ts +109 -0
- package/src/Devices.ts +721 -0
- package/src/Durable.ts +240 -0
- package/src/Errors.ts +111 -0
- package/src/JsonSchema.ts +166 -0
- package/src/Manifest.ts +1147 -0
- package/src/Module.ts +640 -0
- package/src/Optimistic.ts +332 -0
- package/src/Projection.ts +207 -0
- package/src/Proposals.ts +89 -0
- package/src/Receipt.ts +125 -0
- package/src/Records.ts +197 -0
- package/src/Render.ts +515 -0
- package/src/Rpc.ts +113 -0
- package/src/SearchLanguages.ts +33 -0
- package/src/Service.ts +102 -0
- package/src/Versions.ts +69 -0
- package/src/contracts/ActionConsent.ts +150 -0
- package/src/contracts/ActionRegistry.ts +39 -0
- package/src/contracts/Actor.ts +53 -0
- package/src/contracts/AgentResources.ts +167 -0
- package/src/contracts/AgentRuntime.ts +154 -0
- package/src/contracts/Approvals.ts +133 -0
- package/src/contracts/Audit.ts +160 -0
- package/src/contracts/CalendarProvider.ts +241 -0
- package/src/contracts/Capability.ts +246 -0
- package/src/contracts/ClientSDK.ts +199 -0
- package/src/contracts/CollabDocument.ts +420 -0
- package/src/contracts/Command.ts +74 -0
- package/src/contracts/Connections.ts +360 -0
- package/src/contracts/ContextAccounting.ts +35 -0
- package/src/contracts/Daemon.ts +247 -0
- package/src/contracts/DbTx.ts +110 -0
- package/src/contracts/Delegation.ts +91 -0
- package/src/contracts/DeviceControl.ts +143 -0
- package/src/contracts/Directory.ts +384 -0
- package/src/contracts/DirectoryProvider.ts +82 -0
- package/src/contracts/DocumentSource.ts +71 -0
- package/src/contracts/Files.ts +395 -0
- package/src/contracts/Flags.ts +241 -0
- package/src/contracts/Host.ts +245 -0
- package/src/contracts/HttpApi.ts +100 -0
- package/src/contracts/Ingestion.ts +315 -0
- package/src/contracts/Ingress.ts +132 -0
- package/src/contracts/Invocation.ts +122 -0
- package/src/contracts/LocalClient.ts +614 -0
- package/src/contracts/Locale.ts +133 -0
- package/src/contracts/MachineIdentity.ts +305 -0
- package/src/contracts/MailProvider.ts +272 -0
- package/src/contracts/Memory.ts +47 -0
- package/src/contracts/Messaging.ts +108 -0
- package/src/contracts/Metering.ts +231 -0
- package/src/contracts/ModelProvider.ts +87 -0
- package/src/contracts/ModuleManifest.ts +310 -0
- package/src/contracts/NotificationChannel.ts +158 -0
- package/src/contracts/Notifications.ts +309 -0
- package/src/contracts/Outbox.ts +246 -0
- package/src/contracts/Privacy.ts +502 -0
- package/src/contracts/Progress.ts +196 -0
- package/src/contracts/QuerySurface.ts +134 -0
- package/src/contracts/Readiness.ts +67 -0
- package/src/contracts/Release.ts +199 -0
- package/src/contracts/ResultRendering.ts +65 -0
- package/src/contracts/Sandbox.ts +648 -0
- package/src/contracts/Scheduler.ts +237 -0
- package/src/contracts/ScreenContext.ts +316 -0
- package/src/contracts/Search.ts +126 -0
- package/src/contracts/Secrets.ts +162 -0
- package/src/contracts/Settings.ts +207 -0
- package/src/contracts/Sharing.ts +205 -0
- package/src/contracts/Slot.ts +61 -0
- package/src/contracts/Space.ts +157 -0
- package/src/contracts/StorageAdapter.ts +104 -0
- package/src/contracts/StorageBackend.ts +220 -0
- package/src/contracts/Sync.ts +180 -0
- package/src/contracts/Telemetry.ts +177 -0
- package/src/contracts/ThemeTokens.ts +136 -0
- package/src/contracts/ToolSource.ts +94 -0
- package/src/contracts/Versioning.ts +237 -0
- package/src/contracts/View.ts +116 -0
- package/src/contracts/WorkItems.ts +144 -0
- package/src/contracts/Workflow.ts +67 -0
- package/src/contracts/index.ts +205 -0
- package/src/devices/module.ts +201 -0
- package/src/drizzle/Entity.ts +524 -0
- package/src/index.ts +19 -0
package/dist/Agent.d.ts
ADDED
|
@@ -0,0 +1,792 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records of the agent (the AgentRuntime, Memory, Delegation, ContextAccounting, AgentResources, ModelProvider
|
|
3
|
+
* and Metering contracts): runs and their events, context inventories, memory entries, resources, budgets and
|
|
4
|
+
* usage, and the errors the agent reports. Shared by the kernel, the client SDK and the conformance kits.
|
|
5
|
+
*/
|
|
6
|
+
import { Schema } from "effect";
|
|
7
|
+
/** Where the kernel serves the agent over HTTP (see docs/contracts/agent-runtime.md). */
|
|
8
|
+
export declare const AGENT_PATHS: {
|
|
9
|
+
readonly messages: "/agent/messages";
|
|
10
|
+
readonly runs: "/agent/runs";
|
|
11
|
+
readonly conversations: "/agent/conversations";
|
|
12
|
+
readonly complete: "/agent/complete";
|
|
13
|
+
readonly resources: "/agent/resources";
|
|
14
|
+
readonly memory: "/agent/memory";
|
|
15
|
+
readonly budgets: "/agent/budgets";
|
|
16
|
+
readonly usage: "/agent/usage";
|
|
17
|
+
readonly insights: "/agent/usage/insights";
|
|
18
|
+
readonly feedback: "/agent/feedback";
|
|
19
|
+
readonly readiness: "/agent/readiness";
|
|
20
|
+
/** Model setup: the catalogue (GET), and `/keys`, `/keys/remove`, `/check`, `/choose`, `/policy` (POST). */
|
|
21
|
+
readonly models: "/agent/models";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Whether the caller's agent can answer on the deployment's model now, as the kernel decides it (`GET
|
|
25
|
+
* /agent/readiness`, the organisation's model): `configured` (a provider and model are chosen and the provider can
|
|
26
|
+
* be called with the organisation's credentials); `missing` (nothing to call yet: no model chosen, or the provider has
|
|
27
|
+
* no credentials for the organisation: someone must set it up); `unavailable` (configured, but it cannot be used: a
|
|
28
|
+
* provider or model this deployment does not have, or credentials the provider refuses to build a model with).
|
|
29
|
+
* `unknown` is never the kernel's answer: a client that could not ask (no answer, a transport failure) says it, so
|
|
30
|
+
* a failed probe is never mistaken for a missing setup. The check builds the model without calling the provider, so
|
|
31
|
+
* `configured` is not a promise that a call succeeds (that failure is a run's `ModelUnavailable`).
|
|
32
|
+
*/
|
|
33
|
+
export declare const EngineState: Schema.Literals<readonly ["configured", "missing", "unavailable", "unknown"]>;
|
|
34
|
+
export type EngineState = typeof EngineState.Type;
|
|
35
|
+
export declare const EngineReadiness: Schema.Struct<{
|
|
36
|
+
readonly state: Schema.Literals<readonly ["configured", "missing", "unavailable", "unknown"]>;
|
|
37
|
+
/** The model the organisation's agent uses, when one is chosen. */
|
|
38
|
+
readonly provider: Schema.NullOr<Schema.String>;
|
|
39
|
+
readonly model: Schema.NullOr<Schema.String>;
|
|
40
|
+
/** Why, in words a person can act on; never a credential or what a provider said. */
|
|
41
|
+
readonly detail: Schema.String;
|
|
42
|
+
}>;
|
|
43
|
+
export type EngineReadiness = typeof EngineReadiness.Type;
|
|
44
|
+
declare const BudgetExceeded_base: Schema.Class<BudgetExceeded, Schema.TaggedStruct<"BudgetExceeded", {
|
|
45
|
+
readonly message: Schema.String;
|
|
46
|
+
/** Whose budget: the person's or the organisation's. */
|
|
47
|
+
readonly scope: Schema.Literals<readonly ["user", "org"]>;
|
|
48
|
+
/** What is limited: tokens or cost (in millionths of the currency unit). */
|
|
49
|
+
readonly meter: Schema.Literals<readonly ["agent.tokens", "agent.cost"]>;
|
|
50
|
+
readonly limit: Schema.Number;
|
|
51
|
+
readonly used: Schema.Number;
|
|
52
|
+
/** What the refused call would have added (an estimate of its input). */
|
|
53
|
+
readonly requested: Schema.Number;
|
|
54
|
+
}>, import("effect/Cause").YieldableError>;
|
|
55
|
+
/** A token or cost budget would be exceeded: the model call was refused before it was made. */
|
|
56
|
+
export declare class BudgetExceeded extends BudgetExceeded_base {
|
|
57
|
+
}
|
|
58
|
+
declare const ToolNotAllowed_base: Schema.Class<ToolNotAllowed, Schema.TaggedStruct<"ToolNotAllowed", {
|
|
59
|
+
readonly message: Schema.String;
|
|
60
|
+
readonly tool: Schema.String;
|
|
61
|
+
}>, import("effect/Cause").YieldableError>;
|
|
62
|
+
/** The model asked for a tool the run may not use (a sub-agent's narrower set, or no such tool). */
|
|
63
|
+
export declare class ToolNotAllowed extends ToolNotAllowed_base {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Why a model call failed, as clients see it: the provider was unavailable (or not configured for the
|
|
67
|
+
* organisation), limited the rate, refused the credentials or access, took too long, or rejected the request.
|
|
68
|
+
*/
|
|
69
|
+
export declare const ModelFailureReason: Schema.Literals<readonly ["unavailable", "rate-limited", "refused", "timeout", "invalid-request"]>;
|
|
70
|
+
export type ModelFailureReason = typeof ModelFailureReason.Type;
|
|
71
|
+
declare const ModelUnavailable_base: Schema.Class<ModelUnavailable, Schema.TaggedStruct<"ModelUnavailable", {
|
|
72
|
+
readonly message: Schema.String;
|
|
73
|
+
readonly provider: Schema.String;
|
|
74
|
+
readonly model: Schema.String;
|
|
75
|
+
readonly reason: Schema.optionalKey<Schema.Literals<readonly ["unavailable", "rate-limited", "refused", "timeout", "invalid-request"]>>;
|
|
76
|
+
}>, import("effect/Cause").YieldableError>;
|
|
77
|
+
/**
|
|
78
|
+
* No model provider is configured for the deployment or organisation, or the provider refused the call. The
|
|
79
|
+
* `message` is the kernel's own: a provider's error text (which can echo keys or configuration) never reaches it;
|
|
80
|
+
* a provider's failure carries a fixed message per `reason` and a reference to the kernel's log, which holds the
|
|
81
|
+
* detail, redacted.
|
|
82
|
+
*/
|
|
83
|
+
export declare class ModelUnavailable extends ModelUnavailable_base {
|
|
84
|
+
}
|
|
85
|
+
declare const UnknownRun_base: Schema.Class<UnknownRun, Schema.TaggedStruct<"UnknownRun", {
|
|
86
|
+
readonly runId: Schema.String;
|
|
87
|
+
}>, import("effect/Cause").YieldableError>;
|
|
88
|
+
/** No run (or conversation) with this id that the caller may see. */
|
|
89
|
+
export declare class UnknownRun extends UnknownRun_base {
|
|
90
|
+
}
|
|
91
|
+
/** Tokens a model call used, as the provider reported them. */
|
|
92
|
+
export declare const ModelUsage: Schema.Struct<{
|
|
93
|
+
readonly inputTokens: Schema.Number;
|
|
94
|
+
readonly outputTokens: Schema.Number;
|
|
95
|
+
}>;
|
|
96
|
+
export type ModelUsage = typeof ModelUsage.Type;
|
|
97
|
+
/** Which provider and model serve an organisation (or the deployment's default). */
|
|
98
|
+
export declare const ModelChoice: Schema.Struct<{
|
|
99
|
+
readonly provider: Schema.String;
|
|
100
|
+
readonly model: Schema.String;
|
|
101
|
+
}>;
|
|
102
|
+
export type ModelChoice = typeof ModelChoice.Type;
|
|
103
|
+
/** What a provider charges, in millionths of the currency unit per million tokens (0 when unknown or free). */
|
|
104
|
+
export declare const ModelPricing: Schema.Struct<{
|
|
105
|
+
readonly inputPerMillionMicros: Schema.Number;
|
|
106
|
+
readonly outputPerMillionMicros: Schema.Number;
|
|
107
|
+
}>;
|
|
108
|
+
export type ModelPricing = typeof ModelPricing.Type;
|
|
109
|
+
/** A message of a one-shot completion or of a conversation, in the provider-neutral form. */
|
|
110
|
+
export declare const CompletionMessage: Schema.Struct<{
|
|
111
|
+
readonly role: Schema.Literals<readonly ["system", "user", "assistant"]>;
|
|
112
|
+
readonly content: Schema.String;
|
|
113
|
+
}>;
|
|
114
|
+
export type CompletionMessage = typeof CompletionMessage.Type;
|
|
115
|
+
/** A tool the model may call: its name, description and JSON Schema input. */
|
|
116
|
+
export declare const ToolDefinition: Schema.Struct<{
|
|
117
|
+
readonly name: Schema.String;
|
|
118
|
+
readonly description: Schema.String;
|
|
119
|
+
readonly inputSchema: Schema.Unknown;
|
|
120
|
+
}>;
|
|
121
|
+
export type ToolDefinition = typeof ToolDefinition.Type;
|
|
122
|
+
/** A tool call the model made. */
|
|
123
|
+
export declare const ToolCall: Schema.Struct<{
|
|
124
|
+
readonly toolCallId: Schema.String;
|
|
125
|
+
readonly toolName: Schema.String;
|
|
126
|
+
readonly input: Schema.Unknown;
|
|
127
|
+
}>;
|
|
128
|
+
export type ToolCall = typeof ToolCall.Type;
|
|
129
|
+
export declare const RunStatus: Schema.Literals<readonly ["queued", "running", "waiting", "succeeded", "stopped", "failed", "cancelled"]>;
|
|
130
|
+
export type RunStatus = typeof RunStatus.Type;
|
|
131
|
+
/**
|
|
132
|
+
* Why a run ended without succeeding: a loop limit (`steps`, `tokens`, `wall-time`), a budget, cancellation, a
|
|
133
|
+
* model failure, a failure of the run itself (`error`), or the model's own end (`completed`, for runs that succeeded).
|
|
134
|
+
* `noop`: a run a job or schedule started (`kind: "job"`) that found nothing to do and said so with its `no_op`
|
|
135
|
+
* tool; it succeeded, and its result is the reason.
|
|
136
|
+
*/
|
|
137
|
+
export declare const StopReason: Schema.Literals<readonly ["completed", "noop", "steps", "tokens", "wall-time", "budget", "cancelled", "model-error", "error", "processor"]>;
|
|
138
|
+
export type StopReason = typeof StopReason.Type;
|
|
139
|
+
/**
|
|
140
|
+
* How a run may act. `act` (the default): every tool it may use. `plan`: it reads and plans but changes nothing:
|
|
141
|
+
* only read-only actions (`hints.readOnly`) and the run's own read tools are offered, and a call to any other action
|
|
142
|
+
* is refused before it reaches the invocation path. A sub-agent of a plan-mode run is in plan mode too.
|
|
143
|
+
*/
|
|
144
|
+
export declare const RunMode: Schema.Literals<readonly ["act", "plan"]>;
|
|
145
|
+
export type RunMode = typeof RunMode.Type;
|
|
146
|
+
/**
|
|
147
|
+
* A write's compact receipt, carried on an agent tool result (`receipt`): did the call change anything, and is what
|
|
148
|
+
* it changed verified? `verified: true` only when the change was checked (by the kernel: an exact action's declared
|
|
149
|
+
* target or written row, authorised in its transaction; or by the action itself); `false` when a check failed (a
|
|
150
|
+
* best-effort action that skipped targets, a check the action reports failed); `unverified` when nothing checked it
|
|
151
|
+
* (a write without a declared target, an external effect the provider has not confirmed yet). An action may return
|
|
152
|
+
* its own receipt as an output field `_receipt` (this schema), which the kernel merges with what it observed: it can
|
|
153
|
+
* lower the kernel's verdict, never raise one the kernel saw fail.
|
|
154
|
+
*/
|
|
155
|
+
export declare const ReceiptCheck: Schema.Struct<{
|
|
156
|
+
readonly id: Schema.String;
|
|
157
|
+
readonly ok: Schema.Boolean;
|
|
158
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
159
|
+
}>;
|
|
160
|
+
export type ReceiptCheck = typeof ReceiptCheck.Type;
|
|
161
|
+
export declare const WriteReceipt: Schema.Struct<{
|
|
162
|
+
readonly changed: Schema.Boolean;
|
|
163
|
+
readonly verified: Schema.Union<readonly [Schema.Boolean, Schema.Literal<"unverified">]>;
|
|
164
|
+
readonly summary: Schema.String;
|
|
165
|
+
/** What it changed (a record reference), so a later verified write to the same subject can supersede a failed one. */
|
|
166
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
167
|
+
readonly checks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
168
|
+
readonly id: Schema.String;
|
|
169
|
+
readonly ok: Schema.Boolean;
|
|
170
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
171
|
+
}>>>;
|
|
172
|
+
readonly warnings: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
173
|
+
}>;
|
|
174
|
+
export type WriteReceipt = typeof WriteReceipt.Type;
|
|
175
|
+
/**
|
|
176
|
+
* What the final-answer check found (persisted on a run that ended with an answer after writes): the receipts of
|
|
177
|
+
* its writes that were not verified, and what the check did: `passed` (none), `retried` (the model was challenged
|
|
178
|
+
* once with them and answered again), `annotated` (the answer carries them: `result` ends with a write check).
|
|
179
|
+
*/
|
|
180
|
+
export declare const RunVerification: Schema.Struct<{
|
|
181
|
+
readonly outcome: Schema.Literals<readonly ["passed", "retried", "annotated"]>;
|
|
182
|
+
readonly receipts: Schema.$Array<Schema.Struct<{
|
|
183
|
+
readonly tool: Schema.String;
|
|
184
|
+
readonly receipt: Schema.Struct<{
|
|
185
|
+
readonly changed: Schema.Boolean;
|
|
186
|
+
readonly verified: Schema.Union<readonly [Schema.Boolean, Schema.Literal<"unverified">]>;
|
|
187
|
+
readonly summary: Schema.String;
|
|
188
|
+
/** What it changed (a record reference), so a later verified write to the same subject can supersede a failed one. */
|
|
189
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
190
|
+
readonly checks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
191
|
+
readonly id: Schema.String;
|
|
192
|
+
readonly ok: Schema.Boolean;
|
|
193
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
194
|
+
}>>>;
|
|
195
|
+
readonly warnings: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
196
|
+
}>;
|
|
197
|
+
}>>;
|
|
198
|
+
/** Final-answer processors that challenged the answer (by name). */
|
|
199
|
+
readonly challengedBy: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
200
|
+
}>;
|
|
201
|
+
export type RunVerification = typeof RunVerification.Type;
|
|
202
|
+
export declare const RunContinuation: Schema.Struct<{
|
|
203
|
+
readonly of: Schema.String;
|
|
204
|
+
readonly previous: Schema.String;
|
|
205
|
+
readonly attempt: Schema.Number;
|
|
206
|
+
readonly automatic: Schema.Boolean;
|
|
207
|
+
}>;
|
|
208
|
+
export type RunContinuation = typeof RunContinuation.Type;
|
|
209
|
+
/**
|
|
210
|
+
* The organisation's agent loop policy (the setting `agent.loop`, organisation scope: written by members with
|
|
211
|
+
* `eloxiv.settings.manage`, or the deployment's value): each limit given replaces the deployment's for the
|
|
212
|
+
* organisation's runs, capped at the deployment's ceiling (`KernelApp.agent.maxLimits`).
|
|
213
|
+
*/
|
|
214
|
+
export declare const AgentLoopPolicy: Schema.Struct<{
|
|
215
|
+
readonly maxSteps: Schema.optionalKey<Schema.Number>;
|
|
216
|
+
readonly maxTokens: Schema.optionalKey<Schema.Number>;
|
|
217
|
+
readonly maxWallMs: Schema.optionalKey<Schema.Number>;
|
|
218
|
+
}>;
|
|
219
|
+
export type AgentLoopPolicy = typeof AgentLoopPolicy.Type;
|
|
220
|
+
/**
|
|
221
|
+
* How the organisation's agent is offered its tools (the setting `agent.tools`, organisation scope). `all`: every
|
|
222
|
+
* tool it may use, with its schema, on every model call. `search`: a compact index of tool names, `tool_search` to
|
|
223
|
+
* find and load tools (ranked by name and description), and the loaded tools' schemas on the run's later calls;
|
|
224
|
+
* `eager` names tools always offered with their schemas.
|
|
225
|
+
*/
|
|
226
|
+
export declare const AgentToolPolicy: Schema.Struct<{
|
|
227
|
+
readonly discovery: Schema.Literals<readonly ["all", "search"]>;
|
|
228
|
+
readonly eager: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
229
|
+
}>;
|
|
230
|
+
export type AgentToolPolicy = typeof AgentToolPolicy.Type;
|
|
231
|
+
/** The loop limits of a run. A sub-agent's are at most what its parent has left. */
|
|
232
|
+
export declare const RunLimits: Schema.Struct<{
|
|
233
|
+
/** Model calls. */
|
|
234
|
+
readonly maxSteps: Schema.Number;
|
|
235
|
+
/** Input plus output tokens over all model calls. */
|
|
236
|
+
readonly maxTokens: Schema.Number;
|
|
237
|
+
/** From the run's start to its last model call (ms). */
|
|
238
|
+
readonly maxWallMs: Schema.Number;
|
|
239
|
+
}>;
|
|
240
|
+
export type RunLimits = typeof RunLimits.Type;
|
|
241
|
+
export declare const RunKind: Schema.Literals<readonly ["turn", "subagent", "job"]>;
|
|
242
|
+
export type RunKind = typeof RunKind.Type;
|
|
243
|
+
export declare const Run: Schema.Struct<{
|
|
244
|
+
readonly id: Schema.String;
|
|
245
|
+
readonly orgId: Schema.String;
|
|
246
|
+
/** The person the run acts for (`$system` for an organisation's job run). */
|
|
247
|
+
readonly userId: Schema.String;
|
|
248
|
+
readonly conversationId: Schema.String;
|
|
249
|
+
readonly parentRunId: Schema.NullOr<Schema.String>;
|
|
250
|
+
readonly kind: Schema.Literals<readonly ["turn", "subagent", "job"]>;
|
|
251
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "succeeded", "stopped", "failed", "cancelled"]>;
|
|
252
|
+
readonly stopReason: Schema.NullOr<Schema.Literals<readonly ["completed", "noop", "steps", "tokens", "wall-time", "budget", "cancelled", "model-error", "error", "processor"]>>;
|
|
253
|
+
readonly limits: Schema.Struct<{
|
|
254
|
+
/** Model calls. */
|
|
255
|
+
readonly maxSteps: Schema.Number;
|
|
256
|
+
/** Input plus output tokens over all model calls. */
|
|
257
|
+
readonly maxTokens: Schema.Number;
|
|
258
|
+
/** From the run's start to its last model call (ms). */
|
|
259
|
+
readonly maxWallMs: Schema.Number;
|
|
260
|
+
}>;
|
|
261
|
+
/** The tools the run may call (a sub-agent's set), or null for every tool of the agent. */
|
|
262
|
+
readonly tools: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
263
|
+
readonly usage: Schema.Struct<{
|
|
264
|
+
readonly inputTokens: Schema.Number;
|
|
265
|
+
readonly outputTokens: Schema.Number;
|
|
266
|
+
}>;
|
|
267
|
+
readonly steps: Schema.Number;
|
|
268
|
+
/** The final answer, once the run has ended. */
|
|
269
|
+
readonly result: Schema.NullOr<Schema.String>;
|
|
270
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
271
|
+
/** How the run may act (absent: `act`). */
|
|
272
|
+
readonly mode: Schema.optionalKey<Schema.Literals<readonly ["act", "plan"]>>;
|
|
273
|
+
/**
|
|
274
|
+
* A run that continues an interrupted turn (`agent.continue`, or automatically after a transient model failure): the
|
|
275
|
+
* logical turn's first run (`of`), the run it continues (`previous`), which continuation of the turn it is
|
|
276
|
+
* (`attempt`, from 1) and whether the kernel started it (`automatic`).
|
|
277
|
+
*/
|
|
278
|
+
readonly continuation: Schema.optionalKey<Schema.Struct<{
|
|
279
|
+
readonly of: Schema.String;
|
|
280
|
+
readonly previous: Schema.String;
|
|
281
|
+
readonly attempt: Schema.Number;
|
|
282
|
+
readonly automatic: Schema.Boolean;
|
|
283
|
+
}>>;
|
|
284
|
+
/** What the final-answer check found, once a run that wrote something answered. */
|
|
285
|
+
readonly verification: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
286
|
+
readonly outcome: Schema.Literals<readonly ["passed", "retried", "annotated"]>;
|
|
287
|
+
readonly receipts: Schema.$Array<Schema.Struct<{
|
|
288
|
+
readonly tool: Schema.String;
|
|
289
|
+
readonly receipt: Schema.Struct<{
|
|
290
|
+
readonly changed: Schema.Boolean;
|
|
291
|
+
readonly verified: Schema.Union<readonly [Schema.Boolean, Schema.Literal<"unverified">]>;
|
|
292
|
+
readonly summary: Schema.String;
|
|
293
|
+
/** What it changed (a record reference), so a later verified write to the same subject can supersede a failed one. */
|
|
294
|
+
readonly subject: Schema.optionalKey<Schema.String>;
|
|
295
|
+
readonly checks: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
296
|
+
readonly id: Schema.String;
|
|
297
|
+
readonly ok: Schema.Boolean;
|
|
298
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
299
|
+
}>>>;
|
|
300
|
+
readonly warnings: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
301
|
+
}>;
|
|
302
|
+
}>>;
|
|
303
|
+
/** Final-answer processors that challenged the answer (by name). */
|
|
304
|
+
readonly challengedBy: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
305
|
+
}>>>;
|
|
306
|
+
/**
|
|
307
|
+
* An active run's progress: when its stream last recorded an event, and whether it is `stalled` (running, not
|
|
308
|
+
* waiting for a person or a sub-agent, with no event for longer than the deployment's `stallAfterMs`).
|
|
309
|
+
*/
|
|
310
|
+
readonly activity: Schema.optionalKey<Schema.Struct<{
|
|
311
|
+
readonly lastEventAt: Schema.NullOr<Schema.String>;
|
|
312
|
+
readonly stalled: Schema.Boolean;
|
|
313
|
+
}>>;
|
|
314
|
+
}>;
|
|
315
|
+
export type Run = typeof Run.Type;
|
|
316
|
+
/**
|
|
317
|
+
* One event of a run's stream, durably numbered: a client reconnects with the last `seq` it saw and misses
|
|
318
|
+
* nothing. Text deltas are streamed live (not stored); everything else is here.
|
|
319
|
+
*/
|
|
320
|
+
export declare const RunEvent: Schema.Struct<{
|
|
321
|
+
readonly runId: Schema.String;
|
|
322
|
+
readonly seq: Schema.Number;
|
|
323
|
+
readonly type: Schema.Literals<readonly ["run-started", "model-step", "tool-call", "tool-result", "consent-required", "consent-decided", "compacted", "delegated", "seat-spawned", "team-message", "reply-discarded", "answer-checked", "reconciled", "processor-tripped", "run-finished", "text-delta"]>;
|
|
324
|
+
readonly data: Schema.Unknown;
|
|
325
|
+
readonly at: Schema.String;
|
|
326
|
+
}>;
|
|
327
|
+
export type RunEvent = typeof RunEvent.Type;
|
|
328
|
+
/** A reference to a file the person attached (the Files contract will resolve it; until then it is carried as given). */
|
|
329
|
+
export declare const Attachment: Schema.Struct<{
|
|
330
|
+
readonly kind: Schema.Literal<"file">;
|
|
331
|
+
/** The Files contract's id for the file. */
|
|
332
|
+
readonly fileId: Schema.String;
|
|
333
|
+
readonly name: Schema.String;
|
|
334
|
+
readonly mediaType: Schema.String;
|
|
335
|
+
}>;
|
|
336
|
+
export type Attachment = typeof Attachment.Type;
|
|
337
|
+
/**
|
|
338
|
+
* Where a run executes when not on the deployment's model: one of the person's paired devices (the Daemon
|
|
339
|
+
* contract), whose local harness (Claude Code or Codex) runs the turn on the person's own subscription. The run
|
|
340
|
+
* asks the device with `devices.sendTurn` (as the person's agent, so their consent applies), waits for the turn,
|
|
341
|
+
* and takes its answer, events and usage as its own.
|
|
342
|
+
*/
|
|
343
|
+
export declare const RunDevice: Schema.Struct<{
|
|
344
|
+
readonly deviceId: Schema.String;
|
|
345
|
+
readonly harness: Schema.optionalKey<Schema.Literals<readonly ["claude-code", "codex", "opencode", "acp"]>>;
|
|
346
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
347
|
+
readonly cwd: Schema.optionalKey<Schema.String>;
|
|
348
|
+
readonly timeoutMs: Schema.optionalKey<Schema.Number>;
|
|
349
|
+
readonly workspaceTools: Schema.optionalKey<Schema.Boolean>;
|
|
350
|
+
/** Keep the harness session so a later run can follow it up (`SendTurn.resumable`). */
|
|
351
|
+
readonly resumable: Schema.optionalKey<Schema.Boolean>;
|
|
352
|
+
/** Follow up an earlier resumable turn on the device, resuming its harness session (`SendTurn.followUp`). */
|
|
353
|
+
readonly followUp: Schema.optionalKey<Schema.String>;
|
|
354
|
+
}>;
|
|
355
|
+
export type RunDevice = typeof RunDevice.Type;
|
|
356
|
+
/**
|
|
357
|
+
* The record a conversation is about (a thread on that record): its module, entity and id. A reference only, never
|
|
358
|
+
* trusted for authorisation.
|
|
359
|
+
*/
|
|
360
|
+
export declare const ConversationResource: Schema.Struct<{
|
|
361
|
+
readonly module: Schema.String;
|
|
362
|
+
readonly entity: Schema.String;
|
|
363
|
+
readonly id: Schema.String;
|
|
364
|
+
}>;
|
|
365
|
+
export type ConversationResource = typeof ConversationResource.Type;
|
|
366
|
+
/** One of a person's conversations with their agent, as their lists show it. */
|
|
367
|
+
export declare const Conversation: Schema.Struct<{
|
|
368
|
+
readonly id: Schema.String;
|
|
369
|
+
readonly title: Schema.String;
|
|
370
|
+
readonly pinned: Schema.Boolean;
|
|
371
|
+
readonly archived: Schema.Boolean;
|
|
372
|
+
readonly hidden: Schema.Boolean;
|
|
373
|
+
readonly createdAt: Schema.String;
|
|
374
|
+
readonly updatedAt: Schema.String;
|
|
375
|
+
/** The record it is about, for a thread on a record. */
|
|
376
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
377
|
+
readonly module: Schema.String;
|
|
378
|
+
readonly entity: Schema.String;
|
|
379
|
+
readonly id: Schema.String;
|
|
380
|
+
}>>>;
|
|
381
|
+
}>;
|
|
382
|
+
export type Conversation = typeof Conversation.Type;
|
|
383
|
+
/**
|
|
384
|
+
* Which of a person's conversations to list (`GET /agent/conversations`), newest first. `q` matches the title or
|
|
385
|
+
* any message's text; `archived` and `hidden` (default false) select those; `pinned: true` only pinned ones;
|
|
386
|
+
* `before` is the `next` cursor of the previous page. Checked before anything is read.
|
|
387
|
+
*/
|
|
388
|
+
export declare const ConversationQuery: Schema.Struct<{
|
|
389
|
+
readonly q: Schema.optionalKey<Schema.String>;
|
|
390
|
+
readonly limit: Schema.optionalKey<Schema.Number>;
|
|
391
|
+
readonly before: Schema.optionalKey<Schema.String>;
|
|
392
|
+
readonly archived: Schema.optionalKey<Schema.Boolean>;
|
|
393
|
+
readonly hidden: Schema.optionalKey<Schema.Boolean>;
|
|
394
|
+
readonly pinned: Schema.optionalKey<Schema.Boolean>;
|
|
395
|
+
/** Only the threads on one record: `<module>.<entity>:<id>`. */
|
|
396
|
+
readonly about: Schema.optionalKey<Schema.String>;
|
|
397
|
+
}>;
|
|
398
|
+
export type ConversationQuery = typeof ConversationQuery.Type;
|
|
399
|
+
export declare const ConversationPage: Schema.Struct<{
|
|
400
|
+
readonly conversations: Schema.$Array<Schema.Struct<{
|
|
401
|
+
readonly id: Schema.String;
|
|
402
|
+
readonly title: Schema.String;
|
|
403
|
+
readonly pinned: Schema.Boolean;
|
|
404
|
+
readonly archived: Schema.Boolean;
|
|
405
|
+
readonly hidden: Schema.Boolean;
|
|
406
|
+
readonly createdAt: Schema.String;
|
|
407
|
+
readonly updatedAt: Schema.String;
|
|
408
|
+
/** The record it is about, for a thread on a record. */
|
|
409
|
+
readonly resource: Schema.optionalKey<Schema.NullOr<Schema.Struct<{
|
|
410
|
+
readonly module: Schema.String;
|
|
411
|
+
readonly entity: Schema.String;
|
|
412
|
+
readonly id: Schema.String;
|
|
413
|
+
}>>>;
|
|
414
|
+
}>>;
|
|
415
|
+
/** The cursor for the next page (`before`), or null when this is the last. */
|
|
416
|
+
readonly next: Schema.NullOr<Schema.String>;
|
|
417
|
+
}>;
|
|
418
|
+
export type ConversationPage = typeof ConversationPage.Type;
|
|
419
|
+
/** What `send` returns: the conversation (new or existing), the stored message and the run started for it. */
|
|
420
|
+
export declare const SentMessage: Schema.Struct<{
|
|
421
|
+
readonly conversationId: Schema.String;
|
|
422
|
+
readonly messageId: Schema.String;
|
|
423
|
+
readonly runId: Schema.String;
|
|
424
|
+
/**
|
|
425
|
+
* The message was queued behind the conversation's active run (`queue: true`): the queued message's id. Its message
|
|
426
|
+
* and run take `messageId` and `runId` when it starts.
|
|
427
|
+
*/
|
|
428
|
+
readonly queued: Schema.optionalKey<Schema.Struct<{
|
|
429
|
+
readonly submissionId: Schema.String;
|
|
430
|
+
}>>;
|
|
431
|
+
}>;
|
|
432
|
+
export type SentMessage = typeof SentMessage.Type;
|
|
433
|
+
export declare const ContextCategory: Schema.Literals<readonly ["instructions", "skills", "memory", "messages", "tool-results", "tools"]>;
|
|
434
|
+
export type ContextCategory = typeof ContextCategory.Type;
|
|
435
|
+
/** One item of what a model call was sent, with its token count and where it came from. */
|
|
436
|
+
export declare const ContextItem: Schema.Struct<{
|
|
437
|
+
/** Stable within a conversation: `instructions:<path>`, `skill:<id>`, `memory:<id>`, `message:<id>`, `tool:<name>`. */
|
|
438
|
+
readonly ref: Schema.String;
|
|
439
|
+
readonly category: Schema.Literals<readonly ["instructions", "skills", "memory", "messages", "tool-results", "tools"]>;
|
|
440
|
+
readonly tokens: Schema.Number;
|
|
441
|
+
readonly pinned: Schema.Boolean;
|
|
442
|
+
/** Where the item comes from: a resource scope, a memory entry, a message (or the summary that replaced messages). */
|
|
443
|
+
readonly source: Schema.Unknown;
|
|
444
|
+
}>;
|
|
445
|
+
export type ContextItem = typeof ContextItem.Type;
|
|
446
|
+
/** An item left out of a model call, and why: over its category's budget, or evicted by a directive. */
|
|
447
|
+
export declare const EvictedItem: Schema.Struct<{
|
|
448
|
+
readonly ref: Schema.String;
|
|
449
|
+
readonly category: Schema.Literals<readonly ["instructions", "skills", "memory", "messages", "tool-results", "tools"]>;
|
|
450
|
+
readonly tokens: Schema.Number;
|
|
451
|
+
readonly reason: Schema.Literals<readonly ["budget", "directive"]>;
|
|
452
|
+
}>;
|
|
453
|
+
export type EvictedItem = typeof EvictedItem.Type;
|
|
454
|
+
/** The context x-ray of one model call: every item sent, per-category totals against budgets, and what was left out. */
|
|
455
|
+
export declare const ContextInventory: Schema.Struct<{
|
|
456
|
+
readonly runId: Schema.String;
|
|
457
|
+
readonly step: Schema.Number;
|
|
458
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
459
|
+
/** Stable within a conversation: `instructions:<path>`, `skill:<id>`, `memory:<id>`, `message:<id>`, `tool:<name>`. */
|
|
460
|
+
readonly ref: Schema.String;
|
|
461
|
+
readonly category: Schema.Literals<readonly ["instructions", "skills", "memory", "messages", "tool-results", "tools"]>;
|
|
462
|
+
readonly tokens: Schema.Number;
|
|
463
|
+
readonly pinned: Schema.Boolean;
|
|
464
|
+
/** Where the item comes from: a resource scope, a memory entry, a message (or the summary that replaced messages). */
|
|
465
|
+
readonly source: Schema.Unknown;
|
|
466
|
+
}>>;
|
|
467
|
+
readonly totals: Schema.$Record<Schema.String, Schema.Number>;
|
|
468
|
+
readonly budgets: Schema.$Record<Schema.String, Schema.Number>;
|
|
469
|
+
readonly total: Schema.Number;
|
|
470
|
+
readonly evicted: Schema.$Array<Schema.Struct<{
|
|
471
|
+
readonly ref: Schema.String;
|
|
472
|
+
readonly category: Schema.Literals<readonly ["instructions", "skills", "memory", "messages", "tool-results", "tools"]>;
|
|
473
|
+
readonly tokens: Schema.Number;
|
|
474
|
+
readonly reason: Schema.Literals<readonly ["budget", "directive"]>;
|
|
475
|
+
}>>;
|
|
476
|
+
}>;
|
|
477
|
+
export type ContextInventory = typeof ContextInventory.Type;
|
|
478
|
+
/** A person's directive about one context item of a conversation. */
|
|
479
|
+
export declare const ContextDirective: Schema.Literals<readonly ["pin", "evict", "restore"]>;
|
|
480
|
+
export type ContextDirective = typeof ContextDirective.Type;
|
|
481
|
+
export declare const MemoryScope: Schema.Literals<readonly ["user", "team", "org"]>;
|
|
482
|
+
export type MemoryScope = typeof MemoryScope.Type;
|
|
483
|
+
export declare const MemoryEntry: Schema.Struct<{
|
|
484
|
+
readonly id: Schema.String;
|
|
485
|
+
readonly orgId: Schema.String;
|
|
486
|
+
readonly scope: Schema.Literals<readonly ["user", "team", "org"]>;
|
|
487
|
+
/** The person whose memory it is (`user` scope), or null for the organisation's and a team's. */
|
|
488
|
+
readonly userId: Schema.NullOr<Schema.String>;
|
|
489
|
+
/** The team whose memory it is (`team` scope: a Directory team, read by its members, written by its leads). */
|
|
490
|
+
readonly team: Schema.optionalKey<Schema.String>;
|
|
491
|
+
readonly key: Schema.String;
|
|
492
|
+
readonly content: Schema.String;
|
|
493
|
+
/** Where it came from: the run that wrote it, or the person. */
|
|
494
|
+
readonly source: Schema.Unknown;
|
|
495
|
+
}>;
|
|
496
|
+
export type MemoryEntry = typeof MemoryEntry.Type;
|
|
497
|
+
/** A compaction summary: it replaced `covers` (message ids, kept for provenance) in what later calls are sent. */
|
|
498
|
+
export declare const CompactionSummary: Schema.Struct<{
|
|
499
|
+
readonly id: Schema.String;
|
|
500
|
+
readonly conversationId: Schema.String;
|
|
501
|
+
readonly covers: Schema.$Array<Schema.String>;
|
|
502
|
+
readonly content: Schema.String;
|
|
503
|
+
readonly tokensBefore: Schema.Number;
|
|
504
|
+
readonly tokensAfter: Schema.Number;
|
|
505
|
+
}>;
|
|
506
|
+
export type CompactionSummary = typeof CompactionSummary.Type;
|
|
507
|
+
export declare const ResourceScope: Schema.Literals<readonly ["personal", "team", "org", "app"]>;
|
|
508
|
+
export type ResourceScope = typeof ResourceScope.Type;
|
|
509
|
+
export declare const ResourceKind: Schema.Literals<readonly ["instructions", "skill", "file"]>;
|
|
510
|
+
export type ResourceKind = typeof ResourceKind.Type;
|
|
511
|
+
export declare const AgentResource: Schema.Struct<{
|
|
512
|
+
readonly scope: Schema.Literals<readonly ["personal", "team", "org", "app"]>;
|
|
513
|
+
readonly kind: Schema.Literals<readonly ["instructions", "skill", "file"]>;
|
|
514
|
+
/** Unique within (scope, kind): a skill's id, an instruction or file path. The same path in a nearer scope overrides it. */
|
|
515
|
+
readonly path: Schema.String;
|
|
516
|
+
readonly description: Schema.String;
|
|
517
|
+
readonly content: Schema.String;
|
|
518
|
+
/** The stored record's id (null for app resources, which come from the registry). */
|
|
519
|
+
readonly id: Schema.NullOr<Schema.String>;
|
|
520
|
+
/** The team whose resource it is (`team` scope: read by its members, written by its leads). */
|
|
521
|
+
readonly team: Schema.optionalKey<Schema.String>;
|
|
522
|
+
}>;
|
|
523
|
+
export type AgentResource = typeof AgentResource.Type;
|
|
524
|
+
export declare const Meter: Schema.Literals<readonly ["agent.tokens", "agent.cost"]>;
|
|
525
|
+
export type Meter = typeof Meter.Type;
|
|
526
|
+
export declare const BudgetPeriod: Schema.Literals<readonly ["day", "month", "total"]>;
|
|
527
|
+
export type BudgetPeriod = typeof BudgetPeriod.Type;
|
|
528
|
+
export declare const Budget: Schema.Struct<{
|
|
529
|
+
readonly id: Schema.String;
|
|
530
|
+
readonly orgId: Schema.String;
|
|
531
|
+
readonly scope: Schema.Literals<readonly ["user", "org"]>;
|
|
532
|
+
/** The person a `user` budget limits; null for an organisation budget (or a default for every member). */
|
|
533
|
+
readonly userId: Schema.NullOr<Schema.String>;
|
|
534
|
+
readonly meter: Schema.Literals<readonly ["agent.tokens", "agent.cost"]>;
|
|
535
|
+
readonly period: Schema.Literals<readonly ["day", "month", "total"]>;
|
|
536
|
+
readonly limit: Schema.Number;
|
|
537
|
+
/**
|
|
538
|
+
* A soft threshold, in percent of `limit`: once usage in the period reaches it, the budget's people are notified
|
|
539
|
+
* (category `agent.budget`), once per period; null or absent: no alert.
|
|
540
|
+
*/
|
|
541
|
+
readonly alertAt: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
|
|
542
|
+
}>;
|
|
543
|
+
export type Budget = typeof Budget.Type;
|
|
544
|
+
/** What usage insights group by: model (`provider:model`), UTC day, run, or member (organisation scope only). */
|
|
545
|
+
export declare const UsageGrouping: Schema.Literals<readonly ["model", "day", "run", "member"]>;
|
|
546
|
+
export type UsageGrouping = typeof UsageGrouping.Type;
|
|
547
|
+
/** One group of usage in a period: its key, how many metered calls, their tokens and cost. */
|
|
548
|
+
export declare const UsageInsight: Schema.Struct<{
|
|
549
|
+
readonly key: Schema.String;
|
|
550
|
+
readonly calls: Schema.Number;
|
|
551
|
+
readonly inputTokens: Schema.Number;
|
|
552
|
+
readonly outputTokens: Schema.Number;
|
|
553
|
+
readonly costMicros: Schema.Number;
|
|
554
|
+
}>;
|
|
555
|
+
export type UsageInsight = typeof UsageInsight.Type;
|
|
556
|
+
/** Usage in a period grouped by `by`, largest cost first (then tokens), at most `USAGE_INSIGHT_ROWS` groups. */
|
|
557
|
+
export declare const UsageInsights: Schema.Struct<{
|
|
558
|
+
readonly scope: Schema.Literals<readonly ["user", "org"]>;
|
|
559
|
+
readonly period: Schema.Literals<readonly ["day", "month", "total"]>;
|
|
560
|
+
readonly by: Schema.Literals<readonly ["model", "day", "run", "member"]>;
|
|
561
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
562
|
+
readonly key: Schema.String;
|
|
563
|
+
readonly calls: Schema.Number;
|
|
564
|
+
readonly inputTokens: Schema.Number;
|
|
565
|
+
readonly outputTokens: Schema.Number;
|
|
566
|
+
readonly costMicros: Schema.Number;
|
|
567
|
+
}>>;
|
|
568
|
+
}>;
|
|
569
|
+
export type UsageInsights = typeof UsageInsights.Type;
|
|
570
|
+
export declare const USAGE_INSIGHT_ROWS = 100;
|
|
571
|
+
/** One metered call of a run, in order: its step and kind (null for usage recorded outside a model call). */
|
|
572
|
+
export declare const RunUsageCall: Schema.Struct<{
|
|
573
|
+
readonly step: Schema.NullOr<Schema.Number>;
|
|
574
|
+
readonly kind: Schema.NullOr<Schema.String>;
|
|
575
|
+
readonly provider: Schema.String;
|
|
576
|
+
readonly model: Schema.String;
|
|
577
|
+
readonly inputTokens: Schema.Number;
|
|
578
|
+
readonly outputTokens: Schema.Number;
|
|
579
|
+
readonly costMicros: Schema.Number;
|
|
580
|
+
/** Recorded at what the call reserved (its answer was lost). */
|
|
581
|
+
readonly estimated: Schema.Boolean;
|
|
582
|
+
readonly at: Schema.String;
|
|
583
|
+
}>;
|
|
584
|
+
export type RunUsageCall = typeof RunUsageCall.Type;
|
|
585
|
+
/** A run's usage drilled down to its calls, with their totals. */
|
|
586
|
+
export declare const RunUsage: Schema.Struct<{
|
|
587
|
+
readonly runId: Schema.String;
|
|
588
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
589
|
+
readonly step: Schema.NullOr<Schema.Number>;
|
|
590
|
+
readonly kind: Schema.NullOr<Schema.String>;
|
|
591
|
+
readonly provider: Schema.String;
|
|
592
|
+
readonly model: Schema.String;
|
|
593
|
+
readonly inputTokens: Schema.Number;
|
|
594
|
+
readonly outputTokens: Schema.Number;
|
|
595
|
+
readonly costMicros: Schema.Number;
|
|
596
|
+
/** Recorded at what the call reserved (its answer was lost). */
|
|
597
|
+
readonly estimated: Schema.Boolean;
|
|
598
|
+
readonly at: Schema.String;
|
|
599
|
+
}>>;
|
|
600
|
+
readonly inputTokens: Schema.Number;
|
|
601
|
+
readonly outputTokens: Schema.Number;
|
|
602
|
+
readonly costMicros: Schema.Number;
|
|
603
|
+
}>;
|
|
604
|
+
export type RunUsage = typeof RunUsage.Type;
|
|
605
|
+
/**
|
|
606
|
+
* One span of a run's trace: a model call (`model`, named `provider:model`, with its tokens) or a tool call (`tool`,
|
|
607
|
+
* named by its tool), in step order, with when it started and finished and whether it succeeded (a tool's error tag
|
|
608
|
+
* when it did not). Never a prompt, a reply or a tool's input or output: those are the transcript's.
|
|
609
|
+
*/
|
|
610
|
+
export declare const TraceSpan: Schema.Struct<{
|
|
611
|
+
readonly kind: Schema.Literals<readonly ["model", "tool"]>;
|
|
612
|
+
readonly step: Schema.Number;
|
|
613
|
+
readonly name: Schema.String;
|
|
614
|
+
readonly startedAt: Schema.String;
|
|
615
|
+
readonly finishedAt: Schema.NullOr<Schema.String>;
|
|
616
|
+
readonly durationMs: Schema.NullOr<Schema.Number>;
|
|
617
|
+
readonly ok: Schema.Boolean;
|
|
618
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
619
|
+
readonly inputTokens: Schema.NullOr<Schema.Number>;
|
|
620
|
+
readonly outputTokens: Schema.NullOr<Schema.Number>;
|
|
621
|
+
}>;
|
|
622
|
+
export type TraceSpan = typeof TraceSpan.Type;
|
|
623
|
+
/** A run's stored trace: its spans in order, its status, and the feedback its owner gave it (if any). */
|
|
624
|
+
export declare const RunTrace: Schema.Struct<{
|
|
625
|
+
readonly runId: Schema.String;
|
|
626
|
+
readonly status: Schema.String;
|
|
627
|
+
readonly spans: Schema.$Array<Schema.Struct<{
|
|
628
|
+
readonly kind: Schema.Literals<readonly ["model", "tool"]>;
|
|
629
|
+
readonly step: Schema.Number;
|
|
630
|
+
readonly name: Schema.String;
|
|
631
|
+
readonly startedAt: Schema.String;
|
|
632
|
+
readonly finishedAt: Schema.NullOr<Schema.String>;
|
|
633
|
+
readonly durationMs: Schema.NullOr<Schema.Number>;
|
|
634
|
+
readonly ok: Schema.Boolean;
|
|
635
|
+
readonly errorTag: Schema.NullOr<Schema.String>;
|
|
636
|
+
readonly inputTokens: Schema.NullOr<Schema.Number>;
|
|
637
|
+
readonly outputTokens: Schema.NullOr<Schema.Number>;
|
|
638
|
+
}>>;
|
|
639
|
+
readonly feedback: Schema.NullOr<Schema.Struct<{
|
|
640
|
+
readonly rating: Schema.Literals<readonly ["up", "down"]>;
|
|
641
|
+
readonly comment: Schema.NullOr<Schema.String>;
|
|
642
|
+
}>>;
|
|
643
|
+
}>;
|
|
644
|
+
export type RunTrace = typeof RunTrace.Type;
|
|
645
|
+
/** A short label a person may put on their feedback (`wrong-tool`, `too-slow`): lower case, digits and hyphens. */
|
|
646
|
+
export declare const FeedbackTag: Schema.String;
|
|
647
|
+
/** A person's feedback on one of their agent's runs (action `agent.feedback`): one per person and run. */
|
|
648
|
+
export declare const GiveFeedback: Schema.Struct<{
|
|
649
|
+
readonly runId: Schema.String;
|
|
650
|
+
readonly rating: Schema.Literals<readonly ["up", "down"]>;
|
|
651
|
+
readonly comment: Schema.optionalKey<Schema.NullOr<Schema.String>>;
|
|
652
|
+
readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
653
|
+
}>;
|
|
654
|
+
export type GiveFeedback = typeof GiveFeedback.Type;
|
|
655
|
+
export declare const FeedbackEntry: Schema.Struct<{
|
|
656
|
+
readonly runId: Schema.String;
|
|
657
|
+
readonly userId: Schema.String;
|
|
658
|
+
readonly rating: Schema.Literals<readonly ["up", "down"]>;
|
|
659
|
+
readonly comment: Schema.NullOr<Schema.String>;
|
|
660
|
+
readonly tags: Schema.$Array<Schema.String>;
|
|
661
|
+
readonly at: Schema.String;
|
|
662
|
+
}>;
|
|
663
|
+
export type FeedbackEntry = typeof FeedbackEntry.Type;
|
|
664
|
+
/** Feedback in a period, newest first (at most `FEEDBACK_PAGE`), with how many runs were rated up and down. */
|
|
665
|
+
export declare const FeedbackList: Schema.Struct<{
|
|
666
|
+
readonly scope: Schema.Literals<readonly ["user", "org"]>;
|
|
667
|
+
readonly period: Schema.Literals<readonly ["day", "month", "total"]>;
|
|
668
|
+
readonly up: Schema.Number;
|
|
669
|
+
readonly down: Schema.Number;
|
|
670
|
+
readonly entries: Schema.$Array<Schema.Struct<{
|
|
671
|
+
readonly runId: Schema.String;
|
|
672
|
+
readonly userId: Schema.String;
|
|
673
|
+
readonly rating: Schema.Literals<readonly ["up", "down"]>;
|
|
674
|
+
readonly comment: Schema.NullOr<Schema.String>;
|
|
675
|
+
readonly tags: Schema.$Array<Schema.String>;
|
|
676
|
+
readonly at: Schema.String;
|
|
677
|
+
}>>;
|
|
678
|
+
}>;
|
|
679
|
+
export type FeedbackList = typeof FeedbackList.Type;
|
|
680
|
+
export declare const FEEDBACK_PAGE = 200;
|
|
681
|
+
export declare const UsageRecord: Schema.Struct<{
|
|
682
|
+
readonly orgId: Schema.String;
|
|
683
|
+
readonly userId: Schema.String;
|
|
684
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
685
|
+
readonly provider: Schema.String;
|
|
686
|
+
readonly model: Schema.String;
|
|
687
|
+
readonly inputTokens: Schema.Number;
|
|
688
|
+
readonly outputTokens: Schema.Number;
|
|
689
|
+
readonly costMicros: Schema.Number;
|
|
690
|
+
}>;
|
|
691
|
+
export type UsageRecord = typeof UsageRecord.Type;
|
|
692
|
+
/**
|
|
693
|
+
* An eval case a module's skill declares (`skills.<id>.evals`, a JSON file of these): a prompt, the tool calls a
|
|
694
|
+
* good run makes, and assertions on the state it leaves.
|
|
695
|
+
*/
|
|
696
|
+
export declare const EvalCase: Schema.Struct<{
|
|
697
|
+
readonly name: Schema.String;
|
|
698
|
+
readonly prompt: Schema.String;
|
|
699
|
+
/** Tool calls the run must make, in order (other calls may come between): the tool, and a subset of its input. */
|
|
700
|
+
readonly expect: Schema.Struct<{
|
|
701
|
+
readonly toolCalls: Schema.$Array<Schema.Struct<{
|
|
702
|
+
readonly tool: Schema.String;
|
|
703
|
+
readonly input: Schema.optionalKey<Schema.Unknown>;
|
|
704
|
+
}>>;
|
|
705
|
+
/** Tools the run must not call. */
|
|
706
|
+
readonly forbiddenTools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
707
|
+
/**
|
|
708
|
+
* Words or phrases the final answer must contain, case-insensitive and whole: not inside a longer word ("not"
|
|
709
|
+
* is not found in "noted").
|
|
710
|
+
*/
|
|
711
|
+
readonly answerIncludes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
712
|
+
/** Patterns (JavaScript regular expressions, case-insensitive, Unicode) the final answer must match. */
|
|
713
|
+
readonly answerMatches: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
714
|
+
/** Patterns (as `answerMatches`) the final answer must not match. */
|
|
715
|
+
readonly answerExcludes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
716
|
+
}>;
|
|
717
|
+
/**
|
|
718
|
+
* Assertions on state afterwards: a published query view read as the person, and a row it must (`contains`)
|
|
719
|
+
* or must not (`absent`) hold, matching every field given. A value `"$result:<tool>:<path>"` stands for a
|
|
720
|
+
* field of the run's first result of that tool (`output.output.id` is the id an action returned).
|
|
721
|
+
*/
|
|
722
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
723
|
+
readonly view: Schema.String;
|
|
724
|
+
readonly contains: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
725
|
+
readonly absent: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
726
|
+
}>>>;
|
|
727
|
+
/**
|
|
728
|
+
* The model turns the scripted provider plays for this case (CI): each turn is text, or tool calls. A real model
|
|
729
|
+
* ignores them.
|
|
730
|
+
*/
|
|
731
|
+
readonly script: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
732
|
+
readonly text: Schema.String;
|
|
733
|
+
}>, Schema.Struct<{
|
|
734
|
+
readonly toolCalls: Schema.$Array<Schema.Struct<{
|
|
735
|
+
readonly tool: Schema.String;
|
|
736
|
+
readonly input: Schema.Unknown;
|
|
737
|
+
}>>;
|
|
738
|
+
}>]>>;
|
|
739
|
+
}>;
|
|
740
|
+
export type EvalCase = typeof EvalCase.Type;
|
|
741
|
+
/** A skill's eval file: its cases and the score it must reach (0 to 1, the share of cases that pass). */
|
|
742
|
+
export declare const SkillEvals: Schema.Struct<{
|
|
743
|
+
readonly skill: Schema.String;
|
|
744
|
+
readonly threshold: Schema.Number;
|
|
745
|
+
readonly cases: Schema.$Array<Schema.Struct<{
|
|
746
|
+
readonly name: Schema.String;
|
|
747
|
+
readonly prompt: Schema.String;
|
|
748
|
+
/** Tool calls the run must make, in order (other calls may come between): the tool, and a subset of its input. */
|
|
749
|
+
readonly expect: Schema.Struct<{
|
|
750
|
+
readonly toolCalls: Schema.$Array<Schema.Struct<{
|
|
751
|
+
readonly tool: Schema.String;
|
|
752
|
+
readonly input: Schema.optionalKey<Schema.Unknown>;
|
|
753
|
+
}>>;
|
|
754
|
+
/** Tools the run must not call. */
|
|
755
|
+
readonly forbiddenTools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
756
|
+
/**
|
|
757
|
+
* Words or phrases the final answer must contain, case-insensitive and whole: not inside a longer word ("not"
|
|
758
|
+
* is not found in "noted").
|
|
759
|
+
*/
|
|
760
|
+
readonly answerIncludes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
761
|
+
/** Patterns (JavaScript regular expressions, case-insensitive, Unicode) the final answer must match. */
|
|
762
|
+
readonly answerMatches: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
763
|
+
/** Patterns (as `answerMatches`) the final answer must not match. */
|
|
764
|
+
readonly answerExcludes: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
765
|
+
}>;
|
|
766
|
+
/**
|
|
767
|
+
* Assertions on state afterwards: a published query view read as the person, and a row it must (`contains`)
|
|
768
|
+
* or must not (`absent`) hold, matching every field given. A value `"$result:<tool>:<path>"` stands for a
|
|
769
|
+
* field of the run's first result of that tool (`output.output.id` is the id an action returned).
|
|
770
|
+
*/
|
|
771
|
+
readonly state: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
772
|
+
readonly view: Schema.String;
|
|
773
|
+
readonly contains: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
774
|
+
readonly absent: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
775
|
+
}>>>;
|
|
776
|
+
/**
|
|
777
|
+
* The model turns the scripted provider plays for this case (CI): each turn is text, or tool calls. A real model
|
|
778
|
+
* ignores them.
|
|
779
|
+
*/
|
|
780
|
+
readonly script: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
781
|
+
readonly text: Schema.String;
|
|
782
|
+
}>, Schema.Struct<{
|
|
783
|
+
readonly toolCalls: Schema.$Array<Schema.Struct<{
|
|
784
|
+
readonly tool: Schema.String;
|
|
785
|
+
readonly input: Schema.Unknown;
|
|
786
|
+
}>>;
|
|
787
|
+
}>]>>;
|
|
788
|
+
}>>;
|
|
789
|
+
}>;
|
|
790
|
+
export type SkillEvals = typeof SkillEvals.Type;
|
|
791
|
+
export {};
|
|
792
|
+
//# sourceMappingURL=Agent.d.ts.map
|