agentfootprint 7.19.0 → 7.19.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/AGENTS.md +7 -5
- package/README.md +3 -3
- package/ai-instructions/claude-code/SKILL.md +7 -5
- package/dist/core/agent/AgentBuilder.js +9 -0
- package/dist/core/agent/AgentBuilder.js.map +1 -1
- package/dist/core/agent/memoryRecallInjections.js +8 -0
- package/dist/core/agent/memoryRecallInjections.js.map +1 -1
- package/dist/core/slots/buildMessagesSlot.js +23 -4
- package/dist/core/slots/buildMessagesSlot.js.map +1 -1
- package/dist/esm/core/agent/AgentBuilder.d.ts +5 -0
- package/dist/esm/core/agent/AgentBuilder.js +9 -0
- package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/core/agent/memoryRecallInjections.js +8 -0
- package/dist/esm/core/agent/memoryRecallInjections.js.map +1 -1
- package/dist/esm/core/slots/buildMessagesSlot.d.ts +16 -2
- package/dist/esm/core/slots/buildMessagesSlot.js +23 -4
- package/dist/esm/core/slots/buildMessagesSlot.js.map +1 -1
- package/dist/esm/lib/injection-engine/factories/defineFact.d.ts +7 -11
- package/dist/esm/lib/injection-engine/factories/defineFact.js +9 -7
- package/dist/esm/lib/injection-engine/factories/defineFact.js.map +1 -1
- package/dist/esm/lib/injection-engine/factories/defineInstruction.d.ts +10 -19
- package/dist/esm/lib/injection-engine/factories/defineInstruction.js +6 -4
- package/dist/esm/lib/injection-engine/factories/defineInstruction.js.map +1 -1
- package/dist/esm/lib/injection-engine/messagesSlotRefusal.d.ts +31 -0
- package/dist/esm/lib/injection-engine/messagesSlotRefusal.js +40 -0
- package/dist/esm/lib/injection-engine/messagesSlotRefusal.js.map +1 -0
- package/dist/esm/lib/injection-engine/types.d.ts +12 -1
- package/dist/esm/lib/injection-engine/types.js.map +1 -1
- package/dist/esm/lib/mcp/mcpServe.d.ts +8 -0
- package/dist/esm/lib/mcp/mcpServe.js +25 -0
- package/dist/esm/lib/mcp/mcpServe.js.map +1 -1
- package/dist/esm/lib/mcp/types.d.ts +26 -0
- package/dist/lib/injection-engine/factories/defineFact.js +9 -7
- package/dist/lib/injection-engine/factories/defineFact.js.map +1 -1
- package/dist/lib/injection-engine/factories/defineInstruction.js +6 -4
- package/dist/lib/injection-engine/factories/defineInstruction.js.map +1 -1
- package/dist/lib/injection-engine/messagesSlotRefusal.js +44 -0
- package/dist/lib/injection-engine/messagesSlotRefusal.js.map +1 -0
- package/dist/lib/injection-engine/types.js.map +1 -1
- package/dist/lib/mcp/mcpServe.js +25 -0
- package/dist/lib/mcp/mcpServe.js.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts +5 -0
- package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
- package/dist/types/core/agent/memoryRecallInjections.d.ts.map +1 -1
- package/dist/types/core/slots/buildMessagesSlot.d.ts +16 -2
- package/dist/types/core/slots/buildMessagesSlot.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/factories/defineFact.d.ts +7 -11
- package/dist/types/lib/injection-engine/factories/defineFact.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/factories/defineInstruction.d.ts +10 -19
- package/dist/types/lib/injection-engine/factories/defineInstruction.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/messagesSlotRefusal.d.ts +32 -0
- package/dist/types/lib/injection-engine/messagesSlotRefusal.d.ts.map +1 -0
- package/dist/types/lib/injection-engine/types.d.ts +12 -1
- package/dist/types/lib/injection-engine/types.d.ts.map +1 -1
- package/dist/types/lib/mcp/mcpServe.d.ts +8 -0
- package/dist/types/lib/mcp/mcpServe.d.ts.map +1 -1
- package/dist/types/lib/mcp/types.d.ts +26 -0
- package/dist/types/lib/mcp/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentBuilder.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/AgentBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;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IAM9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,iBAAiB,CAAC,GAAG,UAAU,EAAE,SAAS,iBAAiB,EAAE,GAAG,IAAI;IAMpE;mEAC+D;IAC/D,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,IAAI,GAAE,qBAA0B,GAAG,IAAI;IAQ/C,WAAW,CAAC,IAAI,GAAE,kBAAuB,GAAG,IAAI;IAmBhD,KAAK,IAAI,KAAK;CAsFf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoryRecallInjections.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/memoryRecallInjections.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"memoryRecallInjections.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/memoryRecallInjections.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAO3E,0FAA0F;AAC1F,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,SAAS,EAAE,SAAS,MAAM,EAAE,GAC3B,eAAe,EAAE,CAyBnB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,gBAAgB,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,EACxD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,SAAS,EAAE,SAAS,MAAM,EAAE,GAC3B,SAAS,eAAe,EAAE,CAK5B"}
|
|
@@ -8,8 +8,22 @@
|
|
|
8
8
|
* messages accumulated over iterations.
|
|
9
9
|
* Emits: None directly; ContextRecorder sees the writes.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* ── What this slot is, and is not ───────────────────────────────────
|
|
12
|
+
* It is the OBSERVABILITY PROJECTION of the conversation: one
|
|
13
|
+
* InjectionRecord per message, with the source, reason, role and
|
|
14
|
+
* recency a consumer needs to see what the turn was made of. It is not
|
|
15
|
+
* the wire. The request's message list comes from `scope.history`
|
|
16
|
+
* directly (`stages/callLLM.ts`), because the projection flattens away
|
|
17
|
+
* the LLM-protocol shape a provider needs — an assistant turn's
|
|
18
|
+
* `toolCalls[]`, a tool turn's `toolCallId`.
|
|
19
|
+
*
|
|
20
|
+
* Windowing and summarizing are not pending here either: they arrived in
|
|
21
|
+
* 7.16–7.17 as the window-strategy family, and they govern the window by
|
|
22
|
+
* editing `scope.history` at the loop-head window stage (`stages/window.ts`)
|
|
23
|
+
* — BEFORE this slot runs, so the projection and the wire describe the same
|
|
24
|
+
* past. Content declared for this slot is refused at the declaration site
|
|
25
|
+
* (`lib/injection-engine/messagesSlotRefusal.ts`) precisely because this
|
|
26
|
+
* slot cannot deliver it.
|
|
13
27
|
*/
|
|
14
28
|
import type { FlowChart } from 'footprintjs';
|
|
15
29
|
import type { ContextRole } from '../../events/types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildMessagesSlot.d.ts","sourceRoot":"","sources":["../../../../src/core/slots/buildMessagesSlot.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"buildMessagesSlot.d.ts","sourceRoot":"","sources":["../../../../src/core/slots/buildMessagesSlot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAEzD,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMzE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,0CAA0C;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAMD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,kBAAuB,GAAG,SAAS,CAyF5E"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Produces an `Injection` with:
|
|
11
11
|
* - flavor: `'fact'`
|
|
12
12
|
* - trigger: configurable (default `'always'`)
|
|
13
|
-
* - inject:
|
|
13
|
+
* - inject: `systemPrompt` — the slot that reaches the model
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* const userProfile = defineFact({
|
|
@@ -21,11 +21,8 @@
|
|
|
21
21
|
* const turnTime = defineFact({
|
|
22
22
|
* id: 'turn-time',
|
|
23
23
|
* data: `Current time: ${new Date().toISOString()}`,
|
|
24
|
-
* slot: 'messages',
|
|
25
|
-
* role: 'system',
|
|
26
24
|
* });
|
|
27
25
|
*/
|
|
28
|
-
import type { ContextRole } from '../../../events/types.js';
|
|
29
26
|
import type { Injection, InjectionContext } from '../types.js';
|
|
30
27
|
import type { CachePolicy } from '../../../cache/types.js';
|
|
31
28
|
export interface DefineFactOptions {
|
|
@@ -34,14 +31,13 @@ export interface DefineFactOptions {
|
|
|
34
31
|
/** The fact (data string) to inject. */
|
|
35
32
|
readonly data: string;
|
|
36
33
|
/**
|
|
37
|
-
* Which slot to land in.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
34
|
+
* Which slot to land in. `'system-prompt'` (the default) is the only
|
|
35
|
+
* slot a fact can land in: it is the one every provider delivers.
|
|
36
|
+
*
|
|
37
|
+
* `'messages'` is REFUSED — see {@link messagesSlotRefusal}. It was
|
|
38
|
+
* accepted before 7.19.1, recorded as injected, and never sent.
|
|
41
39
|
*/
|
|
42
|
-
readonly slot?: 'system-prompt'
|
|
43
|
-
/** When `slot: 'messages'`, the role to use. Default `'system'`. */
|
|
44
|
-
readonly role?: ContextRole;
|
|
40
|
+
readonly slot?: 'system-prompt';
|
|
45
41
|
/**
|
|
46
42
|
* Trigger control. Defaults to always-on. For conditional facts
|
|
47
43
|
* (e.g., "only show user profile after iteration 3"), pass a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineFact.d.ts","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineFact.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"defineFact.d.ts","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineFact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAoB,MAAM,aAAa,CAAC;AAGjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC;IAChC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,OAAO,CAAC;IACzD;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;CAC9B;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,CA+B7D"}
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
* prompt: 'PII has been redacted. Do not include emails or phone numbers.',
|
|
28
28
|
* });
|
|
29
29
|
*/
|
|
30
|
-
import type { ContextRole } from '../../../events/types.js';
|
|
31
30
|
import type { Injection, InjectionContext } from '../types.js';
|
|
32
31
|
import type { CachePolicy } from '../../../cache/types.js';
|
|
33
32
|
export interface DefineInstructionOptions {
|
|
@@ -42,28 +41,20 @@ export interface DefineInstructionOptions {
|
|
|
42
41
|
* `agentfootprint.context.evaluated`.
|
|
43
42
|
*/
|
|
44
43
|
readonly activeWhen?: (ctx: InjectionContext) => boolean;
|
|
45
|
-
/** Instruction text. Lands in the
|
|
44
|
+
/** Instruction text. Lands in the system-prompt slot. */
|
|
46
45
|
readonly prompt: string;
|
|
47
46
|
/**
|
|
48
|
-
* Where the instruction lands.
|
|
47
|
+
* Where the instruction lands. `'system-prompt'` (the default) is the
|
|
48
|
+
* only slot an instruction can land in: it is the one every provider
|
|
49
|
+
* delivers.
|
|
49
50
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* on this turn (post-tool-result reminders, urgent corrections).
|
|
56
|
-
*
|
|
57
|
-
* Same instruction object can target both slots in different agents
|
|
58
|
-
* — the trigger semantics don't change.
|
|
59
|
-
*/
|
|
60
|
-
readonly slot?: 'system-prompt' | 'messages';
|
|
61
|
-
/**
|
|
62
|
-
* When `slot: 'messages'`, the role to use. Default `'system'`.
|
|
63
|
-
* `'user'` is also valid; `'assistant'` and `'tool'` work in
|
|
64
|
-
* principle but rarely make pedagogical sense.
|
|
51
|
+
* `'messages'` is REFUSED — see {@link messagesSlotRefusal}. It was
|
|
52
|
+
* accepted before 7.19.1 and documented as the recency-first
|
|
53
|
+
* placement; it was recorded as injected and never sent. To make a
|
|
54
|
+
* rule salient at the moment it matters, return it from the tool whose
|
|
55
|
+
* result it is about — a tool result IS a recent message.
|
|
65
56
|
*/
|
|
66
|
-
readonly
|
|
57
|
+
readonly slot?: 'system-prompt';
|
|
67
58
|
/**
|
|
68
59
|
* Cache policy for this instruction. Defaults to `'never'` —
|
|
69
60
|
* instructions are typically rule-based (volatile per-iter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineInstruction.d.ts","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineInstruction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"defineInstruction.d.ts","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineInstruction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAoB,MAAM,aAAa,CAAC;AAGjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;;OAOG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,OAAO,CAAC;IACzD,yDAAyD;IACzD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC;IAChC;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;CAC9B;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,SAAS,CAwB3E"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The messages-slot refusal — one sentence, said in every place the
|
|
3
|
+
* declaration can be made.
|
|
4
|
+
*
|
|
5
|
+
* WHY this exists at all: an Injection targeting the messages slot was
|
|
6
|
+
* RECORDED as injected — `context.injected` fired with its content, the
|
|
7
|
+
* slot composition counted it, the engine routed it — while the request
|
|
8
|
+
* assembled its message list from the conversation itself, so the model
|
|
9
|
+
* never saw it. The recording said one thing and the wire said another.
|
|
10
|
+
*
|
|
11
|
+
* Delivering it instead is not a one-line change, and doing it badly
|
|
12
|
+
* would be worse than the gap: the wire has no system role INSIDE the
|
|
13
|
+
* message list (the Anthropic and Bedrock adapters drop such a message —
|
|
14
|
+
* system is a separate top-level field — while the OpenAI adapters carry
|
|
15
|
+
* it), and `'system'` was the default role here. Wiring the slot up
|
|
16
|
+
* without a per-provider notion of what a provider can carry would
|
|
17
|
+
* replace one uniform gap with a provider-dependent one, and nothing in
|
|
18
|
+
* the recording would tell the two apart. Honest delivery needs a
|
|
19
|
+
* wire-carrying key out of the slot, that provider capability, and a
|
|
20
|
+
* message-sequence rule — a designed feature, not a patch.
|
|
21
|
+
*
|
|
22
|
+
* So until that exists, the declaration is refused where it is written.
|
|
23
|
+
* Absence beats a lie: nothing that worked stops working, and something
|
|
24
|
+
* that never worked stops pretending.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The refusal text, addressed from `site` (e.g. `defineFact('turn-time')`).
|
|
28
|
+
* Names the limitation and the three placements that DO reach the model,
|
|
29
|
+
* because a refusal that does not teach just moves the puzzle.
|
|
30
|
+
*/
|
|
31
|
+
export declare function messagesSlotRefusal(site: string): string;
|
|
32
|
+
//# sourceMappingURL=messagesSlotRefusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messagesSlotRefusal.d.ts","sourceRoot":"","sources":["../../../../src/lib/injection-engine/messagesSlotRefusal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAUxD"}
|
|
@@ -56,7 +56,18 @@ export type InjectionTrigger =
|
|
|
56
56
|
export interface InjectionContent {
|
|
57
57
|
/** Text appended to the system-prompt slot when active. */
|
|
58
58
|
readonly systemPrompt?: string;
|
|
59
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Messages appended to the messages slot when active.
|
|
61
|
+
*
|
|
62
|
+
* **Not delivered to the model, and refused where it can be declared**
|
|
63
|
+
* (`defineFact` / `defineInstruction` / `Agent.injection()`) since
|
|
64
|
+
* 7.19.1: the request's message list is assembled from the
|
|
65
|
+
* conversation, so content placed here was recorded as injected and
|
|
66
|
+
* never sent. The field stays on the type for the engine's internal
|
|
67
|
+
* memory-recall bridge and for the delivery feature that will make it
|
|
68
|
+
* true; nothing a consumer can declare reaches it. See
|
|
69
|
+
* `messagesSlotRefusal.ts` for the full reasoning.
|
|
70
|
+
*/
|
|
60
71
|
readonly messages?: ReadonlyArray<{
|
|
61
72
|
readonly role: ContextRole;
|
|
62
73
|
readonly content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/injection-engine/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAIxE;;;;GAIG;AACH,MAAM,MAAM,gBAAgB;AAC1B,yDAAyD;AACvD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE;AAC7B,wDAAwD;GACtD;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,OAAO,CAAC;CACzD;AACH;;sCAEsC;GACpC;IACE,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC;AACH;;iBAEiB;GACf;IACE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,CAAC;AAIN;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2DAA2D;IAC3D,Q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,CAAC,WAAW,EAAE,MAAM,CAAC;SAC9B,CAAC,CAAC;KACJ,CAAC;CACH;AAED,wEAAwE;AACxE,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,SAAS,GAAG,eAAe,CAyBtE"}
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
* // …later
|
|
10
10
|
* await handle.close();
|
|
11
11
|
*
|
|
12
|
+
* Over HTTP the handle also reports the socket it bound, so `port: 0`
|
|
13
|
+
* ("any free port") is usable from the outside:
|
|
14
|
+
*
|
|
15
|
+
* const handle = await mcpServe(tools, {
|
|
16
|
+
* transport: { transport: 'http', port: 0, host: '127.0.0.1' },
|
|
17
|
+
* });
|
|
18
|
+
* connect(`http://127.0.0.1:${handle.port}/mcp`);
|
|
19
|
+
*
|
|
12
20
|
* `mcpClient` pulls someone else's tools in. This pushes yours out, so
|
|
13
21
|
* the tool you already wrote, tested and governed can be called by any
|
|
14
22
|
* MCP client — a desktop host, another team's agent, an IDE — without
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpServe.d.ts","sourceRoot":"","sources":["../../../../src/lib/mcp/mcpServe.ts"],"names":[],"mappings":"AAAA
|
|
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,CAoIzB;AAmKD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;EAA0C,CAAC;AAC3E,yCAAyC;AACzC,eAAO,MAAM,kBAAkB;;EAA0C,CAAC"}
|
|
@@ -274,6 +274,32 @@ export interface McpServeHandle {
|
|
|
274
274
|
readonly name: string;
|
|
275
275
|
/** Names of the tools being served, in the order clients will list them. */
|
|
276
276
|
readonly toolNames: readonly string[];
|
|
277
|
+
/**
|
|
278
|
+
* The port the listener actually bound, for the `http` transport only —
|
|
279
|
+
* absent for `stdio`, which has no socket.
|
|
280
|
+
*
|
|
281
|
+
* It is here because `port: 0` means "any free port", and the caller who
|
|
282
|
+
* asked for one had no way to learn which one they got: the number the OS
|
|
283
|
+
* chose lived inside a listener nobody could see. Serving on `0` and
|
|
284
|
+
* reading this back is the supported way to run a server on an
|
|
285
|
+
* unpredictable port — a test suite, a dev tool, several replicas on one
|
|
286
|
+
* machine.
|
|
287
|
+
*
|
|
288
|
+
* With an explicit port this reports the same number back, so code can
|
|
289
|
+
* read it unconditionally rather than branching on how the port was set.
|
|
290
|
+
*/
|
|
291
|
+
readonly port?: number;
|
|
292
|
+
/**
|
|
293
|
+
* The address the listener bound, for the `http` transport only — as the
|
|
294
|
+
* OS reports it, so `'127.0.0.1'` when a host was given and `'::'` (or
|
|
295
|
+
* `'0.0.0.0'`) when one was not.
|
|
296
|
+
*
|
|
297
|
+
* Reported rather than assembled into a URL on purpose: a wildcard bind is
|
|
298
|
+
* not an address a client can dial, and a handle that handed one out would
|
|
299
|
+
* be inventing reachability it cannot promise. Pair it with `port` and the
|
|
300
|
+
* host you know your callers can reach.
|
|
301
|
+
*/
|
|
302
|
+
readonly address?: string;
|
|
277
303
|
/**
|
|
278
304
|
* Stop serving: closes the transport (and, for `http`, the listening
|
|
279
305
|
* socket) and then the MCP server. Idempotent — calling it twice is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/mcp/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,EAAE,IAA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AE,kBAAkB,EAAE,KAAK,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,KAAK,OAAO,GAC1F,IAAI,CAAC;IACR,OAAO,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;KAC9B,CAAC;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentfootprint",
|
|
3
|
-
"version": "7.19.
|
|
3
|
+
"version": "7.19.1",
|
|
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
|
"author": "Sanjay Krishna Anbalagan",
|