@genesislcap/ai-assistant 15.107.0 → 15.108.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.
@@ -4822,7 +4822,7 @@ var MutableAIProviderRegistry = class _MutableAIProviderRegistry {
4822
4822
 
4823
4823
  // ../../foundation-ai/dist/esm/tiers/ai-tiers.js
4824
4824
  var AI_TIER_IDS = ["low", "high", "reasoning"];
4825
- var AI_TIER_VENDORS = ["anthropic", "gemini"];
4825
+ var AI_TIER_VENDORS = ["anthropic", "gemini", "openai"];
4826
4826
  var AI_STALL_TIMEOUT_MS = 6e4;
4827
4827
  var AI_NO_RESPONSE_TIMEOUT_MS = 3e5;
4828
4828
  var DEFAULT_AI_TIERS = Object.freeze({
@@ -4878,14 +4878,47 @@ var DEFAULT_AI_TIERS = Object.freeze({
4878
4878
  stallTimeoutMs: AI_STALL_TIMEOUT_MS,
4879
4879
  timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
4880
4880
  })
4881
+ }),
4882
+ // NOT BENCHED. Proposed defaults picked by price and capability tier alone, so that a
4883
+ // generated app can name `vendor: 'openai'` at all; they have not been through the ui-builder
4884
+ // bench the Anthropic and Gemini rows came out of. Run that bench before treating these as a
4885
+ // platform decision, and move any row it disagrees with.
4886
+ //
4887
+ // No `maxTokens` on any row: `max_output_tokens` is optional on the Responses API and the
4888
+ // transport omits it when unset, so the model's own ceiling applies and a whole-file write is
4889
+ // not truncated the way Anthropic's 4096 default would truncate it.
4890
+ openai: Object.freeze({
4891
+ // The cheapest GPT-6 tier ($0.10 / $0.50), and one of the two that accepts reasoning
4892
+ // effort `none`, so a caller that turns thinking off gets no reasoning at all.
4893
+ low: Object.freeze({
4894
+ model: "gpt-6-luna",
4895
+ stallTimeoutMs: AI_STALL_TIMEOUT_MS,
4896
+ timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
4897
+ }),
4898
+ // $1 / $5, and it also accepts effort `none`, so tool loops that turn thinking off are not
4899
+ // forced to pay for it.
4900
+ high: Object.freeze({
4901
+ model: "gpt-6.1-terra",
4902
+ stallTimeoutMs: AI_STALL_TIMEOUT_MS,
4903
+ timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
4904
+ }),
4905
+ // $2 / $10 rather than gpt-6-astra's $10 / $50. It cannot turn reasoning off (`off` runs at
4906
+ // effort `low`), which suits a tier asked for judgement calls. Its transport warns on every
4907
+ // construction that it is the dearer model; that warning is expected here.
4908
+ reasoning: Object.freeze({
4909
+ model: "gpt-6.1-sol",
4910
+ stallTimeoutMs: AI_STALL_TIMEOUT_MS,
4911
+ timeoutMs: AI_NO_RESPONSE_TIMEOUT_MS
4912
+ })
4881
4913
  })
4882
4914
  });
4883
4915
  function resolveAITiers(overrides) {
4884
- if (!(overrides === null || overrides === void 0 ? void 0 : overrides.anthropic) && !(overrides === null || overrides === void 0 ? void 0 : overrides.gemini))
4916
+ if (!(overrides === null || overrides === void 0 ? void 0 : overrides.anthropic) && !(overrides === null || overrides === void 0 ? void 0 : overrides.gemini) && !(overrides === null || overrides === void 0 ? void 0 : overrides.openai))
4885
4917
  return DEFAULT_AI_TIERS;
4886
4918
  return Object.freeze({
4887
4919
  anthropic: mergeVendor(DEFAULT_AI_TIERS.anthropic, overrides.anthropic),
4888
- gemini: mergeVendor(DEFAULT_AI_TIERS.gemini, overrides.gemini)
4920
+ gemini: mergeVendor(DEFAULT_AI_TIERS.gemini, overrides.gemini),
4921
+ openai: mergeVendor(DEFAULT_AI_TIERS.openai, overrides.openai)
4889
4922
  });
4890
4923
  }
4891
4924
  function mergeVendor(defaults, overrides) {