@datarails-ai/dr-cli 1.6.149 → 1.6.150

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/cli.js CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath3 } from "url";
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "@datarails-ai/dr-cli",
11
- version: "1.6.149",
11
+ version: "1.6.150",
12
12
  description: "Datarails CLI",
13
13
  type: "module",
14
14
  engines: {
@@ -40,7 +40,7 @@ var package_default = {
40
40
  postinstall: "node scripts/postinstall.mjs"
41
41
  },
42
42
  dependencies: {
43
- "@datarails-ai/dr-appspace-cli": "0.12.20",
43
+ "@datarails-ai/dr-appspace-cli": "0.12.21",
44
44
  "@modelcontextprotocol/sdk": "^1.29.0",
45
45
  "@napi-rs/keyring": "^1.3.0",
46
46
  commander: "^12.1.0",
@@ -69,7 +69,7 @@ var package_default = {
69
69
  };
70
70
 
71
71
  // src/buildInfo.ts
72
- var BUILD_TIME = "2026-10-20T13:20:59.293Z";
72
+ var BUILD_TIME = "2026-10-20T20:43:46.967Z";
73
73
  function formatBuildTime(iso) {
74
74
  if (iso === "") return "";
75
75
  const d = new Date(iso);
@@ -33373,13 +33373,20 @@ import { promises as fs16 } from "fs";
33373
33373
  import * as os3 from "os";
33374
33374
  import * as path7 from "path";
33375
33375
  var RESPONSE_BODY_MAX_BYTES = 8 * 1024;
33376
+ var MAX_NAME_SUFFIX = 99;
33376
33377
  async function writeErrorLog(opts) {
33377
- const filename = `dr-cli-error-${timestampStamp()}.md`;
33378
+ const stamp2 = timestampStamp();
33378
33379
  const dir = await chooseDir(opts.dirOverride);
33379
- const filePath = path7.join(dir, filename);
33380
33380
  const md = formatLog(opts);
33381
- await fs16.writeFile(filePath, md, { encoding: "utf8" });
33382
- return filePath;
33381
+ for (let n = 0; ; n++) {
33382
+ const filePath = path7.join(dir, `dr-cli-error-${stamp2}${n === 0 ? "" : `-${n}`}.md`);
33383
+ try {
33384
+ await fs16.writeFile(filePath, md, { encoding: "utf8", mode: 384, flag: "wx" });
33385
+ return filePath;
33386
+ } catch (err) {
33387
+ if (err.code !== "EEXIST" || n >= MAX_NAME_SUFFIX) throw err;
33388
+ }
33389
+ }
33383
33390
  }
33384
33391
  function timestampStamp() {
33385
33392
  return (/* @__PURE__ */ new Date()).toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, "");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "cliVersion": "1.6.149",
3
+ "cliVersion": "1.6.150",
4
4
  "_contract": "Resolve a command path through `aliases` (canonical prefix + alias segment -> canonical path) before any lookup. A path listed in `pendingCommands`, or whose first segment is a key of `pending`, is UNDECIDED, not unrestricted: fail closed or skip it, and never read a path's absence from `commands` as 'no requirement'. An entry carrying `denied` is UNAVAILABLE to any AGENT-SCOPED credential — one whose `scopes` claim carries at least one `resource:action` entry; a claim that is absent, empty, capability-only or wholly unparseable is UNRESTRICTED, and this mark does not apply to it — whatever else that entry says: it is not a ceiling and it is not always-available, its `denied.reason` says why and `denied.until` names the ticket that lifts it, and the absence of `requires` on it must NEVER be read as 'no requirement'. Only an entry in `commands` with an empty `requires` means always-available.",
5
5
  "commands": {
6
6
  "login": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarails-ai/dr-cli",
3
- "version": "1.6.149",
3
+ "version": "1.6.150",
4
4
  "description": "Datarails CLI",
5
5
  "type": "module",
6
6
  "engines": {
@@ -17,7 +17,7 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@datarails-ai/dr-appspace-cli": "0.12.20",
20
+ "@datarails-ai/dr-appspace-cli": "0.12.21",
21
21
  "@modelcontextprotocol/sdk": "^1.29.0",
22
22
  "@napi-rs/keyring": "^1.3.0",
23
23
  "commander": "^12.1.0",