@staff0rd/assist 0.1211.0 → 0.1213.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/commands/add-rule.md +4 -2
- package/dist/.build-files +139 -139
- package/dist/{add-PWEDXHMT.js → add-EZJUAHEI.js} +3 -3
- package/dist/{addActivity-J24A3PUK.js → addActivity-JOGJJZE7.js} +6 -6
- package/dist/{addPhase-JL3NKJSC.js → addPhase-RCLTCRDF.js} +12 -12
- package/dist/{advise-UQJGSYAY.js → advise-AG7OMJ3R.js} +10 -10
- package/dist/{ask-OPUZZIE3.js → ask-W2ZNR75N.js} +7 -7
- package/dist/{askCheck-7BV7TOU4.js → askCheck-T3I6Q2EP.js} +15 -15
- package/dist/{askDesign-LX33IIVG.js → askDesign-KZ4WYWZU.js} +10 -10
- package/dist/{askQuestion-EM27OQSM.js → askQuestion-Y63IMF3R.js} +6 -6
- package/dist/{branch-6QP53MBP.js → branch-W5BHBLBB.js} +8 -8
- package/dist/built-version +1 -1
- package/dist/{check-ZXDNWKQX.js → check-4222IYZK.js} +3 -3
- package/dist/{chunk-3K47OPUC.js → chunk-2D3ZCQE3.js} +2 -5
- package/dist/{chunk-J2IZORCE.js → chunk-2I3MMPKJ.js} +1 -1
- package/dist/{chunk-5GE3M3D3.js → chunk-2LE4KXEV.js} +2 -2
- package/dist/{chunk-EH536EOJ.js → chunk-335IJSZA.js} +3 -3
- package/dist/{chunk-HV4KTY5R.js → chunk-4FLN5D6W.js} +1 -1
- package/dist/{chunk-2GM4WZCU.js → chunk-66TQS45B.js} +1 -1
- package/dist/{chunk-IDDKZ2QX.js → chunk-7Z36ABH4.js} +1 -1
- package/dist/{chunk-6QNME3FE.js → chunk-7ZPDPCA6.js} +1 -1
- package/dist/{chunk-SE5PMYLT.js → chunk-AREFKCN5.js} +3 -3
- package/dist/{chunk-QBMFBNEG.js → chunk-BL7W6YRK.js} +7 -7
- package/dist/{chunk-T6XYXQM3.js → chunk-CQDPHLI3.js} +1 -1
- package/dist/{chunk-W23SGDCN.js → chunk-CS3E3ARZ.js} +1 -1
- package/dist/{chunk-J7MXNBHI.js → chunk-CUGSML2B.js} +1 -1
- package/dist/{chunk-CBPF2T7Q.js → chunk-CZ62NUZV.js} +1 -1
- package/dist/{chunk-X7DJE2JP.js → chunk-DM7ZP7OH.js} +2 -2
- package/dist/{chunk-CV72PJ76.js → chunk-DN3DZ6H7.js} +11 -2
- package/dist/{chunk-L2XD557T.js → chunk-DVKW6CP4.js} +2 -2
- package/dist/{chunk-W356LY6D.js → chunk-EOOPPGMZ.js} +16 -0
- package/dist/{chunk-OHGJBYWE.js → chunk-F434P5UD.js} +2 -2
- package/dist/{chunk-FWXTQHO2.js → chunk-FTNVJRGH.js} +4 -4
- package/dist/{chunk-BGQTKLYD.js → chunk-FYFQQ565.js} +4 -4
- package/dist/{chunk-6FA5JUHF.js → chunk-GJWUEPPD.js} +1 -1
- package/dist/{chunk-ATWODWUK.js → chunk-GRDBSI7H.js} +1 -1
- package/dist/{chunk-INDAPDTU.js → chunk-HA2J6TGK.js} +60 -31
- package/dist/{chunk-HZAT5QBJ.js → chunk-IIJ4AI4C.js} +7 -7
- package/dist/{chunk-WHLB5F6P.js → chunk-IKL7P6NP.js} +1 -1
- package/dist/{chunk-DZBQRJLT.js → chunk-K4DJEFDZ.js} +1 -1
- package/dist/{chunk-ON25VUQS.js → chunk-KJ3OKLBQ.js} +1 -1
- package/dist/{chunk-257YFQ4G.js → chunk-KQOUE3WV.js} +1 -1
- package/dist/{chunk-NW2JSDY6.js → chunk-KWMG4BPT.js} +1 -1
- package/dist/{chunk-3P6FAG5Z.js → chunk-L4DE4ZRV.js} +1 -1
- package/dist/{chunk-EVXNDO7B.js → chunk-LH6L7JLA.js} +1 -1
- package/dist/{chunk-B6F37LCP.js → chunk-MMEOHVBU.js} +4 -4
- package/dist/{chunk-ICQAYEFY.js → chunk-MV64NHCW.js} +2 -2
- package/dist/{chunk-J3A42OYC.js → chunk-OHDUK77O.js} +1 -1
- package/dist/{chunk-RLWSM5QM.js → chunk-OPGROK7P.js} +2 -2
- package/dist/{chunk-65DQSH6Y.js → chunk-PIONZPIS.js} +2 -2
- package/dist/{chunk-MKBRD6TF.js → chunk-PPJGEDUO.js} +4 -4
- package/dist/{chunk-2F2IKQDM.js → chunk-QBDPUOLA.js} +1 -1
- package/dist/{chunk-2VZZ543N.js → chunk-QK3AYGT3.js} +1 -1
- package/dist/{chunk-AXIXL47Y.js → chunk-RGITC6GP.js} +1 -1
- package/dist/{chunk-IXBA6TVF.js → chunk-RZRY47PA.js} +2 -2
- package/dist/{chunk-YC7WO4ET.js → chunk-S56CW6LZ.js} +1 -1
- package/dist/{chunk-YDQIXIRP.js → chunk-S65PQ4QX.js} +2 -2
- package/dist/{chunk-JI2GUUWM.js → chunk-SVLIH3AL.js} +1 -1
- package/dist/{chunk-D5PWONNI.js → chunk-SVTEKYM2.js} +1 -1
- package/dist/{chunk-OBXJB3CY.js → chunk-T54TTGXU.js} +1 -1
- package/dist/{chunk-4QXA7WWO.js → chunk-T56YZ5YH.js} +1 -1
- package/dist/{chunk-LWU6ITEL.js → chunk-TEPDPWTW.js} +2 -2
- package/dist/{chunk-LQMU4BUO.js → chunk-U3IQIWLI.js} +1 -1
- package/dist/{chunk-6MYNVHWM.js → chunk-UNIRIQVI.js} +1 -1
- package/dist/{chunk-KVQ4QMGJ.js → chunk-UNRY64ES.js} +1 -1
- package/dist/{chunk-EF33C7EX.js → chunk-UVCAGPRO.js} +1 -1
- package/dist/{chunk-SZLVP4T4.js → chunk-VDOZCOQS.js} +2 -2
- package/dist/{chunk-6CMLXDMS.js → chunk-VTXNOOK4.js} +1 -1
- package/dist/{chunk-JKHOKRLE.js → chunk-WP4VQMD6.js} +2 -2
- package/dist/{chunk-VUFTZGRE.js → chunk-WPBBSIPP.js} +1 -1
- package/dist/{chunk-5SDSC2UT.js → chunk-WVTWOSHZ.js} +1 -1
- package/dist/{chunk-SDB7VRGZ.js → chunk-XG3C3JSK.js} +1 -1
- package/dist/{chunk-NMFBCWVV.js → chunk-YLQAQHRT.js} +1 -1
- package/dist/{chunk-62UBYSPF.js → chunk-Z3WDRMDL.js} +1 -1
- package/dist/{chunk-TFOO4EAJ.js → chunk-ZC6RX66V.js} +1 -1
- package/dist/{chunk-2KAACFP6.js → chunk-ZHUQP5EF.js} +1 -1
- package/dist/{cliHook-QA2GFD3X.js → cliHook-ZDPXVT7I.js} +12 -12
- package/dist/{cliHookCheck-3GRSZRWY.js → cliHookCheck-DZSIPFBE.js} +7 -7
- package/dist/{codeCommentSet-EC5LIQNV.js → codeCommentSet-FIUWG7EL.js} +4 -4
- package/dist/{codexHook-UC5JGTE4.js → codexHook-HM33YTU3.js} +15 -15
- package/dist/{codexHookTrust-WZ5AVWHI.js → codexHookTrust-X7A73HGN.js} +2 -2
- package/dist/commands/sessions/web/bundle.js +461 -459
- package/dist/{comment-NHJMRR4S.js → comment-4U4GN3YV.js} +8 -8
- package/dist/{commentIssue-DTZMXY2Y.js → commentIssue-DTP47M7V.js} +7 -7
- package/dist/{commit-YNA2EJJI.js → commit-AG5NQTPY.js} +9 -9
- package/dist/{configGet-Q35KGCZM.js → configGet-5L6N7VKH.js} +3 -3
- package/dist/{configKeys-ESFJJL6F.js → configKeys-G6OXD42P.js} +3 -3
- package/dist/{configKeys-KHVWILYT.js → configKeys-WPCJK4PQ.js} +2 -2
- package/dist/{createIssue-SNM7DFZD.js → createIssue-54DXD3CG.js} +6 -6
- package/dist/{docsUnlock-QBON2H3L.js → docsUnlock-Y7YBDC7H.js} +5 -5
- package/dist/{doctorNodes-XNXTRQUC.js → doctorNodes-LSSTJG3K.js} +3 -3
- package/dist/{done-ZOYCIYHZ.js → done-4AYDCPAI.js} +10 -10
- package/dist/{edit-AYOQRDLF.js → edit-3DINUPSQ.js} +6 -6
- package/dist/{editHook-6GAAR5M3.js → editHook-B3YTUZFV.js} +12 -12
- package/dist/{editIssue-4YD6J2T7.js → editIssue-DPLFROHD.js} +6 -6
- package/dist/{editIssueComment-CFEPGXQ6.js → editIssueComment-53TOKGX2.js} +7 -7
- package/dist/{fixConflict-VNGDPCRR.js → fixConflict-QFWLEXN3.js} +11 -11
- package/dist/{harnessFollowUps-T7OGTHQF.js → harnessFollowUps-W7N2ORIC.js} +1 -1
- package/dist/index.js +93 -93
- package/dist/{launchMode-7LDWQ35U.js → launchMode-NRSERDKC.js} +22 -22
- package/dist/{lint-ASAE7NX6.js → lint-TDI6KZ7A.js} +3 -3
- package/dist/{list-VNMPJPYS.js → list-IC4D5TKK.js} +11 -11
- package/dist/{migrate-IJKXZCAF.js → migrate-EXFKHV3N.js} +8 -8
- package/dist/{newCli-4UWFVT3W.js → newCli-O3BXVIXV.js} +4 -4
- package/dist/{next-36PMOJBR.js → next-J2BFGFPI.js} +21 -21
- package/dist/{notify-D337HCKX.js → notify-4MIQCSWO.js} +3 -3
- package/dist/{permitCliReads-NULJQE3W.js → permitCliReads-R5HUCLTX.js} +3 -3
- package/dist/{phaseDone-FJXYEZDG.js → phaseDone-GPMNF6RZ.js} +11 -11
- package/dist/{piHook-QFDZJWJJ.js → piHook-R2KLLME5.js} +12 -12
- package/dist/{postSlackMessage-WF5MVNAI.js → postSlackMessage-CTTOGVI3.js} +7 -7
- package/dist/{printComments-OGLWJHRC.js → printComments-JEFLCMVX.js} +3 -3
- package/dist/{propose-DU2TW3TD.js → propose-SOEEJUW3.js} +13 -13
- package/dist/{raise-DIO73ZXW.js → raise-CFOYN7RZ.js} +6 -6
- package/dist/{refine-T5FDNYEM.js → refine-EC2USXGN.js} +23 -23
- package/dist/{reply-NWH43MYG.js → reply-WCDWD66S.js} +7 -7
- package/dist/{resolveHarness-Z6C4LH4B.js → resolveHarness-Q53GCTJE.js} +2 -2
- package/dist/{resolveModel-NJHWCN2G.js → resolveModel-G7GJGUAY.js} +2 -2
- package/dist/{restartNode-Y7L2GSGV.js → restartNode-SX2VKO5N.js} +5 -5
- package/dist/{review-QHTHJU72.js → review-STB4WEZS.js} +17 -17
- package/dist/{reviewPrComments-JNBOGJ4F.js → reviewPrComments-I72GJXNK.js} +11 -11
- package/dist/{rewindPhase-RVQRUWBX.js → rewindPhase-RKATMLUZ.js} +14 -14
- package/dist/{rulesAdd-S5UCL6JD.js → rulesAdd-XYXGF5SQ.js} +7 -7
- package/dist/{run-V3TNDPDS.js → run-ITDRO7K5.js} +19 -19
- package/dist/{run-MS2PKO4R.js → run-SZ6GHWER.js} +19 -19
- package/dist/{runDaemon-G245BUZF.js → runDaemon-7XB44V6Z.js} +25 -31
- package/dist/{runExtract-56HKDZWD.js → runExtract-PTONY7UJ.js} +6 -6
- package/dist/{runParallelPhase-EKM4GLK7.js → runParallelPhase-YLJPYQOM.js} +14 -14
- package/dist/{runRefine-CU3PMW3K.js → runRefine-E3ZLJYXJ.js} +24 -24
- package/dist/{runScope-2LB34N6K.js → runScope-A6IRHEBF.js} +4 -4
- package/dist/{scan-TOEDTT3B.js → scan-FBVX2CX4.js} +8 -8
- package/dist/{schemaConfirm-D5LFUE5G.js → schemaConfirm-EHLOP77W.js} +7 -7
- package/dist/{schemaLock-VYTWIP4J.js → schemaLock-WUY4PMBZ.js} +7 -7
- package/dist/{schemaUnlock-UJ7LGVYA.js → schemaUnlock-USXQOFZV.js} +10 -10
- package/dist/{search-RWJAVTCK.js → search-NZAWFOLS.js} +11 -11
- package/dist/{show-WFS5UHAP.js → show-6YMUENZE.js} +9 -9
- package/dist/{show-MPF2IFMM.js → show-M5TH7EGS.js} +8 -8
- package/dist/{signExtension-V3OU4AYJ.js → signExtension-CY6DCEKH.js} +1 -1
- package/dist/{slack-ST3UGGWU.js → slack-Y7LJCVZX.js} +7 -7
- package/dist/{sync-2Y2ARKTH.js → sync-ZXOYIHNP.js} +3 -3
- package/dist/{updateNode-PGVDQUE2.js → updateNode-ICEZQLF4.js} +5 -5
- package/dist/{updatePlan-4L6P4TON.js → updatePlan-YGS3KWES.js} +12 -12
- package/dist/{web-OYSQ5VI6.js → web-L4UMWMWQ.js} +25 -25
- package/dist/{web-WITH7MEV.js → web-SMMQBDM4.js} +25 -25
- package/dist/{wontfix-RNUMSQJU.js → wontfix-IW6I53QK.js} +7 -7
- package/package.json +1 -1
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
codexRolloutMeta,
|
|
17
17
|
deriveHistoryFields,
|
|
18
18
|
readCodexHeadLines
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MMEOHVBU.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveHarness
|
|
22
22
|
} from "./chunk-XZSATLYY.js";
|
|
23
23
|
import {
|
|
24
24
|
harnesses
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EOOPPGMZ.js";
|
|
26
26
|
import {
|
|
27
27
|
NODE_VERSION_KEY,
|
|
28
28
|
declaredNode
|
|
@@ -30,6 +30,9 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
resolveCurrentOrigin
|
|
32
32
|
} from "./chunk-GRXFWFGP.js";
|
|
33
|
+
import {
|
|
34
|
+
harnessKinds
|
|
35
|
+
} from "./chunk-3WJYRKC3.js";
|
|
33
36
|
import {
|
|
34
37
|
daemonPaths
|
|
35
38
|
} from "./chunk-JJKKIBF5.js";
|
|
@@ -256,6 +259,11 @@ function parseUsageWindowKey(key) {
|
|
|
256
259
|
// src/commands/sessions/shared/AutoUpdateAction.ts
|
|
257
260
|
var AUTO_UPDATE_ACTIONS = ["pause", "resume", "check"];
|
|
258
261
|
|
|
262
|
+
// src/shared/isHarnessKind.ts
|
|
263
|
+
function isHarnessKind(value) {
|
|
264
|
+
return harnessKinds.includes(value);
|
|
265
|
+
}
|
|
266
|
+
|
|
259
267
|
// src/commands/sessions/daemon/worktree/watcherLogPath.ts
|
|
260
268
|
import { createHash } from "crypto";
|
|
261
269
|
import { homedir } from "os";
|
|
@@ -316,6 +324,7 @@ export {
|
|
|
316
324
|
parseCodexSessionFile,
|
|
317
325
|
headCommit,
|
|
318
326
|
harnessKindOf,
|
|
327
|
+
isHarnessKind,
|
|
319
328
|
harnessUsageAccounts,
|
|
320
329
|
RATE_LIMIT_WINDOWS,
|
|
321
330
|
usageWindowKey,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveReviewPhase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SVLIH3AL.js";
|
|
4
4
|
import {
|
|
5
5
|
resolvePlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RGITC6GP.js";
|
|
7
7
|
|
|
8
8
|
// src/commands/backlog/resolveRewindPlan.ts
|
|
9
9
|
function resolveRewindPlan(item) {
|
|
@@ -23,6 +23,10 @@ var claudeHarness = {
|
|
|
23
23
|
kind: "claude",
|
|
24
24
|
command: "claude",
|
|
25
25
|
homeDir: path.join(os.homedir(), ".claude"),
|
|
26
|
+
slashCommandSources: {
|
|
27
|
+
userHomes: [path.join(os.homedir(), ".claude")],
|
|
28
|
+
projectDirs: [".claude"]
|
|
29
|
+
},
|
|
26
30
|
sync: {
|
|
27
31
|
commandDest: (name) => path.join("skills", name, "SKILL.md"),
|
|
28
32
|
designPromptDest: "design-system-prompt.md",
|
|
@@ -34,6 +38,14 @@ var codexHarness = {
|
|
|
34
38
|
kind: "codex",
|
|
35
39
|
command: "codex",
|
|
36
40
|
homeDir: path.join(os.homedir(), ".codex"),
|
|
41
|
+
// why: Codex reads user skills from $CODEX_HOME/skills (where assist sync installs them) and ~/.agents/skills, and project skills from .agents/skills (legacy .codex/skills)
|
|
42
|
+
slashCommandSources: {
|
|
43
|
+
userHomes: [
|
|
44
|
+
path.join(os.homedir(), ".codex"),
|
|
45
|
+
path.join(os.homedir(), ".agents")
|
|
46
|
+
],
|
|
47
|
+
projectDirs: [".agents", ".codex"]
|
|
48
|
+
},
|
|
37
49
|
sync: {
|
|
38
50
|
commandDest: (name) => path.join("skills", name, "SKILL.md"),
|
|
39
51
|
designPromptDest: path.join("assist", "design-system-prompt.md"),
|
|
@@ -50,6 +62,10 @@ var harnesses = {
|
|
|
50
62
|
kind: "pi",
|
|
51
63
|
command: "pi",
|
|
52
64
|
homeDir: path.join(os.homedir(), ".pi", "agent"),
|
|
65
|
+
slashCommandSources: {
|
|
66
|
+
userHomes: [path.join(os.homedir(), ".pi", "agent")],
|
|
67
|
+
projectDirs: [".pi"]
|
|
68
|
+
},
|
|
53
69
|
sync: {
|
|
54
70
|
commandDest: (name) => path.join("prompts", `${name}.md`),
|
|
55
71
|
designPromptDest: path.join("assist", "design-system-prompt.md"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
backlogPhaseActivity,
|
|
3
3
|
recordPhaseSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S56CW6LZ.js";
|
|
5
5
|
import {
|
|
6
6
|
resumeNudge
|
|
7
7
|
} from "./chunk-7NZOH4LN.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-ZYK7V4PG.js";
|
|
12
12
|
import {
|
|
13
13
|
preassignedId
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CS3E3ARZ.js";
|
|
15
15
|
import {
|
|
16
16
|
emitActivity
|
|
17
17
|
} from "./chunk-3DNFNT2L.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-LQMXLKPW.js";
|
|
27
27
|
import {
|
|
28
28
|
buildPhasePrompt
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KJ3OKLBQ.js";
|
|
30
30
|
import {
|
|
31
31
|
getReady
|
|
32
32
|
} from "./chunk-GINJQIVR.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-2R4VODAU.js";
|
|
39
39
|
import {
|
|
40
40
|
harnessAdapter
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-MMEOHVBU.js";
|
|
42
42
|
import {
|
|
43
43
|
getSignalPath
|
|
44
44
|
} from "./chunk-P23ZWXGY.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
isDocsPath,
|
|
9
9
|
isSchemaPath,
|
|
10
10
|
mentionsDocsPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZC6RX66V.js";
|
|
12
12
|
import {
|
|
13
13
|
isSchemaLocked
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UNRY64ES.js";
|
|
15
15
|
import {
|
|
16
16
|
findBuiltinDenyRaw,
|
|
17
17
|
findDeny,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isApprovedRead,
|
|
22
22
|
resolvePermission,
|
|
23
23
|
splitCompound
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DM7ZP7OH.js";
|
|
25
25
|
import {
|
|
26
26
|
inWebSession
|
|
27
27
|
} from "./chunk-HKGCLAZ7.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-XJTXAL22.js";
|
|
34
34
|
import {
|
|
35
35
|
defersPreviewWait
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RZRY47PA.js";
|
|
37
37
|
import {
|
|
38
38
|
askQuestionEnabled
|
|
39
39
|
} from "./chunk-IBPSXDUB.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-JM57BCD6.js";
|
|
11
11
|
import {
|
|
12
12
|
firstBrokenHop
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SVTEKYM2.js";
|
|
14
14
|
import {
|
|
15
15
|
describePeerError,
|
|
16
16
|
fetchPeerJson
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
harnessKindOf,
|
|
31
31
|
headCommit,
|
|
32
32
|
isBusy,
|
|
33
|
+
isHarnessKind,
|
|
33
34
|
parseCodexSessionFile,
|
|
34
35
|
parseUsageWindowKey,
|
|
35
36
|
reExecOnDeclaredNode,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
resolveLinkTarget,
|
|
40
41
|
usageWindowKey,
|
|
41
42
|
watcherLogPath
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DN3DZ6H7.js";
|
|
43
44
|
import {
|
|
44
45
|
TRACE_HEADER,
|
|
45
46
|
newTraceId
|
|
@@ -47,7 +48,7 @@ import {
|
|
|
47
48
|
import {
|
|
48
49
|
ASSIST_VERSION,
|
|
49
50
|
PROTOCOL_VERSION
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2I3MMPKJ.js";
|
|
51
52
|
import {
|
|
52
53
|
findLinkSpec
|
|
53
54
|
} from "./chunk-JWMBBFAS.js";
|
|
@@ -84,7 +85,7 @@ import {
|
|
|
84
85
|
} from "./chunk-UJBW7FVI.js";
|
|
85
86
|
import {
|
|
86
87
|
targetConversationEvents
|
|
87
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-VDOZCOQS.js";
|
|
88
89
|
import {
|
|
89
90
|
configEntryLayers,
|
|
90
91
|
ghFailure,
|
|
@@ -206,7 +207,7 @@ import {
|
|
|
206
207
|
} from "./chunk-NPX2RC46.js";
|
|
207
208
|
import {
|
|
208
209
|
configHelpForKey
|
|
209
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-7ZPDPCA6.js";
|
|
210
211
|
import {
|
|
211
212
|
describeConfigLeaves
|
|
212
213
|
} from "./chunk-4VCL6RJV.js";
|
|
@@ -251,7 +252,7 @@ import {
|
|
|
251
252
|
} from "./chunk-ILJBR4Z5.js";
|
|
252
253
|
import {
|
|
253
254
|
rewindItemToPhase
|
|
254
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-WP4VQMD6.js";
|
|
255
256
|
import {
|
|
256
257
|
loadItemSummaries,
|
|
257
258
|
phaseUsageTotals,
|
|
@@ -280,7 +281,7 @@ import {
|
|
|
280
281
|
} from "./chunk-AA4LR7TZ.js";
|
|
281
282
|
import {
|
|
282
283
|
resolveRewindPlan
|
|
283
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-DVKW6CP4.js";
|
|
284
285
|
import {
|
|
285
286
|
deleteItem,
|
|
286
287
|
getOrigin,
|
|
@@ -322,14 +323,14 @@ import {
|
|
|
322
323
|
} from "./chunk-7GSALENY.js";
|
|
323
324
|
import {
|
|
324
325
|
resolveFeature
|
|
325
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-QBDPUOLA.js";
|
|
326
327
|
import {
|
|
327
328
|
detectHarness,
|
|
328
329
|
discoverCodexRolloutPaths,
|
|
329
330
|
discoverSessionJsonlPaths,
|
|
330
331
|
harnessAdapter,
|
|
331
332
|
parseSessionFile
|
|
332
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-MMEOHVBU.js";
|
|
333
334
|
import {
|
|
334
335
|
harnessLabel
|
|
335
336
|
} from "./chunk-XZSATLYY.js";
|
|
@@ -338,7 +339,7 @@ import {
|
|
|
338
339
|
} from "./chunk-FXIJIVYO.js";
|
|
339
340
|
import {
|
|
340
341
|
defaultHotkeys
|
|
341
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-QK3AYGT3.js";
|
|
342
343
|
import {
|
|
343
344
|
harnessFeatures
|
|
344
345
|
} from "./chunk-LKZ7J5AK.js";
|
|
@@ -353,7 +354,7 @@ import {
|
|
|
353
354
|
} from "./chunk-GVVK5XFZ.js";
|
|
354
355
|
import {
|
|
355
356
|
harnesses
|
|
356
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-EOOPPGMZ.js";
|
|
357
358
|
import {
|
|
358
359
|
setBacklogDir
|
|
359
360
|
} from "./chunk-C42HQYEM.js";
|
|
@@ -1475,14 +1476,14 @@ async function daemonLogTail(req, res) {
|
|
|
1475
1476
|
}
|
|
1476
1477
|
|
|
1477
1478
|
// src/commands/sessions/shared/conversationFromParams.ts
|
|
1478
|
-
function
|
|
1479
|
+
function isHarnessKind2(value) {
|
|
1479
1480
|
return harnessKinds.includes(value);
|
|
1480
1481
|
}
|
|
1481
1482
|
function conversationFromParams(params) {
|
|
1482
1483
|
const conversationId = params.get("session");
|
|
1483
1484
|
if (!conversationId) return void 0;
|
|
1484
1485
|
const harness = params.get("harness");
|
|
1485
|
-
return
|
|
1486
|
+
return isHarnessKind2(harness) ? { conversationId, harness } : { conversationId };
|
|
1486
1487
|
}
|
|
1487
1488
|
|
|
1488
1489
|
// src/commands/sessions/web/getConversationParam.ts
|
|
@@ -5202,6 +5203,14 @@ function listScopedRules(req, res) {
|
|
|
5202
5203
|
// src/commands/sessions/web/slashCommands/listSlashCommands.ts
|
|
5203
5204
|
import path6 from "path";
|
|
5204
5205
|
|
|
5206
|
+
// src/commands/sessions/web/slashCommands/mergeSourceCommands.ts
|
|
5207
|
+
function mergeSourceCommands(lists) {
|
|
5208
|
+
const byName = /* @__PURE__ */ new Map();
|
|
5209
|
+
for (const command of lists.flat())
|
|
5210
|
+
if (!byName.has(command.name)) byName.set(command.name, command);
|
|
5211
|
+
return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
5212
|
+
}
|
|
5213
|
+
|
|
5205
5214
|
// src/commands/sessions/web/slashCommands/readSlashCommands.ts
|
|
5206
5215
|
import fs from "fs";
|
|
5207
5216
|
import path5 from "path";
|
|
@@ -5250,19 +5259,33 @@ function readSlashCommands(home, scope) {
|
|
|
5250
5259
|
}
|
|
5251
5260
|
|
|
5252
5261
|
// src/commands/sessions/web/slashCommands/listSlashCommands.ts
|
|
5253
|
-
function listSlashCommands(
|
|
5254
|
-
const user =
|
|
5262
|
+
function listSlashCommands(sources, cwd, projectCommands) {
|
|
5263
|
+
const user = mergeSourceCommands(
|
|
5264
|
+
sources.userHomes.map((home) => readSlashCommands(home, "user"))
|
|
5265
|
+
);
|
|
5255
5266
|
const userNames = new Set(user.map((command) => command.name));
|
|
5256
|
-
const project = projectCommands ??
|
|
5267
|
+
const project = projectCommands ?? mergeSourceCommands(
|
|
5268
|
+
sources.projectDirs.map(
|
|
5269
|
+
(dir) => readSlashCommands(path6.join(cwd, dir), "project")
|
|
5270
|
+
)
|
|
5271
|
+
);
|
|
5257
5272
|
return [
|
|
5258
5273
|
...user,
|
|
5259
5274
|
...project.filter((command) => !userNames.has(command.name))
|
|
5260
5275
|
];
|
|
5261
5276
|
}
|
|
5262
5277
|
|
|
5278
|
+
// src/commands/sessions/web/slashCommands/requestedSlashSources.ts
|
|
5279
|
+
function requestedSlashSources(req) {
|
|
5280
|
+
const params = new URL(req.url ?? "/", "http://localhost").searchParams;
|
|
5281
|
+
const harness = params.get("harness");
|
|
5282
|
+
return {
|
|
5283
|
+
sources: harnesses[isHarnessKind(harness) ? harness : "claude"].slashCommandSources,
|
|
5284
|
+
startPoint: params.get("startPoint") === "1"
|
|
5285
|
+
};
|
|
5286
|
+
}
|
|
5287
|
+
|
|
5263
5288
|
// src/commands/sessions/web/slashCommands/readSlashCommandsAtRef.ts
|
|
5264
|
-
var COMMAND = /^\.claude\/commands\/([^/]+)\.md$/;
|
|
5265
|
-
var SKILL = /^\.claude\/skills\/([^/]+)\/SKILL\.md$/;
|
|
5266
5289
|
async function describeAt(repo, ref, file) {
|
|
5267
5290
|
const content = await gitOrNull(repo, ["show", `${ref}:${file}`]);
|
|
5268
5291
|
return content ? splitFrontmatter(content).description : void 0;
|
|
@@ -5279,7 +5302,7 @@ async function entriesMatching(repo, ref, files, pattern) {
|
|
|
5279
5302
|
}))
|
|
5280
5303
|
);
|
|
5281
5304
|
}
|
|
5282
|
-
async function readSlashCommandsAtRef(repo, ref, scope) {
|
|
5305
|
+
async function readSlashCommandsAtRef(repo, ref, scope, projectDir = ".claude") {
|
|
5283
5306
|
if (!await gitOrNull(repo, ["rev-parse", "--verify", "--quiet", ref]))
|
|
5284
5307
|
return null;
|
|
5285
5308
|
const listing = await gitOrNull(repo, [
|
|
@@ -5289,39 +5312,45 @@ async function readSlashCommandsAtRef(repo, ref, scope) {
|
|
|
5289
5312
|
"--name-only",
|
|
5290
5313
|
ref,
|
|
5291
5314
|
"--",
|
|
5292
|
-
|
|
5293
|
-
|
|
5315
|
+
`${projectDir}/commands`,
|
|
5316
|
+
`${projectDir}/skills`
|
|
5294
5317
|
]);
|
|
5295
5318
|
const files = listing ? listing.split("\n") : [];
|
|
5319
|
+
const dir = projectDir.replaceAll(".", String.raw`\.`);
|
|
5320
|
+
const command = new RegExp(`^${dir}/commands/([^/]+)\\.md$`);
|
|
5321
|
+
const skill = new RegExp(`^${dir}/skills/([^/]+)/SKILL\\.md$`);
|
|
5296
5322
|
return mergeSlashCommands(
|
|
5297
|
-
await entriesMatching(repo, ref, files,
|
|
5298
|
-
await entriesMatching(repo, ref, files,
|
|
5323
|
+
await entriesMatching(repo, ref, files, command),
|
|
5324
|
+
await entriesMatching(repo, ref, files, skill),
|
|
5299
5325
|
scope
|
|
5300
5326
|
);
|
|
5301
5327
|
}
|
|
5302
5328
|
|
|
5303
5329
|
// src/commands/sessions/web/slashCommands/startPointProjectCommands.ts
|
|
5304
|
-
async function startPointProjectCommands(cwd) {
|
|
5330
|
+
async function startPointProjectCommands(cwd, projectDirs) {
|
|
5305
5331
|
const repoRoot2 = findRepoRoot(cwd) ?? cwd;
|
|
5306
5332
|
const cfg = worktreeConfigFor(repoRoot2);
|
|
5307
5333
|
if (!cfg.enabled) return null;
|
|
5308
5334
|
const clone = mainWorktree(repoRoot2) ?? repoRoot2;
|
|
5309
5335
|
const { ref } = await worktreeStartPoint(clone, cfg.trunk);
|
|
5310
5336
|
if (ref === "HEAD") return null;
|
|
5311
|
-
|
|
5337
|
+
const lists = [];
|
|
5338
|
+
for (const dir of projectDirs) {
|
|
5339
|
+
const list = await readSlashCommandsAtRef(clone, ref, "project", dir);
|
|
5340
|
+
if (!list) return null;
|
|
5341
|
+
lists.push(list);
|
|
5342
|
+
}
|
|
5343
|
+
return mergeSourceCommands(lists);
|
|
5312
5344
|
}
|
|
5313
5345
|
|
|
5314
5346
|
// src/commands/sessions/web/slashCommands/slashCommands.ts
|
|
5315
|
-
function wantsStartPoint(req) {
|
|
5316
|
-
const url = new URL(req.url ?? "/", "http://localhost");
|
|
5317
|
-
return url.searchParams.get("startPoint") === "1";
|
|
5318
|
-
}
|
|
5319
5347
|
async function slashCommands(req, res) {
|
|
5320
5348
|
const cwd = getCwdParam(req, res);
|
|
5321
5349
|
if (!cwd) return;
|
|
5322
|
-
const
|
|
5350
|
+
const { sources, startPoint } = requestedSlashSources(req);
|
|
5351
|
+
const project = startPoint ? await startPointProjectCommands(cwd, sources.projectDirs) : null;
|
|
5323
5352
|
respondJson(res, 200, {
|
|
5324
|
-
commands: listSlashCommands(
|
|
5353
|
+
commands: listSlashCommands(sources, cwd, project)
|
|
5325
5354
|
});
|
|
5326
5355
|
}
|
|
5327
5356
|
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
} from "./chunk-BXGPF3TG.js";
|
|
12
12
|
import {
|
|
13
13
|
launchBlocker
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U3IQIWLI.js";
|
|
15
15
|
import {
|
|
16
16
|
createBranch,
|
|
17
17
|
generateBranchSlug
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CUGSML2B.js";
|
|
19
19
|
import {
|
|
20
20
|
inWebSession
|
|
21
21
|
} from "./chunk-HKGCLAZ7.js";
|
|
22
22
|
import {
|
|
23
23
|
executePhase
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FTNVJRGH.js";
|
|
25
25
|
import {
|
|
26
26
|
backlogPhaseActivity
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-S56CW6LZ.js";
|
|
28
28
|
import {
|
|
29
29
|
awaitHarness
|
|
30
30
|
} from "./chunk-ZYK7V4PG.js";
|
|
@@ -59,10 +59,10 @@ import {
|
|
|
59
59
|
import {
|
|
60
60
|
buildReviewPhase,
|
|
61
61
|
resolveReviewPhase
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-SVLIH3AL.js";
|
|
63
63
|
import {
|
|
64
64
|
resolvePlan
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-RGITC6GP.js";
|
|
66
66
|
import {
|
|
67
67
|
findOneItem,
|
|
68
68
|
getOrigin,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
harnessAdapter,
|
|
88
88
|
withoutResumeSession
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-MMEOHVBU.js";
|
|
90
90
|
import {
|
|
91
91
|
buildFeature
|
|
92
92
|
} from "./chunk-LKZ7J5AK.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MRUIXQXS.js";
|
|
4
4
|
import {
|
|
5
5
|
piExtensionsDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YLQAQHRT.js";
|
|
7
7
|
import {
|
|
8
8
|
readLitellmConfig
|
|
9
9
|
} from "./chunk-5AAHWTRQ.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
harnessCapability,
|
|
20
20
|
sdkAgentEnv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-T56YZ5YH.js";
|
|
22
22
|
import {
|
|
23
23
|
harnessCapabilityDeclarations,
|
|
24
24
|
supported,
|
|
25
25
|
unsupported
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2D3ZCQE3.js";
|
|
27
27
|
import {
|
|
28
28
|
harnessLabel,
|
|
29
29
|
resolveHarness
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
checkCliAvailable,
|
|
33
33
|
harnesses,
|
|
34
34
|
isHarnessAvailable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EOOPPGMZ.js";
|
|
36
36
|
import {
|
|
37
37
|
declaredNode
|
|
38
38
|
} from "./chunk-XYZPWUS6.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-HB2TXZX4.js";
|
|
4
4
|
import {
|
|
5
5
|
run
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IIJ4AI4C.js";
|
|
7
7
|
import {
|
|
8
8
|
isLockedByOther
|
|
9
9
|
} from "./chunk-BXGPF3TG.js";
|
|
10
10
|
import {
|
|
11
11
|
isBlocked,
|
|
12
12
|
typeLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZHUQP5EF.js";
|
|
14
14
|
import {
|
|
15
15
|
loadBacklog
|
|
16
16
|
} from "./chunk-GINJQIVR.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-FPWL4VRC.js";
|
|
7
7
|
import {
|
|
8
8
|
harnessAdapter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MMEOHVBU.js";
|
|
10
10
|
import {
|
|
11
11
|
legacyDefaultHarness
|
|
12
12
|
} from "./chunk-XZSATLYY.js";
|
|
13
13
|
import {
|
|
14
14
|
activeHarness
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K4DJEFDZ.js";
|
|
16
16
|
|
|
17
17
|
// src/shared/currentExecutionIdentity.ts
|
|
18
18
|
function currentExecutionIdentity(conversationId) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2JYMVJGZ.js";
|
|
4
4
|
import {
|
|
5
5
|
launchBlocker
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U3IQIWLI.js";
|
|
7
7
|
import {
|
|
8
8
|
INBOX_LAST_SCAN_KEY,
|
|
9
9
|
inboxConnectorRun,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
emptyScanUsage,
|
|
20
20
|
harnessAdapter,
|
|
21
21
|
scanUsageTokens
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MMEOHVBU.js";
|
|
23
23
|
import {
|
|
24
24
|
inboxFeature
|
|
25
25
|
} from "./chunk-LKZ7J5AK.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkoutPr
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XG3C3JSK.js";
|
|
4
4
|
import {
|
|
5
5
|
launchBlocker
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U3IQIWLI.js";
|
|
7
7
|
import {
|
|
8
8
|
resumeNudge
|
|
9
9
|
} from "./chunk-7NZOH4LN.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
} from "./chunk-ZYK7V4PG.js";
|
|
14
14
|
import {
|
|
15
15
|
preassignedId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CS3E3ARZ.js";
|
|
17
17
|
import {
|
|
18
18
|
emitActivity
|
|
19
19
|
} from "./chunk-3DNFNT2L.js";
|
|
20
20
|
import {
|
|
21
21
|
harnessAdapter
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MMEOHVBU.js";
|
|
23
23
|
|
|
24
24
|
// src/commands/launchPrSkill.ts
|
|
25
25
|
import chalk from "chalk";
|