@celljs/ta-share 4.16.0 → 4.18.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/README.en.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Cell - Ta Share
2
2
 
3
+ Links that share; seeing and working the screen of a computer is `@celljs/ta-screen-share`.
4
+
3
5
  A pi package that comes with Ta (on by default; Settings → Extensions turns it off): share a conversation, a page or a file by a link, and open or import what others share. Design notes: [docs/design/ta-link.md](../../docs/design/ta-link.md).
4
6
 
5
7
  ## Use
@@ -22,6 +24,6 @@ It works for 1, 7 or 30 days, or until stopped; "opens while this computer is of
22
24
 
23
25
  ## Parts
24
26
 
25
- - **Server side** (`pi.host`, `web-src/host.ts`): `ShareService`. The snapshot of a conversation (`ConversationSnapshot`: the user's messages, the replies and the calls of tools of the branch shown; no thinking, images or cards of extensions; the outputs of tools if asked, 4 KB each) and `Redactor`; links made, listed, stopped and opened by `TaExtensionHost.shares`; imports by `TaExtensionHost.createSession` (ssh:// directories too).
27
+ - **Server side** (`pi.host`, `web-src/host.ts`): `ShareService`. The snapshot of a conversation (`ConversationSnapshot`: the user's messages, the replies and the calls of tools of the branch shown; no thinking, images or cards of extensions; the outputs of tools if asked, 4 KB each; the words as a person reads them, `TaSaid`, without the context, skill files and summaries that are for the model) and `Redactor`; links made, listed, stopped and opened by `TaExtensionHost.shares`; imports by `TaExtensionHost.createSession` (ssh:// directories too).
26
28
  - **pi extension** (`web-src/extension.ts`): the tool `share_link`.
27
29
  - **Web extension** (`web-src/index.tsx`): the + of the message box, the menu of a conversation (`registerSessionMenu`), the dialog (`ui.custom`), My shares, and a tab of the workbench for links (`registerOpener(…, { specific: true })`).
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Cell - Ta Share
2
2
 
3
+ 分享链接;看和操作一台电脑的屏幕是 `@celljs/ta-screen-share`。
4
+
3
5
  Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):把对话、网页或文件生成链接分享出去,也能打开、导入别人分享的对话。设计记录见 [docs/design/ta-link.md](../../docs/design/ta-link.md)。
4
6
 
5
7
  ## 怎么用
@@ -22,6 +24,6 @@ Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):把对
22
24
 
23
25
  ## 组成
24
26
 
25
- - **服务端**(`pi.host`,`web-src/host.ts`):`ShareService`。对话快照(`ConversationSnapshot`:当前分支的用户消息、回复文字、工具调用;不含思考、图片、扩展卡片,工具输出可选、每条最多 4 KB)与脱敏(`Redactor`),经 `TaExtensionHost.shares` 生成、列出、停止、打开链接;导入经 `TaExtensionHost.createSession`(ssh:// 目录同样适用)。
27
+ - **服务端**(`pi.host`,`web-src/host.ts`):`ShareService`。对话快照(`ConversationSnapshot`:当前分支的用户消息、回复文字、工具调用;不含思考、图片、扩展卡片,工具输出可选、每条最多 4 KB;文字是人读到的样子(`TaSaid`),不带给模型看的 context、技能文件和压缩摘要)与脱敏(`Redactor`),经 `TaExtensionHost.shares` 生成、列出、停止、打开链接;导入经 `TaExtensionHost.createSession`(ssh:// 目录同样适用)。
26
28
  - **pi 扩展**(`web-src/extension.ts`):工具 `share_link`。
27
29
  - **Web 扩展**(`web-src/index.tsx`):输入框 + 菜单、会话菜单(`registerSessionMenu`)、分享弹窗(`ui.custom`)、"我的分享"页、打开链接的工作台标签(`registerOpener(…, { specific: true })`)。
@@ -1,4 +1,5 @@
1
1
  // ../ta-protocol/esm/common/ta-extension-host.js
2
+ var TA_WEBHOOK_MAX_BYTES = 256 * 1024;
2
3
  var TA_HOST_EVENT = "ta:host";
3
4
  var TaHostUtil;
4
5
  (function(TaHostUtil2) {