Shell navigation: - sw.shell.Topbar — composable nav bar (title + slot + bell + user menu) - Topbar CSS in sw-shell.css, wired into SDK via dynamic import Schedules surface (packages/schedules/): - Wraps kernel /api/v1/schedules CRUD + run + logs - Table view with cron badge, human-readable preview, enable toggle - Create/edit dialog with live cron-to-english preview Manifest icons: - icon field in manifest.json (emoji string) - Surfaces API returns icon from package manifest - UserMenu renders per-surface icons UserMenu cleanup: - Removed dead Chat/Notes/Projects hardcoded links - Menu now driven by /api/v1/surfaces API (installed surfaces only) - Core surfaces filtered via CORE_IDS set Bug fixes: - isAdmin() in can.js now checks surface.admin.access RBAC grant instead of deprecated user.role column (v0.2.0 regression) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
115 lines
3.9 KiB
JSON
115 lines
3.9 KiB
JSON
{
|
|
"id": "git-board",
|
|
"title": "Git Board",
|
|
"type": "full",
|
|
"tier": "starlark",
|
|
"route": "/s/git-board",
|
|
"auth": "authenticated",
|
|
"layout": "single",
|
|
"version": "0.2.0",
|
|
"icon": "🔀",
|
|
"description": "Gitea issue and PR board powered by the gitea-client library. Uses extension connections for authentication.",
|
|
"author": "switchboard",
|
|
|
|
"permissions": ["connections.read"],
|
|
|
|
"dependencies": {
|
|
"gitea-client": ">=1.0.0"
|
|
},
|
|
|
|
"api_routes": [
|
|
{"method": "GET", "path": "/repos"},
|
|
{"method": "GET", "path": "/board"},
|
|
{"method": "GET", "path": "/issue/*"},
|
|
{"method": "POST", "path": "/issue/*"},
|
|
{"method": "GET", "path": "/ci/*"}
|
|
],
|
|
|
|
"tools": [
|
|
{
|
|
"name": "list_issues",
|
|
"description": "List issues for a repository. Returns titles, numbers, labels, assignees, and state.",
|
|
"parameters": {
|
|
"owner": {"type": "string", "required": true, "description": "Repository owner or org"},
|
|
"repo": {"type": "string", "required": true, "description": "Repository name"},
|
|
"state": {"type": "string", "required": false, "description": "Filter: open (default), closed, all"}
|
|
}
|
|
},
|
|
{
|
|
"name": "get_issue",
|
|
"description": "Get full details for a single issue including body and comments.",
|
|
"parameters": {
|
|
"owner": {"type": "string", "required": true},
|
|
"repo": {"type": "string", "required": true},
|
|
"number": {"type": "number", "required": true, "description": "Issue number"}
|
|
}
|
|
},
|
|
{
|
|
"name": "create_issue",
|
|
"description": "Create a new issue in a repository.",
|
|
"parameters": {
|
|
"owner": {"type": "string", "required": true},
|
|
"repo": {"type": "string", "required": true},
|
|
"title": {"type": "string", "required": true},
|
|
"body": {"type": "string", "required": false},
|
|
"labels": {"type": "string", "required": false, "description": "Comma-separated label names"}
|
|
}
|
|
},
|
|
{
|
|
"name": "update_issue",
|
|
"description": "Update an existing issue (title, body, state, labels).",
|
|
"parameters": {
|
|
"owner": {"type": "string", "required": true},
|
|
"repo": {"type": "string", "required": true},
|
|
"number": {"type": "number", "required": true},
|
|
"title": {"type": "string", "required": false},
|
|
"body": {"type": "string", "required": false},
|
|
"state": {"type": "string", "required": false, "description": "open or closed"}
|
|
}
|
|
},
|
|
{
|
|
"name": "add_comment",
|
|
"description": "Add a comment to an issue or pull request.",
|
|
"parameters": {
|
|
"owner": {"type": "string", "required": true},
|
|
"repo": {"type": "string", "required": true},
|
|
"number": {"type": "number", "required": true},
|
|
"body": {"type": "string", "required": true}
|
|
}
|
|
},
|
|
{
|
|
"name": "list_pull_requests",
|
|
"description": "List pull requests for a repository with status, branch, and review state.",
|
|
"parameters": {
|
|
"owner": {"type": "string", "required": true},
|
|
"repo": {"type": "string", "required": true},
|
|
"state": {"type": "string", "required": false, "description": "open (default), closed, all"}
|
|
}
|
|
},
|
|
{
|
|
"name": "get_ci_status",
|
|
"description": "Get CI/CD job status for a commit or branch reference.",
|
|
"parameters": {
|
|
"owner": {"type": "string", "required": true},
|
|
"repo": {"type": "string", "required": true},
|
|
"ref": {"type": "string", "required": true, "description": "Branch name, tag, or commit SHA"}
|
|
}
|
|
}
|
|
],
|
|
|
|
"settings": {
|
|
"default_owner": {
|
|
"type": "string",
|
|
"label": "Default Owner/Org",
|
|
"description": "Default repository owner for the board view.",
|
|
"default": ""
|
|
},
|
|
"default_repo": {
|
|
"type": "string",
|
|
"label": "Default Repository",
|
|
"description": "Default repository name for the board view.",
|
|
"default": ""
|
|
}
|
|
}
|
|
}
|