agent-shim 11.86.0 → 11.86.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/cli.cjs CHANGED
@@ -41958,7 +41958,7 @@ var init_package = __esm({
41958
41958
  "package.json"() {
41959
41959
  package_default = {
41960
41960
  name: "agent-shim",
41961
- version: "11.86.0",
41961
+ version: "11.86.1",
41962
41962
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
41963
41963
  license: "MIT",
41964
41964
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -71721,7 +71721,7 @@ var init_anthropic = __esm({
71721
71721
  /** `user_id` is stable for one Claude Code session and differs between sessions, which is what makes it the right key for both the backend's prompt cache and its session header. */
71722
71722
  metadata: external_exports.looseObject({ user_id: external_exports.string().optional() }).optional(),
71723
71723
  /** Claude Code's effort setting. Any string is accepted; the translator honours only the levels the backend understands. */
71724
- output_config: external_exports.looseObject({ effort: external_exports.string().optional() }).optional()
71724
+ output_config: external_exports.looseObject({ effort: external_exports.string().optional(), format: external_exports.object({ type: external_exports.literal("json_schema"), schema: external_exports.record(external_exports.string(), external_exports.unknown()) }).optional() }).optional()
71725
71725
  });
71726
71726
  CountTokensRequestSchema = external_exports.looseObject({
71727
71727
  system: external_exports.unknown().optional(),
@@ -72200,7 +72200,7 @@ function translateRequest2(body, config2) {
72200
72200
  input: messagesToInput(body.messages, names),
72201
72201
  stream: true,
72202
72202
  store: false,
72203
- text: { verbosity: "medium" },
72203
+ text: { verbosity: "medium", ...body.output_config?.format === void 0 ? {} : { format: { type: "json_schema", name: "response", schema: body.output_config.format.schema, strict: false } } },
72204
72204
  ...effort === "none" ? {} : { reasoning: { effort, summary: "auto" } },
72205
72205
  ...userId === void 0 ? {} : { prompt_cache_key: userId },
72206
72206
  ...tools === void 0 ? {} : { tools },
package/dist/index.cjs CHANGED
@@ -5171,7 +5171,7 @@ var init_package = __esm({
5171
5171
  "package.json"() {
5172
5172
  package_default = {
5173
5173
  name: "agent-shim",
5174
- version: "11.86.0",
5174
+ version: "11.86.1",
5175
5175
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5176
5176
  license: "MIT",
5177
5177
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -12015,7 +12015,7 @@ var init_anthropic = __esm({
12015
12015
  /** `user_id` is stable for one Claude Code session and differs between sessions, which is what makes it the right key for both the backend's prompt cache and its session header. */
12016
12016
  metadata: import_zod33.z.looseObject({ user_id: import_zod33.z.string().optional() }).optional(),
12017
12017
  /** Claude Code's effort setting. Any string is accepted; the translator honours only the levels the backend understands. */
12018
- output_config: import_zod33.z.looseObject({ effort: import_zod33.z.string().optional() }).optional()
12018
+ output_config: import_zod33.z.looseObject({ effort: import_zod33.z.string().optional(), format: import_zod33.z.object({ type: import_zod33.z.literal("json_schema"), schema: import_zod33.z.record(import_zod33.z.string(), import_zod33.z.unknown()) }).optional() }).optional()
12019
12019
  });
12020
12020
  CountTokensRequestSchema = import_zod33.z.looseObject({
12021
12021
  system: import_zod33.z.unknown().optional(),
package/dist/index.mjs CHANGED
@@ -5146,7 +5146,7 @@ var init_package = __esm({
5146
5146
  "package.json"() {
5147
5147
  package_default = {
5148
5148
  name: "agent-shim",
5149
- version: "11.86.0",
5149
+ version: "11.86.1",
5150
5150
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5151
5151
  license: "MIT",
5152
5152
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -11986,7 +11986,7 @@ var init_anthropic = __esm({
11986
11986
  /** `user_id` is stable for one Claude Code session and differs between sessions, which is what makes it the right key for both the backend's prompt cache and its session header. */
11987
11987
  metadata: z33.looseObject({ user_id: z33.string().optional() }).optional(),
11988
11988
  /** Claude Code's effort setting. Any string is accepted; the translator honours only the levels the backend understands. */
11989
- output_config: z33.looseObject({ effort: z33.string().optional() }).optional()
11989
+ output_config: z33.looseObject({ effort: z33.string().optional(), format: z33.object({ type: z33.literal("json_schema"), schema: z33.record(z33.string(), z33.unknown()) }).optional() }).optional()
11990
11990
  });
11991
11991
  CountTokensRequestSchema = z33.looseObject({
11992
11992
  system: z33.unknown().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-shim",
3
- "version": "11.86.0",
3
+ "version": "11.86.1",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",