@agentrhq/webcmd 0.4.2 → 0.4.3

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 (59) hide show
  1. package/cli-manifest.json +755 -174
  2. package/clis/_shared/site-auth.js +0 -1
  3. package/clis/_shared/site-auth.test.js +0 -1
  4. package/clis/amazon-in/checkout.js +0 -1
  5. package/clis/blinkit/checkout.js +0 -1
  6. package/clis/blinkit/place-order.js +0 -1
  7. package/clis/chatgpt/model.js +2 -2
  8. package/clis/chatgpt/model.test.js +7 -1
  9. package/clis/chatgpt/utils.js +8 -0
  10. package/clis/chatgpt/utils.test.js +92 -1
  11. package/clis/district/checkout.js +0 -1
  12. package/clis/district/seats.js +0 -1
  13. package/clis/district/set-location.js +0 -1
  14. package/clis/district/showtimes.js +0 -1
  15. package/clis/google/images.js +456 -0
  16. package/clis/google/images.test.js +375 -0
  17. package/clis/instagram/user.js +5 -13
  18. package/clis/instagram/user.test.js +66 -0
  19. package/clis/mercury/check-login.js +0 -1
  20. package/clis/mercury/reimbursement-draft.js +0 -1
  21. package/clis/practo/book-confirm.js +0 -1
  22. package/clis/practo/cancel.js +0 -1
  23. package/clis/trip/attraction.js +74 -0
  24. package/clis/trip/car.js +74 -0
  25. package/clis/trip/deals.js +61 -0
  26. package/clis/trip/flight-round.js +88 -0
  27. package/clis/trip/flight.js +83 -0
  28. package/clis/trip/hotel-search.js +80 -0
  29. package/clis/trip/hotel.js +54 -0
  30. package/clis/trip/package.js +93 -0
  31. package/clis/trip/search.js +43 -0
  32. package/clis/trip/tour.js +84 -0
  33. package/clis/trip/train.js +76 -0
  34. package/clis/trip/transfer.js +82 -0
  35. package/clis/trip/trip.test.js +1420 -0
  36. package/clis/trip/utils.js +911 -0
  37. package/dist/src/build-manifest.js +0 -1
  38. package/dist/src/build-manifest.test.js +4 -0
  39. package/dist/src/cli.js +7 -7
  40. package/dist/src/cli.test.js +26 -10
  41. package/dist/src/command-presentation.js +1 -1
  42. package/dist/src/command-presentation.test.js +3 -0
  43. package/dist/src/command-surface.js +1 -1
  44. package/dist/src/command-surface.test.js +4 -0
  45. package/dist/src/commands/auth.js +0 -2
  46. package/dist/src/commands/auth.test.js +0 -2
  47. package/dist/src/discovery.js +0 -1
  48. package/dist/src/execution.js +3 -3
  49. package/dist/src/execution.test.js +68 -15
  50. package/dist/src/hosted/browser-args.js +2 -2
  51. package/dist/src/hosted/browser-args.test.js +10 -0
  52. package/dist/src/hosted/client.js +2 -2
  53. package/dist/src/manifest-types.d.ts +0 -2
  54. package/dist/src/registry.d.ts +0 -2
  55. package/dist/src/registry.js +0 -1
  56. package/hosted-contract.json +767 -3
  57. package/package.json +2 -2
  58. package/skills/webcmd-browser/SKILL.md +2 -1
  59. package/skills/webcmd-usage/SKILL.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrhq/webcmd",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Turn websites, browser sessions, desktop apps, and local tools into deterministic CLI surfaces for humans and AI agents.",
5
5
  "engines": {
6
6
  "node": ">=20.0.0"
@@ -114,4 +114,4 @@
114
114
  "overrides": {
115
115
  "postcss": "^8.5.10"
116
116
  }
117
- }
117
+ }
@@ -41,7 +41,8 @@ Until `doctor` is green, browser commands will not work. Registry and plugin dis
41
41
  - Use a stable session name for any multi-command or human-paced browser workflow. Example: `webcmd browser fb-yaya-warmup open https://example.com`, then reuse `webcmd browser fb-yaya-warmup state`, `extract`, `click`, etc.
42
42
  - Owned browser sessions keep a tab lease alive between calls. Release it with `webcmd browser <session> close` or let the idle timeout expire.
43
43
  - `webcmd browser <session> bind --page <page-id>` binds an existing webcmd-managed Cloak tab to that session. Use this after the user manually logs in or navigates inside a visible Cloak window.
44
- - `--window foreground|background` (or `WEBCMD_WINDOW=foreground|background`) chooses whether Webcmd creates/focuses a foreground browser window or uses a background browser window for owned sessions.
44
+ - Browser commands default to background mode.
45
+ - Pass `--window foreground` (or set `WEBCMD_WINDOW=foreground`) when the user must see or interact with the browser.
45
46
 
46
47
  ### Bind Tab
47
48
 
@@ -105,7 +105,7 @@ Some commands override the default through `cmd.defaultFormat`; read `--help`.
105
105
  | `WEBCMD_BROWSER_COMMAND_TIMEOUT` | `60` | Per-command timeout. |
106
106
  | `WEBCMD_CDP_ENDPOINT` | unset | Manual CDP endpoint override. |
107
107
  | `WEBCMD_CACHE_DIR` | `~/.webcmd/cache` | Network capture and browser-state cache. |
108
- | `WEBCMD_WINDOW` | command-specific | `foreground` or `background` browser window mode. |
108
+ | `WEBCMD_WINDOW` | `background` | Explicitly override browser window mode with `foreground` or `background`. |
109
109
  | `WEBCMD_VERBOSE` | `false` | Verbose logging, also triggered by `-v`. |
110
110
 
111
111
  ## Self-Repair