@guuey/config 0.16.20 → 0.16.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.d.ts +16 -4
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +43 -31
- package/dist/registry.d.ts +18 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +42 -0
- package/dist/schema.d.ts +4 -1
- package/dist/schema.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/agent.d.ts
CHANGED
|
@@ -94,7 +94,10 @@ declare const McpServerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
94
94
|
caller: "caller";
|
|
95
95
|
oauth: "oauth";
|
|
96
96
|
}>>;
|
|
97
|
-
authMode: z.ZodOptional<z.
|
|
97
|
+
authMode: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
lazy: "lazy";
|
|
99
|
+
upfront: "upfront";
|
|
100
|
+
}>>;
|
|
98
101
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
99
102
|
devPort: z.ZodOptional<z.ZodNumber>;
|
|
100
103
|
mcpResourceUrl: z.ZodOptional<z.ZodURL>;
|
|
@@ -129,7 +132,10 @@ export declare const McpServerEntrySchema: z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
129
132
|
caller: "caller";
|
|
130
133
|
oauth: "oauth";
|
|
131
134
|
}>>;
|
|
132
|
-
authMode: z.ZodOptional<z.
|
|
135
|
+
authMode: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
lazy: "lazy";
|
|
137
|
+
upfront: "upfront";
|
|
138
|
+
}>>;
|
|
133
139
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
134
140
|
devPort: z.ZodOptional<z.ZodNumber>;
|
|
135
141
|
mcpResourceUrl: z.ZodOptional<z.ZodURL>;
|
|
@@ -305,7 +311,10 @@ export declare const McpServersSection: z.ZodRecord<z.ZodString, z.ZodUnion<read
|
|
|
305
311
|
caller: "caller";
|
|
306
312
|
oauth: "oauth";
|
|
307
313
|
}>>;
|
|
308
|
-
authMode: z.ZodOptional<z.
|
|
314
|
+
authMode: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
lazy: "lazy";
|
|
316
|
+
upfront: "upfront";
|
|
317
|
+
}>>;
|
|
309
318
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
310
319
|
devPort: z.ZodOptional<z.ZodNumber>;
|
|
311
320
|
mcpResourceUrl: z.ZodOptional<z.ZodURL>;
|
|
@@ -355,7 +364,10 @@ export declare const AgentSectionV1: z.ZodObject<{
|
|
|
355
364
|
caller: "caller";
|
|
356
365
|
oauth: "oauth";
|
|
357
366
|
}>>;
|
|
358
|
-
authMode: z.ZodOptional<z.
|
|
367
|
+
authMode: z.ZodOptional<z.ZodEnum<{
|
|
368
|
+
lazy: "lazy";
|
|
369
|
+
upfront: "upfront";
|
|
370
|
+
}>>;
|
|
359
371
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
360
372
|
devPort: z.ZodOptional<z.ZodNumber>;
|
|
361
373
|
mcpResourceUrl: z.ZodOptional<z.ZodURL>;
|
package/dist/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,6EAKnB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAS/D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;EAAiC,CAAC;AAClE,uEAAuE;AACvE,MAAM,MAAM,aAAa,GAAG,CAAC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a,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AACvD,iDAAiD;GAC/C;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AACxC,wFAAwF;GACtF;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AASnC;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAmBjF;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,EAAE,CAK3E;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,EAAE,CAoBzE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAEzE,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,kBAAkB,GAAG,SAAS,GACvC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAOrC;AAED,kJAAkJ;AAClJ,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,kBAAkB,GAAG,SAAS,GACtC,KAAK,CAAC,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAItC"}
|
package/dist/agent.js
CHANGED
|
@@ -121,9 +121,12 @@ const HostedMcp = z
|
|
|
121
121
|
* declaration — nothing is builder-registered; discovery does the rest.
|
|
122
122
|
* - `credential: 'caller'` forwards the invoke's own byo-verified bearer as
|
|
123
123
|
* this server's per-turn credential (guuey#179) — see the field doc.
|
|
124
|
-
* - `authMode: 'upfront'` (only beside `credential: 'oauth'`,
|
|
125
|
-
*
|
|
126
|
-
*
|
|
124
|
+
* - `authMode: 'upfront' | 'lazy'` (only beside `credential: 'oauth'`,
|
|
125
|
+
* guuey#605) picks WHEN the sign-in is demanded: `'upfront'` fronts it (the
|
|
126
|
+
* consent card surfaces at session start and the agent's turn is refused
|
|
127
|
+
* until the account is connected), `'lazy'` is today's on-demand behavior
|
|
128
|
+
* spelled out loud and is exactly equal to omitting the key — see the field
|
|
129
|
+
* doc for the exact engagement contract.
|
|
127
130
|
*/
|
|
128
131
|
const ExternalMcp = z
|
|
129
132
|
.strictObject({
|
|
@@ -167,36 +170,45 @@ const ExternalMcp = z
|
|
|
167
170
|
*/
|
|
168
171
|
credential: z.enum(['caller', 'oauth']).optional(),
|
|
169
172
|
/**
|
|
170
|
-
*
|
|
171
|
-
* "Always required" parity
|
|
172
|
-
* `credential: 'oauth'` (schema-refused otherwise — no
|
|
173
|
-
* mode has a sign-in to
|
|
173
|
+
* WHEN this server's OAuth sign-in is demanded (guuey#605 — the claude.ai
|
|
174
|
+
* "Always required" vs "Required when the server asks" parity pair).
|
|
175
|
+
* Valid ONLY beside `credential: 'oauth'` (schema-refused otherwise — no
|
|
176
|
+
* other credential mode has a sign-in to schedule).
|
|
174
177
|
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* an upfront server with no live
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
178
|
+
* `'upfront'` — REQUIRE SIGN-IN BEFORE USE. At every invoke of an
|
|
179
|
+
* auth-mode (authenticated-caller) session, on an agent-runtime image
|
|
180
|
+
* carrying the guuey#605 pod half, an upfront server with no live
|
|
181
|
+
* connection makes the pod REFUSE the turn before any model call: the
|
|
182
|
+
* OAuth consent card is the turn's ONLY content (no agent answer) until
|
|
183
|
+
* the user connects the account. The client reads that refusal off the
|
|
184
|
+
* paused ask's `metadata.authMode` and shows the connect step first.
|
|
185
|
+
* Unchanged postures: guests (D6 — no card, no credential, tool-less),
|
|
186
|
+
* an explicit `denied` grant (no card, tool-less — a "no" never bricks
|
|
187
|
+
* the chat), a failed / slow preflight (fail-open tool-less turn, never
|
|
188
|
+
* held), and a client that cannot render the consent card (falls back to
|
|
189
|
+
* on-demand consent — an embed never dead-ends on a card it cannot
|
|
190
|
+
* show).
|
|
191
|
+
*
|
|
192
|
+
* `'lazy'` — today's on-demand behavior, stated explicitly: connect
|
|
193
|
+
* anonymous-first, the consent card rides AFTER the agent's turn, at
|
|
194
|
+
* first tool use. EXACTLY equal to omitting the key, which stays the
|
|
195
|
+
* default; the value exists so a config can say which of the two flavors
|
|
196
|
+
* it means instead of leaving it to a reader's memory. Because it means
|
|
197
|
+
* the default, the deploy-controller NORMALIZES it away when it lowers
|
|
198
|
+
* the entry (`resolve-mcp.ts`) — the deployed snapshot carries `authMode`
|
|
199
|
+
* only when it is `'upfront'`, so writing the default out loud can never
|
|
200
|
+
* hand an older pod an enum value it does not know.
|
|
188
201
|
*
|
|
189
202
|
* SERVING (the guuey#566 Settings-truth rule — this doc is the exact
|
|
190
|
-
* engagement contract):
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* the image roll arms serving.
|
|
203
|
+
* engagement contract): an environment honors `'upfront'` only once
|
|
204
|
+
* infra has rolled the agent-runtime image carrying the guuey#605 pod
|
|
205
|
+
* half. A pod PREDATING that roll refuses a snapshot carrying the field
|
|
206
|
+
* at config parse (strict schema — not parse-and-ignore), so the
|
|
207
|
+
* platform must not accept `'upfront'` at the deploy door until the
|
|
208
|
+
* rolled image serves that environment; the console renders its
|
|
209
|
+
* "Require sign-in before use" control only where it does.
|
|
198
210
|
*/
|
|
199
|
-
authMode: z.
|
|
211
|
+
authMode: z.enum(['upfront', 'lazy']).optional(),
|
|
200
212
|
/** Static headers forwarded on every request. Values may use `${env.NAME}` placeholders. */
|
|
201
213
|
headers: HeadersSchema.optional(),
|
|
202
214
|
/** Local dev-loop port (`guuey dev`) this MCP is served on for name→localhost URL resolution. */
|
|
@@ -224,8 +236,8 @@ const ExternalMcp = z
|
|
|
224
236
|
Object.keys(v.headers ?? {}).some((h) => h.toLowerCase() === 'authorization')), {
|
|
225
237
|
message: "credential: 'oauth' cannot be combined with an `authorization` header — the credential broker injects the user's OAuth token as the only Authorization this server sees",
|
|
226
238
|
})
|
|
227
|
-
.refine((v) => !(v.authMode
|
|
228
|
-
message: "authMode
|
|
239
|
+
.refine((v) => !(v.authMode !== undefined && v.credential !== 'oauth'), {
|
|
240
|
+
message: "authMode is only valid beside credential: 'oauth' — it schedules the OAuth broker's sign-in ('upfront' before any use, 'lazy' on demand); no other credential mode has a sign-in to schedule",
|
|
229
241
|
});
|
|
230
242
|
/**
|
|
231
243
|
* A single MCP server entry inside `agent.mcpServers`.
|
package/dist/registry.d.ts
CHANGED
|
@@ -73,6 +73,24 @@ export declare function lineupForProvider(p: ModelEntry["provider"]): readonly M
|
|
|
73
73
|
* the older Gemini/GPT rows as of the 2026-09-02 wave).
|
|
74
74
|
*/
|
|
75
75
|
export declare function legacyForProvider(p: ModelEntry["provider"]): readonly ModelEntry[];
|
|
76
|
+
/**
|
|
77
|
+
* A provider's ANNOUNCED rows, in registry order — models the registry knows
|
|
78
|
+
* about that are NOT invocable on our runtime yet.
|
|
79
|
+
*
|
|
80
|
+
* This is a DISPLAY accessor and nothing more (guuey#805). It is deliberately
|
|
81
|
+
* OUTSIDE the `lineupForProvider` / `legacyForProvider` partition and outside
|
|
82
|
+
* every offer predicate: `modelsForProvider`, `modelsForFramework`,
|
|
83
|
+
* `isOfferedModel` and `defaultModelFor` keep failing closed on an announced
|
|
84
|
+
* id exactly as they did before this existed (guuey#647), and the server's
|
|
85
|
+
* create validator stays the backstop. Its only job is to let a console tell
|
|
86
|
+
* the truth about a model it can see but cannot run — rendered as a DISABLED
|
|
87
|
+
* entry with an honest face, so a builder can never create an app whose first
|
|
88
|
+
* turn dies on a model the runtime refuses.
|
|
89
|
+
*
|
|
90
|
+
* Only `status === 'announced'` comes back: a `deprecated` row is not
|
|
91
|
+
* announced and stays hidden here just as it is hidden from the pickers.
|
|
92
|
+
*/
|
|
93
|
+
export declare function announcedForProvider(p: ModelEntry["provider"]): readonly ModelEntry[];
|
|
76
94
|
/**
|
|
77
95
|
* The model AXIS a framework's picker offers — its default provider's
|
|
78
96
|
* invocable (ga|preview) rows, default first: `modelsForProvider` keyed by
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,CAAC;AAExE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,EAAE,kBAAkB,GAAG,mBAAmB,GAAG,YAAY,GAAG,SAAS,CAAC;IACxF,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,IA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kCvD,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,SAAS,UAAU,EAAE,CAQlF;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,SAAS,UAAU,EAAE,CAElF;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,SAAS,UAAU,EAAE,CAElF;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,GAAG,SAAS,UAAU,EAAE,CAErF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,UAAU,EAAE,CAIhG;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAE1F;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG,MAAM,CAM9E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAE7D"}
|
package/dist/registry.js
CHANGED
|
@@ -53,14 +53,36 @@ export const MODEL_REGISTRY = [
|
|
|
53
53
|
// workloads. The bare `gpt-5.6` alias is intentionally NOT a registry id
|
|
54
54
|
// (never offered in a picker) — the rate card still rows it at Sol's price so
|
|
55
55
|
// an alias call from BYO config can't under-meter.
|
|
56
|
+
// guuey#798 / #802 (2026-09-05 wave): id verified against
|
|
57
|
+
// developers.openai.com/api/docs/models/gpt-6-astra (fetched 2026-09-05
|
|
58
|
+
// 00:45Z — the only snapshot listed, no dated id). `announced` = known, NOT
|
|
59
|
+
// invocable on our runtime until #801's receipted call from a dev pod; the
|
|
60
|
+
// status alone keeps it out of BOTH picker halves. Flips to `ga` (+ lineup
|
|
61
|
+
// decision) in the first cut after its receipt (oss #806).
|
|
56
62
|
{ id: "gpt-5.6-terra", provider: "openai", label: "GPT-5.6 Terra", status: "ga", isDefault: true, lineup: true },
|
|
57
63
|
{ id: "gpt-5.6-sol", provider: "openai", label: "GPT-5.6 Sol", status: "ga", lineup: true },
|
|
64
|
+
// FLIPPED to ga 2026-09-05 on #801's receipted pod call (dev, through the
|
|
65
|
+
// openai egress arm with the managed key: HTTP 200 on /v1/responses, the
|
|
66
|
+
// provider echoed "gpt-6-astra", usage in 11 / out 5). In the lineup as a
|
|
67
|
+
// non-default member beside Sol — Terra stays the default (founder's
|
|
68
|
+
// cost/balance call, 2026-07-25). Known metering gap stated on guuey#818:
|
|
69
|
+
// prompts above 272K input tokens are vendor-priced at 2× and the card has
|
|
70
|
+
// no context tier yet.
|
|
71
|
+
{ id: "gpt-6-astra", provider: "openai", label: "GPT-6 Astra", status: "ga", lineup: true },
|
|
58
72
|
{ id: "gpt-5.6-luna", provider: "openai", label: "GPT-5.6 Luna", status: "ga" },
|
|
59
73
|
{ id: "gpt-5.5", provider: "openai", label: "GPT-5.5", status: "ga" },
|
|
60
74
|
{ id: "gpt-5.4", provider: "openai", label: "GPT-5.4", status: "ga" },
|
|
61
75
|
{ id: "gpt-4o", provider: "openai", label: "GPT-4o", status: "ga" },
|
|
62
76
|
{ id: "gpt-4o-mini", provider: "openai", label: "GPT-4o Mini", status: "ga" },
|
|
63
77
|
{ id: "gemini-3.6-flash", provider: "google", label: "Gemini 3.6 Flash", status: "ga", isDefault: true, lineup: true },
|
|
78
|
+
// FLIPPED to ga 2026-09-05 on #801's receipted pod call (dev, through the
|
|
79
|
+
// gemini egress arm with the managed key: HTTP 200 on
|
|
80
|
+
// :streamGenerateContent?alt=sse, the provider echoed modelVersion
|
|
81
|
+
// "gemini-3.8-flash", usageMetadata prompt 6 / candidates 1 / thoughts 42;
|
|
82
|
+
// #804 closed on that payload). In the lineup as a non-default member after
|
|
83
|
+
// 3.6 Flash — the default stays 3.6 (founder's 2026-07-25 price call; 3.8's
|
|
84
|
+
// intro price ends 2026-12-31 and the card bills its standard rate).
|
|
85
|
+
{ id: "gemini-3.8-flash", provider: "google", label: "Gemini 3.8 Flash", status: "ga", lineup: true },
|
|
64
86
|
{ id: "gemini-3.5-flash-lite", provider: "google", label: "Gemini 3.5 Flash Lite", status: "ga", lineup: true },
|
|
65
87
|
{ id: "gemini-3.5-flash", provider: "google", label: "Gemini 3.5 Flash", status: "ga" },
|
|
66
88
|
{ id: "gemini-3.1-pro", provider: "google", label: "Gemini 3.1 Pro", status: "ga" },
|
|
@@ -134,6 +156,26 @@ export function lineupForProvider(p) {
|
|
|
134
156
|
export function legacyForProvider(p) {
|
|
135
157
|
return modelsForProvider(p).filter((m) => m.lineup !== true);
|
|
136
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* A provider's ANNOUNCED rows, in registry order — models the registry knows
|
|
161
|
+
* about that are NOT invocable on our runtime yet.
|
|
162
|
+
*
|
|
163
|
+
* This is a DISPLAY accessor and nothing more (guuey#805). It is deliberately
|
|
164
|
+
* OUTSIDE the `lineupForProvider` / `legacyForProvider` partition and outside
|
|
165
|
+
* every offer predicate: `modelsForProvider`, `modelsForFramework`,
|
|
166
|
+
* `isOfferedModel` and `defaultModelFor` keep failing closed on an announced
|
|
167
|
+
* id exactly as they did before this existed (guuey#647), and the server's
|
|
168
|
+
* create validator stays the backstop. Its only job is to let a console tell
|
|
169
|
+
* the truth about a model it can see but cannot run — rendered as a DISABLED
|
|
170
|
+
* entry with an honest face, so a builder can never create an app whose first
|
|
171
|
+
* turn dies on a model the runtime refuses.
|
|
172
|
+
*
|
|
173
|
+
* Only `status === 'announced'` comes back: a `deprecated` row is not
|
|
174
|
+
* announced and stays hidden here just as it is hidden from the pickers.
|
|
175
|
+
*/
|
|
176
|
+
export function announcedForProvider(p) {
|
|
177
|
+
return MODEL_REGISTRY.filter((m) => m.provider === p && m.status === "announced");
|
|
178
|
+
}
|
|
137
179
|
/**
|
|
138
180
|
* The model AXIS a framework's picker offers — its default provider's
|
|
139
181
|
* invocable (ga|preview) rows, default first: `modelsForProvider` keyed by
|
package/dist/schema.d.ts
CHANGED
|
@@ -177,7 +177,10 @@ export declare const GuueyJsonV1: z.ZodObject<{
|
|
|
177
177
|
caller: "caller";
|
|
178
178
|
oauth: "oauth";
|
|
179
179
|
}>>;
|
|
180
|
-
authMode: z.ZodOptional<z.
|
|
180
|
+
authMode: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
lazy: "lazy";
|
|
182
|
+
upfront: "upfront";
|
|
183
|
+
}>>;
|
|
181
184
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
182
185
|
devPort: z.ZodOptional<z.ZodNumber>;
|
|
183
186
|
mcpResourceUrl: z.ZodOptional<z.ZodURL>;
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAiB,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,OAAO,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AAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAG3D,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CAExD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,OAAO,GACX,UAAU,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,CAE1C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guuey/config",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.22",
|
|
4
4
|
"description": "Open-source schemas + loaders for the three guuey config files: agent.json (declarative agent definition), guuey.json (hosted-deploy overlay), and the helper types around them. Consumed by @guuey/cli, the guuey backend, and devs writing their own agent or MCP server.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/node": "^24.0.0",
|
|
36
36
|
"typescript": "^5.0.0",
|
|
37
37
|
"vitest": "^3.2.7",
|
|
38
|
-
"@guuey/chat": "0.16.
|
|
38
|
+
"@guuey/chat": "0.16.22"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|