@traits-dev/core 0.2.0 → 0.4.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/{index-1c7xQG2q.d.cts → index-Ct4kuPk7.d.cts} +23 -4
- package/dist/{index-1c7xQG2q.d.ts → index-Ct4kuPk7.d.ts} +23 -4
- package/dist/index.cjs +271 -71
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +271 -71
- package/dist/internal.cjs +542 -72
- package/dist/internal.d.cts +16 -3
- package/dist/internal.d.ts +16 -3
- package/dist/internal.js +540 -72
- package/package.json +1 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as ValidationResult, a as ValidationCheckSummary, b as ValidationDiagnostic, P as PersonalityProfile, r as runTier1Evaluation } from './index-
|
|
2
|
-
export { C as CapabilityHandoff, c as CompileOptions, d as CompiledPersonality, e as ContextAdaptation, f as ContextResolution, D as DimensionName, g as DimensionObject, h as DimensionShorthand, i as DimensionValue,
|
|
1
|
+
import { V as ValidationResult, a as ValidationCheckSummary, b as ValidationDiagnostic, P as PersonalityProfile, r as runTier1Evaluation, E as EvalScenario } from './index-Ct4kuPk7.cjs';
|
|
2
|
+
export { C as CapabilityHandoff, c as CompileOptions, d as CompiledPersonality, e as ContextAdaptation, f as ContextResolution, D as DimensionName, g as DimensionObject, h as DimensionShorthand, i as DimensionValue, j as EvalSample, k as ExtendsDiagnostics, l as ExtendsResult, H as HumorDimensionObject, m as HumorDimensionValue, n as HumorStyle, I as ImportOptions, L as Level, o as LockedRule, p as ProfileCapabilities, R as RuleConstraint, T as Tier1Options, q as Tier2Options, s as Tier3Options, t as VocabularyConstraints, u as compileProfile, v as compileResolvedProfile, w as evaluateTier1Response, x as injectPersonality, y as loadProfileFile, z as mapImportAnalysisToProfile, A as normalizeProfile, B as renderImportedProfileYAML, F as resolveActiveContext, G as resolveExtends, J as runImportAnalysis, K as runTier1EvaluationForProfile, M as runTier2Evaluation, N as runTier2EvaluationForProfile, O as runTier3Evaluation, Q as runTier3EvaluationForProfile, S as validateEvalScenario, U as validateEvalScenarios, W as validateProfile, X as validateResolvedProfile } from './index-Ct4kuPk7.cjs';
|
|
3
3
|
|
|
4
4
|
type ValidationResultObject = {
|
|
5
5
|
profilePath: string | null;
|
|
@@ -96,6 +96,19 @@ declare function runOfflineBaselineScaffold(profile: PersonalityProfile, samples
|
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
+
type EvalSuiteName = "support" | "healthcare" | "developer";
|
|
100
|
+
type EvalScenarioSuite = {
|
|
101
|
+
id: EvalSuiteName;
|
|
102
|
+
description: string;
|
|
103
|
+
scenarios: EvalScenario[];
|
|
104
|
+
};
|
|
105
|
+
declare function listBuiltInEvalSuites(): Array<{
|
|
106
|
+
id: EvalSuiteName;
|
|
107
|
+
description: string;
|
|
108
|
+
scenarioCount: number;
|
|
109
|
+
}>;
|
|
110
|
+
declare function loadBuiltInEvalSuite(name: string): EvalScenarioSuite | null;
|
|
111
|
+
|
|
99
112
|
type FetchLike$1 = (input: string, init?: RequestInit) => Promise<Response>;
|
|
100
113
|
declare function anthropicJudge({ apiKey, systemPrompt, userPrompt, model, baseUrl, fetchImpl, timeoutMs, maxRetries, retryBaseMs }: {
|
|
101
114
|
apiKey: string;
|
|
@@ -132,4 +145,4 @@ declare function openAIJudge({ apiKey, systemPrompt, userPrompt, model, baseUrl,
|
|
|
132
145
|
retryBaseMs?: number;
|
|
133
146
|
}): Promise<string>;
|
|
134
147
|
|
|
135
|
-
export { PersonalityProfile, ValidationDiagnostic, ValidationResult, anthropicJudge, applyCalibrationUpdates, detectEvalTierAvailability, formatValidationResult, mergeCalibrationFile, openAIEmbed, openAIJudge, resolveTierExecution, runOfflineBaselineScaffold, runTier1Evaluation, toValidationResultObject };
|
|
148
|
+
export { PersonalityProfile, ValidationDiagnostic, ValidationResult, anthropicJudge, applyCalibrationUpdates, detectEvalTierAvailability, formatValidationResult, listBuiltInEvalSuites, loadBuiltInEvalSuite, mergeCalibrationFile, openAIEmbed, openAIJudge, resolveTierExecution, runOfflineBaselineScaffold, runTier1Evaluation, toValidationResultObject };
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as ValidationResult, a as ValidationCheckSummary, b as ValidationDiagnostic, P as PersonalityProfile, r as runTier1Evaluation } from './index-
|
|
2
|
-
export { C as CapabilityHandoff, c as CompileOptions, d as CompiledPersonality, e as ContextAdaptation, f as ContextResolution, D as DimensionName, g as DimensionObject, h as DimensionShorthand, i as DimensionValue,
|
|
1
|
+
import { V as ValidationResult, a as ValidationCheckSummary, b as ValidationDiagnostic, P as PersonalityProfile, r as runTier1Evaluation, E as EvalScenario } from './index-Ct4kuPk7.js';
|
|
2
|
+
export { C as CapabilityHandoff, c as CompileOptions, d as CompiledPersonality, e as ContextAdaptation, f as ContextResolution, D as DimensionName, g as DimensionObject, h as DimensionShorthand, i as DimensionValue, j as EvalSample, k as ExtendsDiagnostics, l as ExtendsResult, H as HumorDimensionObject, m as HumorDimensionValue, n as HumorStyle, I as ImportOptions, L as Level, o as LockedRule, p as ProfileCapabilities, R as RuleConstraint, T as Tier1Options, q as Tier2Options, s as Tier3Options, t as VocabularyConstraints, u as compileProfile, v as compileResolvedProfile, w as evaluateTier1Response, x as injectPersonality, y as loadProfileFile, z as mapImportAnalysisToProfile, A as normalizeProfile, B as renderImportedProfileYAML, F as resolveActiveContext, G as resolveExtends, J as runImportAnalysis, K as runTier1EvaluationForProfile, M as runTier2Evaluation, N as runTier2EvaluationForProfile, O as runTier3Evaluation, Q as runTier3EvaluationForProfile, S as validateEvalScenario, U as validateEvalScenarios, W as validateProfile, X as validateResolvedProfile } from './index-Ct4kuPk7.js';
|
|
3
3
|
|
|
4
4
|
type ValidationResultObject = {
|
|
5
5
|
profilePath: string | null;
|
|
@@ -96,6 +96,19 @@ declare function runOfflineBaselineScaffold(profile: PersonalityProfile, samples
|
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
+
type EvalSuiteName = "support" | "healthcare" | "developer";
|
|
100
|
+
type EvalScenarioSuite = {
|
|
101
|
+
id: EvalSuiteName;
|
|
102
|
+
description: string;
|
|
103
|
+
scenarios: EvalScenario[];
|
|
104
|
+
};
|
|
105
|
+
declare function listBuiltInEvalSuites(): Array<{
|
|
106
|
+
id: EvalSuiteName;
|
|
107
|
+
description: string;
|
|
108
|
+
scenarioCount: number;
|
|
109
|
+
}>;
|
|
110
|
+
declare function loadBuiltInEvalSuite(name: string): EvalScenarioSuite | null;
|
|
111
|
+
|
|
99
112
|
type FetchLike$1 = (input: string, init?: RequestInit) => Promise<Response>;
|
|
100
113
|
declare function anthropicJudge({ apiKey, systemPrompt, userPrompt, model, baseUrl, fetchImpl, timeoutMs, maxRetries, retryBaseMs }: {
|
|
101
114
|
apiKey: string;
|
|
@@ -132,4 +145,4 @@ declare function openAIJudge({ apiKey, systemPrompt, userPrompt, model, baseUrl,
|
|
|
132
145
|
retryBaseMs?: number;
|
|
133
146
|
}): Promise<string>;
|
|
134
147
|
|
|
135
|
-
export { PersonalityProfile, ValidationDiagnostic, ValidationResult, anthropicJudge, applyCalibrationUpdates, detectEvalTierAvailability, formatValidationResult, mergeCalibrationFile, openAIEmbed, openAIJudge, resolveTierExecution, runOfflineBaselineScaffold, runTier1Evaluation, toValidationResultObject };
|
|
148
|
+
export { PersonalityProfile, ValidationDiagnostic, ValidationResult, anthropicJudge, applyCalibrationUpdates, detectEvalTierAvailability, formatValidationResult, listBuiltInEvalSuites, loadBuiltInEvalSuite, mergeCalibrationFile, openAIEmbed, openAIJudge, resolveTierExecution, runOfflineBaselineScaffold, runTier1Evaluation, toValidationResultObject };
|