hypomnema 1.8.0 → 1.8.2

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.
Files changed (41) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +46 -0
  4. package/README.ko.md +8 -6
  5. package/README.md +8 -6
  6. package/commands/crystallize.md +32 -6
  7. package/commands/graph.md +7 -4
  8. package/commands/lint.md +8 -1
  9. package/commands/query.md +6 -4
  10. package/commands/resume.md +1 -0
  11. package/commands/verify.md +12 -1
  12. package/docs/ARCHITECTURE.md +26 -12
  13. package/docs/CONTRIBUTING.md +15 -6
  14. package/hooks/hypo-compact-guard.mjs +126 -23
  15. package/hooks/hypo-cwd-change.mjs +20 -19
  16. package/hooks/hypo-first-prompt.mjs +31 -16
  17. package/hooks/hypo-lookup.mjs +10 -5
  18. package/hooks/hypo-session-start.mjs +180 -2
  19. package/hooks/hypo-shared.mjs +410 -83
  20. package/hooks/hypo-web-fetch-ingest.mjs +9 -13
  21. package/package.json +2 -1
  22. package/scripts/doctor.mjs +32 -3
  23. package/scripts/graph.mjs +22 -2
  24. package/scripts/init.mjs +5 -1
  25. package/scripts/lib/crystallize-args.mjs +38 -2
  26. package/scripts/lib/crystallize-close-apply.mjs +745 -450
  27. package/scripts/lint.mjs +242 -39
  28. package/scripts/query.mjs +22 -2
  29. package/scripts/resume.mjs +177 -2
  30. package/scripts/upgrade.mjs +2 -2
  31. package/scripts/verify.mjs +22 -2
  32. package/templates/SCHEMA.md +23 -1
  33. package/templates/hypo-automation.md +4 -2
  34. package/templates/hypo-config.md +1 -1
  35. package/templates/hypo-guide.md +1 -1
  36. package/skills/crystallize/SKILL.md +0 -189
  37. package/skills/graph/SKILL.md +0 -58
  38. package/skills/ingest/SKILL.md +0 -107
  39. package/skills/lint/SKILL.md +0 -59
  40. package/skills/query/SKILL.md +0 -62
  41. package/skills/verify/SKILL.md +0 -96
@@ -1,96 +0,0 @@
1
- ---
2
- description: Surface wiki knowledge that is stale or past its verify-by date and prompt review. Use when the user asks what needs re-checking, wants to audit knowledge freshness, or is reviewing the wiki for rot.
3
- ---
4
-
5
- You are running `/hypo:verify`. Check all wiki pages for `verify_by` and `verify_by_date` fields, surface overdue pages, and guide a review pass.
6
-
7
- ## What this does
8
-
9
- - Scans all pages for `verify_by` (a question to re-check) and `verify_by_date` (deadline)
10
- - Groups results: **overdue**, **due soon** (within 14 days), and **ok**
11
- - After the script runs, you help the user review and update each overdue page
12
-
13
- ---
14
-
15
- ## Step 1 — Locate package root
16
-
17
- Bundled scripts here run via `${CLAUDE_PLUGIN_ROOT}/scripts/`. To resolve that package root: if `${CLAUDE_PLUGIN_ROOT}` is already an absolute path, use it; otherwise read `pkgRoot` from `~/.claude/hypo-pkg.json` (only when non-empty and the target script exists under it); otherwise use the `hypo@hypomnema` (or legacy `hypomnema@hypomnema`) installPath in `~/.claude/plugins/installed_plugins.json`; if none resolve, stop and tell the user to run `hypomnema upgrade --apply` (or `/hypo:upgrade` on a plugin install) or reinstall instead of guessing the cache layout.
18
-
19
- If the user specified a Hypomnema directory, pass it as `--hypo-dir="<path>"`. Otherwise omit the flag and the script resolves the Hypomnema root automatically via `HYPO_DIR` → `hypo-config.md` scan → `~/hypomnema`.
20
-
21
- ---
22
-
23
- ## Step 2 — Run verify
24
-
25
- ```bash
26
- node ${CLAUDE_PLUGIN_ROOT}/scripts/verify.mjs \
27
- [--hypo-dir="<path>"] \
28
- [--file="<path>"] \
29
- [--json]
30
- ```
31
-
32
- Options:
33
- - `--file=<path>` — check a single file only
34
- - `--json` — output results as JSON
35
-
36
- Show the output verbatim.
37
-
38
- ---
39
-
40
- ## Step 3 — Interpret results
41
-
42
- - **overdue** — `verify_by_date` is in the past; the page needs immediate review
43
- - **due soon** — `verify_by_date` is within 14 days; worth reviewing this session
44
- - **ok** — no verify fields, or deadline is far enough out
45
-
46
- A page with `verify_by` but no `verify_by_date` is treated as **ok** (no deadline set — add `verify_by_date` to schedule a review).
47
-
48
- ---
49
-
50
- ## Step 4 — Review overdue pages
51
-
52
- For each overdue page, in priority order:
53
-
54
- 1. Read the page content.
55
- 2. Show the `verify_by` question to the user.
56
- 3. Ask: "Is this still accurate? (yes / no / partially)"
57
- 4. Based on the answer:
58
- - **yes** — update `last_reviewed: <today>` and push `verify_by_date` forward by 90 days.
59
- - **no / partially** — help the user edit the page to correct the outdated content, then update `last_reviewed` and `verify_by_date`.
60
- 5. Offer to move to the next overdue page.
61
-
62
- ---
63
-
64
- ## Step 5 — Update frontmatter
65
-
66
- After each review, apply the updated `last_reviewed` and `verify_by_date` fields to the page frontmatter. Do not change any other fields unless the user approves.
67
-
68
- ---
69
-
70
- ## Step 6 — Append stale items to open-questions.md
71
-
72
- For each page reviewed as **no** or **partially** (content found stale or incorrect):
73
-
74
- 1. Open `<wiki-root>/pages/open-questions.md`. If absent, create it with this frontmatter:
75
-
76
- ```
77
- ---
78
- title: Open Questions
79
- type: open-questions
80
- updated: <today YYYY-MM-DD>
81
- ---
82
-
83
- # Open Questions
84
- ```
85
-
86
- 2. Append an entry:
87
-
88
- ```
89
- - [ ] Re-verify [[<page-slug>|<page-title>]]: <verify_by question> (surfaced: <today YYYY-MM-DD>)
90
- ```
91
-
92
- 3. Save the file. Do not remove or reorder existing entries.
93
-
94
- ---
95
-
96
- > **Citation convention.** When you reference a wiki page in your response, link it as `[[page-slug]]` so it stays connected in the graph. The observability audit scores sessions on search / ingest / feedback activity (recorded by `hypo-session-record`), not on these inline citations; run `/hypo:audit` to inspect and see [[pages/observability/_index]].