@tomflow/proflow-execution-runtime 0.1.10 → 0.1.12

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,17 @@
1
1
  # @tomflow/proflow-execution-runtime
2
2
 
3
+ ## 0.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Upgrade the ProFlow terminal experience, stream Registry and package-manager progress, publish structured Chinese Module documentation, and provide numbered package-owned Setup assistants.
8
+
9
+ ## 0.1.11
10
+
11
+ ### Patch Changes
12
+
13
+ - Improve terminal progress and localized status output, publish readable Chinese module docs, and add guided setup assistants for external resources.
14
+
3
15
  ## 0.1.10
4
16
 
5
17
  ### Patch Changes
package/DOCS.md CHANGED
@@ -1,27 +1,39 @@
1
- # @tomflow/proflow-execution-runtime — Module Docs
1
+ # execution-runtime — 执行服务
2
2
 
3
- Module ref: `execution-runtime`
4
- Domain: `execution`
5
- Kind: `service`
3
+ ## 模块定位与作用
6
4
 
7
- Durable, policy-controlled Execution Core orchestration over SQLite and controlled executor ports.
5
+ 接收标准 Execution Intent,选择 Local 或 Browser Executor,管理执行、恢复和 Evidence,并向其他领域提供唯一真实副作用入口。
8
6
 
9
- ## Standard management surface
7
+ ## 主要能力
10
8
 
11
- `install / uninstall / status / setup / docs / start / stop`
9
+ - 校验 Intent、权限、幂等键和执行状态。
10
+ - 路由本地与浏览器执行能力,统一结果与失败恢复。
11
+ - 持久化执行记录和 Evidence,提供认证的本地服务接口。
12
12
 
13
- ## Provides
13
+ ## 提供的 API 与 Public Contract
14
14
 
15
- - `execution` `1.0.0`
15
+ - 提供 `execution` Contract,版本 `1.0.0`。
16
+ - 对外提供请求执行、查询结果和读取证据的应用接口。
16
17
 
17
- ## Requires
18
+ ## 依赖的 Module、Contract 和外部资源
18
19
 
19
- - `execution-local` `>=1.0.0 <2.0.0`
20
+ - 依赖 `execution-local`,兼容版本 `>=1.0.0 <2.0.0`。
21
+ - Browser Effect 还需要 execution-browser-extension 发布的 Executor shared fact。
20
22
 
21
- ## Public setup inputs
23
+ ## 运行形态与生命周期
22
24
 
23
- - None. Deterministic/private values and cross-Module shared facts are not public configuration.
25
+ 类型为 Service,配置 READY 后由 `platform start` 启动独立认证进程。
24
26
 
25
- ## Ownership boundary
27
+ ## 使用方式
26
28
 
27
- Module business APIs and any module-specific extra commands remain package-owned. Platform does not proxy or interpret them. Current human/external preparation is documented in `SETUP.md`.
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 execution-runtime`
7
- Non-interactive executable: `platform setup --module execution-runtime`
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: `execution-runtime.setupStatus=READY`.
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.10";
9
+ moduleVersion: "0.1.12";
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.10";
26
+ readonly moduleVersion: "0.1.12";
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,7 +33,7 @@ export declare const behaviorAdapter: {
33
33
  ok: true;
34
34
  status: "SUCCEEDED";
35
35
  moduleRef: "execution-runtime";
36
- moduleVersion: "0.1.10";
36
+ moduleVersion: "0.1.12";
37
37
  data: {
38
38
  setupStatus: "FAILED" | "READY";
39
39
  runtimeStatus: "RUNNING" | "STOPPED";
@@ -47,11 +47,11 @@ export declare const behaviorAdapter: {
47
47
  readonly ok: true;
48
48
  readonly status: "SUCCEEDED";
49
49
  readonly moduleRef: "execution-runtime";
50
- readonly moduleVersion: "0.1.10";
50
+ readonly moduleVersion: "0.1.12";
51
51
  } | {
52
52
  contract: "deployment.result.v1";
53
53
  moduleRef: "execution-runtime";
54
- moduleVersion: "0.1.10";
54
+ moduleVersion: "0.1.12";
55
55
  ok: false;
56
56
  status: "FAILED";
57
57
  error: {
@@ -62,17 +62,45 @@ export declare const behaviorAdapter: {
62
62
  data: {
63
63
  readonly steps: readonly [{
64
64
  readonly id: "STEP-EXECUTION-RUNTIME-01";
65
- readonly title: "等待上游服务信息";
65
+ readonly title: "等待 Platform Host";
66
66
  readonly state: "BLOCKED";
67
67
  readonly responsible: "EXTERNAL";
68
68
  readonly execution: {
69
- readonly interactive: "platform setup --module execution-runtime";
70
- readonly nonInteractive: "platform setup --module execution-runtime";
69
+ readonly interactive: "platform setup --module platform-host";
70
+ readonly nonInteractive: "platform setup --module platform-host";
71
71
  };
72
72
  readonly requiredInputs: readonly [];
73
73
  readonly verify: "platform status";
74
74
  readonly successCondition: "配置状态变为“已就绪”";
75
- readonly blockedReason: "Platform Host、Model Runtime 或 Browser Executor 尚未就绪";
75
+ readonly blockedReason: "platform-host 尚未发布 endpoint 与 identityTokenFile";
76
+ }, {
77
+ readonly id: "STEP-EXECUTION-RUNTIME-02";
78
+ readonly title: "等待 Model Runtime";
79
+ readonly description: "Execution 的模型决策入口尚不可用。";
80
+ readonly state: "BLOCKED";
81
+ readonly responsible: "EXTERNAL";
82
+ readonly execution: {
83
+ readonly interactive: "platform setup --module model-runtime";
84
+ readonly nonInteractive: "platform setup --module model-runtime";
85
+ };
86
+ readonly requiredInputs: readonly [];
87
+ readonly verify: "platform status";
88
+ readonly successCondition: "model-runtime 已发布 endpoint 与 transportCredentialFile";
89
+ readonly blockedReason: "model-runtime 尚未就绪";
90
+ }, {
91
+ readonly id: "STEP-EXECUTION-RUNTIME-03";
92
+ readonly title: "等待 Browser Executor";
93
+ readonly description: "Browser Effect 配置尚不可用。";
94
+ readonly state: "BLOCKED";
95
+ readonly responsible: "EXTERNAL";
96
+ readonly execution: {
97
+ readonly interactive: "platform setup --module execution-browser-extension";
98
+ readonly nonInteractive: "platform setup --module execution-browser-extension";
99
+ };
100
+ readonly requiredInputs: readonly [];
101
+ readonly verify: "platform status";
102
+ readonly successCondition: "execution-browser-extension 已发布 browserExecutorConfigPath";
103
+ readonly blockedReason: "execution-browser-extension 尚未就绪";
76
104
  }];
77
105
  };
78
106
  };
@@ -84,7 +112,7 @@ export declare const behaviorAdapter: {
84
112
  ok: true;
85
113
  status: "SUCCEEDED";
86
114
  moduleRef: "execution-runtime";
87
- moduleVersion: "0.1.10";
115
+ moduleVersion: "0.1.12";
88
116
  data: {
89
117
  docs: string;
90
118
  };
@@ -97,7 +125,7 @@ export declare const behaviorAdapter: {
97
125
  ok: true;
98
126
  status: "SUCCEEDED";
99
127
  moduleRef: "execution-runtime";
100
- moduleVersion: "0.1.10";
128
+ moduleVersion: "0.1.12";
101
129
  data: unknown;
102
130
  };
103
131
  observedEffects: ("Persists execution state, output references and evidence in WAL SQLite" | "Runs the single backend Execution Runtime service")[];
@@ -105,7 +133,7 @@ export declare const behaviorAdapter: {
105
133
  result: {
106
134
  contract: "deployment.result.v1";
107
135
  moduleRef: "execution-runtime";
108
- moduleVersion: "0.1.10";
136
+ moduleVersion: "0.1.12";
109
137
  ok: false;
110
138
  status: "FAILED";
111
139
  error: {
@@ -122,7 +150,7 @@ export declare const behaviorAdapter: {
122
150
  readonly ok: true;
123
151
  readonly status: "SUCCEEDED";
124
152
  readonly moduleRef: "execution-runtime";
125
- readonly moduleVersion: "0.1.10";
153
+ readonly moduleVersion: "0.1.12";
126
154
  };
127
155
  observedEffects: ("Persists execution state, output references and evidence in WAL SQLite" | "Runs the single backend Execution Runtime service")[];
128
156
  } | {
@@ -131,11 +159,11 @@ export declare const behaviorAdapter: {
131
159
  readonly ok: true;
132
160
  readonly status: "SUCCEEDED";
133
161
  readonly moduleRef: "execution-runtime";
134
- readonly moduleVersion: "0.1.10";
162
+ readonly moduleVersion: "0.1.12";
135
163
  } | {
136
164
  contract: "deployment.result.v1";
137
165
  moduleRef: "execution-runtime";
138
- moduleVersion: "0.1.10";
166
+ moduleVersion: "0.1.12";
139
167
  ok: false;
140
168
  status: "FAILED";
141
169
  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 execution-runtime",
23
- nonInteractive: "platform setup --module execution-runtime",
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: "Platform Host、Model Runtime 或 Browser Executor 尚未就绪",
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
  };
@@ -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.10";
6
+ readonly moduleVersion: "0.1.12";
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.10",
6
+ moduleVersion: "0.1.12",
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.10",
3
+ "version": "0.1.12",
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.8",
28
- "@tomflow/proflow-execution-local": "^0.1.8",
29
- "@tomflow/proflow-module-contract": "^0.1.9",
30
- "@tomflow/proflow-model-contracts": "^0.1.7",
31
- "@tomflow/proflow-execution-contracts": "^0.1.7"
27
+ "@tomflow/proflow-execution-browser-extension": "^0.1.11",
28
+ "@tomflow/proflow-execution-contracts": "^0.1.9",
29
+ "@tomflow/proflow-module-contract": "^0.1.11",
30
+ "@tomflow/proflow-model-contracts": "^0.1.9",
31
+ "@tomflow/proflow-execution-local": "^0.1.10"
32
32
  },
33
33
  "devDependencies": {
34
- "@tomflow/proflow-deployment-conformance": "^0.1.7"
34
+ "@tomflow/proflow-deployment-conformance": "^0.1.9"
35
35
  },
36
36
  "description": "Durable, policy-controlled Execution Core orchestration over SQLite and controlled executor ports.",
37
37
  "keywords": [
@@ -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.10",
6
+ "moduleVersion": "0.1.12",
7
7
  "kind": "service",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",