@fabianactor/dsh-lil-whale-group-ui 1.8.14 → 1.9.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.
Files changed (3) hide show
  1. package/lib/client.js +53 -6
  2. package/lib/config.js +141 -126
  3. package/package.json +46 -46
package/lib/client.js CHANGED
@@ -1016,41 +1016,77 @@ const Bubble = React.memo(function Bubble({ config, message, onMention, animate
1016
1016
  // "人往下滚到底"(scrollTop 变大)和"内容变短、浏览器把 scrollTop 夹到底"
1017
1017
  // (scrollTop 变小)。后者 distance 也会变成 0,但人其实没想回底部。
1018
1018
  const lastTopRef = useRef(0)
1019
+ // 上一次量到的内容高度:scrollTop 没动、高度变高,说明"人没走、是被顶下去的"。
1020
+ // 2026-11-17 报的第 1 条:贴底时来一条比视口还高的消息,撑开发生在
1021
+ // 跟到底的那几个补丁之后,于是停在半路。这件事靠多设几个 setTimeout 修不好,得看高度。
1022
+ const lastHeightRef = useRef(0)
1019
1023
  const stickToBottom = useCallback(() => {
1020
1024
  const el = scrollRef.current
1021
1025
  if (el) {
1022
1026
  el.scrollTop = el.scrollHeight
1023
1027
  lastTopRef.current = el.scrollTop
1028
+ lastHeightRef.current = el.scrollHeight
1024
1029
  }
1025
1030
  }, [scrollRef])
1026
1031
  const measureBottom = useCallback(() => {
1027
1032
  const el = scrollRef.current
1028
1033
  if (!el) return
1029
1034
  const top = el.scrollTop
1030
- const distance = el.scrollHeight - top - el.clientHeight
1035
+ const height = el.scrollHeight
1036
+ // 人没动、内容变高:这是"贴着底被顶下去",不是"人离开了底"。
1037
+ // 直接补到底,并且仍然算贴底——否则长消息一来就永远停在半路。
1038
+ const grew = height > lastHeightRef.current
1039
+ const movedDown = top >= lastTopRef.current - 1
1040
+ if (atBottomRef.current && grew && movedDown) {
1041
+ lastHeightRef.current = height
1042
+ stickToBottom()
1043
+ return
1044
+ }
1045
+ lastHeightRef.current = height
1046
+ const distance = height - top - el.clientHeight
1031
1047
  const next = distance <= 40
1032
1048
  // 离开底部永远认;回到"底部"只认人往下滚的那一种。
1033
1049
  // 2026-11-16 报的闪烁:翻历史时来新消息,高度被夹了一下、distance=0,
1034
1050
  // 于是被当成"到底了",下一条一来就 stickToBottom 把人弹到底。
1035
- const movedDown = top >= lastTopRef.current - 1
1036
1051
  lastTopRef.current = top
1037
1052
  if (next !== atBottomRef.current && (next === false || movedDown)) {
1038
1053
  atBottomRef.current = next
1039
1054
  setAtBottom(next)
1040
1055
  }
1041
- }, [scrollRef])
1056
+ }, [scrollRef, stickToBottom])
1042
1057
  const jumpToBottom = useCallback(() => {
1043
1058
  atBottomRef.current = true
1044
1059
  setAtBottom(true)
1045
1060
  stickToBottom()
1046
1061
  requestAnimationFrame(stickToBottom)
1047
1062
  }, [stickToBottom])
1063
+ // 贴底时盯着内容高度:Markdown 排版、图片加载、代码块换行都在首帧之后还会长高。
1064
+ // 只认"贴底"这一个前提;人一翻历史就不管——不能把正在看三天前的人拽回今天。
1065
+ useEffect(() => {
1066
+ const el = scrollRef.current
1067
+ if (!el) return undefined
1068
+ let observer = null
1069
+ try {
1070
+ if (typeof ResizeObserver === 'undefined') return undefined
1071
+ observer = new ResizeObserver(() => {
1072
+ if (!atBottomRef.current) return
1073
+ stickToBottom()
1074
+ })
1075
+ // 内容列是滚动容器的第一个子元素;容器自己也要看(窗口高度变化)。
1076
+ observer.observe(el.firstElementChild || el)
1077
+ observer.observe(el)
1078
+ } catch {
1079
+ return undefined
1080
+ }
1081
+ return () => observer.disconnect()
1082
+ }, [scrollRef, stickToBottom, ...deps])
1048
1083
  useEffect(() => {
1049
1084
  if (!atBottomRef.current) return undefined
1050
1085
  stickToBottom()
1051
1086
  const raf = requestAnimationFrame(stickToBottom)
1052
1087
  const timer = setTimeout(stickToBottom, 200)
1053
- return () => { cancelAnimationFrame(raf); clearTimeout(timer) }
1088
+ const late = setTimeout(stickToBottom, 800)
1089
+ return () => { cancelAnimationFrame(raf); clearTimeout(timer); clearTimeout(late) }
1054
1090
  }, deps)
1055
1091
  return { atBottom, atBottomRef, measureBottom, jumpToBottom }
1056
1092
  }
@@ -1843,7 +1879,9 @@ const Bubble = React.memo(function Bubble({ config, message, onMention, animate
1843
1879
  // 线在视口上方 = 上面还有没看过的。
1844
1880
  const lineAbove = Boolean(el && line && line.getBoundingClientRect().top < el.getBoundingClientRect().top + 4)
1845
1881
  // 点过一次就不再催:往下读时线会滑出视口上沿,以前会反复把提示亮出来(第 4 条)。
1846
- const next = lineAbove && !historyVisitedRef.current
1882
+ // 贴底时也不催:人已经看见最新的了;2026-11-17 第 2 条就是新消息比视口高、
1883
+ // 分割线被顶出上沿,于是"回到历史未读"又亮起来。
1884
+ const next = lineAbove && !historyVisitedRef.current && !atBottomRef.current
1847
1885
  if (next !== historyAboveRef.current) {
1848
1886
  historyAboveRef.current = next
1849
1887
  setHistoryAbove(next)
@@ -1963,6 +2001,13 @@ const Bubble = React.memo(function Bubble({ config, message, onMention, animate
1963
2001
  // 贴底 / 翻历史 / 回到底部:跟私聊页共用一套(见 useFollowTail)。
1964
2002
  const { atBottom, atBottomRef, measureBottom, jumpToBottom } = useFollowTail(scrollRef, [messages.length, tab, splash])
1965
2003
 
2004
+ // 贴底了就把"回到历史未读"收掉:人已经看见最新的了,留着只剩误导。
2005
+ // 2026-11-17 第 2 条:清完红点后来新消息,长消息把分割线顶出视口上沿,提示又亮。
2006
+ useEffect(() => {
2007
+ if (!atBottom) return
2008
+ if (historyAboveRef.current) { historyAboveRef.current = false; setHistoryAbove(false) }
2009
+ }, [atBottom])
2010
+
1966
2011
  // 「加载更早」之后保持眼睛原来的位置:上面新增了多少高度,就把滚动条往下推多少。
1967
2012
  useEffect(() => {
1968
2013
  const anchor = pendingScrollRef.current
@@ -2003,6 +2048,8 @@ const Bubble = React.memo(function Bubble({ config, message, onMention, animate
2003
2048
  const timer = setTimeout(() => {
2004
2049
  void markRead('group').then(() => {
2005
2050
  historyVisitedRef.current = false
2051
+ // 读完一批后分割线会挪到新位置:立刻重量,别等下一次滚动。
2052
+ measureHistory()
2006
2053
  refresh()
2007
2054
  // 面板读完一批,喊一声;侧边栏红点不用等下一轮轮询。
2008
2055
  window.dispatchEvent(new Event('dsh-group-read'))
@@ -3603,7 +3650,7 @@ const Bubble = React.memo(function Bubble({ config, message, onMention, animate
3603
3650
  inject: ['slots'],
3604
3651
  apply(ctx) {
3605
3652
  // 一行"我跑的是哪一版"的自报,方便判断浏览器是不是还在用旧 bundle
3606
- console.info('[dsh-lil-whale-group-ui] client build v50 · history-no-flash:', Object.keys(MARKDOWN_LABELS).join(','))
3653
+ console.info('[dsh-lil-whale-group-ui] client build v51 · follow-tail-long:', Object.keys(MARKDOWN_LABELS).join(','))
3607
3654
  // 「正在回复…」那三个点的呼吸动画 + 过场转圈。只在浏览器里注入一次。
3608
3655
  if (typeof document !== 'undefined' && !document.getElementById('dsh-lil-whale-group-keyframes')) {
3609
3656
  const style = document.createElement('style')
package/lib/config.js CHANGED
@@ -1,126 +1,141 @@
1
- /**
2
- * 这台机器的假设,全从这里读。
3
- *
4
- * 为什么要有这个文件:代码里写死 `<她的家>` 之类的东西,等于"这段程序只在这台机器上
5
- * 成立"。打包给别人时最麻烦的不是改名,是这些路径 —— 装上以后跑不起来,报的还是一句
6
- * `ENOENT: no such file or directory`,看不出是谁的问题。
7
- *
8
- * 读法(优先级从高到低):
9
- * 1. 环境变量 `LIL_WHALE_CONFIG` 指向的 JSON 文件
10
- * 2. 仓库根目录的 `lil-whale.config.json`
11
- * 3. 一份"按标准布局"推出来的默认值(下面的 DEFAULTS)
12
- *
13
- * "标准布局"= 鱼塘根下 `app/` 是仓库、`homes/<键>/` 是鱼的家。所以别人克隆下来、
14
- * 把鱼塘摆成这个形状,不写配置文件也能跑;只有布局不一样时才需要那份 JSON。
15
- *
16
- * 注意仓库根是从**本文件的位置**往上数出来的,不是从进程 cwd 数出来的 —— 宿主的 cwd 是
17
- * "从哪儿启动的",我们的代码可能被 link 到别的 profile 目录里,cwd 靠不住。
18
- *
19
- * 字段命名(2026-11-14 改):每条鱼读的都是**自己**那份配置,所以 `self*` 指"这个进程
20
- * 服务的那条鱼"。旧的 `her*` / `whale*` 是单鱼时代的名字(第二条鱼出现后 `whaleProfile`
21
- * 在 fishball 的配置里只能填 `fishball`,读起来是错的),仍然接受,只作兼容别名。
22
- */
23
- import { existsSync, readFileSync } from 'node:fs'
24
- import { dirname, join, resolve } from 'node:path'
25
- import { fileURLToPath } from 'node:url'
26
-
27
- const HERE = dirname(fileURLToPath(import.meta.url))
28
- // lib/ → dsh-lil-whale-group/ → plugin/ → 仓库根
29
- const REPO_ROOT = resolve(HERE, '..', '..', '..')
30
-
31
- const DEFAULTS = {
32
- repoRoot: REPO_ROOT,
33
- // 鱼塘布局(2026-11-13 起):<pond>\app 是仓库,鱼在 <pond>\homes\<键>。
34
- // 配置丢了也不该指回旧布局(`<repo>\..\lil-whale` 那种),否则"默认值"会把新装的人带进老结构。
35
- selfHome: resolve(REPO_ROOT, '..', 'homes', 'fish'),
36
- selfWaker: join(REPO_ROOT, 'scripts', 'wake-fish.ps1'),
37
- wakeMetrics: join(REPO_ROOT, 'logs', 'wake-metrics.log'),
38
- pwshExe: process.platform === 'win32' ? 'pwsh.exe' : 'pwsh',
39
- leeCwd: REPO_ROOT,
40
- leeProfile: 'web',
41
- selfProfile: 'fish',
42
- // 这条鱼的进程开的端口。巡守要推门时敲的就是它;改端口必须同时改这里,否则巡守会去敲一扇没人的门。
43
- selfPort: 3082,
44
- }
45
-
46
- /** 旧名字 → 新名字。旧配置仍然能读,只是会被换成 `self*`。 */
47
- const LEGACY_KEYS = {
48
- herHome: 'selfHome',
49
- herDshHome: 'selfDshHome',
50
- herWaker: 'selfWaker',
51
- herPort: 'selfPort',
52
- whaleProfile: 'selfProfile',
53
- whaleCwd: 'selfCwd',
54
- }
55
-
56
- let cached = null
57
-
58
- export function configPath() {
59
- return process.env.LIL_WHALE_CONFIG || join(REPO_ROOT, 'lil-whale.config.json')
60
- }
61
-
62
- /** 派生字段(只由上面几个推出来,不许单独写死)。 */
63
- function derive(c) {
64
- // 先把旧名字抬成新名字(新名字优先)。
65
- const lifted = { ...c }
66
- for (const [oldKey, newKey] of Object.entries(LEGACY_KEYS)) {
67
- if (lifted[newKey] === undefined && lifted[oldKey] !== undefined) lifted[newKey] = lifted[oldKey]
68
- }
69
- const selfHome = lifted.selfHome
70
- // 共享区(pool)在她家之外:群、多成员账本都放这儿。
71
- // 为什么不在她家里:群是共享空间,不是她的私人物品;第二条鱼出现后,
72
- // 第二条的群文件写进第一条的家就是越界(Fabian 2026-11-12 拍板)。
73
- // 她家里留 Junction 指回 pool,所以她的路径一个字都不用改。
74
- // selfHome = <pond>\homes\<键> ⇒ 上两级才是 pond。
75
- const poolDir = lifted.poolDir || resolve(selfHome, '..', '..', 'pool')
76
- const out = {
77
- ...lifted,
78
- poolDir,
79
- poolStateDir: lifted.poolStateDir || join(poolDir, 'state'),
80
- // 私聊是「两个人之间的窗口」,不放进群目录:群目录是共享区里公开的那一半(Fabian 2026-11-12 拍板)。
81
- dmDir: lifted.dmDir || join(poolDir, 'dm'),
82
- // 名册:谁是谁、叫什么、哪条鱼、端口、爹是谁。多鱼之后这些不许再写死在代码里。
83
- membersFile: lifted.membersFile || join(poolDir, 'members.json'),
84
- selfPort: Number(lifted.selfPort) || 3082,
85
- groupDir: lifted.groupDir || join(poolDir, 'group'),
86
- selfDshHome: lifted.selfDshHome || join(selfHome, 'dsh-home'),
87
- selfCwd: lifted.selfCwd || selfHome,
88
- chatCwd: lifted.chatCwd || dirname(lifted.repoRoot),
89
- watchmanPidFile: lifted.watchmanPidFile || join(poolDir, 'state', 'watchman.pid'),
90
- }
91
- // 兼容别名:旧代码/旧脚本还在用 her* / whale*,给它们留一份只读映射。
92
- out.herHome = out.selfHome
93
- out.herDshHome = out.selfDshHome
94
- out.herWaker = out.selfWaker
95
- out.herPort = out.selfPort
96
- out.whaleProfile = out.selfProfile
97
- out.whaleCwd = out.selfCwd
98
- return out
99
- }
100
-
101
- /**
102
- * 读一次,缓存起来(进程生命周期内不变 —— 改配置要重启,这是有意的:
103
- * 热改路径会让"这个进程到底在读哪份文件"变成一个没人答得上来的问题)。
104
- */
105
- export function config() {
106
- if (cached) return cached
107
- const path = configPath()
108
- let raw = {}
109
- let error = null
110
- if (existsSync(path)) {
111
- try {
112
- raw = JSON.parse(readFileSync(path, 'utf8'))
113
- } catch (e) {
114
- // 配置写坏了要说出来,不能安静地用默认值跑 —— 那会让人以为自己改对了
115
- error = `config 读取失败(${path}):${e.message}`
116
- }
117
- }
118
- cached = { ...derive({ ...DEFAULTS, ...raw }), _path: path, _exists: existsSync(path), _error: error }
119
- return cached
120
- }
121
-
122
- /** 给启动痕迹用的短摘要:哪份配置、这条鱼的家在哪儿。 */
123
- export function configSummary() {
124
- const c = config()
125
- return { path: c._path, exists: c._exists, error: c._error, selfHome: c.selfHome, groupDir: c.groupDir }
126
- }
1
+ /**
2
+ * 这台机器的假设,全从这里读。
3
+ *
4
+ * 为什么要有这个文件:代码里写死 `<她的家>` 之类的东西,等于"这段程序只在这台机器上
5
+ * 成立"。打包给别人时最麻烦的不是改名,是这些路径 —— 装上以后跑不起来,报的还是一句
6
+ * `ENOENT: no such file or directory`,看不出是谁的问题。
7
+ *
8
+ * 读法(优先级从高到低):
9
+ * 1. 环境变量 `LIL_WHALE_CONFIG` 指向的 JSON 文件
10
+ * 2. 仓库根目录的 `lil-whale.config.json`
11
+ * 3. 一份"按标准布局"推出来的默认值(下面的 DEFAULTS)
12
+ *
13
+ * "标准布局"= 鱼塘根下 `app/` 是仓库、`homes/<键>/` 是鱼的家。所以别人克隆下来、
14
+ * 把鱼塘摆成这个形状,不写配置文件也能跑;只有布局不一样时才需要那份 JSON。
15
+ *
16
+ * 注意仓库根是从**本文件的位置**往上数出来的,不是从进程 cwd 数出来的 —— 宿主的 cwd 是
17
+ * "从哪儿启动的",我们的代码可能被 link 到别的 profile 目录里,cwd 靠不住。
18
+ *
19
+ * 字段命名(2026-11-14 改):每条鱼读的都是**自己**那份配置,所以 `self*` 指"这个进程
20
+ * 服务的那条鱼"。旧的 `her*` / `whale*` 是单鱼时代的名字(第二条鱼出现后 `whaleProfile`
21
+ * 在 fishball 的配置里只能填 `fishball`,读起来是错的),仍然接受,只作兼容别名。
22
+ */
23
+ import { existsSync, readFileSync } from 'node:fs'
24
+ import { dirname, join, resolve } from 'node:path'
25
+ import { fileURLToPath } from 'node:url'
26
+
27
+ const HERE = dirname(fileURLToPath(import.meta.url))
28
+ // lib/ → dsh-lil-whale-group/ → plugin/ → 仓库根
29
+ const REPO_ROOT = resolve(HERE, '..', '..', '..')
30
+
31
+ const DEFAULTS = {
32
+ repoRoot: REPO_ROOT,
33
+ // 鱼塘布局(2026-11-13 起):<pond>\app 是仓库,鱼在 <pond>\homes\<键>。
34
+ // 配置丢了也不该指回旧布局(`<repo>\..\lil-whale` 那种),否则"默认值"会把新装的人带进老结构。
35
+ selfHome: resolve(REPO_ROOT, '..', 'homes', 'fish'),
36
+ selfWaker: join(REPO_ROOT, 'scripts', 'wake-fish.ps1'),
37
+ wakeMetrics: join(REPO_ROOT, 'logs', 'wake-metrics.log'),
38
+ pwshExe: process.platform === 'win32' ? 'pwsh.exe' : 'pwsh',
39
+ leeCwd: REPO_ROOT,
40
+ leeProfile: 'web',
41
+ selfProfile: 'fish',
42
+ // 这条鱼的进程开的端口。巡守要推门时敲的就是它;改端口必须同时改这里,否则巡守会去敲一扇没人的门。
43
+ selfPort: 3082,
44
+ }
45
+
46
+ /** 旧名字 → 新名字。旧配置仍然能读,只是会被换成 `self*`。 */
47
+ const LEGACY_KEYS = {
48
+ herHome: 'selfHome',
49
+ herDshHome: 'selfDshHome',
50
+ herWaker: 'selfWaker',
51
+ herPort: 'selfPort',
52
+ whaleProfile: 'selfProfile',
53
+ whaleCwd: 'selfCwd',
54
+ }
55
+
56
+ let cached = null
57
+
58
+ export function configPath() {
59
+ return process.env.LIL_WHALE_CONFIG || join(REPO_ROOT, 'lil-whale.config.json')
60
+ }
61
+
62
+ /**
63
+ * 配置从哪来。三种状态别混:(r242)
64
+ * env / env-missing / repo / default;env-missing 是配置错误,不是"没有配置"。
65
+ */
66
+ function configSourceOf(path) {
67
+ const fromEnv = Boolean(process.env.LIL_WHALE_CONFIG)
68
+ if (fromEnv) return existsSync(path) ? 'env' : 'env-missing'
69
+ return existsSync(path) ? 'repo' : 'default'
70
+ }
71
+
72
+ /** 派生字段(只由上面几个推出来,不许单独写死)。 */
73
+ function derive(c) {
74
+ // 先把旧名字抬成新名字(新名字优先)。
75
+ const lifted = { ...c }
76
+ for (const [oldKey, newKey] of Object.entries(LEGACY_KEYS)) {
77
+ if (lifted[newKey] === undefined && lifted[oldKey] !== undefined) lifted[newKey] = lifted[oldKey]
78
+ }
79
+ const selfHome = lifted.selfHome
80
+ // 共享区(pool)在她家之外:群、多成员账本都放这儿。
81
+ // 为什么不在她家里:群是共享空间,不是她的私人物品;第二条鱼出现后,
82
+ // 第二条的群文件写进第一条的家就是越界(Fabian 2026-11-12 拍板)。
83
+ // 她家里留 Junction 指回 pool,所以她的路径一个字都不用改。
84
+ // selfHome = <pond>\homes\<键> ⇒ 上两级才是 pond。
85
+ const poolDir = lifted.poolDir || resolve(selfHome, '..', '..', 'pool')
86
+ const out = {
87
+ ...lifted,
88
+ poolDir,
89
+ poolStateDir: lifted.poolStateDir || join(poolDir, 'state'),
90
+ // 私聊是「两个人之间的窗口」,不放进群目录:群目录是共享区里公开的那一半(Fabian 2026-11-12 拍板)。
91
+ dmDir: lifted.dmDir || join(poolDir, 'dm'),
92
+ // 名册:谁是谁、叫什么、哪条鱼、端口、爹是谁。多鱼之后这些不许再写死在代码里。
93
+ membersFile: lifted.membersFile || join(poolDir, 'members.json'),
94
+ selfPort: Number(lifted.selfPort) || 3082,
95
+ groupDir: lifted.groupDir || join(poolDir, 'group'),
96
+ selfDshHome: lifted.selfDshHome || join(selfHome, 'dsh-home'),
97
+ selfCwd: lifted.selfCwd || selfHome,
98
+ chatCwd: lifted.chatCwd || dirname(lifted.repoRoot),
99
+ watchmanPidFile: lifted.watchmanPidFile || join(poolDir, 'state', 'watchman.pid'),
100
+ }
101
+ // 兼容别名:旧代码/旧脚本还在用 her* / whale*,给它们留一份只读映射。
102
+ out.herHome = out.selfHome
103
+ out.herDshHome = out.selfDshHome
104
+ out.herWaker = out.selfWaker
105
+ out.herPort = out.selfPort
106
+ out.whaleProfile = out.selfProfile
107
+ out.whaleCwd = out.selfCwd
108
+ return out
109
+ }
110
+
111
+ /**
112
+ * 读一次,缓存起来(进程生命周期内不变 —— 改配置要重启,这是有意的:
113
+ * 热改路径会让"这个进程到底在读哪份文件"变成一个没人答得上来的问题)。
114
+ */
115
+ export function config() {
116
+ if (cached) return cached
117
+ const path = configPath()
118
+ let raw = {}
119
+ let error = null
120
+ if (existsSync(path)) {
121
+ try {
122
+ raw = JSON.parse(readFileSync(path, 'utf8'))
123
+ } catch (e) {
124
+ // 配置写坏了要说出来,不能安静地用默认值跑 —— 那会让人以为自己改对了
125
+ error = `config 读取失败(${path}):${e.message}`
126
+ }
127
+ }
128
+ const source = configSourceOf(path)
129
+ if (source === 'env-missing' && !error) {
130
+ // 环境变量给了 = "我要用这一份";文件不在是配置错误,不能安静地用默认值继续跑。
131
+ error = `LIL_WHALE_CONFIG 指向的文件不存在:${path}`
132
+ }
133
+ cached = { ...derive({ ...DEFAULTS, ...raw }), _path: path, _exists: existsSync(path), _error: error, _source: source }
134
+ return cached
135
+ }
136
+
137
+ /** 给启动痕迹用的短摘要:哪份配置、这条鱼的家在哪儿。 */
138
+ export function configSummary() {
139
+ const c = config()
140
+ return { path: c._path, source: c._source, exists: c._exists, error: c._error, selfHome: c.selfHome, groupDir: c.groupDir }
141
+ }
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@fabianactor/dsh-lil-whale-group-ui",
3
- "version": "1.8.14",
4
- "type": "module",
5
- "description": "群聊页面:侧边栏一个图标,点开是三条鱼的群(读写 lil-whale\\group\\messages.jsonl)",
6
- "author": "Fabian",
7
- "license": "MIT",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/FabianActor/dsh-lil-whale.git",
11
- "directory": "plugin/dsh-lil-whale-group-ui"
12
- },
13
- "keywords": [
14
- "dsh",
15
- "dsh-plugin",
16
- "deepseek-harness",
17
- "group-chat",
18
- "web-ui"
19
- ],
20
- "engines": {
21
- "dsh": ">=0.2.2-rc.1"
22
- },
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "exports": {
27
- ".": "./lib/index.js",
28
- "./client": "./lib/client.js"
29
- },
30
- "files": [
31
- "lib/*.js",
32
- "cordis.patch.yml"
33
- ],
34
- "dsh": {
35
- "bundle": {
36
- "patch": "./cordis.patch.yml"
37
- },
38
- "client": {
39
- "platform": "web",
40
- "immediately": true,
41
- "inject": [
42
- "@deepseek-ai/dsh-client-ui-primitives"
43
- ]
44
- }
45
- }
46
- }
1
+ {
2
+ "name": "@fabianactor/dsh-lil-whale-group-ui",
3
+ "version": "1.9.0",
4
+ "type": "module",
5
+ "description": "群聊页面:侧边栏一个图标,点开是三条鱼的群(读写 lil-whale\\group\\messages.jsonl)",
6
+ "author": "Fabian",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/FabianActor/dsh-lil-whale.git",
11
+ "directory": "plugin/dsh-lil-whale-group-ui"
12
+ },
13
+ "keywords": [
14
+ "dsh",
15
+ "dsh-plugin",
16
+ "deepseek-harness",
17
+ "group-chat",
18
+ "web-ui"
19
+ ],
20
+ "engines": {
21
+ "dsh": ">=0.2.2-rc.1"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "exports": {
27
+ ".": "./lib/index.js",
28
+ "./client": "./lib/client.js"
29
+ },
30
+ "files": [
31
+ "lib/*.js",
32
+ "cordis.patch.yml"
33
+ ],
34
+ "dsh": {
35
+ "bundle": {
36
+ "patch": "./cordis.patch.yml"
37
+ },
38
+ "client": {
39
+ "platform": "web",
40
+ "immediately": true,
41
+ "inject": [
42
+ "@deepseek-ai/dsh-client-ui-primitives"
43
+ ]
44
+ }
45
+ }
46
+ }