Repository navigation
修复:Hark 钥匙卡片按表单字段名存入保险库 - #63
Merged
Merged
Conversation
Owner
Author
|
编译进度(提交
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
负责:Hark/GOXF
问题
BotArk 里 Hark 钥匙卡片点「保存」报
invalid input: field validation failed: unknown field "apiKey" for type "api_key"(用户机 hark-frames.log 2026-12-04 10:08 北京)。原因:HarkAskCard.submitSecret把字段名写死成apiKey(当初是照登录表单猜的)。真实表单组件是{id:"value", type:"text_input", secret:true}。接口(从 Hark 网页自己的代码取得,assets.hark.com 的 B9MKEmrW.js)
GET /secrets/screen?type=<type>&scope=<scope>:返回该类密钥的表单,输入框 id 就是字段名。POST /secrets:{type, scope, label, conversationId, fields:{<输入框id>: 值}},按类型校验字段名。POST /messages/tool-response:{conversationId, requestId, dispatchId, type:"user_input", value}(与现有一致)。改动
harkAsks.secretSpec带上表单的type和输入框field。/secrets/screen取;都失败用value。lib/harkSecretSchema.ts+ 测试。验证
进度与交接