AtlatestRepositorytube

tube / treepackage.sgl

1;;; tube - Video platform management CLI and MCP server
2;;;
3;;; Manage YouTube and Twitch from one interface — video uploads,
4;;; metadata editing, analytics, stream scheduling, and chat.
5;;; Usable as a CLI and as an MCP server for AI-assisted content ops.
6
7(define sigil-repo "codeberg:sigil/sigil#v0.8.0")
8(define youtube-repo "codeberg:sigil/sigil-youtube")
9(define twitch-repo "codeberg:sigil/sigil-twitch")
10(define oauth-repo "codeberg:sigil/sigil-oauth")
12(package
13 name: "tube"
14 version: "0.1.0"
15 sigil: "0.20"
16 description: "Video platform management CLI and MCP server"
17 url: "https://codeberg.org/sigil/tube"
18 license: "BSD-3-Clause"
19 authors: (list "David Wilson <[email protected]>")
21 entry: '(tube main)
22 bundle-name: "tube"
24 configs: (list
25 (config
26 name: 'dev
27 output-dir: "build/dev"
28 debug?: #t
29 optimize: 0
30 bundle?: #t)
31 (config
32 name: 'release
33 output-dir: "build/release"
34 debug?: #f
35 optimize: 2
36 bundle?: #t))
38 provides: (list
39 mcp-server: #{ name: "tube"
40 args: #["serve"]
41 secret-env: #{ YOUTUBE_ACCESS_TOKEN: #t
42 YOUTUBE_CLIENT_ID: #t
43 YOUTUBE_CLIENT_SECRET: #t
44 TWITCH_CLIENT_ID: #t
45 TWITCH_CLIENT_SECRET: #t
46 TWITCH_ACCESS_TOKEN: #t } })
48 dependencies: (list
49 (from-git url: sigil-repo package: "sigil-run" version: ">=0.21")
50 (from-git url: sigil-repo package: "sigil-stdlib" version: ">=0.21")
51 (from-git url: "codeberg:sigil/sigil-tls" version: "^0.16")
52 (from-git url: "codeberg:sigil/sigil-http" version: "^0.18")
53 (from-git url: "codeberg:sigil/sigil-json" version: "^0.16")
54 (from-git url: "codeberg:sigil/sigil-mcp" version: "^0.17")
55 (from-git url: "codeberg:sigil/sigil-log" version: "^0.17")
56 (from-git url: sigil-repo package: "sigil-args" version: ">=0.21")
57 (from-git url: youtube-repo version: "^0.9")
58 (from-git url: twitch-repo version: "^0.1")
59 (from-git url: oauth-repo version: "^0.9")
60 ;; (sigil env) is imported by the test suite. It resolved ambiently on a
61 ;; developer machine and NOT in a delivered CI tree, so the first CI run
62 ;; failed with "library not found: (sigil env)" while the local suite was
63 ;; green. Declared explicitly so both agree.
64 (from-git url: sigil-repo package: "sigil-env" version: ">=0.21"))
66 dev-dependencies: (list
67 (from-git url: sigil-repo package: "sigil-test" version: ">=0.21")
68 (from-git url: sigil-repo package: "sigil-test-runner" version: ">=0.21"))
70 tasks: (list
71 (task
72 name: 'build
73 description: "Compile tube modules"
74 steps: (list
75 (compile-sigil-modules sources: "src/**/*.sgl"
76 output-dir: (config-output-subdir "lib"))))))