@autopilot-agent/core 0.3.0 → 0.4.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/README.md +6 -2
- package/dist/experimental/index.js +147 -52
- package/dist/experimental/index.mjs +147 -52
- package/dist/index.d.ts +7 -2
- package/dist/index.js +278 -173
- package/dist/index.mjs +279 -174
- package/dist/internal/agent-runtime.d.ts +8 -0
- package/dist/internal/kernel/run-context.d.ts +2 -0
- package/dist/internal/kernel/turn-usage.d.ts +1 -0
- package/dist/internal/lib/llm.d.ts +1 -0
- package/dist/internal/lib/llm.js +1 -1
- package/dist/internal/tools/builtins/browser-tool.d.ts +13 -0
- package/dist/internal/tools/builtins/static-preview.d.ts +1 -1
- package/dist/internal/tools/builtins/thread-tools.d.ts +1 -1
- package/dist/internal/tools/permissions/command-policy.d.ts +2 -0
- package/dist/internal/tools/policy-engine.d.ts +1 -0
- package/dist/internal/tools/types.d.ts +3 -0
- package/dist/internal/types/agent-message.d.ts +1 -1
- package/dist/internal/types/index.d.ts +1 -1
- package/dist/runtime/application/runtime-facts.d.ts +54 -0
- package/dist/runtime/application/session-service.d.ts +1 -0
- package/dist/runtime/application/turn/turn-capability-ceiling.d.ts +2 -0
- package/dist/runtime/application/turn/turn-recovery-service.d.ts +2 -0
- package/dist/runtime/bootstrap/runtime-bootstrap-service.d.ts +2 -0
- package/dist/runtime/domain/frozen-run-config.d.ts +1 -0
- package/dist/runtime/domain/index.d.ts +9 -0
- package/dist/runtime/domain/model-ref.d.ts +1 -1
- package/dist/runtime/domain/turn.d.ts +8 -0
- package/dist/runtime/protocol/browser-capability.d.ts +81 -0
- package/dist/runtime/protocol/browser-operation.d.ts +89 -0
- package/dist/runtime/protocol/frozen-run-config-view.d.ts +2 -1
- package/dist/runtime/protocol/index.d.ts +2 -1
- package/dist/runtime/protocol/run-config.d.ts +12 -0
- package/dist/runtime/protocol/web-capability.d.ts +5 -1
- package/dist/runtime/provider/api-protocol.d.ts +16 -2
- package/dist/runtime/provider/compatibility-presets.d.ts +19 -0
- package/dist/runtime/provider/frozen-provider-config.d.ts +3 -1
- package/dist/runtime/provider/index.d.ts +3 -1
- package/dist/runtime/provider/model-capability-catalog.d.ts +5 -0
- package/dist/runtime/provider/model-sample-resolver.d.ts +3 -2
- package/dist/runtime/provider/openai-chat-completions-adapter.d.ts +3 -0
- package/dist/runtime/provider/openai-responses-adapter.d.ts +22 -0
- package/dist/runtime/public/agent-runtime.d.ts +1 -0
- package/package.json +1 -3
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type { AgentCompactionResult, AgentInjectedInput, AgentInputInboxCapabili
|
|
|
6
6
|
export type { UiDocument } from "./ui/document";
|
|
7
7
|
export type { CreateDatabaseSearchCapabilityOptions, DatabaseAggregationKeyword, DatabaseFilterOperatorKeyword, DatabaseQueryPlan, DatabaseQueryPlannerInput, DatabaseQueryProfile, DatabaseSearchCapability, DatabaseSearchPolicy, DatabaseSearchRequest, DatabaseSearchResult, RagSourcePolicy } from "./internal/database-search";
|
|
8
8
|
export { createAgentRuntime } from "./runtime/public";
|
|
9
|
+
export { projectRuntimeFact } from "./runtime/application/runtime-facts";
|
|
10
|
+
export type { RuntimeFact, RuntimeFactSnapshot, RuntimeFacts } from "./runtime/application/runtime-facts";
|
|
9
11
|
export { normalizeWorkImage } from "./internal/lib/image-normalization";
|
|
10
12
|
export { getAgentProviderFailureMessage, sanitizeAgentProviderFailureReason, sanitizeAgentProviderFailureDetail } from "./runtime/provider/provider-failure-guidance";
|
|
11
13
|
export { normalizeLegacyProviderFailureReason } from "./runtime/provider/provider-failure-normalization";
|
|
@@ -14,7 +16,7 @@ export { JOB_RECORD_VERSION, normalizeJobServiceUrl, jobServicePort, sameService
|
|
|
14
16
|
export type { AgentRuntime, AgentRuntimeFacade, CreateAgentRuntimeOptions } from "./runtime/public";
|
|
15
17
|
export type { Session, SessionPersistenceMode, SessionStatus, Project, CreateProjectInput, CredentialRef, ResolvedCredential, ModelRef, ReasoningEffort, ReasoningProfile, SessionRunConfig, FrozenRunConfig, Turn, TurnStatus, Job, JobStatus, JobOwner, JobOwnerLiveness, JobControlState, JobExecutionFacts, JobLastControl, JobView, JobListView, JobReadView, JobOutputSnapshot, JobSafeOutputSnapshot, JobSafeOutputStreamSnapshot, JobSafeOutputStreamView, JobOutputView, StartJobInput, PollJobInput, JobPollResult, FileMutation, FileMutationOperation, FileMutationStatus, PrepareFileMutationInput, UndoTransaction, ApprovalDecision, PersistentGrant, SubmitApprovalInput, FindPersistentGrantInput, UserQuestionOption, UserQuestionItem, UserQuestionAnswerItem, UserQuestionRequest, UserQuestionAnswer, StoredUserQuestion, TodoStatus, TodoItem, TodoCounts, TodoSnapshot, TodoWriteResult, InboxInput, InboxDelivery, InboxStatus, InboxBoundary, InboxOrigin, InboxAttachmentRef, InboxSkillRef, PostInboxInput, DrainInboxInput, ClaimNextInboxInput, ConsumeInboxInput, ListInboxInput, } from "./runtime/domain";
|
|
16
18
|
export { inboxOriginKey } from "./runtime/domain/input-inbox";
|
|
17
|
-
export type { AgentEvent, AgentEventEnvelope, CreateEventEnvelopeInput, AgentContentBlock, AgentJsonObject, AgentMessage, AgentMessageRole, AgentToolPairingScan, AgentCheckpoint, PublicCheckpointView, RunConfig, ProviderRuntimeSettings, CompactPolicy, LimitConfig, ResolvedAgentRuntimeLimits, AgentRuntimeSafetyLimits, ResolveRunConfigInput, StartTurnInput, ContinueTurnInput, CancelTurnInput, SteerTurnInput, CompactTurnInput, CompactTurnResult, FrozenRunConfigView, AgentTerminationBudget, AgentTerminationReason, AgentTerminationView, RecoverableTurnStatus, RecoverableApprovalView, RecoverableTurnView, AgentErrorCode, McpCapability, McpServerConfig, WebCapability, WebFetchCapability, WebFetchCapabilityErrorCode, WebFetchResult, WebSearchCapability, WebSearchCapabilityErrorCode, WebSearchResult, WebSearchSource, AgentMessageMigrationFailure, AgentMessageMigrationResult, AgentMessageMigrationSuccess, } from "./runtime/protocol";
|
|
19
|
+
export type { AgentEvent, AgentEventEnvelope, CreateEventEnvelopeInput, AgentContentBlock, AgentJsonObject, AgentMessage, AgentMessageRole, AgentToolPairingScan, AgentCheckpoint, PublicCheckpointView, RunConfig, ProviderRuntimeSettings, CompactPolicy, LimitConfig, ResolvedAgentRuntimeLimits, AgentRuntimeSafetyLimits, ResolveRunConfigInput, StartTurnInput, ContinueTurnInput, CancelTurnInput, SteerTurnInput, CompactTurnInput, CompactTurnResult, FrozenRunConfigView, AgentTerminationBudget, AgentTerminationReason, AgentTerminationView, RecoverableTurnStatus, RecoverableApprovalView, RecoverableTurnView, AgentErrorCode, McpCapability, McpServerConfig, WebCapability, WebFetchBlockReason, WebFetchCapability, WebFetchCapabilityErrorCode, WebFetchResult, WebSearchCapability, WebSearchCapabilityErrorCode, WebSearchResult, WebSearchSource, AgentMessageMigrationFailure, AgentMessageMigrationResult, AgentMessageMigrationSuccess, } from "./runtime/protocol";
|
|
18
20
|
export { AgentRuntimeError, WebFetchCapabilityError, WebSearchCapabilityError, parseMcpConfig, getMcpServerConfigHash, getMcpServerGrantConstraint, resolveRunConfig, AGENT_RUNTIME_LIMIT_DEFAULTS, AGENT_RUNTIME_LIMIT_HARD_LIMITS, AGENT_RUNTIME_SAFETY_DEFAULTS, AGENT_RUNTIME_SAFETY_HARD_LIMITS, resolveAgentRuntimeLimits, resolveAgentRuntimeSafetyLimits, resolveLimitConfig, createEventEnvelope, sanitizeAgentTerminationView, sanitizeCheckpoint, sanitizeEventForExternal, sanitizeAgentMessagesForExternal, migrateAgentMessages, CanonicalMessageError, isAgentToolPairingBalancedAt, isAgentToolPairingBalancedBefore, normalizeAgentMessages, scanAgentToolPairing, validateAgentMessages, } from "./runtime/protocol";
|
|
19
21
|
export type { RuntimePorts, SessionStore, CheckpointStore, TranscriptStore, CredentialStore, ProjectStore, EventSink, Clock, WorkspaceAdapter, WorkspaceInfo, TurnStore, ApprovalStore, InputInbox, LeaseStore, JobStore, JobOwnerProbe, JobStoreWriteCondition, FileMutationStore, SessionResourceStore, SessionImageStore, SessionImageRef, UserQuestionStore, GetUserQuestionInput, SaveUserQuestionAnswerInput, SaveUserQuestionAnswerResult, SandboxPort, ExternalPermissionProjector, ExternalPermissionSnapshot, } from "./runtime/ports";
|
|
20
22
|
export { SandboxPortError, createUnavailableSandboxPort } from "./runtime/ports";
|
|
@@ -36,7 +38,7 @@ export type { ModelSamplerFactory, CreateModelSamplerInput, ModelSamplerFactoryO
|
|
|
36
38
|
export type { FrozenProviderConfig } from "./runtime/provider/frozen-provider-config";
|
|
37
39
|
export type { ApiProtocol, ProtocolProfile, ProviderRouteProfile, ProviderProtocolAdapter, ProviderProtocolAdapterInput } from "./runtime/provider";
|
|
38
40
|
export { ProviderProtocolAdapterRegistry } from "./runtime/provider";
|
|
39
|
-
export { createDefaultModelSamplerFactory, createConfiguredModelSampler, createFirstPartyModelSampler, listModelCapabilities, getModelCapability, createVisionAnalyzer, resolveFirstPartyModelSampleOptions, resolveModelSampleOptions, createDefaultModelBehaviorProfile, } from "./runtime/provider";
|
|
41
|
+
export { createDefaultModelSamplerFactory, createConfiguredModelSampler, createFirstPartyModelSampler, listModelCapabilities, getModelCapability, resolveRouteModelCapability, resolveRouteProtocolProfile, createVisionAnalyzer, resolveFirstPartyModelSampleOptions, resolveModelSampleOptions, createDefaultModelBehaviorProfile, } from "./runtime/provider";
|
|
40
42
|
export type { CreateFirstPartyModelSamplerInput, ModelCapability, PromptCacheMode, VisionAnalyzer, FirstPartyEffortSource, ResolvedFirstPartyModelSample, ModelBehaviorProfile, } from "./runtime/provider";
|
|
41
43
|
export { normalizeProviderBaseUrl, resolveAutopilotSettings, isExternalPermissionDiagnostic, } from "./runtime/config/autopilot-settings";
|
|
42
44
|
export type { AutopilotSettingsScope, AutopilotSettingsSource, ResolvedAutopilotSettings, ResolvedExternalPermissionSettings, ResolvedFirstPartySettings, ResolvedRagConnectionSettings, ResolvedRagSettings, ResolvedSandboxSettings, ResolvedWebSearchSettings, RagConnectionRole, SettingsDiagnostic, } from "./runtime/config/autopilot-settings";
|
|
@@ -178,3 +180,6 @@ export { createThreadDeliveryService } from "./runtime/application/thread-delive
|
|
|
178
180
|
export type { ThreadDeliveryHostContext, ThreadDeliveryService, ThreadStartDelivery, ThreadReconcileResult } from "./runtime/application/thread-delivery-service";
|
|
179
181
|
export { readTurnExecutionView } from "./runtime/application/turn/turn-execution-view";
|
|
180
182
|
export type { TurnExecutionView } from "./runtime/application/turn/turn-execution-view";
|
|
183
|
+
export type { BrowserCapability, BrowserBinding, BrowserOperation, BrowserRequestAuthorization } from "./runtime/protocol/browser-capability";
|
|
184
|
+
export { isPublicBrowserRead, isPublicBrowserUrl, parseBrowserOperation } from "./runtime/protocol/browser-operation";
|
|
185
|
+
export { STATIC_PREVIEW_SCRIPT } from "./internal/tools/builtins/static-preview";
|