@averyyy/pi-coding-agent 1.3.0-piclient.5 → 1.4.0-piclient.2

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 (181) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/bundle/chunks/anthropic-messages-3TZAX2CL.js +6 -0
  3. package/dist/bundle/chunks/azure-openai-responses-5OV6AS44.js +2 -0
  4. package/dist/bundle/chunks/bedrock-converse-stream.js +8 -8
  5. package/dist/bundle/chunks/{chunk-27EJF7XV.js → chunk-3EGEEHMN.js} +1 -1
  6. package/dist/bundle/chunks/{chunk-VBIW3SGN.js → chunk-3LTMO2WY.js} +1 -1
  7. package/dist/bundle/chunks/{chunk-PYGXRV27.js → chunk-3V45WARH.js} +1 -1
  8. package/dist/bundle/chunks/{chunk-S3GGRYIO.js → chunk-5AGIVGSV.js} +1 -1
  9. package/dist/bundle/chunks/{chunk-F5ZABL6Z.js → chunk-7CBJINYJ.js} +2 -2
  10. package/dist/bundle/chunks/{chunk-DRQDKNXA.js → chunk-7DDKXS2Q.js} +1 -1
  11. package/dist/bundle/chunks/{chunk-JBOKZR45.js → chunk-BRYV63PL.js} +2 -2
  12. package/dist/bundle/chunks/{chunk-H3QXYIF7.js → chunk-CF5GWZHW.js} +1 -1
  13. package/dist/bundle/chunks/chunk-D3OXAPLU.js +11 -0
  14. package/dist/bundle/chunks/{chunk-WALKIYXG.js → chunk-GA3MDGH3.js} +1 -1
  15. package/dist/bundle/chunks/chunk-H2AI7MFJ.js +9 -0
  16. package/dist/bundle/chunks/{chunk-XDNB4NV2.js → chunk-H2UJDH5M.js} +10 -9
  17. package/dist/bundle/chunks/chunk-H76KZMOI.js +2 -0
  18. package/dist/bundle/chunks/chunk-HZG4C6GI.js +2 -0
  19. package/dist/bundle/chunks/{chunk-4L3WN2XY.js → chunk-JXWJOIH4.js} +1 -1
  20. package/dist/bundle/chunks/{chunk-6CYCI3EJ.js → chunk-LVVZS2NO.js} +1 -1
  21. package/dist/bundle/chunks/{chunk-A5PVA2BG.js → chunk-OSZFX42P.js} +3 -3
  22. package/dist/bundle/chunks/{chunk-PT5WCDHM.js → chunk-PG7P2LUM.js} +2 -2
  23. package/dist/bundle/chunks/{chunk-6AK3I2ZG.js → chunk-RWOIFRGD.js} +43 -39
  24. package/dist/bundle/chunks/chunk-TLSZ4DWU.js +16 -0
  25. package/dist/bundle/chunks/{chunk-ZBURYEWF.js → chunk-TMTOQ7H7.js} +1 -1
  26. package/dist/bundle/chunks/{chunk-22CYIUS4.js → chunk-UKVNB6C4.js} +1 -1
  27. package/dist/bundle/chunks/chunk-VHUVVKJM.js +2 -0
  28. package/dist/bundle/chunks/{chunk-32OQRHU5.js → chunk-VYYRESZJ.js} +1 -1
  29. package/dist/bundle/chunks/chunk-WVXVPMMO.js +2 -0
  30. package/dist/bundle/chunks/{chunk-WEGEKOLF.js → chunk-ZZZ2B63M.js} +1 -1
  31. package/dist/bundle/chunks/{cli-C7ZYV7NI.js → cli-QUNA6INU.js} +1 -1
  32. package/dist/bundle/chunks/cloudflare-workers-ai-system-one-QIIM6OB4.js +2 -0
  33. package/dist/bundle/chunks/{easter-egg-3d-JPU5ICBY.js → easter-egg-3d-4L2AVJKX.js} +1 -1
  34. package/dist/bundle/chunks/{execute-ZWI524ZI.js → execute-UNST3ORJ.js} +9 -3
  35. package/dist/bundle/chunks/google-antigravity-runtime.js +7 -7
  36. package/dist/bundle/chunks/google-generative-ai-MSA77EGV.js +2 -0
  37. package/dist/bundle/chunks/google-vertex-MQ5IHJDO.js +2 -0
  38. package/dist/bundle/chunks/{https-proxy-agent-UDEHOBGS.js → https-proxy-agent-LVOO5TPL.js} +1 -1
  39. package/dist/bundle/chunks/{jiti-loader-C3NU2SDH.js → jiti-loader-GL4HJFAD.js} +1 -1
  40. package/dist/bundle/chunks/{jiti-static-loader-E6ANQD5T.js → jiti-static-loader-2RCDI6B4.js} +1 -1
  41. package/dist/bundle/chunks/{lib-TEDK3E5I.js → lib-4AVRLBHM.js} +1 -1
  42. package/dist/bundle/chunks/{llama-cpp-classify-FYN623RH.js → llama-cpp-classify-U4EH6TAM.js} +2 -2
  43. package/dist/bundle/chunks/{mistral-conversations-IDNVOMLP.js → mistral-conversations-OJFHLO4F.js} +1 -1
  44. package/dist/bundle/chunks/{multipart-parser-SQ6GDJL7.js → multipart-parser-FMGQ7342.js} +1 -1
  45. package/dist/bundle/chunks/{node-TWVVAGPO.js → node-AUOGOBCN.js} +1 -1
  46. package/dist/bundle/chunks/{node-N5BSDOA5.js → node-KCMANYC2.js} +1 -1
  47. package/dist/bundle/chunks/openai-codex-responses-UIB63WGM.js +10 -0
  48. package/dist/bundle/chunks/openai-completions-T5JB7LUM.js +7 -0
  49. package/dist/bundle/chunks/{openai-decisions-CWANEVXX.js → openai-decisions-Q46R33J3.js} +1 -1
  50. package/dist/bundle/chunks/openai-responses-FGTD6NDJ.js +4 -0
  51. package/dist/bundle/chunks/openrouter-images-WBAVKHHY.js +2 -0
  52. package/dist/bundle/chunks/pi-messages-S7RKCD5K.js +8 -0
  53. package/dist/bundle/chunks/{runtime-RTNZQVM5.js → runtime-SITSZTHV.js} +1 -1
  54. package/dist/bundle/chunks/{src-UK77SYZE.js → src-QKGKDFSU.js} +1 -1
  55. package/dist/bundle/chunks/typesafe-system-one-DFEHTLK5.js +2 -0
  56. package/dist/bundle/chunks/virtual-modules-VKS5OUZD.js +2 -0
  57. package/dist/bundle/cli-runtime.js +1 -1
  58. package/dist/bundle/index.js +1 -1
  59. package/dist/bundle/rpc-entry.js +1 -1
  60. package/dist/core/agent-session.d.ts +5 -1
  61. package/dist/core/agent-session.d.ts.map +1 -1
  62. package/dist/core/agent-session.js +42 -13
  63. package/dist/core/agent-session.js.map +1 -1
  64. package/dist/core/client-identity.d.ts +8 -0
  65. package/dist/core/client-identity.d.ts.map +1 -0
  66. package/dist/core/client-identity.js +15 -0
  67. package/dist/core/client-identity.js.map +1 -0
  68. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  69. package/dist/core/compaction/branch-summarization.js +2 -3
  70. package/dist/core/compaction/branch-summarization.js.map +1 -1
  71. package/dist/core/compaction/compaction.d.ts +3 -3
  72. package/dist/core/compaction/compaction.d.ts.map +1 -1
  73. package/dist/core/compaction/compaction.js +35 -30
  74. package/dist/core/compaction/compaction.js.map +1 -1
  75. package/dist/core/export-html/index.d.ts.map +1 -1
  76. package/dist/core/export-html/index.js +2 -0
  77. package/dist/core/export-html/index.js.map +1 -1
  78. package/dist/core/export-html/template.html +1 -0
  79. package/dist/core/export-html/template.js +2 -1
  80. package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
  81. package/dist/core/export-html/vendor/marked.min.js +30 -29
  82. package/dist/core/extensions/loader.d.ts.map +1 -1
  83. package/dist/core/extensions/loader.js +3 -0
  84. package/dist/core/extensions/loader.js.map +1 -1
  85. package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
  86. package/dist/core/extensions/virtual-modules.js +3 -0
  87. package/dist/core/extensions/virtual-modules.js.map +1 -1
  88. package/dist/core/model-config.d.ts +915 -0
  89. package/dist/core/model-config.d.ts.map +1 -1
  90. package/dist/core/model-config.js +48 -24
  91. package/dist/core/model-config.js.map +1 -1
  92. package/dist/core/model-resolver.js +2 -2
  93. package/dist/core/model-resolver.js.map +1 -1
  94. package/dist/core/model-runtime.d.ts.map +1 -1
  95. package/dist/core/model-runtime.js +6 -3
  96. package/dist/core/model-runtime.js.map +1 -1
  97. package/dist/core/package-manager.js +2 -2
  98. package/dist/core/package-manager.js.map +1 -1
  99. package/dist/core/pi-server-client.d.ts.map +1 -1
  100. package/dist/core/pi-server-client.js +4 -1
  101. package/dist/core/pi-server-client.js.map +1 -1
  102. package/dist/core/provider-composer.d.ts +2 -1
  103. package/dist/core/provider-composer.d.ts.map +1 -1
  104. package/dist/core/provider-composer.js +7 -3
  105. package/dist/core/provider-composer.js.map +1 -1
  106. package/dist/core/sdk.d.ts.map +1 -1
  107. package/dist/core/sdk.js +15 -10
  108. package/dist/core/sdk.js.map +1 -1
  109. package/dist/core/tools/grep.d.ts.map +1 -1
  110. package/dist/core/tools/grep.js +3 -1
  111. package/dist/core/tools/grep.js.map +1 -1
  112. package/dist/extensions/codemode/execute.d.ts.map +1 -1
  113. package/dist/extensions/codemode/execute.js +99 -24
  114. package/dist/extensions/codemode/execute.js.map +1 -1
  115. package/dist/extensions/mcp/config.d.ts.map +1 -1
  116. package/dist/extensions/mcp/config.js +3 -2
  117. package/dist/extensions/mcp/config.js.map +1 -1
  118. package/dist/modes/interactive/interactive-mode.d.ts +11 -15
  119. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  120. package/dist/modes/interactive/interactive-mode.js +73 -115
  121. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  122. package/dist/package-manager-cli.d.ts.map +1 -1
  123. package/dist/package-manager-cli.js +2 -1
  124. package/dist/package-manager-cli.js.map +1 -1
  125. package/dist/utils/clipboard-command.d.ts.map +1 -1
  126. package/dist/utils/clipboard-command.js +3 -0
  127. package/dist/utils/clipboard-command.js.map +1 -1
  128. package/dist/utils/pi-user-agent.d.ts +1 -0
  129. package/dist/utils/pi-user-agent.d.ts.map +1 -1
  130. package/dist/utils/pi-user-agent.js +3 -2
  131. package/dist/utils/pi-user-agent.js.map +1 -1
  132. package/dist/utils/shell.d.ts.map +1 -1
  133. package/dist/utils/shell.js +45 -13
  134. package/dist/utils/shell.js.map +1 -1
  135. package/dist/utils/tools-manager.d.ts.map +1 -1
  136. package/dist/utils/tools-manager.js +4 -3
  137. package/dist/utils/tools-manager.js.map +1 -1
  138. package/docs/codemode.md +2 -2
  139. package/docs/compaction.md +3 -3
  140. package/docs/custom-provider.md +53 -1
  141. package/docs/docs.json +4 -0
  142. package/docs/environment-variables.md +1 -0
  143. package/docs/extensions.md +133 -10
  144. package/docs/models-configuration.md +196 -0
  145. package/docs/models.md +21 -5
  146. package/docs/settings.md +1 -1
  147. package/docs/tui.md +70 -0
  148. package/docs/windows.md +16 -2
  149. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  150. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  151. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  152. package/examples/extensions/gondolin/package-lock.json +2 -2
  153. package/examples/extensions/gondolin/package.json +1 -1
  154. package/examples/extensions/sandbox/package-lock.json +2 -2
  155. package/examples/extensions/sandbox/package.json +1 -1
  156. package/examples/extensions/with-deps/package-lock.json +2 -2
  157. package/examples/extensions/with-deps/package.json +1 -1
  158. package/package.json +7 -6
  159. package/schemas/models.schema.json +83 -29
  160. package/dist/bundle/chunks/anthropic-messages-JKZEYO3X.js +0 -6
  161. package/dist/bundle/chunks/azure-openai-responses-CALHHRO4.js +0 -2
  162. package/dist/bundle/chunks/chunk-2TBKESBE.js +0 -2
  163. package/dist/bundle/chunks/chunk-3IAHLZM6.js +0 -2
  164. package/dist/bundle/chunks/chunk-KO7M2ZFM.js +0 -11
  165. package/dist/bundle/chunks/chunk-NAPMJL5U.js +0 -11
  166. package/dist/bundle/chunks/chunk-VZZDG22Y.js +0 -9
  167. package/dist/bundle/chunks/chunk-XIQJS2WK.js +0 -2
  168. package/dist/bundle/chunks/cloudflare-workers-ai-system-one-W3JVUOXV.js +0 -2
  169. package/dist/bundle/chunks/google-generative-ai-4YEPBKDH.js +0 -2
  170. package/dist/bundle/chunks/google-vertex-5HD3H47T.js +0 -2
  171. package/dist/bundle/chunks/openai-codex-responses-TWAB375R.js +0 -10
  172. package/dist/bundle/chunks/openai-completions-3LCSEI2J.js +0 -7
  173. package/dist/bundle/chunks/openai-responses-JEQACBMR.js +0 -3
  174. package/dist/bundle/chunks/openrouter-images-DUPG5DZO.js +0 -2
  175. package/dist/bundle/chunks/pi-messages-V27DSLVC.js +0 -8
  176. package/dist/bundle/chunks/typesafe-system-one-JJVDHYHL.js +0 -2
  177. package/dist/bundle/chunks/virtual-modules-2YGWEC7J.js +0 -2
  178. package/dist/core/provider-attribution.d.ts +0 -4
  179. package/dist/core/provider-attribution.d.ts.map +0 -1
  180. package/dist/core/provider-attribution.js +0 -72
  181. package/dist/core/provider-attribution.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
2
+ var PI_AI_VERSION="1.4.0";var PI_ATTRIBUTION={name:"pi",url:"https://pi.dev",categories:["cli-agent"]},NVIDIA_NIM_HOST="integrate.api.nvidia.com",OPENCODE_HOST="opencode.ai";function mergeClientIdentity(...sources){let merged;for(let source of sources)source&&(merged={...merged},source.userAgent!==void 0&&(merged.userAgent=source.userAgent),source.attribution!==void 0&&(merged.attribution=source.attribution),source.version!==void 0&&(merged.version=source.version));return merged}function getClientVersion(identity){return identity?.version??PI_AI_VERSION}function runtimeDescription(){if(typeof process>"u")return;let versions=process.versions;if(versions?.bun)return`bun/${versions.bun}`;if(versions?.node)return`node/${process.version}`}function formatUserAgent(identity){let mode=identity?.userAgent??"detailed";if(typeof mode=="object")return mode.custom;if(mode==="short")return"pi";let product=`pi/${getClientVersion(identity)}`,runtime=runtimeDescription();return runtime?`${product} (${process.platform}; ${runtime}; ${process.arch})`:`${product} (browser)`}function matchesHost(baseUrl,expectedHost){try{return new URL(baseUrl).hostname===expectedHost}catch{return!1}}function isOpenRouter(target){return target.provider==="openrouter"||target.baseUrl.includes("openrouter.ai")}function isNvidiaNim(target){return target.provider==="nvidia"||matchesHost(target.baseUrl,NVIDIA_NIM_HOST)}function isOpenCode(target){return target.provider==="opencode"||target.provider==="opencode-go"||matchesHost(target.baseUrl,OPENCODE_HOST)}function getAttributionHeaders(target,identity){let attribution=identity?.attribution;if(!attribution)return{};let{name,url,categories}=attribution;return isOpenRouter(target)?{"HTTP-Referer":url,"X-OpenRouter-Title":name,...categories===void 0||categories.length===0?{}:{"X-OpenRouter-Categories":categories.join(",")}}:isNvidiaNim(target)?{"X-BILLING-INVOKE-ORIGIN":name.charAt(0).toUpperCase()+name.slice(1)}:isOpenCode(target)?{"x-opencode-client":name}:{}}function getOpenCodeSessionHeaders(target,sessionId){return sessionId&&isOpenCode(target)?{"x-opencode-session":sessionId}:void 0}function getIdentityHeaders(target,identity){return{"User-Agent":formatUserAgent(identity),...getAttributionHeaders(target,identity)}}function isMutableModels(models){return"setProvider"in models&&"deleteProvider"in models&&"clearProviders"in models}function withClientIdentity(models,identity){let withIdentity=options=>({...options,identity:mergeClientIdentity(identity,options?.identity)}),wrapped={getProviders:()=>models.getProviders(),getProvider:id=>models.getProvider(id),getModels:provider=>models.getModels(provider),getModel:(provider,id)=>models.getModel(provider,id),getModelsOfType:(type,provider)=>models.getModelsOfType(type,provider),getModelOfType:(type,provider,id)=>models.getModelOfType(type,provider,id),getAllModels:provider=>models.getAllModels(provider),refresh:options=>models.refresh(options),checkAuth:(providerId,options)=>models.checkAuth(providerId,options),getAvailable:(providerId,options)=>models.getAvailable(providerId,options),getAvailableOfType:(type,providerId,options)=>models.getAvailableOfType(type,providerId,options),getAllAvailable:(providerId,options)=>models.getAllAvailable(providerId,options),getAuth:models.getAuth.bind(models),login:(providerId,type,interaction,options)=>models.login(providerId,type,interaction,options),logout:(providerId,options)=>models.logout(providerId,options),stream:(model,context,options)=>models.stream(model,context,withIdentity(options)),complete:(model,context,options)=>models.complete(model,context,withIdentity(options)),streamSimple:(model,context,options)=>models.streamSimple(model,context,withIdentity(options)),completeSimple:(model,context,options)=>models.completeSimple(model,context,withIdentity(options)),streamDeferred:(model,handle,options)=>models.streamDeferred(model,handle,withIdentity(options)),fetchDeferred:(model,handle,options)=>models.fetchDeferred(model,handle,withIdentity(options)),cancelDeferred:(model,handle,options)=>models.cancelDeferred(model,handle,withIdentity(options)),generateImages:(model,context,options)=>models.generateImages(model,context,withIdentity(options)),classify:(model,context,options)=>models.classify(model,context,withIdentity(options))};return isMutableModels(models)?{...wrapped,setProvider:provider=>models.setProvider(provider),deleteProvider:id=>models.deleteProvider(id),clearProviders:()=>models.clearProviders()}:wrapped}export{PI_AI_VERSION,PI_ATTRIBUTION,mergeClientIdentity,getClientVersion,formatUserAgent,getAttributionHeaders,getOpenCodeSessionHeaders,getIdentityHeaders,withClientIdentity};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
2
+ import{retryProviderRequest}from"./chunk-PMRZO46Y.js";import{headersToRecord,providerHeadersToRecord}from"./chunk-UTB4DTYQ.js";import{calculateCost}from"./chunk-D3OXAPLU.js";import{getIdentityHeaders}from"./chunk-H76KZMOI.js";function httpError(label,response,body){let error=new Error(`${label} returned ${response.status}`);return error.status=response.status,error.headers=response.headers,error.body=body,error}function timeoutError(timeoutMs){let error=new Error(`Request timed out after ${timeoutMs}ms`);return error.name="TimeoutError",error.status=void 0,error.headers=void 0,error.body="",error}function isRecord(value){return typeof value=="object"&&value!==null&&!Array.isArray(value)}function requiredNumber(label,value,field){if(typeof value!="number"||!Number.isFinite(value))throw new Error(`${label} returned an invalid ${field}`);return value}function requestHeaders(model,apiKey,optionsHeaders,identity){return providerHeadersToRecord(getIdentityHeaders(model,identity),{authorization:`Bearer ${apiKey}`,"content-type":"application/json"},model.headers,optionsHeaders)??{}}async function postClassifierRequest(label,url,model,body,options,noRetryStatuses){if(!options?.apiKey)throw new Error(`No API key for provider: ${model.provider}`);let apiKey=options.apiKey,payload=body,transformed=await options.onPayload?.(payload,model);transformed!==void 0&&(payload=transformed);let requestFetch=options.fetch??globalThis.fetch,{response,json}=await retryProviderRequest(async()=>{let timeoutSignal=options.timeoutMs!==void 0?AbortSignal.timeout(options.timeoutMs):void 0,signal=options.signal&&timeoutSignal?AbortSignal.any([options.signal,timeoutSignal]):options.signal??timeoutSignal;try{let next=await requestFetch(url,{method:"POST",headers:requestHeaders(model,apiKey,options.headers,options.identity),body:JSON.stringify(payload),signal});if(!next.ok)throw httpError(label,next,await next.text());return{response:next,json:await next.json()}}catch(error){throw timeoutSignal?.aborted&&!options.signal?.aborted?timeoutError(options.timeoutMs):error}},{maxRetries:options.maxRetries??2,maxRetryDelayMs:options.maxRetryDelayMs,signal:options.signal,noRetryStatuses});return await options.onResponse?.({status:response.status,headers:headersToRecord(response.headers)},model),json}function tokenCount(value){return typeof value=="number"&&Number.isFinite(value)&&value>0?value:0}function parseClassifierUsage(value,model){if(!isRecord(value)||value.input_tokens===void 0&&value.output_tokens===void 0)return;let input=tokenCount(value.input_tokens),output=tokenCount(value.output_tokens),usage={input,output,cacheRead:0,cacheWrite:0,totalTokens:input+output,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}};return calculateCost(model,usage),usage}export{isRecord,requiredNumber,postClassifierRequest,parseClassifierUsage};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
2
- var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __esm=(fn,res,err)=>function(){if(err)throw err[0];try{return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res}catch(e){throw err=[e],e}};var __commonJS=(cb,mod)=>function(){try{return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}catch(e){throw mod=0,e}};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));export{__require,__esm,__commonJS,__export,__toESM};
2
+ var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(a,b)=>(typeof require<"u"?require:a)[b]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var __esm=(fn,res,err)=>function(){if(err)throw err[0];try{return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res}catch(e){throw err=[e],e}};var __commonJS=(cb,mod)=>function(){try{return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports}catch(e){throw mod=0,e}};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);export{__require,__esm,__commonJS,__export,__toESM,__toCommonJS};