@celljs/ta-edu 4.29.0 → 4.30.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/host/index.mjs +8 -0
- package/package.json +3 -3
- package/web/index.js +14 -2
package/host/index.mjs
CHANGED
|
@@ -1479,6 +1479,7 @@ var EN2 = {
|
|
|
1479
1479
|
senior: "High school",
|
|
1480
1480
|
explain: { label: "Explain a problem", text: "I can't do this one. Don't tell me the answer yet, help me think it through:" },
|
|
1481
1481
|
quizMe: { label: "Quiz me", text: "Give me a few questions on what I learned lately" },
|
|
1482
|
+
play: { label: "Play a round", text: "Make me a little game on what I learned lately and the mistakes I made, and let me play a round" },
|
|
1482
1483
|
review: { label: "Review mistakes", text: "Review the {count} mistakes due today" },
|
|
1483
1484
|
recite: { label: "Recite", text: "Help me learn this passage by heart: let me try first, then tell me what I got wrong:" },
|
|
1484
1485
|
check: { label: "Check homework", text: "Look at my child’s homework: what is wrong, and how do I explain it to them?" },
|
|
@@ -1490,6 +1491,7 @@ var EN2 = {
|
|
|
1490
1491
|
text: "Mark these (photos below): right or wrong for each question, the causes of the mistakes grouped, and an outline for going over them in class:"
|
|
1491
1492
|
},
|
|
1492
1493
|
makeQuiz: { label: "Set questions", text: "Set questions in three levels (basic, better, stretch) on:" },
|
|
1494
|
+
classGame: { label: "Class game", text: "Make a game the whole class plays together in our group chat, on: " },
|
|
1493
1495
|
lesson: { label: "Lesson plan", text: "Write a lesson plan for:" },
|
|
1494
1496
|
exam: { label: "Analyse a test", text: "Analyse this score sheet (file below): the weak points the class shares, and the students to look after:" },
|
|
1495
1497
|
weekly: {
|
|
@@ -1548,6 +1550,7 @@ var ZH2 = {
|
|
|
1548
1550
|
senior: "高中",
|
|
1549
1551
|
explain: { label: "拍题讲解", text: "这道题我不会,先别告诉我答案,带我一步步想:" },
|
|
1550
1552
|
quizMe: { label: "考考我", text: "按我最近学的内容出几道题考考我" },
|
|
1553
|
+
play: { label: "玩一局", text: "按我最近学的和错过的,做个小游戏让我玩一局" },
|
|
1551
1554
|
review: { label: "复习错题", text: "复习今天该复习的 {count} 道错题" },
|
|
1552
1555
|
recite: { label: "背诵默写", text: "帮我背这一段,先让我自己背,再告诉我哪里错了:" },
|
|
1553
1556
|
check: { label: "看作业对错", text: "帮我看看孩子这份作业哪里错了,告诉我怎么讲给孩子听:" },
|
|
@@ -1556,6 +1559,7 @@ var ZH2 = {
|
|
|
1556
1559
|
plan: { label: "安排学习计划", text: "帮孩子安排这周的学习计划,情况是:" },
|
|
1557
1560
|
grade: { label: "批改作业", text: "批改这些作业(照片在下面),逐题判对错,归类错因,最后给讲评提纲:" },
|
|
1558
1561
|
makeQuiz: { label: "出一套题", text: "出一套题,分基础、提升、拓展三层,主题是:" },
|
|
1562
|
+
classGame: { label: "课堂游戏", text: "做一个全班在班级群里一起玩的课堂小游戏,知识点是:" },
|
|
1559
1563
|
lesson: { label: "写教学设计", text: "写一份教学设计,课题是:" },
|
|
1560
1564
|
exam: { label: "试卷分析", text: "分析这份成绩表(文件在下面),找出共性薄弱点和需要关注的学生:" },
|
|
1561
1565
|
weekly: { label: "每周学情小结", text: "每周五下午 4 点,读本目录里这一周的成绩和作业记录,写一份学情小结给我" },
|
|
@@ -1611,6 +1615,7 @@ var ZH_TW2 = {
|
|
|
1611
1615
|
senior: "高中",
|
|
1612
1616
|
explain: { label: "拍題講解", text: "這道題我不會,先別告訴我答案,帶我一步步想:" },
|
|
1613
1617
|
quizMe: { label: "考考我", text: "依我最近學的內容出幾道題考考我" },
|
|
1618
|
+
play: { label: "玩一局", text: "依我最近學的和錯過的,做個小遊戲讓我玩一局" },
|
|
1614
1619
|
review: { label: "複習錯題", text: "複習今天該複習的 {count} 道錯題" },
|
|
1615
1620
|
recite: { label: "背誦默寫", text: "幫我背這一段,先讓我自己背,再告訴我哪裡錯了:" },
|
|
1616
1621
|
check: { label: "看作業對錯", text: "幫我看看孩子這份作業哪裡錯了,告訴我怎麼講給孩子聽:" },
|
|
@@ -1619,6 +1624,7 @@ var ZH_TW2 = {
|
|
|
1619
1624
|
plan: { label: "安排學習計畫", text: "幫孩子安排這週的學習計畫,情況是:" },
|
|
1620
1625
|
grade: { label: "批改作業", text: "批改這些作業(照片在下面),逐題判對錯,歸類錯因,最後給講評提綱:" },
|
|
1621
1626
|
makeQuiz: { label: "出一套題", text: "出一套題,分基礎、提升、拓展三層,主題是:" },
|
|
1627
|
+
classGame: { label: "課堂遊戲", text: "做一個全班在班級群裡一起玩的課堂小遊戲,知識點是:" },
|
|
1622
1628
|
lesson: { label: "寫教學設計", text: "寫一份教學設計,課題是:" },
|
|
1623
1629
|
exam: { label: "試卷分析", text: "分析這份成績表(檔案在下面),找出共同的薄弱點和需要關注的學生:" },
|
|
1624
1630
|
weekly: { label: "每週學習小結", text: "每週五下午 4 點,讀本目錄裡這一週的成績和作業紀錄,寫一份學習小結給我" },
|
|
@@ -1674,6 +1680,7 @@ var JA2 = {
|
|
|
1674
1680
|
senior: "高校",
|
|
1675
1681
|
explain: { label: "問題を解説", text: "この問題が分かりません。答えはまだ言わずに、一歩ずつ考えさせてください:" },
|
|
1676
1682
|
quizMe: { label: "問題を出して", text: "最近習ったところから何問か出してください" },
|
|
1683
|
+
play: { label: "ゲームで練習", text: "最近習ったところと間違えたところで、小さなゲームを作って遊ばせてください" },
|
|
1677
1684
|
review: { label: "間違いを復習", text: "今日復習する {count} 問の間違いを復習する" },
|
|
1678
1685
|
recite: { label: "暗記・暗唱", text: "この部分を覚えたいです。まず自分で言ってみるので、違うところを教えてください:" },
|
|
1679
1686
|
check: { label: "宿題を確認", text: "子どもの宿題のどこが間違っているか、どう説明すればいいか教えてください:" },
|
|
@@ -1682,6 +1689,7 @@ var JA2 = {
|
|
|
1682
1689
|
plan: { label: "学習計画", text: "子どもの今週の学習計画を立ててください。状況は:" },
|
|
1683
1690
|
grade: { label: "宿題を採点", text: "この宿題(写真は下)を採点してください。一問ずつ正誤、間違いの原因の分類、最後に解説授業の要点を:" },
|
|
1684
1691
|
makeQuiz: { label: "問題を作る", text: "基礎・応用・発展の三段階で問題を作ってください。テーマは:" },
|
|
1692
|
+
classGame: { label: "クラスでゲーム", text: "クラス全員がグループチャットで一緒に遊べるゲームを作ってください。テーマは:" },
|
|
1685
1693
|
lesson: { label: "指導案", text: "指導案を書いてください。単元は:" },
|
|
1686
1694
|
exam: { label: "テスト分析", text: "この成績表(ファイルは下)を分析して、クラス共通の弱点と気にかけるべき生徒を挙げてください:" },
|
|
1687
1695
|
weekly: { label: "毎週のまとめ", text: "毎週金曜の午後 4 時に、このフォルダの今週の成績と宿題の記録を読んで、学習状況のまとめを書いてください" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-edu",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.30.0",
|
|
4
4
|
"description": "A pi package for Ta: school education, an assistant for students, parents, teachers and class teachers, question cards with spaced review of mistakes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@celljs/ta-protocol": "4.
|
|
32
|
-
"@celljs/ta-web": "4.
|
|
31
|
+
"@celljs/ta-protocol": "4.30.0",
|
|
32
|
+
"@celljs/ta-web": "4.30.0",
|
|
33
33
|
"@types/react": "^19.3.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
package/web/index.js
CHANGED
|
@@ -1735,6 +1735,7 @@ class EduRooms {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
1737
|
// web-src/edu-roles.ts
|
|
1738
|
+
var PLAY_HINT = "What is learned playing sticks: when practice, review or a point that needs many tries would be better played (the user asks to play, is bored or tired, or a mistake keeps coming back), make it a ta-play game, made for this learner from their mistakes, level and interests; a game for a class is for several, sent to its group chat by Play together on its card, all playing at once. A result a game sends back: say in a line how it went and make the next round from it.";
|
|
1738
1739
|
var QUIZ_FORMAT = `To give questions to answer, write a fenced block of language ${QUIZ} holding JSON, which Ta draws as a card the user answers in, checked at once: {"title"?: string, "reveal"?: boolean, "questions": [{"q": string, "options"?: [string] (a choice question; "answer" the letter), "answer": "B" | true | false (true or false question) | ["answers", "taken as right"] (fill in the blank), "explain": string, "subject": the school subject, "topic": the point it tests, "review"?: id of the mistake it reviews, "figure"?: its figure (geometry, a graph), drawn right under its text: {"ta-plot": the JSON of a ta-plot block} | {"ta-3d": that of a ta-3d block} | ""}]}. A figure goes in the question it belongs to, never as a block before the card; its text says "如图", not "如图 3". Mistakes the user makes in it are kept for review. To show how someone is learning, a ${LEARNING} block: {"title"?: string, "items": [{"label": topic, "value": 0-100 mastery, "note"?: string}], "weak"?: [string], "next"?: [what to do next]}.`;
|
|
1739
1740
|
var ROLES = {
|
|
1740
1741
|
student: {
|
|
@@ -1744,6 +1745,7 @@ var ROLES = {
|
|
|
1744
1745
|
skills: ["edu-tutor", "edu-quiz"],
|
|
1745
1746
|
actions: [
|
|
1746
1747
|
{ key: "explain", icon: "Image" },
|
|
1748
|
+
{ key: "play", icon: "Gamepad2", send: true },
|
|
1747
1749
|
{ key: "quizMe", icon: "ListChecks", send: true },
|
|
1748
1750
|
{ key: "review", icon: "RotateCcw", send: true },
|
|
1749
1751
|
{ key: "recite", icon: "Mic" }
|
|
@@ -1773,7 +1775,8 @@ var ROLES = {
|
|
|
1773
1775
|
{ key: "makeQuiz", icon: "FilePlus" },
|
|
1774
1776
|
{ key: "lesson", icon: "FileText" },
|
|
1775
1777
|
{ key: "exam", icon: "ChartSpline" },
|
|
1776
|
-
{ key: "weekly", icon: "Calendar", send: true }
|
|
1778
|
+
{ key: "weekly", icon: "Calendar", send: true },
|
|
1779
|
+
{ key: "classGame", icon: "Gamepad2" }
|
|
1777
1780
|
],
|
|
1778
1781
|
rules: 'You assist a teacher. Marking: right or wrong for each question, the causes of the mistakes grouped, what the class shares, and an outline to go over it; what you are unsure of you say. Questions: in three levels (basic, better, stretch) with answers and explanations, "reveal": true. Score sheets and records in the working directory you read yourself; you count, the teacher decides. Names of students stay on this computer.'
|
|
1779
1782
|
},
|
|
@@ -1806,7 +1809,8 @@ var EduRoles;
|
|
|
1806
1809
|
role.rules,
|
|
1807
1810
|
`Skills for this: ${role.skills.join(", ")}.`,
|
|
1808
1811
|
"What students, scores and families are is private: keep it on this computer, and leave names out of what is shared unless the user asks.",
|
|
1809
|
-
QUIZ_FORMAT
|
|
1812
|
+
QUIZ_FORMAT,
|
|
1813
|
+
PLAY_HINT
|
|
1810
1814
|
].join(`
|
|
1811
1815
|
`);
|
|
1812
1816
|
}
|
|
@@ -1838,6 +1842,7 @@ var EN2 = {
|
|
|
1838
1842
|
senior: "High school",
|
|
1839
1843
|
explain: { label: "Explain a problem", text: "I can't do this one. Don't tell me the answer yet, help me think it through:" },
|
|
1840
1844
|
quizMe: { label: "Quiz me", text: "Give me a few questions on what I learned lately" },
|
|
1845
|
+
play: { label: "Play a round", text: "Make me a little game on what I learned lately and the mistakes I made, and let me play a round" },
|
|
1841
1846
|
review: { label: "Review mistakes", text: "Review the {count} mistakes due today" },
|
|
1842
1847
|
recite: { label: "Recite", text: "Help me learn this passage by heart: let me try first, then tell me what I got wrong:" },
|
|
1843
1848
|
check: { label: "Check homework", text: "Look at my child’s homework: what is wrong, and how do I explain it to them?" },
|
|
@@ -1849,6 +1854,7 @@ var EN2 = {
|
|
|
1849
1854
|
text: "Mark these (photos below): right or wrong for each question, the causes of the mistakes grouped, and an outline for going over them in class:"
|
|
1850
1855
|
},
|
|
1851
1856
|
makeQuiz: { label: "Set questions", text: "Set questions in three levels (basic, better, stretch) on:" },
|
|
1857
|
+
classGame: { label: "Class game", text: "Make a game the whole class plays together in our group chat, on: " },
|
|
1852
1858
|
lesson: { label: "Lesson plan", text: "Write a lesson plan for:" },
|
|
1853
1859
|
exam: { label: "Analyse a test", text: "Analyse this score sheet (file below): the weak points the class shares, and the students to look after:" },
|
|
1854
1860
|
weekly: {
|
|
@@ -1907,6 +1913,7 @@ var ZH2 = {
|
|
|
1907
1913
|
senior: "高中",
|
|
1908
1914
|
explain: { label: "拍题讲解", text: "这道题我不会,先别告诉我答案,带我一步步想:" },
|
|
1909
1915
|
quizMe: { label: "考考我", text: "按我最近学的内容出几道题考考我" },
|
|
1916
|
+
play: { label: "玩一局", text: "按我最近学的和错过的,做个小游戏让我玩一局" },
|
|
1910
1917
|
review: { label: "复习错题", text: "复习今天该复习的 {count} 道错题" },
|
|
1911
1918
|
recite: { label: "背诵默写", text: "帮我背这一段,先让我自己背,再告诉我哪里错了:" },
|
|
1912
1919
|
check: { label: "看作业对错", text: "帮我看看孩子这份作业哪里错了,告诉我怎么讲给孩子听:" },
|
|
@@ -1915,6 +1922,7 @@ var ZH2 = {
|
|
|
1915
1922
|
plan: { label: "安排学习计划", text: "帮孩子安排这周的学习计划,情况是:" },
|
|
1916
1923
|
grade: { label: "批改作业", text: "批改这些作业(照片在下面),逐题判对错,归类错因,最后给讲评提纲:" },
|
|
1917
1924
|
makeQuiz: { label: "出一套题", text: "出一套题,分基础、提升、拓展三层,主题是:" },
|
|
1925
|
+
classGame: { label: "课堂游戏", text: "做一个全班在班级群里一起玩的课堂小游戏,知识点是:" },
|
|
1918
1926
|
lesson: { label: "写教学设计", text: "写一份教学设计,课题是:" },
|
|
1919
1927
|
exam: { label: "试卷分析", text: "分析这份成绩表(文件在下面),找出共性薄弱点和需要关注的学生:" },
|
|
1920
1928
|
weekly: { label: "每周学情小结", text: "每周五下午 4 点,读本目录里这一周的成绩和作业记录,写一份学情小结给我" },
|
|
@@ -1970,6 +1978,7 @@ var ZH_TW2 = {
|
|
|
1970
1978
|
senior: "高中",
|
|
1971
1979
|
explain: { label: "拍題講解", text: "這道題我不會,先別告訴我答案,帶我一步步想:" },
|
|
1972
1980
|
quizMe: { label: "考考我", text: "依我最近學的內容出幾道題考考我" },
|
|
1981
|
+
play: { label: "玩一局", text: "依我最近學的和錯過的,做個小遊戲讓我玩一局" },
|
|
1973
1982
|
review: { label: "複習錯題", text: "複習今天該複習的 {count} 道錯題" },
|
|
1974
1983
|
recite: { label: "背誦默寫", text: "幫我背這一段,先讓我自己背,再告訴我哪裡錯了:" },
|
|
1975
1984
|
check: { label: "看作業對錯", text: "幫我看看孩子這份作業哪裡錯了,告訴我怎麼講給孩子聽:" },
|
|
@@ -1978,6 +1987,7 @@ var ZH_TW2 = {
|
|
|
1978
1987
|
plan: { label: "安排學習計畫", text: "幫孩子安排這週的學習計畫,情況是:" },
|
|
1979
1988
|
grade: { label: "批改作業", text: "批改這些作業(照片在下面),逐題判對錯,歸類錯因,最後給講評提綱:" },
|
|
1980
1989
|
makeQuiz: { label: "出一套題", text: "出一套題,分基礎、提升、拓展三層,主題是:" },
|
|
1990
|
+
classGame: { label: "課堂遊戲", text: "做一個全班在班級群裡一起玩的課堂小遊戲,知識點是:" },
|
|
1981
1991
|
lesson: { label: "寫教學設計", text: "寫一份教學設計,課題是:" },
|
|
1982
1992
|
exam: { label: "試卷分析", text: "分析這份成績表(檔案在下面),找出共同的薄弱點和需要關注的學生:" },
|
|
1983
1993
|
weekly: { label: "每週學習小結", text: "每週五下午 4 點,讀本目錄裡這一週的成績和作業紀錄,寫一份學習小結給我" },
|
|
@@ -2033,6 +2043,7 @@ var JA2 = {
|
|
|
2033
2043
|
senior: "高校",
|
|
2034
2044
|
explain: { label: "問題を解説", text: "この問題が分かりません。答えはまだ言わずに、一歩ずつ考えさせてください:" },
|
|
2035
2045
|
quizMe: { label: "問題を出して", text: "最近習ったところから何問か出してください" },
|
|
2046
|
+
play: { label: "ゲームで練習", text: "最近習ったところと間違えたところで、小さなゲームを作って遊ばせてください" },
|
|
2036
2047
|
review: { label: "間違いを復習", text: "今日復習する {count} 問の間違いを復習する" },
|
|
2037
2048
|
recite: { label: "暗記・暗唱", text: "この部分を覚えたいです。まず自分で言ってみるので、違うところを教えてください:" },
|
|
2038
2049
|
check: { label: "宿題を確認", text: "子どもの宿題のどこが間違っているか、どう説明すればいいか教えてください:" },
|
|
@@ -2041,6 +2052,7 @@ var JA2 = {
|
|
|
2041
2052
|
plan: { label: "学習計画", text: "子どもの今週の学習計画を立ててください。状況は:" },
|
|
2042
2053
|
grade: { label: "宿題を採点", text: "この宿題(写真は下)を採点してください。一問ずつ正誤、間違いの原因の分類、最後に解説授業の要点を:" },
|
|
2043
2054
|
makeQuiz: { label: "問題を作る", text: "基礎・応用・発展の三段階で問題を作ってください。テーマは:" },
|
|
2055
|
+
classGame: { label: "クラスでゲーム", text: "クラス全員がグループチャットで一緒に遊べるゲームを作ってください。テーマは:" },
|
|
2044
2056
|
lesson: { label: "指導案", text: "指導案を書いてください。単元は:" },
|
|
2045
2057
|
exam: { label: "テスト分析", text: "この成績表(ファイルは下)を分析して、クラス共通の弱点と気にかけるべき生徒を挙げてください:" },
|
|
2046
2058
|
weekly: { label: "毎週のまとめ", text: "毎週金曜の午後 4 時に、このフォルダの今週の成績と宿題の記録を読んで、学習状況のまとめを書いてください" },
|