@staff0rd/assist 0.1150.0 → 0.1152.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/.build-files +93 -93
- package/dist/{addActivity-FAJXPOZ4.js → addActivity-RCVI7MFJ.js} +2 -2
- package/dist/{addPhase-QNJFCF4I.js → addPhase-G2Q3CN22.js} +4 -4
- package/dist/{advise-5FZ6EQKW.js → advise-HYDI6MD2.js} +3 -3
- package/dist/{ask-GXMVORX7.js → ask-ZZRX33YD.js} +2 -2
- package/dist/{askCheck-XUWBC3AC.js → askCheck-V6JBBUTK.js} +8 -8
- package/dist/{askDesign-MSFOLBXG.js → askDesign-WQHY6WQU.js} +3 -3
- package/dist/{askQuestion-MRI2ATSI.js → askQuestion-A653WELI.js} +1 -1
- package/dist/{branch-YN5MMZZZ.js → branch-GDJ66H7C.js} +3 -3
- package/dist/built-version +1 -1
- package/dist/{chunk-J4SWOWUT.js → chunk-37I3HCXS.js} +1 -1
- package/dist/{chunk-Q27DNI5T.js → chunk-3ETEYHXZ.js} +1 -1
- package/dist/{chunk-5KXFB5TL.js → chunk-3RGJVOHF.js} +1 -1
- package/dist/{chunk-K5AQPUDE.js → chunk-4GMKRFT6.js} +1 -1
- package/dist/{chunk-MXGPUIL3.js → chunk-5UTFJBQW.js} +2 -2
- package/dist/{chunk-6IGWBZ2R.js → chunk-6J7H4L5U.js} +49 -19
- package/dist/{chunk-AZBZH2MC.js → chunk-7QD3L7KA.js} +1 -1
- package/dist/{chunk-HMRDPP46.js → chunk-A2GTJKBK.js} +1 -1
- package/dist/{chunk-F6EI2W6X.js → chunk-B2URMB3I.js} +1 -1
- package/dist/{chunk-KV5L2IIA.js → chunk-B3L73DOX.js} +6 -6
- package/dist/{chunk-WEAZDCXB.js → chunk-C56W3PEA.js} +1 -1
- package/dist/{chunk-YUVOTSA7.js → chunk-C67WW2XW.js} +1 -1
- package/dist/{chunk-ZH7FLZPU.js → chunk-CJUZTNRQ.js} +1 -1
- package/dist/{chunk-4ALZHLCO.js → chunk-CNDR5OUJ.js} +1 -1
- package/dist/{chunk-O7CF3E3N.js → chunk-D6XI63MC.js} +1 -1
- package/dist/{chunk-CJLBH3DN.js → chunk-DYGEMDS7.js} +1 -1
- package/dist/{chunk-H3UM6QRY.js → chunk-GOQK3KCL.js} +1 -1
- package/dist/{chunk-WYJHBRSG.js → chunk-GSVPCLVG.js} +2 -2
- package/dist/{chunk-7Z3XNY5F.js → chunk-GT44SBVO.js} +1 -1
- package/dist/{chunk-WQDDXI3P.js → chunk-II6SR37X.js} +1 -1
- package/dist/{chunk-UKLCNYPF.js → chunk-INKR7DE3.js} +1 -1
- package/dist/{chunk-SRDWYOJQ.js → chunk-JTUJI55D.js} +1 -1
- package/dist/{chunk-DIQAEGJ5.js → chunk-KI7RHWH5.js} +15 -2
- package/dist/{chunk-TGVUTAW4.js → chunk-M57ATSAM.js} +4 -4
- package/dist/{chunk-NDHXVSWO.js → chunk-OAPWC2T4.js} +309 -55
- package/dist/{chunk-GLEMD7P2.js → chunk-ONXZPFKE.js} +1 -1
- package/dist/{chunk-Y4HYJDWR.js → chunk-PPWM3WBM.js} +3 -3
- package/dist/{chunk-XEXXLIGF.js → chunk-PSQ24TON.js} +2 -2
- package/dist/{chunk-RYHNVMY6.js → chunk-QAS45635.js} +1 -1
- package/dist/{chunk-KY6ZIBKH.js → chunk-RML5ROGC.js} +1 -1
- package/dist/{chunk-CBHNIZFO.js → chunk-RV4NFZZ5.js} +1 -1
- package/dist/{chunk-EMNFCQKE.js → chunk-SLKU7FHG.js} +1 -1
- package/dist/{chunk-YMYZBSS6.js → chunk-TECUUDTX.js} +1 -1
- package/dist/{chunk-77PMACIC.js → chunk-UKXNBLDW.js} +2 -2
- package/dist/{chunk-3RPWEZV4.js → chunk-VWO3F27D.js} +1 -1
- package/dist/{chunk-RUVMUOMX.js → chunk-XX5PPG3E.js} +1 -1
- package/dist/{chunk-I3TRD3TY.js → chunk-YDWT36XX.js} +1 -1
- package/dist/{chunk-IAS2D4WB.js → chunk-YJJJFSV6.js} +1 -1
- package/dist/{chunk-Q3R6WLAI.js → chunk-YRVUUZLX.js} +1 -1
- package/dist/{chunk-XSSOA4XV.js → chunk-ZNPV7M2Z.js} +1 -1
- package/dist/{cliHook-H6ZSCG5B.js → cliHook-P6HTSFES.js} +5 -5
- package/dist/{cliHookCheck-NSMNW2QP.js → cliHookCheck-PQHNJXBZ.js} +2 -2
- package/dist/{codexHook-QSDA2ERO.js → codexHook-UABSPFWA.js} +7 -7
- package/dist/commands/extension/extension/content.js +1 -1
- package/dist/commands/extension/extension/docs.js +18 -18
- package/dist/commands/extension/extension/updates.json +2 -2
- package/dist/commands/sessions/web/bundle.js +425 -425
- package/dist/{comment-NXF5C634.js → comment-CADYMIUH.js} +3 -3
- package/dist/{commentIssue-SZAB7TJQ.js → commentIssue-2VMPDQ74.js} +2 -2
- package/dist/{commit-4BXR2BKT.js → commit-B4I4JBLS.js} +3 -3
- package/dist/{createIssue-FQQNJIWA.js → createIssue-J6QLUACO.js} +1 -1
- package/dist/{doctorNodes-SOE4FK2J.js → doctorNodes-MA4UZTAL.js} +3 -3
- package/dist/{done-ICXQHCNX.js → done-LI5N36L5.js} +4 -4
- package/dist/{edit-MRTB2VJQ.js → edit-XOU2IWSF.js} +1 -1
- package/dist/{editHook-45YKZZW7.js → editHook-7UT6UAJN.js} +5 -5
- package/dist/{editIssue-WICT2PNQ.js → editIssue-6I3BU4YO.js} +1 -1
- package/dist/{editIssueComment-OJZXFL5P.js → editIssueComment-OLT3MQDH.js} +2 -2
- package/dist/{fixConflict-7PTOATRG.js → fixConflict-MIFDKQ3T.js} +2 -2
- package/dist/index.js +60 -60
- package/dist/{launchMode-63SE2LFL.js → launchMode-GKCBLWHJ.js} +13 -13
- package/dist/{list-SQVHXDIV.js → list-MI7LNQ7D.js} +5 -5
- package/dist/{next-SOB4NPFS.js → next-VHPVHFWC.js} +12 -12
- package/dist/{piHook-Z75KKYZF.js → piHook-WFN7QKHJ.js} +5 -5
- package/dist/{postSlackMessage-EOGHWXM5.js → postSlackMessage-IPJ2HPKC.js} +2 -2
- package/dist/{propose-6QAGKBFG.js → propose-UFC5CRVG.js} +5 -5
- package/dist/{raise-UADRWTZE.js → raise-AWHJN5PS.js} +1 -1
- package/dist/{refine-4GHYIF7R.js → refine-2HT7X4Q3.js} +14 -14
- package/dist/{reply-UTOBFFKP.js → reply-QXSMUPXO.js} +2 -2
- package/dist/{restartNode-HJTZIR6I.js → restartNode-2DCPTOOE.js} +5 -5
- package/dist/{review-HIQXRL7U.js → review-M3EL4NJ7.js} +5 -5
- package/dist/{reviewPrComments-ZDNFSQIW.js → reviewPrComments-FRL5QJOW.js} +2 -2
- package/dist/{rewindPhase-7CXZMWRY.js → rewindPhase-WK2SFUPK.js} +8 -8
- package/dist/{run-WYJM7OH5.js → run-3UGWKORI.js} +10 -10
- package/dist/{run-HHISACD5.js → run-RWVOOLOQ.js} +10 -10
- package/dist/{runDaemon-ARFA66LK.js → runDaemon-D7OMPX4F.js} +59 -26
- package/dist/{runExtract-CTLWMXRG.js → runExtract-HCHT2Z6A.js} +1 -1
- package/dist/{runRefine-C5EGJWP3.js → runRefine-JURYPIDG.js} +14 -14
- package/dist/{scan-SP5UQPWP.js → scan-RQPVCLF6.js} +2 -2
- package/dist/{schemaConfirm-LRWRIDFO.js → schemaConfirm-SSOJL34W.js} +2 -2
- package/dist/{schemaUnlock-O3ENCUT6.js → schemaUnlock-Y5I3NWZT.js} +2 -2
- package/dist/{search-FGBAR6ZI.js → search-Z3EALCQT.js} +5 -5
- package/dist/{show-YEME2NJH.js → show-P7PK7BRV.js} +3 -3
- package/dist/{show-P3OACYLT.js → show-WP2QQPMY.js} +3 -3
- package/dist/{signExtension-W26BMN5K.js → signExtension-NVKKIUU6.js} +1 -1
- package/dist/{slack-HQPEBAAX.js → slack-4ZPQ5C5L.js} +2 -2
- package/dist/{updateNode-KQQYUC5P.js → updateNode-YPCZVJSA.js} +5 -5
- package/dist/{updatePlan-MQTC6WRG.js → updatePlan-U34WLBXQ.js} +5 -5
- package/dist/{web-WHMDGQN4.js → web-5RR4WETV.js} +16 -16
- package/dist/{web-P6JFUPFH.js → web-UDO3S4E5.js} +16 -16
- package/dist/{wontfix-FIYGOSWH.js → wontfix-PHYW2KQ7.js} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
printApprovedComments
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DYGEMDS7.js";
|
|
4
4
|
import {
|
|
5
5
|
isLiveDaemonSession
|
|
6
6
|
} from "./chunk-C5U44UI7.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitPreviewApproval
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KI7RHWH5.js";
|
|
10
10
|
import "./chunk-BAHQJHYD.js";
|
|
11
11
|
import {
|
|
12
12
|
readBodyArgument
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import "./chunk-OGJ6AZK4.js";
|
|
22
22
|
import {
|
|
23
23
|
harnessAdapter
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OAPWC2T4.js";
|
|
25
25
|
import "./chunk-MRUIXQXS.js";
|
|
26
26
|
import "./chunk-HO7RNI6V.js";
|
|
27
27
|
import "./chunk-DIAC4XYA.js";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createBranch,
|
|
3
3
|
generateBranchSlug,
|
|
4
4
|
isConciseSlug
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YJJJFSV6.js";
|
|
6
|
+
import "./chunk-C56W3PEA.js";
|
|
7
7
|
import "./chunk-OZNYQOQK.js";
|
|
8
8
|
import "./chunk-ORSRBZ2X.js";
|
|
9
9
|
import "./chunk-PCF66ALO.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-LMUTL44M.js";
|
|
|
18
18
|
import "./chunk-6NDXAN45.js";
|
|
19
19
|
import "./chunk-MELBVXKL.js";
|
|
20
20
|
import "./chunk-OGJ6AZK4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-OAPWC2T4.js";
|
|
22
22
|
import "./chunk-MRUIXQXS.js";
|
|
23
23
|
import "./chunk-HO7RNI6V.js";
|
|
24
24
|
import "./chunk-DIAC4XYA.js";
|
package/dist/built-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.1152.0
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lookupConversation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D6XI63MC.js";
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
readTranscriptTail
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OAPWC2T4.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/sessions/shared/targetConversationEvents.ts
|
|
10
10
|
async function targetConversationEvents(cwd, target) {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveLinkTarget,
|
|
12
12
|
usageWindowKey,
|
|
13
13
|
watcherLogPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4GMKRFT6.js";
|
|
15
15
|
import {
|
|
16
16
|
readLogTail
|
|
17
17
|
} from "./chunk-JNCFHWBK.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-3NPVVAAT.js";
|
|
27
27
|
import {
|
|
28
28
|
firstBrokenHop
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-A2GTJKBK.js";
|
|
30
30
|
import {
|
|
31
31
|
TRACE_HEADER,
|
|
32
32
|
newTraceId
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
ASSIST_VERSION,
|
|
36
36
|
PROTOCOL_VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XX5PPG3E.js";
|
|
38
38
|
import {
|
|
39
39
|
queryNodes
|
|
40
40
|
} from "./chunk-OD7CMDGZ.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-UJBW7FVI.js";
|
|
80
80
|
import {
|
|
81
81
|
targetConversationEvents
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-5UTFJBQW.js";
|
|
83
83
|
import {
|
|
84
84
|
configEntryLayers,
|
|
85
85
|
ghFailure,
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
} from "./chunk-AOTNNZPH.js";
|
|
216
216
|
import {
|
|
217
217
|
rewindItemToPhase
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-C67WW2XW.js";
|
|
219
219
|
import {
|
|
220
220
|
loadBacklogSummaries,
|
|
221
221
|
searchBacklogSummaries
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
} from "./chunk-IZBQH3LW.js";
|
|
243
243
|
import {
|
|
244
244
|
resolveRewindPlan
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-PSQ24TON.js";
|
|
246
246
|
import {
|
|
247
247
|
deleteItem,
|
|
248
248
|
getOrigin,
|
|
@@ -291,7 +291,7 @@ import {
|
|
|
291
291
|
discoverSessionJsonlPaths,
|
|
292
292
|
harnessAdapter,
|
|
293
293
|
parseSessionFile
|
|
294
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-OAPWC2T4.js";
|
|
295
295
|
import {
|
|
296
296
|
harnessLabel
|
|
297
297
|
} from "./chunk-AWIOBY7Q.js";
|
|
@@ -1548,15 +1548,35 @@ async function listCommitRefs(db, itemId2) {
|
|
|
1548
1548
|
}));
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
1551
|
+
// src/shared/withTimeout.ts
|
|
1552
|
+
function withTimeout(work, ms, label) {
|
|
1553
|
+
let timer;
|
|
1554
|
+
const expired = new Promise((_, reject) => {
|
|
1555
|
+
timer = setTimeout(
|
|
1556
|
+
() => reject(new Error(`${label} timed out after ${ms}ms`)),
|
|
1557
|
+
ms
|
|
1558
|
+
);
|
|
1559
|
+
});
|
|
1560
|
+
return Promise.race([work, expired]).finally(() => clearTimeout(timer));
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1551
1563
|
// src/commands/sessions/web/itemCommits.ts
|
|
1564
|
+
var LOOKUP_TIMEOUT_MS = 3e3;
|
|
1565
|
+
async function lookupItemCommits(sessionId) {
|
|
1566
|
+
const db = await getDb();
|
|
1567
|
+
const itemId2 = await findItemBySessionId(db, sessionId);
|
|
1568
|
+
if (itemId2 === void 0) return [];
|
|
1569
|
+
return listCommitRefs(db, itemId2);
|
|
1570
|
+
}
|
|
1552
1571
|
async function itemCommits(sessionId) {
|
|
1553
1572
|
try {
|
|
1554
1573
|
if (!process.env.ASSIST_DATABASE_URL && !loadConfig().database.url)
|
|
1555
1574
|
return [];
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1575
|
+
return await withTimeout(
|
|
1576
|
+
lookupItemCommits(sessionId),
|
|
1577
|
+
LOOKUP_TIMEOUT_MS,
|
|
1578
|
+
"item commits"
|
|
1579
|
+
);
|
|
1560
1580
|
} catch {
|
|
1561
1581
|
return [];
|
|
1562
1582
|
}
|
|
@@ -1678,13 +1698,18 @@ async function transcriptCommits(cwd, session) {
|
|
|
1678
1698
|
var cache = /* @__PURE__ */ new Map();
|
|
1679
1699
|
var inFlight = /* @__PURE__ */ new Map();
|
|
1680
1700
|
var CACHE_TTL_MS = 1e4;
|
|
1701
|
+
var LOOKUP_TIMEOUT_MS2 = 1e4;
|
|
1681
1702
|
async function committedPaths(cwd, session) {
|
|
1682
1703
|
const key = `${cwd} ${session.harness ?? ""}:${session.conversationId}`;
|
|
1683
1704
|
const cached2 = cache.get(key);
|
|
1684
1705
|
if (cached2 && cached2.expiresAt > Date.now()) return cached2.value;
|
|
1685
1706
|
const pending = inFlight.get(key);
|
|
1686
1707
|
if (pending) return pending;
|
|
1687
|
-
const lookup =
|
|
1708
|
+
const lookup = withTimeout(
|
|
1709
|
+
loadCommittedPaths(key, cwd, session),
|
|
1710
|
+
LOOKUP_TIMEOUT_MS2,
|
|
1711
|
+
"committed paths"
|
|
1712
|
+
).then((value) => {
|
|
1688
1713
|
cache.set(key, { value, expiresAt: Date.now() + CACHE_TTL_MS });
|
|
1689
1714
|
return value;
|
|
1690
1715
|
}).finally(() => inFlight.delete(key));
|
|
@@ -2855,6 +2880,7 @@ async function itemCountsFingerprint(cwd, groups, uncommitted) {
|
|
|
2855
2880
|
|
|
2856
2881
|
// src/commands/sessions/web/groupedCountsUnlessUnchanged.ts
|
|
2857
2882
|
var RECOUNT_AFTER_MS = 3e4;
|
|
2883
|
+
var COUNT_TIMEOUT_MS = 1e4;
|
|
2858
2884
|
var counted = /* @__PURE__ */ new Map();
|
|
2859
2885
|
var counting = /* @__PURE__ */ new Map();
|
|
2860
2886
|
function remember2(scope, fingerprint, counts) {
|
|
@@ -2879,7 +2905,11 @@ async function groupedCountsUnlessUnchanged(scope, cwd, groups, uncommitted) {
|
|
|
2879
2905
|
if (known) return known;
|
|
2880
2906
|
const pending = counting.get(scope);
|
|
2881
2907
|
if (pending?.fingerprint === fingerprint) return pending.counts;
|
|
2882
|
-
const counts =
|
|
2908
|
+
const counts = withTimeout(
|
|
2909
|
+
groupedCounts(cwd, groups),
|
|
2910
|
+
COUNT_TIMEOUT_MS,
|
|
2911
|
+
"grouped counts"
|
|
2912
|
+
).then((result) => {
|
|
2883
2913
|
remember2(scope, fingerprint, result);
|
|
2884
2914
|
return result;
|
|
2885
2915
|
}).finally(() => {
|
|
@@ -2935,16 +2965,16 @@ async function gitStatus(req, res) {
|
|
|
2935
2965
|
const session = getConversationParam(req);
|
|
2936
2966
|
const changeSet = await itemChangeSet(cwd, session).catch(() => void 0);
|
|
2937
2967
|
const uncommitted = await workingTreeCounts(cwd);
|
|
2938
|
-
|
|
2939
|
-
respondJson(res, 200, { ...uncommitted, ...branch });
|
|
2940
|
-
return;
|
|
2941
|
-
}
|
|
2942
|
-
const counts = await groupedCountsUnlessUnchanged(
|
|
2968
|
+
const counts = changeSet && await groupedCountsUnlessUnchanged(
|
|
2943
2969
|
`${cwd} ${session?.harness ?? ""}:${session?.conversationId ?? ""}`,
|
|
2944
2970
|
cwd,
|
|
2945
2971
|
changeSet.groups,
|
|
2946
2972
|
uncommitted
|
|
2947
|
-
);
|
|
2973
|
+
).catch(() => void 0);
|
|
2974
|
+
if (!changeSet || !counts) {
|
|
2975
|
+
respondJson(res, 200, { ...uncommitted, ...branch });
|
|
2976
|
+
return;
|
|
2977
|
+
}
|
|
2948
2978
|
respondJson(res, 200, {
|
|
2949
2979
|
...counts,
|
|
2950
2980
|
...branch,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isPausePending,
|
|
10
10
|
recordPhaseSession,
|
|
11
11
|
releaseLock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3ETEYHXZ.js";
|
|
13
13
|
import {
|
|
14
14
|
resumeNudge
|
|
15
15
|
} from "./chunk-LFRSZIAS.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
createBranch,
|
|
31
31
|
generateBranchSlug
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YJJJFSV6.js";
|
|
33
33
|
import {
|
|
34
34
|
setSessionStatus
|
|
35
35
|
} from "./chunk-WTQRIUSK.js";
|
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
buildReviewPhase,
|
|
44
44
|
resolveReviewPhase
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-CNDR5OUJ.js";
|
|
46
46
|
import {
|
|
47
47
|
resolvePlan
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-QAS45635.js";
|
|
49
49
|
import {
|
|
50
50
|
buildPhasePrompt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-INKR7DE3.js";
|
|
52
52
|
import {
|
|
53
53
|
findOneItem,
|
|
54
54
|
getOrigin,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
harnessAdapter,
|
|
74
74
|
withoutResumeSession
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-OAPWC2T4.js";
|
|
76
76
|
import {
|
|
77
77
|
buildFeature
|
|
78
78
|
} from "./chunk-PXQTFJ2N.js";
|
|
@@ -48,6 +48,17 @@ The reviewer left ${comments.length} comment${comments.length === 1 ? "" : "s"}
|
|
|
48
48
|
process.exit(1);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
// src/commands/sessions/shared/currentClaudeTaskId.ts
|
|
52
|
+
import { readlinkSync } from "fs";
|
|
53
|
+
var TASK_OUTPUT = /[\\/]tasks[\\/](b[0-9a-z]+)\.output$/;
|
|
54
|
+
function currentClaudeTaskId() {
|
|
55
|
+
try {
|
|
56
|
+
return readlinkSync("/proc/self/fd/1").match(TASK_OUTPUT)?.[1];
|
|
57
|
+
} catch {
|
|
58
|
+
return void 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
51
62
|
// src/commands/sessions/shared/toAnswers.ts
|
|
52
63
|
function toAnswers(value) {
|
|
53
64
|
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
@@ -184,8 +195,10 @@ function requestPreviewDecision(request) {
|
|
|
184
195
|
"close",
|
|
185
196
|
() => finish(new Error("daemon closed before a decision was made"))
|
|
186
197
|
);
|
|
187
|
-
socket.write(
|
|
188
|
-
|
|
198
|
+
socket.write(
|
|
199
|
+
`${JSON.stringify({ type: "pr-preview", ...request, taskId: currentClaudeTaskId() })}
|
|
200
|
+
`
|
|
201
|
+
);
|
|
189
202
|
}, reject);
|
|
190
203
|
});
|
|
191
204
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PPWM3WBM.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-
|
|
13
|
+
} from "./chunk-B3L73DOX.js";
|
|
14
14
|
import {
|
|
15
15
|
resumeNudge
|
|
16
16
|
} from "./chunk-LFRSZIAS.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-NWNODYLQ.js";
|
|
30
30
|
import {
|
|
31
31
|
isBlocked
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7QD3L7KA.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-OAPWC2T4.js";
|
|
51
51
|
|
|
52
52
|
// src/commands/backlog/launchMode.ts
|
|
53
53
|
import chalk3 from "chalk";
|