@unieai/rabi-api-session-controller 0.0.0-stage → 0.2.2-rc.5
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/LICENSE +21 -0
- package/README.md +7 -2
- package/lib/client.js +4 -0
- package/lib/index.js +4300 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +5013 -0
- package/lib/typert.remote-client.d.ts +115 -0
- package/lib/typert.remote-client.js +2714 -0
- package/lib/types/agent.d.ts +164 -0
- package/lib/types/agent.js +484 -0
- package/lib/types/archived-session-gate.d.ts +33 -0
- package/lib/types/archived-session-gate.js +54 -0
- package/lib/types/assistant-stream.d.ts +26 -0
- package/lib/types/assistant-stream.js +82 -0
- package/lib/types/catalog.d.ts +24 -0
- package/lib/types/catalog.js +107 -0
- package/lib/types/client/contract/events.d.ts +102 -0
- package/lib/types/client/contract/events.js +111 -0
- package/lib/types/client/contract/session.d.ts +178 -0
- package/lib/types/client/contract/session.js +1 -0
- package/lib/types/client/contract/sessions.d.ts +162 -0
- package/lib/types/client/contract/sessions.js +1 -0
- package/lib/types/client/contract/snapshot.d.ts +84 -0
- package/lib/types/client/contract/snapshot.js +1 -0
- package/lib/types/client/index.d.ts +39 -0
- package/lib/types/client/index.js +60 -0
- package/lib/types/client/ordered-baseline.d.ts +12 -0
- package/lib/types/client/ordered-baseline.js +40 -0
- package/lib/types/client/scope.d.ts +46 -0
- package/lib/types/client/scope.js +46 -0
- package/lib/types/client/session-wire-event.d.ts +11 -0
- package/lib/types/client/session-wire-event.js +42 -0
- package/lib/types/client/sessions/assistant-stream.d.ts +56 -0
- package/lib/types/client/sessions/assistant-stream.js +182 -0
- package/lib/types/client/sessions/history-records.d.ts +22 -0
- package/lib/types/client/sessions/history-records.js +25 -0
- package/lib/types/client/sessions/lineage.d.ts +48 -0
- package/lib/types/client/sessions/lineage.js +55 -0
- package/lib/types/client/sessions/manager.d.ts +272 -0
- package/lib/types/client/sessions/manager.js +774 -0
- package/lib/types/client/sessions/notifier.d.ts +39 -0
- package/lib/types/client/sessions/notifier.js +97 -0
- package/lib/types/client/sessions/projection-store.d.ts +128 -0
- package/lib/types/client/sessions/projection-store.js +161 -0
- package/lib/types/client/sessions/remotes.d.ts +29 -0
- package/lib/types/client/sessions/remotes.js +7 -0
- package/lib/types/client/sessions/service.d.ts +263 -0
- package/lib/types/client/sessions/service.js +597 -0
- package/lib/types/client/sessions/session.d.ts +303 -0
- package/lib/types/client/sessions/session.js +991 -0
- package/lib/types/client/time-zone.d.ts +8 -0
- package/lib/types/client/time-zone.js +13 -0
- package/lib/types/client/transport.d.ts +77 -0
- package/lib/types/client/transport.js +130 -0
- package/lib/types/commands.d.ts +92 -0
- package/lib/types/commands.js +575 -0
- package/lib/types/continuation.d.ts +35 -0
- package/lib/types/continuation.js +47 -0
- package/lib/types/control.d.ts +20 -0
- package/lib/types/control.js +106 -0
- package/lib/types/file-references.d.ts +27 -0
- package/lib/types/file-references.js +68 -0
- package/lib/types/history/assistant-stream.d.ts +43 -0
- package/lib/types/history/assistant-stream.js +79 -0
- package/lib/types/history/controller.d.ts +104 -0
- package/lib/types/history/controller.js +293 -0
- package/lib/types/history/listener.d.ts +105 -0
- package/lib/types/history/listener.js +296 -0
- package/lib/types/history.d.ts +58 -0
- package/lib/types/history.js +152 -0
- package/lib/types/index.d.ts +262 -0
- package/lib/types/index.js +693 -0
- package/lib/types/list.d.ts +62 -0
- package/lib/types/list.js +343 -0
- package/lib/types/media-references.d.ts +18 -0
- package/lib/types/media-references.js +84 -0
- package/lib/types/remote-events.d.ts +8 -0
- package/lib/types/remote-events.js +1 -0
- package/lib/types/skill-catalog.d.ts +28 -0
- package/lib/types/skill-catalog.js +203 -0
- package/lib/types/state/controller.d.ts +45 -0
- package/lib/types/state/controller.js +288 -0
- package/lib/types/state/listener.d.ts +40 -0
- package/lib/types/state/listener.js +111 -0
- package/lib/types/types.d.ts +687 -0
- package/lib/types/types.js +5 -0
- package/lib/types/web/controller.d.ts +25 -0
- package/lib/types/web/controller.js +138 -0
- package/locale/de.json +6 -0
- package/locale/en.json +5 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +119 -4
- package/src/agent.ts +474 -0
- package/src/archived-session-gate.ts +59 -0
- package/src/assistant-stream.ts +102 -0
- package/src/catalog.ts +117 -0
- package/src/client/contract/events.ts +205 -0
- package/src/client/contract/session.ts +174 -0
- package/src/client/contract/sessions.ts +169 -0
- package/src/client/contract/snapshot.ts +94 -0
- package/src/client/index.ts +149 -0
- package/src/client/ordered-baseline.ts +43 -0
- package/src/client/scope.ts +76 -0
- package/src/client/session-wire-event.ts +46 -0
- package/src/client/sessions/assistant-stream.ts +229 -0
- package/src/client/sessions/history-records.ts +35 -0
- package/src/client/sessions/lineage.ts +96 -0
- package/src/client/sessions/manager.ts +857 -0
- package/src/client/sessions/notifier.ts +97 -0
- package/src/client/sessions/projection-store.ts +244 -0
- package/src/client/sessions/remotes.ts +44 -0
- package/src/client/sessions/service.ts +741 -0
- package/src/client/sessions/session.ts +1055 -0
- package/src/client/time-zone.ts +14 -0
- package/src/client/transport.ts +247 -0
- package/src/commands.ts +602 -0
- package/src/continuation.ts +58 -0
- package/src/control.ts +121 -0
- package/src/file-references.ts +42 -0
- package/src/history/assistant-stream.ts +102 -0
- package/src/history/controller.ts +256 -0
- package/src/history/listener.ts +302 -0
- package/src/history.ts +189 -0
- package/src/index.ts +651 -0
- package/src/list.ts +382 -0
- package/src/media-references.ts +84 -0
- package/src/remote-events.ts +14 -0
- package/src/skill-catalog.ts +108 -0
- package/src/state/controller.ts +221 -0
- package/src/state/listener.ts +116 -0
- package/src/types.ts +720 -0
- package/src/web/controller.ts +78 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import type { Context } from '@unieai/cordis';
|
|
2
|
+
import type { ImageAttachmentRef } from '@unieai/rabi-attachment';
|
|
3
|
+
import type { SubagentAddress } from '@unieai/rabi-subagent/client';
|
|
4
|
+
import type { MessageId } from '@unieai/rabi-llm/brand';
|
|
5
|
+
import { SessionSeq, type SessionId } from '@unieai/rabi-session/types';
|
|
6
|
+
import type { PromptContentPart, QueueAction, SessionRequestId } from '../../types.ts';
|
|
7
|
+
import type { BeginSubmissionInput, SessionFace, SubmissionHandle } from '../contract/session.ts';
|
|
8
|
+
import type { SessionSnapshot } from '../contract/snapshot.ts';
|
|
9
|
+
import { MutableSessionEventSource } from '../contract/events.ts';
|
|
10
|
+
import type { RemoteResult } from '@unieai/rabi-typert-protocol';
|
|
11
|
+
import type { SessionRemotes } from './remotes.ts';
|
|
12
|
+
import { ProjectionValueStore } from './projection-store.ts';
|
|
13
|
+
/** Minimum message count for ordinary history windows. */
|
|
14
|
+
export declare const PAGE_MESSAGES = 50;
|
|
15
|
+
/** Minimum messages per page while a turn jump loops backwards. */
|
|
16
|
+
export declare const JUMP_PAGE_MESSAGES = 200;
|
|
17
|
+
/** Manager-owned observers of a Session object's local state edges. */
|
|
18
|
+
export interface SessionOptions {
|
|
19
|
+
/** Catalog-discovered address selecting non-activating subagent transport. */
|
|
20
|
+
address?: SubagentAddress;
|
|
21
|
+
/**
|
|
22
|
+
* Publish each accepted prompt to the Manager, including after this Session
|
|
23
|
+
* object is replaced. Acceptance converts display state, but does not
|
|
24
|
+
* establish that a turn started or reached durable history.
|
|
25
|
+
*/
|
|
26
|
+
onEngaged?(session: Session): void;
|
|
27
|
+
/**
|
|
28
|
+
* Manager-owned projection value store to adopt (frames route through the
|
|
29
|
+
* manager and values outlive instantiation); omitted, the Session owns a
|
|
30
|
+
* private store (bare object-layer construction).
|
|
31
|
+
*/
|
|
32
|
+
projections?: ProjectionValueStore;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Owns a session's event window, lifecycle state, and observable
|
|
36
|
+
* snapshot. React bindings remain outside this data layer. Features see only
|
|
37
|
+
* the {@link SessionFace} slice (ISession verbs + the snapshot source); the
|
|
38
|
+
* remaining public members are Session Controller internals.
|
|
39
|
+
*/
|
|
40
|
+
export declare class Session implements SessionFace {
|
|
41
|
+
readonly sessionId: SessionId;
|
|
42
|
+
private readonly remote;
|
|
43
|
+
private readonly options;
|
|
44
|
+
private baseSeq;
|
|
45
|
+
private hasMore;
|
|
46
|
+
private historyWasPartial;
|
|
47
|
+
private openState;
|
|
48
|
+
private openError;
|
|
49
|
+
private openPromise;
|
|
50
|
+
/** Bumped by stream replacement to invalidate an in-flight doOpen. Stale
|
|
51
|
+
* passes drop all writes once the generation moves on. */
|
|
52
|
+
private openGeneration;
|
|
53
|
+
private get loadingOlder();
|
|
54
|
+
private historyLoadStatus;
|
|
55
|
+
private olderRequest;
|
|
56
|
+
/** Shared low-water target of the running jump loop; null when no jump is paging. */
|
|
57
|
+
private jumpTargetSeq;
|
|
58
|
+
/** The running jump loop's completion, shared by retargeting callers. */
|
|
59
|
+
private jumpPromise;
|
|
60
|
+
private pendingHistory;
|
|
61
|
+
private readonly stopObservingInbox;
|
|
62
|
+
private readonly assistantStream;
|
|
63
|
+
private running;
|
|
64
|
+
private address;
|
|
65
|
+
/**
|
|
66
|
+
* Sticky send marker, private input of the composerPhase derivation: set
|
|
67
|
+
* when the Host accepts a prompt, never reset — the blank → engaging edge of
|
|
68
|
+
* the phase machine (see ComposerPhase).
|
|
69
|
+
*/
|
|
70
|
+
private promptAttempted;
|
|
71
|
+
/** A first accepted prompt stays in the engaging phase until its turn is observable. */
|
|
72
|
+
private firstPromptPendingTurn;
|
|
73
|
+
/** New Session display state; unknown bare sessions begin conservatively blank. */
|
|
74
|
+
private blankBit;
|
|
75
|
+
private removed;
|
|
76
|
+
private promptError;
|
|
77
|
+
private lastAgentError;
|
|
78
|
+
/** Local submission echoes, insertion-ordered, including those the Host has not accepted yet. */
|
|
79
|
+
private pendingSubmissions;
|
|
80
|
+
/** The accepted echoes, published as SessionSnapshot.pendingSubmissions; rebuilt when one is accepted or removed. */
|
|
81
|
+
private acceptedSubmissions;
|
|
82
|
+
/** Per-echo settlement state; `retiring` latches the first observation so a
|
|
83
|
+
* Inbox projection and its durable event cannot both retire one echo. */
|
|
84
|
+
private readonly submissionSettlements;
|
|
85
|
+
/** Owns the addressed page/follow lifecycle while this Session is open. */
|
|
86
|
+
private events;
|
|
87
|
+
/**
|
|
88
|
+
* Per-session projection value store (push model; see the session-projection
|
|
89
|
+
* subsystem page, docs/subsystems/session-projection.md): finished whole
|
|
90
|
+
* values computed on the Host, seeded by the tail page's
|
|
91
|
+
* projections block and updated by Session Controller control frames;
|
|
92
|
+
* Host-sequenced writes merge under higher-seq-wins and cached list blocks
|
|
93
|
+
* yield to them (projection-store.ts). Keys are read via `projections.faceOf(key)`
|
|
94
|
+
* (the useProjection resolution face); the conversation snapshot never
|
|
95
|
+
* carries projection values, and no client-side domain folding exists.
|
|
96
|
+
* Manager-owned when constructed through SessionManager (frames route and
|
|
97
|
+
* the store outlives instantiation, the title-snapshot precedent); a bare
|
|
98
|
+
* construction gets a private store.
|
|
99
|
+
*/
|
|
100
|
+
readonly projections: ProjectionValueStore;
|
|
101
|
+
/** Contiguous history and live tail consumed by Conversation assembly. */
|
|
102
|
+
readonly eventSource: MutableSessionEventSource;
|
|
103
|
+
private snapshotCache;
|
|
104
|
+
private readonly notifier;
|
|
105
|
+
/**
|
|
106
|
+
* Agent-scoped cordis context, bound once by ClientSessions when it
|
|
107
|
+
* mints the scope (the client mirror of the host Agent's loopCtx). The
|
|
108
|
+
* Session dispatches its own scoped events through it; undefined means
|
|
109
|
+
* unbound (bare object-layer construction) or already pruned — both skip
|
|
110
|
+
* dispatch-dependent behavior rather than fail.
|
|
111
|
+
*/
|
|
112
|
+
private actx;
|
|
113
|
+
/**
|
|
114
|
+
* @param sessionId - Host session identity (client sessions are always Host-born).
|
|
115
|
+
* @param remote - generated Remote namespaces this session calls.
|
|
116
|
+
* @param options - optional manager-owned state observers.
|
|
117
|
+
*/
|
|
118
|
+
constructor(sessionId: SessionId, remote: SessionRemotes, options?: SessionOptions);
|
|
119
|
+
/**
|
|
120
|
+
* Bind the Agent-scoped context minted by ClientSessions (single write;
|
|
121
|
+
* a second bind is a wiring error and throws). Direction stays one-way at
|
|
122
|
+
* this binding boundary: consumers still reach the Session via `sessions.sessionOf`,
|
|
123
|
+
* while the Session holds its own dispatch point (host Agent.loopCtx
|
|
124
|
+
* mirror).
|
|
125
|
+
* @param actx - the agent's scoped context.
|
|
126
|
+
*/
|
|
127
|
+
bindScope(actx: Context): void;
|
|
128
|
+
/** Release the bound scope at prune time (a later rebind accompanies a freshly minted scope). */
|
|
129
|
+
unbindScope(): void;
|
|
130
|
+
/**
|
|
131
|
+
* Register one local submission echo (see the ISession declaration). The
|
|
132
|
+
* echo reconciles against Host events from now on, but it enters the
|
|
133
|
+
* snapshot only once the prompt receipt or an Inbox row carrying its
|
|
134
|
+
* request id shows that the Host accepted it.
|
|
135
|
+
* @param input - echo content and the optional settlement callback.
|
|
136
|
+
* @returns the minted identity for {@link prompt} plus the pre-prompt abandon path.
|
|
137
|
+
*/
|
|
138
|
+
beginSubmission(input: BeginSubmissionInput): SubmissionHandle;
|
|
139
|
+
/**
|
|
140
|
+
* Send (queue/steer passed through 1:1); failures land in the snapshot's
|
|
141
|
+
* promptError. The Host can hold the prompt at its admission stage, so the
|
|
142
|
+
* call can stay open; the echo appears and the blank → engaging edge flips
|
|
143
|
+
* only once the Host accepts the prompt.
|
|
144
|
+
* @param content - text, browser-owned temporary image uploads, and staged-file receipts.
|
|
145
|
+
* @param mode - queue appends after the current turn; steer interrupts it.
|
|
146
|
+
* @param signal - optional caller cancellation for the complete admission round-trip.
|
|
147
|
+
* @param requestId - identity from {@link beginSubmission}; a failed identified prompt retires its echo.
|
|
148
|
+
* @returns the prompt result (also mirrored into promptError on failure).
|
|
149
|
+
*/
|
|
150
|
+
prompt(content: PromptContentPart[], mode: 'queue' | 'steer', signal?: AbortSignal, requestId?: SessionRequestId): Promise<RemoteResult<{
|
|
151
|
+
accepted: true;
|
|
152
|
+
}>>;
|
|
153
|
+
/**
|
|
154
|
+
* Apply the Host's acceptance of one prompt: publish its echo, move a blank
|
|
155
|
+
* Session to engaging, and tell the submitter. The prompt receipt and an
|
|
156
|
+
* Inbox row carrying the prompt's request id both prove acceptance.
|
|
157
|
+
* Whichever arrives first publishes the echo; a later proof for an echo
|
|
158
|
+
* still pending changes nothing.
|
|
159
|
+
* @param requestId - identity from {@link beginSubmission}; absent for a prompt sent without an echo.
|
|
160
|
+
*/
|
|
161
|
+
private acceptPrompt;
|
|
162
|
+
/**
|
|
163
|
+
* Resolve one stored image into browser-consumable bytes using this Session's gateway permission scope.
|
|
164
|
+
* @param attachment - complete image reference from the folded session log.
|
|
165
|
+
* @returns the supplied reference after storage verification, and decoded bytes.
|
|
166
|
+
*/
|
|
167
|
+
readAttachment(attachment: ImageAttachmentRef): Promise<RemoteResult<{
|
|
168
|
+
attachment: ImageAttachmentRef;
|
|
169
|
+
data: Uint8Array;
|
|
170
|
+
}>>;
|
|
171
|
+
/** Apply one operation to a still-pending queue occurrence. */
|
|
172
|
+
updateQueue(itemId: MessageId, action: QueueAction): Promise<RemoteResult<{
|
|
173
|
+
accepted: true;
|
|
174
|
+
}>>;
|
|
175
|
+
/**
|
|
176
|
+
* Stop the active turn while the Host preserves pending inbox work; failures
|
|
177
|
+
* land in promptError (same error-strip display slot). A subagent address
|
|
178
|
+
* routes through `subagents.interruptByUser`, authorized on the target Session
|
|
179
|
+
* without requiring a live parent Agent.
|
|
180
|
+
* @returns the cancel result.
|
|
181
|
+
*/
|
|
182
|
+
cancel(): Promise<RemoteResult<{
|
|
183
|
+
accepted: true;
|
|
184
|
+
}>>;
|
|
185
|
+
/**
|
|
186
|
+
* Rename: contract session.rename 1:1. On success settle the 'title'
|
|
187
|
+
* projection cell from the response's `{title, seq}` under the store's
|
|
188
|
+
* higher-seq-wins rule (the push frame arriving later is a no-op replay),
|
|
189
|
+
* so the list row and any useProjection('title') reader update without
|
|
190
|
+
* waiting for the control-stream projection update.
|
|
191
|
+
* @param title - raw title text (the host normalizes acceptance).
|
|
192
|
+
* @returns the rename result (normalized accepted title + title event seq).
|
|
193
|
+
*/
|
|
194
|
+
rename(title: string): Promise<RemoteResult<{
|
|
195
|
+
title: string;
|
|
196
|
+
seq: SessionSeq;
|
|
197
|
+
}>>;
|
|
198
|
+
/**
|
|
199
|
+
* Execute one slash-command line against this session's agent — pure
|
|
200
|
+
* admission semantics (the host executor durably logs the lifecycle;
|
|
201
|
+
* outcomes render as flow nodes, never as a response echo).
|
|
202
|
+
* @param line - the full command line, leading slash included.
|
|
203
|
+
* @returns the admission result.
|
|
204
|
+
*/
|
|
205
|
+
command(line: string): Promise<RemoteResult<{
|
|
206
|
+
matched: boolean;
|
|
207
|
+
}>>;
|
|
208
|
+
/** First open: pull the tail page (idempotent — in-flight/already-open returns the existing promise). */
|
|
209
|
+
open(): Promise<void>;
|
|
210
|
+
/** @inheritdoc */
|
|
211
|
+
loadOlder(options?: {
|
|
212
|
+
deferConsumption?: boolean;
|
|
213
|
+
}): Promise<void>;
|
|
214
|
+
private prepareOlder;
|
|
215
|
+
/** @inheritdoc */
|
|
216
|
+
consumeOlder(): boolean;
|
|
217
|
+
private clearOlderHistory;
|
|
218
|
+
/** Jump loader: page backwards until the window covers seq (see ISession.loadThrough). */
|
|
219
|
+
loadThrough(seq: SessionSeq): Promise<void>;
|
|
220
|
+
/** Rebuild an opened history source after address replacement.
|
|
221
|
+
* Invalidates any in-flight open first; projection state belongs to the independently
|
|
222
|
+
* reconnecting control stream and remains untouched. */
|
|
223
|
+
resync(): Promise<void>;
|
|
224
|
+
/**
|
|
225
|
+
* uSES subscription entry.
|
|
226
|
+
* @param listener - change callback.
|
|
227
|
+
* @returns the unsubscribe function.
|
|
228
|
+
*/
|
|
229
|
+
subscribe(listener: () => void): () => void;
|
|
230
|
+
/**
|
|
231
|
+
* Cached Session snapshot (rebuilt lazily when dirty with no listeners).
|
|
232
|
+
* @returns the cached reference (stable until the next flush).
|
|
233
|
+
*/
|
|
234
|
+
getSnapshot(): SessionSnapshot;
|
|
235
|
+
/**
|
|
236
|
+
* Running-bit relay from the host stream (list entry and snapshot stay consistent).
|
|
237
|
+
* @param running - the new running state.
|
|
238
|
+
*/
|
|
239
|
+
handleRunning(running: boolean): void;
|
|
240
|
+
/**
|
|
241
|
+
* Install or clear the catalog-discovered transport address. A changed
|
|
242
|
+
* address rebuilds an already-open window through its new history route.
|
|
243
|
+
* @param address - direct parent/child address, or undefined for ordinary transport.
|
|
244
|
+
*/
|
|
245
|
+
configureSubagent(address: SubagentAddress | undefined): void;
|
|
246
|
+
/**
|
|
247
|
+
* Apply the Manager's effective display blank, further reconciled with the
|
|
248
|
+
* current `sessionListMetadata` projection. Local send attempts and current
|
|
249
|
+
* running state prevent re-blanking; an earlier false summary alone does not.
|
|
250
|
+
* The Manager retains acceptance and earlier running observations across
|
|
251
|
+
* Session-object replacement.
|
|
252
|
+
* @param blank - New Session display state after Manager reconciliation.
|
|
253
|
+
*/
|
|
254
|
+
handleBlank(blank: boolean): void;
|
|
255
|
+
/** `api-session/removed` relay: flag the snapshot while retaining the resident instance. */
|
|
256
|
+
handleRemoved(): void;
|
|
257
|
+
/**
|
|
258
|
+
* `api-session/error` relay: the outlet for live failures with no turn position.
|
|
259
|
+
* @param message - the stringified error.
|
|
260
|
+
*/
|
|
261
|
+
handleAgentError(message: string): void;
|
|
262
|
+
/**
|
|
263
|
+
* Stop the Session's live Remote source.
|
|
264
|
+
* @returns when the Remote iterator has completed teardown.
|
|
265
|
+
*/
|
|
266
|
+
dispose(): Promise<void>;
|
|
267
|
+
/** @param generation - openGeneration at launch; stale passes cannot publish after replacement. */
|
|
268
|
+
private doOpen;
|
|
269
|
+
/** Apply one contiguous journal update already reconciled by the Remote stream. */
|
|
270
|
+
private acceptEventChange;
|
|
271
|
+
/** Replace the complete contiguous window and apply page-owned projection metadata. */
|
|
272
|
+
private installWindow;
|
|
273
|
+
private publishAssistantEntry;
|
|
274
|
+
/** Prepend one stream-validated history page. */
|
|
275
|
+
private prependWindow;
|
|
276
|
+
/** Append one stream-validated live event. */
|
|
277
|
+
private appendLive;
|
|
278
|
+
/** Observe durable acceptance even when insertion and claim share one projection notification. */
|
|
279
|
+
private observeSubmissionEvent;
|
|
280
|
+
private observeSubmissionInsertions;
|
|
281
|
+
private observeSubmissionMessage;
|
|
282
|
+
/** Retire admitted Chat identities only after stale Inbox rows can no longer reappear. */
|
|
283
|
+
private retireAdmittedSubmission;
|
|
284
|
+
/** Inbox acceptance retires queued echoes; its watermark completes admitted Chat handoffs. */
|
|
285
|
+
private observeSubmissionInbox;
|
|
286
|
+
/**
|
|
287
|
+
* Latch one observed settlement and remove the echo an animation frame
|
|
288
|
+
* later. The delay keeps the echo in the snapshot until the frame in which
|
|
289
|
+
* the durable node (whose assembly frame was registered first) is
|
|
290
|
+
* renderable; the render-time rpcId dedupe hides the one-frame overlap.
|
|
291
|
+
*/
|
|
292
|
+
private scheduleObservedRetirement;
|
|
293
|
+
/** Remove one unsettled echo immediately (prompt rejection, abort, or disposal). */
|
|
294
|
+
private retireFailedSubmission;
|
|
295
|
+
private refreshAcceptedSubmissions;
|
|
296
|
+
/** Single removal point: drop the echo, publish, then notify the owner. */
|
|
297
|
+
private finishSubmission;
|
|
298
|
+
/** Publish a terminal background failure only while this stream still owns the Session. */
|
|
299
|
+
private failEventStream;
|
|
300
|
+
private buildSnapshot;
|
|
301
|
+
private sessionAddress;
|
|
302
|
+
}
|
|
303
|
+
//# sourceMappingURL=session.d.ts.map
|