@caddis/cli 0.4.92 → 0.4.94
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/README.md +4 -0
- package/bundles/antigravity-plugin/agents/debug.md +2 -0
- package/bundles/antigravity-plugin/guard_agy.py +6 -2
- package/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/repo_freshness.py +71 -6
- package/bundles/antigravity-plugin/repo_hygiene.py +516 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/caddis_checkout_guard.py +1 -1
- package/bundles/antigravity-plugin/scripts/caddis_finished.py +537 -0
- package/bundles/antigravity-plugin/scripts/caddis_fleet.py +26 -9
- package/bundles/antigravity-plugin/scripts/caddis_guide.json +65 -12
- package/bundles/antigravity-plugin/scripts/caddis_own_cleanup.py +23 -248
- package/bundles/antigravity-plugin/scripts/caddis_preload_review.py +554 -0
- package/bundles/antigravity-plugin/scripts/caddis_repo_tidy.py +240 -0
- package/bundles/antigravity-plugin/scripts/caddis_roadmap_run.py +9 -3
- package/bundles/antigravity-plugin/scripts/caddis_run.py +160 -0
- package/bundles/antigravity-plugin/scripts/caddis_spawn.py +17 -1
- package/bundles/antigravity-plugin/scripts/caddis_tidy.py +12 -0
- package/bundles/antigravity-plugin/scripts/caddis_upstream_check.py +108 -10
- package/bundles/antigravity-plugin/scripts/caddis_worktree_root.py +111 -2
- package/bundles/antigravity-plugin/scripts/setup_project_ai.py +132 -11
- package/bundles/antigravity-plugin/skills/_registry.md +7 -5
- package/bundles/antigravity-plugin/skills/adopt-app/SKILL.md +2 -5
- package/bundles/antigravity-plugin/skills/brainstorming/SKILL.md +232 -40
- package/bundles/antigravity-plugin/skills/brainstorming/builder-check-prompt.md +25 -0
- package/bundles/antigravity-plugin/skills/cloud-phases/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/dashboard-perf-sweep/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/db-diagram/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/explainer-doc/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +7 -1
- package/bundles/antigravity-plugin/skills/fleet-close/SKILL.md +4 -1
- package/bundles/antigravity-plugin/skills/graph-email/SKILL.md +15 -0
- package/bundles/antigravity-plugin/skills/handoff/SKILL.md +9 -2
- package/bundles/antigravity-plugin/skills/implement/SKILL.md +7 -0
- package/bundles/antigravity-plugin/skills/particle-art/SKILL.md +1 -3
- package/bundles/antigravity-plugin/skills/port-to-github/SKILL.md +2 -5
- package/bundles/antigravity-plugin/skills/pr-merge/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/preload-review/SKILL.md +69 -0
- package/bundles/antigravity-plugin/skills/roadmap/SKILL.md +4 -0
- package/bundles/antigravity-plugin/skills/roadmap/assets/plan-resume-prompt.md +6 -5
- package/bundles/antigravity-plugin/skills/ship-merge/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/ship-pr/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/spawn-session/SKILL.md +5 -0
- package/bundles/antigravity-plugin/skills/tdd/SKILL.md +2 -1
- package/bundles/antigravity-plugin/skills/tech-explainer/SKILL.md +2 -6
- package/bundles/antigravity-plugin/skills/usage-review/SKILL.md +2 -0
- package/bundles/antigravity-plugin/skills/using-git-worktrees/SKILL.md +19 -2
- package/bundles/antigravity-plugin/skills/warm-editorial-ui/SKILL.md +1 -1
- package/bundles/antigravity-plugin-extras/plugin.json +1 -1
- package/bundles/antigravity-plugin-extras/skills/_registry.md +3 -2
- package/bundles/antigravity-plugin-extras/skills/building-ai-agent-on-cloudflare/SKILL.md +1 -2
- package/bundles/antigravity-plugin-extras/skills/building-mcp-server-on-cloudflare/SKILL.md +1 -2
- package/bundles/antigravity-plugin-extras/skills/data-contract-pipeline/SKILL.md +1 -1
- package/bundles/antigravity-plugin-extras/skills/graph-email/SKILL.md +53 -0
- package/bundles/antigravity-plugin-extras/skills/graph-email/email.toml.example +44 -0
- package/bundles/antigravity-plugin-extras/skills/graph-email/scripts/send_email.py +432 -0
- package/bundles/antigravity-plugin-extras/skills/responsive-mobile-native/SKILL.md +2 -4
- package/bundles/antigravity-plugin-extras/skills/runner-move/SKILL.md +2 -4
- package/bundles/antigravity-plugin-extras/skills/setup-project-ai/SKILL.md +1 -1
- package/bundles/antigravity-plugin-extras/skills/understand-anything/SKILL.md +2 -5
- package/bundles/codex/.codex/skills/coding/dashboard-perf-sweep/SKILL.md +1 -1
- package/bundles/codex/.codex/skills/data/db-diagram/SKILL.md +1 -1
- package/bundles/codex/.codex/skills/devops/adopt-app/SKILL.md +2 -5
- package/bundles/codex/.codex/skills/devops/port-to-github/SKILL.md +2 -5
- package/bundles/codex/.codex/skills/devops/using-git-worktrees/SKILL.md +19 -2
- package/bundles/codex/.codex/skills/docs/explainer-doc/SKILL.md +1 -1
- package/bundles/codex/.codex/skills/docs/tech-explainer/SKILL.md +2 -6
- package/bundles/codex/.codex/skills/frontend/warm-editorial-ui/SKILL.md +1 -1
- package/bundles/codex/.codex/skills/media/particle-art/SKILL.md +1 -3
- package/bundles/codex/.codex/skills/workflow/brainstorming/SKILL.md +232 -40
- package/bundles/codex/.codex/skills/workflow/brainstorming/builder-check-prompt.md +25 -0
- package/bundles/codex/.codex/skills/workflow/roadmap/SKILL.md +4 -0
- package/bundles/codex/.codex/skills/workflow/roadmap/assets/plan-resume-prompt.md +6 -5
- package/bundles/manifest.json +3 -3
- package/dist/export/assets/export-CMtV-slT.css +1 -0
- package/dist/export/index.html +2 -2
- package/dist/ui/assets/{Activity-DZKPMOeV.js → Activity-BDjet2xd.js} +1 -1
- package/dist/ui/assets/Guide-Czn5sK0f.js +9 -0
- package/dist/ui/assets/Guide-D-Zy4cUT.css +1 -0
- package/dist/ui/assets/{RoadmapTab-DPsiSmIF.js → RoadmapTab-Bd8geyQx.js} +1 -1
- package/dist/ui/assets/index-Bd0Z4jR8.css +1 -0
- package/dist/ui/assets/{index-xl156OCN.js → index-CmngQ8Mk.js} +12 -12
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/export/assets/export-HxTgj3z2.css +0 -1
- package/dist/ui/assets/Guide-5ZFfL6sl.js +0 -9
- package/dist/ui/assets/Guide-Dnsb-TRd.css +0 -1
- package/dist/ui/assets/index-DGlNAmeA.css +0 -1
- /package/dist/export/assets/{export-B7BBDg5I.js → export-DtlDFN4L.js} +0 -0
|
@@ -1,57 +1,249 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brainstorming
|
|
3
|
-
description: "
|
|
3
|
+
description: "Use before any creative work: new features, components or behavior changes, or planning anything new. Finds what the user wants first."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Brainstorming
|
|
6
|
+
# Brainstorming
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Adapted from obra/superpowers `brainstorming` 7.0.2 (MIT). See NOTICE.md.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
You are very good at building. You build what you believe the user wants. That belief is usually
|
|
11
|
+
thinner than it feels. This skill finds out what the user actually wants, and why, before anything
|
|
12
|
+
gets built.
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
People often have not finished working out what they want. Good questions help them think it through.
|
|
15
|
+
When you understand the why, you make the hundred small decisions they never mention the way they
|
|
16
|
+
would have made them.
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
## First: what do you actually know?
|
|
15
19
|
|
|
16
|
-
|
|
20
|
+
Before you reply, ask yourself: what do I know about what the user wants, and why?
|
|
17
21
|
|
|
18
|
-
**
|
|
19
|
-
|
|
20
|
-
-
|
|
21
|
-
- Prefer multiple choice questions when the options are well-defined and constrained; use open-ended questions when exploring new or unclear ideas
|
|
22
|
-
- Only one question per message - if a topic needs more exploration, break it into multiple questions
|
|
23
|
-
- Focus on understanding: purpose, constraints, success criteria
|
|
22
|
+
- **Everything that matters is in the request** ("make the icon cornflower blue"). This is a quick,
|
|
23
|
+
clear task. Do it, and say what you did.
|
|
24
|
+
- **Something non-trivial is missing.** Start the conversation.
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
- Propose 2-3 different approaches with trade-offs
|
|
27
|
-
- Present options conversationally with your recommendation and reasoning
|
|
28
|
-
- Lead with your recommended option and explain why
|
|
26
|
+
Before you start implementing, do these steps in order:
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
1. Lay out the approaches in a message of their own, and let the user pick one (see "Lay out the
|
|
29
|
+
approaches").
|
|
30
|
+
2. Write the design doc, short or full (see "Size the work").
|
|
31
|
+
3. Get the user's approval of that doc.
|
|
32
|
+
4. Run `/caddis:feature-plan`. It is the only plan writer in caddis. If the superpowers plugin is also
|
|
33
|
+
installed, never use its planning skill: that skips the caddis model routing.
|
|
36
34
|
|
|
37
|
-
|
|
35
|
+
If nothing is open when you write your first message and there is one sensible way, steps 1 to 3 happen
|
|
36
|
+
in that message (see "Your first message").
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- Apply `.github/instructions/document-frontmatter.instructions.md` when creating or updating the design doc
|
|
42
|
-
- Use elements-of-style:writing-clearly-and-concisely skill if available
|
|
43
|
-
- Commit the design document to git
|
|
38
|
+
Two things are not implementing: a spike the user said yes to (see "Spike to feel things out"), and
|
|
39
|
+
doing what they asked once they opted out of the questions.
|
|
44
40
|
|
|
45
|
-
|
|
46
|
-
- Ask: "Ready to set up for implementation?"
|
|
47
|
-
- Use the `using-git-worktrees` skill (caddis, devops/) to create an isolated workspace
|
|
48
|
-
- Use `/caddis:feature-plan` to write the plan (it is the only plan writer in caddis)
|
|
41
|
+
## Look before you ask
|
|
49
42
|
|
|
50
|
-
|
|
43
|
+
In an existing project, or when the user gave you context (a spec, a plan, a handoff, files, earlier
|
|
44
|
+
conversation), dig in before your first message. Read what they referred to and the code or material
|
|
45
|
+
it connects to. Keep reading until you can explain how the relevant parts work today and what this
|
|
46
|
+
change would touch. Never ask what the project or their context already answers. Never reopen what
|
|
47
|
+
they already decided.
|
|
51
48
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
- **
|
|
57
|
-
|
|
49
|
+
## Your first message
|
|
50
|
+
|
|
51
|
+
Move the work forward, with one of these:
|
|
52
|
+
|
|
53
|
+
- **They already said what they want** (a spec, a plan, a detailed request). Aim for about 200 words
|
|
54
|
+
for the whole message.
|
|
55
|
+
- Echo the request back in your own words, so they can see whether you got its shape: what they
|
|
56
|
+
want, who it is for, and why, as far as they said.
|
|
57
|
+
- Add what you found that bears on it: how the relevant parts work today and what the change would
|
|
58
|
+
touch. If you found something they may not have considered, such as a constraint, a conflict or a
|
|
59
|
+
cheaper path, say so plainly.
|
|
60
|
+
- How to build it comes later (see "Lay out the approaches").
|
|
61
|
+
- End with one line that invites corrections.
|
|
62
|
+
- If they did not say why they want it, even if you can guess, ask: one open question in their own
|
|
63
|
+
terms, with nothing to pick from.
|
|
64
|
+
- If they told you why, and the request and the project leave open something that would change what
|
|
65
|
+
gets built, ask about the one that changes it most. When the choices can be named, sketch each one
|
|
66
|
+
concretely, with what it trades off and which you would pick.
|
|
67
|
+
- If nothing like that is open, there is one sensible way. End with the short design itself (the
|
|
68
|
+
approach, a line on why the others do not fit, and the design in a few lines) and ask them to
|
|
69
|
+
approve it. Their approval covers the approach and the design. Write the short design doc as
|
|
70
|
+
approved and go on to the plan.
|
|
71
|
+
- Specs are often incomplete, so confirm before you build on one.
|
|
72
|
+
- **They did not:** ask one open question, in their own terms, about the biggest thing the request
|
|
73
|
+
leaves unsettled. Say why you ask: what the answer would change about what you build. For "a website
|
|
74
|
+
for my bakery": "If it is mostly for people deciding whether to stop by, I would lead with hours and
|
|
75
|
+
what is in the case today. Taking orders is a different site. What do you want someone to do when
|
|
76
|
+
they land on it?"
|
|
77
|
+
|
|
78
|
+
How the message ends depends on whether the user asked for brainstorming:
|
|
79
|
+
|
|
80
|
+
- **They asked for it** (by name, by invoking it, or by asking for a design discussion): end there.
|
|
81
|
+
They want this conversation.
|
|
82
|
+
- **They did not:** they may not want a conversation at all. End with a light, one-line offer to just
|
|
83
|
+
get going, such as "Or if you would rather I just dive in, say so." If they take it, this skill is
|
|
84
|
+
done. State any significant how-it-gets-made choice (platform, language, medium) in one plain line.
|
|
85
|
+
Then do what they asked through the normal workflow.
|
|
86
|
+
|
|
87
|
+
That is the whole message.
|
|
88
|
+
|
|
89
|
+
## The conversation
|
|
90
|
+
|
|
91
|
+
Ask a question only when the answer would change what gets built and neither the request nor the
|
|
92
|
+
project answers it. Otherwise, state your call and your reason as a proposal the user can correct, and
|
|
93
|
+
move the work forward. Process steps are always your calls: writing things up, where files go, looking
|
|
94
|
+
further, how to show something. Do them and say so. Ask one question at a time. Use plain language,
|
|
95
|
+
pitched a little above where the user is. Match their vocabulary. Do not use process jargon. Never
|
|
96
|
+
quote this skill to the user.
|
|
97
|
+
|
|
98
|
+
Be clear and short. Lead with what matters. When you report what you found, give the most important
|
|
99
|
+
findings and offer the rest.
|
|
100
|
+
|
|
101
|
+
**Get them describing.** Until you know why they want it, ask open questions, with no example answers
|
|
102
|
+
attached. Their own words carry intent that your options cannot. Once you know why, and a decision has
|
|
103
|
+
choices you can name, sketch each one concretely, with what it trades off and which you would pick.
|
|
104
|
+
When they say "just guess" or "what do you think?", propose something concrete.
|
|
105
|
+
|
|
106
|
+
**How it gets made.** Every project rests on choices about medium, tools, materials and resources: the
|
|
107
|
+
platform, language and libraries for an app; the medium for a piece of art. Read from how they talk
|
|
108
|
+
which choices they want to make. A user who raises the how, or asks about trade-offs, wants the options
|
|
109
|
+
with your pick. A user who talks about outcomes hands you the how: make those calls and state each in
|
|
110
|
+
one line. When work already exists, build on what it uses. Any choice you make goes in the design as
|
|
111
|
+
your call, never as something the user agreed to.
|
|
112
|
+
|
|
113
|
+
**Ground to cover.** This is territory, not a script. Never read it out as questions:
|
|
114
|
+
|
|
115
|
+
- what kind of thing this is, and what makes it special
|
|
116
|
+
- why now, and what success looks like to the user
|
|
117
|
+
- goals, non-goals and anti-goals (what would make this a failure even if it technically works)
|
|
118
|
+
- prior art: what they have seen elsewhere, loved or hated
|
|
119
|
+
- current state: what exists now, what they have tried
|
|
120
|
+
- the details they care about
|
|
121
|
+
|
|
122
|
+
**Make every question specific** to their project and what they told you. Ask Socratically, as a sharp
|
|
123
|
+
colleague would. Build each question on their last answer or on something you found, so it helps them
|
|
124
|
+
think through a consequence or a case they may have missed ("Voting closes before the meeting, and two
|
|
125
|
+
members joined this month. Does someone who joins mid-round get a vote?"). When the reason is not
|
|
126
|
+
plain, say what you hope to learn or what the answer would change. A proposal they can correct, with
|
|
127
|
+
your reason, often beats a question.
|
|
128
|
+
|
|
129
|
+
**Do recon.** When you have some grounding and looking further would help, go look: deeper into the
|
|
130
|
+
codebase or project, the user's own files and data, or the web. Say what you looked for and what you
|
|
131
|
+
found.
|
|
132
|
+
|
|
133
|
+
**Lay out the approaches.** When you understand what they want, and before you write anything up, put
|
|
134
|
+
the ways of building it in a message of its own.
|
|
135
|
+
|
|
136
|
+
- Come up with several real alternatives. Drop the weak ones, including any that work against why they
|
|
137
|
+
want it and any that the existing work rules out.
|
|
138
|
+
- Sketch the two or three that remain, concretely enough to picture, grounded in what the project
|
|
139
|
+
actually does, with what each trades off.
|
|
140
|
+
- Recommend one and say why. Then ask which way they want to go. If they handed you the how, say you
|
|
141
|
+
will go with your pick instead.
|
|
142
|
+
- When there is genuinely one sensible way, say so in that message and explain why the others do not
|
|
143
|
+
fit. The design comes in the next message.
|
|
144
|
+
|
|
145
|
+
This is for how it gets built. For what they want, get them describing first.
|
|
146
|
+
|
|
147
|
+
**Show, do not tell.** When seeing would help more than reading, sketch it in text: a few lines of what
|
|
148
|
+
they would see. When the look itself is theirs to decide (a screen, a page, a layout, a flow, options
|
|
149
|
+
that look different from each other), offer a mockup through the `mockup` skill or an HTML artifact.
|
|
150
|
+
Offer it once, as its own short message. If the user declines, stay in text.
|
|
151
|
+
|
|
152
|
+
**Spike to feel things out.** Agentic work is waterfall, but very fast. A quick throwaway build is
|
|
153
|
+
often the cheapest way to learn what the user wants or whether something works. Offer one when it
|
|
154
|
+
would help. When the user just wants to spike, get out of the way. A spike gets no tests or minimal
|
|
155
|
+
ones, is not bulletproof, and skips the plan, implementation and review steps. Bring what the spike
|
|
156
|
+
taught you back into the conversation.
|
|
157
|
+
|
|
158
|
+
## Play it back
|
|
159
|
+
|
|
160
|
+
Play back as you go. When you understand one part well enough to describe it (what it is for and who
|
|
161
|
+
it serves, or how one piece behaves), describe that part back in about 200-300 words. Then return to
|
|
162
|
+
questions about the next part. Playback and questions alternate through the whole conversation. The
|
|
163
|
+
last chunk covers whatever is left.
|
|
164
|
+
|
|
165
|
+
Only what the user said goes in as theirs. Anything you filled in goes in as your proposal, with your
|
|
166
|
+
reason. End each chunk by asking what is wrong or missing.
|
|
167
|
+
|
|
168
|
+
Before you send a chunk, check it: does it describe something they will look at, such as a page, a
|
|
169
|
+
screen, a schedule or a printout? If so, put a text sketch next to the description. If the look is
|
|
170
|
+
theirs to decide and they have not seen the mockup offer yet, send the offer instead, as its own
|
|
171
|
+
message, and hold the chunk for the next message.
|
|
172
|
+
|
|
173
|
+
## Size the work
|
|
174
|
+
|
|
175
|
+
When you understand what the user wants and they picked an approach, say how big the work is, in plain
|
|
176
|
+
words. The user can override it.
|
|
177
|
+
|
|
178
|
+
| Size | The design doc |
|
|
179
|
+
|------|----------------|
|
|
180
|
+
| A small change | a short one: what you already covered together, written down |
|
|
181
|
+
| A project | the full written design (below) |
|
|
182
|
+
|
|
183
|
+
Short or full, the design doc has an **Approaches** part: the two or three ways you considered, what
|
|
184
|
+
each trades off, which one the user picked, and why. They pick in the conversation, before you write
|
|
185
|
+
the doc.
|
|
186
|
+
|
|
187
|
+
If the work grows mid-task, stop, say so, and step up a size.
|
|
188
|
+
|
|
189
|
+
If this is really several independent projects, say so, agree on an order, and brainstorm them one at
|
|
190
|
+
a time.
|
|
191
|
+
|
|
192
|
+
## The written design
|
|
193
|
+
|
|
194
|
+
Write a plain document that a talented builder in the domain could plan from, without going back to the
|
|
195
|
+
user. Cover:
|
|
196
|
+
|
|
197
|
+
- intent and the why
|
|
198
|
+
- goals, non-goals, anti-goals
|
|
199
|
+
- constraints
|
|
200
|
+
- approaches (above)
|
|
201
|
+
- the parts of the how the user decided, as they decided them
|
|
202
|
+
- what is left to the builder
|
|
203
|
+
|
|
204
|
+
For a small change, the short design covers the same points in a line or two each. It goes straight to
|
|
205
|
+
the user, without the builder check.
|
|
206
|
+
|
|
207
|
+
**Where it goes:** `.caddis/plans/YYYY-MM-DD-<topic>-design.md`, committed. Apply
|
|
208
|
+
`.github/instructions/document-frontmatter.instructions.md` when the repo has it. Outside a repo, pick
|
|
209
|
+
a sensible place and say where. The user's preference overrides both.
|
|
210
|
+
|
|
211
|
+
**Builder check** (for a project): dispatch a fresh subagent with `builder-check-prompt.md` in this
|
|
212
|
+
folder. When you tell the user you are writing it up, say that a reviewer will read it first and you
|
|
213
|
+
may come back once with a few questions. Do not hand over the document until the check is back. Sort
|
|
214
|
+
what the builder asks into three piles:
|
|
215
|
+
|
|
216
|
+
- **Answered already** by the conversation or the project: put the answer in the document.
|
|
217
|
+
- **Minor:** a sensible builder could settle it without changing what gets built. Settle it yourself
|
|
218
|
+
and mark it in the document as your call.
|
|
219
|
+
- **Theirs:** only the user can answer it, and the answer changes what gets built.
|
|
220
|
+
|
|
221
|
+
Bring the "theirs" pile in one message, most important first. Update the document with the answers.
|
|
222
|
+
Then hand it over with a short list of the calls you made, so the user can check them while reading.
|
|
223
|
+
That is the only round of questions the check produces. Without a subagent tool, read the document as
|
|
224
|
+
that builder yourself.
|
|
225
|
+
|
|
226
|
+
<HARD-GATE>
|
|
227
|
+
Nothing gets built until the user approves the design doc: the short one for a small change, the full
|
|
228
|
+
one for a project. Building includes writing product code, scaffolding, installing dependencies,
|
|
229
|
+
creating projects and invoking an implementation skill. Reading and exploring are fine.
|
|
230
|
+
|
|
231
|
+
Two exceptions. If the user opted out of the questions, the skill is done and the gate goes with it.
|
|
232
|
+
A spike the user said yes to may be built. It stays labeled throwaway. Keeping what it produced is a
|
|
233
|
+
new request that comes back through this gate.
|
|
234
|
+
|
|
235
|
+
After the design doc is approved, the next step is the plan: run `/caddis:feature-plan` and no other
|
|
236
|
+
planning skill. Isolate the work with the `using-git-worktrees` skill when the checkout is not safe to
|
|
237
|
+
move.
|
|
238
|
+
</HARD-GATE>
|
|
239
|
+
|
|
240
|
+
## Red flags
|
|
241
|
+
|
|
242
|
+
| Thought | Reality |
|
|
243
|
+
|---------|---------|
|
|
244
|
+
| "I'll offer a menu of what they might want" | Options steer. Ask them to describe it first. |
|
|
245
|
+
| "I'll fill in sensible defaults" | Good. Say them out loud. A default the user never heard is one they could not reject. |
|
|
246
|
+
| "I answered their questions, so I'll write the doc" | Lay out the approaches first, in a message of their own (or, when nothing was open from the start, in the short design in your first message). |
|
|
247
|
+
| "I should explain the process first" | Ask your question. The process shows itself. |
|
|
248
|
+
| "They said 'sounds good' to the idea" | Approval covers what you showed them. A design doc you have not written is not approved. |
|
|
249
|
+
| "The spike works, I'll keep building on it" | Keeping it is a new request. Back through the gate. |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Builder Check Prompt
|
|
2
|
+
|
|
3
|
+
Adapted from obra/superpowers `brainstorming` 7.0.2 (MIT). See NOTICE.md.
|
|
4
|
+
|
|
5
|
+
Dispatch a fresh subagent with this prompt once the written design exists. Fill in the domain and the
|
|
6
|
+
document path. Use Sonnet for the builder subagent.
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
You are a talented [DOMAIN, e.g. "software engineer", "event planner",
|
|
10
|
+
"bakery consultant"]. You have been handed a design document and asked to
|
|
11
|
+
put together a plan to build what it describes. You cannot talk to the
|
|
12
|
+
person who wrote it.
|
|
13
|
+
|
|
14
|
+
Read [DOCUMENT_PATH].
|
|
15
|
+
|
|
16
|
+
Report only the questions you would still need answered before you could
|
|
17
|
+
plan this well: places where you would have to guess and a wrong guess
|
|
18
|
+
would matter. For each, give the question and why the answer changes the
|
|
19
|
+
plan. Rank them by importance.
|
|
20
|
+
|
|
21
|
+
Skip anything the document explicitly leaves to the builder, and anything
|
|
22
|
+
you could reasonably decide yourself. Skip nitpicks about wording.
|
|
23
|
+
|
|
24
|
+
If nothing important is left, say "nothing important left".
|
|
25
|
+
```
|
|
@@ -12,6 +12,10 @@ by `caddis_merge_chain.py --docs-only`; a repo that wants a human to review them
|
|
|
12
12
|
`scripts/` below is the caddis scripts folder: `${CLAUDE_PLUGIN_ROOT}/scripts` in an installed plugin, `scripts/` in
|
|
13
13
|
the caddis source repo.
|
|
14
14
|
|
|
15
|
+
In text that a later session reads (a roadmap row's check command, a restart prompt, a relay), write a script command as
|
|
16
|
+
`python "<home>/.caddis/bin/caddis_run.py" <script> ...` (`<home>` is the user's home folder, forward slashes), never the
|
|
17
|
+
expanded plugin path: it holds the plugin version and is gone after the next update. The runner's own prompt does this.
|
|
18
|
+
|
|
15
19
|
## The folder
|
|
16
20
|
|
|
17
21
|
`.caddis/roadmaps/<slug>/` holds:
|
|
@@ -8,8 +8,9 @@ timestamp: {{date}}
|
|
|
8
8
|
|
|
9
9
|
You are a fresh session for the plan `{{slug}}`. Do ONE batch, then stop.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
To run a caddis script, write `{{run}} <script.py> <args>`. The launcher finds the installed caddis plugin by itself.
|
|
12
|
+
Do not look for the scripts in a plugin cache folder, and do not write such a path in the relay: it holds the plugin
|
|
13
|
+
version and is gone after the next update.
|
|
13
14
|
|
|
14
15
|
## 1. Read
|
|
15
16
|
|
|
@@ -44,7 +45,7 @@ publish a branch that does). Commit the phase there, with its tracker row set to
|
|
|
44
45
|
## 4. Work
|
|
45
46
|
|
|
46
47
|
- Do ONE batch with `/caddis:implement` discipline: tests first, the phase's exit gate, a commit per phase.
|
|
47
|
-
- agy sessions only: run `
|
|
48
|
+
- agy sessions only: run `{{run}} caddis_spend.py check` before each agy call. There is no spend cap (it
|
|
48
49
|
always exits 0); if its line ends with ` - ADVISORY`, say so in the relay for the owner.
|
|
49
50
|
- You may do everything except pass an owner gate. Never pass an owner gate. Never raise a cap. Never delete a STOP file.
|
|
50
51
|
- The runner reviews `risk: high` phases. A phase marked `**Risk:** high`: do not halt for it and do not run the
|
|
@@ -55,8 +56,8 @@ publish a branch that does). Commit the phase there, with its tracker row set to
|
|
|
55
56
|
|
|
56
57
|
## 5. Write the relay
|
|
57
58
|
|
|
58
|
-
Write the relay with `
|
|
59
|
-
the repo (for example in the temp folder). Read the current relay first with `
|
|
59
|
+
Write the relay with `{{run}} caddis_workstreams.py put --require-status {{slug}} <file>`. Write `<file>` outside
|
|
60
|
+
the repo (for example in the temp folder). Read the current relay first with `{{run}} caddis_workstreams.py read {{slug}}`;
|
|
60
61
|
keep its frontmatter shape (`type: relay`, `workstream: {{slug}}`, `branch`, `session_id`, `plan`, `generated.at`). The LAST
|
|
61
62
|
non-empty line must be exactly one of these four:
|
|
62
63
|
|
package/bundles/manifest.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-sans-400.17fc1ce7.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-sans-500.dcc69acf.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/ibm-plex-sans-600.d4dad061.woff2) format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/ibm-plex-sans-700.40d9a530.woff2) format("woff2")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-mono-400.6d569bb7.woff2) format("woff2")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/ibm-plex-mono-700.9f478677.woff2) format("woff2")}:root{--caddis-blue: #0d42fc;--caddis-cyan: #00cad5;--caddis-green: #91d202;--caddis-amber: #fdad01;--caddis-orange: #fc4e23;--caddis-violet: #8730fb;--caddis-bg-dark: #282a36;--caddis-bg-light: #f8f8f2}@media(prefers-reduced-motion:no-preference){.caddis-mark-build path{opacity:0;transform-box:fill-box;transform-origin:center;animation:caddis-piece-in .64s cubic-bezier(.2,.7,.2,1) forwards}.caddis-mark-build .p-blue{--from: -60px, -60px;animation-delay:0ms}.caddis-mark-build .p-purple{--from: -60px, 60px;animation-delay:90ms}.caddis-mark-build .p-cyan{--from: 60px, -60px;animation-delay:.18s}.caddis-mark-build .p-amber{--from: -40px, 60px;animation-delay:.27s}.caddis-mark-build .p-green{--from: 0px, 70px;animation-delay:.36s}.caddis-mark-build .p-orange{--from: 60px, 40px;animation-delay:.45s}}@keyframes caddis-piece-in{0%{opacity:0;transform:translate(var(--from, 0, 0)) scale(.85)}to{opacity:1;transform:none}}:root,[data-theme=dark]{color-scheme:dark;--bg-canvas: #191a23;--bg-lane: #21222c;--bg-card: #282a36;--bg-elevated: #343746;--border-dim: #363949;--border-bright: #4b4f65;--text-main: #f8f8f2;--text-sub: #c0c4d6;--text-dim: #9ca3c4;--purple: #bd93f9;--pink: #ff79c6;--green: #50fa7b;--yellow: #f1fa8c;--red: #ff5555;--cyan: #8be9fd;--orange: #ffb86c;--tone-yellow-bg: rgba(241, 250, 140, .08);--tone-yellow-bd: rgba(241, 250, 140, .42);--tone-red-bg: rgba(255, 85, 85, .09);--tone-red-bd: rgba(255, 85, 85, .45);--tone-pink-bg: rgba(255, 121, 198, .11);--tone-pink-bd: rgba(255, 121, 198, .45);--tone-cyan-bg: rgba(139, 233, 253, .09);--tone-cyan-bd: rgba(139, 233, 253, .36);--tone-green-bg: rgba(80, 250, 123, .09);--tone-green-bd: rgba(80, 250, 123, .36);--tone-purple-bg: rgba(189, 147, 249, .12);--tone-purple-bd: rgba(189, 147, 249, .42);--focus-ring: #bd93f9;--sidebar-w: 232px;--font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-head: "IBM Plex Sans", "Segoe UI", sans-serif;--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace}[data-theme=light]{color-scheme:light;--bg-canvas: #f2f3f8;--bg-lane: #f9f9fc;--bg-card: #ffffff;--bg-elevated: #ebedf5;--border-dim: #dcdde8;--border-bright: #bfc2d4;--text-main: #1b1c26;--text-sub: #424659;--text-dim: #60667f;--purple: #6837e8;--pink: #cf2384;--green: #128038;--yellow: #8f6100;--red: #d12121;--cyan: #096b7d;--orange: #b85000;--tone-yellow-bg: rgba(217, 155, 8, .11);--tone-yellow-bd: rgba(168, 112, 0, .42);--tone-red-bg: rgba(209, 33, 33, .07);--tone-red-bd: rgba(209, 33, 33, .38);--tone-pink-bg: rgba(207, 35, 132, .08);--tone-pink-bd: rgba(207, 35, 132, .38);--tone-cyan-bg: rgba(9, 107, 125, .08);--tone-cyan-bd: rgba(9, 107, 125, .32);--tone-green-bg: rgba(18, 128, 56, .08);--tone-green-bd: rgba(18, 128, 56, .32);--tone-purple-bg: rgba(104, 55, 232, .09);--tone-purple-bd: rgba(104, 55, 232, .35);--focus-ring: #6837e8}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%;width:100%;max-width:100%;background:var(--bg-canvas);color:var(--text-main);font-family:var(--font-body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}h1,h2,h3,h4,strong,b{font-weight:600}h1,h2,h3,.page-title,.rm-title,.flow-h{font-family:var(--font-head);letter-spacing:-.01em}.mono,code{font-family:var(--font-mono);font-feature-settings:"zero" on;font-size:.92em}code.cmd{background:var(--bg-elevated);padding:1px 6px;border-radius:4px;color:var(--yellow);overflow-wrap:anywhere}button,a{font-family:inherit}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}@keyframes work-pulse{0%,to{opacity:1}50%{opacity:.35}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.pulse-dot{width:8px;height:8px;border-radius:50%;background:var(--cyan);display:inline-block;animation:work-pulse 2.2s ease-in-out infinite;flex-shrink:0}.app-shell{display:flex;min-height:100vh;width:100%;max-width:100%}.mobile-topbar{display:none;position:sticky;top:0;z-index:45;background:var(--bg-card);border-bottom:1px solid var(--border-dim);padding:10px 14px;align-items:center;justify-content:space-between;gap:10px}.menu-btn{display:inline-flex;align-items:center;gap:8px;background:var(--bg-elevated);border:1px solid var(--border-bright);color:var(--text-main);padding:6px 10px;border-radius:7px;font-size:14px;font-weight:500;cursor:pointer}.drawer-backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:49}.drawer-backdrop.open{display:block}.sidebar{width:var(--sidebar-w);background:var(--bg-card);border-right:1px solid var(--border-dim);position:fixed;top:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s ease;overflow-x:hidden;overflow-y:auto}.sidebar-top{padding:16px 12px;display:flex;flex-direction:column;gap:18px}.brand-row{display:flex;align-items:center;padding:0 6px}.brand-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;color:var(--text-main);min-width:0}.brand-mark{width:36px;height:36px;flex-shrink:0}.brand-mark-still,html[data-motion=off] .brand-mark-anim{display:none}html[data-motion=off] .brand-mark-still{display:block}.brand-stack{display:flex;flex-direction:column;gap:4px;min-width:0}.brand-wordmark{width:100px;height:20px}.brand-sub{font-size:12px;line-height:12px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim)}.nav-list{display:flex;flex-direction:column;gap:4px;list-style:none}.nav-sublist{display:flex;flex-direction:column;gap:2px;list-style:none;margin:0 0 0 28px;padding-left:8px;border-left:1px solid var(--border-dim)}.nav-sublink{padding-top:4px;padding-bottom:4px;font-size:13px}.nav-section-label{font-size:13px;font-weight:500;color:var(--text-dim);padding:0 10px;margin-bottom:-10px}.nav-empty{padding:6px 10px;color:var(--text-dim);font-size:14px}.nav-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border-radius:8px;color:var(--text-sub);text-decoration:none;font-weight:500;font-size:15px;transition:background .12s ease,color .12s ease;min-width:0}.nav-link:hover{background:var(--bg-elevated);color:var(--text-main)}.nav-link.active{background:var(--tone-purple-bg);color:var(--purple);font-weight:600}.nav-link-left{display:flex;align-items:center;gap:10px;min-width:0}.nav-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.soon{font-size:11.5px;color:var(--text-dim);border:1px solid var(--border-dim);border-radius:99px;padding:0 7px}.inbox-badge{display:inline-flex;align-items:center;justify-content:center;padding:1px 8px;border-radius:99px;font-size:12px;font-weight:600;background:linear-gradient(135deg,var(--yellow),var(--red));color:#191a23;flex-shrink:0}.repo-dot{width:9px;height:9px;margin:0 4.5px;border-radius:50%;flex-shrink:0}.repo-dot.attention{background:var(--yellow);box-shadow:0 0 0 2px var(--tone-yellow-bg)}.repo-dot.blocked{background:var(--red);box-shadow:0 0 0 2px var(--tone-red-bg)}.repo-dot.ok{background:var(--green)}.repo-dot.idle{background:var(--text-dim)}.sidebar-footer{padding:14px 12px;border-top:1px solid var(--border-dim);display:flex;flex-direction:column;gap:12px;background:var(--bg-lane)}.footer-meta{font-size:13px;color:var(--text-sub);display:flex;flex-direction:column;gap:8px}.updated-line{display:flex;align-items:center;gap:7px;color:var(--text-dim);font-size:12.5px;line-height:1.35}.spend-box{display:flex;flex-direction:column;gap:5px}.spend-row{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px}.meter-track{width:100%;height:6px;background:var(--bg-elevated);border-radius:99px;overflow:hidden}.meter-fill{height:100%;background:var(--purple);border-radius:99px}.meter-fill.hot{background:var(--orange)}.versions{color:var(--text-dim);font-size:11.5px;overflow-wrap:anywhere}.theme-switch{display:flex;gap:4px;background:var(--bg-elevated);border-radius:8px;padding:3px}.theme-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;border:0;border-radius:6px;color:var(--text-sub);padding:5px 4px;font-size:12.5px;cursor:pointer}.theme-btn.active{background:var(--bg-card);color:var(--purple);font-weight:600}.main-area{flex:1;margin-left:var(--sidebar-w);min-width:0;width:100%}.page-wrap{max-width:1420px;margin:0 auto;padding:28px 28px 48px;display:flex;flex-direction:column;gap:28px;min-width:0}.page-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.page-title{font-size:22px;font-weight:600;color:var(--text-main);display:flex;align-items:center;gap:10px}.page-subtitle{font-size:14px;color:var(--text-sub)}.notice{display:flex;flex-direction:column;gap:8px;background:var(--bg-card);border:1px solid var(--border-dim);border-radius:10px;padding:18px 20px;max-width:560px}.banners{display:flex;flex-direction:column;gap:8px}.banner{display:flex;align-items:flex-start;gap:10px;border-radius:8px;padding:10px 14px;font-size:14px;border:1px solid var(--tone-yellow-bd);background:var(--tone-yellow-bg)}.banner svg{flex-shrink:0;margin-top:2px}.banner.warn svg{color:var(--yellow)}.banner.bad{border-color:var(--tone-red-bd);background:var(--tone-red-bg)}.banner.bad svg{color:var(--red)}.kpi-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.kpi-tile{background:var(--bg-card);border:1px solid var(--border-dim);border-radius:10px;padding:13px 16px;display:flex;flex-direction:column;justify-content:space-between;gap:6px;text-decoration:none;color:var(--text-main);transition:border-color .15s ease;min-width:0}.kpi-tile:hover{border-color:var(--purple)}.kpi-tile.urgent{border-color:var(--tone-yellow-bd);background:var(--tone-yellow-bg)}.kpi-tile.danger{border-color:var(--tone-red-bd);background:var(--tone-red-bg)}.kpi-label{font-size:13.5px;color:var(--text-sub);font-weight:500;display:flex;align-items:center;gap:7px;min-width:0}.kpi-val{font-size:19px;font-weight:600;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.kpi-sub{font-size:13px;font-weight:400}@media(max-width:1100px){.kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.mobile-topbar{display:flex}.app-shell{flex-direction:column}.sidebar{width:250px;transform:translate(-100%);visibility:hidden}.sidebar.drawer-open{transform:translate(0);visibility:visible}.main-area{margin-left:0}.page-wrap{padding:16px 12px 36px;gap:20px}.kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}:root,[data-theme=dark]{--mk-accent: #00cad5;--mk-sel: #343746;--mk-bad: #ff7a7a;--mk-good: #91d202;--mk-warn: #fdad01;--mk-warn-bg: rgba(253, 173, 1, .1);--mk-warn-line: rgba(253, 173, 1, .45);--chip-waiting-bg: rgba(0, 202, 213, .16);--chip-waiting-fg: #5fe6ee;--chip-gate-bg: rgba(135, 48, 251, .22);--chip-gate-fg: #c9a7ff;--chip-bad-bg: rgba(255, 122, 122, .16);--chip-bad-fg: #ff9b9b;--chip-coord-bg: rgba(253, 173, 1, .16);--chip-coord-fg: #fdad01;--chip-done-bg: rgba(145, 210, 2, .16);--chip-done-fg: #a8e23a}[data-theme=light]{--mk-accent: #0d42fc;--mk-sel: #e8eefe;--mk-bad: #c0262d;--mk-good: #3d6b00;--mk-warn: #8a5a00;--mk-warn-bg: rgba(253, 173, 1, .14);--mk-warn-line: rgba(154, 101, 0, .45);--chip-waiting-bg: #dff7f8;--chip-waiting-fg: #006b72;--chip-gate-bg: #efe5ff;--chip-gate-fg: #5b1bb5;--chip-bad-bg: #fde4e4;--chip-bad-fg: #a11d24;--chip-coord-bg: #fff1cf;--chip-coord-fg: #7a5000;--chip-done-bg: #e9f6d2;--chip-done-fg: #3d6b00}.btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:8px;border:1px solid var(--border-bright);background:transparent;color:var(--text-main);font-size:14px;font-weight:500;cursor:pointer}.btn:hover:not(:disabled){background:var(--bg-elevated)}.btn:disabled{opacity:.55;cursor:not-allowed}.kpi-tile .kpi-num{font-size:30px;font-weight:600;line-height:1.1}.kpi-num.accent{color:var(--mk-accent)}.kpi-num.bad{color:var(--mk-bad)}.tone-good{color:var(--mk-good)}.tone-warn{color:var(--mk-warn)}.tone-bad{color:var(--mk-bad)}.tone-muted{color:var(--text-dim)}.kpi-tile.deploy .kpi-val{font-size:15px}.mailbox{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.mailbox-folders{flex:1 1 180px;display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.folder-btn,.item-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 10px;border:0;border-radius:8px;text-align:left;background:transparent;color:var(--text-main);font-size:15px;cursor:pointer}.folder-btn span:first-of-type{flex-grow:1}.folder-btn.sel,.item-btn.sel{background:var(--mk-sel)}.folder-btn:hover,.item-btn:hover{background:var(--bg-elevated)}.mailbox-list{flex:2 1 280px;min-width:0;display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.item-btn{align-items:flex-start;padding:10px;min-height:56px}.unread-dot{width:9px;height:9px;margin-top:6px;border-radius:50%;flex-shrink:0;background:transparent}.unread-dot.on{background:var(--mk-accent)}.item-main{display:flex;flex-direction:column;gap:3px;min-width:0}.item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--text-dim)}.item-title{font-weight:400;overflow-wrap:anywhere}.chip{padding:1px 8px;border-radius:99px;font-size:12px;font-weight:600}.chip-waiting{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.chip-owner-gate{background:var(--chip-gate-bg);color:var(--chip-gate-fg)}.chip-blocked,.chip-blocked-merge{background:var(--chip-bad-bg);color:var(--chip-bad-fg)}.chip-coordinator,.chip-hub{background:var(--chip-coord-bg);color:var(--chip-coord-fg)}.chip-resolved{background:var(--chip-done-bg);color:var(--chip-done-fg)}.list-empty{padding:24px 12px;text-align:center;color:var(--text-sub)}.mailbox-detail{flex:3 1 320px;min-width:0;display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.mailbox-detail h2{font-size:20px;line-height:1.3;overflow-wrap:anywhere}.detail-block{display:flex;flex-direction:column;gap:4px}.detail-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim)}.detail-actions{display:flex;flex-wrap:wrap;gap:10px}.back-btn{display:none}.notify-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:var(--text-sub)}@media(max-width:720px){.mailbox{flex-direction:column;align-items:stretch}.mailbox.show-detail .mailbox-folders,.mailbox.show-detail .mailbox-list{display:none}.mailbox:not(.show-detail) .mailbox-detail{display:none}.mailbox-folders{flex-direction:row;flex-wrap:wrap}.folder-btn{width:auto;flex:1 1 140px}.back-btn{display:inline-flex;align-self:flex-start}}.lanes{display:flex;flex-direction:column;gap:14px}.lane{border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.lane.down .lane-body .card.grey>:not(.action-row),.lane.stopped .lane-body .card.grey>:not(.action-row){opacity:.55}.lane.stopped .lane-note{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.lane-head{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 14px;border:0;background:transparent;color:var(--text-main);font-size:15px;text-align:left;cursor:pointer;border-radius:12px}.lane-head .chev{margin-left:auto;flex-shrink:0;color:var(--text-dim)}.lane-name{font-weight:400;font-family:var(--font-mono);font-size:14px}.lane-summary{color:var(--text-dim);font-size:13.5px;min-width:0;overflow-wrap:anywhere}.lane-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:12px}.lane-note{padding:10px 12px;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--border-dim);font-size:14px}.lane.down .lane-note{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.lane-cols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.lane-col{display:flex;flex-direction:column;gap:8px;min-width:0}.col-title{font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-dim);font-weight:600}.card{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:8px;background:var(--bg-card);border:1px solid var(--border-dim);overflow-wrap:anywhere}.card-title{font-weight:500;font-size:14px}.card-sub{font-size:13px}.col-empty{font-size:13px;color:var(--text-dim)}@media(max-width:1100px){.lane-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.lane-cols{grid-template-columns:minmax(0,1fr)}.lane-head{flex-wrap:wrap;padding:10px 14px}}.first-run{border:1px dashed var(--border, var(--mk-line, #6272a4));border-radius:10px;padding:16px;margin:0 0 16px;display:grid;gap:8px;justify-items:start}.first-run h2{margin:0;font-size:1.1rem}.first-run p{margin:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.first-run-reason{color:var(--text-dim);font-size:.85rem}.chip-stale{background:transparent;border:1px dashed currentColor;color:var(--text-dim)}.kpi-strip.stale .kpi-num,.kpi-strip.stale .kpi-val,.lanes.stale .lane-body{opacity:.55}.gh-fail{overflow-wrap:anywhere}.quota-low{color:var(--mk-warn, var(--text));font-size:.85rem;overflow-wrap:anywhere}.action-row{display:flex;flex-direction:column;gap:6px;min-width:0}.action-buttons{display:flex;flex-wrap:wrap;gap:8px}.action-row.compact .btn-act{min-height:30px;padding:0 10px;font-size:12.5px}.action-reason,.request-status{font-size:13px;overflow-wrap:anywhere}.action-reason{color:var(--text-dim)}.recommendation{padding:10px 12px;border-radius:8px;border:1px solid var(--border-dim);background:var(--bg-elevated);overflow-wrap:anywhere}.rec-approve{color:var(--mk-good)}.rec-hold{color:var(--mk-warn)}.rec-evidence{font-size:13.5px}.rec-note{font-size:12.5px;color:var(--text-dim)}.quota-line{font-size:.85rem;color:var(--text-dim);overflow-wrap:anywhere}.repo-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.repo-tabs .folder-btn{width:auto;min-height:38px;padding:0 14px;border:1px solid var(--border-dim)}.flow{display:flex;flex-direction:column;gap:18px;min-width:0}.flow-status.stopped,.flow-status.down{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.flow-section{display:flex;flex-direction:column;gap:8px;min-width:0}.flow-h{margin:0;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-dim)}.flow-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.flow-row{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:8px;background:var(--bg-card);border:1px solid var(--border-dim);overflow-wrap:anywhere;min-width:0}.flow-row.grey>:not(.action-row){opacity:.55}.flow-row-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.flow-pos{color:var(--text-dim);font-size:13px}.flow-title{font-weight:600;font-size:14.5px}.flow-flags{display:flex;flex-wrap:wrap;gap:6px}.flow-flags .chip,.flow-row-head .chip{border:1px solid currentColor}.flow-why{font-size:13px;color:var(--text-sub)}.card .action-row{margin-top:4px}.repo-tabs a.folder-btn{text-decoration:none;display:inline-flex}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.rm{display:flex;flex-direction:column;gap:14px;min-width:0}.rm.stale .rm-detail,.rm.stale .rm-list-view{opacity:.6}.rm-title{margin:0;font-size:18px}.rm-detail{display:flex;flex-direction:column;gap:18px;min-width:0}.rm-crumbs{font-size:13px;color:var(--text-sub);overflow-wrap:anywhere}.rm-crumbs a{color:var(--mk-accent)}.rm-section{display:flex;flex-direction:column;gap:8px;min-width:0}.rm-waiting.has .flow-row{border-color:var(--tone-pink-bd);background:var(--tone-pink-bg)}.rm-searchbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.rm-search{display:flex;align-items:center;gap:8px;flex:1 1 240px;min-height:40px;padding:0 10px;border:1px solid var(--border-bright);border-radius:8px;background:var(--bg-card)}.rm-search input{flex:1;min-width:0;border:0;background:transparent;color:var(--text-main);font:inherit;min-height:38px}.rm-search input:focus-visible{outline-offset:6px}.rm-match{font-size:13px;color:var(--text-sub)}.rm-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.rm-chip{padding:4px 10px;border:1px solid var(--border-dim);border-radius:8px;background:var(--bg-card);font-size:13px}.rm-sub{display:block;font-size:12px;color:var(--text-dim)}.rm-bar-wrap{display:flex;flex-direction:column;gap:2px}.rm-bar{height:8px;border-radius:99px;background:var(--bg-elevated);overflow:hidden}.rm-bar i{display:block;height:100%;background:var(--mk-good)}.rm-bar-text{font-size:12px;color:var(--text-dim)}.rm-chain{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px}.rm-chain-item{display:inline-flex;align-items:center;gap:6px}.rm-node,.rm-rcard{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border:1px solid var(--border-dim);border-radius:9px;background:var(--bg-card);color:var(--text-main);font:inherit;text-align:left;text-decoration:none;cursor:pointer;min-width:0;overflow-wrap:anywhere}.rm-node:hover,.rm-rcard:hover{background:var(--bg-elevated)}.rm-node.tone-done,.rm-rcard.tone-done{border-left:4px solid var(--mk-good)}.rm-node.tone-prog,.rm-rcard.tone-prog{border-left:4px solid var(--mk-accent)}.rm-node.tone-wait,.rm-rcard.tone-wait{border-left:4px solid var(--chip-gate-fg)}.rm-node.tone-block,.rm-rcard.tone-block{border-left:4px solid var(--mk-warn)}.rm-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rm-rcard strong{font-weight:500}.rm-cols .rm-rcard{width:100%;margin-bottom:8px}.rm-cols.rm-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.rm-pcard{cursor:default}.rm-pcard:hover{background:var(--bg-card)}.rm-pcard.is-moved{opacity:.55}.rm-list-h{margin:0 0 6px;font-size:14px}.rm-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}.rm-cards li{min-width:0}.rm-cards .rm-rcard{height:100%}.rm-dots{display:flex;flex-wrap:wrap;gap:4px}.rm-dot{font-size:11px;padding:0 6px;border-radius:99px;background:var(--bg-elevated);color:var(--text-sub)}.rm-dot.s-done{background:var(--chip-done-bg);color:var(--chip-done-fg)}.rm-dot.s-in-progress{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.rm-timeline-grid{display:flex;flex-direction:column;overflow-x:auto;border:1px solid var(--border-dim);border-radius:8px}.rm-timeline-grid>.rm-head-row,.rm-timeline-grid>.rm-row{display:grid;grid-template-columns:150px repeat(var(--rm-cols, 1),minmax(120px,1fr))}.rm-cell{padding:6px;border-top:1px solid var(--border-dim);border-left:1px dashed var(--border-dim);min-width:0}.rm-head{background:var(--bg-lane);font-weight:600;border-top:0}.rm-lane{font-weight:500;border-left:0;overflow-wrap:anywhere}.rm-gate-count,.rm-gate-note{display:inline-block;margin:2px 0;padding:1px 6px;font-size:11px;border:1px dashed var(--mk-warn);border-radius:6px;background:var(--mk-warn-bg);overflow-wrap:anywhere}.rm-tile{position:relative;display:flex;align-items:center;gap:5px;margin:0 0 4px;padding:3px 6px;font-size:12px;border:1px solid var(--border-bright);border-radius:6px;background:var(--bg-card);max-width:100%;overflow-wrap:anywhere;width:100%;box-sizing:border-box;font-family:inherit;color:inherit;text-align:left;cursor:pointer}.rm-tile[data-state=done]{background:var(--chip-done-bg);color:var(--chip-done-fg)}.rm-tile[data-state=in-progress]{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.rm-tile[data-state=blocked]{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.rm-tile[data-state=moved]{background:repeating-linear-gradient(135deg,var(--chip-done-bg) 0 5px,var(--bg-card) 5px 10px)}.rm-panel{position:fixed;top:64px;right:16px;bottom:16px;width:min(480px,calc(100vw - 32px));padding:16px;overflow:auto;z-index:40;background:var(--bg-card);border:1px solid var(--border-bright);border-radius:12px;box-shadow:0 8px 24px #00000040}.rm-panel h3{margin:0 32px 8px 0;outline:none}.rm-panel-close{position:absolute;top:8px;right:8px;border:0;background:none;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:4px 8px}.rm-panel-text{white-space:pre-wrap;font-family:var(--font-mono);font-size:12.5px;max-height:60vh;overflow:auto;margin:12px 0 0}@media(max-width:700px){.rm-panel{left:16px}}.flow-title.rm-open{background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline dotted}.rm-tile:focus-visible,.rm-open:focus-visible,.rm-panel-close:focus-visible{outline:2px solid var(--purple);outline-offset:2px}.rm-risk{width:7px;height:7px;margin-left:auto;border-radius:50%;background:var(--mk-bad);flex:none}.rm-timeline-list{display:none}@media(max-width:900px){.rm-timeline-grid{display:none}.rm-timeline-list{display:block}.rm-cols,.rm-cols.rm-cols-4{grid-template-columns:1fr}}.rm-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--text-dim)}.rm-ms{border:1px solid var(--border-dim);border-radius:10px;background:var(--bg-card);padding:8px 12px;margin-bottom:8px}.rm-ms>summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.rm-ms[open]>.flow-list{margin-top:8px}.rm-plan{border:1px solid var(--border-dim);border-radius:10px;background:var(--bg-card);padding:12px 14px}.rm-plan[open]{gap:12px}.rm-plan-sum{cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;list-style:none}.rm-plan-sum::-webkit-details-marker{display:none}.rm-plan-sum:before{content:"▸";color:var(--text-sub);transition:transform .15s ease}.rm-plan[open]>.rm-plan-sum:before{transform:rotate(90deg)}.rm-plan-title{font-weight:600;font-size:15.5px;min-width:0;overflow-wrap:anywhere}.rm-pkpis{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding-left:20px;font-size:13.5px;color:var(--text-sub)}.rm-pkpi-num{font-family:var(--font-mono);font-feature-settings:"zero" on;color:var(--text-main)}.rm-pkpi.tone-prog .rm-pkpi-num{color:var(--mk-accent)}.rm-pkpi.tone-block .rm-pkpi-num{color:var(--mk-warn)}.rm-pbar{display:inline-block;width:120px;height:6px;border-radius:3px;background:var(--border-dim);overflow:hidden}.rm-pbar>span{display:block;height:100%;background:var(--green)}.rm-pr{color:var(--mk-accent);font-size:13px}.rm-stage{font-size:12px;padding:1px 8px;border-radius:99px;background:var(--bg-elevated);color:var(--text-sub)}.rm-stage.tile-done{background:var(--chip-done-bg);color:var(--chip-done-fg)}.rm-stage.tile-in-progress{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.rm-stage.tile-blocked{background:var(--mk-warn-bg);color:var(--mk-warn)}.btn-act{min-height:32px;padding:0 10px;font-size:13px}.rm-view{display:inline-flex;align-self:flex-start;gap:2px;padding:2px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card)}.rm-view button{padding:6px 12px;border:0;border-radius:999px;background:transparent;color:var(--text-sub);font:inherit;font-size:13px;cursor:pointer}.rm-view button[aria-pressed=true]{background:var(--purple);color:var(--bg-canvas);font-weight:600}.rm-plan-only{font-size:.75em;text-transform:uppercase;letter-spacing:.04em;color:var(--text-sub)}.act-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.act-filters select{min-height:38px;padding:0 8px;border:1px solid var(--border-bright);border-radius:8px;background:var(--bg-card);color:var(--text-main);font:inherit;max-width:100%}.act-kinds{display:flex;flex-wrap:wrap;gap:6px}.act-kind{min-height:36px;padding:0 12px;border:1px solid var(--border-bright);border-radius:99px;background:transparent;color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.act-kind[aria-pressed=true]{background:var(--mk-sel);border-color:var(--mk-accent)}.act-time{font-size:12px;color:var(--text-dim)}.act-kindtag{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-dim)}.ex-table-wrap{overflow-x:auto}.ex-table{width:100%;border-collapse:collapse;font-size:14px}.ex-table th,.ex-table td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--border-dim)}.ex-table th{color:var(--text-sub);font-weight:600}.ex-note{margin-top:24px}
|
package/dist/export/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'none'; base-uri 'none'; form-action 'none'" />
|
|
7
7
|
<title>Roadmap</title>
|
|
8
8
|
<link rel="icon" href="data:," />
|
|
9
|
-
<script type="module" crossorigin src="./assets/export-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="./assets/export-
|
|
9
|
+
<script type="module" crossorigin src="./assets/export-DtlDFN4L.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/export-CMtV-slT.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as K,a as _,D as I,b as O,d as z,r as C,j as n,e as B}from"./index-
|
|
1
|
+
import{c as K,a as _,D as I,b as O,d as z,r as C,j as n,e as B}from"./index-CmngQ8Mk.js";import{l as Y}from"./time-D00tu2ZP.js";/**
|
|
2
2
|
* @license lucide-react v1.61.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{r as k,j as e,g as f}from"./index-CmngQ8Mk.js";const ie=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1250 1250" role="img" aria-label="Caddis">
|
|
2
|
+
<path class="p-blue" fill="#0D42FC" d="M640 98C705 150 720 215 680 275C640 340 590 375 540 420C480 470 410 520 395 605C385 700 355 790 270 855C310 780 315 700 305 640C300 540 340 460 480 340L545 285C600 235 645 180 640 98Z M545 535L625 585C610 610 595 635 580 650L500 597C515 575 530 555 545 535Z"/>
|
|
3
|
+
<path class="p-purple" fill="#8730FB" d="M210 1025C200 950 225 890 270 855C330 810 400 750 445 670L525 720C440 830 330 930 250 985C235 998 222 1012 210 1025Z M875 622C960 690 1030 780 1028 850C1025 910 990 950 960 975L905 950C935 900 935 850 900 790C875 755 840 720 800 672C830 650 850 635 875 622Z"/>
|
|
4
|
+
<path class="p-cyan" fill="#00CAD5" d="M1025 182C1050 250 1030 320 985 360C940 395 880 390 820 405C750 420 690 460 668 500L592 452C650 360 760 310 880 290C950 275 990 235 1025 182Z"/>
|
|
5
|
+
<path class="p-amber" fill="#FDAD01" d="M440 508C455 560 490 585 560 630C660 690 740 750 805 868C850 910 900 950 960 975C1000 990 1050 990 1085 982C1080 1030 1020 1075 950 1075C880 1075 820 1020 735 945C710 910 700 880 680 870C630 790 560 730 500 690C440 655 410 625 396 605C395 570 410 535 440 508Z"/>
|
|
6
|
+
<path class="p-green" fill="#91D202" d="M545 285C535 340 540 390 580 435C620 475 700 510 775 583C820 630 840 700 835 760C825 830 780 900 700 945C620 995 530 1020 470 1075C445 1100 435 1130 436 1163C400 1100 410 1040 470 985C520 945 600 920 680 870C730 830 755 790 745 730C740 690 700 640 640 600C560 550 480 505 457 400C455 370 470 345 480 345C500 325 525 305 545 285Z"/>
|
|
7
|
+
<path class="p-orange" fill="#FC4E23" d="M1035 390C1055 440 1040 500 990 550C940 595 880 610 800 670C760 700 730 730 715 760L648 697C700 630 760 590 830 545C920 495 990 460 1035 390Z"/>
|
|
8
|
+
</svg>
|
|
9
|
+
`,je=1,B=["setup","plan","build","review","ship","continuity","knowledge"];function j(s,n){return`g-${s}-${n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}`}const Z=s=>typeof s=="object"&&s!==null&&!Array.isArray(s);function fe(s){if(s==null)return{kind:"missing"};if(!Z(s))return{kind:"error",message:"The guide data has an unexpected shape."};if(typeof s.error=="string")return{kind:"error",message:s.error};if(typeof s.schema=="number"&&s.schema>je)return{kind:"newer",schema:s.schema};for(const t of["commands","agents","skills","hooks"])if(!Array.isArray(s[t]))return{kind:"error",message:`The guide data has no "${t}" list.`};if(!Z(s.coverage))return{kind:"error",message:'The guide data has no "coverage" list.'};const n=s.commands.map(t=>({...t,steps:Array.isArray(t.steps)?t.steps:[],scripts:Array.isArray(t.scripts)?t.scripts:[]}));return{kind:"ok",guide:{...s,commands:n}}}const ke=["commands","agents","skills","hooks","runtimes"],re={commands:"Commands",agents:"Agents",skills:"Skills",hooks:"Hooks",runtimes:"Runtimes"};function oe(s){const n=new Map;for(const t of["commands","skills","agents"])for(const i of s.coverage[t]??[])n.set(i,[...n.get(i)??[],t]);return[...n.entries()].sort(([t],[i])=>t.localeCompare(i)).map(([t,i])=>({name:t,kinds:i}))}const ye=["setup","plan","build","review","ship"],be=["continuity","knowledge"],P={setup:"Setup",plan:"Plan",build:"Build",review:"Review",ship:"Ship",continuity:"Continuity",knowledge:"Knowledge",other:"Other"};function I(s){const n=s.indexOf(". "),t=(n>=0?s.slice(0,n+1):s).trim();return t.length>90?`${t.slice(0,89)}…`:t}function Ne(s){return{kind:"command",name:s.name,blurb:I(s.description),daily:s.daily,anchor:j("command",s.name)}}function O(s){return[...s].sort((n,t)=>Number(t.daily)-Number(n.daily)||n.name.localeCompare(t.name)).map(Ne)}function we(s){const n=new Set(B),t=ye.map(r=>({id:r,label:P[r],flow:!0,commands:O(s.commands.filter(h=>h.stage===r))})),i=be.map(r=>({id:r,label:P[r],flow:!1,commands:O(s.commands.filter(h=>h.stage===r))})),m=O(s.commands.filter(r=>!n.has(r.stage)));m.length>0&&i.push({id:"other",label:P.other,flow:!1,commands:m});const a=r=>({kind:"agent",name:r.name,blurb:I(r.description),daily:!1,anchor:j("agent",r.name)}),l=s.agents.filter(r=>!r.writes).sort((r,h)=>r.name.localeCompare(h.name)).map(a),c=s.agents.filter(r=>r.writes).sort((r,h)=>r.name.localeCompare(h.name)).map(a),p=new Map;for(const r of s.skills)p.set(r.category,(p.get(r.category)??0)+1);const u=[...p.entries()].sort(([r,h],[y,v])=>v-h||r.localeCompare(y)).map(([r,h])=>({kind:"skillCategory",name:r,blurb:"",daily:!1,anchor:j("skillCategory",r),count:h})),g=new Map;for(const r of s.hooks)g.set(r.event,(g.get(r.event)??0)+1);const d=[...g.entries()].sort(([r],[h])=>r.localeCompare(h)).map(([r,h])=>({event:r,count:h}));return{version:s.version,flow:t,bands:i,agentsReadOnly:l,agentsWrite:c,skillCategories:u,hooks:d,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hooks:s.hooks.length}}}function w(s){const n=Math.round(s*10)/10;return Object.is(n,-0)?0:n}function ve(s,n){const t=n/2,i=[{id:"root",label:"caddis",kind:"root",anchor:null,x:w(t),y:w(t),r:w(.06*n),parent:null}],m=[...s.flow.map(u=>({id:`stage-${u.id}`,label:u.label,kind:"stage",leaves:u.commands.map(g=>({kind:"command",name:g.name,anchor:j("command",g.name)}))})),...s.bands.map(u=>({id:`stage-${u.id}`,label:u.label,kind:"stage",leaves:u.commands.map(g=>({kind:"command",name:g.name,anchor:j("command",g.name)}))})),{id:"agents",label:"Agents",kind:"group",leaves:[...s.agentsReadOnly,...s.agentsWrite].map(u=>({kind:"agent",name:u.name,anchor:j("agent",u.name)}))},{id:"skills",label:"Skills",kind:"group",leaves:s.skillCategories.map(u=>({kind:"skillCategory",name:u.name,anchor:j("skillCategory",u.name)}))},{id:"hooks",label:"Hooks",kind:"group",leaves:s.hooks.map(u=>({kind:"hook",name:u.event,anchor:j("hook",u.event)}))}],a=m.length,l=.24*n,c=w(.035*n),p=w(.012*n);return m.forEach((u,g)=>{const d=-90+g*360/a,r=d*Math.PI/180;i.push({id:u.id,label:u.label,kind:u.kind,anchor:null,x:w(t+l*Math.cos(r)),y:w(t+l*Math.sin(r)),r:c,parent:"root"});const h=u.leaves.length;u.leaves.forEach((y,v)=>{const T=(d+(h===1?0:(v/(h-1)-.5)*(300/a)))*Math.PI/180,R=(v%2===0?.4:.45)*n;i.push({id:`${y.kind}-${y.name}`,label:y.name,kind:y.kind,anchor:y.anchor,x:w(t+R*Math.cos(T)),y:w(t+R*Math.sin(T)),r:p,parent:u.id})})}),i}const K={setup:"Setup",plan:"Plan",build:"Build",review:"Review",ship:"Ship",continuity:"Continuity",knowledge:"Knowledge",other:"Other"};function S(s,...n){return s?n.some(t=>t!==void 0&&t.toLowerCase().includes(s)):!0}function Ce(s){const n=new Map;for(const i of s){const m=i.stage||"other",a=n.get(m)??[];a.push(i),n.set(m,a)}const t=[];for(const i of B){const m=n.get(i);m&&m.length>0&&(t.push([i,m]),n.delete(i))}for(const[i,m]of n.entries())m.length>0&&t.push([i,m]);return t}function Se(s){const n=new Map;for(const t of s){const i=t.category||"uncategorised",m=n.get(i)??[];m.push(t),n.set(i,m)}return Array.from(n.entries())}function M({id:s,total:n,shown:t,isFiltered:i}){return e.jsxs("h2",{children:[re[s]," ",e.jsx("span",{className:"guide-count","data-testid":`guide-count-${s}`,children:n}),i&&e.jsxs(e.Fragment,{children:[" ",e.jsx("span",{className:"guide-shown","data-testid":`guide-shown-${s}`,children:`${t} of ${n}`})]})]})}function Me({guide:s,item:n,initialFilter:t=""}){var H,G,W,U;const[i,m]=k.useState(t),a=i.trim().toLowerCase(),l=a.length>0;k.useEffect(()=>{var C;if(!n||typeof document>"u")return;const o=document.getElementById(n);if(!o)return;o.tagName==="DETAILS"&&(o.open=!0);const b=(C=o.parentElement)==null?void 0:C.closest("details");b&&(b.open=!0),typeof o.scrollIntoView=="function"&&o.scrollIntoView({block:"start"}),o.classList.add("is-target");const x=window.setTimeout(()=>{o.classList.remove("is-target")},2e3);return()=>window.clearTimeout(x)},[n]);const c=o=>{var b,x;typeof document>"u"||(x=document.getElementById(`guide-${o}`))==null||x.scrollIntoView({block:"start",behavior:typeof window<"u"&&((b=window.matchMedia)!=null&&b.call(window,"(prefers-reduced-motion: reduce)").matches)?"auto":"smooth"})},p=k.useMemo(()=>s.commands.filter(o=>S(a,o.name,o.description,o.stage)),[s.commands,a]),u=k.useMemo(()=>s.agents.filter(o=>S(a,o.name,o.description)),[s.agents,a]),g=k.useMemo(()=>s.skills.filter(o=>S(a,o.name,o.description,o.category)),[s.skills,a]),d=k.useMemo(()=>s.hooks.filter(o=>S(a,o.event,o.matcher,o.handler)),[s.hooks,a]),r=k.useMemo(()=>Ce(p),[p]),h=k.useMemo(()=>Se(g),[g]),y=k.useMemo(()=>oe(s),[s]),v=k.useMemo(()=>y.filter(o=>S(a,o.name,...o.kinds)),[y,a]),D=((H=s.counts)==null?void 0:H.commands)??s.commands.length,T=((G=s.counts)==null?void 0:G.agents)??s.agents.length,R=((W=s.counts)==null?void 0:W.skills)??s.skills.length,he=((U=s.counts)==null?void 0:U.hooks)??s.hooks.length,ue=y.length,pe=p.length+u.length+g.length+d.length+v.length,F=new Set;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"guide-tools",children:[e.jsxs("label",{className:"guide-filter",children:[e.jsx("span",{className:"guide-filter-label",children:"Filter the guide"}),e.jsx("input",{type:"search",className:"guide-filter-input",value:i,placeholder:"Name, purpose, stage or hook",onChange:o=>m(o.target.value),"data-testid":"guide-filter"})]}),e.jsx("nav",{className:"guide-chips","aria-label":"Guide sections",children:ke.map(o=>e.jsx("button",{type:"button",className:"guide-jump",onClick:()=>c(o),children:re[o]},o))}),e.jsx("p",{className:"guide-note",children:"Invoke forms are for Claude Code. Other runtimes list the same names in their own way."})]}),l&&pe===0&&e.jsxs("p",{className:"notice","data-testid":"guide-nomatch",children:["Nothing matches ",e.jsx("code",{className:"cmd",children:i}),"."]}),e.jsxs("section",{className:"gd-section",id:"guide-commands",children:[e.jsx(M,{id:"commands",total:D,shown:p.length,isFiltered:l}),r.map(([o,b])=>e.jsxs("div",{className:"guide-group",children:[e.jsx("h3",{className:"gd-stage",children:K[o]??K.other??o}),b.map(x=>{const C=j("command",x.name);return e.jsxs("details",{className:"gd-item",id:C,open:n===C||void 0,"data-testid":"guide-entry",children:[e.jsxs("summary",{children:[e.jsxs("code",{className:"gd-name",children:["/caddis:",x.name]}),e.jsx("span",{className:"gd-blurb",children:I(x.description)}),x.daily&&e.jsx("span",{className:"guide-chip good",children:"daily"}),x.noArgs&&e.jsx("span",{className:"guide-chip",children:"no args"})]}),e.jsx("p",{children:x.description}),x.steps.length>0&&e.jsx("ol",{className:"gd-steps",children:x.steps.map(([N,ge],xe)=>e.jsxs("li",{children:[N," ",ge]},`${N}-${xe}`))}),x.hint&&e.jsx("p",{className:"gd-hint",children:x.hint})]},x.name)})]},o))]}),e.jsxs("section",{className:"gd-section",id:"guide-agents",children:[e.jsx(M,{id:"agents",total:T,shown:u.length,isFiltered:l}),e.jsxs("table",{className:"gd-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Agent"}),e.jsx("th",{children:"What it does"}),e.jsx("th",{children:"Access"}),e.jsx("th",{children:"Model"})]})}),e.jsx("tbody",{children:u.map(o=>e.jsxs("tr",{id:j("agent",o.name),"data-testid":"guide-entry",children:[e.jsx("td",{children:e.jsx("code",{children:o.name})}),e.jsx("td",{children:o.description}),e.jsx("td",{children:o.writes?"writes files":"read only"}),e.jsx("td",{children:o.model})]},o.name))})]})]}),e.jsxs("section",{className:"gd-section",id:"guide-skills",children:[e.jsx(M,{id:"skills",total:R,shown:g.length,isFiltered:l}),h.map(([o,b])=>{const x=j("skillCategory",o),C=l||n===x||b.some(N=>j("skill",N.name)===n);return e.jsxs("details",{className:"gd-group",id:x,open:C||void 0,children:[e.jsxs("summary",{children:[o," · ",b.length]}),b.map(N=>e.jsxs("div",{className:"gd-skill",id:j("skill",N.name),"data-testid":"guide-entry",children:[e.jsx("code",{children:N.name}),N.core&&e.jsx("span",{className:"guide-chip good",children:"core"}),e.jsx("span",{className:"gd-blurb",children:I(N.description)})]},N.name))]},o)})]}),e.jsxs("section",{className:"gd-section",id:"guide-hooks",children:[e.jsx(M,{id:"hooks",total:he,shown:d.length,isFiltered:l}),e.jsxs("table",{className:"gd-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Event"}),e.jsx("th",{children:"Matcher"}),e.jsx("th",{children:"Handler"})]})}),e.jsx("tbody",{children:d.map((o,b)=>{const x=!F.has(o.event);return x&&F.add(o.event),e.jsxs("tr",{id:x?j("hook",o.event):void 0,"data-testid":"guide-entry",children:[e.jsx("td",{children:o.event}),e.jsx("td",{children:o.matcher}),e.jsx("td",{children:o.handler})]},`${o.event}-${o.matcher}-${o.handler}-${b}`)})})]})]}),e.jsxs("section",{className:"gd-section",id:"guide-runtimes",children:[e.jsx(M,{id:"runtimes",total:ue,shown:v.length,isFiltered:l}),e.jsx("p",{className:"guide-note",children:"caddis install and caddis update put these on each runtime."}),e.jsx("ul",{className:"guide-list",children:v.map(o=>e.jsxs("li",{className:"guide-entry","data-testid":"guide-entry",children:[e.jsx("div",{className:"guide-entry-head",children:e.jsx("span",{className:"guide-entry-name",children:o.name})}),e.jsx("p",{className:"guide-entry-purpose",children:`Receives: ${o.kinds.join(", ")}`})]},o.name))})]})]})}const Ae=["plan","build","review","ship","continuity","knowledge","setup"],Ee=["plan","build","review","ship"],V={plan:["Plan","decide what to build"],build:["Build","write the code"],review:["Review","catch bugs first"],ship:["Ship","PR · CI · merge"],continuity:["Continuity","never lose your place"],knowledge:["Knowledge","write it down once"],setup:["Setup","once per repo or machine"],other:["Other","everything else"]},q=44;function L(s){const n=s.replace(/^Use this (agent|skill) (periodically(?: \([^)]*\))? |to |when |after |for )?(to )?/i,""),i=((n===s?n:n.charAt(0).toUpperCase()+n.slice(1)).split(/ [—–-] |\. |; | \(/)[0]??"").trim().replace(/[.:,;]+$/,"");if(i.length<=q)return i;const m=i.slice(0,q),a=m.lastIndexOf(" ");return`${(a>20?m.slice(0,a):m).replace(/[.:,;]+$/,"")}…`}function X(s){return{kind:"command",name:s.name,daily:s.daily,blurb:L(s.description),anchor:j("command",s.name)}}const $e=(s,n)=>Number(n.daily)-Number(s.daily)||s.name.localeCompare(n.name);function Te(s){const n=new Set(B),t=a=>s.commands.filter(l=>a==="other"?!n.has(l.stage):l.stage===a).sort($e),i=[...Ae,"other"].map(a=>({id:a,label:V[a][0],sub:V[a][1],kind:"command",rows:t(a).map(X)}));i.push({id:"agents",label:"Agents",sub:'say "use the … agent"',kind:"agent",rows:[...s.agents].sort((a,l)=>a.name.localeCompare(l.name)).map(a=>({kind:"agent",name:a.name,daily:!1,blurb:L(a.description),anchor:j("agent",a.name)}))});const m=Ee.flatMap(a=>t(a).filter(l=>l.daily).map(X));return{version:s.version,generated:s.generated,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hooks:s.hooks.length},loop:m,cards:i.filter(a=>a.rows.length>0)}}const Q=["plan","build","review","ship"],Y=["continuity","knowledge","setup"],z={plan:["Plan","decide what to build"],build:["Build","write the code"],review:["Review","catch bugs first"],ship:["Ship","PR · CI · merge"],continuity:["Continuity","never lose your place"],knowledge:["Knowledge","write it down once"],setup:["Setup","once per repo or machine"],other:["Other","everything else"]},J=["SessionStart","UserPromptSubmit","PreToolUse","PermissionRequest","PostToolUse","PostToolUseFailure","Notification","SubagentStop","Stop","PreCompact","SessionEnd"],A=(...s)=>s.join(" ").toLowerCase(),Re=(s,n)=>Number(n.daily)-Number(s.daily)||s.name.localeCompare(n.name);function ee(s){const n=s.trim();return n.split(/[\\/]/).pop()||n}function se(s){const n=J.indexOf(s);return n>=0?n:J.length}const ne=s=>[...new Set(s)].sort((n,t)=>n.localeCompare(t));function ce(s,n){const t=s.trim().toLowerCase().split(/\s+/).filter(Boolean),i=n.toLowerCase();return t.every(m=>i.includes(m))}function Ie(s){const n=new Set([...Q,...Y]),t=d=>s.commands.filter(r=>d==="other"?!n.has(r.stage):r.stage===d).sort(Re),i=d=>{const r=t(d).map(h=>({name:h.name,daily:h.daily,blurb:L(h.description),anchor:j("command",h.name),search:A(h.name,h.description,h.hint,h.stage)}));return{id:d,label:z[d][0],sub:z[d][1],count:r.length,commands:r}},m=d=>d.count>0,a=new Map;for(const d of s.hooks){const r=a.get(d.event)??{handlers:[],matchers:[]};r.handlers.push(ee(d.handler)),d.matcher.trim()&&r.matchers.push(d.matcher),a.set(d.event,r)}const l=[...a.keys()].sort((d,r)=>se(d)-se(r)||d.localeCompare(r)).map(d=>{const r=a.get(d),h=ne(r.handlers),y=ne(r.matchers);return{event:d,anchor:j("hook",d),handlers:h,matchers:y,search:A(d,...h,...y)}}),c=[...s.agents].sort((d,r)=>d.name.localeCompare(r.name)).map(d=>({name:d.name,model:d.model,writes:d.writes,blurb:L(d.description),anchor:j("agent",d.name),search:A(d.name,d.description,d.model)})),p=new Map;for(const d of s.skills){const r=d.category||"uncategorised";p.set(r,[...p.get(r)??[],d])}const u=[...p.entries()].map(([d,r])=>({id:d,anchor:j("skillCategory",d),count:r.length,skills:[...r].sort((h,y)=>Number(y.core)-Number(h.core)||h.name.localeCompare(y.name)).map(h=>({name:h.name,core:h.core,anchor:j("skill",h.name),search:A(h.name,h.description,d)}))})).sort((d,r)=>r.count-d.count||d.id.localeCompare(r.id)),g=oe(s).map(d=>({...d,search:A(d.name,...d.kinds)}));return{version:s.version,generated:s.generated,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hookEvents:l.length,hookScripts:new Set(s.hooks.map(d=>ee(d.handler))).size,runtimes:g.length},loop:Q.map(i).filter(m),support:[...Y,"other"].map(i).filter(m),hooks:l,agents:c,skills:u,runtimes:g}}function Le(s,n){const t=a=>ce(n,a.search),i=[...s.loop,...s.support].reduce((a,l)=>a+l.commands.filter(t).length,0),m=s.skills.reduce((a,l)=>a+l.skills.filter(t).length,0);return i+s.hooks.filter(t).length+s.agents.filter(t).length+m+s.runtimes.filter(t).length}const E=(s,n,t)=>ce(n,t)?s:`${s} gm-dim`;function ae({stage:s,query:n,arrow:t}){return e.jsxs("section",{className:`gm-stage gm-s-${s.id}${t?" has-arrow":""}`,"aria-label":s.label,children:[e.jsxs("h3",{children:[s.label," ",e.jsx("small",{children:s.sub}),e.jsx("span",{className:"gm-count",children:s.count})]}),e.jsx("ul",{className:"gm-list",children:s.commands.map(i=>e.jsxs("li",{className:E("gm-item",n,i.search),children:[e.jsxs("a",{className:i.daily?"gm-name is-daily":"gm-name",href:f("details",i.anchor),children:["/",i.name]}),e.jsx("span",{className:"gm-blurb",children:i.blurb})]},i.name))})]})}function Pe({guide:s}){const n=k.useMemo(()=>Ie(s),[s]),[t,i]=k.useState(""),m=t.trim()!=="",a=k.useMemo(()=>Le(n,t),[n,t]),l=[[n.counts.commands,"commands"],[n.counts.agents,"agents"],[n.counts.skills,"skills"],[n.counts.hookEvents,"hook events"],[n.counts.hookScripts,"hook scripts"],[n.counts.runtimes,"runtimes"]];return e.jsxs("div",{className:"gm","data-testid":"guide-map",children:[e.jsxs("div",{className:"gm-bar",children:[e.jsxs("label",{className:"gm-filter",children:[e.jsx("span",{className:"guide-filter-label",children:"Filter the map"}),e.jsx("input",{className:"guide-filter-input",type:"search",value:t,placeholder:"name, word or model","data-testid":"guide-map-filter",onChange:c=>i(c.target.value)})]}),e.jsx("p",{className:"gm-matches","aria-live":"polite","data-testid":"guide-map-matches",children:m?`${a} ${a===1?"match":"matches"}`:""}),e.jsx("button",{type:"button",className:"gm-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:"gm-sheet","data-testid":"guide-map-sheet",children:[e.jsxs("header",{className:"gm-head",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"gm-eyebrow",children:["caddis ",n.version," · generated ",n.generated]}),e.jsx("h2",{className:"gm-title",children:"caddis plugin map"}),e.jsx("p",{className:"gm-lede",children:"What the plugin puts into a session: the commands you type, the hooks that run by themselves, the agents, the skills, and where it is installed. Click any name for its details."})]}),e.jsx("dl",{className:"gm-stats",children:l.map(([c,p])=>e.jsxs("div",{children:[e.jsx("dt",{children:p}),e.jsx("dd",{children:c})]},p))})]}),n.loop.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"The daily loop",children:[e.jsxs("h2",{className:"gm-h",children:["The daily loop ",e.jsx("small",{children:"★ = a daily command"})]}),e.jsx("div",{className:"gm-loop",children:n.loop.map((c,p)=>e.jsx(ae,{stage:c,query:t,arrow:p<n.loop.length-1},c.id))})]}),n.support.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Support lanes",children:[e.jsxs("h2",{className:"gm-h",children:["Support lanes ",e.jsx("small",{children:"around the loop"})]}),e.jsx("div",{className:"gm-lanes",children:n.support.map(c=>e.jsx(ae,{stage:c,query:t,arrow:!1},c.id))})]}),n.hooks.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Hooks across a session",children:[e.jsxs("h2",{className:"gm-h",children:["Hooks across a session ",e.jsx("small",{children:"run by themselves, in the order a session fires them"})]}),e.jsx("ol",{className:"gm-timeline",children:n.hooks.map(c=>e.jsxs("li",{className:E("gm-event",t,c.search),children:[e.jsx("a",{className:"gm-name",href:f("details",c.anchor),children:c.event}),e.jsx("span",{className:"gm-matcher",children:c.matchers.join(" · ")}),e.jsx("ul",{className:"gm-handlers",children:c.handlers.map(p=>e.jsx("li",{children:p},p))})]},c.event))})]}),n.agents.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Agents",children:[e.jsxs("h2",{className:"gm-h",children:["Agents ",e.jsx("small",{children:'say "use the … agent"'})]}),e.jsx("div",{className:"gm-agents",children:n.agents.map(c=>e.jsxs("div",{className:E("gm-agent",t,c.search),children:[e.jsxs("div",{className:"gm-agent-head",children:[e.jsx("a",{className:"gm-name",href:f("details",c.anchor),children:c.name}),c.model&&e.jsx("span",{className:"gm-badge gm-model",children:c.model}),c.writes&&e.jsx("span",{className:"gm-badge gm-writes",children:"writes files"})]}),e.jsx("span",{className:"gm-blurb",children:c.blurb})]},c.name))})]}),n.skills.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Skills",children:[e.jsxs("h2",{className:"gm-h",children:["Skills ",e.jsx("small",{children:"by family · core skills first"})]}),e.jsx("div",{className:"gm-families",children:n.skills.map(c=>e.jsxs("div",{className:"gm-family",children:[e.jsxs("h3",{children:[e.jsx("a",{href:f("details",c.anchor),children:c.id}),e.jsx("span",{className:"gm-count",children:c.count})]}),e.jsx("div",{className:"gm-chips",children:c.skills.map(p=>e.jsx("a",{className:E(p.core?"gm-chip is-core":"gm-chip",t,p.search),href:f("details",p.anchor),children:p.name},p.name))})]},c.id))})]}),n.runtimes.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Runtimes",children:[e.jsxs("h2",{className:"gm-h",children:["Runtimes ",e.jsx("small",{children:"where caddis is installed"})]}),e.jsx("div",{className:"gm-runtimes",children:n.runtimes.map(c=>e.jsxs("a",{className:E("gm-runtime",t,c.search),href:f("details","guide-runtimes"),children:[e.jsx("b",{children:c.name}),e.jsx("span",{children:c.kinds.join(" · ")})]},c.name))})]}),e.jsxs("footer",{className:"gm-foot",children:["Built from caddis ",n.version," · generated ",n.generated,". It updates when caddis updates."]})]})]})}const de=1e3,$=de/2;function te(s){const n=Math.round(s*10)/10;return Object.is(n,-0)?0:n}function le(s,n){const t=s.x-$,i=s.y-$,m=Math.hypot(t,i)||1,a=s.r+n;return{x:te(s.x+t/m*a),y:te(s.y+i/m*a)}}function Oe({model:s}){var m,a;const n=ve(s,de),t=new Map(n.map(l=>[l.id,l])),i=typeof document>"u"||((a=(m=document.documentElement)==null?void 0:m.dataset)==null?void 0:a.motion)!=="off";return e.jsxs("svg",{className:"gp-map",viewBox:"0 0 1000 1000",role:"img","aria-label":"caddis mind map",children:[n.map(l=>{if(!l.parent)return null;const c=t.get(l.parent);if(!c)return null;const p=l.kind==="stage"||l.kind==="group";return e.jsx("line",{x1:c.x,y1:c.y,x2:l.x,y2:l.y,stroke:"var(--border-dim)",strokeWidth:p?1.5:1},`line-${l.id}`)}),n.map(l=>{if(l.kind==="root")return e.jsxs("g",{children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--purple)"}),e.jsx("text",{x:l.x,y:l.y,textAnchor:"middle",dominantBaseline:"central",fill:"var(--bg-canvas)",fontFamily:"var(--font-head)",fontSize:28,fontWeight:700,children:l.label})]},l.id);if(l.kind==="stage"||l.kind==="group"){const g=le(l,22),d=l.x<$-60?"end":l.x>$+60?"start":"middle";return e.jsxs("g",{className:i?"gp-pulse":void 0,children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--purple)"}),e.jsx("text",{x:g.x,y:g.y,textAnchor:d,dominantBaseline:"central",fill:"var(--text-main)",fontFamily:"var(--font-head)",fontSize:18,fontWeight:600,children:l.label})]},l.id)}const c=le(l,8),p=l.x>=$?"start":"end",u=e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--bg-card)",stroke:"var(--purple)"}),e.jsx("text",{x:c.x,y:c.y,textAnchor:p,dominantBaseline:"central",fill:"var(--text-main)",fontFamily:"var(--font-body)",fontSize:11,children:l.label})]});return l.anchor!==null?e.jsxs("a",{href:f("details",l.anchor),children:[e.jsx("title",{children:l.label}),u]},l.id):e.jsx("g",{children:u},l.id)})]})}const _e=ie.replace("<svg ",'<svg class="caddis-mark-build" '),me="caddis.hub.posterMode";function Be(){try{return window.localStorage.getItem(me)==="mind"?"mind":"workflow"}catch{return"workflow"}}function De(s){try{window.localStorage.setItem(me,s)}catch{}}function Fe({guide:s}){const[n,t]=k.useState(()=>Be()),i=k.useMemo(()=>we(s),[s]),m=a=>{t(a),De(a)};return e.jsxs("div",{className:"gp","data-testid":"guide-poster",children:[e.jsxs("div",{className:"gp-head",children:[e.jsxs("div",{className:"gp-head-left",children:[e.jsx("span",{className:"guide-mark","aria-hidden":"true",dangerouslySetInnerHTML:{__html:_e}}),e.jsxs("div",{children:[e.jsx("h2",{className:"gp-title",children:"caddis at a glance"}),e.jsx("p",{className:"gp-counts",children:`${i.version} · ${i.counts.commands} commands · ${i.counts.agents} agents · ${i.counts.skills} skills · ${i.counts.hooks} hooks`})]})]}),e.jsxs("div",{className:"gp-switch",role:"group","aria-label":"Poster view",children:[e.jsx("button",{type:"button","aria-pressed":n==="workflow",onClick:()=>m("workflow"),children:"Workflow"}),e.jsx("button",{type:"button","aria-pressed":n==="mind",onClick:()=>m("mind"),children:"Mind map"})]}),e.jsx("button",{type:"button",className:"gp-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:n==="workflow"?"gp-workflow":"gp-workflow gp-hidden",children:[e.jsx("div",{className:"gp-flow",children:i.flow.map((a,l)=>e.jsxs("div",{className:"gp-stage",children:[e.jsxs("h3",{children:[e.jsx("span",{className:"gp-step",children:l+1}),e.jsx("span",{children:a.label})]}),e.jsx("div",{className:"gp-chips",children:a.commands.map(c=>e.jsxs("a",{className:c.daily?"gp-chip is-daily":"gp-chip",href:f("details",c.anchor),title:c.blurb,children:["/",c.name]},c.name))})]},a.id))}),e.jsx("div",{className:"gp-bands",children:i.bands.map(a=>e.jsxs("div",{className:"gp-band",children:[e.jsx("h3",{children:a.label}),e.jsx("div",{className:"gp-chips",children:a.commands.map(l=>e.jsxs("a",{className:l.daily?"gp-chip is-daily":"gp-chip",href:f("details",l.anchor),title:l.blurb,children:["/",l.name]},l.name))})]},a.id))}),e.jsxs("div",{className:"gp-foot",children:[e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Agents"}),e.jsx("h4",{className:"gp-sub",children:"Read only"}),e.jsx("div",{className:"gp-chips",children:i.agentsReadOnly.map(a=>e.jsx("a",{className:"gp-chip",href:f("details",a.anchor),title:a.blurb,children:a.name},a.name))}),e.jsx("h4",{className:"gp-sub",children:"Writes files"}),e.jsx("div",{className:"gp-chips",children:i.agentsWrite.map(a=>e.jsx("a",{className:"gp-chip",href:f("details",a.anchor),title:a.blurb,children:a.name},a.name))})]}),e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Skills"}),e.jsx("div",{className:"gp-chips",children:i.skillCategories.map(a=>e.jsxs("a",{className:"gp-chip",href:f("details",a.anchor),children:[a.name," · ",a.count]},a.name))})]}),e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Hooks"}),e.jsx("div",{className:"gp-hooks",children:i.hooks.map(a=>e.jsx("div",{className:"gp-hook-line",children:e.jsxs("a",{className:"gp-chip",href:f("details",j("hook",a.event)),children:[a.event," · ",a.count]})},a.event))})]})]})]}),e.jsx("div",{className:n==="mind"?"gp-map-wrap":"gp-map-wrap gp-hidden",children:e.jsx(Oe,{model:i})})]})}function He({row:s}){const n=s.kind==="command"?`/${s.name}`:s.name;return e.jsxs("div",{className:"gw-row",children:[e.jsx("a",{className:s.daily?"gw-name is-daily":"gw-name",href:f("details",s.anchor),children:n})," ",e.jsx("span",{className:"gw-blurb",children:s.blurb})]})}const Ge=.6,We=.04;function Ue(s){let n=1;for(s.style.setProperty("--gw-scale","1");s.scrollWidth>s.clientWidth+1&&n>Ge;)n=Math.round((n-We)*100)/100,s.style.setProperty("--gw-scale",String(n))}function Ze({guide:s}){const n=k.useMemo(()=>Te(s),[s]),t=k.useRef(null);k.useEffect(()=>{t.current&&Ue(t.current)},[n]);const i=[[n.counts.commands,"commands"],[n.counts.agents,"agents"],[n.counts.skills,"skills"],[n.counts.hooks,"hooks"],[n.version,"version"]];return e.jsxs("div",{className:"gw","data-testid":"guide-wall",children:[e.jsxs("div",{className:"gw-bar",children:[e.jsx("p",{children:"One A4 landscape sheet, built from the installed guide data. It updates when caddis updates."}),e.jsx("button",{type:"button",className:"gw-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:"gw-sheet","data-testid":"guide-wall-sheet",children:[e.jsxs("header",{className:"gw-head",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"gw-brand",children:["cad",e.jsx("span",{children:"dis"})]}),e.jsxs("span",{className:"gw-tag",children:["the dev harness — type ",e.jsx("b",{children:"/name"})," in a session · full name ",e.jsx("b",{children:"/caddis:name"})," · ★ = daily"]})]}),e.jsx("div",{className:"gw-stats",children:i.map(([m,a])=>e.jsxs("div",{children:[e.jsx("b",{children:m}),a]},a))})]}),e.jsx("div",{className:"gw-loop",children:n.loop.map(m=>e.jsxs("a",{className:"gw-step",href:f("details",m.anchor),children:[e.jsxs("b",{children:["/",m.name]}),e.jsx("span",{children:m.blurb})]},m.name))}),e.jsx("div",{className:"gw-cards",ref:t,children:n.cards.map(m=>e.jsxs("section",{className:`gw-card gw-${m.id}`,children:[e.jsxs("h2",{children:[m.label," ",e.jsx("small",{children:m.sub})]}),m.rows.map(a=>e.jsx(He,{row:a},`${a.kind}-${a.name}`))]},m.id))}),e.jsxs("footer",{className:"gw-foot",children:[e.jsxs("span",{children:["Built from caddis ",n.version," · generated ",n.generated,". Click any name for its details."]}),e.jsxs("span",{children:["Day: ",e.jsx("b",{children:"/catchup"})," → work → ",e.jsx("b",{children:"/handoff"})]})]})]})]})}const Ke="Guide data is not ready yet. The hub collects it in the first minute.",Ve="npm i -g @caddis/cli@latest",qe=ie.replace("<svg ",'<svg class="caddis-mark-build" ');function _({title:s,children:n}){return e.jsxs("div",{className:"notice","data-testid":"guide-state","aria-live":"polite",children:[e.jsx("h2",{className:"guide-state-title",children:s}),e.jsx("p",{children:n})]})}function Qe({guide:s,versions:n,tab:t="poster",item:i=null,initialFilter:m}){const a=fe(s);let l;a.kind==="missing"?l=e.jsx(_,{title:"Guide data missing",children:Ke}):a.kind==="error"?l=e.jsx(_,{title:"The guide could not be read",children:e.jsxs(e.Fragment,{children:[a.message," Run ",e.jsx("code",{className:"cmd",children:"caddis doctor"})," to check the install."]})}):a.kind==="newer"?l=e.jsx(_,{title:"The guide is newer than this hub",children:e.jsxs(e.Fragment,{children:["The data has schema ",a.schema,". Update the hub: ",e.jsx("code",{className:"cmd",children:Ve})]})}):t==="poster"?l=e.jsx(Fe,{guide:a.guide}):t==="wall"?l=e.jsx(Ze,{guide:a.guide}):t==="map"?l=e.jsx(Pe,{guide:a.guide}):l=e.jsx(Me,{guide:a.guide,item:i,initialFilter:m});const c=a.kind==="ok"?a.guide:null;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"guide-hero",children:[e.jsx("span",{className:"guide-mark","aria-hidden":"true",dangerouslySetInnerHTML:{__html:qe}}),e.jsxs("div",{children:[e.jsx("h1",{className:"page-title",children:"caddis guide"}),e.jsx("p",{className:"page-subtitle","data-testid":"guide-version",children:c?`caddis ${c.version} (installed pool) · generated ${c.generated} · hub ${n.hub}`:`hub ${n.hub}`})]})]}),e.jsxs("div",{className:"guide-tabs",role:"tablist",children:[e.jsx("a",{role:"tab",href:f("poster"),"aria-selected":t==="poster",children:"Poster"}),e.jsx("a",{role:"tab",href:f("details"),"aria-selected":t==="details",children:"Details"}),e.jsx("a",{role:"tab",href:f("wall"),"aria-selected":t==="wall",children:"Wall poster"}),e.jsx("a",{role:"tab",href:f("map"),"aria-selected":t==="map",children:"Map"})]}),l]})}export{Qe as Guide,Ke as MISSING_TEXT,Ve as UPDATE_HINT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.guide-hero{display:flex;align-items:center;gap:16px;margin-bottom:16px}.guide-mark{flex:none;width:56px;height:56px}.guide-mark svg{width:100%;height:100%}.guide-tools{display:grid;gap:12px;margin-bottom:20px}.guide-filter{display:grid;gap:4px}.guide-filter-label{font-size:13px;color:var(--text-sub)}.guide-filter-input{width:100%;min-height:40px;padding:0 12px;border-radius:8px;border:1px solid var(--border-bright);background:var(--bg-card);color:var(--text-main);font:inherit}.guide-filter-input:focus-visible,.guide-jump:focus-visible{outline:2px solid var(--green);outline-offset:2px}.guide-chips{display:flex;flex-wrap:wrap;gap:8px}.guide-jump{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--border-bright);background:transparent;color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.guide-jump:hover{background:var(--bg-elevated)}.guide-note{margin:0;font-size:13px;color:var(--text-dim)}.guide-section{margin-bottom:28px}.guide-section-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin:0 0 12px;font-size:20px}.guide-count,.guide-shown{font-size:13px;font-weight:600;color:var(--text-sub)}.guide-group-title{margin:16px 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-sub)}.guide-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:10px;margin:0;padding:0;list-style:none}.guide-entry{display:grid;gap:6px;min-width:0;padding:12px 14px;border-radius:10px;border:1px solid var(--border-dim);background:var(--bg-card)}.guide-entry-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.guide-entry-name{font-weight:700;overflow-wrap:anywhere}.guide-entry-purpose{margin:0;font-size:14px;color:var(--text-sub);overflow-wrap:anywhere}.guide-entry-invoke{font-family:var(--font-mono);font-size:12.5px;color:var(--text-main);overflow-wrap:anywhere;white-space:pre-wrap}.guide-chip{padding:1px 8px;border-radius:999px;border:1px solid var(--border-bright);font-size:12px;color:var(--text-sub);white-space:nowrap}.guide-chip.good{color:var(--text-main);border-color:var(--green)}.guide-chip.warn{color:var(--text-main);border-color:var(--mk-warn)}.guide-none{color:var(--text-sub)}.guide-state-title{margin:0 0 6px;font-size:18px}.guide-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border-dim);margin-bottom:20px}.guide-tabs [role=tab]{padding:8px 14px;border-bottom:2px solid transparent;text-decoration:none;color:inherit}.guide-tabs [role=tab][aria-selected=true]{border-bottom:2px solid var(--purple);color:var(--purple)}.gd-section{margin-bottom:28px}.gd-item summary{display:grid;grid-template-columns:minmax(180px,240px) 1fr auto;grid-auto-flow:column;gap:12px;padding:8px 0;cursor:pointer;align-items:baseline}.gd-blurb{color:var(--text-sub)}@media(max-width:560px){.gd-item summary{display:flex;flex-wrap:wrap;gap:4px 8px}.gd-item summary .gd-blurb{order:1;flex:0 0 100%}}.gd-stage{font-family:var(--font-head);font-size:15px;font-weight:600;margin:20px 0 6px}.gd-steps{margin:8px 0 8px 22px}.gd-hint{font-family:var(--font-mono);color:var(--text-sub)}.gd-group{border:1px solid var(--border-dim);border-radius:8px;padding:8px 12px;margin-bottom:8px}.gd-group summary{cursor:pointer;font-weight:600}.gd-skill{display:flex;align-items:baseline;gap:10px;padding:4px 0}.gd-table{width:100%;border-collapse:collapse}.gd-table th,.gd-table td{padding:6px 8px;border-bottom:1px solid var(--border-dim);text-align:left;vertical-align:top}.is-target{outline:2px solid var(--purple);outline-offset:4px}.gp-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-bottom:18px}.gp-head-left{display:flex;align-items:center;gap:16px;min-width:0}.gp-title{font-family:var(--font-head);margin:0 0 4px;font-size:20px}.gp-counts{margin:0;font-size:13px;color:var(--text-sub)}.gp-switch{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card);margin-left:auto}.gp-print{padding:6px 14px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card);color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.gp-print:hover{border-color:var(--purple)}.gp-hidden{display:none}.gp-switch button{padding:6px 12px;border:0;border-radius:999px;background:transparent;color:var(--text-sub);font:inherit;font-size:13px;cursor:pointer}.gp-switch button[aria-pressed=true]{background:var(--purple);color:var(--bg-canvas);font-weight:600}.gp-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.gp-stage,.gp-band,.gp-card{background:var(--bg-card);border:1px solid var(--border-dim);border-radius:12px;padding:14px;min-width:0}.gp-stage{position:relative}.gp-stage:not(:last-child):after{content:"→";position:absolute;right:-12px;top:14px;color:var(--text-sub);pointer-events:none}.gp-stage h3,.gp-band h3,.gp-card h3{font-family:var(--font-head);display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:16px}.gp-step{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--border-dim);font-size:12px;color:var(--text-sub);flex-shrink:0}.gp-sub{font-family:var(--font-head);font-size:13px;color:var(--text-sub);margin:8px 0 6px}.gp-bands{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:18px}.gp-foot{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:18px}.gp-chip{display:inline-block;padding:3px 8px;border-radius:999px;border:1px solid var(--border-dim);margin:0 6px 6px 0;font-family:var(--font-mono);font-size:13px;color:var(--text-main);text-decoration:none;max-width:100%;overflow-wrap:anywhere}.gp-chip:hover{border-color:var(--purple)}.gp-chip.is-daily{font-size:15px;font-weight:600}@media(max-width:900px){.gp-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.gp-stage:not(:last-child):after{display:none}}@media(max-width:560px){.gp-flow{grid-template-columns:1fr}}.gp-map-wrap{max-width:1000px;margin:0 auto}.gp-map{display:block;width:100%;height:auto;overflow:visible}.gp-map a{text-decoration:none}@keyframes gp-pulse{0%{opacity:.85}to{opacity:1}}.gp-pulse{animation:gp-pulse 3s ease-in-out infinite alternate!important}html[data-motion=off] .gp-pulse{animation:none!important}@page{size:A3 landscape;margin:10mm}@media print{.app-bar,.mobile-topbar,.drawer-backdrop,.sidebar,.sidebar-top,.sidebar-footer,.banners,.banner,nav,footer,.guide-tabs,.gp-switch,.gp-print,.guide-hero{display:none!important}.main-area{margin-left:0!important}.page-wrap{max-width:none;padding:0;gap:0}.gp-hidden{display:block!important}.gp-map-wrap{break-before:page;max-width:250mm;max-height:250mm}.gp-map{max-height:250mm;width:auto;margin:0 auto}a,.gp a{color:inherit;text-decoration:none}.gp-stage,.gp-band,.gp-card{break-inside:avoid}}.gw{display:flex;flex-direction:column;gap:12px;overflow-x:auto}.gw-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.gw-bar p{margin:0;color:var(--text-muted, #5d6677)}.gw-sheet{--ink: #1b2130;--muted: #5d6677;--line: #dde2ea;--plan: #2f7de1;--build: #1f9d6b;--review: #d9822b;--ship: #d6455d;--cont: #7a5af5;--know: #0f8c95;--setup: #6b7280;--accent: #6b4fd8;flex:none;width:297mm;height:210mm;box-sizing:border-box;padding:8mm 9mm 7mm;background:#fff;color:var(--ink);font:8.3pt/1.3 var(--font-body, system-ui, sans-serif);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:3.2mm;overflow:hidden;box-shadow:0 4px 24px #00000026;-webkit-print-color-adjust:exact;print-color-adjust:exact;page:wall}.gw-sheet a{color:inherit;text-decoration:none}.gw-head{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:2.5px solid var(--ink);padding-bottom:2mm}.gw-brand{font:800 30pt/1 var(--font-head, system-ui, sans-serif);letter-spacing:-1.5px}.gw-brand span{color:var(--accent)}.gw-tag{font-size:10pt;color:var(--muted);margin-left:4mm}.gw-stats{display:flex;gap:4mm;text-align:center}.gw-stats div{font-size:7pt;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}.gw-stats b{display:block;font-size:15pt;line-height:1;color:var(--ink)}.gw-loop{display:flex;gap:1.6mm}.gw-step{flex:1 1 0;min-width:0;border-radius:2mm;padding:1.6mm 2mm;color:#fff!important;background:var(--accent)}.gw-step b{display:block;font:700 9.5pt var(--font-mono, monospace)}.gw-step span{font-size:7pt}.gw-cards{--gw-scale: 1;font-size:calc(8.3pt * var(--gw-scale));columns:4;column-gap:2.6mm;min-height:0;overflow:hidden}.gw-card{break-inside:avoid;margin:0 0 2.6mm;border:1px solid var(--line);border-top:3px solid var(--c, var(--accent));border-radius:1.6mm;padding:1.6mm 2.2mm 1.8mm}.gw-plan{--c: var(--plan)}.gw-build{--c: var(--build)}.gw-review{--c: var(--review)}.gw-ship{--c: var(--ship)}.gw-continuity{--c: var(--cont)}.gw-knowledge{--c: var(--know)}.gw-setup,.gw-other,.gw-agents{--c: var(--setup)}.gw-card h2{margin:0 0 1mm;font-size:1.18em;color:var(--c);text-transform:uppercase;letter-spacing:.6px}.gw-card h2 small{color:var(--muted);font-weight:400;text-transform:none;letter-spacing:0;font-size:.85em}.gw-row{padding:.55mm 0;border-top:1px dotted var(--line)}.gw-row:first-of-type{border-top:0}.gw-name{font:600 .99em var(--font-mono, monospace);overflow-wrap:anywhere}.gw-name.is-daily:before{content:"★ ";color:#c99400}.gw-blurb{color:var(--muted);font-size:.89em}.gw-foot{display:flex;justify-content:space-between;gap:4mm;color:var(--muted);font-size:7pt;border-top:1px solid var(--line);padding-top:1.5mm}@page wall{size:A4 landscape;margin:0}@media print{.gw-bar{display:none!important}.gw{overflow:visible}.gw-sheet{box-shadow:none}}.gm{--gm-bg: var(--bg-card);--gm-ink: var(--text-main);--gm-muted: var(--text-sub);--gm-line: var(--border-dim);--gm-accent: var(--purple);--gm-plan: var(--cyan);--gm-build: var(--green);--gm-review: var(--orange);--gm-ship: var(--pink);--gm-continuity: var(--purple);--gm-knowledge: var(--yellow);--gm-setup: var(--text-dim);--gm-core: var(--yellow);display:flex;flex-direction:column;gap:14px;min-width:0}.gm a{color:inherit;text-decoration:none}.gm a:hover{text-decoration:underline}.gm a:focus-visible,.gm-print:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.gm-bar{display:flex;flex-wrap:wrap;align-items:end;gap:12px 16px}.gm-filter{display:grid;gap:4px;flex:1 1 260px;max-width:420px}.gm-matches{margin:0;min-height:40px;display:flex;align-items:center;font-size:13px;color:var(--text-sub)}.gm-print{margin-left:auto;min-height:40px;padding:0 16px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card);color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.gm-print:hover{border-color:var(--purple)}.gm-sheet{display:grid;gap:26px;min-width:0;padding:20px;border:1px solid var(--gm-line);border-radius:12px;background:var(--bg-lane);color:var(--gm-ink);page:map}.gm-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 24px;padding-bottom:14px;border-bottom:2px solid var(--gm-ink)}.gm-eyebrow{margin:0 0 4px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--gm-muted)}.gm-title{margin:0 0 6px;font-family:var(--font-head);font-size:clamp(26px,4vw,34px);line-height:1.1}.gm-lede{margin:0;max-width:64ch;color:var(--gm-muted)}.gm-stats{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0}.gm-stats div{min-width:0}.gm-stats dt{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--gm-muted)}.gm-stats dd{margin:0;font-family:var(--font-head);font-size:24px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.gm-section{display:grid;gap:12px;min-width:0}.gm-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;font-family:var(--font-head);font-size:20px}.gm-h small{font-size:13px;font-weight:400;color:var(--gm-muted)}.gm-loop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.gm-lanes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}.gm-stage{--c: var(--gm-accent);position:relative;min-width:0;padding:12px 14px 14px;border:1px solid var(--gm-line);border-top:4px solid var(--c);border-radius:8px;background:var(--gm-bg)}.gm-s-plan{--c: var(--gm-plan)}.gm-s-build{--c: var(--gm-build)}.gm-s-review{--c: var(--gm-review)}.gm-s-ship{--c: var(--gm-ship)}.gm-s-continuity{--c: var(--gm-continuity)}.gm-s-knowledge{--c: var(--gm-knowledge)}.gm-s-setup,.gm-s-other{--c: var(--gm-setup)}.gm-stage.has-arrow:after{content:"→";position:absolute;right:-16px;top:8px;width:14px;text-align:center;color:var(--gm-muted);pointer-events:none}.gm-stage h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0 0 8px;font-family:var(--font-head);font-size:16px;color:var(--c)}.gm-stage h3 small{font-size:12px;font-weight:400;color:var(--gm-muted)}.gm-count{margin-left:auto;font-size:12px;font-weight:600;color:var(--gm-muted);font-variant-numeric:tabular-nums}.gm-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}.gm-item{display:grid;gap:1px;min-width:0}.gm-name{font-family:var(--font-mono);font-size:13px;font-weight:600;overflow-wrap:anywhere}.gm-name.is-daily:before{content:"★ ";color:var(--gm-core)}.gm-blurb{font-size:12.5px;color:var(--gm-muted)}.gm-dim{opacity:.25}.gm-timeline{position:relative;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 0;margin:0;padding:0;list-style:none}.gm-event{position:relative;display:grid;align-content:start;gap:4px;min-width:0;padding:22px 12px 0 0}.gm-event:before{content:"";position:absolute;left:0;right:0;top:7px;height:2px;background:var(--gm-line)}.gm-event:after{content:"";position:absolute;left:0;top:1px;width:12px;height:12px;border-radius:50%;background:var(--gm-accent)}.gm-matcher{font-size:12px;color:var(--gm-muted);overflow-wrap:anywhere}.gm-handlers{display:grid;gap:2px;margin:0;padding:0;list-style:none;font-family:var(--font-mono);font-size:12px;overflow-wrap:anywhere}.gm-agents{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:10px}.gm-agent{display:grid;gap:4px;min-width:0;padding:10px 12px;border:1px solid var(--gm-line);border-radius:8px;background:var(--gm-bg)}.gm-agent-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}.gm-badge{padding:0 6px;border:1px solid var(--gm-line);border-radius:4px;font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--gm-muted);white-space:nowrap}.gm-model{color:var(--gm-accent);border-color:var(--gm-accent)}.gm-families{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:16px 22px}.gm-family{display:grid;align-content:start;gap:6px;min-width:0}.gm-family h3{display:flex;align-items:baseline;gap:8px;margin:0;font-size:14px}.gm-chips{display:flex;flex-wrap:wrap;gap:5px}.gm-chip{max-width:100%;padding:1px 7px;border:1px solid var(--gm-line);border-radius:4px;background:var(--gm-bg);font-family:var(--font-mono);font-size:12px;overflow-wrap:anywhere}.gm-chip.is-core{border-color:var(--gm-core);font-weight:600}.gm-runtimes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px}.gm-runtime{display:grid;gap:2px;min-width:0;padding:10px 12px;border:1px solid var(--gm-line);border-left:4px solid var(--gm-accent);border-radius:8px;background:var(--gm-bg)}.gm-runtime span{font-size:12.5px;color:var(--gm-muted)}.gm-foot{padding-top:10px;border-top:1px solid var(--gm-line);font-size:12px;color:var(--gm-muted)}@media(max-width:1000px){.gm-loop{grid-template-columns:repeat(2,minmax(0,1fr))}.gm-stage.has-arrow:after{display:none}}@media(max-width:700px){.gm-sheet{padding:14px 12px}.gm-loop{grid-template-columns:minmax(0,1fr)}.gm-timeline{grid-template-columns:minmax(0,1fr);padding-left:22px}.gm-event{padding:0 0 14px}.gm-event:before{left:-16px;right:auto;top:6px;bottom:-6px;width:2px;height:auto}.gm-event:last-child:before{display:none}.gm-event:after{left:-21px;top:4px;width:10px;height:10px}}@page map{size:A3 landscape;margin:8mm}@media print{.gm-bar{display:none!important}.gm{--gm-bg: #fff;--gm-ink: #1b2130;--gm-muted: #5d6677;--gm-line: #cfd5e0;--gm-accent: #6b4fd8;--gm-plan: #2f7de1;--gm-build: #1f9d6b;--gm-review: #d9822b;--gm-ship: #d6455d;--gm-continuity: #7a5af5;--gm-knowledge: #0f8c95;--gm-setup: #6b7280;--gm-core: #c99400;-webkit-print-color-adjust:exact;print-color-adjust:exact}.gm-sheet{padding:0;border:0;border-radius:0;background:#fff;gap:5mm;zoom:.85}.gm-list{gap:4px}.gm-h{break-after:avoid}.gm-stage,.gm-agent,.gm-family,.gm-event{break-inside:avoid}.gm-dim{opacity:1}}
|