@qzsy/dsh-yunxiao-panel 1.4.0 → 1.5.0
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/LICENSE +21 -21
- package/README.md +20 -4
- package/dist/client.js +387 -129
- package/dist/index.js +85 -5
- package/package.json +1 -1
- package/test/render-test.mjs +39 -1
- package/vendor/text-search-engine.LICENSE +20 -20
- package/vendor/text-search-engine.min.js +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 qzsy
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 qzsy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -52,10 +52,20 @@ and a repository chip row for its merge requests.
|
|
|
52
52
|
已关闭). The item is repainted in the detail, every project list and the
|
|
53
53
|
workbench (including its status chart) before the request returns, and a
|
|
54
54
|
failure rolls every snapshot back.
|
|
55
|
-
- **在对话中处理** opens a
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
- **在对话中处理** opens a session dialog with two choices:
|
|
56
|
+
- **工作区** — the local DSH workspaces, ranked by the one remembered for this
|
|
57
|
+
Yunxiao project, a name match with the repository or project, then the last
|
|
58
|
+
one used; tapping a row selects it, double-click or Enter confirms.
|
|
59
|
+
- **对话模式** (work items only, remembered per browser):
|
|
60
|
+
**仅复制到对话** drafts the work item context as before; **发送修复请求**
|
|
61
|
+
appends a fix protocol: plan first, then a fix → acceptance loop until it
|
|
62
|
+
passes, then write back to Yunxiao — upload a screenshot through
|
|
63
|
+
`POST /api/yunxiao/workitem-attachment`, post a Markdown comment with root
|
|
64
|
+
cause, changed files, acceptance steps and the screenshot through
|
|
65
|
+
`POST /api/yunxiao/workitem-comment`, and move the item to its done status
|
|
66
|
+
through `POST /api/yunxiao/workitem-status`. The protocol carries the
|
|
67
|
+
loopback facade address from `/status`, the item id, and the done status id
|
|
68
|
+
when the workflow is already loaded.
|
|
59
69
|
- **Repository page** — clicking any repository (in the repository list or under
|
|
60
70
|
**未绑定的仓库**) opens its own page with four tabs:
|
|
61
71
|
**概览 / 提交 / 工作项 / 合并请求**.
|
|
@@ -109,6 +119,12 @@ and a repository chip row for its merge requests.
|
|
|
109
119
|
work item — Codeup has no repository-level issue API.
|
|
110
120
|
- **在对话中处理** puts a structured context block into a new session draft
|
|
111
121
|
through `ctx.uiWorkspace.startSession`; nothing is sent automatically.
|
|
122
|
+
- **Write-back routes** — `/workitem-comment` takes JSON `{ id, content }`
|
|
123
|
+
(Markdown); `/workitem-attachment?id=…&name=…` takes the raw image body
|
|
124
|
+
(`image/png`, `image/jpeg`, `image/webp`, `image/gif`, up to 10 MB) and
|
|
125
|
+
returns `embedMarkdown`. Every POST requires a JSON or image content type, so
|
|
126
|
+
a cross-site page cannot submit to the facade without a CORS preflight, which
|
|
127
|
+
the facade never grants.
|
|
112
128
|
- Registered as a `sidebar.panellist` entry with `id=yunxiao, order=25` — right
|
|
113
129
|
below the command palette — and as the `main` panel keyed `yunxiao`.
|
|
114
130
|
|