chore: adapt the tasks/workflow/teams work to DSH 0.1.7-rc.1 (rebase onto v0.21.1)
Rebases the whole branch onto main's new 0.1.7-rc.1 baseline and lands the adaptation the new host contract requires: the ui-primitives icon family rename (Icon<Name><14|16> -> Icon<Name>Regular/Medium, with the 14px defaults pinned back explicitly) and the StateDot redraw, the rewritten dsh-settings surface (entry-id namespace, DSH schemastery with collected volatile returns, configure auto:false), session format v4 (producer-owned source kind plus the rewritten tool-result shape, parsers accepting both), the client snapshot move to projectionsBySession.subagentCatalog with the jobs.list route behind it, the ^0.1.7-rc.1 peer floor with vendor and bare-import devDeps, the reduced chunk set mirrored in all eight places, and the capability hand-backs (read-only previews, terminal, browser). Verified: typecheck and lint clean; 119 files / 1200 tests; build with no old contract residue in the bundles; mount e2e 7/7; the tasks page still passes its 70-assertion real-browser contract.
This commit is contained in:
1 parent
b554665bde
commit
2a39a0c8b2
41 files changed
+577
-435
No files matched your search
+19
-19
@@ -7,13 +7,13 @@
|
||||
*/
|
||||
import type { ReactNode } from 'react'
|
||||
import {
|
||||
IconCodeOutline16,
|
||||
IconEditOutline16,
|
||||
IconEllipsisOutline16,
|
||||
IconGlobeOutline14,
|
||||
IconPlayOutline16,
|
||||
IconSearchOutline16,
|
||||
IconThinkOutline16,
|
||||
IconCodeOutlineRegular,
|
||||
IconEditOutlineRegular,
|
||||
IconEllipsisOutlineRegular,
|
||||
IconGlobeOutlineRegular,
|
||||
IconPlayOutlineRegular,
|
||||
IconSearchOutlineRegular,
|
||||
IconThinkOutlineRegular,
|
||||
} from '@deepseek-ai/dsh-client-ui-primitives'
|
||||
|
||||
/** One glyph renderer (host icon components accept a pixel size). */
|
||||
@@ -21,21 +21,21 @@ type Glyph = (size: number) => ReactNode
|
||||
|
||||
/** The explicit tool-family map (longest-prefix wins at lookup). */
|
||||
const TOOL_GLYPHS: ReadonlyArray<readonly [string, Glyph]> = [
|
||||
['read', size => <IconCodeOutline16 size={size} />],
|
||||
['write', size => <IconEditOutline16 size={size} />],
|
||||
['edit', size => <IconEditOutline16 size={size} />],
|
||||
['glob', size => <IconSearchOutline16 size={size} />],
|
||||
['grep', size => <IconSearchOutline16 size={size} />],
|
||||
['search', size => <IconSearchOutline16 size={size} />],
|
||||
['bash', size => <IconPlayOutline16 size={size} />],
|
||||
['shell', size => <IconPlayOutline16 size={size} />],
|
||||
['web', size => <IconGlobeOutline14 size={size} />],
|
||||
['fetch', size => <IconGlobeOutline14 size={size} />],
|
||||
['think', size => <IconThinkOutline16 size={size} />],
|
||||
['read', size => <IconCodeOutlineRegular size={size} />],
|
||||
['write', size => <IconEditOutlineRegular size={size} />],
|
||||
['edit', size => <IconEditOutlineRegular size={size} />],
|
||||
['glob', size => <IconSearchOutlineRegular size={size} />],
|
||||
['grep', size => <IconSearchOutlineRegular size={size} />],
|
||||
['search', size => <IconSearchOutlineRegular size={size} />],
|
||||
['bash', size => <IconPlayOutlineRegular size={size} />],
|
||||
['shell', size => <IconPlayOutlineRegular size={size} />],
|
||||
['web', size => <IconGlobeOutlineRegular size={size} />],
|
||||
['fetch', size => <IconGlobeOutlineRegular size={size} />],
|
||||
['think', size => <IconThinkOutlineRegular size={size} />],
|
||||
]
|
||||
|
||||
/** The fallback glyph for unmapped tools. */
|
||||
const FALLBACK_GLYPH: Glyph = size => <IconEllipsisOutline16 size={size} />
|
||||
const FALLBACK_GLYPH: Glyph = size => <IconEllipsisOutlineRegular size={size} />
|
||||
|
||||
/**
|
||||
* The glyph of one tool name: exact match first, then a prefix match so
|
||||
|
||||
Reference in new issue
Block a user