dsh-workbench-tasks 5.4.0 → 5.5.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/lib/client.js CHANGED
@@ -5981,1519 +5981,1590 @@ var require_highlight = __commonJS({
5981
5981
  }
5982
5982
  });
5983
5983
 
5984
- // packages/addons/lib/action-schema-style.cjs
5985
- var require_action_schema_style = __commonJS({
5986
- "packages/addons/lib/action-schema-style.cjs"(exports2, module2) {
5987
- "use strict";
5988
- module2.exports = function(PREFIX, DOMAIN) {
5989
- var P = PREFIX + "-as";
5990
- var hairline = "1px solid color-mix(in oklab,currentColor 8%,transparent)";
5991
- var CSS = [
5992
- "." + P + "{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;font-size:13px;color:inherit}",
5993
- "." + P + "-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
5994
- "." + P + "-title{font-size:15px;font-weight:660;margin:0}",
5995
- "." + P + "-badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:999px;padding:1px 8px;font-size:11px;color:var(--dsw-alias-label-secondary,currentColor);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}",
5996
- "." + P + "-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px}",
5997
- "." + P + "-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
5998
- "." + P + "-search{position:relative;flex:1 1 220px;min-width:0;display:flex;align-items:center}",
5999
- "." + P + "-search input{width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 10px 6px 30px}",
6000
- "." + P + "-search input:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
6001
- "." + P + "-search .wbi-svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--dsw-alias-label-tertiary,inherit)}",
6002
- "." + P + " select{border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 8px;max-width:100%}",
6003
- "." + P + " select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
6004
- "." + P + "-list{display:flex;flex-direction:column;gap:8px}",
6005
- "." + P + "-card{border:1px solid var(--wb-border,#e3e5e9);border-radius:10px;padding:10px 12px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));display:flex;flex-direction:column;gap:8px;min-width:0}",
6006
- "." + P + "-cardhead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}",
6007
- "." + P + "-cardmeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;min-height:24px}",
6008
- "." + P + "-cardhead code{font-weight:640;overflow-wrap:anywhere;min-width:0}",
6009
- "." + P + "-hintline{margin:0;color:var(--dsw-alias-label-tertiary,inherit);font-size:11.5px;line-height:1.5}",
6010
- "." + P + "-origins{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:0}",
6011
- "." + P + "-origins-label{font-size:11px;color:var(--wb-muted);white-space:nowrap}",
6012
- "." + P + "-origin{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--wb-muted);cursor:pointer;user-select:none}",
6013
- // 该 action 本身不支持的来源:整项置灰、不可点,示意「不是没开,是开不了」。
6014
- "." + P + "-origin-off{opacity:.55;cursor:not-allowed}",
6015
- "." + P + "-origin input[type=checkbox]{width:13px;height:13px;margin:0;accent-color:var(--wb-accent);cursor:inherit}",
6016
- "." + P + "-origin input[type=checkbox]:focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}",
6017
- "." + P + "-locked{border-color:var(--wb-warn,#b7791f);color:var(--wb-warn,#b7791f)}",
6018
- "." + P + "-desc{margin:0;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55;font-size:12.5px;overflow-wrap:anywhere}",
6019
- // 搜索命中:用品牌色透明度叠加而不是写死浅色,深浅主题都可读;继承文字颜色、不覆盖 ::selection。
6020
- "." + P + " mark." + P + "-hit{background:color-mix(in oklab,var(--dsw-alias-brand-primary,#4f6ef7) 22%,transparent);color:inherit;border-radius:2px;padding:0;font:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}",
6021
- "." + P + "-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}",
6022
- "." + P + "-table th{text-align:left;font-weight:620;font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:var(--dsw-alias-label-tertiary,inherit);padding:4px 8px 4px 0;white-space:nowrap}",
6023
- "." + P + "-table td{padding:4px 8px 4px 0;vertical-align:top;border-top:" + hairline + ";line-height:1.5;overflow-wrap:anywhere}",
6024
- "." + P + "-req{color:var(--dsw-alias-state-error-primary,#d9534f);font-weight:620}",
6025
- "." + P + "-opt{color:var(--dsw-alias-label-tertiary,inherit)}",
6026
- "." + P + "-none{color:var(--dsw-alias-label-tertiary,inherit);font-size:12px}",
6027
- "." + P + "-example{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}",
6028
- "." + P + "-examplehead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}",
6029
- "." + P + "-pre{margin:0;padding:8px 10px;border-radius:8px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.5;overflow:auto;max-height:280px;white-space:pre-wrap;word-break:break-word}",
6030
- "." + P + "-copy{border:1px solid var(--wb-border,#e3e5e9);border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:11.5px;padding:2px 8px;cursor:pointer}",
6031
- "." + P + "-copy:hover{background:var(--dsw-alias-interactive-bg-hover,color-mix(in oklab,currentColor 5%,transparent))}",
6032
- "." + P + "-copy:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}",
6033
- "." + P + " details>summary{cursor:pointer;font-size:11.5px;color:var(--dsw-alias-label-secondary,inherit);width:max-content}",
6034
- "." + P + " details>summary:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}",
6035
- // 参数折叠面板:折叠时只留一行「参数 · 必填 n」,展开后与表格之间留一点气口。
6036
- "." + P + "-params{min-width:0}",
6037
- "." + P + "-params>summary{user-select:none;max-width:100%}",
6038
- "." + P + "-params[open]>summary{margin-bottom:6px}",
6039
- "." + P + "-empty{padding:24px;text-align:center;border:1px dashed var(--wb-border,#e3e5e9);border-radius:10px;color:var(--dsw-alias-label-tertiary,inherit)}",
6040
- "." + P + "-error{padding:12px;border:1px solid var(--dsw-alias-state-error-primary,#d9534f);border-radius:10px;color:var(--dsw-alias-state-error-primary,#d9534f);display:flex;gap:10px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}",
6041
- "." + P + "-toast{position:sticky;bottom:8px;align-self:flex-start;border-radius:999px;padding:3px 10px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);font-size:11.5px;max-width:100%}",
6042
- // 窄屏:五列参数表压成一列会丢失列名、且 table 布局按最小内容宽度撑破容器,
6043
- // 这里整体改成块级网格:每行 = 名称 / 类型 / 必填 + 约束行 + 说明行,行间用细线分隔。
6044
- "@media(max-width:760px){." + P + "-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}." + P + "-search{grid-column:1/-1}." + P + "-toolbar>label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}." + P + "-toolbar select{width:100%;min-width:0}." + P + "-cardhead{grid-template-columns:minmax(0,1fr);row-gap:6px}." + P + "-origins{justify-content:flex-start}." + P + "-table{display:block}." + P + "-table thead{display:none}." + P + "-table tbody{display:block}." + P + '-table tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"name type need" "extra extra extra" "desc desc desc";column-gap:8px;padding:9px 0;border-top:' + hairline + "}." + P + "-table tr:first-child{border-top:0;padding-top:2px}." + P + "-table tr:last-child{padding-bottom:2px}." + P + "-table td{display:block;border:0;padding:0;min-width:0}." + P + "-table td:empty{display:none}." + P + "-pname{grid-area:name;font-weight:640}." + P + "-ptype{grid-area:type;justify-self:start;align-self:center;color:var(--dsw-alias-label-tertiary,inherit)}." + P + "-pneed{grid-area:need;justify-self:end;align-self:center;font-size:11px;line-height:1.6;white-space:nowrap}." + P + "-pextra{grid-area:extra;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}." + P + "-pdesc{grid-area:desc;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}}",
6045
- // 中等宽度(521–760px)三个筛选项正好排成一行,避免第三项独占一行显得参差。
6046
- "@media(min-width:521px) and (max-width:760px){." + P + "-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}",
6047
- "@media(max-width:420px){." + P + "-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}." + P + "-card{padding:10px}." + P + "-table tr{padding:8px 0}}"
6048
- ].join("\n");
6049
- return function injectCss() {
6050
- if (typeof document === "undefined") return;
6051
- var id = "wb-addon-" + DOMAIN + "-actions-css";
6052
- var old = document.getElementById(id);
6053
- if (old) {
6054
- old.textContent = CSS;
6055
- return;
6056
- }
6057
- var style = document.createElement("style");
6058
- style.id = id;
6059
- style.setAttribute("data-wb-addon", "wb-addon-" + DOMAIN);
6060
- style.textContent = CSS;
6061
- document.head.appendChild(style);
6062
- };
6063
- };
5984
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
5985
+ var toKebabCase;
5986
+ var init_toKebabCase = __esm({
5987
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs"() {
5988
+ toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
6064
5989
  }
6065
5990
  });
6066
5991
 
6067
- // packages/addons/lib/action-schema-view.cjs
6068
- var require_action_schema_view = __commonJS({
6069
- "packages/addons/lib/action-schema-view.cjs"(exports2, module2) {
6070
- "use strict";
6071
- var React = require("react");
6072
- var createHighlight = require_highlight()(React);
6073
- var h = React.createElement;
6074
- var COPY = {
6075
- zh: {
6076
- title: "Action",
6077
- hint: "\u8FD0\u884C\u65F6\u6CE8\u518C \xB7 \u53EA\u8BFB",
6078
- switchHint: "\u5141\u8BB8\u6765\u6E90\u843D\u672C\u673A\u3001\u5373\u6539\u5373\u751F\u6548\uFF1A\u52FE\u4E0A\u7684\u6765\u6E90\u624D\u80FD\u8C03\u7528\u8BE5 action\uFF0C\u5176\u4F59\u4F1A\u88AB ACTION_ORIGIN_DENIED \u62E6\u4E0B\u3002",
6079
- hostHint: "\u5BBF\u4E3B action \u7684\u5141\u8BB8\u6765\u6E90\uFF1B\u6807\u300C\u6765\u6E90\u56FA\u5B9A\u300D\u7684\u4E0D\u53EF\u4FEE\u6539\u3002",
6080
- originsLabel: "\u5141\u8BB8\u6765\u6E90",
6081
- originUi: "\u754C\u9762",
6082
- originPlugin: "\u63D2\u4EF6",
6083
- originAgent: "agent",
6084
- originSync: "\u540C\u6B65",
6085
- originsSaving: "\u4FDD\u5B58\u4E2D\u2026",
6086
- originsToast: "\u5DF2\u66F4\u65B0\u5141\u8BB8\u6765\u6E90",
6087
- originsFail: "\u66F4\u65B0\u5141\u8BB8\u6765\u6E90\u5931\u8D25",
6088
- originsEmpty: "\u81F3\u5C11\u8981\u4FDD\u7559\u4E00\u4E2A\u6765\u6E90",
6089
- originsUnsupported: "\u8BE5 action \u672C\u8EAB\u4E0D\u652F\u6301\u8FD9\u4E2A\u6765\u6E90",
6090
- originsPinned: "\u6765\u6E90\u56FA\u5B9A",
6091
- originsPinnedHint: "\u8BE5 action \u7684\u5141\u8BB8\u6765\u6E90\u88AB\u56FA\u5B9A\uFF08\u5B89\u5168\u7EA6\u675F\uFF09\uFF0C\u4E0D\u80FD\u4FEE\u6539",
6092
- domain: "\u57DF",
6093
- versionLabel: "\u7248\u672C",
6094
- shell: "\u5BBF\u4E3B",
6095
- count: function(shown, total) {
6096
- return shown + " / " + total + " \u4E2A action";
6097
- },
6098
- search: "\u641C\u7D22\u540D\u79F0\u3001\u63CF\u8FF0\u3001\u53C2\u6570\uFF08\u547D\u4E2D\u5904\u9AD8\u4EAE\uFF09",
6099
- filterReq: "\u5FC5\u586B\u7B5B\u9009",
6100
- all: "\u5168\u90E8",
6101
- onlyRequired: "\u542B\u5FC5\u586B\u9879",
6102
- onlyOptional: "\u65E0\u5FC5\u586B\u9879",
6103
- filterType: "\u53C2\u6570\u7C7B\u578B",
6104
- allTypes: "\u5168\u90E8\u7C7B\u578B",
6105
- filterOrigin: "\u5141\u8BB8\u6765\u6E90",
6106
- allOrigins: "\u5168\u90E8\u6765\u6E90",
6107
- colName: "\u53C2\u6570",
6108
- colType: "\u7C7B\u578B",
6109
- colReq: "\u5FC5\u586B",
6110
- colExtra: "\u9ED8\u8BA4 / \u679A\u4E3E / \u7EA6\u675F",
6111
- colDesc: "\u8BF4\u660E",
6112
- required: "\u5FC5\u586B",
6113
- optional: "\u53EF\u9009",
6114
- noParams: "\u65E0\u53C2\u6570",
6115
- paramCount: function(n) {
6116
- return n + " \u4E2A\u53C2\u6570";
6117
- },
6118
- params: "\u53C2\u6570",
6119
- requiredCount: function(n) {
6120
- return "\u5FC5\u586B " + n;
6121
- },
6122
- examples: "\u793A\u4F8B",
6123
- noExamples: "\u65E0\u793A\u4F8B",
6124
- copy: "\u590D\u5236",
6125
- copied: "\u5DF2\u590D\u5236",
6126
- raw: "\u539F\u59CB JSON Schema",
6127
- loading: "\u8F7D\u5165\u4E2D\u2026",
6128
- loadFail: "\u8BFB\u53D6 action schema \u5931\u8D25",
6129
- retry: "\u91CD\u8BD5",
6130
- empty: "\u6CA1\u6709\u5339\u914D\u7684 action",
6131
- emptyRegistry: "\u8BE5\u57DF\u6CA1\u6709\u6CE8\u518C action",
6132
- envelope: "\u9ED8\u8BA4",
6133
- enumLabel: "\u679A\u4E3E",
6134
- range: "\u8303\u56F4",
6135
- length: "\u957F\u5EA6",
6136
- pattern: "\u6B63\u5219",
6137
- format: "\u683C\u5F0F",
6138
- items: "\u5143\u7D20\u6570"
6139
- },
6140
- en: {
6141
- title: "Actions",
6142
- hint: "runtime registry \xB7 read-only",
6143
- switchHint: "Allowed origins are stored locally and apply immediately: only checked origins may call the action; others get ACTION_ORIGIN_DENIED.",
6144
- hostHint: "Allowed origins for host actions; items marked pinned cannot be changed.",
6145
- originsLabel: "Origins",
6146
- originUi: "UI",
6147
- originPlugin: "Plugin",
6148
- originAgent: "Agent",
6149
- originSync: "Sync",
6150
- originsSaving: "Saving\u2026",
6151
- originsToast: "Allowed origins updated",
6152
- originsFail: "Failed to update allowed origins",
6153
- originsEmpty: "Keep at least one origin",
6154
- originsUnsupported: "This action does not support this origin",
6155
- originsPinned: "Pinned",
6156
- originsPinnedHint: "Allowed origins are pinned for this action (security constraint) and cannot be changed",
6157
- originsDefaultOn: "Allowed by default",
6158
- originsDefaultOff: "Off by default, can be enabled",
6159
- domain: "Domain",
6160
- versionLabel: "Version",
6161
- shell: "Host",
6162
- count: function(shown, total) {
6163
- return shown + " / " + total + " actions";
6164
- },
6165
- search: "Search name, description, params (matches highlighted)",
6166
- filterReq: "Required",
6167
- all: "All",
6168
- onlyRequired: "Has required",
6169
- onlyOptional: "No required",
6170
- filterType: "Param type",
6171
- allTypes: "All types",
6172
- filterOrigin: "Origins",
6173
- allOrigins: "All origins",
6174
- colName: "Param",
6175
- colType: "Type",
6176
- colReq: "Required",
6177
- colExtra: "Default / enum / constraints",
6178
- colDesc: "Description",
6179
- required: "required",
6180
- optional: "optional",
6181
- noParams: "No parameters",
6182
- paramCount: function(n) {
6183
- return n + " params";
6184
- },
6185
- params: "Parameters",
6186
- requiredCount: function(n) {
6187
- return n + " required";
6188
- },
6189
- examples: "Examples",
6190
- noExamples: "No examples",
6191
- copy: "Copy",
6192
- copied: "Copied",
6193
- raw: "Raw JSON Schema",
6194
- loading: "Loading\u2026",
6195
- loadFail: "Failed to read action schema",
6196
- retry: "Retry",
6197
- empty: "No matching action",
6198
- emptyRegistry: "This domain has no registered action",
6199
- envelope: "Default",
6200
- enumLabel: "Enum",
6201
- range: "Range",
6202
- length: "Length",
6203
- pattern: "Pattern",
6204
- format: "Format",
6205
- items: "Items"
5992
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
5993
+ function toLucideIconData(iconName, iconNode, aliases = []) {
5994
+ if (iconNode == null) {
5995
+ throw new Error("[lucide]: iconNode is required when icon name is used");
5996
+ }
5997
+ return {
5998
+ name: toKebabCase(iconName),
5999
+ size: 24,
6000
+ node: iconNode,
6001
+ ...aliases.length > 0 ? { aliases } : {}
6002
+ };
6003
+ }
6004
+ var init_toLucideIconData = __esm({
6005
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs"() {
6006
+ init_toKebabCase();
6007
+ }
6008
+ });
6009
+
6010
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
6011
+ var toCamelCase;
6012
+ var init_toCamelCase = __esm({
6013
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs"() {
6014
+ toCamelCase = (string) => {
6015
+ let out = "";
6016
+ let upperNext = false;
6017
+ for (const ch of string) {
6018
+ if (ch === "-" || ch === "_" || ch <= " ") {
6019
+ upperNext = out.length > 0;
6020
+ continue;
6021
+ }
6022
+ if (out.length === 0) {
6023
+ out += ch.toLowerCase();
6024
+ } else {
6025
+ out += upperNext ? ch.toUpperCase() : ch;
6026
+ }
6027
+ upperNext = false;
6206
6028
  }
6029
+ return out;
6207
6030
  };
6208
- function typeLabel(schema) {
6209
- if (!schema || typeof schema !== "object") return "";
6210
- if (Array.isArray(schema.type)) return schema.type.join(" | ");
6211
- if (typeof schema.type === "string") {
6212
- if (schema.type === "array" && schema.items) {
6213
- var inner = typeLabel(schema.items);
6214
- return inner ? inner + "[]" : "array";
6215
- }
6216
- return schema.type;
6217
- }
6218
- if (Array.isArray(schema.oneOf)) return schema.oneOf.map(typeLabel).filter(Boolean).join(" | ");
6219
- if (Array.isArray(schema.anyOf)) return schema.anyOf.map(typeLabel).filter(Boolean).join(" | ");
6220
- return "";
6221
- }
6222
- function typeNames(schema) {
6223
- var label = typeLabel(schema);
6224
- if (!label) return [];
6225
- return label.split("|").map(function(x) {
6226
- return x.trim().replace(/\[\]$/, "");
6227
- }).filter(Boolean);
6228
- }
6229
- function scalar(value) {
6230
- if (typeof value === "string") return JSON.stringify(value);
6231
- return String(value);
6232
- }
6233
- function extraText(schema, t) {
6234
- if (!schema || typeof schema !== "object") return "";
6235
- var parts = [];
6236
- if (Object.prototype.hasOwnProperty.call(schema, "default")) {
6237
- parts.push(t.envelope + " " + scalar(schema.default));
6238
- }
6239
- if (Array.isArray(schema.enum)) {
6240
- parts.push(t.enumLabel + " " + schema.enum.map(scalar).join(" / "));
6241
- }
6242
- if (typeof schema.minimum === "number" || typeof schema.maximum === "number") {
6243
- var lo = typeof schema.minimum === "number" ? schema.minimum : null;
6244
- var hi = typeof schema.maximum === "number" ? schema.maximum : null;
6245
- if (lo !== null && hi !== null) parts.push(t.range + " \u2265" + lo + " \u4E14 \u2264" + hi);
6246
- else if (lo !== null) parts.push(t.range + " \u2265" + lo);
6247
- else parts.push(t.range + " \u2264" + hi);
6248
- }
6249
- if (typeof schema.minLength === "number" || typeof schema.maxLength === "number") {
6250
- parts.push(t.length + " " + (schema.minLength ?? 0) + "\u2013" + (schema.maxLength ?? "\u221E"));
6251
- }
6252
- if (typeof schema.minItems === "number" || typeof schema.maxItems === "number") {
6253
- parts.push(t.items + " " + (schema.minItems ?? 0) + "\u2013" + (schema.maxItems ?? "\u221E"));
6254
- }
6255
- if (typeof schema.pattern === "string") parts.push(t.pattern + " " + schema.pattern);
6256
- if (typeof schema.format === "string") parts.push(t.format + " " + schema.format);
6257
- return parts.join(" \xB7 ");
6258
- }
6259
- function paramRows(action) {
6260
- var input = action && action.input && typeof action.input === "object" ? action.input : {};
6261
- var props = input.properties && typeof input.properties === "object" ? input.properties : {};
6262
- var required = Array.isArray(input.required) ? input.required : [];
6263
- return Object.keys(props).map(function(key) {
6264
- var schema = props[key] && typeof props[key] === "object" ? props[key] : {};
6265
- return {
6266
- name: key,
6267
- schema,
6268
- type: typeLabel(schema),
6269
- types: typeNames(schema),
6270
- required: required.indexOf(key) >= 0,
6271
- description: typeof schema.description === "string" ? schema.description : ""
6272
- };
6273
- });
6031
+ }
6032
+ });
6033
+
6034
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
6035
+ var toPascalCase;
6036
+ var init_toPascalCase = __esm({
6037
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs"() {
6038
+ init_toCamelCase();
6039
+ toPascalCase = (string) => {
6040
+ const camelCase = toCamelCase(string);
6041
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
6042
+ };
6043
+ }
6044
+ });
6045
+
6046
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
6047
+ var mergeClasses;
6048
+ var init_mergeClasses = __esm({
6049
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs"() {
6050
+ mergeClasses = (...classes) => classes.filter((className, index, array) => {
6051
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
6052
+ }).join(" ").trim();
6053
+ }
6054
+ });
6055
+
6056
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
6057
+ var defaultAttributes;
6058
+ var init_defaultAttributes = __esm({
6059
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs"() {
6060
+ defaultAttributes = {
6061
+ xmlns: "http://www.w3.org/2000/svg",
6062
+ width: 24,
6063
+ height: 24,
6064
+ viewBox: "0 0 24 24",
6065
+ fill: "none",
6066
+ stroke: "currentColor",
6067
+ "stroke-width": 2,
6068
+ "stroke-linecap": "round",
6069
+ "stroke-linejoin": "round"
6070
+ };
6071
+ }
6072
+ });
6073
+
6074
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
6075
+ function isDefined(value) {
6076
+ return value !== null && value !== void 0;
6077
+ }
6078
+ function buildLucideIconNode(icon, params = {}) {
6079
+ const attributeNames = params.attributeNames ?? {};
6080
+ const getAttributeName = (attributeName) => attributeNames[attributeName] ?? attributeName;
6081
+ const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes["width"];
6082
+ const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes["height"];
6083
+ const aliasClassNames = icon.aliases?.filter((alias) => typeof alias === "string" && alias.trim() !== "").map((alias) => `lucide-${alias}`) ?? [];
6084
+ const iconClassNames = [...icon.name ? [`lucide-${icon.name}`] : [], ...aliasClassNames];
6085
+ const classNamesFromClassName = params.className?.split(" ").filter(Boolean) ?? [];
6086
+ const className = params.includeDefaultClasses === false ? mergeClasses(...classNamesFromClassName) : mergeClasses("lucide", ...iconClassNames, ...classNamesFromClassName);
6087
+ const calculatedStrokeWidth = params.absoluteStrokeWidth ? Number(params.strokeWidth ?? defaultAttributes["stroke-width"]) * Number(icon.size ?? icon.width ?? defaultAttributes["width"]) / Number(params.size ?? params.width ?? defaultAttributes["width"]) : params.strokeWidth ?? defaultAttributes["stroke-width"];
6088
+ const attributes = {
6089
+ ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {
6090
+ attrs[getAttributeName(attrName)] = value;
6091
+ return attrs;
6092
+ }, {}),
6093
+ ..."color" in params && params.color && {
6094
+ [getAttributeName("stroke")]: params.color
6095
+ },
6096
+ ..."size" in params && isDefined(params.size) && {
6097
+ [getAttributeName("width")]: params.size,
6098
+ [getAttributeName("height")]: params.size
6099
+ },
6100
+ ..."width" in params && isDefined(params.width) && {
6101
+ [getAttributeName("width")]: params.width
6102
+ },
6103
+ ..."height" in params && isDefined(params.height) && {
6104
+ [getAttributeName("height")]: params.height
6105
+ },
6106
+ [getAttributeName("stroke-width")]: calculatedStrokeWidth,
6107
+ ...className && {
6108
+ [getAttributeName("class")]: className
6109
+ },
6110
+ [getAttributeName("viewBox")]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
6111
+ ...params.hasA11yProp === false ? {
6112
+ [getAttributeName("aria-hidden")]: "true"
6113
+ } : {},
6114
+ ..."attributes" in params && params.attributes
6115
+ };
6116
+ return [
6117
+ "svg",
6118
+ attributes,
6119
+ icon.node.map((child) => {
6120
+ const [name, attrs, children] = child;
6121
+ const nextAttrs = params.nonScalingStroke ? { [getAttributeName("vector-effect")]: "non-scaling-stroke", ...attrs } : attrs;
6122
+ return children ? [name, nextAttrs, children] : [name, nextAttrs];
6123
+ })
6124
+ ];
6125
+ }
6126
+ var init_buildLucideIconNode = __esm({
6127
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs"() {
6128
+ init_defaultAttributes();
6129
+ init_mergeClasses();
6130
+ }
6131
+ });
6132
+
6133
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
6134
+ function buildLucideIconForReact(icon, params = {}) {
6135
+ return buildLucideIconNode(icon, {
6136
+ ...params,
6137
+ attributeNames: {
6138
+ ...params.attributeNames,
6139
+ class: "className",
6140
+ "stroke-width": "strokeWidth",
6141
+ "stroke-linecap": "strokeLinecap",
6142
+ "stroke-linejoin": "strokeLinejoin",
6143
+ "vector-effect": "vectorEffect"
6274
6144
  }
6275
- module2.exports = function createActionSchemaView(options) {
6276
- var raw = String(options.domain || "");
6277
- var SOURCE = options.source === "actions.list" ? "actions.list" : "actionSchema";
6278
- var DOMAIN = SOURCE === "actions.list" ? raw : raw.indexOf("wb-addon-") === 0 ? raw : "wb-addon-" + raw;
6279
- var LIST_DOMAIN = options.listDomain ? String(options.listDomain) : DOMAIN;
6280
- var prefix = options.prefix;
6281
- var P = prefix + "-as";
6282
- var Icon2 = options.Icon || null;
6283
- var injectCss = require_action_schema_style()(prefix, DOMAIN);
6284
- var Highlight = createHighlight(P);
6285
- function icon(name, size) {
6286
- return Icon2 ? h(Icon2, { name, size: size || 14 }) : null;
6287
- }
6288
- function plainCopy(text) {
6289
- if (typeof document === "undefined") return;
6290
- var area = document.createElement("textarea");
6291
- area.value = text;
6292
- area.setAttribute("readonly", "readonly");
6293
- area.style.position = "fixed";
6294
- area.style.opacity = "0";
6295
- document.body.appendChild(area);
6296
- area.select();
6297
- try {
6298
- document.execCommand("copy");
6299
- } catch (e) {
6145
+ });
6146
+ }
6147
+ var init_buildLucideIconForReact = __esm({
6148
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs"() {
6149
+ init_buildLucideIconNode();
6150
+ }
6151
+ });
6152
+
6153
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
6154
+ var hasA11yProp;
6155
+ var init_hasA11yProp = __esm({
6156
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs"() {
6157
+ hasA11yProp = (props) => {
6158
+ for (const prop in props) {
6159
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
6160
+ return true;
6300
6161
  }
6301
- document.body.removeChild(area);
6302
6162
  }
6303
- function ActionSchemaView(props) {
6304
- var lang = props.lang === "en" ? "en" : "zh";
6305
- var t = COPY[lang];
6306
- var api = props.api;
6307
- var snapState = React.useState(null);
6308
- var snap = snapState[0], setSnap = snapState[1];
6309
- var errState = React.useState("");
6310
- var err = errState[0], setErr = errState[1];
6311
- var loadingState = React.useState(true);
6312
- var loading = loadingState[0], setLoading = loadingState[1];
6313
- var reloadState = React.useState(0);
6314
- var reload = reloadState[0], setReload = reloadState[1];
6315
- var queryState = React.useState("");
6316
- var query = queryState[0], setQuery = queryState[1];
6317
- var reqState = React.useState("all");
6318
- var reqMode = reqState[0], setReqMode = reqState[1];
6319
- var typeState = React.useState("");
6320
- var typePick = typeState[0], setTypePick = typeState[1];
6321
- var originFilterState = React.useState("");
6322
- var originPick = originFilterState[0], setOriginPick = originFilterState[1];
6323
- var toastState = React.useState("");
6324
- var toast = toastState[0], setToast = toastState[1];
6325
- var savingState = React.useState("");
6326
- var saving = savingState[0], setSaving = savingState[1];
6327
- var foldsState = React.useState({});
6328
- var folds = foldsState[0], setFolds = foldsState[1];
6329
- React.useEffect(function() {
6330
- injectCss();
6331
- }, []);
6332
- React.useEffect(function() {
6333
- var alive = true;
6334
- setLoading(true);
6335
- setErr("");
6336
- var pending;
6337
- var actionName = SOURCE === "actions.list" ? "actions.list" : DOMAIN.replace(/^wb-addon-/, "") + ".actionSchema";
6338
- var callArgs = SOURCE === "actions.list" ? { detail: true, domain: LIST_DOMAIN } : void 0;
6339
- if (api && typeof api.call === "function") {
6340
- pending = Promise.resolve(api.call(actionName, callArgs)).then(function(r) {
6341
- if (r && r.ok === false) return r;
6342
- return r && r.result || r;
6343
- });
6344
- } else {
6345
- pending = Promise.reject(new Error("no call api"));
6346
- }
6347
- Promise.resolve(pending).then(function(r) {
6348
- if (!alive) return;
6349
- if (!r || r.ok === false) {
6350
- setSnap(null);
6351
- setErr(String(r && (r.error || r.text) || t.loadFail));
6352
- } else {
6353
- setSnap(r);
6354
- }
6355
- setLoading(false);
6356
- }, function(e) {
6357
- if (!alive) return;
6358
- setSnap(null);
6359
- setErr(String(e && e.message || e || t.loadFail));
6360
- setLoading(false);
6361
- });
6362
- return function() {
6363
- alive = false;
6364
- };
6365
- }, [reload]);
6366
- function copy(text) {
6367
- var done = function() {
6368
- setToast(t.copied);
6369
- };
6370
- if (typeof navigator !== "undefined" && navigator.clipboard && typeof navigator.clipboard.writeText === "function") {
6371
- navigator.clipboard.writeText(text).then(done, function() {
6372
- plainCopy(text);
6373
- done();
6374
- });
6375
- return;
6376
- }
6377
- plainCopy(text);
6378
- done();
6379
- }
6380
- var ORIGINS = ["ui", "plugin", "agent", "sync"];
6381
- var originText = { ui: t.originUi, plugin: t.originPlugin, agent: t.originAgent, sync: t.originSync };
6382
- function setOrigins(action, origin) {
6383
- var name = action.name;
6384
- var current = Array.isArray(action.origins) ? action.origins.slice() : [];
6385
- var index = current.indexOf(origin);
6386
- var next = index >= 0 ? current.filter(function(o) {
6387
- return o !== origin;
6388
- }) : current.concat([origin]);
6389
- if (next.length === 0) {
6390
- setToast(t.originsEmpty);
6391
- return;
6392
- }
6393
- next = ORIGINS.filter(function(o) {
6394
- return next.indexOf(o) >= 0;
6395
- });
6396
- setSaving(name);
6397
- setToast("");
6398
- var fail = function(e) {
6399
- setSaving("");
6400
- setToast(t.originsFail + "\uFF1A" + String(e && e.message || e || ""));
6401
- };
6402
- var done = function(r) {
6403
- setSaving("");
6404
- var payload = r && typeof r === "object" && Object.prototype.hasOwnProperty.call(r, "result") ? r.result : r;
6405
- if (r && r.ok === false) {
6406
- setToast(t.originsFail + "\uFF1A" + String(r.error || r.text || ""));
6407
- return;
6408
- }
6409
- var value = payload && Array.isArray(payload.origins) ? payload.origins : next;
6410
- var source = payload && typeof payload.source === "string" ? payload.source : action.originsSource;
6411
- setSnap(function(prev) {
6412
- if (!prev || !Array.isArray(prev.actions)) return prev;
6413
- return Object.assign({}, prev, {
6414
- actions: prev.actions.map(function(a) {
6415
- if (!a || a.name !== name) return a;
6416
- return Object.assign({}, a, { origins: value, originsSource: source });
6417
- })
6418
- });
6419
- });
6420
- setToast(t.originsToast);
6421
- };
6422
- if (!api || typeof api.call !== "function") {
6423
- fail(new Error("no call api"));
6424
- return;
6425
- }
6426
- Promise.resolve(api.call("actions.setActionOrigins", { action: name, origins: next })).then(done, fail);
6427
- }
6428
- function paramsOpen(action) {
6429
- if (Object.prototype.hasOwnProperty.call(folds, action.name)) return folds[action.name] === true;
6430
- return Boolean(String(query || "").trim()) || reqMode !== "all" || Boolean(typePick);
6431
- }
6432
- function resetFolds() {
6433
- setFolds(function(prev) {
6434
- return Object.keys(prev).length ? {} : prev;
6435
- });
6436
- }
6437
- var all = snap && Array.isArray(snap.actions) ? snap.actions.filter(function(a) {
6438
- return a && a.domain === DOMAIN;
6439
- }) : [];
6440
- var info = snap && Array.isArray(snap.domains) ? snap.domains.filter(function(d) {
6441
- return d && d.id === DOMAIN;
6442
- })[0] || null : null;
6443
- var typeOptions = [];
6444
- all.forEach(function(a) {
6445
- paramRows(a).forEach(function(row) {
6446
- row.types.forEach(function(name) {
6447
- if (typeOptions.indexOf(name) < 0) typeOptions.push(name);
6448
- });
6449
- });
6450
- });
6451
- typeOptions.sort();
6452
- var kw = String(query || "").trim();
6453
- var q = kw.toLowerCase();
6454
- var visible = all.filter(function(a) {
6455
- var rows = paramRows(a);
6456
- if (q) {
6457
- var hay = [a.name || "", a.description || ""].concat(rows.map(function(row) {
6458
- return row.name + " " + row.type + " " + row.description;
6459
- })).join(" ").toLowerCase();
6460
- if (hay.indexOf(q) < 0) return false;
6461
- }
6462
- var hasRequired = rows.some(function(row) {
6463
- return row.required;
6464
- });
6465
- if (reqMode === "required" && !hasRequired) return false;
6466
- if (reqMode === "optional" && hasRequired) return false;
6467
- if (typePick && !rows.some(function(row) {
6468
- return row.types.indexOf(typePick) >= 0;
6469
- })) return false;
6470
- if (originPick && (!Array.isArray(a.origins) || a.origins.indexOf(originPick) < 0)) return false;
6471
- return true;
6163
+ return false;
6164
+ };
6165
+ }
6166
+ });
6167
+
6168
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs
6169
+ var import_react, LucideContext, useLucideContext;
6170
+ var init_context = __esm({
6171
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs"() {
6172
+ "use strict";
6173
+ "use client";
6174
+ import_react = require("react");
6175
+ LucideContext = (0, import_react.createContext)({});
6176
+ useLucideContext = () => (0, import_react.useContext)(LucideContext);
6177
+ }
6178
+ });
6179
+
6180
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs
6181
+ var import_react2, Icon;
6182
+ var init_Icon = __esm({
6183
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs"() {
6184
+ "use strict";
6185
+ "use client";
6186
+ import_react2 = require("react");
6187
+ init_mergeClasses();
6188
+ init_buildLucideIconForReact();
6189
+ init_hasA11yProp();
6190
+ init_context();
6191
+ Icon = (0, import_react2.forwardRef)(
6192
+ ({
6193
+ color,
6194
+ size,
6195
+ width,
6196
+ height,
6197
+ strokeWidth,
6198
+ absoluteStrokeWidth,
6199
+ nonScalingStroke,
6200
+ className = "",
6201
+ children,
6202
+ iconNode = [],
6203
+ icon = {
6204
+ node: iconNode,
6205
+ aliases: [],
6206
+ size: 24
6207
+ },
6208
+ ...rest
6209
+ }, ref) => {
6210
+ const {
6211
+ size: contextSize = 24,
6212
+ strokeWidth: contextStrokeWidth = 2,
6213
+ absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
6214
+ nonScalingStroke: contextNonScalingStroke = false,
6215
+ color: contextColor = "currentColor",
6216
+ className: contextClass = ""
6217
+ } = useLucideContext() ?? {};
6218
+ const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);
6219
+ const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {
6220
+ color: color ?? contextColor,
6221
+ width: width ?? size ?? contextSize,
6222
+ height: height ?? size ?? contextSize,
6223
+ strokeWidth: strokeWidth ?? contextStrokeWidth,
6224
+ absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,
6225
+ nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,
6226
+ className: mergeClasses(contextClass, className),
6227
+ hasA11yProp: hasAccessibleProp,
6228
+ attributes: rest
6472
6229
  });
6473
- function paramRow(row) {
6474
- var extra = extraText(row.schema, t);
6475
- return h(
6476
- "tr",
6477
- { key: row.name },
6478
- h("td", { className: P + "-mono " + P + "-pname" }, Highlight.hit(row.name, kw)),
6479
- h("td", { className: P + "-mono " + P + "-ptype" }, Highlight.hit(row.type, kw)),
6480
- h(
6481
- "td",
6482
- { className: row.required ? P + "-req " + P + "-pneed" : P + "-opt " + P + "-pneed" },
6483
- row.required ? t.required : t.optional
6484
- ),
6485
- // extra(默认 / 枚举 / 约束)不在过滤 haystack 里,因此也不高亮,保持「显示即命中」口径。
6486
- h("td", { className: P + "-mono " + P + "-pextra" }, extra),
6487
- h("td", { className: P + "-pdesc" }, Highlight.hit(row.description, kw))
6488
- );
6489
- }
6490
- function originsChips(action) {
6491
- if (!Array.isArray(action.origins)) return null;
6492
- if (action.originsSource === "invalid") {
6493
- return h("span", { className: P + "-badge " + P + "-locked", title: t.originsPinnedHint, "data-origins-invalid": action.name }, t.originsPinned);
6494
- }
6495
- var busy = saving === action.name;
6496
- var pinned = action.name === "actions.setActionOrigins";
6497
- var supported = Array.isArray(action.originsDeclared) ? action.originsDeclared : action.origins;
6498
- return h(
6499
- "div",
6500
- { className: P + "-origins", "data-origins-row": action.name },
6501
- h("span", { className: P + "-origins-label" }, t.originsLabel),
6502
- ORIGINS.map(function(origin) {
6503
- var on = action.origins.indexOf(origin) >= 0;
6504
- var allowed = supported.indexOf(origin) >= 0;
6505
- var preset = Array.isArray(action.originsDefault) ? action.originsDefault : supported;
6506
- var byDefault = preset.indexOf(origin) >= 0;
6507
- return h(
6508
- "label",
6509
- {
6510
- key: origin,
6511
- className: P + "-origin" + (allowed ? "" : " " + P + "-origin-off"),
6512
- title: pinned ? t.originsPinnedHint : !allowed ? t.originsUnsupported : originText[origin] + " \xB7 " + action.name + " \xB7 " + (byDefault ? t.originsDefaultOn : t.originsDefaultOff)
6513
- },
6514
- h("input", {
6515
- type: "checkbox",
6516
- checked: on,
6517
- disabled: busy || pinned || !allowed,
6518
- "data-origin": origin,
6519
- "data-origin-row": action.name,
6520
- "data-origin-supported": allowed ? "1" : "0",
6521
- onChange: function() {
6522
- setOrigins(action, origin);
6523
- }
6524
- }),
6525
- h("span", null, originText[origin])
6526
- );
6527
- }),
6528
- busy ? h("span", { className: P + "-origins-label" }, t.originsSaving) : null
6529
- );
6530
- }
6531
- function card(action) {
6532
- var rows = paramRows(action);
6533
- var required = rows.filter(function(row) {
6534
- return row.required;
6535
- }).length;
6536
- var open = paramsOpen(action);
6537
- var examples = Array.isArray(action.examples) ? action.examples : [];
6538
- return h(
6539
- "div",
6540
- { className: P + "-card", key: action.name },
6541
- h(
6542
- "div",
6543
- { className: P + "-cardhead" },
6544
- h(
6545
- "div",
6546
- { className: P + "-cardmeta" },
6547
- h("code", { className: P + "-mono" }, Highlight.hit(action.name, kw)),
6548
- h("span", { className: P + "-badge" }, rows.length ? t.paramCount(rows.length) : t.noParams),
6549
- rows.some(function(row) {
6550
- return row.required;
6551
- }) ? h("span", { className: P + "-badge " + P + "-req" }, t.required) : null
6552
- ),
6553
- originsChips(action)
6554
- ),
6555
- action.description ? h("p", { className: P + "-desc" }, Highlight.hit(action.description, kw)) : null,
6556
- rows.length ? h(
6557
- "details",
6558
- {
6559
- className: P + "-params",
6560
- "data-params-fold": action.name,
6561
- open,
6562
- // 原生 details 自带键盘与无障碍语义,这里只记下用户的开合;
6563
- // 筛选变化引起的程序性开合也会触发 toggle,记下的值与当次默认一致,随后由 resetFolds 清掉。
6564
- onToggle: function(e) {
6565
- var next = !!(e && e.currentTarget && e.currentTarget.open);
6566
- setFolds(function(prev) {
6567
- if (prev[action.name] === next) return prev;
6568
- var out = Object.assign({}, prev);
6569
- out[action.name] = next;
6570
- return out;
6571
- });
6572
- }
6573
- },
6574
- h("summary", null, t.params + (required ? " \xB7 " + t.requiredCount(required) : "")),
6575
- h(
6576
- "table",
6577
- { className: P + "-table" },
6578
- h("thead", null, h(
6579
- "tr",
6580
- null,
6581
- h("th", null, t.colName),
6582
- h("th", null, t.colType),
6583
- h("th", null, t.colReq),
6584
- h("th", null, t.colExtra),
6585
- h("th", null, t.colDesc)
6586
- )),
6587
- h("tbody", null, rows.map(paramRow))
6588
- )
6589
- ) : h("div", { className: P + "-none" }, t.noParams),
6590
- h(
6591
- "div",
6592
- { className: P + "-example" },
6593
- h(
6594
- "div",
6595
- { className: P + "-examplehead" },
6596
- h("span", { className: P + "-none" }, t.examples),
6597
- examples.length ? h("button", {
6598
- type: "button",
6599
- className: P + "-copy",
6600
- "data-copy-example": action.name,
6601
- onClick: function() {
6602
- copy(JSON.stringify(examples.length === 1 ? examples[0] : examples, null, 2));
6603
- }
6604
- }, t.copy) : null
6605
- ),
6606
- examples.length ? examples.map(function(example, index) {
6607
- return h("pre", { className: P + "-pre", key: index }, JSON.stringify(example, null, 2));
6608
- }) : h("div", { className: P + "-none" }, t.noExamples)
6609
- ),
6610
- h(
6611
- "details",
6612
- null,
6613
- h("summary", null, t.raw),
6614
- h("pre", { className: P + "-pre" }, JSON.stringify(action.input || {}, null, 2))
6615
- )
6616
- );
6617
- }
6618
- var body;
6619
- if (loading) {
6620
- body = h("div", { className: P + "-empty", role: "status" }, t.loading);
6621
- } else if (err) {
6622
- body = h(
6623
- "div",
6624
- { className: P + "-error", role: "alert" },
6625
- h("span", null, t.loadFail + "\uFF1A" + err),
6626
- h("button", { type: "button", className: P + "-copy", onClick: function() {
6627
- setReload(reload + 1);
6628
- } }, t.retry)
6629
- );
6630
- } else if (!all.length) {
6631
- body = h("div", { className: P + "-empty" }, t.emptyRegistry);
6632
- } else if (!visible.length) {
6633
- body = h("div", { className: P + "-empty" }, t.empty);
6634
- } else {
6635
- body = h("div", { className: P + "-list" }, visible.map(card));
6636
- }
6637
- return h(
6638
- "div",
6639
- { className: P },
6640
- h(
6641
- "div",
6642
- { className: P + "-head" },
6643
- h("h3", { className: P + "-title" }, t.title),
6644
- h("span", { className: P + "-badge" }, t.domain + " " + DOMAIN),
6645
- info && info.version ? h("span", { className: P + "-badge" }, t.versionLabel + " v" + info.version) : null,
6646
- snap && snap.shellVersion ? h("span", { className: P + "-badge" }, t.shell + " v" + snap.shellVersion) : null,
6647
- h("span", { className: P + "-badge" }, t.count(visible.length, all.length)),
6648
- h("span", { className: P + "-none" }, t.hint)
6649
- ),
6650
- h("p", { className: P + "-hintline" }, SOURCE === "actions.list" ? t.hostHint : t.switchHint),
6651
- snap ? h(
6652
- "div",
6653
- { className: P + "-toolbar" },
6654
- h(
6655
- "label",
6656
- { className: P + "-search" },
6657
- icon("search", 14),
6658
- h("input", {
6659
- type: "search",
6660
- value: query,
6661
- placeholder: t.search,
6662
- "aria-label": t.search,
6663
- onChange: function(e) {
6664
- setQuery(e.target.value);
6665
- resetFolds();
6666
- }
6667
- })
6668
- ),
6669
- h(
6670
- "label",
6671
- { className: P + "-none" },
6672
- t.filterReq + " ",
6673
- h(
6674
- "select",
6675
- { value: reqMode, "aria-label": t.filterReq, onChange: function(e) {
6676
- setReqMode(e.target.value);
6677
- resetFolds();
6678
- } },
6679
- h("option", { value: "all" }, t.all),
6680
- h("option", { value: "required" }, t.onlyRequired),
6681
- h("option", { value: "optional" }, t.onlyOptional)
6682
- )
6683
- ),
6684
- h(
6685
- "label",
6686
- { className: P + "-none" },
6687
- t.filterType + " ",
6688
- h(
6689
- "select",
6690
- { value: typePick, "aria-label": t.filterType, onChange: function(e) {
6691
- setTypePick(e.target.value);
6692
- resetFolds();
6693
- } },
6694
- h("option", { value: "" }, t.allTypes),
6695
- typeOptions.map(function(name) {
6696
- return h("option", { value: name, key: name }, name);
6697
- })
6698
- )
6699
- ),
6700
- h(
6701
- "label",
6702
- { className: P + "-none" },
6703
- t.filterOrigin + " ",
6704
- h(
6705
- "select",
6706
- { value: originPick, "aria-label": t.filterOrigin, "data-origin-filter": "", onChange: function(e) {
6707
- setOriginPick(e.target.value);
6708
- } },
6709
- h("option", { value: "" }, t.allOrigins),
6710
- ORIGINS.map(function(origin) {
6711
- return h("option", { value: origin, key: origin }, originText[origin]);
6712
- })
6713
- )
6714
- )
6715
- ) : null,
6716
- body,
6717
- toast ? h("div", { className: P + "-toast", role: "status" }, toast) : null
6230
+ return (0, import_react2.createElement)(
6231
+ name,
6232
+ {
6233
+ ref,
6234
+ ...svgAttributes
6235
+ },
6236
+ [
6237
+ ...builtIconNode.map(([tag, attrs]) => (0, import_react2.createElement)(tag, attrs)),
6238
+ ...Array.isArray(children) ? children : [children]
6239
+ ]
6718
6240
  );
6719
6241
  }
6720
- return { ActionSchemaView, DOMAIN, typeLabel, paramRows };
6721
- };
6242
+ );
6722
6243
  }
6723
6244
  });
6724
6245
 
6725
- // packages/addons/tasks/client/views/actions.cjs
6726
- var require_actions = __commonJS({
6727
- "packages/addons/tasks/client/views/actions.cjs"(exports2, module2) {
6728
- "use strict";
6729
- module2.exports = require_action_schema_view()({
6730
- domain: "tasks",
6731
- prefix: "wbt"
6732
- });
6246
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
6247
+ function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
6248
+ const iconData = typeof iconDataOrName === "string" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;
6249
+ const Component = (0, import_react3.forwardRef)(
6250
+ ({ className, ...props }, ref) => (0, import_react3.createElement)(Icon, {
6251
+ ref,
6252
+ icon: iconData,
6253
+ className,
6254
+ ...props
6255
+ })
6256
+ );
6257
+ if (iconData.name) {
6258
+ Component.displayName = toPascalCase(iconData.name);
6259
+ }
6260
+ return Component;
6261
+ }
6262
+ var import_react3;
6263
+ var init_createLucideIcon = __esm({
6264
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs"() {
6265
+ import_react3 = require("react");
6266
+ init_toLucideIconData();
6267
+ init_toPascalCase();
6268
+ init_Icon();
6733
6269
  }
6734
6270
  });
6735
6271
 
6736
- // packages/addons/lib/body-copy.cjs
6737
- var require_body_copy = __commonJS({
6738
- "packages/addons/lib/body-copy.cjs"(exports2, module2) {
6739
- module2.exports = {
6740
- zh: { desc: "\u63CF\u8FF0", markdown: "Markdown \u6E32\u67D3", plainText: "\u7EAF\u6587\u672C", bodyModeToggle: "{field} \xB7 \u5F53\u524D\uFF1A{current}\uFF1B\u5207\u6362\u4E3A{target}" },
6741
- en: { desc: "Description", markdown: "Rendered Markdown", plainText: "Plain text", bodyModeToggle: "{field} \xB7 Current: {current}; switch to {target}" }
6272
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs
6273
+ var chevron_right_exports = {};
6274
+ __export(chevron_right_exports, {
6275
+ __iconData: () => __iconData,
6276
+ default: () => ChevronRight
6277
+ });
6278
+ var __iconData, ChevronRight;
6279
+ var init_chevron_right = __esm({
6280
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs"() {
6281
+ init_createLucideIcon();
6282
+ __iconData = {
6283
+ name: "chevron-right",
6284
+ size: 24,
6285
+ node: [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]]
6742
6286
  };
6287
+ __iconData.node;
6288
+ ChevronRight = createLucideIcon(__iconData);
6743
6289
  }
6744
6290
  });
6745
6291
 
6746
- // packages/addons/tasks/client/ui/copy.cjs
6747
- var require_copy = __commonJS({
6748
- "packages/addons/tasks/client/ui/copy.cjs"(exports2, module2) {
6292
+ // packages/addons/lib/disclosure-styles.cjs
6293
+ var require_disclosure_styles = __commonJS({
6294
+ "packages/addons/lib/disclosure-styles.cjs"(exports2, module2) {
6749
6295
  "use strict";
6750
- var bodyCopy = require_body_copy();
6751
- module2.exports = {
6752
- zh: {
6753
- timelineTasks: "\u4EFB\u52A1\u6570",
6754
- timelineActivity: "\u6700\u8FD1\u6D3B\u52A8",
6755
- timelineMerge: "\u5408\u5E76",
6756
- timelineSingletons: "\u5305\u542B\u7A7A\u7EBF\u548C\u5355\u4EFB\u52A1\u65F6\u95F4\u7EBF",
6757
- timelineSearch: "\u641C\u7D22\u65F6\u95F4\u7EBF\u6807\u9898\u6216\u63CF\u8FF0",
6758
- timelineSearchButton: "\u641C\u7D22",
6759
- timelineMembers: "\u6210\u5458\u4EFB\u52A1",
6760
- timelineOrder: "\u6309\u53D1\u5E03\u65F6\u95F4\u6B63\u5E8F\u6392\u5217\uFF0C\u70B9\u51FB\u4EFB\u52A1\u6253\u5F00\u9884\u89C8",
6761
- timelineSearchEmpty: "\u6CA1\u6709\u627E\u5230\u5305\u542B \u201C{query}\u201D \u7684\u65F6\u95F4\u7EBF",
6762
- timelineEmpty: "\u6682\u65E0\u65F6\u95F4\u7EBF\uFF0C\u53EF\u70B9\u51FB\u201C\u65B0\u5EFA\u65F6\u95F4\u7EBF\u201D\u624B\u52A8\u5EFA\u7ACB\u3002",
6763
- timelineOpen: "\u5F00\u542F",
6764
- timelineDone: "\u5B8C\u6210",
6765
- timelinePrevious: "\u4E0A\u4E00\u9875",
6766
- timelineNext: "\u4E0B\u4E00\u9875",
6767
- timelineTarget: "\u5408\u5E76\u5230\u65F6\u95F4\u7EBF",
6768
- timelineMergeHint: "\u9009\u4E2D\u65F6\u95F4\u7EBF\u7684\u5168\u90E8\u6709\u6548\u4EFB\u52A1\u5C06\u5F52\u5E76\u5230\u76EE\u6807\u65F6\u95F4\u7EBF\uFF0C\u5305\u542B\u5F53\u524D\u9875\u5916\u7684\u4EFB\u52A1\uFF0C\u6392\u9664\u5DF2\u91CD\u542F\u548C\u5DF2\u5220\u9664\u4EFB\u52A1\u3002\u8BF7\u5148\u9884\u89C8\u518D\u786E\u8BA4\u3002",
6769
- timelinePreview: "\u9884\u89C8\u5408\u5E76",
6770
- timelinePreviewCount: "\u5C06\u79FB\u52A8 {n} \u6761\u4EFB\u52A1\u5230\u76EE\u6807\u65F6\u95F4\u7EBF\u3002",
6771
- timelineConfirm: "\u786E\u8BA4\u5408\u5E76",
6772
- previewLabel: "\u4EFB\u52A1\u9884\u89C8",
6773
- previewUntitled: "\u672A\u547D\u540D\u4EFB\u52A1",
6774
- previewOpen: "\u70B9\u51FB\u9884\u89C8\u4EFB\u52A1",
6775
- previewHint: "\u53EA\u8BFB\u9884\u89C8\uFF1B\u9700\u8981\u4FEE\u6539\u8BF7\u70B9\u4E0B\u65B9\u300C\u7F16\u8F91\u4EFB\u52A1\u300D\u3002",
6776
- bodyModeToggle: bodyCopy.zh.bodyModeToggle,
6777
- bodyMode: "\u63CF\u8FF0\u4E0E\u611F\u53D7\u663E\u793A\u6A21\u5F0F",
6778
- markdown: "Markdown \u6E32\u67D3",
6779
- plainText: "\u7EAF\u6587\u672C",
6780
- bodyModeLocal: "\u5DF2\u5728\u5F53\u524D\u6D4F\u89C8\u5668\u5207\u6362\uFF0C\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25\uFF1A",
6781
- title: "\u4EFB\u52A1",
6782
- search: "\u641C\u7D22\u6807\u9898 / \u63CF\u8FF0 / \u611F\u53D7 / \u4EFB\u52A1 ID",
6783
- newTask: "\u65B0\u5EFA\u4EFB\u52A1",
6784
- tree: "\u4EFB\u52A1\u6811",
6785
- select: "\u9009\u62E9",
6786
- cancelSelect: "\u9000\u51FA\u9009\u62E9",
6296
+ module2.exports = [
6297
+ ".wb-disc{min-width:0;border:0;padding:0;margin:0}",
6298
+ // 原生 details/summary 保留键盘与无障碍语义,这里只接管观感:去掉默认三角并铺满整行。
6299
+ ".wb-disc>summary{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:12.5px;font-weight:600;line-height:1.6;color:inherit;user-select:none;list-style:none;padding:2px 8px 2px 2px;margin:-2px -8px -2px -2px;border-radius:7px}",
6300
+ ".wb-disc>summary::-webkit-details-marker{display:none}",
6301
+ '.wb-disc>summary::marker{content:""}',
6302
+ ".wb-disc>summary:hover{background:color-mix(in oklab,currentColor 6%,transparent)}",
6303
+ ".wb-disc>summary:focus-visible{outline:2px solid var(--wb-accent,var(--dsw-alias-brand-primary,Highlight));outline-offset:2px}",
6304
+ ".wb-disc-chev{flex:0 0 auto;width:14px;height:14px;transition:transform 160ms ease}",
6305
+ ".wb-disc[open]>summary .wb-disc-chev{transform:rotate(90deg)}",
6306
+ ".wb-disc-title{min-width:0;overflow-wrap:anywhere}",
6307
+ ".wb-disc-meta{font-weight:400;font-size:12px;color:var(--wb-muted,var(--dsw-alias-label-tertiary,GrayText))}",
6308
+ ".wb-disc-body{margin-top:8px;min-width:0;animation:wb-disc-in 160ms ease}",
6309
+ "@keyframes wb-disc-in{from{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:none}}",
6310
+ "@media(prefers-reduced-motion:reduce){.wb-disc-chev{transition:none}.wb-disc-body{animation:none}}"
6311
+ ].join("\n");
6312
+ }
6313
+ });
6314
+
6315
+ // packages/addons/lib/disclosure.cjs
6316
+ var require_disclosure = __commonJS({
6317
+ "packages/addons/lib/disclosure.cjs"(exports2, module2) {
6318
+ "use strict";
6319
+ var ChevronRight2 = (init_chevron_right(), __toCommonJS(chevron_right_exports)).default;
6320
+ function createDisclosure(React) {
6321
+ var h = React.createElement;
6322
+ function Disclosure(props) {
6323
+ var attrs = Object.assign({ className: ("wb-disc " + (props.className || "")).trim() }, props.attrs || {});
6324
+ if (props.open !== void 0) attrs.open = !!props.open;
6325
+ else if (props.defaultOpen !== void 0) attrs.open = !!props.defaultOpen;
6326
+ if (props.onToggle) attrs.onToggle = props.onToggle;
6327
+ return h(
6328
+ "details",
6329
+ attrs,
6330
+ h(
6331
+ "summary",
6332
+ null,
6333
+ h(ChevronRight2, { className: "wb-disc-chev", "aria-hidden": true, focusable: false }),
6334
+ h("span", { className: "wb-disc-title" }, props.title),
6335
+ props.meta != null && props.meta !== "" ? h("span", { className: "wb-disc-meta" }, props.meta) : null
6336
+ ),
6337
+ h("div", { className: "wb-disc-body" }, props.children)
6338
+ );
6339
+ }
6340
+ return { Disclosure, css: require_disclosure_styles() };
6341
+ }
6342
+ module2.exports = { createDisclosure, css: require_disclosure_styles() };
6343
+ }
6344
+ });
6345
+
6346
+ // packages/addons/lib/action-schema-style.cjs
6347
+ var require_action_schema_style = __commonJS({
6348
+ "packages/addons/lib/action-schema-style.cjs"(exports2, module2) {
6349
+ "use strict";
6350
+ module2.exports = function(PREFIX, DOMAIN) {
6351
+ var P = PREFIX + "-as";
6352
+ var hairline = "1px solid color-mix(in oklab,currentColor 8%,transparent)";
6353
+ var CSS = [
6354
+ "." + P + "{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;font-size:13px;color:inherit}",
6355
+ "." + P + "-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
6356
+ "." + P + "-title{font-size:15px;font-weight:660;margin:0}",
6357
+ "." + P + "-badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:999px;padding:1px 8px;font-size:11px;color:var(--dsw-alias-label-secondary,currentColor);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}",
6358
+ "." + P + "-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px}",
6359
+ "." + P + "-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
6360
+ "." + P + "-search{position:relative;flex:1 1 220px;min-width:0;display:flex;align-items:center}",
6361
+ "." + P + "-search input{width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 10px 6px 30px}",
6362
+ "." + P + "-search input:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
6363
+ "." + P + "-search .wbi-svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--dsw-alias-label-tertiary,inherit)}",
6364
+ "." + P + " select{border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 8px;max-width:100%}",
6365
+ "." + P + " select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
6366
+ "." + P + "-list{display:flex;flex-direction:column;gap:8px}",
6367
+ "." + P + "-card{border:1px solid var(--wb-border,#e3e5e9);border-radius:10px;padding:10px 12px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));display:flex;flex-direction:column;gap:8px;min-width:0}",
6368
+ "." + P + "-cardhead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}",
6369
+ "." + P + "-cardmeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;min-height:24px}",
6370
+ "." + P + "-cardhead code{font-weight:640;overflow-wrap:anywhere;min-width:0}",
6371
+ "." + P + "-hintline{margin:0;color:var(--dsw-alias-label-tertiary,inherit);font-size:11.5px;line-height:1.5}",
6372
+ "." + P + "-origins{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:0}",
6373
+ "." + P + "-origins-label{font-size:11px;color:var(--wb-muted);white-space:nowrap}",
6374
+ "." + P + "-origin{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--wb-muted);cursor:pointer;user-select:none}",
6375
+ // 该 action 本身不支持的来源:整项置灰、不可点,示意「不是没开,是开不了」。
6376
+ "." + P + "-origin-off{opacity:.55;cursor:not-allowed}",
6377
+ "." + P + "-origin input[type=checkbox]{width:13px;height:13px;margin:0;accent-color:var(--wb-accent);cursor:inherit}",
6378
+ "." + P + "-origin input[type=checkbox]:focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}",
6379
+ "." + P + "-locked{border-color:var(--wb-warn,#b7791f);color:var(--wb-warn,#b7791f)}",
6380
+ "." + P + "-desc{margin:0;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55;font-size:12.5px;overflow-wrap:anywhere}",
6381
+ // 搜索命中:用品牌色透明度叠加而不是写死浅色,深浅主题都可读;继承文字颜色、不覆盖 ::selection。
6382
+ "." + P + " mark." + P + "-hit{background:color-mix(in oklab,var(--dsw-alias-brand-primary,#4f6ef7) 22%,transparent);color:inherit;border-radius:2px;padding:0;font:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}",
6383
+ "." + P + "-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}",
6384
+ "." + P + "-table th{text-align:left;font-weight:620;font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:var(--dsw-alias-label-tertiary,inherit);padding:4px 8px 4px 0;white-space:nowrap}",
6385
+ "." + P + "-table td{padding:4px 8px 4px 0;vertical-align:top;border-top:" + hairline + ";line-height:1.5;overflow-wrap:anywhere}",
6386
+ "." + P + "-req{color:var(--dsw-alias-state-error-primary,#d9534f);font-weight:620}",
6387
+ "." + P + "-opt{color:var(--dsw-alias-label-tertiary,inherit)}",
6388
+ "." + P + "-none{color:var(--dsw-alias-label-tertiary,inherit);font-size:12px}",
6389
+ "." + P + "-example{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}",
6390
+ "." + P + "-examplehead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}",
6391
+ "." + P + "-pre{margin:0;padding:8px 10px;border-radius:8px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.5;overflow:auto;max-height:280px;white-space:pre-wrap;word-break:break-word}",
6392
+ "." + P + "-copy{border:1px solid var(--wb-border,#e3e5e9);border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:11.5px;padding:2px 8px;cursor:pointer}",
6393
+ "." + P + "-copy:hover{background:var(--dsw-alias-interactive-bg-hover,color-mix(in oklab,currentColor 5%,transparent))}",
6394
+ "." + P + "-copy:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}",
6395
+ // 折叠头观感已收口到共享控件 disclosure-styles.cjs(.wb-disc),这里不再重复定义 details>summary。
6396
+ "." + P + "-params{min-width:0}",
6397
+ "." + P + "-empty{padding:24px;text-align:center;border:1px dashed var(--wb-border,#e3e5e9);border-radius:10px;color:var(--dsw-alias-label-tertiary,inherit)}",
6398
+ "." + P + "-error{padding:12px;border:1px solid var(--dsw-alias-state-error-primary,#d9534f);border-radius:10px;color:var(--dsw-alias-state-error-primary,#d9534f);display:flex;gap:10px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}",
6399
+ "." + P + "-toast{position:sticky;bottom:8px;align-self:flex-start;border-radius:999px;padding:3px 10px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);font-size:11.5px;max-width:100%}",
6400
+ // 窄屏:五列参数表压成一列会丢失列名、且 table 布局按最小内容宽度撑破容器,
6401
+ // 这里整体改成块级网格:每行 = 名称 / 类型 / 必填 + 约束行 + 说明行,行间用细线分隔。
6402
+ "@media(max-width:760px){." + P + "-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}." + P + "-search{grid-column:1/-1}." + P + "-toolbar>label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}." + P + "-toolbar select{width:100%;min-width:0}." + P + "-cardhead{grid-template-columns:minmax(0,1fr);row-gap:6px}." + P + "-origins{justify-content:flex-start}." + P + "-table{display:block}." + P + "-table thead{display:none}." + P + "-table tbody{display:block}." + P + '-table tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"name type need" "extra extra extra" "desc desc desc";column-gap:8px;padding:9px 0;border-top:' + hairline + "}." + P + "-table tr:first-child{border-top:0;padding-top:2px}." + P + "-table tr:last-child{padding-bottom:2px}." + P + "-table td{display:block;border:0;padding:0;min-width:0}." + P + "-table td:empty{display:none}." + P + "-pname{grid-area:name;font-weight:640}." + P + "-ptype{grid-area:type;justify-self:start;align-self:center;color:var(--dsw-alias-label-tertiary,inherit)}." + P + "-pneed{grid-area:need;justify-self:end;align-self:center;font-size:11px;line-height:1.6;white-space:nowrap}." + P + "-pextra{grid-area:extra;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}." + P + "-pdesc{grid-area:desc;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}}",
6403
+ // 中等宽度(521–760px)三个筛选项正好排成一行,避免第三项独占一行显得参差。
6404
+ "@media(min-width:521px) and (max-width:760px){." + P + "-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}",
6405
+ "@media(max-width:420px){." + P + "-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}." + P + "-card{padding:10px}." + P + "-table tr{padding:8px 0}}"
6406
+ ].join("\n") + "\n" + require_disclosure_styles();
6407
+ return function injectCss() {
6408
+ if (typeof document === "undefined") return;
6409
+ var id = "wb-addon-" + DOMAIN + "-actions-css";
6410
+ var old = document.getElementById(id);
6411
+ if (old) {
6412
+ old.textContent = CSS;
6413
+ return;
6414
+ }
6415
+ var style = document.createElement("style");
6416
+ style.id = id;
6417
+ style.setAttribute("data-wb-addon", "wb-addon-" + DOMAIN);
6418
+ style.textContent = CSS;
6419
+ document.head.appendChild(style);
6420
+ };
6421
+ };
6422
+ }
6423
+ });
6424
+
6425
+ // packages/addons/lib/action-schema-view.cjs
6426
+ var require_action_schema_view = __commonJS({
6427
+ "packages/addons/lib/action-schema-view.cjs"(exports2, module2) {
6428
+ "use strict";
6429
+ var React = require("react");
6430
+ var createHighlight = require_highlight()(React);
6431
+ var Disclosure = require_disclosure().createDisclosure(React).Disclosure;
6432
+ var h = React.createElement;
6433
+ var COPY = {
6434
+ zh: {
6435
+ title: "Action",
6436
+ hint: "\u8FD0\u884C\u65F6\u6CE8\u518C \xB7 \u53EA\u8BFB",
6437
+ switchHint: "\u5141\u8BB8\u6765\u6E90\u843D\u672C\u673A\u3001\u5373\u6539\u5373\u751F\u6548\uFF1A\u52FE\u4E0A\u7684\u6765\u6E90\u624D\u80FD\u8C03\u7528\u8BE5 action\uFF0C\u5176\u4F59\u4F1A\u88AB ACTION_ORIGIN_DENIED \u62E6\u4E0B\u3002",
6438
+ hostHint: "\u5BBF\u4E3B action \u7684\u5141\u8BB8\u6765\u6E90\uFF1B\u6807\u300C\u6765\u6E90\u56FA\u5B9A\u300D\u7684\u4E0D\u53EF\u4FEE\u6539\u3002",
6439
+ originsLabel: "\u5141\u8BB8\u6765\u6E90",
6440
+ originUi: "\u754C\u9762",
6441
+ originPlugin: "\u63D2\u4EF6",
6442
+ originAgent: "agent",
6443
+ originSync: "\u540C\u6B65",
6444
+ originsSaving: "\u4FDD\u5B58\u4E2D\u2026",
6445
+ originsToast: "\u5DF2\u66F4\u65B0\u5141\u8BB8\u6765\u6E90",
6446
+ originsFail: "\u66F4\u65B0\u5141\u8BB8\u6765\u6E90\u5931\u8D25",
6447
+ originsEmpty: "\u81F3\u5C11\u8981\u4FDD\u7559\u4E00\u4E2A\u6765\u6E90",
6448
+ originsUnsupported: "\u8BE5 action \u672C\u8EAB\u4E0D\u652F\u6301\u8FD9\u4E2A\u6765\u6E90",
6449
+ originsPinned: "\u6765\u6E90\u56FA\u5B9A",
6450
+ originsPinnedHint: "\u8BE5 action \u7684\u5141\u8BB8\u6765\u6E90\u88AB\u56FA\u5B9A\uFF08\u5B89\u5168\u7EA6\u675F\uFF09\uFF0C\u4E0D\u80FD\u4FEE\u6539",
6451
+ domain: "\u57DF",
6452
+ versionLabel: "\u7248\u672C",
6453
+ shell: "\u5BBF\u4E3B",
6454
+ count: function(shown, total) {
6455
+ return shown + " / " + total + " \u4E2A action";
6456
+ },
6457
+ search: "\u641C\u7D22\u540D\u79F0\u3001\u63CF\u8FF0\u3001\u53C2\u6570\uFF08\u547D\u4E2D\u5904\u9AD8\u4EAE\uFF09",
6458
+ filterReq: "\u5FC5\u586B\u7B5B\u9009",
6787
6459
  all: "\u5168\u90E8",
6788
- empty: "\u8FD9\u4E2A\u89C6\u56FE\u8FD8\u6CA1\u6709\u4EFB\u52A1",
6789
- loading: "\u52A0\u8F7D\u4E2D\u2026",
6790
- error: "\u64CD\u4F5C\u5931\u8D25\uFF1A",
6791
- save: "\u4FDD\u5B58",
6792
- cancel: "\u53D6\u6D88",
6793
- create: "\u521B\u5EFA",
6794
- close: "\u5173\u95ED",
6795
- taskId: "\u4EFB\u52A1 ID",
6796
- stepContent: "\u5185\u5BB9",
6797
- stepContentHint: "\u6807\u9898\u3001\u63CF\u8FF0\u4E0E\u8BA1\u5212",
6798
- stepTags: "\u6807\u7B7E",
6799
- stepTagsHint: "\u641C\u7D22\u5DF2\u6709\u6807\u7B7E\uFF0C\u6216\u8F93\u5165\u65B0\u6807\u7B7E\u56DE\u8F66\u6DFB\u52A0",
6800
- stepTable: "\u4EFB\u52A1\u8868",
6801
- stepTableHint: "\u9009\u62E9\u4EFB\u52A1\u5F52\u5230\u54EA\u5F20\u8868",
6802
- stepTimeline: "\u65F6\u95F4\u7EBF",
6803
- stepTimelineHint: "\u5173\u8054\u73B0\u6709\u65F6\u95F4\u7EBF\u6216\u65B0\u5EFA",
6804
- stepWorkspace: "\u5DE5\u4F5C\u533A",
6805
- stepWorkspaceHint: "\u5173\u8054\u5230\u5DE5\u4F5C\u533A\uFF08\u53EF\u9009\uFF09",
6806
- stepConfirm: "\u786E\u8BA4",
6807
- stepConfirmHint: "\u6838\u5BF9\u540E\u521B\u5EFA",
6808
- stepBelong: "\u5F52\u5C5E",
6809
- stepBelongHint: "\u65F6\u95F4\u7EBF\u3001\u5DE5\u4F5C\u533A\u4E0E\u4EFB\u52A1\u8868",
6810
- stepPlan: "\u8BA1\u5212",
6811
- stepPlanHint: "\u72B6\u6001\u3001\u4F18\u5148\u7EA7\u4E0E\u65E5\u671F",
6812
- confirmHint: "\u786E\u8BA4\u65E0\u8BEF\u540E\u70B9\u300C\u521B\u5EFA\u300D\uFF1B\u521B\u5EFA\u540E\u4ECD\u53EF\u7F16\u8F91\u6807\u9898\u3001\u63CF\u8FF0\u4E0E\u5F52\u5C5E\u3002",
6813
- createSteps: "\u521B\u5EFA\u6B65\u9AA4",
6814
- nextStep: "\u4E0B\u4E00\u6B65",
6815
- prevStep: "\u4E0A\u4E00\u6B65",
6816
- workspace: "\u5DE5\u4F5C\u533A",
6817
- addGroup: "\u65B0\u5EFA\u7EC4",
6818
- addTable: "\u65B0\u5EFA\u8868",
6819
- rename: "\u91CD\u547D\u540D",
6820
- del: "\u5220\u9664",
6821
- editGroup: "\u7F16\u8F91\u4EFB\u52A1\u7EC4",
6822
- editTable: "\u7F16\u8F91\u4EFB\u52A1\u8868",
6823
- nodeName: "\u540D\u79F0",
6824
- nodeDesc: "\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",
6825
- nodeDescPh: "\u5199\u6E05\u8FD9\u5F20\u8868\u662F\u505A\u4EC0\u4E48\u7684\uFF0C\u4EE5\u540E\u53EF\u6309\u63CF\u8FF0\u5173\u952E\u8BCD\u68C0\u7D22\u5B9A\u4F4D",
6826
- needName: "\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
6827
- nodeDescSave: "\u63CF\u8FF0\u5DF2\u4FDD\u5B58",
6828
- deleteConfirm: "\u786E\u5B9A\u5220\u9664\u8FD9\u4E2A\u8282\u70B9\u53CA\u5176\u5B50\u6811\uFF1F\u5B50\u6811\u4E2D\u7684\u4EFB\u52A1\u4F1A\u88AB\u8F6F\u5220\u9664\u3002",
6829
- deleteTaskConfirm: "\u786E\u5B9A\u5220\u9664\u8FD9\u6761\u4EFB\u52A1\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\u3002",
6830
- batchDelete: "\u6279\u91CF\u5220\u9664",
6831
- batchDeleteConfirm: "\u786E\u5B9A\u5220\u9664\u9009\u4E2D\u7684 {n} \u6761\u4EFB\u52A1\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\u3002",
6832
- deletePartial: "\u90E8\u5206\u5220\u9664\u5931\u8D25",
6833
- claimSelected: "\u63A5\u53D6\u9009\u4E2D",
6834
- claimSummary: "\u6210\u529F {ok} \u6761\uFF1B\u5931\u8D25 {fail} \u6761\uFF1A\u5DF2\u88AB\u63A5\u53D6 {already}\u3001\u72B6\u6001\u4E0D\u652F\u6301 {notClaimable}\u3001\u4E0D\u5B58\u5728 {missing}",
6835
- claimedCount: "\u5DF2\u63A5\u53D6 {n} \u6761\u4EFB\u52A1",
6836
- root: "\u5168\u90E8\u4EFB\u52A1\u7EC4",
6837
- manager: "\u7BA1\u7406\u6A21\u5F0F",
6838
- treeSearch: "\u641C\u7D22\u4EFB\u52A1\u7EC4 / \u4EFB\u52A1\u8868",
6839
- treeHint: "\u70B9\u4EFB\u52A1\u8868\u7B5B\u9009\u4EFB\u52A1\uFF1B\u7BA1\u7406\u6A21\u5F0F\u53EF\u62D6\u62FD\u6392\u5E8F\u3001\u6539\u540D\u6216\u5220\u9664",
6840
- groups: "\u4E2A\u4EFB\u52A1\u7EC4",
6841
- tables: "\u5F20\u4EFB\u52A1\u8868",
6842
- treeNoMatch: "\u6CA1\u6709\u5339\u914D\u7684\u8282\u70B9",
6843
- tags: "\u6807\u7B7E",
6844
- tagsHint: "\u7528\u6807\u7B7E\u5F52\u7C7B\uFF08\u5DE5\u4F5C/\u751F\u6D3B/\u5B66\u4E60/\u5F00\u53D1 \u5DF2\u662F\u6807\u7B7E\uFF09",
6845
- tagPlaceholder: "\u591A\u4E2A\u6807\u7B7E\u7528\u9017\u53F7\u5206\u9694\uFF0C\u4F8B\u5982\uFF1A\u5DE5\u4F5C, \u5F00\u53D1",
6846
- tagFilter: "\u6807\u7B7E\u7B5B\u9009",
6847
- allTags: "\u5168\u90E8\u6807\u7B7E",
6848
- noTags: "\u6682\u65E0\u6807\u7B7E",
6849
- tagSearchPlaceholder: "\u641C\u7D22\u6807\u7B7E\u540D\u79F0",
6850
- tagNoMatch: "\u6CA1\u6709\u5339\u914D\u7684\u6807\u7B7E",
6851
- loadingMore: "\u52A0\u8F7D\u4E2D\u2026",
6852
- noMore: "\u6CA1\u6709\u66F4\u591A",
6853
- tagSelected: "\u5DF2\u9009",
6854
- tagRemove: "\u79FB\u9664",
6855
- tagSearchExisting: "\u641C\u7D22\u5DF2\u6709\u6807\u7B7E",
6856
- tagNewPlaceholder: "\u65B0\u5EFA\u6807\u7B7E\uFF0C\u56DE\u8F66\u6DFB\u52A0\uFF0C\u591A\u4E2A\u7528\u9017\u53F7\u5206\u9694",
6857
- tagAdd: "\u6DFB\u52A0",
6858
- tagNoPick: "\u8FD8\u6CA1\u6709\u9009\u6807\u7B7E\uFF0C\u4ECE\u4E0B\u9762\u70B9\u4E00\u4E2A\u6216\u76F4\u63A5\u8F93\u5165\u65B0\u6807\u7B7E\u540D",
6859
- workspaceFilter: "\u5DE5\u4F5C\u533A\u7B5B\u9009",
6860
- allWorkspaces: "\u5168\u90E8\u5DE5\u4F5C\u533A",
6861
- noWorkspaces: "\u6682\u65E0\u5DE5\u4F5C\u533A",
6862
- noWorkspace: "\u672A\u5173\u8054\u5DE5\u4F5C\u533A",
6863
- workspaceSearchPlaceholder: "\u641C\u7D22\u5DE5\u4F5C\u533A\u540D\u79F0",
6864
- workspaceNoMatch: "\u6CA1\u6709\u5339\u914D\u7684\u5DE5\u4F5C\u533A",
6865
- workspaceSelected: "\u5DF2\u9009\u5DE5\u4F5C\u533A",
6866
- workspaceRemove: "\u79FB\u9664",
6867
- untagged: "\u672A\u6253\u6807\u7B7E",
6868
- publish: "\u53D1\u5E03",
6869
- target: "\u8BA1\u5212\u5B8C\u6210",
6870
- done: "\u5B9E\u9645\u5B8C\u6210",
6871
- shutdown: "\u5173\u95ED\u65F6\u95F4",
6872
- priority: "\u4F18\u5148\u7EA7",
6873
- difficulty: "\u96BE\u5EA6",
6874
- desc: "\u63CF\u8FF0",
6875
- difficultyUnset: "\u672A\u8BBE\u7F6E",
6876
- difficultyMissing: "\u4EC5\u672A\u586B\u96BE\u5EA6",
6877
- difficultyUnsetHint: "\u4E0D\u586B=\u672A\u8BBE\u7F6E\uFF080\uFF09\uFF0C\u4E0D\u662F\u6700\u7B80\u5355\uFF1B\u5EFA\u8BAE\u586B\u5199 1\u20135",
6878
- difficultyGuideTitle: "\u5982\u4F55\u5224\u65AD\u96BE\u5EA6",
6879
- difficultyGuide: "1\uFF1A\u6587\u6848/\u6837\u5F0F\u7B49\u5355\u70B9\u5C0F\u6539\uFF1B2\uFF1A\u5355\u6A21\u5757\u5185\u5C40\u90E8\u529F\u80FD\uFF1B3\uFF1A\u8DE8 2\u20133 \u4E2A\u6A21\u5757\u6216\u6570\u636E\u8BFB\u53D6\u53D8\u66F4\uFF1B4\uFF1A\u5B58\u50A8\u3001\u8FC1\u79FB\u3001\u540C\u6B65\u6216\u6784\u5EFA\u94FE\u8DEF\uFF1B5\uFF1A\u8DE8\u8FDB\u7A0B\u67B6\u6784\u91CD\u6784\u6216\u591A\u9636\u6BB5\u9A8C\u8BC1\u3002\u7ED3\u5408\u6539\u52A8\u6587\u4EF6\u6570\u3001\u662F\u5426\u6D89\u53CA\u6570\u636E\u8FC1\u79FB\u548C\u6D4B\u8BD5\u9762\u5224\u65AD\u3002",
6880
- review: "\u611F\u53D7",
6881
- reviewHint: "\u4EFB\u4F55\u72B6\u6001\u90FD\u53EF\u8BB0\u5F55\u611F\u53D7\uFF08\u53EF\u9009\uFF09",
6882
- reviewPlaceholder: "\u4F8B\u5982\uFF1A\u601D\u8DEF\u5F88\u987A / \u5361\u5728\u63A5\u53E3\u8C03\u8BD5 / \u6BD4\u9884\u60F3\u8F7B\u677E",
6883
- reviewAdd: "\u8BB0\u5F55\u611F\u53D7",
6884
- status: "\u72B6\u6001",
6885
- publishDate: "\u53D1\u5E03\u65E5\u671F",
6886
- targetDate: "\u8BA1\u5212\u5B8C\u6210\u65E5\u671F",
6887
- doneDate: "\u5B8C\u6210\u65E5\u671F",
6888
- shutdownDate: "\u5173\u95ED\u65E5\u671F",
6889
- table: "\u4EFB\u52A1\u8868",
6890
- titleField: "\u6807\u9898",
6891
- timeline: "\u65F6\u95F4\u7EBF",
6892
- restart: "\u91CD\u542F",
6893
- complete: "\u5B8C\u6210",
6894
- shutdownOp: "\u5173\u95ED",
6895
- selected: "\u5DF2\u9009",
6896
- selectedTasks: "\u9009\u4E2D\u4EFB\u52A1",
6897
- batchTimeline: "\u5F52\u5E76\u65F6\u95F4\u7EBF",
6898
- batchMigrate: "\u8FC1\u79FB\u4EFB\u52A1\u8868",
6899
- refresh: "\u5237\u65B0",
6900
- clear: "\u6E05\u7A7A",
6901
- chooseBase: "\u9009\u62E9\u57FA\u51C6\u4EFB\u52A1\uFF08\u4F7F\u7528\u5B83\u7684\u65F6\u95F4\u7EBF\uFF09",
6902
- chooseTable: "\u9009\u62E9\u76EE\u6807\u4EFB\u52A1\u8868",
6903
- searchTable: "\u641C\u7D22\u4EFB\u52A1\u8868",
6904
- noTable: "\u6CA1\u6709\u5339\u914D\u7684\u4EFB\u52A1\u8868",
6905
- baseLabel: "\u57FA\u51C6\u4EFB\u52A1",
6906
- targetLabel: "\u76EE\u6807\u4EFB\u52A1\u8868",
6907
- batchCount: "\u5DF2\u9009",
6908
- hasTimeline: "\u6709\u65F6\u95F4\u7EBF",
6909
- noTimelineTag: "\u65E0\u65F6\u95F4\u7EBF",
6910
- group: "\u4EFB\u52A1\u7EC4",
6911
- timelineTitle: "\u4EFB\u52A1\u65F6\u95F4\u7EBF",
6912
- newTimeline: "\u65B0\u5EFA\u65F6\u95F4\u7EBF\u4EFB\u52A1",
6913
- restartTitle: "\u91CD\u542F\u4EFB\u52A1",
6914
- noTimeline: "\u6CA1\u6709\u5173\u8054\u65F6\u95F4\u7EBF",
6915
- restartPriorityHint: "\u91CD\u542F\u4EFB\u52A1\u9700\u8981\u4F18\u5148\u7EA7 1\u201310\uFF0C0 \u4EC5\u7528\u4E8E\u5DF2\u5B8C\u6210/\u5DF2\u5173\u95ED",
6916
- restartPriorityError: "\u91CD\u542F\u4EFB\u52A1\u7684\u4F18\u5148\u7EA7\u5FC5\u987B\u586B\u5199 1\u201310\uFF1B0 \u4EC5\u7528\u4E8E\u5DF2\u5B8C\u6210/\u5DF2\u5173\u95ED",
6917
- activePriorityError: "\u5DF2\u5F00\u542F\u4EFB\u52A1\u7684\u4F18\u5148\u7EA7\u5FC5\u987B\u586B\u5199 1\u201310\uFF1B0 \u4EC5\u7528\u4E8E\u5DF2\u5B8C\u6210/\u5DF2\u5173\u95ED",
6918
- confirm: "\u786E\u5B9A",
6919
- difficultyHint: "\u5EFA\u8BAE\u5B8C\u6210\u524D\u586B\u5199 1\u20135 \u96BE\u5EA6\uFF1B0 \u4F1A\u7EDF\u8BA1\u4E3A\u672A\u8BBE\u7F6E",
6920
- emptyTree: "\u4EFB\u52A1\u6811\u8FD8\u6CA1\u6709\u6570\u636E",
6921
- appear: "\u663E\u793A",
6922
- hide: "\u9690\u85CF",
6923
- move: "\u79FB\u52A8\u5230",
6924
- source: "\u6765\u6E90",
6925
- page: "\u9875",
6926
- total: "\u5171",
6927
- items: "\u6761",
6928
- doneSuccess: "\u5DF2\u5B8C\u6210",
6929
- saved: "\u5DF2\u4FDD\u5B58",
6930
- created: "\u5DF2\u521B\u5EFA",
6931
- updated: "\u5DF2\u66F4\u65B0",
6932
- edit: "\u7F16\u8F91",
6933
- editTitle: "\u7F16\u8F91\u4EFB\u52A1",
6934
- editHintDone: "\u5DF2\u5B8C\u6210\uFF1A\u6807\u9898\u3001\u63CF\u8FF0\u3001\u611F\u53D7\u3001\u96BE\u5EA6\u53EF\u6539\uFF1B\u4F18\u5148\u7EA7\u5728\u5B8C\u6210\u65F6\u5DF2\u6E05\u96F6\u3002",
6935
- editHintOpen: "\u672A\u5B8C\u6210\uFF1A\u6807\u9898\u3001\u63CF\u8FF0\u3001\u4F18\u5148\u7EA7\u3001\u611F\u53D7\u548C\u96BE\u5EA6\u53EF\u6539\u3002",
6936
- deleted: "\u5DF2\u5220\u9664",
6937
- needTitle: "\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A",
6938
- needTable: "\u8BF7\u9009\u62E9\u4EFB\u52A1\u8868",
6939
- needDate: "\u65E5\u671F\u4E0D\u80FD\u4E3A\u7A7A",
6940
- needBase: "\u8BF7\u9009\u62E9\u57FA\u51C6\u4EFB\u52A1",
6941
- needDifficulty: "\u8BF7\u9009\u62E9\u96BE\u5EA6"
6460
+ onlyRequired: "\u542B\u5FC5\u586B\u9879",
6461
+ onlyOptional: "\u65E0\u5FC5\u586B\u9879",
6462
+ filterType: "\u53C2\u6570\u7C7B\u578B",
6463
+ allTypes: "\u5168\u90E8\u7C7B\u578B",
6464
+ filterOrigin: "\u5141\u8BB8\u6765\u6E90",
6465
+ allOrigins: "\u5168\u90E8\u6765\u6E90",
6466
+ colName: "\u53C2\u6570",
6467
+ colType: "\u7C7B\u578B",
6468
+ colReq: "\u5FC5\u586B",
6469
+ colExtra: "\u9ED8\u8BA4 / \u679A\u4E3E / \u7EA6\u675F",
6470
+ colDesc: "\u8BF4\u660E",
6471
+ required: "\u5FC5\u586B",
6472
+ optional: "\u53EF\u9009",
6473
+ noParams: "\u65E0\u53C2\u6570",
6474
+ paramCount: function(n) {
6475
+ return n + " \u4E2A\u53C2\u6570";
6476
+ },
6477
+ params: "\u53C2\u6570",
6478
+ requiredCount: function(n) {
6479
+ return "\u5FC5\u586B " + n;
6480
+ },
6481
+ examples: "\u793A\u4F8B",
6482
+ noExamples: "\u65E0\u793A\u4F8B",
6483
+ copy: "\u590D\u5236",
6484
+ copied: "\u5DF2\u590D\u5236",
6485
+ raw: "\u539F\u59CB JSON Schema",
6486
+ loading: "\u8F7D\u5165\u4E2D\u2026",
6487
+ loadFail: "\u8BFB\u53D6 action schema \u5931\u8D25",
6488
+ retry: "\u91CD\u8BD5",
6489
+ empty: "\u6CA1\u6709\u5339\u914D\u7684 action",
6490
+ emptyRegistry: "\u8BE5\u57DF\u6CA1\u6709\u6CE8\u518C action",
6491
+ envelope: "\u9ED8\u8BA4",
6492
+ enumLabel: "\u679A\u4E3E",
6493
+ range: "\u8303\u56F4",
6494
+ length: "\u957F\u5EA6",
6495
+ pattern: "\u6B63\u5219",
6496
+ format: "\u683C\u5F0F",
6497
+ items: "\u5143\u7D20\u6570"
6942
6498
  },
6943
6499
  en: {
6944
- timelineTasks: "Tasks",
6945
- timelineActivity: "Last activity",
6946
- timelineMerge: "Merge",
6947
- timelineSingletons: "Include empty and single-task timelines",
6948
- timelineSearch: "Search timeline titles or descriptions",
6949
- timelineSearchButton: "Search",
6950
- timelineMembers: "Member tasks",
6951
- timelineOrder: "Oldest publication first. Click a task to open a preview.",
6952
- timelineSearchEmpty: "No timelines contain \u201C{query}\u201D.",
6953
- timelineEmpty: "No timelines yet. Use New timeline to create one manually.",
6954
- timelineOpen: "Open",
6955
- timelineDone: "Done",
6956
- timelinePrevious: "Previous page",
6957
- timelineNext: "Next page",
6958
- timelineTarget: "Merge into timeline",
6959
- timelineMergeHint: "Merge all valid tasks in the selected timelines, including tasks beyond the current page and excluding restarted and deleted tasks. Preview before confirming.",
6960
- timelinePreview: "Preview merge",
6961
- timelinePreviewCount: "{n} tasks will move into the target timeline.",
6962
- timelineConfirm: "Confirm merge",
6963
- previewLabel: "Task preview",
6964
- previewUntitled: "Untitled task",
6965
- previewOpen: "Click to preview task",
6966
- previewHint: "Read-only preview. Use Edit task below to make changes.",
6967
- bodyModeToggle: bodyCopy.en.bodyModeToggle,
6968
- bodyMode: "Description and reflection display mode",
6969
- markdown: "Render Markdown",
6970
- plainText: "Plain text",
6971
- bodyModeLocal: "Changed in this browser; could not save config:",
6972
- title: "Tasks",
6973
- search: "Search title / description / feeling / task ID",
6974
- newTask: "New task",
6975
- tree: "Task tree",
6976
- select: "Select",
6977
- cancelSelect: "Exit select",
6500
+ title: "Actions",
6501
+ hint: "runtime registry \xB7 read-only",
6502
+ switchHint: "Allowed origins are stored locally and apply immediately: only checked origins may call the action; others get ACTION_ORIGIN_DENIED.",
6503
+ hostHint: "Allowed origins for host actions; items marked pinned cannot be changed.",
6504
+ originsLabel: "Origins",
6505
+ originUi: "UI",
6506
+ originPlugin: "Plugin",
6507
+ originAgent: "Agent",
6508
+ originSync: "Sync",
6509
+ originsSaving: "Saving\u2026",
6510
+ originsToast: "Allowed origins updated",
6511
+ originsFail: "Failed to update allowed origins",
6512
+ originsEmpty: "Keep at least one origin",
6513
+ originsUnsupported: "This action does not support this origin",
6514
+ originsPinned: "Pinned",
6515
+ originsPinnedHint: "Allowed origins are pinned for this action (security constraint) and cannot be changed",
6516
+ originsDefaultOn: "Allowed by default",
6517
+ originsDefaultOff: "Off by default, can be enabled",
6518
+ domain: "Domain",
6519
+ versionLabel: "Version",
6520
+ shell: "Host",
6521
+ count: function(shown, total) {
6522
+ return shown + " / " + total + " actions";
6523
+ },
6524
+ search: "Search name, description, params (matches highlighted)",
6525
+ filterReq: "Required",
6978
6526
  all: "All",
6979
- empty: "No tasks in this view",
6527
+ onlyRequired: "Has required",
6528
+ onlyOptional: "No required",
6529
+ filterType: "Param type",
6530
+ allTypes: "All types",
6531
+ filterOrigin: "Origins",
6532
+ allOrigins: "All origins",
6533
+ colName: "Param",
6534
+ colType: "Type",
6535
+ colReq: "Required",
6536
+ colExtra: "Default / enum / constraints",
6537
+ colDesc: "Description",
6538
+ required: "required",
6539
+ optional: "optional",
6540
+ noParams: "No parameters",
6541
+ paramCount: function(n) {
6542
+ return n + " params";
6543
+ },
6544
+ params: "Parameters",
6545
+ requiredCount: function(n) {
6546
+ return n + " required";
6547
+ },
6548
+ examples: "Examples",
6549
+ noExamples: "No examples",
6550
+ copy: "Copy",
6551
+ copied: "Copied",
6552
+ raw: "Raw JSON Schema",
6980
6553
  loading: "Loading\u2026",
6981
- error: "Failed: ",
6982
- save: "Save",
6983
- cancel: "Cancel",
6984
- create: "Create",
6985
- close: "Close",
6986
- taskId: "Task ID",
6987
- stepContent: "Content",
6988
- stepContentHint: "Title, description, schedule",
6989
- stepTags: "Tags",
6990
- stepTagsHint: "Search existing tags, or type a new one and press Enter",
6991
- stepTable: "Table",
6992
- stepTableHint: "Pick the table this task belongs to",
6993
- stepTimeline: "Timeline",
6994
- stepTimelineHint: "Attach to an existing timeline or create one",
6995
- stepWorkspace: "Workspace",
6996
- stepWorkspaceHint: "Link to a workspace (optional)",
6997
- stepConfirm: "Review",
6998
- stepConfirmHint: "Check before creating",
6999
- stepBelong: "Placement",
7000
- stepBelongHint: "Timeline, workspace, table",
7001
- stepPlan: "Schedule",
7002
- stepPlanHint: "Status, priority, dates",
7003
- confirmHint: "Review the summary, then Create. Title, description and placement stay editable afterwards.",
7004
- createSteps: "Create steps",
7005
- nextStep: "Next",
7006
- prevStep: "Back",
7007
- workspace: "Workspace",
7008
- addGroup: "New group",
7009
- addTable: "New table",
7010
- rename: "Rename",
7011
- del: "Delete",
7012
- editGroup: "Edit group",
7013
- editTable: "Edit table",
7014
- nodeName: "Name",
7015
- nodeDesc: "Description (optional)",
7016
- nodeDescPh: "Say what this table is for; agents can find it by description keywords",
7017
- needName: "Name is required",
7018
- nodeDescSave: "Description saved",
7019
- deleteConfirm: "Delete this node and its subtree? Tasks under it will be soft-deleted.",
7020
- deleteTaskConfirm: "Delete this task? This cannot be undone.",
7021
- batchDelete: "Delete",
7022
- batchDeleteConfirm: "Delete {n} selected tasks? This cannot be undone.",
7023
- deletePartial: "some deletes failed",
7024
- claimSelected: "Claim",
7025
- claimSummary: "Claimed {ok}; failed {fail}: already claimed {already}, not claimable {notClaimable}, missing {missing}",
7026
- claimedCount: "Claimed {n} task(s)",
7027
- root: "All tasks",
7028
- manager: "Manage",
7029
- treeSearch: "Search groups / tables",
7030
- treeHint: "Pick a table to filter tasks; Manage mode allows drag, rename and delete",
7031
- groups: "groups",
7032
- tables: "tables",
7033
- treeNoMatch: "No matching node",
7034
- tags: "Tags",
7035
- tagsHint: "Group tasks with tags (Work/Life/Study/Dev are tags now)",
7036
- tagPlaceholder: "Comma separated, e.g. Work, Dev",
7037
- tagFilter: "Filter by tag",
7038
- allTags: "All tags",
7039
- noTags: "No tags",
7040
- tagSearchPlaceholder: "Search tag name",
7041
- tagNoMatch: "No matching tag",
7042
- loadingMore: "Loading\u2026",
7043
- noMore: "No more",
7044
- tagSelected: "Selected",
7045
- tagRemove: "Remove",
7046
- tagSearchExisting: "Search existing tags",
7047
- tagNewPlaceholder: "New tag \u2014 press Enter to add, comma for several",
7048
- tagAdd: "Add",
7049
- tagNoPick: "No tags picked yet \u2014 click one below or type a new name",
7050
- workspaceFilter: "Filter by workspace",
7051
- allWorkspaces: "All workspaces",
7052
- noWorkspaces: "No workspaces",
7053
- noWorkspace: "No workspace",
7054
- workspaceSearchPlaceholder: "Search workspace name",
7055
- workspaceNoMatch: "No matching workspace",
7056
- workspaceSelected: "Selected workspaces",
7057
- workspaceRemove: "Remove",
7058
- untagged: "Untagged",
7059
- publish: "Published",
7060
- target: "Target",
7061
- done: "Done",
7062
- shutdown: "Closed",
7063
- priority: "Priority",
7064
- difficulty: "Difficulty",
7065
- desc: "Description",
7066
- difficultyUnset: "Unset",
7067
- difficultyMissing: "Missing difficulty only",
7068
- difficultyUnsetHint: "Blank = unset (0), not easiest; choose 1\u20135",
7069
- difficultyGuideTitle: "How to rate difficulty",
7070
- difficultyGuide: "1: a small copy/style change; 2: a local feature in one module; 3: 2\u20133 modules or data-reading changes; 4: storage, migrations, sync or build pipelines; 5: cross-process architecture changes or multi-stage validation. Consider changed file count, data migrations and test scope.",
7071
- review: "Reflection",
7072
- reviewHint: "Record a feeling in any status (optional)",
7073
- reviewPlaceholder: "e.g. smooth, stuck on the API, easier than expected",
7074
- reviewAdd: "Add feeling",
7075
- status: "Status",
7076
- publishDate: "Publish date",
7077
- targetDate: "Target date",
7078
- doneDate: "Done date",
7079
- shutdownDate: "Close date",
7080
- table: "Task table",
7081
- titleField: "Title",
7082
- timeline: "Timeline",
7083
- restart: "Restart",
7084
- complete: "Complete",
7085
- shutdownOp: "Close",
7086
- selected: "Selected",
7087
- selectedTasks: "Selected tasks",
7088
- batchTimeline: "Merge timeline",
7089
- batchMigrate: "Move table",
7090
- refresh: "Refresh",
7091
- clear: "Clear",
7092
- searchTable: "Search tables",
7093
- noTable: "No matching table",
7094
- baseLabel: "Base task",
7095
- targetLabel: "Target table",
7096
- batchCount: "Selected",
7097
- hasTimeline: "has timeline",
7098
- noTimelineTag: "no timeline",
7099
- group: "Group",
7100
- chooseBase: "Choose a base task (it supplies the timeline)",
7101
- chooseTable: "Choose target table",
7102
- timelineTitle: "Task timeline",
7103
- newTimeline: "New timeline task",
7104
- restartTitle: "Restart task",
7105
- noTimeline: "No associated timeline",
7106
- restartPriorityHint: "Restarted tasks require priority 1\u201310; 0 is only for completed or closed tasks.",
7107
- restartPriorityError: "Enter a priority from 1 to 10 to restart; 0 is only for completed or closed tasks.",
7108
- activePriorityError: "Active tasks require a priority from 1 to 10; 0 is only for completed or closed tasks.",
7109
- confirm: "OK",
7110
- difficultyHint: "Set difficulty 1\u20135 before completing; 0 is counted as unset",
7111
- emptyTree: "Task tree is empty",
7112
- appear: "Show",
7113
- hide: "Hide",
7114
- move: "Move to",
7115
- source: "Source",
7116
- page: "Page",
7117
- total: "Total",
7118
- items: "items",
7119
- doneSuccess: "Completed",
7120
- saved: "Saved",
7121
- created: "Created",
7122
- updated: "Updated",
7123
- edit: "Edit",
7124
- editTitle: "Edit task",
7125
- editHintDone: "Completed: title, description, feeling and difficulty can change; priority was cleared on completion.",
7126
- editHintOpen: "Not completed: title, description, priority, feeling and difficulty can change.",
7127
- deleted: "Deleted",
7128
- needTitle: "Title is required",
7129
- needTable: "Pick a task table",
7130
- needDate: "Date is required",
7131
- needBase: "Pick a base task",
7132
- needDifficulty: "Pick a difficulty"
6554
+ loadFail: "Failed to read action schema",
6555
+ retry: "Retry",
6556
+ empty: "No matching action",
6557
+ emptyRegistry: "This domain has no registered action",
6558
+ envelope: "Default",
6559
+ enumLabel: "Enum",
6560
+ range: "Range",
6561
+ length: "Length",
6562
+ pattern: "Pattern",
6563
+ format: "Format",
6564
+ items: "Items"
7133
6565
  }
7134
6566
  };
7135
- }
7136
- });
7137
-
7138
- // packages/addons/lib/icon-label.cjs
7139
- var require_icon_label = __commonJS({
7140
- "packages/addons/lib/icon-label.cjs"(exports2, module2) {
7141
- "use strict";
7142
- var VISUALLY_HIDDEN = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap";
7143
- module2.exports = function iconLabel(h, Icon2, text, options) {
7144
- var opts = options || {};
7145
- var cls = "wb-icon-label" + (opts.short ? " wb-icon-label-short" : "") + (Icon2 ? "" : " wb-icon-label-fallback");
7146
- return h(
7147
- "span",
7148
- { className: cls, title: typeof text === "string" ? text : void 0 },
7149
- Icon2 ? h(Icon2, { size: 14, strokeWidth: 2, "aria-hidden": true, focusable: false }) : null,
7150
- h("span", { className: "wb-icon-label-text" }, text)
7151
- );
7152
- };
7153
- module2.exports.styles = ".wb-icon-label{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;text-align:start}.wb-icon-label>svg{flex:none}.wb-icon-label>span{min-width:0;overflow-wrap:anywhere}button .wb-icon-label:not(.wb-icon-label-fallback) .wb-icon-label-text{" + VISUALLY_HIDDEN + "}button .wb-icon-label.wb-icon-label-short .wb-icon-label-text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}";
7154
- }
7155
- });
7156
-
7157
- // packages/addons/lib/icons.cjs
7158
- var require_icons = __commonJS({
7159
- "packages/addons/lib/icons.cjs"(exports2, module2) {
7160
- "use strict";
7161
- var h = require("react").createElement;
7162
- function create(prefix, glyphs, options) {
7163
- var opts = options || {};
7164
- var ICONS = Object.assign({}, glyphs);
7165
- function Icon2(props) {
7166
- var C = ICONS[props.name] || (opts.fallback ? ICONS[opts.fallback] : null);
7167
- if (!C) return null;
7168
- var size = typeof opts.sizeOf === "function" ? opts.sizeOf(props) : props.size || 14;
7169
- var cls = prefix + "-svg" + (opts.classNameAppend && props.className ? " " + props.className : "");
7170
- var attrs = {
7171
- size,
7172
- strokeWidth: props.strokeWidth || 2,
7173
- "aria-hidden": "true",
7174
- className: cls
7175
- };
7176
- if (opts.focusable) attrs.focusable = false;
7177
- return h(C, attrs);
7178
- }
7179
- var set = { ICONS, Icon: Icon2 };
7180
- set.label = function(name, text, options2) {
7181
- return require_icon_label()(h, function NamedIcon(props) {
7182
- return h(Icon2, Object.assign({ name }, props));
7183
- }, text, options2);
7184
- };
7185
- if (opts.tabIcon) {
7186
- set.tabIcon = function(name) {
7187
- return function TabIcon() {
7188
- return h(Icon2, { name, size: 14 });
7189
- };
7190
- };
6567
+ function typeLabel(schema) {
6568
+ if (!schema || typeof schema !== "object") return "";
6569
+ if (Array.isArray(schema.type)) return schema.type.join(" | ");
6570
+ if (typeof schema.type === "string") {
6571
+ if (schema.type === "array" && schema.items) {
6572
+ var inner = typeLabel(schema.items);
6573
+ return inner ? inner + "[]" : "array";
6574
+ }
6575
+ return schema.type;
7191
6576
  }
7192
- return set;
6577
+ if (Array.isArray(schema.oneOf)) return schema.oneOf.map(typeLabel).filter(Boolean).join(" | ");
6578
+ if (Array.isArray(schema.anyOf)) return schema.anyOf.map(typeLabel).filter(Boolean).join(" | ");
6579
+ return "";
7193
6580
  }
7194
- module2.exports = { create };
7195
- }
7196
- });
7197
-
7198
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
7199
- var toKebabCase;
7200
- var init_toKebabCase = __esm({
7201
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs"() {
7202
- toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
7203
- }
7204
- });
7205
-
7206
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
7207
- function toLucideIconData(iconName, iconNode, aliases = []) {
7208
- if (iconNode == null) {
7209
- throw new Error("[lucide]: iconNode is required when icon name is used");
7210
- }
7211
- return {
7212
- name: toKebabCase(iconName),
7213
- size: 24,
7214
- node: iconNode,
7215
- ...aliases.length > 0 ? { aliases } : {}
7216
- };
7217
- }
7218
- var init_toLucideIconData = __esm({
7219
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs"() {
7220
- init_toKebabCase();
7221
- }
7222
- });
7223
-
7224
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
7225
- var toCamelCase;
7226
- var init_toCamelCase = __esm({
7227
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs"() {
7228
- toCamelCase = (string) => {
7229
- let out = "";
7230
- let upperNext = false;
7231
- for (const ch of string) {
7232
- if (ch === "-" || ch === "_" || ch <= " ") {
7233
- upperNext = out.length > 0;
7234
- continue;
7235
- }
7236
- if (out.length === 0) {
7237
- out += ch.toLowerCase();
7238
- } else {
7239
- out += upperNext ? ch.toUpperCase() : ch;
7240
- }
7241
- upperNext = false;
6581
+ function typeNames(schema) {
6582
+ var label = typeLabel(schema);
6583
+ if (!label) return [];
6584
+ return label.split("|").map(function(x) {
6585
+ return x.trim().replace(/\[\]$/, "");
6586
+ }).filter(Boolean);
6587
+ }
6588
+ function scalar(value) {
6589
+ if (typeof value === "string") return JSON.stringify(value);
6590
+ return String(value);
6591
+ }
6592
+ function extraText(schema, t) {
6593
+ if (!schema || typeof schema !== "object") return "";
6594
+ var parts = [];
6595
+ if (Object.prototype.hasOwnProperty.call(schema, "default")) {
6596
+ parts.push(t.envelope + " " + scalar(schema.default));
7242
6597
  }
7243
- return out;
7244
- };
7245
- }
7246
- });
7247
-
7248
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
7249
- var toPascalCase;
7250
- var init_toPascalCase = __esm({
7251
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs"() {
7252
- init_toCamelCase();
7253
- toPascalCase = (string) => {
7254
- const camelCase = toCamelCase(string);
7255
- return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
7256
- };
7257
- }
7258
- });
7259
-
7260
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
7261
- var mergeClasses;
7262
- var init_mergeClasses = __esm({
7263
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs"() {
7264
- mergeClasses = (...classes) => classes.filter((className, index, array) => {
7265
- return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
7266
- }).join(" ").trim();
7267
- }
7268
- });
7269
-
7270
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
7271
- var defaultAttributes;
7272
- var init_defaultAttributes = __esm({
7273
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs"() {
7274
- defaultAttributes = {
7275
- xmlns: "http://www.w3.org/2000/svg",
7276
- width: 24,
7277
- height: 24,
7278
- viewBox: "0 0 24 24",
7279
- fill: "none",
7280
- stroke: "currentColor",
7281
- "stroke-width": 2,
7282
- "stroke-linecap": "round",
7283
- "stroke-linejoin": "round"
7284
- };
7285
- }
7286
- });
7287
-
7288
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
7289
- function isDefined(value) {
7290
- return value !== null && value !== void 0;
7291
- }
7292
- function buildLucideIconNode(icon, params = {}) {
7293
- const attributeNames = params.attributeNames ?? {};
7294
- const getAttributeName = (attributeName) => attributeNames[attributeName] ?? attributeName;
7295
- const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes["width"];
7296
- const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes["height"];
7297
- const aliasClassNames = icon.aliases?.filter((alias) => typeof alias === "string" && alias.trim() !== "").map((alias) => `lucide-${alias}`) ?? [];
7298
- const iconClassNames = [...icon.name ? [`lucide-${icon.name}`] : [], ...aliasClassNames];
7299
- const classNamesFromClassName = params.className?.split(" ").filter(Boolean) ?? [];
7300
- const className = params.includeDefaultClasses === false ? mergeClasses(...classNamesFromClassName) : mergeClasses("lucide", ...iconClassNames, ...classNamesFromClassName);
7301
- const calculatedStrokeWidth = params.absoluteStrokeWidth ? Number(params.strokeWidth ?? defaultAttributes["stroke-width"]) * Number(icon.size ?? icon.width ?? defaultAttributes["width"]) / Number(params.size ?? params.width ?? defaultAttributes["width"]) : params.strokeWidth ?? defaultAttributes["stroke-width"];
7302
- const attributes = {
7303
- ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {
7304
- attrs[getAttributeName(attrName)] = value;
7305
- return attrs;
7306
- }, {}),
7307
- ..."color" in params && params.color && {
7308
- [getAttributeName("stroke")]: params.color
7309
- },
7310
- ..."size" in params && isDefined(params.size) && {
7311
- [getAttributeName("width")]: params.size,
7312
- [getAttributeName("height")]: params.size
7313
- },
7314
- ..."width" in params && isDefined(params.width) && {
7315
- [getAttributeName("width")]: params.width
7316
- },
7317
- ..."height" in params && isDefined(params.height) && {
7318
- [getAttributeName("height")]: params.height
7319
- },
7320
- [getAttributeName("stroke-width")]: calculatedStrokeWidth,
7321
- ...className && {
7322
- [getAttributeName("class")]: className
7323
- },
7324
- [getAttributeName("viewBox")]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
7325
- ...params.hasA11yProp === false ? {
7326
- [getAttributeName("aria-hidden")]: "true"
7327
- } : {},
7328
- ..."attributes" in params && params.attributes
7329
- };
7330
- return [
7331
- "svg",
7332
- attributes,
7333
- icon.node.map((child) => {
7334
- const [name, attrs, children] = child;
7335
- const nextAttrs = params.nonScalingStroke ? { [getAttributeName("vector-effect")]: "non-scaling-stroke", ...attrs } : attrs;
7336
- return children ? [name, nextAttrs, children] : [name, nextAttrs];
7337
- })
7338
- ];
7339
- }
7340
- var init_buildLucideIconNode = __esm({
7341
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs"() {
7342
- init_defaultAttributes();
7343
- init_mergeClasses();
7344
- }
7345
- });
7346
-
7347
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
7348
- function buildLucideIconForReact(icon, params = {}) {
7349
- return buildLucideIconNode(icon, {
7350
- ...params,
7351
- attributeNames: {
7352
- ...params.attributeNames,
7353
- class: "className",
7354
- "stroke-width": "strokeWidth",
7355
- "stroke-linecap": "strokeLinecap",
7356
- "stroke-linejoin": "strokeLinejoin",
7357
- "vector-effect": "vectorEffect"
6598
+ if (Array.isArray(schema.enum)) {
6599
+ parts.push(t.enumLabel + " " + schema.enum.map(scalar).join(" / "));
6600
+ }
6601
+ if (typeof schema.minimum === "number" || typeof schema.maximum === "number") {
6602
+ var lo = typeof schema.minimum === "number" ? schema.minimum : null;
6603
+ var hi = typeof schema.maximum === "number" ? schema.maximum : null;
6604
+ if (lo !== null && hi !== null) parts.push(t.range + " \u2265" + lo + " \u4E14 \u2264" + hi);
6605
+ else if (lo !== null) parts.push(t.range + " \u2265" + lo);
6606
+ else parts.push(t.range + " \u2264" + hi);
6607
+ }
6608
+ if (typeof schema.minLength === "number" || typeof schema.maxLength === "number") {
6609
+ parts.push(t.length + " " + (schema.minLength ?? 0) + "\u2013" + (schema.maxLength ?? "\u221E"));
6610
+ }
6611
+ if (typeof schema.minItems === "number" || typeof schema.maxItems === "number") {
6612
+ parts.push(t.items + " " + (schema.minItems ?? 0) + "\u2013" + (schema.maxItems ?? "\u221E"));
6613
+ }
6614
+ if (typeof schema.pattern === "string") parts.push(t.pattern + " " + schema.pattern);
6615
+ if (typeof schema.format === "string") parts.push(t.format + " " + schema.format);
6616
+ return parts.join(" \xB7 ");
7358
6617
  }
7359
- });
7360
- }
7361
- var init_buildLucideIconForReact = __esm({
7362
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs"() {
7363
- init_buildLucideIconNode();
7364
- }
7365
- });
7366
-
7367
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
7368
- var hasA11yProp;
7369
- var init_hasA11yProp = __esm({
7370
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs"() {
7371
- hasA11yProp = (props) => {
7372
- for (const prop in props) {
7373
- if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
7374
- return true;
6618
+ function paramRows(action) {
6619
+ var input = action && action.input && typeof action.input === "object" ? action.input : {};
6620
+ var props = input.properties && typeof input.properties === "object" ? input.properties : {};
6621
+ var required = Array.isArray(input.required) ? input.required : [];
6622
+ return Object.keys(props).map(function(key) {
6623
+ var schema = props[key] && typeof props[key] === "object" ? props[key] : {};
6624
+ return {
6625
+ name: key,
6626
+ schema,
6627
+ type: typeLabel(schema),
6628
+ types: typeNames(schema),
6629
+ required: required.indexOf(key) >= 0,
6630
+ description: typeof schema.description === "string" ? schema.description : ""
6631
+ };
6632
+ });
6633
+ }
6634
+ module2.exports = function createActionSchemaView(options) {
6635
+ var raw = String(options.domain || "");
6636
+ var SOURCE = options.source === "actions.list" ? "actions.list" : "actionSchema";
6637
+ var DOMAIN = SOURCE === "actions.list" ? raw : raw.indexOf("wb-addon-") === 0 ? raw : "wb-addon-" + raw;
6638
+ var LIST_DOMAIN = options.listDomain ? String(options.listDomain) : DOMAIN;
6639
+ var prefix = options.prefix;
6640
+ var P = prefix + "-as";
6641
+ var Icon2 = options.Icon || null;
6642
+ var injectCss = require_action_schema_style()(prefix, DOMAIN);
6643
+ var Highlight = createHighlight(P);
6644
+ function icon(name, size) {
6645
+ return Icon2 ? h(Icon2, { name, size: size || 14 }) : null;
6646
+ }
6647
+ function plainCopy(text) {
6648
+ if (typeof document === "undefined") return;
6649
+ var area = document.createElement("textarea");
6650
+ area.value = text;
6651
+ area.setAttribute("readonly", "readonly");
6652
+ area.style.position = "fixed";
6653
+ area.style.opacity = "0";
6654
+ document.body.appendChild(area);
6655
+ area.select();
6656
+ try {
6657
+ document.execCommand("copy");
6658
+ } catch (e) {
7375
6659
  }
6660
+ document.body.removeChild(area);
7376
6661
  }
7377
- return false;
7378
- };
7379
- }
7380
- });
7381
-
7382
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs
7383
- var import_react, LucideContext, useLucideContext;
7384
- var init_context = __esm({
7385
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/context.mjs"() {
7386
- "use strict";
7387
- "use client";
7388
- import_react = require("react");
7389
- LucideContext = (0, import_react.createContext)({});
7390
- useLucideContext = () => (0, import_react.useContext)(LucideContext);
7391
- }
7392
- });
7393
-
7394
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs
7395
- var import_react2, Icon;
7396
- var init_Icon = __esm({
7397
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.mjs"() {
7398
- "use strict";
7399
- "use client";
7400
- import_react2 = require("react");
7401
- init_mergeClasses();
7402
- init_buildLucideIconForReact();
7403
- init_hasA11yProp();
7404
- init_context();
7405
- Icon = (0, import_react2.forwardRef)(
7406
- ({
7407
- color,
7408
- size,
7409
- width,
7410
- height,
7411
- strokeWidth,
7412
- absoluteStrokeWidth,
7413
- nonScalingStroke,
7414
- className = "",
7415
- children,
7416
- iconNode = [],
7417
- icon = {
7418
- node: iconNode,
7419
- aliases: [],
7420
- size: 24
7421
- },
7422
- ...rest
7423
- }, ref) => {
7424
- const {
7425
- size: contextSize = 24,
7426
- strokeWidth: contextStrokeWidth = 2,
7427
- absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
7428
- nonScalingStroke: contextNonScalingStroke = false,
7429
- color: contextColor = "currentColor",
7430
- className: contextClass = ""
7431
- } = useLucideContext() ?? {};
7432
- const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);
7433
- const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {
7434
- color: color ?? contextColor,
7435
- width: width ?? size ?? contextSize,
7436
- height: height ?? size ?? contextSize,
7437
- strokeWidth: strokeWidth ?? contextStrokeWidth,
7438
- absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,
7439
- nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,
7440
- className: mergeClasses(contextClass, className),
7441
- hasA11yProp: hasAccessibleProp,
7442
- attributes: rest
7443
- });
7444
- return (0, import_react2.createElement)(
7445
- name,
7446
- {
7447
- ref,
7448
- ...svgAttributes
7449
- },
7450
- [
7451
- ...builtIconNode.map(([tag, attrs]) => (0, import_react2.createElement)(tag, attrs)),
7452
- ...Array.isArray(children) ? children : [children]
7453
- ]
7454
- );
6662
+ function ActionSchemaView(props) {
6663
+ var lang = props.lang === "en" ? "en" : "zh";
6664
+ var t = COPY[lang];
6665
+ var api = props.api;
6666
+ var snapState = React.useState(null);
6667
+ var snap = snapState[0], setSnap = snapState[1];
6668
+ var errState = React.useState("");
6669
+ var err = errState[0], setErr = errState[1];
6670
+ var loadingState = React.useState(true);
6671
+ var loading = loadingState[0], setLoading = loadingState[1];
6672
+ var reloadState = React.useState(0);
6673
+ var reload = reloadState[0], setReload = reloadState[1];
6674
+ var queryState = React.useState("");
6675
+ var query = queryState[0], setQuery = queryState[1];
6676
+ var reqState = React.useState("all");
6677
+ var reqMode = reqState[0], setReqMode = reqState[1];
6678
+ var typeState = React.useState("");
6679
+ var typePick = typeState[0], setTypePick = typeState[1];
6680
+ var originFilterState = React.useState("");
6681
+ var originPick = originFilterState[0], setOriginPick = originFilterState[1];
6682
+ var toastState = React.useState("");
6683
+ var toast = toastState[0], setToast = toastState[1];
6684
+ var savingState = React.useState("");
6685
+ var saving = savingState[0], setSaving = savingState[1];
6686
+ var foldsState = React.useState({});
6687
+ var folds = foldsState[0], setFolds = foldsState[1];
6688
+ React.useEffect(function() {
6689
+ injectCss();
6690
+ }, []);
6691
+ React.useEffect(function() {
6692
+ var alive = true;
6693
+ setLoading(true);
6694
+ setErr("");
6695
+ var pending;
6696
+ var actionName = SOURCE === "actions.list" ? "actions.list" : DOMAIN.replace(/^wb-addon-/, "") + ".actionSchema";
6697
+ var callArgs = SOURCE === "actions.list" ? { detail: true, domain: LIST_DOMAIN } : void 0;
6698
+ if (api && typeof api.call === "function") {
6699
+ pending = Promise.resolve(api.call(actionName, callArgs)).then(function(r) {
6700
+ if (r && r.ok === false) return r;
6701
+ return r && r.result || r;
6702
+ });
6703
+ } else {
6704
+ pending = Promise.reject(new Error("no call api"));
6705
+ }
6706
+ Promise.resolve(pending).then(function(r) {
6707
+ if (!alive) return;
6708
+ if (!r || r.ok === false) {
6709
+ setSnap(null);
6710
+ setErr(String(r && (r.error || r.text) || t.loadFail));
6711
+ } else {
6712
+ setSnap(r);
6713
+ }
6714
+ setLoading(false);
6715
+ }, function(e) {
6716
+ if (!alive) return;
6717
+ setSnap(null);
6718
+ setErr(String(e && e.message || e || t.loadFail));
6719
+ setLoading(false);
6720
+ });
6721
+ return function() {
6722
+ alive = false;
6723
+ };
6724
+ }, [reload]);
6725
+ function copy(text) {
6726
+ var done = function() {
6727
+ setToast(t.copied);
6728
+ };
6729
+ if (typeof navigator !== "undefined" && navigator.clipboard && typeof navigator.clipboard.writeText === "function") {
6730
+ navigator.clipboard.writeText(text).then(done, function() {
6731
+ plainCopy(text);
6732
+ done();
6733
+ });
6734
+ return;
6735
+ }
6736
+ plainCopy(text);
6737
+ done();
6738
+ }
6739
+ var ORIGINS = ["ui", "plugin", "agent", "sync"];
6740
+ var originText = { ui: t.originUi, plugin: t.originPlugin, agent: t.originAgent, sync: t.originSync };
6741
+ function setOrigins(action, origin) {
6742
+ var name = action.name;
6743
+ var current = Array.isArray(action.origins) ? action.origins.slice() : [];
6744
+ var index = current.indexOf(origin);
6745
+ var next = index >= 0 ? current.filter(function(o) {
6746
+ return o !== origin;
6747
+ }) : current.concat([origin]);
6748
+ if (next.length === 0) {
6749
+ setToast(t.originsEmpty);
6750
+ return;
6751
+ }
6752
+ next = ORIGINS.filter(function(o) {
6753
+ return next.indexOf(o) >= 0;
6754
+ });
6755
+ setSaving(name);
6756
+ setToast("");
6757
+ var fail = function(e) {
6758
+ setSaving("");
6759
+ setToast(t.originsFail + "\uFF1A" + String(e && e.message || e || ""));
6760
+ };
6761
+ var done = function(r) {
6762
+ setSaving("");
6763
+ var payload = r && typeof r === "object" && Object.prototype.hasOwnProperty.call(r, "result") ? r.result : r;
6764
+ if (r && r.ok === false) {
6765
+ setToast(t.originsFail + "\uFF1A" + String(r.error || r.text || ""));
6766
+ return;
6767
+ }
6768
+ var value = payload && Array.isArray(payload.origins) ? payload.origins : next;
6769
+ var source = payload && typeof payload.source === "string" ? payload.source : action.originsSource;
6770
+ setSnap(function(prev) {
6771
+ if (!prev || !Array.isArray(prev.actions)) return prev;
6772
+ return Object.assign({}, prev, {
6773
+ actions: prev.actions.map(function(a) {
6774
+ if (!a || a.name !== name) return a;
6775
+ return Object.assign({}, a, { origins: value, originsSource: source });
6776
+ })
6777
+ });
6778
+ });
6779
+ setToast(t.originsToast);
6780
+ };
6781
+ if (!api || typeof api.call !== "function") {
6782
+ fail(new Error("no call api"));
6783
+ return;
6784
+ }
6785
+ Promise.resolve(api.call("actions.setActionOrigins", { action: name, origins: next })).then(done, fail);
6786
+ }
6787
+ function paramsOpen(action) {
6788
+ if (Object.prototype.hasOwnProperty.call(folds, action.name)) return folds[action.name] === true;
6789
+ return Boolean(String(query || "").trim()) || reqMode !== "all" || Boolean(typePick);
6790
+ }
6791
+ function resetFolds() {
6792
+ setFolds(function(prev) {
6793
+ return Object.keys(prev).length ? {} : prev;
6794
+ });
6795
+ }
6796
+ var all = snap && Array.isArray(snap.actions) ? snap.actions.filter(function(a) {
6797
+ return a && a.domain === DOMAIN;
6798
+ }) : [];
6799
+ var info = snap && Array.isArray(snap.domains) ? snap.domains.filter(function(d) {
6800
+ return d && d.id === DOMAIN;
6801
+ })[0] || null : null;
6802
+ var typeOptions = [];
6803
+ all.forEach(function(a) {
6804
+ paramRows(a).forEach(function(row) {
6805
+ row.types.forEach(function(name) {
6806
+ if (typeOptions.indexOf(name) < 0) typeOptions.push(name);
6807
+ });
6808
+ });
6809
+ });
6810
+ typeOptions.sort();
6811
+ var kw = String(query || "").trim();
6812
+ var q = kw.toLowerCase();
6813
+ var visible = all.filter(function(a) {
6814
+ var rows = paramRows(a);
6815
+ if (q) {
6816
+ var hay = [a.name || "", a.description || ""].concat(rows.map(function(row) {
6817
+ return row.name + " " + row.type + " " + row.description;
6818
+ })).join(" ").toLowerCase();
6819
+ if (hay.indexOf(q) < 0) return false;
6820
+ }
6821
+ var hasRequired = rows.some(function(row) {
6822
+ return row.required;
6823
+ });
6824
+ if (reqMode === "required" && !hasRequired) return false;
6825
+ if (reqMode === "optional" && hasRequired) return false;
6826
+ if (typePick && !rows.some(function(row) {
6827
+ return row.types.indexOf(typePick) >= 0;
6828
+ })) return false;
6829
+ if (originPick && (!Array.isArray(a.origins) || a.origins.indexOf(originPick) < 0)) return false;
6830
+ return true;
6831
+ });
6832
+ function paramRow(row) {
6833
+ var extra = extraText(row.schema, t);
6834
+ return h(
6835
+ "tr",
6836
+ { key: row.name },
6837
+ h("td", { className: P + "-mono " + P + "-pname" }, Highlight.hit(row.name, kw)),
6838
+ h("td", { className: P + "-mono " + P + "-ptype" }, Highlight.hit(row.type, kw)),
6839
+ h(
6840
+ "td",
6841
+ { className: row.required ? P + "-req " + P + "-pneed" : P + "-opt " + P + "-pneed" },
6842
+ row.required ? t.required : t.optional
6843
+ ),
6844
+ // extra(默认 / 枚举 / 约束)不在过滤 haystack 里,因此也不高亮,保持「显示即命中」口径。
6845
+ h("td", { className: P + "-mono " + P + "-pextra" }, extra),
6846
+ h("td", { className: P + "-pdesc" }, Highlight.hit(row.description, kw))
6847
+ );
6848
+ }
6849
+ function originsChips(action) {
6850
+ if (!Array.isArray(action.origins)) return null;
6851
+ if (action.originsSource === "invalid") {
6852
+ return h("span", { className: P + "-badge " + P + "-locked", title: t.originsPinnedHint, "data-origins-invalid": action.name }, t.originsPinned);
6853
+ }
6854
+ var busy = saving === action.name;
6855
+ var pinned = action.name === "actions.setActionOrigins";
6856
+ var supported = Array.isArray(action.originsDeclared) ? action.originsDeclared : action.origins;
6857
+ return h(
6858
+ "div",
6859
+ { className: P + "-origins", "data-origins-row": action.name },
6860
+ h("span", { className: P + "-origins-label" }, t.originsLabel),
6861
+ ORIGINS.map(function(origin) {
6862
+ var on = action.origins.indexOf(origin) >= 0;
6863
+ var allowed = supported.indexOf(origin) >= 0;
6864
+ var preset = Array.isArray(action.originsDefault) ? action.originsDefault : supported;
6865
+ var byDefault = preset.indexOf(origin) >= 0;
6866
+ return h(
6867
+ "label",
6868
+ {
6869
+ key: origin,
6870
+ className: P + "-origin" + (allowed ? "" : " " + P + "-origin-off"),
6871
+ title: pinned ? t.originsPinnedHint : !allowed ? t.originsUnsupported : originText[origin] + " \xB7 " + action.name + " \xB7 " + (byDefault ? t.originsDefaultOn : t.originsDefaultOff)
6872
+ },
6873
+ h("input", {
6874
+ type: "checkbox",
6875
+ checked: on,
6876
+ disabled: busy || pinned || !allowed,
6877
+ "data-origin": origin,
6878
+ "data-origin-row": action.name,
6879
+ "data-origin-supported": allowed ? "1" : "0",
6880
+ onChange: function() {
6881
+ setOrigins(action, origin);
6882
+ }
6883
+ }),
6884
+ h("span", null, originText[origin])
6885
+ );
6886
+ }),
6887
+ busy ? h("span", { className: P + "-origins-label" }, t.originsSaving) : null
6888
+ );
6889
+ }
6890
+ function card(action) {
6891
+ var rows = paramRows(action);
6892
+ var required = rows.filter(function(row) {
6893
+ return row.required;
6894
+ }).length;
6895
+ var open = paramsOpen(action);
6896
+ var examples = Array.isArray(action.examples) ? action.examples : [];
6897
+ return h(
6898
+ "div",
6899
+ { className: P + "-card", key: action.name },
6900
+ h(
6901
+ "div",
6902
+ { className: P + "-cardhead" },
6903
+ h(
6904
+ "div",
6905
+ { className: P + "-cardmeta" },
6906
+ h("code", { className: P + "-mono" }, Highlight.hit(action.name, kw)),
6907
+ h("span", { className: P + "-badge" }, rows.length ? t.paramCount(rows.length) : t.noParams),
6908
+ rows.some(function(row) {
6909
+ return row.required;
6910
+ }) ? h("span", { className: P + "-badge " + P + "-req" }, t.required) : null
6911
+ ),
6912
+ originsChips(action)
6913
+ ),
6914
+ action.description ? h("p", { className: P + "-desc" }, Highlight.hit(action.description, kw)) : null,
6915
+ rows.length ? h(
6916
+ Disclosure,
6917
+ {
6918
+ className: P + "-params",
6919
+ title: t.params,
6920
+ meta: required ? t.requiredCount(required) : "",
6921
+ attrs: { "data-params-fold": action.name },
6922
+ open,
6923
+ // 原生 details 自带键盘与无障碍语义,这里只记下用户的开合;
6924
+ // 筛选变化引起的程序性开合也会触发 toggle,记下的值与当次默认一致,随后由 resetFolds 清掉。
6925
+ onToggle: function(e) {
6926
+ var next = !!(e && e.currentTarget && e.currentTarget.open);
6927
+ setFolds(function(prev) {
6928
+ if (prev[action.name] === next) return prev;
6929
+ var out = Object.assign({}, prev);
6930
+ out[action.name] = next;
6931
+ return out;
6932
+ });
6933
+ }
6934
+ },
6935
+ h(
6936
+ "table",
6937
+ { className: P + "-table" },
6938
+ h("thead", null, h(
6939
+ "tr",
6940
+ null,
6941
+ h("th", null, t.colName),
6942
+ h("th", null, t.colType),
6943
+ h("th", null, t.colReq),
6944
+ h("th", null, t.colExtra),
6945
+ h("th", null, t.colDesc)
6946
+ )),
6947
+ h("tbody", null, rows.map(paramRow))
6948
+ )
6949
+ ) : h("div", { className: P + "-none" }, t.noParams),
6950
+ h(
6951
+ "div",
6952
+ { className: P + "-example" },
6953
+ h(
6954
+ "div",
6955
+ { className: P + "-examplehead" },
6956
+ h("span", { className: P + "-none" }, t.examples),
6957
+ examples.length ? h("button", {
6958
+ type: "button",
6959
+ className: P + "-copy",
6960
+ "data-copy-example": action.name,
6961
+ onClick: function() {
6962
+ copy(JSON.stringify(examples.length === 1 ? examples[0] : examples, null, 2));
6963
+ }
6964
+ }, t.copy) : null
6965
+ ),
6966
+ examples.length ? examples.map(function(example, index) {
6967
+ return h("pre", { className: P + "-pre", key: index }, JSON.stringify(example, null, 2));
6968
+ }) : h("div", { className: P + "-none" }, t.noExamples)
6969
+ ),
6970
+ h(
6971
+ Disclosure,
6972
+ { title: t.raw },
6973
+ h("pre", { className: P + "-pre" }, JSON.stringify(action.input || {}, null, 2))
6974
+ )
6975
+ );
6976
+ }
6977
+ var body;
6978
+ if (loading) {
6979
+ body = h("div", { className: P + "-empty", role: "status" }, t.loading);
6980
+ } else if (err) {
6981
+ body = h(
6982
+ "div",
6983
+ { className: P + "-error", role: "alert" },
6984
+ h("span", null, t.loadFail + "\uFF1A" + err),
6985
+ h("button", { type: "button", className: P + "-copy", onClick: function() {
6986
+ setReload(reload + 1);
6987
+ } }, t.retry)
6988
+ );
6989
+ } else if (!all.length) {
6990
+ body = h("div", { className: P + "-empty" }, t.emptyRegistry);
6991
+ } else if (!visible.length) {
6992
+ body = h("div", { className: P + "-empty" }, t.empty);
6993
+ } else {
6994
+ body = h("div", { className: P + "-list" }, visible.map(card));
6995
+ }
6996
+ return h(
6997
+ "div",
6998
+ { className: P },
6999
+ h(
7000
+ "div",
7001
+ { className: P + "-head" },
7002
+ h("h3", { className: P + "-title" }, t.title),
7003
+ h("span", { className: P + "-badge" }, t.domain + " " + DOMAIN),
7004
+ info && info.version ? h("span", { className: P + "-badge" }, t.versionLabel + " v" + info.version) : null,
7005
+ snap && snap.shellVersion ? h("span", { className: P + "-badge" }, t.shell + " v" + snap.shellVersion) : null,
7006
+ h("span", { className: P + "-badge" }, t.count(visible.length, all.length)),
7007
+ h("span", { className: P + "-none" }, t.hint)
7008
+ ),
7009
+ h("p", { className: P + "-hintline" }, SOURCE === "actions.list" ? t.hostHint : t.switchHint),
7010
+ snap ? h(
7011
+ "div",
7012
+ { className: P + "-toolbar" },
7013
+ h(
7014
+ "label",
7015
+ { className: P + "-search" },
7016
+ icon("search", 14),
7017
+ h("input", {
7018
+ type: "search",
7019
+ value: query,
7020
+ placeholder: t.search,
7021
+ "aria-label": t.search,
7022
+ onChange: function(e) {
7023
+ setQuery(e.target.value);
7024
+ resetFolds();
7025
+ }
7026
+ })
7027
+ ),
7028
+ h(
7029
+ "label",
7030
+ { className: P + "-none" },
7031
+ t.filterReq + " ",
7032
+ h(
7033
+ "select",
7034
+ { value: reqMode, "aria-label": t.filterReq, onChange: function(e) {
7035
+ setReqMode(e.target.value);
7036
+ resetFolds();
7037
+ } },
7038
+ h("option", { value: "all" }, t.all),
7039
+ h("option", { value: "required" }, t.onlyRequired),
7040
+ h("option", { value: "optional" }, t.onlyOptional)
7041
+ )
7042
+ ),
7043
+ h(
7044
+ "label",
7045
+ { className: P + "-none" },
7046
+ t.filterType + " ",
7047
+ h(
7048
+ "select",
7049
+ { value: typePick, "aria-label": t.filterType, onChange: function(e) {
7050
+ setTypePick(e.target.value);
7051
+ resetFolds();
7052
+ } },
7053
+ h("option", { value: "" }, t.allTypes),
7054
+ typeOptions.map(function(name) {
7055
+ return h("option", { value: name, key: name }, name);
7056
+ })
7057
+ )
7058
+ ),
7059
+ h(
7060
+ "label",
7061
+ { className: P + "-none" },
7062
+ t.filterOrigin + " ",
7063
+ h(
7064
+ "select",
7065
+ { value: originPick, "aria-label": t.filterOrigin, "data-origin-filter": "", onChange: function(e) {
7066
+ setOriginPick(e.target.value);
7067
+ } },
7068
+ h("option", { value: "" }, t.allOrigins),
7069
+ ORIGINS.map(function(origin) {
7070
+ return h("option", { value: origin, key: origin }, originText[origin]);
7071
+ })
7072
+ )
7073
+ )
7074
+ ) : null,
7075
+ body,
7076
+ toast ? h("div", { className: P + "-toast", role: "status" }, toast) : null
7077
+ );
7078
+ }
7079
+ return { ActionSchemaView, DOMAIN, typeLabel, paramRows };
7080
+ };
7081
+ }
7082
+ });
7083
+
7084
+ // packages/addons/tasks/client/views/actions.cjs
7085
+ var require_actions = __commonJS({
7086
+ "packages/addons/tasks/client/views/actions.cjs"(exports2, module2) {
7087
+ "use strict";
7088
+ module2.exports = require_action_schema_view()({
7089
+ domain: "tasks",
7090
+ prefix: "wbt"
7091
+ });
7092
+ }
7093
+ });
7094
+
7095
+ // packages/addons/lib/body-copy.cjs
7096
+ var require_body_copy = __commonJS({
7097
+ "packages/addons/lib/body-copy.cjs"(exports2, module2) {
7098
+ module2.exports = {
7099
+ zh: { desc: "\u63CF\u8FF0", markdown: "Markdown \u6E32\u67D3", plainText: "\u7EAF\u6587\u672C", bodyModeToggle: "{field} \xB7 \u5F53\u524D\uFF1A{current}\uFF1B\u5207\u6362\u4E3A{target}" },
7100
+ en: { desc: "Description", markdown: "Rendered Markdown", plainText: "Plain text", bodyModeToggle: "{field} \xB7 Current: {current}; switch to {target}" }
7101
+ };
7102
+ }
7103
+ });
7104
+
7105
+ // packages/addons/tasks/client/ui/copy.cjs
7106
+ var require_copy = __commonJS({
7107
+ "packages/addons/tasks/client/ui/copy.cjs"(exports2, module2) {
7108
+ "use strict";
7109
+ var bodyCopy = require_body_copy();
7110
+ module2.exports = {
7111
+ zh: {
7112
+ timelineTasks: "\u4EFB\u52A1\u6570",
7113
+ timelineActivity: "\u6700\u8FD1\u6D3B\u52A8",
7114
+ timelineMerge: "\u5408\u5E76",
7115
+ timelineSingletons: "\u5305\u542B\u7A7A\u7EBF\u548C\u5355\u4EFB\u52A1\u65F6\u95F4\u7EBF",
7116
+ timelineSearch: "\u641C\u7D22\u65F6\u95F4\u7EBF\u6807\u9898\u6216\u63CF\u8FF0",
7117
+ timelineSearchButton: "\u641C\u7D22",
7118
+ timelineMembers: "\u6210\u5458\u4EFB\u52A1",
7119
+ timelineOrder: "\u6309\u53D1\u5E03\u65F6\u95F4\u6B63\u5E8F\u6392\u5217\uFF0C\u70B9\u51FB\u4EFB\u52A1\u6253\u5F00\u9884\u89C8",
7120
+ timelineSearchEmpty: "\u6CA1\u6709\u627E\u5230\u5305\u542B \u201C{query}\u201D \u7684\u65F6\u95F4\u7EBF",
7121
+ timelineEmpty: "\u6682\u65E0\u65F6\u95F4\u7EBF\uFF0C\u53EF\u70B9\u51FB\u201C\u65B0\u5EFA\u65F6\u95F4\u7EBF\u201D\u624B\u52A8\u5EFA\u7ACB\u3002",
7122
+ timelineOpen: "\u5F00\u542F",
7123
+ timelineDone: "\u5B8C\u6210",
7124
+ timelinePrevious: "\u4E0A\u4E00\u9875",
7125
+ timelineNext: "\u4E0B\u4E00\u9875",
7126
+ timelineTarget: "\u5408\u5E76\u5230\u65F6\u95F4\u7EBF",
7127
+ timelineMergeHint: "\u9009\u4E2D\u65F6\u95F4\u7EBF\u7684\u5168\u90E8\u6709\u6548\u4EFB\u52A1\u5C06\u5F52\u5E76\u5230\u76EE\u6807\u65F6\u95F4\u7EBF\uFF0C\u5305\u542B\u5F53\u524D\u9875\u5916\u7684\u4EFB\u52A1\uFF0C\u6392\u9664\u5DF2\u91CD\u542F\u548C\u5DF2\u5220\u9664\u4EFB\u52A1\u3002\u8BF7\u5148\u9884\u89C8\u518D\u786E\u8BA4\u3002",
7128
+ timelinePreview: "\u9884\u89C8\u5408\u5E76",
7129
+ timelinePreviewCount: "\u5C06\u79FB\u52A8 {n} \u6761\u4EFB\u52A1\u5230\u76EE\u6807\u65F6\u95F4\u7EBF\u3002",
7130
+ timelineConfirm: "\u786E\u8BA4\u5408\u5E76",
7131
+ previewLabel: "\u4EFB\u52A1\u9884\u89C8",
7132
+ previewUntitled: "\u672A\u547D\u540D\u4EFB\u52A1",
7133
+ previewOpen: "\u70B9\u51FB\u9884\u89C8\u4EFB\u52A1",
7134
+ previewHint: "\u53EA\u8BFB\u9884\u89C8\uFF1B\u9700\u8981\u4FEE\u6539\u8BF7\u70B9\u4E0B\u65B9\u300C\u7F16\u8F91\u4EFB\u52A1\u300D\u3002",
7135
+ bodyModeToggle: bodyCopy.zh.bodyModeToggle,
7136
+ bodyMode: "\u63CF\u8FF0\u4E0E\u611F\u53D7\u663E\u793A\u6A21\u5F0F",
7137
+ markdown: "Markdown \u6E32\u67D3",
7138
+ plainText: "\u7EAF\u6587\u672C",
7139
+ bodyModeLocal: "\u5DF2\u5728\u5F53\u524D\u6D4F\u89C8\u5668\u5207\u6362\uFF0C\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25\uFF1A",
7140
+ title: "\u4EFB\u52A1",
7141
+ search: "\u641C\u7D22\u6807\u9898 / \u63CF\u8FF0 / \u611F\u53D7 / \u4EFB\u52A1 ID",
7142
+ newTask: "\u65B0\u5EFA\u4EFB\u52A1",
7143
+ tree: "\u4EFB\u52A1\u6811",
7144
+ select: "\u9009\u62E9",
7145
+ cancelSelect: "\u9000\u51FA\u9009\u62E9",
7146
+ all: "\u5168\u90E8",
7147
+ empty: "\u8FD9\u4E2A\u89C6\u56FE\u8FD8\u6CA1\u6709\u4EFB\u52A1",
7148
+ loading: "\u52A0\u8F7D\u4E2D\u2026",
7149
+ error: "\u64CD\u4F5C\u5931\u8D25\uFF1A",
7150
+ save: "\u4FDD\u5B58",
7151
+ cancel: "\u53D6\u6D88",
7152
+ create: "\u521B\u5EFA",
7153
+ close: "\u5173\u95ED",
7154
+ taskId: "\u4EFB\u52A1 ID",
7155
+ stepContent: "\u5185\u5BB9",
7156
+ stepContentHint: "\u6807\u9898\u3001\u63CF\u8FF0\u4E0E\u8BA1\u5212",
7157
+ stepTags: "\u6807\u7B7E",
7158
+ stepTagsHint: "\u641C\u7D22\u5DF2\u6709\u6807\u7B7E\uFF0C\u6216\u8F93\u5165\u65B0\u6807\u7B7E\u56DE\u8F66\u6DFB\u52A0",
7159
+ stepTable: "\u4EFB\u52A1\u8868",
7160
+ stepTableHint: "\u9009\u62E9\u4EFB\u52A1\u5F52\u5230\u54EA\u5F20\u8868",
7161
+ stepTimeline: "\u65F6\u95F4\u7EBF",
7162
+ stepTimelineHint: "\u5173\u8054\u73B0\u6709\u65F6\u95F4\u7EBF\u6216\u65B0\u5EFA",
7163
+ stepWorkspace: "\u5DE5\u4F5C\u533A",
7164
+ stepWorkspaceHint: "\u5173\u8054\u5230\u5DE5\u4F5C\u533A\uFF08\u53EF\u9009\uFF09",
7165
+ stepConfirm: "\u786E\u8BA4",
7166
+ stepConfirmHint: "\u6838\u5BF9\u540E\u521B\u5EFA",
7167
+ stepBelong: "\u5F52\u5C5E",
7168
+ stepBelongHint: "\u65F6\u95F4\u7EBF\u3001\u5DE5\u4F5C\u533A\u4E0E\u4EFB\u52A1\u8868",
7169
+ stepPlan: "\u8BA1\u5212",
7170
+ stepPlanHint: "\u72B6\u6001\u3001\u4F18\u5148\u7EA7\u4E0E\u65E5\u671F",
7171
+ confirmHint: "\u786E\u8BA4\u65E0\u8BEF\u540E\u70B9\u300C\u521B\u5EFA\u300D\uFF1B\u521B\u5EFA\u540E\u4ECD\u53EF\u7F16\u8F91\u6807\u9898\u3001\u63CF\u8FF0\u4E0E\u5F52\u5C5E\u3002",
7172
+ createSteps: "\u521B\u5EFA\u6B65\u9AA4",
7173
+ nextStep: "\u4E0B\u4E00\u6B65",
7174
+ prevStep: "\u4E0A\u4E00\u6B65",
7175
+ workspace: "\u5DE5\u4F5C\u533A",
7176
+ addGroup: "\u65B0\u5EFA\u7EC4",
7177
+ addTable: "\u65B0\u5EFA\u8868",
7178
+ rename: "\u91CD\u547D\u540D",
7179
+ del: "\u5220\u9664",
7180
+ editGroup: "\u7F16\u8F91\u4EFB\u52A1\u7EC4",
7181
+ editTable: "\u7F16\u8F91\u4EFB\u52A1\u8868",
7182
+ nodeName: "\u540D\u79F0",
7183
+ nodeDesc: "\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",
7184
+ nodeDescPh: "\u5199\u6E05\u8FD9\u5F20\u8868\u662F\u505A\u4EC0\u4E48\u7684\uFF0C\u4EE5\u540E\u53EF\u6309\u63CF\u8FF0\u5173\u952E\u8BCD\u68C0\u7D22\u5B9A\u4F4D",
7185
+ needName: "\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",
7186
+ nodeDescSave: "\u63CF\u8FF0\u5DF2\u4FDD\u5B58",
7187
+ deleteConfirm: "\u786E\u5B9A\u5220\u9664\u8FD9\u4E2A\u8282\u70B9\u53CA\u5176\u5B50\u6811\uFF1F\u5B50\u6811\u4E2D\u7684\u4EFB\u52A1\u4F1A\u88AB\u8F6F\u5220\u9664\u3002",
7188
+ deleteTaskConfirm: "\u786E\u5B9A\u5220\u9664\u8FD9\u6761\u4EFB\u52A1\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\u3002",
7189
+ batchDelete: "\u6279\u91CF\u5220\u9664",
7190
+ batchDeleteConfirm: "\u786E\u5B9A\u5220\u9664\u9009\u4E2D\u7684 {n} \u6761\u4EFB\u52A1\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\u3002",
7191
+ deletePartial: "\u90E8\u5206\u5220\u9664\u5931\u8D25",
7192
+ claimSelected: "\u63A5\u53D6\u9009\u4E2D",
7193
+ claimSummary: "\u6210\u529F {ok} \u6761\uFF1B\u5931\u8D25 {fail} \u6761\uFF1A\u5DF2\u88AB\u63A5\u53D6 {already}\u3001\u72B6\u6001\u4E0D\u652F\u6301 {notClaimable}\u3001\u4E0D\u5B58\u5728 {missing}",
7194
+ claimedCount: "\u5DF2\u63A5\u53D6 {n} \u6761\u4EFB\u52A1",
7195
+ root: "\u5168\u90E8\u4EFB\u52A1\u7EC4",
7196
+ manager: "\u7BA1\u7406\u6A21\u5F0F",
7197
+ treeSearch: "\u641C\u7D22\u4EFB\u52A1\u7EC4 / \u4EFB\u52A1\u8868",
7198
+ treeHint: "\u70B9\u4EFB\u52A1\u8868\u7B5B\u9009\u4EFB\u52A1\uFF1B\u7BA1\u7406\u6A21\u5F0F\u53EF\u62D6\u62FD\u6392\u5E8F\u3001\u6539\u540D\u6216\u5220\u9664",
7199
+ groups: "\u4E2A\u4EFB\u52A1\u7EC4",
7200
+ tables: "\u5F20\u4EFB\u52A1\u8868",
7201
+ treeNoMatch: "\u6CA1\u6709\u5339\u914D\u7684\u8282\u70B9",
7202
+ tags: "\u6807\u7B7E",
7203
+ tagsHint: "\u7528\u6807\u7B7E\u5F52\u7C7B\uFF08\u5DE5\u4F5C/\u751F\u6D3B/\u5B66\u4E60/\u5F00\u53D1 \u5DF2\u662F\u6807\u7B7E\uFF09",
7204
+ tagPlaceholder: "\u591A\u4E2A\u6807\u7B7E\u7528\u9017\u53F7\u5206\u9694\uFF0C\u4F8B\u5982\uFF1A\u5DE5\u4F5C, \u5F00\u53D1",
7205
+ tagFilter: "\u6807\u7B7E\u7B5B\u9009",
7206
+ allTags: "\u5168\u90E8\u6807\u7B7E",
7207
+ noTags: "\u6682\u65E0\u6807\u7B7E",
7208
+ tagSearchPlaceholder: "\u641C\u7D22\u6807\u7B7E\u540D\u79F0",
7209
+ tagNoMatch: "\u6CA1\u6709\u5339\u914D\u7684\u6807\u7B7E",
7210
+ loadingMore: "\u52A0\u8F7D\u4E2D\u2026",
7211
+ noMore: "\u6CA1\u6709\u66F4\u591A",
7212
+ tagSelected: "\u5DF2\u9009",
7213
+ tagRemove: "\u79FB\u9664",
7214
+ tagSearchExisting: "\u641C\u7D22\u5DF2\u6709\u6807\u7B7E",
7215
+ tagNewPlaceholder: "\u65B0\u5EFA\u6807\u7B7E\uFF0C\u56DE\u8F66\u6DFB\u52A0\uFF0C\u591A\u4E2A\u7528\u9017\u53F7\u5206\u9694",
7216
+ tagAdd: "\u6DFB\u52A0",
7217
+ tagNoPick: "\u8FD8\u6CA1\u6709\u9009\u6807\u7B7E\uFF0C\u4ECE\u4E0B\u9762\u70B9\u4E00\u4E2A\u6216\u76F4\u63A5\u8F93\u5165\u65B0\u6807\u7B7E\u540D",
7218
+ workspaceFilter: "\u5DE5\u4F5C\u533A\u7B5B\u9009",
7219
+ allWorkspaces: "\u5168\u90E8\u5DE5\u4F5C\u533A",
7220
+ noWorkspaces: "\u6682\u65E0\u5DE5\u4F5C\u533A",
7221
+ noWorkspace: "\u672A\u5173\u8054\u5DE5\u4F5C\u533A",
7222
+ workspaceSearchPlaceholder: "\u641C\u7D22\u5DE5\u4F5C\u533A\u540D\u79F0",
7223
+ workspaceNoMatch: "\u6CA1\u6709\u5339\u914D\u7684\u5DE5\u4F5C\u533A",
7224
+ workspaceSelected: "\u5DF2\u9009\u5DE5\u4F5C\u533A",
7225
+ workspaceRemove: "\u79FB\u9664",
7226
+ untagged: "\u672A\u6253\u6807\u7B7E",
7227
+ publish: "\u53D1\u5E03",
7228
+ target: "\u8BA1\u5212\u5B8C\u6210",
7229
+ done: "\u5B9E\u9645\u5B8C\u6210",
7230
+ shutdown: "\u5173\u95ED\u65F6\u95F4",
7231
+ priority: "\u4F18\u5148\u7EA7",
7232
+ difficulty: "\u96BE\u5EA6",
7233
+ desc: "\u63CF\u8FF0",
7234
+ difficultyUnset: "\u672A\u8BBE\u7F6E",
7235
+ difficultyMissing: "\u4EC5\u672A\u586B\u96BE\u5EA6",
7236
+ difficultyUnsetHint: "\u4E0D\u586B=\u672A\u8BBE\u7F6E\uFF080\uFF09\uFF0C\u4E0D\u662F\u6700\u7B80\u5355\uFF1B\u5EFA\u8BAE\u586B\u5199 1\u20135",
7237
+ difficultyGuideTitle: "\u5982\u4F55\u5224\u65AD\u96BE\u5EA6",
7238
+ difficultyGuide: "1\uFF1A\u6587\u6848/\u6837\u5F0F\u7B49\u5355\u70B9\u5C0F\u6539\uFF1B2\uFF1A\u5355\u6A21\u5757\u5185\u5C40\u90E8\u529F\u80FD\uFF1B3\uFF1A\u8DE8 2\u20133 \u4E2A\u6A21\u5757\u6216\u6570\u636E\u8BFB\u53D6\u53D8\u66F4\uFF1B4\uFF1A\u5B58\u50A8\u3001\u8FC1\u79FB\u3001\u540C\u6B65\u6216\u6784\u5EFA\u94FE\u8DEF\uFF1B5\uFF1A\u8DE8\u8FDB\u7A0B\u67B6\u6784\u91CD\u6784\u6216\u591A\u9636\u6BB5\u9A8C\u8BC1\u3002\u7ED3\u5408\u6539\u52A8\u6587\u4EF6\u6570\u3001\u662F\u5426\u6D89\u53CA\u6570\u636E\u8FC1\u79FB\u548C\u6D4B\u8BD5\u9762\u5224\u65AD\u3002",
7239
+ review: "\u611F\u53D7",
7240
+ reviewHint: "\u4EFB\u4F55\u72B6\u6001\u90FD\u53EF\u8BB0\u5F55\u611F\u53D7\uFF08\u53EF\u9009\uFF09",
7241
+ reviewPlaceholder: "\u4F8B\u5982\uFF1A\u601D\u8DEF\u5F88\u987A / \u5361\u5728\u63A5\u53E3\u8C03\u8BD5 / \u6BD4\u9884\u60F3\u8F7B\u677E",
7242
+ reviewAdd: "\u8BB0\u5F55\u611F\u53D7",
7243
+ status: "\u72B6\u6001",
7244
+ publishDate: "\u53D1\u5E03\u65E5\u671F",
7245
+ targetDate: "\u8BA1\u5212\u5B8C\u6210\u65E5\u671F",
7246
+ doneDate: "\u5B8C\u6210\u65E5\u671F",
7247
+ shutdownDate: "\u5173\u95ED\u65E5\u671F",
7248
+ table: "\u4EFB\u52A1\u8868",
7249
+ titleField: "\u6807\u9898",
7250
+ timeline: "\u65F6\u95F4\u7EBF",
7251
+ restart: "\u91CD\u542F",
7252
+ complete: "\u5B8C\u6210",
7253
+ shutdownOp: "\u5173\u95ED",
7254
+ selected: "\u5DF2\u9009",
7255
+ selectedTasks: "\u9009\u4E2D\u4EFB\u52A1",
7256
+ batchTimeline: "\u5F52\u5E76\u65F6\u95F4\u7EBF",
7257
+ batchMigrate: "\u8FC1\u79FB\u4EFB\u52A1\u8868",
7258
+ refresh: "\u5237\u65B0",
7259
+ clear: "\u6E05\u7A7A",
7260
+ chooseBase: "\u9009\u62E9\u57FA\u51C6\u4EFB\u52A1\uFF08\u4F7F\u7528\u5B83\u7684\u65F6\u95F4\u7EBF\uFF09",
7261
+ chooseTable: "\u9009\u62E9\u76EE\u6807\u4EFB\u52A1\u8868",
7262
+ searchTable: "\u641C\u7D22\u4EFB\u52A1\u8868",
7263
+ noTable: "\u6CA1\u6709\u5339\u914D\u7684\u4EFB\u52A1\u8868",
7264
+ baseLabel: "\u57FA\u51C6\u4EFB\u52A1",
7265
+ targetLabel: "\u76EE\u6807\u4EFB\u52A1\u8868",
7266
+ batchCount: "\u5DF2\u9009",
7267
+ hasTimeline: "\u6709\u65F6\u95F4\u7EBF",
7268
+ noTimelineTag: "\u65E0\u65F6\u95F4\u7EBF",
7269
+ group: "\u4EFB\u52A1\u7EC4",
7270
+ timelineTitle: "\u4EFB\u52A1\u65F6\u95F4\u7EBF",
7271
+ newTimeline: "\u65B0\u5EFA\u65F6\u95F4\u7EBF\u4EFB\u52A1",
7272
+ restartTitle: "\u91CD\u542F\u4EFB\u52A1",
7273
+ noTimeline: "\u6CA1\u6709\u5173\u8054\u65F6\u95F4\u7EBF",
7274
+ restartPriorityHint: "\u91CD\u542F\u4EFB\u52A1\u9700\u8981\u4F18\u5148\u7EA7 1\u201310\uFF0C0 \u4EC5\u7528\u4E8E\u5DF2\u5B8C\u6210/\u5DF2\u5173\u95ED",
7275
+ restartPriorityError: "\u91CD\u542F\u4EFB\u52A1\u7684\u4F18\u5148\u7EA7\u5FC5\u987B\u586B\u5199 1\u201310\uFF1B0 \u4EC5\u7528\u4E8E\u5DF2\u5B8C\u6210/\u5DF2\u5173\u95ED",
7276
+ activePriorityError: "\u5DF2\u5F00\u542F\u4EFB\u52A1\u7684\u4F18\u5148\u7EA7\u5FC5\u987B\u586B\u5199 1\u201310\uFF1B0 \u4EC5\u7528\u4E8E\u5DF2\u5B8C\u6210/\u5DF2\u5173\u95ED",
7277
+ confirm: "\u786E\u5B9A",
7278
+ difficultyHint: "\u5EFA\u8BAE\u5B8C\u6210\u524D\u586B\u5199 1\u20135 \u96BE\u5EA6\uFF1B0 \u4F1A\u7EDF\u8BA1\u4E3A\u672A\u8BBE\u7F6E",
7279
+ emptyTree: "\u4EFB\u52A1\u6811\u8FD8\u6CA1\u6709\u6570\u636E",
7280
+ appear: "\u663E\u793A",
7281
+ hide: "\u9690\u85CF",
7282
+ move: "\u79FB\u52A8\u5230",
7283
+ source: "\u6765\u6E90",
7284
+ page: "\u9875",
7285
+ total: "\u5171",
7286
+ items: "\u6761",
7287
+ doneSuccess: "\u5DF2\u5B8C\u6210",
7288
+ saved: "\u5DF2\u4FDD\u5B58",
7289
+ created: "\u5DF2\u521B\u5EFA",
7290
+ updated: "\u5DF2\u66F4\u65B0",
7291
+ edit: "\u7F16\u8F91",
7292
+ editTitle: "\u7F16\u8F91\u4EFB\u52A1",
7293
+ editHintDone: "\u5DF2\u5B8C\u6210\uFF1A\u6807\u9898\u3001\u63CF\u8FF0\u3001\u611F\u53D7\u3001\u96BE\u5EA6\u53EF\u6539\uFF1B\u4F18\u5148\u7EA7\u5728\u5B8C\u6210\u65F6\u5DF2\u6E05\u96F6\u3002",
7294
+ editHintOpen: "\u672A\u5B8C\u6210\uFF1A\u6807\u9898\u3001\u63CF\u8FF0\u3001\u4F18\u5148\u7EA7\u3001\u611F\u53D7\u548C\u96BE\u5EA6\u53EF\u6539\u3002",
7295
+ deleted: "\u5DF2\u5220\u9664",
7296
+ needTitle: "\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A",
7297
+ needTable: "\u8BF7\u9009\u62E9\u4EFB\u52A1\u8868",
7298
+ needDate: "\u65E5\u671F\u4E0D\u80FD\u4E3A\u7A7A",
7299
+ needBase: "\u8BF7\u9009\u62E9\u57FA\u51C6\u4EFB\u52A1",
7300
+ needDifficulty: "\u8BF7\u9009\u62E9\u96BE\u5EA6"
7301
+ },
7302
+ en: {
7303
+ timelineTasks: "Tasks",
7304
+ timelineActivity: "Last activity",
7305
+ timelineMerge: "Merge",
7306
+ timelineSingletons: "Include empty and single-task timelines",
7307
+ timelineSearch: "Search timeline titles or descriptions",
7308
+ timelineSearchButton: "Search",
7309
+ timelineMembers: "Member tasks",
7310
+ timelineOrder: "Oldest publication first. Click a task to open a preview.",
7311
+ timelineSearchEmpty: "No timelines contain \u201C{query}\u201D.",
7312
+ timelineEmpty: "No timelines yet. Use New timeline to create one manually.",
7313
+ timelineOpen: "Open",
7314
+ timelineDone: "Done",
7315
+ timelinePrevious: "Previous page",
7316
+ timelineNext: "Next page",
7317
+ timelineTarget: "Merge into timeline",
7318
+ timelineMergeHint: "Merge all valid tasks in the selected timelines, including tasks beyond the current page and excluding restarted and deleted tasks. Preview before confirming.",
7319
+ timelinePreview: "Preview merge",
7320
+ timelinePreviewCount: "{n} tasks will move into the target timeline.",
7321
+ timelineConfirm: "Confirm merge",
7322
+ previewLabel: "Task preview",
7323
+ previewUntitled: "Untitled task",
7324
+ previewOpen: "Click to preview task",
7325
+ previewHint: "Read-only preview. Use Edit task below to make changes.",
7326
+ bodyModeToggle: bodyCopy.en.bodyModeToggle,
7327
+ bodyMode: "Description and reflection display mode",
7328
+ markdown: "Render Markdown",
7329
+ plainText: "Plain text",
7330
+ bodyModeLocal: "Changed in this browser; could not save config:",
7331
+ title: "Tasks",
7332
+ search: "Search title / description / feeling / task ID",
7333
+ newTask: "New task",
7334
+ tree: "Task tree",
7335
+ select: "Select",
7336
+ cancelSelect: "Exit select",
7337
+ all: "All",
7338
+ empty: "No tasks in this view",
7339
+ loading: "Loading\u2026",
7340
+ error: "Failed: ",
7341
+ save: "Save",
7342
+ cancel: "Cancel",
7343
+ create: "Create",
7344
+ close: "Close",
7345
+ taskId: "Task ID",
7346
+ stepContent: "Content",
7347
+ stepContentHint: "Title, description, schedule",
7348
+ stepTags: "Tags",
7349
+ stepTagsHint: "Search existing tags, or type a new one and press Enter",
7350
+ stepTable: "Table",
7351
+ stepTableHint: "Pick the table this task belongs to",
7352
+ stepTimeline: "Timeline",
7353
+ stepTimelineHint: "Attach to an existing timeline or create one",
7354
+ stepWorkspace: "Workspace",
7355
+ stepWorkspaceHint: "Link to a workspace (optional)",
7356
+ stepConfirm: "Review",
7357
+ stepConfirmHint: "Check before creating",
7358
+ stepBelong: "Placement",
7359
+ stepBelongHint: "Timeline, workspace, table",
7360
+ stepPlan: "Schedule",
7361
+ stepPlanHint: "Status, priority, dates",
7362
+ confirmHint: "Review the summary, then Create. Title, description and placement stay editable afterwards.",
7363
+ createSteps: "Create steps",
7364
+ nextStep: "Next",
7365
+ prevStep: "Back",
7366
+ workspace: "Workspace",
7367
+ addGroup: "New group",
7368
+ addTable: "New table",
7369
+ rename: "Rename",
7370
+ del: "Delete",
7371
+ editGroup: "Edit group",
7372
+ editTable: "Edit table",
7373
+ nodeName: "Name",
7374
+ nodeDesc: "Description (optional)",
7375
+ nodeDescPh: "Say what this table is for; agents can find it by description keywords",
7376
+ needName: "Name is required",
7377
+ nodeDescSave: "Description saved",
7378
+ deleteConfirm: "Delete this node and its subtree? Tasks under it will be soft-deleted.",
7379
+ deleteTaskConfirm: "Delete this task? This cannot be undone.",
7380
+ batchDelete: "Delete",
7381
+ batchDeleteConfirm: "Delete {n} selected tasks? This cannot be undone.",
7382
+ deletePartial: "some deletes failed",
7383
+ claimSelected: "Claim",
7384
+ claimSummary: "Claimed {ok}; failed {fail}: already claimed {already}, not claimable {notClaimable}, missing {missing}",
7385
+ claimedCount: "Claimed {n} task(s)",
7386
+ root: "All tasks",
7387
+ manager: "Manage",
7388
+ treeSearch: "Search groups / tables",
7389
+ treeHint: "Pick a table to filter tasks; Manage mode allows drag, rename and delete",
7390
+ groups: "groups",
7391
+ tables: "tables",
7392
+ treeNoMatch: "No matching node",
7393
+ tags: "Tags",
7394
+ tagsHint: "Group tasks with tags (Work/Life/Study/Dev are tags now)",
7395
+ tagPlaceholder: "Comma separated, e.g. Work, Dev",
7396
+ tagFilter: "Filter by tag",
7397
+ allTags: "All tags",
7398
+ noTags: "No tags",
7399
+ tagSearchPlaceholder: "Search tag name",
7400
+ tagNoMatch: "No matching tag",
7401
+ loadingMore: "Loading\u2026",
7402
+ noMore: "No more",
7403
+ tagSelected: "Selected",
7404
+ tagRemove: "Remove",
7405
+ tagSearchExisting: "Search existing tags",
7406
+ tagNewPlaceholder: "New tag \u2014 press Enter to add, comma for several",
7407
+ tagAdd: "Add",
7408
+ tagNoPick: "No tags picked yet \u2014 click one below or type a new name",
7409
+ workspaceFilter: "Filter by workspace",
7410
+ allWorkspaces: "All workspaces",
7411
+ noWorkspaces: "No workspaces",
7412
+ noWorkspace: "No workspace",
7413
+ workspaceSearchPlaceholder: "Search workspace name",
7414
+ workspaceNoMatch: "No matching workspace",
7415
+ workspaceSelected: "Selected workspaces",
7416
+ workspaceRemove: "Remove",
7417
+ untagged: "Untagged",
7418
+ publish: "Published",
7419
+ target: "Target",
7420
+ done: "Done",
7421
+ shutdown: "Closed",
7422
+ priority: "Priority",
7423
+ difficulty: "Difficulty",
7424
+ desc: "Description",
7425
+ difficultyUnset: "Unset",
7426
+ difficultyMissing: "Missing difficulty only",
7427
+ difficultyUnsetHint: "Blank = unset (0), not easiest; choose 1\u20135",
7428
+ difficultyGuideTitle: "How to rate difficulty",
7429
+ difficultyGuide: "1: a small copy/style change; 2: a local feature in one module; 3: 2\u20133 modules or data-reading changes; 4: storage, migrations, sync or build pipelines; 5: cross-process architecture changes or multi-stage validation. Consider changed file count, data migrations and test scope.",
7430
+ review: "Reflection",
7431
+ reviewHint: "Record a feeling in any status (optional)",
7432
+ reviewPlaceholder: "e.g. smooth, stuck on the API, easier than expected",
7433
+ reviewAdd: "Add feeling",
7434
+ status: "Status",
7435
+ publishDate: "Publish date",
7436
+ targetDate: "Target date",
7437
+ doneDate: "Done date",
7438
+ shutdownDate: "Close date",
7439
+ table: "Task table",
7440
+ titleField: "Title",
7441
+ timeline: "Timeline",
7442
+ restart: "Restart",
7443
+ complete: "Complete",
7444
+ shutdownOp: "Close",
7445
+ selected: "Selected",
7446
+ selectedTasks: "Selected tasks",
7447
+ batchTimeline: "Merge timeline",
7448
+ batchMigrate: "Move table",
7449
+ refresh: "Refresh",
7450
+ clear: "Clear",
7451
+ searchTable: "Search tables",
7452
+ noTable: "No matching table",
7453
+ baseLabel: "Base task",
7454
+ targetLabel: "Target table",
7455
+ batchCount: "Selected",
7456
+ hasTimeline: "has timeline",
7457
+ noTimelineTag: "no timeline",
7458
+ group: "Group",
7459
+ chooseBase: "Choose a base task (it supplies the timeline)",
7460
+ chooseTable: "Choose target table",
7461
+ timelineTitle: "Task timeline",
7462
+ newTimeline: "New timeline task",
7463
+ restartTitle: "Restart task",
7464
+ noTimeline: "No associated timeline",
7465
+ restartPriorityHint: "Restarted tasks require priority 1\u201310; 0 is only for completed or closed tasks.",
7466
+ restartPriorityError: "Enter a priority from 1 to 10 to restart; 0 is only for completed or closed tasks.",
7467
+ activePriorityError: "Active tasks require a priority from 1 to 10; 0 is only for completed or closed tasks.",
7468
+ confirm: "OK",
7469
+ difficultyHint: "Set difficulty 1\u20135 before completing; 0 is counted as unset",
7470
+ emptyTree: "Task tree is empty",
7471
+ appear: "Show",
7472
+ hide: "Hide",
7473
+ move: "Move to",
7474
+ source: "Source",
7475
+ page: "Page",
7476
+ total: "Total",
7477
+ items: "items",
7478
+ doneSuccess: "Completed",
7479
+ saved: "Saved",
7480
+ created: "Created",
7481
+ updated: "Updated",
7482
+ edit: "Edit",
7483
+ editTitle: "Edit task",
7484
+ editHintDone: "Completed: title, description, feeling and difficulty can change; priority was cleared on completion.",
7485
+ editHintOpen: "Not completed: title, description, priority, feeling and difficulty can change.",
7486
+ deleted: "Deleted",
7487
+ needTitle: "Title is required",
7488
+ needTable: "Pick a task table",
7489
+ needDate: "Date is required",
7490
+ needBase: "Pick a base task",
7491
+ needDifficulty: "Pick a difficulty"
7455
7492
  }
7456
- );
7493
+ };
7457
7494
  }
7458
7495
  });
7459
7496
 
7460
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs
7461
- function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
7462
- const iconData = typeof iconDataOrName === "string" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;
7463
- const Component = (0, import_react3.forwardRef)(
7464
- ({ className, ...props }, ref) => (0, import_react3.createElement)(Icon, {
7465
- ref,
7466
- icon: iconData,
7467
- className,
7468
- ...props
7469
- })
7470
- );
7471
- if (iconData.name) {
7472
- Component.displayName = toPascalCase(iconData.name);
7497
+ // packages/addons/lib/icon-label.cjs
7498
+ var require_icon_label = __commonJS({
7499
+ "packages/addons/lib/icon-label.cjs"(exports2, module2) {
7500
+ "use strict";
7501
+ var VISUALLY_HIDDEN = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap";
7502
+ module2.exports = function iconLabel(h, Icon2, text, options) {
7503
+ var opts = options || {};
7504
+ var cls = "wb-icon-label" + (opts.short ? " wb-icon-label-short" : "") + (Icon2 ? "" : " wb-icon-label-fallback");
7505
+ return h(
7506
+ "span",
7507
+ { className: cls, title: typeof text === "string" ? text : void 0 },
7508
+ Icon2 ? h(Icon2, { size: 14, strokeWidth: 2, "aria-hidden": true, focusable: false }) : null,
7509
+ h("span", { className: "wb-icon-label-text" }, text)
7510
+ );
7511
+ };
7512
+ module2.exports.styles = ".wb-icon-label{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;text-align:start}.wb-icon-label>svg{flex:none}.wb-icon-label>span{min-width:0;overflow-wrap:anywhere}button .wb-icon-label:not(.wb-icon-label-fallback) .wb-icon-label-text{" + VISUALLY_HIDDEN + "}button .wb-icon-label.wb-icon-label-short .wb-icon-label-text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal}";
7473
7513
  }
7474
- return Component;
7475
- }
7476
- var import_react3;
7477
- var init_createLucideIcon = __esm({
7478
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.mjs"() {
7479
- import_react3 = require("react");
7480
- init_toLucideIconData();
7481
- init_toPascalCase();
7482
- init_Icon();
7514
+ });
7515
+
7516
+ // packages/addons/lib/icons.cjs
7517
+ var require_icons = __commonJS({
7518
+ "packages/addons/lib/icons.cjs"(exports2, module2) {
7519
+ "use strict";
7520
+ var h = require("react").createElement;
7521
+ function create(prefix, glyphs, options) {
7522
+ var opts = options || {};
7523
+ var ICONS = Object.assign({}, glyphs);
7524
+ function Icon2(props) {
7525
+ var C = ICONS[props.name] || (opts.fallback ? ICONS[opts.fallback] : null);
7526
+ if (!C) return null;
7527
+ var size = typeof opts.sizeOf === "function" ? opts.sizeOf(props) : props.size || 14;
7528
+ var cls = prefix + "-svg" + (opts.classNameAppend && props.className ? " " + props.className : "");
7529
+ var attrs = {
7530
+ size,
7531
+ strokeWidth: props.strokeWidth || 2,
7532
+ "aria-hidden": "true",
7533
+ className: cls
7534
+ };
7535
+ if (opts.focusable) attrs.focusable = false;
7536
+ return h(C, attrs);
7537
+ }
7538
+ var set = { ICONS, Icon: Icon2 };
7539
+ set.label = function(name, text, options2) {
7540
+ return require_icon_label()(h, function NamedIcon(props) {
7541
+ return h(Icon2, Object.assign({ name }, props));
7542
+ }, text, options2);
7543
+ };
7544
+ if (opts.tabIcon) {
7545
+ set.tabIcon = function(name) {
7546
+ return function TabIcon() {
7547
+ return h(Icon2, { name, size: 14 });
7548
+ };
7549
+ };
7550
+ }
7551
+ return set;
7552
+ }
7553
+ module2.exports = { create };
7483
7554
  }
7484
7555
  });
7485
7556
 
7486
7557
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.mjs
7487
7558
  var sliders_horizontal_exports = {};
7488
7559
  __export(sliders_horizontal_exports, {
7489
- __iconData: () => __iconData,
7560
+ __iconData: () => __iconData2,
7490
7561
  default: () => SlidersHorizontal
7491
7562
  });
7492
- var __iconData, SlidersHorizontal;
7563
+ var __iconData2, SlidersHorizontal;
7493
7564
  var init_sliders_horizontal = __esm({
7494
7565
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.mjs"() {
7495
7566
  init_createLucideIcon();
7496
- __iconData = {
7567
+ __iconData2 = {
7497
7568
  name: "sliders-horizontal",
7498
7569
  size: 24,
7499
7570
  node: [
@@ -7508,22 +7579,22 @@ var init_sliders_horizontal = __esm({
7508
7579
  ["path", { d: "M8 12H3", key: "a7s4jb" }]
7509
7580
  ]
7510
7581
  };
7511
- __iconData.node;
7512
- SlidersHorizontal = createLucideIcon(__iconData);
7582
+ __iconData2.node;
7583
+ SlidersHorizontal = createLucideIcon(__iconData2);
7513
7584
  }
7514
7585
  });
7515
7586
 
7516
7587
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chart-column.mjs
7517
7588
  var chart_column_exports = {};
7518
7589
  __export(chart_column_exports, {
7519
- __iconData: () => __iconData2,
7590
+ __iconData: () => __iconData3,
7520
7591
  default: () => ChartColumn
7521
7592
  });
7522
- var __iconData2, ChartColumn;
7593
+ var __iconData3, ChartColumn;
7523
7594
  var init_chart_column = __esm({
7524
7595
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chart-column.mjs"() {
7525
7596
  init_createLucideIcon();
7526
- __iconData2 = {
7597
+ __iconData3 = {
7527
7598
  name: "chart-column",
7528
7599
  size: 24,
7529
7600
  node: [
@@ -7534,22 +7605,22 @@ var init_chart_column = __esm({
7534
7605
  ],
7535
7606
  aliases: ["bar-chart-3"]
7536
7607
  };
7537
- __iconData2.node;
7538
- ChartColumn = createLucideIcon(__iconData2);
7608
+ __iconData3.node;
7609
+ ChartColumn = createLucideIcon(__iconData3);
7539
7610
  }
7540
7611
  });
7541
7612
 
7542
7613
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings.mjs
7543
7614
  var settings_exports = {};
7544
7615
  __export(settings_exports, {
7545
- __iconData: () => __iconData3,
7616
+ __iconData: () => __iconData4,
7546
7617
  default: () => Settings
7547
7618
  });
7548
- var __iconData3, Settings;
7619
+ var __iconData4, Settings;
7549
7620
  var init_settings = __esm({
7550
7621
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings.mjs"() {
7551
7622
  init_createLucideIcon();
7552
- __iconData3 = {
7623
+ __iconData4 = {
7553
7624
  name: "settings",
7554
7625
  size: 24,
7555
7626
  node: [
@@ -7563,22 +7634,22 @@ var init_settings = __esm({
7563
7634
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
7564
7635
  ]
7565
7636
  };
7566
- __iconData3.node;
7567
- Settings = createLucideIcon(__iconData3);
7637
+ __iconData4.node;
7638
+ Settings = createLucideIcon(__iconData4);
7568
7639
  }
7569
7640
  });
7570
7641
 
7571
7642
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/database.mjs
7572
7643
  var database_exports = {};
7573
7644
  __export(database_exports, {
7574
- __iconData: () => __iconData4,
7645
+ __iconData: () => __iconData5,
7575
7646
  default: () => Database
7576
7647
  });
7577
- var __iconData4, Database;
7648
+ var __iconData5, Database;
7578
7649
  var init_database = __esm({
7579
7650
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/database.mjs"() {
7580
7651
  init_createLucideIcon();
7581
- __iconData4 = {
7652
+ __iconData5 = {
7582
7653
  name: "database",
7583
7654
  size: 24,
7584
7655
  node: [
@@ -7587,22 +7658,22 @@ var init_database = __esm({
7587
7658
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
7588
7659
  ]
7589
7660
  };
7590
- __iconData4.node;
7591
- Database = createLucideIcon(__iconData4);
7661
+ __iconData5.node;
7662
+ Database = createLucideIcon(__iconData5);
7592
7663
  }
7593
7664
  });
7594
7665
 
7595
7666
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/calendar-days.mjs
7596
7667
  var calendar_days_exports = {};
7597
7668
  __export(calendar_days_exports, {
7598
- __iconData: () => __iconData5,
7669
+ __iconData: () => __iconData6,
7599
7670
  default: () => CalendarDays
7600
7671
  });
7601
- var __iconData5, CalendarDays;
7672
+ var __iconData6, CalendarDays;
7602
7673
  var init_calendar_days = __esm({
7603
7674
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/calendar-days.mjs"() {
7604
7675
  init_createLucideIcon();
7605
- __iconData5 = {
7676
+ __iconData6 = {
7606
7677
  name: "calendar-days",
7607
7678
  size: 24,
7608
7679
  node: [
@@ -7618,22 +7689,22 @@ var init_calendar_days = __esm({
7618
7689
  ["path", { d: "M16 17h.01", key: "ql8jdd" }]
7619
7690
  ]
7620
7691
  };
7621
- __iconData5.node;
7622
- CalendarDays = createLucideIcon(__iconData5);
7692
+ __iconData6.node;
7693
+ CalendarDays = createLucideIcon(__iconData6);
7623
7694
  }
7624
7695
  });
7625
7696
 
7626
7697
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code-xml.mjs
7627
7698
  var code_xml_exports = {};
7628
7699
  __export(code_xml_exports, {
7629
- __iconData: () => __iconData6,
7700
+ __iconData: () => __iconData7,
7630
7701
  default: () => CodeXml
7631
7702
  });
7632
- var __iconData6, CodeXml;
7703
+ var __iconData7, CodeXml;
7633
7704
  var init_code_xml = __esm({
7634
7705
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code-xml.mjs"() {
7635
7706
  init_createLucideIcon();
7636
- __iconData6 = {
7707
+ __iconData7 = {
7637
7708
  name: "code-xml",
7638
7709
  size: 24,
7639
7710
  node: [
@@ -7643,22 +7714,22 @@ var init_code_xml = __esm({
7643
7714
  ],
7644
7715
  aliases: ["code-2"]
7645
7716
  };
7646
- __iconData6.node;
7647
- CodeXml = createLucideIcon(__iconData6);
7717
+ __iconData7.node;
7718
+ CodeXml = createLucideIcon(__iconData7);
7648
7719
  }
7649
7720
  });
7650
7721
 
7651
7722
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/terminal.mjs
7652
7723
  var terminal_exports = {};
7653
7724
  __export(terminal_exports, {
7654
- __iconData: () => __iconData7,
7725
+ __iconData: () => __iconData8,
7655
7726
  default: () => Terminal
7656
7727
  });
7657
- var __iconData7, Terminal;
7728
+ var __iconData8, Terminal;
7658
7729
  var init_terminal = __esm({
7659
7730
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/terminal.mjs"() {
7660
7731
  init_createLucideIcon();
7661
- __iconData7 = {
7732
+ __iconData8 = {
7662
7733
  name: "terminal",
7663
7734
  size: 24,
7664
7735
  node: [
@@ -7666,22 +7737,22 @@ var init_terminal = __esm({
7666
7737
  ["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
7667
7738
  ]
7668
7739
  };
7669
- __iconData7.node;
7670
- Terminal = createLucideIcon(__iconData7);
7740
+ __iconData8.node;
7741
+ Terminal = createLucideIcon(__iconData8);
7671
7742
  }
7672
7743
  });
7673
7744
 
7674
7745
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/pilcrow.mjs
7675
7746
  var pilcrow_exports = {};
7676
7747
  __export(pilcrow_exports, {
7677
- __iconData: () => __iconData8,
7748
+ __iconData: () => __iconData9,
7678
7749
  default: () => Pilcrow
7679
7750
  });
7680
- var __iconData8, Pilcrow;
7751
+ var __iconData9, Pilcrow;
7681
7752
  var init_pilcrow = __esm({
7682
7753
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/pilcrow.mjs"() {
7683
7754
  init_createLucideIcon();
7684
- __iconData8 = {
7755
+ __iconData9 = {
7685
7756
  name: "pilcrow",
7686
7757
  size: 24,
7687
7758
  node: [
@@ -7690,22 +7761,22 @@ var init_pilcrow = __esm({
7690
7761
  ["path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13", key: "sh4n9v" }]
7691
7762
  ]
7692
7763
  };
7693
- __iconData8.node;
7694
- Pilcrow = createLucideIcon(__iconData8);
7764
+ __iconData9.node;
7765
+ Pilcrow = createLucideIcon(__iconData9);
7695
7766
  }
7696
7767
  });
7697
7768
 
7698
7769
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.mjs
7699
7770
  var plus_exports = {};
7700
7771
  __export(plus_exports, {
7701
- __iconData: () => __iconData9,
7772
+ __iconData: () => __iconData10,
7702
7773
  default: () => Plus
7703
7774
  });
7704
- var __iconData9, Plus;
7775
+ var __iconData10, Plus;
7705
7776
  var init_plus = __esm({
7706
7777
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.mjs"() {
7707
7778
  init_createLucideIcon();
7708
- __iconData9 = {
7779
+ __iconData10 = {
7709
7780
  name: "plus",
7710
7781
  size: 24,
7711
7782
  node: [
@@ -7713,82 +7784,82 @@ var init_plus = __esm({
7713
7784
  ["path", { d: "M12 5v14", key: "s699le" }]
7714
7785
  ]
7715
7786
  };
7716
- __iconData9.node;
7717
- Plus = createLucideIcon(__iconData9);
7787
+ __iconData10.node;
7788
+ Plus = createLucideIcon(__iconData10);
7718
7789
  }
7719
7790
  });
7720
7791
 
7721
7792
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.mjs
7722
7793
  var minus_exports = {};
7723
7794
  __export(minus_exports, {
7724
- __iconData: () => __iconData10,
7795
+ __iconData: () => __iconData11,
7725
7796
  default: () => Minus
7726
7797
  });
7727
- var __iconData10, Minus;
7798
+ var __iconData11, Minus;
7728
7799
  var init_minus = __esm({
7729
7800
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.mjs"() {
7730
7801
  init_createLucideIcon();
7731
- __iconData10 = {
7802
+ __iconData11 = {
7732
7803
  name: "minus",
7733
7804
  size: 24,
7734
7805
  node: [["path", { d: "M5 12h14", key: "1ays0h" }]]
7735
7806
  };
7736
- __iconData10.node;
7737
- Minus = createLucideIcon(__iconData10);
7807
+ __iconData11.node;
7808
+ Minus = createLucideIcon(__iconData11);
7738
7809
  }
7739
7810
  });
7740
7811
 
7741
7812
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.mjs
7742
7813
  var check_exports = {};
7743
7814
  __export(check_exports, {
7744
- __iconData: () => __iconData11,
7815
+ __iconData: () => __iconData12,
7745
7816
  default: () => Check
7746
7817
  });
7747
- var __iconData11, Check;
7818
+ var __iconData12, Check;
7748
7819
  var init_check = __esm({
7749
7820
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.mjs"() {
7750
7821
  init_createLucideIcon();
7751
- __iconData11 = {
7822
+ __iconData12 = {
7752
7823
  name: "check",
7753
7824
  size: 24,
7754
7825
  node: [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]
7755
7826
  };
7756
- __iconData11.node;
7757
- Check = createLucideIcon(__iconData11);
7827
+ __iconData12.node;
7828
+ Check = createLucideIcon(__iconData12);
7758
7829
  }
7759
7830
  });
7760
7831
 
7761
7832
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square.mjs
7762
7833
  var square_exports = {};
7763
7834
  __export(square_exports, {
7764
- __iconData: () => __iconData12,
7835
+ __iconData: () => __iconData13,
7765
7836
  default: () => Square
7766
7837
  });
7767
- var __iconData12, Square;
7838
+ var __iconData13, Square;
7768
7839
  var init_square = __esm({
7769
7840
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square.mjs"() {
7770
7841
  init_createLucideIcon();
7771
- __iconData12 = {
7842
+ __iconData13 = {
7772
7843
  name: "square",
7773
7844
  size: 24,
7774
7845
  node: [["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }]]
7775
7846
  };
7776
- __iconData12.node;
7777
- Square = createLucideIcon(__iconData12);
7847
+ __iconData13.node;
7848
+ Square = createLucideIcon(__iconData13);
7778
7849
  }
7779
7850
  });
7780
7851
 
7781
7852
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/rotate-ccw.mjs
7782
7853
  var rotate_ccw_exports = {};
7783
7854
  __export(rotate_ccw_exports, {
7784
- __iconData: () => __iconData13,
7855
+ __iconData: () => __iconData14,
7785
7856
  default: () => RotateCcw
7786
7857
  });
7787
- var __iconData13, RotateCcw;
7858
+ var __iconData14, RotateCcw;
7788
7859
  var init_rotate_ccw = __esm({
7789
7860
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/rotate-ccw.mjs"() {
7790
7861
  init_createLucideIcon();
7791
- __iconData13 = {
7862
+ __iconData14 = {
7792
7863
  name: "rotate-ccw",
7793
7864
  size: 24,
7794
7865
  node: [
@@ -7796,22 +7867,22 @@ var init_rotate_ccw = __esm({
7796
7867
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
7797
7868
  ]
7798
7869
  };
7799
- __iconData13.node;
7800
- RotateCcw = createLucideIcon(__iconData13);
7870
+ __iconData14.node;
7871
+ RotateCcw = createLucideIcon(__iconData14);
7801
7872
  }
7802
7873
  });
7803
7874
 
7804
7875
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-tree.mjs
7805
7876
  var list_tree_exports = {};
7806
7877
  __export(list_tree_exports, {
7807
- __iconData: () => __iconData14,
7878
+ __iconData: () => __iconData15,
7808
7879
  default: () => ListTree
7809
7880
  });
7810
- var __iconData14, ListTree;
7881
+ var __iconData15, ListTree;
7811
7882
  var init_list_tree = __esm({
7812
7883
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-tree.mjs"() {
7813
7884
  init_createLucideIcon();
7814
- __iconData14 = {
7885
+ __iconData15 = {
7815
7886
  name: "list-tree",
7816
7887
  size: 24,
7817
7888
  node: [
@@ -7822,22 +7893,22 @@ var init_list_tree = __esm({
7822
7893
  ["path", { d: "M3 5v12a2 2 0 0 0 2 2h3", key: "x1gjn2" }]
7823
7894
  ]
7824
7895
  };
7825
- __iconData14.node;
7826
- ListTree = createLucideIcon(__iconData14);
7896
+ __iconData15.node;
7897
+ ListTree = createLucideIcon(__iconData15);
7827
7898
  }
7828
7899
  });
7829
7900
 
7830
7901
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/folder-tree.mjs
7831
7902
  var folder_tree_exports = {};
7832
7903
  __export(folder_tree_exports, {
7833
- __iconData: () => __iconData15,
7904
+ __iconData: () => __iconData16,
7834
7905
  default: () => FolderTree
7835
7906
  });
7836
- var __iconData15, FolderTree;
7907
+ var __iconData16, FolderTree;
7837
7908
  var init_folder_tree = __esm({
7838
7909
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/folder-tree.mjs"() {
7839
7910
  init_createLucideIcon();
7840
- __iconData15 = {
7911
+ __iconData16 = {
7841
7912
  name: "folder-tree",
7842
7913
  size: 24,
7843
7914
  node: [
@@ -7859,22 +7930,22 @@ var init_folder_tree = __esm({
7859
7930
  ["path", { d: "M3 3v13a2 2 0 0 0 2 2h3", key: "k8epm1" }]
7860
7931
  ]
7861
7932
  };
7862
- __iconData15.node;
7863
- FolderTree = createLucideIcon(__iconData15);
7933
+ __iconData16.node;
7934
+ FolderTree = createLucideIcon(__iconData16);
7864
7935
  }
7865
7936
  });
7866
7937
 
7867
7938
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.mjs
7868
7939
  var search_exports = {};
7869
7940
  __export(search_exports, {
7870
- __iconData: () => __iconData16,
7941
+ __iconData: () => __iconData17,
7871
7942
  default: () => Search
7872
7943
  });
7873
- var __iconData16, Search;
7944
+ var __iconData17, Search;
7874
7945
  var init_search = __esm({
7875
7946
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.mjs"() {
7876
7947
  init_createLucideIcon();
7877
- __iconData16 = {
7948
+ __iconData17 = {
7878
7949
  name: "search",
7879
7950
  size: 24,
7880
7951
  node: [
@@ -7882,22 +7953,22 @@ var init_search = __esm({
7882
7953
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
7883
7954
  ]
7884
7955
  };
7885
- __iconData16.node;
7886
- Search = createLucideIcon(__iconData16);
7956
+ __iconData17.node;
7957
+ Search = createLucideIcon(__iconData17);
7887
7958
  }
7888
7959
  });
7889
7960
 
7890
7961
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/layout-grid.mjs
7891
7962
  var layout_grid_exports = {};
7892
7963
  __export(layout_grid_exports, {
7893
- __iconData: () => __iconData17,
7964
+ __iconData: () => __iconData18,
7894
7965
  default: () => LayoutGrid
7895
7966
  });
7896
- var __iconData17, LayoutGrid;
7967
+ var __iconData18, LayoutGrid;
7897
7968
  var init_layout_grid = __esm({
7898
7969
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/layout-grid.mjs"() {
7899
7970
  init_createLucideIcon();
7900
- __iconData17 = {
7971
+ __iconData18 = {
7901
7972
  name: "layout-grid",
7902
7973
  size: 24,
7903
7974
  node: [
@@ -7907,22 +7978,22 @@ var init_layout_grid = __esm({
7907
7978
  ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }]
7908
7979
  ]
7909
7980
  };
7910
- __iconData17.node;
7911
- LayoutGrid = createLucideIcon(__iconData17);
7981
+ __iconData18.node;
7982
+ LayoutGrid = createLucideIcon(__iconData18);
7912
7983
  }
7913
7984
  });
7914
7985
 
7915
7986
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list.mjs
7916
7987
  var list_exports = {};
7917
7988
  __export(list_exports, {
7918
- __iconData: () => __iconData18,
7989
+ __iconData: () => __iconData19,
7919
7990
  default: () => List
7920
7991
  });
7921
- var __iconData18, List;
7992
+ var __iconData19, List;
7922
7993
  var init_list = __esm({
7923
7994
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list.mjs"() {
7924
7995
  init_createLucideIcon();
7925
- __iconData18 = {
7996
+ __iconData19 = {
7926
7997
  name: "list",
7927
7998
  size: 24,
7928
7999
  node: [
@@ -7934,22 +8005,22 @@ var init_list = __esm({
7934
8005
  ["path", { d: "M8 19h13", key: "m83p4d" }]
7935
8006
  ]
7936
8007
  };
7937
- __iconData18.node;
7938
- List = createLucideIcon(__iconData18);
8008
+ __iconData19.node;
8009
+ List = createLucideIcon(__iconData19);
7939
8010
  }
7940
8011
  });
7941
8012
 
7942
8013
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-checks.mjs
7943
8014
  var list_checks_exports = {};
7944
8015
  __export(list_checks_exports, {
7945
- __iconData: () => __iconData19,
8016
+ __iconData: () => __iconData20,
7946
8017
  default: () => ListChecks
7947
8018
  });
7948
- var __iconData19, ListChecks;
8019
+ var __iconData20, ListChecks;
7949
8020
  var init_list_checks = __esm({
7950
8021
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-checks.mjs"() {
7951
8022
  init_createLucideIcon();
7952
- __iconData19 = {
8023
+ __iconData20 = {
7953
8024
  name: "list-checks",
7954
8025
  size: 24,
7955
8026
  node: [
@@ -7960,22 +8031,22 @@ var init_list_checks = __esm({
7960
8031
  ["path", { d: "m3 7 2 2 4-4", key: "1obspn" }]
7961
8032
  ]
7962
8033
  };
7963
- __iconData19.node;
7964
- ListChecks = createLucideIcon(__iconData19);
8034
+ __iconData20.node;
8035
+ ListChecks = createLucideIcon(__iconData20);
7965
8036
  }
7966
8037
  });
7967
8038
 
7968
8039
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square-check-big.mjs
7969
8040
  var square_check_big_exports = {};
7970
8041
  __export(square_check_big_exports, {
7971
- __iconData: () => __iconData20,
8042
+ __iconData: () => __iconData21,
7972
8043
  default: () => SquareCheckBig
7973
8044
  });
7974
- var __iconData20, SquareCheckBig;
8045
+ var __iconData21, SquareCheckBig;
7975
8046
  var init_square_check_big = __esm({
7976
8047
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/square-check-big.mjs"() {
7977
8048
  init_createLucideIcon();
7978
- __iconData20 = {
8049
+ __iconData21 = {
7979
8050
  name: "square-check-big",
7980
8051
  size: 24,
7981
8052
  node: [
@@ -7987,48 +8058,28 @@ var init_square_check_big = __esm({
7987
8058
  ],
7988
8059
  aliases: ["check-square"]
7989
8060
  };
7990
- __iconData20.node;
7991
- SquareCheckBig = createLucideIcon(__iconData20);
8061
+ __iconData21.node;
8062
+ SquareCheckBig = createLucideIcon(__iconData21);
7992
8063
  }
7993
8064
  });
7994
8065
 
7995
8066
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-left.mjs
7996
8067
  var chevron_left_exports = {};
7997
8068
  __export(chevron_left_exports, {
7998
- __iconData: () => __iconData21,
8069
+ __iconData: () => __iconData22,
7999
8070
  default: () => ChevronLeft
8000
8071
  });
8001
- var __iconData21, ChevronLeft;
8072
+ var __iconData22, ChevronLeft;
8002
8073
  var init_chevron_left = __esm({
8003
8074
  "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-left.mjs"() {
8004
8075
  init_createLucideIcon();
8005
- __iconData21 = {
8076
+ __iconData22 = {
8006
8077
  name: "chevron-left",
8007
8078
  size: 24,
8008
8079
  node: [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]]
8009
8080
  };
8010
- __iconData21.node;
8011
- ChevronLeft = createLucideIcon(__iconData21);
8012
- }
8013
- });
8014
-
8015
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs
8016
- var chevron_right_exports = {};
8017
- __export(chevron_right_exports, {
8018
- __iconData: () => __iconData22,
8019
- default: () => ChevronRight
8020
- });
8021
- var __iconData22, ChevronRight;
8022
- var init_chevron_right = __esm({
8023
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/chevron-right.mjs"() {
8024
- init_createLucideIcon();
8025
- __iconData22 = {
8026
- name: "chevron-right",
8027
- size: 24,
8028
- node: [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]]
8029
- };
8030
8081
  __iconData22.node;
8031
- ChevronRight = createLucideIcon(__iconData22);
8082
+ ChevronLeft = createLucideIcon(__iconData22);
8032
8083
  }
8033
8084
  });
8034
8085
 
@@ -8960,6 +9011,7 @@ var require_commands = __commonJS({
8960
9011
  "use strict";
8961
9012
  module2.exports = function(deps) {
8962
9013
  var React = deps.React, h = React.createElement;
9014
+ var Disclosure = deps.Disclosure;
8963
9015
  var Icon2 = deps.Icon, Body = deps.Body, BodyMode = deps.BodyMode;
8964
9016
  var bodyCopy = deps.bodyCopy || { zh: {}, en: {} };
8965
9017
  var BODY_DEFAULT = { "ui.bodyMode": "markdown" };
@@ -9044,8 +9096,9 @@ var require_commands = __commonJS({
9044
9096
  ".wbt-cmd-examples li{overflow-wrap:anywhere}",
9045
9097
  ".wbt-cmd-empty,.wbt-cmd-error{padding:12px;border:1px dashed var(--wb-border);border-radius:var(--wb-radius-sm);font-size:12.5px}",
9046
9098
  ".wbt-cmd-error{border-style:solid;color:var(--dsw-alias-status-danger,inherit)}",
9047
- ".wbt-cmd-template{border-top:1px dashed var(--wb-border);padding-top:8px;display:flex;flex-direction:column;gap:8px}",
9048
- ".wbt-cmd-template>summary{cursor:pointer;font-size:12.5px;font-weight:600;list-style:revert}",
9099
+ // 折叠头由共享控件 disclosure-styles.cjs 提供,这里只保留面板外框与展开后的纵向排布。
9100
+ ".wbt-cmd-template{border-top:1px dashed var(--wb-border);padding-top:8px}",
9101
+ ".wbt-cmd-template>.wb-disc-body{display:flex;flex-direction:column;gap:8px}",
9049
9102
  ".wbt-cmd-template-head{padding-left:0;margin:0}",
9050
9103
  ".wbt-cmd-bar{display:inline-flex;align-items:center;gap:6px}",
9051
9104
  ".wbt-cmd-body{max-height:340px;overflow:auto;background:var(--dsw-alias-bg-layer-1,color-mix(in oklab,currentColor 4%,transparent));border-radius:var(--wb-radius-sm);padding:10px}",
@@ -9082,9 +9135,8 @@ var require_commands = __commonJS({
9082
9135
  var s = React.useState(props.mode === "text" ? "text" : "markdown"), mode = s[0], setMode = s[1];
9083
9136
  if (!text.trim()) return null;
9084
9137
  return h(
9085
- "details",
9086
- { className: "wbt-cmd-template" },
9087
- h("summary", null, t.template),
9138
+ Disclosure,
9139
+ { className: "wbt-cmd-template", title: t.template },
9088
9140
  h("span", { className: "wbt-cmd-hint" }, t.templateHint),
9089
9141
  h(
9090
9142
  "div",
@@ -10130,7 +10182,7 @@ var require_styles = __commonJS({
10130
10182
  ".wbtx-slot-note{color:var(--wbt-muted,var(--wb-muted))}",
10131
10183
  ".wbtx-slot-link{border:0;background:transparent;padding:0;font:inherit;font-size:12px;color:var(--wbt-accent,var(--wb-accent));cursor:pointer;text-decoration:underline}",
10132
10184
  ".wbt-mailback{font-size:11.5px;padding:2px 7px}"
10133
- ].concat(require_filter_checklist_styles(), require_date_picker_styles()("wbt"), require_switch().styles, require_number_field().styles, require_stepper().styles, require_staged_dialog().styles).join("\n");
10185
+ ].concat(require_filter_checklist_styles(), require_date_picker_styles()("wbt"), require_switch().styles, require_number_field().styles, require_stepper().styles, require_staged_dialog().styles, require_disclosure_styles()).join("\n");
10134
10186
  }
10135
10187
  });
10136
10188
 
@@ -10827,6 +10879,7 @@ var require_difficulty_field = __commonJS({
10827
10879
  var NF = require_number_field();
10828
10880
  module2.exports = function(React) {
10829
10881
  var h = React.createElement;
10882
+ var Disclosure = require_disclosure().createDisclosure(React).Disclosure;
10830
10883
  return function difficultyField(t, value, onChange, id, lang) {
10831
10884
  var n = Number(value) || 0, full = Math.floor(n), half = n - full >= 0.5;
10832
10885
  var stars = "\u2605".repeat(full) + (half ? "\u2BEA" : "") + "\u2606".repeat(Math.max(0, 5 - full - (half ? 1 : 0)));
@@ -10861,7 +10914,7 @@ var require_difficulty_field = __commonJS({
10861
10914
  h("b", null, n.toFixed(1))
10862
10915
  ),
10863
10916
  h("small", { id: id + "-hint" }, t.difficultyUnsetHint),
10864
- h("details", null, h("summary", null, t.difficultyGuideTitle), h("p", null, t.difficultyGuide))
10917
+ h(Disclosure, { title: t.difficultyGuideTitle }, h("p", null, t.difficultyGuide))
10865
10918
  );
10866
10919
  };
10867
10920
  };
@@ -14745,7 +14798,9 @@ var require_timeline_view = __commonJS({
14745
14798
  BodyMode: require_body_mode()(React),
14746
14799
  bodyStyles: require_body_styles(),
14747
14800
  bodyCopy: require_body_copy(),
14748
- useConfig: configView.useConfig
14801
+ useConfig: configView.useConfig,
14802
+ // 折叠面板共享控件:命令页的提示词模板与宿主其它面板保持同一观感。
14803
+ Disclosure: require_disclosure().createDisclosure(React).Disclosure
14749
14804
  });
14750
14805
  function tabIcon(name) {
14751
14806
  return function TasksTabIcon() {
@@ -15164,7 +15219,7 @@ var require_timeline_view = __commonJS({
15164
15219
  var TimelineView = require_timeline_view()({ React, COPY, injectCss, statusInfo, configView, CFG_FALLBACK, TaskItem, EditModal, DoneModal, TimelineModal, CreateModal });
15165
15220
  host.registerAddon({
15166
15221
  id: "wb-addon-tasks",
15167
- version: "5.4.0",
15222
+ version: "5.5.0",
15168
15223
  icon: ICONS["list-checks"],
15169
15224
  // 贡献声明写在 registerAddon 里:卸载任务插件时宿主按 addonId 一起撤销,
15170
15225
  // 不会在邮件里留一个渲染即报错的孤儿按钮。