@csntgao/uni-base 0.2.0 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csntgao/uni-base",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.3.0",
6
6
  "publishConfig": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniplat/ai-employee-web-components",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "description": "Framework-independent Web Components for Uniplat account, login, application switching and AI Employee chat",
5
5
  "type": "module",
6
6
  "sideEffects": true,
@@ -819,7 +819,7 @@ function normalizeOrganizations(
819
819
  role: normalizeOptionalText(organization.role, 60),
820
820
  memberCount: normalizeMemberCount(organization.memberCount),
821
821
  lastEnteredLabel: normalizeOptionalText(organization.lastEnteredLabel, 80),
822
- searchKey: `${name}${unifiedSocialCreditCode}`.toLowerCase(),
822
+ searchKey: `${name} ${unifiedSocialCreditCode}`.toLowerCase(),
823
823
  }
824
824
  })
825
825
  }
@@ -143,6 +143,10 @@ describe('<uniplat-organization-selector>', () => {
143
143
  expect(rowNames(selector)).toEqual(['北京星河科技有限公司'])
144
144
  expect(selector.shadowRoot?.textContent).not.toContain('91110108MA01XY7788')
145
145
 
146
+ // 名称与信用代码之间用空格分隔,搜索键里不得出现控制字符。
147
+ await typeSearch(selector, '北京星河科技有限公司 91110108MA01XY7788')
148
+ expect(rowNames(selector)).toEqual(['北京星河科技有限公司'])
149
+
146
150
  await typeSearch(selector, '不存在的组织')
147
151
  expect(rowNames(selector)).toEqual([])
148
152
  expect(selector.shadowRoot?.textContent).toContain('没有匹配的团队或企业')
@@ -6,7 +6,7 @@
6
6
  >
7
7
  > 分支:`main`
8
8
  >
9
- > 交接基线提交:`605c783 fix(web-components): 固定账户胶囊宽度并截断过长姓名与组织名`
9
+ > 交接基线提交:`d19ac72 feat(web-components): 无归属用户强制走创建组织流程`
10
10
 
11
11
  ## 1. Claude 接手后的第一步
12
12
 
@@ -23,9 +23,9 @@ git log -5 --oneline --decorate
23
23
  交接文档更新前的 Git 状态为:
24
24
 
25
25
  ```text
26
- main 领先 origin/main 7 个提交(未推送)
26
+ main 领先 origin/main 9 个提交(未推送)
27
27
  工作树无代码改动
28
- HEAD = 605c783
28
+ HEAD = d19ac72
29
29
  ```
30
30
 
31
31
  不要清理、覆盖或提交根目录已有的 `.tgz`。它们是历史及当前本地发布产物,已由 `.gitignore` 忽略。
@@ -38,9 +38,9 @@ HEAD = 605c783
38
38
 
39
39
  | 位置 | npm 名称 | 当前本地版本 | 说明 |
40
40
  | ------------------------- | -------------------------------------- | -----------: | --------------------------------------- |
41
- | 根目录 | `@csntgao/uni-base` | `0.1.5` | 当前公开发布入口;npmjs 已发布此版本 |
41
+ | 根目录 | `@csntgao/uni-base` | `0.2.0` | 当前公开发布入口;npmjs 已发布此版本 |
42
42
  | `packages/core` | `@uniplat/ai-employee-client` | `0.14.0` | UI 无关的 HTTP/WebSocket/Core 状态机 |
43
- | `packages/web-components` | `@uniplat/ai-employee-web-components` | `0.24.1` | Lit Web Components 与独立浏览器 runtime |
43
+ | `packages/web-components` | `@uniplat/ai-employee-web-components` | `0.25.0` | Lit Web Components 与独立浏览器 runtime |
44
44
  | `examples/vanilla` | `@uniplat/ai-employee-vanilla-example` | 私有示例 | 必须消费 workspace 包的构建产物 |
45
45
 
46
46
  注意:根包改名为 `@csntgao/uni-base` 不代表两个 workspace 包、已有 Web Component 标签或公开类型可以随之改名。`@uniplat/*` 名称和 `uniplat-*` 标签仍是公开契约。
@@ -71,6 +71,23 @@ HEAD = 605c783
71
71
 
72
72
  ## 4. 近期完成的改动
73
73
 
74
+ ### 4.-2 无归属用户强制入驻
75
+
76
+ 最新提交:
77
+
78
+ ```text
79
+ d19ac72 feat(web-components): 无归属用户强制走创建组织流程
80
+ ```
81
+
82
+ 账户投影零归属时,`<uniplat-account-context>` 用原生 `dialog.showModal()`(top layer,不受 Host
83
+ 导航 `transform/overflow` 影响)自动打开强制态创建流程:不渲染跳过、无归属提示、邀请码加入与
84
+ 关闭按钮,遮罩点击、`Escape` 与 `cancel` 都不关闭,只能创建组织或点“退出登录”派发
85
+ `logout-requested`。企业/团队表单页的“跳过”换成“返回”,创建成功页的认证、升级或邀请动作才关闭
86
+ 对话框。Host 可用 `organizationOnboarding.mandatory: false` 退回可跳过行为,默认开启。
87
+
88
+ 该行为**覆盖**了 40.1 原型 4.1 的“暂不创建,先逛逛”和 S.0 图中“0 归属不弹窗”两条既有约定,
89
+ 是按用户新需求做的行为变更,不是实现偏差。
90
+
74
91
  ### 4.-1 账户胶囊固定宽度
75
92
 
76
93
  最新提交:
@@ -257,13 +274,13 @@ Account Context 对外只派发净化后的 `LOAD_FAILED`,精确排错应看
257
274
 
258
275
  ## 7. 当前构建和验证状态
259
276
 
260
- 在 `605c783` 上最近一次完整检查结果:
277
+ 在 `d19ac72` 上最近一次完整检查结果:
261
278
 
262
279
  ```text
263
280
  pnpm format:check 通过
264
281
  pnpm lint 通过
265
282
  pnpm typecheck 通过
266
- pnpm test 25 个测试文件通过;276 passed,2 skipped
283
+ pnpm test 25 个测试文件通过;281 passed,2 skipped
267
284
  pnpm build core、web-components、runtime、vanilla 全部通过
268
285
  ```
269
286
 
@@ -271,7 +288,7 @@ pnpm build core、web-components、runtime、vanilla 全部通过
271
288
 
272
289
  ```text
273
290
  /Users/gaostudio/uni-base/uniplat-ai-employee-client-0.14.0.tgz
274
- /Users/gaostudio/uni-base/uniplat-ai-employee-web-components-0.24.1.tgz
291
+ /Users/gaostudio/uni-base/uniplat-ai-employee-web-components-0.25.0.tgz
275
292
  ```
276
293
 
277
294
  根包本地产物:
@@ -304,9 +321,9 @@ pnpm --filter @uniplat/ai-employee-web-components pack
304
321
 
305
322
  ```text
306
323
  Manifest: https://10.10.10.131:8787/current.json
307
- Version: 0.24.1
308
- Module: https://10.10.10.131:8787/releases/0.24.1/index.js
309
- SHA-256: c45894bb393dd5a99e484f01ce302cf39024a4d6c1124cf8f33ab9db6063405d
324
+ Version: 0.25.0
325
+ Module: https://10.10.10.131:8787/releases/0.25.0/index.js
326
+ SHA-256: 3a37ff4225d346b9f32bdc1ee725a9050f5e0b631520f387407067bca6384631
310
327
  ```
311
328
 
312
329
  最后验证结果:
@@ -314,7 +331,7 @@ SHA-256: c45894bb393dd5a99e484f01ce302cf39024a4d6c1124cf8f33ab9db6063405d
314
331
  - `current.json`:HTTP 200、`Cache-Control: no-store`;
315
332
  - 版本模块:HTTP 200、CORS `*`、`immutable`;
316
333
  - 远端模块 hash 与本地一致;
317
- - `current.json` 指向 `./releases/0.24.1/index.js`。
334
+ - `current.json` 指向 `./releases/0.25.0/index.js`。
318
335
 
319
336
  静态服务未启动时可执行:
320
337
 
@@ -336,12 +353,12 @@ https://registry.npmjs.org/
336
353
 
337
354
  ```text
338
355
  npm whoami csntgao(已登录)
339
- @csntgao/uni-base 0.1.5 已发布并回读校验
356
+ @csntgao/uni-base 0.2.0 已发布并回读校验
340
357
  @uniplat/ai-employee-client 未发布,PUT 返回 404(无 scope 创建权限)
341
358
  @uniplat/ai-employee-web-components 未发布,同上
342
359
  ```
343
360
 
344
- `@csntgao/uni-base@0.1.5` 的远端 shasum 为 `b962d7140a2ae62247b4ed3a45782bb821238b17`,
361
+ `@csntgao/uni-base@0.2.0` 的远端 shasum 为 `b02599ed1443de9909b7e005767ecc045e7a67db`,
345
362
  与本地打包一致。发布后远端 `npm view` 有几秒传播延迟,第一次回读到旧版本要重试再确认。注意该包没有 `main`/`exports`/`files`,发布内容是 91 个源码文件,
346
363
  不是可直接 `import` 的库;调用方仍应使用 runtime 或 workspace 包。
347
364