@x12i/ai-tools 2.0.0 → 2.0.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.
Files changed (94) hide show
  1. package/dist/{AiModelsCatalogClient-B5FMI9gj.d.cts → AiModelsCatalogClient-C9ZJHhv3.d.ts} +4 -1
  2. package/dist/{AiModelsCatalogClient-CPPNI6Ry.d.ts → AiModelsCatalogClient-DgBdVFk-.d.cts} +4 -1
  3. package/dist/aliases/index.d.cts +3 -3
  4. package/dist/aliases/index.d.ts +3 -3
  5. package/dist/catalog/index.cjs +6 -5
  6. package/dist/catalog/index.cjs.map +1 -1
  7. package/dist/catalog/index.d.cts +4 -4
  8. package/dist/catalog/index.d.ts +4 -4
  9. package/dist/catalog/index.js +5 -4
  10. package/dist/{chunk-EYHMQVAL.js → chunk-54GKLIDW.js} +22 -10
  11. package/dist/chunk-54GKLIDW.js.map +1 -0
  12. package/dist/chunk-5IZ7PLY2.cjs +51 -0
  13. package/dist/chunk-5IZ7PLY2.cjs.map +1 -0
  14. package/dist/{chunk-XAWBTX3N.cjs → chunk-75ZVXZAV.cjs} +7 -7
  15. package/dist/{chunk-XAWBTX3N.cjs.map → chunk-75ZVXZAV.cjs.map} +1 -1
  16. package/dist/{chunk-YQDSN6R6.cjs → chunk-76FHWQH3.cjs} +3 -3
  17. package/dist/{chunk-YQDSN6R6.cjs.map → chunk-76FHWQH3.cjs.map} +1 -1
  18. package/dist/{chunk-EDMCKHO6.cjs → chunk-BCX5CLJJ.cjs} +15 -2
  19. package/dist/chunk-BCX5CLJJ.cjs.map +1 -0
  20. package/dist/{chunk-OPN6BGNH.js → chunk-D6OIUYNC.js} +117 -5
  21. package/dist/{chunk-OPN6BGNH.js.map → chunk-D6OIUYNC.js.map} +1 -1
  22. package/dist/{chunk-NF2SKQR7.cjs → chunk-DDRWORUU.cjs} +30 -298
  23. package/dist/chunk-DDRWORUU.cjs.map +1 -0
  24. package/dist/{chunk-5XAAMBDO.cjs → chunk-HBNYVRLZ.cjs} +123 -11
  25. package/dist/chunk-HBNYVRLZ.cjs.map +1 -0
  26. package/dist/chunk-HEB73GKJ.js +263 -0
  27. package/dist/chunk-HEB73GKJ.js.map +1 -0
  28. package/dist/{chunk-VJHLO2R3.js → chunk-KSJSLKYI.js} +2 -2
  29. package/dist/{chunk-SIH4GPV4.js → chunk-MOLWV5LV.js} +2 -2
  30. package/dist/{chunk-U2YDDUVP.js → chunk-PN4FF6YF.js} +10 -275
  31. package/dist/chunk-PN4FF6YF.js.map +1 -0
  32. package/dist/{chunk-DXZOL3VN.cjs → chunk-RSHI4OOY.cjs} +46 -34
  33. package/dist/chunk-RSHI4OOY.cjs.map +1 -0
  34. package/dist/{chunk-B3V2EHRY.js → chunk-SLSKQRMI.js} +15 -2
  35. package/dist/{chunk-B3V2EHRY.js.map → chunk-SLSKQRMI.js.map} +1 -1
  36. package/dist/{chunk-XOKUDUUI.cjs → chunk-TMA6QSNH.cjs} +3 -3
  37. package/dist/{chunk-XOKUDUUI.cjs.map → chunk-TMA6QSNH.cjs.map} +1 -1
  38. package/dist/{chunk-6BQBKROR.js → chunk-VBROBIVI.js} +3 -3
  39. package/dist/{chunk-6BQBKROR.js.map → chunk-VBROBIVI.js.map} +1 -1
  40. package/dist/chunk-WSUFQR3D.cjs +266 -0
  41. package/dist/chunk-WSUFQR3D.cjs.map +1 -0
  42. package/dist/{chunk-PRCICORG.cjs → chunk-X42KFOUO.cjs} +6 -6
  43. package/dist/{chunk-PRCICORG.cjs.map → chunk-X42KFOUO.cjs.map} +1 -1
  44. package/dist/chunk-YQVY7CWT.js +51 -0
  45. package/dist/chunk-YQVY7CWT.js.map +1 -0
  46. package/dist/{chunk-AB5GNXJ4.js → chunk-ZPUZ7DBO.js} +2 -2
  47. package/dist/cli/index.cjs +16 -15
  48. package/dist/cli/index.cjs.map +1 -1
  49. package/dist/cli/index.js +7 -6
  50. package/dist/cli/index.js.map +1 -1
  51. package/dist/cost/index.cjs +4 -3
  52. package/dist/cost/index.cjs.map +1 -1
  53. package/dist/cost/index.d.cts +4 -4
  54. package/dist/cost/index.d.ts +4 -4
  55. package/dist/cost/index.js +3 -2
  56. package/dist/index.cjs +28 -11
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.cts +8 -6
  59. package/dist/index.d.ts +8 -6
  60. package/dist/index.js +33 -16
  61. package/dist/{modelCache-CJftI-Ko.d.cts → modelCache-sL3dBfRM.d.cts} +1 -1
  62. package/dist/{modelCache-BzRn6t_C.d.ts → modelCache-xzoTUue2.d.ts} +1 -1
  63. package/dist/{modelNameResolver-5XkBMctP.d.ts → modelNameResolver-2WroQlqt.d.ts} +2 -1
  64. package/dist/{modelNameResolver-C5CSTGFF.d.cts → modelNameResolver-Bxlehrbp.d.cts} +2 -1
  65. package/dist/models/index.cjs +7 -6
  66. package/dist/models/index.cjs.map +1 -1
  67. package/dist/models/index.d.cts +3 -3
  68. package/dist/models/index.d.ts +3 -3
  69. package/dist/models/index.js +9 -8
  70. package/dist/profiles/index.cjs +18 -0
  71. package/dist/profiles/index.cjs.map +1 -0
  72. package/dist/profiles/index.d.cts +40 -0
  73. package/dist/profiles/index.d.ts +40 -0
  74. package/dist/profiles/index.js +17 -0
  75. package/dist/profiles/index.js.map +1 -0
  76. package/dist/{resolveUsageModel-BFwf80Hz.d.ts → resolveUsageModel-DrFuiuIW.d.ts} +2 -2
  77. package/dist/{resolveUsageModel-C_YmGR1M.d.cts → resolveUsageModel-xKZ2QpHy.d.cts} +2 -2
  78. package/dist/sync/index.cjs +7 -5
  79. package/dist/sync/index.cjs.map +1 -1
  80. package/dist/sync/index.d.cts +3 -3
  81. package/dist/sync/index.d.ts +3 -3
  82. package/dist/sync/index.js +6 -4
  83. package/dist/{types-BrzJWsTU.d.ts → types-BZYGjN2O.d.cts} +21 -2
  84. package/dist/{types-BrzJWsTU.d.cts → types-BZYGjN2O.d.ts} +21 -2
  85. package/package.json +7 -2
  86. package/dist/chunk-5XAAMBDO.cjs.map +0 -1
  87. package/dist/chunk-DXZOL3VN.cjs.map +0 -1
  88. package/dist/chunk-EDMCKHO6.cjs.map +0 -1
  89. package/dist/chunk-EYHMQVAL.js.map +0 -1
  90. package/dist/chunk-NF2SKQR7.cjs.map +0 -1
  91. package/dist/chunk-U2YDDUVP.js.map +0 -1
  92. /package/dist/{chunk-VJHLO2R3.js.map → chunk-KSJSLKYI.js.map} +0 -0
  93. /package/dist/{chunk-SIH4GPV4.js.map → chunk-MOLWV5LV.js.map} +0 -0
  94. /package/dist/{chunk-AB5GNXJ4.js.map → chunk-ZPUZ7DBO.js.map} +0 -0
package/dist/index.js CHANGED
@@ -1,4 +1,10 @@
1
1
  import "./chunk-56R4XA2S.js";
2
+ import {
3
+ CostCalculator,
4
+ MODEL_FIELD_PRIORITY,
5
+ extractUsageInput,
6
+ resolveUsageModel
7
+ } from "./chunk-PN4FF6YF.js";
2
8
  import {
3
9
  AIToolbox
4
10
  } from "./chunk-XRBZQQQU.js";
@@ -7,32 +13,26 @@ import {
7
13
  createModelNameResolver,
8
14
  isRoutedViaOpenRouter,
9
15
  resolveModel
10
- } from "./chunk-6BQBKROR.js";
16
+ } from "./chunk-VBROBIVI.js";
11
17
  import "./chunk-KHODXGPV.js";
12
- import "./chunk-COK34C6P.js";
13
- import {
14
- normalizeOpenRouterModel
15
- } from "./chunk-SIH4GPV4.js";
16
- import {
17
- CostCalculator,
18
- MODEL_FIELD_PRIORITY,
19
- extractUsageInput,
20
- resolveUsageModel
21
- } from "./chunk-U2YDDUVP.js";
22
18
  import {
23
19
  AliasRegistry,
24
20
  AliasResolver
25
21
  } from "./chunk-ANVONYJF.js";
22
+ import "./chunk-COK34C6P.js";
26
23
  import {
27
24
  AiModelsService,
28
25
  countModels,
29
26
  filterModels,
30
27
  getModelInfo
31
- } from "./chunk-VJHLO2R3.js";
28
+ } from "./chunk-KSJSLKYI.js";
29
+ import {
30
+ normalizeOpenRouterModel
31
+ } from "./chunk-MOLWV5LV.js";
32
32
  import {
33
33
  refreshAiModelsCatalog,
34
34
  verifyAiModelsCatalog
35
- } from "./chunk-AB5GNXJ4.js";
35
+ } from "./chunk-ZPUZ7DBO.js";
36
36
  import {
37
37
  AiModelsCatalogClient,
38
38
  DEFAULT_CATALOG_CACHE_TTL_MS,
@@ -42,7 +42,8 @@ import {
42
42
  loadCatalogSources,
43
43
  loadCatalogSourcesCached,
44
44
  resolveCatalogCacheTtlMs
45
- } from "./chunk-OPN6BGNH.js";
45
+ } from "./chunk-D6OIUYNC.js";
46
+ import "./chunk-HEB73GKJ.js";
46
47
  import {
47
48
  ModelNameResolver,
48
49
  REASONING_SUPPORTED_PARAMETERS,
@@ -50,13 +51,14 @@ import {
50
51
  hasReasoningPricing,
51
52
  isReasoningModel,
52
53
  supportsReasoningParameter
53
- } from "./chunk-EYHMQVAL.js";
54
+ } from "./chunk-54GKLIDW.js";
54
55
  import {
56
+ isEffectiveOpenRouterTransport,
55
57
  loadOpenRouterRoutingEnv,
56
58
  providerIdToEnvKeyPrefix,
57
59
  shouldDefaultRouteViaOpenRouter,
58
60
  vendorApiKeyEnvName
59
- } from "./chunk-B3V2EHRY.js";
61
+ } from "./chunk-SLSKQRMI.js";
60
62
  import {
61
63
  AiToolsError,
62
64
  AliasConflictError,
@@ -70,6 +72,14 @@ import {
70
72
  SyncError,
71
73
  UnknownModelCostError
72
74
  } from "./chunk-2PTCWPHV.js";
75
+ import {
76
+ isKnownProfileOrShortcut,
77
+ listAIProfiles,
78
+ listAIShortcuts,
79
+ profileConfigFromResolved,
80
+ resolveAIProfile,
81
+ resolveProfileForAsk
82
+ } from "./chunk-YQVY7CWT.js";
73
83
  export {
74
84
  AIToolbox,
75
85
  AiModelsCatalogClient,
@@ -103,16 +113,23 @@ export {
103
113
  getModelInfo,
104
114
  hasReasoningPricing,
105
115
  invalidateCatalogLoadCache,
116
+ isEffectiveOpenRouterTransport,
117
+ isKnownProfileOrShortcut,
106
118
  isReasoningModel,
107
119
  isRoutedViaOpenRouter,
120
+ listAIProfiles,
121
+ listAIShortcuts,
108
122
  loadCatalogSources,
109
123
  loadCatalogSourcesCached,
110
124
  loadOpenRouterRoutingEnv,
111
125
  normalizeOpenRouterModel,
126
+ profileConfigFromResolved,
112
127
  providerIdToEnvKeyPrefix,
113
128
  refreshAiModelsCatalog,
129
+ resolveAIProfile,
114
130
  resolveCatalogCacheTtlMs,
115
131
  resolveModel,
132
+ resolveProfileForAsk,
116
133
  resolveUsageModel,
117
134
  shouldDefaultRouteViaOpenRouter,
118
135
  supportsReasoningParameter,
@@ -1,4 +1,4 @@
1
- import { L as LoadCatalogOptions, b as LoadedCatalogs } from './AiModelsCatalogClient-B5FMI9gj.cjs';
1
+ import { L as LoadCatalogOptions, b as LoadedCatalogs } from './AiModelsCatalogClient-DgBdVFk-.cjs';
2
2
 
3
3
  /** Remote catalog URLs (primary). */
4
4
  declare const DEFAULT_DIRECT_CATALOG_URL = "https://open-assets.x12i.com/models-catalog.json";
@@ -1,4 +1,4 @@
1
- import { L as LoadCatalogOptions, b as LoadedCatalogs } from './AiModelsCatalogClient-CPPNI6Ry.js';
1
+ import { L as LoadCatalogOptions, b as LoadedCatalogs } from './AiModelsCatalogClient-C9ZJHhv3.js';
2
2
 
3
3
  /** Remote catalog URLs (primary). */
4
4
  declare const DEFAULT_DIRECT_CATALOG_URL = "https://open-assets.x12i.com/models-catalog.json";
@@ -1,4 +1,4 @@
1
- import { n as OpenRouterModelsQuery, a as AiModelRecord, l as ModelResolverOptions, h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, d as AliasRegistry, t as ResolvedModel } from './types-BrzJWsTU.js';
1
+ import { n as OpenRouterModelsQuery, a as AiModelRecord, l as ModelResolverOptions, h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, d as AliasRegistry, t as ResolvedModel } from './types-BZYGjN2O.js';
2
2
 
3
3
  type OpenRouterSyncProviderOptions = {
4
4
  /** Optional — public GET /models needs no key. */
@@ -41,6 +41,7 @@ declare class ModelNameResolver {
41
41
  private shorthandMap;
42
42
  private partialMatch;
43
43
  private computeRoutedViaOpenRouter;
44
+ private toOpenRouterSlug;
44
45
  private success;
45
46
  }
46
47
 
@@ -1,4 +1,4 @@
1
- import { n as OpenRouterModelsQuery, a as AiModelRecord, l as ModelResolverOptions, h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, d as AliasRegistry, t as ResolvedModel } from './types-BrzJWsTU.cjs';
1
+ import { n as OpenRouterModelsQuery, a as AiModelRecord, l as ModelResolverOptions, h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, d as AliasRegistry, t as ResolvedModel } from './types-BZYGjN2O.cjs';
2
2
 
3
3
  type OpenRouterSyncProviderOptions = {
4
4
  /** Optional — public GET /models needs no key. */
@@ -41,6 +41,7 @@ declare class ModelNameResolver {
41
41
  private shorthandMap;
42
42
  private partialMatch;
43
43
  private computeRoutedViaOpenRouter;
44
+ private toOpenRouterSlug;
44
45
  private success;
45
46
  }
46
47
 
@@ -2,22 +2,23 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXOKUDUUIcjs = require('../chunk-XOKUDUUI.cjs');
6
5
 
7
6
 
7
+ var _chunk76FHWQH3cjs = require('../chunk-76FHWQH3.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkYQDSN6R6cjs = require('../chunk-YQDSN6R6.cjs');
12
- require('../chunk-5XAAMBDO.cjs');
11
+ var _chunkTMA6QSNHcjs = require('../chunk-TMA6QSNH.cjs');
12
+ require('../chunk-HBNYVRLZ.cjs');
13
+ require('../chunk-WSUFQR3D.cjs');
13
14
 
14
15
 
15
16
 
16
17
 
17
18
 
18
19
 
19
- var _chunkDXZOL3VNcjs = require('../chunk-DXZOL3VN.cjs');
20
- require('../chunk-EDMCKHO6.cjs');
20
+ var _chunkRSHI4OOYcjs = require('../chunk-RSHI4OOY.cjs');
21
+ require('../chunk-BCX5CLJJ.cjs');
21
22
  require('../chunk-PADNCGZB.cjs');
22
23
  require('../chunk-GS7T56RP.cjs');
23
24
 
@@ -32,5 +33,5 @@ require('../chunk-GS7T56RP.cjs');
32
33
 
33
34
 
34
35
 
35
- exports.AiModelsService = _chunkYQDSN6R6cjs.AiModelsService; exports.REASONING_SUPPORTED_PARAMETERS = _chunkDXZOL3VNcjs.REASONING_SUPPORTED_PARAMETERS; exports.computeSupportsReasoning = _chunkDXZOL3VNcjs.computeSupportsReasoning; exports.countModels = _chunkYQDSN6R6cjs.countModels; exports.extractProviderId = _chunkXOKUDUUIcjs.extractProviderId; exports.filterModels = _chunkYQDSN6R6cjs.filterModels; exports.getModelInfo = _chunkYQDSN6R6cjs.getModelInfo; exports.hasReasoningPricing = _chunkDXZOL3VNcjs.hasReasoningPricing; exports.isReasoningModel = _chunkDXZOL3VNcjs.isReasoningModel; exports.normalizeOpenRouterModel = _chunkXOKUDUUIcjs.normalizeOpenRouterModel; exports.supportsReasoningParameter = _chunkDXZOL3VNcjs.supportsReasoningParameter;
36
+ exports.AiModelsService = _chunk76FHWQH3cjs.AiModelsService; exports.REASONING_SUPPORTED_PARAMETERS = _chunkRSHI4OOYcjs.REASONING_SUPPORTED_PARAMETERS; exports.computeSupportsReasoning = _chunkRSHI4OOYcjs.computeSupportsReasoning; exports.countModels = _chunk76FHWQH3cjs.countModels; exports.extractProviderId = _chunkTMA6QSNHcjs.extractProviderId; exports.filterModels = _chunk76FHWQH3cjs.filterModels; exports.getModelInfo = _chunk76FHWQH3cjs.getModelInfo; exports.hasReasoningPricing = _chunkRSHI4OOYcjs.hasReasoningPricing; exports.isReasoningModel = _chunkRSHI4OOYcjs.isReasoningModel; exports.normalizeOpenRouterModel = _chunkTMA6QSNHcjs.normalizeOpenRouterModel; exports.supportsReasoningParameter = _chunkRSHI4OOYcjs.supportsReasoningParameter;
36
37
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/ami/Documents/prometheus/x12i/ai-tools/dist/models/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gvBAAC","file":"/Users/ami/Documents/prometheus/x12i/ai-tools/dist/models/index.cjs"}
1
+ {"version":3,"sources":["/Users/ami/Documents/prometheus/x12i/ai-tools/dist/models/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gvBAAC","file":"/Users/ami/Documents/prometheus/x12i/ai-tools/dist/models/index.cjs"}
@@ -1,6 +1,6 @@
1
- import { a as AiModelRecord, M as ModelListFilters, g as ModelListResult, j as ModelResolutionResult, m as OpenRouterModelApi } from '../types-BrzJWsTU.cjs';
2
- export { A as AiModelPricing, O as OpenRouterArchitectureApi, n as OpenRouterModelsQuery, o as OpenRouterModelsResponse, p as OpenRouterOutputModality, q as OpenRouterPricingApi, s as OpenRouterTopProviderApi } from '../types-BrzJWsTU.cjs';
3
- import { a as AiModelsCatalogClientOptions } from '../AiModelsCatalogClient-B5FMI9gj.cjs';
1
+ import { a as AiModelRecord, M as ModelListFilters, g as ModelListResult, j as ModelResolutionResult, m as OpenRouterModelApi } from '../types-BZYGjN2O.cjs';
2
+ export { A as AiModelPricing, O as OpenRouterArchitectureApi, n as OpenRouterModelsQuery, o as OpenRouterModelsResponse, p as OpenRouterOutputModality, q as OpenRouterPricingApi, s as OpenRouterTopProviderApi } from '../types-BZYGjN2O.cjs';
3
+ import { a as AiModelsCatalogClientOptions } from '../AiModelsCatalogClient-DgBdVFk-.cjs';
4
4
 
5
5
  type AiModelsServiceOptions = AiModelsCatalogClientOptions;
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { a as AiModelRecord, M as ModelListFilters, g as ModelListResult, j as ModelResolutionResult, m as OpenRouterModelApi } from '../types-BrzJWsTU.js';
2
- export { A as AiModelPricing, O as OpenRouterArchitectureApi, n as OpenRouterModelsQuery, o as OpenRouterModelsResponse, p as OpenRouterOutputModality, q as OpenRouterPricingApi, s as OpenRouterTopProviderApi } from '../types-BrzJWsTU.js';
3
- import { a as AiModelsCatalogClientOptions } from '../AiModelsCatalogClient-CPPNI6Ry.js';
1
+ import { a as AiModelRecord, M as ModelListFilters, g as ModelListResult, j as ModelResolutionResult, m as OpenRouterModelApi } from '../types-BZYGjN2O.js';
2
+ export { A as AiModelPricing, O as OpenRouterArchitectureApi, n as OpenRouterModelsQuery, o as OpenRouterModelsResponse, p as OpenRouterOutputModality, q as OpenRouterPricingApi, s as OpenRouterTopProviderApi } from '../types-BZYGjN2O.js';
3
+ import { a as AiModelsCatalogClientOptions } from '../AiModelsCatalogClient-C9ZJHhv3.js';
4
4
 
5
5
  type AiModelsServiceOptions = AiModelsCatalogClientOptions;
6
6
  /**
@@ -1,23 +1,24 @@
1
1
  import "../chunk-COK34C6P.js";
2
- import {
3
- extractProviderId,
4
- normalizeOpenRouterModel
5
- } from "../chunk-SIH4GPV4.js";
6
2
  import {
7
3
  AiModelsService,
8
4
  countModels,
9
5
  filterModels,
10
6
  getModelInfo
11
- } from "../chunk-VJHLO2R3.js";
12
- import "../chunk-OPN6BGNH.js";
7
+ } from "../chunk-KSJSLKYI.js";
8
+ import {
9
+ extractProviderId,
10
+ normalizeOpenRouterModel
11
+ } from "../chunk-MOLWV5LV.js";
12
+ import "../chunk-D6OIUYNC.js";
13
+ import "../chunk-HEB73GKJ.js";
13
14
  import {
14
15
  REASONING_SUPPORTED_PARAMETERS,
15
16
  computeSupportsReasoning,
16
17
  hasReasoningPricing,
17
18
  isReasoningModel,
18
19
  supportsReasoningParameter
19
- } from "../chunk-EYHMQVAL.js";
20
- import "../chunk-B3V2EHRY.js";
20
+ } from "../chunk-54GKLIDW.js";
21
+ import "../chunk-SLSKQRMI.js";
21
22
  import "../chunk-2PTCWPHV.js";
22
23
  export {
23
24
  AiModelsService,
@@ -0,0 +1,18 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+ var _chunk5IZ7PLY2cjs = require('../chunk-5IZ7PLY2.cjs');
9
+ require('../chunk-GS7T56RP.cjs');
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ exports.isKnownProfileOrShortcut = _chunk5IZ7PLY2cjs.isKnownProfileOrShortcut; exports.listAIProfiles = _chunk5IZ7PLY2cjs.listAIProfiles; exports.listAIShortcuts = _chunk5IZ7PLY2cjs.listAIShortcuts; exports.profileConfigFromResolved = _chunk5IZ7PLY2cjs.profileConfigFromResolved; exports.resolveAIProfile = _chunk5IZ7PLY2cjs.resolveAIProfile; exports.resolveProfileForAsk = _chunk5IZ7PLY2cjs.resolveProfileForAsk;
18
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/Users/ami/Documents/prometheus/x12i/ai-tools/dist/profiles/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,6ZAAC","file":"/Users/ami/Documents/prometheus/x12i/ai-tools/dist/profiles/index.cjs"}
@@ -0,0 +1,40 @@
1
+ import { ResolvedAIProfile, InstructionTier, AIProfileBackend, RegistrySourceMode } from '@x12i/ai-profiles';
2
+ export { AIProfileBackend, AIProfileSummary, AIShortcutSummary, InstructionTier, RegistrySourceMode, ResolveAIProfileOptions, ResolvedAIProfile, isKnownProfileOrShortcut, listAIProfiles, listAIShortcuts, resolveAIProfile } from '@x12i/ai-profiles';
3
+
4
+ type ResolveProfileForAskInput = {
5
+ profile: string;
6
+ choice?: string;
7
+ source?: RegistrySourceMode;
8
+ refresh?: boolean;
9
+ };
10
+ /** FuncX / ask-node model config derived from {@link ResolvedAIProfile}. */
11
+ type AskProfileModelConfig = {
12
+ provider: ResolvedAIProfile["provider"];
13
+ model: string;
14
+ instructionTier: InstructionTier;
15
+ backend: AIProfileBackend;
16
+ profile: string;
17
+ choice: string;
18
+ temperature: number;
19
+ outputMode: ResolvedAIProfile["runtime"]["outputMode"];
20
+ toolPolicy: ResolvedAIProfile["runtime"]["toolPolicy"];
21
+ reasoningEffort: ResolvedAIProfile["runtime"]["reasoningEffort"];
22
+ executionMode: ResolvedAIProfile["runtime"]["executionMode"];
23
+ requireCitations: boolean;
24
+ allowWeb: boolean;
25
+ allowFileSearch: boolean;
26
+ allowCodeExecution: boolean;
27
+ humanReview: ResolvedAIProfile["runtime"]["humanReview"];
28
+ metadata?: Record<string, unknown>;
29
+ pricing?: ResolvedAIProfile["pricing"];
30
+ resolved: ResolvedAIProfile;
31
+ };
32
+ declare function profileConfigFromResolved(resolved: ResolvedAIProfile): AskProfileModelConfig;
33
+ /**
34
+ * Resolve a profile (+ optional choice) into ask-node / FuncX model configuration.
35
+ * Uses {@link ResolvedAIProfile.instructionTier} and {@link ResolvedAIProfile.backend}
36
+ * from `@x12i/ai-profiles` — do not duplicate preset tables locally.
37
+ */
38
+ declare function resolveProfileForAsk(input: ResolveProfileForAskInput): Promise<AskProfileModelConfig>;
39
+
40
+ export { type AskProfileModelConfig, type ResolveProfileForAskInput, profileConfigFromResolved, resolveProfileForAsk };
@@ -0,0 +1,40 @@
1
+ import { ResolvedAIProfile, InstructionTier, AIProfileBackend, RegistrySourceMode } from '@x12i/ai-profiles';
2
+ export { AIProfileBackend, AIProfileSummary, AIShortcutSummary, InstructionTier, RegistrySourceMode, ResolveAIProfileOptions, ResolvedAIProfile, isKnownProfileOrShortcut, listAIProfiles, listAIShortcuts, resolveAIProfile } from '@x12i/ai-profiles';
3
+
4
+ type ResolveProfileForAskInput = {
5
+ profile: string;
6
+ choice?: string;
7
+ source?: RegistrySourceMode;
8
+ refresh?: boolean;
9
+ };
10
+ /** FuncX / ask-node model config derived from {@link ResolvedAIProfile}. */
11
+ type AskProfileModelConfig = {
12
+ provider: ResolvedAIProfile["provider"];
13
+ model: string;
14
+ instructionTier: InstructionTier;
15
+ backend: AIProfileBackend;
16
+ profile: string;
17
+ choice: string;
18
+ temperature: number;
19
+ outputMode: ResolvedAIProfile["runtime"]["outputMode"];
20
+ toolPolicy: ResolvedAIProfile["runtime"]["toolPolicy"];
21
+ reasoningEffort: ResolvedAIProfile["runtime"]["reasoningEffort"];
22
+ executionMode: ResolvedAIProfile["runtime"]["executionMode"];
23
+ requireCitations: boolean;
24
+ allowWeb: boolean;
25
+ allowFileSearch: boolean;
26
+ allowCodeExecution: boolean;
27
+ humanReview: ResolvedAIProfile["runtime"]["humanReview"];
28
+ metadata?: Record<string, unknown>;
29
+ pricing?: ResolvedAIProfile["pricing"];
30
+ resolved: ResolvedAIProfile;
31
+ };
32
+ declare function profileConfigFromResolved(resolved: ResolvedAIProfile): AskProfileModelConfig;
33
+ /**
34
+ * Resolve a profile (+ optional choice) into ask-node / FuncX model configuration.
35
+ * Uses {@link ResolvedAIProfile.instructionTier} and {@link ResolvedAIProfile.backend}
36
+ * from `@x12i/ai-profiles` — do not duplicate preset tables locally.
37
+ */
38
+ declare function resolveProfileForAsk(input: ResolveProfileForAskInput): Promise<AskProfileModelConfig>;
39
+
40
+ export { type AskProfileModelConfig, type ResolveProfileForAskInput, profileConfigFromResolved, resolveProfileForAsk };
@@ -0,0 +1,17 @@
1
+ import {
2
+ isKnownProfileOrShortcut,
3
+ listAIProfiles,
4
+ listAIShortcuts,
5
+ profileConfigFromResolved,
6
+ resolveAIProfile,
7
+ resolveProfileForAsk
8
+ } from "../chunk-YQVY7CWT.js";
9
+ export {
10
+ isKnownProfileOrShortcut,
11
+ listAIProfiles,
12
+ listAIShortcuts,
13
+ profileConfigFromResolved,
14
+ resolveAIProfile,
15
+ resolveProfileForAsk
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,5 +1,5 @@
1
- import { A as AiModelPricing, d as AliasRegistry, l as ModelResolverOptions } from './types-BrzJWsTU.js';
2
- import { A as AiModelsCatalogClient } from './AiModelsCatalogClient-CPPNI6Ry.js';
1
+ import { A as AiModelPricing, d as AliasRegistry, l as ModelResolverOptions } from './types-BZYGjN2O.js';
2
+ import { A as AiModelsCatalogClient } from './AiModelsCatalogClient-C9ZJHhv3.js';
3
3
 
4
4
  type AiUsageInput = {
5
5
  tokens: {
@@ -1,5 +1,5 @@
1
- import { A as AiModelPricing, d as AliasRegistry, l as ModelResolverOptions } from './types-BrzJWsTU.cjs';
2
- import { A as AiModelsCatalogClient } from './AiModelsCatalogClient-B5FMI9gj.cjs';
1
+ import { A as AiModelPricing, d as AliasRegistry, l as ModelResolverOptions } from './types-BZYGjN2O.cjs';
2
+ import { A as AiModelsCatalogClient } from './AiModelsCatalogClient-DgBdVFk-.cjs';
3
3
 
4
4
  type AiUsageInput = {
5
5
  tokens: {
@@ -3,12 +3,12 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkPRCICORGcjs = require('../chunk-PRCICORG.cjs');
7
- require('../chunk-XOKUDUUI.cjs');
6
+ var _chunkX42KFOUOcjs = require('../chunk-X42KFOUO.cjs');
7
+ require('../chunk-TMA6QSNH.cjs');
8
8
 
9
9
 
10
10
 
11
- var _chunkDXZOL3VNcjs = require('../chunk-DXZOL3VN.cjs');
11
+ var _chunkRSHI4OOYcjs = require('../chunk-RSHI4OOY.cjs');
12
12
 
13
13
 
14
14
 
@@ -16,7 +16,8 @@ var _chunkDXZOL3VNcjs = require('../chunk-DXZOL3VN.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkEDMCKHO6cjs = require('../chunk-EDMCKHO6.cjs');
19
+
20
+ var _chunkBCX5CLJJcjs = require('../chunk-BCX5CLJJ.cjs');
20
21
  require('../chunk-PADNCGZB.cjs');
21
22
  require('../chunk-GS7T56RP.cjs');
22
23
 
@@ -32,5 +33,6 @@ require('../chunk-GS7T56RP.cjs');
32
33
 
33
34
 
34
35
 
35
- exports.ModelNameResolver = _chunkDXZOL3VNcjs.ModelNameResolver; exports.OpenRouterSyncProvider = _chunkPRCICORGcjs.OpenRouterSyncProvider; exports.buildCatalogIndexes = _chunkDXZOL3VNcjs.buildCatalogIndexes; exports.createModelNameResolver = _chunkPRCICORGcjs.createModelNameResolver; exports.isRoutedViaOpenRouter = _chunkPRCICORGcjs.isRoutedViaOpenRouter; exports.loadOpenRouterRoutingEnv = _chunkEDMCKHO6cjs.loadOpenRouterRoutingEnv; exports.normalizeProvider = _chunkEDMCKHO6cjs.normalizeProvider; exports.normalizeString = _chunkEDMCKHO6cjs.normalizeString; exports.providerIdToEnvKeyPrefix = _chunkEDMCKHO6cjs.providerIdToEnvKeyPrefix; exports.resolveModel = _chunkPRCICORGcjs.resolveModel; exports.shouldDefaultRouteViaOpenRouter = _chunkEDMCKHO6cjs.shouldDefaultRouteViaOpenRouter; exports.vendorApiKeyEnvName = _chunkEDMCKHO6cjs.vendorApiKeyEnvName;
36
+
37
+ exports.ModelNameResolver = _chunkRSHI4OOYcjs.ModelNameResolver; exports.OpenRouterSyncProvider = _chunkX42KFOUOcjs.OpenRouterSyncProvider; exports.buildCatalogIndexes = _chunkRSHI4OOYcjs.buildCatalogIndexes; exports.createModelNameResolver = _chunkX42KFOUOcjs.createModelNameResolver; exports.isEffectiveOpenRouterTransport = _chunkBCX5CLJJcjs.isEffectiveOpenRouterTransport; exports.isRoutedViaOpenRouter = _chunkX42KFOUOcjs.isRoutedViaOpenRouter; exports.loadOpenRouterRoutingEnv = _chunkBCX5CLJJcjs.loadOpenRouterRoutingEnv; exports.normalizeProvider = _chunkBCX5CLJJcjs.normalizeProvider; exports.normalizeString = _chunkBCX5CLJJcjs.normalizeString; exports.providerIdToEnvKeyPrefix = _chunkBCX5CLJJcjs.providerIdToEnvKeyPrefix; exports.resolveModel = _chunkX42KFOUOcjs.resolveModel; exports.shouldDefaultRouteViaOpenRouter = _chunkBCX5CLJJcjs.shouldDefaultRouteViaOpenRouter; exports.vendorApiKeyEnvName = _chunkBCX5CLJJcjs.vendorApiKeyEnvName;
36
38
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/ami/Documents/prometheus/x12i/ai-tools/dist/sync/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,21BAAC","file":"/Users/ami/Documents/prometheus/x12i/ai-tools/dist/sync/index.cjs"}
1
+ {"version":3,"sources":["/Users/ami/Documents/prometheus/x12i/ai-tools/dist/sync/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,s7BAAC","file":"/Users/ami/Documents/prometheus/x12i/ai-tools/dist/sync/index.cjs"}
@@ -1,6 +1,6 @@
1
- export { M as ModelNameResolver, O as OpenRouterSyncProvider, a as OpenRouterSyncProviderOptions, c as createModelNameResolver, i as isRoutedViaOpenRouter, r as resolveModel } from '../modelNameResolver-C5CSTGFF.cjs';
2
- import { a as AiModelRecord, C as CatalogIndexes } from '../types-BrzJWsTU.cjs';
3
- export { h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, l as ModelResolverOptions, r as OpenRouterRoutingConfig, R as ResolutionStrategy, t as ResolvedModel, v as loadOpenRouterRoutingEnv, w as providerIdToEnvKeyPrefix, x as shouldDefaultRouteViaOpenRouter, y as vendorApiKeyEnvName } from '../types-BrzJWsTU.cjs';
1
+ export { M as ModelNameResolver, O as OpenRouterSyncProvider, a as OpenRouterSyncProviderOptions, c as createModelNameResolver, i as isRoutedViaOpenRouter, r as resolveModel } from '../modelNameResolver-Bxlehrbp.cjs';
2
+ import { a as AiModelRecord, C as CatalogIndexes } from '../types-BZYGjN2O.cjs';
3
+ export { h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, l as ModelResolverOptions, r as OpenRouterRoutingConfig, R as ResolutionStrategy, t as ResolvedModel, v as isEffectiveOpenRouterTransport, w as loadOpenRouterRoutingEnv, x as providerIdToEnvKeyPrefix, y as shouldDefaultRouteViaOpenRouter, z as vendorApiKeyEnvName } from '../types-BZYGjN2O.cjs';
4
4
 
5
5
  declare function buildCatalogIndexes(catalog: Map<string, AiModelRecord>): CatalogIndexes;
6
6
 
@@ -1,6 +1,6 @@
1
- export { M as ModelNameResolver, O as OpenRouterSyncProvider, a as OpenRouterSyncProviderOptions, c as createModelNameResolver, i as isRoutedViaOpenRouter, r as resolveModel } from '../modelNameResolver-5XkBMctP.js';
2
- import { a as AiModelRecord, C as CatalogIndexes } from '../types-BrzJWsTU.js';
3
- export { h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, l as ModelResolverOptions, r as OpenRouterRoutingConfig, R as ResolutionStrategy, t as ResolvedModel, v as loadOpenRouterRoutingEnv, w as providerIdToEnvKeyPrefix, x as shouldDefaultRouteViaOpenRouter, y as vendorApiKeyEnvName } from '../types-BrzJWsTU.js';
1
+ export { M as ModelNameResolver, O as OpenRouterSyncProvider, a as OpenRouterSyncProviderOptions, c as createModelNameResolver, i as isRoutedViaOpenRouter, r as resolveModel } from '../modelNameResolver-2WroQlqt.js';
2
+ import { a as AiModelRecord, C as CatalogIndexes } from '../types-BZYGjN2O.js';
3
+ export { h as ModelResolutionInput, j as ModelResolutionResult, k as ModelResolutionSuccess, l as ModelResolverOptions, r as OpenRouterRoutingConfig, R as ResolutionStrategy, t as ResolvedModel, v as isEffectiveOpenRouterTransport, w as loadOpenRouterRoutingEnv, x as providerIdToEnvKeyPrefix, y as shouldDefaultRouteViaOpenRouter, z as vendorApiKeyEnvName } from '../types-BZYGjN2O.js';
4
4
 
5
5
  declare function buildCatalogIndexes(catalog: Map<string, AiModelRecord>): CatalogIndexes;
6
6
 
@@ -3,26 +3,28 @@ import {
3
3
  createModelNameResolver,
4
4
  isRoutedViaOpenRouter,
5
5
  resolveModel
6
- } from "../chunk-6BQBKROR.js";
7
- import "../chunk-SIH4GPV4.js";
6
+ } from "../chunk-VBROBIVI.js";
7
+ import "../chunk-MOLWV5LV.js";
8
8
  import {
9
9
  ModelNameResolver,
10
10
  buildCatalogIndexes
11
- } from "../chunk-EYHMQVAL.js";
11
+ } from "../chunk-54GKLIDW.js";
12
12
  import {
13
+ isEffectiveOpenRouterTransport,
13
14
  loadOpenRouterRoutingEnv,
14
15
  normalizeProvider,
15
16
  normalizeString,
16
17
  providerIdToEnvKeyPrefix,
17
18
  shouldDefaultRouteViaOpenRouter,
18
19
  vendorApiKeyEnvName
19
- } from "../chunk-B3V2EHRY.js";
20
+ } from "../chunk-SLSKQRMI.js";
20
21
  import "../chunk-2PTCWPHV.js";
21
22
  export {
22
23
  ModelNameResolver,
23
24
  OpenRouterSyncProvider,
24
25
  buildCatalogIndexes,
25
26
  createModelNameResolver,
27
+ isEffectiveOpenRouterTransport,
26
28
  isRoutedViaOpenRouter,
27
29
  loadOpenRouterRoutingEnv,
28
30
  normalizeProvider,
@@ -220,6 +220,16 @@ declare function loadOpenRouterRoutingEnv(env?: Record<string, string | undefine
220
220
  * 2. OPENROUTER_API_KEY is set AND the vendor's `{VENDOR}_API_KEY` is missing.
221
221
  */
222
222
  declare function shouldDefaultRouteViaOpenRouter(providerId: string | undefined, config: OpenRouterRoutingConfig): boolean;
223
+ type EffectiveOpenRouterTransportInput = {
224
+ provider?: string;
225
+ modelId?: string;
226
+ routeViaOpenRouter?: boolean;
227
+ };
228
+ /**
229
+ * Whether the effective runtime transport is OpenRouter.
230
+ * Honors explicit gateway override, then env defaults from {@link loadOpenRouterRoutingEnv}.
231
+ */
232
+ declare function isEffectiveOpenRouterTransport(config: OpenRouterRoutingConfig, input?: EffectiveOpenRouterTransportInput): boolean;
223
233
 
224
234
  type ModelResolutionInput = {
225
235
  /** Provider hint (openrouter, openai, anthropic, …). May be omitted. */
@@ -227,7 +237,7 @@ type ModelResolutionInput = {
227
237
  /** Model id, alias, shorthand, or partial name. Required. */
228
238
  model: string;
229
239
  };
230
- type ResolutionStrategy = "alias-registry" | "alias-as-provider-correction" | "exact-match" | "catalog-alias-match" | "canonical-slug-match" | "provider-prefix-injection" | "cross-provider-correction" | "version-suffix-strip" | "date-suffix-strip" | "shorthand-expansion" | "partial-name-match" | "local-provider-passthrough";
240
+ type ResolutionStrategy = "alias-registry" | "alias-as-provider-correction" | "exact-match" | "catalog-alias-match" | "canonical-slug-match" | "provider-prefix-injection" | "cross-provider-correction" | "version-suffix-strip" | "date-suffix-strip" | "shorthand-expansion" | "partial-name-match" | "local-provider-passthrough" | "ai-profiles-profile" | "ai-profiles-shortcut" | "ai-profiles-model-id";
231
241
  type ModelResolutionSuccess = {
232
242
  found: true;
233
243
  modelId: string;
@@ -237,6 +247,9 @@ type ModelResolutionSuccess = {
237
247
  resolvedVia: ResolutionStrategy[];
238
248
  resolvedReason: string;
239
249
  normalisedInput: string;
250
+ /** Set when resolution went through @x12i/ai-profiles. */
251
+ profile?: string;
252
+ choice?: string;
240
253
  };
241
254
  type ModelResolutionNotFound = {
242
255
  found: false;
@@ -262,6 +275,12 @@ type ModelResolverOptions = {
262
275
  additionalLocalProviders?: string[];
263
276
  /** Env-based OpenRouter vs direct routing. Defaults to loadOpenRouterRoutingEnv(). */
264
277
  routingEnv?: OpenRouterRoutingConfig;
278
+ /**
279
+ * Explicit transport override from gateway/router.
280
+ * When true, treat as OpenRouter regardless of vendor API keys.
281
+ * When false, treat as direct regardless of env defaults.
282
+ */
283
+ routeViaOpenRouter?: boolean;
265
284
  };
266
285
  type CatalogIndexes = {
267
286
  aliasIndex: Map<string, string>;
@@ -274,4 +293,4 @@ type ResolvedModel = {
274
293
  routedViaOpenRouter: boolean;
275
294
  };
276
295
 
277
- export { type AiModelPricing as A, type CatalogIndexes as C, type ModelListFilters as M, type OpenRouterArchitectureApi as O, type ResolutionStrategy as R, type AiModelRecord as a, type AliasEntry as b, type AliasFileSchema as c, AliasRegistry as d, type AliasRegistryOptions as e, type AliasValidationReport as f, type ModelListResult as g, type ModelResolutionInput as h, type ModelResolutionNotFound as i, type ModelResolutionResult as j, type ModelResolutionSuccess as k, type ModelResolverOptions as l, type OpenRouterModelApi as m, type OpenRouterModelsQuery as n, type OpenRouterModelsResponse as o, type OpenRouterOutputModality as p, type OpenRouterPricingApi as q, type OpenRouterRoutingConfig as r, type OpenRouterTopProviderApi as s, type ResolvedModel as t, type ResolvedModelRef as u, loadOpenRouterRoutingEnv as v, providerIdToEnvKeyPrefix as w, shouldDefaultRouteViaOpenRouter as x, vendorApiKeyEnvName as y };
296
+ export { type AiModelPricing as A, type CatalogIndexes as C, type ModelListFilters as M, type OpenRouterArchitectureApi as O, type ResolutionStrategy as R, type AiModelRecord as a, type AliasEntry as b, type AliasFileSchema as c, AliasRegistry as d, type AliasRegistryOptions as e, type AliasValidationReport as f, type ModelListResult as g, type ModelResolutionInput as h, type ModelResolutionNotFound as i, type ModelResolutionResult as j, type ModelResolutionSuccess as k, type ModelResolverOptions as l, type OpenRouterModelApi as m, type OpenRouterModelsQuery as n, type OpenRouterModelsResponse as o, type OpenRouterOutputModality as p, type OpenRouterPricingApi as q, type OpenRouterRoutingConfig as r, type OpenRouterTopProviderApi as s, type ResolvedModel as t, type ResolvedModelRef as u, isEffectiveOpenRouterTransport as v, loadOpenRouterRoutingEnv as w, providerIdToEnvKeyPrefix as x, shouldDefaultRouteViaOpenRouter as y, vendorApiKeyEnvName as z };
@@ -220,6 +220,16 @@ declare function loadOpenRouterRoutingEnv(env?: Record<string, string | undefine
220
220
  * 2. OPENROUTER_API_KEY is set AND the vendor's `{VENDOR}_API_KEY` is missing.
221
221
  */
222
222
  declare function shouldDefaultRouteViaOpenRouter(providerId: string | undefined, config: OpenRouterRoutingConfig): boolean;
223
+ type EffectiveOpenRouterTransportInput = {
224
+ provider?: string;
225
+ modelId?: string;
226
+ routeViaOpenRouter?: boolean;
227
+ };
228
+ /**
229
+ * Whether the effective runtime transport is OpenRouter.
230
+ * Honors explicit gateway override, then env defaults from {@link loadOpenRouterRoutingEnv}.
231
+ */
232
+ declare function isEffectiveOpenRouterTransport(config: OpenRouterRoutingConfig, input?: EffectiveOpenRouterTransportInput): boolean;
223
233
 
224
234
  type ModelResolutionInput = {
225
235
  /** Provider hint (openrouter, openai, anthropic, …). May be omitted. */
@@ -227,7 +237,7 @@ type ModelResolutionInput = {
227
237
  /** Model id, alias, shorthand, or partial name. Required. */
228
238
  model: string;
229
239
  };
230
- type ResolutionStrategy = "alias-registry" | "alias-as-provider-correction" | "exact-match" | "catalog-alias-match" | "canonical-slug-match" | "provider-prefix-injection" | "cross-provider-correction" | "version-suffix-strip" | "date-suffix-strip" | "shorthand-expansion" | "partial-name-match" | "local-provider-passthrough";
240
+ type ResolutionStrategy = "alias-registry" | "alias-as-provider-correction" | "exact-match" | "catalog-alias-match" | "canonical-slug-match" | "provider-prefix-injection" | "cross-provider-correction" | "version-suffix-strip" | "date-suffix-strip" | "shorthand-expansion" | "partial-name-match" | "local-provider-passthrough" | "ai-profiles-profile" | "ai-profiles-shortcut" | "ai-profiles-model-id";
231
241
  type ModelResolutionSuccess = {
232
242
  found: true;
233
243
  modelId: string;
@@ -237,6 +247,9 @@ type ModelResolutionSuccess = {
237
247
  resolvedVia: ResolutionStrategy[];
238
248
  resolvedReason: string;
239
249
  normalisedInput: string;
250
+ /** Set when resolution went through @x12i/ai-profiles. */
251
+ profile?: string;
252
+ choice?: string;
240
253
  };
241
254
  type ModelResolutionNotFound = {
242
255
  found: false;
@@ -262,6 +275,12 @@ type ModelResolverOptions = {
262
275
  additionalLocalProviders?: string[];
263
276
  /** Env-based OpenRouter vs direct routing. Defaults to loadOpenRouterRoutingEnv(). */
264
277
  routingEnv?: OpenRouterRoutingConfig;
278
+ /**
279
+ * Explicit transport override from gateway/router.
280
+ * When true, treat as OpenRouter regardless of vendor API keys.
281
+ * When false, treat as direct regardless of env defaults.
282
+ */
283
+ routeViaOpenRouter?: boolean;
265
284
  };
266
285
  type CatalogIndexes = {
267
286
  aliasIndex: Map<string, string>;
@@ -274,4 +293,4 @@ type ResolvedModel = {
274
293
  routedViaOpenRouter: boolean;
275
294
  };
276
295
 
277
- export { type AiModelPricing as A, type CatalogIndexes as C, type ModelListFilters as M, type OpenRouterArchitectureApi as O, type ResolutionStrategy as R, type AiModelRecord as a, type AliasEntry as b, type AliasFileSchema as c, AliasRegistry as d, type AliasRegistryOptions as e, type AliasValidationReport as f, type ModelListResult as g, type ModelResolutionInput as h, type ModelResolutionNotFound as i, type ModelResolutionResult as j, type ModelResolutionSuccess as k, type ModelResolverOptions as l, type OpenRouterModelApi as m, type OpenRouterModelsQuery as n, type OpenRouterModelsResponse as o, type OpenRouterOutputModality as p, type OpenRouterPricingApi as q, type OpenRouterRoutingConfig as r, type OpenRouterTopProviderApi as s, type ResolvedModel as t, type ResolvedModelRef as u, loadOpenRouterRoutingEnv as v, providerIdToEnvKeyPrefix as w, shouldDefaultRouteViaOpenRouter as x, vendorApiKeyEnvName as y };
296
+ export { type AiModelPricing as A, type CatalogIndexes as C, type ModelListFilters as M, type OpenRouterArchitectureApi as O, type ResolutionStrategy as R, type AiModelRecord as a, type AliasEntry as b, type AliasFileSchema as c, AliasRegistry as d, type AliasRegistryOptions as e, type AliasValidationReport as f, type ModelListResult as g, type ModelResolutionInput as h, type ModelResolutionNotFound as i, type ModelResolutionResult as j, type ModelResolutionSuccess as k, type ModelResolverOptions as l, type OpenRouterModelApi as m, type OpenRouterModelsQuery as n, type OpenRouterModelsResponse as o, type OpenRouterOutputModality as p, type OpenRouterPricingApi as q, type OpenRouterRoutingConfig as r, type OpenRouterTopProviderApi as s, type ResolvedModel as t, type ResolvedModelRef as u, isEffectiveOpenRouterTransport as v, loadOpenRouterRoutingEnv as w, providerIdToEnvKeyPrefix as x, shouldDefaultRouteViaOpenRouter as y, vendorApiKeyEnvName as z };