[pull] main from oomol-lab:main - #17
Merged
Merged
Conversation
## Summary / 概要 - Add a locally executable Upstash Redis provider backed by the official REST API. - 新增基于 Upstash 官方 REST API 的本地可执行 Redis Provider。 ## Changes / 改动内容 - Add custom credentials with estUrl and secret estToken, validated through PING. - 新增 estUrl 与敏感 estToken 凭据,并使用 PING 校验连接。 - Add seven string-key actions: get, set, delete, exists, expire, tl, and single-page scan. - 新增 7 个字符串键操作:get、set、delete、exists、expire、 tl 和单页 scan。 - Support atomic SET key value [EX seconds] [NX|XX] writes and preserve Redis TTL semantics. - 支持原子 SET key value [EX seconds] [NX|XX] 写入,并保留 Redis TTL 语义。 - Restrict REST URLs to public https://*.upstash.io root endpoints and route requests through the injected SSRF-protected fetcher. - REST URL 仅允许公网 https://*.upstash.io 根路径端点,所有请求均使用注入的 SSRF 防护 Fetch。 - Handle timeouts, cancellation, JSON response envelopes, upstream errors, and non-JSON error bodies while preserving relevant HTTP status codes. - 处理超时、取消、JSON 响应包络、上游错误和非 JSON 错误响应,并保留关键 HTTP 状态码。 ## Validation / 验证 - scripts/generate-catalog.ts - pm run typecheck - �itest run - 57 files and 548 tests passed - Mock Fetch smoke tests for credential validation, command encoding, output normalization, URL validation, and non-JSON upstream errors ## Notes / 说明 - No npm dependencies or shared runtime changes were added. - 未新增 npm 依赖,也未修改共享运行时。 - package-lock.json is intentionally excluded because it is unrelated local user work. - package-lock.json 为无关的本地用户修改,未包含在本 PR 中。 --------- Co-authored-by: Kevin Cui <bh@bugs.cc>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )