@celljs/ta-works 0.0.0-stage → 4.39.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 ADDED
@@ -0,0 +1,12 @@
1
+ # Cell - Ta Works
2
+
3
+ A pi package that comes with Ta (on by default; Settings → Extensions turns it off): works. Its design is `docs/design/ta-works.md`.
4
+
5
+ - **Keep**: under what Ta draws in a reply (a game `ta-play`, a plot `ta-plot`, a 3D figure `ta-3d`, a card `ta-glance`), Keep keeps it as it is as a work of the user: no model, nothing made again, found in Quick open and Discover → Works, never cleared for want of use.
6
+ - **A work is a package**: in `<agentDir>/temporary/work-<id>/`, `pi.access: "browser"`, run in a sandbox as what Ta makes for the user is; its page draws the block with the renderers of the page, so it is what the reply showed. Open shows it beside the conversation on a computer, as a page pushed on a phone.
7
+ - **Ta's change is a new version**: in a conversation that kept works, the pi extension tells Ta of them (the `ta-works` section of the system prompt, 10 at most); a block Ta answers naming one (a game starting with `<!-- ta-work: work-… -->`, the JSON of the others with `"work": "work-…"`) is kept by the server as its next version as the turn ends, whether a page shows the conversation or not.
8
+ - **Versions**: 20 at most in `.versions/`; the work's page lists them, shows the one tapped, and Go back to it keeps that one as a new version, so that those after it stay.
9
+ - **Widgets**: put on or taken off from the work's page; on them it starts with the page (`pi.webActivation: "startup"`, for works kept only), on a phone's swipe and the widgets of a computer.
10
+ - **Ask Ta to change it**: back in the conversation it came from, the box naming the work; say what to change.
11
+ - **Offline**: the list of the works is in the package's data, which a device keeps; a work opened on this device opens from Discover → Works while the computer cannot be reached.
12
+ - **Turned off**: the blocks of replies are as before; the works kept are still in Quick open.
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # Temporary Holding Version
1
+ # Cell - Ta Works
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):作品。设计见 `docs/design/ta-works.md`。
4
+
5
+ - **存下来**:回复里 Ta 画出来的东西(小游戏 `ta-play`、函数图 `ta-plot`、3D `ta-3d`、速览卡片 `ta-glance`)下方有“存下来”,点一下原样存成你的作品,不调模型、不重做,在快捷打开和 发现 → 作品 里找到,不会因为久不用被清除。
6
+ - **作品就是一个包**:存在 `<agentDir>/temporary/work-<id>/`,`pi.access: "browser"`,和 Ta 替你做的临时扩展一样在沙箱里运行;它的页面用页面自己的渲染器画出这个块,所以和回复里看到的是同一个东西。电脑上“打开”在对话旁边,手机上推入全屏页。
7
+ - **Ta 改了就是新的一版**:存过作品的对话里,pi 扩展把这些作品告诉 Ta(系统提示的 `ta-works` 一节,最多 10 件);Ta 回一个写着作品 id 的块(小游戏开头 `<!-- ta-work: work-… -->`,其余 JSON 里 `"work": "work-…"`),这一轮结束时服务端就把它存成那件作品的下一版,不管有没有页面开着这段对话。
8
+ - **版本**:`.versions/` 里最多留 20 版;作品页列出各版,点哪一版看哪一版,“回到这一版”会作为新的一版存下,后来的版本不丢。
9
+ - **放到小组件**:作品页一键放上或取下;放上后它随页面启动(`pi.webActivation: "startup"`,只对已存下的作品有效),手机右划、电脑小组件按钮都能看到。
10
+ - **让 Ta 改**:回到作品来自的对话,输入框里写好是哪件作品,说一句要改什么即可。
11
+ - **离线也能看**:作品列表存在包数据里,设备会留一份;在这台设备上打开过的作品,连不上电脑时照样能从 发现 → 作品 打开。
12
+ - **关掉**:回复里的块回到原来的样子,已存的作品照常在快捷打开里。