@staff0rd/assist 0.1159.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.
- package/agent/advice/ask-check.md +1 -1
- package/agent/advice/ask-question.md +1 -1
- package/agent/advice/ask.md +1 -1
- package/agent/commands/add-rule.md +2 -2
- package/agent/commands/ask.md +6 -3
- package/agent/commands/bug.md +1 -1
- package/agent/commands/design.md +1 -0
- package/agent/commands/draft.md +1 -1
- package/agent/commands/github.md +2 -0
- package/agent/commands/pr.md +2 -0
- package/agent/commands/refine.md +1 -1
- package/agent/commands/review-config.md +2 -0
- package/agent/commands/review-high-level.md +1 -1
- package/dist/.build-files +110 -107
- package/dist/{addActivity-MJYWFO7U.js → addActivity-FI4P6OTC.js} +3 -2
- package/dist/{addPhase-GONWNOTL.js → addPhase-TAU5TNIH.js} +8 -5
- package/dist/{advise-P44JLFTH.js → advise-P6UNZDSJ.js} +5 -3
- package/dist/{ask-ZZRX33YD.js → ask-F6E63RQQ.js} +8 -5
- package/dist/{askCheck-A5HDVJP2.js → askCheck-Y5ZASXYZ.js} +13 -11
- package/dist/{askDesign-TJIJH5UI.js → askDesign-TZKXMGMV.js} +8 -6
- package/dist/{askQuestion-5RDETJHR.js → askQuestion-PDKTLFTV.js} +6 -4
- package/dist/{branch-AVZC3L36.js → branch-6T6R4B3N.js} +4 -3
- package/dist/built-version +1 -1
- package/dist/{chunk-MRM2NZZG.js → chunk-26N4PV7Z.js} +1 -1
- package/dist/chunk-3VDV7VHX.js +6 -0
- package/dist/{chunk-GOQK3KCL.js → chunk-4X2D3DCV.js} +1 -1
- package/dist/{chunk-TYXGQOBI.js → chunk-627WPDA6.js} +1 -1
- package/dist/{chunk-TECUUDTX.js → chunk-6GUFWQ3N.js} +1 -1
- package/dist/{chunk-DYGEMDS7.js → chunk-6JWOFHSW.js} +1 -1
- package/dist/{chunk-6QVHLP3E.js → chunk-74UYKNXC.js} +2 -2
- package/dist/{chunk-NCK7BMMP.js → chunk-77ZKOKNF.js} +7 -7
- package/dist/{chunk-JTUTO5BL.js → chunk-7KTG4VNA.js} +1 -1
- package/dist/{chunk-A77PB42R.js → chunk-7NRDYDQO.js} +7 -7
- package/dist/{chunk-LFRSZIAS.js → chunk-7NZOH4LN.js} +1 -1
- package/dist/{chunk-XLZPMAEW.js → chunk-7VK2KF6L.js} +16 -2
- package/dist/{chunk-YLARQOLU.js → chunk-AFGBWFOC.js} +25 -5
- package/dist/{chunk-HSE5HLCK.js → chunk-AGBHU2F2.js} +1 -1
- package/dist/{chunk-WQF27PEJ.js → chunk-ASM6OJRK.js} +1 -1
- package/dist/{chunk-Y74XIZCO.js → chunk-BEZEB6OF.js} +2 -2
- package/dist/{chunk-FVXUYW7R.js → chunk-BP6SFWR6.js} +1 -1
- package/dist/{chunk-LWM73IG5.js → chunk-CMQE2SXC.js} +1 -1
- package/dist/{chunk-JHRRWQR2.js → chunk-CVSVONYT.js} +1 -1
- package/dist/{chunk-VDZOW3Q3.js → chunk-DJ5UUPZR.js} +1 -1
- package/dist/{chunk-ED3ITGJN.js → chunk-EIA6AM33.js} +1 -1
- package/dist/{chunk-EXSITFJA.js → chunk-EXGBNBBJ.js} +1 -1
- package/dist/{chunk-CJUZTNRQ.js → chunk-F5AIU5Q3.js} +1 -1
- package/dist/chunk-F7QYFJB2.js +17 -0
- package/dist/{chunk-2GZAGNPD.js → chunk-FJQSHCU3.js} +3 -3
- package/dist/{chunk-NDXE7MIB.js → chunk-GZT3NLC6.js} +1 -1
- package/dist/{chunk-E5GBQHKU.js → chunk-HEP6K2DT.js} +1 -1
- package/dist/{chunk-ZN3KF5EG.js → chunk-HN5RRUW2.js} +1 -1
- package/dist/{chunk-5XEL2RHJ.js → chunk-I6B6W6WT.js} +1 -1
- package/dist/{chunk-VEMLL2MB.js → chunk-ILRYEIH3.js} +1 -1
- package/dist/{chunk-WVAZNDJ7.js → chunk-J265JKFW.js} +3 -3
- package/dist/{chunk-X2JAOVWA.js → chunk-JZ2TTDJ5.js} +9 -3
- package/dist/{chunk-YTJ7HVKR.js → chunk-LPBBNHBJ.js} +1 -1
- package/dist/{chunk-OFWIPLFY.js → chunk-LVDWS4SI.js} +1 -1
- package/dist/{chunk-OG7C3FPS.js → chunk-LX6IOH5J.js} +1 -1
- package/dist/{chunk-Z3X5QNYY.js → chunk-NA5TFFHL.js} +1 -1
- package/dist/{chunk-K4TQJQWA.js → chunk-OQ6AYXHB.js} +1 -1
- package/dist/{chunk-PSE4HC7Y.js → chunk-OX4K4FAY.js} +2 -2
- package/dist/{chunk-KLQFCFQS.js → chunk-QEFHPIMP.js} +3 -3
- package/dist/{chunk-54QTHCXV.js → chunk-QRTB7PVR.js} +7 -1
- package/dist/{chunk-BAHQJHYD.js → chunk-QS2S63AF.js} +8 -0
- package/dist/{chunk-VWO3F27D.js → chunk-QUWL7IBN.js} +1 -1
- package/dist/{chunk-ERAGZGT5.js → chunk-RMGPNDEN.js} +2 -0
- package/dist/chunk-TQ5KKZ6G.js +8 -0
- package/dist/{chunk-K4T24UGW.js → chunk-UE5PIMY2.js} +1 -1
- package/dist/{chunk-D3KXEPW5.js → chunk-UM3CASEM.js} +1 -1
- package/dist/chunk-VXIZ5DUA.js +6 -0
- package/dist/{chunk-APCMTNP5.js → chunk-WQ3ABZ4N.js} +1 -1
- package/dist/{chunk-RTTC6DG3.js → chunk-XTD6227R.js} +3 -1
- package/dist/{chunk-DU5CHLWL.js → chunk-YZSTCQUE.js} +5 -5
- package/dist/{chunk-KI7RHWH5.js → chunk-Z4LG3KDK.js} +37 -4
- package/dist/{cliHook-VGYS3GDX.js → cliHook-E5HX4RV7.js} +7 -5
- package/dist/{cliHookCheck-Z3T7T6DN.js → cliHookCheck-KQDTKJBA.js} +3 -2
- package/dist/{codexHook-OGXRUKIN.js → codexHook-EMML4X3I.js} +9 -7
- package/dist/commands/extension/extension/content.js +1 -1
- package/dist/commands/extension/extension/docs.js +7 -7
- package/dist/commands/extension/extension/updates.json +2 -2
- package/dist/commands/sessions/web/bundle.js +440 -438
- package/dist/{comment-CADYMIUH.js → comment-AOB7KRXL.js} +7 -4
- package/dist/{commentIssue-2VMPDQ74.js → commentIssue-6G3N2E4B.js} +6 -3
- package/dist/{commit-O2SBMPOL.js → commit-KOTH6G6L.js} +4 -3
- package/dist/{createIssue-J6QLUACO.js → createIssue-IQJL3QO4.js} +5 -2
- package/dist/{doctorNodes-MK564ECD.js → doctorNodes-5EW6QQ5D.js} +3 -3
- package/dist/{done-RYXCEDM6.js → done-G57I4IXY.js} +5 -4
- package/dist/{drainDaemon-T2X2H2Z5.js → drainDaemon-7V6RMDRT.js} +1 -1
- package/dist/{edit-XOU2IWSF.js → edit-XLS74GEX.js} +5 -2
- package/dist/{editHook-BVXWHGQN.js → editHook-HDXB5IRZ.js} +7 -5
- package/dist/{editIssue-6I3BU4YO.js → editIssue-53DIWJIJ.js} +7 -4
- package/dist/{editIssueComment-OLT3MQDH.js → editIssueComment-HCEYRKWT.js} +6 -3
- package/dist/{fixConflict-GCB74B3L.js → fixConflict-YPNQ3Z5O.js} +7 -6
- package/dist/{importBacklog-FOGUOAIJ.js → importBacklog-65MOC2KY.js} +2 -1
- package/dist/index.js +71 -71
- package/dist/{launchMode-V73UJ7IY.js → launchMode-3PLZA4EV.js} +16 -15
- package/dist/{list-RAZHIR56.js → list-EXCFXUUV.js} +6 -5
- package/dist/{merge-MVMNYPO2.js → merge-5FURAXPB.js} +3 -2
- package/dist/{next-WWQA4T7M.js → next-MELQDUE4.js} +15 -14
- package/dist/{piHook-BGIGXEC3.js → piHook-SXJBRASG.js} +7 -5
- package/dist/{postSlackMessage-IPJ2HPKC.js → postSlackMessage-KXS4R7Y6.js} +6 -3
- package/dist/{propose-OI54ENNV.js → propose-37TNXC2B.js} +11 -8
- package/dist/{raise-AWHJN5PS.js → raise-KEPF3WOY.js} +5 -2
- package/dist/readBodyArgument-WHNTOBUE.js +8 -0
- package/dist/{readTime-23CA6JVM.js → readTime-CWEUMPXR.js} +3 -2
- package/dist/{refine-MO363W3J.js → refine-VY42GT5E.js} +17 -16
- package/dist/{reply-QXSMUPXO.js → reply-6MCVVNZK.js} +6 -3
- package/dist/{restartNode-ZBXTI22O.js → restartNode-VNJAREDR.js} +5 -5
- package/dist/{review-SCBWQ5YI.js → review-S5JIPTTJ.js} +11 -8
- package/dist/{reviewPrComments-EB2ZL3GE.js → reviewPrComments-PLRIHXWC.js} +7 -6
- package/dist/{rewindPhase-CYVR62ZI.js → rewindPhase-MKAAJZ3B.js} +9 -8
- package/dist/{rulesAdd-QI27Q4JE.js → rulesAdd-T62MTCFM.js} +6 -3
- package/dist/{run-4OKNZHTT.js → run-4VCFD6GC.js} +13 -12
- package/dist/{run-GYUYQID4.js → run-IH2SPTOS.js} +13 -12
- package/dist/{runDaemon-U4MIZFAC.js → runDaemon-4WJQINVB.js} +177 -39
- package/dist/{runExtract-VK32OSQH.js → runExtract-4IIID534.js} +5 -2
- package/dist/{runRefine-QHTLLTX6.js → runRefine-SM6EHRUB.js} +17 -16
- package/dist/{scan-R4S6NWXP.js → scan-Q2LQ6C2H.js} +3 -2
- package/dist/{schemaConfirm-OHIS7AMM.js → schemaConfirm-DVNHG5CE.js} +3 -2
- package/dist/{schemaUnlock-T5DN3YOY.js → schemaUnlock-AQAEVGUD.js} +3 -2
- package/dist/{search-B3CRZVFU.js → search-PFHCJUFA.js} +6 -5
- package/dist/{show-7N3J7LLJ.js → show-EQCAKDSF.js} +4 -3
- package/dist/{show-DNTQYROH.js → show-NHSD46FE.js} +7 -5
- package/dist/{signExtension-BX4P5B4F.js → signExtension-VIFT2IDU.js} +1 -1
- package/dist/{slack-4ZPQ5C5L.js → slack-SMNDERHS.js} +6 -3
- package/dist/{updateNode-IX5XTZX4.js → updateNode-GUT5LN56.js} +5 -5
- package/dist/{updatePlan-SESXRANJ.js → updatePlan-V57DKNB5.js} +11 -8
- package/dist/{web-YVATG6S2.js → web-AQVFE5HY.js} +17 -16
- package/dist/{web-ECGAG7CY.js → web-ZJ3S6UPP.js} +17 -16
- package/dist/{wontfix-PHYW2KQ7.js → wontfix-ASUD2OQM.js} +6 -3
- package/package.json +1 -1
- package/dist/chunk-5PKWV3WT.js +0 -8
- package/dist/readBodyArgument-NZG3GJMF.js +0 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/commands/sessions/shared/wrapRestartNudge.ts
|
|
2
|
+
function wrapRestartNudge(text, killed) {
|
|
3
|
+
return `<assist-restart killed="${killed}">${text}</assist-restart>`;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
// src/commands/backlog/buildResumePrompt.ts
|
|
7
|
+
function buildResumePrompt() {
|
|
8
|
+
return wrapRestartNudge(
|
|
9
|
+
"A restart interrupted this conversation. Continue from where you left off.",
|
|
10
|
+
0
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
wrapRestartNudge,
|
|
16
|
+
buildResumePrompt
|
|
17
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkoutPr
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ASM6OJRK.js";
|
|
4
4
|
import {
|
|
5
5
|
resumeNudge
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7NZOH4LN.js";
|
|
7
7
|
import {
|
|
8
8
|
HARNESS_SPAWN_FAILED,
|
|
9
9
|
awaitHarness
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-NWNODYLQ.js";
|
|
20
20
|
import {
|
|
21
21
|
harnessAdapter
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AFGBWFOC.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/launchPrSkill.ts
|
|
25
25
|
import chalk from "chalk";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-N65VOEFI.js";
|
|
4
4
|
import {
|
|
5
5
|
previewAnswerWaitBlocker
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DJ5UUPZR.js";
|
|
7
7
|
import {
|
|
8
8
|
askQuestionEnabled
|
|
9
9
|
} from "./chunk-IBPSXDUB.js";
|
|
@@ -20,7 +20,7 @@ function buildManualCheckLines(manualChecks, commitBeforePhaseEnd, askCheck = fa
|
|
|
20
20
|
return [
|
|
21
21
|
"",
|
|
22
22
|
"Once verify passes, run /commit to commit the work before asking the user to perform the manual checks below.",
|
|
23
|
-
"Then raise each manual check with `assist ask-check --check <n> --json - < <file
|
|
23
|
+
"Then raise each manual check with `assist ask-check --check <n> --json - < <file>`, where <n> is the check's number in the list below, one check at a time, waiting for each result before doing anything else; run it and wait exactly as the 'Asking for a manual check' advice says, which also gives the payload. If it exits non-zero before opening, ask for that check in chat instead.",
|
|
24
24
|
"Keep your chat summary to a few lines; the check itself carries the steps.",
|
|
25
25
|
"Manual checks:",
|
|
26
26
|
...manualChecks.map((c, i) => `${i + 1}. ${c}`),
|
|
@@ -129,7 +129,7 @@ function buildReviewCheckLines(manualChecks, askCheck) {
|
|
|
129
129
|
"Manual checks moved to this Review phase:",
|
|
130
130
|
...list,
|
|
131
131
|
"",
|
|
132
|
-
"Raise each of these with `assist ask-check --json - < <file
|
|
132
|
+
"Raise each of these with `assist ask-check --json - < <file>`, one check at a time, waiting for each result before doing anything else; run it and wait exactly as the 'Asking for a manual check' advice says, which also gives the payload. If it exits non-zero before opening, ask for that check in chat instead. Wait for every one to come back works; if one doesn't work, fix it and raise it again.",
|
|
133
133
|
""
|
|
134
134
|
];
|
|
135
135
|
}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isApprovedRead,
|
|
14
14
|
resolvePermission,
|
|
15
15
|
splitCompound
|
|
16
|
-
} from "./chunk-
|
|
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-
|
|
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>\`
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveReviewPhase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CVSVONYT.js";
|
|
4
4
|
import {
|
|
5
5
|
resolvePlan
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
6
|
+
} from "./chunk-7NRDYDQO.js";
|
|
7
7
|
import {
|
|
8
8
|
isLockedByOther
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EIA6AM33.js";
|
|
10
10
|
import {
|
|
11
11
|
isBlocked,
|
|
12
12
|
typeLabel
|
|
13
|
-
} from "./chunk-
|
|
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
|
-
|
|
11
|
+
const buffer = Buffer.concat(chunks);
|
|
12
|
+
capturedStdin.text = buffer.toString("utf8");
|
|
13
|
+
return buffer;
|
|
8
14
|
}
|
|
9
15
|
|
|
10
16
|
export {
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
// src/commands/sessions/shared/supersededPreviewMessage.ts
|
|
2
|
+
var supersededPreviewMessage = "Superseded by a newer preview \u2014 no decision; ignore this result.";
|
|
3
|
+
|
|
4
|
+
// src/commands/sessions/shared/deferredRunEnv.ts
|
|
5
|
+
var deferredRunEnv = "ASSIST_DEFERRED_RUN";
|
|
6
|
+
|
|
1
7
|
// src/commands/sessions/shared/toAttachments.ts
|
|
2
8
|
function toAttachments(value) {
|
|
3
9
|
if (!Array.isArray(value)) return void 0;
|
|
@@ -12,5 +18,7 @@ function toAttachments(value) {
|
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
export {
|
|
21
|
+
deferredRunEnv,
|
|
22
|
+
supersededPreviewMessage,
|
|
15
23
|
toAttachments
|
|
16
24
|
};
|
|
@@ -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
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
parseRolloutEntry
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AFGBWFOC.js";
|
|
8
8
|
import {
|
|
9
9
|
harnesses
|
|
10
10
|
} from "./chunk-XDIVXGPQ.js";
|
|
@@ -53,6 +53,8 @@ function toMessages(event) {
|
|
|
53
53
|
}
|
|
54
54
|
];
|
|
55
55
|
if (event.kind === "interrupt") return [{ role: "interrupt" }];
|
|
56
|
+
if (event.kind === "restart")
|
|
57
|
+
return [{ role: "restart", killed: event.killed }];
|
|
56
58
|
return [];
|
|
57
59
|
}
|
|
58
60
|
function echoMessages(pending, until) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QEFHPIMP.js";
|
|
4
4
|
import {
|
|
5
5
|
pullIfConfigured
|
|
6
6
|
} from "./chunk-SB4BG7PH.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
run,
|
|
11
11
|
stopWatching,
|
|
12
12
|
watchForMarker
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7NRDYDQO.js";
|
|
14
14
|
import {
|
|
15
15
|
resumeNudge
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7NZOH4LN.js";
|
|
17
17
|
import {
|
|
18
18
|
HARNESS_SPAWN_FAILED,
|
|
19
19
|
awaitHarness
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-NWNODYLQ.js";
|
|
30
30
|
import {
|
|
31
31
|
isBlocked
|
|
32
|
-
} from "./chunk-
|
|
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-
|
|
50
|
+
} from "./chunk-AFGBWFOC.js";
|
|
51
51
|
|
|
52
52
|
// src/commands/backlog/launchMode.ts
|
|
53
53
|
import chalk3 from "chalk";
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
+
deferredRunEnv,
|
|
3
|
+
supersededPreviewMessage,
|
|
2
4
|
toAttachments
|
|
3
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QS2S63AF.js";
|
|
6
|
+
import {
|
|
7
|
+
capturedStdin
|
|
8
|
+
} from "./chunk-3VDV7VHX.js";
|
|
9
|
+
import {
|
|
10
|
+
requestDaemonReply
|
|
11
|
+
} from "./chunk-OFLEIPAR.js";
|
|
4
12
|
import {
|
|
5
13
|
readSocketLines
|
|
6
14
|
} from "./chunk-2EW62DM5.js";
|
|
15
|
+
import {
|
|
16
|
+
sdkAgentEnv
|
|
17
|
+
} from "./chunk-VXIZ5DUA.js";
|
|
7
18
|
import {
|
|
8
19
|
connectToDaemon
|
|
9
20
|
} from "./chunk-ZH6HKQOY.js";
|
|
@@ -19,6 +30,29 @@ function exitNoPreview(error) {
|
|
|
19
30
|
process.exit(1);
|
|
20
31
|
}
|
|
21
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
|
+
|
|
22
56
|
// src/commands/sessions/shared/formatPreviewComments.ts
|
|
23
57
|
function formatPreviewComments(comments) {
|
|
24
58
|
return comments.map((c, i) => {
|
|
@@ -205,6 +239,7 @@ function requestPreviewDecision(request) {
|
|
|
205
239
|
|
|
206
240
|
// src/commands/sessions/shared/awaitPreviewApproval.ts
|
|
207
241
|
async function awaitPreviewApproval(subject, request, options = {}) {
|
|
242
|
+
if (await deferToDaemon()) process.exit(0);
|
|
208
243
|
console.log("Awaiting your approval in the assist web UI preview pane\u2026");
|
|
209
244
|
let outcome;
|
|
210
245
|
try {
|
|
@@ -213,9 +248,7 @@ async function awaitPreviewApproval(subject, request, options = {}) {
|
|
|
213
248
|
exitNoPreview(error);
|
|
214
249
|
}
|
|
215
250
|
if (outcome === "superseded") {
|
|
216
|
-
console.log(
|
|
217
|
-
"Superseded by a newer preview \u2014 no decision; ignore this result."
|
|
218
|
-
);
|
|
251
|
+
console.log(supersededPreviewMessage);
|
|
219
252
|
process.exit(0);
|
|
220
253
|
}
|
|
221
254
|
if (outcome.body !== void 0) options.saveEditedBody?.(outcome.body);
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decideToolOperations,
|
|
3
3
|
logPolicyDeny
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JZ2TTDJ5.js";
|
|
5
5
|
import "./chunk-CDU6M5IX.js";
|
|
6
6
|
import "./chunk-HKGCLAZ7.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-BP6SFWR6.js";
|
|
8
8
|
import "./chunk-VDXS55BC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CMQE2SXC.js";
|
|
10
10
|
import "./chunk-CUOHHT2F.js";
|
|
11
11
|
import {
|
|
12
12
|
currentExecutionIdentity
|
|
13
|
-
} from "./chunk-
|
|
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,7 +27,7 @@ import "./chunk-LMUTL44M.js";
|
|
|
26
27
|
import "./chunk-6NDXAN45.js";
|
|
27
28
|
import {
|
|
28
29
|
claudeAdapter
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AFGBWFOC.js";
|
|
30
31
|
import "./chunk-MRUIXQXS.js";
|
|
31
32
|
import "./chunk-HO7RNI6V.js";
|
|
32
33
|
import "./chunk-DIAC4XYA.js";
|
|
@@ -35,6 +36,7 @@ import "./chunk-W7TRZLEM.js";
|
|
|
35
36
|
import "./chunk-P26XSDFU.js";
|
|
36
37
|
import "./chunk-IBPSXDUB.js";
|
|
37
38
|
import "./chunk-DUNO7WBT.js";
|
|
39
|
+
import "./chunk-VXIZ5DUA.js";
|
|
38
40
|
import {
|
|
39
41
|
markActiveHarness
|
|
40
42
|
} from "./chunk-BFQSGIN6.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
findTruncatedReadDenyRaw,
|
|
6
6
|
isApprovedRead,
|
|
7
7
|
splitCompound
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BP6SFWR6.js";
|
|
9
9
|
import "./chunk-VDXS55BC.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-AFGBWFOC.js";
|
|
11
11
|
import "./chunk-MRUIXQXS.js";
|
|
12
12
|
import "./chunk-HO7RNI6V.js";
|
|
13
13
|
import "./chunk-DIAC4XYA.js";
|
|
@@ -15,6 +15,7 @@ import "./chunk-UU77KEL6.js";
|
|
|
15
15
|
import "./chunk-W7TRZLEM.js";
|
|
16
16
|
import "./chunk-P26XSDFU.js";
|
|
17
17
|
import "./chunk-DUNO7WBT.js";
|
|
18
|
+
import "./chunk-VXIZ5DUA.js";
|
|
18
19
|
import "./chunk-BFQSGIN6.js";
|
|
19
20
|
import "./chunk-D7UZLH36.js";
|
|
20
21
|
import "./chunk-XDIVXGPQ.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decideToolOperations,
|
|
3
3
|
logPolicyDeny
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JZ2TTDJ5.js";
|
|
5
5
|
import "./chunk-CDU6M5IX.js";
|
|
6
6
|
import "./chunk-HKGCLAZ7.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-BP6SFWR6.js";
|
|
8
8
|
import "./chunk-VDXS55BC.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CMQE2SXC.js";
|
|
10
10
|
import "./chunk-CUOHHT2F.js";
|
|
11
11
|
import {
|
|
12
12
|
currentExecutionIdentity
|
|
13
|
-
} from "./chunk-
|
|
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-
|
|
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,12 +39,12 @@ 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-
|
|
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-
|
|
47
|
+
} from "./chunk-AFGBWFOC.js";
|
|
47
48
|
import "./chunk-MRUIXQXS.js";
|
|
48
49
|
import "./chunk-HO7RNI6V.js";
|
|
49
50
|
import "./chunk-DIAC4XYA.js";
|
|
@@ -52,6 +53,7 @@ import "./chunk-W7TRZLEM.js";
|
|
|
52
53
|
import "./chunk-P26XSDFU.js";
|
|
53
54
|
import "./chunk-IBPSXDUB.js";
|
|
54
55
|
import "./chunk-DUNO7WBT.js";
|
|
56
|
+
import "./chunk-VXIZ5DUA.js";
|
|
55
57
|
import "./chunk-G44QYJ57.js";
|
|
56
58
|
import "./chunk-APZ6ZTDA.js";
|
|
57
59
|
import {
|