@niadra/sdk 0.10.5 → 0.11.1
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 +29 -0
- package/README.md +1 -1
- package/dist/ai-sdk.cjs +1 -1
- package/dist/ai-sdk.cjs.map +1 -1
- package/dist/ai-sdk.d.cts +3 -3
- package/dist/ai-sdk.d.ts +3 -3
- package/dist/ai-sdk.js +1 -1
- package/dist/ai-sdk.js.map +1 -1
- 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 +39 -17
- package/dist/cli.js.map +1 -1
- package/dist/{client-DHPuVvHW.d.cts → client-CdkRzWz6.d.cts} +111 -21
- package/dist/{client-DHPuVvHW.d.ts → client-CdkRzWz6.d.ts} +111 -21
- package/dist/cloudflare-agents.d.cts +3 -3
- package/dist/cloudflare-agents.d.ts +3 -3
- package/dist/elevenlabs.cjs +3 -3
- package/dist/elevenlabs.cjs.map +1 -1
- package/dist/elevenlabs.d.cts +5 -5
- package/dist/elevenlabs.d.ts +5 -5
- package/dist/elevenlabs.js +3 -3
- package/dist/elevenlabs.js.map +1 -1
- package/dist/genkit.d.cts +3 -3
- package/dist/genkit.d.ts +3 -3
- package/dist/google-adk.cjs +3 -3
- package/dist/google-adk.cjs.map +1 -1
- package/dist/google-adk.d.cts +3 -3
- package/dist/google-adk.d.ts +3 -3
- package/dist/google-adk.js +3 -3
- package/dist/google-adk.js.map +1 -1
- package/dist/google-genai.d.cts +4 -4
- package/dist/google-genai.d.ts +4 -4
- package/dist/index.cjs +39 -17
- 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 +39 -17
- package/dist/index.js.map +1 -1
- package/dist/{intercept-ClZ9sP5g.d.cts → intercept-C_9uxSRY.d.cts} +1 -1
- package/dist/{intercept-CJWSHZk9.d.ts → intercept-tVhq4GNK.d.ts} +1 -1
- package/dist/langchain.cjs +1 -1
- package/dist/langchain.cjs.map +1 -1
- package/dist/langchain.d.cts +3 -3
- package/dist/langchain.d.ts +3 -3
- package/dist/langchain.js +1 -1
- package/dist/langchain.js.map +1 -1
- 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.cjs +1 -1
- package/dist/mastra.cjs.map +1 -1
- package/dist/mastra.d.cts +3 -3
- package/dist/mastra.d.ts +3 -3
- package/dist/mastra.js +1 -1
- package/dist/mastra.js.map +1 -1
- package/dist/openai-agents.d.cts +3 -3
- package/dist/openai-agents.d.ts +3 -3
- package/dist/retell.cjs +3 -3
- package/dist/retell.cjs.map +1 -1
- package/dist/retell.d.cts +5 -5
- package/dist/retell.d.ts +5 -5
- package/dist/retell.js +3 -3
- package/dist/retell.js.map +1 -1
- package/dist/{shared-Cf_vc6TD.d.cts → shared-DH_QGnci.d.cts} +1 -1
- package/dist/{shared-XhiKa4WA.d.ts → shared-SqZSrkls.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.cjs +3 -3
- package/dist/vapi.cjs.map +1 -1
- package/dist/vapi.d.cts +5 -5
- package/dist/vapi.d.ts +5 -5
- package/dist/vapi.js +3 -3
- package/dist/vapi.js.map +1 -1
- package/dist/voltagent.d.cts +3 -3
- package/dist/voltagent.d.ts +3 -3
- package/dist/{webhook-CYcSCdKl.d.ts → webhook-BNvRGq0g.d.ts} +1 -1
- package/dist/{webhook-BI4lYE61.d.cts → webhook-DIHeQ7DO.d.cts} +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 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';
|
|
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-CdkRzWz6.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 ObjectInstruction, dF as ObjectMemoryOut, dG as ObjectPush, dH as ObjectPushRequest, dI as ObjectPushResponse, dJ as ObjectRead, dK as ObjectSnapshotResponse, dL as ObjectTimeline, dM as ObjectTimelineParams, dN as Observation, dO as OpenItemOut, dP as OpenItemRequest, dQ as OpenObject, dR as OpenParams, dS as OpenedItem, dT as Origin, dU as OutcomeLink, dV as OutcomePage, dW as OutcomeRequest, dX as OutcomeState, dY as Owner, dZ as OwnershipClaim, d_ as OwnershipCount, d$ as PERSONAL_DATA_TOOL_ERROR, e0 as PackGuard, e1 as PackLayer, e2 as PackSection, e3 as PackSlot, e4 as PackSlotDerived, e5 as PackStamp, e6 as PowerRequest, e7 as PowerResult, e8 as Preference, e9 as PrefetchParams, ea as PrefetchRequest, eb as Presented, ec as PresentedItem, ed as PreviousValue, ee as Problem, ef as ProfileMatch, eg as ProfileMemory, eh as PromiseRef, ei as PromoteRequest, ej as PromoteResponse, ek as ProposalStatus, el as Provenance, em as QueueOptions, en as ReadingResult, eo as ReconcileRequest, ep as ReconcileResult, eq as ReconciledLine, er as RecordedToolOptions, es as Recurrence, et as Refetch, eu as RefreshRelease, ev as RefreshReleased, ew as RefreshRequest, ex as RefreshRequestPage, ey as Refusal, ez as ReleaseDetail, eA as RememberParams, eB as RememberResult, eC as Rendered, eD as ReplayAssertion, eE as ReplayBlocker, eF as ReplayCase, eG as ReplayCaseRequest, eH as ReplayHistoryEntry, eI as ReplayResult, eJ as RequestOptions, eK as Resolved, eL as Resolver, eM as Result, eN as ResultObjects, eO as ReviewRequest, eP as ReviewRequestCreate, eQ as ReviewRequestPage, eR as ReviewResolution, eS as SaidAbout, eT as Scenario, eU as ScenarioCreate, eV as ScenarioFromReport, eW as ScenarioPage, eX as ScenarioRun, eY as ScenarioRunCreate, eZ as ScenarioRunSummary, e_ as ScenarioUpdate, e$ as ScenarioVerdict, f0 as SdkProfile, f1 as SearchRequest, f2 as SearchResponse, f3 as Seen, f4 as SeenTokens, f5 as ShadowRequest, f6 as ShadowRun, f7 as Shown, f8 as ShownValue, f9 as SlotChannelRank, fa as SlotWhy, fb as SoftConstraint, fc as SourceCoverage, fd as Speaker, fe as SpeakerRef, ff as StateMode, fg as StateReadRequest, fh as StateReadResponse, fi as StateRef, fj as StateVerifyRequest, fk as StateVerifyResponse, fl as StateView, fm as StateViewRequest, fn as StateWrite, fo as Subject, fp as SubjectToken, fq as SubjectTokenRequest, fr as Suppression, fs as SuppressionAdded, ft as SuppressionAddedDetail, fu as SuppressionLifted, fv as SuppressionLiftedDetail, fw as SuppressionPage, fx as SuppressionSalt, fy as TOOL_DEFINITIONS, fz as TOOL_NAMES, fA as TargetModel, fB as Task, fC as TaskAction, fD as TaskEndedItem, fE as TaskEvent, fF as TaskLockDeclared, fG as TaskLockDetail, fH as TaskParams, fI as TimeWindow, fJ as TimelineRequest, fK as TimelineResponse, fL as Timeouts, fM as TimerState, fN as Timestamp, fO as Timings, fP as ToolBinding, fQ as ToolCapabilities, fR as ToolDefinition, fS as ToolOptions, fT as TrackEvent, fU as TraitOut, fV as TurnAgent, fW as TurnBlob, fX as TurnBuild, fY as TurnCall, fZ as TurnCompilerPins, f_ as TurnConstraints, f$ as TurnCoordination, g0 as TurnCost, g1 as TurnEffect, g2 as TurnFlag, g3 as TurnFrame, g4 as TurnIndexEntry, g5 as TurnIndexPage, g6 as TurnKind, g7 as TurnObservation, g8 as TurnOptions, g9 as TurnOutput, ga as TurnParams, gb as TurnProvenance, gc as TurnRead, gd as TurnRecord, ge as TurnRecorder, gf as TurnRecordingOptions, gg as TurnRecordingSummary, gh as TurnSearchRequest, gi as TurnSearchResponse, gj as TurnSummary, gk as TurnTokens, gl as TurnView, gm as TurnsRequest, gn as TurnsResponse, go as TypeCoverage, gp as TypeFingerprintRequest, gq as TypeFingerprintResponse, gr as UnbackedValue, gs as UnmetDemand, gt as UnmetDemandPage, gu as Unwatch, gv as UploadParams, gw as ValueEvidence, gx as ValueKind, gy as ValueState, gz as Verdict, gA as Verification, gB as VerificationResult, gC as VerifyCheck, gD as VerifyItem, gE as VerifyMethod, gF as VerifyParams, gG as View, gH as Visibility, gI as VoiceInfo, gJ as VoiceOptions, gK as Watch, gL as WhereExpression, gM as WorkingState, gN as WriteResult, gO as checkBacking, gP as consoleLogger, gQ as currentCall, gR as currentTurn, gS as guardStream, gT as guardText, gU as recipientHash, gV as renderLive, gW as renderSuffix, gX as silentLogger, gY as tool, gZ as verifyContactToken, g_ as violatesGuard } from './client-CdkRzWz6.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.
|
|
1204
|
+
declare const VERSION = "0.11.1";
|
|
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 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';
|
|
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-CdkRzWz6.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 ObjectInstruction, dF as ObjectMemoryOut, dG as ObjectPush, dH as ObjectPushRequest, dI as ObjectPushResponse, dJ as ObjectRead, dK as ObjectSnapshotResponse, dL as ObjectTimeline, dM as ObjectTimelineParams, dN as Observation, dO as OpenItemOut, dP as OpenItemRequest, dQ as OpenObject, dR as OpenParams, dS as OpenedItem, dT as Origin, dU as OutcomeLink, dV as OutcomePage, dW as OutcomeRequest, dX as OutcomeState, dY as Owner, dZ as OwnershipClaim, d_ as OwnershipCount, d$ as PERSONAL_DATA_TOOL_ERROR, e0 as PackGuard, e1 as PackLayer, e2 as PackSection, e3 as PackSlot, e4 as PackSlotDerived, e5 as PackStamp, e6 as PowerRequest, e7 as PowerResult, e8 as Preference, e9 as PrefetchParams, ea as PrefetchRequest, eb as Presented, ec as PresentedItem, ed as PreviousValue, ee as Problem, ef as ProfileMatch, eg as ProfileMemory, eh as PromiseRef, ei as PromoteRequest, ej as PromoteResponse, ek as ProposalStatus, el as Provenance, em as QueueOptions, en as ReadingResult, eo as ReconcileRequest, ep as ReconcileResult, eq as ReconciledLine, er as RecordedToolOptions, es as Recurrence, et as Refetch, eu as RefreshRelease, ev as RefreshReleased, ew as RefreshRequest, ex as RefreshRequestPage, ey as Refusal, ez as ReleaseDetail, eA as RememberParams, eB as RememberResult, eC as Rendered, eD as ReplayAssertion, eE as ReplayBlocker, eF as ReplayCase, eG as ReplayCaseRequest, eH as ReplayHistoryEntry, eI as ReplayResult, eJ as RequestOptions, eK as Resolved, eL as Resolver, eM as Result, eN as ResultObjects, eO as ReviewRequest, eP as ReviewRequestCreate, eQ as ReviewRequestPage, eR as ReviewResolution, eS as SaidAbout, eT as Scenario, eU as ScenarioCreate, eV as ScenarioFromReport, eW as ScenarioPage, eX as ScenarioRun, eY as ScenarioRunCreate, eZ as ScenarioRunSummary, e_ as ScenarioUpdate, e$ as ScenarioVerdict, f0 as SdkProfile, f1 as SearchRequest, f2 as SearchResponse, f3 as Seen, f4 as SeenTokens, f5 as ShadowRequest, f6 as ShadowRun, f7 as Shown, f8 as ShownValue, f9 as SlotChannelRank, fa as SlotWhy, fb as SoftConstraint, fc as SourceCoverage, fd as Speaker, fe as SpeakerRef, ff as StateMode, fg as StateReadRequest, fh as StateReadResponse, fi as StateRef, fj as StateVerifyRequest, fk as StateVerifyResponse, fl as StateView, fm as StateViewRequest, fn as StateWrite, fo as Subject, fp as SubjectToken, fq as SubjectTokenRequest, fr as Suppression, fs as SuppressionAdded, ft as SuppressionAddedDetail, fu as SuppressionLifted, fv as SuppressionLiftedDetail, fw as SuppressionPage, fx as SuppressionSalt, fy as TOOL_DEFINITIONS, fz as TOOL_NAMES, fA as TargetModel, fB as Task, fC as TaskAction, fD as TaskEndedItem, fE as TaskEvent, fF as TaskLockDeclared, fG as TaskLockDetail, fH as TaskParams, fI as TimeWindow, fJ as TimelineRequest, fK as TimelineResponse, fL as Timeouts, fM as TimerState, fN as Timestamp, fO as Timings, fP as ToolBinding, fQ as ToolCapabilities, fR as ToolDefinition, fS as ToolOptions, fT as TrackEvent, fU as TraitOut, fV as TurnAgent, fW as TurnBlob, fX as TurnBuild, fY as TurnCall, fZ as TurnCompilerPins, f_ as TurnConstraints, f$ as TurnCoordination, g0 as TurnCost, g1 as TurnEffect, g2 as TurnFlag, g3 as TurnFrame, g4 as TurnIndexEntry, g5 as TurnIndexPage, g6 as TurnKind, g7 as TurnObservation, g8 as TurnOptions, g9 as TurnOutput, ga as TurnParams, gb as TurnProvenance, gc as TurnRead, gd as TurnRecord, ge as TurnRecorder, gf as TurnRecordingOptions, gg as TurnRecordingSummary, gh as TurnSearchRequest, gi as TurnSearchResponse, gj as TurnSummary, gk as TurnTokens, gl as TurnView, gm as TurnsRequest, gn as TurnsResponse, go as TypeCoverage, gp as TypeFingerprintRequest, gq as TypeFingerprintResponse, gr as UnbackedValue, gs as UnmetDemand, gt as UnmetDemandPage, gu as Unwatch, gv as UploadParams, gw as ValueEvidence, gx as ValueKind, gy as ValueState, gz as Verdict, gA as Verification, gB as VerificationResult, gC as VerifyCheck, gD as VerifyItem, gE as VerifyMethod, gF as VerifyParams, gG as View, gH as Visibility, gI as VoiceInfo, gJ as VoiceOptions, gK as Watch, gL as WhereExpression, gM as WorkingState, gN as WriteResult, gO as checkBacking, gP as consoleLogger, gQ as currentCall, gR as currentTurn, gS as guardStream, gT as guardText, gU as recipientHash, gV as renderLive, gW as renderSuffix, gX as silentLogger, gY as tool, gZ as verifyContactToken, g_ as violatesGuard } from './client-CdkRzWz6.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.
|
|
1204
|
+
declare const VERSION = "0.11.1";
|
|
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
|
@@ -127,7 +127,7 @@ function explain(error) {
|
|
|
127
127
|
var segment = (value) => encodeURIComponent(value);
|
|
128
128
|
function correction(profileId, params) {
|
|
129
129
|
const body = { profile_id: profileId, action: params.action };
|
|
130
|
-
if (params.fact_id) body.fact_id = params.fact_id
|
|
130
|
+
if (params.fact_id) body.fact_id = params.fact_id;
|
|
131
131
|
if (params.open_item_id) body.open_item_id = params.open_item_id;
|
|
132
132
|
if (params.value) body.value = params.value;
|
|
133
133
|
if (params.reason) body.reason = params.reason;
|
|
@@ -150,9 +150,9 @@ var Admin = class {
|
|
|
150
150
|
() => this.port.read("GET", `/v1/profiles/${segment(profileId)}/memory`, void 0, options)
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes
|
|
153
|
+
/** Every value a fact's slot held, oldest first, with who replaced whom. Takes the fact's bare id. */
|
|
154
154
|
factHistory(profileId, factId, options = {}) {
|
|
155
|
-
const fact = segment(factId
|
|
155
|
+
const fact = segment(factId);
|
|
156
156
|
return this.port.send(
|
|
157
157
|
() => this.port.read("GET", `/v1/profiles/${segment(profileId)}/facts/${fact}/history`, void 0, options)
|
|
158
158
|
);
|
|
@@ -523,7 +523,7 @@ function internalRecord(span, ref, act) {
|
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
// src/version.ts
|
|
526
|
-
var VERSION = "0.
|
|
526
|
+
var VERSION = "0.11.1";
|
|
527
527
|
|
|
528
528
|
// src/transport.ts
|
|
529
529
|
var RETRYABLE_WRITE_STATUS = /* @__PURE__ */ new Set([408, 421, 429, 500, 502, 503, 504]);
|
|
@@ -3162,7 +3162,7 @@ function render(block, binding, call, mode = "advisory") {
|
|
|
3162
3162
|
if (mode === "apply") {
|
|
3163
3163
|
const disputed = new Set(conflicts2.map((c) => c.id));
|
|
3164
3164
|
const allowed = /* @__PURE__ */ new Set([
|
|
3165
|
-
...hard.filter((h) => SAID.has(h.source) && (h.scope === "turn" || h.scope === "session") && !disputed.has(h.id)).map((h) => h.id),
|
|
3165
|
+
...hard.filter((h) => SAID.has(h.source) && (h.scope === "turn" || h.scope === "session" || h.scope === "object") && !disputed.has(h.id)).map((h) => h.id),
|
|
3166
3166
|
...attributes.filter((a) => a.source === "stated" || a.source === "correction").map((a) => a.id)
|
|
3167
3167
|
]);
|
|
3168
3168
|
for (const [param, value] of suggested) {
|
|
@@ -7712,6 +7712,7 @@ var silentLogger = { debug: noop, warn: noop, error: noop };
|
|
|
7712
7712
|
// src/options.ts
|
|
7713
7713
|
var DEFAULT_TIMEOUTS = {
|
|
7714
7714
|
context: 300,
|
|
7715
|
+
contextFirst: 1e3,
|
|
7715
7716
|
contextVoice: 200,
|
|
7716
7717
|
contextVoiceStart: 1500,
|
|
7717
7718
|
navigation: 600,
|
|
@@ -7987,7 +7988,7 @@ var TOOL_DEFINITIONS = [
|
|
|
7987
7988
|
"type": "function",
|
|
7988
7989
|
"function": {
|
|
7989
7990
|
"name": "search_customer_history",
|
|
7990
|
-
"description": "Search everything that already happened with this customer: past conversations, promises, agent actions, orders and invoices. Use it when the customer refers to something earlier or asks whether a problem happened before. Do not call it when the answer is already in the context block, including its 'Hist\xF3rico' line, which already counts recurrences. Returns short items with date, channel and outcome, plus a recurrence count. Open a conversation (`episode
|
|
7991
|
+
"description": "Search everything that already happened with this customer: past conversations, promises, agent actions, orders and invoices. Use it when the customer refers to something earlier or asks whether a problem happened before. Do not call it when the answer is already in the context block, including its 'Hist\xF3rico' line, which already counts recurrences. Returns short items with date, channel and outcome, plus a recurrence count. Open a conversation (kind `episode`) or an object (kind `object`) by its id with open_history_item; the other items are complete as listed.",
|
|
7991
7992
|
"parameters": {
|
|
7992
7993
|
"type": "object",
|
|
7993
7994
|
"properties": {
|
|
@@ -8127,13 +8128,13 @@ var TOOL_DEFINITIONS = [
|
|
|
8127
8128
|
"type": "function",
|
|
8128
8129
|
"function": {
|
|
8129
8130
|
"name": "open_history_item",
|
|
8130
|
-
"description": "Open one conversation (`episode
|
|
8131
|
+
"description": "Open one conversation (kind `episode`) or business object (kind `object`) returned by search_customer_history or get_customer_timeline: what was asked, what was promised and by whom, the outcome and what memory came from it. Actions, events, facts and promises are complete as listed and do not open. Use it only after a search or timeline pointed to the item.",
|
|
8131
8132
|
"parameters": {
|
|
8132
8133
|
"type": "object",
|
|
8133
8134
|
"properties": {
|
|
8134
8135
|
"id": {
|
|
8135
8136
|
"type": "string",
|
|
8136
|
-
"description": "The item id
|
|
8137
|
+
"description": "The item's `id`, as listed."
|
|
8137
8138
|
}
|
|
8138
8139
|
},
|
|
8139
8140
|
"required": [
|
|
@@ -8522,6 +8523,7 @@ function rttWarnings(rttMs, timeouts) {
|
|
|
8522
8523
|
}
|
|
8523
8524
|
|
|
8524
8525
|
// src/client.ts
|
|
8526
|
+
var READ_KEYS_KEPT = 4096;
|
|
8525
8527
|
function readEnv(name) {
|
|
8526
8528
|
try {
|
|
8527
8529
|
const env = globalThis.process?.env;
|
|
@@ -8549,6 +8551,8 @@ var Niadra = class _Niadra {
|
|
|
8549
8551
|
voiceStarted = false;
|
|
8550
8552
|
/** A probe is on its way: until it ends, default read budgets get `timeouts.connect` on top. */
|
|
8551
8553
|
measuring = false;
|
|
8554
|
+
/** The keys whose read answered in this client, oldest first: a first read gets `timeouts.contextFirst`. */
|
|
8555
|
+
answeredReads = /* @__PURE__ */ new Map();
|
|
8552
8556
|
voiceWarned = false;
|
|
8553
8557
|
strict;
|
|
8554
8558
|
/** Where the client reports what it swallows in fail-open mode. */
|
|
@@ -8735,14 +8739,28 @@ var Niadra = class _Niadra {
|
|
|
8735
8739
|
if (this.content.registered && result2.state) result2.state = await this.content.fill(result2.state);
|
|
8736
8740
|
return result2;
|
|
8737
8741
|
}
|
|
8738
|
-
readContext(core, params, request, options) {
|
|
8739
|
-
const timeout = options.timeout ?? (request.view === "voice" ? this.timeouts.contextVoice : this.readBudget("context"));
|
|
8742
|
+
async readContext(core, params, request, options) {
|
|
8740
8743
|
const { query: own3, ...pinned2 } = request;
|
|
8741
8744
|
const query = turnText(own3 ?? params.turn);
|
|
8745
|
+
const readKey = cacheKey(pinned2);
|
|
8746
|
+
const first = !this.answeredReads.has(readKey);
|
|
8747
|
+
const timeout = options.timeout ?? (request.view === "voice" ? this.timeouts.contextVoice : this.readBudget("context", first));
|
|
8742
8748
|
const voiceCache = this.voiceCache(core, pinned2, options.cache);
|
|
8743
|
-
|
|
8744
|
-
if (
|
|
8745
|
-
|
|
8749
|
+
let result2;
|
|
8750
|
+
if (voiceCache) result2 = await this.voiceContext(core, voiceCache, pinned2, query, timeout, options);
|
|
8751
|
+
else if (query !== null) result2 = await this.turnContext(core, pinned2, query, timeout, options);
|
|
8752
|
+
else result2 = await this.pinnedContext(core, pinned2, timeout, options);
|
|
8753
|
+
if (result2.error === null) this.readAnswered(readKey);
|
|
8754
|
+
return result2;
|
|
8755
|
+
}
|
|
8756
|
+
readAnswered(key2) {
|
|
8757
|
+
this.answeredReads.delete(key2);
|
|
8758
|
+
this.answeredReads.set(key2, true);
|
|
8759
|
+
while (this.answeredReads.size > READ_KEYS_KEPT) {
|
|
8760
|
+
const oldest = this.answeredReads.keys().next().value;
|
|
8761
|
+
if (oldest === void 0) break;
|
|
8762
|
+
this.answeredReads.delete(oldest);
|
|
8763
|
+
}
|
|
8746
8764
|
}
|
|
8747
8765
|
/**
|
|
8748
8766
|
* The SDK profile of this key's space: the features it turned on, the claim contract and the summarized
|
|
@@ -9150,7 +9168,9 @@ var Niadra = class _Niadra {
|
|
|
9150
9168
|
const key2 = AgentMemoryCache.key(params);
|
|
9151
9169
|
const fresh = cache?.fresh(key2);
|
|
9152
9170
|
if (fresh) return blockResult(fresh, "cache");
|
|
9153
|
-
const
|
|
9171
|
+
const readKey = `agent-memory:${key2}`;
|
|
9172
|
+
const first = !this.answeredReads.has(readKey);
|
|
9173
|
+
const timeout = options.timeout ?? (params.view === "voice" ? this.timeouts.contextVoice : this.readBudget("context", first));
|
|
9154
9174
|
const spec = this.readSpec("GET", "/v1/agent-memory/block", void 0, timeout, options);
|
|
9155
9175
|
spec.query = {
|
|
9156
9176
|
max_tokens: String(params.max_tokens ?? 300),
|
|
@@ -9161,6 +9181,7 @@ var Niadra = class _Niadra {
|
|
|
9161
9181
|
if (etag) spec.headers = { ...options.headers, "if-none-match": etag };
|
|
9162
9182
|
try {
|
|
9163
9183
|
const response = await core.transport.request(spec);
|
|
9184
|
+
this.readAnswered(readKey);
|
|
9164
9185
|
cache?.store(key2, response.data);
|
|
9165
9186
|
return blockResult(response.data, "network");
|
|
9166
9187
|
} catch (error) {
|
|
@@ -9649,12 +9670,13 @@ var Niadra = class _Niadra {
|
|
|
9649
9670
|
* to the region goes on top, so an agent far from the region (Sao Paulo, 170 ms from us-east-2) is not
|
|
9650
9671
|
* timed out by the network; one the caller set is a ceiling.
|
|
9651
9672
|
*/
|
|
9652
|
-
readBudget(name) {
|
|
9673
|
+
readBudget(name, first = false) {
|
|
9653
9674
|
if (!this.defaultReads.has(name)) return this.timeouts[name];
|
|
9675
|
+
const base = first && name === "context" ? Math.max(this.timeouts.context, this.timeouts.contextFirst) : this.timeouts[name];
|
|
9654
9676
|
const rtt = this.voice.rtt;
|
|
9655
|
-
if (rtt !== null) return
|
|
9677
|
+
if (rtt !== null) return base + rtt;
|
|
9656
9678
|
const open = this.core?.transport.connectionOpen() ?? false;
|
|
9657
|
-
return this.measuring && open ?
|
|
9679
|
+
return this.measuring && open ? base + this.timeouts.connect : base;
|
|
9658
9680
|
}
|
|
9659
9681
|
/** The client reads in voice: the voice budgets' warnings matter from now on. */
|
|
9660
9682
|
startVoice(core) {
|