@rse/claudex 0.9.13

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.
Binary file
Binary file
Binary file
package/eslint.mjs ADDED
@@ -0,0 +1,79 @@
1
+ /*
2
+ ** claudeX -- Claude Code eXtended
3
+ ** Copyright (c) 2026 Dr. Ralf S. Engelschall <rse@engelschall.com>
4
+ ** Licensed under MIT <https://spdx.org/licenses/MIT>
5
+ */
6
+
7
+ import pluginJs from "@eslint/js"
8
+ import pluginStd from "neostandard"
9
+ import pluginImport from "eslint-plugin-import"
10
+ import pluginPromise from "eslint-plugin-promise"
11
+ import pluginTS from "typescript-eslint"
12
+ import globals from "globals"
13
+ import parserTS from "@typescript-eslint/parser"
14
+
15
+ export default [
16
+ pluginJs.configs.recommended,
17
+ ...pluginTS.configs.strict,
18
+ ...pluginTS.configs.stylistic,
19
+ ...pluginStd({
20
+ ignores: pluginStd.resolveIgnoresFromGitignore()
21
+ }),
22
+ {
23
+ plugins: {
24
+ "import": pluginImport,
25
+ "promise": pluginPromise
26
+ },
27
+ files: [ "*.ts" ],
28
+ languageOptions: {
29
+ ecmaVersion: 2022,
30
+ sourceType: "module",
31
+ parser: parserTS,
32
+ parserOptions: {
33
+ ecmaFeatures: {
34
+ jsx: false
35
+ }
36
+ },
37
+ globals: {
38
+ ...globals.node,
39
+ ...globals.commonjs
40
+ }
41
+ },
42
+ rules: {
43
+ "curly": "off",
44
+ "require-atomic-updates": "off",
45
+ "dot-notation": "off",
46
+ "no-labels": "off",
47
+ "no-useless-constructor": "off",
48
+
49
+ "@stylistic/indent": [ "error", 4, { SwitchCase: 1 } ],
50
+ "@stylistic/linebreak-style": [ "error", "unix" ],
51
+ "@stylistic/semi": [ "error", "never" ],
52
+ "@stylistic/operator-linebreak": [ "error", "after", { overrides: { "&&": "before", "||": "before", ":": "after" } } ],
53
+ "@stylistic/brace-style": [ "error", "stroustrup", { allowSingleLine: true } ],
54
+ "@stylistic/quotes": [ "error", "double" ],
55
+
56
+ "@stylistic/no-multi-spaces": "off",
57
+ "@stylistic/no-multiple-empty-lines": "off",
58
+ "@stylistic/key-spacing": "off",
59
+ "@stylistic/object-property-newline": "off",
60
+ "@stylistic/space-in-parens": "off",
61
+ "@stylistic/array-bracket-spacing": "off",
62
+ "@stylistic/lines-between-class-members": "off",
63
+ "@stylistic/multiline-ternary": "off",
64
+ "@stylistic/quote-props": "off",
65
+
66
+ "@typescript-eslint/no-empty-function": "off",
67
+ "@typescript-eslint/no-explicit-any": "off",
68
+ "@typescript-eslint/no-unused-vars": "off",
69
+ "@typescript-eslint/ban-ts-comment": "off",
70
+ "@typescript-eslint/no-this-alias": "off",
71
+ "@typescript-eslint/no-non-null-assertion": "off",
72
+ "@typescript-eslint/consistent-type-definitions": "off",
73
+ "@typescript-eslint/array-type": "off",
74
+ "@typescript-eslint/no-extraneous-class": "off",
75
+ "@typescript-eslint/consistent-indexed-object-style": "off"
76
+ }
77
+ }
78
+ ]
79
+
package/lazygit.yaml ADDED
@@ -0,0 +1,57 @@
1
+
2
+ gui:
3
+ scrollHeight: 1
4
+ scrollPastBottom: false
5
+ commitLength:
6
+ show: false
7
+ authorColors:
8
+ "*": "blue"
9
+ branchColorPatterns:
10
+ "*": "blue"
11
+ tabWidth: 4
12
+ mouseEvents: true
13
+ sidePanelWidth: 0.30
14
+ timeFormat: RFC3339
15
+ showFileTree: true
16
+ showNumstatInFilesView: true
17
+ showRandomTip: false
18
+ showCommandLog: true
19
+ commitAuthorShortLength: 2
20
+ commitAuthorLongLength: 20
21
+ commitHashLength: 0
22
+ expandFocusedSidePanel: true
23
+ expandedSidePanelWeight: 4
24
+ theme:
25
+ selectedLineBgColor:
26
+ - reverse
27
+ - default
28
+ activeBorderColor:
29
+ - red
30
+ inactiveBorderColor:
31
+ - white
32
+ optionsTextColor:
33
+ - blue
34
+
35
+ git:
36
+ autoFetch: false
37
+ autoRefresh: true
38
+ refresher:
39
+ refreshInterval: 4
40
+
41
+ update:
42
+ method: mever
43
+ days: 1
44
+
45
+ reporting: "off"
46
+
47
+ confirmOnQuit: false
48
+ quitOnTopLevelReturn: false
49
+ disableStartupPopups: true
50
+ promptToReturnFromSubprocess: false
51
+
52
+ os:
53
+ open: code -r {{filename}}
54
+ openLink: open {{link}}
55
+ edit: vim {{filename}}
56
+ editAtLine: vim +{{line}} {{filename}}
57
+
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@rse/claudex",
3
+ "publishConfig": { "access": "public" },
4
+ "version": "0.9.13",
5
+ "description": "Claude Code eXtended",
6
+ "type": "module",
7
+ "keywords": [ "claude", "code", "extension", "wrapper" ],
8
+ "homepage": "http://github.com/rse/claudex",
9
+ "repository": { "url": "git+https://github.com/rse/claudex.git", "type": "git" },
10
+ "bugs": { "url": "http://github.com/rse/claudex/issues" },
11
+ "license": "MIT",
12
+ "author": {
13
+ "name": "Dr. Ralf S. Engelschall",
14
+ "email": "rse@engelschall.com",
15
+ "url": "http://engelschall.com"
16
+ },
17
+ "bin": { "claudex": "claudex.js" },
18
+ "dependencies": {
19
+ "which": "7.0.0",
20
+ "execa": "9.6.1",
21
+ "chalk": "5.6.2"
22
+ },
23
+ "devDependencies": {
24
+ "typescript": "6.0.3",
25
+ "@types/node": "25.6.2",
26
+ "@types/which": "3.0.4",
27
+
28
+ "@rse/stx": "1.1.5",
29
+ "eslint": "9.39.4",
30
+ "@eslint/js": "9.39.4",
31
+ "typescript-eslint": "8.59.2",
32
+ "@typescript-eslint/parser": "8.59.2",
33
+ "eslint-plugin-promise": "7.3.0",
34
+ "eslint-plugin-import": "2.32.0",
35
+ "neostandard": "0.13.0",
36
+ "globals": "17.6.0",
37
+ "shx": "0.4.0"
38
+ },
39
+ "engines": {
40
+ "npm": ">=10.0.0",
41
+ "node": ">=22.0.0"
42
+ },
43
+ "scripts": {
44
+ "start": "stx -v 4 -c stx.conf"
45
+ }
46
+ }
package/stx.conf ADDED
@@ -0,0 +1,20 @@
1
+ ##
2
+ ## claudeX -- Claude Code eXtended
3
+ ## Copyright (c) 2026 Dr. Ralf S. Engelschall <rse@engelschall.com>
4
+ ## Licensed under MIT <https://spdx.org/licenses/MIT>
5
+ ##
6
+
7
+ # build entire project
8
+ build
9
+ eslint --config eslint.mjs claudex.ts
10
+ tsc
11
+
12
+ # remove regularly built files
13
+ clean
14
+ shx rm -f claudex.js tsc.tsbuildinfo
15
+
16
+ # remove all built files
17
+ clean-dist : clean
18
+ shx rm -f package-lock.json
19
+ shx rm -rf node_modules
20
+
package/tmux.conf ADDED
@@ -0,0 +1,199 @@
1
+ ##
2
+ ## dotfiles -- Essential Unix Dot-Files
3
+ ## Copyright (c) 1995-2026 Dr. Ralf S. Engelschall <rse@engelschall.com>
4
+ ## Distributed under MIT <https://opensource.org/licenses/MIT> license.
5
+ ##
6
+ ## ~/.tmux.conf: tmux(1) configuration
7
+ ##
8
+
9
+ # switch prefix key to CTRL+a like screen(1)
10
+ unbind-key C-b
11
+ set-option -g prefix C-a
12
+ bind-key a send-prefix
13
+ bind-key C-a last-window
14
+
15
+ # remove unnecessary key bindings
16
+ unbind-key n
17
+ unbind-key Space
18
+ unbind-key "'"
19
+ unbind-key "#"
20
+ unbind-key "\$"
21
+ unbind-key "&"
22
+ unbind-key ","
23
+ unbind-key "."
24
+ unbind-key ";"
25
+ unbind-key "}"
26
+ unbind-key "{"
27
+ unbind-key "["
28
+ unbind-key "]"
29
+ unbind-key "!"
30
+ unbind-key "/"
31
+ unbind-key "="
32
+ unbind-key M
33
+ unbind-key D
34
+ unbind-key L
35
+ unbind-key f
36
+ unbind-key i
37
+ unbind-key l
38
+ unbind-key r
39
+ unbind-key q
40
+ unbind-key t
41
+ unbind-key "\~"
42
+ unbind-key DC
43
+ unbind-key PPage
44
+ unbind-key M-1
45
+ unbind-key M-2
46
+ unbind-key M-3
47
+ unbind-key M-4
48
+ unbind-key M-5
49
+ unbind-key M-6
50
+ unbind-key M-7
51
+ unbind-key M-n
52
+ unbind-key M-o
53
+ unbind-key M-p
54
+ unbind-key C-o
55
+ unbind-key C-Up
56
+ unbind-key C-Down
57
+ unbind-key C-Left
58
+ unbind-key C-Right
59
+ unbind-key M-Up
60
+ unbind-key M-Down
61
+ unbind-key M-Left
62
+ unbind-key M-Right
63
+ unbind-key S-Up
64
+ unbind-key S-Down
65
+
66
+ # configure special pane handling
67
+ unbind-key %
68
+ unbind-key '"'
69
+ bind-key | split-window -h -c "#{pane_current_path}"
70
+ bind-key _ split-window -v -c "#{pane_current_path}"
71
+ bind-key -r Left select-pane -L
72
+ bind-key -r Right select-pane -R
73
+ bind-key -r Up select-pane -U
74
+ bind-key -r Down select-pane -D
75
+ bind-key -r "+" {
76
+ if -F "#{pane_at_bottom}" "resize-pane -U 1" "resize-pane -D 1"
77
+ if -F "#{pane_at_right}" "resize-pane -L 1" "resize-pane -R 1"
78
+ }
79
+ bind-key -r "-" {
80
+ if -F "#{pane_at_bottom}" "resize-pane -D 1" "resize-pane -U 1"
81
+ if -F "#{pane_at_right}" "resize-pane -R 1" "resize-pane -L 1"
82
+ }
83
+ bind-key z resize-pane -Z
84
+ bind-key -r o rotate-window
85
+ bind-key -r "#" next-layout
86
+ bind-key e select-layout -E
87
+ bind-key t select-layout tiled
88
+ bind-key s set-window-option -g synchronize-panes
89
+ bind-key x confirm-before -p "kill pane ? (y/n)" kill-pane
90
+
91
+ # configure window and session renaming
92
+ bind-key r command-prompt -I "#W" "rename-window -- '%%'"
93
+ bind-key R command-prompt -I "#S" "rename-session -- '%%'"
94
+
95
+ # configure pane style
96
+ set-option -g pane-border-lines single
97
+ set-option -g pane-border-indicators arrows
98
+ set-option -g pane-border-style "fg=default"
99
+ set-option -g pane-active-border-style "fg=red"
100
+ set-option -g pane-border-format "─◀#[reverse] #{?pane_active,●,○} #{pane_index} #{pane_current_command} #[noreverse]▶"
101
+ set-option -g pane-border-status off
102
+ set-hook -g pane-exited 'if -F "#{!=:#{window_panes},1}" "set-option -g pane-border-status top" "set-option -g pane-border-status off"'
103
+ set-hook -g after-split-window 'if -F "#{!=:#{window_panes},1}" "set-option -g pane-border-status top" "set-option -g pane-border-status off"'
104
+
105
+ # configure popup style
106
+ set-option -g popup-border-style "fg=blue"
107
+ set-option -g popup-border-lines rounded
108
+
109
+ # disable mouse handling
110
+ set-option -g mouse off
111
+ bind-key m {
112
+ set-option -g mouse
113
+ display "mouse support #{?mouse,on,off}"
114
+ }
115
+
116
+ # configure special window handling
117
+ bind-key c new-window -c "#{pane_current_path}" -a -t "{next}"
118
+ bind-key Tab choose-tree -Z -F "#{?session_format,session: ⚑ #[bold]#{session_name}#[nobold] (#{session_attached} clients) (#{session_windows} windows)#{?session_grouped, (#{session_group} group),}#{?session_active, [active],}#{?session_dead, [dead],},#{?window_format,window: ○ #{window_index} #[bold]#{window_name}#[nobold] (#{window_panes} panes)#{?window_active, [active],} <#{window_width}x#{window_height}>,pane: ⊞ #{pane_index} #[bold]#{pane_current_command}#[nobold]#{?pane_active, [active],}#{?pane_dead, [dead],} <#{pane_width}x#{pane_height}>}}"
119
+ bind-key k confirm-before -p "kill window? (y/n)" kill-window
120
+ bind-key -r "<" swap-window -t -1 \; select-window -t -1
121
+ bind-key -r ">" swap-window -t +1 \; select-window -t +1
122
+ bind-key -r Space select-window -n
123
+ bind-key -r BSpace select-window -p
124
+
125
+ # window observation
126
+ set-option -g monitor-bell off
127
+ set-option -g monitor-activity off
128
+ set-option -g monitor-silence 0
129
+ set-option -g bell-action any
130
+ set-option -g activity-action other
131
+ set-option -g silence-action other
132
+ set-option -g visual-bell on
133
+ set-option -g visual-activity off
134
+ set-option -g visual-silence off
135
+ bind-key "!" {
136
+ set-option -w monitor-bell
137
+ display "window BELL monitoring: #{?monitor-bell,on,off}"
138
+ }
139
+ bind-key "," {
140
+ set-option -w monitor-activity
141
+ display "window ACTIVITY monitoring: #{?monitor-activity,on,off}"
142
+ }
143
+ bind-key "." {
144
+ if -F "#{==:#{monitor-silence},0}" "set-option -w monitor-silence 10" "set-option -w monitor-silence 0"
145
+ display "window SILENCE monitoring: #{?monitor-silence,on,off}"
146
+ }
147
+
148
+ # configure session handling
149
+ set-hook -g session-created 'if -F "#{==:#{session_name},0}" "rename-session default"'
150
+ bind-key d detach-client
151
+
152
+ # configure copy buffer
153
+ set-option -g -w mode-keys vi
154
+ bind-key PageUp copy-mode -e -u
155
+ bind-key PageDown copy-mode -e -d
156
+ bind-key v copy-mode
157
+ bind-key -T copy-mode-vi v send-keys -X begin-selection
158
+ bind-key -T copy-mode-vi V send-keys -X start-of-line \; send-keys -X begin-selection \; send-keys -X end-of-line
159
+ bind-key -T copy-mode-vi C-v send-keys -X begin-selection \; send-keys -X rectangle-toggle
160
+ bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
161
+ bind-key -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel
162
+ bind-key -T copy-mode-vi Space send-keys -X clear-selection
163
+ bind-key -T copy-mode-vi Escape send-keys -X cancel
164
+ bind-key p paste-buffer
165
+ bind-key P choose-buffer -O time
166
+ set-option -g mode-style fg=blue,reverse
167
+
168
+ # general options
169
+ set-option -g history-limit 10000
170
+ set-option -g display-panes-time 2000
171
+ set-option -g display-time 4000
172
+ set-option -g base-index 1
173
+ set-option -g focus-events on
174
+ set-option -g -s escape-time 50
175
+
176
+ # status bar providing window and pane information
177
+ set-option -g status-keys emacs
178
+ set-option -g status-style fg=default,bg=default,reverse
179
+ set-option -g status-justify right
180
+ set-option -g status-left " claudeX #[fg=blue] ※ #(echo $LOGNAME) #[fg=default] #{?session_attached,#[fg=red] ⚑ #{session_name} #[fg=default],}"
181
+ set-option -g status-left-length 30
182
+ set-option -g status-right ""
183
+ set-option -g status-right-length 90
184
+ set-option -g window-status-format " #{?window_bell_flag,⦹,#{?window_activity_flag,⚇,#{?window_silence_flag,⦷,#{?#{==:#{window_flags},-},⦿,○}}}} #I#{?#{>:#{window_panes},1}, ⊞ #{window_panes},} #W #{?window_zoomed_flag,⌕ ,}"
185
+ set-option -g window-status-current-format " ● #I#{?#{>:#{window_panes},1}, ⊞ #{window_panes},} #W #{?window_zoomed_flag,⌕ ,}"
186
+ set-option -g window-status-style ""
187
+ set-option -g window-status-current-style fg=red
188
+ set-option -g window-status-bell-style fg=blue
189
+ set-option -g window-status-activity-style fg=blue
190
+ set-option -g message-style fg=blue,reverse
191
+
192
+ # Claude Code specifics
193
+ set-window-option -g monitor-activity off
194
+ set-option -g pane-border-format "─◀#[reverse] #{?pane_active,●,○} #{pane_index} #{pane_title} #[noreverse]▶"
195
+ set-option -g allow-passthrough on
196
+ set-option -ga terminal-features ",*:hyperlinks"
197
+ set-option -as terminal-overrides ",*:RGB"
198
+ set-option -as terminal-overrides ',*:Tc:sitm=\E[3m:ritm=\E[23m'
199
+
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": ".",
4
+ "target": "esnext",
5
+ "module": "nodenext",
6
+ "moduleResolution": "nodenext",
7
+ "useDefineForClassFields": true,
8
+ "composite": false,
9
+ "strict": true,
10
+ "resolveJsonModule": true,
11
+ "isolatedModules": true,
12
+ "esModuleInterop": true,
13
+ "lib": [ "ESNext" ],
14
+ "skipLibCheck": true,
15
+ "noEmit": false,
16
+ "types": [ "node" ],
17
+ "rootDir": "."
18
+ },
19
+ "files": [
20
+ "claudex.ts"
21
+ ]
22
+ }