@qzsy/dsh-yunxiao-panel 1.4.0 → 1.4.1
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/dist/client.js +14 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -203,7 +203,20 @@ window.__ModuleLoader__.load({
|
|
|
203
203
|
|
|
204
204
|
const NS = 'yunxiao'
|
|
205
205
|
const PANEL_ID = 'yunxiao'
|
|
206
|
-
|
|
206
|
+
/**
|
|
207
|
+
* Facade base path. Locally DSH serves the app from the origin root, but
|
|
208
|
+
* remote access mounts the same app under a tunnel sub-path and the page
|
|
209
|
+
* carries `<base href="./">`. Resolve against document.baseURI so the
|
|
210
|
+
* panel calls /<sub-path>/api/yunxiao instead of leaving the mount point
|
|
211
|
+
* and hitting the tunnel root (which returns no data at all).
|
|
212
|
+
*/
|
|
213
|
+
const API = (() => {
|
|
214
|
+
try {
|
|
215
|
+
return new URL('api/yunxiao', document.baseURI).pathname.replace(/\/+$/, '')
|
|
216
|
+
} catch {
|
|
217
|
+
return '/api/yunxiao'
|
|
218
|
+
}
|
|
219
|
+
})()
|
|
207
220
|
const REPO_STORAGE_KEY = 'dsh.yunxiao.repo'
|
|
208
221
|
const PROJECT_STORAGE_KEY = 'dsh.yunxiao.projectMap'
|
|
209
222
|
/** Remembered DSH workspace per Yunxiao project: { [projectId]: workspaceId, __last: workspaceId }. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qzsy/dsh-yunxiao-panel",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Yunxiao (阿里云云效) panel for the DeepSeek Harness Web client: a cross-project workbench with charts, project/repository navigation, Projex work items, Codeup commits and merge requests.",
|
|
6
6
|
"license": "MIT",
|