zuplo 7.14.5 → 7.14.6

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 (30) hide show
  1. package/docs/ai-gateway/cookbooks/data-residency.mdx +259 -0
  2. package/docs/ai-gateway/fallback.mdx +6 -4
  3. package/docs/ai-gateway/guardrails.mdx +283 -0
  4. package/docs/ai-gateway/observability/analytics.mdx +121 -0
  5. package/docs/ai-gateway/observability/data-handling.mdx +120 -0
  6. package/docs/ai-gateway/observability/tracing.mdx +203 -0
  7. package/docs/ai-gateway/overview.mdx +6 -4
  8. package/docs/ai-gateway/policies/overview.mdx +4 -0
  9. package/docs/ai-gateway/policy-chains.mdx +10 -3
  10. package/docs/ai-gateway/routing.mdx +277 -0
  11. package/docs/analytics/overview.md +3 -0
  12. package/docs/analytics/tabs/cache.md +89 -0
  13. package/docs/articles/connect-to-aws-alb-with-mtls.mdx +23 -0
  14. package/docs/articles/deployments-and-rollbacks.mdx +93 -0
  15. package/docs/articles/proxy-openai-realtime-api.mdx +247 -0
  16. package/docs/caching/gateway-caching.mdx +2 -1
  17. package/docs/caching/semantic-caching.mdx +133 -0
  18. package/docs/cli/lint.mdx +13 -0
  19. package/docs/cli/variable-delete.mdx +66 -0
  20. package/docs/concepts/source-control-and-deployment.mdx +6 -0
  21. package/docs/concepts/upstream-credentials.mdx +2 -1
  22. package/docs/guides/backend-failover.mdx +117 -0
  23. package/docs/guides/blue-green-deployments.mdx +199 -0
  24. package/docs/handlers/websocket-pipeline-handler.mdx +94 -0
  25. package/docs/mcp-server/authorize-tool-calls.mdx +284 -0
  26. package/docs/mcp-server/overview.mdx +3 -0
  27. package/docs/policies/mcp-capability-filter-inbound/doc.md +81 -0
  28. package/docs/policies/semantic-cache-inbound/doc.md +6 -5
  29. package/docs/policies/semantic-cache-inbound/schema.json +4 -4
  30. package/package.json +5 -5
@@ -25,10 +25,11 @@ The policy supports two modes for cache key generation:
25
25
  ### Key Parameters
26
26
 
27
27
  - **semanticTolerance** (optional): A number between 0 and 1 that controls how
28
- similar cache keys need to be for a match. Default is 0.8. Higher values
29
- (closer to 1) require more similarity, while lower values allow more flexible
30
- matching. Can be overridden by custom functions when using
31
- `cacheBy: "function"`.
28
+ far apart cache keys can be and still match. A cached entry matches when its
29
+ similarity is at least `1 - semanticTolerance`. Default is 0.2, which requires
30
+ a similarity of at least 0.8. Lower values (closer to 0) require closer
31
+ similarity, while higher values allow more flexible matching. Can be
32
+ overridden by custom functions when using `cacheBy: "function"`.
32
33
  - **expirationSecondsTtl** (optional): Cache expiration time in seconds. Default
33
34
  is 3600 (1 hour). Can be overridden by custom functions when using
34
35
  `cacheBy: "function"`.
@@ -45,7 +46,7 @@ with the following structure:
45
46
  ```typescript
46
47
  {
47
48
  cacheKey: string; // Required: The cache key for semantic matching
48
- semanticTolerance?: number; // Optional: Override the policy's similarity tolerance
49
+ semanticTolerance?: number; // Optional: Override the policy's tolerance (lower = stricter)
49
50
  expirationSecondsTtl?: number; // Optional: Override the policy's cache expiration time
50
51
  }
51
52
  ```
@@ -140,7 +140,7 @@
140
140
  {
141
141
  "cacheBy": "propertyPath",
142
142
  "cacheByPropertyPath": ".userId",
143
- "semanticTolerance": 0.8,
143
+ "semanticTolerance": 0.2,
144
144
  "expirationSecondsTtl": 3600,
145
145
  "namespace": "user-cache"
146
146
  },
@@ -150,7 +150,7 @@
150
150
  "export": "cacheKeyFunction",
151
151
  "module": "$import(./modules/cache-key)"
152
152
  },
153
- "semanticTolerance": 0.9,
153
+ "semanticTolerance": 0.1,
154
154
  "expirationSecondsTtl": 1800,
155
155
  "namespace": "api-cache"
156
156
  }
@@ -164,7 +164,7 @@
164
164
  "options": {
165
165
  "cacheBy": "propertyPath",
166
166
  "cacheByPropertyPath": ".userId",
167
- "semanticTolerance": 0.8,
167
+ "semanticTolerance": 0.2,
168
168
  "expirationSecondsTtl": 3600,
169
169
  "namespace": "user-cache"
170
170
  }
@@ -178,7 +178,7 @@
178
178
  "export": "cacheKeyFunction",
179
179
  "module": "$import(./modules/cache-key)"
180
180
  },
181
- "semanticTolerance": 0.9,
181
+ "semanticTolerance": 0.1,
182
182
  "expirationSecondsTtl": 1800,
183
183
  "namespace": "api-cache"
184
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zuplo",
3
- "version": "7.14.5",
3
+ "version": "7.14.6",
4
4
  "type": "module",
5
5
  "description": "The official Zuplo CLI for local development and platform management",
6
6
  "homepage": "https://zuplo.com/docs/cli/overview",
@@ -32,9 +32,9 @@
32
32
  "zuplo": "zuplo.js"
33
33
  },
34
34
  "dependencies": {
35
- "@zuplo/cli": "7.14.5",
36
- "@zuplo/core": "7.14.5",
37
- "@zuplo/runtime": "7.14.5",
38
- "@zuplo/test": "7.14.5"
35
+ "@zuplo/cli": "7.14.6",
36
+ "@zuplo/core": "7.14.6",
37
+ "@zuplo/runtime": "7.14.6",
38
+ "@zuplo/test": "7.14.6"
39
39
  }
40
40
  }