@cat-factory/server 0.309.0 → 0.310.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveInstanceTypeId } from '@cat-factory/contracts';
|
|
2
2
|
import { imageVariantFor } from './containerJobAddressing.js';
|
|
3
|
-
import {
|
|
3
|
+
import { dispatchEnvironments } from './prompts.js';
|
|
4
4
|
// What a container dispatch tells its transport ABOUT the job, beside the job body.
|
|
5
5
|
//
|
|
6
6
|
// Everything here is a directive to the BACKEND rather than a fact the agent reads: which instance
|
|
@@ -24,10 +24,10 @@ export function buildDispatchOptions(context, registry) {
|
|
|
24
24
|
const provider = context.service?.cloudProvider;
|
|
25
25
|
const size = context.service?.instanceSize;
|
|
26
26
|
const image = imageVariantFor(context.agentKind, registry);
|
|
27
|
-
// The environments this job is being handed, so a transport whose containers cannot reach
|
|
28
|
-
//
|
|
29
|
-
const
|
|
30
|
-
if (!provider && !size && !image &&
|
|
27
|
+
// The environments this job is being handed, so a transport whose containers cannot reach one as
|
|
28
|
+
// written can do something about it before it starts one. See `dispatchEnvironments`.
|
|
29
|
+
const environments = dispatchEnvironments(context);
|
|
30
|
+
if (!provider && !size && !image && environments.length === 0)
|
|
31
31
|
return undefined;
|
|
32
32
|
return {
|
|
33
33
|
...(provider || size ? { instanceTypeId: resolveInstanceTypeId(provider, size) } : {}),
|
|
@@ -36,7 +36,7 @@ export function buildDispatchOptions(context, registry) {
|
|
|
36
36
|
// container (`--memory`/`--cpus`) without decoding the cloud id.
|
|
37
37
|
...(size ? { instanceSize: size } : {}),
|
|
38
38
|
...(image ? { image } : {}),
|
|
39
|
-
...(
|
|
39
|
+
...(environments.length ? { environments } : {}),
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
//# sourceMappingURL=dispatchOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchOptions.js","sourceRoot":"","sources":["../../src/agents/dispatchOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dispatchOptions.js","sourceRoot":"","sources":["../../src/agents/dispatchOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAEnD,oFAAoF;AACpF,EAAE;AACF,mGAAmG;AACnG,+FAA+F;AAC/F,mGAAmG;AACnG,wBAAwB;AACxB,EAAE;AACF,2FAA2F;AAC3F,gGAAgG;AAEhG;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAwB,EACxB,QAA2B;IAE3B,0FAA0F;IAC1F,iGAAiG;IACjG,6FAA6F;IAC7F,qFAAqF;IACrF,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/C,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,YAAY,CAAA;IAC1C,MAAM,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IAC1D,iGAAiG;IACjG,sFAAsF;IACtF,MAAM,YAAY,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;IAClD,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAA;IAC/E,OAAO;QACL,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,qBAAqB,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtF,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjC,yFAAyF;QACzF,iEAAiE;QACjE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3B,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjD,CAAA;AACH,CAAC"}
|
package/dist/agents/prompts.d.ts
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import { type AgentRunContext } from '@cat-factory/kernel';
|
|
1
|
+
import { type AgentRunContext, type DispatchEnvironment } from '@cat-factory/kernel';
|
|
2
2
|
/**
|
|
3
|
-
* Every ephemeral
|
|
3
|
+
* Every ephemeral environment a dispatch hands this job, in no particular order.
|
|
4
4
|
*
|
|
5
|
-
* The three legs are the three places an environment
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
5
|
+
* The three legs are the three places an environment reaches an agent, and they are listed here
|
|
6
|
+
* TOGETHER because a transport acting on them has no reason to care which leg one came from: it is
|
|
7
|
+
* the tester's own provisioned environment ({@link AgentRunContext.environment}), a live peer
|
|
8
|
+
* service's environment for a cross-service integration test, or the service-under-test behind a
|
|
9
|
+
* `frontend` flow's resolved binding. All three are equally unreachable from inside a container
|
|
10
|
+
* when the deployment is local, and all three fail identically: connection refused, reported by the
|
|
11
|
+
* agent as a dead environment.
|
|
12
|
+
*
|
|
13
|
+
* Each of the three carries the address PROVED to carry traffic for its host, where one was needed
|
|
14
|
+
* and found, so a transport can install the mapping rather than the job discovering the gap. That
|
|
15
|
+
* includes the frontend leg, whose binding resolution reads the address off the very handle it
|
|
16
|
+
* takes the URL from (`indexLiveServiceEnvRoutes`); nothing here invents one, and an environment
|
|
17
|
+
* whose name resolved or that nothing probed carries none.
|
|
12
18
|
*
|
|
13
19
|
* A URL that is only a MOCK is deliberately absent: an unresolved frontend binding is served by
|
|
14
20
|
* the harness's own in-container WireMock, which the job reaches exactly as written and which a
|
|
15
21
|
* bridge would break. That is why this reads the BINDINGS rather than the rendered infra spec,
|
|
16
22
|
* where the two are already indistinguishable.
|
|
17
23
|
*
|
|
18
|
-
* Rides `RunnerDispatchOptions.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* carries appears here.
|
|
24
|
+
* Rides `RunnerDispatchOptions.environments` (see that field for why it is declared rather than
|
|
25
|
+
* re-read from the job body). Kept beside {@link testerInfraSpec} because the two derive from the
|
|
26
|
+
* same context fields, and `prompts.spec.ts` pins that every URL the spec carries appears here.
|
|
22
27
|
*/
|
|
23
|
-
export declare function
|
|
28
|
+
export declare function dispatchEnvironments(context: AgentRunContext): DispatchEnvironment[];
|
|
24
29
|
export declare function testerInfraSpec(context: AgentRunContext): Record<string, unknown>;
|
|
25
30
|
/**
|
|
26
31
|
* The harness `frontend` infra spec for a self-contained UI test, from the frame's resolved
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAgB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,mBAAmB,EAAgB,MAAM,qBAAqB,CAAA;AA0ElG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,GAAG,mBAAmB,EAAE,CA0BpF;AAgBD,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyDjF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,GACjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBzB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CA6CvD"}
|
package/dist/agents/prompts.js
CHANGED
|
@@ -64,34 +64,58 @@ function isReservedEnvName(key) {
|
|
|
64
64
|
return RESERVED_ENV_PREFIXES.some((p) => lower.startsWith(p));
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Every ephemeral
|
|
67
|
+
* Every ephemeral environment a dispatch hands this job, in no particular order.
|
|
68
68
|
*
|
|
69
|
-
* The three legs are the three places an environment
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
69
|
+
* The three legs are the three places an environment reaches an agent, and they are listed here
|
|
70
|
+
* TOGETHER because a transport acting on them has no reason to care which leg one came from: it is
|
|
71
|
+
* the tester's own provisioned environment ({@link AgentRunContext.environment}), a live peer
|
|
72
|
+
* service's environment for a cross-service integration test, or the service-under-test behind a
|
|
73
|
+
* `frontend` flow's resolved binding. All three are equally unreachable from inside a container
|
|
74
|
+
* when the deployment is local, and all three fail identically: connection refused, reported by the
|
|
75
|
+
* agent as a dead environment.
|
|
76
|
+
*
|
|
77
|
+
* Each of the three carries the address PROVED to carry traffic for its host, where one was needed
|
|
78
|
+
* and found, so a transport can install the mapping rather than the job discovering the gap. That
|
|
79
|
+
* includes the frontend leg, whose binding resolution reads the address off the very handle it
|
|
80
|
+
* takes the URL from (`indexLiveServiceEnvRoutes`); nothing here invents one, and an environment
|
|
81
|
+
* whose name resolved or that nothing probed carries none.
|
|
76
82
|
*
|
|
77
83
|
* A URL that is only a MOCK is deliberately absent: an unresolved frontend binding is served by
|
|
78
84
|
* the harness's own in-container WireMock, which the job reaches exactly as written and which a
|
|
79
85
|
* bridge would break. That is why this reads the BINDINGS rather than the rendered infra spec,
|
|
80
86
|
* where the two are already indistinguishable.
|
|
81
87
|
*
|
|
82
|
-
* Rides `RunnerDispatchOptions.
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* carries appears here.
|
|
88
|
+
* Rides `RunnerDispatchOptions.environments` (see that field for why it is declared rather than
|
|
89
|
+
* re-read from the job body). Kept beside {@link testerInfraSpec} because the two derive from the
|
|
90
|
+
* same context fields, and `prompts.spec.ts` pins that every URL the spec carries appears here.
|
|
86
91
|
*/
|
|
87
|
-
export function
|
|
92
|
+
export function dispatchEnvironments(context) {
|
|
88
93
|
const frontend = context.frontend;
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
const candidates = [
|
|
95
|
+
{
|
|
96
|
+
url: context.environment?.url ?? '',
|
|
97
|
+
...(context.environment?.reachability?.address
|
|
98
|
+
? { address: context.environment.reachability.address }
|
|
99
|
+
: {}),
|
|
100
|
+
},
|
|
101
|
+
...(context.involvedServices ?? []).map((involved) => ({
|
|
102
|
+
url: involved.envUrl ?? '',
|
|
103
|
+
...(involved.envReachability?.address ? { address: involved.envReachability.address } : {}),
|
|
104
|
+
})),
|
|
105
|
+
...(frontend ? injectedFrontendBindings(frontend) : []).map((binding) => ({
|
|
106
|
+
url: binding.serviceUrl ?? '',
|
|
107
|
+
...(binding.serviceAddress ? { address: binding.serviceAddress } : {}),
|
|
108
|
+
})),
|
|
93
109
|
];
|
|
94
|
-
|
|
110
|
+
const seen = new Set();
|
|
111
|
+
const out = [];
|
|
112
|
+
for (const candidate of candidates) {
|
|
113
|
+
if (!candidate.url || seen.has(candidate.url))
|
|
114
|
+
continue;
|
|
115
|
+
seen.add(candidate.url);
|
|
116
|
+
out.push(candidate);
|
|
117
|
+
}
|
|
118
|
+
return out;
|
|
95
119
|
}
|
|
96
120
|
/**
|
|
97
121
|
* The frontend bindings that actually reach the job as env vars.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClG,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,wBAAwB,CAAA;AAE/B;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;GAWG;AAEH;;;;;;;;GAQG;AACH,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,MAAM;IACN,MAAM;IACN,cAAc;IACd,WAAW;IACX,qBAAqB;IACrB,YAAY;IACZ,iBAAiB;IACjB,UAAU;IACV,KAAK;IACL,OAAO;IACP,KAAK;CACN,CAAC,CAAA;AAEF;;;;;GAKG;AACH,MAAM,qBAAqB,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;AAErD;;;GAGG;AACH,SAAS,iBAAiB,CAAC,GAAW;IACpC,IAAI,kBAAkB,CAAC,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA;IAC5C,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAA;IAC/B,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;AAC/D,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAwB;IAC3D,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;IACjC,MAAM,UAAU,GAA0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AC,MAAM,EAAE,CAAC;YACzC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAA;YAC9E,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAC5E,KAAK,CAAC,IAAI,CACR,EAAE,EACF,yCAAyC,QAAQ,GAAG;gBAClD,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,iCAAiC,CAAC,CAAC,CAAC,EAAE,CAAC,CACjE,CAAA;QACH,CAAC;QACD,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,gCAAgC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACpF,CAAC;IACH,CAAC;IACD,KAAK,CAAC,IAAI,CACR,EAAE,EACF,KAAK,EACL,EAAE,EACF,uFAAuF;QACrF,mDAAmD,CACtD,CAAA;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.310.1",
|
|
4
4
|
"description": "Runtime-neutral HTTP layer for the Agent Architecture Board: the Hono controllers, middleware (auth/authz/CORS/error), request helpers and the gateway seams shared by every deployment facade (Cloudflare Worker, Node service).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cat-factory/agents": "0.
|
|
28
|
-
"@cat-factory/contracts": "0.
|
|
29
|
-
"@cat-factory/integrations": "0.
|
|
30
|
-
"@cat-factory/kernel": "0.
|
|
27
|
+
"@cat-factory/agents": "0.149.1",
|
|
28
|
+
"@cat-factory/contracts": "0.338.0",
|
|
29
|
+
"@cat-factory/integrations": "0.169.1",
|
|
30
|
+
"@cat-factory/kernel": "0.327.0",
|
|
31
31
|
"@cat-factory/mcp-server": "0.47.0",
|
|
32
|
-
"@cat-factory/orchestration": "0.
|
|
33
|
-
"@cat-factory/spend": "0.17.
|
|
32
|
+
"@cat-factory/orchestration": "0.294.0",
|
|
33
|
+
"@cat-factory/spend": "0.17.3",
|
|
34
34
|
"@toad-contracts/core": "0.4.0",
|
|
35
35
|
"@toad-contracts/hono": "0.3.2",
|
|
36
36
|
"@toad-contracts/valibot": "0.5.0",
|