relay-os 0.1.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 +21 -0
- package/README.md +389 -0
- package/backend/hooks/relay-antigravity-stop.js +3 -0
- package/backend/hooks/relay-claude-stop.js +3 -0
- package/backend/hooks/relay-codex-stop.js +3 -0
- package/backend/hooks/relay-copilot-stop.js +3 -0
- package/backend/hooks/relay-cursor-stop.js +3 -0
- package/backend/hooks/relay-hook-lib.js +170 -0
- package/backend/lib/relayAuth.js +41 -0
- package/backend/lib/relayCompileIr.js +276 -0
- package/backend/lib/relayContext.js +519 -0
- package/backend/lib/relayDashboard.js +118 -0
- package/backend/lib/relayHooks.js +190 -0
- package/backend/lib/relayInstall.js +339 -0
- package/backend/lib/relayMeta.js +61 -0
- package/backend/lib/relayProjects.js +225 -0
- package/backend/lib/relayServe.js +120 -0
- package/backend/lib/relayStore.js +173 -0
- package/backend/lib/relayUi.js +68 -0
- package/backend/lib/timeline.js +101 -0
- package/backend/lib/vscdb.js +42 -0
- package/backend/lib/vscodeHistory.js +227 -0
- package/backend/lib/vscodeWorkspace.js +77 -0
- package/backend/mcp/server.js +228 -0
- package/backend/node_modules/.bin/mime +16 -0
- package/backend/node_modules/.bin/mime.cmd +17 -0
- package/backend/node_modules/.bin/mime.ps1 +28 -0
- package/backend/node_modules/.package-lock.json +846 -0
- package/backend/node_modules/accepts/HISTORY.md +243 -0
- package/backend/node_modules/accepts/LICENSE +23 -0
- package/backend/node_modules/accepts/README.md +140 -0
- package/backend/node_modules/accepts/index.js +238 -0
- package/backend/node_modules/accepts/package.json +47 -0
- package/backend/node_modules/array-flatten/LICENSE +21 -0
- package/backend/node_modules/array-flatten/README.md +43 -0
- package/backend/node_modules/array-flatten/array-flatten.js +64 -0
- package/backend/node_modules/array-flatten/package.json +39 -0
- package/backend/node_modules/body-parser/HISTORY.md +686 -0
- package/backend/node_modules/body-parser/LICENSE +23 -0
- package/backend/node_modules/body-parser/README.md +476 -0
- package/backend/node_modules/body-parser/index.js +156 -0
- package/backend/node_modules/body-parser/lib/read.js +205 -0
- package/backend/node_modules/body-parser/lib/types/json.js +243 -0
- package/backend/node_modules/body-parser/lib/types/raw.js +101 -0
- package/backend/node_modules/body-parser/lib/types/text.js +121 -0
- package/backend/node_modules/body-parser/lib/types/urlencoded.js +299 -0
- package/backend/node_modules/body-parser/package.json +55 -0
- package/backend/node_modules/bytes/History.md +97 -0
- package/backend/node_modules/bytes/LICENSE +23 -0
- package/backend/node_modules/bytes/Readme.md +152 -0
- package/backend/node_modules/bytes/index.js +170 -0
- package/backend/node_modules/bytes/package.json +42 -0
- package/backend/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/backend/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/backend/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/backend/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/backend/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/backend/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/backend/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/backend/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/backend/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/backend/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/backend/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/backend/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/backend/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/backend/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/backend/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/backend/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/backend/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/backend/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/backend/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/backend/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/backend/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/backend/node_modules/call-bound/.eslintrc +13 -0
- package/backend/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/backend/node_modules/call-bound/.nycrc +9 -0
- package/backend/node_modules/call-bound/CHANGELOG.md +42 -0
- package/backend/node_modules/call-bound/LICENSE +21 -0
- package/backend/node_modules/call-bound/README.md +53 -0
- package/backend/node_modules/call-bound/index.d.ts +94 -0
- package/backend/node_modules/call-bound/index.js +19 -0
- package/backend/node_modules/call-bound/package.json +99 -0
- package/backend/node_modules/call-bound/test/index.js +61 -0
- package/backend/node_modules/call-bound/tsconfig.json +10 -0
- package/backend/node_modules/content-disposition/HISTORY.md +60 -0
- package/backend/node_modules/content-disposition/LICENSE +22 -0
- package/backend/node_modules/content-disposition/README.md +142 -0
- package/backend/node_modules/content-disposition/index.js +458 -0
- package/backend/node_modules/content-disposition/package.json +44 -0
- package/backend/node_modules/content-type/HISTORY.md +29 -0
- package/backend/node_modules/content-type/LICENSE +22 -0
- package/backend/node_modules/content-type/README.md +94 -0
- package/backend/node_modules/content-type/index.js +225 -0
- package/backend/node_modules/content-type/package.json +42 -0
- package/backend/node_modules/cookie/LICENSE +24 -0
- package/backend/node_modules/cookie/README.md +317 -0
- package/backend/node_modules/cookie/SECURITY.md +25 -0
- package/backend/node_modules/cookie/index.js +335 -0
- package/backend/node_modules/cookie/package.json +44 -0
- package/backend/node_modules/cookie-signature/History.md +42 -0
- package/backend/node_modules/cookie-signature/Readme.md +42 -0
- package/backend/node_modules/cookie-signature/index.js +51 -0
- package/backend/node_modules/cookie-signature/package.json +18 -0
- package/backend/node_modules/cors/LICENSE +22 -0
- package/backend/node_modules/cors/README.md +277 -0
- package/backend/node_modules/cors/lib/index.js +238 -0
- package/backend/node_modules/cors/package.json +42 -0
- package/backend/node_modules/debug/.coveralls.yml +1 -0
- package/backend/node_modules/debug/.eslintrc +11 -0
- package/backend/node_modules/debug/.travis.yml +14 -0
- package/backend/node_modules/debug/CHANGELOG.md +362 -0
- package/backend/node_modules/debug/LICENSE +19 -0
- package/backend/node_modules/debug/Makefile +50 -0
- package/backend/node_modules/debug/README.md +312 -0
- package/backend/node_modules/debug/component.json +19 -0
- package/backend/node_modules/debug/karma.conf.js +70 -0
- package/backend/node_modules/debug/node.js +1 -0
- package/backend/node_modules/debug/package.json +49 -0
- package/backend/node_modules/debug/src/browser.js +185 -0
- package/backend/node_modules/debug/src/debug.js +202 -0
- package/backend/node_modules/debug/src/index.js +10 -0
- package/backend/node_modules/debug/src/inspector-log.js +15 -0
- package/backend/node_modules/debug/src/node.js +248 -0
- package/backend/node_modules/depd/History.md +103 -0
- package/backend/node_modules/depd/LICENSE +22 -0
- package/backend/node_modules/depd/Readme.md +280 -0
- package/backend/node_modules/depd/index.js +538 -0
- package/backend/node_modules/depd/lib/browser/index.js +77 -0
- package/backend/node_modules/depd/package.json +45 -0
- package/backend/node_modules/destroy/LICENSE +23 -0
- package/backend/node_modules/destroy/README.md +63 -0
- package/backend/node_modules/destroy/index.js +209 -0
- package/backend/node_modules/destroy/package.json +48 -0
- package/backend/node_modules/dunder-proto/.eslintrc +5 -0
- package/backend/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/backend/node_modules/dunder-proto/.nycrc +13 -0
- package/backend/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/backend/node_modules/dunder-proto/LICENSE +21 -0
- package/backend/node_modules/dunder-proto/README.md +54 -0
- package/backend/node_modules/dunder-proto/get.d.ts +5 -0
- package/backend/node_modules/dunder-proto/get.js +30 -0
- package/backend/node_modules/dunder-proto/package.json +76 -0
- package/backend/node_modules/dunder-proto/set.d.ts +5 -0
- package/backend/node_modules/dunder-proto/set.js +35 -0
- package/backend/node_modules/dunder-proto/test/get.js +34 -0
- package/backend/node_modules/dunder-proto/test/index.js +4 -0
- package/backend/node_modules/dunder-proto/test/set.js +50 -0
- package/backend/node_modules/dunder-proto/tsconfig.json +9 -0
- package/backend/node_modules/ee-first/LICENSE +22 -0
- package/backend/node_modules/ee-first/README.md +80 -0
- package/backend/node_modules/ee-first/index.js +95 -0
- package/backend/node_modules/ee-first/package.json +29 -0
- package/backend/node_modules/encodeurl/LICENSE +22 -0
- package/backend/node_modules/encodeurl/README.md +109 -0
- package/backend/node_modules/encodeurl/index.js +60 -0
- package/backend/node_modules/encodeurl/package.json +40 -0
- package/backend/node_modules/es-define-property/.eslintrc +13 -0
- package/backend/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/backend/node_modules/es-define-property/.nycrc +9 -0
- package/backend/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/backend/node_modules/es-define-property/LICENSE +21 -0
- package/backend/node_modules/es-define-property/README.md +49 -0
- package/backend/node_modules/es-define-property/index.d.ts +3 -0
- package/backend/node_modules/es-define-property/index.js +14 -0
- package/backend/node_modules/es-define-property/package.json +81 -0
- package/backend/node_modules/es-define-property/test/index.js +56 -0
- package/backend/node_modules/es-define-property/tsconfig.json +10 -0
- package/backend/node_modules/es-errors/.eslintrc +5 -0
- package/backend/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/backend/node_modules/es-errors/CHANGELOG.md +40 -0
- package/backend/node_modules/es-errors/LICENSE +21 -0
- package/backend/node_modules/es-errors/README.md +55 -0
- package/backend/node_modules/es-errors/eval.d.ts +3 -0
- package/backend/node_modules/es-errors/eval.js +4 -0
- package/backend/node_modules/es-errors/index.d.ts +3 -0
- package/backend/node_modules/es-errors/index.js +4 -0
- package/backend/node_modules/es-errors/package.json +80 -0
- package/backend/node_modules/es-errors/range.d.ts +3 -0
- package/backend/node_modules/es-errors/range.js +4 -0
- package/backend/node_modules/es-errors/ref.d.ts +3 -0
- package/backend/node_modules/es-errors/ref.js +4 -0
- package/backend/node_modules/es-errors/syntax.d.ts +3 -0
- package/backend/node_modules/es-errors/syntax.js +4 -0
- package/backend/node_modules/es-errors/test/index.js +19 -0
- package/backend/node_modules/es-errors/tsconfig.json +49 -0
- package/backend/node_modules/es-errors/type.d.ts +3 -0
- package/backend/node_modules/es-errors/type.js +4 -0
- package/backend/node_modules/es-errors/uri.d.ts +3 -0
- package/backend/node_modules/es-errors/uri.js +4 -0
- package/backend/node_modules/es-object-atoms/.eslintrc +16 -0
- package/backend/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/backend/node_modules/es-object-atoms/CHANGELOG.md +44 -0
- package/backend/node_modules/es-object-atoms/LICENSE +21 -0
- package/backend/node_modules/es-object-atoms/README.md +63 -0
- package/backend/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/backend/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/backend/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/backend/node_modules/es-object-atoms/ToObject.js +10 -0
- package/backend/node_modules/es-object-atoms/index.d.ts +3 -0
- package/backend/node_modules/es-object-atoms/index.js +4 -0
- package/backend/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/backend/node_modules/es-object-atoms/isObject.js +6 -0
- package/backend/node_modules/es-object-atoms/package.json +79 -0
- package/backend/node_modules/es-object-atoms/test/index.js +38 -0
- package/backend/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/backend/node_modules/escape-html/LICENSE +24 -0
- package/backend/node_modules/escape-html/Readme.md +43 -0
- package/backend/node_modules/escape-html/index.js +78 -0
- package/backend/node_modules/escape-html/package.json +24 -0
- package/backend/node_modules/etag/HISTORY.md +83 -0
- package/backend/node_modules/etag/LICENSE +22 -0
- package/backend/node_modules/etag/README.md +159 -0
- package/backend/node_modules/etag/index.js +131 -0
- package/backend/node_modules/etag/package.json +47 -0
- package/backend/node_modules/express/History.md +3676 -0
- package/backend/node_modules/express/LICENSE +24 -0
- package/backend/node_modules/express/Readme.md +260 -0
- package/backend/node_modules/express/index.js +11 -0
- package/backend/node_modules/express/lib/application.js +661 -0
- package/backend/node_modules/express/lib/express.js +116 -0
- package/backend/node_modules/express/lib/middleware/init.js +43 -0
- package/backend/node_modules/express/lib/middleware/query.js +47 -0
- package/backend/node_modules/express/lib/request.js +525 -0
- package/backend/node_modules/express/lib/response.js +1179 -0
- package/backend/node_modules/express/lib/router/index.js +673 -0
- package/backend/node_modules/express/lib/router/layer.js +181 -0
- package/backend/node_modules/express/lib/router/route.js +230 -0
- package/backend/node_modules/express/lib/utils.js +304 -0
- package/backend/node_modules/express/lib/view.js +182 -0
- package/backend/node_modules/express/package.json +102 -0
- package/backend/node_modules/finalhandler/HISTORY.md +216 -0
- package/backend/node_modules/finalhandler/LICENSE +22 -0
- package/backend/node_modules/finalhandler/README.md +147 -0
- package/backend/node_modules/finalhandler/SECURITY.md +25 -0
- package/backend/node_modules/finalhandler/index.js +341 -0
- package/backend/node_modules/finalhandler/package.json +47 -0
- package/backend/node_modules/forwarded/HISTORY.md +21 -0
- package/backend/node_modules/forwarded/LICENSE +22 -0
- package/backend/node_modules/forwarded/README.md +57 -0
- package/backend/node_modules/forwarded/index.js +90 -0
- package/backend/node_modules/forwarded/package.json +45 -0
- package/backend/node_modules/fresh/HISTORY.md +70 -0
- package/backend/node_modules/fresh/LICENSE +23 -0
- package/backend/node_modules/fresh/README.md +119 -0
- package/backend/node_modules/fresh/index.js +137 -0
- package/backend/node_modules/fresh/package.json +46 -0
- package/backend/node_modules/function-bind/.eslintrc +21 -0
- package/backend/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/backend/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/backend/node_modules/function-bind/.nycrc +13 -0
- package/backend/node_modules/function-bind/CHANGELOG.md +136 -0
- package/backend/node_modules/function-bind/LICENSE +20 -0
- package/backend/node_modules/function-bind/README.md +46 -0
- package/backend/node_modules/function-bind/implementation.js +84 -0
- package/backend/node_modules/function-bind/index.js +5 -0
- package/backend/node_modules/function-bind/package.json +87 -0
- package/backend/node_modules/function-bind/test/.eslintrc +9 -0
- package/backend/node_modules/function-bind/test/index.js +252 -0
- package/backend/node_modules/get-intrinsic/.eslintrc +42 -0
- package/backend/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/backend/node_modules/get-intrinsic/.nycrc +9 -0
- package/backend/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/backend/node_modules/get-intrinsic/LICENSE +21 -0
- package/backend/node_modules/get-intrinsic/README.md +71 -0
- package/backend/node_modules/get-intrinsic/index.js +378 -0
- package/backend/node_modules/get-intrinsic/package.json +97 -0
- package/backend/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/backend/node_modules/get-proto/.eslintrc +10 -0
- package/backend/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/backend/node_modules/get-proto/.nycrc +9 -0
- package/backend/node_modules/get-proto/CHANGELOG.md +21 -0
- package/backend/node_modules/get-proto/LICENSE +21 -0
- package/backend/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/backend/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/backend/node_modules/get-proto/README.md +50 -0
- package/backend/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/backend/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/backend/node_modules/get-proto/index.d.ts +5 -0
- package/backend/node_modules/get-proto/index.js +27 -0
- package/backend/node_modules/get-proto/package.json +81 -0
- package/backend/node_modules/get-proto/test/index.js +68 -0
- package/backend/node_modules/get-proto/tsconfig.json +9 -0
- package/backend/node_modules/gopd/.eslintrc +16 -0
- package/backend/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/backend/node_modules/gopd/CHANGELOG.md +45 -0
- package/backend/node_modules/gopd/LICENSE +21 -0
- package/backend/node_modules/gopd/README.md +40 -0
- package/backend/node_modules/gopd/gOPD.d.ts +1 -0
- package/backend/node_modules/gopd/gOPD.js +4 -0
- package/backend/node_modules/gopd/index.d.ts +5 -0
- package/backend/node_modules/gopd/index.js +15 -0
- package/backend/node_modules/gopd/package.json +77 -0
- package/backend/node_modules/gopd/test/index.js +36 -0
- package/backend/node_modules/gopd/tsconfig.json +9 -0
- package/backend/node_modules/has-symbols/.eslintrc +11 -0
- package/backend/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/backend/node_modules/has-symbols/.nycrc +9 -0
- package/backend/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/backend/node_modules/has-symbols/LICENSE +21 -0
- package/backend/node_modules/has-symbols/README.md +46 -0
- package/backend/node_modules/has-symbols/index.d.ts +3 -0
- package/backend/node_modules/has-symbols/index.js +14 -0
- package/backend/node_modules/has-symbols/package.json +111 -0
- package/backend/node_modules/has-symbols/shams.d.ts +3 -0
- package/backend/node_modules/has-symbols/shams.js +45 -0
- package/backend/node_modules/has-symbols/test/index.js +22 -0
- package/backend/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/backend/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/backend/node_modules/has-symbols/test/tests.js +58 -0
- package/backend/node_modules/has-symbols/tsconfig.json +10 -0
- package/backend/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/backend/node_modules/hasown/.nycrc +13 -0
- package/backend/node_modules/hasown/CHANGELOG.md +58 -0
- package/backend/node_modules/hasown/LICENSE +21 -0
- package/backend/node_modules/hasown/README.md +40 -0
- package/backend/node_modules/hasown/eslint.config.mjs +6 -0
- package/backend/node_modules/hasown/index.d.ts +3 -0
- package/backend/node_modules/hasown/index.js +8 -0
- package/backend/node_modules/hasown/package.json +91 -0
- package/backend/node_modules/hasown/tsconfig.json +6 -0
- package/backend/node_modules/http-errors/HISTORY.md +186 -0
- package/backend/node_modules/http-errors/LICENSE +23 -0
- package/backend/node_modules/http-errors/README.md +169 -0
- package/backend/node_modules/http-errors/index.js +290 -0
- package/backend/node_modules/http-errors/package.json +54 -0
- package/backend/node_modules/iconv-lite/Changelog.md +162 -0
- package/backend/node_modules/iconv-lite/LICENSE +21 -0
- package/backend/node_modules/iconv-lite/README.md +156 -0
- package/backend/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/backend/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/backend/node_modules/iconv-lite/encodings/index.js +22 -0
- package/backend/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/backend/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/backend/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/backend/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/backend/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/backend/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/backend/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/backend/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/backend/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/backend/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/backend/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/backend/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/backend/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/backend/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/backend/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/backend/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/backend/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/backend/node_modules/iconv-lite/lib/index.js +153 -0
- package/backend/node_modules/iconv-lite/lib/streams.js +121 -0
- package/backend/node_modules/iconv-lite/package.json +46 -0
- package/backend/node_modules/inherits/LICENSE +16 -0
- package/backend/node_modules/inherits/README.md +42 -0
- package/backend/node_modules/inherits/inherits.js +9 -0
- package/backend/node_modules/inherits/inherits_browser.js +27 -0
- package/backend/node_modules/inherits/package.json +29 -0
- package/backend/node_modules/ipaddr.js/LICENSE +19 -0
- package/backend/node_modules/ipaddr.js/README.md +233 -0
- package/backend/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/backend/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/backend/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/backend/node_modules/ipaddr.js/package.json +35 -0
- package/backend/node_modules/math-intrinsics/.eslintrc +16 -0
- package/backend/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/backend/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/backend/node_modules/math-intrinsics/LICENSE +21 -0
- package/backend/node_modules/math-intrinsics/README.md +50 -0
- package/backend/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/backend/node_modules/math-intrinsics/abs.js +4 -0
- package/backend/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/backend/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/backend/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/backend/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/backend/node_modules/math-intrinsics/floor.js +4 -0
- package/backend/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/isFinite.js +12 -0
- package/backend/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/isInteger.js +16 -0
- package/backend/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/backend/node_modules/math-intrinsics/isNaN.js +6 -0
- package/backend/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/backend/node_modules/math-intrinsics/max.d.ts +1 -0
- package/backend/node_modules/math-intrinsics/max.js +4 -0
- package/backend/node_modules/math-intrinsics/min.d.ts +1 -0
- package/backend/node_modules/math-intrinsics/min.js +4 -0
- package/backend/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/mod.js +9 -0
- package/backend/node_modules/math-intrinsics/package.json +86 -0
- package/backend/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/backend/node_modules/math-intrinsics/pow.js +4 -0
- package/backend/node_modules/math-intrinsics/round.d.ts +1 -0
- package/backend/node_modules/math-intrinsics/round.js +4 -0
- package/backend/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/backend/node_modules/math-intrinsics/sign.js +11 -0
- package/backend/node_modules/math-intrinsics/test/index.js +192 -0
- package/backend/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/backend/node_modules/media-typer/HISTORY.md +22 -0
- package/backend/node_modules/media-typer/LICENSE +22 -0
- package/backend/node_modules/media-typer/README.md +81 -0
- package/backend/node_modules/media-typer/index.js +270 -0
- package/backend/node_modules/media-typer/package.json +26 -0
- package/backend/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/backend/node_modules/merge-descriptors/LICENSE +23 -0
- package/backend/node_modules/merge-descriptors/README.md +49 -0
- package/backend/node_modules/merge-descriptors/index.js +60 -0
- package/backend/node_modules/merge-descriptors/package.json +39 -0
- package/backend/node_modules/methods/HISTORY.md +29 -0
- package/backend/node_modules/methods/LICENSE +24 -0
- package/backend/node_modules/methods/README.md +51 -0
- package/backend/node_modules/methods/index.js +69 -0
- package/backend/node_modules/methods/package.json +36 -0
- package/backend/node_modules/mime/CHANGELOG.md +164 -0
- package/backend/node_modules/mime/LICENSE +21 -0
- package/backend/node_modules/mime/README.md +90 -0
- package/backend/node_modules/mime/cli.js +8 -0
- package/backend/node_modules/mime/mime.js +108 -0
- package/backend/node_modules/mime/package.json +44 -0
- package/backend/node_modules/mime/src/build.js +53 -0
- package/backend/node_modules/mime/src/test.js +60 -0
- package/backend/node_modules/mime/types.json +1 -0
- package/backend/node_modules/mime-db/HISTORY.md +507 -0
- package/backend/node_modules/mime-db/LICENSE +23 -0
- package/backend/node_modules/mime-db/README.md +100 -0
- package/backend/node_modules/mime-db/db.json +8519 -0
- package/backend/node_modules/mime-db/index.js +12 -0
- package/backend/node_modules/mime-db/package.json +60 -0
- package/backend/node_modules/mime-types/HISTORY.md +397 -0
- package/backend/node_modules/mime-types/LICENSE +23 -0
- package/backend/node_modules/mime-types/README.md +113 -0
- package/backend/node_modules/mime-types/index.js +188 -0
- package/backend/node_modules/mime-types/package.json +44 -0
- package/backend/node_modules/ms/index.js +152 -0
- package/backend/node_modules/ms/license.md +21 -0
- package/backend/node_modules/ms/package.json +37 -0
- package/backend/node_modules/ms/readme.md +51 -0
- package/backend/node_modules/negotiator/HISTORY.md +108 -0
- package/backend/node_modules/negotiator/LICENSE +24 -0
- package/backend/node_modules/negotiator/README.md +203 -0
- package/backend/node_modules/negotiator/index.js +82 -0
- package/backend/node_modules/negotiator/lib/charset.js +169 -0
- package/backend/node_modules/negotiator/lib/encoding.js +184 -0
- package/backend/node_modules/negotiator/lib/language.js +179 -0
- package/backend/node_modules/negotiator/lib/mediaType.js +294 -0
- package/backend/node_modules/negotiator/package.json +42 -0
- package/backend/node_modules/object-assign/index.js +90 -0
- package/backend/node_modules/object-assign/license +21 -0
- package/backend/node_modules/object-assign/package.json +42 -0
- package/backend/node_modules/object-assign/readme.md +61 -0
- package/backend/node_modules/object-inspect/.eslintrc +53 -0
- package/backend/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/backend/node_modules/object-inspect/.nycrc +13 -0
- package/backend/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/backend/node_modules/object-inspect/LICENSE +21 -0
- package/backend/node_modules/object-inspect/example/all.js +23 -0
- package/backend/node_modules/object-inspect/example/circular.js +6 -0
- package/backend/node_modules/object-inspect/example/fn.js +5 -0
- package/backend/node_modules/object-inspect/example/inspect.js +10 -0
- package/backend/node_modules/object-inspect/index.js +544 -0
- package/backend/node_modules/object-inspect/package-support.json +20 -0
- package/backend/node_modules/object-inspect/package.json +105 -0
- package/backend/node_modules/object-inspect/readme.markdown +84 -0
- package/backend/node_modules/object-inspect/test/bigint.js +58 -0
- package/backend/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/backend/node_modules/object-inspect/test/circular.js +16 -0
- package/backend/node_modules/object-inspect/test/deep.js +12 -0
- package/backend/node_modules/object-inspect/test/element.js +53 -0
- package/backend/node_modules/object-inspect/test/err.js +48 -0
- package/backend/node_modules/object-inspect/test/fakes.js +29 -0
- package/backend/node_modules/object-inspect/test/fn.js +76 -0
- package/backend/node_modules/object-inspect/test/global.js +17 -0
- package/backend/node_modules/object-inspect/test/has.js +15 -0
- package/backend/node_modules/object-inspect/test/holes.js +15 -0
- package/backend/node_modules/object-inspect/test/indent-option.js +271 -0
- package/backend/node_modules/object-inspect/test/inspect.js +139 -0
- package/backend/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/backend/node_modules/object-inspect/test/number.js +58 -0
- package/backend/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/backend/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/backend/node_modules/object-inspect/test/undef.js +12 -0
- package/backend/node_modules/object-inspect/test/values.js +261 -0
- package/backend/node_modules/object-inspect/test-core-js.js +26 -0
- package/backend/node_modules/object-inspect/util.inspect.js +1 -0
- package/backend/node_modules/on-finished/HISTORY.md +98 -0
- package/backend/node_modules/on-finished/LICENSE +23 -0
- package/backend/node_modules/on-finished/README.md +162 -0
- package/backend/node_modules/on-finished/index.js +234 -0
- package/backend/node_modules/on-finished/package.json +39 -0
- package/backend/node_modules/parseurl/HISTORY.md +58 -0
- package/backend/node_modules/parseurl/LICENSE +24 -0
- package/backend/node_modules/parseurl/README.md +133 -0
- package/backend/node_modules/parseurl/index.js +158 -0
- package/backend/node_modules/parseurl/package.json +40 -0
- package/backend/node_modules/path-to-regexp/LICENSE +21 -0
- package/backend/node_modules/path-to-regexp/Readme.md +35 -0
- package/backend/node_modules/path-to-regexp/index.js +158 -0
- package/backend/node_modules/path-to-regexp/package.json +30 -0
- package/backend/node_modules/proxy-addr/HISTORY.md +161 -0
- package/backend/node_modules/proxy-addr/LICENSE +22 -0
- package/backend/node_modules/proxy-addr/README.md +139 -0
- package/backend/node_modules/proxy-addr/index.js +327 -0
- package/backend/node_modules/proxy-addr/package.json +47 -0
- package/backend/node_modules/qs/.editorconfig +46 -0
- package/backend/node_modules/qs/.github/FUNDING.yml +12 -0
- package/backend/node_modules/qs/.github/SECURITY.md +11 -0
- package/backend/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/backend/node_modules/qs/.nycrc +13 -0
- package/backend/node_modules/qs/CHANGELOG.md +822 -0
- package/backend/node_modules/qs/LICENSE.md +29 -0
- package/backend/node_modules/qs/README.md +758 -0
- package/backend/node_modules/qs/dist/qs.js +141 -0
- package/backend/node_modules/qs/eslint.config.mjs +57 -0
- package/backend/node_modules/qs/lib/formats.js +23 -0
- package/backend/node_modules/qs/lib/index.js +11 -0
- package/backend/node_modules/qs/lib/parse.js +403 -0
- package/backend/node_modules/qs/lib/stringify.js +363 -0
- package/backend/node_modules/qs/lib/utils.js +342 -0
- package/backend/node_modules/qs/package.json +94 -0
- package/backend/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/backend/node_modules/qs/test/parse.js +1703 -0
- package/backend/node_modules/qs/test/stringify.js +1448 -0
- package/backend/node_modules/qs/test/utils.js +432 -0
- package/backend/node_modules/range-parser/HISTORY.md +56 -0
- package/backend/node_modules/range-parser/LICENSE +23 -0
- package/backend/node_modules/range-parser/README.md +84 -0
- package/backend/node_modules/range-parser/index.js +162 -0
- package/backend/node_modules/range-parser/package.json +44 -0
- package/backend/node_modules/raw-body/LICENSE +22 -0
- package/backend/node_modules/raw-body/README.md +223 -0
- package/backend/node_modules/raw-body/index.d.ts +87 -0
- package/backend/node_modules/raw-body/index.js +336 -0
- package/backend/node_modules/raw-body/package.json +47 -0
- package/backend/node_modules/safe-buffer/LICENSE +21 -0
- package/backend/node_modules/safe-buffer/README.md +584 -0
- package/backend/node_modules/safe-buffer/index.d.ts +187 -0
- package/backend/node_modules/safe-buffer/index.js +65 -0
- package/backend/node_modules/safe-buffer/package.json +51 -0
- package/backend/node_modules/safer-buffer/LICENSE +21 -0
- package/backend/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/backend/node_modules/safer-buffer/Readme.md +156 -0
- package/backend/node_modules/safer-buffer/dangerous.js +58 -0
- package/backend/node_modules/safer-buffer/package.json +34 -0
- package/backend/node_modules/safer-buffer/safer.js +77 -0
- package/backend/node_modules/safer-buffer/tests.js +406 -0
- package/backend/node_modules/send/HISTORY.md +538 -0
- package/backend/node_modules/send/LICENSE +23 -0
- package/backend/node_modules/send/README.md +327 -0
- package/backend/node_modules/send/SECURITY.md +24 -0
- package/backend/node_modules/send/index.js +1142 -0
- package/backend/node_modules/send/node_modules/ms/index.js +162 -0
- package/backend/node_modules/send/node_modules/ms/license.md +21 -0
- package/backend/node_modules/send/node_modules/ms/package.json +38 -0
- package/backend/node_modules/send/node_modules/ms/readme.md +59 -0
- package/backend/node_modules/send/package.json +62 -0
- package/backend/node_modules/serve-static/HISTORY.md +493 -0
- package/backend/node_modules/serve-static/LICENSE +25 -0
- package/backend/node_modules/serve-static/README.md +257 -0
- package/backend/node_modules/serve-static/index.js +209 -0
- package/backend/node_modules/serve-static/package.json +42 -0
- package/backend/node_modules/setprototypeof/LICENSE +13 -0
- package/backend/node_modules/setprototypeof/README.md +31 -0
- package/backend/node_modules/setprototypeof/index.d.ts +2 -0
- package/backend/node_modules/setprototypeof/index.js +17 -0
- package/backend/node_modules/setprototypeof/package.json +38 -0
- package/backend/node_modules/setprototypeof/test/index.js +24 -0
- package/backend/node_modules/side-channel/.editorconfig +9 -0
- package/backend/node_modules/side-channel/.eslintrc +12 -0
- package/backend/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/backend/node_modules/side-channel/.nycrc +13 -0
- package/backend/node_modules/side-channel/CHANGELOG.md +120 -0
- package/backend/node_modules/side-channel/LICENSE +21 -0
- package/backend/node_modules/side-channel/README.md +61 -0
- package/backend/node_modules/side-channel/index.d.ts +14 -0
- package/backend/node_modules/side-channel/index.js +46 -0
- package/backend/node_modules/side-channel/package.json +85 -0
- package/backend/node_modules/side-channel/test/index.js +120 -0
- package/backend/node_modules/side-channel/tsconfig.json +9 -0
- package/backend/node_modules/side-channel-list/.editorconfig +9 -0
- package/backend/node_modules/side-channel-list/.eslintrc +11 -0
- package/backend/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/backend/node_modules/side-channel-list/.nycrc +13 -0
- package/backend/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/backend/node_modules/side-channel-list/LICENSE +21 -0
- package/backend/node_modules/side-channel-list/README.md +62 -0
- package/backend/node_modules/side-channel-list/index.d.ts +13 -0
- package/backend/node_modules/side-channel-list/index.js +111 -0
- package/backend/node_modules/side-channel-list/list.d.ts +14 -0
- package/backend/node_modules/side-channel-list/package.json +77 -0
- package/backend/node_modules/side-channel-list/test/index.js +154 -0
- package/backend/node_modules/side-channel-list/tsconfig.json +9 -0
- package/backend/node_modules/side-channel-map/.editorconfig +9 -0
- package/backend/node_modules/side-channel-map/.eslintrc +11 -0
- package/backend/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/backend/node_modules/side-channel-map/.nycrc +13 -0
- package/backend/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/backend/node_modules/side-channel-map/LICENSE +21 -0
- package/backend/node_modules/side-channel-map/README.md +62 -0
- package/backend/node_modules/side-channel-map/index.d.ts +15 -0
- package/backend/node_modules/side-channel-map/index.js +68 -0
- package/backend/node_modules/side-channel-map/package.json +80 -0
- package/backend/node_modules/side-channel-map/test/index.js +114 -0
- package/backend/node_modules/side-channel-map/tsconfig.json +9 -0
- package/backend/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/backend/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/backend/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/backend/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/backend/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/backend/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/backend/node_modules/side-channel-weakmap/README.md +62 -0
- package/backend/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/backend/node_modules/side-channel-weakmap/index.js +84 -0
- package/backend/node_modules/side-channel-weakmap/package.json +87 -0
- package/backend/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/backend/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/backend/node_modules/statuses/HISTORY.md +87 -0
- package/backend/node_modules/statuses/LICENSE +23 -0
- package/backend/node_modules/statuses/README.md +139 -0
- package/backend/node_modules/statuses/codes.json +65 -0
- package/backend/node_modules/statuses/index.js +146 -0
- package/backend/node_modules/statuses/package.json +49 -0
- package/backend/node_modules/toidentifier/HISTORY.md +9 -0
- package/backend/node_modules/toidentifier/LICENSE +21 -0
- package/backend/node_modules/toidentifier/README.md +61 -0
- package/backend/node_modules/toidentifier/index.js +32 -0
- package/backend/node_modules/toidentifier/package.json +38 -0
- package/backend/node_modules/type-is/HISTORY.md +259 -0
- package/backend/node_modules/type-is/LICENSE +23 -0
- package/backend/node_modules/type-is/README.md +170 -0
- package/backend/node_modules/type-is/index.js +266 -0
- package/backend/node_modules/type-is/package.json +45 -0
- package/backend/node_modules/unpipe/HISTORY.md +4 -0
- package/backend/node_modules/unpipe/LICENSE +22 -0
- package/backend/node_modules/unpipe/README.md +43 -0
- package/backend/node_modules/unpipe/index.js +69 -0
- package/backend/node_modules/unpipe/package.json +27 -0
- package/backend/node_modules/utils-merge/LICENSE +20 -0
- package/backend/node_modules/utils-merge/README.md +34 -0
- package/backend/node_modules/utils-merge/index.js +23 -0
- package/backend/node_modules/utils-merge/package.json +40 -0
- package/backend/node_modules/vary/HISTORY.md +39 -0
- package/backend/node_modules/vary/LICENSE +22 -0
- package/backend/node_modules/vary/README.md +101 -0
- package/backend/node_modules/vary/index.js +149 -0
- package/backend/node_modules/vary/package.json +43 -0
- package/backend/package-lock.json +854 -0
- package/backend/package.json +14 -0
- package/backend/parsers/antigravity.js +206 -0
- package/backend/parsers/claude.js +92 -0
- package/backend/parsers/codex.js +86 -0
- package/backend/parsers/copilot.js +379 -0
- package/backend/parsers/copilotEditingSessions.js +118 -0
- package/backend/parsers/cursor.js +215 -0
- package/backend/relay.js +835 -0
- package/backend/scripts/relay-context.js +9 -0
- package/backend/server.js +314 -0
- package/bin/relay.js +312 -0
- package/docs/QUICKSTART.md +94 -0
- package/mission-control/AGENTS.md +5 -0
- package/mission-control/CLAUDE.md +1 -0
- package/mission-control/README.md +20 -0
- package/mission-control/eslint.config.mjs +18 -0
- package/mission-control/next.config.ts +7 -0
- package/mission-control/package-lock.json +6695 -0
- package/mission-control/package.json +26 -0
- package/mission-control/page.css +1793 -0
- package/mission-control/page.html +1 -0
- package/mission-control/postcss.config.mjs +7 -0
- package/mission-control/public/file.svg +1 -0
- package/mission-control/public/globe.svg +1 -0
- package/mission-control/public/logos/1f733bb7-c1b3-4292-a7f7-71aafa2addaa.jpeg +0 -0
- package/mission-control/public/logos/Claude.png +0 -0
- package/mission-control/public/logos/Codex.png +0 -0
- package/mission-control/public/logos/Gemini_Generated_Image_7qmndr7qmndr7qmn.png +0 -0
- package/mission-control/public/logos/antigravity.png +0 -0
- package/mission-control/public/logos/cursor.png +0 -0
- package/mission-control/public/logos/github-copilot.png +0 -0
- package/mission-control/public/logos/logo.avif +0 -0
- package/mission-control/public/logos/logo.jpg +0 -0
- package/mission-control/public/logos/logo.png +0 -0
- package/mission-control/public/next.svg +1 -0
- package/mission-control/public/vercel.svg +1 -0
- package/mission-control/public/window.svg +1 -0
- package/mission-control/src/app/api/fs/route.ts +49 -0
- package/mission-control/src/app/globals.css +102 -0
- package/mission-control/src/app/layout.tsx +31 -0
- package/mission-control/src/app/onboarding/page.module.css +133 -0
- package/mission-control/src/app/onboarding/page.tsx +98 -0
- package/mission-control/src/app/page.module.css +51 -0
- package/mission-control/src/app/page.tsx +40 -0
- package/mission-control/src/components/ActivityTimeline.module.css +282 -0
- package/mission-control/src/components/ActivityTimeline.tsx +262 -0
- package/mission-control/src/components/AgentSessionChat.module.css +220 -0
- package/mission-control/src/components/AgentSessionChat.tsx +276 -0
- package/mission-control/src/components/CollaboratorsPanel.module.css +119 -0
- package/mission-control/src/components/CollaboratorsPanel.tsx +123 -0
- package/mission-control/src/components/ContextMemory.module.css +79 -0
- package/mission-control/src/components/ContextMemory.tsx +66 -0
- package/mission-control/src/components/DirectoryPicker.tsx +194 -0
- package/mission-control/src/components/GlobalHeader.module.css +165 -0
- package/mission-control/src/components/GlobalHeader.tsx +82 -0
- package/mission-control/src/components/ProjectDashboard.module.css +268 -0
- package/mission-control/src/components/ProjectDashboard.tsx +174 -0
- package/mission-control/src/components/RelayBrainPanel.module.css +85 -0
- package/mission-control/src/components/RelayBrainPanel.tsx +74 -0
- package/mission-control/src/components/Sidebar.module.css +201 -0
- package/mission-control/src/components/Sidebar.tsx +136 -0
- package/mission-control/src/components/TaskQueue.module.css +92 -0
- package/mission-control/src/components/TaskQueue.tsx +51 -0
- package/mission-control/src/components/WorkspaceRail.module.css +188 -0
- package/mission-control/src/components/WorkspaceRail.tsx +56 -0
- package/mission-control/src/lib/RelayContext.tsx +314 -0
- package/mission-control/src/lib/relay.ts +280 -0
- package/mission-control/src/lib/workspaces.ts +53 -0
- package/mission-control/tsconfig.json +34 -0
- package/package.json +48 -0
- package/scripts/postinstall.js +19 -0
- package/skills/relay-sync/SKILL.md +32 -0
- package/skills/relay-sync/agent-install.md +17 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
4
|
+
import { useRelay } from '@/lib/RelayContext';
|
|
5
|
+
import { getMissionMeta, saveMissionMeta } from '@/lib/relay';
|
|
6
|
+
import styles from './CollaboratorsPanel.module.css';
|
|
7
|
+
|
|
8
|
+
const SEED_COLLABORATORS = ['Unnath', 'Prakrititz', 'Krishna', 'Gathik', 'Hemanth'];
|
|
9
|
+
|
|
10
|
+
const ACCENTS = ['#7dd3fc', '#a78bfa', '#5eead4', '#f0abfc', '#fca5a5', '#fcd34d', '#86efac'];
|
|
11
|
+
|
|
12
|
+
function colorFor(name: string): string {
|
|
13
|
+
let hash = 0;
|
|
14
|
+
for (let i = 0; i < name.length; i++) hash = (hash * 31 + name.charCodeAt(i)) >>> 0;
|
|
15
|
+
return ACCENTS[hash % ACCENTS.length];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function initials(name: string): string {
|
|
19
|
+
return name
|
|
20
|
+
.trim()
|
|
21
|
+
.split(/\s+/)
|
|
22
|
+
.map((p) => p[0])
|
|
23
|
+
.slice(0, 2)
|
|
24
|
+
.join('')
|
|
25
|
+
.toUpperCase();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default function CollaboratorsPanel() {
|
|
29
|
+
const { activeWorkspace, relayOnline } = useRelay();
|
|
30
|
+
const [names, setNames] = useState<string[]>(SEED_COLLABORATORS);
|
|
31
|
+
const [draft, setDraft] = useState('');
|
|
32
|
+
const [showAdd, setShowAdd] = useState(false);
|
|
33
|
+
const [saving, setSaving] = useState(false);
|
|
34
|
+
|
|
35
|
+
const load = useCallback(async () => {
|
|
36
|
+
if (!activeWorkspace?.localPath || !relayOnline) return;
|
|
37
|
+
try {
|
|
38
|
+
const { meta } = await getMissionMeta(activeWorkspace.localPath);
|
|
39
|
+
if (meta.collaborators?.length) setNames(meta.collaborators);
|
|
40
|
+
} catch {
|
|
41
|
+
/* keep seed list */
|
|
42
|
+
}
|
|
43
|
+
}, [activeWorkspace?.localPath, relayOnline]);
|
|
44
|
+
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
load();
|
|
47
|
+
}, [load]);
|
|
48
|
+
|
|
49
|
+
async function persist(next: string[]) {
|
|
50
|
+
setNames(next);
|
|
51
|
+
if (!activeWorkspace?.localPath) return;
|
|
52
|
+
setSaving(true);
|
|
53
|
+
try {
|
|
54
|
+
await saveMissionMeta(activeWorkspace.localPath, { collaborators: next });
|
|
55
|
+
} finally {
|
|
56
|
+
setSaving(false);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function addName() {
|
|
61
|
+
const name = draft.trim();
|
|
62
|
+
if (!name || names.includes(name)) return;
|
|
63
|
+
setDraft('');
|
|
64
|
+
setShowAdd(false);
|
|
65
|
+
persist([...names, name]);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function removeName(name: string) {
|
|
69
|
+
persist(names.filter((n) => n !== name));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<div className={`glass-panel ${styles.panel}`}>
|
|
74
|
+
<div className="section-title">
|
|
75
|
+
COLLABORATORS {saving && <span className={styles.muted}>saving…</span>}
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div className={styles.avatarRow}>
|
|
79
|
+
{names.map((name) => (
|
|
80
|
+
<div key={name} className={styles.avatarChip} title={name}>
|
|
81
|
+
<span className={styles.avatar} style={{ background: colorFor(name) }}>
|
|
82
|
+
{initials(name)}
|
|
83
|
+
</span>
|
|
84
|
+
<span className={styles.avatarName}>{name}</span>
|
|
85
|
+
<button
|
|
86
|
+
type="button"
|
|
87
|
+
className={styles.removeBtn}
|
|
88
|
+
onClick={() => removeName(name)}
|
|
89
|
+
aria-label={`Remove ${name}`}
|
|
90
|
+
>
|
|
91
|
+
×
|
|
92
|
+
</button>
|
|
93
|
+
</div>
|
|
94
|
+
))}
|
|
95
|
+
<button
|
|
96
|
+
type="button"
|
|
97
|
+
className={styles.addChip}
|
|
98
|
+
onClick={() => setShowAdd((s) => !s)}
|
|
99
|
+
aria-label="Add collaborator"
|
|
100
|
+
title="Add collaborator"
|
|
101
|
+
>
|
|
102
|
+
+
|
|
103
|
+
</button>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
{showAdd && (
|
|
107
|
+
<div className={styles.addRow}>
|
|
108
|
+
<input
|
|
109
|
+
className={styles.input}
|
|
110
|
+
placeholder="Name"
|
|
111
|
+
value={draft}
|
|
112
|
+
autoFocus
|
|
113
|
+
onChange={(e) => setDraft(e.target.value)}
|
|
114
|
+
onKeyDown={(e) => e.key === 'Enter' && addName()}
|
|
115
|
+
/>
|
|
116
|
+
<button type="button" className={styles.addBtn} onClick={addName} disabled={!draft.trim()}>
|
|
117
|
+
Add
|
|
118
|
+
</button>
|
|
119
|
+
</div>
|
|
120
|
+
)}
|
|
121
|
+
</div>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.panel {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.count {
|
|
9
|
+
margin-left: auto;
|
|
10
|
+
color: var(--text-secondary);
|
|
11
|
+
font-weight: normal;
|
|
12
|
+
text-transform: none;
|
|
13
|
+
letter-spacing: 0;
|
|
14
|
+
float: right;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.treeContainer {
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
font-size: 11px;
|
|
21
|
+
line-height: 1.6;
|
|
22
|
+
color: var(--text-secondary);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.treeRoot {
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
color: var(--text-primary);
|
|
28
|
+
margin-bottom: 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.treeNode {
|
|
32
|
+
margin-left: 12px;
|
|
33
|
+
border-left: 1px solid var(--color-border);
|
|
34
|
+
padding-left: 8px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nodeHeader {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: 6px;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
padding: 2px 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nodeHeader:hover .nodeName {
|
|
46
|
+
color: var(--text-primary);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nodeName {
|
|
50
|
+
color: var(--text-secondary);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.icon {
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
opacity: 0.8;
|
|
56
|
+
width: 12px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.nodeChildren {
|
|
60
|
+
margin-left: 14px;
|
|
61
|
+
border-left: 1px solid rgba(255, 255, 255, 0.05);
|
|
62
|
+
padding-left: 8px;
|
|
63
|
+
margin-top: 2px;
|
|
64
|
+
margin-bottom: 4px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.childNode {
|
|
68
|
+
display: flex;
|
|
69
|
+
gap: 8px;
|
|
70
|
+
padding: 2px 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.childKey {
|
|
74
|
+
color: var(--color-active);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.childValue {
|
|
78
|
+
color: var(--text-primary);
|
|
79
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { useRelay } from '@/lib/RelayContext';
|
|
5
|
+
import { RelayArtifact } from '@/lib/relay';
|
|
6
|
+
import styles from './ContextMemory.module.css';
|
|
7
|
+
|
|
8
|
+
function artifactSummary(a: RelayArtifact): string {
|
|
9
|
+
if (a.metadata) {
|
|
10
|
+
try {
|
|
11
|
+
const m = JSON.parse(a.metadata);
|
|
12
|
+
if (m.Summary || m.ArtifactType) return m.Summary || m.ArtifactType;
|
|
13
|
+
} catch {
|
|
14
|
+
/* not JSON */
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return (a.content || '').slice(0, 120);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default function ContextMemory() {
|
|
21
|
+
const { memory } = useRelay();
|
|
22
|
+
|
|
23
|
+
const artifacts: RelayArtifact[] = Object.entries(memory?.agents || {}).flatMap(([source, a]) =>
|
|
24
|
+
(a?.artifacts || []).map((art) => ({ ...art, source })),
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div className={`glass-panel ${styles.panel}`} style={{ padding: 16 }}>
|
|
29
|
+
<div className="section-title">
|
|
30
|
+
ARTIFACTS <span className={styles.count}>[{artifacts.length}]</span>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div className={`${styles.treeContainer} custom-scrollbar`}>
|
|
34
|
+
{artifacts.length === 0 ? (
|
|
35
|
+
<div style={{ fontSize: 12, color: 'var(--text-muted)', lineHeight: 1.6 }}>
|
|
36
|
+
No artifacts yet. Antigravity and other agents emit these when connected.
|
|
37
|
+
</div>
|
|
38
|
+
) : (
|
|
39
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>
|
|
40
|
+
{artifacts.map((a, i) => (
|
|
41
|
+
<div
|
|
42
|
+
key={`${a.name}-${i}`}
|
|
43
|
+
style={{
|
|
44
|
+
background: 'var(--color-surface-3)',
|
|
45
|
+
border: '1px solid var(--color-border)',
|
|
46
|
+
borderRadius: 4,
|
|
47
|
+
padding: 10,
|
|
48
|
+
}}
|
|
49
|
+
>
|
|
50
|
+
<div className="mono" style={{ fontSize: 12, color: 'var(--color-active)', fontWeight: 600 }}>
|
|
51
|
+
{a.name}
|
|
52
|
+
</div>
|
|
53
|
+
<div style={{ fontSize: 10, color: 'var(--text-secondary)', margin: '2px 0 6px' }}>
|
|
54
|
+
{a.source}
|
|
55
|
+
</div>
|
|
56
|
+
<div style={{ fontSize: 12, color: 'var(--text-primary)', lineHeight: 1.4 }}>
|
|
57
|
+
{artifactSummary(a)}
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
))}
|
|
61
|
+
</div>
|
|
62
|
+
)}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
// Browses the local filesystem via /api/fs and lets the user pick a folder's
|
|
4
|
+
// absolute path for the Add Workspace flow.
|
|
5
|
+
|
|
6
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
7
|
+
|
|
8
|
+
interface Entry {
|
|
9
|
+
name: string;
|
|
10
|
+
path: string;
|
|
11
|
+
isDir: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface FsResponse {
|
|
15
|
+
path: string | null;
|
|
16
|
+
parent: string | null;
|
|
17
|
+
entries: Entry[];
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default function DirectoryPicker({
|
|
22
|
+
onPick,
|
|
23
|
+
busy = false,
|
|
24
|
+
pickLabel = 'Use this folder',
|
|
25
|
+
}: {
|
|
26
|
+
onPick: (absolutePath: string) => void;
|
|
27
|
+
busy?: boolean;
|
|
28
|
+
pickLabel?: string;
|
|
29
|
+
}) {
|
|
30
|
+
const [current, setCurrent] = useState<string | null>(null);
|
|
31
|
+
const [parent, setParent] = useState<string | null>(null);
|
|
32
|
+
const [entries, setEntries] = useState<Entry[]>([]);
|
|
33
|
+
const [loading, setLoading] = useState(false);
|
|
34
|
+
const [error, setError] = useState<string | null>(null);
|
|
35
|
+
const [manual, setManual] = useState('');
|
|
36
|
+
|
|
37
|
+
const navigate = useCallback(async (target: string | null) => {
|
|
38
|
+
setLoading(true);
|
|
39
|
+
setError(null);
|
|
40
|
+
try {
|
|
41
|
+
const url = target ? `/api/fs?path=${encodeURIComponent(target)}` : '/api/fs';
|
|
42
|
+
const res = await fetch(url);
|
|
43
|
+
const data: FsResponse = await res.json();
|
|
44
|
+
if (!res.ok) throw new Error(data.error || 'Failed to read folder');
|
|
45
|
+
setCurrent(data.path);
|
|
46
|
+
setParent(data.parent);
|
|
47
|
+
setEntries(data.entries.filter((e) => e.isDir));
|
|
48
|
+
} catch (e) {
|
|
49
|
+
setError(e instanceof Error ? e.message : 'Failed to read folder');
|
|
50
|
+
} finally {
|
|
51
|
+
setLoading(false);
|
|
52
|
+
}
|
|
53
|
+
}, []);
|
|
54
|
+
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
navigate(null);
|
|
57
|
+
}, [navigate]);
|
|
58
|
+
|
|
59
|
+
const box: React.CSSProperties = {
|
|
60
|
+
background: 'var(--color-surface-3)',
|
|
61
|
+
border: '1px solid var(--color-border)',
|
|
62
|
+
borderRadius: 6,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
|
67
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
|
68
|
+
<button
|
|
69
|
+
type="button"
|
|
70
|
+
onClick={() => navigate(parent)}
|
|
71
|
+
disabled={loading || (current === null)}
|
|
72
|
+
style={{
|
|
73
|
+
...box,
|
|
74
|
+
padding: '6px 10px',
|
|
75
|
+
color: 'var(--text-secondary)',
|
|
76
|
+
cursor: current === null ? 'not-allowed' : 'pointer',
|
|
77
|
+
fontSize: 13,
|
|
78
|
+
opacity: current === null ? 0.4 : 1,
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
↑ Up
|
|
82
|
+
</button>
|
|
83
|
+
<div
|
|
84
|
+
className="mono"
|
|
85
|
+
style={{
|
|
86
|
+
flex: 1,
|
|
87
|
+
...box,
|
|
88
|
+
padding: '6px 10px',
|
|
89
|
+
fontSize: 12,
|
|
90
|
+
color: 'var(--text-primary)',
|
|
91
|
+
overflow: 'hidden',
|
|
92
|
+
textOverflow: 'ellipsis',
|
|
93
|
+
whiteSpace: 'nowrap',
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
{current || 'This PC'}
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<div
|
|
101
|
+
className="custom-scrollbar"
|
|
102
|
+
style={{ ...box, maxHeight: 220, overflowY: 'auto', minHeight: 120 }}
|
|
103
|
+
>
|
|
104
|
+
{loading ? (
|
|
105
|
+
<div style={{ padding: 16, color: 'var(--text-muted)', fontSize: 13 }}>Loading…</div>
|
|
106
|
+
) : error ? (
|
|
107
|
+
<div style={{ padding: 16, color: 'var(--text-muted)', fontSize: 13 }}>{error}</div>
|
|
108
|
+
) : entries.length === 0 ? (
|
|
109
|
+
<div style={{ padding: 16, color: 'var(--text-muted)', fontSize: 13 }}>
|
|
110
|
+
No sub-folders here. Use the button below to select this folder.
|
|
111
|
+
</div>
|
|
112
|
+
) : (
|
|
113
|
+
entries.map((e) => (
|
|
114
|
+
<button
|
|
115
|
+
key={e.path}
|
|
116
|
+
type="button"
|
|
117
|
+
onClick={() => navigate(e.path)}
|
|
118
|
+
style={{
|
|
119
|
+
display: 'flex',
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
gap: 8,
|
|
122
|
+
width: '100%',
|
|
123
|
+
padding: '8px 12px',
|
|
124
|
+
background: 'transparent',
|
|
125
|
+
border: 'none',
|
|
126
|
+
borderBottom: '1px solid var(--color-border)',
|
|
127
|
+
color: 'var(--text-primary)',
|
|
128
|
+
cursor: 'pointer',
|
|
129
|
+
fontSize: 13,
|
|
130
|
+
textAlign: 'left',
|
|
131
|
+
}}
|
|
132
|
+
>
|
|
133
|
+
<span style={{ opacity: 0.6 }}>📁</span>
|
|
134
|
+
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
|
|
135
|
+
{e.name}
|
|
136
|
+
</span>
|
|
137
|
+
</button>
|
|
138
|
+
))
|
|
139
|
+
)}
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<button
|
|
143
|
+
type="button"
|
|
144
|
+
disabled={!current || busy}
|
|
145
|
+
onClick={() => current && onPick(current)}
|
|
146
|
+
style={{
|
|
147
|
+
background: 'var(--color-active)',
|
|
148
|
+
color: '#000',
|
|
149
|
+
border: 'none',
|
|
150
|
+
borderRadius: 6,
|
|
151
|
+
padding: '10px 16px',
|
|
152
|
+
fontSize: 13,
|
|
153
|
+
fontWeight: 700,
|
|
154
|
+
cursor: !current || busy ? 'not-allowed' : 'pointer',
|
|
155
|
+
opacity: !current || busy ? 0.4 : 1,
|
|
156
|
+
}}
|
|
157
|
+
>
|
|
158
|
+
{busy ? 'Working…' : `${pickLabel}${current ? '' : ''}`}
|
|
159
|
+
</button>
|
|
160
|
+
|
|
161
|
+
<div style={{ display: 'flex', gap: 8, alignItems: 'center' }}>
|
|
162
|
+
<input
|
|
163
|
+
className="mono"
|
|
164
|
+
value={manual}
|
|
165
|
+
onChange={(e) => setManual(e.target.value)}
|
|
166
|
+
placeholder="…or paste an absolute path"
|
|
167
|
+
style={{
|
|
168
|
+
flex: 1,
|
|
169
|
+
...box,
|
|
170
|
+
padding: '8px 10px',
|
|
171
|
+
color: 'var(--text-primary)',
|
|
172
|
+
fontSize: 12,
|
|
173
|
+
outline: 'none',
|
|
174
|
+
}}
|
|
175
|
+
/>
|
|
176
|
+
<button
|
|
177
|
+
type="button"
|
|
178
|
+
disabled={!manual.trim() || busy}
|
|
179
|
+
onClick={() => onPick(manual.trim())}
|
|
180
|
+
style={{
|
|
181
|
+
...box,
|
|
182
|
+
padding: '8px 14px',
|
|
183
|
+
color: 'var(--text-secondary)',
|
|
184
|
+
cursor: !manual.trim() || busy ? 'not-allowed' : 'pointer',
|
|
185
|
+
fontSize: 13,
|
|
186
|
+
opacity: !manual.trim() || busy ? 0.4 : 1,
|
|
187
|
+
}}
|
|
188
|
+
>
|
|
189
|
+
Use
|
|
190
|
+
</button>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
);
|
|
194
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
height: 56px;
|
|
3
|
+
background-color: var(--color-surface-2);
|
|
4
|
+
border-bottom: 1px solid var(--color-border);
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
padding: 0 16px;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.left, .center, .right {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 16px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.logo {
|
|
19
|
+
font-weight: 900;
|
|
20
|
+
letter-spacing: 0.1em;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.projectDropdown {
|
|
28
|
+
background: var(--color-surface-3);
|
|
29
|
+
padding: 4px 12px;
|
|
30
|
+
border-radius: 4px;
|
|
31
|
+
font-size: 13px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
border: 1px solid var(--color-border);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.arrow {
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
margin-left: 8px;
|
|
39
|
+
opacity: 0.5;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.teammatesOnline {
|
|
43
|
+
display: flex;
|
|
44
|
+
margin-left: 16px;
|
|
45
|
+
gap: -8px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.avatarMini {
|
|
49
|
+
width: 24px;
|
|
50
|
+
height: 24px;
|
|
51
|
+
border-radius: 50%;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
font-size: 11px;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
border: 2px solid var(--color-surface-2);
|
|
58
|
+
margin-left: -6px;
|
|
59
|
+
color: #000000;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.bgPony { background-color: var(--color-active); }
|
|
63
|
+
.bgUnnath { background-color: var(--color-success); }
|
|
64
|
+
.bgArjun { background-color: rgba(255, 255, 255, 0.62); }
|
|
65
|
+
|
|
66
|
+
.inviteBtn {
|
|
67
|
+
background: transparent;
|
|
68
|
+
border: 1px dashed var(--color-border);
|
|
69
|
+
color: var(--text-secondary);
|
|
70
|
+
border-radius: 4px;
|
|
71
|
+
padding: 4px 8px;
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
.inviteBtn:hover {
|
|
76
|
+
color: var(--text-primary);
|
|
77
|
+
border-color: var(--text-secondary);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.stats {
|
|
81
|
+
display: flex;
|
|
82
|
+
gap: 16px;
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
color: var(--text-secondary);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.stats strong {
|
|
88
|
+
color: var(--text-primary);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.dropdownMenu {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 100%;
|
|
94
|
+
left: 0;
|
|
95
|
+
margin-top: 6px;
|
|
96
|
+
min-width: 220px;
|
|
97
|
+
background: var(--color-surface-2);
|
|
98
|
+
border: 1px solid var(--color-border);
|
|
99
|
+
border-radius: 6px;
|
|
100
|
+
z-index: 50;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dropdownItem {
|
|
105
|
+
padding: 8px 12px;
|
|
106
|
+
font-size: 13px;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
color: var(--text-secondary);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dropdownItem[data-active] {
|
|
112
|
+
color: var(--text-primary);
|
|
113
|
+
background: rgba(255, 255, 255, 0.06);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.dropdownAdd {
|
|
117
|
+
padding: 8px 12px;
|
|
118
|
+
font-size: 13px;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
color: var(--text-secondary);
|
|
121
|
+
border-top: 1px solid var(--color-border);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.syncBtn {
|
|
125
|
+
font-size: 12px;
|
|
126
|
+
font-weight: 600;
|
|
127
|
+
padding: 6px 12px;
|
|
128
|
+
border-radius: 6px;
|
|
129
|
+
border: 1px solid var(--color-border);
|
|
130
|
+
background: transparent;
|
|
131
|
+
color: var(--text-primary);
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.syncBtn:disabled {
|
|
136
|
+
opacity: 0.5;
|
|
137
|
+
cursor: not-allowed;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.statusPill {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
gap: 6px;
|
|
144
|
+
font-size: 12px;
|
|
145
|
+
color: var(--text-secondary);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.statusDot {
|
|
149
|
+
width: 8px;
|
|
150
|
+
height: 8px;
|
|
151
|
+
border-radius: 50%;
|
|
152
|
+
background: var(--text-muted);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.statusDot[data-live] {
|
|
156
|
+
background: var(--color-success);
|
|
157
|
+
box-shadow: 0 0 6px var(--color-success);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.settingsBtn {
|
|
161
|
+
background: none;
|
|
162
|
+
border: none;
|
|
163
|
+
color: var(--text-secondary);
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { useRouter } from 'next/navigation';
|
|
5
|
+
import { useRelay } from '@/lib/RelayContext';
|
|
6
|
+
import styles from './GlobalHeader.module.css';
|
|
7
|
+
|
|
8
|
+
export default function GlobalHeader() {
|
|
9
|
+
const router = useRouter();
|
|
10
|
+
const { workspaces, activeWorkspace, selectWorkspace, agentStates, relayOnline, dashboard, memory, syncing, refresh } = useRelay();
|
|
11
|
+
const [open, setOpen] = useState(false);
|
|
12
|
+
|
|
13
|
+
const connectedCount = agentStates.filter((a) => a.status === 'connected').length;
|
|
14
|
+
const eventCount = dashboard?.stats?.totalEvents ?? memory?.timeline?.length ?? 0;
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<header className={styles.header}>
|
|
18
|
+
<div className={styles.left}>
|
|
19
|
+
<div className={styles.logo}>
|
|
20
|
+
<img src="/logos/logo.png" alt="" style={{ height: 36, objectFit: 'contain' }} />
|
|
21
|
+
/.relay
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div style={{ position: 'relative' }}>
|
|
25
|
+
<div className={styles.projectDropdown} onClick={() => setOpen((o) => !o)}>
|
|
26
|
+
{activeWorkspace ? activeWorkspace.full : 'No workspace'}
|
|
27
|
+
<span className={styles.arrow}>▼</span>
|
|
28
|
+
</div>
|
|
29
|
+
{open && (
|
|
30
|
+
<div className={styles.dropdownMenu}>
|
|
31
|
+
{workspaces.map((w) => (
|
|
32
|
+
<div
|
|
33
|
+
key={w.id}
|
|
34
|
+
className={styles.dropdownItem}
|
|
35
|
+
data-active={w.active || undefined}
|
|
36
|
+
onClick={() => {
|
|
37
|
+
selectWorkspace(w.id);
|
|
38
|
+
setOpen(false);
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
{w.full}
|
|
42
|
+
</div>
|
|
43
|
+
))}
|
|
44
|
+
<div
|
|
45
|
+
className={styles.dropdownAdd}
|
|
46
|
+
onClick={() => {
|
|
47
|
+
setOpen(false);
|
|
48
|
+
router.push('/onboarding');
|
|
49
|
+
}}
|
|
50
|
+
>
|
|
51
|
+
+ Add workspace
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
)}
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<div className={styles.right}>
|
|
59
|
+
<div className={styles.stats}>
|
|
60
|
+
<span>
|
|
61
|
+
Events: <strong className="mono">{eventCount}</strong>
|
|
62
|
+
</span>
|
|
63
|
+
<span>
|
|
64
|
+
Agents: <strong className="mono">{connectedCount}</strong> connected
|
|
65
|
+
</span>
|
|
66
|
+
</div>
|
|
67
|
+
<button
|
|
68
|
+
type="button"
|
|
69
|
+
className={styles.syncBtn}
|
|
70
|
+
disabled={syncing || !activeWorkspace}
|
|
71
|
+
onClick={() => refresh({ full: true })}
|
|
72
|
+
>
|
|
73
|
+
{syncing ? 'Syncing…' : 'Sync'}
|
|
74
|
+
</button>
|
|
75
|
+
<div className={styles.statusPill}>
|
|
76
|
+
<span className={styles.statusDot} data-live={relayOnline || undefined} />
|
|
77
|
+
{relayOnline ? 'Relay online' : 'Relay offline'}
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</header>
|
|
81
|
+
);
|
|
82
|
+
}
|