pi2dsh 0.3.1 → 0.3.3

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 (102) hide show
  1. package/README.md +15 -10
  2. package/README.zh.md +15 -10
  3. package/dist/all-Rt4K68QA.mjs +28512 -0
  4. package/dist/all-Rt4K68QA.mjs.map +1 -0
  5. package/dist/anthropic-messages-Beym0_aC.mjs +6438 -0
  6. package/dist/anthropic-messages-Beym0_aC.mjs.map +1 -0
  7. package/dist/azure-openai-responses-cHqZTgLD.mjs +209 -0
  8. package/dist/azure-openai-responses-cHqZTgLD.mjs.map +1 -0
  9. package/dist/{build-DsGYAgiT.mjs → build-BG7p2Lbr.mjs} +2 -2
  10. package/dist/{build-DsGYAgiT.mjs.map → build-BG7p2Lbr.mjs.map} +1 -1
  11. package/dist/cli.mjs +1 -1
  12. package/dist/compat/pi-ai.d.mts +16 -3
  13. package/dist/compat/pi-ai.d.mts.map +1 -1
  14. package/dist/compat/pi-ai.mjs +3 -3
  15. package/dist/compat/pi-coding-agent.d.mts +12 -1
  16. package/dist/compat/pi-coding-agent.d.mts.map +1 -1
  17. package/dist/compat/pi-coding-agent.mjs +2 -2
  18. package/dist/compat/vendor/PI-LICENSE/PI-LICENSE +21 -0
  19. package/dist/credentials-oauth.mjs +3 -3
  20. package/dist/deferred-tools-BD4g5QUx.mjs +32 -0
  21. package/dist/deferred-tools-BD4g5QUx.mjs.map +1 -0
  22. package/dist/diagnostics-CJye1UFh.mjs +99 -0
  23. package/dist/diagnostics-CJye1UFh.mjs.map +1 -0
  24. package/dist/dist-IQKOgQyt.mjs +10035 -0
  25. package/dist/dist-IQKOgQyt.mjs.map +1 -0
  26. package/dist/dist-QBBA-dL_.mjs +1246 -0
  27. package/dist/dist-QBBA-dL_.mjs.map +1 -0
  28. package/dist/error-body-DKA3lknR.mjs +104 -0
  29. package/dist/error-body-DKA3lknR.mjs.map +1 -0
  30. package/dist/github-copilot-headers-CZo2QHrt.mjs +25 -0
  31. package/dist/github-copilot-headers-CZo2QHrt.mjs.map +1 -0
  32. package/dist/google-generative-ai-B7OZs5lu.mjs +358 -0
  33. package/dist/google-generative-ai-B7OZs5lu.mjs.map +1 -0
  34. package/dist/google-shared-CRsAUItF.mjs +29042 -0
  35. package/dist/google-shared-CRsAUItF.mjs.map +1 -0
  36. package/dist/google-vertex-DmdaHQtB.mjs +402 -0
  37. package/dist/google-vertex-DmdaHQtB.mjs.map +1 -0
  38. package/dist/hash-Dbggamac.mjs +19 -0
  39. package/dist/hash-Dbggamac.mjs.map +1 -0
  40. package/dist/headers-CPzZhJQn.mjs +17 -0
  41. package/dist/headers-CPzZhJQn.mjs.map +1 -0
  42. package/dist/host.d.mts.map +1 -1
  43. package/dist/host.mjs +13 -3
  44. package/dist/host.mjs.map +1 -1
  45. package/dist/images-models-DJtHo9Rp.mjs +1068 -0
  46. package/dist/images-models-DJtHo9Rp.mjs.map +1 -0
  47. package/dist/index.d.mts.map +1 -1
  48. package/dist/index.mjs +1 -1
  49. package/dist/json-parse-CFyFZSLJ.mjs +384 -0
  50. package/dist/json-parse-CFyFZSLJ.mjs.map +1 -0
  51. package/dist/{mcp-config-gqg7GJEE.mjs → mcp-config-D2B3kv-Z.mjs} +34 -16
  52. package/dist/mcp-config-D2B3kv-Z.mjs.map +1 -0
  53. package/dist/mistral-conversations-HHZCcFv_.mjs +42007 -0
  54. package/dist/mistral-conversations-HHZCcFv_.mjs.map +1 -0
  55. package/dist/multipart-parser-CIa5BbwO.mjs +301 -0
  56. package/dist/multipart-parser-CIa5BbwO.mjs.map +1 -0
  57. package/dist/{oauth-bridge-BpPrppjR.mjs → oauth-bridge-C6fL1qSv.mjs} +20 -4
  58. package/dist/oauth-bridge-C6fL1qSv.mjs.map +1 -0
  59. package/dist/openai-DkzRh5_G.mjs +6732 -0
  60. package/dist/openai-DkzRh5_G.mjs.map +1 -0
  61. package/dist/openai-codex-responses-vmovNu-q.mjs +1169 -0
  62. package/dist/openai-codex-responses-vmovNu-q.mjs.map +1 -0
  63. package/dist/openai-completions-fXHhRolF.mjs +947 -0
  64. package/dist/openai-completions-fXHhRolF.mjs.map +1 -0
  65. package/dist/openai-prompt-cache-BDWtZRKh.mjs +11 -0
  66. package/dist/openai-prompt-cache-BDWtZRKh.mjs.map +1 -0
  67. package/dist/openai-responses-DKdCYf3h.mjs +247 -0
  68. package/dist/openai-responses-DKdCYf3h.mjs.map +1 -0
  69. package/dist/openai-responses-shared-D0Jq7yVP.mjs +572 -0
  70. package/dist/openai-responses-shared-D0Jq7yVP.mjs.map +1 -0
  71. package/dist/openrouter-images-fG3Aj6M4.mjs +127 -0
  72. package/dist/openrouter-images-fG3Aj6M4.mjs.map +1 -0
  73. package/dist/otel-BQSQRBLF.mjs +24935 -0
  74. package/dist/otel-BQSQRBLF.mjs.map +1 -0
  75. package/dist/{pi-ai-CWFlgigJ.mjs → pi-ai-DhYGgq4Y.mjs} +49 -12
  76. package/dist/{pi-ai-CWFlgigJ.mjs.map → pi-ai-DhYGgq4Y.mjs.map} +1 -1
  77. package/dist/{pi-coding-agent-Z1hTs61i.mjs → pi-coding-agent-fPHwKP4d.mjs} +27 -3
  78. package/dist/{pi-coding-agent-Z1hTs61i.mjs.map → pi-coding-agent-fPHwKP4d.mjs.map} +1 -1
  79. package/dist/pi-messages-CV-Ts8An.mjs +306 -0
  80. package/dist/pi-messages-CV-Ts8An.mjs.map +1 -0
  81. package/dist/provider-env-C72pF4vP.mjs +40 -0
  82. package/dist/provider-env-C72pF4vP.mjs.map +1 -0
  83. package/dist/provider-retry-Cw6YJ4cr.mjs +80 -0
  84. package/dist/provider-retry-Cw6YJ4cr.mjs.map +1 -0
  85. package/dist/rolldown-runtime-CTfmNlz1.mjs +44 -0
  86. package/dist/{runtime-6DefpI6h.mjs → runtime-B9R7bDWT.mjs} +874 -37
  87. package/dist/runtime-B9R7bDWT.mjs.map +1 -0
  88. package/dist/runtime.d.mts.map +1 -1
  89. package/dist/runtime.mjs +1 -1
  90. package/dist/sanitize-unicode-wLA11KvZ.mjs +29 -0
  91. package/dist/sanitize-unicode-wLA11KvZ.mjs.map +1 -0
  92. package/dist/src-C3WBfOks.mjs +5031 -0
  93. package/dist/src-C3WBfOks.mjs.map +1 -0
  94. package/dist/transform-messages-DGq9mvhA.mjs +379 -0
  95. package/dist/transform-messages-DGq9mvhA.mjs.map +1 -0
  96. package/dist/uuid-DtFT7tOE.mjs +65 -0
  97. package/dist/uuid-DtFT7tOE.mjs.map +1 -0
  98. package/package.json +1 -1
  99. package/dist/mcp-config-gqg7GJEE.mjs.map +0 -1
  100. package/dist/oauth-bridge-BpPrppjR.mjs.map +0 -1
  101. package/dist/rolldown-runtime-D-uZhY3_.mjs +0 -16
  102. package/dist/runtime-6DefpI6h.mjs.map +0 -1
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as analyzePackage, c as EVENT_RULES, i as generateBundle, l as HOST_IMPORT_RULES, n as convertPiMcpConfig, o as API_RULES, p as UI_CONTEXT_RULES, r as renderMcpPatch, s as CONTEXT_RULES } from "./mcp-config-gqg7GJEE.mjs";
2
+ import { a as analyzePackage, c as EVENT_RULES, i as generateBundle, l as HOST_IMPORT_RULES, n as convertPiMcpConfig, o as API_RULES, p as UI_CONTEXT_RULES, r as renderMcpPatch, s as CONTEXT_RULES } from "./mcp-config-D2B3kv-Z.mjs";
3
3
  import { t as resolvePiPackage } from "./source-0sA5z08z.mjs";
4
4
  import { writeFileSync } from "node:fs";
5
5
  import { parseArgs } from "node:util";
@@ -314,6 +314,13 @@ declare function getProviders(): string[];
314
314
  declare function getProvider(name: string): unknown;
315
315
  declare function getModel(_provider: string, _id: string): undefined;
316
316
  declare function getModels(_provider?: string): unknown[];
317
+ /**
318
+ * The REAL pi-ai's builtin provider definition for one id, when the host
319
+ * bundle carries pi-ai. DSH's own llm adapter builds its directory from the
320
+ * same builtinProviders(), so this is the DSH model layer's own source of
321
+ * provider auth semantics (env-resolved API keys included).
322
+ */
323
+ declare function realBuiltinProvider(providerId: string): Promise<UnknownRecord | undefined>;
317
324
  declare function openAICompletionsApi(): unknown;
318
325
  declare function openAIResponsesApi(): unknown;
319
326
  declare function anthropicMessagesApi(): unknown;
@@ -340,8 +347,14 @@ declare function registerApiProvider(provider: CompatApiProvider, sourceId?: str
340
347
  declare function getApiProvider(api: string): CompatApiProvider | undefined;
341
348
  declare function getApiProviders(): CompatApiProvider[];
342
349
  declare function unregisterApiProviders(sourceId: string): void;
343
- declare function complete(..._args: unknown[]): never;
344
- declare function stream(..._args: unknown[]): never;
350
+ type PiAiLlmBridge = (model: UnknownRecord, context: UnknownRecord, options: UnknownRecord | undefined) => {
351
+ result(): Promise<unknown>;
352
+ [Symbol.asyncIterator](): AsyncIterator<unknown>;
353
+ };
354
+ type UnknownRecord = Record<string, unknown>;
355
+ declare function __setPiAiLlmBridge(bridge: PiAiLlmBridge | undefined): void;
356
+ declare function complete(model: UnknownRecord, context: UnknownRecord, options?: UnknownRecord): Promise<unknown>;
357
+ declare function stream(model: UnknownRecord, context: UnknownRecord, options?: UnknownRecord): unknown;
345
358
  interface StringEnumOptions<T extends readonly string[]> {
346
359
  description?: string;
347
360
  default?: T[number];
@@ -353,5 +366,5 @@ declare function StringEnum<T extends readonly string[]>(values: T, options?: St
353
366
  default?: T[number];
354
367
  };
355
368
  //#endregion
356
- export { type AgentMessage, Api, type AssistantMessage, AssistantMessageEventStream, type ImageContent, type Message, Model, ModelThinkingLevel, ModelsError, type Static, StringEnum, StringEnumOptions, type TSchema, type TextContent, type ThinkingContent, ThinkingLevel, ThinkingLevelMap, type ToolCallContent, type ToolResultMessage, typebox_d_exports as Type, type Usage, type UserMessage, anthropicMessagesApi, anthropicOAuth, builtinProviders, clampThinkingLevel, complete, contentText, createProvider, generatePKCE, getApiProvider, getApiProviders, getModel, getModels, getProvider, getProviders, getSupportedThinkingLevels, githubCopilotOAuth, isContextOverflow, isRecoverableLength, isRetryableAssistantError, kimiCodingOAuth, lazyApi, lazyStream, loadAnthropicOAuth, loadGitHubCopilotOAuth, loadKimiCodingOAuth, loadOpenAICodexOAuth, modelsAreEqual, openAICompletionsApi, openAIResponsesApi, openaiCodexOAuth, pollOAuthDeviceCodeFlow, registerApiProvider, registerProvider, stream, unregisterApiProviders, uuidv7 };
369
+ export { type AgentMessage, Api, type AssistantMessage, AssistantMessageEventStream, type ImageContent, type Message, Model, ModelThinkingLevel, ModelsError, type Static, StringEnum, StringEnumOptions, type TSchema, type TextContent, type ThinkingContent, ThinkingLevel, ThinkingLevelMap, type ToolCallContent, type ToolResultMessage, typebox_d_exports as Type, type Usage, type UserMessage, __setPiAiLlmBridge, anthropicMessagesApi, anthropicOAuth, builtinProviders, clampThinkingLevel, complete, contentText, createProvider, generatePKCE, getApiProvider, getApiProviders, getModel, getModels, getProvider, getProviders, getSupportedThinkingLevels, githubCopilotOAuth, isContextOverflow, isRecoverableLength, isRetryableAssistantError, kimiCodingOAuth, lazyApi, lazyStream, loadAnthropicOAuth, loadGitHubCopilotOAuth, loadKimiCodingOAuth, loadOpenAICodexOAuth, modelsAreEqual, openAICompletionsApi, openAIResponsesApi, openaiCodexOAuth, pollOAuthDeviceCodeFlow, realBuiltinProvider, registerApiProvider, registerProvider, stream, unregisterApiProviders, uuidv7 };
357
370
  //# sourceMappingURL=pi-ai.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pi-ai.d.mts","names":[],"sources":["../../node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_refine.d.mts","../../node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/script.d.mts","../../node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/typebox.d.mts","../../src/compat/vendor/pi-ai-overflow.ts","../../src/compat/vendor/pi-ai-retry.ts","../../src/compat/vendor/pi-uuid.ts","../../src/compat/vendor/pi-ai-provider.ts","../../src/compat/vendor/pi-ai-event-stream.ts","../../src/compat/vendor/pi-ai-lazy.ts","../../src/compat/vendor/pi-oauth-flows/openai-codex.ts","../../src/compat/vendor/pi-oauth-flows/anthropic.ts","../../src/compat/vendor/pi-oauth-flows/github-copilot.ts","../../src/compat/vendor/pi-oauth-flows/kimi-coding.ts","../../src/compat/vendor/pi-oauth-flows/pkce.ts","../../src/compat/vendor/pi-oauth-flows/device-code.ts","../../src/compat/pi-ai.ts"],"x_google_ignoreList":[0,1,2],"mappings":";;;;KAGY,WAAW,aAAa,UAAU,oCAAoC,OAAO,OAAO,QAAQ;;KAI5F,QAAQ,aAAa,UAAU,YAAY;EACnD,WAAW;;KAEH,qBAAqB,oCAAoC,OAAO;KAChE,qBAAqB,oCAAoC,OAAO;UAC3D,YAAY;EACzB,OAAO,qBAAqB;EAC5B,OAAO,qBAAqB;;;iBAGR,OAAO,aAAa,SAAS,QAAQ,OAAO,OAAO,MAAM,MAAM,OAAO,qBAAqB,QAAQ,OAAO,qBAAqB,SAAS,WAAW;;iBAEnJ,OAAO,aAAa,SAAS,QAAQ,OAAO,OAAO,MAAM,MAAM,OAAO,qBAAqB,SAAS,WAAW;;iBAI/G,SAAS,iBAAiB,SAAS;;;KClB/C,iBAAiB,gBAAgB,oBAAoB,iBAAiB,iBAAiB,iBAAiB;;KAExG,QAAQ,gBAAgB,aAAa,yBAAyB,UAAe,sBAAsB,aAAa,mBAAmB,iBAAiB,SAAS,gBAAgB,QAAQ;;iBAEzK,OAAO,uBAAuB,OAAO,SAAS,YAAY;;iBAE1D,OAAO,gBAAgB,aAAa,uBAAuB,SAAS,SAAS,OAAO,SAAS,QAAQ,SAAS;;iBAE9G,OAAO,uBAAuB,OAAO,QAAQ,SAAS,iBAAiB,YAAY;;iBAEnF,OAAO,gBAAgB,aAAa,uBAAuB,SAAS,SAAS,OAAO,QAAQ,SAAS,iBAAiB,QAAQ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBEuH/I,kBAAkB,SAAS,kBAAkB;;;;;;;iBAqC7C,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ACnC,2BAAgC;UASnC;EACR;EACA,YAAY;EACZ,kBAAkB;;iBAaJ,oBAAoB,UAAU,mBAAmB;iBAWjD,eAAe,cAAc;iBAI7B,mBAAmB;iBAInB,uBAAuB;iBAMvB,YAAY;iBAIZ,UAAU;UAIT,kBAAkB;EACjC;EACA,UAAU;;iBAGI,WAAW,6BACzB,QAAQ,GACR,UAAS,kBAAkB;EACxB;EAAgB,MAAM;EAAG;EAAsB,UAAU"}
1
+ {"version":3,"file":"pi-ai.d.mts","names":[],"sources":["../../node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_refine.d.mts","../../node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/script.d.mts","../../node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/typebox.d.mts","../../src/compat/vendor/pi-ai-overflow.ts","../../src/compat/vendor/pi-ai-retry.ts","../../src/compat/vendor/pi-uuid.ts","../../src/compat/vendor/pi-ai-provider.ts","../../src/compat/vendor/pi-ai-event-stream.ts","../../src/compat/vendor/pi-ai-lazy.ts","../../src/compat/vendor/pi-oauth-flows/openai-codex.ts","../../src/compat/vendor/pi-oauth-flows/anthropic.ts","../../src/compat/vendor/pi-oauth-flows/github-copilot.ts","../../src/compat/vendor/pi-oauth-flows/kimi-coding.ts","../../src/compat/vendor/pi-oauth-flows/pkce.ts","../../src/compat/vendor/pi-oauth-flows/device-code.ts","../../src/compat/pi-ai.ts"],"x_google_ignoreList":[0,1,2],"mappings":";;;;KAGY,WAAW,aAAa,UAAU,oCAAoC,OAAO,OAAO,QAAQ;;KAI5F,QAAQ,aAAa,UAAU,YAAY;EACnD,WAAW;;KAEH,qBAAqB,oCAAoC,OAAO;KAChE,qBAAqB,oCAAoC,OAAO;UAC3D,YAAY;EACzB,OAAO,qBAAqB;EAC5B,OAAO,qBAAqB;;;iBAGR,OAAO,aAAa,SAAS,QAAQ,OAAO,OAAO,MAAM,MAAM,OAAO,qBAAqB,QAAQ,OAAO,qBAAqB,SAAS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} from "../build-DsGYAgiT.mjs";
3
- import { A as pollOAuthDeviceCodeFlow, C as stream, D as anthropicOAuth, E as githubCopilotOAuth, F as AssistantMessageEventStream, I as isRetryableAssistantError, L as isContextOverflow, M as createProvider, N as lazyApi, O as openaiCodexOAuth, P as lazyStream, R as isRecoverableLength, S as registerProvider, T as kimiCodingOAuth, _ as loadOpenAICodexOAuth, a as complete, b as openAIResponsesApi, c as getApiProviders, d as getProvider, f as getProviders, g as loadKimiCodingOAuth, h as loadGitHubCopilotOAuth, i as clampThinkingLevel, j as ModelsError, k as generatePKCE, l as getModel, m as loadAnthropicOAuth, n as anthropicMessagesApi, o as contentText, p as getSupportedThinkingLevels, r as builtinProviders, s as getApiProvider, t as StringEnum, u as getModels, v as modelsAreEqual, w as unregisterApiProviders, x as registerApiProvider, y as openAICompletionsApi } from "../pi-ai-CWFlgigJ.mjs";
4
- export { AssistantMessageEventStream, ModelsError, StringEnum, typebox_exports as Type, anthropicMessagesApi, anthropicOAuth, builtinProviders, clampThinkingLevel, complete, contentText, createProvider, generatePKCE, getApiProvider, getApiProviders, getModel, getModels, getProvider, getProviders, getSupportedThinkingLevels, githubCopilotOAuth, isContextOverflow, isRecoverableLength, isRetryableAssistantError, kimiCodingOAuth, lazyApi, lazyStream, loadAnthropicOAuth, loadGitHubCopilotOAuth, loadKimiCodingOAuth, loadOpenAICodexOAuth, modelsAreEqual, openAICompletionsApi, openAIResponsesApi, openaiCodexOAuth, pollOAuthDeviceCodeFlow, registerApiProvider, registerProvider, stream, unregisterApiProviders, uuidv7 };
2
+ import { c as uuidv7, t as typebox_exports } from "../build-BG7p2Lbr.mjs";
3
+ import { A as openaiCodexOAuth, B as isRecoverableLength, C as registerApiProvider, D as kimiCodingOAuth, E as unregisterApiProviders, F as lazyApi, I as lazyStream, L as AssistantMessageEventStream, M as pollOAuthDeviceCodeFlow, N as ModelsError, O as githubCopilotOAuth, P as createProvider, R as isRetryableAssistantError, S as realBuiltinProvider, T as stream, _ as loadKimiCodingOAuth, a as clampThinkingLevel, b as openAICompletionsApi, c as getApiProvider, d as getModels, f as getProvider, g as loadGitHubCopilotOAuth, h as loadAnthropicOAuth, i as builtinProviders, j as generatePKCE, k as anthropicOAuth, l as getApiProviders, m as getSupportedThinkingLevels, n as __setPiAiLlmBridge, o as complete, p as getProviders, r as anthropicMessagesApi, s as contentText, t as StringEnum, u as getModel, v as loadOpenAICodexOAuth, w as registerProvider, x as openAIResponsesApi, y as modelsAreEqual, z as isContextOverflow } from "../pi-ai-DhYGgq4Y.mjs";
4
+ export { AssistantMessageEventStream, ModelsError, StringEnum, typebox_exports as Type, __setPiAiLlmBridge, anthropicMessagesApi, anthropicOAuth, builtinProviders, clampThinkingLevel, complete, contentText, createProvider, generatePKCE, getApiProvider, getApiProviders, getModel, getModels, getProvider, getProviders, getSupportedThinkingLevels, githubCopilotOAuth, isContextOverflow, isRecoverableLength, isRetryableAssistantError, kimiCodingOAuth, lazyApi, lazyStream, loadAnthropicOAuth, loadGitHubCopilotOAuth, loadKimiCodingOAuth, loadOpenAICodexOAuth, modelsAreEqual, openAICompletionsApi, openAIResponsesApi, openaiCodexOAuth, pollOAuthDeviceCodeFlow, realBuiltinProvider, registerApiProvider, registerProvider, stream, unregisterApiProviders, uuidv7 };
@@ -755,6 +755,17 @@ declare function createLsTool(cwd: any, options: any): {
755
755
  declare function formatSkillsForPrompt(skills: any): string;
756
756
  //#endregion
757
757
  //#region src/compat/pi-coding-agent.d.ts
758
+ interface ToolNamedEvent {
759
+ toolName?: unknown;
760
+ }
761
+ declare function isToolCallEventType(toolName: string, event: ToolNamedEvent): boolean;
762
+ declare function isBashToolResult(event: ToolNamedEvent): boolean;
763
+ declare function isReadToolResult(event: ToolNamedEvent): boolean;
764
+ declare function isEditToolResult(event: ToolNamedEvent): boolean;
765
+ declare function isWriteToolResult(event: ToolNamedEvent): boolean;
766
+ declare function isGrepToolResult(event: ToolNamedEvent): boolean;
767
+ declare function isFindToolResult(event: ToolNamedEvent): boolean;
768
+ declare function isLsToolResult(event: ToolNamedEvent): boolean;
758
769
  declare const CONFIG_DIR_NAME = ".pi";
759
770
  declare const VERSION = "pi2dsh-compat";
760
771
  declare function defineTool<T>(tool: T): T;
@@ -1060,5 +1071,5 @@ declare function keyHint(keybinding: string, description: string): string;
1060
1071
  declare function keyText(keybinding: string): string;
1061
1072
  declare function rawKeyHint(key: string, description: string): string;
1062
1073
  //#endregion
1063
- export { AssistantMessageComponent, BRANCH_SUMMARY_PREFIX, BRANCH_SUMMARY_SUFFIX, type BashExecutionMessage, BorderedLoader, type BranchSummaryEntry, type BranchSummaryMessage, COMPACTION_SUMMARY_PREFIX, COMPACTION_SUMMARY_SUFFIX, CONFIG_DIR_NAME, CURRENT_SESSION_VERSION, ColorMode, type CompactionEntry, CompactionSettings, type CompactionSummaryMessage, CustomEditor, type CustomEntry, type CustomMessage, CustomMessageComponent, type CustomMessageEntry, DEFAULT_COMPACTION_SETTINGS, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DefaultPackageManager, DefaultProjectTrust, DefaultResourceLoader, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionRunner, ExtensionSelectorComponent, FileSettingsStorage, FooterComponent, ImageResizeOptions, InMemorySettingsStorage, type LabelEntry, type ModelChangeEntry, ModelRegistry, ModelRuntime, PackageSource, ParsedSkillBlock, ProjectTrustStore, RegisteredToolRecord, RenderDiffOptions, ResizedImage, RetrySettings, type SessionContext, type SessionEntry, type SessionHeader, type SessionInfo, type SessionInfoEntry, SessionManager, type SessionMessageEntry, type SessionTreeNode, SettingsCallbacks, SettingsConfig, SettingsManager, SettingsManagerCreateOptions, SettingsSelectorComponent, ShellConfig, StoredCredential, Theme, ThemeBg, ThemeColor, type ThinkingLevelChangeEntry, ToolExecutionComponent, ToolExecutionOptions, type TruncationOptions, type TruncationResult, TuiMode, UserMessageComponent, VERSION, VisualTruncateResult, __setSubagentSessionFactory, assertValidSessionId, bashExecutionToText, bashToolSystemPromptContribution, buildContextEntries, buildSessionContext, calculateContextTokens, compact, convertToLlm, convertToPng, copyToClipboard, createAgentSession, createBashTool, createBashToolDefinition, createBranchSummaryMessage, createCodingTools, createCompactionSummaryMessage, createCustomMessage, createEditTool, createEditToolDefinition, createEventBus, createFindTool, createFindToolDefinition, createGrepTool, createGrepToolDefinition, createLocalBashOperations, createLsTool, createLsToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createWriteTool, createWriteToolDefinition, defineTool, ensureTool, estimateTokens, findCutPoint, findMostRecentSession, formatSize, formatSkillsForPrompt, generateBranchSummary, generateSummary, generateSummaryWithUsage, getAgentDir, getBinDir, getDefaultSessionDir, getLanguageFromPath, getLatestCompactionEntry, getMarkdownTheme, getPackageDir, getReadmePath, getSelectListTheme, getSettingsListTheme, getShellConfig, getToolPath, highlightCode, initTheme, keyHint, keyText, loadEntriesFromFile, loadSkills, loadSkillsFromDir, migrateSessionEntries, parseFrontmatter, parseSessionEntries, parseSkillBlock, processImage, rawKeyHint, readStoredCredential, renderDiff, resizeImage, serializeConversation, sessionEntryToContextMessages, shouldCompact, stripFrontmatter, theme, truncateHead, truncateLine, truncateTail, truncateToVisualLines, withFileMutationQueue, wrapRegisteredTool };
1074
+ export { AssistantMessageComponent, BRANCH_SUMMARY_PREFIX, BRANCH_SUMMARY_SUFFIX, type BashExecutionMessage, BorderedLoader, type BranchSummaryEntry, type BranchSummaryMessage, COMPACTION_SUMMARY_PREFIX, COMPACTION_SUMMARY_SUFFIX, CONFIG_DIR_NAME, CURRENT_SESSION_VERSION, ColorMode, type CompactionEntry, CompactionSettings, type CompactionSummaryMessage, CustomEditor, type CustomEntry, type CustomMessage, CustomMessageComponent, type CustomMessageEntry, DEFAULT_COMPACTION_SETTINGS, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DefaultPackageManager, DefaultProjectTrust, DefaultResourceLoader, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionRunner, ExtensionSelectorComponent, FileSettingsStorage, FooterComponent, ImageResizeOptions, InMemorySettingsStorage, type LabelEntry, type ModelChangeEntry, ModelRegistry, ModelRuntime, PackageSource, ParsedSkillBlock, ProjectTrustStore, RegisteredToolRecord, RenderDiffOptions, ResizedImage, RetrySettings, type SessionContext, type SessionEntry, type SessionHeader, type SessionInfo, type SessionInfoEntry, SessionManager, type SessionMessageEntry, type SessionTreeNode, SettingsCallbacks, SettingsConfig, SettingsManager, SettingsManagerCreateOptions, SettingsSelectorComponent, ShellConfig, StoredCredential, Theme, ThemeBg, ThemeColor, type ThinkingLevelChangeEntry, ToolExecutionComponent, ToolExecutionOptions, type TruncationOptions, type TruncationResult, TuiMode, UserMessageComponent, VERSION, VisualTruncateResult, __setSubagentSessionFactory, assertValidSessionId, bashExecutionToText, bashToolSystemPromptContribution, buildContextEntries, buildSessionContext, calculateContextTokens, compact, convertToLlm, convertToPng, copyToClipboard, createAgentSession, createBashTool, createBashToolDefinition, createBranchSummaryMessage, createCodingTools, createCompactionSummaryMessage, createCustomMessage, createEditTool, createEditToolDefinition, createEventBus, createFindTool, createFindToolDefinition, createGrepTool, createGrepToolDefinition, createLocalBashOperations, createLsTool, createLsToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createWriteTool, createWriteToolDefinition, defineTool, ensureTool, estimateTokens, findCutPoint, findMostRecentSession, formatSize, formatSkillsForPrompt, generateBranchSummary, generateSummary, generateSummaryWithUsage, getAgentDir, getBinDir, getDefaultSessionDir, getLanguageFromPath, getLatestCompactionEntry, getMarkdownTheme, getPackageDir, getReadmePath, getSelectListTheme, getSettingsListTheme, getShellConfig, getToolPath, highlightCode, initTheme, isBashToolResult, isEditToolResult, isFindToolResult, isGrepToolResult, isLsToolResult, isReadToolResult, isToolCallEventType, isWriteToolResult, keyHint, keyText, loadEntriesFromFile, loadSkills, loadSkillsFromDir, migrateSessionEntries, parseFrontmatter, parseSessionEntries, parseSkillBlock, processImage, rawKeyHint, readStoredCredential, renderDiff, resizeImage, serializeConversation, sessionEntryToContextMessages, shouldCompact, stripFrontmatter, theme, truncateHead, truncateLine, truncateTail, truncateToVisualLines, withFileMutationQueue, wrapRegisteredTool };
1064
1075
  //# sourceMappingURL=pi-coding-agent.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pi-coding-agent.d.mts","names":[],"sources":["../../src/compat/vendor/pi-messages.ts","../../src/compat/vendor/pi-session-manager.ts","../../src/compat/vendor/pi-truncate.ts","../../src/compat/vendor/pi-file-mutation-queue.ts","../../src/compat/vendor/pi-config-shim.ts","../../src/compat/vendor/pi-tools/bash.ts","../../src/compat/vendor/pi-tools/read.ts","../../src/compat/vendor/pi-tools/edit.ts","../../src/compat/vendor/pi-tools/write.ts","../../src/compat/vendor/pi-tools/grep.ts","../../src/compat/vendor/pi-tools/find.ts","../../src/compat/vendor/pi-tools/ls.ts","../../src/compat/vendor/pi-skills-format.ts","../../src/compat/pi-coding-agent.ts"],"mappings":";;;;;cAUa;cAKA;cAGA;cAKA;;;;UAKI;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;;;;;UAOgB,cAAc;EAC9B;EACA;EACA,mBAAmB,cAAc;EACjC;EACA,UAAU;EACV;;UAGgB;EAChB;EACA;EACA;EACA;;UAGgB;EAChB;EACA;EACA;EACA;;;;;iBAOe,oBAAoB,KAAK;iBAkBzB,2BAA2B,iBAAiB,gBAAgB,oBAAoB;iBAShF,+BACf,iBACA,sBACA,oBACE;;iBAUa,oBACf,oBACA,mBAAmB,cAAc,iBACjC,kBACA,8BACA,oBACE;;;;;;;;;iBAmBa,aAAa,UAAU,iBAAiB;;;cC5G3C;UAEI;EAChB;EACA;EACA;EACA;EACA;EACA;;UAGgB;EAChB;EACA;;UAGgB;EAChB;EACA;EACA;EACA;;UAGgB,4BAA4B;EAC5C;EACA,SAAS;;UAGO,iCAAiC;EACjD;EACA;;UAGgB,yBAAyB;EACzC;EACA;EACA;;UAGgB,gBAAgB,qBAAqB;EACrD;EACA;EACA;EACA;;EAEA,UAAU;;EAEV,QA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+ {"version":3,"file":"pi-coding-agent.d.mts","names":[],"sources":["../../src/compat/vendor/pi-messages.ts","../../src/compat/vendor/pi-session-manager.ts","../../src/compat/vendor/pi-truncate.ts","../../src/compat/vendor/pi-file-mutation-queue.ts","../../src/compat/vendor/pi-config-shim.ts","../../src/compat/vendor/pi-tools/bash.ts","../../src/compat/vendor/pi-tools/read.ts","../../src/compat/vendor/pi-tools/edit.ts","../../src/compat/vendor/pi-tools/write.ts","../../src/compat/vendor/pi-tools/grep.ts","../../src/compat/vendor/pi-tools/find.ts","../../src/compat/vendor/pi-tools/ls.ts","../../src/compat/vendor/pi-skills-format.ts","../../src/compat/pi-coding-agent.ts"],"mappings":";;;;;cAUa;cAKA;cAGA;cAKA;;;;UAKI;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;;;;;UAOgB,cAAc;EAC9B;EACA;EACA,mBAAmB,cAAc;EACjC;EACA,UAAU;EACV;;UAGgB;EAChB;EACA;EACA;EACA;;UAGgB;EAChB;EACA;EACA;EACA;;;;;iBAOe,oBAAoB,KAAK;iBAkBzB,2BAA2B,iBAAiB,gBAAgB,oBAAoB;iBAShF,+BACf,iBACA,sBACA,oBACE;;iBAUa,oBACf,oBACA,mBAAmB,cAAc,iBACjC,kBACA,8BACA,oBACE;;;;;;;;;iBAmBa,aAAa,UAAU,iBAAiB;;;cC5G3C;UAEI;EAChB;EACA;EACA;EACA;EACA;EACA;;UAGgB;EAChB;EACA;;UAGgB;EAChB;EACA;EACA;EACA;;UAGgB,4BAA4B;EAC5C;EACA,SAAS;;UAGO,iCAAiC;EACjD;EACA;;UAGgB,yBAAyB;EACzC;EACA;EACA;;UAGgB,gBAAgB,qBAAqB;EACrD;EACA;EACA;EACA;;EAEA,UAAU;;EAEV,QAAQ;;EAER;;UAGgB,mBAAmB,qBAAqB;EACxD;EACA;EACA;;EAEA,UAAU;;EAEV,QAAQ;;EAER;;;;;;;;;;;;UAagB,YAAY,qBAAqB;EACjD;EACA;EACA,O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AUa,QAAQ,oBAAoB;iBAI5B,QAAQ;iBAIR,WAAW,aAAa"}
@@ -1,4 +1,4 @@
1
1
 
2
2
  import { t as getAgentDir } from "../pi-config-shim-CZ1wFzqM.mjs";
3
- import { $ as keyHint, $t as BRANCH_SUMMARY_SUFFIX, A as copyToClipboard, At as createBashTool, B as generateSummary, Bt as CURRENT_SESSION_VERSION, C as ToolExecutionComponent, Ct as createWriteTool, D as calculateContextTokens, Dt as createReadTool, E as __setSubagentSessionFactory, Et as createEditToolDefinition, F as defineTool, Ft as DEFAULT_MAX_LINES, G as getPackageDir, Gt as findMostRecentSession, H as getBinDir, Ht as assertValidSessionId, I as ensureTool, It as formatSize, J as getSettingsListTheme, Jt as loadEntriesFromFile, K as getReadmePath, Kt as getDefaultSessionDir, L as estimateTokens, Lt as truncateHead, M as createCodingTools, Mt as createLocalBashOperations, N as createEventBus, Nt as withFileMutationQueue, O as compact, Ot as createReadToolDefinition, P as createReadOnlyTools, Pt as DEFAULT_MAX_BYTES, Q as initTheme, Qt as BRANCH_SUMMARY_PREFIX, R as findCutPoint, Rt as truncateLine, S as Theme, St as createGrepToolDefinition, T as VERSION, Tt as createEditTool, U as getLanguageFromPath, Ut as buildContextEntries, V as generateSummaryWithUsage, Vt as SessionManager, W as getMarkdownTheme, Wt as buildSessionContext, X as getToolPath, Xt as parseSessionEntries, Y as getShellConfig, Yt as migrateSessionEntries, Z as highlightCode, Zt as sessionEntryToContextMessages, _ as ModelRegistry, _t as createLsTool, a as CustomMessageComponent, an as createCompactionSummaryMessage, at as processImage, b as SettingsManager, bt as createFindToolDefinition, c as DefaultResourceLoader, ct as renderDiff, d as ExtensionInputComponent, dt as shouldCompact, en as COMPACTION_SUMMARY_PREFIX, et as keyText, f as ExtensionRunner, ft as stripFrontmatter, g as InMemorySettingsStorage, gt as formatSkillsForPrompt, h as FooterComponent, ht as wrapRegisteredTool, i as CustomEditor, in as createBranchSummaryMessage, it as parseSkillBlock, j as createAgentSession, jt as createBashToolDefinition, k as convertToPng, kt as bashToolSystemPromptContribution, l as DynamicBorder, lt as resizeImage, m as FileSettingsStorage, mt as truncateToVisualLines, n as BorderedLoader, nn as bashExecutionToText, nt as loadSkillsFromDir, o as DEFAULT_COMPACTION_SETTINGS, on as createCustomMessage, ot as rawKeyHint, p as ExtensionSelectorComponent, pt as theme, q as getSelectListTheme, qt as getLatestCompactionEntry, r as CONFIG_DIR_NAME, rn as convertToLlm, rt as parseFrontmatter, s as DefaultPackageManager, st as readStoredCredential, t as AssistantMessageComponent, tn as COMPACTION_SUMMARY_SUFFIX, tt as loadSkills, u as ExtensionEditorComponent, ut as serializeConversation, v as ModelRuntime, vt as createLsToolDefinition, w as UserMessageComponent, wt as createWriteToolDefinition, x as SettingsSelectorComponent, xt as createGrepTool, y as ProjectTrustStore, yt as createFindTool, z as generateBranchSummary, zt as truncateTail } from "../pi-coding-agent-Z1hTs61i.mjs";
4
- export { AssistantMessageComponent, BRANCH_SUMMARY_PREFIX, BRANCH_SUMMARY_SUFFIX, BorderedLoader, COMPACTION_SUMMARY_PREFIX, COMPACTION_SUMMARY_SUFFIX, CONFIG_DIR_NAME, CURRENT_SESSION_VERSION, CustomEditor, CustomMessageComponent, DEFAULT_COMPACTION_SETTINGS, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DefaultPackageManager, DefaultResourceLoader, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionRunner, ExtensionSelectorComponent, FileSettingsStorage, FooterComponent, InMemorySettingsStorage, ModelRegistry, ModelRuntime, ProjectTrustStore, SessionManager, SettingsManager, SettingsSelectorComponent, Theme, ToolExecutionComponent, UserMessageComponent, VERSION, __setSubagentSessionFactory, assertValidSessionId, bashExecutionToText, bashToolSystemPromptContribution, buildContextEntries, buildSessionContext, calculateContextTokens, compact, convertToLlm, convertToPng, copyToClipboard, createAgentSession, createBashTool, createBashToolDefinition, createBranchSummaryMessage, createCodingTools, createCompactionSummaryMessage, createCustomMessage, createEditTool, createEditToolDefinition, createEventBus, createFindTool, createFindToolDefinition, createGrepTool, createGrepToolDefinition, createLocalBashOperations, createLsTool, createLsToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createWriteTool, createWriteToolDefinition, defineTool, ensureTool, estimateTokens, findCutPoint, findMostRecentSession, formatSize, formatSkillsForPrompt, generateBranchSummary, generateSummary, generateSummaryWithUsage, getAgentDir, getBinDir, getDefaultSessionDir, getLanguageFromPath, getLatestCompactionEntry, getMarkdownTheme, getPackageDir, getReadmePath, getSelectListTheme, getSettingsListTheme, getShellConfig, getToolPath, highlightCode, initTheme, keyHint, keyText, loadEntriesFromFile, loadSkills, loadSkillsFromDir, migrateSessionEntries, parseFrontmatter, parseSessionEntries, parseSkillBlock, processImage, rawKeyHint, readStoredCredential, renderDiff, resizeImage, serializeConversation, sessionEntryToContextMessages, shouldCompact, stripFrontmatter, theme, truncateHead, truncateLine, truncateTail, truncateToVisualLines, withFileMutationQueue, wrapRegisteredTool };
3
+ import { $ as isBashToolResult, $t as findMostRecentSession, A as copyToClipboard, At as createGrepToolDefinition, B as generateSummary, Bt as createLocalBashOperations, C as ToolExecutionComponent, Ct as wrapRegisteredTool, D as calculateContextTokens, Dt as createFindTool, E as __setSubagentSessionFactory, Et as createLsToolDefinition, F as defineTool, Ft as createReadTool, G as getPackageDir, Gt as truncateHead, H as getBinDir, Ht as DEFAULT_MAX_BYTES, I as ensureTool, It as createReadToolDefinition, J as getSettingsListTheme, Jt as CURRENT_SESSION_VERSION, K as getReadmePath, Kt as truncateLine, L as estimateTokens, Lt as bashToolSystemPromptContribution, M as createCodingTools, Mt as createWriteToolDefinition, N as createEventBus, Nt as createEditTool, O as compact, Ot as createFindToolDefinition, P as createReadOnlyTools, Pt as createEditToolDefinition, Q as initTheme, Qt as buildSessionContext, R as findCutPoint, Rt as createBashTool, S as Theme, St as truncateToVisualLines, T as VERSION, Tt as createLsTool, U as getLanguageFromPath, Ut as DEFAULT_MAX_LINES, V as generateSummaryWithUsage, Vt as withFileMutationQueue, W as getMarkdownTheme, Wt as formatSize, X as getToolPath, Xt as assertValidSessionId, Y as getShellConfig, Yt as SessionManager, Z as highlightCode, Zt as buildContextEntries, _ as ModelRegistry, _t as resizeImage, a as CustomMessageComponent, an as sessionEntryToContextMessages, at as isToolCallEventType, b as SettingsManager, bt as stripFrontmatter, c as DefaultResourceLoader, cn as COMPACTION_SUMMARY_PREFIX, ct as keyText, d as ExtensionInputComponent, dn as convertToLlm, dt as parseFrontmatter, en as getDefaultSessionDir, et as isEditToolResult, f as ExtensionRunner, fn as createBranchSummaryMessage, ft as parseSkillBlock, g as InMemorySettingsStorage, gt as renderDiff, h as FooterComponent, ht as readStoredCredential, i as CustomEditor, in as parseSessionEntries, it as isReadToolResult, j as createAgentSession, jt as createWriteTool, k as convertToPng, kt as createGrepTool, l as DynamicBorder, ln as COMPACTION_SUMMARY_SUFFIX, lt as loadSkills, m as FileSettingsStorage, mn as createCustomMessage, mt as rawKeyHint, n as BorderedLoader, nn as loadEntriesFromFile, nt as isGrepToolResult, o as DEFAULT_COMPACTION_SETTINGS, on as BRANCH_SUMMARY_PREFIX, ot as isWriteToolResult, p as ExtensionSelectorComponent, pn as createCompactionSummaryMessage, pt as processImage, q as getSelectListTheme, qt as truncateTail, r as CONFIG_DIR_NAME, rn as migrateSessionEntries, rt as isLsToolResult, s as DefaultPackageManager, sn as BRANCH_SUMMARY_SUFFIX, st as keyHint, t as AssistantMessageComponent, tn as getLatestCompactionEntry, tt as isFindToolResult, u as ExtensionEditorComponent, un as bashExecutionToText, ut as loadSkillsFromDir, v as ModelRuntime, vt as serializeConversation, w as UserMessageComponent, wt as formatSkillsForPrompt, x as SettingsSelectorComponent, xt as theme, y as ProjectTrustStore, yt as shouldCompact, z as generateBranchSummary, zt as createBashToolDefinition } from "../pi-coding-agent-fPHwKP4d.mjs";
4
+ export { AssistantMessageComponent, BRANCH_SUMMARY_PREFIX, BRANCH_SUMMARY_SUFFIX, BorderedLoader, COMPACTION_SUMMARY_PREFIX, COMPACTION_SUMMARY_SUFFIX, CONFIG_DIR_NAME, CURRENT_SESSION_VERSION, CustomEditor, CustomMessageComponent, DEFAULT_COMPACTION_SETTINGS, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DefaultPackageManager, DefaultResourceLoader, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionRunner, ExtensionSelectorComponent, FileSettingsStorage, FooterComponent, InMemorySettingsStorage, ModelRegistry, ModelRuntime, ProjectTrustStore, SessionManager, SettingsManager, SettingsSelectorComponent, Theme, ToolExecutionComponent, UserMessageComponent, VERSION, __setSubagentSessionFactory, assertValidSessionId, bashExecutionToText, bashToolSystemPromptContribution, buildContextEntries, buildSessionContext, calculateContextTokens, compact, convertToLlm, convertToPng, copyToClipboard, createAgentSession, createBashTool, createBashToolDefinition, createBranchSummaryMessage, createCodingTools, createCompactionSummaryMessage, createCustomMessage, createEditTool, createEditToolDefinition, createEventBus, createFindTool, createFindToolDefinition, createGrepTool, createGrepToolDefinition, createLocalBashOperations, createLsTool, createLsToolDefinition, createReadOnlyTools, createReadTool, createReadToolDefinition, createWriteTool, createWriteToolDefinition, defineTool, ensureTool, estimateTokens, findCutPoint, findMostRecentSession, formatSize, formatSkillsForPrompt, generateBranchSummary, generateSummary, generateSummaryWithUsage, getAgentDir, getBinDir, getDefaultSessionDir, getLanguageFromPath, getLatestCompactionEntry, getMarkdownTheme, getPackageDir, getReadmePath, getSelectListTheme, getSettingsListTheme, getShellConfig, getToolPath, highlightCode, initTheme, isBashToolResult, isEditToolResult, isFindToolResult, isGrepToolResult, isLsToolResult, isReadToolResult, isToolCallEventType, isWriteToolResult, keyHint, keyText, loadEntriesFromFile, loadSkills, loadSkillsFromDir, migrateSessionEntries, parseFrontmatter, parseSessionEntries, parseSkillBlock, processImage, rawKeyHint, readStoredCredential, renderDiff, resizeImage, serializeConversation, sessionEntryToContextMessages, shouldCompact, stripFrontmatter, theme, truncateHead, truncateLine, truncateTail, truncateToVisualLines, withFileMutationQueue, wrapRegisteredTool };
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Mario Zechner
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,8 +1,8 @@
1
1
 
2
2
  import { t as getAgentDir } from "./pi-config-shim-CZ1wFzqM.mjs";
3
- import "./pi-coding-agent-Z1hTs61i.mjs";
4
- import { a as storedOAuthCredential, i as resolveOAuthApiKey, r as providerSupportsOAuth, t as FileCredentialStore } from "./oauth-bridge-BpPrppjR.mjs";
5
- import { r as builtinProviders } from "./pi-ai-CWFlgigJ.mjs";
3
+ import "./pi-coding-agent-fPHwKP4d.mjs";
4
+ import { i as resolveOAuthApiKey, o as storedOAuthCredential, r as providerSupportsOAuth, t as FileCredentialStore } from "./oauth-bridge-C6fL1qSv.mjs";
5
+ import { i as builtinProviders } from "./pi-ai-DhYGgq4Y.mjs";
6
6
  import { join } from "node:path";
7
7
  import { CredentialProvider } from "@deepseek-ai/dsh-credentials";
8
8
  //#region src/credentials-oauth.ts
@@ -0,0 +1,32 @@
1
+
2
+ //#region node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js
3
+ const identityToolName = (name) => name;
4
+ /** Split current tools into prefix and transcript-loaded definitions. */
5
+ function splitDeferredTools(context, enabled, normalizeName = identityToolName) {
6
+ const uniqueTools = /* @__PURE__ */ new Map();
7
+ for (const tool of context.tools ?? []) uniqueTools.set(normalizeName(tool.name), tool);
8
+ if (!enabled) return {
9
+ immediate: [...uniqueTools.values()],
10
+ deferred: /* @__PURE__ */ new Map()
11
+ };
12
+ const deferredNames = /* @__PURE__ */ new Set();
13
+ const usedNames = /* @__PURE__ */ new Set();
14
+ for (const message of context.messages) if (message.role === "assistant") {
15
+ for (const block of message.content) if (block.type === "toolCall") usedNames.add(normalizeName(block.name));
16
+ } else if (message.role === "toolResult") for (const name of message.addedToolNames ?? []) {
17
+ const normalizedName = normalizeName(name);
18
+ if (!usedNames.has(normalizedName)) deferredNames.add(normalizedName);
19
+ }
20
+ const immediate = [];
21
+ const deferred = /* @__PURE__ */ new Map();
22
+ for (const [name, tool] of uniqueTools) if (deferredNames.has(name)) deferred.set(name, tool);
23
+ else immediate.push(tool);
24
+ return {
25
+ immediate,
26
+ deferred
27
+ };
28
+ }
29
+ //#endregion
30
+ export { splitDeferredTools as t };
31
+
32
+ //# sourceMappingURL=deferred-tools-BD4g5QUx.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deferred-tools-BD4g5QUx.mjs","names":[],"sources":["../node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js"],"sourcesContent":["const identityToolName = (name) => name;\n/** Split current tools into prefix and transcript-loaded definitions. */\nexport function splitDeferredTools(context, enabled, normalizeName = identityToolName) {\n const uniqueTools = new Map();\n for (const tool of context.tools ?? [])\n uniqueTools.set(normalizeName(tool.name), tool);\n if (!enabled)\n return { immediate: [...uniqueTools.values()], deferred: new Map() };\n const deferredNames = new Set();\n const usedNames = new Set();\n for (const message of context.messages) {\n if (message.role === \"assistant\") {\n for (const block of message.content) {\n if (block.type === \"toolCall\")\n usedNames.add(normalizeName(block.name));\n }\n }\n else if (message.role === \"toolResult\") {\n for (const name of message.addedToolNames ?? []) {\n const normalizedName = normalizeName(name);\n if (!usedNames.has(normalizedName))\n deferredNames.add(normalizedName);\n }\n }\n }\n const immediate = [];\n const deferred = new Map();\n for (const [name, tool] of uniqueTools) {\n if (deferredNames.has(name))\n deferred.set(name, tool);\n else\n immediate.push(tool);\n }\n return { immediate, deferred };\n}\n//# sourceMappingURL=deferred-tools.js.map"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAM,oBAAoB,SAAS;;AAEnC,SAAgB,mBAAmB,SAAS,SAAS,gBAAgB,kBAAkB;CACnF,MAAM,8BAAc,IAAI,IAAI;CAC5B,KAAK,MAAM,QAAQ,QAAQ,SAAS,CAAC,GACjC,YAAY,IAAI,cAAc,KAAK,IAAI,GAAG,IAAI;CAClD,IAAI,CAAC,SACD,OAAO;EAAE,WAAW,CAAC,GAAG,YAAY,OAAO,CAAC;EAAG,0BAAU,IAAI,IAAI;CAAE;CACvE,MAAM,gCAAgB,IAAI,IAAI;CAC9B,MAAM,4BAAY,IAAI,IAAI;CAC1B,KAAK,MAAM,WAAW,QAAQ,UAC1B,IAAI,QAAQ,SAAS,aACZ;OAAA,MAAM,SAAS,QAAQ,SACxB,IAAI,MAAM,SAAS,YACf,UAAU,IAAI,cAAc,MAAM,IAAI,CAAC;CAAA,OAG9C,IAAI,QAAQ,SAAS,cACtB,KAAK,MAAM,QAAQ,QAAQ,kBAAkB,CAAC,GAAG;EAC7C,MAAM,iBAAiB,cAAc,IAAI;EACzC,IAAI,CAAC,UAAU,IAAI,cAAc,GAC7B,cAAc,IAAI,cAAc;CACxC;CAGR,MAAM,YAAY,CAAC;CACnB,MAAM,2BAAW,IAAI,IAAI;CACzB,KAAK,MAAM,CAAC,MAAM,SAAS,aACvB,IAAI,cAAc,IAAI,IAAI,GACtB,SAAS,IAAI,MAAM,IAAI;MAEvB,UAAU,KAAK,IAAI;CAE3B,OAAO;EAAE;EAAW;CAAS;AACjC"}
@@ -0,0 +1,99 @@
1
+
2
+ //#region node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js
3
+ var EventStream = class {
4
+ queue = [];
5
+ waiting = [];
6
+ done = false;
7
+ finalResultPromise;
8
+ resolveFinalResult;
9
+ isComplete;
10
+ extractResult;
11
+ constructor(isComplete, extractResult) {
12
+ this.isComplete = isComplete;
13
+ this.extractResult = extractResult;
14
+ this.finalResultPromise = new Promise((resolve) => {
15
+ this.resolveFinalResult = resolve;
16
+ });
17
+ }
18
+ push(event) {
19
+ if (this.done) return;
20
+ if (this.isComplete(event)) {
21
+ this.done = true;
22
+ this.resolveFinalResult(this.extractResult(event));
23
+ }
24
+ const waiter = this.waiting.shift();
25
+ if (waiter) waiter({
26
+ value: event,
27
+ done: false
28
+ });
29
+ else this.queue.push(event);
30
+ }
31
+ end(result) {
32
+ this.done = true;
33
+ if (result !== void 0) this.resolveFinalResult(result);
34
+ while (this.waiting.length > 0) this.waiting.shift()({
35
+ value: void 0,
36
+ done: true
37
+ });
38
+ }
39
+ async *[Symbol.asyncIterator]() {
40
+ while (true) if (this.queue.length > 0) yield this.queue.shift();
41
+ else if (this.done) return;
42
+ else {
43
+ const result = await new Promise((resolve) => this.waiting.push(resolve));
44
+ if (result.done) return;
45
+ yield result.value;
46
+ }
47
+ }
48
+ result() {
49
+ return this.finalResultPromise;
50
+ }
51
+ };
52
+ var AssistantMessageEventStream = class extends EventStream {
53
+ constructor() {
54
+ super((event) => event.type === "done" || event.type === "error", (event) => {
55
+ if (event.type === "done") return event.message;
56
+ else if (event.type === "error") return event.error;
57
+ throw new Error("Unexpected event type for final result");
58
+ });
59
+ }
60
+ };
61
+ /** Factory function for AssistantMessageEventStream (for use in extensions) */
62
+ function createAssistantMessageEventStream() {
63
+ return new AssistantMessageEventStream();
64
+ }
65
+ //#endregion
66
+ //#region node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js
67
+ function formatThrownValue(value) {
68
+ if (value instanceof Error) return value.message || value.name;
69
+ if (typeof value === "string") return value;
70
+ return String(value);
71
+ }
72
+ function extractDiagnosticError(error) {
73
+ if (!(error instanceof Error)) return {
74
+ name: "ThrownValue",
75
+ message: formatThrownValue(error)
76
+ };
77
+ const code = error.code;
78
+ return {
79
+ name: error.name || void 0,
80
+ message: error.message || error.name,
81
+ stack: error.stack,
82
+ code: typeof code === "string" || typeof code === "number" ? code : void 0
83
+ };
84
+ }
85
+ function createAssistantMessageDiagnostic(type, error, details) {
86
+ return {
87
+ type,
88
+ timestamp: Date.now(),
89
+ error: extractDiagnosticError(error),
90
+ details
91
+ };
92
+ }
93
+ function appendAssistantMessageDiagnostic(message, diagnostic) {
94
+ message.diagnostics = [...message.diagnostics ?? [], diagnostic];
95
+ }
96
+ //#endregion
97
+ export { AssistantMessageEventStream as a, formatThrownValue as i, createAssistantMessageDiagnostic as n, EventStream as o, extractDiagnosticError as r, createAssistantMessageEventStream as s, appendAssistantMessageDiagnostic as t };
98
+
99
+ //# sourceMappingURL=diagnostics-CJye1UFh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostics-CJye1UFh.mjs","names":[],"sources":["../node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js","../node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/diagnostics.js"],"sourcesContent":["// Generic event stream class for async iteration\nexport class EventStream {\n queue = [];\n waiting = [];\n done = false;\n finalResultPromise;\n resolveFinalResult;\n isComplete;\n extractResult;\n constructor(isComplete, extractResult) {\n this.isComplete = isComplete;\n this.extractResult = extractResult;\n this.finalResultPromise = new Promise((resolve) => {\n this.resolveFinalResult = resolve;\n });\n }\n push(event) {\n if (this.done)\n return;\n if (this.isComplete(event)) {\n this.done = true;\n this.resolveFinalResult(this.extractResult(event));\n }\n // Deliver to waiting consumer or queue it\n const waiter = this.waiting.shift();\n if (waiter) {\n waiter({ value: event, done: false });\n }\n else {\n this.queue.push(event);\n }\n }\n end(result) {\n this.done = true;\n if (result !== undefined) {\n this.resolveFinalResult(result);\n }\n // Notify all waiting consumers that we're done\n while (this.waiting.length > 0) {\n const waiter = this.waiting.shift();\n waiter({ value: undefined, done: true });\n }\n }\n async *[Symbol.asyncIterator]() {\n while (true) {\n if (this.queue.length > 0) {\n yield this.queue.shift();\n }\n else if (this.done) {\n return;\n }\n else {\n const result = await new Promise((resolve) => this.waiting.push(resolve));\n if (result.done)\n return;\n yield result.value;\n }\n }\n }\n result() {\n return this.finalResultPromise;\n }\n}\nexport class AssistantMessageEventStream extends EventStream {\n constructor() {\n super((event) => event.type === \"done\" || event.type === \"error\", (event) => {\n if (event.type === \"done\") {\n return event.message;\n }\n else if (event.type === \"error\") {\n return event.error;\n }\n throw new Error(\"Unexpected event type for final result\");\n });\n }\n}\n/** Factory function for AssistantMessageEventStream (for use in extensions) */\nexport function createAssistantMessageEventStream() {\n return new AssistantMessageEventStream();\n}\n//# sourceMappingURL=event-stream.js.map","export function formatThrownValue(value) {\n if (value instanceof Error)\n return value.message || value.name;\n if (typeof value === \"string\")\n return value;\n return String(value);\n}\nexport function extractDiagnosticError(error) {\n if (!(error instanceof Error))\n return { name: \"ThrownValue\", message: formatThrownValue(error) };\n const code = error.code;\n return {\n name: error.name || undefined,\n message: error.message || error.name,\n stack: error.stack,\n code: typeof code === \"string\" || typeof code === \"number\" ? code : undefined,\n };\n}\nexport function createAssistantMessageDiagnostic(type, error, details) {\n return { type, timestamp: Date.now(), error: extractDiagnosticError(error), details };\n}\nexport function appendAssistantMessageDiagnostic(message, diagnostic) {\n message.diagnostics = [...(message.diagnostics ?? []), diagnostic];\n}\n//# sourceMappingURL=diagnostics.js.map"],"x_google_ignoreList":[0,1],"mappings":";;AACA,IAAa,cAAb,MAAyB;CACrB,QAAQ,CAAC;CACT,UAAU,CAAC;CACX,OAAO;CACP;CACA;CACA;CACA;CACA,YAAY,YAAY,eAAe;EACnC,KAAK,aAAa;EAClB,KAAK,gBAAgB;EACrB,KAAK,qBAAqB,IAAI,SAAS,YAAY;GAC/C,KAAK,qBAAqB;EAC9B,CAAC;CACL;CACA,KAAK,OAAO;EACR,IAAI,KAAK,MACL;EACJ,IAAI,KAAK,WAAW,KAAK,GAAG;GACxB,KAAK,OAAO;GACZ,KAAK,mBAAmB,KAAK,cAAc,KAAK,CAAC;EACrD;EAEA,MAAM,SAAS,KAAK,QAAQ,MAAM;EAClC,IAAI,QACA,OAAO;GAAE,OAAO;GAAO,MAAM;EAAM,CAAC;OAGpC,KAAK,MAAM,KAAK,KAAK;CAE7B;CACA,IAAI,QAAQ;EACR,KAAK,OAAO;EACZ,IAAI,WAAW,KAAA,GACX,KAAK,mBAAmB,MAAM;EAGlC,OAAO,KAAK,QAAQ,SAAS,GAEzB,KADoB,QAAQ,MACvB,CAAC,CAAC;GAAE,OAAO,KAAA;GAAW,MAAM;EAAK,CAAC;CAE/C;CACA,QAAQ,OAAO,iBAAiB;EAC5B,OAAO,MACH,IAAI,KAAK,MAAM,SAAS,GACpB,MAAM,KAAK,MAAM,MAAM;OAEtB,IAAI,KAAK,MACV;OAEC;GACD,MAAM,SAAS,MAAM,IAAI,SAAS,YAAY,KAAK,QAAQ,KAAK,OAAO,CAAC;GACxE,IAAI,OAAO,MACP;GACJ,MAAM,OAAO;EACjB;CAER;CACA,SAAS;EACL,OAAO,KAAK;CAChB;AACJ;AACA,IAAa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