@attest-ai/core 1.0.0-rc.2 → 1.0.0-rc.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.
package/dist/esm/cli.d.ts CHANGED
@@ -8,6 +8,9 @@
8
8
  * that the engine's `help` lists the command, and forwards the arguments, stdio and exit
9
9
  * code unchanged. A missing, mismatched or too-old engine exits 1 before anything runs, so
10
10
  * a gate such as `attest policy evaluate` never exits 0 without evaluating.
11
+ *
12
+ * `attest capture` is forwarded the same way; when the engine writes a fixture, the CLI
13
+ * then drafts its Vitest file (`emitVitest`).
11
14
  */
12
15
  /**
13
16
  * `{command: summary}` from `<engine> help`, or null if it lists none.
@@ -18,7 +21,11 @@
18
21
  declare function engineCommands(engine: string, timeoutMs?: number): Map<string, string> | null;
19
22
  /** Map a child's exit to a shell exit status (signal N → 128 + N). */
20
23
  declare function exitStatus(status: number | null, signal: NodeJS.Signals | null): number;
24
+ /** Print the engine's `help --json` document with the SDK's `init` command added. */
25
+ declare function helpJson(engine: string): number;
26
+ /** True when `attest capture` args select a mode whose fixture the CLI drafts a test for. */
27
+ declare function captureWritesFixture(args: string[]): boolean;
21
28
  /** Dispatch `attest` arguments and resolve to the process exit code. */
22
29
  declare function main(argv?: string[]): Promise<number>;
23
30
 
24
- export { engineCommands, exitStatus, main };
31
+ export { captureWritesFixture, engineCommands, exitStatus, helpJson, main };