@cat-factory/node-server 0.226.0 → 0.227.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/dist/container-executor-deps.d.ts +70 -7
- package/dist/container-executor-deps.d.ts.map +1 -1
- package/dist/container-executor-deps.js +121 -63
- package/dist/container-executor-deps.js.map +1 -1
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +34 -17
- package/dist/container.js.map +1 -1
- package/dist/db/tables/environments.d.ts +45 -0
- package/dist/db/tables/environments.d.ts.map +1 -1
- package/dist/db/tables/environments.js +8 -0
- package/dist/db/tables/environments.js.map +1 -1
- package/dist/repositories/environmentTest.d.ts.map +1 -1
- package/dist/repositories/environmentTest.js +14 -0
- package/dist/repositories/environmentTest.js.map +1 -1
- package/drizzle/20260908204232_broken_chat/migration.sql +3 -0
- package/drizzle/20260908204232_broken_chat/snapshot.json +22451 -0
- package/package.json +21 -21
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AgentKindRegistry } from '@cat-factory/agents';
|
|
2
2
|
import { PersonalSubscriptionService, ProviderSubscriptionService } from '@cat-factory/integrations';
|
|
3
3
|
import type { EnvironmentBackendRegistry, ProvisioningLogRecorder, RunnerBackendRegistry } from '@cat-factory/integrations';
|
|
4
|
-
import type { AgentExecutor, Clock, GitHubClient, GitHubInstallationRepository, ProvisioningSubsystem, RepoProjectionRepository, RunnerPoolConnectionRepository, RunnerPoolProvider, StoreAgentContextGate, SubscriptionQuotaTarget, TestSecretEntry, McpOAuthTokenSource, ToolSecretResolver, WebSearchAvailability } from '@cat-factory/kernel';
|
|
4
|
+
import type { AgentExecutor, BlockRepository, Clock, LocalModelDeclarations, ModelFlavor, SubscriptionVendor, GitHubClient, GitHubInstallationRepository, ProvisioningSubsystem, RepoProjectionRepository, RunnerPoolConnectionRepository, RunnerPoolProvider, StoreAgentContextGate, SubscriptionQuotaTarget, TestSecretEntry, McpOAuthTokenSource, ToolSecretResolver, WebSearchAvailability } from '@cat-factory/kernel';
|
|
5
5
|
import { AgentContextObservabilityService, type CoreDependencies, type HarnessCallsRecordInput, type ToolCallsRecordInput } from '@cat-factory/orchestration';
|
|
6
|
-
import { type AppConfig, type DispatchTokenMintDependencies, type JobPackageRegistrySpec, type MintInstallationToken, type ResolveRepoOrigin, type ResolveRepoTarget, type ResolveRepoTargets, type ResolveRunnerTransport, ContainerEnvConfigRepairer, ContainerEnvironmentProbeAgent, ContainerRepoBootstrapper, GitHubAppRegistry, type ResolveRunInitiatorToken } from '@cat-factory/server';
|
|
6
|
+
import { type AppConfig, type DispatchTokenMintDependencies, type JobPackageRegistrySpec, type MintInstallationToken, type ResolveRepoOrigin, type ResolveRepoTarget, type ResolveRepoTargets, type ResolveRunnerTransport, ContainerEnvConfigRepairer, ContainerEnvironmentProbeAgent, type ContainerJobAccountingDeps, type ContainerJobAuthDependencies, ContainerRepoBootstrapper, GitHubAppRegistry, type ResolveRunInitiatorToken } from '@cat-factory/server';
|
|
7
7
|
export declare const RUNNERS_CIPHER_INFO = "cat-factory:runners";
|
|
8
8
|
/**
|
|
9
9
|
* Build the opt-in external trace sink(s) — Langfuse and/or OpenTelemetry — composed into
|
|
@@ -201,17 +201,53 @@ type GitHubIssueFiler = (request: {
|
|
|
201
201
|
* resolves to null (a clean pass-through, not a run failure).
|
|
202
202
|
*/
|
|
203
203
|
export declare function buildNodeGitHubIssueFiler(config: AppConfig, registry: GitHubAppRegistry | undefined, resolveRepoTarget: ResolveRepoTarget): GitHubIssueFiler | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* The credential channels EVERY container dispatch on this facade shares, as one composition:
|
|
206
|
+
* the proxy session signer and its base URL, the pooled subscription lease, the run-initiator's
|
|
207
|
+
* personal lease, and the native ambient-CLI predicate.
|
|
208
|
+
*
|
|
209
|
+
* One builder because there is now more than one dispatcher (the step executor and the single-job
|
|
210
|
+
* flows beside it), and the ambient predicate in particular must not be re-derived per call site:
|
|
211
|
+
* it has to keep matching the personal-credential gate's own `isAmbientNativeVendor` decision, or
|
|
212
|
+
* a flow gates a credential it will not lease (or leases one nobody unlocked).
|
|
213
|
+
*
|
|
214
|
+
* The two `has*` predicates ride along because they are the same question asked at ROUTING time
|
|
215
|
+
* ("does this workspace/user hold a subscription for the vendor, so a dual-mode model should
|
|
216
|
+
* switch to it?"), and a dispatcher that resolved the model with one answer and the credential
|
|
217
|
+
* with another would lease for a vendor its own routing did not pick.
|
|
218
|
+
*
|
|
219
|
+
* `resolveAccountId` is part of it for a blunter reason: the proxy session token carries the SCOPE
|
|
220
|
+
* the spend gate reads, and `isOverBudget` only checks the ACCOUNT tier when the token names an
|
|
221
|
+
* account. A dispatcher that composed its own auth without it kept spending for an account that
|
|
222
|
+
* had blown its monthly budget, while the same models were refused for pipeline steps. And an
|
|
223
|
+
* unsigned scope reads as a caller with no account, not as a caller who forgot one.
|
|
224
|
+
*/
|
|
225
|
+
export declare function buildNodeJobAuthDeps(deps: {
|
|
226
|
+
config: AppConfig;
|
|
227
|
+
sessionSecret: string;
|
|
228
|
+
publicUrl: string;
|
|
229
|
+
subscriptions?: ProviderSubscriptionService;
|
|
230
|
+
personalSubscriptions?: PersonalSubscriptionService;
|
|
231
|
+
resolveAccountId?: (workspaceId: string) => Promise<string | null | undefined>;
|
|
232
|
+
}): ContainerJobAuthDependencies & {
|
|
233
|
+
hasSubscriptionToken?: (workspaceId: string, vendor: SubscriptionVendor) => Promise<boolean>;
|
|
234
|
+
hasPersonalSubscription?: (userId: string, vendor: SubscriptionVendor) => Promise<boolean>;
|
|
235
|
+
};
|
|
204
236
|
/**
|
|
205
237
|
* Build the environment AGENT DRY RUN prober for the Node family, gated on the same container
|
|
206
238
|
* prerequisites as the env-config repairer beside it: a runner transport, the proxy's public URL,
|
|
207
239
|
* a session secret and a dispatch mint. Absent any of them the self-test still runs in
|
|
208
240
|
* `provision` mode and `startTest` refuses `agent-probe` with a 409 that names the gap.
|
|
209
241
|
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
242
|
+
* The MODEL is resolved per dispatch, not here: the prober runs whatever the WORKSPACE's model
|
|
243
|
+
* preset names for its kind (`environment-prober-api` / `-ui`), with the frame's own pin ahead of
|
|
244
|
+
* it and the deployment's env routing behind it: the precedence a pipeline step already gets.
|
|
245
|
+
* Wiring cannot answer that, and the version that tried made a per-deployment guess and called it
|
|
246
|
+
* a routing decision: a workspace running everything on its Claude preset had its dry run
|
|
247
|
+
* dispatched at this facade's Qwen default, which the LLM proxy refused for having no key, while
|
|
248
|
+
* the subscription that WOULD have served it was never asked for. A subscription harness is
|
|
249
|
+
* therefore supported here rather than refused at wiring, and the auth deps below are the same
|
|
250
|
+
* ones the step executor uses. Mirror of the Worker's `selectEnvironmentProbeAgent`.
|
|
215
251
|
*/
|
|
216
252
|
export declare function selectNodeEnvironmentProbeAgent(deps: {
|
|
217
253
|
env: NodeJS.ProcessEnv;
|
|
@@ -219,7 +255,34 @@ export declare function selectNodeEnvironmentProbeAgent(deps: {
|
|
|
219
255
|
resolveTransport: ResolveRunnerTransport | null;
|
|
220
256
|
installationRepository: GitHubInstallationRepository;
|
|
221
257
|
repoRepository: Pick<RepoProjectionRepository, 'list'>;
|
|
258
|
+
/** The frame's own model pin + preset, read per dispatch by the shared single-job resolution. */
|
|
259
|
+
blockRepository: Pick<BlockRepository, 'get'>;
|
|
222
260
|
mintInstallationToken: MintInstallationToken | undefined;
|
|
261
|
+
/** The workspace's per-kind model default, from the preset in force. */
|
|
262
|
+
resolveWorkspaceModelDefault?: (workspaceId: string, agentKind: string, modelPresetId?: string) => Promise<string | undefined>;
|
|
263
|
+
/** That same preset's route order, so the prober walks the routes the preset ranked. */
|
|
264
|
+
resolvePresetProviderPreference?: (workspaceId: string, modelPresetId?: string) => Promise<readonly ModelFlavor[] | undefined>;
|
|
265
|
+
subscriptions?: ProviderSubscriptionService;
|
|
266
|
+
personalSubscriptions?: PersonalSubscriptionService;
|
|
267
|
+
/**
|
|
268
|
+
* The workspace's owning account, signed into the proxy session token so the ACCOUNT-tier spend
|
|
269
|
+
* gate applies to a dry run exactly as it does to a step. Unsigned, `isOverBudget` reads the
|
|
270
|
+
* token as a caller with no account and skips that tier entirely.
|
|
271
|
+
*/
|
|
272
|
+
resolveAccountId?: (workspaceId: string) => Promise<string | null | undefined>;
|
|
273
|
+
/**
|
|
274
|
+
* The initiator's local-runner declarations, so a preset naming an Ollama/LM Studio model
|
|
275
|
+
* resolves here to exactly the ref a pipeline step on the same frame would get.
|
|
276
|
+
*/
|
|
277
|
+
resolveLocalModelDeclarations?: (userId: string) => Promise<readonly LocalModelDeclarations[] | undefined>;
|
|
278
|
+
/**
|
|
279
|
+
* Where a SETTLED dry run's tokens are recorded. Required in practice for a
|
|
280
|
+
* subscription-routed prober: it talks to the vendor direct, so the LLM proxy meters none of it
|
|
281
|
+
* and this is the only path its burn reaches `llm_call_metrics`, the leased token's rotation
|
|
282
|
+
* counters and the modeled quota cycle. The step executor's own recorders, handed here rather
|
|
283
|
+
* than rebuilt.
|
|
284
|
+
*/
|
|
285
|
+
accounting?: ContainerJobAccountingDeps;
|
|
223
286
|
/** Where the container clones from, so a GitLab deployment probes its own instance. */
|
|
224
287
|
resolveRepoOrigin: ResolveRepoOrigin;
|
|
225
288
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-executor-deps.d.ts","sourceRoot":"","sources":["../src/container-executor-deps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"container-executor-deps.d.ts","sourceRoot":"","sources":["../src/container-executor-deps.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,OAAO,EAIL,2BAA2B,EAC3B,2BAA2B,EAE5B,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,2BAA2B,CAAA;AAElC,OAAO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,eAAe,EAAE,KAAK,CAAC,CAAA;IAC7C,qBAAqB,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACxD,wEAAwE;IACxE,4BAA4B,CAAC,EAAE,CAC7B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,aAAa,CAAC,EAAE,MAAM,KACnB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAChC,wFAAwF;IACxF,+BAA+B,CAAC,EAAE,CAChC,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,MAAM,KACnB,OAAO,CAAC,SAAS,WAAW,EAAE,GAAG,SAAS,CAAC,CAAA;IAChD,aAAa,CAAC,EAAE,2BAA2B,CAAA;IAC3C,qBAAqB,CAAC,EAAE,2BAA2B,CAAA;IACnD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAC9E;;;OAGG;IACH,6BAA6B,CAAC,EAAE,CAC9B,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,SAAS,sBAAsB,EAAE,GAAG,SAAS,CAAC,CAAA;IAC3D;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAA;IACvC,uFAAuF;IACvF,iBAAiB,EAAE,iBAAiB,CAAA;IACpC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAA;CAC1F,GAAG,8BAA8B,GAAG,SAAS,CAgD7C"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
// Container-agent-executor wiring for the Node facade, extracted out of `container.ts` so the
|
|
2
|
-
// composition root stays within the file-size budget. These are the seams `buildNodeContainer`
|
|
3
|
-
// (and the local facade / tests) compose: the runner-pool transport resolver, the
|
|
4
|
-
// provisioning-log wrapper, the container agent executor + repo bootstrapper + env-config
|
|
5
|
-
// repairer, the GitHub-issue filer, and the shared external trace-sink builder. Pure functions
|
|
6
|
-
// over explicit deps — no shared mutable state beyond the per-config trace-sink memo.
|
|
7
1
|
import { resolveAgentConfig, isProxyableProvider } from '@cat-factory/agents';
|
|
8
2
|
import { HttpRunnerPoolProvider, RunnerPoolConnectionService, LoggingRunnerTransport, PersonalSubscriptionService, ProviderSubscriptionService, createGitHubIssueViaToken, } from '@cat-factory/integrations';
|
|
9
3
|
import { SUBSCRIPTION_VENDORS, composeTraceSinks, isAmbientNativeVendor } from '@cat-factory/kernel';
|
|
10
4
|
import { AgentContextObservabilityService, } from '@cat-factory/orchestration';
|
|
11
5
|
import { createLangfuseSink } from '@cat-factory/observability-langfuse';
|
|
12
6
|
import { createNodeOtelSink } from '@cat-factory/observability-otel/node';
|
|
13
|
-
import { ContainerAgentExecutor, ContainerEnvConfigRepairer, ContainerEnvironmentProbeAgent, ContainerRepoBootstrapper, ContainerSessionService, GitHubAppRegistry, WebCryptoSecretCipher, DOCS, ENV_VARS_ANCHORS, SITE_DOCS, buildDispatchTokenMint, engineVcsProvider, ensureWorkBranchViaRest, logger, noRunnerBackendAvailableError, resolveUrlSafetyPolicy, operationalMetrics, } from '@cat-factory/server';
|
|
7
|
+
import { ContainerAgentExecutor, ContainerEnvConfigRepairer, ContainerEnvironmentProbeAgent, ContainerJobAuthResolver, ContainerRepoBootstrapper, ContainerSessionService, buildSingleKindModelResolver, GitHubAppRegistry, WebCryptoSecretCipher, DOCS, ENV_VARS_ANCHORS, SITE_DOCS, buildDispatchTokenMint, engineVcsProvider, ensureWorkBranchViaRest, logger, noRunnerBackendAvailableError, resolveUrlSafetyPolicy, operationalMetrics, } from '@cat-factory/server';
|
|
14
8
|
// HKDF domain tag separating runner-pool scheduler secrets from any other use of
|
|
15
9
|
// the same master key (mirrors the Worker's `cat-factory:runners`).
|
|
16
10
|
export const RUNNERS_CIPHER_INFO = 'cat-factory:runners';
|
|
@@ -187,7 +181,6 @@ export function buildNodeContainerExecutor(deps) {
|
|
|
187
181
|
// Multi-repo coding (service-connections phase 3): the implementer fans a cross-service
|
|
188
182
|
// change out across the task's own repo + each connected involved-service repo.
|
|
189
183
|
resolveRepoTargets,
|
|
190
|
-
...(resolveAccountId ? { resolveAccountId } : {}),
|
|
191
184
|
mintInstallationToken,
|
|
192
185
|
// Ensure the shared per-task work branch up front so every agent (including the
|
|
193
186
|
// read-only architect) operates on the same branch — idempotent, best-effort. Writers
|
|
@@ -201,15 +194,22 @@ export function buildNodeContainerExecutor(deps) {
|
|
|
201
194
|
branch,
|
|
202
195
|
create: options.create,
|
|
203
196
|
}),
|
|
204
|
-
|
|
205
|
-
//
|
|
206
|
-
//
|
|
207
|
-
|
|
197
|
+
// The credential channels every container dispatch shares (the pooled lease, the personal
|
|
198
|
+
// lease, the ambient-CLI predicate) from ONE composition, since the single-job flows beside
|
|
199
|
+
// this executor resolve their auth through the same resolver.
|
|
200
|
+
...buildNodeJobAuthDeps({
|
|
201
|
+
config,
|
|
202
|
+
sessionSecret,
|
|
203
|
+
publicUrl,
|
|
204
|
+
subscriptions,
|
|
205
|
+
personalSubscriptions,
|
|
206
|
+
resolveAccountId,
|
|
207
|
+
}),
|
|
208
|
+
// Pool-token usage attribution for usage-aware rotation. Beside the lease rather than in it:
|
|
209
|
+
// it is what a SETTLED job reports back, not what a dispatch is opened with.
|
|
208
210
|
...(subscriptions
|
|
209
211
|
? {
|
|
210
|
-
leaseSubscriptionToken: (workspaceId, vendor) => subscriptions.leaseToken(workspaceId, vendor),
|
|
211
212
|
recordSubscriptionUsage: (workspaceId, tokenId, usage) => subscriptions.recordTokenUsage(workspaceId, tokenId, usage),
|
|
212
|
-
hasSubscriptionToken: (workspaceId, vendor) => subscriptions.hasToken(workspaceId, vendor),
|
|
213
213
|
}
|
|
214
214
|
: {}),
|
|
215
215
|
// Per-call telemetry for the subscription harnesses (proxy-bypassing), recorded
|
|
@@ -222,35 +222,6 @@ export function buildNodeContainerExecutor(deps) {
|
|
|
222
222
|
// Modeled subscription quota-cycle tracking (Part B): fold a finished subscription
|
|
223
223
|
// run's tokens into the rolling windows, for BOTH pooled and personal runs.
|
|
224
224
|
...(recordSubscriptionQuotaUsage ? { recordSubscriptionQuotaUsage } : {}),
|
|
225
|
-
// Individual-usage harnesses (Claude) lease the run-initiator's OWN activated
|
|
226
|
-
// personal credential; absent ⇒ such models fail loudly at dispatch.
|
|
227
|
-
...(personalSubscriptions
|
|
228
|
-
? {
|
|
229
|
-
leasePersonalSubscriptionToken: (executionId, userId, vendor) => personalSubscriptions.leaseForRun(executionId, userId, vendor),
|
|
230
|
-
// Route a dual-mode individual model (GLM) to the initiator's own subscription
|
|
231
|
-
// when they have one; otherwise dispatch keeps it on the Cloudflare base.
|
|
232
|
-
hasPersonalSubscription: (userId, vendor) => personalSubscriptions.has(userId, vendor),
|
|
233
|
-
}
|
|
234
|
-
: {}),
|
|
235
|
-
// Native local execution (local facade, opt-in): run subscription-harness agents with
|
|
236
|
-
// the developer's OWN installed CLI + ambient login instead of leasing a credential.
|
|
237
|
-
// Ambient auth applies ONLY when the resolved harness is in the allow-list AND the
|
|
238
|
-
// vendor is that CLI's NATIVE vendor (no Anthropic-compatible base URL of its own:
|
|
239
|
-
// `claude` / `codex`). A non-native vendor reusing the `claude-code` harness
|
|
240
|
-
// (GLM/Kimi/DeepSeek carries its own `baseUrl`) is leased normally — otherwise ambient
|
|
241
|
-
// auth would silently drop that base URL and run the step on the developer's own
|
|
242
|
-
// Anthropic login instead of the pinned vendor.
|
|
243
|
-
...(config.nativeAmbientAuth && config.nativeAmbientAuth.length > 0
|
|
244
|
-
? {
|
|
245
|
-
// The allow-list + no-`baseUrl` check is the shared `isAmbientNativeVendor`
|
|
246
|
-
// predicate (so this can't drift from the personal-credential gate); the extra
|
|
247
|
-
// `harness === h` guard ensures the RESOLVED harness matches the vendor's own.
|
|
248
|
-
nativeAmbientAuth: (h, vendor) => vendor !== undefined &&
|
|
249
|
-
SUBSCRIPTION_VENDORS[vendor].harness === h &&
|
|
250
|
-
isAmbientNativeVendor(config.nativeAmbientAuth, vendor),
|
|
251
|
-
}
|
|
252
|
-
: {}),
|
|
253
|
-
proxyBaseUrl: `${publicUrl.replace(/\/+$/, '')}/v1`,
|
|
254
225
|
// Point container agents' web search at the backend search proxy (no provider key in
|
|
255
226
|
// the sandbox), but only for a run whose account has keys (resolved per run — see the
|
|
256
227
|
// call site), so the tool is never advertised to a run where it would just fail.
|
|
@@ -419,17 +390,86 @@ export function buildNodeGitHubIssueFiler(config, registry, resolveRepoTarget) {
|
|
|
419
390
|
return { externalId: `${repo.owner}/${repo.name}#${issue.number}`, url: issue.url };
|
|
420
391
|
};
|
|
421
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* The credential channels EVERY container dispatch on this facade shares, as one composition:
|
|
395
|
+
* the proxy session signer and its base URL, the pooled subscription lease, the run-initiator's
|
|
396
|
+
* personal lease, and the native ambient-CLI predicate.
|
|
397
|
+
*
|
|
398
|
+
* One builder because there is now more than one dispatcher (the step executor and the single-job
|
|
399
|
+
* flows beside it), and the ambient predicate in particular must not be re-derived per call site:
|
|
400
|
+
* it has to keep matching the personal-credential gate's own `isAmbientNativeVendor` decision, or
|
|
401
|
+
* a flow gates a credential it will not lease (or leases one nobody unlocked).
|
|
402
|
+
*
|
|
403
|
+
* The two `has*` predicates ride along because they are the same question asked at ROUTING time
|
|
404
|
+
* ("does this workspace/user hold a subscription for the vendor, so a dual-mode model should
|
|
405
|
+
* switch to it?"), and a dispatcher that resolved the model with one answer and the credential
|
|
406
|
+
* with another would lease for a vendor its own routing did not pick.
|
|
407
|
+
*
|
|
408
|
+
* `resolveAccountId` is part of it for a blunter reason: the proxy session token carries the SCOPE
|
|
409
|
+
* the spend gate reads, and `isOverBudget` only checks the ACCOUNT tier when the token names an
|
|
410
|
+
* account. A dispatcher that composed its own auth without it kept spending for an account that
|
|
411
|
+
* had blown its monthly budget, while the same models were refused for pipeline steps. And an
|
|
412
|
+
* unsigned scope reads as a caller with no account, not as a caller who forgot one.
|
|
413
|
+
*/
|
|
414
|
+
export function buildNodeJobAuthDeps(deps) {
|
|
415
|
+
const { config, subscriptions, personalSubscriptions } = deps;
|
|
416
|
+
return {
|
|
417
|
+
sessionService: new ContainerSessionService({ secret: deps.sessionSecret }),
|
|
418
|
+
proxyBaseUrl: `${deps.publicUrl.replace(/\/+$/, '')}/v1`,
|
|
419
|
+
...(deps.resolveAccountId ? { resolveAccountId: deps.resolveAccountId } : {}),
|
|
420
|
+
// The subscription harnesses (Claude Code / Codex) lease a pooled token; absent ⇒ those
|
|
421
|
+
// harnesses are unavailable and a subscription-only model fails loudly at dispatch.
|
|
422
|
+
...(subscriptions
|
|
423
|
+
? {
|
|
424
|
+
leaseSubscriptionToken: (workspaceId, vendor) => subscriptions.leaseToken(workspaceId, vendor),
|
|
425
|
+
hasSubscriptionToken: (workspaceId, vendor) => subscriptions.hasToken(workspaceId, vendor),
|
|
426
|
+
}
|
|
427
|
+
: {}),
|
|
428
|
+
// Individual-usage harnesses (Claude) lease the run-initiator's OWN activated
|
|
429
|
+
// personal credential; absent ⇒ such models fail loudly at dispatch.
|
|
430
|
+
...(personalSubscriptions
|
|
431
|
+
? {
|
|
432
|
+
leasePersonalSubscriptionToken: (executionId, userId, vendor) => personalSubscriptions.leaseForRun(executionId, userId, vendor),
|
|
433
|
+
// Route a dual-mode individual model (GLM) to the initiator's own subscription
|
|
434
|
+
// when they have one; otherwise dispatch keeps it on the Cloudflare base.
|
|
435
|
+
hasPersonalSubscription: (userId, vendor) => personalSubscriptions.has(userId, vendor),
|
|
436
|
+
}
|
|
437
|
+
: {}),
|
|
438
|
+
// Native local execution (local facade, opt-in): run subscription-harness agents with
|
|
439
|
+
// the developer's OWN installed CLI + ambient login instead of leasing a credential.
|
|
440
|
+
// Ambient auth applies ONLY when the resolved harness is in the allow-list AND the
|
|
441
|
+
// vendor is that CLI's NATIVE vendor (no Anthropic-compatible base URL of its own:
|
|
442
|
+
// `claude` / `codex`). A non-native vendor reusing the `claude-code` harness
|
|
443
|
+
// (GLM/Kimi/DeepSeek carries its own `baseUrl`) is leased normally, since otherwise ambient
|
|
444
|
+
// auth would silently drop that base URL and run the step on the developer's own
|
|
445
|
+
// Anthropic login instead of the pinned vendor.
|
|
446
|
+
...(config.nativeAmbientAuth && config.nativeAmbientAuth.length > 0
|
|
447
|
+
? {
|
|
448
|
+
// The allow-list + no-`baseUrl` check is the shared `isAmbientNativeVendor`
|
|
449
|
+
// predicate (so this can't drift from the personal-credential gate); the extra
|
|
450
|
+
// `harness === h` guard ensures the RESOLVED harness matches the vendor's own.
|
|
451
|
+
nativeAmbientAuth: (h, vendor) => vendor !== undefined &&
|
|
452
|
+
SUBSCRIPTION_VENDORS[vendor].harness === h &&
|
|
453
|
+
isAmbientNativeVendor(config.nativeAmbientAuth, vendor),
|
|
454
|
+
}
|
|
455
|
+
: {}),
|
|
456
|
+
};
|
|
457
|
+
}
|
|
422
458
|
/**
|
|
423
459
|
* Build the environment AGENT DRY RUN prober for the Node family, gated on the same container
|
|
424
460
|
* prerequisites as the env-config repairer beside it: a runner transport, the proxy's public URL,
|
|
425
461
|
* a session secret and a dispatch mint. Absent any of them the self-test still runs in
|
|
426
462
|
* `provision` mode and `startTest` refuses `agent-probe` with a 409 that names the gap.
|
|
427
463
|
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
464
|
+
* The MODEL is resolved per dispatch, not here: the prober runs whatever the WORKSPACE's model
|
|
465
|
+
* preset names for its kind (`environment-prober-api` / `-ui`), with the frame's own pin ahead of
|
|
466
|
+
* it and the deployment's env routing behind it: the precedence a pipeline step already gets.
|
|
467
|
+
* Wiring cannot answer that, and the version that tried made a per-deployment guess and called it
|
|
468
|
+
* a routing decision: a workspace running everything on its Claude preset had its dry run
|
|
469
|
+
* dispatched at this facade's Qwen default, which the LLM proxy refused for having no key, while
|
|
470
|
+
* the subscription that WOULD have served it was never asked for. A subscription harness is
|
|
471
|
+
* therefore supported here rather than refused at wiring, and the auth deps below are the same
|
|
472
|
+
* ones the step executor uses. Mirror of the Worker's `selectEnvironmentProbeAgent`.
|
|
433
473
|
*/
|
|
434
474
|
export function selectNodeEnvironmentProbeAgent(deps) {
|
|
435
475
|
const publicUrl = deps.env.PUBLIC_URL?.trim();
|
|
@@ -437,26 +477,44 @@ export function selectNodeEnvironmentProbeAgent(deps) {
|
|
|
437
477
|
if (!deps.resolveTransport || !publicUrl || !sessionSecret || !deps.mintInstallationToken) {
|
|
438
478
|
return undefined;
|
|
439
479
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
logger.warn('environment dry run: a tester routing model is not proxyable by the LLM proxy; ' +
|
|
449
|
-
'agent dry runs are disabled on this deployment.', { surface: unproxyable[0], provider: unproxyable[1].provider });
|
|
450
|
-
return undefined;
|
|
451
|
-
}
|
|
480
|
+
const authDeps = buildNodeJobAuthDeps({
|
|
481
|
+
config: deps.config,
|
|
482
|
+
sessionSecret,
|
|
483
|
+
publicUrl,
|
|
484
|
+
...(deps.subscriptions ? { subscriptions: deps.subscriptions } : {}),
|
|
485
|
+
...(deps.personalSubscriptions ? { personalSubscriptions: deps.personalSubscriptions } : {}),
|
|
486
|
+
...(deps.resolveAccountId ? { resolveAccountId: deps.resolveAccountId } : {}),
|
|
487
|
+
});
|
|
452
488
|
return new ContainerEnvironmentProbeAgent({
|
|
453
489
|
resolveTransport: deps.resolveTransport,
|
|
454
490
|
installationRepository: deps.installationRepository,
|
|
455
491
|
repoRepository: deps.repoRepository,
|
|
456
492
|
mintInstallationToken: deps.mintInstallationToken,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
493
|
+
// The step precedence, asked under the prober's own kind. The two `has*` predicates come off
|
|
494
|
+
// the SAME auth composition the lease below uses, so routing and leasing cannot disagree
|
|
495
|
+
// about which vendor this dispatch is on.
|
|
496
|
+
resolveModel: buildSingleKindModelResolver({
|
|
497
|
+
agentRouting: deps.config.agents.routing,
|
|
498
|
+
resolveBlockModel: deps.config.agents.resolveBlockModel,
|
|
499
|
+
blockRepository: deps.blockRepository,
|
|
500
|
+
...(deps.resolveWorkspaceModelDefault
|
|
501
|
+
? { resolveWorkspaceModelDefault: deps.resolveWorkspaceModelDefault }
|
|
502
|
+
: {}),
|
|
503
|
+
...(deps.resolvePresetProviderPreference
|
|
504
|
+
? { resolvePresetProviderPreference: deps.resolvePresetProviderPreference }
|
|
505
|
+
: {}),
|
|
506
|
+
...(deps.resolveLocalModelDeclarations
|
|
507
|
+
? { resolveLocalModelDeclarations: deps.resolveLocalModelDeclarations }
|
|
508
|
+
: {}),
|
|
509
|
+
...(authDeps.hasSubscriptionToken
|
|
510
|
+
? { hasSubscriptionToken: authDeps.hasSubscriptionToken }
|
|
511
|
+
: {}),
|
|
512
|
+
...(authDeps.hasPersonalSubscription
|
|
513
|
+
? { hasPersonalSubscription: authDeps.hasPersonalSubscription }
|
|
514
|
+
: {}),
|
|
515
|
+
}),
|
|
516
|
+
auth: new ContainerJobAuthResolver(authDeps),
|
|
517
|
+
...(deps.accounting ? { accounting: deps.accounting } : {}),
|
|
460
518
|
resolveRepoOrigin: deps.resolveRepoOrigin,
|
|
461
519
|
...(deps.resolveTestSecrets ? { resolveTestSecrets: deps.resolveTestSecrets } : {}),
|
|
462
520
|
...(deps.config.github.apiBase ? { githubApiBase: deps.config.github.apiBase } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-executor-deps.js","sourceRoot":"","sources":["../src/container-executor-deps.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,+FAA+F;AAC/F,kFAAkF;AAClF,0FAA0F;AAC1F,+FAA+F;AAC/F,sFAAsF;AACtF,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE7E,OAAO,EACL,sB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AAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,YAAY,EAAE,oBAAoB,EAAE,CAAA;AAyEpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,gBAAgB,EAC9B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC/C,IAAI,CA+FN;AA6ID,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AACvE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACnF,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAC3E,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAC1E,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAC7E,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAC7E,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AA0vB3E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,eAAe,CAmIjF"}
|
package/dist/container.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// backend, and carry NO runtime AWS SDK dependency (the token is minted with WebCrypto), so this
|
|
5
5
|
// adds no cost to a deployment that never uses EKS.
|
|
6
6
|
import {} from '@cat-factory/integrations';
|
|
7
|
-
import {} from '@cat-factory/kernel';
|
|
7
|
+
import { readCachedLocalModelDeclarations, } from '@cat-factory/kernel';
|
|
8
8
|
import { createCore } from '@cat-factory/orchestration';
|
|
9
9
|
import { ContainerSessionService, GitHubIdentityResolver, bedrockAllowListFromEnv, testEnvHasZeroConfigDefault, buildResolveRepoTarget, deploymentRepoOrigin, makePreviewJobBuilder, logger, mcpAuthServerContainerFields, mcpOAuthContainerFields, resolveUrlSafetyPolicy, WebCryptoSecretCipher, } from '@cat-factory/server';
|
|
10
10
|
// The built-in polling-gate suite (ci / conflicts / post-release-health + on-call). The facade
|
|
@@ -254,7 +254,35 @@ function applyNodePostAssemblyWiring(dependencies, ctx) {
|
|
|
254
254
|
resolveTransport: ctx.resolveTransport,
|
|
255
255
|
installationRepository: ctx.githubInstallationRepository,
|
|
256
256
|
repoRepository: ctx.repoProjectionRepository,
|
|
257
|
+
blockRepository: repos.blockRepository,
|
|
257
258
|
mintInstallationToken: ctx.bootstrapMintInstallationToken,
|
|
259
|
+
resolveWorkspaceModelDefault: ctx.resolveWorkspaceModelDefault,
|
|
260
|
+
resolvePresetProviderPreference: ctx.resolvePresetProviderPreference,
|
|
261
|
+
...(ctx.subscriptions ? { subscriptions: ctx.subscriptions } : {}),
|
|
262
|
+
...(ctx.personalSubscriptions ? { personalSubscriptions: ctx.personalSubscriptions } : {}),
|
|
263
|
+
// The SAME account scope the step executor signs into its proxy session tokens, so the
|
|
264
|
+
// account-tier spend gate applies to a dry run too.
|
|
265
|
+
resolveAccountId: (workspaceId) => repos.workspaceRepository.accountOf(workspaceId),
|
|
266
|
+
// The initiator's local runners, read through the shared cached projection the engine uses, so
|
|
267
|
+
// one resolution serves a dry run and a step on the same frame.
|
|
268
|
+
...(dependencies.localModelEndpointRepository
|
|
269
|
+
? {
|
|
270
|
+
resolveLocalModelDeclarations: (userId) => readCachedLocalModelDeclarations(options.caches?.localModelDeclarations, dependencies.localModelEndpointRepository, userId),
|
|
271
|
+
}
|
|
272
|
+
: {}),
|
|
273
|
+
// What a SETTLED dry run owes the ledger. A subscription-routed prober talks to the vendor
|
|
274
|
+
// direct, so nothing else meters it.
|
|
275
|
+
accounting: {
|
|
276
|
+
...(ctx.executorTelemetry.recordHarnessCalls
|
|
277
|
+
? { recordHarnessCalls: ctx.executorTelemetry.recordHarnessCalls }
|
|
278
|
+
: {}),
|
|
279
|
+
...(ctx.subscriptions
|
|
280
|
+
? {
|
|
281
|
+
recordSubscriptionUsage: (workspaceId, tokenId, usage) => ctx.subscriptions.recordTokenUsage(workspaceId, tokenId, usage),
|
|
282
|
+
}
|
|
283
|
+
: {}),
|
|
284
|
+
recordSubscriptionQuotaUsage: (target, usage) => ctx.subscriptionQuotaProvider.recordUsage(target, usage),
|
|
285
|
+
},
|
|
258
286
|
resolveRepoOrigin: options.resolveRepoOrigin ?? deploymentRepoOrigin(config),
|
|
259
287
|
...(ctx.resolveTestSecrets ? { resolveTestSecrets: ctx.resolveTestSecrets } : {}),
|
|
260
288
|
});
|
|
@@ -535,7 +563,7 @@ function finalizeGateProviders(providerRegistry, gateProviders) {
|
|
|
535
563
|
warnUnwiredGates(providerRegistry, logger);
|
|
536
564
|
}
|
|
537
565
|
function finalizeNodeContainer(bundle) {
|
|
538
|
-
const { artifactStore, config, options, env, db, repos, sourced, idGenerator, clock, standardAgentExecutor, modelProviderResolver, resolveWorkspaceModelDefault, resolvePresetProviderPreference, agentKindRegistry, providerRegistry, packageRegistrySecretCipher, githubInstallationRepository, resolveRunInitiatorToken, listWorkspaceRunRepos, environmentBackendRegistry, runnerBackendRegistry, customManifestTypeRegistry, gateRegistry, judgeRegistry, stepResolverRegistry, initiativePresetRegistry, apiKeys, subscriptions, personalSubscriptions, localModelEndpoints, openRouterCatalog, cloudflareModelsEnabled, deployDeps, runnerPoolConnectionRepository, agentContextObservability, searchQueryObservability, resolveTestSecretRefs,
|
|
566
|
+
const { artifactStore, config, options, env, db, repos, sourced, idGenerator, clock, standardAgentExecutor, modelProviderResolver, resolveWorkspaceModelDefault, resolvePresetProviderPreference, agentKindRegistry, providerRegistry, packageRegistrySecretCipher, githubInstallationRepository, resolveRunInitiatorToken, listWorkspaceRunRepos, environmentBackendRegistry, runnerBackendRegistry, customManifestTypeRegistry, gateRegistry, judgeRegistry, stepResolverRegistry, initiativePresetRegistry, apiKeys, subscriptions, personalSubscriptions, localModelEndpoints, openRouterCatalog, cloudflareModelsEnabled, deployDeps, runnerPoolConnectionRepository, agentContextObservability, searchQueryObservability, resolveTestSecretRefs, resolveValidationChecks, githubClient, tasks, fileGitHubIssue, issueWritebackProvider, githubGateDeps, githubModuleDeps, bootstrapJobRepository, repoBootstrapper, resolveRepoTarget, defaultWebSearchUpstream, appRegistry, repoProjectionRepository, entityProjectionRepositories, vcsRegistry, testSecretsService, capabilityCredentialsService, mcpOAuthService, toolSecretEnvironmentFallback, toolSecretResolver, validationConfigService, publicApiKeys, userSecrets, traceSink, } = bundle;
|
|
539
567
|
// Real-time event publisher + notification channel + optional consensus wrap, lifted into
|
|
540
568
|
// `container-realtime-deps.ts` to keep this root within the file-size budget.
|
|
541
569
|
const { slackDeps, executionEventPublisher, agentExecutor, notificationChannel, externalNotificationChannel, notificationWebhookSupport, notificationSettingsRepository, } = buildNodeRealtimeDeps({
|
|
@@ -640,21 +668,10 @@ function finalizeNodeContainer(bundle) {
|
|
|
640
668
|
});
|
|
641
669
|
// The post-assembly adjustments (preview module, env-config repairer, mothership re-sourcing),
|
|
642
670
|
// each of which needs the FINAL dependency object — see the collaborator.
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
repos,
|
|
648
|
-
resolveRepoTarget,
|
|
649
|
-
repoProjectionRepository,
|
|
650
|
-
baseDeployMint,
|
|
651
|
-
resolveTransport,
|
|
652
|
-
githubInstallationRepository,
|
|
653
|
-
bootstrapMintInstallationToken,
|
|
654
|
-
environmentBackendRegistry,
|
|
655
|
-
resolveTestSecrets,
|
|
656
|
-
remoteRepos,
|
|
657
|
-
});
|
|
671
|
+
// The BUNDLE itself, rather than a hand-copied subset of it: every field the post-assembly
|
|
672
|
+
// wiring reads is already on it, and a copied list is one more place a newly-needed dependency
|
|
673
|
+
// has to be threaded through (the prober's model resolution needed four).
|
|
674
|
+
applyNodePostAssemblyWiring(dependencies, bundle);
|
|
658
675
|
return projectNodeServerContainer({
|
|
659
676
|
dependencies,
|
|
660
677
|
config,
|