@iamu-dev/iamu 0.4.0-beta.0 → 0.5.0-beta.0

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.
@@ -1,5 +1,5 @@
1
1
  /** Stamped into `advised_by` and `advice.json`. Bump when advise.md changes meaningfully. */
2
- export declare const ADVISOR_VERSION = "1.2.0";
2
+ export declare const ADVISOR_VERSION = "1.3.0";
3
3
  /** The installed `iamu/.prompts/advise.md`, or the bundled template. */
4
4
  export declare function readAdvisePrompt(projectRoot: string): string;
5
5
  export interface AdviseOptions {
@@ -15,6 +15,8 @@ export declare function readAnswerInput(opts: AnswerInputOptions, what: string,
15
15
  defaultPath: string;
16
16
  code: string;
17
17
  fix: string;
18
- }): Promise<{
18
+ },
19
+ /** `text`: return the raw text (a Markdown answer) instead of parsed JSON. */
20
+ as?: "json" | "text"): Promise<{
19
21
  value: unknown;
20
22
  } | undefined>;
@@ -0,0 +1,29 @@
1
+ export interface DesignOptions {
2
+ json?: boolean;
3
+ record?: boolean;
4
+ kind?: string;
5
+ file?: string;
6
+ data?: string;
7
+ answers?: string;
8
+ promptFile?: string;
9
+ }
10
+ /** What design material the project has, and the state of its rules. */
11
+ export declare function designStatus(opts: DesignOptions): Promise<void>;
12
+ /** Find design material; with --record, record every candidate as a source. */
13
+ export declare function designDetect(opts: DesignOptions): Promise<void>;
14
+ /** Record exactly these sources (kind from detection, else --kind, else rules). */
15
+ export declare function designSources(paths: string[], opts: DesignOptions): Promise<void>;
16
+ /** Write the drafting prompt: intent, people, what the code establishes. */
17
+ export declare function designDraft(opts: DesignOptions): Promise<void>;
18
+ /** Record a drafted or edited design doc (Markdown). */
19
+ export declare function designRecord(opts: DesignOptions): Promise<void>;
20
+ /** Write the review prompt for one surface: its dossier and the method. */
21
+ export declare function designReview(target: string, opts: DesignOptions): Promise<void>;
22
+ /** Record a design review answer (JSON) for one surface. */
23
+ export declare function designReviewRecord(target: string, opts: DesignOptions): Promise<void>;
24
+ /** List proposed edits to the design rules, open first. */
25
+ export declare function designProposals(opts: DesignOptions): Promise<void>;
26
+ /** Accept (apply to the doc) or reject a proposal. */
27
+ export declare function designDecide(slug: string, decision: "accepted" | "rejected", opts: DesignOptions): Promise<void>;
28
+ /** Add (once) a pointer to the design rules in an agent instructions file. */
29
+ export declare function designLinkAgents(opts: DesignOptions): Promise<void>;
@@ -0,0 +1,3 @@
1
+ export declare function fixBrief(ref: string, opts: {
2
+ json?: boolean;
3
+ }): Promise<void>;
@@ -0,0 +1,5 @@
1
+ import type { Command } from "commander";
2
+ /**
3
+ * Registers `design` (rules, reviews, proposals) and `fix-brief`.
4
+ */
5
+ export declare function registerDesignCommands(program: Command): void;
@@ -1,5 +1,6 @@
1
1
  import type { Command } from "commander";
2
2
  import { registerCloudCommands } from "./register-cloud.js";
3
+ import { registerDesignCommands } from "./register-design.js";
3
4
  import { registerFindingsCommands } from "./register-findings.js";
4
5
  import { registerProjectCommands } from "./register-project.js";
5
6
  import { registerWalkthroughCommands } from "./register-walkthrough.js";
@@ -7,4 +8,4 @@ import { registerWalkthroughCommands } from "./register-walkthrough.js";
7
8
  * Registers all CLI command groups onto the root Commander program.
8
9
  */
9
10
  export declare function registerAllCommands(program: Command): void;
10
- export { registerProjectCommands, registerWalkthroughCommands, registerFindingsCommands, registerCloudCommands, };
11
+ export { registerProjectCommands, registerWalkthroughCommands, registerFindingsCommands, registerDesignCommands, registerCloudCommands, };
@@ -2,6 +2,8 @@ export interface SummaryOptions {
2
2
  run?: string;
3
3
  worked?: string | string[];
4
4
  question?: string | string[];
5
+ /** Doubts about the test setup (data, accounts, dates), not the product. */
6
+ setupNote?: string | string[];
5
7
  model?: string;
6
8
  /** The walk could not start as set up: what was missing, or `false` to clear. */
7
9
  blocked?: string | false;
@@ -11,6 +13,8 @@ export interface SummaryOptions {
11
13
  export interface SummaryData {
12
14
  what_worked: string[];
13
15
  open_questions: string[];
16
+ /** Doubts about the test setup, for whoever stages the scenario. */
17
+ setup_notes: string[];
14
18
  model?: string;
15
19
  /** Set when the walk could not start as set up (`--blocked`). */
16
20
  blocked?: {