Files
openclaw/extensions/diffs/openclaw.plugin.json
2026-03-02 05:07:09 +00:00

122 lines
3.3 KiB
JSON

{
"id": "diffs",
"name": "Diffs",
"description": "Read-only diff viewer and image renderer for agents.",
"uiHints": {
"defaults.fontFamily": {
"label": "Default Font",
"help": "Preferred font family name for diff content and headers."
},
"defaults.fontSize": {
"label": "Default Font Size",
"help": "Base diff font size in pixels."
},
"defaults.lineSpacing": {
"label": "Default Line Spacing",
"help": "Line-height multiplier applied to diff rows."
},
"defaults.layout": {
"label": "Default Layout",
"help": "Initial diff layout shown in the viewer."
},
"defaults.showLineNumbers": {
"label": "Show Line Numbers",
"help": "Show line numbers by default."
},
"defaults.diffIndicators": {
"label": "Diff Indicator Style",
"help": "Choose added/removed indicators style."
},
"defaults.wordWrap": {
"label": "Default Word Wrap",
"help": "Wrap long lines by default."
},
"defaults.background": {
"label": "Default Background Highlights",
"help": "Show added/removed background highlights by default."
},
"defaults.theme": {
"label": "Default Theme",
"help": "Initial viewer theme."
},
"defaults.mode": {
"label": "Default Output Mode",
"help": "Tool default when mode is omitted. Use view for canvas/gateway viewer, image for PNG, or both."
},
"security.allowRemoteViewer": {
"label": "Allow Remote Viewer",
"help": "Allow non-loopback access to diff viewer URLs when the token path is known."
}
},
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"defaults": {
"type": "object",
"additionalProperties": false,
"properties": {
"fontFamily": {
"type": "string",
"default": "Fira Code"
},
"fontSize": {
"type": "number",
"minimum": 10,
"maximum": 24,
"default": 15
},
"lineSpacing": {
"type": "number",
"minimum": 1,
"maximum": 3,
"default": 1.6
},
"layout": {
"type": "string",
"enum": ["unified", "split"],
"default": "unified"
},
"showLineNumbers": {
"type": "boolean",
"default": true
},
"diffIndicators": {
"type": "string",
"enum": ["bars", "classic", "none"],
"default": "bars"
},
"wordWrap": {
"type": "boolean",
"default": true
},
"background": {
"type": "boolean",
"default": true
},
"theme": {
"type": "string",
"enum": ["light", "dark"],
"default": "dark"
},
"mode": {
"type": "string",
"enum": ["view", "image", "both"],
"default": "both"
}
}
},
"security": {
"type": "object",
"additionalProperties": false,
"properties": {
"allowRemoteViewer": {
"type": "boolean",
"default": false
}
}
}
}
}
}