@deepseek-harness-tui/dsh-tui 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -8
- package/cli/adapters/dsh/index.mjs +2 -2
- package/guide/dsh-tui-guide/cli.en.md +1 -1
- package/guide/dsh-tui-guide/cli.md +1 -1
- package/guide/dsh-tui-guide/configuration.en.md +3 -2
- package/guide/dsh-tui-guide/configuration.md +3 -2
- package/guide/dsh-tui-guide/getting-started.en.md +6 -2
- package/guide/dsh-tui-guide/getting-started.md +4 -1
- package/guide/dsh-tui-guide/interaction.en.md +28 -7
- package/guide/dsh-tui-guide/interaction.md +17 -5
- package/guide/dsh-tui-guide/plugins.en.md +28 -7
- package/guide/dsh-tui-guide/plugins.md +18 -5
- package/guide/dsh-tui-guide/user-guide.en.md +29 -15
- package/guide/dsh-tui-guide/user-guide.md +20 -10
- package/lib/settings.json +3 -3
- package/lib/types/adapter/channel/ui-policy.d.ts +1 -0
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +1 -0
- package/lib/types/adapter/ports/channel-ui.d.ts +5 -0
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +3 -0
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.d.ts +60 -0
- package/lib/types/adapter/standard/grants.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.js +74 -0
- package/lib/types/agent/events.d.ts +7 -1
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/commands.js +1 -1
- package/lib/types/components/GoalTodoPanel.d.ts +71 -6
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +165 -17
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +3 -2
- package/lib/types/components/PluginGrantList.d.ts +45 -0
- package/lib/types/components/PluginGrantList.d.ts.map +1 -0
- package/lib/types/components/PluginGrantList.js +126 -0
- package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
- package/lib/types/components/PluginInstallPane.js +35 -6
- package/lib/types/components/PluginManagePane.d.ts.map +1 -1
- package/lib/types/components/PluginManagePane.js +65 -8
- package/lib/types/components/PromptInput.js +2 -2
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +10 -0
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +12 -0
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +11 -5
- package/lib/types/components/onboardingModel.d.ts +2 -2
- package/lib/types/components/onboardingModel.js +3 -3
- package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
- package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
- package/lib/types/components/onboardingProviderPlan.js +78 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +7 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +16 -0
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +8 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +8 -1
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +14 -2
- package/lib/types/components/sidePanel/types.d.ts +2 -0
- package/lib/types/components/sidePanel/types.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.js +15 -1
- package/lib/types/dsh-adapter/backend/session.d.ts +7 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +62 -6
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +9 -5
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +2 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +10 -2
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +22 -7
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +9 -5
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +6 -0
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.js +35 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +5 -0
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +30 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +8 -4
- package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mentions.js +21 -7
- package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.js +11 -9
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +3 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +10 -3
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +3 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +3 -1
- package/lib/types/dsh-adapter/contract.d.ts +4 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +6 -3
- package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
- package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +3 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.js +4 -0
- package/lib/types/dsh-adapter/grant-file.d.ts +70 -0
- package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
- package/lib/types/dsh-adapter/grant-file.js +178 -0
- package/lib/types/dsh-adapter/host-access.d.ts +4 -0
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +54 -4
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +2 -2
- package/lib/types/dsh-adapter/host-dsh.js +3 -3
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +8 -5
- package/lib/types/dsh-adapter/panels.d.ts +7 -1
- package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
- package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-install.js +160 -13
- package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +240 -51
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +64 -18
- package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +34 -21
- package/lib/types/dsh-adapter/presets.d.ts +6 -2
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +23 -5
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +11 -5
- package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
- package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
- package/lib/types/dsh-adapter/row-attachment.js +29 -0
- package/lib/types/dsh-adapter/worktree-tool.d.ts +27 -0
- package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
- package/lib/types/dsh-adapter/worktree-tool.js +87 -0
- package/lib/types/heldInputs.d.ts +36 -0
- package/lib/types/heldInputs.d.ts.map +1 -0
- package/lib/types/heldInputs.js +173 -0
- package/lib/types/i18n.d.ts +352 -25
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +171 -18
- package/lib/types/onboardingDraft.d.ts +143 -0
- package/lib/types/onboardingDraft.d.ts.map +1 -0
- package/lib/types/onboardingDraft.js +71 -0
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +90 -30
- package/lib/types/screens/Onboarding.d.ts +22 -3
- package/lib/types/screens/Onboarding.d.ts.map +1 -1
- package/lib/types/screens/Onboarding.js +606 -36
- package/lib/types/settings/definitions.js +2 -2
- package/lib/types/utils/paths.d.ts +15 -0
- package/lib/types/utils/paths.d.ts.map +1 -1
- package/lib/types/utils/paths.js +25 -0
- package/package.json +111 -108
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import wrapText from '../ink/wrap-text.js';
|
|
4
|
+
import { stringWidth } from '../ink/stringWidth.js';
|
|
5
|
+
import { t } from '../i18n.js';
|
|
6
|
+
import { Box, Text, useTerminalSize } from '../ui.js';
|
|
7
|
+
import { cleanRenderText } from '../channel/sanitize.js';
|
|
8
|
+
import { useOverlayListRows } from './OverlayAbove.js';
|
|
9
|
+
/** Rows a confirmation pane shows before folding the rest into one line. */
|
|
10
|
+
const GRANT_LIST_MAX_ROWS = 12;
|
|
11
|
+
/** Per-cell cap: a permission name and a scope are foreign text like any other. */
|
|
12
|
+
const GRANT_CELLS = 48;
|
|
13
|
+
/** Both panes render this list inside `Pane`, which pads two cells on each side. */
|
|
14
|
+
const PANE_PADDING_CELLS = 4;
|
|
15
|
+
/** What one row spends besides its two cells: ` `, ` @ ` and ` `. */
|
|
16
|
+
const ROW_SEPARATOR_CELLS = 7;
|
|
17
|
+
/** Narrower cells than this stop being useful; the row may then lose its tail. */
|
|
18
|
+
const MIN_CELLS = 4;
|
|
19
|
+
/** Unknown names named on the folded line before it becomes a list of its own. */
|
|
20
|
+
const UNKNOWN_NAMES_SHOWN = 3;
|
|
21
|
+
/** The list's own chrome above the heading; the heading itself is measured. */
|
|
22
|
+
const LIST_TOP_MARGIN_ROWS = 1;
|
|
23
|
+
/** Chat wraps every picker pane in one row's margin inside the overlay. */
|
|
24
|
+
const OVERLAY_PANE_MARGIN_ROWS = 1;
|
|
25
|
+
/**
|
|
26
|
+
* Rows one localized line occupies inside a `Pane` at the current width.
|
|
27
|
+
*
|
|
28
|
+
* A pane that hands the permission list its frame has to know how tall that
|
|
29
|
+
* frame really is: the trust and notice copy wraps differently at 50 and 80
|
|
30
|
+
* columns, so a fixed row count either folds rows that would have fit or lets
|
|
31
|
+
* the list push the pane title off the overlay. This measures with the
|
|
32
|
+
* renderer's own wrap function (the one `Text` uses) at the pane's content
|
|
33
|
+
* width, so the count matches what is drawn.
|
|
34
|
+
*/
|
|
35
|
+
export function usePaneTextRows() {
|
|
36
|
+
const { columns } = useTerminalSize();
|
|
37
|
+
return React.useCallback((text) => wrapText(text, Math.max(1, columns - PANE_PADDING_CELLS), 'wrap').split('\n').length, [columns]);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The permissions one lifecycle action is about, as the confirmation pane shows
|
|
41
|
+
* them (grant lifecycle plan §8).
|
|
42
|
+
*
|
|
43
|
+
* Both the install confirmation and the lifecycle confirmation read the same
|
|
44
|
+
* list, so they cannot describe the same declaration differently. Ordering is
|
|
45
|
+
* deliberate: default-deny (the interception-class) permissions lead — the risk
|
|
46
|
+
* a person is least likely to expect is what they see first — and inside that
|
|
47
|
+
* block the ones not granted yet come first. Granted entries sink within their
|
|
48
|
+
* own group, never across it, so a hand-edited grant on a default-deny row
|
|
49
|
+
* keeps its place in the leading block instead of disappearing under the
|
|
50
|
+
* default-allow rows.
|
|
51
|
+
*
|
|
52
|
+
* Height is the overlay's, not the terminal's: the pane sits in `OverlayAbove`,
|
|
53
|
+
* which reserves a strip above the prompt and clips whole rows from the top.
|
|
54
|
+
* The list therefore folds to whatever its pane's frame leaves — fewer rows plus
|
|
55
|
+
* `and N more…` — instead of pushing the package identity, the trust notice or
|
|
56
|
+
* the key hint off a short terminal.
|
|
57
|
+
*
|
|
58
|
+
* Presentational only; the state lives in the flows.
|
|
59
|
+
*/
|
|
60
|
+
export function PluginGrantList({ plan, mode, frameRows }) {
|
|
61
|
+
// Hooks run before the "nothing to show" return: the pane may re-render this
|
|
62
|
+
// list with another plan, and the hook order must not depend on it.
|
|
63
|
+
const { columns } = useTerminalSize();
|
|
64
|
+
const textRows = usePaneTextRows();
|
|
65
|
+
const overlayRows = useOverlayListRows(0);
|
|
66
|
+
// Nothing to show (a package that declares no permissions): the pane keeps its
|
|
67
|
+
// own layout rather than printing an empty heading.
|
|
68
|
+
if (plan.entries.length === 0 && plan.unknown.length === 0)
|
|
69
|
+
return null;
|
|
70
|
+
// One row per permission. Besides the two foreign cells a row spends ` `,
|
|
71
|
+
// ` @ `, the gap before the status and the localized status itself; `Pane`
|
|
72
|
+
// adds two cells of padding on each side that `useTerminalSize()` does not
|
|
73
|
+
// subtract. Measure the status instead of assuming it: the English labels are
|
|
74
|
+
// wider than the Chinese ones. `wrap="truncate"` is the backstop for terminals
|
|
75
|
+
// narrower than `MIN_CELLS`: an over-long row loses its tail instead of
|
|
76
|
+
// growing a second line and pushing the key hint off the screen.
|
|
77
|
+
// A reduce, not `Math.max(...map)`: the declaration is untrusted input and a
|
|
78
|
+
// manifest can carry more permissions than the argument limit allows.
|
|
79
|
+
const statusCells = plan.entries.reduce((widest, entry) => Math.max(widest, stringWidth(statusOf(entry))), 0);
|
|
80
|
+
const cells = Math.max(MIN_CELLS, Math.min(GRANT_CELLS, Math.floor((columns - PANE_PADDING_CELLS - ROW_SEPARATOR_CELLS - statusCells) / 2)));
|
|
81
|
+
const clean = (value) => cleanRenderText(value, cells);
|
|
82
|
+
const entries = [...plan.entries].sort(compareEntries);
|
|
83
|
+
const title = t(mode === 'grant' ? 'plugins-grant-list-title' : 'plugins-grant-list-title-revoke');
|
|
84
|
+
const unknown = plan.unknown.length === 0
|
|
85
|
+
? undefined
|
|
86
|
+
: ` ${t('plugins-grant-unknown-line', {
|
|
87
|
+
count: String(plan.unknown.length),
|
|
88
|
+
names: `${plan.unknown.slice(0, UNKNOWN_NAMES_SHOWN).map(clean).join(', ')}${plan.unknown.length > UNKNOWN_NAMES_SHOWN ? '…' : ''}`,
|
|
89
|
+
})}`;
|
|
90
|
+
// Rows left for entry rows and the folded-count line. `overlayRows` is the
|
|
91
|
+
// overlay's own budget (`rows - 8` outside one, the same reserve the pickers
|
|
92
|
+
// assume); the frame is what the pane already spends, and the chrome is this
|
|
93
|
+
// list's gap, heading and unknown line.
|
|
94
|
+
const available = overlayRows - frameRows - OVERLAY_PANE_MARGIN_ROWS - LIST_TOP_MARGIN_ROWS
|
|
95
|
+
- textRows(title) - (unknown === undefined ? 0 : textRows(unknown));
|
|
96
|
+
// A frame that already fills the overlay leaves nothing to fold into: drawing
|
|
97
|
+
// a heading and no rows would only cost the rows above it.
|
|
98
|
+
if (entries.length === 0 && available < 0)
|
|
99
|
+
return null;
|
|
100
|
+
if (entries.length > 0 && available < 1)
|
|
101
|
+
return null;
|
|
102
|
+
const cap = Math.min(GRANT_LIST_MAX_ROWS, Math.max(0, available));
|
|
103
|
+
const needsFold = entries.length > cap;
|
|
104
|
+
const shownCount = needsFold ? Math.min(cap, Math.max(0, available - 1)) : entries.length;
|
|
105
|
+
const shown = entries.slice(0, shownCount);
|
|
106
|
+
const hidden = entries.length - shown.length;
|
|
107
|
+
return (_jsxs(Box, { marginTop: LIST_TOP_MARGIN_ROWS, flexDirection: "column", children: [_jsx(Text, { children: title }), shown.length === 0
|
|
108
|
+
// Not one row fits. Keep a count under the heading (the key hint repeats
|
|
109
|
+
// it) instead of drawing a heading with nothing beneath it.
|
|
110
|
+
? hidden > 0 && _jsx(Text, { dimColor: true, wrap: "truncate", children: ` ${t('plugins-grant-hidden', { count: String(hidden) })}` })
|
|
111
|
+
: shown.map(entry => (_jsx(Text, { dimColor: entry.granted, wrap: "truncate", children: ` ${clean(entry.name)} @ ${clean(entry.scope)} ${statusOf(entry)}` }, `${entry.name}\u0000${entry.scope}`))), shown.length > 0 && hidden > 0 && _jsx(Text, { dimColor: true, children: ` ${t('plugins-grant-more', { count: String(hidden) })}` }), unknown !== undefined && _jsx(Text, { dimColor: true, children: unknown })] }));
|
|
112
|
+
}
|
|
113
|
+
/** What one row says about itself: its registry default and whether it is granted. */
|
|
114
|
+
function statusOf(entry) {
|
|
115
|
+
const granted = t(entry.granted ? 'plugins-grant-granted' : 'plugins-grant-not-granted');
|
|
116
|
+
const fallback = t(entry.default === 'allow' ? 'plugins-grant-default-allow' : 'plugins-grant-default-deny');
|
|
117
|
+
return `${fallback} ${granted}`;
|
|
118
|
+
}
|
|
119
|
+
/** Default-deny before default-allow, then not-yet-granted before granted. */
|
|
120
|
+
function compareEntries(left, right) {
|
|
121
|
+
if (left.default !== right.default)
|
|
122
|
+
return left.default === 'deny' ? -1 : 1;
|
|
123
|
+
if (left.granted !== right.granted)
|
|
124
|
+
return left.granted ? 1 : -1;
|
|
125
|
+
return 0;
|
|
126
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginInstallPane.d.ts","sourceRoot":"","sources":["../../../src/components/PluginInstallPane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,iBAAiB,EAAqB,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"PluginInstallPane.d.ts","sourceRoot":"","sources":["../../../src/components/PluginInstallPane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,iBAAiB,EAAqB,MAAM,kCAAkC,CAAA;AAsB5F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,SAAS,CAqH7G"}
|
|
@@ -5,6 +5,7 @@ import { cleanRenderText, NOTICE_CELLS } from '../channel/sanitize.js';
|
|
|
5
5
|
import { HintLine } from './design-system/HintLine.js';
|
|
6
6
|
import { LoadingState } from './design-system/LoadingState.js';
|
|
7
7
|
import { Pane } from './design-system/Pane.js';
|
|
8
|
+
import { PluginGrantList, usePaneTextRows } from './PluginGrantList.js';
|
|
8
9
|
/** Foreign text on its way to the screen: control sequences stripped, bounded. */
|
|
9
10
|
const clean = (value) => cleanRenderText(value, NOTICE_CELLS);
|
|
10
11
|
/**
|
|
@@ -30,19 +31,47 @@ const TARGET_CELLS = 80;
|
|
|
30
31
|
* (Enter confirms / retries, Esc cancels), exactly like the SDK install wizard.
|
|
31
32
|
*/
|
|
32
33
|
export function PluginInstallPane({ step, busy }) {
|
|
34
|
+
const textRows = usePaneTextRows();
|
|
33
35
|
if (busy) {
|
|
34
36
|
return (_jsxs(Pane, { color: "permission", children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "remember", bold: true, children: t('plugins-install-pane-title') }), _jsx(Box, { marginTop: 1, children: _jsx(LoadingState, { message: t('plugins-install-installing') }) })] }), _jsx(Text, { dimColor: true, italic: true, children: _jsx(HintLine, { text: t('plugins-install-key-cancel') }) })] }));
|
|
35
37
|
}
|
|
36
38
|
if (step.kind === 'confirm') {
|
|
37
|
-
const { artifact, trust, notice } = step;
|
|
39
|
+
const { artifact, trust, notice, grants } = step;
|
|
38
40
|
const spec = artifact.name === undefined
|
|
39
41
|
? t('plugins-install-unidentified')
|
|
40
42
|
: cleanRenderText(`${artifact.name}${artifact.version === undefined ? '' : `@${artifact.version}`}`, TARGET_CELLS);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
const title = t('plugins-install-pane-title');
|
|
44
|
+
const configure = t('plugins-install-configure', {
|
|
45
|
+
spec,
|
|
46
|
+
kind: artifact.kind,
|
|
47
|
+
bundle: artifact.bundle === true ? 'bundle' : artifact.bundle === false ? 'not a bundle' : 'unknown',
|
|
48
|
+
});
|
|
49
|
+
const trustText = trust.kind === 'third-party' ? t('plugins-install-trust-third-party') : undefined;
|
|
50
|
+
const noticeText = notice.kind === 'declared' ? t('plugins-install-notice-declared')
|
|
51
|
+
: notice.kind === 'undeclared' ? t('plugins-install-notice-undeclared')
|
|
52
|
+
: notice.kind === 'invalid' ? t('plugins-install-notice-invalid', { err: notice.error })
|
|
53
|
+
: notice.kind === 'unjudged' ? t('plugins-install-notice-unjudged')
|
|
54
|
+
: undefined;
|
|
55
|
+
const grantCount = grants?.entries.length ?? 0;
|
|
56
|
+
const hint = grantCount > 0
|
|
57
|
+
? t('plugins-install-key-confirm-grant', { count: String(grantCount) })
|
|
58
|
+
: t('plugins-install-key-confirm');
|
|
59
|
+
// Everything the overlay draws besides the permission rows: Pane's top line
|
|
60
|
+
// and padding, the title and its gap, the configure line, the facts gap, the
|
|
61
|
+
// trust/notice copy and the hint. Measured at this width, so the list folds
|
|
62
|
+
// itself instead of pushing them off a short terminal.
|
|
63
|
+
const frameRows = 2 + textRows(title) + 1 + textRows(configure) + 1
|
|
64
|
+
+ (trustText === undefined ? 0 : textRows(trustText))
|
|
65
|
+
+ (noticeText === undefined ? 0 : textRows(noticeText)) + textRows(hint);
|
|
66
|
+
return (_jsxs(Pane, { color: "permission", children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "remember", bold: true, children: title }) }), _jsx(Text, { children: configure }), _jsxs(Box, { marginTop: 1, flexDirection: "column", children: [trustText !== undefined && _jsx(Text, { children: trustText }), noticeText !== undefined && _jsx(Text, { dimColor: notice.kind === 'declared', children: noticeText })] }), grants !== undefined && _jsx(PluginGrantList, { plan: grants, mode: "grant", frameRows: frameRows })] }), _jsx(Text, { dimColor: true, italic: true, children: _jsx(HintLine, { text: hint }) })] }));
|
|
67
|
+
}
|
|
68
|
+
if (step.kind === 'grant') {
|
|
69
|
+
const title = t('plugins-install-pane-title');
|
|
70
|
+
const ask = t('plugins-install-grant-ask', { id: clean(step.plan.id) });
|
|
71
|
+
const hint = t('plugins-install-key-grant', { count: String(step.plan.entries.length) });
|
|
72
|
+
// Pane frame, title and its gap, the question, the hint.
|
|
73
|
+
const frameRows = 2 + textRows(title) + 1 + textRows(ask) + textRows(hint);
|
|
74
|
+
return (_jsxs(Pane, { color: "permission", children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "remember", bold: true, children: title }) }), _jsx(Text, { children: ask }), _jsx(PluginGrantList, { plan: step.plan, mode: "grant", frameRows: frameRows })] }), _jsx(Text, { dimColor: true, italic: true, children: _jsx(HintLine, { text: hint }) })] }));
|
|
46
75
|
}
|
|
47
76
|
if (step.kind === 'build-blocked') {
|
|
48
77
|
return (_jsxs(Pane, { color: "permission", children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "remember", bold: true, children: t('plugins-install-pane-title') }), _jsxs(Box, { marginTop: 1, flexDirection: "column", children: [_jsx(Text, { children: t('plugins-install-builds-title') }), step.builds.map(build => _jsx(Text, { dimColor: true, children: ` ${clean(build)}` }, build))] })] }), _jsx(Text, { dimColor: true, italic: true, children: _jsx(HintLine, { text: t('plugins-install-key-builds') }) })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginManagePane.d.ts","sourceRoot":"","sources":["../../../src/components/PluginManagePane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,gBAAgB,EAAsB,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"PluginManagePane.d.ts","sourceRoot":"","sources":["../../../src/components/PluginManagePane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,gBAAgB,EAAsB,MAAM,iCAAiC,CAAA;AAkB3F;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,CAAC,SAAS,CAiF3G"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { t } from '../i18n.js';
|
|
3
3
|
import { Box, Text } from '../ui.js';
|
|
4
4
|
import { cleanRenderText, NOTICE_CELLS } from '../channel/sanitize.js';
|
|
5
5
|
import { HintLine } from './design-system/HintLine.js';
|
|
6
6
|
import { LoadingState } from './design-system/LoadingState.js';
|
|
7
7
|
import { Pane } from './design-system/Pane.js';
|
|
8
|
+
import { PluginGrantList, usePaneTextRows } from './PluginGrantList.js';
|
|
8
9
|
/** Foreign text on its way to the screen: control sequences stripped, bounded. */
|
|
9
10
|
const clean = (value) => cleanRenderText(value, NOTICE_CELLS);
|
|
10
11
|
/**
|
|
@@ -30,6 +31,7 @@ const TARGET_CELLS = 80;
|
|
|
30
31
|
* and the key hints. Keys are handled in Chat (Enter answers, Esc closes).
|
|
31
32
|
*/
|
|
32
33
|
export function PluginManagePane({ step, busy }) {
|
|
34
|
+
const textRows = usePaneTextRows();
|
|
33
35
|
if (busy) {
|
|
34
36
|
// A write is in flight. Esc closes the pane and the write finishes anyway —
|
|
35
37
|
// the service has no cancellation for these three, and saying "cancelling"
|
|
@@ -37,18 +39,73 @@ export function PluginManagePane({ step, busy }) {
|
|
|
37
39
|
return (_jsxs(Pane, { color: "permission", children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: "remember", bold: true, children: t('plugins-manage-pane-title') }), _jsx(Box, { marginTop: 1, children: _jsx(LoadingState, { message: t('plugins-manage-working') }) })] }), _jsx(Text, { dimColor: true, italic: true, children: _jsx(HintLine, { text: t('plugins-manage-key-busy') }) })] }));
|
|
38
40
|
}
|
|
39
41
|
if (step.kind === 'confirm') {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
const title = t('plugins-manage-pane-title');
|
|
43
|
+
const configure = t('plugins-manage-configure', {
|
|
44
|
+
action: t(actionKeyOf(step.target)),
|
|
45
|
+
target: describe(step.target),
|
|
46
|
+
});
|
|
47
|
+
const facts = [];
|
|
48
|
+
if (step.question.kind === 'remove') {
|
|
49
|
+
facts.push(t('plugins-manage-remove-facts', {
|
|
50
|
+
rows: String(step.target.kind === 'bundle' ? step.target.rows : 0),
|
|
51
|
+
overrides: String(step.target.kind === 'bundle' ? step.target.overrides : 0),
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
else if (step.question.kind === 'trust') {
|
|
55
|
+
facts.push(t('plugins-manage-trust-facts'));
|
|
56
|
+
}
|
|
57
|
+
else if (step.question.kind === 'host-row') {
|
|
58
|
+
facts.push(t('plugins-manage-host-row-facts'));
|
|
59
|
+
}
|
|
60
|
+
else if (step.question.kind === 'team-active') {
|
|
61
|
+
if (step.question.members > 0) {
|
|
62
|
+
facts.push(t('plugins-manage-team-active-facts', { members: String(step.question.members) }));
|
|
63
|
+
}
|
|
64
|
+
if (step.question.unseen > 0) {
|
|
65
|
+
facts.push(t('plugins-manage-team-unseen-facts', { members: String(step.question.unseen) }));
|
|
66
|
+
}
|
|
67
|
+
facts.push(t('plugins-manage-team-active-stop'));
|
|
68
|
+
}
|
|
69
|
+
const grantFacts = step.target.action === 'remove' && step.grants !== undefined
|
|
70
|
+
? t('plugins-manage-remove-grant-facts')
|
|
71
|
+
: undefined;
|
|
72
|
+
const hint = hintTextOf(step);
|
|
73
|
+
// Everything the overlay draws besides the permission rows: Pane's top line
|
|
74
|
+
// and padding, the title and its gap, the configure line, the facts gap, the
|
|
75
|
+
// facts themselves, the removal note and the hint. Measured at this width,
|
|
76
|
+
// so the list folds instead of pushing them off a short terminal.
|
|
77
|
+
const frameRows = 2 + textRows(title) + 1 + textRows(configure) + 1
|
|
78
|
+
+ facts.reduce((rows, fact) => rows + textRows(fact), 0)
|
|
79
|
+
+ (grantFacts === undefined ? 0 : 1 + textRows(grantFacts))
|
|
80
|
+
+ textRows(hint);
|
|
81
|
+
return (_jsxs(Pane, { color: "permission", children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: "remember", bold: true, children: title }) }), _jsx(Text, { children: configure }), _jsx(Box, { marginTop: 1, flexDirection: "column", children: facts.map((fact, index) => _jsx(Text, { children: fact }, index)) }), step.target.kind === 'bundle' && step.target.action === 'enable'
|
|
82
|
+
&& step.grants !== undefined
|
|
83
|
+
&& _jsx(PluginGrantList, { plan: step.grants, mode: "grant", frameRows: frameRows }), step.target.kind === 'bundle' && step.target.action === 'disable'
|
|
84
|
+
&& step.grants !== undefined
|
|
85
|
+
&& _jsx(PluginGrantList, { plan: step.grants, mode: "revoke", frameRows: frameRows }), grantFacts !== undefined
|
|
86
|
+
&& _jsx(Box, { marginTop: 1, children: _jsx(Text, { children: grantFacts }) })] }), _jsx(Text, { dimColor: true, italic: true, children: _jsx(HintLine, { text: hint }) })] }));
|
|
47
87
|
}
|
|
48
88
|
// `done` never renders: its lines are already in the transcript, so Chat
|
|
49
89
|
// closes the pane instead of leaving an empty box behind.
|
|
50
90
|
return null;
|
|
51
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* The key hint for this question. Enabling grants the declared permissions and
|
|
94
|
+
* disabling revokes them, so the hint names both halves of the action when
|
|
95
|
+
* there is something to grant or revoke; a removal keeps the plain hint (its
|
|
96
|
+
* grant fact is a line of its own).
|
|
97
|
+
*/
|
|
98
|
+
function hintTextOf(step) {
|
|
99
|
+
const grants = step.grants;
|
|
100
|
+
if (step.target.kind === 'bundle' && grants !== undefined && grants.entries.length > 0) {
|
|
101
|
+
if (step.target.action === 'enable')
|
|
102
|
+
return t('plugins-manage-key-enable-grant', { count: String(grants.entries.length) });
|
|
103
|
+
if (step.target.action === 'disable') {
|
|
104
|
+
return t('plugins-manage-key-disable-revoke', { count: String(grants.entries.length) });
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return t('plugins-manage-key-confirm');
|
|
108
|
+
}
|
|
52
109
|
/** Which verb the title asks about. */
|
|
53
110
|
function actionKeyOf(target) {
|
|
54
111
|
return target.action === 'remove'
|
|
@@ -3869,7 +3869,7 @@ export function PromptInput({ channel, toastSuppressed, suspended = false, curso
|
|
|
3869
3869
|
.filter(item => item.placement === 'steer' && item.docked !== true)
|
|
3870
3870
|
.map(item => (_jsxs(Text, { dimColor: true, wrap: "truncate", children: [' ', "\u21B3 ", item.text] }, item.id)))] })), channel.pending.some(item => item.placement === 'followup' && item.docked !== true) && (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { dimColor: true, children: ["\u23F3 ", t('input-pending-queue-label')] }), channel.pending
|
|
3871
3871
|
.filter(item => item.placement === 'followup' && item.docked !== true)
|
|
3872
|
-
.map(item => (_jsxs(Text, { dimColor: true, wrap: "truncate", children: [' ', "\u21B3 ", item.text] }, item.id)))] })), dockCount > 0 && (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { dimColor: true, children: ["\u23F8 ", t('input-pending-dock-label')] }), dockedPending.slice(dockStart, dockEnd).map((item, index) => {
|
|
3872
|
+
.map(item => (_jsxs(Text, { dimColor: true, wrap: "truncate", children: [' ', "\u21B3 ", item.text] }, item.id)))] })), dockCount > 0 && (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { dimColor: true, children: ["\u23F8 ", t(dockedPending.every(item => item.orphaned === true) ? 'input-pending-orphan-label' : 'input-pending-dock-label')] }), dockedPending.slice(dockStart, dockEnd).map((item, index) => {
|
|
3873
3873
|
// The window maps to absolute dock indices: the click and
|
|
3874
3874
|
// the highlight name the same row the user sees.
|
|
3875
3875
|
const absoluteIndex = dockStart + index;
|
|
@@ -3880,7 +3880,7 @@ export function PromptInput({ channel, toastSuppressed, suspended = false, curso
|
|
|
3880
3880
|
// 点击提示行 = 全部发送(与空输入 ⏎ 同路径)
|
|
3881
3881
|
, {
|
|
3882
3882
|
// 点击提示行 = 全部发送(与空输入 ⏎ 同路径)
|
|
3883
|
-
onClick: () => { sendDocked(); }, children: _jsxs(Text, { dimColor: true, children: [' ', t(channel.working ? 'input-pending-dock-hint-working' : 'input-pending-dock-hint')] }) })] })), _jsxs(Text, { dimColor: true, children: ["Alt+\u2191 ", t('input-pending-actions-hint')] })] })), fileOverlayOpen && (_jsx(FileSuggestions, { files: fileMatches, selectedIndex: fileSelected, columns: columns, query: mention?.query ?? '', accent: promptAccent,
|
|
3883
|
+
onClick: () => { sendDocked(); }, children: _jsxs(Text, { dimColor: true, children: [' ', t(channel.status === 'disposed' ? 'input-pending-dock-hint-disposed' : channel.working ? 'input-pending-dock-hint-working' : 'input-pending-dock-hint')] }) })] })), _jsxs(Text, { dimColor: true, children: ["Alt+\u2191 ", t(channel.status === 'disposed' ? 'input-pending-actions-hint-disposed' : 'input-pending-actions-hint')] })] })), fileOverlayOpen && (_jsx(FileSuggestions, { files: fileMatches, selectedIndex: fileSelected, columns: columns, query: mention?.query ?? '', accent: promptAccent,
|
|
3884
3884
|
// 点击行 = 接受该项(与 Enter 同路径)
|
|
3885
3885
|
onPick: (index) => {
|
|
3886
3886
|
const file = fileMatches[index];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubagentDashboard.d.ts","sourceRoot":"","sources":["../../../src/components/SubagentDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"SubagentDashboard.d.ts","sourceRoot":"","sources":["../../../src/components/SubagentDashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAOhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAC9E,OAAO,KAAK,EAAY,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAI1E,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,SAAS,aAAa,EAAE,CAAA;IACnC,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;IACzC;mDAC+C;IAC/C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC;0BACsB;IACtB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wCAAwC;IACxC,QAAQ,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACtC;6DACyD;IACzD,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;2DACuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;iCAC6B;IAC7B,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAOjF;AAED,yCAAyC;AACzC,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,KAAK,CAAC,SAAS,CAWhF;AAgED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,IAAI,EACJ,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,OAAmB,EACnB,OAAc,EACd,OAAc,GACf,EAAE,sBAAsB,GAAG,KAAK,CAAC,SAAS,CAyS1C"}
|
|
@@ -5,6 +5,7 @@ import { SubagentCard, teamStatusGlyph } from './SubagentCard.js';
|
|
|
5
5
|
import { t } from '../i18n.js';
|
|
6
6
|
import { Divider } from './design-system/Divider.js';
|
|
7
7
|
import { isPlainReturnInput } from '../utils/modifiers.js';
|
|
8
|
+
import { actionMatches } from '../utils/keymap.js';
|
|
8
9
|
import { usePanelInput } from './sidePanel/usePanelInput.js';
|
|
9
10
|
import { AgentMessagesSummary } from './messages/AgentMessageFlow.js';
|
|
10
11
|
import { isTeamTaskBlocked, teamDashboardModel, teamTaskProgress } from './teamRoster.js';
|
|
@@ -118,6 +119,15 @@ export function SubagentDashboard({ subagents, team, sessionId, peers, onClose,
|
|
|
118
119
|
const panelKeyHandler = (input, key) => {
|
|
119
120
|
if (key.escape === true || (key.ctrl === true && input === 'c'))
|
|
120
121
|
return false;
|
|
122
|
+
// 分栏在渲染时 keymap 的 `paste` 组合(可重映射,macOS 上是 Cmd+V)先
|
|
123
|
+
// 投递给活动面板:粘贴组合本身(含重映射到方向键等命名键)不触发表面动作。
|
|
124
|
+
if (actionMatches('paste', input, key, true))
|
|
125
|
+
return false;
|
|
126
|
+
// 带修饰的字母同样不触发字母快捷键(Cmd+V 不能命中下面的 v)。方向键/Enter
|
|
127
|
+
// 保持面板自己的语义(Cmd+↑/↓ 移焦点、Cmd+Enter 选中;isPanelPlainReturn
|
|
128
|
+
// 不转发 super),不能被粘贴守卫一并吃掉。
|
|
129
|
+
if ((key.ctrl === true || key.meta === true || key.super === true) && /^[a-z]$/u.test(input.toLowerCase()))
|
|
130
|
+
return false;
|
|
121
131
|
if (key.upArrow === true) {
|
|
122
132
|
moveFocus(-1);
|
|
123
133
|
scrollRef.current?.scrollBy(-3);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubagentDetailScene.d.ts","sourceRoot":"","sources":["../../../src/components/SubagentDetailScene.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAExG,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"SubagentDetailScene.d.ts","sourceRoot":"","sources":["../../../src/components/SubagentDetailScene.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAExG,OAAO,EAKL,KAAK,gBAAgB,EACtB,MAAM,kCAAkC,CAAA;AA+JzC,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,aAAa,CAAA;IACvB,+DAA+D;IAC/D,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAA;IACjD,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;qDAEiD;IACjD,cAAc,CAAC,EAAE,gBAAgB,CAAA;IACjC,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACtC,gDAAgD;IAChD,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;KAAE,CAAA;IACxF;iCAC6B;IAC7B,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,aAAa,EACb,MAAM,EACN,WAAW,EACX,cAAc,EACd,UAAU,EACV,QAAa,EACb,OAAO,EACP,OAAmB,EACnB,OAAc,EACd,OAAc,GACf,EAAE,wBAAwB,GAAG,KAAK,CAAC,SAAS,CAomB5C"}
|
|
@@ -10,6 +10,7 @@ import { t } from '../i18n.js';
|
|
|
10
10
|
import { Divider } from './design-system/Divider.js';
|
|
11
11
|
import { ExitButton, isPanelPlainReturn } from './SubagentDashboard.js';
|
|
12
12
|
import { isPlainReturnInput } from '../utils/modifiers.js';
|
|
13
|
+
import { actionMatches } from '../utils/keymap.js';
|
|
13
14
|
import { toolNameColor } from './messages/AssistantToolUseMessage.js';
|
|
14
15
|
import { Markdown } from './Markdown.js';
|
|
15
16
|
import { getCliHighlightPromise } from '../terminal-utils/cliHighlight.js';
|
|
@@ -322,6 +323,12 @@ export function SubagentDetailScene({ subagent, onFailureRead, onBack, onInterru
|
|
|
322
323
|
// 的 Esc 回退是「焦点回聊天」)。其余未认的键返回 false,让 [/]、数字、
|
|
323
324
|
// z、+/- 继续可用。
|
|
324
325
|
const panelKeyHandler = (input, key) => {
|
|
326
|
+
// 分栏在渲染时 keymap 的 `paste` 组合(可重映射,macOS 上是 Cmd+V)先
|
|
327
|
+
// 投递给活动面板:粘贴组合本身(含重映射到方向键等命名键)不触发表面动作。
|
|
328
|
+
// 必须排在 composer 转发之前:否则重映射到 ctrl+backspace / ctrl+← 的
|
|
329
|
+
// 粘贴键会在子代理 composer 里删字/移光标(Cmd+V 还会插入字面 v)。
|
|
330
|
+
if (actionMatches('paste', input, key, true))
|
|
331
|
+
return false;
|
|
325
332
|
// composer 聚焦时键先给编辑器(含 Esc);↑/↓ 仍滚动正文。
|
|
326
333
|
if (compose !== undefined && composerFocused) {
|
|
327
334
|
if (key.upArrow === true || key.downArrow === true) {
|
|
@@ -334,6 +341,11 @@ export function SubagentDetailScene({ subagent, onFailureRead, onBack, onInterru
|
|
|
334
341
|
onBack();
|
|
335
342
|
return true;
|
|
336
343
|
}
|
|
344
|
+
// 带修饰的字母同样不触发字母快捷键(Cmd+V 不能命中下面的 v)。方向键/Enter
|
|
345
|
+
// 保持面板自己的语义(Cmd+←/→ 翻页、Cmd+Enter 折叠/返回;isPanelPlainReturn
|
|
346
|
+
// 不转发 super),不能被粘贴守卫一并吃掉。
|
|
347
|
+
if ((key.ctrl === true || key.meta === true || key.super === true) && /^[a-z]$/u.test(input.toLowerCase()))
|
|
348
|
+
return false;
|
|
337
349
|
if (key.leftArrow === true) {
|
|
338
350
|
turnPage(-1);
|
|
339
351
|
return true;
|
|
@@ -11,7 +11,8 @@ type Props = {
|
|
|
11
11
|
verbose: boolean;
|
|
12
12
|
/** Message-selection mode highlight. */
|
|
13
13
|
isSelected?: boolean;
|
|
14
|
-
/** Row expanded on its own (
|
|
14
|
+
/** Row expanded on its own (click / Enter); the card keeps the background
|
|
15
|
+
* configured for tool cards. */
|
|
15
16
|
isExpanded?: boolean;
|
|
16
17
|
/**
|
|
17
18
|
* Mouse click (fullscreen): toggles the row's expansion — same action as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantToolUseMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/AssistantToolUseMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAA8C,OAAO,EAAE,MAAM,8BAA8B,CAAA;AASvG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AASjE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAA;IACb,4CAA4C;IAC5C,eAAe,EAAE,OAAO,CAAA;IACxB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAA;IAChB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB
|
|
1
|
+
{"version":3,"file":"AssistantToolUseMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/AssistantToolUseMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAA8C,OAAO,EAAE,MAAM,8BAA8B,CAAA;AASvG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AASjE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAA;IACb,4CAA4C;IAC5C,eAAe,EAAE,OAAO,CAAA;IACxB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAA;IAChB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;qCACiC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IACjC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;IACzC,2EAA2E;IAC3E,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;8CAC0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,qFAAqF;IACrF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;4BAGwB;IACxB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;6BAEyB;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AA2LD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,KAAK,CAS9F;AAoZD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EACJ,eAAe,EACf,OAAO,EACP,UAAkB,EAClB,UAAkB,EAClB,OAAO,EACP,QAAQ,EACR,UAAmB,EACnB,cAAuB,EACvB,UAAU,EACV,mBAA2B,EAC3B,YAAoB,EACpB,KAAa,EACb,aAAa,EACb,YAAoB,EACpB,UAAkB,GACnB,EAAE,KAAK,GAAG,KAAK,CAAC,SAAS,CAiYzB"}
|
|
@@ -729,14 +729,20 @@ export function AssistantToolUseMessage({ tool, marginTopOnTurn, verbose, isSele
|
|
|
729
729
|
const shownLines = liveLines.length === 0 || revealedLines.length < rendered.length
|
|
730
730
|
? revealedLines
|
|
731
731
|
: [...lines, ...liveLines, ...rendered.slice(lines.length)];
|
|
732
|
-
//
|
|
733
|
-
//
|
|
734
|
-
|
|
735
|
-
const
|
|
732
|
+
// The configured treatment is the ordinary card's own face, so it stays on
|
|
733
|
+
// while the row is expanded — growing the body must not make the card lose
|
|
734
|
+
// the surface the user chose. Selection is the exception: it owns the row.
|
|
735
|
+
const cardToolBackground = isSelected ? 'none' : toolBackground;
|
|
736
|
+
const ordinaryBackground = cardToolBackground === 'subtle'
|
|
736
737
|
? 'toolCardBackgroundDim'
|
|
737
|
-
:
|
|
738
|
+
: cardToolBackground === 'strong'
|
|
738
739
|
? 'toolCardBackground'
|
|
739
740
|
: undefined;
|
|
741
|
+
// Nested split-diff context panes must yield to whatever paints the card:
|
|
742
|
+
// `none` keeps them transparent so the selection highlight, or the root
|
|
743
|
+
// card's configured face while expanded, shows through instead of stacking
|
|
744
|
+
// a second fill on top of it.
|
|
745
|
+
const ordinaryToolBackground = isSelected || isExpanded ? 'none' : toolBackground;
|
|
740
746
|
// Hover affordance for the click-to-toggle row: the theme's tool-card blue
|
|
741
747
|
// face marks the call's content area while the pointer dwells (the
|
|
742
748
|
// toolBackground treatment steps up one level to the strong card face), the
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { LlmModelInfo, LlmProviderInfo } from '../adapter/ports/channel-view.js';
|
|
2
2
|
import type { BalanceResult } from '../adapter/ports/channel-catalog.js';
|
|
3
3
|
/** 引导的四个配置域,按"先解决拦路的事、再解决好不好看、最后解决怎么用"排。 */
|
|
4
|
-
export declare const ONBOARDING_STEPS: readonly ["
|
|
4
|
+
export declare const ONBOARDING_STEPS: readonly ["access", "look", "model", "keys"];
|
|
5
5
|
export type OnboardingStep = (typeof ONBOARDING_STEPS)[number];
|
|
6
6
|
/**
|
|
7
|
-
* 步骤条需要的**最小**尺寸:四步的标题横排(`❯
|
|
7
|
+
* 步骤条需要的**最小**尺寸:四步的标题横排(`❯ 账号与模型接入 · ...`)
|
|
8
8
|
* 在 76 列下会被截成残句,在 8 行下会把内容挤没——那时整条不画,进度改由
|
|
9
9
|
* 头部那行"第 N / 4 步"承担(信息不丢,只是换了个地方)。
|
|
10
10
|
*/
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { t } from '../i18n.js';
|
|
10
10
|
/** 引导的四个配置域,按"先解决拦路的事、再解决好不好看、最后解决怎么用"排。 */
|
|
11
|
-
export const ONBOARDING_STEPS = ['
|
|
11
|
+
export const ONBOARDING_STEPS = ['access', 'look', 'model', 'keys'];
|
|
12
12
|
/**
|
|
13
|
-
* 步骤条需要的**最小**尺寸:四步的标题横排(`❯
|
|
13
|
+
* 步骤条需要的**最小**尺寸:四步的标题横排(`❯ 账号与模型接入 · ...`)
|
|
14
14
|
* 在 76 列下会被截成残句,在 8 行下会把内容挤没——那时整条不画,进度改由
|
|
15
15
|
* 头部那行"第 N / 4 步"承担(信息不丢,只是换了个地方)。
|
|
16
16
|
*/
|
|
@@ -38,7 +38,7 @@ export const TUTORIAL_CARDS = [
|
|
|
38
38
|
* 文案"一眼可读。
|
|
39
39
|
*/
|
|
40
40
|
const STEP_TEXT = {
|
|
41
|
-
|
|
41
|
+
access: { title: 'onboarding-step-access-title', desc: 'onboarding-step-access-desc' },
|
|
42
42
|
look: { title: 'onboarding-step-look-title', desc: 'onboarding-step-look-desc' },
|
|
43
43
|
model: { title: 'onboarding-step-model-title', desc: 'onboarding-step-model-desc' },
|
|
44
44
|
keys: { title: 'onboarding-step-keys-title', desc: 'onboarding-step-keys-desc' },
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure derivation for the first-run guide's "accounts and models" step: what
|
|
3
|
+
* a sign-in or a provider write actually produced, and what that means for
|
|
4
|
+
* the default model.
|
|
5
|
+
*
|
|
6
|
+
* The guide's first step used to be a read-only credential check, which left
|
|
7
|
+
* the user with an environment variable and no action. The configuration
|
|
8
|
+
* surfaces already exist (`/provider`, `dsh-auth`'s subscription sign-in);
|
|
9
|
+
* what was missing is the piece that catches their RESULT. That result is
|
|
10
|
+
* observable: `dsh-auth`'s catalog is credential-gated
|
|
11
|
+
* (`dsh-adapter/oauth/index.ts`, `CredentialGatedAdapter`), so a provider
|
|
12
|
+
* with no stored credential lists no models — the moment a sign-in or key
|
|
13
|
+
* write lands, its models appear in `channel.listModels()`.
|
|
14
|
+
*
|
|
15
|
+
* Everything here is a pure function of two catalog snapshots, so the
|
|
16
|
+
* three-way decision the product wants — nothing new, exactly one model, or
|
|
17
|
+
* several — is pinned by `scripts/verify-onboarding-provider-plan.ts` without
|
|
18
|
+
* a terminal, a channel, or a credential store.
|
|
19
|
+
*
|
|
20
|
+
* @module dsh-tui/components/onboardingProviderPlan
|
|
21
|
+
*/
|
|
22
|
+
import type { LlmModelInfo } from '../adapter/ports/channel-view.js';
|
|
23
|
+
/** One model row, reduced to the identity the diff and the pickers need. */
|
|
24
|
+
export interface ProviderModelRef {
|
|
25
|
+
readonly provider: string;
|
|
26
|
+
readonly id: string;
|
|
27
|
+
/** Display name; falls back to the id at the call site, never here. */
|
|
28
|
+
readonly name: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* What the adopter should do with the models that just appeared.
|
|
32
|
+
*
|
|
33
|
+
* - `none` — nothing new; the caller only reports the action's outcome.
|
|
34
|
+
* - `auto` — exactly one new model; it becomes the default without asking
|
|
35
|
+
* (the product rule: one candidate needs no question).
|
|
36
|
+
* - `ask` — several; the caller asks which one becomes the default. All of
|
|
37
|
+
* them are usable either way (the catalog is credential-gated, not
|
|
38
|
+
* selection-gated), so there is nothing to adopt or leave out — only a
|
|
39
|
+
* default to pick.
|
|
40
|
+
*/
|
|
41
|
+
export type AdoptionDecision = 'none' | 'auto' | 'ask';
|
|
42
|
+
/** The adoption plan for one action's catalog delta. */
|
|
43
|
+
export interface AdoptionPlan {
|
|
44
|
+
/**
|
|
45
|
+
* The provider this batch belongs to: the explicit filter when the caller
|
|
46
|
+
* knows what it acted on, else the first provider with new models. Absent
|
|
47
|
+
* only when nothing was added.
|
|
48
|
+
*/
|
|
49
|
+
readonly provider: string | undefined;
|
|
50
|
+
/** New models, current-catalog order, deduped by provider/id. */
|
|
51
|
+
readonly added: readonly ProviderModelRef[];
|
|
52
|
+
/** True when `added` spans more than one provider (copy needs the plural). */
|
|
53
|
+
readonly multiProvider: boolean;
|
|
54
|
+
readonly decision: AdoptionDecision;
|
|
55
|
+
/**
|
|
56
|
+
* The preselection for the `ask` branch: the live route when it is among
|
|
57
|
+
* the new models (a re-login of the provider already in use must not move
|
|
58
|
+
* the cursor), else the first added model. `undefined` for `none`.
|
|
59
|
+
*/
|
|
60
|
+
readonly defaultPick: ProviderModelRef | undefined;
|
|
61
|
+
}
|
|
62
|
+
/** Stable identity of one catalog row across snapshots. */
|
|
63
|
+
export declare function modelRefKey(ref: ProviderModelRef): string;
|
|
64
|
+
/**
|
|
65
|
+
* Reduce a channel catalog to the diffable rows.
|
|
66
|
+
*
|
|
67
|
+
* @param models - `channel.listModels()` result (advisory order preserved).
|
|
68
|
+
* @returns One row per model, in the order the catalog listed them.
|
|
69
|
+
*/
|
|
70
|
+
export declare function modelRefsOf(models: readonly LlmModelInfo[]): readonly ProviderModelRef[];
|
|
71
|
+
/**
|
|
72
|
+
* Models present now and absent from the baseline.
|
|
73
|
+
*
|
|
74
|
+
* @param baseline - Catalog snapshot taken BEFORE the action.
|
|
75
|
+
* @param current - Catalog snapshot taken after it.
|
|
76
|
+
* @param provider - Optional filter (the provider the action touched).
|
|
77
|
+
* @returns New rows in `current` order, deduped by provider/id.
|
|
78
|
+
*/
|
|
79
|
+
export declare function addedModelRefs(baseline: readonly ProviderModelRef[], current: readonly ProviderModelRef[], provider?: string): readonly ProviderModelRef[];
|
|
80
|
+
/**
|
|
81
|
+
* The whole step-1 decision in one call.
|
|
82
|
+
*
|
|
83
|
+
* Repeated calls with the same baseline are idempotent (`added` is a set
|
|
84
|
+
* difference), which is what lets a remount after a question panel re-run the
|
|
85
|
+
* same plan without asking about the same models twice — the baseline lives
|
|
86
|
+
* in `src/onboardingDraft.ts`, not in React state, exactly for that remount.
|
|
87
|
+
*
|
|
88
|
+
* @param input - Baseline and current catalogs, optional provider filter and
|
|
89
|
+
* the live route used to preselect the `ask` branch.
|
|
90
|
+
* @returns The plan described by {@link AdoptionPlan}.
|
|
91
|
+
*/
|
|
92
|
+
export declare function planModelAdoption(input: {
|
|
93
|
+
readonly baseline: readonly ProviderModelRef[];
|
|
94
|
+
readonly current: readonly ProviderModelRef[];
|
|
95
|
+
readonly provider?: string | undefined;
|
|
96
|
+
readonly currentRoute?: {
|
|
97
|
+
readonly provider: string;
|
|
98
|
+
readonly id: string;
|
|
99
|
+
} | undefined;
|
|
100
|
+
}): AdoptionPlan;
|
|
101
|
+
/**
|
|
102
|
+
* Provider ids in first-appearance order — the group order for the adoption
|
|
103
|
+
* layer, so a batch is presented in the order the catalog produced it rather
|
|
104
|
+
* than in a second, arbitrary sort.
|
|
105
|
+
*
|
|
106
|
+
* @param added - The plan's `added` rows.
|
|
107
|
+
* @returns Distinct provider ids.
|
|
108
|
+
*/
|
|
109
|
+
export declare function addedProviderOrder(added: readonly ProviderModelRef[]): readonly string[];
|
|
110
|
+
//# sourceMappingURL=onboardingProviderPlan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboardingProviderPlan.d.ts","sourceRoot":"","sources":["../../../src/components/onboardingProviderPlan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,4EAA4E;AAC5E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,uEAAuE;IACvE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;AAEtD,wDAAwD;AACxD,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,iEAAiE;IACjE,QAAQ,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAA;IAC3C,8EAA8E;IAC9E,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAA;IACnC;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAA;CACnD;AAED,2DAA2D;AAC3D,wBAAgB,WAAW,CAAC,GAAG,EAAE,gBAAgB,GAAG,MAAM,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,gBAAgB,EAAE,CAExF;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EACrC,OAAO,EAAE,SAAS,gBAAgB,EAAE,EACpC,QAAQ,CAAC,EAAE,MAAM,GAChB,SAAS,gBAAgB,EAAE,CAW7B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAA;IAC9C,QAAQ,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;IAC7C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;CACvF,GAAG,YAAY,CAef;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,gBAAgB,EAAE,GAAG,SAAS,MAAM,EAAE,CAIxF"}
|