@staff0rd/assist 0.1185.5 → 0.1187.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.
Files changed (26) hide show
  1. package/agent/commands/github.md +2 -1
  2. package/dist/.build-files +19 -20
  3. package/dist/built-version +1 -1
  4. package/dist/{chunk-CXJX4ZT5.js → chunk-7GGVRB3G.js} +1 -1
  5. package/dist/{chunk-WG3TXZMV.js → chunk-DPCFT55U.js} +16 -6
  6. package/dist/{chunk-5JNKJSKT.js → chunk-GIFMD6SW.js} +5 -7
  7. package/dist/{chunk-BWUPBQ3H.js → chunk-GYM3LVZT.js} +1 -1
  8. package/dist/{chunk-SOES6K5E.js → chunk-ODH4PKV4.js} +1 -1
  9. package/dist/{chunk-UY3SFWNC.js → chunk-PEOCY7Q3.js} +1 -1
  10. package/dist/{chunk-MJ4RLQ5N.js → chunk-Q4TGGE5L.js} +0 -63
  11. package/dist/{chunk-LXLLU5Z6.js → chunk-XNN2K4S3.js} +1 -1
  12. package/dist/{chunk-ONODYZ2H.js → chunk-YDSX6BYY.js} +65 -4
  13. package/dist/commands/sessions/web/bundle.js +162 -162
  14. package/dist/{createIssue-5KNMMJVA.js → createIssue-ZFRBIC7A.js} +42 -35
  15. package/dist/{doctorNodes-V45AR2P2.js → doctorNodes-Y5L32TWX.js} +3 -3
  16. package/dist/{edit-5QLQ3TLJ.js → edit-2ZO7TOPW.js} +6 -7
  17. package/dist/index.js +33 -28
  18. package/dist/{raise-O7DVXVP6.js → raise-WQ2WINT4.js} +6 -7
  19. package/dist/{restartNode-N6OZKO6D.js → restartNode-CAPDQK23.js} +5 -5
  20. package/dist/{runDaemon-LVDERT3K.js → runDaemon-GHG5TRPX.js} +2 -2
  21. package/dist/{signExtension-2JTTOCVB.js → signExtension-GQXLL6CC.js} +1 -1
  22. package/dist/{updateNode-DWMJM2ML.js → updateNode-RMHEOL4X.js} +5 -5
  23. package/dist/{web-2FBWHQMJ.js → web-3NKRW2FS.js} +6 -7
  24. package/dist/{web-TNILCTTL.js → web-IE3MFOE5.js} +6 -7
  25. package/package.json +1 -1
  26. package/dist/chunk-S6FVZYHH.js +0 -16
@@ -1,8 +1,10 @@
1
1
  import {
2
2
  appendScreenshots,
3
3
  attachArgs,
4
- runGhWithAttachments
5
- } from "./chunk-ONODYZ2H.js";
4
+ parseScreenshotSpecs,
5
+ runGhWithAttachments,
6
+ stageScreenshots
7
+ } from "./chunk-YDSX6BYY.js";
6
8
  import {
7
9
  normaliseTypeName,
8
10
  resolveIssueType,
@@ -36,7 +38,7 @@ import "./chunk-B7B26YPF.js";
36
38
  import {
37
39
  fetchProjectV2
38
40
  } from "./chunk-YQ3CNWB3.js";
39
- import "./chunk-S6FVZYHH.js";
41
+ import "./chunk-DPCFT55U.js";
40
42
  import {
41
43
  assertProjectScope,
42
44
  setProjectItemStatus
@@ -149,6 +151,33 @@ function issuePreviewMetadata(resolved) {
149
151
  return items;
150
152
  }
151
153
 
154
+ // src/commands/github/issue/reviewProposedIssue.ts
155
+ import { randomUUID } from "crypto";
156
+ async function reviewProposedIssue(title, body, metadata = [], screenshots = []) {
157
+ const sessionId = process.env.ASSIST_SESSION_ID;
158
+ if (process.env.ASSIST_SESSION !== "1" || !sessionId) return void 0;
159
+ return await awaitPreviewApproval("GitHub issue preview", {
160
+ sessionId,
161
+ requestId: randomUUID(),
162
+ title,
163
+ body,
164
+ prNumber: null,
165
+ kind: "github-issue",
166
+ metadata: metadata.length ? metadata : void 0,
167
+ screenshots: screenshots.length ? await stageScreenshots(screenshots) : void 0
168
+ });
169
+ }
170
+
171
+ // src/commands/github/issue/runGhIssueCreate.ts
172
+ function runGhIssueCreate(title, body, repo, metadata, attachments = []) {
173
+ const args = ["issue", "create", "--title", title, "--body", body];
174
+ if (repo) args.push("--repo", repo);
175
+ for (const label of metadata?.labels ?? []) args.push("--label", label);
176
+ if (metadata?.milestone) args.push("--milestone", metadata.milestone);
177
+ args.push(...attachArgs(attachments));
178
+ return runGhWithAttachments(args, attachments);
179
+ }
180
+
152
181
  // src/commands/github/issue/hasCreateIssueMetadataOptions.ts
153
182
  function hasCreateIssueMetadataOptions(options) {
154
183
  if (options.status && !options.project) {
@@ -297,35 +326,8 @@ function resolveCreateIssueMetadata(options) {
297
326
  };
298
327
  }
299
328
 
300
- // src/commands/github/issue/reviewProposedIssue.ts
301
- import { randomUUID } from "crypto";
302
- async function reviewProposedIssue(title, body, metadata = []) {
303
- const sessionId = process.env.ASSIST_SESSION_ID;
304
- if (process.env.ASSIST_SESSION !== "1" || !sessionId) return void 0;
305
- return await awaitPreviewApproval("GitHub issue preview", {
306
- sessionId,
307
- requestId: randomUUID(),
308
- title,
309
- body,
310
- prNumber: null,
311
- kind: "github-issue",
312
- metadata: metadata.length ? metadata : void 0
313
- });
314
- }
315
-
316
- // src/commands/github/issue/runGhIssueCreate.ts
317
- function runGhIssueCreate(title, body, repo, metadata, attachments = []) {
318
- const args = ["issue", "create", "--title", title, "--body", body];
319
- if (repo) args.push("--repo", repo);
320
- for (const label of metadata?.labels ?? []) args.push("--label", label);
321
- if (metadata?.milestone) args.push("--milestone", metadata.milestone);
322
- args.push(...attachArgs(attachments));
323
- return runGhWithAttachments(args, attachments);
324
- }
325
-
326
- // src/commands/github/issue/createIssue.ts
327
- var USAGE = "Usage: assist github issue create --title <title> --body <body> [-R <owner>/<repo>] [--type <name>] [--parent <issue>] [--project <number>] [--status <name>] [--label <name>] [--milestone <name>]";
328
- function preflight(options) {
329
+ // src/commands/github/issue/preflightCreateIssue.ts
330
+ function preflightCreateIssue(options) {
329
331
  try {
330
332
  return resolveCreateIssueMetadata(options);
331
333
  } catch (error) {
@@ -333,6 +335,9 @@ function preflight(options) {
333
335
  process.exit(1);
334
336
  }
335
337
  }
338
+
339
+ // src/commands/github/issue/createIssue.ts
340
+ var USAGE = "Usage: assist github issue create --title <title> --body <body> [-R <owner>/<repo>] [--type <name>] [--parent <issue>] [--project <number>] [--status <name>] [--label <name>] [--milestone <name>] [--screenshot '[Group/]Caption=path']";
336
341
  async function createIssue(options) {
337
342
  if (!options.title || !options.body) {
338
343
  console.error(USAGE);
@@ -344,13 +349,15 @@ async function createIssue(options) {
344
349
  title,
345
350
  body
346
351
  );
347
- const resolved = preflight(options);
352
+ const screenshots = parseScreenshotSpecs(options.screenshot);
353
+ const resolved = preflightCreateIssue(options);
348
354
  const decision = await reviewProposedIssue(
349
355
  title,
350
356
  body,
351
- issuePreviewMetadata(resolved)
357
+ issuePreviewMetadata(resolved),
358
+ screenshots
352
359
  );
353
- const attachments = decision?.screenshots ?? [];
360
+ const attachments = decision ? decision.screenshots ?? [] : screenshots;
354
361
  const output = runGhIssueCreate(
355
362
  title,
356
363
  appendScreenshots(body, attachments),
@@ -9,10 +9,10 @@ import {
9
9
  import {
10
10
  buildDoctorProbes,
11
11
  diagnoseLink
12
- } from "./chunk-SOES6K5E.js";
12
+ } from "./chunk-ODH4PKV4.js";
13
13
  import "./chunk-VABNWHSE.js";
14
14
  import "./chunk-DS2YJZZY.js";
15
- import "./chunk-BWUPBQ3H.js";
15
+ import "./chunk-GYM3LVZT.js";
16
16
  import {
17
17
  loadLinkSpecs
18
18
  } from "./chunk-J2PPCMCR.js";
@@ -30,7 +30,7 @@ import {
30
30
  detectPlatform
31
31
  } from "./chunk-E36L7ASL.js";
32
32
  import "./chunk-GIHVMELY.js";
33
- import "./chunk-LXLLU5Z6.js";
33
+ import "./chunk-XNN2K4S3.js";
34
34
  import "./chunk-5QM5VR3J.js";
35
35
  import "./chunk-UFSOFNXQ.js";
36
36
  import "./chunk-FLDRXYEM.js";
@@ -3,16 +3,16 @@ import {
3
3
  serializePrBody
4
4
  } from "./chunk-ENTJ2N5Y.js";
5
5
  import {
6
- parseScreenshotSpecs,
7
6
  renderWhy,
8
- stageScreenshots,
9
7
  validatePrContent
10
- } from "./chunk-MJ4RLQ5N.js";
8
+ } from "./chunk-Q4TGGE5L.js";
11
9
  import {
12
10
  appendScreenshots,
13
11
  attachArgs,
14
- runGhWithAttachments
15
- } from "./chunk-ONODYZ2H.js";
12
+ parseScreenshotSpecs,
13
+ runGhWithAttachments,
14
+ stageScreenshots
15
+ } from "./chunk-YDSX6BYY.js";
16
16
  import "./chunk-ABLDOQ4B.js";
17
17
  import {
18
18
  getCurrentPr
@@ -27,8 +27,7 @@ import "./chunk-QS2S63AF.js";
27
27
  import "./chunk-M6MAQU3Z.js";
28
28
  import "./chunk-3VDV7VHX.js";
29
29
  import "./chunk-B7B26YPF.js";
30
- import "./chunk-WG3TXZMV.js";
31
- import "./chunk-S6FVZYHH.js";
30
+ import "./chunk-DPCFT55U.js";
32
31
  import "./chunk-DISNKALJ.js";
33
32
  import "./chunk-GIHVMELY.js";
34
33
  import "./chunk-2EW62DM5.js";
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-TJGF3Z72.js";
18
18
  import {
19
19
  package_default
20
- } from "./chunk-LXLLU5Z6.js";
20
+ } from "./chunk-XNN2K4S3.js";
21
21
  import {
22
22
  adviceConfigHelp,
23
23
  askQuestionConfigHelp,
@@ -92,7 +92,7 @@ import { Command } from "commander";
92
92
  // src/commands/registerRootAction.ts
93
93
  function registerRootAction(program) {
94
94
  program.option("--no-open", "Do not open a browser on startup").action(
95
- async (options) => (await import("./web-2FBWHQMJ.js")).web({
95
+ async (options) => (await import("./web-3NKRW2FS.js")).web({
96
96
  port: "3100",
97
97
  open: options.open
98
98
  })
@@ -645,7 +645,7 @@ function registerShowCommands(cmd) {
645
645
 
646
646
  // src/commands/registerBacklog.ts
647
647
  function registerWebCommand(cmd) {
648
- cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(lazyAction(() => import("./web-TNILCTTL.js"), "web"));
648
+ cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(lazyAction(() => import("./web-IE3MFOE5.js"), "web"));
649
649
  }
650
650
  var registrars = [
651
651
  registerItemCommands,
@@ -675,7 +675,7 @@ function registerBacklog(program) {
675
675
  const { setBacklogDir } = await import("./getBacklogDir-FJLWXTYN.js");
676
676
  setBacklogDir(thisCommand.opts().dir);
677
677
  }).action(
678
- async (options) => (await import("./web-TNILCTTL.js")).web({ port: "3100", open: options.open })
678
+ async (options) => (await import("./web-IE3MFOE5.js")).web({ port: "3100", open: options.open })
679
679
  );
680
680
  for (const register of registrars) {
681
681
  register(cmd);
@@ -988,7 +988,7 @@ function registerExtension(program) {
988
988
  ).action(async (options) => {
989
989
  const { extension } = await import("./extension-YYRD5EM6.js");
990
990
  const { printExtensionUrl } = await import("./printExtensionUrl-IW2WTSNS.js");
991
- const { signExtension } = await import("./signExtension-2JTTOCVB.js");
991
+ const { signExtension } = await import("./signExtension-GQXLL6CC.js");
992
992
  if (options.url) return printExtensionUrl();
993
993
  return options.sign ? signExtension() : extension();
994
994
  });
@@ -1217,6 +1217,11 @@ function registerCommentIssue(issueCommand) {
1217
1217
  internalCommand(commentCommand, "/github update");
1218
1218
  }
1219
1219
 
1220
+ // src/commands/prs/collect.ts
1221
+ function collect5(value, previous) {
1222
+ return previous.concat([value]);
1223
+ }
1224
+
1220
1225
  // src/commands/github/issue/collectLabels.ts
1221
1226
  function collectLabels(value, previous) {
1222
1227
  const added = value.split(",").map((label) => label.trim()).filter((label) => label.length > 0);
@@ -1248,16 +1253,21 @@ function registerCreateIssue(issueCommand) {
1248
1253
  ).option(
1249
1254
  "--milestone <name>",
1250
1255
  "Open milestone of the target repo to put the new issue on, by title"
1256
+ ).option(
1257
+ "--screenshot <spec>",
1258
+ "Attach an image or video as '[Group/]Caption=path' under ## Screenshots (repeatable)",
1259
+ collect5,
1260
+ []
1251
1261
  ).addHelpText(
1252
1262
  "after",
1253
1263
  `
1254
1264
  There is no What/Why/How template: an issue reports a problem, and the target repo's own issue template is unknowable from here. Write the body as the repo's maintainers would expect.
1255
1265
  In an assist web session the title and body are previewed for approve/reject first (with inline comments); nothing is created until it is approved.
1256
- The reviewer may also drop or paste screenshots or video into the pane; on approval gh attaches them (gh ${minGhAttachVersion}+) under a ## Screenshots section of the issue body automatically, and on rejection they stay attached and reappear in the preview you re-propose \u2014 so never author that section yourself.
1266
+ When you already have an image or video to include (e.g. a file the user pointed at), pass it with --screenshot '[Group/]Caption=path' (once per file) rather than asking the reviewer to drop it in; a missing file or an extension gh cannot attach fails before anything is previewed. In a web session it arrives pre-staged in the preview, and the reviewer may also drop or paste more screenshots or video into the pane; on approval gh attaches them all (gh ${minGhAttachVersion}+) under a ## Screenshots section of the issue body automatically, and on rejection the reviewer's stay attached and reappear in the preview you re-propose. Outside a web session the --screenshot files are attached directly. Never author a ## Screenshots section yourself.
1257
1267
  --type, --parent, --project, --status, --label and --milestone are all resolved before the preview, so an unknown name, an unreadable parent, a missing project scope or --status without --project creates nothing.
1258
1268
  A bare --parent number is read against --repo, or the current repo; a parent in another repository is allowed.
1259
1269
  The project scope is needed for --project: gh auth refresh -h github.com -s project`
1260
- ).action(lazyAction(() => import("./createIssue-5KNMMJVA.js"), "createIssue"));
1270
+ ).action(lazyAction(() => import("./createIssue-ZFRBIC7A.js"), "createIssue"));
1261
1271
  internalCommand(createCommand, "/github create");
1262
1272
  }
1263
1273
 
@@ -1729,7 +1739,7 @@ ${prConcisenessGuidance}
1729
1739
  }
1730
1740
 
1731
1741
  // src/commands/registerPrsEdit.ts
1732
- function collect5(value, previous) {
1742
+ function collect6(value, previous) {
1733
1743
  return previous.concat([value]);
1734
1744
  }
1735
1745
  function registerPrsEdit(prsCommand) {
@@ -1738,14 +1748,14 @@ function registerPrsEdit(prsCommand) {
1738
1748
  ).option("-t, --title <title>", "New title for the pull request").option("--what <what>", "Replace the ## What section").option("--why <why>", "Replace the ## Why section").option("--how <how>", "Replace the ## How section").option(
1739
1749
  "--resolves <ref>",
1740
1750
  "Jira issue key or GitHub issue reference resolved by this PR, appended to ## Why (repeatable)",
1741
- collect5,
1751
+ collect6,
1742
1752
  []
1743
1753
  ).option(
1744
1754
  "--screenshot <spec>",
1745
1755
  "Attach a screenshot as '[Group/]Caption=path', replacing the ## Screenshots section (repeatable)",
1746
- collect5,
1756
+ collect6,
1747
1757
  []
1748
- ).addHelpText("after", () => editHelpText()).action(lazyAction(() => import("./edit-5QLQ3TLJ.js"), "edit"));
1758
+ ).addHelpText("after", () => editHelpText()).action(lazyAction(() => import("./edit-2ZO7TOPW.js"), "edit"));
1749
1759
  internalCommand(editCommand, "agents revising their pull request");
1750
1760
  }
1751
1761
 
@@ -1762,22 +1772,17 @@ async function preloadHelpText() {
1762
1772
  await Promise.all(preloaders.map((preload) => preload()));
1763
1773
  }
1764
1774
 
1765
- // src/commands/prs/collect.ts
1766
- function collect6(value, previous) {
1767
- return previous.concat([value]);
1768
- }
1769
-
1770
1775
  // src/commands/prs/addRaiseSectionOptions.ts
1771
1776
  function addRaiseSectionOptions(command) {
1772
1777
  return command.option("-t, --title <title>", "Title for the pull request").option("--what <what>", "What the change does (## What section)").option("--why <why>", "Why the change is needed (## Why section)").option("--how <how>", "How the change works (optional ## How section)").option(
1773
1778
  "--resolves <ref>",
1774
1779
  "Jira issue key or GitHub issue reference resolved by this PR, appended to ## Why (repeatable)",
1775
- collect6,
1780
+ collect5,
1776
1781
  []
1777
1782
  ).option(
1778
1783
  "--screenshot <spec>",
1779
1784
  "Attach a screenshot as '[Group/]Caption=path' under ## Screenshots (repeatable)",
1780
- collect6,
1785
+ collect5,
1781
1786
  []
1782
1787
  );
1783
1788
  }
@@ -1794,21 +1799,21 @@ function registerPrsRaise(prsCommand) {
1794
1799
  ).option("-B, --base <branch>", "Branch into which the pull request merges").option("-H, --head <branch>", "Branch that contains the commits").option("-d, --draft", "Mark the pull request as a draft").option(
1795
1800
  "--no-draft",
1796
1801
  "Create a ready-for-review pull request, overriding prs.draft"
1797
- ).option("-w, --web", "Open the browser to create the pull request").option("-l, --label <label>", "Add a label (repeatable)", collect6, []).option(
1802
+ ).option("-w, --web", "Open the browser to create the pull request").option("-l, --label <label>", "Add a label (repeatable)", collect5, []).option(
1798
1803
  "-a, --assignee <login>",
1799
1804
  "Assign a person by login (repeatable)",
1800
- collect6,
1805
+ collect5,
1801
1806
  []
1802
1807
  ).option(
1803
1808
  "-r, --reviewer <handle>",
1804
1809
  "Request a review (repeatable)",
1805
- collect6,
1810
+ collect5,
1806
1811
  []
1807
1812
  ).option("-m, --milestone <name>", "Add the pull request to a milestone");
1808
1813
  lazyHelpText(
1809
1814
  raiseCommand,
1810
1815
  async () => (await import("./raiseHelpText-IDZI3UAC.js")).raiseHelpText
1811
- ).action(lazyAction(() => import("./raise-O7DVXVP6.js"), "raise"));
1816
+ ).action(lazyAction(() => import("./raise-WQ2WINT4.js"), "raise"));
1812
1817
  internalCommand(raiseCommand, "/pr");
1813
1818
  configHelp(raiseCommand, prsRaiseConfigHelp);
1814
1819
  }
@@ -2660,7 +2665,7 @@ function registerDaemon(program) {
2660
2665
  const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
2661
2666
  cmd.command("run").description(
2662
2667
  "Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
2663
- ).action(lazyAction(() => import("./runDaemon-LVDERT3K.js"), "runDaemon"));
2668
+ ).action(lazyAction(() => import("./runDaemon-GHG5TRPX.js"), "runDaemon"));
2664
2669
  cmd.command("status").description(
2665
2670
  "Show sessions daemon status, live sessions, and any stray daemon processes"
2666
2671
  ).action(lazyAction(() => import("./daemonStatus-EAZHBC6O.js"), "daemonStatus"));
@@ -2684,7 +2689,7 @@ function registerDiagnoseCommands(nodes, calledBy5) {
2684
2689
  nodes.command("doctor [name]").description(
2685
2690
  "Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
2686
2691
  ).option("--json", "Output as JSON").action(
2687
- async (name, _options, command) => (await import("./doctorNodes-V45AR2P2.js")).doctorNodes(
2692
+ async (name, _options, command) => (await import("./doctorNodes-Y5L32TWX.js")).doctorNodes(
2688
2693
  name,
2689
2694
  command.optsWithGlobals()
2690
2695
  )
@@ -2714,14 +2719,14 @@ function registerPeerActionCommands(nodes, calledBy5) {
2714
2719
  internalCommand(
2715
2720
  nodes.command("restart <name>").description(
2716
2721
  "Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
2717
- ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-N6OZKO6D.js"), "restartNode")),
2722
+ ).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-CAPDQK23.js"), "restartNode")),
2718
2723
  calledBy5
2719
2724
  );
2720
2725
  internalCommand(
2721
2726
  nodes.command("update <name>").description(
2722
2727
  "Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
2723
2728
  ).action(
2724
- async (name) => (await import("./updateNode-DWMJM2ML.js")).updateNode(name)
2729
+ async (name) => (await import("./updateNode-RMHEOL4X.js")).updateNode(name)
2725
2730
  ),
2726
2731
  calledBy5
2727
2732
  );
@@ -2784,7 +2789,7 @@ function registerSetStatusCommand(cmd) {
2784
2789
  // src/commands/sessions/registerSessionsWeb.ts
2785
2790
  function registerSessionsWeb(cmd) {
2786
2791
  const webCmd = cmd.command("web").description("Start the sessions web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(
2787
- async (options, command) => (await import("./web-2FBWHQMJ.js")).web({
2792
+ async (options, command) => (await import("./web-3NKRW2FS.js")).web({
2788
2793
  ...options,
2789
2794
  open: command.optsWithGlobals().open
2790
2795
  })
@@ -2799,7 +2804,7 @@ function registerSessionsWeb(cmd) {
2799
2804
  // src/commands/sessions/registerSessions.ts
2800
2805
  function registerSessions(program) {
2801
2806
  const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
2802
- async (_options, command) => (await import("./web-2FBWHQMJ.js")).web({
2807
+ async (_options, command) => (await import("./web-3NKRW2FS.js")).web({
2803
2808
  port: "3100",
2804
2809
  open: command.optsWithGlobals().open
2805
2810
  })
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-KZX6UIKC.js";
4
4
  import {
5
5
  buildPrBody,
6
- parseScreenshotSpecs,
7
- stageScreenshots,
8
6
  validatePrContent
9
- } from "./chunk-MJ4RLQ5N.js";
7
+ } from "./chunk-Q4TGGE5L.js";
10
8
  import {
11
9
  appendScreenshots,
12
10
  attachArgs,
13
- runGhWithAttachments
14
- } from "./chunk-ONODYZ2H.js";
11
+ parseScreenshotSpecs,
12
+ runGhWithAttachments,
13
+ stageScreenshots
14
+ } from "./chunk-YDSX6BYY.js";
15
15
  import "./chunk-ABLDOQ4B.js";
16
16
  import {
17
17
  findCurrentPr,
@@ -39,8 +39,7 @@ import "./chunk-M6MAQU3Z.js";
39
39
  import "./chunk-3VDV7VHX.js";
40
40
  import "./chunk-B7B26YPF.js";
41
41
  import "./chunk-XTQSKMFH.js";
42
- import "./chunk-WG3TXZMV.js";
43
- import "./chunk-S6FVZYHH.js";
42
+ import "./chunk-DPCFT55U.js";
44
43
  import {
45
44
  requestAssistSession
46
45
  } from "./chunk-F4XCHVD7.js";
@@ -2,20 +2,20 @@ import {
2
2
  linkStatus,
3
3
  postToPeer,
4
4
  startPeerAction
5
- } from "./chunk-UY3SFWNC.js";
6
- import "./chunk-CXJX4ZT5.js";
7
- import "./chunk-SOES6K5E.js";
5
+ } from "./chunk-PEOCY7Q3.js";
6
+ import "./chunk-7GGVRB3G.js";
7
+ import "./chunk-ODH4PKV4.js";
8
8
  import "./chunk-VABNWHSE.js";
9
9
  import "./chunk-DS2YJZZY.js";
10
10
  import "./chunk-4HKB2TAG.js";
11
- import "./chunk-BWUPBQ3H.js";
11
+ import "./chunk-GYM3LVZT.js";
12
12
  import "./chunk-J2PPCMCR.js";
13
13
  import "./chunk-5CNDLMYO.js";
14
14
  import "./chunk-B7VOTF5Q.js";
15
15
  import "./chunk-E36L7ASL.js";
16
16
  import "./chunk-5H7EHZ3J.js";
17
17
  import "./chunk-GIHVMELY.js";
18
- import "./chunk-LXLLU5Z6.js";
18
+ import "./chunk-XNN2K4S3.js";
19
19
  import "./chunk-UFSOFNXQ.js";
20
20
  import "./chunk-FLDRXYEM.js";
21
21
  import "./chunk-GRXFWFGP.js";
@@ -128,7 +128,7 @@ import {
128
128
  isHello,
129
129
  linkVersionCheck,
130
130
  negotiateProtocol
131
- } from "./chunk-BWUPBQ3H.js";
131
+ } from "./chunk-GYM3LVZT.js";
132
132
  import {
133
133
  loadLinkSpecs
134
134
  } from "./chunk-J2PPCMCR.js";
@@ -267,7 +267,7 @@ import {
267
267
  import "./chunk-APZ6ZTDA.js";
268
268
  import "./chunk-BFQSGIN6.js";
269
269
  import "./chunk-D7UZLH36.js";
270
- import "./chunk-LXLLU5Z6.js";
270
+ import "./chunk-XNN2K4S3.js";
271
271
  import "./chunk-EW2ZM2PC.js";
272
272
  import "./chunk-MYH4MQX2.js";
273
273
  import {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-W7TRZLEM.js";
10
10
  import {
11
11
  package_default
12
- } from "./chunk-LXLLU5Z6.js";
12
+ } from "./chunk-XNN2K4S3.js";
13
13
 
14
14
  // src/commands/extension/signExtension.ts
15
15
  import { rm as rm2 } from "fs/promises";
@@ -2,13 +2,13 @@ import {
2
2
  linkStatus,
3
3
  postToPeer,
4
4
  startPeerAction
5
- } from "./chunk-UY3SFWNC.js";
6
- import "./chunk-CXJX4ZT5.js";
7
- import "./chunk-SOES6K5E.js";
5
+ } from "./chunk-PEOCY7Q3.js";
6
+ import "./chunk-7GGVRB3G.js";
7
+ import "./chunk-ODH4PKV4.js";
8
8
  import "./chunk-VABNWHSE.js";
9
9
  import "./chunk-DS2YJZZY.js";
10
10
  import "./chunk-4HKB2TAG.js";
11
- import "./chunk-BWUPBQ3H.js";
11
+ import "./chunk-GYM3LVZT.js";
12
12
  import "./chunk-J2PPCMCR.js";
13
13
  import "./chunk-5CNDLMYO.js";
14
14
  import "./chunk-B7VOTF5Q.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-A7ONLVZD.js";
20
20
  import "./chunk-GIHVMELY.js";
21
21
  import "./chunk-2EW62DM5.js";
22
- import "./chunk-LXLLU5Z6.js";
22
+ import "./chunk-XNN2K4S3.js";
23
23
  import "./chunk-UFSOFNXQ.js";
24
24
  import "./chunk-FLDRXYEM.js";
25
25
  import "./chunk-GRXFWFGP.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  web
3
- } from "./chunk-5JNKJSKT.js";
3
+ } from "./chunk-GIFMD6SW.js";
4
4
  import "./chunk-SURCYYQ6.js";
5
5
  import "./chunk-JNCFHWBK.js";
6
6
  import "./chunk-JM57BCD6.js";
7
- import "./chunk-CXJX4ZT5.js";
8
- import "./chunk-SOES6K5E.js";
7
+ import "./chunk-7GGVRB3G.js";
8
+ import "./chunk-ODH4PKV4.js";
9
9
  import "./chunk-VABNWHSE.js";
10
10
  import "./chunk-DS2YJZZY.js";
11
11
  import "./chunk-2RUGZQUD.js";
12
12
  import "./chunk-PDXOHW2M.js";
13
13
  import "./chunk-4HKB2TAG.js";
14
- import "./chunk-BWUPBQ3H.js";
14
+ import "./chunk-GYM3LVZT.js";
15
15
  import "./chunk-J2PPCMCR.js";
16
16
  import "./chunk-5CNDLMYO.js";
17
17
  import "./chunk-B7VOTF5Q.js";
@@ -33,7 +33,6 @@ import "./chunk-W5FPQALS.js";
33
33
  import "./chunk-I3TEQBTO.js";
34
34
  import "./chunk-ADLCDG2V.js";
35
35
  import "./chunk-XTQSKMFH.js";
36
- import "./chunk-WG3TXZMV.js";
37
36
  import "./chunk-NGTSPXSJ.js";
38
37
  import "./chunk-YZ5KJFYU.js";
39
38
  import "./chunk-LTETA6J4.js";
@@ -45,7 +44,7 @@ import "./chunk-FYYZG4GY.js";
45
44
  import "./chunk-WYNRHOR7.js";
46
45
  import "./chunk-PIDKNOD6.js";
47
46
  import "./chunk-YQ3CNWB3.js";
48
- import "./chunk-S6FVZYHH.js";
47
+ import "./chunk-DPCFT55U.js";
49
48
  import "./chunk-SDMBTSYP.js";
50
49
  import "./chunk-3NK55YVZ.js";
51
50
  import "./chunk-4BVUY25U.js";
@@ -139,7 +138,7 @@ import "./chunk-RW6YKTIM.js";
139
138
  import "./chunk-APZ6ZTDA.js";
140
139
  import "./chunk-BFQSGIN6.js";
141
140
  import "./chunk-D7UZLH36.js";
142
- import "./chunk-LXLLU5Z6.js";
141
+ import "./chunk-XNN2K4S3.js";
143
142
  import "./chunk-YUV5QBHU.js";
144
143
  import "./chunk-YVL3NXEB.js";
145
144
  import "./chunk-UEWARAPX.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  web
3
- } from "./chunk-5JNKJSKT.js";
3
+ } from "./chunk-GIFMD6SW.js";
4
4
  import "./chunk-SURCYYQ6.js";
5
5
  import "./chunk-JNCFHWBK.js";
6
6
  import "./chunk-JM57BCD6.js";
7
- import "./chunk-CXJX4ZT5.js";
8
- import "./chunk-SOES6K5E.js";
7
+ import "./chunk-7GGVRB3G.js";
8
+ import "./chunk-ODH4PKV4.js";
9
9
  import "./chunk-VABNWHSE.js";
10
10
  import "./chunk-DS2YJZZY.js";
11
11
  import "./chunk-2RUGZQUD.js";
12
12
  import "./chunk-PDXOHW2M.js";
13
13
  import "./chunk-4HKB2TAG.js";
14
- import "./chunk-BWUPBQ3H.js";
14
+ import "./chunk-GYM3LVZT.js";
15
15
  import "./chunk-J2PPCMCR.js";
16
16
  import "./chunk-5CNDLMYO.js";
17
17
  import "./chunk-B7VOTF5Q.js";
@@ -33,7 +33,6 @@ import "./chunk-W5FPQALS.js";
33
33
  import "./chunk-I3TEQBTO.js";
34
34
  import "./chunk-ADLCDG2V.js";
35
35
  import "./chunk-XTQSKMFH.js";
36
- import "./chunk-WG3TXZMV.js";
37
36
  import "./chunk-NGTSPXSJ.js";
38
37
  import "./chunk-YZ5KJFYU.js";
39
38
  import "./chunk-LTETA6J4.js";
@@ -45,7 +44,7 @@ import "./chunk-FYYZG4GY.js";
45
44
  import "./chunk-WYNRHOR7.js";
46
45
  import "./chunk-PIDKNOD6.js";
47
46
  import "./chunk-YQ3CNWB3.js";
48
- import "./chunk-S6FVZYHH.js";
47
+ import "./chunk-DPCFT55U.js";
49
48
  import "./chunk-SDMBTSYP.js";
50
49
  import "./chunk-3NK55YVZ.js";
51
50
  import "./chunk-4BVUY25U.js";
@@ -139,7 +138,7 @@ import "./chunk-RW6YKTIM.js";
139
138
  import "./chunk-APZ6ZTDA.js";
140
139
  import "./chunk-BFQSGIN6.js";
141
140
  import "./chunk-D7UZLH36.js";
142
- import "./chunk-LXLLU5Z6.js";
141
+ import "./chunk-XNN2K4S3.js";
143
142
  import "./chunk-YUV5QBHU.js";
144
143
  import "./chunk-YVL3NXEB.js";
145
144
  import "./chunk-UEWARAPX.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.1185.5",
3
+ "version": "0.1187.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1,16 +0,0 @@
1
- // src/shared/stagedAttachmentsDir.ts
2
- import { homedir } from "os";
3
- import { join } from "path";
4
- var stagedAttachmentsDir = join(homedir(), ".assist", "attachments");
5
-
6
- // src/shared/isStagedAttachmentPath.ts
7
- import { isAbsolute, relative, resolve, sep } from "path";
8
- function isStagedAttachmentPath(path) {
9
- const rel = relative(stagedAttachmentsDir, resolve(path));
10
- return rel !== "" && rel !== ".." && !rel.startsWith(`..${sep}`) && !isAbsolute(rel);
11
- }
12
-
13
- export {
14
- stagedAttachmentsDir,
15
- isStagedAttachmentPath
16
- };