@deksden-com/dd-flow-cli 0.9.0-beta.44 → 0.9.0-beta.45
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/dist/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"cli_package": "@deksden-com/dd-flow-cli",
|
|
3
|
-
"cli_version": "0.9.0-beta.
|
|
4
|
-
"cli_commit": "
|
|
5
|
-
"built_at": "2026-09-
|
|
3
|
+
"cli_version": "0.9.0-beta.45",
|
|
4
|
+
"cli_commit": "de0b193db602b54625897ad9af2fc3d661c32bc4",
|
|
5
|
+
"built_at": "2026-09-10T04:38:52.615Z",
|
|
6
6
|
"built_with_canon": {
|
|
7
7
|
"version": "4.1.0",
|
|
8
8
|
"commit": "ef349bf47cba1c987468e51d73a0dbadbd48dc1f",
|
|
@@ -76,6 +76,10 @@ export function controllerNativeChildren(receipt, rootSessionId) {
|
|
|
76
76
|
const text = (value, keys) => { for (const key of keys)
|
|
77
77
|
if (typeof value[key] === "string" && value[key])
|
|
78
78
|
return value[key]; return null; };
|
|
79
|
+
const settledTree = new Set(list(receipt.tree_observations)
|
|
80
|
+
.filter(value => object(value).settled === true)
|
|
81
|
+
.map(value => text(object(value), ["provider_session_id", "session_id"]))
|
|
82
|
+
.filter((id) => id !== null));
|
|
79
83
|
const add = (raw, source, scopedParent = null, fallback = "unknown") => {
|
|
80
84
|
const value = object(raw);
|
|
81
85
|
const id = text(value, ["provider_session_id", "session_id", "sessionId", "childSessionId", "conversation_id", "conversationId", "id", "subagentId"]);
|
|
@@ -84,7 +88,7 @@ export function controllerNativeChildren(receipt, rootSessionId) {
|
|
|
84
88
|
return;
|
|
85
89
|
const state = String(value.status ?? value.state ?? fallback).toLowerCase();
|
|
86
90
|
const status = ["completed", "complete", "done", "idle", "success", "succeeded"].includes(state) ? "completed" : state === "settled_by_root" ? "settled_by_root" : ["failed", "error"].includes(state) ? "failed" : ["cancelled", "canceled"].includes(state) ? "cancelled" : ["running", "active", "pending"].includes(state) ? "running" : fallback;
|
|
87
|
-
candidates.push({ session_id: id, parent_session_id: parent, status, source });
|
|
91
|
+
candidates.push({ session_id: id, parent_session_id: parent, status: status === "unknown" && settledTree.has(id) ? "settled_by_root" : status, source });
|
|
88
92
|
};
|
|
89
93
|
for (const value of list(receipt.descendants))
|
|
90
94
|
add(value, "adapter.descendants");
|