@tomflow/proflow-platform-host 0.1.12 → 0.1.14

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-platform-host
2
2
 
3
+ ## 0.1.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Retire the obsolete Carrier package and Browser standalone management CLI, make Platform setup/status preserve owner and dependency semantics, and enforce read-only status observation across the final Real-3 deployment closeout.
8
+
9
+ ## 0.1.13
10
+
11
+ ### Patch Changes
12
+
13
+ - Ship the Phase 3 browser, tunnel, model automation, platform readiness, and documentation closure as one verifiable platform snapshot.
14
+
3
15
  ## 0.1.12
4
16
 
5
17
  ### Patch Changes
@@ -6,7 +6,7 @@ export declare const behaviorAdapter: {
6
6
  ok: true;
7
7
  status: "SUCCEEDED";
8
8
  moduleRef: "platform-host";
9
- moduleVersion: "0.1.12";
9
+ moduleVersion: "0.1.14";
10
10
  data: {
11
11
  endpoint: string;
12
12
  stateRoot: string;
@@ -24,7 +24,7 @@ export declare const behaviorAdapter: {
24
24
  readonly ok: true;
25
25
  readonly status: "SUCCEEDED";
26
26
  readonly moduleRef: "platform-host";
27
- readonly moduleVersion: "0.1.12";
27
+ readonly moduleVersion: "0.1.14";
28
28
  };
29
29
  observedEffects: string[];
30
30
  }>;
@@ -34,12 +34,12 @@ export declare const behaviorAdapter: {
34
34
  ok: true;
35
35
  status: "SUCCEEDED";
36
36
  moduleRef: "platform-host";
37
- moduleVersion: "0.1.12";
37
+ moduleVersion: "0.1.14";
38
38
  data: {
39
- setupStatus: "BLOCKED" | "READY";
39
+ setupStatus: "READY";
40
40
  runtimeStatus: "RUNNING" | "STOPPED";
41
41
  issues?: {
42
- scope: "SETUP";
42
+ scope: "RUNTIME";
43
43
  code: string;
44
44
  message: string;
45
45
  relatedModuleRefs: string[];
@@ -51,21 +51,18 @@ export declare const behaviorAdapter: {
51
51
  }>;
52
52
  readonly setup: (context: ModuleCommandContext) => Promise<{
53
53
  result: {
54
- readonly contract: "deployment.result.v1";
55
- readonly ok: true;
56
- readonly status: "SUCCEEDED";
57
- readonly moduleRef: "platform-host";
58
- readonly moduleVersion: "0.1.12";
59
- } | {
60
54
  contract: "deployment.result.v1";
55
+ ok: true;
56
+ status: "SUCCEEDED";
61
57
  moduleRef: "platform-host";
62
- moduleVersion: "0.1.12";
63
- ok: false;
64
- status: "FAILED";
65
- error: {
66
- code: "SETUP_FAILED" | "START_FAILED" | "STOP_FAILED";
67
- message: string;
68
- retryable: boolean;
58
+ moduleVersion: "0.1.14";
59
+ data: {
60
+ endpoint: string;
61
+ stateRoot: string;
62
+ identityTokenFile: string;
63
+ taskApplicationTokenFile: string;
64
+ approvalApplicationTokenFile: string;
65
+ gatewayTransportCredentialFile: string;
69
66
  };
70
67
  };
71
68
  observedEffects: never[];
@@ -76,7 +73,7 @@ export declare const behaviorAdapter: {
76
73
  ok: true;
77
74
  status: "SUCCEEDED";
78
75
  moduleRef: "platform-host";
79
- moduleVersion: "0.1.12";
76
+ moduleVersion: "0.1.14";
80
77
  data: {
81
78
  docs: string;
82
79
  };
@@ -89,7 +86,7 @@ export declare const behaviorAdapter: {
89
86
  ok: true;
90
87
  status: "SUCCEEDED";
91
88
  moduleRef: "platform-host";
92
- moduleVersion: "0.1.12";
89
+ moduleVersion: "0.1.14";
93
90
  data: {
94
91
  host: string;
95
92
  port: number;
@@ -100,7 +97,7 @@ export declare const behaviorAdapter: {
100
97
  result: {
101
98
  contract: "deployment.result.v1";
102
99
  moduleRef: "platform-host";
103
- moduleVersion: "0.1.12";
100
+ moduleVersion: "0.1.14";
104
101
  ok: false;
105
102
  status: "FAILED";
106
103
  error: {
@@ -117,7 +114,7 @@ export declare const behaviorAdapter: {
117
114
  readonly ok: true;
118
115
  readonly status: "SUCCEEDED";
119
116
  readonly moduleRef: "platform-host";
120
- readonly moduleVersion: "0.1.12";
117
+ readonly moduleVersion: "0.1.14";
121
118
  };
122
119
  observedEffects: string[];
123
120
  } | {
@@ -126,11 +123,11 @@ export declare const behaviorAdapter: {
126
123
  readonly ok: true;
127
124
  readonly status: "SUCCEEDED";
128
125
  readonly moduleRef: "platform-host";
129
- readonly moduleVersion: "0.1.12";
126
+ readonly moduleVersion: "0.1.14";
130
127
  } | {
131
128
  contract: "deployment.result.v1";
132
129
  moduleRef: "platform-host";
133
- moduleVersion: "0.1.12";
130
+ moduleVersion: "0.1.14";
134
131
  ok: false;
135
132
  status: "FAILED";
136
133
  error: {
@@ -45,6 +45,11 @@ async function ownFacts(context) {
45
45
  await writeModuleSharedFacts(context, descriptor.moduleRef, facts);
46
46
  return facts;
47
47
  }
48
+ async function readOwnFacts(context) {
49
+ const facts = await readModuleSharedFacts(context, descriptor.moduleRef);
50
+ const endpoint = factString(facts, "endpoint");
51
+ return endpoint ? { endpoint } : undefined;
52
+ }
48
53
  async function dependencies(context) {
49
54
  const execution = await readModuleSharedFacts(context, "execution-runtime");
50
55
  const model = await readModuleSharedFacts(context, "model-runtime");
@@ -65,9 +70,13 @@ async function dependencies(context) {
65
70
  : undefined;
66
71
  }
67
72
  async function running(context) {
68
- const { endpoint } = await ownFacts(context);
73
+ const own = await readOwnFacts(context);
74
+ if (!own)
75
+ return false;
69
76
  try {
70
- return (await fetch(`${endpoint}/ready`, { signal: AbortSignal.timeout(500) })).ok;
77
+ return (await fetch(`${own.endpoint}/ready`, {
78
+ signal: AbortSignal.timeout(500),
79
+ })).ok;
71
80
  }
72
81
  catch {
73
82
  return false;
@@ -119,25 +128,25 @@ export const behaviorAdapter = {
119
128
  };
120
129
  },
121
130
  status: async (context) => {
122
- const ready = await dependencies(context);
131
+ const runtimeDependencies = await dependencies(context);
123
132
  return {
124
133
  result: {
125
134
  ...base,
126
135
  data: {
127
- setupStatus: ready ? "READY" : "BLOCKED",
136
+ setupStatus: "READY",
128
137
  runtimeStatus: (await running(context))
129
138
  ? "RUNNING"
130
139
  : "STOPPED",
131
- ...(ready
140
+ ...(runtimeDependencies
132
141
  ? {}
133
142
  : {
134
143
  issues: [
135
144
  {
136
- scope: "SETUP",
145
+ scope: "RUNTIME",
137
146
  code: "UPSTREAM_NOT_READY",
138
- message: "等待 Execution 与 Model Runtime 发布服务信息",
147
+ message: "等待 Execution 与 Model Runtime 发布运行所需服务信息",
139
148
  relatedModuleRefs: ["execution-runtime", "model-runtime"],
140
- nextCommand: "platform setup --module model-runtime",
149
+ nextCommand: "platform setup",
141
150
  },
142
151
  ],
143
152
  }),
@@ -147,9 +156,7 @@ export const behaviorAdapter = {
147
156
  };
148
157
  },
149
158
  setup: async (context) => ({
150
- result: (await dependencies(context))
151
- ? base
152
- : failed("SETUP_FAILED", "required Execution/Model producer shared facts are unavailable"),
159
+ result: { ...base, data: await ownFacts(context) },
153
160
  observedEffects: [],
154
161
  }),
155
162
  docs: async (_context) => ({
@@ -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.12";
6
+ readonly moduleVersion: "0.1.14";
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.12",
6
+ moduleVersion: "0.1.14",
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-platform-host",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,19 +24,19 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "zod": "4.1.12",
27
- "@tomflow/proflow-module-contract": "^0.1.12",
28
- "@tomflow/proflow-task-migration-runner": "^0.1.10",
29
- "@tomflow/proflow-task-orchestration": "^0.1.8",
30
- "@tomflow/proflow-execution-browser-extension": "^0.1.12",
31
- "@tomflow/proflow-agent-runtime": "^0.1.9",
32
- "@tomflow/proflow-task-store-sqlite": "^0.1.10",
33
- "@tomflow/proflow-execution-contracts": "^0.1.9"
27
+ "@tomflow/proflow-module-contract": "^0.1.13",
28
+ "@tomflow/proflow-execution-browser-extension": "^0.1.14",
29
+ "@tomflow/proflow-task-store-sqlite": "^0.1.11",
30
+ "@tomflow/proflow-agent-runtime": "^0.1.10",
31
+ "@tomflow/proflow-task-orchestration": "^0.1.9",
32
+ "@tomflow/proflow-task-migration-runner": "^0.1.11",
33
+ "@tomflow/proflow-execution-contracts": "^0.1.10"
34
34
  },
35
35
  "devDependencies": {
36
- "@tomflow/proflow-agent-gateway": "^0.1.12",
37
- "@tomflow/proflow-deployment-conformance": "^0.1.10",
38
- "@tomflow/proflow-model-runtime": "^0.1.14",
39
- "@tomflow/proflow-execution-runtime": "^0.1.13"
36
+ "@tomflow/proflow-deployment-conformance": "^0.1.12",
37
+ "@tomflow/proflow-model-runtime": "^0.1.16",
38
+ "@tomflow/proflow-agent-gateway": "^0.1.14",
39
+ "@tomflow/proflow-execution-runtime": "^0.1.15"
40
40
  },
41
41
  "description": "Provides the ProFlow local application composition root that binds Task, Agent, Execution and Model owner transports.",
42
42
  "keywords": [
@@ -3,7 +3,7 @@
3
3
  "contractVersion": "1.0.0",
4
4
  "moduleRef": "platform-host",
5
5
  "packageName": "@tomflow/proflow-platform-host",
6
- "moduleVersion": "0.1.12",
6
+ "moduleVersion": "0.1.14",
7
7
  "kind": "service",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",