@amalgm/browser 0.1.2-preview.44182723491 → 0.1.2-preview.44182928298
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/CHANGELOG.md +3 -1
- package/PURPOSE.md +106 -153
- package/README.md +27 -16
- package/SECURITY.md +28 -10
- package/dist/native/automation/LICENSE +201 -0
- package/dist/native/automation/README.md +31 -0
- package/dist/native/automation/control-auth.patch +129 -0
- package/dist/native/automation/source.json +6 -0
- package/dist/native/automation.json +90 -0
- package/dist/native/darwin-universal/amalgm-browser-keychain +0 -0
- package/dist/native/encoder-notices/README.md +7 -0
- package/dist/native/encoder-notices/darwin-arm64.LICENSE +129 -0
- package/dist/native/encoder-notices/darwin-arm64.README +46 -0
- package/dist/native/encoder-notices/darwin-x64.LICENSE +127 -0
- package/dist/native/encoder-notices/darwin-x64.README +293 -0
- package/dist/native/encoder-notices/linux-arm64.LICENSE +674 -0
- package/dist/native/encoder-notices/linux-arm64.README +67 -0
- package/dist/native/encoder-notices/linux-x64.LICENSE +674 -0
- package/dist/native/encoder-notices/linux-x64.README +67 -0
- package/dist/native/encoder-notices/win32-x64.LICENSE +674 -0
- package/dist/native/encoder-notices/win32-x64.README +792 -0
- package/dist/native/encoder.json +90 -0
- package/dist/native/engine.json +5016 -0
- package/dist/src/adapters/http/desktop-link.d.ts +7 -0
- package/dist/src/adapters/http/desktop-link.js +29 -0
- package/dist/src/adapters/http/desktop-link.js.map +1 -0
- package/dist/src/adapters/http/internal-routes.js +0 -11
- package/dist/src/adapters/http/internal-routes.js.map +1 -1
- package/dist/src/adapters/http/openapi.js +8 -1
- package/dist/src/adapters/http/openapi.js.map +1 -1
- package/dist/src/adapters/http/server.js +17 -3
- package/dist/src/adapters/http/server.js.map +1 -1
- package/dist/src/adapters/http/session-routes.js +1 -0
- package/dist/src/adapters/http/session-routes.js.map +1 -1
- package/dist/src/adapters/http/stream.d.ts +3 -2
- package/dist/src/adapters/http/stream.js +36 -52
- package/dist/src/adapters/http/stream.js.map +1 -1
- package/dist/src/adapters/http/types.d.ts +5 -0
- package/dist/src/{electron/adblock → adblock}/cache.d.ts +1 -1
- package/dist/src/{electron/adblock → adblock}/cache.js +8 -2
- package/dist/src/adblock/cache.js.map +1 -0
- package/dist/src/adblock/cosmetics.d.ts +33 -0
- package/dist/src/adblock/cosmetics.js +122 -0
- package/dist/src/adblock/cosmetics.js.map +1 -0
- package/dist/src/adblock/monitor.d.ts +4 -0
- package/dist/src/adblock/monitor.js +51 -0
- package/dist/src/adblock/monitor.js.map +1 -0
- package/dist/src/adblock/network.d.ts +15 -0
- package/dist/src/adblock/network.js +20 -0
- package/dist/src/adblock/network.js.map +1 -0
- package/dist/src/adblock/policy.js.map +1 -0
- package/dist/src/adblock/runtime.d.ts +30 -0
- package/dist/src/adblock/runtime.js +221 -0
- package/dist/src/adblock/runtime.js.map +1 -0
- package/dist/src/adblock/settings.js.map +1 -0
- package/dist/src/auth/vault.d.ts +3 -2
- package/dist/src/auth/vault.js.map +1 -1
- package/dist/src/cdp/capability.d.ts +2 -0
- package/dist/src/cdp/capability.js +8 -0
- package/dist/src/cdp/capability.js.map +1 -0
- package/dist/src/cdp/capture-png.d.ts +2 -0
- package/dist/src/cdp/capture-png.js +40 -0
- package/dist/src/cdp/capture-png.js.map +1 -0
- package/dist/src/cdp/capture.js +12 -13
- package/dist/src/cdp/capture.js.map +1 -1
- package/dist/src/cdp/navigation.d.ts +5 -0
- package/dist/src/cdp/navigation.js +53 -1
- package/dist/src/cdp/navigation.js.map +1 -1
- package/dist/src/cdp/screencast.d.ts +0 -1
- package/dist/src/cdp/screencast.js +7 -18
- package/dist/src/cdp/screencast.js.map +1 -1
- package/dist/src/chrome/cookie-adapter.d.ts +3 -0
- package/dist/src/chrome/cookie-adapter.js +6 -32
- package/dist/src/chrome/cookie-adapter.js.map +1 -1
- package/dist/src/chrome/cookie-changes.d.ts +1 -1
- package/dist/src/chrome/cookie-format.d.ts +19 -0
- package/dist/src/chrome/cookie-format.js +31 -0
- package/dist/src/chrome/cookie-format.js.map +1 -0
- package/dist/src/cookies/coordinator.d.ts +2 -2
- package/dist/src/cookies/coordinator.js +58 -24
- package/dist/src/cookies/coordinator.js.map +1 -1
- package/dist/src/cookies/database.d.ts +0 -1
- package/dist/src/cookies/database.js +10 -6
- package/dist/src/cookies/database.js.map +1 -1
- package/dist/src/cookies/jar.d.ts +1 -2
- package/dist/src/cookies/jar.js +2 -22
- package/dist/src/cookies/jar.js.map +1 -1
- package/dist/src/cookies/secret-file.d.ts +4 -2
- package/dist/src/cookies/secret-file.js +8 -32
- package/dist/src/cookies/secret-file.js.map +1 -1
- package/dist/src/cookies/types.d.ts +7 -0
- package/dist/src/credentials/keyring-helper.js +30 -0
- package/dist/src/credentials/keyring-helper.js.map +1 -0
- package/dist/src/credentials/platform-key.d.ts +3 -0
- package/dist/src/credentials/platform-key.js +92 -0
- package/dist/src/credentials/platform-key.js.map +1 -0
- package/dist/src/defaults.d.ts +3 -0
- package/dist/src/defaults.js +12 -10
- package/dist/src/defaults.js.map +1 -1
- package/dist/src/driver/attachment.d.ts +5 -0
- package/dist/src/driver/attachment.js +23 -0
- package/dist/src/driver/attachment.js.map +1 -0
- package/dist/src/driver/cli-policy.js +1 -1
- package/dist/src/driver/cli-policy.js.map +1 -1
- package/dist/src/driver/cli.d.ts +7 -0
- package/dist/src/driver/cli.js +21 -0
- package/dist/src/driver/cli.js.map +1 -0
- package/dist/src/driver/command.d.ts +5 -4
- package/dist/src/driver/command.js +86 -85
- package/dist/src/driver/command.js.map +1 -1
- package/dist/src/driver/cua.d.ts +8 -0
- package/dist/src/driver/cua.js +36 -0
- package/dist/src/driver/cua.js.map +1 -0
- package/dist/src/driver/daemon-start.d.ts +1 -0
- package/dist/src/driver/daemon-start.js +19 -0
- package/dist/src/driver/daemon-start.js.map +1 -0
- package/dist/src/driver/daemon.d.ts +28 -0
- package/dist/src/driver/daemon.js +125 -0
- package/dist/src/driver/daemon.js.map +1 -0
- package/dist/src/driver/driver.d.ts +9 -6
- package/dist/src/driver/driver.js +62 -63
- package/dist/src/driver/driver.js.map +1 -1
- package/dist/src/driver/response.d.ts +4 -0
- package/dist/src/driver/response.js +53 -0
- package/dist/src/driver/response.js.map +1 -0
- package/dist/src/electron/bounds.d.ts +4 -0
- package/dist/src/electron/bounds.js +11 -0
- package/dist/src/electron/bounds.js.map +1 -0
- package/dist/src/electron/contracts.d.ts +10 -1
- package/dist/src/electron/contracts.js +3 -0
- package/dist/src/electron/contracts.js.map +1 -1
- package/dist/src/electron/desktop-link.d.ts +25 -0
- package/dist/src/electron/desktop-link.js +153 -0
- package/dist/src/electron/desktop-link.js.map +1 -0
- package/dist/src/electron/native-context-menu.d.ts +18 -0
- package/dist/src/electron/native-context-menu.js +98 -0
- package/dist/src/electron/native-context-menu.js.map +1 -0
- package/dist/src/electron/native-downloads.d.ts +13 -0
- package/dist/src/electron/native-downloads.js +72 -0
- package/dist/src/electron/native-downloads.js.map +1 -0
- package/dist/src/electron/native-interactions.d.ts +21 -0
- package/dist/src/electron/native-interactions.js +101 -0
- package/dist/src/electron/native-interactions.js.map +1 -0
- package/dist/src/electron/native-popups.d.ts +19 -0
- package/dist/src/electron/native-popups.js +109 -0
- package/dist/src/electron/native-popups.js.map +1 -0
- package/dist/src/electron/native-presentation.d.ts +8 -0
- package/dist/src/electron/native-presentation.js +2 -0
- package/dist/src/electron/native-presentation.js.map +1 -0
- package/dist/src/electron/native-surfaces.d.ts +7 -0
- package/dist/src/electron/native-surfaces.js +214 -0
- package/dist/src/electron/native-surfaces.js.map +1 -0
- package/dist/src/electron/policy.d.ts +0 -4
- package/dist/src/electron/policy.js +0 -24
- package/dist/src/electron/policy.js.map +1 -1
- package/dist/src/electron/runtime-windows.d.ts +19 -0
- package/dist/src/electron/runtime-windows.js +115 -0
- package/dist/src/electron/runtime-windows.js.map +1 -0
- package/dist/src/electron/shell.d.ts +10 -2
- package/dist/src/electron/shell.js +22 -68
- package/dist/src/electron/shell.js.map +1 -1
- package/dist/src/electron.cjs +4551 -12940
- package/dist/src/electron.d.cts +4 -1
- package/dist/src/electron.d.ts +4 -1
- package/dist/src/electron.js +2 -1
- package/dist/src/electron.js.map +1 -1
- package/dist/src/host/desktop-protocol.d.ts +71 -0
- package/dist/src/host/desktop-protocol.js +13 -0
- package/dist/src/host/desktop-protocol.js.map +1 -0
- package/dist/src/host/desktop-windows.d.ts +6 -0
- package/dist/src/host/desktop-windows.js +34 -0
- package/dist/src/host/desktop-windows.js.map +1 -0
- package/dist/src/host/desktop.d.ts +5 -0
- package/dist/src/host/desktop.js +138 -0
- package/dist/src/host/desktop.js.map +1 -0
- package/dist/src/host/engine.d.ts +43 -0
- package/dist/src/host/engine.js +2 -0
- package/dist/src/host/engine.js.map +1 -0
- package/dist/src/host/host.d.ts +38 -0
- package/dist/src/host/host.js +213 -0
- package/dist/src/host/host.js.map +1 -0
- package/dist/src/host/live-stream.d.ts +20 -0
- package/dist/src/host/live-stream.js +115 -0
- package/dist/src/host/live-stream.js.map +1 -0
- package/dist/src/host/relay/editing.js.map +1 -0
- package/dist/src/host/relay/server.d.ts +30 -0
- package/dist/src/host/relay/server.js +219 -0
- package/dist/src/host/relay/server.js.map +1 -0
- package/dist/src/{chrome → host}/relay/view.d.ts +2 -1
- package/dist/src/{chrome → host}/relay/view.js +11 -5
- package/dist/src/host/relay/view.js.map +1 -0
- package/dist/src/host/sessions.d.ts +42 -0
- package/dist/src/host/sessions.js +158 -0
- package/dist/src/host/sessions.js.map +1 -0
- package/dist/src/host/stream-input.d.ts +4 -0
- package/dist/src/host/stream-input.js +46 -0
- package/dist/src/host/stream-input.js.map +1 -0
- package/dist/src/host/stream-viewport.d.ts +6 -0
- package/dist/src/host/stream-viewport.js +70 -0
- package/dist/src/host/stream-viewport.js.map +1 -0
- package/dist/src/host/window-protocol.d.ts +67 -0
- package/dist/src/host/window-protocol.js +2 -0
- package/dist/src/host/window-protocol.js.map +1 -0
- package/dist/src/native/artifact-archive.d.ts +4 -0
- package/dist/src/native/artifact-archive.js +110 -0
- package/dist/src/native/artifact-archive.js.map +1 -0
- package/dist/src/native/artifact-cache.d.ts +9 -0
- package/dist/src/native/artifact-cache.js +113 -0
- package/dist/src/native/artifact-cache.js.map +1 -0
- package/dist/src/native/artifact-manifest.d.ts +25 -0
- package/dist/src/native/artifact-manifest.js +60 -0
- package/dist/src/native/artifact-manifest.js.map +1 -0
- package/dist/src/native/artifact-zip.d.ts +3 -0
- package/dist/src/native/artifact-zip.js +59 -0
- package/dist/src/native/artifact-zip.js.map +1 -0
- package/dist/src/native/automation.d.ts +2 -0
- package/dist/src/native/automation.js +33 -0
- package/dist/src/native/automation.js.map +1 -0
- package/dist/src/native/cache-directory.d.ts +1 -0
- package/dist/src/native/cache-directory.js +11 -0
- package/dist/src/native/cache-directory.js.map +1 -0
- package/dist/src/native/cdp-bridge.d.ts +17 -0
- package/dist/src/native/cdp-bridge.js +240 -0
- package/dist/src/native/cdp-bridge.js.map +1 -0
- package/dist/src/native/cdp-dialogs.d.ts +19 -0
- package/dist/src/native/cdp-dialogs.js +54 -0
- package/dist/src/native/cdp-dialogs.js.map +1 -0
- package/dist/src/native/cdp-pipe.d.ts +19 -0
- package/dist/src/native/cdp-pipe.js +112 -0
- package/dist/src/native/cdp-pipe.js.map +1 -0
- package/dist/src/native/cdp.d.ts +4 -0
- package/dist/src/native/cdp.js +71 -0
- package/dist/src/native/cdp.js.map +1 -0
- package/dist/src/native/downloads.d.ts +16 -0
- package/dist/src/native/downloads.js +76 -0
- package/dist/src/native/downloads.js.map +1 -0
- package/dist/src/native/encoder.d.ts +3 -0
- package/dist/src/native/encoder.js +37 -0
- package/dist/src/native/encoder.js.map +1 -0
- package/dist/src/native/engine.d.ts +20 -0
- package/dist/src/native/engine.js +267 -0
- package/dist/src/native/engine.js.map +1 -0
- package/dist/src/native/executable.d.ts +1 -0
- package/dist/src/native/executable.js +23 -0
- package/dist/src/native/executable.js.map +1 -0
- package/dist/src/native/interactions.d.ts +30 -0
- package/dist/src/native/interactions.js +16 -0
- package/dist/src/native/interactions.js.map +1 -0
- package/dist/src/native/permissions.d.ts +10 -0
- package/dist/src/native/permissions.js +62 -0
- package/dist/src/native/permissions.js.map +1 -0
- package/dist/src/native/process.d.ts +32 -0
- package/dist/src/native/process.js +212 -0
- package/dist/src/native/process.js.map +1 -0
- package/dist/src/native/profile-cookies.d.ts +3 -0
- package/dist/src/native/profile-cookies.js +160 -0
- package/dist/src/native/profile-cookies.js.map +1 -0
- package/dist/src/persistence/session-pages.d.ts +10 -0
- package/dist/src/persistence/session-pages.js +31 -0
- package/dist/src/persistence/session-pages.js.map +1 -0
- package/dist/src/persistence/sqlite-registry.js +7 -1
- package/dist/src/persistence/sqlite-registry.js.map +1 -1
- package/dist/src/ports.d.ts +5 -1
- package/dist/src/ports.js.map +1 -1
- package/dist/src/recording/service.js +2 -1
- package/dist/src/recording/service.js.map +1 -1
- package/dist/src/registry.js +2 -0
- package/dist/src/registry.js.map +1 -1
- package/dist/src/runtime-electron/downloads.d.ts +11 -0
- package/dist/src/runtime-electron/downloads.js +60 -0
- package/dist/src/runtime-electron/downloads.js.map +1 -0
- package/dist/src/runtime-electron/engine.d.ts +4 -0
- package/dist/src/runtime-electron/engine.js +46 -0
- package/dist/src/runtime-electron/engine.js.map +1 -0
- package/dist/src/runtime-electron/interactions.d.ts +24 -0
- package/dist/src/runtime-electron/interactions.js +211 -0
- package/dist/src/runtime-electron/interactions.js.map +1 -0
- package/dist/src/runtime-electron/main.cjs +6312 -0
- package/dist/src/runtime-electron/main.d.ts +1 -0
- package/dist/src/runtime-electron/main.js +133 -0
- package/dist/src/runtime-electron/main.js.map +1 -0
- package/dist/src/runtime-electron/media-components.d.ts +3 -0
- package/dist/src/runtime-electron/media-components.js +18 -0
- package/dist/src/runtime-electron/media-components.js.map +1 -0
- package/dist/src/runtime-electron/native-frame.d.ts +5 -0
- package/dist/src/runtime-electron/native-frame.js +21 -0
- package/dist/src/runtime-electron/native-frame.js.map +1 -0
- package/dist/src/runtime-electron/network.d.ts +23 -0
- package/dist/src/runtime-electron/network.js +98 -0
- package/dist/src/runtime-electron/network.js.map +1 -0
- package/dist/src/runtime-electron/page-preload.cjs +13 -0
- package/dist/src/runtime-electron/page-preload.d.ts +1 -0
- package/dist/src/runtime-electron/page-preload.js +10 -0
- package/dist/src/runtime-electron/page-preload.js.map +1 -0
- package/dist/src/runtime-electron/page-rendering.d.ts +19 -0
- package/dist/src/runtime-electron/page-rendering.js +100 -0
- package/dist/src/runtime-electron/page-rendering.js.map +1 -0
- package/dist/src/runtime-electron/page-viewport.d.ts +14 -0
- package/dist/src/runtime-electron/page-viewport.js +39 -0
- package/dist/src/runtime-electron/page-viewport.js.map +1 -0
- package/dist/src/runtime-electron/page-views.d.ts +22 -0
- package/dist/src/runtime-electron/page-views.js +137 -0
- package/dist/src/runtime-electron/page-views.js.map +1 -0
- package/dist/src/runtime-electron/pages.d.ts +50 -0
- package/dist/src/runtime-electron/pages.js +213 -0
- package/dist/src/runtime-electron/pages.js.map +1 -0
- package/dist/src/runtime-electron/permission-scopes.d.ts +5 -0
- package/dist/src/runtime-electron/permission-scopes.js +12 -0
- package/dist/src/runtime-electron/permission-scopes.js.map +1 -0
- package/dist/src/runtime-electron/presentation.d.ts +22 -0
- package/dist/src/runtime-electron/presentation.js +143 -0
- package/dist/src/runtime-electron/presentation.js.map +1 -0
- package/dist/src/runtime-electron/profile-migration.d.ts +3 -0
- package/dist/src/runtime-electron/profile-migration.js +112 -0
- package/dist/src/runtime-electron/profile-migration.js.map +1 -0
- package/dist/src/runtime-electron/prompt-preload.cjs +24 -0
- package/dist/src/runtime-electron/prompt-preload.d.ts +1 -0
- package/dist/src/runtime-electron/prompt-preload.js +18 -0
- package/dist/src/runtime-electron/prompt-preload.js.map +1 -0
- package/dist/src/runtime-electron/prompt-window.d.ts +16 -0
- package/dist/src/runtime-electron/prompt-window.js +52 -0
- package/dist/src/runtime-electron/prompt-window.js.map +1 -0
- package/dist/src/runtime-electron/protocol.d.ts +8 -0
- package/dist/src/runtime-electron/protocol.js +43 -0
- package/dist/src/runtime-electron/protocol.js.map +1 -0
- package/dist/src/runtime-electron/ui-profile.d.ts +15 -0
- package/dist/src/runtime-electron/ui-profile.js +128 -0
- package/dist/src/runtime-electron/ui-profile.js.map +1 -0
- package/dist/src/runtime-electron/window-control.d.ts +4 -0
- package/dist/src/runtime-electron/window-control.js +40 -0
- package/dist/src/runtime-electron/window-control.js.map +1 -0
- package/dist/src/runtime-electron/windows.d.ts +28 -0
- package/dist/src/runtime-electron/windows.js +186 -0
- package/dist/src/runtime-electron/windows.js.map +1 -0
- package/dist/src/service-options.d.ts +2 -0
- package/dist/src/service.d.ts +3 -0
- package/dist/src/service.js +12 -40
- package/dist/src/service.js.map +1 -1
- package/dist/src/sessions/admission.d.ts +12 -0
- package/dist/src/sessions/admission.js +68 -0
- package/dist/src/sessions/admission.js.map +1 -0
- package/dist/src/testing.d.ts +2 -1
- package/dist/src/testing.js +5 -1
- package/dist/src/testing.js.map +1 -1
- package/dist/src/types.d.ts +0 -1
- package/dist/src/viewport.d.ts +7 -0
- package/dist/src/viewport.js +8 -0
- package/dist/src/viewport.js.map +1 -0
- package/docs/ARCHITECTURE.md +114 -58
- package/docs/AXIOMS.md +39 -17
- package/docs/CHROME.md +74 -155
- package/docs/COMPATIBILITY.md +11 -4
- package/docs/COOKIES.md +33 -19
- package/docs/ELECTRON_INTEGRATION.md +70 -100
- package/docs/ENGINE_DELIVERY.md +143 -0
- package/docs/ENGINE_RELEASE.md +72 -0
- package/docs/NATIVE_BROWSER.md +138 -0
- package/docs/OPERATIONS.md +28 -12
- package/docs/README.md +3 -1
- package/docs/REALTIME_BOUNDARY.md +3 -4
- package/docs/REST.md +13 -9
- package/docs/SDK.md +13 -8
- package/docs/SHELL_INTEGRATION.md +11 -8
- package/docs/TESTING.md +56 -62
- package/docs/TROUBLESHOOTING.md +24 -24
- package/package.json +36 -16
- package/skills/use-amalgm-browser/SKILL.md +4 -3
- package/dist/src/chrome/executable.d.ts +0 -1
- package/dist/src/chrome/executable.js +0 -55
- package/dist/src/chrome/executable.js.map +0 -1
- package/dist/src/chrome/flags.d.ts +0 -7
- package/dist/src/chrome/flags.js +0 -59
- package/dist/src/chrome/flags.js.map +0 -1
- package/dist/src/chrome/host.d.ts +0 -25
- package/dist/src/chrome/host.js +0 -135
- package/dist/src/chrome/host.js.map +0 -1
- package/dist/src/chrome/launch.d.ts +0 -11
- package/dist/src/chrome/launch.js +0 -121
- package/dist/src/chrome/launch.js.map +0 -1
- package/dist/src/chrome/relay/editing.js.map +0 -1
- package/dist/src/chrome/relay/server.d.ts +0 -18
- package/dist/src/chrome/relay/server.js +0 -120
- package/dist/src/chrome/relay/server.js.map +0 -1
- package/dist/src/chrome/relay/targets.d.ts +0 -11
- package/dist/src/chrome/relay/targets.js +0 -59
- package/dist/src/chrome/relay/targets.js.map +0 -1
- package/dist/src/chrome/relay/view.js.map +0 -1
- package/dist/src/driver/executable.d.ts +0 -8
- package/dist/src/driver/executable.js +0 -56
- package/dist/src/driver/executable.js.map +0 -1
- package/dist/src/driver/stream.d.ts +0 -1
- package/dist/src/driver/stream.js +0 -22
- package/dist/src/driver/stream.js.map +0 -1
- package/dist/src/electron/adblock/cache.js.map +0 -1
- package/dist/src/electron/adblock/cosmetics.d.ts +0 -11
- package/dist/src/electron/adblock/cosmetics.js +0 -45
- package/dist/src/electron/adblock/cosmetics.js.map +0 -1
- package/dist/src/electron/adblock/index.d.ts +0 -43
- package/dist/src/electron/adblock/index.js +0 -157
- package/dist/src/electron/adblock/index.js.map +0 -1
- package/dist/src/electron/adblock/policy.js.map +0 -1
- package/dist/src/electron/adblock/preload.js +0 -131
- package/dist/src/electron/adblock/preload.js.map +0 -1
- package/dist/src/electron/adblock/settings.js.map +0 -1
- package/dist/src/electron/cookie-adapter.d.ts +0 -17
- package/dist/src/electron/cookie-adapter.js +0 -72
- package/dist/src/electron/cookie-adapter.js.map +0 -1
- package/dist/src/electron/cookie-sync.d.ts +0 -6
- package/dist/src/electron/cookie-sync.js +0 -18
- package/dist/src/electron/cookie-sync.js.map +0 -1
- package/dist/src/electron/session.d.ts +0 -2
- package/dist/src/electron/session.js +0 -9
- package/dist/src/electron/session.js.map +0 -1
- package/dist/src/electron/shell/adblock-ipc.d.ts +0 -10
- package/dist/src/electron/shell/adblock-ipc.js +0 -44
- package/dist/src/electron/shell/adblock-ipc.js.map +0 -1
- package/dist/src/electron/shell/context-menu.d.ts +0 -11
- package/dist/src/electron/shell/context-menu.js +0 -129
- package/dist/src/electron/shell/context-menu.js.map +0 -1
- package/dist/src/electron/shell/downloads.d.ts +0 -11
- package/dist/src/electron/shell/downloads.js +0 -90
- package/dist/src/electron/shell/downloads.js.map +0 -1
- package/dist/src/electron/shell/helpers.d.ts +0 -5
- package/dist/src/electron/shell/helpers.js +0 -53
- package/dist/src/electron/shell/helpers.js.map +0 -1
- package/dist/src/electron/shell/permissions.d.ts +0 -16
- package/dist/src/electron/shell/permissions.js +0 -107
- package/dist/src/electron/shell/permissions.js.map +0 -1
- package/dist/src/electron/shell/sites.d.ts +0 -22
- package/dist/src/electron/shell/sites.js +0 -87
- package/dist/src/electron/shell/sites.js.map +0 -1
- package/dist/src/electron/shell/types.d.ts +0 -12
- package/dist/src/electron/shell/types.js +0 -2
- package/dist/src/electron/shell/types.js.map +0 -1
- package/dist/src/electron/surface/commands.d.ts +0 -4
- package/dist/src/electron/surface/commands.js +0 -49
- package/dist/src/electron/surface/commands.js.map +0 -1
- package/dist/src/electron/surface/create.d.ts +0 -4
- package/dist/src/electron/surface/create.js +0 -40
- package/dist/src/electron/surface/create.js.map +0 -1
- package/dist/src/electron/surface/events.d.ts +0 -3
- package/dist/src/electron/surface/events.js +0 -43
- package/dist/src/electron/surface/events.js.map +0 -1
- package/dist/src/electron/surface/presentation.d.ts +0 -8
- package/dist/src/electron/surface/presentation.js +0 -29
- package/dist/src/electron/surface/presentation.js.map +0 -1
- package/dist/src/electron/surface/state.d.ts +0 -12
- package/dist/src/electron/surface/state.js +0 -51
- package/dist/src/electron/surface/state.js.map +0 -1
- package/dist/src/electron/surface/types.d.ts +0 -33
- package/dist/src/electron/surface/types.js +0 -2
- package/dist/src/electron/surface/types.js.map +0 -1
- package/dist/src/electron/surface-controller.d.ts +0 -6
- package/dist/src/electron/surface-controller.js +0 -135
- package/dist/src/electron/surface-controller.js.map +0 -1
- package/dist/src/electron-preload.cjs +0 -113
- /package/dist/src/{electron/adblock → adblock}/policy.d.ts +0 -0
- /package/dist/src/{electron/adblock → adblock}/policy.js +0 -0
- /package/dist/src/{electron/adblock → adblock}/settings.d.ts +0 -0
- /package/dist/src/{electron/adblock → adblock}/settings.js +0 -0
- /package/dist/src/{electron/adblock/preload.d.ts → credentials/keyring-helper.d.ts} +0 -0
- /package/dist/src/{chrome → host}/relay/editing.d.ts +0 -0
- /package/dist/src/{chrome → host}/relay/editing.js +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 Vercel Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Authenticated automation supplier
|
|
2
|
+
|
|
3
|
+
Browser uses agent-browser's page operations against its runtime-owned pages.
|
|
4
|
+
The pinned supplier starts an unauthenticated stream, and its Windows command
|
|
5
|
+
transport is unauthenticated TCP. Neither transport may become page authority.
|
|
6
|
+
|
|
7
|
+
`source.json` pins the upstream commit and Rust toolchain. `control-auth.patch`
|
|
8
|
+
adds HMAC authentication to each command, strips authentication before action
|
|
9
|
+
handling, and prevents retry after a command's delivery becomes uncertain.
|
|
10
|
+
Connection failures before dispatch may still retry. Browser supplies and rotates
|
|
11
|
+
the credential, disables the auxiliary stream before admitting CDP, and binds
|
|
12
|
+
admission to the exact daemon process. Public page commands remain unchanged.
|
|
13
|
+
|
|
14
|
+
The build workflow compiles the pinned source on its native hosts, tests the
|
|
15
|
+
protocol without starting Chromium, and retains one gzip executable, its exact
|
|
16
|
+
applied patch bytes and a full pin record per target. Patch records verify those
|
|
17
|
+
bytes and canonical source text independently of Git checkout line endings.
|
|
18
|
+
Windows ARM uses the examined Windows x64 executable.
|
|
19
|
+
The normal Browser native matrix must then exercise the exact pinned programs
|
|
20
|
+
before package publication. Builds never publish or promote their own output.
|
|
21
|
+
|
|
22
|
+
After downloading all successful build artifacts, run
|
|
23
|
+
`node scripts/automation/pin.mjs <download-directory>` to verify their exact
|
|
24
|
+
source, patch, protocol evidence and archive contents and generate the manifest.
|
|
25
|
+
The manifest selects immutable public URLs in `amalgm-desktop-releases`, separate
|
|
26
|
+
from private source and build receipts. Publish those same gzip files there
|
|
27
|
+
before running the normal Browser platform matrix; never replace published assets.
|
|
28
|
+
|
|
29
|
+
The supplier is Apache-2.0 licensed; `LICENSE` preserves its notice. The patch
|
|
30
|
+
identifies Amalgm's changes. Dashboard assets are deliberately omitted because
|
|
31
|
+
Browser never exposes the supplier dashboard or stream.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
--- a/cli/src/main.rs
|
|
2
|
+
+++ b/cli/src/main.rs
|
|
3
|
+
@@ -2,6 +2,7 @@
|
|
4
|
+
mod color;
|
|
5
|
+
mod commands;
|
|
6
|
+
mod connection;
|
|
7
|
+
+mod control_auth;
|
|
8
|
+
mod doctor;
|
|
9
|
+
mod flags;
|
|
10
|
+
mod install;
|
|
11
|
+
--- a/cli/src/connection.rs
|
|
12
|
+
+++ b/cli/src/connection.rs
|
|
13
|
+
@@ -824,20 +824,21 @@
|
|
14
|
+
stream.set_read_timeout(Some(Duration::from_secs(30))).ok();
|
|
15
|
+
stream.set_write_timeout(Some(Duration::from_secs(5))).ok();
|
|
16
|
+
|
|
17
|
+
- let mut json_str = serde_json::to_string(cmd).map_err(|e| e.to_string())?;
|
|
18
|
+
+ let signed = crate::control_auth::sign(cmd, env::var("AGENT_BROWSER_IPC_KEY").ok().as_deref())?;
|
|
19
|
+
+ let mut json_str = serde_json::to_string(&signed).map_err(|e| e.to_string())?;
|
|
20
|
+
json_str.push('\n');
|
|
21
|
+
|
|
22
|
+
stream
|
|
23
|
+
.write_all(json_str.as_bytes())
|
|
24
|
+
- .map_err(|e| format!("Failed to send: {}", e))?;
|
|
25
|
+
+ .map_err(|_| "Automation command delivery was interrupted; outcome is unknown".to_string())?;
|
|
26
|
+
|
|
27
|
+
let mut reader = BufReader::new(stream);
|
|
28
|
+
let mut response_line = String::new();
|
|
29
|
+
reader
|
|
30
|
+
.read_line(&mut response_line)
|
|
31
|
+
- .map_err(|e| format!("Failed to read: {}", e))?;
|
|
32
|
+
-
|
|
33
|
+
- serde_json::from_str(&response_line).map_err(|e| format!("Invalid response: {}", e))
|
|
34
|
+
+ .map_err(|_| "Automation command response was interrupted; outcome is unknown".to_string())?;
|
|
35
|
+
+
|
|
36
|
+
+ serde_json::from_str(&response_line).map_err(|_| "Automation command returned an invalid response; outcome is unknown".to_string())
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#[cfg(test)]
|
|
40
|
+
--- a/cli/src/native/daemon.rs
|
|
41
|
+
+++ b/cli/src/native/daemon.rs
|
|
42
|
+
@@ -17,6 +17,10 @@
|
|
43
|
+
use super::stream::StreamServer;
|
|
44
|
+
|
|
45
|
+
pub async fn run_daemon(session: &str) {
|
|
46
|
+
+ if env::var("AGENT_BROWSER_IPC_KEY").map_or(true, |key| key.len() < 64) {
|
|
47
|
+
+ eprintln!("Authenticated automation requires its owner credential.");
|
|
48
|
+
+ return;
|
|
49
|
+
+ }
|
|
50
|
+
let socket_dir = get_daemon_socket_dir();
|
|
51
|
+
if !socket_dir.exists() {
|
|
52
|
+
let _ = fs::create_dir_all(&socket_dir);
|
|
53
|
+
@@ -381,7 +385,7 @@
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
- let cmd: Value = match serde_json::from_str(trimmed) {
|
|
58
|
+
+ let mut cmd: Value = match serde_json::from_str(trimmed) {
|
|
59
|
+
Ok(v) => v,
|
|
60
|
+
Err(e) => {
|
|
61
|
+
let err = serde_json::json!({
|
|
62
|
+
@@ -394,6 +398,11 @@
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
+
|
|
67
|
+
+ if !crate::control_auth::accept(&mut cmd, env::var("AGENT_BROWSER_IPC_KEY").ok().as_deref()) {
|
|
68
|
+
+ let _ = writer.write_all(b"{\"success\":false,\"error\":\"Unauthorized automation command\",\"code\":\"UNAUTHORIZED_CONTROL\"}\n").await;
|
|
69
|
+
+ break;
|
|
70
|
+
+ }
|
|
71
|
+
|
|
72
|
+
if let Some(ref tx) = idle_reset_tx {
|
|
73
|
+
let _ = tx.try_send(());
|
|
74
|
+
--- /dev/null
|
|
75
|
+
+++ b/cli/src/control_auth.rs
|
|
76
|
+
@@ -0,0 +1,53 @@
|
|
77
|
+
+// Amalgm modification: authenticate the owner's private automation protocol.
|
|
78
|
+
+use hmac::{Hmac, Mac};
|
|
79
|
+
+use serde_json::Value;
|
|
80
|
+
+use sha2::Sha256;
|
|
81
|
+
+
|
|
82
|
+
+const FIELD: &str = "_amalgm_control_auth";
|
|
83
|
+
+
|
|
84
|
+
+fn mac(cmd: &Value, key: &str) -> Result<Hmac<Sha256>, String> {
|
|
85
|
+
+ let mut mac = Hmac::<Sha256>::new_from_slice(key.as_bytes()).map_err(|_| "Invalid automation credential")?;
|
|
86
|
+
+ mac.update(&serde_json::to_vec(cmd).map_err(|_| "Invalid automation command")?);
|
|
87
|
+
+ Ok(mac)
|
|
88
|
+
+}
|
|
89
|
+
+
|
|
90
|
+
+pub fn sign(cmd: &Value, key: Option<&str>) -> Result<Value, String> {
|
|
91
|
+
+ let mut signed = cmd.clone();
|
|
92
|
+
+ // An uncredentialed CLI can still close a legacy daemon during migration.
|
|
93
|
+
+ if let Some(key) = key {
|
|
94
|
+
+ let proof = hex::encode(mac(cmd, key)?.finalize().into_bytes());
|
|
95
|
+
+ signed.as_object_mut().ok_or("Invalid automation command")?.insert(FIELD.into(), Value::String(proof));
|
|
96
|
+
+ }
|
|
97
|
+
+ Ok(signed)
|
|
98
|
+
+}
|
|
99
|
+
+
|
|
100
|
+
+pub fn accept(cmd: &mut Value, key: Option<&str>) -> bool {
|
|
101
|
+
+ let proof = cmd.as_object_mut().and_then(|value| value.remove(FIELD));
|
|
102
|
+
+ let Some(key) = key.filter(|key| key.len() >= 64) else { return false; };
|
|
103
|
+
+ let Some(proof) = proof.and_then(|value| value.as_str().and_then(|text| hex::decode(text).ok())) else { return false; };
|
|
104
|
+
+ mac(cmd, key).is_ok_and(|mac| mac.verify_slice(&proof).is_ok())
|
|
105
|
+
+}
|
|
106
|
+
+
|
|
107
|
+
+#[cfg(test)]
|
|
108
|
+
+mod amalgm_control_auth {
|
|
109
|
+
+ use super::*;
|
|
110
|
+
+ use serde_json::json;
|
|
111
|
+
+
|
|
112
|
+
+ #[test]
|
|
113
|
+
+ fn every_command_needs_its_owner_and_payload() {
|
|
114
|
+
+ let key = "a".repeat(64);
|
|
115
|
+
+ for command in [json!({"action":"close"}), json!({"action":"stream_status"}),
|
|
116
|
+
+ json!({"action":"evaluate","script":"document.title","id":"opaque"}),
|
|
117
|
+
+ json!({"action":"fill","text":"— \n 中文","value":[null,true,1.25]})] {
|
|
118
|
+
+ let signed = sign(&command, Some(&key)).unwrap();
|
|
119
|
+
+ let mut received: Value = serde_json::from_slice(&serde_json::to_vec(&signed).unwrap()).unwrap();
|
|
120
|
+
+ assert!(accept(&mut received, Some(&key)));
|
|
121
|
+
+ assert_eq!(received, command, "Authentication metadata never enters action handling.");
|
|
122
|
+
+ assert!(!accept(&mut command.clone(), Some(&key)));
|
|
123
|
+
+ assert!(!accept(&mut signed.clone(), Some(&"b".repeat(64))));
|
|
124
|
+
+ assert!(!accept(&mut signed.clone(), None));
|
|
125
|
+
+ let mut changed = signed; changed["action"] = json!("other");
|
|
126
|
+
+ assert!(!accept(&mut changed, Some(&key)));
|
|
127
|
+
+ }
|
|
128
|
+
+ }
|
|
129
|
+
+}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"version": "0.26.0-amalgm.1",
|
|
4
|
+
"platforms": {
|
|
5
|
+
"darwin-arm64": {
|
|
6
|
+
"url": "https://github.com/amalgm-inc/amalgm-desktop-releases/releases/download/browser-automation-0.26.0-amalgm.1/agent-browser-darwin-arm64.gz",
|
|
7
|
+
"sha256": "3bc1e76fa6c59f27bf0dd04356f63c2dc1aa8db25eceebd68bf6b6603261b78f",
|
|
8
|
+
"bytes": 3745236,
|
|
9
|
+
"format": "gz",
|
|
10
|
+
"executable": "agent-browser",
|
|
11
|
+
"files": {
|
|
12
|
+
"agent-browser": {
|
|
13
|
+
"sha256": "0dad8e063c8093365a4b98e1d6bc0e21984a01305e2ce19bb2650b493604dbb9",
|
|
14
|
+
"bytes": 7389952,
|
|
15
|
+
"mode": 493
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"darwin-x64": {
|
|
20
|
+
"url": "https://github.com/amalgm-inc/amalgm-desktop-releases/releases/download/browser-automation-0.26.0-amalgm.1/agent-browser-darwin-x64.gz",
|
|
21
|
+
"sha256": "854b01b3053be19ea5935d3b88d838578d9f51bda25015fb69e9af957d7a107d",
|
|
22
|
+
"bytes": 3974469,
|
|
23
|
+
"format": "gz",
|
|
24
|
+
"executable": "agent-browser",
|
|
25
|
+
"files": {
|
|
26
|
+
"agent-browser": {
|
|
27
|
+
"sha256": "ded48101d2c70c8f00c01760b0ef26a7d6652c398e37041c2e7b94a3a9610183",
|
|
28
|
+
"bytes": 8205280,
|
|
29
|
+
"mode": 493
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"linux-arm64": {
|
|
34
|
+
"url": "https://github.com/amalgm-inc/amalgm-desktop-releases/releases/download/browser-automation-0.26.0-amalgm.1/agent-browser-linux-arm64.gz",
|
|
35
|
+
"sha256": "806b66ced53acfcb3ef2e0178e350a3a2bef16e7ad828256a74273dd7a4d19a0",
|
|
36
|
+
"bytes": 3842481,
|
|
37
|
+
"format": "gz",
|
|
38
|
+
"executable": "agent-browser",
|
|
39
|
+
"files": {
|
|
40
|
+
"agent-browser": {
|
|
41
|
+
"sha256": "330882eabeedd97cbf05625528c55583b13017b2665aacdb20745083d9b63433",
|
|
42
|
+
"bytes": 7542016,
|
|
43
|
+
"mode": 493
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"linux-x64": {
|
|
48
|
+
"url": "https://github.com/amalgm-inc/amalgm-desktop-releases/releases/download/browser-automation-0.26.0-amalgm.1/agent-browser-linux-x64.gz",
|
|
49
|
+
"sha256": "f4bbd27ebd75f0a0cef918cd4f84ee7e8bd7d32b637a4910b261618e30116e81",
|
|
50
|
+
"bytes": 4116245,
|
|
51
|
+
"format": "gz",
|
|
52
|
+
"executable": "agent-browser",
|
|
53
|
+
"files": {
|
|
54
|
+
"agent-browser": {
|
|
55
|
+
"sha256": "acb3716e002001f4ef72ce038c741bc5b972341b9828bfc97dbaa2f9bd682b74",
|
|
56
|
+
"bytes": 8799096,
|
|
57
|
+
"mode": 493
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"win32-arm64": {
|
|
62
|
+
"url": "https://github.com/amalgm-inc/amalgm-desktop-releases/releases/download/browser-automation-0.26.0-amalgm.1/agent-browser-win32-x64.gz",
|
|
63
|
+
"sha256": "0c018305dc29c2f19ca33b7efbd316dbf5d869123298491d73a84ac832e443c5",
|
|
64
|
+
"bytes": 4349215,
|
|
65
|
+
"format": "gz",
|
|
66
|
+
"executable": "agent-browser.exe",
|
|
67
|
+
"files": {
|
|
68
|
+
"agent-browser.exe": {
|
|
69
|
+
"sha256": "5b8a0f6caa7c423a395dde27d0380cc07096c2d465d4dd861f6c9137099fb4ae",
|
|
70
|
+
"bytes": 10849280,
|
|
71
|
+
"mode": 493
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"win32-x64": {
|
|
76
|
+
"url": "https://github.com/amalgm-inc/amalgm-desktop-releases/releases/download/browser-automation-0.26.0-amalgm.1/agent-browser-win32-x64.gz",
|
|
77
|
+
"sha256": "0c018305dc29c2f19ca33b7efbd316dbf5d869123298491d73a84ac832e443c5",
|
|
78
|
+
"bytes": 4349215,
|
|
79
|
+
"format": "gz",
|
|
80
|
+
"executable": "agent-browser.exe",
|
|
81
|
+
"files": {
|
|
82
|
+
"agent-browser.exe": {
|
|
83
|
+
"sha256": "5b8a0f6caa7c423a395dde27d0380cc07096c2d465d4dd861f6c9137099fb4ae",
|
|
84
|
+
"bytes": 10849280,
|
|
85
|
+
"mode": 493
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Encoder supplier notices
|
|
2
|
+
|
|
3
|
+
These are unmodified, integrity-verified copies of the supplier's per-platform
|
|
4
|
+
license and README files. Repetition is intentional: each platform retains the
|
|
5
|
+
notices distributed with its own binary. Windows ARM uses the same
|
|
6
|
+
pinned x64 encoder and notices through Windows 11 emulation. See `docs/ENGINE_DELIVERY.md` for
|
|
7
|
+
the exact upstream releases and the pin-generation command.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
Most files in FFmpeg are under the GNU Lesser General Public License version 2.1
|
|
4
|
+
or later (LGPL v2.1+). Read the file `COPYING.LGPLv2.1` for details. Some other
|
|
5
|
+
files have MIT/X11/BSD-style licenses. In combination the LGPL v2.1+ applies to
|
|
6
|
+
FFmpeg.
|
|
7
|
+
|
|
8
|
+
Some optional parts of FFmpeg are licensed under the GNU General Public License
|
|
9
|
+
version 2 or later (GPL v2+). See the file `COPYING.GPLv2` for details. None of
|
|
10
|
+
these parts are used by default, you have to explicitly pass `--enable-gpl` to
|
|
11
|
+
configure to activate them. In this case, FFmpeg's license changes to GPL v2+.
|
|
12
|
+
|
|
13
|
+
Specifically, the GPL parts of FFmpeg are:
|
|
14
|
+
|
|
15
|
+
- libpostproc
|
|
16
|
+
- optional x86 optimization in the files
|
|
17
|
+
- `libavcodec/x86/flac_dsp_gpl.asm`
|
|
18
|
+
- `libavcodec/x86/idct_mmx.c`
|
|
19
|
+
- `libavfilter/x86/vf_removegrain.asm`
|
|
20
|
+
- the following building and testing tools
|
|
21
|
+
- `compat/solaris/make_sunver.pl`
|
|
22
|
+
- `doc/t2h.pm`
|
|
23
|
+
- `doc/texi2pod.pl`
|
|
24
|
+
- `libswresample/tests/swresample.c`
|
|
25
|
+
- `tests/checkasm/*`
|
|
26
|
+
- `tests/tiny_ssim.c`
|
|
27
|
+
- the following filters in libavfilter:
|
|
28
|
+
- `signature_lookup.c`
|
|
29
|
+
- `vf_blackframe.c`
|
|
30
|
+
- `vf_boxblur.c`
|
|
31
|
+
- `vf_colormatrix.c`
|
|
32
|
+
- `vf_cover_rect.c`
|
|
33
|
+
- `vf_cropdetect.c`
|
|
34
|
+
- `vf_delogo.c`
|
|
35
|
+
- `vf_eq.c`
|
|
36
|
+
- `vf_find_rect.c`
|
|
37
|
+
- `vf_fspp.c`
|
|
38
|
+
- `vf_histeq.c`
|
|
39
|
+
- `vf_hqdn3d.c`
|
|
40
|
+
- `vf_kerndeint.c`
|
|
41
|
+
- `vf_lensfun.c` (GPL version 3 or later)
|
|
42
|
+
- `vf_mcdeint.c`
|
|
43
|
+
- `vf_mpdecimate.c`
|
|
44
|
+
- `vf_nnedi.c`
|
|
45
|
+
- `vf_owdenoise.c`
|
|
46
|
+
- `vf_perspective.c`
|
|
47
|
+
- `vf_phase.c`
|
|
48
|
+
- `vf_pp.c`
|
|
49
|
+
- `vf_pp7.c`
|
|
50
|
+
- `vf_pullup.c`
|
|
51
|
+
- `vf_repeatfields.c`
|
|
52
|
+
- `vf_sab.c`
|
|
53
|
+
- `vf_signature.c`
|
|
54
|
+
- `vf_smartblur.c`
|
|
55
|
+
- `vf_spp.c`
|
|
56
|
+
- `vf_stereo3d.c`
|
|
57
|
+
- `vf_super2xsai.c`
|
|
58
|
+
- `vf_tinterlace.c`
|
|
59
|
+
- `vf_uspp.c`
|
|
60
|
+
- `vf_vaguedenoiser.c`
|
|
61
|
+
- `vsrc_mptestsrc.c`
|
|
62
|
+
|
|
63
|
+
Should you, for whatever reason, prefer to use version 3 of the (L)GPL, then
|
|
64
|
+
the configure parameter `--enable-version3` will activate this licensing option
|
|
65
|
+
for you. Read the file `COPYING.LGPLv3` or, if you have enabled GPL parts,
|
|
66
|
+
`COPYING.GPLv3` to learn the exact legal terms that apply in this case.
|
|
67
|
+
|
|
68
|
+
There are a handful of files under other licensing terms, namely:
|
|
69
|
+
|
|
70
|
+
* The files `libavcodec/jfdctfst.c`, `libavcodec/jfdctint_template.c` and
|
|
71
|
+
`libavcodec/jrevdct.c` are taken from libjpeg, see the top of the files for
|
|
72
|
+
licensing details. Specifically note that you must credit the IJG in the
|
|
73
|
+
documentation accompanying your program if you only distribute executables.
|
|
74
|
+
You must also indicate any changes including additions and deletions to
|
|
75
|
+
those three files in the documentation.
|
|
76
|
+
* `tests/reference.pnm` is under the expat license.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## External libraries
|
|
80
|
+
|
|
81
|
+
FFmpeg can be combined with a number of external libraries, which sometimes
|
|
82
|
+
affect the licensing of binaries resulting from the combination.
|
|
83
|
+
|
|
84
|
+
### Compatible libraries
|
|
85
|
+
|
|
86
|
+
The following libraries are under GPL version 2:
|
|
87
|
+
- avisynth
|
|
88
|
+
- frei0r
|
|
89
|
+
- libcdio
|
|
90
|
+
- libdavs2
|
|
91
|
+
- librubberband
|
|
92
|
+
- libvidstab
|
|
93
|
+
- libx264
|
|
94
|
+
- libx265
|
|
95
|
+
- libxavs
|
|
96
|
+
- libxavs2
|
|
97
|
+
- libxvid
|
|
98
|
+
|
|
99
|
+
When combining them with FFmpeg, FFmpeg needs to be licensed as GPL as well by
|
|
100
|
+
passing `--enable-gpl` to configure.
|
|
101
|
+
|
|
102
|
+
The following libraries are under LGPL version 3:
|
|
103
|
+
- gmp
|
|
104
|
+
- libaribb24
|
|
105
|
+
- liblensfun
|
|
106
|
+
|
|
107
|
+
When combining them with FFmpeg, use the configure option `--enable-version3` to
|
|
108
|
+
upgrade FFmpeg to the LGPL v3.
|
|
109
|
+
|
|
110
|
+
The VMAF, mbedTLS, RK MPI, OpenCORE and VisualOn libraries are under the Apache License
|
|
111
|
+
2.0. That license is incompatible with the LGPL v2.1 and the GPL v2, but not with
|
|
112
|
+
version 3 of those licenses. So to combine these libraries with FFmpeg, the
|
|
113
|
+
license version needs to be upgraded by passing `--enable-version3` to configure.
|
|
114
|
+
|
|
115
|
+
The smbclient library is under the GPL v3, to combine it with FFmpeg,
|
|
116
|
+
the options `--enable-gpl` and `--enable-version3` have to be passed to
|
|
117
|
+
configure to upgrade FFmpeg to the GPL v3.
|
|
118
|
+
|
|
119
|
+
### Incompatible libraries
|
|
120
|
+
|
|
121
|
+
There are certain libraries you can combine with FFmpeg whose licenses are not
|
|
122
|
+
compatible with the GPL and/or the LGPL. If you wish to enable these
|
|
123
|
+
libraries, even in circumstances that their license may be incompatible, pass
|
|
124
|
+
`--enable-nonfree` to configure. This will cause the resulting binary to be
|
|
125
|
+
unredistributable.
|
|
126
|
+
|
|
127
|
+
The Fraunhofer FDK AAC and OpenSSL libraries are under licenses which are
|
|
128
|
+
incompatible with the GPLv2 and v3. To the best of our knowledge, they are
|
|
129
|
+
compatible with the LGPL.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
FFmpeg README
|
|
2
|
+
=============
|
|
3
|
+
|
|
4
|
+
FFmpeg is a collection of libraries and tools to process multimedia content
|
|
5
|
+
such as audio, video, subtitles and related metadata.
|
|
6
|
+
|
|
7
|
+
## Libraries
|
|
8
|
+
|
|
9
|
+
* `libavcodec` provides implementation of a wider range of codecs.
|
|
10
|
+
* `libavformat` implements streaming protocols, container formats and basic I/O access.
|
|
11
|
+
* `libavutil` includes hashers, decompressors and miscellaneous utility functions.
|
|
12
|
+
* `libavfilter` provides means to alter decoded audio and video through a directed graph of connected filters.
|
|
13
|
+
* `libavdevice` provides an abstraction to access capture and playback devices.
|
|
14
|
+
* `libswresample` implements audio mixing and resampling routines.
|
|
15
|
+
* `libswscale` implements color conversion and scaling routines.
|
|
16
|
+
|
|
17
|
+
## Tools
|
|
18
|
+
|
|
19
|
+
* [ffmpeg](https://ffmpeg.org/ffmpeg.html) is a command line toolbox to
|
|
20
|
+
manipulate, convert and stream multimedia content.
|
|
21
|
+
* [ffplay](https://ffmpeg.org/ffplay.html) is a minimalistic multimedia player.
|
|
22
|
+
* [ffprobe](https://ffmpeg.org/ffprobe.html) is a simple analysis tool to inspect
|
|
23
|
+
multimedia content.
|
|
24
|
+
* Additional small tools such as `aviocat`, `ismindex` and `qt-faststart`.
|
|
25
|
+
|
|
26
|
+
## Documentation
|
|
27
|
+
|
|
28
|
+
The offline documentation is available in the **doc/** directory.
|
|
29
|
+
|
|
30
|
+
The online documentation is available in the main [website](https://ffmpeg.org)
|
|
31
|
+
and in the [wiki](https://trac.ffmpeg.org).
|
|
32
|
+
|
|
33
|
+
### Examples
|
|
34
|
+
|
|
35
|
+
Coding examples are available in the **doc/examples** directory.
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
FFmpeg codebase is mainly LGPL-licensed with optional components licensed under
|
|
40
|
+
GPL. Please refer to the LICENSE file for detailed information.
|
|
41
|
+
|
|
42
|
+
## Contributing
|
|
43
|
+
|
|
44
|
+
Patches should be submitted to the ffmpeg-devel mailing list using
|
|
45
|
+
`git format-patch` or `git send-email`. Github pull requests should be
|
|
46
|
+
avoided because they are not part of our review process and will be ignored.
|