@dsh-workbench/shared 1.1.5 → 1.1.7
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/contract/needs.d.ts +3 -0
- package/dist/contract/needs.js +17 -0
- package/dist/contract/protocol/market-index.d.ts +3 -1
- package/dist/contract/protocol/market-index.js +2 -0
- package/dist/host/lib-runners.d.ts +20 -0
- package/dist/host/lib-runners.js +46 -0
- package/dist/host/market-index-claim.d.ts +2 -0
- package/dist/host/market-index-claim.js +7 -0
- package/dist/host/market-index-doc.d.ts +56 -0
- package/dist/host/market-index-doc.js +1 -0
- package/dist/host/market-index-parse.d.ts +23 -0
- package/dist/host/market-index-parse.js +485 -0
- package/dist/host/market-index.d.ts +13 -21
- package/dist/host/market-index.js +120 -368
- package/dist/host/opencli-runner.d.ts +25 -0
- package/dist/host/opencli-runner.js +50 -0
- package/dist/host.d.ts +2 -0
- package/dist/host.js +2 -0
- package/dist/i18n/en.js +10 -4
- package/dist/i18n/index.d.ts +11 -5
- package/dist/i18n/zh.d.ts +10 -4
- package/dist/i18n/zh.js +10 -4
- package/package.json +1 -1
- package/src/contract/__tests__/needs.test.ts +8 -0
- package/src/contract/needs.ts +15 -0
- package/src/contract/protocol/market-index.ts +4 -0
- package/src/host/__tests__/lib-runners.test.ts +82 -0
- package/src/host/__tests__/market-index.test.ts +114 -0
- package/src/host/__tests__/opencli-runner.test.ts +120 -0
- package/src/host/lib-runners.ts +70 -0
- package/src/host/market-index-claim.ts +9 -0
- package/src/host/market-index-doc.ts +62 -0
- package/src/host/market-index-parse.ts +482 -0
- package/src/host/market-index.ts +162 -357
- package/src/host/opencli-runner.ts +76 -0
- package/src/host.ts +2 -0
- package/src/i18n/en.ts +10 -4
- package/src/i18n/zh.ts +10 -4
package/src/i18n/en.ts
CHANGED
|
@@ -134,11 +134,14 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
134
134
|
'panels.market.update': 'Update',
|
|
135
135
|
'panels.market.swapSlow': 'Not swapped yet — maybe a slow or failed download. Press Update again; if it stays like this, restart dsh.',
|
|
136
136
|
'panels.market.removeSlow': 'Not removed yet — maybe a slow network or an uninstall that did not finish. Check again in a moment; if it stays like this, restart dsh.',
|
|
137
|
-
'panels.market.updateNoChange': 'Update
|
|
137
|
+
'panels.market.updateNoChange': 'Update did not swap in: still {from}; the registry has {latest}.',
|
|
138
138
|
'panels.market.updateUnknownVersion': '(unknown)',
|
|
139
139
|
'panels.market.updateGone': 'Update failed: the module is gone after the update.',
|
|
140
140
|
'panels.market.updateRestored': 'Update failed: the new version could not be found after the update, so {version} was put back.',
|
|
141
|
-
'panels.market.updateBehind': 'Installed {installed}, but the
|
|
141
|
+
'panels.market.updateBehind': 'Installed {installed}, but the registry has {latest}.',
|
|
142
|
+
'panels.market.updateStuck.title': 'Update did not swap in',
|
|
143
|
+
'panels.market.updateStuck.factNoChange': 'Still {from} on disk; the registry has {latest}.',
|
|
144
|
+
'panels.market.updateStuck.copiedHint': 'Paste it into a terminal, then restart the workbench once.',
|
|
142
145
|
'panels.market.selfUpdateFailed': 'Workbench update failed: {reason}',
|
|
143
146
|
'panels.market.selfUpdateUnknown': 'the outside process left no reason (see ~/.dsh/workbench/self-update.log)',
|
|
144
147
|
'panels.market.selfUpdateRolledBack': 'Workbench update failed; rolled back to {version}.',
|
|
@@ -227,6 +230,7 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
227
230
|
'panels.market.restartNeeded': 'The new version is installed — restart once to pick it up.',
|
|
228
231
|
'panels.market.foot': 'After installing, enable it in the panel page of that project.',
|
|
229
232
|
'panels.market.checkUpdates': 'Check for updates',
|
|
233
|
+
'panels.market.checkAll': 'Check all updates',
|
|
230
234
|
'panels.market.checkingNow': 'Checking…',
|
|
231
235
|
'panels.market.checkFailed': 'The last check failed. Check your connection and retry.',
|
|
232
236
|
'panels.market.checkedAt': 'Last checked: {time}',
|
|
@@ -293,6 +297,8 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
293
297
|
'panels.market.add.failurePermission': 'No write permission, cannot install',
|
|
294
298
|
'panels.market.add.failureBuildBlocked': 'A dependency wants to run install scripts; you have to allow it first',
|
|
295
299
|
'panels.market.add.failureIntegrity': 'The downloaded package failed its integrity check',
|
|
300
|
+
'panels.market.add.failureStopProfile': 'The old copy is still in use (the workbench has this module loaded), so this dsh version will not overwrite it in place.',
|
|
301
|
+
'panels.market.add.failureCancelled': 'This run was cancelled and nothing changed.',
|
|
296
302
|
'panels.market.add.failureTimeout': 'The install timed out',
|
|
297
303
|
'panels.market.add.failurePnpmMissing': 'pnpm was not found, cannot install',
|
|
298
304
|
'panels.market.add.failureInstalled':
|
|
@@ -377,7 +383,7 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
377
383
|
'panels.discover.missingIndex': 'This repository has no {path} yet.',
|
|
378
384
|
'panels.discover.initTitle': 'Initialize this repository as a module market index?',
|
|
379
385
|
'panels.discover.initCta': 'Initialize market index',
|
|
380
|
-
'panels.discover.initWhat': 'It will write market
|
|
386
|
+
'panels.discover.initWhat': 'It will write the index directory market/ and README.md on {branch}, commit once, and push. Modules you publish from this workbench will commit their build files under artifacts/<package-name>/<version>/ and their entry under market/<package-name>/<version>.json. The repository stays owned by its owner.',
|
|
381
387
|
'panels.discover.initBranch': 'Branch',
|
|
382
388
|
'panels.discover.initBranchHint': 'The index and build files go to this branch; an empty repository gets it created.',
|
|
383
389
|
'panels.discover.initBranchBad': 'Use only letters, digits, dots, underscores, slashes, or dashes in a branch name.',
|
|
@@ -730,7 +736,7 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
730
736
|
'approval.publish.artifacts': 'Build files',
|
|
731
737
|
'approval.publish.index': 'Index',
|
|
732
738
|
'approval.publish.commits': 'Commits',
|
|
733
|
-
'approval.publish.twoCommits': 'build files +
|
|
739
|
+
'approval.publish.twoCommits': 'build files + entry file in 2 commits, one push',
|
|
734
740
|
'approval.publish.reading': 'Reading…',
|
|
735
741
|
'approval.publish.changelog': 'Changelog for {version}',
|
|
736
742
|
'approval.publish.changelogPending': 'This release writes the {version} changelog entry',
|
package/src/i18n/zh.ts
CHANGED
|
@@ -133,11 +133,14 @@ export const zh = {
|
|
|
133
133
|
'panels.market.update': '更新',
|
|
134
134
|
'panels.market.swapSlow': '还没换上:可能网慢或没装上。再点一次「更新」;一直这样就把 dsh 重启一遍。',
|
|
135
135
|
'panels.market.removeSlow': '还没卸掉:可能网慢或卸载没走完。等一下再看;一直这样就把 dsh 重启一遍。',
|
|
136
|
-
'panels.market.updateNoChange': '
|
|
136
|
+
'panels.market.updateNoChange': '更新没换上:还是 {from};源上最新是 {latest}。',
|
|
137
137
|
'panels.market.updateUnknownVersion': '(问不到)',
|
|
138
138
|
'panels.market.updateGone': '更新失败:更新后找不到这个模块。',
|
|
139
139
|
'panels.market.updateRestored': '更新失败:更新后找不到新版本,已把 {version} 装回去。',
|
|
140
|
-
'panels.market.updateBehind': '装上了 {installed},但源上最新是 {latest}
|
|
140
|
+
'panels.market.updateBehind': '装上了 {installed},但源上最新是 {latest}。',
|
|
141
|
+
'panels.market.updateStuck.title': '更新没换上',
|
|
142
|
+
'panels.market.updateStuck.factNoChange': '盘上还是 {from};源上最新是 {latest}。',
|
|
143
|
+
'panels.market.updateStuck.copiedHint': '粘到终端跑一次,跑完重启一次工作台。',
|
|
141
144
|
'panels.market.selfUpdateFailed': '工作台更新失败:{reason}',
|
|
142
145
|
'panels.market.selfUpdateUnknown': '外部进程没留下原因(看 ~/.dsh/workbench/self-update.log)',
|
|
143
146
|
'panels.market.selfUpdateRolledBack': '工作台更新失败,已回滚到 {version}。',
|
|
@@ -224,6 +227,7 @@ export const zh = {
|
|
|
224
227
|
'panels.market.restartNeeded': '新版装好了,重启一次才生效。',
|
|
225
228
|
'panels.market.foot': '装好后到那个项目的面板页勾选它,模块才会出现。',
|
|
226
229
|
'panels.market.checkUpdates': '检查更新',
|
|
230
|
+
'panels.market.checkAll': '检查全部更新',
|
|
227
231
|
'panels.market.checkingNow': '正在检查…',
|
|
228
232
|
'panels.market.checkFailed': '最近一次没查到,检查网络后重试',
|
|
229
233
|
'panels.market.checkedAt': '最近检查:{time}',
|
|
@@ -290,6 +294,8 @@ export const zh = {
|
|
|
290
294
|
'panels.market.add.failurePermission': '没有写入权限,无法安装',
|
|
291
295
|
'panels.market.add.failureBuildBlocked': '有依赖的安装脚本需要你允许后才能继续',
|
|
292
296
|
'panels.market.add.failureIntegrity': '下载的安装包校验失败',
|
|
297
|
+
'panels.market.add.failureStopProfile': '旧版还在用着(工作台正加载这个模块),这一版 dsh 不肯就地覆盖。',
|
|
298
|
+
'panels.market.add.failureCancelled': '这次操作被取消了,什么都没动。',
|
|
293
299
|
'panels.market.add.failureTimeout': '安装超时',
|
|
294
300
|
'panels.market.add.failurePnpmMissing': '没有找到 pnpm,无法安装',
|
|
295
301
|
'panels.market.add.failureInstalled':
|
|
@@ -374,7 +380,7 @@ export const zh = {
|
|
|
374
380
|
'panels.discover.missingIndex': '仓库里还没有索引文件 {path}',
|
|
375
381
|
'panels.discover.initTitle': '把这个仓库初始化成模块市场索引?',
|
|
376
382
|
'panels.discover.initCta': '初始化成市场索引',
|
|
377
|
-
'panels.discover.initWhat': '会在 {branch}
|
|
383
|
+
'panels.discover.initWhat': '会在 {branch} 分支写索引目录 market/ 与 README.md,提交一次并推上去;之后从这个工作台发布的模块会把打包好的文件提交到 artifacts/<包名>/<版本>/,条目写到 market/<包名>/<版本>.json。仓库的写权限归它的所有者。',
|
|
378
384
|
'panels.discover.initBranch': '分支',
|
|
379
385
|
'panels.discover.initBranchHint': '索引和打包文件都发到这个分支;空仓库会新建它。',
|
|
380
386
|
'panels.discover.initBranchBad': '分支名只能用字母、数字、点、下划线、斜杠或短横线',
|
|
@@ -725,7 +731,7 @@ export const zh = {
|
|
|
725
731
|
'approval.publish.artifacts': '打包文件',
|
|
726
732
|
'approval.publish.index': '索引',
|
|
727
733
|
'approval.publish.commits': '提交',
|
|
728
|
-
'approval.publish.twoCommits': '打包文件 +
|
|
734
|
+
'approval.publish.twoCommits': '打包文件 + 条目文件两次提交,一次推送',
|
|
729
735
|
'approval.publish.reading': '读取中…',
|
|
730
736
|
'approval.publish.changelog': '{version} 的更新日志',
|
|
731
737
|
'approval.publish.changelogPending': '{version} 这一版会写进更新日志,随包发布',
|