agentfootprint 9.25.0 → 9.27.0
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/AGENTS.md +1 -1
- package/CLAUDE.md +7 -1
- package/ai-instructions/claude-code/SKILL.md +1 -1
- package/dist/adapters/code/local.js +102 -2
- package/dist/adapters/code/local.js.map +1 -1
- package/dist/adapters/google/aiPlatform.js +438 -0
- package/dist/adapters/google/aiPlatform.js.map +1 -0
- package/dist/adapters/hosting/agentcore.js +11 -0
- package/dist/adapters/hosting/agentcore.js.map +1 -1
- package/dist/adapters/hosting/googleAgentEngine.js +372 -0
- package/dist/adapters/hosting/googleAgentEngine.js.map +1 -0
- package/dist/adapters/identity/google.js +275 -0
- package/dist/adapters/identity/google.js.map +1 -0
- package/dist/adapters/identity/jwks.js +277 -0
- package/dist/adapters/identity/jwks.js.map +1 -0
- package/dist/adapters/memory/agentcore.js +19 -0
- package/dist/adapters/memory/agentcore.js.map +1 -1
- package/dist/adapters/memory/memoryBank.js +823 -0
- package/dist/adapters/memory/memoryBank.js.map +1 -0
- package/dist/adapters/types.js +18 -1
- package/dist/adapters/types.js.map +1 -1
- package/dist/artifacts/index.js +6 -1
- package/dist/artifacts/index.js.map +1 -1
- package/dist/artifacts/recordingArtifact.js +88 -0
- package/dist/artifacts/recordingArtifact.js.map +1 -0
- package/dist/core/Agent.js +176 -0
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/agent/repeatedCall.js +190 -0
- package/dist/core/agent/repeatedCall.js.map +1 -0
- package/dist/core/agent/stages/toolCalls.js +50 -0
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/codeRunnerTool.js +149 -12
- package/dist/core/codeRunnerTool.js.map +1 -1
- package/dist/esm/adapters/code/local.d.ts +16 -0
- package/dist/esm/adapters/code/local.js +102 -2
- package/dist/esm/adapters/code/local.js.map +1 -1
- package/dist/esm/adapters/google/aiPlatform.d.ts +453 -0
- package/dist/esm/adapters/google/aiPlatform.js +424 -0
- package/dist/esm/adapters/google/aiPlatform.js.map +1 -0
- package/dist/esm/adapters/hosting/agentcore.js +11 -0
- package/dist/esm/adapters/hosting/agentcore.js.map +1 -1
- package/dist/esm/adapters/hosting/googleAgentEngine.d.ts +156 -0
- package/dist/esm/adapters/hosting/googleAgentEngine.js +368 -0
- package/dist/esm/adapters/hosting/googleAgentEngine.js.map +1 -0
- package/dist/esm/adapters/identity/google.d.ts +179 -0
- package/dist/esm/adapters/identity/google.js +271 -0
- package/dist/esm/adapters/identity/google.js.map +1 -0
- package/dist/esm/adapters/identity/jwks.d.ts +124 -0
- package/dist/esm/adapters/identity/jwks.js +249 -0
- package/dist/esm/adapters/identity/jwks.js.map +1 -0
- package/dist/esm/adapters/memory/agentcore.d.ts +19 -0
- package/dist/esm/adapters/memory/agentcore.js +19 -0
- package/dist/esm/adapters/memory/agentcore.js.map +1 -1
- package/dist/esm/adapters/memory/memoryBank.d.ts +390 -0
- package/dist/esm/adapters/memory/memoryBank.js +817 -0
- package/dist/esm/adapters/memory/memoryBank.js.map +1 -0
- package/dist/esm/adapters/types.d.ts +86 -0
- package/dist/esm/adapters/types.js +16 -0
- package/dist/esm/adapters/types.js.map +1 -1
- package/dist/esm/artifacts/index.d.ts +1 -0
- package/dist/esm/artifacts/index.js +1 -0
- package/dist/esm/artifacts/index.js.map +1 -1
- package/dist/esm/artifacts/recordingArtifact.d.ts +76 -0
- package/dist/esm/artifacts/recordingArtifact.js +83 -0
- package/dist/esm/artifacts/recordingArtifact.js.map +1 -0
- package/dist/esm/core/Agent.d.ts +66 -2
- package/dist/esm/core/Agent.js +176 -0
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/agent/repeatedCall.d.ts +150 -0
- package/dist/esm/core/agent/repeatedCall.js +184 -0
- package/dist/esm/core/agent/repeatedCall.js.map +1 -0
- package/dist/esm/core/agent/stages/toolCalls.d.ts +12 -0
- package/dist/esm/core/agent/stages/toolCalls.js +50 -0
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/types.d.ts +82 -0
- package/dist/esm/core/codeRunnerTool.d.ts +31 -0
- package/dist/esm/core/codeRunnerTool.js +149 -12
- package/dist/esm/core/codeRunnerTool.js.map +1 -1
- package/dist/esm/events/payloads.d.ts +22 -0
- package/dist/esm/events/registry.d.ts +3 -1
- package/dist/esm/events/registry.js +2 -0
- package/dist/esm/events/registry.js.map +1 -1
- package/dist/esm/hosting/admission.d.ts +180 -0
- package/dist/esm/hosting/admission.js +188 -0
- package/dist/esm/hosting/admission.js.map +1 -0
- package/dist/esm/hosting/artifactWire.d.ts +8 -5
- package/dist/esm/hosting/artifactWire.js +14 -9
- package/dist/esm/hosting/artifactWire.js.map +1 -1
- package/dist/esm/hosting/envelope.d.ts +34 -0
- package/dist/esm/hosting/envelope.js +81 -0
- package/dist/esm/hosting/envelope.js.map +1 -1
- package/dist/esm/hosting/errors.d.ts +131 -0
- package/dist/esm/hosting/errors.js +195 -0
- package/dist/esm/hosting/errors.js.map +1 -1
- package/dist/esm/hosting/httpHost.d.ts +21 -0
- package/dist/esm/hosting/httpHost.js +44 -2
- package/dist/esm/hosting/httpHost.js.map +1 -1
- package/dist/esm/hosting/identityVerification.d.ts +154 -0
- package/dist/esm/hosting/identityVerification.js +135 -0
- package/dist/esm/hosting/identityVerification.js.map +1 -0
- package/dist/esm/hosting/index.d.ts +12 -3
- package/dist/esm/hosting/index.js +16 -2
- package/dist/esm/hosting/index.js.map +1 -1
- package/dist/esm/hosting/memorySessions.d.ts +9 -0
- package/dist/esm/hosting/memorySessions.js +86 -0
- package/dist/esm/hosting/memorySessions.js.map +1 -1
- package/dist/esm/hosting/nodeHost.js +8 -0
- package/dist/esm/hosting/nodeHost.js.map +1 -1
- package/dist/esm/hosting/sessionWire.d.ts +126 -0
- package/dist/esm/hosting/sessionWire.js +95 -0
- package/dist/esm/hosting/sessionWire.js.map +1 -0
- package/dist/esm/hosting/sqliteSessions.js +122 -5
- package/dist/esm/hosting/sqliteSessions.js.map +1 -1
- package/dist/esm/hosting/standingAgent.js +299 -8
- package/dist/esm/hosting/standingAgent.js.map +1 -1
- package/dist/esm/hosting/types.d.ts +166 -6
- package/dist/esm/hosting/types.js.map +1 -1
- package/dist/esm/hosting/wireOps.d.ts +52 -0
- package/dist/esm/hosting/wireOps.js +60 -0
- package/dist/esm/hosting/wireOps.js.map +1 -0
- package/dist/esm/hosting-providers.d.ts +7 -0
- package/dist/esm/hosting-providers.js +6 -0
- package/dist/esm/hosting-providers.js.map +1 -1
- package/dist/esm/identity.d.ts +2 -0
- package/dist/esm/identity.js +11 -0
- package/dist/esm/identity.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/memory-providers.d.ts +1 -0
- package/dist/esm/memory-providers.js +7 -0
- package/dist/esm/memory-providers.js.map +1 -1
- package/dist/esm/recorders/observability/commentary/artifactPhrases.d.ts +50 -0
- package/dist/esm/recorders/observability/commentary/artifactPhrases.js +88 -0
- package/dist/esm/recorders/observability/commentary/artifactPhrases.js.map +1 -0
- package/dist/esm/recorders/observability/commentary/commentaryTemplates.js +217 -8
- package/dist/esm/recorders/observability/commentary/commentaryTemplates.js.map +1 -1
- package/dist/events/registry.js +2 -0
- package/dist/events/registry.js.map +1 -1
- package/dist/hosting/admission.js +194 -0
- package/dist/hosting/admission.js.map +1 -0
- package/dist/hosting/artifactWire.js +14 -9
- package/dist/hosting/artifactWire.js.map +1 -1
- package/dist/hosting/envelope.js +84 -1
- package/dist/hosting/envelope.js.map +1 -1
- package/dist/hosting/errors.js +203 -1
- package/dist/hosting/errors.js.map +1 -1
- package/dist/hosting/httpHost.js +43 -1
- package/dist/hosting/httpHost.js.map +1 -1
- package/dist/hosting/identityVerification.js +140 -0
- package/dist/hosting/identityVerification.js.map +1 -0
- package/dist/hosting/index.js +38 -1
- package/dist/hosting/index.js.map +1 -1
- package/dist/hosting/memorySessions.js +86 -0
- package/dist/hosting/memorySessions.js.map +1 -1
- package/dist/hosting/nodeHost.js +8 -0
- package/dist/hosting/nodeHost.js.map +1 -1
- package/dist/hosting/sessionWire.js +100 -0
- package/dist/hosting/sessionWire.js.map +1 -0
- package/dist/hosting/sqliteSessions.js +121 -4
- package/dist/hosting/sqliteSessions.js.map +1 -1
- package/dist/hosting/standingAgent.js +297 -6
- package/dist/hosting/standingAgent.js.map +1 -1
- package/dist/hosting/types.js.map +1 -1
- package/dist/hosting/wireOps.js +65 -0
- package/dist/hosting/wireOps.js.map +1 -0
- package/dist/hosting-providers.js +10 -1
- package/dist/hosting-providers.js.map +1 -1
- package/dist/identity.js +16 -1
- package/dist/identity.js.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/memory-providers.js +12 -1
- package/dist/memory-providers.js.map +1 -1
- package/dist/recorders/observability/commentary/artifactPhrases.js +94 -0
- package/dist/recorders/observability/commentary/artifactPhrases.js.map +1 -0
- package/dist/recorders/observability/commentary/commentaryTemplates.js +217 -8
- package/dist/recorders/observability/commentary/commentaryTemplates.js.map +1 -1
- package/dist/types/adapters/code/local.d.ts +16 -0
- package/dist/types/adapters/code/local.d.ts.map +1 -1
- package/dist/types/adapters/google/aiPlatform.d.ts +454 -0
- package/dist/types/adapters/google/aiPlatform.d.ts.map +1 -0
- package/dist/types/adapters/hosting/agentcore.d.ts.map +1 -1
- package/dist/types/adapters/hosting/googleAgentEngine.d.ts +157 -0
- package/dist/types/adapters/hosting/googleAgentEngine.d.ts.map +1 -0
- package/dist/types/adapters/identity/google.d.ts +180 -0
- package/dist/types/adapters/identity/google.d.ts.map +1 -0
- package/dist/types/adapters/identity/jwks.d.ts +125 -0
- package/dist/types/adapters/identity/jwks.d.ts.map +1 -0
- package/dist/types/adapters/memory/agentcore.d.ts +19 -0
- package/dist/types/adapters/memory/agentcore.d.ts.map +1 -1
- package/dist/types/adapters/memory/memoryBank.d.ts +391 -0
- package/dist/types/adapters/memory/memoryBank.d.ts.map +1 -0
- package/dist/types/adapters/types.d.ts +86 -0
- package/dist/types/adapters/types.d.ts.map +1 -1
- package/dist/types/artifacts/index.d.ts +1 -0
- package/dist/types/artifacts/index.d.ts.map +1 -1
- package/dist/types/artifacts/recordingArtifact.d.ts +77 -0
- package/dist/types/artifacts/recordingArtifact.d.ts.map +1 -0
- package/dist/types/core/Agent.d.ts +66 -2
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/agent/repeatedCall.d.ts +151 -0
- package/dist/types/core/agent/repeatedCall.d.ts.map +1 -0
- package/dist/types/core/agent/stages/toolCalls.d.ts +12 -0
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +82 -0
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/codeRunnerTool.d.ts +31 -0
- package/dist/types/core/codeRunnerTool.d.ts.map +1 -1
- package/dist/types/events/payloads.d.ts +22 -0
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/events/registry.d.ts +3 -1
- package/dist/types/events/registry.d.ts.map +1 -1
- package/dist/types/hosting/admission.d.ts +181 -0
- package/dist/types/hosting/admission.d.ts.map +1 -0
- package/dist/types/hosting/artifactWire.d.ts +8 -5
- package/dist/types/hosting/artifactWire.d.ts.map +1 -1
- package/dist/types/hosting/envelope.d.ts +34 -0
- package/dist/types/hosting/envelope.d.ts.map +1 -1
- package/dist/types/hosting/errors.d.ts +131 -0
- package/dist/types/hosting/errors.d.ts.map +1 -1
- package/dist/types/hosting/httpHost.d.ts +21 -0
- package/dist/types/hosting/httpHost.d.ts.map +1 -1
- package/dist/types/hosting/identityVerification.d.ts +155 -0
- package/dist/types/hosting/identityVerification.d.ts.map +1 -0
- package/dist/types/hosting/index.d.ts +12 -3
- package/dist/types/hosting/index.d.ts.map +1 -1
- package/dist/types/hosting/memorySessions.d.ts +9 -0
- package/dist/types/hosting/memorySessions.d.ts.map +1 -1
- package/dist/types/hosting/nodeHost.d.ts.map +1 -1
- package/dist/types/hosting/sessionWire.d.ts +127 -0
- package/dist/types/hosting/sessionWire.d.ts.map +1 -0
- package/dist/types/hosting/sqliteSessions.d.ts.map +1 -1
- package/dist/types/hosting/standingAgent.d.ts.map +1 -1
- package/dist/types/hosting/types.d.ts +166 -6
- package/dist/types/hosting/types.d.ts.map +1 -1
- package/dist/types/hosting/wireOps.d.ts +53 -0
- package/dist/types/hosting/wireOps.d.ts.map +1 -0
- package/dist/types/hosting-providers.d.ts +7 -0
- package/dist/types/hosting-providers.d.ts.map +1 -1
- package/dist/types/identity.d.ts +2 -0
- package/dist/types/identity.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/memory-providers.d.ts +1 -0
- package/dist/types/memory-providers.d.ts.map +1 -1
- package/dist/types/recorders/observability/commentary/artifactPhrases.d.ts +51 -0
- package/dist/types/recorders/observability/commentary/artifactPhrases.d.ts.map +1 -0
- package/dist/types/recorders/observability/commentary/commentaryTemplates.d.ts.map +1 -1
- package/package.json +28 -14
|
@@ -28,6 +28,9 @@ import type { MiddlewareAsk } from '../core/pause.js';
|
|
|
28
28
|
import type { AgentRunCheckpoint } from '../core/runCheckpoint.js';
|
|
29
29
|
import type { Unsubscribe } from '../events/dispatcher.js';
|
|
30
30
|
import type { ArtifactWireRequest, ArtifactWireResult } from './artifactWire.js';
|
|
31
|
+
import type { IdentityVerificationOptions } from './identityVerification.js';
|
|
32
|
+
import type { AdmissionPolicy } from './admission.js';
|
|
33
|
+
import type { SessionSummary, SessionWireRequest, SessionWireResult } from './sessionWire.js';
|
|
31
34
|
export type { Unsubscribe };
|
|
32
35
|
/**
|
|
33
36
|
* Something a host can do BEYOND the baseline of "accept a request, deliver one
|
|
@@ -125,10 +128,29 @@ export interface HostRequest {
|
|
|
125
128
|
* identity-composed scope — exactly the scope the run's own tools used.
|
|
126
129
|
*/
|
|
127
130
|
readonly artifact?: ArtifactWireRequest;
|
|
131
|
+
/**
|
|
132
|
+
* A session-history operation this request carries INSTEAD of a message
|
|
133
|
+
* (9.26.0) — `list` (the verified caller's own sessions) or `transcript`
|
|
134
|
+
* (one owned session's messages).
|
|
135
|
+
*
|
|
136
|
+
* Its PRESENCE is the discriminant, exactly as {@link artifact}'s is: a
|
|
137
|
+
* request carrying `session` reads history and never starts or resumes a
|
|
138
|
+
* run. Both ops REQUIRE a door that verifies identity
|
|
139
|
+
* ({@link StandingAgentBaseOptions.identity}) — reading "your" conversations
|
|
140
|
+
* from an unverified header is enumeration — and both are refused by name
|
|
141
|
+
* where the session store keeps no owner index.
|
|
142
|
+
*/
|
|
143
|
+
readonly session?: SessionWireRequest;
|
|
128
144
|
/**
|
|
129
145
|
* Transport headers with lower-cased names, as delivered. Present so a
|
|
130
146
|
* handler can map its own conventions (a correlation id, a tenant) without
|
|
131
147
|
* the port having to guess which ones matter.
|
|
148
|
+
*
|
|
149
|
+
* Since 9.26.0 this is also where a door that verifies identity reads the
|
|
150
|
+
* caller's credential from — `authorization: Bearer <token>`, the one
|
|
151
|
+
* vocabulary every transport in this package normalizes onto. The port still
|
|
152
|
+
* does not interpret headers itself; it hands them to whoever was configured
|
|
153
|
+
* to.
|
|
132
154
|
*/
|
|
133
155
|
readonly headers?: Readonly<Record<string, string>>;
|
|
134
156
|
/** Aborted when the caller goes away. */
|
|
@@ -184,6 +206,22 @@ export interface HostReply {
|
|
|
184
206
|
* merely because the wire could not describe it.
|
|
185
207
|
*/
|
|
186
208
|
artifact?(result: ArtifactWireResult): void;
|
|
209
|
+
/**
|
|
210
|
+
* End the reply with **resolved session history** (9.26.0): the caller's own
|
|
211
|
+
* sessions for a `list`, one owned session's messages for a `transcript`.
|
|
212
|
+
*
|
|
213
|
+
* The terminal a request carrying {@link HostRequest.session} ends through.
|
|
214
|
+
* A session the verified caller does not own does not end here — it ends
|
|
215
|
+
* through `fail` with the one indistinguishable not-found, because "exists
|
|
216
|
+
* but not yours" is an oracle for which ids are real.
|
|
217
|
+
*
|
|
218
|
+
* Optional on the TYPE for the same reason {@link artifact} is: a minimal
|
|
219
|
+
* adapter need not implement it, and every shipped adapter does. When it is
|
|
220
|
+
* absent the composer ends the reply with a named refusal
|
|
221
|
+
* (`SessionsNotCarriedError`) rather than improvising a body shape no client
|
|
222
|
+
* was written against.
|
|
223
|
+
*/
|
|
224
|
+
sessions?(result: SessionWireResult): void;
|
|
187
225
|
/**
|
|
188
226
|
* A piece of the answer, as it is produced.
|
|
189
227
|
*
|
|
@@ -600,13 +638,17 @@ export type DurabilityMode = 'exit' | 'async' | 'sync';
|
|
|
600
638
|
* only when the resolution actually reads the store (a request carrying a
|
|
601
639
|
* `userId`); a session-only resolution composes its scope from the request
|
|
602
640
|
* alone and wakes nothing.
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
*
|
|
641
|
+
* - `'transcript'` — a verified owner is READING that session's messages back
|
|
642
|
+
* (9.26.0). Nothing runs and nothing is written; the store is woken because
|
|
643
|
+
* it is about to be read from, which is the only promise this hook ever
|
|
644
|
+
* made.
|
|
645
|
+
*
|
|
646
|
+
* `'resume'` was absent until 7.19, `'artifact'` until 9.23 and `'transcript'`
|
|
647
|
+
* until 9.26, because nothing could produce them: naming reasons nothing fires
|
|
648
|
+
* would be an interface describing a system that does not exist. Something
|
|
649
|
+
* produces each of them now.
|
|
608
650
|
*/
|
|
609
|
-
export type WakeReason = 'invoke' | 'resume' | 'artifact';
|
|
651
|
+
export type WakeReason = 'invoke' | 'resume' | 'artifact' | 'transcript';
|
|
610
652
|
/**
|
|
611
653
|
* The port: where a conversation lives between requests.
|
|
612
654
|
*
|
|
@@ -625,6 +667,63 @@ export interface SessionLifecycle {
|
|
|
625
667
|
* a store that could not wake cannot be read from either.
|
|
626
668
|
*/
|
|
627
669
|
onWake?(sessionId: string, reason: WakeReason): void | Promise<void>;
|
|
670
|
+
/**
|
|
671
|
+
* OPTIONAL (9.26.0) — the sessions this user owns, newest first.
|
|
672
|
+
*
|
|
673
|
+
* Feature-detected, never assumed. The two required methods are a key/value
|
|
674
|
+
* map and most stores are exactly that; demanding a secondary index of every
|
|
675
|
+
* implementation that will ever exist would be this port breaking its own
|
|
676
|
+
* rule ("anything a real store also wants is that store's API, not a demand
|
|
677
|
+
* this port makes"). A store that leaves this absent makes
|
|
678
|
+
* `{ op: 'session-list' }` refuse BY NAME, naming the store's limitation —
|
|
679
|
+
* never answer "you have no sessions", which is an answer nobody could
|
|
680
|
+
* distinguish from the truth.
|
|
681
|
+
*
|
|
682
|
+
* **Ownership is derived, never declared.** `persist` takes no owner and
|
|
683
|
+
* gains none: a store fills its index from the stored envelope itself
|
|
684
|
+
* (`envelopeOwner`), which reads the `principal` on the conversation the
|
|
685
|
+
* composer put there. A store that let a caller state an owner would be a
|
|
686
|
+
* store where owning somebody's session is a matter of asking for it.
|
|
687
|
+
*
|
|
688
|
+
* **And established ONCE.** The first turn that signs for a conversation owns
|
|
689
|
+
* it; no later write moves that — not a leaner identity (which would erase
|
|
690
|
+
* it) and not a different one (which would transfer it). Both shipped stores
|
|
691
|
+
* implement the index that way, and a custom one that let the last writer win
|
|
692
|
+
* would undo every ownership check made against it one turn later.
|
|
693
|
+
*
|
|
694
|
+
* A conversation that ran anonymously has no owner and appears in nobody's
|
|
695
|
+
* list. That is the honest consequence of deriving rather than inventing.
|
|
696
|
+
*/
|
|
697
|
+
listByUser?(userId: string, options?: SessionListOptions): Promise<SessionListPage>;
|
|
698
|
+
/**
|
|
699
|
+
* OPTIONAL (9.26.0) — who owns one session, or `undefined` for a session
|
|
700
|
+
* that does not exist OR names no owner.
|
|
701
|
+
*
|
|
702
|
+
* The deliberate ambiguity is the same one `ArtifactStore.get` makes:
|
|
703
|
+
* "missing" and "not yours" must be indistinguishable from the outside, and
|
|
704
|
+
* a store that answered them differently would hand a caller an oracle for
|
|
705
|
+
* which session ids are real.
|
|
706
|
+
*
|
|
707
|
+
* Implement it beside `listByUser` — a door that can list but not check
|
|
708
|
+
* ownership can hand somebody a list and then refuse to open any of it.
|
|
709
|
+
*/
|
|
710
|
+
ownerOf?(sessionId: string): Promise<string | undefined>;
|
|
711
|
+
}
|
|
712
|
+
/** Paging for {@link SessionLifecycle.listByUser} — the cursor convention every
|
|
713
|
+
* listing in this package follows. */
|
|
714
|
+
export interface SessionListOptions {
|
|
715
|
+
/** Continuation token from a previous page. Omit for the first page. */
|
|
716
|
+
readonly cursor?: string;
|
|
717
|
+
/** Maximum rows this page. Stores may cap it lower. */
|
|
718
|
+
readonly limit?: number;
|
|
719
|
+
}
|
|
720
|
+
/** One page of a user's sessions. Never carries message content — a listing
|
|
721
|
+
* says WHICH conversations exist, and `session-transcript` says what is in
|
|
722
|
+
* one. */
|
|
723
|
+
export interface SessionListPage {
|
|
724
|
+
readonly sessions: readonly SessionSummary[];
|
|
725
|
+
/** Present iff more pages exist. */
|
|
726
|
+
readonly cursor?: string;
|
|
628
727
|
}
|
|
629
728
|
/**
|
|
630
729
|
* What to do when a request arrives for a session that already has a run in
|
|
@@ -661,6 +760,67 @@ export interface StandingAgentBaseOptions<TH extends HostHandle = HostHandle> {
|
|
|
661
760
|
};
|
|
662
761
|
/** Default `'reject'`. See {@link ConcurrentInvokePolicy}. */
|
|
663
762
|
readonly onConcurrentInvoke?: ConcurrentInvokePolicy;
|
|
763
|
+
/**
|
|
764
|
+
* Verify WHO is calling, instead of believing a header (9.26.0).
|
|
765
|
+
*
|
|
766
|
+
* With this set, every request's `Authorization: Bearer <token>` is checked
|
|
767
|
+
* BEFORE the run's identity/scope is composed, and the proven user id is the
|
|
768
|
+
* one that reaches `EventMeta.principal`, `ctx.identity`, the memory
|
|
769
|
+
* namespace and the artifact scope. A request that NAMES a user it cannot
|
|
770
|
+
* prove is refused by name — never downgraded to anonymous, never served
|
|
771
|
+
* under the name it claimed.
|
|
772
|
+
*
|
|
773
|
+
* **It also decides whose sessions are whose.** With a verifier configured,
|
|
774
|
+
* EVERY door that opens a stored conversation asks one question first — the
|
|
775
|
+
* two session-history ops and an ordinary turn alike: does this session
|
|
776
|
+
* belong to the caller who proved who they are? A turn naming somebody
|
|
777
|
+
* else's session is refused with the same indistinguishable
|
|
778
|
+
* `SessionNotFoundError` a transcript gets, before a line of that
|
|
779
|
+
* conversation is hydrated into a model's context and before anything is
|
|
780
|
+
* written back. Ownership is the `principal` the first turn signed with, and
|
|
781
|
+
* no later turn moves it.
|
|
782
|
+
*
|
|
783
|
+
* The consequence to plan for: conversations stored BEFORE a door started
|
|
784
|
+
* verifying name no owner, so they cannot be continued at one that does. That
|
|
785
|
+
* is a loud refusal by design — the alternative is a door that hands old
|
|
786
|
+
* conversations to whoever names them first.
|
|
787
|
+
*
|
|
788
|
+
* Unset — the default — nothing changes: `HostRequest.userId` is read exactly
|
|
789
|
+
* as it has been since 9.12.0, and every release's behaviour before this one
|
|
790
|
+
* is byte-identical. Which is right depends on what stands in front of you,
|
|
791
|
+
* and that is a fact only the deployment knows.
|
|
792
|
+
*
|
|
793
|
+
* @example
|
|
794
|
+
* identity: { verify: jwksIdentity({
|
|
795
|
+
* jwksUrl: 'https://idp.example.com/.well-known/jwks.json',
|
|
796
|
+
* issuer: 'https://idp.example.com/',
|
|
797
|
+
* audience:'my-api',
|
|
798
|
+
* }).verify }
|
|
799
|
+
*/
|
|
800
|
+
readonly identity?: IdentityVerificationOptions;
|
|
801
|
+
/**
|
|
802
|
+
* Decide whether a request runs at all, BEFORE any model is called (9.26.0).
|
|
803
|
+
*
|
|
804
|
+
* Called once per turn with the verified caller, the session and what that
|
|
805
|
+
* caller has spent inside a rolling window; it answers `'allow'`,
|
|
806
|
+
* `{ queue: true }` (run it, but behind this session's other work) or
|
|
807
|
+
* `{ refuse: '<sentence>' }`. `turnsPerHour({ limit })` is the shipped
|
|
808
|
+
* reference policy.
|
|
809
|
+
*
|
|
810
|
+
* Unset — the default — no accounting is kept, no listener is installed, and
|
|
811
|
+
* not one line of this runs.
|
|
812
|
+
*
|
|
813
|
+
* **The honest boundary, stated once:** accounting is PER PROCESS. Two
|
|
814
|
+
* containers each keep their own window, so a limit of 20 across three
|
|
815
|
+
* replicas is a limit of 60. Centralize by writing a policy that consults
|
|
816
|
+
* your own store — the `decide` seam is exactly where that goes.
|
|
817
|
+
*
|
|
818
|
+
* And the second one: a turn is counted when it is ADMITTED, so a request
|
|
819
|
+
* the lane then refuses as a concurrent run still counts against the
|
|
820
|
+
* window. Counting later would let a burst of simultaneous requests each be
|
|
821
|
+
* decided against a window none of them had joined.
|
|
822
|
+
*/
|
|
823
|
+
readonly admission?: AdmissionPolicy;
|
|
664
824
|
/**
|
|
665
825
|
* How often a run's progress becomes crash-survivable. Default `'exit'` —
|
|
666
826
|
* one write when the run finishes, which is what every release before this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/hosting/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/hosting/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,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C;IACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,CAAC,OAAO,EAAE,CAAC;CACjD;AAED;iFACiF;AACjF,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C;;;;;;;;;GASG;AACH,MAAM,WAAW,0BAA0B,CAAC,EAAE,SAAS,UAAU,GAAG,UAAU,CAC5E,SAAQ,wBAAwB,CAAC,EAAE,CAAC;IACpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,kFAAkF;IAClF,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAC;IAClC,+DAA+D;IAC/D,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB,CAAC,EAAE,SAAS,UAAU,GAAG,UAAU,CAC1E,SAAQ,wBAAwB,CAAC,EAAE,CAAC;IACpC,mEAAmE;IACnE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,KAAK,CAAC;IACnC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACrC;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,oBAAoB,CAAC,EAAE,SAAS,UAAU,GAAG,UAAU,IAC/D,0BAA0B,CAAC,EAAE,CAAC,GAC9B,wBAAwB,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* hosting/wireOps — the ONE list of operations a request body's `op` may name.
|
|
3
|
+
*
|
|
4
|
+
* A hosting request is ordinarily a MESSAGE. Some are not: since 9.23 a body
|
|
5
|
+
* carrying `{ op: 'artifact-head' | 'artifact-get', ref }` redeems a claim
|
|
6
|
+
* ticket, and since 9.26 one carrying `{ op: 'session-list' }` or
|
|
7
|
+
* `{ op: 'session-transcript', sessionId }` asks the verified caller's own
|
|
8
|
+
* conversation history. Two DOMAINS now share one field.
|
|
9
|
+
*
|
|
10
|
+
* That is exactly the shape where a grammar quietly forks. Each domain has its
|
|
11
|
+
* own reader (`readArtifactWireOp`, `readSessionWireOp`), each reader must
|
|
12
|
+
* decline the other domain's ops without claiming them — and somebody has to
|
|
13
|
+
* own "this is not an op anybody speaks", which is the refusal that keeps a
|
|
14
|
+
* typo from becoming a conversation turn with a ref as its input.
|
|
15
|
+
*
|
|
16
|
+
* So the names live here, once, and both readers ask this module the two
|
|
17
|
+
* questions they cannot answer alone: *is this somebody's op?* and *what do we
|
|
18
|
+
* say when it is nobody's?* Either reader produces the same refusal, listing
|
|
19
|
+
* the same operations, in the same words — so the answer never depends on which
|
|
20
|
+
* dialect happened to call which reader first.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Every operation this package's wire grammar knows, keyed by the name the code
|
|
24
|
+
* uses for it. The VALUES are the wire spelling — a body says `op:
|
|
25
|
+
* 'artifact-head'`, because a field named `op` has to say which domain it
|
|
26
|
+
* belongs to.
|
|
27
|
+
*/
|
|
28
|
+
export declare const WIRE_OPS: {
|
|
29
|
+
/** The claim ticket's metadata — the render-by-ref decision (9.23.0). */
|
|
30
|
+
readonly artifactHead: "artifact-head";
|
|
31
|
+
/** Metadata + the payload (9.23.0). */
|
|
32
|
+
readonly artifactGet: "artifact-get";
|
|
33
|
+
/** The verified caller's own sessions (9.26.0). */
|
|
34
|
+
readonly sessionList: "session-list";
|
|
35
|
+
/** One owned session's message history (9.26.0). */
|
|
36
|
+
readonly sessionTranscript: "session-transcript";
|
|
37
|
+
};
|
|
38
|
+
/** One wire operation name, as a body spells it. */
|
|
39
|
+
export type WireOpName = (typeof WIRE_OPS)[keyof typeof WIRE_OPS];
|
|
40
|
+
/** Every op name, in the order a refusal lists them. */
|
|
41
|
+
export declare const ALL_WIRE_OPS: readonly WireOpName[];
|
|
42
|
+
/** Is this string an operation some reader in this package owns? */
|
|
43
|
+
export declare function isWireOp(candidate: unknown): candidate is WireOpName;
|
|
44
|
+
/**
|
|
45
|
+
* The ONE refusal for a body that named an operation nobody speaks.
|
|
46
|
+
*
|
|
47
|
+
* A caller who typo'd `'artifact-hed'` and silently got a conversation turn
|
|
48
|
+
* (with the ref as garbage input) is the accepted-and-silently-wrong failure
|
|
49
|
+
* this exists to prevent: a body that NAMES an op never falls through to a
|
|
50
|
+
* model turn. `httpHost` answers it as that request's 400.
|
|
51
|
+
*/
|
|
52
|
+
export declare function refuseUnknownWireOp(op: unknown): never;
|
|
53
|
+
//# sourceMappingURL=wireOps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wireOps.d.ts","sourceRoot":"","sources":["../../../src/hosting/wireOps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;IACnB,yEAAyE;;IAEzE,uCAAuC;;IAEvC,mDAAmD;;IAEnD,oDAAoD;;CAE5C,CAAC;AAEX,oDAAoD;AACpD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAElE,wDAAwD;AACxD,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAA4B,CAAC;AAE3E,oEAAoE;AACpE,wBAAgB,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,IAAI,UAAU,CAEpE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,OAAO,GAAG,KAAK,CAQtD"}
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
* home you choose at construction: a JSON file in the runtime's own session
|
|
30
30
|
* storage (survives a stop/resume, needs no SDK), or one AgentCore Memory
|
|
31
31
|
* event per persist (outlives the session).
|
|
32
|
+
* • `agentEngineSessions({ project, location, reasoningEngine })` — a
|
|
33
|
+
* `SessionLifecycle` in Vertex AI's own session service, for the row above
|
|
34
|
+
* `sqliteSessions`: many containers sharing one conversation. The whole
|
|
35
|
+
* `CheckpointEnvelope` rides in `Session.sessionState`, which is an
|
|
36
|
+
* arbitrary JSON Struct, so there is no blob encoding to get wrong.
|
|
32
37
|
*
|
|
33
38
|
* ── How much of this is verified ─────────────────────────────────────────────
|
|
34
39
|
* `agentCoreRuntimeHost` is plain HTTP with no SDK on its path, and it passes
|
|
@@ -56,5 +61,7 @@
|
|
|
56
61
|
* symbols, one door. Import from the door.
|
|
57
62
|
*/
|
|
58
63
|
export { agentCoreRuntimeHost, agentCoreRuntimeWire, readAgentCoreConversation, agentCoreSessions, DEFAULT_SESSION_STORAGE_PATH, } from './adapters/hosting/agentcore.js';
|
|
64
|
+
export { agentEngineSessions, DEFAULT_USER_ID, SESSION_STATE_KEY, } from './adapters/hosting/googleAgentEngine.js';
|
|
65
|
+
export type { AgentEngineSessions, AgentEngineSessionsOptions, } from './adapters/hosting/googleAgentEngine.js';
|
|
59
66
|
export type { AgentCoreRuntimeHostOptions, AgentCoreSessionsOptions, AgentCoreSessionStore, AgentCoreFileSessionsOptions, AgentCoreMemorySessionsOptions, AgentCoreSessionClientLike, AgentCoreSessionEvent, BedrockAgentCoreSessionSdkModule, } from './adapters/hosting/agentcore.js';
|
|
60
67
|
//# sourceMappingURL=hosting-providers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosting-providers.d.ts","sourceRoot":"","sources":["../../src/hosting-providers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hosting-providers.d.ts","sourceRoot":"","sources":["../../src/hosting-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EACV,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC1B,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,iCAAiC,CAAC"}
|
package/dist/types/identity.d.ts
CHANGED
|
@@ -36,4 +36,6 @@ export { CredentialConsentRequiredError, type CredentialConsentRequiredContext,
|
|
|
36
36
|
export { withCredentialRetry, type WithCredentialRetryOptions, } from './identity/withCredentialRetry.js';
|
|
37
37
|
export { agentCoreIdentity, type AgentCoreIdentityOptions, type AgentCoreIdentityClientLike, type AgentCoreOauthResponse, } from './adapters/identity/agentcore.js';
|
|
38
38
|
export { vaultCredentials, type VaultCredentialsOptions } from './adapters/identity/vault.js';
|
|
39
|
+
export { googleIdentity, CLOUD_PLATFORM_SCOPE, type GoogleIdentityOptions, type GoogleImpersonation, type GoogleAuthClientLike, } from './adapters/identity/google.js';
|
|
40
|
+
export { jwksIdentity, MissingJwksSupportError, type JoseBackend, type JwksIdentityOptions, } from './adapters/identity/jwks.js';
|
|
39
41
|
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,YAAY,EACV,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,+BAA+B,EAC/B,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,E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4BAA4B,CAAC;AAIpF,YAAY,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EACL,8BAA8B,EAC9B,KAAK,gCAAgC,GACtC,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,GAC5B,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAM9F,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,KAAK,WAAW,EAChB,KAAK,mBAAmB,GACzB,MAAM,6BAA6B,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export { defaultCommentaryTemplates, extractAgentName, extractCommentaryVars, re
|
|
|
32
32
|
export { LLMCall, LLMCallBuilder, type LLMCallInput, type LLMCallOptions, type LLMCallOutput, } from './core/LLMCall.js';
|
|
33
33
|
export { type MessageApiChartDeps } from './core/agent/buildMessageApiChart.js';
|
|
34
34
|
export { buildAgentMessageApiChart, type AgentMessageApiChartDeps, } from './core/agent/buildAgentMessageApiChart.js';
|
|
35
|
-
export { Agent, AgentBuilder, type AgentArtifactsOptions, type AgentInput, type AgentOptions, type AgentOutput, type ObserverDeliveryOptions, type SkillGraphOptions, type ProviderChoice, type EscalationPolicy, } from './core/Agent.js';
|
|
35
|
+
export { Agent, AgentBuilder, type AgentArtifactsOptions, type AgentRecordingsOptions, type AgentInput, type AgentOptions, type AgentOutput, type ObserverDeliveryOptions, type SkillGraphOptions, type ProviderChoice, type EscalationPolicy, } from './core/Agent.js';
|
|
36
36
|
export { CompactionUnmeasurableError, COMPACTED_FRAME_PREFIX, DROP_NOTICE_PREFIX, foldedMessages, foldedSpanFor, isCompactedSummary, isDropNotice, slidingWindow, summarizeOldest, tokenBudget, type CompactionOptions, type CompactionRecord, type CompactionRetention, type FoldedConversation, type FoldedSpan, type RemovalFacts, type RemovalPlan, type SlidingWindowOptions, type SlidingWindowRecord, type TokenBudgetOptions, type TokenBudgetRecord, type Turn, type WindowEviction, type WindowRecord, type WindowRefusal, type WindowRefusalReason, type WindowStrategy, type WindowStrategyInput, type WindowStrategyResult, } from './core/agent/window/index.js';
|
|
37
37
|
export type { SelfExplainInclude, SelfExplainOptions } from './lib/trace-toolpack/selfExplain.js';
|
|
38
38
|
export type { ObserverDrainResult, ObserverStats } from 'footprintjs';
|
|
@@ -55,7 +55,7 @@ export { explainStatusOnlyNearMiss, readToolResultEnvelope, TOOL_RESULT_STATUSES
|
|
|
55
55
|
export { toolSessionKey, hashSessionKey, ToolTeardownTimeoutError, TOOL_TEARDOWN_TIMEOUT_MS, type TeardownScope, type TeardownReason, type TeardownOptions, } from './core/toolSessions.js';
|
|
56
56
|
export { codeRunnerTool, toolSessionsOf, TOOL_SESSIONS, type CodeRunnerToolOptions, type CodeRunnerToolScope, type HoldsToolSessions, } from './core/codeRunnerTool.js';
|
|
57
57
|
export { toolContractCheckup, formatToolContractCheckup, type ToolContractCheckup, type ToolContractProblem, type ToolContractCode, type ServerToolEntry, } from './core/toolContract.js';
|
|
58
|
-
export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, type ArtifactEventFact, type ArtifactEventSink, type ArtifactListOptions, type ArtifactListResult, type ArtifactMeta, type ArtifactOp, type ArtifactOrigin, type ArtifactPutResult, type ArtifactRecord, type ArtifactRef, type ArtifactRefusalReason, type ArtifactRetention, type ArtifactScope, type ArtifactStore, type ArtifactSweepReason, type BindArtifactsOptions, type FileArtifactsOptions, type GcsArtifactsOptions, type InMemoryArtifacts, type InMemoryArtifactsOptions, type PutArtifactInput, type S3ArtifactsOptions, type SqliteArtifacts, type SqliteArtifactsOptions, type SweptArtifact, type ToolArtifactPutInput, type ToolArtifacts, } from './artifacts/index.js';
|
|
58
|
+
export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts, RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, type ArtifactEventFact, type ArtifactEventSink, type ArtifactListOptions, type ArtifactListResult, type ArtifactMeta, type ArtifactOp, type ArtifactOrigin, type ArtifactPutResult, type ArtifactRecord, type ArtifactRef, type ArtifactRefusalReason, type ArtifactRetention, type ArtifactScope, type ArtifactStore, type ArtifactSweepReason, type BindArtifactsOptions, type FileArtifactsOptions, type GcsArtifactsOptions, type InMemoryArtifacts, type InMemoryArtifactsOptions, type PutArtifactInput, type RecordingMintFacts, type S3ArtifactsOptions, type SqliteArtifacts, type SqliteArtifactsOptions, type SweptArtifact, type ToolArtifactPutInput, type ToolArtifacts, } from './artifacts/index.js';
|
|
59
59
|
export { canGetArtifactStream, canPutArtifactStream, canStreamArtifacts, type ArtifactStreamPutInput, type ArtifactStreamRecord, type StreamingArtifactStore, } from './artifacts/index.js';
|
|
60
60
|
export { assertToolWants, isPlacedToolResult, placedResultKind, PRESENT_TOOL_NAME, type ArtifactPlacement, type PlacedToolResult, type PresentedResult, type PresentSnapshot, type ToolWants, } from './artifacts/index.js';
|
|
61
61
|
export { Sequence, SequenceBuilder, type SequenceInput, type SequenceOptions, type SequenceOutput, } from './core-flow/Sequence.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAOpD,YAAY,EAEV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EAEV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,EAEhB,SAAS,EAET,eAAe,EACf,eAAe,GAChB,MAAM,aAAa,CAAC;AAGrB,cAAc,qBAAqB,CAAC;AAIpC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,YAAY,EAKjB,SAAS,EACT,KAAK,SAAS,EAKd,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,aAAa,GACnB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAWxD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,MAAM,wCAAwC,CAAC;AAGhD,YAAY,EA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AmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAOpD,YAAY,EAEV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EAEV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,cAAc,EACd,gBAAgB,EAEhB,SAAS,EAET,eAAe,EACf,eAAe,GAChB,MAAM,aAAa,CAAC;AAGrB,cAAc,qBAAqB,CAAC;AAIpC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,YAAY,EAKjB,SAAS,EACT,KAAK,SAAS,EAKd,YAAY,EACZ,KAAK,SAAS,EACd,KAAK,aAAa,GACnB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EACL,gBAAgB,EAChB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAWxD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,KA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CAAkC,CAAC;AAS1C,cAAc,qBAAqB,CAAC;AAWpC,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,cAAc,EACd,KAAK,qBAAqB,EAC1B,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
export { RedisStore, type RedisStoreOptions, type RedisLikeClient, type RedisLikePipeline, } from './adapters/memory/redis.js';
|
|
24
24
|
export { AgentCoreStore, UnreadableMemoryEntryError, type AgentCoreStoreOptions, type AgentCoreLikeClient, type AgentCoreEvent, type AgentCoreMemoryRecord, } from './adapters/memory/agentcore.js';
|
|
25
|
+
export { memoryBankStore, MemoryBankStore, MAX_PAGE_SIZE, scoreFromDistance, type MemoryBankStoreOptions, type MemoryScope, } from './adapters/memory/memoryBank.js';
|
|
25
26
|
export { sqliteVectorStore, UnreadableIndexFileError, type SqliteVectorStore, type SqliteVectorStoreOptions, type SqliteVectorDatabaseLike, type SqliteVectorStatementLike, type SqliteVectorModuleLike, } from './adapters/memory/sqliteVector.js';
|
|
26
27
|
export { SqliteUnavailableError } from './lib/sqliteUnavailable.js';
|
|
27
28
|
export { EmbedderMismatchError } from './lib/embedderMismatch.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-providers.d.ts","sourceRoot":"","sources":["../../src/memory-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,EACL,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"memory-providers.d.ts","sourceRoot":"","sources":["../../src/memory-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,EACL,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EACL,eAAe,EACf,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,WAAW,GACjB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,GAC5B,MAAM,mCAAmC,CAAC;AAI3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAOpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAKlE,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,WAAW,GACjB,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EACL,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,GACzB,MAAM,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* artifactPhrases — the plain-English vocabulary the artifact / tool-result
|
|
3
|
+
* commentary lines are built from, plus the two size humanizers.
|
|
4
|
+
*
|
|
5
|
+
* Why its own module (and not more branches inside `commentaryTemplates.ts`):
|
|
6
|
+
* these are TRANSLATIONS of library unions (`ArtifactOp`,
|
|
7
|
+
* `ArtifactRefusalReason`, `ArtifactSweepReason`) into words a non-engineer
|
|
8
|
+
* reads. Keeping them here means a new union member is one edit in one place —
|
|
9
|
+
* and the exhaustive `Record<Union, string>` types below make the compiler,
|
|
10
|
+
* not a reviewer, the thing that catches the omission. (`PermissionCapability`
|
|
11
|
+
* taught the repo what two drifting copies of one union cost.)
|
|
12
|
+
*
|
|
13
|
+
* LAW, inherited from the artifact events themselves: META ONLY. These
|
|
14
|
+
* sentences may say how BIG a payload was and what KIND it was; they never
|
|
15
|
+
* carry the payload, a digest, or a raw refusal `detail` string. A ref is an
|
|
16
|
+
* identifier, not prose — it belongs in DETAILS, so no phrase here prints one.
|
|
17
|
+
*
|
|
18
|
+
* Not exported from any barrel: this is prose plumbing for the commentary
|
|
19
|
+
* engine, not public API.
|
|
20
|
+
*/
|
|
21
|
+
import type { ArtifactOp, ArtifactRefusalReason } from '../../../artifacts/capability.js';
|
|
22
|
+
import type { ArtifactSweepReason } from '../../../artifacts/types.js';
|
|
23
|
+
/**
|
|
24
|
+
* Humanize a byte count for prose. Deliberately a LOCAL copy of the same
|
|
25
|
+
* three-branch rule `lib/bug-report/build.ts#formatBytes` uses: the commentary
|
|
26
|
+
* engine is a leaf that a viewer bundles on its own, and importing a
|
|
27
|
+
* bug-report module (zip building, manifests) to borrow four lines would drag
|
|
28
|
+
* that whole graph in behind a sentence. The shapes are pinned by tests on
|
|
29
|
+
* both sides.
|
|
30
|
+
*/
|
|
31
|
+
export declare function humanizeBytes(bytes: number): string;
|
|
32
|
+
/**
|
|
33
|
+
* Humanize a character count for prose — `tools.result_refused` measures the
|
|
34
|
+
* stringified result in CHARACTERS, not bytes, and saying "bytes" there would
|
|
35
|
+
* be a small lie in the one sentence whose whole job is the true size.
|
|
36
|
+
*/
|
|
37
|
+
export declare function humanizeChars(chars: number): string;
|
|
38
|
+
/** What was being attempted at the door that refused. Exhaustive by type. */
|
|
39
|
+
export declare const ARTIFACT_OP_PHRASES: Readonly<Record<ArtifactOp, string>>;
|
|
40
|
+
/** Why the door said no, in a sentence a reader can act on. Exhaustive. */
|
|
41
|
+
export declare const ARTIFACT_REFUSAL_PHRASES: Readonly<Record<ArtifactRefusalReason, string>>;
|
|
42
|
+
/** Why an artifact left the store without its owner asking. Exhaustive. */
|
|
43
|
+
export declare const ARTIFACT_SWEEP_PHRASES: Readonly<Record<ArtifactSweepReason, string>>;
|
|
44
|
+
/**
|
|
45
|
+
* Look a phrase up without ever rendering a blank. An event that arrives with
|
|
46
|
+
* a vocabulary this build does not know (an older or newer emitter) still gets
|
|
47
|
+
* an honest sentence: we say we do not know, rather than printing the raw
|
|
48
|
+
* union member into prose or leaving a hole where the reason should be.
|
|
49
|
+
*/
|
|
50
|
+
export declare function phraseFor(table: Readonly<Record<string, string>>, value: string | undefined, fallback: string): string;
|
|
51
|
+
//# sourceMappingURL=artifactPhrases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifactPhrases.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/commentary/artifactPhrases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKnD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAQpE,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAUpF,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAIhF,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACvC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,QAAQ,EAAE,MAAM,GACf,MAAM,CAGR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commentaryTemplates.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/commentary/commentaryTemplates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"commentaryTemplates.d.ts","sourceRoot":"","sources":["../../../../../src/recorders/observability/commentary/commentaryTemplates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAUvE;;;2EAG2E;AAC3E,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,mBAsRxC,CAAC;AAEF;;6CAE6C;AAC7C,MAAM,WAAW,iBAAiB;IAChC;6EACyE;IACzE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;2EAGuE;IACvE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CACxE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CA+MzF;AAmBD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,mBAAmB,EAC1B,GAAG,EAAE,iBAAiB,EACtB,SAAS,GAAE,mBAAgD,GAC1D,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0XxB;AAgCD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,EAAE,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAS3F;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAEvF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentfootprint",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.27.0",
|
|
4
4
|
"description": "The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -274,12 +274,15 @@
|
|
|
274
274
|
"@aws-sdk/client-xray": "*",
|
|
275
275
|
"@google-cloud/storage": "*",
|
|
276
276
|
"@google/genai": "*",
|
|
277
|
+
"@googleapis/aiplatform": "*",
|
|
277
278
|
"@huggingface/transformers": "*",
|
|
278
279
|
"@modelcontextprotocol/sdk": "*",
|
|
279
280
|
"@opentelemetry/api": "*",
|
|
280
281
|
"@yarflam/potion-base-8m": "*",
|
|
281
282
|
"footprintjs": "^9.15.0",
|
|
283
|
+
"google-auth-library": "*",
|
|
282
284
|
"ioredis": "*",
|
|
285
|
+
"jose": "*",
|
|
283
286
|
"openai": "*",
|
|
284
287
|
"pg": "*",
|
|
285
288
|
"unpdf": "*",
|
|
@@ -289,16 +292,13 @@
|
|
|
289
292
|
"@anthropic-ai/sdk": {
|
|
290
293
|
"optional": true
|
|
291
294
|
},
|
|
292
|
-
"
|
|
293
|
-
"optional": true
|
|
294
|
-
},
|
|
295
|
-
"@aws-sdk/client-bedrock-runtime": {
|
|
295
|
+
"@aws-sdk/client-bedrock-agent-runtime": {
|
|
296
296
|
"optional": true
|
|
297
297
|
},
|
|
298
298
|
"@aws-sdk/client-bedrock-agentcore": {
|
|
299
299
|
"optional": true
|
|
300
300
|
},
|
|
301
|
-
"@aws-sdk/client-bedrock-
|
|
301
|
+
"@aws-sdk/client-bedrock-runtime": {
|
|
302
302
|
"optional": true
|
|
303
303
|
},
|
|
304
304
|
"@aws-sdk/client-cloudwatch-logs": {
|
|
@@ -313,7 +313,16 @@
|
|
|
313
313
|
"@aws-sdk/client-xray": {
|
|
314
314
|
"optional": true
|
|
315
315
|
},
|
|
316
|
-
"
|
|
316
|
+
"@google-cloud/storage": {
|
|
317
|
+
"optional": true
|
|
318
|
+
},
|
|
319
|
+
"@google/genai": {
|
|
320
|
+
"optional": true
|
|
321
|
+
},
|
|
322
|
+
"@googleapis/aiplatform": {
|
|
323
|
+
"optional": true
|
|
324
|
+
},
|
|
325
|
+
"@huggingface/transformers": {
|
|
317
326
|
"optional": true
|
|
318
327
|
},
|
|
319
328
|
"@modelcontextprotocol/sdk": {
|
|
@@ -322,25 +331,28 @@
|
|
|
322
331
|
"@opentelemetry/api": {
|
|
323
332
|
"optional": true
|
|
324
333
|
},
|
|
325
|
-
"
|
|
334
|
+
"@yarflam/potion-base-8m": {
|
|
326
335
|
"optional": true
|
|
327
336
|
},
|
|
328
|
-
"
|
|
337
|
+
"google-auth-library": {
|
|
329
338
|
"optional": true
|
|
330
339
|
},
|
|
331
|
-
"
|
|
340
|
+
"ioredis": {
|
|
332
341
|
"optional": true
|
|
333
342
|
},
|
|
334
|
-
"
|
|
343
|
+
"jose": {
|
|
335
344
|
"optional": true
|
|
336
345
|
},
|
|
337
|
-
"
|
|
346
|
+
"openai": {
|
|
338
347
|
"optional": true
|
|
339
348
|
},
|
|
340
|
-
"
|
|
349
|
+
"pg": {
|
|
341
350
|
"optional": true
|
|
342
351
|
},
|
|
343
|
-
"
|
|
352
|
+
"unpdf": {
|
|
353
|
+
"optional": true
|
|
354
|
+
},
|
|
355
|
+
"zod": {
|
|
344
356
|
"optional": true
|
|
345
357
|
}
|
|
346
358
|
},
|
|
@@ -348,6 +360,7 @@
|
|
|
348
360
|
"@arethetypeswrong/cli": "^0.18.1",
|
|
349
361
|
"@google-cloud/storage": "^7.22.0",
|
|
350
362
|
"@google/genai": "^2.16.0",
|
|
363
|
+
"@googleapis/aiplatform": "^31.0.0",
|
|
351
364
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
352
365
|
"@types/node": "^25.5.2",
|
|
353
366
|
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
|
@@ -359,6 +372,7 @@
|
|
|
359
372
|
"eslint-config-prettier": "^6.15.0",
|
|
360
373
|
"footprintjs": "^9.15.0",
|
|
361
374
|
"google-auth-library": "^11.0.1",
|
|
375
|
+
"jose": "^6.2.7",
|
|
362
376
|
"prettier": "^2.8.1",
|
|
363
377
|
"publint": "^0.3.0",
|
|
364
378
|
"typedoc": "^0.28.19",
|