audit-tools 0.32.13 → 0.32.14

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 (41) hide show
  1. package/dist/audit/cli/dispatch/quotaPool.d.ts +6 -0
  2. package/dist/audit/cli/dispatch/quotaPool.d.ts.map +1 -1
  3. package/dist/audit/cli/dispatch/quotaPool.js +11 -4
  4. package/dist/audit/cli/dispatch/quotaPool.js.map +1 -1
  5. package/dist/audit/cli/dispatch.d.ts.map +1 -1
  6. package/dist/audit/cli/dispatch.js +6 -1
  7. package/dist/audit/cli/dispatch.js.map +1 -1
  8. package/dist/audit/orchestrator/executorRunners.js +1 -1
  9. package/dist/audit/orchestrator/executorRunners.js.map +1 -1
  10. package/dist/audit/orchestrator/intakeExecutors.d.ts +1 -1
  11. package/dist/audit/orchestrator/intakeExecutors.d.ts.map +1 -1
  12. package/dist/audit/orchestrator/intakeExecutors.js +11 -3
  13. package/dist/audit/orchestrator/intakeExecutors.js.map +1 -1
  14. package/dist/audit/orchestrator/providerConfirmation.d.ts.map +1 -1
  15. package/dist/audit/orchestrator/providerConfirmation.js +6 -2
  16. package/dist/audit/orchestrator/providerConfirmation.js.map +1 -1
  17. package/dist/remediate/steps/dispatch.d.ts +6 -1
  18. package/dist/remediate/steps/dispatch.d.ts.map +1 -1
  19. package/dist/remediate/steps/dispatch.js +24 -7
  20. package/dist/remediate/steps/dispatch.js.map +1 -1
  21. package/dist/shared/dispatch/costRank.d.ts +114 -0
  22. package/dist/shared/dispatch/costRank.d.ts.map +1 -0
  23. package/dist/shared/dispatch/costRank.js +155 -0
  24. package/dist/shared/dispatch/costRank.js.map +1 -0
  25. package/dist/shared/index.d.ts +4 -2
  26. package/dist/shared/index.d.ts.map +1 -1
  27. package/dist/shared/index.js +4 -2
  28. package/dist/shared/index.js.map +1 -1
  29. package/dist/shared/providers/providerConfirmation.d.ts +20 -0
  30. package/dist/shared/providers/providerConfirmation.d.ts.map +1 -1
  31. package/dist/shared/providers/providerConfirmation.js +45 -0
  32. package/dist/shared/providers/providerConfirmation.js.map +1 -1
  33. package/dist/shared/providers/sharedProviderConfirmation.d.ts +10 -0
  34. package/dist/shared/providers/sharedProviderConfirmation.d.ts.map +1 -1
  35. package/dist/shared/providers/sharedProviderConfirmation.js +22 -2
  36. package/dist/shared/providers/sharedProviderConfirmation.js.map +1 -1
  37. package/dist/shared/types/providerConfirmation.d.ts +27 -1
  38. package/dist/shared/types/providerConfirmation.d.ts.map +1 -1
  39. package/dist/shared/types/providerConfirmation.js +5 -1
  40. package/dist/shared/types/providerConfirmation.js.map +1 -1
  41. package/package.json +1 -1
@@ -13,8 +13,12 @@ import type { CapabilityTier } from "../providers/providerConfirmation.js";
13
13
  /**
14
14
  * Version string for the ProviderConfirmationResult contract.
15
15
  * Increment when any breaking interface change lands.
16
+ *
17
+ * 1.1.0 — additive cost-first-routing fields on ConfirmedPoolEntry
18
+ * (`model_id`, `blended_price_usd_per_mtok`, `cost_order`). See
19
+ * spec/cost-first-routing.md.
16
20
  */
17
- export declare const PROVIDER_CONFIRMATION_RESULT_VERSION: "1.0.0";
21
+ export declare const PROVIDER_CONFIRMATION_RESULT_VERSION: "1.1.0";
18
22
  /** One entry in the confirmed provider pool. */
19
23
  export interface ConfirmedPoolEntry {
20
24
  /** Canonical provider name. */
@@ -37,6 +41,28 @@ export interface ConfirmedPoolEntry {
37
41
  self_spawn_blocked?: boolean;
38
42
  /** Optional reason for exclusion or detection restriction. */
39
43
  reason?: string;
44
+ /**
45
+ * Representative model id this entry is priced/ordered by (cost-first routing;
46
+ * spec/cost-first-routing.md). For a configured API pool it is the configured
47
+ * model; for a host-reported roster entry it is that roster model. Absent when
48
+ * the concrete model is not knowable at confirmation time (e.g. a CLI backend
49
+ * whose roster arrives only at the dispatch handshake).
50
+ */
51
+ model_id?: string;
52
+ /**
53
+ * Suggested blended price ($/Mtok) the tool computed from the models.dev
54
+ * snapshot for `model_id`, or `null` when the dataset can't price it (surfaced
55
+ * to the operator as "price unknown"). Advisory — the authoritative routing key
56
+ * is `cost_order` once the operator confirms.
57
+ */
58
+ blended_price_usd_per_mtok?: number | null;
59
+ /**
60
+ * Operator-confirmed 0-based cost position (rung 1 of costRank). Lower routes
61
+ * first. Defaults to the tool's price-ascending suggestion; the operator may
62
+ * reorder. Read back at dispatch via `resolveConfirmedCostPositions`. Absent ⇒
63
+ * the pool falls to real price then tier at dispatch.
64
+ */
65
+ cost_order?: number;
40
66
  }
41
67
  /**
42
68
  * Output of Gate-0 / Gate-1 provider confirmation.
@@ -1 +1 @@
1
- {"version":3,"file":"providerConfirmation.d.ts","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAM3E;;;GAGG;AACH,eAAO,MAAM,oCAAoC,EAAG,OAAgB,CAAC;AAMrE,gDAAgD;AAChD,MAAM,WAAW,kBAAkB;IACjC,+BAA+B;IAC/B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,kDAAkD;IAClD,eAAe,EAAE,cAAc,CAAC;IAChC;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,wEAAwE;IACxE,cAAc,EAAE,OAAO,oCAAoC,CAAC;IAC5D,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB"}
1
+ {"version":3,"file":"providerConfirmation.d.ts","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAM3E;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,EAAG,OAAgB,CAAC;AAMrE,gDAAgD;AAChD,MAAM,WAAW,kBAAkB;IACjC,+BAA+B;IAC/B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,kDAAkD;IAClD,eAAe,EAAE,cAAc,CAAC;IAChC;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,wEAAwE;IACxE,cAAc,EAAE,OAAO,oCAAoC,CAAC;IAC5D,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB"}
@@ -14,6 +14,10 @@
14
14
  /**
15
15
  * Version string for the ProviderConfirmationResult contract.
16
16
  * Increment when any breaking interface change lands.
17
+ *
18
+ * 1.1.0 — additive cost-first-routing fields on ConfirmedPoolEntry
19
+ * (`model_id`, `blended_price_usd_per_mtok`, `cost_order`). See
20
+ * spec/cost-first-routing.md.
17
21
  */
18
- export const PROVIDER_CONFIRMATION_RESULT_VERSION = "1.0.0";
22
+ export const PROVIDER_CONFIRMATION_RESULT_VERSION = "1.1.0";
19
23
  //# sourceMappingURL=providerConfirmation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"providerConfirmation.js","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"providerConfirmation.js","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,OAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "audit-tools",
3
- "version": "0.32.13",
3
+ "version": "0.32.14",
4
4
  "private": false,
5
5
  "license": "ISC",
6
6
  "description": "Portable hybrid code auditing + remediation orchestrators for arbitrary repositories.",