@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.
- package/dist/agent-evals.js +13 -13
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +13 -13
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/agent-harness.js +6 -6
- package/dist/agent-harness.js.map +1 -1
- package/dist/agent-harness.mjs +6 -6
- package/dist/agent-harness.mjs.map +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/agent-evals.mjs
CHANGED
|
@@ -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.
|
|
17868
|
-
modelMatrix: ["gpt-5.
|
|
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.
|
|
17915
|
-
modelMatrix: ["gpt-5.
|
|
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.
|
|
17962
|
-
modelMatrix: ["gpt-5.
|
|
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
|
|
20820
|
-
input:
|
|
20821
|
-
cachedInput: 0.
|
|
20822
|
-
output:
|
|
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
|
-
} :
|
|
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
|
|
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.
|
|
21193
|
+
const model = options.model || "gpt-5.6-luna";
|
|
21194
21194
|
const client = new OpenAI({
|
|
21195
21195
|
apiKey: options.apiKey,
|
|
21196
21196
|
baseURL: baseUrl,
|