perstack 0.0.97 → 0.0.98

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/bin/cli.js CHANGED
@@ -21118,7 +21118,7 @@ async function buildOutput(fetcher, options, filterOptions, storagePath) {
21118
21118
 
21119
21119
  //#endregion
21120
21120
  //#region ../../packages/runtime/package.json
21121
- var version$1 = "0.0.117";
21121
+ var version$1 = "0.0.118";
21122
21122
 
21123
21123
  //#endregion
21124
21124
  //#region ../../packages/runtime/src/helpers/usage.ts
@@ -28106,8 +28106,8 @@ Original error: ${errorMessage}`);
28106
28106
  var bedrock = createAmazonBedrock();
28107
28107
 
28108
28108
  //#endregion
28109
- //#region ../../node_modules/.bun/@ai-sdk+anthropic@3.0.46+3c5d820c62823f0b/node_modules/@ai-sdk/anthropic/dist/index.mjs
28110
- var VERSION$8 = "3.0.46";
28109
+ //#region ../../node_modules/.bun/@ai-sdk+anthropic@3.0.47+3c5d820c62823f0b/node_modules/@ai-sdk/anthropic/dist/index.mjs
28110
+ var VERSION$8 = "3.0.47";
28111
28111
  var anthropicFailedResponseHandler = createJsonErrorResponseHandler({
28112
28112
  errorSchema: lazySchema(() => zodSchema(object$2({
28113
28113
  type: literal("error"),
@@ -30168,6 +30168,7 @@ var AnthropicMessagesLanguageModel = class {
30168
30168
  } },
30169
30169
  ...(anthropicOptions == null ? void 0 : anthropicOptions.effort) && { output_config: { effort: anthropicOptions.effort } },
30170
30170
  ...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && { speed: anthropicOptions.speed },
30171
+ ...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && { cache_control: anthropicOptions.cacheControl },
30171
30172
  ...useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && { output_format: {
30172
30173
  type: "json_schema",
30173
30174
  schema: responseFormat.schema
@@ -85367,7 +85368,13 @@ var AnthropicProviderAdapter = class extends BaseProviderAdapter {
85367
85368
  return buildAnthropicTools(this.client, toolNames, options);
85368
85369
  }
85369
85370
  getProviderOptions(config) {
85370
- return buildProviderOptions(config?.skills);
85371
+ const skillOptions = buildProviderOptions(config?.skills);
85372
+ const cacheOptions = { anthropic: { cacheControl: { type: "ephemeral" } } };
85373
+ if (!skillOptions) return cacheOptions;
85374
+ return { anthropic: {
85375
+ ...skillOptions["anthropic"],
85376
+ ...cacheOptions["anthropic"]
85377
+ } };
85371
85378
  }
85372
85379
  getReasoningOptions(budget) {
85373
85380
  return { anthropic: { thinking: {
@@ -90073,8 +90080,7 @@ function createInstructionMessage(expert, startedAt) {
90073
90080
  type: "textPart",
90074
90081
  text: instruction
90075
90082
  }],
90076
- id: createId(),
90077
- cache: true
90083
+ id: createId()
90078
90084
  };
90079
90085
  }
90080
90086
  function getSkillRules(expert) {
@@ -119550,7 +119556,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
119550
119556
  //#endregion
119551
119557
  //#region package.json
119552
119558
  var name = "perstack";
119553
- var version = "0.0.97";
119559
+ var version = "0.0.98";
119554
119560
  var description = "PerStack CLI";
119555
119561
 
119556
119562
  //#endregion