@dev-crowagent/pigeon-coding-agent 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/dist/bundle/chunks/{anthropic-messages-S7OHKPOC.js → anthropic-messages-QJJLDZHE.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-C4HXCGKY.js → azure-openai-responses-DYWZCA5X.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/{chunk-5YSISOFY.js → chunk-3FMXCUWP.js} +1 -1
- package/dist/bundle/chunks/{chunk-6BV2MVXK.js → chunk-3PBWJQ66.js} +1 -1
- package/dist/bundle/chunks/{chunk-VY3Y7KDL.js → chunk-3U6YJAQP.js} +1 -1
- package/dist/bundle/chunks/{chunk-T52L5B3T.js → chunk-5CCI6VJX.js} +1 -1
- package/dist/bundle/chunks/{chunk-PGJVGVSP.js → chunk-5USCOSGN.js} +1 -1
- package/dist/bundle/chunks/{chunk-OUFDCV7C.js → chunk-BEK6TYMV.js} +1 -1
- package/dist/bundle/chunks/chunk-BMDT5BON.js +17 -0
- package/dist/bundle/chunks/chunk-GSHWAOXD.js +2 -0
- package/dist/bundle/chunks/chunk-IDIZ4UTE.js +84 -0
- package/dist/bundle/chunks/{chunk-BOCI5WGU.js → chunk-JHKMQXNB.js} +1 -1
- package/dist/bundle/chunks/chunk-QISAGK35.js +15 -0
- package/dist/bundle/chunks/{chunk-WTT6ACRW.js → chunk-QRGBEJWY.js} +1 -1
- package/dist/bundle/chunks/{chunk-RMQSLH4P.js → chunk-THQI7SZG.js} +1 -1
- package/dist/bundle/chunks/{chunk-3BW64VNB.js → chunk-UKXS2KMU.js} +1 -1
- package/dist/bundle/chunks/{chunk-QIM6CXAU.js → chunk-VPWKWGGZ.js} +1 -1
- package/dist/bundle/chunks/{chunk-CENTGHH3.js → chunk-VQAGYOJU.js} +1 -1
- package/dist/bundle/chunks/{chunk-VKY2XKRH.js → chunk-VRQXNNU2.js} +2 -2
- package/dist/bundle/chunks/{chunk-GQHEZCKG.js → chunk-WBYK5EUB.js} +148 -208
- package/dist/bundle/chunks/{chunk-ONH666LT.js → chunk-Z66WXIFH.js} +1 -1
- package/dist/bundle/chunks/{cli-FNCZKMKM.js → cli-USNOWZD3.js} +1 -1
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-R2JVPCDL.js → cloudflare-workers-ai-system-one-3X2SUJJS.js} +1 -1
- package/dist/bundle/chunks/{execute-XNTKW56B.js → execute-GDKXFYVG.js} +1 -1
- package/dist/bundle/chunks/{google-generative-ai-5VXURRH2.js → google-generative-ai-GI6YYRFV.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-WHGUHG5B.js → google-vertex-6SBDJ6E6.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-LNRMBUDA.js → llama-cpp-classify-A6IS64ZW.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-FZ4P7VNF.js → mistral-conversations-7RT7TO7K.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-OIMJK5WE.js → openai-codex-responses-P5OBIMST.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-FHCUS6R5.js → openai-completions-Z6RGAWT5.js} +1 -1
- package/dist/bundle/chunks/{openai-decisions-LABKHEXJ.js → openai-decisions-TMZR73QU.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-3WC62NWH.js → openai-responses-MFC5X2SY.js} +1 -1
- package/dist/bundle/chunks/{openrouter-chat-images-FFVJXZTY.js → openrouter-chat-images-FMPGOOZW.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-SPX5Z3O3.js → openrouter-images-KM7MMBZV.js} +1 -1
- package/dist/bundle/chunks/{pigeon-decision-PKYQMZCD.js → pigeon-decision-USGSVSUH.js} +1 -1
- package/dist/bundle/chunks/{pigeon-image-4OX3LN22.js → pigeon-image-XCBEUVPA.js} +1 -1
- package/dist/bundle/chunks/{pigeon-messages-BDEFLADM.js → pigeon-messages-SJ3XBCLJ.js} +1 -1
- package/dist/bundle/chunks/{runtime-5YBC2DMM.js → runtime-BOCII6AA.js} +1 -1
- package/dist/bundle/chunks/serve-command-NLBMAD3H.js +41 -0
- package/dist/bundle/chunks/{typesafe-system-one-LBP2VTNM.js → typesafe-system-one-X243G3TP.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-MKFBVGCK.js +2 -0
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +2 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/serve-command.d.ts +3 -0
- package/dist/cli/serve-command.d.ts.map +1 -0
- package/dist/cli/serve-command.js +163 -0
- package/dist/cli/serve-command.js.map +1 -0
- package/dist/cli/serve-command.lazy.d.ts +2 -0
- package/dist/cli/serve-command.lazy.d.ts.map +1 -0
- package/dist/cli/serve-command.lazy.js +2 -0
- package/dist/cli/serve-command.lazy.js.map +1 -0
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +3 -0
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +6 -0
- package/dist/main.js.map +1 -1
- package/package.json +9 -8
- package/dist/bundle/chunks/chunk-KQBUYSHV.js +0 -30
- package/dist/bundle/chunks/virtual-modules-RXYO7SWA.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url);
|
|
2
|
+
function buildProviderErrorPattern(patterns){return new RegExp(patterns.join("|"),"i")}var NON_RETRYABLE_PROVIDER_LIMIT_ERROR_PATTERN=buildProviderErrorPattern(["GoUsageLimitError","FreeUsageLimitError","Monthly usage limit reached","available balance","insufficient_quota","out of budget","quota exceeded","billing","subscription_sharing_usage_limit_exceeded","subscription_sharing_workplace_individual_usage_limit_exceeded",'"code"\\s*:\\s*"?1308(?![0-9])']),RETRYABLE_PROVIDER_ERROR_PATTERN=buildProviderErrorPattern(["overloaded","server_busy","servers are currently busy","currently experiencing high demand","model is at capacity","admission ceiling","rate.?limit","too many requests","^throttling error:","rate increased too quickly","(?<![a-z0-9])(?:429|500|502|503|504|520|524|525)(?![a-z0-9])","service.?(?:is.?)?(?:temporarily.?)?unavailable","provider.?(?:is.?)?temporarily.?unavailable","server.?error","internal.?error","provider.?returned.?(?:an.?)?error",'"type"\\s*:\\s*"api_error"',"exceeded request buffer limit while retrying upstream","unable to forward upstream","upstream.?request.?failed","upstream_stream_read_error","stream was interrupted","http/?2 stream failed","upstream.?sse.?stream.?failed","network.?error","connection.?error","connection.?refused","connection.?lost","connection.?closed","other side closed","fetch failed","request to \\S+ failed, reason:","getaddrinfo","(?<![a-z0-9_])(?:ECONNRESET|ECONNABORTED|ECONNREFUSED|ETIMEDOUT|EPIPE)(?![a-z0-9_])","connection reset by peer","ENOTFOUND","EAI_AGAIN","upstream.?connect","reset before headers","socket hang up","socket connection was closed","timed? out","timeout","terminated","websocket.?closed","websocket.?error","websocket.?connection.?limit.?reached","ended without","stream ended before message_stop","stream ended before a terminal response event","http2 request did not get a response","provider finish_reason: error","provider stopped with: error","provider stopped with: malformed_response","returned an empty response","stopped before completing the response","stream disconnected before completion","cut short after the reply had begun","ended the response before it was complete","connection to the provider was reset","reported a failure while generating the response","pending stream has been canceled","retry delay","you can retry your request","try your request again","please retry your request","repeat the request later","ResourceExhausted","subscription_sharing_usage_unavailable","subscription_sharing_user_unavailable"]),DEFAULT_MAX_AGENT_RETRY_DELAY_MS=6e4;function retryDelayMs(policy,attempt){let delay=policy.baseDelayMs*2**Math.max(0,attempt-1),safeDelay=Number.isSafeInteger(delay)?delay:Number.MAX_SAFE_INTEGER;return Math.min(safeDelay,policy.maxAgentDelayMs??DEFAULT_MAX_AGENT_RETRY_DELAY_MS)}var RetrySleepAbortError=class extends Error{constructor(){super("Aborted")}};function sleep(ms,signal){return new Promise((resolve,reject)=>{if(signal?.aborted){reject(new RetrySleepAbortError);return}let onAbort=()=>{clearTimeout(timeout),reject(new RetrySleepAbortError)},timeout=setTimeout(()=>{signal?.removeEventListener("abort",onAbort),resolve()},ms);signal?.addEventListener("abort",onAbort,{once:!0})})}async function retryAssistantCall(produce,policy,signal,callbacks){let maxAttempts=policy?.enabled?policy.maxRetries:0,attempt=0,lastRetry;for(;;){let response=await produce();if(response.stopReason==="aborted")return lastRetry&&await callbacks?.onRetryFinished?.(!1,lastRetry.attempt),response;if(response.stopReason!=="error")return lastRetry&&await callbacks?.onRetryFinished?.(!0,lastRetry.attempt),response;if(attempt>=maxAttempts||!isRetryableAssistantError(response))return lastRetry&&await callbacks?.onRetryFinished?.(!1,lastRetry.attempt,response.errorMessage),response;attempt++,lastRetry={attempt,errorMessage:response.errorMessage||"Unknown error"};let delayMs=retryDelayMs(policy,attempt);await callbacks?.onRetryScheduled?.(attempt,maxAttempts,delayMs,lastRetry.errorMessage);try{await sleep(delayMs,signal)}catch(error){if(await callbacks?.onRetryFinished?.(!1,attempt,lastRetry.errorMessage),error instanceof RetrySleepAbortError){let{errorMessage:_errorMessage,...rest}=response;return{...rest,stopReason:"aborted"}}throw error}await callbacks?.onRetryAttemptStart?.()}}function isRetryableAssistantError(message){if(message.stopReason!=="error"||!message.errorMessage)return!1;let errorMessage=message.errorMessage;return NON_RETRYABLE_PROVIDER_LIMIT_ERROR_PATTERN.test(errorMessage)?!1:RETRYABLE_PROVIDER_ERROR_PATTERN.test(errorMessage)}export{DEFAULT_MAX_AGENT_RETRY_DELAY_MS,retryDelayMs,retryAssistantCall,isRetryableAssistantError};
|