@tomflow/proflow-execution-browser-extension 0.1.30 → 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.
- package/dist/deployment/adapter.d.ts +10 -10
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/dist/extension/background.js +7 -7
- package/dist/src/bridge.js +1 -1
- package/dist/src/runtime-composition.js +1 -1
- package/extension/background.ts +7 -7
- package/manifest.json +1 -1
- package/package.json +3 -3
- package/proflow.module.json +1 -1
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
183
|
+
readonly moduleVersion: "0.1.32";
|
|
184
184
|
} | {
|
|
185
185
|
contract: "deployment.result.v1";
|
|
186
186
|
moduleRef: "execution-browser-extension";
|
|
187
|
-
moduleVersion: "0.1.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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 {
|
package/dist/src/bridge.js
CHANGED
|
@@ -172,7 +172,7 @@ export async function createBrowserRealityBridgeServer(options) {
|
|
|
172
172
|
sendText(response, 200, "text/html; charset=utf-8", options.taskWeb.html);
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
|
-
if (request.method === "GET" && url.pathname === "/tasks.js") {
|
|
175
|
+
if (request.method === "GET" && url.pathname === "/tasks/app.js") {
|
|
176
176
|
sendText(response, 200, "text/javascript; charset=utf-8", options.taskWeb.script);
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
@@ -87,7 +87,7 @@ async function invokeApplication(config, operation, input) {
|
|
|
87
87
|
export async function createBrowserExecutorComposition(options) {
|
|
88
88
|
const platformHost = applicationConfig(options.platformHost);
|
|
89
89
|
const root = packageRoot();
|
|
90
|
-
const taskHtml = (await readFile(resolve(root, "extension/tasks.html"), "utf8")).replace("../dist/extension/tasks.js", "/tasks.js");
|
|
90
|
+
const taskHtml = (await readFile(resolve(root, "extension/tasks.html"), "utf8")).replace("../dist/extension/tasks.js", "/tasks/app.js");
|
|
91
91
|
const taskScript = await readFile(resolve(root, "dist/extension/tasks.js"), "utf8");
|
|
92
92
|
const bridge = await createBrowserRealityBridgeServer({
|
|
93
93
|
...options.bridge,
|
package/extension/background.ts
CHANGED
|
@@ -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
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/proflow-execution-browser-extension",
|
|
3
|
-
"version": "0.1.
|
|
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": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@tomflow/proflow-module-contract": "^0.1.13"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tomflow/proflow-
|
|
35
|
-
"@tomflow/proflow-
|
|
34
|
+
"@tomflow/proflow-execution-runtime": "^0.1.15",
|
|
35
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.13"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"proflow",
|
package/proflow.module.json
CHANGED
|
@@ -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.
|
|
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",
|