@zoulabo/line-hive 0.1.19 → 0.1.20
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": "@zoulabo/line-hive",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "MCP server connecting AI coding agents to LINE Messaging API. Monitor agent progress, provide input, and get notifications from your phone.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "tsc -p tsconfig.json
|
|
42
|
+
"build": "tsc -p tsconfig.json",
|
|
43
43
|
"watch": "tsc --watch -p tsconfig.json",
|
|
44
44
|
"start": "node dist/index.js",
|
|
45
45
|
"test": "vitest run",
|
|
@@ -42,6 +42,13 @@ When a LINE session is activated by the user, run a pre-flight approval sequence
|
|
|
42
42
|
|
|
43
43
|
**CRITICAL:** "done", "ok", "thanks", "got it" are conversational replies, NOT deactivation signals. Always call `line_ask` again after processing any reply.
|
|
44
44
|
|
|
45
|
+
### Active Session Rules
|
|
46
|
+
|
|
47
|
+
1. **Use `line_ask` for all communication.** Always pass `agentName`. After receiving a reply, always call `line_ask` again — keep the loop going until timeout or deactivation.
|
|
48
|
+
2. **Use `line_set_status` for progress updates** between `line_ask` calls. Include percent complete (e.g. "30%"), update every ~10% progress. Every call may return a `pendingReply` — always check and act on it.
|
|
49
|
+
3. **Keep messages short** — 1-3 sentences. No filler ("Processing...", "Still here...").
|
|
50
|
+
4. **On timeout**, stop the loop. The user's next message creates a `pendingReply` on your next `line_set_status`, re-activating the session.
|
|
51
|
+
|
|
45
52
|
### Mermaid Diagrams
|
|
46
53
|
|
|
47
54
|
Send files/images via `filePath`/`imageFilePath` params on `line_ask`. Use `.line-hive-tmp/` for temp files.
|
|
@@ -68,6 +75,7 @@ Off by default. Activate only when user explicitly requests confirmations (e.g.,
|
|
|
68
75
|
- **Pass LINE tools to subagents** — only the top-level agent calls `line_*` tools
|
|
69
76
|
- **Install packages during a session** — user can't approve prompts while away. Install during pre-flight instead.
|
|
70
77
|
- **Fetch external URLs during a session** — may trigger permission prompts. Only fetch when user confirms no permission issue.
|
|
78
|
+
- **Write temp files outside the project** — use `.line-hive-tmp/` (gitignored) for all temp files. Paths outside the workspace may trigger permission prompts.
|
|
71
79
|
|
|
72
80
|
### macOS Screen Lock Warning
|
|
73
81
|
|