@houserules/payload 0.5.0 → 0.5.1
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/package.json
CHANGED
|
@@ -18,6 +18,14 @@ export interface TurnRecord {
|
|
|
18
18
|
content?: unknown;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Whether a `user` record carries a human prompt rather than a tool result. A meta record
|
|
23
|
+
* (a command caveat, hook feedback, a subagent's hand-back), a task notification, and a
|
|
24
|
+
* compaction summary are inserted by the harness and continue the turn already running.
|
|
25
|
+
* Stopping at one would hide the tool uses before it, such as the dispatch of the
|
|
26
|
+
* background agent that just reported.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isHumanPrompt(record: TurnRecord): boolean;
|
|
21
29
|
/**
|
|
22
30
|
* The name of every tool the assistant used since the last human prompt in `records`, in
|
|
23
31
|
* transcript order. Null when no assistant record follows that prompt. Null is the lag case:
|
|
@@ -25,11 +25,12 @@ export const READ_ONLY_TOOLS = new Set([
|
|
|
25
25
|
]);
|
|
26
26
|
/**
|
|
27
27
|
* Whether a `user` record carries a human prompt rather than a tool result. A meta record
|
|
28
|
-
* (a command caveat), a task notification, and a
|
|
29
|
-
* harness and continue the turn already running.
|
|
30
|
-
* before it, such as the dispatch of the
|
|
28
|
+
* (a command caveat, hook feedback, a subagent's hand-back), a task notification, and a
|
|
29
|
+
* compaction summary are inserted by the harness and continue the turn already running.
|
|
30
|
+
* Stopping at one would hide the tool uses before it, such as the dispatch of the
|
|
31
|
+
* background agent that just reported.
|
|
31
32
|
*/
|
|
32
|
-
function isHumanPrompt(record) {
|
|
33
|
+
export function isHumanPrompt(record) {
|
|
33
34
|
if (record.type !== 'user' || record.isMeta === true)
|
|
34
35
|
return false;
|
|
35
36
|
if (record.isCompactSummary === true)
|