sdk: a shared regression for 402-declared decimals across every entry point
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 62/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Start from test/declared-decimals.test.ts (commit 26875a5) to see how a 402 that declares extra.decimals: 18 is checked against the pins through dryRun, createAgentPay and agentSafeGuard. Build the shared mock route with startMockServer from @deepfirstsearch/agent-pay/testing, then add one test each in integrations/ai-sdk, integrations/langchain, integrations/agentkit and integrations/mcp. Done means each CI job is green and every test asserts the same over_cap result with zero signatures.
由索引模型根据 Issue 内容生成。
描述
test/declared-decimals.test.ts (added in 26875a5) checks that a 402 declaring extra.decimals: 18 can't make a large USDC amount slip past the pins, through dryRun, createAgentPay and agentSafeGuard. The same guarantee should also hold through the framework integrations, which are where most agents actually call us.
What: a small shared fixture (a mock route that declares its own decimals) reused by one test in each of integrations/ai-sdk, integrations/langchain, integrations/agentkit and integrations/mcp: the paid tool refuses the oversized amount and signs nothing.
Done when: each integration has the test, green in its CI job, and the assertion is the same across all four (over_cap / amount above the pin, zero signatures). Reuse startMockServer from @deepfirstsearch/agent-pay/testing; no new dependency.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 3 小时 51 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeepFirstHQ/deepfirstsearch 的其他 Issue
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 72/100
-
enhancement help wanted integration
难度 4/5 3-5 天 新手友好度 52/100
-
难度 3/5 1-2 天 新手友好度 28/100
-
enhancement
难度 3/5 1-2 天 新手友好度 58/100
-
enhancement good first issue
难度 3/5 1-2 天 新手友好度 55/100
查看 DeepFirstHQ/deepfirstsearch 的全部 Issue
相似的 Issue
-
area: repo priority: P2 type: bug
难度 2/5 1-3 小时 新手友好度 76/100
appandflow/stim#4107 · 1 条评论 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1-3 小时 新手友好度 60/100
lingdojo/kana-dojo#32859 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
code-quality refactoring
难度 2/5 1-3 小时 新手友好度 78/100
github/gh-aw-firewall#10364 ·
维护者通常 1 天内回复
-
Merge the duplicate kaffir_corn record into sorghum可能已有人在做 @Crypto-Shroom 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
Crypto-Shroom/Bird-Feed-Calculator#322 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
drizzle-team/drizzle-orm#6552 ·
维护者通常 2 天内回复