@celljs/ta-edu 4.27.0 → 4.29.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 +2 -1
- package/README.md +3 -2
- package/host/index.mjs +1972 -0
- package/package.json +13 -6
- package/skills/edu-quiz/SKILL.md +1 -0
- package/web/index.js +2320 -1819
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-edu",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.29.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",
|
|
@@ -17,18 +17,19 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"files": [
|
|
19
19
|
"web",
|
|
20
|
+
"host",
|
|
20
21
|
"skills",
|
|
21
22
|
"!**/*.map"
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
24
|
-
"build": "tsc -b && bun build web-src/index.tsx --format esm --target browser --outfile web/index.js",
|
|
25
|
-
"clean": "rm -rf lib web *.tsbuildinfo",
|
|
25
|
+
"build": "tsc -b && bun build web-src/index.tsx --format esm --target browser --outfile web/index.js && bun build web-src/host.ts --format esm --target node --outfile host/index.mjs",
|
|
26
|
+
"clean": "rm -rf lib web host *.tsbuildinfo",
|
|
26
27
|
"test": "bun test ./lib",
|
|
27
28
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@celljs/ta-protocol": "4.
|
|
31
|
-
"@celljs/ta-web": "4.
|
|
31
|
+
"@celljs/ta-protocol": "4.29.0",
|
|
32
|
+
"@celljs/ta-web": "4.29.0",
|
|
32
33
|
"@types/react": "^19.3.0"
|
|
33
34
|
},
|
|
34
35
|
"publishConfig": {
|
|
@@ -51,9 +52,15 @@
|
|
|
51
52
|
"web": [
|
|
52
53
|
"./web/index.js"
|
|
53
54
|
],
|
|
55
|
+
"host": "./host/index.mjs",
|
|
54
56
|
"skills": [
|
|
55
57
|
"./skills"
|
|
56
58
|
],
|
|
57
|
-
"offByDefault": true
|
|
59
|
+
"offByDefault": true,
|
|
60
|
+
"permissions": {
|
|
61
|
+
"host": {
|
|
62
|
+
"*": "task.manage"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
58
65
|
}
|
|
59
66
|
}
|
package/skills/edu-quiz/SKILL.md
CHANGED
|
@@ -22,6 +22,7 @@ Write a fenced block of language `ta-quiz` holding JSON; Ta draws it, the user a
|
|
|
22
22
|
- `review`: the id of a mistake this question reviews (given in the context of a review).
|
|
23
23
|
- `reveal`: true for a teacher's set (answers and explanations shown, to hand out); false for a student, who answers first.
|
|
24
24
|
- Mathematics may use $…$ in `q` and `explain`.
|
|
25
|
+
- A question with a figure (geometry, a graph, a diagram) puts it in its own `figure`, drawn right under its text, never as a separate block before the card: `{"ta-plot": {…}}` with the JSON of a `ta-plot` block (points, segments, curves) or `{"ta-3d": {…}}` with that of a `ta-3d` block; an image as Markdown ``. Its text then says "如图", not "如图 3"; several questions on one figure each carry it.
|
|
25
26
|
|
|
26
27
|
## Good questions
|
|
27
28
|
|