@ultimat3/ai 31.32.0 → 31.33.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.32.0",
3
+ "version": "31.33.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.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"
48
+ "@ultimat3/action": "31.33.0",
49
+ "@ultimat3/cache": "31.33.0",
50
+ "@ultimat3/core": "31.33.0",
51
+ "@ultimat3/db": "31.33.0",
52
+ "@ultimat3/http": "31.33.0",
53
+ "@ultimat3/jobs": "31.33.0",
54
+ "@ultimat3/money": "31.33.0",
55
+ "@ultimat3/schema": "31.33.0",
56
+ "@ultimat3/time": "31.33.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@ultimat3/policy": "31.32.0"
59
+ "@ultimat3/policy": "31.33.0"
60
60
  }
61
61
  }
@@ -8,6 +8,7 @@
8
8
  // carries the prompt ref and hash that produced it, because a score with no prompt attached is
9
9
  // not a measurement.
10
10
 
11
+ // why: Bun ships no path API; `isAbsolute` also knows a Windows drive-letter path is absolute.
11
12
  import { isAbsolute } from 'node:path';
12
13
  import { EvalBaselineInvalidError, EvalBaselineMissingError } from './eval-errors';
13
14
 
@@ -8,7 +8,7 @@
8
8
  // credential and the errors.
9
9
 
10
10
  import type { Secret } from '@ultimat3/core';
11
- import { isSecret, revealSecret } from '@ultimat3/core';
11
+ import { isSecret, revealSecret, trimTrailingSlashes } from '@ultimat3/core';
12
12
  import { readAnswerBody } from './answer-body';
13
13
  import { billedCall } from './billed';
14
14
  import { providerFailure } from './context-overflow';
@@ -295,7 +295,7 @@ class OpenAiProvider implements Provider {
295
295
  private url(): string {
296
296
  const base = this.config.baseUrl ?? DEFAULT_BASE_URL;
297
297
  const cut = base.indexOf('?');
298
- const path = (cut === -1 ? base : base.slice(0, cut)).replace(/\/+$/, '');
298
+ const path = trimTrailingSlashes(cut === -1 ? base : base.slice(0, cut));
299
299
  return `${path}/chat/completions${cut === -1 ? '' : base.slice(cut)}`;
300
300
  }
301
301
  }
@@ -1,8 +1,10 @@
1
- // The security envelope a vector store carries: the tenant it is bound to, and the metadata
2
- // values a policy leaves visible. Kept separate from the stores because both the in-memory dev
3
- // store and the Postgres one must enforce the SAME envelope — a leak that only reproduces in
4
- // production is a leak nobody finds. Deriving a scope may only ever TIGHTEN it: a scope that
5
- // could be widened from a call site is not a scope, it is a hint.
1
+ // The security envelope a vector store carries: the tenant it is bound to, and the metadata values
2
+ // a policy leaves visible.
3
+ //
4
+ // Kept separate from the stores because both the in-memory dev store and the Postgres one must
5
+ // enforce the SAME envelope — a leak that only reproduces in production is a leak nobody finds.
6
+ // Deriving a scope may only ever TIGHTEN it: a scope that could be widened from a call site is not
7
+ // a scope, it is a hint.
6
8
 
7
9
  import { tryUseContext, UltimateError } from '@ultimat3/core';
8
10
  import { VectorScopeWidenedError } from './errors';