@happyvertical/smrt-config 0.51.29 → 0.51.32

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/dist/index.d.ts CHANGED
@@ -1335,6 +1335,30 @@ export declare interface SmrtGlobalConfig {
1335
1335
  */
1336
1336
  storage?: 'json' | 'native';
1337
1337
  };
1338
+ /**
1339
+ * Optional typed-decision provider configuration. This is deliberately
1340
+ * separate from generation configuration: configuring decisions never
1341
+ * changes the client used by `do()` or `describe()`.
1342
+ */
1343
+ decisions?: {
1344
+ /** The currently supported typed-decision provider. */
1345
+ type: 'typesafe';
1346
+ /** Provider credential. Prefer an environment-backed value in deployments. */
1347
+ apiKey?: string;
1348
+ /** Optional provider endpoint override, primarily for approved test hosts. */
1349
+ baseUrl?: string;
1350
+ /** Default decision model; individual evaluations may override it. */
1351
+ defaultModel?: string;
1352
+ /** Inclusive predicate threshold. A probability equal to it is true. */
1353
+ threshold?: number;
1354
+ /**
1355
+ * Opt in to a generative tie-break only when the probability is inside the
1356
+ * finite band centered on the threshold. Provider failures never use it.
1357
+ */
1358
+ uncertaintyFallback?: {
1359
+ band: number;
1360
+ };
1361
+ };
1338
1362
  [key: string]: unknown;
1339
1363
  }
1340
1364
 
@@ -1364,6 +1388,11 @@ declare global {
1364
1388
  }
1365
1389
 
1366
1390
 
1391
+ declare global {
1392
+ var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
1393
+ }
1394
+
1395
+
1367
1396
  /**
1368
1397
  * Extend globalThis to include loader cache properties.
1369
1398
  * Using globalThis ensures all module instances share the same loader state,
@@ -1376,8 +1405,3 @@ declare global {
1376
1405
  var __smrtLoaderCachedConfig: SmrtConfig | null | undefined;
1377
1406
  var __smrtLoaderExplorer: ReturnType<typeof cosmiconfig> | null | undefined;
1378
1407
  }
1379
-
1380
-
1381
- declare global {
1382
- var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
1383
- }
package/dist/types.d.ts CHANGED
@@ -786,6 +786,30 @@ export declare interface SmrtGlobalConfig {
786
786
  */
787
787
  storage?: 'json' | 'native';
788
788
  };
789
+ /**
790
+ * Optional typed-decision provider configuration. This is deliberately
791
+ * separate from generation configuration: configuring decisions never
792
+ * changes the client used by `do()` or `describe()`.
793
+ */
794
+ decisions?: {
795
+ /** The currently supported typed-decision provider. */
796
+ type: 'typesafe';
797
+ /** Provider credential. Prefer an environment-backed value in deployments. */
798
+ apiKey?: string;
799
+ /** Optional provider endpoint override, primarily for approved test hosts. */
800
+ baseUrl?: string;
801
+ /** Default decision model; individual evaluations may override it. */
802
+ defaultModel?: string;
803
+ /** Inclusive predicate threshold. A probability equal to it is true. */
804
+ threshold?: number;
805
+ /**
806
+ * Opt in to a generative tie-break only when the probability is inside the
807
+ * finite band centered on the threshold. Provider failures never use it.
808
+ */
809
+ uncertaintyFallback?: {
810
+ band: number;
811
+ };
812
+ };
789
813
  [key: string]: unknown;
790
814
  }
791
815
 
@@ -815,6 +839,11 @@ declare global {
815
839
  }
816
840
 
817
841
 
842
+ declare global {
843
+ var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
844
+ }
845
+
846
+
818
847
  /**
819
848
  * Extend globalThis to include loader cache properties.
820
849
  * Using globalThis ensures all module instances share the same loader state,
@@ -827,8 +856,3 @@ declare global {
827
856
  var __smrtLoaderCachedConfig: SmrtConfig | null | undefined;
828
857
  var __smrtLoaderExplorer: ReturnType<typeof cosmiconfig> | null | undefined;
829
858
  }
830
-
831
-
832
- declare global {
833
- var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
834
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-config",
3
- "version": "0.51.29",
3
+ "version": "0.51.32",
4
4
  "type": "module",
5
5
  "description": "Centralized configuration management for SMRT modules",
6
6
  "author": "HappyVertical",
@@ -19,7 +19,7 @@
19
19
  "AGENTS.md"
20
20
  ],
21
21
  "dependencies": {
22
- "@happyvertical/smrt-types": "0.51.29",
22
+ "@happyvertical/smrt-types": "0.51.32",
23
23
  "cosmiconfig": "^10.0.1",
24
24
  "jiti": "^2.7.0"
25
25
  },