@niadra/sdk 0.10.3 → 0.10.5
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/CHANGELOG.md +22 -0
- package/dist/ai-sdk.d.cts +3 -3
- package/dist/ai-sdk.d.ts +3 -3
- package/dist/anthropic.d.cts +4 -4
- package/dist/anthropic.d.ts +4 -4
- package/dist/bedrock.d.cts +4 -4
- package/dist/bedrock.d.ts +4 -4
- package/dist/cli.js +14 -2
- package/dist/cli.js.map +1 -1
- package/dist/{client-rmWhZJOx.d.cts → client-DHPuVvHW.d.cts} +44 -4
- package/dist/{client-rmWhZJOx.d.ts → client-DHPuVvHW.d.ts} +44 -4
- package/dist/cloudflare-agents.d.cts +3 -3
- package/dist/cloudflare-agents.d.ts +3 -3
- package/dist/elevenlabs.d.cts +5 -5
- package/dist/elevenlabs.d.ts +5 -5
- package/dist/genkit.d.cts +3 -3
- package/dist/genkit.d.ts +3 -3
- package/dist/google-adk.d.cts +3 -3
- package/dist/google-adk.d.ts +3 -3
- package/dist/google-genai.d.cts +4 -4
- package/dist/google-genai.d.ts +4 -4
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/{intercept-veMDudKV.d.ts → intercept-CJWSHZk9.d.ts} +1 -1
- package/dist/{intercept-C0XODsy9.d.cts → intercept-ClZ9sP5g.d.cts} +1 -1
- package/dist/langchain.d.cts +3 -3
- package/dist/langchain.d.ts +3 -3
- package/dist/livekit.d.cts +3 -3
- package/dist/livekit.d.ts +3 -3
- package/dist/llamaindex.d.cts +3 -3
- package/dist/llamaindex.d.ts +3 -3
- package/dist/mastra.d.cts +3 -3
- package/dist/mastra.d.ts +3 -3
- package/dist/openai-agents.d.cts +3 -3
- package/dist/openai-agents.d.ts +3 -3
- package/dist/retell.d.cts +5 -5
- package/dist/retell.d.ts +5 -5
- package/dist/{shared-zaTBum17.d.cts → shared-Cf_vc6TD.d.cts} +1 -1
- package/dist/{shared-Cs7h5C4Y.d.ts → shared-XhiKa4WA.d.ts} +1 -1
- package/dist/strands.d.cts +3 -3
- package/dist/strands.d.ts +3 -3
- package/dist/twilio.d.cts +4 -4
- package/dist/twilio.d.ts +4 -4
- package/dist/vapi.d.cts +5 -5
- package/dist/vapi.d.ts +5 -5
- package/dist/voltagent.d.cts +3 -3
- package/dist/voltagent.d.ts +3 -3
- package/dist/{webhook-CX7nvQig.d.cts → webhook-BI4lYE61.d.cts} +1 -1
- package/dist/{webhook-2V5QgnKI.d.ts → webhook-CYcSCdKl.d.ts} +1 -1
- package/dist/whatsapp.d.cts +2 -2
- package/dist/whatsapp.d.ts +2 -2
- 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-
|
|
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-DHPuVvHW.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 ClosedBy, aS as Closes, aT as Commitment, aU as CommitmentDecided, aV as CommitmentDecidedDetail, aW as CommitmentMade, aX as CommitmentMadeDetail, aY as CommitmentRef, aZ as CommitmentWithdrawn, a_ as CommitmentWithdrawnDetail, a$ as CompanyRule, b0 as Conflict, b1 as ConflictCounts, b2 as ConstraintOrigin, b3 as ConstraintsRequest, b4 as ContactBudget, b5 as ContactBudgetUse, b6 as ContactClaims, b7 as ContactCount, b8 as ContactGateway, b9 as ContactKey, ba as ContactKeys, bb as ContactMade, bc as ContactMadeDetail, bd as ContactTokenParams, be as ContactTokenRefusal, bf as Content, bg as ContentMarker, bh as ContentMode, bi as ContentRelease, bj as ContentReleaseResult, bk as ContentResolver, bl as ContextFormat, bm as ContextOptions, bn as ContextPack, bo as ContextParams, bp as ContextRequest, bq as ContextSource, br as ContextStamp, bs as ContextUseBucket, bt as ContextUseDimension, bu as ContextUseEntry, bv as ContextUseParams, bw as ContextUseRate, bx as ContextUseReport, by as Conversation, bz as ConversationAction, bA as ConversationEndedItem, bB as ConversationEvent, bC as ConversationParams, bD as CoordinationBlock, bE as CoordinationOverview, bF as CoordinationReport, bG as CoordinationReportPage, bH as CorrectParams, bI as CorrectionAction, bJ as CorrectionRequest, bK as CounterfactualCase, bL as CounterfactualEngaged, bM as CounterfactualEngagement, bN as CounterfactualRunCreate, bO as CounterfactualRunPage, bP as CreateAgentNoteRequest, bQ as DEFAULT_CACHE, bR as DEFAULT_QUEUE, bS as DEFAULT_TIMEOUTS, bT as DEFAULT_VOICE, bU as DELETE, bV as DataIssue, bW as DataIssuePage, bX as Declarations, bY as DeclareRequest, bZ as DeclareResult, b_ as DeliveryPath, b$ as DerivedState, c0 as Detect, c1 as DriftChanges, c2 as Effect, c3 as EffectCount, c4 as EffectDeclared, c5 as EffectDetail, c6 as EffectKind, c7 as EffectReserve, c8 as EffectSeen, c9 as EffectSettle, ca as EffectState, cb as EffectStatus, cc as Engaged, cd as EpisodeOut, ce as Erasure, cf as EventItem, cg as EventKind, ch as Evidence, ci as ExperimentReport, cj as ExperimentResult, ck as ExportPackage, cl as FAIL_CLOSED, cm as FactHistory, cn as FactOut, co as Feature, cp as Feedback, cq as FeedbackAction, cr as FeedbackParams, cs as FeedbackRequest, ct as Fetched, cu as FieldCoverage, cv as FieldState, cw as ForgetTarget, cx as GatewayOptions, cy as Guard, cz as GuardLike, cA as GuardOptions, cB as Guarded, cC as HandleType, cD as Handoff, cE as HandoffContext, cF as HandoffCreate, cG as HandoffDeclared, cH as HandoffDetail, cI as HandoffItem, cJ as HandoffOutcome, cK as HandoffPackage, cL as HandoffParams, cM as HeartbeatItem, cN as HistoryFilters, cO as HistoryItem, cP as HistoryItemKind, cQ as IdentifyItem, cR as IdentifyParams, cS as IdentityCalibration, cT as Include, cU as Inference, cV as InferenceCorrection, cW as InferencePage, cX as IngestStatus, cY as InterestState, cZ as InterleavingReport, c_ as InterleavingRow, c$ as InterleavingTotal, d0 as InternalText, d1 as ItemError, d2 as ItemStatus, d3 as ItemVersion, d4 as KeyIdentity, d5 as LeaseDeclared, d6 as LeaseDetail, d7 as LegalHold, d8 as LegalHoldCreate, d9 as LegalHoldRelease, da as Link, db as LinkMethod, dc as LinkRequest, dd as LiveTurn, de as Lock, df as MAX_BATCH_ITEMS, dg as MAX_EVENT_TEXT, dh as MAX_MEDIA_BYTES, di as MediaUpload, dj as MediaUploadRequest, dk as MediaUploadResponse, dl as MemorySeen, dm as NOT_FOUND, dn as Natures, dp as Negation, dq as NiadraAPIError, dr as NiadraAbortError, ds as NiadraAuthenticationError, dt as NiadraConfigError, du as NiadraConnectionError, dv as NiadraContactTokenError, dw as NiadraPermissionError, dx as NiadraRateLimitError, dy as NiadraReplayRefusedError, dz as NiadraTimeoutError, dA as NiadraValidationError, dB as Notification, dC as NotificationPage, dD as ObjectCoverage, dE as ObjectPush, dF as ObjectPushRequest, dG as ObjectPushResponse, dH as ObjectRead, dI as ObjectSnapshotResponse, dJ as ObjectTimeline, dK as ObjectTimelineParams, dL as Observation, dM as OpenItemOut, dN as OpenItemRequest, dO as OpenObject, dP as OpenParams, dQ as OpenedItem, dR as Origin, dS as OutcomeLink, dT as OutcomePage, dU as OutcomeRequest, dV as OutcomeState, dW as Owner, dX as OwnershipClaim, dY as OwnershipCount, dZ as PERSONAL_DATA_TOOL_ERROR, d_ as PackGuard, d$ as PackLayer, e0 as PackSection, e1 as PackSlot, e2 as PackSlotDerived, e3 as PackStamp, e4 as PowerRequest, e5 as PowerResult, e6 as Preference, e7 as PrefetchParams, e8 as PrefetchRequest, e9 as Presented, ea as PresentedItem, eb as PreviousValue, ec as Problem, ed as ProfileMatch, ee as ProfileMemory, ef as PromiseRef, eg as PromoteRequest, eh as PromoteResponse, ei as ProposalStatus, ej as Provenance, ek as QueueOptions, el as ReadingResult, em as ReconcileRequest, en as ReconcileResult, eo as ReconciledLine, ep as RecordedToolOptions, eq as Recurrence, er as Refetch, es as RefreshRelease, et as RefreshReleased, eu as RefreshRequest, ev as RefreshRequestPage, ew as Refusal, ex as ReleaseDetail, ey as RememberParams, ez as RememberResult, eA as Rendered, eB as ReplayAssertion, eC as ReplayBlocker, eD as ReplayCase, eE as ReplayCaseRequest, eF as ReplayHistoryEntry, eG as ReplayResult, eH as RequestOptions, eI as Resolved, eJ as Resolver, eK as Result, eL as ResultObjects, eM as ReviewRequest, eN as ReviewRequestCreate, eO as ReviewRequestPage, eP as ReviewResolution, eQ as Scenario, eR as ScenarioCreate, eS as ScenarioFromReport, eT as ScenarioPage, eU as ScenarioRun, eV as ScenarioRunCreate, eW as ScenarioRunSummary, eX as ScenarioUpdate, eY as ScenarioVerdict, eZ as SdkProfile, e_ as SearchRequest, e$ as SearchResponse, f0 as Seen, f1 as SeenTokens, f2 as ShadowRequest, f3 as ShadowRun, f4 as Shown, f5 as ShownValue, f6 as SlotChannelRank, f7 as SlotWhy, f8 as SoftConstraint, f9 as SourceCoverage, fa as Speaker, fb as SpeakerRef, fc as StateMode, fd as StateReadRequest, fe as StateReadResponse, ff as StateRef, fg as StateVerifyRequest, fh as StateVerifyResponse, fi as StateView, fj as StateViewRequest, fk as StateWrite, fl as Subject, fm as SubjectToken, fn as SubjectTokenRequest, fo as Suppression, fp as SuppressionAdded, fq as SuppressionAddedDetail, fr as SuppressionLifted, fs as SuppressionLiftedDetail, ft as SuppressionPage, fu as SuppressionSalt, fv as TOOL_DEFINITIONS, fw as TOOL_NAMES, fx as TargetModel, fy as Task, fz as TaskAction, fA as TaskEndedItem, fB as TaskEvent, fC as TaskLockDeclared, fD as TaskLockDetail, fE as TaskParams, fF as TimeWindow, fG as TimelineRequest, fH as TimelineResponse, fI as Timeouts, fJ as TimerState, fK as Timestamp, fL as Timings, fM as ToolBinding, fN as ToolCapabilities, fO as ToolDefinition, fP as ToolOptions, fQ as TrackEvent, fR as TraitOut, fS as TurnAgent, fT as TurnBlob, fU as TurnBuild, fV as TurnCall, fW as TurnCompilerPins, fX as TurnConstraints, fY as TurnCoordination, fZ as TurnCost, f_ as TurnEffect, f$ as TurnFlag, g0 as TurnFrame, g1 as TurnIndexEntry, g2 as TurnIndexPage, g3 as TurnKind, g4 as TurnObservation, g5 as TurnOptions, g6 as TurnOutput, g7 as TurnParams, g8 as TurnProvenance, g9 as TurnRead, ga as TurnRecord, gb as TurnRecorder, gc as TurnRecordingOptions, gd as TurnRecordingSummary, ge as TurnSearchRequest, gf as TurnSearchResponse, gg as TurnSummary, gh as TurnTokens, gi as TurnView, gj as TurnsRequest, gk as TurnsResponse, gl as TypeCoverage, gm as TypeFingerprintRequest, gn as TypeFingerprintResponse, go as UnbackedValue, gp as UnmetDemand, gq as UnmetDemandPage, gr as Unwatch, gs as UploadParams, gt as ValueEvidence, gu as ValueKind, gv as ValueState, gw as Verdict, gx as Verification, gy as VerificationResult, gz as VerifyCheck, gA as VerifyItem, gB as VerifyMethod, gC as VerifyParams, gD as View, gE as Visibility, gF as VoiceInfo, gG as VoiceOptions, gH as Watch, gI as WhereExpression, gJ as WorkingState, gK as WriteResult, gL as checkBacking, gM as consoleLogger, gN as currentCall, gO as currentTurn, gP as guardStream, gQ as guardText, gR as recipientHash, gS as renderLive, gT as renderSuffix, gU as silentLogger, gV as tool, gW as verifyContactToken, gX as violatesGuard } from './client-DHPuVvHW.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.
|
|
1204
|
+
declare const VERSION = "0.10.5";
|
|
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-
|
|
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-DHPuVvHW.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 ClosedBy, aS as Closes, aT as Commitment, aU as CommitmentDecided, aV as CommitmentDecidedDetail, aW as CommitmentMade, aX as CommitmentMadeDetail, aY as CommitmentRef, aZ as CommitmentWithdrawn, a_ as CommitmentWithdrawnDetail, a$ as CompanyRule, b0 as Conflict, b1 as ConflictCounts, b2 as ConstraintOrigin, b3 as ConstraintsRequest, b4 as ContactBudget, b5 as ContactBudgetUse, b6 as ContactClaims, b7 as ContactCount, b8 as ContactGateway, b9 as ContactKey, ba as ContactKeys, bb as ContactMade, bc as ContactMadeDetail, bd as ContactTokenParams, be as ContactTokenRefusal, bf as Content, bg as ContentMarker, bh as ContentMode, bi as ContentRelease, bj as ContentReleaseResult, bk as ContentResolver, bl as ContextFormat, bm as ContextOptions, bn as ContextPack, bo as ContextParams, bp as ContextRequest, bq as ContextSource, br as ContextStamp, bs as ContextUseBucket, bt as ContextUseDimension, bu as ContextUseEntry, bv as ContextUseParams, bw as ContextUseRate, bx as ContextUseReport, by as Conversation, bz as ConversationAction, bA as ConversationEndedItem, bB as ConversationEvent, bC as ConversationParams, bD as CoordinationBlock, bE as CoordinationOverview, bF as CoordinationReport, bG as CoordinationReportPage, bH as CorrectParams, bI as CorrectionAction, bJ as CorrectionRequest, bK as CounterfactualCase, bL as CounterfactualEngaged, bM as CounterfactualEngagement, bN as CounterfactualRunCreate, bO as CounterfactualRunPage, bP as CreateAgentNoteRequest, bQ as DEFAULT_CACHE, bR as DEFAULT_QUEUE, bS as DEFAULT_TIMEOUTS, bT as DEFAULT_VOICE, bU as DELETE, bV as DataIssue, bW as DataIssuePage, bX as Declarations, bY as DeclareRequest, bZ as DeclareResult, b_ as DeliveryPath, b$ as DerivedState, c0 as Detect, c1 as DriftChanges, c2 as Effect, c3 as EffectCount, c4 as EffectDeclared, c5 as EffectDetail, c6 as EffectKind, c7 as EffectReserve, c8 as EffectSeen, c9 as EffectSettle, ca as EffectState, cb as EffectStatus, cc as Engaged, cd as EpisodeOut, ce as Erasure, cf as EventItem, cg as EventKind, ch as Evidence, ci as ExperimentReport, cj as ExperimentResult, ck as ExportPackage, cl as FAIL_CLOSED, cm as FactHistory, cn as FactOut, co as Feature, cp as Feedback, cq as FeedbackAction, cr as FeedbackParams, cs as FeedbackRequest, ct as Fetched, cu as FieldCoverage, cv as FieldState, cw as ForgetTarget, cx as GatewayOptions, cy as Guard, cz as GuardLike, cA as GuardOptions, cB as Guarded, cC as HandleType, cD as Handoff, cE as HandoffContext, cF as HandoffCreate, cG as HandoffDeclared, cH as HandoffDetail, cI as HandoffItem, cJ as HandoffOutcome, cK as HandoffPackage, cL as HandoffParams, cM as HeartbeatItem, cN as HistoryFilters, cO as HistoryItem, cP as HistoryItemKind, cQ as IdentifyItem, cR as IdentifyParams, cS as IdentityCalibration, cT as Include, cU as Inference, cV as InferenceCorrection, cW as InferencePage, cX as IngestStatus, cY as InterestState, cZ as InterleavingReport, c_ as InterleavingRow, c$ as InterleavingTotal, d0 as InternalText, d1 as ItemError, d2 as ItemStatus, d3 as ItemVersion, d4 as KeyIdentity, d5 as LeaseDeclared, d6 as LeaseDetail, d7 as LegalHold, d8 as LegalHoldCreate, d9 as LegalHoldRelease, da as Link, db as LinkMethod, dc as LinkRequest, dd as LiveTurn, de as Lock, df as MAX_BATCH_ITEMS, dg as MAX_EVENT_TEXT, dh as MAX_MEDIA_BYTES, di as MediaUpload, dj as MediaUploadRequest, dk as MediaUploadResponse, dl as MemorySeen, dm as NOT_FOUND, dn as Natures, dp as Negation, dq as NiadraAPIError, dr as NiadraAbortError, ds as NiadraAuthenticationError, dt as NiadraConfigError, du as NiadraConnectionError, dv as NiadraContactTokenError, dw as NiadraPermissionError, dx as NiadraRateLimitError, dy as NiadraReplayRefusedError, dz as NiadraTimeoutError, dA as NiadraValidationError, dB as Notification, dC as NotificationPage, dD as ObjectCoverage, dE as ObjectPush, dF as ObjectPushRequest, dG as ObjectPushResponse, dH as ObjectRead, dI as ObjectSnapshotResponse, dJ as ObjectTimeline, dK as ObjectTimelineParams, dL as Observation, dM as OpenItemOut, dN as OpenItemRequest, dO as OpenObject, dP as OpenParams, dQ as OpenedItem, dR as Origin, dS as OutcomeLink, dT as OutcomePage, dU as OutcomeRequest, dV as OutcomeState, dW as Owner, dX as OwnershipClaim, dY as OwnershipCount, dZ as PERSONAL_DATA_TOOL_ERROR, d_ as PackGuard, d$ as PackLayer, e0 as PackSection, e1 as PackSlot, e2 as PackSlotDerived, e3 as PackStamp, e4 as PowerRequest, e5 as PowerResult, e6 as Preference, e7 as PrefetchParams, e8 as PrefetchRequest, e9 as Presented, ea as PresentedItem, eb as PreviousValue, ec as Problem, ed as ProfileMatch, ee as ProfileMemory, ef as PromiseRef, eg as PromoteRequest, eh as PromoteResponse, ei as ProposalStatus, ej as Provenance, ek as QueueOptions, el as ReadingResult, em as ReconcileRequest, en as ReconcileResult, eo as ReconciledLine, ep as RecordedToolOptions, eq as Recurrence, er as Refetch, es as RefreshRelease, et as RefreshReleased, eu as RefreshRequest, ev as RefreshRequestPage, ew as Refusal, ex as ReleaseDetail, ey as RememberParams, ez as RememberResult, eA as Rendered, eB as ReplayAssertion, eC as ReplayBlocker, eD as ReplayCase, eE as ReplayCaseRequest, eF as ReplayHistoryEntry, eG as ReplayResult, eH as RequestOptions, eI as Resolved, eJ as Resolver, eK as Result, eL as ResultObjects, eM as ReviewRequest, eN as ReviewRequestCreate, eO as ReviewRequestPage, eP as ReviewResolution, eQ as Scenario, eR as ScenarioCreate, eS as ScenarioFromReport, eT as ScenarioPage, eU as ScenarioRun, eV as ScenarioRunCreate, eW as ScenarioRunSummary, eX as ScenarioUpdate, eY as ScenarioVerdict, eZ as SdkProfile, e_ as SearchRequest, e$ as SearchResponse, f0 as Seen, f1 as SeenTokens, f2 as ShadowRequest, f3 as ShadowRun, f4 as Shown, f5 as ShownValue, f6 as SlotChannelRank, f7 as SlotWhy, f8 as SoftConstraint, f9 as SourceCoverage, fa as Speaker, fb as SpeakerRef, fc as StateMode, fd as StateReadRequest, fe as StateReadResponse, ff as StateRef, fg as StateVerifyRequest, fh as StateVerifyResponse, fi as StateView, fj as StateViewRequest, fk as StateWrite, fl as Subject, fm as SubjectToken, fn as SubjectTokenRequest, fo as Suppression, fp as SuppressionAdded, fq as SuppressionAddedDetail, fr as SuppressionLifted, fs as SuppressionLiftedDetail, ft as SuppressionPage, fu as SuppressionSalt, fv as TOOL_DEFINITIONS, fw as TOOL_NAMES, fx as TargetModel, fy as Task, fz as TaskAction, fA as TaskEndedItem, fB as TaskEvent, fC as TaskLockDeclared, fD as TaskLockDetail, fE as TaskParams, fF as TimeWindow, fG as TimelineRequest, fH as TimelineResponse, fI as Timeouts, fJ as TimerState, fK as Timestamp, fL as Timings, fM as ToolBinding, fN as ToolCapabilities, fO as ToolDefinition, fP as ToolOptions, fQ as TrackEvent, fR as TraitOut, fS as TurnAgent, fT as TurnBlob, fU as TurnBuild, fV as TurnCall, fW as TurnCompilerPins, fX as TurnConstraints, fY as TurnCoordination, fZ as TurnCost, f_ as TurnEffect, f$ as TurnFlag, g0 as TurnFrame, g1 as TurnIndexEntry, g2 as TurnIndexPage, g3 as TurnKind, g4 as TurnObservation, g5 as TurnOptions, g6 as TurnOutput, g7 as TurnParams, g8 as TurnProvenance, g9 as TurnRead, ga as TurnRecord, gb as TurnRecorder, gc as TurnRecordingOptions, gd as TurnRecordingSummary, ge as TurnSearchRequest, gf as TurnSearchResponse, gg as TurnSummary, gh as TurnTokens, gi as TurnView, gj as TurnsRequest, gk as TurnsResponse, gl as TypeCoverage, gm as TypeFingerprintRequest, gn as TypeFingerprintResponse, go as UnbackedValue, gp as UnmetDemand, gq as UnmetDemandPage, gr as Unwatch, gs as UploadParams, gt as ValueEvidence, gu as ValueKind, gv as ValueState, gw as Verdict, gx as Verification, gy as VerificationResult, gz as VerifyCheck, gA as VerifyItem, gB as VerifyMethod, gC as VerifyParams, gD as View, gE as Visibility, gF as VoiceInfo, gG as VoiceOptions, gH as Watch, gI as WhereExpression, gJ as WorkingState, gK as WriteResult, gL as checkBacking, gM as consoleLogger, gN as currentCall, gO as currentTurn, gP as guardStream, gQ as guardText, gR as recipientHash, gS as renderLive, gT as renderSuffix, gU as silentLogger, gV as tool, gW as verifyContactToken, gX as violatesGuard } from './client-DHPuVvHW.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.
|
|
1204
|
+
declare const VERSION = "0.10.5";
|
|
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.
|
|
526
|
+
var VERSION = "0.10.5";
|
|
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
|
-
|
|
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) {
|