@warmdrift/kgauto-compiler 2.0.0-alpha.59 → 2.0.0-alpha.60
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-B4INZ32V.mjs → chunk-RQ3BUUB6.mjs} +5 -0
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +6 -0
- package/dist/index.mjs +3 -1
- package/dist/key-health.d.mts +10 -0
- package/dist/key-health.d.ts +10 -0
- package/dist/key-health.js +6 -0
- package/dist/key-health.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/version.ts
|
|
2
|
+
var LIBRARY_VERSION = "2.0.0-alpha.60";
|
|
3
|
+
|
|
1
4
|
// src/key-health.ts
|
|
2
5
|
var JSON_HEADERS = { "Content-Type": "application/json" };
|
|
3
6
|
function jsonResponse(status, body) {
|
|
@@ -169,6 +172,7 @@ function createKeyHealthRoute(config) {
|
|
|
169
172
|
const body = {
|
|
170
173
|
app_id: appId,
|
|
171
174
|
checked_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
175
|
+
library_version: LIBRARY_VERSION,
|
|
172
176
|
keys
|
|
173
177
|
};
|
|
174
178
|
return jsonResponse(200, body);
|
|
@@ -181,5 +185,6 @@ function createKeyHealthRoute(config) {
|
|
|
181
185
|
}
|
|
182
186
|
|
|
183
187
|
export {
|
|
188
|
+
LIBRARY_VERSION,
|
|
184
189
|
createKeyHealthRoute
|
|
185
190
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -626,6 +626,21 @@ declare function buildShadowProbeRow(input: ShadowProbeRecordInput): {
|
|
|
626
626
|
*/
|
|
627
627
|
declare function recordShadowProbe(input: ShadowProbeRecordInput): Promise<void>;
|
|
628
628
|
|
|
629
|
+
/**
|
|
630
|
+
* alpha.60 — the library's own version, baked as a constant so Edge/Worker
|
|
631
|
+
* runtimes (no fs, no require) can report it on wire surfaces. First
|
|
632
|
+
* consumer: `createKeyHealthRoute` carries it as `library_version`, which is
|
|
633
|
+
* how the operator dashboard's Fleet panel sees per-consumer vendor drift
|
|
634
|
+
* LIVE instead of via wrap-time package.json probes (the L-093 family
|
|
635
|
+
* "declared state lags actual" fix at the vendor-version axis — s47 found
|
|
636
|
+
* IC 13 alphas stale that way).
|
|
637
|
+
*
|
|
638
|
+
* Kept in sync with package.json by hand at each version bump; the drift
|
|
639
|
+
* guard in `tests/version.test.ts` fails the suite (and therefore
|
|
640
|
+
* `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
|
|
641
|
+
*/
|
|
642
|
+
declare const LIBRARY_VERSION = "2.0.0-alpha.60";
|
|
643
|
+
|
|
629
644
|
/**
|
|
630
645
|
* Oracle contract — how an app tells the brain whether a response was good.
|
|
631
646
|
*
|
|
@@ -2413,4 +2428,4 @@ declare function markPromoteReadyHandled(opts: MarkPromoteReadyHandledOptions):
|
|
|
2413
2428
|
*/
|
|
2414
2429
|
declare function compile(ir: PromptIR, opts?: CompileOptions): CompileResult;
|
|
2415
2430
|
|
|
2416
|
-
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BestPracticeAdvisory, type BrainConfig, type BrainQueryConfig, type BrainReadEnv, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, DEFAULT_FINDINGS_ENDPOINT, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type FallbackPosture, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetDefaultFallbackChainOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, Grounding, IntentArchetypeName, type LLMJudgeOptions, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, PromptIR, Provider, ProviderOverrides, type ProviderReachability, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, SectionRewrite, type ShadowProbeRecordInput, type SupportedProvider, SystemModelMessage, TRANSLATOR_FLOOR, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, buildLLMJudge, buildShadowProbeRow, call, clearBrain, compile, compileForAISDKv6, configureBrain, countTokens, deriveFamilyFromModelId, deriveOwnership, execute, findBetterFit, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isBrainQueryActiveFor, isBrainSync, isExclusionFindingsBrainActive, isModelReachable, isProviderReachable, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, probeShadow, profileToRow, readBrainReadEnv, record, recordOutcome, recordShadowProbe, resetTokenizer, resolveConventionsForProfile, resolvePricingAt, resolveProviderKey, runAdvisor, setTokenizer };
|
|
2431
|
+
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BestPracticeAdvisory, type BrainConfig, type BrainQueryConfig, type BrainReadEnv, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, DEFAULT_FINDINGS_ENDPOINT, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type FallbackPosture, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetDefaultFallbackChainOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, Grounding, IntentArchetypeName, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, PromptIR, Provider, ProviderOverrides, type ProviderReachability, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, SectionRewrite, type ShadowProbeRecordInput, type SupportedProvider, SystemModelMessage, TRANSLATOR_FLOOR, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, buildLLMJudge, buildShadowProbeRow, call, clearBrain, compile, compileForAISDKv6, configureBrain, countTokens, deriveFamilyFromModelId, deriveOwnership, execute, findBetterFit, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isBrainQueryActiveFor, isBrainSync, isExclusionFindingsBrainActive, isModelReachable, isProviderReachable, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, probeShadow, profileToRow, readBrainReadEnv, record, recordOutcome, recordShadowProbe, resetTokenizer, resolveConventionsForProfile, resolvePricingAt, resolveProviderKey, runAdvisor, setTokenizer };
|
package/dist/index.d.ts
CHANGED
|
@@ -626,6 +626,21 @@ declare function buildShadowProbeRow(input: ShadowProbeRecordInput): {
|
|
|
626
626
|
*/
|
|
627
627
|
declare function recordShadowProbe(input: ShadowProbeRecordInput): Promise<void>;
|
|
628
628
|
|
|
629
|
+
/**
|
|
630
|
+
* alpha.60 — the library's own version, baked as a constant so Edge/Worker
|
|
631
|
+
* runtimes (no fs, no require) can report it on wire surfaces. First
|
|
632
|
+
* consumer: `createKeyHealthRoute` carries it as `library_version`, which is
|
|
633
|
+
* how the operator dashboard's Fleet panel sees per-consumer vendor drift
|
|
634
|
+
* LIVE instead of via wrap-time package.json probes (the L-093 family
|
|
635
|
+
* "declared state lags actual" fix at the vendor-version axis — s47 found
|
|
636
|
+
* IC 13 alphas stale that way).
|
|
637
|
+
*
|
|
638
|
+
* Kept in sync with package.json by hand at each version bump; the drift
|
|
639
|
+
* guard in `tests/version.test.ts` fails the suite (and therefore
|
|
640
|
+
* `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
|
|
641
|
+
*/
|
|
642
|
+
declare const LIBRARY_VERSION = "2.0.0-alpha.60";
|
|
643
|
+
|
|
629
644
|
/**
|
|
630
645
|
* Oracle contract — how an app tells the brain whether a response was good.
|
|
631
646
|
*
|
|
@@ -2413,4 +2428,4 @@ declare function markPromoteReadyHandled(opts: MarkPromoteReadyHandledOptions):
|
|
|
2413
2428
|
*/
|
|
2414
2429
|
declare function compile(ir: PromptIR, opts?: CompileOptions): CompileResult;
|
|
2415
2430
|
|
|
2416
|
-
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BestPracticeAdvisory, type BrainConfig, type BrainQueryConfig, type BrainReadEnv, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, DEFAULT_FINDINGS_ENDPOINT, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type FallbackPosture, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetDefaultFallbackChainOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, Grounding, IntentArchetypeName, type LLMJudgeOptions, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, PromptIR, Provider, ProviderOverrides, type ProviderReachability, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, SectionRewrite, type ShadowProbeRecordInput, type SupportedProvider, SystemModelMessage, TRANSLATOR_FLOOR, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, buildLLMJudge, buildShadowProbeRow, call, clearBrain, compile, compileForAISDKv6, configureBrain, countTokens, deriveFamilyFromModelId, deriveOwnership, execute, findBetterFit, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isBrainQueryActiveFor, isBrainSync, isExclusionFindingsBrainActive, isModelReachable, isProviderReachable, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, probeShadow, profileToRow, readBrainReadEnv, record, recordOutcome, recordShadowProbe, resetTokenizer, resolveConventionsForProfile, resolvePricingAt, resolveProviderKey, runAdvisor, setTokenizer };
|
|
2431
|
+
export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BestPracticeAdvisory, type BrainConfig, type BrainQueryConfig, type BrainReadEnv, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, DEFAULT_FINDINGS_ENDPOINT, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type FallbackPosture, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetDefaultFallbackChainOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, Grounding, IntentArchetypeName, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, PromptIR, Provider, ProviderOverrides, type ProviderReachability, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, SectionRewrite, type ShadowProbeRecordInput, type SupportedProvider, SystemModelMessage, TRANSLATOR_FLOOR, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, buildLLMJudge, buildShadowProbeRow, call, clearBrain, compile, compileForAISDKv6, configureBrain, countTokens, deriveFamilyFromModelId, deriveOwnership, execute, findBetterFit, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isBrainQueryActiveFor, isBrainSync, isExclusionFindingsBrainActive, isModelReachable, isProviderReachable, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, probeShadow, profileToRow, readBrainReadEnv, record, recordOutcome, recordShadowProbe, resetTokenizer, resolveConventionsForProfile, resolvePricingAt, resolveProviderKey, runAdvisor, setTokenizer };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(index_exports, {
|
|
|
31
31
|
FamilyResolutionError: () => FamilyResolutionError,
|
|
32
32
|
INTENT_ARCHETYPES: () => INTENT_ARCHETYPES,
|
|
33
33
|
LATENCY_TIER_MS: () => LATENCY_TIER_MS,
|
|
34
|
+
LIBRARY_VERSION: () => LIBRARY_VERSION,
|
|
34
35
|
MEASURED_GROUNDING_MIN_N: () => MEASURED_GROUNDING_MIN_N,
|
|
35
36
|
PRODUCER_OWNED_RULE_CODES: () => PRODUCER_OWNED_RULE_CODES,
|
|
36
37
|
PROVIDER_ENV_KEYS: () => PROVIDER_ENV_KEYS,
|
|
@@ -6945,6 +6946,9 @@ function createBrainForwardRoutes(config) {
|
|
|
6945
6946
|
return { handle, segments: KNOWN_SEGMENTS };
|
|
6946
6947
|
}
|
|
6947
6948
|
|
|
6949
|
+
// src/version.ts
|
|
6950
|
+
var LIBRARY_VERSION = "2.0.0-alpha.60";
|
|
6951
|
+
|
|
6948
6952
|
// src/key-health.ts
|
|
6949
6953
|
var JSON_HEADERS2 = { "Content-Type": "application/json" };
|
|
6950
6954
|
function jsonResponse2(status, body) {
|
|
@@ -7116,6 +7120,7 @@ function createKeyHealthRoute(config) {
|
|
|
7116
7120
|
const body = {
|
|
7117
7121
|
app_id: appId,
|
|
7118
7122
|
checked_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7123
|
+
library_version: LIBRARY_VERSION,
|
|
7119
7124
|
keys
|
|
7120
7125
|
};
|
|
7121
7126
|
return jsonResponse2(200, body);
|
|
@@ -7566,6 +7571,7 @@ function compile2(ir, opts) {
|
|
|
7566
7571
|
FamilyResolutionError,
|
|
7567
7572
|
INTENT_ARCHETYPES,
|
|
7568
7573
|
LATENCY_TIER_MS,
|
|
7574
|
+
LIBRARY_VERSION,
|
|
7569
7575
|
MEASURED_GROUNDING_MIN_N,
|
|
7570
7576
|
PRODUCER_OWNED_RULE_CODES,
|
|
7571
7577
|
PROVIDER_ENV_KEYS,
|
package/dist/index.mjs
CHANGED
|
@@ -13,8 +13,9 @@ import {
|
|
|
13
13
|
learningKey
|
|
14
14
|
} from "./chunk-5TI6PNSK.mjs";
|
|
15
15
|
import {
|
|
16
|
+
LIBRARY_VERSION,
|
|
16
17
|
createKeyHealthRoute
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RQ3BUUB6.mjs";
|
|
18
19
|
import {
|
|
19
20
|
ABSOLUTE_FLOOR,
|
|
20
21
|
ARCHETYPE_FLOOR_DEFAULT,
|
|
@@ -4664,6 +4665,7 @@ export {
|
|
|
4664
4665
|
FamilyResolutionError,
|
|
4665
4666
|
INTENT_ARCHETYPES,
|
|
4666
4667
|
LATENCY_TIER_MS,
|
|
4668
|
+
LIBRARY_VERSION,
|
|
4667
4669
|
MEASURED_GROUNDING_MIN_N,
|
|
4668
4670
|
PRODUCER_OWNED_RULE_CODES,
|
|
4669
4671
|
PROVIDER_ENV_KEYS,
|
package/dist/key-health.d.mts
CHANGED
|
@@ -55,6 +55,10 @@
|
|
|
55
55
|
* 200 {
|
|
56
56
|
* app_id: string,
|
|
57
57
|
* checked_at: string, // ISO timestamp
|
|
58
|
+
* library_version: string, // installed @warmdrift/kgauto-compiler
|
|
59
|
+
* // version (alpha.60+) — the dashboard's
|
|
60
|
+
* // live vendor-drift signal; absent on
|
|
61
|
+
* // pre-alpha.60 mounts, render "—"
|
|
58
62
|
* keys: [ // sorted by provider name
|
|
59
63
|
* {
|
|
60
64
|
* provider: 'anthropic' | 'deepseek' | 'google' | 'openai',
|
|
@@ -102,6 +106,12 @@ interface KeyHealthResult {
|
|
|
102
106
|
interface KeyHealthResponseBody {
|
|
103
107
|
app_id: string;
|
|
104
108
|
checked_at: string;
|
|
109
|
+
/**
|
|
110
|
+
* alpha.60 — installed library version (`LIBRARY_VERSION`). Lets the
|
|
111
|
+
* operator dashboard render per-consumer vendor drift from the same poll
|
|
112
|
+
* it already makes; absent on pre-alpha.60 mounts.
|
|
113
|
+
*/
|
|
114
|
+
library_version: string;
|
|
105
115
|
keys: KeyHealthResult[];
|
|
106
116
|
}
|
|
107
117
|
interface KeyHealthRoute {
|
package/dist/key-health.d.ts
CHANGED
|
@@ -55,6 +55,10 @@
|
|
|
55
55
|
* 200 {
|
|
56
56
|
* app_id: string,
|
|
57
57
|
* checked_at: string, // ISO timestamp
|
|
58
|
+
* library_version: string, // installed @warmdrift/kgauto-compiler
|
|
59
|
+
* // version (alpha.60+) — the dashboard's
|
|
60
|
+
* // live vendor-drift signal; absent on
|
|
61
|
+
* // pre-alpha.60 mounts, render "—"
|
|
58
62
|
* keys: [ // sorted by provider name
|
|
59
63
|
* {
|
|
60
64
|
* provider: 'anthropic' | 'deepseek' | 'google' | 'openai',
|
|
@@ -102,6 +106,12 @@ interface KeyHealthResult {
|
|
|
102
106
|
interface KeyHealthResponseBody {
|
|
103
107
|
app_id: string;
|
|
104
108
|
checked_at: string;
|
|
109
|
+
/**
|
|
110
|
+
* alpha.60 — installed library version (`LIBRARY_VERSION`). Lets the
|
|
111
|
+
* operator dashboard render per-consumer vendor drift from the same poll
|
|
112
|
+
* it already makes; absent on pre-alpha.60 mounts.
|
|
113
|
+
*/
|
|
114
|
+
library_version: string;
|
|
105
115
|
keys: KeyHealthResult[];
|
|
106
116
|
}
|
|
107
117
|
interface KeyHealthRoute {
|
package/dist/key-health.js
CHANGED
|
@@ -23,6 +23,11 @@ __export(key_health_exports, {
|
|
|
23
23
|
createKeyHealthRoute: () => createKeyHealthRoute
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(key_health_exports);
|
|
26
|
+
|
|
27
|
+
// src/version.ts
|
|
28
|
+
var LIBRARY_VERSION = "2.0.0-alpha.60";
|
|
29
|
+
|
|
30
|
+
// src/key-health.ts
|
|
26
31
|
var JSON_HEADERS = { "Content-Type": "application/json" };
|
|
27
32
|
function jsonResponse(status, body) {
|
|
28
33
|
return new Response(JSON.stringify(body), { status, headers: JSON_HEADERS });
|
|
@@ -193,6 +198,7 @@ function createKeyHealthRoute(config) {
|
|
|
193
198
|
const body = {
|
|
194
199
|
app_id: appId,
|
|
195
200
|
checked_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
201
|
+
library_version: LIBRARY_VERSION,
|
|
196
202
|
keys
|
|
197
203
|
};
|
|
198
204
|
return jsonResponse(200, body);
|
package/dist/key-health.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmdrift/kgauto-compiler",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.60",
|
|
4
4
|
"description": "Prompt compiler + central learning brain for multi-model AI apps. Swap models without rewriting prompts.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|