@vforsh/argus 0.1.19 → 0.1.20

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.
Files changed (40) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/argus.js +257 -59
  3. package/dist/cli/register/extensionCommands.d.ts.map +1 -1
  4. package/dist/cli/register/extensionCommands.js +28 -3
  5. package/dist/cli/register/extensionCommands.js.map +1 -1
  6. package/dist/commands/extension/extensionId.d.ts +27 -0
  7. package/dist/commands/extension/extensionId.d.ts.map +1 -0
  8. package/dist/commands/extension/extensionId.js +37 -0
  9. package/dist/commands/extension/extensionId.js.map +1 -0
  10. package/dist/commands/extension/extensionPath.d.ts +15 -0
  11. package/dist/commands/extension/extensionPath.d.ts.map +1 -0
  12. package/dist/commands/extension/extensionPath.js +61 -0
  13. package/dist/commands/extension/extensionPath.js.map +1 -0
  14. package/dist/commands/extension/install.d.ts +16 -0
  15. package/dist/commands/extension/install.d.ts.map +1 -0
  16. package/dist/commands/extension/install.js +154 -0
  17. package/dist/commands/extension/install.js.map +1 -0
  18. package/dist/commands/extension/setup.d.ts +2 -1
  19. package/dist/commands/extension/setup.d.ts.map +1 -1
  20. package/dist/commands/extension/setup.js +5 -2
  21. package/dist/commands/extension/setup.js.map +1 -1
  22. package/dist/extension/dist/background/auth-header-monitor.js +77 -0
  23. package/dist/extension/dist/background/bridge-client.js +120 -0
  24. package/dist/extension/dist/background/cdp-proxy.js +201 -0
  25. package/dist/extension/dist/background/debugger-manager.js +296 -0
  26. package/dist/extension/dist/background/service-worker.js +2004 -0
  27. package/dist/extension/dist/background/service-worker.js.map +7 -0
  28. package/dist/extension/dist/popup/popup.js +730 -0
  29. package/dist/extension/dist/popup/popup.js.map +7 -0
  30. package/dist/extension/dist/popup/tabMarkup.js +104 -0
  31. package/dist/extension/dist/popup/viewState.js +60 -0
  32. package/dist/extension/dist/types/messages.js +5 -0
  33. package/dist/extension/icons/icon-128.png +0 -0
  34. package/dist/extension/icons/icon-16.png +0 -0
  35. package/dist/extension/icons/icon-48.png +0 -0
  36. package/dist/extension/manifest.json +26 -0
  37. package/dist/extension/src/popup/popup.html +756 -0
  38. package/dist/skill/argus/SKILL.md +3 -1
  39. package/dist/skill/argus/reference/EXTENSION.md +13 -8
  40. package/package.json +2 -2
@@ -47,6 +47,8 @@ Read:
47
47
 
48
48
  Use this for any app that needs the user's normal browser profile, cookies, local storage, extensions, or saved login state. Do **not** use `argus start`, `argus chrome start --profile temp`, headless Chrome, or a fresh CDP profile for this flow; those lose the real login/session context.
49
49
 
50
+ First-time setup is one command: `argus extension install` (installs native hosts, opens chrome://extensions, waits for connect). The extension ID is pinned and the build ships with the CLI — see [EXTENSION.md](./reference/EXTENSION.md).
51
+
50
52
  ```bash
51
53
  APP_URL="https://portal.example/app"
52
54
  WATCHER_ID="app"
@@ -168,7 +170,7 @@ Keep these commands in the background in agent shells. See [START.md](./referenc
168
170
 
169
171
  ## Troubleshooting
170
172
 
171
- **No extension-control watcher** — Open/reload the browser extension, then run `argus ext doctor --json`.
173
+ **No extension-control watcher** — First time? Run `argus extension install`. Otherwise open/reload the extension, then run `argus ext doctor --json`.
172
174
 
173
175
  **Multiple tabs matched** — Use `argus ext tabs --url <url> --json`, choose a `tabId`, then pass `--tab <tabId>`.
174
176
 
@@ -5,18 +5,23 @@ Debug normal Chrome session without CDP flags.
5
5
  ### One-Time Setup
6
6
 
7
7
  ```bash
8
- # 1) Build extension
9
- cd packages/argus-extension && bun run build
8
+ # Installs native hosts, opens chrome://extensions, waits for the extension to connect:
9
+ argus extension install
10
+ # → click "Load unpacked" and select the printed folder (enable Developer mode if hidden)
11
+ ```
10
12
 
11
- # 2) Load in Chrome
12
- # chrome://extensions → Developer mode → Load unpacked → select packages/argus-extension
13
- # Copy Extension ID (e.g. kkoefnlnjlnlbohcifcbkpgmjaokmipi)
13
+ The extension ID is **pinned** (via a `key` in the manifest), so there's no ID to copy/paste and the prebuilt extension ships with the CLI — no build step. Useful sub-commands:
14
14
 
15
- # 3) Install native host
16
- argus extension setup <EXTENSION_ID>
17
- argus extension status
15
+ ```bash
16
+ argus extension path # absolute folder to "Load unpacked"
17
+ argus extension status # native host config + extension ID
18
+ argus extension install --no-wait # scripted/non-interactive (skip the connect wait)
18
19
  ```
19
20
 
21
+ Advanced: `argus extension setup [extensionId]` installs only the native hosts (pass an id to override the pinned one for a differently-keyed build).
22
+
23
+ > Migration: if you previously loaded an unkeyed build, reload the extension once at `chrome://extensions` so it picks up the pinned ID.
24
+
20
25
  ### Usage
21
26
 
22
27
  1. Click Argus extension icon
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vforsh/argus",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/vforsh/argus.git",
@@ -36,7 +36,7 @@
36
36
  "scripts": {
37
37
  "clean": "node ../../scripts/clean-dist.mjs",
38
38
  "build": "npm run clean && tsc -b && bun run bundle",
39
- "bundle": "bun build dist/bin.js --outfile dist/argus.js --target node --external esbuild && node ../../scripts/copy-argus-skill.mjs",
39
+ "bundle": "bun build dist/bin.js --outfile dist/argus.js --target node --external esbuild && node ../../scripts/copy-argus-skill.mjs && node ../../scripts/copy-argus-extension.mjs",
40
40
  "typecheck": "tsc -b --pretty false",
41
41
  "chrome:start": "bun src/bin.ts chrome start"
42
42
  }