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 +16 -0
- package/README.md +23 -23
- package/package.json +1 -1
- package/src/commands/cli.ts +5 -5
- package/src/commands/operations.ts +21 -18
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
|
|
74
|
-
| `/ocsmarttools
|
|
75
|
-
| `/ocsmarttools status
|
|
76
|
-
| `/ocsmarttools
|
|
77
|
-
| `/ocsmarttools stats
|
|
78
|
-
| `/ocsmarttools
|
|
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
|
|
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>` |
|
|
85
|
-
| `/ocsmarttools config reset [key]` | Resets one key
|
|
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
|
|
92
|
-
| `openclaw ocsmarttools
|
|
93
|
-
| `openclaw ocsmarttools
|
|
94
|
-
| `openclaw ocsmarttools
|
|
95
|
-
| `openclaw ocsmarttools stats
|
|
96
|
-
| `openclaw ocsmarttools
|
|
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
|
|
99
|
-
| `openclaw ocsmarttools
|
|
100
|
-
| `openclaw ocsmarttools config
|
|
101
|
-
| `openclaw ocsmarttools config
|
|
102
|
-
| `openclaw ocsmarttools
|
|
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
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);
|
|
@@ -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
|
-
"
|
|
168
|
-
"- /ocsmarttools
|
|
169
|
-
"- /ocsmarttools
|
|
170
|
-
"- /ocsmarttools
|
|
171
|
-
"- /ocsmarttools
|
|
172
|
-
"- /ocsmarttools
|
|
173
|
-
"- /ocsmarttools
|
|
174
|
-
"- /ocsmarttools
|
|
175
|
-
"- /ocsmarttools
|
|
176
|
-
"- /ocsmarttools
|
|
177
|
-
"- /ocsmarttools config
|
|
178
|
-
"- /ocsmarttools config keys
|
|
179
|
-
"- /ocsmarttools config set <key> <value
|
|
180
|
-
"- /ocsmarttools config reset [key]
|
|
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
|
-
"
|
|
184
|
+
"Quick examples:",
|
|
185
|
+
"- /ocsmarttools status",
|
|
183
186
|
"- /ocsmarttools config set maxResultChars 120000",
|
|
184
187
|
"- /ocsmarttools strict on",
|
|
185
|
-
"- /ocsmarttools
|
|
186
|
-
"- /ocsmarttools
|
|
188
|
+
"- /ocsmarttools stats",
|
|
189
|
+
"- /ocsmarttools sync",
|
|
187
190
|
].join("\n");
|
|
188
191
|
}
|
|
189
192
|
|