@xenosystem/agent-interface-host 0.1.151 → 0.1.153

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.
@@ -0,0 +1,49 @@
1
+ import type { AgentConversationTranscriptItem, AgentRuntimeEventDraft, AgentRuntimeEventEnvelope, AgentTurnMessage, AgentTurnStartRequest } from '@xenosystem/agent-interface-contract';
2
+ /**
3
+ * The host owns the conversation (decision 0001, ADE §9 step 5).
4
+ *
5
+ * The transcript is a PROJECTION of the host's own append-only event log, never a second store: the lanes already
6
+ * write the reply, tools and usage there, and the host adds the one thing only it saw — what the person said — as a
7
+ * `turn.input` event before it dispatches the turn. A second transcript store beside the log would be a second record
8
+ * that could disagree with the first.
9
+ */
10
+ export declare const TURN_INPUT_EVENT_TYPE = "turn.input";
11
+ /** A host-recorded compaction (decision 0002): `summary` stands for every turn through `throughRequestId`. */
12
+ export declare const CONVERSATION_COMPACTED_EVENT_TYPE = "conversation.compacted";
13
+ /** The purpose a summarising turn's input carries, so its prompt and reply never become conversation. */
14
+ export declare const COMPACTION_TURN_PURPOSE = "compaction";
15
+ /**
16
+ * The draft the host appends before dispatching a turn. `redact` is the workspace's own redaction, the same one every
17
+ * persisted lane event passes through, so a secret typed into a prompt is stored exactly as a secret in a reply is.
18
+ */
19
+ export declare function turnInputEventDraft(request: AgentTurnStartRequest, provider: {
20
+ id: string;
21
+ kind: string;
22
+ }, redact?: (value: Record<string, unknown>) => Record<string, unknown>, purpose?: typeof COMPACTION_TURN_PURPOSE): AgentRuntimeEventDraft;
23
+ /**
24
+ * One thread of the log: the conversation's own turns, or one subagent run's. A child run writes under its parent's
25
+ * conversation id with its own `subagentRunId`, and is not part of the parent's transcript.
26
+ */
27
+ export declare function inThread(event: AgentRuntimeEventEnvelope, subagentRunId: string | undefined): boolean;
28
+ export declare function projectHostTranscript(events: readonly AgentRuntimeEventEnvelope[], options?: {
29
+ subagentRunId?: string;
30
+ }): AgentConversationTranscriptItem[];
31
+ /**
32
+ * The history a `historySource: 'host'` turn is sent with: every earlier turn of the thread, the person's words and
33
+ * the reply the model actually produced. A turn still running is not history. A reply with no text (a turn that only
34
+ * ran tools, or failed before speaking) contributes nothing rather than an empty message.
35
+ */
36
+ export declare function hostHistoryFromTranscript(items: readonly AgentConversationTranscriptItem[], currentRequestId: string): AgentTurnMessage[];
37
+ /** The thread's turns in log order, each with the events that belong to it. Compaction records are not turns. */
38
+ export declare function turnsOf(events: readonly AgentRuntimeEventEnvelope[]): Array<{
39
+ requestId: string;
40
+ events: AgentRuntimeEventEnvelope[];
41
+ }>;
42
+ /**
43
+ * The events a fork through `throughRequestId` carries (decision 0002): every event of the turns up to and including
44
+ * it, plus the compactions whose summary covers only kept turns. `undefined` keeps all. `null`: no such turn.
45
+ */
46
+ export declare function eventsThrough(events: readonly AgentRuntimeEventEnvelope[], throughRequestId: string | undefined): AgentRuntimeEventEnvelope[] | null;
47
+ /** The events of exactly these turns, and the compactions that summarise only them. */
48
+ export declare function eventsOfTurns(events: readonly AgentRuntimeEventEnvelope[], requestIds: readonly string[]): AgentRuntimeEventEnvelope[];
49
+ //# sourceMappingURL=hostTranscript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hostTranscript.d.ts","sourceRoot":"","sources":["../../src/transcript/hostTranscript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,+BAA+B,EAC/B,sBAAsB,EACtB,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,sCAAsC,CAAA;AAG7C;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,eAAe,CAAA;AACjD,8GAA8G;AAC9G,eAAO,MAAM,iCAAiC,2BAA2B,CAAA;AACzE,yGAAyG;AACzG,eAAO,MAAM,uBAAuB,eAAe,CAAA;AAEnD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACtC,MAAM,GAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAoB,EACtF,OAAO,CAAC,EAAE,OAAO,uBAAuB,GACvC,sBAAsB,CAuBxB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAErG;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,yBAAyB,EAAE,EAC5C,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAO,GACvC,+BAA+B,EAAE,CAmFnC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,SAAS,+BAA+B,EAAE,EAAE,gBAAgB,EAAE,MAAM,GAAG,gBAAgB,EAAE,CAwBzI;AAED,iHAAiH;AACjH,wBAAgB,OAAO,CAAC,MAAM,EAAE,SAAS,yBAAyB,EAAE,GAAG,KAAK,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,yBAAyB,EAAE,CAAA;CAAE,CAAC,CASvI;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,yBAAyB,EAAE,EAAE,gBAAgB,EAAE,MAAM,GAAG,SAAS,GAAG,yBAAyB,EAAE,GAAG,IAAI,CAOpJ;AAED,uFAAuF;AACvF,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,yBAAyB,EAAE,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,yBAAyB,EAAE,CAStI"}
@@ -0,0 +1,216 @@
1
+ import { projectRuntimeTimeline } from '../runtime/RuntimeTimelineProjection.js';
2
+ /**
3
+ * The host owns the conversation (decision 0001, ADE §9 step 5).
4
+ *
5
+ * The transcript is a PROJECTION of the host's own append-only event log, never a second store: the lanes already
6
+ * write the reply, tools and usage there, and the host adds the one thing only it saw — what the person said — as a
7
+ * `turn.input` event before it dispatches the turn. A second transcript store beside the log would be a second record
8
+ * that could disagree with the first.
9
+ */
10
+ export const TURN_INPUT_EVENT_TYPE = 'turn.input';
11
+ /** A host-recorded compaction (decision 0002): `summary` stands for every turn through `throughRequestId`. */
12
+ export const CONVERSATION_COMPACTED_EVENT_TYPE = 'conversation.compacted';
13
+ /** The purpose a summarising turn's input carries, so its prompt and reply never become conversation. */
14
+ export const COMPACTION_TURN_PURPOSE = 'compaction';
15
+ /**
16
+ * The draft the host appends before dispatching a turn. `redact` is the workspace's own redaction, the same one every
17
+ * persisted lane event passes through, so a secret typed into a prompt is stored exactly as a secret in a reply is.
18
+ */
19
+ export function turnInputEventDraft(request, provider, redact = (value) => value, purpose) {
20
+ const event = redact({
21
+ ...(purpose ? { purpose } : {}),
22
+ // One per request: a replayed or retried dispatch of the same request lands on the same id and is a duplicate.
23
+ id: `turn-input-${request.requestId}`,
24
+ type: TURN_INPUT_EVENT_TYPE,
25
+ timestamp: new Date().toISOString(),
26
+ text: request.prompt,
27
+ });
28
+ return {
29
+ conversationId: request.conversationId,
30
+ requestId: request.requestId,
31
+ ...(request.workspaceId ? { workspaceId: request.workspaceId } : {}),
32
+ ...(request.teamId ? { teamId: request.teamId } : {}),
33
+ ...(request.agentId ? { agentId: request.agentId } : {}),
34
+ ...(request.subagentRunId ? { subagentRunId: request.subagentRunId } : {}),
35
+ providerKind: provider.kind,
36
+ providerId: provider.id,
37
+ source: 'agent-host',
38
+ schemaVersion: '1',
39
+ redactionState: 'safe',
40
+ event,
41
+ };
42
+ }
43
+ /**
44
+ * One thread of the log: the conversation's own turns, or one subagent run's. A child run writes under its parent's
45
+ * conversation id with its own `subagentRunId`, and is not part of the parent's transcript.
46
+ */
47
+ export function inThread(event, subagentRunId) {
48
+ return (event.subagentRunId || undefined) === (subagentRunId || undefined);
49
+ }
50
+ export function projectHostTranscript(events, options = {}) {
51
+ const thread = events.filter((event) => inThread(event, options.subagentRunId));
52
+ // A summarising turn is bookkeeping, never conversation: its prompt and reply leave the transcript entirely, and
53
+ // what it produced appears once, as the compaction item its `conversation.compacted` event records.
54
+ const summarising = new Set(thread
55
+ .filter((event) => event.type === TURN_INPUT_EVENT_TYPE && event.event.purpose === COMPACTION_TURN_PURPOSE)
56
+ .map((event) => event.requestId));
57
+ const conversation = thread.filter((event) => !summarising.has(event.requestId));
58
+ const inputs = new Map();
59
+ const answered = new Set();
60
+ for (const event of conversation) {
61
+ if (event.type === TURN_INPUT_EVENT_TYPE) {
62
+ if (!inputs.has(event.requestId))
63
+ inputs.set(event.requestId, event);
64
+ }
65
+ else if (event.type !== CONVERSATION_COMPACTED_EVENT_TYPE)
66
+ answered.add(event.requestId);
67
+ }
68
+ const timeline = projectRuntimeTimeline(conversation.filter((event) => event.type !== TURN_INPUT_EVENT_TYPE && event.type !== CONVERSATION_COMPACTED_EVENT_TYPE));
69
+ const requests = new Map(timeline.requests.map((request) => [request.requestId, request]));
70
+ const toolsByRequest = new Map();
71
+ for (const tool of timeline.tools) {
72
+ const list = toolsByRequest.get(tool.requestId) ?? [];
73
+ list.push({ id: tool.id, toolName: tool.toolName, status: tool.status });
74
+ toolsByRequest.set(tool.requestId, list);
75
+ }
76
+ // Ordered by where each turn starts in the log: its input when the host recorded one, else its first lane event
77
+ // (turns from before decision 0001 have no input event, and their replies still belong in order).
78
+ const firstSequence = new Map();
79
+ for (const event of conversation) {
80
+ if (event.type === CONVERSATION_COMPACTED_EVENT_TYPE)
81
+ continue;
82
+ if (!firstSequence.has(event.requestId))
83
+ firstSequence.set(event.requestId, event.sequence);
84
+ }
85
+ const order = [...firstSequence.keys()].sort((a, b) => firstSequence.get(a) - firstSequence.get(b));
86
+ // Compactions sit where they were recorded: after every turn that started before them.
87
+ const compactions = thread.filter((event) => event.type === CONVERSATION_COMPACTED_EVENT_TYPE
88
+ && typeof event.event.summary === 'string' && typeof event.event.throughRequestId === 'string')
89
+ .sort((a, b) => a.sequence - b.sequence);
90
+ const items = [];
91
+ let nextCompaction = 0;
92
+ const placeCompactionsBefore = (sequence) => {
93
+ while (nextCompaction < compactions.length && compactions[nextCompaction].sequence < sequence) {
94
+ const event = compactions[nextCompaction++];
95
+ items.push({
96
+ kind: 'compaction',
97
+ itemId: event.id,
98
+ requestId: event.requestId,
99
+ sequence: event.sequence,
100
+ timestamp: event.timestamp,
101
+ throughRequestId: event.event.throughRequestId,
102
+ summary: event.event.summary,
103
+ text: event.event.summary,
104
+ });
105
+ }
106
+ };
107
+ for (const requestId of order) {
108
+ placeCompactionsBefore(firstSequence.get(requestId));
109
+ const input = inputs.get(requestId);
110
+ if (input) {
111
+ items.push({
112
+ kind: 'user',
113
+ itemId: input.id,
114
+ requestId,
115
+ sequence: input.sequence,
116
+ timestamp: input.timestamp,
117
+ text: typeof input.event.text === 'string' ? input.event.text : '',
118
+ });
119
+ }
120
+ const reply = requests.get(requestId);
121
+ if (!answered.has(requestId) || !reply)
122
+ continue;
123
+ items.push({
124
+ kind: 'assistant',
125
+ itemId: `reply-${requestId}`,
126
+ requestId,
127
+ status: reply.status,
128
+ text: reply.text,
129
+ ...(reply.model ? { model: reply.model } : {}),
130
+ ...(reply.completedAt || reply.failedAt ? { completedAt: (reply.completedAt || reply.failedAt) } : {}),
131
+ ...(reply.error ? { error: reply.error } : {}),
132
+ tools: toolsByRequest.get(requestId) ?? [],
133
+ ...(reply.tokenUsage ? { tokenUsage: { ...reply.tokenUsage } } : {}),
134
+ });
135
+ }
136
+ placeCompactionsBefore(Number.POSITIVE_INFINITY);
137
+ return items;
138
+ }
139
+ /**
140
+ * The history a `historySource: 'host'` turn is sent with: every earlier turn of the thread, the person's words and
141
+ * the reply the model actually produced. A turn still running is not history. A reply with no text (a turn that only
142
+ * ran tools, or failed before speaking) contributes nothing rather than an empty message.
143
+ */
144
+ export function hostHistoryFromTranscript(items, currentRequestId) {
145
+ const history = [];
146
+ // After a compaction the model is sent its summary in place of every turn it covers (decision 0002). The summary is
147
+ // the model's own words from the summarising turn, so it is sent as the assistant's; that also keeps the roles
148
+ // alternating, which some providers require. The log itself still holds every original turn.
149
+ let rest = items;
150
+ const last = items.map((item) => item.kind).lastIndexOf('compaction');
151
+ if (last !== -1) {
152
+ const compaction = items[last];
153
+ history.push({ role: 'assistant', content: `Summary of the conversation so far:\n${compaction.summary}` });
154
+ const turnOrder = [];
155
+ for (const item of items)
156
+ if (item.kind !== 'compaction' && !turnOrder.includes(item.requestId))
157
+ turnOrder.push(item.requestId);
158
+ const throughIndex = turnOrder.indexOf(compaction.throughRequestId);
159
+ const covered = new Set(turnOrder.slice(0, throughIndex + 1));
160
+ rest = items.slice(last + 1).filter((item) => !covered.has(item.requestId));
161
+ }
162
+ for (const item of rest) {
163
+ if (item.kind === 'compaction')
164
+ continue;
165
+ if (item.requestId === currentRequestId)
166
+ continue;
167
+ if (item.kind === 'user') {
168
+ history.push({ role: 'user', content: item.text });
169
+ continue;
170
+ }
171
+ if (item.status === 'running')
172
+ continue;
173
+ if (item.text.trim())
174
+ history.push({ role: 'assistant', content: item.text });
175
+ }
176
+ return history;
177
+ }
178
+ /** The thread's turns in log order, each with the events that belong to it. Compaction records are not turns. */
179
+ export function turnsOf(events) {
180
+ const byRequest = new Map();
181
+ for (const event of [...events].sort((a, b) => a.sequence - b.sequence)) {
182
+ if (event.type === CONVERSATION_COMPACTED_EVENT_TYPE)
183
+ continue;
184
+ const list = byRequest.get(event.requestId) ?? [];
185
+ list.push(event);
186
+ byRequest.set(event.requestId, list);
187
+ }
188
+ return [...byRequest.entries()].map(([requestId, list]) => ({ requestId, events: list }));
189
+ }
190
+ /**
191
+ * The events a fork through `throughRequestId` carries (decision 0002): every event of the turns up to and including
192
+ * it, plus the compactions whose summary covers only kept turns. `undefined` keeps all. `null`: no such turn.
193
+ */
194
+ export function eventsThrough(events, throughRequestId) {
195
+ const sorted = [...events].sort((a, b) => a.sequence - b.sequence);
196
+ if (throughRequestId === undefined)
197
+ return sorted;
198
+ const turns = turnsOf(sorted);
199
+ const index = turns.findIndex((turn) => turn.requestId === throughRequestId);
200
+ if (index === -1)
201
+ return null;
202
+ return eventsOfTurns(sorted, turns.slice(0, index + 1).map((turn) => turn.requestId));
203
+ }
204
+ /** The events of exactly these turns, and the compactions that summarise only them. */
205
+ export function eventsOfTurns(events, requestIds) {
206
+ const kept = new Set(requestIds);
207
+ const turnOrder = turnsOf(events).map((turn) => turn.requestId);
208
+ return [...events].sort((a, b) => a.sequence - b.sequence).filter((event) => {
209
+ if (event.type !== CONVERSATION_COMPACTED_EVENT_TYPE)
210
+ return kept.has(event.requestId);
211
+ // A summary may stand in for its turns only where all of them are still here.
212
+ const through = turnOrder.indexOf(String(event.event.throughRequestId));
213
+ return through !== -1 && turnOrder.slice(0, through + 1).every((requestId) => kept.has(requestId));
214
+ });
215
+ }
216
+ //# sourceMappingURL=hostTranscript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hostTranscript.js","sourceRoot":"","sources":["../../src/transcript/hostTranscript.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAA;AAEhF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAA;AACjD,8GAA8G;AAC9G,MAAM,CAAC,MAAM,iCAAiC,GAAG,wBAAwB,CAAA;AACzE,yGAAyG;AACzG,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAA;AAEnD;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAA8B,EAC9B,QAAsC,EACtC,SAAsE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EACtF,OAAwC;IAExC,MAAM,KAAK,GAAG,MAAM,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/B,+GAA+G;QAC/G,EAAE,EAAE,cAAc,OAAO,CAAC,SAAS,EAAE;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G,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1E,IAAI,KAAK,CAAC,IAAI,KAAK,iCAAiC;YAAE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QACtF,8EAA8E;QAC9E,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAA;QACvE,OAAO,OAAO,KAAK,CAAC,CAAC,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAA;IACpG,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/agent-interface-host",
3
- "version": "0.1.151",
3
+ "version": "0.1.153",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -37,13 +37,13 @@
37
37
  "@xenosystem/capability-sdk": "0.1.1",
38
38
  "@xenosystem/primitives": "0.3.1",
39
39
  "zod": "4.6.7",
40
- "@xenosystem/agent-interface-contract": "0.1.151",
41
- "@xenosystem/agent-interface-core": "0.1.151",
42
- "@xenosystem/capability-mcp": "0.1.151"
40
+ "@xenosystem/agent-interface-contract": "0.1.153",
41
+ "@xenosystem/capability-mcp": "0.1.153",
42
+ "@xenosystem/agent-interface-core": "0.1.153"
43
43
  },
44
44
  "optionalDependencies": {
45
45
  "@xenosystem/acp-agent": "0.2.25",
46
- "@xenosystem/agent-interface-client": "0.1.151"
46
+ "@xenosystem/agent-interface-client": "0.1.153"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@xeno-corporation/account": "0.4.1",
@@ -66,8 +66,7 @@
66
66
  "better-sqlite3": "13.0.3",
67
67
  "node-pty": "^1.1.0",
68
68
  "fflate": "^0.8.3",
69
- "@xenosystem/agent-interface-client": "0.1.151"
69
+ "@xenosystem/agent-interface-client": "0.1.153"
70
70
  },
71
- "scripts": {},
72
- "gitHead": "b832bd3f32c339888b9b1a7a9cd6a5ea52e491c2"
71
+ "scripts": {}
73
72
  }