69 lines
2.6 KiB
JSON
69 lines
2.6 KiB
JSON
{
|
|
"schema": 1,
|
|
"id": "context-editor",
|
|
"name": "Context editor",
|
|
"version": "1.0.0",
|
|
"description": "The hub's Claude context — CLAUDE.md, .claude/ (skills, agents, hooks, settings) and the read-only data/ tree — as a searchable tree beside an editor, with each file's real token count and cost",
|
|
"category": "agents",
|
|
"icon": "icon.svg",
|
|
"color": "#8388ba",
|
|
"author": "gabrielvidal",
|
|
"seed": true,
|
|
"capabilities": ["context.read", "context.write"],
|
|
"ui": {
|
|
"pages": [
|
|
{
|
|
"id": "editor",
|
|
"label": "Context files",
|
|
"nav": "files",
|
|
"icon": "folder-tree",
|
|
"html": "ui/editor.html",
|
|
"fill": true,
|
|
"opens": ["context-file"],
|
|
"feature": "page.files"
|
|
}
|
|
]
|
|
},
|
|
"actions": {
|
|
"bundle": {
|
|
"script": "handlers/bundle.py", "timeoutSec": 30, "readOnly": true, "ownerOnly": true,
|
|
"description": "Every context file (metadata only): kind, words, real token count, cost, editable; the totals and the pricing"
|
|
},
|
|
"file": {
|
|
"script": "handlers/file.py", "timeoutSec": 20, "readOnly": true, "ownerOnly": true,
|
|
"description": "One context file with its content"
|
|
},
|
|
"save": {
|
|
"script": "handlers/save.py", "timeoutSec": 30, "ownerOnly": true,
|
|
"description": "Save an editable context file (CLAUDE.md, .claude/…) and drop its draft"
|
|
},
|
|
"drafts": {
|
|
"script": "handlers/drafts.py", "timeoutSec": 10, "readOnly": true, "ownerOnly": true,
|
|
"description": "Your unsaved drafts, by path"
|
|
},
|
|
"draft": {
|
|
"script": "handlers/draft.py", "timeoutSec": 10, "ownerOnly": true,
|
|
"description": "Keep or drop one unsaved draft"
|
|
}
|
|
},
|
|
"commands": {
|
|
"ls": {
|
|
"action": "bundle",
|
|
"summary": "Every context file (CLAUDE.md, .claude/, data/) with its token count and cost",
|
|
"description": "The hub's Claude context: every CLAUDE.md, the .claude/ tree (skills, agents, hooks, settings) and the read-only data/ tree, with each file's real token count (~ = estimated, not counted yet) and its cost at input price.",
|
|
"output": { "rows": "files", "columns": ["path", "kind", "tok", "usd", "editable"] },
|
|
"mcp": true
|
|
},
|
|
"show": {
|
|
"action": "file",
|
|
"summary": "One context file's content",
|
|
"description": "The text of one context file, by its workspace path as `ls` lists it (CLAUDE.md, .claude/skills/<name>/SKILL.md, data/…).",
|
|
"args": [
|
|
{ "name": "path", "positional": true, "required": true, "help": "The file's workspace path, as `ls` lists it." }
|
|
],
|
|
"output": { "text": "text" },
|
|
"mcp": true
|
|
}
|
|
}
|
|
}
|