pi2dsh 0.3.1 → 0.3.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.
- package/README.md +15 -10
- package/README.zh.md +15 -10
- package/dist/all-Rt4K68QA.mjs +28512 -0
- package/dist/all-Rt4K68QA.mjs.map +1 -0
- package/dist/anthropic-messages-Beym0_aC.mjs +6438 -0
- package/dist/anthropic-messages-Beym0_aC.mjs.map +1 -0
- package/dist/azure-openai-responses-cHqZTgLD.mjs +209 -0
- package/dist/azure-openai-responses-cHqZTgLD.mjs.map +1 -0
- package/dist/{build-DsGYAgiT.mjs → build-BG7p2Lbr.mjs} +2 -2
- package/dist/{build-DsGYAgiT.mjs.map → build-BG7p2Lbr.mjs.map} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/compat/pi-ai.d.mts +16 -3
- package/dist/compat/pi-ai.d.mts.map +1 -1
- package/dist/compat/pi-ai.mjs +3 -3
- package/dist/compat/pi-coding-agent.d.mts +12 -1
- package/dist/compat/pi-coding-agent.d.mts.map +1 -1
- package/dist/compat/pi-coding-agent.mjs +2 -2
- package/dist/credentials-oauth.mjs +3 -3
- package/dist/deferred-tools-BD4g5QUx.mjs +32 -0
- package/dist/deferred-tools-BD4g5QUx.mjs.map +1 -0
- package/dist/diagnostics-CJye1UFh.mjs +99 -0
- package/dist/diagnostics-CJye1UFh.mjs.map +1 -0
- package/dist/dist-IQKOgQyt.mjs +10035 -0
- package/dist/dist-IQKOgQyt.mjs.map +1 -0
- package/dist/dist-QBBA-dL_.mjs +1246 -0
- package/dist/dist-QBBA-dL_.mjs.map +1 -0
- package/dist/error-body-DKA3lknR.mjs +104 -0
- package/dist/error-body-DKA3lknR.mjs.map +1 -0
- package/dist/github-copilot-headers-CZo2QHrt.mjs +25 -0
- package/dist/github-copilot-headers-CZo2QHrt.mjs.map +1 -0
- package/dist/google-generative-ai-B7OZs5lu.mjs +358 -0
- package/dist/google-generative-ai-B7OZs5lu.mjs.map +1 -0
- package/dist/google-shared-CRsAUItF.mjs +29042 -0
- package/dist/google-shared-CRsAUItF.mjs.map +1 -0
- package/dist/google-vertex-DmdaHQtB.mjs +402 -0
- package/dist/google-vertex-DmdaHQtB.mjs.map +1 -0
- package/dist/hash-Dbggamac.mjs +19 -0
- package/dist/hash-Dbggamac.mjs.map +1 -0
- package/dist/headers-CPzZhJQn.mjs +17 -0
- package/dist/headers-CPzZhJQn.mjs.map +1 -0
- package/dist/host.d.mts.map +1 -1
- package/dist/host.mjs +13 -3
- package/dist/host.mjs.map +1 -1
- package/dist/images-models-DJtHo9Rp.mjs +1068 -0
- package/dist/images-models-DJtHo9Rp.mjs.map +1 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/json-parse-CFyFZSLJ.mjs +384 -0
- package/dist/json-parse-CFyFZSLJ.mjs.map +1 -0
- package/dist/{mcp-config-gqg7GJEE.mjs → mcp-config-D2B3kv-Z.mjs} +34 -16
- package/dist/mcp-config-D2B3kv-Z.mjs.map +1 -0
- package/dist/mistral-conversations-HHZCcFv_.mjs +42007 -0
- package/dist/mistral-conversations-HHZCcFv_.mjs.map +1 -0
- package/dist/multipart-parser-CIa5BbwO.mjs +301 -0
- package/dist/multipart-parser-CIa5BbwO.mjs.map +1 -0
- package/dist/{oauth-bridge-BpPrppjR.mjs → oauth-bridge-C6fL1qSv.mjs} +20 -4
- package/dist/oauth-bridge-C6fL1qSv.mjs.map +1 -0
- package/dist/openai-DkzRh5_G.mjs +6732 -0
- package/dist/openai-DkzRh5_G.mjs.map +1 -0
- package/dist/openai-codex-responses-vmovNu-q.mjs +1169 -0
- package/dist/openai-codex-responses-vmovNu-q.mjs.map +1 -0
- package/dist/openai-completions-fXHhRolF.mjs +947 -0
- package/dist/openai-completions-fXHhRolF.mjs.map +1 -0
- package/dist/openai-prompt-cache-BDWtZRKh.mjs +11 -0
- package/dist/openai-prompt-cache-BDWtZRKh.mjs.map +1 -0
- package/dist/openai-responses-DKdCYf3h.mjs +247 -0
- package/dist/openai-responses-DKdCYf3h.mjs.map +1 -0
- package/dist/openai-responses-shared-D0Jq7yVP.mjs +572 -0
- package/dist/openai-responses-shared-D0Jq7yVP.mjs.map +1 -0
- package/dist/openrouter-images-fG3Aj6M4.mjs +127 -0
- package/dist/openrouter-images-fG3Aj6M4.mjs.map +1 -0
- package/dist/otel-BQSQRBLF.mjs +24935 -0
- package/dist/otel-BQSQRBLF.mjs.map +1 -0
- package/dist/{pi-ai-CWFlgigJ.mjs → pi-ai-DhYGgq4Y.mjs} +49 -12
- package/dist/{pi-ai-CWFlgigJ.mjs.map → pi-ai-DhYGgq4Y.mjs.map} +1 -1
- package/dist/{pi-coding-agent-Z1hTs61i.mjs → pi-coding-agent-fPHwKP4d.mjs} +27 -3
- package/dist/{pi-coding-agent-Z1hTs61i.mjs.map → pi-coding-agent-fPHwKP4d.mjs.map} +1 -1
- package/dist/pi-messages-CV-Ts8An.mjs +306 -0
- package/dist/pi-messages-CV-Ts8An.mjs.map +1 -0
- package/dist/provider-env-C72pF4vP.mjs +40 -0
- package/dist/provider-env-C72pF4vP.mjs.map +1 -0
- package/dist/provider-retry-Cw6YJ4cr.mjs +80 -0
- package/dist/provider-retry-Cw6YJ4cr.mjs.map +1 -0
- package/dist/rolldown-runtime-CTfmNlz1.mjs +44 -0
- package/dist/{runtime-6DefpI6h.mjs → runtime-B9R7bDWT.mjs} +874 -37
- package/dist/runtime-B9R7bDWT.mjs.map +1 -0
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/sanitize-unicode-wLA11KvZ.mjs +29 -0
- package/dist/sanitize-unicode-wLA11KvZ.mjs.map +1 -0
- package/dist/src-C3WBfOks.mjs +5031 -0
- package/dist/src-C3WBfOks.mjs.map +1 -0
- package/dist/transform-messages-DGq9mvhA.mjs +379 -0
- package/dist/transform-messages-DGq9mvhA.mjs.map +1 -0
- package/dist/uuid-DtFT7tOE.mjs +65 -0
- package/dist/uuid-DtFT7tOE.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/mcp-config-gqg7GJEE.mjs.map +0 -1
- package/dist/oauth-bridge-BpPrppjR.mjs.map +0 -1
- package/dist/rolldown-runtime-D-uZhY3_.mjs +0 -16
- package/dist/runtime-6DefpI6h.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { i as resolvePath$1, n as getSessionsDir, r as normalizePath$1, t as getAgentDir } from "./pi-config-shim-CZ1wFzqM.mjs";
|
|
3
|
-
import { a as _Object_, c as uuidv7, i as Boolean$1, n as String$1, o as Optional, r as Number$1, s as _Array_ } from "./build-
|
|
3
|
+
import { a as _Object_, c as uuidv7, i as Boolean$1, n as String$1, o as Optional, r as Number$1, s as _Array_ } from "./build-BG7p2Lbr.mjs";
|
|
4
4
|
import { I as hyperlink, L as imageFallback, M as getImageDimensions, g as Text, h as Spacer, i as Container, k as getCapabilities, t as Box, vt as truncateToWidth, yt as visibleWidth } from "./pi-tui-5CYLcj-_.mjs";
|
|
5
5
|
import { access, open, readFile, readdir, realpath, stat } from "node:fs/promises";
|
|
6
6
|
import { basename, delimiter, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
@@ -4495,6 +4495,30 @@ function escapeXml(str) {
|
|
|
4495
4495
|
}
|
|
4496
4496
|
//#endregion
|
|
4497
4497
|
//#region src/compat/pi-coding-agent.ts
|
|
4498
|
+
function isToolCallEventType(toolName, event) {
|
|
4499
|
+
return event.toolName === toolName;
|
|
4500
|
+
}
|
|
4501
|
+
function isBashToolResult(event) {
|
|
4502
|
+
return event.toolName === "bash";
|
|
4503
|
+
}
|
|
4504
|
+
function isReadToolResult(event) {
|
|
4505
|
+
return event.toolName === "read";
|
|
4506
|
+
}
|
|
4507
|
+
function isEditToolResult(event) {
|
|
4508
|
+
return event.toolName === "edit";
|
|
4509
|
+
}
|
|
4510
|
+
function isWriteToolResult(event) {
|
|
4511
|
+
return event.toolName === "write";
|
|
4512
|
+
}
|
|
4513
|
+
function isGrepToolResult(event) {
|
|
4514
|
+
return event.toolName === "grep";
|
|
4515
|
+
}
|
|
4516
|
+
function isFindToolResult(event) {
|
|
4517
|
+
return event.toolName === "find";
|
|
4518
|
+
}
|
|
4519
|
+
function isLsToolResult(event) {
|
|
4520
|
+
return event.toolName === "ls";
|
|
4521
|
+
}
|
|
4498
4522
|
const CONFIG_DIR_NAME = ".pi";
|
|
4499
4523
|
const VERSION = "pi2dsh-compat";
|
|
4500
4524
|
function defineTool(tool) {
|
|
@@ -5198,6 +5222,6 @@ function rawKeyHint(key, description) {
|
|
|
5198
5222
|
return `${key} ${description}`;
|
|
5199
5223
|
}
|
|
5200
5224
|
//#endregion
|
|
5201
|
-
export {
|
|
5225
|
+
export { isBashToolResult as $, findMostRecentSession as $t, copyToClipboard as A, createGrepToolDefinition as At, generateSummary as B, createLocalBashOperations as Bt, ToolExecutionComponent as C, wrapRegisteredTool as Ct, calculateContextTokens as D, createFindTool as Dt, __setSubagentSessionFactory as E, createLsToolDefinition as Et, defineTool as F, createReadTool as Ft, getPackageDir as G, truncateHead$1 as Gt, getBinDir as H, DEFAULT_MAX_BYTES$1 as Ht, ensureTool as I, createReadToolDefinition as It, getSettingsListTheme as J, CURRENT_SESSION_VERSION as Jt, getReadmePath as K, truncateLine$1 as Kt, estimateTokens as L, bashToolSystemPromptContribution as Lt, createCodingTools as M, createWriteToolDefinition as Mt, createEventBus as N, createEditTool as Nt, compact as O, createFindToolDefinition as Ot, createReadOnlyTools as P, createEditToolDefinition as Pt, initTheme as Q, buildSessionContext as Qt, findCutPoint as R, createBashTool as Rt, Theme as S, truncateToVisualLines as St, VERSION as T, createLsTool as Tt, getLanguageFromPath as U, DEFAULT_MAX_LINES$1 as Ut, generateSummaryWithUsage as V, withFileMutationQueue$1 as Vt, getMarkdownTheme as W, formatSize$1 as Wt, getToolPath as X, assertValidSessionId as Xt, getShellConfig as Y, SessionManager as Yt, highlightCode as Z, buildContextEntries as Zt, ModelRegistry as _, resizeImage as _t, CustomMessageComponent as a, sessionEntryToContextMessages as an, isToolCallEventType as at, SettingsManager as b, stripFrontmatter as bt, DefaultResourceLoader as c, COMPACTION_SUMMARY_PREFIX as cn, keyText as ct, ExtensionInputComponent as d, convertToLlm as dn, parseFrontmatter as dt, getDefaultSessionDir as en, isEditToolResult as et, ExtensionRunner as f, createBranchSummaryMessage as fn, parseSkillBlock as ft, InMemorySettingsStorage as g, renderDiff as gt, FooterComponent as h, readStoredCredential as ht, CustomEditor as i, parseSessionEntries as in, isReadToolResult as it, createAgentSession as j, createWriteTool as jt, convertToPng as k, createGrepTool as kt, DynamicBorder as l, COMPACTION_SUMMARY_SUFFIX as ln, loadSkills as lt, FileSettingsStorage as m, createCustomMessage as mn, rawKeyHint as mt, BorderedLoader as n, loadEntriesFromFile as nn, isGrepToolResult as nt, DEFAULT_COMPACTION_SETTINGS as o, BRANCH_SUMMARY_PREFIX as on, isWriteToolResult as ot, ExtensionSelectorComponent as p, createCompactionSummaryMessage as pn, processImage as pt, getSelectListTheme as q, truncateTail$1 as qt, CONFIG_DIR_NAME as r, migrateSessionEntries as rn, isLsToolResult as rt, DefaultPackageManager as s, BRANCH_SUMMARY_SUFFIX as sn, keyHint as st, AssistantMessageComponent as t, getLatestCompactionEntry as tn, isFindToolResult as tt, ExtensionEditorComponent as u, bashExecutionToText as un, loadSkillsFromDir as ut, ModelRuntime as v, serializeConversation as vt, UserMessageComponent as w, formatSkillsForPrompt as wt, SettingsSelectorComponent as x, theme as xt, ProjectTrustStore as y, shouldCompact as yt, generateBranchSummary as z, createBashToolDefinition as zt };
|
|
5202
5226
|
|
|
5203
|
-
//# sourceMappingURL=pi-coding-agent-
|
|
5227
|
+
//# sourceMappingURL=pi-coding-agent-fPHwKP4d.mjs.map
|