@principles/core 1.278.12 → 1.278.14
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.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime-v2/__tests__/architecture-regression.test.js +1 -17
- package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js +1 -1
- package/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/dist/runtime-v2/index.d.ts +0 -5
- package/dist/runtime-v2/index.d.ts.map +1 -1
- package/dist/runtime-v2/index.js +0 -4
- package/dist/runtime-v2/index.js.map +1 -1
- package/dist/runtime-v2/types/index.d.ts +0 -2
- package/dist/runtime-v2/types/index.d.ts.map +1 -1
- package/dist/runtime-v2/types/index.js +0 -1
- package/dist/runtime-v2/types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/runtime-v2/runtime-selector.d.ts +0 -77
- package/dist/runtime-v2/runtime-selector.d.ts.map +0 -1
- package/dist/runtime-v2/runtime-selector.js +0 -23
- package/dist/runtime-v2/runtime-selector.js.map +0 -1
- package/dist/runtime-v2/types/runtime-summary-types.d.ts +0 -93
- package/dist/runtime-v2/types/runtime-summary-types.d.ts.map +0 -1
- package/dist/runtime-v2/types/runtime-summary-types.js +0 -35
- package/dist/runtime-v2/types/runtime-summary-types.js.map +0 -1
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { type Static } from '@sinclair/typebox';
|
|
2
|
-
/**
|
|
3
|
-
* Runtime truth represents the current state of the system.
|
|
4
|
-
* Used for control decisions, Phase 3 eligibility, and real-time operations.
|
|
5
|
-
* Sources: queue state, active session registry
|
|
6
|
-
*/
|
|
7
|
-
export interface RuntimeTruth {
|
|
8
|
-
queueState: {
|
|
9
|
-
total: number;
|
|
10
|
-
pending: number;
|
|
11
|
-
inProgress: number;
|
|
12
|
-
completed: number;
|
|
13
|
-
lastUpdated: string;
|
|
14
|
-
};
|
|
15
|
-
activeSessions: string[];
|
|
16
|
-
}
|
|
17
|
-
export declare const RuntimeTruthSchema: import("@sinclair/typebox").TObject<{
|
|
18
|
-
queueState: import("@sinclair/typebox").TObject<{
|
|
19
|
-
total: import("@sinclair/typebox").TNumber;
|
|
20
|
-
pending: import("@sinclair/typebox").TNumber;
|
|
21
|
-
inProgress: import("@sinclair/typebox").TNumber;
|
|
22
|
-
completed: import("@sinclair/typebox").TNumber;
|
|
23
|
-
lastUpdated: import("@sinclair/typebox").TString;
|
|
24
|
-
}>;
|
|
25
|
-
activeSessions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
26
|
-
}>;
|
|
27
|
-
export type RuntimeTruthStatic = Static<typeof RuntimeTruthSchema>;
|
|
28
|
-
/**
|
|
29
|
-
* Trend metrics for analytics aggregation.
|
|
30
|
-
*/
|
|
31
|
-
export interface TrendMetrics {
|
|
32
|
-
successRateChange: number;
|
|
33
|
-
toolCallVolumeChange: number;
|
|
34
|
-
painSignalRateChange: number;
|
|
35
|
-
}
|
|
36
|
-
export declare const TrendMetricsSchema: import("@sinclair/typebox").TObject<{
|
|
37
|
-
successRateChange: import("@sinclair/typebox").TNumber;
|
|
38
|
-
toolCallVolumeChange: import("@sinclair/typebox").TNumber;
|
|
39
|
-
painSignalRateChange: import("@sinclair/typebox").TNumber;
|
|
40
|
-
}>;
|
|
41
|
-
export type TrendMetricsStatic = Static<typeof TrendMetricsSchema>;
|
|
42
|
-
/**
|
|
43
|
-
* Analytics truth represents historical data and aggregated metrics.
|
|
44
|
-
* Used for insights, trends, and supporting evidence (where explicitly allowed).
|
|
45
|
-
* NOT used for control decisions or Phase 3 eligibility.
|
|
46
|
-
* Sources: trajectory.db, daily-stats.json, control-ui DB
|
|
47
|
-
*/
|
|
48
|
-
export interface AnalyticsTruth {
|
|
49
|
-
trajectoryData: {
|
|
50
|
-
totalTasks: number;
|
|
51
|
-
successRate: number;
|
|
52
|
-
timeoutRate: number;
|
|
53
|
-
lastUpdated: string;
|
|
54
|
-
};
|
|
55
|
-
dailyStats: {
|
|
56
|
-
toolCalls: number;
|
|
57
|
-
painSignals: number;
|
|
58
|
-
evolutionTasks: number;
|
|
59
|
-
lastUpdated: string;
|
|
60
|
-
};
|
|
61
|
-
trends: {
|
|
62
|
-
sevenDay: TrendMetrics;
|
|
63
|
-
thirtyDay: TrendMetrics;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export declare const AnalyticsTruthSchema: import("@sinclair/typebox").TObject<{
|
|
67
|
-
trajectoryData: import("@sinclair/typebox").TObject<{
|
|
68
|
-
totalTasks: import("@sinclair/typebox").TNumber;
|
|
69
|
-
successRate: import("@sinclair/typebox").TNumber;
|
|
70
|
-
timeoutRate: import("@sinclair/typebox").TNumber;
|
|
71
|
-
lastUpdated: import("@sinclair/typebox").TString;
|
|
72
|
-
}>;
|
|
73
|
-
dailyStats: import("@sinclair/typebox").TObject<{
|
|
74
|
-
toolCalls: import("@sinclair/typebox").TNumber;
|
|
75
|
-
painSignals: import("@sinclair/typebox").TNumber;
|
|
76
|
-
evolutionTasks: import("@sinclair/typebox").TNumber;
|
|
77
|
-
lastUpdated: import("@sinclair/typebox").TString;
|
|
78
|
-
}>;
|
|
79
|
-
trends: import("@sinclair/typebox").TObject<{
|
|
80
|
-
sevenDay: import("@sinclair/typebox").TObject<{
|
|
81
|
-
successRateChange: import("@sinclair/typebox").TNumber;
|
|
82
|
-
toolCallVolumeChange: import("@sinclair/typebox").TNumber;
|
|
83
|
-
painSignalRateChange: import("@sinclair/typebox").TNumber;
|
|
84
|
-
}>;
|
|
85
|
-
thirtyDay: import("@sinclair/typebox").TObject<{
|
|
86
|
-
successRateChange: import("@sinclair/typebox").TNumber;
|
|
87
|
-
toolCallVolumeChange: import("@sinclair/typebox").TNumber;
|
|
88
|
-
painSignalRateChange: import("@sinclair/typebox").TNumber;
|
|
89
|
-
}>;
|
|
90
|
-
}>;
|
|
91
|
-
}>;
|
|
92
|
-
export type AnalyticsTruthStatic = Static<typeof AnalyticsTruthSchema>;
|
|
93
|
-
//# sourceMappingURL=runtime-summary-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-summary-types.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/types/runtime-summary-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;EAS7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB;;;;EAI7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE;QACd,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,EAAE;QACN,QAAQ,EAAE,YAAY,CAAC;QACvB,SAAS,EAAE,YAAY,CAAC;KACzB,CAAC;CACH;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;EAiB/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Type } from '@sinclair/typebox';
|
|
2
|
-
export const RuntimeTruthSchema = Type.Object({
|
|
3
|
-
queueState: Type.Object({
|
|
4
|
-
total: Type.Number(),
|
|
5
|
-
pending: Type.Number(),
|
|
6
|
-
inProgress: Type.Number(),
|
|
7
|
-
completed: Type.Number(),
|
|
8
|
-
lastUpdated: Type.String(),
|
|
9
|
-
}),
|
|
10
|
-
activeSessions: Type.Array(Type.String()),
|
|
11
|
-
});
|
|
12
|
-
export const TrendMetricsSchema = Type.Object({
|
|
13
|
-
successRateChange: Type.Number(),
|
|
14
|
-
toolCallVolumeChange: Type.Number(),
|
|
15
|
-
painSignalRateChange: Type.Number(),
|
|
16
|
-
});
|
|
17
|
-
export const AnalyticsTruthSchema = Type.Object({
|
|
18
|
-
trajectoryData: Type.Object({
|
|
19
|
-
totalTasks: Type.Number(),
|
|
20
|
-
successRate: Type.Number(),
|
|
21
|
-
timeoutRate: Type.Number(),
|
|
22
|
-
lastUpdated: Type.String(),
|
|
23
|
-
}),
|
|
24
|
-
dailyStats: Type.Object({
|
|
25
|
-
toolCalls: Type.Number(),
|
|
26
|
-
painSignals: Type.Number(),
|
|
27
|
-
evolutionTasks: Type.Number(),
|
|
28
|
-
lastUpdated: Type.String(),
|
|
29
|
-
}),
|
|
30
|
-
trends: Type.Object({
|
|
31
|
-
sevenDay: TrendMetricsSchema,
|
|
32
|
-
thirtyDay: TrendMetricsSchema,
|
|
33
|
-
}),
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=runtime-summary-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-summary-types.js","sourceRoot":"","sources":["../../../src/runtime-v2/types/runtime-summary-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AAkBtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;QACpB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;QACzB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;KAC3B,CAAC;IACF,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;CAC1C,CAAC,CAAC;AAYH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5C,iBAAiB,EAAE,IAAI,CAAC,MAAM,EAAE;IAChC,oBAAoB,EAAE,IAAI,CAAC,MAAM,EAAE;IACnC,oBAAoB,EAAE,IAAI,CAAC,MAAM,EAAE;CACpC,CAAC,CAAC;AA4BH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC9C,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC;QAC1B,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;QACzB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;KAC3B,CAAC;IACF,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;QACtB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;QAC1B,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE;QAC7B,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE;KAC3B,CAAC;IACF,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,kBAAkB;KAC9B,CAAC;CACH,CAAC,CAAC"}
|