@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.
- package/dist/src/bundles.d.ts +63 -0
- package/dist/src/bundles.js +619 -0
- package/dist/src/cli.d.ts +34 -0
- package/dist/src/cli.js +912 -0
- package/dist/src/doctor-cleanup.d.ts +41 -0
- package/dist/src/doctor-cleanup.js +659 -0
- package/dist/src/doctor.d.ts +113 -0
- package/dist/src/doctor.js +668 -0
- package/dist/src/session-inspector.d.ts +82 -0
- package/dist/src/session-inspector.js +454 -0
- package/package.json +52 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type AgentDefinition, type WorkflowCatalogFunction } from "@marcoscale98/pi-extensible-workflows";
|
|
2
|
+
export declare const CLI_PACKAGE_NAME = "@marcoscale98/piewf-cli";
|
|
3
|
+
export interface PortableWorkflowSource {
|
|
4
|
+
module: string;
|
|
5
|
+
export: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PortableWorkflowManifest {
|
|
8
|
+
format: "pi-extensible-workflows-bundle";
|
|
9
|
+
version: 1 | 2;
|
|
10
|
+
command: string;
|
|
11
|
+
workflow: {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
input: Record<string, unknown>;
|
|
15
|
+
output: Record<string, unknown>;
|
|
16
|
+
};
|
|
17
|
+
runtime: {
|
|
18
|
+
pi: string;
|
|
19
|
+
"@marcoscale98/piewf-cli": string;
|
|
20
|
+
};
|
|
21
|
+
requirements: {
|
|
22
|
+
roles: readonly string[];
|
|
23
|
+
aliases: readonly string[];
|
|
24
|
+
tools: readonly string[];
|
|
25
|
+
commands: readonly string[];
|
|
26
|
+
environment: readonly string[];
|
|
27
|
+
};
|
|
28
|
+
aliasTargets?: Readonly<Record<string, string>>;
|
|
29
|
+
source?: Readonly<PortableWorkflowSource>;
|
|
30
|
+
bundler?: {
|
|
31
|
+
esbuild: string;
|
|
32
|
+
};
|
|
33
|
+
dependencies?: readonly string[];
|
|
34
|
+
payload?: {
|
|
35
|
+
extensions?: readonly string[];
|
|
36
|
+
skills?: readonly string[];
|
|
37
|
+
static?: readonly string[];
|
|
38
|
+
dependencies?: readonly string[];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface PortableWorkflowBundleResources {
|
|
42
|
+
extensions?: readonly string[];
|
|
43
|
+
skills?: readonly string[];
|
|
44
|
+
static?: readonly string[];
|
|
45
|
+
dependencies?: readonly string[];
|
|
46
|
+
}
|
|
47
|
+
export interface PortableWorkflowBundleInput {
|
|
48
|
+
destination: string;
|
|
49
|
+
command: string;
|
|
50
|
+
workflow: WorkflowCatalogFunction;
|
|
51
|
+
source: PortableWorkflowSource;
|
|
52
|
+
dependencies?: readonly string[];
|
|
53
|
+
piVersion?: string;
|
|
54
|
+
engineVersion?: string;
|
|
55
|
+
force?: boolean;
|
|
56
|
+
requirements?: Partial<PortableWorkflowManifest["requirements"]>;
|
|
57
|
+
aliasTargets?: Readonly<Record<string, string>>;
|
|
58
|
+
roles?: Readonly<Record<string, AgentDefinition>>;
|
|
59
|
+
resources?: PortableWorkflowBundleResources;
|
|
60
|
+
}
|
|
61
|
+
export declare function portableEngineVersion(): string;
|
|
62
|
+
export declare function portablePiVersion(): string;
|
|
63
|
+
export declare function writePortableWorkflowBundle(input: PortableWorkflowBundleInput): Promise<PortableWorkflowManifest>;
|