-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support live debugging, fix aero's config, start working on Feature F…
…lags for aero, move config.ts into src, fix bugs, comment out broken code, and much more
- Loading branch information
Showing
73 changed files
with
840 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ | |
## For NixOS | ||
mutable_node_modules | ||
|
||
# Rspack | ||
# Builds | ||
/**/dist/ | ||
/tests/aero | ||
|
||
# aero | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/vsls", | ||
"gitignore": "exclude", | ||
"excludeFiles": ["!node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
const config = { | ||
buildForUnitTests: true | ||
}; | ||
|
||
module.exports = { | ||
apps: [ | ||
{ | ||
name: "aero-dev-server", | ||
script: "dev-server/app.js" | ||
}, | ||
{ | ||
name: "aero-build-watch", | ||
script: "npm", | ||
args: "run build", | ||
env: { | ||
DEBUG: "" | ||
} | ||
}, | ||
{ | ||
name: "aero-sandbox-build-watch", | ||
script: "npm", | ||
cwd: "src/AeroSandbox", | ||
args: "run build", | ||
env: { | ||
DEBUG: "" | ||
} | ||
}, | ||
{ | ||
name: "aero-sandbox-for-unit-tests-build-watch", | ||
script: "npm", | ||
cwd: "src/AeroSandbox", | ||
args: "run build", | ||
env: { | ||
TEST_BUILD: "" | ||
} | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,42 @@ | ||
{ | ||
"name": "aero-proxy", | ||
"version": "0.0.2", | ||
"description": "The innovative interception proxy (alpha)", | ||
"main": "dist/sw.aero.js", | ||
"files": [ | ||
"dist/sw.aero.js", | ||
"dist/sw.aero.js.map" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "rspack build -c rspack.config.ts", | ||
"buildDebug": "rspack --stats-error-detail --watch --info-verbosity", | ||
"format": "biome format --write .", | ||
"lint": "biome lint --write ." | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ProxyHaven/aero.git" | ||
}, | ||
"keywords": [ | ||
"Proxy", | ||
"Archiver", | ||
"Unblock", | ||
"Interception" | ||
], | ||
"author": "Ryan Wilson", | ||
"license": "AGPL-3.0-or-later", | ||
"homepage": "https://github.com/ProxyHaven/aero#readme", | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.3.3", | ||
"@rsdoctor/rspack-plugin": "^0.3.9", | ||
"@rspack/cli": "^0.7.5", | ||
"@rspack/core": "^0.7.5", | ||
"@types/chrome": "^0.0.237", | ||
"@types/serviceworker": "^0.0.89", | ||
"@types/web-app-manifest": "^1.0.8", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"typescript": "^5.0.4", | ||
"webpack-bundle-analyzer": "^4.10.2" | ||
}, | ||
"dependencies": { | ||
"@mercuryworkshop/bare-as-module3": "^2.2.2", | ||
"@mercuryworkshop/bare-mux": "^2.0.2", | ||
"esbuild-loader": "^4.0.1", | ||
"esbuild-wasm": "^0.23.0", | ||
"esniff": "^2.0.1", | ||
"seafox": "^1.7.1", | ||
"traverse-the-universe": "^2.1.2" | ||
} | ||
"name": "aero-proxy", | ||
"version": "0.0.2", | ||
"description": "The innovative interception proxy (alpha)", | ||
"main": "dist/sw.aero.js", | ||
"files": ["dist/sw.aero.js", "dist/sw.aero.js.map"], | ||
"scripts": { | ||
"build": "rspack build -c rspack.config.ts", | ||
"buildDebug": "rspack --stats-error-detail --watch --info-verbosity", | ||
"format": "biome format --write .", | ||
"lint": "biome lint --write ." | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ProxyHaven/aero.git" | ||
}, | ||
"keywords": ["Proxy", "Archiver", "Unblock", "Interception"], | ||
"author": "Ryan Wilson", | ||
"license": "AGPL-3.0-or-later", | ||
"homepage": "https://github.com/ProxyHaven/aero#readme", | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.3.3", | ||
"@rsdoctor/rspack-plugin": "^0.3.9", | ||
"@rspack/cli": "^0.7.5", | ||
"@rspack/core": "^0.7.5", | ||
"@types/chrome": "^0.0.237", | ||
"@types/serviceworker": "^0.0.89", | ||
"@types/web-app-manifest": "^1.0.8", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"typescript": "^5.0.4", | ||
"webpack-bundle-analyzer": "^4.10.2" | ||
}, | ||
"dependencies": { | ||
"@mercuryworkshop/bare-as-module3": "^2.2.2", | ||
"@mercuryworkshop/bare-mux": "^2.0.2", | ||
"esbuild-loader": "^4.0.1", | ||
"esbuild-wasm": "^0.23.0", | ||
"esniff": "^2.0.1", | ||
"seafox": "^1.7.1", | ||
"traverse-the-universe": "^2.1.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
// TODO: This will be the runtime version of AeroSandbox | ||
|
||
export default class AeroSandboxRuntime {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { htmlRewriterMode } from "../types/rewriters/html"; | ||
|
||
export type boolFlagType = "true" | "false"; | ||
|
||
export interface FeatureFlags { | ||
// JS Rewriter | ||
INCLUDE_ESNIFF: boolFlagType; | ||
INCLUDE_AST_PARSER_SEAFOX: boolFlagType; | ||
/** @warning currently unsupported */ | ||
INCLUDE_AST_PARSER_OXC: boolFlagType; | ||
INCLUDE_AST_WALKER_TRAVERSE_THE_UNIVERSE: boolFlagType; | ||
/** @warning `custom_elements` is currently unsupported */ | ||
SUPPORTED_HTML_REWRITER_MODES: string; | ||
/** @warning currently unsupported */ | ||
HTML_USE_IS_ATTR: boolFlagType; | ||
/** @warning currently unsupported */ | ||
HTML_USE_NAV_EVENTS: boolFlagType; | ||
/** @warning currently unsupported */ | ||
FEATURE_EMU_SECURE_CONTEXT: boolFlagType; | ||
/** | ||
* TODO: This will make the URL proceed after the hash, evading all peeping by extension filters. | ||
* @warning currently unsupported */ | ||
FEATURE_HASH_URL: boolFlagType; | ||
DEBUG: boolFlagType; | ||
} | ||
|
||
export interface FeatureFlagsRuntime extends FeatureFlags { | ||
// JS Rewriter | ||
INCLUDE_ESNIFF: boolFlagType; | ||
INCLUDE_AST_PARSER_SEAFOX: boolFlagType; | ||
/** @warning currently unsupported */ | ||
INCLUDE_AST_PARSER_OXC: boolFlagType; | ||
INCLUDE_AST_WALKER_TRAVERSE_THE_UNIVERSE: boolFlagType; | ||
/** @warning `custom_elements` is currently unsupported */ | ||
HTML_REWRITER_MODE: htmlRewriterMode; | ||
/** @warning currently unsupported */ | ||
HTML_USE_IS_ATTR: boolFlagType; | ||
/** @warning currently unsupported */ | ||
HTML_USE_NAV_EVENTS: boolFlagType; | ||
DEBUG: boolFlagType; | ||
} | ||
|
||
export function boolFlag(bool: boolean): boolFlagType { | ||
return bool ? "true" : "false"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.