@agentv/core 0.7.4 → 0.7.5
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-L6RCDZ4Z.js → chunk-7XM7HYRS.js} +6 -2
- package/dist/chunk-7XM7HYRS.js.map +1 -0
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +1 -1
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-L6RCDZ4Z.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -174,6 +174,11 @@ declare function buildPromptInputs(testCase: EvalCase): Promise<{
|
|
|
174
174
|
}>;
|
|
175
175
|
|
|
176
176
|
declare function fileExists(filePath: string): Promise<boolean>;
|
|
177
|
+
/**
|
|
178
|
+
* Normalize line endings to LF (\n).
|
|
179
|
+
* This ensures consistent behavior across Windows (CRLF) and Unix (LF) systems.
|
|
180
|
+
*/
|
|
181
|
+
declare function normalizeLineEndings(content: string): string;
|
|
177
182
|
/**
|
|
178
183
|
* Read a text file and normalize line endings to LF (\n).
|
|
179
184
|
* This ensures consistent behavior across Windows (CRLF) and Unix (LF) systems.
|
|
@@ -516,4 +521,4 @@ type AgentKernel = {
|
|
|
516
521
|
};
|
|
517
522
|
declare function createAgentKernel(): AgentKernel;
|
|
518
523
|
|
|
519
|
-
export { type AgentKernel, type AnthropicResolvedConfig, type AssistantTestMessage, type AzureResolvedConfig, type CliResolvedConfig, CodeEvaluator, type CodeEvaluatorConfig, type CodeEvaluatorOptions, type EnsureSubagentsOptions, type EnsureSubagentsResult, type EnvLookup, type EvalCase, type EvaluationCache, type EvaluationContext, type EvaluationResult, type EvaluationScore, type Evaluator, type EvaluatorConfig, type EvaluatorKind, type EvaluatorResult, type GeminiResolvedConfig, type JsonObject, type JsonPrimitive, type JsonValue, LlmJudgeEvaluator, type LlmJudgeEvaluatorConfig, type LlmJudgeEvaluatorOptions, type MockResolvedConfig, type ProgressEvent, type Provider, type ProviderKind, type ProviderRequest, type ProviderResponse, type ResolvedTarget, type RunEvalCaseOptions, type RunEvaluationOptions, type SystemTestMessage, TEST_MESSAGE_ROLES, type TargetDefinition, type TestMessage, type TestMessageContent, type TestMessageRole, type ToolTestMessage, type UserTestMessage, type VSCodeResolvedConfig, buildDirectoryChain, buildPromptInputs, buildSearchRoots, consumeCodexLogEntries, createAgentKernel, createProvider, ensureVSCodeSubagents, extractCodeBlocks, fileExists, findGitRoot, getHitCount, isEvaluatorKind, isGuidelineFile, isJsonObject, isJsonValue, isTestMessage, isTestMessageRole, listTargetNames, loadEvalCases, readTargetDefinitions, readTextFile, resolveAndCreateProvider, resolveFileReference, resolveTargetDefinition, runEvalCase, runEvaluation, subscribeToCodexLogEntries };
|
|
524
|
+
export { type AgentKernel, type AnthropicResolvedConfig, type AssistantTestMessage, type AzureResolvedConfig, type CliResolvedConfig, CodeEvaluator, type CodeEvaluatorConfig, type CodeEvaluatorOptions, type EnsureSubagentsOptions, type EnsureSubagentsResult, type EnvLookup, type EvalCase, type EvaluationCache, type EvaluationContext, type EvaluationResult, type EvaluationScore, type Evaluator, type EvaluatorConfig, type EvaluatorKind, type EvaluatorResult, type GeminiResolvedConfig, type JsonObject, type JsonPrimitive, type JsonValue, LlmJudgeEvaluator, type LlmJudgeEvaluatorConfig, type LlmJudgeEvaluatorOptions, type MockResolvedConfig, type ProgressEvent, type Provider, type ProviderKind, type ProviderRequest, type ProviderResponse, type ResolvedTarget, type RunEvalCaseOptions, type RunEvaluationOptions, type SystemTestMessage, TEST_MESSAGE_ROLES, type TargetDefinition, type TestMessage, type TestMessageContent, type TestMessageRole, type ToolTestMessage, type UserTestMessage, type VSCodeResolvedConfig, buildDirectoryChain, buildPromptInputs, buildSearchRoots, consumeCodexLogEntries, createAgentKernel, createProvider, ensureVSCodeSubagents, extractCodeBlocks, fileExists, findGitRoot, getHitCount, isEvaluatorKind, isGuidelineFile, isJsonObject, isJsonValue, isTestMessage, isTestMessageRole, listTargetNames, loadEvalCases, normalizeLineEndings, readTargetDefinitions, readTextFile, resolveAndCreateProvider, resolveFileReference, resolveTargetDefinition, runEvalCase, runEvaluation, subscribeToCodexLogEntries };
|
package/dist/index.d.ts
CHANGED
|
@@ -174,6 +174,11 @@ declare function buildPromptInputs(testCase: EvalCase): Promise<{
|
|
|
174
174
|
}>;
|
|
175
175
|
|
|
176
176
|
declare function fileExists(filePath: string): Promise<boolean>;
|
|
177
|
+
/**
|
|
178
|
+
* Normalize line endings to LF (\n).
|
|
179
|
+
* This ensures consistent behavior across Windows (CRLF) and Unix (LF) systems.
|
|
180
|
+
*/
|
|
181
|
+
declare function normalizeLineEndings(content: string): string;
|
|
177
182
|
/**
|
|
178
183
|
* Read a text file and normalize line endings to LF (\n).
|
|
179
184
|
* This ensures consistent behavior across Windows (CRLF) and Unix (LF) systems.
|
|
@@ -516,4 +521,4 @@ type AgentKernel = {
|
|
|
516
521
|
};
|
|
517
522
|
declare function createAgentKernel(): AgentKernel;
|
|
518
523
|
|
|
519
|
-
export { type AgentKernel, type AnthropicResolvedConfig, type AssistantTestMessage, type AzureResolvedConfig, type CliResolvedConfig, CodeEvaluator, type CodeEvaluatorConfig, type CodeEvaluatorOptions, type EnsureSubagentsOptions, type EnsureSubagentsResult, type EnvLookup, type EvalCase, type EvaluationCache, type EvaluationContext, type EvaluationResult, type EvaluationScore, type Evaluator, type EvaluatorConfig, type EvaluatorKind, type EvaluatorResult, type GeminiResolvedConfig, type JsonObject, type JsonPrimitive, type JsonValue, LlmJudgeEvaluator, type LlmJudgeEvaluatorConfig, type LlmJudgeEvaluatorOptions, type MockResolvedConfig, type ProgressEvent, type Provider, type ProviderKind, type ProviderRequest, type ProviderResponse, type ResolvedTarget, type RunEvalCaseOptions, type RunEvaluationOptions, type SystemTestMessage, TEST_MESSAGE_ROLES, type TargetDefinition, type TestMessage, type TestMessageContent, type TestMessageRole, type ToolTestMessage, type UserTestMessage, type VSCodeResolvedConfig, buildDirectoryChain, buildPromptInputs, buildSearchRoots, consumeCodexLogEntries, createAgentKernel, createProvider, ensureVSCodeSubagents, extractCodeBlocks, fileExists, findGitRoot, getHitCount, isEvaluatorKind, isGuidelineFile, isJsonObject, isJsonValue, isTestMessage, isTestMessageRole, listTargetNames, loadEvalCases, readTargetDefinitions, readTextFile, resolveAndCreateProvider, resolveFileReference, resolveTargetDefinition, runEvalCase, runEvaluation, subscribeToCodexLogEntries };
|
|
524
|
+
export { type AgentKernel, type AnthropicResolvedConfig, type AssistantTestMessage, type AzureResolvedConfig, type CliResolvedConfig, CodeEvaluator, type CodeEvaluatorConfig, type CodeEvaluatorOptions, type EnsureSubagentsOptions, type EnsureSubagentsResult, type EnvLookup, type EvalCase, type EvaluationCache, type EvaluationContext, type EvaluationResult, type EvaluationScore, type Evaluator, type EvaluatorConfig, type EvaluatorKind, type EvaluatorResult, type GeminiResolvedConfig, type JsonObject, type JsonPrimitive, type JsonValue, LlmJudgeEvaluator, type LlmJudgeEvaluatorConfig, type LlmJudgeEvaluatorOptions, type MockResolvedConfig, type ProgressEvent, type Provider, type ProviderKind, type ProviderRequest, type ProviderResponse, type ResolvedTarget, type RunEvalCaseOptions, type RunEvaluationOptions, type SystemTestMessage, TEST_MESSAGE_ROLES, type TargetDefinition, type TestMessage, type TestMessageContent, type TestMessageRole, type ToolTestMessage, type UserTestMessage, type VSCodeResolvedConfig, buildDirectoryChain, buildPromptInputs, buildSearchRoots, consumeCodexLogEntries, createAgentKernel, createProvider, ensureVSCodeSubagents, extractCodeBlocks, fileExists, findGitRoot, getHitCount, isEvaluatorKind, isGuidelineFile, isJsonObject, isJsonValue, isTestMessage, isTestMessageRole, listTargetNames, loadEvalCases, normalizeLineEndings, readTargetDefinitions, readTextFile, resolveAndCreateProvider, resolveFileReference, resolveTargetDefinition, runEvalCase, runEvaluation, subscribeToCodexLogEntries };
|
package/dist/index.js
CHANGED
|
@@ -5,10 +5,11 @@ import {
|
|
|
5
5
|
fileExists,
|
|
6
6
|
findGitRoot,
|
|
7
7
|
isAgentProvider,
|
|
8
|
+
normalizeLineEndings,
|
|
8
9
|
readTextFile,
|
|
9
10
|
resolveFileReference,
|
|
10
11
|
resolveTargetDefinition
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7XM7HYRS.js";
|
|
12
13
|
|
|
13
14
|
// src/evaluation/types.ts
|
|
14
15
|
var TEST_MESSAGE_ROLE_VALUES = ["system", "user", "assistant", "tool"];
|
|
@@ -796,7 +797,6 @@ async function defaultCommandRunner(command, options) {
|
|
|
796
797
|
};
|
|
797
798
|
try {
|
|
798
799
|
const { stdout, stderr } = await execAsync(command, execOptions);
|
|
799
|
-
console.error(`[CLI DEBUG] SUCCESS - stdout: ${stdout.length} bytes, stderr: ${stderr.length} bytes`);
|
|
800
800
|
return {
|
|
801
801
|
stdout,
|
|
802
802
|
stderr,
|
|
@@ -807,8 +807,6 @@ async function defaultCommandRunner(command, options) {
|
|
|
807
807
|
};
|
|
808
808
|
} catch (error) {
|
|
809
809
|
const execError = error;
|
|
810
|
-
console.error(`[CLI DEBUG] ERROR - code: ${execError.code}, message: ${execError.message}`);
|
|
811
|
-
console.error(`[CLI DEBUG] stdout: ${execError.stdout?.length ?? 0} bytes, stderr: ${execError.stderr?.length ?? 0} bytes`);
|
|
812
810
|
return {
|
|
813
811
|
stdout: execError.stdout ?? "",
|
|
814
812
|
stderr: execError.stderr ?? "",
|
|
@@ -876,7 +874,7 @@ var CliProvider = class {
|
|
|
876
874
|
}
|
|
877
875
|
async readAndCleanupOutputFile(filePath) {
|
|
878
876
|
try {
|
|
879
|
-
const content = await
|
|
877
|
+
const content = await readTextFile(filePath);
|
|
880
878
|
return content;
|
|
881
879
|
} catch (error) {
|
|
882
880
|
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
@@ -3420,6 +3418,7 @@ export {
|
|
|
3420
3418
|
isTestMessageRole,
|
|
3421
3419
|
listTargetNames,
|
|
3422
3420
|
loadEvalCases,
|
|
3421
|
+
normalizeLineEndings,
|
|
3423
3422
|
readTargetDefinitions,
|
|
3424
3423
|
readTextFile,
|
|
3425
3424
|
resolveAndCreateProvider,
|