@corbits/system-one 0.3.1 → 0.3.2

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/README.md CHANGED
@@ -18,6 +18,16 @@ bun add @corbits/system-one @intx/inference@^0.4.0 @intx/types@^0.4.0
18
18
 
19
19
  Runs on Bun >= 1.2 or Node >= 24.
20
20
 
21
+ To consume an exact Git commit before it is published, enable the package's
22
+ source condition because Git dependencies do not run `prepack`:
23
+
24
+ ```bash
25
+ bun add github:corbitsdev/corbits-system-one#<commit>
26
+ bun --conditions=corbits-system-one-src your-script.ts
27
+ ```
28
+
29
+ Published consumers continue to use the built `dist` entry by default.
30
+
21
31
  ## Quickstart
22
32
 
23
33
  Needs `TYPESAFE_API_KEY` set.
package/dist/evaluate.js CHANGED
@@ -195,7 +195,8 @@ function envKey(name) {
195
195
  */
196
196
  export async function evaluate(input, options) {
197
197
  const deps = options?.deps ?? {
198
- fetch: globalThis.fetch,
198
+ // Browsers reject fetch called as a method of another object.
199
+ fetch: (input, init) => fetch(input, init),
199
200
  scheduler: createDefaultScheduler(),
200
201
  };
201
202
  const start = deps.scheduler.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corbits/system-one",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Typed-decision evaluation client for System One (Jev-class) models: arktype question/decision schemas, endpoint configuration with gateway override, and timeout/fallback semantics.",
5
5
  "keywords": [
6
6
  "corbits",
@@ -29,6 +29,7 @@
29
29
  "sideEffects": false,
30
30
  "exports": {
31
31
  ".": {
32
+ "corbits-system-one-src": "./src/index.ts",
32
33
  "types": "./dist/index.d.ts",
33
34
  "default": "./dist/index.js"
34
35
  }
@@ -51,17 +52,17 @@
51
52
  "arktype": "2.2.3"
52
53
  },
53
54
  "devDependencies": {
54
- "@intx/inference": "0.4.0",
55
- "@intx/inference-testing": "0.4.0",
56
- "@intx/types": "0.4.0",
55
+ "@intx/inference": "0.5.0",
56
+ "@intx/inference-testing": "0.5.0",
57
+ "@intx/types": "0.5.0",
57
58
  "@types/bun": "1.3.14",
58
59
  "oxfmt": "0.70.0",
59
60
  "oxlint": "1.85.0",
60
61
  "typescript": "6.0.3"
61
62
  },
62
63
  "peerDependencies": {
63
- "@intx/inference": "^0.4.0",
64
- "@intx/types": "^0.4.0"
64
+ "@intx/inference": "^0.5.0",
65
+ "@intx/types": "^0.5.0"
65
66
  },
66
67
  "engines": {
67
68
  "bun": ">=1.2.0",