@omnicross/core 0.4.2 → 0.4.3
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/auth/GeminiCodeAssistProjectResolver.cjs +11 -184
- package/dist/auth/GeminiCodeAssistProjectResolver.d.cts +41 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.d.ts +41 -3
- package/dist/auth/GeminiCodeAssistProjectResolver.js +12 -185
- package/dist/{chunk-POUTD5AM.cjs → chunk-47E3I5PF.cjs} +10 -3
- package/dist/{chunk-WX2E2G7H.cjs → chunk-4NAMH4UE.cjs} +79 -51
- package/dist/{chunk-LQYS2N47.js → chunk-4RM22ETG.js} +14 -2
- package/dist/{chunk-YEVWA4C7.cjs → chunk-57Y2EA2G.cjs} +6 -5
- package/dist/chunk-6I4SAWCN.js +24 -0
- package/dist/chunk-AFH5CEMF.cjs +38 -0
- package/dist/{chunk-KIQ2HA2A.cjs → chunk-BTSADEX4.cjs} +5 -5
- package/dist/chunk-CGEZQC2G.cjs +67 -0
- package/dist/chunk-E5RCCGE7.cjs +95 -0
- package/dist/chunk-EE7VP4O3.js +230 -0
- package/dist/chunk-F6P4DIBL.js +95 -0
- package/dist/{chunk-BKXC4XM6.cjs → chunk-FORICQ5U.cjs} +15 -11
- package/dist/{chunk-PF7YQBKX.js → chunk-FYPKKMB3.js} +6 -2
- package/dist/chunk-HRBXQ5AC.js +44 -0
- package/dist/{chunk-LFEH7CEO.js → chunk-IDPMD4B7.js} +22 -0
- package/dist/{chunk-UPQIWJIE.cjs → chunk-INY54AYX.cjs} +14 -2
- package/dist/{chunk-QEOV6Y4E.cjs → chunk-J5XMB5KY.cjs} +359 -170
- package/dist/{chunk-C3NPMQTK.js → chunk-JHJRZ75C.js} +14 -10
- package/dist/chunk-K6J2RIEX.js +67 -0
- package/dist/chunk-KSMK45RD.cjs +45 -0
- package/dist/chunk-LL3MZ7O5.cjs +24 -0
- package/dist/{chunk-ECZ3ZE2C.js → chunk-M6PKXP6T.js} +4 -29
- package/dist/{chunk-PAXJGABW.js → chunk-MPFOC7AT.js} +10 -5
- package/dist/{chunk-DKBXDV5U.cjs → chunk-N3MGNLCU.cjs} +49 -44
- package/dist/chunk-NDIBVTBZ.cjs +230 -0
- package/dist/{chunk-5DJSOFEP.js → chunk-NTF7TLT7.js} +1 -1
- package/dist/chunk-ONTTXSRL.js +32 -0
- package/dist/{chunk-HN74IGEO.js → chunk-OXBGNEYR.js} +1 -1
- package/dist/{chunk-5GXOYVLB.js → chunk-QSOHEDKO.js} +44 -39
- package/dist/{chunk-TX3AEV6H.cjs → chunk-RXMF7GNF.cjs} +4 -3
- package/dist/{chunk-5TEWZN5J.js → chunk-SWY2LTMR.js} +277 -88
- package/dist/{chunk-EUZRH544.js → chunk-TKZ3DZS5.js} +10 -3
- package/dist/{chunk-MXI2PWIC.cjs → chunk-UKQHBK4Q.cjs} +1 -32
- package/dist/{chunk-3XVDFRCQ.cjs → chunk-UOOLU64V.cjs} +13 -8
- package/dist/{chunk-ZSA44G7J.cjs → chunk-VFFCV4J6.cjs} +3 -3
- package/dist/{chunk-6DDYNS2B.cjs → chunk-VGBJPHHD.cjs} +36 -14
- package/dist/{chunk-2T6D7LWE.cjs → chunk-VYOBVPNB.cjs} +6 -2
- package/dist/chunk-WYECWQ3J.cjs +44 -0
- package/dist/chunk-X6GHTNDL.cjs +482 -0
- package/dist/chunk-XBQTVRMK.js +45 -0
- package/dist/{chunk-R4VCO2CB.js → chunk-YEHQ5FXZ.js} +28 -0
- package/dist/{chunk-HDXSPXIN.js → chunk-ZBDDPWVQ.js} +4 -3
- package/dist/chunk-ZJJBITUN.js +482 -0
- package/dist/{chunk-QRXOLINS.js → chunk-ZMERU7D3.js} +3 -2
- package/dist/completion/CompletionService.cjs +29 -22
- package/dist/completion/CompletionService.js +28 -21
- package/dist/completion.cjs +29 -22
- package/dist/completion.js +28 -21
- package/dist/image-generation.cjs +2 -2
- package/dist/image-generation.d.cts +2 -2
- package/dist/image-generation.d.ts +2 -2
- package/dist/image-generation.js +1 -1
- package/dist/index.cjs +40 -29
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +40 -29
- package/dist/outbound-api/routeResolver.cjs +3 -3
- package/dist/outbound-api/routeResolver.d.cts +3 -3
- package/dist/outbound-api/routeResolver.d.ts +3 -3
- package/dist/outbound-api/routeResolver.js +2 -2
- package/dist/outbound-api/types.cjs +6 -2
- package/dist/outbound-api/types.d.cts +2 -2
- package/dist/outbound-api/types.d.ts +2 -2
- package/dist/outbound-api/types.js +7 -3
- package/dist/outbound-api.cjs +33 -22
- package/dist/outbound-api.d.cts +4 -4
- package/dist/outbound-api.d.ts +4 -4
- package/dist/outbound-api.js +33 -22
- package/dist/pipeline/AccountAllowanceScheduling.cjs +4 -3
- package/dist/pipeline/AccountAllowanceScheduling.d.cts +4 -4
- package/dist/pipeline/AccountAllowanceScheduling.d.ts +4 -4
- package/dist/pipeline/AccountAllowanceScheduling.js +3 -2
- package/dist/pipeline/AccountAllowanceStore.cjs +2 -2
- package/dist/pipeline/AccountAllowanceStore.js +1 -1
- package/dist/pipeline/AuthSource.d.cts +6 -0
- package/dist/pipeline/AuthSource.d.ts +6 -0
- package/dist/pipeline/SubscriptionAuthSource.cjs +5 -4
- package/dist/pipeline/SubscriptionAuthSource.js +4 -3
- package/dist/pipeline/SubscriptionAuthStrategy.d.cts +7 -0
- package/dist/pipeline/SubscriptionAuthStrategy.d.ts +7 -0
- package/dist/pipeline/antigravityQuotaFamily.cjs +16 -0
- package/dist/pipeline/antigravityQuotaFamily.d.cts +52 -0
- package/dist/pipeline/antigravityQuotaFamily.d.ts +52 -0
- package/dist/pipeline/antigravityQuotaFamily.js +16 -0
- package/dist/pipeline/upstreamFetch.cjs +3 -3
- package/dist/pipeline/upstreamFetch.js +2 -2
- package/dist/ports.d.cts +2 -2
- package/dist/ports.d.ts +2 -2
- package/dist/provider-proxy/ProviderProxy.cjs +29 -22
- package/dist/provider-proxy/ProviderProxy.js +28 -21
- package/dist/provider-proxy/identity/codexCliHeaders.cjs +4 -2
- package/dist/provider-proxy/identity/codexCliHeaders.js +4 -2
- package/dist/provider-proxy/identity/openCodeGoHeaders.cjs +17 -0
- package/dist/provider-proxy/identity/openCodeGoHeaders.d.cts +71 -0
- package/dist/provider-proxy/identity/openCodeGoHeaders.d.ts +71 -0
- package/dist/provider-proxy/identity/openCodeGoHeaders.js +17 -0
- package/dist/provider-proxy/ingress/providerProxyShared.cjs +29 -22
- package/dist/provider-proxy/ingress/providerProxyShared.js +28 -21
- package/dist/provider-proxy.cjs +29 -22
- package/dist/provider-proxy.d.cts +2 -2
- package/dist/provider-proxy.d.ts +2 -2
- package/dist/provider-proxy.js +28 -21
- package/dist/{routeResolver-STwMz_G4.d.ts → routeResolver-BLTleO4H.d.ts} +1 -1
- package/dist/{routeResolver-Da0yvkL1.d.cts → routeResolver-C2z0pp-q.d.cts} +1 -1
- package/dist/transformer/transformers/AnthropicOpenAIToAnthropicStream.cjs +2 -2
- package/dist/transformer/transformers/AnthropicOpenAIToAnthropicStream.js +1 -1
- package/dist/transformer/transformers/AnthropicTransformer.cjs +3 -3
- package/dist/transformer/transformers/AnthropicTransformer.js +2 -2
- package/dist/transformer/transformers/AntigravityTransformer.cjs +31 -0
- package/dist/transformer/transformers/AntigravityTransformer.d.cts +104 -0
- package/dist/transformer/transformers/AntigravityTransformer.d.ts +104 -0
- package/dist/transformer/transformers/AntigravityTransformer.js +31 -0
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.cjs +3 -3
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.d.cts +2 -1
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.d.ts +2 -1
- package/dist/transformer/transformers/GeminiCodeAssistTransformer.js +2 -2
- package/dist/transformer/transformers/GeminiTransformer.cjs +3 -3
- package/dist/transformer/transformers/GeminiTransformer.js +2 -2
- package/dist/transformer/transformers/antigravityFailover.cjs +30 -0
- package/dist/transformer/transformers/antigravityFailover.d.cts +52 -0
- package/dist/transformer/transformers/antigravityFailover.d.ts +52 -0
- package/dist/transformer/transformers/antigravityFailover.js +30 -0
- package/dist/transformer/transformers/antigravityIdentity.cjs +24 -0
- package/dist/transformer/transformers/antigravityIdentity.d.cts +76 -0
- package/dist/transformer/transformers/antigravityIdentity.d.ts +76 -0
- package/dist/transformer/transformers/antigravityIdentity.js +24 -0
- package/dist/transformer/transformers.cjs +61 -9
- package/dist/transformer/transformers.d.cts +7 -2
- package/dist/transformer/transformers.d.ts +7 -2
- package/dist/transformer/transformers.js +61 -9
- package/dist/transformer/types.d.cts +11 -0
- package/dist/transformer/types.d.ts +11 -0
- package/dist/transformer.cjs +21 -12
- package/dist/transformer.d.cts +3 -0
- package/dist/transformer.d.ts +3 -0
- package/dist/transformer.js +20 -11
- package/dist/{types-Be-yt_6T.d.cts → types-BVwJQ9ZS.d.cts} +3 -0
- package/dist/{types-D-oHYusb.d.cts → types-C6m-Db26.d.cts} +25 -4
- package/dist/{types-Dvlpjn0d.d.ts → types-Da735j2d.d.ts} +25 -4
- package/dist/{types-Dm4_36V4.d.ts → types-VAHRysdP.d.ts} +3 -0
- package/package.json +2 -2
- package/dist/chunk-4IH4EL7M.cjs +0 -9
- package/dist/chunk-XEKD23J5.js +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as ImageApiLimits } from './types-
|
|
1
|
+
import { e as ImageApiLimits } from './types-VAHRysdP.js';
|
|
2
2
|
import { ProxyConfig } from '@omnicross/contracts/account-tokens-types';
|
|
3
3
|
import { AuditConfig } from '@omnicross/contracts/audit-types';
|
|
4
4
|
import { BillingConfig } from '@omnicross/contracts/billing-types';
|
|
@@ -295,11 +295,32 @@ interface SearchServerConfig {
|
|
|
295
295
|
maxAttempts?: number;
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
+
/** Registered image providers (the routing table's legal target values). */
|
|
299
|
+
type ImageProviderId = 'codex-subscription' | 'antigravity-subscription';
|
|
300
|
+
declare const IMAGE_PROVIDER_IDS: readonly ImageProviderId[];
|
|
301
|
+
/**
|
|
302
|
+
* The pinned default model→provider routing table (multi-provider-image-
|
|
303
|
+
* generation D1). Codex keeps both live image models; the canonical antigravity
|
|
304
|
+
* NanoBanana models ride the antigravity identity (gemini-cli is out of scope
|
|
305
|
+
* for images by the 2026-09-08 decision). The table lists ROUTED models only —
|
|
306
|
+
* effective availability is still the per-provider capability intersection.
|
|
307
|
+
*/
|
|
308
|
+
declare const DEFAULT_IMAGE_MODEL_ROUTES: Readonly<Record<string, ImageProviderId>>;
|
|
309
|
+
interface ImagesCodexAdapterConfig {
|
|
310
|
+
/** The image tool's model id on the Codex private wire (default `gpt-image-2`). */
|
|
311
|
+
imageModel: string;
|
|
312
|
+
/** The Responses carrier model wrapping the image tool (default `gpt-5.6-luna`). */
|
|
313
|
+
carrierModel: string;
|
|
314
|
+
}
|
|
298
315
|
interface ImagesServerConfig {
|
|
299
316
|
enabled: boolean;
|
|
300
|
-
provider
|
|
317
|
+
/** Model→provider routing. Legal targets are exactly `IMAGE_PROVIDER_IDS`. */
|
|
318
|
+
models: Record<string, ImageProviderId>;
|
|
301
319
|
defaultModel: string;
|
|
302
|
-
|
|
320
|
+
/** Display aliases → routed model ids (targets must exist in `models`). */
|
|
321
|
+
aliases: Record<string, string>;
|
|
322
|
+
/** Codex private-wire adapter parameters (defaults pinned to the wire constants). */
|
|
323
|
+
codex: ImagesCodexAdapterConfig;
|
|
303
324
|
account: {
|
|
304
325
|
id?: string;
|
|
305
326
|
group?: string;
|
|
@@ -1146,4 +1167,4 @@ interface OutboundApiDeps {
|
|
|
1146
1167
|
readonly searchRuntime?: SearchRuntime | null;
|
|
1147
1168
|
}
|
|
1148
1169
|
|
|
1149
|
-
export { type
|
|
1170
|
+
export { type AnthropicConfigSegment as $, type AccountProbeConfig as A, type OutboundPermission as B, type ChatDispatchMode as C, DEFAULT_IMAGE_MODEL_ROUTES as D, ENDPOINT_MODEL_KINDS as E, type FingerprintConfig as F, type GatewayBinding as G, type OutboundProxyConfig as H, IMAGE_PROVIDER_IDS as I, type ResponsesModelKind as J, type KeySpendReader as K, type VoucherDb as L, type MessagesModelKind as M, computeVoucherGrant as N, type OutboundKeyDb as O, generateVoucherCode as P, hashVoucherCode as Q, type RequestRole as R, type SearchServerConfig as S, newVoucherId as T, type UserMessageQueueConfig as U, type VoucherCreateInput as V, startOfLocalDay as W, startOfLocalWeek as X, toVoucherInfo as Y, voucherCodePrefix as Z, type ModelRef as _, type AllowanceSchedulingConfig as a, type AccountHealthConfig as a0, type AnthropicCountTokensMode as a1, type AnthropicModelsShape as a2, type ImageModelCatalogReader as a3, type OutboundKeyModelRestrictionMode as a4, type ConcurrencyQueueConfig as b, type EndpointRoutingConfig as c, type GatewayBindingFallback as d, type GatewayBindingKeyScope as e, type GatewayBindingModelMode as f, type GatewayBindingTarget as g, type GatewayModelMapping as h, type ImageProviderId as i, type ImagesCodexAdapterConfig as j, type ImagesServerConfig as k, type KeySpendSeeder as l, KeySpendTracker as m, type KindMappedEndpoint as n, type ModelKind as o, type ModelPrefixTargets as p, type OutboundApiDeps as q, type OutboundApiKeyCreated as r, type OutboundApiKeyInfo as s, type OutboundApiServerConfig as t, type OutboundApiServerStatus as u, type OutboundEndpoint as v, type OutboundFormatUrls as w, type OutboundKeyActivationMode as x, type OutboundKeyDbRow as y, type OutboundKeyPolicy as z };
|
|
@@ -140,9 +140,12 @@ interface RemoteImageAssetResolver {
|
|
|
140
140
|
}
|
|
141
141
|
interface ImageApiRuntime {
|
|
142
142
|
readonly tenantId: string;
|
|
143
|
+
/** The DEFAULT model's provider (status/validation); per-request dispatch resolves via `modelRoutes`. */
|
|
143
144
|
readonly providerId: string;
|
|
144
145
|
readonly defaultModel: string;
|
|
145
146
|
readonly modelAliases: ReadonlyMap<string, string>;
|
|
147
|
+
/** Model→provider routing (multi-provider-image-generation D1); models absent here are `unsupported_model`. */
|
|
148
|
+
readonly modelRoutes: ReadonlyMap<string, string>;
|
|
146
149
|
readonly limits: ImageApiLimits;
|
|
147
150
|
readonly preferredAccountId?: string;
|
|
148
151
|
readonly preferredAccountGroup?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnicross/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Omnicross LLM serving core — provider dispatch, completion pipeline, transformers, and the provider proxy.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sayo (https://github.com/Dumoedss)",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@mozilla/readability": "^0.6.0",
|
|
59
|
-
"@omnicross/contracts": "^0.4.
|
|
59
|
+
"@omnicross/contracts": "^0.4.3",
|
|
60
60
|
"busboy": "^1.6.0",
|
|
61
61
|
"entities": "^6.0.1",
|
|
62
62
|
"impit": "^0.14.4",
|
package/dist/chunk-4IH4EL7M.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/outbound-api/types.ts
|
|
2
|
-
var ENDPOINT_MODEL_KINDS = {
|
|
3
|
-
messages: ["fable", "opus", "sonnet", "haiku"],
|
|
4
|
-
responses: ["codex", "mini"]
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.ENDPOINT_MODEL_KINDS = ENDPOINT_MODEL_KINDS;
|