@agents24/node 0.5.16 → 0.5.18
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/compatibility.json +5 -5
- package/dist/bff.cjs +91 -39
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +1 -1
- package/dist/bff.d.ts +1 -1
- package/dist/bff.js +91 -39
- package/dist/bff.js.map +1 -1
- package/dist/{client-ChHref1j.d.cts → client-YEw6vRtg.d.cts} +6 -0
- package/dist/{client-ChHref1j.d.ts → client-YEw6vRtg.d.ts} +6 -0
- package/dist/index.cjs +24 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -13
- package/dist/index.js.map +1 -1
- package/dist/types/bff-sse.d.ts +3 -1
- package/dist/types/bff-sse.d.ts.map +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/streams.d.ts +3 -3
- package/dist/types/streams.d.ts.map +1 -1
- package/dist/types/types.d.ts +5 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneAgentRunRequest, L as ControlPlaneRunEventsResponse, M as ConversationRunRequest, N as ConversationRunResult, O as ConversationRuntimeSelectionRequest, P as ConversationRuntimeSelectionResult, Q as ConversationThreadOptions, R as CreateBackendClientSessionRequest, S as CreateClientDeploymentRequest, T as CustomerIdentityRequest, U as CustomerPrincipalRefRequest, V as CustomerProfile, W as CustomerProfileList, X as CustomerProfilePatch, Y as CustomerProfileSearchOptions, Z as CustomerResourcePolicyAssignment, _ as DelegationAction, $ as DelegationActionRequest, a0 as DelegationEvents, a1 as DelegationHistory, a2 as DelegationHistoryTurn, a3 as DelegationStatus, a4 as DelegationTask, a5 as DelegationTaskList, a6 as EffectiveCustomerResourcePolicyRequest, a7 as EffectiveResourcePolicy, a8 as EmbedAgentAliasResolution, a9 as EmbedAttachmentContentAccessRequest, aa as EmbedCustomerPrincipalResolveRequest, ab as EmbedCustomerPrincipalResolveResponse, ac as EmbedResourcePolicyRequest, ad as EmbedRunCancelOptions, ae as EmbedRunStartRequest, af as EmbedRuntimeBootstrap, ag as EmbedStreamRequest, ah as EmbedThreadMessageEdit, ai as EmbedThreadMessageScope, aj as EmbedThreadMessageSubmit, ak as EmbeddedResponseFeedbackInput, al as FailureCategory, am as FailureView, an as FeedbackRating, ao as FeedbackReason, ap as GraphBuilder, aq as GraphDefinition, ar as GraphEdge, as as GraphHints, at as GraphNode, au as GraphValueRef, av as HitlAction, aw as HitlAnswer, ax as HostedArtifactDraft, ay as HostedArtifactsNamespace, az as LatestOrPinnedPolicy, aA as McpAuthStartRequest, aB as McpAuthStartResult, aC as MultiAgentThreadListRequest, aD as MultiAgentThreadSummaryEventOptions, aE as NativePlatform, aF as NodeAuthoringSpec, aG as NodeCatalogItem, aH as NodeCatalogResponse, aI as NodeSchemaResponse, aJ as PortableResourceKind, aK as RequestOptions, aL as ResetResourcePolicyQuotaRequest, aM as ResourceCallableBinding, aN as ResourceCallableBindingStatus, aO as ResourceCandidateList, aP as ResourceInstallation, aQ as ResourceInstallationApplication, aR as ResourceInstallationApplyRequest, aS as ResourceInstallationBinding, aT as ResourceInstallationCreateRequest, aU as ResourceInstallationDeploymentRequest, aV as ResourceInstallationLinkRequest, aW as ResourceInstallationList, aX as ResourceInstallationOperation, aY as ResourceInstallationPlan, aZ as ResourceInstallationPlanUpload, a_ as ResourceInstallationPublication, a$ as ResourceInstallationPublishRequest, b0 as ResourceInstallationPullAcceptRequest, b1 as ResourceInstallationPullChange, b2 as ResourceInstallationPullPayload, b3 as ResourceInstallationPullPlan, b4 as ResourceInstallationResourceListOptions, b5 as ResourceInstallationSecretStatus, b6 as ResourceInstallationSecretsRequest, b7 as ResourcePackageArchive, b8 as ResourcePackageCandidateOptions, b9 as ResourcePackageDependency, ba as ResourcePackageDiagnostic, bb as ResourcePackageExportPlan, bc as ResourcePackageExportRequest, bd as ResourcePackageImportPreview, be as ResourcePackageImportResult, bf as ResourcePackageImportUpload, bg as ResourcePackageUpload, bh as ResourcePackageValidationResult, bi as ResourcePolicyList, bj as ResourcePolicyQuotaSchedule, bk as ResourcePolicyQuotaScheduleResult, bl as ResourcePolicySubjectRef, bm as ResourcePolicySummary, bn as ResourceSelector, bo as ResourceToolExport, bp as ResponseFeedback, bq as ResponseFeedbackResult, br as ResumeRunRequest, bs as RunCancelOptions, bt as RunContextOptions, bu as RunStatus, bv as RunTrace, bw as ServerAttachmentUploadOptions, bx as ServerEmbedAttachmentUploadOptions, by as SetCustomerResourcePolicyAssignmentRequest, bz as SetResourcePolicyQuotaScheduleRequest, bA as StartRunResult, bB as StateVariableDefinition, bC as StreamRequestOptions, bD as StreamResult, bE as ThreadComputerContentAccess, bF as ThreadComputerFile, bG as ThreadComputerFileOptions, bH as ThreadComputerFileText, bI as ThreadComputerFiles, bJ as ThreadComputerStatus, bK as ThreadDeleteOptions, bL as ThreadDetailOptions, bM as ThreadListOptions, bN as ThreadSummaryEventOptions, bO as TraceContent, bP as TraceError, bQ as TraceSpan, bR as TraceSpanKind, bS as TraceSpanStatus, bT as TraceView, bU as UpdateClientDeploymentRequest, bV as WorkflowInputDefinition } from './client-
|
|
1
|
+
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneAgentRunRequest, L as ControlPlaneRunEventsResponse, M as ConversationRunRequest, N as ConversationRunResult, O as ConversationRuntimeSelectionRequest, P as ConversationRuntimeSelectionResult, Q as ConversationThreadOptions, R as CreateBackendClientSessionRequest, S as CreateClientDeploymentRequest, T as CustomerIdentityRequest, U as CustomerPrincipalRefRequest, V as CustomerProfile, W as CustomerProfileList, X as CustomerProfilePatch, Y as CustomerProfileSearchOptions, Z as CustomerResourcePolicyAssignment, _ as DelegationAction, $ as DelegationActionRequest, a0 as DelegationEvents, a1 as DelegationHistory, a2 as DelegationHistoryTurn, a3 as DelegationStatus, a4 as DelegationTask, a5 as DelegationTaskList, a6 as EffectiveCustomerResourcePolicyRequest, a7 as EffectiveResourcePolicy, a8 as EmbedAgentAliasResolution, a9 as EmbedAttachmentContentAccessRequest, aa as EmbedCustomerPrincipalResolveRequest, ab as EmbedCustomerPrincipalResolveResponse, ac as EmbedResourcePolicyRequest, ad as EmbedRunCancelOptions, ae as EmbedRunStartRequest, af as EmbedRuntimeBootstrap, ag as EmbedStreamRequest, ah as EmbedThreadMessageEdit, ai as EmbedThreadMessageScope, aj as EmbedThreadMessageSubmit, ak as EmbeddedResponseFeedbackInput, al as FailureCategory, am as FailureView, an as FeedbackRating, ao as FeedbackReason, ap as GraphBuilder, aq as GraphDefinition, ar as GraphEdge, as as GraphHints, at as GraphNode, au as GraphValueRef, av as HitlAction, aw as HitlAnswer, ax as HostedArtifactDraft, ay as HostedArtifactsNamespace, az as LatestOrPinnedPolicy, aA as McpAuthStartRequest, aB as McpAuthStartResult, aC as MultiAgentThreadListRequest, aD as MultiAgentThreadSummaryEventOptions, aE as NativePlatform, aF as NodeAuthoringSpec, aG as NodeCatalogItem, aH as NodeCatalogResponse, aI as NodeSchemaResponse, aJ as PortableResourceKind, aK as RequestOptions, aL as ResetResourcePolicyQuotaRequest, aM as ResourceCallableBinding, aN as ResourceCallableBindingStatus, aO as ResourceCandidateList, aP as ResourceInstallation, aQ as ResourceInstallationApplication, aR as ResourceInstallationApplyRequest, aS as ResourceInstallationBinding, aT as ResourceInstallationCreateRequest, aU as ResourceInstallationDeploymentRequest, aV as ResourceInstallationLinkRequest, aW as ResourceInstallationList, aX as ResourceInstallationOperation, aY as ResourceInstallationPlan, aZ as ResourceInstallationPlanUpload, a_ as ResourceInstallationPublication, a$ as ResourceInstallationPublishRequest, b0 as ResourceInstallationPullAcceptRequest, b1 as ResourceInstallationPullChange, b2 as ResourceInstallationPullPayload, b3 as ResourceInstallationPullPlan, b4 as ResourceInstallationResourceListOptions, b5 as ResourceInstallationSecretStatus, b6 as ResourceInstallationSecretsRequest, b7 as ResourcePackageArchive, b8 as ResourcePackageCandidateOptions, b9 as ResourcePackageDependency, ba as ResourcePackageDiagnostic, bb as ResourcePackageExportPlan, bc as ResourcePackageExportRequest, bd as ResourcePackageImportPreview, be as ResourcePackageImportResult, bf as ResourcePackageImportUpload, bg as ResourcePackageUpload, bh as ResourcePackageValidationResult, bi as ResourcePolicyList, bj as ResourcePolicyQuotaSchedule, bk as ResourcePolicyQuotaScheduleResult, bl as ResourcePolicySubjectRef, bm as ResourcePolicySummary, bn as ResourceSelector, bo as ResourceToolExport, bp as ResponseFeedback, bq as ResponseFeedbackResult, br as ResumeRunRequest, bs as RunCancelOptions, bt as RunContextOptions, bu as RunStatus, bv as RunTrace, bw as ServerAttachmentUploadOptions, bx as ServerEmbedAttachmentUploadOptions, by as SetCustomerResourcePolicyAssignmentRequest, bz as SetResourcePolicyQuotaScheduleRequest, bA as StartRunResult, bB as StateVariableDefinition, bC as StreamRequestOptions, bD as StreamResult, bE as ThreadComputerContentAccess, bF as ThreadComputerFile, bG as ThreadComputerFileOptions, bH as ThreadComputerFileText, bI as ThreadComputerFiles, bJ as ThreadComputerStatus, bK as ThreadDeleteOptions, bL as ThreadDetailOptions, bM as ThreadListOptions, bN as ThreadSummaryEventOptions, bO as TraceContent, bP as TraceError, bQ as TraceSpan, bR as TraceSpanKind, bS as TraceSpanStatus, bT as TraceView, bU as UpdateClientDeploymentRequest, bV as WorkflowInputDefinition } from './client-YEw6vRtg.cjs';
|
|
2
2
|
export { ActiveThreadRun, Attachment, AttachmentContentAccess, AttachmentUploadResult, CONTRACT_HASH, ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ModelTurnEventName, ModelTurnKind, ModelTurnOutcome, ModelTurnPayload, ModelTurnRuntimeEvent, ModelTurnStatus, ProtocolErrorCategory, PublicResponseBlock, RUNTIME_PROTOCOL_VERSION, PublicResponseBlock as ResponseBlock, RunCancelResult, RunContext, RunResumeResult, RuntimeEvent, THREAD_SUMMARY_PROTOCOL_VERSION, ThreadDeleteResult, ThreadDetail, ThreadMessage, ThreadMessageSubmission, ThreadMessagesPage, ThreadSummary, ThreadSummaryEvent, ThreadTurn, ThreadsResponse, ToolInputOverrides, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent } from '@agents24/client/protocol';
|
|
3
3
|
|
|
4
4
|
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "delegations.act", "delegations.events", "delegations.history", "delegations.inspect", "delegations.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "embed.upload_agent_attachments", "instructions.publish", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneAgentRunRequest, L as ControlPlaneRunEventsResponse, M as ConversationRunRequest, N as ConversationRunResult, O as ConversationRuntimeSelectionRequest, P as ConversationRuntimeSelectionResult, Q as ConversationThreadOptions, R as CreateBackendClientSessionRequest, S as CreateClientDeploymentRequest, T as CustomerIdentityRequest, U as CustomerPrincipalRefRequest, V as CustomerProfile, W as CustomerProfileList, X as CustomerProfilePatch, Y as CustomerProfileSearchOptions, Z as CustomerResourcePolicyAssignment, _ as DelegationAction, $ as DelegationActionRequest, a0 as DelegationEvents, a1 as DelegationHistory, a2 as DelegationHistoryTurn, a3 as DelegationStatus, a4 as DelegationTask, a5 as DelegationTaskList, a6 as EffectiveCustomerResourcePolicyRequest, a7 as EffectiveResourcePolicy, a8 as EmbedAgentAliasResolution, a9 as EmbedAttachmentContentAccessRequest, aa as EmbedCustomerPrincipalResolveRequest, ab as EmbedCustomerPrincipalResolveResponse, ac as EmbedResourcePolicyRequest, ad as EmbedRunCancelOptions, ae as EmbedRunStartRequest, af as EmbedRuntimeBootstrap, ag as EmbedStreamRequest, ah as EmbedThreadMessageEdit, ai as EmbedThreadMessageScope, aj as EmbedThreadMessageSubmit, ak as EmbeddedResponseFeedbackInput, al as FailureCategory, am as FailureView, an as FeedbackRating, ao as FeedbackReason, ap as GraphBuilder, aq as GraphDefinition, ar as GraphEdge, as as GraphHints, at as GraphNode, au as GraphValueRef, av as HitlAction, aw as HitlAnswer, ax as HostedArtifactDraft, ay as HostedArtifactsNamespace, az as LatestOrPinnedPolicy, aA as McpAuthStartRequest, aB as McpAuthStartResult, aC as MultiAgentThreadListRequest, aD as MultiAgentThreadSummaryEventOptions, aE as NativePlatform, aF as NodeAuthoringSpec, aG as NodeCatalogItem, aH as NodeCatalogResponse, aI as NodeSchemaResponse, aJ as PortableResourceKind, aK as RequestOptions, aL as ResetResourcePolicyQuotaRequest, aM as ResourceCallableBinding, aN as ResourceCallableBindingStatus, aO as ResourceCandidateList, aP as ResourceInstallation, aQ as ResourceInstallationApplication, aR as ResourceInstallationApplyRequest, aS as ResourceInstallationBinding, aT as ResourceInstallationCreateRequest, aU as ResourceInstallationDeploymentRequest, aV as ResourceInstallationLinkRequest, aW as ResourceInstallationList, aX as ResourceInstallationOperation, aY as ResourceInstallationPlan, aZ as ResourceInstallationPlanUpload, a_ as ResourceInstallationPublication, a$ as ResourceInstallationPublishRequest, b0 as ResourceInstallationPullAcceptRequest, b1 as ResourceInstallationPullChange, b2 as ResourceInstallationPullPayload, b3 as ResourceInstallationPullPlan, b4 as ResourceInstallationResourceListOptions, b5 as ResourceInstallationSecretStatus, b6 as ResourceInstallationSecretsRequest, b7 as ResourcePackageArchive, b8 as ResourcePackageCandidateOptions, b9 as ResourcePackageDependency, ba as ResourcePackageDiagnostic, bb as ResourcePackageExportPlan, bc as ResourcePackageExportRequest, bd as ResourcePackageImportPreview, be as ResourcePackageImportResult, bf as ResourcePackageImportUpload, bg as ResourcePackageUpload, bh as ResourcePackageValidationResult, bi as ResourcePolicyList, bj as ResourcePolicyQuotaSchedule, bk as ResourcePolicyQuotaScheduleResult, bl as ResourcePolicySubjectRef, bm as ResourcePolicySummary, bn as ResourceSelector, bo as ResourceToolExport, bp as ResponseFeedback, bq as ResponseFeedbackResult, br as ResumeRunRequest, bs as RunCancelOptions, bt as RunContextOptions, bu as RunStatus, bv as RunTrace, bw as ServerAttachmentUploadOptions, bx as ServerEmbedAttachmentUploadOptions, by as SetCustomerResourcePolicyAssignmentRequest, bz as SetResourcePolicyQuotaScheduleRequest, bA as StartRunResult, bB as StateVariableDefinition, bC as StreamRequestOptions, bD as StreamResult, bE as ThreadComputerContentAccess, bF as ThreadComputerFile, bG as ThreadComputerFileOptions, bH as ThreadComputerFileText, bI as ThreadComputerFiles, bJ as ThreadComputerStatus, bK as ThreadDeleteOptions, bL as ThreadDetailOptions, bM as ThreadListOptions, bN as ThreadSummaryEventOptions, bO as TraceContent, bP as TraceError, bQ as TraceSpan, bR as TraceSpanKind, bS as TraceSpanStatus, bT as TraceView, bU as UpdateClientDeploymentRequest, bV as WorkflowInputDefinition } from './client-
|
|
1
|
+
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ControlPlaneAgentRunRequest, L as ControlPlaneRunEventsResponse, M as ConversationRunRequest, N as ConversationRunResult, O as ConversationRuntimeSelectionRequest, P as ConversationRuntimeSelectionResult, Q as ConversationThreadOptions, R as CreateBackendClientSessionRequest, S as CreateClientDeploymentRequest, T as CustomerIdentityRequest, U as CustomerPrincipalRefRequest, V as CustomerProfile, W as CustomerProfileList, X as CustomerProfilePatch, Y as CustomerProfileSearchOptions, Z as CustomerResourcePolicyAssignment, _ as DelegationAction, $ as DelegationActionRequest, a0 as DelegationEvents, a1 as DelegationHistory, a2 as DelegationHistoryTurn, a3 as DelegationStatus, a4 as DelegationTask, a5 as DelegationTaskList, a6 as EffectiveCustomerResourcePolicyRequest, a7 as EffectiveResourcePolicy, a8 as EmbedAgentAliasResolution, a9 as EmbedAttachmentContentAccessRequest, aa as EmbedCustomerPrincipalResolveRequest, ab as EmbedCustomerPrincipalResolveResponse, ac as EmbedResourcePolicyRequest, ad as EmbedRunCancelOptions, ae as EmbedRunStartRequest, af as EmbedRuntimeBootstrap, ag as EmbedStreamRequest, ah as EmbedThreadMessageEdit, ai as EmbedThreadMessageScope, aj as EmbedThreadMessageSubmit, ak as EmbeddedResponseFeedbackInput, al as FailureCategory, am as FailureView, an as FeedbackRating, ao as FeedbackReason, ap as GraphBuilder, aq as GraphDefinition, ar as GraphEdge, as as GraphHints, at as GraphNode, au as GraphValueRef, av as HitlAction, aw as HitlAnswer, ax as HostedArtifactDraft, ay as HostedArtifactsNamespace, az as LatestOrPinnedPolicy, aA as McpAuthStartRequest, aB as McpAuthStartResult, aC as MultiAgentThreadListRequest, aD as MultiAgentThreadSummaryEventOptions, aE as NativePlatform, aF as NodeAuthoringSpec, aG as NodeCatalogItem, aH as NodeCatalogResponse, aI as NodeSchemaResponse, aJ as PortableResourceKind, aK as RequestOptions, aL as ResetResourcePolicyQuotaRequest, aM as ResourceCallableBinding, aN as ResourceCallableBindingStatus, aO as ResourceCandidateList, aP as ResourceInstallation, aQ as ResourceInstallationApplication, aR as ResourceInstallationApplyRequest, aS as ResourceInstallationBinding, aT as ResourceInstallationCreateRequest, aU as ResourceInstallationDeploymentRequest, aV as ResourceInstallationLinkRequest, aW as ResourceInstallationList, aX as ResourceInstallationOperation, aY as ResourceInstallationPlan, aZ as ResourceInstallationPlanUpload, a_ as ResourceInstallationPublication, a$ as ResourceInstallationPublishRequest, b0 as ResourceInstallationPullAcceptRequest, b1 as ResourceInstallationPullChange, b2 as ResourceInstallationPullPayload, b3 as ResourceInstallationPullPlan, b4 as ResourceInstallationResourceListOptions, b5 as ResourceInstallationSecretStatus, b6 as ResourceInstallationSecretsRequest, b7 as ResourcePackageArchive, b8 as ResourcePackageCandidateOptions, b9 as ResourcePackageDependency, ba as ResourcePackageDiagnostic, bb as ResourcePackageExportPlan, bc as ResourcePackageExportRequest, bd as ResourcePackageImportPreview, be as ResourcePackageImportResult, bf as ResourcePackageImportUpload, bg as ResourcePackageUpload, bh as ResourcePackageValidationResult, bi as ResourcePolicyList, bj as ResourcePolicyQuotaSchedule, bk as ResourcePolicyQuotaScheduleResult, bl as ResourcePolicySubjectRef, bm as ResourcePolicySummary, bn as ResourceSelector, bo as ResourceToolExport, bp as ResponseFeedback, bq as ResponseFeedbackResult, br as ResumeRunRequest, bs as RunCancelOptions, bt as RunContextOptions, bu as RunStatus, bv as RunTrace, bw as ServerAttachmentUploadOptions, bx as ServerEmbedAttachmentUploadOptions, by as SetCustomerResourcePolicyAssignmentRequest, bz as SetResourcePolicyQuotaScheduleRequest, bA as StartRunResult, bB as StateVariableDefinition, bC as StreamRequestOptions, bD as StreamResult, bE as ThreadComputerContentAccess, bF as ThreadComputerFile, bG as ThreadComputerFileOptions, bH as ThreadComputerFileText, bI as ThreadComputerFiles, bJ as ThreadComputerStatus, bK as ThreadDeleteOptions, bL as ThreadDetailOptions, bM as ThreadListOptions, bN as ThreadSummaryEventOptions, bO as TraceContent, bP as TraceError, bQ as TraceSpan, bR as TraceSpanKind, bS as TraceSpanStatus, bT as TraceView, bU as UpdateClientDeploymentRequest, bV as WorkflowInputDefinition } from './client-YEw6vRtg.js';
|
|
2
2
|
export { ActiveThreadRun, Attachment, AttachmentContentAccess, AttachmentUploadResult, CONTRACT_HASH, ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ModelTurnEventName, ModelTurnKind, ModelTurnOutcome, ModelTurnPayload, ModelTurnRuntimeEvent, ModelTurnStatus, ProtocolErrorCategory, PublicResponseBlock, RUNTIME_PROTOCOL_VERSION, PublicResponseBlock as ResponseBlock, RunCancelResult, RunContext, RunResumeResult, RuntimeEvent, THREAD_SUMMARY_PROTOCOL_VERSION, ThreadDeleteResult, ThreadDetail, ThreadMessage, ThreadMessageSubmission, ThreadMessagesPage, ThreadSummary, ThreadSummaryEvent, ThreadTurn, ThreadsResponse, ToolInputOverrides, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent } from '@agents24/client/protocol';
|
|
3
3
|
|
|
4
4
|
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "delegations.act", "delegations.events", "delegations.history", "delegations.inspect", "delegations.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "embed.upload_agent_attachments", "instructions.publish", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomUUID } from 'crypto';
|
|
2
|
-
import { createSseParser, parseRuntimeSsePayload, parseThreadSummarySsePayload } from '@agents24/client/protocol';
|
|
2
|
+
import { createSseParser, parseObservationControl, parseRuntimeSsePayload, parseThreadSummarySsePayload } from '@agents24/client/protocol';
|
|
3
3
|
export { CONTRACT_HASH, RUNTIME_PROTOCOL_VERSION, THREAD_SUMMARY_PROTOCOL_VERSION, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent } from '@agents24/client/protocol';
|
|
4
4
|
|
|
5
5
|
// src/http.ts
|
|
@@ -160,12 +160,20 @@ var Agents24HttpClient = class {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
async function consumePayloads(response, onPayload, signal) {
|
|
163
|
+
async function consumePayloads(response, onPayload, signal, onControl) {
|
|
164
164
|
if (!response.body) {
|
|
165
165
|
throw new Agents24SDKError("Stream response did not include a readable body.", { kind: "protocol" });
|
|
166
166
|
}
|
|
167
167
|
const reader = response.body.getReader();
|
|
168
|
-
const parser = createSseParser({
|
|
168
|
+
const parser = createSseParser({
|
|
169
|
+
decoder: new TextDecoder(),
|
|
170
|
+
onPayload,
|
|
171
|
+
signal,
|
|
172
|
+
onComment: async (comment) => {
|
|
173
|
+
const control = parseObservationControl(comment);
|
|
174
|
+
if (control) await onControl?.(control);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
169
177
|
const abort = () => {
|
|
170
178
|
void reader.cancel(signal?.reason).catch(() => void 0);
|
|
171
179
|
};
|
|
@@ -183,16 +191,16 @@ async function consumePayloads(response, onPayload, signal) {
|
|
|
183
191
|
reader.releaseLock();
|
|
184
192
|
}
|
|
185
193
|
}
|
|
186
|
-
async function consumeRuntimeEventStream(response, onEvent, signal) {
|
|
194
|
+
async function consumeRuntimeEventStream(response, onEvent, signal, onControl) {
|
|
187
195
|
await consumePayloads(response, async (payload) => {
|
|
188
196
|
const event = parseRuntimeSsePayload(payload);
|
|
189
197
|
if (onEvent) await onEvent(event);
|
|
190
|
-
}, signal);
|
|
198
|
+
}, signal, onControl);
|
|
191
199
|
}
|
|
192
|
-
async function consumeThreadSummaryEventStream(response, onEvent, signal) {
|
|
200
|
+
async function consumeThreadSummaryEventStream(response, onEvent, signal, onControl) {
|
|
193
201
|
await consumePayloads(response, async (payload) => {
|
|
194
202
|
await onEvent(parseThreadSummarySsePayload(payload));
|
|
195
|
-
}, signal);
|
|
203
|
+
}, signal, onControl);
|
|
196
204
|
}
|
|
197
205
|
|
|
198
206
|
// src/agents.ts
|
|
@@ -280,7 +288,7 @@ var AgentsNamespace = class {
|
|
|
280
288
|
});
|
|
281
289
|
}
|
|
282
290
|
async stream(agentId, payload, onEvent, mode, options = {}) {
|
|
283
|
-
const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode }), {
|
|
291
|
+
const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode, stream_features: "assistant-completion-v1" }), {
|
|
284
292
|
method: "POST",
|
|
285
293
|
headers: this.http.streamHeaders(),
|
|
286
294
|
body: JSON.stringify(payload),
|
|
@@ -524,7 +532,7 @@ var EmbedNamespace = class {
|
|
|
524
532
|
return this.stream(`/public/embed/agents/${agentId}/runs/${runId}/stream`, payload, onEvent, options);
|
|
525
533
|
}
|
|
526
534
|
async stream(path, payload, onEvent, options) {
|
|
527
|
-
const response = await this.http.fetchOrThrow(this.http.url(path), {
|
|
535
|
+
const response = await this.http.fetchOrThrow(this.http.url(path, { stream_features: "assistant-completion-v1", lease_seconds: options.leaseSeconds }), {
|
|
528
536
|
method: "POST",
|
|
529
537
|
headers: this.http.streamHeaders(void 0, options, true),
|
|
530
538
|
body: JSON.stringify(payload),
|
|
@@ -599,10 +607,12 @@ var EmbedNamespace = class {
|
|
|
599
607
|
external_session_id: options.externalSessionId,
|
|
600
608
|
cursor: options.cursor,
|
|
601
609
|
runtime_target: options.runtimeTarget,
|
|
602
|
-
integration_id: options.integrationId
|
|
610
|
+
integration_id: options.integrationId,
|
|
611
|
+
thread_id: options.threadId,
|
|
612
|
+
lease_seconds: options.leaseSeconds
|
|
603
613
|
}), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
|
|
604
614
|
await assertOk(response);
|
|
605
|
-
await consumeThreadSummaryEventStream(response, onEvent, options.signal);
|
|
615
|
+
await consumeThreadSummaryEventStream(response, onEvent, options.signal, options.onControl);
|
|
606
616
|
}
|
|
607
617
|
async subscribeAgentThreadEventsMulti(options, onEvent) {
|
|
608
618
|
const response = await this.http.fetchOrThrow(this.http.url("/public/embed/threads/events", {
|
|
@@ -611,10 +621,12 @@ var EmbedNamespace = class {
|
|
|
611
621
|
external_session_id: options.externalSessionId,
|
|
612
622
|
cursor: options.cursor,
|
|
613
623
|
runtime_target: options.runtimeTarget,
|
|
614
|
-
integration_id: options.integrationId
|
|
624
|
+
integration_id: options.integrationId,
|
|
625
|
+
thread_id: options.threadId,
|
|
626
|
+
lease_seconds: options.leaseSeconds
|
|
615
627
|
}), { method: "GET", headers: this.http.streamHeaders(), signal: options.signal }, "Failed to connect to the embedded-agent thread event endpoint.");
|
|
616
628
|
await assertOk(response);
|
|
617
|
-
await consumeThreadSummaryEventStream(response, onEvent, options.signal);
|
|
629
|
+
await consumeThreadSummaryEventStream(response, onEvent, options.signal, options.onControl);
|
|
618
630
|
}
|
|
619
631
|
threadMessageQuery(scope) {
|
|
620
632
|
return {
|