@brimveyn/aimux-config 0.11.3 → 0.11.5
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/package.json +1 -1
- package/src/actions.ts +2 -0
- package/src/app-types.ts +5 -0
- package/src/defaults.ts +1 -0
- package/src/types.ts +6 -0
package/package.json
CHANGED
package/src/actions.ts
CHANGED
|
@@ -720,6 +720,8 @@ export const toggleGitDiffView: KeyResult = r([{ type: 'git-mode-toggle-diff-vie
|
|
|
720
720
|
|
|
721
721
|
export const toggleGitReviewBase: KeyResult = r([{ type: 'git-mode-toggle-review-base' }])
|
|
722
722
|
|
|
723
|
+
export const toggleGitPaneTab: KeyResult = r([{ type: 'git-pane-toggle-tab' }])
|
|
724
|
+
|
|
723
725
|
export function shiftGitHeadOffset(delta: number): KeyResult {
|
|
724
726
|
return r([
|
|
725
727
|
{ delta, type: 'git-mode-shift-head-offset' },
|
package/src/app-types.ts
CHANGED
|
@@ -361,8 +361,12 @@ export interface GitPaneDiffCountConfig {
|
|
|
361
361
|
enabled: boolean
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
export type GitPaneTab = 'diff' | 'github'
|
|
365
|
+
|
|
364
366
|
export interface GitPaneState {
|
|
365
367
|
diffModeRatio: number
|
|
368
|
+
/** Which face of the pane is showing: the working-copy diff, or the PR. */
|
|
369
|
+
tab: GitPaneTab
|
|
366
370
|
fileListMode: GitFileListMode
|
|
367
371
|
treeCompaction: boolean
|
|
368
372
|
path: GitPanePathConfig
|
|
@@ -1390,6 +1394,7 @@ export type GitModeAction =
|
|
|
1390
1394
|
| { type: 'git-mode-expand-selection' }
|
|
1391
1395
|
| { type: 'git-mode-toggle-file-list-mode' }
|
|
1392
1396
|
| { type: 'git-mode-toggle-tree-compaction' }
|
|
1397
|
+
| { type: 'git-pane-toggle-tab' }
|
|
1393
1398
|
| { type: 'git-mode-set-diff'; key: string; diff: DiffData; hash: string }
|
|
1394
1399
|
| {
|
|
1395
1400
|
type: 'git-mode-set-parsed'
|
package/src/defaults.ts
CHANGED
|
@@ -60,6 +60,7 @@ export function getDefaultKeymapConfig(): ResolvedKeymapConfig {
|
|
|
60
60
|
.map('<C-h>', actions.resizeSidebar(-2), 'Sidebar narrower')
|
|
61
61
|
.map('<C-l>', actions.resizeSidebar(2), 'Sidebar wider')
|
|
62
62
|
.map('G', actions.toggleGitPane, 'Toggle git pane')
|
|
63
|
+
.map('g', actions.toggleGitPaneTab, 'Git pane diff/github')
|
|
63
64
|
.map('<C-d>', actions.enterGitMode, 'Enter git mode')
|
|
64
65
|
.map('<C-j>', actions.resizeGitPane(-0.05), 'Git pane smaller')
|
|
65
66
|
.map('<C-k>', actions.resizeGitPane(0.05), 'Git pane larger')
|
package/src/types.ts
CHANGED
|
@@ -342,6 +342,12 @@ export interface AimuxThemeConfig {
|
|
|
342
342
|
export type AIUsageTool = 'claude' | 'codex' | (string & {})
|
|
343
343
|
|
|
344
344
|
export interface AIUsageToolConfig {
|
|
345
|
+
/**
|
|
346
|
+
* Whether the indicator runs. The same switch as
|
|
347
|
+
* `plugins: [{ id: 'aimux.ai-usage', enabled }]`, kept because it is the key
|
|
348
|
+
* the feature had before it was a plugin. Off by default: the service reads
|
|
349
|
+
* the Claude keychain entry and calls two OAuth endpoints.
|
|
350
|
+
*/
|
|
345
351
|
enabled?: boolean
|
|
346
352
|
pollSeconds?: number
|
|
347
353
|
claudePlan?: 'auto' | 'pro' | 'max5' | 'max20'
|