@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/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 & 18) !== 0) {
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) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbcli-agent",
3
- "version": "1.45.0",
3
+ "version": "1.45.1",
4
4
  "description": "Database CLI skill and command reference for AI agents.",
5
5
  "contextFileName": "AGENTS.md"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carllee1983/dbcli",
3
- "version": "1.45.0",
3
+ "version": "1.45.1",
4
4
  "description": "Database CLI for AI agents",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dbcli-agent",
3
- "version": "1.45.0",
3
+ "version": "1.45.1",
4
4
  "description": "Database CLI skill and command reference for AI agents",
5
5
  "author": {
6
6
  "name": "Carl Lee",