@iducky/media-agent 1.1.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.md +90 -0
- package/SHA256SUMS +94 -0
- package/bin/media-agent.mjs +89 -0
- package/docs/guides/capabilities.md +103 -0
- package/docs/guides/image-text-publishing.md +81 -0
- package/docs/guides/installation.md +103 -0
- package/docs/guides/runtime.md +13 -0
- package/manifest.json +382 -0
- package/package.json +42 -0
- package/pyproject.toml +20 -0
- package/resources/capabilities.json +34 -0
- package/resources/configs/accounts.yaml +21 -0
- package/resources/configs/profile.template.json +20 -0
- package/resources/configs/ranking-profiles.yaml +21 -0
- package/resources/configs/toutiao-profile.template.json +22 -0
- package/resources/configs/xiaohongshu-profile.template.json +27 -0
- package/resources/data/industry-taxonomy.yaml +326 -0
- package/skills/douyin-competitor-collect/SKILL.md +177 -0
- package/skills/douyin-competitor-collect/agents/openai.yaml +4 -0
- package/skills/douyin-competitor-collect/references/output-schema.md +178 -0
- package/skills/douyin-creator-image-text-publish/SKILL.md +44 -0
- package/skills/douyin-creator-image-text-publish/agents/openai.yaml +4 -0
- package/skills/douyin-creator-image-text-publish/references/LICENSE.social-auto-upload +21 -0
- package/skills/douyin-creator-image-text-publish/references/execution-contract.md +46 -0
- package/skills/douyin-creator-image-text-publish/references/upstream.md +30 -0
- package/skills/douyin-creator-index/SKILL.md +32 -0
- package/skills/douyin-creator-index/agents/openai.yaml +4 -0
- package/skills/douyin-creator-login/SKILL.md +58 -0
- package/skills/douyin-creator-login/agents/openai.yaml +4 -0
- package/skills/douyin-creator-publish/SKILL.md +56 -0
- package/skills/douyin-creator-publish/agents/openai.yaml +4 -0
- package/skills/douyin-enterprise-leads/SKILL.md +26 -0
- package/skills/douyin-enterprise-leads/agents/openai.yaml +4 -0
- package/skills/douyin-enterprise-leads-login/SKILL.md +36 -0
- package/skills/douyin-enterprise-leads-login/agents/openai.yaml +4 -0
- package/skills/douyin-enterprise-short-video-export/SKILL.md +29 -0
- package/skills/douyin-enterprise-short-video-export/agents/openai.yaml +4 -0
- package/skills/douyin-enterprise-video-rankings/SKILL.md +51 -0
- package/skills/douyin-enterprise-video-rankings/agents/openai.yaml +4 -0
- package/skills/douyin-enterprise-video-rankings/references/industry-taxonomy.md +29 -0
- package/skills/douyin-web-login/SKILL.md +102 -0
- package/skills/douyin-web-login/agents/openai.yaml +4 -0
- package/skills/toutiao-creator-article-draft/SKILL.md +154 -0
- package/skills/toutiao-creator-article-draft/agents/openai.yaml +4 -0
- package/skills/toutiao-web-login/SKILL.md +96 -0
- package/skills/toutiao-web-login/agents/openai.yaml +4 -0
- package/skills/xiaohongshu-creator-image-text-publish/SKILL.md +46 -0
- package/skills/xiaohongshu-creator-image-text-publish/agents/openai.yaml +4 -0
- package/skills/xiaohongshu-creator-image-text-publish/references/LICENSE.social-auto-upload +21 -0
- package/skills/xiaohongshu-creator-image-text-publish/references/execution-contract.md +46 -0
- package/skills/xiaohongshu-creator-image-text-publish/references/upstream.md +31 -0
- package/skills/xiaohongshu-creator-login/SKILL.md +106 -0
- package/skills/xiaohongshu-creator-login/agents/openai.yaml +4 -0
- package/skills/xiaohongshu-creator-publish/SKILL.md +153 -0
- package/skills/xiaohongshu-creator-publish/agents/openai.yaml +4 -0
- package/src/media_agent/__init__.py +1 -0
- package/src/media_agent/cli.py +28 -0
- package/src/media_agent/commands.sh +436 -0
- package/src/media_agent/platforms/__init__.py +1 -0
- package/src/media_agent/platforms/douyin/__init__.py +1 -0
- package/src/media_agent/platforms/douyin/check_login.py +196 -0
- package/src/media_agent/platforms/douyin/collect_industry_taxonomy.py +184 -0
- package/src/media_agent/platforms/douyin/collect_video_rankings.py +352 -0
- package/src/media_agent/platforms/douyin/douyin_full_login.py +391 -0
- package/src/media_agent/platforms/douyin/douyin_hotspot_v2.py +454 -0
- package/src/media_agent/platforms/douyin/douyin_publish.py +1135 -0
- package/src/media_agent/platforms/douyin/enterprise_login.py +128 -0
- package/src/media_agent/platforms/douyin/export_short_video.py +70 -0
- package/src/media_agent/platforms/douyin/login_controller.py +508 -0
- package/src/media_agent/platforms/douyin/validate_industry_taxonomy.py +152 -0
- package/src/media_agent/platforms/douyin/validate_rankings.py +254 -0
- package/src/media_agent/platforms/toutiao/__init__.py +1 -0
- package/src/media_agent/platforms/toutiao/toutiao_check_login.py +54 -0
- package/src/media_agent/platforms/toutiao/toutiao_login_controller.py +250 -0
- package/src/media_agent/platforms/toutiao/toutiao_login_evidence.py +50 -0
- package/src/media_agent/platforms/toutiao/toutiao_login_ipc.py +70 -0
- package/src/media_agent/platforms/xiaohongshu/__init__.py +1 -0
- package/src/media_agent/platforms/xiaohongshu/xiaohongshu_check_login.py +189 -0
- package/src/media_agent/platforms/xiaohongshu/xiaohongshu_login_controller.py +449 -0
- package/src/media_agent/platforms/xiaohongshu/xiaohongshu_login_evidence.py +64 -0
- package/src/media_agent/platforms/xiaohongshu/xiaohongshu_login_ipc.py +120 -0
- package/src/media_agent/platforms/xiaohongshu/xiaohongshu_publish.py +925 -0
- package/src/media_agent/runtime/__init__.py +1 -0
- package/src/media_agent/runtime/account_manager.py +672 -0
- package/src/media_agent/runtime/browser.py +5 -0
- package/src/media_agent/runtime/paths.py +7 -0
- package/src/media_agent/script_map.json +23 -0
- package/src/node/config.mjs +48 -0
- package/src/node/integrity.mjs +34 -0
- package/src/node/skills.mjs +85 -0
- package/tools/archive_releases.py +83 -0
- package/tools/artifacts.py +56 -0
- package/tools/build_release.py +82 -0
- package/tools/check_catalog.py +23 -0
- package/tools/install_runtime.py +144 -0
- package/tools/run_tests.py +21 -0
package/manifest.json
ADDED
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"files": {
|
|
5
|
+
"README.md": {
|
|
6
|
+
"size": 6354,
|
|
7
|
+
"sha256": "f9e5f92209a3a5b0fd65e17322bf6d363c9335b993125be66e959fc24803632d"
|
|
8
|
+
},
|
|
9
|
+
"bin/media-agent.mjs": {
|
|
10
|
+
"size": 5817,
|
|
11
|
+
"sha256": "4ff69bc7c27219ea2760afe95ae58379721d8637d564fb6efbb550e1a687ddfa"
|
|
12
|
+
},
|
|
13
|
+
"docs/guides/capabilities.md": {
|
|
14
|
+
"size": 11775,
|
|
15
|
+
"sha256": "d58f69e08ac99fbf4651a343bf768071d2c0e0aaf966e7bc9f3d056cc71379d6"
|
|
16
|
+
},
|
|
17
|
+
"docs/guides/image-text-publishing.md": {
|
|
18
|
+
"size": 6490,
|
|
19
|
+
"sha256": "b50e649c04ef4a22f4988604b6f5cef091c0671aaa183e52e782e955e323222b"
|
|
20
|
+
},
|
|
21
|
+
"docs/guides/installation.md": {
|
|
22
|
+
"size": 6857,
|
|
23
|
+
"sha256": "0929fcc2eddb0fc0e2d21291b564e3fab239a36895fe702b7e4ff4ddb771332b"
|
|
24
|
+
},
|
|
25
|
+
"docs/guides/runtime.md": {
|
|
26
|
+
"size": 1657,
|
|
27
|
+
"sha256": "42f137161763150ccff3c027908b3f33732dfccba2d8e754451a418bcf33c134"
|
|
28
|
+
},
|
|
29
|
+
"package.json": {
|
|
30
|
+
"size": 857,
|
|
31
|
+
"sha256": "4a2489155e77bb1d5227259c2707678f6541a6fa7aa861884d38ef0faa7a5b4e"
|
|
32
|
+
},
|
|
33
|
+
"pyproject.toml": {
|
|
34
|
+
"size": 565,
|
|
35
|
+
"sha256": "70de33ef9e8436793e7f17df42a48ac5920ed015a76ab9ba21ff43484953b617"
|
|
36
|
+
},
|
|
37
|
+
"resources/capabilities.json": {
|
|
38
|
+
"size": 1005,
|
|
39
|
+
"sha256": "7a44ed8bdc9b0dc3e1b2b4951eae4f2c2e48a6c6de3c38d614ba874c4cbb98ea"
|
|
40
|
+
},
|
|
41
|
+
"resources/configs/accounts.yaml": {
|
|
42
|
+
"size": 631,
|
|
43
|
+
"sha256": "991295ddb6cb6e566f7b61625b7cc4b27e9c48bbe2174ccc4b8f7924b3174a54"
|
|
44
|
+
},
|
|
45
|
+
"resources/configs/profile.template.json": {
|
|
46
|
+
"size": 455,
|
|
47
|
+
"sha256": "23d019759870d3919e2c095f3e92061d4c7bb21ab8e563366a808c1d94e5bb17"
|
|
48
|
+
},
|
|
49
|
+
"resources/configs/ranking-profiles.yaml": {
|
|
50
|
+
"size": 448,
|
|
51
|
+
"sha256": "1d022c8432540d54f7721cc31cc8bfe4bcf5c221769bed231026600fe93fd274"
|
|
52
|
+
},
|
|
53
|
+
"resources/configs/toutiao-profile.template.json": {
|
|
54
|
+
"size": 558,
|
|
55
|
+
"sha256": "6710b0acb168e26a3b5c20cb26b61e7b7a1cc8bb74463c39598f1a99fe9bdc22"
|
|
56
|
+
},
|
|
57
|
+
"resources/configs/xiaohongshu-profile.template.json": {
|
|
58
|
+
"size": 578,
|
|
59
|
+
"sha256": "6f543e9cb6cfdde0ad604b822b766b11696e6422450c3aaf25af55cb58483c6d"
|
|
60
|
+
},
|
|
61
|
+
"resources/data/industry-taxonomy.yaml": {
|
|
62
|
+
"size": 6751,
|
|
63
|
+
"sha256": "be7272317ab8351f2d1f2aef391650c7f4d01f5f00222dcc3b630c2e675dd55b"
|
|
64
|
+
},
|
|
65
|
+
"skills/douyin-competitor-collect/SKILL.md": {
|
|
66
|
+
"size": 17188,
|
|
67
|
+
"sha256": "dc34e9b3009f2b24daca47ee236a8d35688e4f1b260d90d1b4de16e1864386af"
|
|
68
|
+
},
|
|
69
|
+
"skills/douyin-competitor-collect/agents/openai.yaml": {
|
|
70
|
+
"size": 413,
|
|
71
|
+
"sha256": "f7a4cfbc59453fca88cfa4d22a15929ab364e2d14d9ca7e1d3b574ee5d164c1d"
|
|
72
|
+
},
|
|
73
|
+
"skills/douyin-competitor-collect/references/output-schema.md": {
|
|
74
|
+
"size": 9685,
|
|
75
|
+
"sha256": "cfe24a8f44b11c5e894ccd19b730fdbc884301c2be7a6ea49fb8b39ceb8beea9"
|
|
76
|
+
},
|
|
77
|
+
"skills/douyin-creator-image-text-publish/SKILL.md": {
|
|
78
|
+
"size": 5237,
|
|
79
|
+
"sha256": "46bab28ed8b525985a1cb55db3f92793cbbf278f1488eb18d29fe624225d2859"
|
|
80
|
+
},
|
|
81
|
+
"skills/douyin-creator-image-text-publish/agents/openai.yaml": {
|
|
82
|
+
"size": 307,
|
|
83
|
+
"sha256": "1ab44a0ba4bd89e75b5a983257d5961df2b5e805bc04db7d4c49c18f2931280e"
|
|
84
|
+
},
|
|
85
|
+
"skills/douyin-creator-image-text-publish/references/LICENSE.social-auto-upload": {
|
|
86
|
+
"size": 1065,
|
|
87
|
+
"sha256": "8fd1171ac198090942b3e7f15887ec682cf010227e7afe74ee97f57351fd9f36"
|
|
88
|
+
},
|
|
89
|
+
"skills/douyin-creator-image-text-publish/references/execution-contract.md": {
|
|
90
|
+
"size": 7315,
|
|
91
|
+
"sha256": "3b4100deb63efccbd771aa200f912d2c88d2b4996712bb1b412ffd1ec061988b"
|
|
92
|
+
},
|
|
93
|
+
"skills/douyin-creator-image-text-publish/references/upstream.md": {
|
|
94
|
+
"size": 2928,
|
|
95
|
+
"sha256": "050128427ee874f5b4fede8e048cc2bd737e97f4983eda1a8481bf9c6a7eb04b"
|
|
96
|
+
},
|
|
97
|
+
"skills/douyin-creator-index/SKILL.md": {
|
|
98
|
+
"size": 2392,
|
|
99
|
+
"sha256": "396d4426a1e91582636b56b82ef1731e44020e6d5d65cf205c352025bd410c5a"
|
|
100
|
+
},
|
|
101
|
+
"skills/douyin-creator-index/agents/openai.yaml": {
|
|
102
|
+
"size": 271,
|
|
103
|
+
"sha256": "73648aa2c38b4fed46950e00d5726f1c85c632ff32ad9dc471ff72a244c9f5d3"
|
|
104
|
+
},
|
|
105
|
+
"skills/douyin-creator-login/SKILL.md": {
|
|
106
|
+
"size": 3278,
|
|
107
|
+
"sha256": "c0d6bfbc5c1b8ecfc28cf5c37645948c4ae3c5c3ce801b0d02b64cac0c6e16d6"
|
|
108
|
+
},
|
|
109
|
+
"skills/douyin-creator-login/agents/openai.yaml": {
|
|
110
|
+
"size": 290,
|
|
111
|
+
"sha256": "a4454ea33c2717c75240c6761dbdf563782a456dca4da9419d00c5e8f041160a"
|
|
112
|
+
},
|
|
113
|
+
"skills/douyin-creator-publish/SKILL.md": {
|
|
114
|
+
"size": 3158,
|
|
115
|
+
"sha256": "9405109644e4b1171706844f22ef2142c9ff888e13b423d38f3175558d72e790"
|
|
116
|
+
},
|
|
117
|
+
"skills/douyin-creator-publish/agents/openai.yaml": {
|
|
118
|
+
"size": 267,
|
|
119
|
+
"sha256": "a901c8b4704aa328a2afdb5b5f2223d5bbe6355fe80984e5c6cb203d109be075"
|
|
120
|
+
},
|
|
121
|
+
"skills/douyin-enterprise-leads/SKILL.md": {
|
|
122
|
+
"size": 1853,
|
|
123
|
+
"sha256": "8b7b4a1f6969b729929fb7fae8a4d3dd1e039cb17251c7c397d7ac615ffff6e0"
|
|
124
|
+
},
|
|
125
|
+
"skills/douyin-enterprise-leads/agents/openai.yaml": {
|
|
126
|
+
"size": 285,
|
|
127
|
+
"sha256": "ccfdc00953377bac4ba4f91f58a1747b25791a44054b04ad76e8925f95806f12"
|
|
128
|
+
},
|
|
129
|
+
"skills/douyin-enterprise-leads-login/SKILL.md": {
|
|
130
|
+
"size": 2018,
|
|
131
|
+
"sha256": "dede04df0a162404ca96bd8cf10ec0495d746b3ede5a0160e26b3dd67712a33c"
|
|
132
|
+
},
|
|
133
|
+
"skills/douyin-enterprise-leads-login/agents/openai.yaml": {
|
|
134
|
+
"size": 271,
|
|
135
|
+
"sha256": "76a7a8a2537b01b28bd131ecef7c878457678247a76e508475e234198b391bdd"
|
|
136
|
+
},
|
|
137
|
+
"skills/douyin-enterprise-short-video-export/SKILL.md": {
|
|
138
|
+
"size": 1679,
|
|
139
|
+
"sha256": "e12142fdb89381e1cd10adebe4023c9a890ea8ffca3b1502b8048fc2a605f6a5"
|
|
140
|
+
},
|
|
141
|
+
"skills/douyin-enterprise-short-video-export/agents/openai.yaml": {
|
|
142
|
+
"size": 274,
|
|
143
|
+
"sha256": "bad374a6c819bf02c0d60d6cd42670384dd9bc5acce25930d4c5d3238001f4d3"
|
|
144
|
+
},
|
|
145
|
+
"skills/douyin-enterprise-video-rankings/SKILL.md": {
|
|
146
|
+
"size": 4390,
|
|
147
|
+
"sha256": "ae64dff3805efba2697483511d8cd81c4c8f52e3b48e7483fcaaff8535952414"
|
|
148
|
+
},
|
|
149
|
+
"skills/douyin-enterprise-video-rankings/agents/openai.yaml": {
|
|
150
|
+
"size": 335,
|
|
151
|
+
"sha256": "80e56219c96f392e8ea6bcfd07b85290905df034db8f4c9abe49c3f12972eefa"
|
|
152
|
+
},
|
|
153
|
+
"skills/douyin-enterprise-video-rankings/references/industry-taxonomy.md": {
|
|
154
|
+
"size": 2377,
|
|
155
|
+
"sha256": "fb7193750db29be9f8cc93e21c53ed4753fde27b8424029057852fa1db8ef0b7"
|
|
156
|
+
},
|
|
157
|
+
"skills/douyin-web-login/SKILL.md": {
|
|
158
|
+
"size": 7191,
|
|
159
|
+
"sha256": "a419f42a677e55f8dc1da46419a5b73c87deb716f87e05d311294133b754a936"
|
|
160
|
+
},
|
|
161
|
+
"skills/douyin-web-login/agents/openai.yaml": {
|
|
162
|
+
"size": 324,
|
|
163
|
+
"sha256": "0c23bc49afbdd841406114550b6704537f7986633098b9f3bda91a461c6ca1eb"
|
|
164
|
+
},
|
|
165
|
+
"skills/toutiao-creator-article-draft/SKILL.md": {
|
|
166
|
+
"size": 13976,
|
|
167
|
+
"sha256": "4e7e781075c38aaad188aaef3020b8ed54581b52732b290967e7d366b5700f7e"
|
|
168
|
+
},
|
|
169
|
+
"skills/toutiao-creator-article-draft/agents/openai.yaml": {
|
|
170
|
+
"size": 418,
|
|
171
|
+
"sha256": "0d20697da32bbe8c2fa86339eb12ebd7ace9c8d9ba146c888a40ee221422adeb"
|
|
172
|
+
},
|
|
173
|
+
"skills/toutiao-web-login/SKILL.md": {
|
|
174
|
+
"size": 5536,
|
|
175
|
+
"sha256": "5f64e05de1c6361f6883dc9a39da5595e3b7c822dc89cde2d7702747e0d0f42e"
|
|
176
|
+
},
|
|
177
|
+
"skills/toutiao-web-login/agents/openai.yaml": {
|
|
178
|
+
"size": 317,
|
|
179
|
+
"sha256": "7ae9230957f23c00697e5c4c76e96ad9ee54a2ff5166f2a69c6088ff37daa0b2"
|
|
180
|
+
},
|
|
181
|
+
"skills/xiaohongshu-creator-image-text-publish/SKILL.md": {
|
|
182
|
+
"size": 5738,
|
|
183
|
+
"sha256": "63f33f028801f422e4c600ccfd557c01cc145019dad8fd7b7e881fcc74992589"
|
|
184
|
+
},
|
|
185
|
+
"skills/xiaohongshu-creator-image-text-publish/agents/openai.yaml": {
|
|
186
|
+
"size": 315,
|
|
187
|
+
"sha256": "8aff8a3bde85576de68848158216411f925a58eb0d3fb15668a536b0f3164ffe"
|
|
188
|
+
},
|
|
189
|
+
"skills/xiaohongshu-creator-image-text-publish/references/LICENSE.social-auto-upload": {
|
|
190
|
+
"size": 1065,
|
|
191
|
+
"sha256": "8fd1171ac198090942b3e7f15887ec682cf010227e7afe74ee97f57351fd9f36"
|
|
192
|
+
},
|
|
193
|
+
"skills/xiaohongshu-creator-image-text-publish/references/execution-contract.md": {
|
|
194
|
+
"size": 7315,
|
|
195
|
+
"sha256": "3b4100deb63efccbd771aa200f912d2c88d2b4996712bb1b412ffd1ec061988b"
|
|
196
|
+
},
|
|
197
|
+
"skills/xiaohongshu-creator-image-text-publish/references/upstream.md": {
|
|
198
|
+
"size": 3098,
|
|
199
|
+
"sha256": "52b36451770166681e7b10f8c73bcf6a85334da5366c9122ac45b7fa117823c8"
|
|
200
|
+
},
|
|
201
|
+
"skills/xiaohongshu-creator-login/SKILL.md": {
|
|
202
|
+
"size": 5746,
|
|
203
|
+
"sha256": "871fe010e8d2f419b172a10b3ec6ab15b851d1f8c799b14220a10e520b7709e2"
|
|
204
|
+
},
|
|
205
|
+
"skills/xiaohongshu-creator-login/agents/openai.yaml": {
|
|
206
|
+
"size": 316,
|
|
207
|
+
"sha256": "ef3c4c9cba3b079f26a0a676b55b195ff39a114f66757f992986f08aba2a841f"
|
|
208
|
+
},
|
|
209
|
+
"skills/xiaohongshu-creator-publish/SKILL.md": {
|
|
210
|
+
"size": 11564,
|
|
211
|
+
"sha256": "9a738ef1cd78204b518e57eff377e163fb4acd058e24f446e5f4d136860acdff"
|
|
212
|
+
},
|
|
213
|
+
"skills/xiaohongshu-creator-publish/agents/openai.yaml": {
|
|
214
|
+
"size": 284,
|
|
215
|
+
"sha256": "a75940ca97d7b641c32dde6962edf437fb3312dc8374f039922d72edc977df64"
|
|
216
|
+
},
|
|
217
|
+
"src/media_agent/__init__.py": {
|
|
218
|
+
"size": 32,
|
|
219
|
+
"sha256": "04811b13579095b984b1456bdc429b6b687aca691d478cc596a611391f0ec1a1"
|
|
220
|
+
},
|
|
221
|
+
"src/media_agent/cli.py": {
|
|
222
|
+
"size": 1016,
|
|
223
|
+
"sha256": "5d8cdfae8a77d37cde70737f4b8ac8ad850330cf75512184cfcafc7dab9f2346"
|
|
224
|
+
},
|
|
225
|
+
"src/media_agent/commands.sh": {
|
|
226
|
+
"size": 17905,
|
|
227
|
+
"sha256": "b0a8cbd3ad0ba993984bac0d6e9314ad92429be6e9edc5133321c6584c52a3e0"
|
|
228
|
+
},
|
|
229
|
+
"src/media_agent/platforms/__init__.py": {
|
|
230
|
+
"size": 32,
|
|
231
|
+
"sha256": "04811b13579095b984b1456bdc429b6b687aca691d478cc596a611391f0ec1a1"
|
|
232
|
+
},
|
|
233
|
+
"src/media_agent/platforms/douyin/__init__.py": {
|
|
234
|
+
"size": 32,
|
|
235
|
+
"sha256": "04811b13579095b984b1456bdc429b6b687aca691d478cc596a611391f0ec1a1"
|
|
236
|
+
},
|
|
237
|
+
"src/media_agent/platforms/douyin/check_login.py": {
|
|
238
|
+
"size": 9376,
|
|
239
|
+
"sha256": "b73756a197b70c81aa1a62c88c138318e5504c783e0e4bcfa5de7ac33536392c"
|
|
240
|
+
},
|
|
241
|
+
"src/media_agent/platforms/douyin/collect_industry_taxonomy.py": {
|
|
242
|
+
"size": 8377,
|
|
243
|
+
"sha256": "9d91d831760579f5e0cf2f6b413fdd917f14f46081aff4fb221f681bf281c704"
|
|
244
|
+
},
|
|
245
|
+
"src/media_agent/platforms/douyin/collect_video_rankings.py": {
|
|
246
|
+
"size": 15857,
|
|
247
|
+
"sha256": "d117921fd6a4c313ce359f40a13bcf719f0379fc7bf20eea7d8095bf5de4280a"
|
|
248
|
+
},
|
|
249
|
+
"src/media_agent/platforms/douyin/douyin_full_login.py": {
|
|
250
|
+
"size": 18475,
|
|
251
|
+
"sha256": "a0ec4757b9c95099527b1300b5b3d26d477263b34f53d6d32af002b0879eab36"
|
|
252
|
+
},
|
|
253
|
+
"src/media_agent/platforms/douyin/douyin_hotspot_v2.py": {
|
|
254
|
+
"size": 20733,
|
|
255
|
+
"sha256": "0afe2f18db2b7a31ea91161a055a07d91a74561f61f600e4785b3baa13316acd"
|
|
256
|
+
},
|
|
257
|
+
"src/media_agent/platforms/douyin/douyin_publish.py": {
|
|
258
|
+
"size": 46567,
|
|
259
|
+
"sha256": "1e0d9edacbb09c103b350d9d6227868787f0ea7fdade30f5dc301b0ba8424e84"
|
|
260
|
+
},
|
|
261
|
+
"src/media_agent/platforms/douyin/enterprise_login.py": {
|
|
262
|
+
"size": 5138,
|
|
263
|
+
"sha256": "ddb90725b49a4b60dc1fb95e31e1b02835320a3081431bd5d113954acdfe1ac7"
|
|
264
|
+
},
|
|
265
|
+
"src/media_agent/platforms/douyin/export_short_video.py": {
|
|
266
|
+
"size": 2753,
|
|
267
|
+
"sha256": "cd5e317d37ac3764a170b0706bbdeea21fc008e5e802a706023288c0f0567534"
|
|
268
|
+
},
|
|
269
|
+
"src/media_agent/platforms/douyin/login_controller.py": {
|
|
270
|
+
"size": 21378,
|
|
271
|
+
"sha256": "497a8521227d20d8fc26177345c5205a44b7f53a13ccb2ec88f3249903ddb5c4"
|
|
272
|
+
},
|
|
273
|
+
"src/media_agent/platforms/douyin/validate_industry_taxonomy.py": {
|
|
274
|
+
"size": 5869,
|
|
275
|
+
"sha256": "61f1a546118e982a26235dcda31a4414838f2c3c0b777254b2509a364e5a5ced"
|
|
276
|
+
},
|
|
277
|
+
"src/media_agent/platforms/douyin/validate_rankings.py": {
|
|
278
|
+
"size": 9653,
|
|
279
|
+
"sha256": "2086fe809679e589ee377a8aeff42b153a83beaff4ff84b911f4a4c999d3d91f"
|
|
280
|
+
},
|
|
281
|
+
"src/media_agent/platforms/toutiao/__init__.py": {
|
|
282
|
+
"size": 32,
|
|
283
|
+
"sha256": "04811b13579095b984b1456bdc429b6b687aca691d478cc596a611391f0ec1a1"
|
|
284
|
+
},
|
|
285
|
+
"src/media_agent/platforms/toutiao/toutiao_check_login.py": {
|
|
286
|
+
"size": 2639,
|
|
287
|
+
"sha256": "a5db04d0ab4a22e04ce09b96dcba5f98bcccbd4a83400426b9b9f81df47a2fcc"
|
|
288
|
+
},
|
|
289
|
+
"src/media_agent/platforms/toutiao/toutiao_login_controller.py": {
|
|
290
|
+
"size": 12043,
|
|
291
|
+
"sha256": "8b8d831ede6731b1ec930c6073705c57e2f0039be37ec658b660bcda5c84c649"
|
|
292
|
+
},
|
|
293
|
+
"src/media_agent/platforms/toutiao/toutiao_login_evidence.py": {
|
|
294
|
+
"size": 1691,
|
|
295
|
+
"sha256": "346b0ed29c9def46945a3650e82c5a71f33c21947823912c981c483a4cd9406d"
|
|
296
|
+
},
|
|
297
|
+
"src/media_agent/platforms/toutiao/toutiao_login_ipc.py": {
|
|
298
|
+
"size": 3043,
|
|
299
|
+
"sha256": "22c4599c5a91bba2a5c828aabc2d358908d1992b19f7377b672cfbb4f4cecf7f"
|
|
300
|
+
},
|
|
301
|
+
"src/media_agent/platforms/xiaohongshu/__init__.py": {
|
|
302
|
+
"size": 32,
|
|
303
|
+
"sha256": "04811b13579095b984b1456bdc429b6b687aca691d478cc596a611391f0ec1a1"
|
|
304
|
+
},
|
|
305
|
+
"src/media_agent/platforms/xiaohongshu/xiaohongshu_check_login.py": {
|
|
306
|
+
"size": 8395,
|
|
307
|
+
"sha256": "f03b1b3c2439cb638cdb7c6a338c8496c2690dd15198c0c9126b29074f21a48e"
|
|
308
|
+
},
|
|
309
|
+
"src/media_agent/platforms/xiaohongshu/xiaohongshu_login_controller.py": {
|
|
310
|
+
"size": 15706,
|
|
311
|
+
"sha256": "dedad1bdc99a55698afd1e7822becddf0cd54c0d3ed47e28725a0c10e4929584"
|
|
312
|
+
},
|
|
313
|
+
"src/media_agent/platforms/xiaohongshu/xiaohongshu_login_evidence.py": {
|
|
314
|
+
"size": 1706,
|
|
315
|
+
"sha256": "6cec01b64f18c1786fe056d62972cfcda8f5e265b6505b5d248474838981aeb7"
|
|
316
|
+
},
|
|
317
|
+
"src/media_agent/platforms/xiaohongshu/xiaohongshu_login_ipc.py": {
|
|
318
|
+
"size": 3672,
|
|
319
|
+
"sha256": "0a97a6c5db896a6272bd392d92b3853e9fe0968c689c4aa8cd2d7065044a5777"
|
|
320
|
+
},
|
|
321
|
+
"src/media_agent/platforms/xiaohongshu/xiaohongshu_publish.py": {
|
|
322
|
+
"size": 37692,
|
|
323
|
+
"sha256": "55883e3891eb83f22021d2b86f69524e05e2972a16c2e7c8464dd4f142f06983"
|
|
324
|
+
},
|
|
325
|
+
"src/media_agent/runtime/__init__.py": {
|
|
326
|
+
"size": 32,
|
|
327
|
+
"sha256": "04811b13579095b984b1456bdc429b6b687aca691d478cc596a611391f0ec1a1"
|
|
328
|
+
},
|
|
329
|
+
"src/media_agent/runtime/account_manager.py": {
|
|
330
|
+
"size": 25222,
|
|
331
|
+
"sha256": "d9593fdfe4a03b5a9f1e863a2fa3e4ea0751d8ee9ba565a1fc5dd106951e1014"
|
|
332
|
+
},
|
|
333
|
+
"src/media_agent/runtime/browser.py": {
|
|
334
|
+
"size": 228,
|
|
335
|
+
"sha256": "48eb9fd61a6a9f9695d6f4a4eab776ee90641bd3ae57b3a5242d4e2e58986e67"
|
|
336
|
+
},
|
|
337
|
+
"src/media_agent/runtime/paths.py": {
|
|
338
|
+
"size": 263,
|
|
339
|
+
"sha256": "e9981bf51a388022a82bfe9c5670188c89315e6597788245be74b4eb3559a467"
|
|
340
|
+
},
|
|
341
|
+
"src/media_agent/script_map.json": {
|
|
342
|
+
"size": 1668,
|
|
343
|
+
"sha256": "c337b61e5a047df1dc9a0080c9ad5b0ffed7c9e82bc382896c6b887a73b25f8a"
|
|
344
|
+
},
|
|
345
|
+
"src/node/config.mjs": {
|
|
346
|
+
"size": 2719,
|
|
347
|
+
"sha256": "a53630d6d172e6ce701e3709cbb54012c447c72f5f372b45931e5e94baf1f243"
|
|
348
|
+
},
|
|
349
|
+
"src/node/integrity.mjs": {
|
|
350
|
+
"size": 1883,
|
|
351
|
+
"sha256": "7cef52f29728dba2b8a863cb496a8f95a047f8330ed30fd8e1a91de1f2f78a22"
|
|
352
|
+
},
|
|
353
|
+
"src/node/skills.mjs": {
|
|
354
|
+
"size": 4719,
|
|
355
|
+
"sha256": "e2a7f88e2deb75221131a452211e0d5709dba33f5fc9e0e151b809c5fbcc0392"
|
|
356
|
+
},
|
|
357
|
+
"tools/archive_releases.py": {
|
|
358
|
+
"size": 4703,
|
|
359
|
+
"sha256": "d0cbccf5f5c349eec03bc9410210d7b9895c4fe251679034f9d109cbda0d9624"
|
|
360
|
+
},
|
|
361
|
+
"tools/artifacts.py": {
|
|
362
|
+
"size": 2812,
|
|
363
|
+
"sha256": "0e3670b8f22c49eed3b87e7e61a4924edcc832c7ab01c54fd9e67a3767bcca01"
|
|
364
|
+
},
|
|
365
|
+
"tools/build_release.py": {
|
|
366
|
+
"size": 4188,
|
|
367
|
+
"sha256": "dbd124c7498f961e854e935d7950aba59a01de58304146669f548b7c083e5e0a"
|
|
368
|
+
},
|
|
369
|
+
"tools/check_catalog.py": {
|
|
370
|
+
"size": 1188,
|
|
371
|
+
"sha256": "f670d0559a2dcbfebb9baf41b8c211ebdacc6fd2320424374c0ca90571e005df"
|
|
372
|
+
},
|
|
373
|
+
"tools/install_runtime.py": {
|
|
374
|
+
"size": 6207,
|
|
375
|
+
"sha256": "a9ee1ce29581090ed81a7a3c9ca39f8c6f66dd3bd4fdaac3f1e7baa3243a9af2"
|
|
376
|
+
},
|
|
377
|
+
"tools/run_tests.py": {
|
|
378
|
+
"size": 798,
|
|
379
|
+
"sha256": "1f8d3da3ea5c934a00ebe76597b275e1533cebcdf15dacd1c74f7d82c1324a58"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@iducky/media-agent",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Agent Skills and visible-browser Python runtime for social media",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"media-agent": "bin/media-agent.mjs"
|
|
8
|
+
},
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=18"
|
|
11
|
+
},
|
|
12
|
+
"os": [
|
|
13
|
+
"darwin",
|
|
14
|
+
"linux"
|
|
15
|
+
],
|
|
16
|
+
"files": [
|
|
17
|
+
"bin/",
|
|
18
|
+
"src/",
|
|
19
|
+
"skills/",
|
|
20
|
+
"tools/",
|
|
21
|
+
"resources/",
|
|
22
|
+
"docs/guides/",
|
|
23
|
+
"pyproject.toml",
|
|
24
|
+
"!**/__pycache__/**",
|
|
25
|
+
"!**/*.pyc",
|
|
26
|
+
"manifest.json",
|
|
27
|
+
"SHA256SUMS"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"test": "python3 tools/run_tests.py",
|
|
31
|
+
"build": "python3 tools/build_release.py",
|
|
32
|
+
"prepack": "python3 tools/check_catalog.py"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/myducky/MediaAgentCapabilities.git"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"mediaAgentArtifact": true
|
|
42
|
+
}
|
package/pyproject.toml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "media-agent-capabilities"
|
|
7
|
+
version = "1.1.0"
|
|
8
|
+
description = "Visible-browser execution runtime for Media Agent Skills"
|
|
9
|
+
requires-python = ">=3.9"
|
|
10
|
+
dependencies = []
|
|
11
|
+
|
|
12
|
+
[project.optional-dependencies]
|
|
13
|
+
browser = ["cryptography>=42,<45", "cloakbrowser>=0.5.1", "pyyaml>=6.0", "openpyxl>=3.1", "playwright>=1.40"]
|
|
14
|
+
|
|
15
|
+
[tool.setuptools.packages.find]
|
|
16
|
+
where = ["src"]
|
|
17
|
+
include = ["media_agent*"]
|
|
18
|
+
|
|
19
|
+
[tool.setuptools.package-data]
|
|
20
|
+
media_agent = ["commands.sh", "script_map.json"]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"skills": [
|
|
4
|
+
"douyin-competitor-collect",
|
|
5
|
+
"douyin-creator-image-text-publish",
|
|
6
|
+
"douyin-creator-index",
|
|
7
|
+
"douyin-creator-login",
|
|
8
|
+
"douyin-creator-publish",
|
|
9
|
+
"douyin-enterprise-leads",
|
|
10
|
+
"douyin-enterprise-leads-login",
|
|
11
|
+
"douyin-enterprise-short-video-export",
|
|
12
|
+
"douyin-enterprise-video-rankings",
|
|
13
|
+
"douyin-web-login",
|
|
14
|
+
"toutiao-creator-article-draft",
|
|
15
|
+
"toutiao-web-login",
|
|
16
|
+
"xiaohongshu-creator-image-text-publish",
|
|
17
|
+
"xiaohongshu-creator-login",
|
|
18
|
+
"xiaohongshu-creator-publish"
|
|
19
|
+
],
|
|
20
|
+
"retired_skills": [
|
|
21
|
+
{
|
|
22
|
+
"name": "douyin-enterprise-industry-taxonomy",
|
|
23
|
+
"replacement": "douyin-enterprise-video-rankings",
|
|
24
|
+
"required_files": [
|
|
25
|
+
"SKILL.md",
|
|
26
|
+
"references/industry-taxonomy.md"
|
|
27
|
+
],
|
|
28
|
+
"sha256": {
|
|
29
|
+
"SKILL.md": "c34afeab97fe19f652c9c4e29201b33f150c1307f9508c08eccd6605b78d4026",
|
|
30
|
+
"agents/openai.yaml": "cfe112ae911831c7f9947b80bea7fa5adbaf44d8461bbe23c9d987aecae99f6e"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 社交媒体账号配置
|
|
2
|
+
accounts:
|
|
3
|
+
- alias: douyin_creator_personal_test
|
|
4
|
+
platform: douyin
|
|
5
|
+
account_type: personal
|
|
6
|
+
label: 抖音创作者中心测试
|
|
7
|
+
target_url: https://creator.douyin.com/
|
|
8
|
+
login_method: phone_qr
|
|
9
|
+
status: active
|
|
10
|
+
|
|
11
|
+
- alias: douyin_enterprise_leads_test
|
|
12
|
+
platform: douyin
|
|
13
|
+
account_type: enterprise
|
|
14
|
+
label: 抖音企业号线索版测试
|
|
15
|
+
target_url: https://leads.cluerich.com/pc/auth/login
|
|
16
|
+
login_method: phone_qr
|
|
17
|
+
status: active
|
|
18
|
+
|
|
19
|
+
# DEPRECATED: 历史名称,新安装请使用 douyin_enterprise_leads_test
|
|
20
|
+
# - alias: douyin_enterprise_test
|
|
21
|
+
# status: deprecated
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"account": {
|
|
3
|
+
"alias": "ALIAS",
|
|
4
|
+
"platform": "douyin",
|
|
5
|
+
"account_type": "personal 或 enterprise",
|
|
6
|
+
"target_url": "TARGET_URL",
|
|
7
|
+
"login_method": "phone_qr",
|
|
8
|
+
"status": "active"
|
|
9
|
+
},
|
|
10
|
+
"fingerprint": {
|
|
11
|
+
"platform": "macos",
|
|
12
|
+
"locale": "zh-CN",
|
|
13
|
+
"timezone": "Asia/Shanghai",
|
|
14
|
+
"viewport": {"width": 1440, "height": 900},
|
|
15
|
+
"seed": "GENERATE_NEW_UUID"
|
|
16
|
+
},
|
|
17
|
+
"headless": false,
|
|
18
|
+
"humanize": true,
|
|
19
|
+
"stealth_args": true
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 视频榜单采集客户配置
|
|
2
|
+
# Profile 负责登录身份,customer 配置负责行业、周期、榜单和页数
|
|
3
|
+
customers:
|
|
4
|
+
default:
|
|
5
|
+
ranking_period: day
|
|
6
|
+
industry_path:
|
|
7
|
+
- 企服加盟
|
|
8
|
+
pages: 2
|
|
9
|
+
ranking_types:
|
|
10
|
+
- 线索榜
|
|
11
|
+
- 引流榜
|
|
12
|
+
- 热门榜
|
|
13
|
+
customer_a:
|
|
14
|
+
ranking_period: day
|
|
15
|
+
industry_path:
|
|
16
|
+
- 汽车
|
|
17
|
+
pages: 2
|
|
18
|
+
ranking_types:
|
|
19
|
+
- 线索榜
|
|
20
|
+
- 引流榜
|
|
21
|
+
- 热门榜
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"account": {
|
|
3
|
+
"alias": "TOUTIAO_ACCOUNT_ALIAS",
|
|
4
|
+
"platform": "toutiao",
|
|
5
|
+
"account_type": "web",
|
|
6
|
+
"target_url": "https://www.toutiao.com/",
|
|
7
|
+
"expected_account_name": "USER_PROVIDED_ACCOUNT_NAME",
|
|
8
|
+
"login_method": "app_qr",
|
|
9
|
+
"capabilities": ["web_login"],
|
|
10
|
+
"status": "active"
|
|
11
|
+
},
|
|
12
|
+
"fingerprint": {
|
|
13
|
+
"platform": "macos",
|
|
14
|
+
"locale": "zh-CN",
|
|
15
|
+
"timezone": "Asia/Shanghai",
|
|
16
|
+
"viewport": {"width": 1440, "height": 900},
|
|
17
|
+
"seed": "GENERATE_NEW_UUID"
|
|
18
|
+
},
|
|
19
|
+
"headless": false,
|
|
20
|
+
"humanize": true,
|
|
21
|
+
"stealth_args": true
|
|
22
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"account": {
|
|
3
|
+
"alias": "XIAOHONGSHU_ACCOUNT_ALIAS",
|
|
4
|
+
"platform": "xiaohongshu",
|
|
5
|
+
"account_type": "creator",
|
|
6
|
+
"target_url": "https://creator.xiaohongshu.com/",
|
|
7
|
+
"login_method": "app_qr",
|
|
8
|
+
"capabilities": [
|
|
9
|
+
"creator_login",
|
|
10
|
+
"creator_publish"
|
|
11
|
+
],
|
|
12
|
+
"status": "active"
|
|
13
|
+
},
|
|
14
|
+
"fingerprint": {
|
|
15
|
+
"platform": "macos",
|
|
16
|
+
"locale": "zh-CN",
|
|
17
|
+
"timezone": "Asia/Shanghai",
|
|
18
|
+
"viewport": {
|
|
19
|
+
"width": 1440,
|
|
20
|
+
"height": 900
|
|
21
|
+
},
|
|
22
|
+
"seed": "GENERATE_NEW_UUID"
|
|
23
|
+
},
|
|
24
|
+
"headless": false,
|
|
25
|
+
"humanize": true,
|
|
26
|
+
"stealth_args": true
|
|
27
|
+
}
|