@bkm016/basalt 0.1.17 → 0.1.18

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.
Files changed (116) hide show
  1. package/{chunk-p78wde92.js → chunk-02q61grt.js} +2 -2
  2. package/chunk-03r6s8pm.js +2 -0
  3. package/{chunk-38g4jd6v.js → chunk-09fsdkd3.js} +3 -3
  4. package/{chunk-8r4baw9e.js → chunk-0bg4w7ht.js} +2 -2
  5. package/chunk-0s4r7k7j.js +2 -0
  6. package/chunk-27kw4nth.js +2 -0
  7. package/chunk-2ag9mvms.js +10 -0
  8. package/{chunk-9ew8cap5.js → chunk-2shwjp8q.js} +1 -1
  9. package/chunk-3114vstw.js +2 -0
  10. package/chunk-31meb34a.js +2 -0
  11. package/chunk-34w345mt.js +2 -0
  12. package/{chunk-30dxcr91.js → chunk-3amfr8zp.js} +3 -3
  13. package/chunk-40nk2jjt.js +2 -0
  14. package/{chunk-44a7f5ta.js → chunk-49bz6hg5.js} +5 -5
  15. package/{chunk-e8x8zwkg.js → chunk-4hgkwa4k.js} +2 -2
  16. package/chunk-4wfd77kc.js +2 -0
  17. package/{chunk-9vam83py.js → chunk-55kpabb3.js} +1 -1
  18. package/chunk-5p2asrj6.js +2 -0
  19. package/chunk-65hg0v7e.js +2 -0
  20. package/chunk-67qw30cj.js +3770 -0
  21. package/{chunk-b350b01x.js → chunk-6rehcf49.js} +5 -5
  22. package/chunk-6vkz3wqz.js +25 -0
  23. package/chunk-81yk0kj2.js +3 -0
  24. package/chunk-885vf5kb.js +2 -0
  25. package/{chunk-46vy2m29.js → chunk-8wy08x0d.js} +1 -1
  26. package/chunk-9cqa9trx.js +4 -0
  27. package/chunk-ae45qq4z.js +2 -0
  28. package/chunk-ag3em5yv.js +4 -0
  29. package/chunk-b5k5p49x.js +2 -0
  30. package/chunk-b84vbfjc.js +2 -0
  31. package/{chunk-cs91rmbf.js → chunk-dkpgstr2.js} +7 -7
  32. package/{chunk-4f6p4n7k.js → chunk-dzn4c87v.js} +2 -2
  33. package/{chunk-8np9b2y8.js → chunk-e2m8ap8f.js} +2 -2
  34. package/{chunk-37ndxehw.js → chunk-e5xsyr0n.js} +2 -2
  35. package/chunk-f97ma522.js +3 -0
  36. package/chunk-f9yneea6.js +3 -0
  37. package/{chunk-vqm94hz2.js → chunk-fj56fznw.js} +2 -2
  38. package/{chunk-xf7zw32f.js → chunk-fk43jgwe.js} +5 -5
  39. package/{chunk-mh4bjtfs.js → chunk-frjqjdkx.js} +4 -4
  40. package/{chunk-rqn67tm8.js → chunk-fycz7ap5.js} +1 -1
  41. package/chunk-fzefs6kn.js +3 -0
  42. package/chunk-g1n8k4dg.js +5 -0
  43. package/{chunk-qd2enpr2.js → chunk-g5mdw639.js} +2 -2
  44. package/chunk-gnvx44kj.js +10 -0
  45. package/chunk-gpympx0t.js +467 -0
  46. package/{chunk-b2wpj81x.js → chunk-gyp2jn7d.js} +1 -1
  47. package/{chunk-y0274xr2.js → chunk-hambwbfz.js} +4 -4
  48. package/{chunk-1c9nr9rs.js → chunk-j02kqpvq.js} +2 -2
  49. package/{chunk-ehnc8g6v.js → chunk-j1h7pabk.js} +5 -5
  50. package/{chunk-w55cnj0f.js → chunk-j6hn9qz6.js} +2 -2
  51. package/{chunk-m5km74eq.js → chunk-jfx4c32t.js} +2 -2
  52. package/{chunk-7mgkpn94.js → chunk-jjj8a18b.js} +6 -6
  53. package/{chunk-pdt65s31.js → chunk-k3c32v59.js} +2 -2
  54. package/{chunk-rghqprav.js → chunk-k8j3fvx5.js} +1 -1
  55. package/chunk-kcn3af9r.js +12 -0
  56. package/{chunk-pyj6avd5.js → chunk-keq5kv9b.js} +2 -2
  57. package/{chunk-evnqkyt7.js → chunk-m45dpnd1.js} +12 -12
  58. package/chunk-m4wf04dz.js +15 -0
  59. package/chunk-m8k6t63k.js +2 -0
  60. package/{chunk-0crbhhna.js → chunk-nrggp4x6.js} +1 -1
  61. package/chunk-nt549hv5.js +2 -0
  62. package/{chunk-06s9pr82.js → chunk-pg4mtrdy.js} +2 -2
  63. package/chunk-psr4rxnn.js +20 -0
  64. package/chunk-qhhv81gd.js +2 -0
  65. package/chunk-qprms4rt.js +2 -0
  66. package/chunk-r0pm6dap.js +3 -0
  67. package/{chunk-44b9yx79.js → chunk-rck0kx09.js} +1 -1
  68. package/chunk-rsn8ad6s.js +2 -0
  69. package/{chunk-zhyzhekt.js → chunk-skzh3q1s.js} +1 -1
  70. package/{chunk-g2etemv5.js → chunk-sm4b3q49.js} +2 -2
  71. package/{chunk-g5p9mj1r.js → chunk-ste3ek53.js} +2 -2
  72. package/chunk-t3mq64c8.js +3 -0
  73. package/chunk-trw86cmb.js +11 -0
  74. package/{chunk-tfhp09nj.js → chunk-tv7met41.js} +2 -2
  75. package/{chunk-pna1wh02.js → chunk-w33aapmk.js} +12 -12
  76. package/chunk-wkqrsfrb.js +389 -0
  77. package/chunk-wxngqzqs.js +3 -0
  78. package/chunk-xgfqmm46.js +2 -0
  79. package/{chunk-2eaehpp6.js → chunk-xr77j4f8.js} +3 -3
  80. package/{chunk-c8g9jjqs.js → chunk-ykstnss8.js} +2 -2
  81. package/{chunk-1w4nh5t6.js → chunk-yqv7ej5r.js} +3 -3
  82. package/chunk-z97bcdg2.js +3 -0
  83. package/chunk-z9s7pwv5.js +7 -0
  84. package/compiled.js +9 -9
  85. package/package.json +1 -1
  86. package/ui-test-worker.js +41 -41
  87. package/worker.js +1 -1
  88. package/chunk-4hf0r9hv.js +0 -12
  89. package/chunk-4w8j6n7z.js +0 -2
  90. package/chunk-4yxd2kg1.js +0 -3
  91. package/chunk-62ebm0bn.js +0 -2
  92. package/chunk-6ae9810t.js +0 -25
  93. package/chunk-6ef085c1.js +0 -20
  94. package/chunk-6exa9fp7.js +0 -3
  95. package/chunk-73t051r6.js +0 -2
  96. package/chunk-86yr2c0r.js +0 -3
  97. package/chunk-8jn0yax5.js +0 -482
  98. package/chunk-9jtvj8md.js +0 -4172
  99. package/chunk-9xjecw6c.js +0 -2
  100. package/chunk-bjvv3403.js +0 -2
  101. package/chunk-bv96b8q7.js +0 -2
  102. package/chunk-drett6hb.js +0 -2
  103. package/chunk-fzftb4n2.js +0 -10
  104. package/chunk-ge38dhv9.js +0 -3
  105. package/chunk-hggam3je.js +0 -2
  106. package/chunk-nrdszs0g.js +0 -5
  107. package/chunk-pjgt1bdx.js +0 -3
  108. package/chunk-q6tgpaf3.js +0 -2
  109. package/chunk-t33bm5aa.js +0 -2
  110. package/chunk-v9ttcf6r.js +0 -3
  111. package/chunk-vd5332ps.js +0 -2
  112. package/chunk-vv9csar7.js +0 -2
  113. package/chunk-wnd3y4c0.js +0 -10
  114. package/chunk-xba6fr5v.js +0 -2
  115. package/chunk-ypxs8djn.js +0 -2
  116. package/chunk-zcwz44db.js +0 -2
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{m,h,f}from"./chunk-f97ma522.js";import{ie}from"./chunk-kcn3af9r.js";var c=function(t,i){if(typeof t==="string"&&/^\.\.?\//.test(t))return t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,a,o,s,p){return a?i?".jsx":".js":o&&(!s||!p)?e:o+s+"."+p.toLowerCase()+"js"});return t},l=(t)=>{let i=import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t;return import(c(i))},r;function wi(t){r=t}var xi=()=>ie(async()=>r??await l("./bedrock-converse-stream.ts"));var n={"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:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128000,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:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:0.25,cacheWrite:12.5},contextWindow:1e6,maxTokens:128000,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:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:0.1,cacheWrite:1.25},contextWindow:200000,maxTokens:64000,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:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,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:128000,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:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:0.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:32000,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:!0,supportsTemperature:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:0.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:64000,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:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:0.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:64000,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:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:4,output:20,cacheRead:0.2,cacheWrite:5},contextWindow:1e6,maxTokens:128000,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:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:0.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:32000,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:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128000,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:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.1,cacheWrite:2.5},contextWindow:1e6,maxTokens:128000,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:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"}},"openai-completions":{"chat:gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:0.15,cacheWrite:0},contextWindow:200000,maxTokens:64000,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:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gemini-3.6-flash":{id:"gemini-3.6-flash",name:"Gemini 3.6 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.75,output:3.75,cacheRead:0.075,cacheWrite:0},contextWindow:1e6,maxTokens:64000,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:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gemini-3.7-flash":{id:"gemini-3.7-flash",name:"Gemini 3.7 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.75,output:3.75,cacheRead:0.075,cacheWrite:0},contextWindow:1e6,maxTokens:64000,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:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"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:!0,input:["text","image"],cost:{input:0.75,output:3.75,cacheRead:0.075,cacheWrite:0},contextWindow:1e6,maxTokens:64000,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:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.95,output:4,cacheRead:0.19,cacheWrite:0},contextWindow:256000,maxTokens:32000,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:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,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:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,supportsMidConvoSystemMessages:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"}},"openai-responses":{"chat:gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.25,output:2,cacheRead:0.025,cacheWrite:0},contextWindow:264000,maxTokens:64000,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:null,max:null},compat:{supportsOpenAIGrammarTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"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:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:0.175,cacheWrite:0},contextWindow:1e6,maxTokens:128000,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:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:0.25,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:5,output:22.5,cacheRead:0.5,cacheWrite:0}]},contextWindow:1e6,maxTokens:128000,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:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.75,output:4.5,cacheRead:0.075,cacheWrite:0},contextWindow:400000,maxTokens:128000,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:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:0.2,output:1.25,cacheRead:0.02,cacheWrite:0},contextWindow:400000,maxTokens:128000,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",xhigh:"xhigh"},compat:{supportsOpenAIGrammarTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:1e6,maxTokens:128000,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:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:0.2,output:1.2,cacheRead:0.02,cacheWrite:0.25,tiers:[{inputTokensAbove:200000,input:0.4,output:1.8,cacheRead:0.04,cacheWrite:0.5}]},contextWindow:1050000,maxTokens:128000,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:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:4,output:20,cacheRead:0.4,cacheWrite:5,tiers:[{inputTokensAbove:272000,input:8,output:30,cacheRead:0.8,cacheWrite:10}]},contextWindow:1050000,maxTokens:128000,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:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:0.2,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:18,cacheRead:0.4,cacheWrite:5}]},contextWindow:1050000,maxTokens:128000,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:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5,tiers:[{inputTokensAbove:272000,input:20,output:75,cacheRead:2,cacheWrite:25}]},contextWindow:1e6,maxTokens:128000,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:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:0.1,output:0.5,cacheRead:0.01,cacheWrite:0.125,tiers:[{inputTokensAbove:272000,input:0.2,output:0.75,cacheRead:0.02,cacheWrite:0.25}]},contextWindow:1e6,maxTokens:128000,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:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.2,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:15,cacheRead:0.4,cacheWrite:5}]},contextWindow:1e6,maxTokens:128000,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:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.1,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:15,cacheRead:0.2,cacheWrite:5}]},contextWindow:1050000,maxTokens:128000,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:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:200000,input:4,output:12,cacheRead:1,cacheWrite:0}]},contextWindow:500000,maxTokens:128000,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:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:200000,input:4,output:12,cacheRead:1,cacheWrite:0}]},contextWindow:500000,maxTokens:128000,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:2000,maxHeight:2000,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:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:200000,input:4,output:12,cacheRead:1,cacheWrite:0}]},contextWindow:500000,maxTokens:128000,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:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:mai-code-1-flash-picker":{id:"mai-code-1-flash-picker",name:"MAI-Code-1-Flash",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text"],cost:{input:0.75,output:4.5,cacheRead:0.075,cacheWrite:0},contextWindow:256000,maxTokens:128000,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},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:!0,input:["text","image"],cost:{input:0.2,output:1.2,cacheRead:0.02,cacheWrite:0},contextWindow:256000,maxTokens:128000,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:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"}}};var Jr=m("github-copilot",n),T=h("github-copilot",n),w=f("github-copilot",n);var Fo="https://radius.pi.dev";function g(t){if(typeof t!=="object"||t===null||Array.isArray(t))return!1;let i=t;return typeof i.id==="string"&&typeof i.name==="string"&&typeof i.reasoning==="boolean"&&Array.isArray(i.input)&&typeof i.cost==="object"&&i.cost!==null&&!Array.isArray(i.cost)&&typeof i.contextWindow==="number"&&typeof i.maxTokens==="number"}function u(t){if(typeof t!=="object"||t===null||Array.isArray(t))return;let{baseUrl:i,models:e}=t;if(typeof i!=="string"||!Array.isArray(e))return;return{baseUrl:i,models:e.filter(g).map((a)=>({...a}))}}function ur(t){return(/^https?:\/\//iu.test(t)?t:`https://${t}`).replace(/\/+$/u,"")}function x(t){return u(t?.gatewayConfig)}function $o(t,i){return i.models.map((e)=>({...e,api:"pi-messages",provider:t,baseUrl:i.baseUrl}))}function vi(t,i){let e=x(i);return e?$o(t,e):[]}function v(t){let i=t.trim();return i.length>512?`${i.slice(0,512)}\u2026`:i}async function _i(t,i,e){let a={accept:"application/json"};if(i)a.authorization=`Bearer ${i}`;let o=await fetch(new URL("/v1/config",t),{headers:a,signal:e});if(!o.ok)throw Error(`Could not load Radius config from ${t}: ${o.status}: ${v(await o.text())}`);let s=u(await o.json());if(!s)throw Error(`Invalid Radius config from ${t}`);return s}
3
+ export{wi,xi,Jr,Fo,ur,$o,vi,_i};
@@ -0,0 +1,7 @@
1
+ // @bun
2
+ var mn="shell-guard",$i=["done","error","aborted","interrupted","waiting_user"];class t extends Error{constructor(e){super(e);this.name="BadRequestError"}}class y extends Error{constructor(e){super(e);this.name="NotFoundError"}}var St="chatgpt:subscription";function h(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"")}function E(e){return new Set(e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean))}function R(e,n){if(e===n)return 0;let r=Array.from({length:n.length+1},(o,i)=>i);for(let o=1;o<=e.length;o++){let i=r[0]??0;r[0]=o;for(let s=1;s<=n.length;s++){let a=r[s]??0;r[s]=Math.min((r[s]??0)+1,(r[s-1]??0)+1,i+(e[o-1]===n[s-1]?0:1)),i=a}}return r[n.length]??0}function T(e,n){let r=h(e);if(!r)return[];let o=E(e),i=[];for(let s of n){let a=s.id.indexOf("/"),l=a>=0?s.id.slice(a+1):"",f=[s.id,s.name,l].filter(Boolean).map((c)=>({compact:h(c),tokens:E(c)})).filter((c)=>c.compact.length>0),p=Number.POSITIVE_INFINITY;for(let c of f)if(c.compact===r)p=Math.min(p,0);else if(c.compact.includes(r)||r.includes(c.compact)){let u=Math.abs(c.compact.length-r.length);p=Math.min(p,1+u/Math.max(c.compact.length,r.length))}else{let u=0;for(let d of o)if(c.tokens.has(d))u++;if(u>0){let d=u/Math.max(o.size,c.tokens.size);p=Math.min(p,10+(1-d)*10)}}if(!Number.isFinite(p)&&r.length>=4){let c=Math.max(2,Math.floor(r.length*0.34));for(let u of f){if(Math.abs(u.compact.length-r.length)>c)continue;let d=R(r,u.compact);if(d<=c)p=Math.min(p,100+d)}}if(Number.isFinite(p))i.push({model:s,score:p})}return i.sort((s,a)=>s.score-a.score||s.model.id.localeCompare(a.model.id))}function _(e,n,r=5){return T(e,n).slice(0,Math.max(1,r)).map((o)=>o.model)}function hn(e,n){let r=T(e,n);if(r.length===0)return;let o=r.filter((s)=>s.score===0);if(o.length===1&&o[0])return o[0].model;if(o.length>1)return;let i=r.filter((s)=>s.score<10);if(i.length===1&&i[0])return i[0].model;return}function fn(e,n){let r=[...n].sort((a,l)=>a.id.localeCompare(l.id)),o=(a)=>a.name===a.id?a.id:`${a.id} (${a.name})`,i=_(e,r).map(o),s=r.map(o);return[`unknown model ${e}`,`closest matches: ${i.length>0?i.join(", "):"none"}`,`available models (${s.length}): ${s.length>0?s.join(", "):"none"}`,"Use one of the listed provider/model IDs."].join(`
3
+ `)}var Wi=["openai-completions","openai-responses","anthropic-messages"];function gn(e){if(typeof e==="number")return Number.isFinite(e)&&e>0?Math.round(e):void 0;if(typeof e!=="string")return;let n=e.trim().toLowerCase();if(!n)return;let r=n.match(/^(\d+(?:\.\d+)?)\s*(k|m)?(?:i?b|tokens?)?$/);if(!r)return;let o=Number.parseFloat(r[1]??"");if(!Number.isFinite(o)||o<=0)return;let i=r[2];if(i==="k")return Math.round(o*1000);if(i==="m")return Math.round(o*1e6);return Math.round(o)}function b(e){if(e>=1e6&&e%1e5===0)return`${e/1e6}m`;if(e>=1000&&e%1000===0)return`${e/1000}k`;return String(e)}function I(e){let n=e.trim();if(!n)return;let r,o,i=n,s=i.match(/\s*\[(.*?)\]\s*$/);if(s&&s.index!==void 0){i=i.slice(0,s.index).trim();let p=s[1]?.split(",").map((u)=>u.trim()).filter(Boolean)??[],c=0;for(let u of p){let d=u.indexOf("=");if(d>=0){let g=u.slice(0,d).trim().toLowerCase(),x=gn(u.slice(d+1).trim());if(g==="context"||g==="ctx"||g==="window"||g==="contextwindow")r=x;else if(g==="max"||g==="output"||g==="maxtokens")o=x}else{let g=gn(u);if(c===0)r=g;else if(c===1)o=g;c++}}}else{let p=i.match(/^(.*?=.*?):(\d+(?:\.\d+)?[kmKM]?|\d{5,})\s*$/);if(p?.[1]&&p[2])i=p[1].trim(),r=gn(p[2])}let a=i.indexOf("="),l,S;if(a<0)l=i.trim(),S=l;else l=i.slice(0,a).trim(),S=i.slice(a+1).trim()||l;if(!l)return;let f={id:l,name:S};if(r!==void 0)f.contextWindow=r;if(o!==void 0)f.maxTokens=o;return f}function _r(e){return e.split(/\r?\n/).map(I).filter((n)=>n!==void 0)}function Jo(e){return e.map((n)=>{let r=n.name===n.id?n.id:`${n.id}=${n.name}`,o=[];if(n.contextWindow!==void 0)o.push(b(n.contextWindow));if(n.maxTokens!==void 0)if(n.contextWindow!==void 0)o.push(b(n.maxTokens));else o.push(`max=${b(n.maxTokens)}`);return o.length>0?`${r} [${o.join(", ")}]`:r}).join(`
4
+ `)}var Hi=["react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","@basalt/plugin/web","@basalt/ui"];var O=["http","https"];var qi="provider:",Gi="oauth:openai",Ar="update:registry";function Yo(e){let n=e.trim();if(!n)throw Error("\u8BF7\u8F93\u5165\u4EE3\u7406\u4E3B\u673A\u6216\u5B8C\u6574\u5730\u5740");let r;try{r=new URL(/^[a-z][a-z\d+.-]*:\/\//i.test(n)?n:`http://${n}`)}catch{throw Error("\u4EE3\u7406\u5730\u5740\u65E0\u6548")}if(!P(r.protocol))throw Error("\u4EC5\u652F\u6301 http:// \u6216 https:// \u4EE3\u7406");if(r.username||r.password||r.pathname!=="/"||r.search||r.hash)throw Error("\u4EE3\u7406\u5730\u5740\u53EA\u80FD\u5305\u542B\u534F\u8BAE\u3001\u4E3B\u673A\u548C\u7AEF\u53E3\uFF1B\u8D26\u53F7\u5BC6\u7801\u8BF7\u5355\u72EC\u586B\u5199");return{protocol:r.protocol==="https:"?"https":"http",hostname:r.hostname.replace(/^\[|\]$/g,""),port:r.port?Number(r.port):r.protocol==="https:"?443:8080}}function P(e){return O.some((n)=>`${n}:`===e)}function zi(e){return e.startsWith("provider:")&&e.length>9}var yn=["user","assistant","thinking","tool_input","tool_output","error","attachment","notice","extension","title"],ji=["text","regex"],Vi=["best","recent"],Ki=["session","none"];var Xt=4,Qi="https://basalt.work",Xi=["https://basalt.work","https://www.basalt.work"],bn=7420;var Zo=["auto","bash","powershell","cmd"];var ei=["active","archived","all"],Ji="session.group";var Yi=["pending","in_progress","completed"],ti="basalt-session",io=["image","text","path"];var Zi=["defer","always"],es=["global","tool","source"];function Oe(e,n){if(e.toLowerCase()!=="tool_call"||!n||typeof n!=="object")return{name:e,input:n};let r=n;if(typeof r.name!=="string"||!r.name.trim())return{name:e,input:n};if(r.arguments===void 0)return{name:r.name,input:{},source:{name:"tool_call",input:n}};if(!r.arguments||typeof r.arguments!=="object"||Array.isArray(r.arguments))return{name:e,input:n};return{name:r.name,input:r.arguments,source:{name:"tool_call",input:n}}}function ts(e){return/eyJ[A-Za-z0-9+/=_-]{16,}/.exec(e)?.[0]}import{existsSync as A,mkdirSync as M,writeFileSync as k}from"fs";import{homedir as C}from"os";import{join as m}from"path";function Ke(e=process.env){if(e.BASALT_HOME)return e.BASALT_HOME;let n=C();if(process.platform==="win32")return m(e.LOCALAPPDATA??m(n,"AppData","Local"),"basalt");if(process.platform==="darwin")return m(n,"Library","Application Support","basalt");return m(e.XDG_DATA_HOME??m(n,".local","share"),"basalt")}function L(e){return m(e,".basalt","tmp")}function Xo(e){let n=L(e);M(n,{recursive:!0});let r=m(n,".gitignore");if(!A(r))k(r,`*
5
+ !.gitignore
6
+ `);return n}function dn(e){try{let n=Xo(e);return{TMPDIR:n,TEMP:n,TMP:n}}catch{return{}}}
7
+ export{Ke,Xo,dn,mn,$i,t,y,St,hn,fn,Wi,gn,_r,Jo,Hi,qi,Gi,Ar,Yo,zi,yn,ji,Vi,Ki,Xt,Qi,Xi,bn,Zo,ei,Ji,Yi,ti,io,Zi,es,Oe,ts};