@zuplo/cli 7.2.1 → 7.2.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/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.js +3 -1
- package/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs +3 -1
- package/node_modules/@posthog/core/dist/utils/index.d.ts +0 -1
- package/node_modules/@posthog/core/dist/utils/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/index.js +0 -14
- package/node_modules/@posthog/core/dist/utils/index.mjs +1 -2
- package/node_modules/@posthog/core/package.json +1 -1
- package/node_modules/@posthog/core/src/error-tracking/coercers/object-coercer.ts +5 -1
- package/node_modules/@posthog/core/src/error-tracking/error-properties-builder.coerce.spec.ts +36 -0
- package/node_modules/@posthog/core/src/utils/index.ts +0 -4
- package/node_modules/@zuplo/core/customer.cli.minified.js +207 -207
- package/node_modules/@zuplo/core/index.minified.js +211 -211
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-GK3X4WPN.js → chunk-TPXAFGLU.js} +99 -99
- package/node_modules/@zuplo/runtime/out/esm/chunk-TPXAFGLU.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +32 -41
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-GK3X4WPN.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-GK3X4WPN.js.LEGAL.txt → chunk-TPXAFGLU.js.LEGAL.txt} +0 -0
|
@@ -140,8 +140,7 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* Authenticates requests to an AI Gateway
|
|
144
|
-
* keys.
|
|
143
|
+
* Authenticates requests to an AI Gateway endpoint with application API keys.
|
|
145
144
|
*
|
|
146
145
|
* Add this policy to an application's `inboundPolicyChain` to require a key
|
|
147
146
|
* for that app only, or place it on the route before the configuration
|
|
@@ -156,9 +155,8 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
|
|
|
156
155
|
* `/:app_id/(.*)`), this policy also requires
|
|
157
156
|
* `configuration.id === request.params.app_id` and returns 403 on mismatch.
|
|
158
157
|
*
|
|
159
|
-
* @title AI Gateway Authentication
|
|
158
|
+
* @title AI Gateway Authentication
|
|
160
159
|
* @product ai-gateway
|
|
161
|
-
* @hidden
|
|
162
160
|
* @requiresAI
|
|
163
161
|
* @public
|
|
164
162
|
*
|
|
@@ -170,7 +168,7 @@ export declare interface AIGatewayAuthInboundPolicyOptions {
|
|
|
170
168
|
*
|
|
171
169
|
* @example
|
|
172
170
|
* ```json
|
|
173
|
-
* // policies.json - Authenticate an AI Gateway
|
|
171
|
+
* // policies.json - Authenticate an AI Gateway route
|
|
174
172
|
* {
|
|
175
173
|
* "name": "ai-gateway-auth",
|
|
176
174
|
* "policyType": "ai-gateway-auth-v2",
|
|
@@ -249,7 +247,7 @@ export declare type AIGatewayCapability =
|
|
|
249
247
|
* loader has not already) and runs the inbound policy chain from that
|
|
250
248
|
* configuration.
|
|
251
249
|
*
|
|
252
|
-
* Place this policy on AI Gateway
|
|
250
|
+
* Place this policy on AI Gateway routes after optional authentication and
|
|
253
251
|
* optional `ai-gateway-configuration-loader-v2-inbound`. When either of those
|
|
254
252
|
* already populated the app-configuration channel, this policy reuses it.
|
|
255
253
|
* Otherwise it loads the configuration with the route's `app_id` path
|
|
@@ -261,9 +259,8 @@ export declare type AIGatewayCapability =
|
|
|
261
259
|
* deep copy of its entry options, so a policy mutating its options cannot
|
|
262
260
|
* corrupt the cached app configuration.
|
|
263
261
|
*
|
|
264
|
-
* @title AI Gateway Configuration Executor
|
|
262
|
+
* @title AI Gateway Configuration Executor
|
|
265
263
|
* @product ai-gateway
|
|
266
|
-
* @hidden
|
|
267
264
|
* @requiresAI
|
|
268
265
|
*/
|
|
269
266
|
export declare class AIGatewayConfigurationExecutorV2InboundPolicy extends InboundPolicy<AIGatewayConfigurationExecutorV2InboundPolicyOptions> {
|
|
@@ -294,7 +291,7 @@ export declare interface AIGatewayConfigurationExecutorV2InboundPolicyOptions {
|
|
|
294
291
|
* Loads the AI Gateway app configuration for the request into the
|
|
295
292
|
* request-scoped channel and does nothing else.
|
|
296
293
|
*
|
|
297
|
-
* Place this policy on AI Gateway
|
|
294
|
+
* Place this policy on AI Gateway routes before
|
|
298
295
|
* `ai-gateway-configuration-executor-v2-inbound` when you want configuration
|
|
299
296
|
* loading separated from chain execution. When `ai-gateway-auth-v2-inbound`
|
|
300
297
|
* already populated the channel, this policy reuses it. Otherwise it loads
|
|
@@ -303,9 +300,8 @@ export declare interface AIGatewayConfigurationExecutorV2InboundPolicyOptions {
|
|
|
303
300
|
* If this policy is omitted, the configuration executor still loads
|
|
304
301
|
* configuration itself before running the application chain.
|
|
305
302
|
*
|
|
306
|
-
* @title AI Gateway Configuration Loader
|
|
303
|
+
* @title AI Gateway Configuration Loader
|
|
307
304
|
* @product ai-gateway
|
|
308
|
-
* @hidden
|
|
309
305
|
* @requiresAI
|
|
310
306
|
*/
|
|
311
307
|
export declare class AIGatewayConfigurationLoaderV2InboundPolicy extends InboundPolicy<AIGatewayConfigurationLoaderV2InboundPolicyOptions> {
|
|
@@ -336,7 +332,6 @@ export declare interface AIGatewayConfigurationLoaderV2InboundPolicyOptions {
|
|
|
336
332
|
* Data Loss Prevention (DLP) Inbound Policy for the AI Gateway
|
|
337
333
|
* @title Data Loss Prevention (DLP)
|
|
338
334
|
* @product ai-gateway
|
|
339
|
-
* @hidden
|
|
340
335
|
* @requiresAI
|
|
341
336
|
*
|
|
342
337
|
* Scans the content of AI requests and responses — system prompts, message
|
|
@@ -400,11 +395,10 @@ export declare interface AIGatewayDlpInboundPolicyOptions {
|
|
|
400
395
|
/**
|
|
401
396
|
* Adds failure and quota fallbacks to an existing AI Gateway model selection.
|
|
402
397
|
*
|
|
403
|
-
* Place this policy after AI Gateway Model Filtering
|
|
398
|
+
* Place this policy after AI Gateway Model Filtering. It never creates a
|
|
404
399
|
* model selection, so a misplaced policy cannot bypass filtering.
|
|
405
400
|
*
|
|
406
|
-
* @title AI Gateway Fallback Model
|
|
407
|
-
* @beta
|
|
401
|
+
* @title AI Gateway Fallback Model
|
|
408
402
|
* @product ai-gateway
|
|
409
403
|
* @requiresAI
|
|
410
404
|
* @param request - The ZuploRequest
|
|
@@ -603,7 +597,7 @@ export declare interface AIGatewayMeteringInboundPolicyOptions {
|
|
|
603
597
|
}
|
|
604
598
|
|
|
605
599
|
/**
|
|
606
|
-
* Meters AI Gateway
|
|
600
|
+
* Meters AI Gateway usage and enforces app and ancestor usage limits.
|
|
607
601
|
*
|
|
608
602
|
* Limits configured on parent teams or the bucket root are enforced through a
|
|
609
603
|
* server-side hierarchical check.
|
|
@@ -611,8 +605,7 @@ export declare interface AIGatewayMeteringInboundPolicyOptions {
|
|
|
611
605
|
* The authentication policy must run before this policy so the app
|
|
612
606
|
* configuration id is available for meter storage and analytics.
|
|
613
607
|
*
|
|
614
|
-
* @title AI Gateway Metering
|
|
615
|
-
* @beta
|
|
608
|
+
* @title AI Gateway Metering
|
|
616
609
|
* @product ai-gateway
|
|
617
610
|
* @requiresAI
|
|
618
611
|
* @param request - The ZuploRequest
|
|
@@ -684,7 +677,7 @@ export declare class AIGatewayMeteringV2InboundPolicy extends InboundPolicy<AIGa
|
|
|
684
677
|
}
|
|
685
678
|
|
|
686
679
|
/**
|
|
687
|
-
* Options for metering AI Gateway
|
|
680
|
+
* Options for metering AI Gateway usage and enforcing request-time limits.
|
|
688
681
|
* @public
|
|
689
682
|
*/
|
|
690
683
|
export declare interface AIGatewayMeteringV2InboundPolicyOptions {
|
|
@@ -735,8 +728,7 @@ declare interface AIGatewayMeteringV2WarningLimitOverride {
|
|
|
735
728
|
* Matches AI Gateway requests against curated allow lists or open block lists,
|
|
736
729
|
* then stores the winning model reference for the route handler.
|
|
737
730
|
*
|
|
738
|
-
* @title AI Gateway Model Filtering
|
|
739
|
-
* @beta
|
|
731
|
+
* @title AI Gateway Model Filtering
|
|
740
732
|
* @product ai-gateway
|
|
741
733
|
* @requiresAI
|
|
742
734
|
* @param request - The ZuploRequest
|
|
@@ -1020,10 +1012,9 @@ export declare function AIGatewaySemanticCacheOutboundPolicy(
|
|
|
1020
1012
|
export declare interface AIGatewaySemanticCacheOutboundPolicyOptions {}
|
|
1021
1013
|
|
|
1022
1014
|
/**
|
|
1023
|
-
* AI Gateway Semantic Cache policy
|
|
1024
|
-
*
|
|
1025
|
-
*
|
|
1026
|
-
* matching the firewall's single-policy shape (no separate outbound policy).
|
|
1015
|
+
* AI Gateway Semantic Cache policy. This inbound policy looks up the semantic
|
|
1016
|
+
* cache on entry and, on a miss, registers a response-sending hook to write the
|
|
1017
|
+
* upstream response back into the cache.
|
|
1027
1018
|
*
|
|
1028
1019
|
* Caching parameters (semanticTolerance, expirationSecondsTtl, namespace,
|
|
1029
1020
|
* recentMessageCount) come from the policy options, and presence in the
|
|
@@ -1037,13 +1028,12 @@ export declare interface AIGatewaySemanticCacheOutboundPolicyOptions {}
|
|
|
1037
1028
|
* Cache outcomes are reported on the response via the RFC 9211 `Cache-Status`
|
|
1038
1029
|
* header under the cache name `zp-aigw-sem-cache` (hit:
|
|
1039
1030
|
* `zp-aigw-sem-cache; hit; detail="similarity=0.93"`; miss:
|
|
1040
|
-
* `zp-aigw-sem-cache; fwd=miss; stored`)
|
|
1041
|
-
* `x-ai-gateway-cache: HIT|MISS` and `x-ai-gateway-cache-similarity` headers
|
|
1042
|
-
* kept for compatibility.
|
|
1031
|
+
* `zp-aigw-sem-cache; fwd=miss; stored`). Responses also include the
|
|
1032
|
+
* `x-ai-gateway-cache: HIT|MISS` and `x-ai-gateway-cache-similarity` headers.
|
|
1043
1033
|
*
|
|
1044
|
-
* @title AI Gateway Semantic Cache
|
|
1034
|
+
* @title AI Gateway Semantic Cache
|
|
1045
1035
|
* @product ai-gateway
|
|
1046
|
-
* @
|
|
1036
|
+
* @enterprise
|
|
1047
1037
|
* @requiresAI
|
|
1048
1038
|
* @param request - The ZuploRequest
|
|
1049
1039
|
* @param context - The ZuploContext
|
|
@@ -1059,7 +1049,7 @@ export declare function AIGatewaySemanticCacheV2InboundPolicy(
|
|
|
1059
1049
|
): Promise<Response | ZuploRequest<RequestGeneric>>;
|
|
1060
1050
|
|
|
1061
1051
|
/**
|
|
1062
|
-
* Options for the AI Gateway Semantic Cache
|
|
1052
|
+
* Options for the AI Gateway Semantic Cache policy. Configured inline in policies.json; the policy reads nothing from the AI Gateway configuration to decide whether to cache.
|
|
1063
1053
|
* @public
|
|
1064
1054
|
*/
|
|
1065
1055
|
export declare interface AIGatewaySemanticCacheV2InboundPolicyOptions {
|
|
@@ -1214,6 +1204,7 @@ export declare interface AiUsage {
|
|
|
1214
1204
|
* Akamai AI Firewall Inbound Policy
|
|
1215
1205
|
* @title Akamai AI Firewall
|
|
1216
1206
|
* @product ai-gateway
|
|
1207
|
+
* @hidden
|
|
1217
1208
|
* @requiresAI
|
|
1218
1209
|
*
|
|
1219
1210
|
* This policy integrates with Akamai's AI Firewall service to detect and block
|
|
@@ -1255,10 +1246,9 @@ export declare interface AkamaiAIFirewallPolicyOptions {
|
|
|
1255
1246
|
}
|
|
1256
1247
|
|
|
1257
1248
|
/**
|
|
1258
|
-
* Akamai AI Firewall Inbound Policy
|
|
1259
|
-
* @title Akamai AI Firewall
|
|
1249
|
+
* Akamai AI Firewall Inbound Policy
|
|
1250
|
+
* @title Akamai AI Firewall
|
|
1260
1251
|
* @product ai-gateway
|
|
1261
|
-
* @hidden
|
|
1262
1252
|
* @requiresAI
|
|
1263
1253
|
*
|
|
1264
1254
|
* Detects and blocks malicious AI inputs and outputs via Akamai's AI Firewall
|
|
@@ -3754,6 +3744,7 @@ export declare interface CognitoJwtInboundPolicyOptions {
|
|
|
3754
3744
|
* Comet Opik Tracing Inbound Policy
|
|
3755
3745
|
* @title Comet Opik Tracing
|
|
3756
3746
|
* @product ai-gateway
|
|
3747
|
+
* @hidden
|
|
3757
3748
|
*
|
|
3758
3749
|
* This policy automatically handles tracing for both streaming and non-streaming
|
|
3759
3750
|
* responses from AI Gateway. It creates traces when requests start and spans
|
|
@@ -3800,10 +3791,9 @@ export declare interface CometOpikTracingPolicyOptions {
|
|
|
3800
3791
|
}
|
|
3801
3792
|
|
|
3802
3793
|
/**
|
|
3803
|
-
* Comet Opik Tracing Inbound Policy
|
|
3804
|
-
* @title Comet Opik Tracing
|
|
3794
|
+
* Comet Opik Tracing Inbound Policy
|
|
3795
|
+
* @title Comet Opik Tracing
|
|
3805
3796
|
* @product ai-gateway
|
|
3806
|
-
* @hidden
|
|
3807
3797
|
* @requiresAI
|
|
3808
3798
|
*
|
|
3809
3799
|
* Traces both streaming and non-streaming AI Gateway responses to Comet Opik,
|
|
@@ -5239,7 +5229,7 @@ declare interface FallbackModels {
|
|
|
5239
5229
|
}
|
|
5240
5230
|
|
|
5241
5231
|
/**
|
|
5242
|
-
* How long
|
|
5232
|
+
* How long to wait for primary-model response headers before attempting the failure fallback. The timeout does not bound a streaming response body after its headers arrive.
|
|
5243
5233
|
* @public
|
|
5244
5234
|
*/
|
|
5245
5235
|
declare type FallbackTimeoutSeconds = number;
|
|
@@ -5358,6 +5348,7 @@ declare interface FunctionTool {
|
|
|
5358
5348
|
* Galileo Tracing Inbound Policy
|
|
5359
5349
|
* @title Galileo Tracing
|
|
5360
5350
|
* @product ai-gateway
|
|
5351
|
+
* @hidden
|
|
5361
5352
|
*
|
|
5362
5353
|
* This policy automatically handles tracing for both streaming and non-streaming
|
|
5363
5354
|
* responses from AI Gateway. It creates complete traces with workflow and LLM spans
|
|
@@ -5404,10 +5395,9 @@ export declare interface GalileoTracingPolicyOptions {
|
|
|
5404
5395
|
}
|
|
5405
5396
|
|
|
5406
5397
|
/**
|
|
5407
|
-
* Galileo Tracing Inbound Policy
|
|
5408
|
-
* @title Galileo Tracing
|
|
5398
|
+
* Galileo Tracing Inbound Policy
|
|
5399
|
+
* @title Galileo Tracing
|
|
5409
5400
|
* @product ai-gateway
|
|
5410
|
-
* @hidden
|
|
5411
5401
|
* @requiresAI
|
|
5412
5402
|
*
|
|
5413
5403
|
* Traces both streaming and non-streaming AI Gateway responses to Galileo's LLM
|
|
@@ -13581,6 +13571,7 @@ export declare interface SecretMaskingOutboundPolicyOptions {
|
|
|
13581
13571
|
* @public
|
|
13582
13572
|
* @enterprise
|
|
13583
13573
|
* @requiresAI
|
|
13574
|
+
* @deprecated Use {@link https://zuplo.com/docs/policies/ai-gateway-semantic-cache-v2-inbound|AI Gateway Semantic Cache} instead.
|
|
13584
13575
|
* @param request - The ZuploRequest
|
|
13585
13576
|
* @param context - The ZuploContext
|
|
13586
13577
|
* @param options - The policy options set in policies.json
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.3",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@opentelemetry/api": "1.9.0",
|
|
29
29
|
"@opentelemetry/api-logs": "0.220.0",
|
|
30
30
|
"@swc/core": "1.10.18",
|
|
31
|
-
"@zuplo/core": "7.2.
|
|
31
|
+
"@zuplo/core": "7.2.3",
|
|
32
32
|
"@zuplo/editor": "1.0.31094607111",
|
|
33
|
-
"@zuplo/openapi-tools": "7.2.
|
|
34
|
-
"@zuplo/runtime": "7.2.
|
|
33
|
+
"@zuplo/openapi-tools": "7.2.3",
|
|
34
|
+
"@zuplo/runtime": "7.2.3",
|
|
35
35
|
"chalk": "5.4.1",
|
|
36
36
|
"chokidar": "3.5.3",
|
|
37
37
|
"cookie": "1.0.2",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"workerd": "1.20241230.0",
|
|
63
63
|
"yargs": "17.7.2",
|
|
64
64
|
"zod": "4.4.3",
|
|
65
|
-
"@zuplo/graphql": "7.2.
|
|
66
|
-
"@zuplo/otel": "7.2.
|
|
65
|
+
"@zuplo/graphql": "7.2.3",
|
|
66
|
+
"@zuplo/otel": "7.2.3"
|
|
67
67
|
},
|
|
68
68
|
"bundleDependencies": [
|
|
69
69
|
"@inquirer/prompts",
|