@deksden-com/dd-flow-cli 0.9.0-beta.43 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @deksden-com/dd-flow-cli
2
2
 
3
+ ## 0.9.0-beta.44
4
+
5
+ ### Patch Changes
6
+
7
+ - Allow a managed native session prompt to run for two hours before the outer
8
+ adapter watchdog cancels it, while retaining the existing short timeout for
9
+ non-productive adapter calls.
10
+
3
11
  ## 0.9.0-beta.43
4
12
 
5
13
  ### Patch Changes
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "cli_package": "@deksden-com/dd-flow-cli",
3
- "cli_version": "0.9.0-beta.43",
4
- "cli_commit": "387b5ce2c63b7e4f97ff240d0a22763f7cc38c47",
5
- "built_at": "2026-09-09T21:42:22.490Z",
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");
@@ -60,7 +60,7 @@ export async function controllerAdapter(context, row, manifest, session, args, a
60
60
  appendEvent(context, row.controller_id, "operation_requested", { operation_id: operationId, operation: args.slice(0, 2), session_id: session.id || null });
61
61
  try {
62
62
  assertOwner?.();
63
- const receipt = await runHarnessAdapter({ executable, args, env: controllerEnvironment(context, manifest, session), operationId, runtimeOwner: session.owner, timeoutMs: args[0] === "session" && args[1] === "prompt" ? 45 * 60_000 : 120_000 });
63
+ const receipt = await runHarnessAdapter({ executable, args, env: controllerEnvironment(context, manifest, session), operationId, runtimeOwner: session.owner, timeoutMs: args[0] === "session" && args[1] === "prompt" ? 2 * 60 * 60_000 : 120_000 });
64
64
  context.db.run("UPDATE run_controller_operations SET receipt_json = ?, updated_at = ? WHERE operation_id = ?", [JSON.stringify(receipt), context.now(), operationId]);
65
65
  const target = args[args.indexOf("--session-id") + 1];
66
66
  if (args[0] === "session" && args.includes("--session-id") && adapterSessionId(receipt) !== target)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deksden-com/dd-flow-cli",
3
- "version": "0.9.0-beta.43",
3
+ "version": "0.9.0-beta.45",
4
4
  "description": "Mechanical runtime CLI for dd-flow workflows.",
5
5
  "type": "module",
6
6
  "bin": {