@sascha384/tic 5.0.0 → 5.1.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/.claude-plugin/plugin.json +1 -1
- package/dist/commands.d.ts +23 -1
- package/dist/commands.js +599 -16
- package/dist/commands.js.map +1 -1
- package/dist/components/BranchList.js +21 -20
- package/dist/components/BranchList.js.map +1 -1
- package/dist/components/HelpScreen.d.ts +1 -9
- package/dist/components/HelpScreen.js +32 -228
- package/dist/components/HelpScreen.js.map +1 -1
- package/dist/components/IterationPicker.js +3 -2
- package/dist/components/IterationPicker.js.map +1 -1
- package/dist/components/PullRequestList.js +14 -13
- package/dist/components/PullRequestList.js.map +1 -1
- package/dist/components/Settings.js +31 -26
- package/dist/components/Settings.js.map +1 -1
- package/dist/components/StatusScreen.js +19 -15
- package/dist/components/StatusScreen.js.map +1 -1
- package/dist/components/WorkItemForm.js +15 -14
- package/dist/components/WorkItemForm.js.map +1 -1
- package/dist/components/WorkItemList.d.ts +0 -1
- package/dist/components/WorkItemList.js +84 -100
- package/dist/components/WorkItemList.js.map +1 -1
- package/dist/storage/index.js +14 -11
- package/dist/storage/index.js.map +1 -1
- package/package.json +1 -1
package/dist/commands.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { BackendCapabilities } from './backends/types.js';
|
|
2
2
|
import type { Screen } from './app.js';
|
|
3
|
+
export type KeyDescriptor = string | {
|
|
4
|
+
special: string;
|
|
5
|
+
modifier?: 'shift';
|
|
6
|
+
};
|
|
3
7
|
export declare const CATEGORIES: readonly ["Actions", "Navigation", "Bulk", "Switching", "Other"];
|
|
4
8
|
export type CommandCategory = (typeof CATEGORIES)[number];
|
|
5
9
|
export interface CommandContext {
|
|
@@ -24,7 +28,12 @@ export interface Command {
|
|
|
24
28
|
label: string;
|
|
25
29
|
category: CommandCategory;
|
|
26
30
|
shortcut?: string;
|
|
27
|
-
|
|
31
|
+
keys?: KeyDescriptor[];
|
|
32
|
+
screen: Screen | Screen[] | 'global';
|
|
33
|
+
helpGroup?: string;
|
|
34
|
+
footer?: boolean;
|
|
35
|
+
footerLabel?: string;
|
|
36
|
+
when?: (ctx: CommandContext) => boolean;
|
|
28
37
|
}
|
|
29
38
|
export interface CommandGroup {
|
|
30
39
|
category: string;
|
|
@@ -33,3 +42,16 @@ export interface CommandGroup {
|
|
|
33
42
|
export declare function filterCommands(commands: Command[], query: string): Command[];
|
|
34
43
|
export declare function groupCommandsByCategory(commands: Command[]): CommandGroup[];
|
|
35
44
|
export declare function getVisibleCommands(ctx: CommandContext): Command[];
|
|
45
|
+
export declare function findCommand(id: string): Command | undefined;
|
|
46
|
+
export declare function getCommandsForScreen(screen: Screen, ctx: CommandContext): Command[];
|
|
47
|
+
export declare function getFooterCommands(screen: Screen, ctx: CommandContext): Command[];
|
|
48
|
+
export declare function buildFooterHints(screen: Screen, ctx: CommandContext, availableWidth: number): string;
|
|
49
|
+
export declare function matchesCommand(id: string, input: string, key: Record<string, boolean>): boolean;
|
|
50
|
+
export interface ShortcutGroup {
|
|
51
|
+
label: string;
|
|
52
|
+
shortcuts: {
|
|
53
|
+
key: string;
|
|
54
|
+
description: string;
|
|
55
|
+
}[];
|
|
56
|
+
}
|
|
57
|
+
export declare function groupByHelpGroup(commands: Command[]): ShortcutGroup[];
|