@ashx-j/lunr 0.2.9 → 0.2.10

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 (108) hide show
  1. package/dist/builtin-extensions/ashxj-spinners.d.ts +1 -4
  2. package/dist/builtin-extensions/ashxj-spinners.d.ts.map +1 -1
  3. package/dist/builtin-extensions/ashxj-spinners.js +3 -29
  4. package/dist/builtin-extensions/ashxj-spinners.js.map +1 -1
  5. package/dist/builtin-extensions/ashxj-tui.d.ts.map +1 -1
  6. package/dist/builtin-extensions/ashxj-tui.js +5 -4
  7. package/dist/builtin-extensions/ashxj-tui.js.map +1 -1
  8. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
  9. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +2 -2
  10. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
  11. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +1 -1
  12. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
  13. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +1 -1
  14. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
  15. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
  16. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +5 -1
  17. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
  18. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +2 -2
  19. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
  20. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js +2 -2
  21. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
  22. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +2 -2
  23. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
  24. package/dist/builtin-extensions/pi-subagents/src/shared/types.js +2 -2
  25. package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
  26. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +4 -6
  27. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
  28. package/dist/builtin-extensions/pi-subagents/src/tui/render.js +26 -18
  29. package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
  30. package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
  31. package/dist/builtin-extensions/pi-web-access/index.js +3 -1
  32. package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
  33. package/dist/catalog/models.json +1 -1
  34. package/dist/catalog/providers/nvidia.json +1 -1
  35. package/dist/catalog/providers/opencode-go.json +1 -1
  36. package/dist/catalog/providers/opencode.json +1 -1
  37. package/dist/catalog/providers/openrouter.json +1 -1
  38. package/dist/catalog/providers/qwen-cloud-cn.json +1 -1
  39. package/dist/catalog/providers/vercel-ai-gateway.json +1 -1
  40. package/dist/catalog/providers/xai.json +1 -1
  41. package/dist/catalog/publication.json +3 -3
  42. package/dist/core/agent-session.d.ts +2 -0
  43. package/dist/core/agent-session.d.ts.map +1 -1
  44. package/dist/core/agent-session.js +9 -1
  45. package/dist/core/agent-session.js.map +1 -1
  46. package/dist/core/customize.d.ts +1 -0
  47. package/dist/core/customize.d.ts.map +1 -1
  48. package/dist/core/customize.js +3 -0
  49. package/dist/core/customize.js.map +1 -1
  50. package/dist/core/settings-manager.d.ts +3 -0
  51. package/dist/core/settings-manager.d.ts.map +1 -1
  52. package/dist/core/settings-manager.js +8 -0
  53. package/dist/core/settings-manager.js.map +1 -1
  54. package/dist/core/tools/bash.d.ts.map +1 -1
  55. package/dist/core/tools/bash.js +2 -1
  56. package/dist/core/tools/bash.js.map +1 -1
  57. package/dist/core/tools/edit.d.ts.map +1 -1
  58. package/dist/core/tools/edit.js +9 -6
  59. package/dist/core/tools/edit.js.map +1 -1
  60. package/dist/core/tools/find.d.ts.map +1 -1
  61. package/dist/core/tools/find.js +2 -1
  62. package/dist/core/tools/find.js.map +1 -1
  63. package/dist/core/tools/grep.d.ts.map +1 -1
  64. package/dist/core/tools/grep.js +2 -1
  65. package/dist/core/tools/grep.js.map +1 -1
  66. package/dist/core/tools/ls.d.ts.map +1 -1
  67. package/dist/core/tools/ls.js +2 -1
  68. package/dist/core/tools/ls.js.map +1 -1
  69. package/dist/core/tools/read.d.ts.map +1 -1
  70. package/dist/core/tools/read.js +2 -1
  71. package/dist/core/tools/read.js.map +1 -1
  72. package/dist/core/tools/render-utils.d.ts +13 -3
  73. package/dist/core/tools/render-utils.d.ts.map +1 -1
  74. package/dist/core/tools/render-utils.js +10 -2
  75. package/dist/core/tools/render-utils.js.map +1 -1
  76. package/dist/core/tools/write.d.ts.map +1 -1
  77. package/dist/core/tools/write.js +5 -3
  78. package/dist/core/tools/write.js.map +1 -1
  79. package/dist/gateway/agent-bridge.d.ts +1 -0
  80. package/dist/gateway/agent-bridge.d.ts.map +1 -1
  81. package/dist/gateway/agent-bridge.js.map +1 -1
  82. package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
  83. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  84. package/dist/modes/interactive/components/settings-selector.js +11 -1
  85. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  86. package/dist/modes/interactive/components/thinking-tail.d.ts +1 -0
  87. package/dist/modes/interactive/components/thinking-tail.d.ts.map +1 -1
  88. package/dist/modes/interactive/components/thinking-tail.js +2 -6
  89. package/dist/modes/interactive/components/thinking-tail.js.map +1 -1
  90. package/dist/modes/interactive/components/tool-execution.d.ts +6 -0
  91. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  92. package/dist/modes/interactive/components/tool-execution.js +75 -16
  93. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  94. package/dist/modes/interactive/interactive-mode.d.ts +15 -1
  95. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  96. package/dist/modes/interactive/interactive-mode.js +139 -34
  97. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  98. package/docs/terminal-setup.md +2 -2
  99. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  100. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  101. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  102. package/examples/extensions/gondolin/package-lock.json +2 -2
  103. package/examples/extensions/gondolin/package.json +1 -1
  104. package/examples/extensions/sandbox/package-lock.json +2 -2
  105. package/examples/extensions/sandbox/package.json +1 -1
  106. package/examples/extensions/with-deps/package-lock.json +2 -2
  107. package/examples/extensions/with-deps/package.json +1 -1
  108. package/package.json +4 -4
@@ -2594,10 +2594,12 @@ export class AgentSession {
2594
2594
  // Determine the new leaf position based on target type
2595
2595
  let newLeafId;
2596
2596
  let editorText;
2597
+ let editorImages;
2597
2598
  if (targetEntry.type === "message" && targetEntry.message.role === "user") {
2598
2599
  // User message: leaf = parent (null if root), text goes to editor
2599
2600
  newLeafId = targetEntry.parentId;
2600
2601
  editorText = this._extractUserMessageText(targetEntry.message.content);
2602
+ editorImages = this._extractUserMessageImages(targetEntry.message.content);
2601
2603
  }
2602
2604
  else if (targetEntry.type === "custom_message") {
2603
2605
  // Custom message: leaf = parent (null if root), text goes to editor
@@ -2650,7 +2652,7 @@ export class AgentSession {
2650
2652
  fromExtension: summaryText ? fromExtension : undefined,
2651
2653
  });
2652
2654
  // Emit to custom tools
2653
- return { editorText, cancelled: false, summaryEntry };
2655
+ return { editorText, editorImages, cancelled: false, summaryEntry };
2654
2656
  }
2655
2657
  finally {
2656
2658
  this._branchSummaryAbortController = undefined;
@@ -2685,6 +2687,12 @@ export class AgentSession {
2685
2687
  }
2686
2688
  return "";
2687
2689
  }
2690
+ _extractUserMessageImages(content) {
2691
+ if (typeof content === "string" || !Array.isArray(content))
2692
+ return undefined;
2693
+ const images = content.filter((part) => part.type === "image" && typeof part.data === "string" && typeof part.mimeType === "string");
2694
+ return images.length > 0 ? images : undefined;
2695
+ }
2688
2696
  /**
2689
2697
  * Get session statistics. Aggregates over ALL session entries (including
2690
2698
  * history that was compacted away), so token/cost totals reflect what was