omnish 1.3.0 → 1.4.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/CHANGELOG.md +23 -0
- package/README.md +1 -0
- package/config.example.json +7 -1
- package/dist/index.js +255 -210
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.4.0] - 2026-05-19
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **Watch:** opt-in filesystem, package install, and service state watchers with debounced WhatsApp/Telegram alerts (`watchEnabled`, `/watch`; see [docs/features/watch.md](docs/features/watch.md)). Uses `@parcel/watcher` for cross-platform FS events.
|
|
15
|
+
- **Watch persistence:** rules in `~/.omnish/watch/rules.json` (atomic writes, schema version); events in `events.sqlite`. `watchAutoRestore` (default `true`) reloads adapters on gateway boot when `watchEnabled`; `/watch reload` and richer `/watch status`.
|
|
16
|
+
- **Watch service discovery:** `/watch svc list [filter]` lists OS services and sends a second message with `/watch add svc` templates; `/watch svc templates`, `/watch hints` for FS paths and package logs.
|
|
17
|
+
- **Watch shared rules:** one global `rules.json` namespace across allowlisted users on a device; `notify: self` still alerts only the rule creator.
|
|
18
|
+
- **Watch /config:** `watchEnabled`, `watchDebounceMs`, `watchMaxEventsPerMinute`, and webhook keys on `/config set` whitelist with validation and `/config show` parity.
|
|
19
|
+
- **Platform online catalog:** browse, download, and publish recipes, app commands, cowork tasks, and shortcuts from chat (`/run online`, publish on `/run`, `/apps`, `/cowork`, `/shortcut`); per-command catalog browse on `/apps`, `/cowork`, `/shortcut`.
|
|
20
|
+
- **Platform file management** for attached/platform paths.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **Watch pause/stop:** cancelled debounced pending alerts and re-check live rule state so notifications stop after `/watch pause` or `/watch stop`.
|
|
25
|
+
- **Watch FS excludes:** `-/path` and `--exclude` glob patterns on add; `/watch exclude <name> list|add|rm`.
|
|
26
|
+
- **Watch lifecycle:** global `/watch on|off`; per-rule `enable|disable`; `/watch stop` alias for pause.
|
|
27
|
+
- **Attached mode file handling:** uploads saved on the user device with `Saved:` or clear errors in chat; `/send`, `/sendto`, and cowork match standalone behavior; cluster, allowlist, and WebSocket reliability fixes.
|
|
28
|
+
- **Attached app sessions:** detect sudo/ssh password prompts and accept password replies without default `^A^K` line-clear keys that broke sudo; one-time chat hint.
|
|
29
|
+
- **WhatsApp self-chat:** track omnish outbound message IDs and only skip those `fromMe` echoes so self-chat commands route normally while replies do not re-trigger the shell.
|
|
30
|
+
|
|
31
|
+
[1.4.0]: https://github.com/labKnowledge/omnish/compare/v1.3.0...v1.4.0
|
|
32
|
+
|
|
10
33
|
## [1.3.0] - 2026-05-18
|
|
11
34
|
|
|
12
35
|
### Added
|
package/README.md
CHANGED
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
- **Background:** **`/bg`** runs a long command in that chat’s cwd; optional **`-n myname`** / **`--name`** labels the job; **`--notify`** / **`-N`** sends a completion notification with exit code and duration. Then `/jobs`, `/log`, `/tail`, `/kill` as usual.
|
|
44
44
|
- **Cowork:** `/cowork` / `/cw` — scheduled or on-demand saved shell tasks with conditional notifications (`always` / `failure` / `state-change`), heartbeat dead-man's-switch monitoring (`/cowork checkin`), and logs under `~/Cowork/…` by default. See [docs/features/cowork.md](docs/features/cowork.md).
|
|
45
45
|
- **Webhook receiver:** built-in HTTP endpoint for CI/CD notifications (GitHub Actions, GitLab CI). Enable with `webhookEnabled: true`. See [docs/features/webhook-receiver.md](docs/features/webhook-receiver.md).
|
|
46
|
+
- **Watch (OS event eye):** subscribe to folder changes, package installs, and named service state on Linux/macOS/Windows; notify via chat. Enable with `watchEnabled: true`. See [docs/features/watch.md](docs/features/watch.md).
|
|
46
47
|
- **Interactive PTY:** drive TUIs and REPLs (`cursor-agent`, `claude`, `bash`, etc.) from DMs. See [Interactive sessions](#interactive-sessions) below.
|
|
47
48
|
- **User shortcuts:** save per-chat commands under a short name (`/shortcut add myproj !cd ~/code/myproj`), then run **`!myproj`** or **`/myproj`** (bare token only) to expand once—see [User shortcuts](#user-shortcuts).
|
|
48
49
|
|
package/config.example.json
CHANGED
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"appsClearInput": true,
|
|
22
22
|
"appsClearInputDelayMs": 20,
|
|
23
23
|
"appsClearInputSequence": "^A,^K",
|
|
24
|
+
"appsSkipClearOnPasswordPrompt": true,
|
|
25
|
+
"appsPasswordPromptHint": true,
|
|
24
26
|
"fileSendMaxBytes": 52428800,
|
|
25
27
|
"fileReceiveMaxBytes": 52428800,
|
|
26
28
|
"fileReceiveRootMode": "downloads",
|
|
@@ -49,5 +51,9 @@
|
|
|
49
51
|
"tunnelRelayUrl": "https://tunnel.omnish.dev",
|
|
50
52
|
"platformToken": "",
|
|
51
53
|
"platformDeviceId": "",
|
|
52
|
-
"tunnelMaxActive": 5
|
|
54
|
+
"tunnelMaxActive": 5,
|
|
55
|
+
"watchEnabled": false,
|
|
56
|
+
"watchDebounceMs": 2000,
|
|
57
|
+
"watchMaxEventsPerMinute": 30,
|
|
58
|
+
"watchAutoRestore": true
|
|
53
59
|
}
|