@celljs/ta-creator 4.33.0 → 4.35.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-creator",
3
- "version": "4.33.0",
3
+ "version": "4.35.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,8 @@
29
29
  "watch": "tsc -b -w --preserveWatchOutput"
30
30
  },
31
31
  "devDependencies": {
32
- "@celljs/ta-protocol": "4.33.0",
33
- "@celljs/ta-web": "4.33.0",
32
+ "@celljs/ta-protocol": "4.35.0",
33
+ "@celljs/ta-web": "4.35.0",
34
34
  "@types/react": "^19.3.0"
35
35
  },
36
36
  "publishConfig": {
@@ -10,9 +10,9 @@ its server: `ta call @celljs/ta-creator <method> [args as JSON]`.
10
10
 
11
11
  | Method | What it does |
12
12
  |---|---|
13
- | `settings` | What the channel is about (niche), its series, the platforms picked and their shapes, the voice, what happens once a piece is passed (`publish`) |
13
+ | `settings` | What the channel is about (niche), its style of language (`tone`), its series, the platforms picked and their shapes, the voice, what happens once a piece is passed (`publish`) |
14
14
  | `list [stage]` | The pieces, of a stage: `topic`, `materials`, `making`, `review`, `published` |
15
- | `brief make <id>` | What making a piece needs: the piece, who it is for (`reach`), each platform it goes to with its form there, the strategy, what the user asked to change before (`lessons`), the voice |
15
+ | `brief make <id>` | What making a piece needs: the piece, who it is for (`reach`), each platform it goes to with its form there, the strategy, what the user asked to change before (`lessons`), the style of language (`tone`), the voice |
16
16
  | `brief topics` | What finding topics needs: niche, platforms, sources, how many to offer, the titles already there, the series (what each is about, how many a week, waiting, published, the lessons of a course) and what the last review concluded |
17
17
  | `topics '<JSON array>'` | Adds topics found: `{ title, series (its id or name), form: "video" \| "post" \| "article" \| "note", kind: "hot" \| "howto" \| "explain" \| "original", why, heat, until?, seen, origin?, reach?, comments? }`; a topic of a course is numbered the next lesson |
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 |
@@ -51,7 +51,9 @@ people in the news, films and shows of others, or anything of the user's employe
51
51
  name, its tools, its people, numbers, what is not public) makes it `internal`: take it out, or, when it is the point,
52
52
  `update <id> '{"reach": "internal"}'` and say so in a check. Internal pieces go only to the platforms inside the
53
53
  company (`inside` in the brief); when none is picked, say so: the user adds one in Settings.
54
- 1. **Script.** Write it for the platform's audience: a hook in the first 3 seconds, one idea a scene, 30–90 seconds for
54
+ 1. **Script.** Write it in the `tone` of the brief (its series', else the channel's: each with how to write in it, or the
55
+ user's own words, followed as they say them; several are blended, none: what suits the platform and the topic), and
56
+ so every title, caption and text of the versions. Write it for the platform's audience: a hook in the first 3 seconds, one idea a scene, 30–90 seconds for
55
57
  a short video, 6–9 pictures for a post. Only what is true and what you can show: code you write yourself in a fresh,
56
58
  public example, never the user's work, a private repository or anything of their employer. Keep it with
57
59
  `update <id> '{"script": "...", "done": ["script"]}'`.
@@ -75,8 +77,11 @@ people in the news, films and shows of others, or anything of the user's employe
75
77
  `episode.json` of that series. A title scene is the
76
78
  host speaking it in bubbles (a title as `第一步`, `窍门二` is a badge); `code` is a terminal typed a line at a time
77
79
  (at most 14 lines, 22 when tall, 60 columns; a line starting `$ ` is a command); `phone` is a phone showing a
78
- terminal, its `notify` coming in at the end; `points` are written in a notebook by hand. `note` puts a short line
79
- beside the terminal or the phone. Mix them: never two scenes alike in a row, a device every other scene or so.
80
+ terminal, its `notify` coming in at the end; `points` are written in a notebook by hand; `flow` is boxes joined by
81
+ arrows under its `title`, coming in one at a time (`["模型", "搜索", "模型", "读取", "模型"]`: a box named more than
82
+ 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`
83
+ puts a short line beside the terminal or the phone, or under the flow. Mix them: never two scenes alike in a row, a
84
+ device or a flow every other scene or so; a concept worth a picture is a `flow`, not the host talking for 20 seconds.
80
85
  `look` (`paper`, `ink`, `sketch`) changes the background of one scene or, on the piece, of all. Each scene lasts as
81
86
  long as its `say`. The voice is the neural voice Xiaoxiao (`zh-CN-XiaoxiaoNeural`, read online by edge-tts, from a Python that has
82
87
  it: `TA_CREATOR_PYTHON`, `~/lemo-opuscar/.venv/bin/python` or `python3`), unless `settings` or `voice` names
@@ -95,7 +100,7 @@ people in the news, films and shows of others, or anything of the user's employe
95
100
  ask the user to install it. It draws the pictures with the browser of this computer (Chrome, Edge, Brave or
96
101
  Chromium, without a window; `TA_CREATOR_CHROME` names another); without one it draws them plainly, without the host,
97
102
  and you tell the user so. It writes `<shape>.mp4` (`16x9.mp4`, `9x16.mp4`, `3x4.mp4`), `cover-<shape>.png`,
98
- `captions.srt` and `voice.m4a`; with `--post`, `post-<shape>-01.png`… Every picture carries the label "AI 合成";
103
+ `captions.srt` and `voice.m4a`; with `--post`, `post-<shape>-01.png`… Every picture but the cover carries the label "AI 合成";
99
104
  the captions are burned in. Look at a few frames (`ffmpeg -ss <s> -i 16x9.mp4 -frames:v 1 f.png`) before going on.
100
105
  A screen recording may stand for a scene when the user made one; never record their screen yourself.
101
106
  3. **Versions.** One for each platform of `brief make`, in its form there: a video or the pictures of a post in its
@@ -103,11 +108,15 @@ people in the news, films and shows of others, or anything of the user's employe
103
108
  figures, the source linked; its words also in `text`); a note as a few lines in `text` (files optional, a picture or
104
109
  two). A title and words in the platform's voice (B站 a title that says what one learns; 小红书 a title with a number and
105
110
  a feeling, words short with line breaks; 视频号 one plain line; an article a title that says what one gets), 3–6 tags.
111
+ No line in the words saying it was made with AI ("本视频画面、配音与字幕由 AI 生成"): the platform's declaration says it.
106
112
  Keep them with `update <id> '{"versions": [{ "platform", "form", "title", "text", "tags", "files", "cover" }]}'`.
107
- 4. **Checks.** Before review check, and keep each as `{ text, ok }` with `update`: the AI label is on every picture;
113
+ 4. **Checks.** Before review check, and keep each as `{ text, ok }` with `update`: the AI label is on every picture but the cover;
108
114
  the declaration of AI content each platform asks for will be ticked (its `declare` in settings); nothing private
109
115
  (names, paths, tokens, a private repository); nothing of the user's company in a public piece (else internal, as
110
- above); each version fits its platform (length, number of pictures); a work explained names its source. A check that fails is said plainly for the user to look at.
116
+ above); each version fits its platform (length, number of pictures); a work explained names its source; no version
117
+ sends people to another platform or promotes its products (no "去B站看完整版", no QR code, watermark, logo or
118
+ screenshot of another app, and on 小红书 no product of another platform named or shown: there a piece about one is
119
+ 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.
111
120
  5. **Review.** `submit <id>`, then reply with the card the user reviews it in, and nothing long around it:
112
121
 
113
122
  ```ta-creator-review
@@ -92,3 +92,21 @@ input's value with `Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,
92
92
  the day (`td a`, not faded or disabled), the hour and minute (`.weui-desktop-picker__time__hour li`,
93
93
  `…__minute li`), click the day again and hide the `dd`s; read `.weui-desktop-picker__date input` back.
94
94
  - Publish: 发表; the list is at /platform/post/list (its link is that page: 视频号 gives no public link).
95
+
96
+ ## Posts of pictures and notes (2026-11-24)
97
+
98
+ - B站 动态 (t.bilibili.com): title `.bili-dyn-publishing__title__input` (20 characters at most); the words through the
99
+ editor's own paste, `document.querySelector('.bili-rich-textarea').__vue__._onPaste({ stopPropagation(){},
100
+ preventDefault(){}, clipboardData: { getData: () => text } })` run in the page's own world (a `<script>` added to it),
101
+ as typed text does not reach its model; the pictures by a real click on `.bili-pics-uploader__add` with
102
+ `HTMLInputElement.prototype.click` caught in the page's world, then the files put into that input. The AI declaration
103
+ and the time are in the settings button `.bili-dyn-publishing__settings__btn` (创作声明 → AI辅助创作声明, 定时发布),
104
+ real clicks. It schedules at most 7 days ahead: a day further than that cannot be picked, so leave the draft (it is
105
+ kept) and schedule it once the day is within reach.
106
+ - 小红书 图文 (`/publish/publish?from=menu&target=image`): the pictures into its one `input[type=file]`; the
107
+ declaration `.d-select` of 内容类型声明 → 笔记含AI合成内容 by pointer and mouse events; the scheduled day of
108
+ another month is in the same popover, a cell `.d-datepicker-cell-main` not disabled (the last of its number).
109
+ - 视频号 图文 (`/platform/post/finderNewLifeCreate`): the title is 22 characters at most and is read from the page's
110
+ own model: setting the input's value shows it but the old title is published, so write it short in the version.
111
+ The hour and minute are picked after the day, in a second pass, and read back. Its page of edits
112
+ (修改并重新发表) has crashed the tab twice: get it right before 发表.