@pagelines/sdk 1.0.747 → 1.0.749
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.
|
@@ -4,9 +4,9 @@ import { ChatToolActivityData } from '@pagelines/core';
|
|
|
4
4
|
* bounded work journal (plans/bots/bot-tool-calling.md § "One compact work
|
|
5
5
|
* journal"). Views render the result; they never decide lifecycle.
|
|
6
6
|
*
|
|
7
|
-
* `outcome` describes the TURN, never its children
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* `outcome` describes the TURN, never its children. A completed turn may keep
|
|
8
|
+
* a failed source inside its disclosure, but the server marks a turn failed
|
|
9
|
+
* when every attempted tool failed.
|
|
10
10
|
*
|
|
11
11
|
* The function is pure and takes `nowMs` — it never reads a clock. The clock
|
|
12
12
|
* only advances projection state (action → waiting label, then the leave
|
|
@@ -33,10 +33,9 @@ export type WorkJournalModel = {
|
|
|
33
33
|
nextBoundaryAtMs?: number;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
* The persisted row owns its turn's ending: an assistant reply is
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* and interruptions. Never inferred from child activity statuses.
|
|
36
|
+
* The persisted row owns its turn's ending: an assistant reply is complete
|
|
37
|
+
* unless the server persisted `turnOutcome`; a system-error row is failed.
|
|
38
|
+
* Views never infer the turn outcome from child activity statuses.
|
|
40
39
|
*/
|
|
41
40
|
export declare function durableJournalOutcome(msg: {
|
|
42
41
|
sender: 'user' | 'agent' | 'system';
|