mirror of
https://github.com/cole-maxwell1/dotfiles.git
synced 2026-08-02 12:23:54 -04:00
Swap opencode-glm-quota for @slkiser/opencode-quota
This commit is contained in:
@@ -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]
|
|
||||||
@@ -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,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -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.
|
|
||||||
@@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user