@workerdeck/core 0.17.0 → 0.18.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/build/index.d.mts +38 -2
- package/build/index.mjs +430 -59
- package/build/index.mjs.map +1 -1
- package/package.json +3 -3
package/build/index.d.mts
CHANGED
|
@@ -1463,6 +1463,39 @@ type AppServerImageViewItem = {
|
|
|
1463
1463
|
type: 'imageView';
|
|
1464
1464
|
path: string;
|
|
1465
1465
|
};
|
|
1466
|
+
/**
|
|
1467
|
+
* A sub-agent lifecycle edge, on the thread that OWNS the agent. The spawn
|
|
1468
|
+
* signal (verified live against 0.146.0, `_docs/codex-subagent-trace-fixed.jsonl`):
|
|
1469
|
+
* `kind: 'started'` announces a new agent, and `id` is the `call_id` of the
|
|
1470
|
+
* model's own `spawn_agent` function call — a genuine tool-use id, which is what
|
|
1471
|
+
* lets the runner hang the whole sidechain off it. There is **no 'completed'
|
|
1472
|
+
* kind**: an agent's end travels as its own thread's `turn/completed`.
|
|
1473
|
+
*/
|
|
1474
|
+
type AppServerSubAgentActivityItem = {
|
|
1475
|
+
id: string;
|
|
1476
|
+
type: 'subAgentActivity'; /** 'started' | 'interacted' | 'interrupted' — open, and 'completed' does not exist. */
|
|
1477
|
+
kind: string; /** The thread the agent runs in — the key every later notification carries. */
|
|
1478
|
+
agentThreadId: string; /** The agent's address, e.g. '/root/date_one'; the basename is its name. */
|
|
1479
|
+
agentPath?: string | null;
|
|
1480
|
+
};
|
|
1481
|
+
/**
|
|
1482
|
+
* The model's collab-agent tool surface (`spawnAgent | sendInput | resumeAgent |
|
|
1483
|
+
* wait | closeAgent`). Decoration, not the design's load-bearing signal: on the
|
|
1484
|
+
* wire only `wait` has been observed, with every rich field empty — the spawn
|
|
1485
|
+
* truth is {@link AppServerSubAgentActivityItem} (same trace as above).
|
|
1486
|
+
*/
|
|
1487
|
+
type AppServerCollabAgentToolCallItem = {
|
|
1488
|
+
id: string;
|
|
1489
|
+
type: 'collabAgentToolCall';
|
|
1490
|
+
tool: string; /** 'inProgress' | 'completed' | 'failed' | 'declined' — open. */
|
|
1491
|
+
status: string;
|
|
1492
|
+
senderThreadId?: string | null;
|
|
1493
|
+
receiverThreadIds?: string[] | null;
|
|
1494
|
+
prompt?: string | null;
|
|
1495
|
+
model?: string | null;
|
|
1496
|
+
reasoningEffort?: string | null;
|
|
1497
|
+
agentsStates?: Record<string, unknown> | null;
|
|
1498
|
+
};
|
|
1466
1499
|
/** The user's own message, echoed back as an item — dropped (the runner
|
|
1467
1500
|
* already emitted its `user_message`). */
|
|
1468
1501
|
type AppServerUserMessageItem = {
|
|
@@ -1470,14 +1503,17 @@ type AppServerUserMessageItem = {
|
|
|
1470
1503
|
type: 'userMessage';
|
|
1471
1504
|
content?: unknown;
|
|
1472
1505
|
};
|
|
1473
|
-
type AppServerItem = AppServerAgentMessageItem | AppServerReasoningItem | AppServerCommandExecutionItem | AppServerFileChangeItem | AppServerMcpToolCallItem | AppServerWebSearchItem | AppServerImageGenerationItem | AppServerImageViewItem | AppServerUserMessageItem;
|
|
1474
|
-
/** The `Turn` object of `turn/started` / `turn/completed`.
|
|
1506
|
+
type AppServerItem = AppServerAgentMessageItem | AppServerReasoningItem | AppServerCommandExecutionItem | AppServerFileChangeItem | AppServerMcpToolCallItem | AppServerWebSearchItem | AppServerImageGenerationItem | AppServerImageViewItem | AppServerUserMessageItem | AppServerSubAgentActivityItem | AppServerCollabAgentToolCallItem;
|
|
1507
|
+
/** The `Turn` object of `turn/started` / `turn/completed`. On a completed turn
|
|
1508
|
+
* `items` is a summary page whose final `agentMessage` is the turn's answer —
|
|
1509
|
+
* for a sub-agent's thread, that is the agent's report. */
|
|
1475
1510
|
type AppServerTurn = {
|
|
1476
1511
|
id: string; /** 'inProgress' | 'completed' | 'failed' | 'interrupted' — open. */
|
|
1477
1512
|
status: string;
|
|
1478
1513
|
error?: {
|
|
1479
1514
|
message: string;
|
|
1480
1515
|
} | null;
|
|
1516
|
+
items?: AppServerItem[];
|
|
1481
1517
|
};
|
|
1482
1518
|
/**
|
|
1483
1519
|
* One historical turn as `thread/resume` / `thread/read {includeTurns: true}`
|