dsh-workbench-message 0.1.1 → 0.1.3

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
@@ -39,6 +39,42 @@ var __copyProps = (to, from, except, desc) => {
39
39
  };
40
40
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
41
 
42
+ // packages/addons/lib/icons.cjs
43
+ var require_icons = __commonJS({
44
+ "packages/addons/lib/icons.cjs"(exports2, module2) {
45
+ "use strict";
46
+ var h = require("react").createElement;
47
+ function create(prefix, glyphs, options) {
48
+ var opts = options || {};
49
+ var ICONS = Object.assign({}, glyphs);
50
+ function Icon2(props) {
51
+ var C = ICONS[props.name] || (opts.fallback ? ICONS[opts.fallback] : null);
52
+ if (!C) return null;
53
+ var size = typeof opts.sizeOf === "function" ? opts.sizeOf(props) : props.size || 14;
54
+ var cls = prefix + "-svg" + (opts.classNameAppend && props.className ? " " + props.className : "");
55
+ var attrs = {
56
+ size,
57
+ strokeWidth: props.strokeWidth || 2,
58
+ "aria-hidden": "true",
59
+ className: cls
60
+ };
61
+ if (opts.focusable) attrs.focusable = false;
62
+ return h(C, attrs);
63
+ }
64
+ var set = { ICONS, Icon: Icon2 };
65
+ if (opts.tabIcon) {
66
+ set.tabIcon = function(name) {
67
+ return function TabIcon() {
68
+ return h(Icon2, { name, size: 14 });
69
+ };
70
+ };
71
+ }
72
+ return set;
73
+ }
74
+ module2.exports = { create };
75
+ }
76
+ });
77
+
42
78
  // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
43
79
  var toKebabCase;
44
80
  var init_toKebabCase = __esm({
@@ -966,6 +1002,70 @@ var init_play = __esm({
966
1002
  }
967
1003
  });
968
1004
 
1005
+ // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/message-square.mjs
1006
+ var message_square_exports = {};
1007
+ __export(message_square_exports, {
1008
+ __iconData: () => __iconData25,
1009
+ default: () => MessageSquare
1010
+ });
1011
+ var __iconData25, MessageSquare;
1012
+ var init_message_square = __esm({
1013
+ "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/message-square.mjs"() {
1014
+ init_createLucideIcon();
1015
+ __iconData25 = {
1016
+ name: "message-square",
1017
+ size: 24,
1018
+ node: [
1019
+ [
1020
+ "path",
1021
+ {
1022
+ d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
1023
+ key: "18887p"
1024
+ }
1025
+ ]
1026
+ ]
1027
+ };
1028
+ __iconData25.node;
1029
+ MessageSquare = createLucideIcon(__iconData25);
1030
+ }
1031
+ });
1032
+
1033
+ // packages/addons/message/client/ui/icons.cjs
1034
+ var require_icons2 = __commonJS({
1035
+ "packages/addons/message/client/ui/icons.cjs"(exports2, module2) {
1036
+ "use strict";
1037
+ var icons = require_icons();
1038
+ var set = icons.create("wbg", {
1039
+ bell: (init_bell(), __toCommonJS(bell_exports)).default,
1040
+ "bell-off": (init_bell_off(), __toCommonJS(bell_off_exports)).default,
1041
+ inbox: (init_inbox(), __toCommonJS(inbox_exports)).default,
1042
+ mail: (init_mail(), __toCommonJS(mail_exports)).default,
1043
+ "mail-open": (init_mail_open(), __toCommonJS(mail_open_exports)).default,
1044
+ chart: (init_chart_column(), __toCommonJS(chart_column_exports)).default,
1045
+ settings: (init_settings(), __toCommonJS(settings_exports)).default,
1046
+ database: (init_database(), __toCommonJS(database_exports)).default,
1047
+ list: (init_list(), __toCommonJS(list_exports)).default,
1048
+ check: (init_check(), __toCommonJS(check_exports)).default,
1049
+ "check-check": (init_check_check(), __toCommonJS(check_check_exports)).default,
1050
+ search: (init_search(), __toCommonJS(search_exports)).default,
1051
+ refresh: (init_refresh_cw(), __toCommonJS(refresh_cw_exports)).default,
1052
+ plus: (init_plus(), __toCommonJS(plus_exports)).default,
1053
+ volume: (init_volume_2(), __toCommonJS(volume_2_exports)).default,
1054
+ mute: (init_volume_x(), __toCommonJS(volume_x_exports)).default,
1055
+ moon: (init_moon(), __toCommonJS(moon_exports)).default,
1056
+ clock: (init_clock(), __toCommonJS(clock_exports)).default,
1057
+ info: (init_info(), __toCommonJS(info_exports)).default,
1058
+ success: (init_circle_check(), __toCommonJS(circle_check_exports)).default,
1059
+ warning: (init_triangle_alert(), __toCommonJS(triangle_alert_exports)).default,
1060
+ error: (init_circle_alert(), __toCommonJS(circle_alert_exports)).default,
1061
+ reset: (init_rotate_ccw(), __toCommonJS(rotate_ccw_exports)).default,
1062
+ play: (init_play(), __toCommonJS(play_exports)).default,
1063
+ "message-square": (init_message_square(), __toCommonJS(message_square_exports)).default
1064
+ }, { fallback: "info", tabIcon: true });
1065
+ module2.exports = { ICONS: set.ICONS, Icon: set.Icon, tabIcon: set.tabIcon };
1066
+ }
1067
+ });
1068
+
969
1069
  // packages/addons/message/client/ui/copy.cjs
970
1070
  var require_copy = __commonJS({
971
1071
  "packages/addons/message/client/ui/copy.cjs"(exports2, module2) {
@@ -3762,34 +3862,6 @@ var require_actions = __commonJS({
3762
3862
  }
3763
3863
  });
3764
3864
 
3765
- // node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/message-square.mjs
3766
- var message_square_exports = {};
3767
- __export(message_square_exports, {
3768
- __iconData: () => __iconData25,
3769
- default: () => MessageSquare
3770
- });
3771
- var __iconData25, MessageSquare;
3772
- var init_message_square = __esm({
3773
- "node_modules/.pnpm/lucide-react@1.70.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/message-square.mjs"() {
3774
- init_createLucideIcon();
3775
- __iconData25 = {
3776
- name: "message-square",
3777
- size: 24,
3778
- node: [
3779
- [
3780
- "path",
3781
- {
3782
- d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
3783
- key: "18887p"
3784
- }
3785
- ]
3786
- ]
3787
- };
3788
- __iconData25.node;
3789
- MessageSquare = createLucideIcon(__iconData25);
3790
- }
3791
- });
3792
-
3793
3865
  // packages/addons/message/client/client.src.cjs
3794
3866
  (function() {
3795
3867
  var root = typeof window !== "undefined" ? window : null;
@@ -3802,41 +3874,7 @@ var init_message_square = __esm({
3802
3874
  }
3803
3875
  var React = host.react;
3804
3876
  var h = host.h;
3805
- var ICONS = {
3806
- bell: (init_bell(), __toCommonJS(bell_exports)).default,
3807
- "bell-off": (init_bell_off(), __toCommonJS(bell_off_exports)).default,
3808
- inbox: (init_inbox(), __toCommonJS(inbox_exports)).default,
3809
- mail: (init_mail(), __toCommonJS(mail_exports)).default,
3810
- "mail-open": (init_mail_open(), __toCommonJS(mail_open_exports)).default,
3811
- chart: (init_chart_column(), __toCommonJS(chart_column_exports)).default,
3812
- settings: (init_settings(), __toCommonJS(settings_exports)).default,
3813
- database: (init_database(), __toCommonJS(database_exports)).default,
3814
- list: (init_list(), __toCommonJS(list_exports)).default,
3815
- check: (init_check(), __toCommonJS(check_exports)).default,
3816
- "check-check": (init_check_check(), __toCommonJS(check_check_exports)).default,
3817
- search: (init_search(), __toCommonJS(search_exports)).default,
3818
- refresh: (init_refresh_cw(), __toCommonJS(refresh_cw_exports)).default,
3819
- plus: (init_plus(), __toCommonJS(plus_exports)).default,
3820
- volume: (init_volume_2(), __toCommonJS(volume_2_exports)).default,
3821
- mute: (init_volume_x(), __toCommonJS(volume_x_exports)).default,
3822
- moon: (init_moon(), __toCommonJS(moon_exports)).default,
3823
- clock: (init_clock(), __toCommonJS(clock_exports)).default,
3824
- info: (init_info(), __toCommonJS(info_exports)).default,
3825
- success: (init_circle_check(), __toCommonJS(circle_check_exports)).default,
3826
- warning: (init_triangle_alert(), __toCommonJS(triangle_alert_exports)).default,
3827
- error: (init_circle_alert(), __toCommonJS(circle_alert_exports)).default,
3828
- reset: (init_rotate_ccw(), __toCommonJS(rotate_ccw_exports)).default,
3829
- play: (init_play(), __toCommonJS(play_exports)).default
3830
- };
3831
- function Icon2(props) {
3832
- var C = ICONS[props.name] || ICONS.info;
3833
- return h(C, { size: props.size || 14, strokeWidth: 2, "aria-hidden": "true", className: "wbg-svg" });
3834
- }
3835
- function tabIcon(name) {
3836
- return function() {
3837
- return h(Icon2, { name, size: 14 });
3838
- };
3839
- }
3877
+ var icons = require_icons2(), ICONS = icons.ICONS, Icon2 = icons.Icon, tabIcon = icons.tabIcon;
3840
3878
  var COPY = require_copy();
3841
3879
  var CSS = require_styles();
3842
3880
  var configView = require_config();
@@ -3874,8 +3912,8 @@ var init_message_square = __esm({
3874
3912
  ensureStyles();
3875
3913
  host.registerAddon({
3876
3914
  id: "wb-addon-message",
3877
- version: "0.1.1",
3878
- icon: (init_message_square(), __toCommonJS(message_square_exports)).default,
3915
+ version: "0.1.3",
3916
+ icon: ICONS["message-square"],
3879
3917
  views: [
3880
3918
  { id: "stats", icon: tabIcon("chart"), title: { zh: "\u7EDF\u8BA1", en: "Stats" }, component: Stats },
3881
3919
  { id: "inbox", icon: tabIcon("inbox"), title: { zh: "\u6536\u4EF6\u7BB1", en: "Inbox" }, component: Inbox2 },
package/lib/index.js CHANGED
@@ -82,7 +82,8 @@ export function apply(ctx) {
82
82
  id: "wb-addon-message",
83
83
  title: "消息",
84
84
  description: "统一消息入口:子插件与 agent 都能发消息,含未读计数、提示音与保留期清理;含统计、收件箱、配置、数据与 Action 五个视图",
85
- version: "0.1.1",
85
+ version: "0.1.3",
86
+ category: "comm",
86
87
  tables: ["message"],
87
88
  // 只在本机保存:显式声明不同步任何表(不写 sync 时宿主默认按行同步)。
88
89
  sync: { tables: [] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workbench-message",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "个人工作台消息插件:统一消息发送入口、收件箱、未读统计与提示音",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16,7 +16,7 @@
16
16
  "id": "wb-addon-message",
17
17
  "title": "消息",
18
18
  "description": "统一消息入口 + 统计/收件箱/配置/数据四个视图:子插件与 agent 都能发消息,带未读计数与提示音",
19
- "version": "0.1.1",
19
+ "version": "0.1.3",
20
20
  "minShell": "0.8.0",
21
21
  "tables": [
22
22
  "message"
@@ -49,7 +49,7 @@
49
49
  "./package.json": "./package.json"
50
50
  },
51
51
  "dependencies": {
52
- "dsh-workbench-host": "^0.8.0"
52
+ "dsh-workbench-host": "^0.8.2"
53
53
  },
54
54
  "dsh": {
55
55
  "bundle": {