@krtclcdy/tersio 2.2.0 → 2.3.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.
Files changed (3) hide show
  1. package/README.md +3 -10
  2. package/package.json +1 -1
  3. package/tersio.js +12 -1
package/README.md CHANGED
@@ -11,13 +11,13 @@ Terse replies, compact shell output, and minimal code decisions for [Oh My Pi (O
11
11
 
12
12
  ## Install
13
13
 
14
- Quick install (macOS/Linux/WSL — checks npm, then bootstraps the CLI):
14
+ **Default** (macOS/Linux/WSL) — one line. Installs the CLI via npm, then runs the main installer (scope + Combo preset menus) in the same pass:
15
15
 
16
16
  ```bash
17
- curl -fsSL https://raw.githubusercontent.com/KurutoDenzeru/tersio/main/install.sh | sh
17
+ curl -fsSL https://github.com/KurutoDenzeru/tersio/releases/latest/download/install.sh | sh
18
18
  ```
19
19
 
20
- OMP plugin (recommended — updates and feature flags handled by OMP):
20
+ Prefer OMP-managed updates and feature flags? Install as an OMP plugin instead:
21
21
 
22
22
  ```bash
23
23
  omp plugin install @krtclcdy/tersio
@@ -30,13 +30,6 @@ omp plugin install '@krtclcdy/tersio[caveman,ponytail]'
30
30
  omp plugin features @krtclcdy/tersio --disable rtk
31
31
  ```
32
32
 
33
- npm CLI (installs add-ons into your OMP home):
34
-
35
- ```bash
36
- npm install -g @krtclcdy/tersio@latest
37
- tersio install
38
- ```
39
-
40
33
  Then restart OMP and enable a preset:
41
34
 
42
35
  ```text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krtclcdy/tersio",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "✂️ Token-saving OMP add-ons: terse Caveman replies, compact RTK shell output, lean Ponytail code calls — one-command combo presets.",
5
5
  "keywords": [
6
6
  "omp",
package/tersio.js CHANGED
@@ -112,7 +112,18 @@ function debug(...a) {
112
112
  const RL = readline.createInterface({ input: process.stdin, output: process.stdout });
113
113
  let rlOpen = true;
114
114
  function ask(q) {
115
- return new Promise((resolve) => RL.question(q, resolve));
115
+ return new Promise((resolve) => {
116
+ if (!rlOpen) {
117
+ resolve('');
118
+ return;
119
+ }
120
+ try {
121
+ RL.question(q, resolve);
122
+ }
123
+ catch {
124
+ resolve('');
125
+ }
126
+ });
116
127
  }
117
128
  function closeRL() { if (rlOpen) {
118
129
  RL.close();