ocsmarttools 0.1.5 → 0.1.7

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 CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to `ocsmarttools` are documented here.
4
4
 
5
+ ## [0.1.7] - 2026-02-22
6
+
7
+ ### Fixed
8
+ - CLI command compatibility on older OpenClaw builds by avoiding nested CLI subcommands that could collide.
9
+ - Replaced nested CLI forms with stable commands:
10
+ - `stats-reset`
11
+ - `config-keys`
12
+ - `config-set`
13
+ - `config-reset`
14
+
15
+ ## [0.1.6] - 2026-02-22
16
+
17
+ ### Changed
18
+ - Rewrote help output in simpler plain-language wording for easier command discovery.
19
+ - Simplified README command descriptions to match the help command style.
20
+
5
21
  ## [0.1.5] - 2026-02-22
6
22
 
7
23
  ### Added
package/README.md CHANGED
@@ -70,37 +70,37 @@ Model note:
70
70
 
71
71
  | Command | What it does |
72
72
  |---|---|
73
- | `/ocsmarttools version` | Shows installed plugin version |
74
- | `/ocsmarttools help` | Shows simple help and examples |
75
- | `/ocsmarttools status` | Shows current mode, limits, and safety flags |
76
- | `/ocsmarttools stats` | Shows live usage metrics (success/failure/timeout, latency, shaping, savings) |
77
- | `/ocsmarttools stats reset` | Resets the stats window |
78
- | `/ocsmarttools setup [safe\|standard]` | Applies recommended defaults for the selected mode |
73
+ | `/ocsmarttools help` | Shows all commands in plain language |
74
+ | `/ocsmarttools status` | Shows mode and safety settings |
75
+ | `/ocsmarttools strict <on\|off\|status>` | Turns strict routing on/off or checks status |
76
+ | `/ocsmarttools sync` | Rewrites the managed routing block in `AGENTS.md` |
77
+ | `/ocsmarttools stats` | Shows calls, errors, timeouts, latency, and estimated savings |
78
+ | `/ocsmarttools stats reset` | Resets plugin stats |
79
+ | `/ocsmarttools setup [safe\|standard]` | Applies recommended defaults |
79
80
  | `/ocsmarttools mode <safe\|standard>` | Changes mode only |
80
- | `/ocsmarttools strict <on\|off\|status>` | Enables/disables strict plugin-managed routing |
81
- | `/ocsmarttools sync` | Re-applies the auto-managed routing policy block in `AGENTS.md` |
82
- | `/ocsmarttools config` | Shows effective plugin config |
81
+ | `/ocsmarttools config` | Shows plugin config |
83
82
  | `/ocsmarttools config keys` | Lists editable config keys |
84
- | `/ocsmarttools config set <key> <value>` | Updates one config key with validation |
85
- | `/ocsmarttools config reset [key]` | Resets one key (or all keys) to defaults |
83
+ | `/ocsmarttools config set <key> <value>` | Changes one config value |
84
+ | `/ocsmarttools config reset [key]` | Resets one key or all keys |
85
+ | `/ocsmarttools version` | Shows installed plugin version |
86
86
 
87
87
  ### CLI Commands
88
88
 
89
89
  | Command | What it does |
90
90
  |---|---|
91
- | `openclaw ocsmarttools version` | Shows installed plugin version |
92
- | `openclaw ocsmarttools help` | Shows simple help and examples |
93
- | `openclaw ocsmarttools status` | Shows current mode, limits, and safety flags |
94
- | `openclaw ocsmarttools stats` | Shows live usage metrics (success/failure/timeout, latency, shaping, savings) |
95
- | `openclaw ocsmarttools stats reset` | Resets the stats window |
96
- | `openclaw ocsmarttools setup [safe\|standard]` | Applies recommended defaults for the selected mode |
91
+ | `openclaw ocsmarttools help` | Shows all commands in plain language |
92
+ | `openclaw ocsmarttools status` | Shows mode and safety settings |
93
+ | `openclaw ocsmarttools strict <on\|off>` | Turns strict routing on/off |
94
+ | `openclaw ocsmarttools sync` | Rewrites the managed routing block in `AGENTS.md` |
95
+ | `openclaw ocsmarttools stats` | Shows calls, errors, timeouts, latency, and estimated savings |
96
+ | `openclaw ocsmarttools stats-reset` | Resets plugin stats |
97
+ | `openclaw ocsmarttools setup [safe\|standard]` | Applies recommended defaults |
97
98
  | `openclaw ocsmarttools mode <safe\|standard>` | Changes mode only |
98
- | `openclaw ocsmarttools strict <on\|off>` | Enables/disables strict plugin-managed routing |
99
- | `openclaw ocsmarttools sync` | Re-applies the auto-managed routing policy block in `AGENTS.md` |
100
- | `openclaw ocsmarttools config` | Shows effective plugin config |
101
- | `openclaw ocsmarttools config keys` | Lists editable config keys |
102
- | `openclaw ocsmarttools config set <key> <value>` | Updates one config key with validation |
103
- | `openclaw ocsmarttools config reset [key]` | Resets one key (or all keys) to defaults |
99
+ | `openclaw ocsmarttools config` | Shows plugin config |
100
+ | `openclaw ocsmarttools config-keys` | Lists editable config keys |
101
+ | `openclaw ocsmarttools config-set <key> <value>` | Changes one config value |
102
+ | `openclaw ocsmarttools config-reset [key]` | Resets one key or all keys |
103
+ | `openclaw ocsmarttools version` | Shows installed plugin version |
104
104
 
105
105
  ## Common Config Actions
106
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocsmarttools",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Provider-agnostic advanced tool orchestration plugin for OpenClaw with search, dispatch, and batching",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -59,8 +59,8 @@ export function registerCliCommands(api: OpenClawPluginApi, metrics: MetricsStor
59
59
  // eslint-disable-next-line no-console
60
60
  console.log(renderStats(metrics));
61
61
  });
62
- statsCmd
63
- .command("reset")
62
+ adv
63
+ .command("stats-reset")
64
64
  .description("Reset usage/savings metrics window")
65
65
  .action(() => {
66
66
  // eslint-disable-next-line no-console
@@ -126,7 +126,7 @@ export function registerCliCommands(api: OpenClawPluginApi, metrics: MetricsStor
126
126
  });
127
127
 
128
128
  adv
129
- .command("config keys")
129
+ .command("config-keys")
130
130
  .description("List editable plugin config keys")
131
131
  .action(() => {
132
132
  // eslint-disable-next-line no-console
@@ -134,7 +134,7 @@ export function registerCliCommands(api: OpenClawPluginApi, metrics: MetricsStor
134
134
  });
135
135
 
136
136
  adv
137
- .command("config set <key> <value>")
137
+ .command("config-set <key> <value>")
138
138
  .description("Set one plugin config key")
139
139
  .action(async (key: string, value: string) => {
140
140
  const text = await setConfigKey(api, key, value);
@@ -143,7 +143,7 @@ export function registerCliCommands(api: OpenClawPluginApi, metrics: MetricsStor
143
143
  });
144
144
 
145
145
  adv
146
- .command("config reset [key]")
146
+ .command("config-reset [key]")
147
147
  .description("Reset all plugin config to defaults or reset one key")
148
148
  .action(async (key?: string) => {
149
149
  const text = await resetConfig(api, key);
@@ -162,28 +162,31 @@ export function renderStatus(api: OpenClawPluginApi): string {
162
162
 
163
163
  export function renderHelp(): string {
164
164
  return [
165
- "OCSmartTools Help",
165
+ "OCSmartTools Help (Simple)",
166
166
  "",
167
- "Chat commands:",
168
- "- /ocsmarttools version: Show installed plugin version",
169
- "- /ocsmarttools help: Show this help text",
170
- "- /ocsmarttools status: Show current plugin status and safety flags",
171
- "- /ocsmarttools stats: Show usage/savings metrics (success/failure/timeout/latency/shaping)",
172
- "- /ocsmarttools stats reset: Reset metrics window",
173
- "- /ocsmarttools setup [safe|standard]: Apply recommended defaults (default: standard)",
174
- "- /ocsmarttools mode <safe|standard>: Switch only the operating mode",
175
- "- /ocsmarttools strict [on|off|status]: Toggle strict routing behavior",
176
- "- /ocsmarttools sync: Re-apply auto-managed routing policy to AGENTS.md",
177
- "- /ocsmarttools config: Show effective plugin config",
178
- "- /ocsmarttools config keys: List editable config keys",
179
- "- /ocsmarttools config set <key> <value>: Update one config key",
180
- "- /ocsmarttools config reset [key]: Reset one key (or all keys) to defaults",
167
+ "Use these in chat:",
168
+ "- /ocsmarttools status -> Shows current mode and safety settings.",
169
+ "- /ocsmarttools strict on -> Turns on strict plugin-managed routing.",
170
+ "- /ocsmarttools strict off -> Turns strict routing off.",
171
+ "- /ocsmarttools strict status -> Shows whether strict routing is on or off.",
172
+ "- /ocsmarttools sync -> Rewrites/refreshes the managed routing block in AGENTS.md.",
173
+ "- /ocsmarttools stats -> Shows calls, errors, timeouts, latency, and savings.",
174
+ "- /ocsmarttools stats reset -> Resets the stats window to zero.",
175
+ "- /ocsmarttools setup [safe|standard] -> Applies recommended defaults.",
176
+ "- /ocsmarttools mode <safe|standard> -> Changes only mode.",
177
+ "- /ocsmarttools config -> Shows current plugin config.",
178
+ "- /ocsmarttools config keys -> Lists editable config keys.",
179
+ "- /ocsmarttools config set <key> <value> -> Changes one config value.",
180
+ "- /ocsmarttools config reset [key] -> Resets one key or all keys.",
181
+ "- /ocsmarttools version -> Shows installed plugin version.",
182
+ "- /ocsmarttools help -> Shows this help message.",
181
183
  "",
182
- "Examples:",
184
+ "Quick examples:",
185
+ "- /ocsmarttools status",
183
186
  "- /ocsmarttools config set maxResultChars 120000",
184
187
  "- /ocsmarttools strict on",
185
- "- /ocsmarttools config set storeLargeResults true",
186
- "- /ocsmarttools config reset maxResultChars",
188
+ "- /ocsmarttools stats",
189
+ "- /ocsmarttools sync",
187
190
  ].join("\n");
188
191
  }
189
192