@cotal-ai/connector-core 0.103.4 → 0.104.2
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/README.md +4 -2
- package/dist/agent.d.ts +4 -5
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +14 -17
- package/dist/agent.js.map +1 -1
- package/dist/agui-emitter.d.ts +57 -0
- package/dist/agui-emitter.d.ts.map +1 -1
- package/dist/agui-emitter.js +98 -7
- package/dist/agui-emitter.js.map +1 -1
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +16 -4
- package/dist/control.js.map +1 -1
- package/dist/docs-bundle.generated.d.ts +1 -1
- package/dist/docs-bundle.generated.js +44 -44
- package/dist/docs-bundle.generated.js.map +1 -1
- package/dist/tool-result-journal.d.ts +86 -0
- package/dist/tool-result-journal.d.ts.map +1 -0
- package/dist/tool-result-journal.js +166 -0
- package/dist/tool-result-journal.js.map +1 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-bundle.generated.js","sourceRoot":"","sources":["../src/docs-bundle.generated.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AAEtC,MAAM,UAAU,cAAc;IAC5B,OAAO;QACP,SAAS,EAAE,SAAS;QACpB,eAAe,EAAE,mEAAmE;QACpF,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,eAAe;gBACvB,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,0BAA0B;gBAClC,UAAU,EAAE,YAAY;gBACxB,SAAS,EAAE,yFAAyF;gBACpG,MAAM,EAAE,6rKAA6rK;aACtsK;YACD;gBACE,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE,YAAY;gBACrB,MAAM,EAAE,0BAA0B;gBAClC,UAAU,EAAE,YAAY;gBACxB,SAAS,EAAE,gHAAgH;gBAC3H,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"docs-bundle.generated.js","sourceRoot":"","sources":["../src/docs-bundle.generated.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AAEtC,MAAM,UAAU,cAAc;IAC5B,OAAO;QACP,SAAS,EAAE,SAAS;QACpB,eAAe,EAAE,mEAAmE;QACpF,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,eAAe;gBACvB,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,0BAA0B;gBAClC,UAAU,EAAE,YAAY;gBACxB,SAAS,EAAE,yFAAyF;gBACpG,MAAM,EAAE,6rKAA6rK;aACtsK;YACD;gBACE,MAAM,EAAE,iBAAiB;gBACzB,OAAO,EAAE,YAAY;gBACrB,MAAM,EAAE,0BAA0B;gBAClC,UAAU,EAAE,YAAY;gBACxB,SAAS,EAAE,gHAAgH;gBAC3H,MAAM,EAAE,u0cAAu0c;aACh1c;YACD;gBACE,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,cAAc;gBACvB,MAAM,EAAE,uBAAuB;gBAC/B,UAAU,EAAE,SAAS;gBACrB,SAAS,EAAE,wMAAwM;gBACnN,MAAM,EAAE,0ktBAA0ktB;aACnltB;YACD;gBACE,MAAM,EAAE,WAAW;gBACnB,OAAO,EAAE,kBAAkB;gBAC3B,MAAM,EAAE,mEAAmE;gBAC3E,UAAU,EAAE,WAAW;gBACvB,SAAS,EAAE,wMAAwM;gBACnN,MAAM,EAAE,614CAA614C;aACt24C;YACD;gBACE,MAAM,EAAE,0BAA0B;gBAClC,OAAO,EAAE,qBAAqB;gBAC9B,MAAM,EAAE,mCAAmC;gBAC3C,UAAU,EAAE,WAAW;gBACvB,SAAS,EAAE,gGAAgG;gBAC3G,MAAM,EAAE,4sNAA4sN;aACrtN;YACD;gBACE,MAAM,EAAE,mBAAmB;gBAC3B,OAAO,EAAE,UAAU;gBACnB,MAAM,EAAE,uBAAuB;gBAC/B,UAAU,EAAE,SAAS;gBACrB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MAAM,EAAE,uBAAuB;gBAC/B,UAAU,EAAE,SAAS;gBACrB,SAAS,EAAE,kGAAkG;gBAC7G,MAAM,EAAE,8vQAA8vQ;aACvwQ;YACD;gBACE,MAAM,EAAE,WAAW;gBACnB,OAAO,EAAE,gCAAgC;gBACzC,MAAM,EAAE,qBAAqB;gBAC7B,UAAU,EAAE,OAAO;gBACnB,SAAS,EAAE,iEAAiE;gBAC5E,MAAM,EAAE,46jJAA46jJ;aACr7jJ;YACD;gBACE,MAAM,EAAE,aAAa;gBACrB,OAAO,EAAE,mBAAmB;gBAC5B,MAAM,EAAE,qBAAqB;gBAC7B,UAAU,EAAE,OAAO;gBACnB,SAAS,EAAE,iGAAiG;gBAC5G,MAAM,EAAE,s8NAAs8N;aAC/8N;YACD;gBACE,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,cAAc;gBACvB,MAAM,EAAE,qBAAqB;gBAC7B,UAAU,EAAE,OAAO;gBACnB,SAAS,EAAE,2HAA2H;gBACtI,MAAM,EAAE,+0qBAA+0qB;aACx1qB;YACD;gBACE,MAAM,EAAE,WAAW;gBACnB,OAAO,EAAE,eAAe;gBACxB,MAAM,EAAE,uBAAuB;gBAC/B,UAAU,EAAE,SAAS;gBACrB,SAAS,EAAE,kHAAkH;gBAC7H,MAAM,EAAE,69+DAA69+D;aACt++D;SACF;QACD,MAAM,EAAE;YACN,OAAO,EAAE,0BAA0B;YACnC,MAAM,EAAE,wyvpBAAwyvpB;SACjzvpB;QACD,MAAM,EAAE;YACN,OAAO,EAAE,mCAAmC;YAC5C,MAAM,EAAE,motGAAmotG;SAC5otG;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,oCAAoC;YAC7C,MAAM,EAAE,s8tBAAs8tB;SAC/8tB;KACF,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The connector's bounded result journal for SPEC §13.19.
|
|
3
|
+
*
|
|
4
|
+
* This is NOT a public event log, and it is not the consent or revocation record family: those
|
|
5
|
+
* live in the space auth store and are the host's. This holds only what a consented holder may
|
|
6
|
+
* later look up, for as long as §13.19 lets it, and answers the closed `tool-result` states.
|
|
7
|
+
*
|
|
8
|
+
* Two rules here are the ones that leak if they are written loosely, so they are enforced in the
|
|
9
|
+
* types rather than left to a caller:
|
|
10
|
+
*
|
|
11
|
+
* 1. **A RESULT never creates an entry** (§13.19.2). Only a START does. A result that arrives for
|
|
12
|
+
* an unknown call is dropped and said so, because an entry minted by a RESULT would carry no
|
|
13
|
+
* frontier decision and therefore no eligible consent set — it would be a result nobody
|
|
14
|
+
* established a right to read, sitting in a store whose whole purpose is that right.
|
|
15
|
+
* 2. **The eligible consent set is fixed at START and may never grow** (§13.19.3). `start` takes
|
|
16
|
+
* it once; nothing else writes it. Growth is the shape of the bug where a consent granted
|
|
17
|
+
* after a result was captured reaches back and reads it, which §13.19.3 forbids in the same
|
|
18
|
+
* sentence that forbids a newly consented holder reading before its own frontier.
|
|
19
|
+
*
|
|
20
|
+
* Revocation runs the other way and is allowed to shrink any set, including to nothing, at which
|
|
21
|
+
* point the entry is deleted rather than kept unreadable: a retained entry whose audience is empty
|
|
22
|
+
* is bytes nobody can read, so holding them is cost without purpose.
|
|
23
|
+
*
|
|
24
|
+
* The frontier itself (§13.19.2's durable position `P`) is decided before `start` is called and is
|
|
25
|
+
* not this type's business; it arrives already resolved as the consent ids the caller computed as
|
|
26
|
+
* eligible. Keeping placement out of here is deliberate — it is the emitter's position algebra,
|
|
27
|
+
* and mixing it with storage is how a position comparison ends up being made against wall-clock
|
|
28
|
+
* capture time, which §13.19.2 explicitly forbids.
|
|
29
|
+
*/
|
|
30
|
+
import { type ToolResultAnswer } from "@cotal-ai/core";
|
|
31
|
+
export interface ToolResultJournalOptions {
|
|
32
|
+
/** Injectable clock. Retention is the only time input; capture order never decides eligibility. */
|
|
33
|
+
now?: () => number;
|
|
34
|
+
maxEntries?: number;
|
|
35
|
+
maxContentBytes?: number;
|
|
36
|
+
retentionMs?: number;
|
|
37
|
+
}
|
|
38
|
+
export interface ToolResultStart {
|
|
39
|
+
threadId: string;
|
|
40
|
+
toolCallId: string;
|
|
41
|
+
/** The fixed eligible set, decided at START against the frontier. Empty means nobody, so no entry. */
|
|
42
|
+
consentIds: readonly string[];
|
|
43
|
+
}
|
|
44
|
+
export interface ToolResultCapture {
|
|
45
|
+
threadId: string;
|
|
46
|
+
toolCallId: string;
|
|
47
|
+
content: string;
|
|
48
|
+
error: boolean;
|
|
49
|
+
}
|
|
50
|
+
/** Why a capture did not land. `no-entry` is the §13.19.2 refusal, not an error condition. */
|
|
51
|
+
export type ToolResultCaptureOutcome = "captured" | "no-entry" | "already-captured";
|
|
52
|
+
export declare class ToolResultJournal {
|
|
53
|
+
#private;
|
|
54
|
+
constructor(options?: ToolResultJournalOptions);
|
|
55
|
+
/** Entries currently held, after dropping anything past retention. Bounded by `maxEntries`. */
|
|
56
|
+
size(): number;
|
|
57
|
+
/**
|
|
58
|
+
* Open an entry for a call the frontier admitted. A second START for the same call does NOT
|
|
59
|
+
* reopen or re-audience it: the set is fixed at the first one, and a repeat is the connector
|
|
60
|
+
* saying the same thing twice rather than a new decision.
|
|
61
|
+
*/
|
|
62
|
+
start(o: ToolResultStart): boolean;
|
|
63
|
+
/** Record the result of a started call. Never creates an entry (§13.19.2). */
|
|
64
|
+
capture(o: ToolResultCapture): ToolResultCaptureOutcome;
|
|
65
|
+
/**
|
|
66
|
+
* Drop `consentId` from every entry, deleting any entry it empties. Answers how many entries
|
|
67
|
+
* were deleted, which is what a caller reports; the count of entries merely narrowed is not
|
|
68
|
+
* interesting, because narrowing changes no reader's answer except that holder's.
|
|
69
|
+
*/
|
|
70
|
+
revoke(consentId: string): number;
|
|
71
|
+
/**
|
|
72
|
+
* Answer a lookup for a holder presenting `consentIds`, which the caller has already checked are
|
|
73
|
+
* active, unexpired and unrevoked for that holder — this type does not know holders and must not
|
|
74
|
+
* guess at one. Eligibility is set intersection and nothing else.
|
|
75
|
+
*
|
|
76
|
+
* `not-shared` and `missing` are deliberately distinct: `missing` says no such call was recorded,
|
|
77
|
+
* `not-shared` says it was and this holder is not in its audience. Collapsing them would be
|
|
78
|
+
* friendlier to a caller and would also tell an unconsented reader which tool calls exist.
|
|
79
|
+
*/
|
|
80
|
+
read(o: {
|
|
81
|
+
threadId: string;
|
|
82
|
+
toolCallId: string;
|
|
83
|
+
consentIds: readonly string[];
|
|
84
|
+
}): ToolResultAnswer;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=tool-result-journal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-result-journal.d.ts","sourceRoot":"","sources":["../src/tool-result-journal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,wBAAwB;IACvC,mGAAmG;IACnG,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,sGAAsG;IACtG,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,8FAA8F;AAC9F,MAAM,MAAM,wBAAwB,GAAG,UAAU,GAAG,UAAU,GAAG,kBAAkB,CAAC;AA6BpF,qBAAa,iBAAiB;;gBAOhB,OAAO,GAAE,wBAA6B;IAOlD,+FAA+F;IAC/F,IAAI,IAAI,MAAM;IAKd;;;;OAIG;IACH,KAAK,CAAC,CAAC,EAAE,eAAe,GAAG,OAAO;IAmBlC,8EAA8E;IAC9E,OAAO,CAAC,CAAC,EAAE,iBAAiB,GAAG,wBAAwB;IAUvD;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAYjC;;;;;;;;OAQG;IACH,IAAI,CAAC,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,GAAG,gBAAgB;CA+BnG"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The connector's bounded result journal for SPEC §13.19.
|
|
3
|
+
*
|
|
4
|
+
* This is NOT a public event log, and it is not the consent or revocation record family: those
|
|
5
|
+
* live in the space auth store and are the host's. This holds only what a consented holder may
|
|
6
|
+
* later look up, for as long as §13.19 lets it, and answers the closed `tool-result` states.
|
|
7
|
+
*
|
|
8
|
+
* Two rules here are the ones that leak if they are written loosely, so they are enforced in the
|
|
9
|
+
* types rather than left to a caller:
|
|
10
|
+
*
|
|
11
|
+
* 1. **A RESULT never creates an entry** (§13.19.2). Only a START does. A result that arrives for
|
|
12
|
+
* an unknown call is dropped and said so, because an entry minted by a RESULT would carry no
|
|
13
|
+
* frontier decision and therefore no eligible consent set — it would be a result nobody
|
|
14
|
+
* established a right to read, sitting in a store whose whole purpose is that right.
|
|
15
|
+
* 2. **The eligible consent set is fixed at START and may never grow** (§13.19.3). `start` takes
|
|
16
|
+
* it once; nothing else writes it. Growth is the shape of the bug where a consent granted
|
|
17
|
+
* after a result was captured reaches back and reads it, which §13.19.3 forbids in the same
|
|
18
|
+
* sentence that forbids a newly consented holder reading before its own frontier.
|
|
19
|
+
*
|
|
20
|
+
* Revocation runs the other way and is allowed to shrink any set, including to nothing, at which
|
|
21
|
+
* point the entry is deleted rather than kept unreadable: a retained entry whose audience is empty
|
|
22
|
+
* is bytes nobody can read, so holding them is cost without purpose.
|
|
23
|
+
*
|
|
24
|
+
* The frontier itself (§13.19.2's durable position `P`) is decided before `start` is called and is
|
|
25
|
+
* not this type's business; it arrives already resolved as the consent ids the caller computed as
|
|
26
|
+
* eligible. Keeping placement out of here is deliberate — it is the emitter's position algebra,
|
|
27
|
+
* and mixing it with storage is how a position comparison ends up being made against wall-clock
|
|
28
|
+
* capture time, which §13.19.2 explicitly forbids.
|
|
29
|
+
*/
|
|
30
|
+
import { TOOL_RESULT_MAX_CONTENT_BYTES, TOOL_RESULT_MAX_ENTRIES, TOOL_RESULT_MAX_RETENTION_MS, } from "@cotal-ai/core";
|
|
31
|
+
const key = (threadId, toolCallId) => `${threadId}\u0000${toolCallId}`;
|
|
32
|
+
/**
|
|
33
|
+
* Cut `content` to at most `max` BYTES without splitting a character.
|
|
34
|
+
*
|
|
35
|
+
* Byte-exact truncation matters because the limit is a byte limit, and a naive `slice` on the
|
|
36
|
+
* string cuts code units, which can both overshoot the byte budget and split an astral character
|
|
37
|
+
* into lone surrogates. Walking back off UTF-8 continuation bytes (`10xxxxxx`) lands the cut on a
|
|
38
|
+
* lead byte, so the decoded prefix is always well-formed. `byteCount` reports the FULL size, not
|
|
39
|
+
* the kept size: a reader needs to know how much there was to know what truncation cost.
|
|
40
|
+
*/
|
|
41
|
+
function cutToBytes(content, max) {
|
|
42
|
+
const bytes = new TextEncoder().encode(content);
|
|
43
|
+
if (bytes.length <= max)
|
|
44
|
+
return { kept: content, truncated: false, byteCount: bytes.length };
|
|
45
|
+
let cut = max;
|
|
46
|
+
while (cut > 0 && (bytes[cut] & 0xc0) === 0x80)
|
|
47
|
+
cut--;
|
|
48
|
+
return { kept: new TextDecoder().decode(bytes.subarray(0, cut)), truncated: true, byteCount: bytes.length };
|
|
49
|
+
}
|
|
50
|
+
export class ToolResultJournal {
|
|
51
|
+
#entries = new Map();
|
|
52
|
+
#now;
|
|
53
|
+
#maxEntries;
|
|
54
|
+
#maxContentBytes;
|
|
55
|
+
#retentionMs;
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this.#now = options.now ?? Date.now;
|
|
58
|
+
this.#maxEntries = options.maxEntries ?? TOOL_RESULT_MAX_ENTRIES;
|
|
59
|
+
this.#maxContentBytes = options.maxContentBytes ?? TOOL_RESULT_MAX_CONTENT_BYTES;
|
|
60
|
+
this.#retentionMs = options.retentionMs ?? TOOL_RESULT_MAX_RETENTION_MS;
|
|
61
|
+
}
|
|
62
|
+
/** Entries currently held, after dropping anything past retention. Bounded by `maxEntries`. */
|
|
63
|
+
size() {
|
|
64
|
+
this.#purge();
|
|
65
|
+
return this.#entries.size;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Open an entry for a call the frontier admitted. A second START for the same call does NOT
|
|
69
|
+
* reopen or re-audience it: the set is fixed at the first one, and a repeat is the connector
|
|
70
|
+
* saying the same thing twice rather than a new decision.
|
|
71
|
+
*/
|
|
72
|
+
start(o) {
|
|
73
|
+
this.#purge();
|
|
74
|
+
const ids = new Set(o.consentIds);
|
|
75
|
+
// An empty eligible set is the deleted state (§13.19.3), so it is never the created state.
|
|
76
|
+
if (ids.size === 0)
|
|
77
|
+
return false;
|
|
78
|
+
const k = key(o.threadId, o.toolCallId);
|
|
79
|
+
if (this.#entries.has(k))
|
|
80
|
+
return false;
|
|
81
|
+
this.#entries.set(k, { threadId: o.threadId, toolCallId: o.toolCallId, consentIds: ids, startedAt: this.#now() });
|
|
82
|
+
// Oldest-first eviction. Map preserves insertion order, and entries are inserted at START, so
|
|
83
|
+
// the first key is the oldest START. Bounding by START rather than by capture keeps a long-
|
|
84
|
+
// running call from being evicted by younger calls that finished before it.
|
|
85
|
+
while (this.#entries.size > this.#maxEntries) {
|
|
86
|
+
const oldest = this.#entries.keys().next();
|
|
87
|
+
if (oldest.done === true)
|
|
88
|
+
break;
|
|
89
|
+
this.#entries.delete(oldest.value);
|
|
90
|
+
}
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
/** Record the result of a started call. Never creates an entry (§13.19.2). */
|
|
94
|
+
capture(o) {
|
|
95
|
+
this.#purge();
|
|
96
|
+
const entry = this.#entries.get(key(o.threadId, o.toolCallId));
|
|
97
|
+
if (entry === undefined)
|
|
98
|
+
return "no-entry";
|
|
99
|
+
if (entry.result !== undefined)
|
|
100
|
+
return "already-captured";
|
|
101
|
+
const { kept, truncated, byteCount } = cutToBytes(o.content, this.#maxContentBytes);
|
|
102
|
+
entry.result = { content: kept, truncated, byteCount, error: o.error, capturedAt: this.#now() };
|
|
103
|
+
return "captured";
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Drop `consentId` from every entry, deleting any entry it empties. Answers how many entries
|
|
107
|
+
* were deleted, which is what a caller reports; the count of entries merely narrowed is not
|
|
108
|
+
* interesting, because narrowing changes no reader's answer except that holder's.
|
|
109
|
+
*/
|
|
110
|
+
revoke(consentId) {
|
|
111
|
+
let deleted = 0;
|
|
112
|
+
for (const [k, entry] of this.#entries) {
|
|
113
|
+
if (!entry.consentIds.delete(consentId))
|
|
114
|
+
continue;
|
|
115
|
+
if (entry.consentIds.size === 0) {
|
|
116
|
+
this.#entries.delete(k);
|
|
117
|
+
deleted++;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return deleted;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Answer a lookup for a holder presenting `consentIds`, which the caller has already checked are
|
|
124
|
+
* active, unexpired and unrevoked for that holder — this type does not know holders and must not
|
|
125
|
+
* guess at one. Eligibility is set intersection and nothing else.
|
|
126
|
+
*
|
|
127
|
+
* `not-shared` and `missing` are deliberately distinct: `missing` says no such call was recorded,
|
|
128
|
+
* `not-shared` says it was and this holder is not in its audience. Collapsing them would be
|
|
129
|
+
* friendlier to a caller and would also tell an unconsented reader which tool calls exist.
|
|
130
|
+
*/
|
|
131
|
+
read(o) {
|
|
132
|
+
const k = key(o.threadId, o.toolCallId);
|
|
133
|
+
const entry = this.#entries.get(k);
|
|
134
|
+
if (entry === undefined)
|
|
135
|
+
return { state: "missing" };
|
|
136
|
+
if (this.#expired(entry)) {
|
|
137
|
+
this.#entries.delete(k);
|
|
138
|
+
return { state: "expired" };
|
|
139
|
+
}
|
|
140
|
+
if (!o.consentIds.some((id) => entry.consentIds.has(id)))
|
|
141
|
+
return { state: "not-shared" };
|
|
142
|
+
const result = entry.result;
|
|
143
|
+
if (result === undefined)
|
|
144
|
+
return { state: "pending", threadId: entry.threadId, toolCallId: entry.toolCallId };
|
|
145
|
+
return {
|
|
146
|
+
state: "available",
|
|
147
|
+
threadId: entry.threadId,
|
|
148
|
+
toolCallId: entry.toolCallId,
|
|
149
|
+
content: result.content,
|
|
150
|
+
truncated: result.truncated,
|
|
151
|
+
byteCount: result.byteCount,
|
|
152
|
+
error: result.error,
|
|
153
|
+
capturedAt: result.capturedAt,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
/** Retention runs from START, so an entry whose call never returns cannot be held forever. */
|
|
157
|
+
#expired(entry) {
|
|
158
|
+
return this.#now() - entry.startedAt > this.#retentionMs;
|
|
159
|
+
}
|
|
160
|
+
#purge() {
|
|
161
|
+
for (const [k, entry] of this.#entries)
|
|
162
|
+
if (this.#expired(entry))
|
|
163
|
+
this.#entries.delete(k);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=tool-result-journal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-result-journal.js","sourceRoot":"","sources":["../src/tool-result-journal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,GAE7B,MAAM,gBAAgB,CAAC;AAmCxB,MAAM,GAAG,GAAG,CAAC,QAAgB,EAAE,UAAkB,EAAU,EAAE,CAAC,GAAG,QAAQ,SAAS,UAAU,EAAE,CAAC;AAE/F;;;;;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
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/connector-core",
|
|
3
3
|
"description": "Shared MCP-bridge runtime for Cotal connectors: the mesh agent, cotal_* tools, and hook relay.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.104.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@cotal-ai/core": ">=0.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@cotal-ai/auth": "0.
|
|
40
|
+
"@cotal-ai/auth": "0.104.2",
|
|
41
41
|
"jose": "^6.2.3",
|
|
42
42
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
43
43
|
"@ag-ui/core": "0.0.57",
|
|
44
|
-
"@cotal-ai/core": "0.
|
|
44
|
+
"@cotal-ai/core": "0.104.2",
|
|
45
45
|
"@nats-io/jetstream": "^3.4.0",
|
|
46
46
|
"@nats-io/transport-node": "^3.4.0"
|
|
47
47
|
},
|