@te-river/opencode-team-mode 1.8.5 → 1.8.7

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 (50) hide show
  1. package/README.md +10 -9
  2. package/README.zh-CN.md +11 -10
  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 +20 -9
  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 +101 -11
  35. package/dist/tm/dispatch.d.ts.map +1 -1
  36. package/dist/tm/dispatch.js +572 -30
  37. package/dist/tm/dispatch.js.map +1 -1
  38. package/dist/tm/ledger.d.ts +50 -7
  39. package/dist/tm/ledger.d.ts.map +1 -1
  40. package/dist/tm/ledger.js +161 -18
  41. package/dist/tm/ledger.js.map +1 -1
  42. package/dist/tm/pipelines.d.ts.map +1 -1
  43. package/dist/tm/pipelines.js +6 -3
  44. package/dist/tm/pipelines.js.map +1 -1
  45. package/dist/tm/result.d.ts +13 -1
  46. package/dist/tm/result.d.ts.map +1 -1
  47. package/dist/tm/result.js +14 -2
  48. package/dist/tm/result.js.map +1 -1
  49. package/docs/installation-v2.md +28 -24
  50. package/package.json +1 -1
@@ -85,13 +85,27 @@ export interface ChildRecord {
85
85
  * through this tool — so the row reports state and the settle moment and must never
86
86
  * be rendered as if we held the text. */
87
87
  via?: "host-injection";
88
- /** How this row reached its settled state. `event` is the host naming the child
89
- * session in a `session.idle`; `parent-idle` is the inference that a still-running
90
- * host child of a session that just went idle has been collected by the host — the
91
- * v2 plugin ctx gives no way to read a child's state directly, and a row that stayed
92
- * 运行中 forever would be the same overstated claim in the opposite direction. A
93
- * presumption is printed as one. */
94
- 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;
95
109
  /** Whether the body tm_join actually READ was a finished turn: true only when the last
96
110
  * assistant message carried `time.completed`. Absent/false is NOT "the child failed" —
97
111
  * it is the measurement that lets a presumed settle avoid presenting the text written
@@ -185,6 +199,22 @@ export declare function openHostTodos(todos: unknown): HostTodo[];
185
199
  * caller must degrade, and `create`/`promptAsync` are deliberately NOT part
186
200
  * of this contract any more: nothing here spawns sessions. */
187
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>;
188
218
  /** The host's OWN visible-and-non-blocking sub-agent path: its built-in `task`
189
219
  * takes `background: true`, and because that card is rendered by the host's
190
220
  * own `task` renderer it links to the live child session — which a plugin tool
@@ -262,6 +292,40 @@ export declare function lastAssistantText(messages: unknown): string;
262
292
  * is the only readable copy. Null when nothing matches, so the caller keeps its
263
293
  * exact `child_body_missing` wording rather than inventing a third outcome. */
264
294
  export declare function hostEnvelopeBody(messages: unknown, sessionID: string): string | null;
295
+ /** One sub-agent candidate the PARENT transcript still names — the recovery source on a
296
+ * host that has no `session.children` (measured absent on 2.1.4 while `ctx.session.get`
297
+ * still answers). Two spellings carry the evidence, and both are the host's own words:
298
+ * · the ACK of a background dispatch — `The subagent is working in the background
299
+ * (sessionID: ses_…)` — which proves the child EXISTS and was running;
300
+ * · the completion envelope `<subagent sessionID="…" state="completed" …>body</subagent>`,
301
+ * which additionally proves how it ended and carries the report itself.
302
+ * A candidate is a CLAIM, never an adoption: `adoptFromParentHistory` still asks the host
303
+ * for the parentage before it opens a registry row (the same lock `claimNamedChild` uses). */
304
+ export interface ParentHistoryChild {
305
+ sessionID: string;
306
+ state: "running" | "completed" | "error";
307
+ /** the envelope body when the evidence was a `state="completed"` envelope */
308
+ body?: string;
309
+ label: string;
310
+ }
311
+ /** One background shell the host announced in the parent transcript
312
+ * (`<shell id="sh_…" state="running|completed|failed|error" command="…">…</shell>`).
313
+ * Reported only: the host owns its shells' lifetime, so nothing here kills one. */
314
+ export interface BackgroundShell {
315
+ id: string;
316
+ state: string;
317
+ command?: string;
318
+ }
319
+ /** Sub-agent candidates named by a parent transcript, in transcript order (a later
320
+ * envelope overwrites the earlier ACK for the same id — that is what "last one wins"
321
+ * means for a child that was woken and re-ran). */
322
+ export declare function childrenFromParentHistory(messages: unknown): ParentHistoryChild[];
323
+ /** Background shells the host announced in a parent transcript, last state per id. */
324
+ export declare function backgroundShellsFromParentHistory(messages: unknown): BackgroundShell[];
325
+ /** The `后台 shell` section tm_join appends. A running shell is named as RUNNING and told
326
+ * not to be re-dispatched: the user can see those processes, and a lead that cannot see
327
+ * them dispatches the same work twice. Nothing is killed here — the host owns the shell. */
328
+ export declare function renderBackgroundShells(shells: readonly BackgroundShell[]): string | null;
265
329
  /**
266
330
  * Turn whatever the host puts in an error slot into ONE readable line.
267
331
  *
@@ -282,8 +346,18 @@ export declare function describeHostError(err: unknown, max?: number): string;
282
346
  * that had already landed — the fix is to say it, not to withhold the text.
283
347
  */
284
348
  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";
285
- /** One child's status line — the lead reads these, so keep them terse. */
349
+ /** One child's status line — the lead reads these, so keep them terse. The tag is chosen by
350
+ * the settle SOURCE, because the same word would otherwise cover a host-confirmed finish, an
351
+ * unreachable seam and a guess: only `session-get` may print the host's outcome, and nothing
352
+ * but a real settlement may print 完成. */
286
353
  export declare function renderChildLine(c: ChildRecord, elapsedMs: number): string;
354
+ /**
355
+ * One line saying HOW the round's rows reached their state: `宿主确认` (the host's own record,
356
+ * event or envelope), `推定` (our inference) and `未结算` (still running). A lead skimming two
357
+ * rows that both read 已结算 otherwise cannot tell which one the host actually confirmed — and
358
+ * that difference is the whole point of asking `session.get` first.
359
+ */
360
+ export declare function settleTallyLine(children: readonly ChildRecord[]): string;
287
361
  /** Verdicts tm_join can actually observe (issue #7's "leader keeps control"). */
288
362
  export declare function summarizeStates(children: readonly ChildRecord[]): {
289
363
  running: number;
@@ -324,9 +398,9 @@ export declare function cancelOutcomeParts(tally: Partial<Record<CancelOutcome,
324
398
  * #steer — the THREE outcomes an interjection can produce, kept as data for the same
325
399
  * reason #33 kept five: the host admitting input is an observation (it named the inbox
326
400
  * item), and the host answering without naming one is not. `steered` is the only bucket
327
- * allowed to print 已受理, and even it says 已受理 rather than 已送达 — the documented
328
- * behaviour is "Steering wakes session execution", i.e. delivery happens at a step
329
- * boundary and whether the child READ the line is a later fact, not this call's claim.
401
+ * allowed to print 已受理, and acceptance is all the WRITE itself proves — delivery happens
402
+ * at a step boundary, and whether the child acted on the line is a later fact. That is why
403
+ * `verifySteerDelivery` exists: `已送达` is a second, separate observation.
330
404
  */
331
405
  export type SteerOutcome = "steered" | "not-steered" | "no-seam";
332
406
  /** Read the acceptance verdict out of the v2 bridge's `{data:{outcome,inboxID,seam,message}}`.
@@ -347,6 +421,22 @@ export declare function steerVerdictLine(outcome: SteerOutcome, opts?: {
347
421
  inboxID?: string;
348
422
  seam?: string;
349
423
  }): string;
424
+ /** C: 已受理 vs 已送达. An interjection is DELIVERED at a step boundary, so the write itself
425
+ * only proves admission. The one checkable fact afterwards is whether the item still sits
426
+ * in that child's inbox — gone = the host handed it over, present = still queued. A list we
427
+ * cannot read is `unverified`, never `delivered`: a missing answer is not evidence. */
428
+ export type SteerDelivery = "delivered" | "queued" | "unverified";
429
+ /** What the lead reads after the delivery check. Every branch says out loud that delivery is
430
+ * not obedience — the composition must never promise what the child will do. */
431
+ export declare function steerDeliveryLine(v: SteerDelivery, inboxID?: string, note?: string): string;
432
+ /** Re-read the child's inbox once after a successful steer and answer the only question that
433
+ * can be answered: is the item still pending? `unverified` covers every shape we cannot
434
+ * read — no seam, a throwing call, a payload with items we could not identify — because
435
+ * "absent" must not be inferred from "unreadable". */
436
+ export declare function verifySteerDelivery(api: SessionApi | null, sessionID: string, inboxID: string): Promise<{
437
+ verdict: SteerDelivery;
438
+ note?: string;
439
+ }>;
350
440
  export declare function steerOutcomeLabel(o: SteerOutcome): string;
351
441
  /** Fixed order so a rerun prints the same line; an absent outcome prints nothing, not "0". */
352
442
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAc,MAAM,aAAa,CAAA;AAMxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAA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