@cat-factory/contracts 0.8.0 → 0.11.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.
@@ -1,34 +0,0 @@
1
- import * as v from 'valibot';
2
- // ---------------------------------------------------------------------------
3
- // Per-workspace, per-agent-kind default model selection. A workspace can choose
4
- // which model is the default for each agent kind (e.g. point `architect` at a
5
- // strong model and `tester` at a cheap one), overriding the env-driven
6
- // `AGENT_routing` for that workspace at runtime. The map is keyed by agent kind
7
- // and valued by a model catalog id (the `ModelOption.id` from `GET /models`).
8
- //
9
- // Resolution precedence at run time is: a block's explicitly pinned model wins,
10
- // else this workspace per-kind default, else the env routing for the kind, else
11
- // the env default. So this map only fills the gap between "no per-task pin" and
12
- // "the deployment-wide routing".
13
- // ---------------------------------------------------------------------------
14
- /**
15
- * A workspace's per-agent-kind default models: a map from agent kind to the model
16
- * catalog id it should default to. A kind absent from the map falls back to the
17
- * env routing for that kind. Sent on the wire as the workspace's full selection.
18
- */
19
- export const modelDefaultsSchema = v.object({
20
- defaults: v.record(v.string(), v.string()),
21
- });
22
- // ---- Request bodies -------------------------------------------------------
23
- /**
24
- * Replace a workspace's per-kind default models. Sending the full map replaces it
25
- * wholesale (a kind omitted is cleared). Keys (agent kinds) and values (model ids)
26
- * are both trimmed and must be non-empty — agent kinds are an open set (custom
27
- * agents are allowed), so keys aren't checked against a closed list, and model ids
28
- * aren't validated against the catalog here (an unresolvable id simply falls back
29
- * to the env routing at run time).
30
- */
31
- export const setModelDefaultsSchema = v.object({
32
- defaults: v.record(v.pipe(v.string(), v.trim(), v.minLength(1)), v.pipe(v.string(), v.trim(), v.minLength(1))),
33
- });
34
- //# sourceMappingURL=model-defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model-defaults.js","sourceRoot":"","sources":["../src/model-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,gFAAgF;AAChF,8EAA8E;AAC9E,uEAAuE;AACvE,gFAAgF;AAChF,8EAA8E;AAC9E,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,iCAAiC;AACjC,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAA;AAGF,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,MAAM,CAChB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAC5C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAC7C;CACF,CAAC,CAAA"}