@kya-os/checkpoint-express 1.1.2 → 1.1.3
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/CHANGELOG.md +11 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -1
- package/dist/index.mjs +5 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @kya-os/checkpoint-express
|
|
2
2
|
|
|
3
|
+
## 1.1.3 — 2026-05-18
|
|
4
|
+
|
|
5
|
+
Companion patch for `@kya-os/checkpoint-wasm-runtime@1.2.0`.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Session persistence and enforcement compatibility logic now consume
|
|
10
|
+
`VerifyResult.decision` plus `VerifyResult.detectionDetail`.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
3
14
|
## 1.1.2 — 2026-05-17
|
|
4
15
|
|
|
5
16
|
**Critical rebuild.** 1.1.1 shipped with `engineVerify` bundled inline
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Request, RequestHandler, Response, NextFunction } from 'express';
|
|
2
2
|
import { DidResolverAdapter, StatusListCacheAdapter, ReputationOracleAdapter, PolicyEvaluatorAdapter } from '@kya-os/checkpoint-wasm-runtime/adapters';
|
|
3
3
|
import { EnforcementMode, VerifyResult } from '@kya-os/checkpoint-wasm-runtime/engine';
|
|
4
|
-
import { DetectionResult, AgentShieldConfig } from '@kya-os/checkpoint-shared';
|
|
4
|
+
import { DetectionResult, AgentShieldConfig, DetectionDetail } from '@kya-os/checkpoint-shared';
|
|
5
5
|
export { DEFAULT_POLICY, ENFORCEMENT_ACTIONS, PolicyConfig, PolicyEvaluationContext, PolicyEvaluationResult, createEvaluationContext, evaluatePolicy } from '@kya-os/checkpoint-shared';
|
|
6
6
|
export { PolicyMiddlewareConfig, applyPolicy, createContextFromDetection, evaluatePolicyForDetection, getPolicy, handlePolicyDecision, sendBlockedResponse, sendRedirectResponse } from './policy.mjs';
|
|
7
7
|
|
|
@@ -230,7 +230,7 @@ declare class ExpressSessionTracker {
|
|
|
230
230
|
/**
|
|
231
231
|
* Track a new session in Express response
|
|
232
232
|
*/
|
|
233
|
-
track(res: Response, result:
|
|
233
|
+
track(res: Response, result: DetectionDetail): void;
|
|
234
234
|
/**
|
|
235
235
|
* Generate a simple ID without crypto dependency
|
|
236
236
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Request, RequestHandler, Response, NextFunction } from 'express';
|
|
2
2
|
import { DidResolverAdapter, StatusListCacheAdapter, ReputationOracleAdapter, PolicyEvaluatorAdapter } from '@kya-os/checkpoint-wasm-runtime/adapters';
|
|
3
3
|
import { EnforcementMode, VerifyResult } from '@kya-os/checkpoint-wasm-runtime/engine';
|
|
4
|
-
import { DetectionResult, AgentShieldConfig } from '@kya-os/checkpoint-shared';
|
|
4
|
+
import { DetectionResult, AgentShieldConfig, DetectionDetail } from '@kya-os/checkpoint-shared';
|
|
5
5
|
export { DEFAULT_POLICY, ENFORCEMENT_ACTIONS, PolicyConfig, PolicyEvaluationContext, PolicyEvaluationResult, createEvaluationContext, evaluatePolicy } from '@kya-os/checkpoint-shared';
|
|
6
6
|
export { PolicyMiddlewareConfig, applyPolicy, createContextFromDetection, evaluatePolicyForDetection, getPolicy, handlePolicyDecision, sendBlockedResponse, sendRedirectResponse } from './policy.js';
|
|
7
7
|
|
|
@@ -230,7 +230,7 @@ declare class ExpressSessionTracker {
|
|
|
230
230
|
/**
|
|
231
231
|
* Track a new session in Express response
|
|
232
232
|
*/
|
|
233
|
-
track(res: Response, result:
|
|
233
|
+
track(res: Response, result: DetectionDetail): void;
|
|
234
234
|
/**
|
|
235
235
|
* Generate a simple ID without crypto dependency
|
|
236
236
|
*/
|
package/dist/index.js
CHANGED
|
@@ -5369,7 +5369,10 @@ var ExpressSessionTracker = class {
|
|
|
5369
5369
|
*/
|
|
5370
5370
|
track(res, result) {
|
|
5371
5371
|
try {
|
|
5372
|
-
|
|
5372
|
+
const detectedName = result.detectedAgent?.name;
|
|
5373
|
+
if (!result.isAgent && !result.isAiCrawler && !checkpointShared.isKnownAiCrawler(detectedName)) {
|
|
5374
|
+
return;
|
|
5375
|
+
}
|
|
5373
5376
|
const session = {
|
|
5374
5377
|
id: this.generateId(),
|
|
5375
5378
|
agent: result.detectedAgent?.name || "unknown",
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import nodeCrypto from 'crypto';
|
|
2
2
|
import { verifyRequest, renderDecisionAsResponse } from '@kya-os/checkpoint-wasm-runtime/orchestrator';
|
|
3
3
|
import { makeSystemClock, makePolicyEvaluator, makeReputationOracle, makeStatusListCache, makeDidResolver } from '@kya-os/checkpoint-wasm-runtime/adapters';
|
|
4
|
-
import {
|
|
4
|
+
import { isKnownAiCrawler, acceptsHtml, encodeVerdictCookie, classifyResponseShape, BLOCKED_PATH, VERDICT_COOKIE_NAME } from '@kya-os/checkpoint-shared';
|
|
5
5
|
export { DEFAULT_POLICY, ENFORCEMENT_ACTIONS, createEvaluationContext, evaluatePolicy } from '@kya-os/checkpoint-shared';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -5364,7 +5364,10 @@ var ExpressSessionTracker = class {
|
|
|
5364
5364
|
*/
|
|
5365
5365
|
track(res, result) {
|
|
5366
5366
|
try {
|
|
5367
|
-
|
|
5367
|
+
const detectedName = result.detectedAgent?.name;
|
|
5368
|
+
if (!result.isAgent && !result.isAiCrawler && !isKnownAiCrawler(detectedName)) {
|
|
5369
|
+
return;
|
|
5370
|
+
}
|
|
5368
5371
|
const session = {
|
|
5369
5372
|
id: this.generateId(),
|
|
5370
5373
|
agent: result.detectedAgent?.name || "unknown",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/checkpoint-express",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Express.js middleware for Checkpoint — engine-backed AI agent detection and MCP-I verification",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"express",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": false,
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@kya-os/checkpoint": "1.
|
|
72
|
-
"@kya-os/checkpoint-
|
|
73
|
-
"@kya-os/checkpoint
|
|
71
|
+
"@kya-os/checkpoint-shared": "1.1.0",
|
|
72
|
+
"@kya-os/checkpoint-wasm-runtime": "^1.2.0",
|
|
73
|
+
"@kya-os/checkpoint": "1.0.1"
|
|
74
74
|
},
|
|
75
75
|
"optionalDependencies": {
|
|
76
76
|
"@upstash/redis": "^1.35.0"
|