@nervekit/desktop 0.40.1 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/THIRD-PARTY-LICENSES.txt +968 -30
- package/dist/bin.js +1 -0
- package/dist/{chunk-OY6PIAR7.js → chunk-2ICPO4UM.js} +5 -5
- package/dist/{chunk-SQ7CWNIT.js → chunk-3CZXUKLG.js} +1 -1
- package/dist/{chunk-QFXKQNMT.js → chunk-4OCDR4DU.js} +14 -17
- package/dist/chunk-62DQXVPO.js +69 -0
- package/dist/chunk-6GUJQURI.js +142 -0
- package/dist/{chunk-CEX2GWGZ.js → chunk-6IHXVT5H.js} +1 -1
- package/dist/{chunk-MH3SUHI2.js → chunk-6ZS7TA6E.js} +2 -2
- package/dist/chunk-7FSH3ABG.js +249 -0
- package/dist/chunk-7HGFEQSD.js +224 -0
- package/dist/chunk-7RPHIJT3.js +153 -0
- package/dist/{chunk-5Y3NEEOK.js → chunk-AAEIGAGD.js} +9 -9
- package/dist/{chunk-HKLAYK2Z.js → chunk-APY4TUR3.js} +210 -0
- package/dist/chunk-BACYVEE6.js +128 -0
- package/dist/chunk-BG2KGLIA.js +783 -0
- package/dist/{chunk-XBHEYY65.js → chunk-BN5YDZUZ.js} +1205 -326
- package/dist/chunk-BUD4JHBZ.js +7017 -0
- package/dist/{chunk-MN7PZ2PH.js → chunk-DDBE2VLT.js} +2 -2
- package/dist/chunk-EF7ZZKA3.js +168 -0
- package/dist/{chunk-TJR6ASRW.js → chunk-EUT45AKW.js} +22 -24
- package/dist/{chunk-L3YB2QLN.js → chunk-FCAIYPDJ.js} +2 -2
- package/dist/{chunk-AJGPULMX.js → chunk-FZ557YWE.js} +47603 -55411
- package/dist/chunk-HPINJGBO.js +359 -0
- package/dist/{chunk-H5UKINTD.js → chunk-IRRR3PWN.js} +68 -65
- package/dist/{chunk-CWHAK2HX.js → chunk-IVBMHEPK.js} +33 -55
- package/dist/{chunk-FESN7DND.js → chunk-JBEWFFOK.js} +1 -1
- package/dist/{chunk-CKVFGRVV.js → chunk-KEXKZKN4.js} +54 -7
- package/dist/{chunk-UGDIHDAR.js → chunk-KUFIFCB4.js} +1 -1
- package/dist/chunk-L5WGVYXM.js +42 -0
- package/dist/{chunk-ONWQH2W6.js → chunk-LGIIT2NF.js} +15 -18
- package/dist/{chunk-KSZJ3HGD.js → chunk-LP4APBBQ.js} +1 -1
- package/dist/{chunk-DBXMYYPJ.js → chunk-M3ELKCNA.js} +1 -1
- package/dist/chunk-MI6L5CEA.js +183 -0
- package/dist/chunk-N4OXAS3A.js +40 -0
- package/dist/chunk-N6BUYKF3.js +340 -0
- package/dist/{chunk-KIGB3FK6.js → chunk-NVVW3MWJ.js} +9 -8
- package/dist/{chunk-V53CETNZ.js → chunk-O5JHHRFN.js} +242 -105
- package/dist/{chunk-KQPEOUCA.js → chunk-O6FDXE54.js} +19 -23
- package/dist/{chunk-QWTKCUIZ.js → chunk-OMCM3MHS.js} +11 -9
- package/dist/{chunk-55OGZFNA.js → chunk-P72Y5ZBH.js} +31 -15
- package/dist/{chunk-AON37AL2.js → chunk-PVPJAGWR.js} +29 -4
- package/dist/{chunk-24GQ74HM.js → chunk-Q3C7TQ2M.js} +3 -3
- package/dist/chunk-Q5E4ZL2R.js +14 -0
- package/dist/chunk-QFK2SWD2.js +258 -0
- package/dist/chunk-RJR7DJJK.js +32 -0
- package/dist/{chunk-BXVRC3HF.js → chunk-RL52LSTV.js} +1 -1
- package/dist/{chunk-KAZFF2RD.js → chunk-RTB6CF7F.js} +137 -113
- package/dist/{chunk-TW6FURZ7.js → chunk-SDDKYMIP.js} +18313 -4317
- package/dist/{chunk-S2PITDVA.js → chunk-TQURLRHD.js} +1 -1
- package/dist/{chunk-2Z5FLMLE.js → chunk-TSAUBRRU.js} +1 -1
- package/dist/chunk-U3TEC52G.js +64 -0
- package/dist/chunk-U5KGV63C.js +39 -0
- package/dist/{chunk-FOFVPPPV.js → chunk-UVRULOOP.js} +10 -9
- package/dist/{chunk-QVHYARC2.js → chunk-VOATSLRG.js} +5 -1
- package/dist/{chunk-WXRYBXYR.js → chunk-W7LEYYFH.js} +53 -65
- package/dist/chunk-WC5HHPPM.js +22 -0
- package/dist/{chunk-3DGBM7UW.js → chunk-WG62RHZ2.js} +3 -3
- package/dist/{chunk-D7WIIZAV.js → chunk-WIQEPAUG.js} +10 -9
- package/dist/chunk-XM27UVWN.js +250 -0
- package/dist/{chunk-4MMJDHFX.js → chunk-XTUSLUQ7.js} +70 -71
- package/dist/{chunk-N5B2RRSS.js → chunk-Z6AY5VOZ.js} +47 -26
- package/dist/{chunk-I6NVW4NX.js → chunk-ZGWXLG5X.js} +29 -33
- package/dist/{chunk-XNYZEQ3U.js → chunk-ZUWBEV2O.js} +1 -1
- package/dist/chunk-ZVH6EB7S.js +29 -0
- package/dist/daemon.js +65 -26
- package/dist/extension-assets/atlassian/docs/confluence-raw.md +31 -0
- package/dist/extension-assets/atlassian/docs/confluence-writing.md +101 -0
- package/dist/extension-assets/atlassian/docs/jira-raw.md +16 -0
- package/dist/extension-assets/atlassian/docs/jira-workflows.md +77 -0
- package/dist/extension-assets/atlassian/docs/project-knowledge.md +25 -0
- package/dist/extension-assets/atlassian/docs/storage.md +58 -0
- package/dist/extension-assets/atlassian/icon.svg +20 -0
- package/dist/extension-assets/diagram/docs/diagrams.md +12 -0
- package/dist/extension-assets/imagegen/docs/imagegen.md +17 -0
- package/dist/extension-assets/web-search/icon.svg +1 -0
- package/dist/git-isolated-reader-helper.js +1 -1
- package/dist/html-to-markdown.worker.js +6 -7028
- package/dist/main.js +583 -164
- package/dist/preload.cjs +45 -2
- package/dist/quick-script-docs/runtime/documents.md +54 -0
- package/dist/quick-script-docs/runtime/files.md +11 -0
- package/dist/quick-script-docs/runtime/images.md +10 -0
- package/dist/sandbox-libraries/docx.LICENSE +21 -0
- package/dist/sandbox-libraries/docx.min.js +9 -0
- package/dist/sandbox-libraries/jszip.LICENSE +651 -0
- package/dist/sandbox-libraries/jszip.min.js +13 -0
- package/dist/sandbox-libraries/mammoth.LICENSE +22 -0
- package/dist/sandbox-libraries/mammoth.browser.min.js +13 -0
- package/dist/sandbox-libraries/papaparse.LICENSE +20 -0
- package/dist/sandbox-libraries/papaparse.min.js +7 -0
- package/dist/sandbox-libraries/pptxgen.bundle.js +96 -0
- package/dist/sandbox-libraries/pptxgenjs.LICENSE +21 -0
- package/dist/sandbox-libraries/xlsx.LICENSE +201 -0
- package/dist/sandbox-libraries/xlsx.full.min.js +24 -0
- package/dist/web/assets/{AsyncBashCenterHost-HGsdxUJ3.js → AsyncBashCenterHost-D2Sy43Ub.js} +1 -1
- package/dist/web/assets/ConversationListItem-DvxCcAYm.js +3 -0
- package/dist/web/assets/ConversationsWorkbenchPanel-YeNq9LRn.js +1 -0
- package/dist/web/assets/DiscoverCenterHost-B6K-QnBF.js +1 -0
- package/dist/web/assets/{FileCenterHost-DigJOU5M.js → FileCenterHost-Dlk53K5G.js} +1 -1
- package/dist/web/assets/FilesWorkbenchPanel-PeCu12oU.js +12 -0
- package/dist/web/assets/{GitDiffCenterHost-IuZfF3hG.js → GitDiffCenterHost-3_Ea0RyG.js} +1 -1
- package/dist/web/assets/{GitWorkbenchPanel-CScC0CfH.js → GitWorkbenchPanel-CYvCkOAW.js} +1 -1
- package/dist/web/assets/{LaunchCenterHost-CIu7bcoZ.js → LaunchCenterHost-CP773N_3.js} +1 -1
- package/dist/web/assets/LaunchConfigurationNotice-CtmZ1uIQ.js +1 -0
- package/dist/web/assets/{LaunchesWorkbenchPanel-Vy0Gm7gg.js → LaunchesWorkbenchPanel-DP3yVfkO.js} +1 -1
- package/dist/web/assets/LogsCenterHost-BFP0doQf.js +1 -0
- package/dist/web/assets/{MermaidCenterHost-DDh4ArdK.js → MermaidCenterHost-Bjl6Dvrq.js} +1 -1
- package/dist/web/assets/MobileFilesBody-CDp21MGZ.js +1 -0
- package/dist/web/assets/{MobileFilesHost-C1jev2Un.js → MobileFilesHost-DlJI_yau.js} +1 -1
- package/dist/web/assets/MobileLaunchOutputHost-y3TehLWF.js +1 -0
- package/dist/web/assets/MobileLaunchesHost-CBNtDTrs.js +2 -0
- package/dist/web/assets/MobileLogsHost-BSb2lydK.js +1 -0
- package/dist/web/assets/MobileNoteEditorHost-7yW7hIC2.js +1 -0
- package/dist/web/assets/{MobileNotesHost-BZeYpK9H.js → MobileNotesHost-CvDHzpAh.js} +1 -1
- package/dist/web/assets/{MobileProjectSettingsHost-U3Mx3EN8.js → MobileProjectSettingsHost-CjtPfyKT.js} +1 -1
- package/dist/web/assets/{MobileProjectSettingsPageHost-CMvxbjfs.js → MobileProjectSettingsPageHost-j_7N-B9L.js} +1 -1
- package/dist/web/assets/{MobileSettingsHost-CP8Z_-gH.js → MobileSettingsHost-DXIKNF01.js} +1 -1
- package/dist/web/assets/{MobileSettingsPageHost-BPjXKTMV.js → MobileSettingsPageHost-CEzo7J9p.js} +1 -1
- package/dist/web/assets/MobileSettingsPageScreen-99wMLRsn.js +1 -0
- package/dist/web/assets/NotesWorkbenchPanel-DqTwXBBv.js +1 -0
- package/dist/web/assets/ProjectSettingsCenterHost-D96cL0uH.js +1 -0
- package/dist/web/assets/{PullRequestCenterHost-CZhXfCX2.js → PullRequestCenterHost-DY0yPDK2.js} +1 -1
- package/dist/web/assets/PullRequestsWorkbenchPanel-D07LE8vJ.js +1 -0
- package/dist/web/assets/{SearchWorkbenchPanel-qLgszneN.js → SearchWorkbenchPanel-D2_3iXo8.js} +1 -1
- package/dist/web/assets/SettingsCenter-BQWc24di.js +1 -0
- package/dist/web/assets/SettingsCenterHost-BvgNfeZN.js +1 -0
- package/dist/web/assets/{SystemPromptCenterHost-ya5AvXsd.js → SystemPromptCenterHost-BLHkB7lp.js} +1 -1
- package/dist/web/assets/activity-notices-C9aphS1s.js +1 -0
- package/dist/web/assets/adapters-DNU88KT0.js +1 -0
- package/dist/web/assets/agent-profiles.svelte-DgI8wSS2.js +1 -0
- package/dist/web/assets/api-CHNbLvvY.js +1 -0
- package/dist/web/assets/center-tabs.svelte-CyhCD_6b.js +1 -0
- package/dist/web/assets/channel-6wGoOwGx.js +57 -0
- package/dist/web/assets/circle-question-mark-C7NgqbLL.js +1 -0
- package/dist/web/assets/code-DJR0pnqV.js +7 -0
- package/dist/web/assets/{confirm-dialog-Bw_IxcZD.js → confirm-dialog-BDjzMiC4.js} +1 -1
- package/dist/web/assets/{conversation-connection-3GxIuhbS.js → conversation-connection-mLNyfV2d.js} +1 -1
- package/dist/web/assets/dialog-CkRcLEJT.js +1 -0
- package/dist/web/assets/discover-Dh4m7djO.js +4 -0
- package/dist/web/assets/dist-DSApqEag.js +1 -0
- package/dist/web/assets/file-tabs.svelte-cX3MMyG6.js +2 -0
- package/dist/web/assets/filesystem-BbIXrkGB.js +1 -0
- package/dist/web/assets/{git-store.svelte-CM5k7yRU.js → git-store.svelte-D3uwRVnj.js} +1 -1
- package/dist/web/assets/{git.api-D2CfUXZW.js → git.api-CTu-tG8A.js} +1 -1
- package/dist/web/assets/index-BrxjAwg0.js +46 -0
- package/dist/web/assets/index-yEOHI1Z7.css +1 -0
- package/dist/web/assets/launches-CC4gLnSa.js +5 -0
- package/dist/web/assets/{launches.api-BZxyWF8t.js → launches.api-CaotSs6l.js} +1 -1
- package/dist/web/assets/launches.svelte-DDA5J-RZ.js +2 -0
- package/dist/web/assets/{message-square-CqLxHJuW.js → list-checks-zV9Dp7Cu.js} +1 -1
- package/dist/web/assets/{logs.api-Coi8HJuy.js → logs.api-DMmVlkSz.js} +1 -1
- package/dist/web/assets/{maintenance-state.svelte-CDO9i4dk.js → maintenance-state.svelte-l9v7Hg3i.js} +2 -2
- package/dist/web/assets/notify.svelte-BTEXJZ8P.js +1 -0
- package/dist/web/assets/popover-panel-C-weKOk3.js +5 -0
- package/dist/web/assets/pr-view-loader.svelte-C0NClMS6.js +1 -0
- package/dist/web/assets/progress-CKEsTSOk.js +1 -0
- package/dist/web/assets/scratch-notes-state.svelte-B_rY_-9q.js +1 -0
- package/dist/web/assets/{scratch-notes.api-Cbvag3bv.js → scratch-notes.api-B2gOOK6Z.js} +1 -1
- package/dist/web/assets/search-input-CEr0SmAB.js +1 -0
- package/dist/web/assets/settings-2-CWd8Y06n.js +1 -0
- package/dist/web/assets/settings-CRmC19nG.js +1 -0
- package/dist/web/assets/settings-CXoAzSmm.js +1 -0
- package/dist/web/assets/settings-actions.svelte-BB6u_lQ0.js +1 -0
- package/dist/web/assets/settings-page-controllers.svelte-al78EDTL.js +29 -0
- package/dist/web/assets/sheet-content-DauQ7hPL.js +1 -0
- package/dist/web/assets/shell-CYbWnH52.js +4 -0
- package/dist/web/assets/shell-layout.svelte-CmEWk428.js +2 -0
- package/dist/web/assets/textarea-BEZ65po_.js +1 -0
- package/dist/web/assets/views-BumCSQ3W.js +2 -0
- package/dist/web/assets/{workbench-connection-gGGv4o8i.js → workbench-connection-CGHdORw3.js} +1 -1
- package/dist/web/assets/{workspace-Cc47dGjw.js → workspace-CW738NJG.js} +1 -1
- package/dist/web/assets/{workspace-actions.svelte-B3oum_9S.js → workspace-actions.svelte-DL9xv7lJ.js} +1 -1
- package/dist/web/assets/workspace-selectors.svelte-BRJvPEBh.js +105 -0
- package/dist/web/index.html +142 -83
- package/dist/web/sw.js +1 -1
- package/dist/worker.js +14 -9
- package/package.json +8 -9
- package/dist/chunk-RUZ2UAYH.js +0 -365
- package/dist/guides/confluence/SKILL.md +0 -36
- package/dist/guides/jira/SKILL.md +0 -34
- package/dist/resize-worker.js +0 -168
- package/dist/web/assets/ConversationListItem-Caz2KiJH.js +0 -3
- package/dist/web/assets/ConversationsWorkbenchPanel-B6dzWkG1.js +0 -1
- package/dist/web/assets/DiscoverCenterHost-B186WBRA.js +0 -1
- package/dist/web/assets/FilesWorkbenchPanel-VPvx3Bmi.js +0 -12
- package/dist/web/assets/LaunchConfigurationNotice-5yb4cH27.js +0 -1
- package/dist/web/assets/LogsCenterHost-BXBozCYw.js +0 -1
- package/dist/web/assets/MobileFilesBody-Cda_7gDp.js +0 -1
- package/dist/web/assets/MobileLaunchOutputHost-Bsv12o2H.js +0 -1
- package/dist/web/assets/MobileLaunchesHost-C9VH-2bn.js +0 -2
- package/dist/web/assets/MobileLogsHost-BMDXc-WC.js +0 -1
- package/dist/web/assets/MobileNoteEditorHost-BA6WIY1Y.js +0 -1
- package/dist/web/assets/MobileSettingsPageScreen-C5rHdrUU.js +0 -1
- package/dist/web/assets/NotesWorkbenchPanel-Bf6rySTL.js +0 -1
- package/dist/web/assets/ProjectSettingsCenterHost-BVXpBixy.js +0 -1
- package/dist/web/assets/PullRequestsWorkbenchPanel-BBnZJVnI.js +0 -1
- package/dist/web/assets/SettingsCenter-7BfrBfiy.js +0 -1
- package/dist/web/assets/SettingsCenterHost-Ck5uHILP.js +0 -1
- package/dist/web/assets/adapters-DxJoo6Za.js +0 -1
- package/dist/web/assets/agent-profiles.svelte-D5YHPc90.js +0 -1
- package/dist/web/assets/api-eaGLre0q.js +0 -1
- package/dist/web/assets/center-tabs.svelte-JJGozG_H.js +0 -1
- package/dist/web/assets/channel-B503YLZR.js +0 -57
- package/dist/web/assets/chevron-left-DPEFG6UJ.js +0 -1
- package/dist/web/assets/circle-alert-Cp2l2jcj.js +0 -5
- package/dist/web/assets/clock-Db6f9HtS.js +0 -1
- package/dist/web/assets/code-BRQC0Tpn.js +0 -7
- package/dist/web/assets/dialog-DU4gXD1J.js +0 -1
- package/dist/web/assets/discover-B3I5g1_G.js +0 -4
- package/dist/web/assets/dist-B_NFPhKV.js +0 -1
- package/dist/web/assets/file-tabs.svelte-DKtVVVCq.js +0 -2
- package/dist/web/assets/filesystem-ReGivxAC.js +0 -1
- package/dist/web/assets/index-DIQuyMVT.css +0 -1
- package/dist/web/assets/index-FJEmK_L5.js +0 -48
- package/dist/web/assets/launches-DiAl56ED.js +0 -5
- package/dist/web/assets/launches.svelte-BVs1pAhl.js +0 -2
- package/dist/web/assets/notebook-pen-lVsLYSe4.js +0 -1
- package/dist/web/assets/notify.svelte-BKVBraTJ.js +0 -1
- package/dist/web/assets/pencil-BrlypebI.js +0 -1
- package/dist/web/assets/pr-view-loader.svelte-DcIwqDJV.js +0 -1
- package/dist/web/assets/progress-DBCSpVPn.js +0 -1
- package/dist/web/assets/scratch-notes-state.svelte-Br_WiMEp.js +0 -1
- package/dist/web/assets/search-input-zU4WCZiz.js +0 -1
- package/dist/web/assets/settings-2-8MSBUGAl.js +0 -1
- package/dist/web/assets/settings-9LBrw4Nv.js +0 -1
- package/dist/web/assets/settings-B7uXsflY.js +0 -1
- package/dist/web/assets/settings-actions.svelte-B8psX3cj.js +0 -1
- package/dist/web/assets/settings-page-controllers.svelte-CU0i08wo.js +0 -30
- package/dist/web/assets/shell-DB5Db5-E.js +0 -4
- package/dist/web/assets/shell-layout.svelte-BT2508sa.js +0 -2
- package/dist/web/assets/textarea-CeoFJ0-t.js +0 -1
- package/dist/web/assets/views-Z-n-GTYY.js +0 -2
- package/dist/web/assets/workspace-selectors.svelte-DLUlSgEE.js +0 -131
- /package/dist/{html-to-markdown.worker.js.LEGAL.txt → chunk-BUD4JHBZ.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-CKVFGRVV.js.LEGAL.txt → chunk-KEXKZKN4.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-TW6FURZ7.js.LEGAL.txt → chunk-SDDKYMIP.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __nerveCreateRequire } from "node:module";
|
|
2
|
+
const require = __nerveCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_b842a8cec34a633ed5f728049ae89b72/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json
|
|
5
|
+
var github_copilot_default = { "anthropic-messages": { "chat:claude-fable-5": { id: "claude-fable-5", name: "Claude Fable 5", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 10, output: 50, cacheRead: 1, cacheWrite: 12.5 }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, xhigh: "xhigh", max: "max" }, compat: { forceAdaptiveThinking: true, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-fable-5.1": { id: "claude-fable-5.1", name: "Claude Fable 5.1", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 10, output: 50, cacheRead: 0.25, cacheWrite: 12.5 }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, xhigh: "xhigh", max: "max" }, compat: { forceAdaptiveThinking: true, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-haiku-4.5": { id: "claude-haiku-4.5", name: "Claude Haiku 4.5 (latest)", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 1, output: 5, cacheRead: 0.1, cacheWrite: 1.25 }, contextWindow: 2e5, maxTokens: 64e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, compat: { supportsEagerToolInputStreaming: false }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-haiku-5.5": { id: "claude-haiku-5.5", name: "Claude Haiku 5.5", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 0.1, output: 0.5, cacheRead: 0.01, cacheWrite: 0.125, tiers: [{ inputTokensAbove: 1e5, input: 0.5, output: 2.5, cacheRead: 0.05, cacheWrite: 0.625 }] }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { xhigh: "xhigh", max: "max" }, compat: { forceAdaptiveThinking: true, supportsTemperature: false, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-opus-4.8": { id: "claude-opus-4.8", name: "Claude Opus 4.8", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 5, output: 25, cacheRead: 0.5, cacheWrite: 6.25 }, contextWindow: 1e6, maxTokens: 64e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { xhigh: "xhigh", max: "max", minimal: "low" }, compat: { forceAdaptiveThinking: true, supportsTemperature: false, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-opus-5": { id: "claude-opus-5", name: "Claude Opus 5", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 5, output: 25, cacheRead: 0.5, cacheWrite: 6.25 }, contextWindow: 1e6, maxTokens: 64e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { xhigh: "xhigh", max: "max", minimal: "low" }, compat: { forceAdaptiveThinking: true, supportsTemperature: false, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-opus-5.5": { id: "claude-opus-5.5", name: "Claude Opus 5.5", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 4, output: 20, cacheRead: 0.2, cacheWrite: 5 }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { forceAdaptiveThinking: true, supportsTemperature: false, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-sonnet-4.6": { id: "claude-sonnet-4.6", name: "Claude Sonnet 4.6", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 3.75 }, contextWindow: 1e6, maxTokens: 32e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { max: "max", minimal: "low" }, compat: { forceAdaptiveThinking: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-sonnet-5": { id: "claude-sonnet-5", name: "Claude Sonnet 5", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 10, cacheRead: 0.2, cacheWrite: 2.5 }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { xhigh: "xhigh", max: "max" }, compat: { forceAdaptiveThinking: true, supportsTemperature: false }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:claude-sonnet-5.5": { id: "claude-sonnet-5.5", name: "Claude Sonnet 5.5", api: "anthropic-messages", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 10, cacheRead: 0.1, cacheWrite: 2.5 }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { xhigh: "xhigh", max: "max" }, compat: { forceAdaptiveThinking: true, supportsTemperature: false, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" } }, "openai-completions": { "chat:gemini-3.8-flash": { id: "gemini-3.8-flash", name: "Gemini 3.8 Flash", api: "openai-completions", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 0.75, output: 3.75, cacheRead: 0.075, cacheWrite: 0 }, contextWindow: 1e6, maxTokens: 64e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, compat: { supportsStrictMode: true, supportsStore: false, supportsDeveloperRole: false, supportsReasoningEffort: false }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gemini-4-argon": { id: "gemini-4-argon", name: "Gemini 4 Argon", api: "openai-completions", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 10, cacheRead: 0.1, cacheWrite: 0 }, contextWindow: 1048576, maxTokens: 65536, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, compat: { supportsStrictMode: true, supportsStore: false, supportsDeveloperRole: false, supportsReasoningEffort: false }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:kimi-k3": { id: "kimi-k3", name: "Kimi K3", api: "openai-completions", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 0 }, contextWindow: 1048576, maxTokens: 131072, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, compat: { supportsStrictMode: true, supportsStore: false, supportsDeveloperRole: false, supportsReasoningEffort: false, supportsMidConvoSystemMessages: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" } }, "openai-responses": { "chat:gpt-5.3-codex": { id: "gpt-5.3-codex", name: "GPT-5.3 Codex", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 1.75, output: 14, cacheRead: 0.175, cacheWrite: 0 }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: "low", low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: null }, compat: { supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-5.4-nano": { id: "gpt-5.4-nano", name: "GPT-5.4 nano", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 0.2, output: 1.25, cacheRead: 0.02, cacheWrite: 0 }, contextWindow: 4e5, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: "low", low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: null }, compat: { supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-5.6-luna": { id: "gpt-5.6-luna", name: "GPT-5.6 Luna", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 0.2, output: 1.2, cacheRead: 0.02, cacheWrite: 0.25, tiers: [{ inputTokensAbove: 2e5, input: 0.4, output: 1.8, cacheRead: 0.04, cacheWrite: 0.5 }] }, contextWindow: 105e4, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: "low", low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-5.6-sol": { id: "gpt-5.6-sol", name: "GPT-5.6 Sol", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 4, output: 20, cacheRead: 0.4, cacheWrite: 5, tiers: [{ inputTokensAbove: 272e3, input: 8, output: 30, cacheRead: 0.8, cacheWrite: 10 }] }, contextWindow: 105e4, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: "low", low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-5.6-terra": { id: "gpt-5.6-terra", name: "GPT-5.6 Terra", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 12, cacheRead: 0.2, cacheWrite: 2.5, tiers: [{ inputTokensAbove: 272e3, input: 4, output: 18, cacheRead: 0.4, cacheWrite: 5 }] }, contextWindow: 105e4, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: "low", low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-6-astra": { id: "gpt-6-astra", name: "GPT-6 Astra", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 10, output: 50, cacheRead: 1, cacheWrite: 12.5, tiers: [{ inputTokensAbove: 272e3, input: 20, output: 75, cacheRead: 2, cacheWrite: 25 }] }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-6-luna": { id: "gpt-6-luna", name: "GPT-6 Luna", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 0.1, output: 0.5, cacheRead: 0.01, cacheWrite: 0.125, tiers: [{ inputTokensAbove: 272e3, input: 0.2, output: 0.75, cacheRead: 0.02, cacheWrite: 0.25 }] }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: "none", minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-6-sol": { id: "gpt-6-sol", name: "GPT-6 Sol", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 10, cacheRead: 0.2, cacheWrite: 2.5, tiers: [{ inputTokensAbove: 272e3, input: 4, output: 15, cacheRead: 0.4, cacheWrite: 5 }] }, contextWindow: 1e6, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: "none", minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-6.1-sol": { id: "gpt-6.1-sol", name: "GPT-6.1 Sol", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 10, cacheRead: 0.1, cacheWrite: 2.5, tiers: [{ inputTokensAbove: 272e3, input: 4, output: 15, cacheRead: 0.2, cacheWrite: 5 }] }, contextWindow: 105e4, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:gpt-6.1-terra": { id: "gpt-6.1-terra", name: "GPT-6.1 Terra", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 1, output: 5, cacheRead: 0.05, cacheWrite: 1.25, tiers: [{ inputTokensAbove: 272e3, input: 2, output: 7.5, cacheRead: 0.1, cacheWrite: 2.5 }] }, contextWindow: 105e4, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: "none", minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: "max" }, compat: { supportsMidConvoSystemMessages: true, supportsAdditionalTools: true, supportsOpenAIGrammarTools: true }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:grok-4.5": { id: "grok-4.5", name: "Grok 4.5", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 6, cacheRead: 0.5, cacheWrite: 0, tiers: [{ inputTokensAbove: 2e5, input: 4, output: 12, cacheRead: 1, cacheWrite: 0 }] }, contextWindow: 5e5, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: null, low: "low", medium: "medium", high: "high", xhigh: null, max: null }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:grok-4.6": { id: "grok-4.6", name: "Grok 4.6", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 6, cacheRead: 0.5, cacheWrite: 0, tiers: [{ inputTokensAbove: 2e5, input: 4, output: 12, cacheRead: 1, cacheWrite: 0 }] }, contextWindow: 5e5, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: null }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:grok-4.7": { id: "grok-4.7", name: "Grok 4.7", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 2, output: 6, cacheRead: 0.5, cacheWrite: 0, tiers: [{ inputTokensAbove: 2e5, input: 4, output: 12, cacheRead: 1, cacheWrite: 0 }] }, contextWindow: 5e5, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: null, low: "low", medium: "medium", high: "high", xhigh: "xhigh", max: null }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" }, "chat:mai-code-1.1-flash": { id: "mai-code-1.1-flash", name: "MAI-Code-1.1-Flash", api: "openai-responses", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", reasoning: true, input: ["text", "image"], cost: { input: 0.2, output: 1.2, cacheRead: 0.02, cacheWrite: 0 }, contextWindow: 256e3, maxTokens: 128e3, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" }, thinkingLevelMap: { off: null, minimal: null, low: "low", medium: "medium", high: "high", xhigh: null, max: null }, inputLimits: { images: { resize: { maxWidth: 2e3, maxHeight: 2e3, maxBytes: 4718592, jpegQuality: 80 } } }, type: "chat" } }, "typesafe-system-one": { "classifier:microsoft-decision-1": { type: "classifier", id: "microsoft-decision-1", name: "Microsoft-Decision-1", api: "typesafe-system-one", provider: "github-copilot", baseUrl: "https://api.individual.githubcopilot.com", input: ["text"], cost: { input: 0.042, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 32768, headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" } } } };
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_b842a8cec34a633ed5f728049ae89b72/node_modules/@earendil-works/pi-ai/dist/model-catalog.js
|
|
8
|
+
function flattenModelCatalog(groups, type) {
|
|
9
|
+
return Object.fromEntries(Object.values(groups).flatMap((models) => Object.values(models)).filter((model) => model.type === type).map((model) => [model.id, model]));
|
|
10
|
+
}
|
|
11
|
+
function flattenChatModelCatalog(_provider, groups) {
|
|
12
|
+
return flattenModelCatalog(groups, "chat");
|
|
13
|
+
}
|
|
14
|
+
function flattenImageModelCatalog(_provider, groups) {
|
|
15
|
+
return flattenModelCatalog(groups, "image");
|
|
16
|
+
}
|
|
17
|
+
function flattenClassifierModelCatalog(_provider, groups) {
|
|
18
|
+
return flattenModelCatalog(groups, "classifier");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_b842a8cec34a633ed5f728049ae89b72/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js
|
|
22
|
+
var GITHUB_COPILOT_MODELS = flattenChatModelCatalog("github-copilot", github_copilot_default);
|
|
23
|
+
var GITHUB_COPILOT_IMAGE_MODELS = flattenImageModelCatalog("github-copilot", github_copilot_default);
|
|
24
|
+
var GITHUB_COPILOT_CLASSIFIER_MODELS = flattenClassifierModelCatalog("github-copilot", github_copilot_default);
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
flattenChatModelCatalog,
|
|
28
|
+
flattenImageModelCatalog,
|
|
29
|
+
flattenClassifierModelCatalog,
|
|
30
|
+
GITHUB_COPILOT_MODELS,
|
|
31
|
+
GITHUB_COPILOT_CLASSIFIER_MODELS
|
|
32
|
+
};
|
|
@@ -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.5.2_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_b842a8cec34a633ed5f728049ae89b72/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js
|
|
5
5
|
var __rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
6
6
|
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
7
7
|
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
@@ -92,51 +92,59 @@ import {
|
|
|
92
92
|
} from "./chunk-YYLKI74V.js";
|
|
93
93
|
import {
|
|
94
94
|
resolveHttpProxyUrlForTarget
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-6ZS7TA6E.js";
|
|
96
|
+
import {
|
|
97
|
+
hasExceededStrictToolLimits,
|
|
98
|
+
isStrictToolLimitErrorMessage,
|
|
99
|
+
markStrictToolLimitsExceeded
|
|
100
|
+
} from "./chunk-L5WGVYXM.js";
|
|
96
101
|
import {
|
|
97
102
|
require_src
|
|
98
103
|
} from "./chunk-OQC3F6JA.js";
|
|
99
|
-
import
|
|
100
|
-
parseStreamingJson,
|
|
101
|
-
parseToolCallArguments
|
|
102
|
-
} from "./chunk-RUZ2UAYH.js";
|
|
104
|
+
import "./chunk-ZVH6EB7S.js";
|
|
103
105
|
import {
|
|
104
106
|
adjustMaxTokensForThinking,
|
|
105
107
|
buildBaseOptions,
|
|
106
108
|
clampMaxTokensToContext,
|
|
107
109
|
clampReasoning,
|
|
108
110
|
getJsonSchemaToolParameters,
|
|
111
|
+
prefersJsonSchemaStrictSampling,
|
|
109
112
|
resolveJsonSchemaStrictSampling,
|
|
110
113
|
splitErrorToolResultImages,
|
|
111
114
|
transformMessages
|
|
112
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-Z6AY5VOZ.js";
|
|
113
116
|
import {
|
|
114
117
|
sanitizeSurrogates
|
|
115
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-TSAUBRRU.js";
|
|
116
119
|
import {
|
|
117
120
|
normalizeProviderError
|
|
118
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-PVPJAGWR.js";
|
|
119
122
|
import {
|
|
120
123
|
providerHeadersToRecord
|
|
121
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-6IHXVT5H.js";
|
|
122
125
|
import {
|
|
123
126
|
getProviderEnvValue
|
|
124
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-JBEWFFOK.js";
|
|
128
|
+
import {
|
|
129
|
+
ToolCallArgumentsStream
|
|
130
|
+
} from "./chunk-BG2KGLIA.js";
|
|
125
131
|
import {
|
|
126
132
|
calculateCost,
|
|
127
133
|
collapseSystemMessages,
|
|
128
134
|
getCurrentTools,
|
|
129
135
|
getInitialSystemMessage,
|
|
130
|
-
getSystemMessageText,
|
|
131
136
|
withoutInitialSystemMessage
|
|
132
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-W7LEYYFH.js";
|
|
133
138
|
import {
|
|
134
139
|
AssistantMessageEventStream,
|
|
135
140
|
appendAssistantMessageDiagnostic
|
|
136
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-DDBE2VLT.js";
|
|
137
142
|
import {
|
|
138
143
|
getClientVersion
|
|
139
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-Q3C7TQ2M.js";
|
|
145
|
+
import {
|
|
146
|
+
getSystemMessageText
|
|
147
|
+
} from "./chunk-U5KGV63C.js";
|
|
140
148
|
import {
|
|
141
149
|
__commonJS,
|
|
142
150
|
__esm,
|
|
@@ -21379,7 +21387,7 @@ var require_dist_cjs21 = __commonJS({
|
|
|
21379
21387
|
}
|
|
21380
21388
|
});
|
|
21381
21389
|
|
|
21382
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
21390
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_b842a8cec34a633ed5f728049ae89b72/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js
|
|
21383
21391
|
var import_client_bedrock_runtime = __toESM(require_dist_cjs21(), 1);
|
|
21384
21392
|
var import_node_http_handler5 = __toESM(require_dist_cjs8(), 1);
|
|
21385
21393
|
|
|
@@ -21898,7 +21906,7 @@ function omit2(obj, ...keys) {
|
|
|
21898
21906
|
return ret;
|
|
21899
21907
|
}
|
|
21900
21908
|
|
|
21901
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.
|
|
21909
|
+
// node_modules/.pnpm/@earendil-works+pi-ai@1.5.2_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_b842a8cec34a633ed5f728049ae89b72/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js
|
|
21902
21910
|
var EMPTY_TEXT_PLACEHOLDER = "<empty>";
|
|
21903
21911
|
var THINKING_BINDING_CONTROLS_BETA = "thinking-binding-controls-2026-08-01";
|
|
21904
21912
|
var REDACTED_THINKING_PLACEHOLDER = "[Reasoning redacted]";
|
|
@@ -21923,7 +21931,7 @@ var stream = (model, context, options = {}) => {
|
|
|
21923
21931
|
stopReason: "pending",
|
|
21924
21932
|
timestamp: Date.now()
|
|
21925
21933
|
};
|
|
21926
|
-
const
|
|
21934
|
+
const openBlocks = /* @__PURE__ */ new Map();
|
|
21927
21935
|
const optionsProfile = options.profile || options.env?.AWS_PROFILE;
|
|
21928
21936
|
const config = {
|
|
21929
21937
|
profile: optionsProfile || getProviderEnvValue("AWS_PROFILE", options.env),
|
|
@@ -21994,24 +22002,43 @@ var stream = (model, context, options = {}) => {
|
|
|
21994
22002
|
const inferenceMaxTokens = options.maxTokens ?? (isAnthropicClaudeModel(model) ? model.maxTokens : void 0);
|
|
21995
22003
|
const initialSystemMessage = getInitialSystemMessage(normalizedContext.messages);
|
|
21996
22004
|
const initialSystemPrompt = initialSystemMessage ? getSystemMessageText(initialSystemMessage) : void 0;
|
|
21997
|
-
let
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
|
|
22005
|
+
let disablePreferredStrictTools = hasExceededStrictToolLimits(options.sessionId);
|
|
22006
|
+
let response;
|
|
22007
|
+
for (; ; ) {
|
|
22008
|
+
const tools = convertToolConfig(getCurrentTools(normalizedContext.messages), options.toolChoice, supportsStrictMode, disablePreferredStrictTools);
|
|
22009
|
+
let commandInput = {
|
|
22010
|
+
modelId: model.id,
|
|
22011
|
+
messages: convertMessages(normalizedContext, model, cacheRetention, options.env),
|
|
22012
|
+
system: buildSystemPrompt(initialSystemPrompt, model, cacheRetention, options.env),
|
|
22013
|
+
inferenceConfig: {
|
|
22014
|
+
...inferenceMaxTokens !== void 0 && { maxTokens: inferenceMaxTokens },
|
|
22015
|
+
...options.temperature !== void 0 && { temperature: options.temperature }
|
|
22016
|
+
},
|
|
22017
|
+
toolConfig: tools.toolConfig,
|
|
22018
|
+
additionalModelRequestFields: buildAdditionalModelRequestFields(model, options),
|
|
22019
|
+
...options.requestMetadata !== void 0 && { requestMetadata: options.requestMetadata }
|
|
22020
|
+
};
|
|
22021
|
+
const nextCommandInput = await options?.onPayload?.(commandInput, model);
|
|
22022
|
+
if (nextCommandInput !== void 0) {
|
|
22023
|
+
commandInput = nextCommandInput;
|
|
22024
|
+
}
|
|
22025
|
+
try {
|
|
22026
|
+
response = await client.send(new import_client_bedrock_runtime.ConverseStreamCommand(commandInput), { abortSignal: options.signal });
|
|
22027
|
+
break;
|
|
22028
|
+
} catch (error) {
|
|
22029
|
+
if (options.signal?.aborted || disablePreferredStrictTools || !tools.hasPreferredStrictTools || !(error instanceof import_client_bedrock_runtime.BedrockRuntimeServiceException) || error.name !== "ValidationException" || !isStrictToolLimitErrorMessage(error.message)) {
|
|
22030
|
+
throw error;
|
|
22031
|
+
}
|
|
22032
|
+
disablePreferredStrictTools = true;
|
|
22033
|
+
markStrictToolLimitsExceeded(options.sessionId);
|
|
22034
|
+
appendAssistantMessageDiagnostic(output, {
|
|
22035
|
+
type: "bedrock_strict_tools_fallback",
|
|
22036
|
+
timestamp: Date.now(),
|
|
22037
|
+
error: { message: error.message },
|
|
22038
|
+
details: { reason: "strict_tool_limits_exceeded" }
|
|
22039
|
+
});
|
|
22040
|
+
}
|
|
22012
22041
|
}
|
|
22013
|
-
const command5 = new import_client_bedrock_runtime.ConverseStreamCommand(commandInput);
|
|
22014
|
-
const response = await client.send(command5, { abortSignal: options.signal });
|
|
22015
22042
|
responseRequestId = normalizeDiagnosticValue(response.$metadata.requestId);
|
|
22016
22043
|
if (!observedRawResponse && response.$metadata.httpStatusCode !== void 0) {
|
|
22017
22044
|
const responseHeaders = {};
|
|
@@ -22028,11 +22055,11 @@ var stream = (model, context, options = {}) => {
|
|
|
22028
22055
|
}
|
|
22029
22056
|
stream2.push({ type: "start", partial: output });
|
|
22030
22057
|
} else if (item.contentBlockStart) {
|
|
22031
|
-
handleContentBlockStart(item.contentBlockStart,
|
|
22058
|
+
handleContentBlockStart(item.contentBlockStart, openBlocks, output, stream2);
|
|
22032
22059
|
} else if (item.contentBlockDelta) {
|
|
22033
|
-
handleContentBlockDelta(item.contentBlockDelta,
|
|
22060
|
+
handleContentBlockDelta(item.contentBlockDelta, openBlocks, output, stream2);
|
|
22034
22061
|
} else if (item.contentBlockStop) {
|
|
22035
|
-
handleContentBlockStop(item.contentBlockStop,
|
|
22062
|
+
handleContentBlockStop(item.contentBlockStop, openBlocks, output, stream2);
|
|
22036
22063
|
} else if (item.messageStop) {
|
|
22037
22064
|
output.rawStopReason = item.messageStop.stopReason;
|
|
22038
22065
|
const { stopReason, errorMessage } = mapStopReason(item.messageStop.stopReason);
|
|
@@ -22063,14 +22090,11 @@ var stream = (model, context, options = {}) => {
|
|
|
22063
22090
|
if (output.stopReason === "error" || output.stopReason === "aborted") {
|
|
22064
22091
|
throw new Error(output.errorMessage || "An unknown error occurred");
|
|
22065
22092
|
}
|
|
22066
|
-
|
|
22067
|
-
finalizeStreamingBlock(block);
|
|
22093
|
+
flushOpenBlocks(openBlocks, output);
|
|
22068
22094
|
stream2.push({ type: "done", reason: output.stopReason, message: output });
|
|
22069
22095
|
stream2.end();
|
|
22070
22096
|
} catch (error) {
|
|
22071
|
-
|
|
22072
|
-
finalizeStreamingBlock(block);
|
|
22073
|
-
}
|
|
22097
|
+
flushOpenBlocks(openBlocks, output);
|
|
22074
22098
|
output.stopReason = options.signal?.aborted ? "aborted" : "error";
|
|
22075
22099
|
output.errorMessage = formatBedrockError(error);
|
|
22076
22100
|
if (output.stopReason === "error") {
|
|
@@ -22212,56 +22236,57 @@ var streamSimple = (model, context, options) => {
|
|
|
22212
22236
|
thinkingBudgets: options.thinkingBudgets
|
|
22213
22237
|
});
|
|
22214
22238
|
};
|
|
22215
|
-
function handleContentBlockStart(event,
|
|
22216
|
-
const index = event.contentBlockIndex;
|
|
22239
|
+
function handleContentBlockStart(event, openBlocks, output, stream2) {
|
|
22217
22240
|
const start = event.start;
|
|
22218
22241
|
if (start?.toolUse) {
|
|
22219
|
-
|
|
22242
|
+
output.content.push({
|
|
22220
22243
|
type: "toolCall",
|
|
22221
22244
|
id: start.toolUse.toolUseId || "",
|
|
22222
22245
|
name: start.toolUse.name || "",
|
|
22223
|
-
arguments: {}
|
|
22224
|
-
|
|
22225
|
-
|
|
22226
|
-
};
|
|
22227
|
-
|
|
22228
|
-
stream2.push({ type: "toolcall_start", contentIndex: blocks.length - 1, partial: output });
|
|
22246
|
+
arguments: {}
|
|
22247
|
+
});
|
|
22248
|
+
const contentIndex = output.content.length - 1;
|
|
22249
|
+
openBlocks.set(event.contentBlockIndex, { contentIndex, arguments: new ToolCallArgumentsStream() });
|
|
22250
|
+
stream2.push({ type: "toolcall_start", contentIndex, partial: output });
|
|
22229
22251
|
}
|
|
22230
22252
|
}
|
|
22231
|
-
function handleContentBlockDelta(event,
|
|
22253
|
+
function handleContentBlockDelta(event, openBlocks, output, stream2) {
|
|
22232
22254
|
const contentBlockIndex = event.contentBlockIndex;
|
|
22233
22255
|
const delta = event.delta;
|
|
22234
|
-
let
|
|
22235
|
-
let block =
|
|
22256
|
+
let open = openBlocks.get(contentBlockIndex);
|
|
22257
|
+
let block = open === void 0 ? void 0 : output.content[open.contentIndex];
|
|
22236
22258
|
if (delta?.text !== void 0) {
|
|
22237
|
-
if (!
|
|
22238
|
-
|
|
22239
|
-
output.content.
|
|
22240
|
-
|
|
22241
|
-
block =
|
|
22242
|
-
stream2.push({ type: "text_start", contentIndex:
|
|
22259
|
+
if (!open) {
|
|
22260
|
+
output.content.push({ type: "text", text: "" });
|
|
22261
|
+
open = { contentIndex: output.content.length - 1 };
|
|
22262
|
+
openBlocks.set(contentBlockIndex, open);
|
|
22263
|
+
block = output.content[open.contentIndex];
|
|
22264
|
+
stream2.push({ type: "text_start", contentIndex: open.contentIndex, partial: output });
|
|
22243
22265
|
}
|
|
22244
|
-
if (block
|
|
22266
|
+
if (block?.type === "text") {
|
|
22245
22267
|
block.text += delta.text;
|
|
22246
|
-
stream2.push({ type: "text_delta", contentIndex:
|
|
22268
|
+
stream2.push({ type: "text_delta", contentIndex: open.contentIndex, delta: delta.text, partial: output });
|
|
22247
22269
|
}
|
|
22248
|
-
} else if (delta?.toolUse && block?.type === "toolCall") {
|
|
22249
|
-
block.
|
|
22250
|
-
|
|
22251
|
-
|
|
22270
|
+
} else if (delta?.toolUse && block?.type === "toolCall" && open?.arguments !== void 0) {
|
|
22271
|
+
block.arguments = open.arguments.append(delta.toolUse.input || "");
|
|
22272
|
+
stream2.push({
|
|
22273
|
+
type: "toolcall_delta",
|
|
22274
|
+
contentIndex: open.contentIndex,
|
|
22275
|
+
delta: delta.toolUse.input || "",
|
|
22276
|
+
partial: output
|
|
22277
|
+
});
|
|
22252
22278
|
} else if (delta?.reasoningContent) {
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
output.content.
|
|
22258
|
-
|
|
22259
|
-
thinkingBlock = blocks[thinkingIndex];
|
|
22260
|
-
stream2.push({ type: "thinking_start", contentIndex: thinkingIndex, partial: output });
|
|
22279
|
+
if (!open) {
|
|
22280
|
+
output.content.push({ type: "thinking", thinking: "", thinkingSignature: "" });
|
|
22281
|
+
open = { contentIndex: output.content.length - 1 };
|
|
22282
|
+
openBlocks.set(contentBlockIndex, open);
|
|
22283
|
+
block = output.content[open.contentIndex];
|
|
22284
|
+
stream2.push({ type: "thinking_start", contentIndex: open.contentIndex, partial: output });
|
|
22261
22285
|
}
|
|
22262
|
-
if (
|
|
22286
|
+
if (block?.type === "thinking") {
|
|
22287
|
+
const thinkingIndex = open.contentIndex;
|
|
22263
22288
|
if (delta.reasoningContent.text) {
|
|
22264
|
-
|
|
22289
|
+
block.thinking += delta.reasoningContent.text;
|
|
22265
22290
|
stream2.push({
|
|
22266
22291
|
type: "thinking_delta",
|
|
22267
22292
|
contentIndex: thinkingIndex,
|
|
@@ -22269,14 +22294,14 @@ function handleContentBlockDelta(event, blocks, output, stream2) {
|
|
|
22269
22294
|
partial: output
|
|
22270
22295
|
});
|
|
22271
22296
|
}
|
|
22272
|
-
if (delta.reasoningContent.signature && !
|
|
22273
|
-
|
|
22297
|
+
if (delta.reasoningContent.signature && !block.redacted) {
|
|
22298
|
+
block.thinkingSignature = (block.thinkingSignature || "") + delta.reasoningContent.signature;
|
|
22274
22299
|
}
|
|
22275
22300
|
if (delta.reasoningContent.redactedContent?.length) {
|
|
22276
|
-
if (!
|
|
22277
|
-
|
|
22278
|
-
|
|
22279
|
-
|
|
22301
|
+
if (!block.redacted) {
|
|
22302
|
+
block.redacted = true;
|
|
22303
|
+
block.thinkingSignature = "";
|
|
22304
|
+
block.thinking += REDACTED_THINKING_PLACEHOLDER;
|
|
22280
22305
|
stream2.push({
|
|
22281
22306
|
type: "thinking_delta",
|
|
22282
22307
|
contentIndex: thinkingIndex,
|
|
@@ -22284,22 +22309,23 @@ function handleContentBlockDelta(event, blocks, output, stream2) {
|
|
|
22284
22309
|
partial: output
|
|
22285
22310
|
});
|
|
22286
22311
|
}
|
|
22287
|
-
|
|
22288
|
-
|
|
22312
|
+
open.redactedChunks ??= [];
|
|
22313
|
+
open.redactedChunks.push(delta.reasoningContent.redactedContent);
|
|
22289
22314
|
}
|
|
22290
22315
|
}
|
|
22291
22316
|
}
|
|
22292
22317
|
}
|
|
22293
|
-
function flushRedactedContent(
|
|
22294
|
-
|
|
22318
|
+
function flushRedactedContent(open, output) {
|
|
22319
|
+
const block = output.content[open.contentIndex];
|
|
22320
|
+
if (block?.type !== "thinking" || !open.redactedChunks)
|
|
22295
22321
|
return;
|
|
22296
|
-
block.thinkingSignature = bytesToBase64(
|
|
22297
|
-
|
|
22322
|
+
block.thinkingSignature = bytesToBase64(open.redactedChunks);
|
|
22323
|
+
open.redactedChunks = void 0;
|
|
22298
22324
|
}
|
|
22299
|
-
function
|
|
22300
|
-
|
|
22301
|
-
|
|
22302
|
-
|
|
22325
|
+
function flushOpenBlocks(openBlocks, output) {
|
|
22326
|
+
for (const open of openBlocks.values())
|
|
22327
|
+
flushRedactedContent(open, output);
|
|
22328
|
+
openBlocks.clear();
|
|
22303
22329
|
}
|
|
22304
22330
|
function handleMetadata(event, model, output) {
|
|
22305
22331
|
if (event.usage) {
|
|
@@ -22312,23 +22338,24 @@ function handleMetadata(event, model, output) {
|
|
|
22312
22338
|
calculateCost(model, output.usage);
|
|
22313
22339
|
}
|
|
22314
22340
|
}
|
|
22315
|
-
function handleContentBlockStop(event,
|
|
22316
|
-
const
|
|
22317
|
-
|
|
22318
|
-
if (!block)
|
|
22341
|
+
function handleContentBlockStop(event, openBlocks, output, stream2) {
|
|
22342
|
+
const open = openBlocks.get(event.contentBlockIndex);
|
|
22343
|
+
if (!open)
|
|
22319
22344
|
return;
|
|
22320
|
-
delete
|
|
22345
|
+
openBlocks.delete(event.contentBlockIndex);
|
|
22346
|
+
const index = open.contentIndex;
|
|
22347
|
+
const block = output.content[index];
|
|
22321
22348
|
switch (block.type) {
|
|
22322
22349
|
case "text":
|
|
22323
22350
|
stream2.push({ type: "text_end", contentIndex: index, content: block.text, partial: output });
|
|
22324
22351
|
break;
|
|
22325
22352
|
case "thinking":
|
|
22326
|
-
flushRedactedContent(
|
|
22353
|
+
flushRedactedContent(open, output);
|
|
22327
22354
|
stream2.push({ type: "thinking_end", contentIndex: index, content: block.thinking, partial: output });
|
|
22328
22355
|
break;
|
|
22329
22356
|
case "toolCall":
|
|
22330
|
-
|
|
22331
|
-
|
|
22357
|
+
if (open.arguments !== void 0)
|
|
22358
|
+
Object.assign(block, open.arguments.finish());
|
|
22332
22359
|
stream2.push({ type: "toolcall_end", contentIndex: index, toolCall: block, partial: output });
|
|
22333
22360
|
break;
|
|
22334
22361
|
}
|
|
@@ -22588,13 +22615,15 @@ function convertMessages(context, model, cacheRetention, env2) {
|
|
|
22588
22615
|
}
|
|
22589
22616
|
return result;
|
|
22590
22617
|
}
|
|
22591
|
-
function convertToolConfig(tools, toolChoice, supportsStrictMode) {
|
|
22592
|
-
if (!tools?.length)
|
|
22593
|
-
return void 0;
|
|
22594
|
-
|
|
22595
|
-
return void 0;
|
|
22618
|
+
function convertToolConfig(tools, toolChoice, supportsStrictMode, disablePreferredStrictTools) {
|
|
22619
|
+
if (!tools?.length || toolChoice === "none")
|
|
22620
|
+
return { toolConfig: void 0, hasPreferredStrictTools: false };
|
|
22621
|
+
let hasPreferredStrictTools = false;
|
|
22596
22622
|
const bedrockTools = tools.map((tool) => {
|
|
22597
|
-
const
|
|
22623
|
+
const preferred = prefersJsonSchemaStrictSampling(tool);
|
|
22624
|
+
const strict = disablePreferredStrictTools && preferred ? void 0 : resolveJsonSchemaStrictSampling(tool, supportsStrictMode);
|
|
22625
|
+
if (strict === true && preferred)
|
|
22626
|
+
hasPreferredStrictTools = true;
|
|
22598
22627
|
return {
|
|
22599
22628
|
toolSpec: {
|
|
22600
22629
|
name: tool.name,
|
|
@@ -22617,7 +22646,7 @@ function convertToolConfig(tools, toolChoice, supportsStrictMode) {
|
|
|
22617
22646
|
bedrockToolChoice = { tool: { name: toolChoice.name } };
|
|
22618
22647
|
}
|
|
22619
22648
|
}
|
|
22620
|
-
return { tools: bedrockTools, toolChoice: bedrockToolChoice };
|
|
22649
|
+
return { toolConfig: { tools: bedrockTools, toolChoice: bedrockToolChoice }, hasPreferredStrictTools };
|
|
22621
22650
|
}
|
|
22622
22651
|
function mapStopReason(reason) {
|
|
22623
22652
|
switch (reason) {
|
|
@@ -22793,12 +22822,7 @@ function bytesToBase64(chunks) {
|
|
|
22793
22822
|
}
|
|
22794
22823
|
return btoa(binary);
|
|
22795
22824
|
}
|
|
22796
|
-
|
|
22797
|
-
// node_modules/.pnpm/@earendil-works+pi-ai@1.4.0_@aws-sdk+credential-provider-node@3.972.83_@smithy+signatur_c4dd529f1cf5cdf12d9a6e2070ccac62/node_modules/@earendil-works/pi-ai/dist/bedrock-provider.js
|
|
22798
|
-
var bedrockProviderModule = {
|
|
22825
|
+
export {
|
|
22799
22826
|
stream,
|
|
22800
22827
|
streamSimple
|
|
22801
22828
|
};
|
|
22802
|
-
export {
|
|
22803
|
-
bedrockProviderModule
|
|
22804
|
-
};
|