@tomflow/proflow-execution-runtime 0.1.11 → 0.1.13
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 +12 -0
- package/DOCS.md +34 -6
- package/SETUP.md +22 -4
- package/dist/deployment/adapter.d.ts +51 -16
- package/dist/deployment/adapter.js +65 -17
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/package.json +7 -7
- package/proflow.module.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tomflow/proflow-execution-runtime
|
|
2
2
|
|
|
3
|
+
## 0.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Distinguish dependency blocking from verified failure, expose Module-owned status diagnostics, remove automatic docs paging, consolidate start checks, add contextual help, and clarify uninstall output.
|
|
8
|
+
|
|
9
|
+
## 0.1.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Upgrade the ProFlow terminal experience, stream Registry and package-manager progress, publish structured Chinese Module documentation, and provide numbered package-owned Setup assistants.
|
|
14
|
+
|
|
3
15
|
## 0.1.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/DOCS.md
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
# execution-runtime
|
|
1
|
+
# execution-runtime — 执行服务
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## 模块定位与作用
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
接收标准 Execution Intent,选择 Local 或 Browser Executor,管理执行、恢复和 Evidence,并向其他领域提供唯一真实副作用入口。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 主要能力
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- 校验 Intent、权限、幂等键和执行状态。
|
|
10
|
+
- 路由本地与浏览器执行能力,统一结果与失败恢复。
|
|
11
|
+
- 持久化执行记录和 Evidence,提供认证的本地服务接口。
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## 提供的 API 与 Public Contract
|
|
14
|
+
|
|
15
|
+
- 提供 `execution` Contract,版本 `1.0.0`。
|
|
16
|
+
- 对外提供请求执行、查询结果和读取证据的应用接口。
|
|
17
|
+
|
|
18
|
+
## 依赖的 Module、Contract 和外部资源
|
|
19
|
+
|
|
20
|
+
- 依赖 `execution-local`,兼容版本 `>=1.0.0 <2.0.0`。
|
|
21
|
+
- Browser Effect 还需要 execution-browser-extension 发布的 Executor shared fact。
|
|
22
|
+
|
|
23
|
+
## 运行形态与生命周期
|
|
24
|
+
|
|
25
|
+
类型为 Service,配置 READY 后由 `platform start` 启动独立认证进程。
|
|
26
|
+
|
|
27
|
+
## 使用方式
|
|
28
|
+
|
|
29
|
+
先完成 Local、Browser 和上游 shared facts 配置,再由 Platform Host 或 Agent Gateway 通过公开 Contract 调用。
|
|
30
|
+
|
|
31
|
+
## 职责边界与限制
|
|
32
|
+
|
|
33
|
+
不拥有 Task 状态、不让 Browser 成为第二个 durable runtime,也不把模型判断当成执行成功证据。
|
|
34
|
+
|
|
35
|
+
## 术语
|
|
36
|
+
|
|
37
|
+
- Executor(执行器):实现某类真实 Effect 的受控端口。
|
|
38
|
+
- Idempotency(幂等性):相同请求重试不会重复产生不可控副作用。
|
|
39
|
+
- Recovery(恢复):在中断或结果不确定后重新观察并安全继续。
|
package/SETUP.md
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
# @tomflow/proflow-execution-runtime — Module Setup
|
|
2
2
|
|
|
3
|
-
## STEP-EXECUTION-RUNTIME-01 —
|
|
3
|
+
## STEP-EXECUTION-RUNTIME-01 — 准备平台主服务
|
|
4
4
|
|
|
5
5
|
Responsible: AI
|
|
6
|
-
Interactive executable: `platform setup --module
|
|
7
|
-
Non-interactive executable: `platform setup --module
|
|
6
|
+
Interactive executable: `platform setup --module platform-host`
|
|
7
|
+
Non-interactive executable: `platform setup --module platform-host`
|
|
8
8
|
Required inputs: none
|
|
9
9
|
Verify: `platform status`
|
|
10
|
-
Success condition: `
|
|
10
|
+
Success condition: `platform-host.setupStatus=READY`.
|
|
11
|
+
|
|
12
|
+
## STEP-EXECUTION-RUNTIME-02 — 准备模型运行时
|
|
13
|
+
|
|
14
|
+
Responsible: AI
|
|
15
|
+
Interactive executable: `platform setup --module model-runtime`
|
|
16
|
+
Non-interactive executable: `platform setup --module model-runtime`
|
|
17
|
+
Required inputs: configured FAST and REASON models
|
|
18
|
+
Verify: `platform status`
|
|
19
|
+
Success condition: `model-runtime.setupStatus=READY`.
|
|
20
|
+
|
|
21
|
+
## STEP-EXECUTION-RUNTIME-03 — 准备浏览器执行器
|
|
22
|
+
|
|
23
|
+
Responsible: USER
|
|
24
|
+
Interactive executable: `platform setup --module execution-browser-extension`
|
|
25
|
+
Non-interactive executable: `platform setup --module execution-browser-extension`
|
|
26
|
+
Required inputs: loaded Chrome Extension ID
|
|
27
|
+
Verify: `platform status`
|
|
28
|
+
Success condition: `execution-browser-extension.setupStatus=READY`.
|
|
@@ -6,7 +6,7 @@ export declare const behaviorAdapter: {
|
|
|
6
6
|
ok: true;
|
|
7
7
|
status: "SUCCEEDED";
|
|
8
8
|
moduleRef: "execution-runtime";
|
|
9
|
-
moduleVersion: "0.1.
|
|
9
|
+
moduleVersion: "0.1.13";
|
|
10
10
|
data: {
|
|
11
11
|
endpoint: string;
|
|
12
12
|
transportCredentialFile: string;
|
|
@@ -23,7 +23,7 @@ export declare const behaviorAdapter: {
|
|
|
23
23
|
readonly ok: true;
|
|
24
24
|
readonly status: "SUCCEEDED";
|
|
25
25
|
readonly moduleRef: "execution-runtime";
|
|
26
|
-
readonly moduleVersion: "0.1.
|
|
26
|
+
readonly moduleVersion: "0.1.13";
|
|
27
27
|
};
|
|
28
28
|
observedEffects: ("Persists execution state, output references and evidence in WAL SQLite" | "Runs the single backend Execution Runtime service")[];
|
|
29
29
|
}>;
|
|
@@ -33,10 +33,17 @@ export declare const behaviorAdapter: {
|
|
|
33
33
|
ok: true;
|
|
34
34
|
status: "SUCCEEDED";
|
|
35
35
|
moduleRef: "execution-runtime";
|
|
36
|
-
moduleVersion: "0.1.
|
|
36
|
+
moduleVersion: "0.1.13";
|
|
37
37
|
data: {
|
|
38
|
-
setupStatus: "
|
|
38
|
+
setupStatus: "BLOCKED" | "READY";
|
|
39
39
|
runtimeStatus: "RUNNING" | "STOPPED";
|
|
40
|
+
issues?: {
|
|
41
|
+
scope: "SETUP";
|
|
42
|
+
code: string;
|
|
43
|
+
message: string;
|
|
44
|
+
relatedModuleRefs: string[];
|
|
45
|
+
nextCommand: string;
|
|
46
|
+
}[];
|
|
40
47
|
};
|
|
41
48
|
};
|
|
42
49
|
observedEffects: never[];
|
|
@@ -47,11 +54,11 @@ export declare const behaviorAdapter: {
|
|
|
47
54
|
readonly ok: true;
|
|
48
55
|
readonly status: "SUCCEEDED";
|
|
49
56
|
readonly moduleRef: "execution-runtime";
|
|
50
|
-
readonly moduleVersion: "0.1.
|
|
57
|
+
readonly moduleVersion: "0.1.13";
|
|
51
58
|
} | {
|
|
52
59
|
contract: "deployment.result.v1";
|
|
53
60
|
moduleRef: "execution-runtime";
|
|
54
|
-
moduleVersion: "0.1.
|
|
61
|
+
moduleVersion: "0.1.13";
|
|
55
62
|
ok: false;
|
|
56
63
|
status: "FAILED";
|
|
57
64
|
error: {
|
|
@@ -62,17 +69,45 @@ export declare const behaviorAdapter: {
|
|
|
62
69
|
data: {
|
|
63
70
|
readonly steps: readonly [{
|
|
64
71
|
readonly id: "STEP-EXECUTION-RUNTIME-01";
|
|
65
|
-
readonly title: "
|
|
72
|
+
readonly title: "等待 Platform Host";
|
|
66
73
|
readonly state: "BLOCKED";
|
|
67
74
|
readonly responsible: "EXTERNAL";
|
|
68
75
|
readonly execution: {
|
|
69
|
-
readonly interactive: "platform setup --module
|
|
70
|
-
readonly nonInteractive: "platform setup --module
|
|
76
|
+
readonly interactive: "platform setup --module platform-host";
|
|
77
|
+
readonly nonInteractive: "platform setup --module platform-host";
|
|
71
78
|
};
|
|
72
79
|
readonly requiredInputs: readonly [];
|
|
73
80
|
readonly verify: "platform status";
|
|
74
81
|
readonly successCondition: "配置状态变为“已就绪”";
|
|
75
|
-
readonly blockedReason: "
|
|
82
|
+
readonly blockedReason: "platform-host 尚未发布 endpoint 与 identityTokenFile";
|
|
83
|
+
}, {
|
|
84
|
+
readonly id: "STEP-EXECUTION-RUNTIME-02";
|
|
85
|
+
readonly title: "等待 Model Runtime";
|
|
86
|
+
readonly description: "Execution 的模型决策入口尚不可用。";
|
|
87
|
+
readonly state: "BLOCKED";
|
|
88
|
+
readonly responsible: "EXTERNAL";
|
|
89
|
+
readonly execution: {
|
|
90
|
+
readonly interactive: "platform setup --module model-runtime";
|
|
91
|
+
readonly nonInteractive: "platform setup --module model-runtime";
|
|
92
|
+
};
|
|
93
|
+
readonly requiredInputs: readonly [];
|
|
94
|
+
readonly verify: "platform status";
|
|
95
|
+
readonly successCondition: "model-runtime 已发布 endpoint 与 transportCredentialFile";
|
|
96
|
+
readonly blockedReason: "model-runtime 尚未就绪";
|
|
97
|
+
}, {
|
|
98
|
+
readonly id: "STEP-EXECUTION-RUNTIME-03";
|
|
99
|
+
readonly title: "等待 Browser Executor";
|
|
100
|
+
readonly description: "Browser Effect 配置尚不可用。";
|
|
101
|
+
readonly state: "BLOCKED";
|
|
102
|
+
readonly responsible: "EXTERNAL";
|
|
103
|
+
readonly execution: {
|
|
104
|
+
readonly interactive: "platform setup --module execution-browser-extension";
|
|
105
|
+
readonly nonInteractive: "platform setup --module execution-browser-extension";
|
|
106
|
+
};
|
|
107
|
+
readonly requiredInputs: readonly [];
|
|
108
|
+
readonly verify: "platform status";
|
|
109
|
+
readonly successCondition: "execution-browser-extension 已发布 browserExecutorConfigPath";
|
|
110
|
+
readonly blockedReason: "execution-browser-extension 尚未就绪";
|
|
76
111
|
}];
|
|
77
112
|
};
|
|
78
113
|
};
|
|
@@ -84,7 +119,7 @@ export declare const behaviorAdapter: {
|
|
|
84
119
|
ok: true;
|
|
85
120
|
status: "SUCCEEDED";
|
|
86
121
|
moduleRef: "execution-runtime";
|
|
87
|
-
moduleVersion: "0.1.
|
|
122
|
+
moduleVersion: "0.1.13";
|
|
88
123
|
data: {
|
|
89
124
|
docs: string;
|
|
90
125
|
};
|
|
@@ -97,7 +132,7 @@ export declare const behaviorAdapter: {
|
|
|
97
132
|
ok: true;
|
|
98
133
|
status: "SUCCEEDED";
|
|
99
134
|
moduleRef: "execution-runtime";
|
|
100
|
-
moduleVersion: "0.1.
|
|
135
|
+
moduleVersion: "0.1.13";
|
|
101
136
|
data: unknown;
|
|
102
137
|
};
|
|
103
138
|
observedEffects: ("Persists execution state, output references and evidence in WAL SQLite" | "Runs the single backend Execution Runtime service")[];
|
|
@@ -105,7 +140,7 @@ export declare const behaviorAdapter: {
|
|
|
105
140
|
result: {
|
|
106
141
|
contract: "deployment.result.v1";
|
|
107
142
|
moduleRef: "execution-runtime";
|
|
108
|
-
moduleVersion: "0.1.
|
|
143
|
+
moduleVersion: "0.1.13";
|
|
109
144
|
ok: false;
|
|
110
145
|
status: "FAILED";
|
|
111
146
|
error: {
|
|
@@ -122,7 +157,7 @@ export declare const behaviorAdapter: {
|
|
|
122
157
|
readonly ok: true;
|
|
123
158
|
readonly status: "SUCCEEDED";
|
|
124
159
|
readonly moduleRef: "execution-runtime";
|
|
125
|
-
readonly moduleVersion: "0.1.
|
|
160
|
+
readonly moduleVersion: "0.1.13";
|
|
126
161
|
};
|
|
127
162
|
observedEffects: ("Persists execution state, output references and evidence in WAL SQLite" | "Runs the single backend Execution Runtime service")[];
|
|
128
163
|
} | {
|
|
@@ -131,11 +166,11 @@ export declare const behaviorAdapter: {
|
|
|
131
166
|
readonly ok: true;
|
|
132
167
|
readonly status: "SUCCEEDED";
|
|
133
168
|
readonly moduleRef: "execution-runtime";
|
|
134
|
-
readonly moduleVersion: "0.1.
|
|
169
|
+
readonly moduleVersion: "0.1.13";
|
|
135
170
|
} | {
|
|
136
171
|
contract: "deployment.result.v1";
|
|
137
172
|
moduleRef: "execution-runtime";
|
|
138
|
-
moduleVersion: "0.1.
|
|
173
|
+
moduleVersion: "0.1.13";
|
|
139
174
|
ok: false;
|
|
140
175
|
status: "FAILED";
|
|
141
176
|
error: {
|
|
@@ -15,17 +15,47 @@ const blockedSetupPlan = {
|
|
|
15
15
|
steps: [
|
|
16
16
|
{
|
|
17
17
|
id: "STEP-EXECUTION-RUNTIME-01",
|
|
18
|
-
title: "
|
|
18
|
+
title: "等待 Platform Host",
|
|
19
19
|
state: "BLOCKED",
|
|
20
20
|
responsible: "EXTERNAL",
|
|
21
21
|
execution: {
|
|
22
|
-
interactive: "platform setup --module
|
|
23
|
-
nonInteractive: "platform setup --module
|
|
22
|
+
interactive: "platform setup --module platform-host",
|
|
23
|
+
nonInteractive: "platform setup --module platform-host",
|
|
24
24
|
},
|
|
25
25
|
requiredInputs: [],
|
|
26
26
|
verify: "platform status",
|
|
27
27
|
successCondition: "配置状态变为“已就绪”",
|
|
28
|
-
blockedReason: "
|
|
28
|
+
blockedReason: "platform-host 尚未发布 endpoint 与 identityTokenFile",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "STEP-EXECUTION-RUNTIME-02",
|
|
32
|
+
title: "等待 Model Runtime",
|
|
33
|
+
description: "Execution 的模型决策入口尚不可用。",
|
|
34
|
+
state: "BLOCKED",
|
|
35
|
+
responsible: "EXTERNAL",
|
|
36
|
+
execution: {
|
|
37
|
+
interactive: "platform setup --module model-runtime",
|
|
38
|
+
nonInteractive: "platform setup --module model-runtime",
|
|
39
|
+
},
|
|
40
|
+
requiredInputs: [],
|
|
41
|
+
verify: "platform status",
|
|
42
|
+
successCondition: "model-runtime 已发布 endpoint 与 transportCredentialFile",
|
|
43
|
+
blockedReason: "model-runtime 尚未就绪",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "STEP-EXECUTION-RUNTIME-03",
|
|
47
|
+
title: "等待 Browser Executor",
|
|
48
|
+
description: "Browser Effect 配置尚不可用。",
|
|
49
|
+
state: "BLOCKED",
|
|
50
|
+
responsible: "EXTERNAL",
|
|
51
|
+
execution: {
|
|
52
|
+
interactive: "platform setup --module execution-browser-extension",
|
|
53
|
+
nonInteractive: "platform setup --module execution-browser-extension",
|
|
54
|
+
},
|
|
55
|
+
requiredInputs: [],
|
|
56
|
+
verify: "platform status",
|
|
57
|
+
successCondition: "execution-browser-extension 已发布 browserExecutorConfigPath",
|
|
58
|
+
blockedReason: "execution-browser-extension 尚未就绪",
|
|
29
59
|
},
|
|
30
60
|
],
|
|
31
61
|
};
|
|
@@ -143,20 +173,38 @@ export const behaviorAdapter = {
|
|
|
143
173
|
: [],
|
|
144
174
|
};
|
|
145
175
|
},
|
|
146
|
-
status: async (context) =>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
: "
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
176
|
+
status: async (context) => {
|
|
177
|
+
const ready = await dependencies(context);
|
|
178
|
+
return {
|
|
179
|
+
result: {
|
|
180
|
+
...base,
|
|
181
|
+
data: {
|
|
182
|
+
setupStatus: ready ? "READY" : "BLOCKED",
|
|
183
|
+
runtimeStatus: (await running(context))
|
|
184
|
+
? "RUNNING"
|
|
185
|
+
: "STOPPED",
|
|
186
|
+
...(ready
|
|
187
|
+
? {}
|
|
188
|
+
: {
|
|
189
|
+
issues: [
|
|
190
|
+
{
|
|
191
|
+
scope: "SETUP",
|
|
192
|
+
code: "UPSTREAM_NOT_READY",
|
|
193
|
+
message: "等待 platform-host、model-runtime 与 execution-browser-extension 发布运行所需信息",
|
|
194
|
+
relatedModuleRefs: [
|
|
195
|
+
"platform-host",
|
|
196
|
+
"model-runtime",
|
|
197
|
+
"execution-browser-extension",
|
|
198
|
+
],
|
|
199
|
+
nextCommand: "platform setup --module model-runtime",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
}),
|
|
203
|
+
},
|
|
156
204
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
205
|
+
observedEffects: [],
|
|
206
|
+
};
|
|
207
|
+
},
|
|
160
208
|
setup: async (context) => ({
|
|
161
209
|
result: (await dependencies(context))
|
|
162
210
|
? base
|
|
@@ -3,7 +3,7 @@ export declare const descriptor: {
|
|
|
3
3
|
readonly contractVersion: "1.0.0";
|
|
4
4
|
readonly moduleRef: "execution-runtime";
|
|
5
5
|
readonly packageName: "@tomflow/proflow-execution-runtime";
|
|
6
|
-
readonly moduleVersion: "0.1.
|
|
6
|
+
readonly moduleVersion: "0.1.13";
|
|
7
7
|
readonly kind: "service";
|
|
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-runtime",
|
|
5
5
|
packageName: "@tomflow/proflow-execution-runtime",
|
|
6
|
-
moduleVersion: "0.1.
|
|
6
|
+
moduleVersion: "0.1.13",
|
|
7
7
|
kind: "service",
|
|
8
8
|
templateVersion: "1.0.0",
|
|
9
9
|
platformCompatibility: ">=1.0.0 <2.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/proflow-execution-runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"SETUP.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tomflow/proflow-execution-browser-extension": "^0.1.
|
|
28
|
-
"@tomflow/proflow-execution-contracts": "^0.1.
|
|
29
|
-
"@tomflow/proflow-
|
|
30
|
-
"@tomflow/proflow-
|
|
31
|
-
"@tomflow/proflow-
|
|
27
|
+
"@tomflow/proflow-execution-browser-extension": "^0.1.12",
|
|
28
|
+
"@tomflow/proflow-execution-contracts": "^0.1.9",
|
|
29
|
+
"@tomflow/proflow-execution-local": "^0.1.11",
|
|
30
|
+
"@tomflow/proflow-model-contracts": "^0.1.9",
|
|
31
|
+
"@tomflow/proflow-module-contract": "^0.1.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tomflow/proflow-deployment-conformance": "^0.1.
|
|
34
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.10"
|
|
35
35
|
},
|
|
36
36
|
"description": "Durable, policy-controlled Execution Core orchestration over SQLite and controlled executor ports.",
|
|
37
37
|
"keywords": [
|
package/proflow.module.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"contractVersion": "1.0.0",
|
|
4
4
|
"moduleRef": "execution-runtime",
|
|
5
5
|
"packageName": "@tomflow/proflow-execution-runtime",
|
|
6
|
-
"moduleVersion": "0.1.
|
|
6
|
+
"moduleVersion": "0.1.13",
|
|
7
7
|
"kind": "service",
|
|
8
8
|
"templateVersion": "1.0.0",
|
|
9
9
|
"platformCompatibility": ">=1.0.0 <2.0.0",
|