@iamu-dev/iamu 0.0.0-stage → 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.
Files changed (86) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +103 -2
  3. package/dist/adapters/claude-plugin.d.ts +13 -0
  4. package/dist/adapters/registry.d.ts +6 -0
  5. package/dist/adapters/types.d.ts +19 -0
  6. package/dist/bin.d.ts +2 -0
  7. package/dist/bin.js +22853 -0
  8. package/dist/build-info.d.ts +53 -0
  9. package/dist/cloud-url.d.ts +19 -0
  10. package/dist/commands/auth-http.d.ts +37 -0
  11. package/dist/commands/auth-project-choice.d.ts +74 -0
  12. package/dist/commands/auth-token-input.d.ts +21 -0
  13. package/dist/commands/auth.d.ts +84 -0
  14. package/dist/commands/browse-actions.d.ts +56 -0
  15. package/dist/commands/browse-driver.d.ts +117 -0
  16. package/dist/commands/browse.d.ts +170 -0
  17. package/dist/commands/cloud-push.d.ts +27 -0
  18. package/dist/commands/complete.d.ts +132 -0
  19. package/dist/commands/completion.d.ts +2 -0
  20. package/dist/commands/context.d.ts +58 -0
  21. package/dist/commands/credentials.d.ts +144 -0
  22. package/dist/commands/diff-filter.d.ts +11 -0
  23. package/dist/commands/doctor.d.ts +33 -0
  24. package/dist/commands/evaluate.d.ts +32 -0
  25. package/dist/commands/explore-crawl.d.ts +67 -0
  26. package/dist/commands/explore.d.ts +52 -0
  27. package/dist/commands/findings.d.ts +7 -0
  28. package/dist/commands/init.d.ts +16 -0
  29. package/dist/commands/instructions-walk.d.ts +69 -0
  30. package/dist/commands/list.d.ts +5 -0
  31. package/dist/commands/match.d.ts +13 -0
  32. package/dist/commands/mcp-config.d.ts +10 -0
  33. package/dist/commands/new-entity.d.ts +28 -0
  34. package/dist/commands/new-finding.d.ts +19 -0
  35. package/dist/commands/open.d.ts +8 -0
  36. package/dist/commands/port.d.ts +17 -0
  37. package/dist/commands/prune.d.ts +11 -0
  38. package/dist/commands/pull.d.ts +5 -0
  39. package/dist/commands/register-cloud.d.ts +5 -0
  40. package/dist/commands/register-findings.d.ts +5 -0
  41. package/dist/commands/register-project.d.ts +5 -0
  42. package/dist/commands/register-walkthrough.d.ts +5 -0
  43. package/dist/commands/register.d.ts +10 -0
  44. package/dist/commands/report.d.ts +3 -0
  45. package/dist/commands/serve.d.ts +11 -0
  46. package/dist/commands/skills.d.ts +34 -0
  47. package/dist/commands/start-run.d.ts +54 -0
  48. package/dist/commands/status.d.ts +3 -0
  49. package/dist/commands/step-numbering.d.ts +87 -0
  50. package/dist/commands/step.d.ts +95 -0
  51. package/dist/commands/sync.d.ts +6 -0
  52. package/dist/commands/triage.d.ts +21 -0
  53. package/dist/commands/update.d.ts +4 -0
  54. package/dist/commands/validate.d.ts +8 -0
  55. package/dist/commands/view-results.d.ts +9 -0
  56. package/dist/eval/gemini-eval-cli.d.ts +10 -0
  57. package/dist/eval/gemini-eval-cli.js +976 -0
  58. package/dist/eval/gemini-walker.d.ts +46 -0
  59. package/dist/eval/walkthrough-evaluator.d.ts +61 -0
  60. package/dist/index.d.ts +9 -0
  61. package/dist/index.js +22700 -0
  62. package/dist/sync-mcp/fatal.d.ts +42 -0
  63. package/dist/sync-mcp/server.d.ts +1 -0
  64. package/dist/sync-mcp/tools.d.ts +12 -0
  65. package/dist/templates/prompts/combine.md +69 -0
  66. package/dist/templates/prompts/complete.md +132 -0
  67. package/dist/templates/prompts/evaluate.md +64 -0
  68. package/dist/templates/prompts/outline.md +54 -0
  69. package/dist/templates/prompts/persona.md +40 -0
  70. package/dist/templates/prompts/walk.md +179 -0
  71. package/dist/templates/skills/iamu-findings.md +266 -0
  72. package/dist/templates/skills/iamu-new.md +263 -0
  73. package/dist/templates/skills/iamu-propose.md +157 -0
  74. package/dist/templates/skills/iamu-run.md +520 -0
  75. package/dist/templates/skills/iamu-setup.md +270 -0
  76. package/dist/templates/skills/iamu-status.md +71 -0
  77. package/dist/templates.d.ts +10 -0
  78. package/dist/ui/journey-diff.d.ts +3 -0
  79. package/dist/ui/json.d.ts +6 -0
  80. package/dist/ui/logger.d.ts +5 -0
  81. package/dist/ui/panic.d.ts +11 -0
  82. package/dist/ui/symbols.d.ts +11 -0
  83. package/dist/ui/table.d.ts +20 -0
  84. package/dist/ui/update-check.d.ts +6 -0
  85. package/dist/worktree-state.d.ts +49 -0
  86. package/package.json +72 -3
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ Copyright (c) 2026 iamu-dev. All rights reserved.
2
+
3
+ This software and associated documentation files are proprietary and confidential
4
+ to iamu-dev.
5
+
6
+ Use of this software is permitted solely for evaluation and testing purposes
7
+ under authorization from iamu-dev. Unauthorized copying, modification, reverse
8
+ engineering, decompilation, redistribution, or commercial use, via any medium,
9
+ is strictly prohibited.
package/README.md CHANGED
@@ -1,3 +1,104 @@
1
- # Temporary Holding Version
1
+ # @iamu-dev/iamu
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Scenario-driven development CLI — test your product as realistic personas.
4
+
5
+ Part of the [iamu](https://iamu.dev) platform.
6
+
7
+ ## Installation
8
+
9
+ Run directly with `npx`:
10
+
11
+ ```bash
12
+ npx @iamu-dev/iamu@beta <command>
13
+ ```
14
+
15
+ Or install globally:
16
+
17
+ ```bash
18
+ npm install -g @iamu-dev/iamu@beta
19
+ ```
20
+
21
+ **Prerequisites:** Node.js 22+ and Google Chrome.
22
+
23
+ ## Quick Start
24
+
25
+ In the root of your project:
26
+
27
+ ```bash
28
+ npx @iamu-dev/iamu@beta init
29
+ ```
30
+
31
+ `iamu init` scaffolds the `iamu/` directory and configures skills for your editor (Claude Code, Cursor, Windsurf, Cline, Codex, RooCode).
32
+
33
+ ## Core Commands
34
+
35
+ ### Project & Health
36
+
37
+ | Command | Description |
38
+ |---------|-------------|
39
+ | `iamu init [--yes] [--json]` | Initialize or configure an iamu project in current workspace |
40
+ | `iamu status [--json]` | Overview of personas, scenarios, active runs, and cloud sync status |
41
+ | `iamu doctor` | Diagnose directory structure, schemas, and missing dependencies |
42
+ | `iamu list [type] [--capability <slug>] [--json [fields]]` | List personas, scenarios, findings, capabilities, or outlines |
43
+ | `iamu validate [path] [--all]` | Validate entity files against protocol schemas |
44
+ | `iamu update` | Refresh installed editor agent skills to latest templates |
45
+
46
+ ### Walkthrough Execution Loop
47
+
48
+ ```
49
+ start-run → browse → step → new-finding → complete → match → match-record → evaluate → evaluate-record
50
+ ```
51
+
52
+ | Command | Description |
53
+ |---------|-------------|
54
+ | `iamu start-run <scenario> --target <url>` | Scaffold a new walkthrough run directory with metadata |
55
+ | `iamu browse <command> [args]` | Control Google Chrome via CDP (start, goto, click, fill, shot, snapshot) |
56
+ | `iamu step [run-id] --action "..."` | Record a walkthrough step atomically into `steps/` and `screenshots/` |
57
+ | `iamu new-finding [run-id]` | Scaffold a new finding markdown file with valid UUID and frontmatter |
58
+ | `iamu complete <run-id> [--json]` | Assemble canonical report, evaluate provenance, and mirror to cloud |
59
+ | `iamu match <run-id>` | Generate matching prompt to link findings to prior runs |
60
+ | `iamu match-record <run-id> --file <path> [--json]` | Record matcher resolutions and re-derive run delta |
61
+ | `iamu evaluate <run-id> [--json]` | Compose evaluation prompt for human-test questions |
62
+ | `iamu evaluate-record <run-id> --file <path> [--json]` | Record evaluation verdicts into `verdicts.json` |
63
+
64
+ ### Findings & Review
65
+
66
+ | Command | Description |
67
+ |---------|-------------|
68
+ | `iamu findings [--open] [--resolved] [--json [fields]]` | List findings with triage status and severity |
69
+ | `iamu triage <finding-ref...> --status <status>` | Triage findings (`open`, `resolved`, `dismissed`) |
70
+ | `iamu report [scenario] [--json]` | View walkthrough reports and finding summaries |
71
+ | `iamu prune [--keep <n>] [--days <n>]` | Prune old runs and reclaim disk space |
72
+
73
+ ### Cloud Sync & Collaboration
74
+
75
+ | Command | Description |
76
+ |---------|-------------|
77
+ | `iamu auth login [--token <key>]` | Authenticate with Iamu Cloud |
78
+ | `iamu auth status [--json]` | Check authentication and linked cloud project status |
79
+ | `iamu sync [--confirm-deletes] [--json]` | Push local runs and entities to cloud |
80
+ | `iamu pull [--preview] [--force] [--json]` | Pull remote team updates into local store |
81
+ | `iamu open [run-id]` | Open run or project in the cloud web dashboard |
82
+
83
+ ## Programmatic & MCP Integration
84
+
85
+ ### MCP Sync Server
86
+
87
+ To run the Model Context Protocol sync server for agent integration:
88
+
89
+ ```bash
90
+ iamu sync-server
91
+ ```
92
+
93
+ ### JSON Projection Convention
94
+
95
+ Commands supporting `--json` emit machine-readable JSON to stdout:
96
+
97
+ ```bash
98
+ iamu list personas --json slug,name,role
99
+ iamu findings --open --json slug,severity,type
100
+ ```
101
+
102
+ ## License
103
+
104
+ MIT © [iamu-dev](https://github.com/iamu-dev/iamu)
@@ -0,0 +1,13 @@
1
+ import type { HostAdapter } from "./types.js";
2
+ /**
3
+ * Whether the Iamu Claude Code plugin is enabled for `projectRoot`.
4
+ * Settings merge key by key and the highest-precedence mention wins, so
5
+ * `"iamu@iamu": false` in settings.local.json overrides a user-level true.
6
+ */
7
+ export declare function iamuPluginEnabled(projectRoot: string): boolean;
8
+ /**
9
+ * The plugin ships the same skills as `/iamu:<name>`. Claude Code loads
10
+ * plugin and project skills side by side, so installing both would put
11
+ * every skill in context twice.
12
+ */
13
+ export declare function pluginProvidesSkills(host: HostAdapter, projectRoot: string): boolean;
@@ -0,0 +1,6 @@
1
+ import type { HostAdapter } from "./types.js";
2
+ export declare const HOST_ADAPTERS: HostAdapter[];
3
+ /**
4
+ * Detect which host editors are present in the given project root.
5
+ */
6
+ export declare function detectHosts(projectRoot: string): HostAdapter[];
@@ -0,0 +1,19 @@
1
+ export interface CommandContent {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ category: string;
6
+ tags: string[];
7
+ body: string;
8
+ }
9
+ export interface HostAdapter {
10
+ name: string;
11
+ value: string;
12
+ detectionPaths: string[];
13
+ supportsSkills: boolean;
14
+ 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;
19
+ }
package/dist/bin.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};