oracular 0.8.0 → 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.0",
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",
@@ -87,6 +87,14 @@
87
87
  "engines": {
88
88
  "node": ">=18"
89
89
  },
90
+ "workspaces": [
91
+ ".",
92
+ "packages/*",
93
+ "examples/react-vite"
94
+ ],
95
+ "overrides": {
96
+ "@types/react": "^19.3.0"
97
+ },
90
98
  "scripts": {
91
99
  "build": "tsup && tsup --config tsup.presets.config.ts && tsup --config tsup.inspect.config.ts",
92
100
  "test": "vitest run",
@@ -97,23 +105,28 @@
97
105
  "smoke": "node scripts/smoke.cjs && node scripts/smoke.mjs && node scripts/smoke-cli.mjs",
98
106
  "size": "size-limit",
99
107
  "pack:check": "node scripts/pack-check.mjs",
100
- "check": "npm run lint && npm run typecheck && npm test && npm run build && npm run smoke && npm run size && npm run pack:check",
101
- "prepublishOnly": "npm run check",
108
+ "check:core": "npm run lint && npm run typecheck && npm test && npm run build && npm run smoke && npm run size && npm run pack:check",
109
+ "check": "npm run check:core && npm run check -w packages/react && npm run build -w examples/react-vite",
110
+ "prepublishOnly": "npm run check:core",
102
111
  "docs:api": "typedoc",
103
112
  "docs:dev": "npm run docs:api && vitepress dev docs",
104
113
  "docs:build": "npm run docs:api && vitepress build docs",
105
114
  "docs:preview": "vitepress preview docs",
115
+ "docs:gif": "node scripts/record-inspector.mjs",
106
116
  "changeset": "changeset",
117
+ "release:version": "changeset version && npm install --package-lock-only --ignore-scripts",
107
118
  "release": "node scripts/release.mjs"
108
119
  },
109
120
  "devDependencies": {
110
121
  "@arethetypeswrong/cli": "^0.18.5",
111
122
  "@biomejs/biome": "^2.5.15",
112
123
  "@changesets/changelog-github": "^1.0.1",
113
- "@changesets/cli": "^3.0.3",
124
+ "@changesets/cli": "3.0.3",
114
125
  "@size-limit/preset-small-lib": "^12.1.0",
115
126
  "@types/node": "^22.20.5",
116
127
  "fast-check": "^4.10.2",
128
+ "gifenc": "1.0.3",
129
+ "playwright-core": "1.64.1",
117
130
  "publint": "^0.3.25",
118
131
  "size-limit": "^12.1.0",
119
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
  }