omnish 1.6.3 → 1.6.4
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/README.md +6 -4
- package/config.example.json +4 -0
- package/dist/index.js +285 -278
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
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
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).
|
|
47
47
|
- **Interactive PTY:** drive TUIs and REPLs (`cursor-agent`, `claude`, `bash`, etc.) from DMs. See [Interactive sessions](#interactive-sessions) below.
|
|
48
|
-
- **User shortcuts:** save per-chat commands under a short name (`/shortcut add myproj !cd ~/code/myproj`), then run **`!myproj`** or **`/myproj`**
|
|
48
|
+
- **User shortcuts:** save per-chat commands under a short name (`/shortcut add myproj !cd ~/code/myproj`), then run **`!myproj`** or **`/myproj`** to expand once; use **`$OMNISH_INPUT`** in the body for runtime text (`!myproj <input…>`)—see [User shortcuts](#user-shortcuts).
|
|
49
49
|
|
|
50
50
|
No AI or agent layer — direct `bash -c` for sync jobs; PTY uses your configured `shell` with `-lc`.
|
|
51
51
|
|
|
@@ -94,7 +94,9 @@ Each **chat** (WhatsApp DM / Telegram DM) has its own shortcut map on disk (`sho
|
|
|
94
94
|
| Remove | `/shortcut remove kidsync` |
|
|
95
95
|
| Help | `/shortcut help` — aliases: `/alias …`, `/aliases …` (same as `/shortcut …`) |
|
|
96
96
|
|
|
97
|
-
**Invoke:** send **`!kidsync`** or **`/kidsync`**
|
|
97
|
+
**Invoke:** send **`!kidsync`** or **`/kidsync`** (bare name), or **`!kidsync <text…>`** / **`/kidsync <text…>`** when the body contains **`$OMNISH_INPUT`**. The saved line runs once; if it is a standalone `!cd …`, the session working directory updates like a normal sync `cd`. Shortcut bodies are **not** expanded again (no nesting).
|
|
98
|
+
|
|
99
|
+
**Parameterized example:** `/shortcut add remosh /run remosh $OMNISH_INPUT` then `/remosh generate top 10 vid`.
|
|
98
100
|
|
|
99
101
|
Names are alphanumeric plus `_`/`-`, max 32 characters; several names are reserved (e.g. `help`, `apps`, `bg`). See `/shortcut help` for the full behavior.
|
|
100
102
|
|
|
@@ -139,8 +141,8 @@ Each chat can run **several named app sessions** (default up to **5** per peer,
|
|
|
139
141
|
**Precedence (per DM):**
|
|
140
142
|
|
|
141
143
|
1. `!!start` / `!!stop` → toggle **free shell mode** (plain messages run as sync shell until `!!stop`).
|
|
142
|
-
2. Starts with your sync prefix (default `!`) → if the rest
|
|
143
|
-
3. Starts with `/` → built-in slash commands (`/shortcut`, `/apps`, `/bg`, …); if
|
|
144
|
+
2. Starts with your sync prefix (default `!`) → if the rest matches a shortcut (`name` or `name <input…>`), expand once and handle the result; otherwise one-shot shell in session cwd.
|
|
145
|
+
3. Starts with `/` → built-in slash commands (`/shortcut`, `/apps`, `/bg`, …); if no built-in matches and `/name` or `/name <input…>` is a shortcut, expand once; otherwise unknown `/…` shows help.
|
|
144
146
|
4. Starts with `>` → `>name text` shorthand = `/apps send name text` (newline appended).
|
|
145
147
|
5. Else, if a session is **attached** and **running** → forward line to that app session (no reply; output streams back).
|
|
146
148
|
6. Else, if **free shell mode** is on → plain text runs as a sync shell command.
|
package/config.example.json
CHANGED
|
@@ -63,6 +63,10 @@
|
|
|
63
63
|
"mediaOutputDir": "",
|
|
64
64
|
"mediaMaxBytes": 0,
|
|
65
65
|
"mediaWhisperModel": "small",
|
|
66
|
+
"mediaWhisperDevice": "auto",
|
|
67
|
+
"mediaTranscribeTimeoutMs": 600000,
|
|
68
|
+
"mediaTranscribeEngine": "whisper",
|
|
69
|
+
"mediaTranscribeFallback": true,
|
|
66
70
|
"progressUpdates": true,
|
|
67
71
|
"pullYtDlpPath": "",
|
|
68
72
|
"pullFfmpegPath": "",
|