@tomflow/proflow-execution-browser-extension 0.1.40 → 0.1.41

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,11 @@
1
1
  # @tomflow/proflow-execution-browser-extension
2
2
 
3
+ ## 0.1.41
4
+
5
+ ### Patch Changes
6
+
7
+ - Resume the existing Task Observer after successful Tasks web mutations so READY nodes receive their normal NODE_READY or REOPEN wake without manual recovery.
8
+
3
9
  ## 0.1.40
4
10
 
5
11
  ### Patch Changes
@@ -47,7 +47,7 @@ export declare const behaviorAdapter: {
47
47
  ok: true;
48
48
  status: "SUCCEEDED";
49
49
  moduleRef: "execution-browser-extension";
50
- moduleVersion: "0.1.40";
50
+ moduleVersion: "0.1.41";
51
51
  data: {
52
52
  loadDir: string;
53
53
  };
@@ -60,7 +60,7 @@ export declare const behaviorAdapter: {
60
60
  readonly ok: true;
61
61
  readonly status: "SUCCEEDED";
62
62
  readonly moduleRef: "execution-browser-extension";
63
- readonly moduleVersion: "0.1.40";
63
+ readonly moduleVersion: "0.1.41";
64
64
  };
65
65
  observedEffects: never[];
66
66
  }>;
@@ -70,7 +70,7 @@ export declare const behaviorAdapter: {
70
70
  ok: true;
71
71
  status: "SUCCEEDED";
72
72
  moduleRef: "execution-browser-extension";
73
- moduleVersion: "0.1.40";
73
+ moduleVersion: "0.1.41";
74
74
  data: {
75
75
  setupStatus: "ACTION_REQUIRED" | "READY";
76
76
  runtimeStatus: "NOT_APPLICABLE";
@@ -95,7 +95,7 @@ export declare const behaviorAdapter: {
95
95
  result: {
96
96
  contract: "deployment.result.v1";
97
97
  moduleRef: "execution-browser-extension";
98
- moduleVersion: "0.1.40";
98
+ moduleVersion: "0.1.41";
99
99
  ok: false;
100
100
  status: "ACTION_REQUIRED";
101
101
  data: {
@@ -127,14 +127,14 @@ export declare const behaviorAdapter: {
127
127
  readonly ok: true;
128
128
  readonly status: "SUCCEEDED";
129
129
  readonly moduleRef: "execution-browser-extension";
130
- readonly moduleVersion: "0.1.40";
130
+ readonly moduleVersion: "0.1.41";
131
131
  };
132
132
  observedEffects: string[];
133
133
  } | {
134
134
  result: {
135
135
  contract: "deployment.result.v1";
136
136
  moduleRef: "execution-browser-extension";
137
- moduleVersion: "0.1.40";
137
+ moduleVersion: "0.1.41";
138
138
  ok: false;
139
139
  status: "FAILED";
140
140
  error: {
@@ -167,7 +167,7 @@ export declare const behaviorAdapter: {
167
167
  ok: true;
168
168
  status: "SUCCEEDED";
169
169
  moduleRef: "execution-browser-extension";
170
- moduleVersion: "0.1.40";
170
+ moduleVersion: "0.1.41";
171
171
  data: {
172
172
  docs: string;
173
173
  };
@@ -180,11 +180,11 @@ export declare const behaviorAdapter: {
180
180
  readonly ok: true;
181
181
  readonly status: "SUCCEEDED";
182
182
  readonly moduleRef: "execution-browser-extension";
183
- readonly moduleVersion: "0.1.40";
183
+ readonly moduleVersion: "0.1.41";
184
184
  } | {
185
185
  contract: "deployment.result.v1";
186
186
  moduleRef: "execution-browser-extension";
187
- moduleVersion: "0.1.40";
187
+ moduleVersion: "0.1.41";
188
188
  ok: false;
189
189
  status: "FAILED";
190
190
  error: {
@@ -201,7 +201,7 @@ export declare const behaviorAdapter: {
201
201
  readonly ok: true;
202
202
  readonly status: "SUCCEEDED";
203
203
  readonly moduleRef: "execution-browser-extension";
204
- readonly moduleVersion: "0.1.40";
204
+ readonly moduleVersion: "0.1.41";
205
205
  };
206
206
  observedEffects: never[];
207
207
  }>;
@@ -3,7 +3,7 @@ export declare const descriptor: {
3
3
  readonly contractVersion: "1.0.0";
4
4
  readonly moduleRef: "execution-browser-extension";
5
5
  readonly packageName: "@tomflow/proflow-execution-browser-extension";
6
- readonly moduleVersion: "0.1.40";
6
+ readonly moduleVersion: "0.1.41";
7
7
  readonly kind: "browser-extension";
8
8
  readonly templateVersion: "1.0.0";
9
9
  readonly platformCompatibility: ">=1.0.0 <2.0.0";
@@ -3,7 +3,7 @@ export const descriptor = {
3
3
  contractVersion: "1.0.0",
4
4
  moduleRef: "execution-browser-extension",
5
5
  packageName: "@tomflow/proflow-execution-browser-extension",
6
- moduleVersion: "0.1.40",
6
+ moduleVersion: "0.1.41",
7
7
  kind: "browser-extension",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
@@ -14999,6 +14999,10 @@ function text(value, name) {
14999
14999
  return value;
15000
15000
  }
15001
15001
  async function executeCommand(command) {
15002
+ if (command.type === "TASK_OBSERVER_RECOVER") {
15003
+ void runObserverRecovery();
15004
+ return { scheduled: true };
15005
+ }
15002
15006
  if (command.type === "CARRIER_ATTENTION_ACTION") {
15003
15007
  if (command.action !== "allowOnce" && command.action !== "deny")
15004
15008
  throw new Error("ATTENTION_ACTION_INVALID");
@@ -1,6 +1,12 @@
1
1
  import { randomUUID, timingSafeEqual } from "node:crypto";
2
2
  import { createServer, } from "node:http";
3
3
  import { parseCarrierAttentionViews, } from "./carrier-attention-view.js";
4
+ const taskWebObserverRecoveryOperations = new Set([
5
+ "task.create",
6
+ "task.start",
7
+ "task.ensureWorkers",
8
+ "node.reopen",
9
+ ]);
4
10
  export class BrowserRealityBridgeError extends Error {
5
11
  code;
6
12
  constructor(code, message) {
@@ -257,9 +263,18 @@ export async function createBrowserRealityBridgeServer(options) {
257
263
  typeof body.operation !== "string" ||
258
264
  !isRecord(body.input))
259
265
  throw new BrowserRealityBridgeError("BRIDGE_INPUT_INVALID", "task web request is invalid");
260
- const value = url.pathname.endsWith("/task")
266
+ const taskRequest = url.pathname.endsWith("/task");
267
+ const value = taskRequest
261
268
  ? await options.taskWeb.invokeTask(body.operation, body.input)
262
269
  : await options.taskWeb.invokeApproval(body.operation, body.input);
270
+ if (taskRequest &&
271
+ taskWebObserverRecoveryOperations.has(body.operation) &&
272
+ commandConsumerReady()) {
273
+ // The Task mutation is already durable and must not be coupled to
274
+ // transient Browser delivery. Notify the Extension asynchronously so
275
+ // its existing Task Observer can derive the next NODE_READY/REOPEN wake.
276
+ void requestCommand({ type: "TASK_OBSERVER_RECOVER" }).catch(() => undefined);
277
+ }
263
278
  send(response, 200, { ok: true, value });
264
279
  return;
265
280
  }
@@ -76,7 +76,8 @@ type BridgeCommand = {
76
76
  | "VERIFY"
77
77
  | "SCREENSHOT"
78
78
  | "PERFORM"
79
- | "CARRIER_ATTENTION_ACTION";
79
+ | "CARRIER_ATTENTION_ACTION"
80
+ | "TASK_OBSERVER_RECOVER";
80
81
  tabId?: number;
81
82
  url?: string;
82
83
  text?: string;
@@ -1312,6 +1313,10 @@ function text(value: unknown, name: string): string {
1312
1313
  }
1313
1314
 
1314
1315
  async function executeCommand(command: BridgeCommand): Promise<unknown> {
1316
+ if (command.type === "TASK_OBSERVER_RECOVER") {
1317
+ void runObserverRecovery();
1318
+ return { scheduled: true };
1319
+ }
1315
1320
  if (command.type === "CARRIER_ATTENTION_ACTION") {
1316
1321
  if (command.action !== "allowOnce" && command.action !== "deny")
1317
1322
  throw new Error("ATTENTION_ACTION_INVALID");
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "ProFlow Execution Browser",
4
- "version": "0.1.40",
4
+ "version": "0.1.41",
5
5
  "permissions": [
6
6
  "tabs",
7
7
  "storage"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/proflow-execution-browser-extension",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "Execution-owned MV3 Browser executor, evidence provider and browser application surface.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -31,8 +31,8 @@
31
31
  "@tomflow/proflow-module-contract": "^0.1.13"
32
32
  },
33
33
  "devDependencies": {
34
- "@tomflow/proflow-deployment-conformance": "^0.1.13",
35
- "@tomflow/proflow-execution-runtime": "^0.1.17"
34
+ "@tomflow/proflow-execution-runtime": "^0.1.17",
35
+ "@tomflow/proflow-deployment-conformance": "^0.1.13"
36
36
  },
37
37
  "keywords": [
38
38
  "proflow",
@@ -3,7 +3,7 @@
3
3
  "contractVersion": "1.0.0",
4
4
  "moduleRef": "execution-browser-extension",
5
5
  "packageName": "@tomflow/proflow-execution-browser-extension",
6
- "moduleVersion": "0.1.40",
6
+ "moduleVersion": "0.1.41",
7
7
  "kind": "browser-extension",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",