@dsh-workbench/core 0.2.9 → 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.
@@ -2056,7 +2056,7 @@ function resolvePluginSource(source, env, options = {}) {
2056
2056
  var APPROVAL_NOTE_ARG = "approval_note";
2057
2057
  var NOTE_SCHEMA = {
2058
2058
  type: "string",
2059
- description: "一句话说明你这次想拿它干什么(要点头的那几通会显示在审批屏上)。"
2059
+ description: "一句话说明你这次想拿它干什么(要点头时显示在审批屏上;40 字以内)。"
2060
2060
  };
2061
2061
  function withApprovalNote(parameters, options = {}) {
2062
2062
  const properties = parameters["properties"];
@@ -2080,7 +2080,7 @@ function approvalNoteOf(call) {
2080
2080
  if (typeof value !== "string") return void 0;
2081
2081
  const line = value.replace(/\s+/g, " ").trim();
2082
2082
  if (line === "") return void 0;
2083
- return line.length > 160 ? `${line.slice(0, 160)}…` : line;
2083
+ return line.length > 40 ? `${line.slice(0, 40)}…` : line;
2084
2084
  }
2085
2085
  function messageOf$1(error) {
2086
2086
  return error instanceof Error ? error.message : String(error);
@@ -3029,11 +3029,11 @@ var panelsApproval = (call) => {
3029
3029
  }
3030
3030
  const target = workbenchModule(id);
3031
3031
  return askOf(`workbench_diy ${action ?? "(unknown action)"} installs a module built in the workshop and opens it on this project's panel`, {
3032
- en: `it installs ${target.en} and shows it on this project's panel. Allow?`,
3033
- zh: `会安装${target.zh},并显示在当前项目的面板上,允许吗?`
3032
+ en: `it installs ${target.en} and opens it on this project's panel. Allow?`,
3033
+ zh: `会安装${target.zh},并上到当前项目的面板,允许吗?`
3034
3034
  }, {
3035
- en: `The agent wants to install ${target.en} built in the DIY workshop and show it on this project's panel. Allow?`,
3036
- zh: `agent 想安装${target.zh},并显示在当前项目的面板上,允许吗?`
3035
+ en: `The agent wants to install ${target.en} and open it on this project's panel. Allow?`,
3036
+ zh: `agent 想安装${target.zh},并上到当前项目的面板,允许吗?`
3037
3037
  });
3038
3038
  }
3039
3039
  if (call.name !== "workbench_panels") return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-workbench/core",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "个人工作台:Agent 工作台外壳(左栏 + 常驻对话 + 自研右侧数据面板)。",
5
5
  "type": "module",
6
6
  "icon": "./icon.svg",
@@ -87,7 +87,7 @@
87
87
  "access": "public"
88
88
  },
89
89
  "dependencies": {
90
- "@dsh-workbench/shared": "0.2.9"
90
+ "@dsh-workbench/shared": "0.2.10"
91
91
  },
92
92
  "scripts": {
93
93
  "build": "node scripts/build.mjs && node scripts/build-types.mjs",