@theokit/sdk 4.40.0 → 4.41.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/CHANGELOG.md +47 -0
- package/README.md +2 -2
- package/dist/agent-35MGOZVH.js +46 -0
- package/dist/{agent-MSR3DHO4.js.map → agent-35MGOZVH.js.map} +1 -1
- package/dist/agent-6C2ODKFU.cjs +55 -0
- package/dist/{agent-OOXJJD6A.cjs.map → agent-6C2ODKFU.cjs.map} +1 -1
- package/dist/{agent-BzZwYFiw.d.ts → agent-BiCINq25.d.ts} +2 -2
- package/dist/{agent-DxEL4fHh.d.cts → agent-Zta1kvGH.d.cts} +2 -2
- package/dist/agent-session-store-EPUERCUU.cjs +23 -0
- package/dist/{agent-session-store-RHTLZ5OX.cjs.map → agent-session-store-EPUERCUU.cjs.map} +1 -1
- package/dist/agent-session-store-TXP5ZVOD.js +6 -0
- package/dist/{agent-session-store-EGTTYSKS.js.map → agent-session-store-TXP5ZVOD.js.map} +1 -1
- package/dist/auth/index.cjs +19 -15
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +4 -4
- package/dist/{batch-WX2HLXX2.js → batch-OUF4N2TM.js} +9 -9
- package/dist/{batch-WX2HLXX2.js.map → batch-OUF4N2TM.js.map} +1 -1
- package/dist/{batch-FO2KZN7W.cjs → batch-URTEXK77.cjs} +26 -26
- package/dist/{batch-FO2KZN7W.cjs.map → batch-URTEXK77.cjs.map} +1 -1
- package/dist/{chunk-PDOLUFGY.cjs → chunk-27DYRARU.cjs} +4 -4
- package/dist/{chunk-PDOLUFGY.cjs.map → chunk-27DYRARU.cjs.map} +1 -1
- package/dist/{chunk-LYD3ALDT.js → chunk-2S6B5B2A.js} +5 -5
- package/dist/{chunk-LYD3ALDT.js.map → chunk-2S6B5B2A.js.map} +1 -1
- package/dist/{chunk-VTDQRUAJ.js → chunk-2WB6EIYW.js} +4 -4
- package/dist/{chunk-VTDQRUAJ.js.map → chunk-2WB6EIYW.js.map} +1 -1
- package/dist/{chunk-3CAQCFVZ.js → chunk-35NFZ7QB.js} +3 -3
- package/dist/{chunk-3CAQCFVZ.js.map → chunk-35NFZ7QB.js.map} +1 -1
- package/dist/{chunk-HCRCNI7A.js → chunk-3KY7MHR4.js} +3 -3
- package/dist/{chunk-HCRCNI7A.js.map → chunk-3KY7MHR4.js.map} +1 -1
- package/dist/{chunk-BURYFNOM.cjs → chunk-4JBHSLQO.cjs} +2 -2
- package/dist/chunk-4JBHSLQO.cjs.map +1 -0
- package/dist/{chunk-V7CA3CX5.cjs → chunk-4JRRFRV4.cjs} +5 -4
- package/dist/chunk-4JRRFRV4.cjs.map +1 -0
- package/dist/{chunk-5KOW3GLE.js → chunk-4QEC4CCS.js} +2 -2
- package/dist/chunk-4QEC4CCS.js.map +1 -0
- package/dist/{chunk-ALDFVGQQ.cjs → chunk-57KX5WTP.cjs} +9 -9
- package/dist/{chunk-ALDFVGQQ.cjs.map → chunk-57KX5WTP.cjs.map} +1 -1
- package/dist/{chunk-CJHBSSAF.cjs → chunk-64TJCXY5.cjs} +15 -15
- package/dist/{chunk-CJHBSSAF.cjs.map → chunk-64TJCXY5.cjs.map} +1 -1
- package/dist/{chunk-IEKSEAIV.js → chunk-6FSQ3CHQ.js} +3 -3
- package/dist/{chunk-IEKSEAIV.js.map → chunk-6FSQ3CHQ.js.map} +1 -1
- package/dist/{chunk-ZVQJHY4Y.cjs → chunk-6W4U2G3J.cjs} +5 -5
- package/dist/{chunk-ZVQJHY4Y.cjs.map → chunk-6W4U2G3J.cjs.map} +1 -1
- package/dist/{chunk-FMDZZRYE.cjs → chunk-6X2HUT4A.cjs} +8 -8
- package/dist/{chunk-FMDZZRYE.cjs.map → chunk-6X2HUT4A.cjs.map} +1 -1
- package/dist/{chunk-X2LDDKFM.cjs → chunk-7PESI6YD.cjs} +10 -10
- package/dist/{chunk-X2LDDKFM.cjs.map → chunk-7PESI6YD.cjs.map} +1 -1
- package/dist/{chunk-EYUZZXHZ.js → chunk-AF4BBKIF.js} +4 -4
- package/dist/chunk-AF4BBKIF.js.map +1 -0
- package/dist/{chunk-7GFX45DD.js → chunk-AM2CNBKE.js} +2 -2
- package/dist/chunk-AM2CNBKE.js.map +1 -0
- package/dist/{chunk-XKGOIGTJ.js → chunk-AZ6FKDQR.js} +3 -3
- package/dist/{chunk-XKGOIGTJ.js.map → chunk-AZ6FKDQR.js.map} +1 -1
- package/dist/{chunk-WPZTYOUX.cjs → chunk-BBZYXVLZ.cjs} +2 -2
- package/dist/chunk-BBZYXVLZ.cjs.map +1 -0
- package/dist/{chunk-2UBBO2MD.js → chunk-BHWHE453.js} +5 -5
- package/dist/{chunk-2UBBO2MD.js.map → chunk-BHWHE453.js.map} +1 -1
- package/dist/{chunk-LY4KEOOY.cjs → chunk-BRHRQOJA.cjs} +4 -4
- package/dist/{chunk-LY4KEOOY.cjs.map → chunk-BRHRQOJA.cjs.map} +1 -1
- package/dist/{chunk-4H2QARXM.cjs → chunk-BV42CCRP.cjs} +7 -7
- package/dist/{chunk-4H2QARXM.cjs.map → chunk-BV42CCRP.cjs.map} +1 -1
- package/dist/{chunk-ZRQZOJ3N.js → chunk-DCKIS53K.js} +52 -51
- package/dist/chunk-DCKIS53K.js.map +1 -0
- package/dist/{chunk-SKWVAQAY.js → chunk-DEZ75ET5.js} +3 -3
- package/dist/{chunk-SKWVAQAY.js.map → chunk-DEZ75ET5.js.map} +1 -1
- package/dist/{chunk-WJOLIPEM.js → chunk-EON4YTR6.js} +8 -8
- package/dist/{chunk-WJOLIPEM.js.map → chunk-EON4YTR6.js.map} +1 -1
- package/dist/{chunk-MI3OKONE.js → chunk-F4RUADRC.js} +3 -3
- package/dist/{chunk-MI3OKONE.js.map → chunk-F4RUADRC.js.map} +1 -1
- package/dist/{chunk-BVGJXMSB.cjs → chunk-F5DSDDBY.cjs} +312 -311
- package/dist/chunk-F5DSDDBY.cjs.map +1 -0
- package/dist/{chunk-SEWAPWAF.cjs → chunk-FMIKUGF2.cjs} +124 -124
- package/dist/chunk-FMIKUGF2.cjs.map +1 -0
- package/dist/{chunk-XZ7PO2FM.js → chunk-FRQ6F44U.js} +4 -4
- package/dist/{chunk-XZ7PO2FM.js.map → chunk-FRQ6F44U.js.map} +1 -1
- package/dist/{chunk-3LK3ZDL5.cjs → chunk-FZ4YMZA3.cjs} +5 -5
- package/dist/{chunk-3LK3ZDL5.cjs.map → chunk-FZ4YMZA3.cjs.map} +1 -1
- package/dist/{chunk-MM2JKFQV.cjs → chunk-GC44RATP.cjs} +10 -10
- package/dist/{chunk-MM2JKFQV.cjs.map → chunk-GC44RATP.cjs.map} +1 -1
- package/dist/{chunk-LNTQRD23.cjs → chunk-GH52NOCL.cjs} +26 -26
- package/dist/chunk-GH52NOCL.cjs.map +1 -0
- package/dist/{chunk-T6KFGMNY.cjs → chunk-GLEKLAUW.cjs} +12 -12
- package/dist/chunk-GLEKLAUW.cjs.map +1 -0
- package/dist/{chunk-UIPTINIF.js → chunk-GNMPCZNN.js} +6 -6
- package/dist/chunk-GNMPCZNN.js.map +1 -0
- package/dist/{chunk-K6TWHNT4.cjs → chunk-HECR7KF5.cjs} +11 -11
- package/dist/{chunk-K6TWHNT4.cjs.map → chunk-HECR7KF5.cjs.map} +1 -1
- package/dist/{chunk-NHXPQN44.js → chunk-HK4HRLWE.js} +3 -3
- package/dist/{chunk-NHXPQN44.js.map → chunk-HK4HRLWE.js.map} +1 -1
- package/dist/{chunk-LWVKI75U.js → chunk-HKSSM5RK.js} +3 -3
- package/dist/{chunk-LWVKI75U.js.map → chunk-HKSSM5RK.js.map} +1 -1
- package/dist/{chunk-ELYGL52R.cjs → chunk-HLNLYLNN.cjs} +4 -4
- package/dist/{chunk-ELYGL52R.cjs.map → chunk-HLNLYLNN.cjs.map} +1 -1
- package/dist/{chunk-ONVIALVV.js → chunk-IMX5YODO.js} +15 -15
- package/dist/chunk-IMX5YODO.js.map +1 -0
- package/dist/{chunk-C64E2EJS.js → chunk-J5RW43IR.js} +4 -4
- package/dist/{chunk-C64E2EJS.js.map → chunk-J5RW43IR.js.map} +1 -1
- package/dist/{chunk-4E3HLSYE.cjs → chunk-JA4FEA5Z.cjs} +4 -4
- package/dist/{chunk-4E3HLSYE.cjs.map → chunk-JA4FEA5Z.cjs.map} +1 -1
- package/dist/{chunk-EJNFZET4.cjs → chunk-JO76RWCA.cjs} +11 -11
- package/dist/{chunk-EJNFZET4.cjs.map → chunk-JO76RWCA.cjs.map} +1 -1
- package/dist/{chunk-QMIG7TKG.cjs → chunk-KCQUYQ3V.cjs} +17 -17
- package/dist/chunk-KCQUYQ3V.cjs.map +1 -0
- package/dist/{chunk-AKMPQJPX.js → chunk-L4JFQCG4.js} +5 -5
- package/dist/chunk-L4JFQCG4.js.map +1 -0
- package/dist/{chunk-HJMFPIRM.js → chunk-LLE7HPRI.js} +5 -5
- package/dist/{chunk-HJMFPIRM.js.map → chunk-LLE7HPRI.js.map} +1 -1
- package/dist/{chunk-4H2DCO6P.js → chunk-LXKNENHK.js} +3 -3
- package/dist/{chunk-4H2DCO6P.js.map → chunk-LXKNENHK.js.map} +1 -1
- package/dist/{chunk-PY7G7YWK.cjs → chunk-MMZX557L.cjs} +5 -5
- package/dist/{chunk-PY7G7YWK.cjs.map → chunk-MMZX557L.cjs.map} +1 -1
- package/dist/{chunk-VQ33XLC6.js → chunk-MRKSSN36.js} +3 -3
- package/dist/{chunk-VQ33XLC6.js.map → chunk-MRKSSN36.js.map} +1 -1
- package/dist/{chunk-33B2BSME.cjs → chunk-NETYW4V3.cjs} +13 -5
- package/dist/chunk-NETYW4V3.cjs.map +1 -0
- package/dist/{chunk-OVGNXGCK.cjs → chunk-NNNUQELM.cjs} +9 -9
- package/dist/{chunk-OVGNXGCK.cjs.map → chunk-NNNUQELM.cjs.map} +1 -1
- package/dist/{chunk-BM7VYZED.js → chunk-NOM2YWFP.js} +5 -5
- package/dist/{chunk-BM7VYZED.js.map → chunk-NOM2YWFP.js.map} +1 -1
- package/dist/{chunk-WMWZAJMJ.cjs → chunk-NRA36JKG.cjs} +11 -11
- package/dist/{chunk-WMWZAJMJ.cjs.map → chunk-NRA36JKG.cjs.map} +1 -1
- package/dist/{chunk-4HKAZRTC.js → chunk-O3IZ7JEL.js} +3 -3
- package/dist/{chunk-4HKAZRTC.js.map → chunk-O3IZ7JEL.js.map} +1 -1
- package/dist/{chunk-RHQJX3EI.cjs → chunk-OEFFPR2S.cjs} +4 -4
- package/dist/{chunk-RHQJX3EI.cjs.map → chunk-OEFFPR2S.cjs.map} +1 -1
- package/dist/{chunk-4GGXF7YM.js → chunk-OLLOUAUJ.js} +3 -3
- package/dist/{chunk-4GGXF7YM.js.map → chunk-OLLOUAUJ.js.map} +1 -1
- package/dist/{chunk-RA2UZBYP.js → chunk-PAV4ZPSW.js} +3 -3
- package/dist/{chunk-RA2UZBYP.js.map → chunk-PAV4ZPSW.js.map} +1 -1
- package/dist/{chunk-RNCN2TTP.js → chunk-PBML2FHN.js} +2 -2
- package/dist/{chunk-A76OFN2B.cjs.map → chunk-PBML2FHN.js.map} +1 -1
- package/dist/{chunk-XRKFWV7K.js → chunk-PYM5OUL4.js} +5 -5
- package/dist/{chunk-XRKFWV7K.js.map → chunk-PYM5OUL4.js.map} +1 -1
- package/dist/{chunk-F4SQTWVR.js → chunk-Q4DTGCSD.js} +3 -3
- package/dist/{chunk-F4SQTWVR.js.map → chunk-Q4DTGCSD.js.map} +1 -1
- package/dist/{chunk-S7OEXQMI.cjs → chunk-R3CKCRK3.cjs} +4 -4
- package/dist/{chunk-S7OEXQMI.cjs.map → chunk-R3CKCRK3.cjs.map} +1 -1
- package/dist/{chunk-5COPO3H4.cjs → chunk-RBQYHEZD.cjs} +4 -4
- package/dist/{chunk-5COPO3H4.cjs.map → chunk-RBQYHEZD.cjs.map} +1 -1
- package/dist/{chunk-KRPEPZQY.js → chunk-RJBHWM6D.js} +7 -7
- package/dist/chunk-RJBHWM6D.js.map +1 -0
- package/dist/{chunk-U53AYSHS.cjs → chunk-S4Q5OMIK.cjs} +11 -11
- package/dist/{chunk-U53AYSHS.cjs.map → chunk-S4Q5OMIK.cjs.map} +1 -1
- package/dist/{chunk-FUP3ZA5T.js → chunk-SNKY3C2L.js} +4 -4
- package/dist/{chunk-FUP3ZA5T.js.map → chunk-SNKY3C2L.js.map} +1 -1
- package/dist/{chunk-BBMN4O6E.js → chunk-TJRPNBY5.js} +4 -4
- package/dist/{chunk-BBMN4O6E.js.map → chunk-TJRPNBY5.js.map} +1 -1
- package/dist/{chunk-27E4EMR6.cjs → chunk-UJMEWGO6.cjs} +4 -4
- package/dist/{chunk-27E4EMR6.cjs.map → chunk-UJMEWGO6.cjs.map} +1 -1
- package/dist/{chunk-X627TO3A.js → chunk-UTYCG4RB.js} +12 -12
- package/dist/chunk-UTYCG4RB.js.map +1 -0
- package/dist/{chunk-5XPKYDK7.js → chunk-VQFSEKU5.js} +12 -5
- package/dist/chunk-VQFSEKU5.js.map +1 -0
- package/dist/{chunk-NJVV5OAV.cjs → chunk-WCXOKGOQ.cjs} +8 -8
- package/dist/chunk-WCXOKGOQ.cjs.map +1 -0
- package/dist/{chunk-PIBXDEZM.cjs → chunk-WIGJGFH4.cjs} +5 -5
- package/dist/{chunk-PIBXDEZM.cjs.map → chunk-WIGJGFH4.cjs.map} +1 -1
- package/dist/{chunk-LOTWA65Z.cjs → chunk-X2YQP452.cjs} +11 -11
- package/dist/{chunk-LOTWA65Z.cjs.map → chunk-X2YQP452.cjs.map} +1 -1
- package/dist/{chunk-ZAKTZ5B4.cjs → chunk-XA3TSBAH.cjs} +8 -8
- package/dist/{chunk-ZAKTZ5B4.cjs.map → chunk-XA3TSBAH.cjs.map} +1 -1
- package/dist/{chunk-H2V6CXM7.cjs → chunk-XR4LPBXH.cjs} +9 -9
- package/dist/{chunk-H2V6CXM7.cjs.map → chunk-XR4LPBXH.cjs.map} +1 -1
- package/dist/{chunk-6AE4QTSF.cjs → chunk-Y33IGXCJ.cjs} +24 -24
- package/dist/{chunk-6AE4QTSF.cjs.map → chunk-Y33IGXCJ.cjs.map} +1 -1
- package/dist/{chunk-E7WWIX34.cjs → chunk-YULF6FPB.cjs} +8 -8
- package/dist/{chunk-E7WWIX34.cjs.map → chunk-YULF6FPB.cjs.map} +1 -1
- package/dist/{chunk-23HI77BZ.js → chunk-Z6N6SDNR.js} +4 -4
- package/dist/chunk-Z6N6SDNR.js.map +1 -0
- package/dist/{chunk-A76OFN2B.cjs → chunk-ZHPET3LZ.cjs} +2 -2
- package/dist/chunk-ZHPET3LZ.cjs.map +1 -0
- package/dist/{chunk-5VKUZ26Q.js → chunk-ZNW2TXLO.js} +3 -3
- package/dist/{chunk-5VKUZ26Q.js.map → chunk-ZNW2TXLO.js.map} +1 -1
- package/dist/{chunk-N4JNY5DT.cjs → chunk-ZO2L5U6F.cjs} +32 -32
- package/dist/chunk-ZO2L5U6F.cjs.map +1 -0
- package/dist/{chunk-RMCHJZNZ.js → chunk-ZS6SLELQ.js} +4 -4
- package/dist/{chunk-RMCHJZNZ.js.map → chunk-ZS6SLELQ.js.map} +1 -1
- package/dist/{chunk-7PBAJ2WA.js → chunk-ZTEAJAE6.js} +3 -3
- package/dist/{chunk-7PBAJ2WA.js.map → chunk-ZTEAJAE6.js.map} +1 -1
- package/dist/compact-session-65XCKO6H.js +18 -0
- package/dist/{compact-session-AZU2LEAE.js.map → compact-session-65XCKO6H.js.map} +1 -1
- package/dist/compact-session-OU6SRPVJ.cjs +55 -0
- package/dist/{compact-session-TRCEYCPG.cjs.map → compact-session-OU6SRPVJ.cjs.map} +1 -1
- package/dist/compaction.cjs +16 -16
- package/dist/compaction.js +3 -3
- package/dist/concurrency.cjs +6 -6
- package/dist/concurrency.js +4 -4
- package/dist/context-2G4375BZ.cjs +22 -0
- package/dist/{context-DNFT4B5D.cjs.map → context-2G4375BZ.cjs.map} +1 -1
- package/dist/context-GSQYVVMJ.js +5 -0
- package/dist/{context-LYE6TJL5.js.map → context-GSQYVVMJ.js.map} +1 -1
- package/dist/{cron-BGR0HOz9.d.cts → cron-DgHJnMAK.d.cts} +2 -2
- package/dist/{cron-CDAIWCrL.d.ts → cron-DyWQsEG6.d.ts} +2 -2
- package/dist/cron.cjs +33 -33
- package/dist/cron.d.cts +3 -3
- package/dist/cron.d.ts +3 -3
- package/dist/cron.js +32 -32
- package/dist/{errors-DxQe4_Qy.d.ts → errors-BSoXcl3F.d.cts} +3 -3
- package/dist/{errors-L1bxHHO0.d.cts → errors-CHllybaU.d.ts} +3 -3
- package/dist/errors.cjs +21 -21
- package/dist/errors.d.cts +2 -2
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +2 -2
- package/dist/eval.cjs +43 -43
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +33 -33
- package/dist/eval.js.map +1 -1
- package/dist/{executor-TQ3FSZ7F.cjs → executor-CB75B5BH.cjs} +24 -24
- package/dist/{executor-TQ3FSZ7F.cjs.map → executor-CB75B5BH.cjs.map} +1 -1
- package/dist/{executor-PCRX3533.js → executor-VQLTQY53.js} +7 -7
- package/dist/{executor-PCRX3533.js.map → executor-VQLTQY53.js.map} +1 -1
- package/dist/filesystem/index.cjs +7 -7
- package/dist/filesystem/index.js +3 -3
- package/dist/fs-session-store-MAZV5FXJ.cjs +19 -0
- package/dist/{fs-session-store-KRZZIG3O.cjs.map → fs-session-store-MAZV5FXJ.cjs.map} +1 -1
- package/dist/fs-session-store-ZNUYZHYI.js +10 -0
- package/dist/{fs-session-store-I6GUIFRO.js.map → fs-session-store-ZNUYZHYI.js.map} +1 -1
- package/dist/generate-object-6PWGH5DZ.cjs +20 -0
- package/dist/{generate-object-QILSGTEJ.cjs.map → generate-object-6PWGH5DZ.cjs.map} +1 -1
- package/dist/generate-object-IXMJ7FUX.js +7 -0
- package/dist/{generate-object-DLHT5RXH.js.map → generate-object-IXMJ7FUX.js.map} +1 -1
- package/dist/index-manager-X5IPG2JL.js +11 -0
- package/dist/{index-manager-SXF3FAQV.js.map → index-manager-X5IPG2JL.js.map} +1 -1
- package/dist/index-manager-YFFEPISE.cjs +20 -0
- package/dist/{index-manager-LEMQ73A7.cjs.map → index-manager-YFFEPISE.cjs.map} +1 -1
- package/dist/index.cjs +139 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +53 -53
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-BVSERZCI.cjs → inject-session-DDC36KKP.cjs} +11 -11
- package/dist/{inject-session-BVSERZCI.cjs.map → inject-session-DDC36KKP.cjs.map} +1 -1
- package/dist/{inject-session-E75EP3LL.js → inject-session-UBM4KVSV.js} +8 -8
- package/dist/{inject-session-E75EP3LL.js.map → inject-session-UBM4KVSV.js.map} +1 -1
- package/dist/internal/auth/credential-store.d.ts +13 -0
- package/dist/internal/diagnostics.d.ts +2 -2
- package/dist/internal/error-mappers/anthropic.d.ts +1 -1
- package/dist/internal/eval/code-runner.d.ts +1 -1
- package/dist/internal/global-singleton.d.ts +1 -1
- package/dist/internal/judge/judge-call.d.ts +1 -1
- package/dist/internal/memory/adapters/index.cjs +8 -8
- package/dist/internal/memory/adapters/index.js +7 -7
- package/dist/internal/memory/embedding-adapter.d.ts +1 -1
- package/dist/internal/memory/memory-index.d.ts +1 -1
- package/dist/internal/persistence/atomic-write.d.cts +14 -1
- package/dist/internal/persistence/atomic-write.d.ts +14 -1
- package/dist/internal/persistence/index.cjs +25 -25
- package/dist/internal/persistence/index.js +6 -6
- package/dist/internal/persistence/jsonl.d.cts +2 -2
- package/dist/internal/persistence/jsonl.d.ts +2 -2
- package/dist/internal/persistence/session-artifacts.d.cts +27 -0
- package/dist/internal/persistence/session-artifacts.d.ts +27 -0
- package/dist/internal/persistence/session-transcript.d.cts +1 -1
- package/dist/internal/persistence/session-transcript.d.ts +1 -1
- package/dist/internal/runtime/lifecycle/env-policy.d.ts +1 -1
- package/dist/internal/security/index.cjs +13 -13
- package/dist/internal/security/index.js +3 -3
- package/dist/internal/session/agent-session.d.ts +1 -1
- package/dist/internal/session/compact-session.d.ts +1 -1
- package/dist/internal/session/session-cache.d.ts +1 -1
- package/dist/judge-call-3QZO5H5N.js +5 -0
- package/dist/{judge-call-NPRU7JIQ.js.map → judge-call-3QZO5H5N.js.map} +1 -1
- package/dist/judge-call-J5EETJL3.cjs +22 -0
- package/dist/{judge-call-AIT3EULV.cjs.map → judge-call-J5EETJL3.cjs.map} +1 -1
- package/dist/models.cjs +20 -20
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +5 -5
- package/dist/models.js.map +1 -1
- package/dist/path-safety.cjs +10 -10
- package/dist/path-safety.js +3 -3
- package/dist/persistence.cjs +44 -30
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.d.cts +4 -3
- package/dist/persistence.d.ts +4 -3
- package/dist/persistence.js +22 -12
- package/dist/persistence.js.map +1 -1
- package/dist/project.cjs +5 -5
- package/dist/project.js +3 -3
- package/dist/registry-KB3TS6BM.cjs +46 -0
- package/dist/{registry-VKDFTK6L.cjs.map → registry-KB3TS6BM.cjs.map} +1 -1
- package/dist/registry-PPFMCM4A.js +9 -0
- package/dist/{registry-AXQXPLFH.js.map → registry-PPFMCM4A.js.map} +1 -1
- package/dist/retry.cjs +4 -4
- package/dist/retry.js +3 -3
- package/dist/{run-XXnwwGOT.d.ts → run-C8FBAC8o.d.cts} +21 -2
- package/dist/{run-XXnwwGOT.d.cts → run-C8FBAC8o.d.ts} +21 -2
- package/dist/{run-until-BK56WG4P.js → run-until-HEQOUVU6.js} +2 -2
- package/dist/run-until-HEQOUVU6.js.map +1 -0
- package/dist/{run-until-L5KQD3PV.cjs → run-until-U2B5FJJI.cjs} +2 -2
- package/dist/run-until-U2B5FJJI.cjs.map +1 -0
- package/dist/sandbox/bwrap.d.cts +15 -1
- package/dist/sandbox/bwrap.d.ts +15 -1
- package/dist/sandbox/index.cjs +39 -24
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.d.cts +1 -1
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/index.js +24 -10
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sandbox/provision.d.cts +1 -1
- package/dist/sandbox/provision.d.ts +1 -1
- package/dist/server/errors-envelope.cjs +14 -14
- package/dist/server/errors-envelope.d.cts +3 -3
- package/dist/server/errors-envelope.d.ts +3 -3
- package/dist/server/errors-envelope.js +3 -3
- package/dist/session-transcript-7FWTO4BK.js +5 -0
- package/dist/{session-transcript-X3UMSVL2.js.map → session-transcript-7FWTO4BK.js.map} +1 -1
- package/dist/session-transcript-FYRKWRWV.cjs +50 -0
- package/dist/{session-transcript-SLQRKQ72.cjs.map → session-transcript-FYRKWRWV.cjs.map} +1 -1
- package/dist/skills.cjs +7 -7
- package/dist/skills.js +5 -5
- package/dist/stream-object-3R3HZPQN.cjs +20 -0
- package/dist/{stream-object-3HEUGMQY.cjs.map → stream-object-3R3HZPQN.cjs.map} +1 -1
- package/dist/stream-object-NPJXDZXO.js +7 -0
- package/dist/{stream-object-VWYW7FJ2.js.map → stream-object-NPJXDZXO.js.map} +1 -1
- package/dist/subagents-loader-5KQVYUNS.js +6 -0
- package/dist/{subagents-loader-QUIK6GMV.js.map → subagents-loader-5KQVYUNS.js.map} +1 -1
- package/dist/subagents-loader-FDXPBBRA.cjs +15 -0
- package/dist/{subagents-loader-F52ARQ62.cjs.map → subagents-loader-FDXPBBRA.cjs.map} +1 -1
- package/dist/subagents-loader.cjs +15 -15
- package/dist/subagents-loader.cjs.map +1 -1
- package/dist/subagents-loader.d.cts +2 -2
- package/dist/subagents-loader.d.ts +2 -2
- package/dist/subagents-loader.js +14 -14
- package/dist/subagents-loader.js.map +1 -1
- package/dist/subscription/index.cjs +3 -3
- package/dist/subscription/index.js +2 -2
- package/dist/task-store.cjs +7 -7
- package/dist/task-store.js +4 -4
- package/dist/types/run-events.d.ts +20 -1
- package/dist/types/session-record.d.ts +1 -1
- package/dist/types/usage.d.ts +1 -1
- package/dist/workflow.cjs +27 -27
- package/dist/workflow.js +6 -6
- package/docs/error-codes.md +22 -0
- package/docs/harness-capability-map.md +22 -0
- package/package.json +1 -1
- package/dist/agent-MSR3DHO4.js +0 -46
- package/dist/agent-OOXJJD6A.cjs +0 -55
- package/dist/agent-session-store-EGTTYSKS.js +0 -6
- package/dist/agent-session-store-RHTLZ5OX.cjs +0 -23
- package/dist/chunk-23HI77BZ.js.map +0 -1
- package/dist/chunk-33B2BSME.cjs.map +0 -1
- package/dist/chunk-5KOW3GLE.js.map +0 -1
- package/dist/chunk-5XPKYDK7.js.map +0 -1
- package/dist/chunk-7GFX45DD.js.map +0 -1
- package/dist/chunk-AKMPQJPX.js.map +0 -1
- package/dist/chunk-BURYFNOM.cjs.map +0 -1
- package/dist/chunk-BVGJXMSB.cjs.map +0 -1
- package/dist/chunk-EYUZZXHZ.js.map +0 -1
- package/dist/chunk-KRPEPZQY.js.map +0 -1
- package/dist/chunk-LNTQRD23.cjs.map +0 -1
- package/dist/chunk-N4JNY5DT.cjs.map +0 -1
- package/dist/chunk-NJVV5OAV.cjs.map +0 -1
- package/dist/chunk-ONVIALVV.js.map +0 -1
- package/dist/chunk-QMIG7TKG.cjs.map +0 -1
- package/dist/chunk-RNCN2TTP.js.map +0 -1
- package/dist/chunk-SEWAPWAF.cjs.map +0 -1
- package/dist/chunk-T6KFGMNY.cjs.map +0 -1
- package/dist/chunk-UIPTINIF.js.map +0 -1
- package/dist/chunk-V7CA3CX5.cjs.map +0 -1
- package/dist/chunk-WPZTYOUX.cjs.map +0 -1
- package/dist/chunk-X627TO3A.js.map +0 -1
- package/dist/chunk-ZRQZOJ3N.js.map +0 -1
- package/dist/compact-session-AZU2LEAE.js +0 -18
- package/dist/compact-session-TRCEYCPG.cjs +0 -55
- package/dist/context-DNFT4B5D.cjs +0 -22
- package/dist/context-LYE6TJL5.js +0 -5
- package/dist/fs-session-store-I6GUIFRO.js +0 -10
- package/dist/fs-session-store-KRZZIG3O.cjs +0 -19
- package/dist/generate-object-DLHT5RXH.js +0 -7
- package/dist/generate-object-QILSGTEJ.cjs +0 -20
- package/dist/index-manager-LEMQ73A7.cjs +0 -20
- package/dist/index-manager-SXF3FAQV.js +0 -11
- package/dist/judge-call-AIT3EULV.cjs +0 -22
- package/dist/judge-call-NPRU7JIQ.js +0 -5
- package/dist/registry-AXQXPLFH.js +0 -9
- package/dist/registry-VKDFTK6L.cjs +0 -46
- package/dist/run-until-BK56WG4P.js.map +0 -1
- package/dist/run-until-L5KQD3PV.cjs.map +0 -1
- package/dist/session-transcript-SLQRKQ72.cjs +0 -50
- package/dist/session-transcript-X3UMSVL2.js +0 -5
- package/dist/stream-object-3HEUGMQY.cjs +0 -20
- package/dist/stream-object-VWYW7FJ2.js +0 -7
- package/dist/subagents-loader-F52ARQ62.cjs +0 -15
- package/dist/subagents-loader-QUIK6GMV.js +0 -6
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
3
|
+
var chunkZO2L5U6F_cjs = require('./chunk-ZO2L5U6F.cjs');
|
|
4
|
+
var chunk4JBHSLQO_cjs = require('./chunk-4JBHSLQO.cjs');
|
|
5
|
+
require('./chunk-FZ4YMZA3.cjs');
|
|
6
|
+
var chunkWCXOKGOQ_cjs = require('./chunk-WCXOKGOQ.cjs');
|
|
7
|
+
require('./chunk-NETYW4V3.cjs');
|
|
8
|
+
require('./chunk-ZHPET3LZ.cjs');
|
|
9
9
|
|
|
10
10
|
// src/internal/session/inject-session.ts
|
|
11
11
|
async function injectSessionTurn(opts) {
|
|
12
|
-
await
|
|
12
|
+
await chunkZO2L5U6F_cjs.enqueueSessionWrite(opts.loc.cwd, opts.loc.agentId, async () => {
|
|
13
13
|
const prior = await opts.store.readRecords(opts.loc.agentId);
|
|
14
|
-
const transcript =
|
|
14
|
+
const transcript = chunkWCXOKGOQ_cjs.SessionTranscript.fromRecords(prior, {
|
|
15
15
|
cwd: opts.loc.cwd,
|
|
16
16
|
sessionId: opts.sessionId,
|
|
17
17
|
model: opts.loc.model ?? "unknown"
|
|
@@ -19,10 +19,10 @@ async function injectSessionTurn(opts) {
|
|
|
19
19
|
transcript.appendUserTurn(opts.userText);
|
|
20
20
|
transcript.appendAssistantTurn({ text: opts.assistantText });
|
|
21
21
|
await opts.store.appendRecords(opts.loc.agentId, transcript.records().slice(prior.length));
|
|
22
|
-
|
|
22
|
+
chunk4JBHSLQO_cjs.invalidateSessionCache(opts.loc.cwd, opts.loc.agentId);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
exports.injectSessionTurn = injectSessionTurn;
|
|
27
|
-
//# sourceMappingURL=inject-session-
|
|
28
|
-
//# sourceMappingURL=inject-session-
|
|
27
|
+
//# sourceMappingURL=inject-session-DDC36KKP.cjs.map
|
|
28
|
+
//# sourceMappingURL=inject-session-DDC36KKP.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":["enqueueSessionWrite","SessionTranscript","invalidateSessionCache"],"mappings":";;;;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAMA,sCAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAaC,mCAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAAC,wCAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-
|
|
1
|
+
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":["enqueueSessionWrite","SessionTranscript","invalidateSessionCache"],"mappings":";;;;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAMA,sCAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAaC,mCAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAAC,wCAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-DDC36KKP.cjs","sourcesContent":["/**\n * M51 (agent-builder) — inject a SYNTHETIC user+assistant pair into a session's persisted transcript\n * WITHOUT running an LLM turn. This is the Codex review-exit mechanism (`exit_success.xml` appended to\n * the parent thread history so follow-ups like \"fix finding 2\" work): the pair chains onto the DAG\n * leaf (M50 pattern) and the in-memory cache is invalidated so the NEXT send re-hydrates with it.\n */\nimport type { SessionStore } from \"../../types/session-store.js\";\nimport { SessionTranscript } from \"../persistence/session-transcript.js\";\nimport { enqueueSessionWrite, invalidateSessionCache } from \"./agent-session.js\";\nimport type { CompactLocation } from \"./compact-session.js\";\n\nexport async function injectSessionTurn(opts: {\n store: SessionStore;\n loc: CompactLocation;\n sessionId: string;\n userText: string;\n assistantText: string;\n}): Promise<void> {\n await enqueueSessionWrite(opts.loc.cwd, opts.loc.agentId, async () => {\n const prior = await opts.store.readRecords(opts.loc.agentId);\n const transcript = SessionTranscript.fromRecords(prior, {\n cwd: opts.loc.cwd,\n sessionId: opts.sessionId,\n model: opts.loc.model ?? \"unknown\",\n });\n transcript.appendUserTurn(opts.userText);\n transcript.appendAssistantTurn({ text: opts.assistantText });\n await opts.store.appendRecords(opts.loc.agentId, transcript.records().slice(prior.length));\n invalidateSessionCache(opts.loc.cwd, opts.loc.agentId);\n });\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { enqueueSessionWrite } from './chunk-
|
|
2
|
-
import { invalidateSessionCache } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { SessionTranscript } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
import { enqueueSessionWrite } from './chunk-IMX5YODO.js';
|
|
2
|
+
import { invalidateSessionCache } from './chunk-4QEC4CCS.js';
|
|
3
|
+
import './chunk-ZTEAJAE6.js';
|
|
4
|
+
import { SessionTranscript } from './chunk-AF4BBKIF.js';
|
|
5
|
+
import './chunk-VQFSEKU5.js';
|
|
6
|
+
import './chunk-PBML2FHN.js';
|
|
7
7
|
|
|
8
8
|
// src/internal/session/inject-session.ts
|
|
9
9
|
async function injectSessionTurn(opts) {
|
|
@@ -22,5 +22,5 @@ async function injectSessionTurn(opts) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export { injectSessionTurn };
|
|
25
|
-
//# sourceMappingURL=inject-session-
|
|
26
|
-
//# sourceMappingURL=inject-session-
|
|
25
|
+
//# sourceMappingURL=inject-session-UBM4KVSV.js.map
|
|
26
|
+
//# sourceMappingURL=inject-session-UBM4KVSV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":[],"mappings":";;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAM,oBAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAa,iBAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAA,sBAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-
|
|
1
|
+
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":[],"mappings":";;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAM,oBAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAa,iBAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAA,sBAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-UBM4KVSV.js","sourcesContent":["/**\n * M51 (agent-builder) — inject a SYNTHETIC user+assistant pair into a session's persisted transcript\n * WITHOUT running an LLM turn. This is the Codex review-exit mechanism (`exit_success.xml` appended to\n * the parent thread history so follow-ups like \"fix finding 2\" work): the pair chains onto the DAG\n * leaf (M50 pattern) and the in-memory cache is invalidated so the NEXT send re-hydrates with it.\n */\nimport type { SessionStore } from \"../../types/session-store.js\";\nimport { SessionTranscript } from \"../persistence/session-transcript.js\";\nimport { enqueueSessionWrite, invalidateSessionCache } from \"./agent-session.js\";\nimport type { CompactLocation } from \"./compact-session.js\";\n\nexport async function injectSessionTurn(opts: {\n store: SessionStore;\n loc: CompactLocation;\n sessionId: string;\n userText: string;\n assistantText: string;\n}): Promise<void> {\n await enqueueSessionWrite(opts.loc.cwd, opts.loc.agentId, async () => {\n const prior = await opts.store.readRecords(opts.loc.agentId);\n const transcript = SessionTranscript.fromRecords(prior, {\n cwd: opts.loc.cwd,\n sessionId: opts.sessionId,\n model: opts.loc.model ?? \"unknown\",\n });\n transcript.appendUserTurn(opts.userText);\n transcript.appendAssistantTurn({ text: opts.assistantText });\n await opts.store.appendRecords(opts.loc.agentId, transcript.records().slice(prior.length));\n invalidateSessionCache(opts.loc.cwd, opts.loc.agentId);\n });\n}\n"]}
|
|
@@ -23,6 +23,19 @@ export declare function authFilePath(config: CredentialStoreConfig, env?: Record
|
|
|
23
23
|
export declare class CredentialError extends AuthenticationError {
|
|
24
24
|
readonly name: string;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Read the credential file. Absent ⇒ `undefined` (the normal case). Present-but-wrong is a typed error
|
|
28
|
+
* naming the file: a malformed credential store must not surface as a raw parse crash. Enforces the
|
|
29
|
+
* 0700 dir / 0600 file mode gates (ported verbatim — a writable dir lets an attacker swap the file for a
|
|
30
|
+
* symlink to their own account).
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* The 0700-dir / 0600-file mode gates (ported verbatim). The DIRECTORY matters as much as the file:
|
|
34
|
+
* `mkdirSync(mode)` applies only at creation, so a pre-existing store dir keeps whatever mode it had, and a
|
|
35
|
+
* writable dir lets an attacker replace the credential file with a symlink to their own 0600 file — the
|
|
36
|
+
* agent then runs on THEIR account.
|
|
37
|
+
*/
|
|
38
|
+
export declare function assertSecureModes(dirPath: string, path: string): void;
|
|
26
39
|
export declare function readAuthFile(config: CredentialStoreConfig, env?: Record<string, string | undefined>): StoredCredential | undefined;
|
|
27
40
|
/**
|
|
28
41
|
* Read the stored OAuth credential (with its refresh token), or `undefined` when the store is absent or
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The library's single diagnostics channel — silent by default (#147).
|
|
3
3
|
*
|
|
4
|
-
* ##
|
|
4
|
+
* ## The problem
|
|
5
5
|
*
|
|
6
6
|
* The SDK wrote diagnostics straight to `process.stderr` from hot paths — 92 sites across 51
|
|
7
7
|
* files under `internal/`. In a TUI host (Ink, alternate screen), those writes interleave with the
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* A library cannot assume `stdout`/`stderr` are free sinks. The application owns the terminal, not
|
|
13
13
|
* the dependency.
|
|
14
14
|
*
|
|
15
|
-
* ##
|
|
15
|
+
* ## The contract
|
|
16
16
|
*
|
|
17
17
|
* - **`setDiagnosticsSink(fn)`** hands the messages to the application, which decides where to put
|
|
18
18
|
* them (a status line, a file, a panel). It is what was missing for a TUI to coexist with the SDK.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* 408 → `NetworkError` (`code: "timeout"`)
|
|
14
14
|
* 5xx → `NetworkError` (`code: "server_error"` — covers 529
|
|
15
15
|
* overloaded_error common at peak
|
|
16
|
-
*
|
|
16
|
+
* at peak)
|
|
17
17
|
* other → `UnknownAgentError` (`code: "unknown"`)
|
|
18
18
|
*
|
|
19
19
|
* Never throws — caller is already in an error path.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* verify-gate grades. Every command rides {@link SandboxBackend.execute}
|
|
9
9
|
* (ADR D2 — portable across Local/Docker/E2B).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* reference: knowledge-base/references/theocode-eval/lib/swebench-batch.ts:154
|
|
12
12
|
* (build prediction from captured diff), :157 (reverse apply-check on the
|
|
13
13
|
* mutated tree).
|
|
14
14
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* One singleton per realm, keyed by `Symbol.for`.
|
|
3
3
|
*
|
|
4
4
|
* It exists because a package can be loaded more than once in the same process (two copies in
|
|
5
5
|
* `node_modules`, ESM and CJS side by side, a monorepo with distinct versions) — and then a module-level
|
|
@@ -34,7 +34,7 @@ export interface JudgeOptions {
|
|
|
34
34
|
* credential. A slow, opaque failure traded for a fast, clear one.
|
|
35
35
|
*
|
|
36
36
|
* PARSE failures and network errors stay folded: they are recoverable, and the loop already decides on
|
|
37
|
-
*
|
|
37
|
+
* in a row.
|
|
38
38
|
*/
|
|
39
39
|
export declare class JudgeCredentialError extends TheokitAgentError {
|
|
40
40
|
readonly httpStatus: number;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var chunk7PESI6YD_cjs = require('../../../chunk-7PESI6YD.cjs');
|
|
4
|
+
require('../../../chunk-S4Q5OMIK.cjs');
|
|
5
5
|
var chunk2RW7K6FN_cjs = require('../../../chunk-2RW7K6FN.cjs');
|
|
6
6
|
require('../../../chunk-MUUQ2WFJ.cjs');
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
9
|
-
require('../../../chunk-
|
|
10
|
-
require('../../../chunk-
|
|
11
|
-
require('../../../chunk-
|
|
7
|
+
require('../../../chunk-OEFFPR2S.cjs');
|
|
8
|
+
require('../../../chunk-27DYRARU.cjs');
|
|
9
|
+
require('../../../chunk-XA3TSBAH.cjs');
|
|
10
|
+
require('../../../chunk-YULF6FPB.cjs');
|
|
11
|
+
require('../../../chunk-ZHPET3LZ.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "createOpenAiCompatibleRuntime", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7PESI6YD_cjs.createOpenAiCompatibleRuntime; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "LruEmbeddingCache", {
|
|
20
20
|
enumerable: true,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { createOpenAiCompatibleRuntime } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { createOpenAiCompatibleRuntime } from '../../../chunk-LLE7HPRI.js';
|
|
2
|
+
import '../../../chunk-SNKY3C2L.js';
|
|
3
3
|
export { LruEmbeddingCache, globalEmbeddingCache } from '../../../chunk-OXNYIMZZ.js';
|
|
4
4
|
import '../../../chunk-FD2UT76F.js';
|
|
5
|
-
import '../../../chunk-
|
|
6
|
-
import '../../../chunk-
|
|
7
|
-
import '../../../chunk-
|
|
8
|
-
import '../../../chunk-
|
|
9
|
-
import '../../../chunk-
|
|
5
|
+
import '../../../chunk-AZ6FKDQR.js';
|
|
6
|
+
import '../../../chunk-Q4DTGCSD.js';
|
|
7
|
+
import '../../../chunk-6FSQ3CHQ.js';
|
|
8
|
+
import '../../../chunk-MRKSSN36.js';
|
|
9
|
+
import '../../../chunk-PBML2FHN.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Memory embedding provider adapter contract (ADR D3 of memory-system-peer-project-parity).
|
|
3
3
|
*
|
|
4
4
|
* Mirrors peer-project's `MemoryEmbeddingProviderAdapter` from
|
|
5
|
-
* `
|
|
5
|
+
* `reference/peer-project/extensions/openai/memory-embedding-adapter.ts` so
|
|
6
6
|
* adding a new provider becomes one new file under `adapters/`.
|
|
7
7
|
*
|
|
8
8
|
* @internal
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* `close()` — the union of those four methods is the portable surface.
|
|
9
9
|
*
|
|
10
10
|
* Why a separate file (vs declaring inline in `index-manager.ts`)? D43
|
|
11
|
-
* promised "
|
|
11
|
+
* promised "extract an abstract `MemoryIndex` interface in
|
|
12
12
|
* `internal/memory/index-interface.ts`". Keeping the contract physically
|
|
13
13
|
* separated from one of its implementations preserves OCP — future
|
|
14
14
|
* backends (Qdrant, PGVector) can land without touching IndexManager.
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* U-9 — the file a leftover temp was replacing, or `undefined` if this is not one of ours.
|
|
3
|
+
*
|
|
4
|
+
* A crash between the open and the rename leaves `<file>.<pid>.<hex>.tmp` behind, and nothing here
|
|
5
|
+
* collects it: this module creates temps and has no opinion about sweeping them. A consumer that
|
|
6
|
+
* wants to has to know the format — which lived only in the implementation, so one copied it out of
|
|
7
|
+
* a compiled chunk as a regex. That copy would have gone on reporting "nothing to collect" the day
|
|
8
|
+
* the format changed, which is the quietest possible way for a cleanup to stop working.
|
|
9
|
+
*
|
|
10
|
+
* Deliberately strict: the pid must be digits and the suffix exactly 16 hex characters. Matching any
|
|
11
|
+
* `.tmp` would claim editors' swap files and other tools' scratch, on a path whose purpose is
|
|
12
|
+
* deleting them.
|
|
13
|
+
*/
|
|
14
|
+
export declare function atomicWriteTempTarget(name: string): string | undefined;
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* U-9 — the file a leftover temp was replacing, or `undefined` if this is not one of ours.
|
|
3
|
+
*
|
|
4
|
+
* A crash between the open and the rename leaves `<file>.<pid>.<hex>.tmp` behind, and nothing here
|
|
5
|
+
* collects it: this module creates temps and has no opinion about sweeping them. A consumer that
|
|
6
|
+
* wants to has to know the format — which lived only in the implementation, so one copied it out of
|
|
7
|
+
* a compiled chunk as a regex. That copy would have gone on reporting "nothing to collect" the day
|
|
8
|
+
* the format changed, which is the quietest possible way for a cleanup to stop working.
|
|
9
|
+
*
|
|
10
|
+
* Deliberately strict: the pid must be digits and the suffix exactly 16 hex characters. Matching any
|
|
11
|
+
* `.tmp` would claim editors' swap files and other tools' scratch, on a path whose purpose is
|
|
12
|
+
* deleting them.
|
|
13
|
+
*/
|
|
14
|
+
export declare function atomicWriteTempTarget(name: string): string | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkPNVDQL5Y_cjs = require('../../chunk-PNVDQL5Y.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunk6X2HUT4A_cjs = require('../../chunk-6X2HUT4A.cjs');
|
|
5
|
+
var chunk6W4U2G3J_cjs = require('../../chunk-6W4U2G3J.cjs');
|
|
6
|
+
var chunkBV42CCRP_cjs = require('../../chunk-BV42CCRP.cjs');
|
|
7
7
|
var chunkYLQQX5W2_cjs = require('../../chunk-YLQQX5W2.cjs');
|
|
8
|
-
var
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
8
|
+
var chunkNETYW4V3_cjs = require('../../chunk-NETYW4V3.cjs');
|
|
9
|
+
require('../../chunk-YULF6FPB.cjs');
|
|
10
|
+
require('../../chunk-ZHPET3LZ.cjs');
|
|
11
11
|
var promises = require('fs/promises');
|
|
12
12
|
|
|
13
13
|
async function createExclusive(path, data, options) {
|
|
@@ -41,67 +41,67 @@ Object.defineProperty(exports, "PersistenceSchema", {
|
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "displayTheokitHome", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk6X2HUT4A_cjs.displayTheokitHome; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "getProfilesRoot", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk6X2HUT4A_cjs.getProfilesRoot; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "getTheokitHome", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk6X2HUT4A_cjs.getTheokitHome; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "migrateSchema", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk6X2HUT4A_cjs.migrateSchema; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "readVersionedJson", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk6X2HUT4A_cjs.readVersionedJson; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "writeVersionedJson", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk6X2HUT4A_cjs.writeVersionedJson; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "JsonlParseError", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk6W4U2G3J_cjs.JsonlParseError; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "appendJsonl", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk6W4U2G3J_cjs.appendJsonl; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "loadJsonl", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk6W4U2G3J_cjs.loadJsonl; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "readJsonlIds", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk6W4U2G3J_cjs.readJsonlIds; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "withFileLock", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk6W4U2G3J_cjs.withFileLock; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "applyWalWithFallback", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkBV42CCRP_cjs.applyWalWithFallback; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "containsCjk", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkBV42CCRP_cjs.containsCjk; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "isCorruptionError", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkBV42CCRP_cjs.isCorruptionError; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "openSqliteResilient", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkBV42CCRP_cjs.openSqliteResilient; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "sanitizeFts5Query", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkBV42CCRP_cjs.sanitizeFts5Query; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "withCwdMutex", {
|
|
107
107
|
enumerable: true,
|
|
@@ -109,15 +109,15 @@ Object.defineProperty(exports, "withCwdMutex", {
|
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "atomicWriteJson", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkNETYW4V3_cjs.atomicWriteJson; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "atomicWriteText", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkNETYW4V3_cjs.atomicWriteText; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "replaceFileAtomic", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkNETYW4V3_cjs.replaceFileAtomic; }
|
|
121
121
|
});
|
|
122
122
|
exports.casUpdate = casUpdate;
|
|
123
123
|
exports.createExclusive = createExclusive;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { PersistenceSchema } from '../../chunk-CAH3G4IS.js';
|
|
2
|
-
export { displayTheokitHome, getProfilesRoot, getTheokitHome, migrateSchema, readVersionedJson, writeVersionedJson } from '../../chunk-
|
|
3
|
-
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from '../../chunk-
|
|
4
|
-
export { applyWalWithFallback, containsCjk, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from '../../chunk-
|
|
2
|
+
export { displayTheokitHome, getProfilesRoot, getTheokitHome, migrateSchema, readVersionedJson, writeVersionedJson } from '../../chunk-ZS6SLELQ.js';
|
|
3
|
+
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from '../../chunk-ZNW2TXLO.js';
|
|
4
|
+
export { applyWalWithFallback, containsCjk, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from '../../chunk-2WB6EIYW.js';
|
|
5
5
|
export { withCwdMutex } from '../../chunk-2XLKLVVR.js';
|
|
6
|
-
export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
6
|
+
export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from '../../chunk-VQFSEKU5.js';
|
|
7
|
+
import '../../chunk-MRKSSN36.js';
|
|
8
|
+
import '../../chunk-PBML2FHN.js';
|
|
9
9
|
import { open } from 'fs/promises';
|
|
10
10
|
|
|
11
11
|
async function createExclusive(path, data, options) {
|
|
@@ -25,7 +25,7 @@ export declare function loadJsonl<T = Record<string, unknown>>(path: string, opt
|
|
|
25
25
|
* the event loop serializes writes and each call writes its line atomically —
|
|
26
26
|
* interleave-safe for the bounded-concurrency batch runner.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* reference: swebench-batch.ts:192 (mkdir-before-append), :205 (per-line flush).
|
|
29
29
|
*/
|
|
30
30
|
export declare function appendJsonl(path: string, record: unknown): void;
|
|
31
31
|
/**
|
|
@@ -35,7 +35,7 @@ export declare function appendJsonl(path: string, record: unknown): void;
|
|
|
35
35
|
* interrupted append is tolerated (skipped, not thrown), and a missing file
|
|
36
36
|
* yields an empty set.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* reference: swebench-batch.ts:113 (readDoneIds), :129 (success-only),
|
|
39
39
|
* :131 (tolerate partial line).
|
|
40
40
|
*/
|
|
41
41
|
export declare function readJsonlIds(path: string, keyFn: (parsed: Record<string, unknown>) => string | undefined): Set<string>;
|
|
@@ -25,7 +25,7 @@ export declare function loadJsonl<T = Record<string, unknown>>(path: string, opt
|
|
|
25
25
|
* the event loop serializes writes and each call writes its line atomically —
|
|
26
26
|
* interleave-safe for the bounded-concurrency batch runner.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* reference: swebench-batch.ts:192 (mkdir-before-append), :205 (per-line flush).
|
|
29
29
|
*/
|
|
30
30
|
export declare function appendJsonl(path: string, record: unknown): void;
|
|
31
31
|
/**
|
|
@@ -35,7 +35,7 @@ export declare function appendJsonl(path: string, record: unknown): void;
|
|
|
35
35
|
* interrupted append is tolerated (skipped, not thrown), and a missing file
|
|
36
36
|
* yields an empty set.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* reference: swebench-batch.ts:113 (readDoneIds), :129 (success-only),
|
|
39
39
|
* :131 (tolerate partial line).
|
|
40
40
|
*/
|
|
41
41
|
export declare function readJsonlIds(path: string, keyFn: (parsed: Record<string, unknown>) => string | undefined): Set<string>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kinds of file this SDK leaves in a project's transcript directory.
|
|
3
|
+
*
|
|
4
|
+
* - `transcript` — the session itself (`transcriptPath`).
|
|
5
|
+
* - `writer-lock` — the cross-process writer lease (`session-writer.ts`, `<file>.writer.lock`).
|
|
6
|
+
* - `lock-directory` — `withFileLock`'s companion, taken by `mkdir`, so it is a DIRECTORY.
|
|
7
|
+
* - `temp` — what `replaceFileAtomic` leaves when a process dies between the open and the rename.
|
|
8
|
+
*/
|
|
9
|
+
export type SessionArtifact = "transcript" | "writer-lock" | "lock-directory" | "temp";
|
|
10
|
+
/**
|
|
11
|
+
* U-1 — what is this entry, if it is one of ours?
|
|
12
|
+
*
|
|
13
|
+
* The SDK writes four kinds of file into a project directory and reasons about none of them
|
|
14
|
+
* afterwards: there is no retention, no collector, and there was no way even to ask what an entry
|
|
15
|
+
* IS. A consumer wanting to reclaim disk had to re-derive the suffixes by reading this source — and
|
|
16
|
+
* one did, which means a suffix changing here would have left its classifier silently mislabelling
|
|
17
|
+
* files on a path that deletes them.
|
|
18
|
+
*
|
|
19
|
+
* This is deliberately NOT a garbage collector. Retention is policy — how many days, how many to
|
|
20
|
+
* keep, which session is live, whether to delete at all — and policy belongs to the application,
|
|
21
|
+
* which is the only one that can know. What belongs here is the half only the SDK can answer.
|
|
22
|
+
*
|
|
23
|
+
* `undefined` means "not written by this SDK", and it is the answer that matters most: a caller
|
|
24
|
+
* deleting what it does not recognise is how an editor's swap file gets collected. The `temp` case
|
|
25
|
+
* defers to {@link atomicWriteTempTarget} rather than matching `.tmp`, for exactly that reason.
|
|
26
|
+
*/
|
|
27
|
+
export declare function classifySessionArtifact(name: string, isDirectory: boolean): SessionArtifact | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kinds of file this SDK leaves in a project's transcript directory.
|
|
3
|
+
*
|
|
4
|
+
* - `transcript` — the session itself (`transcriptPath`).
|
|
5
|
+
* - `writer-lock` — the cross-process writer lease (`session-writer.ts`, `<file>.writer.lock`).
|
|
6
|
+
* - `lock-directory` — `withFileLock`'s companion, taken by `mkdir`, so it is a DIRECTORY.
|
|
7
|
+
* - `temp` — what `replaceFileAtomic` leaves when a process dies between the open and the rename.
|
|
8
|
+
*/
|
|
9
|
+
export type SessionArtifact = "transcript" | "writer-lock" | "lock-directory" | "temp";
|
|
10
|
+
/**
|
|
11
|
+
* U-1 — what is this entry, if it is one of ours?
|
|
12
|
+
*
|
|
13
|
+
* The SDK writes four kinds of file into a project directory and reasons about none of them
|
|
14
|
+
* afterwards: there is no retention, no collector, and there was no way even to ask what an entry
|
|
15
|
+
* IS. A consumer wanting to reclaim disk had to re-derive the suffixes by reading this source — and
|
|
16
|
+
* one did, which means a suffix changing here would have left its classifier silently mislabelling
|
|
17
|
+
* files on a path that deletes them.
|
|
18
|
+
*
|
|
19
|
+
* This is deliberately NOT a garbage collector. Retention is policy — how many days, how many to
|
|
20
|
+
* keep, which session is live, whether to delete at all — and policy belongs to the application,
|
|
21
|
+
* which is the only one that can know. What belongs here is the half only the SDK can answer.
|
|
22
|
+
*
|
|
23
|
+
* `undefined` means "not written by this SDK", and it is the answer that matters most: a caller
|
|
24
|
+
* deleting what it does not recognise is how an editor's swap file gets collected. The `temp` case
|
|
25
|
+
* defers to {@link atomicWriteTempTarget} rather than matching `.tmp`, for exactly that reason.
|
|
26
|
+
*/
|
|
27
|
+
export declare function classifySessionArtifact(name: string, isDirectory: boolean): SessionArtifact | undefined;
|
|
@@ -61,7 +61,7 @@ export declare class SessionTranscript {
|
|
|
61
61
|
*/
|
|
62
62
|
export declare function reconstructMessages(records: readonly SessionRecord[]): LlmMessage[];
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Root of the transcript state.
|
|
65
65
|
*
|
|
66
66
|
* `THEOKIT_HOME` wins; the fallback is `~/.theokit`. Home-anchored on purpose, and NOT
|
|
67
67
|
* `paths.ts`'s `getTheokitHome(cwd)`: that one falls back to `<cwd>/.theokit`, and switching
|
|
@@ -61,7 +61,7 @@ export declare class SessionTranscript {
|
|
|
61
61
|
*/
|
|
62
62
|
export declare function reconstructMessages(records: readonly SessionRecord[]): LlmMessage[];
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Root of the transcript state.
|
|
65
65
|
*
|
|
66
66
|
* `THEOKIT_HOME` wins; the fallback is `~/.theokit`. Home-anchored on purpose, and NOT
|
|
67
67
|
* `paths.ts`'s `getTheokitHome(cwd)`: that one falls back to `<cwd>/.theokit`, and switching
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* so API keys, tokens and passwords leaked into hook scripts and shell tools.
|
|
6
6
|
* `resolveChildEnv` computes the env a child receives under an explicit policy,
|
|
7
7
|
* modeled on codex's `ShellEnvironmentPolicy`
|
|
8
|
-
* (
|
|
8
|
+
* (reference: codex/codex-rs/protocol/src/shell_environment.rs).
|
|
9
9
|
*
|
|
10
10
|
* Modes:
|
|
11
11
|
* - `inherit-scrubbed` (DEFAULT) — inherit all parent vars EXCEPT secret-like
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../chunk-MUUQ2WFJ.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
4
|
+
var chunkXA3TSBAH_cjs = require('../../chunk-XA3TSBAH.cjs');
|
|
5
|
+
require('../../chunk-YULF6FPB.cjs');
|
|
6
|
+
var chunkZHPET3LZ_cjs = require('../../chunk-ZHPET3LZ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ForbiddenPathError", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkXA3TSBAH_cjs.ForbiddenPathError; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "PathTraversalError", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkXA3TSBAH_cjs.PathTraversalError; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "assertNoSymlinkEscape", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkXA3TSBAH_cjs.assertNoSymlinkEscape; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "isForbiddenPath", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkXA3TSBAH_cjs.isForbiddenPath; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "safePathJoin", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkXA3TSBAH_cjs.safePathJoin; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "sanitizeIdentifier", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkXA3TSBAH_cjs.sanitizeIdentifier; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "validateArtifactPath", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkXA3TSBAH_cjs.validateArtifactPath; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "addPattern", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkZHPET3LZ_cjs.addPattern; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "maskToken", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkZHPET3LZ_cjs.maskToken; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "redactSecrets", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkZHPET3LZ_cjs.redactSecrets; }
|
|
49
49
|
});
|
|
50
50
|
//# sourceMappingURL=index.cjs.map
|
|
51
51
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../chunk-FD2UT76F.js';
|
|
2
|
-
export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safePathJoin, sanitizeIdentifier, validateArtifactPath } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
export { addPattern, maskToken, redactSecrets } from '../../chunk-
|
|
2
|
+
export { ForbiddenPathError, PathTraversalError, assertNoSymlinkEscape, isForbiddenPath, safePathJoin, sanitizeIdentifier, validateArtifactPath } from '../../chunk-6FSQ3CHQ.js';
|
|
3
|
+
import '../../chunk-MRKSSN36.js';
|
|
4
|
+
export { addPattern, maskToken, redactSecrets } from '../../chunk-PBML2FHN.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|