pi2dsh 0.4.0 → 0.6.0
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 +54 -14
- package/README.zh.md +43 -14
- package/cordis.patch.yml +3 -0
- package/dist/cli.mjs +1 -1
- package/dist/compat/pi-ai.mjs +1 -1
- package/dist/compat/pi-coding-agent.mjs +1 -1
- package/dist/credentials-oauth.mjs +3 -3
- package/dist/host.mjs +2 -2
- package/dist/index.d.mts +30 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +98 -2
- package/dist/index.mjs.map +1 -0
- package/dist/{mcp-config-B3h5jTBb.mjs → mcp-config-vU1LZ7fC.mjs} +6 -6
- package/dist/mcp-config-vU1LZ7fC.mjs.map +1 -0
- package/dist/{oauth-bridge-C6fL1qSv.mjs → oauth-bridge-CfyImWx4.mjs} +2 -2
- package/dist/{oauth-bridge-C6fL1qSv.mjs.map → oauth-bridge-CfyImWx4.mjs.map} +1 -1
- package/dist/{pi-ai-B_88Wb0r.mjs → pi-ai-7HR3ciAs.mjs} +4 -42
- package/dist/{pi-ai-B_88Wb0r.mjs.map → pi-ai-7HR3ciAs.mjs.map} +1 -1
- package/dist/{pi-coding-agent-COMX0KHL.mjs → pi-coding-agent-CznNsOnV.mjs} +3 -3
- package/dist/{pi-coding-agent-COMX0KHL.mjs.map → pi-coding-agent-CznNsOnV.mjs.map} +1 -1
- package/dist/{runtime-B7mEIRf-.mjs → runtime-xNd10ACP.mjs} +194 -21
- package/dist/runtime-xNd10ACP.mjs.map +1 -0
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +1 -1
- package/package.json +9 -2
- package/dist/all-DSpxKvHa.mjs +0 -28512
- package/dist/all-DSpxKvHa.mjs.map +0 -1
- package/dist/anthropic-messages-BL9N1Idv.mjs +0 -6438
- package/dist/anthropic-messages-BL9N1Idv.mjs.map +0 -1
- package/dist/azure-openai-responses-A67VbaZ1.mjs +0 -209
- package/dist/azure-openai-responses-A67VbaZ1.mjs.map +0 -1
- package/dist/deferred-tools-BD4g5QUx.mjs +0 -32
- package/dist/deferred-tools-BD4g5QUx.mjs.map +0 -1
- package/dist/diagnostics-CJye1UFh.mjs +0 -99
- package/dist/diagnostics-CJye1UFh.mjs.map +0 -1
- package/dist/dist-BYA74yh_.mjs +0 -1246
- package/dist/dist-BYA74yh_.mjs.map +0 -1
- package/dist/dist-DeonWo7m.mjs +0 -1089
- package/dist/dist-DeonWo7m.mjs.map +0 -1
- package/dist/error-body-DKA3lknR.mjs +0 -104
- package/dist/error-body-DKA3lknR.mjs.map +0 -1
- package/dist/github-copilot-headers-CZo2QHrt.mjs +0 -25
- package/dist/github-copilot-headers-CZo2QHrt.mjs.map +0 -1
- package/dist/google-generative-ai-DT5S8D8y.mjs +0 -358
- package/dist/google-generative-ai-DT5S8D8y.mjs.map +0 -1
- package/dist/google-shared-DYP_9cnK.mjs +0 -29042
- package/dist/google-shared-DYP_9cnK.mjs.map +0 -1
- package/dist/google-vertex-Dpq7O7Be.mjs +0 -402
- package/dist/google-vertex-Dpq7O7Be.mjs.map +0 -1
- package/dist/hash-Dbggamac.mjs +0 -19
- package/dist/hash-Dbggamac.mjs.map +0 -1
- package/dist/headers-CPzZhJQn.mjs +0 -17
- package/dist/headers-CPzZhJQn.mjs.map +0 -1
- package/dist/images-models-DJtHo9Rp.mjs +0 -1068
- package/dist/images-models-DJtHo9Rp.mjs.map +0 -1
- package/dist/json-parse-Dz5sKMTv.mjs +0 -384
- package/dist/json-parse-Dz5sKMTv.mjs.map +0 -1
- package/dist/mcp-config-B3h5jTBb.mjs.map +0 -1
- package/dist/mistral-conversations-BsxbCCWx.mjs +0 -42007
- package/dist/mistral-conversations-BsxbCCWx.mjs.map +0 -1
- package/dist/multipart-parser-woKCuALW.mjs +0 -301
- package/dist/multipart-parser-woKCuALW.mjs.map +0 -1
- package/dist/openai-DkzRh5_G.mjs +0 -6732
- package/dist/openai-DkzRh5_G.mjs.map +0 -1
- package/dist/openai-codex-responses-C7vviVT2.mjs +0 -1169
- package/dist/openai-codex-responses-C7vviVT2.mjs.map +0 -1
- package/dist/openai-completions-By8QNX1P.mjs +0 -947
- package/dist/openai-completions-By8QNX1P.mjs.map +0 -1
- package/dist/openai-prompt-cache-BDWtZRKh.mjs +0 -11
- package/dist/openai-prompt-cache-BDWtZRKh.mjs.map +0 -1
- package/dist/openai-responses-DboJUcFN.mjs +0 -247
- package/dist/openai-responses-DboJUcFN.mjs.map +0 -1
- package/dist/openai-responses-shared-BDzn7nJY.mjs +0 -572
- package/dist/openai-responses-shared-BDzn7nJY.mjs.map +0 -1
- package/dist/openrouter-images-fG3Aj6M4.mjs +0 -127
- package/dist/openrouter-images-fG3Aj6M4.mjs.map +0 -1
- package/dist/otel-PimLMoiV.mjs +0 -24935
- package/dist/otel-PimLMoiV.mjs.map +0 -1
- package/dist/pi-messages-B-7Xo_I0.mjs +0 -306
- package/dist/pi-messages-B-7Xo_I0.mjs.map +0 -1
- package/dist/provider-env-D-cCRWzv.mjs +0 -40
- package/dist/provider-env-D-cCRWzv.mjs.map +0 -1
- package/dist/provider-retry-Cw6YJ4cr.mjs +0 -80
- package/dist/provider-retry-Cw6YJ4cr.mjs.map +0 -1
- package/dist/runtime-B7mEIRf-.mjs.map +0 -1
- package/dist/sanitize-unicode-wLA11KvZ.mjs +0 -29
- package/dist/sanitize-unicode-wLA11KvZ.mjs.map +0 -1
- package/dist/src-BEl3QrGL.mjs +0 -5031
- package/dist/src-BEl3QrGL.mjs.map +0 -1
- package/dist/transform-messages-DGq9mvhA.mjs +0 -379
- package/dist/transform-messages-DGq9mvhA.mjs.map +0 -1
- package/dist/uuid-DtFT7tOE.mjs +0 -65
- package/dist/uuid-DtFT7tOE.mjs.map +0 -1
|
@@ -3,12 +3,12 @@ import { i as resolvePath$1, n as getSessionsDir, r as normalizePath$1, t as get
|
|
|
3
3
|
import { t as uuidv7 } from "./pi-uuid-Db8ShZsK.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
|
+
import { constants, createWriteStream, existsSync, readFileSync } from "node:fs";
|
|
6
7
|
import { basename, delimiter, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
7
8
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
|
-
import { constants, createWriteStream, existsSync, readFileSync } from "node:fs";
|
|
9
|
-
import { randomBytes } from "node:crypto";
|
|
10
9
|
import * as os from "node:os";
|
|
11
10
|
import { homedir, tmpdir } from "node:os";
|
|
11
|
+
import { randomBytes } from "node:crypto";
|
|
12
12
|
import { randomUUID as randomUUID$1 } from "crypto";
|
|
13
13
|
import { appendFileSync as appendFileSync$1, closeSync, constants as constants$1, createReadStream, existsSync as existsSync$1, mkdirSync as mkdirSync$1, openSync, readSync, readdirSync, statSync, writeFileSync as writeFileSync$1 } from "fs";
|
|
14
14
|
import { access as access$1, mkdir as mkdir$1, readFile as readFile$1, readdir as readdir$1, stat as stat$1, writeFile as writeFile$1 } from "fs/promises";
|
|
@@ -5299,4 +5299,4 @@ function rawKeyHint(key, description) {
|
|
|
5299
5299
|
//#endregion
|
|
5300
5300
|
export { isBashToolResult as $, buildSessionContext 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, formatSize$1 as Gt, getBinDir as H, withFileMutationQueue$1 as Ht, ensureTool as I, createReadToolDefinition as It, getSettingsListTheme as J, truncateTail$1 as Jt, getReadmePath as K, truncateHead$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, buildContextEntries 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_BYTES$1 as Ut, generateSummaryWithUsage as V, createExtensionRuntime as Vt, getMarkdownTheme as W, DEFAULT_MAX_LINES$1 as Wt, getToolPath as X, SessionManager as Xt, getShellConfig as Y, CURRENT_SESSION_VERSION as Yt, highlightCode as Z, assertValidSessionId as Zt, ModelRegistry as _, resizeImage as _t, CustomMessageComponent as a, parseSessionEntries as an, isToolCallEventType as at, SettingsManager as b, stripFrontmatter as bt, DefaultResourceLoader as c, BRANCH_SUMMARY_SUFFIX as cn, keyText as ct, ExtensionInputComponent as d, bashExecutionToText as dn, parseFrontmatter as dt, findMostRecentSession as en, isEditToolResult as et, ExtensionRunner as f, convertToLlm as fn, parseSkillBlock as ft, InMemorySettingsStorage as g, renderDiff as gt, FooterComponent as h, createCustomMessage as hn, readStoredCredential as ht, CustomEditor as i, migrateSessionEntries as in, isReadToolResult as it, createAgentSession as j, createWriteTool as jt, convertToPng as k, createGrepTool as kt, DynamicBorder as l, COMPACTION_SUMMARY_PREFIX as ln, loadSkills as lt, FileSettingsStorage as m, createCompactionSummaryMessage as mn, rawKeyHint as mt, BorderedLoader as n, getLatestCompactionEntry as nn, isGrepToolResult as nt, DEFAULT_COMPACTION_SETTINGS as o, sessionEntryToContextMessages as on, isWriteToolResult as ot, ExtensionSelectorComponent as p, createBranchSummaryMessage as pn, processImage as pt, getSelectListTheme as q, truncateLine$1 as qt, CONFIG_DIR_NAME as r, loadEntriesFromFile as rn, isLsToolResult as rt, DefaultPackageManager as s, BRANCH_SUMMARY_PREFIX as sn, keyHint as st, AssistantMessageComponent as t, getDefaultSessionDir as tn, isFindToolResult as tt, ExtensionEditorComponent as u, COMPACTION_SUMMARY_SUFFIX 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 };
|
|
5301
5301
|
|
|
5302
|
-
//# sourceMappingURL=pi-coding-agent-
|
|
5302
|
+
//# sourceMappingURL=pi-coding-agent-CznNsOnV.mjs.map
|