Add comprehensive development roadmap via GitHub Issues
Created 10 detailed GitHub issues covering: - Project activation and management UI (#1-2) - Worker node coordination and visualization (#3-4) - Automated GitHub repository scanning (#5) - Intelligent model-to-issue matching (#6) - Multi-model task execution system (#7) - N8N workflow integration (#8) - Hive-Bzzz P2P bridge (#9) - Peer assistance protocol (#10) Each issue includes detailed specifications, acceptance criteria, technical implementation notes, and dependency mapping. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
7
frontend/node_modules/better-opn/LICENSE
generated
vendored
Normal file
7
frontend/node_modules/better-opn/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright 2018 Michael Lin <linzichunzf@hotmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
34
frontend/node_modules/better-opn/README.md
generated
vendored
Normal file
34
frontend/node_modules/better-opn/README.md
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
# better-opn
|
||||
|
||||
> A better opn. Reuse the same tab on Chrome for 👨💻. Inspire by [create-react-app](https://github.com/facebook/create-react-app)
|
||||
|
||||
## Install
|
||||
|
||||
> `$ yarn add better-opn`
|
||||
|
||||
> `$ npm install better-opn`
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
If you wish to overwrite the default browser, override `BROWSER` environment variable to your desired browser name (name is platform dependent).
|
||||
|
||||
```js
|
||||
const opn = require('better-opn');
|
||||
|
||||
opn('http://localhost:3000');
|
||||
```
|
||||
|
||||
### Reuse tab by match host
|
||||
|
||||
In case your app can navigate to another pathnames and still want to reuse opened tab, set environment variable `OPEN_MATCH_HOST_ONLY=true` can tell this program to find reusable tab by only match the host part of your URL.
|
||||
|
||||
```js
|
||||
process.env.OPEN_MATCH_HOST_ONLY = 'true';
|
||||
|
||||
opn('http://localhost:3000/foo/bar'); // This will reuse any tab with URL starting with http://localhost:3000/
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
- [Michael Lin](https://michaellin.me)
|
||||
127
frontend/node_modules/better-opn/dist/index.js
generated
vendored
Normal file
127
frontend/node_modules/better-opn/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
"use strict";
|
||||
|
||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
||||
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var {
|
||||
execSync
|
||||
} = require('child_process');
|
||||
|
||||
var OSX_CHROME = 'google chrome';
|
||||
var Actions = Object.freeze({
|
||||
NONE: 0,
|
||||
BROWSER: 1
|
||||
});
|
||||
|
||||
var getBrowserEnv = () => {
|
||||
// Attempt to honor this environment variable.
|
||||
// It is specific to the operating system.
|
||||
// See https://github.com/sindresorhus/open#app for documentation.
|
||||
var value = process.env.BROWSER;
|
||||
var args = process.env.BROWSER_ARGS ? process.env.BROWSER_ARGS.split(' ') : [];
|
||||
var action;
|
||||
|
||||
if (!value) {
|
||||
// Default.
|
||||
action = Actions.BROWSER;
|
||||
} else if (value.toLowerCase() === 'none') {
|
||||
action = Actions.NONE;
|
||||
} else {
|
||||
action = Actions.BROWSER;
|
||||
}
|
||||
|
||||
return {
|
||||
action,
|
||||
value,
|
||||
args
|
||||
};
|
||||
};
|
||||
|
||||
var normalizeURLToMatch = target => {
|
||||
// We may encounter URL parse error but want to fallback to default behavior
|
||||
try {
|
||||
// Url module is deprecated on newer version of NodeJS, only use it when URL class is not supported (like Node 8)
|
||||
var URL = // eslint-disable-next-line node/prefer-global/url
|
||||
typeof global.URL === 'undefined' ? require('url').URL : global.URL;
|
||||
var url = new URL(target);
|
||||
return url.origin;
|
||||
} catch (_unused) {
|
||||
return target;
|
||||
}
|
||||
}; // Copy from
|
||||
// https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js#L64
|
||||
// eslint-disable-next-line unicorn/prevent-abbreviations
|
||||
|
||||
|
||||
var startBrowserProcess = function startBrowserProcess(browser, url) {
|
||||
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||
var args = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
||||
// If we're on OS X, the user hasn't specifically
|
||||
// requested a different browser, we can try opening
|
||||
// Chrome with AppleScript. This lets us reuse an
|
||||
// existing tab when possible instead of creating a new one.
|
||||
var shouldTryOpenChromiumWithAppleScript = process.platform === 'darwin' && (typeof browser !== 'string' || browser === OSX_CHROME);
|
||||
|
||||
if (shouldTryOpenChromiumWithAppleScript) {
|
||||
// Will use the first open browser found from list
|
||||
var supportedChromiumBrowsers = ['Google Chrome Canary', 'Google Chrome', 'Microsoft Edge', 'Brave Browser', 'Vivaldi', 'Chromium'];
|
||||
|
||||
for (var chromiumBrowser of supportedChromiumBrowsers) {
|
||||
try {
|
||||
// Try our best to reuse existing tab
|
||||
// on OSX Chromium-based browser with AppleScript
|
||||
execSync('ps cax | grep "' + chromiumBrowser + '"');
|
||||
execSync("osascript ../openChrome.applescript \"".concat(encodeURI(url), "\" \"").concat(process.env.OPEN_MATCH_HOST_ONLY === 'true' ? encodeURI(normalizeURLToMatch(url)) : encodeURI(url), "\" \"").concat(chromiumBrowser, "\""), {
|
||||
cwd: __dirname,
|
||||
stdio: 'ignore'
|
||||
});
|
||||
return Promise.resolve(true); // eslint-disable-next-line no-unused-vars
|
||||
} catch (error) {// Ignore errors.
|
||||
// It it breaks, it will fallback to `opn` anyway
|
||||
}
|
||||
}
|
||||
} // Another special case: on OS X, check if BROWSER has been set to "open".
|
||||
// In this case, instead of passing `open` to `opn` (which won't work),
|
||||
// just ignore it (thus ensuring the intended behavior, i.e. opening the system browser):
|
||||
// https://github.com/facebook/create-react-app/pull/1690#issuecomment-283518768
|
||||
|
||||
|
||||
if (process.platform === 'darwin' && browser === 'open') {
|
||||
browser = undefined;
|
||||
} // Fallback to opn
|
||||
// (It will always open new tab)
|
||||
|
||||
|
||||
var options = _objectSpread({
|
||||
app: {
|
||||
name: browser,
|
||||
arguments: args
|
||||
},
|
||||
wait: false
|
||||
}, opts);
|
||||
|
||||
return require('open')(url, options);
|
||||
};
|
||||
|
||||
module.exports = (target, options) => {
|
||||
var {
|
||||
action,
|
||||
value,
|
||||
args
|
||||
} = getBrowserEnv();
|
||||
|
||||
switch (action) {
|
||||
case Actions.NONE:
|
||||
// Special case: BROWSER="none" will prevent opening completely.
|
||||
return false;
|
||||
|
||||
case Actions.BROWSER:
|
||||
return startBrowserProcess(value, target, options, args);
|
||||
|
||||
default:
|
||||
throw new Error('Not implemented.');
|
||||
}
|
||||
};
|
||||
94
frontend/node_modules/better-opn/openChrome.applescript
generated
vendored
Normal file
94
frontend/node_modules/better-opn/openChrome.applescript
generated
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
(*
|
||||
Copyright (c) 2015-present, Facebook, Inc.
|
||||
This source code is licensed under the MIT license found in the
|
||||
LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
|
||||
property targetTab: null
|
||||
property targetTabIndex: -1
|
||||
property targetWindow: null
|
||||
property theProgram: "Google Chrome"
|
||||
|
||||
on run argv
|
||||
set theURL to item 1 of argv
|
||||
set matchURL to item 2 of argv
|
||||
|
||||
-- Allow requested program to be optional,
|
||||
-- default to Google Chrome
|
||||
if (count of argv) > 2 then
|
||||
set theProgram to item 3 of argv
|
||||
end if
|
||||
|
||||
using terms from application "Google Chrome"
|
||||
tell application theProgram
|
||||
|
||||
if (count every window) = 0 then
|
||||
make new window
|
||||
end if
|
||||
|
||||
-- 1: Looking for tab running debugger
|
||||
-- then, Reload debugging tab if found
|
||||
-- then return
|
||||
set found to my lookupTabWithUrl(matchURL)
|
||||
if found then
|
||||
set targetWindow's active tab index to targetTabIndex
|
||||
tell targetTab to reload
|
||||
tell targetWindow to activate
|
||||
set index of targetWindow to 1
|
||||
return
|
||||
end if
|
||||
|
||||
-- 2: Looking for Empty tab
|
||||
-- In case debugging tab was not found
|
||||
-- We try to find an empty tab instead
|
||||
set found to my lookupTabWithUrl("chrome://newtab/")
|
||||
if found then
|
||||
set targetWindow's active tab index to targetTabIndex
|
||||
set URL of targetTab to theURL
|
||||
tell targetWindow to activate
|
||||
return
|
||||
end if
|
||||
|
||||
-- 3: Create new tab
|
||||
-- both debugging and empty tab were not found
|
||||
-- make a new tab with url
|
||||
tell window 1
|
||||
activate
|
||||
make new tab with properties {URL:theURL}
|
||||
end tell
|
||||
end tell
|
||||
end using terms from
|
||||
end run
|
||||
|
||||
-- Function:
|
||||
-- Lookup tab with given url
|
||||
-- if found, store tab, index, and window in properties
|
||||
-- (properties were declared on top of file)
|
||||
on lookupTabWithUrl(lookupUrl)
|
||||
using terms from application "Google Chrome"
|
||||
tell application theProgram
|
||||
-- Find a tab with the given url
|
||||
set found to false
|
||||
set theTabIndex to -1
|
||||
repeat with theWindow in every window
|
||||
set theTabIndex to 0
|
||||
repeat with theTab in every tab of theWindow
|
||||
set theTabIndex to theTabIndex + 1
|
||||
if (theTab's URL as string) contains lookupUrl then
|
||||
-- assign tab, tab index, and window to properties
|
||||
set targetTab to theTab
|
||||
set targetTabIndex to theTabIndex
|
||||
set targetWindow to theWindow
|
||||
set found to true
|
||||
exit repeat
|
||||
end if
|
||||
end repeat
|
||||
|
||||
if found then
|
||||
exit repeat
|
||||
end if
|
||||
end repeat
|
||||
end tell
|
||||
end using terms from
|
||||
return found
|
||||
end lookupTabWithUrl
|
||||
63
frontend/node_modules/better-opn/package.json
generated
vendored
Normal file
63
frontend/node_modules/better-opn/package.json
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"name": "better-opn",
|
||||
"version": "3.0.2",
|
||||
"description": "A better opn. Reuse the same tab on Chrome for 👨💻.",
|
||||
"main": "dist/index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ExiaSR/better-opn"
|
||||
},
|
||||
"author": "Michael Lin <linzichunzf@hotmail.com>",
|
||||
"license": "MIT",
|
||||
"private": false,
|
||||
"keywords": [
|
||||
"opn",
|
||||
"open",
|
||||
"opener",
|
||||
"launch",
|
||||
"browser"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"openChrome.applescript",
|
||||
"package.json",
|
||||
"README.md",
|
||||
"yarn.lock"
|
||||
],
|
||||
"xo": {
|
||||
"_nodeVersion": "falling back to --node-version cli argument since this is not working",
|
||||
"nodeVersion": ">=10.0.0",
|
||||
"space": 2,
|
||||
"prettier": true,
|
||||
"envs": [
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"ava": {
|
||||
"files": [
|
||||
"tests/**/*",
|
||||
"!test/host-only.js"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"build": "babel src -d dist",
|
||||
"_lint": "--node-version is a work around since we use v8 as target in babel anyway",
|
||||
"lint": "xo --fix --node-version \">=10.0.0\"",
|
||||
"test": "ava"
|
||||
},
|
||||
"dependencies": {
|
||||
"open": "^8.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"ava": "^3.6.0",
|
||||
"lodash.countby": "^4.6.0",
|
||||
"puppeteer-core": "^8.0.0",
|
||||
"xo": "^0.28.3"
|
||||
}
|
||||
}
|
||||
6318
frontend/node_modules/better-opn/yarn.lock
generated
vendored
Normal file
6318
frontend/node_modules/better-opn/yarn.lock
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user