@penguinharness/storage · plugins/storage/src/index.ts:21

StoragePlugin

component

Everything this plugin carries, declared for the plugin library: data only, which build writes into ifaces.json.

API

@Component({
  contributes: {
    "PluginLibraryModule.cards": [
      {
        id: "storage.card",
        title: "Storage",
        titleZh: "存储空间",
        descriptionZh:
          "查看数据根目录占用了多少空间——按类别、按 Project 和 Agent 统计——并清理可以重新生成的内容:孤立的草稿区、临时 Workspace 与工具环境,删除前逐项确认。在应用里是 设置 › 存储空间,在 shell 里是 penguin storage;附带的 Skill 让 Agent 能告诉用户空间被什么占用。",
        shortDescription: "See what the data root holds and clean what can be regenerated.",
        shortDescriptionZh: "查看数据目录占用,清理可以重新生成的内容。",
        category: "office-productivity",
        icon: "icon.svg",
        preinstall: true,
        quickStart: {
          prompt:
            "How much disk space does PenguinHarness use here, what takes the most, and what could be cleaned up?",
          promptZh: "PenguinHarness 在这台机器上占用了多少磁盘空间?哪些占得最多,哪些可以清理?",
          skills: ["storage"],
        },
      },
    ],
    "PluginLibraryModule.skills": [
      { id: "storage.skill.storage", name: "storage", path: "skills/storage" },
    ],
  },
})
export class StoragePlugin {}

Contributes

{
  "PluginLibraryModule.cards": [
    {
      "id": "storage.card",
      "title": "Storage",
      "titleZh": "存储空间",
      "descriptionZh": "查看数据根目录占用了多少空间——按类别、按 Project 和 Agent 统计——并清理可以重新生成的内容:孤立的草稿区、临时 Workspace 与工具环境,删除前逐项确认。在应用里是 设置 › 存储空间,在 shell 里是 penguin storage;附带的 Skill 让 Agent 能告诉用户空间被什么占用。",
      "shortDescription": "See what the data root holds and clean what can be regenerated.",
      "shortDescriptionZh": "查看数据目录占用,清理可以重新生成的内容。",
      "category": "office-productivity",
      "icon": "icon.svg",
      "preinstall": true,
      "quickStart": {
        "prompt": "How much disk space does PenguinHarness use here, what takes the most, and what could be cleaned up?",
        "promptZh": "PenguinHarness 在这台机器上占用了多少磁盘空间?哪些占得最多,哪些可以清理?",
        "skills": [
          "storage"
        ]
      }
    }
  ],
  "PluginLibraryModule.skills": [
    {
      "id": "storage.skill.storage",
      "name": "storage",
      "path": "skills/storage"
    }
  ]
}

Target slots: PluginLibraryModule.cards · PluginLibraryModule.skills