@passiveintent/core 1.0.0 → 1.1.1

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.
@@ -33,6 +33,7 @@ export { SignalEngine } from './engine/signal-engine.js';
33
33
  export { EventEmitter } from './engine/event-emitter.js';
34
34
  export { DriftProtectionPolicy } from './engine/policies/drift-protection-policy.js';
35
35
  export { BenchmarkRecorder } from './performance-instrumentation.js';
36
+ export { PropensityCalculator } from './engine/propensity-calculator.js';
36
37
  export type { AnomalyDispatcherConfig, AnomalyEventEmitter, DriftProtectionPolicyLike, } from './engine/anomaly-dispatcher.js';
37
38
  export type { AnomalyDecision, EntropyDecision, TrajectoryDecision, DwellDecision, } from './engine/anomaly-decisions.js';
38
39
  export type { SignalEngineConfig } from './engine/signal-engine.js';
@@ -1 +1 @@
1
- {"version":3,"file":"intent-sdk.d.ts","sourceRoot":"","sources":["../src/intent-sdk.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;GASG;AAEH,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,qBAAqB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YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,99 +1,99 @@
1
- {
2
- "name": "@passiveintent/core",
3
- "version": "1.0.0",
4
- "description": "Privacy-first, SSR-safe intent detection engine using local Markov-chain inference and Bloom filters.",
5
- "keywords": [
6
- "intent",
7
- "analytics",
8
- "privacy",
9
- "markov-chain",
10
- "churn-prevention",
11
- "zero-egress",
12
- "gdpr",
13
- "bloom-filter",
14
- "edge-computing",
15
- "behavioral-analytics"
16
- ],
17
- "author": "Purushottam <purushottam@passiveintent.dev> (https://github.com/purushpsm147)",
18
- "license": "AGPL-3.0-only",
19
- "repository": {
20
- "type": "git",
21
- "url": "https://github.com/passiveintent/core.git",
22
- "directory": "packages/core"
23
- },
24
- "homepage": "https://github.com/passiveintent/core#readme",
25
- "engines": {
26
- "node": ">=20"
27
- },
28
- "type": "module",
29
- "main": "./dist/index.cjs",
30
- "module": "./dist/index.js",
31
- "types": "./dist/index.d.ts",
32
- "exports": {
33
- ".": {
34
- "import": {
35
- "types": "./dist/index.d.ts",
36
- "default": "./dist/index.js"
37
- },
38
- "require": {
39
- "types": "./dist/index.d.ts",
40
- "default": "./dist/index.cjs"
41
- }
42
- },
43
- "./calibration": {
44
- "import": {
45
- "types": "./dist/calibration.d.ts",
46
- "default": "./dist/calibration.js"
47
- },
48
- "require": {
49
- "types": "./dist/calibration.d.ts",
50
- "default": "./dist/calibration.cjs"
51
- }
52
- }
53
- },
54
- "files": [
55
- "dist/*.js",
56
- "dist/*.js.map",
57
- "dist/*.cjs",
58
- "dist/*.cjs.map",
59
- "dist/*.d.ts",
60
- "dist/*.d.ts.map"
61
- ],
62
- "sideEffects": false,
63
- "scripts": {
64
- "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
65
- "build": "npm run clean && npm run build:js && npm run build:types",
66
- "build:js": "tsup",
67
- "build:types": "tsc --project tsconfig.types.json",
68
- "build:tsc": "tsc --project tsconfig.json --declaration --sourceMap",
69
- "release:pack": "npm run build && npm pack",
70
- "release": "npm publish",
71
- "test": "npm run test:unit",
72
- "test:unit": "npm run build:tsc && node --test tests/*.test.mjs",
73
- "test:coverage": "npm run build:tsc && c8 node --test tests/*.test.mjs",
74
- "test:perf:run": "npm run build:tsc && node scripts/perf-runner.mjs",
75
- "test:perf:assert": "node scripts/perf-regression.mjs",
76
- "test:perf:matrix": "npm run build:tsc && node scripts/scenario-matrix.mjs --check-golden",
77
- "test:perf:roc": "npm run build:tsc && node scripts/roc-experiment.mjs",
78
- "bench:smoothing": "npm run build:tsc && node --test scripts/smoothing-alpha-benchmark.mjs",
79
- "test:perf": "npm run test:perf:run && npm run test:perf:assert && npm run test:perf:matrix",
80
- "test:perf:all": "npm run test:perf && npm run test:perf:roc",
81
- "test:perf:update-baseline": "npm run build:tsc && node scripts/perf-runner.mjs --update-baseline",
82
- "test:perf:update-matrix-golden": "npm run build:tsc && node scripts/scenario-matrix.mjs --update-golden",
83
- "build:sandbox": "tsc --project tsconfig.sandbox.json",
84
- "test:e2e": "npm run build:tsc && npm run build:sandbox && cypress run",
85
- "test:e2e:headed": "npm run build:tsc && npm run build:sandbox && cypress run --headed --browser chrome",
86
- "prepublishOnly": "npm run build",
87
- "typecheck": "tsc --project tsconfig.json --noEmit",
88
- "lint": "npm run typecheck",
89
- "test:ci": "npm run lint && npm run build && npm run test:unit && npm run test:perf:assert",
90
- "verify:package": "npm run build && node scripts/verify-package.mjs"
91
- },
92
- "devDependencies": {
93
- "c8": "^10.1.3"
94
- },
95
- "publishConfig": {
96
- "access": "public",
97
- "registry": "https://registry.npmjs.org/"
98
- }
99
- }
1
+ {
2
+ "name": "@passiveintent/core",
3
+ "version": "1.1.1",
4
+ "description": "Privacy-first, SSR-safe intent detection engine using local Markov-chain inference and Bloom filters.",
5
+ "keywords": [
6
+ "intent",
7
+ "analytics",
8
+ "privacy",
9
+ "markov-chain",
10
+ "churn-prevention",
11
+ "zero-egress",
12
+ "gdpr",
13
+ "bloom-filter",
14
+ "edge-computing",
15
+ "behavioral-analytics"
16
+ ],
17
+ "author": "Purushottam <purushottam@passiveintent.dev> (https://github.com/passiveintent)",
18
+ "license": "AGPL-3.0-only",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/passiveintent/core.git",
22
+ "directory": "packages/core"
23
+ },
24
+ "homepage": "https://passiveintent.dev",
25
+ "engines": {
26
+ "node": ">=20"
27
+ },
28
+ "type": "module",
29
+ "main": "./dist/index.cjs",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "import": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/index.d.ts",
40
+ "default": "./dist/index.cjs"
41
+ }
42
+ },
43
+ "./calibration": {
44
+ "import": {
45
+ "types": "./dist/calibration.d.ts",
46
+ "default": "./dist/calibration.js"
47
+ },
48
+ "require": {
49
+ "types": "./dist/calibration.d.ts",
50
+ "default": "./dist/calibration.cjs"
51
+ }
52
+ }
53
+ },
54
+ "files": [
55
+ "dist/*.js",
56
+ "dist/*.js.map",
57
+ "dist/*.cjs",
58
+ "dist/*.cjs.map",
59
+ "dist/*.d.ts",
60
+ "dist/*.d.ts.map"
61
+ ],
62
+ "sideEffects": false,
63
+ "scripts": {
64
+ "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
65
+ "build": "npm run clean && npm run build:js && npm run build:types",
66
+ "build:js": "tsup",
67
+ "build:types": "tsc --project tsconfig.types.json",
68
+ "build:tsc": "tsc --project tsconfig.json --declaration --sourceMap",
69
+ "release:pack": "npm run build && npm pack",
70
+ "release": "npm publish",
71
+ "test": "npm run test:unit",
72
+ "test:unit": "npm run build:tsc && node --test tests/*.test.mjs",
73
+ "test:coverage": "npm run build:tsc && c8 node --test tests/*.test.mjs",
74
+ "test:perf:run": "npm run build:tsc && node scripts/perf-runner.mjs",
75
+ "test:perf:assert": "node scripts/perf-regression.mjs",
76
+ "test:perf:matrix": "npm run build:tsc && node scripts/scenario-matrix.mjs --check-golden",
77
+ "test:perf:roc": "npm run build:tsc && node scripts/roc-experiment.mjs",
78
+ "bench:smoothing": "npm run build:tsc && node --test scripts/smoothing-alpha-benchmark.mjs",
79
+ "test:perf": "npm run test:perf:run && npm run test:perf:assert && npm run test:perf:matrix",
80
+ "test:perf:all": "npm run test:perf && npm run test:perf:roc",
81
+ "test:perf:update-baseline": "npm run build:tsc && node scripts/perf-runner.mjs --update-baseline",
82
+ "test:perf:update-matrix-golden": "npm run build:tsc && node scripts/scenario-matrix.mjs --update-golden",
83
+ "build:sandbox": "tsc --project tsconfig.sandbox.json",
84
+ "test:e2e": "npm run build:tsc && npm run build:sandbox && cypress run",
85
+ "test:e2e:headed": "npm run build:tsc && npm run build:sandbox && cypress run --headed --browser chrome",
86
+ "prepublishOnly": "npm run build",
87
+ "typecheck": "tsc --project tsconfig.json --noEmit",
88
+ "lint": "npm run typecheck",
89
+ "test:ci": "npm run lint && npm run build && npm run test:unit && npm run test:perf:assert",
90
+ "verify:package": "npm run build && node scripts/verify-package.mjs"
91
+ },
92
+ "devDependencies": {
93
+ "c8": "^10.1.3"
94
+ },
95
+ "publishConfig": {
96
+ "access": "public",
97
+ "registry": "https://registry.npmjs.org/"
98
+ }
99
+ }