@sage-protocol/sage-plugin 0.1.5 → 0.1.6
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/README.md +12 -8
- package/index.js +549 -571
- package/index.test.js +464 -422
- package/mcp.integration.test.js +245 -122
- package/package.json +16 -16
- package/rlm-feedback.e2e.test.js +295 -0
- package/rlm.e2e.test.js +149 -0
- package/test-utils.js +287 -0
package/README.md
CHANGED
|
@@ -35,14 +35,18 @@ Or run `sage init --opencode` to configure automatically.
|
|
|
35
35
|
|
|
36
36
|
## Configuration
|
|
37
37
|
|
|
38
|
-
| Variable
|
|
39
|
-
|
|
40
|
-
| `SAGE_BIN`
|
|
41
|
-
| `SAGE_SUGGEST_LIMIT`
|
|
42
|
-
| `SAGE_SUGGEST_DEBOUNCE_MS` | `800`
|
|
43
|
-
| `SAGE_SUGGEST_PROVISION`
|
|
44
|
-
| `SAGE_RLM_FEEDBACK`
|
|
45
|
-
| `SAGE_PLUGIN_DRY_RUN`
|
|
38
|
+
| Variable | Default | Description |
|
|
39
|
+
| -------------------------- | ------- | -------------------------------------------- |
|
|
40
|
+
| `SAGE_BIN` | `sage` | Path to the sage binary |
|
|
41
|
+
| `SAGE_SUGGEST_LIMIT` | `3` | Max suggestions per request |
|
|
42
|
+
| `SAGE_SUGGEST_DEBOUNCE_MS` | `800` | Debounce delay for TUI suggestions |
|
|
43
|
+
| `SAGE_SUGGEST_PROVISION` | `1` | Set `0` to skip MCP provisioning |
|
|
44
|
+
| `SAGE_RLM_FEEDBACK` | `1` | Set `0` to disable RLM feedback tracking |
|
|
45
|
+
| `SAGE_PLUGIN_DRY_RUN` | `0` | Set `1` to disable spawning sage (for tests) |
|
|
46
|
+
|
|
47
|
+
Notes:
|
|
48
|
+
|
|
49
|
+
- The plugin passes user prompts via `PROMPT` and assistant responses via `SAGE_RESPONSE` when invoking `sage capture hook prompt|response`.
|
|
46
50
|
|
|
47
51
|
## Requirements
|
|
48
52
|
|