@marcoscale98/piewf-cli 5.14.1-fork.1

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.
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env node
2
+ import { type DoctorOptions } from "./doctor.js";
3
+ import { type DoctorCleanupOptions } from "./doctor-cleanup.js";
4
+ import { type JsonSchema, type JsonValue } from "@marcoscale98/pi-extensible-workflows";
5
+ import { type InspectMode } from "./session-inspector.js";
6
+ import type { WorkflowCatalogFunction } from "@marcoscale98/pi-extensible-workflows";
7
+ export interface CliOptions extends DoctorOptions {
8
+ inspect?: (sessionId?: string, mode?: InspectMode, failedOnly?: boolean) => Promise<void>;
9
+ transcript?: (sessionFile: string) => Promise<void>;
10
+ stderr?: (text: string) => void;
11
+ signal?: AbortSignal;
12
+ trustOverride?: boolean;
13
+ isTTY?: boolean;
14
+ skillPaths?: readonly string[];
15
+ }
16
+ export declare function formatWorkflowCliHelp(fn: WorkflowCatalogFunction, command?: string): string;
17
+ export declare function parseWorkflowCliArgs(schema: JsonSchema, rawArgs: readonly string[]): Record<string, JsonValue>;
18
+ type ScriptWorkflowCliArgs = {
19
+ help: true;
20
+ } | {
21
+ help: false;
22
+ scriptPath: string;
23
+ name: string;
24
+ args: JsonValue;
25
+ };
26
+ export declare function parseScriptWorkflowCliArgs(rawArgs: readonly string[]): ScriptWorkflowCliArgs;
27
+ export declare function parseDoctorArgs(rawArgs: readonly string[]): {
28
+ role?: string;
29
+ prompt?: string;
30
+ json?: boolean;
31
+ };
32
+ export declare function parseDoctorCleanupArgs(rawArgs: readonly string[]): Required<Pick<DoctorCleanupOptions, "olderThanDays" | "yes">>;
33
+ export declare function runCli(args: readonly string[], options?: CliOptions, write?: (text: string) => void): Promise<number>;
34
+ export {};