@celljs/ta-creator 4.34.0 → 4.36.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 -2
- package/README.md +2 -2
- package/bin/render.mjs +284 -149
- package/host/index.mjs +752 -167
- package/package.json +4 -3
- package/skills/creator-make/SKILL.md +18 -7
- package/skills/creator-publish/SKILL.md +6 -2
- package/skills/creator-publish/platforms.md +10 -0
- package/web/index.js +786 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-creator",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.36.0",
|
|
4
4
|
"description": "A pi package for Ta: a channel of content without showing your face, hot topics of your field found three times a day, videos and posts made for each platform, reviewed on your phone and published for you once passed",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -29,8 +29,9 @@
|
|
|
29
29
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@celljs/
|
|
33
|
-
"@celljs/ta-
|
|
32
|
+
"@celljs/core": "4.36.0",
|
|
33
|
+
"@celljs/ta-protocol": "4.36.0",
|
|
34
|
+
"@celljs/ta-web": "4.36.0",
|
|
34
35
|
"@types/react": "^19.3.0"
|
|
35
36
|
},
|
|
36
37
|
"publishConfig": {
|
|
@@ -18,7 +18,8 @@ its server: `ta call @celljs/ta-creator <method> [args as JSON]`.
|
|
|
18
18
|
| `update <id> '<JSON>'` | Keeps what you made: `script`, `done` (steps of script, visuals, voice, captions, versions, checks), `versions`, `checks`, `reach` (`public`, `internal`, `both`); `series` and `number` when the user moves it |
|
|
19
19
|
| `needs <id> '<JSON array of lines>'` / `give <id> <need id>` / `skip <id>` | What a piece of the user's own needs that you found nowhere: it waits in Materials / one given (all given, it goes on) / made without |
|
|
20
20
|
| `remove <id>` / `restore <id>` | Removes a topic or a piece not published (kept, to be put back) / puts it back |
|
|
21
|
-
| `
|
|
21
|
+
| `score <id> '<JSON array of { id, score (0–100), note }>'` | Your score of the piece on each criterion of `rubric` (`brief make`); its total, and what falls short |
|
|
22
|
+
| `submit <id>` | Sends it to review, once it has a version for each platform picked, its checks and a score of `pass` or more |
|
|
22
23
|
| `published <id> '<JSON array of { platform, url, scheduled? }>'` | The links once it is published (`scheduled`: `YYYY-MM-DD HH:mm` when the platform publishes it later); the next piece passed goes |
|
|
23
24
|
| `stopped <id> '<why>'` | Publishing it could not be done; the next piece passed goes |
|
|
24
25
|
| `slots <id>` | When it goes out on each platform (now, or a day to schedule it for) |
|
|
@@ -77,8 +78,11 @@ people in the news, films and shows of others, or anything of the user's employe
|
|
|
77
78
|
`episode.json` of that series. A title scene is the
|
|
78
79
|
host speaking it in bubbles (a title as `第一步`, `窍门二` is a badge); `code` is a terminal typed a line at a time
|
|
79
80
|
(at most 14 lines, 22 when tall, 60 columns; a line starting `$ ` is a command); `phone` is a phone showing a
|
|
80
|
-
terminal, its `notify` coming in at the end; `points` are written in a notebook by hand
|
|
81
|
-
|
|
81
|
+
terminal, its `notify` coming in at the end; `points` are written in a notebook by hand; `flow` is boxes joined by
|
|
82
|
+
arrows under its `title`, coming in one at a time (`["模型", "搜索", "模型", "读取", "模型"]`: a box named more than
|
|
83
|
+
once is green, so a loop shows its round trips; keep a flow of 2–4 boxes for what goes in and what comes out). `note`
|
|
84
|
+
puts a short line beside the terminal or the phone, or under the flow. Mix them: never two scenes alike in a row, a
|
|
85
|
+
device or a flow every other scene or so; a concept worth a picture is a `flow`, not the host talking for 20 seconds.
|
|
82
86
|
`look` (`paper`, `ink`, `sketch`) changes the background of one scene or, on the piece, of all. Each scene lasts as
|
|
83
87
|
long as its `say`. The voice is the neural voice Xiaoxiao (`zh-CN-XiaoxiaoNeural`, read online by edge-tts, from a Python that has
|
|
84
88
|
it: `TA_CREATOR_PYTHON`, `~/lemo-opuscar/.venv/bin/python` or `python3`), unless `settings` or `voice` names
|
|
@@ -97,7 +101,7 @@ people in the news, films and shows of others, or anything of the user's employe
|
|
|
97
101
|
ask the user to install it. It draws the pictures with the browser of this computer (Chrome, Edge, Brave or
|
|
98
102
|
Chromium, without a window; `TA_CREATOR_CHROME` names another); without one it draws them plainly, without the host,
|
|
99
103
|
and you tell the user so. It writes `<shape>.mp4` (`16x9.mp4`, `9x16.mp4`, `3x4.mp4`), `cover-<shape>.png`,
|
|
100
|
-
`captions.srt` and `voice.m4a`; with `--post`, `post-<shape>-01.png`… Every picture carries the label "AI 合成";
|
|
104
|
+
`captions.srt` and `voice.m4a`; with `--post`, `post-<shape>-01.png`… Every picture but the cover carries the label "AI 合成";
|
|
101
105
|
the captions are burned in. Look at a few frames (`ffmpeg -ss <s> -i 16x9.mp4 -frames:v 1 f.png`) before going on.
|
|
102
106
|
A screen recording may stand for a scene when the user made one; never record their screen yourself.
|
|
103
107
|
3. **Versions.** One for each platform of `brief make`, in its form there: a video or the pictures of a post in its
|
|
@@ -105,15 +109,22 @@ people in the news, films and shows of others, or anything of the user's employe
|
|
|
105
109
|
figures, the source linked; its words also in `text`); a note as a few lines in `text` (files optional, a picture or
|
|
106
110
|
two). A title and words in the platform's voice (B站 a title that says what one learns; 小红书 a title with a number and
|
|
107
111
|
a feeling, words short with line breaks; 视频号 one plain line; an article a title that says what one gets), 3–6 tags.
|
|
112
|
+
No line in the words saying it was made with AI ("本视频画面、配音与字幕由 AI 生成"): the platform's declaration says it.
|
|
108
113
|
Keep them with `update <id> '{"versions": [{ "platform", "form", "title", "text", "tags", "files", "cover" }]}'`.
|
|
109
|
-
4. **Checks.** Before review check, and keep each as `{ text, ok }` with `update`: the AI label is on every picture;
|
|
114
|
+
4. **Checks.** Before review check, and keep each as `{ text, ok }` with `update`: the AI label is on every picture but the cover;
|
|
110
115
|
the declaration of AI content each platform asks for will be ticked (its `declare` in settings); nothing private
|
|
111
116
|
(names, paths, tokens, a private repository); nothing of the user's company in a public piece (else internal, as
|
|
112
117
|
above); each version fits its platform (length, number of pictures); a work explained names its source; no version
|
|
113
118
|
sends people to another platform or promotes its products (no "去B站看完整版", no QR code, watermark, logo or
|
|
114
119
|
screenshot of another app, and on 小红书 no product of another platform named or shown: there a piece about one is
|
|
115
120
|
made about the idea instead, or left out of 小红书, as a note of 豆包 was limited there). A check that fails is said plainly for the user to look at.
|
|
116
|
-
5. **
|
|
121
|
+
5. **Score.** Watch it as a stranger would: the first 3 seconds, a few frames through it, the end, each version's title
|
|
122
|
+
and words. Score it on each criterion of `rubric` (`brief make`), 0–100, with a line of why for any under 90; be
|
|
123
|
+
strict, as the numbers will be. Keep it with `score <id> '<JSON>'`. Under `pass` (80), make again what is weakest
|
|
124
|
+
(a new hook, a scene redrawn, a cut, a title made plain), render only what changed, and score it again; at most
|
|
125
|
+
twice, then submit it with its score and say in a line what still falls short. Never raise a score without changing
|
|
126
|
+
the piece.
|
|
127
|
+
6. **Review.** `submit <id>`, then reply with the card the user reviews it in, and nothing long around it:
|
|
117
128
|
|
|
118
129
|
```ta-creator-review
|
|
119
130
|
{ "id": "<id>" }
|
|
@@ -124,4 +135,4 @@ card again (what they asked is kept in `lessons` for the pieces to come). When t
|
|
|
124
135
|
|
|
125
136
|
Never publish before the user passed it, never like or follow as the user, never post the same piece twice on a
|
|
126
137
|
platform, never more than one piece a day on a platform. Comments are answered by the comments task of Creator only,
|
|
127
|
-
as far as the user lets it.
|
|
138
|
+
as far as the user lets it.
|
|
@@ -31,9 +31,13 @@ user's browser, where they are signed in); how each platform's page was filled b
|
|
|
31
31
|
tags as they are in the version, nothing added.
|
|
32
32
|
3. Tick the declaration of content made with AI, as `declare` says (B站: 创作声明 → 该视频使用人工智能合成技术). When
|
|
33
33
|
the page has no such choice, write "内容由 AI 辅助生成" at the end of the words.
|
|
34
|
-
4.
|
|
34
|
+
4. Declare it original: every piece of the channel is the user's own work (they said so, 2026-11-27), so choose the
|
|
35
|
+
platform's own choice for it (B站 类型 → 自制, 小红书 原创声明, 视频号 声明原创, 公众号 原创, 知乎 创作声明 → 原创), with
|
|
36
|
+
the source still linked in the words of a piece that explains another's work. Only a piece translated whole (its
|
|
37
|
+
licence allowing it) is not: declare it 转载 with its source.
|
|
38
|
+
5. Leave every other choice as the platform sets it (no paid promotion, no sync to other apps) unless the user said
|
|
35
39
|
otherwise.
|
|
36
|
-
|
|
40
|
+
6. Press Publish (发布, 发表, 投稿) now, or, for a platform given a day and time, set the platform's scheduled
|
|
37
41
|
publishing to it first. Then read the link of the piece from the page of the account's works.
|
|
38
42
|
|
|
39
43
|
When the page shows a warning of the platform (a check of risk, too many posts, a captcha), or the user is not signed
|
|
@@ -60,6 +60,7 @@ input's value with `Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,
|
|
|
60
60
|
- Tags: remove the ones it suggests (`.tag-pre-wrp .close`), then each tag into `input[placeholder*=按回车键]` with
|
|
61
61
|
Enter (`keydown`/`keypress`/`keyup`, keyCode 13).
|
|
62
62
|
- AI: the select `.bcc-select-input-inner[placeholder*=创作声明]` → the option `.bcc-option` 含AI生成内容.
|
|
63
|
+
- Original: 类型 → 自制 (not 转载); read it back.
|
|
63
64
|
- Cover: click 更换封面 (or 添加封面/上传封面), then the last `input[type=file][accept*=image]`; the 4:3 crop box only
|
|
64
65
|
moves with a real drag (computer use), then 完成.
|
|
65
66
|
- Scheduled: `.time-container` → turn on 定时发布 (a real click), pick the day in the calendar, then hour and minute in
|
|
@@ -72,6 +73,7 @@ input's value with `Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,
|
|
|
72
73
|
`.tiptap.ProseMirror` are there.
|
|
73
74
|
- Title: that input; words and tags: paste `text + "\n\n" + #tag #tag` into `.tiptap.ProseMirror`.
|
|
74
75
|
- AI: 添加内容类型声明 → 笔记含AI合成内容.
|
|
76
|
+
- Original: turn on 原创声明 (in the settings under the words) and agree to its terms; read it back.
|
|
75
77
|
- Cover: 设置封面 → upload into the `input[type=file]` whose accept has image → 确定.
|
|
76
78
|
- Scheduled: 定时发布 (a real click to turn it on). The date input `.date-picker-container input` opens its popover on
|
|
77
79
|
`focus`/`focusin` plus pointer and mouse events; the day is `.d-datepicker-cell-main` (not disabled) in the visible
|
|
@@ -87,6 +89,7 @@ input's value with `Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,
|
|
|
87
89
|
- Words and tags: paste into `r.querySelector('.input-editor')` (end with 内容由 AI 辅助生成 when there is no declaration
|
|
88
90
|
of its own); short title: `input[placeholder*=短标题]`.
|
|
89
91
|
- AI: `.mark-tag-select` → `.mark-tag-option` 含AI生成内容.
|
|
92
|
+
- Original: tick 声明原创 (a real click when the checkbox takes no synthetic event) and confirm its terms.
|
|
90
93
|
- Cover: 编辑 on the cover → the last `input[type=file]` whose accept has image → 确认.
|
|
91
94
|
- Scheduled: the label 定时, then in `.weui-desktop-picker__date` show the hidden `dd`s (`style.display = ''`), click
|
|
92
95
|
the day (`td a`, not faded or disabled), the hour and minute (`.weui-desktop-picker__time__hour li`,
|
|
@@ -110,3 +113,10 @@ input's value with `Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,
|
|
|
110
113
|
own model: setting the input's value shows it but the old title is published, so write it short in the version.
|
|
111
114
|
The hour and minute are picked after the day, in a second pass, and read back. Its page of edits
|
|
112
115
|
(修改并重新发表) has crashed the tab twice: get it right before 发表.
|
|
116
|
+
- Original: every piece is the user's own; tick it where the form has it. 小红书 has 原创声明 under 更多设置 (a
|
|
117
|
+
switch, then its notice: tick 我已阅读并同意 and 声明原创). 视频号 posts of pictures have none (only videos do).
|
|
118
|
+
- How far ahead: 小红书 14 days (a later time is put back to now silently), B站 动态 7 days (the days after are
|
|
119
|
+
disabled), so a day out of reach is moved to the furthest day in reach; same-day pieces are fine.
|
|
120
|
+
- 小红书's time and 视频号's month take real clicks: events sent to the time columns or the month arrow do not take, and
|
|
121
|
+
the time put back must be read again just before 定时发布. The B站 editor may hold another piece's draft: clear it
|
|
122
|
+
(`__vue__.clear()` and the pictures) before filling.
|