runa/vscode/package.json

178 lines
4.7 KiB
JSON
Raw Normal View History

{
"name": "runa",
"displayName": "Runa — Rune Actors",
"description": "Inspect and control actors in a trusted localhost Runa image.",
"version": "0.0.0",
"private": true,
"engines": {
"vscode": "^1.96.0",
"node": ">=22"
},
"categories": [
"Other"
],
"main": "./out/src/extension.js",
"activationEvents": [
"onView:runa.actors"
],
"scripts": {
"compile": "tsc -p .",
"lint": "tsc -p . --noEmit && prettier --check .",
"format": "prettier --write .",
"test": "npm run compile && node --test out/test/*.test.js",
"test:integration": "cargo build --manifest-path ../Cargo.toml -p runa -p runa-cli && npm run compile && node --test out/integration/*.test.js",
"test:host": "cargo build --manifest-path ../Cargo.toml -p runa && npm run compile && node scripts/test-host.cjs"
},
"dependencies": {
"lossless-json": "^4.3.0",
"ws": "^8.18.3"
},
"devDependencies": {
"@vscode/test-electron": "^2.5.2",
"@types/node": "^22.0.0",
"@types/vscode": "~1.96.0",
"@types/ws": "^8.18.1",
"prettier": "^3.6.2",
"typescript": "^5.9.3"
},
"contributes": {
"commands": [
{
"command": "runa.spawn",
"title": "Runa: Spawn Actor",
"icon": "$(add)",
"enablement": "runa.connected"
},
{
"command": "runa.send",
"title": "Runa: Send Message",
"enablement": "runa.connected"
},
{
"command": "runa.stop",
"title": "Runa: Stop Actor",
"enablement": "runa.connected"
},
{
"command": "runa.restart",
"title": "Runa: Restart Actor",
"enablement": "runa.connected"
},
{
"command": "runa.pause",
"title": "Runa: Pause Actor",
"enablement": "runa.connected"
},
{
"command": "runa.resume",
"title": "Runa: Resume Actor",
"enablement": "runa.connected"
},
{
"command": "runa.tick",
"title": "Runa: Advance Scheduler",
"enablement": "runa.connected"
},
{
"command": "runa.connect",
"title": "Runa: Connect to Local Image"
},
{
"command": "runa.disconnect",
"title": "Runa: Disconnect"
},
{
"command": "runa.refresh",
"title": "Runa: Refresh Actors",
"icon": "$(refresh)"
},
{
"command": "runa.inspect",
"title": "Runa: Inspect Actor",
"icon": "$(inspect)"
}
],
"views": {
"explorer": [
{
"id": "runa.actors",
"name": "Runa Actors"
}
]
},
"viewsWelcome": [
{
"view": "runa.actors",
"contents": "Connect to a trusted local Runa image.\n[Connect](command:runa.connect)",
"when": "!runa.connected"
}
],
"menus": {
"view/title": [
{
"command": "runa.spawn",
"when": "view == runa.actors && runa.connected",
"group": "navigation"
},
{
"command": "runa.connect",
"when": "view == runa.actors && !runa.connected",
"group": "navigation"
},
{
"command": "runa.refresh",
"when": "view == runa.actors && runa.connected",
"group": "navigation"
},
{
"command": "runa.disconnect",
"when": "view == runa.actors && runa.connected"
}
],
"view/item/context": [
{
"command": "runa.send",
"when": "view == runa.actors && viewItem == runa.actor",
"group": "actor@1"
},
{
"command": "runa.pause",
"when": "view == runa.actors && viewItem == runa.actor",
"group": "actor@2"
},
{
"command": "runa.resume",
"when": "view == runa.actors && viewItem == runa.actor",
"group": "actor@3"
},
{
"command": "runa.stop",
"when": "view == runa.actors && viewItem == runa.actor",
"group": "actor@4"
},
{
"command": "runa.restart",
"when": "view == runa.actors && viewItem == runa.actor",
"group": "actor@5"
},
{
"command": "runa.inspect",
"when": "view == runa.actors && viewItem == runa.actor",
"group": "inline"
}
]
},
"configuration": {
"title": "Runa",
"properties": {
"runa.address": {
"type": "string",
"default": "127.0.0.1:3737",
"scope": "machine",
"description": "Trusted local image endpoint: numeric IPv4 loopback or [::1]:port. No authentication is available."
}
}
}
}
}