@dsh-workbench/shared 1.0.0-beta.0 → 1.0.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/dist/components/FormNodes.js +5 -1
- package/dist/components/FormRows.css +1 -0
- package/dist/components/FormRows.d.ts +4 -2
- package/dist/components/FormRows.js +5 -4
- package/dist/config/constants.d.ts +0 -2
- package/dist/config/constants.js +0 -5
- package/dist/contract/command.d.ts +22 -0
- package/dist/contract/command.js +1 -0
- package/dist/contract/data.d.ts +2 -1
- package/dist/contract/extension.d.ts +14 -0
- package/dist/contract/extension.js +1 -0
- package/dist/contract/git.d.ts +38 -0
- package/dist/contract/git.js +1 -0
- package/dist/contract/lib.d.ts +4 -0
- package/dist/contract/lib.js +1 -0
- package/dist/contract/protocol/config-sync.d.ts +1 -21
- package/dist/contract/protocol/market-index.d.ts +1 -0
- package/dist/contract/protocol/profile-create.d.ts +0 -3
- package/dist/host/adapter-set.js +1 -0
- package/dist/host/adapters.d.ts +6 -0
- package/dist/host/extension.d.ts +7 -0
- package/dist/host/extension.js +39 -0
- package/dist/host/git.d.ts +2 -52
- package/dist/host/git.js +1 -64
- package/dist/host/http.js +1 -1
- package/dist/host/market-index.js +3 -44
- package/dist/host/port-types.d.ts +1 -0
- package/dist/host/release-packages.generated.d.ts +1 -0
- package/dist/host/release-packages.generated.js +10 -0
- package/dist/host/tool-kit.d.ts +0 -6
- package/dist/host/tool-kit.js +0 -22
- package/dist/host/unit-face.d.ts +7 -0
- package/dist/host/version-range.js +7 -67
- package/dist/host/version.d.ts +3 -2
- package/dist/host/version.js +17 -19
- package/dist/host.d.ts +6 -0
- package/dist/host.js +6 -0
- package/dist/i18n/en.js +3 -1
- package/dist/i18n/index.d.ts +9 -21
- package/dist/i18n/settings.d.ts +5 -19
- package/dist/i18n/settings.js +7 -35
- package/dist/i18n/zh.d.ts +8 -20
- package/dist/i18n/zh.js +3 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/lib/version.d.ts +4 -0
- package/dist/lib/version.js +21 -0
- package/dist/testing/git.d.ts +3 -0
- package/dist/testing/git.js +36 -0
- package/package.json +6 -4
- package/src/components/Form.test.tsx +6 -0
- package/src/components/FormNodes.tsx +6 -1
- package/src/components/FormRows.css +1 -0
- package/src/components/FormRows.test.tsx +30 -0
- package/src/components/FormRows.tsx +9 -5
- package/src/config/constants.ts +0 -6
- package/src/contract/command.ts +25 -0
- package/src/contract/data.ts +2 -1
- package/src/contract/extension.ts +20 -0
- package/src/contract/git.ts +20 -0
- package/src/contract/lib.ts +5 -0
- package/src/contract/protocol/config-sync.ts +1 -24
- package/src/contract/protocol/market-index.ts +1 -0
- package/src/contract/protocol/profile-create.ts +0 -3
- package/src/host/adapter-set.ts +1 -0
- package/src/host/adapters.ts +6 -0
- package/src/host/extension.test.ts +55 -0
- package/src/host/extension.ts +57 -0
- package/src/host/git.ts +6 -92
- package/src/host/http.ts +1 -1
- package/src/host/market-index.ts +3 -33
- package/src/host/port-types.ts +1 -0
- package/src/host/release-packages.generated.ts +10 -0
- package/src/host/tool-kit.ts +0 -35
- package/src/host/unit-face.ts +7 -0
- package/src/host/version-range.ts +6 -64
- package/src/host/version.ts +18 -18
- package/src/host.ts +6 -0
- package/src/i18n/en.ts +3 -1
- package/src/i18n/settings.ts +7 -35
- package/src/i18n/zh.ts +3 -1
- package/src/index.ts +4 -0
package/src/i18n/settings.ts
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
/** 「工作台设置」这一组的词条:配置同步 / 新建工作台。 */
|
|
2
2
|
export const zhSettings = {
|
|
3
3
|
'profileCreate.nav': '新建工作台',
|
|
4
|
-
'profileCreate.lead': '以已有 profile
|
|
4
|
+
'profileCreate.lead': '以已有 profile 为模板,建一个独立的新工作台。会话 / 项目 / 附件跟 web 共用,这里只复制设置。建好后关掉当前实例,再启动新的。',
|
|
5
5
|
'profileCreate.name': '新工作台的名字',
|
|
6
6
|
'profileCreate.nameHint': '例如 wb2(只用字母、数字、点、下划线或短横线)',
|
|
7
7
|
'profileCreate.source': '来源 profile',
|
|
8
8
|
'profileCreate.current': '当前',
|
|
9
9
|
'profileCreate.copy': '从来源复制',
|
|
10
10
|
'profileCreate.settings': '设置(模型、主题等)',
|
|
11
|
-
'profileCreate.plugins': '本地插件文件',
|
|
12
|
-
'profileCreate.pluginsRequired': '设置里引用了,不能单独去掉',
|
|
13
|
-
'profileCreate.projects': '项目列表',
|
|
14
|
-
'profileCreate.sessions': '会话记录',
|
|
15
11
|
'profileCreate.create': '创建',
|
|
16
12
|
'profileCreate.creating': '正在创建…',
|
|
17
13
|
'profileCreate.created': '已建好 {profile}。',
|
|
@@ -23,25 +19,16 @@ export const zhSettings = {
|
|
|
23
19
|
'profileCreate.failed': '创建没有成功,看看下面的输出。',
|
|
24
20
|
|
|
25
21
|
'configSync.nav': '配置同步',
|
|
26
|
-
'configSync.lead': '
|
|
22
|
+
'configSync.lead': '只同步「改已有插件的设置」的行;挂新插件的行不同步。会话 / 项目 / 附件本来就共用,不用同步。要整套新建工作台用「新建工作台」。',
|
|
27
23
|
'configSync.source': '来源',
|
|
28
24
|
'configSync.sourceBroken': '读不到它的配置',
|
|
29
|
-
'configSync.sourceRows': '{name} 这份里你有 {count}
|
|
25
|
+
'configSync.sourceRows': '{name} 这份里你有 {count} 行可同步',
|
|
30
26
|
'configSync.sourceDead': '读不到',
|
|
31
27
|
'configSync.refresh': '重新读一遍',
|
|
32
28
|
'configSync.loading': '正在读来源的配置…',
|
|
33
29
|
'configSync.readHint': '换个来源,或再读一遍。',
|
|
34
30
|
'configSync.tag.new': '新增',
|
|
35
31
|
'configSync.tag.differs': '差异',
|
|
36
|
-
'configSync.tag.asset': '缺文件',
|
|
37
|
-
'configSync.tag.fileDiffers': '文件不同',
|
|
38
|
-
'configSync.assetOnly': '设置内容一样,只差文件。',
|
|
39
|
-
'configSync.assetMissingOne': '还要 1 个文件:{path}',
|
|
40
|
-
'configSync.assetMissingMany': '还要 {count} 个文件:{path}',
|
|
41
|
-
'configSync.assetDiffers': '文件不一样:{path}',
|
|
42
|
-
'configSync.assetDiffersMany': '文件有差异:{path}({count} 个)',
|
|
43
|
-
'configSync.assetExternal': '这个文件搬不过来:{path}({reason})',
|
|
44
|
-
'configSync.assetOverwrite': '覆盖工作台里的同名文件',
|
|
45
32
|
'configSync.conflictNote': '应用后工作台这份会被来源覆盖',
|
|
46
33
|
'configSync.code.lang': 'yaml',
|
|
47
34
|
'configSync.code.copy': '复制',
|
|
@@ -52,19 +39,18 @@ export const zhSettings = {
|
|
|
52
39
|
'configSync.code.collapseAria': '收起这一行的配置',
|
|
53
40
|
'configSync.code.expandAria': '展开差异(还有 {count} 行)',
|
|
54
41
|
'configSync.code.expand': '展开剩余 {count} 行',
|
|
55
|
-
'configSync.missing': '{pkg}
|
|
42
|
+
'configSync.missing': '{pkg} 还没装:这一行同步过来也不会生效 —— 先在模块市场里装它',
|
|
56
43
|
'configSync.apply': '同步选中的 {count} 项',
|
|
57
44
|
'configSync.applyNone': '请选择同步内容',
|
|
58
45
|
'configSync.applying': '正在写入…',
|
|
59
46
|
'configSync.applied': '已写入并检查通过',
|
|
60
47
|
'configSync.appliedUnverified': '已写入;重启后检查是否生效',
|
|
61
|
-
'configSync.appliedFiles': '复制了 {count} 个文件',
|
|
62
48
|
'configSync.appliedIds': '这次写进去:{ids}',
|
|
63
49
|
'configSync.skippedIds': '这几行工作台自己已有,没动:{ids}',
|
|
64
50
|
'configSync.nothing': '没有需要同步的内容',
|
|
65
51
|
'configSync.unreadable': '读不到 {path}:{reason}',
|
|
66
52
|
'configSync.noSource': '这台机器上只有工作台这一个 profile,没有可同步的来源',
|
|
67
|
-
'configSync.emptyProviders': '工作台还没有任何模型供应商 —— 去「配置同步」从某个 profile
|
|
53
|
+
'configSync.emptyProviders': '工作台还没有任何模型供应商 —— 去「配置同步」从某个 profile 把模型供应商那几行同步过来,或自己去「模型」里配。',
|
|
68
54
|
'configSync.failed': '同步没成功,再试一次。',
|
|
69
55
|
|
|
70
56
|
} as const;
|
|
@@ -72,17 +58,13 @@ export const zhSettings = {
|
|
|
72
58
|
/** 上面那组的中文对照。 */
|
|
73
59
|
export const enSettings: Record<keyof typeof zhSettings, string> = {
|
|
74
60
|
'profileCreate.nav': 'New workbench',
|
|
75
|
-
'profileCreate.lead': 'Create a separate workbench from an existing profile. Stop this instance, then start the new one.',
|
|
61
|
+
'profileCreate.lead': 'Create a separate workbench from an existing profile. Chats, projects and attachments are shared with web; only settings are copied. Stop this instance, then start the new one.',
|
|
76
62
|
'profileCreate.name': 'New workbench name',
|
|
77
63
|
'profileCreate.nameHint': 'e.g. wb2 (letters, digits, dot, underscore or dash)',
|
|
78
64
|
'profileCreate.source': 'Source profile',
|
|
79
65
|
'profileCreate.current': 'current',
|
|
80
66
|
'profileCreate.copy': 'Copy from the source',
|
|
81
67
|
'profileCreate.settings': 'Settings (models, theme, …)',
|
|
82
|
-
'profileCreate.plugins': 'Local plugin files',
|
|
83
|
-
'profileCreate.pluginsRequired': 'Referenced by settings; copied together',
|
|
84
|
-
'profileCreate.projects': 'Project list',
|
|
85
|
-
'profileCreate.sessions': 'Chat history',
|
|
86
68
|
'profileCreate.create': 'Create',
|
|
87
69
|
'profileCreate.creating': 'Creating…',
|
|
88
70
|
'profileCreate.created': 'Created {profile}.',
|
|
@@ -94,7 +76,7 @@ export const enSettings: Record<keyof typeof zhSettings, string> = {
|
|
|
94
76
|
'profileCreate.failed': 'The workbench was not created; see the output below.',
|
|
95
77
|
|
|
96
78
|
'configSync.nav': 'Config sync',
|
|
97
|
-
'configSync.lead': 'Only
|
|
79
|
+
'configSync.lead': 'Only rows that change settings of plugins the workbench already has are copied. Rows that mount a new plugin are not; chats, projects and attachments are shared already. Use “New workbench” to create a full profile.',
|
|
98
80
|
'configSync.source': 'Source',
|
|
99
81
|
'configSync.sourceBroken': 'its config is unreadable',
|
|
100
82
|
'configSync.sourceRows': '{name}: {count} rows are new or different for the workbench',
|
|
@@ -104,15 +86,6 @@ export const enSettings: Record<keyof typeof zhSettings, string> = {
|
|
|
104
86
|
'configSync.readHint': 'Pick another source, or read again.',
|
|
105
87
|
'configSync.tag.new': 'New',
|
|
106
88
|
'configSync.tag.differs': 'Differs',
|
|
107
|
-
'configSync.tag.asset': 'File missing',
|
|
108
|
-
'configSync.tag.fileDiffers': 'File differs',
|
|
109
|
-
'configSync.assetOnly': 'The setting is the same; only its file is missing.',
|
|
110
|
-
'configSync.assetMissingOne': '1 file is still needed: {path}',
|
|
111
|
-
'configSync.assetMissingMany': '{count} files are still needed: {path}',
|
|
112
|
-
'configSync.assetDiffers': 'The file differs: {path}',
|
|
113
|
-
'configSync.assetDiffersMany': 'The files differ: {path} ({count} files)',
|
|
114
|
-
'configSync.assetExternal': 'This file cannot be copied: {path} ({reason})',
|
|
115
|
-
'configSync.assetOverwrite': 'Overwrite the workbench copy',
|
|
116
89
|
'configSync.conflictNote': 'Applying replaces this workbench copy with the source',
|
|
117
90
|
'configSync.code.lang': 'yaml',
|
|
118
91
|
'configSync.code.copy': 'Copy',
|
|
@@ -129,7 +102,6 @@ export const enSettings: Record<keyof typeof zhSettings, string> = {
|
|
|
129
102
|
'configSync.applying': 'Writing…',
|
|
130
103
|
'configSync.applied': 'Written and checked',
|
|
131
104
|
'configSync.appliedUnverified': 'Written; restart to check whether it took effect',
|
|
132
|
-
'configSync.appliedFiles': 'Copied {count} files',
|
|
133
105
|
'configSync.appliedIds': 'Written this time: {ids}',
|
|
134
106
|
'configSync.skippedIds': 'Left alone (already here): {ids}',
|
|
135
107
|
'configSync.nothing': 'Nothing to sync',
|
package/src/i18n/zh.ts
CHANGED
|
@@ -274,6 +274,7 @@ export const zh = {
|
|
|
274
274
|
'panels.discover.loading': '正在读取索引',
|
|
275
275
|
'panels.discover.lead': '从索引源浏览模块;装上就能用。',
|
|
276
276
|
'panels.discover.addSource': '添加',
|
|
277
|
+
'panels.discover.addingSource': '正在添加…',
|
|
277
278
|
'panels.discover.addFirstSource': '添加索引源',
|
|
278
279
|
'panels.discover.removeSource': '移除',
|
|
279
280
|
'panels.discover.removeSourceNamed': '移除 {url}',
|
|
@@ -374,7 +375,6 @@ export const zh = {
|
|
|
374
375
|
'panels.discover.tabOverview': '概览',
|
|
375
376
|
'panels.discover.tabReadme': '说明',
|
|
376
377
|
'panels.discover.tabChangelog': '更新日志',
|
|
377
|
-
'panels.discover.docTitle': '{version} 的{kind}',
|
|
378
378
|
'panels.discover.docReadme': '说明',
|
|
379
379
|
'panels.discover.docChangelog': '更新日志',
|
|
380
380
|
'panels.discover.docLoading': '正在读取…',
|
|
@@ -617,6 +617,8 @@ export const zh = {
|
|
|
617
617
|
'approval.publish.module': '模块',
|
|
618
618
|
'approval.publish.target': '目标',
|
|
619
619
|
'approval.publish.version': '版本',
|
|
620
|
+
'approval.publish.author': '作者',
|
|
621
|
+
'approval.publish.authorMissing': '未署名(提交用本机 git 身份)',
|
|
620
622
|
'approval.publish.registry': '源',
|
|
621
623
|
'approval.publish.repo': '仓库',
|
|
622
624
|
'approval.publish.branch': '分支',
|
package/src/index.ts
CHANGED
|
@@ -37,6 +37,10 @@ export * from './config/constants.js';
|
|
|
37
37
|
export * from './config/storage.js';
|
|
38
38
|
export * from './contract/blocker.js';
|
|
39
39
|
export * from './contract/data.js';
|
|
40
|
+
export * from './contract/extension.js';
|
|
41
|
+
export * from './contract/lib.js';
|
|
42
|
+
export * from './contract/git.js';
|
|
43
|
+
export * from './contract/command.js';
|
|
40
44
|
export * from './contract/facts.js';
|
|
41
45
|
export * from './contract/long-task.js';
|
|
42
46
|
export * from './contract/protocol/bundle-install.js';
|