@rse/claudex 1.0.12 → 1.0.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.
- package/CHANGELOG.md +5 -0
- package/claudex.js +17 -3
- package/claudex.ts +19 -3
- package/lazygit.yaml +21 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/claudex.js
CHANGED
|
@@ -1052,6 +1052,18 @@ const actionHelp = () => {
|
|
|
1052
1052
|
" internal … internal command dispatcher (internal use only)\n");
|
|
1053
1053
|
process.exit(0);
|
|
1054
1054
|
};
|
|
1055
|
+
/* action: top-level "-v/-V/--version" */
|
|
1056
|
+
const actionVersion = () => {
|
|
1057
|
+
/* run "claude --version" */
|
|
1058
|
+
process.env.PATH = `${HOME}/.local/bin:${process.env.PATH ?? ""}`;
|
|
1059
|
+
ensureTool("claude");
|
|
1060
|
+
const claudeBin = path.join(HOME, ".local/bin/claude");
|
|
1061
|
+
execaSync(claudeBin, ["--version"], { reject: false, stdio: ["ignore", "inherit", "inherit"] });
|
|
1062
|
+
/* append our claudeX extension information */
|
|
1063
|
+
const version = JSON.parse(fs.readFileSync(path.join(basedir, "package.json"), "utf8")).version;
|
|
1064
|
+
process.stdout.write(`${version} (claudeX)\n`);
|
|
1065
|
+
process.exit(0);
|
|
1066
|
+
};
|
|
1055
1067
|
/* the main procedure -- builds and dispatches according to options and commands */
|
|
1056
1068
|
const main = async () => {
|
|
1057
1069
|
/* honor the external CLAUDEX_FLAGS environment variable as a way to set
|
|
@@ -1109,8 +1121,8 @@ const main = async () => {
|
|
|
1109
1121
|
process.argv.splice(2, 0, ...toInsert);
|
|
1110
1122
|
}
|
|
1111
1123
|
}
|
|
1112
|
-
/* intercept top-level "-h/--help" before commander
|
|
1113
|
-
pass-through to "claude
|
|
1124
|
+
/* intercept top-level "-h/--help" and "-v/-V/--version" before commander
|
|
1125
|
+
grabs them, so we can pass-through to "claude" and append our extension info */
|
|
1114
1126
|
const topArgs = process.argv.slice(2);
|
|
1115
1127
|
const firstNonFlag = topArgs.findIndex((a) => !a.startsWith("-"));
|
|
1116
1128
|
const headFlags = firstNonFlag < 0 ? topArgs : topArgs.slice(0, firstNonFlag);
|
|
@@ -1118,12 +1130,14 @@ const main = async () => {
|
|
|
1118
1130
|
if ((headFlags.includes("-h") || headFlags.includes("--help"))
|
|
1119
1131
|
&& subcmd !== "install" && subcmd !== "update" && subcmd !== "internal")
|
|
1120
1132
|
actionHelp();
|
|
1133
|
+
if ((headFlags.includes("-v") || headFlags.includes("-V") || headFlags.includes("--version"))
|
|
1134
|
+
&& subcmd !== "install" && subcmd !== "update" && subcmd !== "internal")
|
|
1135
|
+
actionVersion();
|
|
1121
1136
|
/* dispatch main command */
|
|
1122
1137
|
const program = new Command();
|
|
1123
1138
|
program
|
|
1124
1139
|
.name("claudex")
|
|
1125
1140
|
.description("Claude Code eXtended")
|
|
1126
|
-
.version(JSON.parse(fs.readFileSync(path.join(basedir, "package.json"), "utf8")).version, "-V, --version")
|
|
1127
1141
|
.enablePositionalOptions()
|
|
1128
1142
|
.passThroughOptions()
|
|
1129
1143
|
.allowUnknownOption()
|
package/claudex.ts
CHANGED
|
@@ -1155,6 +1155,20 @@ const actionHelp = (): never => {
|
|
|
1155
1155
|
process.exit(0)
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
|
+
/* action: top-level "-v/-V/--version" */
|
|
1159
|
+
const actionVersion = (): never => {
|
|
1160
|
+
/* run "claude --version" */
|
|
1161
|
+
process.env.PATH = `${HOME}/.local/bin:${process.env.PATH ?? ""}`
|
|
1162
|
+
ensureTool("claude")
|
|
1163
|
+
const claudeBin = path.join(HOME, ".local/bin/claude")
|
|
1164
|
+
execaSync(claudeBin, [ "--version" ], { reject: false, stdio: [ "ignore", "inherit", "inherit" ] })
|
|
1165
|
+
|
|
1166
|
+
/* append our claudeX extension information */
|
|
1167
|
+
const version = (JSON.parse(fs.readFileSync(path.join(basedir, "package.json"), "utf8")) as { version: string }).version
|
|
1168
|
+
process.stdout.write(`${version} (claudeX)\n`)
|
|
1169
|
+
process.exit(0)
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1158
1172
|
/* the main procedure -- builds and dispatches according to options and commands */
|
|
1159
1173
|
const main = async (): Promise<void> => {
|
|
1160
1174
|
/* honor the external CLAUDEX_FLAGS environment variable as a way to set
|
|
@@ -1216,8 +1230,8 @@ const main = async (): Promise<void> => {
|
|
|
1216
1230
|
}
|
|
1217
1231
|
}
|
|
1218
1232
|
|
|
1219
|
-
/* intercept top-level "-h/--help" before commander
|
|
1220
|
-
pass-through to "claude
|
|
1233
|
+
/* intercept top-level "-h/--help" and "-v/-V/--version" before commander
|
|
1234
|
+
grabs them, so we can pass-through to "claude" and append our extension info */
|
|
1221
1235
|
const topArgs = process.argv.slice(2)
|
|
1222
1236
|
const firstNonFlag = topArgs.findIndex((a) => !a.startsWith("-"))
|
|
1223
1237
|
const headFlags = firstNonFlag < 0 ? topArgs : topArgs.slice(0, firstNonFlag)
|
|
@@ -1225,13 +1239,15 @@ const main = async (): Promise<void> => {
|
|
|
1225
1239
|
if ((headFlags.includes("-h") || headFlags.includes("--help"))
|
|
1226
1240
|
&& subcmd !== "install" && subcmd !== "update" && subcmd !== "internal")
|
|
1227
1241
|
actionHelp()
|
|
1242
|
+
if ((headFlags.includes("-v") || headFlags.includes("-V") || headFlags.includes("--version"))
|
|
1243
|
+
&& subcmd !== "install" && subcmd !== "update" && subcmd !== "internal")
|
|
1244
|
+
actionVersion()
|
|
1228
1245
|
|
|
1229
1246
|
/* dispatch main command */
|
|
1230
1247
|
const program = new Command()
|
|
1231
1248
|
program
|
|
1232
1249
|
.name("claudex")
|
|
1233
1250
|
.description("Claude Code eXtended")
|
|
1234
|
-
.version((JSON.parse(fs.readFileSync(path.join(basedir, "package.json"), "utf8")) as { version: string }).version, "-V, --version")
|
|
1235
1251
|
.enablePositionalOptions()
|
|
1236
1252
|
.passThroughOptions()
|
|
1237
1253
|
.allowUnknownOption()
|
package/lazygit.yaml
CHANGED
|
@@ -26,6 +26,7 @@ gui:
|
|
|
26
26
|
commitHashLength: 0
|
|
27
27
|
expandFocusedSidePanel: true
|
|
28
28
|
expandedSidePanelWeight: 4
|
|
29
|
+
shrinkSidePanelsToContent: false
|
|
29
30
|
theme:
|
|
30
31
|
selectedLineBgColor:
|
|
31
32
|
- reverse
|
|
@@ -36,15 +37,33 @@ gui:
|
|
|
36
37
|
- white
|
|
37
38
|
optionsTextColor:
|
|
38
39
|
- blue
|
|
40
|
+
sidePanels:
|
|
41
|
+
- [ files ]
|
|
42
|
+
- [ worktrees ]
|
|
43
|
+
- [ branches, submodules ]
|
|
44
|
+
- [ commits, reflog, tags ]
|
|
45
|
+
- [ stash ]
|
|
46
|
+
spinner:
|
|
47
|
+
frames:
|
|
48
|
+
- ●∙∙∙
|
|
49
|
+
- ∙●∙∙
|
|
50
|
+
- ∙∙●∙
|
|
51
|
+
- ∙∙∙●
|
|
52
|
+
- ∙∙●∙
|
|
53
|
+
- ∙●∙∙
|
|
54
|
+
rate: 180
|
|
39
55
|
|
|
40
56
|
git:
|
|
41
57
|
autoFetch: false
|
|
42
58
|
autoRefresh: true
|
|
59
|
+
pagers:
|
|
60
|
+
- pager: delta --dark --paging=never
|
|
61
|
+
|
|
43
62
|
refresher:
|
|
44
|
-
refreshInterval:
|
|
63
|
+
refreshInterval: 2
|
|
45
64
|
|
|
46
65
|
update:
|
|
47
|
-
method:
|
|
66
|
+
method: never
|
|
48
67
|
days: 1
|
|
49
68
|
|
|
50
69
|
reporting: "off"
|
package/package.json
CHANGED