139 lines
3.6 KiB
JSON
139 lines
3.6 KiB
JSON
{
|
|
"schema": 1,
|
|
"id": "ask-form",
|
|
"name": "Ask Form",
|
|
"version": "1.2.0",
|
|
"description": "Structured private forms for agents and hub plugins — creates forms, emits submission events, contributes the Form composer chip and Forms gallery",
|
|
"category": "agents",
|
|
"languages": ["en", "fr"],
|
|
"icon": "icon.svg",
|
|
"color": "#9e5d2d",
|
|
"author": "gabrielvidal",
|
|
"managed": {
|
|
"defaultForGuests": true
|
|
},
|
|
"capabilities": [
|
|
"askform.bridge"
|
|
],
|
|
"exports": [
|
|
"create",
|
|
"get",
|
|
"list",
|
|
"revoke",
|
|
"close"
|
|
],
|
|
"emits": [
|
|
"form.created",
|
|
"form.submitted",
|
|
"form.cancelled"
|
|
],
|
|
"provides": {
|
|
"composer.shortcuts": "shortcuts",
|
|
"inbox.waiting": "waiting"
|
|
},
|
|
"actions": {
|
|
"create": {
|
|
"script": "actions/create.py",
|
|
"timeoutSec": 20,
|
|
"description": "Create a structured form on the hub's ask-form server"
|
|
},
|
|
"get": {
|
|
"readOnly": true,
|
|
"script": "actions/get.py",
|
|
"timeoutSec": 15,
|
|
"description": "Fetch a single form record (with fields and answers)"
|
|
},
|
|
"list": {
|
|
"readOnly": true,
|
|
"script": "actions/list.py",
|
|
"timeoutSec": 15,
|
|
"description": "List mirrored ask-form forms visible to the caller"
|
|
},
|
|
"revoke": {
|
|
"script": "actions/revoke.py",
|
|
"timeoutSec": 15,
|
|
"description": "Revoke an open form"
|
|
},
|
|
"close": {
|
|
"script": "actions/close.py",
|
|
"timeoutSec": 15,
|
|
"description": "Close a multi-response form"
|
|
},
|
|
"recheck": {
|
|
"script": "actions/recheck.py",
|
|
"timeoutSec": 15,
|
|
"description": "Refresh a form directly from its machine"
|
|
},
|
|
"health": {
|
|
"readOnly": true,
|
|
"script": "actions/health.py",
|
|
"timeoutSec": 15,
|
|
"ownerOnly": true,
|
|
"description": "Check ask-form status across all connected machines"
|
|
},
|
|
"shortcuts": {
|
|
"script": "actions/shortcuts.py",
|
|
"timeoutSec": 10,
|
|
"description": "Contribute the Form chip to the composer"
|
|
},
|
|
"waiting": {
|
|
"readOnly": true,
|
|
"script": "actions/waiting.py",
|
|
"timeoutSec": 10,
|
|
"description": "Pending forms for the caller (the inbox's waiting-for-you list)"
|
|
}
|
|
},
|
|
"settings": {
|
|
"subtitle": "Structured web forms for clarifying questions, approvals, new projects and plans",
|
|
"statusAction": "health"
|
|
},
|
|
"ui": {
|
|
"pages": [
|
|
{
|
|
"id": "forms",
|
|
"label": "Forms",
|
|
"nav": "files",
|
|
"icon": "clipboard-list",
|
|
"html": "ui/forms.html",
|
|
"feature": "page.forms"
|
|
}
|
|
],
|
|
"toolCards": [
|
|
{
|
|
"id": "askform-cli",
|
|
"label": "Ask Form",
|
|
"match": {
|
|
"tool": "shell",
|
|
"commandRegex": "(?:^|[\\s;&|(])(?:[\\w./~-]*/)?ask-form\\s+(create|wait|get|revoke|close|secret)(?=\\s|$)"
|
|
},
|
|
"html": "ui/askform-cli.html",
|
|
"height": 130,
|
|
"inThread": true,
|
|
"keyRegex": "\"id\"\\s*:\\s*\"([a-z0-9-]+_[a-z0-9]{4,})\"|\\bask-form\\s+(?:wait|get|revoke|close)\\s+([a-z0-9-]+_[a-z0-9]{4,})\\b",
|
|
"events": [
|
|
"askform"
|
|
],
|
|
"vis": {
|
|
"key": "forms",
|
|
"label": "Form cards",
|
|
"hint": "interactive ask-form questions + their answers in the thread"
|
|
}
|
|
}
|
|
],
|
|
"slots": [
|
|
{
|
|
"id": "conv-forms",
|
|
"where": "conversation.details",
|
|
"html": "ui/conv-forms.html",
|
|
"query": {"action": "list", "payload": {"sessionId": "$sessionId", "limit": 200}},
|
|
"reuseFrame": true,
|
|
"height": 120,
|
|
"label": "Forms",
|
|
"events": [
|
|
"askform"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|