@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.
@@ -17864,8 +17864,8 @@ var manifest_default = {
17864
17864
  continuationBuilder: "buildContinuationInstruction:action-presentation",
17865
17865
  modelOutputInstruction: "agent-evals:modelOutputInstruction",
17866
17866
  codeReviewPolicy: "reviewGeneratedJobCode",
17867
- defaultModel: "gpt-5.4",
17868
- modelMatrix: ["gpt-5.4"],
17867
+ defaultModel: "gpt-5.6-luna",
17868
+ modelMatrix: ["gpt-5.6-luna"],
17869
17869
  temperature: 0,
17870
17870
  compatibility: {
17871
17871
  minSdkVersion: "0.4.40",
@@ -17911,8 +17911,8 @@ var manifest_default2 = {
17911
17911
  continuationBuilder: "buildContinuationInstruction:experimental-compact",
17912
17912
  modelOutputInstruction: "agent-evals:modelOutputInstruction",
17913
17913
  codeReviewPolicy: "reviewGeneratedJobCode",
17914
- defaultModel: "gpt-5.4",
17915
- modelMatrix: ["gpt-5.4"],
17914
+ defaultModel: "gpt-5.6-luna",
17915
+ modelMatrix: ["gpt-5.6-luna"],
17916
17916
  temperature: 0,
17917
17917
  compatibility: {
17918
17918
  minSdkVersion: "0.4.40",
@@ -17958,8 +17958,8 @@ var manifest_default3 = {
17958
17958
  continuationBuilder: "buildContinuationInstruction",
17959
17959
  modelOutputInstruction: "agent-evals:modelOutputInstruction",
17960
17960
  codeReviewPolicy: "reviewGeneratedJobCode",
17961
- defaultModel: "gpt-5.4",
17962
- modelMatrix: ["gpt-5.4"],
17961
+ defaultModel: "gpt-5.6-luna",
17962
+ modelMatrix: ["gpt-5.6-luna"],
17963
17963
  temperature: 0,
17964
17964
  compatibility: {
17965
17965
  minSdkVersion: "0.4.40",
@@ -20816,10 +20816,10 @@ function progressEvent(input) {
20816
20816
  async function emitProgress(handler, event) {
20817
20817
  await handler?.(progressEvent(event));
20818
20818
  }
20819
- var GPT_54_TOKEN_PRICING_USD_PER_MILLION = {
20820
- input: 2.5,
20821
- cachedInput: 0.25,
20822
- output: 15
20819
+ var GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION = {
20820
+ input: 1,
20821
+ cachedInput: 0.1,
20822
+ output: 6
20823
20823
  };
20824
20824
  function emptyTokenUsage() {
20825
20825
  return {
@@ -20850,7 +20850,7 @@ function calculateTokenCost(input) {
20850
20850
  input: spend.inputPricePerMillionMicros / 1e6,
20851
20851
  cachedInput: spend.cachedInputPricePerMillionMicros / 1e6,
20852
20852
  output: spend.outputPricePerMillionMicros / 1e6
20853
- } : GPT_54_TOKEN_PRICING_USD_PER_MILLION;
20853
+ } : GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION;
20854
20854
  const inputCostUsd = input.uncachedInputTokens * pricing.input / 1e6;
20855
20855
  const cachedInputCostUsd = input.cachedInputTokens * pricing.cachedInput / 1e6;
20856
20856
  const outputCostUsd = input.outputTokens * pricing.output / 1e6;
@@ -20956,7 +20956,7 @@ function formatTokenUsage(usage) {
20956
20956
  `- Cached input cost: ${formatUsd(usage.cachedInputCostUsd)}`,
20957
20957
  `- Output cost: ${formatUsd(usage.outputCostUsd)}`,
20958
20958
  `- Total cost: ${formatUsd(usage.totalCostUsd)}`,
20959
- `- 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.`
20959
+ `- 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.`
20960
20960
  ];
20961
20961
  }
20962
20962
  function getJobAgentMessages(liveDoc, jobId) {
@@ -21190,7 +21190,7 @@ function createOpenAIChatTurnGenerator(options) {
21190
21190
  /\/$/,
21191
21191
  ""
21192
21192
  );
21193
- const model = options.model || "gpt-5.4";
21193
+ const model = options.model || "gpt-5.6-luna";
21194
21194
  const client = new OpenAI({
21195
21195
  apiKey: options.apiKey,
21196
21196
  baseURL: baseUrl,