fix: test

This commit is contained in:
imccyu
2026-08-13 04:02:29 +08:00
parent 499d397631
commit 77f9c4fa0a
@@ -1653,7 +1653,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
'useInput: SnapshotSelectorHook<InputState>',
'inputActions: InputActions',
],
keyDomain: 'open: any string the owner dispatches (no compile-time key set), already taken: ask_user_question, bash, cordis_define, cordis_run, edit, glob, grep, read, skill, todo_write, web_fetch, web_search, write',
keyDomain: 'open: any string the owner dispatches (no compile-time key set), already taken: ask_user_question, bash, cordis_define, cordis_run, cordis_stop, cordis_undefine, edit, glob, grep, read, skill, todo_write, web_fetch, web_search, write',
hookContext: '',
slotInject: '',
declaredBy: 'an entry in \'conversation.chat.node\' (client-ui-tool), so it exists while that entry is mounted',
@@ -1671,6 +1671,8 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
'client-ui-tool WebRow key \'web_fetch\'',
'client-ui-cordis CordisDefineRow key \'cordis_define\'',
'client-ui-cordis CordisRunRow key \'cordis_run\'',
'client-ui-cordis CordisActionRow key \'cordis_stop\'',
'client-ui-cordis CordisActionRow key \'cordis_undefine\'',
],
replaceRisk: 'shadows-shipped-ui',
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'tool.call.toolview\', () => ctx.slots.register(\n { name: \'tool.call.toolview\', key: \'<one key the owner dispatches>\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',