ocsmarttools 0.1.6 → 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 +10 -0
- package/README.md +4 -4
- package/package.json +1 -1
- package/src/commands/cli.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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
|
+
|
|
5
15
|
## [0.1.6] - 2026-02-22
|
|
6
16
|
|
|
7
17
|
### Changed
|
package/README.md
CHANGED
|
@@ -93,13 +93,13 @@ Model note:
|
|
|
93
93
|
| `openclaw ocsmarttools strict <on\|off>` | Turns strict routing on/off |
|
|
94
94
|
| `openclaw ocsmarttools sync` | Rewrites the managed routing block in `AGENTS.md` |
|
|
95
95
|
| `openclaw ocsmarttools stats` | Shows calls, errors, timeouts, latency, and estimated savings |
|
|
96
|
-
| `openclaw ocsmarttools stats
|
|
96
|
+
| `openclaw ocsmarttools stats-reset` | Resets plugin stats |
|
|
97
97
|
| `openclaw ocsmarttools setup [safe\|standard]` | Applies recommended defaults |
|
|
98
98
|
| `openclaw ocsmarttools mode <safe\|standard>` | Changes mode only |
|
|
99
99
|
| `openclaw ocsmarttools config` | Shows plugin config |
|
|
100
|
-
| `openclaw ocsmarttools config
|
|
101
|
-
| `openclaw ocsmarttools config
|
|
102
|
-
| `openclaw ocsmarttools 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
103
|
| `openclaw ocsmarttools version` | Shows installed plugin version |
|
|
104
104
|
|
|
105
105
|
## Common Config Actions
|
package/package.json
CHANGED
package/src/commands/cli.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
|
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
|
|
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);
|