agentfootprint 8.5.0 → 8.6.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/dist/core/Agent.js +62 -1
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/RunnerBase.js +7 -1
- package/dist/core/RunnerBase.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +136 -5
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +15 -0
- package/dist/esm/core/Agent.js +62 -1
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/RunnerBase.js +7 -1
- package/dist/esm/core/RunnerBase.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.d.ts +35 -0
- package/dist/esm/core/agent/stages/toolCalls.js +136 -5
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/types.d.ts +26 -0
- package/dist/esm/identity/CredentialConsentRequiredError.d.ts +63 -0
- package/dist/esm/identity/CredentialConsentRequiredError.js +65 -0
- package/dist/esm/identity/CredentialConsentRequiredError.js.map +1 -0
- package/dist/esm/identity/consent.d.ts +81 -0
- package/dist/esm/identity/consent.js +85 -0
- package/dist/esm/identity/consent.js.map +1 -0
- package/dist/esm/identity.d.ts +2 -0
- package/dist/esm/identity.js +1 -0
- package/dist/esm/identity.js.map +1 -1
- package/dist/esm/lib/mcp/mcpServe.js +11 -1
- package/dist/esm/lib/mcp/mcpServe.js.map +1 -1
- package/dist/identity/CredentialConsentRequiredError.js +69 -0
- package/dist/identity/CredentialConsentRequiredError.js.map +1 -0
- package/dist/identity/consent.js +91 -0
- package/dist/identity/consent.js.map +1 -0
- package/dist/identity.js +3 -1
- package/dist/identity.js.map +1 -1
- package/dist/lib/mcp/mcpServe.js +11 -1
- package/dist/lib/mcp/mcpServe.js.map +1 -1
- package/dist/types/core/Agent.d.ts +15 -0
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/RunnerBase.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts +35 -0
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +26 -0
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/identity/CredentialConsentRequiredError.d.ts +64 -0
- package/dist/types/identity/CredentialConsentRequiredError.d.ts.map +1 -0
- package/dist/types/identity/consent.d.ts +82 -0
- package/dist/types/identity/consent.d.ts.map +1 -0
- package/dist/types/identity.d.ts +2 -0
- package/dist/types/identity.d.ts.map +1 -1
- package/dist/types/lib/mcp/mcpServe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ import type { ActiveInjection } from '../../lib/injection-engine/types.js';
|
|
|
15
15
|
import type { InjectionRecord } from '../../recorders/core/types.js';
|
|
16
16
|
import type { MemoryIdentity } from '../../memory/identity/types.js';
|
|
17
17
|
import type { CredentialProvider } from '../../identity/types.js';
|
|
18
|
+
import type { AuthorizationRequiredMode } from '../../identity/consent.js';
|
|
18
19
|
import type { ToolArgValidationMode } from './toolArgsValidation.js';
|
|
19
20
|
import type { ThinkingBlock } from '../../thinking/types.js';
|
|
20
21
|
import type { ReliabilityScope } from '../../reliability/types.js';
|
|
@@ -147,6 +148,28 @@ export interface AgentOptions {
|
|
|
147
148
|
* `staticTokens({ ... })`, or any `CredentialProvider`).
|
|
148
149
|
*/
|
|
149
150
|
readonly credentials?: CredentialProvider;
|
|
151
|
+
/**
|
|
152
|
+
* What the run does when a tool's DECLARED credential (`needs: { credential }`)
|
|
153
|
+
* comes back `authorization-required` — a person has to click a consent link
|
|
154
|
+
* before the tool can run. Default **`'pause'`** (8.6.0).
|
|
155
|
+
*
|
|
156
|
+
* - `'pause'` — the run stops at the block. `agent.run()` returns a pause
|
|
157
|
+
* outcome whose `pauseData.authorization` carries `{ service, sessionId,
|
|
158
|
+
* authorizationUrl }`; a `standingAgent` answers **202** with
|
|
159
|
+
* `{ awaiting }`; `agent.resume(checkpoint)` re-resolves the credential and
|
|
160
|
+
* runs the tool that was waiting. The model is never told, so it cannot
|
|
161
|
+
* adapt around work that has not happened.
|
|
162
|
+
* - `'tell-model'` — the model reads a refusal naming the service (never the
|
|
163
|
+
* URL) and may route around the block. The turn still cannot report a clean
|
|
164
|
+
* completion: `agent.run()` raises `CredentialConsentRequiredError`, which
|
|
165
|
+
* carries the URL to the caller.
|
|
166
|
+
*
|
|
167
|
+
* In BOTH modes the authorization URL stays out of the conversation, the
|
|
168
|
+
* snapshot, the narrative, the typed event stream and any recording. It is a
|
|
169
|
+
* bearer capability carrying a session-correlating `state` parameter; before
|
|
170
|
+
* 8.6.0 it was interpolated into the tool result and copied into all of them.
|
|
171
|
+
*/
|
|
172
|
+
readonly onAuthorizationRequired?: AuthorizationRequiredMode;
|
|
150
173
|
/**
|
|
151
174
|
* Global cache kill switch (v2.6+). `'off'` disables the cache
|
|
152
175
|
* layer entirely — the CacheGate decider routes to `'no-markers'`
|
|
@@ -354,6 +377,9 @@ export interface AgentState {
|
|
|
354
377
|
pausedAskArgs?: Readonly<Record<string, unknown>>;
|
|
355
378
|
pausedAskIndex?: number;
|
|
356
379
|
pausedAskMiddleware?: string;
|
|
380
|
+
pausedCredential?: boolean;
|
|
381
|
+
pausedCredentialArgs?: Readonly<Record<string, unknown>>;
|
|
382
|
+
pausedCredentialService?: string;
|
|
357
383
|
/** One row per middleware decision, in the order they were decided —
|
|
358
384
|
* including the pass-throughs, because "the rule looked and was fine with
|
|
359
385
|
* it" and "the rule never ran" are different facts about a run. A transform
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,eAAe,E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AAM,CAAC;IAC7B,kEAAkE;IAClE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAG7B;;;6EAGyE;IACzE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;0CAIsC;IACtC,cAAc,EAAE,SAAS,aAAa,EAAE,CAAC;IAGzC;;;;;;iFAM6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAC;IACzD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;kEAC8D;IAC9D,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CredentialConsentRequiredError — typed error thrown by `Agent.run()` under
|
|
3
|
+
* `onAuthorizationRequired: 'tell-model'` when a turn finished while a tool's
|
|
4
|
+
* DECLARED credential was never obtained.
|
|
5
|
+
*
|
|
6
|
+
* Pattern: Typed Error (parallel to `PolicyHaltError` / `MessageDeniedError`).
|
|
7
|
+
* Role: The honesty terminal for the non-pausing mode. `'tell-model'` lets
|
|
8
|
+
* the model adapt in-loop after a consent block — but a turn that
|
|
9
|
+
* returned a plain answer string would be claiming a completion it
|
|
10
|
+
* did not earn, because the tool never ran. `AgentOutput` is a bare
|
|
11
|
+
* string with nowhere to hang "…and a consent is still outstanding",
|
|
12
|
+
* so the fact is surfaced as an error instead of being dropped.
|
|
13
|
+
* Emits: N/A (this file DEFINES the class; `agentfootprint.credential.
|
|
14
|
+
* authorization_required` fires from the toolCalls handler at the
|
|
15
|
+
* moment the block resolves, and carries `{ service, sessionId }`
|
|
16
|
+
* only — never the URL).
|
|
17
|
+
*
|
|
18
|
+
* **The `authorizationUrl` on this error is a bearer capability.** It carries a
|
|
19
|
+
* session-correlating `state` parameter: whoever holds the URL can complete the
|
|
20
|
+
* consent flow. It reaches the caller HERE and on `PendingAsk` under
|
|
21
|
+
* `'pause'` — and deliberately nowhere else. It is never written to the
|
|
22
|
+
* conversation, the snapshot, the narrative, the typed event stream, or a
|
|
23
|
+
* recording. Treat it like the token it stands in for: hand it to the person
|
|
24
|
+
* who must click it, and do not log it.
|
|
25
|
+
*
|
|
26
|
+
* Under the default `onAuthorizationRequired: 'pause'` this error never fires —
|
|
27
|
+
* the run pauses at the block instead and the same three fields ride
|
|
28
|
+
* `PendingAsk`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* try {
|
|
32
|
+
* await agent.run({ message: 'pay invoice INV-42' });
|
|
33
|
+
* } catch (e) {
|
|
34
|
+
* if (e instanceof CredentialConsentRequiredError) {
|
|
35
|
+
* // Show the URL to the PERSON. Never log it.
|
|
36
|
+
* await notifyUser(e.service, e.authorizationUrl);
|
|
37
|
+
* } else {
|
|
38
|
+
* throw e;
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
*/
|
|
42
|
+
export interface CredentialConsentRequiredContext {
|
|
43
|
+
/** Downstream service id the tool declared, e.g. 'github', 'billing'. */
|
|
44
|
+
readonly service: string;
|
|
45
|
+
/** The 3LO consent URL. A BEARER CAPABILITY — see the class note. */
|
|
46
|
+
readonly authorizationUrl: string;
|
|
47
|
+
/** Correlates the authorization session with the provider. */
|
|
48
|
+
readonly sessionId: string;
|
|
49
|
+
/** The tool whose declared credential was refused. */
|
|
50
|
+
readonly tool: string;
|
|
51
|
+
/** ReAct iteration the block fired on. */
|
|
52
|
+
readonly iteration: number;
|
|
53
|
+
}
|
|
54
|
+
export declare class CredentialConsentRequiredError extends Error {
|
|
55
|
+
readonly code: "ERR_CREDENTIAL_CONSENT_REQUIRED";
|
|
56
|
+
readonly service: string;
|
|
57
|
+
/** The 3LO consent URL. A BEARER CAPABILITY — see the class note. */
|
|
58
|
+
readonly authorizationUrl: string;
|
|
59
|
+
readonly sessionId: string;
|
|
60
|
+
readonly tool: string;
|
|
61
|
+
readonly iteration: number;
|
|
62
|
+
constructor(ctx: CredentialConsentRequiredContext);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=CredentialConsentRequiredError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialConsentRequiredError.d.ts","sourceRoot":"","sources":["../../../src/identity/CredentialConsentRequiredError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,MAAM,WAAW,gCAAgC;IAC/C,yEAAyE;IACzE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,qBAAa,8BAA+B,SAAQ,KAAK;IACvD,QAAQ,CAAC,IAAI,oCAA8C;IAC3D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,qEAAqE;IACrE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,GAAG,EAAE,gCAAgC;CAgBlD"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 3LO consent vocabulary — one place, because four surfaces must agree on
|
|
3
|
+
* it and three of them are security boundaries.
|
|
4
|
+
*
|
|
5
|
+
* A `CredentialProvider` that answers `authorization-required` is saying: a
|
|
6
|
+
* PERSON has to click a link before this tool can run. Two things follow, and
|
|
7
|
+
* they are the whole of this module.
|
|
8
|
+
*
|
|
9
|
+
* **1. The URL is a bearer capability, not a message.** It carries a
|
|
10
|
+
* session-correlating `state` parameter; whoever holds it can complete the
|
|
11
|
+
* consent flow. It goes to the CALLER — on `PendingAsk` under `'pause'`, on
|
|
12
|
+
* `CredentialConsentRequiredError` under `'tell-model'` — and to nowhere else.
|
|
13
|
+
* Before 8.6.0 it was interpolated into the tool-result string, which put it in
|
|
14
|
+
* the conversation and therefore in every channel built to preserve tool output
|
|
15
|
+
* (history, `stream.tool_end`, `agent.iteration_end`, `context.injected`, the
|
|
16
|
+
* commit log, the snapshot, the narrative's `rawValue`, and any recording).
|
|
17
|
+
* `modelRefusal()` is the URL-free replacement, and it is why the interpolation
|
|
18
|
+
* has no remaining call site.
|
|
19
|
+
*
|
|
20
|
+
* **2. The model is the one party that cannot act on it.** So what the model
|
|
21
|
+
* reads names the service, says a person is handling it, and tells it what to
|
|
22
|
+
* do instead — the same shape as the `[permission denied: …]` refusal it
|
|
23
|
+
* already knows how to read.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* What a run does when a tool's declared credential needs consent.
|
|
27
|
+
*
|
|
28
|
+
* - `'pause'` (default) — the run stops at the block. `agent.run()` returns a
|
|
29
|
+
* pause outcome, a host answers 202 with `{ awaiting }`, and
|
|
30
|
+
* `agent.resume(checkpoint)` re-resolves the credential and runs the tool
|
|
31
|
+
* that was waiting. The model is never told; nothing is fabricated.
|
|
32
|
+
* - `'tell-model'` — the model reads {@link modelRefusal} and may route around
|
|
33
|
+
* the block. The turn still cannot report a clean completion: it raises
|
|
34
|
+
* `CredentialConsentRequiredError`.
|
|
35
|
+
*/
|
|
36
|
+
export type AuthorizationRequiredMode = 'pause' | 'tell-model';
|
|
37
|
+
/**
|
|
38
|
+
* The key under which a consent request rides `pauseData` (and therefore
|
|
39
|
+
* `PendingAsk.pauseData`). Named, rather than free-form, for one reason:
|
|
40
|
+
* `agentfootprint.pause.request` mirrors the WHOLE `pauseData` into its
|
|
41
|
+
* `questionPayload`, so the emitter has to be able to find this block and
|
|
42
|
+
* withhold the URL from the event stream. A free-form shape could not be
|
|
43
|
+
* bounded by name, and the URL would have leaked into every observer again.
|
|
44
|
+
*
|
|
45
|
+
* @see redactConsentUrlForEvent
|
|
46
|
+
*/
|
|
47
|
+
export declare const CONSENT_PAUSE_KEY = "authorization";
|
|
48
|
+
/** The consent block handed to the CALLER on `pauseData` / `PendingAsk`. */
|
|
49
|
+
export interface ConsentRequest {
|
|
50
|
+
readonly service: string;
|
|
51
|
+
/** BEARER CAPABILITY. Show it to the person; never log it. */
|
|
52
|
+
readonly authorizationUrl: string;
|
|
53
|
+
readonly sessionId: string;
|
|
54
|
+
}
|
|
55
|
+
/** Placeholder written where the consent URL is deliberately withheld. */
|
|
56
|
+
export declare const CONSENT_URL_WITHHELD = "[withheld: consent URL is caller-only]";
|
|
57
|
+
/**
|
|
58
|
+
* What the MODEL reads when a declared credential needs consent. Never the URL.
|
|
59
|
+
*
|
|
60
|
+
* Bracketed like the permission-gate refusal, because it is the same kind of
|
|
61
|
+
* fact: the call did not happen and the model must adapt. It names the service
|
|
62
|
+
* (so the model can reason about what is unavailable), says a person is on it
|
|
63
|
+
* (so it does not invent a way to authorize itself), and offers the two honest
|
|
64
|
+
* continuations.
|
|
65
|
+
*/
|
|
66
|
+
export declare function modelRefusal(service: string): string;
|
|
67
|
+
/** The plain-words question a host shows the person, via `PendingAsk.question`. */
|
|
68
|
+
export declare function consentQuestion(service: string, tool: string): string;
|
|
69
|
+
/**
|
|
70
|
+
* Strip the consent URL out of a `pause.request` payload.
|
|
71
|
+
*
|
|
72
|
+
* `RunnerBase.emitPauseRequest` copies the whole `pauseData` into
|
|
73
|
+
* `PauseRequestPayload.questionPayload`, which is right for a check-in's
|
|
74
|
+
* evidence pack and wrong for a bearer URL. This withholds exactly one field by
|
|
75
|
+
* name and leaves every other pause shape untouched — the same discipline the
|
|
76
|
+
* audit adapter's `BOUND_FIELDS` already applies to `tool_end.result`.
|
|
77
|
+
*
|
|
78
|
+
* Returns the input unchanged (same reference) when there is no consent block,
|
|
79
|
+
* so no existing pause pays for this.
|
|
80
|
+
*/
|
|
81
|
+
export declare function redactConsentUrlForEvent(payload: Readonly<Record<string, unknown>>): Readonly<Record<string, unknown>>;
|
|
82
|
+
//# sourceMappingURL=consent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../src/identity/consent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,YAAY,CAAC;AAE/D;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AAEjD,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8DAA8D;IAC9D,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB,2CAA2C,CAAC;AAE7E;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAOpD;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACzC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAiBnC"}
|
package/dist/types/identity.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export type { Credential, CredentialProvider, CredentialRequest, CredentialResul
|
|
|
31
31
|
export { isCredentialIssued, unconfiguredCredentialProvider } from './identity/types.js';
|
|
32
32
|
export { bearer, apiKey, basic, headers, type BearerCredential, type ApiKeyCredential, type BasicCredential, type HeadersCredential, } from './identity/kinds.js';
|
|
33
33
|
export { staticTokens, type StaticTokensOptions } from './identity/staticTokens.js';
|
|
34
|
+
export type { AuthorizationRequiredMode, ConsentRequest } from './identity/consent.js';
|
|
35
|
+
export { CredentialConsentRequiredError, type CredentialConsentRequiredContext, } from './identity/CredentialConsentRequiredError.js';
|
|
34
36
|
export { withCredentialRetry, type WithCredentialRetryOptions, } from './identity/withCredentialRetry.js';
|
|
35
37
|
export { agentCoreIdentity, type AgentCoreIdentityOptions, type AgentCoreIdentityClientLike, type AgentCoreOauthResponse, } from './adapters/identity/agentcore.js';
|
|
36
38
|
//# 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,EAAE,kBAAkB,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;
|
|
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,EAAE,kBAAkB,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EACL,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpServe.d.ts","sourceRoot":"","sources":["../../../../src/lib/mcp/mcpServe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAMH,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,qBAAqB,CAAC;AAGtE,OAAO,KAAK,EAIV,cAAc,EACd,eAAe,EAEhB,MAAM,YAAY,CAAC;AAQpB;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAC5B,KAAK,EAAE,SAAS,IAAI,EAAE,EACtB,IAAI,GAAE,eAAoB,GACzB,OAAO,CAAC,cAAc,CAAC,CAkKzB;
|
|
1
|
+
{"version":3,"file":"mcpServe.d.ts","sourceRoot":"","sources":["../../../../src/lib/mcp/mcpServe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAMH,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,qBAAqB,CAAC;AAGtE,OAAO,KAAK,EAIV,cAAc,EACd,eAAe,EAEhB,MAAM,YAAY,CAAC;AAQpB;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAC5B,KAAK,EAAE,SAAS,IAAI,EAAE,EACtB,IAAI,GAAE,eAAoB,GACzB,OAAO,CAAC,cAAc,CAAC,CAkKzB;AA8KD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;EAA0C,CAAC;AAC3E,yCAAyC;AACzC,eAAO,MAAM,kBAAkB;;EAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentfootprint",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.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",
|