agentv 2.5.8 → 2.6.0
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/{chunk-H7Z5TVCB.js → chunk-MGK6HHRR.js} +15 -18
- package/dist/chunk-MGK6HHRR.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/.agentv/.env.example +23 -23
- package/dist/templates/.agentv/config.yaml +15 -15
- package/dist/templates/.github/prompts/agentv-eval-build.prompt.md +4 -4
- package/dist/templates/.github/prompts/agentv-optimize.prompt.md +3 -3
- package/package.json +4 -4
- package/dist/chunk-H7Z5TVCB.js.map +0 -1
|
@@ -2857,7 +2857,7 @@ function oneOf(literals) {
|
|
|
2857
2857
|
// package.json
|
|
2858
2858
|
var package_default = {
|
|
2859
2859
|
name: "agentv",
|
|
2860
|
-
version: "2.
|
|
2860
|
+
version: "2.6.0",
|
|
2861
2861
|
description: "CLI entry point for AgentV",
|
|
2862
2862
|
type: "module",
|
|
2863
2863
|
repository: {
|
|
@@ -2886,8 +2886,8 @@ var package_default = {
|
|
|
2886
2886
|
},
|
|
2887
2887
|
dependencies: {
|
|
2888
2888
|
"@agentv/core": "workspace:*",
|
|
2889
|
-
"@mariozechner/pi-agent": "^0.9
|
|
2890
|
-
"@mariozechner/pi-ai": "^0.
|
|
2889
|
+
"@mariozechner/pi-agent-core": "^0.50.9",
|
|
2890
|
+
"@mariozechner/pi-ai": "^0.50.9",
|
|
2891
2891
|
"cmd-ts": "^0.14.3",
|
|
2892
2892
|
dotenv: "^16.4.5",
|
|
2893
2893
|
"fast-glob": "^3.3.3",
|
|
@@ -3130,7 +3130,7 @@ var compareCommand = command({
|
|
|
3130
3130
|
import { readFileSync as readFileSync2, writeFileSync } from "node:fs";
|
|
3131
3131
|
import path27 from "node:path";
|
|
3132
3132
|
|
|
3133
|
-
// ../../packages/core/dist/chunk-
|
|
3133
|
+
// ../../packages/core/dist/chunk-SSPAANFZ.js
|
|
3134
3134
|
import { constants } from "node:fs";
|
|
3135
3135
|
import { access, readFile } from "node:fs/promises";
|
|
3136
3136
|
import path from "node:path";
|
|
@@ -7177,7 +7177,7 @@ var coerce = {
|
|
|
7177
7177
|
};
|
|
7178
7178
|
var NEVER = INVALID;
|
|
7179
7179
|
|
|
7180
|
-
// ../../packages/core/dist/chunk-
|
|
7180
|
+
// ../../packages/core/dist/chunk-SSPAANFZ.js
|
|
7181
7181
|
async function fileExists(filePath) {
|
|
7182
7182
|
try {
|
|
7183
7183
|
await access(filePath, constants.F_OK);
|
|
@@ -40821,13 +40821,13 @@ async function loadPiModules() {
|
|
|
40821
40821
|
if (!piAgentModule || !piAiModule) {
|
|
40822
40822
|
try {
|
|
40823
40823
|
[piAgentModule, piAiModule] = await Promise.all([
|
|
40824
|
-
import("@mariozechner/pi-agent"),
|
|
40824
|
+
import("@mariozechner/pi-agent-core"),
|
|
40825
40825
|
import("@mariozechner/pi-ai")
|
|
40826
40826
|
]);
|
|
40827
40827
|
} catch (error40) {
|
|
40828
40828
|
throw new Error(
|
|
40829
40829
|
`Failed to load pi-agent-sdk dependencies. Please install them:
|
|
40830
|
-
npm install @mariozechner/pi-agent @mariozechner/pi-ai
|
|
40830
|
+
npm install @mariozechner/pi-agent-core @mariozechner/pi-ai
|
|
40831
40831
|
|
|
40832
40832
|
Original error: ${error40 instanceof Error ? error40.message : String(error40)}`
|
|
40833
40833
|
);
|
|
@@ -40835,7 +40835,6 @@ Original error: ${error40 instanceof Error ? error40.message : String(error40)}`
|
|
|
40835
40835
|
}
|
|
40836
40836
|
return {
|
|
40837
40837
|
Agent: piAgentModule.Agent,
|
|
40838
|
-
ProviderTransport: piAgentModule.ProviderTransport,
|
|
40839
40838
|
getModel: piAiModule.getModel,
|
|
40840
40839
|
getEnvApiKey: piAiModule.getEnvApiKey
|
|
40841
40840
|
};
|
|
@@ -40855,17 +40854,12 @@ var PiAgentSdkProvider = class {
|
|
|
40855
40854
|
if (request.signal?.aborted) {
|
|
40856
40855
|
throw new Error("Pi agent SDK request was aborted before execution");
|
|
40857
40856
|
}
|
|
40858
|
-
const { Agent,
|
|
40857
|
+
const { Agent, getModel, getEnvApiKey } = await loadPiModules();
|
|
40859
40858
|
const startTime = Date.now();
|
|
40860
40859
|
const providerName = this.config.provider ?? "anthropic";
|
|
40861
40860
|
const modelId = this.config.model ?? "claude-sonnet-4-20250514";
|
|
40862
40861
|
const model = getModel(providerName, modelId);
|
|
40863
40862
|
const systemPrompt = this.config.systemPrompt ?? "Answer directly and concisely.";
|
|
40864
|
-
const transport = new ProviderTransport({
|
|
40865
|
-
getApiKey: async (provider) => {
|
|
40866
|
-
return this.config.apiKey ?? getEnvApiKey(provider) ?? void 0;
|
|
40867
|
-
}
|
|
40868
|
-
});
|
|
40869
40863
|
const agent = new Agent({
|
|
40870
40864
|
initialState: {
|
|
40871
40865
|
systemPrompt,
|
|
@@ -40874,7 +40868,9 @@ var PiAgentSdkProvider = class {
|
|
|
40874
40868
|
// No tools for simple Q&A
|
|
40875
40869
|
messages: []
|
|
40876
40870
|
},
|
|
40877
|
-
|
|
40871
|
+
getApiKey: async (provider) => {
|
|
40872
|
+
return this.config.apiKey ?? getEnvApiKey(provider) ?? void 0;
|
|
40873
|
+
}
|
|
40878
40874
|
});
|
|
40879
40875
|
const outputMessages = [];
|
|
40880
40876
|
let finalAssistantContent = "";
|
|
@@ -40964,10 +40960,10 @@ function extractToolCalls2(content) {
|
|
|
40964
40960
|
continue;
|
|
40965
40961
|
}
|
|
40966
40962
|
const p = part;
|
|
40967
|
-
if (p.type === "
|
|
40963
|
+
if (p.type === "toolCall" && typeof p.name === "string") {
|
|
40968
40964
|
toolCalls.push({
|
|
40969
40965
|
tool: p.name,
|
|
40970
|
-
input: p.
|
|
40966
|
+
input: p.arguments,
|
|
40971
40967
|
id: typeof p.id === "string" ? p.id : void 0
|
|
40972
40968
|
});
|
|
40973
40969
|
}
|
|
@@ -44543,6 +44539,7 @@ var FieldAccuracyEvaluator = class {
|
|
|
44543
44539
|
score: clampScore(score),
|
|
44544
44540
|
verdict: scoreToVerdict(score),
|
|
44545
44541
|
hits: hits.slice(0, 4),
|
|
44542
|
+
// Cap at 4 to keep output concise
|
|
44546
44543
|
misses: misses.slice(0, 4),
|
|
44547
44544
|
expectedAspectCount: results.length,
|
|
44548
44545
|
reasoning
|
|
@@ -49453,4 +49450,4 @@ export {
|
|
|
49453
49450
|
app,
|
|
49454
49451
|
runCli
|
|
49455
49452
|
};
|
|
49456
|
-
//# sourceMappingURL=chunk-
|
|
49453
|
+
//# sourceMappingURL=chunk-MGK6HHRR.js.map
|