Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3baa543313 | ||
|
|
62d79702ab | ||
|
|
b0e6a01157 | ||
|
|
4fd757e5b4 | ||
|
|
fc9fb57d57 | ||
|
|
4c24d95991 | ||
|
|
5ab2381f79 | ||
|
|
8ea9f8f04b | ||
|
|
2b1fa58f56 | ||
|
|
5bcf962e93 | ||
|
|
0578c127d5 | ||
|
|
d7dfc1ba82 | ||
|
|
4e69c4ac44 | ||
|
|
7478a6fa58 | ||
|
|
28a6b79b00 | ||
|
|
63a786e8e3 | ||
|
|
dd6ab20aa8 | ||
|
|
9b01ca554c | ||
|
|
22cfa2fc6a | ||
|
|
c4eeae9252 | ||
|
|
95ac3de7fe | ||
|
|
9e3e750b6c | ||
|
|
c59c2b0f56 | ||
|
|
d880307d85 | ||
|
|
b03a3d501d | ||
|
|
2b6657c951 | ||
|
|
ceb700f0a8 | ||
|
|
8457333a92 | ||
|
|
de39195a61 | ||
|
|
38ae9374fd | ||
|
|
6383911fb3 | ||
|
|
fc0ac46b57 | ||
|
|
99033d13db | ||
|
|
3e3432ea4f | ||
|
|
7fcd9380ae | ||
|
|
6abeabf5a0 | ||
|
|
f14f178f8b | ||
|
|
9ff44143b5 | ||
|
|
1dd74bda05 | ||
|
|
02cd64a18c | ||
|
|
c02f91c6d8 | ||
|
|
da71ad5bad | ||
|
|
939edeedb6 | ||
|
|
e64b001bf9 | ||
|
|
a228fcf560 | ||
|
|
2a94ebe85b | ||
|
|
a80f039444 | ||
|
|
c8287b4bf3 | ||
|
|
e0e9f169d7 | ||
|
|
864cdf2448 | ||
|
|
eaa62751cd | ||
|
|
4a2da04f98 | ||
|
|
f5bf98fb34 | ||
|
|
775c28e6ca | ||
|
|
189d51f1ce | ||
|
|
9a7e0ddc75 | ||
|
|
e5cdfa2642 | ||
|
|
6daa2f4d2a | ||
|
|
02ebcda0ea | ||
|
|
47526c1cef | ||
|
|
697c4bfb20 | ||
|
|
5a88b08a44 | ||
|
|
f6884fe9c9 | ||
|
|
c15f045c64 | ||
|
|
e40a9a0539 | ||
|
|
01b5f917b9 | ||
|
|
e8b8cc79b6 | ||
|
|
709dcf742e | ||
|
|
cab3336859 | ||
|
|
fcc7ed804c | ||
|
|
a8efb36041 | ||
|
|
afa83d8b79 | ||
|
|
d7fffc80a4 | ||
|
|
ce1d222216 | ||
|
|
ed2ab86404 | ||
|
|
ec9e3a52c4 | ||
|
|
7a73c33c73 | ||
|
|
5dc61770f4 | ||
|
|
82ca286ea4 | ||
|
|
442441931f | ||
|
|
1f040bc6d4 | ||
|
|
df34d0a1b4 | ||
|
|
b436ee0e0a | ||
|
|
9f6a6b477b | ||
|
|
cfd45c3b3a | ||
|
|
70286030b1 | ||
|
|
89ad5e1600 | ||
|
|
1c9e15500b | ||
|
|
cff44be771 | ||
|
|
26624f0888 | ||
|
|
4a110c70de | ||
|
|
19d84397ce | ||
|
|
9431dc31c2 | ||
|
|
08f9275c45 | ||
|
|
66f0bf8072 | ||
|
|
4fec164364 | ||
|
|
3c58552852 | ||
|
|
4b321c1991 | ||
|
|
48299e3ac5 | ||
|
|
4f36451da0 | ||
|
|
751beb6e33 | ||
|
|
e0c3cbf6ea | ||
|
|
c5b0806cbc | ||
|
|
dba3d78f14 | ||
|
|
d082e71316 | ||
|
|
b8b5bcf31a | ||
|
|
fabf9b3910 | ||
|
|
49df651cfe | ||
|
|
f6cb6f2deb | ||
|
|
9f6bb16285 | ||
|
|
fb12a7dfb4 | ||
|
|
8f5df2d352 | ||
|
|
263f01b4f1 | ||
|
|
b9dd0f203d | ||
|
|
549e227f90 | ||
|
|
b8afbe4e0a | ||
|
|
d7f891fddb | ||
|
|
63db0b725b | ||
|
|
9fdd299251 | ||
|
|
f7a2a98e94 | ||
|
|
870e1f62aa | ||
|
|
4143ae36dd | ||
|
|
032d8fa3d7 | ||
|
|
cdde9ea7b6 | ||
|
|
2483dbf9ba | ||
|
|
08a2e9f907 | ||
|
|
f35149d282 | ||
|
|
0c785f9774 | ||
|
|
83c40df645 | ||
|
|
2986689415 | ||
|
|
0f22d1fa81 | ||
|
|
db65ac2349 | ||
|
|
73e747436a | ||
|
|
051452d3b1 | ||
|
|
cf7c96eaff | ||
|
|
890b94818d | ||
|
|
304dc3ce4b | ||
|
|
9424947775 | ||
|
|
2f4a0c3bad | ||
|
|
7aad7f929c | ||
|
|
cd96359f6f | ||
|
|
8be84bff00 | ||
|
|
6583c1b28c | ||
|
|
e28359ff47 | ||
|
|
df3fba720c | ||
|
|
ca6d55f0f9 | ||
|
|
fb82d7f7ae | ||
|
|
63b4fa74fe | ||
|
|
c6c40191ae | ||
|
|
56f71cdfbe | ||
|
|
6c1d12d845 | ||
|
|
7d8911ed7d | ||
|
|
becd26d1da | ||
|
|
dac9f7b8e0 | ||
|
|
8ca1d12822 | ||
|
|
239a22ee06 | ||
|
|
1e9ddb4719 | ||
|
|
c61d488794 | ||
|
|
41b09664eb | ||
|
|
4d79ec839c | ||
|
|
c8df1f5ef6 | ||
|
|
9e7bd54c7e | ||
|
|
3df3e0113b | ||
|
|
3da946382c | ||
|
|
cb013fcc9a | ||
|
|
e4834fd24e | ||
|
|
4cfcbcf7ea | ||
|
|
4ef99e5f73 | ||
|
|
0399942fb1 | ||
|
|
7d097a05de | ||
|
|
03ad57bcaa | ||
|
|
8a18ddc515 | ||
|
|
ab6959ee0f | ||
|
|
71974dcf42 | ||
|
|
b2c46086a3 | ||
|
|
92206d82f0 | ||
|
|
045d8d6cf0 | ||
|
|
44146888d3 | ||
|
|
13bb3d9a02 | ||
|
|
0a46fd71c2 | ||
|
|
cbee7cd807 | ||
|
|
c37773f48f | ||
|
|
52a4830b08 | ||
|
|
e154242c32 | ||
|
|
728b24a0c9 | ||
|
|
1489030c5f | ||
|
|
430f97131b | ||
|
|
1d6bb1e630 | ||
|
|
001e163b2a | ||
|
|
1ec87a82c1 | ||
|
|
5a1d464196 | ||
|
|
571ff84b0c | ||
|
|
ab9674eaa2 | ||
|
|
685a65faa5 | ||
|
|
6ed6c14adc | ||
|
|
ac16b098ba | ||
|
|
5ee25551ea | ||
|
|
1ae81ac25c | ||
|
|
1ca680f006 | ||
|
|
9544674e7f | ||
|
|
3c81976998 | ||
|
|
8709bfba2a | ||
|
|
cc5ecd7bbf | ||
|
|
7f5441a512 | ||
|
|
694ea85ed3 | ||
|
|
597017bd37 | ||
|
|
ef61a5bf73 | ||
|
|
74805aa829 | ||
|
|
89221535ba | ||
|
|
5f79df1973 | ||
|
|
942b652e56 | ||
|
|
8ccdf22882 | ||
|
|
e962304107 | ||
|
|
f24e790bd7 | ||
|
|
d38cfc7229 | ||
|
|
8191881f6a | ||
|
|
7ffeecbb4f | ||
|
|
4875ea4333 | ||
|
|
b346af7fef | ||
|
|
340b30cc8b | ||
|
|
fd67c2b45f | ||
|
|
ffe6153148 | ||
|
|
3a249c509d | ||
|
|
55edc037fb | ||
|
|
a17cef201d | ||
|
|
0414160520 | ||
|
|
0bc8ca02a4 | ||
|
|
1557ba42c4 | ||
|
|
9af3407546 | ||
|
|
117de90c3e | ||
|
|
be60551f49 | ||
|
|
dcf2fe5a53 | ||
|
|
132301dc28 | ||
|
|
dd133c9d52 | ||
|
|
5459b97ba0 | ||
|
|
1908433e46 | ||
|
|
7dcd6c6a4c | ||
|
|
7d84226105 | ||
|
|
c45940c358 | ||
|
|
09e8b4734a | ||
|
|
a87f245547 | ||
|
|
197fafdc02 | ||
|
|
65fd9b8fb1 | ||
|
|
668377660c | ||
|
|
98b5c0cbe3 | ||
|
|
d32e24a5ab | ||
|
|
fcc4163e15 | ||
|
|
882c7f06dc | ||
|
|
694757b2fb | ||
|
|
019b018bfa | ||
|
|
746aa4ba92 | ||
|
|
f4cb2217ed | ||
|
|
0f6c8c4bc9 | ||
|
|
8bc4678f40 | ||
|
|
0e4455fdc8 | ||
|
|
df7cf01835 | ||
|
|
baa4324ea0 | ||
|
|
1bfa224c62 | ||
|
|
b73bc650c4 | ||
|
|
b8117f190d | ||
|
|
d8c406b8b8 | ||
|
|
ceacd5615b | ||
|
|
7144084d8c | ||
|
|
2caa4d2832 | ||
|
|
d3d6d1a109 | ||
|
|
09feb3cd9e | ||
|
|
77cfb04808 | ||
|
|
9dc7a52383 | ||
|
|
130f14e96a | ||
|
|
b240ecb180 | ||
|
|
21bfa2a3ff | ||
|
|
61023d090e | ||
|
|
2fd6fcbd06 | ||
|
|
acb6c4d717 | ||
|
|
81b17f057f | ||
|
|
51e0c06f2d | ||
|
|
0a84f34729 | ||
|
|
d9d463f38b | ||
|
|
5d18fa51fa | ||
|
|
2627dd2685 | ||
|
|
d727b38260 | ||
|
|
052c036bcf | ||
|
|
0689bdf46e | ||
|
|
271e625767 | ||
|
|
c1d62653a9 | ||
|
|
0db4b130f0 | ||
|
|
81dc101239 | ||
|
|
ba70fbcd49 | ||
|
|
e0a723a3e4 | ||
|
|
d716cf070b | ||
|
|
fa99ea4f08 | ||
|
|
9adee6762e | ||
|
|
b4d09574da | ||
|
|
ddcb4ee771 | ||
|
|
8ea8c9b368 | ||
|
|
b718955927 | ||
|
|
f9988855d3 | ||
|
|
a3271a827b | ||
|
|
872d68e738 | ||
|
|
90773081c2 | ||
|
|
e22564bc20 | ||
|
|
fb2e6c4fac | ||
|
|
512ae6b591 | ||
|
|
01263f4149 | ||
|
|
387929683c | ||
|
|
a875dfabe6 | ||
|
|
096d1effb0 | ||
|
|
928e9053cf | ||
|
|
e1b5efc01b | ||
|
|
a6251db762 | ||
|
|
814e64931d | ||
|
|
dba34675c8 | ||
|
|
3f3a3ea039 | ||
|
|
fbebdcb796 | ||
|
|
5cde680cb6 | ||
|
|
66125473eb | ||
|
|
242129d036 | ||
|
|
2bffc721d4 | ||
|
|
82a401340a | ||
|
|
aa9f22a166 | ||
|
|
368a576bdb | ||
|
|
fde2f9f2a6 | ||
|
|
d9cf8d5874 | ||
|
|
885dd71cad | ||
|
|
bfa766d6d6 | ||
|
|
711fbbe7c6 | ||
|
|
94ee8c2939 | ||
|
|
c1d2d7c74a | ||
|
|
f2eed74e9d | ||
|
|
615dd27404 | ||
|
|
1e4426f133 | ||
|
|
a406d60a1f | ||
|
|
644ba6ccb9 | ||
|
|
bf94b14918 | ||
|
|
010d90656f | ||
|
|
48c0dee67a | ||
|
|
d3d872ba6f | ||
|
|
7469e58a89 | ||
|
|
0144a64b42 | ||
|
|
9b1e32d620 | ||
|
|
91837ff8e9 | ||
|
|
2400957657 | ||
|
|
70fe14ae39 | ||
|
|
16b45cec41 | ||
|
|
82854785a0 | ||
|
|
14ca71a41c | ||
|
|
a630faea4c | ||
|
|
5936b4dbe2 | ||
|
|
84ffc1c3e3 | ||
|
|
f764f253a9 | ||
|
|
7872ba8cfb | ||
|
|
2304f323b3 | ||
|
|
84212099e6 | ||
|
|
fbb0c475d0 | ||
|
|
97ffe547ae | ||
|
|
ce5a5d83dc | ||
|
|
8c6fb8b39e | ||
|
|
3d7b3edf49 | ||
|
|
572b2a05c8 | ||
|
|
2ebd13c100 | ||
|
|
739a8c59eb | ||
|
|
15ec6da083 | ||
|
|
e30f41de68 | ||
|
|
3cb58b9f0f | ||
|
|
1393fc465c | ||
|
|
0edb7059c8 | ||
|
|
03e54ad552 | ||
|
|
b2470d80ed | ||
|
|
eb84a72c2f | ||
|
|
fdd2200ae2 | ||
|
|
1888dd6cf3 | ||
|
|
d75144a6ac | ||
|
|
446af2e9b5 | ||
|
|
9a75b02d1a | ||
|
|
d5f8b148b4 | ||
|
|
199e834227 | ||
|
|
1306c43740 | ||
|
|
8ca38f1806 | ||
|
|
621a0cf90d | ||
|
|
799a46f53c | ||
|
|
3b5afba8a1 | ||
|
|
aef8b4a022 | ||
|
|
cc06d1fa6d | ||
|
|
93e041bb91 | ||
|
|
14f24d1ab0 | ||
|
|
bfbf6da101 | ||
|
|
dff03f6b28 | ||
|
|
b5ad97585d | ||
|
|
ad5d1876ca | ||
|
|
b7d4df4d7a | ||
|
|
8f95519cb6 | ||
|
|
b5c280ca3c | ||
|
|
8b487b7030 | ||
|
|
f182e46e87 | ||
|
|
ab686165a8 | ||
|
|
463978c183 | ||
|
|
74a46dd66a | ||
|
|
3c34b958fa | ||
|
|
c788430fa7 | ||
|
|
77d29ce24f | ||
|
|
e5716c0c7c | ||
|
|
4e9b0bacba | ||
|
|
eb2151164f | ||
|
|
59f74e46ba | ||
|
|
12f4eca8a8 | ||
|
|
685d0ce9c1 | ||
|
|
d0213f41a6 | ||
|
|
61fefd200a | ||
|
|
017022a0b0 | ||
|
|
798286d975 | ||
|
|
a8a126f6a5 | ||
|
|
7a322e0746 | ||
|
|
96cbd19c61 | ||
|
|
0a16c5329d | ||
|
|
aad8784b48 | ||
|
|
64ca463591 | ||
|
|
86a0ea26ca | ||
|
|
dd2d02758b | ||
|
|
3c9b163dd4 | ||
|
|
1bc39655c9 | ||
|
|
d1143e4207 | ||
|
|
61080c6eb2 | ||
|
|
86401983fb | ||
|
|
4fc9214de5 | ||
|
|
fdf8498a56 | ||
|
|
a646d1b26a | ||
|
|
7f2cbc13c9 | ||
|
|
ea5376820c | ||
|
|
b5d9adf396 | ||
|
|
865c521ab8 | ||
|
|
d56e906371 | ||
|
|
26bb6a00d2 | ||
|
|
f71dd2cebb | ||
|
|
28ff032160 | ||
|
|
e52f93fdbb | ||
|
|
2ab2271d61 | ||
|
|
b0cd5ef1ef | ||
|
|
0d6ab29552 | ||
|
|
ba94a381a9 | ||
|
|
882932a51b | ||
|
|
a68268234d | ||
|
|
2ca060b626 | ||
|
|
3975e41f56 | ||
|
|
646a45c88e | ||
|
|
e0d2ad2c9b | ||
|
|
422e354f61 | ||
|
|
0aeceac257 | ||
|
|
b586db0de7 | ||
|
|
e180d9651c | ||
|
|
599ef05dcf | ||
|
|
7dcb40df78 | ||
|
|
92cfeabe19 | ||
|
|
e270261e32 | ||
|
|
07290597a0 | ||
|
|
7451599727 | ||
|
|
2b1b929f8f | ||
|
|
3712c7561a | ||
|
|
0b536e1f90 | ||
|
|
260ded8c79 | ||
|
|
012d8a4821 | ||
|
|
ee46a101db | ||
|
|
a21283651e | ||
|
|
e28a2e297e | ||
|
|
043210c049 | ||
|
|
29700f9d76 | ||
|
|
d95c69e3b7 | ||
|
|
fd4a00bcf7 | ||
|
|
18a7cffb39 | ||
|
|
8a7b269c04 | ||
|
|
114c87341e | ||
|
|
1990a1f998 | ||
|
|
c0e0363759 | ||
|
|
a74e3b49d0 | ||
|
|
35cd7695fa | ||
|
|
39f11d1327 | ||
|
|
2621db0450 | ||
|
|
a8871b9231 | ||
|
|
8f32999261 | ||
|
|
65909b40ad | ||
|
|
2720a23483 | ||
|
|
4daad2ecc5 | ||
|
|
d020d27715 | ||
|
|
c0ba463e54 | ||
|
|
92620c537b | ||
|
|
055eec69ef | ||
|
|
8a677a766d | ||
|
|
db233d8ffc | ||
|
|
5c05824ce0 | ||
|
|
43e1925d70 | ||
|
|
9a82cfbedc | ||
|
|
1324898a71 | ||
|
|
b91212b9e1 | ||
|
|
66a73a4756 | ||
|
|
767ccf029a | ||
|
|
72301e9f10 | ||
|
|
0b8eb84b55 | ||
|
|
0a4b210e6c | ||
|
|
934566d45c | ||
|
|
57cad25f32 | ||
|
|
b023d55901 | ||
|
|
aa774c2a44 | ||
|
|
4cdc8b274f | ||
|
|
6b8236d1cd | ||
|
|
902fb4c070 | ||
|
|
0f614dd82f | ||
|
|
52b79c6de9 | ||
|
|
118a7b29ff | ||
|
|
81f84cee05 | ||
|
|
6e4babc610 | ||
|
|
b346838054 | ||
|
|
f5575711fe | ||
|
|
c30fac20a6 | ||
|
|
8422829f9d | ||
|
|
0a98fb8879 | ||
|
|
f4fe3e965c | ||
|
|
ef57a47e29 | ||
|
|
fcf199031a | ||
|
|
a4bb2e98c8 | ||
|
|
c94f7263d8 | ||
|
|
c0d53b8708 | ||
|
|
fb47f59d57 | ||
|
|
3a73a44cb0 | ||
|
|
97ebfe2d36 | ||
|
|
5c4f23c01a | ||
|
|
5a5f585bda |
No files matched your search
@@ -0,0 +1,16 @@
|
||||
---
|
||||
description: 오늘 날씨 타로·코디 카드를 둘 다 만들어 검수하고 날씨각 피드와 인스타에 올린다 (/daily-tarot + /daily-ootd)
|
||||
argument-hint: "<타로 주제> <코디 스타일> 예) 건강 운동 minimal"
|
||||
---
|
||||
|
||||
오늘 인스타 카드를 만든다. 인자: `$ARGUMENTS` — 앞은 타로 주제(비어 있으면 Claude 가 오늘 날씨에 맞는 주제를 고른다), 마지막 단어가 casual·semi·formal·street·minimal 중 하나면 코디 스타일(없으면 minimal=꾸안꾸). 코디 포스트 하나는 스타일 하나: 네 사람 모두 같은 스타일.
|
||||
재확인 질문 없이 순서대로 진행하고, 막히면 그 자리에서 보고하고 멈춘다. 타로는 `/daily-tarot` 의 순서대로, 코디는 `/daily-ootd` 의 순서대로 각각 만들고 검수한 뒤 올린다(두 명령 파일의 단계를 그대로 따른다).
|
||||
|
||||
1. 관리자 서버: `curl -s http://localhost:5175/api/targets` 에 `king` 이 있어야 한다. 없으면 `admin/` 에서 백그라운드로 켠다 (`admin/AGENTS.md` '켜기', 킹서버 키는 `ssh King_admin` 의 `~/proj/o2o-weather/.env` `ADMIN_API_KEY`, 값은 출력하지 않는다).
|
||||
2. 예보: `curl -s "https://weather.o2o.kr/v1/weather/today?region=1114000000"` 의 `day` 가 오늘인지 보고 slots 의 기온·하늘·비 확률을 적어 둔다.
|
||||
3. 타로: `cd admin && VITE_API_BASE_URL=https://weather.o2o.kr ADMIN_URL=http://localhost:5175 npm run card -- tarot --topic "<주제>" --color sky --post-wait`.
|
||||
출력된 기획 문구를 2의 예보와 대조한다(숫자·하늘 묘사가 틀리면 `--copy <값> --feedback "실제 수치…"` 로 한 번만 다시). "일부 그림을 못 만들어" 가 나오면 멈추고 보고한다. 크롬이 한 장에서 45초 넘게 멈추면 `card.mjs` 가 그 장만 한 번 다시 찍는다(또 멈추면 멈추고 보고한다).
|
||||
4. 코디(그날 코디): `npm run card -- ootd --daily --style <스타일> --color sky --post-wait`. 무신사 인기 스냅 중 그 스타일 태그(꾸안꾸·오피스룩·캐주얼·스트릿·정장)가 붙은 것에서 사람 4명(20-30대·40대~ 여·남) 코디를 고르고, Claude 가 옷 목록을 뽑고, Codex 가 참고 사진대로 플랫레이 그림을 그린다(사람당 2~4분). 고른 스냅 주소와 옷 목록이 출력된다. "스냅이 없어요"·"저장하지 못했어요" 가 나오면 멈추고 보고한다.
|
||||
5. 검수(예외 없음): 만든 JPEG 전부를 **한 장씩 원본 크기로** Read 로 연다. 축소 시트로 판단하지 않는다. 볼 것: 글자 잘림·겹침, 그림 누락, 그림 속 사람·얼굴·글자, 코디는 그림 아래 옷 목록의 옷이 그림에 전부 있고 추가 옷이 없는지, 스냅 사진(`out/<날짜>/snaps/<사람>/snap.jpg`)과 옷·색이 같은지, 날씨 줄 수치가 예보와 맞는지. 틀리면 고치고 다시 찍어 다시 본다.
|
||||
6. 새 타로 그림이 생겼으면 `git add admin/src/assets/gak-card admin/src/assets/tarot-bg` 후 `feat: <날짜> 각 카드 그림(…)` 로 커밋한다 (Claude 서명 없이). 코디 그림(`admin/public/daily`)은 커밋하지 않는다.
|
||||
7. 보고(한국어, 짧게): 킹서버 카드 번호 2개(승인 대기), 만든 JPEG 경로, 참고한 스냅 주소 4개, 검수에서 고친 것, 남은 이슈. 올리는 건 사용자가 관리자 '만든 카드' 탭이나 "올려" 로 한다.
|
||||
@@ -0,0 +1,29 @@
|
||||
---
|
||||
description: 오늘의 코디 카드 4장(20-30대·40대~ 여·남, 스타일 하나)을 무신사 인기 스냅으로 만들어 검수하고 날씨각 피드와 인스타에 올린다
|
||||
argument-hint: "<스타일> minimal(꾸안꾸)·casual·semi(오피스)·formal·street (비우면 minimal)"
|
||||
---
|
||||
|
||||
오늘의 코디 저장소는 날씨각 저장소의 sns 워크트리다(맥: `~/orca/workspaces/o2o-weather/sns`, 다른 PC: 저장소를 받은 폴더). 어느 폴더에서 불러도 저장소 루트에서 작업하고, 아래 경로는 모두 저장소 루트 기준이다. 윈도우는 Git Bash 에서 같은 명령을 쓴다(처음 한 번 `admin/AGENTS.md` '윈도우' 준비). 카드를 만들어 올린다. 인자: `$ARGUMENTS` — 코디 스타일 하나(minimal=꾸안꾸, casual=캐주얼, semi=세미정장·오피스, formal=정장, street=스트릿). 비어 있으면 minimal. 포스트 하나는 스타일 하나: 네 사람 모두 같은 스타일.
|
||||
코디 구성 확인(2번)에서는 반드시 멈추고 사용자의 오케이를 기다린다. 그 밖에는 재확인 질문 없이 순서대로 진행하고, 막히면 그 자리에서 보고하고 멈춘다. 검수를 통과한 뒤에만 올린다(올린 건 되돌릴 수 없다).
|
||||
|
||||
## 꼭 지킬 것 (2026-10-27 사용자 피드백)
|
||||
- 에이블리는 공개 API 가 없어 쓸 수 없다. 요청에 있어도 처음에 그 사실을 말하고 무신사로만 만든다.
|
||||
- 옷은 스냅에 태그된 무신사 상품만 쓴다. 사진에만 보이는 옷·가방은 넣지 않는다(`admin/scripts/outfit.mjs`).
|
||||
- 계절감(가장 중요): 검수 때 아침·저녁 체감기온으로 '오늘 이 옷이면 춥지 않은가'를 사람마다 본다. 쌀쌀한 날(아침 체감과 낮 최고 평균 12도 미만, 스크립트 구간 chilly 이하)은 네 사람 모두 겉옷이 있어야 하고, 반팔 단독·미니 원피스/스커트·뮬·슬링백·샌들은 안 된다. 하나라도 걸리면 그 사람 스냅을 다시 고른다.
|
||||
- 여자 코디는 남성적·고프코어(카고 바지·백팩·등산화·바람막이)를 피하고 여성스러운 스냅을 고른다. 스트릿처럼 남성적인 스타일이 네 사람에게 안 어울리면 다른 스타일로 바꾼다.
|
||||
- 이름표는 한 줄에 들어가게 짧게(색 이름 접두어 빼기).
|
||||
- 남자 코디에 플레어(나팔)·부츠컷 바지는 쓰지 않는다(2026-10-28 사용자 피드백). 스냅 상품명이나 사진에 플레어·부츠컷·세미 부츠컷이 보이면 그 사람 스냅을 다시 고른다.
|
||||
- 올린 카드를 고쳐 다시 올리면 예전 날씨각 피드 포스트도 같이 지운다(2026-10-28 사용자 피드백). 삭제 API가 없어 운영 DB를 고치므로 명령·영향을 말하고 확인받은 뒤: `ssh King_admin 'docker exec o2o-weather-postgres-1 sh -c "psql -U \$POSTGRES_USER -d \$POSTGRES_DB -c \"update post set deleted = true where post_id = <예전 포스트>\""'` → `docker exec o2o-weather-redis-1 sh -c 'redis-cli --scan --pattern "feed:*" | xargs -r redis-cli del'` → `https://weather.o2o.kr/v1/feed?region=1114000000` 에 예전 포스트가 없고 새 포스트가 있는지 확인. 예전 인스타 글은 API로 못 지우니 사용자에게 앱에서 지워 달라고 한다.
|
||||
- 인스타 API 가 `Application request limit reached` 를 돌려줘도 실제로는 올라갔을 수 있다. 다시 올리기 전에 `GET https://graph.instagram.com/v24.0/me/media?fields=permalink,caption,timestamp&limit=1` 로(올리기 단계의 인스타 링크처럼 킹서버 토큰으로) 최신 글 캡션을 확인하고, 없을 때만 다시 올린다(중복 게시 금지).
|
||||
- 캡션 해시태그가 이 포스트 내용(주제·카드·스타일·계절)과 맞는지 본다. 고정 태그만 있으면 올리지 않는다(`admin/src/cards/templates.tsx` `post`).
|
||||
- 무엇을 왜 바꿨는지·되돌렸는지는 한 번에 구체적으로 설명한다(파일 이름만 말하지 않는다).
|
||||
|
||||
## 순서
|
||||
1. 관리자 서버: `curl -s http://localhost:5175/api/targets` 에 `king` 이 있어야 한다. 없으면 `admin/` 에서 백그라운드로 켠다 (`admin/AGENTS.md` '켜기', 킹서버 키는 `ssh King_admin` 의 `~/proj/o2o-weather/.env` `ADMIN_API_KEY`, 값은 출력하지 않는다).
|
||||
2. 코디 구성 확인 → **오케이 대기**: 오늘 구간을 정하고(아침 체감과 낮 최고 평균, `scripts/daily-ootd.mjs` weatherToday 와 같은 계산) `cd admin && node scripts/snap.mjs --band <구간> --style <스타일> --out out/<날짜>/snaps` 로 사람 4명 스냅을 고른다. `out/<날짜>/snaps/picks.json` 을 보고 나이대·성별마다(20-30대 여자·20-30대 남자·40대~ 여자·40대~ 남자) ① 입힐 옷(겉옷·상의·하의·신발·가방을 일반 이름으로) ② 가져온 곳(무신사 스냅 주소) ③ 계절감·위 규칙 점검 결과를 표로 보여 주고 AskUserQuestion 으로 오케이를 받는다. 각 사람 스냅 사진(`snaps/<사람>/snap.jpg`)을 Read 로 열어 사진 속 옷(바지 실루엣 포함)까지 확인한 뒤 보여 준다. 사용자가 특정 사람을 바꾸라고 하면 그 사람만 다시 골라 다시 보여 준다(다른 스냅을 고를 땐 `out/snap-history.json` 에 오늘 쓴 id 가 남으니 새 결과의 그 사람만 picks.json 에 옮긴다). 오케이 전에는 그림을 만들지 않는다.
|
||||
3. 만들기(승인 대기로 저장까지): `cd admin && VITE_API_BASE_URL=https://weather.o2o.kr ADMIN_URL=http://localhost:5175 npm run card -- ootd --daily --style <스타일> --color sky --post-wait`. 출력 끝의 `카드 N` 번호를 적어 둔다.
|
||||
2번에서 확인받은 `snaps/picks.json` 이 있으면 그 코디를 그대로 쓴다(없으면 무신사 인기 스냅에서 새로 고른다, 최근 14일에 쓴 스냅 제외). Claude 가 옷 목록을 뽑고, Codex 가 스냅 사진·상품 썸네일을 참고해 플랫레이 그림을 그린다(사람당 2~4분, 총 10~15분). 고른 스냅 주소·옷 목록이 출력된다. "스냅이 없어요"·"저장하지 못했어요"·"Codex 실행이 실패" 가 나오면 멈추고 보고한다. 로그의 `rmcp … AuthRequired` 는 Codex 내부 경고라 무시한다. 크롬이 한 장에서 45초 넘게 멈추면 `card.mjs` 가 그 장만 한 번 다시 찍는다(또 멈추면 멈추고 보고한다).
|
||||
4. 검수(예외 없음): 만든 JPEG 4장을 **한 장씩 원본 크기로** Read 로 연다. 축소 시트로 판단하지 않는다. 볼 것: 그림이 비어 있지 않은지, 그림 아래 옷 목록의 옷이 그림에 전부 있고 추가 옷이 없는지, 그림 속 사람·얼굴·글자, 스냅 사진(`admin/out/<날짜>/snaps/<사람>/snap.jpg`)과 옷·색이 같은지, 이름표 줄이 날씨 줄과 겹치지 않는지, 날씨 줄 수치가 예보(`https://weather.o2o.kr/v1/weather/today?region=1114000000`)와 맞는지. 틀리면 고치고 다시 만들어(3번, 새 카드 번호) 다시 본다. 못 고치면 올리지 말고 보고한다.
|
||||
5. 올리기(검수 통과 시): `curl -s -X POST "http://localhost:5175/api/cards/<카드 N>/publish?target=king"` → `post_id` 확인, 이어서 `curl -s -X POST --max-time 600 "http://localhost:5175/api/cards/<카드 N>/instagram?target=king"` → `ig_media_id`. 인스타 링크는 킹서버 토큰으로 본다: `ssh King_admin 'set -a; . ~/proj/o2o-weather/.env; set +a; curl -s "https://graph.instagram.com/v24.0/<ig_media_id>?fields=permalink&access_token=$INSTAGRAM_ACCESS_TOKEN"'` (토큰 값은 출력하지 않는다).
|
||||
6. `TODO.md` 인스타 홍보 표에 한 줄(카드·포스트 번호, 인스타 링크, 참고 스냅 4개) 적고 `docs:` 커밋, `git push origin sns:main`. 코디 그림(`admin/public/daily`)은 커밋하지 않는다.
|
||||
7. 보고(한국어, 짧게): 인스타 링크, 킹서버 카드·포스트 번호, 참고한 스냅 주소 4개, 검수에서 고친 것, 남은 이슈.
|
||||
@@ -0,0 +1,26 @@
|
||||
---
|
||||
description: 오늘의 날씨 타로 카드 5장을 만들어 검수하고 날씨각 피드와 인스타에 올린다
|
||||
argument-hint: "<타로 주제> 예) 건강 운동 · 연애 썸 · 경제 주식 (비우면 Claude가 고름)"
|
||||
---
|
||||
|
||||
오늘의 날씨 타로 저장소는 날씨각 저장소의 sns 워크트리다(맥: `~/orca/workspaces/o2o-weather/sns`, 다른 PC: 저장소를 받은 폴더). 어느 폴더에서 불러도 저장소 루트에서 작업하고, 아래 경로는 모두 저장소 루트 기준이다. 윈도우는 Git Bash 에서 같은 명령을 쓴다(처음 한 번 `admin/AGENTS.md` '윈도우' 준비). 카드를 만들어 올린다. 인자: `$ARGUMENTS` — 타로 주제(대주제 소주제). 비어 있으면 Claude 가 오늘 날씨에 맞는 주제를 고른다.
|
||||
기획 문구 검토(3번)에서는 반드시 멈추고 사용자의 오케이를 기다린다(2026-10-28 사용자 요청: 만들어 올리지 말고 내용부터 검토받는다). 그 밖에는 재확인 질문 없이 순서대로 진행하고, 막히면 그 자리에서 보고하고 멈춘다. 검수를 통과한 뒤에만 올린다(올린 건 되돌릴 수 없다).
|
||||
|
||||
## 꼭 지킬 것 (2026-10-27 사용자 피드백)
|
||||
- 카드는 주제와 직접 엮여야 한다. 경제(주식·재테크) 주제는 경제 전용 카드(`admin/money-deck.json`: 불장·존버·분할매수·익절·손절·관망·물타기·배당·적금·텅장)에서만 고르고, 리딩은 돈·주식 이야기로 쓴다. 산책·꽃구경 같은 활동 이야기로 새면 다시 기획한다.
|
||||
- 주식 주제의 제목·질문은 "오늘 내 주식"(계좌·지갑처럼 돌려 말하지 않는다).
|
||||
- 예보 데이터에 없는 사실(바람 세기 등)은 쓰지 않는다. 행운 포인트의 시각·기온은 그 시각 slot 값 그대로(예: 해 질 녘 18시 10도를 8도로 쓰지 않는다).
|
||||
- 카드 그림을 계절에 맞출 필요는 없다(가을에 벚꽃 그림이어도 다시 그리지 않는다).
|
||||
- 인스타 API 가 `Application request limit reached` 를 돌려줘도 실제로는 올라갔을 수 있다. 다시 올리기 전에 `GET https://graph.instagram.com/v24.0/me/media?fields=permalink,caption,timestamp&limit=1` 로(올리기 단계의 인스타 링크처럼 킹서버 토큰으로) 최신 글 캡션을 확인하고, 없을 때만 다시 올린다(중복 게시 금지).
|
||||
- 캡션 해시태그가 이 포스트 내용(주제·카드·스타일·계절)과 맞는지 본다. 고정 태그만 있으면 올리지 않는다(`admin/src/cards/templates.tsx` `post`).
|
||||
- 무엇을 왜 바꿨는지·되돌렸는지는 한 번에 구체적으로 설명한다(파일 이름만 말하지 않는다).
|
||||
|
||||
## 순서
|
||||
1. 관리자 서버: `curl -s http://localhost:5175/api/targets` 에 `king` 이 있어야 한다. 없으면 `admin/` 에서 백그라운드로 켠다 (`admin/AGENTS.md` '켜기', 킹서버 키는 `ssh King_admin` 의 `~/proj/o2o-weather/.env` `ADMIN_API_KEY`, 값은 출력하지 않는다).
|
||||
2. 예보: `curl -s "https://weather.o2o.kr/v1/weather/today?region=1114000000"` 의 `day` 가 오늘인지 보고 slots 의 기온·하늘·비 확률을 적어 둔다.
|
||||
3. 기획 → **오케이 대기**: 그림·카드를 만들기 전에 문구만 기획한다. `cd admin && mkdir -p out/<날짜> && node -e 'require("fs").writeFileSync(process.argv[2], JSON.stringify({template:"tarot",topic:process.argv[1],feedback:"",current:{}}))' "<주제>" out/<날짜>/plan-req.json && curl -s -X POST http://localhost:5175/api/plan -H 'Content-Type: application/json' --data-binary @out/<날짜>/plan-req.json > out/<날짜>/tarot-plan.json` (주제가 없으면 `""`. 한글이 윈도우 명령줄에서 깨지지 않게 요청 본문은 파일로 보낸다. 다시 기획할 때도 같은 파일에 feedback·current 를 넣어 보낸다). 결과 `copy` 를 2의 예보와 대조하고(숫자·하늘 묘사·예보에 없는 사실), 틀리면 `feedback` 에 실제 수치를 넣고 `current` 에 직전 copy 를 넣어 한 번 다시 기획한다. 그다음 사용자에게 주제·표지 질문·카드 3장(각 이름)·장마다 리딩·행운 포인트·캡션 해시태그를 그대로 보여 주고 AskUserQuestion 으로 오케이를 받는다. 고치라고 하면 그 말을 `feedback` 으로 다시 기획해 다시 보여 준다. 오케이 전에는 그림을 만들지 않는다.
|
||||
4. 만들기(승인 대기로 저장까지): 오케이받은 copy 에 `theme` 를 넣어 base64url 로 바꾸고(`node -e 'const c=JSON.parse(require("fs").readFileSync("out/<날짜>/tarot-plan.json","utf8")).copy;c.theme="sky";console.log(Buffer.from(JSON.stringify(c)).toString("base64url"))'`) `VITE_API_BASE_URL=https://weather.o2o.kr ADMIN_URL=http://localhost:5175 npm run card -- tarot --copy <값> --post-wait` 로 그 문구 그대로 그린다(`--topic`·`--feedback` 을 주면 다시 기획되니 넣지 않는다). 오늘 고른 카드 코드(c1·c2·c3)를 `out/tarot-history.json` 의 오늘 날짜에 더한다(다음 7일 다른 카드가 나오게, card.mjs 기획 때 하던 일). 출력 끝의 `카드 N` 번호를 적어 둔다. 빠진 각 카드 그림은 Codex 가 자동으로 만든다(장당 1~5분). "일부 그림을 못 만들어" 가 나오면 멈추고 보고한다. 크롬이 한 장에서 45초 넘게 멈추면 `card.mjs` 가 그 장만 한 번 다시 찍는다(또 멈추면 멈추고 보고한다).
|
||||
5. 검수(예외 없음): 만든 JPEG 5장을 **한 장씩 원본 크기로** Read 로 연다. 축소 시트로 판단하지 않는다. 볼 것: 글자 잘림·겹침, 카드 그림 누락, 그림 속 사람·글자, 리딩 문구의 수치·하늘 묘사가 예보와 맞는지, 말투(3문장, "~할 수 있어요" 남발·덕담 금지). 틀리면 고치고 다시 만들어(4번, 새 카드 번호) 다시 본다. 못 고치면 올리지 말고 보고한다.
|
||||
6. 올리기(검수 통과 시): `curl -s -X POST "http://localhost:5175/api/cards/<카드 N>/publish?target=king"` → `post_id` 확인, 이어서 `curl -s -X POST --max-time 600 "http://localhost:5175/api/cards/<카드 N>/instagram?target=king"` → `ig_media_id`. 인스타 링크는 킹서버 토큰으로 본다: `ssh King_admin 'set -a; . ~/proj/o2o-weather/.env; set +a; curl -s "https://graph.instagram.com/v24.0/<ig_media_id>?fields=permalink&access_token=$INSTAGRAM_ACCESS_TOKEN"'` (토큰 값은 출력하지 않는다).
|
||||
7. 새 그림이 생겼으면 `git add admin/src/assets/gak-card admin/src/assets/tarot-bg` 후 `feat: <날짜> 각 카드 그림(…)` 로 커밋한다 (Claude 서명 없이). `TODO.md` 인스타 홍보 표에 한 줄(카드·포스트 번호, 인스타 링크) 적고 `docs:` 커밋, `git push origin sns:main`.
|
||||
8. 보고(한국어, 짧게): 인스타 링크, 킹서버 카드·포스트 번호, 새 그림 수, 검수에서 고친 것, 남은 이슈.
|
||||
@@ -0,0 +1,62 @@
|
||||
---
|
||||
description: 날씨각(weather.o2o.kr) 구글·네이버 검색 노출 매일 점검 + 다음 할 일 제안
|
||||
---
|
||||
|
||||
weather.o2o.kr 검색 노출을 점검하고, 어제와 비교해 다음 할 일을 제안한다.
|
||||
|
||||
## 1. 검색어
|
||||
|
||||
날씨각 · 오늘 날씨 · 분당구 오늘 날씨 · 분당 날씨 · 성남 오늘 날씨 · 마포구 오늘 날씨 · 마포구 날씨 · 강남구 오늘 날씨 · 세차하기 좋은 날 · 빨래하기 좋은 날 · 오늘 노을 시간 · 이번 주말 날씨 · 세차각
|
||||
|
||||
$ARGUMENTS 가 있으면 위 목록에 더한다.
|
||||
|
||||
## 2. 구글 (Chrome 확장)
|
||||
|
||||
- google.com 탭을 하나 열고, 그 탭에서 `fetch('/search?hl=ko&gl=kr&num=20&q=…')`로 검색어마다 결과 HTML을 받는다. 요청 사이 1.5초 쉰다.
|
||||
- `a h3`의 링크를 순서대로 모아 google 도메인을 빼고, 같은 호스트는 한 번만 센다. weather.o2o.kr이 몇 번째 사이트인지, 어느 주소·제목으로 잡혔는지 적는다.
|
||||
- '날씨각' 결과는 사이트 이름(링크 위 이름)도 적는다. 지금은 '에이아이오투오'로 나온다.
|
||||
- `site:weather.o2o.kr` 결과의 주소 목록도 적는다.
|
||||
- 끝나면 연 탭을 닫는다.
|
||||
|
||||
## 3. 네이버 (curl)
|
||||
|
||||
- 브라우저 UA로 `https://search.naver.com/search.naver?query=…`를 받는다. 요청 사이 3초 이상 쉰다.
|
||||
- 응답이 30KB 안팎이고 본문이 비어 있으면 네이버가 막은 것이다. 그 검색어는 "차단"으로 적고 다시 시도하지 않는다.
|
||||
- 외부 링크 호스트를 순서대로 중복 없이 세서 weather.o2o.kr 순서를 적는다(http/https 같은 사이트는 하나로).
|
||||
- `query=site:weather.o2o.kr&where=web`으로 색인된 주소 목록을 적는다.
|
||||
|
||||
## 4. 기록
|
||||
|
||||
- `docs/검색_노출.md` 5장(노출 기록)의 '기록' 표 맨 아래에 오늘 날짜 행을 더한다. 형식은 그 표를 따른다.
|
||||
- 어제 행과 비교해 바뀐 것(새로 잡힘·빠짐·순위 변화·색인 주소 수)을 뽑는다.
|
||||
|
||||
## 5. 원인 분석 (빠짐·순위 하락이 하나라도 있으면 반드시)
|
||||
|
||||
숫자만 보고하고 끝내지 않는다. 왜 그렇게 됐는지 아래를 직접 확인하고, 확인한 것·배제한 것·남은 가설을 나눠 적는다.
|
||||
|
||||
- 페이지 상태: 빠진 주소를 Googlebot·Yeti UA 로 curl 해 상태 코드·title·canonical·robots meta, robots.txt 를 본다.
|
||||
- 렌더 뒤 화면: 구글은 JS 실행 뒤 HTML 로 색인한다. 헤드리스 Chrome(`--headless=new --virtual-time-budget=20000 --dump-dom`, Googlebot UA)으로 렌더해 h1·검색어 문구·자주 묻는 질문이 남는지 센다.
|
||||
- 색인 여부: 구글·네이버 `site:weather.o2o.kr <지역>` 에 그 주소가 있는지. 없으면 색인 문제, 있으면 순위 문제.
|
||||
- 봇 방문: `ssh King_admin 'docker logs --since 72h o2o-weather-frontend-1'` 에서 Googlebot·Yeti 가 그 주소를 받았는지·상태 코드.
|
||||
- 바뀐 것: 직전 측정 이후 `git log --since=<직전 측정일> -- frontend backend` 로 그 페이지 화면·제목·사이트맵에 닿은 커밋을 찾는다. 배포 시각과 측정 시각의 앞뒤를 맞춘다.
|
||||
- 사이트 안 경쟁: `site:` 결과에 같은 검색어를 두고 겹치는 다른 주소(예: /shorts/*)가 있는지.
|
||||
- 측정 잡음: 직전 순위가 구글 2p·네이버 10위 밖처럼 경계였는지, 직전 측정이 실패(`?`)였는지.
|
||||
|
||||
## 6. 대안 제시
|
||||
|
||||
- 원인마다 고칠 방법 1~3개와 추천 하나, 각 방법의 근거(공식 문서 또는 위에서 확인한 사실)와 예상 효과·단점을 쓴다.
|
||||
- 고칠지는 AskUserQuestion 으로 묻고, 고르면 그대로 고친다.
|
||||
|
||||
## 7. 다음 할 일 제안
|
||||
|
||||
- 근거는 공식 문서만 쓴다: `docs/검색_노출.md` 4장(구글 검색 정책), 구글 Search Central, 네이버 서치어드바이저 가이드. 문서에 없는 건 "문서에 없음"이라 쓰고, 판단·추정은 따로 표시한다.
|
||||
- 같은 페이지를 매일 수집 요청하지 않는다(네이버: 반영에 1일~몇 주, 매일 반복 불필요).
|
||||
- 바꾼 뒤 결과는 몇 주 단위로 본다(구글: 변경 반영에 몇 시간~몇 달). 하루 변화로 원인을 단정하지 않는다.
|
||||
- 코드·문구 수정이 필요하면 고치지 말고 제안만 하고, 결정이 필요한 건 `TODO.md`에 적는다.
|
||||
|
||||
## 8. 보고 (채팅, 짧게)
|
||||
|
||||
- 바뀐 것 3줄 이내
|
||||
- 검색어별 구글/네이버 순서 (없음·차단 포함)
|
||||
- 빠짐·하락의 원인 분석(확인한 것·배제한 것·가설)과 대안·추천
|
||||
- 다음 할 일 1~3개 (근거 출처 포함)
|
||||
@@ -0,0 +1,58 @@
|
||||
---
|
||||
description: 이번주 코디 숏폼 영상(여자 → 남자 → 날씨각 마무리, 15초)을 날씨각 가상 모델과 무신사 스냅으로 만들어 검토받고 인스타 릴스·YouTube Shorts에 올린다
|
||||
argument-hint: "<나이대> 20·30·40 [스타일] minimal·casual·semi·formal·street (비우면 casual)"
|
||||
---
|
||||
|
||||
이번주 코디 영상을 만들어 올린다. 인자: `$ARGUMENTS` — 첫 번째는 나이대(`20`·`30`·`40`, 필수), 두 번째는 코디 스타일(minimal=꾸안꾸, casual, semi=오피스, formal, street, 비우면 casual).
|
||||
나이대별로 쓰는 것: `20`·`30` → 20대 모델(models.json age 20s)·무신사 20-30대 스냅(`f20`·`m20`)·타이틀 "20대"/"30대", `40` → 40대 모델(40s)·무신사 40대~ 스냅(`f40`·`m40`)·타이틀 "40대~"(`--age 40~`).
|
||||
작업 폴더 `W` = `admin/nalssigak/runs/<오늘 날짜>-<나이대>/` (커밋하지 않는다). 스크립트는 `admin/nalssigak/scripts/`, 템플릿은 `admin/nalssigak/templates/`.
|
||||
승인 지점(5·10번)에서는 반드시 멈추고 사용자 답을 기다린다. 업로드는 사용자가 "올려"라고 한 뒤에만 한다(올린 건 되돌릴 수 없다).
|
||||
|
||||
## 꼭 지킬 것
|
||||
- 얼굴은 `admin/nalssigak/models/` 의 가상 모델만 쓴다. 연예인·유명인·남의 사진, 그 사람을 닮게 만든 이미지는 사용자가 친구·본인 사진이라고 해도 기준 이미지로 쓰지 않는다. 새 모델이 필요하면 `models/prompts/` 처럼 글로만 만들고("ORIGINAL FICTIONAL … must not resemble any real celebrity"), 시안을 보여 주고 고르게 한다.
|
||||
- 올리는 문구(YouTube 제목·설명·태그, 인스타 캡션·해시태그, 말풍선)에 무신사 상품명·브랜드명·'무신사'·스냅 주소를 쓰지 않는다. 옷은 일반 이름(색·소재·종류)으로만 말한다. 예: `우먼즈 신세틱 스웨이드 블루종 재킷 [다크 브라운]` → `다크 브라운 스웨이드 블루종`, `BELLA QUILTED MARYJANES` → `블랙 메리제인 플랫`.
|
||||
- 옷은 무신사 인기 스냅에 태그된 상품만 쓴다(`admin/scripts/snap.mjs`). 에이블리는 공개 API 가 없어 쓸 수 없다. 요청에 있어도 처음에 말하고 무신사로 만든다.
|
||||
- 계절감: 아침 체감과 낮 최고 평균이 12도 미만(구간 chilly 이하)이면 두 사람 다 겉옷이 있어야 하고, 반팔 단독·미니·뮬·샌들은 안 된다(미니는 검은 스타킹과 롱부츠를 함께 신으면 된다). 여자 코디는 카고·백팩·등산화·바람막이 같은 고프코어를 피한다.
|
||||
- 움직임: 춤추지 않는다. 원래 자세에서 바람에 머리·옷이 날리고 손인사·머리 넘기기·옷깃 만지기 같은 작은 동작 하나만(`templates/actions.json`). 손가락 모양 동작(하트·V·OK·엄지)은 영상에서 다른 손 모양이 되니 쓰지 않는다. 낙엽 떨어지는 효과는 넣지 않는다. 여자는 키가 커 보이지 않게(158cm 정도, 머리:몸 1:7, 눈높이 카메라).
|
||||
- 화면: 프로필 그리드는 가운데 3:4(위 240 ~ 아래 1680), 피드는 4:5(위 285 ~ 아래 1635)만 보여 준다. 둥근 영상 창(132,240 · 816×1440)이 3:4 를 채우고 바깥은 같은 영상을 흐리게 깔아 빈 곳이 없게 한다. 칩·제목·자막은 창 왼쪽 아래, 4:5 안에 둔다. `templates/frame.html`·`title.html`·`bubble.html`·`scripts/compose.sh` 의 창 위치를 바꾸지 않는다.
|
||||
- 킹서버: 영상은 날씨각 전용 컨테이너 `nalssigak-ltx`(GPU 0)로만 만든다. menusong 서비스·파일은 건드리지 않는다. `server.sh down` 이 끌 때 서버의 입력·결과 파일을 지운다.
|
||||
- 비밀: OAuth·토큰은 `~/.config/nalssigak/`, 인스타 토큰은 킹서버 `.env`. 값을 출력하거나 저장소에 넣지 않는다.
|
||||
|
||||
## 환경 점검 (1번에서 돌리고, 안 되면 해결 방법을 알려 준다)
|
||||
| 점검 | 명령 | 안 될 때 |
|
||||
|---|---|---|
|
||||
| 기본 도구 | `${PYTHON:-python3} --version; node --version; ffmpeg -version; node -e "import('./admin/scripts/bin.mjs').then(m=>console.log(require('fs').existsSync(m.CHROME)?'chrome ok':'chrome 없음: '+m.CHROME))"` | 없는 것을 설치한다. 맥 `brew install ffmpeg webp`, 윈도우는 `admin/AGENTS.md` '윈도우'(winget 으로 Git·Node·Python·ffmpeg·Chrome). 크롬이 다른 곳에 있으면 `CHROME_PATH`. |
|
||||
| Codex(사진) | `codex --version` | Codex CLI 를 설치하고 `codex login`. 사용 한도 초과면 다음 날 다시. |
|
||||
| 관리자 서버(인스타) | `curl -s http://localhost:5175/api/targets` 에 `king` | `admin/` 에서 `npm install` 후 `admin/AGENTS.md` '켜기'대로 백그라운드로 켠다(킹서버 키는 `ssh King_admin` 의 `~/proj/o2o-weather/.env` `ADMIN_API_KEY`, 값은 출력하지 않는다). |
|
||||
| 킹서버 접속 | `ssh -o BatchMode=yes King_admin true` | `~/.ssh/config` 에 `Host King_admin`(HostName 172.30.1.36, User o2oadmin, ProxyJump Confluence)과 키가 있어야 한다. 사내망·키는 사용자가 확인. |
|
||||
| 영상 서버 | `admin/nalssigak/scripts/server.sh status` | 이미지 `jw/comfyui-ltx:latest`·모델 `/mnt/data2/dir/jw_playground/LTX-2.5` 가 서버에 있어야 한다(없으면 서버 담당자에게). GPU 0 을 menusong 이 쓰면 기다리거나 `OOTD_GPU=1`. |
|
||||
| YouTube 앱 | `ls ~/.config/nalssigak/client_secret.json` | Google Cloud 의 YouTube Data API v3 프로젝트에서 OAuth 클라이언트(데스크톱 앱) JSON 을 받아 그 경로에 두고 `chmod 600`. |
|
||||
| YouTube 로그인 | `ls ~/.config/nalssigak/youtube_token.json` | `${PYTHON:-python3} admin/nalssigak/scripts/youtube.py auth` → 사용자가 채널 계정으로 로그인. 'access_denied' 면 Google 인증 플랫폼 → 대상 → 테스트 사용자에 그 계정을 추가. 업로드 때 `invalid_grant` 면 토큰 만료(테스트 앱은 7일)라 auth 를 다시 하고, 앱을 '프로덕션으로 게시'하길 권한다. |
|
||||
| 인스타 토큰 | 킹서버 `.env` 의 `INSTAGRAM_ACCESS_TOKEN`·`INSTAGRAM_USER_ID` 가 있는지(값은 보지 않고 `grep -c`) | 없거나 만료면 `TODO.md` '인스타 연결' 행 순서대로 다시 발급해 킹서버 `.env` 에 넣는다(사용자 작업). |
|
||||
|
||||
## 순서
|
||||
1. 준비 확인: 아래 '환경 점검' 명령을 모두 돌린다. 안 되는 항목이 있으면 그 항목의 해결 방법을 사용자에게 그대로 알려 주고, 사용자가 할 일(로그인·키 발급 등)이 아니면 직접 고친 뒤 다시 점검한다. 다 통과해야 2번으로 간다.
|
||||
2. 날씨: `curl -s "https://weather.o2o.kr/v1/weather/today?region=1114000000"` 의 `slots` 중 6~21시로 아침(6시)·낮 최고 기온, 비(rain_type≠0 또는 rain_prob≥60), 하늘을 잡는다. 구간은 낮 최고로 hot≥28 · warm≥23 · mild≥17 · cool≥12 · chilly≥9 · cold≥5 · 그 아래 freezing. 배경 문장은 계절·날씨에 맞게 한 줄로(예: 맑은 가을이면 "a sunny clear late-October afternoon on a Seoul tree-lined sidewalk with golden ginkgo trees…", 비 오면 젖은 거리·우산).
|
||||
3. 코디: `cd admin && node scripts/snap.mjs --band <구간> --style <스타일> --out nalssigak/runs/<W 이름>/snaps`. 20·30 은 `f20`·`m20`, 40 은 `f40`·`m40` 을 쓴다. `snaps/picks.json` 의 상품(outer·top·bottom·shoes·bag)을 보고 위 계절감 규칙에 맞는지 본다. 안 맞으면 `--pages 3` 등으로 다시 고른다.
|
||||
4. 사진: `models/models.json` 에서 그 나이대(20·30 → 20s, 40 → 40s) 여자·남자를 하나씩 무작위로 고른다. `templates/photo_prompt.txt` 를 채워 `W/woman_photo.txt`·`W/man_photo.txt` 를 쓰고(옷은 태그된 상품을 색·소재·실루엣까지 영어로, 여자는 body_line 에 키 규칙), 둘을 동시에 만든다:
|
||||
`${PYTHON:-python3} admin/nalssigak/scripts/codex_image.py --prompt-file W/woman_photo.txt --output W/woman_photo.png --image admin/nalssigak/models/<id>.jpg --image W/snaps/f20/snap.jpg --image W/snaps/f20/goods-<n>.jpg …` (남자도 같게, 1~2분).
|
||||
5. 사진 검수 → **승인 대기**: 모델 기준 사진과 나란히 붙인 시트를 열어 보여 준다. 볼 것: 같은 얼굴인지, 태그된 옷이 다 있고 없는 옷이 없는지, 글자·워터마크, 전신(머리~신발, 신발 아래 여백), 손, 키 비율. 사용자가 고치라고 하면 그 사진만 다시 만든다.
|
||||
6. 동작 설명: 동작은 사람마다 무작위로 두 개를 고른다 — `${PYTHON:-python3} admin/nalssigak/scripts/actions.py --who woman --has outer,bag` (그 사람에게 겉옷·가방이 있을 때만 `--has` 에 넣는다, 남자는 `--who man`). 출력 첫 줄을 `W/woman_a.txt`, 둘째 줄을 `W/woman_b.txt` 의 `{action}` 에 그대로 넣어 `templates/motion_prompt.txt` 를 채운다(남자는 `W/man_a.txt`·`W/man_b.txt`). 손가락 모양 동작을 따로 덧붙이지 않는다.
|
||||
7. 클립: `admin/nalssigak/scripts/clips.sh W` (4초 4개, 하나에 4~5분, 총 20분 안팎). GPU 0 을 menusong 이 쓰고 있다며 시작하지 않으면 기다렸다 다시 하거나 비어 있으면 `OOTD_GPU=1` 로 한다.
|
||||
8. 클립 검수: 클립마다 `ffmpeg -vf "select='eq(n\,12)+eq(n\,36)+eq(n\,60)+eq(n\,84)',tile=4x1"` 로 얼굴을 확대해 본다. 눈 감음·고개 젖힘·얼굴 바뀜·손가락 뭉개짐·카메라 움직임이 있으면 그 클립만 `clips.sh W woman_b` 처럼 다시 만든다(최대 2번).
|
||||
9. 합성:
|
||||
- 타이틀: `${PYTHON:-python3} admin/nalssigak/scripts/render.py title --age <20|30|40~> --who 여성 --label <코디|하객룩 …> --out W/title_woman.png` (남성도). 제목은 '이번주 20대 / 여성 하객룩' 두 줄로 창 왼쪽 아래에 얹힌다.
|
||||
- 자막 4개: 그날 옷에서 한 줄로 짧게(20자 안팎, 옷 이름은 `*강조*`). 문구는 목록으로 먼저 확인받는다. 제목 아래 같은 자리(창 왼쪽, 발 바로 위 다리 높이)에 차례로 나오고, 창 오른쪽(948px)을 넘으면 문구를 줄인다. 자막·제목이 신발을 가리면 안 된다.
|
||||
`${PYTHON:-python3} admin/nalssigak/scripts/render.py bubble --text "…" --out W/bubbles/w1.png`, `W/bubbles.txt` 에 `w1 0.8 3.0` · `w2 3.4 6.1` · `m1 7.1 9.4` · `m2 9.8 12.4`.
|
||||
- 음악: `${PYTHON:-python3} admin/nalssigak/scripts/music.py` 가 `admin/nalssigak/music.json` 에서 최근 4편(`runs/*/publish.md` 의 Music 줄)에 쓴 곡을 빼고 무작위로 골라, 캐시에 없으면 내려받고 `mp3 경로 credit` 을 출력한다. 그 경로를 아래 compose.sh 에, credit 을 publish.md 에 쓴다. 같은 날 여러 나이대를 만들면 편마다 다시 돌린다. 새 곡은 Mixkit Stock Music Free License 곡을 후보로 영상에 입혀 들려 주고 사용자가 고른 것만 넣는다.
|
||||
- `admin/nalssigak/scripts/compose.sh W <music.py 가 출력한 mp3 경로>` → `W/final.mp4` (15초).
|
||||
- 확인: `admin/nalssigak/scripts/sheet.sh W/final.mp4 W/sheet.png 1.0 1.9 2.8 3.7 4.7 5.8 7.4 8.3 9.2 10.1 11.1 12.2 13.8` 로 자막·제목이 얼굴을 가리지 않는지 보고, `crop=1080:1440:0:240`(그리드)·`crop=1080:1350:0:285`(피드)로 잘라 칩·제목·자막·머리·신발이 다 보이는지 본다.
|
||||
10. 문구 → **승인 대기**: `W/publish.md` 에 YouTube 제목(`이번주 <나이>대 <계절> 코디 🍂 여자·남자 데일리룩 | 날씨각 #Shorts` 꼴, 나이는 타이틀과 같게 `20대`·`30대`·`40대~` — 40 은 반드시 `40대~`. 제목·설명·인스타 캡션 첫 줄 모두 같다)·설명(사람별 옷 목록 — 옷 이름은 '다크 브라운 스웨이드 블루종'·'와이드 치노 팬츠'처럼 색·소재·종류로만 쓴다, weather.o2o.kr, "※ 영상 속 인물은 AI로 만든 가상 모델이에요." 와 음악 credit, 해시태그)·태그, 인스타 캡션(첫 줄이 제목, 프로필 링크 → weather.o2o.kr, 토스 '날씨각' 검색 안내, AI 표기, 해시태그)을 쓴다. 해시태그는 나이대·스타일·계절에 맞춘다. 영상을 열고 문구 전체를 보여 준 뒤 "올려" 를 기다린다.
|
||||
11. 올리기(승인 후):
|
||||
- 인스타: 1초 프레임을 `W/cover.jpg` 로 뽑고, `POST http://localhost:5175/api/reel?target=king` 에 `{title, caption, hashtags, video(mp4 base64, 30MB 이하), cover(JPEG base64)}` 를 node 로 파일을 읽어 fetch 로 보낸다(명령줄에 base64 를 넣지 않는다, 윈도우 명령줄 길이 제한) → `reel_id`, 이어서 `POST http://localhost:5175/api/reel/<reel_id>/instagram?target=king` (`--max-time 600`) → `ig_media_id`. 링크는 `GET https://graph.instagram.com/v24.0/<ig_media_id>?fields=permalink,media_product_type` 를 킹서버 토큰으로 본다(`ssh King_admin 'set -a; . ~/proj/o2o-weather/.env; set +a; curl -s "…&access_token=$INSTAGRAM_ACCESS_TOKEN"'`, 출력하지 않는다). `Application request limit reached` 면 `me/media?fields=permalink,caption,timestamp&limit=1` 로 이미 올라갔는지 보고, 없을 때만 다시 올린다.
|
||||
- YouTube: `W/youtube_meta.json` 에 `{title, description, tags, privacy}` 를 쓰고 `${PYTHON:-python3} admin/nalssigak/scripts/youtube.py upload W/final.mp4 W/youtube_meta.json`. 토큰이 없거나 만료면 `youtube.py auth` 로 사용자에게 채널 계정 로그인을 받는다(계정이 Google 인증 플랫폼 테스트 사용자여야 한다).
|
||||
- privacy: `~/.config/nalssigak/youtube_public` 파일이 있으면 `"public"`(API 감사 통과 뒤), 없으면 `"private"`. 감사 전에는 절대 public 으로 보내지 않는다(비공개로 잠길 수 있다).
|
||||
- 바로 반영: 비공개로 올렸으면 출력의 `studio` 주소를 브라우저로 열고(맥 `open`, 윈도우 `start "" <주소>`), 사용자에게 "공개 범위 → 공개 → 저장" 만 하면 된다고 알린다. 사용자가 공개로 바꿨다고 하면 `https://youtube.com/shorts/<id>` 링크를 다시 알려 주고 마친다.
|
||||
- public 으로 보냈는데 출력에 경고(요청과 다른 공개 상태)가 나오면 감사가 풀린 게 아니므로 `youtube_public` 파일을 지우라고 알리고, 스튜디오에서 상태를 확인하게 한다.
|
||||
- 감사 신청은 YouTube API Services 감사·할당량 양식(https://support.google.com/youtube/contact/yt_api_form)으로 사용자가 한다.
|
||||
12. 보고(한국어, 짧게): 인스타·YouTube 링크, 쓴 모델·스냅 주소, 검수에서 다시 만든 것, 남은 일(YouTube 는 비공개로 올라가니 스튜디오에서 공개 전환, 인스타는 앱에서 'AI 정보' 라벨 켜기).
|
||||
@@ -0,0 +1,75 @@
|
||||
---
|
||||
name: ga-report
|
||||
description: 날씨각 GA4 와 운영 DB 숫자로 지난 기간 사용 현황을 분석해 바뀐 것·원인·다음 할 일을 짧게 보고한다
|
||||
argument-hint: "<일수> 예) 7 · 28 (비우면 7일)"
|
||||
---
|
||||
|
||||
날씨각(weather.o2o.kr·토스판) 사용 현황을 GA4 와 운영 DB 로 보고, 바로 앞 같은 길이 기간과 비교해 판단과 다음 할 일을 낸다. 인자 `$ARGUMENTS` = 일수(비우면 7). 기간은 어제까지(오늘은 하루가 안 끝나 뺀다). 아래 경로는 모두 저장소 루트 기준이다.
|
||||
|
||||
## 0. 처음 한 번 (PC마다)
|
||||
|
||||
- GA 키: 팀에서 받은 JSON 을 저장소 원본 폴더의 `secrets/ga-key.json` 으로 둔다(`secrets/` 는 `.gitignore` 라 커밋되지 않는다). 키는 사람마다 따로 발급한다(GCP `nalssigak` → 서비스 계정 `nalssigak-ga` → 키 추가). 키를 메신저·메일·git 으로 다시 돌리지 않는다.
|
||||
- `uv` 가 없으면 `brew install uv`.
|
||||
- 키가 없으면 1번 스크립트가 "GA 키가 없어요" 로 멈춘다. 그때는 사용자에게 키를 받으라고 알리고 멈춘다.
|
||||
- (선택) Claude Code 에서 GA 를 직접 묻고 싶으면 `claude mcp add analytics-mcp --scope user -e GOOGLE_APPLICATION_CREDENTIALS=<저장소 원본 폴더>/secrets/ga-key.json -e GOOGLE_CLOUD_PROJECT=nalssigak -- uvx analytics-mcp` 후 Claude Code 를 다시 시작한다.
|
||||
|
||||
## 1. GA4 받기
|
||||
|
||||
```
|
||||
uvx --from analytics-mcp python .claude/skills/ga-report/ga_pull.py <일수> > /tmp/ga_report.json
|
||||
```
|
||||
|
||||
- 키는 스크립트가 저장소 원본 폴더의 `secrets/ga-key.json` 에서 찾는다(워크트리에서 불러도 같음).
|
||||
- 속성 `558046406`(날씨각 웹, 계정 AIO2O). 서비스 계정 `nalssigak-ga@nalssigak.iam.gserviceaccount.com`, 권한은 GA 뷰어뿐. 키 파일 내용은 열거나 옮기지 않는다.
|
||||
- 결과 JSON: 값마다 `[이번, 앞 기간]`. `totals`·`daily`·`platform`·`host`·`channels`·`sources`·`landing`·`pages`·`devices`·`new_vs_returning`·`cities`·`events`·`gak_views`·`region_changes`, 퍼널 4개(`funnel_saju`·`funnel_game`·`funnel_install`·`funnel_login`, 이번 기간만), `cohorts`(첫 방문 주별 재방문).
|
||||
- `errors` 가 비어 있지 않으면 그 항목은 못 받은 것이다. 보고에 적고 넘어간다.
|
||||
- 더 파고들 게 있으면 `analytics-mcp` MCP 도구(`run_report`·`run_funnel_report`·`run_realtime_report`)를 쓴다. 이 세션에 도구가 없으면 같은 키로 `google.analytics.data_v1beta` 를 직접 부른다.
|
||||
- 이벤트 뜻은 저장소 `docs/이벤트_추적.md` 이벤트 목록을 기준으로 읽는다.
|
||||
|
||||
## 2. 운영 DB 숫자 (읽기만, 집계만)
|
||||
|
||||
GA 는 로그인·레벨·사주 저장을 모른다. 같은 기간을 운영 DB 에서 센다. 개인 값(닉네임·아이디·생년월일)은 뽑지 않는다.
|
||||
|
||||
```
|
||||
ssh King_admin 'docker exec -i o2o-weather-postgres-1 sh -c "psql -U \$POSTGRES_USER -d \$POSTGRES_DB"' <<'SQL'
|
||||
\set s '<시작 YYYY-MM-DD>'
|
||||
\set e '<끝 YYYY-MM-DD>'
|
||||
SELECT provider, count(*) AS signups FROM users WHERE NOT deleted AND (created_at AT TIME ZONE 'Asia/Seoul')::date BETWEEN :'s' AND :'e' GROUP BY provider ORDER BY provider;
|
||||
SELECT action, count(*) AS n, count(DISTINCT user_id) AS users FROM point_log WHERE day BETWEEN :'s' AND :'e' AND action <> 'admin' GROUP BY action ORDER BY n DESC;
|
||||
SELECT count(DISTINCT user_id) AS active_earners FROM point_log WHERE day BETWEEN :'s' AND :'e' AND action <> 'admin';
|
||||
SELECT lv, count(*) FROM (SELECT CASE WHEN p >= 1000 THEN 7 WHEN p >= 700 THEN 6 WHEN p >= 400 THEN 5 WHEN p >= 200 THEN 4 WHEN p >= 100 THEN 3 WHEN p >= 30 THEN 2 ELSE 1 END AS lv
|
||||
FROM (SELECT u.user_id, COALESCE(sum(l.points) FILTER (WHERE l.action <> 'admin'), 0) AS p FROM users u LEFT JOIN point_log l USING (user_id) WHERE NOT u.deleted GROUP BY u.user_id) t) x GROUP BY lv ORDER BY lv;
|
||||
SELECT count(*) FILTER (WHERE birth_date IS NOT NULL) AS birth_saved, count(*) AS users FROM users WHERE NOT deleted;
|
||||
SQL
|
||||
```
|
||||
|
||||
- provider: 1 아이디, 2 구글, 3 토스. 앞 기간도 같은 쿼리로 센다.
|
||||
- `point_log` 의 `action='admin'` 은 관리자가 레벨을 올려 준 것이라 늘 뺀다. 레벨 경계는 `backend/services/level_service.py` `LEVELS` 를 따른다(바뀌었으면 쿼리도 맞춘다).
|
||||
|
||||
## 3. 그 기간에 바뀐 것
|
||||
|
||||
`git log origin/main --first-parent --since=<시작> --until=<끝+1일> --format='%ad %s' --date=short` 로 배포된 변화를 뽑는다. 숫자 변화와 날짜가 겹치는 변화를 후보 원인으로만 적는다.
|
||||
|
||||
## 4. 읽는 규칙
|
||||
|
||||
- **결론부터, 판단으로.** 숫자를 늘어놓지 말고 "무엇이 좋아졌고 나빠졌는지 → 왜 그렇게 보는지(근거 숫자) → 그래서 할 일" 순서로 쓴다. 전제에서 결론까지 고리를 빠짐없이 적는다.
|
||||
- **작은 수는 사람 수로.** 한 칸이 30명 미만이면 비율(전환율·참여율)로 말하지 않고 "12명 중 3명"처럼 적는다. 앞 기간이 10명 미만이면 증감 %를 쓰지 않는다.
|
||||
- **우리 팀 트래픽을 가린다.** 회사가 성남(분당)이라 `cities` 의 Seongnam-si, `region_changes` 에서 소수가 수십 번 바꾼 지역(예: 분당구 108번·7명)은 팀 테스트일 가능성이 크다. 그 몫을 빼고 봤을 때도 결론이 같은지 함께 적는다. 추정이면 "추정"이라고 표시한다.
|
||||
- **한 기간 변화로 원인을 단정하지 않는다.** 배포·홍보(인스타·검색)와 날짜가 겹치면 "후보"로 두고, 2기간 이상 같은 방향일 때만 원인이라고 쓴다.
|
||||
- **퍼널은 개발 서버 이벤트가 섞여 있다**(퍼널 API 에 호스트 거름을 안 걸었다). 큰 그림만 보고, 단계 사이 사람 수가 1~2명이면 판단하지 않는다.
|
||||
- **못 보는 것은 못 본다고 쓴다.** 지금 GA 맞춤 측정기준은 `gak_name`·`platform`·`region_name` 셋뿐이라, `today_icon` 의 `icon`·`sheet_open` 의 `sheet`·`saju_view` 의 `score` 같은 값별 나눔은 GA 에서 안 나온다. 필요하면 "GA4 관리 → 맞춤 정의에 ○○ 등록"을 할 일로 낸다(등록 전 데이터는 소급 안 됨).
|
||||
- `platform` 이 `(not set)` 인 몫은 그 값이 붙기 전 이벤트(자동 수집 `page_view`·`session_start` 등)다. 웹·토스 비교는 `host`(weather.o2o.kr vs nalssigak.apps.tossmini.com)로 본다.
|
||||
|
||||
## 5. 기록
|
||||
|
||||
- 저장소 `docs/이벤트_추적.md` 맨 아래 `## 분석 기록` 표(없으면 만든다: 날짜 · 기간 · 활성 사용자(앞 기간) · 신규 · 가입(DB) · 바뀐 것 · 할 일)에 한 줄 더한다.
|
||||
- 결정이 필요한 것(맞춤 측정기준 등록, 내부 트래픽 필터, 기능 손보기)은 `TODO.md` 에 `[결정 필요]` 행으로 적는다.
|
||||
- main 에 바로 커밋하지 않는다. 작업 브랜치에서 커밋해 main 에 합친다. 커밋은 `docs: <날짜> GA 분석 — <한 줄>`.
|
||||
- 코드·문구는 고치지 않는다. 제안만 한다.
|
||||
|
||||
## 6. 보고 (채팅, 짧게)
|
||||
|
||||
1. **결론 3줄 이내**: 이번 기간 핵심 변화와 그 판단.
|
||||
2. **바뀐 것 (앞 기간 대비)**: 사용자·신규·재방문, 유입 경로, 기능별 사용(사주·게임·오늘 한 장·쇼츠·단풍·동네 이야기·각 상세), 가입·레벨(DB). 기능마다 한 줄, 사람 수로.
|
||||
3. **다음 할 일 1~3개**: 무엇을 · 왜(근거 숫자) · 기대 효과. 측정이 안 돼서 판단 못 한 건 "측정 먼저"로 낸다.
|
||||
4. 못 받은 항목(`errors`)·못 보는 것이 있으면 한 줄.
|
||||
@@ -0,0 +1,143 @@
|
||||
"""날씨각 GA4 숫자를 한 번에 받아 JSON 으로 낸다. 이번 기간과 바로 앞 같은 길이 기간을 함께 받는다.
|
||||
|
||||
실행: uvx --from analytics-mcp python .claude/skills/ga-report/ga_pull.py [일수]
|
||||
키는 저장소 원본 폴더의 secrets/ga-key.json (워크트리에서 불러도 원본 폴더 것을 쓴다). GOOGLE_APPLICATION_CREDENTIALS 가 있으면 그걸 쓴다.
|
||||
개발 서버(localhost 등)에서 나간 이벤트는 모두 뺀다.
|
||||
"""
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from datetime import date, timedelta
|
||||
|
||||
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS"):
|
||||
common = subprocess.run(["git", "rev-parse", "--path-format=absolute", "--git-common-dir"], cwd=os.path.dirname(os.path.abspath(__file__)),
|
||||
capture_output=True, text=True, check=True).stdout.strip()
|
||||
key = os.path.join(os.path.dirname(common), "secrets", "ga-key.json")
|
||||
if not os.path.exists(key):
|
||||
sys.exit(f"GA 키가 없어요: {key} (팀에서 받은 키 파일을 이 이름으로 두세요)")
|
||||
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = key
|
||||
|
||||
from google.analytics.data_v1alpha import AlphaAnalyticsDataClient
|
||||
from google.analytics.data_v1alpha import types as A
|
||||
from google.analytics.data_v1beta import BetaAnalyticsDataClient
|
||||
from google.analytics.data_v1beta.types import (
|
||||
CohortSpec, Cohort, CohortsRange, DateRange, Dimension, Filter, FilterExpression, FilterExpressionList, Metric, OrderBy, RunReportRequest,
|
||||
)
|
||||
|
||||
PROPERTY = "properties/558046406"
|
||||
DAYS = int(sys.argv[1]) if len(sys.argv) > 1 else 7
|
||||
END = date.today() - timedelta(days=1) # 오늘은 하루가 안 끝나 빼고 어제까지
|
||||
CUR = (END - timedelta(days=DAYS - 1), END)
|
||||
PREV = (CUR[0] - timedelta(days=DAYS), CUR[0] - timedelta(days=1))
|
||||
DEV_HOSTS = ["localhost", "127.0.0.1", "192.168."]
|
||||
|
||||
beta = BetaAnalyticsDataClient()
|
||||
alpha = AlphaAnalyticsDataClient()
|
||||
out: dict = {"days": DAYS, "cur": [str(CUR[0]), str(CUR[1])], "prev": [str(PREV[0]), str(PREV[1])], "errors": []}
|
||||
|
||||
|
||||
def not_dev() -> FilterExpression:
|
||||
return FilterExpression(not_expression=FilterExpression(or_group=FilterExpressionList(expressions=[
|
||||
FilterExpression(filter=Filter(field_name="hostName", string_filter=Filter.StringFilter(match_type=Filter.StringFilter.MatchType.CONTAINS, value=h)))
|
||||
for h in DEV_HOSTS
|
||||
])))
|
||||
|
||||
|
||||
def event_is(name: str) -> FilterExpression:
|
||||
return FilterExpression(filter=Filter(field_name="eventName", string_filter=Filter.StringFilter(value=name)))
|
||||
|
||||
|
||||
def both(a: FilterExpression, b: FilterExpression) -> FilterExpression:
|
||||
return FilterExpression(and_group=FilterExpressionList(expressions=[a, b]))
|
||||
|
||||
|
||||
def report(key: str, dims: list[str], metrics: list[str], limit: int = 30, compare: bool = True, where: FilterExpression | None = None) -> None:
|
||||
"""이번·앞 기간 표. 행마다 {dims..., metric: [이번, 앞]}"""
|
||||
ranges = [DateRange(start_date=str(CUR[0]), end_date=str(CUR[1]), name="cur")]
|
||||
if compare:
|
||||
ranges.append(DateRange(start_date=str(PREV[0]), end_date=str(PREV[1]), name="prev"))
|
||||
try:
|
||||
r = beta.run_report(RunReportRequest(
|
||||
property=PROPERTY, date_ranges=ranges, dimensions=[Dimension(name=d) for d in dims], metrics=[Metric(name=m) for m in metrics],
|
||||
dimension_filter=both(not_dev(), where) if where else not_dev(), limit=limit * 2,
|
||||
order_bys=[OrderBy(metric=OrderBy.MetricOrderBy(metric_name=metrics[0]), desc=True)],
|
||||
))
|
||||
except Exception as e:
|
||||
out["errors"].append(f"{key}: {e}")
|
||||
return
|
||||
rows: dict[tuple, dict] = {}
|
||||
for row in r.rows:
|
||||
vals = [v.value for v in row.dimension_values]
|
||||
rng = vals[-1] if compare else "cur"
|
||||
k = tuple(vals[:len(dims)])
|
||||
item = rows.setdefault(k, {**dict(zip(dims, k)), **{m: [0, 0] for m in metrics}})
|
||||
for m, v in zip(metrics, row.metric_values):
|
||||
item[m][0 if rng == "cur" else 1] = round(float(v.value), 3)
|
||||
out[key] = sorted(rows.values(), key=lambda x: -x[metrics[0]][0])[:limit]
|
||||
|
||||
|
||||
def funnel(key: str, steps: list[tuple[str, str, str | None]]) -> None:
|
||||
"""(단계 이름, 이벤트, page_location 에 들어갈 글자) 순서대로. 이번 기간만"""
|
||||
def step(name: str, event: str, path: str | None) -> A.FunnelStep:
|
||||
f = A.FunnelEventFilter(event_name=event)
|
||||
if path:
|
||||
f.funnel_parameter_filter_expression = A.FunnelParameterFilterExpression(funnel_parameter_filter=A.FunnelParameterFilter(
|
||||
event_parameter_name="page_location", string_filter=A.StringFilter(match_type=A.StringFilter.MatchType.CONTAINS, value=path)))
|
||||
return A.FunnelStep(name=name, filter_expression=A.FunnelFilterExpression(funnel_event_filter=f))
|
||||
try:
|
||||
r = alpha.run_funnel_report(A.RunFunnelReportRequest(
|
||||
property=PROPERTY, date_ranges=[A.DateRange(start_date=str(CUR[0]), end_date=str(CUR[1]))],
|
||||
funnel=A.Funnel(steps=[step(*s) for s in steps]),
|
||||
))
|
||||
except Exception as e:
|
||||
out["errors"].append(f"{key}: {e}")
|
||||
return
|
||||
table = r.funnel_table
|
||||
heads = [h.name for h in table.metric_headers]
|
||||
out[key] = [{"step": row.dimension_values[0].value, **{h: round(float(v.value), 3) for h, v in zip(heads, row.metric_values)}} for row in table.rows]
|
||||
|
||||
|
||||
def cohorts() -> None:
|
||||
"""첫 방문 주별 4개 묶음이 그다음 주들에 몇 명 다시 왔는지"""
|
||||
monday = END - timedelta(days=END.weekday())
|
||||
groups = [Cohort(name=f"week_{i}", dimension="firstSessionDate", date_range=DateRange(
|
||||
start_date=str(monday - timedelta(weeks=i)), end_date=str(monday - timedelta(weeks=i) + timedelta(days=6)))) for i in range(4, 0, -1)]
|
||||
try:
|
||||
r = beta.run_report(RunReportRequest(
|
||||
property=PROPERTY, dimensions=[Dimension(name="cohort"), Dimension(name="cohortNthWeek")], metrics=[Metric(name="cohortActiveUsers")],
|
||||
cohort_spec=CohortSpec(cohorts=groups, cohorts_range=CohortsRange(granularity=CohortsRange.Granularity.WEEKLY, end_offset=3)),
|
||||
))
|
||||
except Exception as e:
|
||||
out["errors"].append(f"cohorts: {e}")
|
||||
return
|
||||
table: dict[str, dict] = {}
|
||||
for g in groups:
|
||||
table[g.name] = {"first_week": g.date_range.start_date}
|
||||
for row in r.rows:
|
||||
c, n = row.dimension_values[0].value, int(row.dimension_values[1].value)
|
||||
table[c][f"week+{n}"] = int(row.metric_values[0].value)
|
||||
out["cohorts"] = list(table.values())
|
||||
|
||||
|
||||
report("totals", [], ["activeUsers", "newUsers", "sessions", "engagedSessions", "engagementRate", "averageSessionDuration", "screenPageViews", "eventCount"])
|
||||
report("daily", ["date"], ["activeUsers", "newUsers", "sessions"], limit=DAYS, compare=False)
|
||||
report("platform", ["customEvent:platform"], ["activeUsers", "sessions", "eventCount"])
|
||||
report("host", ["hostName"], ["activeUsers", "sessions"], limit=10)
|
||||
report("channels", ["sessionDefaultChannelGroup"], ["sessions", "activeUsers", "engagementRate"])
|
||||
report("sources", ["sessionSource", "sessionMedium"], ["sessions", "activeUsers", "engagementRate"], limit=15)
|
||||
report("landing", ["landingPage"], ["sessions", "engagementRate", "averageSessionDuration"], limit=20)
|
||||
report("pages", ["pagePath"], ["screenPageViews", "activeUsers", "userEngagementDuration"], limit=25)
|
||||
report("devices", ["deviceCategory", "operatingSystem"], ["activeUsers", "sessions", "engagementRate"], limit=10)
|
||||
report("new_vs_returning", ["newVsReturning"], ["activeUsers", "sessions", "engagementRate"])
|
||||
report("cities", ["city"], ["activeUsers"], limit=15)
|
||||
report("events", ["eventName"], ["eventCount", "totalUsers"], limit=60)
|
||||
report("gak_views", ["customEvent:gak_name"], ["eventCount", "totalUsers"], limit=15, where=event_is("view_gak"))
|
||||
report("region_changes", ["customEvent:region_name"], ["eventCount", "totalUsers"], limit=15, where=event_is("region_change"))
|
||||
funnel("funnel_saju", [("사주 페이지", "page_view", "/saju"), ("생년월일 넣음", "saju_input", None), ("결과 봄", "saju_view", None)])
|
||||
funnel("funnel_game", [("게임 페이지", "page_view", "/game"), ("첫 판 시작", "game_start", None), ("라운드 깸", "game_round", None), ("끝까지 함", "game_over", None)])
|
||||
funnel("funnel_install", [("설치 카드 봄", "install_banner_view", None), ("설치 누름", "install_click", None), ("설치 완료", "install_done", None)])
|
||||
funnel("funnel_login", [("첫 방문", "first_visit", None), ("창 열기", "sheet_open", None), ("로그인", "login", None)])
|
||||
cohorts()
|
||||
|
||||
print(json.dumps(out, ensure_ascii=False, indent=1))
|
||||
@@ -0,0 +1,14 @@
|
||||
# 저장소 루트를 빌드 대상으로 쓰는 건 frontend 이미지뿐이라 frontend·shared·루트 package 파일만 넘긴다
|
||||
*
|
||||
!package.json
|
||||
!package-lock.json
|
||||
!frontend
|
||||
!shared
|
||||
!mobile/package.json
|
||||
**/node_modules
|
||||
**/dist
|
||||
**/*.log
|
||||
**/.DS_Store
|
||||
**/dist-toss
|
||||
**/*.ait
|
||||
**/.env.toss
|
||||
@@ -5,7 +5,18 @@
|
||||
DATA_GO_KR_SERVICE_KEY=
|
||||
# 행사 수집(7일마다) 완료 알림 — Microsoft Teams Workflows 수신 webhook. 비우면 보내지 않는다.
|
||||
TEAMS_WEBHOOK_URL=
|
||||
# 관리자 도구(admin/)가 카드뉴스를 올릴 때 쓰는 비밀값. 백엔드와 admin 이 같은 값을 쓴다. 비우면 관리자 API 는 막힌다.
|
||||
ADMIN_API_KEY=
|
||||
# 인스타그램 올리기 (프로페셔널 계정 + Meta 앱 'Instagram API with Instagram Login'). 비우면 '인스타에 올리기'가 막힌다.
|
||||
INSTAGRAM_ACCESS_TOKEN=
|
||||
INSTAGRAM_USER_ID=
|
||||
# 인스타가 카드 이미지를 받아 갈 공개 주소
|
||||
PUBLIC_BASE_URL=https://weather.o2o.kr
|
||||
IMAGE_PROXY_HOSTS=tong.visitkorea.or.kr,www.culture.go.kr,culture.seoul.go.kr
|
||||
# 오늘 화면 쇼츠 줄 (YouTube Data API v3 키, console.cloud.google.com/apis/credentials 에서 발급·YouTube Data API v3 만 허용).
|
||||
# 비우면 채널 쇼츠 RSS(키 없음, 최신 15개)로 받는다
|
||||
YOUTUBE_API_KEY=
|
||||
YOUTUBE_CHANNEL_ID=UCWdesmwvHFsnjMUWNcDaA9w
|
||||
|
||||
# ── 백엔드: DB·Redis (네이티브 실행 기준. compose 안에서는 compose.yaml 이 host·port 를 덮어쓴다)
|
||||
DB_HOST=localhost
|
||||
@@ -20,9 +31,18 @@ PORT=9810
|
||||
|
||||
# ── 백엔드: 로그인 토큰 서명 키. 비우면 로그인이 동작하지 않는다
|
||||
# 생성: python -c "import secrets; print(secrets.token_urlsafe(48))"
|
||||
# 구글 로그인 OAuth 클라이언트 ID (console.cloud.google.com/apis/credentials, 웹 애플리케이션)
|
||||
GOOGLE_CLIENT_ID=
|
||||
JWT_ACCESS_SECRET=
|
||||
JWT_REFRESH_SECRET=
|
||||
|
||||
# ── 백엔드: 앱인토스 토스 로그인. 인증서·키는 저장소 최상위 secrets/toss/ 에 두고(커밋 안 함) 컨테이너 안 경로를 적는다
|
||||
# compose 는 secrets/toss 를 backend 의 /run/secrets/toss 에 읽기 전용으로 붙인다
|
||||
TOSS_MTLS_CERT=/run/secrets/toss/nalssigak_public.crt
|
||||
TOSS_MTLS_KEY=/run/secrets/toss/nalssigak_private.key
|
||||
# 연결 끊기 콜백 Basic Auth "아이디:비밀번호" — 콘솔에 넣은 값과 같게. 비우면 콜백을 모두 거절한다
|
||||
TOSS_UNLINK_AUTH=
|
||||
|
||||
# ── 배포(compose): 비우면 로컬 기본값. 킹서버 예: FRONT_PORT=30040, API_BIND=127.0.0.1:9810, PG_BIND=127.0.0.1:5440, REDIS_BIND=127.0.0.1:6390
|
||||
FRONT_PORT=
|
||||
API_BIND=
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# 셸·파이썬 스크립트는 윈도우에서 받아도 LF 로 둔다 (CRLF 면 Git Bash 가 $'\r' 오류를 낸다)
|
||||
*.sh text eol=lf
|
||||
*.py text eol=lf
|
||||
*.mjs text eol=lf
|
||||
@@ -4,6 +4,9 @@
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# npm workspaces 의존성 (frontend·mobile·shared 가 루트 하나를 같이 쓴다)
|
||||
node_modules/
|
||||
|
||||
# Python 바이트코드/캐시
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
@@ -15,6 +18,7 @@ venv/
|
||||
|
||||
# 생성물: python backend/scripts/export_openapi.py 로 다시 만든다
|
||||
backend/openapi.json
|
||||
backend/uploads/
|
||||
|
||||
# 도구 캐시·설정 (impeccable 디자인 도구)
|
||||
.impeccable/
|
||||
@@ -22,4 +26,15 @@ backend/openapi.json
|
||||
# 디자인 도구(impeccable) 캐시
|
||||
.impeccable/
|
||||
|
||||
/zzz
|
||||
/zzz
|
||||
|
||||
# 안드로이드 스튜디오 개인 설정
|
||||
.idea/
|
||||
|
||||
# 루트에 생기는 안드로이드 디버그 빌드 산출물 (소스 없음)
|
||||
/app/build/
|
||||
# 인증서·키: 서버와 각자 PC 에만 둔다 (토스 mTLS 등)
|
||||
secrets/
|
||||
*.pem
|
||||
*.key
|
||||
*.crt
|
||||
@@ -0,0 +1,10 @@
|
||||
# 날씨각 저장소 규칙
|
||||
|
||||
## GA4 이벤트 (모든 기능)
|
||||
|
||||
- 새 기능(페이지·게임·창·버튼 흐름)을 만들거나 바꾸면 같은 작업 안에서 GA4 이벤트를 넣는다. 따로 시키지 않아도 넣는다.
|
||||
1. `frontend/src/lib/analytics.ts` `Events` 타입에 이벤트와 값 추가
|
||||
2. 화면에서 `track(이벤트, 값)` 호출 — 시작·핵심 행동·끝이 잡히게
|
||||
3. `docs/이벤트_추적.md` 이벤트 목록 표에 행 추가
|
||||
- 완료 보고의 검증 결과에 넣은 이벤트 이름을 적는다. GA 없이 "완료"라고 하지 않는다.
|
||||
- 값에 개인정보(아이디·닉네임·생년월일 등)를 넣지 않는다.
|
||||
@@ -0,0 +1,25 @@
|
||||
# Product
|
||||
|
||||
<!-- impeccable:product-schema 1 -->
|
||||
|
||||
## Platform
|
||||
|
||||
web
|
||||
|
||||
## Users
|
||||
|
||||
휴대폰으로 오늘·내일 뭘 할지 정하려는 2040 일반인. 아침이나 외출 전에 잠깐 열어 봐요.
|
||||
|
||||
## Product Purpose
|
||||
|
||||
동네(구) 날씨를 '빨래각·소맥각' 같은 활동 점수로 바꿔 보여 줘요. 피드로 훑어보고 친구에게 보내요.
|
||||
|
||||
## Positioning
|
||||
|
||||
날씨 숫자가 아니라 '지금 ○○하기 좋은지'를 알려 주고, 귀엽고 공유하고 싶은 카드로 보여 줘요.
|
||||
|
||||
## Constraints
|
||||
|
||||
- 모바일 웹 우선(토스 미니앱, 홈 화면 추가).
|
||||
- 로그인은 글쓰기에만 요구해요.
|
||||
- 화면 문구는 반말 없는 '해요'체예요.
|
||||
@@ -0,0 +1,37 @@
|
||||
# 날씨각
|
||||
|
||||
날씨를 보면 오늘 할 일을 알려 주는 서비스. https://weather.o2o.kr
|
||||
|
||||
| 폴더 | 내용 | 문서 |
|
||||
|---|---|---|
|
||||
| `backend/` | FastAPI 백엔드 (날씨·각 점수·피드·카드 API) | `backend/docs/README.md` |
|
||||
| `frontend/` | React 서비스 화면 | `frontend/README.md` |
|
||||
| `admin/` | 관리자: 인스타 카드(날씨 타로·오늘의 코디) 제작 | `admin/AGENTS.md` |
|
||||
| `docs/` | 기획·설계·운영 문서 | 아래 |
|
||||
|
||||
## 인스타 카드 올리기
|
||||
|
||||
Claude Code에서 한 줄:
|
||||
|
||||
```
|
||||
/daily-tarot 건강 운동 ← 날씨 타로 5장
|
||||
/daily-ootd minimal ← 오늘의 코디 4장
|
||||
```
|
||||
|
||||
만들고 검수하고 날씨각 피드·인스타까지 올린 뒤 링크를 보고한다. 자세한 건 [docs/인스타_운영.md](docs/인스타_운영.md) 1장.
|
||||
|
||||
사람이 나오는 영상·카드뉴스는 [`admin/nalssigak/models/`](admin/nalssigak/models/)의 날씨각 가상 모델을 쓴다. 나이대·생김새는 `models.json`, 얼굴을 만든 프롬프트는 `prompts/`에 있다.
|
||||
|
||||
## 주요 문서
|
||||
|
||||
- [서비스 동작 안내](docs/서비스_동작_안내.md) — 날씨를 언제 받고 피드를 어떻게 만드나, 화면별 데이터, 토스판
|
||||
- [점수 계산식](docs/점수_계산식.md) · [각 계산 기준](backend/docs/각_계산기준.md)
|
||||
- [검색 노출](docs/검색_노출.md) — 지역 페이지 구조, 구글 정책, 매일 순위 기록
|
||||
- [인스타 운영](docs/인스타_운영.md) — 카드 올리는 법, 홍보 기획
|
||||
- [이벤트 추적](docs/이벤트_추적.md) (GA4) · [QA 체크리스트](docs/QA_체크리스트.md)
|
||||
- [TODO](TODO.md) — 결정 필요·미해결 항목
|
||||
- 회의록: `docs/meetings/`
|
||||
|
||||
## 배포
|
||||
|
||||
킹서버에서 `./deploy.sh` (init.sql 재실행, docker compose). 운영 `.env`는 서버에 따로 있다.
|
||||
@@ -15,6 +15,93 @@
|
||||
| [x] | 노을 판정 확인 방법·SEO 방식 — 추천안을 아래 [결정 필요] 행에 정리 | 출시 전 | |
|
||||
| [ ] | `release/launch-1008` → main 병합, 킹서버 배포, 시드 재적재·`feed:*` 캐시 삭제, 운영 JWT 비밀키 교체 (운영 영향, 확인 받고) | 출시 | `deploy.sh`, `backend/scripts/load_seed.py` |
|
||||
|
||||
## 월요일 논의 (받은 피드백)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | **[결정 필요]** 사용자 포스팅(인스타식) — 지금 포스트는 스케줄러가 만든 것만 있음. 정할 것: 올릴 수 있는 것(사진·글·각 점수 첨부), 로그인 필수 여부, 피드 노출 위치·순서, 신고·숨김, 사진 저장소 | 피드백. 기존 '커뮤니티' 행과 합쳐 논의 | `backend/services/feed_service.py`, `backend/services/reaction_service.py` |
|
||||
| [ ] | **[결정 필요]** 로그인 없이 좋아요·댓글 — 지금은 좋아요·댓글·댓글 좋아요 모두 로그인 필수, 댓글 보기만 비로그인 가능. 정할 것: 중복 좋아요 막는 기준(기기 ID·IP), 비로그인 댓글 이름 표시(익명 n), 지우기 권한, 도배 방지 | 피드백 | `backend/router/v1/reaction/reaction.py:30`, `:71`, `:87` |
|
||||
| [ ] | **[결정 필요]** 로그인하면 더 되는 것 정의 — 지금 로그인 전용은 저장(북마크)·닉네임·내 정보뿐. 위 두 건이 정해지면 후보: 포스팅, 내 글·댓글 모아 보기, 지역 기억(기기 바뀌어도), 알림 | 피드백 | `backend/router/v1/auth/account.py`, `backend/router/v1/reaction/reaction.py:40` |
|
||||
|
||||
## 10/20 회의 (최미나 담당, `docs/meetings/2026-10-20.md`)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [x] | 오늘의 각을 일반 포스트 크기 카드로 + 공유 (금일 핵심) — 순위 5개 카드, 히어로도 포스트 틀, 보내기만 있음(좋아요·댓글은 서버에 포스트로 저장해야 붙음), TOP 5 띠 뺌 | 10/20 회의 결정 | `frontend/src/b/TodayPage.tsx`, `frontend/src/b/Sheets.tsx` |
|
||||
| [ ] | '+' 버튼 포스팅 → 오늘 피드에 섞기. 이야기 탭 없앰, 피드 위 글쓰기 칸 상시, 사람 글은 운영 포스트 3개마다 1개(방금 쓴 글은 글쓰기 칸 아래). 남은 것: 이미지 올리기, 노출 방식 대표 보고(보고서 https://claude.ai/artifact/A7ELGoAy17cnZXzhuvdF5b 추천은 캐러셀) | 10/20 회의 결정 | `frontend/src/b/talk.tsx`, `frontend/src/b/TodayPage.tsx` |
|
||||
| [x] | 피드 순서: 히어로 → 오늘의 각 → 포스트. 주말 날씨·행사·노을 앞으로, 각·공기·자외선·상식 뒤로 | 10/20 회의 | `backend/services/feed_service.py` |
|
||||
| [ ] | 시간대 지정 각(야장·별보기)을 시간 밖에도 뒤쪽에 노출, 억새각 노출 조건 확인 | 10/20 회의 (담당 김성경 확인 필요) | `backend/services/index_service.py`, `backend/seed/index_definition.json` |
|
||||
| [ ] | 단풍 지도·단풍 포스트, 새 각 — 야구각 문장(숫자 뺌)만 반영. 농구·배구·제철 수산물각 초안은 보류(scratchpad `new_gak_draft.json`) | 10/20 회의 | `backend/seed/index_definition.json`, `backend/seed/article.json` |
|
||||
| [x] | 불쾌지수 항상 표시 | 10/20 회의 결정 (10/8도 결정) | `backend/services/hero_stats.py:70` |
|
||||
| [x] | 나만의 각을 '이름+조건(기온·비·바람·미세먼지·습도·시간대 수치) 저장'으로 바꿈 — 섞기 방식 대체, 점수는 서버가 그 동네 예보로 계산(조건에서 멀수록 깎기), 받은 링크에 조건을 담아 친구 동네 점수로. 피드에 올려 좋아요는 아직 | 10/20 회의 결정 (조합 방식 대체) | `frontend/src/b/myGak.tsx` |
|
||||
| [x] | 비로그인 좋아요·댓글·공유 허용, 포스팅만 로그인. 중복 막기는 IP 기준(사용자 결정 10/20). 댓글도 로그인 없이(10/21 회의 결정) — 아래 10/21 행으로 이어짐 | 10/20 회의 결정 | `backend/router/v1/reaction/reaction.py` |
|
||||
| [ ] | 구글·토스 로그인, 앱인토스 정산 계좌 오류 토스 문의 — 구글 로그인 됨(`4e9b0ba`), 토스 문의 보냄(답변 대기). 남은 것은 아래 10/21 행 | 10/20 회의 결정 | `backend/router/v1/auth/account.py` |
|
||||
| [ ] | 사람 글 사진 올리기 — 보여 주기(talk.image)는 됨, 올리기는 패키지 설치 확인 후(python-multipart·Pillow, 위치 정보 지우기) | 10/20 회의 결정 | `backend/router/v1/talk/talk.py`, `frontend/src/b/talk.tsx` |
|
||||
| [ ] | 날씨 타로·오늘 날씨 코디 기획 (옷차림 [보류] 행과 합침). 타로는 운세 주제별 귀여운 각 이름으로 — 예: 애정 날씨 타로 → '다툼구름각' (사용자 10/21) | 10/20 회의 | |
|
||||
| [ ] | **[결정 필요]** 피드 각 카드에서 빨래각 같은 평이한 각 빼기 — 피드 각 3개는 전체 순위로 골라 빨래각(priority 1)이 들어감. priority를 낮추면 히어로·각 탭 순위도 바뀜. priority 조정 vs 피드에선 is_fun 각 먼저 | 피드 순서 작업 중 발견 | `backend/seed/index_definition.json`, `backend/services/feed_service.py` |
|
||||
| [ ] | 오늘의 각 카드 순위와 점수 순서가 다름(1위 83점, 2위 97점) — 순위에 중요도를 섞어서. 카드로 보이니 어색함 | 카드화 중 발견 | `backend/services/index_service.py` |
|
||||
| [ ] | AdSense 게재 — 피드 포스트 사이 인피드 광고(포스트 틀, '광고' 표시, 몇 개마다 넣을지 결정). 게시자 ID(ca-pub-…) 받은 뒤 진행, `public/ads.txt`·`privacy.html` 광고 쿠키 고지 같이 | 사용자 결정 10/21, ID 없음 (https://adsense.google.com/start/) | `frontend/index.html`, `frontend/src/b/TodayPage.tsx` |
|
||||
| [ ] | 테스트 실패 2건: `test_feed.py::test_feed_assembles_hero_stories_posts_and_bands`(각 57개, 기대 40 — 커밋 전 각 추가 영향), `test_weather_today.py:60`(날짜 따라 18시 아이콘 moon) | 피드 순서 작업 중 발견 | `backend/tests/` |
|
||||
|
||||
## 10/21 회의 (`docs/meetings/2026-10-21.md`)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [x] | 공유에 링크 반드시 포함 — 공유창에 고정 URL을 url 칸으로 넘기고 링크도 클립보드에 복사(이미지만 받는 앱 대비) (금일 핵심) | 10/21 회의 결정 | `frontend/src/b/Sheets.tsx:564` |
|
||||
| [x] | 히어로는 지금 형태 유지 + 좋아요·댓글 추가 (공유는 원래 있음). 서버에 히어로용 포스트(PostType.HERO)를 날마다 시도별로 만듦 | 10/21 회의 결정 | `frontend/src/b/TodayPage.tsx`, `backend/services/feed_service.py` |
|
||||
| [x] | 오늘의 각부터 모든 카드에 좋아요·댓글·공유 — 오늘의 각 카드에 붙임(PostType.TODAY_GAK). 단풍 지도 카드는 아직 보내기만 (금일 핵심) | 10/21 회의 결정 | `frontend/src/b/TodayPage.tsx`, `backend/services/reaction_service.py` |
|
||||
| [x] | 로그인은 포스팅할 때만, 댓글은 로그인 없이 — 이름 '마포구 익명'(사용자 결정 10/21), 링크·전화번호 막기, IP당 하루 20개, 지우기는 같은 IP (금일 핵심) | 10/21 회의 결정 | `backend/router/v1/reaction/reaction.py` |
|
||||
| [x] | 웹 로그인 구글로 통일 — 로그인 창에서 아이디·비밀번호 칸 뺌. 서버 `/v1/auth/signup`·`/login`은 테스트 6개 파일이 계정 만들 때 써서 남김 (금일 핵심) | 10/21 회의 결정 | `frontend/src/b/Sheets.tsx`, `backend/router/v1/auth/account.py:25` |
|
||||
| [ ] | 모바일에서 창이 닫히지 않는 오류 — 어느 창인지 확인 필요 (금일 핵심) | 10/21 회의 | `frontend/src/b/Sheets.tsx` |
|
||||
| [x] | '내일 날씨' — 별도 카드 대신 히어로에 오늘/내일 스위치(사용자 결정 10/21). 내일은 시간대별 날씨 점수·기온, 최저·최고, 습도, 내일 1위 각 | 10/21 회의 결정 | `frontend/src/b/TodayPage.tsx` |
|
||||
| [ ] | 넣을 수 있는 지역은 모두 날씨 페이지 추가 (지금 274개) | 10/21 회의 결정 | `backend/seed/region.csv` |
|
||||
| [x] | 단풍 지도 UI 수정 — 단풍 그림 지도(Codex), 카카오처럼 단계 3개(단풍 전·첫 단풍·절정)와 단풍잎·은행잎 아이콘, 명소 65곳(단풍 39·은행 26) | 10/21 회의 후속, 사용자 10/21 | `frontend/src/b/foliageMap.tsx`, `frontend/seo/foliage_2026.json` |
|
||||
| [ ] | 단풍 지도 '첫 단풍'은 절정 14일 전부터로 추정(발표에 시작일 없음). 예측 지점이 아닌 명소 32곳은 가장 가까운 예측 지점 날짜를 빌림(예: 남산공원·창덕궁 ← 수리산). 실제 관측과 다를 수 있음 | 사용자 결정 10/21 | `frontend/seo/foliage_2026.json` |
|
||||
| [ ] | 토스 미니앱 최신 버전 재등록 — 웹이 바뀌면 자동 반영 안 됨 | 10/21 회의 | |
|
||||
| [ ] | 유튜브 숏폼 자동화 진행 방안 협의 (김성경, 10/22) | 10/21 회의 | |
|
||||
| [x] | 오늘 화면 쇼츠 줄 — 영상 ID 고정 목록(`youtube_shorts`) 없앰. API 키가 없으면 채널 쇼츠 RSS(`UUSH…` 재생목록, 키 없음)로 자동으로 받음. 키(`YOUTUBE_API_KEY`)를 운영 .env 에 넣으면 Data API 로 바뀌어 퍼가기·길이까지 거름 (https://console.cloud.google.com/apis/library/youtube.googleapis.com) | 10/28 운영에 키가 없어 고정 목록만 나와 새 쇼츠가 안 붙음. 채널 RSS가 다시 200 | `backend/services/external/youtube.py`, `backend/services/shorts_service.py` |
|
||||
| [ ] | **[결정 필요]** 쇼츠 문구 검토: '소리 켜기'/'소리 끄기' (줄 제목은 없앰) | 화면 문구 규칙 | `frontend/src/b/Shorts.tsx` |
|
||||
| [ ] | 쇼츠를 올린 직후 목록 갱신(`ShortsService.refresh`) 부르기 — 지금은 워커가 07·12·18시 10분에만 받아 18시 넘어 올리면 다음 날 아침에 뜸. 자동 업로드면 끝난 뒤 호출, 손으로 올리면 관리자 갱신 API | 올리는 방식 확인 필요 | `backend/services/shorts_service.py`, `backend/worker_main.py` |
|
||||
| [ ] | 쇼츠 API 실패·빈 목록일 때 공유 링크로 들어오면 남색 빈 화면만 보임 — 그 영상 ID 하나라도 띄우거나 × 버튼·안내 문구 보이기 | 10/27 QA 실패 (`items` 가 비면 빈 div 만 그림) | `frontend/src/b/Shorts.tsx` |
|
||||
| [ ] | **[결정 필요]** 쇼츠 폰에서 유튜브 멈춤(\|\|) 버튼이 계속 남음 — 유튜브 플레이어 자체 버튼이라 코드로 못 지움. 우리 쇼츠 원본 mp4를 저장소에 올려 <video>로 틀지, 폰 연결해 유튜브로 더 시도할지 | 10/27 실기기 보고, 크롬·WebKit 흉내에선 재현 안 됨 | `frontend/src/b/Shorts.tsx` |
|
||||
| [ ] | 토스 ait 는 `feat/apps-in-toss` 브랜치(~/orca/workspaces/o2o-weather/main-3)에서 만들기 — main 에는 토스 로그인·웹뷰 자동재생·쇼츠 토스 처리가 없음. 최신 ait 20:03 콘솔 업로드 필요 | 10/27 main 에서 만든 ait 로 쇼츠가 멈춰 보임 | `~/orca/workspaces/o2o-weather/main-3/frontend/nalssigak.ait` |
|
||||
| [ ] | 운영 행사 주소(event.address) 채우기 — 팝가가 연속 요청을 막아(429) 로컬도 206개 중 80개만. 간격 두고 다시 | 10/27 주소 수집 추가 | `backend/scheduler/jobs.py` `refresh_popups` |
|
||||
| [ ] | `test_watch_summary_flags_thunder_within_2_hours` 가 전체로 돌릴 때만 실패(따로 돌리면 통과) — 순서 의존 원인 찾기 | 10/27 전체 테스트 | `backend/tests/test_watch.py` |
|
||||
| [ ] | 쇼츠 자동재생 아이폰 사파리 실기기 확인 — 소리 꺼도 자동재생을 막는다는 보고 있음 | 헤드리스 크롬에서만 확인 | `frontend/src/b/Shorts.tsx` |
|
||||
| [x] | 단풍 명소 `남이섬`이 두 번 들어감(절정 10-25·10-27) — 10-27(화목원) 쪽 지움, 67곳 | 10/27 전체 점검 | `frontend/seo/foliage_2026.json` |
|
||||
| [x] | 날짜 따라 깨지던 테스트 2개 — 노을 칸은 그날 해 지는 시각으로, 방위각은 한 해 범위(240~300°)로 확인 | 10/27 전체 점검 | `backend/tests/test_weather_today.py`, `backend/tests/test_sky_api.py` |
|
||||
| [x] | 빈 댓글 보완 — 포스트마다 날씨각 캐릭터(해님·구름·달님) 댓글 1~2개, '날씨각' 표시. 사람인 척하는 가짜 계정·부풀린 숫자는 안 함 | 10/27 결정 | `backend/services/bot_comment.py`, `backend/services/bot_comment.json` |
|
||||
| [ ] | 인스타 운영 관리자 페이지(자동 게시 전 승인 메일) + 초기 이야기형 피드(각 100개·빨래각·소맥각·점수 산정법) | 10/21 회의 | |
|
||||
| [ ] | 레이어 공유 아이디어 — 사용자 사진 위에 날씨각 정보를 얹어 공유(캐시워크식), 앱 기능으로 | 10/21 회의 (황 본부장 의견, 대표 방향) | |
|
||||
| [ ] | iOS 개발자 계정 — 소장에게 기존 계정 확인, 어려우면 회사 계정 새로 만들기. 안드로이드 앱 계속 준비 | 10/21 회의 결정 | |
|
||||
| [ ] | 앱인토스 정산 계좌 법인 계좌로 등록(대표) 후 토스 로그인 연동 가입 | 10/21 회의 결정 | |
|
||||
| [ ] | '○○구 내일 날씨' 검색 태깅 — 스위치 뒤 내용은 눌러야 보여 구글이 읽는지 공식 문서로 확인 필요. 구 페이지(SEO)에 내일 기온·습도 넣는 안과 비교 | 10/21 회의 결정 | `backend/router/v1/seo/` |
|
||||
| [x] | **운영 DB 반영(10/21 배포 때 init.sql로 적용 확인)** — 댓글 표 `user_id` NULL 허용, `ip_hash`·`region_name` 칸, `idx_comment_ip` (init.sql에 추가, 로컬만 적용). 배포 전에 운영에 ALTER 실행 (운영 영향, 확인 받고) | 익명 댓글 | `backend/postgres-init/init.sql` |
|
||||
| [ ] | **[결정 필요]** 새 화면 문구 검토: '보냈어요. 링크도 복사해 뒀어요', '글쓰기는 로그인한 뒤에 할 수 있어요.', '오늘'/'내일', '내일 낮 날씨 점수', '내일은 ○○각!'/'내일은 쉬어 가요', '최저'/'최고'/'습도', 익명 이름 '마포구 익명', 단풍 지도 '단풍 전'/'첫 단풍'/'절정'/'단풍'/'은행', '가까운 예측 지점 날짜예요', '지금 절정 ○곳: … 외' | 화면 문구 규칙 | `frontend/src/b/TodayPage.tsx`, `frontend/src/b/Sheets.tsx` |
|
||||
| [ ] | 단풍 지도 페이지(`/foliage`) 검색 등록 — 사이트맵 추가, 미리 그린 HTML(제목·설명), 공식 문서로 확인 후 | 페이지 따로 만든 이유(공유·검색), 사용자 10/23 | `backend/services/seo_service.py`, `frontend/src/b/FoliagePage.tsx` |
|
||||
| [ ] | 단풍 지도 그림 고해상도로 다시(지금 1024px라 확대하면 흐림) — Codex | 단풍 지도 페이지 확대 | `frontend/public/foliage/korea-map.webp` |
|
||||
| [ ] | **[결정 필요]** 단풍 지도 페이지 문구: '단풍 절정'/'은행 절정', '지도 크게 보기 ›', '지금 절정'/'곧 절정'/'아직'/'절정 지남', '전체'/'단풍'/'은행', '절정 예상'/'가까운 지점 날짜', '링크를 복사했어요' | 화면 문구 규칙 | `frontend/src/b/FoliagePage.tsx`, `frontend/src/b/foliageMap.tsx` |
|
||||
| [ ] | 익명 댓글이 링크·하루 제한에 걸려도 '댓글을 올리지 못했어요'만 나옴 — 이유별 안내 | 익명 댓글 작업 중 발견 | `frontend/src/b/Sheets.tsx` |
|
||||
| [ ] | 매일 대표에게 진행 보고 (미완료 포함) | 10/21 회의 결정 | |
|
||||
|
||||
## 10/28 시장성 진단 (보고서는 채팅 첨부, 근거: 운영 DB 집계·첫 화면 캡처·회의록)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | **[결정 필요]** 타깃을 2030 직장인으로 좁히기 — 기능은 지우지 않고 첫 화면·각 순서만 이 사람 기준으로. 9/29 '타깃 정하지 않음'을 바꾸는 일이라 대표 결정 | 콘텐츠가 2030·4050·반려인·동네 주민으로 흩어져 누구에게도 1순위가 아님 | `frontend/src/b/TodayPage.tsx`, `backend/services/feed_service.py` |
|
||||
| [ ] | 오늘 타로(오늘 한 장) — main 병합(10/28): 오늘 탭 아이콘 줄 → 오늘 타로 창. 타로 22장 하루 1장 + 행운(시간·장소·색·1위 각) + 연속 도장 + 저녁 체크인. 남은 것: 배포(운영 init.sql 로 표 fortune_draw·day_log·point_log, users.points 생김), 토스 ait(`feat/apps-in-toss`에 main 합친 뒤) | 10/28 사용자 결정 | `frontend/src/b/fortune.tsx`, `frontend/src/b/todayIcons.tsx` |
|
||||
| [ ] | **[결정 필요]** 아침 7시 웹 푸시 — 안드로이드 크롬은 바로, 아이폰은 홈 화면에 추가한 사람만(iOS 16.4+). 앱 위젯(10/21 결정)은 계속 | 다시 부르는 장치가 없음(코드에 웹 푸시 없음) → DAU가 쌓이지 않음 | `frontend/public/sw.js`, `frontend/src/b/install.ts` |
|
||||
| [ ] | **[결정 필요]** 좋아요·댓글 0이면 숫자 숨기기, 동네 이야기는 그날 글이 몇 개 넘을 때만 위에 | 첫 화면 '좋아요 0개'·동네 글 1개가 "아무도 안 쓴다"는 신호 | `frontend/src/b/TodayPage.tsx`, `frontend/src/b/talk.tsx` |
|
||||
| [ ] | **[결정 필요]** 4주 새 기능 동결 목록 — 후보: 나만의 각 피드 올리기, 동네 이야기 사진, 캐시워크·통신사 위젯, 새 각 추가, 지역 페이지 추가 확장(10/21 '모든 지역 추가'와 충돌) | 2명이 기능 폭을 넓히는 중, 바깥 사용자 반응은 거의 없음(계정 7개 대부분 팀 추정) | |
|
||||
| [ ] | 첫 화면에 '지금 10°'(시간대 줄)와 '오전 10시 5°'(히어로 문장·오늘의 각)가 함께 보임 — 원인 확인(체감온도인지). 오늘의 각 5줄 설명도 모두 같은 문장 | 10/28 11시 운영 캡처(마포구), 숫자 어긋나면 첫 방문자 신뢰 잃음 | `frontend/src/b/TodayPage.tsx` |
|
||||
| [ ] | GA4 사내 IP 제외 필터 + 주간 지표 4개(신규 방문, 1일·7일 재방문, 공유→방문, 홈 화면 추가→알림 허용) | 바깥 사용자 수를 아무도 모름, 이게 없으면 진단이 가설로 남음 | `docs/이벤트_추적.md` |
|
||||
| [ ] | 계정 레벨 — main 병합(10/28, 배포 남음). 사용자 결정 10/28: **레벨 제도**(포인트 소비형 아님). 단위는 '각'(출석 +10각 등 서비스 전체 행동으로 적립), 레벨은 모은 총량 기준이라 나중에 각을 쓰는 기능을 붙여도 안 내려감. 지금 있는 기능·캐릭터·색·기분은 잠그지 않고, 새로 생기는 것(날씨 사주 연애운·궁합 등, 새 캐릭터·테두리, 댓글 레벨 배지)만 레벨로 열림. 내 정보는 기존 화면에 레벨·각만 더함. 정할 것: 레벨 이름·단계·필요 각, 행동별 각·하루 한도, 해금 목록 | 기획서 '계정 레벨(각)·날씨 사주 UI 기획'(10/28 채팅 첨부) | `frontend/src/b/Sheets.tsx` `MeSheet` |
|
||||
| [ ] | 날씨 사주 해석 기준 — 사용자가 맡김(10/28 "니 알아서 하라"), 바꿀 수 있게 기록: 날씨 접목은 조후(한난조습) · 연애운은 열 때 성별 선택 입력(남/여/선택 안 함, 안 하면 도화·배우자궁만으로 본다고 표시) · 도화는 연지·일지 삼합 둘 다 · 홍염은 일간표(甲乙午 丙寅 丁未 戊己辰 庚戌 辛酉 壬子 癸申, 이견 있음 표시) · 합충형파해원진은 원국 네 지지 모두, 일지에 걸리면 연애 가중 · 절입 시각은 천문 계산식으로 1900~2100 표를 만들고 천문연 값으로 검증(패키지 안 씀) · 진태양시(출생지 경도)·서머타임 반영, 자시는 자정 기준(설정으로 변경) · 음력은 다음 단계(천문연 API) | 사용자 위임 10/28 | |
|
||||
| [ ] | **[결정 필요]** 날씨 사주 화면·문구 — '내 기운'(계절·날씨 장면 16종), 점수 → 사주 풀이 → 계절·날씨 한 스푼, 하루 풀이를 '오늘의 결정 카드'(언제·미룰 것·입을 것/갈 곳·이번 주 날짜)로 줄지, 규칙별 의미 사전·문구 검토, 기운 장면 그림 | 사용자 피드백 10/28 | 기획서 '날씨 사주 기획 v2', '계정 레벨·날씨 사주 UI 기획' |
|
||||
| [ ] | **[결정 필요]** 날씨 사주 Codex 검수(10/28) 중 반영 안 한 것: ① 금전·일 날짜 추천("큰돈 쓰거나 계약할 일은 10/31(토)") — Codex는 운세로 계약·면접 날짜를 정해 주지 말고 점검 행동만 주라고 했으나, 사주 앱 장르상 날짜가 핵심이라 유지하고 그날 점수 60 이상일 때만 고르게 함 ② 점수를 '참고 점수'로 부를지 ③ 결과 위에 출생 정보 요약·칸 이동 메뉴, 사주 글자 표 접기 ④ 11월부터 올해 운 자리에 내년 미리 보기 — 올해·내년을 따로 고르게 할지 ⑤ 연애운 성별 기준(남 재성·여 관성)을 '전통 기준'이라고 더 밝힐지 | Codex 검수 `/tmp/sweep/codex-review.md` | `backend/services/saju_service.py`, `frontend/src/b/SajuPage.tsx` |
|
||||
| [x] | 사주 보정(10/29 사용자 지적: 토 많은 未월생이 '장맛비 기운'으로 나옴) — 월령 바탕값, 흙은 계절 따라 조습, 未 0.9, 오행 세력(지장간 날 수·월지 30·일지 20·그 외 10)·신강신약, 균형 축 이름은 세력 1위 오행 쪽 | 『궁통보감』 三夏己土, 계산식 `docs/사주_계산식.md` | `backend/services/saju/climate.py`, `strength.py` |
|
||||
| [ ] | **[결정 필요]** 사주 명식 C안(요약 먼저형) 문구 확인 — 10/29 사용자 C안 선택, 구현은 `fix/saju-climate`(제목 '사주 명식', '흙(土) 기운이 가장 센 신강 사주', 오행 막대, 십성·'나'·월령 표시, 용어 풀이 10개). 문구 확인 뒤 병합 | 시안 v5, 사용자 선택 10/29 | `frontend/src/b/SajuPage.tsx` `MeCard`, `backend/router/v1/saju/saju.py` |
|
||||
|
||||
## 진행 순서
|
||||
|
||||
결정이 필요 없는 것부터, 사용자 눈에 틀린 정보가 보이는 것 → 기능 → 다듬기 순.
|
||||
@@ -84,7 +171,7 @@
|
||||
| [x] | 계절 이야기 사진 연결 — 받은 13장(`frontend/public/season/`)을 `article`에 사진 칸 추가해 띠·목록·상세·피드에 표시, CC BY 계열은 저작자·라이선스 표시. 스켈레톤 작업 끝난 뒤 진행 | 사용자 요청 | `backend/common/database/model/models.py`, `backend/seed/article.json`, `frontend/src/b/SeasonPage.tsx`, `frontend/src/b/Sheets.tsx`, `frontend/src/b/TodayPage.tsx` |
|
||||
| [ ] | **[결정 필요]** 계절 이야기 사진 2장 안 씀 — `di.jpg`(매미)는 불쾌지수 글과 주제가 다르고, `peanut_new.jpg`(일본 가토리시 삶은 땅콩, 왼쪽은 일본 대립종)는 '국산 햇땅콩' 글과 맞지 않아 아이콘 유지. 맞는 사진을 새로 구할지 | 계절 이야기 사진 연결 중 판단 | `frontend/public/season/sources.json`, `backend/seed/article.json` |
|
||||
| [x] | (로컬 반영함, 운영 DB는 배포 때 같은 ALTER 필요) 로컬 DB 칼럼 추가 후 백엔드·워커 컨테이너 다시 빌드 — 지금 9810 백엔드는 이미지로 떠 있어 이번 백엔드 수정이 화면에 안 보임. 필요한 ALTER: `weather_daily.rain_prob_am`/`rain_prob_pm SMALLINT NULL`, `index_score.estimated BOOLEAN NOT NULL DEFAULT false`. 진행 중인 백엔드 작업이 끝난 뒤 실행 | 오늘/내일/토/일 작업 중 발견 | `backend/postgres-init/init.sql`, `compose.yaml` |
|
||||
| [ ] | **[결정 필요]** 확정 시안(`docs/시안_B_확정.html` 489·585행, `.trend3`)에 각 점수 칸이 아직 "오늘·내일·모레" 3칸 — 실제는 오늘/내일/토/일 4칸. 시안도 고칠지 | 오늘/내일/토/일 작업 중 발견 | `docs/시안_B_확정.html` |
|
||||
| [x] | 확정 시안(시안 B)에 각 점수 칸이 아직 "오늘·내일·모레" 3칸 — 실제는 오늘/내일/토/일 4칸. 시안 파일을 지워(10/29 docs 정리) 해당 없음 | 오늘/내일/토/일 작업 중 발견 | |
|
||||
| [x] | (로컬 반영함, 운영은 배포 때) 행사 아이콘 `calendar`→`fireworks` 기존 DB 반영 — 코드·`init.sql` 기본값만 바뀌어 이미 들어간 행사는 그대로. 필요한 명령: `UPDATE event SET icon='fireworks' WHERE icon='calendar'; ALTER TABLE event ALTER COLUMN icon SET DEFAULT 'fireworks';` (운영은 확인 받고) | 아이콘 오용 수정 중 발견 | `backend/postgres-init/init.sql`, `backend/common/database/model/models.py` |
|
||||
| [x] | (로컬 반영함) seed 다시 넣기 — 밤 문장 아이콘 `moon`, 한 문장 8개의 내부 메모 출처 줄 삭제가 DB에 반영되도록 `docker exec o2o-weather-backend-1 python scripts/load_seed.py` | 뜻 모를 표시 수정 | `backend/seed/article.json` |
|
||||
| [ ] | 한 문장 8개(`quote-clear-2·3`, `quote-cloud-1·2`, `quote-rain-1·2`, `quote-any-1`, `quote-night-3`) 문구 검수 — 직접 쓴 예시 문장이라 출처 없이 나감 | 출처 줄 '날씨각 (검수 전 예시)' 삭제하며 메모 옮김 | `backend/seed/article.json` |
|
||||
@@ -92,9 +179,15 @@
|
||||
| [ ] | 마스크 아이콘 없음 — 미세먼지 포스트가 좋음·보통은 `vent`, 나쁨 이상은 `cloud`를 씀 | 미세먼지 포스트 작업 중 발견 | `frontend/public/icons/`, `backend/services/feed_service.py` (`_air`) |
|
||||
| [x] | 주말 화면 '데이트 명소'는 아직 시도 기준(`places`) — 행사처럼 거리 기준으로 바꿀지. 지금 명소 데이터는 10곳뿐 | 행사 거리 기준 작업 중 발견 | `backend/services/week_service.py` (`places`), `frontend/src/b/WeekPage.tsx` |
|
||||
| [ ] | 행사 수집이 사용자 한 명당 주변 시도 2~4곳으로 늘어 TourAPI·문화정보 API 호출이 시도 수만큼 늘어남(시도별 하루 1회 캐시) — 운영 배포 때 일일 호출 한도 확인 | 행사 거리 기준 작업 중 발견 | `backend/services/week_service.py` (`_ensure_events`), `backend/docs/load-estimate.md` |
|
||||
| [ ] | 다른 문서의 포스트 종류 목록·행사 시도 기준 설명 갱신 (`PostType` 12 미세먼지, 30km 행사) — `docs/포스트_종류별_내용.html`만 고침 | 문서 점검 | `backend/docs/`, `docs/화면별_데이터_출처.html`, `docs/데이터_흐름.html`, `docs/콘텐츠_설계서.md` |
|
||||
| [ ] | 다른 문서의 포스트 종류 목록·행사 시도 기준 설명 갱신 (`PostType` 12 미세먼지, 30km 행사) — 포스트 종류별 내용(지금 `docs/서비스_동작_안내.md` 5장)만 고침 | 문서 점검 | `backend/docs/`, `docs/서비스_동작_안내.md` 1·2장 |
|
||||
| [ ] | **[결정 필요]** 스켈레톤 작업에서 바뀐 디자인 — 댓글 없음 안내가 글자 두 줄 → 상자(스켈레톤 3줄 크기) | 스켈레톤 작업 중 발견 | `frontend/src/b/Sheets.tsx` (`CommentsSheet`) |
|
||||
| [ ] | **[결정 필요]** 히어로 시안 A/B/C 중 선택 — 지금은 이전 히어로로 롤백 | 히어로 다듬기 | `frontend/src/b/TodayPage.tsx`, `frontend/src/b/b.css` |
|
||||
| [x] | **[결정 필요]** 히어로 시안 A/B/C 중 선택 — 지금은 이전 히어로로 롤백 → 10/12 D4-2로 결정(해 안 점수 + 문장 두 줄은 서버 값 그대로 + 상태 한 줄 + 하루 흐름 칸, 높이는 지금 그대로 약 400px) | 히어로 다듬기 | `frontend/src/b/TodayPage.tsx`, `frontend/src/b/b.css` |
|
||||
| [x] | **[결정 필요]** 히어로 D4-2 상태 한 줄 — ① 습도는 서버가 %만 줘서 단계 기준을 새로 정해야 함 ② 불쾌지수 '불쾌'처럼 판정 이름을 그대로 쓸지 ③ 미세먼지·자외선은 늘 보일지, 조심할 때만 보일지 → 10/12 결정: 습도 건조(30% 미만)·보통(60% 이하)·습함, 불쾌지수 단계 이름 그대로, 늘 4개(밤엔 자외선 빼기) | 히어로 D4-2 시안 | `backend/services/hero_stats.py`, `backend/services/feed_service.py`, `frontend/src/b/TodayPage.tsx` |
|
||||
| [ ] | **[결정 필요]** 각 목록 '지금 아님' 문구 — 계절이 아니라 각 시간대(등산 7~12시·피크닉 11~16시)가 지났다는 뜻인데 '가을' 표시 옆에 있어 비활성처럼 읽힘. 그 각의 시간('오전에 좋아요' 등)으로 바꿀지 | 사용자 지적 | `frontend/src/b/GakPage.tsx`, `frontend/src/b/TodayPage.tsx` |
|
||||
| [x] | **[결정 필요]** 계절별 각 늘리기 — 지금 '가을' 표시는 `is_core` 4개(피크닉·등산·캠핑·별보기)에 글자로 박혀 있고 계절 전환이 없음. 계절마다 각 후보 목록을 만들어 검토받고, 계절 필드로 바꾸기 → 10/12 `months` 칸 + 새 각 12개, 계절 표시는 서버 `season` | 사용자 요청 | `backend/seed/index_definition.json`, `frontend/src/b/GakPage.tsx` |
|
||||
| [ ] | 운영 DB에 `index_definition.months` 칸 추가 — `deploy.sh` 가 배포 때 `init.sql`(`ALTER TABLE public.index_definition ADD COLUMN IF NOT EXISTS months JSONB NOT NULL DEFAULT '[]';`)과 `load_seed.py` 를 돌려서 자동으로 들어감. 배포 뒤 각 탭에 계절 표시가 나오는지만 확인 | 계절 각 | `backend/postgres-init/init.sql`, `deploy.sh` |
|
||||
| [ ] | **[검토 필요]** 새 각 12개 문구 — 설명·한 줄 문장(0/30/60/80)·한계 문구, '제철 아님' 표시 문구 | 계절 각 | `backend/seed/index_definition.json`, `frontend/src/b/GakPage.tsx` |
|
||||
| [ ] | 새 각 전용 아이콘 — 꽃구경(화분)·이불빨래/실내건조(빨래)·빙수(아이스커피)·한강밤바람(야장)·억새(볏단)·해돋이(노을)·붕어빵/군고구마(고구마)는 있는 그림 재사용 중 | 계절 각 | `frontend/public/icons/` |
|
||||
| [x] | 댓글 좋아요 실패 시 알림 없음 (연결·서버 오류면 줄에 안내, 지워진 댓글이면 목록 새로고침) (화면은 되돌아감) | 댓글 대기 표시 작업 중 발견 | `frontend/src/b/Sheets.tsx` (`CommentRow`) |
|
||||
| [x] | **[결정 필요]** 노을 탭 재정리에서 정한 것 — ① 노을 등급 '흐림' → '잿빛'(피드 노을 포스트 문구도 같이 바뀜) ② 히어로에 '가장 붉을 때' 시각 하나는 결론('몇 시에')으로 남기고 나머지 시각은 시간표 한 곳에만 ③ '나가 볼 만해요/애매해요/쉬어요' 기준 60·40점, 내일·모레는 10점 넘게 높을 때만 '더 나아요' ④ '쉬어요'면 명소 추천 안 함 ⑤ 블루아워 시각은 시민박명 끝(-6°), 골든아워는 해 고도 6° → 10/7 노을 탭 다시 기획으로 대체: 점수 대신 하늘 상황 5가지, 결론은 상황 기준 | 노을 탭 재정리 | `backend/services/calc/sky_score.py`, `backend/services/sky_service.py`, `frontend/src/b/SkyPage.tsx` |
|
||||
| [x] | 노을 히어로 맨 윗줄("오늘 노을 · 구")이 보라 배경 위 흰 13px라 대비 약 3.9:1 (AA 4.5 미달) — 결론·근거·시각·점수는 어두운 상자 안으로 옮김, → 어두운 바탕을 깔아 6.7:1 | 노을 탭 재정리 중 발견 | `frontend/src/b/SkyPage.tsx` |
|
||||
@@ -114,9 +207,12 @@
|
||||
| [x] | 히어로 두 칸을 상황별로 고름(비→미세먼지→자외선→일교차→체감→불쾌지수, 모자라면 기본값), 아이콘·색도 상태별 (시안 A, 사용자 결정). 히어로 내용 전체 다시 보기 — 아이콘이 뜻과 안 맞음: 불쾌지수에 온도계(불쾌지수는 기온+습도), '지금 비'는 비가 안 와도 우산. 칸마다 무엇을 보여줄지(불쾌지수가 필요한지 포함)부터 다시 정하기 | 사용자 지적 | `frontend/src/b/TodayPage.tsx` (`HeroStat`) |
|
||||
| [x] | 검색 노출 1단계: 메타는 `index.html` 하나로 유지 + canonical, `robots.txt`·`sitemap.xml`(메인 한 줄) 추가 — 탭별 HTML로 나누는 안은 효과(탭별 공유 미리보기·탭별 색인)가 작아 보류. 도메인 `weather.o2o.kr` 고정이라 바뀌면 두 파일도 수정 | 10/8 논의 | `frontend/index.html`, `frontend/public/robots.txt`, `frontend/public/sitemap.xml` |
|
||||
| [ ] | **[보류]** AEO·일반 검색어 유입 — 본문이 HTML에 없어 네이버 Yeti·AI 크롤러(GPTBot 등)는 메타만 읽고, 일반 검색어("세차하기 좋은 날씨" 등)는 메타만으로 순위에 못 듦. 지금 탭 내용은 지역별·매일 바뀌는 값이라 색인돼도 금방 틀림. 하려면 검색어용 페이지(각 기준·월별 노을 시간·노을 명소·계절 글·월별 행사)를 새로 만들어야 함 → 기획 결정 필요. 계절 이야기 글은 지역 무관이라 글마다 주소만 붙이면 바로 후보 | 10/8 논의 | [검색 유입 기획](https://claude.ai/artifact/SKz9SipYyguERGF8weUpZs), [검색어 리서치](https://claude.ai/artifact/Eu5ax3DbR9SdnhKdMRzE3p) |
|
||||
| [ ] | 구글 서치 콘솔·네이버 서치어드바이저에 사이트 등록, `sitemap.xml` 제출 — 배포 뒤 | 등록·제출 없으면 새 도메인은 색인이 늦음 | https://search.google.com/search-console , https://searchadvisor.naver.com |
|
||||
| [ ] | 구로 나뉜 13개 시의 구마다 자기 주소(`/today/gyeonggi/seongnam/bundang`, 39장) — 운영 반영(`96cbd19`, 10/20). 남은 것: 서치 콘솔·서치어드바이저에 sitemap 다시 제출 | 구글 '분당구 오늘 날씨' 상위는 모두 구 단위 페이지, 우리는 성남시 한 장에 묶여 분당구 주소가 없었음 | `backend/scripts/gen_region_pages.py`, `frontend/vite.config.ts`, `frontend/nginx.conf`, `backend/router/v1/seo/seo.py` |
|
||||
| [ ] | **[보류]** 날씨별 옷차림 콘텐츠 — 후보: ① `/outfit` 기온별 옷차림 고정 페이지 ② 지역 페이지·오늘 탭에 '오늘 옷차림' 한 줄. 형태 미정 | 구글 트렌드 '옷차림'≈'노을'(세차의 0.8배), 네이버 자동완성 '기온별 옷차림'·'20도 옷차림'·'서울 오늘 날씨 옷차림'. 지금은 주말 탭·히어로의 '겉옷' 팁뿐 | `docs/검색_노출.md` 3장, `backend/services/weekend_plan.py` |
|
||||
| [ ] | 서치 콘솔: 홈 URL 검사(구조화 데이터 '날씨각' 인식 확인)·재크롤링 요청, 색인 생성 보고서에서 지역 페이지 몇 장 색인됐는지 확인 / 네이버 서치어드바이저: 주요 지역 페이지 수집 요청(네이버 색인 10/235) | 사이트 이름 '에이아이오투오' 표시, 지역 페이지 색인 부족 | `docs/검색_노출.md` 4장 |
|
||||
| [x] | 구글 서치 콘솔·네이버 서치어드바이저에 사이트 등록, `sitemap.xml` 제출 — 배포 뒤 (둘 다 등록됨, 10/13 확인) | 등록·제출 없으면 새 도메인은 색인이 늦음 | https://search.google.com/search-console , https://searchadvisor.naver.com |
|
||||
| [x] | 세션 여러 개가 같은 테스트 DB·Redis를 쓰면 서로 지움 — `TEST_DB_NAME`·`TEST_REDIS_DB`로 폴더마다 다르게 줄 수 있게 함 | 테스트 충돌 (10/7 두 번) | `backend/tests/conftest.py` |
|
||||
| [x] | 피드 행사 카드·띠를 축제→팝업→전시→콘서트 차례로 돌아가며 고름 (사용자 결정). 피드 행사 카드(최대 3장)가 연주회로 채워짐 — 시작일이 오늘에 가까운 순이라 하루짜리 콘서트(서울 170건)가 위를 차지. 기획엔 "축제·행사"만 있고 콘서트·팝업을 어떻게 섞을지 없음. 안: 종류별 1장씩(축제·전시·팝업 우선) 또는 피드에서 콘서트 제외 | 사용자 지적 | `backend/services/week_service.py` (`events` 정렬), `backend/services/feed_service.py` (`PostType.EVENT`), `docs/피드_기획.html` |
|
||||
| [x] | 피드 행사 카드·띠를 축제→팝업→전시→콘서트 차례로 돌아가며 고름 (사용자 결정). 피드 행사 카드(최대 3장)가 연주회로 채워짐 — 시작일이 오늘에 가까운 순이라 하루짜리 콘서트(서울 170건)가 위를 차지. 기획엔 "축제·행사"만 있고 콘서트·팝업을 어떻게 섞을지 없음. 안: 종류별 1장씩(축제·전시·팝업 우선) 또는 피드에서 콘서트 제외 | 사용자 지적 | `backend/services/week_service.py` (`events` 정렬), `backend/services/feed_service.py` (`PostType.EVENT`), `docs/서비스_동작_안내.md` 6장 |
|
||||
| [ ] | **[결정 필요]** 노을 하늘 상황 판정이 실제와 맞는지 확인할 방법 정하기 — 기준값(중·높은 구름 25~75% 등)은 추정값. 추천안: 서쪽이 트인 공개 웹캠·CCTV 6~8곳을 워커가 매일 '가장 붉을 때' 시각에 캡처하고, 같은 날 13시 기준 예보(상황·판정)를 따로 남김. 사람이 주 1회 사진에 잿빛/은은/고움/붉음 라벨(30분 내외) → 판정(나가 볼 만해요/애매/쉬어요) 3×3 적중표, 특히 '나가 볼 만해요' 적중률(목표 70%↑). 6~8주(약 300장)면 기준값 조정 가능. 비용 0원, 테이블 1개+워커 잡 1개+라벨 CSV로 2~3일. 결정할 것: 웹캠 출처·이용 조건, 라벨 담당 | 노을 탭 다시 기획 (10/7). 사용자 '예뻤어요/별로'는 출시 전엔 표본이 없고 출시 후 보조 지표로, 기상청 ASOS 운량은 전운량·중하층운량만이라 구름 입력 검증용이지 노을이 예뻤는지는 못 알려줌, 인스타 해시태그는 예쁜 날만 올라와 '쉬어요' 검증 불가·수집 약관 문제. `sky_score`는 갱신 때 덮어쓰고 7일 뒤 지워져 지금은 과거 예보가 안 남음 | `backend/services/calc/sky_score.py` (`situation`), `backend/services/sky_service.py`, `backend/scheduler/jobs.py` |
|
||||
| [x] | 공유 이미지: 행사 카드의 장소(지도 링크)가 빠짐 — 버튼과 함께 `<a>`도 빼서 생김. 링크는 남기고 버튼만 빼야 함 | 공유 이미지 점검 (10/7) | `frontend/src/b/storyImage.ts` (`keep`), `frontend/src/b/ui.tsx` (지도 링크) |
|
||||
| [x] | 공유 이미지: 행사 사진은 백엔드 `/v1/image`(허용 호스트만)로 대신 받음 (사용자 결정). 행사 사진(한국관광공사·문화정보원)이 CORS 차단으로 하얗게 빠짐. 안: 백엔드가 사진을 대신 받아 주기 / 공유 때만 사진 대신 아이콘 | 공유 이미지 점검 (10/7) | `frontend/src/b/storyImage.ts`, `backend` 이미지 응답 |
|
||||
@@ -136,16 +232,240 @@
|
||||
| [ ] | 각 문서: 강풍 특보 조건이 "wind 특보가 있으면"으로 찍힘 (등산·골프·낚시각) | 각 늘리기 중 발견 (10/8) | `backend/scripts/gen_gak_doc.py` |
|
||||
| [ ] | 각 문서: "한눈에 보기" 표에 자외선·햇빛·가시거리 비중이 빠져 합이 100%가 안 됨 (등산·드라이브·물놀이각) | 각 늘리기 중 발견 (10/8) | `backend/scripts/gen_gak_doc.py` |
|
||||
| [x] | 각 중요도: 새 각 7개 제안 — 드라이브 상 / 골프·낚시·물놀이 중 / 집콕·연날리기·김장 하 | 각 늘리기 (10/8) | `backend/seed/index_definition.json` |
|
||||
| [ ] | `tests/test_sky_api.py` 2개가 09시 직전(08:58 KST)에 실패 — 시간대 경계 의존, 재실행 시 통과 | 계절 사진 작업 중 발견 (10/8) | `backend/tests/test_sky_api.py` |
|
||||
| [ ] | `tests/test_sky_api.py` 2개가 09시 직전(08:45~08:58 KST)에 실패 — 시간대 경계 의존, 재실행 시 통과 | 계절 사진 작업 중 발견 (10/8) | `backend/tests/test_sky_api.py` |
|
||||
| [ ] | 개인정보처리방침·이용약관 모달 (출시 후로 미룸) — `feat/legal` 브랜치(f6ddc67)에 구현 완료, 병합 전. 남은 것: `OPERATOR` 자리표시(회사명·대표자·사업자번호·주소·문의 이메일·보호책임자·호스팅 업체·로그 보유 기간), 탈퇴 기능 없음, 위치 좌표가 nginx 접속 로그에 남음, 만 14세 미만 확인 없음, 약관 열면 가입 입력값 사라짐, 위치정보법 신고 대상 법무 확인 | 사용자 결정 (10/8) | `frontend/src/b/legal/`, `frontend/src/b/Sheets.tsx` |
|
||||
| [x] | 좋아요·댓글이 전국 공통 — 포스트가 (날짜, 자리) 하나로 전국에 하나뿐이라, 구마다 내용이 다른 카드(오늘 날씨·각 1~3위·노을·미세먼지·행사)도 댓글·좋아요를 전국이 같이 씀. 예: 강남의 "1위 산책각"과 부산의 "1위 빨래각"이 같은 댓글창. 안: 지역 데이터 카드만 시도(17) 단위로 나누고 계절·상식·명언은 전국 공통 유지 | 사용자 질문 (10/8) | `backend/postgres-init/init.sql` (`uq_post_feed`), `backend/services/feed_service.py` (`build_day`, `_gak`) |
|
||||
| [ ] | **[결정 필요]** 포스트 시도 단위가 17이 아니라 16 — `region.code` 앞 2자리에서 광주·전남이 둘 다 `12`(전남광주통합특별시)라 같은 댓글창을 씀. 그대로 둘지, 이름 앞머리로 광주·전남을 나눌지 | 포스트 시도 나누기 (10/8) | `backend/services/feed_service.py` (`sido_of`), `backend/seed/region.csv` |
|
||||
| [ ] | 광주·전남 구는 행사가 안 잡힐 수 있음 — 구 코드 시도는 `12`인데 행사 수집·`event.sido_code`는 `29`(광주)·`46`(전남). 좌표 없는 행사는 `is_nearby`·`nearby_sidos`에서 빠짐 | 포스트 시도 나누기 중 발견 (10/8) | `backend/services/week_service.py:125,144`, `backend/services/external/culture_api.py:28` |
|
||||
| [x] | 전체 날씨 점수 기준 강화 — 100점은 '1년에 하루' 수준으로만 → 각과 같은 계산에 기준만 좁힘(체감 21±0.5°·습도 45~55%·해 90%↑·바람 1m/s↓·초미세먼지 10↓, 사용자 결정 '기준만 좁히기'). 실제 연 몇 번 나오는지는 미확인 (`docs/점수_계산식.md` 2) | 10/8 회의 결정 | `backend/services/index_service.py:203` |
|
||||
| [ ] | 각 점수를 아침·낮·저녁·밤 시간대별로 — 지금은 하루 중 가장 좋은 시간대 점수로 하루 고정이라 비가 와도 안 바뀜 | 10/8 회의 결정 | `backend/services/calc/index_calc.py:297` |
|
||||
| [ ] | 히어로에 습도·불쾌지수 항상 표시 — 지금은 상황별 두 칸이라 불쾌지수는 일정 수치 이상일 때만 | 10/8 회의 결정 | `frontend/src/b/TodayPage.tsx` (`HeroStat`) |
|
||||
| [ ] | 달 '밝기 %' 정의(밝기인지 보이는 면적인지) + 구름·달 모양 반영 산정 로직 | 10/8 회의 | `backend/services/calc/moon.py` |
|
||||
| [ ] | 노을: 하늘 상황 문구 대신 점수 강조(10/7 다시 기획에서 되돌림). 골든아워·블루아워 설명은 시간표 아래에 넣음 | 10/8 회의, 사용자 결정 | `frontend/src/b/SkyPage.tsx`, `backend/services/sky_service.py` |
|
||||
| [ ] | 주말 예보 UI 개선 — 회의에서 구체 내용 없음 | 10/8 회의 | `frontend/src/b/WeekPage.tsx` |
|
||||
| [ ] | **[결정 필요]** 앱인토스 입점 여부 — 검토안은 "웹 출시 후 보기 전용 토스판으로 시험, 첫 달 포인트·알림 20~30만 원, 5주차에 포인트 없는 주의 7일 재방문율 20%를 기준으로 계속/중단" (https://claude.ai/artifact/QgA7iq3CCesTRYcFyZck71) | 앱인토스 검토 | |
|
||||
| [ ] | 토스판 광고 — 결정함(11/23): 토스판에만 보상 없는 '광고 보고 응원하기' 카드(`tossAd.tsx`), 웹·앱은 계속 '광고 없음'. 광고 그룹 `보상형 광고 1차(각)`가 2026-12-02 에 삭제 예정이라 그 전에 `build:toss` 번들을 콘솔에 올려 노출시켜야 함(검수 3~5영업일). 운영 번들은 `frontend/.env.toss` 에 `VITE_TOSS_REWARD_AD_ID`(라이브 ID)를 넣고 만들 것 — 없으면 테스트 ID 로 동작 | 앱인토스 메일(11/23) | `frontend/src/b/tossAd.tsx` |
|
||||
| [ ] | 앱인토스 사전 확인 — 시간대별 밤 배경이 '라이트 모드' 규칙에 걸리는지, 네이버 지도 링크가 '단순 정보 확인' 예외인지 채널톡 문의 | 앱인토스 검토 | `frontend/src/b/BLayout.tsx`, `frontend/src/b/ui.tsx` |
|
||||
| [ ] | **[결정 필요]** 각 34개 정리 — 계절 밖 각(10월 물놀이·냉면) 노출 막기(각별 '보여 줄 달'), 나쁜 일 예고 각(택시대란·배달폭주·김서림·화장붕괴)을 순위에서 빼고 '조심' 카드로, 날씨 관계 약한 재미 각(공부·넷플릭스·짬뽕·막걸리·뜨아·군밤·집콕) 축소 또는 '재미' 표시 (https://claude.ai/artifact/4WgpUjdNqdSNnMN4ASB4BB) | 토스판 전략 검토 | `backend/seed/index_definition.json`, `backend/services/index_service.py` |
|
||||
| [ ] | 글 재고 부족 — 25편(한 문장 8·시 3·상식 4·계절 9)이라 매일 보면 1~2주 안에 반복, 계절 글은 10월분뿐. 기획의 'AI 주 1회 생성'이 스케줄러에 없음. 8주치 재고 또는 생성·검토 파이프라인 | 토스판 전략 검토 | `backend/seed/article.json`, `backend/scheduler/jobs.py` |
|
||||
| [ ] | **[결정 필요]** 노을 알림 재검토 — 10/2에 제외했지만 토스 알림은 정보성만 허용돼 "오늘 노을 좋음"이 가장 맞는 알림. 토스판 핵심 후보 | 토스판 전략 검토 | |
|
||||
| [ ] | **[결정 필요]** 히어로 숫자 5개(기온·체감·불쾌지수·날씨 점수·1위 각 점수) — 불쾌지수 여름만, 날씨 점수 유지 여부 | 토스판 전략 검토 | `frontend/src/b/TodayPage.tsx` |
|
||||
| [x] | 토스판 방식 — WebView로 결정(10/12). 별도 프로젝트 없이 `frontend/`에 토스 빌드 모드 추가, RN은 독립 앱만 | 토스판 전략 검토 | `frontend/` |
|
||||
| [x] | 앱인토스 appName 정식 이름으로 교체 — 콘솔 앱 `nalssigak`으로 맞춤(10/13). 정식 앱 등록 후 두 곳을 같이 바꾸고 `npm run build:toss` 다시 실행 | 콘솔 테스트 앱으로 먼저 등록 | `frontend/apps-in-toss.config.ts`, `frontend/src/lib/platform.ts` |
|
||||
| [x] | 전체 날씨 점수 기준 강화 — 100점은 '1년에 하루' 수준으로만 → 각과 같은 계산에 기준만 좁힘(체감 21±0.5°·습도 45~55%·해 90%↑·바람 1m/s↓·초미세먼지 10↓, 사용자 결정 '기준만 좁히기'). 실제 연 몇 번 나오는지는 미확인 (`docs/점수_계산식.md` 3) | 10/8 회의 결정 | `backend/services/index_service.py:203` |
|
||||
| [x] | 각 점수를 아침·낮·저녁·밤 시간대별로 → 지금 구간 점수로 순위, 안 겹치는 각은 순위·피드에서 빼고 스토리·전체엔 '지금 아님'. 히어로는 '지금 날씨 점수'(지금 구간). 운영 DB에 `index_score.slots` 칸 추가 필요(배포 때 `init.sql`의 ALTER) | 10/8 회의 결정 | `backend/services/calc/index_calc.py:297` |
|
||||
| [x] | 히어로에 습도·불쾌지수 항상 표시 → 4칸(지금·습도·불쾌지수·상황 1칸, 사용자 결정). 불쾌지수 75 이상이면 경고 색, 상황 칸 후보에서 불쾌지수 뺌 | 10/8 회의 결정 | `frontend/src/b/TodayPage.tsx` (`HeroStat`) |
|
||||
| [x] | 달: '밝기 %' 표시 뺌 → 모양 + 잘 보이는지(구름·뜨고 지는 시각). 모양은 실제 해·달 황경 차이로(예전 계산은 보름을 반나절 일찍 판정). 별보기각은 빛나는 면 × 떠 있는 비율 (사용자 결정) | 10/8 회의 | `backend/services/calc/moon.py` |
|
||||
| [x] | 노을: 점수 강조(히어로에 점수 크게) → 사용자가 '29점이 키포인트 정보냐'고 해 히어로는 다시 시각 크게, 점수는 결론 카드 아래 줄로(10/12). 골든아워·블루아워 설명. 결론은 다음에 오는 것(해 뜨기 전·밤엔 일출, 그 사이엔 노을)으로, 피드 노을 카드도 같이 (사용자 결정 '각·노을도 지금 기준') | 10/8 회의, 사용자 결정 | `frontend/src/b/SkyPage.tsx`, `backend/services/sky_service.py` |
|
||||
| [x] | 주말 예보 UI 개선 → 피드 주말 예보 카드: 토·일 칸을 제목 바로 아래로(칸이 바닥에 붙어 가운데가 비어 오류처럼 보였음), 칸마다 '이날 할 만한 각' 3개 (사용자 의견) | 10/8 회의 | `frontend/src/b/WeekPage.tsx` |
|
||||
| [ ] | AEO·SEO 메타데이터 + 구글·네이버 검색 등록 (금일 핵심 업무), 넣은 태그·키워드 정의서 작성, 매시간 갱신 콘텐츠 노출 방식 정리 → 대표 보고. 도메인은 별도 유지 | 10/8 회의 결정 | `frontend/index.html`, `docs/` |
|
||||
| [ ] | `docs/콘텐츠_구현기획.md` 2-1의 오늘 날씨 점수 식이 예전 기준(기온 40·비 30·바람 15·미세먼지 15) — 새 기준은 `docs/점수_계산식.md` | 점수 계산식 정리 중 발견 (10/8) | `docs/콘텐츠_구현기획.md` |
|
||||
| [x] | 콘텐츠 구현 기획 문서 2-1의 오늘 날씨 점수 식이 예전 기준(기온 40·비 30·바람 15·미세먼지 15) — 그 문서를 지워(10/29 docs 정리) 해당 없음. 기준은 `docs/점수_계산식.md` | 점수 계산식 정리 중 발견 (10/8) | |
|
||||
| [ ] | **[결정 필요]** 각 순위가 점수 순이 아니라 보임 — 순위가 점수 × 중요도라 환기각 92점(하)이 5위, 골프각 89점이 3위, 빨래각 83점이 2위. 각 탭 받침대·스토리에서 높은 점수가 뒤에 있어 어색함. 점수를 순위대로 보여줄지, 중요도 가중을 줄일지 | 화면 직접 확인 중 발견 (10/12) | `backend/services/calc/index_calc.py` (`PRIORITY_WEIGHT`), `frontend/src/b/GakPage.tsx` |
|
||||
| [x] | 노을 점수 29점(잿빛)인데 결론 '나가 볼 만해요' — 결론이 구름 분포만 보고 공기 보정(가시거리·습도)을 안 봤음 → 공기 보정 0.7배 미만이면 결론 한 단계 낮추고 이유에 공기 표시, '해 질 무렵(N시) 예보 기준' 표시. 운영 DB에 `sky_score.air` 칸 추가 필요(배포 때 `init.sql`의 ALTER) | 사용자 지적 (10/12, 분당구) | `backend/services/sky_service.py` (`day_verdict`, `build_plan`), `backend/services/calc/sky_score.py` (`air_note`) |
|
||||
| [x] | 노을 탭 다시 짜기 → 시안 A(사용자 선택): 히어로 '오늘은 애매해요 / 18:10쯤 가장 붉어요 / 쉬운 이유', 내일 안내 바로 아래, 숫자는 '자세히', 시간표에 가장 붉을 때 — 처음 보면 '그래서 가?'에서 멈춤: 히어로 18:00이 무슨 시각인지 없음, 결론 카드가 좋은 말·나쁜 말을 섞음, 구름 %·예보 모델 수 같은 전문 용어, '가장 붉을 때'가 시간표에 없음, '내일이 더 나아요'가 맨 아래. 시안 먼저 보고 결정 | 사용자 지적 (10/12) | `frontend/src/b/SkyPage.tsx`, `backend/services/calc/sky_score.py` (`reason`) |
|
||||
| [ ] | 토스 로그인 운영 설정 — 서버 `secrets/toss/` 인증서·키, `.env` `TOSS_*` 세 줄은 넣음(10/14). 남은 것: 정산정보 등록(대표님), 배포, 콘솔 약관 링크·콜백, `4050 인증서버에 등록된 미니앱이 아닙니다` 재확인 | 토스 로그인 구현(10/14) | `compose.yaml`, `.env.example`, `backend/config/settings.py` |
|
||||
| [ ] | 토스 번들 다시 만들기 — 로그인(4050) 풀린 뒤 `npm run build:toss`로 한 번에. 지금 콘솔 번들엔 로그인·GA `platform` 값이 없음. 로그인 실패 상태로 검수 올리면 반려 위험 | 로그인 미완성이라 미룸(10/14) | `frontend/` |
|
||||
| [ ] | **[결정 필요]** 토스 연결 끊기 처리 — 지금은 UNLINK·탈퇴 모두 토큰만 무효로 함. 토스 탈퇴(`WITHDRAWAL_TOSS`·`WITHDRAWAL_TERMS`) 때 계정·댓글을 지울지 | 토스 로그인 구현(10/14) | `backend/services/auth_service.py` |
|
||||
| [ ] | 토스 로그인 문구 검토 — '토스로 로그인', '토스로 로그인했어요', '토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.', 기본 닉네임 '토스1234'(userKey 끝 4자리), 로그인 창 '날씨각 로그인'·'로그인하면 동네 이야기를 쓰고 내 각을 저장할 수 있어요', 인트로 '오늘 날씨에 맞는 일을 점수로 알려 줘요'·'세차·빨래·러닝 각 점수'·'오늘 노을이 예쁜 시간'·'이번 주말 가까운 행사'·'시작하기'(10/24) | 토스 로그인 구현(10/14) | `frontend/src/b/Sheets.tsx`, `backend/services/auth_service.py` |
|
||||
| [ ] | 토스판 첫 실행에 인트로와 위치 권한 창이 같이 뜸 — 위치 권한은 앱이 뜨자마자 물어서 인트로 위에 겹칠 수 있음. '시작하기' 뒤로 미룰지 토스 앱에서 확인 | 인트로 추가 (10/24) | `frontend/src/b/region.tsx`, `frontend/src/b/tossIntro.tsx` |
|
||||
| [ ] | 메뉴의 '로그인하면 좋아요·댓글을 쓸 수 있어요' — 좋아요·댓글은 로그인 없이 됨(10/21 결정)이라 문구가 틀림 | 인트로 추가 중 발견 (10/24) | `frontend/src/b/Sheets.tsx:1117` |
|
||||
| [ ] | 토스 웹뷰에서 유튜브 플레이어가 보내는 재생 상태(postMessage)가 페이지에 오지 않음 — 원인 미확인(origin 불일치? 토스 브리지?). 그래서 토스판 쇼츠는 숨기기·명령 없이 유튜브 기본 플레이어 사용. 원인 찾으면 웹과 같은 UI로 합칠 수 있음 | 토스판 쇼츠 재생 안 됨 (10/26) | `frontend/src/b/Shorts.tsx` |
|
||||
| [ ] | 댓글 신고·차단 — 앱인토스 필수 아님(신고·차단 필수는 채팅·만남·중고거래만, 서비스 오픈 정책·서비스별 주의사항). 만들지 않기로 함(10/14). 검수에서 요청이 오면 만든다 | 토스 로그인 구현(10/14) | |
|
||||
| [x] | 각 늘리기 53→68 — 리서치로 고른 8개(한강·놀이공원·데이트·곱슬머리·보일러·선크림·모기·테니스) + 감성 7개(효도·감사·선물·파티·게임·셀카·센치), 아이콘 15개(Codex) | 사용자 요청 (10/20, 리서치 https://claude.ai/artifact/3ZQbtGKRLVZViRRC5voBzY) | `backend/seed/index_definition.json`, `frontend/public/icons/`, `frontend/src/b/lib.ts` |
|
||||
| [ ] | **[결정 필요]** 한강각·놀이공원각이 강·놀이공원 없는 동네에도 나옴 — 각을 지역별로 가려 보여 주는 기능이 없음(한강밤바람각도 같음). 서울·한강 인접 구만 보일지 | 새 각 추가 중 발견 (10/20) | `backend/seed/index_definition.json`, `backend/services/index_service.py` |
|
||||
| [ ] | **[결정 필요]** 기존 각과 겹침 — 센치↔감성노래, 게임↔넷플릭스·집콕, 곱슬머리↔화장붕괴, 효도↔트로트, 셀카↔사진산책. 둘 다 둘지 합칠지 | 새 각 추가 중 발견 (10/20) | `backend/seed/index_definition.json` |
|
||||
| [ ] | 감사각은 '어제보다 날씨가 크게 바뀐 날'을 못 봄 — 지금은 덥거나 춥거나 비 오면 높음. 전날 대비 기온 변화 요소를 계산에 넣을지 | 새 각 추가 중 발견 (10/20) | `backend/services/calc/index_calc.py` |
|
||||
| [ ] | 테스트 2개가 날짜·시각에 따라 깨짐 — `test_feed` 스토리 수 40 고정(10월엔 계절 각이 늘어 다름, 각 추가 전 42·후 57), `test_weather_today` 7번째 칸이 시각에 따라 노을/달 | 새 각 추가 중 테스트에서 발견 (10/20) | `backend/tests/test_feed.py:64`, `backend/tests/test_weather_today.py` |
|
||||
| [x] | 내 각 만들기 '있는 각에서 불러오기' 문구 검토 — 그대로 쓰기로 확정 (10/21) | 각 불러오기 카로셀 추가 (10/21) | `frontend/src/b/myGak.tsx` |
|
||||
| [ ] | 내 각 만들기 숫자 칸이 좁아 세 자리(습도 100)가 잘림 — 불러온 각에 100이 자주 나옴 | 각 불러오기 카로셀 확인 중 발견 (10/21) | `frontend/src/b/myGak.tsx` `Num` |
|
||||
| [ ] | 불러온 각 점수가 공식 각과 다름 — 더울수록·멀수록·바람 셀수록·요일 같은 규칙은 내 각 조건으로 비슷하게만 옮기거나 뺌(파티·게임·감사각은 비 조건만 남음) | 각 불러오기 카로셀 추가 (10/21) | `backend/services/calc/my_gak_calc.py` `preset` |
|
||||
| [x] | 피드에 사람 글이 6개까지만 보임 — 20개를 받고 운영 포스트 3개마다 1개씩만 끼움(포스트 18개 → 6개). 나머지 14개와 다음 페이지는 안 보임 | 피드 정렬 점검 (10/21) | `frontend/src/b/TodayPage.tsx:419`, `frontend/src/b/talkState.ts` |
|
||||
| [x] | 방금 쓴 글을 지워도 글쓰기 칸 아래에 남음 — 화면에만 들고 있는 내 글 목록(`mine`)에서 빼지 않음 | 피드 정렬 점검 (10/21) | `frontend/src/b/TodayPage.tsx:366`, `frontend/src/b/talk.tsx:201` |
|
||||
| [x] | 내가 쓴 글 모아 보기 없음 → 내 정보 창에 '내 글' 목록(10/21) — 새로고침하면 위 고정이 풀리고 전국 최신순에 섞여 6개 안에 못 들면 못 찾음. 내 정보 창에 '내 글' 목록을 둘지 | 피드 정렬 점검 (10/21) | `backend/crud/talk_crud.py`, `frontend/src/b/Sheets.tsx:870` |
|
||||
| [x] | 사람 글 정렬이 전국 최신순뿐 → 같은 시도 글 12시간 앞당김, 같은 사람 연속 금지(10/21) — 우리 동네 글 우선 없음, 한 사람이 하루 5개 쓰면 피드 사람 글 칸을 거의 다 차지함 | 피드 정렬 점검 (10/21) | `backend/crud/talk_crud.py:27` |
|
||||
| [ ] | **[결정 필요]** 내 글 문구 검토 — '내 글', '아직 쓴 글이 없어요', '더 보기'를 확인받지 않고 넣음 | 피드 정렬 개선 (10/21) | `frontend/src/b/talk.tsx` `MyTalks` |
|
||||
|
||||
## 인스타 홍보 (10/20 기획)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | **[결정 필요]** 인스타 계정 이름·화자 — 토끼·곰 캐릭터를 말하는 사람으로 쓸지 | 인스타 홍보 기획 | `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | **[결정 필요]** '오늘의 각' 카드 기준 지역 — 서울만 / 서울·부산 2장 / 시도별 | 전국 계정인데 각은 동네마다 다름 | `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | **[결정 필요]** '화제 × 날씨'에 쓰지 않을 주제 목록과 올리기 전 검토 담당 | 역풍 위험 (사고·재난·정치·연예인 사생활) | `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | **[결정 필요]** 날씨 타로 카드 앞면 그림(날씨별 한 벌) 제작 담당 — 4주 실험, 보내기·저장·댓글이 계정 평균 못 넘으면 중단 | 운세 결합 판단 (10/20 띠별 대신 타로로 결정) | `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | **[결정 필요]** 인스타 카드 자동 생성 — 공유 이미지 카드를 4:5로 뽑는 기능을 만들지, 처음엔 사람이 만들지 | 매일 게시 비용 | `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | **[결정 필요]** 오늘의 OOTD(아침 카드 2장째) — 캐릭터 옷 그림을 기온 구간별로 한 벌 만들 담당과 구간 기준 (히어로 일교차 '아침엔 겉옷'·주말 옷차림 팁과 같은 기준을 쓸지) | 10/20 OOTD 추가 결정 | `docs/인스타_운영.md` 2장, `backend/services/hero_stats.py`, `backend/services/weekend_plan.py` |
|
||||
| [ ] | 인스타 매일 자동 생성 — `admin/`이 예보 갱신 직후 날씨각 API에서 각 순위·기온·OOTD 구간을 HTML 틀에 넣어 JPEG(4:5)로 저장, 그림은 미리 만든 한 벌 재사용 (10/20 사용자 결정: 자동 생성 + 승인 + 자동 게시, 저장소 안 관리자 프로젝트 `admin/`의 기능 하나, API는 공용) | 인스타 홍보 7장 | `admin/`, `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | `admin/` 관리자 화면 — (10/21 됨: 인스타 카드 미리보기·문구 수정·JPEG 내려받기, `npm run card` 대화용 명령, 템플릿 3종) 남은 것: 매일 자동 생성 저장·승인/반려·게시 결과, 관리자 로그인(지금은 로그인 없이 로컬에서만), 배포(compose). 10/21 추가로 됨: 지역 콘텐츠 제거(오늘의 각 템플릿 삭제, 서울 예보 기준), 코디 6명, Claude 주제 기획·피드백 재기획(웹·`npm run card --topic`) | 인스타 홍보 7장 | `admin/`, `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | `admin/` 인스타 API 자동 게시 — 승인된 게시물을 정한 시각에 게시, 승인 마감까지 승인 없으면 게시 안 함. 이미지는 공개 주소에 JPEG | 인스타 홍보 7장 | `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | **[결정 필요]** 매일 승인 담당자·승인 마감 시각·게시 시각, 프로페셔널 계정 전환과 Meta 앱 생성 담당(우리 계정만 쓸 때 앱 검수 필요한지 확인) | 인스타 홍보 7장 | `docs/인스타_운영.md` 2장 |
|
||||
| [ ] | **[결정 필요]** 인스타 카드 기본 문구 검토 — 템플릿 3종(`admin/src/cards/templates.tsx` `defaults`)의 기본 문구와 OOTD 기온 구간·옷 이름(`admin/src/cards/ootd.ts`)이 아직 검토 전. 타로 결과 장 문장은 '각 요약 + ○○이 가장 좋아요'라 세 장이 비슷하게 나올 수 있음 | 관리자 프로젝트 첫 구현 (10/21) | `admin/src/cards/templates.tsx`, `admin/src/cards/ootd.ts` |
|
||||
| [x] | OOTD 옷 그림 — 지금은 낮 최고 17~22도 구간 한 장만 있음, 나머지 6구간은 옷 이름만 나감. Codex로 구간별 플랫레이(사람·얼굴 없이) 생성 → 10/21 프롬프트 템플릿(`admin/image-prompts/ootd.json`) + `npm run gen-image`로 7구간 모두 생성, 그림이 있으면 카드에 자동으로 붙음 | 관리자 프로젝트 첫 구현 (10/21) | `admin/src/assets/`, `admin/src/cards/ootd.ts` |
|
||||
| [ ] | 코디 그림 6명 × 7구간(42장) 중 7장만 있음 — 오늘 구간(12~16도) 5장은 Codex 사용 한도로 실패(10/21 14:36 이후 가능). `cd admin && npm run gen-image -- ootd missing` | 코디 6명 나누기 (10/21) | `admin/image-prompts/ootd.json`, `admin/src/assets/ootd/` |
|
||||
| [ ] | 전국 노을 랭킹·주말 나들이 랭킹 템플릿 — 백엔드 API 있음(`/v1/sky/ranking`, `/v1/week/ranking`, 대표 30곳). 디자인은 Codex로, 그 시기에 뜨는 템플릿이 먼저 보이게 | 사용자 요청 (10/21) | `admin/src/cards/templates.tsx`, `backend/router/v1/sky/sky.py`, `backend/router/v1/week/week.py` |
|
||||
| [ ] | **[결정 필요]** 전국 단풍 랭킹 — 백엔드에 전국 단풍 순위 데이터가 없음. 데이터 출처(산림청·기상청 단풍 시기, 단풍각 점수로 대표 30곳 계산 등) 결정 필요 | 사용자 요청 (10/21) | `backend/` |
|
||||
| [ ] | 관리자 '날씨각·인스타에 올리기' 버튼 — 10/23 날씨각 쪽 됨: 카드뉴스 포스트 타입 16·`card_set`/`card_image` 테이블·`/v1/card` API(X-Admin-Key)·피드 이미지 슬라이드·관리자 '지금 올리기/승인 대기로 저장'·`npm run card --post/--post-wait`. 10/23 운영 반영: main 병합·킹서버 배포·`ADMIN_API_KEY` 설정, 관리자에서 로컬·킹서버 골라 올리기. 인스타는 토큰만 넣으면 됨(인스타 연결 행) | 사용자 요청 (10/21) | `admin/src/pages/CardsPage.tsx`, `backend/router/v1/feed/` |
|
||||
| [ ] | 주제별 타로 카드 뒷면 5장(하트·동전·별·클로버·반짝이) — 프롬프트 템플릿 `admin/image-prompts/tarot.json` 준비됨, Codex 한도 풀리면(10/21 14:36~) `cd admin && npm run gen-image -- tarot missing`. 생기면 카드에 자동으로 붙음 | 주제 베리에이션 (10/21) | `admin/image-prompts/tarot.json`, `admin/src/assets/tarot/` |
|
||||
| [x] | 인스타 연결 — 계정 @nalssigak(BUSINESS), Meta 앱 토큰·계정 ID를 로컬 `~/projects/o2o-weather/.env`와 킹서버 `.env`에 넣고 백엔드 재생성(10/23). 관리자 '인스타에 올리기'로 킹서버 카드 1 → 인스타 미디어 18240295243316450 게시 성공. 남은 것: 토큰 60일 갱신(`GET /refresh_access_token?grant_type=ig_refresh_token`, 만료 2026-12-22쯤) 자동화 | 사용자 요청 (10/23) | `backend/services/external/instagram.py` |
|
||||
| [ ] | **[결정 필요]** 인스타 카드 매일 자동화(서버) — 흐름: 매일 아침 서버가 Claude 기획(Claude Code 플랜, `claude setup-token` 토큰) → 카드 이미지까지 생성 → Teams 채널에 미리보기 카드(Workflows 웹훅 + Adaptive Card, 승인 / 고치기 버튼은 우리 서버 링크 — 그날 게시물에만 통하고 기한 지나면 막힘, 이미지는 공개 주소 필요) → 승인 시 정한 시각에 인스타·날씨각 업로드 → 성과 추적. 마감까지 승인 없으면 올리지 않음. 정할 것: 알림 받을 Teams 채널·Workflows 웹훅 만들 계정(만든 사람 소유라 공용 계정 권장)·생성/마감/게시 시각, 서버에 Claude Code CLI·Chrome·admin 설치(운영 변경, 확인 받고), 플랜 토큰을 서버 자동 실행에 쓰는 것이 약관상 괜찮은지 확인 | 사용자 제안 (10/21) | `admin/`, `backend/scheduler/` |
|
||||
| [ ] | 기존 실패 테스트 2개 — `test_feed.py::test_feed_assembles_hero_stories_posts_and_bands`(stories 40 기대, 실제 42: 각 개수 늘어남), `test_weather_today.py::test_today_fetches_stores_and_returns_8_slots`(18시 칸 아이콘이 시각에 따라 sunset/moon). 카드뉴스 작업 전 코드에서도 같은 실패 | 카드뉴스 작업 중 발견 (10/23) | `backend/tests/test_feed.py`, `backend/tests/test_weather_today.py` |
|
||||
| [ ] | 인스타 카드 서버 매일 자동 생성 + Teams 승인 — 서버에 Claude Code CLI(플랜 토큰)·Codex·Chrome·admin 설치, 매일 `npm run card -- tarot --post-wait` 후 Teams 웹훅(이미 있는 `backend/services/external/teams_webhook.py`)으로 미리보기·승인 링크. 운영 변경이라 확인 받고 | 인스타 홍보 7장 | `admin/scripts/card.mjs`, `backend/router/v1/card/card.py` |
|
||||
| [x] | Playwright 끝까지 테스트 — 관리자(5175) → 연애·썸 → 만들기(Claude) → 지금 올리기 → 로컬 날씨각(9812 테스트 DB) 피드 2번째에 '날씨각 카드' 노출·이미지 로드 확인 (10/23 통과). 스크립트는 세션 임시 폴더에만 있음 | 사용자 요청 (10/23) | `admin/`, `frontend/src/b/Post.tsx` |
|
||||
| [ ] | 로컬 Postgres(docker 5440) 반복 크래시 — 10/23 2시간에 4번 복구 모드, 10/20 로그에 'No space left on device'. 도커 VM 디스크 98G 중 46G 사용, 이미지 29G 중 19.8G·볼륨 15.9G 중 13.5G 정리 가능. 다른 프로젝트 공용이라 정리 전 확인 필요 | 테스트 중 발견 (10/23) | docker |
|
||||
| [x] | 킹서버 반영 (10/23) — main 병합·배포 2회(카드뉴스 API·nginx 본문 한도 40m), `ADMIN_API_KEY` 설정, '오늘의 썸 타로' 카드 1 → 포스트 3337로 오늘 피드 2번째에 게시, 이미지 https://weather.o2o.kr/v1/card/1/1.jpg 확인 | 사용자 요청 | `deploy.sh`, `frontend/nginx.conf` |
|
||||
| [ ] | 인스타 토큰 자동 갱신 — 장기 토큰은 60일 만료. 워커에 주 1회 `refresh_access_token` 잡을 넣고 새 토큰을 어디에 둘지(.env는 재생성 필요 → DB/Redis 저장) 결정 | 인스타 연결 (10/23) | `backend/scheduler/`, `backend/services/external/instagram.py` |
|
||||
| [ ] | 킹서버 `.env` 바꾼 뒤 `docker compose restart`는 환경변수를 다시 읽지 않음 — `docker compose up -d --force-recreate <서비스>`로 해야 함. deploy.sh/문서에 적기 | 인스타 연결 중 발견 (10/23) | `deploy.sh`, `backend/docs/README.md` |
|
||||
| [ ] | 어제(10/23) 인스타 썸 타로 글(https://www.instagram.com/p/De1E3uRIKHE/)은 3번 장(드라이브각)이 그림 없이 아이콘 — 드라이브각 그림은 10/24 만들었지만 날짜가 지나 재게시 안 함. 그 글을 앱에서 지울지 그냥 둘지 결정 | 10/24 | — |
|
||||
| [x] | 10/24 나들이 타로(등산각·드라이브각·한강각, 질문 "어느 곳으로 나들이를 가면 좋을까요?") 킹서버 카드 2 → 포스트 3648, 인스타 https://www.instagram.com/p/De3N7LnIJyZ/ 게시. 같은 날 오늘의 코디(캐주얼, mild 구간 그림 재사용) 킹서버 카드 3 → 포스트 3649, 인스타 https://www.instagram.com/p/De3OVz6oC9e/. 그림 생성 모델: `gpt-6-luna`는 그림을 파일로 저장 못 해 실패, `gpt-6-sol`·low로 바꿔 성공(장당 ~28k 토큰) | 사용자 요청 (10/24) | `admin/scripts/gen-image.mjs` |
|
||||
| [x] | 10/24 날씨각 소개 카드(인스타 전용, 8장, `intro` 템플릿 — Codex gpt-6-sol이 설계) 인스타 https://www.instagram.com/p/De3SUTtoDGR/ 게시. 킹서버엔 카드 4로 저장만(승인 대기, 피드엔 안 나감). 해시태그는 `card_set.hashtags`로 인스타 캡션에만 붙음(타로·코디 템플릿도 적용) | 사용자 요청 (10/24) | `admin/src/cards/templates.tsx`, `backend/router/v1/card/card.py` |
|
||||
| [ ] | 인스타 릴스(20초, 2.5D: Codex 3D 렌더풍 배경 + 카메라 패럴랙스, 무료 BGM, API로 업로드) — 백엔드에 mp4 공개 주소 + REELS 게시 추가 필요 | 사용자 요청 (10/24) | `backend/services/external/instagram.py` |
|
||||
| [ ] | 인스타에 올라간 불량 게시물 삭제(앱에서만 가능): 소개 카드 De3SUTtoDGR·De3ycbAIPVw(스샷 잘림)·De31G7VIBEc(7·8번 장 치우침), 릴스 18152745022535272(폰 잘림), 10/25 꾸안꾸 코디 De58VfXINy0(20-30대와 40대~ 옷이 같음)·De5-8gboL-c(40대 여자 롱가디건·여름 옷)·De6B2gwIMXF(이름표 자리 어긋남) — 킹서버 포스트 3961·3962·3963은 deleted=true로 숨김 | 10/24·10/25 검수 실패 | — |
|
||||
| [ ] | 소개 카드 최종본(`admin/out/2026-10-24/소개카드_1~8.jpg`, 10/24 21:54 — 8장 1:1 검수 완료, 모서리 캐릭터는 1번만·4·6·8번은 3D 스틸 안 캐릭터)과 3D 릴스(`admin/out/2026-10-24/릴스_3D.mp4`·표지 `릴스_3D_표지.jpg`, 21프레임 검수 완료) — 사용자가 "올려"라고 할 때만 올림. 릴스 음악은 HeyGen 로그인(`~/.local/bin/heygen auth login --oauth`) 뒤 `npx hyperframes media-use resolve --type bgm` | 10/24 | `admin/reels/intro3d/` |
|
||||
| [x] | 코디 옷 데이터 — 세미정장·정장·스트릿·꾸안꾸 4스타일은 7개 기온 구간 전부 20-30대와 40대~ 옷이 같음(캐주얼만 다름, warm·꾸안꾸는 10/25 고침). 40대~ 여/남 옷 목록 54개를 새로 써서 검토받고 반영 — 10/26 그날 코디(--daily)로 대체해 고정 데이터는 예비용만 | 10/25 발견 | `admin/image-prompts/ootd.json` |
|
||||
| [x] | 코디 카드 매일 다르게 — 고정 옷 데이터 대신 무신사 스냅 공개 API에서 오늘 구간 인기 코디를 사람별(40대~ 단정 태그 우선)로 골라 Claude가 옷 목록 추출, Codex가 참고 사진 첨부로 플랫레이 생성(`npm run card -- ootd --daily`, `/daily-cards`). 10/26 4장 검수 통과. 에이블리는 공개 API 없음(앱 전용)이라 미사용 | 사용자 요청 (10/26) | `admin/scripts/daily-ootd.mjs`, `snap.mjs`, `outfit.mjs`, `codex-image.mjs` |
|
||||
| [x] | 10/26 세미정장 코디(그날 코디 첫 게시) — 킹서버 카드 12→포스트 4275, 인스타 https://www.instagram.com/p/De8O2kqATrl/. 무신사 스냅 4개 참고, 4장 1:1 검수 | 사용자 요청 (10/26) | `admin/scripts/daily-ootd.mjs` |
|
||||
| [x] | 10/26 몸 컨디션 타로(건강: 등산각·자전거각·산책각) — 킹서버 카드 13→포스트 4276, 인스타 https://www.instagram.com/p/De8Zw7MIEVW/. 기획에서 3번 산책각 비 시점 틀린 것 피드백으로 고침. card.mjs --post-wait 가 ECONNRESET 으로 두 번 실패해 post-king.py 로 저장 | 사용자 요청 (10/26) | `admin/scripts/card.mjs` |
|
||||
| [x] | 10/27 계좌 타로(철회: 경제와 무관한 각이라는 피드백, 포스트 4587 숨김 필요·인스타 앱에서 삭제 필요 / 경제 주식: 멍뭉산책각·꽃구경각·사진산책각) — 킹서버 카드 14→포스트 4587, 인스타 https://www.instagram.com/p/De-eiqPgZ7K/. 검수에서 2번 예보에 없는 바람 문구 빼고, 3번 '해 질 녘 8도'를 '저녁 6시 10도'로 고침, 5번 장식 점이 아래 문구를 가려 위로 옮김. card.mjs --post-wait 는 또 ECONNRESET 이라 post-king.py 로 저장 | 사용자 요청 (10/27) | `admin/scripts/card.mjs` |
|
||||
| [x] | 10/27 계좌 타로 다시(철회: 제목을 '오늘 내 주식'으로, 포스트 4590 숨김 필요·인스타 앱에서 삭제 필요 / 경제 전용 카드: 분할매수각·적금각·배당각) — 킹서버 카드 20→포스트 4590, 인스타 https://www.instagram.com/p/De-p3dygf1K/. 경제 전용 카드 10장(`admin/money-deck.json`, 그림 `gak-card/money_*.webp`) 새로 만듦, 경제 주제는 이 카드에서 오늘 날씨에 맞는 3장을 고름 | 사용자 요청 (10/27) | `admin/money-deck.json`, `admin/scripts/plan.mjs` |
|
||||
| [x] | 10/27 주식 타로(경제 전용 카드: 분할매수각·적금각·배당각) — 킹서버 카드 21→포스트 4591, 인스타 https://www.instagram.com/p/De-qodJAXp9/ | 사용자 요청 (10/27) | `admin/topics.json` |
|
||||
| [x] | 10/27 스트릿 코디(철회: 겉옷 없는 사람 2명·남성적이라는 피드백, 포스트 4588 숨김 필요·인스타 앱에서 삭제 필요) — 킹서버 카드 16→포스트 4588, 인스타 https://www.instagram.com/p/De-hDoVge1N/. 참고 스냅 f20 https://www.musinsa.com/snap/1554718501896708736 · m20 https://www.musinsa.com/snap/1561558258020785611 · f40 https://www.musinsa.com/snap/1552178778683619999 · m40 https://www.musinsa.com/snap/1549383828670555308. 사용자 요청으로 옷은 스냅에 태그된 무신사 상품만(사진에만 보이는 f20 레드 니트집업·m40 백팩 뺌). 에이블리는 공개 API 없음. 카드 15(고치기 전)는 승인 대기로 남음. 인스타 게시 API가 'Application request limit reached'를 돌려줬지만 실제 게시는 됨 | 사용자 요청 (10/27) | `admin/scripts/outfit.mjs`, `snap.mjs` |
|
||||
| [x] | 10/27 캐주얼 코디(스트릿 대체) — 킹서버 카드 19→포스트 4589, 인스타 https://www.instagram.com/p/De-oLGagZRB/. 참고 스냅 f20 https://www.musinsa.com/snap/1555508873710779888 · m20 https://www.musinsa.com/snap/1555156725005269012 · f40 https://www.musinsa.com/snap/1555157672544679299 · m40 https://www.musinsa.com/snap/1552193811640384198. 구간을 아침 체감·낮 최고 평균으로 정해 chilly, 쌀쌀한 날 겉옷 필수·미니·뮬/슬링백 제외, 여자 코디는 고프코어 감점. 카드 15·16·17·18은 버린 판 | 사용자 요청 (10/27) | `admin/scripts/snap.mjs`, `daily-ootd.mjs` |
|
||||
| [x] | 10/27 서울 근교 단풍 TOP 10 카드뉴스(매주 목요일 시리즈 첫 회) — 킹서버 카드 22→포스트 4592, 인스타 https://www.instagram.com/p/De-1vM_gVN8/. 캡션 첫 줄에 제목이 두 번 나옴(서버가 제목을 붙이는데 캡션도 제목으로 시작), 인스타 API가 request limit을 돌려줘 ig_media_id 미기록 | 사용자 요청 (10/27) | `admin/src/cards/templates.tsx` |
|
||||
| [x] | 10/28 세미정장 코디(철회: 20-30대 남자에 나팔바지라는 피드백, 포스트 4903 10/28 삭제함(deleted=true)·인스타 앱에서 삭제 필요) — 킹서버 카드 23→포스트 4903, 인스타 https://www.instagram.com/p/DfBIhUdAbbV/. 참고 스냅 f20 https://www.musinsa.com/snap/1560205304641814679 · m20 https://www.musinsa.com/snap/1551785083122597386 · f40 https://www.musinsa.com/snap/1551572173880406114 · m40 https://www.musinsa.com/snap/1556284432455808475. 4장 1:1 검수. 크롬이 2번째 장 렌더에서 멈춰 장마다 프로필을 따로 써서 다시 찍음, 인스타 API는 request limit을 돌려줬지만 실제 게시됨(ig_media_id 미기록) | 사용자 요청 (10/28) | `admin/scripts/card.mjs` |
|
||||
| [x] | 10/28 세미정장 코디 다시(20-30대 남자만 교체: 오피서 코트·헨리넥 니트·다크 브라운 와이드 팬츠·헤비 부츠·토트백, 코디 구성을 먼저 확인받고 그림) — 킹서버 카드 24→포스트 4904, 인스타 https://www.instagram.com/p/DfBJ4SlAaok/. 참고 스냅 m20 https://www.musinsa.com/snap/1562338908609136514 (나머지 3명은 카드 23과 같음). 첫 그림은 상품 썸네일을 따라 바지가 베이지로 나와 스냅 색(브라운)으로 다시 그림 | 사용자 요청 (10/28) | `admin/scripts/daily-ootd.mjs` |
|
||||
| [x] | 10/28 연애 타로(단풍각·데이트각·별보기각, 새 표지: 주제 배지 + 큰 질문) — 킹서버 카드 26→포스트 4906, 인스타 https://www.instagram.com/p/DfBQCW0ARgL/ (ig_media_id 17953447719320497). 처음 올린 카드 25→포스트 4905(인스타 DfBPIHJAR0m)는 행운 포인트가 날씨 정보뿐이라는 피드백으로 철회: 포스트 4905 deleted=true, 인스타 글은 앱에서 삭제됨. 행운 포인트를 "시각 · 행운 아이템"(리딩 속 행동에 쓰는 물건)으로 바꿔 다시 게시. 문구를 먼저 확인받음: 첫 기획의 행운 포인트(6시 1도·10시 바람)를 예보 slot 값으로 고치고, 연애와 관련 없는 카드(해돋이각·테니스각)를 데이트각·별보기각으로 바꿈. 5장 1:1 검수. 인스타 API는 두 번 다 request limit을 돌려줬지만 실제 게시됨(최신 글 확인 후 재시도 안 함) | 사용자 요청 (10/28) | `admin/src/cards/templates.tsx`, `admin/scripts/plan.mjs` |
|
||||
| [x] | 10/30 나들이 타로(억새각·캠핑각·야장각, 질문 "이번 주말, 어디로 놀러 갈까요?", 행운 시각은 토요일 서울 예보) — 킹서버 카드 29→포스트 6713, 인스타 https://www.instagram.com/p/DfGhl5YgUqE/ . 인스타 API가 'Application request limit reached'를 돌려줬지만 실제로 올라가 다시 안 올림(card_set.ig_media_id 는 비어 있음). '나들이'는 대주제 배경(skin)이 없어 star 태그(#공부 #직장인)가 붙던 것을 copy.tags 로 #주말나들이 #주말뭐하지 #가을나들이 #나들이타로 로 바꿈. 관리자 서버가 옛 로컬 백엔드(9810, /v1/index/list 500)를 보고 있어 운영 API(weather.o2o.kr)로 다시 켬 | 인스타 홍보 | `admin/src/cards/templates.tsx` |
|
||||
| [x] | 10/30 할로윈 느낌 캐주얼 코디(블랙·브라운 톤 — 무신사 인기 스냅에 주황 코디가 거의 없어 할로윈 색 중 블랙·브라운으로) — 킹서버 카드 31→포스트 6714, 인스타 https://www.instagram.com/p/DfGj0zRAdhx/ (ig 17864943492694006, 첫 시도 ReadTimeout·둘째 'request limit' 응답이었지만 한 번만 올라감, card_set.ig_media_id 는 비어 있음). 참고 스냅: 20-30대 여자 https://www.musinsa.com/snap/1559108562982052217 · 20-30대 남자 https://www.musinsa.com/snap/1561961004027044406 · 40대~ 여자 https://www.musinsa.com/snap/1564225528677543586 · 40대~ 남자 https://www.musinsa.com/snap/1555156723956691019. 검수에서 스냅 사진과 달라 다시 그림: 20대 여자 플랫 검정→브라운, 40대 여자 부츠 발목→무릎 슬라우치, 40대 남자 하이넥 아이보리→브라운·신발 레이스업→스웨이드 첼시. 첫 카드 30은 반려 | 인스타 홍보 | `admin/scripts/snap.mjs` `--prefer` |
|
||||
| [x] | 각 카드 그림 미리 생성 — 가을에 나올 만한 28장(피크닉·캠핑·놀이공원·빨래·단풍·억새·테니스·골프·군고구마·붕어빵·군밤·사진산책·별보기·환기·세차·이불빨래·데이트·치맥·막걸리·파전·우산·넷플릭스·집콕·한강밤바람·멍뭉산책·센치·감성노래·낚시) + 기존 8 = 36/68. 여름·한겨울 전용 32장은 철 되면 생성 | 사용자 요청 (10/26) | `admin/src/assets/gak-card/` |
|
||||
| [ ] | 카드 자동화 다음 단계 — ① 생성 직후 자동 검사(Claude 비전: 옷 개수·사람·글자·추가 옷, 불합격 1회 재생성) ② 승인 대기 카드 메일/Teams 알림 + 서명 토큰 승인 링크(`GET /v1/card/{id}/approve`) ③ 맥 launchd 매일 06:30 `claude -p "/daily-cards"` ④ 그림 세트가 차면 킹서버로 이전 | 사용자 요청 (10/26) | `backend/router/v1/card/card.py`, `admin/scripts/` |
|
||||
| [ ] | 앱 헤더가 400~448px 폭에서 컨테이너를 넘쳐 로그인 버튼이 잘림(`frontend/src/b/BLayout.tsx` TopBar). 캡처는 456px로 찍어 피했지만 실제 폰(430·440px)에서도 잘릴 수 있음 | 10/24 캡처 중 발견 | `frontend/src/b/BLayout.tsx` |
|
||||
| [ ] | `npm run card`가 크롬 멈춤에 시간 제한이 없음 — 10/24 소개 카드 7번 장에서 헤드리스 크롬이 75분 멈춰 있었음(`--virtual-time-budget`만으론 안 끝남). `execFileSync`에 `timeout`(예: 60초) 주고 실패 시 그 장만 재시도 | 10/24 렌더 중 발견 | `admin/scripts/card.mjs` |
|
||||
| [x] | 10/25 건강·운동 타로(킹서버 카드 7→포스트 3960, 인스타 https://www.instagram.com/p/De5iLg4AS_M/)·꾸안꾸 코디는 처음 올린 카드 8→포스트 3961(인스타 De58VfXINy0)이 40대~ 옷이 20-30대와 같아 숨기고, 40대~ 옷을 새로 써서 카드 9→포스트 3962(인스타 De5-8gboL-c)로 재게시했으나 40대 여자 그림에 롱가디건이 끼고 전체가 여름 옷으로 보여 다시 숨김. 일교차 8도 이상이면 겉옷을 5번째 옷으로 넣게 고쳐 카드 10→포스트 3963(인스타 De6B2gwIMXF)으로 올렸으나 그림 배치와 이름표 자리가 어긋나 숨김. 프롬프트에 옷 자리를 적고 다시 그려 카드 11→포스트 3964, 인스타 https://www.instagram.com/p/De6JRIkoKbT/ 로 최종 게시. 07:52 예약(세션 크론)이 세션 종료로 안 돌아 09:46 수동 실행. 코디는 사용자 결정으로 사람 구분을 20-30대·40대~ 4장으로 바꿈(f30·m30 그림 파일 8장은 남아 있으나 미사용). 새 그림 8장(러닝각·자전거각·warm 꾸안꾸 6) | 사용자 요청 (10/24) | `admin/image-prompts/ootd.json`, `admin/scripts/card.mjs` |
|
||||
|
||||
## 앱(React Native) 마이그레이션
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [x] | 1단계: 웹·앱 공통 코드 `shared/`(`@nalssigak/shared`) 분리, 루트 npm workspaces, 웹 Docker 빌드 대상을 루트로 | 앱과 API 클라이언트·로직 공유 | `package.json`, `shared/`, `frontend/Dockerfile`, `compose.yaml`, `.dockerignore` |
|
||||
| [x] | 2단계: 앱에 react-query·Uniwind 설정 + Metro가 `react`를 `mobile/node_modules`(19.2.3) 것만 쓰게 설정 — 루트에는 웹용 react 19.3.0이 있고 RN 렌더러는 19.2.3에서만 돌아감 | 앱 시작 준비 | `mobile/metro.config.js`, `mobile/src/app/_layout.tsx`, `mobile/src/lib/query-client.ts` |
|
||||
| [x] | 앱 토큰 저장소 `expo-secure-store`로 `configureApi` 연결, API 주소는 `EXPO_PUBLIC_API_BASE_URL` | 웹은 localStorage | `mobile/src/lib/api.ts`, `mobile/.env.example` |
|
||||
| [x] | 안드로이드 에뮬레이터(Expo Go)에서 확인: 오늘 화면 실데이터, 위치 권한 창, 탭 이동, 각 근거 시트 | | `mobile/` |
|
||||
| [x] | 안드로이드 개발 빌드에서 가입·로그인(아바타 표시)·좋아요·이미지 공유·위치로 지역 찾기 확인 | | `mobile/` |
|
||||
| [ ] | 안드로이드 댓글 쓰기·내 정보 바꾸기·로그아웃 확인 | 아직 안 눌러 봄 | `mobile/src/components/sheets/` |
|
||||
| [x] | 출시 빌드 설정: `eas.json`(production 은 운영 API·사이트 주소, 빌드 번호 자동 증가), iOS 수출 규정 암호화 없음, 안드로이드 권한은 대략 위치만(정밀 위치·저장소·다른 앱 위에 그리기 뺌) | | `mobile/eas.json`, `mobile/app.json` |
|
||||
| [ ] | 출시 빌드 전 준비(사용자): Apple Developer·Google Play Console·Expo 계정, 스토어 스크린샷·설명·데이터 안전 양식 | 서명·제출에 필요 | |
|
||||
| [x] | 회원 탈퇴(스토어 심사 필수): `DELETE /v1/auth/me` — 계정·댓글·좋아요·저장 모두 삭제, 게시물·댓글 수 맞춤. 웹·앱 내 정보 시트 '탈퇴하기'(한 번 더 확인) | Apple 5.1.1(v), Google Play 계정 삭제 정책 | `backend/crud/user_crud.py`, `backend/services/auth_service.py`, `frontend/src/b/Sheets.tsx`, `mobile/src/components/sheets/me.tsx` |
|
||||
| [ ] | 운영 배포 때 탈퇴 API 같이 나감 — 배포 전 웹 내 정보 시트 '탈퇴하기' 화면 확인 (앱은 안드로이드에서 확인, 웹은 빌드·린트만) | | `frontend/src/b/Sheets.tsx` |
|
||||
| [ ] | 백엔드 테스트 3개가 날짜 때문에 실패 (10/19): `test_feed`(제철 각 수 42≠40), `test_watch`, `test_weather_today`(10월 하순 18시가 일몰 뒤라 'sunset' 아이콘 아님) — 탈퇴 작업과 무관 | 기대값을 날짜에 안 묶이게 고쳐야 함 | `backend/tests/` |
|
||||
| [ ] | Xcode 설치 후 iOS 시뮬레이터에서 전체 확인 | | `mobile/` |
|
||||
| [x] | 안드로이드 개발 빌드(`expo run:android`) 설치 확인: 홈 화면 해 아이콘·'날씨각' 이름, 실데이터 화면 | | `mobile/` |
|
||||
| [x] | 앱 ID: 안드로이드 패키지 `kr.o2o.nalssigak` — Play Console 기존 '날씨각'(Wear OS 트랙에 워치 앱 있음)에 휴대전화 앱으로 추가하려면 패키지명이 같아야 함. iOS 번들 ID는 미정 | 스토어에 올리면 못 바꿈 | `mobile/app.json` |
|
||||
| [x] | Play 제출: 휴대전화 versionCode 1000부터 (10/23 `app.json` versionCode 1000, 로컬 빌드)(워치가 1 사용) — `eas login` 후 `eas build:version:set -p android` | 같은 앱 안에서 versionCode 겹치면 안 됨 | `mobile/eas.json` |
|
||||
| [x] | Play 제출: 워치 앱과 같은 업로드 키 (10/23 로컬 빌드로 서명 확인, SHA-1 D3:51…44:79. 비밀번호는 ~/.gradle/gradle.properties `NALSSIGAK_UPLOAD_*`)(.jks)를 `eas credentials -p android`로 등록 (사용자: 키 파일·비밀번호 준비, 분실 시 Play Console에서 업로드 키 재설정) | EAS는 안 넣으면 새 키를 만듦 | |
|
||||
| [ ] | 출시 aab 서명 설정이 생성 폴더 `mobile/android/app/build.gradle`에만 있음 — `expo prebuild --clean` 하면 지워지니 다시 넣거나 config plugin으로 옮기기 | `android/`는 gitignore·재생성 | `mobile/android/app/build.gradle` |
|
||||
| [ ] | 앱 구글 로그인 기기 확인: 네이티브 다시 빌드 → 구글 계정 로그인된 에뮬레이터(Play 서비스 이미지)에서 구글로 계속하기 | 새 네이티브 모듈이라 지금 설치된 개발 빌드엔 없음. Android 클라이언트(개발·Play SHA-1)는 콘솔에 등록됨 | `mobile/src/components/sheets/google.tsx` |
|
||||
| [ ] | 운영 서버 `.env`에 `GOOGLE_CLIENT_ID`(웹 클라이언트 ID) 넣고 구글 로그인 백엔드 배포 | 비어 있으면 `/v1/auth/config`가 ID를 안 줘서 앱·웹 구글 버튼이 숨음 | `backend/config/settings.py` |
|
||||
| [ ] | Play 제출(사용자): 휴대전화 스크린샷 2장+, 개인정보처리방침 URL, 계정 삭제 URL(웹 '탈퇴하기' 운영 배포 후), 데이터 보안 양식(대략 위치·계정 정보·댓글), 콘텐츠 등급, 앱 액세스용 심사 테스트 계정. 개인 계정(2023.11 이후)이면 비공개 테스트 12명·14일 | | |
|
||||
| [x] | Play UGC 정책(댓글): 처음 댓글 쓸 때 이용약관 동의(`POST /v1/auth/terms`), 남의 댓글 ⋯ → 신고(이유 4가지, 신고한 사람에겐 바로 숨김, 3건이면 모두에게 숨김) / 이 사람 차단, 내 정보 '차단한 사람'·풀기, 운영 조치 `scripts/moderate.py`(숨김·되살림·정지), 탈퇴 때 신고·차단도 삭제 | Play 'User Generated Content' 정책 | `backend/`, `frontend/src/b/Sheets.tsx`, `frontend/public/terms.html`, `mobile/src/components/sheets/` |
|
||||
| [ ] | 운영 DB 반영: `init.sql`의 `users.terms_agreed_at`, `comment.report_count`·`is_hidden`, `comment_report`, `user_block` (ALTER·CREATE IF NOT EXISTS) — 코드 배포 전에 먼저 | 새 코드가 이 칼럼을 읽음 | `backend/postgres-init/init.sql` |
|
||||
| [ ] | **[검토 필요]** 이용약관 초안 문구 검토 | 법무 문구라 확인 필요 | `frontend/public/terms.html` |
|
||||
| [ ] | 개인정보처리방침에 휴대전화 앱·댓글·신고·차단 기록 추가 (지금은 웹·워치 앱만 적혀 있음) | Play 데이터 보안 양식과 맞아야 함 | `frontend/public/privacy.html` |
|
||||
| [x] | 앱 신고·차단·약관 화면 안드로이드 확인: ⋯ 메뉴, 차단 확인·안내·목록에서 빠짐, 약관 동의 후 바로 게시, 내 정보 '차단한 사람' 풀기 (신고 흐름은 백엔드 테스트로만). 새 패키지 `kr.o2o.nalssigak` 개발 빌드로 다시 설치함 | | `mobile/` |
|
||||
| [ ] | 오늘 날씨 칸(3시·6시 등)이 '?' — 백엔드가 며칠 꺼져 있다 켜지면 최신 발표(예: 8시, 9시부터 예보)만 받아 새벽 칸 행이 없음. 0시 재수신(`_midnight_missing`)은 0시에 묵은 값이 있으면 안 돎. 운영은 늘 켜져 있어 드묾 — 고칠 땐 오늘 칸 중 비거나 묵은 칸이 있으면 다시 받기 | 10/19 로컬(9811)에서 확인, 앱·웹 버그 아님 | `backend/services/weather_service.py` (`today`, `ensure_vilage`, `_midnight_missing`) |
|
||||
| [x] | 앱 아이콘 3D 해 그림(600px 원본)으로: iOS 1024, 안드로이드 적응형(앞·뒤·단색), 스플래시. Expo Go 에선 안 보이고 개발 빌드부터 보임. 스토어용으로는 1024px 이상 원본이 있으면 더 선명 | | `mobile/assets/images/` |
|
||||
| [x] | 3단계-1: 탭 5개 구조·위 막대·하늘 배경·밤 테마(Uniwind dark), Today 히어로·각 순위·행사/TOP5/계절 띠 | | `mobile/src/app/`, `mobile/src/components/` |
|
||||
| [x] | Today 게시물 카드(슬라이드 7종·넘기기·좋아요·댓글·텍스트 공유), 3·6·9번째 글 뒤 띠 | | `mobile/src/components/post/`, `mobile/src/app/index.tsx` |
|
||||
| [x] | 시트 7종(각 근거·읽을거리·댓글·이번 주 특집·로그인/가입·내 정보·지역 고르기)을 RN `Modal`로, 위 막대 로그인/아바타 | 새 패키지 없이 | `mobile/src/components/sheets/`, `mobile/src/components/top-bar.tsx` |
|
||||
| [x] | 고른 지역 저장 (SecureStore) | | `mobile/src/lib/region.tsx` |
|
||||
| [x] | 위치로 지역 찾기(`expo-location`): 처음 켠 사람은 가장 가까운 구로, 지역 시트 '지금 위치로 찾기' | 웹과 같게 | `mobile/src/lib/region.tsx`, `mobile/src/components/sheets/region.tsx` |
|
||||
| [x] | 움직임: 해·구름 떨어지기/둥둥, 비·눈, 스켈레톤 깜빡임, 첫 로딩 덮개, 하늘색 서서히 바뀜, 밤 별 반짝임 ('동작 줄이기' 켜면 멈춤) | | `mobile/src/components/today/hero.tsx`, `first-load.tsx`, `sky-bg.tsx` |
|
||||
| [x] | 나머지 탭(각·노을·주말·행사·계절·상식) 옮기기 | | `mobile/src/app/`, `mobile/src/components/{gak,sky,week,season}/` |
|
||||
| [x] | 이미지로 공유(`react-native-view-shot` + `expo-sharing`): 게시물은 보고 있는 슬라이드, 주말은 고른 날 추천 카드 | 웹 스토리 이미지(머리말·주소 붙인 9:16)와는 다름 | `mobile/src/lib/share-image.ts` |
|
||||
| [x] | 웹과 다른 작은 것들 맞춤: 좋아요 튀는 하트·토스트, 밤 별똥별, 단풍잎 떨어짐, 시 구절 고운바탕, 실패·빈 안내 높이 유지(hold), 시트 배경은 제자리 페이드 | | `mobile/src/` |
|
||||
| [ ] | 공유 이미지를 웹처럼 9:16 스토리(머리말·사이트 주소)로 — 지금은 화면 그대로 찍음. 좋아요 효과는 카드 안에만 뜸(RN에 portal 없음) | 남은 차이 | `mobile/src/lib/share-image.ts`, `mobile/src/components/post/` |
|
||||
| [x] | `mobile/` 템플릿 예제 화면·`.vscode`·`LICENSE`·README 지움, `AGENTS.md`·`.claude`는 둠 | 사용자 결정 | `mobile/` |
|
||||
| [ ] | `frontend-dev` 개발 컨테이너 실제로 띄워 확인 (이미지 빌드만 확인, 5173이 사용 중이라 실행은 못 함) | 볼륨 경로 바뀜 | `compose.yaml` |
|
||||
| [ ] | 운영 서버가 git pull 뒤 루트 `package-lock.json`으로 빌드되는지 배포 때 확인 | 빌드 대상이 `./frontend` → `.` | `deploy.sh`, `compose.yaml` |
|
||||
|
||||
## 날씨게임 — 구름 합치기 (10/28)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | 바람 방향 — API에 풍향이 없어 날짜 홀짝으로 왼쪽/오른쪽을 정함. 실제 풍향(기상청 VEC)을 내려줄지 결정 | 첫 구현 (10/28) | `frontend/src/b/cloudMerge.ts` `windDir`, `backend/router/v1/weather/protocol.py` |
|
||||
| [ ] | 오늘의 판(모두 같은 순서)·구별 순위·구 대항전·공유 카드·판 깨면 각 카드 열기 — 백엔드 필요, 재미 확인 뒤 | 기획 v2 DAU 장치 | — |
|
||||
| [ ] | **[결정 필요]** 앱인토스에 넣으면 게임물 등급분류·게임 카테고리 재등록 대상인지 토스에 확인 | 앱인토스 8월 공지 | — |
|
||||
| [ ] | 들어가는 길 — 지금은 `/game` 주소로만 열림. 피드 카드·메뉴 노출 여부 결정 | 사용자 선택 (10/28) | `frontend/src/App.tsx` |
|
||||
| [ ] | 라운드 목표 점수(200 + 라운드마다 80) — 시간 제한은 없앰(사용자 10/28). 1초에 1번 아무 데나 떨어뜨리면 4~13라운드에서 넘침. 실제 사람 플레이 보고 조정 | 라운드 추가 (10/28) | `frontend/src/b/cloudMerge.ts` `roundTarget` |
|
||||
| [x] | 라운드 각 — 라운드를 깰 때마다 2각, 하루 20각(사용자 결정 10/28). 로그인한 사람만, 판 시작 표(서명)로 남의 판·위조 거절, 라운드당 15초 안 지나면 거절. 레벨업 창은 판이 끝난 뒤에 | 계정 레벨과 연결 (10/28) | `backend/services/level_service.py` `game_token`, `frontend/src/b/CloudMergePage.tsx` `claimRound` |
|
||||
|
||||
## 10/29 docs 정리 — 코드와 다른 문서 내용, 옮긴 할 일
|
||||
|
||||
docs를 6개로 합칠 때 옛 내용을 그대로 옮겼다. 아래는 코드와 다른 곳이다.
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | 피드 칸 수 19개 → 지금 25칸(포스트 1~20 + 히어로·오늘의 각·단풍·행사 띠·계절 띠 자리 21~25). 1-1 정기 작업 표, 3-1, 4-1·4-2·4-3에 19칸으로 적힘 | 코드와 다름 | `docs/서비스_동작_안내.md`, `backend/services/feed_service.py` (`LINEUP`) |
|
||||
| [ ] | 각 개수 34·27개 → 지금 68개. 서비스_동작_안내 2-1·2-2('각 27개')·4-3('각 점수 27개', '오늘의 각 줄(34개)'), 점수_계산식 10-7·부록('각 34개'), 검색_노출 2-3('34개 중 10개') | 코드와 다름 | `backend/seed/index_definition.json` |
|
||||
| [ ] | 밤 지금 날씨 점수 '최대 64점' → 지금은 가장 낮은 요소로 깎지 않고 구간별 표시 점수로 바꿈(점수_계산식 3장). 점수_계산식 10-6, 서비스_동작_안내 8장 | 코드와 다름 | `docs/점수_계산식.md`, `docs/서비스_동작_안내.md`, `backend/services/calc/index_calc.py` (`_weighted`) |
|
||||
| [ ] | 시간대별 피드 순서 → 코드 `ORDER`와 다름(예: 아침은 특보 → 주말 예보 → 주말 플랜 → 노을 → 각 순). 서비스_동작_안내 3-3, 4-3 '시간대별 기본 순서' | 코드와 다름 | `backend/services/feed_service.py` (`ORDER`) |
|
||||
| [ ] | 정기 작업 — 1-1 표에 쇼츠 받기(매일 7·12·18시 10분) 없음. 1-3 '정해진 시각에 도는 작업은 새벽 3시 하나뿐'·1-4 스케줄러 줄은 틀림(Open-Meteo 하루 4번, 주말 점수 하루 2번, 행사 주 1번, 쇼츠 하루 3번도 돎) | 코드와 다름 | `docs/서비스_동작_안내.md`, `backend/worker_main.py` |
|
||||
| [ ] | 포스트 종류별 내용(5장)이 13종 기준 — `PostType` 21개 중 자외선(UV)·히어로·오늘의 각·단풍·행사 띠·계절 띠·카드뉴스(CARD) 설명 없음 | 코드와 다름 | `docs/서비스_동작_안내.md` 5장, `backend/common/enums.py` (`PostType`) |
|
||||
| [ ] | 화면별 데이터 출처(2장)에 이야기·사주·운세·레벨·나만의 각·쇼츠·카드·릴스·워치 API 없음 | 코드와 다름 | `docs/서비스_동작_안내.md` 2장, `backend/router/v1/` |
|
||||
| [ ] | 태그·키워드(검색_노출 2장) — `<title>`·description에 '날씨 사주'가 들어가 바뀜, sitemap은 빌드가 만듦(`frontend/public/sitemap.xml` 없음), 2-6 등록 현황 '배포 뒤' → 등록됨 | 코드와 다름 | `docs/검색_노출.md` 2장, `frontend/index.html`, `frontend/vite.config.ts` |
|
||||
| [ ] | 지역 페이지 수(검색_노출 1-1) 'HTML 230장, 주소 235개' → 구 주소 39장 추가(`96cbd19`) 뒤 숫자 다름 | 코드와 다름 | `docs/검색_노출.md` 1장, `frontend/seo/region.json` |
|
||||
| [ ] | 인스타_운영 1장 '각 카드 그림 36/68장' → 지금 47장 | 파일 수와 다름 | `docs/인스타_운영.md` 1장, `admin/src/assets/gak-card/` |
|
||||
| [ ] | `backend/docs/각_계산기준.md` 다시 만들기 — 생성기를 돌리면 야구각 점수 구간 문장 4줄이 바뀜(seed가 더 새것) | seed와 다름 | `backend/scripts/gen_gak_doc.py` |
|
||||
| [ ] | 휴대폰에서 지역 페이지 확인 — 시 안에서 내 구로 바뀌는지, 지역을 바꾸면 주소가 바뀌는지 | 10/14 작업 정리에서 옮김. 로컬에서 확인 못 했다 | `frontend/src/b/region.tsx` |
|
||||
| [ ] | 없는 지역 주소가 200으로 홈을 보여 주는 것 | 10/14 작업 정리에서 옮김. SPA 기본 동작이고 canonical이 홈이라 당장 문제는 없다 | `frontend/nginx.conf` |
|
||||
| [ ] | 검색 결과 요약의 "해 지는 시각"을 노을이 가장 붉은 시각으로 바꿀지 | 10/14 작업 정리에서 옮김. 지금은 계산으로 나온 일몰 시각 | `backend/services/seo_service.py` |
|
||||
|
||||
## 앱인토스 남은 단계
|
||||
|
||||
`docs/서비스_동작_안내.md` 7장(토스판)의 남은 단계와 토스에 물어볼 것. 각 단계가 끝나면 확인을 받고 다음 단계로 간다. 작업 브랜치는 `feat/apps-in-toss`.
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | 0단계(사람): 앱인토스 콘솔 가입, 앱 등록 → `appName` 확정 (https://apps-in-toss.toss.im) | 콘솔 앱 `nalssigak`은 10/13 맞춤(위 '앱인토스 appName' 행) — 정식 등록 여부 확인 | `frontend/apps-in-toss.config.ts` |
|
||||
| [ ] | 0단계(사람): 사업자 정보 등록 (영업일 기준 약 1일) | 사전 준비 | |
|
||||
| [ ] | 0단계(사람): 샌드박스 앱을 테스트 폰에 설치 | 사전 준비 | |
|
||||
| [ ] | Q1. WebView에서 `BrowserRouter`(주소 경로)로 화면을 나눠도 되는가 | 토스 문의(채널톡·개발자 커뮤니티). 안 되면 `HashRouter` | `frontend/src/App.tsx` |
|
||||
| [ ] | Q2. 미니앱 안에서 GA4(`gtag.js`)를 써도 되는가 | 토스 문의 | `frontend/index.html`, `frontend/src/lib/analytics.ts` |
|
||||
| [ ] | Q3. 시간대에 따라 밤에 어두운 배경을 쓰면 '라이트 모드' 규칙에 걸리는가 | 토스 문의 (위 '앱인토스 사전 확인' 행과 같음) | `frontend/src/b/BLayout.tsx` |
|
||||
| [ ] | Q4. 장소 이름을 누르면 네이버 지도로 가는 링크가 '단순 정보 확인' 예외에 해당하는가 | 토스 문의 (위 '앱인토스 사전 확인' 행과 같음). '예외 해당'이면 지도 링크를 되돌림 | `frontend/src/b/ui.tsx` (`MapLink`) |
|
||||
| [x] | Q5. 공유창으로 이미지 파일(공유 카드)을 보낼 수 있는가 — SDK 기준 불가(`Share.sendMessage`는 글만). 지금은 이미지를 저장하고 링크를 보낸다 | 토스 문의 | `frontend/src/lib/platform.ts` |
|
||||
| [ ] | Q6. TDS는 '강력 권장'인데 React 19 프로젝트도 TDS 없이 검수를 통과하는가 (TDS는 React 18 필요) | 토스 문의 | |
|
||||
| [ ] | Q7. 카테고리 목록. '나들이·여가' 같은 분류가 있는가 | 토스 문의 | |
|
||||
| [ ] | 1단계: 샌드박스 앱에서 피드가 뜨는지 확인 — 콘솔 앱 등록·샌드박스 설치 뒤. 완료 기준: 웹 빌드 결과가 바뀌지 않고, 샌드박스에서 피드가 열린다 | 토스 빌드 뼈대 | |
|
||||
| [ ] | 2단계: 운영 서버에 mTLS 인증서 두기, `.env`에 `TOSS_MTLS_CERT`·`TOSS_MTLS_KEY`·`TOSS_UNLINK_AUTH`, compose 마운트 | 토스 로그인 | `compose.yaml` |
|
||||
| [ ] | 2단계: 콘솔에 토스 로그인 약관 동의·동의 항목·연결 끊기 콜백 등록 | 토스 로그인 | |
|
||||
| [ ] | 2단계: Q1~Q3 답에 따라 라우터·GA4·밤 배경 처리 (지금은 웹과 같음). 완료 기준: 웹은 지금과 똑같이 동작하고, 토스에서는 토스 로그인으로만 로그인한다 | 플랫폼 분기 | `frontend/src/lib/platform.ts` |
|
||||
| [ ] | 3단계(결정 대기): 토스판 피드 줄이기 — '각 34개 정리', '히어로 숫자 5개' 결정 뒤. 목표는 피드 8~10칸, 첫 화면에 한 줄 판정. 문구는 목록으로 검토받은 뒤 반영 | 토스판 전략 | |
|
||||
| [ ] | 4단계: 샌드박스 실기기 확인 — 첫 화면 뒤로가기를 누르면 앱이 닫힌다, 진입하자마자 바텀시트가 뜨지 않는다, 상단 바 버튼이 1개다, 위치 권한을 거부해도 지역 선택으로 쓸 수 있다 | 검증 | |
|
||||
| [ ] | 4단계: [비게임 검수 체크리스트](https://developers-apps-in-toss.toss.im/checklist/app-nongame.md)와 항목별로 대조 | 검증 | |
|
||||
| [ ] | 4단계: 토스 공식 `project-validator` 스킬로 점검 (https://github.com/toss/apps-in-toss-skills) | 검증 | |
|
||||
| [ ] | 5단계: 웹 출시가 끝났는지 확인 | 출시 | |
|
||||
| [ ] | 5단계: `.ait` 번들을 콘솔에 올리고 검수 요청 (3~5영업일, 반려 시 다시 3~5일) | 출시 | |
|
||||
| [ ] | **[결정 필요]** 6단계(출시 후): 스마트 발송(알림) — 금요일 주말 판정, 노을 좋은 날. 노을 알림은 위 '노을 알림 재검토' 행 | 출시 후 별도 결정 | |
|
||||
| [ ] | **[결정 필요]** 6단계(출시 후): 포인트 — 출시 후 2주만 쓰고 끊는다. 포인트를 끊은 주의 재방문율로 계속할지 판단 | 출시 후 별도 결정 | |
|
||||
|
||||
## GA 분석 (`/ga-report`, 기록은 `docs/이벤트_추적.md` '분석 기록')
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | **[결정 필요]** 자동 화면 테스트 트래픽을 GA에서 빼기 — ① 운영 사이트를 여는 Playwright 스크립트에서 GA 요청(googletagmanager·google-analytics)을 막기 ② GA4 관리 → 데이터 스트림 → 내부 트래픽 정의(사무실 IP) + 데이터 필터 활성 | 10/22~10/28 활성 206명 중 약 146명이 성남·아이폰 390x844(Playwright iPhone 기본 크기)·근무시간·참여 2~3초. 이대로면 사용자 수·전환율이 모두 틀림 | `/tmp/sweep/*.mjs` 등 Playwright 스크립트, GA4 관리 |
|
||||
| [ ] | **[결정 필요]** GA4 맞춤 측정기준(이벤트 범위) 추가 등록 — `icon`(today_icon)·`sheet`(sheet_open)·`from`·`method`·`content_type`·`round`(game) | 지금 등록된 건 `gak_name`·`platform`·`region_name` 뿐이라 오늘 탭 아이콘별·창별·게임 라운드별 사용을 GA에서 못 나눔. 등록 전 데이터는 소급 안 됨 | GA4 관리 → 맞춤 정의 |
|
||||
| [ ] | **[결정 필요]** '홈 화면에 추가' 카드 손보기 — 띄우는 조건(몇 번째 방문부터)·문구, 또는 빼기 | 10/22~10/28 테스트 트래픽 뺀 77명이 봤고 누른 사람 0 (앞 주 8명 중 1명 설치) | `frontend/src/b/installBanner.tsx` |
|
||||
|
||||
|
||||
## 기념일 꾸밈 (`frontend/src/b/holiday.ts`)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | `feat/halloween` main 병합 → 킹서버 배포(백엔드 `TalkTopic` 6~9 포함). 10/31 00시 전에 올라가야 할로윈이 켜짐 | 10/30 킹서버 작업 중이라 배포 보류 | `deploy.sh` |
|
||||
| [ ] | 할로윈 타로·코디 카드 (`/daily-tarot 할로윈`, `/daily-ootd`) — 킹서버 게시라 보류 | 10/30 킹서버 작업 중 | |
|
||||
| [ ] | 2028년부터 추석 날짜 추가 (음력이라 해마다 `ranges` 에 한 줄) | 2027-09-14~16만 들어 있음 | `frontend/src/b/holiday.ts` |
|
||||
| [ ] | 수능 응원·연말·새해 기념일 배포 — 백엔드 `TalkTopic` 10·11 이 11/18 00시 전에 킹서버에 올라가야 수능 주제 글이 올라감. 앱은 새 빌드가 나가야 소품·게임 그림이 보임 | 11/12 수능(2026-11-18~19)·연말·새해(12-31~01-01) 추가 | `deploy.sh`, `shared/lib/holiday.ts` |
|
||||
| [ ] | 2027년 수능 날짜 추가 (11월 셋째 목요일, 해마다 `ranges` 에 한 줄) | 2026-11-18~19만 들어 있음 | `shared/lib/holiday.ts` |
|
||||
|
||||
## 검색 클릭률 (10/30)
|
||||
|
||||
| 상태 | 할 일 | 이유 | 관련 파일 |
|
||||
|---|---|---|---|
|
||||
| [ ] | `/today`·`/tomorrow` 검색 결과 새 문구(내일 제목 '○○ 내일 날씨 · 내일 1위는 ○○각', 날짜·지역 먼저인 설명)를 지역 절반에만 배포하고, 배포 2주 뒤 Search Console에서 두 그룹 클릭률 비교 + GA `search_landing` 의 `copy` 별 유입. 기준(10/7~27 클릭률): 내일 새 그룹 0.044%·예전 그룹 0.047%, 오늘 새 그룹 0.044%·예전 그룹 0.026% | 10/30 사용자: 색인 늘리기보다 클릭률. 10/30 배포, 11/13쯤 비교 (구글이 다시 가져가야 검색 결과 문구가 바뀜) | `backend/services/seo_service.py`, `backend/services/seo_copy_test.json` |
|
||||
| [ ] | (보류) `/foliage`·`/sky`·`/week` 서버 HTML에 실제 내용 넣기 — 새 URL 없이, 단풍 상태는 화면과 같은 4단계(단풍 전·첫 단풍·절정·절정 지남), 앱이 뜬 뒤에도 화면 아래에 글 남김. 지역 단풍·지역 주말 페이지는 안 만듦 | 10/30 사용자: 클릭률 먼저 | `frontend/vite.config.ts`, `frontend/nginx.conf`, `backend/services/seo_service.py` |
|
||||
| [ ] | 주말 순위가 Redis 13시간 보관이라 06:40·18:40 갱신이 두 번 연속 실패하면 비어 보임 — 마지막 정상값 따로 보관 | 10/30 조사 중 발견 | `backend/services/weekend_rank.py`, `backend/worker_main.py` |
|
||||
| [ ] | 오늘 페이지 설명에 "강수확률 60%, 비" 와 "낮은 한강각"이 같이 나옴(10/30 성남) — 하루 중 한 시간이라도 비면 "비"로 적는 요약과 시간대별 1위 각이 어긋나 보임. 계산이 맞는지 확인 | 10/30 클릭률 조사 중 발견 | `backend/services/seo_service.py` |
|
||||
@@ -0,0 +1,33 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
# npm run card 결과
|
||||
out
|
||||
|
||||
# 그날 코디 그림 (scripts/daily-ootd.mjs 가 만들고 카드가 /daily/... 로 읽는다)
|
||||
public/daily
|
||||
|
||||
# 날씨각 코디 영상 작업 폴더 (nalssigak/scripts 가 만든다)
|
||||
nalssigak/runs
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": ["react", "typescript", "oxc"],
|
||||
"rules": {
|
||||
"react/rules-of-hooks": "error",
|
||||
"react/only-export-components": ["warn", { "allowConstantExport": true }]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
# 날씨각 관리자 (admin/)
|
||||
|
||||
날씨각 운영용 관리자 웹앱. 지금 기능은 **인스타 카드 만들기** 하나다. 날씨 데이터는 날씨각 백엔드 API(`../backend`)를 그대로 쓴다.
|
||||
|
||||
## 켜기
|
||||
|
||||
```bash
|
||||
npm install
|
||||
VITE_API_BASE_URL=http://localhost:9810 npm run dev # http://localhost:5175
|
||||
```
|
||||
|
||||
백엔드 주소가 다르면 `VITE_API_BASE_URL`만 바꾼다. 백엔드 API가 바뀌면 `npm run api`로 `src/api/client`를 다시 만든다.
|
||||
|
||||
## 윈도우
|
||||
|
||||
스킬(`.claude/commands/` 의 daily-tarot·daily-ootd·daily-cards·weekly-ootd-video)은 Git Bash 에서 맥과 같은 명령으로 돈다. 외부 프로그램 위치는 `scripts/bin.mjs` 가 운영체제별로 찾는다. 처음 한 번:
|
||||
|
||||
1. 설치: `winget install Git.Git OpenJS.NodeJS.LTS Python.Python.3.12 Gyan.FFmpeg Google.Chrome` (ffmpeg 가 JPEG·webp 변환도 한다). Claude Code 는 네이티브 설치(`claude.exe`), Codex 는 `npm i -g @openai/codex` 후 `codex login`.
|
||||
2. Claude Code 설정(`%USERPROFILE%\.claude\settings.json`)의 `env` 에 `"PYTHON": "python"`, `"PYTHONUTF8": "1"` (스킬의 `${PYTHON:-python3}` 와 파이썬 한글 출력).
|
||||
3. 크롬이 기본 위치(Program Files·LocalAppData)에 없으면 `CHROME_PATH`, claude·codex 를 못 찾는다고 나오면 `CLAUDE_BIN`·`CODEX_BIN` 에 실행 파일 경로.
|
||||
4. `%USERPROFILE%\.ssh\config` 에 맥 `~/.ssh/config` 와 같은 `King_admin`(ProxyJump Confluence)과 키. `ssh -o BatchMode=yes King_admin true` 가 비밀번호 없이 돼야 한다.
|
||||
5. 저장소를 받고 `admin` 에서 `npm install`. 개인 스킬로 쓰려면 `.claude/commands/<이름>.md` 를 `%USERPROFILE%\.claude\skills\<이름>\SKILL.md` 로 복사한다.
|
||||
6. 영상(weekly-ootd-video)은 `~/.config/nalssigak/`(YouTube OAuth 파일)도 옮긴다.
|
||||
|
||||
## 카드 만드는 흐름
|
||||
|
||||
1. **템플릿 고르기**: `tarot`(날씨 타로, 5장) · `ootd`(오늘의 코디, 6장). 코디는 주제·Claude 기획 대신 스타일(캐주얼·세미정장·정장·스트릿·꾸안꾸, copy의 `style`)을 고른다. 지역은 고르지 않는다. 모든 카드는 서울(중구) 오늘 예보로 만들고, 카드에 지역 이름은 넣지 않는다.
|
||||
2. **기획**: 주제(예: 주식, 연애)를 주거나 비워 두면 Claude CLI(`claude -p`, 이 맥 로그인 사용)가 오늘 날씨 사실을 바탕으로 칸별 문구를 기획한다. 규칙은 `scripts/plan.mjs`의 `RULES`.
|
||||
3. **고치기·피드백**: 칸을 직접 고치거나, 피드백을 주고 다시 기획한다.
|
||||
4. **색**: 만들 때마다 6가지 테마(`src/cards/themes.ts`: 노을·하늘·민트·베리·레몬·라벤더) 중 하나가 무작위로 정해진다. 화면의 '색'이나 `--color`로 고를 수 있다.
|
||||
5. **그리기**: 확정한 문구를 같은 템플릿에 넣어 1080×1350 JPEG로 만든다.
|
||||
|
||||
관리자 화면은 열었을 때 아무것도 만들지 않는다. 관리자가 템플릿·주제(코디는 스타일)를 고르고 '만들기'를 눌러야 만든다. `npm run card -- tarot`는 Claude 기획부터 한다.
|
||||
|
||||
템플릿마다 "어떻게 만드는지"(데이터·계산·문구 규칙)는 `src/cards/templates.tsx`의 `how`에 적고, 관리자 화면 '이 카드는 이렇게 만들어요'와 Claude 기획 요청에 같이 쓴다.
|
||||
|
||||
## 날씨 타로 주제
|
||||
|
||||
주제는 `topics.json`의 대주제 > 소주제(연애: 썸·데이트·재회·이별·결혼 / 경제: 주식·재테크·취미·여행 / 일·공부 / 건강 / 관계)에서 고르거나 직접 쓴다. 대주제마다:
|
||||
|
||||
- **꾸밈(skin)**: 반짝이·표지 장식 모양(연애 하트, 경제 동전, 건강 네잎클로버…, `src/cards/cards.css` 맨 아래).
|
||||
- **질문**: 소주제마다 카드가 답할 질문(`questions`).
|
||||
- **리딩 말투**: `scripts/plan.mjs`의 `TAROT_TONE`. 실제 타로 리더 말투(온도타로·타로하는 아율·가문비타로·알라딘타로 유튜브 설명란, 2026-10-23 조사)에서 뽑았다. 질문자 "님"·상대 "그 사람", 해요체+단정 한 문장, 겉과 속 대비 → 다만 → 행동 하나, 폰에서 보이는 디테일. "~이면 ~해요" 공식·같은 어미 반복·"~할 수 있어요" 남발·덕담은 AI 티라 금지. 예시 문구를 바꿀 때도 이 규칙으로.
|
||||
- **카드**: 날씨각 각 카드(`../backend/seed/index_definition.json`, 53장). 오늘 점수가 높은 각 중 질문과 엮이는 3장을 고르고, 각 카드로 질문을 리딩한다. 카드 그림은 그 각의 아이콘.
|
||||
- 대주제·소주제·아이콘을 늘리려면 `topics.json`만 고친다. 새 꾸밈 모양은 CSS와 `image-prompts/tarot.json`에 같이 더한다.
|
||||
|
||||
## 매일 올리기 (슬래시 명령)
|
||||
|
||||
사용자용 안내는 `docs/인스타_운영.md` 1장. Claude Code에서 `/daily-tarot <주제>`, `/daily-ootd <스타일>`, `/daily-cards <주제> <스타일>` 을 치면 만들기 → 장마다 검수 → 킹서버 피드·인스타 게시 → 링크 보고까지 한 번에 한다. 명령 정의는 `.claude/commands/`.
|
||||
|
||||
## 대화로 만들 때 (Claude·Codex)
|
||||
|
||||
사용자가 "오늘 주식 날씨 타로 만들어 줘"처럼 말하면 아래 명령을 실행한다. 관리자 화면(`npm run dev`)이 켜져 있어야 한다.
|
||||
|
||||
```bash
|
||||
VITE_API_BASE_URL=http://localhost:9810 npm run card -- tarot --topic 주식 [--color mint]
|
||||
```
|
||||
|
||||
- 기획안(칸별 문구)이 먼저 출력된다. 사용자에게 보여 주고, 피드백이 오면 출력된 `--copy` 값과 함께 다시 실행한다:
|
||||
`npm run card -- tarot --copy <값> --feedback "2번 더 웃기게"`
|
||||
- 피드백 없이 그대로 그리려면 `--copy <값>`만.
|
||||
- 결과: `out/<날짜>/<날짜>_<템플릿>_<장>.jpg`
|
||||
|
||||
## 날씨각·인스타에 올리기
|
||||
|
||||
- 확인·내보내기 탭 '지금 올리기' → 날씨각 백엔드 `POST /v1/card`(이미지째 저장, 오늘 전국 피드에 게시). '승인 대기로 저장'은 저장만.
|
||||
- 올린 뒤 '인스타(@nalssigak)에도 올리기' → `POST /v1/card/<id>/instagram`. 백엔드가 공개 주소(`PUBLIC_BASE_URL` + `/v1/card/<id>/<n>.jpg`)로 캐러셀을 만들어 게시한다. 서버 `.env`에 `INSTAGRAM_ACCESS_TOKEN`·`INSTAGRAM_USER_ID`가 있어야 한다(발급 순서는 `TODO.md` 인스타 연결 행).
|
||||
- '만든 카드' 탭에서 저장된 카드를 다시 내려받거나, 승인 대기 카드를 올리거나, 인스타에 올린다.
|
||||
- 올릴 곳은 두 개: 로컬 백엔드(`VITE_API_BASE_URL` + `ADMIN_API_KEY`, 피드 주소 `LOCAL_SITE_URL`)와 킹서버(`KING_API_BASE_URL`(기본 https://weather.o2o.kr) + `KING_ADMIN_API_KEY`, `KING_SITE_URL`). 비밀값이 있는 곳만 화면에 나온다. 보통 로컬에서 만들어 둘 다에 올린다.
|
||||
- 관리자 서버가 비밀값을 `/api/post`·`/api/cards`에서만 붙인다. 브라우저엔 안 나간다. 킹서버 키는 킹서버 `.env`의 `ADMIN_API_KEY`와 같은 값.
|
||||
- 켜는 예: `VITE_API_BASE_URL=http://localhost:9810 ADMIN_API_KEY=… KING_ADMIN_API_KEY=… npm run dev`
|
||||
|
||||
## 그날 코디 (무신사 인기 스냅 → 옷 추출 → 참고 사진대로 그림)
|
||||
|
||||
코디 카드는 고정 데이터(`image-prompts/ootd.json` 구간×스타일 옷) 대신 **그날 무신사 인기 스냅**으로 만든다. 같은 날씨라도 매일 다른 코디가 나온다.
|
||||
|
||||
```bash
|
||||
VITE_API_BASE_URL=https://weather.o2o.kr npm run card -- ootd --daily --style minimal --color sky --post-wait
|
||||
```
|
||||
|
||||
포스트 하나는 스타일 하나(`--style`, 기본 minimal=꾸안꾸): 네 사람 모두 그 스타일 태그(`scripts/snap.mjs STYLE_TAGS`)가 붙은 스냅에서 고르고 제목도 그 스타일로 통일한다.
|
||||
|
||||
흐름(`scripts/daily-ootd.mjs`):
|
||||
1. 오늘 예보로 기온 구간을 정한다(`scripts/daily-ootd.mjs weatherToday`).
|
||||
2. `scripts/snap.mjs`: 무신사 스냅 공개 API에서 구간에 맞는 태그(가을코디·간절기코디·겨울코디…)와 단정 키워드(오피스룩·댄디룩…)로 인기 스냅을 모으고, 상품 카테고리로 상의·하의·신발이 다 있는 것만 남긴 뒤 사람별(40대~ 먼저, 단정 태그 가산점)로 하나씩 고른다. 45일 지난 스냅, 구간에 안 맞는 아우터(패딩·코트 등)·반바지는 뺀다. 사진·상품 썸네일은 `out/<날짜>/snaps/<사람>/`에 참고용으로만 받고 어디에도 올리지 않는다.
|
||||
3. `scripts/outfit.mjs`: Claude CLI(sonnet, Read 로 사진을 봄)가 자리별(top·outer·bottom·shoes·bag) 한글 이름표와 영어 그림 설명을 뽑는다.
|
||||
4. `scripts/codex-image.mjs`: Codex 에 스냅 사진·상품 썸네일을 첨부(`-i`)해 같은 옷·색으로 우리 플랫레이 스타일 그림을 그린다 → `public/daily/<날짜>-<사람>.webp` (git 에 넣지 않음).
|
||||
5. 카드는 `copy.outfits`(JSON 문자열)로 이름표·그림 주소를 받는다(`src/cards/ootd.ts dailyOutfits`). 제목은 Claude 가 정한 스타일 한 단어(꾸안꾸·오피스룩…).
|
||||
|
||||
에이블리는 공개 API가 없어 쓰지 않는다(앱 전용). 고정 데이터 방식(`--daily` 없이)은 그대로 남아 있다.
|
||||
|
||||
## 카드 그림 만들기 (Codex 이미지 생성)
|
||||
|
||||
**그림은 그날 만드는 카드에 필요한 것만 그때 만든다.** 조합(기온 구간 × 스타일 × 사람, 타로 78장)을 미리 일괄로 만들지 않는다. Codex 사용량이 한정돼 있다.
|
||||
|
||||
- 코디: 그날 기온 구간 × 고른 스타일의 6명. 타로는 날씨 아이콘을 써서 만들 그림이 없다.
|
||||
- 관리자 화면: 그림이 없으면 미리보기 위에 'Codex로 그림 N장 만들기' 버튼이 나온다(한 장씩, 한 장에 1~2분).
|
||||
- `npm run card`: 그리기 전에 빠진 그림을 자동으로 만든다(`--no-images`로 건너뜀).
|
||||
- 한 번 만든 그림은 같은 조합에서 다시 쓴다. 새로 그리려면 화면의 '그림 다시 그리기'.
|
||||
- 그림은 프롬프트 템플릿 `image-prompts/<종류>.json`(지금은 ootd)대로만 만든다. 바뀌는 칸(옷 목록, 카드 장면)만 다르고 나머지 문장은 같아서 모양이 통일된다.
|
||||
|
||||
```bash
|
||||
npm run gen-image -- ootd cool casual # 한 구간·한 스타일 6명
|
||||
npm run gen-image -- ootd cool-f20-casual --force # 한 장 다시 그리기
|
||||
```
|
||||
|
||||
- `codex` CLI(로그인 필요)와 `cwebp`가 있어야 한다. 그림 생성은 `gpt-6-sol`(중간 모델)·추론 low 로 고정돼 있다(`CODEX_IMAGE_MODEL`로 바꿀 수 있음). 가장 싼 `gpt-6-luna`는 그림을 만들고도 파일로 저장하지 못하고, Codex 기본 모델(gpt-6-astra·xhigh)을 쓰면 한도를 금방 소진한다.
|
||||
- 결과는 `src/assets/ootd/<구간>-<사람>-<스타일>.webp`이고, 카드에 자동으로 붙는다(`src/cards/ootd.ts`).
|
||||
- 옷 목록(`items`, 영어 프롬프트)과 카드 글자(`labels`·`outer`)는 `image-prompts/ootd.json` 한 파일에 같이 있다. 하나를 바꾸면 다른 쪽도 맞춘다.
|
||||
- 유행: `styles.<스타일>.trends.<사람>`에 요즘 한국 유행(실루엣·색·소재)을, `bands.<구간>.layering`에 기온별 레이어링을 적어 프롬프트에 넣는다. 2026-10-23 조사(무신사·에이블리·29CM·W컨셉·지그재그·크림 기사·보그·엘르). 연령별 판매 자료는 거의 없어 플랫폼 주 고객층(에이블리·지그재그·W컨셉=2030 여성, 무신사·크림=2030 남성)으로 나눈 것이다. 철이 바뀌면 다시 조사해 고친다.
|
||||
- 만든 그림은 직접 열어 사람·얼굴·글자가 없는지 확인한다.
|
||||
|
||||
## 올리기 전 검수 (예외 없음)
|
||||
|
||||
인스타·날씨각에 올리는 건 되돌릴 수 없다(인스타는 API로 삭제도 못 한다). 올리기 전에 반드시:
|
||||
|
||||
1. **장마다 1:1(원본 크기)로 본다.** 축소한 시안 시트(contact sheet)만 보고 판단하지 않는다. 스크린샷·그림이 들어간 장은 그 부분을 잘라 원본 크기로 본다.
|
||||
2. **스크린샷은 찍힌 원본부터 확인한다.** 앱 화면은 뷰포트가 좁으면 오른쪽이 잘려 찍힌다(머리 줄의 로그인 버튼까지 다 보이려면 가로 470px 이상, `--force-device-scale-factor=2`). 카드 CSS를 고치기 전에 원본 파일이 온전한지 본다.
|
||||
3. **고친 뒤에는 고친 부분을 다시 1:1로 본다.** "고쳤으니 됐다"로 올리지 않는다. 같은 포스트를 다시 올리면 예전 글은 사용자가 앱에서 지워야 하므로, 재게시는 확인된 뒤 한 번만.
|
||||
4. 영상(릴스)은 렌더된 mp4에서 프레임을 뽑아 본다(`ffmpeg -vf fps=2,tile=…`). 스크린샷이 들어간 장면은 그 프레임을 원본 크기로.
|
||||
|
||||
2026-10-24 소개 카드를 축소 시트만 보고 두 번 올렸다가 두 번 다 폰 스크린샷 오른쪽이 잘린 채 나간 일에서 정한 규칙이다.
|
||||
|
||||
## 규칙
|
||||
|
||||
- 카드 모양은 `src/cards/templates.tsx`(템플릿)와 `src/cards/cards.css`(모양)에서만 정한다. 웹 화면과 `npm run card`가 같은 템플릿을 쓰므로, 한 번 바꾸면 둘 다 바뀐다. 포스트마다 따로 디자인하지 않는다.
|
||||
- 새 포스트 종류(템플릿)의 디자인은 Codex에게 시켜 만든다. 결과를 `TEMPLATES`에 하나 더하고 `how`를 쓰고, `scripts/card.mjs`의 `SLIDES`에 장 수를 적는다.
|
||||
- 카드 문구 기본값을 바꿀 때는 사용자에게 문구 목록을 먼저 검토받는다.
|
||||
- 그림(타로 카드, 코디 옷)은 그날 필요한 것만 Codex로 만들고, 만든 파일(`src/assets`)은 다시 쓴다. 코디 옷 그림은 사람·얼굴 없이 옷만,
|
||||
- 각 아이콘·캐릭터는 서비스와 같은 `../frontend/public/icons`를 쓴다.
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"about": "날씨 타로 각 카드 앞면 그림. 날씨각 각(backend/seed/index_definition.json)마다 이름·뜻으로 장면을 만들고 나머지 문장은 그대로 써서 모든 카드가 같은 모양으로 나오게 한다. 그날 뽑힌 카드만 Codex로 그리고 결과는 src/assets/gak-card/<각 code>.webp (다시 씀). 없으면 각 아이콘이 나온다.",
|
||||
"deck": "gak",
|
||||
"style": "Use case: stylized-concept. Asset type: text-free tarot-style card FRONT illustration for a playful Korean weather Instagram carousel. ONE portrait card, flat front-on orthographic view, ratio 2:3, filling the entire canvas edge to edge. The card represents the Korean weather-activity card '{name}' which means: {meaning}. Scene: {scene}. Tarot composition: one clear central scene with symbolic framing, a soft arch or rounded window shape behind the scene, small stars and clouds, sky color matching the activity's time of day. Characters, if any, are a cute white rabbit and a cute brown bear clay toys (simple dot eyes, no human faces), no humans. Style: tactile matte clay / soft vinyl 3D illustration, chunky rounded shapes, bright cheerful palette with warm orange #ff7a45, soft blue #4f97e3, ivory #f7fbff and deep ink #28304a accents, soft studio light. Rounded ivory card border with a thin orange double line. Everything inside the card, no mockup, no perspective, no hands holding the card. Text: none. Absolutely NO letters, words, numbers, roman numerals, labels, logos, watermark or pseudo-text anywhere.",
|
||||
"scene": "the rabbit and/or bear happily doing the activity of '{name}' ({meaning}) in a cozy symbolic setting, with the activity's key object shown large like the 3D icon of this card"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"about": "인스타 릴스(9:16) 배경 그림. 2.5D — 한 장을 깊이별로 레이어처럼 보이게 그려 카메라 패럴랙스를 얹는다. 글자가 올라갈 위쪽 가운데는 비워 둔다. npm run gen-image -- reel-bg <id|missing>",
|
||||
"style": "Use case: stylized-concept. Asset type: text-free VERTICAL 9:16 background illustration for a Korean weather app's Instagram Reel. Look: soft 3D clay render, rounded matte shapes, gentle studio lighting, pastel base with saturated accents (sky blue #4f97e3, orange #ff7a45), matching cute 3D fluent-emoji style icons. Composition: strong depth layering — foreground objects touching the bottom and side edges, a mid-ground subject, a far background; keep the upper-middle 40% of the frame calm and uncluttered so text can be overlaid. No people, no animals, no text, no letters, no numbers, no logos, no UI. Scene: {motif}. Output exactly one portrait image, ratio 9:16.",
|
||||
"items": [
|
||||
{ "id": "sky", "motif": "a dreamy daytime sky with fluffy 3D clouds at several depths, a soft sun upper right, a few floating leaves, and rolling green hills along the bottom edge" },
|
||||
{ "id": "rain-city", "motif": "an overcast rainy city seen from above the rooftops: grey-blue clouds, soft rain streaks, wet rooftops and puddles reflecting lights, muted palette with a single orange accent roof" },
|
||||
{ "id": "beach", "motif": "a sunny beach bay seen from a low grassy hill: turquoise water, pale sand, a striped parasol and a picnic mat in the near corner, big clear sky, Korean east-coast feel" },
|
||||
{ "id": "mountain", "motif": "an autumn mountain trail: red and yellow maple trees, rounded rocks, a blank wooden signpost, misty ridgelines far away, clear blue sky above" },
|
||||
{ "id": "hangang-sunset", "motif": "Seoul Han river at sunset: orange-pink sky, a long bridge silhouette with warm lights, river reflections, a grassy riverbank with a picnic mat in the foreground, Namsan tower silhouette far away" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"about": "날씨 타로 배경 그림. 대주제 꾸밈(skin)마다 한 장씩, 한 번 만들어 두고 내용(카드·글)만 갈아 끼운다. 결과는 src/assets/tarot-bg/<skin>.webp. 글이 올라갈 자리를 비워 둔 1080×1350 세로 배경.",
|
||||
"style": "Use case: stylized-concept. Asset type: text-free BACKGROUND illustration for a Korean weather tarot Instagram card, portrait 4:5 (1080x1350), filling the canvas edge to edge. {motif}. Style: tactile matte clay / soft vinyl 3D illustration, chunky rounded shapes, very soft and airy, low contrast, desaturated pastel so dark text stays readable on top. Composition rule: the CENTER band (from 20% to 80% of the height) must be an almost plain, very light, smooth area (like soft fog) with no objects, because a card picture and text will be placed there later; decorative objects live only near the top and bottom edges and are small. No characters, no people, no faces, no hands. Text: none. Absolutely NO letters, numbers, logos, watermark or pseudo-text.",
|
||||
"items": [
|
||||
{
|
||||
"id": "heart",
|
||||
"motif": "soft romantic scene: pastel pink and cream sky, a few floating 3D clay hearts, gentle sunset glow, tiny sparkles; mood: 연애·썸"
|
||||
},
|
||||
{
|
||||
"id": "coin",
|
||||
"motif": "warm prosperous scene: soft gold and ivory sky, a few floating 3D clay coins and a tiny rising arrow shape (no numbers), sunrise glow; mood: 경제·돈"
|
||||
},
|
||||
{
|
||||
"id": "star",
|
||||
"motif": "calm focused scene: pale blue and lavender sky, a few floating 3D clay stars and a small paper plane, early morning light; mood: 일·공부"
|
||||
},
|
||||
{
|
||||
"id": "clover",
|
||||
"motif": "fresh healthy scene: mint and sage green sky, a few small floating 3D clay leaves and one little cloud, bright daylight; mood: 건강"
|
||||
},
|
||||
{
|
||||
"id": "sparkle",
|
||||
"motif": "cozy friendly scene: peach and lilac sky, a few small floating 3D clay sparkles and round bubbles, soft afternoon light; mood: 관계·친구"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jua&family=Bagel+Fat+One&display=swap" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css" crossorigin="anonymous" />
|
||||
<title>날씨각 관리자</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"about": "경제(주식·재테크) 타로 전용 카드. topics.json 에서 deck 이 money 인 대주제는 날씨각 각 대신 이 카드에서 오늘 날씨(when)에 맞는 3장을 고른다. 그림은 src/assets/gak-card/<code>.webp (npm run gen-image -- gak-card <code>).",
|
||||
"cards": [
|
||||
{ "code": "money_bull", "name": "불장각", "icon": "sun", "description": "맑고 따뜻해 마음이 들뜨는 날, 덩달아 사고 싶어지는 정도", "when": "하루 종일 맑고 낮이 따뜻한 날(낮 최고 20도 안팎 이상)", "scene": "the rabbit and bear cheering on top of a big glossy RED upward arrow shaped like a hill, bright sunny sky, a few gold coins bouncing around" },
|
||||
{ "code": "money_hold", "name": "존버각", "icon": "umbrella", "description": "흐리거나 비 오는 날, 팔지 않고 버티기 좋은 정도", "when": "흐리거나 비 소식이 있는 날", "scene": "the bear sitting firmly on a small pile of gold coins holding an umbrella in gentle rain, calm and determined, the rabbit hugging the bear's arm" },
|
||||
{ "code": "money_split", "name": "분할매수각", "icon": "sun_cloud", "description": "아침저녁과 낮 기온 차가 큰 날, 한 번에 말고 나눠 사기 좋은 정도", "when": "아침·저녁과 낮의 기온 차가 큰 날(7도 이상)", "scene": "the rabbit carefully dropping one gold coin at a time into three small glass jars lined up in a row, morning light on one side and noon light on the other" },
|
||||
{ "code": "money_takeprofit", "name": "익절각", "icon": "gold", "description": "맑은 낮, 오른 만큼 챙겨 두기 좋은 정도", "when": "낮이 맑은 날(가장 따뜻한 시간대)", "scene": "the rabbit picking shiny golden coin-fruits from a small tree at bright noon and handing them to the bear who holds a basket" },
|
||||
{ "code": "money_stoploss", "name": "손절각", "icon": "coldwind", "description": "기온이 뚝 떨어지거나 바람이 찬 날, 미련을 끊기 좋은 정도", "when": "어제보다 기온이 크게 떨어지거나 바람이 차가운 날", "scene": "the bear calmly snipping the string of a drooping balloon with small scissors while the rabbit waves goodbye, cool wind with a few falling leaves" },
|
||||
{ "code": "money_watch", "name": "관망각", "icon": "jipkok", "description": "나가기 싫은 날, 사고팔기보다 지켜보기 좋은 정도", "when": "춥거나 흐려서 집에 있고 싶은 날", "scene": "the rabbit and bear wrapped in a blanket on a sofa, looking out the window through a toy binocular at rolling hills shaped like a gentle zigzag line" },
|
||||
{ "code": "money_avgdown", "name": "물타기각", "icon": "rain", "description": "비 오는 날, 평단 낮추기를 신중히 따져 볼 정도", "when": "비가 오는 날", "scene": "the bear carefully watering a small potted plant whose leaves are gold coins with a little watering can while light rain falls outside, the rabbit holding a tiny umbrella over the pot" },
|
||||
{ "code": "money_dividend", "name": "배당각", "icon": "sunset", "description": "해가 일찍 지는 가을·겨울 저녁, 따박따박 쌓이는 돈이 반가운 정도", "when": "가을·겨울의 맑은 저녁(해 질 녘)", "scene": "at sunset the rabbit and bear holding a basket under a tree that gently drops gold coins like acorns, warm orange sky" },
|
||||
{ "code": "money_savings", "name": "적금각", "icon": "bronze", "description": "쌀쌀하고 맑은 아침, 꾸준히 넣기 좋은 정도", "when": "아침이 쌀쌀하고(체감 10도 안팎 이하) 맑은 날", "scene": "in a crisp clear morning the rabbit wearing a small scarf dropping a plain gold coin (no symbols or marks) into a cute pastel piggy bank while the bear watches with a mug" },
|
||||
{ "code": "money_broke", "name": "텅장각", "icon": "delivery", "description": "비나 추위에 배달이 몰리는 날, 지출을 조심할 정도", "when": "비가 오거나 아주 추워 배달 주문이 몰리는 날", "scene": "the bear sitting among a stack of delivery food boxes holding an empty open wallet upside down, the rabbit peeking in surprised" }
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 246 KiB |
|
After Width: | Height: | Size: 260 KiB |
|
After Width: | Height: | Size: 251 KiB |
|
After Width: | Height: | Size: 262 KiB |
|
After Width: | Height: | Size: 264 KiB |
|
After Width: | Height: | Size: 239 KiB |
|
After Width: | Height: | Size: 261 KiB |
|
After Width: | Height: | Size: 226 KiB |
|
After Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 236 KiB |
|
After Width: | Height: | Size: 240 KiB |
|
After Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 236 KiB |
|
After Width: | Height: | Size: 231 KiB |
|
After Width: | Height: | Size: 267 KiB |
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"about": "날씨각 가상 모델(실존 인물을 닮지 않게 만든 얼굴). 20s 는 20-30대 코디(나이대 20·30), 40s 는 40대~ 코디(나이대 40)에 쓴다. 사진 프롬프트의 첫 참고 이미지로 쓰고, look 은 동작 설명에 넣는다. 만든 프롬프트는 prompts/",
|
||||
"women": [
|
||||
{
|
||||
"id": "f1",
|
||||
"age": "20s",
|
||||
"look": "long straight black hair, a soft innocent face with a gentle closed-lip smile"
|
||||
},
|
||||
{
|
||||
"id": "f2",
|
||||
"age": "20s",
|
||||
"look": "long wavy light brown hair, a bright cheerful face with a lively smile"
|
||||
},
|
||||
{
|
||||
"id": "f3",
|
||||
"age": "20s",
|
||||
"look": "a chic chin-length black bob with blunt bangs, a cool calm expression"
|
||||
},
|
||||
{
|
||||
"id": "f4",
|
||||
"age": "20s",
|
||||
"look": "long dark brown hair with see-through bangs, an elegant face with a soft smile"
|
||||
},
|
||||
{
|
||||
"id": "f41",
|
||||
"age": "40s",
|
||||
"look": "long soft wavy brown hair, an elegant refined face with a gentle closed-lip smile"
|
||||
},
|
||||
{
|
||||
"id": "f42",
|
||||
"age": "40s",
|
||||
"look": "a shoulder-length straight dark brown bob with a center part, a calm natural face"
|
||||
},
|
||||
{
|
||||
"id": "f43",
|
||||
"age": "40s",
|
||||
"look": "medium-length tousled wavy black hair, a chic confident face with a warm smile"
|
||||
}
|
||||
],
|
||||
"men": [
|
||||
{
|
||||
"id": "m2",
|
||||
"age": "20s",
|
||||
"look": "soft brown hair with fluffy bangs, a friendly face with a warm smile"
|
||||
},
|
||||
{
|
||||
"id": "m3",
|
||||
"age": "20s",
|
||||
"look": "a short neat black two-block haircut, a clean composed face"
|
||||
},
|
||||
{
|
||||
"id": "m5",
|
||||
"age": "20s",
|
||||
"look": "golden blond hair with soft bangs, a bright cheerful smile"
|
||||
},
|
||||
{
|
||||
"id": "m6",
|
||||
"age": "20s",
|
||||
"look": "jaw-length layered jet black hair parted in the middle, calm sharp eyes"
|
||||
},
|
||||
{
|
||||
"id": "m7",
|
||||
"age": "20s",
|
||||
"look": "short textured spiky jet black hair with piecey bangs, sharp eyes, a cool composed face"
|
||||
},
|
||||
{
|
||||
"id": "m41",
|
||||
"age": "40s",
|
||||
"look": "short neat black hair with a slight side sweep, a gentle calm face with a soft smile"
|
||||
},
|
||||
{
|
||||
"id": "m42",
|
||||
"age": "40s",
|
||||
"look": "well-groomed short side-parted black hair, thin black-rimmed glasses, a confident warm smile"
|
||||
},
|
||||
{
|
||||
"id": "m43",
|
||||
"age": "40s",
|
||||
"look": "short slicked-back black hair, a sharp confident face with a composed expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Woman: long straight black hair past the shoulders, soft innocent face with a gentle closed-lip smile.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Woman: long wavy light brown hair, bright cheerful face with a lively smile.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Woman: chic chin-length black bob with blunt bangs, cool calm expression.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Woman: long dark brown hair with see-through bangs, elegant graceful face with a soft smile.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early-to-mid 40s who must not resemble any real celebrity, actor, idol or public figure. Natural mature skin with subtle fine lines, healthy and well-groomed. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Woman: long soft wavy brown hair past the shoulders, an elegant refined face with a gentle closed-lip smile.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early-to-mid 40s who must not resemble any real celebrity, actor, idol or public figure. Natural mature skin with subtle fine lines, healthy and well-groomed. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Woman: shoulder-length straight dark brown bob with a center part, a calm natural face with a soft expression.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early-to-mid 40s who must not resemble any real celebrity, actor, idol or public figure. Natural mature skin with subtle fine lines, healthy and well-groomed. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Woman: medium-length tousled wavy black hair, a chic confident face with a warm smile.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man: soft brown hair with fluffy bangs, friendly puppy-like face with a warm smile.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man: short neat black two-block haircut, clean dandy look, composed expression.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early-to-mid 40s who must not resemble any real celebrity, actor, idol or public figure. Natural mature skin with subtle fine lines, healthy and well-groomed. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man: short neat black hair with a slight side sweep, a gentle calm face with a soft smile.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early-to-mid 40s who must not resemble any real celebrity, actor, idol or public figure. Natural mature skin with subtle fine lines, healthy and well-groomed. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man: handsome and stylish, well-groomed short side-parted black hair, thin modern black-rimmed glasses, a defined jawline, clear skin, fit slim build, a confident warm smile, a refined smart office look.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early-to-mid 40s who must not resemble any real celebrity, actor, idol or public figure. Natural mature skin with subtle fine lines, healthy and well-groomed. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man: short slicked-back black hair, a sharp confident face with a composed expression.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man: golden blond hair with soft bangs, bright big cheerful smile showing a little teeth, friendly eyes.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man: jaw-length layered jet black hair parted in the middle, sharp calm eyes, composed cool expression, slim tall build.
|
||||
@@ -0,0 +1 @@
|
||||
Photorealistic full-body fashion lookbook photo, vertical 2:3 portrait, of an ORIGINAL FICTIONAL Korean person in their early 20s who must not resemble any real celebrity, idol or public figure. Standing straight facing the camera, whole body from head to shoes in frame with a little space above the head, arms relaxed, face clearly visible with natural skin texture, soft even studio light, plain light gray seamless studio background. Simple base outfit: plain white t-shirt, straight blue jeans and white sneakers. No text, no logo, no watermark. Man in his late 20s: short textured spiky jet black hair with piecey bangs, sharp narrow eyes, a defined jawline, a cool slightly serious expression.
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"about": "배경음악은 상업 영상에 쓸 수 있고 출처 표기가 필요 없는 Mixkit Stock Music Free License 곡만 쓴다. 음원은 저장소에 넣지 않고 runs/cache/music 에 내려받는다. 사람이 들어 보고 고른 곡만 추가한다.",
|
||||
"tracks": [
|
||||
{"id": "mixkit-839", "title": "Tears of Joy", "artist": "Michael Ramir C.", "url": "https://assets.mixkit.co/music/839/839.mp3", "credit": "🎵 Music: Tears of Joy (Mixkit)"},
|
||||
{"id": "mixkit-493", "title": "Beautiful Dream", "artist": "Diego Nava", "url": "https://assets.mixkit.co/music/493/493.mp3", "credit": "🎵 Music: Beautiful Dream (Mixkit)"}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
"""클립 동작을 templates/actions.json 에서 무작위로 고른다. 한 사람의 a·b 클립이 같은 동작이 되지 않게 겹치지 않게 뽑는다.
|
||||
|
||||
python3 actions.py --who woman --has outer,bag # 두 줄 출력: a 클립 동작, b 클립 동작
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import random
|
||||
from pathlib import Path
|
||||
|
||||
ACTIONS = Path(__file__).resolve().parent.parent / "templates" / "actions.json"
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--who", choices=["woman", "man"], required=True)
|
||||
parser.add_argument("--has", default="", help="그 사람에게 있는 것 (outer, bag 을 쉼표로)")
|
||||
parser.add_argument("--n", type=int, default=2)
|
||||
args = parser.parse_args()
|
||||
|
||||
has = {h.strip() for h in args.has.split(",") if h.strip()}
|
||||
pool = [a["text"] for a in json.loads(ACTIONS.read_text(encoding="utf-8"))[args.who] if set(a.get("needs", [])) <= has]
|
||||
if len(pool) < args.n:
|
||||
raise SystemExit(f"{args.who} 동작 후보가 {len(pool)}개라 {args.n}개를 고를 수 없어요")
|
||||
print("\n".join(random.SystemRandom().sample(pool, args.n)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# usage: clips.sh <작업 폴더> [woman_a woman_b man_a man_b 중 다시 만들 것]
|
||||
# 작업 폴더에 woman_photo.png·man_photo.png(코디 사진)와 woman_a.txt·woman_b.txt·man_a.txt·man_b.txt(동작 설명)를 두면
|
||||
# 4초 클립 4개(woman_a.mp4 …)를 만든다. 이미 있는 클립은 건너뛰고, 이름을 주면 그 클립만 지우고 다시 만든다.
|
||||
set -euo pipefail
|
||||
HERE=$(cd "$(dirname "$0")" && pwd)
|
||||
WORK=$(cd "$1" && pwd); shift
|
||||
cd "$WORK"
|
||||
for name in "$@"; do rm -f "$name.mp4" "$name.workflow.json"; done
|
||||
trap '"$HERE/server.sh" down' EXIT
|
||||
negative=$(cat "$HERE/../templates/negative.txt")
|
||||
for who in woman man; do
|
||||
[ -s ${who}_first.png ] || ffmpeg -hide_banner -loglevel error -y -i ${who}_photo.png \
|
||||
-vf "scale=1088:1920:force_original_aspect_ratio=increase:flags=lanczos,crop=1088:1920" -frames:v 1 ${who}_first.png
|
||||
done
|
||||
for name in woman_a woman_b man_a man_b; do
|
||||
[ -s "$name.mp4" ] && { echo "$name 이미 있음"; continue; }
|
||||
echo "== $name 시작 $(date +%H:%M:%S)"
|
||||
"${PYTHON:-python3}" "$HERE/generate.py" --image "${name%_*}_first.png" --prompt-file "$name.txt" --negative "$negative" \
|
||||
--duration 4 --seed $((RANDOM % 9000 + 100)) --anchor-end --keep-running --output "$name.mp4"
|
||||
echo "== $name 완료 $(date +%H:%M:%S)"
|
||||
done
|
||||
@@ -0,0 +1,55 @@
|
||||
"""Codex CLI의 내장 이미지 생성 도구로 그림 한 장을 만들어 PNG로 저장한다 (날씨각 sns/admin codex-image.mjs와 같은 방식).
|
||||
|
||||
usage: python3 codex_image.py --prompt-file p.txt --output out.png [--image ref.jpg ...]
|
||||
"""
|
||||
import argparse
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
# 도구 호출·저장만 하므로 중간 모델·낮은 추론으로 고정한다 (sns/admin과 같은 이유)
|
||||
IMAGE_MODEL = os.environ.get("CODEX_IMAGE_MODEL", "gpt-6-sol")
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
parser.add_argument("--prompt-file", required=True)
|
||||
parser.add_argument("--output", required=True)
|
||||
parser.add_argument("--image", action="append", default=[], help="참고 이미지 (여러 번 줄 수 있다)")
|
||||
args = parser.parse_args()
|
||||
|
||||
work = Path(tempfile.mkdtemp(prefix="codex-image-"))
|
||||
task = "\n".join([
|
||||
"내장 이미지 생성 도구로 아래 프롬프트대로 이미지를 만든다."
|
||||
+ (" 첨부한 참고 이미지는 프롬프트가 말한 용도로만 따른다." if args.image else ""),
|
||||
"만든 이미지를 직접 열어 확인한다: 프롬프트와 다르거나 손·얼굴이 일그러졌거나 글자·로고가 있으면 한 번만 다시 만든다 (최대 2장).",
|
||||
"통과한 한 장만 이 폴더에 result.png 로 저장한다. 다른 파일은 만들지 않는다.",
|
||||
"",
|
||||
Path(args.prompt_file).read_text(encoding="utf-8").strip(),
|
||||
])
|
||||
command = [os.environ.get("CODEX_BIN") or shutil.which("codex") or "codex", "exec", "--skip-git-repo-check", "-C", str(work), "-s", "workspace-write", "-m", IMAGE_MODEL,
|
||||
"-c", 'model_reasoning_effort="low"']
|
||||
for image in args.image:
|
||||
command += ["-i", str(Path(image).resolve())]
|
||||
try:
|
||||
subprocess.run(command, input=task, encoding="utf-8", stdout=subprocess.DEVNULL, check=True)
|
||||
result = work / "result.png"
|
||||
if not result.is_file():
|
||||
pngs = sorted(work.glob("*.png"))
|
||||
if not pngs:
|
||||
sys.exit(f"Codex가 그림을 저장하지 않았어요: {work}")
|
||||
result = pngs[0]
|
||||
Path(args.output).parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copyfile(result, args.output)
|
||||
print("saved", args.output)
|
||||
except subprocess.CalledProcessError as error:
|
||||
sys.exit(f"Codex 실행이 실패했어요 ({error}). 사용 한도나 로그인을 확인하세요.")
|
||||
finally:
|
||||
shutil.rmtree(work, ignore_errors=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
# usage: compose.sh <작업 폴더> [음악 mp3]
|
||||
# 여자(woman_a+woman_b) 6.7초 → 남자(man_a+man_b) 6.7초 → 날씨각 마무리 2.4초, 0.4초 크로스페이드로 15초 final.mp4 를 만든다.
|
||||
# 작업 폴더에 title_woman.png·title_man.png(render.py title)와 bubbles.txt("이름 시작초 끝초" 줄, PNG는 bubbles/이름.png)가 있어야 한다.
|
||||
# 두 클립 이음새의 멈춘 구간은 빨리 감아 잇는다. 영상 창은 프로필 그리드 3:4(위 240 ~ 아래 1680)를 채우고 바깥은 같은 영상을 흐리게 깔며, 글자는 피드 4:5(위 285 ~ 아래 1635) 안에 둔다.
|
||||
set -euo pipefail
|
||||
HERE=$(cd "$(dirname "$0")" && pwd)
|
||||
WORK=$(cd "$1" && pwd)
|
||||
MUSIC=${2:-}
|
||||
# 윈도우는 python3 대신 python·py 일 수 있다
|
||||
PY=${PYTHON:-python3}
|
||||
cd "$WORK"
|
||||
[ -s mask.png ] || "$PY" "$HERE/render.py" mask --out mask.png
|
||||
[ -s frame.png ] || "$PY" "$HERE/render.py" frame --out frame.png
|
||||
[ -s outro.png ] || "$PY" "$HERE/render.py" outro --out outro.png
|
||||
part=6.7; outro=2.4; fade=0.4
|
||||
o1=$(awk "BEGIN{print $part - $fade}"); o2=$(awk "BEGIN{print 2 * $part - 2 * $fade}")
|
||||
card="scale=816:1440:flags=lanczos,format=rgba"
|
||||
blur="scale=272:480,boxblur=10:2,scale=1088:1920,crop=1080:1920:4:0,eq=brightness=0.03:saturation=0.9,format=rgba"
|
||||
join() { # 클립a 클립b 이름
|
||||
echo "[$1:v]split[$3a1][$3a2];[$3a1]trim=end=3.25,setpts=PTS-STARTPTS[$3x0];[$3a2]trim=start=3.25,setpts=(PTS-STARTPTS)/3[$3x1];[$2:v]split[$3b1][$3b2];[$3b1]trim=end=0.25,setpts=(PTS-STARTPTS)/2[$3x2];[$3b2]trim=start=0.25,setpts=PTS-STARTPTS[$3x3];[$3x0][$3x1][$3x2][$3x3]concat=n=4:v=1:a=0,fps=24,trim=duration=$part,setpts=PTS-STARTPTS,split[$3s1][$3s2];[$3s1]$card[$3v];[$3s2]$blur[$3g];"
|
||||
}
|
||||
ffmpeg -hide_banner -loglevel error -y -i woman_a.mp4 -i woman_b.mp4 -i man_a.mp4 -i man_b.mp4 \
|
||||
-loop 1 -framerate 24 -i title_woman.png -loop 1 -framerate 24 -i title_man.png -loop 1 -framerate 24 -i mask.png \
|
||||
-loop 1 -framerate 24 -i outro.png -loop 1 -framerate 24 -i frame.png -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -filter_complex "\
|
||||
$(join 0 1 w)$(join 2 3 m)\
|
||||
[6:v]format=rgba,alphaextract,split[k1][k2];[wv][k1]alphamerge[wr];[mv][k2]alphamerge[mr];\
|
||||
[4:v]trim=duration=$part,format=rgba[wb];[5:v]trim=duration=$part,format=rgba[mb];\
|
||||
[8:v]trim=duration=$part,format=rgba,split[fw][fm];\
|
||||
[wg][fw]overlay=0:0[wbg];[wbg][wr]overlay=132:240[wf];[wf][wb]overlay=0:0,format=yuv420p,setpts=PTS-STARTPTS[a];\
|
||||
[mg][fm]overlay=0:0[mbg];[mbg][mr]overlay=132:240[mf];[mf][mb]overlay=0:0,format=yuv420p,setpts=PTS-STARTPTS[b];\
|
||||
[7:v]trim=duration=$outro,format=yuv420p,setpts=PTS-STARTPTS[c];\
|
||||
[a][b]xfade=transition=fade:duration=$fade:offset=$o1[ab];[ab][c]xfade=transition=fade:duration=$fade:offset=$o2,format=yuv420p[out]" \
|
||||
-map "[out]" -map 9:a -t 15 -r 24 -c:v libx264 -preset slow -crf 18 -profile:v high -pix_fmt yuv420p \
|
||||
-c:a aac -b:a 128k -ar 44100 -movflags +faststart base.mp4
|
||||
|
||||
# 자막: 0.2초 페이드 + 살짝 올라오며 등장
|
||||
inputs=(); chain=""; prev="0:v"; k=1
|
||||
while read -r name start end; do
|
||||
[ -n "${name:-}" ] || continue
|
||||
inputs+=(-loop 1 -framerate 24 -t 15 -i "bubbles/$name.png")
|
||||
fo=$(awk "BEGIN{printf \"%g\", $end - 0.2}")
|
||||
chain+="[$k:v]format=rgba,fade=in:st=$start:d=0.2:alpha=1,fade=out:st=$fo:d=0.2:alpha=1[b$k];"
|
||||
chain+="[$prev][b$k]overlay=x=0:y='max(0\,20*(1-(t-$start)/0.2))':enable='between(t,$start,$end)'[v$k];"
|
||||
prev="v$k"; k=$((k+1))
|
||||
done < <(tr -d '\r' < bubbles.txt)
|
||||
if [ $k -eq 1 ]; then cp base.mp4 bubbles.mp4; else
|
||||
ffmpeg -hide_banner -loglevel error -y -i base.mp4 "${inputs[@]}" -filter_complex "${chain%;}" -map "[$prev]" -map 0:a \
|
||||
-c:v libx264 -preset slow -crf 17 -profile:v high -pix_fmt yuv420p -c:a copy -movflags +faststart bubbles.mp4
|
||||
fi
|
||||
|
||||
if [ -n "$MUSIC" ]; then
|
||||
ffmpeg -hide_banner -loglevel error -y -i bubbles.mp4 -i "$MUSIC" -filter_complex \
|
||||
"[1:a]atrim=start=0.3:end=15.3,asetpts=PTS-STARTPTS,afade=t=in:st=0:d=0.2,afade=t=out:st=14.0:d=1.0,loudnorm=I=-14:TP=-1.5:LRA=11,aresample=44100[a]" \
|
||||
-map 0:v -map "[a]" -c:v copy -c:a aac -b:a 192k -ar 44100 -ac 2 -t 15 -movflags +faststart final.mp4
|
||||
else
|
||||
mv bubbles.mp4 final.mp4
|
||||
fi
|
||||
rm -f base.mp4 bubbles.mp4
|
||||
ffprobe -v error -show_entries format=duration:stream=codec_name,width,height -of compact final.mp4
|
||||
@@ -0,0 +1,208 @@
|
||||
"""사진 한 장으로 LTX 춤 영상을 만든다. 전용 컨테이너(server.sh)에 SSH 터널로 그래프를 보낸다.
|
||||
|
||||
menusong 그래프(ltx_graph.json)와 달리 고화질 단계에서도 원본 사진을 첫 프레임에 다시 고정한다.
|
||||
|
||||
usage: python3 generate.py --image first.png --prompt-file prompt.txt --output clip.mp4 [--duration 6 --width 1088 --height 1920]
|
||||
"""
|
||||
import argparse
|
||||
import json
|
||||
import math
|
||||
import os
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
|
||||
HERE = Path(__file__).resolve().parent
|
||||
DEFAULT_NEGATIVE = "distorted anatomy, extra limbs, flicker, blurry, watermark, text"
|
||||
UNUSED_NODES = ("409", "405:380", "405:381", "405:382", "405:383", "405:393")
|
||||
|
||||
|
||||
def call(method, url, body=None, headers=None, timeout=60):
|
||||
request = urllib.request.Request(url, data=body, method=method, headers=headers or {})
|
||||
try:
|
||||
with urllib.request.urlopen(request, timeout=timeout) as response:
|
||||
return response.status, response.read()
|
||||
except urllib.error.HTTPError as error:
|
||||
return error.code, error.read()
|
||||
|
||||
|
||||
def upload_image(base, path):
|
||||
boundary = uuid.uuid4().hex
|
||||
data = Path(path).read_bytes()
|
||||
body = (f"--{boundary}\r\nContent-Disposition: form-data; name=\"image\"; filename=\"{Path(path).name}\"\r\n"
|
||||
f"Content-Type: image/png\r\n\r\n").encode() + data + f"\r\n--{boundary}--\r\n".encode()
|
||||
status, raw = call("POST", base + "/upload/image", body, {"Content-Type": f"multipart/form-data; boundary={boundary}"})
|
||||
if status != 200:
|
||||
sys.exit(f"이미지 업로드 실패 {status}: {raw[:200]!r}")
|
||||
uploaded = json.loads(raw)
|
||||
return "/".join(filter(None, (uploaded.get("subfolder", ""), uploaded["name"])))
|
||||
|
||||
|
||||
def build_graph(base, args, image_name):
|
||||
graph = json.loads((HERE / "ltx_graph.json").read_text(encoding="utf-8"))
|
||||
graph["405:376"]["inputs"]["value"] = Path(args.prompt_file).read_text(encoding="utf-8").strip()
|
||||
graph["405:373"]["inputs"]["text"] = args.negative
|
||||
for node in ("405:338", "405:339"):
|
||||
graph[node]["inputs"]["noise_seed"] = args.seed
|
||||
graph["405:361"]["inputs"]["value"] = 24
|
||||
graph["405:362"]["inputs"]["value"] = math.ceil(args.duration)
|
||||
graph["405:372"]["inputs"]["value"] = args.width
|
||||
graph["405:360"]["inputs"]["value"] = args.height
|
||||
graph["405:364"]["inputs"]["text"] = ["405:376", 0]
|
||||
for unused in UNUSED_NODES:
|
||||
graph.pop(unused, None)
|
||||
if args.refine_sigmas:
|
||||
graph["405:395"]["inputs"]["sigmas"] = args.refine_sigmas
|
||||
|
||||
save = graph["75"]["inputs"]
|
||||
save.update({"filename_prefix": "nalssigak/ootd", "format": "mp4", "codec": "h264",
|
||||
"format.codec": "h264", "format.codec.encoding": "auto", "codec.encoding": "auto"})
|
||||
status, raw = call("GET", base + "/object_info/SaveVideo")
|
||||
allowed = json.loads(raw)["SaveVideo"]["input"]["required"] if status == 200 else {}
|
||||
for field in ("format", "codec"):
|
||||
choices = allowed.get(field, [None])[0]
|
||||
if isinstance(choices, list) and save[field] not in choices:
|
||||
save[field] = "auto"
|
||||
|
||||
# 저해상도 단계: menusong과 같은 방식으로 첫 프레임 가이드를 붙였다가 업스케일 전에 떼어낸다.
|
||||
graph["_img_load"] = {"class_type": "LoadImage", "inputs": {"image": image_name}}
|
||||
graph["_img_guide"] = {"class_type": "LTXVAddGuide", "inputs": {
|
||||
"positive": ["405:365", 0], "negative": ["405:365", 1], "vae": ["405:385", 0],
|
||||
"latent": ["405:356", 0], "image": ["_img_load", 0], "frame_idx": 0, "strength": 1.0}}
|
||||
# 처음 말고도 가운데·마지막 프레임을 원본 사진으로 잡아 움직이는 동안 얼굴이 멀어지는 것을 막는다.
|
||||
frames = 24 * math.ceil(args.duration)
|
||||
anchors = [round(frames * k / (args.anchor_mid + 1) / 8) * 8 for k in range(1, args.anchor_mid + 1)]
|
||||
if args.anchor_end:
|
||||
anchors.append(-1)
|
||||
|
||||
def chain(prefix, source, latent):
|
||||
for number, frame in enumerate(anchors):
|
||||
name = f"{prefix}{number}"
|
||||
graph[name] = {"class_type": "LTXVAddGuide", "inputs": {
|
||||
"positive": [source, 0], "negative": [source, 1], "vae": ["405:385", 0], "latent": latent,
|
||||
"image": ["_img_load", 0], "frame_idx": frame, "strength": args.end_strength}}
|
||||
source, latent = name, [name, 2]
|
||||
return source, latent
|
||||
|
||||
low, low_latent = chain("_img_anchor", "_img_guide", ["_img_guide", 2])
|
||||
graph["405:377"]["inputs"]["video_latent"] = low_latent
|
||||
graph["405:388"]["inputs"].update(positive=[low, 0], negative=[low, 1])
|
||||
graph["_crop_guides"] = {"class_type": "LTXVCropGuides", "inputs": {
|
||||
"positive": [low, 0], "negative": [low, 1], "latent": ["405:367", 0]}}
|
||||
graph["405:348"]["inputs"]["samples"] = ["_crop_guides", 2]
|
||||
graph["405:391"]["inputs"].update(positive=["_crop_guides", 0], negative=["_crop_guides", 1])
|
||||
|
||||
# 고화질 단계: 업스케일한 latent의 첫 프레임을 원본 사진으로 다시 고정한다.
|
||||
graph["_hd_inplace"] = {"class_type": "LTXVImgToVideoInplace", "inputs": {
|
||||
"vae": ["405:385", 0], "image": ["_img_load", 0], "latent": ["405:348", 0],
|
||||
"strength": args.hd_strength, "bypass": False}}
|
||||
graph["405:340"]["inputs"]["video_latent"] = ["_hd_inplace", 0]
|
||||
if anchors:
|
||||
high, high_latent = chain("_hd_anchor", "_crop_guides", ["_hd_inplace", 0])
|
||||
graph["405:340"]["inputs"]["video_latent"] = high_latent
|
||||
graph["405:391"]["inputs"].update(positive=[high, 0], negative=[high, 1])
|
||||
graph["_hd_crop"] = {"class_type": "LTXVCropGuides", "inputs": {
|
||||
"positive": [high, 0], "negative": [high, 1], "latent": ["405:369", 0]}}
|
||||
graph["405:374"]["inputs"]["samples"] = ["_hd_crop", 2]
|
||||
return graph
|
||||
|
||||
|
||||
def wait_result(base, prompt_id, timeout):
|
||||
deadline = time.monotonic() + timeout
|
||||
started = time.monotonic()
|
||||
while time.monotonic() < deadline:
|
||||
status, raw = call("GET", base + "/history/" + prompt_id)
|
||||
entry = json.loads(raw).get(prompt_id) if status == 200 else None
|
||||
if entry:
|
||||
state = entry.get("status", {})
|
||||
if state.get("status_str") == "error":
|
||||
sys.exit("생성 실패: " + json.dumps(state.get("messages", []), ensure_ascii=False)[:2000])
|
||||
for items in entry.get("outputs", {}).get("75", {}).values():
|
||||
for item in items if isinstance(items, list) else []:
|
||||
if isinstance(item, dict) and str(item.get("filename", "")).endswith(".mp4"):
|
||||
print(f"생성 완료 {time.monotonic() - started:.0f}s", flush=True)
|
||||
return item
|
||||
if state.get("completed"):
|
||||
sys.exit("완료됐지만 MP4가 없습니다")
|
||||
time.sleep(5)
|
||||
sys.exit("시간 초과: 서버에서 계속 생성 중일 수 있습니다. server.sh status로 확인하세요")
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
parser.add_argument("--image", required=True, help="첫 프레임 PNG (width×height와 같은 비율)")
|
||||
parser.add_argument("--prompt-file", required=True)
|
||||
parser.add_argument("--output", required=True)
|
||||
parser.add_argument("--negative", default=DEFAULT_NEGATIVE)
|
||||
parser.add_argument("--duration", type=int, default=6)
|
||||
parser.add_argument("--seed", type=int, default=42)
|
||||
parser.add_argument("--width", type=int, default=1088)
|
||||
parser.add_argument("--height", type=int, default=1920)
|
||||
parser.add_argument("--hd-strength", type=float, default=1.0, help="고화질 단계 첫 프레임 고정 강도 0~1")
|
||||
parser.add_argument("--anchor-end", action="store_true", help="마지막 프레임도 원본 사진으로 고정 (처음·끝 자세가 같아진다)")
|
||||
parser.add_argument("--anchor-mid", type=int, default=0, help="중간에 원본 사진으로 고정할 프레임 수 (고르게 나눔)")
|
||||
parser.add_argument("--end-strength", type=float, default=1.0, help="중간·마지막 프레임 고정 강도")
|
||||
parser.add_argument("--refine-sigmas", default="", help="고화질 단계 sigma 목록. 비우면 menusong 기본값")
|
||||
parser.add_argument("--timeout", type=int, default=1800)
|
||||
parser.add_argument("--keep-running", action="store_true", help="끝난 뒤 컨테이너를 내리지 않는다")
|
||||
args = parser.parse_args()
|
||||
for side in (args.width, args.height):
|
||||
if side % 64 or not 256 <= side <= 2048:
|
||||
sys.exit("width와 height는 256~2048 사이 64의 배수여야 합니다")
|
||||
|
||||
server = ["bash", str(HERE / "server.sh")]
|
||||
if subprocess.run(server + ["up"]).returncode != 0:
|
||||
sys.exit("전용 컨테이너를 시작하지 못했습니다")
|
||||
with socket.socket() as sock:
|
||||
sock.bind(("127.0.0.1", 0))
|
||||
port = sock.getsockname()[1]
|
||||
remote_port = int(os.environ.get("OOTD_SERVER_PORT", "32681"))
|
||||
host = os.environ.get("OOTD_SERVER_HOST", "King_admin")
|
||||
tunnel = subprocess.Popen(["ssh", "-N", "-T", "-o", "BatchMode=yes", "-o", "ExitOnForwardFailure=yes",
|
||||
"-o", "ServerAliveInterval=15", "-L", f"127.0.0.1:{port}:127.0.0.1:{remote_port}", host],
|
||||
stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
base = f"http://127.0.0.1:{port}"
|
||||
finished = False
|
||||
try:
|
||||
for _ in range(100):
|
||||
try:
|
||||
if call("GET", base + "/system_stats", timeout=2)[0] == 200:
|
||||
break
|
||||
except OSError:
|
||||
time.sleep(0.3)
|
||||
else:
|
||||
sys.exit("SSH 터널 연결 실패")
|
||||
graph = build_graph(base, args, upload_image(base, args.image))
|
||||
Path(args.output).with_suffix(".workflow.json").write_text(json.dumps(graph, ensure_ascii=False, indent=1), encoding="utf-8")
|
||||
status, raw = call("POST", base + "/prompt", json.dumps({"prompt": graph, "client_id": uuid.uuid4().hex}).encode(),
|
||||
{"Content-Type": "application/json"})
|
||||
if status != 200:
|
||||
sys.exit(f"그래프 제출 실패 {status}: {raw[:1500].decode(errors='replace')}")
|
||||
prompt_id = json.loads(raw)["prompt_id"]
|
||||
print("prompt", prompt_id, flush=True)
|
||||
item = wait_result(base, prompt_id, args.timeout)
|
||||
query = urllib.parse.urlencode({k: item[k] for k in ("filename", "subfolder", "type") if k in item})
|
||||
status, data = call("GET", base + "/view?" + query, timeout=300)
|
||||
if status != 200 or not data:
|
||||
sys.exit(f"결과 다운로드 실패 {status}")
|
||||
Path(args.output).write_bytes(data)
|
||||
print("saved", args.output, flush=True)
|
||||
finished = True
|
||||
finally:
|
||||
tunnel.terminate()
|
||||
tunnel.wait(timeout=5)
|
||||
# 실패·중단 때도 GPU를 놓아주도록 컨테이너를 멈춘다.
|
||||
if not args.keep_running:
|
||||
subprocess.run(server + ["down"])
|
||||
if not finished:
|
||||
print("중단됨: 결과를 받지 못했습니다", file=sys.stderr)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,641 @@
|
||||
{
|
||||
"75": {
|
||||
"inputs": {
|
||||
"filename_prefix": "menusong/clip",
|
||||
"format": "auto",
|
||||
"format.codec": "auto",
|
||||
"codec": "auto",
|
||||
"video": [
|
||||
"405:370",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "SaveVideo",
|
||||
"_meta": {
|
||||
"title": "비디오 저장"
|
||||
}
|
||||
},
|
||||
"409": {
|
||||
"inputs": {
|
||||
"aspect_ratio": "16:9 (Widescreen)",
|
||||
"megapixels": 0.9,
|
||||
"multiple": 32
|
||||
},
|
||||
"class_type": "ResolutionSelector",
|
||||
"_meta": {
|
||||
"title": "해상도 선택기"
|
||||
}
|
||||
},
|
||||
"405:370": {
|
||||
"inputs": {
|
||||
"fps": [
|
||||
"405:359",
|
||||
0
|
||||
],
|
||||
"bit_depth": 8,
|
||||
"images": [
|
||||
"405:374",
|
||||
0
|
||||
],
|
||||
"audio": [
|
||||
"405:358",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "CreateVideo",
|
||||
"_meta": {
|
||||
"title": "비디오 생성"
|
||||
}
|
||||
},
|
||||
"405:340": {
|
||||
"inputs": {
|
||||
"video_latent": [
|
||||
"405:348",
|
||||
0
|
||||
],
|
||||
"audio_latent": [
|
||||
"405:367",
|
||||
1
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVConcatAVLatent",
|
||||
"_meta": {
|
||||
"title": "LTXVConcatAVLatent"
|
||||
}
|
||||
},
|
||||
"405:395": {
|
||||
"inputs": {
|
||||
"sigmas": "0.85, 0.7250, 0.4219, 0.0"
|
||||
},
|
||||
"class_type": "ManualSigmas",
|
||||
"_meta": {
|
||||
"title": "ManualSigmas"
|
||||
}
|
||||
},
|
||||
"405:348": {
|
||||
"inputs": {
|
||||
"samples": [
|
||||
"405:367",
|
||||
0
|
||||
],
|
||||
"upscale_model": [
|
||||
"405:371",
|
||||
0
|
||||
],
|
||||
"vae": [
|
||||
"405:385",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVLatentUpsampler",
|
||||
"_meta": {
|
||||
"title": "LTXVLatentUpsampler"
|
||||
}
|
||||
},
|
||||
"405:358": {
|
||||
"inputs": {
|
||||
"samples": [
|
||||
"405:369",
|
||||
1
|
||||
],
|
||||
"audio_vae": [
|
||||
"405:386",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVAudioVAEDecode",
|
||||
"_meta": {
|
||||
"title": "LTXV 오디오 VAE 디코드"
|
||||
}
|
||||
},
|
||||
"405:341": {
|
||||
"inputs": {
|
||||
"sampler_name": "euler_ancestral"
|
||||
},
|
||||
"class_type": "KSamplerSelect",
|
||||
"_meta": {
|
||||
"title": "KSampler (선택)"
|
||||
}
|
||||
},
|
||||
"405:391": {
|
||||
"inputs": {
|
||||
"video_cfg": 1.0,
|
||||
"audio_cfg": 1.0,
|
||||
"model": [
|
||||
"405:384",
|
||||
0
|
||||
],
|
||||
"positive": [
|
||||
"405:365",
|
||||
0
|
||||
],
|
||||
"negative": [
|
||||
"405:365",
|
||||
1
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVDualCFGGuider",
|
||||
"_meta": {
|
||||
"title": "LTXV Dual CFG Guider"
|
||||
}
|
||||
},
|
||||
"405:368": {
|
||||
"inputs": {
|
||||
"noise": [
|
||||
"405:338",
|
||||
0
|
||||
],
|
||||
"guider": [
|
||||
"405:391",
|
||||
0
|
||||
],
|
||||
"sampler": [
|
||||
"405:341",
|
||||
0
|
||||
],
|
||||
"sigmas": [
|
||||
"405:395",
|
||||
0
|
||||
],
|
||||
"latent_image": [
|
||||
"405:340",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "SamplerCustomAdvanced",
|
||||
"_meta": {
|
||||
"title": "고급 사용자 정의 샘플러"
|
||||
}
|
||||
},
|
||||
"405:338": {
|
||||
"inputs": {
|
||||
"noise_seed": 42
|
||||
},
|
||||
"class_type": "RandomNoise",
|
||||
"_meta": {
|
||||
"title": "무작위 노이즈"
|
||||
}
|
||||
},
|
||||
"405:367": {
|
||||
"inputs": {
|
||||
"av_latent": [
|
||||
"405:344",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVSeparateAVLatent",
|
||||
"_meta": {
|
||||
"title": "LTXVSeparateAVLatent"
|
||||
}
|
||||
},
|
||||
"405:369": {
|
||||
"inputs": {
|
||||
"av_latent": [
|
||||
"405:368",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVSeparateAVLatent",
|
||||
"_meta": {
|
||||
"title": "LTXVSeparateAVLatent"
|
||||
}
|
||||
},
|
||||
"405:374": {
|
||||
"inputs": {
|
||||
"tile_size": 512,
|
||||
"overlap": 64,
|
||||
"temporal_size": 64,
|
||||
"temporal_overlap": 16,
|
||||
"samples": [
|
||||
"405:369",
|
||||
0
|
||||
],
|
||||
"vae": [
|
||||
"405:385",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "VAEDecodeTiled",
|
||||
"_meta": {
|
||||
"title": "VAE 디코드 (타일)"
|
||||
}
|
||||
},
|
||||
"405:344": {
|
||||
"inputs": {
|
||||
"noise": [
|
||||
"405:339",
|
||||
0
|
||||
],
|
||||
"guider": [
|
||||
"405:388",
|
||||
0
|
||||
],
|
||||
"sampler": [
|
||||
"405:352",
|
||||
0
|
||||
],
|
||||
"sigmas": [
|
||||
"405:404",
|
||||
0
|
||||
],
|
||||
"latent_image": [
|
||||
"405:377",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "SamplerCustomAdvanced",
|
||||
"_meta": {
|
||||
"title": "고급 사용자 정의 샘플러"
|
||||
}
|
||||
},
|
||||
"405:404": {
|
||||
"inputs": {
|
||||
"sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
|
||||
},
|
||||
"class_type": "ManualSigmas",
|
||||
"_meta": {
|
||||
"title": "ManualSigmas"
|
||||
}
|
||||
},
|
||||
"405:388": {
|
||||
"inputs": {
|
||||
"video_cfg": 1.0,
|
||||
"audio_cfg": 1.0,
|
||||
"model": [
|
||||
"405:384",
|
||||
0
|
||||
],
|
||||
"positive": [
|
||||
"405:365",
|
||||
0
|
||||
],
|
||||
"negative": [
|
||||
"405:365",
|
||||
1
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVDualCFGGuider",
|
||||
"_meta": {
|
||||
"title": "LTXV Dual CFG Guider"
|
||||
}
|
||||
},
|
||||
"405:352": {
|
||||
"inputs": {
|
||||
"sampler_name": "euler_ancestral"
|
||||
},
|
||||
"class_type": "KSamplerSelect",
|
||||
"_meta": {
|
||||
"title": "KSampler (선택)"
|
||||
}
|
||||
},
|
||||
"405:339": {
|
||||
"inputs": {
|
||||
"noise_seed": 903463531924076
|
||||
},
|
||||
"class_type": "RandomNoise",
|
||||
"_meta": {
|
||||
"title": "무작위 노이즈"
|
||||
}
|
||||
},
|
||||
"405:365": {
|
||||
"inputs": {
|
||||
"frame_rate": [
|
||||
"405:359",
|
||||
0
|
||||
],
|
||||
"positive": [
|
||||
"405:364",
|
||||
0
|
||||
],
|
||||
"negative": [
|
||||
"405:373",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVConditioning",
|
||||
"_meta": {
|
||||
"title": "LTXV 조건 설정"
|
||||
}
|
||||
},
|
||||
"405:377": {
|
||||
"inputs": {
|
||||
"video_latent": [
|
||||
"405:356",
|
||||
0
|
||||
],
|
||||
"audio_latent": [
|
||||
"405:366",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVConcatAVLatent",
|
||||
"_meta": {
|
||||
"title": "LTXVConcatAVLatent"
|
||||
}
|
||||
},
|
||||
"405:373": {
|
||||
"inputs": {
|
||||
"text": "distorted anatomy, extra limbs, flicker, blurry, watermark, text",
|
||||
"clip": [
|
||||
"405:387",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "CLIPTextEncode",
|
||||
"_meta": {
|
||||
"title": "CLIP 텍스트 인코딩 (프롬프트)"
|
||||
}
|
||||
},
|
||||
"405:356": {
|
||||
"inputs": {
|
||||
"width": [
|
||||
"405:353",
|
||||
1
|
||||
],
|
||||
"height": [
|
||||
"405:355",
|
||||
1
|
||||
],
|
||||
"length": [
|
||||
"405:378",
|
||||
1
|
||||
],
|
||||
"batch_size": 1
|
||||
},
|
||||
"class_type": "EmptyLTXVLatentVideo",
|
||||
"_meta": {
|
||||
"title": "빈 잠재 비디오 (LTXV)"
|
||||
}
|
||||
},
|
||||
"405:366": {
|
||||
"inputs": {
|
||||
"frames_number": [
|
||||
"405:378",
|
||||
1
|
||||
],
|
||||
"frame_rate": [
|
||||
"405:359",
|
||||
1
|
||||
],
|
||||
"batch_size": 1,
|
||||
"audio_vae": [
|
||||
"405:386",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "LTXVEmptyLatentAudio",
|
||||
"_meta": {
|
||||
"title": "LTXV 빈 latent 오디오"
|
||||
}
|
||||
},
|
||||
"405:381": {
|
||||
"inputs": {
|
||||
"source": [
|
||||
"405:382",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "PreviewAny",
|
||||
"_meta": {
|
||||
"title": "미리보기 아무거나"
|
||||
}
|
||||
},
|
||||
"405:382": {
|
||||
"inputs": {
|
||||
"switch": [
|
||||
"405:383",
|
||||
0
|
||||
],
|
||||
"on_false": [
|
||||
"405:376",
|
||||
0
|
||||
],
|
||||
"on_true": [
|
||||
"405:380",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "ComfySwitchNode",
|
||||
"_meta": {
|
||||
"title": "스위치"
|
||||
}
|
||||
},
|
||||
"405:371": {
|
||||
"inputs": {
|
||||
"model_name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"
|
||||
},
|
||||
"class_type": "LatentUpscaleModelLoader",
|
||||
"_meta": {
|
||||
"title": "Latent 업스케일 모델 불러오기"
|
||||
}
|
||||
},
|
||||
"405:384": {
|
||||
"inputs": {
|
||||
"unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
|
||||
"weight_dtype": "default"
|
||||
},
|
||||
"class_type": "UNETLoader",
|
||||
"_meta": {
|
||||
"title": "확산 모델 로드"
|
||||
}
|
||||
},
|
||||
"405:385": {
|
||||
"inputs": {
|
||||
"vae_name": "ltx-2.5-video-vae-bf16.safetensors"
|
||||
},
|
||||
"class_type": "VAELoader",
|
||||
"_meta": {
|
||||
"title": "VAE 로드"
|
||||
}
|
||||
},
|
||||
"405:386": {
|
||||
"inputs": {
|
||||
"vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
|
||||
},
|
||||
"class_type": "VAELoader",
|
||||
"_meta": {
|
||||
"title": "VAE 로드"
|
||||
}
|
||||
},
|
||||
"405:387": {
|
||||
"inputs": {
|
||||
"clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
|
||||
"type": "ltxv",
|
||||
"device": "default"
|
||||
},
|
||||
"class_type": "CLIPLoader",
|
||||
"_meta": {
|
||||
"title": "CLIP 로드"
|
||||
}
|
||||
},
|
||||
"405:380": {
|
||||
"inputs": {
|
||||
"prompt": [
|
||||
"405:376",
|
||||
0
|
||||
],
|
||||
"max_length": 600,
|
||||
"sampling_mode": "on",
|
||||
"sampling_mode.temperature": 0.7,
|
||||
"sampling_mode.top_k": 64,
|
||||
"sampling_mode.top_p": 0.95,
|
||||
"sampling_mode.min_p": 0.05,
|
||||
"sampling_mode.repetition_penalty": 1.15,
|
||||
"sampling_mode.seed": 0,
|
||||
"sampling_mode.presence_penalty": 0.0,
|
||||
"thinking": false,
|
||||
"use_default_template": true,
|
||||
"clip": [
|
||||
"405:393",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "TextGenerateLTX2Prompt",
|
||||
"_meta": {
|
||||
"title": "TextGenerateLTX2Prompt"
|
||||
}
|
||||
},
|
||||
"405:378": {
|
||||
"inputs": {
|
||||
"expression": "a * b + 1",
|
||||
"values.a": [
|
||||
"405:362",
|
||||
0
|
||||
],
|
||||
"values.b": [
|
||||
"405:361",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "ComfyMathExpression",
|
||||
"_meta": {
|
||||
"title": "Math Expression (length)"
|
||||
}
|
||||
},
|
||||
"405:353": {
|
||||
"inputs": {
|
||||
"expression": "a/2",
|
||||
"values.a": [
|
||||
"405:372",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "ComfyMathExpression",
|
||||
"_meta": {
|
||||
"title": "수학식"
|
||||
}
|
||||
},
|
||||
"405:355": {
|
||||
"inputs": {
|
||||
"expression": "a/2",
|
||||
"values.a": [
|
||||
"405:360",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "ComfyMathExpression",
|
||||
"_meta": {
|
||||
"title": "수학식"
|
||||
}
|
||||
},
|
||||
"405:359": {
|
||||
"inputs": {
|
||||
"expression": "a",
|
||||
"values.a": [
|
||||
"405:361",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "ComfyMathExpression",
|
||||
"_meta": {
|
||||
"title": "Math Expression (fps)"
|
||||
}
|
||||
},
|
||||
"405:360": {
|
||||
"inputs": {
|
||||
"value": [
|
||||
"409",
|
||||
1
|
||||
]
|
||||
},
|
||||
"class_type": "PrimitiveInt",
|
||||
"_meta": {
|
||||
"title": "Height"
|
||||
}
|
||||
},
|
||||
"405:361": {
|
||||
"inputs": {
|
||||
"value": 24
|
||||
},
|
||||
"class_type": "PrimitiveInt",
|
||||
"_meta": {
|
||||
"title": "Frame Rate"
|
||||
}
|
||||
},
|
||||
"405:362": {
|
||||
"inputs": {
|
||||
"value": 5
|
||||
},
|
||||
"class_type": "PrimitiveInt",
|
||||
"_meta": {
|
||||
"title": "Duration"
|
||||
}
|
||||
},
|
||||
"405:372": {
|
||||
"inputs": {
|
||||
"value": [
|
||||
"409",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "PrimitiveInt",
|
||||
"_meta": {
|
||||
"title": "Width"
|
||||
}
|
||||
},
|
||||
"405:376": {
|
||||
"inputs": {
|
||||
"value": "A single cute rounded rice-cake mascot waves hello on a colorful stage, gentle toy-like 3D animation, warm soft lighting, stable camera."
|
||||
},
|
||||
"class_type": "PrimitiveStringMultiline",
|
||||
"_meta": {
|
||||
"title": "Prompt"
|
||||
}
|
||||
},
|
||||
"405:393": {
|
||||
"inputs": {
|
||||
"clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
|
||||
"type": "ltxv",
|
||||
"device": "default"
|
||||
},
|
||||
"class_type": "CLIPLoader",
|
||||
"_meta": {
|
||||
"title": "CLIP 로드"
|
||||
}
|
||||
},
|
||||
"405:383": {
|
||||
"inputs": {
|
||||
"value": false
|
||||
},
|
||||
"class_type": "PrimitiveBoolean",
|
||||
"_meta": {
|
||||
"title": "Boolean (Enable Prompt Enhance)"
|
||||
}
|
||||
},
|
||||
"405:364": {
|
||||
"inputs": {
|
||||
"text": [
|
||||
"405:382",
|
||||
0
|
||||
],
|
||||
"clip": [
|
||||
"405:387",
|
||||
0
|
||||
]
|
||||
},
|
||||
"class_type": "CLIPTextEncode",
|
||||
"_meta": {
|
||||
"title": "CLIP 텍스트 인코딩 (프롬프트)"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
"""배경음악을 music.json 에서 무작위로 고른다. 최근 회차(runs/<날짜>-<나이>/publish.md 의 Music 줄)에 쓴 곡은 빼고,
|
||||
캐시(runs/cache/music)에 없으면 내려받는다. 같은 날 여러 나이대를 만들면 편마다 다시 돌려 다른 곡을 쓴다.
|
||||
|
||||
python3 music.py # 출력: <mp3 경로>\t<credit>
|
||||
python3 music.py --recent 6 # 최근 6편에 쓴 곡을 뺀다 (기본 4)
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import random
|
||||
import re
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
CACHE = ROOT / "runs" / "cache" / "music"
|
||||
|
||||
|
||||
def recent_credits(n: int) -> set[str]:
|
||||
runs = sorted((p for p in (ROOT / "runs").glob("*/publish.md") if re.match(r"\d{4}-\d{2}-\d{2}-", p.parent.name)),
|
||||
key=lambda p: (p.parent.name[:10], p.stat().st_mtime), reverse=True)
|
||||
credits = []
|
||||
for p in runs:
|
||||
m = re.search(r"🎵 Music: [^\n]*", p.read_text(encoding="utf-8"))
|
||||
if m:
|
||||
credits.append(m.group(0).strip())
|
||||
return set(credits[:n])
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--recent", type=int, default=4)
|
||||
args = parser.parse_args()
|
||||
|
||||
tracks = json.loads((ROOT / "music.json").read_text(encoding="utf-8"))["tracks"]
|
||||
used = recent_credits(args.recent)
|
||||
pool = [t for t in tracks if t["credit"] not in used] or tracks
|
||||
track = random.SystemRandom().choice(pool)
|
||||
path = CACHE / f"{track['id']}.mp3"
|
||||
if not path.is_file():
|
||||
CACHE.mkdir(parents=True, exist_ok=True)
|
||||
req = urllib.request.Request(track["url"], headers={"User-Agent": "Mozilla/5.0"})
|
||||
with urllib.request.urlopen(req, timeout=60) as res:
|
||||
path.write_bytes(res.read())
|
||||
print(f"{path}\t{track['credit']}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,89 @@
|
||||
"""templates/ 의 HTML을 헤드리스 크롬으로 PNG로 찍는다.
|
||||
|
||||
usage:
|
||||
python3 render.py title --age 30 --who 여성 --label 하객룩 --out title_woman.png
|
||||
python3 render.py bubble --text "*크롭 재킷*으로 시크하게" --out bubbles/w1.png
|
||||
python3 render.py frame --out frame.png
|
||||
python3 render.py outro --out outro.png
|
||||
python3 render.py mask --out mask.png
|
||||
자막: *단어* 는 주황 강조, | 는 띄어쓰기로 바뀐다(한 줄). title·bubble 은 영상 위에 얹는 투명 PNG, frame 은 흐린 배경과 영상 사이의 창 그림자.
|
||||
"""
|
||||
import argparse
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import urllib.parse
|
||||
from pathlib import Path
|
||||
|
||||
TEMPLATES = Path(__file__).resolve().parent.parent / "templates"
|
||||
def _chrome():
|
||||
env = os.environ.get("CHROME_BIN") or os.environ.get("CHROME_PATH")
|
||||
if env:
|
||||
return env
|
||||
if sys.platform == "win32":
|
||||
for base in (os.environ.get("PROGRAMFILES"), os.environ.get("PROGRAMFILES(X86)"), os.environ.get("LOCALAPPDATA")):
|
||||
path = Path(base or "") / "Google/Chrome/Application/chrome.exe"
|
||||
if base and path.is_file():
|
||||
return str(path)
|
||||
return "chrome.exe"
|
||||
return "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" if sys.platform == "darwin" else "google-chrome"
|
||||
|
||||
|
||||
CHROME = _chrome()
|
||||
# compose.sh 의 영상 창 크기와 같아야 한다
|
||||
CARD = (816, 1440)
|
||||
|
||||
|
||||
def shoot(url, out, size=(1080, 1920), transparent=False):
|
||||
profile = tempfile.mkdtemp(prefix="render-")
|
||||
command = [CHROME, "--headless=new", "--disable-gpu", "--hide-scrollbars", f"--user-data-dir={profile}",
|
||||
"--force-device-scale-factor=1", f"--window-size={size[0]},{size[1]}", "--virtual-time-budget=6000",
|
||||
f"--screenshot={Path(out).resolve()}", url]
|
||||
if transparent:
|
||||
command.insert(-1, "--default-background-color=00000000")
|
||||
Path(out).parent.mkdir(parents=True, exist_ok=True)
|
||||
Path(out).unlink(missing_ok=True)
|
||||
try:
|
||||
# 크롬이 가끔 멈추므로 40초에서 끊는다
|
||||
subprocess.run(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=40)
|
||||
except subprocess.TimeoutExpired:
|
||||
pass
|
||||
finally:
|
||||
shutil.rmtree(profile, ignore_errors=True)
|
||||
if not Path(out).is_file():
|
||||
sys.exit(f"찍지 못했어요: {out}")
|
||||
print("saved", out)
|
||||
|
||||
|
||||
def page(name, **query):
|
||||
return (TEMPLATES / name).as_uri() + ("?" + urllib.parse.urlencode(query) if query else "")
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
parser.add_argument("kind", choices=["title", "bubble", "frame", "outro", "mask"])
|
||||
parser.add_argument("--out", required=True)
|
||||
parser.add_argument("--age", default="20")
|
||||
parser.add_argument("--who", default="여성")
|
||||
parser.add_argument("--label", default="코디")
|
||||
parser.add_argument("--text")
|
||||
args = parser.parse_args()
|
||||
if args.kind == "title":
|
||||
shoot(page("title.html", age=args.age, who=args.who, label=args.label), args.out, transparent=True)
|
||||
elif args.kind == "bubble":
|
||||
if args.text is None:
|
||||
sys.exit("bubble 은 --text 가 필요해요")
|
||||
shoot(page("bubble.html", t=args.text), args.out, transparent=True)
|
||||
elif args.kind == "frame":
|
||||
shoot(page("frame.html"), args.out, transparent=True)
|
||||
elif args.kind == "outro":
|
||||
shoot(page("outro.html"), args.out)
|
||||
else:
|
||||
html = f"<body style='margin:0;background:transparent'><div style='width:{CARD[0]}px;height:{CARD[1]}px;border-radius:40px;background:white'></div></body>"
|
||||
shoot("data:text/html," + urllib.parse.quote(html), args.out, size=CARD, transparent=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,79 @@
|
||||
#!/bin/bash
|
||||
# King_admin에 날씨각 코디 영상 전용 ComfyUI(LTX) 컨테이너를 띄우고 내린다. menusong 서비스·파일은 건드리지 않는다.
|
||||
# usage: server.sh up | down | status | remove
|
||||
set -euo pipefail
|
||||
|
||||
HOST=${OOTD_SERVER_HOST:-King_admin}
|
||||
PORT=${OOTD_SERVER_PORT:-32681}
|
||||
NAME=nalssigak-ltx
|
||||
ROOT=/mnt/data2/nalssigak
|
||||
MODELS=/mnt/data2/dir/jw_playground/LTX-2.5
|
||||
IMAGE=jw/comfyui-ltx:latest
|
||||
GPU=${OOTD_GPU:-0}
|
||||
|
||||
remote() { ssh -o BatchMode=yes -o ConnectTimeout=15 "$HOST" "$@"; }
|
||||
|
||||
up() {
|
||||
remote "NAME=$NAME ROOT=$ROOT MODELS=$MODELS IMAGE=$IMAGE GPU=$GPU PORT=$PORT bash -s" <<'EOF'
|
||||
set -euo pipefail
|
||||
running() { docker inspect -f '{{.State.Running}}' "$1" 2>/dev/null | tr -d '[:space:]' || true; }
|
||||
state=$(running "$NAME"); state=${state:-missing}
|
||||
if [ "$state" != true ]; then
|
||||
# menusong은 GPU 0에 qwen·image·tts, GPU 1에 video·music을 띄운다.
|
||||
if [ "$GPU" = 0 ]; then busy="menusong-qwen menusong-image menusong-tts"; else busy="menusong-video menusong-music"; fi
|
||||
for other in $busy; do
|
||||
if [ "$(running "$other")" = true ]; then
|
||||
echo "$other 가 GPU $GPU 를 쓰는 중이라 시작하지 않습니다. 끝난 뒤 다시 실행하세요." >&2; exit 3
|
||||
fi
|
||||
done
|
||||
used=$(nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits -i "$GPU" | tr -d ' ')
|
||||
if [ "$used" -gt 2000 ]; then
|
||||
echo "GPU $GPU 사용 중(${used}MiB)이라 시작하지 않습니다." >&2; exit 3
|
||||
fi
|
||||
# 멈춘 컨테이너는 GPU 설정이 다를 수 있어 새로 만든다.
|
||||
docker rm "$NAME" >/dev/null 2>&1 || true
|
||||
mkdir -p "$ROOT"/comfy/{input,output,temp,user}
|
||||
docker run -d --name "$NAME" --init --gpus "device=$GPU" --shm-size 2g \
|
||||
-p "127.0.0.1:$PORT:8188" --label nalssigak.ootd=true \
|
||||
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 -e PYTHONUNBUFFERED=1 \
|
||||
-v "$MODELS/vae:/app/models/vae:ro" -v "$MODELS/model_patches:/app/models/model_patches:ro" \
|
||||
-v "$MODELS/latent_upscale_models:/app/models/latent_upscale_models:ro" \
|
||||
-v "$MODELS/diffusion_models:/app/models/diffusion_models:ro" -v "$MODELS/text_encoders:/app/models/text_encoders:ro" \
|
||||
-v "$ROOT/comfy/input:/app/input" -v "$ROOT/comfy/output:/app/output" \
|
||||
-v "$ROOT/comfy/temp:/app/temp" -v "$ROOT/comfy/user:/app/user" \
|
||||
--entrypoint python "$IMAGE" main.py --listen 0.0.0.0 --port 8188 --lowvram >/dev/null
|
||||
fi
|
||||
for _ in $(seq 1 150); do
|
||||
curl -sf "http://127.0.0.1:$PORT/system_stats" >/dev/null && { echo ready; exit 0; }
|
||||
[ "$(running "$NAME")" = true ] || { docker logs --tail 30 "$NAME" >&2; exit 1; }
|
||||
sleep 2
|
||||
done
|
||||
echo "$NAME 이(가) 5분 안에 준비되지 않았습니다." >&2; exit 1
|
||||
EOF
|
||||
}
|
||||
|
||||
# 결과는 PC로 내려받았으므로 끌 때 서버의 입력·결과 파일을 지운다 (컨테이너가 root로 써서 같은 이미지로 지운다).
|
||||
down() {
|
||||
remote "docker stop -t 30 $NAME >/dev/null 2>&1 && echo stopped || echo 'not running'; \
|
||||
[ -d $ROOT/comfy ] && docker run --rm -v $ROOT/comfy:/c --entrypoint sh $IMAGE -c 'rm -rf /c/input/* /c/output/* /c/temp/*' || true"
|
||||
}
|
||||
|
||||
status() {
|
||||
remote "docker ps -a --filter name=^/$NAME\$ --format '{{.Names}} {{.Status}}'; \
|
||||
nvidia-smi --query-gpu=index,memory.used,memory.total --format=csv,noheader -i $GPU; du -sh $ROOT 2>/dev/null || true"
|
||||
}
|
||||
|
||||
remove() {
|
||||
# 컨테이너가 root로 쓴 파일이 있어 같은 이미지로 지운다.
|
||||
remote "docker rm -f $NAME nalssigak-music >/dev/null 2>&1 || true; \
|
||||
if [ -d $ROOT ]; then docker run --rm -v $ROOT:/target --entrypoint sh $IMAGE -c 'rm -rf /target/* /target/.[!.]*' && rmdir $ROOT; fi; \
|
||||
echo removed"
|
||||
}
|
||||
|
||||
case "${1:-}" in
|
||||
up) up ;;
|
||||
down) down ;;
|
||||
status) status ;;
|
||||
remove) remove ;;
|
||||
*) echo "usage: $0 up|down|status|remove" >&2; exit 2 ;;
|
||||
esac
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# usage: sheet.sh <영상> <출력.png> <초> [초 ...] — 그 시각 프레임을 가로로 붙인 확인용 시트
|
||||
set -euo pipefail
|
||||
video=$1; out=$2; shift 2
|
||||
tmp=$(mktemp -d); inputs=(); n=0
|
||||
for t in "$@"; do ffmpeg -hide_banner -loglevel error -y -ss "$t" -i "$video" -frames:v 1 -vf scale=270:480 "$tmp/$n.png"; inputs+=(-i "$tmp/$n.png"); n=$((n+1)); done
|
||||
ffmpeg -hide_banner -loglevel error -y "${inputs[@]}" -filter_complex "hstack=inputs=$n" "$out"
|
||||
rm -rf "$tmp"; echo "saved $out"
|
||||
@@ -0,0 +1,140 @@
|
||||
"""YouTube Shorts 업로드. 표준 라이브러리만 쓴다 (OAuth 데스크톱 앱 + resumable upload).
|
||||
|
||||
usage:
|
||||
python3 youtube.py auth # 채널 계정으로 한 번 로그인해 refresh token을 저장
|
||||
python3 youtube.py upload video.mp4 meta.json # meta: {title, description, tags[], privacy}
|
||||
비밀 파일은 저장소 밖 ~/.config/nalssigak/ 에 둔다 (client_secret.json, youtube_token.json).
|
||||
감사를 통과해 공개로 올릴 수 있게 되면 ~/.config/nalssigak/youtube_public 파일을 만든다(스킬이 privacy 를 public 으로 쓴다).
|
||||
"""
|
||||
import base64
|
||||
import hashlib
|
||||
import http.server
|
||||
import json
|
||||
import os
|
||||
import secrets
|
||||
import socket
|
||||
import sys
|
||||
import threading
|
||||
import urllib.error
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
import webbrowser
|
||||
from pathlib import Path
|
||||
|
||||
CONFIG = Path(os.environ.get("NALSSIGAK_CONFIG", Path.home() / ".config" / "nalssigak"))
|
||||
CLIENT = CONFIG / "client_secret.json"
|
||||
TOKEN = CONFIG / "youtube_token.json"
|
||||
SCOPE = "https://www.googleapis.com/auth/youtube.upload"
|
||||
TOKEN_URL = "https://oauth2.googleapis.com/token"
|
||||
|
||||
|
||||
def client():
|
||||
data = json.loads(CLIENT.read_text(encoding="utf-8"))
|
||||
return data.get("installed") or data["web"]
|
||||
|
||||
|
||||
def post_form(url, fields):
|
||||
body = urllib.parse.urlencode(fields).encode()
|
||||
request = urllib.request.Request(url, data=body, headers={"Content-Type": "application/x-www-form-urlencoded"})
|
||||
try:
|
||||
with urllib.request.urlopen(request, timeout=30) as response:
|
||||
return json.loads(response.read())
|
||||
except urllib.error.HTTPError as error:
|
||||
sys.exit(f"토큰 요청 실패 {error.code}: {error.read()[:300].decode(errors='replace')}")
|
||||
|
||||
|
||||
def auth():
|
||||
c = client()
|
||||
verifier = secrets.token_urlsafe(64)
|
||||
challenge = base64.urlsafe_b64encode(hashlib.sha256(verifier.encode()).digest()).rstrip(b"=").decode()
|
||||
state = secrets.token_urlsafe(16)
|
||||
with socket.socket() as sock:
|
||||
sock.bind(("127.0.0.1", 0))
|
||||
port = sock.getsockname()[1]
|
||||
redirect = f"http://127.0.0.1:{port}"
|
||||
result = {}
|
||||
|
||||
class Handler(http.server.BaseHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
query = urllib.parse.parse_qs(urllib.parse.urlparse(self.path).query)
|
||||
if query.get("state", [""])[0] == state:
|
||||
result.update({k: v[0] for k, v in query.items()})
|
||||
self.send_response(200)
|
||||
self.send_header("Content-Type", "text/html; charset=utf-8")
|
||||
self.end_headers()
|
||||
self.wfile.write("로그인 완료. 이 창은 닫아도 돼요.".encode())
|
||||
|
||||
def log_message(self, *_):
|
||||
pass
|
||||
|
||||
server = http.server.HTTPServer(("127.0.0.1", port), Handler)
|
||||
url = c["auth_uri"] + "?" + urllib.parse.urlencode({
|
||||
"client_id": c["client_id"], "redirect_uri": redirect, "response_type": "code", "scope": SCOPE,
|
||||
"access_type": "offline", "prompt": "consent", "state": state,
|
||||
"code_challenge": challenge, "code_challenge_method": "S256"})
|
||||
print("브라우저에서 채널 계정으로 로그인하세요:\n" + url, flush=True)
|
||||
webbrowser.open(url)
|
||||
thread = threading.Thread(target=server.handle_request)
|
||||
thread.start()
|
||||
thread.join(timeout=600)
|
||||
server.server_close()
|
||||
if "code" not in result:
|
||||
sys.exit(f"로그인이 끝나지 않았어요: {result.get('error', '시간 초과')}")
|
||||
token = post_form(c["token_uri"], {"client_id": c["client_id"], "client_secret": c["client_secret"], "code": result["code"],
|
||||
"code_verifier": verifier, "grant_type": "authorization_code", "redirect_uri": redirect})
|
||||
if "refresh_token" not in token:
|
||||
sys.exit("refresh token을 받지 못했어요. 다시 auth를 실행하세요.")
|
||||
CONFIG.mkdir(parents=True, exist_ok=True)
|
||||
TOKEN.write_text(json.dumps({"refresh_token": token["refresh_token"], "scope": token.get("scope")}), encoding="utf-8")
|
||||
TOKEN.chmod(0o600)
|
||||
print("저장했어요:", TOKEN)
|
||||
|
||||
|
||||
def access_token():
|
||||
if not TOKEN.is_file():
|
||||
sys.exit("먼저 python3 youtube.py auth 로 로그인하세요.")
|
||||
c = client()
|
||||
refresh = json.loads(TOKEN.read_text(encoding="utf-8"))["refresh_token"]
|
||||
return post_form(TOKEN_URL, {"client_id": c["client_id"], "client_secret": c["client_secret"],
|
||||
"refresh_token": refresh, "grant_type": "refresh_token"})["access_token"]
|
||||
|
||||
|
||||
def upload(video_path, meta_path):
|
||||
meta = json.loads(Path(meta_path).read_text(encoding="utf-8"))
|
||||
video = Path(video_path).read_bytes()
|
||||
body = {
|
||||
"snippet": {"title": meta["title"], "description": meta["description"], "tags": meta.get("tags", []),
|
||||
"categoryId": meta.get("category", "26"), "defaultLanguage": "ko", "defaultAudioLanguage": "ko"},
|
||||
"status": {"privacyStatus": meta.get("privacy", "private"), "selfDeclaredMadeForKids": False,
|
||||
"containsSyntheticMedia": True},
|
||||
}
|
||||
token = access_token()
|
||||
start = urllib.request.Request(
|
||||
"https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status",
|
||||
data=json.dumps(body).encode(), method="POST",
|
||||
headers={"Authorization": f"Bearer {token}", "Content-Type": "application/json; charset=UTF-8",
|
||||
"X-Upload-Content-Type": "video/mp4", "X-Upload-Content-Length": str(len(video))})
|
||||
try:
|
||||
with urllib.request.urlopen(start, timeout=60) as response:
|
||||
location = response.headers["Location"]
|
||||
put = urllib.request.Request(location, data=video, method="PUT",
|
||||
headers={"Authorization": f"Bearer {token}", "Content-Type": "video/mp4"})
|
||||
with urllib.request.urlopen(put, timeout=600) as response:
|
||||
result = json.loads(response.read())
|
||||
except urllib.error.HTTPError as error:
|
||||
sys.exit(f"업로드 실패 {error.code}: {error.read()[:600].decode(errors='replace')}")
|
||||
asked, got = body["status"]["privacyStatus"], result["status"]["privacyStatus"]
|
||||
print(json.dumps({"id": result["id"], "privacy": got, "url": f"https://youtube.com/shorts/{result['id']}",
|
||||
"studio": f"https://studio.youtube.com/video/{result['id']}/edit"}, ensure_ascii=False))
|
||||
if asked != got:
|
||||
# 감사 전 API 프로젝트는 공개 요청도 비공개로 바뀐다
|
||||
print(f"경고: {asked} 로 요청했지만 {got} 로 올라갔어요. API 감사가 필요해요.", file=sys.stderr)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) >= 2 and sys.argv[1] == "auth":
|
||||
auth()
|
||||
elif len(sys.argv) == 4 and sys.argv[1] == "upload":
|
||||
upload(sys.argv[2], sys.argv[3])
|
||||
else:
|
||||
sys.exit(__doc__)
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"about": "클립 동작 후보. scripts/actions.py 가 사람마다 겹치지 않게 무작위로 고른다. 손가락 모양(하트·V·OK·엄지)은 영상 모델이 다른 손 모양으로 그려서 넣지 않는다. needs 는 그 옷·가방이 있어야 쓸 수 있는 동작",
|
||||
"woman": [
|
||||
{ "text": "She smiles brightly and gives a cute little wave to the camera with her free hand at shoulder height, then lowers her hand back to her starting pose." },
|
||||
{ "text": "She smiles and slowly tucks a strand of hair behind her ear with her free hand without looking away from the camera, then lowers her hand back to her starting pose." },
|
||||
{ "text": "She smiles and lightly brushes her hair back from her face with her free hand, keeping her whole face visible, then lowers her hand back to her starting pose." },
|
||||
{ "text": "She smiles and with her free hand gently draws the front of her open outer layer a little closed at chest height without looking down, then lets go and lowers her hand back to her starting pose.", "needs": ["outer"] },
|
||||
{ "text": "She smiles and lifts her free hand to lightly touch the collar of her outer layer near her neck, then lowers her hand back to her starting pose.", "needs": ["outer"] },
|
||||
{ "text": "She smiles and with her free hand lightly adjusts the strap of her bag on her shoulder without looking at it, then lowers her hand back to her starting pose.", "needs": ["bag"] },
|
||||
{ "text": "She smiles and shifts her weight gently onto one leg with a small relaxed shoulder shrug, then settles back into her starting pose." }
|
||||
],
|
||||
"man": [
|
||||
{ "text": "He smiles and gives a friendly small wave to the camera with his free hand at shoulder height, then lowers his hand back to his starting pose." },
|
||||
{ "text": "He gives a slight confident smile and with his free hand at waist level lightly tugs the bottom front edge of his outer layer once to straighten it without looking at it, then lowers his hand back to his starting pose.", "needs": ["outer"] },
|
||||
{ "text": "He gives a slight confident smile and with his free hand straightens the collar of his outer layer near his neck without looking down, then lowers his hand back to his starting pose.", "needs": ["outer"] },
|
||||
{ "text": "He gives a slight confident smile and slowly runs his free hand through the side of his hair, keeping his whole face visible, then lowers his hand back to his starting pose." },
|
||||
{ "text": "He gives a slight confident smile and with his free hand slowly adjusts the cuff of his other sleeve at waist height without looking at it, then lowers his hand back to his starting pose." },
|
||||
{ "text": "He gives a slight confident smile and with his free hand lightly adjusts the strap of his bag on his shoulder without looking at it, then lowers his hand back to his starting pose.", "needs": ["bag"] },
|
||||
{ "text": "He gives a relaxed half-smile and slides his free hand into his trouser pocket in one easy motion, keeping it there until the end." }
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 37 KiB |
@@ -0,0 +1,15 @@
|
||||
<!doctype html><html lang="ko"><head><meta charset="utf-8">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css">
|
||||
<style>
|
||||
/* 제목(title.html) 바로 아래 한 줄 자막. 창 오른쪽(948px) 안에서 끝나야 한다 */
|
||||
* { margin: 0; box-sizing: border-box; }
|
||||
html, body { width: 1080px; height: 1920px; background: transparent; overflow: hidden; }
|
||||
.t { position: absolute; left: 176px; top: 1397px; max-width: 748px; padding: 14px 24px; border-radius: 22px; background: rgb(255 255 255 / .92);
|
||||
color: #28304a; font: 600 32px/1.3 'Pretendard Variable', Pretendard, sans-serif; letter-spacing: -.5px; white-space: nowrap; }
|
||||
.t em { font-style: normal; color: #d4552a; }
|
||||
</style></head><body>
|
||||
<div class="t" id="t"></div>
|
||||
<script>
|
||||
const q = new URLSearchParams(location.search);
|
||||
document.getElementById('t').innerHTML = q.get('t').replace(/\*([^*]+)\*/g, '<em>$1</em>').split('|').join(' ');
|
||||
</script></body></html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<html lang="ko"><head><meta charset="utf-8">
|
||||
<style>
|
||||
/* 흐린 영상 배경 위에 얹는 투명 레이어(영상 창 그림자). 창은 프로필 그리드 3:4(위 240 ~ 아래 1680)를 채우고, 위치는 compose.sh 와 같아야 한다 */
|
||||
* { margin: 0; box-sizing: border-box; }
|
||||
html, body { width: 1080px; height: 1920px; overflow: hidden; }
|
||||
body { position: relative; background: transparent; }
|
||||
.win { position: absolute; left: 132px; top: 240px; width: 816px; height: 1440px; border-radius: 40px; background: #dfeaf6; box-shadow: 0 24px 60px rgb(20 30 60 / .35); }
|
||||
</style></head>
|
||||
<body><div class="win"></div></body></html>
|
||||
@@ -0,0 +1 @@
|
||||
A static tripod shot of {a_person} with {look} standing in {pronoun} pose in {scene}. {Pronoun} wears {outfit}. {action} A steady breeze clearly blows {pronoun} hair and makes {pronoun} clothes move lightly. {Pronoun} head stays upright facing the camera and {pronoun} eyes stay open with the same smile. The camera is completely still on a tripod at the same full-body framing, and {pronoun} face, outfit and proportions stay identical to the first frame.
|
||||
@@ -0,0 +1 @@
|
||||
falling leaves, dancing, walking, turning, big movement, camera movement, dolly in, zoom in, close-up, closed eyes, head tilt, long neck, stretched neck, different face, changing face, changing outfit, distorted anatomy, extra limbs, extra fingers, morphing, flicker, blurry, watermark, text, subtitles
|
||||
@@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<html lang="ko"><head><meta charset="utf-8">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jua&display=swap">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css">
|
||||
<style>
|
||||
* { margin: 0; box-sizing: border-box; }
|
||||
html, body { width: 1080px; height: 1920px; overflow: hidden; }
|
||||
body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; color: #1f2d3d;
|
||||
font-family: 'Pretendard Variable', Pretendard, sans-serif;
|
||||
background: radial-gradient(circle at 10% 4%, #dcebff 0, transparent 34%), radial-gradient(circle at 92% 97%, #d6e7fd 0, transparent 36%), #f4f9ff; }
|
||||
img { width: 340px; height: 340px; border-radius: 80px; box-shadow: 0 22px 48px rgba(43, 108, 184, .25); }
|
||||
.name { font: 120px/1 Jua, sans-serif; letter-spacing: -2px; }
|
||||
.url { padding: 18px 44px 16px; border-radius: 999px; background: #4f97e3; color: #fff; font: 700 54px/1 'Pretendard Variable', Pretendard, sans-serif; box-shadow: 0 6px 0 #2b6cb8; }
|
||||
</style></head>
|
||||
<body><img src="app_icon.png" alt=""><div class="name">날씨각</div><div class="url">weather.o2o.kr</div></body></html>
|
||||
@@ -0,0 +1,5 @@
|
||||
Make a photo of the {person} from the first reference image wearing today's outfit in {scene}.
|
||||
Outfit: {outfit}
|
||||
{hair_line}
|
||||
{body_line}
|
||||
Rules: keep the person's face, hairstyle and body exactly like the FIRST reference image (same person). Copy the outfit items, colors, materials and silhouettes from the other reference images (outfit snap and product photos), but do NOT copy the face of the person in the outfit snap and do NOT copy any text, logo, watermark or "AI" badge. Photorealistic vertical 9:16 full-body fashion photo, the person stands facing the camera in a relaxed natural pose, whole body from head to shoes in frame with some space above the head, both hands visible and natural, eyes open, gentle expression. No text, no logo, no watermark anywhere.
|
||||
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="ko"><head><meta charset="utf-8">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jua&display=swap">
|
||||
<style>
|
||||
/* 영상 위에 얹는 투명 레이어. 창(132,240 · 816×1440) 왼쪽 아래, 신발이 보이도록 발 위(다리 높이)에 칩·제목을 두고, 그 아래 1397px 줄은 자막(bubble.html) 자리 */
|
||||
:root { --main: #4f97e3; --deep: #2b6cb8; --ink: #28304a; }
|
||||
* { margin: 0; box-sizing: border-box; }
|
||||
html, body { width: 1080px; height: 1920px; overflow: hidden; background: transparent; }
|
||||
.win { position: absolute; left: 132px; top: 240px; width: 816px; height: 1440px; border-radius: 40px; overflow: hidden; }
|
||||
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 700px; background: linear-gradient(transparent, rgb(40 48 74 / .45) 55%, rgb(40 48 74 / .2)); }
|
||||
.title { position: absolute; left: 176px; bottom: 543px; }
|
||||
.chip { display: inline-block; padding: 9px 22px 7px; border-radius: 999px; background: var(--main); color: #fff; font: 30px/1.1 Jua, sans-serif; box-shadow: 0 4px 0 var(--deep); }
|
||||
.headline { margin-top: 16px; font: 66px/1.12 Jua, sans-serif; color: #fff; letter-spacing: -1px; text-shadow: 0 3px 16px rgb(40 48 74 / .35); }
|
||||
</style></head>
|
||||
<body>
|
||||
<div class="win"><div class="shade"></div></div>
|
||||
<div class="title"><div class="chip">날씨각</div><div class="headline" id="h"></div></div>
|
||||
<script>
|
||||
const q = new URLSearchParams(location.search);
|
||||
const age = q.get('age'); // 40~ 이면 '40대~'
|
||||
document.getElementById('h').innerHTML = `이번주 ${age.replace(/~$/, '')}대${age.endsWith('~') ? '~' : ''}<br>${q.get('who')} ${q.get('label') || '코디'}`;
|
||||
</script>
|
||||
</body></html>
|
||||
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from '@hey-api/openapi-ts'
|
||||
|
||||
export default defineConfig({
|
||||
input: process.env.OPENAPI_INPUT ?? 'http://localhost:9810/openapi.json',
|
||||
output: 'src/api/client',
|
||||
parser: {
|
||||
patch: {
|
||||
// FastAPI operationId("get_feed_v1_feed_get")에서 "_v1_" 앞만 camelCase로 → getFeed / getFeedOptions / addCommentMutation
|
||||
operations: (_method, _path, operation) => {
|
||||
const id = operation.operationId ?? ''
|
||||
const base = id.split('_v1_')[0] || id
|
||||
operation.operationId = base.replace(/_([a-z])/g, (_m, c: string) => c.toUpperCase())
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
{ name: '@hey-api/client-fetch', throwOnError: true },
|
||||
{ name: '@hey-api/typescript', enums: 'javascript' },
|
||||
'@hey-api/sdk',
|
||||
'@tanstack/react-query',
|
||||
],
|
||||
})
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "admin",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "oxlint",
|
||||
"preview": "vite preview",
|
||||
"api": "openapi-ts",
|
||||
"card": "node scripts/card.mjs",
|
||||
"gen-image": "node scripts/gen-image.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"@tanstack/react-query": "^5.104.0",
|
||||
"modern-screenshot": "^4.7.0",
|
||||
"react": "^19.2.8",
|
||||
"react-dom": "^19.2.8",
|
||||
"react-router": "^8.4.0",
|
||||
"tailwindcss": "^4.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hey-api/openapi-ts": "0.99.0",
|
||||
"@types/node": "^24.13.3",
|
||||
"@types/react": "^19.2.18",
|
||||
"@types/react-dom": "^19.2.7",
|
||||
"@vitejs/plugin-react": "^6.1.1",
|
||||
"oxlint": "^1.81.0",
|
||||
"typescript": "~6.0.2",
|
||||
"vite": "^8.3.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
node_modules/
|
||||
.hyperframes/
|
||||
out/
|
||||
*.mp4
|
||||
@@ -0,0 +1,109 @@
|
||||
# HyperFrames Composition Project
|
||||
|
||||
This folder is a [HyperFrames](https://hyperframes.heygen.com) video: HTML, CSS and seekable
|
||||
animations (GSAP by default) that the `hyperframes` CLI previews in the browser and renders to
|
||||
MP4.
|
||||
|
||||
## Skills — read these first
|
||||
|
||||
**Invoke the relevant skill before writing or modifying compositions.** Skills encode framework-specific patterns (e.g., `window.__timelines` registration, `data-*` attribute semantics, shader-compatible CSS rules) that generic web docs don't cover, so compositions written without them break.
|
||||
|
||||
**Doing anything with HyperFrames?** Start at `/hyperframes`. Make any video by asking for it; the `/hyperframes` skill carries the contract and the references (each kind of film, story, motion, look, sound, review, captions, overlays). Read it first, especially when there's no project context to orient you.
|
||||
|
||||
- `/hyperframes` — read first for any request to make, edit, animate or render a video, motion graphic, captions or overlays. Holds the render contract and the work loop.
|
||||
- `/hyperframes-cli` — the CLI by job: scaffold, check, look at frames, edit the timeline, preview, render, publish, project history.
|
||||
- `/hyperframes-registry` — ready-made blocks and components installed as editable source. Search it before hand-building any named visual.
|
||||
- `/media-use` — get or make any media (music, sound effects, images, voiceover, avatar and generated video, transcripts, cutouts, colour grades) and mix placed audio.
|
||||
- `/figma` — bring a Figma design, frame, logo or brand into a video.
|
||||
- `/slideshow` — a presentation or pitch deck. Output is a navigable deck, not a rendered MP4.
|
||||
- `/remotion-to-hyperframes` — bring existing video code or footage into HyperFrames (Remotion first; also Motion Canvas, Lottie, Three.js, canvas, or renders from other tools) and verify it frame by frame against the original.
|
||||
|
||||
**Changing how real footage or images look or reveal?** Load `/media-use` and read its `references/media-treatments.md` before editing, even when the request only says dark, flat, boring, retro, private, or “make the reveal cooler.” It governs how footage is treated, never whether media may be used. Use canonical media treatments and seek-safe motion; do not improvise equivalent CSS/SVG filters or overlays.
|
||||
|
||||
> **Tailwind v4 projects** (`hyperframes init --tailwind`): see `hyperframes-cli/references/init-and-scaffold.md` (Tailwind).
|
||||
|
||||
> **Using a HyperFrames plugin?** Load skills from that installed bundle and follow
|
||||
> its `hyperframes/references/plugin-installation.md` execution rules. Update via
|
||||
> the plugin manager, not the standalone commands below.
|
||||
>
|
||||
> **Standalone skill missing or stale?** Run `npx hyperframes skills update <name>` to install/refresh
|
||||
> the specific skill you need, or bare `npx hyperframes skills update` to refresh the core set plus
|
||||
> everything already installed — neither pulls the full set. Restart the agent session so
|
||||
> newly installed skills load.
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
npm run dev # human-operated foreground preview (blocks until stopped)
|
||||
npx hyperframes preview --background # agent-safe persistent Studio preview
|
||||
npx hyperframes preview --status # verify the persistent preview is listening
|
||||
npx hyperframes preview --stop # stop it when review is finished
|
||||
npm run check # lint + runtime + layout + motion + contrast (one command)
|
||||
npx hyperframes snapshot --at 1,3,5 # PNG frames at those seconds, to look at before rendering
|
||||
npm run render # render to MP4
|
||||
npm run publish # publish and get a shareable link
|
||||
npx hyperframes lint --verbose # include info-level findings
|
||||
npx hyperframes lint --json # machine-readable output for CI
|
||||
npx hyperframes docs <topic> # reference docs in terminal
|
||||
```
|
||||
|
||||
> **Agents must use `npx hyperframes preview --background` for Studio handoff.** Do not rely
|
||||
> on a shell/tool `run_in_background` wrapper around `npm run dev`: that foreground process
|
||||
> remains owned by the invoking session and can disappear while the browser stays open,
|
||||
> leaving refreshes at `ERR_CONNECTION_TIMED_OUT`. Verify with `preview --status`, keep it
|
||||
> alive through review, and stop it explicitly with `preview --stop` afterward.
|
||||
|
||||
> **Back from the desktop app.** Once this project was opened in the HyperFrames desktop app, run `npx hyperframes catch-up` before your next change here: it lists what the person asked Framey in the app and which files changed since.
|
||||
|
||||
> **Pinned CLI version.** These scripts pin an exact `hyperframes@X.Y.Z` so this project re-renders identically over time. Weeks later that pin lags fixes shipped since. To move up: `npx hyperframes@latest upgrade --project . --check` (shows the delta), then `npx hyperframes@latest upgrade --project .` to rewrite the pins. Always unpinned — the pinned script re-runs the old version against itself.
|
||||
|
||||
## Documentation
|
||||
|
||||
**For quick reference**, use the local CLI docs command (no network required):
|
||||
|
||||
```bash
|
||||
npx hyperframes docs <topic>
|
||||
```
|
||||
|
||||
Topics: `data-attributes`, `gsap`, `compositions`, `rendering`, `examples`, `troubleshooting`
|
||||
|
||||
**For full documentation**, discover pages via the machine-readable index — do NOT guess URLs:
|
||||
|
||||
```
|
||||
https://hyperframes.heygen.com/llms.txt
|
||||
```
|
||||
|
||||
## Project Structure
|
||||
|
||||
- `index.html` — main composition (root timeline)
|
||||
- `compositions/` — sub-compositions referenced via `data-composition-src`
|
||||
- `meta.json` — project metadata (id, name)
|
||||
- `transcript.json` — whisper word-level transcript (if generated)
|
||||
|
||||
## Linting — ALWAYS RUN AFTER CHANGES
|
||||
|
||||
After creating or editing any `.html` composition, **always** run the full check before considering the task complete:
|
||||
|
||||
```bash
|
||||
npm run check
|
||||
```
|
||||
|
||||
Fix all errors before presenting the result. Warnings should be reviewed before rendering.
|
||||
|
||||
Then look at what you changed: `npx hyperframes snapshot --at <seconds>` (or `--range START,END`, `--composition <id>`) at the moments you edited, and read the frames before you reply. A passing check does not show how it looks.
|
||||
|
||||
## Key Rules
|
||||
|
||||
1. Every timed element needs `data-start` and a duration. `data-start` is what marks it as timed; `data-track-index` is an optional Studio display lane the render never reads
|
||||
2. Give timed visual elements `class="clip"`. The framework keys visibility off `data-start`, not the class, but the shared `.clip` CSS is what gives a scene its full-frame box, and `lint` warns without it
|
||||
3. Register one paused root timeline per composition on `window.__timelines`:
|
||||
```js
|
||||
window.__timelines = window.__timelines || {};
|
||||
window.__timelines["composition-id"] = gsap.timeline({ paused: true });
|
||||
```
|
||||
Scene timelines manually added to this root must not be paused. A paused
|
||||
child does not advance when the root is seeked. The runtime activates
|
||||
registered composition siblings, not arbitrary nested scene timelines.
|
||||
4. A video with sound keeps it on the `<video>` (`data-has-audio="true"`, no `muted`). Use a separate `<audio>` for music, voiceover, replacement audio, J/L cuts, or audio detached in Studio. Silent footage and b-roll: `muted`.
|
||||
5. Sub-compositions use `data-composition-src="compositions/file.html"` to reference other HTML files
|
||||
6. Only deterministic logic — no `Date.now()`, no `Math.random()`, no network fetches
|
||||
@@ -0,0 +1,24 @@
|
||||
GOAL: 20~50대가 "날씨를 보면 오늘 할 일을 알려 주는 앱이구나"를 20초 안에 알고, 프로필 링크(또는 토스 검색)로 열어 본다.
|
||||
OUTPUT: HyperFrames, 1080 x 1920, 30 fps
|
||||
TIME: 20 s x 30 = 600 frames. 음악이 있으면 ~110 BPM(16.4 f/beat, 65 f/bar), 장면 전환은 마디에.
|
||||
LOOK: 땅 = Codex 클레이 3D 렌더 배경(assets/bg/*.webp, 1024x1820 → 1080x1920 cover, 위쪽 40%가 하늘이라 글자 자리).
|
||||
브랜드 땅(등장·보상·엔드카드) = 평면 #e3efff, 질감 없음. 잉크 #28304a. 강조 주황 #ff7a45: 한 장면에 한 단어·한 칩.
|
||||
디스플레이 Jua 120 px(H의 6.25%) 흰색, 자간 -2 px, 잉크 그림자 0 6px 18px rgba(40,48,74,.38) — 배경 위에서만 흰색, 브랜드 땅 위에서는 잉크색.
|
||||
본문 Pretendard 700 52 px, 칩 Pretendard 800 72 px(점수) + 48 px(이름). 글자 폭 최대 900 px(오른쪽 액션 레일 피함).
|
||||
깊이: 배경 scale 1.08~1.14 드리프트, 중간층(아이콘) 이동 1.6배, 앞층(흐린 구름·잎) 2.2배 + blur 6 px. 그림자: 아이콘 아래 타원 contact shadow 0.35.
|
||||
OBJECTS: 하늘·구름(assets/bg/sky), 비 오는 도시(rain-city), 해변(beach), 가을 산길(mountain), 한강 노을(hangang-sunset);
|
||||
3D 아이콘: 해 sun.png, 구름 cloud.png, 비 rain.png, 드라이브 drive.png, 산책 walk.png, 한강 hangang.png, 피크닉 picnic.png, 토끼 rabbit.png, 곰 bear.png;
|
||||
앱 아이콘 app-icon.png(실제 apple-touch-icon), 실제 홈 화면 shot-home.webp(390x844)을 폰 틀(검정 8 px, 반지름 44 px) 안에.
|
||||
점수 칩: 흰 배경 둥근 사각(반지름 28 px) + 왼쪽 아이콘 96 px + 이름 + 주황 점수, 그림자 0 10px 30px rgba(40,48,74,.25).
|
||||
MOTION: 등장 expo.out 0.5 s(글자 단어별 blur 8→0, 0.13 s, 0.07 s 간격) · 카메라 power2.inOut · 퇴장 power3.in 0.25 s · 칩 스프링 back.out(1.6) 0.45 s(위치·크기만) · 점수 카운트 0.6 s power2.out.
|
||||
휩 전환 0.25 s(세로, blur 16 px) · 색 플러드 0.4 s power2.inOut · 줌스루 0.35 s power3.in(아이콘 8%→250%).
|
||||
SHOTS: S1 f0–75 하늘. 배경 1.14→1.08 푸시. "오늘 뭐 하기 / 좋은 날이지?" 단어별 맺힘 f9~f30, 해 아이콘 우상단 드리프트, 앞층 구름 좌하단. 읽기창 f30–f70. 소리: 비트 시작. → 휩 업.
|
||||
S2 f75–165 비 도시. 칩 "흐림" "19°" "습도 70%" 스프링 낙하 f81·f84·f87, 구름·비 아이콘 중간층. f114 "…그래서 / 오늘 뭐 하죠?" 맺힘. 읽기창 f120–f158. → 색 플러드(f158–f170) 하늘색.
|
||||
S3 f165–240 브랜드 땅. 앱 아이콘 스프링 f168(0.2→1.0), "날씨각" 글자별 f180(0.1 s 간격), "날씨를 *할 일*로 바꿔 주는 앱" f198. 토끼·곰 아래서 고개 f186. 읽기창 f205–f232. → 아이콘 줌스루 f232–f242.
|
||||
S4 f240–300 해변. 배경 1.15→1.05 안착 0.5 s. 칩 "드라이브각 82" 스프링 f246 + 점수 카운트, drive 아이콘 해안선 따라 x+70 px/2 s. 작은 글 "해안 드라이브 딱 좋은 날" f258. → 휩 업.
|
||||
S5 f300–360 산길. 칩 "산책각 81" + walk 아이콘 걷기(y 흔들림 ±6 px, 0.4 s). "숲길 한 바퀴" f318. → 휩 업.
|
||||
S6 f360–420 한강 노을. 칩 "한강각 85" + hangang·picnic 아이콘. "노을 보며 돗자리" f378. → 폰 캐리(폰이 아래서 올라오며 배경이 하늘색으로 플러드 f414–f426).
|
||||
S7 f420–525 보상. 브랜드 땅. 폰(720 px 폭) 아래서 y 1900→470 power4.out 0.7 s, 실제 홈 화면. 위 "지금 내 동네 / 1위는?" f438. 칩 "68가지 각" f480 스프링. 작은 글 "10.24 서울 기준" 폰 아래. 읽기창 f450–f515. → 폰이 아래로 빠지며(0.3 s) 엔드카드.
|
||||
S8 f525–600 엔드카드. 아이콘 스프링 f528 가운데 위(폭 260 px), "날씨각" f540, "설치 없이 바로, *무료*" f552, "weather.o2o.kr" f564, "토스에서 '날씨각' 검색" f576. f585–600 정지. 음악 페이드.
|
||||
BANNED: 검은 보이드, 글로우·파티클·렌즈플레어, 유리 카드, 보라·파랑 그라데이션, 세 카드 나란히, 코너 로고, 전부 페이드+슬라이드 업, 착지 뒤 떠다니는 제목, 흐린 스크린샷 위 제목, 점수 숫자 지어내기(오늘 API 값만), 사용자 글 노출.
|
||||
QA: f0(썸네일: 하늘+질문 첫 단어 보임), f60(질문 다 읽힘), f150("그래서 뭐 하죠?"), f225(아이콘·워드마크·부제), f270/f330/f390(세 세상 칩·아이콘), f480(폰 전체·칩), f598(엔드카드 네 줄). 360 px 폰 시트에서 모든 글 읽힘. 글자 y 168~1330, x ≤ 900.
|
||||
@@ -0,0 +1,17 @@
|
||||
# 날씨각 소개 릴스 — 스토리라인 세 개 (2026-10-24)
|
||||
|
||||
사용자 지시: 인스타 릴스 20초 안팎, 9:16, 2.5D(Codex 3D 렌더풍 배경 + 기존 3D 아이콘 레이어 + 카메라 패럴랙스), 무료 BGM, 20~50대, 토스 앱 검색 언급, 해시태그. "알아서" → 질문 없이 A를 만든다.
|
||||
|
||||
## A. 질문 하나, 세 세상 (추천) — 질문+입력 장치 × 세상을 나는 카메라
|
||||
하늘 위 큰 글자 "오늘 뭐 하기 좋은 날이지?"로 시작해, 비 오는 도시에서 날씨 숫자만 떠다니다 "그래서 뭐 하죠?"가 막히고, 날씨각 아이콘이 튀어나오며 답이 시작된다. 카메라가 해변·산길·한강 노을 세 세상을 차례로 날아가고, 세상마다 오늘 진짜 점수(드라이브각 82 · 산책각 81 · 한강각 85)가 칩으로 떨어진다. 마지막에 진짜 앱 화면이 올라오고 "설치 없이 바로, 무료 · 토스에서 '날씨각' 검색"으로 닫는다.
|
||||
- 첫 2초: 파란 하늘·구름 3D 배경이 천천히 밀려 들어오고, 흰 Jua 글자가 단어마다 블러로 맺힌다. 해 아이콘이 오른쪽 위에서 살짝 떠 있다.
|
||||
- 비트: 훅(하늘 질문) → 막힘(비 도시, 숫자 칩, "그래서?") → 등장(색 플러드 → 아이콘·워드마크) → 증명(해변→산→한강, 점수 칩 3번) → 보상(진짜 홈 화면) → 한 줄(설치 없이 무료) → 엔드카드(아이콘·주소·토스).
|
||||
- 룩: 배경은 Codex 클레이 3D 렌더, 글자는 흰 Jua + 잉크 그림자, 강조는 주황 한 단어, 브랜드 땅은 연한 하늘색 평면. 패럴랙스 3겹(배경 1.0 · 아이콘 1.6 · 앞 구름 2.2).
|
||||
- 소리: 밝고 가벼운 팝 비트(~110 BPM), 등장 장면에서 음악이 열리고, 엔드카드 아래서 짧게 페이드.
|
||||
- 전환: 휩(세상 사이) · 색 플러드(비→브랜드) · 아이콘 줌스루(브랜드→해변) · 폰이 아래서 올라오는 캐리.
|
||||
|
||||
## B. 토끼와 곰의 하루 — 캐릭터가 일한다 × 물건에서 물건으로
|
||||
토끼가 창밖을 보고, 곰이 폰을 들고, 둘이 점수 칩을 들고 세상 사이를 뛰어다닌다. 귀엽지만 캐릭터가 정지 PNG라 연기가 얕다. (안 만듦)
|
||||
|
||||
## C. 숫자가 글자가 된다 — 타입이 논증 × 한 프레임이 계속 바뀐다
|
||||
"19° 흐림 70%"가 큰 글자로 화면을 채우다 스스로 "한강각 85"로 재배열되는 키네틱 타이포. 배경 그림을 거의 안 써서 2.5D 지시와 어긋난다. (안 만듦)
|
||||
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 40 KiB |