@omnicross/core 0.4.2 → 0.4.4
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-4LSZ7NFM.js +50 -0
- 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-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-GWC7HCZI.cjs +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-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-PAXJGABW.js → chunk-MPFOC7AT.js} +10 -5
- package/dist/{chunk-DKBXDV5U.cjs → chunk-N3MGNLCU.cjs} +49 -44
- package/dist/chunk-NCZDUBC2.js +44 -0
- 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-QEOV6Y4E.cjs → chunk-RX3BCX53.cjs} +359 -170
- package/dist/{chunk-TX3AEV6H.cjs → chunk-RXMF7GNF.cjs} +4 -3
- package/dist/chunk-SQU2FGXI.cjs +50 -0
- 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-X6GHTNDL.cjs +482 -0
- package/dist/chunk-XBQTVRMK.js +45 -0
- package/dist/{chunk-R4VCO2CB.js → chunk-YEHQ5FXZ.js} +28 -0
- package/dist/{chunk-5TEWZN5J.js → chunk-YV4JSBPA.js} +278 -89
- 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 +8 -2
- package/dist/provider-proxy/identity/codexCliHeaders.d.cts +36 -7
- package/dist/provider-proxy/identity/codexCliHeaders.d.ts +36 -7
- package/dist/provider-proxy/identity/codexCliHeaders.js +7 -1
- 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-ECZ3ZE2C.js +0 -63
- package/dist/chunk-XEKD23J5.js +0 -9
package/dist/provider-proxy.cjs
CHANGED
|
@@ -40,27 +40,32 @@
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
44
|
-
require('./chunk-E4QHVXV5.cjs');
|
|
45
|
-
require('./chunk-HQP3K7PU.cjs');
|
|
43
|
+
var _chunkRX3BCX53cjs = require('./chunk-RX3BCX53.cjs');
|
|
46
44
|
require('./chunk-QVOB2DNX.cjs');
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-GBHYAGX3.cjs');
|
|
49
|
-
require('./chunk-3OPYJG76.cjs');
|
|
50
|
-
require('./chunk-3XVDFRCQ.cjs');
|
|
51
|
-
require('./chunk-KIQ2HA2A.cjs');
|
|
45
|
+
require('./chunk-UOOLU64V.cjs');
|
|
52
46
|
require('./chunk-NOITAVHA.cjs');
|
|
53
47
|
require('./chunk-QWNUOR7F.cjs');
|
|
54
|
-
require('./chunk-
|
|
55
|
-
require('./chunk-6DDYNS2B.cjs');
|
|
48
|
+
require('./chunk-47E3I5PF.cjs');
|
|
56
49
|
require('./chunk-5RSZYQJH.cjs');
|
|
50
|
+
require('./chunk-VGBJPHHD.cjs');
|
|
51
|
+
require('./chunk-CGEZQC2G.cjs');
|
|
52
|
+
require('./chunk-X6GHTNDL.cjs');
|
|
53
|
+
require('./chunk-E5RCCGE7.cjs');
|
|
54
|
+
require('./chunk-BTSADEX4.cjs');
|
|
57
55
|
require('./chunk-32SRZFFP.cjs');
|
|
58
56
|
require('./chunk-2E42SAW3.cjs');
|
|
59
57
|
require('./chunk-5UK3KLE2.cjs');
|
|
60
|
-
require('./chunk-
|
|
58
|
+
require('./chunk-7ZHBN75N.cjs');
|
|
59
|
+
require('./chunk-GBHYAGX3.cjs');
|
|
60
|
+
require('./chunk-3OPYJG76.cjs');
|
|
61
|
+
require('./chunk-J3QQ6JS5.cjs');
|
|
62
|
+
require('./chunk-E4QHVXV5.cjs');
|
|
63
|
+
require('./chunk-HQP3K7PU.cjs');
|
|
64
|
+
require('./chunk-SQU2FGXI.cjs');
|
|
61
65
|
require('./chunk-RPII3E6Z.cjs');
|
|
62
66
|
require('./chunk-6RPZADX3.cjs');
|
|
63
|
-
require('./chunk-
|
|
67
|
+
require('./chunk-GWC7HCZI.cjs');
|
|
68
|
+
require('./chunk-UKQHBK4Q.cjs');
|
|
64
69
|
require('./chunk-UIBD2YY5.cjs');
|
|
65
70
|
require('./chunk-R3HK6R4B.cjs');
|
|
66
71
|
require('./chunk-KQBLZMP6.cjs');
|
|
@@ -69,10 +74,11 @@ require('./chunk-QXD4MV2X.cjs');
|
|
|
69
74
|
require('./chunk-NYUNU75A.cjs');
|
|
70
75
|
require('./chunk-OTZC4TNH.cjs');
|
|
71
76
|
require('./chunk-7LRTPNFL.cjs');
|
|
72
|
-
require('./chunk-
|
|
77
|
+
require('./chunk-RXMF7GNF.cjs');
|
|
73
78
|
require('./chunk-SVNDB62D.cjs');
|
|
74
|
-
require('./chunk-BKXC4XM6.cjs');
|
|
75
79
|
require('./chunk-25GXJCEZ.cjs');
|
|
80
|
+
require('./chunk-FORICQ5U.cjs');
|
|
81
|
+
require('./chunk-KSMK45RD.cjs');
|
|
76
82
|
require('./chunk-FX325I5Q.cjs');
|
|
77
83
|
require('./chunk-AEOZIDEB.cjs');
|
|
78
84
|
require('./chunk-HCOQQAZE.cjs');
|
|
@@ -80,23 +86,24 @@ require('./chunk-APYG5QD7.cjs');
|
|
|
80
86
|
require('./chunk-L74VDN4A.cjs');
|
|
81
87
|
require('./chunk-XSVNC2UD.cjs');
|
|
82
88
|
require('./chunk-4YINUUKQ.cjs');
|
|
83
|
-
require('./chunk-
|
|
89
|
+
require('./chunk-57Y2EA2G.cjs');
|
|
84
90
|
require('./chunk-QBZJ7P2T.cjs');
|
|
85
|
-
require('./chunk-
|
|
91
|
+
require('./chunk-LL3MZ7O5.cjs');
|
|
86
92
|
require('./chunk-JMJBSACD.cjs');
|
|
87
93
|
require('./chunk-GMMT7RVN.cjs');
|
|
88
94
|
require('./chunk-UNEFIWXI.cjs');
|
|
89
95
|
require('./chunk-A2YMUCBT.cjs');
|
|
90
96
|
require('./chunk-GDIXXKF2.cjs');
|
|
91
|
-
require('./chunk-
|
|
92
|
-
require('./chunk-
|
|
97
|
+
require('./chunk-NDIBVTBZ.cjs');
|
|
98
|
+
require('./chunk-N3MGNLCU.cjs');
|
|
99
|
+
require('./chunk-4NAMH4UE.cjs');
|
|
93
100
|
require('./chunk-77USGNRW.cjs');
|
|
94
101
|
require('./chunk-IUL4VWNU.cjs');
|
|
95
|
-
require('./chunk-
|
|
102
|
+
require('./chunk-VFFCV4J6.cjs');
|
|
96
103
|
require('./chunk-235MXAGX.cjs');
|
|
97
|
-
require('./chunk-
|
|
104
|
+
require('./chunk-VYOBVPNB.cjs');
|
|
98
105
|
require('./chunk-NKVZ6Z3Y.cjs');
|
|
99
|
-
require('./chunk-
|
|
106
|
+
require('./chunk-INY54AYX.cjs');
|
|
100
107
|
require('./chunk-G4CZIUIB.cjs');
|
|
101
108
|
require('./chunk-2RCCLQYV.cjs');
|
|
102
109
|
|
|
@@ -141,4 +148,4 @@ require('./chunk-2RCCLQYV.cjs');
|
|
|
141
148
|
|
|
142
149
|
|
|
143
150
|
|
|
144
|
-
exports.DEFAULT_ROUTE_IDLE_MS =
|
|
151
|
+
exports.DEFAULT_ROUTE_IDLE_MS = _chunkRX3BCX53cjs.DEFAULT_ROUTE_IDLE_MS; exports.ProviderProxy = _chunkRX3BCX53cjs.ProviderProxy; exports.ProviderProxyRouteMap = _chunkRX3BCX53cjs.ProviderProxyRouteMap; exports.ROUTE_LEASE_API_VERSION = _chunkRX3BCX53cjs.ROUTE_LEASE_API_VERSION; exports.ROUTE_LEASE_CAPABILITIES = _chunkRX3BCX53cjs.ROUTE_LEASE_CAPABILITIES; exports.ROUTE_LEASE_CAPABILITIES_SCHEMA = _chunkRX3BCX53cjs.ROUTE_LEASE_CAPABILITIES_SCHEMA; exports.ROUTE_LEASE_CODEX_TOKEN_ENV = _chunkRX3BCX53cjs.ROUTE_LEASE_CODEX_TOKEN_ENV; exports.ROUTE_LEASE_DEFAULT_TTL_SECONDS = _chunkRX3BCX53cjs.ROUTE_LEASE_DEFAULT_TTL_SECONDS; exports.ROUTE_LEASE_MAX_CONSUMER_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_CONSUMER_BYTES; exports.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_EXECUTION_ID_BYTES; exports.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_IDEMPOTENCY_BYTES; exports.ROUTE_LEASE_MAX_MODEL_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_MODEL_BYTES; exports.ROUTE_LEASE_MAX_SESSION_ID_BYTES = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_SESSION_ID_BYTES; exports.ROUTE_LEASE_MAX_TTL_SECONDS = _chunkRX3BCX53cjs.ROUTE_LEASE_MAX_TTL_SECONDS; exports.ROUTE_LEASE_REQUEST_SCHEMA = _chunkRX3BCX53cjs.ROUTE_LEASE_REQUEST_SCHEMA; exports.ROUTE_LEASE_RESULT_SCHEMA = _chunkRX3BCX53cjs.ROUTE_LEASE_RESULT_SCHEMA; exports.ROUTE_LEASE_RUNTIMES = _chunkRX3BCX53cjs.ROUTE_LEASE_RUNTIMES; exports.ROUTE_LEASE_RUNTIME_TABLE = _chunkRX3BCX53cjs.ROUTE_LEASE_RUNTIME_TABLE; exports.ROUTE_LEASE_SESSION_HASH_DOMAIN = _chunkRX3BCX53cjs.ROUTE_LEASE_SESSION_HASH_DOMAIN; exports.ResponsesAffinityStore = _chunkRX3BCX53cjs.ResponsesAffinityStore; exports.RouteLeaseError = _chunkRX3BCX53cjs.RouteLeaseError; exports.RouteLeaseManager = _chunkRX3BCX53cjs.RouteLeaseManager; exports.RouteLeaseTargetResolver = _chunkRX3BCX53cjs.RouteLeaseTargetResolver; exports.SYSTEM_ROUTE_LEASE_CLOCK = _chunkRX3BCX53cjs.SYSTEM_ROUTE_LEASE_CLOCK; exports.__resetProviderProxyForTests = _chunkRX3BCX53cjs.__resetProviderProxyForTests; exports.canonicalizeRouteLeasePayload = _chunkRX3BCX53cjs.canonicalizeRouteLeasePayload; exports.classifyResponsesProfile = _chunkRX3BCX53cjs.classifyResponsesProfile; exports.createNativeResponsesHostedImageIngress = _chunkRX3BCX53cjs.createNativeResponsesHostedImageIngress; exports.createResponsesCompactHandler = _chunkRX3BCX53cjs.createResponsesCompactHandler; exports.extractRouteToken = _chunkRX3BCX53cjs.extractRouteToken; exports.getProviderProxy = _chunkRX3BCX53cjs.getProviderProxy; exports.getResponsesAffinityStore = _chunkRX3BCX53cjs.getResponsesAffinityStore; exports.hashRouteLeasePayload = _chunkRX3BCX53cjs.hashRouteLeasePayload; exports.hashRouteLeaseSessionId = _chunkRX3BCX53cjs.hashRouteLeaseSessionId; exports.isLoopbackAddress = _chunkRX3BCX53cjs.isLoopbackAddress; exports.normalizeRouteLeaseIdempotencyKey = _chunkRX3BCX53cjs.normalizeRouteLeaseIdempotencyKey; exports.normalizeRouteLeaseTtl = _chunkRX3BCX53cjs.normalizeRouteLeaseTtl; exports.parseRouteLeaseCreate = _chunkRX3BCX53cjs.parseRouteLeaseCreate; exports.previousResponseNotFound = _chunkRX3BCX53cjs.previousResponseNotFound; exports.registerResponsesCompactOperation = _chunkRX3BCX53cjs.registerResponsesCompactOperation; exports.routeLeaseRuntime = _chunkRX3BCX53cjs.routeLeaseRuntime;
|
|
@@ -2,7 +2,7 @@ import { b as RouteRegistrationOptions, P as ProviderProxy } from './ProviderPro
|
|
|
2
2
|
export { D as DEFAULT_ROUTE_IDLE_MS, a as ProviderProxyRouteMap, R as RouteEvictionReason, i as isLoopbackAddress } from './ProviderProxy-Bz_nkOwq.cjs';
|
|
3
3
|
import { D as IngressFormat, aD as RouteContext, $ as ResponsesAffinityStore, K as OpenAIOperationHandler, R as OpenAIOperationRegistry, a4 as ResponsesHostedImageRuntimeFactory, a2 as ResponsesHostedImageIngress, W as ProviderProxyDeps } from './types-BSIJdsyl.cjs';
|
|
4
4
|
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, X as ProxyAttribution, Y as ResponsesAffinityEntry, Z as ResponsesAffinityRecord, _ as ResponsesAffinityScope, a0 as ResponsesAffinityStoreOptions, a1 as ResponsesCredentialIdentity, a3 as ResponsesHostedImageRequestLease, a5 as ResponsesHostedImageRuntimeLease, ay as ResponsesProfile, az as ResponsesProfileDeclaration, aB as RetryCallback, aC as RouteAuthMode, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aK as classifyResponsesProfile, aN as getResponsesAffinityStore, aO as previousResponseNotFound } from './types-BSIJdsyl.cjs';
|
|
5
|
-
import { g as GatewayBindingTarget } from './types-
|
|
5
|
+
import { g as GatewayBindingTarget } from './types-C6m-Db26.cjs';
|
|
6
6
|
import { ProviderConfigSource } from './ports/provider-config-source.cjs';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import '@omnicross/contracts/completion-types';
|
|
@@ -22,7 +22,7 @@ import './frontends-Doz0RaWu.cjs';
|
|
|
22
22
|
import '@omnicross/contracts/search-types';
|
|
23
23
|
import './runtime-t8AZacFF.cjs';
|
|
24
24
|
import '@omnicross/contracts/image-generation-types';
|
|
25
|
-
import './types-
|
|
25
|
+
import './types-BVwJQ9ZS.cjs';
|
|
26
26
|
import 'node:fs/promises';
|
|
27
27
|
import '@omnicross/contracts/account-tokens-types';
|
|
28
28
|
import '@omnicross/contracts/audit-types';
|
package/dist/provider-proxy.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { b as RouteRegistrationOptions, P as ProviderProxy } from './ProviderPro
|
|
|
2
2
|
export { D as DEFAULT_ROUTE_IDLE_MS, a as ProviderProxyRouteMap, R as RouteEvictionReason, i as isLoopbackAddress } from './ProviderProxy-Ckr6oTrE.js';
|
|
3
3
|
import { D as IngressFormat, aD as RouteContext, $ as ResponsesAffinityStore, K as OpenAIOperationHandler, R as OpenAIOperationRegistry, a4 as ResponsesHostedImageRuntimeFactory, a2 as ResponsesHostedImageIngress, W as ProviderProxyDeps } from './types-By9Tg6-I.js';
|
|
4
4
|
export { A as AnthropicIngressHandler, a as AnthropicIngressHandlerFactory, b as AnthropicRouteHandlerParams, c as AnthropicSdkHints, E as ExtendedContextHint, X as ProxyAttribution, Y as ResponsesAffinityEntry, Z as ResponsesAffinityRecord, _ as ResponsesAffinityScope, a0 as ResponsesAffinityStoreOptions, a1 as ResponsesCredentialIdentity, a3 as ResponsesHostedImageRequestLease, a5 as ResponsesHostedImageRuntimeLease, ay as ResponsesProfile, az as ResponsesProfileDeclaration, aB as RetryCallback, aC as RouteAuthMode, aE as RouteLeaseUsageAttribution, aF as StreamEventCallback, aG as SubscriptionDispatchProfile, aH as SubscriptionRequestSummary, aI as TargetProviderFormat, aK as classifyResponsesProfile, aN as getResponsesAffinityStore, aO as previousResponseNotFound } from './types-By9Tg6-I.js';
|
|
5
|
-
import { g as GatewayBindingTarget } from './types-
|
|
5
|
+
import { g as GatewayBindingTarget } from './types-Da735j2d.js';
|
|
6
6
|
import { ProviderConfigSource } from './ports/provider-config-source.js';
|
|
7
7
|
import 'node:http';
|
|
8
8
|
import '@omnicross/contracts/completion-types';
|
|
@@ -22,7 +22,7 @@ import './frontends-Doz0RaWu.js';
|
|
|
22
22
|
import '@omnicross/contracts/search-types';
|
|
23
23
|
import './runtime-t8AZacFF.js';
|
|
24
24
|
import '@omnicross/contracts/image-generation-types';
|
|
25
|
-
import './types-
|
|
25
|
+
import './types-VAHRysdP.js';
|
|
26
26
|
import 'node:fs/promises';
|
|
27
27
|
import '@omnicross/contracts/account-tokens-types';
|
|
28
28
|
import '@omnicross/contracts/audit-types';
|
package/dist/provider-proxy.js
CHANGED
|
@@ -40,27 +40,32 @@ import {
|
|
|
40
40
|
previousResponseNotFound,
|
|
41
41
|
registerResponsesCompactOperation,
|
|
42
42
|
routeLeaseRuntime
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-MZEGQSKQ.js";
|
|
45
|
-
import "./chunk-VVEHS2LI.js";
|
|
43
|
+
} from "./chunk-YV4JSBPA.js";
|
|
46
44
|
import "./chunk-WTQMX2Q6.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-MZNPGW5Q.js";
|
|
49
|
-
import "./chunk-DK4A7DLE.js";
|
|
50
|
-
import "./chunk-PAXJGABW.js";
|
|
51
|
-
import "./chunk-HN74IGEO.js";
|
|
45
|
+
import "./chunk-MPFOC7AT.js";
|
|
52
46
|
import "./chunk-V53ZEFXC.js";
|
|
53
47
|
import "./chunk-7PIUVCKK.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-LFEH7CEO.js";
|
|
48
|
+
import "./chunk-TKZ3DZS5.js";
|
|
56
49
|
import "./chunk-FU7EAR73.js";
|
|
50
|
+
import "./chunk-IDPMD4B7.js";
|
|
51
|
+
import "./chunk-K6J2RIEX.js";
|
|
52
|
+
import "./chunk-ZJJBITUN.js";
|
|
53
|
+
import "./chunk-F6P4DIBL.js";
|
|
54
|
+
import "./chunk-OXBGNEYR.js";
|
|
57
55
|
import "./chunk-QIIAMBTM.js";
|
|
58
56
|
import "./chunk-FXR6N3SR.js";
|
|
59
57
|
import "./chunk-AQDON6MB.js";
|
|
60
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-EYGBM2VC.js";
|
|
59
|
+
import "./chunk-MZNPGW5Q.js";
|
|
60
|
+
import "./chunk-DK4A7DLE.js";
|
|
61
|
+
import "./chunk-GFIZ6LQI.js";
|
|
62
|
+
import "./chunk-MZEGQSKQ.js";
|
|
63
|
+
import "./chunk-VVEHS2LI.js";
|
|
64
|
+
import "./chunk-4LSZ7NFM.js";
|
|
61
65
|
import "./chunk-XTEI64OU.js";
|
|
62
66
|
import "./chunk-XX6NQJMA.js";
|
|
63
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-NCZDUBC2.js";
|
|
68
|
+
import "./chunk-ONTTXSRL.js";
|
|
64
69
|
import "./chunk-OE6TDIWW.js";
|
|
65
70
|
import "./chunk-DRWHTIIZ.js";
|
|
66
71
|
import "./chunk-X335TJNS.js";
|
|
@@ -69,10 +74,11 @@ import "./chunk-JWC6APFQ.js";
|
|
|
69
74
|
import "./chunk-5ERIZW3D.js";
|
|
70
75
|
import "./chunk-PO3XB56Z.js";
|
|
71
76
|
import "./chunk-V2UKUTJ3.js";
|
|
72
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-ZBDDPWVQ.js";
|
|
73
78
|
import "./chunk-AVYJ4YBN.js";
|
|
74
|
-
import "./chunk-C3NPMQTK.js";
|
|
75
79
|
import "./chunk-2JYRIADS.js";
|
|
80
|
+
import "./chunk-JHJRZ75C.js";
|
|
81
|
+
import "./chunk-XBQTVRMK.js";
|
|
76
82
|
import "./chunk-6OKXH2TW.js";
|
|
77
83
|
import "./chunk-WNY4WMRF.js";
|
|
78
84
|
import "./chunk-N76KU6F5.js";
|
|
@@ -80,23 +86,24 @@ import "./chunk-WLYIIEAF.js";
|
|
|
80
86
|
import "./chunk-TKJMZBAH.js";
|
|
81
87
|
import "./chunk-OZFM4X3S.js";
|
|
82
88
|
import "./chunk-3QFXFCHG.js";
|
|
83
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-ZMERU7D3.js";
|
|
84
90
|
import "./chunk-AQ5TNQB7.js";
|
|
85
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-6I4SAWCN.js";
|
|
86
92
|
import "./chunk-Y7FO65VT.js";
|
|
87
93
|
import "./chunk-FMOBD2OQ.js";
|
|
88
94
|
import "./chunk-HUZZZ3JL.js";
|
|
89
95
|
import "./chunk-H5JUT3KV.js";
|
|
90
96
|
import "./chunk-5NJLQ6T6.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-EE7VP4O3.js";
|
|
98
|
+
import "./chunk-QSOHEDKO.js";
|
|
99
|
+
import "./chunk-YEHQ5FXZ.js";
|
|
93
100
|
import "./chunk-WYVGULTQ.js";
|
|
94
101
|
import "./chunk-ZLNHPUFA.js";
|
|
95
|
-
import "./chunk-
|
|
102
|
+
import "./chunk-NTF7TLT7.js";
|
|
96
103
|
import "./chunk-3WD4HTR2.js";
|
|
97
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-FYPKKMB3.js";
|
|
98
105
|
import "./chunk-GL6XM527.js";
|
|
99
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-4RM22ETG.js";
|
|
100
107
|
import "./chunk-4JOU54M5.js";
|
|
101
108
|
import "./chunk-4PFWFODB.js";
|
|
102
109
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProviderConfigSource } from './ports/provider-config-source.js';
|
|
2
2
|
import { D as IngressFormat, aD as RouteContext } from './types-By9Tg6-I.js';
|
|
3
|
-
import {
|
|
3
|
+
import { v as OutboundEndpoint, _ as ModelRef, c as EndpointRoutingConfig, R as RequestRole } from './types-Da735j2d.js';
|
|
4
4
|
import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProviderConfigSource } from './ports/provider-config-source.cjs';
|
|
2
2
|
import { D as IngressFormat, aD as RouteContext } from './types-BSIJdsyl.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { v as OutboundEndpoint, _ as ModelRef, c as EndpointRoutingConfig, R as RequestRole } from './types-C6m-Db26.cjs';
|
|
4
4
|
import { SubscriptionProviderId } from '@omnicross/contracts/subscription-types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkVGBJPHHDcjs = require('../../chunk-VGBJPHHD.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,4 +13,4 @@ var _chunk6DDYNS2Bcjs = require('../../chunk-6DDYNS2B.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.DEFAULT_ANTHROPIC_PING_HEARTBEAT_MS =
|
|
16
|
+
exports.DEFAULT_ANTHROPIC_PING_HEARTBEAT_MS = _chunkVGBJPHHDcjs.DEFAULT_ANTHROPIC_PING_HEARTBEAT_MS; exports.__resetStopReasonContentFilterCountForTests = _chunkVGBJPHHDcjs.__resetStopReasonContentFilterCountForTests; exports.convertOpenAIStreamToAnthropic = _chunkVGBJPHHDcjs.convertOpenAIStreamToAnthropic; exports.getAnthropicPingHeartbeatMs = _chunkVGBJPHHDcjs.getAnthropicPingHeartbeatMs; exports.setAnthropicPingHeartbeatMs = _chunkVGBJPHHDcjs.setAnthropicPingHeartbeatMs; exports.stopReasonContentFilterCount = _chunkVGBJPHHDcjs.stopReasonContentFilterCount;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getAnthropicPingHeartbeatMs,
|
|
6
6
|
setAnthropicPingHeartbeatMs,
|
|
7
7
|
stopReasonContentFilterCount
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-IDPMD4B7.js";
|
|
9
9
|
export {
|
|
10
10
|
DEFAULT_ANTHROPIC_PING_HEARTBEAT_MS,
|
|
11
11
|
__resetStopReasonContentFilterCountForTests,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-6DDYNS2B.cjs');
|
|
3
|
+
var _chunk47E3I5PFcjs = require('../../chunk-47E3I5PF.cjs');
|
|
5
4
|
require('../../chunk-5RSZYQJH.cjs');
|
|
5
|
+
require('../../chunk-VGBJPHHD.cjs');
|
|
6
6
|
require('../../chunk-77USGNRW.cjs');
|
|
7
7
|
require('../../chunk-IUL4VWNU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.AnthropicTransformer =
|
|
10
|
+
exports.AnthropicTransformer = _chunk47E3I5PFcjs.AnthropicTransformer;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AnthropicTransformer
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-LFEH7CEO.js";
|
|
3
|
+
} from "../../chunk-TKZ3DZS5.js";
|
|
5
4
|
import "../../chunk-FU7EAR73.js";
|
|
5
|
+
import "../../chunk-IDPMD4B7.js";
|
|
6
6
|
import "../../chunk-WYVGULTQ.js";
|
|
7
7
|
import "../../chunk-ZLNHPUFA.js";
|
|
8
8
|
export {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkX6GHTNDLcjs = require('../../chunk-X6GHTNDL.cjs');
|
|
11
|
+
require('../../chunk-E5RCCGE7.cjs');
|
|
12
|
+
require('../../chunk-KSMK45RD.cjs');
|
|
13
|
+
require('../../chunk-NDIBVTBZ.cjs');
|
|
14
|
+
require('../../chunk-N3MGNLCU.cjs');
|
|
15
|
+
require('../../chunk-4NAMH4UE.cjs');
|
|
16
|
+
require('../../chunk-77USGNRW.cjs');
|
|
17
|
+
require('../../chunk-IUL4VWNU.cjs');
|
|
18
|
+
require('../../chunk-VFFCV4J6.cjs');
|
|
19
|
+
require('../../chunk-235MXAGX.cjs');
|
|
20
|
+
require('../../chunk-VYOBVPNB.cjs');
|
|
21
|
+
require('../../chunk-NKVZ6Z3Y.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.ANTIGRAVITY_ENDPOINT = _chunkX6GHTNDLcjs.ANTIGRAVITY_ENDPOINT; exports.ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION = _chunkX6GHTNDLcjs.ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION; exports.ANTIGRAVITY_FORCED_TOOL_DIRECTIVE = _chunkX6GHTNDLcjs.ANTIGRAVITY_FORCED_TOOL_DIRECTIVE; exports.AntigravityTransformer = _chunkX6GHTNDLcjs.AntigravityTransformer; exports.buildAntigravityUrl = _chunkX6GHTNDLcjs.buildAntigravityUrl; exports.checkForcedToolAssetDrift = _chunkX6GHTNDLcjs.checkForcedToolAssetDrift; exports.deriveAntigravitySessionId = _chunkX6GHTNDLcjs.deriveAntigravitySessionId; exports.resolveAntigravityWireModelId = _chunkX6GHTNDLcjs.resolveAntigravityWireModelId;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ThinkLevel } from '@omnicross/contracts/completion-types';
|
|
2
|
+
import { Transformer, TransformerLogger, UnifiedChatRequest, LLMProvider, TransformerContext } from '../types.cjs';
|
|
3
|
+
import '@omnicross/contracts/llm-config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AntigravityTransformer — the Antigravity subscription's Cloud Code Assist
|
|
7
|
+
* envelope (`daily-cloudcode-pa.googleapis.com`, antigravity-subscription-
|
|
8
|
+
* provider design D2/D3/D4).
|
|
9
|
+
*
|
|
10
|
+
* Antigravity shares the gemini-cli CCA wire's INNER body (the standard
|
|
11
|
+
* `generateContent` request nested under `request`, the same SSE `.response`
|
|
12
|
+
* peeling) — so this transformer consumes the SAME shared components as
|
|
13
|
+
* `GeminiCodeAssistTransformer` (`ccaEnvelope` + the gemini request/response
|
|
14
|
+
* utils) and layers ONLY the antigravity-specific OUTER differences on top:
|
|
15
|
+
*
|
|
16
|
+
* Request (antigravity envelope):
|
|
17
|
+
* {
|
|
18
|
+
* project: <resolved project id>, // REQUIRED (always resolved)
|
|
19
|
+
* model: <WIRE model id>, // post effort/thinking variant routing
|
|
20
|
+
* requestId: "agent/<uuid>/<ts>/<uuid>/<step>",
|
|
21
|
+
* userAgent: "antigravity",
|
|
22
|
+
* requestType: "agent",
|
|
23
|
+
* request: { // standard generateContent body
|
|
24
|
+
* contents, systemInstruction (role "user"), tools, toolConfig,
|
|
25
|
+
* generationConfig, sessionId, labels
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* Per-family decoration (ONE dispatch profile — the family differences live
|
|
30
|
+
* HERE, not in per-model transformer selection; design D3):
|
|
31
|
+
* - Gemini / gpt-oss: effort variant id routing (`gemini-3.5-flash`+low →
|
|
32
|
+
* `gemini-3.5-flash-extra-low` etc.), per-wire-id `maxOutputTokens`
|
|
33
|
+
* profile clamp, forced-tool directive injection (a STATIC pinned asset),
|
|
34
|
+
* `labels.model_enum` telemetry token, VALIDATED tool mode default.
|
|
35
|
+
* - Claude: thinking variant as an INDEPENDENT wire id, legacy
|
|
36
|
+
* `parameters` tool schema (NOT `parametersJsonSchema`), the
|
|
37
|
+
* `anthropic-beta` interleaved-thinking header, NO `model_enum` label,
|
|
38
|
+
* ALWAYS VALIDATED tool mode.
|
|
39
|
+
*
|
|
40
|
+
* Masquerade: the antigravity/hub User-Agent (version hot-probed with a
|
|
41
|
+
* pinned 2.8.0 fallback — `antigravityIdentity`); the auth strategy
|
|
42
|
+
* re-stamps the same value after the chain, keeping one source.
|
|
43
|
+
*
|
|
44
|
+
* URL: `${daily-cloudcode-pa}/v1internal:streamGenerateContent?alt=sse`
|
|
45
|
+
* (the sandbox failover swap is applied by the dispatch retry seam, not
|
|
46
|
+
* here — the transformer emits the primary endpoint URL).
|
|
47
|
+
*
|
|
48
|
+
* @module transformer/transformers/AntigravityTransformer
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The forced-tool directive, pinned as a STATIC asset (design D4): a frozen
|
|
53
|
+
* copy of the reference client's instruction (source version 2.8.0). It does
|
|
54
|
+
* NOT follow the hot-probed UA version — a drift between the probe and this
|
|
55
|
+
* pin only logs a hint (see `checkForcedToolAssetDrift`).
|
|
56
|
+
*/
|
|
57
|
+
declare const ANTIGRAVITY_FORCED_TOOL_DIRECTIVE = "TOOL-ONLY TURN. This turn accepts a tool call and nothing else; a text reply here is discarded unread and you will be re-prompted. Emit the tool call now.";
|
|
58
|
+
/** The version the forced-tool asset above was frozen from. */
|
|
59
|
+
declare const ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION = "2.8.0";
|
|
60
|
+
/**
|
|
61
|
+
* When the hot-probed UA version drifts from the forced-tool asset's frozen
|
|
62
|
+
* version, log a hint for manual review (design D4: pin + 人工复查 — the asset
|
|
63
|
+
* NEVER auto-follows the probe).
|
|
64
|
+
*/
|
|
65
|
+
declare function checkForcedToolAssetDrift(currentVersion: string, log?: (message: string) => void): void;
|
|
66
|
+
interface AntigravityWireResolution {
|
|
67
|
+
/** The upstream wire model id (post variant routing). */
|
|
68
|
+
wireModelId: string;
|
|
69
|
+
/** Whether a variant route engaged (the wire id encodes the effort). */
|
|
70
|
+
variantEngaged: boolean;
|
|
71
|
+
/** The negotiated effort level (undefined when the request carried none). */
|
|
72
|
+
effort: ThinkLevel | undefined;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Resolve the logical model + the request's reasoning intent to the upstream
|
|
76
|
+
* WIRE model id. Effort participation is driven by the CANONICAL registry's
|
|
77
|
+
* `thinkingLevels` (no per-provider negotiation branch): a model with no
|
|
78
|
+
* non-none thinking levels never routes a variant. Exported for tests.
|
|
79
|
+
*/
|
|
80
|
+
declare function resolveAntigravityWireModelId(logicalModelId: string, request: UnifiedChatRequest, provider?: Pick<LLMProvider, 'modelConfigs'>): AntigravityWireResolution;
|
|
81
|
+
/** The antigravity generateContent endpoint base (primary; failover swaps host). */
|
|
82
|
+
declare const ANTIGRAVITY_ENDPOINT = "https://daily-cloudcode-pa.googleapis.com";
|
|
83
|
+
/** Build the antigravity generateContent URL (colon-method, shared construction). */
|
|
84
|
+
declare function buildAntigravityUrl(stream: boolean, base?: string): string;
|
|
85
|
+
/** `-<decimal>` signed session id from the first user text's SHA-256 (stable per conversation). */
|
|
86
|
+
declare function deriveAntigravitySessionId(text: string): string;
|
|
87
|
+
/**
|
|
88
|
+
* AntigravityTransformer — registered under `antigravity`. Consumes the shared
|
|
89
|
+
* CCA envelope components; see the module doc for the wire shape.
|
|
90
|
+
*/
|
|
91
|
+
declare class AntigravityTransformer implements Transformer {
|
|
92
|
+
static TransformerName: string;
|
|
93
|
+
name: string;
|
|
94
|
+
logger?: TransformerLogger;
|
|
95
|
+
/** The URL is built per-request (colon-method, no fixed endpoint pattern). */
|
|
96
|
+
endPoint: undefined;
|
|
97
|
+
transformRequestIn(request: UnifiedChatRequest, provider: LLMProvider, _context: TransformerContext): Promise<Record<string, unknown>>;
|
|
98
|
+
/** antigravity request → unified (endpoint-decode parity with the gemini one). */
|
|
99
|
+
transformRequestOut(request: unknown, _context: TransformerContext): Promise<UnifiedChatRequest>;
|
|
100
|
+
/** antigravity response → OpenAI-compatible: peel `.response`, delegate. */
|
|
101
|
+
transformResponseOut(response: Response, _context: TransformerContext): Promise<Response>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { ANTIGRAVITY_ENDPOINT, ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION, ANTIGRAVITY_FORCED_TOOL_DIRECTIVE, AntigravityTransformer, type AntigravityWireResolution, buildAntigravityUrl, checkForcedToolAssetDrift, deriveAntigravitySessionId, resolveAntigravityWireModelId };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ThinkLevel } from '@omnicross/contracts/completion-types';
|
|
2
|
+
import { Transformer, TransformerLogger, UnifiedChatRequest, LLMProvider, TransformerContext } from '../types.js';
|
|
3
|
+
import '@omnicross/contracts/llm-config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AntigravityTransformer — the Antigravity subscription's Cloud Code Assist
|
|
7
|
+
* envelope (`daily-cloudcode-pa.googleapis.com`, antigravity-subscription-
|
|
8
|
+
* provider design D2/D3/D4).
|
|
9
|
+
*
|
|
10
|
+
* Antigravity shares the gemini-cli CCA wire's INNER body (the standard
|
|
11
|
+
* `generateContent` request nested under `request`, the same SSE `.response`
|
|
12
|
+
* peeling) — so this transformer consumes the SAME shared components as
|
|
13
|
+
* `GeminiCodeAssistTransformer` (`ccaEnvelope` + the gemini request/response
|
|
14
|
+
* utils) and layers ONLY the antigravity-specific OUTER differences on top:
|
|
15
|
+
*
|
|
16
|
+
* Request (antigravity envelope):
|
|
17
|
+
* {
|
|
18
|
+
* project: <resolved project id>, // REQUIRED (always resolved)
|
|
19
|
+
* model: <WIRE model id>, // post effort/thinking variant routing
|
|
20
|
+
* requestId: "agent/<uuid>/<ts>/<uuid>/<step>",
|
|
21
|
+
* userAgent: "antigravity",
|
|
22
|
+
* requestType: "agent",
|
|
23
|
+
* request: { // standard generateContent body
|
|
24
|
+
* contents, systemInstruction (role "user"), tools, toolConfig,
|
|
25
|
+
* generationConfig, sessionId, labels
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* Per-family decoration (ONE dispatch profile — the family differences live
|
|
30
|
+
* HERE, not in per-model transformer selection; design D3):
|
|
31
|
+
* - Gemini / gpt-oss: effort variant id routing (`gemini-3.5-flash`+low →
|
|
32
|
+
* `gemini-3.5-flash-extra-low` etc.), per-wire-id `maxOutputTokens`
|
|
33
|
+
* profile clamp, forced-tool directive injection (a STATIC pinned asset),
|
|
34
|
+
* `labels.model_enum` telemetry token, VALIDATED tool mode default.
|
|
35
|
+
* - Claude: thinking variant as an INDEPENDENT wire id, legacy
|
|
36
|
+
* `parameters` tool schema (NOT `parametersJsonSchema`), the
|
|
37
|
+
* `anthropic-beta` interleaved-thinking header, NO `model_enum` label,
|
|
38
|
+
* ALWAYS VALIDATED tool mode.
|
|
39
|
+
*
|
|
40
|
+
* Masquerade: the antigravity/hub User-Agent (version hot-probed with a
|
|
41
|
+
* pinned 2.8.0 fallback — `antigravityIdentity`); the auth strategy
|
|
42
|
+
* re-stamps the same value after the chain, keeping one source.
|
|
43
|
+
*
|
|
44
|
+
* URL: `${daily-cloudcode-pa}/v1internal:streamGenerateContent?alt=sse`
|
|
45
|
+
* (the sandbox failover swap is applied by the dispatch retry seam, not
|
|
46
|
+
* here — the transformer emits the primary endpoint URL).
|
|
47
|
+
*
|
|
48
|
+
* @module transformer/transformers/AntigravityTransformer
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The forced-tool directive, pinned as a STATIC asset (design D4): a frozen
|
|
53
|
+
* copy of the reference client's instruction (source version 2.8.0). It does
|
|
54
|
+
* NOT follow the hot-probed UA version — a drift between the probe and this
|
|
55
|
+
* pin only logs a hint (see `checkForcedToolAssetDrift`).
|
|
56
|
+
*/
|
|
57
|
+
declare const ANTIGRAVITY_FORCED_TOOL_DIRECTIVE = "TOOL-ONLY TURN. This turn accepts a tool call and nothing else; a text reply here is discarded unread and you will be re-prompted. Emit the tool call now.";
|
|
58
|
+
/** The version the forced-tool asset above was frozen from. */
|
|
59
|
+
declare const ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION = "2.8.0";
|
|
60
|
+
/**
|
|
61
|
+
* When the hot-probed UA version drifts from the forced-tool asset's frozen
|
|
62
|
+
* version, log a hint for manual review (design D4: pin + 人工复查 — the asset
|
|
63
|
+
* NEVER auto-follows the probe).
|
|
64
|
+
*/
|
|
65
|
+
declare function checkForcedToolAssetDrift(currentVersion: string, log?: (message: string) => void): void;
|
|
66
|
+
interface AntigravityWireResolution {
|
|
67
|
+
/** The upstream wire model id (post variant routing). */
|
|
68
|
+
wireModelId: string;
|
|
69
|
+
/** Whether a variant route engaged (the wire id encodes the effort). */
|
|
70
|
+
variantEngaged: boolean;
|
|
71
|
+
/** The negotiated effort level (undefined when the request carried none). */
|
|
72
|
+
effort: ThinkLevel | undefined;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Resolve the logical model + the request's reasoning intent to the upstream
|
|
76
|
+
* WIRE model id. Effort participation is driven by the CANONICAL registry's
|
|
77
|
+
* `thinkingLevels` (no per-provider negotiation branch): a model with no
|
|
78
|
+
* non-none thinking levels never routes a variant. Exported for tests.
|
|
79
|
+
*/
|
|
80
|
+
declare function resolveAntigravityWireModelId(logicalModelId: string, request: UnifiedChatRequest, provider?: Pick<LLMProvider, 'modelConfigs'>): AntigravityWireResolution;
|
|
81
|
+
/** The antigravity generateContent endpoint base (primary; failover swaps host). */
|
|
82
|
+
declare const ANTIGRAVITY_ENDPOINT = "https://daily-cloudcode-pa.googleapis.com";
|
|
83
|
+
/** Build the antigravity generateContent URL (colon-method, shared construction). */
|
|
84
|
+
declare function buildAntigravityUrl(stream: boolean, base?: string): string;
|
|
85
|
+
/** `-<decimal>` signed session id from the first user text's SHA-256 (stable per conversation). */
|
|
86
|
+
declare function deriveAntigravitySessionId(text: string): string;
|
|
87
|
+
/**
|
|
88
|
+
* AntigravityTransformer — registered under `antigravity`. Consumes the shared
|
|
89
|
+
* CCA envelope components; see the module doc for the wire shape.
|
|
90
|
+
*/
|
|
91
|
+
declare class AntigravityTransformer implements Transformer {
|
|
92
|
+
static TransformerName: string;
|
|
93
|
+
name: string;
|
|
94
|
+
logger?: TransformerLogger;
|
|
95
|
+
/** The URL is built per-request (colon-method, no fixed endpoint pattern). */
|
|
96
|
+
endPoint: undefined;
|
|
97
|
+
transformRequestIn(request: UnifiedChatRequest, provider: LLMProvider, _context: TransformerContext): Promise<Record<string, unknown>>;
|
|
98
|
+
/** antigravity request → unified (endpoint-decode parity with the gemini one). */
|
|
99
|
+
transformRequestOut(request: unknown, _context: TransformerContext): Promise<UnifiedChatRequest>;
|
|
100
|
+
/** antigravity response → OpenAI-compatible: peel `.response`, delegate. */
|
|
101
|
+
transformResponseOut(response: Response, _context: TransformerContext): Promise<Response>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { ANTIGRAVITY_ENDPOINT, ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION, ANTIGRAVITY_FORCED_TOOL_DIRECTIVE, AntigravityTransformer, type AntigravityWireResolution, buildAntigravityUrl, checkForcedToolAssetDrift, deriveAntigravitySessionId, resolveAntigravityWireModelId };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ANTIGRAVITY_ENDPOINT,
|
|
3
|
+
ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION,
|
|
4
|
+
ANTIGRAVITY_FORCED_TOOL_DIRECTIVE,
|
|
5
|
+
AntigravityTransformer,
|
|
6
|
+
buildAntigravityUrl,
|
|
7
|
+
checkForcedToolAssetDrift,
|
|
8
|
+
deriveAntigravitySessionId,
|
|
9
|
+
resolveAntigravityWireModelId
|
|
10
|
+
} from "../../chunk-ZJJBITUN.js";
|
|
11
|
+
import "../../chunk-F6P4DIBL.js";
|
|
12
|
+
import "../../chunk-XBQTVRMK.js";
|
|
13
|
+
import "../../chunk-EE7VP4O3.js";
|
|
14
|
+
import "../../chunk-QSOHEDKO.js";
|
|
15
|
+
import "../../chunk-YEHQ5FXZ.js";
|
|
16
|
+
import "../../chunk-WYVGULTQ.js";
|
|
17
|
+
import "../../chunk-ZLNHPUFA.js";
|
|
18
|
+
import "../../chunk-NTF7TLT7.js";
|
|
19
|
+
import "../../chunk-3WD4HTR2.js";
|
|
20
|
+
import "../../chunk-FYPKKMB3.js";
|
|
21
|
+
import "../../chunk-GL6XM527.js";
|
|
22
|
+
export {
|
|
23
|
+
ANTIGRAVITY_ENDPOINT,
|
|
24
|
+
ANTIGRAVITY_FORCED_TOOL_ASSET_VERSION,
|
|
25
|
+
ANTIGRAVITY_FORCED_TOOL_DIRECTIVE,
|
|
26
|
+
AntigravityTransformer,
|
|
27
|
+
buildAntigravityUrl,
|
|
28
|
+
checkForcedToolAssetDrift,
|
|
29
|
+
deriveAntigravitySessionId,
|
|
30
|
+
resolveAntigravityWireModelId
|
|
31
|
+
};
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('../../chunk-
|
|
8
|
+
var _chunkN3MGNLCUcjs = require('../../chunk-N3MGNLCU.cjs');
|
|
9
|
+
require('../../chunk-4NAMH4UE.cjs');
|
|
10
10
|
require('../../chunk-77USGNRW.cjs');
|
|
11
11
|
require('../../chunk-IUL4VWNU.cjs');
|
|
12
12
|
|
|
@@ -16,4 +16,4 @@ require('../../chunk-IUL4VWNU.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.GeminiCodeAssistTransformer =
|
|
19
|
+
exports.GeminiCodeAssistTransformer = _chunkN3MGNLCUcjs.GeminiCodeAssistTransformer; exports.buildCodeAssistUrl = _chunkN3MGNLCUcjs.buildCodeAssistUrl; exports.getGeminiCliIdentityHeaders = _chunkN3MGNLCUcjs.getGeminiCliIdentityHeaders; exports.getGeminiCliUserAgent = _chunkN3MGNLCUcjs.getGeminiCliUserAgent; exports.resolveCodeAssistApiVersion = _chunkN3MGNLCUcjs.resolveCodeAssistApiVersion; exports.resolveCodeAssistEndpoint = _chunkN3MGNLCUcjs.resolveCodeAssistEndpoint;
|
|
@@ -58,7 +58,8 @@ declare function getGeminiCliUserAgent(modelId?: string): string;
|
|
|
58
58
|
/** The static client-identity headers every Code Assist request carries. */
|
|
59
59
|
declare function getGeminiCliIdentityHeaders(modelId?: string): Record<string, string>;
|
|
60
60
|
/**
|
|
61
|
-
* Build the Code Assist URL
|
|
61
|
+
* Build the Code Assist URL (shared colon-method construction, see
|
|
62
|
+
* `ccaEnvelope.buildCcaMethodUrl`): `${base}/${version}:${method}`.
|
|
62
63
|
* NOTE: no `/models/<model>` segment — the model goes in the body.
|
|
63
64
|
*/
|
|
64
65
|
declare function buildCodeAssistUrl(stream: boolean): string;
|
|
@@ -58,7 +58,8 @@ declare function getGeminiCliUserAgent(modelId?: string): string;
|
|
|
58
58
|
/** The static client-identity headers every Code Assist request carries. */
|
|
59
59
|
declare function getGeminiCliIdentityHeaders(modelId?: string): Record<string, string>;
|
|
60
60
|
/**
|
|
61
|
-
* Build the Code Assist URL
|
|
61
|
+
* Build the Code Assist URL (shared colon-method construction, see
|
|
62
|
+
* `ccaEnvelope.buildCcaMethodUrl`): `${base}/${version}:${method}`.
|
|
62
63
|
* NOTE: no `/models/<model>` segment — the model goes in the body.
|
|
63
64
|
*/
|
|
64
65
|
declare function buildCodeAssistUrl(stream: boolean): string;
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
getGeminiCliUserAgent,
|
|
6
6
|
resolveCodeAssistApiVersion,
|
|
7
7
|
resolveCodeAssistEndpoint
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-QSOHEDKO.js";
|
|
9
|
+
import "../../chunk-YEHQ5FXZ.js";
|
|
10
10
|
import "../../chunk-WYVGULTQ.js";
|
|
11
11
|
import "../../chunk-ZLNHPUFA.js";
|
|
12
12
|
export {
|