dsh-gufa-code 1.3.103 → 1.3.104

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/client.js CHANGED
@@ -16,7 +16,7 @@ const GUFA_NS = 'gufa-code'
16
16
  const G = {}
17
17
  G.NS = GUFA_NS
18
18
  /** 客户端构建标记(排查页面是否加载了新代码时看标题栏) */
19
- G.BUILD = '1.3.103'
19
+ G.BUILD = '1.3.104'
20
20
  G.PANEL_ID = 'gufa-code'
21
21
  /** 从哪个工作区点进来的(工作区菜单/节点按钮写入,App 启动时消费)。 */
22
22
  G.pendingEntryWorkspace = null
@@ -169,6 +169,7 @@ const DICT_ZH = {
169
169
  'app.openFolder': '打开文件夹',
170
170
  'app.noProject': '尚未打开工作区',
171
171
  'app.noProjectHint': '选择一个工作区,或新建一个工作区,开始古法编程。',
172
+ 'app.noProjectHintTop': '从左上角「选择工作区」切换已有工作区,或点右上角「+ 新建工作区」。',
172
173
  'app.projectName': '工作区名',
173
174
  'app.parentFolder': '父目录',
174
175
  'app.cancel': '取消',
@@ -418,6 +419,7 @@ const DICT_EN = {
418
419
  'app.openFolder': 'Open folder',
419
420
  'app.noProject': 'No workspace opened',
420
421
  'app.noProjectHint': 'Choose a workspace or create a new one to start classic coding.',
422
+ 'app.noProjectHintTop': 'Use the workspace picker at the top left, or + New workspace at the top right.',
421
423
  'app.projectName': 'Workspace name',
422
424
  'app.parentFolder': 'Parent folder',
423
425
  'app.cancel': 'Cancel',
@@ -14156,14 +14158,9 @@ G.GufaApp = function GufaApp(props) {
14156
14158
  { className: 'gufa-empty' },
14157
14159
  h(G.Seal, { size: 64 }),
14158
14160
  h('div', { className: 'gufa-empty-title' }, t('app.noProject')),
14159
- h('div', { className: 'gufa-empty-hint' }, t('app.noProjectHint')),
14161
+ /* 不再放「选择工作区 / 新建工作区」按钮:顶部已有同一套入口,避免两套逻辑 */
14162
+ h('div', { className: 'gufa-empty-hint' }, t('app.noProjectHintTop')),
14160
14163
  bootError !== '' ? h('div', { className: 'gufa-error-banner', style: { margin: 0 } }, bootError) : null,
14161
- h(
14162
- 'div',
14163
- { className: 'gufa-row', style: { justifyContent: 'center', marginTop: 8 } },
14164
- h(G.Button, { primary: true, icon: 'folder-open', onClick: () => void chooseAndOpenProject() }, t('app.openProject')),
14165
- h(G.Button, { icon: 'plus', onClick: () => setModal({ type: 'newProject', parent: '', name: '' }) }, t('app.newProject')),
14166
- ),
14167
14164
  )
14168
14165
  : null
14169
14166
 
package/locale/en.json CHANGED
@@ -25,7 +25,8 @@
25
25
  "loading": "Loading…",
26
26
  "error": "Something went wrong",
27
27
  "retry": "Retry",
28
- "hostStale": "Plugin upgraded: the Host is still an older build. The editor and AI chat already work; quit and reopen DeepSeek Harness to enable the real terminal."
28
+ "hostStale": "Plugin upgraded: the Host is still an older build. The editor and AI chat already work; quit and reopen DeepSeek Harness to enable the real terminal.",
29
+ "noProjectHintTop": "Use the workspace picker at the top left, or + New workspace at the top right."
29
30
  },
30
31
  "activity": {
31
32
  "explorer": "Explorer",
package/locale/zh.json CHANGED
@@ -26,7 +26,8 @@
26
26
  "error": "出错了",
27
27
  "retry": "重试",
28
28
  "hostStale": "插件已升级:当前 Host 仍是旧版本。AI 对话与编辑器已可用;请退出并重新打开 DeepSeek Harness 以启用真实终端。",
29
- "noRepo": "当前工作区不是 Git 仓库"
29
+ "noRepo": "当前工作区不是 Git 仓库",
30
+ "noProjectHintTop": "从左上角「选择工作区」切换已有工作区,或点右上角「+ 新建工作区」。"
30
31
  },
31
32
  "activity": {
32
33
  "explorer": "资源管理器",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gufa-code",
3
- "version": "1.3.103",
3
+ "version": "1.3.104",
4
4
  "description": "古法编程 · AI 辅助:一键把 DSH 主面板变成 VS Code 风格 IDE(Monaco 编辑器、文件树、Git、SSH、真实终端 + 右侧官方会话);主张亲手写、每个改动心中有数,AI 是助理、你是第一责任人",
5
5
  "icon": "icon.svg",
6
6
  "keywords": [
@@ -161,6 +161,7 @@ const DICT_ZH = {
161
161
  'app.openFolder': '打开文件夹',
162
162
  'app.noProject': '尚未打开工作区',
163
163
  'app.noProjectHint': '选择一个工作区,或新建一个工作区,开始古法编程。',
164
+ 'app.noProjectHintTop': '从左上角「选择工作区」切换已有工作区,或点右上角「+ 新建工作区」。',
164
165
  'app.projectName': '工作区名',
165
166
  'app.parentFolder': '父目录',
166
167
  'app.cancel': '取消',
@@ -410,6 +411,7 @@ const DICT_EN = {
410
411
  'app.openFolder': 'Open folder',
411
412
  'app.noProject': 'No workspace opened',
412
413
  'app.noProjectHint': 'Choose a workspace or create a new one to start classic coding.',
414
+ 'app.noProjectHintTop': 'Use the workspace picker at the top left, or + New workspace at the top right.',
413
415
  'app.projectName': 'Workspace name',
414
416
  'app.parentFolder': 'Parent folder',
415
417
  'app.cancel': 'Cancel',
@@ -2315,14 +2315,9 @@ G.GufaApp = function GufaApp(props) {
2315
2315
  { className: 'gufa-empty' },
2316
2316
  h(G.Seal, { size: 64 }),
2317
2317
  h('div', { className: 'gufa-empty-title' }, t('app.noProject')),
2318
- h('div', { className: 'gufa-empty-hint' }, t('app.noProjectHint')),
2318
+ /* 不再放「选择工作区 / 新建工作区」按钮:顶部已有同一套入口,避免两套逻辑 */
2319
+ h('div', { className: 'gufa-empty-hint' }, t('app.noProjectHintTop')),
2319
2320
  bootError !== '' ? h('div', { className: 'gufa-error-banner', style: { margin: 0 } }, bootError) : null,
2320
- h(
2321
- 'div',
2322
- { className: 'gufa-row', style: { justifyContent: 'center', marginTop: 8 } },
2323
- h(G.Button, { primary: true, icon: 'folder-open', onClick: () => void chooseAndOpenProject() }, t('app.openProject')),
2324
- h(G.Button, { icon: 'plus', onClick: () => setModal({ type: 'newProject', parent: '', name: '' }) }, t('app.newProject')),
2325
- ),
2326
2321
  )
2327
2322
  : null
2328
2323