@nervekit/desktop 0.42.0 → 0.43.1
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/THIRD-PARTY-LICENSES.txt +210 -16
- package/dist/builtin/configure-nerve/SKILL.md +19 -10
- package/dist/builtin/configure-nerve/reference/agent-preferences.md +9 -0
- package/dist/builtin/configure-nerve/reference/agent-profiles.md +2 -6
- package/dist/builtin/configure-nerve/reference/agents-md.md +1 -1
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-api/artifacts.d.ts +10 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-api/text.d.ts +4 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/components.d.ts +2 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/collections/match-terms.d.ts +8 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/components/composites/callout/callout.svelte.d.ts +1 -1
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/components/composites/log-view/index.d.ts +3 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/components/composites/log-view/log-source.d.ts +43 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/components/composites/log-view/log-view.svelte.d.ts +22 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/components/composites/log-view/log-window.d.ts +77 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/components/composites/log-view/terminal-text.svelte.d.ts +6 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/display/status.d.ts +3 -0
- package/dist/builtin/configure-nerve/reference/extensions/api/extension-sdk/components/ui-kit/terminal/ansi.d.ts +4 -0
- package/dist/builtin/configure-nerve/{guide/extensions.md → reference/extensions/build.md} +4 -4
- package/dist/builtin/configure-nerve/reference/extensions/components.md +2 -1
- package/dist/builtin/configure-nerve/reference/extensions/manifest.md +1 -1
- package/dist/builtin/configure-nerve/reference/extensions/overview.md +2 -2
- package/dist/builtin/configure-nerve/{scripts → reference/extensions/scripts}/lib.mjs +2 -2
- package/dist/builtin/configure-nerve/reference/extensions/scripts/nerve-version.json +1 -0
- package/dist/builtin/configure-nerve/reference/extensions/sharing.md +2 -2
- package/dist/builtin/configure-nerve/reference/extensions/themes.md +1 -1
- package/dist/builtin/configure-nerve/reference/permissions.md +2 -2
- package/dist/builtin/configure-nerve/reference/prompt-suggestions.md +2 -2
- package/dist/builtin/configure-nerve/reference/skills.md +9 -9
- package/dist/{chunk-QFK2SWD2.js → chunk-34SYO66C.js} +11 -11
- package/dist/{chunk-6ZS7TA6E.js → chunk-35O66NLU.js} +2 -2
- package/dist/{chunk-DHIDYKXJ.js → chunk-3LWB5SGT.js} +1781 -1719
- package/dist/{chunk-7FSH3ABG.js → chunk-57A5HFXL.js} +4 -4
- package/dist/{chunk-EF7ZZKA3.js → chunk-5K7U6UXA.js} +3 -3
- package/dist/{chunk-WIQEPAUG.js → chunk-5S5O3V5G.js} +11 -10
- package/dist/{chunk-MTHLTFG4.js → chunk-5VLAJMQQ.js} +97 -105
- package/dist/{chunk-MI6L5CEA.js → chunk-5WMHGTVL.js} +2 -2
- package/dist/{chunk-NVVW3MWJ.js → chunk-6IJORN3N.js} +9 -9
- package/dist/{chunk-OMCM3MHS.js → chunk-7GSR2AW5.js} +10 -9
- package/dist/{chunk-WG62RHZ2.js → chunk-7MJT6LHU.js} +14 -4
- package/dist/{chunk-DDBE2VLT.js → chunk-A3OFIREH.js} +2 -2
- package/dist/{chunk-ZGWXLG5X.js → chunk-BNBEFI2M.js} +66 -76
- package/dist/{chunk-7RPHIJT3.js → chunk-C7L4BBGD.js} +4 -4
- package/dist/{chunk-2ICPO4UM.js → chunk-CZXRZEV4.js} +16 -14
- package/dist/{chunk-PVPJAGWR.js → chunk-EOZLBW5E.js} +2 -2
- package/dist/{chunk-U5KGV63C.js → chunk-EZJH7ED5.js} +1 -1
- package/dist/{chunk-RL52LSTV.js → chunk-F3X2KHP4.js} +1 -1
- package/dist/{chunk-Q3C7TQ2M.js → chunk-FNWUCFVO.js} +3 -3
- package/dist/chunk-FQVIQOV5.js +163 -0
- package/dist/{chunk-LP4APBBQ.js → chunk-FZ7U3GZI.js} +1 -1
- package/dist/{chunk-MBMZEIOG.js → chunk-G5SVCJCT.js} +38 -51
- package/dist/{chunk-62DQXVPO.js → chunk-HDTS5AS5.js} +26 -7
- package/dist/{chunk-WC5HHPPM.js → chunk-HRJJKZGM.js} +1 -1
- package/dist/chunk-I7OMW4RJ.js +87 -0
- package/dist/{chunk-TQURLRHD.js → chunk-IL67WXRA.js} +1 -1
- package/dist/{chunk-QDEH776O.js → chunk-KBBBQCYV.js} +179 -20
- package/dist/{chunk-KUFIFCB4.js → chunk-KDGUQYYY.js} +1 -1
- package/dist/{chunk-IRRR3PWN.js → chunk-KQD4DYEP.js} +68 -35
- package/dist/{chunk-JBEWFFOK.js → chunk-LIIGX2XX.js} +1 -1
- package/dist/{chunk-IVBMHEPK.js → chunk-LX33FMTS.js} +23 -36
- package/dist/{chunk-HPINJGBO.js → chunk-METH7J6V.js} +13 -12
- package/dist/{chunk-N6BUYKF3.js → chunk-MLE6MKPY.js} +7 -7
- package/dist/{chunk-3CZXUKLG.js → chunk-MRDORR5Z.js} +8 -1
- package/dist/{chunk-6IHXVT5H.js → chunk-NSISYP6D.js} +1 -1
- package/dist/{chunk-P72Y5ZBH.js → chunk-O2IYZBX6.js} +15 -26
- package/dist/{chunk-TSAUBRRU.js → chunk-P7GPT4XL.js} +1 -1
- package/dist/{chunk-F5XCJ6UV.js → chunk-PA37GH3T.js} +33 -58
- package/dist/{chunk-BACYVEE6.js → chunk-QC6DSC4D.js} +2 -2
- package/dist/{chunk-ZVH6EB7S.js → chunk-QKRWXA5W.js} +1 -1
- package/dist/{chunk-D6C32XHS.js → chunk-QQPLW3ZX.js} +17359 -12634
- package/dist/chunk-QQPLW3ZX.js.LEGAL.txt +59 -0
- package/dist/{chunk-N4OXAS3A.js → chunk-R22FWLXU.js} +1 -1
- package/dist/{chunk-7HGFEQSD.js → chunk-R7UJIPJA.js} +5 -5
- package/dist/{chunk-NW3DH7IK.js → chunk-RAHBWFWV.js} +8457 -2726
- package/dist/{chunk-O5JHHRFN.js → chunk-RMV6IZ2C.js} +32 -116
- package/dist/{chunk-Z6AY5VOZ.js → chunk-RQIN5JYO.js} +9 -6
- package/dist/{chunk-Q5E4ZL2R.js → chunk-S2UG5HD6.js} +1 -1
- package/dist/{chunk-U3TEC52G.js → chunk-S637DPAG.js} +1 -1
- package/dist/chunk-S6KM4DOB.js +37 -0
- package/dist/{chunk-MPDKZVHT.js → chunk-SVX46YXY.js} +1 -3
- package/dist/{chunk-XTUSLUQ7.js → chunk-TLDULBKV.js} +70 -24
- package/dist/{chunk-L5WGVYXM.js → chunk-UFE7IMKQ.js} +2 -2
- package/dist/{chunk-ZUWBEV2O.js → chunk-UQHUYEFW.js} +1 -1
- package/dist/{chunk-XM27UVWN.js → chunk-V7WOX4O7.js} +3 -3
- package/dist/{chunk-W7LEYYFH.js → chunk-WJAHXDL4.js} +41 -32
- package/dist/{chunk-6GUJQURI.js → chunk-WLTE6OJM.js} +2 -2
- package/dist/{chunk-BG2KGLIA.js → chunk-WMZAJ7XA.js} +2 -2
- package/dist/chunk-WOLKTL4F.js +32 -0
- package/dist/{chunk-H5CAHDII.js → chunk-WQHOXPLV.js} +51929 -50256
- package/dist/{chunk-EUT45AKW.js → chunk-YODV42KQ.js} +25 -32
- package/dist/{chunk-FCAIYPDJ.js → chunk-ZFFWWZIA.js} +2 -2
- package/dist/{chunk-376GN4PB.js → chunk-ZTG7VIGB.js} +173 -79
- package/dist/{chunk-O6FDXE54.js → chunk-ZVUAJ7UV.js} +25 -36
- package/dist/daemon.js +15 -15
- package/dist/ext-frame/base.css +1 -1
- package/dist/extension-assets/atlassian/docs/confluence-writing.md +5 -5
- package/dist/extension-assets/diagram/bundle.js +3 -0
- package/dist/git-isolated-reader-helper.js +1 -1
- package/dist/main.js +57 -128
- package/dist/quick-script-docs/runtime/artifacts.md +11 -0
- package/dist/quick-script-docs/runtime/documents.md +21 -12
- package/dist/quick-script-docs/runtime/editing.md +44 -0
- package/dist/quick-script-docs/runtime/images.md +1 -1
- package/dist/sandbox-libraries/credential-runtime.js +3 -0
- package/dist/sandbox-libraries/extension-runtime.js +3 -0
- package/dist/web/assets/AsyncBashCenterHost-BlxXoXd6.js +2 -0
- package/dist/web/assets/{ConversationListItem-CCaGnyA1.js → ConversationListItem-DfSMoYfe.js} +3 -3
- package/dist/web/assets/{ConversationsWorkbenchPanel-DLM3saY5.js → ConversationsWorkbenchPanel-BOIMwRZx.js} +1 -1
- package/dist/web/assets/{DiscoverCenterHost-DVNL8uZQ.js → DiscoverCenterHost-Bi6audxE.js} +1 -1
- package/dist/web/assets/{ExtensionPageCenterHost-CHKg6c3M.js → ExtensionPageCenterHost-DEg-LHcU.js} +1 -1
- package/dist/web/assets/FileCenterComposedHost-CPwzMZI9.js +1 -0
- package/dist/web/assets/FilesWorkbenchPanel-DnKQd6QC.js +12 -0
- package/dist/web/assets/{GitDiffCenterHost-DmtKqHer.js → GitDiffCenterHost-DtsFPa1z.js} +1 -1
- package/dist/web/assets/{GitWorkbenchPanel-BmyMyvL8.js → GitWorkbenchPanel-BfJKdIkE.js} +1 -1
- package/dist/web/assets/LaunchCenterHost-C5Bd9ELF.js +1 -0
- package/dist/web/assets/LaunchConfigurationNotice-Dp3rBKil.js +1 -0
- package/dist/web/assets/LaunchOutputPane-BuCSQcxg.js +2 -0
- package/dist/web/assets/LaunchesWorkbenchPanel-CMd3Xcbp.js +1 -0
- package/dist/web/assets/{LogsCenterHost-CdqD6zH8.js → LogsCenterHost-Be6EbsrZ.js} +1 -1
- package/dist/web/assets/{MermaidCenterHost-BjwJLU-2.js → MermaidCenterHost-BdQ8CGeb.js} +1 -1
- package/dist/web/assets/MobileFilesBody-C1q-YRaD.js +1 -0
- package/dist/web/assets/MobileFilesHost-DK769osZ.js +1 -0
- package/dist/web/assets/MobileLaunchOutputHost-BLDX3-Tn.js +1 -0
- package/dist/web/assets/MobileLaunchesHost-Dv2gfOEY.js +2 -0
- package/dist/web/assets/{MobileNoteEditorHost-lfAeMVH9.js → MobileNoteEditorHost-ZRzzwCYD.js} +1 -1
- package/dist/web/assets/{MobileNotesHost-DOi0goPc.js → MobileNotesHost-COOtVfAp.js} +2 -2
- package/dist/web/assets/MobileSettingsHost-BU2lCcG2.js +2 -0
- package/dist/web/assets/{MobileSettingsPageHost-CtpUzfVG.js → MobileSettingsPageHost-BC5LOq7Y.js} +1 -1
- package/dist/web/assets/{NotesWorkbenchPanel-CsbMYHAw.js → NotesWorkbenchPanel-BiTDbfjj.js} +1 -1
- package/dist/web/assets/{PullRequestCenterHost-B22Ua7bA.js → PullRequestCenterHost-DV3V3yxm.js} +1 -1
- package/dist/web/assets/{PullRequestsWorkbenchPanel-DOIHvZ6H.js → PullRequestsWorkbenchPanel-Dpvt9W-q.js} +1 -1
- package/dist/web/assets/SearchWorkbenchPanel-Bfj8fwPg.js +1 -0
- package/dist/web/assets/SettingsCenterHost-sHWZehrB.js +1 -0
- package/dist/web/assets/SystemPromptCenterHost-CA9i8UbB.js +2 -0
- package/dist/web/assets/{ThemePreviewPicker-B_DTUsui.js → ThemePreviewPicker-PySjP6aS.js} +1 -1
- package/dist/web/assets/adapters-fVomUv3-.js +1 -0
- package/dist/web/assets/agent-profiles.svelte-CenutfXA.js +1 -0
- package/dist/web/assets/appearance.svelte-BKxiMJ3c.js +1 -0
- package/dist/web/assets/center-tabs.svelte-i0d5hUO3.js +2 -0
- package/dist/web/assets/{channel-CxF1CmEY.js → channel-DB8mSlhP.js} +2 -2
- package/dist/web/assets/{client-CVZRorEj.js → client-DHxa8CWS.js} +1 -1
- package/dist/web/assets/code-CsVM8hq8.js +7 -0
- package/dist/web/assets/conversation-activity-CZJfUGoL.js +1 -0
- package/dist/web/assets/conversation-connection-CaV3KY7Z.js +1 -0
- package/dist/web/assets/discover-Do0oQbdF.js +4 -0
- package/dist/web/assets/{dist-HTsJAisd.js → dist-B887qHIr.js} +1 -1
- package/dist/web/assets/{dist-CDM0qUmO.js → dist-Bg8Vm0DE.js} +1 -1
- package/dist/web/assets/{dist-BVmTdBxj.js → dist-C2z70795.js} +1 -1
- package/dist/web/assets/{dist-EmwCDpCc.js → dist-CcBabmlO.js} +1 -1
- package/dist/web/assets/{dist-DkQMSgZ5.js → dist-HSfz5y1D.js} +1 -1
- package/dist/web/assets/{dist-DZN4bTV3.js → dist-HUxdivoH.js} +1 -1
- package/dist/web/assets/{dist-BWsookwC.js → dist-wvfFRict.js} +1 -1
- package/dist/web/assets/{easing-DfoPn4-z.js → easing-B6dSt4eu.js} +1 -1
- package/dist/web/assets/empty-CtUlV5QU.js +1 -0
- package/dist/web/assets/eraser-B8qFMviR.js +1 -0
- package/dist/web/assets/{extension-themes.svelte-BAce41Wm.js → extension-themes.svelte-nXDPOl_E.js} +2 -2
- package/dist/web/assets/{file-tabs.svelte-CaZRhyw0.js → file-tabs.svelte-BxCAtif2.js} +2 -2
- package/dist/web/assets/files-DcUCbPX1.js +156 -0
- package/dist/web/assets/{files-dFQS0tcX.css → files-N9JiAfxr.css} +1 -1
- package/dist/web/assets/filesystem-9b72Tdkw.js +1 -0
- package/dist/web/assets/floating-toolbar-Cqtfs8M7.js +1 -0
- package/dist/web/assets/{git-store.svelte-DkeLA_WZ.js → git-store.svelte-DIVFeLGG.js} +1 -1
- package/dist/web/assets/{icon-action-efe9ZEWq.js → icon-action-C9h3TdBz.js} +1 -1
- package/dist/web/assets/index-6mIS-NWJ.js +165 -0
- package/dist/web/assets/index-D2aeJHnc.css +1 -0
- package/dist/web/assets/launches-Dafgn_my.js +5 -0
- package/dist/web/assets/launches.api-ZZ-IwIQ_.js +1 -0
- package/dist/web/assets/log-view-Dqspnrs0.js +1 -0
- package/dist/web/assets/{logs.api-gZ2mVC9q.js → logs.api-BxN21LL0.js} +1 -1
- package/dist/web/assets/{maintenance-state.svelte-xMmmI9yr.js → maintenance-state.svelte-BAKtNG-i.js} +2 -2
- package/dist/web/assets/menu-icons-tnCN992t.js +1 -0
- package/dist/web/assets/{mermaid-ACpEwsfj.js → mermaid-DL5xfcqL.js} +1 -1
- package/dist/web/assets/mobile-launch-rows-DR6V5AUH.js +1 -0
- package/dist/web/assets/page-tabs.svelte-wduGZwmi.js +4 -0
- package/dist/web/assets/panel-BW0llJiU.js +1 -0
- package/dist/web/assets/popover-panel-DO5nPkvA.js +4 -0
- package/dist/web/assets/pr-view-loader.svelte-RSHgeFYM.js +1 -0
- package/dist/web/assets/progress-CRuzrJQt.js +1 -0
- package/dist/web/assets/{scratch-notes-state.svelte-rBeSOn4h.js → scratch-notes-state.svelte-BcqgnE6z.js} +1 -1
- package/dist/web/assets/{scratch-notes.api-Co80EGtL.js → scratch-notes.api-D9wtv1Mn.js} +1 -1
- package/dist/web/assets/settings-CKsESd2i.js +1 -0
- package/dist/web/assets/settings-Crny2xGb.js +1 -0
- package/dist/web/assets/settings-scope-BiY5kIdC.js +35 -0
- package/dist/web/assets/shell-BiZy0tcZ.js +1 -0
- package/dist/web/assets/shell-layout.svelte-9B3T60gv.js +2 -0
- package/dist/web/assets/{lock-open-BBTCOUg5.js → tag-Bp1l7psd.js} +1 -1
- package/dist/web/assets/time-egBWJGDu.js +1 -0
- package/dist/web/assets/views-Bl6CiPE0.js +2 -0
- package/dist/web/assets/{workbench-connection-Gsy9bIuP.js → workbench-connection-CyMud_mZ.js} +1 -1
- package/dist/web/assets/{workspace-CUoFFOwJ.js → workspace-V-yCOfn1.js} +1 -1
- package/dist/web/assets/workspace-actions.svelte-D8-Agx2d.js +1 -0
- package/dist/web/assets/{workspace-selectors.svelte-D-EQR_-Z.js → workspace-selectors.svelte-DQ1mQdvX.js} +2 -2
- package/dist/web/index.html +47 -48
- package/dist/web/sw.js +1 -1
- package/dist/worker.js +14 -14
- package/package.json +7 -7
- package/dist/builtin/configure-nerve/guide/collaboration.md +0 -15
- package/dist/builtin/configure-nerve/scripts/nerve-version.json +0 -1
- package/dist/chunk-D6C32XHS.js.LEGAL.txt +0 -25
- package/dist/chunk-RJR7DJJK.js +0 -32
- package/dist/chunk-UVRULOOP.js +0 -35
- package/dist/quick-script-docs/runtime/files.md +0 -11
- package/dist/web/assets/AsyncBashCenterHost-DldW4utc.js +0 -2
- package/dist/web/assets/FileCenterComposedHost-kxFWeFmP.js +0 -1
- package/dist/web/assets/FilesWorkbenchPanel-BxjUf50f.js +0 -12
- package/dist/web/assets/LaunchCenterHost-1xrIDf73.js +0 -1
- package/dist/web/assets/LaunchConfigurationNotice-BfRdIOv0.js +0 -1
- package/dist/web/assets/LaunchesWorkbenchPanel-BhCyWFHf.js +0 -1
- package/dist/web/assets/LogStream-C70iQmUI.css +0 -1
- package/dist/web/assets/LogStream-CibF_jgC.js +0 -1
- package/dist/web/assets/MobileFilesBody-4bLT2m0j.js +0 -1
- package/dist/web/assets/MobileFilesHost-X_0r4Z16.js +0 -1
- package/dist/web/assets/MobileLaunchOutputHost-BEchaBtD.js +0 -1
- package/dist/web/assets/MobileLaunchesHost-S7Z3DySI.js +0 -2
- package/dist/web/assets/MobileSettingsHost-94-sABuO.js +0 -2
- package/dist/web/assets/SearchWorkbenchPanel-CKccBrNr.js +0 -1
- package/dist/web/assets/SettingsCenterHost-BM-xIy5S.js +0 -1
- package/dist/web/assets/SystemPromptCenterHost-VL4DXNId.js +0 -1
- package/dist/web/assets/adapters-CbIIxNp9.js +0 -1
- package/dist/web/assets/agent-profiles.svelte-8LAIYKmb.js +0 -1
- package/dist/web/assets/appearance.svelte-CLR_fMAx.js +0 -1
- package/dist/web/assets/center-tabs.svelte-BCriw5Eu.js +0 -1
- package/dist/web/assets/code-H_8FkG35.js +0 -7
- package/dist/web/assets/conversation-activity-Dl7udunb.js +0 -1
- package/dist/web/assets/conversation-connection-B226pY9T.js +0 -1
- package/dist/web/assets/discover-DTlfL84I.js +0 -4
- package/dist/web/assets/empty-B8eEKvqc.js +0 -1
- package/dist/web/assets/file-code-CMYYNL9l.js +0 -1
- package/dist/web/assets/files-eAvb-uRC.js +0 -48
- package/dist/web/assets/filesystem-CmkTuQNl.js +0 -1
- package/dist/web/assets/floating-toolbar-BwJ2tdsN.js +0 -1
- package/dist/web/assets/index-CH1Mvlxk.css +0 -1
- package/dist/web/assets/index-DNfABG4x.js +0 -172
- package/dist/web/assets/launches-ZxeZFPI8.js +0 -5
- package/dist/web/assets/launches.api-BEsX6AKZ.js +0 -1
- package/dist/web/assets/launches.svelte-QFDoCgug.js +0 -2
- package/dist/web/assets/menu-icons-C24r3TCF.js +0 -1
- package/dist/web/assets/mobile-launch-rows-Ci7ldwx6.js +0 -1
- package/dist/web/assets/page-tabs.svelte-VZp38ac7.js +0 -4
- package/dist/web/assets/panel-DEG1zXHj.js +0 -1
- package/dist/web/assets/popover-panel-B1cUdhY5.js +0 -5
- package/dist/web/assets/pr-view-loader.svelte-CZfxwzwL.js +0 -1
- package/dist/web/assets/progress-D2Cb6vK_.js +0 -1
- package/dist/web/assets/settings-B_ed0eye.js +0 -1
- package/dist/web/assets/settings-Dzj6Az_d.js +0 -1
- package/dist/web/assets/settings-scope-BjQBgG9v.js +0 -33
- package/dist/web/assets/shell-CbR1KanT.js +0 -1
- package/dist/web/assets/shell-layout.svelte-D5u4i1UJ.js +0 -2
- package/dist/web/assets/time-DqcZ_PFK.js +0 -1
- package/dist/web/assets/views-D4ociG21.js +0 -2
- package/dist/web/assets/workspace-actions.svelte-BMp3D2e1.js +0 -1
- /package/dist/builtin/configure-nerve/{scripts → reference/extensions/scripts}/create-extension.mjs +0 -0
- /package/dist/builtin/configure-nerve/{scripts → reference/extensions/scripts}/install-extension.mjs +0 -0
- /package/dist/builtin/configure-nerve/{scripts → reference/extensions/scripts}/upgrade-extension.mjs +0 -0
- /package/dist/builtin/configure-nerve/{reference/writing-for-agents.md → writing-for-agents.md} +0 -0
- /package/dist/{chunk-H5CAHDII.js.LEGAL.txt → chunk-WQHOXPLV.js.LEGAL.txt} +0 -0
|
@@ -3,16 +3,16 @@ const require = __nerveCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
startOAuthCallbackServer,
|
|
5
5
|
waitForCallbackOrManualInput
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WLTE6OJM.js";
|
|
7
7
|
import {
|
|
8
8
|
generatePKCE
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QC6DSC4D.js";
|
|
10
10
|
import {
|
|
11
11
|
getProviderEnvValue
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LIIGX2XX.js";
|
|
13
13
|
import "./chunk-CWESUMYQ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
15
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js
|
|
16
16
|
var decode = (s) => atob(s);
|
|
17
17
|
var CLIENT_ID = decode("OWQxYzI1MGEtZTYxYi00NGQ5LTg4ZWQtNTk0NGQxOTYyZjVl");
|
|
18
18
|
var AUTHORIZE_URL = "https://claude.ai/oauth/authorize";
|
|
@@ -2,13 +2,13 @@ import { createRequire as __nerveCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __nerveCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
trustedHttpUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S2UG5HD6.js";
|
|
6
6
|
import {
|
|
7
7
|
pollOAuthDeviceCodeFlow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S637DPAG.js";
|
|
9
9
|
import "./chunk-CWESUMYQ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
11
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js
|
|
12
12
|
var CLIENT_ID = "1031625952748946";
|
|
13
13
|
var AUTH_HOST = "https://auth.meta.com";
|
|
14
14
|
var DEVICE_AUTHORIZATION_URL = `${AUTH_HOST}/oidc/device/authorization/`;
|
|
@@ -2,20 +2,21 @@ import { createRequire as __nerveCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __nerveCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
classifySystemOne
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7MJT6LHU.js";
|
|
6
6
|
import {
|
|
7
7
|
isRecord
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-CZXRZEV4.js";
|
|
9
|
+
import "./chunk-R22FWLXU.js";
|
|
10
|
+
import "./chunk-MRDORR5Z.js";
|
|
11
|
+
import "./chunk-EOZLBW5E.js";
|
|
12
|
+
import "./chunk-NSISYP6D.js";
|
|
13
|
+
import "./chunk-WJAHXDL4.js";
|
|
14
|
+
import "./chunk-A3OFIREH.js";
|
|
15
|
+
import "./chunk-FNWUCFVO.js";
|
|
16
|
+
import "./chunk-EZJH7ED5.js";
|
|
16
17
|
import "./chunk-CWESUMYQ.js";
|
|
17
18
|
|
|
18
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
19
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-workers-ai-system-one.js
|
|
19
20
|
var LABEL = "Cloudflare Workers AI";
|
|
20
21
|
function cloudflareErrorMessage(errors) {
|
|
21
22
|
if (Array.isArray(errors)) {
|
|
@@ -469,7 +469,10 @@ function wrapSearchIndex(handle, options = {}) {
|
|
|
469
469
|
// packages/native/dist/files/index.js
|
|
470
470
|
var files_exports = {};
|
|
471
471
|
__export(files_exports, {
|
|
472
|
+
SearchTimeoutError: () => SearchTimeoutError,
|
|
472
473
|
createPathIndex: () => createPathIndex,
|
|
474
|
+
findFiles: () => findFiles,
|
|
475
|
+
grep: () => grep,
|
|
473
476
|
isAvailable: () => isAvailable,
|
|
474
477
|
listDirectory: () => listDirectory,
|
|
475
478
|
searchContent: () => searchContent
|
|
@@ -484,7 +487,9 @@ function isAvailable() {
|
|
|
484
487
|
"rebuildFilePathIndex",
|
|
485
488
|
"closeFilePathIndex",
|
|
486
489
|
"searchFileContent",
|
|
487
|
-
"cancelFileContentSearch"
|
|
490
|
+
"cancelFileContentSearch",
|
|
491
|
+
"grepFiles",
|
|
492
|
+
"findProjectFiles"
|
|
488
493
|
].every((name) => typeof files[name] === "function");
|
|
489
494
|
}
|
|
490
495
|
function required(name) {
|
|
@@ -553,6 +558,42 @@ async function searchContent(root, options) {
|
|
|
553
558
|
signal?.removeEventListener("abort", onAbort);
|
|
554
559
|
}
|
|
555
560
|
}
|
|
561
|
+
var SearchTimeoutError = class extends Error {
|
|
562
|
+
timeoutMs;
|
|
563
|
+
constructor(timeoutMs) {
|
|
564
|
+
super(`Search timed out${timeoutMs ? ` after ${timeoutMs}ms` : ""}.`);
|
|
565
|
+
this.timeoutMs = timeoutMs;
|
|
566
|
+
this.name = "SearchTimeoutError";
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
async function cancellable(signal, timeoutMs, run) {
|
|
570
|
+
signal?.throwIfAborted();
|
|
571
|
+
const cancelId = nextCancelId++;
|
|
572
|
+
const onAbort = () => files.cancelFileContentSearch?.(cancelId);
|
|
573
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
574
|
+
try {
|
|
575
|
+
const result = await run(cancelId);
|
|
576
|
+
signal?.throwIfAborted();
|
|
577
|
+
return result;
|
|
578
|
+
} catch (error) {
|
|
579
|
+
signal?.throwIfAborted();
|
|
580
|
+
if (error instanceof Error && error.message === "timeout")
|
|
581
|
+
throw new SearchTimeoutError(timeoutMs);
|
|
582
|
+
throw error;
|
|
583
|
+
} finally {
|
|
584
|
+
signal?.removeEventListener("abort", onAbort);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
async function grep(displayRoot, roots, options) {
|
|
588
|
+
const search = required("grepFiles");
|
|
589
|
+
const { signal, ...request } = options;
|
|
590
|
+
return cancellable(signal, request.timeoutMs, (cancelId) => search(displayRoot, roots, { ...request, cancelId }));
|
|
591
|
+
}
|
|
592
|
+
async function findFiles(root, options) {
|
|
593
|
+
const find = required("findProjectFiles");
|
|
594
|
+
const { signal, ...request } = options;
|
|
595
|
+
return cancellable(signal, request.timeoutMs, (cancelId) => find(root, { ...request, cancelId }));
|
|
596
|
+
}
|
|
556
597
|
|
|
557
598
|
// packages/native/dist/image/index.js
|
|
558
599
|
var image_exports = {};
|
|
@@ -593,6 +634,7 @@ async function imageInfo(data) {
|
|
|
593
634
|
// packages/native/dist/sandbox/index.js
|
|
594
635
|
var sandbox_exports = {};
|
|
595
636
|
__export(sandbox_exports, {
|
|
637
|
+
MAX_ACTIVE_SCRIPTS: () => MAX_ACTIVE_SCRIPTS,
|
|
596
638
|
SandboxInvocationError: () => SandboxInvocationError,
|
|
597
639
|
isAvailable: () => isAvailable3,
|
|
598
640
|
isPersistentAvailable: () => isPersistentAvailable,
|
|
@@ -785,6 +827,7 @@ async function openSandbox(options) {
|
|
|
785
827
|
}
|
|
786
828
|
|
|
787
829
|
// packages/native/dist/sandbox/index.js
|
|
830
|
+
var MAX_ACTIVE_SCRIPTS = 4;
|
|
788
831
|
var EXIT_GRACE_MS = 5e3;
|
|
789
832
|
var native3 = binding;
|
|
790
833
|
function isAvailable3() {
|
|
@@ -911,74 +954,21 @@ function errorText(error) {
|
|
|
911
954
|
return error instanceof Error ? error.message : String(error);
|
|
912
955
|
}
|
|
913
956
|
|
|
914
|
-
// packages/native/dist/git/git-client.js
|
|
915
|
-
var NativeGitReadError = class extends Error {
|
|
916
|
-
category;
|
|
917
|
-
constructor(category, message) {
|
|
918
|
-
super(message);
|
|
919
|
-
this.category = category;
|
|
920
|
-
this.name = "NativeGitReadError";
|
|
921
|
-
}
|
|
922
|
-
};
|
|
923
|
-
async function readGitRepositoryInfo(path) {
|
|
924
|
-
const result = await binding.readGitRepositoryInfo(path);
|
|
925
|
-
if (result.error)
|
|
926
|
-
throw nativeGitError(result.error);
|
|
927
|
-
if (!result.repository)
|
|
928
|
-
throw new NativeGitReadError("internal", "Native Git repository info was empty.");
|
|
929
|
-
return result.repository;
|
|
930
|
-
}
|
|
931
|
-
async function readGitSnapshot(path, options) {
|
|
932
|
-
const result = await binding.readGitSnapshot(path, options);
|
|
933
|
-
if (result.error)
|
|
934
|
-
throw nativeGitError(result.error);
|
|
935
|
-
if (!result.snapshot)
|
|
936
|
-
throw new NativeGitReadError("internal", "Native Git snapshot was empty.");
|
|
937
|
-
return result.snapshot;
|
|
938
|
-
}
|
|
939
|
-
async function checkGitAncestry(path, ancestor, descendant) {
|
|
940
|
-
const result = await binding.checkGitAncestry(path, ancestor, descendant);
|
|
941
|
-
if (result.error)
|
|
942
|
-
throw nativeGitError(result.error);
|
|
943
|
-
if (!result.ancestry)
|
|
944
|
-
throw new NativeGitReadError("internal", "Native Git ancestry was empty.");
|
|
945
|
-
return result.ancestry;
|
|
946
|
-
}
|
|
947
|
-
async function resolveGitRevision(path, revision) {
|
|
948
|
-
const result = await binding.resolveGitRevision(path, revision);
|
|
949
|
-
if (result.error)
|
|
950
|
-
throw nativeGitError(result.error);
|
|
951
|
-
if (!result.oid)
|
|
952
|
-
throw new NativeGitReadError("internal", "Native Git revision was empty.");
|
|
953
|
-
return result.oid;
|
|
954
|
-
}
|
|
955
|
-
async function countUnpublishedGitCommits(path, remote) {
|
|
956
|
-
const result = await binding.countUnpublishedGitCommits(path, remote);
|
|
957
|
-
if (result.error)
|
|
958
|
-
throw nativeGitError(result.error);
|
|
959
|
-
if (result.count === void 0)
|
|
960
|
-
throw new NativeGitReadError("internal", "Native Git count was empty.");
|
|
961
|
-
return result.count;
|
|
962
|
-
}
|
|
963
|
-
async function readGitFileDiff(path, original, modified) {
|
|
964
|
-
const result = await binding.readGitFileDiff(path, original, modified);
|
|
965
|
-
if (result.error)
|
|
966
|
-
throw nativeGitError(result.error);
|
|
967
|
-
if (!result.diff)
|
|
968
|
-
throw new NativeGitReadError("internal", "Native Git file diff was empty.");
|
|
969
|
-
return result.diff;
|
|
970
|
-
}
|
|
971
|
-
function validateGitBranchName(name) {
|
|
972
|
-
return binding.validateGitBranchName(name);
|
|
973
|
-
}
|
|
974
|
-
function nativeGitError(detail) {
|
|
975
|
-
return new NativeGitReadError(detail.category, detail.message);
|
|
976
|
-
}
|
|
977
|
-
|
|
978
957
|
// packages/native/dist/git/read-operation.js
|
|
979
958
|
function fail(category, message) {
|
|
980
959
|
throw normalizeNativeError({ category, message, retryable: false });
|
|
981
960
|
}
|
|
961
|
+
function assertBoundedPath(path, message) {
|
|
962
|
+
if (typeof path !== "string" || !path || Buffer.byteLength(path) > 4096 || path.includes("\0"))
|
|
963
|
+
fail("invalid_input", message);
|
|
964
|
+
}
|
|
965
|
+
function unwrapNative(value, error, emptyMessage) {
|
|
966
|
+
if (error)
|
|
967
|
+
throw normalizeNativeError(error);
|
|
968
|
+
if (value === void 0)
|
|
969
|
+
fail("internal", emptyMessage);
|
|
970
|
+
return value;
|
|
971
|
+
}
|
|
982
972
|
async function withGitReadOperation(port, signal, run) {
|
|
983
973
|
if (signal?.aborted)
|
|
984
974
|
fail("cancelled", "Git read cancelled");
|
|
@@ -1012,47 +1002,67 @@ async function withGitReadOperation(port, signal, run) {
|
|
|
1012
1002
|
}
|
|
1013
1003
|
}
|
|
1014
1004
|
|
|
1015
|
-
// packages/native/dist/git/
|
|
1016
|
-
function
|
|
1017
|
-
|
|
1005
|
+
// packages/native/dist/git/git-client.js
|
|
1006
|
+
async function readGitRepositoryInfo(path) {
|
|
1007
|
+
const result = await binding.readGitRepositoryInfo(path);
|
|
1008
|
+
return unwrapNative(result.repository, result.error, "Native Git repository info was empty.");
|
|
1009
|
+
}
|
|
1010
|
+
async function readGitSnapshot(path, options = {}) {
|
|
1011
|
+
assertBoundedPath(path, "Invalid Git snapshot path");
|
|
1012
|
+
const { signal, ...native4 } = options;
|
|
1013
|
+
return withGitReadOperation(binding, signal, async (handle) => {
|
|
1014
|
+
const result = await binding.readGitSnapshot(path, native4, handle);
|
|
1015
|
+
return unwrapNative(result.snapshot, result.error, "Native Git snapshot was empty.");
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
async function checkGitAncestry(path, ancestor, descendant) {
|
|
1019
|
+
const result = await binding.checkGitAncestry(path, ancestor, descendant);
|
|
1020
|
+
return unwrapNative(result.ancestry, result.error, "Native Git ancestry was empty.");
|
|
1021
|
+
}
|
|
1022
|
+
async function resolveGitRevision(path, revision) {
|
|
1023
|
+
const result = await binding.resolveGitRevision(path, revision);
|
|
1024
|
+
return unwrapNative(result.oid, result.error, "Native Git revision was empty.");
|
|
1025
|
+
}
|
|
1026
|
+
async function countUnpublishedGitCommits(path, remote) {
|
|
1027
|
+
const result = await binding.countUnpublishedGitCommits(path, remote);
|
|
1028
|
+
return unwrapNative(result.count, result.error, "Native Git count was empty.");
|
|
1029
|
+
}
|
|
1030
|
+
async function readGitFileDiff(path, original, modified) {
|
|
1031
|
+
const result = await binding.readGitFileDiff(path, original, modified);
|
|
1032
|
+
return unwrapNative(result.diff, result.error, "Native Git file diff was empty.");
|
|
1018
1033
|
}
|
|
1034
|
+
function validateGitBranchName(name) {
|
|
1035
|
+
return binding.validateGitBranchName(name);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
// packages/native/dist/git/project-client.js
|
|
1019
1039
|
function createGitProjectReader(port) {
|
|
1020
1040
|
return {
|
|
1021
1041
|
async discoverGitRepositories(root, options = {}) {
|
|
1022
|
-
|
|
1023
|
-
fail2("invalid_input", "Invalid project root");
|
|
1042
|
+
assertBoundedPath(root, "Invalid project root");
|
|
1024
1043
|
return withGitReadOperation(port, options.signal, async (handle) => {
|
|
1025
1044
|
const result = await port.discoverGitRepositories(root, handle);
|
|
1026
|
-
|
|
1027
|
-
throw normalizeNativeError(result.error);
|
|
1028
|
-
if (!result.discovery)
|
|
1029
|
-
fail2("internal", "Native Git discovery was empty");
|
|
1030
|
-
return result.discovery;
|
|
1045
|
+
return unwrapNative(result.discovery, result.error, "Native Git discovery was empty");
|
|
1031
1046
|
});
|
|
1032
1047
|
},
|
|
1033
1048
|
async readGitProjectSnapshots(repositories, options = {}) {
|
|
1034
1049
|
if (!Array.isArray(repositories) || repositories.length > 128)
|
|
1035
|
-
|
|
1050
|
+
fail("invalid_input", "At most 128 repositories per Git read");
|
|
1036
1051
|
for (const repository of repositories) {
|
|
1037
1052
|
if (!repository || typeof repository !== "object")
|
|
1038
|
-
|
|
1053
|
+
fail("invalid_input", "Invalid Git repository descriptor");
|
|
1039
1054
|
for (const path of [
|
|
1040
1055
|
repository.relativePath,
|
|
1041
1056
|
repository.workDir,
|
|
1042
1057
|
repository.gitDir,
|
|
1043
1058
|
repository.commonDir
|
|
1044
1059
|
]) {
|
|
1045
|
-
|
|
1046
|
-
fail2("invalid_input", "Invalid Git repository descriptor");
|
|
1060
|
+
assertBoundedPath(path, "Invalid Git repository descriptor");
|
|
1047
1061
|
}
|
|
1048
1062
|
}
|
|
1049
1063
|
return withGitReadOperation(port, options.signal, async (handle) => {
|
|
1050
1064
|
const result = await port.readGitProjectSnapshots(repositories, options.includeIgnored ?? false, handle);
|
|
1051
|
-
|
|
1052
|
-
throw normalizeNativeError(result.error);
|
|
1053
|
-
if (!result.repositories)
|
|
1054
|
-
fail2("internal", "Native Git project snapshots were empty");
|
|
1055
|
-
return result.repositories;
|
|
1065
|
+
return unwrapNative(result.repositories, result.error, "Native Git project snapshots were empty");
|
|
1056
1066
|
});
|
|
1057
1067
|
}
|
|
1058
1068
|
};
|
|
@@ -1064,12 +1074,7 @@ var readGitProjectSnapshots = reader.readGitProjectSnapshots;
|
|
|
1064
1074
|
// packages/native/dist/git/metadata-client.js
|
|
1065
1075
|
function createGitMetadataReader(port) {
|
|
1066
1076
|
return async function readGitMetadataSnapshot2(path, options = {}) {
|
|
1067
|
-
|
|
1068
|
-
throw normalizeNativeError({
|
|
1069
|
-
category: "invalid_input",
|
|
1070
|
-
message: "Invalid Git metadata path",
|
|
1071
|
-
retryable: false
|
|
1072
|
-
});
|
|
1077
|
+
assertBoundedPath(path, "Invalid Git metadata path");
|
|
1073
1078
|
const selected = {};
|
|
1074
1079
|
for (const key of [
|
|
1075
1080
|
"refLimit",
|
|
@@ -1079,25 +1084,13 @@ function createGitMetadataReader(port) {
|
|
|
1079
1084
|
const value = options[key];
|
|
1080
1085
|
if (value !== void 0) {
|
|
1081
1086
|
if (!Number.isInteger(value) || value < 0 || value > 4294967295)
|
|
1082
|
-
|
|
1083
|
-
category: "invalid_input",
|
|
1084
|
-
message: "Invalid Git metadata count limit",
|
|
1085
|
-
retryable: false
|
|
1086
|
-
});
|
|
1087
|
+
fail("invalid_input", "Invalid Git metadata count limit");
|
|
1087
1088
|
selected[key] = value;
|
|
1088
1089
|
}
|
|
1089
1090
|
}
|
|
1090
1091
|
return withGitReadOperation(port, options.signal, async (handle) => {
|
|
1091
1092
|
const result = await port.readGitMetadataSnapshot(path, selected, handle);
|
|
1092
|
-
|
|
1093
|
-
throw normalizeNativeError(result.error);
|
|
1094
|
-
if (!result.snapshot)
|
|
1095
|
-
throw normalizeNativeError({
|
|
1096
|
-
category: "internal",
|
|
1097
|
-
message: "Native Git metadata was empty",
|
|
1098
|
-
retryable: false
|
|
1099
|
-
});
|
|
1100
|
-
return result.snapshot;
|
|
1093
|
+
return unwrapNative(result.snapshot, result.error, "Native Git metadata was empty");
|
|
1101
1094
|
});
|
|
1102
1095
|
};
|
|
1103
1096
|
}
|
|
@@ -1510,7 +1503,6 @@ export {
|
|
|
1510
1503
|
files_exports,
|
|
1511
1504
|
image_exports,
|
|
1512
1505
|
sandbox_exports,
|
|
1513
|
-
NativeGitReadError,
|
|
1514
1506
|
readGitRepositoryInfo,
|
|
1515
1507
|
readGitSnapshot,
|
|
1516
1508
|
checkGitAncestry,
|
|
@@ -2,10 +2,10 @@ import { createRequire as __nerveCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __nerveCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
pollOAuthDeviceCodeFlow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-S637DPAG.js";
|
|
6
6
|
import "./chunk-CWESUMYQ.js";
|
|
7
7
|
|
|
8
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
8
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/auth/oauth/xai.js
|
|
9
9
|
var XAI_CLIENT_ID = "b1a00492-073a-47ea-816f-4c329264a828";
|
|
10
10
|
var XAI_SCOPE = "openid profile email offline_access grok-cli:access api:access";
|
|
11
11
|
var XAI_DEVICE_CODE_URL = "https://auth.x.ai/oauth2/device/code";
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
parseClassifierUsage,
|
|
6
6
|
postClassifierRequest,
|
|
7
7
|
requiredNumber
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-CZXRZEV4.js";
|
|
9
|
+
import "./chunk-MRDORR5Z.js";
|
|
10
10
|
import {
|
|
11
11
|
formatProviderError,
|
|
12
12
|
normalizeProviderError
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-EOZLBW5E.js";
|
|
14
|
+
import "./chunk-NSISYP6D.js";
|
|
15
|
+
import "./chunk-WJAHXDL4.js";
|
|
16
|
+
import "./chunk-A3OFIREH.js";
|
|
17
|
+
import "./chunk-FNWUCFVO.js";
|
|
18
|
+
import "./chunk-EZJH7ED5.js";
|
|
19
19
|
import "./chunk-CWESUMYQ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
21
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/api/openai-decisions.js
|
|
22
22
|
var LABEL = "OpenAI Decisions";
|
|
23
23
|
var MAX_IMAGES = 128;
|
|
24
24
|
function predicateInstructions(question) {
|
|
@@ -2,28 +2,28 @@ import { createRequire as __nerveCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __nerveCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
OpenAI
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RAHBWFWV.js";
|
|
6
6
|
import {
|
|
7
7
|
sanitizeSurrogates
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P7GPT4XL.js";
|
|
9
9
|
import {
|
|
10
10
|
retryProviderRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MRDORR5Z.js";
|
|
12
12
|
import {
|
|
13
13
|
formatProviderError,
|
|
14
14
|
normalizeProviderError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EOZLBW5E.js";
|
|
16
16
|
import {
|
|
17
17
|
headersToRecord,
|
|
18
18
|
providerHeadersToRecord
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NSISYP6D.js";
|
|
20
20
|
import {
|
|
21
21
|
getIdentityHeaders
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-FNWUCFVO.js";
|
|
23
|
+
import "./chunk-EZJH7ED5.js";
|
|
24
24
|
import "./chunk-CWESUMYQ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
26
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js
|
|
27
27
|
var generateImages = async (model, context, options) => {
|
|
28
28
|
const output = {
|
|
29
29
|
api: model.api,
|
|
@@ -52,7 +52,8 @@ var generateImages = async (model, context, options) => {
|
|
|
52
52
|
const { data: response, response: rawResponse } = await retryProviderRequest(() => client.chat.completions.create(params, requestOptions).withResponse(), {
|
|
53
53
|
maxRetries: options?.maxRetries,
|
|
54
54
|
maxRetryDelayMs: options?.maxRetryDelayMs,
|
|
55
|
-
signal: options?.signal
|
|
55
|
+
signal: options?.signal,
|
|
56
|
+
onErrorResponse: (errorResponse) => options?.onResponse?.(errorResponse, model)
|
|
56
57
|
});
|
|
57
58
|
await options?.onResponse?.({ status: rawResponse.status, headers: headersToRecord(rawResponse.headers) }, model);
|
|
58
59
|
const imageResponse = response;
|
|
@@ -5,13 +5,17 @@ import {
|
|
|
5
5
|
parseClassifierUsage,
|
|
6
6
|
postClassifierRequest,
|
|
7
7
|
requiredNumber
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CZXRZEV4.js";
|
|
9
|
+
import {
|
|
10
|
+
applyOpenRouterReportedCost,
|
|
11
|
+
isOpenRouterModel
|
|
12
|
+
} from "./chunk-R22FWLXU.js";
|
|
9
13
|
import {
|
|
10
14
|
formatProviderError,
|
|
11
15
|
normalizeProviderError
|
|
12
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EOZLBW5E.js";
|
|
13
17
|
|
|
14
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
18
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/api/system-one-shared.js
|
|
15
19
|
var IMAGE_OPT_IN_HEADERS = { "TypeSafe-Danger-Zone-Images": "true" };
|
|
16
20
|
function probabilities(label, value, id) {
|
|
17
21
|
if (!isRecord(value))
|
|
@@ -137,9 +141,15 @@ async function classifySystemOne(transport, model, context, options) {
|
|
|
137
141
|
}
|
|
138
142
|
const body = await postClassifierRequest(transport.label, transport.url(model), model, transport.payload(model, request), requestOptions);
|
|
139
143
|
const result = transport.output(body);
|
|
144
|
+
if (typeof result.id === "string" && result.id)
|
|
145
|
+
output.responseId = result.id;
|
|
140
146
|
const usage = parseClassifierUsage(result.usage, model);
|
|
141
|
-
if (usage)
|
|
147
|
+
if (usage) {
|
|
148
|
+
if (isOpenRouterModel(model)) {
|
|
149
|
+
applyOpenRouterReportedCost(usage, result.usage);
|
|
150
|
+
}
|
|
142
151
|
output.usage = usage;
|
|
152
|
+
}
|
|
143
153
|
output.answers = parseAnswers(transport.label, result.answers, context);
|
|
144
154
|
return output;
|
|
145
155
|
} catch (error) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __nerveCreateRequire } from "node:module";
|
|
2
2
|
const require = __nerveCreateRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
4
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js
|
|
5
5
|
var FifoQueue = class {
|
|
6
6
|
incoming = [];
|
|
7
7
|
outgoing = [];
|
|
@@ -112,7 +112,7 @@ function createAssistantMessageEventStream() {
|
|
|
112
112
|
return new AssistantMessageEventStream();
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
115
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.6.1_@smithy+signature-v4@5.7.3_google-auth-library@10.7.0_suppo_bdf1b0d1b5e752e25be2c525cddbb146/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js
|
|
116
116
|
function formatThrownValue(value) {
|
|
117
117
|
if (value instanceof Error)
|
|
118
118
|
return value.message || value.name;
|