jg-agent-hq 8.0.1 → 8.0.2
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/CHANGELOG.md +5 -0
- package/api/README.md +1 -1
- package/dist/actions/live/live.d.ts +5 -1
- package/dist/actions/live/live.js +7 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 8.0.2
|
|
4
|
+
|
|
5
|
+
- Clear a finished command, tool call or file change from the live window once history holds it with the same outcome. Codex shortens long command output when it saves it, so the saved text never matched the live text and the item stayed `awaiting-flush` until the window evicted it. An item without an outcome, such as a message, still needs exactly matching content.
|
|
6
|
+
- Keep 7.0.0's storage schema, so databases and snapshots written by 5.x through 8.0.1 open as they are.
|
|
7
|
+
|
|
3
8
|
## 8.0.1
|
|
4
9
|
|
|
5
10
|
- Link a Claude message that invokes a skill or slash command to the action that sent it. Claude records the `/name args` it received as command markup, so its hash never matched the action's and a Claude reviewer's review request stayed `unknown`. `nativeInputSha256` now hashes the `/name args` the markup holds.
|
package/api/README.md
CHANGED
|
@@ -323,7 +323,7 @@ The installed CLI exposes `managed-thread-name --name <name>` and `suggest-threa
|
|
|
323
323
|
|
|
324
324
|
Control pages default to 32 and cap at 128. Seek cursors are bound to their complete query and ordering. Reads recheck allowed workspaces. Rejected controls retain their known thread association, and native availability failures appear in each affected thread's replay. Lifecycle replay contains metadata, not token or tool output. Each provider has a bounded native lifecycle backlog; overflow stops that source and marks its state uncertain rather than losing events silently. Other providers retain their independent connection and admission state.
|
|
325
325
|
|
|
326
|
-
Live item presentation is bounded to 128 items per cached thread, 32 windows and 4 MiB of serialized presentation across the runtime, including escaped text and identifiers. This leaves room inside the IPC response limit. Display text uses the same truncation contract as native history. Eviction, an unavailable window or missing chunks sets `hasGap`. Completed items remain `awaiting-flush` after thread closure until a native history page
|
|
326
|
+
Live item presentation is bounded to 128 items per cached thread, 32 windows and 4 MiB of serialized presentation across the runtime, including escaped text and identifiers. This leaves room inside the IPC response limit. Display text uses the same truncation contract as native history. Eviction, an unavailable window or missing chunks sets `hasGap`. Completed items remain `awaiting-flush` after thread closure until a native history page holds the same item, with exactly matching normalized content or, for an item with an outcome, the same final outcome, or the bounded cache evicts them. The outcome is enough because Codex shortens long command output when it saves it. Read persisted history and the live window together after reconnect; a process restart cannot reconstruct unflushed in-memory content.
|
|
327
327
|
|
|
328
328
|
Items expose only normalized presentation fields, and one mapping per provider presents `items`, live items and `session-evidence` alike, as the provider's CLI shows them. Kinds are `user-message`, `agent-message`, `command`, `tool`, `file-change`, `notice` and `unsupported`. `callId` pairs a tool call with its result, or is null. `outcome` is `succeeded`, `failed`, or null when unknown or still running. `files` lists each file a file change touched, at most 128, with its added and removed lines, and is empty on other items. `outcome` and `files` come from the full native record, so `textLimit` never changes them. Unknown native kinds report `unsupported` without copying arbitrary payloads. Display text is bounded to 65,536 UTF-16 code units without splitting a surrogate pair; `isTruncated` reports omissions. An unsupported or oversized native transport frame fails explicitly. `createdAt` is the item's time in Unix milliseconds, or null when the provider records none. A Claude item takes its record's `timestamp`, and a live one the time its frame arrived. A Codex item takes its turn's times, which Codex records across all of its history: an operator message takes its turn's start and every other item its turn's end, or its start while the turn runs. A Codex history page reads the turns of its items newest first, 128 at a time and at most 8 times, so a recent page takes one read and an item whose turn lies further back has no time. A live Codex item takes its running turn's start.
|
|
329
329
|
|
|
@@ -25,7 +25,11 @@ export declare class LiveItems {
|
|
|
25
25
|
})[];
|
|
26
26
|
hasGap: boolean;
|
|
27
27
|
};
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Drops completed items once persisted history holds them: with exactly matching normalized
|
|
30
|
+
* content, or, for an item with an outcome, the same final outcome, since a provider can shorten
|
|
31
|
+
* long output when it saves it, as Codex does.
|
|
32
|
+
*/
|
|
29
33
|
reconcile(nativeId: string, persisted: IHistoryItem[]): void;
|
|
30
34
|
/** Keeps interrupted partial items available while their final native history is pending. */
|
|
31
35
|
completeTurn(nativeId: string, turnId: string): void;
|
|
@@ -103,7 +103,11 @@ export class LiveItems {
|
|
|
103
103
|
hasGap: thread?.hasGap ?? true,
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* Drops completed items once persisted history holds them: with exactly matching normalized
|
|
108
|
+
* content, or, for an item with an outcome, the same final outcome, since a provider can shorten
|
|
109
|
+
* long output when it saves it, as Codex does.
|
|
110
|
+
*/
|
|
107
111
|
reconcile(nativeId, persisted) {
|
|
108
112
|
const thread = this.__threads.get(nativeId);
|
|
109
113
|
if (!thread)
|
|
@@ -114,8 +118,8 @@ export class LiveItems {
|
|
|
114
118
|
if (entry?.isComplete &&
|
|
115
119
|
entry.item.nativeType === item.nativeType &&
|
|
116
120
|
entry.item.kind === item.kind &&
|
|
117
|
-
entry.item.text === item.text &&
|
|
118
|
-
|
|
121
|
+
((entry.item.text === item.text && entry.item.isTruncated === item.isTruncated) ||
|
|
122
|
+
(item.outcome !== null && entry.item.outcome === item.outcome))) {
|
|
119
123
|
this.__bytes -= entry.bytes;
|
|
120
124
|
thread.items.delete(key);
|
|
121
125
|
thread.revision = ++this.__revision;
|