@dungle-scrubs/tallow 0.9.3 → 0.9.6
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/dist/cli.js +7 -4
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/interactive-mode-patch.d.ts +24 -10
- package/dist/interactive-mode-patch.d.ts.map +1 -1
- package/dist/interactive-mode-patch.js +285 -148
- package/dist/interactive-mode-patch.js.map +1 -1
- package/dist/interactive-reset.d.ts +49 -0
- package/dist/interactive-reset.d.ts.map +1 -0
- package/dist/interactive-reset.js +40 -0
- package/dist/interactive-reset.js.map +1 -0
- package/dist/pi-tui-editor-patch.d.ts +10 -0
- package/dist/pi-tui-editor-patch.d.ts.map +1 -0
- package/dist/pi-tui-editor-patch.js +159 -0
- package/dist/pi-tui-editor-patch.js.map +1 -0
- package/dist/pi-tui-patch.d.ts +2 -0
- package/dist/pi-tui-patch.d.ts.map +1 -0
- package/dist/pi-tui-patch.js +563 -0
- package/dist/pi-tui-patch.js.map +1 -0
- package/dist/pi-tui-settings-list-patch.d.ts +11 -0
- package/dist/pi-tui-settings-list-patch.d.ts.map +1 -0
- package/dist/pi-tui-settings-list-patch.js +38 -0
- package/dist/pi-tui-settings-list-patch.js.map +1 -0
- package/dist/reset-diagnostics.d.ts +69 -0
- package/dist/reset-diagnostics.d.ts.map +1 -0
- package/dist/reset-diagnostics.js +41 -0
- package/dist/reset-diagnostics.js.map +1 -0
- package/dist/sdk.d.ts +5 -21
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +180 -149
- package/dist/sdk.js.map +1 -1
- package/dist/workspace-transition-interactive.d.ts +1 -0
- package/dist/workspace-transition-interactive.d.ts.map +1 -1
- package/dist/workspace-transition-interactive.js +7 -17
- package/dist/workspace-transition-interactive.js.map +1 -1
- package/extensions/__integration__/audit-findings.test.ts +6 -16
- package/extensions/__integration__/teams-runtime.test.ts +4 -1
- package/extensions/_icons/index.ts +2 -4
- package/extensions/_shared/__tests__/image-metadata.test.ts +33 -0
- package/extensions/_shared/__tests__/terminal-links.test.ts +18 -0
- package/extensions/_shared/image-metadata.ts +99 -0
- package/extensions/_shared/inline-preview.ts +1 -1
- package/extensions/_shared/pid-registry.ts +0 -1
- package/extensions/_shared/terminal-links.ts +22 -0
- package/extensions/ask-user-question-tool/index.ts +0 -3
- package/extensions/clear/__tests__/clear.test.ts +270 -3
- package/extensions/command-expansion/index.ts +1 -1
- package/extensions/context-files/index.ts +5 -1
- package/extensions/context-fork/__tests__/context-fork.test.ts +94 -1
- package/extensions/context-fork/extension.json +1 -1
- package/extensions/context-fork/index.ts +32 -0
- package/extensions/edit-tool-enhanced/index.ts +2 -1
- package/extensions/hooks/index.ts +33 -11
- package/extensions/loop/index.ts +14 -1
- package/extensions/lsp/index.ts +64 -13
- package/extensions/lsp/package.json +2 -2
- package/extensions/permissions/__tests__/permissions.test.ts +4 -4
- package/extensions/random-spinner/index.ts +7 -642
- package/extensions/read-tool-enhanced/index.ts +6 -8
- package/extensions/render-stabilizer/__tests__/render-stabilizer.test.ts +4 -5
- package/extensions/render-stabilizer/index.ts +6 -6
- package/extensions/show-system-prompt/__tests__/show-system-prompt.test.ts +1 -1
- package/extensions/slash-command-bridge/__tests__/slash-command-bridge.test.ts +26 -0
- package/extensions/slash-command-bridge/index.ts +14 -2
- package/extensions/subagent-tool/index.ts +1 -1
- package/extensions/subagent-tool/model-resolver.ts +274 -7
- package/extensions/tasks/__tests__/state-ui.test.ts +3 -3
- package/extensions/tasks/__tests__/widget-subagents.test.ts +2 -2
- package/extensions/tasks/commands/register-tasks-extension.ts +10 -10
- package/extensions/tasks/state/index.ts +1 -1
- package/extensions/tasks/ui/index.ts +2 -7
- package/extensions/teams-tool/tools/register-extension.ts +1 -3
- package/extensions/web-search-tool/index.ts +2 -1
- package/extensions/write-tool-enhanced/__tests__/write-tool-enhanced.test.ts +21 -6
- package/extensions/write-tool-enhanced/index.ts +2 -1
- package/node_modules/@mariozechner/pi-tui/README.md +56 -34
- package/node_modules/@mariozechner/pi-tui/dist/autocomplete.d.ts +18 -13
- package/node_modules/@mariozechner/pi-tui/dist/autocomplete.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/autocomplete.js +182 -113
- package/node_modules/@mariozechner/pi-tui/dist/autocomplete.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/cancellable-loader.js +3 -3
- package/node_modules/@mariozechner/pi-tui/dist/components/cancellable-loader.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/editor.d.ts +45 -36
- package/node_modules/@mariozechner/pi-tui/dist/components/editor.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/editor.js +489 -325
- package/node_modules/@mariozechner/pi-tui/dist/components/editor.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/image.d.ts +1 -99
- package/node_modules/@mariozechner/pi-tui/dist/components/image.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/image.js +17 -192
- package/node_modules/@mariozechner/pi-tui/dist/components/image.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/input.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/input.js +57 -60
- package/node_modules/@mariozechner/pi-tui/dist/components/input.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/loader.d.ts +2 -69
- package/node_modules/@mariozechner/pi-tui/dist/components/loader.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/loader.js +5 -102
- package/node_modules/@mariozechner/pi-tui/dist/components/loader.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/markdown.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/markdown.js +111 -53
- package/node_modules/@mariozechner/pi-tui/dist/components/markdown.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/select-list.d.ts +19 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/select-list.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/select-list.js +78 -67
- package/node_modules/@mariozechner/pi-tui/dist/components/select-list.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/settings-list.d.ts +0 -2
- package/node_modules/@mariozechner/pi-tui/dist/components/settings-list.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/settings-list.js +12 -23
- package/node_modules/@mariozechner/pi-tui/dist/components/settings-list.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/index.d.ts +8 -10
- package/node_modules/@mariozechner/pi-tui/dist/index.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/index.js +6 -9
- package/node_modules/@mariozechner/pi-tui/dist/index.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/keybindings.d.ts +108 -238
- package/node_modules/@mariozechner/pi-tui/dist/keybindings.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/keybindings.js +108 -365
- package/node_modules/@mariozechner/pi-tui/dist/keybindings.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/keys.d.ts +33 -48
- package/node_modules/@mariozechner/pi-tui/dist/keys.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/keys.js +239 -155
- package/node_modules/@mariozechner/pi-tui/dist/keys.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/terminal-image.d.ts +14 -94
- package/node_modules/@mariozechner/pi-tui/dist/terminal-image.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/terminal-image.js +44 -186
- package/node_modules/@mariozechner/pi-tui/dist/terminal-image.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/terminal.d.ts +13 -58
- package/node_modules/@mariozechner/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/terminal.js +78 -111
- package/node_modules/@mariozechner/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/tui.d.ts +24 -110
- package/node_modules/@mariozechner/pi-tui/dist/tui.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/tui.js +188 -435
- package/node_modules/@mariozechner/pi-tui/dist/tui.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/utils.d.ts +0 -18
- package/node_modules/@mariozechner/pi-tui/dist/utils.d.ts.map +1 -1
- package/node_modules/@mariozechner/pi-tui/dist/utils.js +251 -119
- package/node_modules/@mariozechner/pi-tui/dist/utils.js.map +1 -1
- package/node_modules/@mariozechner/pi-tui/package.json +6 -6
- package/node_modules/@mariozechner/pi-tui/src/__tests__/__snapshots__/render.test.ts.snap +3 -40
- package/node_modules/@mariozechner/pi-tui/src/__tests__/image-component.test.ts +71 -81
- package/node_modules/@mariozechner/pi-tui/src/__tests__/render.test.ts +0 -33
- package/node_modules/@mariozechner/pi-tui/src/__tests__/terminal-image.test.ts +93 -334
- package/node_modules/@mariozechner/pi-tui/src/__tests__/tui-render-scheduling.test.ts +1 -1
- package/node_modules/@mariozechner/pi-tui/src/__tests__/utils.test.ts +11 -196
- package/node_modules/@mariozechner/pi-tui/src/autocomplete.ts +228 -142
- package/node_modules/@mariozechner/pi-tui/src/components/cancellable-loader.ts +3 -3
- package/node_modules/@mariozechner/pi-tui/src/components/editor.ts +624 -390
- package/node_modules/@mariozechner/pi-tui/src/components/image.ts +17 -227
- package/node_modules/@mariozechner/pi-tui/src/components/input.ts +71 -63
- package/node_modules/@mariozechner/pi-tui/src/components/loader.ts +5 -137
- package/node_modules/@mariozechner/pi-tui/src/components/markdown.ts +143 -52
- package/node_modules/@mariozechner/pi-tui/src/components/select-list.ts +136 -70
- package/node_modules/@mariozechner/pi-tui/src/components/settings-list.ts +11 -23
- package/node_modules/@mariozechner/pi-tui/src/index.ts +17 -36
- package/node_modules/@mariozechner/pi-tui/src/keybindings.ts +148 -421
- package/node_modules/@mariozechner/pi-tui/src/keys.ts +253 -181
- package/node_modules/@mariozechner/pi-tui/src/terminal-image.ts +51 -252
- package/node_modules/@mariozechner/pi-tui/src/terminal.ts +78 -133
- package/node_modules/@mariozechner/pi-tui/src/tui.ts +202 -478
- package/node_modules/@mariozechner/pi-tui/src/utils.ts +289 -125
- package/node_modules/@mariozechner/pi-tui/tsconfig.build.json +1 -0
- package/package.json +13 -13
- package/packages/tallow-tui/node_modules/@types/mime-types/README.md +8 -2
- package/packages/tallow-tui/node_modules/@types/mime-types/index.d.ts +6 -0
- package/packages/tallow-tui/node_modules/@types/mime-types/package.json +9 -3
- package/packages/tallow-tui/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/packages/tallow-tui/node_modules/get-east-asian-width/lookup.js +116 -384
- package/packages/tallow-tui/node_modules/get-east-asian-width/package.json +5 -4
- package/packages/tallow-tui/node_modules/get-east-asian-width/utilities.js +24 -0
- package/packages/tallow-tui/node_modules/marked/README.md +5 -4
- package/packages/tallow-tui/node_modules/marked/bin/main.js +10 -8
- package/packages/tallow-tui/node_modules/marked/bin/marked.js +2 -1
- package/packages/tallow-tui/node_modules/marked/lib/marked.d.ts +156 -125
- package/packages/tallow-tui/node_modules/marked/lib/marked.esm.js +67 -2179
- package/packages/tallow-tui/node_modules/marked/lib/marked.esm.js.map +3 -3
- package/packages/tallow-tui/node_modules/marked/lib/marked.umd.js +67 -2201
- package/packages/tallow-tui/node_modules/marked/lib/marked.umd.js.map +3 -3
- package/packages/tallow-tui/node_modules/marked/man/marked.1 +4 -2
- package/packages/tallow-tui/node_modules/marked/man/marked.1.md +2 -1
- package/packages/tallow-tui/node_modules/marked/package.json +26 -34
- package/runtime/model-metadata-overrides.ts +10 -1
- package/runtime/pid-schema.ts +26 -6
- package/skills/tallow-expert/SKILL.md +1 -3
- package/node_modules/@mariozechner/pi-tui/dist/border-styles.d.ts +0 -32
- package/node_modules/@mariozechner/pi-tui/dist/border-styles.d.ts.map +0 -1
- package/node_modules/@mariozechner/pi-tui/dist/border-styles.js +0 -46
- package/node_modules/@mariozechner/pi-tui/dist/border-styles.js.map +0 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/bordered-box.d.ts +0 -52
- package/node_modules/@mariozechner/pi-tui/dist/components/bordered-box.d.ts.map +0 -1
- package/node_modules/@mariozechner/pi-tui/dist/components/bordered-box.js +0 -89
- package/node_modules/@mariozechner/pi-tui/dist/components/bordered-box.js.map +0 -1
- package/node_modules/@mariozechner/pi-tui/dist/test-utils/capability-env.d.ts +0 -14
- package/node_modules/@mariozechner/pi-tui/dist/test-utils/capability-env.d.ts.map +0 -1
- package/node_modules/@mariozechner/pi-tui/dist/test-utils/capability-env.js +0 -55
- package/node_modules/@mariozechner/pi-tui/dist/test-utils/capability-env.js.map +0 -1
- package/node_modules/@mariozechner/pi-tui/src/__tests__/editor-change-listener.test.ts +0 -121
- package/node_modules/@mariozechner/pi-tui/src/__tests__/editor-ghost-text.test.ts +0 -112
- package/node_modules/@mariozechner/pi-tui/src/__tests__/mouse-events.test.ts +0 -134
- package/node_modules/@mariozechner/pi-tui/src/__tests__/settings-list.test.ts +0 -49
- package/node_modules/@mariozechner/pi-tui/src/__tests__/tui-diff-regression.test.ts +0 -555
- package/node_modules/@mariozechner/pi-tui/src/border-styles.ts +0 -60
- package/node_modules/@mariozechner/pi-tui/src/components/bordered-box.ts +0 -113
- package/node_modules/@mariozechner/pi-tui/src/test-utils/capability-env.ts +0 -56
- package/packages/tallow-tui/node_modules/marked/lib/marked.cjs +0 -2211
- package/packages/tallow-tui/node_modules/marked/lib/marked.cjs.map +0 -7
- package/packages/tallow-tui/node_modules/marked/lib/marked.d.cts +0 -728
- package/packages/tallow-tui/node_modules/marked/marked.min.js +0 -69
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,4BAA4B,EAC5B,KAAK,YAAY,GACjB,MAAM,mBAAmB,CAAC;AAE3B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ocomplete support
|
|
3
3
|
export { CombinedAutocompleteProvider, } from "./autocomplete.js";
|
|
4
|
-
// Border styles
|
|
5
|
-
export { defaultBorderStyle, FLAT, ROUNDED, SHARP, setDefaultBorderStyle, } from "./border-styles.js";
|
|
6
4
|
// Components
|
|
7
|
-
export { BorderedBox } from "./components/bordered-box.js";
|
|
8
5
|
export { Box } from "./components/box.js";
|
|
9
6
|
export { CancellableLoader } from "./components/cancellable-loader.js";
|
|
10
7
|
export { Editor } from "./components/editor.js";
|
|
11
|
-
export { Image
|
|
8
|
+
export { Image } from "./components/image.js";
|
|
12
9
|
export { Input } from "./components/input.js";
|
|
13
10
|
export { Loader } from "./components/loader.js";
|
|
14
11
|
export { Markdown } from "./components/markdown.js";
|
|
15
|
-
export { SelectList } from "./components/select-list.js";
|
|
12
|
+
export { SelectList, } from "./components/select-list.js";
|
|
16
13
|
export { SettingsList, } from "./components/settings-list.js";
|
|
17
14
|
export { Spacer } from "./components/spacer.js";
|
|
18
15
|
export { Text } from "./components/text.js";
|
|
@@ -20,16 +17,16 @@ export { TruncatedText } from "./components/truncated-text.js";
|
|
|
20
17
|
// Fuzzy matching
|
|
21
18
|
export { fuzzyFilter, fuzzyMatch } from "./fuzzy.js";
|
|
22
19
|
// Keybindings
|
|
23
|
-
export {
|
|
20
|
+
export { getKeybindings, KeybindingsManager, setKeybindings, TUI_KEYBINDINGS, } from "./keybindings.js";
|
|
24
21
|
// Keyboard input handling
|
|
25
|
-
export { isKeyRelease, isKeyRepeat, isKittyProtocolActive,
|
|
22
|
+
export { decodeKittyPrintable, isKeyRelease, isKeyRepeat, isKittyProtocolActive, Key, matchesKey, parseKey, setKittyProtocolActive, } from "./keys.js";
|
|
26
23
|
// Input buffering for batch splitting
|
|
27
24
|
export { StdinBuffer } from "./stdin-buffer.js";
|
|
28
25
|
// Terminal interface and implementations
|
|
29
26
|
export { ProcessTerminal } from "./terminal.js";
|
|
30
27
|
// Terminal image support
|
|
31
|
-
export { allocateImageId,
|
|
28
|
+
export { allocateImageId, calculateImageRows, deleteAllKittyImages, deleteKittyImage, detectCapabilities, encodeITerm2, encodeKitty, getCapabilities, getCellDimensions, getGifDimensions, getImageDimensions, getJpegDimensions, getPngDimensions, getWebpDimensions, hyperlink, imageFallback, renderImage, resetCapabilitiesCache, setCapabilities, setCellDimensions, } from "./terminal-image.js";
|
|
32
29
|
export { Container, CURSOR_MARKER, isFocusable, TUI, } from "./tui.js";
|
|
33
30
|
// Utilities
|
|
34
|
-
export {
|
|
31
|
+
export { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "./utils.js";
|
|
35
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAElC,uBAAuB;AACvB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAElC,uBAAuB;AACvB,OAAO,EAIN,4BAA4B,GAE5B,MAAM,mBAAmB,CAAC;AAC3B,aAAa;AACb,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAwC,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAsC,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAyB,QAAQ,EAAsB,MAAM,0BAA0B,CAAC;AAC/F,OAAO,EAEN,UAAU,GAIV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEN,YAAY,GAEZ,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,iBAAiB;AACjB,OAAO,EAAmB,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACtE,cAAc;AACd,OAAO,EACN,cAAc,EAOd,kBAAkB,EAClB,cAAc,EACd,eAAe,GACf,MAAM,kBAAkB,CAAC;AAC1B,0BAA0B;AAC1B,OAAO,EACN,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,GAAG,EAGH,UAAU,EACV,QAAQ,EACR,sBAAsB,GACtB,MAAM,WAAW,CAAC;AACnB,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAqD,MAAM,mBAAmB,CAAC;AACnG,yCAAyC;AACzC,OAAO,EAAE,eAAe,EAAiB,MAAM,eAAe,CAAC;AAC/D,yBAAyB;AACzB,OAAO,EACN,eAAe,EAEf,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EAIT,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,iBAAiB,GAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEN,SAAS,EACT,aAAa,EAEb,WAAW,EAMX,GAAG,GACH,MAAM,UAAU,CAAC;AAClB,YAAY;AACZ,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,323 +1,193 @@
|
|
|
1
1
|
import { type KeyId } from "./keys.js";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Global keybinding registry.
|
|
4
|
+
* Downstream packages can add keybindings via declaration merging.
|
|
5
|
+
*/
|
|
3
6
|
export interface Keybindings {
|
|
7
|
+
"tui.editor.cursorUp": true;
|
|
4
8
|
"tui.editor.cursorDown": true;
|
|
5
9
|
"tui.editor.cursorLeft": true;
|
|
6
|
-
"tui.editor.cursorLineEnd": true;
|
|
7
|
-
"tui.editor.cursorLineStart": true;
|
|
8
10
|
"tui.editor.cursorRight": true;
|
|
9
|
-
"tui.editor.cursorUp": true;
|
|
10
11
|
"tui.editor.cursorWordLeft": true;
|
|
11
12
|
"tui.editor.cursorWordRight": true;
|
|
13
|
+
"tui.editor.cursorLineStart": true;
|
|
14
|
+
"tui.editor.cursorLineEnd": true;
|
|
15
|
+
"tui.editor.jumpForward": true;
|
|
16
|
+
"tui.editor.jumpBackward": true;
|
|
17
|
+
"tui.editor.pageUp": true;
|
|
18
|
+
"tui.editor.pageDown": true;
|
|
12
19
|
"tui.editor.deleteCharBackward": true;
|
|
13
20
|
"tui.editor.deleteCharForward": true;
|
|
14
|
-
"tui.editor.deleteToLineEnd": true;
|
|
15
|
-
"tui.editor.deleteToLineStart": true;
|
|
16
21
|
"tui.editor.deleteWordBackward": true;
|
|
17
22
|
"tui.editor.deleteWordForward": true;
|
|
18
|
-
"tui.editor.
|
|
19
|
-
"tui.editor.
|
|
20
|
-
"tui.editor.pageDown": true;
|
|
21
|
-
"tui.editor.pageUp": true;
|
|
22
|
-
"tui.editor.undo": true;
|
|
23
|
+
"tui.editor.deleteToLineStart": true;
|
|
24
|
+
"tui.editor.deleteToLineEnd": true;
|
|
23
25
|
"tui.editor.yank": true;
|
|
24
26
|
"tui.editor.yankPop": true;
|
|
25
|
-
"tui.
|
|
27
|
+
"tui.editor.undo": true;
|
|
26
28
|
"tui.input.newLine": true;
|
|
27
29
|
"tui.input.submit": true;
|
|
28
30
|
"tui.input.tab": true;
|
|
29
|
-
"tui.
|
|
30
|
-
"tui.select.
|
|
31
|
+
"tui.input.copy": true;
|
|
32
|
+
"tui.select.up": true;
|
|
31
33
|
"tui.select.down": true;
|
|
32
|
-
"tui.select.pageDown": true;
|
|
33
34
|
"tui.select.pageUp": true;
|
|
34
|
-
"tui.select.
|
|
35
|
+
"tui.select.pageDown": true;
|
|
36
|
+
"tui.select.confirm": true;
|
|
37
|
+
"tui.select.cancel": true;
|
|
35
38
|
}
|
|
36
|
-
|
|
37
|
-
readonly copy: "tui.input.copy";
|
|
38
|
-
readonly cursorDown: "tui.editor.cursorDown";
|
|
39
|
-
readonly cursorLeft: "tui.editor.cursorLeft";
|
|
40
|
-
readonly cursorLineEnd: "tui.editor.cursorLineEnd";
|
|
41
|
-
readonly cursorLineStart: "tui.editor.cursorLineStart";
|
|
42
|
-
readonly cursorRight: "tui.editor.cursorRight";
|
|
43
|
-
readonly cursorUp: "tui.editor.cursorUp";
|
|
44
|
-
readonly cursorWordLeft: "tui.editor.cursorWordLeft";
|
|
45
|
-
readonly cursorWordRight: "tui.editor.cursorWordRight";
|
|
46
|
-
readonly deleteCharBackward: "tui.editor.deleteCharBackward";
|
|
47
|
-
readonly deleteCharForward: "tui.editor.deleteCharForward";
|
|
48
|
-
readonly deleteSession: "app.session.delete";
|
|
49
|
-
readonly deleteSessionNoninvasive: "app.session.deleteNoninvasive";
|
|
50
|
-
readonly deleteToLineEnd: "tui.editor.deleteToLineEnd";
|
|
51
|
-
readonly deleteToLineStart: "tui.editor.deleteToLineStart";
|
|
52
|
-
readonly deleteWordBackward: "tui.editor.deleteWordBackward";
|
|
53
|
-
readonly deleteWordForward: "tui.editor.deleteWordForward";
|
|
54
|
-
readonly expandTools: "app.tools.expand";
|
|
55
|
-
readonly jumpBackward: "tui.editor.jumpBackward";
|
|
56
|
-
readonly jumpForward: "tui.editor.jumpForward";
|
|
57
|
-
readonly newLine: "tui.input.newLine";
|
|
58
|
-
readonly pageDown: "tui.editor.pageDown";
|
|
59
|
-
readonly pageUp: "tui.editor.pageUp";
|
|
60
|
-
readonly renameSession: "app.session.rename";
|
|
61
|
-
readonly selectCancel: "tui.select.cancel";
|
|
62
|
-
readonly selectConfirm: "tui.select.confirm";
|
|
63
|
-
readonly selectDown: "tui.select.down";
|
|
64
|
-
readonly selectPageDown: "tui.select.pageDown";
|
|
65
|
-
readonly selectPageUp: "tui.select.pageUp";
|
|
66
|
-
readonly selectUp: "tui.select.up";
|
|
67
|
-
readonly submit: "tui.input.submit";
|
|
68
|
-
readonly tab: "tui.input.tab";
|
|
69
|
-
readonly toggleSessionPath: "app.session.togglePath";
|
|
70
|
-
readonly toggleSessionSort: "app.session.toggleSort";
|
|
71
|
-
readonly undo: "tui.editor.undo";
|
|
72
|
-
readonly yank: "tui.editor.yank";
|
|
73
|
-
readonly yankPop: "tui.editor.yankPop";
|
|
74
|
-
};
|
|
75
|
-
/** Backward-compatible legacy editor actions. */
|
|
76
|
-
export type EditorAction = keyof typeof LEGACY_TO_MODERN_KEYBINDINGS;
|
|
77
|
-
/** Modern keybinding identifier. */
|
|
78
|
-
export type Keybinding = keyof Keybindings | EditorAction;
|
|
79
|
-
/** Single keybinding definition with defaults and UI help text. */
|
|
39
|
+
export type Keybinding = keyof Keybindings;
|
|
80
40
|
export interface KeybindingDefinition {
|
|
81
|
-
|
|
82
|
-
|
|
41
|
+
defaultKeys: KeyId | KeyId[];
|
|
42
|
+
description?: string;
|
|
83
43
|
}
|
|
84
|
-
|
|
85
|
-
export type KeybindingsConfig =
|
|
86
|
-
/** Backward-compatible legacy editor config. */
|
|
87
|
-
export type EditorKeybindingsConfig = Partial<Record<EditorAction, KeyId | readonly KeyId[]>>;
|
|
88
|
-
/** Default legacy editor keybindings preserved for compatibility. */
|
|
89
|
-
export declare const DEFAULT_EDITOR_KEYBINDINGS: Required<Record<EditorAction, KeyId | readonly KeyId[]>>;
|
|
90
|
-
/** Modern TUI keybinding definitions consumed by pi-coding-agent 0.61+. */
|
|
44
|
+
export type KeybindingDefinitions = Record<string, KeybindingDefinition>;
|
|
45
|
+
export type KeybindingsConfig = Record<string, KeyId | KeyId[] | undefined>;
|
|
91
46
|
export declare const TUI_KEYBINDINGS: {
|
|
47
|
+
readonly "tui.editor.cursorUp": {
|
|
48
|
+
readonly defaultKeys: "up";
|
|
49
|
+
readonly description: "Move cursor up";
|
|
50
|
+
};
|
|
92
51
|
readonly "tui.editor.cursorDown": {
|
|
93
|
-
readonly defaultKeys:
|
|
52
|
+
readonly defaultKeys: "down";
|
|
94
53
|
readonly description: "Move cursor down";
|
|
95
54
|
};
|
|
96
55
|
readonly "tui.editor.cursorLeft": {
|
|
97
|
-
readonly defaultKeys:
|
|
56
|
+
readonly defaultKeys: ["left", "ctrl+b"];
|
|
98
57
|
readonly description: "Move cursor left";
|
|
99
58
|
};
|
|
100
|
-
readonly "tui.editor.cursorLineEnd": {
|
|
101
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
102
|
-
readonly description: "Move to line end";
|
|
103
|
-
};
|
|
104
|
-
readonly "tui.editor.cursorLineStart": {
|
|
105
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
106
|
-
readonly description: "Move to line start";
|
|
107
|
-
};
|
|
108
59
|
readonly "tui.editor.cursorRight": {
|
|
109
|
-
readonly defaultKeys:
|
|
60
|
+
readonly defaultKeys: ["right", "ctrl+f"];
|
|
110
61
|
readonly description: "Move cursor right";
|
|
111
62
|
};
|
|
112
|
-
readonly "tui.editor.cursorUp": {
|
|
113
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
114
|
-
readonly description: "Move cursor up";
|
|
115
|
-
};
|
|
116
63
|
readonly "tui.editor.cursorWordLeft": {
|
|
117
|
-
readonly defaultKeys:
|
|
64
|
+
readonly defaultKeys: ["alt+left", "ctrl+left", "alt+b"];
|
|
118
65
|
readonly description: "Move cursor word left";
|
|
119
66
|
};
|
|
120
67
|
readonly "tui.editor.cursorWordRight": {
|
|
121
|
-
readonly defaultKeys:
|
|
68
|
+
readonly defaultKeys: ["alt+right", "ctrl+right", "alt+f"];
|
|
122
69
|
readonly description: "Move cursor word right";
|
|
123
70
|
};
|
|
71
|
+
readonly "tui.editor.cursorLineStart": {
|
|
72
|
+
readonly defaultKeys: ["home", "ctrl+a"];
|
|
73
|
+
readonly description: "Move to line start";
|
|
74
|
+
};
|
|
75
|
+
readonly "tui.editor.cursorLineEnd": {
|
|
76
|
+
readonly defaultKeys: ["end", "ctrl+e"];
|
|
77
|
+
readonly description: "Move to line end";
|
|
78
|
+
};
|
|
79
|
+
readonly "tui.editor.jumpForward": {
|
|
80
|
+
readonly defaultKeys: "ctrl+]";
|
|
81
|
+
readonly description: "Jump forward to character";
|
|
82
|
+
};
|
|
83
|
+
readonly "tui.editor.jumpBackward": {
|
|
84
|
+
readonly defaultKeys: "ctrl+alt+]";
|
|
85
|
+
readonly description: "Jump backward to character";
|
|
86
|
+
};
|
|
87
|
+
readonly "tui.editor.pageUp": {
|
|
88
|
+
readonly defaultKeys: "pageUp";
|
|
89
|
+
readonly description: "Page up";
|
|
90
|
+
};
|
|
91
|
+
readonly "tui.editor.pageDown": {
|
|
92
|
+
readonly defaultKeys: "pageDown";
|
|
93
|
+
readonly description: "Page down";
|
|
94
|
+
};
|
|
124
95
|
readonly "tui.editor.deleteCharBackward": {
|
|
125
|
-
readonly defaultKeys:
|
|
96
|
+
readonly defaultKeys: "backspace";
|
|
126
97
|
readonly description: "Delete character backward";
|
|
127
98
|
};
|
|
128
99
|
readonly "tui.editor.deleteCharForward": {
|
|
129
|
-
readonly defaultKeys:
|
|
100
|
+
readonly defaultKeys: ["delete", "ctrl+d"];
|
|
130
101
|
readonly description: "Delete character forward";
|
|
131
102
|
};
|
|
132
|
-
readonly "tui.editor.deleteToLineEnd": {
|
|
133
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
134
|
-
readonly description: "Delete to line end";
|
|
135
|
-
};
|
|
136
|
-
readonly "tui.editor.deleteToLineStart": {
|
|
137
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
138
|
-
readonly description: "Delete to line start";
|
|
139
|
-
};
|
|
140
103
|
readonly "tui.editor.deleteWordBackward": {
|
|
141
|
-
readonly defaultKeys:
|
|
104
|
+
readonly defaultKeys: ["ctrl+w", "alt+backspace"];
|
|
142
105
|
readonly description: "Delete word backward";
|
|
143
106
|
};
|
|
144
107
|
readonly "tui.editor.deleteWordForward": {
|
|
145
|
-
readonly defaultKeys:
|
|
108
|
+
readonly defaultKeys: ["alt+d", "alt+delete"];
|
|
146
109
|
readonly description: "Delete word forward";
|
|
147
110
|
};
|
|
148
|
-
readonly "tui.editor.
|
|
149
|
-
readonly defaultKeys:
|
|
150
|
-
readonly description: "
|
|
151
|
-
};
|
|
152
|
-
readonly "tui.editor.jumpForward": {
|
|
153
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
154
|
-
readonly description: "Jump forward to character";
|
|
155
|
-
};
|
|
156
|
-
readonly "tui.editor.pageDown": {
|
|
157
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
158
|
-
readonly description: "Page down";
|
|
159
|
-
};
|
|
160
|
-
readonly "tui.editor.pageUp": {
|
|
161
|
-
readonly defaultKeys: KeyId | readonly KeyId[];
|
|
162
|
-
readonly description: "Page up";
|
|
111
|
+
readonly "tui.editor.deleteToLineStart": {
|
|
112
|
+
readonly defaultKeys: "ctrl+u";
|
|
113
|
+
readonly description: "Delete to line start";
|
|
163
114
|
};
|
|
164
|
-
readonly "tui.editor.
|
|
165
|
-
readonly defaultKeys:
|
|
166
|
-
readonly description: "
|
|
115
|
+
readonly "tui.editor.deleteToLineEnd": {
|
|
116
|
+
readonly defaultKeys: "ctrl+k";
|
|
117
|
+
readonly description: "Delete to line end";
|
|
167
118
|
};
|
|
168
119
|
readonly "tui.editor.yank": {
|
|
169
|
-
readonly defaultKeys:
|
|
120
|
+
readonly defaultKeys: "ctrl+y";
|
|
170
121
|
readonly description: "Yank";
|
|
171
122
|
};
|
|
172
123
|
readonly "tui.editor.yankPop": {
|
|
173
|
-
readonly defaultKeys:
|
|
124
|
+
readonly defaultKeys: "alt+y";
|
|
174
125
|
readonly description: "Yank pop";
|
|
175
126
|
};
|
|
176
|
-
readonly "tui.
|
|
177
|
-
readonly defaultKeys:
|
|
178
|
-
readonly description: "
|
|
127
|
+
readonly "tui.editor.undo": {
|
|
128
|
+
readonly defaultKeys: "ctrl+-";
|
|
129
|
+
readonly description: "Undo";
|
|
179
130
|
};
|
|
180
131
|
readonly "tui.input.newLine": {
|
|
181
|
-
readonly defaultKeys:
|
|
132
|
+
readonly defaultKeys: "shift+enter";
|
|
182
133
|
readonly description: "Insert newline";
|
|
183
134
|
};
|
|
184
135
|
readonly "tui.input.submit": {
|
|
185
|
-
readonly defaultKeys:
|
|
136
|
+
readonly defaultKeys: "enter";
|
|
186
137
|
readonly description: "Submit input";
|
|
187
138
|
};
|
|
188
139
|
readonly "tui.input.tab": {
|
|
189
|
-
readonly defaultKeys:
|
|
140
|
+
readonly defaultKeys: "tab";
|
|
190
141
|
readonly description: "Tab / autocomplete";
|
|
191
142
|
};
|
|
192
|
-
readonly "tui.
|
|
193
|
-
readonly defaultKeys:
|
|
194
|
-
readonly description: "
|
|
143
|
+
readonly "tui.input.copy": {
|
|
144
|
+
readonly defaultKeys: "ctrl+c";
|
|
145
|
+
readonly description: "Copy selection";
|
|
195
146
|
};
|
|
196
|
-
readonly "tui.select.
|
|
197
|
-
readonly defaultKeys:
|
|
198
|
-
readonly description: "
|
|
147
|
+
readonly "tui.select.up": {
|
|
148
|
+
readonly defaultKeys: "up";
|
|
149
|
+
readonly description: "Move selection up";
|
|
199
150
|
};
|
|
200
151
|
readonly "tui.select.down": {
|
|
201
|
-
readonly defaultKeys:
|
|
152
|
+
readonly defaultKeys: "down";
|
|
202
153
|
readonly description: "Move selection down";
|
|
203
154
|
};
|
|
155
|
+
readonly "tui.select.pageUp": {
|
|
156
|
+
readonly defaultKeys: "pageUp";
|
|
157
|
+
readonly description: "Selection page up";
|
|
158
|
+
};
|
|
204
159
|
readonly "tui.select.pageDown": {
|
|
205
|
-
readonly defaultKeys:
|
|
160
|
+
readonly defaultKeys: "pageDown";
|
|
206
161
|
readonly description: "Selection page down";
|
|
207
162
|
};
|
|
208
|
-
readonly "tui.select.
|
|
209
|
-
readonly defaultKeys:
|
|
210
|
-
readonly description: "
|
|
163
|
+
readonly "tui.select.confirm": {
|
|
164
|
+
readonly defaultKeys: "enter";
|
|
165
|
+
readonly description: "Confirm selection";
|
|
211
166
|
};
|
|
212
|
-
readonly "tui.select.
|
|
213
|
-
readonly defaultKeys:
|
|
214
|
-
readonly description: "
|
|
167
|
+
readonly "tui.select.cancel": {
|
|
168
|
+
readonly defaultKeys: ["escape", "ctrl+c"];
|
|
169
|
+
readonly description: "Cancel selection";
|
|
215
170
|
};
|
|
216
171
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
*/
|
|
172
|
+
export interface KeybindingConflict {
|
|
173
|
+
key: KeyId;
|
|
174
|
+
keybindings: string[];
|
|
175
|
+
}
|
|
222
176
|
export declare class KeybindingsManager {
|
|
223
|
-
private
|
|
224
|
-
private readonly resolvedKeys;
|
|
177
|
+
private definitions;
|
|
225
178
|
private userBindings;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
* @param {Readonly<Record<ModernKeybinding, KeybindingDefinition>>} definitions - Keybinding definitions.
|
|
230
|
-
* @param {KeybindingsConfig} userBindings - Optional user overrides.
|
|
231
|
-
*/
|
|
232
|
-
constructor(definitions?: Readonly<Record<ModernKeybinding, KeybindingDefinition>>, userBindings?: KeybindingsConfig);
|
|
233
|
-
/**
|
|
234
|
-
* Rebuild resolved bindings from defaults plus user overrides.
|
|
235
|
-
*
|
|
236
|
-
* @returns {void} Nothing.
|
|
237
|
-
*/
|
|
179
|
+
private keysById;
|
|
180
|
+
private conflicts;
|
|
181
|
+
constructor(definitions: KeybindingDefinitions, userBindings?: KeybindingsConfig);
|
|
238
182
|
private rebuild;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
* keybindings (e.g. app.* keybindings registered by pi-coding-agent).
|
|
244
|
-
*
|
|
245
|
-
* @param {string} keybinding - Keybinding identifier.
|
|
246
|
-
* @returns {ModernKeybinding | null} Resolved key or null when unknown.
|
|
247
|
-
*/
|
|
248
|
-
private resolveKeybinding;
|
|
249
|
-
/**
|
|
250
|
-
* Check whether input matches a keybinding.
|
|
251
|
-
*
|
|
252
|
-
* @param {string} data - Raw terminal input.
|
|
253
|
-
* @param {Keybinding | string} keybinding - Keybinding identifier.
|
|
254
|
-
* @returns {boolean} True when the input matches.
|
|
255
|
-
*/
|
|
256
|
-
matches(data: string, keybinding: Keybinding | string): boolean;
|
|
257
|
-
/**
|
|
258
|
-
* Get the keys currently bound to a keybinding.
|
|
259
|
-
*
|
|
260
|
-
* @param {Keybinding | string} keybinding - Keybinding identifier.
|
|
261
|
-
* @returns {KeyId[]} Resolved key list.
|
|
262
|
-
*/
|
|
263
|
-
getKeys(keybinding: Keybinding | string): KeyId[];
|
|
264
|
-
/**
|
|
265
|
-
* Replace user bindings and rebuild the resolved map.
|
|
266
|
-
*
|
|
267
|
-
* @param {KeybindingsConfig} userBindings - New user bindings.
|
|
268
|
-
* @returns {void} Nothing.
|
|
269
|
-
*/
|
|
183
|
+
matches(data: string, keybinding: Keybinding): boolean;
|
|
184
|
+
getKeys(keybinding: Keybinding): KeyId[];
|
|
185
|
+
getDefinition(keybinding: Keybinding): KeybindingDefinition;
|
|
186
|
+
getConflicts(): KeybindingConflict[];
|
|
270
187
|
setUserBindings(userBindings: KeybindingsConfig): void;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
* This extends the module-level normalizeUserBindings to also accept
|
|
274
|
-
* keybinding names that exist in this.definitions (e.g. app.*).
|
|
275
|
-
*
|
|
276
|
-
* @param {KeybindingsConfig} userBindings - Raw user bindings.
|
|
277
|
-
* @returns {NormalizedKeybindingsConfig} Normalized modern binding map.
|
|
278
|
-
*/
|
|
279
|
-
private normalizeUserBindingsWithDefinitions;
|
|
280
|
-
/**
|
|
281
|
-
* Get the fully resolved modern keybinding config.
|
|
282
|
-
*
|
|
283
|
-
* @returns {NormalizedKeybindingsConfig} Resolved keybinding config.
|
|
284
|
-
*/
|
|
285
|
-
getResolvedBindings(): NormalizedKeybindingsConfig;
|
|
188
|
+
getUserBindings(): KeybindingsConfig;
|
|
189
|
+
getResolvedBindings(): KeybindingsConfig;
|
|
286
190
|
}
|
|
287
|
-
|
|
288
|
-
export declare class EditorKeybindingsManager extends KeybindingsManager {
|
|
289
|
-
/**
|
|
290
|
-
* Create a legacy editor keybindings manager.
|
|
291
|
-
*
|
|
292
|
-
* @param {EditorKeybindingsConfig} config - Legacy editor keybinding overrides.
|
|
293
|
-
*/
|
|
294
|
-
constructor(config?: EditorKeybindingsConfig);
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* Get the shared keybindings manager.
|
|
298
|
-
*
|
|
299
|
-
* @returns {KeybindingsManager} Shared keybindings manager.
|
|
300
|
-
*/
|
|
191
|
+
export declare function setKeybindings(keybindings: KeybindingsManager): void;
|
|
301
192
|
export declare function getKeybindings(): KeybindingsManager;
|
|
302
|
-
/**
|
|
303
|
-
* Replace the shared keybindings manager.
|
|
304
|
-
*
|
|
305
|
-
* @param {KeybindingsManager} manager - Keybindings manager to install.
|
|
306
|
-
* @returns {void} Nothing.
|
|
307
|
-
*/
|
|
308
|
-
export declare function setKeybindings(manager: KeybindingsManager): void;
|
|
309
|
-
/**
|
|
310
|
-
* Get the shared legacy editor keybindings manager.
|
|
311
|
-
*
|
|
312
|
-
* @returns {EditorKeybindingsManager} Shared legacy-compatible manager.
|
|
313
|
-
*/
|
|
314
|
-
export declare function getEditorKeybindings(): EditorKeybindingsManager;
|
|
315
|
-
/**
|
|
316
|
-
* Replace the shared legacy editor keybindings manager.
|
|
317
|
-
*
|
|
318
|
-
* @param {EditorKeybindingsManager} manager - Legacy keybindings manager.
|
|
319
|
-
* @returns {void} Nothing.
|
|
320
|
-
*/
|
|
321
|
-
export declare function setEditorKeybindings(manager: EditorKeybindingsManager): void;
|
|
322
|
-
export {};
|
|
323
193
|
//# sourceMappingURL=keybindings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keybindings.d.ts","sourceRoot":"","sources":["../src/keybindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAc,MAAM,WAAW,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"keybindings.d.ts","sourceRoot":"","sources":["../src/keybindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAc,MAAM,WAAW,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,WAAW;IAE3B,qBAAqB,EAAE,IAAI,CAAC;IAC5B,uBAAuB,EAAE,IAAI,CAAC;IAC9B,uBAAuB,EAAE,IAAI,CAAC;IAC9B,wBAAwB,EAAE,IAAI,CAAC;IAC/B,2BAA2B,EAAE,IAAI,CAAC;IAClC,4BAA4B,EAAE,IAAI,CAAC;IACnC,4BAA4B,EAAE,IAAI,CAAC;IACnC,0BAA0B,EAAE,IAAI,CAAC;IACjC,wBAAwB,EAAE,IAAI,CAAC;IAC/B,yBAAyB,EAAE,IAAI,CAAC;IAChC,mBAAmB,EAAE,IAAI,CAAC;IAC1B,qBAAqB,EAAE,IAAI,CAAC;IAC5B,+BAA+B,EAAE,IAAI,CAAC;IACtC,8BAA8B,EAAE,IAAI,CAAC;IACrC,+BAA+B,EAAE,IAAI,CAAC;IACtC,8BAA8B,EAAE,IAAI,CAAC;IACrC,8BAA8B,EAAE,IAAI,CAAC;IACrC,4BAA4B,EAAE,IAAI,CAAC;IACnC,iBAAiB,EAAE,IAAI,CAAC;IACxB,oBAAoB,EAAE,IAAI,CAAC;IAC3B,iBAAiB,EAAE,IAAI,CAAC;IAExB,mBAAmB,EAAE,IAAI,CAAC;IAC1B,kBAAkB,EAAE,IAAI,CAAC;IACzB,eAAe,EAAE,IAAI,CAAC;IACtB,gBAAgB,EAAE,IAAI,CAAC;IAEvB,eAAe,EAAE,IAAI,CAAC;IACtB,iBAAiB,EAAE,IAA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