refactor: simplify gitea config to use owner/repo format
- Remove separate GITEA_OWNER config, use owner/repo format everywhere - Add _parse_repo() helper to extract owner and repo from combined string - Update plugin.json schema: file -> source, author as object - Remove redundant configuration section from cmdb-assistant plugin - Simplify gitea_client.py by removing excessive docstrings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
"name": "cmdb-assistant",
|
||||
"version": "1.0.0",
|
||||
"description": "NetBox CMDB integration for infrastructure management - query, create, update, and manage network devices, IP addresses, sites, and more",
|
||||
"author": "Bandit Labs",
|
||||
"author": {
|
||||
"name": "Bandit Labs",
|
||||
"email": "dev@banditlabs.io"
|
||||
},
|
||||
"homepage": "https://github.com/bandit-labs/cmdb-assistant",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
@@ -16,44 +19,25 @@
|
||||
"commands": {
|
||||
"cmdb-search": {
|
||||
"description": "Search NetBox for devices, IPs, sites, or any CMDB object",
|
||||
"file": "commands/cmdb-search.md"
|
||||
"source": "commands/cmdb-search.md"
|
||||
},
|
||||
"cmdb-device": {
|
||||
"description": "Manage network devices (create, view, update, delete)",
|
||||
"file": "commands/cmdb-device.md"
|
||||
"source": "commands/cmdb-device.md"
|
||||
},
|
||||
"cmdb-ip": {
|
||||
"description": "Manage IP addresses and prefixes",
|
||||
"file": "commands/cmdb-ip.md"
|
||||
"source": "commands/cmdb-ip.md"
|
||||
},
|
||||
"cmdb-site": {
|
||||
"description": "Manage sites and locations",
|
||||
"file": "commands/cmdb-site.md"
|
||||
"source": "commands/cmdb-site.md"
|
||||
}
|
||||
},
|
||||
"agents": {
|
||||
"cmdb-assistant": {
|
||||
"description": "Infrastructure management assistant for NetBox CMDB operations",
|
||||
"file": "agents/cmdb-assistant.md"
|
||||
"source": "agents/cmdb-assistant.md"
|
||||
}
|
||||
},
|
||||
"configuration": {
|
||||
"required": [
|
||||
{
|
||||
"name": "NETBOX_URL",
|
||||
"description": "NetBox instance URL (e.g., https://netbox.example.com)"
|
||||
},
|
||||
{
|
||||
"name": "NETBOX_TOKEN",
|
||||
"description": "NetBox API token for authentication"
|
||||
}
|
||||
],
|
||||
"optional": [
|
||||
{
|
||||
"name": "NETBOX_VERIFY_SSL",
|
||||
"description": "Verify SSL certificates (default: true)",
|
||||
"default": "true"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user