feat: optimze skill and tool

This commit is contained in:
imccyu
2026-08-13 03:46:20 +08:00
parent 35b51dd15c
commit 499d397631
13 changed files with 132 additions and 30 deletions
@@ -228,8 +228,8 @@ describe('run_code sub-calls through the real chat machinery', () => {
// Each run-control verb names its act and shows the package id; without the
// owned titles all three would read "Tool call · cordis_run · dyn-2".
expect(nest.querySelector('[data-tool="cordis_runtime_inspect"]')?.textContent).toContain('Inspect')
expect(nest.querySelector('[data-tool="cordis_run"]')?.textContent).toContain('Run dynamic packagedyn-2')
expect(nest.querySelector('[data-tool="cordis_undefine"]')?.textContent).toContain('Discard dynamic packagedyn-2')
expect(nest.querySelector('[data-tool="cordis_run"]')?.textContent).toContain('Run Cordis Plugindyn-2')
expect(nest.querySelector('[data-tool="cordis_undefine"]')?.textContent).toContain('Remove Cordis Plugindyn-2')
// None of them is a code row: the program belongs to cordis_define, whose
// own keyed card renders it (the next case covers the code row itself).
expect(nest.querySelector('[data-variant="code"]')).toBeNull()