@hawkeyexl/manni 4.6.0 → 4.7.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/README.md +1 -1
- package/dist/{batch-OZOACN4G.js → batch-U6S2JUUN.js} +11 -11
- package/dist/{build-Z5VOVADH.js → build-4RN6WBCP.js} +9 -9
- package/dist/{calibrate-TZYT42DR.js → calibrate-6VIZYR4L.js} +12 -12
- package/dist/{capture-SL4MNDDP.js → capture-DP3NXAZE.js} +11 -11
- package/dist/{check-PKY7KTQE.js → check-ERVNGKLC.js} +10 -10
- package/dist/{check-WB2QDHJQ.js → check-IWHUPAZM.js} +27 -21
- package/dist/check-IWHUPAZM.js.map +1 -0
- package/dist/{check-5OMA42Y6.js → check-STHXZIZO.js} +9 -9
- package/dist/{chunk-UAKNZVCD.js → chunk-2ZWTSRE5.js} +4 -4
- package/dist/{chunk-2JFPBZJK.js → chunk-4Z2MN5FR.js} +10 -10
- package/dist/{chunk-TUAAR3MM.js → chunk-5UB47BEV.js} +2 -2
- package/dist/{chunk-5G53XATW.js → chunk-5VWDIWOH.js} +3 -3
- package/dist/{chunk-73TC4DYH.js → chunk-6URSCTTX.js} +2 -2
- package/dist/{chunk-M6GSS72T.js → chunk-6VDBP5UV.js} +6 -6
- package/dist/{chunk-N7JSEDSC.js → chunk-7EL5LLKD.js} +2 -2
- package/dist/{chunk-UJSGS2Y5.js → chunk-7XZ6INKO.js} +4 -4
- package/dist/{chunk-UWQ2UVHE.js → chunk-AMEILOVV.js} +3 -3
- package/dist/{chunk-733Y2STG.js → chunk-B5CMM57M.js} +2 -2
- package/dist/{chunk-2M6DVNI5.js → chunk-C2TJG5KV.js} +4 -4
- package/dist/{chunk-DC5DDJVE.js → chunk-CEVU3GFF.js} +4 -4
- package/dist/{chunk-FLAO4ZS3.js → chunk-CI55ABCK.js} +2 -2
- package/dist/{chunk-GREQKO6M.js → chunk-CR3HZERW.js} +4 -4
- package/dist/{chunk-TH4JVQPF.js → chunk-D2LBN44V.js} +4 -3
- package/dist/chunk-D2LBN44V.js.map +1 -0
- package/dist/{chunk-YLK2J5YK.js → chunk-D6RO54QD.js} +72 -8
- package/dist/chunk-D6RO54QD.js.map +1 -0
- package/dist/{chunk-T6SYGLWR.js → chunk-GCC52YZD.js} +3 -3
- package/dist/{chunk-C73RSUIC.js → chunk-IIFADWWI.js} +3 -3
- package/dist/{chunk-MWBJ3KTF.js → chunk-IOL74S4J.js} +4 -4
- package/dist/{chunk-MHM4QEBV.js → chunk-IZBBXKMJ.js} +3 -3
- package/dist/{chunk-NHHOPZRA.js → chunk-K52CS4KT.js} +5 -5
- package/dist/{chunk-Z4IZGEM3.js → chunk-LDKIIZDW.js} +5 -5
- package/dist/{chunk-7WRP5FFP.js → chunk-LONRQBGV.js} +4 -4
- package/dist/{chunk-MOWMCEOJ.js → chunk-LXJEAV2V.js} +5 -5
- package/dist/{chunk-GAJIJKET.js → chunk-MIBWI5H7.js} +3 -3
- package/dist/{chunk-KCOFEWV5.js → chunk-MSMB6XOS.js} +2 -2
- package/dist/{chunk-C3B2VJNC.js → chunk-NIFEEIGQ.js} +2 -2
- package/dist/{chunk-QW77LCOU.js → chunk-NZ6TNSCU.js} +5 -5
- package/dist/{chunk-APKH2T6E.js → chunk-OOEMKOX6.js} +3 -3
- package/dist/{chunk-NBMPHD4I.js → chunk-PAOVVHQX.js} +2 -2
- package/dist/{chunk-M2RLHZ4J.js → chunk-PNX43DYW.js} +2 -2
- package/dist/{chunk-PL4UAF4S.js → chunk-QP5X66TO.js} +8 -8
- package/dist/{chunk-3NWX34ZI.js → chunk-QQNPVW3J.js} +6 -6
- package/dist/{chunk-XPEWUK7J.js → chunk-TPVOOTMN.js} +2 -2
- package/dist/{chunk-XPEWUK7J.js.map → chunk-TPVOOTMN.js.map} +1 -1
- package/dist/{chunk-SM6NOMJS.js → chunk-UZKQSWHJ.js} +2 -2
- package/dist/{chunk-2KRB3EG7.js → chunk-WTEILBKC.js} +2 -2
- package/dist/{chunk-PCFG7E6B.js → chunk-YSCZL4U5.js} +2 -2
- package/dist/{chunk-PCFG7E6B.js.map → chunk-YSCZL4U5.js.map} +1 -1
- package/dist/{chunk-IY7NYNPZ.js → chunk-ZEXGGGLW.js} +7 -7
- package/dist/{chunk-NTWW7J76.js → chunk-ZKAKA54B.js} +2 -2
- package/dist/{chunk-TLXE7LYK.js → chunk-ZKCNPKUO.js} +3 -3
- package/dist/{chunk-SWSTHZBI.js → chunk-ZNE25EAR.js} +4 -4
- package/dist/{chunk-B3TS4WRM.js → chunk-ZPP75QWG.js} +7 -7
- package/dist/{cli-NIG4N3XM.js → cli-37SRAYNE.js} +11 -11
- package/dist/{cli-PSKNB66T.js → cli-HXWYUKGJ.js} +30 -30
- package/dist/{cli-EPVZHAZS.js → cli-IRHPPUFJ.js} +10 -10
- package/dist/{cli-LUCSGTVI.js → cli-KIID535Y.js} +13 -13
- package/dist/{cli-UQ7A3YA2.js → cli-MTDGQIIV.js} +14 -14
- package/dist/{cli-6EWVMEN6.js → cli-NM6FZ54R.js} +2 -2
- package/dist/{cli-6H7HVDMQ.js → cli-XIODOEUG.js} +19 -19
- package/dist/{cli-YHYDLQAF.js → cli-YL3IDR52.js} +7 -7
- package/dist/{cli-UO4NHIB3.js → cli-ZQUJYQBA.js} +11 -11
- package/dist/cli.js +11 -11
- package/dist/{config-P4HDNTYD.js → config-O6UBGEDK.js} +2 -2
- package/dist/{conformance-ZFCMKM6M.js → conformance-ALLPNGEQ.js} +2 -2
- package/dist/docmeta.js +6 -6
- package/dist/{github-7ZCH5PSO.js → github-UCYLM3DR.js} +9 -9
- package/dist/{github-POT6724K.js → github-VEJFO6JJ.js} +11 -11
- package/dist/index.js +31 -31
- package/dist/{json-KT2K62L5.js → json-6F52FSXZ.js} +9 -9
- package/dist/{lint-5AQ5C2BV.js → lint-X2GNINK6.js} +9 -9
- package/dist/{list-SWPFXQMU.js → list-DP3O3CWB.js} +9 -9
- package/dist/{list-5JZKX2NK.js → list-P77RZFZF.js} +9 -9
- package/dist/{page-UPSXRP75.js → page-WQCMBNRD.js} +8 -8
- package/dist/{prepare-6GNEWCNH.js → prepare-52QOK7M4.js} +12 -12
- package/dist/{pretty-Q6FQAOK4.js → pretty-5MMMNSWF.js} +10 -10
- package/dist/{pretty-SQRPFPSQ.js → pretty-H4DQREMW.js} +9 -9
- package/dist/{release-IECYCLTD.js → release-CTYRHZL4.js} +2 -2
- package/dist/{reporters-XUV4MM64.js → reporters-SU3VUKKX.js} +4 -4
- package/dist/{reporters-45MMC2ID.js → reporters-WIHBEMPG.js} +8 -8
- package/dist/{run-KMWY2IAN.js → run-L2DWJ26K.js} +9 -9
- package/dist/{term-PCJUCWNF.js → term-PJIJQZNF.js} +13 -13
- package/dist/{validate-IMNCZNWG.js → validate-XCDSPURG.js} +4 -4
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/dist/check-WB2QDHJQ.js.map +0 -1
- package/dist/chunk-TH4JVQPF.js.map +0 -1
- package/dist/chunk-YLK2J5YK.js.map +0 -1
- /package/dist/{batch-OZOACN4G.js.map → batch-U6S2JUUN.js.map} +0 -0
- /package/dist/{build-Z5VOVADH.js.map → build-4RN6WBCP.js.map} +0 -0
- /package/dist/{calibrate-TZYT42DR.js.map → calibrate-6VIZYR4L.js.map} +0 -0
- /package/dist/{capture-SL4MNDDP.js.map → capture-DP3NXAZE.js.map} +0 -0
- /package/dist/{check-5OMA42Y6.js.map → check-ERVNGKLC.js.map} +0 -0
- /package/dist/{check-PKY7KTQE.js.map → check-STHXZIZO.js.map} +0 -0
- /package/dist/{chunk-UAKNZVCD.js.map → chunk-2ZWTSRE5.js.map} +0 -0
- /package/dist/{chunk-2JFPBZJK.js.map → chunk-4Z2MN5FR.js.map} +0 -0
- /package/dist/{chunk-TUAAR3MM.js.map → chunk-5UB47BEV.js.map} +0 -0
- /package/dist/{chunk-5G53XATW.js.map → chunk-5VWDIWOH.js.map} +0 -0
- /package/dist/{chunk-73TC4DYH.js.map → chunk-6URSCTTX.js.map} +0 -0
- /package/dist/{chunk-M6GSS72T.js.map → chunk-6VDBP5UV.js.map} +0 -0
- /package/dist/{chunk-N7JSEDSC.js.map → chunk-7EL5LLKD.js.map} +0 -0
- /package/dist/{chunk-UJSGS2Y5.js.map → chunk-7XZ6INKO.js.map} +0 -0
- /package/dist/{chunk-UWQ2UVHE.js.map → chunk-AMEILOVV.js.map} +0 -0
- /package/dist/{chunk-733Y2STG.js.map → chunk-B5CMM57M.js.map} +0 -0
- /package/dist/{chunk-2M6DVNI5.js.map → chunk-C2TJG5KV.js.map} +0 -0
- /package/dist/{chunk-DC5DDJVE.js.map → chunk-CEVU3GFF.js.map} +0 -0
- /package/dist/{chunk-FLAO4ZS3.js.map → chunk-CI55ABCK.js.map} +0 -0
- /package/dist/{chunk-GREQKO6M.js.map → chunk-CR3HZERW.js.map} +0 -0
- /package/dist/{chunk-T6SYGLWR.js.map → chunk-GCC52YZD.js.map} +0 -0
- /package/dist/{chunk-C73RSUIC.js.map → chunk-IIFADWWI.js.map} +0 -0
- /package/dist/{chunk-MWBJ3KTF.js.map → chunk-IOL74S4J.js.map} +0 -0
- /package/dist/{chunk-MHM4QEBV.js.map → chunk-IZBBXKMJ.js.map} +0 -0
- /package/dist/{chunk-NHHOPZRA.js.map → chunk-K52CS4KT.js.map} +0 -0
- /package/dist/{chunk-Z4IZGEM3.js.map → chunk-LDKIIZDW.js.map} +0 -0
- /package/dist/{chunk-7WRP5FFP.js.map → chunk-LONRQBGV.js.map} +0 -0
- /package/dist/{chunk-MOWMCEOJ.js.map → chunk-LXJEAV2V.js.map} +0 -0
- /package/dist/{chunk-GAJIJKET.js.map → chunk-MIBWI5H7.js.map} +0 -0
- /package/dist/{chunk-KCOFEWV5.js.map → chunk-MSMB6XOS.js.map} +0 -0
- /package/dist/{chunk-C3B2VJNC.js.map → chunk-NIFEEIGQ.js.map} +0 -0
- /package/dist/{chunk-QW77LCOU.js.map → chunk-NZ6TNSCU.js.map} +0 -0
- /package/dist/{chunk-APKH2T6E.js.map → chunk-OOEMKOX6.js.map} +0 -0
- /package/dist/{chunk-NBMPHD4I.js.map → chunk-PAOVVHQX.js.map} +0 -0
- /package/dist/{chunk-M2RLHZ4J.js.map → chunk-PNX43DYW.js.map} +0 -0
- /package/dist/{chunk-PL4UAF4S.js.map → chunk-QP5X66TO.js.map} +0 -0
- /package/dist/{chunk-3NWX34ZI.js.map → chunk-QQNPVW3J.js.map} +0 -0
- /package/dist/{chunk-SM6NOMJS.js.map → chunk-UZKQSWHJ.js.map} +0 -0
- /package/dist/{chunk-2KRB3EG7.js.map → chunk-WTEILBKC.js.map} +0 -0
- /package/dist/{chunk-IY7NYNPZ.js.map → chunk-ZEXGGGLW.js.map} +0 -0
- /package/dist/{chunk-NTWW7J76.js.map → chunk-ZKAKA54B.js.map} +0 -0
- /package/dist/{chunk-TLXE7LYK.js.map → chunk-ZKCNPKUO.js.map} +0 -0
- /package/dist/{chunk-SWSTHZBI.js.map → chunk-ZNE25EAR.js.map} +0 -0
- /package/dist/{chunk-B3TS4WRM.js.map → chunk-ZPP75QWG.js.map} +0 -0
- /package/dist/{cli-NIG4N3XM.js.map → cli-37SRAYNE.js.map} +0 -0
- /package/dist/{cli-PSKNB66T.js.map → cli-HXWYUKGJ.js.map} +0 -0
- /package/dist/{cli-EPVZHAZS.js.map → cli-IRHPPUFJ.js.map} +0 -0
- /package/dist/{cli-LUCSGTVI.js.map → cli-KIID535Y.js.map} +0 -0
- /package/dist/{cli-UQ7A3YA2.js.map → cli-MTDGQIIV.js.map} +0 -0
- /package/dist/{cli-6EWVMEN6.js.map → cli-NM6FZ54R.js.map} +0 -0
- /package/dist/{cli-6H7HVDMQ.js.map → cli-XIODOEUG.js.map} +0 -0
- /package/dist/{cli-YHYDLQAF.js.map → cli-YL3IDR52.js.map} +0 -0
- /package/dist/{cli-UO4NHIB3.js.map → cli-ZQUJYQBA.js.map} +0 -0
- /package/dist/{config-P4HDNTYD.js.map → config-O6UBGEDK.js.map} +0 -0
- /package/dist/{conformance-ZFCMKM6M.js.map → conformance-ALLPNGEQ.js.map} +0 -0
- /package/dist/{github-7ZCH5PSO.js.map → github-UCYLM3DR.js.map} +0 -0
- /package/dist/{github-POT6724K.js.map → github-VEJFO6JJ.js.map} +0 -0
- /package/dist/{json-KT2K62L5.js.map → json-6F52FSXZ.js.map} +0 -0
- /package/dist/{lint-5AQ5C2BV.js.map → lint-X2GNINK6.js.map} +0 -0
- /package/dist/{list-5JZKX2NK.js.map → list-DP3O3CWB.js.map} +0 -0
- /package/dist/{list-SWPFXQMU.js.map → list-P77RZFZF.js.map} +0 -0
- /package/dist/{page-UPSXRP75.js.map → page-WQCMBNRD.js.map} +0 -0
- /package/dist/{prepare-6GNEWCNH.js.map → prepare-52QOK7M4.js.map} +0 -0
- /package/dist/{pretty-Q6FQAOK4.js.map → pretty-5MMMNSWF.js.map} +0 -0
- /package/dist/{pretty-SQRPFPSQ.js.map → pretty-H4DQREMW.js.map} +0 -0
- /package/dist/{release-IECYCLTD.js.map → release-CTYRHZL4.js.map} +0 -0
- /package/dist/{reporters-45MMC2ID.js.map → reporters-SU3VUKKX.js.map} +0 -0
- /package/dist/{reporters-XUV4MM64.js.map → reporters-WIHBEMPG.js.map} +0 -0
- /package/dist/{run-KMWY2IAN.js.map → run-L2DWJ26K.js.map} +0 -0
- /package/dist/{term-PCJUCWNF.js.map → term-PJIJQZNF.js.map} +0 -0
- /package/dist/{validate-IMNCZNWG.js.map → validate-XCDSPURG.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
paragraphAfter,
|
|
16
16
|
parseSrc,
|
|
17
17
|
ruleId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IZBBXKMJ.js";
|
|
19
19
|
import {
|
|
20
20
|
findWindows,
|
|
21
21
|
hashLines,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
spellLines,
|
|
25
25
|
toBodyLines,
|
|
26
26
|
toFileLines
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5UB47BEV.js";
|
|
28
28
|
import {
|
|
29
29
|
isErrorSeverity
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MSMB6XOS.js";
|
|
31
31
|
|
|
32
32
|
// src/cite/core/spell.ts
|
|
33
33
|
function shortPin(integrity) {
|
|
@@ -619,4 +619,4 @@ export {
|
|
|
619
619
|
errorSite,
|
|
620
620
|
toValidationResult
|
|
621
621
|
};
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-2ZWTSRE5.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
spliceEntryField,
|
|
17
17
|
unifiedDiff,
|
|
18
18
|
withClaimLines
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZEXGGGLW.js";
|
|
20
20
|
import {
|
|
21
21
|
CITATIONS_KEY,
|
|
22
22
|
CITE_SECTION,
|
|
@@ -54,10 +54,10 @@ import {
|
|
|
54
54
|
stripMarkers,
|
|
55
55
|
twoManifestsRefusal,
|
|
56
56
|
urlManifestRefusal
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-NZ6TNSCU.js";
|
|
58
58
|
import {
|
|
59
59
|
renderCheckGithub
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-MIBWI5H7.js";
|
|
61
61
|
import {
|
|
62
62
|
refusalLine,
|
|
63
63
|
removalLine,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
renderRemovePretty,
|
|
66
66
|
renderUpdatePretty,
|
|
67
67
|
rewriteLine
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-GCC52YZD.js";
|
|
69
69
|
import {
|
|
70
70
|
blockMatches,
|
|
71
71
|
claimEnd,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
toValidationResult,
|
|
95
95
|
unitAt,
|
|
96
96
|
unitText
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-2ZWTSRE5.js";
|
|
98
98
|
import {
|
|
99
99
|
renderCheckJson,
|
|
100
100
|
renderRemoveJson,
|
|
@@ -140,11 +140,11 @@ import {
|
|
|
140
140
|
spellSource,
|
|
141
141
|
statementForms,
|
|
142
142
|
validateEntry
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-IZBBXKMJ.js";
|
|
144
144
|
import {
|
|
145
145
|
reencryptData,
|
|
146
146
|
reencryptMetadata
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-ZKCNPKUO.js";
|
|
148
148
|
import {
|
|
149
149
|
ENCRYPTION_KEY_ENV,
|
|
150
150
|
MAX_RANGE_LINES,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
toBodyLines,
|
|
171
171
|
toFileLines,
|
|
172
172
|
writeEncryptionKey
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-5UB47BEV.js";
|
|
174
174
|
import {
|
|
175
175
|
LEGACY_CONFIG_NAMES,
|
|
176
176
|
STDIN_TOKEN,
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
resolveTargetSet,
|
|
182
182
|
supportedExtensions,
|
|
183
183
|
writeFileAtomic
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-MSMB6XOS.js";
|
|
185
185
|
import {
|
|
186
186
|
findConfigFile,
|
|
187
187
|
findFamilyConfigFile,
|
|
@@ -931,4 +931,4 @@ export {
|
|
|
931
931
|
runKeyRotate,
|
|
932
932
|
runKeySet
|
|
933
933
|
};
|
|
934
|
-
//# sourceMappingURL=chunk-
|
|
934
|
+
//# sourceMappingURL=chunk-4Z2MN5FR.js.map
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
supportedExtensions,
|
|
63
63
|
toJsonText,
|
|
64
64
|
writeFileAtomic
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-MSMB6XOS.js";
|
|
66
66
|
import {
|
|
67
67
|
STDIN_LINES_MARKER
|
|
68
68
|
} from "./chunk-YEUYKR62.js";
|
|
@@ -7392,4 +7392,4 @@ export {
|
|
|
7392
7392
|
stampManifests,
|
|
7393
7393
|
runValidate
|
|
7394
7394
|
};
|
|
7395
|
-
//# sourceMappingURL=chunk-
|
|
7395
|
+
//# sourceMappingURL=chunk-5UB47BEV.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
canonicalSchemaRef,
|
|
7
7
|
fingerprint,
|
|
8
8
|
isErrorSeverity
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MSMB6XOS.js";
|
|
10
10
|
import {
|
|
11
11
|
palette
|
|
12
12
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-XKBEHKWO.js";
|
|
20
20
|
import {
|
|
21
21
|
package_default
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YSCZL4U5.js";
|
|
23
23
|
|
|
24
24
|
// src/meta/reporters/rule-id.ts
|
|
25
25
|
var SYNTHETIC_SCHEMA = "(parse)";
|
|
@@ -385,4 +385,4 @@ export {
|
|
|
385
385
|
renderGithub,
|
|
386
386
|
render
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=chunk-
|
|
388
|
+
//# sourceMappingURL=chunk-5VWDIWOH.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
extractFrontmatter,
|
|
7
7
|
extractorForExtension,
|
|
8
8
|
locateFrontmatter
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MSMB6XOS.js";
|
|
10
10
|
import {
|
|
11
11
|
errorMessage
|
|
12
12
|
} from "./chunk-G3T47CFV.js";
|
|
@@ -3247,4 +3247,4 @@ export {
|
|
|
3247
3247
|
unsupportedFormatMessage,
|
|
3248
3248
|
listFormats
|
|
3249
3249
|
};
|
|
3250
|
-
//# sourceMappingURL=chunk-
|
|
3250
|
+
//# sourceMappingURL=chunk-6URSCTTX.js.map
|
|
@@ -40,18 +40,18 @@ import {
|
|
|
40
40
|
parserForExtension,
|
|
41
41
|
supportedExtensions,
|
|
42
42
|
unsupportedFormatMessage
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6URSCTTX.js";
|
|
44
44
|
import {
|
|
45
45
|
metaPageView
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ZKCNPKUO.js";
|
|
47
47
|
import {
|
|
48
48
|
STDIN_REQUIRES_AS,
|
|
49
49
|
writeTextAtomic
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-5UB47BEV.js";
|
|
51
51
|
import {
|
|
52
52
|
extractFrontmatter,
|
|
53
53
|
extractorForExtension
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-MSMB6XOS.js";
|
|
55
55
|
import {
|
|
56
56
|
selectCollections
|
|
57
57
|
} from "./chunk-XKBEHKWO.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
} from "./chunk-HX44GB4Z.js";
|
|
61
61
|
import {
|
|
62
62
|
package_default
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-YSCZL4U5.js";
|
|
64
64
|
import {
|
|
65
65
|
errorMessage
|
|
66
66
|
} from "./chunk-G3T47CFV.js";
|
|
@@ -1810,4 +1810,4 @@ export {
|
|
|
1810
1810
|
runBuild,
|
|
1811
1811
|
buildGraph
|
|
1812
1812
|
};
|
|
1813
|
-
//# sourceMappingURL=chunk-
|
|
1813
|
+
//# sourceMappingURL=chunk-6VDBP5UV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
pathKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D6RO54QD.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_CAPTURE_DIR,
|
|
7
7
|
makeRedactor
|
|
@@ -230,4 +230,4 @@ export {
|
|
|
230
230
|
rollup,
|
|
231
231
|
writeLedger
|
|
232
232
|
};
|
|
233
|
-
//# sourceMappingURL=chunk-
|
|
233
|
+
//# sourceMappingURL=chunk-7EL5LLKD.js.map
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
REPORT_FORMAT_LIST,
|
|
17
17
|
renderJunit
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5VWDIWOH.js";
|
|
19
19
|
import {
|
|
20
20
|
isErrorSeverity
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MSMB6XOS.js";
|
|
22
22
|
import {
|
|
23
23
|
palette
|
|
24
24
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-MNH7QO4Z.js";
|
|
29
29
|
import {
|
|
30
30
|
package_default
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YSCZL4U5.js";
|
|
32
32
|
|
|
33
33
|
// src/lint/core/rule-id.ts
|
|
34
34
|
var RULE_ID_PREFIX = "manni:lint";
|
|
@@ -633,4 +633,4 @@ export {
|
|
|
633
633
|
renderTemplates,
|
|
634
634
|
renderTools
|
|
635
635
|
};
|
|
636
|
-
//# sourceMappingURL=chunk-
|
|
636
|
+
//# sourceMappingURL=chunk-7XZ6INKO.js.map
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
renderCalibration,
|
|
4
4
|
resolveBatchTraces,
|
|
5
5
|
runBatch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QP5X66TO.js";
|
|
7
7
|
import {
|
|
8
8
|
discoverConfig,
|
|
9
9
|
labelKey,
|
|
10
10
|
loadLabels
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TPVOOTMN.js";
|
|
12
12
|
import {
|
|
13
13
|
assertProviderSelection,
|
|
14
14
|
selectProvider
|
|
@@ -378,4 +378,4 @@ export {
|
|
|
378
378
|
score,
|
|
379
379
|
runCalibrate
|
|
380
380
|
};
|
|
381
|
-
//# sourceMappingURL=chunk-
|
|
381
|
+
//# sourceMappingURL=chunk-AMEILOVV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadTerms
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IIFADWWI.js";
|
|
5
5
|
|
|
6
6
|
// src/term/commands/list.ts
|
|
7
7
|
var LIST_FORMATS = ["pretty", "json", "csv"];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
LIST_FORMATS,
|
|
15
15
|
runList
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-B5CMM57M.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
discoverArtifacts
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WTEILBKC.js";
|
|
5
5
|
import {
|
|
6
6
|
parseHookPayload,
|
|
7
7
|
readStdin
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
relPosix,
|
|
13
13
|
sha256Hex,
|
|
14
14
|
writeManifest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OOEMKOX6.js";
|
|
16
16
|
import {
|
|
17
17
|
loadConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TPVOOTMN.js";
|
|
19
19
|
import {
|
|
20
20
|
MANIFEST_VERSION,
|
|
21
21
|
makeRedactor
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
runCapture,
|
|
213
213
|
renderCapture
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-C2TJG5KV.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
updateConfigEval,
|
|
23
23
|
updateManifestEval,
|
|
24
24
|
updatePageEval
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-K52CS4KT.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_CONFIG_FILENAME,
|
|
28
28
|
assertRegisteredGraders,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
sha256,
|
|
42
42
|
splitBody,
|
|
43
43
|
withExternalMetadata
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LDKIIZDW.js";
|
|
45
45
|
import {
|
|
46
46
|
isTurnBudgetSkip
|
|
47
47
|
} from "./chunk-XG6PVB5S.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
} from "./chunk-77AINBYM.js";
|
|
58
58
|
import {
|
|
59
59
|
mergeMetaProvenance
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-CR3HZERW.js";
|
|
61
61
|
import {
|
|
62
62
|
palette
|
|
63
63
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -1284,4 +1284,4 @@ export {
|
|
|
1284
1284
|
renderCalibration,
|
|
1285
1285
|
runInit
|
|
1286
1286
|
};
|
|
1287
|
-
//# sourceMappingURL=chunk-
|
|
1287
|
+
//# sourceMappingURL=chunk-CEVU3GFF.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
GB
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D2LBN44V.js";
|
|
5
5
|
import {
|
|
6
6
|
validateWhen
|
|
7
7
|
} from "./chunk-FQGLRJGX.js";
|
|
@@ -499,4 +499,4 @@ export {
|
|
|
499
499
|
localGate,
|
|
500
500
|
assertDownloaded
|
|
501
501
|
};
|
|
502
|
-
//# sourceMappingURL=chunk-
|
|
502
|
+
//# sourceMappingURL=chunk-CI55ABCK.js.map
|
|
@@ -98,11 +98,11 @@ import {
|
|
|
98
98
|
valueAt,
|
|
99
99
|
withValueAt,
|
|
100
100
|
writeEncryptionKey
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-5UB47BEV.js";
|
|
102
102
|
import {
|
|
103
103
|
formatList,
|
|
104
104
|
render
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-5VWDIWOH.js";
|
|
106
106
|
import {
|
|
107
107
|
DERIVABLE_FIELDS,
|
|
108
108
|
DERIVE_SOURCES,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
urlManifestMessage,
|
|
157
157
|
urlManifestOwning,
|
|
158
158
|
writeFileAtomic
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-MSMB6XOS.js";
|
|
160
160
|
import {
|
|
161
161
|
palette
|
|
162
162
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -6882,4 +6882,4 @@ export {
|
|
|
6882
6882
|
renderQuery,
|
|
6883
6883
|
renderQueryCsv
|
|
6884
6884
|
};
|
|
6885
|
-
//# sourceMappingURL=chunk-
|
|
6885
|
+
//# sourceMappingURL=chunk-CR3HZERW.js.map
|
|
@@ -32,7 +32,7 @@ function renderCheck(report, opts = {}) {
|
|
|
32
32
|
if (findings.length === 0) continue;
|
|
33
33
|
lines.push(source.path);
|
|
34
34
|
for (const f of findings) {
|
|
35
|
-
const mark = f.outcome
|
|
35
|
+
const mark = f.outcome !== "fail" ? pc.yellow("?") : f.severity === "error" ? pc.red("\u2716") : pc.yellow("!");
|
|
36
36
|
lines.push(` ${mark} ${f.rule} ${f.text}`);
|
|
37
37
|
lines.push(` ${pc.dim(`${f.observed} (${f.confidence.toFixed(2)})`)}`);
|
|
38
38
|
}
|
|
@@ -77,7 +77,8 @@ function closing(report) {
|
|
|
77
77
|
case null: {
|
|
78
78
|
const broken = summary.fail > 0 ? `${String(summary.fail)} broken` : "None broken";
|
|
79
79
|
const review = summary.needsReview > 0 ? `, ${String(summary.needsReview)} needs review` : "";
|
|
80
|
-
|
|
80
|
+
const reported = summary.reported > 0 ? `, ${String(summary.reported)} reported` : "";
|
|
81
|
+
return `${head} ${scope}. ${broken}${review}${reported}.`;
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
}
|
|
@@ -130,4 +131,4 @@ export {
|
|
|
130
131
|
NO_HOST,
|
|
131
132
|
renderRelease
|
|
132
133
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
134
|
+
//# sourceMappingURL=chunk-D2LBN44V.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tracevals/rules/local.ts","../src/tracevals/reporters/conformance.ts"],"sourcesContent":["/**\n * What tracevals asks of a local model without loading it (proposal 0079,\n * gates 5, 8 and 9, and `prepare`). The inference library owns every answer;\n * this is the one seam, so a test can say \"downloading\" without a runtime.\n */\nimport {\n ensureModel,\n fits,\n modelState,\n nodeLlamaCppStatus,\n type EnsureModelResult,\n type FitsResult,\n type LlamaModelState,\n} from \"@hawkeyexl/inference\";\nimport type { ProviderConnections } from \"../../shared/providers.js\";\n\nexport interface LocalModels {\n /** Whether the llama.cpp binding is importable now, installing nothing. */\n runtimePresent(): Promise<boolean>;\n /** `ready`, `downloading` or `missing`, read without loading or fetching. */\n state(model: string): Promise<LlamaModelState>;\n /** The memory probe `auto` tiering uses. */\n fits(model: string): Promise<FitsResult>;\n /** Fetch the runtime and the weights, without loading either. */\n ensure(model: string): Promise<EnsureModelResult>;\n}\n\n/** The library's lifecycle calls, pointed at the family's models directory. */\nexport function libraryLocalModels(connections: ProviderConnections): LocalModels {\n const modelsDir = connections[\"llama-cpp\"]?.modelsDir;\n const options = modelsDir === undefined ? {} : { modelsDirectory: modelsDir };\n return {\n runtimePresent: async () => (await nodeLlamaCppStatus()).state === \"present\",\n state: (model) => modelState(model, options),\n fits: (model) => fits(model, options),\n ensure: (model) => ensureModel(model, options),\n };\n}\n\n/** Bytes in a gigabyte as the messages count them. */\nexport const GB = 1024 ** 3;\n","/**\n * Pretty output for `check`, `prepare` and `release` (proposal 0079). JSON is\n * each report as it stands, so only prose lives here. Colour is the caller's\n * decision, made once by `colorFor`.\n */\nimport { palette } from \"../../shared/color.js\";\nimport type { CheckReport } from \"../commands/check.js\";\nimport type { PrepareReport } from \"../commands/prepare.js\";\nimport type { ReleaseReport } from \"../commands/release.js\";\nimport { GB } from \"../rules/local.js\";\n\nconst count = (n: number, one: string, many: string): string =>\n `${String(n)} ${n === 1 ? one : many}`;\n\n/** Findings grouped under their source, then the closing line. */\nexport function renderCheck(report: CheckReport, opts: { color?: boolean } = {}): string {\n const pc = palette(opts.color === true);\n const lines: string[] = [];\n for (const source of report.sources) {\n const findings = report.findings.filter((f) => f.source === source.path);\n if (findings.length === 0) continue;\n lines.push(source.path);\n for (const f of findings) {\n const mark =\n f.outcome !== \"fail\" ? pc.yellow(\"?\") : f.severity === \"error\" ? pc.red(\"✖\") : pc.yellow(\"!\");\n lines.push(` ${mark} ${f.rule} ${f.text}`);\n lines.push(` ${pc.dim(`${f.observed} (${f.confidence.toFixed(2)})`)}`);\n }\n }\n lines.push(...sessionSoFar(report));\n for (const warning of report.warnings) lines.push(`${pc.yellow(\"!\")} ${warning}`);\n if (lines.length > 0) lines.push(\"\");\n lines.push(closing(report));\n return lines.join(\"\\n\");\n}\n\n/** The ledger's rules that were ever broken or sent to review, and a count of the rest. */\nfunction sessionSoFar(report: CheckReport): string[] {\n const rules = report.session?.rules ?? [];\n if (rules.length === 0) return [];\n const flagged = rules.filter((r) => r.broken > 0 || r.needsReview > 0);\n const lines = flagged.map((r) => {\n const counts = [\n [\"broken\", r.broken],\n [\"repaired\", r.repaired],\n [\"needs review\", r.needsReview],\n [\"followed\", r.followed],\n ] as const;\n const said = counts.filter(([, n]) => n > 0).map(([word, n]) => `${word} ${String(n)}`);\n return ` ${r.source}#${r.rule} ${said.join(\", \")}`;\n });\n const held = rules.length - flagged.length;\n if (held > 0) {\n lines.push(` ${count(held, \"rule\", \"rules\")} held every turn ${held === 1 ? \"it\" : \"they\"} applied to.`);\n }\n return [\"Session so far\", ...lines];\n}\n\nfunction closing(report: CheckReport): string {\n const head = `Last turn of ${report.sessionId.slice(0, 8)}:`;\n const { summary } = report;\n // \"sources\", because a typed prompt is not a file (proposal 0080).\n const scope = `${count(summary.rules, \"rule\", \"rules\")} from ${count(summary.sources, \"source\", \"sources\")}`;\n switch (report.skipped) {\n case \"empty-turn\":\n return `${head} nothing happened after the last prompt.`;\n case \"no-sources\":\n return `${head} no rule sources governed it.`;\n case \"not-applicable\":\n return `${head} ${scope}, none apply to this turn.`;\n case null: {\n const broken = summary.fail > 0 ? `${String(summary.fail)} broken` : \"None broken\";\n const review = summary.needsReview > 0 ? `, ${String(summary.needsReview)} needs review` : \"\";\n const reported = summary.reported > 0 ? `, ${String(summary.reported)} reported` : \"\";\n return `${head} ${scope}. ${broken}${review}${reported}.`;\n }\n }\n}\n\nexport const NOT_SET_UP = \"tracevals conformance is not set up; nothing to prepare.\";\n\nexport function renderPrepare(report: PrepareReport): string {\n const lines: string[] = [];\n const said = new Set<string>();\n for (const m of report.models) {\n if (m.state === \"hosted\" || said.has(m.model)) continue;\n said.add(m.model);\n const name = `${m.model} (${m.provider})`;\n lines.push(\n m.state === \"downloaded\"\n ? `${name} downloaded, ${((m.bytes ?? 0) / GB).toFixed(2)} GB.`\n : `${name} is ${m.state}.`,\n );\n }\n const ex = report.extraction;\n if (ex !== null) {\n const files = (n: number): string =>\n `${count(n, \"file\", \"files\")} that ${n === 1 ? \"applies\" : \"apply\"} to every session`;\n if (ex.extracted > 0) {\n lines.push(\n `Extracted ${count(ex.rules, \"rule\", \"rules\")} from ${files(ex.extracted)}.` +\n (ex.cached > 0 ? ` ${String(ex.cached)} more ${ex.cached === 1 ? \"was\" : \"were\"} cached.` : \"\"),\n );\n } else if (ex.cached > 0) {\n lines.push(`${files(ex.cached)} ${ex.cached === 1 ? \"is\" : \"are\"} cached. Nothing to extract.`);\n } else {\n lines.push(\"No file applies to every session. Nothing to extract.\");\n }\n }\n for (const warning of report.warnings) lines.push(warning);\n return lines.join(\"\\n\");\n}\n\nexport const NO_HOST = \"No model host is running.\";\n\nexport function renderRelease(report: ReleaseReport): string {\n if (!report.hostStopped && report.released.length === 0 && report.unloaded.length === 0) {\n return NO_HOST;\n }\n const unloaded = report.unloaded.length > 0 ? `Unloaded ${report.unloaded.join(\", \")}` : \"\";\n const stopped = report.hostStopped ? \"stopped the model host\" : \"\";\n const action = [unloaded, stopped].filter((s) => s !== \"\").join(\" and \");\n const held = count(report.released.length, \"session\", \"sessions\");\n return `${action === \"\" ? \"Released the lease\" : action}. ${held} held it.`;\n}\n"],"mappings":";;;;;;AAKA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAeA,SAAS,mBAAmB,aAA+C;AAChF,QAAM,YAAY,YAAY,WAAW,GAAG;AAC5C,QAAM,UAAU,cAAc,SAAY,CAAC,IAAI,EAAE,iBAAiB,UAAU;AAC5E,SAAO;AAAA,IACL,gBAAgB,aAAa,MAAM,mBAAmB,GAAG,UAAU;AAAA,IACnE,OAAO,CAAC,UAAU,WAAW,OAAO,OAAO;AAAA,IAC3C,MAAM,CAAC,UAAU,KAAK,OAAO,OAAO;AAAA,IACpC,QAAQ,CAAC,UAAU,YAAY,OAAO,OAAO;AAAA,EAC/C;AACF;AAGO,IAAM,KAAK,QAAQ;;;AC7B1B,IAAM,QAAQ,CAAC,GAAW,KAAa,SACrC,GAAG,OAAO,CAAC,CAAC,IAAI,MAAM,IAAI,MAAM,IAAI;AAG/B,SAAS,YAAY,QAAqB,OAA4B,CAAC,GAAW;AACvF,QAAM,KAAK,QAAQ,KAAK,UAAU,IAAI;AACtC,QAAM,QAAkB,CAAC;AACzB,aAAW,UAAU,OAAO,SAAS;AACnC,UAAM,WAAW,OAAO,SAAS,OAAO,CAAC,MAAM,EAAE,WAAW,OAAO,IAAI;AACvE,QAAI,SAAS,WAAW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M,MAAM,EAAE,EAAE,KAAK,OAAO;AACvE,QAAM,OAAO,MAAM,OAAO,SAAS,QAAQ,WAAW,UAAU;AAChE,SAAO,GAAG,WAAW,KAAK,uBAAuB,MAAM,KAAK,IAAI;AAClE;","names":[]}
|
|
@@ -10,13 +10,16 @@ import {
|
|
|
10
10
|
listInTree,
|
|
11
11
|
resolveArtifacts,
|
|
12
12
|
safeRead
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OOEMKOX6.js";
|
|
14
14
|
import {
|
|
15
15
|
configDir
|
|
16
16
|
} from "./chunk-4TSWU2SU.js";
|
|
17
|
+
import {
|
|
18
|
+
makeRedactor
|
|
19
|
+
} from "./chunk-CU57HT2E.js";
|
|
17
20
|
import {
|
|
18
21
|
extractFrontmatter
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MSMB6XOS.js";
|
|
20
23
|
|
|
21
24
|
// src/tracevals/rules/turn.ts
|
|
22
25
|
var INJECTED = /<(system-reminder|task-notification|ci-monitor-event|local-command-stdout|local-command-stderr|local-command-caveat)>[\s\S]*?<\/\1>/g;
|
|
@@ -102,6 +105,7 @@ var Collector = class {
|
|
|
102
105
|
this.home = home;
|
|
103
106
|
const match = exclude.length > 0 ? picomatch(exclude, { dot: true }) : null;
|
|
104
107
|
this.excluded = (path) => match !== null && match(this.display(path));
|
|
108
|
+
this.excludedName = (name) => exclude.includes(name);
|
|
105
109
|
}
|
|
106
110
|
cwd;
|
|
107
111
|
root;
|
|
@@ -111,6 +115,8 @@ var Collector = class {
|
|
|
111
115
|
seen = /* @__PURE__ */ new Set();
|
|
112
116
|
parsed = /* @__PURE__ */ new Map();
|
|
113
117
|
excluded;
|
|
118
|
+
/** Whether `exclude` lists, as it is, the name of a source with no file, such as `prompt`. */
|
|
119
|
+
excludedName;
|
|
114
120
|
display(path) {
|
|
115
121
|
const inRoot = relPosix(this.root, path);
|
|
116
122
|
if (inRoot !== null) return inRoot;
|
|
@@ -153,7 +159,8 @@ var Collector = class {
|
|
|
153
159
|
format,
|
|
154
160
|
trigger,
|
|
155
161
|
content,
|
|
156
|
-
sha256: createHash("sha256").update(content).digest("hex")
|
|
162
|
+
sha256: createHash("sha256").update(content).digest("hex"),
|
|
163
|
+
blocks: true
|
|
157
164
|
};
|
|
158
165
|
if (skill !== void 0) source.skill = skill;
|
|
159
166
|
const declared = this.declared(path, content);
|
|
@@ -162,10 +169,12 @@ var Collector = class {
|
|
|
162
169
|
return source;
|
|
163
170
|
}
|
|
164
171
|
/**
|
|
165
|
-
* Adds a source that says what the session was asked
|
|
166
|
-
* evals. With no file, its display path is its
|
|
172
|
+
* Adds a source that says what the session was asked, or one the transcript
|
|
173
|
+
* recorded. These never declare evals. With no file, its display path is its
|
|
174
|
+
* format, and `exclude` matches that name.
|
|
167
175
|
*/
|
|
168
|
-
addRequest(file, content, format, trigger) {
|
|
176
|
+
addRequest(file, content, format, trigger, blocks = true) {
|
|
177
|
+
if (EXCLUDABLE_BY_NAME.has(format) && this.excludedName(format)) return;
|
|
169
178
|
if (file !== null) {
|
|
170
179
|
if (this.has(file) || this.excluded(file)) return;
|
|
171
180
|
this.seen.add(key(file));
|
|
@@ -176,7 +185,8 @@ var Collector = class {
|
|
|
176
185
|
format,
|
|
177
186
|
trigger,
|
|
178
187
|
content,
|
|
179
|
-
sha256: createHash("sha256").update(content).digest("hex")
|
|
188
|
+
sha256: createHash("sha256").update(content).digest("hex"),
|
|
189
|
+
blocks
|
|
180
190
|
});
|
|
181
191
|
}
|
|
182
192
|
declared(path, content) {
|
|
@@ -255,8 +265,62 @@ async function resolveTurnSources(trace, turn, opts) {
|
|
|
255
265
|
addPrompts(c, trace, turn);
|
|
256
266
|
await addPlan(c, trace, turn, opts);
|
|
257
267
|
await addSpecs(c, touches, opts.plans ?? []);
|
|
268
|
+
await addSystemPrompt(c, trace, turn, opts);
|
|
258
269
|
return { sources: c.sources, warnings: c.warnings };
|
|
259
270
|
}
|
|
271
|
+
var EXCLUDABLE_BY_NAME = /* @__PURE__ */ new Set(["prompt", "plan", "system-prompt"]);
|
|
272
|
+
var BOUNDARY_MARKER = "__SYSTEM_PROMPT_DYNAMIC_BOUNDARY__";
|
|
273
|
+
function lastAttachment(trace, turn, type) {
|
|
274
|
+
for (let i = trace.events.length - 1; i >= 0; i -= 1) {
|
|
275
|
+
const event = trace.events[i];
|
|
276
|
+
if (event === void 0 || event.kind !== "meta" || event.index > turn.to) continue;
|
|
277
|
+
const attachment = event.raw.attachment;
|
|
278
|
+
if (event.raw.type === "attachment" && isRecord(attachment) && attachment.type === type) {
|
|
279
|
+
return { index: event.index, record: event.raw, attachment };
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return void 0;
|
|
283
|
+
}
|
|
284
|
+
async function addSystemPrompt(c, trace, turn, opts) {
|
|
285
|
+
const scrub = makeRedactor(opts.redact ?? []);
|
|
286
|
+
const style = lastAttachment(trace, turn, "output_style_instructions")?.attachment.style;
|
|
287
|
+
const styleName = isRecord(style) && typeof style.name === "string" ? style.name : void 0;
|
|
288
|
+
const stylePrompt = isRecord(style) && typeof style.prompt === "string" ? style.prompt : void 0;
|
|
289
|
+
let builtIn;
|
|
290
|
+
if (styleName !== void 0 && stylePrompt !== void 0) {
|
|
291
|
+
const file = await userStyleFile(c, opts, styleName);
|
|
292
|
+
if (file === void 0) builtIn = stylePrompt;
|
|
293
|
+
else c.addRequest(file, scrub(stylePrompt), "output-style", `style ${styleName}`);
|
|
294
|
+
}
|
|
295
|
+
const snapshot = lastAttachment(trace, turn, "prompt_snapshot");
|
|
296
|
+
const recorded = snapshot?.attachment.systemPrompt;
|
|
297
|
+
if (snapshot === void 0 || !Array.isArray(recorded)) return;
|
|
298
|
+
const blocks = recorded.filter((b) => typeof b === "string");
|
|
299
|
+
const custom = !blocks.includes(BOUNDARY_MARKER);
|
|
300
|
+
const content = scrub([...blocks, ...builtIn !== void 0 ? [builtIn] : []].join("\n\n"));
|
|
301
|
+
const { version } = snapshot.record;
|
|
302
|
+
const by = typeof version === "string" ? `, Claude Code ${version}` : "";
|
|
303
|
+
const trigger = `recorded at turn ${String(snapshot.index)}${by}${custom ? ", custom" : ""}`;
|
|
304
|
+
c.addRequest(
|
|
305
|
+
null,
|
|
306
|
+
content,
|
|
307
|
+
"system-prompt",
|
|
308
|
+
trigger,
|
|
309
|
+
/* blocks= */
|
|
310
|
+
custom
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
async function userStyleFile(c, opts, name) {
|
|
314
|
+
const dirs = [.../* @__PURE__ */ new Set([c.cwd, c.root])].map((b) => join(b, ".claude", "output-styles"));
|
|
315
|
+
dirs.push(join(configDir(opts.env), "output-styles"));
|
|
316
|
+
for (const dir of dirs) {
|
|
317
|
+
for (const path of await listInTree(dir, (p) => p.endsWith(".md"), { maxDepth: 0 })) {
|
|
318
|
+
const declared = (await frontOf(c, path))?.name;
|
|
319
|
+
if ((typeof declared === "string" ? declared : basename(path, ".md")) === name) return path;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return void 0;
|
|
323
|
+
}
|
|
260
324
|
function addPrompts(c, trace, turn) {
|
|
261
325
|
const typed = trace.events.filter((e) => e.index <= turn.to && isTypedPrompt(e));
|
|
262
326
|
const main = typed.filter((e) => e.sidechain !== true);
|
|
@@ -607,4 +671,4 @@ export {
|
|
|
607
671
|
resolveTurnSources,
|
|
608
672
|
pathKey
|
|
609
673
|
};
|
|
610
|
-
//# sourceMappingURL=chunk-
|
|
674
|
+
//# sourceMappingURL=chunk-D6RO54QD.js.map
|