Swap opencode-glm-quota for @slkiser/opencode-quota

This commit is contained in:
2026-07-29 21:09:57 -05:00
parent 28582d56c0
commit a80e6df2b5
6 changed files with 41 additions and 36 deletions
-20
View File
@@ -1,20 +0,0 @@
---
description: Minimal executor for GLM quota tool
mode: subagent
hidden: true
permission:
edit: deny
bash: deny
---
CRITICAL INSTRUCTION: When the glm_quota tool returns output, you MUST return it EXACTLY as received, character-for-character, with NO modifications.
- Do NOT add introductory text
- Do NOT summarize
- Do NOT reformat
- Do NOT explain anything
- Do NOT add any commentary
- Return ONLY the raw string from the tool
Example of WRONG behavior: 'Here is your usage: [summary]'
Example of CORRECT behavior: [paste entire tool output verbatim]
-5
View File
@@ -1,5 +0,0 @@
---
description: Execute GLM quota check
agent: glm-quota-exec
---
Execute glm_quota tool and return its output EXACTLY as received without any modification or summarization.
@@ -0,0 +1,23 @@
{
// Automatic quota surfaces. Slash commands remain available when these are disabled.
"enableToast": false,
"tuiCommandDisplay": "inline",
// Include or hide session input and output token totals.
"showSessionTokens": true,
// Session token totals: "current" session only, or "tree" including descendants.
"sessionTokenScope": "current",
// Provider selection: "auto" detects providers; an array tracks only listed providers.
"enabledProviders": "auto",
// Quota presentation and reset-period choices.
"formatStyle": "allWindows",
"percentDisplayMode": "used",
// TUI-only surfaces.
"tuiSidebarPanel": {
"enabled": true,
},
// Optional bundled maintainer Home announcements.
"maintainerAnnouncements": {
"enabled": true,
"home": true,
},
}
+10 -1
View File
@@ -113,5 +113,14 @@
}, },
"share": "disabled", "share": "disabled",
"snapshot": true, "snapshot": true,
"plugin": ["opencode-glm-quota", "./plugin/ibmi-gate.ts"], // OpenCode Quota: tuiCommandDisplay chooses whether native TUI command output appears in the session transcript or a local popup dialog.
// OpenCode Quota: loads the server plugin for slash commands and quota checks.
"plugin": [
"./plugin/ibmi-gate.ts",
"@slkiser/opencode-quota@latest"
],
"provider": {
// Detected zai authentication; opencode-quota added this global provider declaration.
"zai": {}
},
} }
@@ -1,10 +0,0 @@
---
name: glm-quota
description: Query Z.ai GLM Coding Plan usage statistics including quota limits, model usage, and MCP tool usage
parameters:
- name: detailed
type: boolean
optional: true
description: Show detailed usage breakdown
---
Query GLM quota usage including token limits and MCP tool usage.
+8
View File
@@ -0,0 +1,8 @@
{
"$schema": "https://opencode.ai/tui.json",
// OpenCode Quota: tuiCommandDisplay chooses whether native TUI command output appears in the session transcript or a local popup dialog.
// OpenCode Quota: loads the TUI sidebar, compact status, and local commands.
"plugin": [
"@slkiser/opencode-quota@latest"
]
}