@dsh-workbench/shared 0.2.8 → 0.2.10
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/host/tool-approval.d.ts +1 -1
- package/dist/host/tool-approval.js +2 -2
- package/dist/i18n/en.js +7 -0
- package/dist/i18n/index.d.ts +8 -1
- package/dist/i18n/zh.d.ts +7 -0
- package/dist/i18n/zh.js +7 -0
- package/package.json +1 -1
- package/src/host/tool-approval.ts +2 -2
- package/src/i18n/en.ts +8 -0
- package/src/i18n/zh.ts +7 -0
|
@@ -17,7 +17,7 @@ export type ApprovalFacts = ApprovalDetail | {
|
|
|
17
17
|
readonly blocked: string;
|
|
18
18
|
};
|
|
19
19
|
export declare const APPROVAL_NOTE_ARG = "approval_note";
|
|
20
|
-
export declare const APPROVAL_NOTE_LIMIT =
|
|
20
|
+
export declare const APPROVAL_NOTE_LIMIT = 40;
|
|
21
21
|
export declare function withApprovalNote(parameters: Record<string, unknown>, options?: {
|
|
22
22
|
readonly required?: boolean | undefined;
|
|
23
23
|
}): Record<string, unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const APPROVAL_NOTE_ARG = 'approval_note';
|
|
2
|
-
export const APPROVAL_NOTE_LIMIT =
|
|
2
|
+
export const APPROVAL_NOTE_LIMIT = 40;
|
|
3
3
|
const NOTE_SCHEMA = {
|
|
4
4
|
type: 'string',
|
|
5
|
-
description: '
|
|
5
|
+
description: '一句话说明你这次想拿它干什么(要点头时显示在审批屏上;40 字以内)。',
|
|
6
6
|
};
|
|
7
7
|
export function withApprovalNote(parameters, options = {}) {
|
|
8
8
|
const properties = parameters['properties'];
|
package/dist/i18n/en.js
CHANGED
|
@@ -130,6 +130,7 @@ export const en = {
|
|
|
130
130
|
'panels.market.moduleRefused': 'This module does not match this workbench, so it cannot be used for now.',
|
|
131
131
|
'panels.market.moduleRefusedDetail': 'Why it cannot be used: {reason}',
|
|
132
132
|
'panels.market.moduleRestartHint': 'restart dsh once to bring it up',
|
|
133
|
+
'panels.market.pendingRestart': 'restart required',
|
|
133
134
|
'panels.market.workbenchName': 'Workbench',
|
|
134
135
|
'panels.market.workbenchLocal': 'This is the copy from your working repository; it does not come from the registry.',
|
|
135
136
|
'panels.market.pluginKeptInUse': 'Files kept for now: {names} still uses it.',
|
|
@@ -239,6 +240,12 @@ export const en = {
|
|
|
239
240
|
'panels.market.add.approveHint': 'These packages want to run install scripts: {packages}',
|
|
240
241
|
'panels.market.add.doneApplied': 'Installed and live.',
|
|
241
242
|
'panels.market.add.doneRestart': 'Installed — restart once to pick it up.',
|
|
243
|
+
'panels.market.add.restartWhy': 'Why this needs a restart: {reason}',
|
|
244
|
+
'panels.market.add.restartWhy.no-hmr': 'this profile only applies changes at startup (no hot reload)',
|
|
245
|
+
'panels.market.add.restartWhy.package-moved': 'an installed package now resolves to another directory, or the change replaced something dsh itself provides',
|
|
246
|
+
'panels.market.add.restartWhy.host-module': 'the change reaches modules dsh itself loaded',
|
|
247
|
+
'panels.market.add.restartWhy.unmanaged-plugin': 'the change reaches a plugin running outside the plugin list',
|
|
248
|
+
'panels.market.add.restartWhy.module-comparison': 'dsh could not compare loaded plugins with their files',
|
|
242
249
|
'panels.market.add.cancelled': 'Cancelled.',
|
|
243
250
|
'panels.market.add.failed': "Didn't work: {reason}",
|
|
244
251
|
'panels.market.add.removed': 'It has been removed.',
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export declare const dictionaries: {
|
|
|
132
132
|
readonly 'panels.market.moduleRefused': "模块版本与工作台不匹配,暂时无法使用";
|
|
133
133
|
readonly 'panels.market.moduleRefusedDetail': "装不上的原因:{reason}";
|
|
134
134
|
readonly 'panels.market.moduleRestartHint': "重启后生效";
|
|
135
|
+
readonly 'panels.market.pendingRestart': "重启后生效";
|
|
135
136
|
readonly 'panels.market.workbenchName': "工作台";
|
|
136
137
|
readonly 'panels.market.workbenchLocal': "这份是本仓正在开发的那一份,不从源上取。";
|
|
137
138
|
readonly 'panels.market.pluginKeptInUse': "文件先留着:{names} 还要用它。";
|
|
@@ -241,6 +242,12 @@ export declare const dictionaries: {
|
|
|
241
242
|
readonly 'panels.market.add.approveHint': "这几个包要跑安装脚本:{packages}";
|
|
242
243
|
readonly 'panels.market.add.doneApplied': "装好了,已经生效。";
|
|
243
244
|
readonly 'panels.market.add.doneRestart': "装好了,重启一次才生效。";
|
|
245
|
+
readonly 'panels.market.add.restartWhy': "为什么这一版要重启:{reason}";
|
|
246
|
+
readonly 'panels.market.add.restartWhy.no-hmr': "这个 profile 只在启动时应用改动(没开热换)";
|
|
247
|
+
readonly 'panels.market.add.restartWhy.package-moved': "某个已经装着的包换到了新的目录,或者这一下换掉了 dsh 自己提供的那份";
|
|
248
|
+
readonly 'panels.market.add.restartWhy.host-module': "这一下动到了 dsh 自己加载的模块";
|
|
249
|
+
readonly 'panels.market.add.restartWhy.unmanaged-plugin': "这一下动到了插件清单之外正在跑的插件";
|
|
250
|
+
readonly 'panels.market.add.restartWhy.module-comparison': "dsh 没能把已加载的插件与盘上的文件对上";
|
|
244
251
|
readonly 'panels.market.add.cancelled': "已取消。";
|
|
245
252
|
readonly 'panels.market.add.failed': "没成功:{reason}";
|
|
246
253
|
readonly 'panels.market.add.removed': "已经移除了。";
|
|
@@ -393,7 +400,7 @@ export declare const dictionaries: {
|
|
|
393
400
|
readonly 'configSync.emptyProviders': "工作台还没有任何模型供应商 —— 去「配置同步」从某个 profile 把 llm- 那几行搬过来,或自己去「模型」里配。";
|
|
394
401
|
readonly 'configSync.failed': "同步没成功,再试一次。";
|
|
395
402
|
};
|
|
396
|
-
en: Record<"time.now" | "time.ago" | "time.minutes" | "time.hours" | "time.days" | "blocker.retry" | "blocker.copy" | "blocker.unknown.title" | "blocker.login.go" | "blocker.login.titleGeneric" | "blocker.login.title" | "blocker.login.manual" | "blocker.login.hint" | "blocker.forbidden.open" | "blocker.forbidden.titleGeneric" | "blocker.forbidden.title" | "blocker.forbidden.hint" | "blocker.timeout.hint" | "blocker.exec.hint" | "blocker.fix.install" | "blocker.fix.update" | "blocker.market.open" | "env.unit.failed" | "env.unit.failedHint" | "env.unit.missingPlugin" | "env.unit.hint" | "env.unit.missingCommands" | "env.unit.missingCommandsHint" | "env.unit.unchecked" | "env.unit.uncheckedHint" | "brand.name" | "toggle.open" | "toggle.collapse" | "project.label" | "workspace.section" | "project.none" | "project.empty" | "project.add" | "project.add.busy" | "project.add.failed" | "project.search.label" | "project.search.placeholder" | "project.search.empty" | "project.group.workspaces" | "project.group.defaultWorkspace" | "project.group.workshop" | "project.rename.row" | "project.rename.current" | "project.rename.title" | "project.rename.description" | "project.rename.field" | "project.rename.placeholder" | "project.rename.hint" | "project.rename.save" | "project.rename.saving" | "project.rename.cancel" | "project.rename.failed" | "session.new" | "session.new.label" | "session.empty" | "session.noProject" | "session.list.label" | "session.copy" | "session.pinned" | "session.actions" | "status.idle" | "status.running" | "status.waitingApproval" | "status.planReview" | "status.waitingAnswer" | "status.compact.approval" | "status.compact.planReview" | "status.compact.answer" | "status.completed" | "status.subagentsRunning.one" | "status.subagentsRunning.other" | "hover.copied" | "time.short.minutes" | "time.short.hours" | "time.short.days" | "time.short.months" | "time.short.years" | "panels.title" | "panels.groupBoardless" | "panels.groupPlugins" | "panels.market.defaultHint" | "panels.market.defaultLabel" | "panels.market.defaultLocked" | "panels.followAll" | "panels.followAllConfirmTitle" | "panels.followAllConfirmDetail" | "panels.followAllConfirmAck" | "panels.followAllConfirmYes" | "panels.followAllConfirmNo" | "panels.enabled" | "panels.disabled" | "panels.choose" | "panels.buildModule" | "panels.failed" | "panels.dragHint" | "panels.unknownStep" | "panels.labelWithHint" | "panels.dep.failed" | "panels.dep.missingPlugin" | "panels.dep.missingCommands" | "panels.dep.unchecked" | "panels.tab.modules" | "panels.tab.market" | "panels.browseMarket" | "panels.noneInstalled" | "panels.noneInstalledHint" | "panels.market.installed" | "panels.market.notActive" | "panels.market.notUsable" | "panels.market.broken" | "panels.market.hasNew" | "panels.market.missing" | "panels.market.unchecked" | "panels.market.checking" | "panels.market.sectionInstalled" | "panels.market.sectionPending" | "panels.market.sectionShared" | "panels.market.sharedUsedBy" | "panels.market.listSeparator" | "panels.market.sharedMissing" | "panels.market.sharedOutdated" | "panels.market.sharedUnsatisfied" | "panels.market.sharedOk" | "panels.market.versionArrow" | "panels.market.lead" | "panels.market.install" | "panels.market.update" | "panels.market.swapSlow" | "panels.market.uninstall" | "panels.market.uninstallLabel" | "panels.market.installing" | "panels.market.updating" | "panels.market.uninstalling" | "panels.market.confirmUninstallTitle" | "panels.market.confirmUninstallDetail" | "panels.market.confirmUninstallAck" | "panels.market.confirmYes" | "panels.market.confirmNo" | "panels.market.failed" | "panels.market.needEnv" | "panels.market.needCommands" | "panels.market.localMark" | "panels.market.localHint" | "panels.market.noSource" | "panels.market.badSource" | "panels.market.empty" | "panels.market.sectionPlugins" | "panels.market.moduleOutdated" | "panels.market.moduleRefused" | "panels.market.moduleRefusedDetail" | "panels.market.moduleRestartHint" | "panels.market.workbenchName" | "panels.market.workbenchLocal" | "panels.market.pluginKeptInUse" | "panels.market.pluginKeptUnsure" | "panels.market.pluginKeptHeld" | "panels.market.pluginKeptUnnamed" | "panels.market.pluginBroken" | "panels.market.restartNeeded" | "panels.market.foot" | "panels.market.recheck" | "panels.market.checkUpdates" | "panels.market.checkedAt" | "panels.market.justNow" | "panels.market.minutesAgo" | "panels.market.hoursAgo" | "panels.market.add.description" | "panels.market.add.specPlaceholder" | "panels.market.add.guideToggle" | "panels.market.add.guideHide" | "panels.market.add.guideIdTitle" | "panels.market.add.guideIdExample" | "panels.market.add.guideIdHint" | "panels.market.add.guideGitTitle" | "panels.market.add.guideGitExample" | "panels.market.add.guideGitHint" | "panels.market.add.guidePathTitle" | "panels.market.add.guidePathExample" | "panels.market.add.guidePathHint" | "panels.market.add.guideExampleLabel" | "panels.market.add.guideFill" | "panels.market.add.guideSafety" | "panels.market.add.registryLegend" | "panels.market.add.registryOfficial" | "panels.market.add.registryMirror" | "panels.market.add.registryWithHost" | "panels.market.add.registryToggle" | "panels.market.add.installVersion" | "panels.market.add.registryDefault" | "panels.market.add.registryCustom" | "panels.market.add.registryCustomPlaceholder" | "panels.market.add.registryCustomHint" | "panels.market.add.registryCustomInvalid" | "panels.market.add.run" | "panels.market.add.edit" | "panels.market.add.changeRegistry" | "panels.market.add.installingTitle" | "panels.market.add.installedTitle" | "panels.market.add.failedTitle" | "panels.market.add.cancelledTitle" | "panels.market.add.failureNetworkHost" | "panels.market.add.problemInvalid" | "panels.market.add.problemInstalled" | "panels.market.add.problemNotFound" | "panels.market.add.problemNotPackage" | "panels.market.add.problemNotBundle" | "panels.market.add.problemNotWorkbenchModule" | "panels.market.add.problemNotModuleOrPlugin" | "panels.market.add.failureNotModuleOrPlugin" | "panels.market.add.installedPlugin" | "panels.market.add.pluginPreview" | "panels.market.add.pluginAlias" | "panels.market.add.problemNetwork" | "panels.market.add.problemUnknown" | "panels.market.add.failureNetwork" | "panels.market.add.failureNotFound" | "panels.market.add.failureNoMatchingVersion" | "panels.market.add.failureDiskFull" | "panels.market.add.failurePermission" | "panels.market.add.failureBuildBlocked" | "panels.market.add.failureIntegrity" | "panels.market.add.failureTimeout" | "panels.market.add.failurePnpmMissing" | "panels.market.add.failureInstalled" | "panels.market.add.failureGeneric" | "panels.market.add.approveTitle" | "panels.market.add.approveCaution" | "panels.market.add.approveRun" | "panels.market.add.restart" | "panels.market.add.tookEffect" | "panels.market.add.details" | "panels.market.add.open" | "panels.market.add.title" | "panels.market.add.intro" | "panels.market.add.specLabel" | "panels.market.add.specHint" | "panels.market.add.exampleTitle" | "panels.market.add.exampleFill" | "panels.market.add.registryLabel" | "panels.market.add.registryProfile" | "panels.market.add.registryPnpm" | "panels.market.add.check" | "panels.market.add.checking" | "panels.market.add.classifying" | "panels.market.add.change" | "panels.market.add.previewTitle" | "panels.market.add.fieldName" | "panels.market.add.fieldVersion" | "panels.market.add.fieldDescription" | "panels.market.add.fieldSource" | "panels.market.add.install" | "panels.market.add.installing" | "panels.market.add.cancel" | "panels.market.add.close" | "panels.market.add.retry" | "panels.market.add.changeSource" | "panels.market.add.approveBuilds" | "panels.market.add.approveHint" | "panels.market.add.doneApplied" | "panels.market.add.doneRestart" | "panels.market.add.cancelled" | "panels.market.add.failed" | "panels.market.add.removed" | "panels.market.add.supplyPending" | "panels.market.add.supplyFailed" | "panels.market.add.notModule" | "panels.market.add.removedRestart" | "panels.market.add.remove" | "panels.market.add.problem.invalidSpec" | "panels.market.add.problem.alreadyInstalled" | "panels.market.add.problem.notFound" | "panels.market.add.problem.notAPackage" | "panels.market.add.problem.notABundle" | "panels.market.add.problem.network" | "panels.market.add.problem.unknown" | "panels.market.add.reason.invalidSpec" | "panels.market.add.reason.incompatible" | "panels.market.add.reason.notBundle" | "panels.market.add.reason.notRemovable" | "panels.market.add.reason.bundleInUse" | "panels.market.add.reason.stopProfile" | "panels.market.add.reason.staleApproval" | "panels.market.add.reason.operationError" | "panels.market.add.reason.buildBlocked" | "panels.market.add.reason.pnpmMissing" | "panels.market.add.reason.noMatchingVersion" | "panels.market.add.reason.diskFull" | "panels.market.add.reason.permission" | "panels.market.add.reason.integrity" | "panels.market.add.reason.timeout" | "panels.market.add.reason.network" | "panels.market.add.reason.notFound" | "panels.market.add.reason.unknown" | "blocker.fix.running" | "blocker.fix.failed" | "blocker.retry.running" | "panels.reading" | "panels.cardBroken" | "panels.cardRetry" | "panels.empty" | "panels.emptyHint" | "env.title" | "env.checking" | "env.installing" | "env.failed" | "env.elapsed" | "env.stepFailed.install" | "env.stepFailed.path" | "env.stepFailed.shell" | "env.bridge.ok" | "env.bridge.short" | "env.bridge.why" | "env.bridge.daemon" | "env.bridge.extension" | "env.bridge.extensionLink" | "env.bridge.profile" | "env.bridge.stale" | "env.bridge.unknown" | "env.fix.title" | "env.fix.why" | "env.fix.whyPath" | "env.fix.whyShell" | "env.fix.step" | "env.fix.stepPath" | "env.fix.stepShell" | "env.fix.permission" | "env.fix.network" | "env.fix.details" | "env.retry" | "env.copyCommand" | "env.copied" | "env.step.opencli" | "env.step.codingPlugin" | "env.step.bridge" | "env.step.warm" | "env.warm.done" | "env.warm.short" | "rightbar.label" | "rightbar.expand" | "rightbar.collapse" | "rightbar.column.label" | "rightbar.column.workbench" | "rightbar.column.dsh" | "rightbar.refresh" | "rightbar.refreshing" | "rightbar.updatedAt" | "rightbar.noProject" | "rightbar.openPlatform" | "coding.notARepo.title" | "error.unknown" | "board.title" | "panel.conversation" | "panels.label" | "configSync.nav" | "configSync.lead" | "configSync.source" | "configSync.sourceBroken" | "configSync.sourceRows" | "configSync.sourceDead" | "configSync.refresh" | "configSync.loading" | "configSync.readHint" | "configSync.tag.new" | "configSync.tag.differs" | "configSync.conflictNote" | "configSync.code.lang" | "configSync.code.copy" | "configSync.code.copied" | "configSync.code.wrap" | "configSync.code.unwrap" | "configSync.code.collapse" | "configSync.code.collapseAria" | "configSync.code.expandAria" | "configSync.code.expand" | "configSync.missing" | "configSync.apply" | "configSync.applyNone" | "configSync.applying" | "configSync.applied" | "configSync.appliedIds" | "configSync.skippedIds" | "configSync.nothing" | "configSync.unreadable" | "configSync.noSource" | "configSync.emptyProviders" | "configSync.failed", string>;
|
|
403
|
+
en: Record<"time.now" | "time.ago" | "time.minutes" | "time.hours" | "time.days" | "blocker.retry" | "blocker.copy" | "blocker.unknown.title" | "blocker.login.go" | "blocker.login.titleGeneric" | "blocker.login.title" | "blocker.login.manual" | "blocker.login.hint" | "blocker.forbidden.open" | "blocker.forbidden.titleGeneric" | "blocker.forbidden.title" | "blocker.forbidden.hint" | "blocker.timeout.hint" | "blocker.exec.hint" | "blocker.fix.install" | "blocker.fix.update" | "blocker.market.open" | "env.unit.failed" | "env.unit.failedHint" | "env.unit.missingPlugin" | "env.unit.hint" | "env.unit.missingCommands" | "env.unit.missingCommandsHint" | "env.unit.unchecked" | "env.unit.uncheckedHint" | "brand.name" | "toggle.open" | "toggle.collapse" | "project.label" | "workspace.section" | "project.none" | "project.empty" | "project.add" | "project.add.busy" | "project.add.failed" | "project.search.label" | "project.search.placeholder" | "project.search.empty" | "project.group.workspaces" | "project.group.defaultWorkspace" | "project.group.workshop" | "project.rename.row" | "project.rename.current" | "project.rename.title" | "project.rename.description" | "project.rename.field" | "project.rename.placeholder" | "project.rename.hint" | "project.rename.save" | "project.rename.saving" | "project.rename.cancel" | "project.rename.failed" | "session.new" | "session.new.label" | "session.empty" | "session.noProject" | "session.list.label" | "session.copy" | "session.pinned" | "session.actions" | "status.idle" | "status.running" | "status.waitingApproval" | "status.planReview" | "status.waitingAnswer" | "status.compact.approval" | "status.compact.planReview" | "status.compact.answer" | "status.completed" | "status.subagentsRunning.one" | "status.subagentsRunning.other" | "hover.copied" | "time.short.minutes" | "time.short.hours" | "time.short.days" | "time.short.months" | "time.short.years" | "panels.title" | "panels.groupBoardless" | "panels.groupPlugins" | "panels.market.defaultHint" | "panels.market.defaultLabel" | "panels.market.defaultLocked" | "panels.followAll" | "panels.followAllConfirmTitle" | "panels.followAllConfirmDetail" | "panels.followAllConfirmAck" | "panels.followAllConfirmYes" | "panels.followAllConfirmNo" | "panels.enabled" | "panels.disabled" | "panels.choose" | "panels.buildModule" | "panels.failed" | "panels.dragHint" | "panels.unknownStep" | "panels.labelWithHint" | "panels.dep.failed" | "panels.dep.missingPlugin" | "panels.dep.missingCommands" | "panels.dep.unchecked" | "panels.tab.modules" | "panels.tab.market" | "panels.browseMarket" | "panels.noneInstalled" | "panels.noneInstalledHint" | "panels.market.installed" | "panels.market.notActive" | "panels.market.notUsable" | "panels.market.broken" | "panels.market.hasNew" | "panels.market.missing" | "panels.market.unchecked" | "panels.market.checking" | "panels.market.sectionInstalled" | "panels.market.sectionPending" | "panels.market.sectionShared" | "panels.market.sharedUsedBy" | "panels.market.listSeparator" | "panels.market.sharedMissing" | "panels.market.sharedOutdated" | "panels.market.sharedUnsatisfied" | "panels.market.sharedOk" | "panels.market.versionArrow" | "panels.market.lead" | "panels.market.install" | "panels.market.update" | "panels.market.swapSlow" | "panels.market.uninstall" | "panels.market.uninstallLabel" | "panels.market.installing" | "panels.market.updating" | "panels.market.uninstalling" | "panels.market.confirmUninstallTitle" | "panels.market.confirmUninstallDetail" | "panels.market.confirmUninstallAck" | "panels.market.confirmYes" | "panels.market.confirmNo" | "panels.market.failed" | "panels.market.needEnv" | "panels.market.needCommands" | "panels.market.localMark" | "panels.market.localHint" | "panels.market.noSource" | "panels.market.badSource" | "panels.market.empty" | "panels.market.sectionPlugins" | "panels.market.moduleOutdated" | "panels.market.moduleRefused" | "panels.market.moduleRefusedDetail" | "panels.market.moduleRestartHint" | "panels.market.pendingRestart" | "panels.market.workbenchName" | "panels.market.workbenchLocal" | "panels.market.pluginKeptInUse" | "panels.market.pluginKeptUnsure" | "panels.market.pluginKeptHeld" | "panels.market.pluginKeptUnnamed" | "panels.market.pluginBroken" | "panels.market.restartNeeded" | "panels.market.foot" | "panels.market.recheck" | "panels.market.checkUpdates" | "panels.market.checkedAt" | "panels.market.justNow" | "panels.market.minutesAgo" | "panels.market.hoursAgo" | "panels.market.add.description" | "panels.market.add.specPlaceholder" | "panels.market.add.guideToggle" | "panels.market.add.guideHide" | "panels.market.add.guideIdTitle" | "panels.market.add.guideIdExample" | "panels.market.add.guideIdHint" | "panels.market.add.guideGitTitle" | "panels.market.add.guideGitExample" | "panels.market.add.guideGitHint" | "panels.market.add.guidePathTitle" | "panels.market.add.guidePathExample" | "panels.market.add.guidePathHint" | "panels.market.add.guideExampleLabel" | "panels.market.add.guideFill" | "panels.market.add.guideSafety" | "panels.market.add.registryLegend" | "panels.market.add.registryOfficial" | "panels.market.add.registryMirror" | "panels.market.add.registryWithHost" | "panels.market.add.registryToggle" | "panels.market.add.installVersion" | "panels.market.add.registryDefault" | "panels.market.add.registryCustom" | "panels.market.add.registryCustomPlaceholder" | "panels.market.add.registryCustomHint" | "panels.market.add.registryCustomInvalid" | "panels.market.add.run" | "panels.market.add.edit" | "panels.market.add.changeRegistry" | "panels.market.add.installingTitle" | "panels.market.add.installedTitle" | "panels.market.add.failedTitle" | "panels.market.add.cancelledTitle" | "panels.market.add.failureNetworkHost" | "panels.market.add.problemInvalid" | "panels.market.add.problemInstalled" | "panels.market.add.problemNotFound" | "panels.market.add.problemNotPackage" | "panels.market.add.problemNotBundle" | "panels.market.add.problemNotWorkbenchModule" | "panels.market.add.problemNotModuleOrPlugin" | "panels.market.add.failureNotModuleOrPlugin" | "panels.market.add.installedPlugin" | "panels.market.add.pluginPreview" | "panels.market.add.pluginAlias" | "panels.market.add.problemNetwork" | "panels.market.add.problemUnknown" | "panels.market.add.failureNetwork" | "panels.market.add.failureNotFound" | "panels.market.add.failureNoMatchingVersion" | "panels.market.add.failureDiskFull" | "panels.market.add.failurePermission" | "panels.market.add.failureBuildBlocked" | "panels.market.add.failureIntegrity" | "panels.market.add.failureTimeout" | "panels.market.add.failurePnpmMissing" | "panels.market.add.failureInstalled" | "panels.market.add.failureGeneric" | "panels.market.add.approveTitle" | "panels.market.add.approveCaution" | "panels.market.add.approveRun" | "panels.market.add.restart" | "panels.market.add.tookEffect" | "panels.market.add.details" | "panels.market.add.open" | "panels.market.add.title" | "panels.market.add.intro" | "panels.market.add.specLabel" | "panels.market.add.specHint" | "panels.market.add.exampleTitle" | "panels.market.add.exampleFill" | "panels.market.add.registryLabel" | "panels.market.add.registryProfile" | "panels.market.add.registryPnpm" | "panels.market.add.check" | "panels.market.add.checking" | "panels.market.add.classifying" | "panels.market.add.change" | "panels.market.add.previewTitle" | "panels.market.add.fieldName" | "panels.market.add.fieldVersion" | "panels.market.add.fieldDescription" | "panels.market.add.fieldSource" | "panels.market.add.install" | "panels.market.add.installing" | "panels.market.add.cancel" | "panels.market.add.close" | "panels.market.add.retry" | "panels.market.add.changeSource" | "panels.market.add.approveBuilds" | "panels.market.add.approveHint" | "panels.market.add.doneApplied" | "panels.market.add.doneRestart" | "panels.market.add.restartWhy" | "panels.market.add.restartWhy.no-hmr" | "panels.market.add.restartWhy.package-moved" | "panels.market.add.restartWhy.host-module" | "panels.market.add.restartWhy.unmanaged-plugin" | "panels.market.add.restartWhy.module-comparison" | "panels.market.add.cancelled" | "panels.market.add.failed" | "panels.market.add.removed" | "panels.market.add.supplyPending" | "panels.market.add.supplyFailed" | "panels.market.add.notModule" | "panels.market.add.removedRestart" | "panels.market.add.remove" | "panels.market.add.problem.invalidSpec" | "panels.market.add.problem.alreadyInstalled" | "panels.market.add.problem.notFound" | "panels.market.add.problem.notAPackage" | "panels.market.add.problem.notABundle" | "panels.market.add.problem.network" | "panels.market.add.problem.unknown" | "panels.market.add.reason.invalidSpec" | "panels.market.add.reason.incompatible" | "panels.market.add.reason.notBundle" | "panels.market.add.reason.notRemovable" | "panels.market.add.reason.bundleInUse" | "panels.market.add.reason.stopProfile" | "panels.market.add.reason.staleApproval" | "panels.market.add.reason.operationError" | "panels.market.add.reason.buildBlocked" | "panels.market.add.reason.pnpmMissing" | "panels.market.add.reason.noMatchingVersion" | "panels.market.add.reason.diskFull" | "panels.market.add.reason.permission" | "panels.market.add.reason.integrity" | "panels.market.add.reason.timeout" | "panels.market.add.reason.network" | "panels.market.add.reason.notFound" | "panels.market.add.reason.unknown" | "blocker.fix.running" | "blocker.fix.failed" | "blocker.retry.running" | "panels.reading" | "panels.cardBroken" | "panels.cardRetry" | "panels.empty" | "panels.emptyHint" | "env.title" | "env.checking" | "env.installing" | "env.failed" | "env.elapsed" | "env.stepFailed.install" | "env.stepFailed.path" | "env.stepFailed.shell" | "env.bridge.ok" | "env.bridge.short" | "env.bridge.why" | "env.bridge.daemon" | "env.bridge.extension" | "env.bridge.extensionLink" | "env.bridge.profile" | "env.bridge.stale" | "env.bridge.unknown" | "env.fix.title" | "env.fix.why" | "env.fix.whyPath" | "env.fix.whyShell" | "env.fix.step" | "env.fix.stepPath" | "env.fix.stepShell" | "env.fix.permission" | "env.fix.network" | "env.fix.details" | "env.retry" | "env.copyCommand" | "env.copied" | "env.step.opencli" | "env.step.codingPlugin" | "env.step.bridge" | "env.step.warm" | "env.warm.done" | "env.warm.short" | "rightbar.label" | "rightbar.expand" | "rightbar.collapse" | "rightbar.column.label" | "rightbar.column.workbench" | "rightbar.column.dsh" | "rightbar.refresh" | "rightbar.refreshing" | "rightbar.updatedAt" | "rightbar.noProject" | "rightbar.openPlatform" | "coding.notARepo.title" | "error.unknown" | "board.title" | "panel.conversation" | "panels.label" | "configSync.nav" | "configSync.lead" | "configSync.source" | "configSync.sourceBroken" | "configSync.sourceRows" | "configSync.sourceDead" | "configSync.refresh" | "configSync.loading" | "configSync.readHint" | "configSync.tag.new" | "configSync.tag.differs" | "configSync.conflictNote" | "configSync.code.lang" | "configSync.code.copy" | "configSync.code.copied" | "configSync.code.wrap" | "configSync.code.unwrap" | "configSync.code.collapse" | "configSync.code.collapseAria" | "configSync.code.expandAria" | "configSync.code.expand" | "configSync.missing" | "configSync.apply" | "configSync.applyNone" | "configSync.applying" | "configSync.applied" | "configSync.appliedIds" | "configSync.skippedIds" | "configSync.nothing" | "configSync.unreadable" | "configSync.noSource" | "configSync.emptyProviders" | "configSync.failed", string>;
|
|
397
404
|
};
|
|
398
405
|
export type { WorkbenchMessages };
|
|
399
406
|
export interface Dictionaries {
|
package/dist/i18n/zh.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export declare const zh: {
|
|
|
130
130
|
readonly 'panels.market.moduleRefused': "模块版本与工作台不匹配,暂时无法使用";
|
|
131
131
|
readonly 'panels.market.moduleRefusedDetail': "装不上的原因:{reason}";
|
|
132
132
|
readonly 'panels.market.moduleRestartHint': "重启后生效";
|
|
133
|
+
readonly 'panels.market.pendingRestart': "重启后生效";
|
|
133
134
|
readonly 'panels.market.workbenchName': "工作台";
|
|
134
135
|
readonly 'panels.market.workbenchLocal': "这份是本仓正在开发的那一份,不从源上取。";
|
|
135
136
|
readonly 'panels.market.pluginKeptInUse': "文件先留着:{names} 还要用它。";
|
|
@@ -239,6 +240,12 @@ export declare const zh: {
|
|
|
239
240
|
readonly 'panels.market.add.approveHint': "这几个包要跑安装脚本:{packages}";
|
|
240
241
|
readonly 'panels.market.add.doneApplied': "装好了,已经生效。";
|
|
241
242
|
readonly 'panels.market.add.doneRestart': "装好了,重启一次才生效。";
|
|
243
|
+
readonly 'panels.market.add.restartWhy': "为什么这一版要重启:{reason}";
|
|
244
|
+
readonly 'panels.market.add.restartWhy.no-hmr': "这个 profile 只在启动时应用改动(没开热换)";
|
|
245
|
+
readonly 'panels.market.add.restartWhy.package-moved': "某个已经装着的包换到了新的目录,或者这一下换掉了 dsh 自己提供的那份";
|
|
246
|
+
readonly 'panels.market.add.restartWhy.host-module': "这一下动到了 dsh 自己加载的模块";
|
|
247
|
+
readonly 'panels.market.add.restartWhy.unmanaged-plugin': "这一下动到了插件清单之外正在跑的插件";
|
|
248
|
+
readonly 'panels.market.add.restartWhy.module-comparison': "dsh 没能把已加载的插件与盘上的文件对上";
|
|
242
249
|
readonly 'panels.market.add.cancelled': "已取消。";
|
|
243
250
|
readonly 'panels.market.add.failed': "没成功:{reason}";
|
|
244
251
|
readonly 'panels.market.add.removed': "已经移除了。";
|
package/dist/i18n/zh.js
CHANGED
|
@@ -130,6 +130,7 @@ export const zh = {
|
|
|
130
130
|
'panels.market.moduleRefused': '模块版本与工作台不匹配,暂时无法使用',
|
|
131
131
|
'panels.market.moduleRefusedDetail': '装不上的原因:{reason}',
|
|
132
132
|
'panels.market.moduleRestartHint': '重启后生效',
|
|
133
|
+
'panels.market.pendingRestart': '重启后生效',
|
|
133
134
|
'panels.market.workbenchName': '工作台',
|
|
134
135
|
'panels.market.workbenchLocal': '这份是本仓正在开发的那一份,不从源上取。',
|
|
135
136
|
'panels.market.pluginKeptInUse': '文件先留着:{names} 还要用它。',
|
|
@@ -239,6 +240,12 @@ export const zh = {
|
|
|
239
240
|
'panels.market.add.approveHint': '这几个包要跑安装脚本:{packages}',
|
|
240
241
|
'panels.market.add.doneApplied': '装好了,已经生效。',
|
|
241
242
|
'panels.market.add.doneRestart': '装好了,重启一次才生效。',
|
|
243
|
+
'panels.market.add.restartWhy': '为什么这一版要重启:{reason}',
|
|
244
|
+
'panels.market.add.restartWhy.no-hmr': '这个 profile 只在启动时应用改动(没开热换)',
|
|
245
|
+
'panels.market.add.restartWhy.package-moved': '某个已经装着的包换到了新的目录,或者这一下换掉了 dsh 自己提供的那份',
|
|
246
|
+
'panels.market.add.restartWhy.host-module': '这一下动到了 dsh 自己加载的模块',
|
|
247
|
+
'panels.market.add.restartWhy.unmanaged-plugin': '这一下动到了插件清单之外正在跑的插件',
|
|
248
|
+
'panels.market.add.restartWhy.module-comparison': 'dsh 没能把已加载的插件与盘上的文件对上',
|
|
242
249
|
'panels.market.add.cancelled': '已取消。',
|
|
243
250
|
'panels.market.add.failed': '没成功:{reason}',
|
|
244
251
|
'panels.market.add.removed': '已经移除了。',
|
package/package.json
CHANGED
|
@@ -18,11 +18,11 @@ export type ApprovalFacts = ApprovalDetail | { readonly blocked: string };
|
|
|
18
18
|
|
|
19
19
|
export const APPROVAL_NOTE_ARG = 'approval_note';
|
|
20
20
|
|
|
21
|
-
export const APPROVAL_NOTE_LIMIT =
|
|
21
|
+
export const APPROVAL_NOTE_LIMIT = 40;
|
|
22
22
|
|
|
23
23
|
const NOTE_SCHEMA: Readonly<Record<string, unknown>> = {
|
|
24
24
|
type: 'string',
|
|
25
|
-
description: '
|
|
25
|
+
description: '一句话说明你这次想拿它干什么(要点头时显示在审批屏上;40 字以内)。',
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export function withApprovalNote(
|
package/src/i18n/en.ts
CHANGED
|
@@ -137,6 +137,7 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
137
137
|
'panels.market.moduleRefused': 'This module does not match this workbench, so it cannot be used for now.',
|
|
138
138
|
'panels.market.moduleRefusedDetail': 'Why it cannot be used: {reason}',
|
|
139
139
|
'panels.market.moduleRestartHint': 'restart dsh once to bring it up',
|
|
140
|
+
'panels.market.pendingRestart': 'restart required',
|
|
140
141
|
'panels.market.workbenchName': 'Workbench',
|
|
141
142
|
'panels.market.workbenchLocal': 'This is the copy from your working repository; it does not come from the registry.',
|
|
142
143
|
'panels.market.pluginKeptInUse': 'Files kept for now: {names} still uses it.',
|
|
@@ -249,6 +250,13 @@ export const en: Record<keyof WorkbenchMessages, string> = {
|
|
|
249
250
|
'panels.market.add.approveHint': 'These packages want to run install scripts: {packages}',
|
|
250
251
|
'panels.market.add.doneApplied': 'Installed and live.',
|
|
251
252
|
'panels.market.add.doneRestart': 'Installed — restart once to pick it up.',
|
|
253
|
+
'panels.market.add.restartWhy': 'Why this needs a restart: {reason}',
|
|
254
|
+
'panels.market.add.restartWhy.no-hmr': 'this profile only applies changes at startup (no hot reload)',
|
|
255
|
+
'panels.market.add.restartWhy.package-moved':
|
|
256
|
+
'an installed package now resolves to another directory, or the change replaced something dsh itself provides',
|
|
257
|
+
'panels.market.add.restartWhy.host-module': 'the change reaches modules dsh itself loaded',
|
|
258
|
+
'panels.market.add.restartWhy.unmanaged-plugin': 'the change reaches a plugin running outside the plugin list',
|
|
259
|
+
'panels.market.add.restartWhy.module-comparison': 'dsh could not compare loaded plugins with their files',
|
|
252
260
|
'panels.market.add.cancelled': 'Cancelled.',
|
|
253
261
|
'panels.market.add.failed': "Didn't work: {reason}",
|
|
254
262
|
'panels.market.add.removed': 'It has been removed.',
|
package/src/i18n/zh.ts
CHANGED
|
@@ -133,6 +133,7 @@ export const zh = {
|
|
|
133
133
|
'panels.market.moduleRefused': '模块版本与工作台不匹配,暂时无法使用',
|
|
134
134
|
'panels.market.moduleRefusedDetail': '装不上的原因:{reason}',
|
|
135
135
|
'panels.market.moduleRestartHint': '重启后生效',
|
|
136
|
+
'panels.market.pendingRestart': '重启后生效',
|
|
136
137
|
'panels.market.workbenchName': '工作台',
|
|
137
138
|
'panels.market.workbenchLocal': '这份是本仓正在开发的那一份,不从源上取。',
|
|
138
139
|
'panels.market.pluginKeptInUse': '文件先留着:{names} 还要用它。',
|
|
@@ -245,6 +246,12 @@ export const zh = {
|
|
|
245
246
|
'panels.market.add.approveHint': '这几个包要跑安装脚本:{packages}',
|
|
246
247
|
'panels.market.add.doneApplied': '装好了,已经生效。',
|
|
247
248
|
'panels.market.add.doneRestart': '装好了,重启一次才生效。',
|
|
249
|
+
'panels.market.add.restartWhy': '为什么这一版要重启:{reason}',
|
|
250
|
+
'panels.market.add.restartWhy.no-hmr': '这个 profile 只在启动时应用改动(没开热换)',
|
|
251
|
+
'panels.market.add.restartWhy.package-moved': '某个已经装着的包换到了新的目录,或者这一下换掉了 dsh 自己提供的那份',
|
|
252
|
+
'panels.market.add.restartWhy.host-module': '这一下动到了 dsh 自己加载的模块',
|
|
253
|
+
'panels.market.add.restartWhy.unmanaged-plugin': '这一下动到了插件清单之外正在跑的插件',
|
|
254
|
+
'panels.market.add.restartWhy.module-comparison': 'dsh 没能把已加载的插件与盘上的文件对上',
|
|
248
255
|
'panels.market.add.cancelled': '已取消。',
|
|
249
256
|
'panels.market.add.failed': '没成功:{reason}',
|
|
250
257
|
'panels.market.add.removed': '已经移除了。',
|