@granular-software/sdk 0.4.54 → 0.4.55

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.
@@ -17890,8 +17890,8 @@ var manifest_default = {
17890
17890
  continuationBuilder: "buildContinuationInstruction:action-presentation",
17891
17891
  modelOutputInstruction: "agent-evals:modelOutputInstruction",
17892
17892
  codeReviewPolicy: "reviewGeneratedJobCode",
17893
- defaultModel: "gpt-5.4",
17894
- modelMatrix: ["gpt-5.4"],
17893
+ defaultModel: "gpt-5.6-luna",
17894
+ modelMatrix: ["gpt-5.6-luna"],
17895
17895
  temperature: 0,
17896
17896
  compatibility: {
17897
17897
  minSdkVersion: "0.4.40",
@@ -17937,8 +17937,8 @@ var manifest_default2 = {
17937
17937
  continuationBuilder: "buildContinuationInstruction:experimental-compact",
17938
17938
  modelOutputInstruction: "agent-evals:modelOutputInstruction",
17939
17939
  codeReviewPolicy: "reviewGeneratedJobCode",
17940
- defaultModel: "gpt-5.4",
17941
- modelMatrix: ["gpt-5.4"],
17940
+ defaultModel: "gpt-5.6-luna",
17941
+ modelMatrix: ["gpt-5.6-luna"],
17942
17942
  temperature: 0,
17943
17943
  compatibility: {
17944
17944
  minSdkVersion: "0.4.40",
@@ -17984,8 +17984,8 @@ var manifest_default3 = {
17984
17984
  continuationBuilder: "buildContinuationInstruction",
17985
17985
  modelOutputInstruction: "agent-evals:modelOutputInstruction",
17986
17986
  codeReviewPolicy: "reviewGeneratedJobCode",
17987
- defaultModel: "gpt-5.4",
17988
- modelMatrix: ["gpt-5.4"],
17987
+ defaultModel: "gpt-5.6-luna",
17988
+ modelMatrix: ["gpt-5.6-luna"],
17989
17989
  temperature: 0,
17990
17990
  compatibility: {
17991
17991
  minSdkVersion: "0.4.40",
@@ -20842,10 +20842,10 @@ function progressEvent(input) {
20842
20842
  async function emitProgress(handler, event) {
20843
20843
  await handler?.(progressEvent(event));
20844
20844
  }
20845
- var GPT_54_TOKEN_PRICING_USD_PER_MILLION = {
20846
- input: 2.5,
20847
- cachedInput: 0.25,
20848
- output: 15
20845
+ var GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION = {
20846
+ input: 1,
20847
+ cachedInput: 0.1,
20848
+ output: 6
20849
20849
  };
20850
20850
  function emptyTokenUsage() {
20851
20851
  return {
@@ -20876,7 +20876,7 @@ function calculateTokenCost(input) {
20876
20876
  input: spend.inputPricePerMillionMicros / 1e6,
20877
20877
  cachedInput: spend.cachedInputPricePerMillionMicros / 1e6,
20878
20878
  output: spend.outputPricePerMillionMicros / 1e6
20879
- } : GPT_54_TOKEN_PRICING_USD_PER_MILLION;
20879
+ } : GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION;
20880
20880
  const inputCostUsd = input.uncachedInputTokens * pricing.input / 1e6;
20881
20881
  const cachedInputCostUsd = input.cachedInputTokens * pricing.cachedInput / 1e6;
20882
20882
  const outputCostUsd = input.outputTokens * pricing.output / 1e6;
@@ -20982,7 +20982,7 @@ function formatTokenUsage(usage) {
20982
20982
  `- Cached input cost: ${formatUsd(usage.cachedInputCostUsd)}`,
20983
20983
  `- Output cost: ${formatUsd(usage.outputCostUsd)}`,
20984
20984
  `- Total cost: ${formatUsd(usage.totalCostUsd)}`,
20985
- `- Pricing basis: GPT-5.4 at $${GPT_54_TOKEN_PRICING_USD_PER_MILLION.input}/M input, $${GPT_54_TOKEN_PRICING_USD_PER_MILLION.cachedInput}/M cached input, $${GPT_54_TOKEN_PRICING_USD_PER_MILLION.output}/M output.`
20985
+ `- Pricing fallback: gpt-5.6-luna at $${GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION.input}/M input, $${GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION.cachedInput}/M cached input, $${GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION.output}/M output. Per-call model pricing is used when available.`
20986
20986
  ];
20987
20987
  }
20988
20988
  function getJobAgentMessages(liveDoc, jobId) {
@@ -21216,7 +21216,7 @@ function createOpenAIChatTurnGenerator(options) {
21216
21216
  /\/$/,
21217
21217
  ""
21218
21218
  );
21219
- const model = options.model || "gpt-5.4";
21219
+ const model = options.model || "gpt-5.6-luna";
21220
21220
  const client = new OpenAI__default.default({
21221
21221
  apiKey: options.apiKey,
21222
21222
  baseURL: baseUrl,