viruagent-cli 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viruagent-cli",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "AI-agent-optimized CLI for blog publishing (Tistory, Naver)",
5
5
  "private": false,
6
6
  "type": "commonjs",
@@ -26,15 +26,19 @@ npx viruagent-cli --spec
26
26
 
27
27
  All responses are JSON: `{ "ok": true, "data": {...} }` on success, `{ "ok": false, "error": "...", "message": "...", "hint": "..." }` on failure.
28
28
 
29
- ## Step 2: Check authentication
29
+ ## Step 2: Authenticate (ALWAYS run --from-chrome first)
30
30
 
31
- ### Tistory
31
+ **IMPORTANT**: Always run `--from-chrome` login for ALL providers before doing anything else. This refreshes the session from the user's Chrome browser cookies and is the fastest, most reliable method.
32
32
 
33
33
  ```bash
34
- npx viruagent-cli status --provider tistory
34
+ # ALWAYS run these first, regardless of current status
35
+ npx viruagent-cli login --provider tistory --from-chrome
36
+ npx viruagent-cli login --provider naver --from-chrome
35
37
  ```
36
38
 
37
- If not logged in, authenticate:
39
+ Run both in parallel. Only if `--from-chrome` fails, fall back to other methods:
40
+
41
+ ### Tistory fallback
38
42
 
39
43
  ```bash
40
44
  npx viruagent-cli login --provider tistory --username <user> --password <pass> --headless
@@ -42,18 +46,9 @@ npx viruagent-cli login --provider tistory --username <user> --password <pass> -
42
46
 
43
47
  If 2FA is required (response contains `pending_2fa`), ask the user to approve the login on their mobile device (Kakao app notification), then retry the status check.
44
48
 
45
- ### Naver Blog
46
-
47
- ```bash
48
- npx viruagent-cli status --provider naver
49
- ```
50
-
51
- If not logged in, authenticate (recommended: Chrome import):
49
+ ### Naver fallback
52
50
 
53
51
  ```bash
54
- # Chrome session import (recommended, fastest)
55
- npx viruagent-cli login --provider naver --from-chrome
56
-
57
52
  # Manual login via browser
58
53
  npx viruagent-cli login --provider naver --manual
59
54