Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 15 additions & 9 deletions docs/plugin-authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,20 +311,26 @@ arrive as `{"protocol":"convax.plugin-host/1","type":"command","command":"refres

## Capabilities

| Method | Manifest capability | Scope |
| --------------------------- | -------------------- | --------------------------------------------------- |
| `host.context.get` | none | current Project, Canvas, and owning node |
| `canvas.node.get` | `canvas.node.read` | owning node only |
| `canvas.node.updateState` | `canvas.node.write` | Plugin-namespaced node state |
| `project.file.readText` | `project.files.read` | current Project-relative text file |
| `agent.prompt` | `agent.prompt` | current Project and owning node resource |
| `generation.tools.list` | `generation.execute` | installed generation contracts in the current scope |
| `generation.canvas.execute` | `generation.execute` | shared scoped Canvas generation operation |
| Method | Manifest capability | Scope |
| ----------------------------- | ----------------------------- | ------------------------------------------------------------ |
| `host.context.get` | none | current Project, Canvas, and owning node |
| `canvas.node.get` | `canvas.node.read` | owning node only |
| `canvas.node.updateState` | `canvas.node.write` | Plugin-namespaced node state |
| `canvas.connectedImages.list` | `canvas.connectedImages.read` | directly connected managed Canvas image nodes |
| `canvas.connectedImages.read` | `canvas.connectedImages.read` | bounded bytes for one directly connected managed image |
| `canvas.image.create` | `canvas.image.write` | one bounded PNG imported as a managed adjacent Canvas image |
| `project.file.readText` | `project.files.read` | current Project-relative text file |
| `agent.prompt` | `agent.prompt` | current Project and owning node resource |
| `generation.tools.list` | `generation.execute` | installed generation contracts in the current scope |
| `generation.canvas.execute` | `generation.execute` | shared scoped Canvas generation operation |

Request the smallest set. Arguments cannot select another Project, Canvas, or node.
Treat results as untrusted structured data, bound message sizes, handle errors, and
render a useful disconnected state. A successful domain mutation may be followed by
a failed optional view effect; do not report that as a reverted mutation.
`canvas.image.create` accepts a bounded PNG data URL and a portable display name;
the host owns asset admission, node placement, the connection from the Plugin node,
persistence, and rollback if the Canvas commit fails.

## Forbidden behavior

Expand Down
14 changes: 14 additions & 0 deletions packages/plugins/panorama-viewer/convax-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"schema": "convax.package/1",
"kind": "plugin",
"id": "panorama-viewer",
"name": "全景图预览",
"description": "预览等距柱状投影 360° 全景图,支持拖拽环视、滚轮缩放、自动旋转、全屏、本地文件及画布连接图片。",
"version": "0.2.0",
"license": "MIT",
"compatibility": {
"pluginSchema": "convax.plugin/1",
"pluginHost": "convax.plugin-host/1"
},
"yanked": false
}
10 changes: 10 additions & 0 deletions packages/plugins/panorama-viewer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@microvoid/convax-plugin-panorama-viewer",
"version": "0.2.0",
"private": true,
"type": "module",
"scripts": {
"validate": "bun ../../../tooling/validate.mjs --kind plugin --id panorama-viewer",
"pack": "bun ../../../tooling/pack.mjs --kind plugin --id panorama-viewer"
}
}
21 changes: 21 additions & 0 deletions packages/plugins/panorama-viewer/package/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Microvoid contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading