@qianhaoq/dsh-dota2ai 0.2.4 → 0.2.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/lib/client.js +476 -186
- package/lib/index.js +1542 -507
- package/package.json +1 -1
- package/skills/dota2ai/SKILL.md +19 -10
package/package.json
CHANGED
package/skills/dota2ai/SKILL.md
CHANGED
|
@@ -48,13 +48,20 @@ resolved, so ask for the friend code.
|
|
|
48
48
|
`poll_after_sec`, then call again with the **same arguments**.
|
|
49
49
|
- `pick_hero`: ask the user which hero they played (`heroes` lists the game's);
|
|
50
50
|
never guess.
|
|
51
|
-
- `ready`: `verdict`, `
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
- `ready`: `verdict`, `opening_note`, `highlights` (evidence-backed positives),
|
|
52
|
+
`chapters` (adaptive full-dimension breakdown across draft/lanes, laning,
|
|
53
|
+
skill build, items, teamfights, macro — each with `assessment`, `analysis`,
|
|
54
|
+
`evidence`, and optional `takeaway`), `findings` (high-leverage player-controlled
|
|
55
|
+
improvements, each with `evidence` clocks and numbers, `fix`, optional `rule`),
|
|
56
|
+
`encouragement`, `mainline`, `did_well`, `blind_spots` and `panel_route`.
|
|
57
|
+
Present the review in a warm, respectful, professional coach tone: lead with
|
|
58
|
+
`verdict` + `opening_note`, celebrate `highlights` concretely, walk through
|
|
59
|
+
the key `chapters` and constructive `findings`, and close with
|
|
60
|
+
`encouragement` — never invent mechanical next-game numeric KPI quotas. Quote
|
|
61
|
+
times and numbers as given, say what the review cannot see (`blind_spots`),
|
|
62
|
+
and point the user to the `dota2.ai` panel in the DSH sidebar (the tool card
|
|
63
|
+
opens it at `panel_route`). The review was written by the user's own model
|
|
64
|
+
and is kept on this machine: there is no public link to it.
|
|
58
65
|
- `failed`: offer to try again; only then call with `retry: true`.
|
|
59
66
|
- `replay_unavailable` / `unavailable`: if `reason` is `model_not_configured`,
|
|
60
67
|
ask the user to configure/select a model in DSH. If the replay expired (Valve
|
|
@@ -83,9 +90,11 @@ resolved, so ask for the friend code.
|
|
|
83
90
|
## Workflows
|
|
84
91
|
|
|
85
92
|
**"Review my last game"**: `dota2ai_recent_matches` → newest `match_id` and its
|
|
86
|
-
hero → `dota2ai_replay_review` (poll until `ready`) →
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
hero → `dota2ai_replay_review` (poll until `ready`) → present `verdict` and
|
|
94
|
+
`opening_note`, celebrate the player's `highlights`, summarize the adaptive
|
|
95
|
+
`chapters` and constructive `findings` with their replay evidence, close with
|
|
96
|
+
`encouragement` (no mechanical next-game KPI quotas) → open it in the DSH
|
|
97
|
+
`dota2.ai` panel.
|
|
89
98
|
|
|
90
99
|
**"Why did I lose?"**: the replay review, or `dota2ai_coach_report` with
|
|
91
100
|
`section: why` → for each cause on the player: what happened (evidence) → what
|