@clickraft/cli 0.10.1 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -3
- package/dist/cli.js +10 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
## [0.
|
|
1
|
+
## [0.11.1](https://github.com/clickraft/cli/compare/v0.11.0...v0.11.1) (2026-06-21)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
* **
|
|
6
|
-
* **sdk:** relax assets uploadUrl to z.string() for the dedup branch ([73fdaf5](https://github.com/clickraft/cli/commit/73fdaf5e0c8f59feadafda088d1dd035ca964a95))
|
|
5
|
+
* **cli:** widen models schema to accept server lifecycle fields and any-typed constraints ([47eedfa](https://github.com/clickraft/cli/commit/47eedfa0e126034fa5f46e29610cc626d3de8c32)), closes [#10](https://github.com/clickraft/cli/issues/10) [#R2-constraints](https://github.com/clickraft/cli/issues/R2-constraints) [8/#10](https://github.com/8/cli/issues/10)
|
|
7
6
|
|
|
8
7
|
# Changelog
|
|
9
8
|
|
package/dist/cli.js
CHANGED
|
@@ -352,10 +352,10 @@ async function longPoll(opts) {
|
|
|
352
352
|
try {
|
|
353
353
|
result = await opts.fetcher({ signal: iterationSignal });
|
|
354
354
|
} catch (err) {
|
|
355
|
-
if (
|
|
355
|
+
if (iterationSignal.aborted) {
|
|
356
356
|
throw new ApiError(
|
|
357
357
|
"TIMEOUT",
|
|
358
|
-
`Wait exceeded ${opts.timeoutMs}ms without reaching a terminal state.`,
|
|
358
|
+
opts.signal?.aborted ? "Wait was aborted." : `Wait exceeded ${opts.timeoutMs}ms without reaching a terminal state.`,
|
|
359
359
|
{ retryable: true }
|
|
360
360
|
);
|
|
361
361
|
}
|
|
@@ -2857,9 +2857,15 @@ var ModelSummarySchema = z14.object({
|
|
|
2857
2857
|
isDefault: z14.boolean(),
|
|
2858
2858
|
docsUrl: z14.string().nullable(),
|
|
2859
2859
|
llmContext: z14.string().nullable(),
|
|
2860
|
-
constraints
|
|
2860
|
+
// Server (AgentModelSchema) types constraints as any-typed (anyOf[{}, null]); mirror it with
|
|
2861
|
+
// z.unknown().nullable() rather than narrowing to object|null, so a non-object emit is accepted.
|
|
2862
|
+
constraints: z14.unknown().nullable(),
|
|
2861
2863
|
modelFamily: z14.string().nullable(),
|
|
2862
|
-
isFamilyPrimary: z14.boolean().nullable()
|
|
2864
|
+
isFamilyPrimary: z14.boolean().nullable(),
|
|
2865
|
+
// Optional lifecycle fields the server emits (string|null, absent when not set).
|
|
2866
|
+
deprecatedAt: z14.string().nullable().optional(),
|
|
2867
|
+
sunsetAt: z14.string().nullable().optional(),
|
|
2868
|
+
successorSlug: z14.string().nullable().optional()
|
|
2863
2869
|
}).strict();
|
|
2864
2870
|
var ModelsListResponseSchema = z14.object({
|
|
2865
2871
|
models: z14.array(ModelSummarySchema)
|