@theokit/sdk 4.35.0 → 4.37.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 +42 -0
- package/dist/agent-K5LYVJGJ.cjs +51 -0
- package/dist/{agent-P77NPBF4.cjs.map → agent-K5LYVJGJ.cjs.map} +1 -1
- package/dist/agent-ODWMOAEC.js +42 -0
- package/dist/{agent-H6HL5ITH.js.map → agent-ODWMOAEC.js.map} +1 -1
- package/dist/agent.d.ts +2 -1
- package/dist/auth/index.cjs +15 -15
- package/dist/auth/index.js +4 -4
- package/dist/{batch-2FSD2UNL.cjs → batch-3SEPDXCU.cjs} +23 -23
- package/dist/{batch-2FSD2UNL.cjs.map → batch-3SEPDXCU.cjs.map} +1 -1
- package/dist/{batch-MR2HKYMS.js → batch-SY5GZLFD.js} +9 -9
- package/dist/{batch-MR2HKYMS.js.map → batch-SY5GZLFD.js.map} +1 -1
- package/dist/{chunk-JLMXKTBX.cjs → chunk-2423XDPT.cjs} +26 -26
- package/dist/{chunk-JLMXKTBX.cjs.map → chunk-2423XDPT.cjs.map} +1 -1
- package/dist/{chunk-5IB2UKSN.js → chunk-2WFB5ZOX.js} +5 -5
- package/dist/{chunk-5IB2UKSN.js.map → chunk-2WFB5ZOX.js.map} +1 -1
- package/dist/{chunk-EPYZOCOL.cjs → chunk-3ILFUXNE.cjs} +5 -5
- package/dist/{chunk-EPYZOCOL.cjs.map → chunk-3ILFUXNE.cjs.map} +1 -1
- package/dist/{chunk-KSKU6JY6.cjs → chunk-3O2ELBST.cjs} +5 -5
- package/dist/{chunk-KSKU6JY6.cjs.map → chunk-3O2ELBST.cjs.map} +1 -1
- package/dist/{chunk-M2PU44HP.cjs → chunk-4YB7B3RP.cjs} +8 -8
- package/dist/{chunk-M2PU44HP.cjs.map → chunk-4YB7B3RP.cjs.map} +1 -1
- package/dist/{chunk-S2BBRVQX.js → chunk-56OXYUZE.js} +8 -7
- package/dist/chunk-56OXYUZE.js.map +1 -0
- package/dist/{chunk-D42XHI4O.cjs → chunk-56ZM6P7Z.cjs} +13 -14
- package/dist/chunk-56ZM6P7Z.cjs.map +1 -0
- package/dist/{chunk-7BTE3RXJ.js → chunk-5SB4V74H.js} +7 -8
- package/dist/chunk-5SB4V74H.js.map +1 -0
- package/dist/{chunk-MZ5ZRORA.cjs → chunk-6EDQBX7U.cjs} +17 -16
- package/dist/chunk-6EDQBX7U.cjs.map +1 -0
- package/dist/{chunk-RKG6QFCJ.js → chunk-6VP3XGEK.js} +4 -4
- package/dist/{chunk-RKG6QFCJ.js.map → chunk-6VP3XGEK.js.map} +1 -1
- package/dist/{chunk-KAP4GJHO.js → chunk-77WHPVXE.js} +10 -11
- package/dist/chunk-77WHPVXE.js.map +1 -0
- package/dist/{chunk-LALRCFSN.cjs → chunk-7DXLNNKH.cjs} +4 -4
- package/dist/{chunk-LALRCFSN.cjs.map → chunk-7DXLNNKH.cjs.map} +1 -1
- package/dist/{chunk-WEHUJ7ZS.cjs → chunk-ALU3KC4G.cjs} +267 -120
- package/dist/chunk-ALU3KC4G.cjs.map +1 -0
- package/dist/{chunk-Z2OC3UIW.cjs → chunk-BJMKQOY2.cjs} +11 -11
- package/dist/{chunk-Z2OC3UIW.cjs.map → chunk-BJMKQOY2.cjs.map} +1 -1
- package/dist/{chunk-WLKFWQSJ.js → chunk-CD73YHEH.js} +3 -3
- package/dist/{chunk-WLKFWQSJ.js.map → chunk-CD73YHEH.js.map} +1 -1
- package/dist/{chunk-BXV2QUIC.js → chunk-CSZRJ4RE.js} +6 -5
- package/dist/chunk-CSZRJ4RE.js.map +1 -0
- package/dist/{chunk-6M6A6WWW.cjs → chunk-D4ZUJTFB.cjs} +9 -10
- package/dist/chunk-D4ZUJTFB.cjs.map +1 -0
- package/dist/{chunk-XAUBQMQU.js → chunk-DCJ5MCJ3.js} +7 -7
- package/dist/{chunk-XAUBQMQU.js.map → chunk-DCJ5MCJ3.js.map} +1 -1
- package/dist/{chunk-Y66627E4.cjs → chunk-E7X2B66S.cjs} +24 -24
- package/dist/{chunk-Y66627E4.cjs.map → chunk-E7X2B66S.cjs.map} +1 -1
- package/dist/{chunk-6CLRANZA.js → chunk-EXQV452X.js} +3 -3
- package/dist/{chunk-6CLRANZA.js.map → chunk-EXQV452X.js.map} +1 -1
- package/dist/{chunk-EKFA76N4.js → chunk-F3X7Q4BF.js} +344 -453
- package/dist/chunk-F3X7Q4BF.js.map +1 -0
- package/dist/{chunk-XIG2IE3L.js → chunk-F6Y4IEQM.js} +5 -4
- package/dist/chunk-F6Y4IEQM.js.map +1 -0
- package/dist/{chunk-N24XBYNX.cjs → chunk-FAY3QDGC.cjs} +11 -10
- package/dist/chunk-FAY3QDGC.cjs.map +1 -0
- package/dist/{chunk-JD74LN7R.cjs → chunk-FK4EJD2I.cjs} +7 -6
- package/dist/chunk-FK4EJD2I.cjs.map +1 -0
- package/dist/{chunk-IX2LKBCD.js → chunk-GL7CFBVC.js} +176 -35
- package/dist/chunk-GL7CFBVC.js.map +1 -0
- package/dist/{chunk-77FOZCOT.js → chunk-GLUWH6JO.js} +6 -5
- package/dist/chunk-GLUWH6JO.js.map +1 -0
- package/dist/{chunk-RZQ6E5YZ.cjs → chunk-GM7QDQ24.cjs} +11 -11
- package/dist/{chunk-RZQ6E5YZ.cjs.map → chunk-GM7QDQ24.cjs.map} +1 -1
- package/dist/{chunk-G4WI3VW2.cjs → chunk-H5YVJB4K.cjs} +9 -10
- package/dist/chunk-H5YVJB4K.cjs.map +1 -0
- package/dist/{chunk-HRA3CPGG.js → chunk-HEN5WXXI.js} +9 -8
- package/dist/chunk-HEN5WXXI.js.map +1 -0
- package/dist/{chunk-LU7VALW5.js → chunk-I35DI7ES.js} +3 -3
- package/dist/{chunk-LU7VALW5.js.map → chunk-I35DI7ES.js.map} +1 -1
- package/dist/{chunk-TIZ4TS5V.cjs → chunk-ICYBIC6N.cjs} +8 -7
- package/dist/chunk-ICYBIC6N.cjs.map +1 -0
- package/dist/{chunk-2DYI7MIF.cjs → chunk-IEUDKUPM.cjs} +8 -8
- package/dist/{chunk-2DYI7MIF.cjs.map → chunk-IEUDKUPM.cjs.map} +1 -1
- package/dist/{chunk-AIDNODHJ.cjs → chunk-ITLS5LRF.cjs} +11 -11
- package/dist/{chunk-AIDNODHJ.cjs.map → chunk-ITLS5LRF.cjs.map} +1 -1
- package/dist/{chunk-M72RJVPC.js → chunk-JNIWFCKI.js} +3 -3
- package/dist/{chunk-M72RJVPC.js.map → chunk-JNIWFCKI.js.map} +1 -1
- package/dist/{chunk-LEJXBUBD.js → chunk-LISL36B6.js} +5 -5
- package/dist/{chunk-LEJXBUBD.js.map → chunk-LISL36B6.js.map} +1 -1
- package/dist/{chunk-3XJ7CS2C.cjs → chunk-LMWXF4LL.cjs} +554 -666
- package/dist/chunk-LMWXF4LL.cjs.map +1 -0
- package/dist/{chunk-BEURCLDV.cjs → chunk-LTCOPATU.cjs} +9 -3
- package/dist/chunk-LTCOPATU.cjs.map +1 -0
- package/dist/{chunk-TQKCU7CL.js → chunk-M5ZQBOIZ.js} +3 -3
- package/dist/{chunk-TQKCU7CL.js.map → chunk-M5ZQBOIZ.js.map} +1 -1
- package/dist/{chunk-A44COQJJ.cjs → chunk-MHCKWQR3.cjs} +8 -8
- package/dist/{chunk-A44COQJJ.cjs.map → chunk-MHCKWQR3.cjs.map} +1 -1
- package/dist/{chunk-7S7KKUO6.cjs → chunk-MRODLUGY.cjs} +4 -4
- package/dist/{chunk-7S7KKUO6.cjs.map → chunk-MRODLUGY.cjs.map} +1 -1
- package/dist/{chunk-BOTK6ZUP.js → chunk-MXSMAGDU.js} +3 -3
- package/dist/{chunk-BOTK6ZUP.js.map → chunk-MXSMAGDU.js.map} +1 -1
- package/dist/{chunk-5PZMMF4H.js → chunk-NFCKEBHI.js} +3 -3
- package/dist/{chunk-5PZMMF4H.js.map → chunk-NFCKEBHI.js.map} +1 -1
- package/dist/{chunk-6M4ODB2V.cjs → chunk-NNSKJCBM.cjs} +10 -10
- package/dist/{chunk-6M4ODB2V.cjs.map → chunk-NNSKJCBM.cjs.map} +1 -1
- package/dist/{chunk-4WL52CXU.cjs → chunk-NQ4AC2U4.cjs} +9 -9
- package/dist/{chunk-4WL52CXU.cjs.map → chunk-NQ4AC2U4.cjs.map} +1 -1
- package/dist/{chunk-YRXTIESB.cjs → chunk-P34DHHYQ.cjs} +4 -4
- package/dist/{chunk-YRXTIESB.cjs.map → chunk-P34DHHYQ.cjs.map} +1 -1
- package/dist/{chunk-HFPGOTVF.cjs → chunk-PAEJPLVN.cjs} +4 -4
- package/dist/{chunk-HFPGOTVF.cjs.map → chunk-PAEJPLVN.cjs.map} +1 -1
- package/dist/{chunk-S5RCBTSF.js → chunk-QFMXXUUT.js} +3 -3
- package/dist/{chunk-S5RCBTSF.js.map → chunk-QFMXXUUT.js.map} +1 -1
- package/dist/{chunk-V4XRLPEF.js → chunk-QGDKZDPN.js} +3 -3
- package/dist/{chunk-V4XRLPEF.js.map → chunk-QGDKZDPN.js.map} +1 -1
- package/dist/{chunk-DHLZIMP6.cjs → chunk-QUFSDDNU.cjs} +15 -15
- package/dist/{chunk-DHLZIMP6.cjs.map → chunk-QUFSDDNU.cjs.map} +1 -1
- package/dist/{chunk-BFWPZMG7.js → chunk-SDIBMLL5.js} +8 -8
- package/dist/{chunk-BFWPZMG7.js.map → chunk-SDIBMLL5.js.map} +1 -1
- package/dist/{chunk-GIW4L6HY.cjs → chunk-SWIBQFPH.cjs} +4 -4
- package/dist/{chunk-GIW4L6HY.cjs.map → chunk-SWIBQFPH.cjs.map} +1 -1
- package/dist/{chunk-JTFYYKDT.js → chunk-TAPQWDW2.js} +9 -4
- package/dist/chunk-TAPQWDW2.js.map +1 -0
- package/dist/{chunk-4GTXATWK.cjs → chunk-THEYGCYS.cjs} +4 -4
- package/dist/{chunk-4GTXATWK.cjs.map → chunk-THEYGCYS.cjs.map} +1 -1
- package/dist/{chunk-CJVMDRQB.cjs → chunk-TQI3KRXZ.cjs} +5 -4
- package/dist/chunk-TQI3KRXZ.cjs.map +1 -0
- package/dist/{chunk-LUSXDZPV.cjs → chunk-U2WLFOA3.cjs} +4 -4
- package/dist/{chunk-LUSXDZPV.cjs.map → chunk-U2WLFOA3.cjs.map} +1 -1
- package/dist/{chunk-FKCC2MED.js → chunk-UQPDFW4E.js} +3 -3
- package/dist/{chunk-FKCC2MED.js.map → chunk-UQPDFW4E.js.map} +1 -1
- package/dist/{chunk-CR3DGWUQ.js → chunk-VNNK6AKU.js} +3 -3
- package/dist/{chunk-CR3DGWUQ.js.map → chunk-VNNK6AKU.js.map} +1 -1
- package/dist/{chunk-ANIZEWTU.cjs → chunk-W4QN5CMG.cjs} +9 -8
- package/dist/chunk-W4QN5CMG.cjs.map +1 -0
- package/dist/{chunk-POQT2OIF.js → chunk-WDGCZDRG.js} +3 -3
- package/dist/{chunk-POQT2OIF.js.map → chunk-WDGCZDRG.js.map} +1 -1
- package/dist/{chunk-Q56IYTBZ.js → chunk-XAEAMI5H.js} +4 -4
- package/dist/{chunk-Q56IYTBZ.js.map → chunk-XAEAMI5H.js.map} +1 -1
- package/dist/{chunk-BWT67BI4.cjs → chunk-XAYVHS2B.cjs} +4 -4
- package/dist/{chunk-BWT67BI4.cjs.map → chunk-XAYVHS2B.cjs.map} +1 -1
- package/dist/{chunk-KIO7QFIV.cjs → chunk-YBFDBOUN.cjs} +8 -8
- package/dist/{chunk-KIO7QFIV.cjs.map → chunk-YBFDBOUN.cjs.map} +1 -1
- package/dist/{chunk-BNIFFFH3.js → chunk-YCXMSDSP.js} +4 -4
- package/dist/{chunk-BNIFFFH3.js.map → chunk-YCXMSDSP.js.map} +1 -1
- package/dist/{chunk-UVNG67DG.js → chunk-YDLNI7J6.js} +3 -3
- package/dist/{chunk-UVNG67DG.js.map → chunk-YDLNI7J6.js.map} +1 -1
- package/dist/{chunk-UAYYNWYJ.js → chunk-YHZXBDAW.js} +5 -4
- package/dist/chunk-YHZXBDAW.js.map +1 -0
- package/dist/{chunk-OKXUMCGM.js → chunk-YVTNFKZO.js} +5 -5
- package/dist/{chunk-OKXUMCGM.js.map → chunk-YVTNFKZO.js.map} +1 -1
- package/dist/{chunk-GJAGKFTR.js → chunk-ZJN6NTHE.js} +3 -3
- package/dist/{chunk-GJAGKFTR.js.map → chunk-ZJN6NTHE.js.map} +1 -1
- package/dist/{chunk-XV2RBL6D.js → chunk-ZW345YOI.js} +8 -9
- package/dist/chunk-ZW345YOI.js.map +1 -0
- package/dist/compact-session-H5TKLD55.cjs +54 -0
- package/dist/{compact-session-BEA3IOON.cjs.map → compact-session-H5TKLD55.cjs.map} +1 -1
- package/dist/compact-session-WNKKIIDW.js +17 -0
- package/dist/{compact-session-5BDD4HIB.js.map → compact-session-WNKKIIDW.js.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-VAYLPT4O.js +5 -0
- package/dist/{context-GWANQLX4.js.map → context-VAYLPT4O.js.map} +1 -1
- package/dist/context-ZV33V4DC.cjs +22 -0
- package/dist/{context-KNWVTZSY.cjs.map → context-ZV33V4DC.cjs.map} +1 -1
- package/dist/cron.cjs +28 -28
- package/dist/cron.js +27 -27
- package/dist/errors.cjs +21 -21
- package/dist/errors.js +2 -2
- package/dist/eval.cjs +31 -31
- package/dist/eval.js +27 -27
- package/dist/{executor-Y4MKPIUD.cjs → executor-OZSYXDKF.cjs} +23 -23
- package/dist/{executor-Y4MKPIUD.cjs.map → executor-OZSYXDKF.cjs.map} +1 -1
- package/dist/{executor-ORJS5GV2.js → executor-PAH72CB5.js} +7 -7
- package/dist/{executor-ORJS5GV2.js.map → executor-PAH72CB5.js.map} +1 -1
- package/dist/filesystem/index.cjs +7 -7
- package/dist/filesystem/index.js +3 -3
- package/dist/fs-session-store-6MY7PNI2.js +10 -0
- package/dist/{fs-session-store-4ALCDU3K.js.map → fs-session-store-6MY7PNI2.js.map} +1 -1
- package/dist/fs-session-store-7E7UPLF2.cjs +19 -0
- package/dist/{fs-session-store-IQYE35HX.cjs.map → fs-session-store-7E7UPLF2.cjs.map} +1 -1
- package/dist/generate-object-5SCEH2EE.cjs +20 -0
- package/dist/{generate-object-H3RNAM6S.cjs.map → generate-object-5SCEH2EE.cjs.map} +1 -1
- package/dist/generate-object-I7UD4NWN.js +7 -0
- package/dist/{generate-object-YJPDV5BS.js.map → generate-object-I7UD4NWN.js.map} +1 -1
- package/dist/index-manager-KKAK7NT3.js +10 -0
- package/dist/{index-manager-P7ZUX2RG.js.map → index-manager-KKAK7NT3.js.map} +1 -1
- package/dist/index-manager-R6ZJFEZF.cjs +19 -0
- package/dist/{index-manager-H7HUMW52.cjs.map → index-manager-R6ZJFEZF.cjs.map} +1 -1
- package/dist/index.cjs +124 -129
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +45 -50
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-SMH56NXP.cjs → inject-session-DM4SKTZO.cjs} +8 -8
- package/dist/{inject-session-SMH56NXP.cjs.map → inject-session-DM4SKTZO.cjs.map} +1 -1
- package/dist/{inject-session-V5FTK72N.js → inject-session-UXNJQTZ6.js} +6 -6
- package/dist/{inject-session-V5FTK72N.js.map → inject-session-UXNJQTZ6.js.map} +1 -1
- package/dist/internal/diagnostics.d.ts +54 -0
- package/dist/internal/local-agent/local-agent-invalidate.d.ts +0 -7
- package/dist/internal/local-agent/local-agent-lifecycle.d.ts +13 -0
- package/dist/internal/local-agent/local-agent.d.ts +1 -93
- package/dist/internal/persistence/index.cjs +25 -25
- package/dist/internal/persistence/index.js +6 -6
- package/dist/internal/persistence/sqlite-wal.d.cts +0 -9
- package/dist/internal/persistence/sqlite-wal.d.ts +0 -9
- package/dist/internal/persistence/transcript-ops.d.cts +14 -0
- package/dist/internal/persistence/transcript-ops.d.ts +14 -0
- package/dist/internal/plugins/lifecycle.d.cts +1 -0
- package/dist/internal/plugins/lifecycle.d.ts +1 -0
- package/dist/internal/runtime/fixtures/fixture-run-base.d.ts +19 -0
- package/dist/internal/runtime/registry/agent-registry.d.ts +0 -1
- package/dist/internal/security/index.cjs +13 -13
- package/dist/internal/security/index.js +3 -3
- package/dist/internal/security/redact.d.cts +0 -18
- package/dist/internal/security/redact.d.ts +0 -18
- package/dist/judge-call-SP3G3X2Y.cjs +22 -0
- package/dist/{judge-call-2FULQ6KL.cjs.map → judge-call-SP3G3X2Y.cjs.map} +1 -1
- package/dist/judge-call-TAEIXMYG.js +5 -0
- package/dist/{judge-call-D7R3ZTZS.js.map → judge-call-TAEIXMYG.js.map} +1 -1
- package/dist/models.cjs +22 -26
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +13 -17
- 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 +27 -27
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.js +8 -8
- package/dist/persistence.js.map +1 -1
- package/dist/project.cjs +5 -5
- package/dist/project.js +3 -3
- package/dist/registry-N3GTKYCI.cjs +46 -0
- package/dist/{registry-APYDISL6.cjs.map → registry-N3GTKYCI.cjs.map} +1 -1
- package/dist/registry-SOXE4RY6.js +9 -0
- package/dist/{registry-34IWWDQQ.js.map → registry-SOXE4RY6.js.map} +1 -1
- package/dist/retry.cjs +4 -4
- package/dist/retry.js +3 -3
- package/dist/sandbox/index.cjs +6 -6
- package/dist/sandbox/index.js +2 -2
- package/dist/server/errors-envelope.cjs +14 -14
- package/dist/server/errors-envelope.js +3 -3
- package/dist/session-transcript-6WKLYIN4.js +5 -0
- package/dist/{session-transcript-F2ANTA2M.js.map → session-transcript-6WKLYIN4.js.map} +1 -1
- package/dist/session-transcript-EAKR4D2W.cjs +50 -0
- package/dist/{session-transcript-JXFMPLOT.cjs.map → session-transcript-EAKR4D2W.cjs.map} +1 -1
- package/dist/skills.cjs +7 -7
- package/dist/skills.js +5 -5
- package/dist/stream-object-OFM66VUT.js +7 -0
- package/dist/{stream-object-WUQSSRY2.js.map → stream-object-OFM66VUT.js.map} +1 -1
- package/dist/stream-object-Y7YCX3BI.cjs +20 -0
- package/dist/{stream-object-QEQJJDTI.cjs.map → stream-object-Y7YCX3BI.cjs.map} +1 -1
- package/dist/subagents-loader.cjs +23 -8
- package/dist/subagents-loader.cjs.map +1 -1
- package/dist/subagents-loader.d.cts +18 -3
- package/dist/subagents-loader.d.ts +18 -3
- package/dist/subagents-loader.js +23 -8
- 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/workflow.cjs +27 -27
- package/dist/workflow.js +6 -6
- package/package.json +1 -1
- package/dist/agent-H6HL5ITH.js +0 -42
- package/dist/agent-P77NPBF4.cjs +0 -51
- package/dist/chunk-3XJ7CS2C.cjs.map +0 -1
- package/dist/chunk-6M6A6WWW.cjs.map +0 -1
- package/dist/chunk-77FOZCOT.js.map +0 -1
- package/dist/chunk-7BTE3RXJ.js.map +0 -1
- package/dist/chunk-ANIZEWTU.cjs.map +0 -1
- package/dist/chunk-BEURCLDV.cjs.map +0 -1
- package/dist/chunk-BXV2QUIC.js.map +0 -1
- package/dist/chunk-CJVMDRQB.cjs.map +0 -1
- package/dist/chunk-D42XHI4O.cjs.map +0 -1
- package/dist/chunk-EKFA76N4.js.map +0 -1
- package/dist/chunk-G4WI3VW2.cjs.map +0 -1
- package/dist/chunk-HRA3CPGG.js.map +0 -1
- package/dist/chunk-IX2LKBCD.js.map +0 -1
- package/dist/chunk-JD74LN7R.cjs.map +0 -1
- package/dist/chunk-JTFYYKDT.js.map +0 -1
- package/dist/chunk-KAP4GJHO.js.map +0 -1
- package/dist/chunk-MZ5ZRORA.cjs.map +0 -1
- package/dist/chunk-N24XBYNX.cjs.map +0 -1
- package/dist/chunk-S2BBRVQX.js.map +0 -1
- package/dist/chunk-TIZ4TS5V.cjs.map +0 -1
- package/dist/chunk-UAYYNWYJ.js.map +0 -1
- package/dist/chunk-WEHUJ7ZS.cjs.map +0 -1
- package/dist/chunk-XIG2IE3L.js.map +0 -1
- package/dist/chunk-XV2RBL6D.js.map +0 -1
- package/dist/compact-session-5BDD4HIB.js +0 -17
- package/dist/compact-session-BEA3IOON.cjs +0 -54
- package/dist/context-GWANQLX4.js +0 -5
- package/dist/context-KNWVTZSY.cjs +0 -22
- package/dist/fs-session-store-4ALCDU3K.js +0 -10
- package/dist/fs-session-store-IQYE35HX.cjs +0 -19
- package/dist/generate-object-H3RNAM6S.cjs +0 -20
- package/dist/generate-object-YJPDV5BS.js +0 -7
- package/dist/index-manager-H7HUMW52.cjs +0 -19
- package/dist/index-manager-P7ZUX2RG.js +0 -10
- package/dist/judge-call-2FULQ6KL.cjs +0 -22
- package/dist/judge-call-D7R3ZTZS.js +0 -5
- package/dist/registry-34IWWDQQ.js +0 -9
- package/dist/registry-APYDISL6.cjs +0 -46
- package/dist/session-transcript-F2ANTA2M.js +0 -5
- package/dist/session-transcript-JXFMPLOT.cjs +0 -50
- package/dist/stream-object-QEQJJDTI.cjs +0 -20
- package/dist/stream-object-WUQSSRY2.js +0 -7
package/dist/skills.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var chunkQUFSDDNU_cjs = require('./chunk-QUFSDDNU.cjs');
|
|
4
|
+
require('./chunk-YBFDBOUN.cjs');
|
|
5
|
+
require('./chunk-7DXLNNKH.cjs');
|
|
6
|
+
require('./chunk-MHCKWQR3.cjs');
|
|
7
|
+
require('./chunk-LTCOPATU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "buildSkillsBlock", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQUFSDDNU_cjs.buildSkillsBlock; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "discoverSkills", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQUFSDDNU_cjs.discoverSkills; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=skills.cjs.map
|
|
20
20
|
//# sourceMappingURL=skills.cjs.map
|
package/dist/skills.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { buildSkillsBlock, discoverSkills } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { buildSkillsBlock, discoverSkills } from './chunk-2WFB5ZOX.js';
|
|
2
|
+
import './chunk-WDGCZDRG.js';
|
|
3
|
+
import './chunk-UQPDFW4E.js';
|
|
4
|
+
import './chunk-CD73YHEH.js';
|
|
5
|
+
import './chunk-TAPQWDW2.js';
|
|
6
6
|
//# sourceMappingURL=skills.js.map
|
|
7
7
|
//# sourceMappingURL=skills.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { StreamObjectError, streamObjectImpl } from './chunk-QFMXXUUT.js';
|
|
2
|
+
import './chunk-ZJN6NTHE.js';
|
|
3
|
+
import './chunk-4VPXM6UU.js';
|
|
4
|
+
import './chunk-CD73YHEH.js';
|
|
5
|
+
import './chunk-TAPQWDW2.js';
|
|
6
|
+
//# sourceMappingURL=stream-object-OFM66VUT.js.map
|
|
7
|
+
//# sourceMappingURL=stream-object-OFM66VUT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-OFM66VUT.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNQ4AC2U4_cjs = require('./chunk-NQ4AC2U4.cjs');
|
|
4
|
+
require('./chunk-3ILFUXNE.cjs');
|
|
5
|
+
require('./chunk-WJVHMTKB.cjs');
|
|
6
|
+
require('./chunk-MHCKWQR3.cjs');
|
|
7
|
+
require('./chunk-LTCOPATU.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "StreamObjectError", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkNQ4AC2U4_cjs.StreamObjectError; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "streamObjectImpl", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkNQ4AC2U4_cjs.streamObjectImpl; }
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=stream-object-Y7YCX3BI.cjs.map
|
|
20
|
+
//# sourceMappingURL=stream-object-Y7YCX3BI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"stream-object-Y7YCX3BI.cjs"}
|
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkGM7QDQ24_cjs = require('./chunk-GM7QDQ24.cjs');
|
|
4
|
+
require('./chunk-7DXLNNKH.cjs');
|
|
5
|
+
var chunkMHCKWQR3_cjs = require('./chunk-MHCKWQR3.cjs');
|
|
6
|
+
require('./chunk-LTCOPATU.cjs');
|
|
7
7
|
|
|
8
8
|
// src/subagents-loader.ts
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var FONTES_ACEITAS = ["project"];
|
|
10
|
+
function resolverFontes(options) {
|
|
11
|
+
const declaradas = options?.settingSources;
|
|
12
|
+
if (declaradas === void 0) return FONTES_ACEITAS;
|
|
13
|
+
for (const fonte of declaradas) {
|
|
14
|
+
if (!FONTES_ACEITAS.includes(fonte)) {
|
|
15
|
+
throw new chunkMHCKWQR3_cjs.ConfigurationError(
|
|
16
|
+
`Unknown subagent setting source "${String(fonte)}" (accepted: ${FONTES_ACEITAS.join(", ")})`,
|
|
17
|
+
{ code: "subagent_unknown_setting_source" }
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return declaradas;
|
|
11
22
|
}
|
|
12
|
-
async function
|
|
13
|
-
|
|
23
|
+
async function discoverSubagents(cwd, options) {
|
|
24
|
+
const fontes = resolverFontes(options);
|
|
25
|
+
return chunkGM7QDQ24_cjs.loadSubagents(cwd, fontes.includes("project"), void 0);
|
|
26
|
+
}
|
|
27
|
+
async function loadSubagentDefinition(name, cwd, options) {
|
|
28
|
+
return (await discoverSubagents(cwd, options))[name];
|
|
14
29
|
}
|
|
15
30
|
|
|
16
31
|
exports.discoverSubagents = discoverSubagents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/subagents-loader.ts"],"names":["loadSubagents"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/subagents-loader.ts"],"names":["ConfigurationError","loadSubagents"],"mappings":";;;;;;;;AAuCA,IAAM,cAAA,GAA4C,CAAC,SAAS,CAAA;AAgB5D,SAAS,eAAe,OAAA,EAA0E;AAChG,EAAA,MAAM,aAAa,OAAA,EAAS,cAAA;AAC5B,EAAA,IAAI,UAAA,KAAe,QAAW,OAAO,cAAA;AACrC,EAAA,KAAA,MAAW,SAAS,UAAA,EAAY;AAC9B,IAAA,IAAI,CAAC,cAAA,CAAe,QAAA,CAAS,KAAK,CAAA,EAAG;AACnC,MAAA,MAAM,IAAIA,oCAAA;AAAA,QACR,CAAA,iCAAA,EAAoC,OAAO,KAAK,CAAC,gBAAgB,cAAA,CAAe,IAAA,CAAK,IAAI,CAAC,CAAA,CAAA,CAAA;AAAA,QAC1F,EAAE,MAAM,iCAAA;AAAkC,OAC5C;AAAA,IACF;AAAA,EACF;AACA,EAAA,OAAO,UAAA;AACT;AAOA,eAAsB,iBAAA,CACpB,KACA,OAAA,EAC0C;AAC1C,EAAA,MAAM,MAAA,GAAS,eAAe,OAAO,CAAA;AACrC,EAAA,OAAOC,gCAAc,GAAA,EAAK,MAAA,CAAO,QAAA,CAAS,SAAS,GAAG,MAAS,CAAA;AACjE;AAQA,eAAsB,sBAAA,CACpB,IAAA,EACA,GAAA,EACA,OAAA,EACsC;AACtC,EAAA,OAAA,CAAQ,MAAM,iBAAA,CAAkB,GAAA,EAAK,OAAO,GAAG,IAAI,CAAA;AACrD","file":"subagents-loader.cjs","sourcesContent":["/**\n * M81 — `.theokit/agents` discovery, exposed so a consumer can read the on-disk subagent\n * definitions with one import instead of hand-rolling a second parser.\n *\n * ## Why this file exists\n *\n * `src/skills.ts` already exposed `discoverSkills` for the sibling domain. Subagents had the same\n * loader — `internal/runtime/skills/subagents-loader.ts` — with no public door. A consumer behind\n * the layer boundary (the agent-builder never imports `@theokit/sdk*` directly) could not reach it,\n * so re-implementing was the only legal option. It re-implemented, and then wrote a test whose only\n * job was to watch the two parsers for drift. That test is the cleanest possible evidence that the\n * duplication should not exist.\n *\n * ## What crosses is the PARSED config\n *\n * The return is `AgentDefinition` — already interpreted — never the `.md` text or the frontmatter\n * shape. Exporting the file format would freeze an internal detail as public API; exporting the\n * parsed value leaves the format free to change.\n */\n\nimport { ConfigurationError } from \"./errors.js\";\nimport { loadSubagents } from \"./internal/runtime/skills/subagents-loader.js\";\nimport type { AgentDefinition } from \"./types/agent.js\";\n\n/**\n * The parsed subagent definition this module hands back.\n *\n * Re-exported here — beside the loader that produces it — so a consumer can NAME the value it\n * receives without reaching into `types/agent`, which no subpath publishes. A layer above may then\n * alias it (`AgentDefinition as SubagentDefinition`) to sidestep a name it has already spent.\n */\nexport type { AgentDefinition } from \"./types/agent.js\";\n\n/**\n * Where subagent definitions may be read from. A closed union rather than a boolean: a third\n * source can join it without breaking the signature, and the call site reads as what it means.\n */\nexport type SubagentSource = \"project\";\n\nconst FONTES_ACEITAS: readonly SubagentSource[] = [\"project\"];\n\n/** Options for {@link discoverSubagents} / {@link loadSubagentDefinition}. */\nexport interface DiscoverSubagentsOptions {\n /**\n * Which sources to read. Defaults to `[\"project\"]` — `<cwd>/.theokit/agents/*.md`.\n *\n * An empty list reads NOTHING: the directory is never opened, so a caller that has not yet\n * established trust in `cwd` can decline the read rather than filter its result.\n */\n readonly settingSources?: readonly SubagentSource[];\n}\n\n// Validated at the boundary (error-handling.md § 2): the union is erased at runtime, so a JS\n// caller — or a value crossing a serialization hop — can still carry a source nobody honors.\n// Dropping it silently would read as \"no subagents found\", which is the same shape as success.\nfunction resolverFontes(options: DiscoverSubagentsOptions | undefined): readonly SubagentSource[] {\n const declaradas = options?.settingSources;\n if (declaradas === undefined) return FONTES_ACEITAS;\n for (const fonte of declaradas) {\n if (!FONTES_ACEITAS.includes(fonte)) {\n throw new ConfigurationError(\n `Unknown subagent setting source \"${String(fonte)}\" (accepted: ${FONTES_ACEITAS.join(\", \")})`,\n { code: \"subagent_unknown_setting_source\" },\n );\n }\n }\n return declaradas;\n}\n\n/**\n * Discover the subagents defined under `<cwd>/.theokit/agents/*.md`.\n *\n * An absent directory yields `{}` — a project without subagents is the common case, not an error.\n */\nexport async function discoverSubagents(\n cwd: string,\n options?: DiscoverSubagentsOptions,\n): Promise<Record<string, AgentDefinition>> {\n const fontes = resolverFontes(options);\n return loadSubagents(cwd, fontes.includes(\"project\"), undefined);\n}\n\n/**\n * Load ONE subagent definition by name, or `undefined` when it is not defined on disk.\n *\n * A thin selector over {@link discoverSubagents} rather than a second reader: one parser is the\n * whole point of this module.\n */\nexport async function loadSubagentDefinition(\n name: string,\n cwd: string,\n options?: DiscoverSubagentsOptions,\n): Promise<AgentDefinition | undefined> {\n return (await discoverSubagents(cwd, options))[name];\n}\n"]}
|
|
@@ -22,18 +22,33 @@ import 'zod';
|
|
|
22
22
|
* parsed value leaves the format free to change.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Where subagent definitions may be read from. A closed union rather than a boolean: a third
|
|
27
|
+
* source can join it without breaking the signature, and the call site reads as what it means.
|
|
28
|
+
*/
|
|
29
|
+
type SubagentSource = "project";
|
|
30
|
+
/** Options for {@link discoverSubagents} / {@link loadSubagentDefinition}. */
|
|
31
|
+
interface DiscoverSubagentsOptions {
|
|
32
|
+
/**
|
|
33
|
+
* Which sources to read. Defaults to `["project"]` — `<cwd>/.theokit/agents/*.md`.
|
|
34
|
+
*
|
|
35
|
+
* An empty list reads NOTHING: the directory is never opened, so a caller that has not yet
|
|
36
|
+
* established trust in `cwd` can decline the read rather than filter its result.
|
|
37
|
+
*/
|
|
38
|
+
readonly settingSources?: readonly SubagentSource[];
|
|
39
|
+
}
|
|
25
40
|
/**
|
|
26
41
|
* Discover the subagents defined under `<cwd>/.theokit/agents/*.md`.
|
|
27
42
|
*
|
|
28
43
|
* An absent directory yields `{}` — a project without subagents is the common case, not an error.
|
|
29
44
|
*/
|
|
30
|
-
declare function discoverSubagents(cwd: string): Promise<Record<string, AgentDefinition>>;
|
|
45
|
+
declare function discoverSubagents(cwd: string, options?: DiscoverSubagentsOptions): Promise<Record<string, AgentDefinition>>;
|
|
31
46
|
/**
|
|
32
47
|
* Load ONE subagent definition by name, or `undefined` when it is not defined on disk.
|
|
33
48
|
*
|
|
34
49
|
* A thin selector over {@link discoverSubagents} rather than a second reader: one parser is the
|
|
35
50
|
* whole point of this module.
|
|
36
51
|
*/
|
|
37
|
-
declare function loadSubagentDefinition(name: string, cwd: string): Promise<AgentDefinition | undefined>;
|
|
52
|
+
declare function loadSubagentDefinition(name: string, cwd: string, options?: DiscoverSubagentsOptions): Promise<AgentDefinition | undefined>;
|
|
38
53
|
|
|
39
|
-
export { discoverSubagents, loadSubagentDefinition };
|
|
54
|
+
export { AgentDefinition, type DiscoverSubagentsOptions, type SubagentSource, discoverSubagents, loadSubagentDefinition };
|
|
@@ -22,18 +22,33 @@ import 'zod';
|
|
|
22
22
|
* parsed value leaves the format free to change.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Where subagent definitions may be read from. A closed union rather than a boolean: a third
|
|
27
|
+
* source can join it without breaking the signature, and the call site reads as what it means.
|
|
28
|
+
*/
|
|
29
|
+
type SubagentSource = "project";
|
|
30
|
+
/** Options for {@link discoverSubagents} / {@link loadSubagentDefinition}. */
|
|
31
|
+
interface DiscoverSubagentsOptions {
|
|
32
|
+
/**
|
|
33
|
+
* Which sources to read. Defaults to `["project"]` — `<cwd>/.theokit/agents/*.md`.
|
|
34
|
+
*
|
|
35
|
+
* An empty list reads NOTHING: the directory is never opened, so a caller that has not yet
|
|
36
|
+
* established trust in `cwd` can decline the read rather than filter its result.
|
|
37
|
+
*/
|
|
38
|
+
readonly settingSources?: readonly SubagentSource[];
|
|
39
|
+
}
|
|
25
40
|
/**
|
|
26
41
|
* Discover the subagents defined under `<cwd>/.theokit/agents/*.md`.
|
|
27
42
|
*
|
|
28
43
|
* An absent directory yields `{}` — a project without subagents is the common case, not an error.
|
|
29
44
|
*/
|
|
30
|
-
declare function discoverSubagents(cwd: string): Promise<Record<string, AgentDefinition>>;
|
|
45
|
+
declare function discoverSubagents(cwd: string, options?: DiscoverSubagentsOptions): Promise<Record<string, AgentDefinition>>;
|
|
31
46
|
/**
|
|
32
47
|
* Load ONE subagent definition by name, or `undefined` when it is not defined on disk.
|
|
33
48
|
*
|
|
34
49
|
* A thin selector over {@link discoverSubagents} rather than a second reader: one parser is the
|
|
35
50
|
* whole point of this module.
|
|
36
51
|
*/
|
|
37
|
-
declare function loadSubagentDefinition(name: string, cwd: string): Promise<AgentDefinition | undefined>;
|
|
52
|
+
declare function loadSubagentDefinition(name: string, cwd: string, options?: DiscoverSubagentsOptions): Promise<AgentDefinition | undefined>;
|
|
38
53
|
|
|
39
|
-
export { discoverSubagents, loadSubagentDefinition };
|
|
54
|
+
export { AgentDefinition, type DiscoverSubagentsOptions, type SubagentSource, discoverSubagents, loadSubagentDefinition };
|
package/dist/subagents-loader.js
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import { loadSubagents } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
import { loadSubagents } from './chunk-YCXMSDSP.js';
|
|
2
|
+
import './chunk-UQPDFW4E.js';
|
|
3
|
+
import { ConfigurationError } from './chunk-CD73YHEH.js';
|
|
4
|
+
import './chunk-TAPQWDW2.js';
|
|
5
5
|
|
|
6
6
|
// src/subagents-loader.ts
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
var FONTES_ACEITAS = ["project"];
|
|
8
|
+
function resolverFontes(options) {
|
|
9
|
+
const declaradas = options?.settingSources;
|
|
10
|
+
if (declaradas === void 0) return FONTES_ACEITAS;
|
|
11
|
+
for (const fonte of declaradas) {
|
|
12
|
+
if (!FONTES_ACEITAS.includes(fonte)) {
|
|
13
|
+
throw new ConfigurationError(
|
|
14
|
+
`Unknown subagent setting source "${String(fonte)}" (accepted: ${FONTES_ACEITAS.join(", ")})`,
|
|
15
|
+
{ code: "subagent_unknown_setting_source" }
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return declaradas;
|
|
9
20
|
}
|
|
10
|
-
async function
|
|
11
|
-
|
|
21
|
+
async function discoverSubagents(cwd, options) {
|
|
22
|
+
const fontes = resolverFontes(options);
|
|
23
|
+
return loadSubagents(cwd, fontes.includes("project"), void 0);
|
|
24
|
+
}
|
|
25
|
+
async function loadSubagentDefinition(name, cwd, options) {
|
|
26
|
+
return (await discoverSubagents(cwd, options))[name];
|
|
12
27
|
}
|
|
13
28
|
|
|
14
29
|
export { discoverSubagents, loadSubagentDefinition };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/subagents-loader.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/subagents-loader.ts"],"names":[],"mappings":";;;;;;AAuCA,IAAM,cAAA,GAA4C,CAAC,SAAS,CAAA;AAgB5D,SAAS,eAAe,OAAA,EAA0E;AAChG,EAAA,MAAM,aAAa,OAAA,EAAS,cAAA;AAC5B,EAAA,IAAI,UAAA,KAAe,QAAW,OAAO,cAAA;AACrC,EAAA,KAAA,MAAW,SAAS,UAAA,EAAY;AAC9B,IAAA,IAAI,CAAC,cAAA,CAAe,QAAA,CAAS,KAAK,CAAA,EAAG;AACnC,MAAA,MAAM,IAAI,kBAAA;AAAA,QACR,CAAA,iCAAA,EAAoC,OAAO,KAAK,CAAC,gBAAgB,cAAA,CAAe,IAAA,CAAK,IAAI,CAAC,CAAA,CAAA,CAAA;AAAA,QAC1F,EAAE,MAAM,iCAAA;AAAkC,OAC5C;AAAA,IACF;AAAA,EACF;AACA,EAAA,OAAO,UAAA;AACT;AAOA,eAAsB,iBAAA,CACpB,KACA,OAAA,EAC0C;AAC1C,EAAA,MAAM,MAAA,GAAS,eAAe,OAAO,CAAA;AACrC,EAAA,OAAO,cAAc,GAAA,EAAK,MAAA,CAAO,QAAA,CAAS,SAAS,GAAG,MAAS,CAAA;AACjE;AAQA,eAAsB,sBAAA,CACpB,IAAA,EACA,GAAA,EACA,OAAA,EACsC;AACtC,EAAA,OAAA,CAAQ,MAAM,iBAAA,CAAkB,GAAA,EAAK,OAAO,GAAG,IAAI,CAAA;AACrD","file":"subagents-loader.js","sourcesContent":["/**\n * M81 — `.theokit/agents` discovery, exposed so a consumer can read the on-disk subagent\n * definitions with one import instead of hand-rolling a second parser.\n *\n * ## Why this file exists\n *\n * `src/skills.ts` already exposed `discoverSkills` for the sibling domain. Subagents had the same\n * loader — `internal/runtime/skills/subagents-loader.ts` — with no public door. A consumer behind\n * the layer boundary (the agent-builder never imports `@theokit/sdk*` directly) could not reach it,\n * so re-implementing was the only legal option. It re-implemented, and then wrote a test whose only\n * job was to watch the two parsers for drift. That test is the cleanest possible evidence that the\n * duplication should not exist.\n *\n * ## What crosses is the PARSED config\n *\n * The return is `AgentDefinition` — already interpreted — never the `.md` text or the frontmatter\n * shape. Exporting the file format would freeze an internal detail as public API; exporting the\n * parsed value leaves the format free to change.\n */\n\nimport { ConfigurationError } from \"./errors.js\";\nimport { loadSubagents } from \"./internal/runtime/skills/subagents-loader.js\";\nimport type { AgentDefinition } from \"./types/agent.js\";\n\n/**\n * The parsed subagent definition this module hands back.\n *\n * Re-exported here — beside the loader that produces it — so a consumer can NAME the value it\n * receives without reaching into `types/agent`, which no subpath publishes. A layer above may then\n * alias it (`AgentDefinition as SubagentDefinition`) to sidestep a name it has already spent.\n */\nexport type { AgentDefinition } from \"./types/agent.js\";\n\n/**\n * Where subagent definitions may be read from. A closed union rather than a boolean: a third\n * source can join it without breaking the signature, and the call site reads as what it means.\n */\nexport type SubagentSource = \"project\";\n\nconst FONTES_ACEITAS: readonly SubagentSource[] = [\"project\"];\n\n/** Options for {@link discoverSubagents} / {@link loadSubagentDefinition}. */\nexport interface DiscoverSubagentsOptions {\n /**\n * Which sources to read. Defaults to `[\"project\"]` — `<cwd>/.theokit/agents/*.md`.\n *\n * An empty list reads NOTHING: the directory is never opened, so a caller that has not yet\n * established trust in `cwd` can decline the read rather than filter its result.\n */\n readonly settingSources?: readonly SubagentSource[];\n}\n\n// Validated at the boundary (error-handling.md § 2): the union is erased at runtime, so a JS\n// caller — or a value crossing a serialization hop — can still carry a source nobody honors.\n// Dropping it silently would read as \"no subagents found\", which is the same shape as success.\nfunction resolverFontes(options: DiscoverSubagentsOptions | undefined): readonly SubagentSource[] {\n const declaradas = options?.settingSources;\n if (declaradas === undefined) return FONTES_ACEITAS;\n for (const fonte of declaradas) {\n if (!FONTES_ACEITAS.includes(fonte)) {\n throw new ConfigurationError(\n `Unknown subagent setting source \"${String(fonte)}\" (accepted: ${FONTES_ACEITAS.join(\", \")})`,\n { code: \"subagent_unknown_setting_source\" },\n );\n }\n }\n return declaradas;\n}\n\n/**\n * Discover the subagents defined under `<cwd>/.theokit/agents/*.md`.\n *\n * An absent directory yields `{}` — a project without subagents is the common case, not an error.\n */\nexport async function discoverSubagents(\n cwd: string,\n options?: DiscoverSubagentsOptions,\n): Promise<Record<string, AgentDefinition>> {\n const fontes = resolverFontes(options);\n return loadSubagents(cwd, fontes.includes(\"project\"), undefined);\n}\n\n/**\n * Load ONE subagent definition by name, or `undefined` when it is not defined on disk.\n *\n * A thin selector over {@link discoverSubagents} rather than a second reader: one parser is the\n * whole point of this module.\n */\nexport async function loadSubagentDefinition(\n name: string,\n cwd: string,\n options?: DiscoverSubagentsOptions,\n): Promise<AgentDefinition | undefined> {\n return (await discoverSubagents(cwd, options))[name];\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkMHCKWQR3_cjs = require('../chunk-MHCKWQR3.cjs');
|
|
4
|
+
require('../chunk-LTCOPATU.cjs');
|
|
5
5
|
|
|
6
6
|
// src/subscription/define-subscription.ts
|
|
7
7
|
function defineSubscription(opts) {
|
|
@@ -138,7 +138,7 @@ function tracked(id, payload) {
|
|
|
138
138
|
}
|
|
139
139
|
return [id, payload];
|
|
140
140
|
}
|
|
141
|
-
var SubscriptionError = class extends
|
|
141
|
+
var SubscriptionError = class extends chunkMHCKWQR3_cjs.TheokitAgentError {
|
|
142
142
|
name = "SubscriptionError";
|
|
143
143
|
constructor(message, options = {}) {
|
|
144
144
|
super(message, { ...options, isRetryable: false });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TheokitAgentError } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { TheokitAgentError } from '../chunk-CD73YHEH.js';
|
|
2
|
+
import '../chunk-TAPQWDW2.js';
|
|
3
3
|
|
|
4
4
|
// src/subscription/define-subscription.ts
|
|
5
5
|
function defineSubscription(opts) {
|
package/dist/task-store.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkW4QN5CMG_cjs = require('./chunk-W4QN5CMG.cjs');
|
|
4
|
+
require('./chunk-ICYBIC6N.cjs');
|
|
5
|
+
require('./chunk-MHCKWQR3.cjs');
|
|
6
|
+
require('./chunk-LTCOPATU.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "InMemoryTaskStore", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkW4QN5CMG_cjs.InMemoryTaskStore; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "JsonFileTaskStore", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkW4QN5CMG_cjs.JsonFileTaskStore; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "getTaskStoreFor", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkW4QN5CMG_cjs.getTaskStoreFor; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=task-store.cjs.map
|
|
23
23
|
//# sourceMappingURL=task-store.cjs.map
|
package/dist/task-store.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { InMemoryTaskStore, JsonFileTaskStore, getTaskStoreFor } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { InMemoryTaskStore, JsonFileTaskStore, getTaskStoreFor } from './chunk-CSZRJ4RE.js';
|
|
2
|
+
import './chunk-56OXYUZE.js';
|
|
3
|
+
import './chunk-CD73YHEH.js';
|
|
4
|
+
import './chunk-TAPQWDW2.js';
|
|
5
5
|
//# sourceMappingURL=task-store.js.map
|
|
6
6
|
//# sourceMappingURL=task-store.js.map
|
package/dist/workflow.cjs
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkBJMKQOY2_cjs = require('./chunk-BJMKQOY2.cjs');
|
|
4
|
+
var chunkXAYVHS2B_cjs = require('./chunk-XAYVHS2B.cjs');
|
|
5
5
|
require('./chunk-PNVDQL5Y.cjs');
|
|
6
6
|
require('./chunk-WJVHMTKB.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-ICYBIC6N.cjs');
|
|
8
|
+
require('./chunk-YBFDBOUN.cjs');
|
|
9
|
+
require('./chunk-MHCKWQR3.cjs');
|
|
10
|
+
require('./chunk-LTCOPATU.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "Workflow", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkBJMKQOY2_cjs.Workflow; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "WorkflowBuilder", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkBJMKQOY2_cjs.WorkflowBuilder; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "WorkflowToolError", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkBJMKQOY2_cjs.WorkflowToolError; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "agentStep", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkBJMKQOY2_cjs.agentStep; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkBJMKQOY2_cjs.cloneWorkflow; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "fn", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkBJMKQOY2_cjs.fn; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "workflowAsTool", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkBJMKQOY2_cjs.workflowAsTool; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "workflowStep", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkBJMKQOY2_cjs.workflowStep; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "WorkflowAlreadyRunningError", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowAlreadyRunningError; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "WorkflowCompensateNotImplementedError", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowCompensateNotImplementedError; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "WorkflowDuplicateStepIdError", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowDuplicateStepIdError; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "WorkflowInputError", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowInputError; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "WorkflowMaxIterationsExceededError", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowMaxIterationsExceededError; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "WorkflowNestedError", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowNestedError; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "WorkflowNotSerializableError", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowNotSerializableError; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "WorkflowOutputError", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowOutputError; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "WorkflowParallelError", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowParallelError; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "WorkflowResumeStepNotFoundError", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowResumeStepNotFoundError; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "WorkflowSnapshotNotFoundError", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowSnapshotNotFoundError; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "WorkflowStateError", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkXAYVHS2B_cjs.WorkflowStateError; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "__resetSnapshotStoresForTests", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkXAYVHS2B_cjs.__resetSnapshotStoresForTests; }
|
|
97
97
|
});
|
|
98
98
|
//# sourceMappingURL=workflow.cjs.map
|
|
99
99
|
//# sourceMappingURL=workflow.cjs.map
|
package/dist/workflow.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Workflow, WorkflowBuilder, WorkflowToolError, agentStep, cloneWorkflow, fn, workflowAsTool, workflowStep } from './chunk-
|
|
2
|
-
export { WorkflowAlreadyRunningError, WorkflowCompensateNotImplementedError, WorkflowDuplicateStepIdError, WorkflowInputError, WorkflowMaxIterationsExceededError, WorkflowNestedError, WorkflowNotSerializableError, WorkflowOutputError, WorkflowParallelError, WorkflowResumeStepNotFoundError, WorkflowSnapshotNotFoundError, WorkflowStateError, __resetSnapshotStoresForTests } from './chunk-
|
|
1
|
+
export { Workflow, WorkflowBuilder, WorkflowToolError, agentStep, cloneWorkflow, fn, workflowAsTool, workflowStep } from './chunk-SDIBMLL5.js';
|
|
2
|
+
export { WorkflowAlreadyRunningError, WorkflowCompensateNotImplementedError, WorkflowDuplicateStepIdError, WorkflowInputError, WorkflowMaxIterationsExceededError, WorkflowNestedError, WorkflowNotSerializableError, WorkflowOutputError, WorkflowParallelError, WorkflowResumeStepNotFoundError, WorkflowSnapshotNotFoundError, WorkflowStateError, __resetSnapshotStoresForTests } from './chunk-YDLNI7J6.js';
|
|
3
3
|
import './chunk-CAH3G4IS.js';
|
|
4
4
|
import './chunk-4VPXM6UU.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
5
|
+
import './chunk-56OXYUZE.js';
|
|
6
|
+
import './chunk-WDGCZDRG.js';
|
|
7
|
+
import './chunk-CD73YHEH.js';
|
|
8
|
+
import './chunk-TAPQWDW2.js';
|
|
9
9
|
//# sourceMappingURL=workflow.js.map
|
|
10
10
|
//# sourceMappingURL=workflow.js.map
|
package/package.json
CHANGED
package/dist/agent-H6HL5ITH.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export { Agent } from './chunk-EKFA76N4.js';
|
|
2
|
-
import './chunk-2SFBB54R.js';
|
|
3
|
-
import './chunk-HRA3CPGG.js';
|
|
4
|
-
import './chunk-7BTE3RXJ.js';
|
|
5
|
-
import './chunk-K2BQQ445.js';
|
|
6
|
-
import './chunk-OKXUMCGM.js';
|
|
7
|
-
import './chunk-IX2LKBCD.js';
|
|
8
|
-
import './chunk-6CLRANZA.js';
|
|
9
|
-
import './chunk-EEZ7CFMM.js';
|
|
10
|
-
import './chunk-XAUBQMQU.js';
|
|
11
|
-
import './chunk-XIG2IE3L.js';
|
|
12
|
-
import './chunk-7GFX45DD.js';
|
|
13
|
-
import './chunk-XV2RBL6D.js';
|
|
14
|
-
import './chunk-FD2UT76F.js';
|
|
15
|
-
import './chunk-U54XCYG3.js';
|
|
16
|
-
import './chunk-FV3YEMQ7.js';
|
|
17
|
-
import './chunk-6X6ID4MO.js';
|
|
18
|
-
import './chunk-UJ7IQJAG.js';
|
|
19
|
-
import './chunk-7AD3ZTZL.js';
|
|
20
|
-
import './chunk-V4XRLPEF.js';
|
|
21
|
-
import './chunk-5PZMMF4H.js';
|
|
22
|
-
import './chunk-BOTK6ZUP.js';
|
|
23
|
-
import './chunk-UAYYNWYJ.js';
|
|
24
|
-
import './chunk-77FOZCOT.js';
|
|
25
|
-
import './chunk-2XLKLVVR.js';
|
|
26
|
-
import './chunk-Q56IYTBZ.js';
|
|
27
|
-
import './chunk-BXV2QUIC.js';
|
|
28
|
-
import './chunk-4VPXM6UU.js';
|
|
29
|
-
import './chunk-S2BBRVQX.js';
|
|
30
|
-
import './chunk-BNIFFFH3.js';
|
|
31
|
-
import './chunk-RKG6QFCJ.js';
|
|
32
|
-
import './chunk-X2FR4OIT.js';
|
|
33
|
-
import './chunk-KAP4GJHO.js';
|
|
34
|
-
import './chunk-LU7VALW5.js';
|
|
35
|
-
import './chunk-5NBUH3NO.js';
|
|
36
|
-
import './chunk-5IB2UKSN.js';
|
|
37
|
-
import './chunk-POQT2OIF.js';
|
|
38
|
-
import './chunk-FKCC2MED.js';
|
|
39
|
-
import './chunk-WLKFWQSJ.js';
|
|
40
|
-
import './chunk-JTFYYKDT.js';
|
|
41
|
-
//# sourceMappingURL=agent-H6HL5ITH.js.map
|
|
42
|
-
//# sourceMappingURL=agent-H6HL5ITH.js.map
|
package/dist/agent-P77NPBF4.cjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk3XJ7CS2C_cjs = require('./chunk-3XJ7CS2C.cjs');
|
|
4
|
-
require('./chunk-BV2MWEMV.cjs');
|
|
5
|
-
require('./chunk-MZ5ZRORA.cjs');
|
|
6
|
-
require('./chunk-G4WI3VW2.cjs');
|
|
7
|
-
require('./chunk-BUUUWQMB.cjs');
|
|
8
|
-
require('./chunk-AIDNODHJ.cjs');
|
|
9
|
-
require('./chunk-WEHUJ7ZS.cjs');
|
|
10
|
-
require('./chunk-LUSXDZPV.cjs');
|
|
11
|
-
require('./chunk-IT3PWBW4.cjs');
|
|
12
|
-
require('./chunk-JLMXKTBX.cjs');
|
|
13
|
-
require('./chunk-N24XBYNX.cjs');
|
|
14
|
-
require('./chunk-WPZTYOUX.cjs');
|
|
15
|
-
require('./chunk-6M6A6WWW.cjs');
|
|
16
|
-
require('./chunk-MUUQ2WFJ.cjs');
|
|
17
|
-
require('./chunk-6JSIEDKL.cjs');
|
|
18
|
-
require('./chunk-G2F67XUR.cjs');
|
|
19
|
-
require('./chunk-NINIJCHU.cjs');
|
|
20
|
-
require('./chunk-YPEPCZHF.cjs');
|
|
21
|
-
require('./chunk-VJ26EKGJ.cjs');
|
|
22
|
-
require('./chunk-GIW4L6HY.cjs');
|
|
23
|
-
require('./chunk-7S7KKUO6.cjs');
|
|
24
|
-
require('./chunk-YRXTIESB.cjs');
|
|
25
|
-
require('./chunk-CJVMDRQB.cjs');
|
|
26
|
-
require('./chunk-JD74LN7R.cjs');
|
|
27
|
-
require('./chunk-YLQQX5W2.cjs');
|
|
28
|
-
require('./chunk-2DYI7MIF.cjs');
|
|
29
|
-
require('./chunk-ANIZEWTU.cjs');
|
|
30
|
-
require('./chunk-WJVHMTKB.cjs');
|
|
31
|
-
require('./chunk-TIZ4TS5V.cjs');
|
|
32
|
-
require('./chunk-RZQ6E5YZ.cjs');
|
|
33
|
-
require('./chunk-M2PU44HP.cjs');
|
|
34
|
-
require('./chunk-VYHJZVL5.cjs');
|
|
35
|
-
require('./chunk-D42XHI4O.cjs');
|
|
36
|
-
require('./chunk-HFPGOTVF.cjs');
|
|
37
|
-
require('./chunk-C6Y6CWYD.cjs');
|
|
38
|
-
require('./chunk-DHLZIMP6.cjs');
|
|
39
|
-
require('./chunk-KIO7QFIV.cjs');
|
|
40
|
-
require('./chunk-LALRCFSN.cjs');
|
|
41
|
-
require('./chunk-A44COQJJ.cjs');
|
|
42
|
-
require('./chunk-BEURCLDV.cjs');
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Object.defineProperty(exports, "Agent", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return chunk3XJ7CS2C_cjs.Agent; }
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=agent-P77NPBF4.cjs.map
|
|
51
|
-
//# sourceMappingURL=agent-P77NPBF4.cjs.map
|