@hippo-digital/hippocampus 2.4.0 → 2.6.0

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 (51) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/README.md +19 -0
  3. package/assets/dist/hippocampus.css +1 -1
  4. package/assets/hippocampus.scss +34 -1
  5. package/bin/hippocampus.js +1 -1
  6. package/docs/add-project-context.md +225 -0
  7. package/docs/agent-roadmap.md +6 -1
  8. package/docs/agent-workflow.md +6 -1
  9. package/docs/ask-whats-already-known.md +159 -0
  10. package/docs/check-for-unintended-consequences.md +191 -0
  11. package/docs/colour-pairings.md +6 -0
  12. package/docs/components.md +7 -1
  13. package/docs/custom-agents-usage.md +6 -1
  14. package/docs/data-and-governance.md +188 -0
  15. package/docs/design-actions-and-decisions.md +5 -0
  16. package/docs/diagrams/README.md +44 -0
  17. package/docs/diagrams/evidence-flow.mmd +56 -0
  18. package/docs/diagrams/mermaid.config.json +20 -0
  19. package/docs/hippocampus-for-designers-and-researchers.md +9 -3
  20. package/docs/hippocampus-technical.md +7 -1
  21. package/docs/images/evidence-flow.svg +1 -0
  22. package/docs/import-a-research-round.md +233 -0
  23. package/docs/link-insights-to-needs.md +225 -0
  24. package/docs/prompt-architecture-guardrails.md +6 -1
  25. package/docs/repeatable-research-round-ingestion.md +9 -3
  26. package/docs/research-knowledge-graph.md +12 -4
  27. package/docs/research-source-file-conventions.md +7 -2
  28. package/docs/review-and-promote-a-draft.md +212 -0
  29. package/docs/source-model.md +7 -1
  30. package/docs/start-here.md +223 -0
  31. package/docs/turn-personas-into-users-and-needs.md +207 -0
  32. package/lib/create-router.js +26 -3
  33. package/lib/docs.js +288 -30
  34. package/lib/templates.js +1 -1
  35. package/package.json +1 -1
  36. package/scripts/consequences.js +7 -5
  37. package/scripts/import-project-context.js +17 -5
  38. package/scripts/import-research-deck.js +31 -6
  39. package/scripts/known.js +2 -2
  40. package/scripts/link-insights-to-needs.js +38 -13
  41. package/scripts/promote-project-context-draft.js +66 -15
  42. package/scripts/promote-research-draft.js +99 -12
  43. package/scripts/smoke-routes.js +8 -1
  44. package/scripts/sync-project-context.js +90 -12
  45. package/skills/ingest-project-context/SKILL.md +1 -1
  46. package/skills/skills.json +2 -2
  47. package/skills/structure-project-context-draft/SKILL.md +1 -1
  48. package/templates/project-context.xlsx +0 -0
  49. package/views/hippocampus/doc.html +15 -0
  50. package/views/hippocampus/docs.html +42 -13
  51. package/views/hippocampus/research.html +9 -4
@@ -4,20 +4,49 @@
4
4
 
5
5
  {% block content %}
6
6
  <h1>Documentation</h1>
7
- <p class="nhsuk-lede-text">These guides ship with the package, so they always describe the version you have installed.</p>
7
+ <p class="nhsuk-lede-text">This guide ships with the package, so it always describes the version you have installed.</p>
8
8
  <p class="knowledge-muted">@hippo-digital/hippocampus {{ packageVersion }}</p>
9
9
 
10
- <h2 class="nhsuk-heading-m">Guides</h2>
11
- <div class="knowledge-card-grid knowledge-card-grid--wide knowledge-card-grid--fill">
12
- {% for doc in docs %}
13
- <article class="knowledge-card knowledge-card--compact">
14
- <h3 class="nhsuk-heading-s nhsuk-u-margin-bottom-1">
15
- <a href="{{ basePath }}/docs/{{ doc.slug }}">{{ doc.title }}</a>
16
- </h3>
17
- {% if doc.summary %}<p class="nhsuk-body-s nhsuk-u-margin-bottom-0">{{ doc.summary }}</p>{% endif %}
18
- </article>
19
- {% endfor %}
20
- </div>
10
+ {#
11
+ Grouped by what the reader is trying to do, in reading order. Each guide
12
+ says where it belongs in front matter; one that does not lands in
13
+ Reference rather than disappearing.
14
+
15
+ The tags say who a page is written for - somebody looking at the viewer,
16
+ somebody running commands, or both. They label and never filter: a
17
+ reviewer who only uses the viewer still needs to be able to find the page
18
+ about where research data goes.
19
+ #}
20
+ {% if sections.length > 1 %}
21
+ <nav class="knowledge-doc-contents" aria-label="Parts of the guide">
22
+ <h2 class="nhsuk-heading-s nhsuk-u-margin-bottom-2">In this guide</h2>
23
+ <ul class="nhsuk-list">
24
+ {% for section in sections %}
25
+ <li class="nhsuk-u-margin-bottom-1"><a href="#section-{{ section.id }}">{{ section.title }}</a></li>
26
+ {% endfor %}
27
+ {% if templates.length %}<li class="nhsuk-u-margin-bottom-1"><a href="#templates">Templates to fill in</a></li>{% endif %}
28
+ </ul>
29
+ </nav>
30
+ {% endif %}
31
+
32
+ {% for section in sections %}
33
+ <h2 class="nhsuk-heading-m" id="section-{{ section.id }}">{{ section.title }}</h2>
34
+ <p class="knowledge-note">{{ section.description }}</p>
35
+ <div class="knowledge-card-grid knowledge-card-grid--wide knowledge-card-grid--fill nhsuk-u-margin-bottom-5">
36
+ {% for doc in section.docs %}
37
+ <article class="knowledge-card knowledge-card--compact">
38
+ <h3 class="nhsuk-heading-s nhsuk-u-margin-bottom-1">
39
+ <a href="{{ basePath }}/docs/{{ doc.slug }}">{{ doc.title }}</a>
40
+ </h3>
41
+ {% if doc.summary %}<p class="nhsuk-body-s nhsuk-u-margin-bottom-2">{{ doc.summary }}</p>{% endif %}
42
+ <p class="knowledge-doc-audience nhsuk-u-margin-bottom-0">
43
+ <span class="nhsuk-u-visually-hidden">Written for: </span>
44
+ {% for label in doc.audienceLabels %}<strong class="nhsuk-tag nhsuk-tag--white">{{ label }}</strong> {% endfor %}
45
+ </p>
46
+ </article>
47
+ {% endfor %}
48
+ </div>
49
+ {% endfor %}
21
50
 
22
51
  {#
23
52
  The blank workbooks, where somebody might find them.
@@ -29,7 +58,7 @@
29
58
  thing it would have prevented.
30
59
  #}
31
60
  {% if templates.length %}
32
- <h2 class="nhsuk-heading-m">Templates to fill in</h2>
61
+ <h2 class="nhsuk-heading-m" id="templates">Templates to fill in</h2>
33
62
  <p class="knowledge-note">
34
63
  Workbooks with the columns each importer expects. Fill one in, run the
35
64
  command underneath it, then check the draft before promoting it.
@@ -70,11 +70,16 @@
70
70
  </section>
71
71
  {% endfor %}
72
72
  {% else %}
73
+ {#
74
+ The first page a team sees after installing, so the commands here have to
75
+ be ones that exist in their prototype. This used to name `npm run`
76
+ scripts that only this repository and its demo ever had.
77
+ #}
73
78
  <section class="knowledge-section">
74
- <h2>No research rounds imported yet</h2>
75
- <p>Place PowerPoint or text-based PDF research artefacts in <code>hippocampus/inbox/research</code>, then run <code>npm run research:sync</code> to detect new files, create reviewable drafts and update the research manifest.</p>
76
- <p>The sync command reports fit warnings when the artefact does not expose participants, insights or design actions clearly, then asks before promoting imported drafts into source data.</p>
77
- <p>After review, check promotion with <code>npm run promote:research-draft -- --draft hippocampus/imports/research/round-id.json --dry-run</code>, then remove <code>--dry-run</code> to merge it into source data.</p>
79
+ <h2>No research rounds yet</h2>
80
+ <p>Put research files in <code>hippocampus/inbox/research/</code> - decks, PDFs, Word documents, spreadsheets or text notes - then run <code>npx hippocampus research sync</code>. Each file becomes a draft in <code>hippocampus/imports/research/</code>, and nothing appears on this page until a person has reviewed a draft and promoted it.</p>
81
+ <p>Check a reviewed draft with <code>npx hippocampus promote research --draft hippocampus/imports/research/&lt;draft&gt;.json --dry-run</code>, then run it again without <code>--dry-run</code>.</p>
82
+ <p><a href="{{ basePath }}/docs/import-a-research-round">How to import a research round</a></p>
78
83
  </section>
79
84
  {% endif %}
80
85
  {% endblock %}