@parall/parel-channel 1.40.0 → 1.42.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/channel-prompt.d.ts +13 -4
- package/dist/channel-prompt.d.ts.map +1 -1
- package/dist/channel-prompt.js +21 -3
- package/dist/connect.d.ts +7 -0
- package/dist/connect.d.ts.map +1 -1
- package/dist/connect.js +9 -0
- package/dist/delivery.d.ts +23 -16
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +89 -92
- package/dist/fork.d.ts +148 -0
- package/dist/fork.d.ts.map +1 -0
- package/dist/fork.js +323 -0
- package/dist/inbound-channel.d.ts +29 -0
- package/dist/inbound-channel.d.ts.map +1 -0
- package/dist/inbound-channel.js +219 -0
- package/dist/inbound.d.ts +14 -0
- package/dist/inbound.d.ts.map +1 -1
- package/dist/inbound.js +639 -272
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/parel-sdk-compat.d.ts +63 -0
- package/dist/parel-sdk-compat.d.ts.map +1 -0
- package/dist/parel-sdk-compat.js +16 -0
- package/dist/session.d.ts +155 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +391 -13
- package/dist/typed-dispatch.d.ts +82 -0
- package/dist/typed-dispatch.d.ts.map +1 -0
- package/dist/typed-dispatch.js +347 -0
- package/package.json +1 -1
- package/src/channel-prompt.ts +32 -4
- package/src/connect.ts +10 -0
- package/src/delivery.ts +91 -92
- package/src/fork.ts +435 -0
- package/src/inbound-channel.ts +264 -0
- package/src/inbound.ts +725 -308
- package/src/index.ts +7 -1
- package/src/parel-sdk-compat.ts +77 -0
- package/src/session.ts +448 -13
- package/src/typed-dispatch.ts +529 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAU1D;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,SAAS,EAAE,gBAOhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { connectParall } from './connect.js';
|
|
2
2
|
import { buildParallDelivery } from './delivery.js';
|
|
3
|
-
import { catchUpParall, handleParallAgentEvent, handleParallFrame } from './inbound.js';
|
|
3
|
+
import { catchUpParall, handleParallAgentEvent, handleParallFrame, handleParallTimer, } from './inbound.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parall channel plugin for the parel runtime.
|
|
6
6
|
*
|
|
@@ -19,6 +19,7 @@ const connector = {
|
|
|
19
19
|
connect: connectParall,
|
|
20
20
|
onOpen: catchUpParall,
|
|
21
21
|
onMessage: handleParallFrame,
|
|
22
|
+
onTimer: handleParallTimer,
|
|
22
23
|
onAgentEvent: handleParallAgentEvent,
|
|
23
24
|
deliver: buildParallDelivery,
|
|
24
25
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { AgentEvent, ChannelEnvelope, ConnectorEffect } from '@parel/plugin-sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Local mirrors of parel host types that shipped in parel-mono #140 (F3
|
|
4
|
+
* injectInFlight / F4 child sessions) but are not yet published in
|
|
5
|
+
* @parel/plugin-sdk (the mirror lives on parel-oss branch
|
|
6
|
+
* feat/channel-child-sessions). The host accepts these shapes today — prod
|
|
7
|
+
* runs #140 — so the connector uses them through this compat layer and casts
|
|
8
|
+
* at the hook boundary.
|
|
9
|
+
*
|
|
10
|
+
* TODO(parel-sdk-#140-types): DELETE this file (and the casts) once
|
|
11
|
+
* @parel/plugin-sdk ships the mirror sitting on parel-oss branch
|
|
12
|
+
* `feat/channel-child-sessions` — check the branch/`@parel/plugin-sdk`
|
|
13
|
+
* changelog on every sdk version bump. Until then the shapes below must stay
|
|
14
|
+
* byte-compatible with parel-mono ts/packages/cloudflare/src/channel-types.ts.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Spawn a fork child session off this connection's main conversation session.
|
|
18
|
+
* Idempotent on childRef (opaque, connector-owned). Host gates: binding must
|
|
19
|
+
* opt in (childSessions) + `main` routing; failures come back asynchronously
|
|
20
|
+
* as a `child_spawn_failed` agent event. The child seeds from the parent
|
|
21
|
+
* transcript at the last turn boundary (never sees in-flight output).
|
|
22
|
+
*/
|
|
23
|
+
export interface SpawnChildSessionEffect {
|
|
24
|
+
type: 'spawnChildSession';
|
|
25
|
+
childRef: string;
|
|
26
|
+
input: string;
|
|
27
|
+
subject?: string;
|
|
28
|
+
}
|
|
29
|
+
/** emitEvent with the #140 deliverTo extension: route to a spawned child. */
|
|
30
|
+
export interface EmitToChildEffect {
|
|
31
|
+
type: 'emitEvent';
|
|
32
|
+
event: ChannelEnvelope;
|
|
33
|
+
deliverTo: {
|
|
34
|
+
childRef: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Asynchronous error channel for a failed spawnChildSession effect (pushed
|
|
39
|
+
* regardless of observe scopes). codes: disabled | unsupported_routing |
|
|
40
|
+
* no_binding | invalid_request | depth_limit | concurrency_limit |
|
|
41
|
+
* spawn_failed.
|
|
42
|
+
*/
|
|
43
|
+
export interface ChildSpawnFailedEvent {
|
|
44
|
+
type: 'child_spawn_failed';
|
|
45
|
+
childRef: string;
|
|
46
|
+
code: string;
|
|
47
|
+
error: string;
|
|
48
|
+
}
|
|
49
|
+
/** Effect union the #140 host actually executes. */
|
|
50
|
+
export type ExtendedConnectorEffect = ConnectorEffect | SpawnChildSessionEffect | EmitToChildEffect;
|
|
51
|
+
/**
|
|
52
|
+
* Every event from a connector-spawned child carries the childRef it was
|
|
53
|
+
* spawned with (#140: AgentEventBase.childRef). Absent on main-session
|
|
54
|
+
* events and on sdk versions that predate the field.
|
|
55
|
+
*/
|
|
56
|
+
export type AgentEventWithChild = AgentEvent & {
|
|
57
|
+
childRef?: string;
|
|
58
|
+
};
|
|
59
|
+
/** Narrow an incoming agent event to the not-yet-published failure shape. */
|
|
60
|
+
export declare function asChildSpawnFailed(event: unknown): ChildSpawnFailedEvent | null;
|
|
61
|
+
/** Cast helper: the host executes the extended union; the sdk type lags it. */
|
|
62
|
+
export declare function asConnectorEffects(effects: ExtendedConnectorEffect[]): ConnectorEffect[];
|
|
63
|
+
//# sourceMappingURL=parel-sdk-compat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parel-sdk-compat.d.ts","sourceRoot":"","sources":["../src/parel-sdk-compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEtF;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,6EAA6E;AAC7E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CACjC;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oDAAoD;AACpD,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,uBAAuB,GAAG,iBAAiB,CAAC;AAEpG;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAErE,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,GAAG,IAAI,CAS/E;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,uBAAuB,EAAE,GAAG,eAAe,EAAE,CAExF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Narrow an incoming agent event to the not-yet-published failure shape. */
|
|
2
|
+
export function asChildSpawnFailed(event) {
|
|
3
|
+
const e = event;
|
|
4
|
+
if (e?.type !== 'child_spawn_failed')
|
|
5
|
+
return null;
|
|
6
|
+
return {
|
|
7
|
+
type: 'child_spawn_failed',
|
|
8
|
+
childRef: typeof e.childRef === 'string' ? e.childRef : '',
|
|
9
|
+
code: typeof e.code === 'string' ? e.code : 'unknown',
|
|
10
|
+
error: typeof e.error === 'string' ? e.error : '',
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Cast helper: the host executes the extended union; the sdk type lags it. */
|
|
14
|
+
export function asConnectorEffects(effects) {
|
|
15
|
+
return effects;
|
|
16
|
+
}
|
package/dist/session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectorContext } from '@parel/plugin-sdk';
|
|
1
|
+
import type { ConnectorContext, ConnectorEffect } from '@parel/plugin-sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Best-effort progress reporting: dispatch received, AgentSession lifecycle,
|
|
4
4
|
* and input steps — the signals parall's message-level activity indicator and
|
|
@@ -33,6 +33,32 @@ export declare function reportingEnabled(ctx: ConnectorContext): boolean;
|
|
|
33
33
|
* simply never read again.)
|
|
34
34
|
*/
|
|
35
35
|
export declare const TURN_ENVELOPE_KEY = "turnEnvelope:main";
|
|
36
|
+
export declare const SESSION_CACHE_KEY = "session:main";
|
|
37
|
+
/**
|
|
38
|
+
* Conversation key for envelope subjects and fork routing. Thread-aware:
|
|
39
|
+
* parel's turn grouping (F2) and mid-turn injection (F3) key on the envelope
|
|
40
|
+
* subject, and a turn carries ONE reply route — grouping two threads of the
|
|
41
|
+
* same chat under one subject would absorb thread B into thread A's turn and
|
|
42
|
+
* deliver its reply to the wrong thread (agent-core's lane keys draw the
|
|
43
|
+
* same thread/channel line). `~` is outside both nanoid and ULID alphabets,
|
|
44
|
+
* so the composite never collides with a plain id.
|
|
45
|
+
*/
|
|
46
|
+
export declare function conversationKey(chatId: string, threadRootId?: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* The addressable entity id inside a (possibly thread-composite) subject.
|
|
49
|
+
* Splits ONLY the `cht_…~msg_…` composite conversationKey produces — typed
|
|
50
|
+
* wiki subjects are scheme-stripped paths where `~` is a legal character
|
|
51
|
+
* (e.g. `wik_1/docs/~draft.md`) and must pass through untouched.
|
|
52
|
+
*/
|
|
53
|
+
export declare function subjectEntityId(subject: string): string;
|
|
54
|
+
/**
|
|
55
|
+
* Step broadcast routing by subject shape: chat ids and channel conversations
|
|
56
|
+
* have live subscribers; task/schedule/trigger/wiki subjects are stored-only
|
|
57
|
+
* targets (the server publishes step WS events for chat/task targets and
|
|
58
|
+
* simply persists the rest). Mirrors agent-core's resolveStepTarget so both
|
|
59
|
+
* runtimes' session panels read identically.
|
|
60
|
+
*/
|
|
61
|
+
export declare function stepTargetTypeFor(subject: string): string;
|
|
36
62
|
/**
|
|
37
63
|
* 'stale' means the session id no longer accepts writes (closed/superseded —
|
|
38
64
|
* e.g. the New Session control ended it): callers invalidate the cache and
|
|
@@ -53,6 +79,26 @@ export declare function invalidateSession(ctx: ConnectorContext): Promise<void>;
|
|
|
53
79
|
export declare function ensureSession(ctx: ConnectorContext, opts?: {
|
|
54
80
|
timeoutMs?: number;
|
|
55
81
|
}): Promise<string | null>;
|
|
82
|
+
/**
|
|
83
|
+
* Resolve the CURRENT main ase_ from the server, bypassing the cache — the
|
|
84
|
+
* onOpen generation check needs the authoritative id to compare against the
|
|
85
|
+
* cached one (New Session rotates it). Updates the cache on success; returns
|
|
86
|
+
* null on failure WITHOUT touching the cache (the caller must not lose its
|
|
87
|
+
* only generation token to a transient error).
|
|
88
|
+
*/
|
|
89
|
+
export declare function fetchMainSessionFresh(ctx: ConnectorContext): Promise<string | null>;
|
|
90
|
+
/**
|
|
91
|
+
* Get-or-create the parall AgentSession mirroring one fork child session
|
|
92
|
+
* (ase_ with parent_session_id → the main ase_, runtime_session_id = the
|
|
93
|
+
* opaque childRef — the connector never sees parel's internal session id).
|
|
94
|
+
* Same caching/degradation posture as ensureSession; the parent resolve
|
|
95
|
+
* reuses the main-session cache so the extra cost is one store read.
|
|
96
|
+
*/
|
|
97
|
+
export declare function ensureChildSession(ctx: ConnectorContext, childRef: string, opts?: {
|
|
98
|
+
timeoutMs?: number;
|
|
99
|
+
}): Promise<string | null>;
|
|
100
|
+
/** Drop one child session's cache row (its ase_ was closed under us). */
|
|
101
|
+
export declare function invalidateChildSession(ctx: ConnectorContext, childRef: string): Promise<void>;
|
|
56
102
|
/** PATCH the session (status / trigger_message_id). Never throws. */
|
|
57
103
|
export declare function patchSession(ctx: ConnectorContext, sessionId: string, body: {
|
|
58
104
|
status: 'active' | 'idle';
|
|
@@ -87,6 +133,27 @@ export declare function createChannelInputStep(ctx: ConnectorContext, sessionId:
|
|
|
87
133
|
text: string;
|
|
88
134
|
sentAt?: string;
|
|
89
135
|
}): Promise<ReportResult>;
|
|
136
|
+
/**
|
|
137
|
+
* Input step for a typed (non-message) dispatch — task/schedule/trigger/
|
|
138
|
+
* wiki-comment/approval events. Same processing-ring/panel role as the chat
|
|
139
|
+
* input step; the target routes the record to the source entity instead of a
|
|
140
|
+
* chat (typed dispatches have no message-level indicator, so the step is the
|
|
141
|
+
* panel timeline entry, not an indicator driver).
|
|
142
|
+
*/
|
|
143
|
+
export declare function createTypedInputStep(ctx: ConnectorContext, sessionId: string, args: {
|
|
144
|
+
target: {
|
|
145
|
+
type: string;
|
|
146
|
+
id: string;
|
|
147
|
+
} | null;
|
|
148
|
+
triggerType: string;
|
|
149
|
+
/** WorkItem id — the replay identity. source_id is NOT unique per event
|
|
150
|
+
* for task WorkItems (it can be the task id), so keying the step on it
|
|
151
|
+
* would suppress every later event's input step for the same task. */
|
|
152
|
+
dispatchId: string;
|
|
153
|
+
sourceId: string;
|
|
154
|
+
summary: string;
|
|
155
|
+
senderId?: string;
|
|
156
|
+
}): Promise<ReportResult>;
|
|
90
157
|
/**
|
|
91
158
|
* Credential redaction for runtime error strings that become user-visible
|
|
92
159
|
* step content. Two layers: every secret VALUE the connector actually holds
|
|
@@ -148,6 +215,26 @@ export declare function createTraceStep(ctx: ConnectorContext, sessionId: string
|
|
|
148
215
|
durationMs?: number;
|
|
149
216
|
outputPreview?: string;
|
|
150
217
|
}): Promise<ReportResult>;
|
|
218
|
+
/**
|
|
219
|
+
* Ack a dispatch by source so it leaves the pending queue (idempotent).
|
|
220
|
+
* Typed as the fetch effect so it can ride BOTH hook channels (onMessage's
|
|
221
|
+
* ConnectorEffect[] and onAgentEvent's AgentEventEffect[] — the fork spawn
|
|
222
|
+
* ack fires from a child agent event).
|
|
223
|
+
*/
|
|
224
|
+
export declare function ackEffect(ctx: ConnectorContext, sourceType: string, sourceId: string): Extract<ConnectorEffect, {
|
|
225
|
+
type: 'fetch';
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* Ack ONE dispatch WorkItem by its id. Typed dispatches must use this form:
|
|
229
|
+
* sibling WorkItems (e.g. a task mutation's task_assign + task_update rows)
|
|
230
|
+
* share (source_type, source_id), so the by-source ack would terminally
|
|
231
|
+
* resolve work that was never emitted. Message dispatches keep the by-source
|
|
232
|
+
* form (one WorkItem per message; the source ack is the established legacy
|
|
233
|
+
* contract).
|
|
234
|
+
*/
|
|
235
|
+
export declare function ackByIdEffect(ctx: ConnectorContext, dispatchId: string): Extract<ConnectorEffect, {
|
|
236
|
+
type: 'fetch';
|
|
237
|
+
}>;
|
|
151
238
|
/**
|
|
152
239
|
* Lights the pending ring (server broadcasts dispatch.received). Must COMPLETE
|
|
153
240
|
* before the ack effect is returned: MarkReceived only transitions rows still
|
|
@@ -155,4 +242,71 @@ export declare function createTraceStep(ctx: ConnectorContext, sessionId: string
|
|
|
155
242
|
* means the ring never appears.
|
|
156
243
|
*/
|
|
157
244
|
export declare function markDispatchReceived(ctx: ConnectorContext, sourceType: string, sourceId: string): Promise<void>;
|
|
245
|
+
/**
|
|
246
|
+
* How long an emitted source may stay unresolved before the reconnect sweep
|
|
247
|
+
* re-emits it (crash / lost turn_completed self-heal — the successor of the
|
|
248
|
+
* retired turnwatch timer). Must comfortably exceed any legitimate turn.
|
|
249
|
+
*/
|
|
250
|
+
export declare const EMIT_TTL_MS: number;
|
|
251
|
+
/** The current emit attempt for a source: its envelope id + emit time. */
|
|
252
|
+
export type ActiveEmit = {
|
|
253
|
+
id: string;
|
|
254
|
+
at: number;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Per-source attempt fence. Written before emit, cleared by the matching
|
|
258
|
+
* turn event's complete: a turn event only closes a source whose stored id
|
|
259
|
+
* EXACTLY matches one of its envelopeIds — a late turn_completed from a
|
|
260
|
+
* superseded attempt (the source was re-emitted after the TTL) must not
|
|
261
|
+
* close the in-flight retry's work (codex P2 attempt fence).
|
|
262
|
+
*/
|
|
263
|
+
export declare function readActiveEmit(ctx: ConnectorContext, sourceType: string, sourceId: string): Promise<ActiveEmit | null>;
|
|
264
|
+
export declare function writeActiveEmit(ctx: ConnectorContext, sourceType: string, sourceId: string, envelopeId: string): Promise<void>;
|
|
265
|
+
export declare function clearActiveEmit(ctx: ConnectorContext, sourceType: string, sourceId: string): Promise<void>;
|
|
266
|
+
/**
|
|
267
|
+
* Deterministic envelope id for a source: `{sourceType}:{sourceId}` on the
|
|
268
|
+
* first attempt, `…#r{n}` on re-emits. Attempt-suffixed ids are unique per
|
|
269
|
+
* attempt, so a re-emit is a NEW envelope to parel regardless of any dedupe
|
|
270
|
+
* behavior — the retry always produces a fresh turn.
|
|
271
|
+
*/
|
|
272
|
+
export declare function nextEnvelopeId(sourceType: string, sourceId: string, prior: ActiveEmit | null): string;
|
|
273
|
+
/** envelope id → source pointer (strips the attempt suffix). */
|
|
274
|
+
export declare function sourceFromEnvelopeId(envelopeId: string): {
|
|
275
|
+
sourceType: string;
|
|
276
|
+
sourceId: string;
|
|
277
|
+
} | null;
|
|
278
|
+
/**
|
|
279
|
+
* Fence-checked turn-end ledger close for a set of envelope ids — the shared
|
|
280
|
+
* core of BOTH turn-end hooks: onAgentEvent (turn_completed/turn_failed, the
|
|
281
|
+
* primary) and deliver (the no-observe npm-fallback path, where turn events
|
|
282
|
+
* never arrive and this is the ONLY terminal ledger hook — without it a
|
|
283
|
+
* received row would re-emit on every TTL sweep forever). Only sources whose
|
|
284
|
+
* `active:{source}` store row matches the envelope id EXACTLY are completed
|
|
285
|
+
* (attempt fence); the fence rows clear on success. Both hooks running is
|
|
286
|
+
* harmless: whichever completes first consumes the fence, the other skips.
|
|
287
|
+
*/
|
|
288
|
+
export declare function completeFencedEnvelopes(ctx: ConnectorContext, envelopeIds: string[]): Promise<void>;
|
|
289
|
+
/**
|
|
290
|
+
* Turn-end ledger close: resolves the turn's folded sources on the server —
|
|
291
|
+
* broad-cover to the turn's reply Effect when one exists, no_action sweep
|
|
292
|
+
* otherwise (the server decides; POST /dispatch/complete-sources, idempotent).
|
|
293
|
+
* One immediate retry on failure; a still-failed call leaves the rows
|
|
294
|
+
* received and the catch-up TTL re-emit self-heals.
|
|
295
|
+
*/
|
|
296
|
+
export declare function completeSources(ctx: ConnectorContext, sources: {
|
|
297
|
+
source_type: string;
|
|
298
|
+
source_id: string;
|
|
299
|
+
}[]): Promise<boolean>;
|
|
300
|
+
/**
|
|
301
|
+
* Turn-end plain text as a suppressed audit step — the runtime-standard
|
|
302
|
+
* Layer 0 posture (agent-dm-loop-prevention.md): recorded on the session,
|
|
303
|
+
* never delivered to the chat. No `projection` field, so the server's
|
|
304
|
+
* projection gate keeps it panel-only; `suppressed: true` is the content
|
|
305
|
+
* marker the standard bridges write for undelivered text.
|
|
306
|
+
*/
|
|
307
|
+
export declare function createSuppressedTextStep(ctx: ConnectorContext, sessionId: string, args: {
|
|
308
|
+
subject: string;
|
|
309
|
+
deliveryId: string;
|
|
310
|
+
text: string;
|
|
311
|
+
}): Promise<ReportResult>;
|
|
158
312
|
//# sourceMappingURL=session.d.ts.map
|
package/dist/session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,kBAAkB,QAAS,CAAC;AAEzC,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAE/D;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,sBAAqC,CAAC;AACpE,eAAO,MAAM,iBAAiB,iBAAgC,CAAC;AAG/D;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAE7E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMvD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAOzD;A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