@theokit/sdk 4.38.0 → 4.39.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 +237 -0
- package/dist/a2a/index.cjs +3 -3
- package/dist/a2a/index.js +1 -1
- package/dist/a2a/subagent.d.cts +1 -0
- package/dist/a2a/subagent.d.ts +1 -0
- package/dist/{agent-U3lBX-5t.d.cts → agent-D7bRK9Kg.d.cts} +70 -5
- package/dist/agent-I3EZZR6S.cjs +55 -0
- package/dist/{agent-2GZC4W2A.cjs.map → agent-I3EZZR6S.cjs.map} +1 -1
- package/dist/agent-KKZYLY5D.js +46 -0
- package/dist/{agent-3H3UKD6U.js.map → agent-KKZYLY5D.js.map} +1 -1
- package/dist/{agent-C3AEtM-W.d.ts → agent-ZCZa7YQv.d.ts} +70 -5
- package/dist/agent-session-store-N4TVKHBU.cjs +23 -0
- package/dist/agent-session-store-N4TVKHBU.cjs.map +1 -0
- package/dist/agent-session-store-RHMHP5DG.js +6 -0
- package/dist/agent-session-store-RHMHP5DG.js.map +1 -0
- package/dist/agent.d.ts +37 -1
- package/dist/auth/index.cjs +15 -15
- package/dist/auth/index.js +4 -4
- package/dist/{batch-LXSALQC3.js → batch-6KQM3EBA.js} +12 -12
- package/dist/batch-6KQM3EBA.js.map +1 -0
- package/dist/{batch-NZGN6SFV.cjs → batch-X6JKGDPK.cjs} +26 -26
- package/dist/batch-X6JKGDPK.cjs.map +1 -0
- package/dist/chunk-2RW7K6FN.cjs +34 -0
- package/dist/chunk-2RW7K6FN.cjs.map +1 -0
- package/dist/chunk-3I4B3OIX.js +105 -0
- package/dist/chunk-3I4B3OIX.js.map +1 -0
- package/dist/{chunk-KWXC6ERT.js → chunk-42IFCKQZ.js} +5 -5
- package/dist/{chunk-KWXC6ERT.js.map → chunk-42IFCKQZ.js.map} +1 -1
- package/dist/{chunk-4APWS2YF.js → chunk-4F7JQZOX.js} +9 -36
- package/dist/chunk-4F7JQZOX.js.map +1 -0
- package/dist/{chunk-VYD6BGKK.js → chunk-4JSZYSGW.js} +3 -3
- package/dist/{chunk-VYD6BGKK.js.map → chunk-4JSZYSGW.js.map} +1 -1
- package/dist/{chunk-A6GXYF2Q.js → chunk-65ONFZWM.js} +7 -6
- package/dist/chunk-65ONFZWM.js.map +1 -0
- package/dist/{chunk-SGTMDQ4O.js → chunk-6EEYRFJC.js} +5 -5
- package/dist/{chunk-SGTMDQ4O.js.map → chunk-6EEYRFJC.js.map} +1 -1
- package/dist/{chunk-M4OGSS66.cjs → chunk-6LGQECT7.cjs} +11 -11
- package/dist/{chunk-M4OGSS66.cjs.map → chunk-6LGQECT7.cjs.map} +1 -1
- package/dist/{chunk-KTXOHCAE.cjs → chunk-6NEHIHFU.cjs} +4 -4
- package/dist/{chunk-KTXOHCAE.cjs.map → chunk-6NEHIHFU.cjs.map} +1 -1
- package/dist/chunk-6YNYA7GD.cjs +103 -0
- package/dist/chunk-6YNYA7GD.cjs.map +1 -0
- package/dist/{chunk-2R6NBT5F.cjs → chunk-74D7KSBP.cjs} +11 -11
- package/dist/{chunk-2R6NBT5F.cjs.map → chunk-74D7KSBP.cjs.map} +1 -1
- package/dist/{chunk-6OIO4FYX.cjs → chunk-75DSEWTJ.cjs} +7 -7
- package/dist/{chunk-6OIO4FYX.cjs.map → chunk-75DSEWTJ.cjs.map} +1 -1
- package/dist/{chunk-3XRXORBS.cjs → chunk-7OLG7VI4.cjs} +4 -4
- package/dist/{chunk-3XRXORBS.cjs.map → chunk-7OLG7VI4.cjs.map} +1 -1
- package/dist/chunk-7U2HAAWB.cjs +199 -0
- package/dist/chunk-7U2HAAWB.cjs.map +1 -0
- package/dist/{chunk-QJQ2MAZF.cjs → chunk-7YBJZS5P.cjs} +8 -8
- package/dist/{chunk-QJQ2MAZF.cjs.map → chunk-7YBJZS5P.cjs.map} +1 -1
- package/dist/{chunk-ZFZYPLQI.js → chunk-AECV3G5Z.js} +4 -4
- package/dist/{chunk-ZFZYPLQI.js.map → chunk-AECV3G5Z.js.map} +1 -1
- package/dist/{chunk-QFWQLXCL.js → chunk-AR5MQZ3J.js} +3 -3
- package/dist/{chunk-QFWQLXCL.js.map → chunk-AR5MQZ3J.js.map} +1 -1
- package/dist/{chunk-G2F67XUR.cjs → chunk-B4YA6BRS.cjs} +13 -14
- package/dist/chunk-B4YA6BRS.cjs.map +1 -0
- package/dist/{chunk-BE3W4HYV.cjs → chunk-BCQ3E2ZG.cjs} +12 -3
- package/dist/chunk-BCQ3E2ZG.cjs.map +1 -0
- package/dist/{chunk-G7X2Y7Y2.cjs → chunk-BPN5ONSW.cjs} +182 -236
- package/dist/chunk-BPN5ONSW.cjs.map +1 -0
- package/dist/{chunk-XJ5TMOGA.js → chunk-BQDUEG4C.js} +3 -3
- package/dist/{chunk-XJ5TMOGA.js.map → chunk-BQDUEG4C.js.map} +1 -1
- package/dist/{chunk-OFWU6UKF.cjs → chunk-C7OP3FAK.cjs} +47 -11
- package/dist/chunk-C7OP3FAK.cjs.map +1 -0
- package/dist/{chunk-BUGVDCI5.cjs → chunk-CEIHCKTO.cjs} +4 -4
- package/dist/chunk-CEIHCKTO.cjs.map +1 -0
- package/dist/{chunk-3BSP7LSG.cjs → chunk-CN6UX5EV.cjs} +28 -56
- package/dist/chunk-CN6UX5EV.cjs.map +1 -0
- package/dist/{chunk-5BVBNE2F.js → chunk-D7IULBF2.js} +3 -3
- package/dist/{chunk-5BVBNE2F.js.map → chunk-D7IULBF2.js.map} +1 -1
- package/dist/{chunk-6ZGD7R27.cjs → chunk-DCXRHCZJ.cjs} +8 -75
- package/dist/chunk-DCXRHCZJ.cjs.map +1 -0
- package/dist/{chunk-YVI4YPUP.cjs → chunk-DGLLVCNB.cjs} +4 -4
- package/dist/{chunk-YVI4YPUP.cjs.map → chunk-DGLLVCNB.cjs.map} +1 -1
- package/dist/{chunk-JI34KBNC.js → chunk-DKFGUOWL.js} +3 -3
- package/dist/{chunk-JI34KBNC.js.map → chunk-DKFGUOWL.js.map} +1 -1
- package/dist/{chunk-ZET34IZE.cjs → chunk-DMTZ3FII.cjs} +5 -5
- package/dist/{chunk-ZET34IZE.cjs.map → chunk-DMTZ3FII.cjs.map} +1 -1
- package/dist/{chunk-6XZBKFQ7.js → chunk-DU7DE543.js} +3 -3
- package/dist/{chunk-6XZBKFQ7.js.map → chunk-DU7DE543.js.map} +1 -1
- package/dist/{chunk-VVMLMKYZ.cjs → chunk-DWY25VLP.cjs} +9 -9
- package/dist/{chunk-VVMLMKYZ.cjs.map → chunk-DWY25VLP.cjs.map} +1 -1
- package/dist/{chunk-A4XXV2C6.js → chunk-E2FFG33C.js} +5 -72
- package/dist/chunk-E2FFG33C.js.map +1 -0
- package/dist/{chunk-R4AMI7KD.cjs → chunk-E4IUN3JB.cjs} +15 -15
- package/dist/{chunk-R4AMI7KD.cjs.map → chunk-E4IUN3JB.cjs.map} +1 -1
- package/dist/{chunk-TKDWD3MU.cjs → chunk-ECHGWE47.cjs} +4 -4
- package/dist/{chunk-TKDWD3MU.cjs.map → chunk-ECHGWE47.cjs.map} +1 -1
- package/dist/{chunk-KL7E244K.cjs → chunk-ECW2MLEW.cjs} +4 -4
- package/dist/{chunk-KL7E244K.cjs.map → chunk-ECW2MLEW.cjs.map} +1 -1
- package/dist/{chunk-EDI7DBWO.js → chunk-ET6PHZRX.js} +3 -3
- package/dist/{chunk-EDI7DBWO.js.map → chunk-ET6PHZRX.js.map} +1 -1
- package/dist/{chunk-HLK35TD7.cjs → chunk-FRUBE44B.cjs} +24 -24
- package/dist/{chunk-HLK35TD7.cjs.map → chunk-FRUBE44B.cjs.map} +1 -1
- package/dist/{chunk-SRIF7HMN.cjs → chunk-FWBSDQZ7.cjs} +5 -5
- package/dist/{chunk-SRIF7HMN.cjs.map → chunk-FWBSDQZ7.cjs.map} +1 -1
- package/dist/{chunk-XKBJT7WI.cjs → chunk-G2Q3ZC6C.cjs} +4 -4
- package/dist/{chunk-XKBJT7WI.cjs.map → chunk-G2Q3ZC6C.cjs.map} +1 -1
- package/dist/{chunk-4MWBKBS4.cjs → chunk-G4XUXSRN.cjs} +12 -12
- package/dist/{chunk-4MWBKBS4.cjs.map → chunk-G4XUXSRN.cjs.map} +1 -1
- package/dist/{chunk-VUDH4D2M.js → chunk-GIRD3RWH.js} +282 -276
- package/dist/chunk-GIRD3RWH.js.map +1 -0
- package/dist/{chunk-BT6DFWZB.cjs → chunk-HIQFVHC6.cjs} +9 -9
- package/dist/{chunk-BT6DFWZB.cjs.map → chunk-HIQFVHC6.cjs.map} +1 -1
- package/dist/{chunk-UWEALKAN.js → chunk-HWNVAUK4.js} +3 -3
- package/dist/{chunk-UWEALKAN.js.map → chunk-HWNVAUK4.js.map} +1 -1
- package/dist/{chunk-3VKTDQMX.cjs → chunk-I53ZQHU6.cjs} +4 -4
- package/dist/{chunk-3VKTDQMX.cjs.map → chunk-I53ZQHU6.cjs.map} +1 -1
- package/dist/{chunk-A3MHE2MQ.cjs → chunk-IHFNRNTJ.cjs} +8 -8
- package/dist/{chunk-A3MHE2MQ.cjs.map → chunk-IHFNRNTJ.cjs.map} +1 -1
- package/dist/{chunk-UZBA6YYP.cjs → chunk-INSFS5GT.cjs} +540 -534
- package/dist/chunk-INSFS5GT.cjs.map +1 -0
- package/dist/{chunk-KCZW75PI.js → chunk-IVSD7L22.js} +12 -4
- package/dist/chunk-IVSD7L22.js.map +1 -0
- package/dist/{chunk-JCXIDFRI.js → chunk-J3UK2GMN.js} +3 -3
- package/dist/{chunk-JCXIDFRI.js.map → chunk-J3UK2GMN.js.map} +1 -1
- package/dist/{chunk-IBDE4R5L.cjs → chunk-J6T5LWJ4.cjs} +10 -9
- package/dist/chunk-J6T5LWJ4.cjs.map +1 -0
- package/dist/{chunk-AOZYORH7.js → chunk-JRLXEYR4.js} +21 -5
- package/dist/chunk-JRLXEYR4.js.map +1 -0
- package/dist/{chunk-EUB7YLU2.js → chunk-JZUPMTJY.js} +3 -3
- package/dist/{chunk-EUB7YLU2.js.map → chunk-JZUPMTJY.js.map} +1 -1
- package/dist/{chunk-ZK3BJ4XQ.js → chunk-KE6XKRLQ.js} +3 -3
- package/dist/{chunk-ZK3BJ4XQ.js.map → chunk-KE6XKRLQ.js.map} +1 -1
- package/dist/{chunk-4NVV3GRU.js → chunk-KGRIHEDT.js} +5 -5
- package/dist/{chunk-4NVV3GRU.js.map → chunk-KGRIHEDT.js.map} +1 -1
- package/dist/{chunk-EE24WJJR.js → chunk-KWUNN5J2.js} +5 -5
- package/dist/{chunk-EE24WJJR.js.map → chunk-KWUNN5J2.js.map} +1 -1
- package/dist/{chunk-LGCEYEU2.js → chunk-KX7JV5KM.js} +3 -3
- package/dist/{chunk-LGCEYEU2.js.map → chunk-KX7JV5KM.js.map} +1 -1
- package/dist/{chunk-2K7PRHDB.cjs → chunk-LALG2K33.cjs} +8 -8
- package/dist/{chunk-2K7PRHDB.cjs.map → chunk-LALG2K33.cjs.map} +1 -1
- package/dist/{chunk-4WIJSKFA.js → chunk-LGILIGV3.js} +3 -3
- package/dist/{chunk-4WIJSKFA.js.map → chunk-LGILIGV3.js.map} +1 -1
- package/dist/{chunk-7QDTZJRV.js → chunk-LJX2SQV2.js} +6 -6
- package/dist/{chunk-7QDTZJRV.js.map → chunk-LJX2SQV2.js.map} +1 -1
- package/dist/{chunk-ACHGT3D2.js → chunk-MC5EINBV.js} +44 -8
- package/dist/chunk-MC5EINBV.js.map +1 -0
- package/dist/{chunk-M6UUTNDT.js → chunk-ML5A5DOJ.js} +4 -4
- package/dist/{chunk-M6UUTNDT.js.map → chunk-ML5A5DOJ.js.map} +1 -1
- package/dist/{chunk-3MUIYMUG.cjs → chunk-N475ETD6.cjs} +17 -17
- package/dist/{chunk-3MUIYMUG.cjs.map → chunk-N475ETD6.cjs.map} +1 -1
- package/dist/chunk-OXNYIMZZ.js +31 -0
- package/dist/chunk-OXNYIMZZ.js.map +1 -0
- package/dist/{chunk-YCHC45BY.js → chunk-PI4RO4GR.js} +3 -3
- package/dist/{chunk-YCHC45BY.js.map → chunk-PI4RO4GR.js.map} +1 -1
- package/dist/chunk-QKE556YD.js +197 -0
- package/dist/chunk-QKE556YD.js.map +1 -0
- package/dist/{chunk-FV3YEMQ7.js → chunk-RP5HQVLD.js} +13 -14
- package/dist/chunk-RP5HQVLD.js.map +1 -0
- package/dist/chunk-SCFW5MJZ.js +100 -0
- package/dist/chunk-SCFW5MJZ.js.map +1 -0
- package/dist/{chunk-ZYOHF37V.js → chunk-SG5ZWT6C.js} +3 -3
- package/dist/{chunk-ZYOHF37V.js.map → chunk-SG5ZWT6C.js.map} +1 -1
- package/dist/{chunk-ED7ANP6W.cjs → chunk-TIMPJL5V.cjs} +4 -4
- package/dist/{chunk-ED7ANP6W.cjs.map → chunk-TIMPJL5V.cjs.map} +1 -1
- package/dist/{chunk-3XKVRLR2.js → chunk-TOTP24P6.js} +4 -4
- package/dist/{chunk-3XKVRLR2.js.map → chunk-TOTP24P6.js.map} +1 -1
- package/dist/{chunk-PG3QQLWS.cjs → chunk-USZTVNUQ.cjs} +5 -5
- package/dist/{chunk-PG3QQLWS.cjs.map → chunk-USZTVNUQ.cjs.map} +1 -1
- package/dist/{chunk-XS7SKY2F.js → chunk-V2RBCCN5.js} +3 -3
- package/dist/chunk-V2RBCCN5.js.map +1 -0
- package/dist/{chunk-D3SJLXYZ.cjs → chunk-VJYSQXN6.cjs} +10 -10
- package/dist/{chunk-D3SJLXYZ.cjs.map → chunk-VJYSQXN6.cjs.map} +1 -1
- package/dist/{chunk-MXRBNJ6D.cjs → chunk-W4WKVOOQ.cjs} +11 -11
- package/dist/{chunk-MXRBNJ6D.cjs.map → chunk-W4WKVOOQ.cjs.map} +1 -1
- package/dist/chunk-XYOHKCYG.cjs +109 -0
- package/dist/chunk-XYOHKCYG.cjs.map +1 -0
- package/dist/{chunk-UD2T7ISG.js → chunk-YP67XZES.js} +4 -4
- package/dist/{chunk-UD2T7ISG.js.map → chunk-YP67XZES.js.map} +1 -1
- package/dist/{chunk-HHUDNTZC.js → chunk-YRXY2A5L.js} +4 -4
- package/dist/{chunk-HHUDNTZC.js.map → chunk-YRXY2A5L.js.map} +1 -1
- package/dist/{chunk-6OKPJZMX.cjs → chunk-Z2CUEBXV.cjs} +25 -9
- package/dist/chunk-Z2CUEBXV.cjs.map +1 -0
- package/dist/{chunk-HI6G3SNY.js → chunk-ZYB6B7QJ.js} +72 -125
- package/dist/chunk-ZYB6B7QJ.js.map +1 -0
- package/dist/compact-session-PYEC3NZV.js +18 -0
- package/dist/{compact-session-RR3ILTES.js.map → compact-session-PYEC3NZV.js.map} +1 -1
- package/dist/compact-session-VVT6IBJG.cjs +55 -0
- package/dist/{compact-session-YOWJJPPB.cjs.map → compact-session-VVT6IBJG.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-2FZSC6VQ.cjs +22 -0
- package/dist/{context-Q6ISOCN2.cjs.map → context-2FZSC6VQ.cjs.map} +1 -1
- package/dist/context-ATJJAFOS.js +5 -0
- package/dist/{context-ZDBBPIHY.js.map → context-ATJJAFOS.js.map} +1 -1
- package/dist/{cron-ChQ6zcW2.d.ts → cron-Bx7tzm5R.d.ts} +54 -2
- package/dist/{cron-BdXOZco9.d.cts → cron-D-DVjGQe.d.cts} +54 -2
- package/dist/cron.cjs +33 -29
- package/dist/cron.d.cts +3 -3
- package/dist/cron.d.ts +3 -3
- package/dist/cron.js +32 -28
- package/dist/{errors-BUVjJGJA.d.cts → errors-DMY-gLSK.d.cts} +1 -1
- package/dist/{errors-CZIUKLHt.d.ts → errors-DjBQ4Tn8.d.ts} +1 -1
- 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 +41 -36
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +37 -32
- package/dist/eval.js.map +1 -1
- package/dist/{executor-DPCBSI35.cjs → executor-BMRICN46.cjs} +26 -25
- package/dist/executor-BMRICN46.cjs.map +1 -0
- package/dist/{executor-ASDDIM2X.js → executor-T65PPOPT.js} +10 -9
- package/dist/executor-T65PPOPT.js.map +1 -0
- package/dist/filesystem/index.cjs +7 -7
- package/dist/filesystem/index.js +3 -3
- package/dist/fs-session-store-J5MCFFUM.cjs +19 -0
- package/dist/{fs-session-store-T5ZLQX42.cjs.map → fs-session-store-J5MCFFUM.cjs.map} +1 -1
- package/dist/fs-session-store-O6FNHECD.js +10 -0
- package/dist/{fs-session-store-K5QUPNJZ.js.map → fs-session-store-O6FNHECD.js.map} +1 -1
- package/dist/generate-object-UF6WIZLF.cjs +20 -0
- package/dist/{generate-object-F56VIZ6U.cjs.map → generate-object-UF6WIZLF.cjs.map} +1 -1
- package/dist/generate-object-XDCBYVK3.js +7 -0
- package/dist/{generate-object-LPSO6GVW.js.map → generate-object-XDCBYVK3.js.map} +1 -1
- package/dist/index-manager-N7RQYUKT.cjs +20 -0
- package/dist/{index-manager-DBJ55ZSO.cjs.map → index-manager-N7RQYUKT.cjs.map} +1 -1
- package/dist/index-manager-ZVZUHPP7.js +11 -0
- package/dist/{index-manager-F2H2RCZU.js.map → index-manager-ZVZUHPP7.js.map} +1 -1
- package/dist/index.cjs +138 -132
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +167 -9
- package/dist/index.d.ts +167 -9
- package/dist/index.js +47 -44
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-RKNLUE72.js → inject-session-GQMTDZUN.js} +7 -6
- package/dist/inject-session-GQMTDZUN.js.map +1 -0
- package/dist/{inject-session-25EC74WV.cjs → inject-session-LFCYVSLJ.cjs} +9 -8
- package/dist/inject-session-LFCYVSLJ.cjs.map +1 -0
- package/dist/internal/agent-loop/loop-thinking-steps.d.ts +28 -0
- package/dist/internal/agent-loop/message-builders.d.ts +12 -3
- package/dist/internal/diagnostics.d.ts +24 -11
- package/dist/internal/llm/anthropic-shared.d.ts +4 -4
- package/dist/internal/llm/types.d.ts +49 -9
- package/dist/internal/local-agent/mcp-pool.d.ts +7 -3
- package/dist/internal/memory/adapters/azure-openai-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/catalog.d.cts +1 -0
- package/dist/internal/memory/adapters/cohere-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/deepinfra-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/gemini-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/index.cjs +28 -0
- package/dist/internal/memory/adapters/index.cjs.map +1 -0
- package/dist/internal/memory/adapters/index.d.cts +16 -0
- package/dist/internal/memory/adapters/index.d.ts +16 -0
- package/dist/internal/memory/adapters/index.js +11 -0
- package/dist/internal/memory/adapters/index.js.map +1 -0
- package/dist/internal/memory/adapters/jina-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/mistral-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/ollama-embedding.d.cts +34 -0
- package/dist/internal/memory/adapters/openai-compatible.d.cts +51 -0
- package/dist/internal/memory/adapters/openai-compatible.d.ts +28 -0
- package/dist/internal/memory/adapters/openai-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/openrouter-embedding.d.cts +2 -0
- package/dist/internal/memory/adapters/voyage-embedding.d.cts +2 -0
- package/dist/internal/memory/dreaming/diary.d.ts +4 -0
- package/dist/internal/memory/dreaming/phases.d.ts +15 -0
- package/dist/internal/memory/dreaming/run.d.ts +10 -0
- package/dist/internal/memory/migrate-sqlite-to-lance.d.ts +15 -0
- package/dist/internal/memory/sdk-memory-peer-loader.d.ts +21 -0
- package/dist/internal/persistence/index.cjs +25 -25
- package/dist/internal/persistence/index.js +6 -6
- package/dist/internal/persistence/session-transcript.d.cts +6 -0
- package/dist/internal/persistence/session-transcript.d.ts +6 -0
- package/dist/internal/runtime/concurrency/subagent-credentials.d.ts +35 -0
- package/dist/internal/security/index.cjs +13 -13
- package/dist/internal/security/index.js +3 -3
- package/dist/internal/session/agent-session-store.d.ts +1 -0
- package/dist/internal/session/session-types.d.ts +6 -1
- package/dist/judge-call-NA2G6ZMJ.js +5 -0
- package/dist/{judge-call-3S3T6O2Z.js.map → judge-call-NA2G6ZMJ.js.map} +1 -1
- package/dist/judge-call-U2D33JOW.cjs +22 -0
- package/dist/{judge-call-XIQJ5GIE.cjs.map → judge-call-U2D33JOW.cjs.map} +1 -1
- package/dist/models.cjs +20 -20
- package/dist/models.js +5 -5
- package/dist/path-safety.cjs +10 -10
- package/dist/path-safety.js +3 -3
- package/dist/persistence.cjs +35 -35
- package/dist/persistence.js +7 -7
- package/dist/project.cjs +5 -5
- package/dist/project.js +3 -3
- package/dist/registry-CAS6Y5ZY.js +9 -0
- package/dist/{registry-KMI5RA22.js.map → registry-CAS6Y5ZY.js.map} +1 -1
- package/dist/registry-JSDI4WKA.cjs +46 -0
- package/dist/{registry-BA3SLAN7.cjs.map → registry-JSDI4WKA.cjs.map} +1 -1
- package/dist/retry.cjs +4 -4
- package/dist/retry.js +3 -3
- package/dist/{run-vJHg2eGw.d.cts → run-i2-fUohR.d.cts} +16 -0
- package/dist/{run-vJHg2eGw.d.ts → run-i2-fUohR.d.ts} +16 -0
- 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.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-3B52DKTG.js +5 -0
- package/dist/{session-transcript-MMPWCESR.js.map → session-transcript-3B52DKTG.js.map} +1 -1
- package/dist/session-transcript-H7NUFXXM.cjs +50 -0
- package/dist/{session-transcript-DFGX6WNL.cjs.map → session-transcript-H7NUFXXM.cjs.map} +1 -1
- package/dist/skills.cjs +7 -7
- package/dist/skills.js +5 -5
- package/dist/stream-object-4FDU76YW.cjs +20 -0
- package/dist/{stream-object-YPXZ4F5P.cjs.map → stream-object-4FDU76YW.cjs.map} +1 -1
- package/dist/stream-object-HWDEEQN4.js +7 -0
- package/dist/{stream-object-AFERZU63.js.map → stream-object-HWDEEQN4.js.map} +1 -1
- package/dist/subagents-loader-A4W6C3QP.cjs +15 -0
- package/dist/subagents-loader-A4W6C3QP.cjs.map +1 -0
- package/dist/subagents-loader-X33KH2SZ.js +6 -0
- package/dist/subagents-loader-X33KH2SZ.js.map +1 -0
- package/dist/subagents-loader.cjs +6 -6
- package/dist/subagents-loader.d.cts +2 -2
- package/dist/subagents-loader.d.ts +2 -2
- package/dist/subagents-loader.js +4 -4
- 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/agent.d.ts +68 -3
- package/dist/types/conversation.d.ts +7 -0
- package/dist/types/messages.d.ts +9 -0
- package/dist/types/session-message.d.ts +59 -0
- package/dist/types/workflow.d.ts +36 -0
- package/dist/workflow.cjs +27 -27
- package/dist/workflow.d.cts +17 -1
- package/dist/workflow.d.ts +17 -1
- package/dist/workflow.js +6 -6
- package/docs/harness-capability-map.md +22 -0
- package/package.json +11 -1
- package/dist/agent-2GZC4W2A.cjs +0 -51
- package/dist/agent-3H3UKD6U.js +0 -42
- package/dist/batch-LXSALQC3.js.map +0 -1
- package/dist/batch-NZGN6SFV.cjs.map +0 -1
- package/dist/chunk-3BSP7LSG.cjs.map +0 -1
- package/dist/chunk-4APWS2YF.js.map +0 -1
- package/dist/chunk-6OKPJZMX.cjs.map +0 -1
- package/dist/chunk-6ZGD7R27.cjs.map +0 -1
- package/dist/chunk-A4XXV2C6.js.map +0 -1
- package/dist/chunk-A6GXYF2Q.js.map +0 -1
- package/dist/chunk-ACHGT3D2.js.map +0 -1
- package/dist/chunk-AOZYORH7.js.map +0 -1
- package/dist/chunk-BE3W4HYV.cjs.map +0 -1
- package/dist/chunk-BUGVDCI5.cjs.map +0 -1
- package/dist/chunk-FV3YEMQ7.js.map +0 -1
- package/dist/chunk-G2F67XUR.cjs.map +0 -1
- package/dist/chunk-G7X2Y7Y2.cjs.map +0 -1
- package/dist/chunk-HI6G3SNY.js.map +0 -1
- package/dist/chunk-IBDE4R5L.cjs.map +0 -1
- package/dist/chunk-KCZW75PI.js.map +0 -1
- package/dist/chunk-OFWU6UKF.cjs.map +0 -1
- package/dist/chunk-UZBA6YYP.cjs.map +0 -1
- package/dist/chunk-VUDH4D2M.js.map +0 -1
- package/dist/chunk-XS7SKY2F.js.map +0 -1
- package/dist/compact-session-RR3ILTES.js +0 -17
- package/dist/compact-session-YOWJJPPB.cjs +0 -54
- package/dist/context-Q6ISOCN2.cjs +0 -22
- package/dist/context-ZDBBPIHY.js +0 -5
- package/dist/executor-ASDDIM2X.js.map +0 -1
- package/dist/executor-DPCBSI35.cjs.map +0 -1
- package/dist/fs-session-store-K5QUPNJZ.js +0 -10
- package/dist/fs-session-store-T5ZLQX42.cjs +0 -19
- package/dist/generate-object-F56VIZ6U.cjs +0 -20
- package/dist/generate-object-LPSO6GVW.js +0 -7
- package/dist/index-manager-DBJ55ZSO.cjs +0 -19
- package/dist/index-manager-F2H2RCZU.js +0 -10
- package/dist/inject-session-25EC74WV.cjs.map +0 -1
- package/dist/inject-session-RKNLUE72.js.map +0 -1
- package/dist/judge-call-3S3T6O2Z.js +0 -5
- package/dist/judge-call-XIQJ5GIE.cjs +0 -22
- package/dist/registry-BA3SLAN7.cjs +0 -46
- package/dist/registry-KMI5RA22.js +0 -9
- package/dist/session-transcript-DFGX6WNL.cjs +0 -50
- package/dist/session-transcript-MMPWCESR.js +0 -5
- package/dist/stream-object-AFERZU63.js +0 -7
- package/dist/stream-object-YPXZ4F5P.cjs +0 -20
package/dist/persistence.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkPNVDQL5Y_cjs = require('./chunk-PNVDQL5Y.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
var chunkI53ZQHU6_cjs = require('./chunk-I53ZQHU6.cjs');
|
|
5
|
+
var chunkZ2CUEBXV_cjs = require('./chunk-Z2CUEBXV.cjs');
|
|
6
|
+
var chunkDMTZ3FII_cjs = require('./chunk-DMTZ3FII.cjs');
|
|
7
|
+
var chunk75DSEWTJ_cjs = require('./chunk-75DSEWTJ.cjs');
|
|
7
8
|
var chunkYLQQX5W2_cjs = require('./chunk-YLQQX5W2.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
require('./chunk-BE3W4HYV.cjs');
|
|
9
|
+
var chunkDGLLVCNB_cjs = require('./chunk-DGLLVCNB.cjs');
|
|
10
|
+
var chunkIHFNRNTJ_cjs = require('./chunk-IHFNRNTJ.cjs');
|
|
11
|
+
require('./chunk-BCQ3E2ZG.cjs');
|
|
12
12
|
var fs = require('fs');
|
|
13
13
|
|
|
14
|
-
var LiveSessionError = class extends
|
|
14
|
+
var LiveSessionError = class extends chunkIHFNRNTJ_cjs.TheokitAgentError {
|
|
15
15
|
constructor(path) {
|
|
16
16
|
super(
|
|
17
17
|
`refusing to write over a live session transcript: ${path}. Fork to a new id instead \u2014 the live pointer, the most recent transcript and any active registry entry are never overwritten (audit-trail rotation, M60).`,
|
|
@@ -83,79 +83,79 @@ Object.defineProperty(exports, "PersistenceSchema", {
|
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "SessionBusyError", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkI53ZQHU6_cjs.SessionBusyError; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "acquireSessionWriter", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkI53ZQHU6_cjs.acquireSessionWriter; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "sessionHasWriter", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkI53ZQHU6_cjs.sessionHasWriter; }
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "encodeProjectDir", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () { return chunkZ2CUEBXV_cjs.encodeProjectDir; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "transcriptPath", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunkZ2CUEBXV_cjs.transcriptPath; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "transcriptRoot", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunkZ2CUEBXV_cjs.transcriptRoot; }
|
|
95
107
|
});
|
|
96
108
|
Object.defineProperty(exports, "JsonlParseError", {
|
|
97
109
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkDMTZ3FII_cjs.JsonlParseError; }
|
|
99
111
|
});
|
|
100
112
|
Object.defineProperty(exports, "appendJsonl", {
|
|
101
113
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkDMTZ3FII_cjs.appendJsonl; }
|
|
103
115
|
});
|
|
104
116
|
Object.defineProperty(exports, "loadJsonl", {
|
|
105
117
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkDMTZ3FII_cjs.loadJsonl; }
|
|
107
119
|
});
|
|
108
120
|
Object.defineProperty(exports, "readJsonlIds", {
|
|
109
121
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkDMTZ3FII_cjs.readJsonlIds; }
|
|
111
123
|
});
|
|
112
124
|
Object.defineProperty(exports, "withFileLock", {
|
|
113
125
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkDMTZ3FII_cjs.withFileLock; }
|
|
115
127
|
});
|
|
116
128
|
Object.defineProperty(exports, "applyWalWithFallback", {
|
|
117
129
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk75DSEWTJ_cjs.applyWalWithFallback; }
|
|
119
131
|
});
|
|
120
132
|
Object.defineProperty(exports, "isCorruptionError", {
|
|
121
133
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk75DSEWTJ_cjs.isCorruptionError; }
|
|
123
135
|
});
|
|
124
136
|
Object.defineProperty(exports, "openSqliteResilient", {
|
|
125
137
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk75DSEWTJ_cjs.openSqliteResilient; }
|
|
127
139
|
});
|
|
128
140
|
Object.defineProperty(exports, "sanitizeFts5Query", {
|
|
129
141
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunk75DSEWTJ_cjs.sanitizeFts5Query; }
|
|
131
143
|
});
|
|
132
144
|
Object.defineProperty(exports, "withCwdMutex", {
|
|
133
145
|
enumerable: true,
|
|
134
146
|
get: function () { return chunkYLQQX5W2_cjs.withCwdMutex; }
|
|
135
147
|
});
|
|
136
|
-
Object.defineProperty(exports, "encodeProjectDir", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () { return chunk6OKPJZMX_cjs.encodeProjectDir; }
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(exports, "transcriptPath", {
|
|
141
|
-
enumerable: true,
|
|
142
|
-
get: function () { return chunk6OKPJZMX_cjs.transcriptPath; }
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, "transcriptRoot", {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function () { return chunk6OKPJZMX_cjs.transcriptRoot; }
|
|
147
|
-
});
|
|
148
148
|
Object.defineProperty(exports, "atomicWriteJson", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkDGLLVCNB_cjs.atomicWriteJson; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "atomicWriteText", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkDGLLVCNB_cjs.atomicWriteText; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "replaceFileAtomic", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkDGLLVCNB_cjs.replaceFileAtomic; }
|
|
159
159
|
});
|
|
160
160
|
exports.LiveSessionError = LiveSessionError;
|
|
161
161
|
exports.forkTranscript = forkTranscript;
|
package/dist/persistence.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { PersistenceSchema } from './chunk-CAH3G4IS.js';
|
|
2
|
-
export { SessionBusyError, acquireSessionWriter, sessionHasWriter } from './chunk-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
2
|
+
export { SessionBusyError, acquireSessionWriter, sessionHasWriter } from './chunk-ET6PHZRX.js';
|
|
3
|
+
export { encodeProjectDir, transcriptPath, transcriptRoot } from './chunk-JRLXEYR4.js';
|
|
4
|
+
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from './chunk-BQDUEG4C.js';
|
|
5
|
+
export { applyWalWithFallback, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from './chunk-AECV3G5Z.js';
|
|
5
6
|
export { withCwdMutex } from './chunk-2XLKLVVR.js';
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import './chunk-KCZW75PI.js';
|
|
7
|
+
export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from './chunk-KX7JV5KM.js';
|
|
8
|
+
import { TheokitAgentError } from './chunk-SG5ZWT6C.js';
|
|
9
|
+
import './chunk-IVSD7L22.js';
|
|
10
10
|
import { readFileSync, openSync, writeSync, closeSync, statSync, readSync } from 'fs';
|
|
11
11
|
|
|
12
12
|
var LiveSessionError = class extends TheokitAgentError {
|
package/dist/project.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkYPEPCZHF_cjs = require('./chunk-YPEPCZHF.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var chunkDGLLVCNB_cjs = require('./chunk-DGLLVCNB.cjs');
|
|
5
|
+
var chunkIHFNRNTJ_cjs = require('./chunk-IHFNRNTJ.cjs');
|
|
6
|
+
require('./chunk-BCQ3E2ZG.cjs');
|
|
7
7
|
var promises = require('fs/promises');
|
|
8
8
|
var path = require('path');
|
|
9
9
|
|
|
@@ -31,12 +31,12 @@ function reduceContent(files, scope) {
|
|
|
31
31
|
async function writeProjectInstructions(cwd, content, options) {
|
|
32
32
|
const filename = options?.filename ?? DEFAULT_FILENAME;
|
|
33
33
|
if (!chunkYPEPCZHF_cjs.isSafePattern(filename)) {
|
|
34
|
-
throw new
|
|
34
|
+
throw new chunkIHFNRNTJ_cjs.ConfigurationError(
|
|
35
35
|
`writeProjectInstructions: unsafe filename ${JSON.stringify(filename)} (no path traversal, separators, or absolute paths)`,
|
|
36
36
|
{ code: "unsafe_filename" }
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
await
|
|
39
|
+
await chunkDGLLVCNB_cjs.replaceFileAtomic(path.join(cwd, filename), content);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
exports.readProjectInstructions = readProjectInstructions;
|
package/dist/project.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { walkUpForFile, isSafePattern } from './chunk-UJ7IQJAG.js';
|
|
2
|
-
import { replaceFileAtomic } from './chunk-
|
|
3
|
-
import { ConfigurationError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
import { replaceFileAtomic } from './chunk-KX7JV5KM.js';
|
|
3
|
+
import { ConfigurationError } from './chunk-SG5ZWT6C.js';
|
|
4
|
+
import './chunk-IVSD7L22.js';
|
|
5
5
|
import { readFile } from 'fs/promises';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { __getSubscribersCountForTests, __resetTaskRegistryForTests, cancel, configure, get, list, submit, subscribe } from './chunk-LJX2SQV2.js';
|
|
2
|
+
import './chunk-K2BQQ445.js';
|
|
3
|
+
import './chunk-PI4RO4GR.js';
|
|
4
|
+
import './chunk-6EEYRFJC.js';
|
|
5
|
+
import './chunk-KX7JV5KM.js';
|
|
6
|
+
import './chunk-SG5ZWT6C.js';
|
|
7
|
+
import './chunk-IVSD7L22.js';
|
|
8
|
+
//# sourceMappingURL=registry-CAS6Y5ZY.js.map
|
|
9
|
+
//# sourceMappingURL=registry-CAS6Y5ZY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-CAS6Y5ZY.js"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkN475ETD6_cjs = require('./chunk-N475ETD6.cjs');
|
|
4
|
+
require('./chunk-BUUUWQMB.cjs');
|
|
5
|
+
require('./chunk-TIMPJL5V.cjs');
|
|
6
|
+
require('./chunk-DWY25VLP.cjs');
|
|
7
|
+
require('./chunk-DGLLVCNB.cjs');
|
|
8
|
+
require('./chunk-IHFNRNTJ.cjs');
|
|
9
|
+
require('./chunk-BCQ3E2ZG.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "__getSubscribersCountForTests", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkN475ETD6_cjs.__getSubscribersCountForTests; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "__resetTaskRegistryForTests", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkN475ETD6_cjs.__resetTaskRegistryForTests; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "cancel", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkN475ETD6_cjs.cancel; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "configure", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkN475ETD6_cjs.configure; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "get", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkN475ETD6_cjs.get; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "list", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkN475ETD6_cjs.list; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "submit", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkN475ETD6_cjs.submit; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "subscribe", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkN475ETD6_cjs.subscribe; }
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=registry-JSDI4WKA.cjs.map
|
|
46
|
+
//# sourceMappingURL=registry-JSDI4WKA.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"registry-JSDI4WKA.cjs"}
|
package/dist/retry.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkUSZTVNUQ_cjs = require('./chunk-USZTVNUQ.cjs');
|
|
4
|
+
require('./chunk-IHFNRNTJ.cjs');
|
|
5
|
+
require('./chunk-BCQ3E2ZG.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "Retry", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkUSZTVNUQ_cjs.Retry; }
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=retry.cjs.map
|
|
14
14
|
//# sourceMappingURL=retry.cjs.map
|
package/dist/retry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Retry } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { Retry } from './chunk-4JSZYSGW.js';
|
|
2
|
+
import './chunk-SG5ZWT6C.js';
|
|
3
|
+
import './chunk-IVSD7L22.js';
|
|
4
4
|
//# sourceMappingURL=retry.js.map
|
|
5
5
|
//# sourceMappingURL=retry.js.map
|
|
@@ -633,6 +633,13 @@ interface AssistantMessage {
|
|
|
633
633
|
interface ThinkingMessage {
|
|
634
634
|
text: string;
|
|
635
635
|
thinkingDurationMs?: number;
|
|
636
|
+
/**
|
|
637
|
+
* theokit#122 — the provider's cryptographic signature for this thinking block, when it issued
|
|
638
|
+
* one. Persisted with the block so a resumed conversation can replay it byte-identically;
|
|
639
|
+
* Anthropic rejects a modified or unsigned thinking block with
|
|
640
|
+
* `400 "thinking blocks cannot be modified"`.
|
|
641
|
+
*/
|
|
642
|
+
signature?: string;
|
|
636
643
|
}
|
|
637
644
|
/**
|
|
638
645
|
* Shell command executed during a run.
|
|
@@ -885,6 +892,15 @@ interface SDKThinkingMessage {
|
|
|
885
892
|
run_id: string;
|
|
886
893
|
text: string;
|
|
887
894
|
thinking_duration_ms?: number;
|
|
895
|
+
/**
|
|
896
|
+
* theokit#122 — the provider's cryptographic signature for this thinking block, when it issued
|
|
897
|
+
* one. Anthropic requires a resumed conversation to replay each thinking block WITH its
|
|
898
|
+
* signature; without it the next request fails with `400 "thinking blocks cannot be modified"`,
|
|
899
|
+
* which made an extended-thinking session unresumable.
|
|
900
|
+
*
|
|
901
|
+
* Absent for providers that stream reasoning text unsigned (the OpenAI-compatible wire).
|
|
902
|
+
*/
|
|
903
|
+
signature?: string;
|
|
888
904
|
}
|
|
889
905
|
/**
|
|
890
906
|
* Tool invocation lifecycle event. Emitted at start with `args`, then again on
|
|
@@ -633,6 +633,13 @@ interface AssistantMessage {
|
|
|
633
633
|
interface ThinkingMessage {
|
|
634
634
|
text: string;
|
|
635
635
|
thinkingDurationMs?: number;
|
|
636
|
+
/**
|
|
637
|
+
* theokit#122 — the provider's cryptographic signature for this thinking block, when it issued
|
|
638
|
+
* one. Persisted with the block so a resumed conversation can replay it byte-identically;
|
|
639
|
+
* Anthropic rejects a modified or unsigned thinking block with
|
|
640
|
+
* `400 "thinking blocks cannot be modified"`.
|
|
641
|
+
*/
|
|
642
|
+
signature?: string;
|
|
636
643
|
}
|
|
637
644
|
/**
|
|
638
645
|
* Shell command executed during a run.
|
|
@@ -885,6 +892,15 @@ interface SDKThinkingMessage {
|
|
|
885
892
|
run_id: string;
|
|
886
893
|
text: string;
|
|
887
894
|
thinking_duration_ms?: number;
|
|
895
|
+
/**
|
|
896
|
+
* theokit#122 — the provider's cryptographic signature for this thinking block, when it issued
|
|
897
|
+
* one. Anthropic requires a resumed conversation to replay each thinking block WITH its
|
|
898
|
+
* signature; without it the next request fails with `400 "thinking blocks cannot be modified"`,
|
|
899
|
+
* which made an extended-thinking session unresumable.
|
|
900
|
+
*
|
|
901
|
+
* Absent for providers that stream reasoning text unsigned (the OpenAI-compatible wire).
|
|
902
|
+
*/
|
|
903
|
+
signature?: string;
|
|
888
904
|
}
|
|
889
905
|
/**
|
|
890
906
|
* Tool invocation lifecycle event. Emitted at start with `args`, then again on
|
package/dist/sandbox/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkS7OEXQMI_cjs = require('../chunk-S7OEXQMI.cjs');
|
|
4
4
|
require('../chunk-WPZTYOUX.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkIHFNRNTJ_cjs = require('../chunk-IHFNRNTJ.cjs');
|
|
6
|
+
var chunkBCQ3E2ZG_cjs = require('../chunk-BCQ3E2ZG.cjs');
|
|
7
7
|
var child_process = require('child_process');
|
|
8
8
|
var fs = require('fs');
|
|
9
9
|
var path = require('path');
|
|
@@ -319,7 +319,7 @@ function seccompPathForArch(arch, warn) {
|
|
|
319
319
|
var seccompFilterPath;
|
|
320
320
|
function restrictedSeccompPath() {
|
|
321
321
|
if (seccompFilterPath !== void 0) return seccompFilterPath ?? void 0;
|
|
322
|
-
const path2 = seccompPathForArch(process.arch, (m) => console.warn(
|
|
322
|
+
const path2 = seccompPathForArch(process.arch, (m) => console.warn(chunkBCQ3E2ZG_cjs.redactSecrets(m)));
|
|
323
323
|
seccompFilterPath = path2 ?? null;
|
|
324
324
|
return path2;
|
|
325
325
|
}
|
|
@@ -344,7 +344,7 @@ function createSandboxBackend(opts) {
|
|
|
344
344
|
if (!detection.ok) {
|
|
345
345
|
if (!warnedUnavailable) {
|
|
346
346
|
warnedUnavailable = true;
|
|
347
|
-
const warn = opts.warn ?? ((m) => console.warn(
|
|
347
|
+
const warn = opts.warn ?? ((m) => console.warn(chunkBCQ3E2ZG_cjs.redactSecrets(m)));
|
|
348
348
|
warn(
|
|
349
349
|
`[sandbox] OS-level enforcement unavailable (${detection.reason}) \u2014 falling back to tool-level gating only (sandbox_mode=${opts.mode}).`
|
|
350
350
|
);
|
|
@@ -366,7 +366,7 @@ function decideConfinement(opts) {
|
|
|
366
366
|
if (detection.ok) return detection.bin;
|
|
367
367
|
if (!interactiveWarned) {
|
|
368
368
|
interactiveWarned = true;
|
|
369
|
-
const warn = opts.warn ?? ((m) => console.warn(
|
|
369
|
+
const warn = opts.warn ?? ((m) => console.warn(chunkBCQ3E2ZG_cjs.redactSecrets(m)));
|
|
370
370
|
warn(
|
|
371
371
|
`[sandbox] OS-level enforcement unavailable (${detection.reason}) \u2014 interactive session runs WITHOUT kernel confinement (sandbox_mode=${opts.mode}).`
|
|
372
372
|
);
|
|
@@ -392,7 +392,7 @@ function interactiveWrapCommand(opts) {
|
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
// src/sandbox/provision.ts
|
|
395
|
-
var RepoProvisionError = class extends
|
|
395
|
+
var RepoProvisionError = class extends chunkIHFNRNTJ_cjs.TheokitAgentError {
|
|
396
396
|
constructor(instanceId, message, options = {}) {
|
|
397
397
|
super(`[${instanceId}] ${message}`, {
|
|
398
398
|
code: "repo_provision_failed",
|
package/dist/sandbox/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LocalSandbox, shellEscapePosix } from '../chunk-SKWVAQAY.js';
|
|
2
2
|
export { LocalSandbox, SandboxBackend, SandboxNotAvailableError, SandboxSecurityError, resolveSandbox } from '../chunk-SKWVAQAY.js';
|
|
3
3
|
import '../chunk-7GFX45DD.js';
|
|
4
|
-
import { TheokitAgentError } from '../chunk-
|
|
5
|
-
import { redactSecrets } from '../chunk-
|
|
4
|
+
import { TheokitAgentError } from '../chunk-SG5ZWT6C.js';
|
|
5
|
+
import { redactSecrets } from '../chunk-IVSD7L22.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { existsSync, mkdtempSync, writeFileSync, rmSync } from 'fs';
|
|
8
8
|
import path, { dirname, join } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkIHFNRNTJ_cjs = require('../chunk-IHFNRNTJ.cjs');
|
|
4
|
+
require('../chunk-BCQ3E2ZG.cjs');
|
|
5
5
|
|
|
6
6
|
// src/server/errors-envelope.ts
|
|
7
7
|
var NAME_TO_CODE = /* @__PURE__ */ new Map([
|
|
@@ -37,7 +37,7 @@ function toEnvelope(value) {
|
|
|
37
37
|
}
|
|
38
38
|
function buildMeta(name, err) {
|
|
39
39
|
const meta = { sdkErrorName: name };
|
|
40
|
-
if (err instanceof
|
|
40
|
+
if (err instanceof chunkIHFNRNTJ_cjs.TheokitAgentError && err.metadata !== void 0) {
|
|
41
41
|
meta.provider = err.metadata.provider;
|
|
42
42
|
meta.endpoint = err.metadata.endpoint;
|
|
43
43
|
if (err.metadata.statusCode !== void 0) {
|
|
@@ -47,13 +47,13 @@ function buildMeta(name, err) {
|
|
|
47
47
|
return meta;
|
|
48
48
|
}
|
|
49
49
|
function buildExt(err) {
|
|
50
|
-
if (err instanceof
|
|
50
|
+
if (err instanceof chunkIHFNRNTJ_cjs.RateLimitError && err.metadata?.retryAfter !== void 0) {
|
|
51
51
|
return {
|
|
52
52
|
retryable: true,
|
|
53
53
|
retryAfterMs: err.metadata.retryAfter * 1e3
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
if (err instanceof
|
|
56
|
+
if (err instanceof chunkIHFNRNTJ_cjs.CredentialPoolExhaustedError && err.nextRetryAt !== void 0) {
|
|
57
57
|
const delayMs = Math.max(0, err.nextRetryAt - Date.now());
|
|
58
58
|
return {
|
|
59
59
|
retryable: true,
|
|
@@ -63,22 +63,22 @@ function buildExt(err) {
|
|
|
63
63
|
return void 0;
|
|
64
64
|
}
|
|
65
65
|
var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
|
|
66
|
-
["UNAUTHORIZED", (env) => new
|
|
66
|
+
["UNAUTHORIZED", (env) => new chunkIHFNRNTJ_cjs.AuthenticationError(env.message)],
|
|
67
67
|
[
|
|
68
68
|
"RATE_LIMITED",
|
|
69
|
-
(env) => new
|
|
69
|
+
(env) => new chunkIHFNRNTJ_cjs.RateLimitError(env.message, env.cause !== void 0 ? { cause: env.cause } : {})
|
|
70
70
|
],
|
|
71
|
-
["PROVIDER_KEY_MISSING", (env) => new
|
|
72
|
-
["SERVICE_UNAVAILABLE", (env) => new
|
|
73
|
-
["GATEWAY_TIMEOUT", (env) => new
|
|
71
|
+
["PROVIDER_KEY_MISSING", (env) => new chunkIHFNRNTJ_cjs.ConfigurationError(env.message)],
|
|
72
|
+
["SERVICE_UNAVAILABLE", (env) => new chunkIHFNRNTJ_cjs.NetworkError(env.message)],
|
|
73
|
+
["GATEWAY_TIMEOUT", (env) => new chunkIHFNRNTJ_cjs.NetworkError(env.message)],
|
|
74
74
|
[
|
|
75
75
|
"AGENT_RUN_ERROR",
|
|
76
|
-
(env) => new
|
|
76
|
+
(env) => new chunkIHFNRNTJ_cjs.AgentRunError(env.message, {
|
|
77
77
|
code: "unknown",
|
|
78
78
|
...env.cause !== void 0 ? { cause: env.cause } : {}
|
|
79
79
|
})
|
|
80
80
|
],
|
|
81
|
-
["INTERNAL_SERVER_ERROR", (env) => new
|
|
81
|
+
["INTERNAL_SERVER_ERROR", (env) => new chunkIHFNRNTJ_cjs.UnknownAgentError(env.message)]
|
|
82
82
|
// BUDGET_EXCEEDED + CREDENTIAL_POOL_EXHAUSTED reconstructors require
|
|
83
83
|
// domain-specific args (budgetName, provider) that the envelope doesn't
|
|
84
84
|
// always carry. Fall back to UnknownAgentError when those fields are
|
|
@@ -88,12 +88,12 @@ var CODE_TO_RECONSTRUCTOR = /* @__PURE__ */ new Map([
|
|
|
88
88
|
function fromEnvelope(env) {
|
|
89
89
|
const reconstructor = CODE_TO_RECONSTRUCTOR.get(env.code);
|
|
90
90
|
if (reconstructor) return reconstructor(env);
|
|
91
|
-
return new
|
|
91
|
+
return new chunkIHFNRNTJ_cjs.UnknownAgentError(env.message);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
Object.defineProperty(exports, "MemoryAdapterError", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkIHFNRNTJ_cjs.MemoryAdapterError; }
|
|
97
97
|
});
|
|
98
98
|
exports.fromEnvelope = fromEnvelope;
|
|
99
99
|
exports.toEnvelope = toEnvelope;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TheokitAgentError } from '../errors-
|
|
2
|
-
export { M as MemoryAdapterError } from '../errors-
|
|
3
|
-
import '../run-
|
|
1
|
+
import { T as TheokitAgentError } from '../errors-DMY-gLSK.cjs';
|
|
2
|
+
export { M as MemoryAdapterError } from '../errors-DMY-gLSK.cjs';
|
|
3
|
+
import '../run-i2-fUohR.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TheokitAgentError } from '../errors-
|
|
2
|
-
export { M as MemoryAdapterError } from '../errors-
|
|
3
|
-
import '../run-
|
|
1
|
+
import { T as TheokitAgentError } from '../errors-DjBQ4Tn8.js';
|
|
2
|
+
export { M as MemoryAdapterError } from '../errors-DjBQ4Tn8.js';
|
|
3
|
+
import '../run-i2-fUohR.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-
|
|
2
|
-
export { MemoryAdapterError } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { TheokitAgentError, RateLimitError, CredentialPoolExhaustedError, UnknownAgentError, AuthenticationError, ConfigurationError, NetworkError, AgentRunError } from '../chunk-SG5ZWT6C.js';
|
|
2
|
+
export { MemoryAdapterError } from '../chunk-SG5ZWT6C.js';
|
|
3
|
+
import '../chunk-IVSD7L22.js';
|
|
4
4
|
|
|
5
5
|
// src/server/errors-envelope.ts
|
|
6
6
|
var NAME_TO_CODE = /* @__PURE__ */ new Map([
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SessionTranscript, defaultBaseDir, encodeProjectDir, expandTilde, readTranscript, reconstructMessages, safeSessionId, transcriptPath, transcriptRoot, writeTranscript } from './chunk-JRLXEYR4.js';
|
|
2
|
+
import './chunk-KX7JV5KM.js';
|
|
3
|
+
import './chunk-IVSD7L22.js';
|
|
4
|
+
//# sourceMappingURL=session-transcript-3B52DKTG.js.map
|
|
5
|
+
//# sourceMappingURL=session-transcript-3B52DKTG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"session-transcript-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"session-transcript-3B52DKTG.js"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZ2CUEBXV_cjs = require('./chunk-Z2CUEBXV.cjs');
|
|
4
|
+
require('./chunk-DGLLVCNB.cjs');
|
|
5
|
+
require('./chunk-BCQ3E2ZG.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "SessionTranscript", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkZ2CUEBXV_cjs.SessionTranscript; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "defaultBaseDir", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkZ2CUEBXV_cjs.defaultBaseDir; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "encodeProjectDir", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkZ2CUEBXV_cjs.encodeProjectDir; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "expandTilde", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkZ2CUEBXV_cjs.expandTilde; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "readTranscript", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkZ2CUEBXV_cjs.readTranscript; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "reconstructMessages", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkZ2CUEBXV_cjs.reconstructMessages; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "safeSessionId", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkZ2CUEBXV_cjs.safeSessionId; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "transcriptPath", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkZ2CUEBXV_cjs.transcriptPath; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "transcriptRoot", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkZ2CUEBXV_cjs.transcriptRoot; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "writeTranscript", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return chunkZ2CUEBXV_cjs.writeTranscript; }
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=session-transcript-H7NUFXXM.cjs.map
|
|
50
|
+
//# sourceMappingURL=session-transcript-H7NUFXXM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"session-transcript-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"session-transcript-H7NUFXXM.cjs"}
|
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 chunkE4IUN3JB_cjs = require('./chunk-E4IUN3JB.cjs');
|
|
4
|
+
require('./chunk-7YBJZS5P.cjs');
|
|
5
|
+
require('./chunk-G2Q3ZC6C.cjs');
|
|
6
|
+
require('./chunk-IHFNRNTJ.cjs');
|
|
7
|
+
require('./chunk-BCQ3E2ZG.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 chunkE4IUN3JB_cjs.buildSkillsBlock; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "discoverSkills", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkE4IUN3JB_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-42IFCKQZ.js';
|
|
2
|
+
import './chunk-J3UK2GMN.js';
|
|
3
|
+
import './chunk-AR5MQZ3J.js';
|
|
4
|
+
import './chunk-SG5ZWT6C.js';
|
|
5
|
+
import './chunk-IVSD7L22.js';
|
|
6
6
|
//# sourceMappingURL=skills.js.map
|
|
7
7
|
//# sourceMappingURL=skills.js.map
|