@docyrus/docyrus 0.0.53 → 0.0.54

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/main.js CHANGED
@@ -139349,7 +139349,7 @@ function buildInputSchema(args2, env2, options2) {
139349
139349
  // package.json
139350
139350
  var package_default = {
139351
139351
  name: "@docyrus/docyrus",
139352
- version: "0.0.53",
139352
+ version: "0.0.54",
139353
139353
  private: false,
139354
139354
  description: "Docyrus API CLI",
139355
139355
  main: "./main.js",
@@ -139393,11 +139393,13 @@ var package_default = {
139393
139393
  unified: "^11.0.5",
139394
139394
  "unist-util-visit": "^5.1.0",
139395
139395
  "web-tree-sitter": "0.25.10",
139396
+ ws: "^8.18.0",
139396
139397
  zod: "^4.3.6"
139397
139398
  },
139398
139399
  devDependencies: {
139399
139400
  "@types/node": "^24.12.2",
139400
- "@types/react": "^19.1.13"
139401
+ "@types/react": "^19.1.13",
139402
+ "@types/ws": "^8.5.0"
139401
139403
  },
139402
139404
  engines: {
139403
139405
  node: ">=22.19"
@@ -150652,12 +150654,12 @@ var import_node_child_process6 = require("node:child_process");
150652
150654
  var import_node_fs15 = require("node:fs");
150653
150655
  var import_promises18 = __toESM(require("node:fs/promises"));
150654
150656
  var import_node_path23 = __toESM(require("node:path"));
150655
- function git(args2, cwd) {
150656
- return (0, import_node_child_process6.execFileSync)("git", args2, { cwd, encoding: "utf8", timeout: 15e3 }).trim();
150657
+ function git(args2, cwd, timeout = 15e3) {
150658
+ return (0, import_node_child_process6.execFileSync)("git", args2, { cwd, encoding: "utf8", timeout, stdio: ["pipe", "pipe", "pipe"] }).trim();
150657
150659
  }
150658
- function gitSafe(args2, cwd) {
150660
+ function gitSafe(args2, cwd, timeout) {
150659
150661
  try {
150660
- return git(args2, cwd);
150662
+ return git(args2, cwd, timeout);
150661
150663
  } catch {
150662
150664
  return null;
150663
150665
  }
@@ -150796,7 +150798,13 @@ function formatEntry(commit) {
150796
150798
  return `${breaking}${scope}${commit.subject}`;
150797
150799
  }
150798
150800
  function detectDocyrusBackendChanges(root, sinceTag) {
150799
- const range = sinceTag ? `${sinceTag}..HEAD` : "HEAD~50..HEAD";
150801
+ let range;
150802
+ if (sinceTag) {
150803
+ range = `${sinceTag}..HEAD`;
150804
+ } else {
150805
+ const rootCommit = gitSafe(["rev-list", "--max-parents=0", "HEAD"], root);
150806
+ range = rootCommit ? `${rootCommit}..HEAD` : "HEAD";
150807
+ }
150800
150808
  const entries = [];
150801
150809
  const diffFiles = gitSafe(["diff", "--name-only", range], root);
150802
150810
  if (!diffFiles) {
@@ -150950,7 +150958,7 @@ async function executeRelease(params) {
150950
150958
  `, "utf8");
150951
150959
  }
150952
150960
  git(["add", "-A"], root);
150953
- git(["commit", "-m", `chore(release): v${nextVersion}`], root);
150961
+ git(["commit", "-m", `chore(release): v${nextVersion}`], root, 12e4);
150954
150962
  if (!params.skipTag) {
150955
150963
  git(["tag", `v${nextVersion}`], root);
150956
150964
  }