Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

1.5 KB
Raw Blame
{
  "schemaVersion": 1,
  "id": "lab.ui-slots",
  "name": "UI Slots Lab",
  "version": "0.1.0",
  "description": "Test plugin with one visible sample in every renderer UI slot, plus controls that exercise dispatch, errors, crash isolation, the host size clamps, self-drawn layers, the # trigger, the draft and attachments",
  "author": "PI-Desktop",
  "main": "main.js",
  "renderer": "renderer/index.mjs",
  "rendererActions": [
    "plugin.call",
    "composer.insertText",
    "composer.readDraft",
    "composer.replaceDraft",
    "attachments.add",
    "attachments.list",
    "attachments.remove"
  ],
  "rendererCallMethods": ["lab.echo", "lab.refuse", "lab.stall"],
  "contributes": {
    "agentTools": [
      {
        "name": "lab_probe",
        "description": "UI Slots Lab probe. mode: ok (default) answers at once, slow after 1.5s, fail throws, crash answers but its card throws",
        "risk": "low",
        "schema": {
          "type": "object",
          "properties": {
            "mode": { "type": "string", "enum": ["ok", "slow", "fail", "crash"] },
            "text": { "type": "string" }
          }
        }
      }
    ],
    "composerTransforms": [
      {
        "id": "lab-transform",
        "title": { "en": "Lab transform", "zh-CN": "实验室转换" },
        "undoTitle": { "en": "Undo lab transform", "zh-CN": "撤销实验室转换" }
      }
    ]
  },
  "permissions": ["renderer.extension", "agent.tool.register", "composer.transform"],
  "engines": {
    "piDesktop": ">=0.1.0"
  },
  "activationEvents": ["onStartup"]
}