@hanfang5057/co-space 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/bin/cospace-local.js +0 -0
- package/dist/cli.js +20 -5
- package/dist/daemon.cjs +329 -17
- package/dist/mcp.cjs +302 -299
- package/dist/package.json +1 -1
- package/dist/web/app.css +1 -1
- package/dist/web/app.js +47 -47
- package/package.json +28 -6
- package/skills/cospace-review/SKILL.md +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanfang5057/co-space",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Local CoSpace MCP server and document review web app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,16 +10,38 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/hanfang5057-byte/co-space.git"
|
|
12
12
|
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcp",
|
|
15
|
+
"stdio",
|
|
16
|
+
"agent",
|
|
17
|
+
"document-review",
|
|
18
|
+
"cospace"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22.22.2"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"cospace-local": "bin/cospace-local.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin/",
|
|
28
|
+
"dist/",
|
|
29
|
+
"skills/",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
32
|
+
],
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"esbuild": "^0.28.2"
|
|
35
|
+
},
|
|
18
36
|
"scripts": {
|
|
19
37
|
"build": "node scripts/build.mjs",
|
|
20
38
|
"mcp": "node bin/cospace-local.js mcp",
|
|
21
39
|
"web": "node bin/cospace-local.js service open",
|
|
22
40
|
"pack": "node scripts/pack.mjs",
|
|
23
41
|
"verify-package": "node scripts/verify-package.mjs"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"react": "^19.3.1",
|
|
45
|
+
"react-dom": "^19.3.1"
|
|
24
46
|
}
|
|
25
47
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cospace-review
|
|
3
|
+
description: Read and propose reviewed changes to CoSpace documents using its MCP tools.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CoSpace document collaboration
|
|
7
|
+
|
|
8
|
+
- CoSpace exposes MCP tools, not MCP resources. Use `space_document_read`, `space_suggest`, `space_suggestion_list`, and `space_comment_complete` directly. Use `space_document_create` only when the user explicitly asks to create a document.
|
|
9
|
+
- Only work on an existing document when the user provides its `space:<docId>` reference. Never enumerate documents or choose one yourself.
|
|
10
|
+
- Read the latest document version before proposing changes.
|
|
11
|
+
- Submit each independent change as a CoSpace suggestion. Never directly overwrite accepted document content.
|
|
12
|
+
- The user alone accepts or rejects suggestions in the CoSpace workbench. Do not claim a proposal was applied before checking its status.
|
|
13
|
+
- CoSpace has two distinct review operations. Autonomous review means review accepted content and propose improvements independently; comments are not instructions in this mode, so do not process or complete them. Comment-based revision means work only on comments the user asked you to process. When the user names comment IDs, process only those IDs. When the user asks to process comments in a document without naming IDs, process all comments whose latest read status is pending. Interpret each body with its quote and anchor, and submit a concrete `space_suggest` for each clear, locatable request, even when it is ordinary feedback. Do not add autonomous review suggestions outside those comments. For example, “去掉” on quoted text means propose deleting that text. If the user explicitly asks for both, keep the two scopes distinct.
|
|
14
|
+
- For comment-based revision, read the specified document and use its latest comment statuses to determine the authorized scope; do not process accepted, rejected, or already processed comments. Call `space_comment_complete` for each requested comment and link its related suggestion IDs. If intent or location is genuinely unclear, explain why, ask when needed, and leave that comment pending. Never send comments on the user's behalf.
|
|
15
|
+
- Creating a document requires an explicit user request.
|