@ultimat3/ai 31.30.0 → 31.32.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": "@ultimat3/ai",
3
- "version": "31.30.0",
3
+ "version": "31.32.0",
4
4
  "description": "LLM gateway, versioned prompts, evals as tests, embeddings, hybrid vector search, RAG",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -45,17 +45,17 @@
45
45
  "test": "bun test"
46
46
  },
47
47
  "dependencies": {
48
- "@ultimat3/action": "31.30.0",
49
- "@ultimat3/cache": "31.30.0",
50
- "@ultimat3/core": "31.30.0",
51
- "@ultimat3/db": "31.30.0",
52
- "@ultimat3/http": "31.30.0",
53
- "@ultimat3/jobs": "31.30.0",
54
- "@ultimat3/money": "31.30.0",
55
- "@ultimat3/schema": "31.30.0",
56
- "@ultimat3/time": "31.30.0"
48
+ "@ultimat3/action": "31.32.0",
49
+ "@ultimat3/cache": "31.32.0",
50
+ "@ultimat3/core": "31.32.0",
51
+ "@ultimat3/db": "31.32.0",
52
+ "@ultimat3/http": "31.32.0",
53
+ "@ultimat3/jobs": "31.32.0",
54
+ "@ultimat3/money": "31.32.0",
55
+ "@ultimat3/schema": "31.32.0",
56
+ "@ultimat3/time": "31.32.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@ultimat3/policy": "31.30.0"
59
+ "@ultimat3/policy": "31.32.0"
60
60
  }
61
61
  }
package/src/errors.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // The error classes for @ultimat3/ai's core codes. Budget and threshold failures name the exact
2
2
  // knob to change, because the caller is often a CI job with no human attached.
3
3
 
4
- import { UltimateError } from '@ultimat3/core';
4
+ import { renderFixShellArg, UltimateError } from '@ultimat3/core';
5
5
  // The codes, their titles and the single registration call are `./error-codes`, imported here for
6
6
  // that side effect.
7
7
  import './error-codes';
@@ -360,7 +360,7 @@ export class AiKeyMissingError extends UltimateError {
360
360
  super({
361
361
  code: 'X_AI_KEY_MISSING',
362
362
  cause: `provider "${input.provider}" has no API key: ${input.envVar} is unset and none was passed to its constructor`,
363
- fix: `export ${input.envVar}=<key>, or pass { apiKey } when constructing the provider`,
363
+ fix: `export ${renderFixShellArg(input.envVar, '<API_KEY_VAR>')}=<key>, or pass { apiKey } when constructing the provider`,
364
364
  meta: { provider: input.provider, envVar: input.envVar },
365
365
  });
366
366
  }
@@ -2,7 +2,7 @@
2
2
  // outgrew its ceiling. The codes themselves, their titles and the single `registerErrorCodes` call
3
3
  // stay in ./error-codes — one owner, one registration, one place a duplicate can surface.
4
4
 
5
- import { UltimateError } from '@ultimat3/core';
5
+ import { renderFixShellArg, UltimateError } from '@ultimat3/core';
6
6
 
7
7
  // No `docs:` on the subclasses below. `UltimateError` fills it from `describeErrorCode(code).docs`,
8
8
  // which is `@ultimat3/core`'s `ERROR_DOCS_URL` — one page for every code, never one per code, because
@@ -36,7 +36,7 @@ export class EvalThresholdError extends UltimateError {
36
36
  // `x test eval --filter <name>`, never `x test <name>`: `x test`'s positional is a TestType,
37
37
  // so the eval's own name there is `X_CLI_BAD_FLAG` ("not a test type") — a fix line that
38
38
  // cannot be run is axiom 4 broken at the one moment it is needed.
39
- fix: `x test eval --filter ${input.eval} to see per-case scores, then fix the prompt — or ULTIMATE_EVAL_RECORD=1 x test eval to accept the new numbers as a reviewed diff`,
39
+ fix: `x test eval --filter ${renderFixShellArg(input.eval, '<eval>')} to see per-case scores, then fix the prompt — or ULTIMATE_EVAL_RECORD=1 x test eval to accept the new numbers as a reviewed diff`,
40
40
  });
41
41
  }
42
42
  }