@tomflow/proflow-platform-host 0.1.1 → 0.1.2
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/dist/deployment/adapter.d.ts +34 -34
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/dist/src/cli.js +8 -8
- package/package.json +12 -12
- package/proflow.module.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @tomflow/proflow-platform-host
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Close the Real-1 global Platform control-plane contract across every published ProFlow package. Platform CLI now owns one durable global Workspace binding with canonical identity, cross-process operation locking, cwd/`--workspace` install targeting, cross-directory instance commands, whole-instance uninstall/rebind, and deterministic npm/yarn/pnpm Workspace package-manager selection. Every package-owned install entry, including newly generated Module Template packages, delegates to the Shell-global `platform` command and fails closed when that global CLI is unavailable; Deployment Conformance and the formal test plans mechanically enforce the same rule across all 24 packages.
|
|
8
|
+
|
|
3
9
|
## 0.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
19
19
|
readonly ok: true;
|
|
20
20
|
readonly status: "SUCCEEDED";
|
|
21
21
|
readonly moduleRef: "platform-host";
|
|
22
|
-
readonly moduleVersion: "0.1.
|
|
22
|
+
readonly moduleVersion: "0.1.2";
|
|
23
23
|
};
|
|
24
24
|
observedEffects: never[];
|
|
25
25
|
};
|
|
@@ -29,7 +29,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
29
29
|
readonly ok: true;
|
|
30
30
|
readonly status: "SUCCEEDED";
|
|
31
31
|
readonly moduleRef: "platform-host";
|
|
32
|
-
readonly moduleVersion: "0.1.
|
|
32
|
+
readonly moduleVersion: "0.1.2";
|
|
33
33
|
};
|
|
34
34
|
observedEffects: never[];
|
|
35
35
|
};
|
|
@@ -37,7 +37,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
37
37
|
result: {
|
|
38
38
|
readonly contract: "deployment.result.v1";
|
|
39
39
|
readonly moduleRef: "platform-host";
|
|
40
|
-
readonly moduleVersion: "0.1.
|
|
40
|
+
readonly moduleVersion: "0.1.2";
|
|
41
41
|
readonly ok: false;
|
|
42
42
|
readonly status: "ACTION_REQUIRED";
|
|
43
43
|
readonly actionRequired: {
|
|
@@ -49,7 +49,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
49
49
|
ok: true;
|
|
50
50
|
status: "SUCCEEDED";
|
|
51
51
|
moduleRef: "platform-host";
|
|
52
|
-
moduleVersion: "0.1.
|
|
52
|
+
moduleVersion: "0.1.2";
|
|
53
53
|
data: {
|
|
54
54
|
readiness: "READY" | "NOT_READY";
|
|
55
55
|
} | undefined;
|
|
@@ -61,7 +61,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
61
61
|
} | {
|
|
62
62
|
contract: "deployment.result.v1";
|
|
63
63
|
moduleRef: "platform-host";
|
|
64
|
-
moduleVersion: "0.1.
|
|
64
|
+
moduleVersion: "0.1.2";
|
|
65
65
|
ok: false;
|
|
66
66
|
status: "ACTION_REQUIRED";
|
|
67
67
|
actionRequired: {
|
|
@@ -85,7 +85,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
85
85
|
ok: true;
|
|
86
86
|
status: "SUCCEEDED";
|
|
87
87
|
moduleRef: "platform-host";
|
|
88
|
-
moduleVersion: "0.1.
|
|
88
|
+
moduleVersion: "0.1.2";
|
|
89
89
|
checks: {
|
|
90
90
|
id: string;
|
|
91
91
|
status: "FAIL" | "PASS";
|
|
@@ -94,7 +94,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
94
94
|
} | {
|
|
95
95
|
contract: "deployment.result.v1";
|
|
96
96
|
moduleRef: "platform-host";
|
|
97
|
-
moduleVersion: "0.1.
|
|
97
|
+
moduleVersion: "0.1.2";
|
|
98
98
|
ok: false;
|
|
99
99
|
status: "ACTION_REQUIRED";
|
|
100
100
|
actionRequired: {
|
|
@@ -109,7 +109,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
109
109
|
} | {
|
|
110
110
|
contract: "deployment.result.v1";
|
|
111
111
|
moduleRef: "platform-host";
|
|
112
|
-
moduleVersion: "0.1.
|
|
112
|
+
moduleVersion: "0.1.2";
|
|
113
113
|
ok: false;
|
|
114
114
|
status: "ACTION_REQUIRED";
|
|
115
115
|
actionRequired: {
|
|
@@ -130,7 +130,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
130
130
|
readonly ok: true;
|
|
131
131
|
readonly status: "SUCCEEDED";
|
|
132
132
|
readonly moduleRef: "platform-host";
|
|
133
|
-
readonly moduleVersion: "0.1.
|
|
133
|
+
readonly moduleVersion: "0.1.2";
|
|
134
134
|
};
|
|
135
135
|
observedEffects: never[];
|
|
136
136
|
};
|
|
@@ -138,7 +138,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
138
138
|
result: {
|
|
139
139
|
readonly contract: "deployment.result.v1";
|
|
140
140
|
readonly moduleRef: "platform-host";
|
|
141
|
-
readonly moduleVersion: "0.1.
|
|
141
|
+
readonly moduleVersion: "0.1.2";
|
|
142
142
|
readonly ok: false;
|
|
143
143
|
readonly status: "ACTION_REQUIRED";
|
|
144
144
|
readonly actionRequired: {
|
|
@@ -150,7 +150,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
150
150
|
ok: true;
|
|
151
151
|
status: "SUCCEEDED";
|
|
152
152
|
moduleRef: "platform-host";
|
|
153
|
-
moduleVersion: "0.1.
|
|
153
|
+
moduleVersion: "0.1.2";
|
|
154
154
|
data: {
|
|
155
155
|
host: string;
|
|
156
156
|
port: number;
|
|
@@ -164,11 +164,11 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
164
164
|
readonly ok: true;
|
|
165
165
|
readonly status: "SUCCEEDED";
|
|
166
166
|
readonly moduleRef: "platform-host";
|
|
167
|
-
readonly moduleVersion: "0.1.
|
|
167
|
+
readonly moduleVersion: "0.1.2";
|
|
168
168
|
} | {
|
|
169
169
|
readonly contract: "deployment.result.v1";
|
|
170
170
|
readonly moduleRef: "platform-host";
|
|
171
|
-
readonly moduleVersion: "0.1.
|
|
171
|
+
readonly moduleVersion: "0.1.2";
|
|
172
172
|
readonly ok: false;
|
|
173
173
|
readonly status: "ACTION_REQUIRED";
|
|
174
174
|
readonly actionRequired: {
|
|
@@ -182,7 +182,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
182
182
|
result: {
|
|
183
183
|
readonly contract: "deployment.result.v1";
|
|
184
184
|
readonly moduleRef: "platform-host";
|
|
185
|
-
readonly moduleVersion: "0.1.
|
|
185
|
+
readonly moduleVersion: "0.1.2";
|
|
186
186
|
readonly ok: false;
|
|
187
187
|
readonly status: "ACTION_REQUIRED";
|
|
188
188
|
readonly actionRequired: {
|
|
@@ -194,7 +194,7 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
194
194
|
ok: true;
|
|
195
195
|
status: "SUCCEEDED";
|
|
196
196
|
moduleRef: "platform-host";
|
|
197
|
-
moduleVersion: "0.1.
|
|
197
|
+
moduleVersion: "0.1.2";
|
|
198
198
|
data: {
|
|
199
199
|
host: string;
|
|
200
200
|
port: number;
|
|
@@ -208,11 +208,11 @@ export declare function createBehaviorAdapter(service?: PlatformHostService): {
|
|
|
208
208
|
readonly ok: true;
|
|
209
209
|
readonly status: "SUCCEEDED";
|
|
210
210
|
readonly moduleRef: "platform-host";
|
|
211
|
-
readonly moduleVersion: "0.1.
|
|
211
|
+
readonly moduleVersion: "0.1.2";
|
|
212
212
|
} | {
|
|
213
213
|
readonly contract: "deployment.result.v1";
|
|
214
214
|
readonly moduleRef: "platform-host";
|
|
215
|
-
readonly moduleVersion: "0.1.
|
|
215
|
+
readonly moduleVersion: "0.1.2";
|
|
216
216
|
readonly ok: false;
|
|
217
217
|
readonly status: "ACTION_REQUIRED";
|
|
218
218
|
readonly actionRequired: {
|
|
@@ -230,7 +230,7 @@ export declare const behaviorAdapter: {
|
|
|
230
230
|
readonly ok: true;
|
|
231
231
|
readonly status: "SUCCEEDED";
|
|
232
232
|
readonly moduleRef: "platform-host";
|
|
233
|
-
readonly moduleVersion: "0.1.
|
|
233
|
+
readonly moduleVersion: "0.1.2";
|
|
234
234
|
};
|
|
235
235
|
observedEffects: never[];
|
|
236
236
|
};
|
|
@@ -240,7 +240,7 @@ export declare const behaviorAdapter: {
|
|
|
240
240
|
readonly ok: true;
|
|
241
241
|
readonly status: "SUCCEEDED";
|
|
242
242
|
readonly moduleRef: "platform-host";
|
|
243
|
-
readonly moduleVersion: "0.1.
|
|
243
|
+
readonly moduleVersion: "0.1.2";
|
|
244
244
|
};
|
|
245
245
|
observedEffects: never[];
|
|
246
246
|
};
|
|
@@ -248,7 +248,7 @@ export declare const behaviorAdapter: {
|
|
|
248
248
|
result: {
|
|
249
249
|
readonly contract: "deployment.result.v1";
|
|
250
250
|
readonly moduleRef: "platform-host";
|
|
251
|
-
readonly moduleVersion: "0.1.
|
|
251
|
+
readonly moduleVersion: "0.1.2";
|
|
252
252
|
readonly ok: false;
|
|
253
253
|
readonly status: "ACTION_REQUIRED";
|
|
254
254
|
readonly actionRequired: {
|
|
@@ -260,7 +260,7 @@ export declare const behaviorAdapter: {
|
|
|
260
260
|
ok: true;
|
|
261
261
|
status: "SUCCEEDED";
|
|
262
262
|
moduleRef: "platform-host";
|
|
263
|
-
moduleVersion: "0.1.
|
|
263
|
+
moduleVersion: "0.1.2";
|
|
264
264
|
data: {
|
|
265
265
|
readiness: "READY" | "NOT_READY";
|
|
266
266
|
} | undefined;
|
|
@@ -272,7 +272,7 @@ export declare const behaviorAdapter: {
|
|
|
272
272
|
} | {
|
|
273
273
|
contract: "deployment.result.v1";
|
|
274
274
|
moduleRef: "platform-host";
|
|
275
|
-
moduleVersion: "0.1.
|
|
275
|
+
moduleVersion: "0.1.2";
|
|
276
276
|
ok: false;
|
|
277
277
|
status: "ACTION_REQUIRED";
|
|
278
278
|
actionRequired: {
|
|
@@ -296,7 +296,7 @@ export declare const behaviorAdapter: {
|
|
|
296
296
|
ok: true;
|
|
297
297
|
status: "SUCCEEDED";
|
|
298
298
|
moduleRef: "platform-host";
|
|
299
|
-
moduleVersion: "0.1.
|
|
299
|
+
moduleVersion: "0.1.2";
|
|
300
300
|
checks: {
|
|
301
301
|
id: string;
|
|
302
302
|
status: "FAIL" | "PASS";
|
|
@@ -305,7 +305,7 @@ export declare const behaviorAdapter: {
|
|
|
305
305
|
} | {
|
|
306
306
|
contract: "deployment.result.v1";
|
|
307
307
|
moduleRef: "platform-host";
|
|
308
|
-
moduleVersion: "0.1.
|
|
308
|
+
moduleVersion: "0.1.2";
|
|
309
309
|
ok: false;
|
|
310
310
|
status: "ACTION_REQUIRED";
|
|
311
311
|
actionRequired: {
|
|
@@ -320,7 +320,7 @@ export declare const behaviorAdapter: {
|
|
|
320
320
|
} | {
|
|
321
321
|
contract: "deployment.result.v1";
|
|
322
322
|
moduleRef: "platform-host";
|
|
323
|
-
moduleVersion: "0.1.
|
|
323
|
+
moduleVersion: "0.1.2";
|
|
324
324
|
ok: false;
|
|
325
325
|
status: "ACTION_REQUIRED";
|
|
326
326
|
actionRequired: {
|
|
@@ -341,7 +341,7 @@ export declare const behaviorAdapter: {
|
|
|
341
341
|
readonly ok: true;
|
|
342
342
|
readonly status: "SUCCEEDED";
|
|
343
343
|
readonly moduleRef: "platform-host";
|
|
344
|
-
readonly moduleVersion: "0.1.
|
|
344
|
+
readonly moduleVersion: "0.1.2";
|
|
345
345
|
};
|
|
346
346
|
observedEffects: never[];
|
|
347
347
|
};
|
|
@@ -349,7 +349,7 @@ export declare const behaviorAdapter: {
|
|
|
349
349
|
result: {
|
|
350
350
|
readonly contract: "deployment.result.v1";
|
|
351
351
|
readonly moduleRef: "platform-host";
|
|
352
|
-
readonly moduleVersion: "0.1.
|
|
352
|
+
readonly moduleVersion: "0.1.2";
|
|
353
353
|
readonly ok: false;
|
|
354
354
|
readonly status: "ACTION_REQUIRED";
|
|
355
355
|
readonly actionRequired: {
|
|
@@ -361,7 +361,7 @@ export declare const behaviorAdapter: {
|
|
|
361
361
|
ok: true;
|
|
362
362
|
status: "SUCCEEDED";
|
|
363
363
|
moduleRef: "platform-host";
|
|
364
|
-
moduleVersion: "0.1.
|
|
364
|
+
moduleVersion: "0.1.2";
|
|
365
365
|
data: {
|
|
366
366
|
host: string;
|
|
367
367
|
port: number;
|
|
@@ -375,11 +375,11 @@ export declare const behaviorAdapter: {
|
|
|
375
375
|
readonly ok: true;
|
|
376
376
|
readonly status: "SUCCEEDED";
|
|
377
377
|
readonly moduleRef: "platform-host";
|
|
378
|
-
readonly moduleVersion: "0.1.
|
|
378
|
+
readonly moduleVersion: "0.1.2";
|
|
379
379
|
} | {
|
|
380
380
|
readonly contract: "deployment.result.v1";
|
|
381
381
|
readonly moduleRef: "platform-host";
|
|
382
|
-
readonly moduleVersion: "0.1.
|
|
382
|
+
readonly moduleVersion: "0.1.2";
|
|
383
383
|
readonly ok: false;
|
|
384
384
|
readonly status: "ACTION_REQUIRED";
|
|
385
385
|
readonly actionRequired: {
|
|
@@ -393,7 +393,7 @@ export declare const behaviorAdapter: {
|
|
|
393
393
|
result: {
|
|
394
394
|
readonly contract: "deployment.result.v1";
|
|
395
395
|
readonly moduleRef: "platform-host";
|
|
396
|
-
readonly moduleVersion: "0.1.
|
|
396
|
+
readonly moduleVersion: "0.1.2";
|
|
397
397
|
readonly ok: false;
|
|
398
398
|
readonly status: "ACTION_REQUIRED";
|
|
399
399
|
readonly actionRequired: {
|
|
@@ -405,7 +405,7 @@ export declare const behaviorAdapter: {
|
|
|
405
405
|
ok: true;
|
|
406
406
|
status: "SUCCEEDED";
|
|
407
407
|
moduleRef: "platform-host";
|
|
408
|
-
moduleVersion: "0.1.
|
|
408
|
+
moduleVersion: "0.1.2";
|
|
409
409
|
data: {
|
|
410
410
|
host: string;
|
|
411
411
|
port: number;
|
|
@@ -419,11 +419,11 @@ export declare const behaviorAdapter: {
|
|
|
419
419
|
readonly ok: true;
|
|
420
420
|
readonly status: "SUCCEEDED";
|
|
421
421
|
readonly moduleRef: "platform-host";
|
|
422
|
-
readonly moduleVersion: "0.1.
|
|
422
|
+
readonly moduleVersion: "0.1.2";
|
|
423
423
|
} | {
|
|
424
424
|
readonly contract: "deployment.result.v1";
|
|
425
425
|
readonly moduleRef: "platform-host";
|
|
426
|
-
readonly moduleVersion: "0.1.
|
|
426
|
+
readonly moduleVersion: "0.1.2";
|
|
427
427
|
readonly ok: false;
|
|
428
428
|
readonly status: "ACTION_REQUIRED";
|
|
429
429
|
readonly actionRequired: {
|
|
@@ -3,7 +3,7 @@ export declare const descriptor: {
|
|
|
3
3
|
readonly contractVersion: "1.0.0";
|
|
4
4
|
readonly moduleRef: "platform-host";
|
|
5
5
|
readonly packageName: "@tomflow/proflow-platform-host";
|
|
6
|
-
readonly moduleVersion: "0.1.
|
|
6
|
+
readonly moduleVersion: "0.1.2";
|
|
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: "platform-host",
|
|
5
5
|
packageName: "@tomflow/proflow-platform-host",
|
|
6
|
-
moduleVersion: "0.1.
|
|
6
|
+
moduleVersion: "0.1.2",
|
|
7
7
|
kind: "service",
|
|
8
8
|
templateVersion: "1.0.0",
|
|
9
9
|
platformCompatibility: ">=1.0.0 <2.0.0",
|
package/dist/src/cli.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { spawnSync } from "node:child_process";
|
|
3
3
|
import { createPlatformHost, loadPlatformHostConfig } from "./index.js";
|
|
4
4
|
function installSelf() {
|
|
5
|
-
const executable = process.platform === "win32" ? "
|
|
6
|
-
const result = spawnSync(executable, [
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (result.error)
|
|
5
|
+
const executable = process.platform === "win32" ? "platform.cmd" : "platform";
|
|
6
|
+
const result = spawnSync(executable, ["install", "@tomflow/proflow-platform-host", "--workspace", process.cwd()], { cwd: process.cwd(), env: process.env, stdio: "inherit" });
|
|
7
|
+
if (result.error) {
|
|
8
|
+
if (result.error.code === "ENOENT") {
|
|
9
|
+
process.stderr.write("GLOBAL_PLATFORM_CLI_REQUIRED: install @tomflow/proflow-platform-cli globally before package-owned install\n");
|
|
10
|
+
process.exit(127);
|
|
11
|
+
}
|
|
13
12
|
throw result.error;
|
|
13
|
+
}
|
|
14
14
|
process.exit(result.status ?? 1);
|
|
15
15
|
}
|
|
16
16
|
async function main() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/proflow-platform-host",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"zod": "4.1.12",
|
|
25
|
-
"@tomflow/proflow-agent-runtime": "^0.1.
|
|
26
|
-
"@tomflow/proflow-execution-browser-extension": "^0.1.
|
|
27
|
-
"@tomflow/proflow-
|
|
28
|
-
"@tomflow/proflow-task-
|
|
29
|
-
"@tomflow/proflow-task-
|
|
30
|
-
"@tomflow/proflow-
|
|
25
|
+
"@tomflow/proflow-agent-runtime": "^0.1.1",
|
|
26
|
+
"@tomflow/proflow-execution-browser-extension": "^0.1.2",
|
|
27
|
+
"@tomflow/proflow-execution-contracts": "^0.1.2",
|
|
28
|
+
"@tomflow/proflow-task-migration-runner": "^0.1.1",
|
|
29
|
+
"@tomflow/proflow-task-store-sqlite": "^0.1.1",
|
|
30
|
+
"@tomflow/proflow-task-orchestration": "^0.1.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tomflow/proflow-
|
|
34
|
-
"@tomflow/proflow-
|
|
35
|
-
"@tomflow/proflow-
|
|
36
|
-
"@tomflow/proflow-
|
|
37
|
-
"@tomflow/proflow-module-contract": "^0.1.
|
|
33
|
+
"@tomflow/proflow-agent-gateway": "^0.1.2",
|
|
34
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.2",
|
|
35
|
+
"@tomflow/proflow-execution-runtime": "^0.1.1",
|
|
36
|
+
"@tomflow/proflow-model-runtime": "^0.1.2",
|
|
37
|
+
"@tomflow/proflow-module-contract": "^0.1.1"
|
|
38
38
|
},
|
|
39
39
|
"description": "Provides the ProFlow local application composition root that binds Task, Agent, Execution and Model owner transports.",
|
|
40
40
|
"keywords": [
|
package/proflow.module.json
CHANGED