onbuzz 3.3.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/LICENSE +267 -0
- package/README.md +425 -0
- package/bin/cli.js +556 -0
- package/bin/loxia-terminal-v2.js +162 -0
- package/bin/loxia-terminal.js +90 -0
- package/bin/start-with-terminal.js +200 -0
- package/node_modules/@isaacs/balanced-match/LICENSE.md +23 -0
- package/node_modules/@isaacs/balanced-match/README.md +60 -0
- package/node_modules/@isaacs/balanced-match/dist/commonjs/index.d.ts +9 -0
- package/node_modules/@isaacs/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/@isaacs/balanced-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts +9 -0
- package/node_modules/@isaacs/balanced-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/@isaacs/balanced-match/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/balanced-match/package.json +79 -0
- package/node_modules/@isaacs/brace-expansion/LICENSE +23 -0
- package/node_modules/@isaacs/brace-expansion/README.md +97 -0
- package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts +6 -0
- package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js +199 -0
- package/node_modules/@isaacs/brace-expansion/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts +6 -0
- package/node_modules/@isaacs/brace-expansion/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/brace-expansion/dist/esm/index.js +195 -0
- package/node_modules/@isaacs/brace-expansion/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/brace-expansion/package.json +60 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1177 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/node_modules/glob/dist/esm/glob.d.ts +388 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/glob.js +243 -0
- package/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.js.map +1 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/index.min.js.map +7 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts +76 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/pattern.js +215 -0
- package/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/glob/node_modules/minimatch/README.md +453 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js +591 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/index.js +1029 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/glob/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/ast.js +587 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/index.d.ts +94 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/index.js +1016 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/glob/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/node_modules/glob/node_modules/minimatch/package.json +67 -0
- package/node_modules/glob/package.json +101 -0
- package/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +82 -0
- package/node_modules/package-json-from-dist/LICENSE.md +63 -0
- package/node_modules/package-json-from-dist/README.md +110 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +89 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
- package/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts +89 -0
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
- package/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/node_modules/package-json-from-dist/package.json +68 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/path-scurry/node_modules/lru-cache/README.md +383 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts +1323 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1589 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts +1323 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1585 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +101 -0
- package/node_modules/path-scurry/package.json +88 -0
- package/node_modules/rimraf/LICENSE.md +55 -0
- package/node_modules/rimraf/README.md +226 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.js +58 -0
- package/node_modules/rimraf/dist/commonjs/default-tmp.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/error.d.ts +6 -0
- package/node_modules/rimraf/dist/commonjs/error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/error.js +10 -0
- package/node_modules/rimraf/dist/commonjs/error.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js +38 -0
- package/node_modules/rimraf/dist/commonjs/fix-eperm.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fs.d.ts +15 -0
- package/node_modules/rimraf/dist/commonjs/fs.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/fs.js +33 -0
- package/node_modules/rimraf/dist/commonjs/fs.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js +24 -0
- package/node_modules/rimraf/dist/commonjs/ignore-enoent.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/index.d.ts +50 -0
- package/node_modules/rimraf/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/index.js +78 -0
- package/node_modules/rimraf/dist/commonjs/index.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts +34 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.js +53 -0
- package/node_modules/rimraf/dist/commonjs/opt-arg.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/package.json +3 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.js +48 -0
- package/node_modules/rimraf/dist/commonjs/path-arg.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js +19 -0
- package/node_modules/rimraf/dist/commonjs/readdir-or-error.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts +8 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.js +65 -0
- package/node_modules/rimraf/dist/commonjs/retry-busy.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts +3 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js +8 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-manual.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js +138 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-move-remove.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js +24 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-native.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js +103 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-posix.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js +159 -0
- package/node_modules/rimraf/dist/commonjs/rimraf-windows.js.map +1 -0
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts +4 -0
- package/node_modules/rimraf/dist/commonjs/use-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/commonjs/use-native.js +18 -0
- package/node_modules/rimraf/dist/commonjs/use-native.js.map +1 -0
- package/node_modules/rimraf/dist/esm/bin.d.mts +3 -0
- package/node_modules/rimraf/dist/esm/bin.d.mts.map +1 -0
- package/node_modules/rimraf/dist/esm/bin.mjs +250 -0
- package/node_modules/rimraf/dist/esm/bin.mjs.map +1 -0
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/default-tmp.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/default-tmp.js +55 -0
- package/node_modules/rimraf/dist/esm/default-tmp.js.map +1 -0
- package/node_modules/rimraf/dist/esm/error.d.ts +6 -0
- package/node_modules/rimraf/dist/esm/error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/error.js +5 -0
- package/node_modules/rimraf/dist/esm/error.js.map +1 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.js +33 -0
- package/node_modules/rimraf/dist/esm/fix-eperm.js.map +1 -0
- package/node_modules/rimraf/dist/esm/fs.d.ts +15 -0
- package/node_modules/rimraf/dist/esm/fs.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/fs.js +18 -0
- package/node_modules/rimraf/dist/esm/fs.js.map +1 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.js +19 -0
- package/node_modules/rimraf/dist/esm/ignore-enoent.js.map +1 -0
- package/node_modules/rimraf/dist/esm/index.d.ts +50 -0
- package/node_modules/rimraf/dist/esm/index.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/index.js +70 -0
- package/node_modules/rimraf/dist/esm/index.js.map +1 -0
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts +34 -0
- package/node_modules/rimraf/dist/esm/opt-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/opt-arg.js +46 -0
- package/node_modules/rimraf/dist/esm/opt-arg.js.map +1 -0
- package/node_modules/rimraf/dist/esm/package.json +3 -0
- package/node_modules/rimraf/dist/esm/path-arg.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/path-arg.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/path-arg.js +46 -0
- package/node_modules/rimraf/dist/esm/path-arg.js.map +1 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.js +14 -0
- package/node_modules/rimraf/dist/esm/readdir-or-error.js.map +1 -0
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts +8 -0
- package/node_modules/rimraf/dist/esm/retry-busy.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/retry-busy.js +60 -0
- package/node_modules/rimraf/dist/esm/retry-busy.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts +3 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.js +5 -0
- package/node_modules/rimraf/dist/esm/rimraf-manual.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js +133 -0
- package/node_modules/rimraf/dist/esm/rimraf-move-remove.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.js +19 -0
- package/node_modules/rimraf/dist/esm/rimraf-native.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.js +98 -0
- package/node_modules/rimraf/dist/esm/rimraf-posix.js.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.js +154 -0
- package/node_modules/rimraf/dist/esm/rimraf-windows.js.map +1 -0
- package/node_modules/rimraf/dist/esm/use-native.d.ts +4 -0
- package/node_modules/rimraf/dist/esm/use-native.d.ts.map +1 -0
- package/node_modules/rimraf/dist/esm/use-native.js +15 -0
- package/node_modules/rimraf/dist/esm/use-native.js.map +1 -0
- package/node_modules/rimraf/package.json +92 -0
- package/package.json +152 -0
- package/scripts/install-scanners.js +258 -0
- package/scripts/watchdog.js +147 -0
- package/src/analyzers/CSSAnalyzer.js +297 -0
- package/src/analyzers/ConfigValidator.js +690 -0
- package/src/analyzers/ESLintAnalyzer.js +320 -0
- package/src/analyzers/JavaScriptAnalyzer.js +261 -0
- package/src/analyzers/PrettierFormatter.js +247 -0
- package/src/analyzers/PythonAnalyzer.js +283 -0
- package/src/analyzers/SecurityAnalyzer.js +729 -0
- package/src/analyzers/SparrowAnalyzer.js +341 -0
- package/src/analyzers/TypeScriptAnalyzer.js +247 -0
- package/src/analyzers/codeCloneDetector/analyzer.js +344 -0
- package/src/analyzers/codeCloneDetector/detector.js +250 -0
- package/src/analyzers/codeCloneDetector/index.js +192 -0
- package/src/analyzers/codeCloneDetector/parser.js +199 -0
- package/src/analyzers/codeCloneDetector/reporter.js +148 -0
- package/src/analyzers/codeCloneDetector/scanner.js +88 -0
- package/src/core/agentPool.js +1957 -0
- package/src/core/agentScheduler.js +3212 -0
- package/src/core/contextManager.js +709 -0
- package/src/core/flowExecutor.js +928 -0
- package/src/core/messageProcessor.js +808 -0
- package/src/core/orchestrator.js +584 -0
- package/src/core/stateManager.js +1500 -0
- package/src/index.js +972 -0
- package/src/interfaces/cli.js +553 -0
- package/src/interfaces/terminal/__tests__/smoke/advancedFeatures.test.js +208 -0
- package/src/interfaces/terminal/__tests__/smoke/agentControl.test.js +236 -0
- package/src/interfaces/terminal/__tests__/smoke/agents.test.js +138 -0
- package/src/interfaces/terminal/__tests__/smoke/components.test.js +137 -0
- package/src/interfaces/terminal/__tests__/smoke/connection.test.js +350 -0
- package/src/interfaces/terminal/__tests__/smoke/enhancements.test.js +156 -0
- package/src/interfaces/terminal/__tests__/smoke/imports.test.js +332 -0
- package/src/interfaces/terminal/__tests__/smoke/messages.test.js +256 -0
- package/src/interfaces/terminal/__tests__/smoke/tools.test.js +388 -0
- package/src/interfaces/terminal/api/apiClient.js +299 -0
- package/src/interfaces/terminal/api/messageRouter.js +262 -0
- package/src/interfaces/terminal/api/session.js +266 -0
- package/src/interfaces/terminal/api/websocket.js +497 -0
- package/src/interfaces/terminal/components/AgentCreator.js +705 -0
- package/src/interfaces/terminal/components/AgentEditor.js +678 -0
- package/src/interfaces/terminal/components/AgentSwitcher.js +330 -0
- package/src/interfaces/terminal/components/ErrorBoundary.js +92 -0
- package/src/interfaces/terminal/components/ErrorPanel.js +264 -0
- package/src/interfaces/terminal/components/Header.js +28 -0
- package/src/interfaces/terminal/components/HelpPanel.js +231 -0
- package/src/interfaces/terminal/components/InputBox.js +118 -0
- package/src/interfaces/terminal/components/Layout.js +603 -0
- package/src/interfaces/terminal/components/LoadingSpinner.js +71 -0
- package/src/interfaces/terminal/components/MessageList.js +281 -0
- package/src/interfaces/terminal/components/MultilineTextInput.js +251 -0
- package/src/interfaces/terminal/components/SearchPanel.js +265 -0
- package/src/interfaces/terminal/components/SettingsPanel.js +415 -0
- package/src/interfaces/terminal/components/StatusBar.js +65 -0
- package/src/interfaces/terminal/components/TextInput.js +127 -0
- package/src/interfaces/terminal/config/agentEditorConstants.js +227 -0
- package/src/interfaces/terminal/config/constants.js +393 -0
- package/src/interfaces/terminal/index.js +168 -0
- package/src/interfaces/terminal/state/useAgentControl.js +496 -0
- package/src/interfaces/terminal/state/useAgents.js +537 -0
- package/src/interfaces/terminal/state/useConnection.js +444 -0
- package/src/interfaces/terminal/state/useMessages.js +630 -0
- package/src/interfaces/terminal/state/useTools.js +554 -0
- package/src/interfaces/terminal/utils/debugLogger.js +44 -0
- package/src/interfaces/terminal/utils/settingsStorage.js +232 -0
- package/src/interfaces/terminal/utils/theme.js +85 -0
- package/src/interfaces/webServer.js +5457 -0
- package/src/modules/fileExplorer/controller.js +413 -0
- package/src/modules/fileExplorer/index.js +37 -0
- package/src/modules/fileExplorer/middleware.js +92 -0
- package/src/modules/fileExplorer/routes.js +158 -0
- package/src/modules/fileExplorer/types.js +44 -0
- package/src/services/agentActivityService.js +399 -0
- package/src/services/aiService.js +2618 -0
- package/src/services/apiKeyManager.js +334 -0
- package/src/services/benchmarkService.js +196 -0
- package/src/services/budgetService.js +565 -0
- package/src/services/contextInjectionService.js +268 -0
- package/src/services/conversationCompactionService.js +1103 -0
- package/src/services/credentialVault.js +685 -0
- package/src/services/errorHandler.js +810 -0
- package/src/services/fileAttachmentService.js +547 -0
- package/src/services/flowContextService.js +189 -0
- package/src/services/memoryService.js +521 -0
- package/src/services/modelRouterService.js +365 -0
- package/src/services/modelsService.js +323 -0
- package/src/services/ollamaService.js +452 -0
- package/src/services/portRegistry.js +336 -0
- package/src/services/portTracker.js +223 -0
- package/src/services/projectDetector.js +404 -0
- package/src/services/promptService.js +372 -0
- package/src/services/qualityInspector.js +796 -0
- package/src/services/scheduleService.js +725 -0
- package/src/services/serviceRegistry.js +386 -0
- package/src/services/skillsService.js +486 -0
- package/src/services/telegramService.js +920 -0
- package/src/services/tokenCountingService.js +316 -0
- package/src/services/visualEditorBridge.js +1033 -0
- package/src/services/visualEditorServer.js +1727 -0
- package/src/services/whatsappService.js +663 -0
- package/src/tools/__tests__/webTool.e2e.test.js +569 -0
- package/src/tools/__tests__/webTool.unit.test.js +195 -0
- package/src/tools/agentCommunicationTool.js +1343 -0
- package/src/tools/agentDelayTool.js +498 -0
- package/src/tools/asyncToolManager.js +604 -0
- package/src/tools/baseTool.js +887 -0
- package/src/tools/browserTool.js +897 -0
- package/src/tools/cloneDetectionTool.js +581 -0
- package/src/tools/codeMapTool.js +857 -0
- package/src/tools/dependencyResolverTool.js +1212 -0
- package/src/tools/docxTool.js +623 -0
- package/src/tools/excelTool.js +636 -0
- package/src/tools/fileContentReplaceTool.js +840 -0
- package/src/tools/fileTreeTool.js +833 -0
- package/src/tools/filesystemTool.js +1217 -0
- package/src/tools/helpTool.js +198 -0
- package/src/tools/imageTool.js +1034 -0
- package/src/tools/importAnalyzerTool.js +1056 -0
- package/src/tools/jobDoneTool.js +388 -0
- package/src/tools/memoryTool.js +554 -0
- package/src/tools/pdfTool.js +627 -0
- package/src/tools/seekTool.js +883 -0
- package/src/tools/skillsTool.js +276 -0
- package/src/tools/staticAnalysisTool.js +2146 -0
- package/src/tools/taskManagerTool.js +2836 -0
- package/src/tools/terminalTool.js +2486 -0
- package/src/tools/userPromptTool.js +474 -0
- package/src/tools/videoTool.js +1139 -0
- package/src/tools/visionTool.js +507 -0
- package/src/tools/visualEditorTool.js +1175 -0
- package/src/tools/webTool.js +3114 -0
- package/src/tools/whatsappTool.js +457 -0
- package/src/types/agent.js +519 -0
- package/src/types/contextReference.js +972 -0
- package/src/types/conversation.js +730 -0
- package/src/types/toolCommand.js +747 -0
- package/src/utilities/attachmentValidator.js +288 -0
- package/src/utilities/browserStealth.js +630 -0
- package/src/utilities/configManager.js +618 -0
- package/src/utilities/constants.js +870 -0
- package/src/utilities/directoryAccessManager.js +566 -0
- package/src/utilities/fileProcessor.js +307 -0
- package/src/utilities/humanBehavior.js +453 -0
- package/src/utilities/jsonRepair.js +242 -0
- package/src/utilities/logger.js +436 -0
- package/src/utilities/platformUtils.js +255 -0
- package/src/utilities/platformUtils.test.js +98 -0
- package/src/utilities/stealthConstants.js +377 -0
- package/src/utilities/structuredFileValidator.js +699 -0
- package/src/utilities/tagParser.js +878 -0
- package/src/utilities/toolConstants.js +415 -0
- package/src/utilities/userDataDir.js +300 -0
- package/web-ui/build/brands/autopilot/favicon.svg +1 -0
- package/web-ui/build/brands/autopilot/logo.webp +0 -0
- package/web-ui/build/brands/onbuzz/favicon.svg +1 -0
- package/web-ui/build/brands/onbuzz/logo-text.webp +0 -0
- package/web-ui/build/brands/onbuzz/logo.webp +0 -0
- package/web-ui/build/index.html +15 -0
- package/web-ui/build/logo.png +0 -0
- package/web-ui/build/logo2.png +0 -0
- package/web-ui/build/static/index-SmQFfvBs.js +746 -0
- package/web-ui/build/static/index-V2ySwjHp.css +1 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MessageList Component
|
|
3
|
+
* Displays chat messages with scrolling
|
|
4
|
+
* Supports compact mode for small terminals
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
8
|
+
import { Box, Text, useInput } from 'ink';
|
|
9
|
+
import { debugLog } from '../utils/debugLogger.js';
|
|
10
|
+
import { getTheme } from '../utils/theme.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Format timestamp for display
|
|
14
|
+
* @param {string|number|Date} timestamp - Timestamp to format
|
|
15
|
+
* @returns {string} Formatted timestamp string
|
|
16
|
+
*/
|
|
17
|
+
function formatTimestamp(timestamp) {
|
|
18
|
+
if (!timestamp) return '';
|
|
19
|
+
|
|
20
|
+
const date = new Date(timestamp);
|
|
21
|
+
if (isNaN(date.getTime())) return '';
|
|
22
|
+
|
|
23
|
+
const hours = date.getHours().toString().padStart(2, '0');
|
|
24
|
+
const minutes = date.getMinutes().toString().padStart(2, '0');
|
|
25
|
+
const seconds = date.getSeconds().toString().padStart(2, '0');
|
|
26
|
+
|
|
27
|
+
return `${hours}:${minutes}:${seconds}`;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function MessageList({
|
|
31
|
+
messages = [],
|
|
32
|
+
loading = false,
|
|
33
|
+
error = null,
|
|
34
|
+
onError,
|
|
35
|
+
compactMode = false,
|
|
36
|
+
currentAgent = null,
|
|
37
|
+
isConnected = false,
|
|
38
|
+
terminalHeight = 24,
|
|
39
|
+
terminalWidth = 80,
|
|
40
|
+
showTimestamps = true,
|
|
41
|
+
colorScheme = 'default',
|
|
42
|
+
}) {
|
|
43
|
+
// Get theme colors based on color scheme
|
|
44
|
+
const theme = getTheme(colorScheme);
|
|
45
|
+
|
|
46
|
+
// LINE-based scrolling (not message-based)
|
|
47
|
+
// scrollLineOffset = how many lines from the END to skip (0 = showing latest lines)
|
|
48
|
+
const [scrollLineOffset, setScrollLineOffset] = useState(0);
|
|
49
|
+
const prevMessagesLength = useRef(messages.length);
|
|
50
|
+
|
|
51
|
+
// Store terminal height to prevent recalculation
|
|
52
|
+
const [viewportHeight] = useState(terminalHeight);
|
|
53
|
+
|
|
54
|
+
// Don't display errors inline - they go to ErrorPanel via onError callback
|
|
55
|
+
// Use useEffect to avoid calling setState during render
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (error && onError) {
|
|
58
|
+
onError(error);
|
|
59
|
+
}
|
|
60
|
+
}, [error, onError]);
|
|
61
|
+
|
|
62
|
+
// Calculate available height for messages (ONCE on mount, stored in viewportHeight)
|
|
63
|
+
// Terminal layout: Header (3 rows) + MessageList + InputBox (3 rows) + StatusBar (1 row)
|
|
64
|
+
// In compact mode: MessageList (compact header 1 row) + InputBox (3 rows)
|
|
65
|
+
const headerHeight = compactMode ? 1 : 3; // Compact header or full header
|
|
66
|
+
const inputHeight = 3; // Input box with border
|
|
67
|
+
const statusBarHeight = compactMode ? 0 : 1; // Status bar (hidden in compact)
|
|
68
|
+
const borderPadding = 2; // Top and bottom borders + padding of MessageList box
|
|
69
|
+
|
|
70
|
+
const availableHeight = Math.max(
|
|
71
|
+
5, // Minimum 5 rows for messages
|
|
72
|
+
viewportHeight - headerHeight - inputHeight - statusBarHeight - borderPadding
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
// Account for scroll indicators and compact header
|
|
76
|
+
const reservedRows = (compactMode && currentAgent ? 1 : 0) +
|
|
77
|
+
(messages.length > 0 ? 2 : 0); // 2 for scroll indicators
|
|
78
|
+
|
|
79
|
+
const availableRowsForMessages = Math.max(4, availableHeight - reservedRows);
|
|
80
|
+
|
|
81
|
+
// Flatten all messages into individual line objects
|
|
82
|
+
// Each line knows which message it belongs to and what content to render
|
|
83
|
+
const allLines = [];
|
|
84
|
+
|
|
85
|
+
messages.forEach((msg, msgIndex) => {
|
|
86
|
+
// Header line (timestamp + role)
|
|
87
|
+
allLines.push({
|
|
88
|
+
type: 'header',
|
|
89
|
+
messageId: msg.id,
|
|
90
|
+
messageIndex: msgIndex,
|
|
91
|
+
role: msg.role,
|
|
92
|
+
timestamp: showTimestamps ? msg.timestamp : null,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
// Content lines (split by newline)
|
|
96
|
+
const content = msg.content || msg.text || '';
|
|
97
|
+
const contentLines = content.split('\n');
|
|
98
|
+
|
|
99
|
+
contentLines.forEach((line, lineIndex) => {
|
|
100
|
+
allLines.push({
|
|
101
|
+
type: 'content',
|
|
102
|
+
messageId: msg.id,
|
|
103
|
+
messageIndex: msgIndex,
|
|
104
|
+
content: line,
|
|
105
|
+
lineIndex,
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// Spacing line after each message
|
|
110
|
+
allLines.push({
|
|
111
|
+
type: 'spacing',
|
|
112
|
+
messageId: msg.id,
|
|
113
|
+
messageIndex: msgIndex,
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
const totalLines = allLines.length;
|
|
118
|
+
|
|
119
|
+
// Calculate visible line range based on scroll offset (from end)
|
|
120
|
+
const startLineIndex = Math.max(0, totalLines - availableRowsForMessages - scrollLineOffset);
|
|
121
|
+
const endLineIndex = Math.min(totalLines, startLineIndex + availableRowsForMessages);
|
|
122
|
+
|
|
123
|
+
// Get visible lines slice
|
|
124
|
+
const visibleLines = allLines.slice(startLineIndex, endLineIndex);
|
|
125
|
+
|
|
126
|
+
// Auto-scroll to bottom when new messages arrive
|
|
127
|
+
useEffect(() => {
|
|
128
|
+
if (messages.length > prevMessagesLength.current) {
|
|
129
|
+
// New message arrived - scroll to bottom
|
|
130
|
+
setScrollLineOffset(0);
|
|
131
|
+
debugLog('MessageList', `Auto-scrolled to bottom (new message)`);
|
|
132
|
+
}
|
|
133
|
+
prevMessagesLength.current = messages.length;
|
|
134
|
+
}, [messages.length]);
|
|
135
|
+
|
|
136
|
+
// Handle keyboard input for scrolling (line-based)
|
|
137
|
+
useInput((char, key) => {
|
|
138
|
+
const maxLineScroll = Math.max(0, totalLines - availableRowsForMessages);
|
|
139
|
+
const pageSize = Math.floor(availableRowsForMessages * 0.8); // 80% of viewport for page scroll
|
|
140
|
+
|
|
141
|
+
// Scroll UP (toward older messages) with PageUp or Ctrl+Up
|
|
142
|
+
if (key.pageUp || (key.upArrow && key.ctrl)) {
|
|
143
|
+
setScrollLineOffset(prev => {
|
|
144
|
+
const newOffset = Math.min(maxLineScroll, prev + pageSize);
|
|
145
|
+
debugLog('MessageList', `Scroll up (older), new line offset: ${newOffset}`);
|
|
146
|
+
return newOffset;
|
|
147
|
+
});
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Scroll DOWN (toward newer messages) with PageDown or Ctrl+Down
|
|
152
|
+
if (key.pageDown || (key.downArrow && key.ctrl)) {
|
|
153
|
+
setScrollLineOffset(prev => {
|
|
154
|
+
const newOffset = Math.max(0, prev - pageSize);
|
|
155
|
+
debugLog('MessageList', `Scroll down (newer), new line offset: ${newOffset}`);
|
|
156
|
+
return newOffset;
|
|
157
|
+
});
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// Jump to bottom (newest messages) with End
|
|
162
|
+
if (key.end) {
|
|
163
|
+
setScrollLineOffset(0);
|
|
164
|
+
debugLog('MessageList', 'Jump to bottom (newest)');
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Jump to top (oldest messages) with Home
|
|
169
|
+
if (key.home) {
|
|
170
|
+
setScrollLineOffset(maxLineScroll);
|
|
171
|
+
debugLog('MessageList', 'Jump to top (oldest)');
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
// Scroll indicators (line-based)
|
|
177
|
+
const hasOlderMessages = startLineIndex > 0;
|
|
178
|
+
const hasNewerMessages = scrollLineOffset > 0;
|
|
179
|
+
const olderLinesCount = startLineIndex;
|
|
180
|
+
const newerLinesCount = scrollLineOffset;
|
|
181
|
+
|
|
182
|
+
if (loading && messages.length === 0) {
|
|
183
|
+
return React.createElement(
|
|
184
|
+
Box,
|
|
185
|
+
{
|
|
186
|
+
height: availableHeight,
|
|
187
|
+
padding: 1,
|
|
188
|
+
borderStyle: 'round',
|
|
189
|
+
borderColor: theme.borderLoading,
|
|
190
|
+
flexDirection: 'column'
|
|
191
|
+
},
|
|
192
|
+
compactMode && currentAgent && React.createElement(
|
|
193
|
+
Box,
|
|
194
|
+
{ marginBottom: 1, justifyContent: 'space-between', flexDirection: 'row' },
|
|
195
|
+
React.createElement(Text, { bold: true, color: theme.secondary }, currentAgent.name),
|
|
196
|
+
React.createElement(Text, { color: isConnected ? theme.success : theme.error }, isConnected ? '● Connected' : '● Disconnected')
|
|
197
|
+
),
|
|
198
|
+
React.createElement(Text, { color: theme.warning }, 'Loading messages...')
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return React.createElement(
|
|
203
|
+
Box,
|
|
204
|
+
{
|
|
205
|
+
height: availableHeight,
|
|
206
|
+
padding: 1,
|
|
207
|
+
borderStyle: 'round',
|
|
208
|
+
borderColor: theme.border,
|
|
209
|
+
flexDirection: 'column'
|
|
210
|
+
},
|
|
211
|
+
// Show compact header in compact mode
|
|
212
|
+
compactMode && currentAgent && React.createElement(
|
|
213
|
+
Box,
|
|
214
|
+
{ marginBottom: 1, justifyContent: 'space-between', flexDirection: 'row' },
|
|
215
|
+
React.createElement(Text, { bold: true, color: theme.secondary }, currentAgent.name),
|
|
216
|
+
React.createElement(Text, { color: isConnected ? theme.success : theme.error }, isConnected ? '●' : '●')
|
|
217
|
+
),
|
|
218
|
+
|
|
219
|
+
// Scroll indicator - older messages above
|
|
220
|
+
hasOlderMessages && React.createElement(
|
|
221
|
+
Box,
|
|
222
|
+
{ marginBottom: 1 },
|
|
223
|
+
React.createElement(
|
|
224
|
+
Text,
|
|
225
|
+
{ color: theme.dim, italic: true },
|
|
226
|
+
`▲ ${olderLinesCount} more lines above (PgUp/Home to scroll)`
|
|
227
|
+
)
|
|
228
|
+
),
|
|
229
|
+
|
|
230
|
+
// Message list (line-based rendering)
|
|
231
|
+
messages.length === 0
|
|
232
|
+
? React.createElement(Text, { color: theme.dim }, 'No messages yet. Start chatting!')
|
|
233
|
+
: React.createElement(
|
|
234
|
+
Box,
|
|
235
|
+
{ flexDirection: 'column' },
|
|
236
|
+
visibleLines.map((line, idx) => {
|
|
237
|
+
if (line.type === 'header') {
|
|
238
|
+
// Render header line (timestamp + role)
|
|
239
|
+
return React.createElement(
|
|
240
|
+
Box,
|
|
241
|
+
{ key: `${line.messageId}-header`, flexDirection: 'row' },
|
|
242
|
+
line.timestamp && React.createElement(
|
|
243
|
+
Text,
|
|
244
|
+
{ color: theme.dim },
|
|
245
|
+
'[' + formatTimestamp(line.timestamp) + '] '
|
|
246
|
+
),
|
|
247
|
+
React.createElement(
|
|
248
|
+
Text,
|
|
249
|
+
{ bold: true, color: line.role === 'user' ? theme.success : theme.secondary },
|
|
250
|
+
'[' + line.role + ']: '
|
|
251
|
+
)
|
|
252
|
+
);
|
|
253
|
+
} else if (line.type === 'content') {
|
|
254
|
+
// Render content line
|
|
255
|
+
return React.createElement(
|
|
256
|
+
Box,
|
|
257
|
+
{ key: `${line.messageId}-content-${line.lineIndex}` },
|
|
258
|
+
React.createElement(Text, { color: theme.primary }, line.content)
|
|
259
|
+
);
|
|
260
|
+
} else if (line.type === 'spacing') {
|
|
261
|
+
// Render spacing line
|
|
262
|
+
return React.createElement(Box, { key: `${line.messageId}-spacing`, height: 1 });
|
|
263
|
+
}
|
|
264
|
+
return null;
|
|
265
|
+
})
|
|
266
|
+
),
|
|
267
|
+
|
|
268
|
+
// Scroll indicator - newer messages below
|
|
269
|
+
hasNewerMessages && React.createElement(
|
|
270
|
+
Box,
|
|
271
|
+
{ marginTop: 1 },
|
|
272
|
+
React.createElement(
|
|
273
|
+
Text,
|
|
274
|
+
{ color: theme.dim, italic: true },
|
|
275
|
+
`▼ ${newerLinesCount} more lines below (PgDn/End to scroll)`
|
|
276
|
+
)
|
|
277
|
+
)
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export default MessageList;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MultilineTextInput Component
|
|
3
|
+
* Editable multi-line text area for terminal UI
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { useState, useEffect } from 'react';
|
|
7
|
+
import { Box, Text, useInput } from 'ink';
|
|
8
|
+
|
|
9
|
+
const CURSOR_BLINK_INTERVAL = 500; // milliseconds
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* MultilineTextInput Component
|
|
13
|
+
* @param {Object} props
|
|
14
|
+
* @param {string} props.value - Current text value
|
|
15
|
+
* @param {Function} props.onChange - Called when text changes
|
|
16
|
+
* @param {string} props.label - Input label
|
|
17
|
+
* @param {string} props.placeholder - Placeholder text
|
|
18
|
+
* @param {boolean} props.focused - Whether this input is focused
|
|
19
|
+
* @param {number} props.minHeight - Minimum height in lines
|
|
20
|
+
* @param {number} props.maxHeight - Maximum height in lines
|
|
21
|
+
* @param {number} props.width - Width of the text area
|
|
22
|
+
* @param {string} props.borderColor - Border color
|
|
23
|
+
*/
|
|
24
|
+
export function MultilineTextInput({
|
|
25
|
+
value = '',
|
|
26
|
+
onChange,
|
|
27
|
+
label = '',
|
|
28
|
+
placeholder = '',
|
|
29
|
+
focused = false,
|
|
30
|
+
minHeight = 5,
|
|
31
|
+
maxHeight = 15,
|
|
32
|
+
width = 60,
|
|
33
|
+
borderColor = 'cyan',
|
|
34
|
+
}) {
|
|
35
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
36
|
+
const [localValue, setLocalValue] = useState(value);
|
|
37
|
+
const [cursorVisible, setCursorVisible] = useState(true);
|
|
38
|
+
const [cursorPos, setCursorPos] = useState(0);
|
|
39
|
+
|
|
40
|
+
// Sync with external value when not editing
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!isEditing) {
|
|
43
|
+
setLocalValue(value);
|
|
44
|
+
setCursorPos(value.length);
|
|
45
|
+
}
|
|
46
|
+
}, [value, isEditing]);
|
|
47
|
+
|
|
48
|
+
// Cursor blinking
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
if (!isEditing || !focused) {
|
|
51
|
+
setCursorVisible(true);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const interval = setInterval(() => {
|
|
56
|
+
setCursorVisible(prev => !prev);
|
|
57
|
+
}, CURSOR_BLINK_INTERVAL);
|
|
58
|
+
|
|
59
|
+
return () => clearInterval(interval);
|
|
60
|
+
}, [isEditing, focused]);
|
|
61
|
+
|
|
62
|
+
// Handle keyboard input
|
|
63
|
+
useInput((char, key) => {
|
|
64
|
+
if (!focused) return;
|
|
65
|
+
|
|
66
|
+
// Enter edit mode on Enter key
|
|
67
|
+
if (key.return && !isEditing) {
|
|
68
|
+
setIsEditing(true);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Exit edit mode on Escape
|
|
73
|
+
if (key.escape && isEditing) {
|
|
74
|
+
setIsEditing(false);
|
|
75
|
+
setLocalValue(value); // Reset to original value
|
|
76
|
+
setCursorPos(value.length);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Save on Ctrl+S (handled by parent, but exit edit mode)
|
|
81
|
+
if (key.ctrl && char === 's' && isEditing) {
|
|
82
|
+
setIsEditing(false);
|
|
83
|
+
onChange(localValue);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Only process input when editing
|
|
88
|
+
if (!isEditing) return;
|
|
89
|
+
|
|
90
|
+
// Handle character input
|
|
91
|
+
if (char && !key.ctrl && !key.meta) {
|
|
92
|
+
const before = localValue.substring(0, cursorPos);
|
|
93
|
+
const after = localValue.substring(cursorPos);
|
|
94
|
+
const newValue = before + char + after;
|
|
95
|
+
setLocalValue(newValue);
|
|
96
|
+
setCursorPos(cursorPos + 1);
|
|
97
|
+
onChange(newValue);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Handle newline
|
|
102
|
+
if (key.return) {
|
|
103
|
+
const before = localValue.substring(0, cursorPos);
|
|
104
|
+
const after = localValue.substring(cursorPos);
|
|
105
|
+
const newValue = before + '\n' + after;
|
|
106
|
+
setLocalValue(newValue);
|
|
107
|
+
setCursorPos(cursorPos + 1);
|
|
108
|
+
onChange(newValue);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Handle backspace
|
|
113
|
+
if (key.backspace && cursorPos > 0) {
|
|
114
|
+
const before = localValue.substring(0, cursorPos - 1);
|
|
115
|
+
const after = localValue.substring(cursorPos);
|
|
116
|
+
const newValue = before + after;
|
|
117
|
+
setLocalValue(newValue);
|
|
118
|
+
setCursorPos(cursorPos - 1);
|
|
119
|
+
onChange(newValue);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Handle delete
|
|
124
|
+
if (key.delete && cursorPos < localValue.length) {
|
|
125
|
+
const before = localValue.substring(0, cursorPos);
|
|
126
|
+
const after = localValue.substring(cursorPos + 1);
|
|
127
|
+
const newValue = before + after;
|
|
128
|
+
setLocalValue(newValue);
|
|
129
|
+
onChange(newValue);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Handle arrow keys for cursor movement
|
|
134
|
+
if (key.leftArrow && cursorPos > 0) {
|
|
135
|
+
setCursorPos(cursorPos - 1);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (key.rightArrow && cursorPos < localValue.length) {
|
|
140
|
+
setCursorPos(cursorPos + 1);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Home - move to start of current line
|
|
145
|
+
if (key.home) {
|
|
146
|
+
const lines = localValue.substring(0, cursorPos).split('\n');
|
|
147
|
+
const currentLineStart = cursorPos - lines[lines.length - 1].length;
|
|
148
|
+
setCursorPos(currentLineStart);
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// End - move to end of current line
|
|
153
|
+
if (key.end) {
|
|
154
|
+
const afterCursor = localValue.substring(cursorPos);
|
|
155
|
+
const nextNewline = afterCursor.indexOf('\n');
|
|
156
|
+
if (nextNewline === -1) {
|
|
157
|
+
setCursorPos(localValue.length);
|
|
158
|
+
} else {
|
|
159
|
+
setCursorPos(cursorPos + nextNewline);
|
|
160
|
+
}
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
// Split text into lines for rendering
|
|
166
|
+
const displayValue = localValue || (isEditing ? '' : placeholder);
|
|
167
|
+
const lines = displayValue.split('\n');
|
|
168
|
+
|
|
169
|
+
// Calculate visible line range
|
|
170
|
+
const visibleLines = lines.slice(0, maxHeight);
|
|
171
|
+
const actualHeight = Math.max(minHeight, Math.min(maxHeight, lines.length));
|
|
172
|
+
|
|
173
|
+
// Render cursor at correct position if editing
|
|
174
|
+
const renderLinesWithCursor = () => {
|
|
175
|
+
if (!isEditing || !focused) {
|
|
176
|
+
return visibleLines.map((line, index) =>
|
|
177
|
+
React.createElement(
|
|
178
|
+
Text,
|
|
179
|
+
{ key: index, color: localValue ? 'white' : 'gray', dimColor: !localValue },
|
|
180
|
+
line || ' '
|
|
181
|
+
)
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Find which line the cursor is on
|
|
186
|
+
let charCount = 0;
|
|
187
|
+
return visibleLines.map((line, lineIndex) => {
|
|
188
|
+
const lineStart = charCount;
|
|
189
|
+
const lineEnd = charCount + line.length;
|
|
190
|
+
const hasNewline = lineIndex < lines.length - 1;
|
|
191
|
+
|
|
192
|
+
const cursorInThisLine = cursorPos >= lineStart && cursorPos <= lineEnd + (hasNewline ? 1 : 0);
|
|
193
|
+
|
|
194
|
+
charCount = lineEnd + (hasNewline ? 1 : 0);
|
|
195
|
+
|
|
196
|
+
if (cursorInThisLine) {
|
|
197
|
+
const posInLine = cursorPos - lineStart;
|
|
198
|
+
const before = line.substring(0, posInLine);
|
|
199
|
+
const cursorChar = line.charAt(posInLine) || ' ';
|
|
200
|
+
const after = line.substring(posInLine + 1);
|
|
201
|
+
|
|
202
|
+
return React.createElement(
|
|
203
|
+
Text,
|
|
204
|
+
{ key: lineIndex },
|
|
205
|
+
React.createElement(Text, {}, before),
|
|
206
|
+
cursorVisible
|
|
207
|
+
? React.createElement(Text, { inverse: true }, cursorChar)
|
|
208
|
+
: React.createElement(Text, {}, cursorChar),
|
|
209
|
+
React.createElement(Text, {}, after)
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return React.createElement(Text, { key: lineIndex }, line || ' ');
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
return React.createElement(
|
|
218
|
+
Box,
|
|
219
|
+
{ flexDirection: 'column' },
|
|
220
|
+
// Label
|
|
221
|
+
label && React.createElement(
|
|
222
|
+
Text,
|
|
223
|
+
{ bold: true, color: focused ? borderColor : 'gray', marginBottom: 1 },
|
|
224
|
+
label
|
|
225
|
+
),
|
|
226
|
+
// Text area with border
|
|
227
|
+
React.createElement(
|
|
228
|
+
Box,
|
|
229
|
+
{
|
|
230
|
+
flexDirection: 'column',
|
|
231
|
+
borderStyle: 'round',
|
|
232
|
+
borderColor: isEditing ? 'yellow' : (focused ? borderColor : 'gray'),
|
|
233
|
+
paddingX: 1,
|
|
234
|
+
paddingY: 0,
|
|
235
|
+
height: actualHeight + 2, // +2 for borders
|
|
236
|
+
width: width,
|
|
237
|
+
},
|
|
238
|
+
...renderLinesWithCursor()
|
|
239
|
+
),
|
|
240
|
+
// Help text
|
|
241
|
+
React.createElement(
|
|
242
|
+
Text,
|
|
243
|
+
{ dimColor: true, color: 'gray' },
|
|
244
|
+
focused && !isEditing ? 'Press Enter to edit' :
|
|
245
|
+
focused && isEditing ? 'Esc: Cancel Ctrl+S: Save' :
|
|
246
|
+
''
|
|
247
|
+
)
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export default MultilineTextInput;
|