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,569 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebTool E2E Tests
|
|
3
|
+
*
|
|
4
|
+
* These tests launch a REAL headless browser and test against live pages.
|
|
5
|
+
* They validate error detection, HTTP status handling, selector feedback,
|
|
6
|
+
* and the full execute → result pipeline.
|
|
7
|
+
*
|
|
8
|
+
* NOTE: These tests require network access and a working Puppeteer install.
|
|
9
|
+
* They are slower (~60s total) and are tagged for separate runs.
|
|
10
|
+
*
|
|
11
|
+
* Run with: npm test -- --testPathPattern=webTool.e2e
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { describe, test, expect, beforeAll, afterAll } from '@jest/globals';
|
|
15
|
+
|
|
16
|
+
let WebTool;
|
|
17
|
+
let wt;
|
|
18
|
+
const silentLogger = { info() {}, warn() {}, error() {}, debug() {} };
|
|
19
|
+
|
|
20
|
+
beforeAll(async () => {
|
|
21
|
+
const mod = await import('../../tools/webTool.js');
|
|
22
|
+
WebTool = mod.default;
|
|
23
|
+
wt = new WebTool({ logger: silentLogger });
|
|
24
|
+
}, 30000);
|
|
25
|
+
|
|
26
|
+
afterAll(async () => {
|
|
27
|
+
try { await wt.cleanup?.(); } catch {}
|
|
28
|
+
}, 15000);
|
|
29
|
+
|
|
30
|
+
// ─── HTTP Status Detection ──────────────────────────────────────────────────
|
|
31
|
+
|
|
32
|
+
describe('HTTP status detection', () => {
|
|
33
|
+
test('fetch valid page returns success with HTTP 200', async () => {
|
|
34
|
+
const result = await wt.execute(
|
|
35
|
+
{ operation: 'fetch', url: 'https://example.com', formats: ['title'] },
|
|
36
|
+
{ agentId: 'http-test', context: {} }
|
|
37
|
+
);
|
|
38
|
+
expect(result.success).toBe(true);
|
|
39
|
+
expect(result.httpStatus).toBe(200);
|
|
40
|
+
expect(result.title).toBe('Example Domain');
|
|
41
|
+
}, 30000);
|
|
42
|
+
|
|
43
|
+
test('fetch 404 page returns success=false with HTTP 404', async () => {
|
|
44
|
+
const result = await wt.execute(
|
|
45
|
+
{ operation: 'fetch', url: 'https://github.com/zzzzz999nonexistentuser/zzzzz999nonexistrepo' },
|
|
46
|
+
{ agentId: 'http-test', context: {} }
|
|
47
|
+
);
|
|
48
|
+
expect(result.success).toBe(false);
|
|
49
|
+
expect(result.httpStatus).toBe(404);
|
|
50
|
+
expect(result.error).toContain('404');
|
|
51
|
+
expect(result.error).toContain('page not found');
|
|
52
|
+
}, 30000);
|
|
53
|
+
|
|
54
|
+
test('fetch returns httpStatus in result for successful pages', async () => {
|
|
55
|
+
const result = await wt.execute(
|
|
56
|
+
{ operation: 'fetch', url: 'https://example.com', formats: ['title'] },
|
|
57
|
+
{ agentId: 'http-test', context: {} }
|
|
58
|
+
);
|
|
59
|
+
expect(result.httpStatus).toBeDefined();
|
|
60
|
+
expect(typeof result.httpStatus).toBe('number');
|
|
61
|
+
}, 30000);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// ─── Selector Pre-Validation ─────────────────────────────────────────────────
|
|
65
|
+
|
|
66
|
+
describe('Selector pre-validation', () => {
|
|
67
|
+
test('click on non-existent selector returns actionable error', async () => {
|
|
68
|
+
const result = await wt.execute({
|
|
69
|
+
operation: 'interactive',
|
|
70
|
+
actions: [{
|
|
71
|
+
type: 'open-tab',
|
|
72
|
+
name: 'sel-click',
|
|
73
|
+
url: 'https://example.com',
|
|
74
|
+
actions: [{ action: 'click', selector: '#nonexistent-button-xyz' }]
|
|
75
|
+
}]
|
|
76
|
+
}, { agentId: 'sel-test', context: {} });
|
|
77
|
+
|
|
78
|
+
expect(result.success).toBe(false);
|
|
79
|
+
const clickResult = result.data?.results?.[0]?.results?.[0];
|
|
80
|
+
expect(clickResult).toBeDefined();
|
|
81
|
+
expect(clickResult.success).toBe(false);
|
|
82
|
+
expect(clickResult.error).toContain('Element not found');
|
|
83
|
+
expect(clickResult.error).toContain('#nonexistent-button-xyz');
|
|
84
|
+
expect(clickResult.error).toContain('example.com');
|
|
85
|
+
expect(clickResult.suggestion).toBeDefined();
|
|
86
|
+
}, 30000);
|
|
87
|
+
|
|
88
|
+
test('type on non-existent selector returns actionable error', async () => {
|
|
89
|
+
const result = await wt.execute({
|
|
90
|
+
operation: 'interactive',
|
|
91
|
+
actions: [{
|
|
92
|
+
type: 'open-tab',
|
|
93
|
+
name: 'sel-type',
|
|
94
|
+
url: 'https://example.com',
|
|
95
|
+
actions: [{ action: 'type', selector: '#nonexistent-input', text: 'hello' }]
|
|
96
|
+
}]
|
|
97
|
+
}, { agentId: 'sel-test', context: {} });
|
|
98
|
+
|
|
99
|
+
expect(result.success).toBe(false);
|
|
100
|
+
const typeResult = result.data?.results?.[0]?.results?.[0];
|
|
101
|
+
expect(typeResult.success).toBe(false);
|
|
102
|
+
expect(typeResult.error).toContain('Element not found');
|
|
103
|
+
expect(typeResult.error).toContain('#nonexistent-input');
|
|
104
|
+
}, 30000);
|
|
105
|
+
|
|
106
|
+
test('hover on non-existent selector returns error', async () => {
|
|
107
|
+
const result = await wt.execute({
|
|
108
|
+
operation: 'interactive',
|
|
109
|
+
actions: [{
|
|
110
|
+
type: 'open-tab',
|
|
111
|
+
name: 'sel-hover',
|
|
112
|
+
url: 'https://example.com',
|
|
113
|
+
actions: [{ action: 'hover', selector: '.does-not-exist' }]
|
|
114
|
+
}]
|
|
115
|
+
}, { agentId: 'sel-test', context: {} });
|
|
116
|
+
|
|
117
|
+
expect(result.success).toBe(false);
|
|
118
|
+
const hoverResult = result.data?.results?.[0]?.results?.[0];
|
|
119
|
+
expect(hoverResult.success).toBe(false);
|
|
120
|
+
expect(hoverResult.error).toContain('Element not found');
|
|
121
|
+
}, 30000);
|
|
122
|
+
|
|
123
|
+
test('submit on non-existent form returns error', async () => {
|
|
124
|
+
const result = await wt.execute({
|
|
125
|
+
operation: 'interactive',
|
|
126
|
+
actions: [{
|
|
127
|
+
type: 'open-tab',
|
|
128
|
+
name: 'sel-submit',
|
|
129
|
+
url: 'https://example.com',
|
|
130
|
+
actions: [{ action: 'submit', selector: '#no-form' }]
|
|
131
|
+
}]
|
|
132
|
+
}, { agentId: 'sel-test', context: {} });
|
|
133
|
+
|
|
134
|
+
expect(result.success).toBe(false);
|
|
135
|
+
const submitResult = result.data?.results?.[0]?.results?.[0];
|
|
136
|
+
expect(submitResult.success).toBe(false);
|
|
137
|
+
expect(submitResult.error).toContain('Element not found');
|
|
138
|
+
}, 30000);
|
|
139
|
+
|
|
140
|
+
test('extract-text on non-existent element returns error', async () => {
|
|
141
|
+
const result = await wt.execute({
|
|
142
|
+
operation: 'interactive',
|
|
143
|
+
actions: [{
|
|
144
|
+
type: 'open-tab',
|
|
145
|
+
name: 'sel-extract',
|
|
146
|
+
url: 'https://example.com',
|
|
147
|
+
actions: [{ action: 'extract-text', selector: '#no-such-element' }]
|
|
148
|
+
}]
|
|
149
|
+
}, { agentId: 'sel-test', context: {} });
|
|
150
|
+
|
|
151
|
+
expect(result.success).toBe(false);
|
|
152
|
+
const extractResult = result.data?.results?.[0]?.results?.[0];
|
|
153
|
+
expect(extractResult.success).toBe(false);
|
|
154
|
+
expect(extractResult.error).toContain('Element not found');
|
|
155
|
+
}, 30000);
|
|
156
|
+
|
|
157
|
+
test('click with no selector returns clear error', async () => {
|
|
158
|
+
const result = await wt.execute({
|
|
159
|
+
operation: 'interactive',
|
|
160
|
+
actions: [{
|
|
161
|
+
type: 'open-tab',
|
|
162
|
+
name: 'sel-noselector',
|
|
163
|
+
url: 'https://example.com',
|
|
164
|
+
actions: [{ action: 'click' }]
|
|
165
|
+
}]
|
|
166
|
+
}, { agentId: 'sel-test', context: {} });
|
|
167
|
+
|
|
168
|
+
expect(result.success).toBe(false);
|
|
169
|
+
const clickResult = result.data?.results?.[0]?.results?.[0];
|
|
170
|
+
expect(clickResult.success).toBe(false);
|
|
171
|
+
expect(clickResult.error).toContain('selector is required');
|
|
172
|
+
}, 30000);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
// ─── URL Validation in Interactive ───────────────────────────────────────────
|
|
176
|
+
|
|
177
|
+
describe('URL validation in interactive actions', () => {
|
|
178
|
+
test('navigate to invalid URL returns error without crashing', async () => {
|
|
179
|
+
const result = await wt.execute({
|
|
180
|
+
operation: 'interactive',
|
|
181
|
+
actions: [{
|
|
182
|
+
type: 'open-tab',
|
|
183
|
+
name: 'url-invalid',
|
|
184
|
+
url: 'https://example.com',
|
|
185
|
+
actions: [{ action: 'navigate', url: 'not-a-valid-url' }]
|
|
186
|
+
}]
|
|
187
|
+
}, { agentId: 'url-test', context: {} });
|
|
188
|
+
|
|
189
|
+
expect(result.success).toBe(false);
|
|
190
|
+
const navResult = result.data?.results?.[0]?.results?.[0];
|
|
191
|
+
expect(navResult.success).toBe(false);
|
|
192
|
+
expect(navResult.error).toContain('Invalid URL format');
|
|
193
|
+
}, 30000);
|
|
194
|
+
|
|
195
|
+
test('navigate with no URL returns error', async () => {
|
|
196
|
+
const result = await wt.execute({
|
|
197
|
+
operation: 'interactive',
|
|
198
|
+
actions: [{
|
|
199
|
+
type: 'open-tab',
|
|
200
|
+
name: 'url-empty',
|
|
201
|
+
url: 'https://example.com',
|
|
202
|
+
actions: [{ action: 'navigate' }]
|
|
203
|
+
}]
|
|
204
|
+
}, { agentId: 'url-test', context: {} });
|
|
205
|
+
|
|
206
|
+
expect(result.success).toBe(false);
|
|
207
|
+
const navResult = result.data?.results?.[0]?.results?.[0];
|
|
208
|
+
expect(navResult.success).toBe(false);
|
|
209
|
+
expect(navResult.error).toContain('URL is required');
|
|
210
|
+
}, 30000);
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
// ─── Wait-for Timeout Feedback ───────────────────────────────────────────────
|
|
214
|
+
|
|
215
|
+
describe('Wait-for timeout feedback', () => {
|
|
216
|
+
test('wait-for non-existent element returns timeout error with context', async () => {
|
|
217
|
+
const result = await wt.execute({
|
|
218
|
+
operation: 'interactive',
|
|
219
|
+
actions: [{
|
|
220
|
+
type: 'open-tab',
|
|
221
|
+
name: 'wait-test',
|
|
222
|
+
url: 'https://example.com',
|
|
223
|
+
actions: [{ action: 'wait-for', selector: '#element-that-will-never-exist', timeout: 2000 }]
|
|
224
|
+
}]
|
|
225
|
+
}, { agentId: 'wait-test', context: {} });
|
|
226
|
+
|
|
227
|
+
expect(result.success).toBe(false);
|
|
228
|
+
const waitResult = result.data?.results?.[0]?.results?.[0];
|
|
229
|
+
expect(waitResult.success).toBe(false);
|
|
230
|
+
expect(waitResult.error).toContain('did not appear');
|
|
231
|
+
expect(waitResult.error).toContain('2s');
|
|
232
|
+
expect(waitResult.error).toContain('example.com');
|
|
233
|
+
expect(waitResult.suggestion).toBeDefined();
|
|
234
|
+
}, 15000);
|
|
235
|
+
|
|
236
|
+
test('wait-for with no selector returns error', async () => {
|
|
237
|
+
const result = await wt.execute({
|
|
238
|
+
operation: 'interactive',
|
|
239
|
+
actions: [{
|
|
240
|
+
type: 'open-tab',
|
|
241
|
+
name: 'wait-nosel',
|
|
242
|
+
url: 'https://example.com',
|
|
243
|
+
actions: [{ action: 'wait-for' }]
|
|
244
|
+
}]
|
|
245
|
+
}, { agentId: 'wait-test', context: {} });
|
|
246
|
+
|
|
247
|
+
expect(result.success).toBe(false);
|
|
248
|
+
const waitResult = result.data?.results?.[0]?.results?.[0];
|
|
249
|
+
expect(waitResult.success).toBe(false);
|
|
250
|
+
expect(waitResult.error).toContain('selector is required');
|
|
251
|
+
}, 15000);
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
// ─── Successful Operations ───────────────────────────────────────────────────
|
|
255
|
+
|
|
256
|
+
describe('Successful operations', () => {
|
|
257
|
+
test('extract-text on existing element returns content', async () => {
|
|
258
|
+
const result = await wt.execute({
|
|
259
|
+
operation: 'interactive',
|
|
260
|
+
actions: [{
|
|
261
|
+
type: 'open-tab',
|
|
262
|
+
name: 'success-extract',
|
|
263
|
+
url: 'https://example.com',
|
|
264
|
+
actions: [{ action: 'extract-text', selector: 'h1' }]
|
|
265
|
+
}]
|
|
266
|
+
}, { agentId: 'success-test', context: {} });
|
|
267
|
+
|
|
268
|
+
expect(result.success).toBe(true);
|
|
269
|
+
const extractResult = result.data?.results?.[0]?.results?.[0];
|
|
270
|
+
expect(extractResult.success).toBe(true);
|
|
271
|
+
expect(extractResult.text).toContain('Example Domain');
|
|
272
|
+
}, 30000);
|
|
273
|
+
|
|
274
|
+
test('navigate to valid URL returns success with HTTP status', async () => {
|
|
275
|
+
const result = await wt.execute({
|
|
276
|
+
operation: 'interactive',
|
|
277
|
+
actions: [{
|
|
278
|
+
type: 'open-tab',
|
|
279
|
+
name: 'success-nav',
|
|
280
|
+
url: 'https://example.com',
|
|
281
|
+
actions: [{ action: 'navigate', url: 'https://example.com' }]
|
|
282
|
+
}]
|
|
283
|
+
}, { agentId: 'success-test', context: {} });
|
|
284
|
+
|
|
285
|
+
expect(result.success).toBe(true);
|
|
286
|
+
const navResult = result.data?.results?.[0]?.results?.[0];
|
|
287
|
+
expect(navResult.success).toBe(true);
|
|
288
|
+
expect(navResult.httpStatus).toBe(200);
|
|
289
|
+
expect(navResult.url).toContain('example.com');
|
|
290
|
+
}, 30000);
|
|
291
|
+
|
|
292
|
+
test('click on existing element succeeds', async () => {
|
|
293
|
+
const result = await wt.execute({
|
|
294
|
+
operation: 'interactive',
|
|
295
|
+
actions: [{
|
|
296
|
+
type: 'open-tab',
|
|
297
|
+
name: 'success-click',
|
|
298
|
+
url: 'https://example.com',
|
|
299
|
+
actions: [{ action: 'click', selector: 'a' }]
|
|
300
|
+
}]
|
|
301
|
+
}, { agentId: 'success-test', context: {} });
|
|
302
|
+
|
|
303
|
+
expect(result.success).toBe(true);
|
|
304
|
+
const clickResult = result.data?.results?.[0]?.results?.[0];
|
|
305
|
+
expect(clickResult.success).toBe(true);
|
|
306
|
+
}, 30000);
|
|
307
|
+
|
|
308
|
+
test('wait/delay action succeeds with correct timing', async () => {
|
|
309
|
+
const start = Date.now();
|
|
310
|
+
const result = await wt.execute({
|
|
311
|
+
operation: 'interactive',
|
|
312
|
+
actions: [{
|
|
313
|
+
type: 'open-tab',
|
|
314
|
+
name: 'success-wait',
|
|
315
|
+
url: 'https://example.com',
|
|
316
|
+
actions: [{ action: 'wait', waitTime: 1000 }]
|
|
317
|
+
}]
|
|
318
|
+
}, { agentId: 'success-test', context: {} });
|
|
319
|
+
|
|
320
|
+
const elapsed = Date.now() - start;
|
|
321
|
+
expect(result.success).toBe(true);
|
|
322
|
+
const waitResult = result.data?.results?.[0]?.results?.[0];
|
|
323
|
+
expect(waitResult.success).toBe(true);
|
|
324
|
+
expect(waitResult.waited).toBe(1000);
|
|
325
|
+
// Should have taken at least ~1s
|
|
326
|
+
expect(elapsed).toBeGreaterThan(800);
|
|
327
|
+
}, 30000);
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
// ─── Search ──────────────────────────────────────────────────────────────────
|
|
331
|
+
|
|
332
|
+
describe('Search operations', () => {
|
|
333
|
+
test('search with valid query returns results', async () => {
|
|
334
|
+
const result = await wt.execute(
|
|
335
|
+
{ operation: 'search', query: 'javascript MDN', engine: 'duckduckgo', maxResults: 3 },
|
|
336
|
+
{ agentId: 'search-test', context: {} }
|
|
337
|
+
);
|
|
338
|
+
expect(result.success).toBe(true);
|
|
339
|
+
expect(result.resultsCount).toBeGreaterThan(0);
|
|
340
|
+
expect(result.data?.results?.length).toBeGreaterThan(0);
|
|
341
|
+
// Each result should have url and title
|
|
342
|
+
const firstResult = result.data.results[0];
|
|
343
|
+
expect(firstResult.url).toBeDefined();
|
|
344
|
+
expect(firstResult.title).toBeDefined();
|
|
345
|
+
}, 45000);
|
|
346
|
+
|
|
347
|
+
test('search with empty query returns error', async () => {
|
|
348
|
+
const result = await wt.execute(
|
|
349
|
+
{ operation: 'search', query: '' },
|
|
350
|
+
{ agentId: 'search-test', context: {} }
|
|
351
|
+
);
|
|
352
|
+
expect(result.success).toBe(false);
|
|
353
|
+
}, 10000);
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
// ─── Multi-Action Chains ─────────────────────────────────────────────────────
|
|
357
|
+
|
|
358
|
+
describe('Multi-action chains', () => {
|
|
359
|
+
test('chain of actions reports per-action success/failure', async () => {
|
|
360
|
+
const result = await wt.execute({
|
|
361
|
+
operation: 'interactive',
|
|
362
|
+
actions: [{
|
|
363
|
+
type: 'open-tab',
|
|
364
|
+
name: 'chain-test',
|
|
365
|
+
url: 'https://example.com',
|
|
366
|
+
actions: [
|
|
367
|
+
{ action: 'extract-text', selector: 'h1' }, // should succeed
|
|
368
|
+
{ action: 'click', selector: '#nonexistent-button' }, // should fail
|
|
369
|
+
{ action: 'extract-text', selector: 'p' }, // should succeed
|
|
370
|
+
]
|
|
371
|
+
}]
|
|
372
|
+
}, { agentId: 'chain-test', context: {} });
|
|
373
|
+
|
|
374
|
+
// Overall should be false because one action failed
|
|
375
|
+
expect(result.success).toBe(false);
|
|
376
|
+
// Warning lives on the open-tab action result (nested)
|
|
377
|
+
const openTabResult = result.data?.results?.[0];
|
|
378
|
+
expect(openTabResult.success).toBe(false);
|
|
379
|
+
expect(openTabResult.warning).toContain('1 of');
|
|
380
|
+
|
|
381
|
+
const actionResults = result.data?.results?.[0]?.results;
|
|
382
|
+
expect(actionResults).toHaveLength(3);
|
|
383
|
+
expect(actionResults[0].success).toBe(true); // extract h1
|
|
384
|
+
expect(actionResults[1].success).toBe(false); // click nonexistent
|
|
385
|
+
expect(actionResults[2].success).toBe(true); // extract p
|
|
386
|
+
}, 30000);
|
|
387
|
+
|
|
388
|
+
test('action chain continues after a failed action', async () => {
|
|
389
|
+
const result = await wt.execute({
|
|
390
|
+
operation: 'interactive',
|
|
391
|
+
actions: [{
|
|
392
|
+
type: 'open-tab',
|
|
393
|
+
name: 'continue-test',
|
|
394
|
+
url: 'https://example.com',
|
|
395
|
+
actions: [
|
|
396
|
+
{ action: 'click', selector: '#nope' }, // fails
|
|
397
|
+
{ action: 'extract-text', selector: 'h1' }, // still runs
|
|
398
|
+
]
|
|
399
|
+
}]
|
|
400
|
+
}, { agentId: 'chain-test', context: {} });
|
|
401
|
+
|
|
402
|
+
const actionResults = result.data?.results?.[0]?.results;
|
|
403
|
+
// Second action should still have executed
|
|
404
|
+
expect(actionResults).toHaveLength(2);
|
|
405
|
+
expect(actionResults[1].success).toBe(true);
|
|
406
|
+
expect(actionResults[1].text).toContain('Example Domain');
|
|
407
|
+
}, 30000);
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
// ─── Tab Reuse ───────────────────────────────────────────────────────────────
|
|
411
|
+
|
|
412
|
+
describe('Tab reuse', () => {
|
|
413
|
+
test('reusing existing tab preserves session and returns reused flag', async () => {
|
|
414
|
+
// First: open tab
|
|
415
|
+
await wt.execute({
|
|
416
|
+
operation: 'interactive',
|
|
417
|
+
actions: [{
|
|
418
|
+
type: 'open-tab',
|
|
419
|
+
name: 'reuse-tab',
|
|
420
|
+
url: 'https://example.com',
|
|
421
|
+
actions: []
|
|
422
|
+
}]
|
|
423
|
+
}, { agentId: 'reuse-test', context: {} });
|
|
424
|
+
|
|
425
|
+
// Second: reuse same tab
|
|
426
|
+
const result = await wt.execute({
|
|
427
|
+
operation: 'interactive',
|
|
428
|
+
actions: [{
|
|
429
|
+
type: 'open-tab',
|
|
430
|
+
name: 'reuse-tab',
|
|
431
|
+
actions: [{ action: 'extract-text', selector: 'h1' }]
|
|
432
|
+
}]
|
|
433
|
+
}, { agentId: 'reuse-test', context: {} });
|
|
434
|
+
|
|
435
|
+
expect(result.success).toBe(true);
|
|
436
|
+
expect(result.data?.results?.[0]?.reused).toBe(true);
|
|
437
|
+
const extractResult = result.data?.results?.[0]?.results?.[0];
|
|
438
|
+
expect(extractResult.text).toContain('Example Domain');
|
|
439
|
+
}, 30000);
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
// ─── JS Error & Network Failure Detection ────────────────────────────────────
|
|
443
|
+
|
|
444
|
+
describe('JS error and network failure detection', () => {
|
|
445
|
+
test('JS errors on page are captured in pageErrors tracker', async () => {
|
|
446
|
+
// Open tab first
|
|
447
|
+
await wt.execute({
|
|
448
|
+
operation: 'interactive',
|
|
449
|
+
actions: [{
|
|
450
|
+
type: 'open-tab',
|
|
451
|
+
name: 'jserr-tab',
|
|
452
|
+
url: 'https://example.com',
|
|
453
|
+
actions: [{ action: 'navigate', url: 'https://example.com' }]
|
|
454
|
+
}]
|
|
455
|
+
}, { agentId: 'jserr-test', context: {} });
|
|
456
|
+
|
|
457
|
+
// Access internal tab to verify listeners exist
|
|
458
|
+
const tab = wt.agentTabs.get('jserr-test')?.get('jserr-tab');
|
|
459
|
+
expect(tab).toBeDefined();
|
|
460
|
+
expect(tab.pageErrors).toBeDefined();
|
|
461
|
+
expect(Array.isArray(tab.pageErrors)).toBe(true);
|
|
462
|
+
expect(tab.networkFailures).toBeDefined();
|
|
463
|
+
expect(Array.isArray(tab.networkFailures)).toBe(true);
|
|
464
|
+
expect(tab.httpErrors).toBeDefined();
|
|
465
|
+
expect(Array.isArray(tab.httpErrors)).toBe(true);
|
|
466
|
+
}, 30000);
|
|
467
|
+
|
|
468
|
+
test('listeners are attached and capture uncaught JS errors', async () => {
|
|
469
|
+
// Open tab
|
|
470
|
+
await wt.execute({
|
|
471
|
+
operation: 'interactive',
|
|
472
|
+
actions: [{
|
|
473
|
+
type: 'open-tab',
|
|
474
|
+
name: 'jserr-capture',
|
|
475
|
+
url: 'https://example.com',
|
|
476
|
+
actions: []
|
|
477
|
+
}]
|
|
478
|
+
}, { agentId: 'jserr-capture', context: {} });
|
|
479
|
+
|
|
480
|
+
const tab = wt.agentTabs.get('jserr-capture')?.get('jserr-capture');
|
|
481
|
+
expect(tab).toBeDefined();
|
|
482
|
+
|
|
483
|
+
// Inject a JS error
|
|
484
|
+
await tab.page.evaluate(() => {
|
|
485
|
+
setTimeout(() => { throw new Error('Test uncaught error'); }, 10);
|
|
486
|
+
});
|
|
487
|
+
await new Promise(r => setTimeout(r, 500));
|
|
488
|
+
|
|
489
|
+
expect(tab.pageErrors.length).toBeGreaterThan(0);
|
|
490
|
+
expect(tab.pageErrors[0].message).toContain('Test uncaught error');
|
|
491
|
+
}, 30000);
|
|
492
|
+
|
|
493
|
+
test('failed network requests are captured', async () => {
|
|
494
|
+
await wt.execute({
|
|
495
|
+
operation: 'interactive',
|
|
496
|
+
actions: [{
|
|
497
|
+
type: 'open-tab',
|
|
498
|
+
name: 'netfail-capture',
|
|
499
|
+
url: 'https://example.com',
|
|
500
|
+
actions: []
|
|
501
|
+
}]
|
|
502
|
+
}, { agentId: 'netfail-capture', context: {} });
|
|
503
|
+
|
|
504
|
+
const tab = wt.agentTabs.get('netfail-capture')?.get('netfail-capture');
|
|
505
|
+
expect(tab).toBeDefined();
|
|
506
|
+
|
|
507
|
+
// Trigger a failed fetch
|
|
508
|
+
await tab.page.evaluate(() => {
|
|
509
|
+
fetch('https://api.nonexistent-domain-xyz-test.com/endpoint').catch(() => {});
|
|
510
|
+
});
|
|
511
|
+
await new Promise(r => setTimeout(r, 3000));
|
|
512
|
+
|
|
513
|
+
expect(tab.networkFailures.length).toBeGreaterThan(0);
|
|
514
|
+
expect(tab.networkFailures[0].errorText).toContain('ERR_NAME_NOT_RESOLVED');
|
|
515
|
+
expect(tab.networkFailures[0].url).toContain('nonexistent-domain-xyz-test');
|
|
516
|
+
}, 30000);
|
|
517
|
+
});
|
|
518
|
+
|
|
519
|
+
// ─── Result Structure ────────────────────────────────────────────────────────
|
|
520
|
+
|
|
521
|
+
describe('Result structure and data consistency', () => {
|
|
522
|
+
test('fetch result has required fields', async () => {
|
|
523
|
+
const result = await wt.execute(
|
|
524
|
+
{ operation: 'fetch', url: 'https://example.com', formats: ['title', 'text'] },
|
|
525
|
+
{ agentId: 'struct-test', context: {} }
|
|
526
|
+
);
|
|
527
|
+
expect(result).toHaveProperty('success');
|
|
528
|
+
expect(result).toHaveProperty('operation', 'fetch');
|
|
529
|
+
expect(result).toHaveProperty('toolUsed', 'web');
|
|
530
|
+
expect(result).toHaveProperty('data');
|
|
531
|
+
expect(result).toHaveProperty('title');
|
|
532
|
+
expect(result).toHaveProperty('httpStatus');
|
|
533
|
+
}, 30000);
|
|
534
|
+
|
|
535
|
+
test('interactive result has actionsExecuted count', async () => {
|
|
536
|
+
const result = await wt.execute({
|
|
537
|
+
operation: 'interactive',
|
|
538
|
+
actions: [{
|
|
539
|
+
type: 'open-tab',
|
|
540
|
+
name: 'struct-tab',
|
|
541
|
+
url: 'https://example.com',
|
|
542
|
+
actions: [
|
|
543
|
+
{ action: 'extract-text', selector: 'h1' },
|
|
544
|
+
{ action: 'extract-text', selector: 'p' },
|
|
545
|
+
]
|
|
546
|
+
}]
|
|
547
|
+
}, { agentId: 'struct-test', context: {} });
|
|
548
|
+
|
|
549
|
+
expect(result.data?.results?.[0]?.actionsExecuted).toBe(2);
|
|
550
|
+
expect(result.data?.results?.[0]?.results).toHaveLength(2);
|
|
551
|
+
}, 30000);
|
|
552
|
+
|
|
553
|
+
test('error results include suggestion field', async () => {
|
|
554
|
+
const result = await wt.execute({
|
|
555
|
+
operation: 'interactive',
|
|
556
|
+
actions: [{
|
|
557
|
+
type: 'open-tab',
|
|
558
|
+
name: 'suggest-tab',
|
|
559
|
+
url: 'https://example.com',
|
|
560
|
+
actions: [{ action: 'click', selector: '#nope' }]
|
|
561
|
+
}]
|
|
562
|
+
}, { agentId: 'struct-test', context: {} });
|
|
563
|
+
|
|
564
|
+
const clickResult = result.data?.results?.[0]?.results?.[0];
|
|
565
|
+
expect(clickResult.suggestion).toBeDefined();
|
|
566
|
+
expect(typeof clickResult.suggestion).toBe('string');
|
|
567
|
+
expect(clickResult.suggestion.length).toBeGreaterThan(0);
|
|
568
|
+
}, 30000);
|
|
569
|
+
});
|