@ingit/cli 0.6.3 → 0.6.4
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/bin/auto-update.cjs +9 -3
- package/package.json +6 -6
package/bin/auto-update.cjs
CHANGED
|
@@ -72,13 +72,19 @@ async function readSettings(filePath) {
|
|
|
72
72
|
throw error;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
const data = await readSettings(filePath);
|
|
75
|
+
function parseSettings(data) {
|
|
77
76
|
if (data.autoUpdate !== undefined && typeof data.autoUpdate !== "boolean") {
|
|
78
77
|
throw new Error("Invalid automatic update preference");
|
|
79
78
|
}
|
|
80
|
-
|
|
79
|
+
if (data.commitMessageAgent != null && data.commitMessageAgent !== "claude" && data.commitMessageAgent !== "codex") {
|
|
80
|
+
throw new Error("Invalid commit message agent preference");
|
|
81
|
+
}
|
|
82
|
+
return { autoUpdate: data.autoUpdate ?? true, commitMessageAgent: data.commitMessageAgent ?? null };
|
|
83
|
+
}
|
|
84
|
+
async function getAppSettings(filePath = appSettingsPath()) {
|
|
85
|
+
return parseSettings(await readSettings(filePath));
|
|
81
86
|
}
|
|
87
|
+
var pendingWrite = Promise.resolve();
|
|
82
88
|
|
|
83
89
|
// src/existing-server.ts
|
|
84
90
|
function parseVersion(version) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ingit/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Local git history & graph viewer in your browser",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ingit": "bin/ingit.cjs"
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@ingit/cli-linux-x64": "0.6.
|
|
14
|
-
"@ingit/cli-linux-arm64": "0.6.
|
|
15
|
-
"@ingit/cli-darwin-x64": "0.6.
|
|
16
|
-
"@ingit/cli-darwin-arm64": "0.6.
|
|
17
|
-
"@ingit/cli-win32-x64": "0.6.
|
|
13
|
+
"@ingit/cli-linux-x64": "0.6.4",
|
|
14
|
+
"@ingit/cli-linux-arm64": "0.6.4",
|
|
15
|
+
"@ingit/cli-darwin-x64": "0.6.4",
|
|
16
|
+
"@ingit/cli-darwin-arm64": "0.6.4",
|
|
17
|
+
"@ingit/cli-win32-x64": "0.6.4"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"engines": {
|