@carllee1983/dbcli 1.45.0 → 1.45.1
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/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/cli.mjs +11280 -572
- package/dist/core.mjs +6 -1
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/plugins/dbcli-agent/.codex-plugin/plugin.json +1 -1
package/dist/core.mjs
CHANGED
|
@@ -17598,6 +17598,11 @@ async function bestEffortSecureMode(path, mode) {
|
|
|
17598
17598
|
await chmod(path, mode);
|
|
17599
17599
|
} catch {}
|
|
17600
17600
|
}
|
|
17601
|
+
function refusesGroupOrWorldWritable(mode, platform = process.platform) {
|
|
17602
|
+
if (platform === "win32")
|
|
17603
|
+
return false;
|
|
17604
|
+
return (mode & 18) !== 0;
|
|
17605
|
+
}
|
|
17601
17606
|
async function assertAgentReadableFile(path, description = "config") {
|
|
17602
17607
|
if (process.env.DBCLI_AGENT_MODE !== "1")
|
|
17603
17608
|
return;
|
|
@@ -17606,7 +17611,7 @@ async function assertAgentReadableFile(path, description = "config") {
|
|
|
17606
17611
|
if (fileStat.isSymbolicLink() || !fileStat.isFile()) {
|
|
17607
17612
|
throw new ConfigError(`Agent mode refuses a non-regular ${description} file: ${path}. Run the human/admin setup workflow to provision it.`);
|
|
17608
17613
|
}
|
|
17609
|
-
if ((fileStat.mode
|
|
17614
|
+
if (refusesGroupOrWorldWritable(fileStat.mode)) {
|
|
17610
17615
|
throw new ConfigError(`Agent mode refuses a group/world-writable config: ${path}. Run the human/admin setup workflow to secure it.`);
|
|
17611
17616
|
}
|
|
17612
17617
|
} catch (error) {
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED