@iamu-dev/iamu 0.2.0-beta.1 → 0.2.0-beta.2
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 +29 -8
- package/dist/index.js +29 -8
- package/dist/templates/skills/iamu-setup.md +8 -16
- package/package.json +3 -3
- package/dist/adapters/claude-plugin.d.ts +0 -13
- package/dist/adapters/registry.d.ts +0 -6
- package/dist/adapters/types.d.ts +0 -19
- package/dist/bin.d.ts +0 -2
- package/dist/build-info.d.ts +0 -53
- package/dist/cloud-url.d.ts +0 -19
- package/dist/commands/auth-http.d.ts +0 -37
- package/dist/commands/auth-project-choice.d.ts +0 -74
- package/dist/commands/auth-token-input.d.ts +0 -21
- package/dist/commands/auth.d.ts +0 -84
- package/dist/commands/browse-actions.d.ts +0 -56
- package/dist/commands/browse-driver.d.ts +0 -117
- package/dist/commands/browse.d.ts +0 -156
- package/dist/commands/cloud-push.d.ts +0 -27
- package/dist/commands/complete.d.ts +0 -131
- package/dist/commands/completion.d.ts +0 -2
- package/dist/commands/context.d.ts +0 -58
- package/dist/commands/credentials.d.ts +0 -144
- package/dist/commands/diff-filter.d.ts +0 -11
- package/dist/commands/doctor.d.ts +0 -24
- package/dist/commands/evaluate.d.ts +0 -30
- package/dist/commands/findings.d.ts +0 -7
- package/dist/commands/init.d.ts +0 -9
- package/dist/commands/instructions-walk.d.ts +0 -59
- package/dist/commands/list.d.ts +0 -5
- package/dist/commands/match.d.ts +0 -12
- package/dist/commands/mcp-config.d.ts +0 -10
- package/dist/commands/new-entity.d.ts +0 -15
- package/dist/commands/new-finding.d.ts +0 -19
- package/dist/commands/open.d.ts +0 -8
- package/dist/commands/port.d.ts +0 -17
- package/dist/commands/prune.d.ts +0 -11
- package/dist/commands/pull.d.ts +0 -5
- package/dist/commands/register-cloud.d.ts +0 -5
- package/dist/commands/register-findings.d.ts +0 -5
- package/dist/commands/register-project.d.ts +0 -5
- package/dist/commands/register-walkthrough.d.ts +0 -5
- package/dist/commands/register.d.ts +0 -10
- package/dist/commands/report.d.ts +0 -3
- package/dist/commands/serve.d.ts +0 -11
- package/dist/commands/skills.d.ts +0 -34
- package/dist/commands/start-run.d.ts +0 -49
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/step-numbering.d.ts +0 -87
- package/dist/commands/step.d.ts +0 -95
- package/dist/commands/sync.d.ts +0 -6
- package/dist/commands/triage.d.ts +0 -21
- package/dist/commands/update.d.ts +0 -4
- package/dist/commands/validate.d.ts +0 -8
- package/dist/commands/view-results.d.ts +0 -9
- package/dist/index.d.ts +0 -9
- package/dist/sync-mcp/fatal.d.ts +0 -42
- package/dist/sync-mcp/server.d.ts +0 -1
- package/dist/sync-mcp/tools.d.ts +0 -12
- package/dist/templates.d.ts +0 -10
- package/dist/ui/journey-diff.d.ts +0 -3
- package/dist/ui/json.d.ts +0 -6
- package/dist/ui/logger.d.ts +0 -5
- package/dist/ui/panic.d.ts +0 -11
- package/dist/ui/symbols.d.ts +0 -11
- package/dist/ui/table.d.ts +0 -20
- package/dist/ui/update-check.d.ts +0 -6
- package/dist/worktree-state.d.ts +0 -49
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/sync-mcp/tools.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
-
/**
|
|
3
|
-
* Build the `iamu-sync` MCP server: push, pull, auth status, and
|
|
4
|
-
* background change polling over the local `iamu/` project tree.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* const server = createSyncServer();
|
|
9
|
-
* await server.connect(new StdioServerTransport());
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export declare function createSyncServer(): McpServer;
|
package/dist/templates.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolves the root directory containing `templates/`.
|
|
3
|
-
* In development (source/vitest): import.meta.url is in `src/` or `src/commands/`,
|
|
4
|
-
* so templates are located at `src/templates`.
|
|
5
|
-
* In production bundle (tsup): import.meta.url is in `dist/`,
|
|
6
|
-
* and copy-assets.mjs copies templates to `dist/templates`.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getTemplatesRoot(): string;
|
|
9
|
-
export declare function getTemplateDir(subdir: "skills" | "prompts"): string;
|
|
10
|
-
export declare function getTemplateFile(subdir: "skills" | "prompts", filename: string): string;
|
package/dist/ui/json.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pick specified keys from an array of records or a single record.
|
|
3
|
-
* Supports comma-separated field list: e.g. "slug,name,role".
|
|
4
|
-
* If fields is boolean true or undefined/empty, returns target as-is.
|
|
5
|
-
*/
|
|
6
|
-
export declare function filterJsonFields<T extends Record<string, unknown>>(target: T[] | T, fields?: string | boolean): unknown;
|
package/dist/ui/logger.d.ts
DELETED
package/dist/ui/panic.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type SigintCleanup = () => Promise<void> | void;
|
|
2
|
-
/**
|
|
3
|
-
* Registers an asynchronous cleanup handler to execute on SIGINT (e.g. closing an HTTP server).
|
|
4
|
-
* Returns an unregister function.
|
|
5
|
-
*/
|
|
6
|
-
export declare function registerSigintCleanup(handler: SigintCleanup): () => void;
|
|
7
|
-
/**
|
|
8
|
-
* Registers global process handlers for graceful shutdown and top-level error boundaries.
|
|
9
|
-
*/
|
|
10
|
-
export declare function setupProcessHandlers(): void;
|
|
11
|
-
export {};
|
package/dist/ui/symbols.d.ts
DELETED
package/dist/ui/table.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare function stripAnsi(str: string): string;
|
|
2
|
-
export declare function visualLength(str: string): number;
|
|
3
|
-
export declare function padRight(str: string, targetWidth: number): string;
|
|
4
|
-
export declare function truncate(str: string, maxWidth: number): string;
|
|
5
|
-
export interface TableColumn<T> {
|
|
6
|
-
header: string;
|
|
7
|
-
value: (item: T) => string;
|
|
8
|
-
minWidth?: number;
|
|
9
|
-
maxWidth?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface FormatTableOptions {
|
|
12
|
-
tty?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Formats data into a cleanly aligned table with dynamically calculated column widths.
|
|
16
|
-
* Automatically accounts for ANSI color sequences in length calculations.
|
|
17
|
-
* When output is piped (!process.stdout.isTTY), automatically emits machine-readable
|
|
18
|
-
* Tab-Separated Values (TSV) without ANSI escapes, borders, or text truncation.
|
|
19
|
-
*/
|
|
20
|
-
export declare function formatTable<T>(items: T[], columns: TableColumn<T>[], options?: FormatTableOptions): string[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function isSemverGreater(latest: string, current: string): boolean;
|
|
2
|
-
/**
|
|
3
|
-
* Non-blocking, cached check against npm registry for CLI updates.
|
|
4
|
-
*/
|
|
5
|
-
export declare function checkForUpdate(currentVersion: string): Promise<string | null>;
|
|
6
|
-
export declare function printUpdateNotice(currentVersion: string, latestVersion: string): void;
|
package/dist/worktree-state.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** The build block's view of the working tree. */
|
|
2
|
-
export interface WorktreeState {
|
|
3
|
-
git_dirty: boolean;
|
|
4
|
-
/** Only when dirty: 12 lowercase hex characters. */
|
|
5
|
-
worktree_hash?: string;
|
|
6
|
-
}
|
|
7
|
-
/** Answers the working-tree question for a project root. */
|
|
8
|
-
export type WorktreeDetector = (projectRoot: string) => WorktreeState | undefined;
|
|
9
|
-
/** Untracked files hashed at most; past this the count still counts. */
|
|
10
|
-
export declare const MAX_UNTRACKED_HASHED = 2000;
|
|
11
|
-
/**
|
|
12
|
-
* Whether the working tree has changes outside `iamu/`, and their
|
|
13
|
-
* fingerprint.
|
|
14
|
-
*
|
|
15
|
-
* Hash recipe (sha256, first 12 hex characters):
|
|
16
|
-
* 1. the bytes of `git diff HEAD --binary -- . ':(exclude)<iamu>'`, run
|
|
17
|
-
* from the repository root with diff settings pinned;
|
|
18
|
-
* 2. then, for each untracked non-ignored file outside `iamu/` sorted by
|
|
19
|
-
* path (bytewise, at most {@link MAX_UNTRACKED_HASHED}):
|
|
20
|
-
* `<path>\0<sha256 of content>\n`, and past the cap `+<count>\n`.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* detectWorktreeState("/work/shop");
|
|
25
|
-
* // { git_dirty: true, worktree_hash: "3fa9c1d2e4b5" }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function detectWorktreeState(projectRoot: string, iamuDirName?: string): WorktreeState | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Whether the product's code changed between `start-run` and `complete`.
|
|
31
|
-
* The build block's fingerprint is taken at start; an edit (or commit) made
|
|
32
|
-
* while the walker was out means the run's findings may mix two versions,
|
|
33
|
-
* and the build it lands in describes only the first.
|
|
34
|
-
*
|
|
35
|
-
* @param start - The run's recorded build block (`walkthrough.json`).
|
|
36
|
-
* @param now - The working tree as it is now.
|
|
37
|
-
* @returns A one-line warning, or null when nothing changed or either side
|
|
38
|
-
* is unknown.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* codeChangedWarning({ git_dirty: false }, { git_dirty: true, worktree_hash: "a1b2c3d4e5f6" });
|
|
43
|
-
* // "the product's code changed during the walk …"
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
export declare function codeChangedWarning(start: {
|
|
47
|
-
git_dirty?: boolean;
|
|
48
|
-
worktree_hash?: string;
|
|
49
|
-
} | undefined, now: WorktreeState | undefined): string | null;
|