@staff0rd/assist 0.1160.0 → 0.1161.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 (127) hide show
  1. package/agent/advice/ask-check.md +1 -1
  2. package/agent/advice/ask-question.md +1 -1
  3. package/agent/commands/add-rule.md +2 -2
  4. package/agent/commands/bug.md +1 -1
  5. package/agent/commands/design.md +1 -0
  6. package/agent/commands/draft.md +1 -1
  7. package/agent/commands/github.md +2 -0
  8. package/agent/commands/pr.md +2 -0
  9. package/agent/commands/refine.md +1 -1
  10. package/agent/commands/review-config.md +2 -0
  11. package/agent/commands/review-high-level.md +1 -1
  12. package/dist/.build-files +107 -106
  13. package/dist/{addActivity-TNE2FRPB.js → addActivity-FI4P6OTC.js} +3 -3
  14. package/dist/{addPhase-V4Z636NN.js → addPhase-TAU5TNIH.js} +8 -6
  15. package/dist/{advise-RTJV7NU2.js → advise-P6UNZDSJ.js} +5 -4
  16. package/dist/ask-F6E63RQQ.js +50 -0
  17. package/dist/{askCheck-3JCSRRAQ.js → askCheck-Y5ZASXYZ.js} +13 -12
  18. package/dist/{askDesign-Q4HBBLJD.js → askDesign-TZKXMGMV.js} +8 -7
  19. package/dist/{askQuestion-QXVDXZZY.js → askQuestion-PDKTLFTV.js} +6 -4
  20. package/dist/{branch-LSX2L22U.js → branch-6T6R4B3N.js} +4 -4
  21. package/dist/built-version +1 -1
  22. package/dist/{chunk-C4247LMI.js → chunk-26N4PV7Z.js} +1 -1
  23. package/dist/chunk-3VDV7VHX.js +6 -0
  24. package/dist/{chunk-OTYBOGWB.js → chunk-4X2D3DCV.js} +1 -1
  25. package/dist/{chunk-4X2UUOFH.js → chunk-627WPDA6.js} +1 -1
  26. package/dist/{chunk-CKJ4SDVJ.js → chunk-6GUFWQ3N.js} +1 -1
  27. package/dist/{chunk-TESRDGY7.js → chunk-6JWOFHSW.js} +1 -1
  28. package/dist/{chunk-C6AKA3GY.js → chunk-74UYKNXC.js} +2 -2
  29. package/dist/{chunk-7I2Q27D6.js → chunk-77ZKOKNF.js} +7 -7
  30. package/dist/{chunk-Q4CX4OJJ.js → chunk-7KTG4VNA.js} +1 -1
  31. package/dist/{chunk-I3XPML6O.js → chunk-7NRDYDQO.js} +6 -6
  32. package/dist/{chunk-6ZECLGYV.js → chunk-7VK2KF6L.js} +8 -5
  33. package/dist/{chunk-VEMNENJ2.js → chunk-AGBHU2F2.js} +1 -1
  34. package/dist/{chunk-WQF27PEJ.js → chunk-ASM6OJRK.js} +1 -1
  35. package/dist/{chunk-S55TRXFP.js → chunk-BEZEB6OF.js} +2 -2
  36. package/dist/{chunk-L4PVKBXS.js → chunk-BP6SFWR6.js} +1 -1
  37. package/dist/{chunk-5THMDW42.js → chunk-CMQE2SXC.js} +1 -1
  38. package/dist/{chunk-MSPCQ5L7.js → chunk-CVSVONYT.js} +1 -1
  39. package/dist/{chunk-K5K7LATN.js → chunk-DJ5UUPZR.js} +1 -1
  40. package/dist/{chunk-5AJWUYA3.js → chunk-EIA6AM33.js} +1 -1
  41. package/dist/{chunk-MOQ2IEPI.js → chunk-EXGBNBBJ.js} +1 -1
  42. package/dist/{chunk-EOALZG4Y.js → chunk-F5AIU5Q3.js} +1 -1
  43. package/dist/{chunk-7MIAK3SD.js → chunk-FJQSHCU3.js} +2 -2
  44. package/dist/{chunk-OLFUSXO3.js → chunk-GZT3NLC6.js} +1 -1
  45. package/dist/{chunk-L3RJER2C.js → chunk-HEP6K2DT.js} +1 -1
  46. package/dist/{chunk-D2337HWD.js → chunk-HN5RRUW2.js} +1 -1
  47. package/dist/{chunk-SUO2246Y.js → chunk-I6B6W6WT.js} +1 -1
  48. package/dist/{chunk-O7X46AAU.js → chunk-ILRYEIH3.js} +1 -1
  49. package/dist/{chunk-MG4IJB47.js → chunk-J265JKFW.js} +3 -3
  50. package/dist/{chunk-25PQYD5B.js → chunk-JZ2TTDJ5.js} +9 -3
  51. package/dist/{chunk-SQKNRK6D.js → chunk-LPBBNHBJ.js} +1 -1
  52. package/dist/{chunk-LO4K3OUQ.js → chunk-LVDWS4SI.js} +1 -1
  53. package/dist/{chunk-JR3LZHBZ.js → chunk-LX6IOH5J.js} +1 -1
  54. package/dist/{chunk-GMXZUWBU.js → chunk-NA5TFFHL.js} +1 -1
  55. package/dist/{chunk-K4TQJQWA.js → chunk-OQ6AYXHB.js} +1 -1
  56. package/dist/{chunk-K5MYLLFM.js → chunk-OX4K4FAY.js} +2 -2
  57. package/dist/{chunk-JVJOXBO2.js → chunk-QEFHPIMP.js} +3 -3
  58. package/dist/{chunk-54QTHCXV.js → chunk-QRTB7PVR.js} +7 -1
  59. package/dist/{chunk-VWVLMTH2.js → chunk-QS2S63AF.js} +4 -0
  60. package/dist/{chunk-VYOVPMBH.js → chunk-QUWL7IBN.js} +1 -1
  61. package/dist/{chunk-ERAGZGT5.js → chunk-RMGPNDEN.js} +2 -0
  62. package/dist/chunk-TQ5KKZ6G.js +8 -0
  63. package/dist/{chunk-K4T24UGW.js → chunk-UE5PIMY2.js} +1 -1
  64. package/dist/{chunk-LYQWAGLE.js → chunk-UM3CASEM.js} +1 -1
  65. package/dist/{chunk-YHZUTP5K.js → chunk-WQ3ABZ4N.js} +1 -1
  66. package/dist/{chunk-QSUS3RLF.js → chunk-XTD6227R.js} +1 -1
  67. package/dist/{chunk-XDQFHWGO.js → chunk-YZSTCQUE.js} +4 -4
  68. package/dist/{chunk-C5YM3YO4.js → chunk-Z4LG3KDK.js} +35 -1
  69. package/dist/{cliHook-XFH6QLH7.js → cliHook-E5HX4RV7.js} +7 -6
  70. package/dist/{cliHookCheck-QXSRKVUJ.js → cliHookCheck-KQDTKJBA.js} +3 -3
  71. package/dist/{codexHook-KGR76TSJ.js → codexHook-EMML4X3I.js} +9 -8
  72. package/dist/commands/extension/extension/updates.json +2 -2
  73. package/dist/commands/sessions/web/bundle.js +1 -1
  74. package/dist/{comment-2T2VC3NL.js → comment-AOB7KRXL.js} +7 -4
  75. package/dist/{commentIssue-KOQ5PSTG.js → commentIssue-6G3N2E4B.js} +6 -3
  76. package/dist/{commit-DXTHQVIK.js → commit-KOTH6G6L.js} +4 -4
  77. package/dist/{createIssue-EE5W4LLB.js → createIssue-IQJL3QO4.js} +5 -2
  78. package/dist/{doctorNodes-HBQW5L3M.js → doctorNodes-5EW6QQ5D.js} +3 -3
  79. package/dist/{done-MQBZZSGP.js → done-G57I4IXY.js} +5 -5
  80. package/dist/{drainDaemon-T2X2H2Z5.js → drainDaemon-7V6RMDRT.js} +1 -1
  81. package/dist/{edit-OBXC5Z6J.js → edit-XLS74GEX.js} +5 -2
  82. package/dist/{editHook-PIDVOHE3.js → editHook-HDXB5IRZ.js} +7 -6
  83. package/dist/{editIssue-CR4SFOIS.js → editIssue-53DIWJIJ.js} +7 -4
  84. package/dist/{editIssueComment-SVTPJ6CU.js → editIssueComment-HCEYRKWT.js} +6 -3
  85. package/dist/{fixConflict-2DB66U4A.js → fixConflict-YPNQ3Z5O.js} +5 -5
  86. package/dist/{importBacklog-FOGUOAIJ.js → importBacklog-65MOC2KY.js} +2 -1
  87. package/dist/index.js +71 -71
  88. package/dist/{launchMode-4TWOI76X.js → launchMode-3PLZA4EV.js} +14 -14
  89. package/dist/{list-QFKV7MEU.js → list-EXCFXUUV.js} +6 -6
  90. package/dist/{merge-MVMNYPO2.js → merge-5FURAXPB.js} +3 -2
  91. package/dist/{next-TJGY3KDH.js → next-MELQDUE4.js} +13 -13
  92. package/dist/{piHook-7QDAYTIX.js → piHook-SXJBRASG.js} +7 -6
  93. package/dist/{postSlackMessage-MH6BMLGC.js → postSlackMessage-KXS4R7Y6.js} +6 -3
  94. package/dist/{propose-JF27BF42.js → propose-37TNXC2B.js} +11 -9
  95. package/dist/{raise-5YMRZJLP.js → raise-KEPF3WOY.js} +5 -2
  96. package/dist/readBodyArgument-WHNTOBUE.js +8 -0
  97. package/dist/{readTime-23CA6JVM.js → readTime-CWEUMPXR.js} +3 -2
  98. package/dist/{refine-DPA5BYQI.js → refine-VY42GT5E.js} +15 -15
  99. package/dist/{reply-RF5XWST2.js → reply-6MCVVNZK.js} +6 -3
  100. package/dist/{restartNode-I3C4XEWU.js → restartNode-VNJAREDR.js} +5 -5
  101. package/dist/{review-GXVALUWY.js → review-S5JIPTTJ.js} +11 -9
  102. package/dist/{reviewPrComments-CICNPWVX.js → reviewPrComments-PLRIHXWC.js} +5 -5
  103. package/dist/{rewindPhase-DDTS4N6S.js → rewindPhase-MKAAJZ3B.js} +9 -9
  104. package/dist/{rulesAdd-2PHHDPJ3.js → rulesAdd-T62MTCFM.js} +6 -3
  105. package/dist/{run-6AHR53L7.js → run-4VCFD6GC.js} +11 -11
  106. package/dist/{run-BDQCSTCF.js → run-IH2SPTOS.js} +11 -11
  107. package/dist/{runDaemon-FE3XZEUT.js → runDaemon-4WJQINVB.js} +71 -33
  108. package/dist/{runExtract-43B4PDWU.js → runExtract-4IIID534.js} +5 -2
  109. package/dist/{runRefine-ZNMBCAAN.js → runRefine-SM6EHRUB.js} +15 -15
  110. package/dist/{scan-NKKHHGL2.js → scan-Q2LQ6C2H.js} +3 -3
  111. package/dist/{schemaConfirm-6NZ3JBDT.js → schemaConfirm-DVNHG5CE.js} +3 -3
  112. package/dist/{schemaUnlock-N53NXNUF.js → schemaUnlock-AQAEVGUD.js} +3 -3
  113. package/dist/{search-X52HVMA3.js → search-PFHCJUFA.js} +6 -6
  114. package/dist/{show-N2KOJIBG.js → show-EQCAKDSF.js} +4 -4
  115. package/dist/{show-PR4OSVLY.js → show-NHSD46FE.js} +7 -6
  116. package/dist/{signExtension-WUVAF67T.js → signExtension-VIFT2IDU.js} +1 -1
  117. package/dist/{slack-4YK2TTH5.js → slack-SMNDERHS.js} +6 -3
  118. package/dist/{updateNode-PZMQ2BSE.js → updateNode-GUT5LN56.js} +5 -5
  119. package/dist/{updatePlan-IOSLPULZ.js → updatePlan-V57DKNB5.js} +11 -9
  120. package/dist/{web-H4GKNDJW.js → web-AQVFE5HY.js} +17 -17
  121. package/dist/{web-T44LOGKB.js → web-ZJ3S6UPP.js} +17 -17
  122. package/dist/{wontfix-62MHC5KB.js → wontfix-ASUD2OQM.js} +6 -3
  123. package/package.json +1 -1
  124. package/dist/ask-7JXPMU2X.js +0 -82
  125. package/dist/chunk-6MNX5ZMQ.js +0 -6
  126. package/dist/readBodyArgument-NZG3GJMF.js +0 -7
  127. package/dist/{chunk-7M657DAU.js → chunk-AFGBWFOC.js} +3 -3
@@ -13,7 +13,7 @@ import {
13
13
  isApprovedRead,
14
14
  resolvePermission,
15
15
  splitCompound
16
- } from "./chunk-L4PVKBXS.js";
16
+ } from "./chunk-BP6SFWR6.js";
17
17
  import {
18
18
  DOCS_LOCK_REASON,
19
19
  SCHEMA_LOCK_REASON,
@@ -23,13 +23,19 @@ import {
23
23
  isSchemaPath,
24
24
  isSchemaRelativePath,
25
25
  mentionsDocsPath
26
- } from "./chunk-5THMDW42.js";
26
+ } from "./chunk-CMQE2SXC.js";
27
27
  import {
28
28
  isLiveDaemonSession
29
29
  } from "./chunk-C5U44UI7.js";
30
+ import {
31
+ previewWaitInstruction
32
+ } from "./chunk-TQ5KKZ6G.js";
30
33
  import {
31
34
  askQuestionEnabled
32
35
  } from "./chunk-IBPSXDUB.js";
36
+ import {
37
+ sdkAgentEnv
38
+ } from "./chunk-VXIZ5DUA.js";
33
39
  import {
34
40
  getProjectRoot,
35
41
  loadConfig
@@ -52,7 +58,7 @@ async function findAskQuestionDeny(questionsJson) {
52
58
  return void 0;
53
59
  return {
54
60
  permissionDecision: "deny",
55
- permissionDecisionReason: `Do not use AskUserQuestion in assist sessions: the user answers from the web preview pane, which cannot drive the terminal prompt. Write the same input as JSON to a scratch file and run \`assist ask-question --json - < <file>\` as a background task, doing no other work until it returns. It prints the same answer text AskUserQuestion would. The input to write:
61
+ permissionDecisionReason: `Do not use AskUserQuestion in assist sessions: the user answers from the web preview pane, which cannot drive the terminal prompt. Write the same input as JSON to a scratch file and run \`assist ask-question --json - < <file>\` ${previewWaitInstruction(process.env[sdkAgentEnv] === "1")}. It prints the same answer text AskUserQuestion would. The input to write:
56
62
  ${questionsJson}`
57
63
  };
58
64
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REVIEW_PHASE_NAME
3
- } from "./chunk-MG4IJB47.js";
3
+ } from "./chunk-J265JKFW.js";
4
4
 
5
5
  // src/commands/backlog/authoredPhases.ts
6
6
  function authoredPhases(plan) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MODUPHYS.js";
4
4
  import {
5
5
  package_default
6
- } from "./chunk-4X2UUOFH.js";
6
+ } from "./chunk-627WPDA6.js";
7
7
  import {
8
8
  loadConfig
9
9
  } from "./chunk-KGFZYUE2.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildDoctorProbes,
3
3
  diagnoseLink
4
- } from "./chunk-OLFUSXO3.js";
4
+ } from "./chunk-GZT3NLC6.js";
5
5
  import {
6
6
  queryNodes
7
7
  } from "./chunk-OD7CMDGZ.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-FPWL4VRC.js";
7
7
  import {
8
8
  harnessAdapter
9
- } from "./chunk-7M657DAU.js";
9
+ } from "./chunk-AFGBWFOC.js";
10
10
  import {
11
11
  legacyDefaultHarness
12
12
  } from "./chunk-DUNO7WBT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readStdinBuffer
3
- } from "./chunk-54QTHCXV.js";
3
+ } from "./chunk-QRTB7PVR.js";
4
4
 
5
5
  // src/commands/backlog/readJsonPayload.ts
6
6
  import { readFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveReviewPhase
3
- } from "./chunk-MSPCQ5L7.js";
3
+ } from "./chunk-CVSVONYT.js";
4
4
  import {
5
5
  resolvePlan
6
- } from "./chunk-L3RJER2C.js";
6
+ } from "./chunk-HEP6K2DT.js";
7
7
 
8
8
  // src/commands/backlog/resolveRewindPlan.ts
9
9
  function resolveRewindPlan(item) {
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-SB4BG7PH.js";
4
4
  import {
5
5
  run
6
- } from "./chunk-I3XPML6O.js";
6
+ } from "./chunk-7NRDYDQO.js";
7
7
  import {
8
8
  isLockedByOther
9
- } from "./chunk-5AJWUYA3.js";
9
+ } from "./chunk-EIA6AM33.js";
10
10
  import {
11
11
  isBlocked,
12
12
  typeLabel
13
- } from "./chunk-O7X46AAU.js";
13
+ } from "./chunk-ILRYEIH3.js";
14
14
  import {
15
15
  loadBacklog
16
16
  } from "./chunk-PYZUB3JT.js";
@@ -1,10 +1,16 @@
1
+ import {
2
+ capturedStdin
3
+ } from "./chunk-3VDV7VHX.js";
4
+
1
5
  // src/commands/backlog/import/readStdinBuffer.ts
2
6
  async function readStdinBuffer() {
3
7
  const chunks = [];
4
8
  for await (const chunk of process.stdin) {
5
9
  chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
6
10
  }
7
- return Buffer.concat(chunks);
11
+ const buffer = Buffer.concat(chunks);
12
+ capturedStdin.text = buffer.toString("utf8");
13
+ return buffer;
8
14
  }
9
15
 
10
16
  export {
@@ -1,6 +1,9 @@
1
1
  // src/commands/sessions/shared/supersededPreviewMessage.ts
2
2
  var supersededPreviewMessage = "Superseded by a newer preview \u2014 no decision; ignore this result.";
3
3
 
4
+ // src/commands/sessions/shared/deferredRunEnv.ts
5
+ var deferredRunEnv = "ASSIST_DEFERRED_RUN";
6
+
4
7
  // src/commands/sessions/shared/toAttachments.ts
5
8
  function toAttachments(value) {
6
9
  if (!Array.isArray(value)) return void 0;
@@ -15,6 +18,7 @@ function toAttachments(value) {
15
18
  }
16
19
 
17
20
  export {
21
+ deferredRunEnv,
18
22
  supersededPreviewMessage,
19
23
  toAttachments
20
24
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  awaitPreviewApproval
3
- } from "./chunk-C5YM3YO4.js";
3
+ } from "./chunk-Z4LG3KDK.js";
4
4
  import {
5
5
  loadConfig
6
6
  } from "./chunk-KGFZYUE2.js";
@@ -63,6 +63,7 @@ var persistedSessionSchema = z.object({
63
63
  reviewStarted: z.boolean().optional(),
64
64
  launchedFrom: z.string().optional(),
65
65
  pendingPrompts: z.array(z.string()).optional(),
66
+ deferredCommands: z.array(z.string()).optional(),
66
67
  interrupted: z.object({ reason: z.string(), at: z.number() }).optional(),
67
68
  awaitingSeed: z.boolean().optional(),
68
69
  undurable: z.object({ reason: z.string(), removesTree: z.boolean().optional() }).optional()
@@ -100,6 +101,7 @@ function toPersistedSession(session) {
100
101
  reviewStarted: session.reviewStarted,
101
102
  launchedFrom: session.launchedFrom,
102
103
  pendingPrompts: session.pendingPrompts,
104
+ deferredCommands: session.deferredCommands,
103
105
  interrupted: session.interrupted,
104
106
  undurable: session.undurable,
105
107
  awaitingSeed: session.awaitingSeed
@@ -0,0 +1,8 @@
1
+ // src/commands/sessions/shared/previewWaitInstruction.ts
2
+ function previewWaitInstruction(sdkSession) {
3
+ return sdkSession ? "in the foreground. It returns at once; then end your turn and do nothing else \u2014 when the user decides, the command's output and exit code arrive as your next message" : "as a background task, doing no other work until it returns. It blocks until the user decides";
4
+ }
5
+
6
+ export {
7
+ previewWaitInstruction
8
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readStdinBuffer
3
- } from "./chunk-54QTHCXV.js";
3
+ } from "./chunk-QRTB7PVR.js";
4
4
 
5
5
  // src/commands/prs/readBodyArgument.ts
6
6
  async function readBodyArgument(value) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  firstBrokenHop
3
- } from "./chunk-JR3LZHBZ.js";
3
+ } from "./chunk-LX6IOH5J.js";
4
4
  import {
5
5
  TRACE_HEADER,
6
6
  newTraceId
@@ -16,7 +16,7 @@ import {
16
16
  codexRolloutMeta,
17
17
  deriveHistoryFields,
18
18
  readCodexHeadLines
19
- } from "./chunk-7M657DAU.js";
19
+ } from "./chunk-AFGBWFOC.js";
20
20
  import {
21
21
  resolveHarness
22
22
  } from "./chunk-DUNO7WBT.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  harnessAdapter,
6
6
  parseRolloutEntry
7
- } from "./chunk-7M657DAU.js";
7
+ } from "./chunk-AFGBWFOC.js";
8
8
  import {
9
9
  harnesses
10
10
  } from "./chunk-XDIVXGPQ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  next
3
- } from "./chunk-JVJOXBO2.js";
3
+ } from "./chunk-QEFHPIMP.js";
4
4
  import {
5
5
  pullIfConfigured
6
6
  } from "./chunk-SB4BG7PH.js";
@@ -10,7 +10,7 @@ import {
10
10
  run,
11
11
  stopWatching,
12
12
  watchForMarker
13
- } from "./chunk-I3XPML6O.js";
13
+ } from "./chunk-7NRDYDQO.js";
14
14
  import {
15
15
  resumeNudge
16
16
  } from "./chunk-7NZOH4LN.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-NWNODYLQ.js";
30
30
  import {
31
31
  isBlocked
32
- } from "./chunk-O7X46AAU.js";
32
+ } from "./chunk-ILRYEIH3.js";
33
33
  import {
34
34
  loadItemSummaries
35
35
  } from "./chunk-BV2V6RTH.js";
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-N65VOEFI.js";
48
48
  import {
49
49
  harnessAdapter
50
- } from "./chunk-7M657DAU.js";
50
+ } from "./chunk-AFGBWFOC.js";
51
51
 
52
52
  // src/commands/backlog/launchMode.ts
53
53
  import chalk3 from "chalk";
@@ -1,10 +1,20 @@
1
1
  import {
2
+ deferredRunEnv,
2
3
  supersededPreviewMessage,
3
4
  toAttachments
4
- } from "./chunk-VWVLMTH2.js";
5
+ } from "./chunk-QS2S63AF.js";
6
+ import {
7
+ capturedStdin
8
+ } from "./chunk-3VDV7VHX.js";
9
+ import {
10
+ requestDaemonReply
11
+ } from "./chunk-OFLEIPAR.js";
5
12
  import {
6
13
  readSocketLines
7
14
  } from "./chunk-2EW62DM5.js";
15
+ import {
16
+ sdkAgentEnv
17
+ } from "./chunk-VXIZ5DUA.js";
8
18
  import {
9
19
  connectToDaemon
10
20
  } from "./chunk-ZH6HKQOY.js";
@@ -20,6 +30,29 @@ function exitNoPreview(error) {
20
30
  process.exit(1);
21
31
  }
22
32
 
33
+ // src/commands/sessions/shared/deferToDaemon.ts
34
+ async function deferToDaemon(stdin = capturedStdin.text) {
35
+ const sessionId = process.env.ASSIST_SESSION_ID;
36
+ if (!sessionId || process.env[sdkAgentEnv] !== "1" || process.env[deferredRunEnv] === "1")
37
+ return false;
38
+ const reply = await requestDaemonReply(
39
+ {
40
+ type: "defer-command",
41
+ sessionId,
42
+ argv: process.argv.slice(2),
43
+ stdin,
44
+ cwd: process.cwd(),
45
+ env: process.env
46
+ },
47
+ "defer-command-result"
48
+ );
49
+ if (!reply?.accepted) return false;
50
+ console.log(
51
+ "The preview is open in the session's web preview pane. End your turn now and do nothing else: the user's decision will arrive as your next message."
52
+ );
53
+ return true;
54
+ }
55
+
23
56
  // src/commands/sessions/shared/formatPreviewComments.ts
24
57
  function formatPreviewComments(comments) {
25
58
  return comments.map((c, i) => {
@@ -206,6 +239,7 @@ function requestPreviewDecision(request) {
206
239
 
207
240
  // src/commands/sessions/shared/awaitPreviewApproval.ts
208
241
  async function awaitPreviewApproval(subject, request, options = {}) {
242
+ if (await deferToDaemon()) process.exit(0);
209
243
  console.log("Awaiting your approval in the assist web UI preview pane\u2026");
210
244
  let outcome;
211
245
  try {
@@ -1,19 +1,20 @@
1
1
  import {
2
2
  decideToolOperations,
3
3
  logPolicyDeny
4
- } from "./chunk-25PQYD5B.js";
4
+ } from "./chunk-JZ2TTDJ5.js";
5
5
  import "./chunk-CDU6M5IX.js";
6
6
  import "./chunk-HKGCLAZ7.js";
7
- import "./chunk-L4PVKBXS.js";
7
+ import "./chunk-BP6SFWR6.js";
8
8
  import "./chunk-VDXS55BC.js";
9
- import "./chunk-5THMDW42.js";
9
+ import "./chunk-CMQE2SXC.js";
10
10
  import "./chunk-CUOHHT2F.js";
11
11
  import {
12
12
  currentExecutionIdentity
13
- } from "./chunk-GMXZUWBU.js";
13
+ } from "./chunk-NA5TFFHL.js";
14
14
  import "./chunk-ZMH7UZNP.js";
15
15
  import "./chunk-FPWL4VRC.js";
16
16
  import "./chunk-C5U44UI7.js";
17
+ import "./chunk-TQ5KKZ6G.js";
17
18
  import {
18
19
  readStdin
19
20
  } from "./chunk-NGYZK6AF.js";
@@ -26,16 +27,16 @@ import "./chunk-LMUTL44M.js";
26
27
  import "./chunk-6NDXAN45.js";
27
28
  import {
28
29
  claudeAdapter
29
- } from "./chunk-7M657DAU.js";
30
+ } from "./chunk-AFGBWFOC.js";
30
31
  import "./chunk-MRUIXQXS.js";
31
32
  import "./chunk-HO7RNI6V.js";
32
33
  import "./chunk-DIAC4XYA.js";
33
34
  import "./chunk-UU77KEL6.js";
34
35
  import "./chunk-W7TRZLEM.js";
35
36
  import "./chunk-P26XSDFU.js";
36
- import "./chunk-VXIZ5DUA.js";
37
37
  import "./chunk-IBPSXDUB.js";
38
38
  import "./chunk-DUNO7WBT.js";
39
+ import "./chunk-VXIZ5DUA.js";
39
40
  import {
40
41
  markActiveHarness
41
42
  } from "./chunk-BFQSGIN6.js";
@@ -5,17 +5,17 @@ import {
5
5
  findTruncatedReadDenyRaw,
6
6
  isApprovedRead,
7
7
  splitCompound
8
- } from "./chunk-L4PVKBXS.js";
8
+ } from "./chunk-BP6SFWR6.js";
9
9
  import "./chunk-VDXS55BC.js";
10
- import "./chunk-7M657DAU.js";
10
+ import "./chunk-AFGBWFOC.js";
11
11
  import "./chunk-MRUIXQXS.js";
12
12
  import "./chunk-HO7RNI6V.js";
13
13
  import "./chunk-DIAC4XYA.js";
14
14
  import "./chunk-UU77KEL6.js";
15
15
  import "./chunk-W7TRZLEM.js";
16
16
  import "./chunk-P26XSDFU.js";
17
- import "./chunk-VXIZ5DUA.js";
18
17
  import "./chunk-DUNO7WBT.js";
18
+ import "./chunk-VXIZ5DUA.js";
19
19
  import "./chunk-BFQSGIN6.js";
20
20
  import "./chunk-D7UZLH36.js";
21
21
  import "./chunk-XDIVXGPQ.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  decideToolOperations,
3
3
  logPolicyDeny
4
- } from "./chunk-25PQYD5B.js";
4
+ } from "./chunk-JZ2TTDJ5.js";
5
5
  import "./chunk-CDU6M5IX.js";
6
6
  import "./chunk-HKGCLAZ7.js";
7
- import "./chunk-L4PVKBXS.js";
7
+ import "./chunk-BP6SFWR6.js";
8
8
  import "./chunk-VDXS55BC.js";
9
- import "./chunk-5THMDW42.js";
9
+ import "./chunk-CMQE2SXC.js";
10
10
  import "./chunk-CUOHHT2F.js";
11
11
  import {
12
12
  currentExecutionIdentity
13
- } from "./chunk-GMXZUWBU.js";
13
+ } from "./chunk-NA5TFFHL.js";
14
14
  import "./chunk-ZMH7UZNP.js";
15
15
  import {
16
16
  setSessionStatus
@@ -19,8 +19,9 @@ import "./chunk-FPWL4VRC.js";
19
19
  import "./chunk-C5U44UI7.js";
20
20
  import {
21
21
  adviceHookPayload
22
- } from "./chunk-6ZECLGYV.js";
22
+ } from "./chunk-7VK2KF6L.js";
23
23
  import "./chunk-P7FVAGFQ.js";
24
+ import "./chunk-TQ5KKZ6G.js";
24
25
  import {
25
26
  readStdin
26
27
  } from "./chunk-NGYZK6AF.js";
@@ -38,21 +39,21 @@ import "./chunk-3QKE2ONF.js";
38
39
  import "./chunk-O5JIFWMQ.js";
39
40
  import "./chunk-LMUTL44M.js";
40
41
  import "./chunk-6NDXAN45.js";
41
- import "./chunk-K5K7LATN.js";
42
+ import "./chunk-DJ5UUPZR.js";
42
43
  import "./chunk-MELBVXKL.js";
43
44
  import "./chunk-OGJ6AZK4.js";
44
45
  import {
45
46
  codexAdapter
46
- } from "./chunk-7M657DAU.js";
47
+ } from "./chunk-AFGBWFOC.js";
47
48
  import "./chunk-MRUIXQXS.js";
48
49
  import "./chunk-HO7RNI6V.js";
49
50
  import "./chunk-DIAC4XYA.js";
50
51
  import "./chunk-UU77KEL6.js";
51
52
  import "./chunk-W7TRZLEM.js";
52
53
  import "./chunk-P26XSDFU.js";
53
- import "./chunk-VXIZ5DUA.js";
54
54
  import "./chunk-IBPSXDUB.js";
55
55
  import "./chunk-DUNO7WBT.js";
56
+ import "./chunk-VXIZ5DUA.js";
56
57
  import "./chunk-G44QYJ57.js";
57
58
  import "./chunk-APZ6ZTDA.js";
58
59
  import {
@@ -3,8 +3,8 @@
3
3
  "assist@staff0rd.github.io": {
4
4
  "updates": [
5
5
  {
6
- "version": "0.1158.2",
7
- "update_link": "https://github.com/staff0rd/assist/releases/download/v0.1158.2/assist-extension.xpi"
6
+ "version": "0.1160.0",
7
+ "update_link": "https://github.com/staff0rd/assist/releases/download/v0.1160.0/assist-extension.xpi"
8
8
  }
9
9
  ]
10
10
  }