@clickraft/cli 0.11.0 → 0.11.2

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 CHANGED
@@ -1,16 +1,9 @@
1
- ## [0.11.0](https://github.com/clickraft/cli/compare/v0.10.1...v0.11.0) (2026-06-21)
2
-
3
- ### Features
4
-
5
- * **mcp:** type workflow_apply operations as a discriminated union ([8f34ef0](https://github.com/clickraft/cli/commit/8f34ef07cd77bcd0d18d769412acd78a92ec6914))
6
- * **sdk:** add Phase 0 SDK↔server contract checker (report-only) ([88a153e](https://github.com/clickraft/cli/commit/88a153e821015b0384c1b4dd4c27d99b4d31060d))
1
+ ## [0.11.2](https://github.com/clickraft/cli/compare/v0.11.1...v0.11.2) (2026-06-21)
7
2
 
8
3
  ### Bug Fixes
9
4
 
10
- * **mcp:** challenge invalid bearer with 401 + WWW-Authenticate to trigger OAuth re-auth ([33bb02c](https://github.com/clickraft/cli/commit/33bb02c7f197cd0dd465c8835a50a189efe70472))
11
- * **mcp:** rename tool names to snake_case for MCP client name-pattern compliance ([a1f8db3](https://github.com/clickraft/cli/commit/a1f8db3fb893720dfb4437d26d7fc85ad57f7c4f))
12
- * **mcp:** surface validation field errors in tool error results ([3519eeb](https://github.com/clickraft/cli/commit/3519eeb3b0b68518d86d383e28093ee4d8075ce0))
13
- * **sdk:** make long-poll timeout deterministic vs abort race ([60c1a17](https://github.com/clickraft/cli/commit/60c1a173832e2c3eebd1e2635a9b912fa5408a6a))
5
+ * **sdk:** accept input.width/height in GenerateCreateRequestSchema ([6f92a22](https://github.com/clickraft/cli/commit/6f92a22f8152ce48bbb7ce95e1f4c3134fe81b5d)), closes [#3](https://github.com/clickraft/cli/issues/3)
6
+ * **sdk:** widen declaredParams required (optional) + defaultValue (any-typed) to match server ([03eb961](https://github.com/clickraft/cli/commit/03eb961f9c05272c96cbb7de8667ef0222e08691)), closes [#5](https://github.com/clickraft/cli/issues/5) [#6](https://github.com/clickraft/cli/issues/6) [#N](https://github.com/clickraft/cli/issues/N) [5/#6](https://github.com/5/cli/issues/6)
14
7
 
15
8
  # Changelog
16
9
 
package/dist/cli.js CHANGED
@@ -95,8 +95,8 @@ var TokensListResponseSchema = z4.array(TokenRowSchema);
95
95
  var DeclaredParamSchema = z5.object({
96
96
  name: z5.string(),
97
97
  type: z5.string(),
98
- required: z5.boolean(),
99
- defaultValue: z5.string().nullable().optional(),
98
+ required: z5.boolean().optional(),
99
+ defaultValue: z5.unknown().optional(),
100
100
  enumValues: z5.array(z5.string()).nullable().optional(),
101
101
  description: z5.string().nullable().optional()
102
102
  }).strict();
@@ -139,6 +139,8 @@ var GenerateCreateRequestSchema = z6.object({
139
139
  "resolution must match WxH (e.g. 1280x720), p-token (e.g. 720p), or K-token (e.g. 1K)"
140
140
  ).optional(),
141
141
  durationSeconds: z6.number().int().min(1).max(60).optional(),
142
+ width: z6.number().int().min(64).max(8192).optional(),
143
+ height: z6.number().int().min(64).max(8192).optional(),
142
144
  providerParams: z6.record(z6.string(), z6.unknown()).optional()
143
145
  }).strict(),
144
146
  options: z6.object({
@@ -2857,9 +2859,15 @@ var ModelSummarySchema = z14.object({
2857
2859
  isDefault: z14.boolean(),
2858
2860
  docsUrl: z14.string().nullable(),
2859
2861
  llmContext: z14.string().nullable(),
2860
- constraints: z14.record(z14.string(), z14.unknown()).nullable(),
2862
+ // Server (AgentModelSchema) types constraints as any-typed (anyOf[{}, null]); mirror it with
2863
+ // z.unknown().nullable() rather than narrowing to object|null, so a non-object emit is accepted.
2864
+ constraints: z14.unknown().nullable(),
2861
2865
  modelFamily: z14.string().nullable(),
2862
- isFamilyPrimary: z14.boolean().nullable()
2866
+ isFamilyPrimary: z14.boolean().nullable(),
2867
+ // Optional lifecycle fields the server emits (string|null, absent when not set).
2868
+ deprecatedAt: z14.string().nullable().optional(),
2869
+ sunsetAt: z14.string().nullable().optional(),
2870
+ successorSlug: z14.string().nullable().optional()
2863
2871
  }).strict();
2864
2872
  var ModelsListResponseSchema = z14.object({
2865
2873
  models: z14.array(ModelSummarySchema)