@draht/coding-agent 2026.11.19-1 → 2026.11.21-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 +38 -0
- package/dist/bundle/chunks/{anthropic-messages-7PTOA4ZA.js → anthropic-messages-JAAJVU3F.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-CDW6FCMN.js → azure-openai-responses-N4SHTXJ6.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +5 -5
- package/dist/bundle/chunks/{chunk-MXA4WY3C.js → chunk-2DUHHN23.js} +1 -1
- package/dist/bundle/chunks/{chunk-7HQNDYWE.js → chunk-4MO4FSW4.js} +2 -2
- package/dist/bundle/chunks/{chunk-MHNW355A.js → chunk-7VQD47PF.js} +1 -1
- package/dist/bundle/chunks/chunk-A6BJNLBN.js +16 -0
- package/dist/bundle/chunks/{chunk-WOIC265R.js → chunk-BHLOLWW6.js} +38 -35
- package/dist/bundle/chunks/{chunk-HKQ3PU5T.js → chunk-BSVP25DF.js} +1 -1
- package/dist/bundle/chunks/{chunk-RI7HJ6AF.js → chunk-EGJQSI6O.js} +1 -1
- package/dist/bundle/chunks/{chunk-4FPBO5KP.js → chunk-EHGC5YA6.js} +2 -2
- package/dist/bundle/chunks/{chunk-YOPX5URH.js → chunk-EJUBHUKG.js} +1 -1
- package/dist/bundle/chunks/{chunk-JI5YDTBB.js → chunk-FHUNJPUZ.js} +1 -1
- package/dist/bundle/chunks/{chunk-BQMYLQSG.js → chunk-ICD4T57T.js} +3 -3
- package/dist/bundle/chunks/{chunk-BIXKXDGW.js → chunk-IUK7PQZQ.js} +1 -1
- package/dist/bundle/chunks/chunk-J6WPFP55.js +30 -0
- package/dist/bundle/chunks/chunk-LHWSZITO.js +2 -0
- package/dist/bundle/chunks/{chunk-CAOOVEOM.js → chunk-TQH3TSOY.js} +1 -1
- package/dist/bundle/chunks/{chunk-GAABJAG4.js → chunk-U7QL6N7M.js} +11 -11
- package/dist/bundle/chunks/chunk-X7F5FNNE.js +31 -0
- package/dist/bundle/chunks/{chunk-O2P5SYXT.js → chunk-XP47TR6S.js} +1 -1
- package/dist/bundle/chunks/{chunk-B6OJ7QX4.js → chunk-ZWE4WYUP.js} +1 -1
- package/dist/bundle/chunks/{cli-QUYXUKRF.js → cli-FQY4GIEZ.js} +1 -1
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-W63EWPDW.js → cloudflare-workers-ai-system-one-UZT2D6OE.js} +1 -1
- package/dist/bundle/chunks/{execute-KGJOWTPG.js → execute-7ZBBCFJX.js} +1 -1
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/{google-generative-ai-M5WKK5CW.js → google-generative-ai-V4OXSUYB.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-UYNOGPMI.js → google-vertex-FHE7WELO.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-SAUGLDPT.js → llama-cpp-classify-OOBHWVRW.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-VQ3J6W5K.js → mistral-conversations-P2UXS4YP.js} +2 -2
- package/dist/bundle/chunks/openai-codex-responses-6EVE5GBS.js +10 -0
- package/dist/bundle/chunks/{openai-completions-WAW7BG4E.js → openai-completions-J455OHQY.js} +2 -2
- package/dist/bundle/chunks/{openai-decisions-KHHHHMGW.js → openai-decisions-3YUUL56O.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-GWADST54.js → openai-responses-T6LS2BDK.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-AP626CWG.js → openrouter-images-3QKLSH5X.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-H5TYIEJT.js → pi-messages-SMJVFBS5.js} +1 -1
- package/dist/bundle/chunks/{runtime-73OLLYOI.js → runtime-ZTL2QJTC.js} +1 -1
- package/dist/bundle/chunks/{settings-manager-CWRQW6PZ.js → settings-manager-DB22TF7G.js} +1 -1
- package/dist/bundle/chunks/{typesafe-system-one-RLPGOT75.js → typesafe-system-one-OLZERWYH.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-5V4G5GQH.js → virtual-modules-GB7JDLCJ.js} +1 -1
- 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/config-selector.d.ts.map +1 -1
- package/dist/cli/config-selector.js +9 -6
- package/dist/cli/config-selector.js.map +1 -1
- package/dist/cli/session-picker.d.ts.map +1 -1
- package/dist/cli/session-picker.js +9 -6
- package/dist/cli/session-picker.js.map +1 -1
- package/dist/cli/startup-ui.d.ts.map +1 -1
- package/dist/cli/startup-ui.js +4 -0
- package/dist/cli/startup-ui.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +11 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +19 -0
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +4 -5
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/export-html/ansi-to-html.d.ts +1 -1
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -1
- package/dist/core/export-html/ansi-to-html.js.map +1 -1
- package/dist/core/export-html/tool-renderer.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +18 -1
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +5 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +5 -0
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/model-resolver.d.ts +0 -7
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +3 -60
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/package-manager.d.ts +16 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +46 -3
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/resource-loader.d.ts +5 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +2 -0
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +3 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/tools/bash.js +1 -1
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/output-accumulator.d.ts.map +1 -1
- package/dist/core/tools/output-accumulator.js +3 -2
- package/dist/core/tools/output-accumulator.js.map +1 -1
- package/dist/core/tools/truncate.d.ts +1 -1
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +11 -5
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +5 -3
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +30 -12
- package/dist/main.js.map +1 -1
- package/dist/modes/diagnostics-stderr.d.ts +4 -0
- package/dist/modes/diagnostics-stderr.d.ts.map +1 -0
- package/dist/modes/diagnostics-stderr.js +11 -0
- package/dist/modes/diagnostics-stderr.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +2 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +9 -3
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/bash-execution.js.map +1 -1
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/config-selector.js +5 -2
- package/dist/modes/interactive/components/config-selector.js.map +1 -1
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/model-selector.js +5 -2
- package/dist/modes/interactive/components/model-selector.js.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts +1 -1
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/oauth-selector.js +7 -3
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
- package/dist/modes/interactive/components/radius-login-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/radius-login-selector.js +2 -1
- package/dist/modes/interactive/components/radius-login-selector.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +9 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +2 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +18 -4
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts +1 -1
- package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-submenu.js +5 -1
- package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
- package/dist/modes/interactive/components/themed-text.d.ts +1 -1
- package/dist/modes/interactive/components/themed-text.d.ts.map +1 -1
- package/dist/modes/interactive/components/themed-text.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +5 -1
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/user-message.d.ts +2 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +9 -3
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts +2 -2
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +79 -38
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +1 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +16 -13
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +15 -23
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/utils/changelog.d.ts.map +1 -1
- package/dist/utils/changelog.js +3 -2
- package/dist/utils/changelog.js.map +1 -1
- package/dist/utils/flush-stdout.d.ts +8 -0
- package/dist/utils/flush-stdout.d.ts.map +1 -0
- package/dist/utils/flush-stdout.js +23 -0
- package/dist/utils/flush-stdout.js.map +1 -0
- package/docs/models-configuration.md +11 -2
- package/docs/tui.md +2 -0
- package/package.json +9 -9
- package/schemas/models.schema.json +1 -1
- package/dist/bundle/chunks/chunk-2CHTECAU.js +0 -2
- package/dist/bundle/chunks/chunk-3F4OOENR.js +0 -16
- package/dist/bundle/chunks/chunk-6WESOD4H.js +0 -31
- package/dist/bundle/chunks/chunk-INKDO5TZ.js +0 -30
- package/dist/bundle/chunks/openai-codex-responses-JTGQLYC7.js +0 -10
- package/dist/utils/deprecation.d.ts +0 -4
- package/dist/utils/deprecation.d.ts.map +0 -1
- package/dist/utils/deprecation.js +0 -13
- package/dist/utils/deprecation.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __drahtCreateRequire } from "node:module"; const require = __drahtCreateRequire(import.meta.url);
|
|
2
|
-
import{ownedSlice}from"./chunk-
|
|
2
|
+
import{ownedSlice}from"./chunk-IUK7PQZQ.js";var MAX_PROVIDER_ERROR_BODY_CHARS=4e3;function normalizeProviderError(error){if(!(error instanceof Error))return{message:safeJsonStringify(error),messageCarriesBody:!1};let sdkError=error,status=extractStatus(sdkError),body=extractBody(sdkError),messageCarriesBody=body===void 0||error.message.includes(body),message=status===void 0&&body===void 0?withCauseDetail(error):error.message;return{status,body,message,messageCarriesBody}}var MAX_CAUSE_DEPTH=5;function withCauseDetail(error){let deepest,current=error.cause;for(let depth=0;depth<MAX_CAUSE_DEPTH&¤t instanceof Error;depth++)deepest=current,current=current.cause;if(!deepest)return error.message;let detail=(deepest.message||deepest.name).trim(),code=deepest.code;return(typeof code=="string"||typeof code=="number")&&!detail.includes(String(code))&&(detail=detail?`${detail} (${code})`:String(code)),!detail||error.message.includes(detail)?error.message:error.message?`${error.message}: ${detail}`:detail}function extractStatus(error){if(typeof error.statusCode=="number")return error.statusCode;if(typeof error.status=="number")return error.status;if(typeof error.$metadata?.httpStatusCode=="number")return error.$metadata.httpStatusCode;if(typeof error.$response?.statusCode=="number")return error.$response.statusCode}function extractBody(error){let bodyText=pickBodyText(error);if(bodyText===void 0)return;let trimmed=bodyText.trim();if(trimmed.length!==0)return truncateErrorText(trimmed,MAX_PROVIDER_ERROR_BODY_CHARS)}function pickBodyText(error){if(typeof error.body=="string")return error.body;if(isPlainNonEmptyObject(error.error))return safeJsonStringify(error.error);let responseBody=error.$response?.body;if(typeof responseBody=="string")return responseBody;if(!isReadableStreamLike(responseBody)&&isPlainNonEmptyObject(responseBody))return safeJsonStringify(responseBody)}function isReadableStreamLike(value){return typeof value=="object"&&value!==null&&"pipe"in value&&typeof value.pipe=="function"}function isPlainNonEmptyObject(value){if(typeof value!="object"||value===null)return!1;let proto=Object.getPrototypeOf(value);return proto!==Object.prototype&&proto!==null?!1:Object.keys(value).length>0}function formatProviderError(norm,prefix){return norm.messageCarriesBody||norm.status===void 0||norm.body===void 0?prefix!==void 0&&norm.status!==void 0?`${prefix} (${norm.status}): ${norm.message}`:norm.message:prefix!==void 0?`${prefix} (${norm.status}): ${norm.body}`:`${norm.status}: ${norm.body}`}function truncateErrorText(text,maxChars){return text.length<=maxChars?text:`${ownedSlice(text,0,maxChars)}... [truncated ${text.length-maxChars} chars]`}function safeJsonStringify(value){try{let serialized=JSON.stringify(value);return serialized===void 0?String(value):serialized}catch{return String(value)}}export{normalizeProviderError,withCauseDetail,formatProviderError,truncateErrorText};
|