@zuplo/cli 7.1.10 → 7.2.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.
Files changed (37) hide show
  1. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -3
  2. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +4 -3
  3. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +4 -3
  4. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/jwt/encrypt.d.ts +4 -3
  5. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/types/types.d.ts +4 -2
  6. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwe/general/encrypt.js +7 -3
  7. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  8. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +6 -2
  9. package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
  10. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +4 -3
  11. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +4 -3
  12. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +4 -3
  13. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/jwt/encrypt.d.ts +4 -3
  14. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/types/types.d.ts +4 -2
  15. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwe/general/encrypt.js +7 -3
  16. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  17. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +6 -2
  18. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
  19. package/node_modules/@zuplo/core/customer.cli.minified.js +1 -1
  20. package/node_modules/@zuplo/core/index.minified.js +1 -1
  21. package/node_modules/@zuplo/core/package.json +1 -1
  22. package/node_modules/@zuplo/graphql/package.json +1 -1
  23. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  24. package/node_modules/@zuplo/otel/package.json +1 -1
  25. package/node_modules/@zuplo/runtime/out/esm/chunk-FP5XLKCX.js +409 -0
  26. package/node_modules/@zuplo/runtime/out/esm/chunk-FP5XLKCX.js.map +1 -0
  27. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  28. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  29. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  30. package/node_modules/@zuplo/runtime/out/types/index.d.ts +282 -15
  31. package/node_modules/@zuplo/runtime/package.json +1 -1
  32. package/node_modules/default-browser/package.json +1 -1
  33. package/node_modules/default-browser/windows.js +3 -1
  34. package/package.json +6 -6
  35. package/node_modules/@zuplo/runtime/out/esm/chunk-DEKK4CFE.js +0 -382
  36. package/node_modules/@zuplo/runtime/out/esm/chunk-DEKK4CFE.js.map +0 -1
  37. /package/node_modules/@zuplo/runtime/out/esm/{chunk-DEKK4CFE.js.LEGAL.txt → chunk-FP5XLKCX.js.LEGAL.txt} +0 -0
@@ -332,6 +332,75 @@ export declare interface AIGatewayConfigurationLoaderV2InboundPolicyOptions {
332
332
  cacheTtlSeconds?: number;
333
333
  }
334
334
 
335
+ /**
336
+ * AI Gateway DLP Inbound Policy
337
+ * @title AI Gateway DLP
338
+ * @product ai-gateway
339
+ * @hidden
340
+ * @requiresAI
341
+ *
342
+ * Scans the content of AI requests and responses — system prompts, message
343
+ * text, and tool-call arguments — for sensitive data (credit cards, national
344
+ * identifiers, API keys and other credentials) using the in-gateway DLP
345
+ * engine, and applies per-rule actions: mask, block, or log. Detection runs
346
+ * entirely inside the gateway; nothing is sent to a third-party scanning
347
+ * service. Streaming responses are scanned as they stream, chunk by chunk
348
+ * with a sliding boundary window, rather than being buffered to the end.
349
+ *
350
+ * Options are validated at request time and invalid options fail closed with
351
+ * a ConfigurationError. Content that cannot be inspected is denied by
352
+ * default (`onUnknownShape: "deny"`), and internal scan failures fail closed
353
+ * by default (`onError: "block"`).
354
+ *
355
+ * @param request - The ZuploRequest
356
+ * @param context - The ZuploContext
357
+ * @param options - The policy options set in policies.json
358
+ * @param policyName - The name of the policy as set in policies.json
359
+ * @returns A Request or a Response
360
+ */
361
+ export declare function AIGatewayDlpInboundPolicy(
362
+ request: ZuploRequest,
363
+ context: ZuploContext,
364
+ unparsedOptions: unknown,
365
+ policyName: string
366
+ ): Promise<ZuploRequest | Response>;
367
+
368
+ /**
369
+ * The options for the AI Gateway DLP policy. Scans the content of AI requests and responses — system prompts, messages, and tool-call arguments — for sensitive data such as credit cards, national identifiers, and API keys, applying a per-rule action (mask, block, or log). Detection runs entirely inside the gateway and streaming responses are scanned as they stream.
370
+ * @public
371
+ */
372
+ export declare interface AIGatewayDlpInboundPolicyOptions {
373
+ rules: DlpRules;
374
+ /**
375
+ * Your own detection rules alongside the built-ins: the same rule object plus a `name`, a regex `pattern`, and optional `context` words.
376
+ */
377
+ customRules?: DlpCustomRule[];
378
+ /**
379
+ * Exact strings that are never flagged by any rule — documentation samples like Stripe's public test card `4242 4242 4242 4242`, or your own support email address. Matching is case-sensitive against the exact detected text, including when a value arrives split across streaming chunks.
380
+ */
381
+ allowValues?: string[];
382
+ /**
383
+ * The replacement text for masked matches. The `{type}` token inserts the detected type id in UPPER_SNAKE form (for example `[CONTACT_EMAIL]`), which keeps masked conversations legible to the model. Individual rules can override this.
384
+ */
385
+ mask?: string;
386
+ /**
387
+ * Default evidence level for rules that do not set their own. See the per-rule `detection` description for the level semantics. There are no numeric confidence thresholds to tune — levels are the whole dial.
388
+ */
389
+ detection?: "corroborated" | "standard" | "aggressive";
390
+ /**
391
+ * Also scan tool/function-call argument payloads — in requests, buffered responses, and streamed tool-call deltas. Tool arguments are user and model content; disabling this exempts them from every rule.
392
+ */
393
+ scanToolArguments?: boolean;
394
+ streaming?: DlpStreamingSettings;
395
+ endpoints?: ApplicableEndpoints;
396
+ onUnknownShape?: OnUnknownShape;
397
+ onError?: OnEngineError;
398
+ /**
399
+ * The detection engine. Only `builtin` (in-gateway regex + checksum detection with context-word scoring; no data egress) is available today. Declaring the discriminator now keeps future engines an additive, non-breaking change.
400
+ */
401
+ engine?: "builtin";
402
+ }
403
+
335
404
  /**
336
405
  * Adds failure and quota fallbacks to an existing AI Gateway model selection.
337
406
  *
@@ -1003,8 +1072,8 @@ export declare interface AIGatewaySemanticCacheV2InboundPolicyOptions {
1003
1072
  namespace?: CacheNamespace;
1004
1073
  recentMessageCount?: RecentMessageCount;
1005
1074
  maxConversationLength?: MaxConversationLength;
1006
- endpoints?: ApplicableEndpoints;
1007
- onUnknownShape?: OnUnknownShape;
1075
+ endpoints?: ApplicableEndpoints_2;
1076
+ onUnknownShape?: OnUnknownShape_2;
1008
1077
  }
1009
1078
 
1010
1079
  /**
@@ -1232,8 +1301,8 @@ export declare interface AkamaiAIFirewallV2PolicyOptions {
1232
1301
  "api-key": APIKey_2;
1233
1302
  applicationId?: ApplicationID_2;
1234
1303
  streamingAccumulation?: StreamingAccumulationSettings_2;
1235
- endpoints?: ApplicableEndpoints_2;
1236
- onUnknownShape?: OnUnknownShape_2;
1304
+ endpoints?: ApplicableEndpoints_3;
1305
+ onUnknownShape?: OnUnknownShape_3;
1237
1306
  onError?: OnFirewallError_2;
1238
1307
  }
1239
1308
 
@@ -1842,7 +1911,7 @@ declare interface APITokenCredentialConfig {
1842
1911
  }
1843
1912
 
1844
1913
  /**
1845
- * The endpoint shapes to cache. Defaults to all shapes: ['openai-chat', 'anthropic-messages', 'openai-responses'].
1914
+ * The endpoint shapes this policy applies to. Omit to apply to all (openai-chat, openai-responses, anthropic-messages).
1846
1915
  * @public
1847
1916
  */
1848
1917
  declare type ApplicableEndpoints = (
@@ -1852,7 +1921,7 @@ declare type ApplicableEndpoints = (
1852
1921
  )[];
1853
1922
 
1854
1923
  /**
1855
- * The endpoint shapes this policy applies to. Omit to apply to all (openai-chat, openai-responses, anthropic-messages).
1924
+ * The endpoint shapes to cache. Defaults to all shapes: ['openai-chat', 'anthropic-messages', 'openai-responses'].
1856
1925
  * @public
1857
1926
  */
1858
1927
  declare type ApplicableEndpoints_2 = (
@@ -1881,6 +1950,16 @@ declare type ApplicableEndpoints_4 = (
1881
1950
  | "anthropic-messages"
1882
1951
  )[];
1883
1952
 
1953
+ /**
1954
+ * The endpoint shapes this policy applies to. Omit to apply to all (openai-chat, openai-responses, anthropic-messages).
1955
+ * @public
1956
+ */
1957
+ declare type ApplicableEndpoints_5 = (
1958
+ | "openai-chat"
1959
+ | "openai-responses"
1960
+ | "anthropic-messages"
1961
+ )[];
1962
+
1884
1963
  /**
1885
1964
  * The application ID to identify this usage of the AI Firewall (optional).
1886
1965
  * @public
@@ -3775,8 +3854,8 @@ export declare interface CometOpikTracingV2PolicyOptions {
3775
3854
  * The base URL for the Comet Opik API (optional, defaults to https://www.comet.com/opik/api).
3776
3855
  */
3777
3856
  baseUrl?: string;
3778
- endpoints?: ApplicableEndpoints_3;
3779
- onUnknownShape?: OnUnknownShape_3;
3857
+ endpoints?: ApplicableEndpoints_4;
3858
+ onUnknownShape?: OnUnknownShape_4;
3780
3859
  }
3781
3860
 
3782
3861
  /**
@@ -4555,7 +4634,11 @@ export declare interface DataLossPreventionInboundPolicyOptions {
4555
4634
  */
4556
4635
  customPatterns?: DlpCustomPattern[];
4557
4636
  /**
4558
- * Minimum confidence (0-1) a match must reach to count as a finding. Context-dependent recognizers (for example `finance-us-bank-account` or `finance-us-aba-routing`) sit below the default threshold of 0.5 until a context word near the match boosts them above it. Lower the threshold to surface them everywhere; raise it to keep only prefix- or checksum-validated matches.
4637
+ * Values that are never reported as findings, compared against the exact matched text (case-sensitive, separators included). Use this to exempt well-known non-sensitive values that share a sensitive shape for example the Stripe test card number `4242 4242 4242 4242` in a payments sandbox, or a public support email address. List every written form you want to allow (a spaced and an unspaced card number are different matches).
4638
+ */
4639
+ allowValues?: string[];
4640
+ /**
4641
+ * Minimum confidence (0-1) a match must reach to count as a finding. Every match starts at its recognizer's base confidence and gains a fixed boost of 0.45 when one of the recognizer's context words appears near it. Ambiguous shapes (for example `finance-us-bank-account` or `finance-cvv`) have a low base confidence and only cross the default threshold of 0.5 with that boost; lower the threshold to surface them without context. Raising the threshold is not a precision filter: any recognizer whose base confidence falls below it stops matching entirely except near its context words, and most checksum-validated recognizers run at 0.85, so values above 0.85 disable most of the catalog. To narrow detection, scope the `entities` list instead.
4559
4642
  */
4560
4643
  minConfidence?: number;
4561
4644
  /**
@@ -4698,7 +4781,11 @@ export declare interface DataLossPreventionOutboundPolicyOptions {
4698
4781
  */
4699
4782
  customPatterns?: DlpCustomPattern_2[];
4700
4783
  /**
4701
- * Minimum confidence (0-1) a match must reach to count as a finding. Context-dependent recognizers (for example `finance-us-bank-account` or `finance-us-aba-routing`) sit below the default threshold of 0.5 until a context word near the match boosts them above it. Lower the threshold to surface them everywhere; raise it to keep only prefix- or checksum-validated matches.
4784
+ * Values that are never reported as findings, compared against the exact matched text (case-sensitive, separators included). Use this to exempt well-known non-sensitive values that share a sensitive shape for example the Stripe test card number `4242 4242 4242 4242` in a payments sandbox, or a public support email address. List every written form you want to allow (a spaced and an unspaced card number are different matches).
4785
+ */
4786
+ allowValues?: string[];
4787
+ /**
4788
+ * Minimum confidence (0-1) a match must reach to count as a finding. Every match starts at its recognizer's base confidence and gains a fixed boost of 0.45 when one of the recognizer's context words appears near it. Ambiguous shapes (for example `finance-us-bank-account` or `finance-cvv`) have a low base confidence and only cross the default threshold of 0.5 with that boost; lower the threshold to surface them without context. Raising the threshold is not a precision filter: any recognizer whose base confidence falls below it stops matching entirely except near its context words, and most checksum-validated recognizers run at 0.85, so values above 0.85 disable most of the catalog. To narrow detection, scope the `entities` list instead.
4702
4789
  */
4703
4790
  minConfidence?: number;
4704
4791
  /**
@@ -4770,6 +4857,174 @@ declare interface DlpCustomPattern_2 {
4770
4857
  context?: string[];
4771
4858
  }
4772
4859
 
4860
+ declare interface DlpCustomRule {
4861
+ /**
4862
+ * Identifier reported in findings and block details for this rule.
4863
+ */
4864
+ name: string;
4865
+ /**
4866
+ * A JavaScript regular expression source string. Remember to escape backslashes for JSON (for example `\\d` for a digit). An invalid pattern fails the configuration at request time — a broken guardrail never degrades into a silent pass-through.
4867
+ */
4868
+ pattern: string;
4869
+ /**
4870
+ * Context words for this rule. With `detection: "corroborated"` the rule only fires when one of these words appears near the match.
4871
+ */
4872
+ context?: string[];
4873
+ /**
4874
+ * What happens when this type is found. `mask` replaces the matched text with a placeholder and the conversation continues; `block` rejects the request or terminates the response with an error naming only the detected types (never the values); `log` records a finding and lets the traffic pass unchanged — use it to trial a rule before enforcing it; `off` excludes this type from a group enabled by a broader key.
4875
+ */
4876
+ action: "mask" | "block" | "log" | "off";
4877
+ /**
4878
+ * Where the rule applies. `inbound` scans what callers send the model (system prompt, message text, and tool-call arguments); `outbound` scans what the model sends back (buffered responses whole, streaming responses chunk by chunk). Defaults to `both`.
4879
+ */
4880
+ direction?: "both" | "inbound" | "outbound";
4881
+ /**
4882
+ * How much evidence a match needs before this rule acts. `corroborated` additionally requires one of the type's context words near the match (types that define no context words behave as `standard`); `standard` uses the catalog as tuned — distinctive shapes act on their own while ambiguous shapes need nearby context; `aggressive` counts every pattern match and is false-positive-prone — pair it with the `log` action for audits. Overrides the policy-level `detection` for this rule.
4883
+ */
4884
+ detection?: "corroborated" | "standard" | "aggressive";
4885
+ /**
4886
+ * Replacement text for this rule when `action` is `mask`, overriding the policy-level `mask`. The `{type}` token inserts the detected type id in UPPER_SNAKE form (for example `[CONTACT_EMAIL]`).
4887
+ */
4888
+ mask?: string;
4889
+ partialMask?: DlpPartialMask;
4890
+ }
4891
+
4892
+ declare interface DlpPartialMask {
4893
+ /**
4894
+ * Keep the last N characters of the matched value unmasked and replace the rest with `*`, preserving length (for example `**** **** **** 4242`). Values no longer than N characters are fully masked.
4895
+ */
4896
+ keepLast: number;
4897
+ }
4898
+
4899
+ declare interface DlpRule {
4900
+ /**
4901
+ * What happens when this type is found. `mask` replaces the matched text with a placeholder and the conversation continues; `block` rejects the request or terminates the response with an error naming only the detected types (never the values); `log` records a finding and lets the traffic pass unchanged — use it to trial a rule before enforcing it; `off` excludes this type from a group enabled by a broader key.
4902
+ */
4903
+ action: "mask" | "block" | "log" | "off";
4904
+ /**
4905
+ * Where the rule applies. `inbound` scans what callers send the model (system prompt, message text, and tool-call arguments); `outbound` scans what the model sends back (buffered responses whole, streaming responses chunk by chunk). Defaults to `both`.
4906
+ */
4907
+ direction?: "both" | "inbound" | "outbound";
4908
+ /**
4909
+ * How much evidence a match needs before this rule acts. `corroborated` additionally requires one of the type's context words near the match (types that define no context words behave as `standard`); `standard` uses the catalog as tuned — distinctive shapes act on their own while ambiguous shapes need nearby context; `aggressive` counts every pattern match and is false-positive-prone — pair it with the `log` action for audits. Overrides the policy-level `detection` for this rule.
4910
+ */
4911
+ detection?: "corroborated" | "standard" | "aggressive";
4912
+ /**
4913
+ * Replacement text for this rule when `action` is `mask`, overriding the policy-level `mask`. The `{type}` token inserts the detected type id in UPPER_SNAKE form (for example `[CONTACT_EMAIL]`).
4914
+ */
4915
+ mask?: string;
4916
+ partialMask?: DlpPartialMask;
4917
+ }
4918
+
4919
+ /**
4920
+ * What to find and what to do about it. Each key is a built-in data type id (like `id-us-ssn`) or a group selector (like `pii` or `secret`, plus any dash-aligned id prefix such as `secret-aws`); each value is a rule object whose required `action` says what happens when that type is found. Types you do not mention are not scanned. The most specific key wins — an exact id beats a prefix beats a group — and the winning entry decides everything for its type, direction included. When one stretch of text matches multiple rules, the severest action wins (block > mask > log). At least one rule must scan something.
4921
+ * @public
4922
+ */
4923
+ declare interface DlpRules {
4924
+ contact?: DlpRule;
4925
+ finance?: DlpRule;
4926
+ "finance-us"?: DlpRule;
4927
+ id?: DlpRule;
4928
+ "id-au"?: DlpRule;
4929
+ "id-br"?: DlpRule;
4930
+ "id-ca"?: DlpRule;
4931
+ "id-es"?: DlpRule;
4932
+ "id-fr"?: DlpRule;
4933
+ "id-in"?: DlpRule;
4934
+ "id-it"?: DlpRule;
4935
+ "id-nl"?: DlpRule;
4936
+ "id-pl"?: DlpRule;
4937
+ "id-sg"?: DlpRule;
4938
+ "id-uk"?: DlpRule;
4939
+ "id-us"?: DlpRule;
4940
+ network?: DlpRule;
4941
+ pii?: DlpRule;
4942
+ "region-eu"?: DlpRule;
4943
+ secret?: DlpRule;
4944
+ "secret-aws"?: DlpRule;
4945
+ "contact-email"?: DlpRule;
4946
+ "contact-phone"?: DlpRule;
4947
+ "finance-credit-card"?: DlpRule;
4948
+ "finance-crypto-wallet"?: DlpRule;
4949
+ "finance-cvv"?: DlpRule;
4950
+ "finance-iban"?: DlpRule;
4951
+ "finance-swift-bic"?: DlpRule;
4952
+ "finance-us-aba-routing"?: DlpRule;
4953
+ "finance-us-bank-account"?: DlpRule;
4954
+ "id-au-abn"?: DlpRule;
4955
+ "id-au-acn"?: DlpRule;
4956
+ "id-au-medicare"?: DlpRule;
4957
+ "id-au-tfn"?: DlpRule;
4958
+ "id-br-cpf"?: DlpRule;
4959
+ "id-ca-sin"?: DlpRule;
4960
+ "id-es-nif"?: DlpRule;
4961
+ "id-fr-nir"?: DlpRule;
4962
+ "id-in-aadhaar"?: DlpRule;
4963
+ "id-in-pan"?: DlpRule;
4964
+ "id-it-fiscal-code"?: DlpRule;
4965
+ "id-nl-bsn"?: DlpRule;
4966
+ "id-pl-pesel"?: DlpRule;
4967
+ "id-sg-nric"?: DlpRule;
4968
+ "id-uk-nhs"?: DlpRule;
4969
+ "id-uk-nino"?: DlpRule;
4970
+ "id-us-itin"?: DlpRule;
4971
+ "id-us-passport"?: DlpRule;
4972
+ "id-us-ssn"?: DlpRule;
4973
+ "network-ipv4"?: DlpRule;
4974
+ "network-ipv6"?: DlpRule;
4975
+ "network-mac"?: DlpRule;
4976
+ "secret-anthropic"?: DlpRule;
4977
+ "secret-aws-access-key"?: DlpRule;
4978
+ "secret-aws-bedrock"?: DlpRule;
4979
+ "secret-azure-client"?: DlpRule;
4980
+ "secret-databricks"?: DlpRule;
4981
+ "secret-digitalocean"?: DlpRule;
4982
+ "secret-discord-webhook"?: DlpRule;
4983
+ "secret-github"?: DlpRule;
4984
+ "secret-gitlab"?: DlpRule;
4985
+ "secret-google-api-key"?: DlpRule;
4986
+ "secret-heroku"?: DlpRule;
4987
+ "secret-hugging-face"?: DlpRule;
4988
+ "secret-jwt"?: DlpRule;
4989
+ "secret-mailchimp"?: DlpRule;
4990
+ "secret-mailgun"?: DlpRule;
4991
+ "secret-npm"?: DlpRule;
4992
+ "secret-openai"?: DlpRule;
4993
+ "secret-perplexity"?: DlpRule;
4994
+ "secret-postman"?: DlpRule;
4995
+ "secret-private-key"?: DlpRule;
4996
+ "secret-pypi"?: DlpRule;
4997
+ "secret-sendgrid"?: DlpRule;
4998
+ "secret-sentry"?: DlpRule;
4999
+ "secret-shopify"?: DlpRule;
5000
+ "secret-slack"?: DlpRule;
5001
+ "secret-square"?: DlpRule;
5002
+ "secret-stripe"?: DlpRule;
5003
+ "secret-telegram-bot"?: DlpRule;
5004
+ "secret-terraform"?: DlpRule;
5005
+ "secret-twilio"?: DlpRule;
5006
+ "secret-zuplo"?: DlpRule;
5007
+ }
5008
+
5009
+ /**
5010
+ * Tuning for streaming (SSE) response scanning. Each chunk is held until the boundary scan that includes its successor passes, then released — so values split across chunks are always fully maskable, at the cost of one chunk of latency.
5011
+ * @public
5012
+ */
5013
+ declare interface DlpStreamingSettings {
5014
+ /**
5015
+ * Scan streaming responses. When false, streaming responses pass through unscanned even when rules cover the outbound direction.
5016
+ */
5017
+ enabled?: boolean;
5018
+ /**
5019
+ * Scan across chunk boundaries using a carried tail of already-scanned text. When false, each chunk is scanned alone and released immediately — lower cost, but values split across two chunks are missed.
5020
+ */
5021
+ boundaryScan?: boolean;
5022
+ /**
5023
+ * How many trailing characters are carried from one chunk into the next boundary scan. Bounds memory and re-scan cost; must be larger than the longest value you need to catch.
5024
+ */
5025
+ maxCarryChars?: number;
5026
+ }
5027
+
4773
5028
  declare interface DynaTraceLoggingOptions {
4774
5029
  url: string;
4775
5030
  apiToken: string;
@@ -5196,8 +5451,8 @@ export declare interface GalileoTracingV2PolicyOptions {
5196
5451
  * The base URL for the Galileo API (optional, defaults to https://api.galileo.ai).
5197
5452
  */
5198
5453
  baseUrl?: string;
5199
- endpoints?: ApplicableEndpoints_4;
5200
- onUnknownShape?: OnUnknownShape_4;
5454
+ endpoints?: ApplicableEndpoints_5;
5455
+ onUnknownShape?: OnUnknownShape_5;
5201
5456
  }
5202
5457
 
5203
5458
  /**
@@ -10578,6 +10833,12 @@ export declare interface OktaJwtInboundPolicyOptions {
10578
10833
  oAuthResourceMetadataEnabled?: boolean;
10579
10834
  }
10580
10835
 
10836
+ /**
10837
+ * What to do if the scanner itself throws. The engine is a local in-gateway scanner, so this is effectively unreachable outside of a runtime defect — but a guardrail must declare its failure posture. `block` (the default) fails closed with a 500 in the route's native error format; `allow` fails open and serves the content uninspected.
10838
+ * @public
10839
+ */
10840
+ declare type OnEngineError = "block" | "allow";
10841
+
10581
10842
  /**
10582
10843
  * What to do when the Akamai detect call itself fails (invalid API key, rate limit, outage). 'block' (the default) fails closed and returns a 502 so unverified content is never served; 'allow' fails open and lets the request through without inspection. An onError value in the AI Gateway app configuration takes precedence over this option.
10583
10844
  * @public
@@ -10636,19 +10897,19 @@ declare interface OnSendingAwsLambdaEventHook {
10636
10897
  }
10637
10898
 
10638
10899
  /**
10639
- * Unused by the cache (a cache miss is never unsafe, so it always fails open). Present for interface consistency.
10900
+ * What to do when the request shape cannot be inspected. As a guardrail this policy defaults to `deny` (fail closed) so uninspectable content is never served.
10640
10901
  * @public
10641
10902
  */
10642
10903
  declare type OnUnknownShape = "deny" | "skip";
10643
10904
 
10644
10905
  /**
10645
- * What to do when the request shape cannot be inspected. As a guardrail, this policy defaults to 'deny' (fail closed) so uninspectable content is never served.
10906
+ * Unused by the cache (a cache miss is never unsafe, so it always fails open). Present for interface consistency.
10646
10907
  * @public
10647
10908
  */
10648
10909
  declare type OnUnknownShape_2 = "deny" | "skip";
10649
10910
 
10650
10911
  /**
10651
- * What to do on a shape the policy cannot read. As an observer this defaults to 'skip' (fail open pass through untraced).
10912
+ * What to do when the request shape cannot be inspected. As a guardrail, this policy defaults to 'deny' (fail closed) so uninspectable content is never served.
10652
10913
  * @public
10653
10914
  */
10654
10915
  declare type OnUnknownShape_3 = "deny" | "skip";
@@ -10659,6 +10920,12 @@ declare type OnUnknownShape_3 = "deny" | "skip";
10659
10920
  */
10660
10921
  declare type OnUnknownShape_4 = "deny" | "skip";
10661
10922
 
10923
+ /**
10924
+ * What to do on a shape the policy cannot read. As an observer this defaults to 'skip' (fail open — pass through untraced).
10925
+ * @public
10926
+ */
10927
+ declare type OnUnknownShape_5 = "deny" | "skip";
10928
+
10662
10929
  /**
10663
10930
  * Handler that serves OpenAPI specification files.
10664
10931
  * Use this to expose your API documentation in a standard format that can be
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "7.1.10",
4
+ "version": "7.2.0",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "default-browser",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "Get the default browser",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/default-browser",
@@ -1,3 +1,4 @@
1
+ import process from 'node:process';
1
2
  import {promisify} from 'node:util';
2
3
  import {execFile} from 'node:child_process';
3
4
 
@@ -31,7 +32,8 @@ export const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserPro
31
32
  export class UnknownBrowserError extends Error {}
32
33
 
33
34
  export default async function defaultBrowser(_execFileAsync = execFileAsync) {
34
- const {stdout} = await _execFileAsync('reg', [
35
+ const regPath = `${process.env.SYSTEMROOT ?? process.env.windir ?? 'C:\\Windows'}\\System32\\reg.exe`;
36
+ const {stdout} = await _execFileAsync(regPath, [
35
37
  'QUERY',
36
38
  ' HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice',
37
39
  '/v',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "7.1.10",
3
+ "version": "7.2.0",
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.1.10",
31
+ "@zuplo/core": "7.2.0",
32
32
  "@zuplo/editor": "1.0.31094607111",
33
- "@zuplo/openapi-tools": "7.1.10",
34
- "@zuplo/runtime": "7.1.10",
33
+ "@zuplo/openapi-tools": "7.2.0",
34
+ "@zuplo/runtime": "7.2.0",
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.1.10",
66
- "@zuplo/otel": "7.1.10"
65
+ "@zuplo/graphql": "7.2.0",
66
+ "@zuplo/otel": "7.2.0"
67
67
  },
68
68
  "bundleDependencies": [
69
69
  "@inquirer/prompts",