@iamu-dev/iamu 0.2.0-beta.16 → 0.2.0-beta.19
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 +2027 -912
- package/dist/commands/edit-entity.d.ts +8 -0
- package/dist/commands/explore.d.ts +1 -0
- package/dist/commands/init.d.ts +11 -0
- package/dist/commands/new-entity.d.ts +6 -0
- package/dist/commands/set-entity.d.ts +46 -0
- package/dist/commands/summary.d.ts +6 -0
- package/dist/commands/validate.d.ts +3 -0
- package/dist/index.js +2013 -892
- package/dist/templates/skills/iamu-findings.md +15 -2
- package/dist/templates/skills/iamu-new.md +25 -29
- package/dist/templates/skills/iamu-propose.md +13 -11
- package/dist/templates/skills/iamu-run.md +65 -8
- package/dist/templates/skills/iamu-setup.md +1 -0
- package/dist/templates/skills/iamu-stage.md +155 -0
- package/dist/templates/skills/iamu-status.md +9 -0
- package/package.json +16 -16
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface EditEntityOptions {
|
|
2
|
+
json?: boolean;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Open an entity in the user's $EDITOR or $VISUAL, and validate its frontmatter
|
|
6
|
+
* against the entity schema on exit.
|
|
7
|
+
*/
|
|
8
|
+
export declare function editEntity(type: string, slug: string, opts?: EditEntityOptions): Promise<void>;
|
|
@@ -38,6 +38,7 @@ export declare function exploreList(opts: {
|
|
|
38
38
|
*/
|
|
39
39
|
export declare function exploreCoverageCommand(mapId: string | undefined, opts: {
|
|
40
40
|
json?: boolean;
|
|
41
|
+
all?: boolean;
|
|
41
42
|
}): Promise<void>;
|
|
42
43
|
/**
|
|
43
44
|
* `iamu explore diff [a] [b]` — default: the two latest maps.
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -4,6 +4,17 @@ import type { HostAdapter } from "../adapters/types.js";
|
|
|
4
4
|
* Claude Code has `/iamu:init` and no `iamu-setup`.
|
|
5
5
|
*/
|
|
6
6
|
export declare function setupCommand(projectRoot: string, hosts: HostAdapter[]): string;
|
|
7
|
+
/**
|
|
8
|
+
* Detect the target port for local dev execution.
|
|
9
|
+
* Checks, in order:
|
|
10
|
+
* 1. process.env.PORT
|
|
11
|
+
* 2. .env files (.env.local, .env.development, .env) for PORT, VITE_PORT, APP_URL, NEXT_PUBLIC_APP_URL
|
|
12
|
+
* 3. package.json scripts for `-p <port>` or `--port <port>` flags
|
|
13
|
+
* 4. package.json dependencies and framework config files (vite -> 5173, astro -> 4321)
|
|
14
|
+
*/
|
|
15
|
+
export declare function detectTargetPort(projectRoot: string): number | undefined;
|
|
16
|
+
export declare function detectTargetUrl(projectRoot: string): string;
|
|
17
|
+
export declare function createDraftTestabilityContent(targetUrl?: string): string;
|
|
7
18
|
export interface InitOptions {
|
|
8
19
|
name?: string;
|
|
9
20
|
yes?: boolean;
|
|
@@ -13,10 +13,16 @@ export interface NewEntityOptions {
|
|
|
13
13
|
authority?: string;
|
|
14
14
|
/** Primary capability slug (outline only). */
|
|
15
15
|
capability?: string;
|
|
16
|
+
/** Secondary capability slugs, comma-separated or array (outline only). */
|
|
17
|
+
additionalCapabilities?: string | string[];
|
|
16
18
|
/** Structural tension driving the situation (outline only). */
|
|
17
19
|
tension?: string;
|
|
18
20
|
/** Human-test question to evaluate at walkthrough completion (outline only). */
|
|
19
21
|
humanTest?: string | string[];
|
|
22
|
+
/** Route patterns owned by this capability, comma-separated or array (capability only). */
|
|
23
|
+
paths?: string | string[];
|
|
24
|
+
/** Optional visual grouping category (capability only). */
|
|
25
|
+
area?: string;
|
|
20
26
|
/** Scenario start path, e.g. /en/episodes/1. */
|
|
21
27
|
entry?: string;
|
|
22
28
|
/** Scenario assumed environment state description. */
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for `iamu set`. Every field is staging: where a walk starts,
|
|
3
|
+
* what the world holds, which account a persona uses, which routes an
|
|
4
|
+
* area owns. What a scenario is about (narrative, tension, human tests,
|
|
5
|
+
* brief, background) is not settable here — that is authoring's.
|
|
6
|
+
*
|
|
7
|
+
* Commander maps `--no-<flag>` to `false`, which clears the field.
|
|
8
|
+
*/
|
|
9
|
+
export interface SetEntityOptions {
|
|
10
|
+
/** Scenario start path, or `false` to clear. */
|
|
11
|
+
entry?: string | false;
|
|
12
|
+
/** Scenario default target URL, or `false` to clear. */
|
|
13
|
+
target?: string | false;
|
|
14
|
+
/** Scenario `state.description`. */
|
|
15
|
+
stateDescription?: string;
|
|
16
|
+
/** Scenario `state.approximation`. */
|
|
17
|
+
stateApproximation?: string;
|
|
18
|
+
/** `false` clears scenario `state` (Commander defaults it to `true`). */
|
|
19
|
+
state?: boolean;
|
|
20
|
+
/** Persona access key, or `false` to clear. */
|
|
21
|
+
access?: string | false;
|
|
22
|
+
/** Capability route prefixes, comma-separated; replaces `paths`, or `false` to clear. */
|
|
23
|
+
paths?: string | false;
|
|
24
|
+
/** Capability route prefix to add (repeatable). */
|
|
25
|
+
addPath?: string[];
|
|
26
|
+
/** Capability route prefix to remove (repeatable). */
|
|
27
|
+
removePath?: string[];
|
|
28
|
+
/** Capability visual grouping, or `false` to clear. */
|
|
29
|
+
area?: string | false;
|
|
30
|
+
/** JSON patch file (or - for stdin) containing staging fields. */
|
|
31
|
+
file?: string;
|
|
32
|
+
json?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* `iamu set <type> <slug>` — change the staging fields of an existing
|
|
36
|
+
* entity: a scenario's start path, target and starting state, a
|
|
37
|
+
* persona's access key, a capability's route prefixes and area.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```bash
|
|
41
|
+
* iamu set scenario maria--handoff --entry /incidents \
|
|
42
|
+
* --state-description "Five open incidents at one site"
|
|
43
|
+
* iamu set capability team-access --add-path /team
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function setEntity(type: string, slug: string, opts: SetEntityOptions): Promise<void>;
|
|
@@ -3,6 +3,8 @@ export interface SummaryOptions {
|
|
|
3
3
|
worked?: string | string[];
|
|
4
4
|
question?: string | string[];
|
|
5
5
|
model?: string;
|
|
6
|
+
/** The walk could not start as set up: what was missing, or `false` to clear. */
|
|
7
|
+
blocked?: string | false;
|
|
6
8
|
file?: string;
|
|
7
9
|
json?: boolean;
|
|
8
10
|
}
|
|
@@ -10,5 +12,9 @@ export interface SummaryData {
|
|
|
10
12
|
what_worked: string[];
|
|
11
13
|
open_questions: string[];
|
|
12
14
|
model?: string;
|
|
15
|
+
/** Set when the walk could not start as set up (`--blocked`). */
|
|
16
|
+
blocked?: {
|
|
17
|
+
reason: string;
|
|
18
|
+
};
|
|
13
19
|
}
|
|
14
20
|
export declare function summaryCommand(runIdArg: string | undefined, opts: SummaryOptions): Promise<void>;
|