@sema-agent/settings-schema 6.3.0 → 7.0.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/CHANGELOG.md +207 -0
- package/README.md +40 -5
- package/bin/settings-schema.mjs +22 -0
- package/conformance/VERSION +1 -1
- package/conformance/cases/c48-s935-model-headers-transported/expected.json +115 -0
- package/conformance/cases/c48-s935-model-headers-transported/input.json +37 -0
- package/conformance/cases/c48-s935-model-headers-transported/meta.json +6 -0
- package/conformance/cases/c49-s935-model-headers-secret-entry-dropped/expected.json +98 -0
- package/conformance/cases/c49-s935-model-headers-secret-entry-dropped/input.json +28 -0
- package/conformance/cases/c49-s935-model-headers-secret-entry-dropped/meta.json +9 -0
- package/conformance/cases/c50-s784-lane-host-legal/expected.json +102 -0
- package/conformance/cases/c50-s784-lane-host-legal/input.json +29 -0
- package/conformance/cases/c50-s784-lane-host-legal/meta.json +5 -0
- package/conformance/cases/c51-s784-lane-e2b-legal/expected.json +104 -0
- package/conformance/cases/c51-s784-lane-e2b-legal/input.json +32 -0
- package/conformance/cases/c51-s784-lane-e2b-legal/meta.json +5 -0
- package/conformance/cases/c52-s784-lane-k8s-legal/expected.json +106 -0
- package/conformance/cases/c52-s784-lane-k8s-legal/input.json +34 -0
- package/conformance/cases/c52-s784-lane-k8s-legal/meta.json +5 -0
- package/conformance/cases/c53-s784-lane-ssh-legal/expected.json +106 -0
- package/conformance/cases/c53-s784-lane-ssh-legal/input.json +34 -0
- package/conformance/cases/c53-s784-lane-ssh-legal/meta.json +5 -0
- package/conformance/cases/c54-s784-lane-adb-legal/expected.json +102 -0
- package/conformance/cases/c54-s784-lane-adb-legal/input.json +29 -0
- package/conformance/cases/c54-s784-lane-adb-legal/meta.json +5 -0
- package/conformance/cases/c55-s784-lane-local-docker-legal/expected.json +103 -0
- package/conformance/cases/c55-s784-lane-local-docker-legal/input.json +30 -0
- package/conformance/cases/c55-s784-lane-local-docker-legal/meta.json +5 -0
- package/conformance/cases/c56-s784-lane-device-legal/expected.json +109 -0
- package/conformance/cases/c56-s784-lane-device-legal/input.json +36 -0
- package/conformance/cases/c56-s784-lane-device-legal/meta.json +5 -0
- package/conformance/cases/c57-s784-g1-enabled-no-lane/expected.json +83 -0
- package/conformance/cases/c57-s784-g1-enabled-no-lane/input.json +23 -0
- package/conformance/cases/c57-s784-g1-enabled-no-lane/meta.json +5 -0
- package/conformance/cases/c58-s784-g2-multitenant-host/expected.json +83 -0
- package/conformance/cases/c58-s784-g2-multitenant-host/input.json +34 -0
- package/conformance/cases/c58-s784-g2-multitenant-host/meta.json +5 -0
- package/conformance/cases/c59-s784-g3-k8s-missing-image/expected.json +83 -0
- package/conformance/cases/c59-s784-g3-k8s-missing-image/input.json +26 -0
- package/conformance/cases/c59-s784-g3-k8s-missing-image/meta.json +5 -0
- package/conformance/cases/c60-s784-g3-e2b-missing-key/expected.json +83 -0
- package/conformance/cases/c60-s784-g3-e2b-missing-key/input.json +26 -0
- package/conformance/cases/c60-s784-g3-e2b-missing-key/meta.json +5 -0
- package/conformance/cases/c61-s784-g3-other-lane-key/expected.json +83 -0
- package/conformance/cases/c61-s784-g3-other-lane-key/input.json +30 -0
- package/conformance/cases/c61-s784-g3-other-lane-key/meta.json +5 -0
- package/conformance/cases/c62-s784-g7a-session-tidb/expected.json +83 -0
- package/conformance/cases/c62-s784-g7a-session-tidb/input.json +27 -0
- package/conformance/cases/c62-s784-g7a-session-tidb/meta.json +5 -0
- package/conformance/cases/c63-s784-host-two-replicas/expected.json +83 -0
- package/conformance/cases/c63-s784-host-two-replicas/input.json +27 -0
- package/conformance/cases/c63-s784-host-two-replicas/meta.json +5 -0
- package/conformance/cases/c64-s784-multitenant-local-store/expected.json +83 -0
- package/conformance/cases/c64-s784-multitenant-local-store/input.json +30 -0
- package/conformance/cases/c64-s784-multitenant-local-store/meta.json +5 -0
- package/conformance/cases/c65-s784-pg-without-db/expected.json +83 -0
- package/conformance/cases/c65-s784-pg-without-db/input.json +27 -0
- package/conformance/cases/c65-s784-pg-without-db/meta.json +5 -0
- package/conformance/cases/c66-s784-memory-backend-mismatch/expected.json +83 -0
- package/conformance/cases/c66-s784-memory-backend-mismatch/input.json +36 -0
- package/conformance/cases/c66-s784-memory-backend-mismatch/meta.json +5 -0
- package/conformance/cases/c67-s784-retired-field-loud/expected.json +83 -0
- package/conformance/cases/c67-s784-retired-field-loud/input.json +22 -0
- package/conformance/cases/c67-s784-retired-field-loud/meta.json +5 -0
- package/conformance/cases/c68-s784-device-local-store/expected.json +83 -0
- package/conformance/cases/c68-s784-device-local-store/input.json +26 -0
- package/conformance/cases/c68-s784-device-local-store/meta.json +5 -0
- package/conformance/cases/cli04-env-value-with-newline/expected.json +13 -2
- package/conformance/cases/cli04-env-value-with-newline/input.json +8 -1
- package/conformance/cases/cli04-env-value-with-newline/meta.json +1 -1
- package/conformance/migrate-workers/m01-g5-k8s-env-lifted/expected.json +49 -0
- package/conformance/migrate-workers/m01-g5-k8s-env-lifted/input.json +26 -0
- package/conformance/migrate-workers/m01-g5-k8s-env-lifted/meta.json +4 -0
- package/conformance/migrate-workers/m02-g5-idempotent/expected.json +38 -0
- package/conformance/migrate-workers/m02-g5-idempotent/input.json +33 -0
- package/conformance/migrate-workers/m02-g5-idempotent/meta.json +5 -0
- package/conformance/migrate-workers/m03-g5-refused-no-lane/expected.json +71 -0
- package/conformance/migrate-workers/m03-g5-refused-no-lane/input.json +42 -0
- package/conformance/migrate-workers/m03-g5-refused-no-lane/meta.json +4 -0
- package/conformance/migrate-workers/m04-g7b-session-tidb-lifted/expected.json +52 -0
- package/conformance/migrate-workers/m04-g7b-session-tidb-lifted/input.json +30 -0
- package/conformance/migrate-workers/m04-g7b-session-tidb-lifted/meta.json +4 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.js +70 -0
- package/dist/execution-lane-index.d.ts +19 -0
- package/dist/execution-lane-index.js +23 -0
- package/dist/execution-lanes.d.ts +64 -0
- package/dist/execution-lanes.js +152 -0
- package/dist/file-edit.js +26 -21
- package/dist/hash.d.ts +3 -3
- package/dist/hash.js +3 -3
- package/dist/hooks.d.ts +12 -12
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/migrate-workers.d.ts +63 -0
- package/dist/migrate-workers.js +331 -0
- package/dist/remote-exec.d.ts +23 -64
- package/dist/remote-exec.js +20 -71
- package/dist/secret-refs.d.ts +7 -1
- package/dist/secret-refs.js +9 -3
- package/dist/types.d.ts +1382 -430
- package/dist/types.js +298 -76
- package/package.json +9 -1
package/dist/types.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare function extraBodyUnsafe(v: unknown): boolean;
|
|
|
56
56
|
/** A k8s resource quantity ("250m", "1", "0.5", "512Mi", "1Gi", "128M") — catches garbage at config-submit
|
|
57
57
|
* rather than surfacing as a reconcile ApplyError at the apiserver (consistent with ENV_NAME/DURATION guards). */
|
|
58
58
|
export declare const K8S_QUANTITY: z.ZodString;
|
|
59
|
-
/** A TCP port: 1–65535. ONE shared schema so every port field (workers.
|
|
59
|
+
/** A TCP port: 1–65535. ONE shared schema so every port field (workers.runtime.store.db.port, ssh.port, …) bounds
|
|
60
60
|
* the SAME way — a port of 65536/0/-1 is config corruption, reject it at validation, not at connect time. R16. */
|
|
61
61
|
export declare const TCP_PORT: z.ZodNumber;
|
|
62
62
|
/** Per-1M-token price ($/Mtok). Maps to the service's MODEL_COST_INPUT/OUTPUT/CACHE_READ/CACHE_WRITE
|
|
@@ -117,7 +117,8 @@ export declare const SealedApiKey: z.ZodObject<{
|
|
|
117
117
|
export type SealedApiKey = z.infer<typeof SealedApiKey>;
|
|
118
118
|
/** 谁来校验一个**解析透明键**的形。闭集:新增一员要在这里加词,穷举消费方即编译红。
|
|
119
119
|
* · `engine-ingest` —— 引擎摄入侧单点校验(不合形的那一条不挂并通告一次);
|
|
120
|
-
* · `consumer` ——
|
|
120
|
+
* · `consumer` —— 消费方的投影/执法点。坏值怎么处置(只丢那一个键 / 整条宿主条目不可用)是那个执法点自己的
|
|
121
|
+
* 契约,写在登记行的 `why` 里 —— 本包不替它定。 */
|
|
121
122
|
export type ParseTransparentValidator = "engine-ingest" | "consumer";
|
|
122
123
|
/** {@link PARSE_TRANSPARENT_KEYS} 的一行。 */
|
|
123
124
|
export interface ParseTransparentKey {
|
|
@@ -247,6 +248,16 @@ export declare const ModelEntry: z.ZodEffects<z.ZodObject<{
|
|
|
247
248
|
* deep to hash later. That is not shape validation — it is the boundary every free-form value must clear to
|
|
248
249
|
* enter the persisted config and `stableHash` (R18). */
|
|
249
250
|
compat: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
|
|
251
|
+
/** Per-model extra request headers, deployment ↔ provider (e.g. `{"anthropic-beta": "context-1m-2025-08-07"}` on an
|
|
252
|
+
* `anthropic-messages` entry). Real need: a beta that a shell passes as `--betas` / `ANTHROPIC_BETAS` never reaches the
|
|
253
|
+
* request the engine sends; the catalog entry is the deployment-level seat for it — and without this key the entry's
|
|
254
|
+
* declaration is stripped at parse on every read leg, so it never reaches the consumer at all.
|
|
255
|
+
* ABSENT = key not minted = today's behaviour, zero migration.
|
|
256
|
+
*
|
|
257
|
+
* **Parse-transparent** — who validates the shape, and why not here: {@link PARSE_TRANSPARENT_KEYS}
|
|
258
|
+
* (`models.models[].headers`). The ONE rejection that remains is the free-form SAFETY judgment shared with `compat` /
|
|
259
|
+
* `extraBody` ({@link vetFreeFormJson}). */
|
|
260
|
+
headers: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
|
|
250
261
|
/** 配额倍率(EXPERT-REDESIGN §4-1):该模型烧 token 双窗额度的倍率,默认 1。折算时点=weight-at-burn
|
|
251
262
|
* (记账时固化到 UsageEntry.quotaWeightAtUse/weightedTokens):改倍率只影响此后记账,不回算窗口内历史。 */
|
|
252
263
|
quotaWeight: z.ZodDefault<z.ZodNumber>;
|
|
@@ -283,6 +294,7 @@ export declare const ModelEntry: z.ZodEffects<z.ZodObject<{
|
|
|
283
294
|
} | undefined;
|
|
284
295
|
extraBody?: Record<string, unknown> | undefined;
|
|
285
296
|
compat?: unknown;
|
|
297
|
+
headers?: unknown;
|
|
286
298
|
notes?: string | undefined;
|
|
287
299
|
}, {
|
|
288
300
|
id: string;
|
|
@@ -313,6 +325,7 @@ export declare const ModelEntry: z.ZodEffects<z.ZodObject<{
|
|
|
313
325
|
} | undefined;
|
|
314
326
|
extraBody?: unknown;
|
|
315
327
|
compat?: unknown;
|
|
328
|
+
headers?: unknown;
|
|
316
329
|
quotaWeight?: number | undefined;
|
|
317
330
|
enabled?: boolean | undefined;
|
|
318
331
|
notes?: string | undefined;
|
|
@@ -347,6 +360,7 @@ export declare const ModelEntry: z.ZodEffects<z.ZodObject<{
|
|
|
347
360
|
} | undefined;
|
|
348
361
|
extraBody?: Record<string, unknown> | undefined;
|
|
349
362
|
compat?: unknown;
|
|
363
|
+
headers?: unknown;
|
|
350
364
|
notes?: string | undefined;
|
|
351
365
|
}, {
|
|
352
366
|
id: string;
|
|
@@ -377,6 +391,7 @@ export declare const ModelEntry: z.ZodEffects<z.ZodObject<{
|
|
|
377
391
|
} | undefined;
|
|
378
392
|
extraBody?: unknown;
|
|
379
393
|
compat?: unknown;
|
|
394
|
+
headers?: unknown;
|
|
380
395
|
quotaWeight?: number | undefined;
|
|
381
396
|
enabled?: boolean | undefined;
|
|
382
397
|
notes?: string | undefined;
|
|
@@ -585,6 +600,16 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
585
600
|
* deep to hash later. That is not shape validation — it is the boundary every free-form value must clear to
|
|
586
601
|
* enter the persisted config and `stableHash` (R18). */
|
|
587
602
|
compat: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
|
|
603
|
+
/** Per-model extra request headers, deployment ↔ provider (e.g. `{"anthropic-beta": "context-1m-2025-08-07"}` on an
|
|
604
|
+
* `anthropic-messages` entry). Real need: a beta that a shell passes as `--betas` / `ANTHROPIC_BETAS` never reaches the
|
|
605
|
+
* request the engine sends; the catalog entry is the deployment-level seat for it — and without this key the entry's
|
|
606
|
+
* declaration is stripped at parse on every read leg, so it never reaches the consumer at all.
|
|
607
|
+
* ABSENT = key not minted = today's behaviour, zero migration.
|
|
608
|
+
*
|
|
609
|
+
* **Parse-transparent** — who validates the shape, and why not here: {@link PARSE_TRANSPARENT_KEYS}
|
|
610
|
+
* (`models.models[].headers`). The ONE rejection that remains is the free-form SAFETY judgment shared with `compat` /
|
|
611
|
+
* `extraBody` ({@link vetFreeFormJson}). */
|
|
612
|
+
headers: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
|
|
588
613
|
/** 配额倍率(EXPERT-REDESIGN §4-1):该模型烧 token 双窗额度的倍率,默认 1。折算时点=weight-at-burn
|
|
589
614
|
* (记账时固化到 UsageEntry.quotaWeightAtUse/weightedTokens):改倍率只影响此后记账,不回算窗口内历史。 */
|
|
590
615
|
quotaWeight: z.ZodDefault<z.ZodNumber>;
|
|
@@ -621,6 +646,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
621
646
|
} | undefined;
|
|
622
647
|
extraBody?: Record<string, unknown> | undefined;
|
|
623
648
|
compat?: unknown;
|
|
649
|
+
headers?: unknown;
|
|
624
650
|
notes?: string | undefined;
|
|
625
651
|
}, {
|
|
626
652
|
id: string;
|
|
@@ -651,6 +677,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
651
677
|
} | undefined;
|
|
652
678
|
extraBody?: unknown;
|
|
653
679
|
compat?: unknown;
|
|
680
|
+
headers?: unknown;
|
|
654
681
|
quotaWeight?: number | undefined;
|
|
655
682
|
enabled?: boolean | undefined;
|
|
656
683
|
notes?: string | undefined;
|
|
@@ -685,6 +712,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
685
712
|
} | undefined;
|
|
686
713
|
extraBody?: Record<string, unknown> | undefined;
|
|
687
714
|
compat?: unknown;
|
|
715
|
+
headers?: unknown;
|
|
688
716
|
notes?: string | undefined;
|
|
689
717
|
}, {
|
|
690
718
|
id: string;
|
|
@@ -715,6 +743,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
715
743
|
} | undefined;
|
|
716
744
|
extraBody?: unknown;
|
|
717
745
|
compat?: unknown;
|
|
746
|
+
headers?: unknown;
|
|
718
747
|
quotaWeight?: number | undefined;
|
|
719
748
|
enabled?: boolean | undefined;
|
|
720
749
|
notes?: string | undefined;
|
|
@@ -839,6 +868,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
839
868
|
} | undefined;
|
|
840
869
|
extraBody?: Record<string, unknown> | undefined;
|
|
841
870
|
compat?: unknown;
|
|
871
|
+
headers?: unknown;
|
|
842
872
|
notes?: string | undefined;
|
|
843
873
|
}[];
|
|
844
874
|
roles: Partial<Record<"default" | "summarize" | "subagent" | "team" | "synthesize" | "verifier" | "classifier" | "consolidate", {
|
|
@@ -894,6 +924,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
894
924
|
} | undefined;
|
|
895
925
|
extraBody?: unknown;
|
|
896
926
|
compat?: unknown;
|
|
927
|
+
headers?: unknown;
|
|
897
928
|
quotaWeight?: number | undefined;
|
|
898
929
|
enabled?: boolean | undefined;
|
|
899
930
|
notes?: string | undefined;
|
|
@@ -953,6 +984,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
953
984
|
} | undefined;
|
|
954
985
|
extraBody?: Record<string, unknown> | undefined;
|
|
955
986
|
compat?: unknown;
|
|
987
|
+
headers?: unknown;
|
|
956
988
|
notes?: string | undefined;
|
|
957
989
|
}[];
|
|
958
990
|
roles: Partial<Record<"default" | "summarize" | "subagent" | "team" | "synthesize" | "verifier" | "classifier" | "consolidate", {
|
|
@@ -1008,6 +1040,7 @@ export declare const ModelsConfig: z.ZodEffects<z.ZodObject<{
|
|
|
1008
1040
|
} | undefined;
|
|
1009
1041
|
extraBody?: unknown;
|
|
1010
1042
|
compat?: unknown;
|
|
1043
|
+
headers?: unknown;
|
|
1011
1044
|
quotaWeight?: number | undefined;
|
|
1012
1045
|
enabled?: boolean | undefined;
|
|
1013
1046
|
notes?: string | undefined;
|
|
@@ -4715,8 +4748,9 @@ export declare const ExecutionPolicy: z.ZodEffects<z.ZodObject<{
|
|
|
4715
4748
|
* shell locks sandbox-enabled by policy; user settings can't turn it off — CC 同款语义). */
|
|
4716
4749
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
4717
4750
|
/** Which execution lanes are allowed. OPEN value domain — z.string(), NEVER an enum: adding a lane
|
|
4718
|
-
* must not be a BREAKING schema change (promised to the service).
|
|
4719
|
-
*
|
|
4751
|
+
* must not be a BREAKING schema change (promised to the service). The closed set of lanes a worker can
|
|
4752
|
+
* declare is `EXECUTION_LANE_WORDS` (`execution-lanes.ts`, 7.0.0) — read it there, not from a copy in this
|
|
4753
|
+
* comment. Unknown strings are consumer-defined. */
|
|
4720
4754
|
allowedLanes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4721
4755
|
/** Org 默认会话镜像目标(0.10.1,附B 两层)。ABSENT = INERT(center 未管镜像,壳解析序里本腿为空)。
|
|
4722
4756
|
* 读损档随域(DOMAIN_READ_FALLBACK.execution="throw" 已覆盖:损坏绝不静默退默认放权)。 */
|
|
@@ -5569,26 +5603,15 @@ export declare const WorkerLifecycle: z.ZodObject<{
|
|
|
5569
5603
|
dependsOn?: string[] | undefined;
|
|
5570
5604
|
}>;
|
|
5571
5605
|
export type WorkerLifecycle = z.infer<typeof WorkerLifecycle>;
|
|
5572
|
-
/**
|
|
5573
|
-
*
|
|
5574
|
-
* passthrough may NOT set these (use the dedicated field). Blocks the council's two escape-hatch risks:
|
|
5575
|
-
* redirecting model/traffic or disabling auth (PORT, MODEL_x, SESSION_BACKEND, REQUIRE_PRINCIPAL, gateway), and
|
|
5576
|
-
* shadowing a projected secret with a literal (MODEL_API_KEY, SERVICE_AUTH_TOKEN, …). LOG_LEVEL is intentionally
|
|
5577
|
-
* NOT reserved (benign, overridable for debugging). Keep in sync with workerToServiceEnv.
|
|
5578
|
-
*
|
|
5579
|
-
* ⚠️ SCOPE (0.1.30, after the R22→0.1.29 detour): this ONLY blocks keys that have a DEDICATED structured field
|
|
5580
|
-
* or secretRef — so an operator is steered to that field instead of duplicating/shadowing it via env. It does
|
|
5581
|
-
* NOT block the per-worker EXECUTION-SUBSTRATE config an operator legitimately sets via worker.env, which the
|
|
5582
|
-
* live fleet relies on: `REMOTE_EXEC` (direct=k8s, canary=e2b set it HERE), `K8S_*` (SANDBOX_IMAGE/NAMESPACE/
|
|
5583
|
-
* RUNTIME_CLASS/…), `E2B_*`, `MINIO_*`, `SSH_*`, `ADB_*`. worker.env is the OPERATOR's per-worker deployment env
|
|
5584
|
-
* (publisher-gated, projected by the orchestrator to the worker pod) — NOT untrusted-task-controlled, so there
|
|
5585
|
-
* is no "sandbox escape" to block here. R22 wrongly added those substrate keys treating worker.env as
|
|
5586
|
-
* task-controlled; it would have REJECTED the live direct/canary workers on deploy. Reverted in 0.1.30. (Literal
|
|
5587
|
-
* SECRET values pasted into env are still caught separately by containsSecretToken; substrate CREDS belong in
|
|
5588
|
-
* secretEnv as env-NAME refs.)
|
|
5589
|
-
*/
|
|
5606
|
+
/** 结构化 WorkerSpec 字段已经产出的 env 名 —— 通用 `env` / `secretEnv` 逃生口**不许**设它们(用专属字段)。由
|
|
5607
|
+
* `RESERVED_ENV_FIELD`(名 → 唯一写位)的键派生;增删理由见那张表的头注。 */
|
|
5590
5608
|
export declare const RESERVED_WORKER_ENV: Set<string>;
|
|
5591
|
-
|
|
5609
|
+
/** 一台 worker 的名字(唯一 → 容器名 / compose project / 缺省路由键)—— **唯一**的名字判据。中心在租约 / 用量 /
|
|
5610
|
+
* discovery `?worker=` 等面上校验外部传来的 worker 名时读它(不抄窄正则)。7.0.0 起单独导出:`WorkerSpec` 不再是普通
|
|
5611
|
+
* 对象 schema(预处理 + 跨字段判据),`WorkerSpec.shape.name` 不复存在。 */
|
|
5612
|
+
export declare const WORKER_NAME: z.ZodString;
|
|
5613
|
+
/** 一台 worker 的声明。写闸 = `WorkerSpec.safeParse`(7.0.0 删除项读到即拒 + 两个结构块 + 跨字段判据)。 */
|
|
5614
|
+
export declare const WorkerSpec: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5592
5615
|
/** 唯一 → 容器名 / compose project. */
|
|
5593
5616
|
name: z.ZodString;
|
|
5594
5617
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -5645,39 +5668,39 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5645
5668
|
cpu: z.ZodOptional<z.ZodString>;
|
|
5646
5669
|
memory: z.ZodOptional<z.ZodString>;
|
|
5647
5670
|
}, "strip", z.ZodTypeAny, {
|
|
5648
|
-
cpu?: string | undefined;
|
|
5649
5671
|
memory?: string | undefined;
|
|
5650
|
-
}, {
|
|
5651
5672
|
cpu?: string | undefined;
|
|
5673
|
+
}, {
|
|
5652
5674
|
memory?: string | undefined;
|
|
5675
|
+
cpu?: string | undefined;
|
|
5653
5676
|
}>>;
|
|
5654
5677
|
limits: z.ZodOptional<z.ZodObject<{
|
|
5655
5678
|
cpu: z.ZodOptional<z.ZodString>;
|
|
5656
5679
|
memory: z.ZodOptional<z.ZodString>;
|
|
5657
5680
|
}, "strip", z.ZodTypeAny, {
|
|
5658
|
-
cpu?: string | undefined;
|
|
5659
5681
|
memory?: string | undefined;
|
|
5660
|
-
}, {
|
|
5661
5682
|
cpu?: string | undefined;
|
|
5683
|
+
}, {
|
|
5662
5684
|
memory?: string | undefined;
|
|
5685
|
+
cpu?: string | undefined;
|
|
5663
5686
|
}>>;
|
|
5664
5687
|
}, "strip", z.ZodTypeAny, {
|
|
5665
5688
|
requests?: {
|
|
5666
|
-
cpu?: string | undefined;
|
|
5667
5689
|
memory?: string | undefined;
|
|
5690
|
+
cpu?: string | undefined;
|
|
5668
5691
|
} | undefined;
|
|
5669
5692
|
limits?: {
|
|
5670
|
-
cpu?: string | undefined;
|
|
5671
5693
|
memory?: string | undefined;
|
|
5694
|
+
cpu?: string | undefined;
|
|
5672
5695
|
} | undefined;
|
|
5673
5696
|
}, {
|
|
5674
5697
|
requests?: {
|
|
5675
|
-
cpu?: string | undefined;
|
|
5676
5698
|
memory?: string | undefined;
|
|
5699
|
+
cpu?: string | undefined;
|
|
5677
5700
|
} | undefined;
|
|
5678
5701
|
limits?: {
|
|
5679
|
-
cpu?: string | undefined;
|
|
5680
5702
|
memory?: string | undefined;
|
|
5703
|
+
cpu?: string | undefined;
|
|
5681
5704
|
} | undefined;
|
|
5682
5705
|
}>>;
|
|
5683
5706
|
/** Scheduling-framework knobs (CONTROL-PLANE-SCHEDULING-DESIGN, 产品拍板 D1/D3 2026-07-04). Optional and
|
|
@@ -5726,11 +5749,88 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5726
5749
|
} | undefined;
|
|
5727
5750
|
drainGraceMs?: number | undefined;
|
|
5728
5751
|
}>>;
|
|
5729
|
-
/** 运行时 (非 secret). 映射到 service
|
|
5752
|
+
/** 运行时 (非 secret). 映射到 service REQUIRE_PRINCIPAL / RATE_LIMIT_RPM / … 与两个结构块(7.0.0)。 */
|
|
5730
5753
|
runtime: z.ZodObject<{
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5754
|
+
/** 7.0.0 执行车道块(见 `ExecutionBlock`)。enabled 的 worker 必填(WorkerSpec 层判);停用的可缺。 */
|
|
5755
|
+
execution: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
5756
|
+
lane: z.ZodEnum<["host", "e2b", "k8s", "ssh", "adb", "local-docker", "device"]>;
|
|
5757
|
+
coords: z.ZodDefault<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
|
|
5758
|
+
secretRefs: z.ZodDefault<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
|
|
5759
|
+
}, "strip", z.ZodTypeAny, {
|
|
5760
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
5761
|
+
secretRefs: Record<string, string>;
|
|
5762
|
+
coords: Record<string, string>;
|
|
5763
|
+
}, {
|
|
5764
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
5765
|
+
secretRefs?: Record<string, string> | undefined;
|
|
5766
|
+
coords?: Record<string, string> | undefined;
|
|
5767
|
+
}>, {
|
|
5768
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
5769
|
+
secretRefs: Record<string, string>;
|
|
5770
|
+
coords: Record<string, string>;
|
|
5771
|
+
}, {
|
|
5772
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
5773
|
+
secretRefs?: Record<string, string> | undefined;
|
|
5774
|
+
coords?: Record<string, string> | undefined;
|
|
5775
|
+
}>>;
|
|
5776
|
+
/** 7.0.0 存储块(见 `StoreBlock`)。enabled 的 worker 必填(WorkerSpec 层判);停用的可缺。 */
|
|
5777
|
+
store: z.ZodOptional<z.ZodObject<{
|
|
5778
|
+
backend: z.ZodEnum<["mysql", "pg", "local", "memory"]>;
|
|
5779
|
+
session: z.ZodDefault<z.ZodEnum<["memory", "mysql", "auto"]>>;
|
|
5780
|
+
memory: z.ZodDefault<z.ZodObject<{
|
|
5781
|
+
engine: z.ZodDefault<z.ZodEnum<["on", "off"]>>;
|
|
5782
|
+
backend: z.ZodDefault<z.ZodEnum<["file", "pg", "tidb"]>>;
|
|
5783
|
+
}, "strip", z.ZodTypeAny, {
|
|
5784
|
+
backend: "pg" | "file" | "tidb";
|
|
5785
|
+
engine: "on" | "off";
|
|
5786
|
+
}, {
|
|
5787
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
5788
|
+
engine?: "on" | "off" | undefined;
|
|
5789
|
+
}>>;
|
|
5790
|
+
/** SQL 服务器坐标(中立,一份;名族由 `backend` 决定)。 */
|
|
5791
|
+
db: z.ZodOptional<z.ZodObject<{
|
|
5792
|
+
host: z.ZodEffects<z.ZodString, string, string>;
|
|
5793
|
+
port: z.ZodNumber;
|
|
5794
|
+
user: z.ZodEffects<z.ZodString, string, string>;
|
|
5795
|
+
database: z.ZodEffects<z.ZodString, string, string>;
|
|
5796
|
+
}, "strip", z.ZodTypeAny, {
|
|
5797
|
+
host: string;
|
|
5798
|
+
port: number;
|
|
5799
|
+
user: string;
|
|
5800
|
+
database: string;
|
|
5801
|
+
}, {
|
|
5802
|
+
host: string;
|
|
5803
|
+
port: number;
|
|
5804
|
+
user: string;
|
|
5805
|
+
database: string;
|
|
5806
|
+
}>>;
|
|
5807
|
+
}, "strip", z.ZodTypeAny, {
|
|
5808
|
+
memory: {
|
|
5809
|
+
backend: "pg" | "file" | "tidb";
|
|
5810
|
+
engine: "on" | "off";
|
|
5811
|
+
};
|
|
5812
|
+
session: "mysql" | "memory" | "auto";
|
|
5813
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
5814
|
+
db?: {
|
|
5815
|
+
host: string;
|
|
5816
|
+
port: number;
|
|
5817
|
+
user: string;
|
|
5818
|
+
database: string;
|
|
5819
|
+
} | undefined;
|
|
5820
|
+
}, {
|
|
5821
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
5822
|
+
memory?: {
|
|
5823
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
5824
|
+
engine?: "on" | "off" | undefined;
|
|
5825
|
+
} | undefined;
|
|
5826
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
5827
|
+
db?: {
|
|
5828
|
+
host: string;
|
|
5829
|
+
port: number;
|
|
5830
|
+
user: string;
|
|
5831
|
+
database: string;
|
|
5832
|
+
} | undefined;
|
|
5833
|
+
}>>;
|
|
5734
5834
|
scenario: z.ZodOptional<z.ZodString>;
|
|
5735
5835
|
requirePrincipal: z.ZodDefault<z.ZodBoolean>;
|
|
5736
5836
|
rateLimitRpm: z.ZodDefault<z.ZodNumber>;
|
|
@@ -5741,38 +5841,61 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5741
5841
|
* default → absent never materialises → no spec-hash churn. Hash-included (read at boot → cap change recreates). */
|
|
5742
5842
|
maxPrincipalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
5743
5843
|
}, "strip", z.ZodTypeAny, {
|
|
5744
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
5745
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
5746
5844
|
requirePrincipal: boolean;
|
|
5747
5845
|
rateLimitRpm: number;
|
|
5748
|
-
|
|
5846
|
+
execution?: {
|
|
5847
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
5848
|
+
secretRefs: Record<string, string>;
|
|
5849
|
+
coords: Record<string, string>;
|
|
5850
|
+
} | undefined;
|
|
5851
|
+
store?: {
|
|
5852
|
+
memory: {
|
|
5853
|
+
backend: "pg" | "file" | "tidb";
|
|
5854
|
+
engine: "on" | "off";
|
|
5855
|
+
};
|
|
5856
|
+
session: "mysql" | "memory" | "auto";
|
|
5857
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
5858
|
+
db?: {
|
|
5859
|
+
host: string;
|
|
5860
|
+
port: number;
|
|
5861
|
+
user: string;
|
|
5862
|
+
database: string;
|
|
5863
|
+
} | undefined;
|
|
5864
|
+
} | undefined;
|
|
5749
5865
|
scenario?: string | undefined;
|
|
5750
5866
|
maxPrincipalCostUsd?: number | undefined;
|
|
5751
5867
|
}, {
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5868
|
+
execution?: {
|
|
5869
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
5870
|
+
secretRefs?: Record<string, string> | undefined;
|
|
5871
|
+
coords?: Record<string, string> | undefined;
|
|
5872
|
+
} | undefined;
|
|
5873
|
+
store?: {
|
|
5874
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
5875
|
+
memory?: {
|
|
5876
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
5877
|
+
engine?: "on" | "off" | undefined;
|
|
5878
|
+
} | undefined;
|
|
5879
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
5880
|
+
db?: {
|
|
5881
|
+
host: string;
|
|
5882
|
+
port: number;
|
|
5883
|
+
user: string;
|
|
5884
|
+
database: string;
|
|
5885
|
+
} | undefined;
|
|
5886
|
+
} | undefined;
|
|
5755
5887
|
scenario?: string | undefined;
|
|
5756
5888
|
requirePrincipal?: boolean | undefined;
|
|
5757
5889
|
rateLimitRpm?: number | undefined;
|
|
5758
5890
|
maxPrincipalCostUsd?: number | undefined;
|
|
5759
5891
|
}>;
|
|
5760
|
-
/** 物理坐标 (非 secret). 映射到 GIT_API_BASEURL
|
|
5892
|
+
/** 物理坐标 (非 secret). 映射到 GIT_API_BASEURL。7.0.0 起 SQL 坐标在 `runtime.store.db`(`tidb*` 三键删除)。 */
|
|
5761
5893
|
coords: z.ZodDefault<z.ZodObject<{
|
|
5762
5894
|
gitApiBaseUrl: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>, z.ZodLiteral<"">]>;
|
|
5763
|
-
tidbHost: z.ZodOptional<z.ZodString>;
|
|
5764
|
-
tidbPort: z.ZodOptional<z.ZodNumber>;
|
|
5765
|
-
tidbUser: z.ZodOptional<z.ZodString>;
|
|
5766
5895
|
}, "strip", z.ZodTypeAny, {
|
|
5767
5896
|
gitApiBaseUrl?: string | undefined;
|
|
5768
|
-
tidbHost?: string | undefined;
|
|
5769
|
-
tidbPort?: number | undefined;
|
|
5770
|
-
tidbUser?: string | undefined;
|
|
5771
5897
|
}, {
|
|
5772
5898
|
gitApiBaseUrl?: string | undefined;
|
|
5773
|
-
tidbHost?: string | undefined;
|
|
5774
|
-
tidbPort?: number | undefined;
|
|
5775
|
-
tidbUser?: string | undefined;
|
|
5776
5899
|
}>>;
|
|
5777
5900
|
secretRefs: z.ZodObject<{
|
|
5778
5901
|
/** NAME of the host env var holding the model API key → service MODEL_API_KEY (或 anthropic 时 ANTHROPIC_API_KEY). */
|
|
@@ -5781,18 +5904,19 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5781
5904
|
serviceAuthTokenEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5782
5905
|
/** → GIT_API_TOKEN (只读,读被评审 repo). */
|
|
5783
5906
|
gitTokenEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5784
|
-
/** →
|
|
5785
|
-
|
|
5907
|
+
/** 7.0.0:SQL 店的口令 → `MYSQL_PASSWORD` / `PG_PASSWORD`(渲染器按 `runtime.store.backend` 选名族)。
|
|
5908
|
+
* 在场 ⇔ `runtime.store.backend` ∈ {mysql, pg}(WorkerSpec 层判,与 `runtime.store.db` 同一条规则)。取代 6.x 的 `tidbPasswordEnv`。 */
|
|
5909
|
+
dbPasswordEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5786
5910
|
}, "strip", z.ZodTypeAny, {
|
|
5787
5911
|
apiKeyEnv: string;
|
|
5788
5912
|
serviceAuthTokenEnv?: string | undefined;
|
|
5789
5913
|
gitTokenEnv?: string | undefined;
|
|
5790
|
-
|
|
5914
|
+
dbPasswordEnv?: string | undefined;
|
|
5791
5915
|
}, {
|
|
5792
5916
|
apiKeyEnv: string;
|
|
5793
5917
|
serviceAuthTokenEnv?: string | undefined;
|
|
5794
5918
|
gitTokenEnv?: string | undefined;
|
|
5795
|
-
|
|
5919
|
+
dbPasswordEnv?: string | undefined;
|
|
5796
5920
|
}>;
|
|
5797
5921
|
/**
|
|
5798
5922
|
* 通用 env 透传(逃生口)——给**没有专属结构化字段**的 service env 用,让任意 worker 声明自己的 app 专属变量
|
|
@@ -5873,32 +5997,130 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5873
5997
|
signature: z.ZodOptional<z.ZodString>;
|
|
5874
5998
|
notes: z.ZodOptional<z.ZodString>;
|
|
5875
5999
|
}, "strip", z.ZodTypeAny, {
|
|
6000
|
+
host: string;
|
|
6001
|
+
secretRefs: {
|
|
6002
|
+
apiKeyEnv: string;
|
|
6003
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
6004
|
+
gitTokenEnv?: string | undefined;
|
|
6005
|
+
dbPasswordEnv?: string | undefined;
|
|
6006
|
+
};
|
|
6007
|
+
coords: {
|
|
6008
|
+
gitApiBaseUrl?: string | undefined;
|
|
6009
|
+
};
|
|
5876
6010
|
name: string;
|
|
5877
6011
|
enabled: boolean;
|
|
5878
|
-
host: string;
|
|
5879
6012
|
image: string;
|
|
5880
6013
|
runtime: {
|
|
5881
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
5882
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
5883
6014
|
requirePrincipal: boolean;
|
|
5884
6015
|
rateLimitRpm: number;
|
|
5885
|
-
|
|
6016
|
+
execution?: {
|
|
6017
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6018
|
+
secretRefs: Record<string, string>;
|
|
6019
|
+
coords: Record<string, string>;
|
|
6020
|
+
} | undefined;
|
|
6021
|
+
store?: {
|
|
6022
|
+
memory: {
|
|
6023
|
+
backend: "pg" | "file" | "tidb";
|
|
6024
|
+
engine: "on" | "off";
|
|
6025
|
+
};
|
|
6026
|
+
session: "mysql" | "memory" | "auto";
|
|
6027
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6028
|
+
db?: {
|
|
6029
|
+
host: string;
|
|
6030
|
+
port: number;
|
|
6031
|
+
user: string;
|
|
6032
|
+
database: string;
|
|
6033
|
+
} | undefined;
|
|
6034
|
+
} | undefined;
|
|
5886
6035
|
scenario?: string | undefined;
|
|
5887
6036
|
maxPrincipalCostUsd?: number | undefined;
|
|
5888
6037
|
};
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
6038
|
+
notes?: string | undefined;
|
|
6039
|
+
routePrefix?: string | undefined;
|
|
6040
|
+
replicas?: number | undefined;
|
|
6041
|
+
autoscaling?: {
|
|
6042
|
+
minReplicas: number;
|
|
6043
|
+
maxReplicas: number;
|
|
6044
|
+
targetCpuPercent?: number | undefined;
|
|
6045
|
+
} | undefined;
|
|
6046
|
+
resources?: {
|
|
6047
|
+
requests?: {
|
|
6048
|
+
memory?: string | undefined;
|
|
6049
|
+
cpu?: string | undefined;
|
|
6050
|
+
} | undefined;
|
|
6051
|
+
limits?: {
|
|
6052
|
+
memory?: string | undefined;
|
|
6053
|
+
cpu?: string | undefined;
|
|
6054
|
+
} | undefined;
|
|
6055
|
+
} | undefined;
|
|
6056
|
+
fleet?: {
|
|
6057
|
+
dispatch?: {
|
|
6058
|
+
strategy: "round-robin" | "least-inflight" | "consistent-hash";
|
|
6059
|
+
sessionAffinity: boolean;
|
|
6060
|
+
maxInflight?: number | undefined;
|
|
6061
|
+
perActorMaxInflight?: number | undefined;
|
|
6062
|
+
maxCostUsd?: number | undefined;
|
|
6063
|
+
} | undefined;
|
|
6064
|
+
drainGraceMs?: number | undefined;
|
|
6065
|
+
} | undefined;
|
|
6066
|
+
env?: Record<string, string> | undefined;
|
|
6067
|
+
secretEnv?: Record<string, string> | undefined;
|
|
6068
|
+
recreateNonce?: string | undefined;
|
|
6069
|
+
lifecycle?: {
|
|
6070
|
+
kind: "persistent" | "ephemeral";
|
|
6071
|
+
ttl?: string | undefined;
|
|
6072
|
+
idleTimeout?: string | undefined;
|
|
6073
|
+
owner?: string | undefined;
|
|
6074
|
+
purpose?: string | undefined;
|
|
6075
|
+
dependsOn?: string[] | undefined;
|
|
6076
|
+
} | undefined;
|
|
6077
|
+
placement?: {
|
|
6078
|
+
auto: boolean;
|
|
6079
|
+
requires: string[];
|
|
6080
|
+
spread?: string | undefined;
|
|
6081
|
+
} | undefined;
|
|
6082
|
+
roster?: string | undefined;
|
|
6083
|
+
signature?: string | undefined;
|
|
6084
|
+
}, {
|
|
5895
6085
|
secretRefs: {
|
|
5896
6086
|
apiKeyEnv: string;
|
|
5897
6087
|
serviceAuthTokenEnv?: string | undefined;
|
|
5898
6088
|
gitTokenEnv?: string | undefined;
|
|
5899
|
-
|
|
6089
|
+
dbPasswordEnv?: string | undefined;
|
|
5900
6090
|
};
|
|
6091
|
+
name: string;
|
|
6092
|
+
runtime: {
|
|
6093
|
+
execution?: {
|
|
6094
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6095
|
+
secretRefs?: Record<string, string> | undefined;
|
|
6096
|
+
coords?: Record<string, string> | undefined;
|
|
6097
|
+
} | undefined;
|
|
6098
|
+
store?: {
|
|
6099
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6100
|
+
memory?: {
|
|
6101
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
6102
|
+
engine?: "on" | "off" | undefined;
|
|
6103
|
+
} | undefined;
|
|
6104
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
6105
|
+
db?: {
|
|
6106
|
+
host: string;
|
|
6107
|
+
port: number;
|
|
6108
|
+
user: string;
|
|
6109
|
+
database: string;
|
|
6110
|
+
} | undefined;
|
|
6111
|
+
} | undefined;
|
|
6112
|
+
scenario?: string | undefined;
|
|
6113
|
+
requirePrincipal?: boolean | undefined;
|
|
6114
|
+
rateLimitRpm?: number | undefined;
|
|
6115
|
+
maxPrincipalCostUsd?: number | undefined;
|
|
6116
|
+
};
|
|
6117
|
+
host?: string | undefined;
|
|
6118
|
+
coords?: {
|
|
6119
|
+
gitApiBaseUrl?: string | undefined;
|
|
6120
|
+
} | undefined;
|
|
6121
|
+
enabled?: boolean | undefined;
|
|
5901
6122
|
notes?: string | undefined;
|
|
6123
|
+
image?: string | undefined;
|
|
5902
6124
|
routePrefix?: string | undefined;
|
|
5903
6125
|
replicas?: number | undefined;
|
|
5904
6126
|
autoscaling?: {
|
|
@@ -5908,12 +6130,97 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5908
6130
|
} | undefined;
|
|
5909
6131
|
resources?: {
|
|
5910
6132
|
requests?: {
|
|
5911
|
-
cpu?: string | undefined;
|
|
5912
6133
|
memory?: string | undefined;
|
|
6134
|
+
cpu?: string | undefined;
|
|
5913
6135
|
} | undefined;
|
|
5914
6136
|
limits?: {
|
|
6137
|
+
memory?: string | undefined;
|
|
6138
|
+
cpu?: string | undefined;
|
|
6139
|
+
} | undefined;
|
|
6140
|
+
} | undefined;
|
|
6141
|
+
fleet?: {
|
|
6142
|
+
dispatch?: {
|
|
6143
|
+
strategy?: "round-robin" | "least-inflight" | "consistent-hash" | undefined;
|
|
6144
|
+
sessionAffinity?: boolean | undefined;
|
|
6145
|
+
maxInflight?: number | undefined;
|
|
6146
|
+
perActorMaxInflight?: number | undefined;
|
|
6147
|
+
maxCostUsd?: number | undefined;
|
|
6148
|
+
} | undefined;
|
|
6149
|
+
drainGraceMs?: number | undefined;
|
|
6150
|
+
} | undefined;
|
|
6151
|
+
env?: Record<string, string> | undefined;
|
|
6152
|
+
secretEnv?: Record<string, string> | undefined;
|
|
6153
|
+
recreateNonce?: string | undefined;
|
|
6154
|
+
lifecycle?: {
|
|
6155
|
+
kind?: "persistent" | "ephemeral" | undefined;
|
|
6156
|
+
ttl?: string | undefined;
|
|
6157
|
+
idleTimeout?: string | undefined;
|
|
6158
|
+
owner?: string | undefined;
|
|
6159
|
+
purpose?: string | undefined;
|
|
6160
|
+
dependsOn?: string[] | undefined;
|
|
6161
|
+
} | undefined;
|
|
6162
|
+
placement?: {
|
|
6163
|
+
auto?: boolean | undefined;
|
|
6164
|
+
requires?: string[] | undefined;
|
|
6165
|
+
spread?: string | undefined;
|
|
6166
|
+
} | undefined;
|
|
6167
|
+
roster?: string | undefined;
|
|
6168
|
+
signature?: string | undefined;
|
|
6169
|
+
}>, {
|
|
6170
|
+
host: string;
|
|
6171
|
+
secretRefs: {
|
|
6172
|
+
apiKeyEnv: string;
|
|
6173
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
6174
|
+
gitTokenEnv?: string | undefined;
|
|
6175
|
+
dbPasswordEnv?: string | undefined;
|
|
6176
|
+
};
|
|
6177
|
+
coords: {
|
|
6178
|
+
gitApiBaseUrl?: string | undefined;
|
|
6179
|
+
};
|
|
6180
|
+
name: string;
|
|
6181
|
+
enabled: boolean;
|
|
6182
|
+
image: string;
|
|
6183
|
+
runtime: {
|
|
6184
|
+
requirePrincipal: boolean;
|
|
6185
|
+
rateLimitRpm: number;
|
|
6186
|
+
execution?: {
|
|
6187
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6188
|
+
secretRefs: Record<string, string>;
|
|
6189
|
+
coords: Record<string, string>;
|
|
6190
|
+
} | undefined;
|
|
6191
|
+
store?: {
|
|
6192
|
+
memory: {
|
|
6193
|
+
backend: "pg" | "file" | "tidb";
|
|
6194
|
+
engine: "on" | "off";
|
|
6195
|
+
};
|
|
6196
|
+
session: "mysql" | "memory" | "auto";
|
|
6197
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6198
|
+
db?: {
|
|
6199
|
+
host: string;
|
|
6200
|
+
port: number;
|
|
6201
|
+
user: string;
|
|
6202
|
+
database: string;
|
|
6203
|
+
} | undefined;
|
|
6204
|
+
} | undefined;
|
|
6205
|
+
scenario?: string | undefined;
|
|
6206
|
+
maxPrincipalCostUsd?: number | undefined;
|
|
6207
|
+
};
|
|
6208
|
+
notes?: string | undefined;
|
|
6209
|
+
routePrefix?: string | undefined;
|
|
6210
|
+
replicas?: number | undefined;
|
|
6211
|
+
autoscaling?: {
|
|
6212
|
+
minReplicas: number;
|
|
6213
|
+
maxReplicas: number;
|
|
6214
|
+
targetCpuPercent?: number | undefined;
|
|
6215
|
+
} | undefined;
|
|
6216
|
+
resources?: {
|
|
6217
|
+
requests?: {
|
|
6218
|
+
memory?: string | undefined;
|
|
5915
6219
|
cpu?: string | undefined;
|
|
6220
|
+
} | undefined;
|
|
6221
|
+
limits?: {
|
|
5916
6222
|
memory?: string | undefined;
|
|
6223
|
+
cpu?: string | undefined;
|
|
5917
6224
|
} | undefined;
|
|
5918
6225
|
} | undefined;
|
|
5919
6226
|
fleet?: {
|
|
@@ -5945,25 +6252,44 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5945
6252
|
roster?: string | undefined;
|
|
5946
6253
|
signature?: string | undefined;
|
|
5947
6254
|
}, {
|
|
6255
|
+
secretRefs: {
|
|
6256
|
+
apiKeyEnv: string;
|
|
6257
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
6258
|
+
gitTokenEnv?: string | undefined;
|
|
6259
|
+
dbPasswordEnv?: string | undefined;
|
|
6260
|
+
};
|
|
5948
6261
|
name: string;
|
|
5949
6262
|
runtime: {
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
6263
|
+
execution?: {
|
|
6264
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6265
|
+
secretRefs?: Record<string, string> | undefined;
|
|
6266
|
+
coords?: Record<string, string> | undefined;
|
|
6267
|
+
} | undefined;
|
|
6268
|
+
store?: {
|
|
6269
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6270
|
+
memory?: {
|
|
6271
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
6272
|
+
engine?: "on" | "off" | undefined;
|
|
6273
|
+
} | undefined;
|
|
6274
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
6275
|
+
db?: {
|
|
6276
|
+
host: string;
|
|
6277
|
+
port: number;
|
|
6278
|
+
user: string;
|
|
6279
|
+
database: string;
|
|
6280
|
+
} | undefined;
|
|
6281
|
+
} | undefined;
|
|
5953
6282
|
scenario?: string | undefined;
|
|
5954
6283
|
requirePrincipal?: boolean | undefined;
|
|
5955
6284
|
rateLimitRpm?: number | undefined;
|
|
5956
6285
|
maxPrincipalCostUsd?: number | undefined;
|
|
5957
6286
|
};
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
tidbPasswordEnv?: string | undefined;
|
|
5963
|
-
};
|
|
6287
|
+
host?: string | undefined;
|
|
6288
|
+
coords?: {
|
|
6289
|
+
gitApiBaseUrl?: string | undefined;
|
|
6290
|
+
} | undefined;
|
|
5964
6291
|
enabled?: boolean | undefined;
|
|
5965
6292
|
notes?: string | undefined;
|
|
5966
|
-
host?: string | undefined;
|
|
5967
6293
|
image?: string | undefined;
|
|
5968
6294
|
routePrefix?: string | undefined;
|
|
5969
6295
|
replicas?: number | undefined;
|
|
@@ -5974,12 +6300,12 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5974
6300
|
} | undefined;
|
|
5975
6301
|
resources?: {
|
|
5976
6302
|
requests?: {
|
|
5977
|
-
cpu?: string | undefined;
|
|
5978
6303
|
memory?: string | undefined;
|
|
6304
|
+
cpu?: string | undefined;
|
|
5979
6305
|
} | undefined;
|
|
5980
6306
|
limits?: {
|
|
5981
|
-
cpu?: string | undefined;
|
|
5982
6307
|
memory?: string | undefined;
|
|
6308
|
+
cpu?: string | undefined;
|
|
5983
6309
|
} | undefined;
|
|
5984
6310
|
} | undefined;
|
|
5985
6311
|
fleet?: {
|
|
@@ -5992,12 +6318,6 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
5992
6318
|
} | undefined;
|
|
5993
6319
|
drainGraceMs?: number | undefined;
|
|
5994
6320
|
} | undefined;
|
|
5995
|
-
coords?: {
|
|
5996
|
-
gitApiBaseUrl?: string | undefined;
|
|
5997
|
-
tidbHost?: string | undefined;
|
|
5998
|
-
tidbPort?: number | undefined;
|
|
5999
|
-
tidbUser?: string | undefined;
|
|
6000
|
-
} | undefined;
|
|
6001
6321
|
env?: Record<string, string> | undefined;
|
|
6002
6322
|
secretEnv?: Record<string, string> | undefined;
|
|
6003
6323
|
recreateNonce?: string | undefined;
|
|
@@ -6016,32 +6336,117 @@ export declare const WorkerSpec: z.ZodObject<{
|
|
|
6016
6336
|
} | undefined;
|
|
6017
6337
|
roster?: string | undefined;
|
|
6018
6338
|
signature?: string | undefined;
|
|
6019
|
-
}
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
/** S/M/L 资源套餐常量(EXPERT-REDESIGN §3 四问③,E1 定档)——workers 向导的规格套餐与 E2 placement 的
|
|
6027
|
-
* 默认折算**同源引用这一份**(worker 无 requests 时按 S 折算,§2-4)。值为 k8s quantity 串,直接落
|
|
6028
|
-
* `WorkerSpec.resources`;「自定义」= 不用套餐、直接写 resources。定档口径:S=轻量单副本(默认档,略高于
|
|
6029
|
-
* backend 兜底 50m/128Mi 的真实工作水位);M=常规编码 agent;L=重载(大 repo/多并发 turn)。 */
|
|
6030
|
-
export declare const WORKER_RESOURCE_PRESETS: {
|
|
6031
|
-
readonly S: {
|
|
6032
|
-
readonly requests: {
|
|
6033
|
-
readonly cpu: "250m";
|
|
6034
|
-
readonly memory: "512Mi";
|
|
6035
|
-
};
|
|
6036
|
-
readonly limits: {
|
|
6037
|
-
readonly cpu: "1";
|
|
6038
|
-
readonly memory: "1Gi";
|
|
6039
|
-
};
|
|
6339
|
+
}>, {
|
|
6340
|
+
host: string;
|
|
6341
|
+
secretRefs: {
|
|
6342
|
+
apiKeyEnv: string;
|
|
6343
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
6344
|
+
gitTokenEnv?: string | undefined;
|
|
6345
|
+
dbPasswordEnv?: string | undefined;
|
|
6040
6346
|
};
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6347
|
+
coords: {
|
|
6348
|
+
gitApiBaseUrl?: string | undefined;
|
|
6349
|
+
};
|
|
6350
|
+
name: string;
|
|
6351
|
+
enabled: boolean;
|
|
6352
|
+
image: string;
|
|
6353
|
+
runtime: {
|
|
6354
|
+
requirePrincipal: boolean;
|
|
6355
|
+
rateLimitRpm: number;
|
|
6356
|
+
execution?: {
|
|
6357
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6358
|
+
secretRefs: Record<string, string>;
|
|
6359
|
+
coords: Record<string, string>;
|
|
6360
|
+
} | undefined;
|
|
6361
|
+
store?: {
|
|
6362
|
+
memory: {
|
|
6363
|
+
backend: "pg" | "file" | "tidb";
|
|
6364
|
+
engine: "on" | "off";
|
|
6365
|
+
};
|
|
6366
|
+
session: "mysql" | "memory" | "auto";
|
|
6367
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6368
|
+
db?: {
|
|
6369
|
+
host: string;
|
|
6370
|
+
port: number;
|
|
6371
|
+
user: string;
|
|
6372
|
+
database: string;
|
|
6373
|
+
} | undefined;
|
|
6374
|
+
} | undefined;
|
|
6375
|
+
scenario?: string | undefined;
|
|
6376
|
+
maxPrincipalCostUsd?: number | undefined;
|
|
6377
|
+
};
|
|
6378
|
+
notes?: string | undefined;
|
|
6379
|
+
routePrefix?: string | undefined;
|
|
6380
|
+
replicas?: number | undefined;
|
|
6381
|
+
autoscaling?: {
|
|
6382
|
+
minReplicas: number;
|
|
6383
|
+
maxReplicas: number;
|
|
6384
|
+
targetCpuPercent?: number | undefined;
|
|
6385
|
+
} | undefined;
|
|
6386
|
+
resources?: {
|
|
6387
|
+
requests?: {
|
|
6388
|
+
memory?: string | undefined;
|
|
6389
|
+
cpu?: string | undefined;
|
|
6390
|
+
} | undefined;
|
|
6391
|
+
limits?: {
|
|
6392
|
+
memory?: string | undefined;
|
|
6393
|
+
cpu?: string | undefined;
|
|
6394
|
+
} | undefined;
|
|
6395
|
+
} | undefined;
|
|
6396
|
+
fleet?: {
|
|
6397
|
+
dispatch?: {
|
|
6398
|
+
strategy: "round-robin" | "least-inflight" | "consistent-hash";
|
|
6399
|
+
sessionAffinity: boolean;
|
|
6400
|
+
maxInflight?: number | undefined;
|
|
6401
|
+
perActorMaxInflight?: number | undefined;
|
|
6402
|
+
maxCostUsd?: number | undefined;
|
|
6403
|
+
} | undefined;
|
|
6404
|
+
drainGraceMs?: number | undefined;
|
|
6405
|
+
} | undefined;
|
|
6406
|
+
env?: Record<string, string> | undefined;
|
|
6407
|
+
secretEnv?: Record<string, string> | undefined;
|
|
6408
|
+
recreateNonce?: string | undefined;
|
|
6409
|
+
lifecycle?: {
|
|
6410
|
+
kind: "persistent" | "ephemeral";
|
|
6411
|
+
ttl?: string | undefined;
|
|
6412
|
+
idleTimeout?: string | undefined;
|
|
6413
|
+
owner?: string | undefined;
|
|
6414
|
+
purpose?: string | undefined;
|
|
6415
|
+
dependsOn?: string[] | undefined;
|
|
6416
|
+
} | undefined;
|
|
6417
|
+
placement?: {
|
|
6418
|
+
auto: boolean;
|
|
6419
|
+
requires: string[];
|
|
6420
|
+
spread?: string | undefined;
|
|
6421
|
+
} | undefined;
|
|
6422
|
+
roster?: string | undefined;
|
|
6423
|
+
signature?: string | undefined;
|
|
6424
|
+
}, unknown>;
|
|
6425
|
+
export type WorkerSpec = z.infer<typeof WorkerSpec>;
|
|
6426
|
+
/** Effective route key for a worker = explicit routePrefix, else its name. */
|
|
6427
|
+
export declare function workerRouteKey(w: {
|
|
6428
|
+
name: string;
|
|
6429
|
+
routePrefix?: string;
|
|
6430
|
+
}): string;
|
|
6431
|
+
/** S/M/L 资源套餐常量(EXPERT-REDESIGN §3 四问③,E1 定档)——workers 向导的规格套餐与 E2 placement 的
|
|
6432
|
+
* 默认折算**同源引用这一份**(worker 无 requests 时按 S 折算,§2-4)。值为 k8s quantity 串,直接落
|
|
6433
|
+
* `WorkerSpec.resources`;「自定义」= 不用套餐、直接写 resources。定档口径:S=轻量单副本(默认档,略高于
|
|
6434
|
+
* backend 兜底 50m/128Mi 的真实工作水位);M=常规编码 agent;L=重载(大 repo/多并发 turn)。 */
|
|
6435
|
+
export declare const WORKER_RESOURCE_PRESETS: {
|
|
6436
|
+
readonly S: {
|
|
6437
|
+
readonly requests: {
|
|
6438
|
+
readonly cpu: "250m";
|
|
6439
|
+
readonly memory: "512Mi";
|
|
6440
|
+
};
|
|
6441
|
+
readonly limits: {
|
|
6442
|
+
readonly cpu: "1";
|
|
6443
|
+
readonly memory: "1Gi";
|
|
6444
|
+
};
|
|
6445
|
+
};
|
|
6446
|
+
readonly M: {
|
|
6447
|
+
readonly requests: {
|
|
6448
|
+
readonly cpu: "500m";
|
|
6449
|
+
readonly memory: "1Gi";
|
|
6045
6450
|
};
|
|
6046
6451
|
readonly limits: {
|
|
6047
6452
|
readonly cpu: "2";
|
|
@@ -6061,7 +6466,7 @@ export declare const WORKER_RESOURCE_PRESETS: {
|
|
|
6061
6466
|
};
|
|
6062
6467
|
export type WorkerResourcePreset = keyof typeof WORKER_RESOURCE_PRESETS;
|
|
6063
6468
|
export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
6064
|
-
workers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6469
|
+
workers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
6065
6470
|
/** 唯一 → 容器名 / compose project. */
|
|
6066
6471
|
name: z.ZodString;
|
|
6067
6472
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -6118,39 +6523,39 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6118
6523
|
cpu: z.ZodOptional<z.ZodString>;
|
|
6119
6524
|
memory: z.ZodOptional<z.ZodString>;
|
|
6120
6525
|
}, "strip", z.ZodTypeAny, {
|
|
6121
|
-
cpu?: string | undefined;
|
|
6122
6526
|
memory?: string | undefined;
|
|
6123
|
-
}, {
|
|
6124
6527
|
cpu?: string | undefined;
|
|
6528
|
+
}, {
|
|
6125
6529
|
memory?: string | undefined;
|
|
6530
|
+
cpu?: string | undefined;
|
|
6126
6531
|
}>>;
|
|
6127
6532
|
limits: z.ZodOptional<z.ZodObject<{
|
|
6128
6533
|
cpu: z.ZodOptional<z.ZodString>;
|
|
6129
6534
|
memory: z.ZodOptional<z.ZodString>;
|
|
6130
6535
|
}, "strip", z.ZodTypeAny, {
|
|
6131
|
-
cpu?: string | undefined;
|
|
6132
6536
|
memory?: string | undefined;
|
|
6133
|
-
}, {
|
|
6134
6537
|
cpu?: string | undefined;
|
|
6538
|
+
}, {
|
|
6135
6539
|
memory?: string | undefined;
|
|
6540
|
+
cpu?: string | undefined;
|
|
6136
6541
|
}>>;
|
|
6137
6542
|
}, "strip", z.ZodTypeAny, {
|
|
6138
6543
|
requests?: {
|
|
6139
|
-
cpu?: string | undefined;
|
|
6140
6544
|
memory?: string | undefined;
|
|
6545
|
+
cpu?: string | undefined;
|
|
6141
6546
|
} | undefined;
|
|
6142
6547
|
limits?: {
|
|
6143
|
-
cpu?: string | undefined;
|
|
6144
6548
|
memory?: string | undefined;
|
|
6549
|
+
cpu?: string | undefined;
|
|
6145
6550
|
} | undefined;
|
|
6146
6551
|
}, {
|
|
6147
6552
|
requests?: {
|
|
6148
|
-
cpu?: string | undefined;
|
|
6149
6553
|
memory?: string | undefined;
|
|
6554
|
+
cpu?: string | undefined;
|
|
6150
6555
|
} | undefined;
|
|
6151
6556
|
limits?: {
|
|
6152
|
-
cpu?: string | undefined;
|
|
6153
6557
|
memory?: string | undefined;
|
|
6558
|
+
cpu?: string | undefined;
|
|
6154
6559
|
} | undefined;
|
|
6155
6560
|
}>>;
|
|
6156
6561
|
/** Scheduling-framework knobs (CONTROL-PLANE-SCHEDULING-DESIGN, 产品拍板 D1/D3 2026-07-04). Optional and
|
|
@@ -6199,11 +6604,88 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6199
6604
|
} | undefined;
|
|
6200
6605
|
drainGraceMs?: number | undefined;
|
|
6201
6606
|
}>>;
|
|
6202
|
-
/** 运行时 (非 secret). 映射到 service
|
|
6607
|
+
/** 运行时 (非 secret). 映射到 service REQUIRE_PRINCIPAL / RATE_LIMIT_RPM / … 与两个结构块(7.0.0)。 */
|
|
6203
6608
|
runtime: z.ZodObject<{
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6609
|
+
/** 7.0.0 执行车道块(见 `ExecutionBlock`)。enabled 的 worker 必填(WorkerSpec 层判);停用的可缺。 */
|
|
6610
|
+
execution: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
6611
|
+
lane: z.ZodEnum<["host", "e2b", "k8s", "ssh", "adb", "local-docker", "device"]>;
|
|
6612
|
+
coords: z.ZodDefault<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
|
|
6613
|
+
secretRefs: z.ZodDefault<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
|
|
6614
|
+
}, "strip", z.ZodTypeAny, {
|
|
6615
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6616
|
+
secretRefs: Record<string, string>;
|
|
6617
|
+
coords: Record<string, string>;
|
|
6618
|
+
}, {
|
|
6619
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6620
|
+
secretRefs?: Record<string, string> | undefined;
|
|
6621
|
+
coords?: Record<string, string> | undefined;
|
|
6622
|
+
}>, {
|
|
6623
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6624
|
+
secretRefs: Record<string, string>;
|
|
6625
|
+
coords: Record<string, string>;
|
|
6626
|
+
}, {
|
|
6627
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6628
|
+
secretRefs?: Record<string, string> | undefined;
|
|
6629
|
+
coords?: Record<string, string> | undefined;
|
|
6630
|
+
}>>;
|
|
6631
|
+
/** 7.0.0 存储块(见 `StoreBlock`)。enabled 的 worker 必填(WorkerSpec 层判);停用的可缺。 */
|
|
6632
|
+
store: z.ZodOptional<z.ZodObject<{
|
|
6633
|
+
backend: z.ZodEnum<["mysql", "pg", "local", "memory"]>;
|
|
6634
|
+
session: z.ZodDefault<z.ZodEnum<["memory", "mysql", "auto"]>>;
|
|
6635
|
+
memory: z.ZodDefault<z.ZodObject<{
|
|
6636
|
+
engine: z.ZodDefault<z.ZodEnum<["on", "off"]>>;
|
|
6637
|
+
backend: z.ZodDefault<z.ZodEnum<["file", "pg", "tidb"]>>;
|
|
6638
|
+
}, "strip", z.ZodTypeAny, {
|
|
6639
|
+
backend: "pg" | "file" | "tidb";
|
|
6640
|
+
engine: "on" | "off";
|
|
6641
|
+
}, {
|
|
6642
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
6643
|
+
engine?: "on" | "off" | undefined;
|
|
6644
|
+
}>>;
|
|
6645
|
+
/** SQL 服务器坐标(中立,一份;名族由 `backend` 决定)。 */
|
|
6646
|
+
db: z.ZodOptional<z.ZodObject<{
|
|
6647
|
+
host: z.ZodEffects<z.ZodString, string, string>;
|
|
6648
|
+
port: z.ZodNumber;
|
|
6649
|
+
user: z.ZodEffects<z.ZodString, string, string>;
|
|
6650
|
+
database: z.ZodEffects<z.ZodString, string, string>;
|
|
6651
|
+
}, "strip", z.ZodTypeAny, {
|
|
6652
|
+
host: string;
|
|
6653
|
+
port: number;
|
|
6654
|
+
user: string;
|
|
6655
|
+
database: string;
|
|
6656
|
+
}, {
|
|
6657
|
+
host: string;
|
|
6658
|
+
port: number;
|
|
6659
|
+
user: string;
|
|
6660
|
+
database: string;
|
|
6661
|
+
}>>;
|
|
6662
|
+
}, "strip", z.ZodTypeAny, {
|
|
6663
|
+
memory: {
|
|
6664
|
+
backend: "pg" | "file" | "tidb";
|
|
6665
|
+
engine: "on" | "off";
|
|
6666
|
+
};
|
|
6667
|
+
session: "mysql" | "memory" | "auto";
|
|
6668
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6669
|
+
db?: {
|
|
6670
|
+
host: string;
|
|
6671
|
+
port: number;
|
|
6672
|
+
user: string;
|
|
6673
|
+
database: string;
|
|
6674
|
+
} | undefined;
|
|
6675
|
+
}, {
|
|
6676
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6677
|
+
memory?: {
|
|
6678
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
6679
|
+
engine?: "on" | "off" | undefined;
|
|
6680
|
+
} | undefined;
|
|
6681
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
6682
|
+
db?: {
|
|
6683
|
+
host: string;
|
|
6684
|
+
port: number;
|
|
6685
|
+
user: string;
|
|
6686
|
+
database: string;
|
|
6687
|
+
} | undefined;
|
|
6688
|
+
}>>;
|
|
6207
6689
|
scenario: z.ZodOptional<z.ZodString>;
|
|
6208
6690
|
requirePrincipal: z.ZodDefault<z.ZodBoolean>;
|
|
6209
6691
|
rateLimitRpm: z.ZodDefault<z.ZodNumber>;
|
|
@@ -6214,38 +6696,61 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6214
6696
|
* default → absent never materialises → no spec-hash churn. Hash-included (read at boot → cap change recreates). */
|
|
6215
6697
|
maxPrincipalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
6216
6698
|
}, "strip", z.ZodTypeAny, {
|
|
6217
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
6218
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
6219
6699
|
requirePrincipal: boolean;
|
|
6220
6700
|
rateLimitRpm: number;
|
|
6221
|
-
|
|
6701
|
+
execution?: {
|
|
6702
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6703
|
+
secretRefs: Record<string, string>;
|
|
6704
|
+
coords: Record<string, string>;
|
|
6705
|
+
} | undefined;
|
|
6706
|
+
store?: {
|
|
6707
|
+
memory: {
|
|
6708
|
+
backend: "pg" | "file" | "tidb";
|
|
6709
|
+
engine: "on" | "off";
|
|
6710
|
+
};
|
|
6711
|
+
session: "mysql" | "memory" | "auto";
|
|
6712
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6713
|
+
db?: {
|
|
6714
|
+
host: string;
|
|
6715
|
+
port: number;
|
|
6716
|
+
user: string;
|
|
6717
|
+
database: string;
|
|
6718
|
+
} | undefined;
|
|
6719
|
+
} | undefined;
|
|
6222
6720
|
scenario?: string | undefined;
|
|
6223
6721
|
maxPrincipalCostUsd?: number | undefined;
|
|
6224
6722
|
}, {
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6723
|
+
execution?: {
|
|
6724
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6725
|
+
secretRefs?: Record<string, string> | undefined;
|
|
6726
|
+
coords?: Record<string, string> | undefined;
|
|
6727
|
+
} | undefined;
|
|
6728
|
+
store?: {
|
|
6729
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6730
|
+
memory?: {
|
|
6731
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
6732
|
+
engine?: "on" | "off" | undefined;
|
|
6733
|
+
} | undefined;
|
|
6734
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
6735
|
+
db?: {
|
|
6736
|
+
host: string;
|
|
6737
|
+
port: number;
|
|
6738
|
+
user: string;
|
|
6739
|
+
database: string;
|
|
6740
|
+
} | undefined;
|
|
6741
|
+
} | undefined;
|
|
6228
6742
|
scenario?: string | undefined;
|
|
6229
6743
|
requirePrincipal?: boolean | undefined;
|
|
6230
6744
|
rateLimitRpm?: number | undefined;
|
|
6231
6745
|
maxPrincipalCostUsd?: number | undefined;
|
|
6232
6746
|
}>;
|
|
6233
|
-
/** 物理坐标 (非 secret). 映射到 GIT_API_BASEURL
|
|
6747
|
+
/** 物理坐标 (非 secret). 映射到 GIT_API_BASEURL。7.0.0 起 SQL 坐标在 `runtime.store.db`(`tidb*` 三键删除)。 */
|
|
6234
6748
|
coords: z.ZodDefault<z.ZodObject<{
|
|
6235
6749
|
gitApiBaseUrl: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>, z.ZodLiteral<"">]>;
|
|
6236
|
-
tidbHost: z.ZodOptional<z.ZodString>;
|
|
6237
|
-
tidbPort: z.ZodOptional<z.ZodNumber>;
|
|
6238
|
-
tidbUser: z.ZodOptional<z.ZodString>;
|
|
6239
6750
|
}, "strip", z.ZodTypeAny, {
|
|
6240
6751
|
gitApiBaseUrl?: string | undefined;
|
|
6241
|
-
tidbHost?: string | undefined;
|
|
6242
|
-
tidbPort?: number | undefined;
|
|
6243
|
-
tidbUser?: string | undefined;
|
|
6244
6752
|
}, {
|
|
6245
6753
|
gitApiBaseUrl?: string | undefined;
|
|
6246
|
-
tidbHost?: string | undefined;
|
|
6247
|
-
tidbPort?: number | undefined;
|
|
6248
|
-
tidbUser?: string | undefined;
|
|
6249
6754
|
}>>;
|
|
6250
6755
|
secretRefs: z.ZodObject<{
|
|
6251
6756
|
/** NAME of the host env var holding the model API key → service MODEL_API_KEY (或 anthropic 时 ANTHROPIC_API_KEY). */
|
|
@@ -6254,18 +6759,19 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6254
6759
|
serviceAuthTokenEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
6255
6760
|
/** → GIT_API_TOKEN (只读,读被评审 repo). */
|
|
6256
6761
|
gitTokenEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
6257
|
-
/** →
|
|
6258
|
-
|
|
6762
|
+
/** 7.0.0:SQL 店的口令 → `MYSQL_PASSWORD` / `PG_PASSWORD`(渲染器按 `runtime.store.backend` 选名族)。
|
|
6763
|
+
* 在场 ⇔ `runtime.store.backend` ∈ {mysql, pg}(WorkerSpec 层判,与 `runtime.store.db` 同一条规则)。取代 6.x 的 `tidbPasswordEnv`。 */
|
|
6764
|
+
dbPasswordEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
6259
6765
|
}, "strip", z.ZodTypeAny, {
|
|
6260
6766
|
apiKeyEnv: string;
|
|
6261
6767
|
serviceAuthTokenEnv?: string | undefined;
|
|
6262
6768
|
gitTokenEnv?: string | undefined;
|
|
6263
|
-
|
|
6769
|
+
dbPasswordEnv?: string | undefined;
|
|
6264
6770
|
}, {
|
|
6265
6771
|
apiKeyEnv: string;
|
|
6266
6772
|
serviceAuthTokenEnv?: string | undefined;
|
|
6267
6773
|
gitTokenEnv?: string | undefined;
|
|
6268
|
-
|
|
6774
|
+
dbPasswordEnv?: string | undefined;
|
|
6269
6775
|
}>;
|
|
6270
6776
|
/**
|
|
6271
6777
|
* 通用 env 透传(逃生口)——给**没有专属结构化字段**的 service env 用,让任意 worker 声明自己的 app 专属变量
|
|
@@ -6346,31 +6852,44 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6346
6852
|
signature: z.ZodOptional<z.ZodString>;
|
|
6347
6853
|
notes: z.ZodOptional<z.ZodString>;
|
|
6348
6854
|
}, "strip", z.ZodTypeAny, {
|
|
6855
|
+
host: string;
|
|
6856
|
+
secretRefs: {
|
|
6857
|
+
apiKeyEnv: string;
|
|
6858
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
6859
|
+
gitTokenEnv?: string | undefined;
|
|
6860
|
+
dbPasswordEnv?: string | undefined;
|
|
6861
|
+
};
|
|
6862
|
+
coords: {
|
|
6863
|
+
gitApiBaseUrl?: string | undefined;
|
|
6864
|
+
};
|
|
6349
6865
|
name: string;
|
|
6350
6866
|
enabled: boolean;
|
|
6351
|
-
host: string;
|
|
6352
6867
|
image: string;
|
|
6353
6868
|
runtime: {
|
|
6354
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
6355
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
6356
6869
|
requirePrincipal: boolean;
|
|
6357
6870
|
rateLimitRpm: number;
|
|
6358
|
-
|
|
6871
|
+
execution?: {
|
|
6872
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6873
|
+
secretRefs: Record<string, string>;
|
|
6874
|
+
coords: Record<string, string>;
|
|
6875
|
+
} | undefined;
|
|
6876
|
+
store?: {
|
|
6877
|
+
memory: {
|
|
6878
|
+
backend: "pg" | "file" | "tidb";
|
|
6879
|
+
engine: "on" | "off";
|
|
6880
|
+
};
|
|
6881
|
+
session: "mysql" | "memory" | "auto";
|
|
6882
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6883
|
+
db?: {
|
|
6884
|
+
host: string;
|
|
6885
|
+
port: number;
|
|
6886
|
+
user: string;
|
|
6887
|
+
database: string;
|
|
6888
|
+
} | undefined;
|
|
6889
|
+
} | undefined;
|
|
6359
6890
|
scenario?: string | undefined;
|
|
6360
6891
|
maxPrincipalCostUsd?: number | undefined;
|
|
6361
6892
|
};
|
|
6362
|
-
coords: {
|
|
6363
|
-
gitApiBaseUrl?: string | undefined;
|
|
6364
|
-
tidbHost?: string | undefined;
|
|
6365
|
-
tidbPort?: number | undefined;
|
|
6366
|
-
tidbUser?: string | undefined;
|
|
6367
|
-
};
|
|
6368
|
-
secretRefs: {
|
|
6369
|
-
apiKeyEnv: string;
|
|
6370
|
-
serviceAuthTokenEnv?: string | undefined;
|
|
6371
|
-
gitTokenEnv?: string | undefined;
|
|
6372
|
-
tidbPasswordEnv?: string | undefined;
|
|
6373
|
-
};
|
|
6374
6893
|
notes?: string | undefined;
|
|
6375
6894
|
routePrefix?: string | undefined;
|
|
6376
6895
|
replicas?: number | undefined;
|
|
@@ -6381,12 +6900,12 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6381
6900
|
} | undefined;
|
|
6382
6901
|
resources?: {
|
|
6383
6902
|
requests?: {
|
|
6384
|
-
cpu?: string | undefined;
|
|
6385
6903
|
memory?: string | undefined;
|
|
6904
|
+
cpu?: string | undefined;
|
|
6386
6905
|
} | undefined;
|
|
6387
6906
|
limits?: {
|
|
6388
|
-
cpu?: string | undefined;
|
|
6389
6907
|
memory?: string | undefined;
|
|
6908
|
+
cpu?: string | undefined;
|
|
6390
6909
|
} | undefined;
|
|
6391
6910
|
} | undefined;
|
|
6392
6911
|
fleet?: {
|
|
@@ -6418,25 +6937,44 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6418
6937
|
roster?: string | undefined;
|
|
6419
6938
|
signature?: string | undefined;
|
|
6420
6939
|
}, {
|
|
6940
|
+
secretRefs: {
|
|
6941
|
+
apiKeyEnv: string;
|
|
6942
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
6943
|
+
gitTokenEnv?: string | undefined;
|
|
6944
|
+
dbPasswordEnv?: string | undefined;
|
|
6945
|
+
};
|
|
6421
6946
|
name: string;
|
|
6422
6947
|
runtime: {
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6948
|
+
execution?: {
|
|
6949
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
6950
|
+
secretRefs?: Record<string, string> | undefined;
|
|
6951
|
+
coords?: Record<string, string> | undefined;
|
|
6952
|
+
} | undefined;
|
|
6953
|
+
store?: {
|
|
6954
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
6955
|
+
memory?: {
|
|
6956
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
6957
|
+
engine?: "on" | "off" | undefined;
|
|
6958
|
+
} | undefined;
|
|
6959
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
6960
|
+
db?: {
|
|
6961
|
+
host: string;
|
|
6962
|
+
port: number;
|
|
6963
|
+
user: string;
|
|
6964
|
+
database: string;
|
|
6965
|
+
} | undefined;
|
|
6966
|
+
} | undefined;
|
|
6426
6967
|
scenario?: string | undefined;
|
|
6427
6968
|
requirePrincipal?: boolean | undefined;
|
|
6428
6969
|
rateLimitRpm?: number | undefined;
|
|
6429
6970
|
maxPrincipalCostUsd?: number | undefined;
|
|
6430
6971
|
};
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
tidbPasswordEnv?: string | undefined;
|
|
6436
|
-
};
|
|
6972
|
+
host?: string | undefined;
|
|
6973
|
+
coords?: {
|
|
6974
|
+
gitApiBaseUrl?: string | undefined;
|
|
6975
|
+
} | undefined;
|
|
6437
6976
|
enabled?: boolean | undefined;
|
|
6438
6977
|
notes?: string | undefined;
|
|
6439
|
-
host?: string | undefined;
|
|
6440
6978
|
image?: string | undefined;
|
|
6441
6979
|
routePrefix?: string | undefined;
|
|
6442
6980
|
replicas?: number | undefined;
|
|
@@ -6447,12 +6985,12 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6447
6985
|
} | undefined;
|
|
6448
6986
|
resources?: {
|
|
6449
6987
|
requests?: {
|
|
6450
|
-
cpu?: string | undefined;
|
|
6451
6988
|
memory?: string | undefined;
|
|
6989
|
+
cpu?: string | undefined;
|
|
6452
6990
|
} | undefined;
|
|
6453
6991
|
limits?: {
|
|
6454
|
-
cpu?: string | undefined;
|
|
6455
6992
|
memory?: string | undefined;
|
|
6993
|
+
cpu?: string | undefined;
|
|
6456
6994
|
} | undefined;
|
|
6457
6995
|
} | undefined;
|
|
6458
6996
|
fleet?: {
|
|
@@ -6465,12 +7003,6 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6465
7003
|
} | undefined;
|
|
6466
7004
|
drainGraceMs?: number | undefined;
|
|
6467
7005
|
} | undefined;
|
|
6468
|
-
coords?: {
|
|
6469
|
-
gitApiBaseUrl?: string | undefined;
|
|
6470
|
-
tidbHost?: string | undefined;
|
|
6471
|
-
tidbPort?: number | undefined;
|
|
6472
|
-
tidbUser?: string | undefined;
|
|
6473
|
-
} | undefined;
|
|
6474
7006
|
env?: Record<string, string> | undefined;
|
|
6475
7007
|
secretEnv?: Record<string, string> | undefined;
|
|
6476
7008
|
recreateNonce?: string | undefined;
|
|
@@ -6489,34 +7021,45 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6489
7021
|
} | undefined;
|
|
6490
7022
|
roster?: string | undefined;
|
|
6491
7023
|
signature?: string | undefined;
|
|
6492
|
-
}>,
|
|
6493
|
-
|
|
6494
|
-
|
|
7024
|
+
}>, {
|
|
7025
|
+
host: string;
|
|
7026
|
+
secretRefs: {
|
|
7027
|
+
apiKeyEnv: string;
|
|
7028
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
7029
|
+
gitTokenEnv?: string | undefined;
|
|
7030
|
+
dbPasswordEnv?: string | undefined;
|
|
7031
|
+
};
|
|
7032
|
+
coords: {
|
|
7033
|
+
gitApiBaseUrl?: string | undefined;
|
|
7034
|
+
};
|
|
6495
7035
|
name: string;
|
|
6496
7036
|
enabled: boolean;
|
|
6497
|
-
host: string;
|
|
6498
7037
|
image: string;
|
|
6499
7038
|
runtime: {
|
|
6500
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
6501
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
6502
7039
|
requirePrincipal: boolean;
|
|
6503
7040
|
rateLimitRpm: number;
|
|
6504
|
-
|
|
7041
|
+
execution?: {
|
|
7042
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
7043
|
+
secretRefs: Record<string, string>;
|
|
7044
|
+
coords: Record<string, string>;
|
|
7045
|
+
} | undefined;
|
|
7046
|
+
store?: {
|
|
7047
|
+
memory: {
|
|
7048
|
+
backend: "pg" | "file" | "tidb";
|
|
7049
|
+
engine: "on" | "off";
|
|
7050
|
+
};
|
|
7051
|
+
session: "mysql" | "memory" | "auto";
|
|
7052
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
7053
|
+
db?: {
|
|
7054
|
+
host: string;
|
|
7055
|
+
port: number;
|
|
7056
|
+
user: string;
|
|
7057
|
+
database: string;
|
|
7058
|
+
} | undefined;
|
|
7059
|
+
} | undefined;
|
|
6505
7060
|
scenario?: string | undefined;
|
|
6506
7061
|
maxPrincipalCostUsd?: number | undefined;
|
|
6507
7062
|
};
|
|
6508
|
-
coords: {
|
|
6509
|
-
gitApiBaseUrl?: string | undefined;
|
|
6510
|
-
tidbHost?: string | undefined;
|
|
6511
|
-
tidbPort?: number | undefined;
|
|
6512
|
-
tidbUser?: string | undefined;
|
|
6513
|
-
};
|
|
6514
|
-
secretRefs: {
|
|
6515
|
-
apiKeyEnv: string;
|
|
6516
|
-
serviceAuthTokenEnv?: string | undefined;
|
|
6517
|
-
gitTokenEnv?: string | undefined;
|
|
6518
|
-
tidbPasswordEnv?: string | undefined;
|
|
6519
|
-
};
|
|
6520
7063
|
notes?: string | undefined;
|
|
6521
7064
|
routePrefix?: string | undefined;
|
|
6522
7065
|
replicas?: number | undefined;
|
|
@@ -6527,12 +7070,12 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6527
7070
|
} | undefined;
|
|
6528
7071
|
resources?: {
|
|
6529
7072
|
requests?: {
|
|
6530
|
-
cpu?: string | undefined;
|
|
6531
7073
|
memory?: string | undefined;
|
|
7074
|
+
cpu?: string | undefined;
|
|
6532
7075
|
} | undefined;
|
|
6533
7076
|
limits?: {
|
|
6534
|
-
cpu?: string | undefined;
|
|
6535
7077
|
memory?: string | undefined;
|
|
7078
|
+
cpu?: string | undefined;
|
|
6536
7079
|
} | undefined;
|
|
6537
7080
|
} | undefined;
|
|
6538
7081
|
fleet?: {
|
|
@@ -6563,28 +7106,45 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6563
7106
|
} | undefined;
|
|
6564
7107
|
roster?: string | undefined;
|
|
6565
7108
|
signature?: string | undefined;
|
|
6566
|
-
}
|
|
6567
|
-
|
|
6568
|
-
|
|
7109
|
+
}, {
|
|
7110
|
+
secretRefs: {
|
|
7111
|
+
apiKeyEnv: string;
|
|
7112
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
7113
|
+
gitTokenEnv?: string | undefined;
|
|
7114
|
+
dbPasswordEnv?: string | undefined;
|
|
7115
|
+
};
|
|
6569
7116
|
name: string;
|
|
6570
7117
|
runtime: {
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
7118
|
+
execution?: {
|
|
7119
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
7120
|
+
secretRefs?: Record<string, string> | undefined;
|
|
7121
|
+
coords?: Record<string, string> | undefined;
|
|
7122
|
+
} | undefined;
|
|
7123
|
+
store?: {
|
|
7124
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
7125
|
+
memory?: {
|
|
7126
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
7127
|
+
engine?: "on" | "off" | undefined;
|
|
7128
|
+
} | undefined;
|
|
7129
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
7130
|
+
db?: {
|
|
7131
|
+
host: string;
|
|
7132
|
+
port: number;
|
|
7133
|
+
user: string;
|
|
7134
|
+
database: string;
|
|
7135
|
+
} | undefined;
|
|
7136
|
+
} | undefined;
|
|
6574
7137
|
scenario?: string | undefined;
|
|
6575
7138
|
requirePrincipal?: boolean | undefined;
|
|
6576
7139
|
rateLimitRpm?: number | undefined;
|
|
6577
7140
|
maxPrincipalCostUsd?: number | undefined;
|
|
6578
7141
|
};
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
tidbPasswordEnv?: string | undefined;
|
|
6584
|
-
};
|
|
7142
|
+
host?: string | undefined;
|
|
7143
|
+
coords?: {
|
|
7144
|
+
gitApiBaseUrl?: string | undefined;
|
|
7145
|
+
} | undefined;
|
|
6585
7146
|
enabled?: boolean | undefined;
|
|
6586
7147
|
notes?: string | undefined;
|
|
6587
|
-
host?: string | undefined;
|
|
6588
7148
|
image?: string | undefined;
|
|
6589
7149
|
routePrefix?: string | undefined;
|
|
6590
7150
|
replicas?: number | undefined;
|
|
@@ -6595,12 +7155,12 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6595
7155
|
} | undefined;
|
|
6596
7156
|
resources?: {
|
|
6597
7157
|
requests?: {
|
|
6598
|
-
cpu?: string | undefined;
|
|
6599
7158
|
memory?: string | undefined;
|
|
7159
|
+
cpu?: string | undefined;
|
|
6600
7160
|
} | undefined;
|
|
6601
7161
|
limits?: {
|
|
6602
|
-
cpu?: string | undefined;
|
|
6603
7162
|
memory?: string | undefined;
|
|
7163
|
+
cpu?: string | undefined;
|
|
6604
7164
|
} | undefined;
|
|
6605
7165
|
} | undefined;
|
|
6606
7166
|
fleet?: {
|
|
@@ -6613,12 +7173,6 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6613
7173
|
} | undefined;
|
|
6614
7174
|
drainGraceMs?: number | undefined;
|
|
6615
7175
|
} | undefined;
|
|
6616
|
-
coords?: {
|
|
6617
|
-
gitApiBaseUrl?: string | undefined;
|
|
6618
|
-
tidbHost?: string | undefined;
|
|
6619
|
-
tidbPort?: number | undefined;
|
|
6620
|
-
tidbUser?: string | undefined;
|
|
6621
|
-
} | undefined;
|
|
6622
7176
|
env?: Record<string, string> | undefined;
|
|
6623
7177
|
secretEnv?: Record<string, string> | undefined;
|
|
6624
7178
|
recreateNonce?: string | undefined;
|
|
@@ -6637,34 +7191,45 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6637
7191
|
} | undefined;
|
|
6638
7192
|
roster?: string | undefined;
|
|
6639
7193
|
signature?: string | undefined;
|
|
6640
|
-
}
|
|
6641
|
-
|
|
6642
|
-
|
|
7194
|
+
}>, {
|
|
7195
|
+
host: string;
|
|
7196
|
+
secretRefs: {
|
|
7197
|
+
apiKeyEnv: string;
|
|
7198
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
7199
|
+
gitTokenEnv?: string | undefined;
|
|
7200
|
+
dbPasswordEnv?: string | undefined;
|
|
7201
|
+
};
|
|
7202
|
+
coords: {
|
|
7203
|
+
gitApiBaseUrl?: string | undefined;
|
|
7204
|
+
};
|
|
6643
7205
|
name: string;
|
|
6644
7206
|
enabled: boolean;
|
|
6645
|
-
host: string;
|
|
6646
7207
|
image: string;
|
|
6647
7208
|
runtime: {
|
|
6648
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
6649
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
6650
7209
|
requirePrincipal: boolean;
|
|
6651
7210
|
rateLimitRpm: number;
|
|
6652
|
-
|
|
7211
|
+
execution?: {
|
|
7212
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
7213
|
+
secretRefs: Record<string, string>;
|
|
7214
|
+
coords: Record<string, string>;
|
|
7215
|
+
} | undefined;
|
|
7216
|
+
store?: {
|
|
7217
|
+
memory: {
|
|
7218
|
+
backend: "pg" | "file" | "tidb";
|
|
7219
|
+
engine: "on" | "off";
|
|
7220
|
+
};
|
|
7221
|
+
session: "mysql" | "memory" | "auto";
|
|
7222
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
7223
|
+
db?: {
|
|
7224
|
+
host: string;
|
|
7225
|
+
port: number;
|
|
7226
|
+
user: string;
|
|
7227
|
+
database: string;
|
|
7228
|
+
} | undefined;
|
|
7229
|
+
} | undefined;
|
|
6653
7230
|
scenario?: string | undefined;
|
|
6654
7231
|
maxPrincipalCostUsd?: number | undefined;
|
|
6655
7232
|
};
|
|
6656
|
-
coords: {
|
|
6657
|
-
gitApiBaseUrl?: string | undefined;
|
|
6658
|
-
tidbHost?: string | undefined;
|
|
6659
|
-
tidbPort?: number | undefined;
|
|
6660
|
-
tidbUser?: string | undefined;
|
|
6661
|
-
};
|
|
6662
|
-
secretRefs: {
|
|
6663
|
-
apiKeyEnv: string;
|
|
6664
|
-
serviceAuthTokenEnv?: string | undefined;
|
|
6665
|
-
gitTokenEnv?: string | undefined;
|
|
6666
|
-
tidbPasswordEnv?: string | undefined;
|
|
6667
|
-
};
|
|
6668
7233
|
notes?: string | undefined;
|
|
6669
7234
|
routePrefix?: string | undefined;
|
|
6670
7235
|
replicas?: number | undefined;
|
|
@@ -6675,12 +7240,12 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6675
7240
|
} | undefined;
|
|
6676
7241
|
resources?: {
|
|
6677
7242
|
requests?: {
|
|
6678
|
-
cpu?: string | undefined;
|
|
6679
7243
|
memory?: string | undefined;
|
|
7244
|
+
cpu?: string | undefined;
|
|
6680
7245
|
} | undefined;
|
|
6681
7246
|
limits?: {
|
|
6682
|
-
cpu?: string | undefined;
|
|
6683
7247
|
memory?: string | undefined;
|
|
7248
|
+
cpu?: string | undefined;
|
|
6684
7249
|
} | undefined;
|
|
6685
7250
|
} | undefined;
|
|
6686
7251
|
fleet?: {
|
|
@@ -6711,29 +7276,137 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6711
7276
|
} | undefined;
|
|
6712
7277
|
roster?: string | undefined;
|
|
6713
7278
|
signature?: string | undefined;
|
|
6714
|
-
}
|
|
6715
|
-
}, {
|
|
6716
|
-
workers
|
|
7279
|
+
}, unknown>, "many">>;
|
|
7280
|
+
}, "strip", z.ZodTypeAny, {
|
|
7281
|
+
workers: {
|
|
7282
|
+
host: string;
|
|
7283
|
+
secretRefs: {
|
|
7284
|
+
apiKeyEnv: string;
|
|
7285
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
7286
|
+
gitTokenEnv?: string | undefined;
|
|
7287
|
+
dbPasswordEnv?: string | undefined;
|
|
7288
|
+
};
|
|
7289
|
+
coords: {
|
|
7290
|
+
gitApiBaseUrl?: string | undefined;
|
|
7291
|
+
};
|
|
6717
7292
|
name: string;
|
|
7293
|
+
enabled: boolean;
|
|
7294
|
+
image: string;
|
|
6718
7295
|
runtime: {
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
7296
|
+
requirePrincipal: boolean;
|
|
7297
|
+
rateLimitRpm: number;
|
|
7298
|
+
execution?: {
|
|
7299
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
7300
|
+
secretRefs: Record<string, string>;
|
|
7301
|
+
coords: Record<string, string>;
|
|
7302
|
+
} | undefined;
|
|
7303
|
+
store?: {
|
|
7304
|
+
memory: {
|
|
7305
|
+
backend: "pg" | "file" | "tidb";
|
|
7306
|
+
engine: "on" | "off";
|
|
7307
|
+
};
|
|
7308
|
+
session: "mysql" | "memory" | "auto";
|
|
7309
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
7310
|
+
db?: {
|
|
7311
|
+
host: string;
|
|
7312
|
+
port: number;
|
|
7313
|
+
user: string;
|
|
7314
|
+
database: string;
|
|
7315
|
+
} | undefined;
|
|
7316
|
+
} | undefined;
|
|
6722
7317
|
scenario?: string | undefined;
|
|
6723
|
-
requirePrincipal?: boolean | undefined;
|
|
6724
|
-
rateLimitRpm?: number | undefined;
|
|
6725
7318
|
maxPrincipalCostUsd?: number | undefined;
|
|
6726
7319
|
};
|
|
7320
|
+
notes?: string | undefined;
|
|
7321
|
+
routePrefix?: string | undefined;
|
|
7322
|
+
replicas?: number | undefined;
|
|
7323
|
+
autoscaling?: {
|
|
7324
|
+
minReplicas: number;
|
|
7325
|
+
maxReplicas: number;
|
|
7326
|
+
targetCpuPercent?: number | undefined;
|
|
7327
|
+
} | undefined;
|
|
7328
|
+
resources?: {
|
|
7329
|
+
requests?: {
|
|
7330
|
+
memory?: string | undefined;
|
|
7331
|
+
cpu?: string | undefined;
|
|
7332
|
+
} | undefined;
|
|
7333
|
+
limits?: {
|
|
7334
|
+
memory?: string | undefined;
|
|
7335
|
+
cpu?: string | undefined;
|
|
7336
|
+
} | undefined;
|
|
7337
|
+
} | undefined;
|
|
7338
|
+
fleet?: {
|
|
7339
|
+
dispatch?: {
|
|
7340
|
+
strategy: "round-robin" | "least-inflight" | "consistent-hash";
|
|
7341
|
+
sessionAffinity: boolean;
|
|
7342
|
+
maxInflight?: number | undefined;
|
|
7343
|
+
perActorMaxInflight?: number | undefined;
|
|
7344
|
+
maxCostUsd?: number | undefined;
|
|
7345
|
+
} | undefined;
|
|
7346
|
+
drainGraceMs?: number | undefined;
|
|
7347
|
+
} | undefined;
|
|
7348
|
+
env?: Record<string, string> | undefined;
|
|
7349
|
+
secretEnv?: Record<string, string> | undefined;
|
|
7350
|
+
recreateNonce?: string | undefined;
|
|
7351
|
+
lifecycle?: {
|
|
7352
|
+
kind: "persistent" | "ephemeral";
|
|
7353
|
+
ttl?: string | undefined;
|
|
7354
|
+
idleTimeout?: string | undefined;
|
|
7355
|
+
owner?: string | undefined;
|
|
7356
|
+
purpose?: string | undefined;
|
|
7357
|
+
dependsOn?: string[] | undefined;
|
|
7358
|
+
} | undefined;
|
|
7359
|
+
placement?: {
|
|
7360
|
+
auto: boolean;
|
|
7361
|
+
requires: string[];
|
|
7362
|
+
spread?: string | undefined;
|
|
7363
|
+
} | undefined;
|
|
7364
|
+
roster?: string | undefined;
|
|
7365
|
+
signature?: string | undefined;
|
|
7366
|
+
}[];
|
|
7367
|
+
}, {
|
|
7368
|
+
workers?: unknown[] | undefined;
|
|
7369
|
+
}>, {
|
|
7370
|
+
workers: {
|
|
7371
|
+
host: string;
|
|
6727
7372
|
secretRefs: {
|
|
6728
7373
|
apiKeyEnv: string;
|
|
6729
7374
|
serviceAuthTokenEnv?: string | undefined;
|
|
6730
7375
|
gitTokenEnv?: string | undefined;
|
|
6731
|
-
|
|
7376
|
+
dbPasswordEnv?: string | undefined;
|
|
7377
|
+
};
|
|
7378
|
+
coords: {
|
|
7379
|
+
gitApiBaseUrl?: string | undefined;
|
|
7380
|
+
};
|
|
7381
|
+
name: string;
|
|
7382
|
+
enabled: boolean;
|
|
7383
|
+
image: string;
|
|
7384
|
+
runtime: {
|
|
7385
|
+
requirePrincipal: boolean;
|
|
7386
|
+
rateLimitRpm: number;
|
|
7387
|
+
execution?: {
|
|
7388
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
7389
|
+
secretRefs: Record<string, string>;
|
|
7390
|
+
coords: Record<string, string>;
|
|
7391
|
+
} | undefined;
|
|
7392
|
+
store?: {
|
|
7393
|
+
memory: {
|
|
7394
|
+
backend: "pg" | "file" | "tidb";
|
|
7395
|
+
engine: "on" | "off";
|
|
7396
|
+
};
|
|
7397
|
+
session: "mysql" | "memory" | "auto";
|
|
7398
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
7399
|
+
db?: {
|
|
7400
|
+
host: string;
|
|
7401
|
+
port: number;
|
|
7402
|
+
user: string;
|
|
7403
|
+
database: string;
|
|
7404
|
+
} | undefined;
|
|
7405
|
+
} | undefined;
|
|
7406
|
+
scenario?: string | undefined;
|
|
7407
|
+
maxPrincipalCostUsd?: number | undefined;
|
|
6732
7408
|
};
|
|
6733
|
-
enabled?: boolean | undefined;
|
|
6734
7409
|
notes?: string | undefined;
|
|
6735
|
-
host?: string | undefined;
|
|
6736
|
-
image?: string | undefined;
|
|
6737
7410
|
routePrefix?: string | undefined;
|
|
6738
7411
|
replicas?: number | undefined;
|
|
6739
7412
|
autoscaling?: {
|
|
@@ -6743,35 +7416,29 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6743
7416
|
} | undefined;
|
|
6744
7417
|
resources?: {
|
|
6745
7418
|
requests?: {
|
|
6746
|
-
cpu?: string | undefined;
|
|
6747
7419
|
memory?: string | undefined;
|
|
7420
|
+
cpu?: string | undefined;
|
|
6748
7421
|
} | undefined;
|
|
6749
7422
|
limits?: {
|
|
6750
|
-
cpu?: string | undefined;
|
|
6751
7423
|
memory?: string | undefined;
|
|
7424
|
+
cpu?: string | undefined;
|
|
6752
7425
|
} | undefined;
|
|
6753
7426
|
} | undefined;
|
|
6754
7427
|
fleet?: {
|
|
6755
7428
|
dispatch?: {
|
|
6756
|
-
strategy
|
|
6757
|
-
sessionAffinity
|
|
7429
|
+
strategy: "round-robin" | "least-inflight" | "consistent-hash";
|
|
7430
|
+
sessionAffinity: boolean;
|
|
6758
7431
|
maxInflight?: number | undefined;
|
|
6759
7432
|
perActorMaxInflight?: number | undefined;
|
|
6760
7433
|
maxCostUsd?: number | undefined;
|
|
6761
7434
|
} | undefined;
|
|
6762
7435
|
drainGraceMs?: number | undefined;
|
|
6763
7436
|
} | undefined;
|
|
6764
|
-
coords?: {
|
|
6765
|
-
gitApiBaseUrl?: string | undefined;
|
|
6766
|
-
tidbHost?: string | undefined;
|
|
6767
|
-
tidbPort?: number | undefined;
|
|
6768
|
-
tidbUser?: string | undefined;
|
|
6769
|
-
} | undefined;
|
|
6770
7437
|
env?: Record<string, string> | undefined;
|
|
6771
7438
|
secretEnv?: Record<string, string> | undefined;
|
|
6772
7439
|
recreateNonce?: string | undefined;
|
|
6773
7440
|
lifecycle?: {
|
|
6774
|
-
kind
|
|
7441
|
+
kind: "persistent" | "ephemeral";
|
|
6775
7442
|
ttl?: string | undefined;
|
|
6776
7443
|
idleTimeout?: string | undefined;
|
|
6777
7444
|
owner?: string | undefined;
|
|
@@ -6779,13 +7446,15 @@ export declare const WorkersConfig: z.ZodEffects<z.ZodObject<{
|
|
|
6779
7446
|
dependsOn?: string[] | undefined;
|
|
6780
7447
|
} | undefined;
|
|
6781
7448
|
placement?: {
|
|
6782
|
-
auto
|
|
6783
|
-
requires
|
|
7449
|
+
auto: boolean;
|
|
7450
|
+
requires: string[];
|
|
6784
7451
|
spread?: string | undefined;
|
|
6785
7452
|
} | undefined;
|
|
6786
7453
|
roster?: string | undefined;
|
|
6787
7454
|
signature?: string | undefined;
|
|
6788
|
-
}[]
|
|
7455
|
+
}[];
|
|
7456
|
+
}, {
|
|
7457
|
+
workers?: unknown[] | undefined;
|
|
6789
7458
|
}>;
|
|
6790
7459
|
export type WorkersConfig = z.infer<typeof WorkersConfig>;
|
|
6791
7460
|
export declare const WorkerCondition: z.ZodObject<{
|
|
@@ -6838,8 +7507,8 @@ export declare const WorkerStatus: z.ZodObject<{
|
|
|
6838
7507
|
message: z.ZodOptional<z.ZodString>;
|
|
6839
7508
|
updatedAt: z.ZodString;
|
|
6840
7509
|
}, "strip", z.ZodTypeAny, {
|
|
6841
|
-
name: string;
|
|
6842
7510
|
host: string;
|
|
7511
|
+
name: string;
|
|
6843
7512
|
phase: "Unknown" | "Pending" | "Running" | "Failed";
|
|
6844
7513
|
updatedAt: string;
|
|
6845
7514
|
conditions: {
|
|
@@ -6853,8 +7522,8 @@ export declare const WorkerStatus: z.ZodObject<{
|
|
|
6853
7522
|
message?: string | undefined;
|
|
6854
7523
|
observedSpecHash?: string | undefined;
|
|
6855
7524
|
}, {
|
|
6856
|
-
name: string;
|
|
6857
7525
|
host: string;
|
|
7526
|
+
name: string;
|
|
6858
7527
|
phase: "Unknown" | "Pending" | "Running" | "Failed";
|
|
6859
7528
|
updatedAt: string;
|
|
6860
7529
|
observedVersion: number;
|
|
@@ -7093,7 +7762,7 @@ export declare const HostStatus: z.ZodObject<{
|
|
|
7093
7762
|
ts: z.ZodString;
|
|
7094
7763
|
}, "strip", z.ZodTypeAny, {
|
|
7095
7764
|
host: string;
|
|
7096
|
-
backend: "
|
|
7765
|
+
backend: "k8s" | "docker";
|
|
7097
7766
|
probes: {
|
|
7098
7767
|
cpuCores: number;
|
|
7099
7768
|
memBytes: number;
|
|
@@ -7109,7 +7778,7 @@ export declare const HostStatus: z.ZodObject<{
|
|
|
7109
7778
|
ts: string;
|
|
7110
7779
|
}, {
|
|
7111
7780
|
host: string;
|
|
7112
|
-
backend: "
|
|
7781
|
+
backend: "k8s" | "docker";
|
|
7113
7782
|
probes: {
|
|
7114
7783
|
cpuCores: number;
|
|
7115
7784
|
memBytes: number;
|
|
@@ -9501,6 +10170,16 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9501
10170
|
* deep to hash later. That is not shape validation — it is the boundary every free-form value must clear to
|
|
9502
10171
|
* enter the persisted config and `stableHash` (R18). */
|
|
9503
10172
|
compat: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
|
|
10173
|
+
/** Per-model extra request headers, deployment ↔ provider (e.g. `{"anthropic-beta": "context-1m-2025-08-07"}` on an
|
|
10174
|
+
* `anthropic-messages` entry). Real need: a beta that a shell passes as `--betas` / `ANTHROPIC_BETAS` never reaches the
|
|
10175
|
+
* request the engine sends; the catalog entry is the deployment-level seat for it — and without this key the entry's
|
|
10176
|
+
* declaration is stripped at parse on every read leg, so it never reaches the consumer at all.
|
|
10177
|
+
* ABSENT = key not minted = today's behaviour, zero migration.
|
|
10178
|
+
*
|
|
10179
|
+
* **Parse-transparent** — who validates the shape, and why not here: {@link PARSE_TRANSPARENT_KEYS}
|
|
10180
|
+
* (`models.models[].headers`). The ONE rejection that remains is the free-form SAFETY judgment shared with `compat` /
|
|
10181
|
+
* `extraBody` ({@link vetFreeFormJson}). */
|
|
10182
|
+
headers: z.ZodEffects<z.ZodOptional<z.ZodUnknown>, unknown, unknown>;
|
|
9504
10183
|
/** 配额倍率(EXPERT-REDESIGN §4-1):该模型烧 token 双窗额度的倍率,默认 1。折算时点=weight-at-burn
|
|
9505
10184
|
* (记账时固化到 UsageEntry.quotaWeightAtUse/weightedTokens):改倍率只影响此后记账,不回算窗口内历史。 */
|
|
9506
10185
|
quotaWeight: z.ZodDefault<z.ZodNumber>;
|
|
@@ -9537,6 +10216,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9537
10216
|
} | undefined;
|
|
9538
10217
|
extraBody?: Record<string, unknown> | undefined;
|
|
9539
10218
|
compat?: unknown;
|
|
10219
|
+
headers?: unknown;
|
|
9540
10220
|
notes?: string | undefined;
|
|
9541
10221
|
}, {
|
|
9542
10222
|
id: string;
|
|
@@ -9567,6 +10247,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9567
10247
|
} | undefined;
|
|
9568
10248
|
extraBody?: unknown;
|
|
9569
10249
|
compat?: unknown;
|
|
10250
|
+
headers?: unknown;
|
|
9570
10251
|
quotaWeight?: number | undefined;
|
|
9571
10252
|
enabled?: boolean | undefined;
|
|
9572
10253
|
notes?: string | undefined;
|
|
@@ -9601,6 +10282,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9601
10282
|
} | undefined;
|
|
9602
10283
|
extraBody?: Record<string, unknown> | undefined;
|
|
9603
10284
|
compat?: unknown;
|
|
10285
|
+
headers?: unknown;
|
|
9604
10286
|
notes?: string | undefined;
|
|
9605
10287
|
}, {
|
|
9606
10288
|
id: string;
|
|
@@ -9631,6 +10313,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9631
10313
|
} | undefined;
|
|
9632
10314
|
extraBody?: unknown;
|
|
9633
10315
|
compat?: unknown;
|
|
10316
|
+
headers?: unknown;
|
|
9634
10317
|
quotaWeight?: number | undefined;
|
|
9635
10318
|
enabled?: boolean | undefined;
|
|
9636
10319
|
notes?: string | undefined;
|
|
@@ -9755,6 +10438,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9755
10438
|
} | undefined;
|
|
9756
10439
|
extraBody?: Record<string, unknown> | undefined;
|
|
9757
10440
|
compat?: unknown;
|
|
10441
|
+
headers?: unknown;
|
|
9758
10442
|
notes?: string | undefined;
|
|
9759
10443
|
}[];
|
|
9760
10444
|
roles: Partial<Record<"default" | "summarize" | "subagent" | "team" | "synthesize" | "verifier" | "classifier" | "consolidate", {
|
|
@@ -9810,6 +10494,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9810
10494
|
} | undefined;
|
|
9811
10495
|
extraBody?: unknown;
|
|
9812
10496
|
compat?: unknown;
|
|
10497
|
+
headers?: unknown;
|
|
9813
10498
|
quotaWeight?: number | undefined;
|
|
9814
10499
|
enabled?: boolean | undefined;
|
|
9815
10500
|
notes?: string | undefined;
|
|
@@ -9869,6 +10554,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9869
10554
|
} | undefined;
|
|
9870
10555
|
extraBody?: Record<string, unknown> | undefined;
|
|
9871
10556
|
compat?: unknown;
|
|
10557
|
+
headers?: unknown;
|
|
9872
10558
|
notes?: string | undefined;
|
|
9873
10559
|
}[];
|
|
9874
10560
|
roles: Partial<Record<"default" | "summarize" | "subagent" | "team" | "synthesize" | "verifier" | "classifier" | "consolidate", {
|
|
@@ -9924,6 +10610,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
9924
10610
|
} | undefined;
|
|
9925
10611
|
extraBody?: unknown;
|
|
9926
10612
|
compat?: unknown;
|
|
10613
|
+
headers?: unknown;
|
|
9927
10614
|
quotaWeight?: number | undefined;
|
|
9928
10615
|
enabled?: boolean | undefined;
|
|
9929
10616
|
notes?: string | undefined;
|
|
@@ -11063,7 +11750,7 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11063
11750
|
}[] | undefined;
|
|
11064
11751
|
}>;
|
|
11065
11752
|
readonly workers: z.ZodEffects<z.ZodObject<{
|
|
11066
|
-
workers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
11753
|
+
workers: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
11067
11754
|
/** 唯一 → 容器名 / compose project. */
|
|
11068
11755
|
name: z.ZodString;
|
|
11069
11756
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -11120,39 +11807,39 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11120
11807
|
cpu: z.ZodOptional<z.ZodString>;
|
|
11121
11808
|
memory: z.ZodOptional<z.ZodString>;
|
|
11122
11809
|
}, "strip", z.ZodTypeAny, {
|
|
11123
|
-
cpu?: string | undefined;
|
|
11124
11810
|
memory?: string | undefined;
|
|
11125
|
-
}, {
|
|
11126
11811
|
cpu?: string | undefined;
|
|
11812
|
+
}, {
|
|
11127
11813
|
memory?: string | undefined;
|
|
11814
|
+
cpu?: string | undefined;
|
|
11128
11815
|
}>>;
|
|
11129
11816
|
limits: z.ZodOptional<z.ZodObject<{
|
|
11130
11817
|
cpu: z.ZodOptional<z.ZodString>;
|
|
11131
11818
|
memory: z.ZodOptional<z.ZodString>;
|
|
11132
11819
|
}, "strip", z.ZodTypeAny, {
|
|
11133
|
-
cpu?: string | undefined;
|
|
11134
11820
|
memory?: string | undefined;
|
|
11135
|
-
}, {
|
|
11136
11821
|
cpu?: string | undefined;
|
|
11822
|
+
}, {
|
|
11137
11823
|
memory?: string | undefined;
|
|
11824
|
+
cpu?: string | undefined;
|
|
11138
11825
|
}>>;
|
|
11139
11826
|
}, "strip", z.ZodTypeAny, {
|
|
11140
11827
|
requests?: {
|
|
11141
|
-
cpu?: string | undefined;
|
|
11142
11828
|
memory?: string | undefined;
|
|
11829
|
+
cpu?: string | undefined;
|
|
11143
11830
|
} | undefined;
|
|
11144
11831
|
limits?: {
|
|
11145
|
-
cpu?: string | undefined;
|
|
11146
11832
|
memory?: string | undefined;
|
|
11833
|
+
cpu?: string | undefined;
|
|
11147
11834
|
} | undefined;
|
|
11148
11835
|
}, {
|
|
11149
11836
|
requests?: {
|
|
11150
|
-
cpu?: string | undefined;
|
|
11151
11837
|
memory?: string | undefined;
|
|
11838
|
+
cpu?: string | undefined;
|
|
11152
11839
|
} | undefined;
|
|
11153
11840
|
limits?: {
|
|
11154
|
-
cpu?: string | undefined;
|
|
11155
11841
|
memory?: string | undefined;
|
|
11842
|
+
cpu?: string | undefined;
|
|
11156
11843
|
} | undefined;
|
|
11157
11844
|
}>>;
|
|
11158
11845
|
/** Scheduling-framework knobs (CONTROL-PLANE-SCHEDULING-DESIGN, 产品拍板 D1/D3 2026-07-04). Optional and
|
|
@@ -11201,11 +11888,88 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11201
11888
|
} | undefined;
|
|
11202
11889
|
drainGraceMs?: number | undefined;
|
|
11203
11890
|
}>>;
|
|
11204
|
-
/** 运行时 (非 secret). 映射到 service
|
|
11891
|
+
/** 运行时 (非 secret). 映射到 service REQUIRE_PRINCIPAL / RATE_LIMIT_RPM / … 与两个结构块(7.0.0)。 */
|
|
11205
11892
|
runtime: z.ZodObject<{
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11893
|
+
/** 7.0.0 执行车道块(见 `ExecutionBlock`)。enabled 的 worker 必填(WorkerSpec 层判);停用的可缺。 */
|
|
11894
|
+
execution: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
11895
|
+
lane: z.ZodEnum<["host", "e2b", "k8s", "ssh", "adb", "local-docker", "device"]>;
|
|
11896
|
+
coords: z.ZodDefault<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
|
|
11897
|
+
secretRefs: z.ZodDefault<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
|
|
11898
|
+
}, "strip", z.ZodTypeAny, {
|
|
11899
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
11900
|
+
secretRefs: Record<string, string>;
|
|
11901
|
+
coords: Record<string, string>;
|
|
11902
|
+
}, {
|
|
11903
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
11904
|
+
secretRefs?: Record<string, string> | undefined;
|
|
11905
|
+
coords?: Record<string, string> | undefined;
|
|
11906
|
+
}>, {
|
|
11907
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
11908
|
+
secretRefs: Record<string, string>;
|
|
11909
|
+
coords: Record<string, string>;
|
|
11910
|
+
}, {
|
|
11911
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
11912
|
+
secretRefs?: Record<string, string> | undefined;
|
|
11913
|
+
coords?: Record<string, string> | undefined;
|
|
11914
|
+
}>>;
|
|
11915
|
+
/** 7.0.0 存储块(见 `StoreBlock`)。enabled 的 worker 必填(WorkerSpec 层判);停用的可缺。 */
|
|
11916
|
+
store: z.ZodOptional<z.ZodObject<{
|
|
11917
|
+
backend: z.ZodEnum<["mysql", "pg", "local", "memory"]>;
|
|
11918
|
+
session: z.ZodDefault<z.ZodEnum<["memory", "mysql", "auto"]>>;
|
|
11919
|
+
memory: z.ZodDefault<z.ZodObject<{
|
|
11920
|
+
engine: z.ZodDefault<z.ZodEnum<["on", "off"]>>;
|
|
11921
|
+
backend: z.ZodDefault<z.ZodEnum<["file", "pg", "tidb"]>>;
|
|
11922
|
+
}, "strip", z.ZodTypeAny, {
|
|
11923
|
+
backend: "pg" | "file" | "tidb";
|
|
11924
|
+
engine: "on" | "off";
|
|
11925
|
+
}, {
|
|
11926
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
11927
|
+
engine?: "on" | "off" | undefined;
|
|
11928
|
+
}>>;
|
|
11929
|
+
/** SQL 服务器坐标(中立,一份;名族由 `backend` 决定)。 */
|
|
11930
|
+
db: z.ZodOptional<z.ZodObject<{
|
|
11931
|
+
host: z.ZodEffects<z.ZodString, string, string>;
|
|
11932
|
+
port: z.ZodNumber;
|
|
11933
|
+
user: z.ZodEffects<z.ZodString, string, string>;
|
|
11934
|
+
database: z.ZodEffects<z.ZodString, string, string>;
|
|
11935
|
+
}, "strip", z.ZodTypeAny, {
|
|
11936
|
+
host: string;
|
|
11937
|
+
port: number;
|
|
11938
|
+
user: string;
|
|
11939
|
+
database: string;
|
|
11940
|
+
}, {
|
|
11941
|
+
host: string;
|
|
11942
|
+
port: number;
|
|
11943
|
+
user: string;
|
|
11944
|
+
database: string;
|
|
11945
|
+
}>>;
|
|
11946
|
+
}, "strip", z.ZodTypeAny, {
|
|
11947
|
+
memory: {
|
|
11948
|
+
backend: "pg" | "file" | "tidb";
|
|
11949
|
+
engine: "on" | "off";
|
|
11950
|
+
};
|
|
11951
|
+
session: "mysql" | "memory" | "auto";
|
|
11952
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
11953
|
+
db?: {
|
|
11954
|
+
host: string;
|
|
11955
|
+
port: number;
|
|
11956
|
+
user: string;
|
|
11957
|
+
database: string;
|
|
11958
|
+
} | undefined;
|
|
11959
|
+
}, {
|
|
11960
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
11961
|
+
memory?: {
|
|
11962
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
11963
|
+
engine?: "on" | "off" | undefined;
|
|
11964
|
+
} | undefined;
|
|
11965
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
11966
|
+
db?: {
|
|
11967
|
+
host: string;
|
|
11968
|
+
port: number;
|
|
11969
|
+
user: string;
|
|
11970
|
+
database: string;
|
|
11971
|
+
} | undefined;
|
|
11972
|
+
}>>;
|
|
11209
11973
|
scenario: z.ZodOptional<z.ZodString>;
|
|
11210
11974
|
requirePrincipal: z.ZodDefault<z.ZodBoolean>;
|
|
11211
11975
|
rateLimitRpm: z.ZodDefault<z.ZodNumber>;
|
|
@@ -11216,38 +11980,61 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11216
11980
|
* default → absent never materialises → no spec-hash churn. Hash-included (read at boot → cap change recreates). */
|
|
11217
11981
|
maxPrincipalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
11218
11982
|
}, "strip", z.ZodTypeAny, {
|
|
11219
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
11220
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
11221
11983
|
requirePrincipal: boolean;
|
|
11222
11984
|
rateLimitRpm: number;
|
|
11223
|
-
|
|
11985
|
+
execution?: {
|
|
11986
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
11987
|
+
secretRefs: Record<string, string>;
|
|
11988
|
+
coords: Record<string, string>;
|
|
11989
|
+
} | undefined;
|
|
11990
|
+
store?: {
|
|
11991
|
+
memory: {
|
|
11992
|
+
backend: "pg" | "file" | "tidb";
|
|
11993
|
+
engine: "on" | "off";
|
|
11994
|
+
};
|
|
11995
|
+
session: "mysql" | "memory" | "auto";
|
|
11996
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
11997
|
+
db?: {
|
|
11998
|
+
host: string;
|
|
11999
|
+
port: number;
|
|
12000
|
+
user: string;
|
|
12001
|
+
database: string;
|
|
12002
|
+
} | undefined;
|
|
12003
|
+
} | undefined;
|
|
11224
12004
|
scenario?: string | undefined;
|
|
11225
12005
|
maxPrincipalCostUsd?: number | undefined;
|
|
11226
12006
|
}, {
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
12007
|
+
execution?: {
|
|
12008
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12009
|
+
secretRefs?: Record<string, string> | undefined;
|
|
12010
|
+
coords?: Record<string, string> | undefined;
|
|
12011
|
+
} | undefined;
|
|
12012
|
+
store?: {
|
|
12013
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12014
|
+
memory?: {
|
|
12015
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
12016
|
+
engine?: "on" | "off" | undefined;
|
|
12017
|
+
} | undefined;
|
|
12018
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
12019
|
+
db?: {
|
|
12020
|
+
host: string;
|
|
12021
|
+
port: number;
|
|
12022
|
+
user: string;
|
|
12023
|
+
database: string;
|
|
12024
|
+
} | undefined;
|
|
12025
|
+
} | undefined;
|
|
11230
12026
|
scenario?: string | undefined;
|
|
11231
12027
|
requirePrincipal?: boolean | undefined;
|
|
11232
12028
|
rateLimitRpm?: number | undefined;
|
|
11233
12029
|
maxPrincipalCostUsd?: number | undefined;
|
|
11234
12030
|
}>;
|
|
11235
|
-
/** 物理坐标 (非 secret). 映射到 GIT_API_BASEURL
|
|
12031
|
+
/** 物理坐标 (非 secret). 映射到 GIT_API_BASEURL。7.0.0 起 SQL 坐标在 `runtime.store.db`(`tidb*` 三键删除)。 */
|
|
11236
12032
|
coords: z.ZodDefault<z.ZodObject<{
|
|
11237
12033
|
gitApiBaseUrl: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>, z.ZodLiteral<"">]>;
|
|
11238
|
-
tidbHost: z.ZodOptional<z.ZodString>;
|
|
11239
|
-
tidbPort: z.ZodOptional<z.ZodNumber>;
|
|
11240
|
-
tidbUser: z.ZodOptional<z.ZodString>;
|
|
11241
12034
|
}, "strip", z.ZodTypeAny, {
|
|
11242
12035
|
gitApiBaseUrl?: string | undefined;
|
|
11243
|
-
tidbHost?: string | undefined;
|
|
11244
|
-
tidbPort?: number | undefined;
|
|
11245
|
-
tidbUser?: string | undefined;
|
|
11246
12036
|
}, {
|
|
11247
12037
|
gitApiBaseUrl?: string | undefined;
|
|
11248
|
-
tidbHost?: string | undefined;
|
|
11249
|
-
tidbPort?: number | undefined;
|
|
11250
|
-
tidbUser?: string | undefined;
|
|
11251
12038
|
}>>;
|
|
11252
12039
|
secretRefs: z.ZodObject<{
|
|
11253
12040
|
/** NAME of the host env var holding the model API key → service MODEL_API_KEY (或 anthropic 时 ANTHROPIC_API_KEY). */
|
|
@@ -11256,18 +12043,19 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11256
12043
|
serviceAuthTokenEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11257
12044
|
/** → GIT_API_TOKEN (只读,读被评审 repo). */
|
|
11258
12045
|
gitTokenEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11259
|
-
/** →
|
|
11260
|
-
|
|
12046
|
+
/** 7.0.0:SQL 店的口令 → `MYSQL_PASSWORD` / `PG_PASSWORD`(渲染器按 `runtime.store.backend` 选名族)。
|
|
12047
|
+
* 在场 ⇔ `runtime.store.backend` ∈ {mysql, pg}(WorkerSpec 层判,与 `runtime.store.db` 同一条规则)。取代 6.x 的 `tidbPasswordEnv`。 */
|
|
12048
|
+
dbPasswordEnv: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11261
12049
|
}, "strip", z.ZodTypeAny, {
|
|
11262
12050
|
apiKeyEnv: string;
|
|
11263
12051
|
serviceAuthTokenEnv?: string | undefined;
|
|
11264
12052
|
gitTokenEnv?: string | undefined;
|
|
11265
|
-
|
|
12053
|
+
dbPasswordEnv?: string | undefined;
|
|
11266
12054
|
}, {
|
|
11267
12055
|
apiKeyEnv: string;
|
|
11268
12056
|
serviceAuthTokenEnv?: string | undefined;
|
|
11269
12057
|
gitTokenEnv?: string | undefined;
|
|
11270
|
-
|
|
12058
|
+
dbPasswordEnv?: string | undefined;
|
|
11271
12059
|
}>;
|
|
11272
12060
|
/**
|
|
11273
12061
|
* 通用 env 透传(逃生口)——给**没有专属结构化字段**的 service env 用,让任意 worker 声明自己的 app 专属变量
|
|
@@ -11348,31 +12136,44 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11348
12136
|
signature: z.ZodOptional<z.ZodString>;
|
|
11349
12137
|
notes: z.ZodOptional<z.ZodString>;
|
|
11350
12138
|
}, "strip", z.ZodTypeAny, {
|
|
12139
|
+
host: string;
|
|
12140
|
+
secretRefs: {
|
|
12141
|
+
apiKeyEnv: string;
|
|
12142
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
12143
|
+
gitTokenEnv?: string | undefined;
|
|
12144
|
+
dbPasswordEnv?: string | undefined;
|
|
12145
|
+
};
|
|
12146
|
+
coords: {
|
|
12147
|
+
gitApiBaseUrl?: string | undefined;
|
|
12148
|
+
};
|
|
11351
12149
|
name: string;
|
|
11352
12150
|
enabled: boolean;
|
|
11353
|
-
host: string;
|
|
11354
12151
|
image: string;
|
|
11355
12152
|
runtime: {
|
|
11356
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
11357
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
11358
12153
|
requirePrincipal: boolean;
|
|
11359
12154
|
rateLimitRpm: number;
|
|
11360
|
-
|
|
12155
|
+
execution?: {
|
|
12156
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12157
|
+
secretRefs: Record<string, string>;
|
|
12158
|
+
coords: Record<string, string>;
|
|
12159
|
+
} | undefined;
|
|
12160
|
+
store?: {
|
|
12161
|
+
memory: {
|
|
12162
|
+
backend: "pg" | "file" | "tidb";
|
|
12163
|
+
engine: "on" | "off";
|
|
12164
|
+
};
|
|
12165
|
+
session: "mysql" | "memory" | "auto";
|
|
12166
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12167
|
+
db?: {
|
|
12168
|
+
host: string;
|
|
12169
|
+
port: number;
|
|
12170
|
+
user: string;
|
|
12171
|
+
database: string;
|
|
12172
|
+
} | undefined;
|
|
12173
|
+
} | undefined;
|
|
11361
12174
|
scenario?: string | undefined;
|
|
11362
12175
|
maxPrincipalCostUsd?: number | undefined;
|
|
11363
12176
|
};
|
|
11364
|
-
coords: {
|
|
11365
|
-
gitApiBaseUrl?: string | undefined;
|
|
11366
|
-
tidbHost?: string | undefined;
|
|
11367
|
-
tidbPort?: number | undefined;
|
|
11368
|
-
tidbUser?: string | undefined;
|
|
11369
|
-
};
|
|
11370
|
-
secretRefs: {
|
|
11371
|
-
apiKeyEnv: string;
|
|
11372
|
-
serviceAuthTokenEnv?: string | undefined;
|
|
11373
|
-
gitTokenEnv?: string | undefined;
|
|
11374
|
-
tidbPasswordEnv?: string | undefined;
|
|
11375
|
-
};
|
|
11376
12177
|
notes?: string | undefined;
|
|
11377
12178
|
routePrefix?: string | undefined;
|
|
11378
12179
|
replicas?: number | undefined;
|
|
@@ -11383,12 +12184,12 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11383
12184
|
} | undefined;
|
|
11384
12185
|
resources?: {
|
|
11385
12186
|
requests?: {
|
|
11386
|
-
cpu?: string | undefined;
|
|
11387
12187
|
memory?: string | undefined;
|
|
12188
|
+
cpu?: string | undefined;
|
|
11388
12189
|
} | undefined;
|
|
11389
12190
|
limits?: {
|
|
11390
|
-
cpu?: string | undefined;
|
|
11391
12191
|
memory?: string | undefined;
|
|
12192
|
+
cpu?: string | undefined;
|
|
11392
12193
|
} | undefined;
|
|
11393
12194
|
} | undefined;
|
|
11394
12195
|
fleet?: {
|
|
@@ -11420,25 +12221,44 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11420
12221
|
roster?: string | undefined;
|
|
11421
12222
|
signature?: string | undefined;
|
|
11422
12223
|
}, {
|
|
12224
|
+
secretRefs: {
|
|
12225
|
+
apiKeyEnv: string;
|
|
12226
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
12227
|
+
gitTokenEnv?: string | undefined;
|
|
12228
|
+
dbPasswordEnv?: string | undefined;
|
|
12229
|
+
};
|
|
11423
12230
|
name: string;
|
|
11424
12231
|
runtime: {
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
12232
|
+
execution?: {
|
|
12233
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12234
|
+
secretRefs?: Record<string, string> | undefined;
|
|
12235
|
+
coords?: Record<string, string> | undefined;
|
|
12236
|
+
} | undefined;
|
|
12237
|
+
store?: {
|
|
12238
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12239
|
+
memory?: {
|
|
12240
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
12241
|
+
engine?: "on" | "off" | undefined;
|
|
12242
|
+
} | undefined;
|
|
12243
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
12244
|
+
db?: {
|
|
12245
|
+
host: string;
|
|
12246
|
+
port: number;
|
|
12247
|
+
user: string;
|
|
12248
|
+
database: string;
|
|
12249
|
+
} | undefined;
|
|
12250
|
+
} | undefined;
|
|
11428
12251
|
scenario?: string | undefined;
|
|
11429
12252
|
requirePrincipal?: boolean | undefined;
|
|
11430
12253
|
rateLimitRpm?: number | undefined;
|
|
11431
12254
|
maxPrincipalCostUsd?: number | undefined;
|
|
11432
12255
|
};
|
|
11433
|
-
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
tidbPasswordEnv?: string | undefined;
|
|
11438
|
-
};
|
|
12256
|
+
host?: string | undefined;
|
|
12257
|
+
coords?: {
|
|
12258
|
+
gitApiBaseUrl?: string | undefined;
|
|
12259
|
+
} | undefined;
|
|
11439
12260
|
enabled?: boolean | undefined;
|
|
11440
12261
|
notes?: string | undefined;
|
|
11441
|
-
host?: string | undefined;
|
|
11442
12262
|
image?: string | undefined;
|
|
11443
12263
|
routePrefix?: string | undefined;
|
|
11444
12264
|
replicas?: number | undefined;
|
|
@@ -11449,12 +12269,12 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11449
12269
|
} | undefined;
|
|
11450
12270
|
resources?: {
|
|
11451
12271
|
requests?: {
|
|
11452
|
-
cpu?: string | undefined;
|
|
11453
12272
|
memory?: string | undefined;
|
|
12273
|
+
cpu?: string | undefined;
|
|
11454
12274
|
} | undefined;
|
|
11455
12275
|
limits?: {
|
|
11456
|
-
cpu?: string | undefined;
|
|
11457
12276
|
memory?: string | undefined;
|
|
12277
|
+
cpu?: string | undefined;
|
|
11458
12278
|
} | undefined;
|
|
11459
12279
|
} | undefined;
|
|
11460
12280
|
fleet?: {
|
|
@@ -11467,12 +12287,6 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11467
12287
|
} | undefined;
|
|
11468
12288
|
drainGraceMs?: number | undefined;
|
|
11469
12289
|
} | undefined;
|
|
11470
|
-
coords?: {
|
|
11471
|
-
gitApiBaseUrl?: string | undefined;
|
|
11472
|
-
tidbHost?: string | undefined;
|
|
11473
|
-
tidbPort?: number | undefined;
|
|
11474
|
-
tidbUser?: string | undefined;
|
|
11475
|
-
} | undefined;
|
|
11476
12290
|
env?: Record<string, string> | undefined;
|
|
11477
12291
|
secretEnv?: Record<string, string> | undefined;
|
|
11478
12292
|
recreateNonce?: string | undefined;
|
|
@@ -11491,34 +12305,45 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11491
12305
|
} | undefined;
|
|
11492
12306
|
roster?: string | undefined;
|
|
11493
12307
|
signature?: string | undefined;
|
|
11494
|
-
}>,
|
|
11495
|
-
|
|
11496
|
-
|
|
12308
|
+
}>, {
|
|
12309
|
+
host: string;
|
|
12310
|
+
secretRefs: {
|
|
12311
|
+
apiKeyEnv: string;
|
|
12312
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
12313
|
+
gitTokenEnv?: string | undefined;
|
|
12314
|
+
dbPasswordEnv?: string | undefined;
|
|
12315
|
+
};
|
|
12316
|
+
coords: {
|
|
12317
|
+
gitApiBaseUrl?: string | undefined;
|
|
12318
|
+
};
|
|
11497
12319
|
name: string;
|
|
11498
12320
|
enabled: boolean;
|
|
11499
|
-
host: string;
|
|
11500
12321
|
image: string;
|
|
11501
12322
|
runtime: {
|
|
11502
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
11503
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
11504
12323
|
requirePrincipal: boolean;
|
|
11505
12324
|
rateLimitRpm: number;
|
|
11506
|
-
|
|
12325
|
+
execution?: {
|
|
12326
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12327
|
+
secretRefs: Record<string, string>;
|
|
12328
|
+
coords: Record<string, string>;
|
|
12329
|
+
} | undefined;
|
|
12330
|
+
store?: {
|
|
12331
|
+
memory: {
|
|
12332
|
+
backend: "pg" | "file" | "tidb";
|
|
12333
|
+
engine: "on" | "off";
|
|
12334
|
+
};
|
|
12335
|
+
session: "mysql" | "memory" | "auto";
|
|
12336
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12337
|
+
db?: {
|
|
12338
|
+
host: string;
|
|
12339
|
+
port: number;
|
|
12340
|
+
user: string;
|
|
12341
|
+
database: string;
|
|
12342
|
+
} | undefined;
|
|
12343
|
+
} | undefined;
|
|
11507
12344
|
scenario?: string | undefined;
|
|
11508
12345
|
maxPrincipalCostUsd?: number | undefined;
|
|
11509
12346
|
};
|
|
11510
|
-
coords: {
|
|
11511
|
-
gitApiBaseUrl?: string | undefined;
|
|
11512
|
-
tidbHost?: string | undefined;
|
|
11513
|
-
tidbPort?: number | undefined;
|
|
11514
|
-
tidbUser?: string | undefined;
|
|
11515
|
-
};
|
|
11516
|
-
secretRefs: {
|
|
11517
|
-
apiKeyEnv: string;
|
|
11518
|
-
serviceAuthTokenEnv?: string | undefined;
|
|
11519
|
-
gitTokenEnv?: string | undefined;
|
|
11520
|
-
tidbPasswordEnv?: string | undefined;
|
|
11521
|
-
};
|
|
11522
12347
|
notes?: string | undefined;
|
|
11523
12348
|
routePrefix?: string | undefined;
|
|
11524
12349
|
replicas?: number | undefined;
|
|
@@ -11529,12 +12354,12 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11529
12354
|
} | undefined;
|
|
11530
12355
|
resources?: {
|
|
11531
12356
|
requests?: {
|
|
11532
|
-
cpu?: string | undefined;
|
|
11533
12357
|
memory?: string | undefined;
|
|
12358
|
+
cpu?: string | undefined;
|
|
11534
12359
|
} | undefined;
|
|
11535
12360
|
limits?: {
|
|
11536
|
-
cpu?: string | undefined;
|
|
11537
12361
|
memory?: string | undefined;
|
|
12362
|
+
cpu?: string | undefined;
|
|
11538
12363
|
} | undefined;
|
|
11539
12364
|
} | undefined;
|
|
11540
12365
|
fleet?: {
|
|
@@ -11565,28 +12390,45 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11565
12390
|
} | undefined;
|
|
11566
12391
|
roster?: string | undefined;
|
|
11567
12392
|
signature?: string | undefined;
|
|
11568
|
-
}
|
|
11569
|
-
|
|
11570
|
-
|
|
12393
|
+
}, {
|
|
12394
|
+
secretRefs: {
|
|
12395
|
+
apiKeyEnv: string;
|
|
12396
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
12397
|
+
gitTokenEnv?: string | undefined;
|
|
12398
|
+
dbPasswordEnv?: string | undefined;
|
|
12399
|
+
};
|
|
11571
12400
|
name: string;
|
|
11572
12401
|
runtime: {
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
12402
|
+
execution?: {
|
|
12403
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12404
|
+
secretRefs?: Record<string, string> | undefined;
|
|
12405
|
+
coords?: Record<string, string> | undefined;
|
|
12406
|
+
} | undefined;
|
|
12407
|
+
store?: {
|
|
12408
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12409
|
+
memory?: {
|
|
12410
|
+
backend?: "pg" | "file" | "tidb" | undefined;
|
|
12411
|
+
engine?: "on" | "off" | undefined;
|
|
12412
|
+
} | undefined;
|
|
12413
|
+
session?: "mysql" | "memory" | "auto" | undefined;
|
|
12414
|
+
db?: {
|
|
12415
|
+
host: string;
|
|
12416
|
+
port: number;
|
|
12417
|
+
user: string;
|
|
12418
|
+
database: string;
|
|
12419
|
+
} | undefined;
|
|
12420
|
+
} | undefined;
|
|
11576
12421
|
scenario?: string | undefined;
|
|
11577
12422
|
requirePrincipal?: boolean | undefined;
|
|
11578
12423
|
rateLimitRpm?: number | undefined;
|
|
11579
12424
|
maxPrincipalCostUsd?: number | undefined;
|
|
11580
12425
|
};
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
tidbPasswordEnv?: string | undefined;
|
|
11586
|
-
};
|
|
12426
|
+
host?: string | undefined;
|
|
12427
|
+
coords?: {
|
|
12428
|
+
gitApiBaseUrl?: string | undefined;
|
|
12429
|
+
} | undefined;
|
|
11587
12430
|
enabled?: boolean | undefined;
|
|
11588
12431
|
notes?: string | undefined;
|
|
11589
|
-
host?: string | undefined;
|
|
11590
12432
|
image?: string | undefined;
|
|
11591
12433
|
routePrefix?: string | undefined;
|
|
11592
12434
|
replicas?: number | undefined;
|
|
@@ -11597,12 +12439,12 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11597
12439
|
} | undefined;
|
|
11598
12440
|
resources?: {
|
|
11599
12441
|
requests?: {
|
|
11600
|
-
cpu?: string | undefined;
|
|
11601
12442
|
memory?: string | undefined;
|
|
12443
|
+
cpu?: string | undefined;
|
|
11602
12444
|
} | undefined;
|
|
11603
12445
|
limits?: {
|
|
11604
|
-
cpu?: string | undefined;
|
|
11605
12446
|
memory?: string | undefined;
|
|
12447
|
+
cpu?: string | undefined;
|
|
11606
12448
|
} | undefined;
|
|
11607
12449
|
} | undefined;
|
|
11608
12450
|
fleet?: {
|
|
@@ -11615,12 +12457,6 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11615
12457
|
} | undefined;
|
|
11616
12458
|
drainGraceMs?: number | undefined;
|
|
11617
12459
|
} | undefined;
|
|
11618
|
-
coords?: {
|
|
11619
|
-
gitApiBaseUrl?: string | undefined;
|
|
11620
|
-
tidbHost?: string | undefined;
|
|
11621
|
-
tidbPort?: number | undefined;
|
|
11622
|
-
tidbUser?: string | undefined;
|
|
11623
|
-
} | undefined;
|
|
11624
12460
|
env?: Record<string, string> | undefined;
|
|
11625
12461
|
secretEnv?: Record<string, string> | undefined;
|
|
11626
12462
|
recreateNonce?: string | undefined;
|
|
@@ -11639,33 +12475,131 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11639
12475
|
} | undefined;
|
|
11640
12476
|
roster?: string | undefined;
|
|
11641
12477
|
signature?: string | undefined;
|
|
11642
|
-
}
|
|
11643
|
-
|
|
11644
|
-
|
|
12478
|
+
}>, {
|
|
12479
|
+
host: string;
|
|
12480
|
+
secretRefs: {
|
|
12481
|
+
apiKeyEnv: string;
|
|
12482
|
+
serviceAuthTokenEnv?: string | undefined;
|
|
12483
|
+
gitTokenEnv?: string | undefined;
|
|
12484
|
+
dbPasswordEnv?: string | undefined;
|
|
12485
|
+
};
|
|
12486
|
+
coords: {
|
|
12487
|
+
gitApiBaseUrl?: string | undefined;
|
|
12488
|
+
};
|
|
11645
12489
|
name: string;
|
|
11646
12490
|
enabled: boolean;
|
|
11647
|
-
host: string;
|
|
11648
12491
|
image: string;
|
|
11649
12492
|
runtime: {
|
|
11650
|
-
sessionBackend: "memory" | "tidb" | "auto";
|
|
11651
|
-
memoryBackend: "memory" | "tidb" | "off";
|
|
11652
12493
|
requirePrincipal: boolean;
|
|
11653
12494
|
rateLimitRpm: number;
|
|
11654
|
-
|
|
12495
|
+
execution?: {
|
|
12496
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12497
|
+
secretRefs: Record<string, string>;
|
|
12498
|
+
coords: Record<string, string>;
|
|
12499
|
+
} | undefined;
|
|
12500
|
+
store?: {
|
|
12501
|
+
memory: {
|
|
12502
|
+
backend: "pg" | "file" | "tidb";
|
|
12503
|
+
engine: "on" | "off";
|
|
12504
|
+
};
|
|
12505
|
+
session: "mysql" | "memory" | "auto";
|
|
12506
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12507
|
+
db?: {
|
|
12508
|
+
host: string;
|
|
12509
|
+
port: number;
|
|
12510
|
+
user: string;
|
|
12511
|
+
database: string;
|
|
12512
|
+
} | undefined;
|
|
12513
|
+
} | undefined;
|
|
11655
12514
|
scenario?: string | undefined;
|
|
11656
12515
|
maxPrincipalCostUsd?: number | undefined;
|
|
11657
12516
|
};
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
12517
|
+
notes?: string | undefined;
|
|
12518
|
+
routePrefix?: string | undefined;
|
|
12519
|
+
replicas?: number | undefined;
|
|
12520
|
+
autoscaling?: {
|
|
12521
|
+
minReplicas: number;
|
|
12522
|
+
maxReplicas: number;
|
|
12523
|
+
targetCpuPercent?: number | undefined;
|
|
12524
|
+
} | undefined;
|
|
12525
|
+
resources?: {
|
|
12526
|
+
requests?: {
|
|
12527
|
+
memory?: string | undefined;
|
|
12528
|
+
cpu?: string | undefined;
|
|
12529
|
+
} | undefined;
|
|
12530
|
+
limits?: {
|
|
12531
|
+
memory?: string | undefined;
|
|
12532
|
+
cpu?: string | undefined;
|
|
12533
|
+
} | undefined;
|
|
12534
|
+
} | undefined;
|
|
12535
|
+
fleet?: {
|
|
12536
|
+
dispatch?: {
|
|
12537
|
+
strategy: "round-robin" | "least-inflight" | "consistent-hash";
|
|
12538
|
+
sessionAffinity: boolean;
|
|
12539
|
+
maxInflight?: number | undefined;
|
|
12540
|
+
perActorMaxInflight?: number | undefined;
|
|
12541
|
+
maxCostUsd?: number | undefined;
|
|
12542
|
+
} | undefined;
|
|
12543
|
+
drainGraceMs?: number | undefined;
|
|
12544
|
+
} | undefined;
|
|
12545
|
+
env?: Record<string, string> | undefined;
|
|
12546
|
+
secretEnv?: Record<string, string> | undefined;
|
|
12547
|
+
recreateNonce?: string | undefined;
|
|
12548
|
+
lifecycle?: {
|
|
12549
|
+
kind: "persistent" | "ephemeral";
|
|
12550
|
+
ttl?: string | undefined;
|
|
12551
|
+
idleTimeout?: string | undefined;
|
|
12552
|
+
owner?: string | undefined;
|
|
12553
|
+
purpose?: string | undefined;
|
|
12554
|
+
dependsOn?: string[] | undefined;
|
|
12555
|
+
} | undefined;
|
|
12556
|
+
placement?: {
|
|
12557
|
+
auto: boolean;
|
|
12558
|
+
requires: string[];
|
|
12559
|
+
spread?: string | undefined;
|
|
12560
|
+
} | undefined;
|
|
12561
|
+
roster?: string | undefined;
|
|
12562
|
+
signature?: string | undefined;
|
|
12563
|
+
}, unknown>, "many">>;
|
|
12564
|
+
}, "strip", z.ZodTypeAny, {
|
|
12565
|
+
workers: {
|
|
12566
|
+
host: string;
|
|
11664
12567
|
secretRefs: {
|
|
11665
12568
|
apiKeyEnv: string;
|
|
11666
12569
|
serviceAuthTokenEnv?: string | undefined;
|
|
11667
12570
|
gitTokenEnv?: string | undefined;
|
|
11668
|
-
|
|
12571
|
+
dbPasswordEnv?: string | undefined;
|
|
12572
|
+
};
|
|
12573
|
+
coords: {
|
|
12574
|
+
gitApiBaseUrl?: string | undefined;
|
|
12575
|
+
};
|
|
12576
|
+
name: string;
|
|
12577
|
+
enabled: boolean;
|
|
12578
|
+
image: string;
|
|
12579
|
+
runtime: {
|
|
12580
|
+
requirePrincipal: boolean;
|
|
12581
|
+
rateLimitRpm: number;
|
|
12582
|
+
execution?: {
|
|
12583
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12584
|
+
secretRefs: Record<string, string>;
|
|
12585
|
+
coords: Record<string, string>;
|
|
12586
|
+
} | undefined;
|
|
12587
|
+
store?: {
|
|
12588
|
+
memory: {
|
|
12589
|
+
backend: "pg" | "file" | "tidb";
|
|
12590
|
+
engine: "on" | "off";
|
|
12591
|
+
};
|
|
12592
|
+
session: "mysql" | "memory" | "auto";
|
|
12593
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12594
|
+
db?: {
|
|
12595
|
+
host: string;
|
|
12596
|
+
port: number;
|
|
12597
|
+
user: string;
|
|
12598
|
+
database: string;
|
|
12599
|
+
} | undefined;
|
|
12600
|
+
} | undefined;
|
|
12601
|
+
scenario?: string | undefined;
|
|
12602
|
+
maxPrincipalCostUsd?: number | undefined;
|
|
11669
12603
|
};
|
|
11670
12604
|
notes?: string | undefined;
|
|
11671
12605
|
routePrefix?: string | undefined;
|
|
@@ -11677,12 +12611,12 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11677
12611
|
} | undefined;
|
|
11678
12612
|
resources?: {
|
|
11679
12613
|
requests?: {
|
|
11680
|
-
cpu?: string | undefined;
|
|
11681
12614
|
memory?: string | undefined;
|
|
12615
|
+
cpu?: string | undefined;
|
|
11682
12616
|
} | undefined;
|
|
11683
12617
|
limits?: {
|
|
11684
|
-
cpu?: string | undefined;
|
|
11685
12618
|
memory?: string | undefined;
|
|
12619
|
+
cpu?: string | undefined;
|
|
11686
12620
|
} | undefined;
|
|
11687
12621
|
} | undefined;
|
|
11688
12622
|
fleet?: {
|
|
@@ -11715,27 +12649,48 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11715
12649
|
signature?: string | undefined;
|
|
11716
12650
|
}[];
|
|
11717
12651
|
}, {
|
|
11718
|
-
workers?:
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
memoryBackend?: "memory" | "tidb" | "off" | undefined;
|
|
11723
|
-
db?: string | undefined;
|
|
11724
|
-
scenario?: string | undefined;
|
|
11725
|
-
requirePrincipal?: boolean | undefined;
|
|
11726
|
-
rateLimitRpm?: number | undefined;
|
|
11727
|
-
maxPrincipalCostUsd?: number | undefined;
|
|
11728
|
-
};
|
|
12652
|
+
workers?: unknown[] | undefined;
|
|
12653
|
+
}>, {
|
|
12654
|
+
workers: {
|
|
12655
|
+
host: string;
|
|
11729
12656
|
secretRefs: {
|
|
11730
12657
|
apiKeyEnv: string;
|
|
11731
12658
|
serviceAuthTokenEnv?: string | undefined;
|
|
11732
12659
|
gitTokenEnv?: string | undefined;
|
|
11733
|
-
|
|
12660
|
+
dbPasswordEnv?: string | undefined;
|
|
12661
|
+
};
|
|
12662
|
+
coords: {
|
|
12663
|
+
gitApiBaseUrl?: string | undefined;
|
|
12664
|
+
};
|
|
12665
|
+
name: string;
|
|
12666
|
+
enabled: boolean;
|
|
12667
|
+
image: string;
|
|
12668
|
+
runtime: {
|
|
12669
|
+
requirePrincipal: boolean;
|
|
12670
|
+
rateLimitRpm: number;
|
|
12671
|
+
execution?: {
|
|
12672
|
+
lane: "host" | "e2b" | "k8s" | "ssh" | "adb" | "local-docker" | "device";
|
|
12673
|
+
secretRefs: Record<string, string>;
|
|
12674
|
+
coords: Record<string, string>;
|
|
12675
|
+
} | undefined;
|
|
12676
|
+
store?: {
|
|
12677
|
+
memory: {
|
|
12678
|
+
backend: "pg" | "file" | "tidb";
|
|
12679
|
+
engine: "on" | "off";
|
|
12680
|
+
};
|
|
12681
|
+
session: "mysql" | "memory" | "auto";
|
|
12682
|
+
backend: "mysql" | "pg" | "local" | "memory";
|
|
12683
|
+
db?: {
|
|
12684
|
+
host: string;
|
|
12685
|
+
port: number;
|
|
12686
|
+
user: string;
|
|
12687
|
+
database: string;
|
|
12688
|
+
} | undefined;
|
|
12689
|
+
} | undefined;
|
|
12690
|
+
scenario?: string | undefined;
|
|
12691
|
+
maxPrincipalCostUsd?: number | undefined;
|
|
11734
12692
|
};
|
|
11735
|
-
enabled?: boolean | undefined;
|
|
11736
12693
|
notes?: string | undefined;
|
|
11737
|
-
host?: string | undefined;
|
|
11738
|
-
image?: string | undefined;
|
|
11739
12694
|
routePrefix?: string | undefined;
|
|
11740
12695
|
replicas?: number | undefined;
|
|
11741
12696
|
autoscaling?: {
|
|
@@ -11745,35 +12700,29 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11745
12700
|
} | undefined;
|
|
11746
12701
|
resources?: {
|
|
11747
12702
|
requests?: {
|
|
11748
|
-
cpu?: string | undefined;
|
|
11749
12703
|
memory?: string | undefined;
|
|
12704
|
+
cpu?: string | undefined;
|
|
11750
12705
|
} | undefined;
|
|
11751
12706
|
limits?: {
|
|
11752
|
-
cpu?: string | undefined;
|
|
11753
12707
|
memory?: string | undefined;
|
|
12708
|
+
cpu?: string | undefined;
|
|
11754
12709
|
} | undefined;
|
|
11755
12710
|
} | undefined;
|
|
11756
12711
|
fleet?: {
|
|
11757
12712
|
dispatch?: {
|
|
11758
|
-
strategy
|
|
11759
|
-
sessionAffinity
|
|
12713
|
+
strategy: "round-robin" | "least-inflight" | "consistent-hash";
|
|
12714
|
+
sessionAffinity: boolean;
|
|
11760
12715
|
maxInflight?: number | undefined;
|
|
11761
12716
|
perActorMaxInflight?: number | undefined;
|
|
11762
12717
|
maxCostUsd?: number | undefined;
|
|
11763
12718
|
} | undefined;
|
|
11764
12719
|
drainGraceMs?: number | undefined;
|
|
11765
12720
|
} | undefined;
|
|
11766
|
-
coords?: {
|
|
11767
|
-
gitApiBaseUrl?: string | undefined;
|
|
11768
|
-
tidbHost?: string | undefined;
|
|
11769
|
-
tidbPort?: number | undefined;
|
|
11770
|
-
tidbUser?: string | undefined;
|
|
11771
|
-
} | undefined;
|
|
11772
12721
|
env?: Record<string, string> | undefined;
|
|
11773
12722
|
secretEnv?: Record<string, string> | undefined;
|
|
11774
12723
|
recreateNonce?: string | undefined;
|
|
11775
12724
|
lifecycle?: {
|
|
11776
|
-
kind
|
|
12725
|
+
kind: "persistent" | "ephemeral";
|
|
11777
12726
|
ttl?: string | undefined;
|
|
11778
12727
|
idleTimeout?: string | undefined;
|
|
11779
12728
|
owner?: string | undefined;
|
|
@@ -11781,13 +12730,15 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
11781
12730
|
dependsOn?: string[] | undefined;
|
|
11782
12731
|
} | undefined;
|
|
11783
12732
|
placement?: {
|
|
11784
|
-
auto
|
|
11785
|
-
requires
|
|
12733
|
+
auto: boolean;
|
|
12734
|
+
requires: string[];
|
|
11786
12735
|
spread?: string | undefined;
|
|
11787
12736
|
} | undefined;
|
|
11788
12737
|
roster?: string | undefined;
|
|
11789
12738
|
signature?: string | undefined;
|
|
11790
|
-
}[]
|
|
12739
|
+
}[];
|
|
12740
|
+
}, {
|
|
12741
|
+
workers?: unknown[] | undefined;
|
|
11791
12742
|
}>;
|
|
11792
12743
|
readonly hosts: z.ZodEffects<z.ZodObject<{
|
|
11793
12744
|
hosts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -13149,8 +14100,9 @@ export declare const DOMAIN_SCHEMAS: {
|
|
|
13149
14100
|
* shell locks sandbox-enabled by policy; user settings can't turn it off — CC 同款语义). */
|
|
13150
14101
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
13151
14102
|
/** Which execution lanes are allowed. OPEN value domain — z.string(), NEVER an enum: adding a lane
|
|
13152
|
-
* must not be a BREAKING schema change (promised to the service).
|
|
13153
|
-
*
|
|
14103
|
+
* must not be a BREAKING schema change (promised to the service). The closed set of lanes a worker can
|
|
14104
|
+
* declare is `EXECUTION_LANE_WORDS` (`execution-lanes.ts`, 7.0.0) — read it there, not from a copy in this
|
|
14105
|
+
* comment. Unknown strings are consumer-defined. */
|
|
13154
14106
|
allowedLanes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
13155
14107
|
/** Org 默认会话镜像目标(0.10.1,附B 两层)。ABSENT = INERT(center 未管镜像,壳解析序里本腿为空)。
|
|
13156
14108
|
* 读损档随域(DOMAIN_READ_FALLBACK.execution="throw" 已覆盖:损坏绝不静默退默认放权)。 */
|