@staff0rd/assist 0.1022.3 → 0.1024.0

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/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.1022.3",
9
+ version: "0.1024.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -25701,6 +25701,13 @@ function getVersionAtCommit(hash) {
25701
25701
  }
25702
25702
  }
25703
25703
 
25704
+ // src/commands/devlog/next/repoHasTags.ts
25705
+ import { execFileSync as execFileSync8 } from "child_process";
25706
+ function repoHasTags() {
25707
+ const output = execFileSync8("git", ["tag", "--list"], { encoding: "utf8" });
25708
+ return output.trim().length > 0;
25709
+ }
25710
+
25704
25711
  // src/commands/devlog/stripToMinor.ts
25705
25712
  import semver2 from "semver";
25706
25713
  function stripToMinor(version2) {
@@ -25708,13 +25715,21 @@ function stripToMinor(version2) {
25708
25715
  return parsed ? `v${parsed.major}.${parsed.minor}` : `v${version2}`;
25709
25716
  }
25710
25717
 
25711
- // src/commands/devlog/next/displayNextEntry.ts
25712
- function withVersions(commits2) {
25713
- return commits2.map((commit2) => {
25714
- const version2 = getVersionAtCommit(commit2.hash);
25715
- return { ...commit2, version: version2 ? stripToMinor(version2) : null };
25718
+ // src/commands/devlog/next/withVersions.ts
25719
+ function withVersions(commits2, versionAt, hasTags) {
25720
+ const raw = commits2.map((commit2) => versionAt(commit2.hash));
25721
+ const distinct = new Set(raw.filter((v) => v !== null));
25722
+ const unversioned = !hasTags && distinct.size <= 1;
25723
+ return commits2.map((commit2, i) => {
25724
+ const version2 = raw[i];
25725
+ return {
25726
+ ...commit2,
25727
+ version: !unversioned && version2 ? stripToMinor(version2) : null
25728
+ };
25716
25729
  });
25717
25730
  }
25731
+
25732
+ // src/commands/devlog/next/displayNextEntry.ts
25718
25733
  function versionRange(commits2) {
25719
25734
  const versions = commits2.map((c) => c.version).filter((v) => v !== null);
25720
25735
  if (versions.length === 0) return null;
@@ -25740,11 +25755,13 @@ function printCommits(commits2, ignore3, verbose) {
25740
25755
  }
25741
25756
  }
25742
25757
  function displayNextEntry(ctx, week, commits2) {
25743
- const versioned = withVersions(commits2);
25758
+ const versioned = withVersions(commits2, getVersionAtCommit, repoHasTags());
25744
25759
  const { start: start2, end } = isoWeekRange(week);
25745
25760
  printField("name", ctx.repoName);
25746
25761
  printField("week", chalk161.bold.blue(week));
25747
25762
  printField("range", `${start2} \u2013 ${end}`);
25763
+ const dates = commits2.map((c) => c.date).sort();
25764
+ if (dates.length > 0) printField("dates", `${dates[0]} \u2013 ${dates.at(-1)}`);
25748
25765
  const versions = versionRange(versioned);
25749
25766
  if (versions) printField("versions", versions);
25750
25767
  printCommits(versioned, ctx.ignore, ctx.verbose);
@@ -25823,17 +25840,32 @@ import chalk163 from "chalk";
25823
25840
  // src/commands/devlog/write/devEntryInputSchema.ts
25824
25841
  import { z as z15 } from "zod";
25825
25842
  var oneLine = z15.string().trim().min(1).refine((value) => !value.includes("\n"), "must be a single line");
25826
- var changeItems = z15.array(z15.object({ text: oneLine, version: oneLine.optional() }).strict()).default([]);
25843
+ var isoDate = z15.string().regex(/^\d{4}-\d{2}-\d{2}$/, "must be a date like 2026-08-10");
25844
+ var MAX_ITEM_LENGTH = 80;
25845
+ var itemText = oneLine.refine(
25846
+ (value) => value.length <= MAX_ITEM_LENGTH,
25847
+ `must be a short changelog phrase (at most ${MAX_ITEM_LENGTH} characters)`
25848
+ );
25849
+ var changeItems = z15.array(z15.object({ text: itemText, version: oneLine.optional() }).strict()).default([]);
25850
+ function datesWithinWeek(week, dates) {
25851
+ if (!isValidWeek(week)) return true;
25852
+ const { start: start2, end } = isoWeekRange(week);
25853
+ return start2 <= dates.first && dates.first <= dates.last && dates.last <= end;
25854
+ }
25827
25855
  var devEntryInputSchema = z15.object({
25828
25856
  week: z15.string().refine(isValidWeek, "must be an ISO week like 2026-W33"),
25829
25857
  title: oneLine,
25858
+ dates: z15.object({ first: isoDate, last: isoDate }).strict(),
25830
25859
  versions: z15.object({ first: oneLine, last: oneLine }).strict().optional(),
25831
25860
  aiGenerated: oneLine,
25832
25861
  added: changeItems,
25833
25862
  changed: changeItems,
25834
25863
  fixed: changeItems,
25835
25864
  lede: z15.string().trim().min(1)
25836
- }).strict();
25865
+ }).strict().refine((entry) => datesWithinWeek(entry.week, entry.dates), {
25866
+ message: "first and last must be in order and within the week",
25867
+ path: ["dates"]
25868
+ });
25837
25869
 
25838
25870
  // src/commands/devlog/write/formatDevEntry.ts
25839
25871
  import { parse as parseYaml4, stringify as stringifyYaml4 } from "yaml";
@@ -25841,7 +25873,8 @@ function buildFrontmatter(project, entry) {
25841
25873
  const frontmatter2 = {
25842
25874
  project,
25843
25875
  week: entry.week,
25844
- title: entry.title
25876
+ title: entry.title,
25877
+ dates: entry.dates
25845
25878
  };
25846
25879
  if (entry.versions) frontmatter2.versions = entry.versions;
25847
25880
  frontmatter2["ai-generated"] = entry.aiGenerated;
@@ -28296,7 +28329,7 @@ Anything nested below the leaf level fails the run before a single write, naming
28296
28329
  }
28297
28330
 
28298
28331
  // src/commands/github/issue/commentIssue.ts
28299
- import { execFileSync as execFileSync8 } from "child_process";
28332
+ import { execFileSync as execFileSync9 } from "child_process";
28300
28333
 
28301
28334
  // src/shared/validateProposedContent.ts
28302
28335
  function validateProposedContent(labels, title, body) {
@@ -28357,7 +28390,7 @@ async function commentIssue(numberArg, options2) {
28357
28390
  const args = ["issue", "comment", String(number), "--body", body];
28358
28391
  if (options2.repo) args.push("--repo", options2.repo);
28359
28392
  try {
28360
- execFileSync8("gh", args, { stdio: "inherit" });
28393
+ execFileSync9("gh", args, { stdio: "inherit" });
28361
28394
  } catch {
28362
28395
  process.exit(1);
28363
28396
  }
@@ -28869,7 +28902,7 @@ function attachArgs(attachments) {
28869
28902
  }
28870
28903
 
28871
28904
  // src/commands/prs/runGhWithAttachments.ts
28872
- import { execFileSync as execFileSync9 } from "child_process";
28905
+ import { execFileSync as execFileSync10 } from "child_process";
28873
28906
  import { basename as basename18 } from "path";
28874
28907
 
28875
28908
  // src/shared/removeStagedAttachments.ts
@@ -28897,7 +28930,7 @@ function reportPartialFailure(attachments, stderr) {
28897
28930
  function runGhWithAttachments(args, attachments) {
28898
28931
  const attaching = attachments.length > 0;
28899
28932
  try {
28900
- const stdout = execFileSync9("gh", args, {
28933
+ const stdout = execFileSync10("gh", args, {
28901
28934
  encoding: "utf8",
28902
28935
  stdio: ["inherit", "pipe", attaching ? "pipe" : "inherit"]
28903
28936
  });
@@ -29008,7 +29041,7 @@ The project scope is needed for --project: gh auth refresh -h github.com -s proj
29008
29041
  }
29009
29042
 
29010
29043
  // src/commands/github/issue/fetchIssue.ts
29011
- import { execFileSync as execFileSync10 } from "child_process";
29044
+ import { execFileSync as execFileSync11 } from "child_process";
29012
29045
  function fetchIssue2(number, repo) {
29013
29046
  const args = [
29014
29047
  "issue",
@@ -29020,7 +29053,7 @@ function fetchIssue2(number, repo) {
29020
29053
  if (repo) args.push("--repo", repo);
29021
29054
  let raw;
29022
29055
  try {
29023
- raw = execFileSync10("gh", args, { encoding: "utf8" });
29056
+ raw = execFileSync11("gh", args, { encoding: "utf8" });
29024
29057
  } catch {
29025
29058
  console.error(`Could not fetch issue #${number} with gh issue view`);
29026
29059
  process.exit(1);
@@ -29130,12 +29163,12 @@ function prepareIssueEdit(number, repo, fresh, proposed) {
29130
29163
  }
29131
29164
 
29132
29165
  // src/commands/github/issue/pushIssueBody.ts
29133
- import { execFileSync as execFileSync11 } from "child_process";
29166
+ import { execFileSync as execFileSync12 } from "child_process";
29134
29167
  function pushIssueBody(number, repo, bodyPath) {
29135
29168
  const args = ["issue", "edit", String(number), "--body-file", bodyPath];
29136
29169
  if (repo) args.push("--repo", repo);
29137
29170
  try {
29138
- execFileSync11("gh", args, { stdio: "inherit" });
29171
+ execFileSync12("gh", args, { stdio: "inherit" });
29139
29172
  } catch {
29140
29173
  process.exit(1);
29141
29174
  }
@@ -29214,12 +29247,12 @@ function setIssueParent(number, repo, parentArg) {
29214
29247
  }
29215
29248
 
29216
29249
  // src/commands/github/issue/viewIssue.ts
29217
- import { execFileSync as execFileSync12 } from "child_process";
29250
+ import { execFileSync as execFileSync13 } from "child_process";
29218
29251
  function viewIssue(number, repo) {
29219
29252
  const args = ["issue", "view", String(number)];
29220
29253
  if (repo) args.push("--repo", repo);
29221
29254
  try {
29222
- execFileSync12("gh", args, { stdio: "inherit" });
29255
+ execFileSync13("gh", args, { stdio: "inherit" });
29223
29256
  } catch {
29224
29257
  process.exit(1);
29225
29258
  }
@@ -29273,7 +29306,7 @@ function registerEditIssue(issueCommand) {
29273
29306
  }
29274
29307
 
29275
29308
  // src/commands/github/issue/editIssueComment.ts
29276
- import { execFileSync as execFileSync13 } from "child_process";
29309
+ import { execFileSync as execFileSync14 } from "child_process";
29277
29310
  var USAGE4 = "Usage: assist github issue edit-comment <comment-id> --body <body> [-R <owner>/<repo>]";
29278
29311
  async function editIssueComment(commentIdArg, options2) {
29279
29312
  const commentId = Number.parseInt(commentIdArg, 10);
@@ -29300,7 +29333,7 @@ async function editIssueComment(commentIdArg, options2) {
29300
29333
  ];
29301
29334
  let raw;
29302
29335
  try {
29303
- raw = execFileSync13("gh", args, {
29336
+ raw = execFileSync14("gh", args, {
29304
29337
  input: JSON.stringify({ body }),
29305
29338
  encoding: "utf8"
29306
29339
  });
@@ -30178,7 +30211,7 @@ function registerRefineLaunch(program, resumeFlag) {
30178
30211
  import { randomUUID as randomUUID16 } from "crypto";
30179
30212
 
30180
30213
  // src/commands/review/checkoutPr.ts
30181
- import { execFileSync as execFileSync16 } from "child_process";
30214
+ import { execFileSync as execFileSync17 } from "child_process";
30182
30215
 
30183
30216
  // src/commands/review/clearStalePrBranch.ts
30184
30217
  var tipSetFromRemote = /^branch: (Created from|Reset to)|^fetch\b|: Fast-forward$/;
@@ -30777,13 +30810,13 @@ function prCliCommands(number, cwd) {
30777
30810
  }
30778
30811
 
30779
30812
  // src/commands/review/prHeadBranch.ts
30780
- import { execFileSync as execFileSync14 } from "child_process";
30813
+ import { execFileSync as execFileSync15 } from "child_process";
30781
30814
  function prHeadBranch({
30782
30815
  headBranch
30783
30816
  }) {
30784
30817
  try {
30785
30818
  return headBranch.parse(
30786
- execFileSync14(headBranch.file, headBranch.args, {
30819
+ execFileSync15(headBranch.file, headBranch.args, {
30787
30820
  encoding: "utf8",
30788
30821
  stdio: ["ignore", "pipe", "pipe"]
30789
30822
  })
@@ -30854,7 +30887,7 @@ function worktreeHoldingBranch(cwd, branch2) {
30854
30887
  import chalk187 from "chalk";
30855
30888
 
30856
30889
  // src/commands/review/azCliProblem.ts
30857
- import { execFileSync as execFileSync15 } from "child_process";
30890
+ import { execFileSync as execFileSync16 } from "child_process";
30858
30891
 
30859
30892
  // src/commands/review/azFailureProblem.ts
30860
30893
  var azProblems = {
@@ -30882,7 +30915,7 @@ function azFailureProblem(error) {
30882
30915
  // src/commands/review/azCliProblem.ts
30883
30916
  function runAz(args) {
30884
30917
  try {
30885
- execFileSync15("az", args, { stdio: "ignore" });
30918
+ execFileSync16("az", args, { stdio: "ignore" });
30886
30919
  return "ok";
30887
30920
  } catch (error) {
30888
30921
  return error.code === "ENOENT" ? "missing" : "failed";
@@ -30945,7 +30978,7 @@ async function checkoutPr(number) {
30945
30978
  const from = branch2 === "HEAD" ? gitSyncOrNull(process.cwd(), ["rev-parse", "HEAD"]) : branch2;
30946
30979
  const stale = headRef ? clearStalePrBranch(process.cwd(), headRef) : "absent";
30947
30980
  try {
30948
- execFileSync16(commands.checkout.file, commands.checkout.args, {
30981
+ execFileSync17(commands.checkout.file, commands.checkout.args, {
30949
30982
  stdio: "inherit"
30950
30983
  });
30951
30984
  } catch {
@@ -32975,9 +33008,9 @@ var azureDevopsThreadRequests = {
32975
33008
  };
32976
33009
 
32977
33010
  // src/commands/prs/azureDevops/currentAzureDevopsPr.ts
32978
- import { execFileSync as execFileSync17 } from "child_process";
33011
+ import { execFileSync as execFileSync18 } from "child_process";
32979
33012
  function findPrForBranch(repo, branch2) {
32980
- const stdout = execFileSync17(
33013
+ const stdout = execFileSync18(
32981
33014
  "az",
32982
33015
  [
32983
33016
  "repos",
@@ -33024,7 +33057,7 @@ function failAzureDevops(error) {
33024
33057
  }
33025
33058
 
33026
33059
  // src/commands/prs/azureDevops/invokeAzDevops.ts
33027
- import { execFileSync as execFileSync18 } from "child_process";
33060
+ import { execFileSync as execFileSync19 } from "child_process";
33028
33061
  import { mkdtempSync as mkdtempSync2, rmSync as rmSync6, writeFileSync as writeFileSync41 } from "fs";
33029
33062
  import { tmpdir as tmpdir6 } from "os";
33030
33063
  import { join as join86 } from "path";
@@ -33053,7 +33086,7 @@ function azDevopsInvokeArgs(request, inFile) {
33053
33086
  ];
33054
33087
  }
33055
33088
  function runAz2(args) {
33056
- const stdout = execFileSync18("az", args, {
33089
+ const stdout = execFileSync19("az", args, {
33057
33090
  encoding: "utf8",
33058
33091
  stdio: ["ignore", "pipe", "pipe"],
33059
33092
  windowsHide: true
@@ -33122,10 +33155,10 @@ function listAzureDevopsComments(repo) {
33122
33155
  }
33123
33156
 
33124
33157
  // src/commands/prs/fetchThreadIds.ts
33125
- import { execFileSync as execFileSync19 } from "child_process";
33158
+ import { execFileSync as execFileSync20 } from "child_process";
33126
33159
  var THREAD_QUERY = `query($owner: String!, $repo: String!, $prNumber: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $prNumber) { reviewThreads(first: 100) { nodes { id isResolved comments(first: 100) { nodes { databaseId } } } } } } }`;
33127
33160
  function fetchThreadIds(org, repo, prNumber) {
33128
- const result = execFileSync19(
33161
+ const result = execFileSync20(
33129
33162
  "gh",
33130
33163
  [
33131
33164
  "api",
@@ -33406,7 +33439,7 @@ function printComments2(result) {
33406
33439
  import { execSync as execSync42 } from "child_process";
33407
33440
 
33408
33441
  // src/commands/prs/threadTarget.ts
33409
- import { execFileSync as execFileSync20 } from "child_process";
33442
+ import { execFileSync as execFileSync21 } from "child_process";
33410
33443
 
33411
33444
  // src/commands/prs/azureDevops/azureDevopsThreadActions.ts
33412
33445
  function attempt(run4) {
@@ -33454,7 +33487,7 @@ function replyToComment(org, repo, prNumber, commentId, message3) {
33454
33487
  // src/commands/prs/threadTarget.ts
33455
33488
  function resolveThread(threadId) {
33456
33489
  const mutation = `mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { isResolved } } }`;
33457
- execFileSync20(
33490
+ execFileSync21(
33458
33491
  "gh",
33459
33492
  ["api", "graphql", "-f", `query=${mutation}`, "-f", `threadId=${threadId}`],
33460
33493
  { stdio: ["inherit", "pipe", "inherit"] }
@@ -34094,7 +34127,7 @@ function buildValidatedBody(options2, usage) {
34094
34127
  }
34095
34128
 
34096
34129
  // src/commands/prs/placePr.ts
34097
- import { execFileSync as execFileSync21 } from "child_process";
34130
+ import { execFileSync as execFileSync22 } from "child_process";
34098
34131
 
34099
34132
  // src/commands/prs/buildCreateArgs.ts
34100
34133
  function buildCreateArgs(title, body, options2, attachments = []) {
@@ -34180,7 +34213,7 @@ function buildEditArgs(number, title, body, attachments = []) {
34180
34213
  // src/commands/prs/placePr.ts
34181
34214
  function hasUpstream2() {
34182
34215
  try {
34183
- execFileSync21(
34216
+ execFileSync22(
34184
34217
  "git",
34185
34218
  ["rev-parse", "--abbrev-ref", "--symbolic-full-name", "@{u}"],
34186
34219
  { stdio: "pipe" }
@@ -34192,7 +34225,7 @@ function hasUpstream2() {
34192
34225
  }
34193
34226
  function ensureBranchPushed() {
34194
34227
  const args = hasUpstream2() ? ["push"] : ["push", "--set-upstream", "origin", "HEAD"];
34195
- execFileSync21("git", args, { stdio: "inherit" });
34228
+ execFileSync22("git", args, { stdio: "inherit" });
34196
34229
  }
34197
34230
  async function placePr(prNumber, title, body, options2, attachments = []) {
34198
34231
  const args = prNumber !== null ? buildEditArgs(prNumber, title, body, attachments) : buildCreateArgs(title, body, options2, attachments);
@@ -34263,10 +34296,10 @@ function warn(reason4) {
34263
34296
  }
34264
34297
 
34265
34298
  // src/commands/prs/enableAutoMerge.ts
34266
- import { execFileSync as execFileSync22 } from "child_process";
34299
+ import { execFileSync as execFileSync23 } from "child_process";
34267
34300
  function enableAutoMerge() {
34268
34301
  try {
34269
- execFileSync22(
34302
+ execFileSync23(
34270
34303
  "gh",
34271
34304
  ["pr", "merge", getCurrentBranch2(), "--auto", "--squash"],
34272
34305
  { stdio: "inherit" }
@@ -34524,10 +34557,10 @@ function prsSlackChannel() {
34524
34557
  }
34525
34558
 
34526
34559
  // src/commands/prs/status/fetchReviewThreads.ts
34527
- import { execFileSync as execFileSync23 } from "child_process";
34560
+ import { execFileSync as execFileSync24 } from "child_process";
34528
34561
  var THREAD_QUERY2 = `query($owner: String!, $repo: String!, $prNumber: Int!) { repository(owner: $owner, name: $repo) { pullRequest(number: $prNumber) { reviewThreads(first: 100) { nodes { isResolved } } } } }`;
34529
34562
  function fetchReviewThreads(org, repo, prNumber) {
34530
- const output = execFileSync23(
34563
+ const output = execFileSync24(
34531
34564
  "gh",
34532
34565
  [
34533
34566
  "api",
@@ -38959,7 +38992,7 @@ function exitWith(message3) {
38959
38992
  }
38960
38993
 
38961
38994
  // src/commands/review/highLevel/proposeHighLevelGlobs.ts
38962
- import { execFileSync as execFileSync25 } from "child_process";
38995
+ import { execFileSync as execFileSync26 } from "child_process";
38963
38996
  import chalk249 from "chalk";
38964
38997
 
38965
38998
  // src/commands/review/highLevel/buildGlobProposalPrompt.ts
@@ -39008,7 +39041,7 @@ function readGlobs(value) {
39008
39041
  }
39009
39042
 
39010
39043
  // src/commands/review/highLevel/summariseRepoTree.ts
39011
- import { execFileSync as execFileSync24 } from "child_process";
39044
+ import { execFileSync as execFileSync25 } from "child_process";
39012
39045
  import { dirname as dirname41, extname as extname6 } from "path";
39013
39046
  var MAX_DIRECTORIES = 200;
39014
39047
  var MAX_EXTENSIONS_PER_DIRECTORY = 6;
@@ -39024,7 +39057,7 @@ function summariseRepoTree(cwd = process.cwd()) {
39024
39057
  }
39025
39058
  function listTrackedFiles(cwd) {
39026
39059
  try {
39027
- return execFileSync24("git", ["ls-files"], {
39060
+ return execFileSync25("git", ["ls-files"], {
39028
39061
  cwd,
39029
39062
  encoding: "utf8",
39030
39063
  maxBuffer: 64 * 1024 * 1024
@@ -39069,7 +39102,7 @@ function proposeHighLevelGlobs(cwd = process.cwd()) {
39069
39102
  }
39070
39103
  function askClaude(prompt, cwd) {
39071
39104
  try {
39072
- return execFileSync25("claude", ["-p", "--model", "sonnet", prompt], {
39105
+ return execFileSync26("claude", ["-p", "--model", "sonnet", prompt], {
39073
39106
  cwd,
39074
39107
  encoding: "utf8",
39075
39108
  timeout: 12e4,
@@ -39705,11 +39738,11 @@ function evaluateHighLevelChecks(subject) {
39705
39738
  }
39706
39739
 
39707
39740
  // src/commands/review/highLevel/fetchFileAtSha.ts
39708
- import { execFileSync as execFileSync26 } from "child_process";
39741
+ import { execFileSync as execFileSync27 } from "child_process";
39709
39742
  function fetchFileAtSha(repo, sha, path109) {
39710
39743
  const encodedPath = path109.split("/").map(encodeURIComponent).join("/");
39711
39744
  try {
39712
- return execFileSync26(
39745
+ return execFileSync27(
39713
39746
  "gh",
39714
39747
  [
39715
39748
  "api",
@@ -39731,7 +39764,7 @@ function fetchFileAtSha(repo, sha, path109) {
39731
39764
  }
39732
39765
 
39733
39766
  // src/commands/review/highLevel/fetchHighLevelFiles.ts
39734
- import { execFileSync as execFileSync27 } from "child_process";
39767
+ import { execFileSync as execFileSync28 } from "child_process";
39735
39768
  import { createHash as createHash4 } from "crypto";
39736
39769
  var JQ = ".[] | {filename,status,additions,deletions,patch} | @json";
39737
39770
  function toStatus(status2) {
@@ -39744,7 +39777,7 @@ function diffUrl(repo, prNumber, path109) {
39744
39777
  return `https://github.com/${repo}/pull/${prNumber}/files#diff-${anchor}`;
39745
39778
  }
39746
39779
  function fetchHighLevelFiles(prNumber, repo) {
39747
- const out = execFileSync27(
39780
+ const out = execFileSync28(
39748
39781
  "gh",
39749
39782
  ["api", `repos/${repo}/pulls/${prNumber}/files`, "--paginate", "--jq", JQ],
39750
39783
  { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }
@@ -45694,13 +45727,13 @@ Total: ${violations.length} forbidden string(s).`);
45694
45727
  }
45695
45728
 
45696
45729
  // src/commands/verify/hardcodedColors.ts
45697
- import { execFileSync as execFileSync28 } from "child_process";
45730
+ import { execFileSync as execFileSync29 } from "child_process";
45698
45731
  import { minimatch as minimatch11 } from "minimatch";
45699
45732
  var pattern = "0x[0-9a-fA-F]{6}|#[0-9a-fA-F]{3,6}";
45700
45733
  function hardcodedColors() {
45701
45734
  const ignoreGlobs = loadConfig().hardcodedColors?.ignore ?? [];
45702
45735
  try {
45703
- const output = execFileSync28("grep", ["-rEnH", "-f", "-", "src/"], {
45736
+ const output = execFileSync29("grep", ["-rEnH", "-f", "-", "src/"], {
45704
45737
  encoding: "utf8",
45705
45738
  input: `${pattern}
45706
45739
  `
@@ -46567,11 +46600,11 @@ function consumeSimulatedDivergence(cwd) {
46567
46600
  }
46568
46601
 
46569
46602
  // src/commands/watch/fetchQuietly.ts
46570
- import { execFileSync as execFileSync29 } from "child_process";
46603
+ import { execFileSync as execFileSync30 } from "child_process";
46571
46604
  var MIN_FETCH_TIMEOUT_MS = 6e4;
46572
46605
  function fetchQuietly(cwd, intervalMs) {
46573
46606
  try {
46574
- execFileSync29("git", ["fetch", "--quiet"], {
46607
+ execFileSync30("git", ["fetch", "--quiet"], {
46575
46608
  stdio: ["pipe", "pipe", "pipe"],
46576
46609
  cwd,
46577
46610
  timeout: Math.max(intervalMs, MIN_FETCH_TIMEOUT_MS)
@@ -46825,7 +46858,7 @@ function registerWatch(program) {
46825
46858
  }
46826
46859
 
46827
46860
  // src/commands/roam/postRoamActivity.ts
46828
- import { execFileSync as execFileSync30 } from "child_process";
46861
+ import { execFileSync as execFileSync31 } from "child_process";
46829
46862
  import { readdirSync as readdirSync24, readFileSync as readFileSync69, statSync as statSync13 } from "fs";
46830
46863
  import { join as join106 } from "path";
46831
46864
  function findPortFile(roamDir) {
@@ -46864,7 +46897,7 @@ function postRoamActivity(app, event) {
46864
46897
  const pid = PID_BY_APP[app] ?? 99999;
46865
46898
  const url = `http://127.0.0.1:${port}/api/v1/activity/${app}/${event}?pid=${pid}`;
46866
46899
  try {
46867
- execFileSync30("curl", ["-sf", "--max-time", "0.2", "-X", "POST", url], {
46900
+ execFileSync31("curl", ["-sf", "--max-time", "0.2", "-X", "POST", url], {
46868
46901
  stdio: "ignore"
46869
46902
  });
46870
46903
  } catch {
@@ -47428,11 +47461,11 @@ function formatLink(link3) {
47428
47461
  }
47429
47462
 
47430
47463
  // src/commands/sessions/daemon/listDaemonPids.ts
47431
- import { execFileSync as execFileSync31 } from "child_process";
47464
+ import { execFileSync as execFileSync32 } from "child_process";
47432
47465
  function listDaemonPids() {
47433
47466
  if (process.platform === "win32") return [];
47434
47467
  try {
47435
- const out = execFileSync31("ps", ["-eo", "pid=,args="], {
47468
+ const out = execFileSync32("ps", ["-eo", "pid=,args="], {
47436
47469
  encoding: "utf8"
47437
47470
  });
47438
47471
  return out.split("\n").filter((line) => line.includes("assist") && / daemon run\b/.test(line)).map((line) => Number.parseInt(line.trim(), 10)).filter((pid) => Number.isInteger(pid));
@@ -52381,7 +52414,7 @@ function releaseClient(client, clients, prPreview, verify) {
52381
52414
  }
52382
52415
 
52383
52416
  // src/commands/sessions/daemon/findPortHolderPid.ts
52384
- import { execFileSync as execFileSync32 } from "child_process";
52417
+ import { execFileSync as execFileSync33 } from "child_process";
52385
52418
  var PROBE_TIMEOUT_MS = 3e3;
52386
52419
  function findPortHolderPid(port) {
52387
52420
  try {
@@ -52391,7 +52424,7 @@ function findPortHolderPid(port) {
52391
52424
  }
52392
52425
  }
52393
52426
  function probe(command, args) {
52394
- return execFileSync32(command, args, {
52427
+ return execFileSync33(command, args, {
52395
52428
  encoding: "utf8",
52396
52429
  timeout: PROBE_TIMEOUT_MS,
52397
52430
  stdio: ["ignore", "pipe", "ignore"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1022.3",
3
+ "version": "0.1024.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {