@granular-software/sdk 0.4.54 → 0.4.56
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 +14 -13
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +14 -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 +7 -6
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/agent-evals.mjs
CHANGED
|
@@ -4023,6 +4023,7 @@ function rpcTimeoutMsForMethod(method) {
|
|
|
4023
4023
|
case "effects.addCatalog":
|
|
4024
4024
|
case "effects.removeCatalog":
|
|
4025
4025
|
case "effects.refresh":
|
|
4026
|
+
case "harness.prepare":
|
|
4026
4027
|
return EFFECT_CONTROL_RPC_TIMEOUT_MS;
|
|
4027
4028
|
case "harness.run":
|
|
4028
4029
|
return HARNESS_RUN_RPC_TIMEOUT_MS;
|
|
@@ -17864,8 +17865,8 @@ var manifest_default = {
|
|
|
17864
17865
|
continuationBuilder: "buildContinuationInstruction:action-presentation",
|
|
17865
17866
|
modelOutputInstruction: "agent-evals:modelOutputInstruction",
|
|
17866
17867
|
codeReviewPolicy: "reviewGeneratedJobCode",
|
|
17867
|
-
defaultModel: "gpt-5.
|
|
17868
|
-
modelMatrix: ["gpt-5.
|
|
17868
|
+
defaultModel: "gpt-5.6-luna",
|
|
17869
|
+
modelMatrix: ["gpt-5.6-luna"],
|
|
17869
17870
|
temperature: 0,
|
|
17870
17871
|
compatibility: {
|
|
17871
17872
|
minSdkVersion: "0.4.40",
|
|
@@ -17911,8 +17912,8 @@ var manifest_default2 = {
|
|
|
17911
17912
|
continuationBuilder: "buildContinuationInstruction:experimental-compact",
|
|
17912
17913
|
modelOutputInstruction: "agent-evals:modelOutputInstruction",
|
|
17913
17914
|
codeReviewPolicy: "reviewGeneratedJobCode",
|
|
17914
|
-
defaultModel: "gpt-5.
|
|
17915
|
-
modelMatrix: ["gpt-5.
|
|
17915
|
+
defaultModel: "gpt-5.6-luna",
|
|
17916
|
+
modelMatrix: ["gpt-5.6-luna"],
|
|
17916
17917
|
temperature: 0,
|
|
17917
17918
|
compatibility: {
|
|
17918
17919
|
minSdkVersion: "0.4.40",
|
|
@@ -17958,8 +17959,8 @@ var manifest_default3 = {
|
|
|
17958
17959
|
continuationBuilder: "buildContinuationInstruction",
|
|
17959
17960
|
modelOutputInstruction: "agent-evals:modelOutputInstruction",
|
|
17960
17961
|
codeReviewPolicy: "reviewGeneratedJobCode",
|
|
17961
|
-
defaultModel: "gpt-5.
|
|
17962
|
-
modelMatrix: ["gpt-5.
|
|
17962
|
+
defaultModel: "gpt-5.6-luna",
|
|
17963
|
+
modelMatrix: ["gpt-5.6-luna"],
|
|
17963
17964
|
temperature: 0,
|
|
17964
17965
|
compatibility: {
|
|
17965
17966
|
minSdkVersion: "0.4.40",
|
|
@@ -20816,10 +20817,10 @@ function progressEvent(input) {
|
|
|
20816
20817
|
async function emitProgress(handler, event) {
|
|
20817
20818
|
await handler?.(progressEvent(event));
|
|
20818
20819
|
}
|
|
20819
|
-
var
|
|
20820
|
-
input:
|
|
20821
|
-
cachedInput: 0.
|
|
20822
|
-
output:
|
|
20820
|
+
var GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION = {
|
|
20821
|
+
input: 1,
|
|
20822
|
+
cachedInput: 0.1,
|
|
20823
|
+
output: 6
|
|
20823
20824
|
};
|
|
20824
20825
|
function emptyTokenUsage() {
|
|
20825
20826
|
return {
|
|
@@ -20850,7 +20851,7 @@ function calculateTokenCost(input) {
|
|
|
20850
20851
|
input: spend.inputPricePerMillionMicros / 1e6,
|
|
20851
20852
|
cachedInput: spend.cachedInputPricePerMillionMicros / 1e6,
|
|
20852
20853
|
output: spend.outputPricePerMillionMicros / 1e6
|
|
20853
|
-
} :
|
|
20854
|
+
} : GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION;
|
|
20854
20855
|
const inputCostUsd = input.uncachedInputTokens * pricing.input / 1e6;
|
|
20855
20856
|
const cachedInputCostUsd = input.cachedInputTokens * pricing.cachedInput / 1e6;
|
|
20856
20857
|
const outputCostUsd = input.outputTokens * pricing.output / 1e6;
|
|
@@ -20956,7 +20957,7 @@ function formatTokenUsage(usage) {
|
|
|
20956
20957
|
`- Cached input cost: ${formatUsd(usage.cachedInputCostUsd)}`,
|
|
20957
20958
|
`- Output cost: ${formatUsd(usage.outputCostUsd)}`,
|
|
20958
20959
|
`- Total cost: ${formatUsd(usage.totalCostUsd)}`,
|
|
20959
|
-
`- Pricing
|
|
20960
|
+
`- 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
20961
|
];
|
|
20961
20962
|
}
|
|
20962
20963
|
function getJobAgentMessages(liveDoc, jobId) {
|
|
@@ -21190,7 +21191,7 @@ function createOpenAIChatTurnGenerator(options) {
|
|
|
21190
21191
|
/\/$/,
|
|
21191
21192
|
""
|
|
21192
21193
|
);
|
|
21193
|
-
const model = options.model || "gpt-5.
|
|
21194
|
+
const model = options.model || "gpt-5.6-luna";
|
|
21194
21195
|
const client = new OpenAI({
|
|
21195
21196
|
apiKey: options.apiKey,
|
|
21196
21197
|
baseURL: baseUrl,
|