@niadra/sdk 0.7.0 → 0.9.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 +58 -0
- package/README.md +55 -7
- package/dist/ai-sdk.cjs +3 -4
- 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 +3 -4
- package/dist/ai-sdk.js.map +1 -1
- package/dist/anthropic.cjs +1 -1
- package/dist/anthropic.cjs.map +1 -1
- package/dist/anthropic.d.cts +4 -4
- package/dist/anthropic.d.ts +4 -4
- package/dist/anthropic.js +1 -1
- package/dist/anthropic.js.map +1 -1
- package/dist/bedrock.cjs +1 -1
- package/dist/bedrock.cjs.map +1 -1
- package/dist/bedrock.d.cts +4 -4
- package/dist/bedrock.d.ts +4 -4
- package/dist/bedrock.js +1 -1
- package/dist/bedrock.js.map +1 -1
- package/dist/cli.js +157 -60
- package/dist/cli.js.map +1 -1
- package/dist/{client-DsIxZxZk.d.cts → client-CWMxmJHs.d.cts} +91 -28
- package/dist/{client-DsIxZxZk.d.ts → client-CWMxmJHs.d.ts} +91 -28
- package/dist/cloudflare-agents.cjs +1 -1
- package/dist/cloudflare-agents.cjs.map +1 -1
- package/dist/cloudflare-agents.d.cts +3 -3
- package/dist/cloudflare-agents.d.ts +3 -3
- package/dist/cloudflare-agents.js +1 -1
- package/dist/cloudflare-agents.js.map +1 -1
- package/dist/elevenlabs.cjs +1 -1
- 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 +1 -1
- package/dist/elevenlabs.js.map +1 -1
- package/dist/genkit.cjs +1 -1
- package/dist/genkit.cjs.map +1 -1
- package/dist/genkit.d.cts +3 -3
- package/dist/genkit.d.ts +3 -3
- package/dist/genkit.js +1 -1
- package/dist/genkit.js.map +1 -1
- package/dist/google-adk.cjs +1 -1
- 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 +1 -1
- package/dist/google-adk.js.map +1 -1
- package/dist/google-genai.cjs +1 -1
- package/dist/google-genai.cjs.map +1 -1
- package/dist/google-genai.d.cts +4 -4
- package/dist/google-genai.d.ts +4 -4
- package/dist/google-genai.js +1 -1
- package/dist/google-genai.js.map +1 -1
- package/dist/index.cjs +156 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +156 -57
- package/dist/index.js.map +1 -1
- package/dist/{intercept-D7qFCaRb.d.ts → intercept-Bv0nLpSw.d.ts} +1 -1
- package/dist/{intercept-0_lJE6k1.d.cts → intercept-CGngQI8B.d.cts} +1 -1
- package/dist/langchain.cjs +3 -4
- 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 +3 -4
- package/dist/langchain.js.map +1 -1
- package/dist/livekit.cjs +1 -1
- package/dist/livekit.cjs.map +1 -1
- package/dist/livekit.d.cts +3 -3
- package/dist/livekit.d.ts +3 -3
- package/dist/livekit.js +1 -1
- package/dist/livekit.js.map +1 -1
- package/dist/llamaindex.cjs +1 -1
- package/dist/llamaindex.cjs.map +1 -1
- package/dist/llamaindex.d.cts +3 -3
- package/dist/llamaindex.d.ts +3 -3
- package/dist/llamaindex.js +1 -1
- package/dist/llamaindex.js.map +1 -1
- package/dist/mastra.cjs +3 -4
- 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 +3 -4
- package/dist/mastra.js.map +1 -1
- package/dist/openai-agents.cjs +1 -1
- package/dist/openai-agents.cjs.map +1 -1
- package/dist/openai-agents.d.cts +3 -3
- package/dist/openai-agents.d.ts +3 -3
- package/dist/openai-agents.js +1 -1
- package/dist/openai-agents.js.map +1 -1
- package/dist/retell.cjs +1 -1
- 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 +1 -1
- package/dist/retell.js.map +1 -1
- package/dist/{shared-Bb5B59Bu.d.ts → shared-B4Ef2Wpg.d.ts} +1 -1
- package/dist/{shared-DTPWVlWm.d.cts → shared-Cq8mz-7m.d.cts} +1 -1
- package/dist/strands.cjs +1 -1
- package/dist/strands.cjs.map +1 -1
- package/dist/strands.d.cts +3 -3
- package/dist/strands.d.ts +3 -3
- package/dist/strands.js +1 -1
- package/dist/strands.js.map +1 -1
- package/dist/twilio.d.cts +4 -4
- package/dist/twilio.d.ts +4 -4
- package/dist/vapi.cjs +1 -1
- 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 +1 -1
- package/dist/vapi.js.map +1 -1
- package/dist/voltagent.cjs +1 -1
- package/dist/voltagent.cjs.map +1 -1
- package/dist/voltagent.d.cts +3 -3
- package/dist/voltagent.d.ts +3 -3
- package/dist/voltagent.js +1 -1
- package/dist/voltagent.js.map +1 -1
- package/dist/{webhook-CG4om_DK.d.cts → webhook-jTx_SegV.d.cts} +1 -1
- package/dist/{webhook-1ozGyksG.d.ts → webhook-z2TjUzjv.d.ts} +1 -1
- package/dist/whatsapp.d.cts +2 -2
- package/dist/whatsapp.d.ts +2 -2
- package/package.json +3 -2
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
|
|
2
|
-
export { A as AGENT_MEMORY_TOOL_DEFINITIONS,
|
|
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-CWMxmJHs.cjs';
|
|
2
|
+
export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseEntry, bs as Conversation, bt as ConversationAction, bu as ConversationEndedItem, bv as ConversationEvent, bw as ConversationParams, bx as CoordinationBlock, by as CoordinationOverview, bz as CoordinationReport, bA as CoordinationReportPage, bB as CorrectParams, bC as CorrectionAction, bD as CorrectionRequest, bE as CounterfactualCase, bF as CounterfactualEngaged, bG as CounterfactualEngagement, bH as CounterfactualRunCreate, bI as CounterfactualRunPage, bJ as CreateAgentNoteRequest, bK as DEFAULT_CACHE, bL as DEFAULT_QUEUE, bM as DEFAULT_TIMEOUTS, bN as DEFAULT_VOICE, bO as DELETE, bP as DataIssue, bQ as DataIssuePage, bR as Declarations, bS as DeclareRequest, bT as DeclareResult, bU as DeliveryPath, bV as DerivedState, bW as Detect, bX as DriftChanges, bY as Effect, bZ as EffectCount, b_ as EffectDeclared, b$ as EffectDetail, c0 as EffectKind, c1 as EffectReserve, c2 as EffectSeen, c3 as EffectSettle, c4 as EffectState, c5 as EffectStatus, c6 as Engaged, c7 as EpisodeOut, c8 as Erasure, c9 as EventItem, ca as EventKind, cb as Evidence, cc as ExperimentReport, cd as ExperimentResult, ce as ExportPackage, cf as FAIL_CLOSED, cg as FactHistory, ch as FactOut, ci as Feature, cj as Feedback, ck as FeedbackAction, cl as FeedbackParams, cm as FeedbackRequest, cn as Fetched, co as FieldCoverage, cp as FieldState, cq as ForgetTarget, cr as GatewayOptions, cs as Guard, ct as GuardLike, cu as GuardOptions, cv as Guarded, cw as HandleType, cx as Handoff, cy as HandoffContext, cz as HandoffCreate, cA as HandoffDeclared, cB as HandoffDetail, cC as HandoffItem, cD as HandoffOutcome, cE as HandoffPackage, cF as HandoffParams, cG as HeartbeatItem, cH as HistoryFilters, cI as HistoryItem, cJ as HistoryItemKind, cK as IdentifyItem, cL as IdentifyParams, cM as IdentityCalibration, cN as Include, cO as Inference, cP as InferenceCorrection, cQ as InferencePage, cR as IngestStatus, cS as InterestState, cT as InterleavingReport, cU as InterleavingRow, cV as InterleavingTotal, cW as InternalText, cX as ItemError, cY as ItemVersion, cZ as KeyIdentity, c_ as LeaseDeclared, c$ as LeaseDetail, d0 as LegalHold, d1 as LegalHoldCreate, d2 as LegalHoldRelease, d3 as LiveTurn, d4 as Lock, d5 as MAX_BATCH_ITEMS, d6 as MAX_EVENT_TEXT, d7 as MAX_MEDIA_BYTES, d8 as MediaUpload, d9 as MediaUploadRequest, da as MediaUploadResponse, db as MemorySeen, dc as NOT_FOUND, dd as Natures, de as Negation, df as NiadraAPIError, dg as NiadraAbortError, dh as NiadraAuthenticationError, di as NiadraConfigError, dj as NiadraConnectionError, dk as NiadraContactTokenError, dl as NiadraPermissionError, dm as NiadraRateLimitError, dn as NiadraReplayRefusedError, dp as NiadraTimeoutError, dq as NiadraValidationError, dr as Notification, ds as NotificationPage, dt as ObjectCoverage, du as ObjectPush, dv as ObjectPushRequest, dw as ObjectPushResponse, dx as ObjectRead, dy as ObjectSnapshotResponse, dz as ObjectTimeline, dA as ObjectTimelineParams, dB as Observation, dC as OpenItemOut, dD as OpenItemRequest, dE as OpenObject, dF as OpenParams, dG as OpenedItem, dH as Origin, dI as OutcomeLink, dJ as OutcomePage, dK as OutcomeRequest, dL as OutcomeState, dM as Owner, dN as OwnershipClaim, dO as OwnershipCount, dP as PERSONAL_DATA_TOOL_ERROR, dQ as PackGuard, dR as PackLayer, dS as PackSection, dT as PackSlot, dU as PackSlotDerived, dV as PackStamp, dW as PowerRequest, dX as PowerResult, dY as Preference, dZ as PrefetchParams, d_ as PrefetchRequest, d$ as Presented, e0 as PresentedItem, e1 as PreviousValue, e2 as Problem, e3 as ProfileMatch, e4 as ProfileMemory, e5 as PromiseRef, e6 as PromoteRequest, e7 as PromoteResponse, e8 as ProposalStatus, e9 as Provenance, ea as QueueOptions, eb as ReadingResult, ec as ReconcileRequest, ed as ReconcileResult, ee as ReconciledLine, ef as RecordedToolOptions, eg as Recurrence, eh as Refetch, ei as RefreshRelease, ej as RefreshReleased, ek as RefreshRequest, el as RefreshRequestPage, em as Refusal, en as ReleaseDetail, eo as RememberParams, ep as RememberResult, eq as Rendered, er as ReplayAssertion, es as ReplayBlocker, et as ReplayCase, eu as ReplayCaseRequest, ev as ReplayHistoryEntry, ew as ReplayResult, ex as RequestOptions, ey as Resolved, ez as Resolver, eA as Result, eB as ResultObjects, eC as ReviewRequest, eD as ReviewRequestCreate, eE as ReviewRequestPage, eF as ReviewResolution, eG as Scenario, eH as ScenarioCreate, eI as ScenarioFromReport, eJ as ScenarioPage, eK as ScenarioRun, eL as ScenarioRunCreate, eM as ScenarioRunSummary, eN as ScenarioUpdate, eO as ScenarioVerdict, eP as SdkProfile, eQ as SearchRequest, eR as SearchResponse, eS as Seen, eT as SeenTokens, eU as ShadowRequest, eV as ShadowRun, eW as Shown, eX as ShownValue, eY as SlotChannelRank, eZ as SlotWhy, e_ as SoftConstraint, e$ as SourceCoverage, f0 as Speaker, f1 as SpeakerRef, f2 as StateMode, f3 as StateReadRequest, f4 as StateReadResponse, f5 as StateRef, f6 as StateVerifyRequest, f7 as StateVerifyResponse, f8 as StateView, f9 as StateViewRequest, fa as StateWrite, fb as Subject, fc as SubjectToken, fd as SubjectTokenRequest, fe as Suppression, ff as SuppressionAdded, fg as SuppressionAddedDetail, fh as SuppressionLifted, fi as SuppressionLiftedDetail, fj as SuppressionPage, fk as SuppressionSalt, fl as TOOL_DEFINITIONS, fm as TOOL_NAMES, fn as TargetModel, fo as Task, fp as TaskAction, fq as TaskEndedItem, fr as TaskEvent, fs as TaskLockDeclared, ft as TaskLockDetail, fu as TaskParams, fv as TimeWindow, fw as TimelineRequest, fx as TimelineResponse, fy as Timeouts, fz as TimerState, fA as Timestamp, fB as Timings, fC as ToolBinding, fD as ToolCapabilities, fE as ToolDefinition, fF as ToolOptions, fG as TrackEvent, fH as TraitOut, fI as TurnAgent, fJ as TurnBlob, fK as TurnBuild, fL as TurnCall, fM as TurnCompilerPins, fN as TurnConstraints, fO as TurnCoordination, fP as TurnCost, fQ as TurnEffect, fR as TurnFlag, fS as TurnFrame, fT as TurnIndexEntry, fU as TurnIndexPage, fV as TurnKind, fW as TurnObservation, fX as TurnOptions, fY as TurnOutput, fZ as TurnParams, f_ as TurnProvenance, f$ as TurnRead, g0 as TurnRecord, g1 as TurnRecorder, g2 as TurnRecordingOptions, g3 as TurnRecordingSummary, g4 as TurnSearchRequest, g5 as TurnSearchResponse, g6 as TurnSummary, g7 as TurnTokens, g8 as TurnView, g9 as TurnsRequest, ga as TurnsResponse, gb as TypeCoverage, gc as TypeFingerprintRequest, gd as TypeFingerprintResponse, ge as UnbackedValue, gf as UnmetDemand, gg as UnmetDemandPage, gh as Unwatch, gi as UploadParams, gj as ValueEvidence, gk as ValueKind, gl as ValueState, gm as Verdict, gn as Verification, go as VerificationResult, gp as VerifyCheck, gq as VerifyItem, gr as VerifyMethod, gs as VerifyParams, gt as View, gu as Visibility, gv as VoiceInfo, gw as VoiceOptions, gx as Watch, gy as WhereExpression, gz as WorkingState, gA as WriteResult, gB as checkBacking, gC as consoleLogger, gD as currentCall, gE as currentTurn, gF as guardStream, gG as guardText, gH as recipientHash, gI as renderLive, gJ as renderSuffix, gK as silentLogger, gL as tool, gM as verifyContactToken, gN as violatesGuard } from './client-CWMxmJHs.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The constraints block rendered for one tool call (`spec/constraints.md`, sections 6 and 7): what the
|
|
@@ -991,9 +991,9 @@ declare class Replayer {
|
|
|
991
991
|
* only positions and overlaps to `POST /v1/measure/counterfactual-runs`, which answers with the report.
|
|
992
992
|
*
|
|
993
993
|
* The records come through the replay case route, so only turns that can be replayed are read. The element is
|
|
994
|
-
* `constraints` (the whole block), `hard`, `size` (its attributes) or `exclude`. The binding
|
|
995
|
-
* `bindings
|
|
996
|
-
* `results`, or else with the tool's `provenance`. It behaves as the Python SDK's `Counterfactual`.
|
|
994
|
+
* `constraints` (the whole block), `hard`, `size` (its attributes) or `exclude`. The binding is the one the space's
|
|
995
|
+
* `tool-bindings` document gives the tool for this source, from the SDK profile; a result's objects are read with
|
|
996
|
+
* the binding's `results`, or else with the tool's `provenance`. It behaves as the Python SDK's `Counterfactual`.
|
|
997
997
|
*/
|
|
998
998
|
|
|
999
999
|
type Element = "constraints" | "hard" | "size" | "exclude";
|
|
@@ -1015,8 +1015,6 @@ interface CounterfactualRun {
|
|
|
1015
1015
|
interface CounterfactualOptions {
|
|
1016
1016
|
/** Reads values kept by pointer; by default the client's content resolver. */
|
|
1017
1017
|
read?: (pointer: string) => Promise<string>;
|
|
1018
|
-
/** A tool's binding, by tool name. */
|
|
1019
|
-
bindings?: Readonly<Record<string, RawBinding>>;
|
|
1020
1018
|
/** Tools that may run again as they are. */
|
|
1021
1019
|
safe?: readonly string[];
|
|
1022
1020
|
}
|
|
@@ -1195,6 +1193,6 @@ declare function baseURLFromKey(key: ParsedApiKey): string;
|
|
|
1195
1193
|
*/
|
|
1196
1194
|
declare function uuidv7(now?: number): string;
|
|
1197
1195
|
|
|
1198
|
-
declare const VERSION = "0.
|
|
1196
|
+
declare const VERSION = "0.9.1";
|
|
1199
1197
|
|
|
1200
1198
|
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
|
|
2
|
-
export { A as AGENT_MEMORY_TOOL_DEFINITIONS,
|
|
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-CWMxmJHs.js';
|
|
2
|
+
export { A as AGENT_MEMORY_TOOL_DEFINITIONS, h as AGENT_MEMORY_TOOL_NAMES, i as ActionEvent, j as ActionInfo, k as Actions, l as Admin, m as AgentMemoryBlock, n as AgentMemoryParams, o as AgentMemoryResult, p as AgentMemorySearchRequest, q as AgentMemorySearchResponse, r as AgentMemorySource, t as AgentNote, u as AgentNoteKind, v as AgentNoteOrigin, w as AgentNoteProposal, x as AgentNoteStatus, y as AgentNoteVisibility, z as AgentSession, B as AgentState, D as AgentStateConflict, E as AgentStateHandle, F as AgentStateMeta, G as AgentStateMetaPage, J as AgentStateReadRequest, K as AgentStateScope, P as AgentStateWrite, Q as AgentStateWriteResult, U as AgentTurnOptions, V as AnchorEvidence, W as Api, X as ArmComparison, Y as ArmOutcomes, Z as AskedAttribute, _ as AssertionMethod, $ as AssertionOutcome, a0 as AssertionStats, a1 as Attribute, a2 as AttributeEntry, a3 as AttributionReport, a4 as AttributionRow, a5 as AttributionTotal, a6 as Backing, a7 as BackingReport, a8 as BackingSources, a9 as BatchItem, aa as BatchRequest, ab as BatchResponse, ac as BiFile, ad as BiUpload, ae as BiUploadRequest, af as BlobError, ag as BlobStore, ah as BlockSubject, ai as BoundArg, aj as BoundTools, ak as BudgetBlock, al as BudgetCut, am as BudgetPack, an as BudgetUse, ao as CacheDirectives, ap as CacheOptions, aq as CallCapture, ar as CaseClosed, as as CaseOpened, at as Change, au as ChangePage, av as ChangeSinceSeen, aw as ChannelState, ax as CheckBatchRequest, ay as CheckBatchResponse, az as CheckOptions, aA as CheckRequest, aB as CheckResult, aC as ClaimCheck, aD as ClaimCheckOptions, aE as ClaimContractSummary, aF as ClaimEvidence, aG as ClaimEvidenceRef, aH as ClaimKind, aI as ClaimOutputs, aJ as ClaimParams, aK as ClaimRelease, aL as ClaimRequest, aM as ClaimValue, aN as ClaimVerdict, aO as ClaimVia, aP as Claimed, aQ as ClientOptions, aR as Closes, aS as Commitment, aT as CommitmentDecided, aU as CommitmentDecidedDetail, aV as CommitmentMade, aW as CommitmentMadeDetail, aX as CommitmentRef, aY as CommitmentWithdrawn, aZ as CommitmentWithdrawnDetail, a_ as CompanyRule, a$ as Conflict, b0 as ConflictCounts, b1 as ConstraintOrigin, b2 as ConstraintsRequest, b3 as ContactBudget, b4 as ContactBudgetUse, b5 as ContactClaims, b6 as ContactCount, b7 as ContactGateway, b8 as ContactKey, b9 as ContactKeys, ba as ContactMade, bb as ContactMadeDetail, bc as ContactTokenParams, bd as ContactTokenRefusal, be as Content, bf as ContentMarker, bg as ContentMode, bh as ContentRelease, bi as ContentReleaseResult, bj as ContentResolver, bk as ContextFormat, bl as ContextOptions, bm as ContextPack, bn as ContextParams, bo as ContextRequest, bp as ContextSource, bq as ContextStamp, br as ContextUseEntry, bs as Conversation, bt as ConversationAction, bu as ConversationEndedItem, bv as ConversationEvent, bw as ConversationParams, bx as CoordinationBlock, by as CoordinationOverview, bz as CoordinationReport, bA as CoordinationReportPage, bB as CorrectParams, bC as CorrectionAction, bD as CorrectionRequest, bE as CounterfactualCase, bF as CounterfactualEngaged, bG as CounterfactualEngagement, bH as CounterfactualRunCreate, bI as CounterfactualRunPage, bJ as CreateAgentNoteRequest, bK as DEFAULT_CACHE, bL as DEFAULT_QUEUE, bM as DEFAULT_TIMEOUTS, bN as DEFAULT_VOICE, bO as DELETE, bP as DataIssue, bQ as DataIssuePage, bR as Declarations, bS as DeclareRequest, bT as DeclareResult, bU as DeliveryPath, bV as DerivedState, bW as Detect, bX as DriftChanges, bY as Effect, bZ as EffectCount, b_ as EffectDeclared, b$ as EffectDetail, c0 as EffectKind, c1 as EffectReserve, c2 as EffectSeen, c3 as EffectSettle, c4 as EffectState, c5 as EffectStatus, c6 as Engaged, c7 as EpisodeOut, c8 as Erasure, c9 as EventItem, ca as EventKind, cb as Evidence, cc as ExperimentReport, cd as ExperimentResult, ce as ExportPackage, cf as FAIL_CLOSED, cg as FactHistory, ch as FactOut, ci as Feature, cj as Feedback, ck as FeedbackAction, cl as FeedbackParams, cm as FeedbackRequest, cn as Fetched, co as FieldCoverage, cp as FieldState, cq as ForgetTarget, cr as GatewayOptions, cs as Guard, ct as GuardLike, cu as GuardOptions, cv as Guarded, cw as HandleType, cx as Handoff, cy as HandoffContext, cz as HandoffCreate, cA as HandoffDeclared, cB as HandoffDetail, cC as HandoffItem, cD as HandoffOutcome, cE as HandoffPackage, cF as HandoffParams, cG as HeartbeatItem, cH as HistoryFilters, cI as HistoryItem, cJ as HistoryItemKind, cK as IdentifyItem, cL as IdentifyParams, cM as IdentityCalibration, cN as Include, cO as Inference, cP as InferenceCorrection, cQ as InferencePage, cR as IngestStatus, cS as InterestState, cT as InterleavingReport, cU as InterleavingRow, cV as InterleavingTotal, cW as InternalText, cX as ItemError, cY as ItemVersion, cZ as KeyIdentity, c_ as LeaseDeclared, c$ as LeaseDetail, d0 as LegalHold, d1 as LegalHoldCreate, d2 as LegalHoldRelease, d3 as LiveTurn, d4 as Lock, d5 as MAX_BATCH_ITEMS, d6 as MAX_EVENT_TEXT, d7 as MAX_MEDIA_BYTES, d8 as MediaUpload, d9 as MediaUploadRequest, da as MediaUploadResponse, db as MemorySeen, dc as NOT_FOUND, dd as Natures, de as Negation, df as NiadraAPIError, dg as NiadraAbortError, dh as NiadraAuthenticationError, di as NiadraConfigError, dj as NiadraConnectionError, dk as NiadraContactTokenError, dl as NiadraPermissionError, dm as NiadraRateLimitError, dn as NiadraReplayRefusedError, dp as NiadraTimeoutError, dq as NiadraValidationError, dr as Notification, ds as NotificationPage, dt as ObjectCoverage, du as ObjectPush, dv as ObjectPushRequest, dw as ObjectPushResponse, dx as ObjectRead, dy as ObjectSnapshotResponse, dz as ObjectTimeline, dA as ObjectTimelineParams, dB as Observation, dC as OpenItemOut, dD as OpenItemRequest, dE as OpenObject, dF as OpenParams, dG as OpenedItem, dH as Origin, dI as OutcomeLink, dJ as OutcomePage, dK as OutcomeRequest, dL as OutcomeState, dM as Owner, dN as OwnershipClaim, dO as OwnershipCount, dP as PERSONAL_DATA_TOOL_ERROR, dQ as PackGuard, dR as PackLayer, dS as PackSection, dT as PackSlot, dU as PackSlotDerived, dV as PackStamp, dW as PowerRequest, dX as PowerResult, dY as Preference, dZ as PrefetchParams, d_ as PrefetchRequest, d$ as Presented, e0 as PresentedItem, e1 as PreviousValue, e2 as Problem, e3 as ProfileMatch, e4 as ProfileMemory, e5 as PromiseRef, e6 as PromoteRequest, e7 as PromoteResponse, e8 as ProposalStatus, e9 as Provenance, ea as QueueOptions, eb as ReadingResult, ec as ReconcileRequest, ed as ReconcileResult, ee as ReconciledLine, ef as RecordedToolOptions, eg as Recurrence, eh as Refetch, ei as RefreshRelease, ej as RefreshReleased, ek as RefreshRequest, el as RefreshRequestPage, em as Refusal, en as ReleaseDetail, eo as RememberParams, ep as RememberResult, eq as Rendered, er as ReplayAssertion, es as ReplayBlocker, et as ReplayCase, eu as ReplayCaseRequest, ev as ReplayHistoryEntry, ew as ReplayResult, ex as RequestOptions, ey as Resolved, ez as Resolver, eA as Result, eB as ResultObjects, eC as ReviewRequest, eD as ReviewRequestCreate, eE as ReviewRequestPage, eF as ReviewResolution, eG as Scenario, eH as ScenarioCreate, eI as ScenarioFromReport, eJ as ScenarioPage, eK as ScenarioRun, eL as ScenarioRunCreate, eM as ScenarioRunSummary, eN as ScenarioUpdate, eO as ScenarioVerdict, eP as SdkProfile, eQ as SearchRequest, eR as SearchResponse, eS as Seen, eT as SeenTokens, eU as ShadowRequest, eV as ShadowRun, eW as Shown, eX as ShownValue, eY as SlotChannelRank, eZ as SlotWhy, e_ as SoftConstraint, e$ as SourceCoverage, f0 as Speaker, f1 as SpeakerRef, f2 as StateMode, f3 as StateReadRequest, f4 as StateReadResponse, f5 as StateRef, f6 as StateVerifyRequest, f7 as StateVerifyResponse, f8 as StateView, f9 as StateViewRequest, fa as StateWrite, fb as Subject, fc as SubjectToken, fd as SubjectTokenRequest, fe as Suppression, ff as SuppressionAdded, fg as SuppressionAddedDetail, fh as SuppressionLifted, fi as SuppressionLiftedDetail, fj as SuppressionPage, fk as SuppressionSalt, fl as TOOL_DEFINITIONS, fm as TOOL_NAMES, fn as TargetModel, fo as Task, fp as TaskAction, fq as TaskEndedItem, fr as TaskEvent, fs as TaskLockDeclared, ft as TaskLockDetail, fu as TaskParams, fv as TimeWindow, fw as TimelineRequest, fx as TimelineResponse, fy as Timeouts, fz as TimerState, fA as Timestamp, fB as Timings, fC as ToolBinding, fD as ToolCapabilities, fE as ToolDefinition, fF as ToolOptions, fG as TrackEvent, fH as TraitOut, fI as TurnAgent, fJ as TurnBlob, fK as TurnBuild, fL as TurnCall, fM as TurnCompilerPins, fN as TurnConstraints, fO as TurnCoordination, fP as TurnCost, fQ as TurnEffect, fR as TurnFlag, fS as TurnFrame, fT as TurnIndexEntry, fU as TurnIndexPage, fV as TurnKind, fW as TurnObservation, fX as TurnOptions, fY as TurnOutput, fZ as TurnParams, f_ as TurnProvenance, f$ as TurnRead, g0 as TurnRecord, g1 as TurnRecorder, g2 as TurnRecordingOptions, g3 as TurnRecordingSummary, g4 as TurnSearchRequest, g5 as TurnSearchResponse, g6 as TurnSummary, g7 as TurnTokens, g8 as TurnView, g9 as TurnsRequest, ga as TurnsResponse, gb as TypeCoverage, gc as TypeFingerprintRequest, gd as TypeFingerprintResponse, ge as UnbackedValue, gf as UnmetDemand, gg as UnmetDemandPage, gh as Unwatch, gi as UploadParams, gj as ValueEvidence, gk as ValueKind, gl as ValueState, gm as Verdict, gn as Verification, go as VerificationResult, gp as VerifyCheck, gq as VerifyItem, gr as VerifyMethod, gs as VerifyParams, gt as View, gu as Visibility, gv as VoiceInfo, gw as VoiceOptions, gx as Watch, gy as WhereExpression, gz as WorkingState, gA as WriteResult, gB as checkBacking, gC as consoleLogger, gD as currentCall, gE as currentTurn, gF as guardStream, gG as guardText, gH as recipientHash, gI as renderLive, gJ as renderSuffix, gK as silentLogger, gL as tool, gM as verifyContactToken, gN as violatesGuard } from './client-CWMxmJHs.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The constraints block rendered for one tool call (`spec/constraints.md`, sections 6 and 7): what the
|
|
@@ -991,9 +991,9 @@ declare class Replayer {
|
|
|
991
991
|
* only positions and overlaps to `POST /v1/measure/counterfactual-runs`, which answers with the report.
|
|
992
992
|
*
|
|
993
993
|
* The records come through the replay case route, so only turns that can be replayed are read. The element is
|
|
994
|
-
* `constraints` (the whole block), `hard`, `size` (its attributes) or `exclude`. The binding
|
|
995
|
-
* `bindings
|
|
996
|
-
* `results`, or else with the tool's `provenance`. It behaves as the Python SDK's `Counterfactual`.
|
|
994
|
+
* `constraints` (the whole block), `hard`, `size` (its attributes) or `exclude`. The binding is the one the space's
|
|
995
|
+
* `tool-bindings` document gives the tool for this source, from the SDK profile; a result's objects are read with
|
|
996
|
+
* the binding's `results`, or else with the tool's `provenance`. It behaves as the Python SDK's `Counterfactual`.
|
|
997
997
|
*/
|
|
998
998
|
|
|
999
999
|
type Element = "constraints" | "hard" | "size" | "exclude";
|
|
@@ -1015,8 +1015,6 @@ interface CounterfactualRun {
|
|
|
1015
1015
|
interface CounterfactualOptions {
|
|
1016
1016
|
/** Reads values kept by pointer; by default the client's content resolver. */
|
|
1017
1017
|
read?: (pointer: string) => Promise<string>;
|
|
1018
|
-
/** A tool's binding, by tool name. */
|
|
1019
|
-
bindings?: Readonly<Record<string, RawBinding>>;
|
|
1020
1018
|
/** Tools that may run again as they are. */
|
|
1021
1019
|
safe?: readonly string[];
|
|
1022
1020
|
}
|
|
@@ -1195,6 +1193,6 @@ declare function baseURLFromKey(key: ParsedApiKey): string;
|
|
|
1195
1193
|
*/
|
|
1196
1194
|
declare function uuidv7(now?: number): string;
|
|
1197
1195
|
|
|
1198
|
-
declare const VERSION = "0.
|
|
1196
|
+
declare const VERSION = "0.9.1";
|
|
1199
1197
|
|
|
1200
1198
|
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 };
|