@tomflow/proflow-execution-runtime 0.1.8 → 0.1.9
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/SETUP.md +7 -11
- package/dist/deployment/adapter.d.ts +27 -12
- package/dist/deployment/adapter.js +29 -2
- 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,11 @@
|
|
|
1
1
|
# @tomflow/proflow-execution-runtime
|
|
2
2
|
|
|
3
|
+
## 0.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Replace JSON terminal protocols with typed CLI outcomes, add real-time Chinese progress and lifecycle summaries, publish DOCS content, standardize executable setup plans and package-owned setup commands, and preserve only user-owned pnpm policy during uninstall.
|
|
8
|
+
|
|
3
9
|
## 0.1.8
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/SETUP.md
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
# @tomflow/proflow-execution-runtime — Module Setup
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
Reach `setupStatus=READY` with zero user configuration.
|
|
3
|
+
## STEP-EXECUTION-RUNTIME-01 — 完成模块自动配置
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
**Type:** automatic verification
|
|
13
|
-
**Executable:** `platform status --workspace <workspace>`
|
|
14
|
-
**Success condition:** `execution-runtime.setupStatus=READY`. If a producer is not ready, the full `platform setup` result must expose that producer's own setup action or machine failure.
|
|
5
|
+
Responsible: AI
|
|
6
|
+
Interactive executable: `platform setup --module execution-runtime`
|
|
7
|
+
Non-interactive executable: `platform setup --module execution-runtime`
|
|
8
|
+
Required inputs: none
|
|
9
|
+
Verify: `platform status`
|
|
10
|
+
Success condition: `execution-runtime.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.9";
|
|
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.9";
|
|
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.
|
|
36
|
+
moduleVersion: "0.1.9";
|
|
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.
|
|
50
|
+
readonly moduleVersion: "0.1.9";
|
|
51
51
|
} | {
|
|
52
52
|
contract: "deployment.result.v1";
|
|
53
53
|
moduleRef: "execution-runtime";
|
|
54
|
-
moduleVersion: "0.1.
|
|
54
|
+
moduleVersion: "0.1.9";
|
|
55
55
|
ok: false;
|
|
56
56
|
status: "FAILED";
|
|
57
57
|
error: {
|
|
@@ -59,6 +59,22 @@ export declare const behaviorAdapter: {
|
|
|
59
59
|
message: string;
|
|
60
60
|
retryable: boolean;
|
|
61
61
|
};
|
|
62
|
+
data: {
|
|
63
|
+
readonly steps: readonly [{
|
|
64
|
+
readonly id: "STEP-EXECUTION-RUNTIME-01";
|
|
65
|
+
readonly title: "等待上游服务信息";
|
|
66
|
+
readonly state: "BLOCKED";
|
|
67
|
+
readonly responsible: "EXTERNAL";
|
|
68
|
+
readonly execution: {
|
|
69
|
+
readonly interactive: "platform setup --module execution-runtime";
|
|
70
|
+
readonly nonInteractive: "platform setup --module execution-runtime";
|
|
71
|
+
};
|
|
72
|
+
readonly requiredInputs: readonly [];
|
|
73
|
+
readonly verify: "platform status";
|
|
74
|
+
readonly successCondition: "配置状态变为“已就绪”";
|
|
75
|
+
readonly blockedReason: "Platform Host、Model Runtime 或 Browser Executor 尚未就绪";
|
|
76
|
+
}];
|
|
77
|
+
};
|
|
62
78
|
};
|
|
63
79
|
observedEffects: never[];
|
|
64
80
|
}>;
|
|
@@ -68,10 +84,9 @@ export declare const behaviorAdapter: {
|
|
|
68
84
|
ok: true;
|
|
69
85
|
status: "SUCCEEDED";
|
|
70
86
|
moduleRef: "execution-runtime";
|
|
71
|
-
moduleVersion: "0.1.
|
|
87
|
+
moduleVersion: "0.1.9";
|
|
72
88
|
data: {
|
|
73
89
|
docs: string;
|
|
74
|
-
setup: string;
|
|
75
90
|
};
|
|
76
91
|
};
|
|
77
92
|
observedEffects: never[];
|
|
@@ -82,7 +97,7 @@ export declare const behaviorAdapter: {
|
|
|
82
97
|
ok: true;
|
|
83
98
|
status: "SUCCEEDED";
|
|
84
99
|
moduleRef: "execution-runtime";
|
|
85
|
-
moduleVersion: "0.1.
|
|
100
|
+
moduleVersion: "0.1.9";
|
|
86
101
|
data: unknown;
|
|
87
102
|
};
|
|
88
103
|
observedEffects: ("Persists execution state, output references and evidence in WAL SQLite" | "Runs the single backend Execution Runtime service")[];
|
|
@@ -90,7 +105,7 @@ export declare const behaviorAdapter: {
|
|
|
90
105
|
result: {
|
|
91
106
|
contract: "deployment.result.v1";
|
|
92
107
|
moduleRef: "execution-runtime";
|
|
93
|
-
moduleVersion: "0.1.
|
|
108
|
+
moduleVersion: "0.1.9";
|
|
94
109
|
ok: false;
|
|
95
110
|
status: "FAILED";
|
|
96
111
|
error: {
|
|
@@ -107,7 +122,7 @@ export declare const behaviorAdapter: {
|
|
|
107
122
|
readonly ok: true;
|
|
108
123
|
readonly status: "SUCCEEDED";
|
|
109
124
|
readonly moduleRef: "execution-runtime";
|
|
110
|
-
readonly moduleVersion: "0.1.
|
|
125
|
+
readonly moduleVersion: "0.1.9";
|
|
111
126
|
};
|
|
112
127
|
observedEffects: ("Persists execution state, output references and evidence in WAL SQLite" | "Runs the single backend Execution Runtime service")[];
|
|
113
128
|
} | {
|
|
@@ -116,11 +131,11 @@ export declare const behaviorAdapter: {
|
|
|
116
131
|
readonly ok: true;
|
|
117
132
|
readonly status: "SUCCEEDED";
|
|
118
133
|
readonly moduleRef: "execution-runtime";
|
|
119
|
-
readonly moduleVersion: "0.1.
|
|
134
|
+
readonly moduleVersion: "0.1.9";
|
|
120
135
|
} | {
|
|
121
136
|
contract: "deployment.result.v1";
|
|
122
137
|
moduleRef: "execution-runtime";
|
|
123
|
-
moduleVersion: "0.1.
|
|
138
|
+
moduleVersion: "0.1.9";
|
|
124
139
|
ok: false;
|
|
125
140
|
status: "FAILED";
|
|
126
141
|
error: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
1
2
|
import { mkdir, readFile } from "node:fs/promises";
|
|
2
3
|
import { join, resolve } from "node:path";
|
|
3
4
|
import { deterministicLoopbackPort, ensureModuleSecretFile, moduleWorkspaceStateDirectory, readModuleSharedFacts, writeModuleSharedFacts, } from "@tomflow/proflow-module-contract";
|
|
@@ -10,6 +11,24 @@ const base = {
|
|
|
10
11
|
moduleRef: descriptor.moduleRef,
|
|
11
12
|
moduleVersion: descriptor.moduleVersion,
|
|
12
13
|
};
|
|
14
|
+
const blockedSetupPlan = {
|
|
15
|
+
steps: [
|
|
16
|
+
{
|
|
17
|
+
id: "STEP-EXECUTION-RUNTIME-01",
|
|
18
|
+
title: "等待上游服务信息",
|
|
19
|
+
state: "BLOCKED",
|
|
20
|
+
responsible: "EXTERNAL",
|
|
21
|
+
execution: {
|
|
22
|
+
interactive: "platform setup --module execution-runtime",
|
|
23
|
+
nonInteractive: "platform setup --module execution-runtime",
|
|
24
|
+
},
|
|
25
|
+
requiredInputs: [],
|
|
26
|
+
verify: "platform status",
|
|
27
|
+
successCondition: "配置状态变为“已就绪”",
|
|
28
|
+
blockedReason: "Platform Host、Model Runtime 或 Browser Executor 尚未就绪",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
};
|
|
13
32
|
const key = (context) => resolve(context.workspaceRoot);
|
|
14
33
|
const factString = (facts, name) => (typeof facts?.[name] === "string" ? String(facts[name]) : undefined);
|
|
15
34
|
async function ownFacts(context) {
|
|
@@ -141,11 +160,19 @@ export const behaviorAdapter = {
|
|
|
141
160
|
setup: async (context) => ({
|
|
142
161
|
result: (await dependencies(context))
|
|
143
162
|
? base
|
|
144
|
-
:
|
|
163
|
+
: {
|
|
164
|
+
...failed("SETUP_FAILED", "required producer shared facts are unavailable"),
|
|
165
|
+
data: blockedSetupPlan,
|
|
166
|
+
},
|
|
145
167
|
observedEffects: [],
|
|
146
168
|
}),
|
|
147
169
|
docs: async (_context) => ({
|
|
148
|
-
result: {
|
|
170
|
+
result: {
|
|
171
|
+
...base,
|
|
172
|
+
data: {
|
|
173
|
+
docs: readFileSync(new URL("../DOCS.md", import.meta.url), "utf8"),
|
|
174
|
+
},
|
|
175
|
+
},
|
|
149
176
|
observedEffects: [],
|
|
150
177
|
}),
|
|
151
178
|
start: async (context) => {
|
|
@@ -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.9";
|
|
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.9",
|
|
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.9",
|
|
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-
|
|
28
|
-
"@tomflow/proflow-
|
|
29
|
-
"@tomflow/proflow-
|
|
30
|
-
"@tomflow/proflow-
|
|
31
|
-
"@tomflow/proflow-execution-
|
|
27
|
+
"@tomflow/proflow-model-contracts": "^0.1.6",
|
|
28
|
+
"@tomflow/proflow-module-contract": "^0.1.8",
|
|
29
|
+
"@tomflow/proflow-execution-contracts": "^0.1.6",
|
|
30
|
+
"@tomflow/proflow-execution-local": "^0.1.7",
|
|
31
|
+
"@tomflow/proflow-execution-browser-extension": "^0.1.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tomflow/proflow-deployment-conformance": "^0.1.
|
|
34
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.6"
|
|
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.9",
|
|
7
7
|
"kind": "service",
|
|
8
8
|
"templateVersion": "1.0.0",
|
|
9
9
|
"platformCompatibility": ">=1.0.0 <2.0.0",
|