@iamu-dev/iamu 0.2.0-beta.1 → 0.2.0-beta.10
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/dist/bin.js +2178 -330
- package/dist/commands/browse.d.ts +14 -0
- package/dist/commands/complete.d.ts +1 -0
- package/dist/commands/credentials.d.ts +1 -1
- package/dist/commands/doctor.d.ts +11 -2
- package/dist/commands/evaluate.d.ts +2 -0
- package/dist/commands/explore-crawl.d.ts +67 -0
- package/dist/commands/explore.d.ts +52 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/instructions-walk.d.ts +11 -1
- package/dist/commands/match.d.ts +1 -0
- package/dist/commands/new-entity.d.ts +13 -0
- package/dist/commands/start-run.d.ts +7 -2
- package/dist/eval/gemini-eval-cli.d.ts +10 -0
- package/dist/eval/gemini-eval-cli.js +976 -0
- package/dist/eval/gemini-walker.d.ts +46 -0
- package/dist/eval/walkthrough-evaluator.d.ts +61 -0
- package/dist/index.js +2174 -326
- package/dist/templates/prompts/walk.md +16 -4
- package/dist/templates/skills/iamu-findings.md +70 -32
- package/dist/templates/skills/iamu-new.md +123 -66
- package/dist/templates/skills/iamu-propose.md +60 -27
- package/dist/templates/skills/iamu-run.md +180 -60
- package/dist/templates/skills/iamu-setup.md +195 -117
- package/dist/templates/skills/iamu-status.md +21 -14
- package/package.json +6 -3
|
@@ -1,192 +1,270 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: iamu-setup
|
|
3
|
-
description: Set up a project for iamu — scaffold the iamu/ tree, capture domain context,
|
|
3
|
+
description: Set up a project for iamu — scaffold the iamu/ tree, capture domain context, seed primary persona, and draft inaugural scenario. Ready to run immediately via iamu-run.
|
|
4
4
|
generatedBy: __IAMU_VERSION__
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
Set up a project for scenario-driven walkthroughs — all local, no cloud required. Scaffolds an `iamu/` tree under your project root, analyzes the repo to compose a project-context summary, persists
|
|
7
|
+
Set up a project for scenario-driven walkthroughs — all local, no cloud required. Scaffolds an `iamu/` tree under your project root, analyzes the repo to compose a project-context summary, persists context to `iamu/context.yml`, seeds 1 primary persona into `iamu/personas/`, and drafts 1 inaugural scenario into `iamu/scenarios/`. Ready to run immediately with `iamu-run`.
|
|
8
8
|
|
|
9
9
|
Model reminder (internal — users never type these): `capability → scenario → run → finding`. A scenario is the runnable thing — a situation narrative bound to a persona. Capabilities are optional labels that group scenarios. `iamu-new` creates scenarios; `iamu-run` executes them; `iamu-findings` reviews results.
|
|
10
10
|
|
|
11
11
|
What this skill does, end to end:
|
|
12
12
|
|
|
13
13
|
- **Scaffold** — `iamu/` tree on disk via `iamu init`. No login, no cloud.
|
|
14
|
-
- **Understand** — read the repo to identify domain, primary user archetypes,
|
|
15
|
-
- **
|
|
14
|
+
- **Understand** — read the repo to identify domain, primary user archetypes, reachable routes, and testability.
|
|
15
|
+
- **Propose & Scaffold Baseline** — present a single unified briefing: domain narrative, primary persona, and inaugural scenario. On confirmation ("yes"), scaffold `context.yml`, `testability.md`, persona, outline, and scenario to disk.
|
|
16
|
+
- **Next Action** — point directly to `iamu-run <scenario>` with copy-pasteable execution command.
|
|
16
17
|
- **Cloud (optional)** — offer to link to Iamu cloud for sharing / teams / managed runs via `iamu auth login`. User can accept, skip, or defer.
|
|
17
18
|
|
|
18
|
-
This skill does NOT create capabilities, situation outlines, or scenarios. That is what `iamu-new` is for. Setup = context + casting panel seeding.
|
|
19
|
-
|
|
20
19
|
$ARGUMENTS
|
|
21
20
|
|
|
22
21
|
## Steps
|
|
23
22
|
|
|
24
23
|
### 1. Scaffold the iamu/ tree
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
iamu init [project-name]
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
The command scaffolds `iamu/config.json`, entity subdirs, `.runs/`, `.cache/`, `.gitignore`.
|
|
33
|
-
|
|
34
|
-
- If `iamu/` was already present, existing files are not overwritten. Treat as success and continue.
|
|
35
|
-
- Error containing "legacy `.iamu/` layout" → tell the user to remove the legacy directory, then re-run.
|
|
36
|
-
|
|
37
|
-
On fresh scaffold, introduce iamu first:
|
|
25
|
+
Check whether `iamu/config.json` already exists:
|
|
38
26
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
- **If already scaffolded (`iamu/config.json` exists):** Do not re-run `iamu init`. Introduce the step concisely and proceed directly to Step 2:
|
|
28
|
+
> Analyzing your codebase now to map the domain, primary persona, and first test scenario.
|
|
29
|
+
- **If not yet scaffolded:** Run `iamu init [project-name]` in the terminal (pass a project name if the user named one explicitly; otherwise omit). The command scaffolds `iamu/config.json`, entity subdirs, `.runs/`, `.cache/`, `.gitignore`.
|
|
30
|
+
Introduce iamu first:
|
|
31
|
+
> **iamu** tests your product as realistic personas and reports what works, what doesn't, and how to fix it. I'll analyze your codebase now to map the domain and prepare your first test scenario.
|
|
32
|
+
- **Error containing "legacy `.iamu/` layout"** → tell the user to remove the legacy directory, then re-run.
|
|
42
33
|
|
|
43
34
|
### 2. Understand the project
|
|
44
35
|
|
|
45
|
-
Explore the codebase automatically — do NOT ask the user what files to read.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
- `
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
36
|
+
Explore the codebase automatically — do NOT ask the user what files to read. Extract domain and environment facts strictly from code:
|
|
37
|
+
|
|
38
|
+
1. **Framework & Dev Server Port Detection:**
|
|
39
|
+
- Inspect package manifests: `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`.
|
|
40
|
+
- Read framework configs to reliably extract default dev ports:
|
|
41
|
+
- `vite.config.*` / `svelte.config.*` → default port 5173
|
|
42
|
+
- `astro.config.*` → default port 4321
|
|
43
|
+
- `next.config.*` / Rails / Remix → default port 3000
|
|
44
|
+
- `wrangler.toml` / `wrangler.json` (Cloudflare Workers/Pages)
|
|
45
|
+
- `docker-compose.yml`
|
|
46
|
+
- Read `.env`, `.env.development`, `.env.local` for `PORT`, `VITE_PORT`, `NEXT_PUBLIC_APP_URL`.
|
|
47
|
+
- If unsure, check port reachability on common ports (3000, 5173, 8080, 4321).
|
|
48
|
+
2. **Reachable Entry Route:**
|
|
49
|
+
- Scan page directories: `app/**/page.tsx`, `pages/**/*.tsx`, `src/routes/**/*.svelte`, React Router `routes.ts`/`App.tsx`.
|
|
50
|
+
- Pick a concrete static route (e.g. `/incidents/new`, `/cart`, `/checkout`), NOT an unresolved parameterized path (`/projects/:id`) unless seed fixture IDs are known.
|
|
51
|
+
3. **Auth & Persona Access:**
|
|
52
|
+
- Inspect auth route guards (`middleware.ts`, ProtectedRoute, session hooks).
|
|
53
|
+
- Identify dev bypass (`MOCK_AUTH`), test accounts/fixtures, persona switcher, or public access.
|
|
54
|
+
4. **Domain Narrative & Cast:**
|
|
55
|
+
- Read `README.md`, `CLAUDE.md`, docs, OpenAPI / JSON schemas, user models.
|
|
56
|
+
- Extract 1 primary protagonist and 2 secondary actors from real user roles.
|
|
57
|
+
- **STRICT REGULATION RULE:** Never infer regulations from industry keywords. Only include `governed_by` if the codebase explicitly references specific legislation or statutory standards. Non-regulated software is the default — omit `governed_by` entirely if absent.
|
|
58
|
+
5. **Primary Persona Rigor:**
|
|
59
|
+
- Follow `iamu/.prompts/persona.md`: no generic marketing adjectives ("tech-savvy", "coffee lover"). Ground in working physical reality, time pressure, and concrete diagnostic friction / bounce conditions. True whether the product exists or not.
|
|
60
|
+
|
|
61
|
+
Synthesize the project into a cohesive, substantive narrative (1–2 paragraphs):
|
|
62
|
+
- What the product fundamentally is, its primary domain, and who uses it.
|
|
63
|
+
- Key user journeys and operational characteristics (e.g. mobile floor use, audit deadlines).
|
|
64
|
+
- Market and geography (only if evident).
|
|
65
|
+
|
|
66
|
+
Audit testability and target environment:
|
|
67
|
+
Inspect `package.json` dev scripts, existing mock harnesses (MSW, seed scripts), auth route guards (`middleware.ts`, ProtectedRoute, session hooks), and page/route directories (`app/`, `src/routes/`). Use these findings to populate `iamu/testability.md`.
|
|
68
|
+
|
|
69
|
+
**If there is no code (greenfield, design phase, or test sandbox):** do NOT interrogate the user with a multi-part survey or ask for dev auth plumbing. Ask for a single entry point:
|
|
70
|
+
> No local codebase detected. To seed context, provide one of:
|
|
71
|
+
> - A target URL (staging, production, or docs — e.g., `https://app.example.com`)
|
|
72
|
+
> - A one-sentence description of what this product does
|
|
73
|
+
> - Or type `"sandbox"` to seed a pre-configured B2B SaaS demo
|
|
74
|
+
|
|
75
|
+
**Autonomous Enrichment:**
|
|
76
|
+
- **URL provided:** Fetch or search public marketing/docs for that site. Automatically extract the substantive narrative, core user journeys, and key actors.
|
|
77
|
+
- **One-sentence summary provided:** Immediately expand into a full substantive narrative using domain knowledge.
|
|
78
|
+
- **"sandbox" provided:** Seed a standard B2B SaaS narrative with Admin and End-User roles.
|
|
79
|
+
|
|
80
|
+
### 3. Present Unified Baseline Proposal (Single Confirmation Gate)
|
|
81
|
+
|
|
82
|
+
Present the discovered domain context, 1 primary persona, and 1 inaugural scenario in a single scannable briefing.
|
|
83
|
+
|
|
84
|
+
Do NOT wrap the briefing in a markdown code fence (` ``` `). Output normal markdown so the user's terminal formats bolding and layout cleanly.
|
|
85
|
+
Do NOT split this into multiple sequential permission questions. Present the complete baseline package at once:
|
|
86
|
+
|
|
87
|
+
Discovered Project Context:
|
|
88
|
+
Domain: <domain name, e.g. workplace safety management>
|
|
89
|
+
Scope: <Jurisdiction or "Standard Web App / Unregulated">
|
|
90
|
+
Cast: <Primary Protagonist> (protagonist), <Secondary Actor 1>, <Secondary Actor 2>
|
|
91
|
+
Target: <target_url, e.g. http://localhost:5173> (Dev Command: `<dev_command, e.g. pnpm dev>`)
|
|
92
|
+
Auth Access: <How walker assumes role, e.g. "Dev persona switcher" or "Public">
|
|
93
|
+
|
|
94
|
+
<1 cohesive paragraph: what the product fundamentally is, who actually uses it, and its core operational reality. No marketing fluff, no hedging, and no tech stack trivia.>
|
|
95
|
+
|
|
96
|
+
Baseline Test Proposal (WYSIWGW Spec-Sheet):
|
|
97
|
+
Persona: <Name> (<Role / Title>)
|
|
98
|
+
• Reality: <Working context, physical habits, tenure>
|
|
99
|
+
• Friction: <Diagnostic friction, skepticism, bounce trigger>
|
|
100
|
+
Situation: <Outline Title>
|
|
101
|
+
• Tension: <Core problem-space tension in X vs Y format — no UI button names>
|
|
102
|
+
• Evaluation Checkpoint: <Concrete binary yes/partial/no question for evaluator>
|
|
103
|
+
Walk Surface: Entry: `<entry_path>` | Target: `<target_url>`
|
|
104
|
+
Walker Brief: "<2–3 sentence first-person test brief that will be written verbatim to disk. States immediate intent and constraints before opening tool. Zero UI terminology.>"
|
|
61
105
|
|
|
62
|
-
|
|
63
|
-
- **Actors** — all identified roles and their responsibilities.
|
|
64
|
-
- **Glossary** — domain-specific terms (helps persona language fidelity).
|
|
65
|
-
- **Access** — if the project documents how to switch user or role in a dev or test environment (a persona switcher, seeded accounts, a storage key), record that mechanism as `access`. It is what lets a walkthrough run as the persona instead of as whoever happens to be signed in. Never record passwords or tokens — name where they live.
|
|
66
|
-
|
|
67
|
-
Do NOT collect architecture (agent reads the codebase directly — tech stack doesn't affect walkthroughs).
|
|
68
|
-
|
|
69
|
-
**If there is no code (greenfield, design phase):** ask the user: what does this project do, who are the users, what domain, and are there any specific regulations?
|
|
70
|
-
|
|
71
|
-
**Present a short proposal for confirmation:**
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
Your project: <domain> (<jurisdiction if known>)
|
|
75
|
-
[Regulations: <reg1>, <reg2>] <-- omit line entirely if none
|
|
76
|
-
|
|
77
|
-
Proposed primary personas:
|
|
78
|
-
1. <Name> (<Role>) — <Key disposition & perspective>
|
|
79
|
-
2. <Name> (<Role>) — <Key disposition & perspective>
|
|
80
|
-
|
|
81
|
-
Confirm context & scaffold these personas? (yes / edit / suggest-others / skip-personas)
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Wait for the user to confirm or correct before writing. The user only needs to verify domain and choose whether to accept, edit, suggest alternative personas, or defer persona creation.
|
|
106
|
+
---
|
|
85
107
|
|
|
86
|
-
|
|
108
|
+
**Interactive Decision:**
|
|
109
|
+
Prompt the user to confirm or adjust the baseline:
|
|
110
|
+
- If your environment provides an interactive user-prompt tool (e.g. `ask_question`, `ask_followup_question`), invoke it:
|
|
111
|
+
- Question: "Scaffold this iamu test baseline?"
|
|
112
|
+
- Options:
|
|
113
|
+
1. "[Recommended] Scaffold baseline and prepare first walkthrough"
|
|
114
|
+
2. "Switch perspective: Walk as <Secondary Actor 1 Name> (<Role>)"
|
|
115
|
+
3. "Adjust domain context, target URL, or persona details"
|
|
116
|
+
- Otherwise (in CLI or text-only environments), present them as an enumerated list:
|
|
87
117
|
|
|
88
|
-
|
|
118
|
+
Scaffold this iamu test baseline?
|
|
119
|
+
1. [Recommended] Scaffold baseline and prepare first walkthrough
|
|
120
|
+
2. Switch perspective: Walk as <Secondary Actor 1 Name> (<Role>)
|
|
121
|
+
3. Adjust domain, target URL, or persona details
|
|
89
122
|
|
|
90
|
-
1
|
|
123
|
+
Press Enter to accept [1], select 2, or tell me what to adjust:
|
|
124
|
+
(Treat empty Enter or return as Option 1)
|
|
91
125
|
|
|
92
|
-
|
|
126
|
+
### 4. Scaffold the Test Suite Atomically
|
|
93
127
|
|
|
94
|
-
|
|
95
|
-
- **Present but thin** (missing domain) → show what's missing and offer to fill it. User picks **refine** or **replace**.
|
|
96
|
-
- **Present and complete** (domain set) → show summary and ask "Use as-is, refine, or replace?" Default is **skip**.
|
|
128
|
+
When the user selects Option 1 (or confirms):
|
|
97
129
|
|
|
98
|
-
|
|
130
|
+
1. **Write `iamu/context.yml`**:
|
|
131
|
+
Derive the structured frontmatter fields (`domain`, `actors`, `jurisdiction`, `governed_by`) from the confirmed text, and write `iamu/context.yml` with your file-editing tool. Put structured fields in frontmatter and the substantive narrative in the markdown body below the `---`:
|
|
99
132
|
|
|
100
133
|
```yaml
|
|
101
134
|
---
|
|
102
135
|
schema_version: 1
|
|
103
|
-
domain:
|
|
104
|
-
# jurisdiction:
|
|
105
|
-
# governed_by:
|
|
106
|
-
# - name:
|
|
136
|
+
domain: workplace safety management
|
|
137
|
+
# jurisdiction: Sweden / EU # optional
|
|
138
|
+
# governed_by: # strictly optional - omit if not regulated
|
|
139
|
+
# - name: AFS 2023:2
|
|
107
140
|
# authority_level: regulation
|
|
108
141
|
actors:
|
|
109
142
|
- name: Store Admin
|
|
110
143
|
role: Manages catalog, inventory, and order fulfillment
|
|
111
144
|
- name: First-Time Buyer
|
|
112
145
|
role: Explores products, adds to cart, and checks out
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
definition: Stock Keeping Unit
|
|
146
|
+
- name: Customer Support Agent
|
|
147
|
+
role: Handles order discrepancies, refunds, and customer inquiries
|
|
116
148
|
access: >-
|
|
117
149
|
No login in dev. In the page, set localStorage "dev_persona" to the
|
|
118
150
|
persona's access value and reload.
|
|
119
151
|
---
|
|
152
|
+
|
|
153
|
+
<The substantive 1–2 paragraph project description and core user journeys>
|
|
120
154
|
```
|
|
121
155
|
|
|
122
156
|
Rules:
|
|
123
157
|
- `domain` — one line. Mandatory.
|
|
158
|
+
- Body markdown (below `---`) — substantive description and user journeys. Downstream skills read this as extended grounding.
|
|
124
159
|
- `jurisdiction` — optional. Only if evident or relevant.
|
|
125
|
-
- `governed_by[]` — strictly optional. Order by authority
|
|
126
|
-
- `actors[]` — all identified roles and their responsibilities.
|
|
127
|
-
- `
|
|
128
|
-
- `access` — optional. Only what the docs actually say; leave it out rather than guess. `iamu-run` fills it in on the first walk if it is missing.
|
|
160
|
+
- `governed_by[]` — strictly optional. Order by authority. Omit entirely if no regulations apply.
|
|
161
|
+
- `actors[]` — all identified roles and their responsibilities. Keep secondary roles here so context has cast depth.
|
|
162
|
+
- `access` — optional. Only what the docs actually say; leave it out rather than guess.
|
|
129
163
|
- Do NOT add `industry` or `architecture` — these don't affect walkthroughs.
|
|
130
164
|
|
|
131
|
-
|
|
165
|
+
2. **Write `iamu/testability.md`**:
|
|
166
|
+
Scaffold the target environment, dev command, auth strategy, reachable surfaces, mock harnesses, and untestable boundaries discovered from the code:
|
|
132
167
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
168
|
+
```markdown
|
|
169
|
+
---
|
|
170
|
+
target_url: http://localhost:3000
|
|
171
|
+
dev_command: <detected dev script, e.g. pnpm dev or pnpm dev:mock>
|
|
172
|
+
auth_strategy: <dev_switcher | interactive | test_accounts | public>
|
|
173
|
+
harnesses:
|
|
174
|
+
- <detected harnesses, e.g. msw, seed>
|
|
175
|
+
---
|
|
137
176
|
|
|
138
|
-
|
|
177
|
+
# Project Testability & Environment
|
|
139
178
|
|
|
140
|
-
|
|
179
|
+
## Target & Run Instructions
|
|
180
|
+
- Command: <dev command>
|
|
181
|
+
- Base URL: <target_url>
|
|
141
182
|
|
|
142
|
-
|
|
183
|
+
## Auth & Access Boundary
|
|
184
|
+
- <How a walker becomes this persona in dev or test mode>
|
|
143
185
|
|
|
144
|
-
|
|
186
|
+
## Reachable Surfaces
|
|
187
|
+
- <List discovered routes/entry points, e.g. /login, /dashboard, /incidents>
|
|
145
188
|
|
|
146
|
-
|
|
189
|
+
## Mocks & Data Fixtures
|
|
190
|
+
- <List existing MSW mock files, DB seed scripts, or fixture directories>
|
|
147
191
|
|
|
148
|
-
|
|
192
|
+
## Untestable Boundaries (Do Not Walk)
|
|
193
|
+
- <List un-mocked external dependencies, e.g. live Stripe charges, SMS 2FA, external SSO>
|
|
194
|
+
```
|
|
149
195
|
|
|
150
|
-
|
|
151
|
-
iamu auth status --json
|
|
152
|
-
```
|
|
196
|
+
Keep `context.yml` strictly about domain reality (which the Walker subagent reads), and `testability.md` strictly about developer testability and execution boundaries (which orchestrator skills read).
|
|
153
197
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
198
|
+
3. **Scaffold Primary Persona**:
|
|
199
|
+
Scaffold 1 primary protagonist into `iamu/personas/<persona-slug>.md` using the CLI:
|
|
200
|
+
```bash
|
|
201
|
+
iamu new persona --name "<Name>" --role "<Role>" --disposition "<Disposition>" --body "<2-4 sentence narrative detailing technical habits, patience level, and specific friction triggers>" [--access "<account-or-role>"] --json
|
|
202
|
+
```
|
|
157
203
|
|
|
158
|
-
|
|
204
|
+
4. **Scaffold Situation Outline**:
|
|
205
|
+
Scaffold the inaugural outline into `iamu/outlines/<outline-slug>.md` using the CLI:
|
|
206
|
+
```bash
|
|
207
|
+
iamu new outline --name "<Outline Title>" --tension "<Core Tension>" --human-test "<Concrete yes/partial/no evaluation question>" --narrative "<2-3 sentence problem-space narrative without UI terms>" --json
|
|
208
|
+
```
|
|
159
209
|
|
|
160
|
-
|
|
210
|
+
5. **Scaffold Bound Scenario**:
|
|
211
|
+
Bind the persona and outline into `iamu/scenarios/<persona-slug>--<outline-slug>.md` using the CLI:
|
|
212
|
+
```bash
|
|
213
|
+
iamu new scenario --name "<persona-slug>--<outline-slug>" --outline "<outline-slug>" --persona "<persona-slug>" --entry "<entry_path>" --body "<Persona's first-person test brief describing what they intend to achieve>" --json
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
6. **Validate all entities**:
|
|
217
|
+
```bash
|
|
218
|
+
iamu validate --all
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
7. **Present Completion & Immediate Next Action**:
|
|
222
|
+
Render the visual scaffolding tree and provide the direct command to run the walkthrough:
|
|
161
223
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
- **Later** → same as skip. No state change.
|
|
224
|
+
```text
|
|
225
|
+
✓ Scaffolding complete:
|
|
165
226
|
|
|
166
|
-
|
|
227
|
+
iamu/
|
|
228
|
+
├── context.yml [domain: <domain>]
|
|
229
|
+
├── testability.md [target: <target_url>]
|
|
230
|
+
├── personas/
|
|
231
|
+
│ └── <persona-slug>.md
|
|
232
|
+
├── outlines/
|
|
233
|
+
│ └── <outline-slug>.md
|
|
234
|
+
└── scenarios/
|
|
235
|
+
└── <persona-slug>--<outline-slug>.md
|
|
167
236
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
3. On success the output ends with `Dashboard: <url>` and, when an agent host was detected, `iamu-sync MCP server registered`. Relay both in two lines: the dashboard link, and that restarting the agent session loads the team tools (work requests, teammate-change alerts).
|
|
237
|
+
Next step:
|
|
238
|
+
Ensure your dev server is running on <target_url>, then run:
|
|
171
239
|
|
|
172
|
-
|
|
240
|
+
$ iamu-run <persona-slug>--<outline-slug>
|
|
241
|
+
|
|
242
|
+
Other commands when you're ready:
|
|
243
|
+
• iamu-new Draft a scenario for a different product flow
|
|
244
|
+
• iamu-propose Brainstorm high-risk workflows and blind spots
|
|
245
|
+
• iamu doctor Diagnose test environment and target health
|
|
246
|
+
• iamu auth login Link to Iamu Cloud to share run reports with your team (optional)
|
|
247
|
+
```
|
|
173
248
|
|
|
174
|
-
|
|
249
|
+
### 5. Cloud link (optional)
|
|
175
250
|
|
|
176
|
-
|
|
251
|
+
Cloud linking is optional and non-blocking. It is recommended after executing your first walkthrough so you have run reports and findings to share.
|
|
177
252
|
|
|
178
|
-
|
|
253
|
+
If the user explicitly asks to link during setup:
|
|
254
|
+
1. Tell the user: "Opening browser for Iamu Cloud login..." then run `iamu auth login`. Allow the command at least 150 seconds for the user to complete sign-in in their browser. If your shell cannot wait that long, or runs where no browser can open (remote or container session), ask the user to run `iamu auth login` in their own terminal and tell you when it is done.
|
|
255
|
+
2. In a non-interactive shell with existing cloud projects, login stops after sign-in and lists them as `iamu auth login --project <id>` lines plus `--project new`. Show that list, ask which project this repository belongs to, then re-run with their choice.
|
|
256
|
+
3. On success the output ends with `Dashboard: <url>` and registered MCP server.
|
|
179
257
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
258
|
+
If login times out or fails:
|
|
259
|
+
- "Your local project setup is 100% complete and fully functional. Personas, scenarios, outlines, and walkthroughs run locally without cloud."
|
|
260
|
+
- Point to: `iamu-run <persona-slug>--<outline-slug>`.
|
|
183
261
|
|
|
184
262
|
## Guidelines
|
|
185
263
|
|
|
186
|
-
- **
|
|
264
|
+
- **Baseline is runnable immediately.** Setup scaffolds configuration, 1 primary persona, 1 outline, and 1 bound scenario. The project graduates from setup in a 100% runnable state.
|
|
265
|
+
- **Clean terminal formatting.** Do not wrap agent briefings in markdown code fences (` ``` `). Use fixed column alignment for attributes and clean tree diagrams for generated files.
|
|
187
266
|
- **Non-regulated software is the default.** Do not invent or force regulations (`governed_by`) on apps, developer tools, or consumer software. If the codebase has no compliance documentation, omit `governed_by` entirely.
|
|
188
267
|
- **Explore automatically.** Read the codebase before asking the user anything. The user should only need to confirm or correct, not describe their own project from scratch.
|
|
189
|
-
- **Context on disk is load-bearing.** Once step
|
|
190
|
-
- **Handle re-runs gracefully.** An already-scaffolded project is a no-op on scaffold, a refresh on context/personas (if the user opts in), and a re-prompt on cloud link.
|
|
191
|
-
- **
|
|
192
|
-
- **Handle errors gracefully.** Unreachable file → note it, move on. Unreachable cloud (step 4) → report and let the user retry or defer.
|
|
268
|
+
- **Context on disk is load-bearing.** Once step 4 writes `iamu/context.yml`, every downstream skill (`iamu-new`, `iamu-run`) auto-loads it.
|
|
269
|
+
- **Handle re-runs gracefully.** An already-scaffolded project is a no-op on scaffold, a refresh on context/personas/scenarios (if the user opts in), and a re-prompt on cloud link.
|
|
270
|
+
- **Handle errors gracefully.** Unreachable file → note it, move on. Unreachable cloud → report and let the user retry or defer.
|
|
@@ -21,24 +21,28 @@ $ARGUMENTS
|
|
|
21
21
|
|
|
22
22
|
Do NOT use `find`, `grep`, or `cat` to dump raw `.md` files in `iamu/`. The CLI outputs clean, validated data.
|
|
23
23
|
|
|
24
|
-
### 2. Format entity responses
|
|
24
|
+
### 2. Format entity responses with an executive tally and clickable links
|
|
25
25
|
|
|
26
|
-
When the user asks for
|
|
26
|
+
When the user asks for project status, lead with an executive tally banner, followed by scannable tables with clickable markdown file links:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Project Status: <P> Personas · <S> Scenarios (<R> Tested, <U> Untested) · <F> Open Findings · <C> Capabilities
|
|
30
|
+
```
|
|
27
31
|
|
|
28
32
|
**Personas:**
|
|
29
33
|
| Slug | Name | Role | Status |
|
|
30
34
|
|---|---|---|---|
|
|
31
|
-
| `elin-dahl` | Elin Dahl | Architect & first-time house owner in Falun | active |
|
|
35
|
+
| [`elin-dahl`](iamu/personas/elin-dahl.md) | Elin Dahl | Architect & first-time house owner in Falun | active |
|
|
32
36
|
|
|
33
37
|
**Scenarios:**
|
|
34
38
|
| Slug | Persona | Outline | Status / Target |
|
|
35
39
|
|---|---|---|---|
|
|
36
|
-
| `replacing-windows` | `elin-dahl` | `measure-and-order` | ready |
|
|
40
|
+
| [`replacing-windows`](iamu/scenarios/replacing-windows.md) | [`elin-dahl`](iamu/personas/elin-dahl.md) | [`measure-and-order`](iamu/outlines/measure-and-order.md) | ready |
|
|
37
41
|
|
|
38
42
|
**Findings:**
|
|
39
|
-
| # | Severity | Type | Finding |
|
|
43
|
+
| # | Severity | Type | Finding | File |
|
|
40
44
|
|---|---|---|---|---|
|
|
41
|
-
| 1 | CRITICAL | hinders | Submit fails opaquely on empty field |
|
|
45
|
+
| 1 | CRITICAL | hinders | Submit fails opaquely on empty field | [`view`](iamu/findings/<slug>.md) |
|
|
42
46
|
|
|
43
47
|
### 3. Ignore internal templates
|
|
44
48
|
|
|
@@ -52,13 +56,16 @@ For a project-status question, add one line on the cloud from `iamu status --jso
|
|
|
52
56
|
- **Linked, no credentials** → `Cloud: linked, but this machine has no credentials — iamu auth login.`
|
|
53
57
|
- **Local-only** → `Cloud: local-only.` Nothing more; no upgrade pitch.
|
|
54
58
|
|
|
55
|
-
### 5. Provide
|
|
59
|
+
### 5. Provide copy-pasteable next actions
|
|
60
|
+
|
|
61
|
+
Conclude with exact copy-pasteable commands:
|
|
56
62
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
|
|
63
|
+
```
|
|
64
|
+
Next actions:
|
|
65
|
+
iamu-run <scenario-slug> # Run a walkthrough for this scenario
|
|
66
|
+
iamu-propose # Propose missing personas or scenarios
|
|
67
|
+
iamu-new # Draft a new scenario or persona
|
|
68
|
+
iamu-findings # Triage open findings
|
|
69
|
+
iamu open # Open project in cloud dashboard
|
|
70
|
+
```
|
|
64
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iamu-dev/iamu",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Test your product as realistic personas — scenario-driven development CLI",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -54,19 +54,22 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^22.0.0",
|
|
56
56
|
"@vitest/coverage-v8": "^4.1.11",
|
|
57
|
+
"google-auth-library": "^11.1.0",
|
|
57
58
|
"tsup": "^8.5.1",
|
|
58
59
|
"typescript": "^5.8.0",
|
|
59
60
|
"vitest": "^4.1.11",
|
|
60
|
-
"@iamu-dev/protocol": "0.1.0",
|
|
61
61
|
"@iamu-dev/local-store": "0.1.0",
|
|
62
|
+
"@iamu-dev/protocol": "0.1.0",
|
|
62
63
|
"@iamu/tsconfig": "0.1.0"
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|
|
65
|
-
"build": "tsup && tsc -b tsconfig.build.json --emitDeclarationOnly && node scripts/copy-assets.mjs",
|
|
66
|
+
"build": "tsup && tsc -b --force tsconfig.build.json --emitDeclarationOnly && node scripts/copy-assets.mjs",
|
|
66
67
|
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true }); fs.rmSync('tsconfig.tsbuildinfo', { force: true }); fs.rmSync('tsconfig.build.tsbuildinfo', { force: true })\"",
|
|
67
68
|
"typecheck": "tsc --noEmit",
|
|
68
69
|
"test": "vitest run",
|
|
69
70
|
"test:coverage": "vitest run --coverage",
|
|
71
|
+
"eval:walkthroughs": "vitest run --config vitest.benchmark.config.ts",
|
|
72
|
+
"eval:gemini": "node dist/eval/gemini-eval-cli.js",
|
|
70
73
|
"pack:dry-run": "npm pack --dry-run"
|
|
71
74
|
}
|
|
72
75
|
}
|