@te-river/opencode-team-mode 1.8.4 → 1.8.6

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.
Files changed (46) hide show
  1. package/README.md +9 -8
  2. package/README.zh-CN.md +10 -9
  3. package/dist/agents.d.ts.map +1 -1
  4. package/dist/agents.js +14 -5
  5. package/dist/agents.js.map +1 -1
  6. package/dist/host/v2-types.d.ts +0 -1
  7. package/dist/host/v2-types.d.ts.map +1 -1
  8. package/dist/host/v2.d.ts +9 -5
  9. package/dist/host/v2.d.ts.map +1 -1
  10. package/dist/host/v2.js +84 -72
  11. package/dist/host/v2.js.map +1 -1
  12. package/dist/index.d.ts +10 -6
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +10 -6
  15. package/dist/index.js.map +1 -1
  16. package/dist/prompts/lead.d.ts +1 -1
  17. package/dist/prompts/lead.d.ts.map +1 -1
  18. package/dist/prompts/lead.js +7 -0
  19. package/dist/prompts/lead.js.map +1 -1
  20. package/dist/prompts/shared.d.ts +1 -1
  21. package/dist/prompts/shared.d.ts.map +1 -1
  22. package/dist/prompts/shared.js +10 -0
  23. package/dist/prompts/shared.js.map +1 -1
  24. package/dist/tm/config-files.d.ts +30 -6
  25. package/dist/tm/config-files.d.ts.map +1 -1
  26. package/dist/tm/config-files.js +47 -10
  27. package/dist/tm/config-files.js.map +1 -1
  28. package/dist/tm/config-layers.d.ts +20 -9
  29. package/dist/tm/config-layers.d.ts.map +1 -1
  30. package/dist/tm/config-layers.js +19 -8
  31. package/dist/tm/config-layers.js.map +1 -1
  32. package/dist/tm/config-template.js +2 -2
  33. package/dist/tm/config-template.js.map +1 -1
  34. package/dist/tm/dispatch.d.ts +90 -11
  35. package/dist/tm/dispatch.d.ts.map +1 -1
  36. package/dist/tm/dispatch.js +490 -52
  37. package/dist/tm/dispatch.js.map +1 -1
  38. package/dist/tm/pipelines.d.ts.map +1 -1
  39. package/dist/tm/pipelines.js +6 -3
  40. package/dist/tm/pipelines.js.map +1 -1
  41. package/dist/tm/result.d.ts +13 -1
  42. package/dist/tm/result.d.ts.map +1 -1
  43. package/dist/tm/result.js +14 -2
  44. package/dist/tm/result.js.map +1 -1
  45. package/docs/installation-v2.md +28 -24
  46. package/package.json +1 -1
@@ -40,6 +40,22 @@
40
40
  * already calls. What the host does NOT give is tool-level cancellation — the
41
41
  * only thing stoppable is the whole active execution (`interrupt`) — so nothing
42
42
  * here pretends that granularity exists.
43
+ *
44
+ * Waking (2026-10-23, measured in another project): steering a session that has
45
+ * already settled is not an interjection, it is a RESURRECTION — the host's own
46
+ * sentence is "Steering wakes session execution", so the line starts a second run
47
+ * that overlaps whatever the lead dispatched meanwhile (two processes on one
48
+ * device, in the incident that produced this). A steer therefore refuses unless
49
+ * the registry says `running`, and the explicit `wake:true` opt-in is the only way
50
+ * to deliver into a settled/unknown child. The same incident showed the mirror
51
+ * bug on the stop path: a settled row made `cancel:true` answer "没有运行中的
52
+ * 子代理可停" WITHOUT asking the host, while the woken child was in fact running.
53
+ * An explicitly named id is always asked of the host now.
54
+ *
55
+ * The body fallback has one more source: a settled host sub-agent's report also
56
+ * lives in the PARENT transcript as `<subagent sessionID="…">…</subagent>`; when
57
+ * the child session's context yields no assistant text, that envelope is read
58
+ * (exact id match, last one wins) instead of reporting `child_body_missing`.
43
59
  */
44
60
  import type { HostEvent, ToolDefinition } from "../types.js";
45
61
  import type { TmPipelines } from "./pipelines.js";
@@ -69,13 +85,27 @@ export interface ChildRecord {
69
85
  * through this tool — so the row reports state and the settle moment and must never
70
86
  * be rendered as if we held the text. */
71
87
  via?: "host-injection";
72
- /** How this row reached its settled state. `event` is the host naming the child
73
- * session in a `session.idle`; `parent-idle` is the inference that a still-running
74
- * host child of a session that just went idle has been collected by the host — the
75
- * v2 plugin ctx gives no way to read a child's state directly, and a row that stayed
76
- * 运行中 forever would be the same overstated claim in the opposite direction. A
77
- * presumption is printed as one. */
78
- settleSource?: "event" | "parent-idle" | "injection";
88
+ /** How this row reached its settled state — four sources, kept apart because their
89
+ * EVIDENCE differs:
90
+ * - `event`: the host named this child session in a `session.idle`;
91
+ * - `injection`: the host's own completion envelope reached the parent;
92
+ * - `session-get`: the host's own `session.get` record carried a `time.idle` — the
93
+ * strongest source, and the only one that also carries the host's `outcome` word;
94
+ * - `parent-idle`: an INFERENCE, now only a fallback for a host that cannot be asked:
95
+ * a still-running host child of a session that just went idle has been collected.
96
+ * Printed as a presumption, never as 完成.
97
+ * Measured on 2.1.4: a child's own `session.idle` is not forwarded to plugin subscribers,
98
+ * while `session.get({sessionID})` answers `time.idle` on an idle session — so the
99
+ * presumption is the fallback, not the default. */
100
+ settleSource?: "event" | "parent-idle" | "injection" | "session-get";
101
+ /** The host's own `outcome` word for the finished run (`succeeded`, …), copied verbatim
102
+ * and never translated: it is the only first-hand statement about how it ended. */
103
+ outcome?: string;
104
+ /** The host's own run window from `session.get`: `time.created` / `time.idle`. Reported
105
+ * as the child's duration instead of ours (an adopted row's `startedAt` is our discovery
106
+ * moment, not the run's start). */
107
+ hostCreatedAt?: number;
108
+ hostIdleAt?: number;
79
109
  /** Whether the body tm_join actually READ was a finished turn: true only when the last
80
110
  * assistant message carried `time.completed`. Absent/false is NOT "the child failed" —
81
111
  * it is the measurement that lets a presumed settle avoid presenting the text written
@@ -169,6 +199,22 @@ export declare function openHostTodos(todos: unknown): HostTodo[];
169
199
  * caller must degrade, and `create`/`promptAsync` are deliberately NOT part
170
200
  * of this contract any more: nothing here spawns sessions. */
171
201
  export declare function sessionApiOf(client: unknown): SessionApi | null;
202
+ /** What the host's own `session.get` said about ONE session, reduced to the facts that can
203
+ * settle a row. Measured on 2.1.4: `ctx.session.get({sessionID})` returns
204
+ * `{id, projectID, agent, model, cost, tokens, outcome, time:{created, updated, idle, viewed},
205
+ * title, permissions, location}` — `time.idle` exists exactly when the session has finished
206
+ * a run, and `outcome` is the host's own word for how it went.
207
+ *
208
+ * `answered:false` means "we could not ask", NEVER "it is still running". The two lead to
209
+ * opposite conclusions (fall back to the presumption vs keep 运行中), so they stay separate
210
+ * fields rather than one boolean plus a guess. */
211
+ export interface HostSessionState {
212
+ answered: boolean;
213
+ createdAt?: number;
214
+ idleAt?: number;
215
+ outcome?: string;
216
+ }
217
+ export declare function readHostSessionState(api: SessionApi | null, sessionID: string): Promise<HostSessionState>;
172
218
  /** The host's OWN visible-and-non-blocking sub-agent path: its built-in `task`
173
219
  * takes `background: true`, and because that card is rendered by the host's
174
220
  * own `task` renderer it links to the live child session — which a plugin tool
@@ -239,6 +285,13 @@ export declare function lastAssistantMessage(messages: unknown): {
239
285
  };
240
286
  /** Back-compat seam: the reply text alone. */
241
287
  export declare function lastAssistantText(messages: unknown): string;
288
+ /** The body the host injected into the PARENT transcript for this child, if any.
289
+ * The v2 plugin can read a child's own context, but a host sub-agent's report also
290
+ * arrives in the parent as a completion envelope — and on a host whose child context
291
+ * answers with no assistant text (the measured `child_body_missing`), that envelope
292
+ * is the only readable copy. Null when nothing matches, so the caller keeps its
293
+ * exact `child_body_missing` wording rather than inventing a third outcome. */
294
+ export declare function hostEnvelopeBody(messages: unknown, sessionID: string): string | null;
242
295
  /**
243
296
  * Turn whatever the host puts in an error slot into ONE readable line.
244
297
  *
@@ -259,8 +312,18 @@ export declare function describeHostError(err: unknown, max?: number): string;
259
312
  * that had already landed — the fix is to say it, not to withhold the text.
260
313
  */
261
314
  export declare const INCOMPLETE_PRESUMED_BODY_WARNING = "\u26A0 \u63A8\u5B9A\u7ED3\u7B97\u4E14\u6B63\u6587\u672A\u5E26\u5B8C\u6210\u65F6\u95F4\uFF1A\u8FD9\u53EF\u80FD\u662F\u6700\u540E\u4E00\u6B21\u5DE5\u5177\u8C03\u7528\u524D\u7684\u534A\u622A\u8BDD\uFF0C\u4E0D\u8981\u636E\u6B64\u5224\u5B9A\u4EA4\u4ED8\uFF1B\u7A0D\u540E\u518D\u6B21 tm_join \u53EF\u590D\u6838\uFF08\u6216\u8BA9\u5B50\u4EE3\u7406\u7EED\u8DD1\uFF09\u3002";
262
- /** One child's status line — the lead reads these, so keep them terse. */
315
+ /** One child's status line — the lead reads these, so keep them terse. The tag is chosen by
316
+ * the settle SOURCE, because the same word would otherwise cover a host-confirmed finish, an
317
+ * unreachable seam and a guess: only `session-get` may print the host's outcome, and nothing
318
+ * but a real settlement may print 完成. */
263
319
  export declare function renderChildLine(c: ChildRecord, elapsedMs: number): string;
320
+ /**
321
+ * One line saying HOW the round's rows reached their state: `宿主确认` (the host's own record,
322
+ * event or envelope), `推定` (our inference) and `未结算` (still running). A lead skimming two
323
+ * rows that both read 已结算 otherwise cannot tell which one the host actually confirmed — and
324
+ * that difference is the whole point of asking `session.get` first.
325
+ */
326
+ export declare function settleTallyLine(children: readonly ChildRecord[]): string;
264
327
  /** Verdicts tm_join can actually observe (issue #7's "leader keeps control"). */
265
328
  export declare function summarizeStates(children: readonly ChildRecord[]): {
266
329
  running: number;
@@ -301,9 +364,9 @@ export declare function cancelOutcomeParts(tally: Partial<Record<CancelOutcome,
301
364
  * #steer — the THREE outcomes an interjection can produce, kept as data for the same
302
365
  * reason #33 kept five: the host admitting input is an observation (it named the inbox
303
366
  * item), and the host answering without naming one is not. `steered` is the only bucket
304
- * allowed to print 已受理, and even it says 已受理 rather than 已送达 — the documented
305
- * behaviour is "Steering wakes session execution", i.e. delivery happens at a step
306
- * boundary and whether the child READ the line is a later fact, not this call's claim.
367
+ * allowed to print 已受理, and acceptance is all the WRITE itself proves — delivery happens
368
+ * at a step boundary, and whether the child acted on the line is a later fact. That is why
369
+ * `verifySteerDelivery` exists: `已送达` is a second, separate observation.
307
370
  */
308
371
  export type SteerOutcome = "steered" | "not-steered" | "no-seam";
309
372
  /** Read the acceptance verdict out of the v2 bridge's `{data:{outcome,inboxID,seam,message}}`.
@@ -324,6 +387,22 @@ export declare function steerVerdictLine(outcome: SteerOutcome, opts?: {
324
387
  inboxID?: string;
325
388
  seam?: string;
326
389
  }): string;
390
+ /** C: 已受理 vs 已送达. An interjection is DELIVERED at a step boundary, so the write itself
391
+ * only proves admission. The one checkable fact afterwards is whether the item still sits
392
+ * in that child's inbox — gone = the host handed it over, present = still queued. A list we
393
+ * cannot read is `unverified`, never `delivered`: a missing answer is not evidence. */
394
+ export type SteerDelivery = "delivered" | "queued" | "unverified";
395
+ /** What the lead reads after the delivery check. Every branch says out loud that delivery is
396
+ * not obedience — the composition must never promise what the child will do. */
397
+ export declare function steerDeliveryLine(v: SteerDelivery, inboxID?: string, note?: string): string;
398
+ /** Re-read the child's inbox once after a successful steer and answer the only question that
399
+ * can be answered: is the item still pending? `unverified` covers every shape we cannot
400
+ * read — no seam, a throwing call, a payload with items we could not identify — because
401
+ * "absent" must not be inferred from "unreadable". */
402
+ export declare function verifySteerDelivery(api: SessionApi | null, sessionID: string, inboxID: string): Promise<{
403
+ verdict: SteerDelivery;
404
+ note?: string;
405
+ }>;
327
406
  export declare function steerOutcomeLabel(o: SteerOutcome): string;
328
407
  /** Fixed order so a rerun prints the same line; an absent outcome prints nothing, not "0". */
329
408
  export declare function steerOutcomeParts(tally: Partial<Record<SteerOutcome, number>>): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/tm/dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAc,MAAM,aAAa,CAAA;AAMxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzE;6DAC6D;AAC7D,eAAO,MAAM,gBAAgB,2EAA4E,CAAA;AAEzG;;;4DAG4D;AAC5D,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,MAAM,CAAA;IAC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