agent-simple-english 0.2.1 → 0.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "simple-english",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "Apply technical and house-style writing rules to writes, edits, and git commit messages.",
|
|
6
6
|
"repository": "https://github.com/jyooi/agent-simple-english",
|
|
7
7
|
"license": "MIT",
|
package/README.md
CHANGED
|
@@ -69,17 +69,17 @@ Soft violations allow the event and add warning text.
|
|
|
69
69
|
|
|
70
70
|
### Session controls
|
|
71
71
|
|
|
72
|
-
The `/
|
|
72
|
+
The `/ase` command controls the current Claude Code session.
|
|
73
73
|
New sessions start in enabled mode without a strict reply gate.
|
|
74
74
|
A change in one session does not change a parallel session.
|
|
75
75
|
|
|
76
76
|
| Command | Result |
|
|
77
77
|
| --- | --- |
|
|
78
|
-
| `/
|
|
79
|
-
| `/
|
|
80
|
-
| `/
|
|
81
|
-
| `/
|
|
82
|
-
| `/
|
|
78
|
+
| `/ase on` | Enable write, edit, commit, and reply checks. |
|
|
79
|
+
| `/ase off` | Disable all checks and leave strict mode. |
|
|
80
|
+
| `/ase status` | Show the mode, rule counts, and dictionary state. |
|
|
81
|
+
| `/ase strict` | Enable the strict reply gate and all other checks. |
|
|
82
|
+
| `/ase strict off` | Disable the strict reply gate and use reply feedback. |
|
|
83
83
|
|
|
84
84
|
Strict mode blocks a `Stop` event when the reply has a hard violation.
|
|
85
85
|
Claude Code then uses the violation details to write the reply again.
|
|
@@ -131,18 +131,18 @@ pi -e .
|
|
|
131
131
|
|
|
132
132
|
The mode applies to the current pi session.
|
|
133
133
|
The extension starts in enabled mode without strict reply gating.
|
|
134
|
-
Type `/
|
|
134
|
+
Type `/ase ` to see autocomplete suggestions for `on`, `off`, `status`, and `strict`.
|
|
135
135
|
The list changes to match the text that you type.
|
|
136
136
|
|
|
137
137
|
| Command | Result |
|
|
138
138
|
| --- | --- |
|
|
139
|
-
| `/
|
|
140
|
-
| `/
|
|
141
|
-
| `/
|
|
142
|
-
| `/
|
|
143
|
-
| `/
|
|
144
|
-
| `/
|
|
145
|
-
| `/
|
|
139
|
+
| `/ase` | Toggle all enforcement. |
|
|
140
|
+
| `/ase on` | Enable write, edit, commit, and reply checks. |
|
|
141
|
+
| `/ase off` | Disable all checks and leave strict mode. |
|
|
142
|
+
| `/ase status` | Show the mode, severity counts, and dictionary state. |
|
|
143
|
+
| `/ase strict` | Enable strict reply gating and the other checks. |
|
|
144
|
+
| `/ase strict on` | Enable strict reply gating and the other checks. |
|
|
145
|
+
| `/ase strict off` | Disable strict reply gating without changing the other checks. |
|
|
146
146
|
|
|
147
147
|
## Install and use the CLI
|
|
148
148
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
setSessionStrict,
|
|
12
12
|
} from "./session-state.ts"
|
|
13
13
|
|
|
14
|
-
const USAGE = "Usage: /
|
|
14
|
+
const USAGE = "Usage: /ase [on|off|status|strict|strict off]"
|
|
15
15
|
|
|
16
16
|
type DictionaryState = "loaded" | "not loaded" | `failed (${string})`
|
|
17
17
|
|
package/src/extension/index.ts
CHANGED
|
@@ -547,7 +547,7 @@ export default function simpleEnglishExtension(pi: ExtensionAPI): void {
|
|
|
547
547
|
pi.setActiveTools(active ? [...tools, "say"] : tools)
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
pi.registerCommand("
|
|
550
|
+
pi.registerCommand("ase", {
|
|
551
551
|
description: "Toggle writing-rule enforcement or show status. Use strict to gate replies.",
|
|
552
552
|
getArgumentCompletions: (prefix) => {
|
|
553
553
|
const completions = COMMAND_COMPLETIONS.filter((item) => item.value.startsWith(prefix))
|
|
@@ -576,7 +576,7 @@ export default function simpleEnglishExtension(pi: ExtensionAPI): void {
|
|
|
576
576
|
return
|
|
577
577
|
}
|
|
578
578
|
if (command !== "" && command !== "on" && command !== "off") {
|
|
579
|
-
ctx.ui.notify("Usage: /
|
|
579
|
+
ctx.ui.notify("Usage: /ase [on|off|status|strict|strict off]", "warning")
|
|
580
580
|
return
|
|
581
581
|
}
|
|
582
582
|
|
|
File without changes
|