@qilin-agent/client-ui-session 0.0.0-stage → 3.1.4
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/LICENSE +21 -0
- package/README.i18n.yaml +28 -0
- package/README.md +44 -2
- package/README.zh.md +45 -0
- package/lib/client.js +1134 -0
- package/lib/index.js +6 -0
- package/lib/types/client/index.d.ts +192 -0
- package/lib/types/client/session-provider.d.ts +11 -0
- package/lib/types/index.d.ts +4 -0
- package/package.json +63 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kkutysllb
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.i18n.yaml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
|
2
|
+
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
|
3
|
+
# After editing either side, bring the other along and re-record with:
|
|
4
|
+
# pnpm run verify-translation-pairing --write packages/client/ui-session/README.md
|
|
5
|
+
/:
|
|
6
|
+
en: af287bddb3c67f95
|
|
7
|
+
zh: 162d447352ac8366
|
|
8
|
+
/qilin-agent-client-ui-session:
|
|
9
|
+
en: 611dc1d5a778f946
|
|
10
|
+
zh: ce147846870a3fae
|
|
11
|
+
/qilin-agent-client-ui-session/summary:
|
|
12
|
+
en: a1aacfe596eb6276
|
|
13
|
+
zh: e8dc10cac8c0251d
|
|
14
|
+
/qilin-agent-client-ui-session/table-of-contents:
|
|
15
|
+
en: b4683d2a53256fda
|
|
16
|
+
zh: 4e65ff63dc8c48fe
|
|
17
|
+
/qilin-agent-client-ui-session/model-experience:
|
|
18
|
+
en: cb2d4451e8bf8520
|
|
19
|
+
zh: 6d3adbb930d90c59
|
|
20
|
+
/qilin-agent-client-ui-session/model-experience/kv-cache-effect:
|
|
21
|
+
en: 209b4471032b0f9d
|
|
22
|
+
zh: 6c2e39ac1dedf71c
|
|
23
|
+
/qilin-agent-client-ui-session/known-limitations-and-deferred-work:
|
|
24
|
+
en: 61ef65087e3d4ac8
|
|
25
|
+
zh: 01b38db2957f9096
|
|
26
|
+
/qilin-agent-client-ui-session/known-limitations-and-deferred-work/dev-note:
|
|
27
|
+
en: e67f633dc6fe7773
|
|
28
|
+
zh: e88aeb617ffb74ea
|
package/README.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
description: "React and Slot adapters for Session Controller lists, interaction state, and per-session context."
|
|
3
|
+
kind: "package-reference"
|
|
4
|
+
---
|
|
5
|
+
# @qilin-agent/client-ui-session
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
English | [中文](README.zh.md)
|
|
8
|
+
|
|
9
|
+
## Summary
|
|
10
|
+
|
|
11
|
+
Use this package to expose Session catalog, retain information, and unified UI status through standard Slot hooks. It materializes per-`SessionBinding` hooks and props, while `SessionProvider` can inherit an outer binding or bind an explicit `SessionReference`. It owns process-local pending-interaction and completion-reminder policy without owning Controller transport, history, or references.
|
|
12
|
+
|
|
13
|
+
## Table of Contents
|
|
14
|
+
|
|
15
|
+
- [Model Experience](#model-experience)
|
|
16
|
+
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
|
17
|
+
- [Dev Note](#dev-note)
|
|
18
|
+
|
|
19
|
+
-----
|
|
20
|
+
|
|
21
|
+
<a id="model-experience"></a>
|
|
22
|
+
## Model Experience
|
|
23
|
+
|
|
24
|
+
None, as this package adapts browser-side Session state and registers nothing model-facing.
|
|
25
|
+
|
|
26
|
+
#### KV Cache effect
|
|
27
|
+
|
|
28
|
+
None; Session selectors and Slot scopes do not assemble model requests.
|
|
29
|
+
|
|
30
|
+
## Known Limitations and Deferred Work
|
|
31
|
+
|
|
32
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
33
|
+
|
|
34
|
+
- **Pending interactions are process-local projections** — the owning Remote waterfall must replay an outstanding request after a browser reconnect.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<a id="dev-note"></a>
|
|
38
|
+
### Dev Note
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary>Working context for maintainers — click to expand</summary>
|
|
42
|
+
|
|
43
|
+
None.
|
|
44
|
+
|
|
45
|
+
</details>
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "面向 Session Controller 列表、交互状态与逐会话上下文的 React 与 Slot 适配器。"
|
|
3
|
+
kind: "package-reference"
|
|
4
|
+
---
|
|
5
|
+
# @qilin-agent/client-ui-session
|
|
6
|
+
|
|
7
|
+
[English](README.md) | 中文
|
|
8
|
+
|
|
9
|
+
## 概述
|
|
10
|
+
|
|
11
|
+
使用本包可通过标准 Slot 钩子公开 Session catalog、retain 信息与统一 UI 状态。它按 `SessionBinding` 物化钩子和 prop,而 `SessionProvider` 可以继承外围 binding 或绑定显式 `SessionReference`。它拥有进程本地的 pending-interaction 与完成提醒策略,但不拥有 Controller transport、历史或 reference。
|
|
12
|
+
|
|
13
|
+
## 目录
|
|
14
|
+
|
|
15
|
+
- [模型体验](#model-experience)
|
|
16
|
+
- [已知限制与暂缓事项](#known-limitations-and-deferred-work)
|
|
17
|
+
- [开发备注](#dev-note)
|
|
18
|
+
|
|
19
|
+
-----
|
|
20
|
+
|
|
21
|
+
<a id="model-experience"></a>
|
|
22
|
+
## 模型体验
|
|
23
|
+
|
|
24
|
+
无,因为本包适配浏览器侧 Session 状态,不注册任何面向模型的内容。
|
|
25
|
+
|
|
26
|
+
#### KV Cache 影响
|
|
27
|
+
|
|
28
|
+
无;Session selector 与 Slot scope 不会组装模型请求。
|
|
29
|
+
|
|
30
|
+
## 已知限制与暂缓事项
|
|
31
|
+
|
|
32
|
+
<a id="known-limitations-and-deferred-work"></a>
|
|
33
|
+
|
|
34
|
+
- **Pending interaction 是进程本地投影**——浏览器重连后,所属 Remote waterfall(瀑布式事件)必须重放仍未完成的请求。
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<a id="dev-note"></a>
|
|
38
|
+
### 开发备注
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary>维护者工作上下文——点击展开</summary>
|
|
42
|
+
|
|
43
|
+
无。
|
|
44
|
+
|
|
45
|
+
</details>
|