mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-08 23:13:17 +08:00
Render Harness approval and single-choice question interactions as interactive Feishu cards with approve/reject and answer buttons, matching the already-available interactionCards behaviour. Cards are now the default; set DSH_IM_INTERACTION_CARDS=0 (or interactionCards=false) to keep the plain-text reply flow. - bridge.mjs: approve:/reject:/answer: card actions, interactionCards option, gated approval render hook, interactive question presentation, and operationArguments/printableText helpers; refactor the inline question answer into #submitQuestionAnswer so both text replies and card buttons share one path. - feishu-cards.mjs: approvalCard (approve/reject) and questionCard (option buttons) templates. - feishu-runtime.mjs: default interactionCards from env (on). - harness-approval.mjs: optional channel render hook + submitByApprovalId. - i18n-en: add the new card t() keys. - Tests: pin the plain-text reply flow in state-machine suites that drive it, and add dedicated card tests for the default approve/reject, answer buttons, and the text fallback. Full suite shows no new failures versus upstream. |
||
|---|---|---|
| .. | ||
| channels | ||
| access-policy-host.test.mjs | ||
| access-policy.test.mjs | ||
| agent-preset-session-lifecycle.test.mjs | ||
| artifact-delivery.test.mjs | ||
| batch-input.test.mjs | ||
| client-delivery-settings.test.mjs | ||
| client-last-message-error.test.mjs | ||
| client-lifecycle.test.mjs | ||
| client-ui.test.mjs | ||
| compact-command.test.mjs | ||
| context-enhancement-settings.test.mjs | ||
| context-enhancement-ui.test.mjs | ||
| context-enhancement.test.mjs | ||
| control-command.test.mjs | ||
| delivery-adapter.test.mjs | ||
| delivery-http.test.mjs | ||
| delivery-receipt.test.mjs | ||
| delivery-rpc.test.mjs | ||
| delivery-service.test.mjs | ||
| feishu-client-api.test.mjs | ||
| history-bridge.test.mjs | ||
| history-command.test.mjs | ||
| history-i18n.test.mjs | ||
| host-harness-connection.test.mjs | ||
| host-modern-harness-api.test.mjs | ||
| host-session-coordinator.test.mjs | ||
| host.test.mjs | ||
| image-bridge.test.mjs | ||
| image-prompt.test.mjs | ||
| inbound-file.test.mjs | ||
| loopback-recovery.test.mjs | ||
| message-failure.test.mjs | ||
| model-command.test.mjs | ||
| outbound-artifact.test.mjs | ||
| preset-command.test.mjs | ||
| random-badge-worker.test.mjs | ||
| rpc-authority.test.mjs | ||
| session-bind-command.test.mjs | ||
| session-bind-store.test.mjs | ||
| session-title.test.mjs | ||
| update-rpc.test.mjs | ||
| update-runtime.test.mjs | ||
| update-service.test.mjs | ||
| update-ui.test.mjs | ||
| weixin-client-api.test.mjs | ||
| workspace-editor.test.mjs | ||
| workspace.test.mjs | ||