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,393 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terminal UI - Configuration Constants
|
|
3
|
+
* All magic numbers and values centralized here
|
|
4
|
+
* Following best practices: no hardcoded values in implementation code
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// UI Dimensions
|
|
8
|
+
export const UI_DIMENSIONS = {
|
|
9
|
+
MESSAGE_LIST_HEIGHT: 20,
|
|
10
|
+
MESSAGE_LIST_MIN_HEIGHT: 10,
|
|
11
|
+
MESSAGE_LIST_MAX_HEIGHT: 40,
|
|
12
|
+
INPUT_BOX_HEIGHT: 3,
|
|
13
|
+
STATUS_BAR_HEIGHT: 1,
|
|
14
|
+
HEADER_HEIGHT: 3,
|
|
15
|
+
SIDEBAR_WIDTH: 30,
|
|
16
|
+
MIN_TERMINAL_WIDTH: 80,
|
|
17
|
+
MIN_TERMINAL_HEIGHT: 24,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// Message Display
|
|
21
|
+
export const MESSAGE_CONFIG = {
|
|
22
|
+
MAX_MESSAGES_DISPLAY: 100,
|
|
23
|
+
MESSAGE_PREVIEW_LENGTH: 200,
|
|
24
|
+
HISTORY_LIMIT: 10,
|
|
25
|
+
MAX_MESSAGE_LENGTH: 10000,
|
|
26
|
+
TRUNCATION_SUFFIX: '...',
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// Pagination
|
|
30
|
+
export const PAGINATION = {
|
|
31
|
+
PAGE_SIZE: 20,
|
|
32
|
+
MAX_PAGE_SIZE: 100,
|
|
33
|
+
DEFAULT_OFFSET: 0,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// Timeouts & Intervals (in milliseconds)
|
|
37
|
+
export const TIMING = {
|
|
38
|
+
WEBSOCKET_RECONNECT_DELAY: 3000,
|
|
39
|
+
WEBSOCKET_RECONNECT_MAX_DELAY: 30000,
|
|
40
|
+
WEBSOCKET_RECONNECT_MULTIPLIER: 1.5,
|
|
41
|
+
WEBSOCKET_PING_INTERVAL: 30000,
|
|
42
|
+
WEBSOCKET_CONNECT_TIMEOUT: 10000,
|
|
43
|
+
WEBSOCKET_PONG_TIMEOUT: 5000,
|
|
44
|
+
MESSAGE_DEBOUNCE_DELAY: 300,
|
|
45
|
+
INPUT_THROTTLE_DELAY: 100,
|
|
46
|
+
AUTO_SAVE_INTERVAL: 60000,
|
|
47
|
+
STATUS_UPDATE_INTERVAL: 5000,
|
|
48
|
+
SPINNER_FRAME_RATE: 80,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// Network
|
|
52
|
+
export const NETWORK = {
|
|
53
|
+
DEFAULT_HOST: 'localhost',
|
|
54
|
+
DEFAULT_PORT: 8080,
|
|
55
|
+
HTTP_TIMEOUT: 30000,
|
|
56
|
+
MAX_RETRIES: 3,
|
|
57
|
+
RETRY_DELAY: 1000,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// Connection States
|
|
61
|
+
export const CONNECTION_STATE = {
|
|
62
|
+
DISCONNECTED: 'disconnected',
|
|
63
|
+
CONNECTING: 'connecting',
|
|
64
|
+
CONNECTED: 'connected',
|
|
65
|
+
RECONNECTING: 'reconnecting',
|
|
66
|
+
ERROR: 'error',
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// Connection Status (alias for CONNECTION_STATE for consistency)
|
|
70
|
+
export const CONNECTION_STATUS = CONNECTION_STATE;
|
|
71
|
+
|
|
72
|
+
// Reconnection Configuration
|
|
73
|
+
export const RECONNECT_CONFIG = {
|
|
74
|
+
INITIAL_DELAY: 1000, // 1 second
|
|
75
|
+
MAX_DELAY: 30000, // 30 seconds
|
|
76
|
+
BACKOFF_MULTIPLIER: 1.5,
|
|
77
|
+
MAX_ATTEMPTS: 10,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// Agent Modes
|
|
81
|
+
export const AGENT_MODE = {
|
|
82
|
+
CHAT: 'CHAT',
|
|
83
|
+
AGENT: 'AGENT',
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// Agent Status
|
|
87
|
+
export const AGENT_STATUS = {
|
|
88
|
+
ACTIVE: 'active',
|
|
89
|
+
PAUSED: 'paused',
|
|
90
|
+
IDLE: 'idle',
|
|
91
|
+
ERROR: 'error',
|
|
92
|
+
ARCHIVED: 'archived',
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// Message Roles
|
|
96
|
+
export const MESSAGE_ROLE = {
|
|
97
|
+
USER: 'user',
|
|
98
|
+
ASSISTANT: 'assistant',
|
|
99
|
+
SYSTEM: 'system',
|
|
100
|
+
TOOL: 'tool',
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// Message Types
|
|
104
|
+
export const MESSAGE_TYPE = {
|
|
105
|
+
USER_MESSAGE: 'user-message',
|
|
106
|
+
AGENT_RESPONSE: 'agent-response',
|
|
107
|
+
SYSTEM_NOTIFICATION: 'system-notification',
|
|
108
|
+
TOOL_EXECUTION: 'tool-execution',
|
|
109
|
+
ERROR: 'error',
|
|
110
|
+
WARNING: 'warning',
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// WebSocket Message Types
|
|
114
|
+
export const WS_MESSAGE_TYPE = {
|
|
115
|
+
PING: 'ping',
|
|
116
|
+
PONG: 'pong',
|
|
117
|
+
CONNECTED: 'connected',
|
|
118
|
+
JOIN_SESSION: 'join_session',
|
|
119
|
+
SESSION_JOINED: 'session_joined',
|
|
120
|
+
ORCHESTRATOR_REQUEST: 'orchestrator_request',
|
|
121
|
+
ORCHESTRATOR_RESPONSE: 'orchestrator_response',
|
|
122
|
+
MESSAGE_ADDED: 'message_added',
|
|
123
|
+
AGENT_MODE_CHANGED: 'agent_mode_changed',
|
|
124
|
+
EXECUTION_STOPPED: 'execution_stopped',
|
|
125
|
+
AGENT_ERROR: 'agent_error',
|
|
126
|
+
AGENT_WARNING: 'agent_warning',
|
|
127
|
+
COMPACTION_EVENT: 'compaction_event',
|
|
128
|
+
AGENT_IMPORTED: 'agent-imported',
|
|
129
|
+
AGENT_COMMUNICATION: 'agent-communication',
|
|
130
|
+
IMAGE_RESULT: 'image-result',
|
|
131
|
+
IMAGE_GENERATED: 'imageGenerated',
|
|
132
|
+
ERROR: 'error',
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// File Operations
|
|
136
|
+
export const FILE_CONFIG = {
|
|
137
|
+
MAX_FILE_SIZE: 10 * 1024 * 1024, // 10MB
|
|
138
|
+
MAX_ATTACHMENTS: 10,
|
|
139
|
+
PREVIEW_LENGTH: 500,
|
|
140
|
+
ALLOWED_EXTENSIONS: [
|
|
141
|
+
'.txt', '.js', '.jsx', '.ts', '.tsx', '.json', '.md',
|
|
142
|
+
'.py', '.java', '.cpp', '.c', '.h', '.css', '.html'
|
|
143
|
+
],
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// File Attachment Modes
|
|
147
|
+
export const FILE_MODE = {
|
|
148
|
+
CONTENT: 'content',
|
|
149
|
+
REFERENCE: 'reference',
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// Views
|
|
153
|
+
export const VIEW = {
|
|
154
|
+
CHAT: 'chat',
|
|
155
|
+
AGENTS: 'agents',
|
|
156
|
+
SETTINGS: 'settings',
|
|
157
|
+
FILE_EXPLORER: 'file-explorer',
|
|
158
|
+
HELP: 'help',
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
// Command Prefixes
|
|
162
|
+
export const COMMAND_PREFIX = '/';
|
|
163
|
+
|
|
164
|
+
// Commands
|
|
165
|
+
export const COMMANDS = {
|
|
166
|
+
HELP: '/help',
|
|
167
|
+
CLEAR: '/clear',
|
|
168
|
+
AGENTS: '/agents',
|
|
169
|
+
SETTINGS: '/settings',
|
|
170
|
+
FILES: '/files',
|
|
171
|
+
EXIT: '/exit',
|
|
172
|
+
QUIT: '/quit',
|
|
173
|
+
CREATE_AGENT: '/create',
|
|
174
|
+
SWITCH_AGENT: '/switch',
|
|
175
|
+
DELETE_AGENT: '/delete',
|
|
176
|
+
PAUSE_AGENT: '/pause',
|
|
177
|
+
RESUME_AGENT: '/resume',
|
|
178
|
+
MODE: '/mode',
|
|
179
|
+
MODEL: '/model',
|
|
180
|
+
TOOLS: '/tools',
|
|
181
|
+
ATTACH: '/attach',
|
|
182
|
+
DETACH: '/detach',
|
|
183
|
+
EXPORT: '/export',
|
|
184
|
+
IMPORT: '/import',
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
// Keyboard Shortcuts
|
|
188
|
+
export const KEYBOARD = {
|
|
189
|
+
EXIT: ['escape', 'ctrl+c'],
|
|
190
|
+
SUBMIT: 'return',
|
|
191
|
+
CANCEL: 'escape',
|
|
192
|
+
DELETE: ['backspace', 'delete'],
|
|
193
|
+
NAVIGATE_UP: 'up',
|
|
194
|
+
NAVIGATE_DOWN: 'down',
|
|
195
|
+
NAVIGATE_LEFT: 'left',
|
|
196
|
+
NAVIGATE_RIGHT: 'right',
|
|
197
|
+
PAGE_UP: 'pageUp',
|
|
198
|
+
PAGE_DOWN: 'pageDown',
|
|
199
|
+
HOME: 'home',
|
|
200
|
+
END: 'end',
|
|
201
|
+
TAB: 'tab',
|
|
202
|
+
SHIFT_TAB: 'shift+tab',
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
// Status Messages
|
|
206
|
+
export const STATUS_MESSAGE = {
|
|
207
|
+
CONNECTING: 'Connecting to server...',
|
|
208
|
+
CONNECTED: 'Connected',
|
|
209
|
+
DISCONNECTED: 'Disconnected',
|
|
210
|
+
RECONNECTING: 'Reconnecting...',
|
|
211
|
+
ERROR: 'Connection error',
|
|
212
|
+
AGENT_PROCESSING: 'Agent processing...',
|
|
213
|
+
SENDING_MESSAGE: 'Sending message...',
|
|
214
|
+
LOADING: 'Loading...',
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// Error Messages
|
|
218
|
+
export const ERROR_MESSAGE = {
|
|
219
|
+
CONNECTION_FAILED: 'Failed to connect to server',
|
|
220
|
+
WEBSOCKET_ERROR: 'WebSocket connection error',
|
|
221
|
+
NO_AGENT_SELECTED: 'No agent selected',
|
|
222
|
+
INVALID_COMMAND: 'Invalid command',
|
|
223
|
+
FILE_TOO_LARGE: 'File size exceeds maximum limit',
|
|
224
|
+
FILE_NOT_FOUND: 'File not found',
|
|
225
|
+
PERMISSION_DENIED: 'Permission denied',
|
|
226
|
+
NETWORK_ERROR: 'Network error occurred',
|
|
227
|
+
UNKNOWN_ERROR: 'An unknown error occurred',
|
|
228
|
+
SESSION_CREATE_FAILED: 'Failed to create session',
|
|
229
|
+
SESSION_INVALID: 'Invalid session',
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
// Success Messages
|
|
233
|
+
export const SUCCESS_MESSAGE = {
|
|
234
|
+
AGENT_CREATED: 'Agent created successfully',
|
|
235
|
+
AGENT_DELETED: 'Agent deleted successfully',
|
|
236
|
+
AGENT_SWITCHED: 'Switched to agent',
|
|
237
|
+
FILE_ATTACHED: 'File attached successfully',
|
|
238
|
+
MESSAGE_SENT: 'Message sent',
|
|
239
|
+
SETTINGS_SAVED: 'Settings saved',
|
|
240
|
+
SESSION_CREATED: 'Session created',
|
|
241
|
+
CONNECTED_TO_SERVER: 'Connected to server',
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
// Compaction Status
|
|
245
|
+
export const COMPACTION_STATUS = {
|
|
246
|
+
STARTED: 'started',
|
|
247
|
+
IN_PROGRESS: 'in-progress',
|
|
248
|
+
COMPLETED: 'completed',
|
|
249
|
+
FAILED: 'failed',
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
// API Endpoints
|
|
253
|
+
export const API_ENDPOINTS = {
|
|
254
|
+
HEALTH: '/api/health',
|
|
255
|
+
SESSION_CREATE: '/api/sessions',
|
|
256
|
+
KEYS_SET: '/api/keys',
|
|
257
|
+
KEYS_GET: '/api/keys/:sessionId',
|
|
258
|
+
KEYS_DELETE: '/api/keys/:sessionId',
|
|
259
|
+
LLM_CHAT: '/api/llm/chat',
|
|
260
|
+
LLM_MODELS: '/api/llm/models',
|
|
261
|
+
TOOLS: '/api/tools',
|
|
262
|
+
FILES_LIST: '/api/files',
|
|
263
|
+
FILES_UPLOAD: '/api/files/upload',
|
|
264
|
+
EXPLORER_BROWSE: '/api/explorer',
|
|
265
|
+
EXPLORER_INFO: '/api/explorer/info',
|
|
266
|
+
EXPLORER_MKDIR: '/api/explorer/mkdir',
|
|
267
|
+
FILE_EXPLORER_HEALTH: '/api/file-explorer/health',
|
|
268
|
+
FILE_EXPLORER_CWD: '/api/file-explorer/cwd',
|
|
269
|
+
FILE_EXPLORER_BROWSE: '/api/file-explorer/browse',
|
|
270
|
+
FILE_EXPLORER_INFO: '/api/file-explorer/file-info',
|
|
271
|
+
FILE_EXPLORER_MKDIR: '/api/file-explorer/mkdir',
|
|
272
|
+
AGENTS_AVAILABLE: '/api/agents/available',
|
|
273
|
+
AGENTS_METADATA: '/api/agents/:agentId/metadata',
|
|
274
|
+
AGENTS_IMPORT: '/api/agents/import',
|
|
275
|
+
AGENTS_MODE_SET: '/api/agents/:agentId/mode',
|
|
276
|
+
AGENTS_MODE_GET: '/api/agents/:agentId/mode',
|
|
277
|
+
AGENTS_STOP: '/api/agents/:agentId/stop',
|
|
278
|
+
ATTACHMENTS_UPLOAD: '/api/agents/:agentId/attachments/upload',
|
|
279
|
+
ATTACHMENTS_LIST: '/api/agents/:agentId/attachments',
|
|
280
|
+
ATTACHMENTS_GET: '/api/attachments/:fileId',
|
|
281
|
+
ATTACHMENTS_PREVIEW: '/api/attachments/:fileId/preview',
|
|
282
|
+
ATTACHMENTS_TOGGLE: '/api/attachments/:fileId/toggle',
|
|
283
|
+
ATTACHMENTS_UPDATE: '/api/attachments/:fileId',
|
|
284
|
+
ATTACHMENTS_DELETE: '/api/attachments/:fileId',
|
|
285
|
+
ATTACHMENTS_IMPORT: '/api/attachments/:fileId/import',
|
|
286
|
+
IMAGES_GET: '/api/images/:sessionId/:filename',
|
|
287
|
+
ORCHESTRATOR: '/api/orchestrator',
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
// Tool Categories
|
|
291
|
+
export const TOOL_CATEGORY = {
|
|
292
|
+
SYSTEM: 'system',
|
|
293
|
+
AUTOMATION: 'automation',
|
|
294
|
+
ANALYSIS: 'analysis',
|
|
295
|
+
UTILITY: 'utility',
|
|
296
|
+
COLLABORATION: 'collaboration',
|
|
297
|
+
AI: 'ai',
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
// Available Tools
|
|
301
|
+
export const TOOLS = {
|
|
302
|
+
TERMINAL: 'terminal',
|
|
303
|
+
FILESYSTEM: 'filesystem',
|
|
304
|
+
FILE_CONTENT_REPLACE: 'file-content-replace',
|
|
305
|
+
SEEK: 'seek',
|
|
306
|
+
FILE_TREE: 'file-tree',
|
|
307
|
+
WEB_BROWSER: 'web-browser',
|
|
308
|
+
WEB: 'web',
|
|
309
|
+
STATIC_ANALYSIS: 'static-analysis',
|
|
310
|
+
CLONE_DETECTION: 'clone-detection',
|
|
311
|
+
AGENT_DELAY: 'agent-delay',
|
|
312
|
+
JOB_DONE: 'job-done',
|
|
313
|
+
AGENT_COMMUNICATION: 'agent-communication',
|
|
314
|
+
TASK_MANAGER: 'task-manager',
|
|
315
|
+
IMPORT_ANALYZER: 'import-analyzer',
|
|
316
|
+
DEPENDENCY_RESOLVER: 'dependency-resolver',
|
|
317
|
+
IMAGE_GENERATOR: 'image-generator',
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
// System Templates
|
|
321
|
+
export const AGENT_TEMPLATES = {
|
|
322
|
+
CODING_ASSISTANT: 'coding-assistant',
|
|
323
|
+
DATA_ANALYST: 'data-analyst',
|
|
324
|
+
CREATIVE_WRITER: 'creative-writer',
|
|
325
|
+
SYSTEM_ADMINISTRATOR: 'system-administrator',
|
|
326
|
+
CUSTOM: 'custom',
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
// Model Categories
|
|
330
|
+
export const MODEL_CATEGORY = {
|
|
331
|
+
ANTHROPIC: 'anthropic',
|
|
332
|
+
OPENAI: 'openai',
|
|
333
|
+
DEEPSEEK: 'deepseek',
|
|
334
|
+
MICROSOFT: 'microsoft',
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
// Notification Severity
|
|
338
|
+
export const SEVERITY = {
|
|
339
|
+
INFO: 'info',
|
|
340
|
+
SUCCESS: 'success',
|
|
341
|
+
WARNING: 'warning',
|
|
342
|
+
ERROR: 'error',
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
// Theme
|
|
346
|
+
export const THEME = {
|
|
347
|
+
LIGHT: 'light',
|
|
348
|
+
DARK: 'dark',
|
|
349
|
+
SYSTEM: 'system',
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
// Logging
|
|
353
|
+
export const LOG_LEVEL = {
|
|
354
|
+
DEBUG: 'debug',
|
|
355
|
+
INFO: 'info',
|
|
356
|
+
WARN: 'warn',
|
|
357
|
+
ERROR: 'error',
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
// Default export for convenience
|
|
361
|
+
export default {
|
|
362
|
+
UI_DIMENSIONS,
|
|
363
|
+
MESSAGE_CONFIG,
|
|
364
|
+
PAGINATION,
|
|
365
|
+
TIMING,
|
|
366
|
+
NETWORK,
|
|
367
|
+
CONNECTION_STATE,
|
|
368
|
+
CONNECTION_STATUS,
|
|
369
|
+
RECONNECT_CONFIG,
|
|
370
|
+
AGENT_MODE,
|
|
371
|
+
AGENT_STATUS,
|
|
372
|
+
MESSAGE_ROLE,
|
|
373
|
+
MESSAGE_TYPE,
|
|
374
|
+
WS_MESSAGE_TYPE,
|
|
375
|
+
FILE_CONFIG,
|
|
376
|
+
FILE_MODE,
|
|
377
|
+
VIEW,
|
|
378
|
+
COMMAND_PREFIX,
|
|
379
|
+
COMMANDS,
|
|
380
|
+
KEYBOARD,
|
|
381
|
+
STATUS_MESSAGE,
|
|
382
|
+
ERROR_MESSAGE,
|
|
383
|
+
SUCCESS_MESSAGE,
|
|
384
|
+
COMPACTION_STATUS,
|
|
385
|
+
API_ENDPOINTS,
|
|
386
|
+
TOOL_CATEGORY,
|
|
387
|
+
TOOLS,
|
|
388
|
+
AGENT_TEMPLATES,
|
|
389
|
+
MODEL_CATEGORY,
|
|
390
|
+
SEVERITY,
|
|
391
|
+
THEME,
|
|
392
|
+
LOG_LEVEL,
|
|
393
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Terminal UI Entry Point
|
|
3
|
+
* Launches the Ink-based Terminal UI for Loxia Autopilot
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { render } from 'ink';
|
|
8
|
+
import { Layout } from './components/Layout.js';
|
|
9
|
+
import { getPortRegistry } from '../../services/portRegistry.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Discover backend port from the port registry
|
|
13
|
+
* @returns {Promise<{host: string, port: number}|null>} Backend info or null if not found
|
|
14
|
+
*/
|
|
15
|
+
async function discoverBackend() {
|
|
16
|
+
try {
|
|
17
|
+
const portRegistry = getPortRegistry();
|
|
18
|
+
|
|
19
|
+
// Clean up any stale entries first
|
|
20
|
+
await portRegistry.cleanupStaleEntries();
|
|
21
|
+
|
|
22
|
+
// Look for the backend service
|
|
23
|
+
const backendInfo = await portRegistry.getService('backend');
|
|
24
|
+
|
|
25
|
+
if (backendInfo) {
|
|
26
|
+
return {
|
|
27
|
+
host: backendInfo.host || 'localhost',
|
|
28
|
+
port: backendInfo.port
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return null;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
// Silently fail - will fall back to defaults
|
|
35
|
+
console.warn('Could not discover backend from registry:', error.message);
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Start the Terminal UI
|
|
42
|
+
* @param {Object} options - Configuration options
|
|
43
|
+
* @param {string} options.host - Backend host (default: localhost)
|
|
44
|
+
* @param {number} options.port - Backend port (default: 8080)
|
|
45
|
+
* @returns {Object} - Ink instance with waitUntilExit method
|
|
46
|
+
*/
|
|
47
|
+
export function startTerminalUI(options = {}) {
|
|
48
|
+
const { host = 'localhost', port = 8080 } = options;
|
|
49
|
+
|
|
50
|
+
// Render the Layout component
|
|
51
|
+
const { waitUntilExit, unmount, clear } = render(
|
|
52
|
+
React.createElement(Layout, { host, port })
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
// Handle graceful shutdown
|
|
56
|
+
const cleanup = () => {
|
|
57
|
+
try {
|
|
58
|
+
clear();
|
|
59
|
+
unmount();
|
|
60
|
+
} catch (error) {
|
|
61
|
+
// Ignore cleanup errors
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// Register cleanup handlers
|
|
66
|
+
process.on('SIGINT', () => {
|
|
67
|
+
cleanup();
|
|
68
|
+
process.exit(0);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
process.on('SIGTERM', () => {
|
|
72
|
+
cleanup();
|
|
73
|
+
process.exit(0);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
process.on('exit', () => {
|
|
77
|
+
cleanup();
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// Return the Ink instance for external control
|
|
81
|
+
return {
|
|
82
|
+
waitUntilExit,
|
|
83
|
+
unmount,
|
|
84
|
+
clear,
|
|
85
|
+
cleanup,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Start Terminal UI with automatic backend discovery
|
|
91
|
+
* @param {Object} options - Configuration options
|
|
92
|
+
* @param {string} [options.host] - Backend host (optional, will discover if not provided)
|
|
93
|
+
* @param {number} [options.port] - Backend port (optional, will discover if not provided)
|
|
94
|
+
* @returns {Promise<Object>} - Ink instance with waitUntilExit method
|
|
95
|
+
*/
|
|
96
|
+
export async function startTerminalUIWithDiscovery(options = {}) {
|
|
97
|
+
let { host, port } = options;
|
|
98
|
+
|
|
99
|
+
// If no port specified, try to discover from registry
|
|
100
|
+
if (!port) {
|
|
101
|
+
const discovered = await discoverBackend();
|
|
102
|
+
|
|
103
|
+
if (discovered) {
|
|
104
|
+
host = discovered.host;
|
|
105
|
+
port = discovered.port;
|
|
106
|
+
console.log(`Discovered backend at ${host}:${port}`);
|
|
107
|
+
} else {
|
|
108
|
+
// Fall back to defaults
|
|
109
|
+
host = host || 'localhost';
|
|
110
|
+
port = 8080;
|
|
111
|
+
console.log(`No backend found in registry, using default ${host}:${port}`);
|
|
112
|
+
}
|
|
113
|
+
} else {
|
|
114
|
+
host = host || 'localhost';
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return startTerminalUI({ host, port });
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Main entry point when run directly
|
|
122
|
+
*/
|
|
123
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
124
|
+
// Check for explicit env var override (backward compatibility)
|
|
125
|
+
const envHost = process.env.LOXIA_HOST;
|
|
126
|
+
const envPort = process.env.LOXIA_PORT ? parseInt(process.env.LOXIA_PORT, 10) : null;
|
|
127
|
+
|
|
128
|
+
console.log(`Starting Loxia Terminal UI...`);
|
|
129
|
+
|
|
130
|
+
// Main async function
|
|
131
|
+
(async () => {
|
|
132
|
+
let host, port;
|
|
133
|
+
|
|
134
|
+
if (envPort) {
|
|
135
|
+
// Use explicitly configured port
|
|
136
|
+
host = envHost || 'localhost';
|
|
137
|
+
port = envPort;
|
|
138
|
+
console.log(`Using configured backend: ${host}:${port}`);
|
|
139
|
+
} else {
|
|
140
|
+
// Try to discover from registry
|
|
141
|
+
const discovered = await discoverBackend();
|
|
142
|
+
|
|
143
|
+
if (discovered) {
|
|
144
|
+
host = discovered.host;
|
|
145
|
+
port = discovered.port;
|
|
146
|
+
console.log(`Discovered backend at ${host}:${port}`);
|
|
147
|
+
} else {
|
|
148
|
+
// Fall back to defaults
|
|
149
|
+
host = envHost || 'localhost';
|
|
150
|
+
port = 8080;
|
|
151
|
+
console.log(`No backend found in registry, using default ${host}:${port}`);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
console.log(`Connecting to: ${host}:${port}`);
|
|
156
|
+
console.log(`Press Ctrl+C to exit\n`);
|
|
157
|
+
|
|
158
|
+
const instance = startTerminalUI({ host, port });
|
|
159
|
+
|
|
160
|
+
// Wait for exit
|
|
161
|
+
instance.waitUntilExit().then(() => {
|
|
162
|
+
console.log('\nTerminal UI exited');
|
|
163
|
+
process.exit(0);
|
|
164
|
+
});
|
|
165
|
+
})();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export default startTerminalUI;
|