@celljs/ta-creator 0.0.0-stage → 4.31.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.
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: creator-make
3
+ description: Makes a piece of content for the user's channel (a video or a post of pictures, for each platform they publish on), from a topic of Creator to the card they review it in; also finds hot topics of their field when asked now. Use it whenever a piece of Creator is to be made, changed after review, or topics are to be found.
4
+ ---
5
+
6
+ # Making a piece
7
+
8
+ The user runs a channel without showing their face. Creator keeps its topics and pieces; you change them only through
9
+ its server: `ta call @celljs/ta-creator <method> [args as JSON]`.
10
+
11
+ | Method | What it does |
12
+ |---|---|
13
+ | `settings` | What the channel is about (niche), the platforms picked and their shapes, the voice |
14
+ | `list [stage]` | The pieces, of a stage: `topic`, `making`, `review`, `published` |
15
+ | `brief topics` | What finding topics needs: niche, platforms, sources, how many to offer, the titles already there |
16
+ | `topics '<JSON array>'` | Adds topics found: `{ title, form: "video" \| "post", kind: "hot" \| "howto" \| "explain", why, heat, until?, seen, origin? }` |
17
+ | `update <id> '<JSON>'` | Keeps what you made: `script`, `done` (steps of script, visuals, voice, captions, versions, checks), `versions`, `checks` |
18
+ | `submit <id>` | Sends it to review, once it has a version for each platform picked and its checks |
19
+ | `published <id> '<JSON array of { platform, url }>'` | The links once the user published it |
20
+
21
+ ## Finding topics now
22
+
23
+ Run `brief topics`, look at the sources and the news of the field of the last hours (search the web, at home and
24
+ abroad), and add at most `offer` topics with `topics`. A hot topic says until when it is worth making. A work of
25
+ others explained (kind `explain`) names and links its source, quotes it shortly and says the rest in the user's words;
26
+ translate it whole only when its licence allows it, and say so in `origin.licence`. Never news unchecked, fear, politics,
27
+ people in the news, films and shows of others, or anything of the user's employer. Say in a line how many you added.
28
+
29
+ ## Making it
30
+
31
+ 1. **Script.** Write it for the platform's audience: a hook in the first 3 seconds, one idea a scene, 30–90 seconds for
32
+ 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,
33
+ public example, never the user's work, a private repository or anything of their employer. Keep it with
34
+ `update <id> '{"script": "...", "done": ["script"]}'`.
35
+ 2. **Visuals and voice.** Write `episode.json` in a folder of its own,
36
+ `~/workspace/ai-coding-channel/episodes/<number>-<short-name>/` unless the user keeps them elsewhere:
37
+
38
+ ```json
39
+ { "title": "...",
40
+ "scenes": [
41
+ { "title": "A title", "sub": "a line under it", "say": "what the voice says" },
42
+ { "code": { "file": "date.ts", "lines": ["const a = 1;"] }, "say": "..." },
43
+ { "title": "Sum up", "points": ["one", "two", "three"], "say": "..." } ] }
44
+ ```
45
+
46
+ Each scene lasts as long as its `say`; code is typed in a line at a time; at most 14 lines (22 when tall), 60
47
+ columns. The voice is the neural voice Xiaoxiao (`zh-CN-XiaoxiaoNeural`, read online by edge-tts, from a Python that has
48
+ it: `TA_CREATOR_PYTHON`, `~/lemo-opuscar/.venv/bin/python` or `python3`), unless `settings` or `voice` names
49
+ another neural voice or a voice of this computer's speech (`say -v '?'`), which it falls back to without edge-tts.
50
+ Write `say` as one speaks: short sentences with commas. Never the user's own voice unless they asked and agreed.
51
+ Then make it, the shapes of the platforms picked:
52
+
53
+ ```sh
54
+ node ../../bin/render.mjs episode.json --aspects 16:9,9:16,3:4
55
+ node ../../bin/render.mjs episode.json --post --aspects 3:4 --out post
56
+ ```
57
+
58
+ (the script is in this package, relative to this file). It needs ffmpeg (`brew install ffmpeg`): when it is missing,
59
+ ask the user to install it. It writes `<shape>.mp4` (`16x9.mp4`, `9x16.mp4`, `3x4.mp4`), `cover-<shape>.png`,
60
+ `captions.srt` and `voice.m4a`; with `--post`, `post-<shape>-01.png`… Every picture carries the label "AI 合成";
61
+ the captions are burned in. Look at a few frames (`ffmpeg -ss <s> -i 16x9.mp4 -frames:v 1 f.png`) before going on.
62
+ A screen recording may stand for a scene when the user made one; never record their screen yourself.
63
+ 3. **Versions.** One for each platform picked: its file in its shape, a title and words in its voice (B站 a title that
64
+ says what one learns; 小红书 a title with a number and a feeling, words short with line breaks; 视频号 one plain line),
65
+ 3–6 tags. Keep them with `update <id> '{"versions": [{ "platform", "title", "text", "tags", "files", "cover" }]}'`.
66
+ 4. **Checks.** Before review check, and keep each as `{ text, ok }` with `update`: the AI label is on every picture;
67
+ the declaration of AI content each platform asks for will be ticked (its `declare` in settings); nothing private
68
+ (names, paths, tokens, the user's employer, a private repository); each version fits its platform (length, number
69
+ of pictures); a work explained names its source. A check that fails is said plainly for the user to look at.
70
+ 5. **Review.** `submit <id>`, then reply with the card the user reviews it in, and nothing long around it:
71
+
72
+ ```ta-creator-review
73
+ { "id": "<id>" }
74
+ ```
75
+
76
+ When the user asks for a change (a message "<id> 要改:…"), change what they said, make it again, `submit` and show the
77
+ card again. When they pass it ("<id> 审过了…"), follow creator-publish.
78
+
79
+ Never publish, never like, follow or comment as the user, never post the same piece twice on a platform, never more
80
+ than one piece a day on a platform.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: creator-publish
3
+ description: Once the user passed a piece of Creator in review, fills in its publishing page on each platform in the user's own browser (the file, title, words, tags, cover, the declaration of AI content), and stops before Publish for the user to press it; then keeps the links. Use it whenever a piece is passed, or the user says they published it.
4
+ ---
5
+
6
+ # Filling in the publishing pages
7
+
8
+ The user passed the piece; read it with `ta call @celljs/ta-creator list review` (its `versions`, and in
9
+ `settings` each platform's `publish` page and `declare`, where its declaration of AI content is).
10
+
11
+ For each platform of its versions, one at a time, with the tools that operate the user's computer (computer use: the
12
+ user's browser, where they are signed in):
13
+
14
+ 1. Open the platform's `publish` page in the user's browser. When they are not signed in, stop and ask them to sign in:
15
+ never type a password, never sign up, never change the account's profile.
16
+ 2. Upload the version's file (or the pictures of a post, in order) and its cover; fill in the title, the words and the
17
+ tags as they are in the version, nothing added.
18
+ 3. Tick the declaration of content made with AI, as `declare` says (B站: 创作声明 → 该视频使用人工智能合成技术). When
19
+ the page has no such choice, write "内容由 AI 辅助生成" at the end of the words.
20
+ 4. Leave every other choice as the platform sets it (no paid promotion, no schedule, no sync to other apps) unless the
21
+ user said otherwise.
22
+ 5. **Stop before Publish.** Never press Publish, Post, 发布 or 投稿, nor anything that sends it. Take a screenshot of the
23
+ page as filled.
24
+
25
+ Then tell the user in one line that the pages are filled and wait for them to press Publish themselves, with the
26
+ screenshots. When the page shows a warning of the platform (a check of risk, too many posts, a captcha), stop there,
27
+ change nothing and tell the user.
28
+
29
+ When the user says they published it (or gives the links), keep them:
30
+ `ta call @celljs/ta-creator published <id> '[{"platform": "bilibili", "url": "https://..."}]' <minutes they took>`.
31
+ Read a link from the platform's page of their works only when they ask you to.
32
+
33
+ Never answer comments, never like, follow or message anyone as the user, never press anything that spends money.