@tomflow/proflow-execution-browser-extension 0.1.31 → 0.1.32

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.
@@ -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.31";
50
+ moduleVersion: "0.1.32";
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.31";
63
+ readonly moduleVersion: "0.1.32";
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.31";
73
+ moduleVersion: "0.1.32";
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.31";
98
+ moduleVersion: "0.1.32";
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.31";
130
+ readonly moduleVersion: "0.1.32";
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.31";
137
+ moduleVersion: "0.1.32";
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.31";
170
+ moduleVersion: "0.1.32";
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.31";
183
+ readonly moduleVersion: "0.1.32";
184
184
  } | {
185
185
  contract: "deployment.result.v1";
186
186
  moduleRef: "execution-browser-extension";
187
- moduleVersion: "0.1.31";
187
+ moduleVersion: "0.1.32";
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.31";
204
+ readonly moduleVersion: "0.1.32";
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.31";
6
+ readonly moduleVersion: "0.1.32";
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.31",
6
+ moduleVersion: "0.1.32",
7
7
  kind: "browser-extension",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
@@ -14782,12 +14782,6 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
14782
14782
  async function openTaskPage() {
14783
14783
  const bridge = await bridgeConfig();
14784
14784
  if (bridge) {
14785
- const webUrl = `${bridge.endpoint}/tasks`;
14786
- const [existing] = await chrome.tabs.query({ url: webUrl, currentWindow: true });
14787
- if (existing?.id !== void 0) {
14788
- await chrome.tabs.update(existing.id, { active: true });
14789
- return;
14790
- }
14791
14785
  try {
14792
14786
  const response = await fetch(`${bridge.endpoint}/v1/tasks/session`, {
14793
14787
  method: "POST",
@@ -14795,7 +14789,13 @@ async function openTaskPage() {
14795
14789
  });
14796
14790
  const body = await response.json();
14797
14791
  if (response.ok && isRecord(body) && typeof body.url === "string" && body.url.startsWith(`${bridge.endpoint}/tasks/bootstrap/`)) {
14798
- await chrome.tabs.create({ url: body.url, active: true });
14792
+ const webUrl = `${bridge.endpoint}/tasks`;
14793
+ const [existing] = await chrome.tabs.query({ url: webUrl, currentWindow: true });
14794
+ if (existing?.id !== void 0) {
14795
+ await chrome.tabs.update(existing.id, { url: body.url, active: true });
14796
+ } else {
14797
+ await chrome.tabs.create({ url: body.url, active: true });
14798
+ }
14799
14799
  return;
14800
14800
  }
14801
14801
  } catch {
@@ -1320,12 +1320,6 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
1320
1320
  async function openTaskPage(): Promise<void> {
1321
1321
  const bridge = await bridgeConfig();
1322
1322
  if (bridge) {
1323
- const webUrl = `${bridge.endpoint}/tasks`;
1324
- const [existing] = await chrome.tabs.query({ url: webUrl, currentWindow: true });
1325
- if (existing?.id !== undefined) {
1326
- await chrome.tabs.update(existing.id, { active: true });
1327
- return;
1328
- }
1329
1323
  try {
1330
1324
  const response = await fetch(`${bridge.endpoint}/v1/tasks/session`, {
1331
1325
  method: "POST",
@@ -1338,7 +1332,13 @@ async function openTaskPage(): Promise<void> {
1338
1332
  typeof body.url === "string" &&
1339
1333
  body.url.startsWith(`${bridge.endpoint}/tasks/bootstrap/`)
1340
1334
  ) {
1341
- await chrome.tabs.create({ url: body.url, active: true });
1335
+ const webUrl = `${bridge.endpoint}/tasks`;
1336
+ const [existing] = await chrome.tabs.query({ url: webUrl, currentWindow: true });
1337
+ if (existing?.id !== undefined) {
1338
+ await chrome.tabs.update(existing.id, { url: body.url, active: true });
1339
+ } else {
1340
+ await chrome.tabs.create({ url: body.url, active: true });
1341
+ }
1342
1342
  return;
1343
1343
  }
1344
1344
  } catch {
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.31",
4
+ "version": "0.1.32",
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.31",
3
+ "version": "0.1.32",
4
4
  "description": "Execution-owned MV3 Browser executor, evidence provider and browser application surface.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -27,12 +27,12 @@
27
27
  "SETUP.md"
28
28
  ],
29
29
  "dependencies": {
30
- "@tomflow/proflow-module-contract": "^0.1.13",
31
- "@tomflow/proflow-execution-contracts": "^0.1.10"
30
+ "@tomflow/proflow-execution-contracts": "^0.1.10",
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.15"
34
+ "@tomflow/proflow-execution-runtime": "^0.1.15",
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.31",
6
+ "moduleVersion": "0.1.32",
7
7
  "kind": "browser-extension",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",