-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodevisor-plugin.json
More file actions
83 lines (83 loc) · 2.52 KB
/
Copy pathcodevisor-plugin.json
File metadata and controls
83 lines (83 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"protocolVersion": 2,
"id": "851-labs.scratchpad",
"name": "Scratchpad",
"description": "A single shared, collaborative rich-text scratchpad.",
"version": "0.1.0",
"iconPath": "/assets/icon.svg",
"panes": [
{
"type": "scratchpad",
"title": "Scratchpad",
"path": "/panes/scratchpad/"
}
],
"tools": [
{
"name": "scratchpad_read",
"description": "Read the global scratchpad. Returns plain text, Tiptap/ProseMirror JSON, and a revision. Read before editing and pass the revision to scratchpad_apply_patch.",
"path": "/tools/read"
},
{
"name": "scratchpad_apply_patch",
"description": "Update the global scratchpad with RFC 6902-style add, remove, replace, and test operations against the Tiptap/ProseMirror JSON returned by scratchpad_read. Pass base_revision to prevent overwriting concurrent edits.",
"path": "/tools/apply-patch",
"inputSchema": {
"type": "object",
"properties": {
"base_revision": {
"type": "string",
"description": "Revision returned by scratchpad_read. The patch fails if the document changed since it was read."
},
"patches": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"description": "JSON Patch operations. Paths are JSON Pointers such as /content/0/content/0/text.",
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"enum": ["add", "remove", "replace", "test"]
},
"path": {
"type": "string"
},
"value": {}
},
"required": ["op", "path"]
}
}
},
"required": ["base_revision", "patches"]
}
}
],
"setup": [
{
"argv": ["npm", "install"]
},
{
"argv": ["npm", "run", "build"]
}
],
"run": {
"argv": ["node", "--no-warnings", "server.mjs"]
},
"requirements": {
"executables": [
{
"name": "node",
"installHint": "Install Node.js 20.19+ or 22.12+; the official installer includes npm.",
"helpUrl": "https://nodejs.org/en/download"
},
{
"name": "npm",
"installHint": "Install npm with Node.js, or follow npm's installation guide.",
"helpUrl": "https://docs.npmjs.com/downloading-and-installing-node-js-and-npm"
}
]
},
"healthPath": "/health"
}