@vaclav-synacek/pi-coding-agent-termux 0.45.7 → 0.46.0-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.
Files changed (106) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/cli.js +1 -0
  4. package/dist/cli.js.map +1 -1
  5. package/dist/config.d.ts +2 -0
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +2 -0
  8. package/dist/config.js.map +1 -1
  9. package/dist/core/agent-session.d.ts.map +1 -1
  10. package/dist/core/agent-session.js +2 -2
  11. package/dist/core/agent-session.js.map +1 -1
  12. package/dist/core/compaction/compaction.d.ts.map +1 -1
  13. package/dist/core/compaction/compaction.js +6 -5
  14. package/dist/core/compaction/compaction.js.map +1 -1
  15. package/dist/core/keybindings.d.ts +1 -5
  16. package/dist/core/keybindings.d.ts.map +1 -1
  17. package/dist/core/keybindings.js +4 -12
  18. package/dist/core/keybindings.js.map +1 -1
  19. package/dist/core/model-resolver.d.ts.map +1 -1
  20. package/dist/core/model-resolver.js +1 -0
  21. package/dist/core/model-resolver.js.map +1 -1
  22. package/dist/core/tools/edit-diff.d.ts +30 -0
  23. package/dist/core/tools/edit-diff.d.ts.map +1 -1
  24. package/dist/core/tools/edit-diff.js +82 -10
  25. package/dist/core/tools/edit-diff.js.map +1 -1
  26. package/dist/core/tools/edit.d.ts.map +1 -1
  27. package/dist/core/tools/edit.js +16 -13
  28. package/dist/core/tools/edit.js.map +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/main.d.ts.map +1 -1
  34. package/dist/main.js +38 -9
  35. package/dist/main.js.map +1 -1
  36. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
  37. package/dist/modes/interactive/components/bash-execution.js +4 -3
  38. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  39. package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -1
  40. package/dist/modes/interactive/components/bordered-loader.js +2 -1
  41. package/dist/modes/interactive/components/bordered-loader.js.map +1 -1
  42. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
  43. package/dist/modes/interactive/components/branch-summary-message.js +4 -1
  44. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
  45. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
  46. package/dist/modes/interactive/components/compaction-summary-message.js +4 -1
  47. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
  48. package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -1
  49. package/dist/modes/interactive/components/custom-editor.js +3 -3
  50. package/dist/modes/interactive/components/custom-editor.js.map +1 -1
  51. package/dist/modes/interactive/components/extension-editor.d.ts +3 -1
  52. package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -1
  53. package/dist/modes/interactive/components/extension-editor.js +14 -8
  54. package/dist/modes/interactive/components/extension-editor.js.map +1 -1
  55. package/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
  56. package/dist/modes/interactive/components/extension-input.js +2 -1
  57. package/dist/modes/interactive/components/extension-input.js.map +1 -1
  58. package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -1
  59. package/dist/modes/interactive/components/extension-selector.js +6 -1
  60. package/dist/modes/interactive/components/extension-selector.js.map +1 -1
  61. package/dist/modes/interactive/components/index.d.ts +1 -0
  62. package/dist/modes/interactive/components/index.d.ts.map +1 -1
  63. package/dist/modes/interactive/components/index.js +1 -0
  64. package/dist/modes/interactive/components/index.js.map +1 -1
  65. package/dist/modes/interactive/components/keybinding-hints.d.ts +41 -0
  66. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
  67. package/dist/modes/interactive/components/keybinding-hints.js +61 -0
  68. package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
  69. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
  70. package/dist/modes/interactive/components/login-dialog.js +4 -3
  71. package/dist/modes/interactive/components/login-dialog.js.map +1 -1
  72. package/dist/modes/interactive/components/session-selector-search.d.ts +21 -0
  73. package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
  74. package/dist/modes/interactive/components/session-selector-search.js +146 -0
  75. package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
  76. package/dist/modes/interactive/components/session-selector.d.ts +7 -1
  77. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  78. package/dist/modes/interactive/components/session-selector.js +35 -8
  79. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  80. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  81. package/dist/modes/interactive/components/tool-execution.js +14 -8
  82. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  83. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
  84. package/dist/modes/interactive/components/tree-selector.js +5 -2
  85. package/dist/modes/interactive/components/tree-selector.js.map +1 -1
  86. package/dist/modes/interactive/interactive-mode.d.ts +4 -4
  87. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  88. package/dist/modes/interactive/interactive-mode.js +58 -95
  89. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  90. package/dist/utils/image-convert.d.ts.map +1 -1
  91. package/dist/utils/image-convert.js +12 -14
  92. package/dist/utils/image-convert.js.map +1 -1
  93. package/dist/utils/image-resize.d.ts +2 -2
  94. package/dist/utils/image-resize.d.ts.map +1 -1
  95. package/dist/utils/image-resize.js +102 -122
  96. package/dist/utils/image-resize.js.map +1 -1
  97. package/examples/extensions/plan-mode/README.md +1 -1
  98. package/examples/extensions/plan-mode/index.ts +2 -2
  99. package/examples/extensions/with-deps/package-lock.json +2 -2
  100. package/examples/extensions/with-deps/package.json +1 -1
  101. package/package.json +5 -5
  102. package/README.md +0 -1392
  103. package/dist/utils/vips.d.ts +0 -11
  104. package/dist/utils/vips.d.ts.map +0 -1
  105. package/dist/utils/vips.js +0 -35
  106. package/dist/utils/vips.js.map +0 -1
@@ -1,11 +0,0 @@
1
- /**
2
- * Singleton wrapper for wasm-vips initialization.
3
- * wasm-vips requires async initialization, so we cache the instance.
4
- */
5
- import type Vips from "wasm-vips";
6
- /**
7
- * Get the initialized wasm-vips instance.
8
- * Returns null if wasm-vips is not available or fails to initialize.
9
- */
10
- export declare function getVips(): Promise<Awaited<ReturnType<typeof Vips>> | null>;
11
- //# sourceMappingURL=vips.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vips.d.ts","sourceRoot":"","sources":["../../src/utils/vips.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAKlC;;;GAGG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAyBhF","sourcesContent":["/**\n * Singleton wrapper for wasm-vips initialization.\n * wasm-vips requires async initialization, so we cache the instance.\n */\n\nimport type Vips from \"wasm-vips\";\n\nlet vipsInstance: Awaited<ReturnType<typeof Vips>> | null = null;\nlet vipsInitPromise: Promise<Awaited<ReturnType<typeof Vips>> | null> | null = null;\n\n/**\n * Get the initialized wasm-vips instance.\n * Returns null if wasm-vips is not available or fails to initialize.\n */\nexport async function getVips(): Promise<Awaited<ReturnType<typeof Vips>> | null> {\n\tif (vipsInstance) {\n\t\treturn vipsInstance;\n\t}\n\n\tif (vipsInitPromise) {\n\t\treturn vipsInitPromise;\n\t}\n\n\tvipsInitPromise = (async () => {\n\t\ttry {\n\t\t\tconst VipsInit = (await import(\"wasm-vips\")).default;\n\t\t\tvipsInstance = await VipsInit();\n\t\t\treturn vipsInstance;\n\t\t} catch {\n\t\t\t// wasm-vips not available\n\t\t\treturn null;\n\t\t}\n\t})();\n\n\tconst result = await vipsInitPromise;\n\tif (!result) {\n\t\tvipsInitPromise = null; // Allow retry on failure\n\t}\n\treturn result;\n}\n"]}
@@ -1,35 +0,0 @@
1
- /**
2
- * Singleton wrapper for wasm-vips initialization.
3
- * wasm-vips requires async initialization, so we cache the instance.
4
- */
5
- let vipsInstance = null;
6
- let vipsInitPromise = null;
7
- /**
8
- * Get the initialized wasm-vips instance.
9
- * Returns null if wasm-vips is not available or fails to initialize.
10
- */
11
- export async function getVips() {
12
- if (vipsInstance) {
13
- return vipsInstance;
14
- }
15
- if (vipsInitPromise) {
16
- return vipsInitPromise;
17
- }
18
- vipsInitPromise = (async () => {
19
- try {
20
- const VipsInit = (await import("wasm-vips")).default;
21
- vipsInstance = await VipsInit();
22
- return vipsInstance;
23
- }
24
- catch {
25
- // wasm-vips not available
26
- return null;
27
- }
28
- })();
29
- const result = await vipsInitPromise;
30
- if (!result) {
31
- vipsInitPromise = null; // Allow retry on failure
32
- }
33
- return result;
34
- }
35
- //# sourceMappingURL=vips.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vips.js","sourceRoot":"","sources":["../../src/utils/vips.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,IAAI,YAAY,GAA4C,IAAI,CAAC;AACjE,IAAI,eAAe,GAA4D,IAAI,CAAC;AAEpF;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,GAAqD;IACjF,IAAI,YAAY,EAAE,CAAC;QAClB,OAAO,YAAY,CAAC;IACrB,CAAC;IAED,IAAI,eAAe,EAAE,CAAC;QACrB,OAAO,eAAe,CAAC;IACxB,CAAC;IAED,eAAe,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;QAC9B,IAAI,CAAC;YACJ,MAAM,QAAQ,GAAG,CAAC,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC;YACrD,YAAY,GAAG,MAAM,QAAQ,EAAE,CAAC;YAChC,OAAO,YAAY,CAAC;QACrB,CAAC;QAAC,MAAM,CAAC;YACR,0BAA0B;YAC1B,OAAO,IAAI,CAAC;QACb,CAAC;IAAA,CACD,CAAC,EAAE,CAAC;IAEL,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC;IACrC,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,eAAe,GAAG,IAAI,CAAC,CAAC,yBAAyB;IAClD,CAAC;IACD,OAAO,MAAM,CAAC;AAAA,CACd","sourcesContent":["/**\n * Singleton wrapper for wasm-vips initialization.\n * wasm-vips requires async initialization, so we cache the instance.\n */\n\nimport type Vips from \"wasm-vips\";\n\nlet vipsInstance: Awaited<ReturnType<typeof Vips>> | null = null;\nlet vipsInitPromise: Promise<Awaited<ReturnType<typeof Vips>> | null> | null = null;\n\n/**\n * Get the initialized wasm-vips instance.\n * Returns null if wasm-vips is not available or fails to initialize.\n */\nexport async function getVips(): Promise<Awaited<ReturnType<typeof Vips>> | null> {\n\tif (vipsInstance) {\n\t\treturn vipsInstance;\n\t}\n\n\tif (vipsInitPromise) {\n\t\treturn vipsInitPromise;\n\t}\n\n\tvipsInitPromise = (async () => {\n\t\ttry {\n\t\t\tconst VipsInit = (await import(\"wasm-vips\")).default;\n\t\t\tvipsInstance = await VipsInit();\n\t\t\treturn vipsInstance;\n\t\t} catch {\n\t\t\t// wasm-vips not available\n\t\t\treturn null;\n\t\t}\n\t})();\n\n\tconst result = await vipsInitPromise;\n\tif (!result) {\n\t\tvipsInitPromise = null; // Allow retry on failure\n\t}\n\treturn result;\n}\n"]}