@niadra/sdk 0.10.3 → 0.10.4

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/ai-sdk.d.cts +3 -3
  3. package/dist/ai-sdk.d.ts +3 -3
  4. package/dist/anthropic.d.cts +4 -4
  5. package/dist/anthropic.d.ts +4 -4
  6. package/dist/bedrock.d.cts +4 -4
  7. package/dist/bedrock.d.ts +4 -4
  8. package/dist/cli.js +14 -2
  9. package/dist/cli.js.map +1 -1
  10. package/dist/{client-rmWhZJOx.d.cts → client-7mkrdRI0.d.cts} +4 -2
  11. package/dist/{client-rmWhZJOx.d.ts → client-7mkrdRI0.d.ts} +4 -2
  12. package/dist/cloudflare-agents.d.cts +3 -3
  13. package/dist/cloudflare-agents.d.ts +3 -3
  14. package/dist/elevenlabs.d.cts +5 -5
  15. package/dist/elevenlabs.d.ts +5 -5
  16. package/dist/genkit.d.cts +3 -3
  17. package/dist/genkit.d.ts +3 -3
  18. package/dist/google-adk.d.cts +3 -3
  19. package/dist/google-adk.d.ts +3 -3
  20. package/dist/google-genai.d.cts +4 -4
  21. package/dist/google-genai.d.ts +4 -4
  22. package/dist/index.cjs +14 -2
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +3 -3
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.js +14 -2
  27. package/dist/index.js.map +1 -1
  28. package/dist/{intercept-C0XODsy9.d.cts → intercept-CGQhwAom.d.cts} +1 -1
  29. package/dist/{intercept-veMDudKV.d.ts → intercept-CT0vglsd.d.ts} +1 -1
  30. package/dist/langchain.d.cts +3 -3
  31. package/dist/langchain.d.ts +3 -3
  32. package/dist/livekit.d.cts +3 -3
  33. package/dist/livekit.d.ts +3 -3
  34. package/dist/llamaindex.d.cts +3 -3
  35. package/dist/llamaindex.d.ts +3 -3
  36. package/dist/mastra.d.cts +3 -3
  37. package/dist/mastra.d.ts +3 -3
  38. package/dist/openai-agents.d.cts +3 -3
  39. package/dist/openai-agents.d.ts +3 -3
  40. package/dist/retell.d.cts +5 -5
  41. package/dist/retell.d.ts +5 -5
  42. package/dist/{shared-Cs7h5C4Y.d.ts → shared-Bf84jr3Y.d.ts} +1 -1
  43. package/dist/{shared-zaTBum17.d.cts → shared-CxAwOcZI.d.cts} +1 -1
  44. package/dist/strands.d.cts +3 -3
  45. package/dist/strands.d.ts +3 -3
  46. package/dist/twilio.d.cts +4 -4
  47. package/dist/twilio.d.ts +4 -4
  48. package/dist/vapi.d.cts +5 -5
  49. package/dist/vapi.d.ts +5 -5
  50. package/dist/voltagent.d.cts +3 -3
  51. package/dist/voltagent.d.ts +3 -3
  52. package/dist/{webhook-CX7nvQig.d.cts → webhook-DE3HsGkb.d.cts} +1 -1
  53. package/dist/{webhook-2V5QgnKI.d.ts → webhook-QxYgxE6_.d.ts} +1 -1
  54. package/dist/whatsapp.d.cts +2 -2
  55. package/dist/whatsapp.d.ts +2 -2
  56. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-rmWhZJOx.cjs';
2
- export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseBucket, bs as ContextUseDimension, bt as ContextUseEntry, bu as ContextUseParams, bv as ContextUseRate, bw as ContextUseReport, bx as Conversation, by as ConversationAction, bz as ConversationEndedItem, bA as ConversationEvent, bB as ConversationParams, bC as CoordinationBlock, bD as CoordinationOverview, bE as CoordinationReport, bF as CoordinationReportPage, bG as CorrectParams, bH as CorrectionAction, bI as CorrectionRequest, bJ as CounterfactualCase, bK as CounterfactualEngaged, bL as CounterfactualEngagement, bM as CounterfactualRunCreate, bN as CounterfactualRunPage, bO as CreateAgentNoteRequest, bP as DEFAULT_CACHE, bQ as DEFAULT_QUEUE, bR as DEFAULT_TIMEOUTS, bS as DEFAULT_VOICE, bT as DELETE, bU as DataIssue, bV as DataIssuePage, bW as Declarations, bX as DeclareRequest, bY as DeclareResult, bZ as DeliveryPath, b_ as DerivedState, b$ as Detect, c0 as DriftChanges, c1 as Effect, c2 as EffectCount, c3 as EffectDeclared, c4 as EffectDetail, c5 as EffectKind, c6 as EffectReserve, c7 as EffectSeen, c8 as EffectSettle, c9 as EffectState, ca as EffectStatus, cb as Engaged, cc as EpisodeOut, cd as Erasure, ce as EventItem, cf as EventKind, cg as Evidence, ch as ExperimentReport, ci as ExperimentResult, cj as ExportPackage, ck as FAIL_CLOSED, cl as FactHistory, cm as FactOut, cn as Feature, co as Feedback, cp as FeedbackAction, cq as FeedbackParams, cr as FeedbackRequest, cs as Fetched, ct as FieldCoverage, cu as FieldState, cv as ForgetTarget, cw as GatewayOptions, cx as Guard, cy as GuardLike, cz as GuardOptions, cA as Guarded, cB as HandleType, cC as Handoff, cD as HandoffContext, cE as HandoffCreate, cF as HandoffDeclared, cG as HandoffDetail, cH as HandoffItem, cI as HandoffOutcome, cJ as HandoffPackage, cK as HandoffParams, cL as HeartbeatItem, cM as HistoryFilters, cN as HistoryItem, cO as HistoryItemKind, cP as IdentifyItem, cQ as IdentifyParams, cR as IdentityCalibration, cS as Include, cT as Inference, cU as InferenceCorrection, cV as InferencePage, cW as IngestStatus, cX as InterestState, cY as InterleavingReport, cZ as InterleavingRow, c_ as InterleavingTotal, c$ as InternalText, d0 as ItemError, d1 as ItemVersion, d2 as KeyIdentity, d3 as LeaseDeclared, d4 as LeaseDetail, d5 as LegalHold, d6 as LegalHoldCreate, d7 as LegalHoldRelease, d8 as Link, d9 as LinkMethod, da as LinkRequest, db as LiveTurn, dc as Lock, dd as MAX_BATCH_ITEMS, de as MAX_EVENT_TEXT, df as MAX_MEDIA_BYTES, dg as MediaUpload, dh as MediaUploadRequest, di as MediaUploadResponse, dj as MemorySeen, dk as NOT_FOUND, dl as Natures, dm as Negation, dn as NiadraAPIError, dp as NiadraAbortError, dq as NiadraAuthenticationError, dr as NiadraConfigError, ds as NiadraConnectionError, dt as NiadraContactTokenError, du as NiadraPermissionError, dv as NiadraRateLimitError, dw as NiadraReplayRefusedError, dx as NiadraTimeoutError, dy as NiadraValidationError, dz as Notification, dA as NotificationPage, dB as ObjectCoverage, dC as ObjectPush, dD as ObjectPushRequest, dE as ObjectPushResponse, dF as ObjectRead, dG as ObjectSnapshotResponse, dH as ObjectTimeline, dI as ObjectTimelineParams, dJ as Observation, dK as OpenItemOut, dL as OpenItemRequest, dM as OpenObject, dN as OpenParams, dO as OpenedItem, dP as Origin, dQ as OutcomeLink, dR as OutcomePage, dS as OutcomeRequest, dT as OutcomeState, dU as Owner, dV as OwnershipClaim, dW as OwnershipCount, dX as PERSONAL_DATA_TOOL_ERROR, dY as PackGuard, dZ as PackLayer, d_ as PackSection, d$ as PackSlot, e0 as PackSlotDerived, e1 as PackStamp, e2 as PowerRequest, e3 as PowerResult, e4 as Preference, e5 as PrefetchParams, e6 as PrefetchRequest, e7 as Presented, e8 as PresentedItem, e9 as PreviousValue, ea as Problem, eb as ProfileMatch, ec as ProfileMemory, ed as PromiseRef, ee as PromoteRequest, ef as PromoteResponse, eg as ProposalStatus, eh as Provenance, ei as QueueOptions, ej as ReadingResult, ek as ReconcileRequest, el as ReconcileResult, em as ReconciledLine, en as RecordedToolOptions, eo as Recurrence, ep as Refetch, eq as RefreshRelease, er as RefreshReleased, es as RefreshRequest, et as RefreshRequestPage, eu as Refusal, ev as ReleaseDetail, ew as RememberParams, ex as RememberResult, ey as Rendered, ez as ReplayAssertion, eA as ReplayBlocker, eB as ReplayCase, eC as ReplayCaseRequest, eD as ReplayHistoryEntry, eE as ReplayResult, eF as RequestOptions, eG as Resolved, eH as Resolver, eI as Result, eJ as ResultObjects, eK as ReviewRequest, eL as ReviewRequestCreate, eM as ReviewRequestPage, eN as ReviewResolution, eO as Scenario, eP as ScenarioCreate, eQ as ScenarioFromReport, eR as ScenarioPage, eS as ScenarioRun, eT as ScenarioRunCreate, eU as ScenarioRunSummary, eV as ScenarioUpdate, eW as ScenarioVerdict, eX as SdkProfile, eY as SearchRequest, eZ as SearchResponse, e_ as Seen, e$ as SeenTokens, f0 as ShadowRequest, f1 as ShadowRun, f2 as Shown, f3 as ShownValue, f4 as SlotChannelRank, f5 as SlotWhy, f6 as SoftConstraint, f7 as SourceCoverage, f8 as Speaker, f9 as SpeakerRef, fa as StateMode, fb as StateReadRequest, fc as StateReadResponse, fd as StateRef, fe as StateVerifyRequest, ff as StateVerifyResponse, fg as StateView, fh as StateViewRequest, fi as StateWrite, fj as Subject, fk as SubjectToken, fl as SubjectTokenRequest, fm as Suppression, fn as SuppressionAdded, fo as SuppressionAddedDetail, fp as SuppressionLifted, fq as SuppressionLiftedDetail, fr as SuppressionPage, fs as SuppressionSalt, ft as TOOL_DEFINITIONS, fu as TOOL_NAMES, fv as TargetModel, fw as Task, fx as TaskAction, fy as TaskEndedItem, fz as TaskEvent, fA as TaskLockDeclared, fB as TaskLockDetail, fC as TaskParams, fD as TimeWindow, fE as TimelineRequest, fF as TimelineResponse, fG as Timeouts, fH as TimerState, fI as Timestamp, fJ as Timings, fK as ToolBinding, fL as ToolCapabilities, fM as ToolDefinition, fN as ToolOptions, fO as TrackEvent, fP as TraitOut, fQ as TurnAgent, fR as TurnBlob, fS as TurnBuild, fT as TurnCall, fU as TurnCompilerPins, fV as TurnConstraints, fW as TurnCoordination, fX as TurnCost, fY as TurnEffect, fZ as TurnFlag, f_ as TurnFrame, f$ as TurnIndexEntry, g0 as TurnIndexPage, g1 as TurnKind, g2 as TurnObservation, g3 as TurnOptions, g4 as TurnOutput, g5 as TurnParams, g6 as TurnProvenance, g7 as TurnRead, g8 as TurnRecord, g9 as TurnRecorder, ga as TurnRecordingOptions, gb as TurnRecordingSummary, gc as TurnSearchRequest, gd as TurnSearchResponse, ge as TurnSummary, gf as TurnTokens, gg as TurnView, gh as TurnsRequest, gi as TurnsResponse, gj as TypeCoverage, gk as TypeFingerprintRequest, gl as TypeFingerprintResponse, gm as UnbackedValue, gn as UnmetDemand, go as UnmetDemandPage, gp as Unwatch, gq as UploadParams, gr as ValueEvidence, gs as ValueKind, gt as ValueState, gu as Verdict, gv as Verification, gw as VerificationResult, gx as VerifyCheck, gy as VerifyItem, gz as VerifyMethod, gA as VerifyParams, gB as View, gC as Visibility, gD as VoiceInfo, gE as VoiceOptions, gF as Watch, gG as WhereExpression, gH as WorkingState, gI as WriteResult, gJ as checkBacking, gK as consoleLogger, gL as currentCall, gM as currentTurn, gN as guardStream, gO as guardText, gP as recipientHash, gQ as renderLive, gR as renderSuffix, gS as silentLogger, gT as tool, gU as verifyContactToken, gV as violatesGuard } from './client-rmWhZJOx.cjs';
1
+ import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-7mkrdRI0.cjs';
2
+ export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseBucket, bs as ContextUseDimension, bt as ContextUseEntry, bu as ContextUseParams, bv as ContextUseRate, bw as ContextUseReport, bx as Conversation, by as ConversationAction, bz as ConversationEndedItem, bA as ConversationEvent, bB as ConversationParams, bC as CoordinationBlock, bD as CoordinationOverview, bE as CoordinationReport, bF as CoordinationReportPage, bG as CorrectParams, bH as CorrectionAction, bI as CorrectionRequest, bJ as CounterfactualCase, bK as CounterfactualEngaged, bL as CounterfactualEngagement, bM as CounterfactualRunCreate, bN as CounterfactualRunPage, bO as CreateAgentNoteRequest, bP as DEFAULT_CACHE, bQ as DEFAULT_QUEUE, bR as DEFAULT_TIMEOUTS, bS as DEFAULT_VOICE, bT as DELETE, bU as DataIssue, bV as DataIssuePage, bW as Declarations, bX as DeclareRequest, bY as DeclareResult, bZ as DeliveryPath, b_ as DerivedState, b$ as Detect, c0 as DriftChanges, c1 as Effect, c2 as EffectCount, c3 as EffectDeclared, c4 as EffectDetail, c5 as EffectKind, c6 as EffectReserve, c7 as EffectSeen, c8 as EffectSettle, c9 as EffectState, ca as EffectStatus, cb as Engaged, cc as EpisodeOut, cd as Erasure, ce as EventItem, cf as EventKind, cg as Evidence, ch as ExperimentReport, ci as ExperimentResult, cj as ExportPackage, ck as FAIL_CLOSED, cl as FactHistory, cm as FactOut, cn as Feature, co as Feedback, cp as FeedbackAction, cq as FeedbackParams, cr as FeedbackRequest, cs as Fetched, ct as FieldCoverage, cu as FieldState, cv as ForgetTarget, cw as GatewayOptions, cx as Guard, cy as GuardLike, cz as GuardOptions, cA as Guarded, cB as HandleType, cC as Handoff, cD as HandoffContext, cE as HandoffCreate, cF as HandoffDeclared, cG as HandoffDetail, cH as HandoffItem, cI as HandoffOutcome, cJ as HandoffPackage, cK as HandoffParams, cL as HeartbeatItem, cM as HistoryFilters, cN as HistoryItem, cO as HistoryItemKind, cP as IdentifyItem, cQ as IdentifyParams, cR as IdentityCalibration, cS as Include, cT as Inference, cU as InferenceCorrection, cV as InferencePage, cW as IngestStatus, cX as InterestState, cY as InterleavingReport, cZ as InterleavingRow, c_ as InterleavingTotal, c$ as InternalText, d0 as ItemError, d1 as ItemVersion, d2 as KeyIdentity, d3 as LeaseDeclared, d4 as LeaseDetail, d5 as LegalHold, d6 as LegalHoldCreate, d7 as LegalHoldRelease, d8 as Link, d9 as LinkMethod, da as LinkRequest, db as LiveTurn, dc as Lock, dd as MAX_BATCH_ITEMS, de as MAX_EVENT_TEXT, df as MAX_MEDIA_BYTES, dg as MediaUpload, dh as MediaUploadRequest, di as MediaUploadResponse, dj as MemorySeen, dk as NOT_FOUND, dl as Natures, dm as Negation, dn as NiadraAPIError, dp as NiadraAbortError, dq as NiadraAuthenticationError, dr as NiadraConfigError, ds as NiadraConnectionError, dt as NiadraContactTokenError, du as NiadraPermissionError, dv as NiadraRateLimitError, dw as NiadraReplayRefusedError, dx as NiadraTimeoutError, dy as NiadraValidationError, dz as Notification, dA as NotificationPage, dB as ObjectCoverage, dC as ObjectPush, dD as ObjectPushRequest, dE as ObjectPushResponse, dF as ObjectRead, dG as ObjectSnapshotResponse, dH as ObjectTimeline, dI as ObjectTimelineParams, dJ as Observation, dK as OpenItemOut, dL as OpenItemRequest, dM as OpenObject, dN as OpenParams, dO as OpenedItem, dP as Origin, dQ as OutcomeLink, dR as OutcomePage, dS as OutcomeRequest, dT as OutcomeState, dU as Owner, dV as OwnershipClaim, dW as OwnershipCount, dX as PERSONAL_DATA_TOOL_ERROR, dY as PackGuard, dZ as PackLayer, d_ as PackSection, d$ as PackSlot, e0 as PackSlotDerived, e1 as PackStamp, e2 as PowerRequest, e3 as PowerResult, e4 as Preference, e5 as PrefetchParams, e6 as PrefetchRequest, e7 as Presented, e8 as PresentedItem, e9 as PreviousValue, ea as Problem, eb as ProfileMatch, ec as ProfileMemory, ed as PromiseRef, ee as PromoteRequest, ef as PromoteResponse, eg as ProposalStatus, eh as Provenance, ei as QueueOptions, ej as ReadingResult, ek as ReconcileRequest, el as ReconcileResult, em as ReconciledLine, en as RecordedToolOptions, eo as Recurrence, ep as Refetch, eq as RefreshRelease, er as RefreshReleased, es as RefreshRequest, et as RefreshRequestPage, eu as Refusal, ev as ReleaseDetail, ew as RememberParams, ex as RememberResult, ey as Rendered, ez as ReplayAssertion, eA as ReplayBlocker, eB as ReplayCase, eC as ReplayCaseRequest, eD as ReplayHistoryEntry, eE as ReplayResult, eF as RequestOptions, eG as Resolved, eH as Resolver, eI as Result, eJ as ResultObjects, eK as ReviewRequest, eL as ReviewRequestCreate, eM as ReviewRequestPage, eN as ReviewResolution, eO as Scenario, eP as ScenarioCreate, eQ as ScenarioFromReport, eR as ScenarioPage, eS as ScenarioRun, eT as ScenarioRunCreate, eU as ScenarioRunSummary, eV as ScenarioUpdate, eW as ScenarioVerdict, eX as SdkProfile, eY as SearchRequest, eZ as SearchResponse, e_ as Seen, e$ as SeenTokens, f0 as ShadowRequest, f1 as ShadowRun, f2 as Shown, f3 as ShownValue, f4 as SlotChannelRank, f5 as SlotWhy, f6 as SoftConstraint, f7 as SourceCoverage, f8 as Speaker, f9 as SpeakerRef, fa as StateMode, fb as StateReadRequest, fc as StateReadResponse, fd as StateRef, fe as StateVerifyRequest, ff as StateVerifyResponse, fg as StateView, fh as StateViewRequest, fi as StateWrite, fj as Subject, fk as SubjectToken, fl as SubjectTokenRequest, fm as Suppression, fn as SuppressionAdded, fo as SuppressionAddedDetail, fp as SuppressionLifted, fq as SuppressionLiftedDetail, fr as SuppressionPage, fs as SuppressionSalt, ft as TOOL_DEFINITIONS, fu as TOOL_NAMES, fv as TargetModel, fw as Task, fx as TaskAction, fy as TaskEndedItem, fz as TaskEvent, fA as TaskLockDeclared, fB as TaskLockDetail, fC as TaskParams, fD as TimeWindow, fE as TimelineRequest, fF as TimelineResponse, fG as Timeouts, fH as TimerState, fI as Timestamp, fJ as Timings, fK as ToolBinding, fL as ToolCapabilities, fM as ToolDefinition, fN as ToolOptions, fO as TrackEvent, fP as TraitOut, fQ as TurnAgent, fR as TurnBlob, fS as TurnBuild, fT as TurnCall, fU as TurnCompilerPins, fV as TurnConstraints, fW as TurnCoordination, fX as TurnCost, fY as TurnEffect, fZ as TurnFlag, f_ as TurnFrame, f$ as TurnIndexEntry, g0 as TurnIndexPage, g1 as TurnKind, g2 as TurnObservation, g3 as TurnOptions, g4 as TurnOutput, g5 as TurnParams, g6 as TurnProvenance, g7 as TurnRead, g8 as TurnRecord, g9 as TurnRecorder, ga as TurnRecordingOptions, gb as TurnRecordingSummary, gc as TurnSearchRequest, gd as TurnSearchResponse, ge as TurnSummary, gf as TurnTokens, gg as TurnView, gh as TurnsRequest, gi as TurnsResponse, gj as TypeCoverage, gk as TypeFingerprintRequest, gl as TypeFingerprintResponse, gm as UnbackedValue, gn as UnmetDemand, go as UnmetDemandPage, gp as Unwatch, gq as UploadParams, gr as ValueEvidence, gs as ValueKind, gt as ValueState, gu as Verdict, gv as Verification, gw as VerificationResult, gx as VerifyCheck, gy as VerifyItem, gz as VerifyMethod, gA as VerifyParams, gB as View, gC as Visibility, gD as VoiceInfo, gE as VoiceOptions, gF as Watch, gG as WhereExpression, gH as WorkingState, gI as WriteResult, gJ as checkBacking, gK as consoleLogger, gL as currentCall, gM as currentTurn, gN as guardStream, gO as guardText, gP as recipientHash, gQ as renderLive, gR as renderSuffix, gS as silentLogger, gT as tool, gU as verifyContactToken, gV as violatesGuard } from './client-7mkrdRI0.cjs';
3
3
 
4
4
  /**
5
5
  * The constraints block rendered for one tool call (`spec/constraints.md`, sections 6 and 7): what the
@@ -1201,6 +1201,6 @@ declare function baseURLFromKey(key: ParsedApiKey): string;
1201
1201
  */
1202
1202
  declare function uuidv7(now?: number): string;
1203
1203
 
1204
- declare const VERSION = "0.10.3";
1204
+ declare const VERSION = "0.10.4";
1205
1205
 
1206
1206
  export { ClaimCategory, ClaimRecord, type Binding as ConstraintBinding, type BindingArg as ConstraintBindingArg, type Call$1 as ConstraintCall, type Rendering as ConstraintRendering, ConstraintsBlock, type Honored as ConstraintsHonored, ContextResponse, ContextResult, Counterfactual, type Element as CounterfactualElement, type CounterfactualOptions, type CounterfactualRun, type CounterfactualRunOptions, type ExposureTokenRefusal, Handle, HardConstraint, Logger, type Logic, ModelUsage, Niadra, NiadraDestinationError, NiadraError, NiadraExposureTokenError, ObjectRef, type ParsedApiKey, type ReplayAgent, type ReplayInput, Mode as ReplayMode, type RunOptions as ReplayOptions, type ReplayRun, Replayer, ResolverWorker, Resolvers, type SessionSource, SubjectKind, TurnPins, VERSION, type WrapSession, baseURLFromKey, canonicalDestination, canonicalJson, index as claims, exposureToken, expr, handles, honored as honoredConstraints, injectContext, derive$1 as introspect, jsonDigest, modelUsage, overlapAtK, parseApiKey, parseExposureToken, pinDifferences, providerOf, render as renderConstraints, satisfies as satisfiesConstraint, suppressionKey, toObjectRef, tokenCounts, useAsyncLocalStorage, uuidv7, wrap };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-rmWhZJOx.js';
2
- export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseBucket, bs as ContextUseDimension, bt as ContextUseEntry, bu as ContextUseParams, bv as ContextUseRate, bw as ContextUseReport, bx as Conversation, by as ConversationAction, bz as ConversationEndedItem, bA as ConversationEvent, bB as ConversationParams, bC as CoordinationBlock, bD as CoordinationOverview, bE as CoordinationReport, bF as CoordinationReportPage, bG as CorrectParams, bH as CorrectionAction, bI as CorrectionRequest, bJ as CounterfactualCase, bK as CounterfactualEngaged, bL as CounterfactualEngagement, bM as CounterfactualRunCreate, bN as CounterfactualRunPage, bO as CreateAgentNoteRequest, bP as DEFAULT_CACHE, bQ as DEFAULT_QUEUE, bR as DEFAULT_TIMEOUTS, bS as DEFAULT_VOICE, bT as DELETE, bU as DataIssue, bV as DataIssuePage, bW as Declarations, bX as DeclareRequest, bY as DeclareResult, bZ as DeliveryPath, b_ as DerivedState, b$ as Detect, c0 as DriftChanges, c1 as Effect, c2 as EffectCount, c3 as EffectDeclared, c4 as EffectDetail, c5 as EffectKind, c6 as EffectReserve, c7 as EffectSeen, c8 as EffectSettle, c9 as EffectState, ca as EffectStatus, cb as Engaged, cc as EpisodeOut, cd as Erasure, ce as EventItem, cf as EventKind, cg as Evidence, ch as ExperimentReport, ci as ExperimentResult, cj as ExportPackage, ck as FAIL_CLOSED, cl as FactHistory, cm as FactOut, cn as Feature, co as Feedback, cp as FeedbackAction, cq as FeedbackParams, cr as FeedbackRequest, cs as Fetched, ct as FieldCoverage, cu as FieldState, cv as ForgetTarget, cw as GatewayOptions, cx as Guard, cy as GuardLike, cz as GuardOptions, cA as Guarded, cB as HandleType, cC as Handoff, cD as HandoffContext, cE as HandoffCreate, cF as HandoffDeclared, cG as HandoffDetail, cH as HandoffItem, cI as HandoffOutcome, cJ as HandoffPackage, cK as HandoffParams, cL as HeartbeatItem, cM as HistoryFilters, cN as HistoryItem, cO as HistoryItemKind, cP as IdentifyItem, cQ as IdentifyParams, cR as IdentityCalibration, cS as Include, cT as Inference, cU as InferenceCorrection, cV as InferencePage, cW as IngestStatus, cX as InterestState, cY as InterleavingReport, cZ as InterleavingRow, c_ as InterleavingTotal, c$ as InternalText, d0 as ItemError, d1 as ItemVersion, d2 as KeyIdentity, d3 as LeaseDeclared, d4 as LeaseDetail, d5 as LegalHold, d6 as LegalHoldCreate, d7 as LegalHoldRelease, d8 as Link, d9 as LinkMethod, da as LinkRequest, db as LiveTurn, dc as Lock, dd as MAX_BATCH_ITEMS, de as MAX_EVENT_TEXT, df as MAX_MEDIA_BYTES, dg as MediaUpload, dh as MediaUploadRequest, di as MediaUploadResponse, dj as MemorySeen, dk as NOT_FOUND, dl as Natures, dm as Negation, dn as NiadraAPIError, dp as NiadraAbortError, dq as NiadraAuthenticationError, dr as NiadraConfigError, ds as NiadraConnectionError, dt as NiadraContactTokenError, du as NiadraPermissionError, dv as NiadraRateLimitError, dw as NiadraReplayRefusedError, dx as NiadraTimeoutError, dy as NiadraValidationError, dz as Notification, dA as NotificationPage, dB as ObjectCoverage, dC as ObjectPush, dD as ObjectPushRequest, dE as ObjectPushResponse, dF as ObjectRead, dG as ObjectSnapshotResponse, dH as ObjectTimeline, dI as ObjectTimelineParams, dJ as Observation, dK as OpenItemOut, dL as OpenItemRequest, dM as OpenObject, dN as OpenParams, dO as OpenedItem, dP as Origin, dQ as OutcomeLink, dR as OutcomePage, dS as OutcomeRequest, dT as OutcomeState, dU as Owner, dV as OwnershipClaim, dW as OwnershipCount, dX as PERSONAL_DATA_TOOL_ERROR, dY as PackGuard, dZ as PackLayer, d_ as PackSection, d$ as PackSlot, e0 as PackSlotDerived, e1 as PackStamp, e2 as PowerRequest, e3 as PowerResult, e4 as Preference, e5 as PrefetchParams, e6 as PrefetchRequest, e7 as Presented, e8 as PresentedItem, e9 as PreviousValue, ea as Problem, eb as ProfileMatch, ec as ProfileMemory, ed as PromiseRef, ee as PromoteRequest, ef as PromoteResponse, eg as ProposalStatus, eh as Provenance, ei as QueueOptions, ej as ReadingResult, ek as ReconcileRequest, el as ReconcileResult, em as ReconciledLine, en as RecordedToolOptions, eo as Recurrence, ep as Refetch, eq as RefreshRelease, er as RefreshReleased, es as RefreshRequest, et as RefreshRequestPage, eu as Refusal, ev as ReleaseDetail, ew as RememberParams, ex as RememberResult, ey as Rendered, ez as ReplayAssertion, eA as ReplayBlocker, eB as ReplayCase, eC as ReplayCaseRequest, eD as ReplayHistoryEntry, eE as ReplayResult, eF as RequestOptions, eG as Resolved, eH as Resolver, eI as Result, eJ as ResultObjects, eK as ReviewRequest, eL as ReviewRequestCreate, eM as ReviewRequestPage, eN as ReviewResolution, eO as Scenario, eP as ScenarioCreate, eQ as ScenarioFromReport, eR as ScenarioPage, eS as ScenarioRun, eT as ScenarioRunCreate, eU as ScenarioRunSummary, eV as ScenarioUpdate, eW as ScenarioVerdict, eX as SdkProfile, eY as SearchRequest, eZ as SearchResponse, e_ as Seen, e$ as SeenTokens, f0 as ShadowRequest, f1 as ShadowRun, f2 as Shown, f3 as ShownValue, f4 as SlotChannelRank, f5 as SlotWhy, f6 as SoftConstraint, f7 as SourceCoverage, f8 as Speaker, f9 as SpeakerRef, fa as StateMode, fb as StateReadRequest, fc as StateReadResponse, fd as StateRef, fe as StateVerifyRequest, ff as StateVerifyResponse, fg as StateView, fh as StateViewRequest, fi as StateWrite, fj as Subject, fk as SubjectToken, fl as SubjectTokenRequest, fm as Suppression, fn as SuppressionAdded, fo as SuppressionAddedDetail, fp as SuppressionLifted, fq as SuppressionLiftedDetail, fr as SuppressionPage, fs as SuppressionSalt, ft as TOOL_DEFINITIONS, fu as TOOL_NAMES, fv as TargetModel, fw as Task, fx as TaskAction, fy as TaskEndedItem, fz as TaskEvent, fA as TaskLockDeclared, fB as TaskLockDetail, fC as TaskParams, fD as TimeWindow, fE as TimelineRequest, fF as TimelineResponse, fG as Timeouts, fH as TimerState, fI as Timestamp, fJ as Timings, fK as ToolBinding, fL as ToolCapabilities, fM as ToolDefinition, fN as ToolOptions, fO as TrackEvent, fP as TraitOut, fQ as TurnAgent, fR as TurnBlob, fS as TurnBuild, fT as TurnCall, fU as TurnCompilerPins, fV as TurnConstraints, fW as TurnCoordination, fX as TurnCost, fY as TurnEffect, fZ as TurnFlag, f_ as TurnFrame, f$ as TurnIndexEntry, g0 as TurnIndexPage, g1 as TurnKind, g2 as TurnObservation, g3 as TurnOptions, g4 as TurnOutput, g5 as TurnParams, g6 as TurnProvenance, g7 as TurnRead, g8 as TurnRecord, g9 as TurnRecorder, ga as TurnRecordingOptions, gb as TurnRecordingSummary, gc as TurnSearchRequest, gd as TurnSearchResponse, ge as TurnSummary, gf as TurnTokens, gg as TurnView, gh as TurnsRequest, gi as TurnsResponse, gj as TypeCoverage, gk as TypeFingerprintRequest, gl as TypeFingerprintResponse, gm as UnbackedValue, gn as UnmetDemand, go as UnmetDemandPage, gp as Unwatch, gq as UploadParams, gr as ValueEvidence, gs as ValueKind, gt as ValueState, gu as Verdict, gv as Verification, gw as VerificationResult, gx as VerifyCheck, gy as VerifyItem, gz as VerifyMethod, gA as VerifyParams, gB as View, gC as Visibility, gD as VoiceInfo, gE as VoiceOptions, gF as Watch, gG as WhereExpression, gH as WorkingState, gI as WriteResult, gJ as checkBacking, gK as consoleLogger, gL as currentCall, gM as currentTurn, gN as guardStream, gO as guardText, gP as recipientHash, gQ as renderLive, gR as renderSuffix, gS as silentLogger, gT as tool, gU as verifyContactToken, gV as violatesGuard } from './client-rmWhZJOx.js';
1
+ import { C as ConstraintsBlock, H as HardConstraint, N as NiadraError, a as ClaimRecord, b as ClaimCategory, I as InternalText, s as shingles, c as Niadra, R as Resolvers, d as ContextResponse, M as Mode, T as TurnPins, e as ContextResult, f as ModelUsage, L as Logger, S as SubjectKind, g as Handle, O as ObjectRef } from './client-7mkrdRI0.js';
2
+ export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseBucket, bs as ContextUseDimension, bt as ContextUseEntry, bu as ContextUseParams, bv as ContextUseRate, bw as ContextUseReport, bx as Conversation, by as ConversationAction, bz as ConversationEndedItem, bA as ConversationEvent, bB as ConversationParams, bC as CoordinationBlock, bD as CoordinationOverview, bE as CoordinationReport, bF as CoordinationReportPage, bG as CorrectParams, bH as CorrectionAction, bI as CorrectionRequest, bJ as CounterfactualCase, bK as CounterfactualEngaged, bL as CounterfactualEngagement, bM as CounterfactualRunCreate, bN as CounterfactualRunPage, bO as CreateAgentNoteRequest, bP as DEFAULT_CACHE, bQ as DEFAULT_QUEUE, bR as DEFAULT_TIMEOUTS, bS as DEFAULT_VOICE, bT as DELETE, bU as DataIssue, bV as DataIssuePage, bW as Declarations, bX as DeclareRequest, bY as DeclareResult, bZ as DeliveryPath, b_ as DerivedState, b$ as Detect, c0 as DriftChanges, c1 as Effect, c2 as EffectCount, c3 as EffectDeclared, c4 as EffectDetail, c5 as EffectKind, c6 as EffectReserve, c7 as EffectSeen, c8 as EffectSettle, c9 as EffectState, ca as EffectStatus, cb as Engaged, cc as EpisodeOut, cd as Erasure, ce as EventItem, cf as EventKind, cg as Evidence, ch as ExperimentReport, ci as ExperimentResult, cj as ExportPackage, ck as FAIL_CLOSED, cl as FactHistory, cm as FactOut, cn as Feature, co as Feedback, cp as FeedbackAction, cq as FeedbackParams, cr as FeedbackRequest, cs as Fetched, ct as FieldCoverage, cu as FieldState, cv as ForgetTarget, cw as GatewayOptions, cx as Guard, cy as GuardLike, cz as GuardOptions, cA as Guarded, cB as HandleType, cC as Handoff, cD as HandoffContext, cE as HandoffCreate, cF as HandoffDeclared, cG as HandoffDetail, cH as HandoffItem, cI as HandoffOutcome, cJ as HandoffPackage, cK as HandoffParams, cL as HeartbeatItem, cM as HistoryFilters, cN as HistoryItem, cO as HistoryItemKind, cP as IdentifyItem, cQ as IdentifyParams, cR as IdentityCalibration, cS as Include, cT as Inference, cU as InferenceCorrection, cV as InferencePage, cW as IngestStatus, cX as InterestState, cY as InterleavingReport, cZ as InterleavingRow, c_ as InterleavingTotal, c$ as InternalText, d0 as ItemError, d1 as ItemVersion, d2 as KeyIdentity, d3 as LeaseDeclared, d4 as LeaseDetail, d5 as LegalHold, d6 as LegalHoldCreate, d7 as LegalHoldRelease, d8 as Link, d9 as LinkMethod, da as LinkRequest, db as LiveTurn, dc as Lock, dd as MAX_BATCH_ITEMS, de as MAX_EVENT_TEXT, df as MAX_MEDIA_BYTES, dg as MediaUpload, dh as MediaUploadRequest, di as MediaUploadResponse, dj as MemorySeen, dk as NOT_FOUND, dl as Natures, dm as Negation, dn as NiadraAPIError, dp as NiadraAbortError, dq as NiadraAuthenticationError, dr as NiadraConfigError, ds as NiadraConnectionError, dt as NiadraContactTokenError, du as NiadraPermissionError, dv as NiadraRateLimitError, dw as NiadraReplayRefusedError, dx as NiadraTimeoutError, dy as NiadraValidationError, dz as Notification, dA as NotificationPage, dB as ObjectCoverage, dC as ObjectPush, dD as ObjectPushRequest, dE as ObjectPushResponse, dF as ObjectRead, dG as ObjectSnapshotResponse, dH as ObjectTimeline, dI as ObjectTimelineParams, dJ as Observation, dK as OpenItemOut, dL as OpenItemRequest, dM as OpenObject, dN as OpenParams, dO as OpenedItem, dP as Origin, dQ as OutcomeLink, dR as OutcomePage, dS as OutcomeRequest, dT as OutcomeState, dU as Owner, dV as OwnershipClaim, dW as OwnershipCount, dX as PERSONAL_DATA_TOOL_ERROR, dY as PackGuard, dZ as PackLayer, d_ as PackSection, d$ as PackSlot, e0 as PackSlotDerived, e1 as PackStamp, e2 as PowerRequest, e3 as PowerResult, e4 as Preference, e5 as PrefetchParams, e6 as PrefetchRequest, e7 as Presented, e8 as PresentedItem, e9 as PreviousValue, ea as Problem, eb as ProfileMatch, ec as ProfileMemory, ed as PromiseRef, ee as PromoteRequest, ef as PromoteResponse, eg as ProposalStatus, eh as Provenance, ei as QueueOptions, ej as ReadingResult, ek as ReconcileRequest, el as ReconcileResult, em as ReconciledLine, en as RecordedToolOptions, eo as Recurrence, ep as Refetch, eq as RefreshRelease, er as RefreshReleased, es as RefreshRequest, et as RefreshRequestPage, eu as Refusal, ev as ReleaseDetail, ew as RememberParams, ex as RememberResult, ey as Rendered, ez as ReplayAssertion, eA as ReplayBlocker, eB as ReplayCase, eC as ReplayCaseRequest, eD as ReplayHistoryEntry, eE as ReplayResult, eF as RequestOptions, eG as Resolved, eH as Resolver, eI as Result, eJ as ResultObjects, eK as ReviewRequest, eL as ReviewRequestCreate, eM as ReviewRequestPage, eN as ReviewResolution, eO as Scenario, eP as ScenarioCreate, eQ as ScenarioFromReport, eR as ScenarioPage, eS as ScenarioRun, eT as ScenarioRunCreate, eU as ScenarioRunSummary, eV as ScenarioUpdate, eW as ScenarioVerdict, eX as SdkProfile, eY as SearchRequest, eZ as SearchResponse, e_ as Seen, e$ as SeenTokens, f0 as ShadowRequest, f1 as ShadowRun, f2 as Shown, f3 as ShownValue, f4 as SlotChannelRank, f5 as SlotWhy, f6 as SoftConstraint, f7 as SourceCoverage, f8 as Speaker, f9 as SpeakerRef, fa as StateMode, fb as StateReadRequest, fc as StateReadResponse, fd as StateRef, fe as StateVerifyRequest, ff as StateVerifyResponse, fg as StateView, fh as StateViewRequest, fi as StateWrite, fj as Subject, fk as SubjectToken, fl as SubjectTokenRequest, fm as Suppression, fn as SuppressionAdded, fo as SuppressionAddedDetail, fp as SuppressionLifted, fq as SuppressionLiftedDetail, fr as SuppressionPage, fs as SuppressionSalt, ft as TOOL_DEFINITIONS, fu as TOOL_NAMES, fv as TargetModel, fw as Task, fx as TaskAction, fy as TaskEndedItem, fz as TaskEvent, fA as TaskLockDeclared, fB as TaskLockDetail, fC as TaskParams, fD as TimeWindow, fE as TimelineRequest, fF as TimelineResponse, fG as Timeouts, fH as TimerState, fI as Timestamp, fJ as Timings, fK as ToolBinding, fL as ToolCapabilities, fM as ToolDefinition, fN as ToolOptions, fO as TrackEvent, fP as TraitOut, fQ as TurnAgent, fR as TurnBlob, fS as TurnBuild, fT as TurnCall, fU as TurnCompilerPins, fV as TurnConstraints, fW as TurnCoordination, fX as TurnCost, fY as TurnEffect, fZ as TurnFlag, f_ as TurnFrame, f$ as TurnIndexEntry, g0 as TurnIndexPage, g1 as TurnKind, g2 as TurnObservation, g3 as TurnOptions, g4 as TurnOutput, g5 as TurnParams, g6 as TurnProvenance, g7 as TurnRead, g8 as TurnRecord, g9 as TurnRecorder, ga as TurnRecordingOptions, gb as TurnRecordingSummary, gc as TurnSearchRequest, gd as TurnSearchResponse, ge as TurnSummary, gf as TurnTokens, gg as TurnView, gh as TurnsRequest, gi as TurnsResponse, gj as TypeCoverage, gk as TypeFingerprintRequest, gl as TypeFingerprintResponse, gm as UnbackedValue, gn as UnmetDemand, go as UnmetDemandPage, gp as Unwatch, gq as UploadParams, gr as ValueEvidence, gs as ValueKind, gt as ValueState, gu as Verdict, gv as Verification, gw as VerificationResult, gx as VerifyCheck, gy as VerifyItem, gz as VerifyMethod, gA as VerifyParams, gB as View, gC as Visibility, gD as VoiceInfo, gE as VoiceOptions, gF as Watch, gG as WhereExpression, gH as WorkingState, gI as WriteResult, gJ as checkBacking, gK as consoleLogger, gL as currentCall, gM as currentTurn, gN as guardStream, gO as guardText, gP as recipientHash, gQ as renderLive, gR as renderSuffix, gS as silentLogger, gT as tool, gU as verifyContactToken, gV as violatesGuard } from './client-7mkrdRI0.js';
3
3
 
4
4
  /**
5
5
  * The constraints block rendered for one tool call (`spec/constraints.md`, sections 6 and 7): what the
@@ -1201,6 +1201,6 @@ declare function baseURLFromKey(key: ParsedApiKey): string;
1201
1201
  */
1202
1202
  declare function uuidv7(now?: number): string;
1203
1203
 
1204
- declare const VERSION = "0.10.3";
1204
+ declare const VERSION = "0.10.4";
1205
1205
 
1206
1206
  export { ClaimCategory, ClaimRecord, type Binding as ConstraintBinding, type BindingArg as ConstraintBindingArg, type Call$1 as ConstraintCall, type Rendering as ConstraintRendering, ConstraintsBlock, type Honored as ConstraintsHonored, ContextResponse, ContextResult, Counterfactual, type Element as CounterfactualElement, type CounterfactualOptions, type CounterfactualRun, type CounterfactualRunOptions, type ExposureTokenRefusal, Handle, HardConstraint, Logger, type Logic, ModelUsage, Niadra, NiadraDestinationError, NiadraError, NiadraExposureTokenError, ObjectRef, type ParsedApiKey, type ReplayAgent, type ReplayInput, Mode as ReplayMode, type RunOptions as ReplayOptions, type ReplayRun, Replayer, ResolverWorker, Resolvers, type SessionSource, SubjectKind, TurnPins, VERSION, type WrapSession, baseURLFromKey, canonicalDestination, canonicalJson, index as claims, exposureToken, expr, handles, honored as honoredConstraints, injectContext, derive$1 as introspect, jsonDigest, modelUsage, overlapAtK, parseApiKey, parseExposureToken, pinDifferences, providerOf, render as renderConstraints, satisfies as satisfiesConstraint, suppressionKey, toObjectRef, tokenCounts, useAsyncLocalStorage, uuidv7, wrap };
package/dist/index.js CHANGED
@@ -523,7 +523,7 @@ function internalRecord(span, ref, act) {
523
523
  }
524
524
 
525
525
  // src/version.ts
526
- var VERSION = "0.10.3";
526
+ var VERSION = "0.10.4";
527
527
 
528
528
  // src/transport.ts
529
529
  var RETRYABLE_WRITE_STATUS = /* @__PURE__ */ new Set([408, 421, 429, 500, 502, 503, 504]);
@@ -541,6 +541,10 @@ var Transport = class {
541
541
  grantedAt;
542
542
  /** When the client last sent a request of its own (`RequestSpec.activity`), in epoch milliseconds. */
543
543
  lastActivityAt;
544
+ /** Likely: an answer came within `keepAliveMs`. When not, the next budgeted call gets `coldAllowanceMs`. */
545
+ connectionOpen() {
546
+ return this.answeredAt !== void 0 && Date.now() - this.answeredAt <= (this.config.keepAliveMs ?? 0);
547
+ }
544
548
  async request(spec) {
545
549
  if (spec.activity !== false) this.lastActivityAt = Date.now();
546
550
  const budgeted = this.withAllowance(spec);
@@ -8543,6 +8547,8 @@ var Niadra = class _Niadra {
8543
8547
  /** The read budgets the caller left at their defaults: they take the measured round trip on top. */
8544
8548
  defaultReads;
8545
8549
  voiceStarted = false;
8550
+ /** A probe is on its way: until it ends, default read budgets get `timeouts.connect` on top. */
8551
+ measuring = false;
8546
8552
  voiceWarned = false;
8547
8553
  strict;
8548
8554
  /** Where the client reports what it swallows in fail-open mode. */
@@ -9610,6 +9616,7 @@ var Niadra = class _Niadra {
9610
9616
  /** Measures the round trip to the region once per client, in the background. */
9611
9617
  probe(core) {
9612
9618
  if (!this.voice.claimProbe()) return;
9619
+ this.measuring = true;
9613
9620
  void (async () => {
9614
9621
  const samples = [];
9615
9622
  for (let i = 0; i < 2; i++) {
@@ -9623,12 +9630,14 @@ var Niadra = class _Niadra {
9623
9630
  });
9624
9631
  } catch (error) {
9625
9632
  this.logger.debug(`round trip probe failed: ${describe(toNiadraError(error))}`);
9633
+ this.measuring = false;
9626
9634
  return;
9627
9635
  }
9628
9636
  samples.push(Date.now() - started);
9629
9637
  }
9630
9638
  const rtt = Math.min(...samples);
9631
9639
  this.voice.rtt = rtt;
9640
+ this.measuring = false;
9632
9641
  this.logger.debug(`round trip to the region ${Math.round(rtt)} ms`);
9633
9642
  const explicit = ["context", "navigation"].filter((name) => !this.defaultReads.has(name));
9634
9643
  for (const warning of budgetWarnings(rtt, this.timeouts, explicit)) this.logger.warn(warning);
@@ -9641,8 +9650,11 @@ var Niadra = class _Niadra {
9641
9650
  * timed out by the network; one the caller set is a ceiling.
9642
9651
  */
9643
9652
  readBudget(name) {
9653
+ if (!this.defaultReads.has(name)) return this.timeouts[name];
9644
9654
  const rtt = this.voice.rtt;
9645
- return rtt !== null && this.defaultReads.has(name) ? this.timeouts[name] + rtt : this.timeouts[name];
9655
+ if (rtt !== null) return this.timeouts[name] + rtt;
9656
+ const open = this.core?.transport.connectionOpen() ?? false;
9657
+ return this.measuring && open ? this.timeouts[name] + this.timeouts.connect : this.timeouts[name];
9646
9658
  }
9647
9659
  /** The client reads in voice: the voice budgets' warnings matter from now on. */
9648
9660
  startVoice(core) {