@ixo/decision-oracle 0.2.16 → 0.2.18

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.
Files changed (57) hide show
  1. package/README.md +2 -1
  2. package/dist/config.d.ts +7 -0
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +6 -0
  5. package/dist/config.js.map +1 -1
  6. package/dist/cron/collection.d.ts +16 -3
  7. package/dist/cron/collection.d.ts.map +1 -1
  8. package/dist/cron/collection.js +22 -12
  9. package/dist/cron/collection.js.map +1 -1
  10. package/dist/cron/feed.d.ts +49 -0
  11. package/dist/cron/feed.d.ts.map +1 -0
  12. package/dist/cron/feed.js +159 -0
  13. package/dist/cron/feed.js.map +1 -0
  14. package/dist/cron/scan.d.ts.map +1 -1
  15. package/dist/cron/scan.js +21 -1
  16. package/dist/cron/scan.js.map +1 -1
  17. package/dist/db/schema.d.ts +51 -0
  18. package/dist/db/schema.d.ts.map +1 -1
  19. package/dist/db/schema.js +10 -0
  20. package/dist/db/schema.js.map +1 -1
  21. package/dist/env.d.ts +1 -0
  22. package/dist/env.d.ts.map +1 -1
  23. package/dist/lib/facts/stock/ai-check.d.ts +10 -1
  24. package/dist/lib/facts/stock/ai-check.d.ts.map +1 -1
  25. package/dist/lib/facts/stock/ai-check.js +12 -4
  26. package/dist/lib/facts/stock/ai-check.js.map +1 -1
  27. package/dist/lib/facts/stock/ai-provider.d.ts.map +1 -1
  28. package/dist/lib/facts/stock/ai-provider.js +2 -3
  29. package/dist/lib/facts/stock/ai-provider.js.map +1 -1
  30. package/dist/lib/ixo/blocksync/index.d.ts +12 -2
  31. package/dist/lib/ixo/blocksync/index.d.ts.map +1 -1
  32. package/dist/lib/ixo/blocksync/index.js +17 -2
  33. package/dist/lib/ixo/blocksync/index.js.map +1 -1
  34. package/dist/lib/ixo/blocksync/queries.d.ts +1 -0
  35. package/dist/lib/ixo/blocksync/queries.d.ts.map +1 -1
  36. package/dist/lib/ixo/blocksync/queries.js +16 -0
  37. package/dist/lib/ixo/blocksync/queries.js.map +1 -1
  38. package/dist/lib/ixo/blocksync/types.d.ts +8 -0
  39. package/dist/lib/ixo/blocksync/types.d.ts.map +1 -1
  40. package/dist/lib/ixo/blocksync/types.js +2 -0
  41. package/dist/lib/ixo/blocksync/types.js.map +1 -1
  42. package/dist/lib/openhands/routes.d.ts +6 -5
  43. package/dist/lib/openhands/routes.d.ts.map +1 -1
  44. package/dist/lib/openhands/routes.js +26 -13
  45. package/dist/lib/openhands/routes.js.map +1 -1
  46. package/dist/lib/openhands/store.d.ts +12 -1
  47. package/dist/lib/openhands/store.d.ts.map +1 -1
  48. package/dist/lib/openhands/store.js +20 -1
  49. package/dist/lib/openhands/store.js.map +1 -1
  50. package/docs/api.md +23 -8
  51. package/docs/guide.md +13 -1
  52. package/migrations/0027_cron_state.sql +4 -0
  53. package/migrations/meta/0027_snapshot.json +3007 -0
  54. package/migrations/meta/_journal.json +7 -0
  55. package/package.json +1 -1
  56. package/templates/project/.dev.vars.example +1 -0
  57. package/templates/project/wrangler.jsonc +4 -0
@@ -190,6 +190,13 @@
190
190
  "when": 1792581171066,
191
191
  "tag": "0026_reviewer_note",
192
192
  "breakpoints": true
193
+ },
194
+ {
195
+ "idx": 27,
196
+ "version": "6",
197
+ "when": 1792590348052,
198
+ "tag": "0027_cron_state",
199
+ "breakpoints": true
193
200
  }
194
201
  ]
195
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/decision-oracle",
3
- "version": "0.2.16",
3
+ "version": "0.2.18",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Run an IXO evaluation oracle: pull claims, produce facts with your handlers, let the decision engine decide, sign on chain",
6
6
  "keywords": [
@@ -35,6 +35,7 @@ OWNER_DELEGATION_CAR="uCAR..."
35
35
  # terminal has no binding, so it calls the gateway's REST endpoint with these two:
36
36
  # CLOUDFLARE_ACCOUNT_ID="..."
37
37
  # CLOUDFLARE_API_TOKEN="..." # Workers AI: Read
38
+ # AI_REASONING_EFFORT is a wrangler var ("low"); set it here to try "medium" / "high" locally.
38
39
  # Only with AI_PROVIDER=openrouter:
39
40
  # OPENROUTER_API_KEY="sk-or-..."
40
41
  # HMAC key for the duplicate-detection body digest (a rubric declaring `unique`). Keep it for the
@@ -182,6 +182,7 @@
182
182
  // test harness can't run one) — an AI fact here throws "AI binding not configured". To run AI
183
183
  // checks locally, add `"ai": { "binding": "AI" }` at this level, or use AI_PROVIDER=openrouter.
184
184
  "AI_PROVIDER": "cloudflare",
185
+ "AI_REASONING_EFFORT": "low", // low | medium | high — higher thinks more: slower, more tokens
185
186
  // "AI_AUDIO_VIDEO": "false", // audio/video inputs — OpenRouter only
186
187
  // "AI_GATEWAY_ID": "<your gateway>",
187
188
  "C2PA_IMAGE_CHECK": "true",
@@ -251,6 +252,7 @@
251
252
  // AI provider (README "Configuration"): the AI Gateway by default — the `ai` binding plus the
252
253
  // gateway's name; OpenRouter instead with AI_PROVIDER=openrouter + the OPENROUTER_API_KEY secret.
253
254
  "AI_PROVIDER": "cloudflare",
255
+ "AI_REASONING_EFFORT": "low", // low | medium | high — higher thinks more: slower, more tokens
254
256
  // "AI_AUDIO_VIDEO": "false", // audio/video inputs — OpenRouter only
255
257
  // "AI_GATEWAY_ID": "<your gateway>",
256
258
  "C2PA_IMAGE_CHECK": "true",
@@ -359,6 +361,7 @@
359
361
  // AI provider (README "Configuration"): the AI Gateway by default — the `ai` binding plus the
360
362
  // gateway's name; OpenRouter instead with AI_PROVIDER=openrouter + the OPENROUTER_API_KEY secret.
361
363
  "AI_PROVIDER": "cloudflare",
364
+ "AI_REASONING_EFFORT": "low", // low | medium | high — higher thinks more: slower, more tokens
362
365
  // "AI_AUDIO_VIDEO": "false", // audio/video inputs — OpenRouter only
363
366
  // "AI_GATEWAY_ID": "<your gateway>",
364
367
  "C2PA_IMAGE_CHECK": "true",
@@ -468,6 +471,7 @@
468
471
  // AI provider (README "Configuration"): the AI Gateway by default — the `ai` binding plus the
469
472
  // gateway's name; OpenRouter instead with AI_PROVIDER=openrouter + the OPENROUTER_API_KEY secret.
470
473
  "AI_PROVIDER": "cloudflare",
474
+ "AI_REASONING_EFFORT": "low", // low | medium | high — higher thinks more: slower, more tokens
471
475
  // "AI_AUDIO_VIDEO": "false", // audio/video inputs — OpenRouter only
472
476
  // "AI_GATEWAY_ID": "<your gateway>",
473
477
  "C2PA_IMAGE_CHECK": "true",