@iamu-dev/iamu 0.8.0-beta.2 → 0.8.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +33 -5
  2. package/dist/adapters/registry.d.ts +6 -0
  3. package/dist/adapters/types.d.ts +22 -5
  4. package/dist/bin.js +7267 -4650
  5. package/dist/build-hash.txt +1 -0
  6. package/dist/commands/advise.d.ts +13 -1
  7. package/dist/commands/browse-driver.d.ts +14 -0
  8. package/dist/commands/browse.d.ts +70 -6
  9. package/dist/commands/complete.d.ts +37 -2
  10. package/dist/commands/context.d.ts +16 -0
  11. package/dist/commands/doctor.d.ts +2 -0
  12. package/dist/commands/explore-crawl.d.ts +5 -2
  13. package/dist/commands/init.d.ts +8 -2
  14. package/dist/commands/instructions.d.ts +0 -15
  15. package/dist/commands/match.d.ts +6 -0
  16. package/dist/commands/mcp-config.d.ts +84 -6
  17. package/dist/commands/new-entity.d.ts +28 -0
  18. package/dist/commands/post-walk.d.ts +21 -0
  19. package/dist/commands/pull.d.ts +1 -0
  20. package/dist/commands/set-entity.d.ts +2 -0
  21. package/dist/commands/skills.d.ts +13 -4
  22. package/dist/commands/step-numbering.d.ts +2 -1
  23. package/dist/commands/step.d.ts +2 -0
  24. package/dist/commands/triage.d.ts +4 -2
  25. package/dist/index.js +7254 -4639
  26. package/dist/templates/prompts/advise.md +8 -61
  27. package/dist/templates/prompts/design-review.md +1 -1
  28. package/dist/templates/prompts/designer.md +11 -4
  29. package/dist/templates/prompts/walk.md +6 -0
  30. package/dist/templates/skills/iamu-design.md +1 -1
  31. package/dist/templates/skills/iamu-findings.md +13 -24
  32. package/dist/templates/skills/iamu-new.md +14 -4
  33. package/dist/templates/skills/iamu-run.md +68 -33
  34. package/dist/templates/skills/iamu-setup.md +7 -1
  35. package/dist/templates/skills/iamu-stage.md +4 -4
  36. package/dist/ui/html-report.d.ts +5 -0
  37. package/package.json +3 -3
package/README.md CHANGED
@@ -28,7 +28,7 @@ In the root of your project:
28
28
  npx @iamu-dev/iamu@beta init
29
29
  ```
30
30
 
31
- `iamu init` scaffolds the `iamu/` directory and configures skills for your editor (Claude Code, Cursor, Windsurf, Cline, Codex, RooCode).
31
+ `iamu init` scaffolds the `iamu/` directory and configures skills for your editor (Claude Code, Cursor, Windsurf, GitHub Copilot, Cline, Codex, RooCode, Antigravity).
32
32
 
33
33
  ## Core Commands
34
34
 
@@ -38,10 +38,15 @@ npx @iamu-dev/iamu@beta init
38
38
  |---------|-------------|
39
39
  | `iamu init [--yes] [--json]` | Initialize or configure an iamu project in current workspace |
40
40
  | `iamu status [--json]` | Overview of personas, scenarios, active runs, and cloud sync status |
41
- | `iamu doctor` | Diagnose directory structure, schemas, and missing dependencies |
41
+ | `iamu doctor [-t <url>] [--json]` | Diagnose directory structure, schemas, and missing dependencies |
42
+ | `iamu preflight [--cwd <path>] [--json]` | Fast typecheck verification before walkthroughs |
42
43
  | `iamu list [type] [--capability <slug>] [--json [fields]]` | List personas, scenarios, findings, capabilities, or outlines |
44
+ | `iamu new <type> [--name <name>] [--slug <slug>]` | Create a new entity (persona, outline, scenario, source, capability) |
45
+ | `iamu set <type> [slug]` | Set fields or configuration on existing entities |
46
+ | `iamu edit <type> [slug]` | Interactively edit an entity or context configuration |
47
+ | `iamu explore` / `iamu explore run [url]` | Map the running product with a read-only crawl, and compare maps with runs |
43
48
  | `iamu validate [path] [--all]` | Validate entity files against protocol schemas |
44
- | `iamu update` | Refresh installed editor agent skills to latest templates |
49
+ | `iamu update [--host <name>]` | Refresh installed editor agent skills to latest templates |
45
50
 
46
51
  ### Walkthrough Execution Loop
47
52
 
@@ -57,18 +62,41 @@ start-run → instructions walk → browse step / step, new-finding, summary
57
62
  | `iamu browse <command> [args]` | Control Google Chrome via CDP (start, goto, click, fill, shot, snapshot) |
58
63
  | `iamu step [run-id] --action "..."` | Record a walkthrough step atomically into `steps/` and `screenshots/` |
59
64
  | `iamu new-finding [run-id]` | Scaffold a new finding markdown file with valid UUID and frontmatter |
65
+ | `iamu summary [run-id] [--json]` | Record closing synthesis or early blocker reason |
60
66
  | `iamu complete <run-id> [--json]` | Assemble canonical report, evaluate provenance, and mirror to cloud |
61
67
  | `iamu match <run-id>` | Generate matching prompt to link findings to prior runs |
62
68
  | `iamu match-record <run-id> --file <path> [--json]` | Record matcher resolutions and re-derive run delta |
63
69
  | `iamu evaluate <run-id> [--json]` | Compose evaluation prompt for human-test questions |
64
70
  | `iamu evaluate-record <run-id> --file <path> [--json]` | Record evaluation verdicts into `verdicts.json` |
71
+ | `iamu advise [run-id] [--json]` | Compose technical advisor prompt for code-level recommendations |
72
+ | `iamu advise-record [run-id] [--file <path>] [--json]` | Record accepted recommendations and systemic directions |
73
+ | `iamu designer <run-id> [--json]` | Compose design review prompt comparing screens to design docs |
74
+ | `iamu designer-record <run-id> [--file <path>] [--json]` | Record designer review findings and rule evaluations |
75
+ | `iamu designer-dismiss <run-id> <finding>` | Dismiss a designer finding (D<n>) from a run's designer review |
76
+ | `iamu directions [set <slug>]` | List structural changes proposed by the advisor, or update direction status |
77
+ | `iamu fix-brief [finding]` | Synthesize concrete remediation brief from finding and directions |
78
+
79
+ ### Design & Review
80
+
81
+ | Command | Description |
82
+ |---------|-------------|
83
+ | `iamu design status [--json]` | Check recorded design docs, rules cited, and open proposals |
84
+ | `iamu design detect [--record] [--json]` | Detect design docs, CSS/tokens, and component systems in repo |
85
+ | `iamu design sources <paths...> [--kind <kind>] [--applies-to <list>]` | Record files or headings as authoritative design references |
86
+ | `iamu design review <target> [--json]` | Compose design review prompt for a specific page or route |
87
+ | `iamu design review-record <target> [--file <path>] [--json]` | Record design review answers for a reviewed page |
88
+ | `iamu design review-match <target> [--json]` | Write prompt to check earlier designer findings after a page review |
89
+ | `iamu design review-match-record <target> [--file <path>] [--json]` | Record match answer indicating which earlier designer findings are still present |
90
+ | `iamu design proposals [--json]` | List design changes proposed across walkthroughs and reviews |
91
+ | `iamu design accept <slug>` | Accept a proposed design change |
92
+ | `iamu design reject <slug>` | Reject a proposed design change |
65
93
 
66
94
  ### Findings & Review
67
95
 
68
96
  | Command | Description |
69
97
  |---------|-------------|
70
- | `iamu findings [--open] [--addressed] [--fix-state <state>] [--flagged] [--json [fields]]` | List findings with triage status, fix state and severity |
71
- | `iamu triage <finding-ref...> --status <status>` | Triage findings (`open`, `resolved`, `dismissed`) |
98
+ | `iamu findings [--open] [--addressed] [--fix-state <state>] [--json [fields]]` | List findings with triage status, fix state and severity |
99
+ | `iamu triage <finding-ref...> --status <status>` | Triage findings (`open`, `addressed`, `dismissed`) |
72
100
  | `iamu report [scenario] [--json]` | View walkthrough reports and finding summaries |
73
101
  | `iamu prune [--keep <n>] [--days <n>]` | Prune old runs and reclaim disk space |
74
102
 
@@ -1,4 +1,10 @@
1
1
  import type { HostAdapter } from "./types.js";
2
+ /**
3
+ * How every host starts the `iamu-sync` MCP server. `npx` rather than a
4
+ * bare `iamu`: the MCP file is committed, and a teammate without a global
5
+ * install must still get a working server.
6
+ */
7
+ export declare const SYNC_SERVER_COMMAND: readonly string[];
2
8
  export declare const HOST_ADAPTERS: HostAdapter[];
3
9
  /**
4
10
  * Detect which host editors are present in the given project root.
@@ -9,11 +9,28 @@ export interface CommandContent {
9
9
  export interface HostAdapter {
10
10
  name: string;
11
11
  value: string;
12
+ /** Files or directories (relative to the project root) that mark the host. */
12
13
  detectionPaths: string[];
13
- supportsSkills: boolean;
14
+ /** Where the host reads project skills (`<dir>/<name>/SKILL.md`). */
14
15
  getSkillsDir(projectRoot: string): string;
15
- getCommandPath(projectRoot: string, commandId: string): string;
16
- formatCommand(content: CommandContent): string;
17
- getMcpConfigPath(projectRoot: string): string;
18
- formatMcpConfig(serverCommand: string[]): string;
16
+ /**
17
+ * Skill directories an older CLI wrote for this host and the host does
18
+ * not read. CLI-written skills there are removed on `iamu update`, and
19
+ * an iamu skill there marks the host as installed.
20
+ */
21
+ legacySkillsDirs?(projectRoot: string): string[];
22
+ /**
23
+ * Where an older CLI wrote the command file `commandId` for this host.
24
+ * Nothing is written there any more; it is read only to recognise an
25
+ * existing install.
26
+ */
27
+ legacyCommandPath(projectRoot: string, commandId: string): string;
28
+ /**
29
+ * The project-level MCP config file, or `null` when the host reads MCP
30
+ * servers only from a user-level config (or its own CLI) that iamu does
31
+ * not write. Then {@link HostAdapter.manualMcpSetup} says what to do.
32
+ */
33
+ getMcpConfigPath(projectRoot: string): string | null;
34
+ /** One line telling the user how to add `iamu-sync` by hand. */
35
+ manualMcpSetup?: string;
19
36
  }