@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/dist/index.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 (opts.signal?.aborted || now() - started >= opts.timeoutMs) {
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: z14.record(z14.string(), z14.unknown()).nullable(),
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)