oracular 0.8.1 → 0.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oracular",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "On-device intent engine. Your app learns when the user is ready. Nothing leaves the device.",
5
5
  "keywords": [
6
6
  "oracular",
@@ -89,8 +89,12 @@
89
89
  },
90
90
  "workspaces": [
91
91
  ".",
92
- "packages/*"
92
+ "packages/*",
93
+ "examples/react-vite"
93
94
  ],
95
+ "overrides": {
96
+ "@types/react": "^19.3.0"
97
+ },
94
98
  "scripts": {
95
99
  "build": "tsup && tsup --config tsup.presets.config.ts && tsup --config tsup.inspect.config.ts",
96
100
  "test": "vitest run",
@@ -102,12 +106,13 @@
102
106
  "size": "size-limit",
103
107
  "pack:check": "node scripts/pack-check.mjs",
104
108
  "check:core": "npm run lint && npm run typecheck && npm test && npm run build && npm run smoke && npm run size && npm run pack:check",
105
- "check": "npm run check:core",
109
+ "check": "npm run check:core && npm run check -w packages/react && npm run build -w examples/react-vite",
106
110
  "prepublishOnly": "npm run check:core",
107
111
  "docs:api": "typedoc",
108
112
  "docs:dev": "npm run docs:api && vitepress dev docs",
109
113
  "docs:build": "npm run docs:api && vitepress build docs",
110
114
  "docs:preview": "vitepress preview docs",
115
+ "docs:gif": "node scripts/record-inspector.mjs",
111
116
  "changeset": "changeset",
112
117
  "release:version": "changeset version && npm install --package-lock-only --ignore-scripts",
113
118
  "release": "node scripts/release.mjs"
@@ -120,6 +125,8 @@
120
125
  "@size-limit/preset-small-lib": "^12.1.0",
121
126
  "@types/node": "^22.20.5",
122
127
  "fast-check": "^4.10.2",
128
+ "gifenc": "1.0.3",
129
+ "playwright-core": "1.64.1",
123
130
  "publint": "^0.3.25",
124
131
  "size-limit": "^12.1.0",
125
132
  "tsup": "^8.5.1",
@@ -138,11 +138,24 @@
138
138
  },
139
139
  "gain": {
140
140
  "$ref": "#/$defs/bounded",
141
- "description": "A perfectly predictive signal converges to gain × |initial weight|. Default 2."
141
+ "description": "Caps learned magnitude at gain × |initial weight| for every lift option. Default 2."
142
142
  },
143
143
  "priorEpisodes": {
144
144
  "$ref": "#/$defs/bounded",
145
145
  "description": "Pseudo-count behind the developer's initial weight: how many observed episodes it takes to weigh as much as the prior. Default 10."
146
+ },
147
+ "lift": {
148
+ "type": "string",
149
+ "enum": [
150
+ "absolute-difference",
151
+ "relative-lift",
152
+ "risk-ratio",
153
+ "log-lift",
154
+ "odds-ratio",
155
+ "normalized-difference",
156
+ "association-rule"
157
+ ],
158
+ "description": "Association measure, converted to an evidence score in [-1, 1], neutral at zero. Ratios use (R - 1)/(R + 1), relative/log lift use x/(1 + abs(x)), and absolute/normalized differences keep their scale. Default normalized-difference preserves existing behavior. Association-rule compares with the overall outcome rate."
146
159
  }
147
160
  }
148
161
  }