@hippo-digital/hippocampus 1.0.0 → 2.0.1
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/CHANGELOG.md +86 -0
- package/agents/README.md +6 -6
- package/agents/accessibility-tester.md +2 -2
- package/agents/ingestion-curator.md +9 -9
- package/agents/knowledge-builder.md +9 -9
- package/agents/prototype-builder.md +3 -3
- package/agents/screenshot-runner.md +2 -2
- package/agents/workflow-orchestrator.md +16 -16
- package/assets/dist/hippocampus.css +1 -1
- package/assets/hippocampus.scss +49 -1
- package/docs/agent-roadmap.md +2 -2
- package/docs/custom-agents-usage.md +1 -1
- package/docs/repeatable-research-round-ingestion.md +3 -3
- package/docs/research-knowledge-graph.md +5 -5
- package/package.json +1 -1
- package/scripts/install-skills.js +93 -3
- package/scripts/validate-skills.js +78 -6
- package/skills/README.md +18 -18
- package/skills/SKILL-FORMAT.md +24 -5
- package/skills/{add-prototype-screen.skill.md → add-prototype-screen/SKILL.md} +2 -0
- package/skills/{add-scenario.skill.md → add-scenario/SKILL.md} +2 -0
- package/skills/{add-user-needs.skill.md → add-user-needs/SKILL.md} +2 -0
- package/skills/{audit-knowledge-source.skill.md → audit-knowledge-source/SKILL.md} +2 -0
- package/skills/{capture-route-review-pack.skill.md → capture-route-review-pack/SKILL.md} +2 -0
- package/skills/{create-journey-from-scenario.skill.md → create-journey-from-scenario/SKILL.md} +2 -0
- package/skills/{deliver-service-slice.skill.md → deliver-service-slice/SKILL.md} +2 -0
- package/skills/examples/README.md +1 -1
- package/skills/examples/non-copilot-research-ingestion.md +1 -1
- package/skills/examples/non-copilot-service-slice.md +1 -1
- package/skills/{generate-service-slice.skill.md → generate-service-slice/SKILL.md} +2 -0
- package/skills/{ingest-project-context.skill.md → ingest-project-context/SKILL.md} +2 -0
- package/skills/{ingest-research-round.skill.md → ingest-research-round/SKILL.md} +2 -0
- package/skills/{ingest-user-personas.skill.md → ingest-user-personas/SKILL.md} +2 -0
- package/skills/{map-research-to-graph.skill.md → map-research-to-graph/SKILL.md} +2 -0
- package/skills/{onboard-team-member.skill.md → onboard-team-member/SKILL.md} +2 -0
- package/skills/{record-accessibility-review.skill.md → record-accessibility-review/SKILL.md} +2 -0
- package/skills/{record-design-decision.skill.md → record-design-decision/SKILL.md} +2 -0
- package/skills/{review-research-import-draft.skill.md → review-research-import-draft/SKILL.md} +2 -0
- package/skills/skills.json +21 -21
- package/skills/skills.schema.json +1 -1
- package/skills/{structure-project-context-draft.skill.md → structure-project-context-draft/SKILL.md} +2 -0
- package/skills/{structure-research-draft.skill.md → structure-research-draft/SKILL.md} +2 -0
- package/skills/{triage-research-corpus.skill.md → triage-research-corpus/SKILL.md} +2 -0
- package/skills/{write-delivery-summary.skill.md → write-delivery-summary/SKILL.md} +2 -0
- package/skills/{write-route-review-summary.skill.md → write-route-review-summary/SKILL.md} +2 -0
- package/views/hippocampus/user-needs.html +1 -0
- package/views/hippocampus/user.html +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,91 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
`skills validate` says what it checked.
|
|
6
|
+
|
|
7
|
+
In a host it validates the skills the **package** ships and resolves their
|
|
8
|
+
`reads:` against the project around it. It does not look at the host's own
|
|
9
|
+
catalog. So a repo holding 29 skills saw `Skill catalog is valid (21 skills)`,
|
|
10
|
+
which is the right number for what it did and reads as an all-clear on all 29 -
|
|
11
|
+
including the eight it never opened. Somebody who had broken one of their own
|
|
12
|
+
would have taken that line as confirmation it was fine.
|
|
13
|
+
|
|
14
|
+
It now names both roots before the verdict: the skills directory it read, and
|
|
15
|
+
the project it resolved paths against. The release gate asserts both appear,
|
|
16
|
+
because the failure here is a true statement being misread, which no exit code
|
|
17
|
+
catches.
|
|
18
|
+
|
|
19
|
+
### The user needs cards
|
|
20
|
+
|
|
21
|
+
Evidence under a need was a bare run of links directly below the statement,
|
|
22
|
+
with nothing saying what it was. It read as continuation prose rather than as
|
|
23
|
+
the records behind the need.
|
|
24
|
+
|
|
25
|
+
- A quiet label, "Evidence behind it", names the relationship. It is a
|
|
26
|
+
`knowledge-card__label` rather than a heading: at `nhsuk-heading-xs` it sat at
|
|
27
|
+
nearly the weight of the need statement, so the card had two headings of equal
|
|
28
|
+
rank when one is the content and the other is a signpost to it.
|
|
29
|
+
- The list has bullets, drawn rather than inherited, because the items are flex
|
|
30
|
+
rows and `list-style` does not survive that.
|
|
31
|
+
- A confidence tag stays on the first line of its item. Inline, a long title
|
|
32
|
+
pushed the tag onto a line of its own and one item then looked like two.
|
|
33
|
+
|
|
34
|
+
The same card appears on a user's page and got the same treatment.
|
|
35
|
+
|
|
36
|
+
## 2.0.0
|
|
37
|
+
|
|
38
|
+
Skills install in the layout agent runtimes actually read.
|
|
39
|
+
|
|
40
|
+
### Why this is a major version
|
|
41
|
+
|
|
42
|
+
`skills install` writes to different paths. A host that upgrades gets
|
|
43
|
+
`.github/skills/<name>/SKILL.md` where it had `.github/skills/<name>.skill.md`,
|
|
44
|
+
and anything of its own that referred to the old paths - a custom agent's
|
|
45
|
+
Preferred Skills list, a runbook, a script - needs repointing. Nothing about
|
|
46
|
+
the knowledge base changes, and `schemaVersion` stays at 1.
|
|
47
|
+
|
|
48
|
+
### The layout
|
|
49
|
+
|
|
50
|
+
Skills were flat `<name>.skill.md` files. That is not a shape any agent runtime
|
|
51
|
+
discovers: GitHub Copilot, Claude and the rest implement the
|
|
52
|
+
[Agent Skills](https://agentskills.io) standard, which defines a skill as a
|
|
53
|
+
**directory containing `SKILL.md`**. A flat file is read only when an agent has
|
|
54
|
+
been told its exact path - so 21 installed skills were, in practice, loadable
|
|
55
|
+
only by naming them one at a time, and invisible to anything else.
|
|
56
|
+
|
|
57
|
+
Every skill is now a directory, and every `SKILL.md` front matter opens with the
|
|
58
|
+
two fields the standard requires:
|
|
59
|
+
|
|
60
|
+
- `name`, which must equal the directory name. `id` stays for the catalog, and
|
|
61
|
+
the validator asserts the two match so they cannot drift.
|
|
62
|
+
- `description`, which is the **only** thing an agent sees before deciding
|
|
63
|
+
whether to load a skill at all. All 21 were written fresh rather than derived
|
|
64
|
+
from `purpose`: a purpose says what the skill produces, and a description has
|
|
65
|
+
to say when somebody would want it, in the words they would use. The validator
|
|
66
|
+
rejects one with no trigger clause, because a description that only restates
|
|
67
|
+
the title is a skill that never fires.
|
|
68
|
+
|
|
69
|
+
The remaining keys stay at the top level. The standard offers `metadata` for
|
|
70
|
+
extra data but permits only string values, and these are arrays; unknown keys
|
|
71
|
+
are not rejected, and splitting one skill across two files would cost more than
|
|
72
|
+
it buys.
|
|
73
|
+
|
|
74
|
+
### Upgrading
|
|
75
|
+
|
|
76
|
+
`skills install` removes the flat copies it wrote. It removes only those: a
|
|
77
|
+
flat file whose hash no longer matches what was installed is left in place and
|
|
78
|
+
named, because that is somebody's edit and nothing else holds a copy. Two copies
|
|
79
|
+
of every skill - one of them invisible to every runtime - is a worse failure
|
|
80
|
+
than a file left behind, so the removal is deliberate rather than a tidy-up.
|
|
81
|
+
|
|
82
|
+
`skills validate` reports a leftover flat file as an error rather than ignoring
|
|
83
|
+
it. It looks installed and is not, which is the hardest kind of thing to notice.
|
|
84
|
+
|
|
85
|
+
The release gate counts installed skills by directory. Counting flat files would
|
|
86
|
+
have passed an install that produced nothing any agent could see - which it did,
|
|
87
|
+
on the first run of this change.
|
|
88
|
+
|
|
3
89
|
## 1.0.0
|
|
4
90
|
|
|
5
91
|
First published release.
|
package/agents/README.md
CHANGED
|
@@ -23,10 +23,10 @@ Use the source model as the handoff contract between agents.
|
|
|
23
23
|
|
|
24
24
|
## Common entrypoints
|
|
25
25
|
|
|
26
|
-
- End-to-end research ingestion: `.github/skills/ingest-research-round.
|
|
27
|
-
- End-to-end project context ingestion: `.github/skills/ingest-project-context.
|
|
28
|
-
- End-to-end service slice delivery: `.github/skills/deliver-service-slice.
|
|
29
|
-
- Route review pack: `.github/skills/capture-route-review-pack.
|
|
30
|
-
- Accessibility review note: `.github/skills/record-accessibility-review.
|
|
31
|
-
- Route review handover: `.github/skills/write-route-review-summary.
|
|
26
|
+
- End-to-end research ingestion: `.github/skills/ingest-research-round/SKILL.md`
|
|
27
|
+
- End-to-end project context ingestion: `.github/skills/ingest-project-context/SKILL.md`
|
|
28
|
+
- End-to-end service slice delivery: `.github/skills/deliver-service-slice/SKILL.md`
|
|
29
|
+
- Route review pack: `.github/skills/capture-route-review-pack/SKILL.md`
|
|
30
|
+
- Accessibility review note: `.github/skills/record-accessibility-review/SKILL.md`
|
|
31
|
+
- Route review handover: `.github/skills/write-route-review-summary/SKILL.md`
|
|
32
32
|
|
|
@@ -11,8 +11,8 @@ Reviews accessibility of changed prototype and Hippocampus pages.
|
|
|
11
11
|
|
|
12
12
|
## Preferred Skills
|
|
13
13
|
|
|
14
|
-
- `.github/skills/record-accessibility-review.
|
|
15
|
-
- `.github/skills/write-route-review-summary.
|
|
14
|
+
- `.github/skills/record-accessibility-review/SKILL.md`
|
|
15
|
+
- `.github/skills/write-route-review-summary/SKILL.md`
|
|
16
16
|
|
|
17
17
|
## Read First
|
|
18
18
|
|
|
@@ -12,15 +12,15 @@ Improves script-generated research and project-context drafts before human revie
|
|
|
12
12
|
|
|
13
13
|
## Preferred Skills
|
|
14
14
|
|
|
15
|
-
- `.github/skills/ingest-project-context.
|
|
16
|
-
- `.github/skills/ingest-research-round.
|
|
17
|
-
- `.github/skills/structure-project-context-draft.
|
|
18
|
-
- `.github/skills/structure-research-draft.
|
|
19
|
-
- `.github/skills/review-research-import-draft.
|
|
20
|
-
- `.github/skills/map-research-to-graph.
|
|
21
|
-
- `.github/skills/ingest-user-personas.
|
|
22
|
-
- `.github/skills/record-design-decision.
|
|
23
|
-
- `.github/skills/triage-research-corpus.
|
|
15
|
+
- `.github/skills/ingest-project-context/SKILL.md`
|
|
16
|
+
- `.github/skills/ingest-research-round/SKILL.md`
|
|
17
|
+
- `.github/skills/structure-project-context-draft/SKILL.md`
|
|
18
|
+
- `.github/skills/structure-research-draft/SKILL.md`
|
|
19
|
+
- `.github/skills/review-research-import-draft/SKILL.md`
|
|
20
|
+
- `.github/skills/map-research-to-graph/SKILL.md`
|
|
21
|
+
- `.github/skills/ingest-user-personas/SKILL.md`
|
|
22
|
+
- `.github/skills/record-design-decision/SKILL.md`
|
|
23
|
+
- `.github/skills/triage-research-corpus/SKILL.md`
|
|
24
24
|
|
|
25
25
|
## Read First
|
|
26
26
|
|
|
@@ -12,15 +12,15 @@ Maintains the Hippocampus source model.
|
|
|
12
12
|
|
|
13
13
|
## Preferred Skills
|
|
14
14
|
|
|
15
|
-
- `.github/skills/deliver-service-slice.
|
|
16
|
-
- `.github/skills/generate-service-slice.
|
|
17
|
-
- `.github/skills/add-user-needs.
|
|
18
|
-
- `.github/skills/add-scenario.
|
|
19
|
-
- `.github/skills/create-journey-from-scenario.
|
|
20
|
-
- `.github/skills/audit-knowledge-source.
|
|
21
|
-
- `.github/skills/ingest-user-personas.
|
|
22
|
-
- `.github/skills/record-design-decision.
|
|
23
|
-
- `.github/skills/onboard-team-member.
|
|
15
|
+
- `.github/skills/deliver-service-slice/SKILL.md`
|
|
16
|
+
- `.github/skills/generate-service-slice/SKILL.md`
|
|
17
|
+
- `.github/skills/add-user-needs/SKILL.md`
|
|
18
|
+
- `.github/skills/add-scenario/SKILL.md`
|
|
19
|
+
- `.github/skills/create-journey-from-scenario/SKILL.md`
|
|
20
|
+
- `.github/skills/audit-knowledge-source/SKILL.md`
|
|
21
|
+
- `.github/skills/ingest-user-personas/SKILL.md`
|
|
22
|
+
- `.github/skills/record-design-decision/SKILL.md`
|
|
23
|
+
- `.github/skills/onboard-team-member/SKILL.md`
|
|
24
24
|
|
|
25
25
|
## Read First
|
|
26
26
|
|
|
@@ -12,9 +12,9 @@ Builds NHS Prototype Kit routes and views from the source model.
|
|
|
12
12
|
|
|
13
13
|
## Preferred Skills
|
|
14
14
|
|
|
15
|
-
- `.github/skills/deliver-service-slice.
|
|
16
|
-
- `.github/skills/add-prototype-screen.
|
|
17
|
-
- `.github/skills/audit-knowledge-source.
|
|
15
|
+
- `.github/skills/deliver-service-slice/SKILL.md`
|
|
16
|
+
- `.github/skills/add-prototype-screen/SKILL.md`
|
|
17
|
+
- `.github/skills/audit-knowledge-source/SKILL.md`
|
|
18
18
|
|
|
19
19
|
## Read First
|
|
20
20
|
|
|
@@ -12,8 +12,8 @@ Captures review evidence for prototype and Hippocampus routes.
|
|
|
12
12
|
|
|
13
13
|
## Preferred Skills
|
|
14
14
|
|
|
15
|
-
- `.github/skills/capture-route-review-pack.
|
|
16
|
-
- `.github/skills/write-route-review-summary.
|
|
15
|
+
- `.github/skills/capture-route-review-pack/SKILL.md`
|
|
16
|
+
- `.github/skills/write-route-review-summary/SKILL.md`
|
|
17
17
|
|
|
18
18
|
## Read First
|
|
19
19
|
|
|
@@ -12,22 +12,22 @@ Coordinates larger Hippocampus delivery work.
|
|
|
12
12
|
|
|
13
13
|
## Preferred Skills
|
|
14
14
|
|
|
15
|
-
- `.github/skills/deliver-service-slice.
|
|
16
|
-
- `.github/skills/ingest-project-context.
|
|
17
|
-
- `.github/skills/ingest-research-round.
|
|
18
|
-
- `.github/skills/write-delivery-summary.
|
|
19
|
-
- `.github/skills/capture-route-review-pack.
|
|
20
|
-
- `.github/skills/record-accessibility-review.
|
|
21
|
-
- `.github/skills/write-route-review-summary.
|
|
22
|
-
- `.github/skills/generate-service-slice.
|
|
23
|
-
- `.github/skills/add-prototype-screen.
|
|
24
|
-
- `.github/skills/structure-project-context-draft.
|
|
25
|
-
- `.github/skills/structure-research-draft.
|
|
26
|
-
- `.github/skills/review-research-import-draft.
|
|
27
|
-
- `.github/skills/map-research-to-graph.
|
|
28
|
-
- `.github/skills/audit-knowledge-source.
|
|
29
|
-
- `.github/skills/triage-research-corpus.
|
|
30
|
-
- `.github/skills/onboard-team-member.
|
|
15
|
+
- `.github/skills/deliver-service-slice/SKILL.md`
|
|
16
|
+
- `.github/skills/ingest-project-context/SKILL.md`
|
|
17
|
+
- `.github/skills/ingest-research-round/SKILL.md`
|
|
18
|
+
- `.github/skills/write-delivery-summary/SKILL.md`
|
|
19
|
+
- `.github/skills/capture-route-review-pack/SKILL.md`
|
|
20
|
+
- `.github/skills/record-accessibility-review/SKILL.md`
|
|
21
|
+
- `.github/skills/write-route-review-summary/SKILL.md`
|
|
22
|
+
- `.github/skills/generate-service-slice/SKILL.md`
|
|
23
|
+
- `.github/skills/add-prototype-screen/SKILL.md`
|
|
24
|
+
- `.github/skills/structure-project-context-draft/SKILL.md`
|
|
25
|
+
- `.github/skills/structure-research-draft/SKILL.md`
|
|
26
|
+
- `.github/skills/review-research-import-draft/SKILL.md`
|
|
27
|
+
- `.github/skills/map-research-to-graph/SKILL.md`
|
|
28
|
+
- `.github/skills/audit-knowledge-source/SKILL.md`
|
|
29
|
+
- `.github/skills/triage-research-corpus/SKILL.md`
|
|
30
|
+
- `.github/skills/onboard-team-member/SKILL.md`
|
|
31
31
|
|
|
32
32
|
## Required Finish
|
|
33
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.knowledge-admin-theme{background:#f6f5f2;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif}.knowledge-admin-theme .nhsuk-header{background:#1c1c1a}.knowledge-admin-theme .nhsuk-header__service-logo,.knowledge-admin-theme .nhsuk-header__service-logo:hover,.knowledge-admin-theme .nhsuk-header__service-logo:visited{color:#fff}.knowledge-admin-theme .nhsuk-header__logo{fill:currentcolor}.knowledge-admin-theme .nhsuk-header__service-name{color:#fff}.knowledge-admin-theme .nhsuk-header__service-logo:focus{color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}.knowledge-admin-theme .nhsuk-header__container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-header__container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme h1,.knowledge-admin-theme h2,.knowledge-admin-theme h3,.knowledge-admin-theme h4{font-weight:600;letter-spacing:-0.01em}.knowledge-admin-theme .nhsuk-caption-l{color:#706f68;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.knowledge-admin-theme a{color:#00726b}.knowledge-admin-theme .nhsuk-back-link,.knowledge-admin-theme .nhsuk-back-link__icon{color:#00726b}.knowledge-admin-theme .knowledge-card,.knowledge-admin-theme .knowledge-section,.knowledge-admin-theme .knowledge-blueprint-step,.knowledge-admin-theme .knowledge-linked-block{background:#fff;border-color:#e3e1d9;border-radius:3px;box-shadow:none}.knowledge-admin-theme .knowledge-card__meta,.knowledge-admin-theme .knowledge-muted{color:#8c8a80;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;text-transform:uppercase}.knowledge-admin-theme .knowledge-note{color:#626058;font-size:15px;line-height:1.4;margin-bottom:8px}.knowledge-admin-theme .nhsuk-button{background:#1c1c1a;border-radius:2px}.knowledge-admin-theme .nhsuk-button--secondary{background:rgba(0,0,0,0);border-color:#1c1c1a;color:#1c1c1a}.knowledge-admin-theme .nhsuk-tag{border-radius:2px}.knowledge-admin-theme code{background:#e6f6f5;font-family:ui-monospace,"SF Mono",Consolas,monospace}.knowledge-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));gap:16px;margin-top:32px}.knowledge-list{display:grid;gap:16px}.knowledge-card,.knowledge-section,.knowledge-blueprint-step{border:1px solid #d8dde0;padding:24px;margin-bottom:24px;background:#fff}.knowledge-card,.knowledge-linked-block,.knowledge-timeline__item,.knowledge-admin-theme .nhsuk-lede-text{max-width:70ch}.knowledge-section>p,.knowledge-admin-theme .nhsuk-list--bullet,.knowledge-admin-theme .nhsuk-list--number{max-width:70ch}.knowledge-card__meta{color:#4c6272;font-size:16px;margin-bottom:8px}.knowledge-timeline{list-style:none;padding-left:0}.knowledge-timeline__item{border-left:4px solid #005eb8;padding-left:24px;margin-bottom:32px}.knowledge-admin-theme .knowledge-timeline__item{border-left-color:#00726b}.knowledge-blueprint-step__header{align-items:flex-start;display:flex;justify-content:space-between;gap:16px}.knowledge-lane{border-top:1px solid #d8dde0;display:grid;grid-template-columns:220px minmax(0, 1fr);gap:24px;padding:16px 0}.knowledge-lane[hidden]{display:none}.knowledge-lane__label h3{font-size:16px;margin:0}.knowledge-lane__content{max-width:70ch}.knowledge-lane__content>:last-child{margin-bottom:0}.knowledge-boundary{border-top:2px dashed #005eb8;color:#005eb8;font-size:14px;font-weight:700;letter-spacing:.04em;padding-top:8px;text-transform:uppercase}.knowledge-admin-theme .knowledge-boundary{border-top-color:#00726b;color:#00726b}.knowledge-tagged-item{border-left:4px solid #768692;margin-bottom:8px;padding:8px 12px;background:#f0f4f5}.knowledge-tagged-item strong{display:block;font-size:14px}.knowledge-tagged-item--high{border-left-color:#d5281b;background:#fbeae5}.knowledge-tagged-item--medium{border-left-color:#ffb81c;background:#fff9e6}.knowledge-admin-theme .knowledge-tagged-item--high{border-left-color:#8e5300;background:#fdf3e6}.knowledge-admin-theme .knowledge-tagged-item--medium{border-left-color:#ed8b00;background:#fdf3e6}.knowledge-linked-block{border-top:1px solid #d8dde0;padding-top:24px;margin-top:24px}.knowledge-linked-block:first-of-type{border-top:0;padding-top:0;margin-top:0}.knowledge-linked-block__detail{background:#f0f4f5;margin:24px 0;padding:16px}.knowledge-graph-summary{display:grid;grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));gap:12px;margin:24px 0}.knowledge-graph-summary div{background:#f0f4f5;border-left:4px solid #005eb8;padding:12px}.knowledge-admin-theme .knowledge-graph-summary div{background:#e6f6f5;border-left-color:#00726b}.knowledge-graph-summary strong,.knowledge-graph-summary span{display:block}.knowledge-graph-summary strong{font-size:28px;line-height:1}.knowledge-graph-summary span{color:#4c6272;font-size:14px;margin-top:4px}.knowledge-graph{display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:12px;margin-top:24px}.knowledge-graph__node{border:1px solid #d8dde0;border-top:4px solid #768692;padding:12px}.knowledge-graph__node strong,.knowledge-graph__node span{display:block}.knowledge-graph__node strong{color:#4c6272;font-size:14px;margin-bottom:4px}.knowledge-graph__node span{font-size:16px}.knowledge-graph__node--user{border-top-color:#005eb8}.knowledge-graph__node--scenario{border-top-color:#d5281b}.knowledge-graph__node--need{border-top-color:#007f3b}.knowledge-graph__node--evidence{border-top-color:#7c2855}.knowledge-admin-theme .knowledge-graph__node--scenario{border-top-color:#330072}.knowledge-admin-theme .knowledge-graph__node--need{border-top-color:#006747}.knowledge-graph__node--journey,.knowledge-graph__node--screen,.knowledge-graph__node--decision{border-top-color:#ffb81c}.knowledge-edge-list{display:grid;gap:8px}.knowledge-edge-list li{background:#f0f4f5;display:grid;grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);gap:12px;padding:12px}.knowledge-edge-list span{color:#4c6272;font-size:14px;font-weight:700;text-transform:uppercase}.knowledge-trace-timeline,.knowledge-trace-children{list-style:none;margin:0;padding-left:0}.knowledge-trace-timeline{position:relative}.knowledge-trace-timeline::before{background:#e3e1d9;bottom:0;content:"";left:14px;position:absolute;top:8px;width:2px}.knowledge-trace-group,.knowledge-trace-item{position:relative}.knowledge-trace-group{padding-left:48px}.knowledge-trace-group__content{margin-bottom:24px}.knowledge-trace-group__content h3{margin-bottom:16px}.knowledge-trace-children{border-left:2px solid #e3e1d9;display:grid;gap:12px;margin-top:12px;padding-left:22px}.knowledge-trace-group__content>.knowledge-trace-children{margin-top:0}.knowledge-trace-item{padding-left:0}.knowledge-trace-item__marker{background:#fff;border:2px solid #00726b;border-radius:50%;height:11px;left:-28.5px;position:absolute;top:16px;width:11px}.knowledge-trace-children .knowledge-trace-children .knowledge-trace-item__marker{border-color:#adb4b8}.knowledge-trace-item__content{background:#fff;border:1px solid #e3e1d9;border-radius:3px;max-width:70ch;padding:12px 16px}.knowledge-trace-item--selected{padding-left:48px}.knowledge-trace-item--selected .knowledge-trace-item__marker{background:#00726b;border-color:#00726b;height:16px;left:7px;top:18px;width:16px}.knowledge-trace-item--selected .knowledge-trace-item__content{border-color:#00726b;border-left-width:4px;margin:8px 0 32px;max-width:none}.knowledge-trace-item__heading{font-size:18px;margin:0 0 4px}.knowledge-trace-item__heading a{text-decoration:none}.knowledge-trace-item__heading a:hover,.knowledge-trace-item__heading a:focus{text-decoration:underline}.knowledge-trace-item--selected .knowledge-trace-item__heading{font-size:20px}.knowledge-trace-item__type{color:#706f68;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;margin:0;text-transform:uppercase}.knowledge-trace-item__relationship{color:#4c6272;font-size:14px;margin:0 0 2px}.knowledge-muted{color:#4c6272}.knowledge-confidence-tag{display:inline-block;padding:2px 8px;font-size:13px;font-weight:700;border-radius:10px}.knowledge-confidence-tag--high{color:#00726b;background:#e6f6f5}.knowledge-confidence-tag--medium{color:#00758f;background:#e6f6fa}.knowledge-confidence-tag--low{color:#4c6272;background:#f0f4f5}.knowledge-matrix-wrap{overflow-x:auto}.knowledge-matrix{border-collapse:collapse;min-width:1200px;width:100%}.knowledge-matrix th,.knowledge-matrix td{border:1px solid #e3e1d9;padding:12px;text-align:left;vertical-align:top}.knowledge-matrix thead th,.knowledge-matrix tbody th{background:#fff}.knowledge-matrix thead th{border-bottom:2px solid #adb4b8}.knowledge-matrix tbody th{border-right:2px solid #adb4b8}.knowledge-matrix__boundary td{border-top:2px dashed #005eb8;color:#005eb8;font-weight:700;text-transform:uppercase}.knowledge-admin-theme .knowledge-matrix__boundary td{border-top-color:#00726b;color:#00726b}.knowledge-blueprint-controls{align-items:flex-start;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:16px 24px;margin-bottom:24px;padding:12px 24px;position:sticky;top:0;z-index:2}.knowledge-blueprint-controls__lenses{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-controls__legend{font-size:14px;font-weight:700;margin:0 0 6px;width:100%}.knowledge-lens-btn{padding:6px 14px;font:inherit;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:20px;cursor:pointer}.knowledge-lens-btn[aria-pressed=true]{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-lens-btn{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-lens-btn[aria-pressed=true]{background:#00726b;color:#fff}.knowledge-blueprint-controls__lanes{display:flex;flex-wrap:wrap;gap:8px 16px;padding:0;margin:0;border:0}.knowledge-blueprint-controls__lanes legend{font-size:14px;font-weight:700;margin-bottom:6px;width:100%}.knowledge-lane-toggle{display:inline-flex;align-items:center;gap:4px;font-size:14px}.knowledge-blueprint-layout{display:grid;grid-template-columns:72px 1fr;gap:24px}.knowledge-blueprint-minimap{position:sticky;top:calc(var(--blueprint-controls-height, 137px) + 16px);align-self:start}.knowledge-blueprint-minimap ul{position:relative;padding:0;margin:0;list-style:none}.knowledge-blueprint-minimap ul::before{position:absolute;top:16px;bottom:16px;left:15px;width:2px;content:"";background:#d8dde0}.knowledge-blueprint-minimap li{position:relative;margin-bottom:16px}.knowledge-blueprint-minimap a{position:relative;display:block}.knowledge-blueprint-minimap__marker{display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-weight:700;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:50%}.knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-blueprint-minimap__marker{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{background:#00726b}.knowledge-blueprint-step{scroll-margin-top:88px}.knowledge-flow-diagram{overflow-x:auto;padding:24px;margin-bottom:24px;background:#fff;border:1px solid #d8dde0}.knowledge-flow-source{overflow-x:auto;white-space:pre}.knowledge-admin-theme .knowledge-flow-diagram{border-color:#e3e1d9;border-radius:3px}@media(max-width: 48.0525em){.knowledge-blueprint-layout{display:block}.knowledge-blueprint-minimap{position:static;margin-bottom:16px}.knowledge-blueprint-minimap ul{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-minimap ul::before{display:none}.knowledge-blueprint-minimap li{margin-bottom:0}.knowledge-lane{grid-template-columns:1fr;gap:8px}.knowledge-edge-list li{grid-template-columns:1fr}.knowledge-trace-timeline::before{left:9px}.knowledge-trace-group,.knowledge-trace-item{padding-left:36px}.knowledge-trace-item__marker{height:16px;left:1px;width:16px}}.knowledge-admin-theme .knowledge-empty-state{max-width:70ch;padding:24px;margin-bottom:24px;background:#fff;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-empty-state h2{margin-top:0}.knowledge-admin-theme .knowledge-empty-state p:last-child{margin-bottom:0}.knowledge-admin-theme .knowledge-doc{max-width:76ch;padding:24px 32px;background:#fff}.knowledge-admin-theme .knowledge-doc h1{margin-top:0}.knowledge-admin-theme .knowledge-doc h2,.knowledge-admin-theme .knowledge-doc h3{margin-top:32px}.knowledge-admin-theme .knowledge-doc pre{padding:16px;overflow-x:auto;background:#f6f5f2;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-doc code{font-size:15px}.knowledge-admin-theme .knowledge-doc table{width:100%;margin-bottom:24px;border-collapse:collapse}.knowledge-admin-theme .knowledge-doc th,.knowledge-admin-theme .knowledge-doc td{padding:8px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #d8dde0}.knowledge-find{align-items:flex-end;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:0 24px;margin-bottom:8px;padding:24px 24px 8px}.knowledge-find .nhsuk-form-group{flex:1 1 14rem;margin-bottom:16px;min-width:0}.knowledge-find .nhsuk-form-group:first-child{flex:2 1 20rem}.knowledge-find .nhsuk-form-group .nhsuk-label{margin-bottom:4px}.knowledge-find .nhsuk-select,.knowledge-find .nhsuk-input{max-width:100%;width:100%}.knowledge-find .nhsuk-button{flex:0 0 auto;margin-bottom:16px}.knowledge-find--compact .nhsuk-form-group,.knowledge-find--compact .nhsuk-form-group:first-child{flex:1 1 16rem;max-width:26rem}.knowledge-find__count{margin-bottom:24px;color:#4c6272}@media(max-width: 48em){.knowledge-find{display:block}}.knowledge-nav{background-color:#fff;border-bottom:1px solid #d8dde0;margin-bottom:24px}.knowledge-nav__list{display:flex;gap:4px;margin:0;padding:0;list-style:none;overflow-x:auto;-webkit-overflow-scrolling:touch}.knowledge-nav__item{margin:0;flex:0 0 auto}.knowledge-nav__link{display:block;padding:12px 12px;text-decoration:none;color:#4c6272;font-weight:600;white-space:nowrap;border-bottom:4px solid rgba(0,0,0,0)}.knowledge-nav__link:hover{color:#00726b;background-color:#f0f4f5}.knowledge-nav__link:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32;text-decoration:none}.knowledge-nav__link--current{color:#00726b;border-bottom-color:#00726b}.knowledge-round-status{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-bottom:8px}.knowledge-status{margin-bottom:32px}.knowledge-status__grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(13rem, 1fr));gap:16px}.knowledge-stat{display:flex;flex-direction:column;gap:4px;padding:16px 20px;background-color:#fff;border:1px solid #d8dde0;border-left:4px solid #768692;border-radius:4px;text-decoration:none}.knowledge-stat:hover{border-color:#00726b;border-left-color:#00726b;background-color:#f0f4f5}.knowledge-stat:focus{outline:3px solid rgba(0,0,0,0);background-color:#ffeb3b;box-shadow:0 0 0 4px #212b32;text-decoration:none}.knowledge-stat--waiting{border-left-color:#ed8b00}.knowledge-stat--done{border-left-color:#007f3b}.knowledge-stat--neutral{border-left-color:#005eb8}.knowledge-stat__value{font-size:2rem;line-height:1.1;font-weight:700;color:#212b32}.knowledge-stat__label{font-weight:600;color:#00726b;text-decoration:underline}.knowledge-stat__detail{font-size:.875rem;color:#4c6272}.knowledge-nav__inner{display:flex;align-items:stretch;gap:16px}.knowledge-nav__wordmark{display:flex;align-items:center;flex:0 0 auto;padding-right:24px;border-right:1px solid #d8dde0;color:#212b32;font-weight:700;text-decoration:none;white-space:nowrap}.knowledge-nav__wordmark:hover{color:#00726b}.knowledge-nav__wordmark:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}@media(max-width: 40em){.knowledge-nav__wordmark{display:none}}.knowledge-breadcrumb{margin-top:12px;margin-bottom:0;padding:0;background:none}.knowledge-breadcrumb .nhsuk-breadcrumb__list{margin-bottom:0}.knowledge-breadcrumb [aria-current=page]{color:#4c6272}.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:12px}@media(min-width: 40.0625em){.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:16px}}.knowledge-integrity{align-items:center;color:#d8dde0;display:flex;gap:8px;margin-bottom:0}.knowledge-integrity__icon{fill:#4caf7d;flex-shrink:0;height:20px;width:20px}.knowledge-integrity--failed{color:#ff8f85}.knowledge-admin-theme .nhsuk-footer{background-color:#1c1c1a;border-top:4px solid #007f3b;color:#fff}.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme .nhsuk-footer__list-item-link,.knowledge-admin-theme .nhsuk-footer__list-item-link:visited,.knowledge-admin-theme .nhsuk-footer__list-item-link:hover{color:#fff}.knowledge-admin-theme .nhsuk-footer__list-item-link:focus{color:#212b32}.knowledge-admin-theme .nhsuk-footer__list{margin-bottom:16px}.knowledge-view-list{list-style:none;margin:0 0 24px;padding:0}.knowledge-view-list-heading{margin-top:24px;margin-bottom:4px}.knowledge-view-list li{border-top:1px solid #e3e1d9;padding:8px 0}.knowledge-view-list li:last-child{border-bottom:1px solid #e3e1d9}.knowledge-view-list .knowledge-note{display:block;margin:2px 0 0}.knowledge-card-grid{--card-min: 260px;--card-fit: auto-fit;display:grid;gap:16px;grid-template-columns:repeat(var(--card-fit), minmax(var(--card-min), 1fr));margin-bottom:32px}.knowledge-card-grid .knowledge-card{margin-bottom:0;max-width:none}.knowledge-card--compact{display:flex;flex-direction:column;padding:16px}.knowledge-card--compact .knowledge-card__meta:last-child{margin-top:auto;padding-top:8px}.knowledge-linked-list{font-size:.875rem;margin:0}.knowledge-linked-list li{margin-bottom:6px;padding:0}.knowledge-linked-list li:last-child{margin-bottom:0}.knowledge-linked-list a{text-decoration:none}.knowledge-linked-list a:hover,.knowledge-linked-list a:focus{text-decoration:underline}.knowledge-admin-theme .knowledge-card__statement{font-size:1rem;font-weight:400;line-height:1.4;margin:0 0 12px}.knowledge-admin-theme .knowledge-card__statement a{text-decoration:none}.knowledge-admin-theme .knowledge-card__statement a:hover,.knowledge-admin-theme .knowledge-card__statement a:focus{text-decoration:underline}.knowledge-card-grid--wide{--card-min: 380px}.knowledge-card__tags{margin-bottom:8px}.knowledge-card__details{margin-bottom:12px}.knowledge-card__details .nhsuk-details__text{font-size:.875rem}.knowledge-connection-list a{text-decoration:none}.knowledge-connection-list a:hover,.knowledge-connection-list a:focus{text-decoration:underline}.knowledge-connection-list li{margin-bottom:8px}.knowledge-flowmap{margin:0 0 32px;overflow-x:auto}.knowledge-flowmap__svg{display:block;min-width:860px;width:100%;height:auto}.knowledge-flowmap__flow{fill:none;stroke:#00726b;stroke-opacity:.22;stroke-linecap:round}.knowledge-flowmap__flow--aside{stroke-dasharray:3 5;stroke-opacity:.4;stroke-width:2 !important}.knowledge-flowmap__flow:hover{stroke-opacity:.55}.knowledge-flowmap__box{fill:#fff;stroke:#adb4b8}.knowledge-flowmap__label{fill:#1c1c1a;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;font-weight:600}.knowledge-flowmap__count{fill:#4c6272;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px}.knowledge-flowlist{list-style:none;margin:0;padding:0}.knowledge-flowlist__row{align-items:center;border-top:1px solid #e3e1d9;display:grid;gap:16px;grid-template-columns:minmax(220px, 20rem) 1fr 3rem;padding:6px 0}.knowledge-flowlist__row:last-child{border-bottom:1px solid #e3e1d9}.knowledge-flowlist__phrase{color:#706f68;font-style:italic}.knowledge-flowlist__bar{background:#f0efe9;display:block;height:10px}.knowledge-flowlist__bar span{background:#00726b;border-radius:0 4px 4px 0;display:block;height:100%;min-width:2px}.knowledge-flowlist__count{font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:14px;text-align:right}@media(max-width: 40em){.knowledge-flowlist__row{grid-template-columns:1fr 3rem}.knowledge-flowlist__bar{display:none}}.knowledge-orphan-heading{margin-bottom:8px}.knowledge-orphan-heading+.knowledge-card-grid{margin-bottom:24px}.knowledge-admin-theme .knowledge-card__statement--only{margin-bottom:0}.knowledge-card-grid--fill{--card-fit: auto-fill}.knowledge-screen-preview{--preview-width: 1280px;--preview-height: 820px;--preview-scale: 0.28;margin:0 0 12px}.knowledge-screen-preview__frame{background:#fff;border:1px solid #e3e1d9;border-radius:3px;height:calc(var(--preview-height)*var(--preview-scale));overflow:hidden;position:relative;width:calc(var(--preview-width)*var(--preview-scale));max-width:100%}.knowledge-screen-preview__frame iframe{border:0;height:var(--preview-height);left:0;pointer-events:none;position:absolute;top:0;transform:scale(var(--preview-scale));transform-origin:0 0;width:var(--preview-width)}.knowledge-screen-preview figcaption{align-items:baseline;display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}.knowledge-screen-preview figcaption code{color:#706f68;font-size:12px}.knowledge-screen-preview--detail{--preview-scale: 0.5}.knowledge-screen-preview--inline{--preview-scale: 0.18}.knowledge-screen-preview--absent{background:#f6f5f2;border:1px dashed #d8dde0;border-radius:3px;padding:12px}@media print{.knowledge-screen-preview__frame{display:none}}.knowledge-screen-preview-row{display:flex;flex-wrap:wrap;gap:16px}.knowledge-template__command{background:#f6f5f2;border:1px solid #e3e1d9;border-radius:3px;display:block;font-size:13px;margin-top:4px;overflow-x:auto;padding:6px 8px;white-space:nowrap}
|
|
1
|
+
.knowledge-admin-theme{background:#f6f5f2;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif}.knowledge-admin-theme .nhsuk-header{background:#1c1c1a}.knowledge-admin-theme .nhsuk-header__service-logo,.knowledge-admin-theme .nhsuk-header__service-logo:hover,.knowledge-admin-theme .nhsuk-header__service-logo:visited{color:#fff}.knowledge-admin-theme .nhsuk-header__logo{fill:currentcolor}.knowledge-admin-theme .nhsuk-header__service-name{color:#fff}.knowledge-admin-theme .nhsuk-header__service-logo:focus{color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}.knowledge-admin-theme .nhsuk-header__container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-header__container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme h1,.knowledge-admin-theme h2,.knowledge-admin-theme h3,.knowledge-admin-theme h4{font-weight:600;letter-spacing:-0.01em}.knowledge-admin-theme .nhsuk-caption-l{color:#706f68;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.knowledge-admin-theme a{color:#00726b}.knowledge-admin-theme .nhsuk-back-link,.knowledge-admin-theme .nhsuk-back-link__icon{color:#00726b}.knowledge-admin-theme .knowledge-card,.knowledge-admin-theme .knowledge-section,.knowledge-admin-theme .knowledge-blueprint-step,.knowledge-admin-theme .knowledge-linked-block{background:#fff;border-color:#e3e1d9;border-radius:3px;box-shadow:none}.knowledge-admin-theme .knowledge-card__meta,.knowledge-admin-theme .knowledge-muted{color:#8c8a80;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;text-transform:uppercase}.knowledge-admin-theme .knowledge-note{color:#626058;font-size:15px;line-height:1.4;margin-bottom:8px}.knowledge-admin-theme .nhsuk-button{background:#1c1c1a;border-radius:2px}.knowledge-admin-theme .nhsuk-button--secondary{background:rgba(0,0,0,0);border-color:#1c1c1a;color:#1c1c1a}.knowledge-admin-theme .nhsuk-tag{border-radius:2px}.knowledge-admin-theme code{background:#e6f6f5;font-family:ui-monospace,"SF Mono",Consolas,monospace}.knowledge-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));gap:16px;margin-top:32px}.knowledge-list{display:grid;gap:16px}.knowledge-card,.knowledge-section,.knowledge-blueprint-step{border:1px solid #d8dde0;padding:24px;margin-bottom:24px;background:#fff}.knowledge-card,.knowledge-linked-block,.knowledge-timeline__item,.knowledge-admin-theme .nhsuk-lede-text{max-width:70ch}.knowledge-section>p,.knowledge-admin-theme .nhsuk-list--bullet,.knowledge-admin-theme .nhsuk-list--number{max-width:70ch}.knowledge-card__meta{color:#4c6272;font-size:16px;margin-bottom:8px}.knowledge-timeline{list-style:none;padding-left:0}.knowledge-timeline__item{border-left:4px solid #005eb8;padding-left:24px;margin-bottom:32px}.knowledge-admin-theme .knowledge-timeline__item{border-left-color:#00726b}.knowledge-blueprint-step__header{align-items:flex-start;display:flex;justify-content:space-between;gap:16px}.knowledge-lane{border-top:1px solid #d8dde0;display:grid;grid-template-columns:220px minmax(0, 1fr);gap:24px;padding:16px 0}.knowledge-lane[hidden]{display:none}.knowledge-lane__label h3{font-size:16px;margin:0}.knowledge-lane__content{max-width:70ch}.knowledge-lane__content>:last-child{margin-bottom:0}.knowledge-boundary{border-top:2px dashed #005eb8;color:#005eb8;font-size:14px;font-weight:700;letter-spacing:.04em;padding-top:8px;text-transform:uppercase}.knowledge-admin-theme .knowledge-boundary{border-top-color:#00726b;color:#00726b}.knowledge-tagged-item{border-left:4px solid #768692;margin-bottom:8px;padding:8px 12px;background:#f0f4f5}.knowledge-tagged-item strong{display:block;font-size:14px}.knowledge-tagged-item--high{border-left-color:#d5281b;background:#fbeae5}.knowledge-tagged-item--medium{border-left-color:#ffb81c;background:#fff9e6}.knowledge-admin-theme .knowledge-tagged-item--high{border-left-color:#8e5300;background:#fdf3e6}.knowledge-admin-theme .knowledge-tagged-item--medium{border-left-color:#ed8b00;background:#fdf3e6}.knowledge-linked-block{border-top:1px solid #d8dde0;padding-top:24px;margin-top:24px}.knowledge-linked-block:first-of-type{border-top:0;padding-top:0;margin-top:0}.knowledge-linked-block__detail{background:#f0f4f5;margin:24px 0;padding:16px}.knowledge-graph-summary{display:grid;grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));gap:12px;margin:24px 0}.knowledge-graph-summary div{background:#f0f4f5;border-left:4px solid #005eb8;padding:12px}.knowledge-admin-theme .knowledge-graph-summary div{background:#e6f6f5;border-left-color:#00726b}.knowledge-graph-summary strong,.knowledge-graph-summary span{display:block}.knowledge-graph-summary strong{font-size:28px;line-height:1}.knowledge-graph-summary span{color:#4c6272;font-size:14px;margin-top:4px}.knowledge-graph{display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:12px;margin-top:24px}.knowledge-graph__node{border:1px solid #d8dde0;border-top:4px solid #768692;padding:12px}.knowledge-graph__node strong,.knowledge-graph__node span{display:block}.knowledge-graph__node strong{color:#4c6272;font-size:14px;margin-bottom:4px}.knowledge-graph__node span{font-size:16px}.knowledge-graph__node--user{border-top-color:#005eb8}.knowledge-graph__node--scenario{border-top-color:#d5281b}.knowledge-graph__node--need{border-top-color:#007f3b}.knowledge-graph__node--evidence{border-top-color:#7c2855}.knowledge-admin-theme .knowledge-graph__node--scenario{border-top-color:#330072}.knowledge-admin-theme .knowledge-graph__node--need{border-top-color:#006747}.knowledge-graph__node--journey,.knowledge-graph__node--screen,.knowledge-graph__node--decision{border-top-color:#ffb81c}.knowledge-edge-list{display:grid;gap:8px}.knowledge-edge-list li{background:#f0f4f5;display:grid;grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);gap:12px;padding:12px}.knowledge-edge-list span{color:#4c6272;font-size:14px;font-weight:700;text-transform:uppercase}.knowledge-trace-timeline,.knowledge-trace-children{list-style:none;margin:0;padding-left:0}.knowledge-trace-timeline{position:relative}.knowledge-trace-timeline::before{background:#e3e1d9;bottom:0;content:"";left:14px;position:absolute;top:8px;width:2px}.knowledge-trace-group,.knowledge-trace-item{position:relative}.knowledge-trace-group{padding-left:48px}.knowledge-trace-group__content{margin-bottom:24px}.knowledge-trace-group__content h3{margin-bottom:16px}.knowledge-trace-children{border-left:2px solid #e3e1d9;display:grid;gap:12px;margin-top:12px;padding-left:22px}.knowledge-trace-group__content>.knowledge-trace-children{margin-top:0}.knowledge-trace-item{padding-left:0}.knowledge-trace-item__marker{background:#fff;border:2px solid #00726b;border-radius:50%;height:11px;left:-28.5px;position:absolute;top:16px;width:11px}.knowledge-trace-children .knowledge-trace-children .knowledge-trace-item__marker{border-color:#adb4b8}.knowledge-trace-item__content{background:#fff;border:1px solid #e3e1d9;border-radius:3px;max-width:70ch;padding:12px 16px}.knowledge-trace-item--selected{padding-left:48px}.knowledge-trace-item--selected .knowledge-trace-item__marker{background:#00726b;border-color:#00726b;height:16px;left:7px;top:18px;width:16px}.knowledge-trace-item--selected .knowledge-trace-item__content{border-color:#00726b;border-left-width:4px;margin:8px 0 32px;max-width:none}.knowledge-trace-item__heading{font-size:18px;margin:0 0 4px}.knowledge-trace-item__heading a{text-decoration:none}.knowledge-trace-item__heading a:hover,.knowledge-trace-item__heading a:focus{text-decoration:underline}.knowledge-trace-item--selected .knowledge-trace-item__heading{font-size:20px}.knowledge-trace-item__type{color:#706f68;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;margin:0;text-transform:uppercase}.knowledge-trace-item__relationship{color:#4c6272;font-size:14px;margin:0 0 2px}.knowledge-muted{color:#4c6272}.knowledge-confidence-tag{display:inline-block;padding:2px 8px;font-size:13px;font-weight:700;border-radius:10px}.knowledge-confidence-tag--high{color:#00726b;background:#e6f6f5}.knowledge-confidence-tag--medium{color:#00758f;background:#e6f6fa}.knowledge-confidence-tag--low{color:#4c6272;background:#f0f4f5}.knowledge-matrix-wrap{overflow-x:auto}.knowledge-matrix{border-collapse:collapse;min-width:1200px;width:100%}.knowledge-matrix th,.knowledge-matrix td{border:1px solid #e3e1d9;padding:12px;text-align:left;vertical-align:top}.knowledge-matrix thead th,.knowledge-matrix tbody th{background:#fff}.knowledge-matrix thead th{border-bottom:2px solid #adb4b8}.knowledge-matrix tbody th{border-right:2px solid #adb4b8}.knowledge-matrix__boundary td{border-top:2px dashed #005eb8;color:#005eb8;font-weight:700;text-transform:uppercase}.knowledge-admin-theme .knowledge-matrix__boundary td{border-top-color:#00726b;color:#00726b}.knowledge-blueprint-controls{align-items:flex-start;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:16px 24px;margin-bottom:24px;padding:12px 24px;position:sticky;top:0;z-index:2}.knowledge-blueprint-controls__lenses{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-controls__legend{font-size:14px;font-weight:700;margin:0 0 6px;width:100%}.knowledge-lens-btn{padding:6px 14px;font:inherit;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:20px;cursor:pointer}.knowledge-lens-btn[aria-pressed=true]{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-lens-btn{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-lens-btn[aria-pressed=true]{background:#00726b;color:#fff}.knowledge-blueprint-controls__lanes{display:flex;flex-wrap:wrap;gap:8px 16px;padding:0;margin:0;border:0}.knowledge-blueprint-controls__lanes legend{font-size:14px;font-weight:700;margin-bottom:6px;width:100%}.knowledge-lane-toggle{display:inline-flex;align-items:center;gap:4px;font-size:14px}.knowledge-blueprint-layout{display:grid;grid-template-columns:72px 1fr;gap:24px}.knowledge-blueprint-minimap{position:sticky;top:calc(var(--blueprint-controls-height, 137px) + 16px);align-self:start}.knowledge-blueprint-minimap ul{position:relative;padding:0;margin:0;list-style:none}.knowledge-blueprint-minimap ul::before{position:absolute;top:16px;bottom:16px;left:15px;width:2px;content:"";background:#d8dde0}.knowledge-blueprint-minimap li{position:relative;margin-bottom:16px}.knowledge-blueprint-minimap a{position:relative;display:block}.knowledge-blueprint-minimap__marker{display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-weight:700;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:50%}.knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-blueprint-minimap__marker{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{background:#00726b}.knowledge-blueprint-step{scroll-margin-top:88px}.knowledge-flow-diagram{overflow-x:auto;padding:24px;margin-bottom:24px;background:#fff;border:1px solid #d8dde0}.knowledge-flow-source{overflow-x:auto;white-space:pre}.knowledge-admin-theme .knowledge-flow-diagram{border-color:#e3e1d9;border-radius:3px}@media(max-width: 48.0525em){.knowledge-blueprint-layout{display:block}.knowledge-blueprint-minimap{position:static;margin-bottom:16px}.knowledge-blueprint-minimap ul{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-minimap ul::before{display:none}.knowledge-blueprint-minimap li{margin-bottom:0}.knowledge-lane{grid-template-columns:1fr;gap:8px}.knowledge-edge-list li{grid-template-columns:1fr}.knowledge-trace-timeline::before{left:9px}.knowledge-trace-group,.knowledge-trace-item{padding-left:36px}.knowledge-trace-item__marker{height:16px;left:1px;width:16px}}.knowledge-admin-theme .knowledge-empty-state{max-width:70ch;padding:24px;margin-bottom:24px;background:#fff;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-empty-state h2{margin-top:0}.knowledge-admin-theme .knowledge-empty-state p:last-child{margin-bottom:0}.knowledge-admin-theme .knowledge-doc{max-width:76ch;padding:24px 32px;background:#fff}.knowledge-admin-theme .knowledge-doc h1{margin-top:0}.knowledge-admin-theme .knowledge-doc h2,.knowledge-admin-theme .knowledge-doc h3{margin-top:32px}.knowledge-admin-theme .knowledge-doc pre{padding:16px;overflow-x:auto;background:#f6f5f2;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-doc code{font-size:15px}.knowledge-admin-theme .knowledge-doc table{width:100%;margin-bottom:24px;border-collapse:collapse}.knowledge-admin-theme .knowledge-doc th,.knowledge-admin-theme .knowledge-doc td{padding:8px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #d8dde0}.knowledge-find{align-items:flex-end;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:0 24px;margin-bottom:8px;padding:24px 24px 8px}.knowledge-find .nhsuk-form-group{flex:1 1 14rem;margin-bottom:16px;min-width:0}.knowledge-find .nhsuk-form-group:first-child{flex:2 1 20rem}.knowledge-find .nhsuk-form-group .nhsuk-label{margin-bottom:4px}.knowledge-find .nhsuk-select,.knowledge-find .nhsuk-input{max-width:100%;width:100%}.knowledge-find .nhsuk-button{flex:0 0 auto;margin-bottom:16px}.knowledge-find--compact .nhsuk-form-group,.knowledge-find--compact .nhsuk-form-group:first-child{flex:1 1 16rem;max-width:26rem}.knowledge-find__count{margin-bottom:24px;color:#4c6272}@media(max-width: 48em){.knowledge-find{display:block}}.knowledge-nav{background-color:#fff;border-bottom:1px solid #d8dde0;margin-bottom:24px}.knowledge-nav__list{display:flex;gap:4px;margin:0;padding:0;list-style:none;overflow-x:auto;-webkit-overflow-scrolling:touch}.knowledge-nav__item{margin:0;flex:0 0 auto}.knowledge-nav__link{display:block;padding:12px 12px;text-decoration:none;color:#4c6272;font-weight:600;white-space:nowrap;border-bottom:4px solid rgba(0,0,0,0)}.knowledge-nav__link:hover{color:#00726b;background-color:#f0f4f5}.knowledge-nav__link:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32;text-decoration:none}.knowledge-nav__link--current{color:#00726b;border-bottom-color:#00726b}.knowledge-round-status{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-bottom:8px}.knowledge-status{margin-bottom:32px}.knowledge-status__grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(13rem, 1fr));gap:16px}.knowledge-stat{display:flex;flex-direction:column;gap:4px;padding:16px 20px;background-color:#fff;border:1px solid #d8dde0;border-left:4px solid #768692;border-radius:4px;text-decoration:none}.knowledge-stat:hover{border-color:#00726b;border-left-color:#00726b;background-color:#f0f4f5}.knowledge-stat:focus{outline:3px solid rgba(0,0,0,0);background-color:#ffeb3b;box-shadow:0 0 0 4px #212b32;text-decoration:none}.knowledge-stat--waiting{border-left-color:#ed8b00}.knowledge-stat--done{border-left-color:#007f3b}.knowledge-stat--neutral{border-left-color:#005eb8}.knowledge-stat__value{font-size:2rem;line-height:1.1;font-weight:700;color:#212b32}.knowledge-stat__label{font-weight:600;color:#00726b;text-decoration:underline}.knowledge-stat__detail{font-size:.875rem;color:#4c6272}.knowledge-nav__inner{display:flex;align-items:stretch;gap:16px}.knowledge-nav__wordmark{display:flex;align-items:center;flex:0 0 auto;padding-right:24px;border-right:1px solid #d8dde0;color:#212b32;font-weight:700;text-decoration:none;white-space:nowrap}.knowledge-nav__wordmark:hover{color:#00726b}.knowledge-nav__wordmark:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}@media(max-width: 40em){.knowledge-nav__wordmark{display:none}}.knowledge-breadcrumb{margin-top:12px;margin-bottom:0;padding:0;background:none}.knowledge-breadcrumb .nhsuk-breadcrumb__list{margin-bottom:0}.knowledge-breadcrumb [aria-current=page]{color:#4c6272}.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:12px}@media(min-width: 40.0625em){.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:16px}}.knowledge-integrity{align-items:center;color:#d8dde0;display:flex;gap:8px;margin-bottom:0}.knowledge-integrity__icon{fill:#4caf7d;flex-shrink:0;height:20px;width:20px}.knowledge-integrity--failed{color:#ff8f85}.knowledge-admin-theme .nhsuk-footer{background-color:#1c1c1a;border-top:4px solid #007f3b;color:#fff}.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme .nhsuk-footer__list-item-link,.knowledge-admin-theme .nhsuk-footer__list-item-link:visited,.knowledge-admin-theme .nhsuk-footer__list-item-link:hover{color:#fff}.knowledge-admin-theme .nhsuk-footer__list-item-link:focus{color:#212b32}.knowledge-admin-theme .nhsuk-footer__list{margin-bottom:16px}.knowledge-view-list{list-style:none;margin:0 0 24px;padding:0}.knowledge-view-list-heading{margin-top:24px;margin-bottom:4px}.knowledge-view-list li{border-top:1px solid #e3e1d9;padding:8px 0}.knowledge-view-list li:last-child{border-bottom:1px solid #e3e1d9}.knowledge-view-list .knowledge-note{display:block;margin:2px 0 0}.knowledge-card-grid{--card-min: 260px;--card-fit: auto-fit;display:grid;gap:16px;grid-template-columns:repeat(var(--card-fit), minmax(var(--card-min), 1fr));margin-bottom:32px}.knowledge-card-grid .knowledge-card{margin-bottom:0;max-width:none}.knowledge-card--compact{display:flex;flex-direction:column;padding:16px}.knowledge-card--compact .knowledge-card__meta:last-child{margin-top:auto;padding-top:8px}.knowledge-admin-theme .knowledge-card__label{color:#626058;font-size:13px;font-weight:600;letter-spacing:.01em;line-height:1.3;margin:12px 0 4px}.knowledge-linked-list{font-size:.875rem;list-style:none;margin:0;padding:0}.knowledge-linked-list li{align-items:baseline;display:flex;gap:8px;margin-bottom:6px;padding-left:14px;position:relative}.knowledge-linked-list li::before{background:#8c8a80;border-radius:50%;content:"";height:4px;left:2px;position:absolute;top:.5em;width:4px}.knowledge-linked-list li>a{flex:1 1 auto;min-width:0}.knowledge-linked-list .knowledge-confidence-tag{flex:0 0 auto}.knowledge-linked-list li:last-child{margin-bottom:0}.knowledge-linked-list a{text-decoration:none}.knowledge-linked-list a:hover,.knowledge-linked-list a:focus{text-decoration:underline}.knowledge-admin-theme .knowledge-card__statement{font-size:1rem;font-weight:400;line-height:1.4;margin:0 0 12px}.knowledge-admin-theme .knowledge-card__statement a{text-decoration:none}.knowledge-admin-theme .knowledge-card__statement a:hover,.knowledge-admin-theme .knowledge-card__statement a:focus{text-decoration:underline}.knowledge-card-grid--wide{--card-min: 380px}.knowledge-card__tags{margin-bottom:8px}.knowledge-card__details{margin-bottom:12px}.knowledge-card__details .nhsuk-details__text{font-size:.875rem}.knowledge-connection-list a{text-decoration:none}.knowledge-connection-list a:hover,.knowledge-connection-list a:focus{text-decoration:underline}.knowledge-connection-list li{margin-bottom:8px}.knowledge-flowmap{margin:0 0 32px;overflow-x:auto}.knowledge-flowmap__svg{display:block;min-width:860px;width:100%;height:auto}.knowledge-flowmap__flow{fill:none;stroke:#00726b;stroke-opacity:.22;stroke-linecap:round}.knowledge-flowmap__flow--aside{stroke-dasharray:3 5;stroke-opacity:.4;stroke-width:2 !important}.knowledge-flowmap__flow:hover{stroke-opacity:.55}.knowledge-flowmap__box{fill:#fff;stroke:#adb4b8}.knowledge-flowmap__label{fill:#1c1c1a;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;font-weight:600}.knowledge-flowmap__count{fill:#4c6272;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px}.knowledge-flowlist{list-style:none;margin:0;padding:0}.knowledge-flowlist__row{align-items:center;border-top:1px solid #e3e1d9;display:grid;gap:16px;grid-template-columns:minmax(220px, 20rem) 1fr 3rem;padding:6px 0}.knowledge-flowlist__row:last-child{border-bottom:1px solid #e3e1d9}.knowledge-flowlist__phrase{color:#706f68;font-style:italic}.knowledge-flowlist__bar{background:#f0efe9;display:block;height:10px}.knowledge-flowlist__bar span{background:#00726b;border-radius:0 4px 4px 0;display:block;height:100%;min-width:2px}.knowledge-flowlist__count{font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:14px;text-align:right}@media(max-width: 40em){.knowledge-flowlist__row{grid-template-columns:1fr 3rem}.knowledge-flowlist__bar{display:none}}.knowledge-orphan-heading{margin-bottom:8px}.knowledge-orphan-heading+.knowledge-card-grid{margin-bottom:24px}.knowledge-admin-theme .knowledge-card__statement--only{margin-bottom:0}.knowledge-card-grid--fill{--card-fit: auto-fill}.knowledge-screen-preview{--preview-width: 1280px;--preview-height: 820px;--preview-scale: 0.28;margin:0 0 12px}.knowledge-screen-preview__frame{background:#fff;border:1px solid #e3e1d9;border-radius:3px;height:calc(var(--preview-height)*var(--preview-scale));overflow:hidden;position:relative;width:calc(var(--preview-width)*var(--preview-scale));max-width:100%}.knowledge-screen-preview__frame iframe{border:0;height:var(--preview-height);left:0;pointer-events:none;position:absolute;top:0;transform:scale(var(--preview-scale));transform-origin:0 0;width:var(--preview-width)}.knowledge-screen-preview figcaption{align-items:baseline;display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}.knowledge-screen-preview figcaption code{color:#706f68;font-size:12px}.knowledge-screen-preview--detail{--preview-scale: 0.5}.knowledge-screen-preview--inline{--preview-scale: 0.18}.knowledge-screen-preview--absent{background:#f6f5f2;border:1px dashed #d8dde0;border-radius:3px;padding:12px}@media print{.knowledge-screen-preview__frame{display:none}}.knowledge-screen-preview-row{display:flex;flex-wrap:wrap;gap:16px}.knowledge-template__command{background:#f6f5f2;border:1px solid #e3e1d9;border-radius:3px;display:block;font-size:13px;margin-top:4px;overflow-x:auto;padding:6px 8px;white-space:nowrap}
|
package/assets/hippocampus.scss
CHANGED
|
@@ -1416,13 +1416,61 @@
|
|
|
1416
1416
|
// evidence under a need, the needs under a scenario. Small and tight, because
|
|
1417
1417
|
// the point is WHICH records are connected - reading one is what its own page
|
|
1418
1418
|
// is for, one click away.
|
|
1419
|
+
// A label for a list inside a card, not a heading competing with one.
|
|
1420
|
+
//
|
|
1421
|
+
// nhsuk-heading-xs set "Evidence behind it" at nearly the weight and size of
|
|
1422
|
+
// the need statement above it, so the card read as two headings of equal rank
|
|
1423
|
+
// when one of them is the content and the other is a signpost to it. Still a
|
|
1424
|
+
// real heading element for structure - it just stops shouting.
|
|
1425
|
+
.knowledge-admin-theme .knowledge-card__label {
|
|
1426
|
+
color: #626058;
|
|
1427
|
+
font-size: 13px;
|
|
1428
|
+
font-weight: 600;
|
|
1429
|
+
letter-spacing: 0.01em;
|
|
1430
|
+
line-height: 1.3;
|
|
1431
|
+
margin: 12px 0 4px;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1419
1434
|
.knowledge-linked-list {
|
|
1420
1435
|
font-size: 0.875rem;
|
|
1436
|
+
list-style: none;
|
|
1421
1437
|
margin: 0;
|
|
1438
|
+
padding: 0;
|
|
1422
1439
|
|
|
1440
|
+
// A bullet, because without one these read as continuation prose rather than
|
|
1441
|
+
// as a list of separate records - which is exactly how the evidence under a
|
|
1442
|
+
// need was being read. Drawn rather than inherited: the items are flex rows,
|
|
1443
|
+
// and `list-style` does not survive that.
|
|
1423
1444
|
li {
|
|
1445
|
+
align-items: baseline;
|
|
1446
|
+
display: flex;
|
|
1447
|
+
gap: 8px;
|
|
1424
1448
|
margin-bottom: 6px;
|
|
1425
|
-
padding:
|
|
1449
|
+
padding-left: 14px;
|
|
1450
|
+
position: relative;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
li::before {
|
|
1454
|
+
background: #8c8a80;
|
|
1455
|
+
border-radius: 50%;
|
|
1456
|
+
content: "";
|
|
1457
|
+
height: 4px;
|
|
1458
|
+
left: 2px;
|
|
1459
|
+
position: absolute;
|
|
1460
|
+
top: 0.5em;
|
|
1461
|
+
width: 4px;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
// The title takes the slack and wraps inside its own column; the tag keeps
|
|
1465
|
+
// its width. Inline, a long title pushed the tag onto a line of its own and
|
|
1466
|
+
// one item then looked like two.
|
|
1467
|
+
li > a {
|
|
1468
|
+
flex: 1 1 auto;
|
|
1469
|
+
min-width: 0;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
.knowledge-confidence-tag {
|
|
1473
|
+
flex: 0 0 auto;
|
|
1426
1474
|
}
|
|
1427
1475
|
|
|
1428
1476
|
li:last-child {
|
package/docs/agent-roadmap.md
CHANGED
|
@@ -18,7 +18,7 @@ Use these as the baseline before changing the agent model:
|
|
|
18
18
|
## Intended End State
|
|
19
19
|
|
|
20
20
|
- Copilot-first discovery through `.github/copilot-instructions.md`, `.github/instructions/` and `.github/agents/`.
|
|
21
|
-
- Portable task recipes through `.github/skills/skills.json` and
|
|
21
|
+
- Portable task recipes through `.github/skills/skills.json` and `<name>/SKILL.md` files.
|
|
22
22
|
- Review-first ingestion: script extracts -> skill structures -> human reviews -> promotion validates.
|
|
23
23
|
- Source-first editing: `hippocampus/source/` stays canonical and `artefacts/` stays generated only.
|
|
24
24
|
- Traceability stays visible from research and project context through needs, journeys, screens and decisions.
|
|
@@ -55,7 +55,7 @@ The original prompt guardrails describe staged workflows that are still slightly
|
|
|
55
55
|
**Likely files**
|
|
56
56
|
|
|
57
57
|
- `.github/skills/skills.json`
|
|
58
|
-
- new
|
|
58
|
+
- new `<name>/SKILL.md` files in `.github/skills/`
|
|
59
59
|
- `.github/skills/README.md`
|
|
60
60
|
- `docs/custom-agents-usage.md`
|
|
61
61
|
|
|
@@ -6,7 +6,7 @@ Task recipes now live in `.github/skills/`. Use role agents for delegation, then
|
|
|
6
6
|
|
|
7
7
|
For old prompt lookups, use `.github/skills/COVERAGE-MATRIX.md` to map archived prompt names to the current skill and role-agent entrypoints.
|
|
8
8
|
|
|
9
|
-
After changing the skill catalog or any
|
|
9
|
+
After changing the skill catalog or any `<name>/SKILL.md`, run `npx hippocampus skills validate`.
|
|
10
10
|
|
|
11
11
|
For cross-runtime examples, see `.github/skills/examples/`.
|
|
12
12
|
|
|
@@ -93,7 +93,7 @@ the records it could become, and writes a review pack to
|
|
|
93
93
|
to `hippocampus/source/`.
|
|
94
94
|
|
|
95
95
|
Work down the tiers, take Tier 1 into the inbox first, and follow the round workflow
|
|
96
|
-
below one round at a time. `.github/skills/triage-research-corpus.
|
|
96
|
+
below one round at a time. `.github/skills/triage-research-corpus/SKILL.md` is the
|
|
97
97
|
skill entry point.
|
|
98
98
|
|
|
99
99
|
## Research Round Workflow
|
|
@@ -113,7 +113,7 @@ skill entry point.
|
|
|
113
113
|
hippocampus/imports/research/<draft-id>.json
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
4. Ask an AI coding agent to use `.github/agents/ingestion-curator.md` and follow `.github/skills/structure-research-draft.
|
|
116
|
+
4. Ask an AI coding agent to use `.github/agents/ingestion-curator.md` and follow `.github/skills/structure-research-draft/SKILL.md` against the draft.
|
|
117
117
|
5. Review the changed JSON and the review Markdown together.
|
|
118
118
|
6. Run a dry-run promotion:
|
|
119
119
|
|
|
@@ -152,7 +152,7 @@ Use project context for overview material such as project purpose, pilot scope,
|
|
|
152
152
|
hippocampus/imports/project/<draft-id>.json
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
-
4. Ask an AI coding agent to use `.github/agents/ingestion-curator.md` and follow `.github/skills/structure-project-context-draft.
|
|
155
|
+
4. Ask an AI coding agent to use `.github/agents/ingestion-curator.md` and follow `.github/skills/structure-project-context-draft/SKILL.md` against the draft.
|
|
156
156
|
5. Review the changed JSON and the review Markdown together.
|
|
157
157
|
6. Run a dry-run promotion:
|
|
158
158
|
|
|
@@ -213,11 +213,11 @@ For the step-by-step team workflow, use `docs/repeatable-research-round-ingestio
|
|
|
213
213
|
|
|
214
214
|
The active skill entry points are:
|
|
215
215
|
|
|
216
|
-
- `.github/skills/ingest-research-round.
|
|
217
|
-
- `.github/skills/ingest-project-context.
|
|
218
|
-
- `.github/skills/structure-research-draft.
|
|
219
|
-
- `.github/skills/review-research-import-draft.
|
|
220
|
-
- `.github/skills/map-research-to-graph.
|
|
216
|
+
- `.github/skills/ingest-research-round/SKILL.md`
|
|
217
|
+
- `.github/skills/ingest-project-context/SKILL.md`
|
|
218
|
+
- `.github/skills/structure-research-draft/SKILL.md`
|
|
219
|
+
- `.github/skills/review-research-import-draft/SKILL.md`
|
|
220
|
+
- `.github/skills/map-research-to-graph/SKILL.md`
|
|
221
221
|
|
|
222
222
|
The skills should not promote drafts. Promotion remains a deliberate command so source changes stay reviewable and auditable.
|
|
223
223
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hippo-digital/hippocampus",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A design-knowledge base for NHS Prototype Kit projects: research, insights, needs, journeys and screens, traceable end to end.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -47,6 +47,77 @@ function hash (text) {
|
|
|
47
47
|
return crypto.createHash('sha256').update(text).digest('hex').slice(0, 16)
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Files to install, as paths relative to the tree root.
|
|
52
|
+
*
|
|
53
|
+
* Skills are `<name>/SKILL.md` rather than `<name>.skill.md` because that is
|
|
54
|
+
* what the Agent Skills standard specifies and what Copilot, Claude and the
|
|
55
|
+
* rest actually discover. A flat file in `.github/skills/` is read by nobody
|
|
56
|
+
* unless an agent has been told its exact path - which is how 21 skills sat in
|
|
57
|
+
* a host being loaded only when somebody named them.
|
|
58
|
+
*
|
|
59
|
+
* One level of nesting is enough for the standard, and going deeper would mean
|
|
60
|
+
* a skill could hide another skill.
|
|
61
|
+
*/
|
|
62
|
+
function listSourceFiles (dir) {
|
|
63
|
+
const out = []
|
|
64
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
65
|
+
if (entry.isDirectory()) {
|
|
66
|
+
for (const child of fs.readdirSync(path.join(dir, entry.name))) {
|
|
67
|
+
if (/\.(md|json)$/.test(child)) out.push(path.join(entry.name, child))
|
|
68
|
+
}
|
|
69
|
+
continue
|
|
70
|
+
}
|
|
71
|
+
if (/\.(md|json)$/.test(entry.name)) out.push(entry.name)
|
|
72
|
+
}
|
|
73
|
+
return out
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Remove the flat `<name>.skill.md` files a previous version of this command
|
|
78
|
+
* installed, now that the same skills live at `<name>/SKILL.md`.
|
|
79
|
+
*
|
|
80
|
+
* Only files this command wrote and the host has not edited are removed - the
|
|
81
|
+
* manifest records a hash of each, so an edited one is left behind and named
|
|
82
|
+
* instead. Leaving them all would be worse than a tidiness problem: two copies
|
|
83
|
+
* of every skill, one of which no agent can see, and a catalog that points at
|
|
84
|
+
* whichever the host happens to validate.
|
|
85
|
+
*/
|
|
86
|
+
function migrateFlatSkills (targetDir, manifestFiles) {
|
|
87
|
+
const removed = []
|
|
88
|
+
const keptEdited = []
|
|
89
|
+
const stuck = []
|
|
90
|
+
|
|
91
|
+
for (const name of Object.keys(manifestFiles)) {
|
|
92
|
+
if (!name.endsWith('.skill.md')) continue
|
|
93
|
+
const flat = path.join(targetDir, name)
|
|
94
|
+
if (!fs.existsSync(flat)) { delete manifestFiles[name]; continue }
|
|
95
|
+
|
|
96
|
+
if (hash(fs.readFileSync(flat, 'utf8')) !== manifestFiles[name]) {
|
|
97
|
+
keptEdited.push(name)
|
|
98
|
+
continue
|
|
99
|
+
}
|
|
100
|
+
if (!dryRun) {
|
|
101
|
+
// A removal that fails must not abort the upgrade. The files are already
|
|
102
|
+
// installed in their new home by this point, so throwing here would leave
|
|
103
|
+
// the host migrated but with its catalog unmerged and its manifest
|
|
104
|
+
// unwritten - a worse state than a leftover file, and one the next run
|
|
105
|
+
// cannot reason about. Read-only files, a lock on Windows and a mount
|
|
106
|
+
// that refuses unlink all reach this line.
|
|
107
|
+
try {
|
|
108
|
+
fs.rmSync(flat)
|
|
109
|
+
delete manifestFiles[name]
|
|
110
|
+
} catch (error) {
|
|
111
|
+
stuck.push(`${name} (${error.code || error.message})`)
|
|
112
|
+
continue
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
removed.push(name)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return { removed, keptEdited, stuck }
|
|
119
|
+
}
|
|
120
|
+
|
|
50
121
|
function main () {
|
|
51
122
|
const { root } = resolveRoot({ argv })
|
|
52
123
|
const skillsTarget = path.join(root, '.github/skills')
|
|
@@ -87,6 +158,23 @@ function main () {
|
|
|
87
158
|
}
|
|
88
159
|
|
|
89
160
|
if (tree.key === 'files') {
|
|
161
|
+
const migrated = migrateFlatSkills(path.join(root, tree.target), manifest[tree.key])
|
|
162
|
+
if (migrated.removed.length) {
|
|
163
|
+
console.log(` ${dryRun ? 'would remove' : 'removed'} the old flat copies: ${migrated.removed.length}`)
|
|
164
|
+
}
|
|
165
|
+
if (migrated.stuck.length) {
|
|
166
|
+
anySkipped = true
|
|
167
|
+
console.log(' old flat copies that could not be removed:')
|
|
168
|
+
for (const name of migrated.stuck) console.log(` ${name}`)
|
|
169
|
+
console.log(' nothing reads these any more - delete them by hand.')
|
|
170
|
+
}
|
|
171
|
+
if (migrated.keptEdited.length) {
|
|
172
|
+
anySkipped = true
|
|
173
|
+
console.log(' old flat copies left because they have been edited here:')
|
|
174
|
+
for (const name of migrated.keptEdited) console.log(` ${name}`)
|
|
175
|
+
console.log(' nothing reads these any more - keep what you changed, then delete them.')
|
|
176
|
+
}
|
|
177
|
+
|
|
90
178
|
const merged = mergeCatalog(skillsTarget, manifest)
|
|
91
179
|
wroteAnything = wroteAnything || merged.added.length > 0
|
|
92
180
|
console.log(` ${dryRun ? 'would add' : 'added'} to the catalog: ${merged.added.length} skills` +
|
|
@@ -132,8 +220,8 @@ function installTree (sourceDir, targetDir, manifestFiles) {
|
|
|
132
220
|
const kept = []
|
|
133
221
|
const foreign = []
|
|
134
222
|
|
|
135
|
-
for (const name of
|
|
136
|
-
if (name === 'skills.json'
|
|
223
|
+
for (const name of listSourceFiles(sourceDir)) {
|
|
224
|
+
if (name === 'skills.json') continue
|
|
137
225
|
|
|
138
226
|
const to = path.join(targetDir, name)
|
|
139
227
|
const content = fs.readFileSync(path.join(sourceDir, name), 'utf8')
|
|
@@ -157,7 +245,9 @@ function installTree (sourceDir, targetDir, manifestFiles) {
|
|
|
157
245
|
|
|
158
246
|
written.push(name)
|
|
159
247
|
if (!dryRun) {
|
|
160
|
-
|
|
248
|
+
// `to` is <tree>/<skill>/SKILL.md, so make the file's own parent, not
|
|
249
|
+
// just the tree root.
|
|
250
|
+
fs.mkdirSync(path.dirname(to), { recursive: true })
|
|
161
251
|
fs.writeFileSync(to, content)
|
|
162
252
|
}
|
|
163
253
|
manifestFiles[name] = incoming
|