@tomflow/proflow-execution-browser-extension 0.1.9 → 0.1.10
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 +6 -0
- package/DOCS.md +1 -1
- package/SETUP.md +3 -3
- package/dist/deployment/adapter.d.ts +16 -16
- package/dist/deployment/adapter.js +6 -6
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/dist/src/configure.js +6 -0
- package/manifest.json +1 -1
- package/package.json +3 -3
- package/proflow.module.json +1 -1
package/CHANGELOG.md
CHANGED
package/DOCS.md
CHANGED
|
@@ -8,6 +8,6 @@ Execution Browser Extension(浏览器执行扩展)让 ProFlow 在 Chrome 中
|
|
|
8
8
|
|
|
9
9
|
## 如何配置
|
|
10
10
|
|
|
11
|
-
运行 `proflow-execution-browser-extension setup`。向导会准备扩展目录、打开 Chrome 扩展管理页,并说明如何加载已解压扩展;完成后收集 Extension ID(扩展标识)并验证连接状态。
|
|
11
|
+
运行 `pnpm exec -- proflow-execution-browser-extension setup`。向导会准备扩展目录、打开 Chrome 扩展管理页,并说明如何加载已解压扩展;完成后收集 Extension ID(扩展标识)并验证连接状态。
|
|
12
12
|
|
|
13
13
|
扩展不保存 Task(任务)或 Approval(审批)的业务真相,只负责浏览器侧交互。
|
package/SETUP.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
## STEP-EXECUTION-BROWSER-EXTENSION-01 — 加载并验证 Chrome 扩展
|
|
4
4
|
|
|
5
5
|
Responsible: USER
|
|
6
|
-
Interactive executable: `proflow-execution-browser-extension setup`
|
|
7
|
-
Non-interactive executable: `proflow-execution-browser-extension setup --extension-id <id>`
|
|
6
|
+
Interactive executable: `pnpm exec -- proflow-execution-browser-extension setup`
|
|
7
|
+
Non-interactive executable: `pnpm exec -- proflow-execution-browser-extension setup --extension-id <id>`
|
|
8
8
|
Required inputs: Chrome Extension ID
|
|
9
|
-
Verify: `proflow-execution-browser-extension verify`
|
|
9
|
+
Verify: `pnpm exec -- proflow-execution-browser-extension verify`
|
|
10
10
|
Success condition: `execution-browser-extension.setupStatus=READY`.
|
|
@@ -14,7 +14,7 @@ export declare const behaviorAdapter: {
|
|
|
14
14
|
ok: true;
|
|
15
15
|
status: "SUCCEEDED";
|
|
16
16
|
moduleRef: "execution-browser-extension";
|
|
17
|
-
moduleVersion: "0.1.
|
|
17
|
+
moduleVersion: "0.1.10";
|
|
18
18
|
data: {
|
|
19
19
|
loadDir: string;
|
|
20
20
|
};
|
|
@@ -27,7 +27,7 @@ export declare const behaviorAdapter: {
|
|
|
27
27
|
readonly ok: true;
|
|
28
28
|
readonly status: "SUCCEEDED";
|
|
29
29
|
readonly moduleRef: "execution-browser-extension";
|
|
30
|
-
readonly moduleVersion: "0.1.
|
|
30
|
+
readonly moduleVersion: "0.1.10";
|
|
31
31
|
};
|
|
32
32
|
observedEffects: never[];
|
|
33
33
|
}>;
|
|
@@ -37,7 +37,7 @@ export declare const behaviorAdapter: {
|
|
|
37
37
|
ok: true;
|
|
38
38
|
status: "SUCCEEDED";
|
|
39
39
|
moduleRef: "execution-browser-extension";
|
|
40
|
-
moduleVersion: "0.1.
|
|
40
|
+
moduleVersion: "0.1.10";
|
|
41
41
|
data: {
|
|
42
42
|
setupStatus: "ACTION_REQUIRED" | "READY";
|
|
43
43
|
runtimeStatus: "RUNNING" | "STOPPED";
|
|
@@ -49,7 +49,7 @@ export declare const behaviorAdapter: {
|
|
|
49
49
|
result: {
|
|
50
50
|
contract: "deployment.result.v1";
|
|
51
51
|
moduleRef: "execution-browser-extension";
|
|
52
|
-
moduleVersion: "0.1.
|
|
52
|
+
moduleVersion: "0.1.10";
|
|
53
53
|
ok: false;
|
|
54
54
|
status: "FAILED";
|
|
55
55
|
error: {
|
|
@@ -64,11 +64,11 @@ export declare const behaviorAdapter: {
|
|
|
64
64
|
readonly state: "BLOCKED";
|
|
65
65
|
readonly responsible: "EXTERNAL";
|
|
66
66
|
readonly execution: {
|
|
67
|
-
readonly interactive: "proflow-execution-browser-extension setup";
|
|
68
|
-
readonly nonInteractive: "proflow-execution-browser-extension setup --extension-id <id>";
|
|
67
|
+
readonly interactive: "pnpm exec -- proflow-execution-browser-extension setup";
|
|
68
|
+
readonly nonInteractive: "pnpm exec -- proflow-execution-browser-extension setup --extension-id <id>";
|
|
69
69
|
};
|
|
70
70
|
readonly requiredInputs: readonly [];
|
|
71
|
-
readonly verify: "proflow-execution-browser-extension verify";
|
|
71
|
+
readonly verify: "pnpm exec -- proflow-execution-browser-extension verify";
|
|
72
72
|
readonly successCondition: "配置状态变为“已就绪”";
|
|
73
73
|
readonly blockedReason: "Extension ID 或生成配置无效";
|
|
74
74
|
}];
|
|
@@ -79,7 +79,7 @@ export declare const behaviorAdapter: {
|
|
|
79
79
|
result: {
|
|
80
80
|
contract: "deployment.result.v1";
|
|
81
81
|
moduleRef: "execution-browser-extension";
|
|
82
|
-
moduleVersion: "0.1.
|
|
82
|
+
moduleVersion: "0.1.10";
|
|
83
83
|
ok: false;
|
|
84
84
|
status: "ACTION_REQUIRED";
|
|
85
85
|
data: {
|
|
@@ -89,15 +89,15 @@ export declare const behaviorAdapter: {
|
|
|
89
89
|
readonly state: "TODO";
|
|
90
90
|
readonly responsible: "USER";
|
|
91
91
|
readonly execution: {
|
|
92
|
-
readonly interactive: "proflow-execution-browser-extension setup";
|
|
93
|
-
readonly nonInteractive: "proflow-execution-browser-extension setup --extension-id <id>";
|
|
92
|
+
readonly interactive: "pnpm exec -- proflow-execution-browser-extension setup";
|
|
93
|
+
readonly nonInteractive: "pnpm exec -- proflow-execution-browser-extension setup --extension-id <id>";
|
|
94
94
|
};
|
|
95
95
|
readonly requiredInputs: readonly [{
|
|
96
96
|
readonly name: "extensionId";
|
|
97
97
|
readonly description: "Chrome Extension ID";
|
|
98
98
|
readonly sensitive: false;
|
|
99
99
|
}];
|
|
100
|
-
readonly verify: "proflow-execution-browser-extension verify";
|
|
100
|
+
readonly verify: "pnpm exec -- proflow-execution-browser-extension verify";
|
|
101
101
|
readonly successCondition: "配置状态变为“已就绪”";
|
|
102
102
|
}];
|
|
103
103
|
};
|
|
@@ -113,7 +113,7 @@ export declare const behaviorAdapter: {
|
|
|
113
113
|
readonly ok: true;
|
|
114
114
|
readonly status: "SUCCEEDED";
|
|
115
115
|
readonly moduleRef: "execution-browser-extension";
|
|
116
|
-
readonly moduleVersion: "0.1.
|
|
116
|
+
readonly moduleVersion: "0.1.10";
|
|
117
117
|
};
|
|
118
118
|
observedEffects: string[];
|
|
119
119
|
}>;
|
|
@@ -123,7 +123,7 @@ export declare const behaviorAdapter: {
|
|
|
123
123
|
ok: true;
|
|
124
124
|
status: "SUCCEEDED";
|
|
125
125
|
moduleRef: "execution-browser-extension";
|
|
126
|
-
moduleVersion: "0.1.
|
|
126
|
+
moduleVersion: "0.1.10";
|
|
127
127
|
data: {
|
|
128
128
|
docs: string;
|
|
129
129
|
};
|
|
@@ -136,11 +136,11 @@ export declare const behaviorAdapter: {
|
|
|
136
136
|
readonly ok: true;
|
|
137
137
|
readonly status: "SUCCEEDED";
|
|
138
138
|
readonly moduleRef: "execution-browser-extension";
|
|
139
|
-
readonly moduleVersion: "0.1.
|
|
139
|
+
readonly moduleVersion: "0.1.10";
|
|
140
140
|
} | {
|
|
141
141
|
contract: "deployment.result.v1";
|
|
142
142
|
moduleRef: "execution-browser-extension";
|
|
143
|
-
moduleVersion: "0.1.
|
|
143
|
+
moduleVersion: "0.1.10";
|
|
144
144
|
ok: false;
|
|
145
145
|
status: "FAILED";
|
|
146
146
|
error: {
|
|
@@ -157,7 +157,7 @@ export declare const behaviorAdapter: {
|
|
|
157
157
|
readonly ok: true;
|
|
158
158
|
readonly status: "SUCCEEDED";
|
|
159
159
|
readonly moduleRef: "execution-browser-extension";
|
|
160
|
-
readonly moduleVersion: "0.1.
|
|
160
|
+
readonly moduleVersion: "0.1.10";
|
|
161
161
|
};
|
|
162
162
|
observedEffects: never[];
|
|
163
163
|
}>;
|
|
@@ -19,8 +19,8 @@ const setupPlan = {
|
|
|
19
19
|
state: "TODO",
|
|
20
20
|
responsible: "USER",
|
|
21
21
|
execution: {
|
|
22
|
-
interactive: "proflow-execution-browser-extension setup",
|
|
23
|
-
nonInteractive: "proflow-execution-browser-extension setup --extension-id <id>",
|
|
22
|
+
interactive: "pnpm exec -- proflow-execution-browser-extension setup",
|
|
23
|
+
nonInteractive: "pnpm exec -- proflow-execution-browser-extension setup --extension-id <id>",
|
|
24
24
|
},
|
|
25
25
|
requiredInputs: [
|
|
26
26
|
{
|
|
@@ -29,7 +29,7 @@ const setupPlan = {
|
|
|
29
29
|
sensitive: false,
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
|
-
verify: "proflow-execution-browser-extension verify",
|
|
32
|
+
verify: "pnpm exec -- proflow-execution-browser-extension verify",
|
|
33
33
|
successCondition: "配置状态变为“已就绪”",
|
|
34
34
|
},
|
|
35
35
|
],
|
|
@@ -42,11 +42,11 @@ const blockedSetupPlan = {
|
|
|
42
42
|
state: "BLOCKED",
|
|
43
43
|
responsible: "EXTERNAL",
|
|
44
44
|
execution: {
|
|
45
|
-
interactive: "proflow-execution-browser-extension setup",
|
|
46
|
-
nonInteractive: "proflow-execution-browser-extension setup --extension-id <id>",
|
|
45
|
+
interactive: "pnpm exec -- proflow-execution-browser-extension setup",
|
|
46
|
+
nonInteractive: "pnpm exec -- proflow-execution-browser-extension setup --extension-id <id>",
|
|
47
47
|
},
|
|
48
48
|
requiredInputs: [],
|
|
49
|
-
verify: "proflow-execution-browser-extension verify",
|
|
49
|
+
verify: "pnpm exec -- proflow-execution-browser-extension verify",
|
|
50
50
|
successCondition: "配置状态变为“已就绪”",
|
|
51
51
|
blockedReason: "Extension ID 或生成配置无效",
|
|
52
52
|
},
|
|
@@ -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.10";
|
|
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.10",
|
|
7
7
|
kind: "browser-extension",
|
|
8
8
|
templateVersion: "1.0.0",
|
|
9
9
|
platformCompatibility: ">=1.0.0 <2.0.0",
|
package/dist/src/configure.js
CHANGED
|
@@ -4,6 +4,12 @@ import { readFile } from "node:fs/promises";
|
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
import { createInterface } from "node:readline/promises";
|
|
6
6
|
import { behaviorAdapter, materializeProductionConfig, } from "../deployment/adapter.js";
|
|
7
|
+
function reportFatal(error) {
|
|
8
|
+
process.stderr.write(`✕ 配置失败\n ${error instanceof Error ? error.message : String(error)}\n`);
|
|
9
|
+
process.exitCode = 1;
|
|
10
|
+
}
|
|
11
|
+
process.on("uncaughtException", reportFatal);
|
|
12
|
+
process.on("unhandledRejection", reportFatal);
|
|
7
13
|
function workspaceFromArgs(args) {
|
|
8
14
|
if (args[0] !== "materialize-config") {
|
|
9
15
|
throw new Error("Usage: proflow-execution-browser-extension materialize-config [--workspace /absolute/path]");
|
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.10",
|
|
4
4
|
"description": "Execution-owned MV3 Browser executor, evidence provider and browser application surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@tomflow/proflow-module-contract": "^0.1.10"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tomflow/proflow-
|
|
34
|
-
"@tomflow/proflow-
|
|
33
|
+
"@tomflow/proflow-execution-runtime": "^0.1.11",
|
|
34
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.8"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"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.10",
|
|
7
7
|
"kind": "browser-extension",
|
|
8
8
|
"templateVersion": "1.0.0",
|
|
9
9
|
"platformCompatibility": ">=1.0.0 <2.0.0",
|