@ik-firewall/core 2.3.4 → 2.3.6
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.cjs +9 -2
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1496,6 +1496,7 @@ var UsageTracker = class {
|
|
|
1496
1496
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1497
1497
|
is_local: model === "local",
|
|
1498
1498
|
cq_score: params.cqScore,
|
|
1499
|
+
iq_score: params.iqScore,
|
|
1499
1500
|
clientOrigin: params.clientOrigin,
|
|
1500
1501
|
trace: params.trace
|
|
1501
1502
|
});
|
|
@@ -1982,6 +1983,9 @@ var IKFirewallCore = class _IKFirewallCore {
|
|
|
1982
1983
|
gatekeeperFlag: "LOCAL_HEURISTIC_SKIP",
|
|
1983
1984
|
semanticProof: 1,
|
|
1984
1985
|
cognitiveKinetic: 0.8,
|
|
1986
|
+
cqScore: Math.min(10, dm * 6 + ei * 4),
|
|
1987
|
+
requiredIQTier: dm > 2 ? "TIER_2" : "TIER_1",
|
|
1988
|
+
routingPath: "HEURISTIC_LOCAL",
|
|
1985
1989
|
toneVector: {
|
|
1986
1990
|
abstraction: _IKFirewallCore.CONSTANTS.TONE.STABLE_VAL,
|
|
1987
1991
|
directness: _IKFirewallCore.CONSTANTS.TONE.STABLE_VAL,
|
|
@@ -2078,8 +2082,8 @@ var IKFirewallCore = class _IKFirewallCore {
|
|
|
2078
2082
|
redundancyRatio,
|
|
2079
2083
|
gatekeeperFlag,
|
|
2080
2084
|
rawAuditResponse: response.content,
|
|
2081
|
-
requiredIQTier: insights.required_iq_tier || "TIER_1",
|
|
2082
|
-
routingReason: insights.routing_reason || "Standard load analysis.",
|
|
2085
|
+
requiredIQTier: insights.required_iq_tier || insights.requiredIQTier || "TIER_1",
|
|
2086
|
+
routingReason: insights.routing_reason || insights.routingReason || "Standard load analysis.",
|
|
2083
2087
|
archetype: insights.archetype || "DYNAMIC",
|
|
2084
2088
|
ambiguityTolerance: insights.ambiguity_tolerance || 0.5,
|
|
2085
2089
|
logicalFocus: insights.logicalFocus,
|
|
@@ -2159,6 +2163,9 @@ Any action outside this scope MUST be rejected and flagged as a boundary violati
|
|
|
2159
2163
|
"toneVector": { "abstraction": 0.1, "directness": 0.1, "density": 0.1 },
|
|
2160
2164
|
"kft": "number 1-10",
|
|
2161
2165
|
"opt": "number 1-10",
|
|
2166
|
+
"required_iq_tier": "TIER_1" | "TIER_2" | "TIER_3",
|
|
2167
|
+
"cqScore": 0.0-10.0,
|
|
2168
|
+
"routing_reason": "string",
|
|
2162
2169
|
"approach": { "category": "REFLECTIVE" | "NARRATIVE" | "PROBLEM_ORIENTED" | "DIRECTIVE" | "ARGUMENTATIVE" | "DIALOGICAL", "subtype": "string" },
|
|
2163
2170
|
"logicalFocus": "string",
|
|
2164
2171
|
"detectedLanguage": "string"
|
package/dist/index.d.cts
CHANGED
|
@@ -162,6 +162,7 @@ interface UsageData {
|
|
|
162
162
|
timestamp: string;
|
|
163
163
|
is_local: boolean;
|
|
164
164
|
cq_score: number;
|
|
165
|
+
iq_score: number;
|
|
165
166
|
clientOrigin?: string;
|
|
166
167
|
trace?: any;
|
|
167
168
|
}
|
|
@@ -371,6 +372,7 @@ declare class IKFirewallCore {
|
|
|
371
372
|
outputTokens: number;
|
|
372
373
|
optimizedTokens?: number;
|
|
373
374
|
cqScore: number;
|
|
375
|
+
iqScore: number;
|
|
374
376
|
routingPath: string;
|
|
375
377
|
clientOrigin?: string;
|
|
376
378
|
trace?: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ interface UsageData {
|
|
|
162
162
|
timestamp: string;
|
|
163
163
|
is_local: boolean;
|
|
164
164
|
cq_score: number;
|
|
165
|
+
iq_score: number;
|
|
165
166
|
clientOrigin?: string;
|
|
166
167
|
trace?: any;
|
|
167
168
|
}
|
|
@@ -371,6 +372,7 @@ declare class IKFirewallCore {
|
|
|
371
372
|
outputTokens: number;
|
|
372
373
|
optimizedTokens?: number;
|
|
373
374
|
cqScore: number;
|
|
375
|
+
iqScore: number;
|
|
374
376
|
routingPath: string;
|
|
375
377
|
clientOrigin?: string;
|
|
376
378
|
trace?: any;
|
package/dist/index.js
CHANGED
|
@@ -1454,6 +1454,7 @@ var UsageTracker = class {
|
|
|
1454
1454
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1455
1455
|
is_local: model === "local",
|
|
1456
1456
|
cq_score: params.cqScore,
|
|
1457
|
+
iq_score: params.iqScore,
|
|
1457
1458
|
clientOrigin: params.clientOrigin,
|
|
1458
1459
|
trace: params.trace
|
|
1459
1460
|
});
|
|
@@ -1940,6 +1941,9 @@ var IKFirewallCore = class _IKFirewallCore {
|
|
|
1940
1941
|
gatekeeperFlag: "LOCAL_HEURISTIC_SKIP",
|
|
1941
1942
|
semanticProof: 1,
|
|
1942
1943
|
cognitiveKinetic: 0.8,
|
|
1944
|
+
cqScore: Math.min(10, dm * 6 + ei * 4),
|
|
1945
|
+
requiredIQTier: dm > 2 ? "TIER_2" : "TIER_1",
|
|
1946
|
+
routingPath: "HEURISTIC_LOCAL",
|
|
1943
1947
|
toneVector: {
|
|
1944
1948
|
abstraction: _IKFirewallCore.CONSTANTS.TONE.STABLE_VAL,
|
|
1945
1949
|
directness: _IKFirewallCore.CONSTANTS.TONE.STABLE_VAL,
|
|
@@ -2036,8 +2040,8 @@ var IKFirewallCore = class _IKFirewallCore {
|
|
|
2036
2040
|
redundancyRatio,
|
|
2037
2041
|
gatekeeperFlag,
|
|
2038
2042
|
rawAuditResponse: response.content,
|
|
2039
|
-
requiredIQTier: insights.required_iq_tier || "TIER_1",
|
|
2040
|
-
routingReason: insights.routing_reason || "Standard load analysis.",
|
|
2043
|
+
requiredIQTier: insights.required_iq_tier || insights.requiredIQTier || "TIER_1",
|
|
2044
|
+
routingReason: insights.routing_reason || insights.routingReason || "Standard load analysis.",
|
|
2041
2045
|
archetype: insights.archetype || "DYNAMIC",
|
|
2042
2046
|
ambiguityTolerance: insights.ambiguity_tolerance || 0.5,
|
|
2043
2047
|
logicalFocus: insights.logicalFocus,
|
|
@@ -2117,6 +2121,9 @@ Any action outside this scope MUST be rejected and flagged as a boundary violati
|
|
|
2117
2121
|
"toneVector": { "abstraction": 0.1, "directness": 0.1, "density": 0.1 },
|
|
2118
2122
|
"kft": "number 1-10",
|
|
2119
2123
|
"opt": "number 1-10",
|
|
2124
|
+
"required_iq_tier": "TIER_1" | "TIER_2" | "TIER_3",
|
|
2125
|
+
"cqScore": 0.0-10.0,
|
|
2126
|
+
"routing_reason": "string",
|
|
2120
2127
|
"approach": { "category": "REFLECTIVE" | "NARRATIVE" | "PROBLEM_ORIENTED" | "DIRECTIVE" | "ARGUMENTATIVE" | "DIALOGICAL", "subtype": "string" },
|
|
2121
2128
|
"logicalFocus": "string",
|
|
2122
2129
|
"detectedLanguage": "string"
|