@workerdeck/core 1.1.0 → 1.2.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 +14 -1
- package/build/index.mjs +7 -0
- package/build/index.mjs.map +1 -1
- package/package.json +3 -3
package/build/index.d.mts
CHANGED
|
@@ -664,7 +664,20 @@ type AppServerUserMessageItem = {
|
|
|
664
664
|
type: 'userMessage';
|
|
665
665
|
content?: unknown;
|
|
666
666
|
};
|
|
667
|
-
|
|
667
|
+
/**
|
|
668
|
+
* `{id, type}` and nothing else — checked against 0.151.0's generated schema, where
|
|
669
|
+
* `ContextCompactionThreadItem` requires exactly those two keys. There is no summary, no token
|
|
670
|
+
* count and no before/after to draw, so the row can only be a marker at a point in the transcript.
|
|
671
|
+
*
|
|
672
|
+
* The paired `thread/compacted` notification (`ContextCompactedNotification`) is documented in the
|
|
673
|
+
* same schema as *"Deprecated: Use `ContextCompaction` item type instead"*, so this is the one
|
|
674
|
+
* signal to read and the notification is deliberately left unhandled.
|
|
675
|
+
*/
|
|
676
|
+
type AppServerContextCompactionItem = {
|
|
677
|
+
id: string;
|
|
678
|
+
type: 'contextCompaction';
|
|
679
|
+
};
|
|
680
|
+
type AppServerItem = AppServerAgentMessageItem | AppServerReasoningItem | AppServerCommandExecutionItem | AppServerFileChangeItem | AppServerMcpToolCallItem | AppServerWebSearchItem | AppServerImageGenerationItem | AppServerImageViewItem | AppServerUserMessageItem | AppServerSubAgentActivityItem | AppServerCollabAgentToolCallItem | AppServerContextCompactionItem;
|
|
668
681
|
type AppServerTurn = {
|
|
669
682
|
id: string;
|
|
670
683
|
status: string;
|
package/build/index.mjs
CHANGED
|
@@ -4903,6 +4903,13 @@ var CodexRunner = class {
|
|
|
4903
4903
|
this.#emitToolUse(id, "CodexImageView", { path: item.path }, agent);
|
|
4904
4904
|
this.#emitToolResult(id, item.path, false, void 0, agent?.toolUseId ?? null);
|
|
4905
4905
|
},
|
|
4906
|
+
contextCompaction: (_item, _active, id, agent) => {
|
|
4907
|
+
this.#emit({
|
|
4908
|
+
type: "context_compacted",
|
|
4909
|
+
uuid: id,
|
|
4910
|
+
parentToolUseId: agent?.toolUseId ?? null
|
|
4911
|
+
});
|
|
4912
|
+
},
|
|
4906
4913
|
subAgentActivity: (item, _active, id, agent) => {
|
|
4907
4914
|
if (this.#replayingHistory) {
|
|
4908
4915
|
if (item.kind !== "started") return;
|