@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.js
CHANGED
|
@@ -4049,6 +4049,7 @@ function rpcTimeoutMsForMethod(method) {
|
|
|
4049
4049
|
case "effects.addCatalog":
|
|
4050
4050
|
case "effects.removeCatalog":
|
|
4051
4051
|
case "effects.refresh":
|
|
4052
|
+
case "harness.prepare":
|
|
4052
4053
|
return EFFECT_CONTROL_RPC_TIMEOUT_MS;
|
|
4053
4054
|
case "harness.run":
|
|
4054
4055
|
return HARNESS_RUN_RPC_TIMEOUT_MS;
|
|
@@ -17890,8 +17891,8 @@ var manifest_default = {
|
|
|
17890
17891
|
continuationBuilder: "buildContinuationInstruction:action-presentation",
|
|
17891
17892
|
modelOutputInstruction: "agent-evals:modelOutputInstruction",
|
|
17892
17893
|
codeReviewPolicy: "reviewGeneratedJobCode",
|
|
17893
|
-
defaultModel: "gpt-5.
|
|
17894
|
-
modelMatrix: ["gpt-5.
|
|
17894
|
+
defaultModel: "gpt-5.6-luna",
|
|
17895
|
+
modelMatrix: ["gpt-5.6-luna"],
|
|
17895
17896
|
temperature: 0,
|
|
17896
17897
|
compatibility: {
|
|
17897
17898
|
minSdkVersion: "0.4.40",
|
|
@@ -17937,8 +17938,8 @@ var manifest_default2 = {
|
|
|
17937
17938
|
continuationBuilder: "buildContinuationInstruction:experimental-compact",
|
|
17938
17939
|
modelOutputInstruction: "agent-evals:modelOutputInstruction",
|
|
17939
17940
|
codeReviewPolicy: "reviewGeneratedJobCode",
|
|
17940
|
-
defaultModel: "gpt-5.
|
|
17941
|
-
modelMatrix: ["gpt-5.
|
|
17941
|
+
defaultModel: "gpt-5.6-luna",
|
|
17942
|
+
modelMatrix: ["gpt-5.6-luna"],
|
|
17942
17943
|
temperature: 0,
|
|
17943
17944
|
compatibility: {
|
|
17944
17945
|
minSdkVersion: "0.4.40",
|
|
@@ -17984,8 +17985,8 @@ var manifest_default3 = {
|
|
|
17984
17985
|
continuationBuilder: "buildContinuationInstruction",
|
|
17985
17986
|
modelOutputInstruction: "agent-evals:modelOutputInstruction",
|
|
17986
17987
|
codeReviewPolicy: "reviewGeneratedJobCode",
|
|
17987
|
-
defaultModel: "gpt-5.
|
|
17988
|
-
modelMatrix: ["gpt-5.
|
|
17988
|
+
defaultModel: "gpt-5.6-luna",
|
|
17989
|
+
modelMatrix: ["gpt-5.6-luna"],
|
|
17989
17990
|
temperature: 0,
|
|
17990
17991
|
compatibility: {
|
|
17991
17992
|
minSdkVersion: "0.4.40",
|
|
@@ -20842,10 +20843,10 @@ function progressEvent(input) {
|
|
|
20842
20843
|
async function emitProgress(handler, event) {
|
|
20843
20844
|
await handler?.(progressEvent(event));
|
|
20844
20845
|
}
|
|
20845
|
-
var
|
|
20846
|
-
input:
|
|
20847
|
-
cachedInput: 0.
|
|
20848
|
-
output:
|
|
20846
|
+
var GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION = {
|
|
20847
|
+
input: 1,
|
|
20848
|
+
cachedInput: 0.1,
|
|
20849
|
+
output: 6
|
|
20849
20850
|
};
|
|
20850
20851
|
function emptyTokenUsage() {
|
|
20851
20852
|
return {
|
|
@@ -20876,7 +20877,7 @@ function calculateTokenCost(input) {
|
|
|
20876
20877
|
input: spend.inputPricePerMillionMicros / 1e6,
|
|
20877
20878
|
cachedInput: spend.cachedInputPricePerMillionMicros / 1e6,
|
|
20878
20879
|
output: spend.outputPricePerMillionMicros / 1e6
|
|
20879
|
-
} :
|
|
20880
|
+
} : GRANULAR_AGENT_TOKEN_PRICING_USD_PER_MILLION;
|
|
20880
20881
|
const inputCostUsd = input.uncachedInputTokens * pricing.input / 1e6;
|
|
20881
20882
|
const cachedInputCostUsd = input.cachedInputTokens * pricing.cachedInput / 1e6;
|
|
20882
20883
|
const outputCostUsd = input.outputTokens * pricing.output / 1e6;
|
|
@@ -20982,7 +20983,7 @@ function formatTokenUsage(usage) {
|
|
|
20982
20983
|
`- Cached input cost: ${formatUsd(usage.cachedInputCostUsd)}`,
|
|
20983
20984
|
`- Output cost: ${formatUsd(usage.outputCostUsd)}`,
|
|
20984
20985
|
`- Total cost: ${formatUsd(usage.totalCostUsd)}`,
|
|
20985
|
-
`- Pricing
|
|
20986
|
+
`- 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
20987
|
];
|
|
20987
20988
|
}
|
|
20988
20989
|
function getJobAgentMessages(liveDoc, jobId) {
|
|
@@ -21216,7 +21217,7 @@ function createOpenAIChatTurnGenerator(options) {
|
|
|
21216
21217
|
/\/$/,
|
|
21217
21218
|
""
|
|
21218
21219
|
);
|
|
21219
|
-
const model = options.model || "gpt-5.
|
|
21220
|
+
const model = options.model || "gpt-5.6-luna";
|
|
21220
21221
|
const client = new OpenAI__default.default({
|
|
21221
21222
|
apiKey: options.apiKey,
|
|
21222
21223
|
baseURL: baseUrl,
|