@tvbs-ai/news-rd 0.4.0 → 0.4.1

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.
Files changed (3) hide show
  1. package/README.md +17 -2
  2. package/dist/cli.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -30,11 +30,15 @@ news-rd <group> <command> [args] [options]
30
30
  ### Examples
31
31
 
32
32
  ```bash
33
- # List timeslots
33
+ # List timeslots (default channel: tvbsn)
34
34
  news-rd config timeslots
35
35
 
36
+ # List timeslots for another channel (e.g. news-ctv)
37
+ news-rd config timeslots --channel news-ctv
38
+
36
39
  # Get rundown
37
40
  news-rd rundown get 2026-03-10 0600
41
+ news-rd rundown get 2026-03-10 0600 --channel news-ctv
38
42
 
39
43
  # Get news candidates
40
44
  news-rd news candidates 2026-03-10 0600 --category 政治
@@ -45,16 +49,27 @@ news-rd news trends 2026-03-10 0600
45
49
  # List prompts
46
50
  news-rd prompt list
47
51
 
48
- # Get compiled prompt
52
+ # Resolve template variables for a channel
53
+ news-rd prompt resolve 2026-03-10 0600 --channel news-ctv
54
+
55
+ # Get compiled prompt (loads channel's prompt prefix + slot config)
49
56
  news-rd prompt compile 2026-03-10 0600
57
+ news-rd prompt compile 2026-03-10 0600 --channel news-ctv
50
58
  ```
51
59
 
60
+ ### Multi-Channel Support
61
+
62
+ Commands that depend on a channel — `config timeslots`, `rundown get`,
63
+ `rundown history`, `prompt resolve`, and `prompt compile` — accept
64
+ `--channel <code>`. Supported values: `tvbsn` (default), `news-ctv`.
65
+
52
66
  ### Global Options
53
67
 
54
68
  | Option | Description | Default |
55
69
  |--------|-------------|---------|
56
70
  | `--base-url URL` | API base URL | `https://news-rundown.tvbs.ai` |
57
71
  | `--token TOKEN` | JWT token (or `RD_TOKEN` env) | — |
72
+ | `--channel CODE` | Channel code (`tvbsn`, `news-ctv`) | `tvbsn` |
58
73
  | `--json` | Raw JSON output | — |
59
74
  | `--version, -v` | Show version | — |
60
75
  | `--help, -h` | Show help | — |
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/cli.ts
4
- var CLI_VERSION = "0.4.0";
4
+ var CLI_VERSION = "0.4.1";
5
5
  var rawArgs = process.argv.slice(2);
6
6
  function parseArgs() {
7
7
  const options = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tvbs-ai/news-rd",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "TVBS News Rundown AI CLI — query rundowns, candidates, trends, and prompts",
5
5
  "type": "module",
6
6
  "bin": {