@theokit/sdk 4.24.0 → 4.26.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/dist/a2a/index.cjs +10 -171
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +3 -170
- package/dist/a2a/index.js.map +1 -1
- package/dist/agent-factory-registry-UU46BUMU.cjs +16 -0
- package/dist/agent-factory-registry-UU46BUMU.cjs.map +1 -0
- package/dist/agent-factory-registry-ZVTABLEY.js +3 -0
- package/dist/agent-factory-registry-ZVTABLEY.js.map +1 -0
- package/dist/auth/index.cjs +63 -367
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.js +6 -342
- package/dist/auth/index.js.map +1 -1
- package/dist/batch-2FSD2UNL.cjs +244 -0
- package/dist/batch-2FSD2UNL.cjs.map +1 -0
- package/dist/batch-MR2HKYMS.js +241 -0
- package/dist/batch-MR2HKYMS.js.map +1 -0
- package/dist/chunk-2HRYBRD7.cjs +31 -0
- package/dist/chunk-2HRYBRD7.cjs.map +1 -0
- package/dist/chunk-2MF3IE2D.cjs +2863 -0
- package/dist/chunk-2MF3IE2D.cjs.map +1 -0
- package/dist/chunk-2ONFGMBV.js +6 -0
- package/dist/chunk-2ONFGMBV.js.map +1 -0
- package/dist/chunk-2SFBB54R.js +23 -0
- package/dist/chunk-2SFBB54R.js.map +1 -0
- package/dist/chunk-2XLKLVVR.js +18 -0
- package/dist/chunk-2XLKLVVR.js.map +1 -0
- package/dist/chunk-4SXHEZIV.cjs +240 -0
- package/dist/chunk-4SXHEZIV.cjs.map +1 -0
- package/dist/chunk-4VPXM6UU.js +10 -0
- package/dist/chunk-4VPXM6UU.js.map +1 -0
- package/dist/chunk-4WL52CXU.cjs +148 -0
- package/dist/chunk-4WL52CXU.cjs.map +1 -0
- package/dist/chunk-5NBUH3NO.js +39 -0
- package/dist/chunk-5NBUH3NO.js.map +1 -0
- package/dist/chunk-5PZMMF4H.js +43 -0
- package/dist/chunk-5PZMMF4H.js.map +1 -0
- package/dist/chunk-6CLRANZA.js +289 -0
- package/dist/chunk-6CLRANZA.js.map +1 -0
- package/dist/chunk-6JSIEDKL.cjs +121 -0
- package/dist/chunk-6JSIEDKL.cjs.map +1 -0
- package/dist/chunk-6M4ODB2V.cjs +145 -0
- package/dist/chunk-6M4ODB2V.cjs.map +1 -0
- package/dist/chunk-6X6ID4MO.js +20 -0
- package/dist/chunk-6X6ID4MO.js.map +1 -0
- package/dist/chunk-77FOZCOT.js +165 -0
- package/dist/chunk-77FOZCOT.js.map +1 -0
- package/dist/chunk-7AD3ZTZL.js +25 -0
- package/dist/chunk-7AD3ZTZL.js.map +1 -0
- package/dist/chunk-7GFX45DD.js +57 -0
- package/dist/chunk-7GFX45DD.js.map +1 -0
- package/dist/chunk-7S7KKUO6.cjs +45 -0
- package/dist/chunk-7S7KKUO6.cjs.map +1 -0
- package/dist/chunk-7W7ZWMLQ.js +99 -0
- package/dist/chunk-7W7ZWMLQ.js.map +1 -0
- package/dist/chunk-A44COQJJ.cjs +353 -0
- package/dist/chunk-A44COQJJ.cjs.map +1 -0
- package/dist/chunk-AKSBP7OO.js +185 -0
- package/dist/chunk-AKSBP7OO.js.map +1 -0
- package/dist/chunk-ANIZEWTU.cjs +196 -0
- package/dist/chunk-ANIZEWTU.cjs.map +1 -0
- package/dist/chunk-BEURCLDV.cjs +139 -0
- package/dist/chunk-BEURCLDV.cjs.map +1 -0
- package/dist/chunk-BFWPZMG7.js +379 -0
- package/dist/chunk-BFWPZMG7.js.map +1 -0
- package/dist/chunk-BUUUWQMB.cjs +34 -0
- package/dist/chunk-BUUUWQMB.cjs.map +1 -0
- package/dist/chunk-BV2MWEMV.cjs +26 -0
- package/dist/chunk-BV2MWEMV.cjs.map +1 -0
- package/dist/chunk-BWT67BI4.cjs +268 -0
- package/dist/chunk-BWT67BI4.cjs.map +1 -0
- package/dist/chunk-BXV2QUIC.js +191 -0
- package/dist/chunk-BXV2QUIC.js.map +1 -0
- package/dist/chunk-C6Y6CWYD.cjs +44 -0
- package/dist/chunk-C6Y6CWYD.cjs.map +1 -0
- package/dist/chunk-C7PICHRF.cjs +68 -0
- package/dist/chunk-C7PICHRF.cjs.map +1 -0
- package/dist/chunk-CAH3G4IS.js +13 -0
- package/dist/chunk-CAH3G4IS.js.map +1 -0
- package/dist/chunk-D42XHI4O.cjs +565 -0
- package/dist/chunk-D42XHI4O.cjs.map +1 -0
- package/dist/chunk-DGRZNMTU.js +104 -0
- package/dist/chunk-DGRZNMTU.js.map +1 -0
- package/dist/chunk-DUK5WMKJ.js +71 -0
- package/dist/chunk-DUK5WMKJ.js.map +1 -0
- package/dist/chunk-EEZ7CFMM.js +14 -0
- package/dist/chunk-EEZ7CFMM.js.map +1 -0
- package/dist/chunk-EPYZOCOL.cjs +82 -0
- package/dist/chunk-EPYZOCOL.cjs.map +1 -0
- package/dist/chunk-EVADEGM7.cjs +168 -0
- package/dist/chunk-EVADEGM7.cjs.map +1 -0
- package/dist/chunk-FD2UT76F.js +3 -0
- package/dist/chunk-FD2UT76F.js.map +1 -0
- package/dist/chunk-FV3YEMQ7.js +179 -0
- package/dist/chunk-FV3YEMQ7.js.map +1 -0
- package/dist/chunk-G2F67XUR.cjs +184 -0
- package/dist/chunk-G2F67XUR.cjs.map +1 -0
- package/dist/chunk-G6GO6BXD.js +994 -0
- package/dist/chunk-G6GO6BXD.js.map +1 -0
- package/dist/chunk-GIW4L6HY.cjs +27 -0
- package/dist/chunk-GIW4L6HY.cjs.map +1 -0
- package/dist/chunk-GJAGKFTR.js +74 -0
- package/dist/chunk-GJAGKFTR.js.map +1 -0
- package/dist/chunk-HFPGOTVF.cjs +324 -0
- package/dist/chunk-HFPGOTVF.cjs.map +1 -0
- package/dist/chunk-HRA3CPGG.js +486 -0
- package/dist/chunk-HRA3CPGG.js.map +1 -0
- package/dist/chunk-HZQEDNF6.js +66 -0
- package/dist/chunk-HZQEDNF6.js.map +1 -0
- package/dist/chunk-IT3PWBW4.cjs +19 -0
- package/dist/chunk-IT3PWBW4.cjs.map +1 -0
- package/dist/chunk-JD74LN7R.cjs +171 -0
- package/dist/chunk-JD74LN7R.cjs.map +1 -0
- package/dist/chunk-JTFYYKDT.js +135 -0
- package/dist/chunk-JTFYYKDT.js.map +1 -0
- package/dist/chunk-K2BQQ445.js +30 -0
- package/dist/chunk-K2BQQ445.js.map +1 -0
- package/dist/chunk-KAP4GJHO.js +546 -0
- package/dist/chunk-KAP4GJHO.js.map +1 -0
- package/dist/chunk-KDNBTPY2.js +458 -0
- package/dist/chunk-KDNBTPY2.js.map +1 -0
- package/dist/chunk-KIO7QFIV.cjs +223 -0
- package/dist/chunk-KIO7QFIV.cjs.map +1 -0
- package/dist/chunk-KSKU6JY6.cjs +71 -0
- package/dist/chunk-KSKU6JY6.cjs.map +1 -0
- package/dist/chunk-LSLPF6OI.cjs +192 -0
- package/dist/chunk-LSLPF6OI.cjs.map +1 -0
- package/dist/chunk-LU7VALW5.js +312 -0
- package/dist/chunk-LU7VALW5.js.map +1 -0
- package/dist/chunk-LUSXDZPV.cjs +296 -0
- package/dist/chunk-LUSXDZPV.cjs.map +1 -0
- package/dist/chunk-M72RJVPC.js +69 -0
- package/dist/chunk-M72RJVPC.js.map +1 -0
- package/dist/chunk-MQLCZ4HJ.cjs +1010 -0
- package/dist/chunk-MQLCZ4HJ.cjs.map +1 -0
- package/dist/chunk-MUUQ2WFJ.cjs +4 -0
- package/dist/chunk-MUUQ2WFJ.cjs.map +1 -0
- package/dist/chunk-MZ5ZRORA.cjs +496 -0
- package/dist/chunk-MZ5ZRORA.cjs.map +1 -0
- package/dist/chunk-N24XBYNX.cjs +140 -0
- package/dist/chunk-N24XBYNX.cjs.map +1 -0
- package/dist/chunk-NINIJCHU.cjs +23 -0
- package/dist/chunk-NINIJCHU.cjs.map +1 -0
- package/dist/chunk-NRSH7RJY.js +2841 -0
- package/dist/chunk-NRSH7RJY.js.map +1 -0
- package/dist/chunk-OIYQBUW4.cjs +111 -0
- package/dist/chunk-OIYQBUW4.cjs.map +1 -0
- package/dist/chunk-PNVDQL5Y.cjs +15 -0
- package/dist/chunk-PNVDQL5Y.cjs.map +1 -0
- package/dist/chunk-POQT2OIF.js +214 -0
- package/dist/chunk-POQT2OIF.js.map +1 -0
- package/dist/chunk-PSJN532Q.js +10573 -0
- package/dist/chunk-PSJN532Q.js.map +1 -0
- package/dist/chunk-QUTUJ6P6.cjs +76 -0
- package/dist/chunk-QUTUJ6P6.cjs.map +1 -0
- package/dist/chunk-R43CNCES.cjs +460 -0
- package/dist/chunk-R43CNCES.cjs.map +1 -0
- package/dist/chunk-S2BBRVQX.js +68 -0
- package/dist/chunk-S2BBRVQX.js.map +1 -0
- package/dist/chunk-S5RCBTSF.js +145 -0
- package/dist/chunk-S5RCBTSF.js.map +1 -0
- package/dist/chunk-S7OEXQMI.cjs +136 -0
- package/dist/chunk-S7OEXQMI.cjs.map +1 -0
- package/dist/chunk-SKWVAQAY.js +129 -0
- package/dist/chunk-SKWVAQAY.js.map +1 -0
- package/dist/chunk-SQLZ7ONU.js +152 -0
- package/dist/chunk-SQLZ7ONU.js.map +1 -0
- package/dist/chunk-TIZ4TS5V.cjs +72 -0
- package/dist/chunk-TIZ4TS5V.cjs.map +1 -0
- package/dist/chunk-TQKCU7CL.js +142 -0
- package/dist/chunk-TQKCU7CL.js.map +1 -0
- package/dist/chunk-U54XCYG3.js +116 -0
- package/dist/chunk-U54XCYG3.js.map +1 -0
- package/dist/chunk-U6QGZHPN.js +29 -0
- package/dist/chunk-U6QGZHPN.js.map +1 -0
- package/dist/chunk-UCFONJBG.js +79 -0
- package/dist/chunk-UCFONJBG.js.map +1 -0
- package/dist/chunk-UJ7IQJAG.js +141 -0
- package/dist/chunk-UJ7IQJAG.js.map +1 -0
- package/dist/chunk-UVNG67DG.js +253 -0
- package/dist/chunk-UVNG67DG.js.map +1 -0
- package/dist/chunk-V4XRLPEF.js +25 -0
- package/dist/chunk-V4XRLPEF.js.map +1 -0
- package/dist/chunk-VJ26EKGJ.cjs +28 -0
- package/dist/chunk-VJ26EKGJ.cjs.map +1 -0
- package/dist/chunk-VK7MAV65.cjs +90 -0
- package/dist/chunk-VK7MAV65.cjs.map +1 -0
- package/dist/chunk-VYCKUKPA.cjs +106 -0
- package/dist/chunk-VYCKUKPA.cjs.map +1 -0
- package/dist/chunk-VYHJZVL5.cjs +29 -0
- package/dist/chunk-VYHJZVL5.cjs.map +1 -0
- package/dist/chunk-WA3FO4R7.js +155 -0
- package/dist/chunk-WA3FO4R7.js.map +1 -0
- package/dist/chunk-WJVHMTKB.cjs +12 -0
- package/dist/chunk-WJVHMTKB.cjs.map +1 -0
- package/dist/chunk-WLKFWQSJ.js +333 -0
- package/dist/chunk-WLKFWQSJ.js.map +1 -0
- package/dist/chunk-WPZTYOUX.cjs +59 -0
- package/dist/chunk-WPZTYOUX.cjs.map +1 -0
- package/dist/chunk-X2FR4OIT.js +27 -0
- package/dist/chunk-X2FR4OIT.js.map +1 -0
- package/dist/chunk-XIG2IE3L.js +134 -0
- package/dist/chunk-XIG2IE3L.js.map +1 -0
- package/dist/chunk-YLQQX5W2.cjs +20 -0
- package/dist/chunk-YLQQX5W2.cjs.map +1 -0
- package/dist/chunk-YPEPCZHF.cjs +147 -0
- package/dist/chunk-YPEPCZHF.cjs.map +1 -0
- package/dist/chunk-YPQF26X7.cjs +8 -0
- package/dist/chunk-YPQF26X7.cjs.map +1 -0
- package/dist/chunk-YU6KON2I.cjs +160 -0
- package/dist/chunk-YU6KON2I.cjs.map +1 -0
- package/dist/chunk-Z2OC3UIW.cjs +388 -0
- package/dist/chunk-Z2OC3UIW.cjs.map +1 -0
- package/dist/chunk-ZUBIEQJF.cjs +10590 -0
- package/dist/chunk-ZUBIEQJF.cjs.map +1 -0
- package/dist/chunk-ZZWTY3RX.js +230 -0
- package/dist/chunk-ZZWTY3RX.js.map +1 -0
- package/dist/compact-session-OO2GD76G.js +17 -0
- package/dist/compact-session-OO2GD76G.js.map +1 -0
- package/dist/compact-session-OO7NVWPB.cjs +54 -0
- package/dist/compact-session-OO7NVWPB.cjs.map +1 -0
- package/dist/compaction.cjs +54 -303
- package/dist/compaction.cjs.map +1 -1
- package/dist/compaction.js +3 -292
- package/dist/compaction.js.map +1 -1
- package/dist/concurrency.cjs +9 -81
- package/dist/concurrency.cjs.map +1 -1
- package/dist/concurrency.js +5 -80
- package/dist/concurrency.js.map +1 -1
- package/dist/context-GWANQLX4.js +5 -0
- package/dist/context-GWANQLX4.js.map +1 -0
- package/dist/context-KNWVTZSY.cjs +22 -0
- package/dist/context-KNWVTZSY.cjs.map +1 -0
- package/dist/{cron-x3muPNgg.d.cts → cron-D0JKR-yX.d.cts} +2 -1
- package/dist/{cron-B_NkE_VM.d.ts → cron-DivRaEmN.d.ts} +2 -1
- package/dist/cron.cjs +44 -20676
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.d.cts +1 -1
- package/dist/cron.d.ts +1 -1
- package/dist/cron.js +38 -20676
- package/dist/cron.js.map +1 -1
- package/dist/errors.cjs +78 -470
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.ts +3 -424
- package/dist/errors.js +2 -455
- package/dist/errors.js.map +1 -1
- package/dist/eval.cjs +72 -20411
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +59 -20402
- package/dist/eval.js.map +1 -1
- package/dist/executor-ORJS5GV2.js +981 -0
- package/dist/executor-ORJS5GV2.js.map +1 -0
- package/dist/executor-Y4MKPIUD.cjs +985 -0
- package/dist/executor-Y4MKPIUD.cjs.map +1 -0
- package/dist/filesystem/index.cjs +7 -112
- package/dist/filesystem/index.cjs.map +1 -1
- package/dist/filesystem/index.js +4 -109
- package/dist/filesystem/index.js.map +1 -1
- package/dist/fork-agent-RSV4E3EA.js +61 -0
- package/dist/fork-agent-RSV4E3EA.js.map +1 -0
- package/dist/fork-agent-Y2IK2RYU.cjs +64 -0
- package/dist/fork-agent-Y2IK2RYU.cjs.map +1 -0
- package/dist/fs-session-store-KAUQYSGI.cjs +17 -0
- package/dist/fs-session-store-KAUQYSGI.cjs.map +1 -0
- package/dist/fs-session-store-ZKB5NN37.js +8 -0
- package/dist/fs-session-store-ZKB5NN37.js.map +1 -0
- package/dist/generate-object-H3RNAM6S.cjs +20 -0
- package/dist/generate-object-H3RNAM6S.cjs.map +1 -0
- package/dist/generate-object-YJPDV5BS.js +7 -0
- package/dist/generate-object-YJPDV5BS.js.map +1 -0
- package/dist/index-manager-CB6I7XFQ.cjs +19 -0
- package/dist/index-manager-CB6I7XFQ.cjs.map +1 -0
- package/dist/index-manager-L27Q3QAC.js +10 -0
- package/dist/index-manager-L27Q3QAC.js.map +1 -0
- package/dist/index.cjs +371 -22888
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -21
- package/dist/index.d.ts +16 -21
- package/dist/index.js +92 -22713
- package/dist/index.js.map +1 -1
- package/dist/inject-session-6MJUSGZP.cjs +27 -0
- package/dist/inject-session-6MJUSGZP.cjs.map +1 -0
- package/dist/inject-session-KOFHS5K3.js +25 -0
- package/dist/inject-session-KOFHS5K3.js.map +1 -0
- package/dist/internal/judge/judge-call.d.ts +32 -19
- package/dist/internal/persistence/index.cjs +93 -508
- package/dist/internal/persistence/index.cjs.map +1 -1
- package/dist/internal/persistence/index.js +11 -489
- package/dist/internal/persistence/index.js.map +1 -1
- package/dist/internal/security/index.cjs +44 -361
- package/dist/internal/security/index.cjs.map +1 -1
- package/dist/internal/security/index.js +4 -355
- package/dist/internal/security/index.js.map +1 -1
- package/dist/judge-call-CEQ3FYYD.js +126 -0
- package/dist/judge-call-CEQ3FYYD.js.map +1 -0
- package/dist/judge-call-QG4WZ7F3.cjs +130 -0
- package/dist/judge-call-QG4WZ7F3.cjs.map +1 -0
- package/dist/models.cjs +24 -919
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +11 -907
- package/dist/models.js.map +1 -1
- package/dist/oauth-transaction-store-7CKHPQRN.cjs +32 -0
- package/dist/oauth-transaction-store-7CKHPQRN.cjs.map +1 -0
- package/dist/oauth-transaction-store-W74I6EFD.js +3 -0
- package/dist/oauth-transaction-store-W74I6EFD.js.map +1 -0
- package/dist/path-safety.cjs +31 -200
- package/dist/path-safety.cjs.map +1 -1
- package/dist/path-safety.js +3 -197
- package/dist/path-safety.js.map +1 -1
- package/dist/persistence.cjs +73 -393
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.js +9 -381
- package/dist/persistence.js.map +1 -1
- package/dist/project.cjs +8 -112
- package/dist/project.cjs.map +1 -1
- package/dist/project.js +6 -110
- package/dist/project.js.map +1 -1
- package/dist/registry-34IWWDQQ.js +9 -0
- package/dist/registry-34IWWDQQ.js.map +1 -0
- package/dist/registry-APYDISL6.cjs +46 -0
- package/dist/registry-APYDISL6.cjs.map +1 -0
- package/dist/retry.cjs +7 -87
- package/dist/retry.cjs.map +1 -1
- package/dist/retry.js +3 -90
- package/dist/retry.js.map +1 -1
- package/dist/run-to-completion-J73I6IY4.cjs +48 -0
- package/dist/run-to-completion-J73I6IY4.cjs.map +1 -0
- package/dist/run-to-completion-JDPIUKSH.js +3 -0
- package/dist/run-to-completion-JDPIUKSH.js.map +1 -0
- package/dist/run-until-PNO3QQLI.cjs +180 -0
- package/dist/run-until-PNO3QQLI.cjs.map +1 -0
- package/dist/run-until-XLHEHRQM.js +177 -0
- package/dist/run-until-XLHEHRQM.js.map +1 -0
- package/dist/sandbox/index.cjs +35 -337
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.js +7 -323
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sanitize/index.cjs +5 -112
- package/dist/sanitize/index.cjs.map +1 -1
- package/dist/sanitize/index.js +1 -114
- package/dist/sanitize/index.js.map +1 -1
- package/dist/server/auth/index.cjs +35 -175
- package/dist/server/auth/index.cjs.map +1 -1
- package/dist/server/auth/index.js +7 -161
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/errors-envelope.cjs +17 -328
- package/dist/server/errors-envelope.cjs.map +1 -1
- package/dist/server/errors-envelope.js +4 -317
- package/dist/server/errors-envelope.js.map +1 -1
- package/dist/session-transcript-LPNZR3YS.cjs +46 -0
- package/dist/session-transcript-LPNZR3YS.cjs.map +1 -0
- package/dist/session-transcript-T7LGJUGW.js +5 -0
- package/dist/session-transcript-T7LGJUGW.js.map +1 -0
- package/dist/skills.cjs +12 -280
- package/dist/skills.cjs.map +1 -1
- package/dist/skills.js +4 -282
- package/dist/skills.js.map +1 -1
- package/dist/stream-object-QEQJJDTI.cjs +20 -0
- package/dist/stream-object-QEQJJDTI.cjs.map +1 -0
- package/dist/stream-object-WUQSSRY2.js +7 -0
- package/dist/stream-object-WUQSSRY2.js.map +1 -0
- package/dist/stream-to-completion-DFJ5T3BK.js +30 -0
- package/dist/stream-to-completion-DFJ5T3BK.js.map +1 -0
- package/dist/stream-to-completion-H2MHISSK.cjs +32 -0
- package/dist/stream-to-completion-H2MHISSK.cjs.map +1 -0
- package/dist/subagents.cjs +2 -8
- package/dist/subagents.cjs.map +1 -1
- package/dist/subagents.js +1 -7
- package/dist/subagents.js.map +1 -1
- package/dist/subscription/index.cjs +4 -17
- package/dist/subscription/index.cjs.map +1 -1
- package/dist/subscription/index.js +3 -16
- package/dist/subscription/index.js.map +1 -1
- package/dist/task-store.cjs +16 -258
- package/dist/task-store.cjs.map +1 -1
- package/dist/task-store.js +4 -259
- package/dist/task-store.js.map +1 -1
- package/dist/types/goal-events.d.ts +2 -1
- package/dist/workflow.cjs +71 -2797
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.js +8 -2812
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
package/dist/auth/index.cjs
CHANGED
|
@@ -1,309 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// src/internal/auth/credential-store.ts
|
|
9
|
-
|
|
10
|
-
// src/errors.ts
|
|
11
|
-
var TheokitAgentError = class extends Error {
|
|
12
|
-
name = "TheokitAgentError";
|
|
13
|
-
isRetryable;
|
|
14
|
-
code;
|
|
15
|
-
protoErrorCode;
|
|
16
|
-
metadata;
|
|
17
|
-
constructor(message, options = {}) {
|
|
18
|
-
super(message, options.cause !== void 0 ? { cause: options.cause } : void 0);
|
|
19
|
-
this.isRetryable = options.isRetryable ?? false;
|
|
20
|
-
if (options.code !== void 0) this.code = options.code;
|
|
21
|
-
if (options.protoErrorCode !== void 0) this.protoErrorCode = options.protoErrorCode;
|
|
22
|
-
if (options.metadata !== void 0) this.metadata = options.metadata;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var AuthenticationError = class extends TheokitAgentError {
|
|
26
|
-
name = "AuthenticationError";
|
|
27
|
-
constructor(message, options = {}) {
|
|
28
|
-
super(message, { ...options, isRetryable: false });
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// src/internal/auth/credential-store.ts
|
|
33
|
-
function credentialHome(config, env = {}) {
|
|
34
|
-
const override = config.homeEnvVar !== void 0 ? env[config.homeEnvVar]?.trim() : void 0;
|
|
35
|
-
return override !== void 0 && override.length > 0 ? override : path.join(config.home, config.dirName);
|
|
36
|
-
}
|
|
37
|
-
function authFilePath(config, env = {}) {
|
|
38
|
-
return path.join(credentialHome(config, env), config.fileName);
|
|
39
|
-
}
|
|
40
|
-
var CredentialError = class extends AuthenticationError {
|
|
41
|
-
// Field, not an assignment in the constructor: `AuthenticationError.name` is `override readonly`
|
|
42
|
-
// (`errors.ts:174`), so `this.name = …` does not compile. Caught by `tsc`, not by vitest — the
|
|
43
|
-
// suite was green with the broken assignment because the transpiler strips the type.
|
|
44
|
-
name = "CredentialError";
|
|
45
|
-
};
|
|
46
|
-
var apiFileSchema = zod.z.object({
|
|
47
|
-
type: zod.z.literal("api").optional(),
|
|
48
|
-
provider: zod.z.string().min(1).optional(),
|
|
49
|
-
api_key: zod.z.string()
|
|
50
|
-
}).strict();
|
|
51
|
-
var oauthFileSchema = zod.z.object({
|
|
52
|
-
type: zod.z.literal("oauth"),
|
|
53
|
-
provider: zod.z.string().min(1),
|
|
54
|
-
access: zod.z.string().min(1),
|
|
55
|
-
refresh: zod.z.string().min(1),
|
|
56
|
-
expires: zod.z.number(),
|
|
57
|
-
account_id: zod.z.string().optional()
|
|
58
|
-
}).strict();
|
|
59
|
-
var fileSchema = zod.z.union([oauthFileSchema, apiFileSchema]);
|
|
60
|
-
function assertSecureModes(dirPath, path) {
|
|
61
|
-
const dirMode = fs.statSync(dirPath).mode & 511;
|
|
62
|
-
if ((dirMode & 18) !== 0) {
|
|
63
|
-
throw new CredentialError(
|
|
64
|
-
`${dirPath} is writable by other users (mode ${dirMode.toString(8)}), so the credential file inside it can be replaced. Fix it with: chmod 700 ${dirPath}`
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
const mode = fs.statSync(path).mode & 511;
|
|
68
|
-
if ((mode & 63) !== 0) {
|
|
69
|
-
throw new CredentialError(
|
|
70
|
-
`${path} is readable by other users (mode ${mode.toString(8)}). A credential file must not be. Fix it with: chmod 600 ${path}`
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function describeUnionError(parsed, err, path) {
|
|
75
|
-
const looksOAuth = typeof parsed === "object" && parsed !== null && parsed.type === "oauth";
|
|
76
|
-
const specific = looksOAuth ? oauthFileSchema.safeParse(parsed) : apiFileSchema.safeParse(parsed);
|
|
77
|
-
let issue;
|
|
78
|
-
if (!specific.success) {
|
|
79
|
-
issue = specific.error.issues[0];
|
|
80
|
-
} else if (err instanceof zod.z.ZodError) {
|
|
81
|
-
issue = err.issues[0];
|
|
82
|
-
}
|
|
83
|
-
return new CredentialError(
|
|
84
|
-
`${path}: ${issue?.message ?? String(err)} [${issue?.path.join(".") || "root"}]`
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
function parseStoredFile(raw, path) {
|
|
88
|
-
let parsed;
|
|
89
|
-
try {
|
|
90
|
-
parsed = JSON.parse(raw);
|
|
91
|
-
} catch {
|
|
92
|
-
throw new CredentialError(
|
|
93
|
-
`${path} is not valid JSON. Expected: {"provider": "<name>", "api_key": "..."}`
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
try {
|
|
97
|
-
return fileSchema.parse(parsed);
|
|
98
|
-
} catch (err) {
|
|
99
|
-
throw describeUnionError(parsed, err, path);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
function readAuthFile(config, env = {}) {
|
|
103
|
-
const path = authFilePath(config, env);
|
|
104
|
-
let raw;
|
|
105
|
-
try {
|
|
106
|
-
raw = fs.readFileSync(path, "utf8");
|
|
107
|
-
} catch (err) {
|
|
108
|
-
if (err.code === "ENOENT") return void 0;
|
|
109
|
-
throw new CredentialError(`cannot read ${path}: ${err.message}`);
|
|
110
|
-
}
|
|
111
|
-
assertSecureModes(credentialHome(config, env), path);
|
|
112
|
-
return parseStoredFile(raw, path);
|
|
113
|
-
}
|
|
114
|
-
function readStoredOAuth(config, env = {}) {
|
|
115
|
-
const stored = readAuthFile(config, env);
|
|
116
|
-
return stored !== void 0 && stored.type === "oauth" ? stored : void 0;
|
|
117
|
-
}
|
|
118
|
-
function isOAuthWrite(c) {
|
|
119
|
-
return "type" in c && c.type === "oauth";
|
|
120
|
-
}
|
|
121
|
-
function buildStorePayload(cred) {
|
|
122
|
-
if (isOAuthWrite(cred)) {
|
|
123
|
-
if (cred.access.length === 0 || cred.refresh.length === 0) {
|
|
124
|
-
throw new CredentialError(
|
|
125
|
-
"refusing to write an oauth credential with an empty access/refresh token"
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
return {
|
|
129
|
-
type: "oauth",
|
|
130
|
-
provider: cred.provider,
|
|
131
|
-
access: cred.access,
|
|
132
|
-
refresh: cred.refresh,
|
|
133
|
-
expires: cred.expires,
|
|
134
|
-
...cred.account_id !== void 0 ? { account_id: cred.account_id } : {}
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
if (typeof cred.apiKey !== "string" || cred.apiKey.length === 0) {
|
|
138
|
-
throw new CredentialError("refusing to write an empty API key");
|
|
139
|
-
}
|
|
140
|
-
return { provider: cred.provider, api_key: cred.apiKey };
|
|
141
|
-
}
|
|
142
|
-
function writeCredential(cred, config, env = {}) {
|
|
143
|
-
const payload = buildStorePayload(cred);
|
|
144
|
-
const dir = credentialHome(config, env);
|
|
145
|
-
fs.mkdirSync(dir, { recursive: true, mode: 448 });
|
|
146
|
-
fs.chmodSync(dir, 448);
|
|
147
|
-
const path = authFilePath(config, env);
|
|
148
|
-
const tmp = `${path}.tmp-${crypto.randomBytes(8).toString("hex")}`;
|
|
149
|
-
try {
|
|
150
|
-
const fd = fs.openSync(tmp, "wx", 384);
|
|
151
|
-
try {
|
|
152
|
-
fs.writeFileSync(fd, `${JSON.stringify(payload, null, 2)}
|
|
153
|
-
`);
|
|
154
|
-
fs.fsyncSync(fd);
|
|
155
|
-
} finally {
|
|
156
|
-
fs.closeSync(fd);
|
|
157
|
-
}
|
|
158
|
-
fs.chmodSync(tmp, 384);
|
|
159
|
-
fs.renameSync(tmp, path);
|
|
160
|
-
} catch (err) {
|
|
161
|
-
try {
|
|
162
|
-
fs.unlinkSync(tmp);
|
|
163
|
-
} catch {
|
|
164
|
-
}
|
|
165
|
-
throw new CredentialError(`cannot write ${path}: ${err.message}`);
|
|
166
|
-
}
|
|
167
|
-
return path;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// src/server/auth/errors.ts
|
|
171
|
-
var AuthCallbackError = class extends Error {
|
|
172
|
-
name = "AuthCallbackError";
|
|
173
|
-
code;
|
|
174
|
-
constructor(code, message) {
|
|
175
|
-
super(message ?? `OAuth callback error: ${code}`);
|
|
176
|
-
this.code = code;
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
// src/internal/auth/oauth-engine.ts
|
|
181
|
-
var REFRESH_SKEW_MS = 6e4;
|
|
182
|
-
function parseTokenResponse(body, now) {
|
|
183
|
-
const b = body;
|
|
184
|
-
if (typeof b.access_token !== "string" || b.access_token.length === 0) {
|
|
185
|
-
throw new AuthCallbackError(
|
|
186
|
-
"oauth_token_exchange_failed",
|
|
187
|
-
"token response had no access_token"
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
if (typeof b.refresh_token !== "string" || b.refresh_token.length === 0) {
|
|
191
|
-
throw new AuthCallbackError(
|
|
192
|
-
"oauth_token_exchange_failed",
|
|
193
|
-
"token response had no refresh_token"
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
const expiresIn = typeof b.expires_in === "number" ? b.expires_in : 3600;
|
|
197
|
-
return {
|
|
198
|
-
access: b.access_token,
|
|
199
|
-
refresh: b.refresh_token,
|
|
200
|
-
expires: now + expiresIn * 1e3,
|
|
201
|
-
...typeof b.account_id === "string" ? { accountId: b.account_id } : {}
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
async function postGrant(config, form, deps) {
|
|
205
|
-
let res;
|
|
206
|
-
try {
|
|
207
|
-
res = await deps.fetch(config.tokenEndpoint, {
|
|
208
|
-
method: "POST",
|
|
209
|
-
headers: { "content-type": "application/x-www-form-urlencoded", accept: "application/json" },
|
|
210
|
-
body: new URLSearchParams(form).toString()
|
|
211
|
-
});
|
|
212
|
-
} catch (err) {
|
|
213
|
-
throw new AuthCallbackError(
|
|
214
|
-
"oauth_token_exchange_failed",
|
|
215
|
-
`token endpoint request failed: ${err.message}`
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
if (!res.ok) {
|
|
219
|
-
throw new AuthCallbackError(
|
|
220
|
-
"oauth_token_exchange_failed",
|
|
221
|
-
`token endpoint returned HTTP ${res.status}`
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
let json;
|
|
225
|
-
try {
|
|
226
|
-
json = await res.json();
|
|
227
|
-
} catch {
|
|
228
|
-
throw new AuthCallbackError("oauth_token_exchange_failed", "token response was not valid JSON");
|
|
229
|
-
}
|
|
230
|
-
return parseTokenResponse(json, deps.now());
|
|
231
|
-
}
|
|
232
|
-
function exchangeCode(config, input, deps) {
|
|
233
|
-
return postGrant(
|
|
234
|
-
config,
|
|
235
|
-
{
|
|
236
|
-
grant_type: "authorization_code",
|
|
237
|
-
code: input.code,
|
|
238
|
-
redirect_uri: config.redirectUri,
|
|
239
|
-
client_id: config.clientId,
|
|
240
|
-
code_verifier: input.verifier
|
|
241
|
-
},
|
|
242
|
-
deps
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
function refreshOAuthTokens(config, refresh, deps) {
|
|
246
|
-
return postGrant(
|
|
247
|
-
config,
|
|
248
|
-
{ grant_type: "refresh_token", refresh_token: refresh, client_id: config.clientId },
|
|
249
|
-
deps
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
function persistOAuthTokens(provider, tokens, store, env = {}) {
|
|
253
|
-
return writeCredential(
|
|
254
|
-
{
|
|
255
|
-
type: "oauth",
|
|
256
|
-
provider,
|
|
257
|
-
access: tokens.access,
|
|
258
|
-
refresh: tokens.refresh,
|
|
259
|
-
expires: tokens.expires,
|
|
260
|
-
...tokens.accountId !== void 0 ? { account_id: tokens.accountId } : {}
|
|
261
|
-
},
|
|
262
|
-
store,
|
|
263
|
-
env
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
var inFlightRefresh = /* @__PURE__ */ new Map();
|
|
267
|
-
async function ensureFreshCredential(resolved, opts, deps) {
|
|
268
|
-
if (resolved.kind !== "oauth") return resolved;
|
|
269
|
-
const now = deps.now();
|
|
270
|
-
if (resolved.expiresAt !== void 0 && resolved.expiresAt > now + REFRESH_SKEW_MS) {
|
|
271
|
-
return resolved;
|
|
272
|
-
}
|
|
273
|
-
const env = opts.env ?? {};
|
|
274
|
-
const path = authFilePath(opts.store, env);
|
|
275
|
-
let refresh = inFlightRefresh.get(path);
|
|
276
|
-
if (refresh === void 0) {
|
|
277
|
-
refresh = (async () => {
|
|
278
|
-
const stored = readStoredOAuth(opts.store, env);
|
|
279
|
-
if (stored === void 0) {
|
|
280
|
-
throw new AuthCallbackError(
|
|
281
|
-
"oauth_token_exchange_failed",
|
|
282
|
-
"no stored oauth credential to refresh"
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
const fresh2 = await refreshOAuthTokens(opts.config, stored.refresh, deps);
|
|
286
|
-
const merged = {
|
|
287
|
-
...fresh2,
|
|
288
|
-
accountId: fresh2.accountId ?? stored.account_id
|
|
289
|
-
};
|
|
290
|
-
persistOAuthTokens(resolved.provider, merged, opts.store, env);
|
|
291
|
-
return merged;
|
|
292
|
-
})();
|
|
293
|
-
inFlightRefresh.set(path, refresh);
|
|
294
|
-
refresh.finally(() => inFlightRefresh.delete(path)).catch(() => {
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
const fresh = await refresh;
|
|
298
|
-
return {
|
|
299
|
-
kind: "oauth",
|
|
300
|
-
provider: resolved.provider,
|
|
301
|
-
apiKey: fresh.access,
|
|
302
|
-
source: resolved.source,
|
|
303
|
-
inferred: false,
|
|
304
|
-
expiresAt: fresh.expires
|
|
305
|
-
};
|
|
306
|
-
}
|
|
3
|
+
var chunkHFPGOTVF_cjs = require('../chunk-HFPGOTVF.cjs');
|
|
4
|
+
var chunkC6Y6CWYD_cjs = require('../chunk-C6Y6CWYD.cjs');
|
|
5
|
+
require('../chunk-A44COQJJ.cjs');
|
|
6
|
+
require('../chunk-BEURCLDV.cjs');
|
|
307
7
|
|
|
308
8
|
// src/internal/auth/oauth-device.ts
|
|
309
9
|
var POLLING_SAFETY_MARGIN_MS = 3e3;
|
|
@@ -319,20 +19,20 @@ async function requestDeviceCode(config, deps) {
|
|
|
319
19
|
}).toString()
|
|
320
20
|
});
|
|
321
21
|
} catch (err) {
|
|
322
|
-
throw new AuthCallbackError(
|
|
22
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
323
23
|
"oauth_device_authorization_failed",
|
|
324
24
|
`device request failed: ${err.message}`
|
|
325
25
|
);
|
|
326
26
|
}
|
|
327
27
|
if (!res.ok) {
|
|
328
|
-
throw new AuthCallbackError(
|
|
28
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
329
29
|
"oauth_device_authorization_failed",
|
|
330
30
|
`device endpoint returned HTTP ${res.status}`
|
|
331
31
|
);
|
|
332
32
|
}
|
|
333
33
|
const data = await res.json();
|
|
334
34
|
if (typeof data.device_code !== "string" || typeof data.user_code !== "string") {
|
|
335
|
-
throw new AuthCallbackError(
|
|
35
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
336
36
|
"oauth_device_authorization_failed",
|
|
337
37
|
"device response missing device_code/user_code"
|
|
338
38
|
);
|
|
@@ -365,14 +65,14 @@ async function pollDeviceToken(config, grant, deps) {
|
|
|
365
65
|
}).toString()
|
|
366
66
|
});
|
|
367
67
|
} catch (err) {
|
|
368
|
-
throw new AuthCallbackError(
|
|
68
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
369
69
|
"oauth_token_exchange_failed",
|
|
370
70
|
`device token poll failed: ${err.message}`
|
|
371
71
|
);
|
|
372
72
|
}
|
|
373
73
|
const data = await res.json().catch(() => ({}));
|
|
374
74
|
if (!res.ok && typeof data.error !== "string") {
|
|
375
|
-
throw new AuthCallbackError(
|
|
75
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
376
76
|
"oauth_token_exchange_failed",
|
|
377
77
|
`device token endpoint returned HTTP ${res.status}`
|
|
378
78
|
);
|
|
@@ -402,14 +102,14 @@ async function pollDeviceToken(config, grant, deps) {
|
|
|
402
102
|
continue;
|
|
403
103
|
}
|
|
404
104
|
if (typeof data.error === "string") {
|
|
405
|
-
throw new AuthCallbackError(
|
|
105
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
406
106
|
"oauth_token_exchange_failed",
|
|
407
107
|
`device authorization rejected: ${data.error}`
|
|
408
108
|
);
|
|
409
109
|
}
|
|
410
110
|
await deps.sleep(intervalMs + POLLING_SAFETY_MARGIN_MS);
|
|
411
111
|
}
|
|
412
|
-
throw new AuthCallbackError(
|
|
112
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
413
113
|
"oauth_device_code_expired",
|
|
414
114
|
"the device code expired before it was approved"
|
|
415
115
|
);
|
|
@@ -432,20 +132,20 @@ async function requestOpenAIUsercode(config, deps) {
|
|
|
432
132
|
body: JSON.stringify({ client_id: config.clientId })
|
|
433
133
|
});
|
|
434
134
|
} catch (err) {
|
|
435
|
-
throw new AuthCallbackError(
|
|
135
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
436
136
|
"oauth_device_authorization_failed",
|
|
437
137
|
`usercode request failed: ${err.message}`
|
|
438
138
|
);
|
|
439
139
|
}
|
|
440
140
|
if (!res.ok) {
|
|
441
|
-
throw new AuthCallbackError(
|
|
141
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
442
142
|
"oauth_device_authorization_failed",
|
|
443
143
|
`usercode endpoint returned HTTP ${res.status}`
|
|
444
144
|
);
|
|
445
145
|
}
|
|
446
146
|
const data = await res.json();
|
|
447
147
|
if (typeof data.device_auth_id !== "string" || typeof data.user_code !== "string") {
|
|
448
|
-
throw new AuthCallbackError(
|
|
148
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
449
149
|
"oauth_device_authorization_failed",
|
|
450
150
|
"usercode response missing device_auth_id/user_code"
|
|
451
151
|
);
|
|
@@ -470,7 +170,7 @@ async function openaiDeviceLogin(config, deps, hooks) {
|
|
|
470
170
|
body: JSON.stringify({ device_auth_id: deviceAuthId, user_code: userCode })
|
|
471
171
|
});
|
|
472
172
|
} catch (err) {
|
|
473
|
-
throw new AuthCallbackError(
|
|
173
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
474
174
|
"oauth_token_exchange_failed",
|
|
475
175
|
`device poll failed: ${err.message}`
|
|
476
176
|
);
|
|
@@ -478,12 +178,12 @@ async function openaiDeviceLogin(config, deps, hooks) {
|
|
|
478
178
|
if (res.ok) {
|
|
479
179
|
const data = await res.json();
|
|
480
180
|
if (typeof data.authorization_code !== "string" || typeof data.code_verifier !== "string") {
|
|
481
|
-
throw new AuthCallbackError(
|
|
181
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
482
182
|
"oauth_token_exchange_failed",
|
|
483
183
|
"device poll returned no authorization_code"
|
|
484
184
|
);
|
|
485
185
|
}
|
|
486
|
-
const tokens = await exchangeCode(
|
|
186
|
+
const tokens = await chunkHFPGOTVF_cjs.exchangeCode(
|
|
487
187
|
config,
|
|
488
188
|
{ code: data.authorization_code, verifier: data.code_verifier },
|
|
489
189
|
deps
|
|
@@ -494,14 +194,14 @@ async function openaiDeviceLogin(config, deps, hooks) {
|
|
|
494
194
|
};
|
|
495
195
|
}
|
|
496
196
|
if (res.status !== 403 && res.status !== 404) {
|
|
497
|
-
throw new AuthCallbackError(
|
|
197
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
498
198
|
"oauth_token_exchange_failed",
|
|
499
199
|
`device poll returned HTTP ${res.status}`
|
|
500
200
|
);
|
|
501
201
|
}
|
|
502
202
|
await deps.sleep(intervalMs + POLLING_SAFETY_MARGIN_MS);
|
|
503
203
|
}
|
|
504
|
-
throw new AuthCallbackError(
|
|
204
|
+
throw new chunkC6Y6CWYD_cjs.AuthCallbackError(
|
|
505
205
|
"oauth_device_code_expired",
|
|
506
206
|
"the device authorization expired before approval"
|
|
507
207
|
);
|
|
@@ -525,60 +225,56 @@ function extractAccountId(tokens) {
|
|
|
525
225
|
return void 0;
|
|
526
226
|
}
|
|
527
227
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
228
|
+
Object.defineProperty(exports, "CredentialError", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () { return chunkHFPGOTVF_cjs.CredentialError; }
|
|
231
|
+
});
|
|
232
|
+
Object.defineProperty(exports, "authFilePath", {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function () { return chunkHFPGOTVF_cjs.authFilePath; }
|
|
235
|
+
});
|
|
236
|
+
Object.defineProperty(exports, "credentialHome", {
|
|
237
|
+
enumerable: true,
|
|
238
|
+
get: function () { return chunkHFPGOTVF_cjs.credentialHome; }
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(exports, "ensureFreshCredential", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
get: function () { return chunkHFPGOTVF_cjs.ensureFreshCredential; }
|
|
243
|
+
});
|
|
244
|
+
Object.defineProperty(exports, "exchangeCode", {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function () { return chunkHFPGOTVF_cjs.exchangeCode; }
|
|
247
|
+
});
|
|
248
|
+
Object.defineProperty(exports, "persistOAuthTokens", {
|
|
249
|
+
enumerable: true,
|
|
250
|
+
get: function () { return chunkHFPGOTVF_cjs.persistOAuthTokens; }
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(exports, "readAuthFile", {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function () { return chunkHFPGOTVF_cjs.readAuthFile; }
|
|
255
|
+
});
|
|
256
|
+
Object.defineProperty(exports, "readStoredOAuth", {
|
|
257
|
+
enumerable: true,
|
|
258
|
+
get: function () { return chunkHFPGOTVF_cjs.readStoredOAuth; }
|
|
259
|
+
});
|
|
260
|
+
Object.defineProperty(exports, "refreshOAuthTokens", {
|
|
261
|
+
enumerable: true,
|
|
262
|
+
get: function () { return chunkHFPGOTVF_cjs.refreshOAuthTokens; }
|
|
263
|
+
});
|
|
264
|
+
Object.defineProperty(exports, "resolveCredential", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function () { return chunkHFPGOTVF_cjs.resolveCredential; }
|
|
267
|
+
});
|
|
268
|
+
Object.defineProperty(exports, "writeCredential", {
|
|
269
|
+
enumerable: true,
|
|
270
|
+
get: function () { return chunkHFPGOTVF_cjs.writeCredential; }
|
|
271
|
+
});
|
|
568
272
|
exports.deviceLogin = deviceLogin;
|
|
569
|
-
exports.ensureFreshCredential = ensureFreshCredential;
|
|
570
|
-
exports.exchangeCode = exchangeCode;
|
|
571
273
|
exports.extractAccountId = extractAccountId;
|
|
572
274
|
exports.openaiDeviceLogin = openaiDeviceLogin;
|
|
573
275
|
exports.parseJwtClaims = parseJwtClaims;
|
|
574
|
-
exports.persistOAuthTokens = persistOAuthTokens;
|
|
575
276
|
exports.pollDeviceToken = pollDeviceToken;
|
|
576
|
-
exports.readAuthFile = readAuthFile;
|
|
577
|
-
exports.readStoredOAuth = readStoredOAuth;
|
|
578
|
-
exports.refreshOAuthTokens = refreshOAuthTokens;
|
|
579
277
|
exports.requestDeviceCode = requestDeviceCode;
|
|
580
278
|
exports.requestOpenAIUsercode = requestOpenAIUsercode;
|
|
581
|
-
exports.resolveCredential = resolveCredential;
|
|
582
|
-
exports.writeCredential = writeCredential;
|
|
583
279
|
//# sourceMappingURL=index.cjs.map
|
|
584
280
|
//# sourceMappingURL=index.cjs.map
|