@tomflow/proflow-platform-host 0.1.0
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/README.md +5 -0
- package/conformance.json +1 -0
- package/dist/deployment/adapter.d.ts +458 -0
- package/dist/deployment/adapter.js +243 -0
- package/dist/deployment/descriptor.d.ts +96 -0
- package/dist/deployment/descriptor.js +108 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +55 -0
- package/dist/src/index.d.ts +252 -0
- package/dist/src/index.js +1928 -0
- package/dist/src/role-operations.d.ts +9 -0
- package/dist/src/role-operations.js +51 -0
- package/package.json +65 -0
- package/proflow.module.json +129 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const rolePackageRefs: readonly ["@tomflow/proflow-agent-product", "@tomflow/proflow-agent-controller-dev", "@tomflow/proflow-agent-test-ops"];
|
|
2
|
+
export type RolePackageRef = (typeof rolePackageRefs)[number];
|
|
3
|
+
/**
|
|
4
|
+
* Canonical platform-host authorization inventory for shipped Custom GPT
|
|
5
|
+
* operations. This module is internal (not a package export); Role packages
|
|
6
|
+
* continue to own the shipped OpenAPI documents while the Host owns runtime
|
|
7
|
+
* authorization. Batch 6 mechanically reconciles the two inventories.
|
|
8
|
+
*/
|
|
9
|
+
export declare const roleOperations: Record<RolePackageRef, ReadonlySet<string>>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const rolePackageRefs = [
|
|
2
|
+
"@tomflow/proflow-agent-product",
|
|
3
|
+
"@tomflow/proflow-agent-controller-dev",
|
|
4
|
+
"@tomflow/proflow-agent-test-ops",
|
|
5
|
+
];
|
|
6
|
+
/**
|
|
7
|
+
* Canonical platform-host authorization inventory for shipped Custom GPT
|
|
8
|
+
* operations. This module is internal (not a package export); Role packages
|
|
9
|
+
* continue to own the shipped OpenAPI documents while the Host owns runtime
|
|
10
|
+
* authorization. Batch 6 mechanically reconciles the two inventories.
|
|
11
|
+
*/
|
|
12
|
+
export const roleOperations = {
|
|
13
|
+
"@tomflow/proflow-agent-product": new Set([
|
|
14
|
+
"getTask",
|
|
15
|
+
"putTaskDocument",
|
|
16
|
+
"getTaskDocument",
|
|
17
|
+
"askPeer",
|
|
18
|
+
"replyPeer",
|
|
19
|
+
]),
|
|
20
|
+
"@tomflow/proflow-agent-controller-dev": new Set([
|
|
21
|
+
"getTask",
|
|
22
|
+
"getNodeContext",
|
|
23
|
+
"startNode",
|
|
24
|
+
"completeNode",
|
|
25
|
+
"waitNode",
|
|
26
|
+
"failNode",
|
|
27
|
+
"reopenNode",
|
|
28
|
+
"getTaskDocument",
|
|
29
|
+
"putTaskDocument",
|
|
30
|
+
"askPeer",
|
|
31
|
+
"replyPeer",
|
|
32
|
+
"executeCapability",
|
|
33
|
+
"getExecution",
|
|
34
|
+
"readExecutionOutput",
|
|
35
|
+
]),
|
|
36
|
+
"@tomflow/proflow-agent-test-ops": new Set([
|
|
37
|
+
"getTask",
|
|
38
|
+
"getNodeContext",
|
|
39
|
+
"startNode",
|
|
40
|
+
"completeNode",
|
|
41
|
+
"waitNode",
|
|
42
|
+
"failNode",
|
|
43
|
+
"getTaskDocument",
|
|
44
|
+
"putTaskDocument",
|
|
45
|
+
"askPeer",
|
|
46
|
+
"replyPeer",
|
|
47
|
+
"executeCapability",
|
|
48
|
+
"getExecution",
|
|
49
|
+
"readExecutionOutput",
|
|
50
|
+
]),
|
|
51
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tomflow/proflow-platform-host",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./dist/src/index.js",
|
|
10
|
+
"./deployment/adapter": "./dist/deployment/adapter.js",
|
|
11
|
+
"./deployment/descriptor": "./dist/deployment/descriptor.js",
|
|
12
|
+
"./cli": "./dist/src/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"proflow-platform-host": "./dist/src/cli.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"proflow.module.json",
|
|
20
|
+
"conformance.json",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"zod": "4.1.12",
|
|
25
|
+
"@tomflow/proflow-agent-runtime": "^0.1.0",
|
|
26
|
+
"@tomflow/proflow-execution-browser-extension": "^0.1.0",
|
|
27
|
+
"@tomflow/proflow-task-migration-runner": "^0.1.0",
|
|
28
|
+
"@tomflow/proflow-task-store-sqlite": "^0.1.0",
|
|
29
|
+
"@tomflow/proflow-task-orchestration": "^0.1.0",
|
|
30
|
+
"@tomflow/proflow-execution-contracts": "^0.1.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@tomflow/proflow-deployment-conformance": "^0.1.0",
|
|
34
|
+
"@tomflow/proflow-agent-gateway": "^0.1.0",
|
|
35
|
+
"@tomflow/proflow-execution-runtime": "^0.1.0",
|
|
36
|
+
"@tomflow/proflow-module-contract": "^0.1.0",
|
|
37
|
+
"@tomflow/proflow-model-runtime": "^0.1.0"
|
|
38
|
+
},
|
|
39
|
+
"description": "Provides the ProFlow local application composition root that binds Task, Agent, Execution and Model owner transports.",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"proflow",
|
|
42
|
+
"proflow-module",
|
|
43
|
+
"platform-architecture"
|
|
44
|
+
],
|
|
45
|
+
"proflow": {
|
|
46
|
+
"module": true,
|
|
47
|
+
"installClass": "core",
|
|
48
|
+
"descriptor": "./dist/deployment/descriptor.js",
|
|
49
|
+
"installRequires": [
|
|
50
|
+
"@tomflow/proflow-agent-runtime",
|
|
51
|
+
"@tomflow/proflow-execution-browser-extension",
|
|
52
|
+
"@tomflow/proflow-execution-contracts",
|
|
53
|
+
"@tomflow/proflow-execution-runtime",
|
|
54
|
+
"@tomflow/proflow-model-contracts",
|
|
55
|
+
"@tomflow/proflow-task-migration-runner",
|
|
56
|
+
"@tomflow/proflow-task-orchestration",
|
|
57
|
+
"@tomflow/proflow-task-store-sqlite"
|
|
58
|
+
],
|
|
59
|
+
"manifest": "./proflow.module.json"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"test": "node --conditions=development --test tests/**/*.test.ts",
|
|
63
|
+
"typecheck": "tsc --noEmit"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract": "module",
|
|
3
|
+
"contractVersion": "1.0.0",
|
|
4
|
+
"moduleRef": "platform-host",
|
|
5
|
+
"packageName": "@tomflow/proflow-platform-host",
|
|
6
|
+
"moduleVersion": "0.1.0",
|
|
7
|
+
"kind": "service",
|
|
8
|
+
"templateVersion": "1.0.0",
|
|
9
|
+
"platformCompatibility": ">=1.0.0 <2.0.0",
|
|
10
|
+
"installClass": "core",
|
|
11
|
+
"identity": {
|
|
12
|
+
"domain": "platform-architecture",
|
|
13
|
+
"summary": "Provides the ProFlow local application composition root that binds Task, Agent, Execution and Model owner transports."
|
|
14
|
+
},
|
|
15
|
+
"provides": [
|
|
16
|
+
{
|
|
17
|
+
"contractRef": "platform-host",
|
|
18
|
+
"version": "1.0.0"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"requires": [
|
|
22
|
+
{
|
|
23
|
+
"contractRef": "task-orchestration",
|
|
24
|
+
"versionRange": ">=1.0.0 <2.0.0"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"contractRef": "agent-runtime",
|
|
28
|
+
"versionRange": ">=1.0.0 <2.0.0"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"contractRef": "execution",
|
|
32
|
+
"versionRange": ">=1.0.0 <2.0.0"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"contractRef": "model-inference",
|
|
36
|
+
"versionRange": ">=1.0.0 <2.0.0"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"requirements": [
|
|
40
|
+
{
|
|
41
|
+
"kind": "runtime",
|
|
42
|
+
"runtime": "node",
|
|
43
|
+
"versionRange": ">=24.19.0"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"configSlots": [
|
|
47
|
+
{
|
|
48
|
+
"key": "stateRoot",
|
|
49
|
+
"type": "path",
|
|
50
|
+
"required": true,
|
|
51
|
+
"description": "Absolute .proflow owner state root"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "workspaceRoot",
|
|
55
|
+
"type": "path",
|
|
56
|
+
"required": true,
|
|
57
|
+
"description": "Absolute Task document workspace root"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"key": "gatewayTransportCredentialFile",
|
|
61
|
+
"type": "path",
|
|
62
|
+
"required": true,
|
|
63
|
+
"sensitive": true,
|
|
64
|
+
"description": "File containing the dedicated credential accepted from agent-gateway"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"key": "executionBaseUrl",
|
|
68
|
+
"type": "url",
|
|
69
|
+
"required": true,
|
|
70
|
+
"description": "Loopback Execution Runtime public transport"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"key": "executionTransportCredentialFile",
|
|
74
|
+
"type": "path",
|
|
75
|
+
"required": true,
|
|
76
|
+
"sensitive": true,
|
|
77
|
+
"description": "File containing the credential used for Platform Host calls to Execution Runtime"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"key": "modelTransportCredentialFile",
|
|
81
|
+
"type": "path",
|
|
82
|
+
"required": true,
|
|
83
|
+
"sensitive": true,
|
|
84
|
+
"description": "File containing the credential used for Platform Host calls to Model Runtime"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"key": "modelBaseUrl",
|
|
88
|
+
"type": "url",
|
|
89
|
+
"required": true,
|
|
90
|
+
"description": "Loopback Model Runtime public transport"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"lifecycle": {
|
|
94
|
+
"supported": [
|
|
95
|
+
"describe",
|
|
96
|
+
"preflight",
|
|
97
|
+
"status",
|
|
98
|
+
"verify",
|
|
99
|
+
"doctor",
|
|
100
|
+
"start",
|
|
101
|
+
"stop",
|
|
102
|
+
"restart",
|
|
103
|
+
"uninstall"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"verification": {
|
|
107
|
+
"checks": [
|
|
108
|
+
{
|
|
109
|
+
"id": "platform-host-readiness",
|
|
110
|
+
"description": "Host transport and current owner dependencies are ready",
|
|
111
|
+
"lifecycle": "verify"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"effects": [
|
|
116
|
+
{
|
|
117
|
+
"kind": "process",
|
|
118
|
+
"description": "Manage the platform-host process",
|
|
119
|
+
"retention": "remove"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"documentation": [
|
|
123
|
+
{
|
|
124
|
+
"id": "overview",
|
|
125
|
+
"path": "./README.md",
|
|
126
|
+
"description": "Platform Host package overview"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|