dsh-ide-git 0.7.0 → 0.7.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/dsh.plugin.json +1 -1
- package/package.json +1 -1
- package/src/client.js +9 -1
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-ide-git",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"description": "IDE 级 Git 操作面板:分支树 + 提交图谱 + 变更/暂存/提交 + 提交详情。装了 dsh-better-sidebar 时挂成它的原生 tab(右侧栏 + 底部工作台);没装时直接挂 DSH 原生右侧栏,单独安装即可用。JetBrains 风格 Git 工具窗口 for DeepSeek Harness.",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ide-git",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "DSH plugin: an IDE-grade Git tool window as a native dsh-better-sidebar tab — branch tree, commit graph, changes, commit details, JetBrains-style actions, in the right sidebar and the bottom panel. | DSH 插件:IDE 级 Git 工具窗口,以 dsh-better-sidebar 原生 Tab 挂载——分支树 / 提交图谱 / 变更与提交详情 / JetBrains 风格操作,右侧栏与底部面板双布局自适应。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
package/src/client.js
CHANGED
|
@@ -28,7 +28,15 @@ window.__ModuleLoader__.load({
|
|
|
28
28
|
const useCallback = React.useCallback
|
|
29
29
|
const useLayoutEffect = React.useLayoutEffect
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
/* API base is MOUNT-RELATIVE (no leading slash). dsh 0.1.7 serves the
|
|
32
|
+
shell with <base href="./">, so document.baseURI is the mount the page
|
|
33
|
+
was loaded from — the origin root, or a prefix-stripping proxy's sub-path
|
|
34
|
+
(issue #4). fetch() resolves this relative path against the document
|
|
35
|
+
base, so the panel's calls land on /dsh-ide-git/api at the origin root
|
|
36
|
+
and on <mount>/dsh-ide-git/api under a sub-path, both matching the route
|
|
37
|
+
the host half registered at its upstream path. An origin-absolute base
|
|
38
|
+
would escape the mount and 404 behind any strict proxy. */
|
|
39
|
+
const API_BASE = 'dsh-ide-git/api'
|
|
32
40
|
const TAB_ID = 'dsh-ide-git:panel'
|
|
33
41
|
/* The namespace this plugin's dictionaries are published under in the DSH
|
|
34
42
|
locale registry. */
|