@tomflow/proflow-agent-gateway 0.1.7 → 0.1.8
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 -3
- package/dist/deployment/descriptor.d.ts +1 -1
- package/dist/deployment/descriptor.js +1 -1
- package/package.json +11 -11
- package/proflow.module.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @tomflow/proflow-agent-gateway
|
|
2
2
|
|
|
3
|
+
## 0.1.8
|
|
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.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/SETUP.md
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
# @tomflow/proflow-agent-gateway — Module Setup
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
Reach `setupStatus=READY` with zero user configuration.
|
|
3
|
+
## STEP-AGENT-GATEWAY-01 — 完成模块自动配置
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
**Type:** automatic verification
|
|
13
|
-
**Executable:** `platform status --workspace <workspace>`
|
|
14
|
-
**Success condition:** `agent-gateway.setupStatus=READY`. If a producer is not READY, the full `platform setup` output must expose that producer's own setup action instead of asking the user to configure Agent Gateway internals.
|
|
5
|
+
Responsible: AI
|
|
6
|
+
Interactive executable: `platform setup --module agent-gateway`
|
|
7
|
+
Non-interactive executable: `platform setup --module agent-gateway`
|
|
8
|
+
Required inputs: none
|
|
9
|
+
Verify: `platform status`
|
|
10
|
+
Success condition: `agent-gateway.setupStatus=READY`.
|
|
@@ -6,7 +6,7 @@ export declare const behaviorAdapter: {
|
|
|
6
6
|
ok: true;
|
|
7
7
|
status: "SUCCEEDED";
|
|
8
8
|
moduleRef: "agent-gateway";
|
|
9
|
-
moduleVersion: "0.1.
|
|
9
|
+
moduleVersion: "0.1.8";
|
|
10
10
|
data: {
|
|
11
11
|
localBaseUrl: string;
|
|
12
12
|
publicBaseUrl?: string;
|
|
@@ -20,7 +20,7 @@ export declare const behaviorAdapter: {
|
|
|
20
20
|
readonly ok: true;
|
|
21
21
|
readonly status: "SUCCEEDED";
|
|
22
22
|
readonly moduleRef: "agent-gateway";
|
|
23
|
-
readonly moduleVersion: "0.1.
|
|
23
|
+
readonly moduleVersion: "0.1.8";
|
|
24
24
|
};
|
|
25
25
|
observedEffects: string[];
|
|
26
26
|
}>;
|
|
@@ -30,7 +30,7 @@ export declare const behaviorAdapter: {
|
|
|
30
30
|
ok: true;
|
|
31
31
|
status: "SUCCEEDED";
|
|
32
32
|
moduleRef: "agent-gateway";
|
|
33
|
-
moduleVersion: "0.1.
|
|
33
|
+
moduleVersion: "0.1.8";
|
|
34
34
|
data: {
|
|
35
35
|
setupStatus: "FAILED" | "READY";
|
|
36
36
|
runtimeStatus: "RUNNING" | "STOPPED";
|
|
@@ -44,11 +44,11 @@ export declare const behaviorAdapter: {
|
|
|
44
44
|
readonly ok: true;
|
|
45
45
|
readonly status: "SUCCEEDED";
|
|
46
46
|
readonly moduleRef: "agent-gateway";
|
|
47
|
-
readonly moduleVersion: "0.1.
|
|
47
|
+
readonly moduleVersion: "0.1.8";
|
|
48
48
|
} | {
|
|
49
49
|
contract: "deployment.result.v1";
|
|
50
50
|
moduleRef: "agent-gateway";
|
|
51
|
-
moduleVersion: "0.1.
|
|
51
|
+
moduleVersion: "0.1.8";
|
|
52
52
|
ok: false;
|
|
53
53
|
status: "FAILED";
|
|
54
54
|
error: {
|
|
@@ -56,6 +56,22 @@ export declare const behaviorAdapter: {
|
|
|
56
56
|
message: string;
|
|
57
57
|
retryable: boolean;
|
|
58
58
|
};
|
|
59
|
+
data: {
|
|
60
|
+
readonly steps: readonly [{
|
|
61
|
+
readonly id: "STEP-AGENT-GATEWAY-01";
|
|
62
|
+
readonly title: "等待公开入口与 Platform Host";
|
|
63
|
+
readonly state: "BLOCKED";
|
|
64
|
+
readonly responsible: "EXTERNAL";
|
|
65
|
+
readonly execution: {
|
|
66
|
+
readonly interactive: "platform setup --module agent-gateway";
|
|
67
|
+
readonly nonInteractive: "platform setup --module agent-gateway";
|
|
68
|
+
};
|
|
69
|
+
readonly requiredInputs: readonly [];
|
|
70
|
+
readonly verify: "platform status";
|
|
71
|
+
readonly successCondition: "配置状态变为“已就绪”";
|
|
72
|
+
readonly blockedReason: "public-ingress 或 platform-host 的共享事实尚不可用";
|
|
73
|
+
}];
|
|
74
|
+
};
|
|
59
75
|
};
|
|
60
76
|
observedEffects: never[];
|
|
61
77
|
}>;
|
|
@@ -65,10 +81,9 @@ export declare const behaviorAdapter: {
|
|
|
65
81
|
ok: true;
|
|
66
82
|
status: "SUCCEEDED";
|
|
67
83
|
moduleRef: "agent-gateway";
|
|
68
|
-
moduleVersion: "0.1.
|
|
84
|
+
moduleVersion: "0.1.8";
|
|
69
85
|
data: {
|
|
70
86
|
docs: string;
|
|
71
|
-
setup: string;
|
|
72
87
|
};
|
|
73
88
|
};
|
|
74
89
|
observedEffects: never[];
|
|
@@ -79,7 +94,7 @@ export declare const behaviorAdapter: {
|
|
|
79
94
|
ok: true;
|
|
80
95
|
status: "SUCCEEDED";
|
|
81
96
|
moduleRef: "agent-gateway";
|
|
82
|
-
moduleVersion: "0.1.
|
|
97
|
+
moduleVersion: "0.1.8";
|
|
83
98
|
data: {
|
|
84
99
|
host: string;
|
|
85
100
|
port: number;
|
|
@@ -90,7 +105,7 @@ export declare const behaviorAdapter: {
|
|
|
90
105
|
result: {
|
|
91
106
|
contract: "deployment.result.v1";
|
|
92
107
|
moduleRef: "agent-gateway";
|
|
93
|
-
moduleVersion: "0.1.
|
|
108
|
+
moduleVersion: "0.1.8";
|
|
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: "agent-gateway";
|
|
110
|
-
readonly moduleVersion: "0.1.
|
|
125
|
+
readonly moduleVersion: "0.1.8";
|
|
111
126
|
};
|
|
112
127
|
observedEffects: string[];
|
|
113
128
|
} | {
|
|
@@ -116,11 +131,11 @@ export declare const behaviorAdapter: {
|
|
|
116
131
|
readonly ok: true;
|
|
117
132
|
readonly status: "SUCCEEDED";
|
|
118
133
|
readonly moduleRef: "agent-gateway";
|
|
119
|
-
readonly moduleVersion: "0.1.
|
|
134
|
+
readonly moduleVersion: "0.1.8";
|
|
120
135
|
} | {
|
|
121
136
|
contract: "deployment.result.v1";
|
|
122
137
|
moduleRef: "agent-gateway";
|
|
123
|
-
moduleVersion: "0.1.
|
|
138
|
+
moduleVersion: "0.1.8";
|
|
124
139
|
ok: false;
|
|
125
140
|
status: "FAILED";
|
|
126
141
|
error: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { existsSync } from "node:fs";
|
|
1
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
3
|
import { deterministicLoopbackPort, readModuleSharedFacts, writeModuleSharedFacts, } from "@tomflow/proflow-module-contract";
|
|
4
4
|
import { descriptor } from "./descriptor.js";
|
|
@@ -10,6 +10,24 @@ const base = {
|
|
|
10
10
|
moduleRef: descriptor.moduleRef,
|
|
11
11
|
moduleVersion: descriptor.moduleVersion,
|
|
12
12
|
};
|
|
13
|
+
const blockedSetupPlan = {
|
|
14
|
+
steps: [
|
|
15
|
+
{
|
|
16
|
+
id: "STEP-AGENT-GATEWAY-01",
|
|
17
|
+
title: "等待公开入口与 Platform Host",
|
|
18
|
+
state: "BLOCKED",
|
|
19
|
+
responsible: "EXTERNAL",
|
|
20
|
+
execution: {
|
|
21
|
+
interactive: "platform setup --module agent-gateway",
|
|
22
|
+
nonInteractive: "platform setup --module agent-gateway",
|
|
23
|
+
},
|
|
24
|
+
requiredInputs: [],
|
|
25
|
+
verify: "platform status",
|
|
26
|
+
successCondition: "配置状态变为“已就绪”",
|
|
27
|
+
blockedReason: "public-ingress 或 platform-host 的共享事实尚不可用",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
};
|
|
13
31
|
const key = (context) => resolve(context.workspaceRoot);
|
|
14
32
|
const factString = (facts, name) => (typeof facts?.[name] === "string" ? String(facts[name]) : undefined);
|
|
15
33
|
async function ownFacts(context) {
|
|
@@ -105,11 +123,19 @@ export const behaviorAdapter = {
|
|
|
105
123
|
setup: async (context) => ({
|
|
106
124
|
result: (await dependencies(context))
|
|
107
125
|
? base
|
|
108
|
-
:
|
|
126
|
+
: {
|
|
127
|
+
...failed("SETUP_FAILED", "public-ingress or platform-host producer shared facts are unavailable"),
|
|
128
|
+
data: blockedSetupPlan,
|
|
129
|
+
},
|
|
109
130
|
observedEffects: [],
|
|
110
131
|
}),
|
|
111
132
|
docs: async (_context) => ({
|
|
112
|
-
result: {
|
|
133
|
+
result: {
|
|
134
|
+
...base,
|
|
135
|
+
data: {
|
|
136
|
+
docs: readFileSync(new URL("../DOCS.md", import.meta.url), "utf8"),
|
|
137
|
+
},
|
|
138
|
+
},
|
|
113
139
|
observedEffects: [],
|
|
114
140
|
}),
|
|
115
141
|
start: async (context) => {
|
|
@@ -3,7 +3,7 @@ export declare const descriptor: {
|
|
|
3
3
|
readonly contractVersion: "1.0.0";
|
|
4
4
|
readonly moduleRef: "agent-gateway";
|
|
5
5
|
readonly packageName: "@tomflow/proflow-agent-gateway";
|
|
6
|
-
readonly moduleVersion: "0.1.
|
|
6
|
+
readonly moduleVersion: "0.1.8";
|
|
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: "agent-gateway",
|
|
5
5
|
packageName: "@tomflow/proflow-agent-gateway",
|
|
6
|
-
moduleVersion: "0.1.
|
|
6
|
+
moduleVersion: "0.1.8",
|
|
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-agent-gateway",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"zod": "4.1.12",
|
|
28
|
-
"@tomflow/proflow-module-contract": "^0.1.
|
|
28
|
+
"@tomflow/proflow-module-contract": "^0.1.8"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tomflow/proflow-
|
|
32
|
-
"@tomflow/proflow-
|
|
33
|
-
"@tomflow/proflow-execution-
|
|
34
|
-
"@tomflow/proflow-
|
|
35
|
-
"@tomflow/proflow-
|
|
36
|
-
"@tomflow/proflow-
|
|
37
|
-
"@tomflow/proflow-
|
|
38
|
-
"@tomflow/proflow-
|
|
39
|
-
"@tomflow/proflow-
|
|
31
|
+
"@tomflow/proflow-execution-runtime": "^0.1.9",
|
|
32
|
+
"@tomflow/proflow-task-migration-runner": "^0.1.6",
|
|
33
|
+
"@tomflow/proflow-execution-local": "^0.1.7",
|
|
34
|
+
"@tomflow/proflow-platform-host": "^0.1.8",
|
|
35
|
+
"@tomflow/proflow-task-store-sqlite": "^0.1.6",
|
|
36
|
+
"@tomflow/proflow-task-orchestration": "^0.1.5",
|
|
37
|
+
"@tomflow/proflow-agent-runtime": "^0.1.6",
|
|
38
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.6",
|
|
39
|
+
"@tomflow/proflow-execution-browser-extension": "^0.1.7"
|
|
40
40
|
},
|
|
41
41
|
"description": "The sole Custom GPT Actions HTTP ingress and OpenAI transport anti-corruption layer.",
|
|
42
42
|
"keywords": [
|
package/proflow.module.json
CHANGED