@celljs/ta-manual 4.11.0 → 4.12.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/package.json +3 -3
- package/skills/ta-manual/SKILL.md +11 -0
- package/web/index.js +186 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-manual",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"description": "A pi package for Ta: the user manual, a page of short illustrated guides to what Ta does, and the ta-manual skill that answers how to use Ta from it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@celljs/ta-protocol": "4.
|
|
30
|
-
"@celljs/ta-web": "4.
|
|
29
|
+
"@celljs/ta-protocol": "4.12.0",
|
|
30
|
+
"@celljs/ta-web": "4.12.0",
|
|
31
31
|
"@types/react": "^19.3.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
@@ -48,6 +48,17 @@ A team in a chat. (with the built-in package `@celljs/ta-channels`, which the us
|
|
|
48
48
|
4. **Hand it over** — Say “give this to @tester”, or pick Hand over to… in the +: Ta writes the brief, the agent or channel goes on.
|
|
49
49
|
中文:**交给别人做** — 说“这个交给 @tester”,或在 + 里选“交给…”:Ta 写好交接摘要,对方接着做。
|
|
50
50
|
|
|
51
|
+
## Rooms (房间)
|
|
52
|
+
|
|
53
|
+
Chat with others' Ta. (with the built-in package `@celljs/ta-rooms`, which the user may have turned off in Settings → Extensions)
|
|
54
|
+
|
|
55
|
+
1. **Make a room, invite** — In Discover, Rooms, tap + to make one; Invite in its members gives a link and a code. You let in who asks.
|
|
56
|
+
中文:**建房间并邀请** — 在“发现 → 房间”点 + 新建,在房间成员里点“邀请”发出链接或二维码,有人申请时由你同意。
|
|
57
|
+
2. **Ask someone's double** — @ someone's double in the box: their Ta answers in the room, if they let it. Yours answers others the same way.
|
|
58
|
+
中文:**问对方的分身** — 在输入框里 @ 某人的分身,对方允许时,TA 的 Ta 就在房间里回答;你的分身也一样。
|
|
59
|
+
3. **Let it do more** — A double only chats. When it asks, or with the key by a member, let it use files or commands in one folder for a while; take it back in What your double did.
|
|
60
|
+
中文:**授权与收回** — 分身默认只聊天。它请求时或点成员旁的钥匙,可让它在一个目录里读写文件或运行命令;在“分身记录”里收回。
|
|
61
|
+
|
|
51
62
|
## The workbench (工作台)
|
|
52
63
|
|
|
53
64
|
Files and a terminal. (with the built-in package `@celljs/ta-workspace`, which the user may have turned off in Settings → Extensions)
|
package/web/index.js
CHANGED
|
@@ -1689,8 +1689,159 @@ var PICTURES_B = {
|
|
|
1689
1689
|
"more-computer": MoreComputer
|
|
1690
1690
|
};
|
|
1691
1691
|
|
|
1692
|
+
// web-src/pictures-c.tsx
|
|
1693
|
+
function RoomsInvite() {
|
|
1694
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("rect", {
|
|
1695
|
+
className: "ta-pic-pane",
|
|
1696
|
+
x: "18",
|
|
1697
|
+
y: "14",
|
|
1698
|
+
width: "56",
|
|
1699
|
+
height: "68",
|
|
1700
|
+
rx: "10"
|
|
1701
|
+
}), /* @__PURE__ */ React.createElement(Face, {
|
|
1702
|
+
x: 36,
|
|
1703
|
+
y: 34,
|
|
1704
|
+
r: 8
|
|
1705
|
+
}), /* @__PURE__ */ React.createElement(Face, {
|
|
1706
|
+
x: 56,
|
|
1707
|
+
y: 34,
|
|
1708
|
+
r: 8,
|
|
1709
|
+
tone: "line"
|
|
1710
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1711
|
+
x: 28,
|
|
1712
|
+
y: 52,
|
|
1713
|
+
w: 36
|
|
1714
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1715
|
+
x: 28,
|
|
1716
|
+
y: 60,
|
|
1717
|
+
w: 24,
|
|
1718
|
+
soft: true
|
|
1719
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
1720
|
+
className: "ta-pic-path",
|
|
1721
|
+
d: "M80 48H100"
|
|
1722
|
+
}), /* @__PURE__ */ React.createElement("circle", {
|
|
1723
|
+
className: "ta-pic-mark ta-pic-go",
|
|
1724
|
+
cx: "90",
|
|
1725
|
+
cy: "48",
|
|
1726
|
+
r: "3"
|
|
1727
|
+
}), /* @__PURE__ */ React.createElement(QrCode, {
|
|
1728
|
+
x: 106,
|
|
1729
|
+
y: 26,
|
|
1730
|
+
size: 42
|
|
1731
|
+
}));
|
|
1732
|
+
}
|
|
1733
|
+
function RoomsDouble() {
|
|
1734
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Face, {
|
|
1735
|
+
x: 24,
|
|
1736
|
+
y: 22,
|
|
1737
|
+
r: 7,
|
|
1738
|
+
tone: "line"
|
|
1739
|
+
}), /* @__PURE__ */ React.createElement("rect", {
|
|
1740
|
+
className: "ta-pic-pane",
|
|
1741
|
+
x: "35",
|
|
1742
|
+
y: "15",
|
|
1743
|
+
width: "74",
|
|
1744
|
+
height: "14",
|
|
1745
|
+
rx: "7"
|
|
1746
|
+
}), /* @__PURE__ */ React.createElement("text", {
|
|
1747
|
+
className: "ta-pic-text",
|
|
1748
|
+
x: "40",
|
|
1749
|
+
y: "25.5"
|
|
1750
|
+
}, "@"), /* @__PURE__ */ React.createElement(Line, {
|
|
1751
|
+
x: 50,
|
|
1752
|
+
y: 20,
|
|
1753
|
+
w: 50
|
|
1754
|
+
}), /* @__PURE__ */ React.createElement(Face, {
|
|
1755
|
+
x: 24,
|
|
1756
|
+
y: 58,
|
|
1757
|
+
r: 7
|
|
1758
|
+
}), /* @__PURE__ */ React.createElement("rect", {
|
|
1759
|
+
className: "ta-pic-box",
|
|
1760
|
+
x: "35",
|
|
1761
|
+
y: "46",
|
|
1762
|
+
width: "96",
|
|
1763
|
+
height: "14",
|
|
1764
|
+
rx: "7"
|
|
1765
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1766
|
+
x: 42,
|
|
1767
|
+
y: 51,
|
|
1768
|
+
w: 64
|
|
1769
|
+
}), /* @__PURE__ */ React.createElement("rect", {
|
|
1770
|
+
className: "ta-pic-box",
|
|
1771
|
+
x: "35",
|
|
1772
|
+
y: "64",
|
|
1773
|
+
width: "70",
|
|
1774
|
+
height: "14",
|
|
1775
|
+
rx: "7"
|
|
1776
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1777
|
+
x: 42,
|
|
1778
|
+
y: 69,
|
|
1779
|
+
w: 44,
|
|
1780
|
+
soft: true
|
|
1781
|
+
}), /* @__PURE__ */ React.createElement("path", {
|
|
1782
|
+
className: "ta-pic-mark",
|
|
1783
|
+
d: "M145 40.5l1.4 3.6 3.6 1.4-3.6 1.4-1.4 3.6-1.4-3.6-3.6-1.4 3.6-1.4z"
|
|
1784
|
+
}));
|
|
1785
|
+
}
|
|
1786
|
+
function RoomsPermit() {
|
|
1787
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("rect", {
|
|
1788
|
+
className: "ta-pic-pane",
|
|
1789
|
+
x: "22",
|
|
1790
|
+
y: "12",
|
|
1791
|
+
width: "116",
|
|
1792
|
+
height: "72",
|
|
1793
|
+
rx: "10"
|
|
1794
|
+
}), /* @__PURE__ */ React.createElement(Face, {
|
|
1795
|
+
x: 40,
|
|
1796
|
+
y: 30,
|
|
1797
|
+
r: 8,
|
|
1798
|
+
tone: "line"
|
|
1799
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1800
|
+
x: 54,
|
|
1801
|
+
y: 26,
|
|
1802
|
+
w: 50
|
|
1803
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1804
|
+
x: 54,
|
|
1805
|
+
y: 34,
|
|
1806
|
+
w: 34,
|
|
1807
|
+
soft: true
|
|
1808
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1809
|
+
x: 34,
|
|
1810
|
+
y: 52,
|
|
1811
|
+
w: 44
|
|
1812
|
+
}), /* @__PURE__ */ React.createElement("rect", {
|
|
1813
|
+
className: "ta-pic-accent",
|
|
1814
|
+
x: "104",
|
|
1815
|
+
y: "47",
|
|
1816
|
+
width: "22",
|
|
1817
|
+
height: "11",
|
|
1818
|
+
rx: "5.5"
|
|
1819
|
+
}), /* @__PURE__ */ React.createElement("circle", {
|
|
1820
|
+
className: "ta-pic-mark",
|
|
1821
|
+
cx: "120.5",
|
|
1822
|
+
cy: "52.5",
|
|
1823
|
+
r: "3.6"
|
|
1824
|
+
}), /* @__PURE__ */ React.createElement(Line, {
|
|
1825
|
+
x: 34,
|
|
1826
|
+
y: 68,
|
|
1827
|
+
w: 30,
|
|
1828
|
+
soft: true
|
|
1829
|
+
}), /* @__PURE__ */ React.createElement(Done, {
|
|
1830
|
+
x: 118,
|
|
1831
|
+
y: 70
|
|
1832
|
+
}), /* @__PURE__ */ React.createElement(Tap, {
|
|
1833
|
+
x: 115,
|
|
1834
|
+
y: 52
|
|
1835
|
+
}));
|
|
1836
|
+
}
|
|
1837
|
+
var PICTURES_C = {
|
|
1838
|
+
"rooms-invite": RoomsInvite,
|
|
1839
|
+
"rooms-double": RoomsDouble,
|
|
1840
|
+
"rooms-permit": RoomsPermit
|
|
1841
|
+
};
|
|
1842
|
+
|
|
1692
1843
|
// web-src/pictures.tsx
|
|
1693
|
-
var PICTURES = { ...PICTURES_A, ...PICTURES_B };
|
|
1844
|
+
var PICTURES = { ...PICTURES_A, ...PICTURES_B, ...PICTURES_C };
|
|
1694
1845
|
function StepPicture({ pi, name }) {
|
|
1695
1846
|
const Shapes = PICTURES[name];
|
|
1696
1847
|
return /* @__PURE__ */ React.createElement(pi.ui.Picture, null, Shapes ? /* @__PURE__ */ React.createElement(Shapes, null) : null);
|
|
@@ -1708,6 +1859,7 @@ var BOTS = "@celljs/ta-bots";
|
|
|
1708
1859
|
var COMPUTER_USE = "@celljs/ta-computer-use";
|
|
1709
1860
|
var NOTIFY = "@celljs/ta-notify";
|
|
1710
1861
|
var RECALL = "@celljs/ta-recall";
|
|
1862
|
+
var ROOMS = "@celljs/ta-rooms";
|
|
1711
1863
|
var TOPICS = [
|
|
1712
1864
|
{
|
|
1713
1865
|
key: "chat",
|
|
@@ -1828,6 +1980,39 @@ var TOPICS = [
|
|
|
1828
1980
|
}
|
|
1829
1981
|
]
|
|
1830
1982
|
},
|
|
1983
|
+
{
|
|
1984
|
+
key: "rooms",
|
|
1985
|
+
package: ROOMS,
|
|
1986
|
+
page: `${ROOMS}/rooms`,
|
|
1987
|
+
title: { en: "Rooms", zh: "房间" },
|
|
1988
|
+
hint: { en: "Chat with others' Ta", zh: "和别人的 Ta 一起聊" },
|
|
1989
|
+
steps: [
|
|
1990
|
+
{
|
|
1991
|
+
picture: "rooms-invite",
|
|
1992
|
+
title: { en: "Make a room, invite", zh: "建房间并邀请" },
|
|
1993
|
+
text: {
|
|
1994
|
+
en: "In Discover, Rooms, tap + to make one; Invite in its members gives a link and a code. You let in who asks.",
|
|
1995
|
+
zh: "在“发现 → 房间”点 + 新建,在房间成员里点“邀请”发出链接或二维码,有人申请时由你同意。"
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
picture: "rooms-double",
|
|
2000
|
+
title: { en: "Ask someone's double", zh: "问对方的分身" },
|
|
2001
|
+
text: {
|
|
2002
|
+
en: "@ someone's double in the box: their Ta answers in the room, if they let it. Yours answers others the same way.",
|
|
2003
|
+
zh: "在输入框里 @ 某人的分身,对方允许时,TA 的 Ta 就在房间里回答;你的分身也一样。"
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
picture: "rooms-permit",
|
|
2008
|
+
title: { en: "Let it do more", zh: "授权与收回" },
|
|
2009
|
+
text: {
|
|
2010
|
+
en: "A double only chats. When it asks, or with the key by a member, let it use files or commands in one folder for a while; take it back in What your double did.",
|
|
2011
|
+
zh: "分身默认只聊天。它请求时或点成员旁的钥匙,可让它在一个目录里读写文件或运行命令;在“分身记录”里收回。"
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
]
|
|
2015
|
+
},
|
|
1831
2016
|
{
|
|
1832
2017
|
key: "workbench",
|
|
1833
2018
|
package: WORKSPACE,
|