@swizzy_ai/kit 1.0.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.
- package/README.md +717 -0
- package/dist/core/wizard/bungee/builder.d.ts +27 -0
- package/dist/core/wizard/bungee/builder.d.ts.map +1 -0
- package/dist/core/wizard/bungee/types.d.ts +12 -0
- package/dist/core/wizard/bungee/types.d.ts.map +1 -0
- package/dist/core/wizard/index.d.ts +7 -0
- package/dist/core/wizard/index.d.ts.map +1 -0
- package/dist/core/wizard/steps/base.d.ts +48 -0
- package/dist/core/wizard/steps/base.d.ts.map +1 -0
- package/dist/core/wizard/steps/compute.d.ts +16 -0
- package/dist/core/wizard/steps/compute.d.ts.map +1 -0
- package/dist/core/wizard/steps/text.d.ts +16 -0
- package/dist/core/wizard/steps/text.d.ts.map +1 -0
- package/dist/core/wizard/wizard.d.ts +110 -0
- package/dist/core/wizard/wizard.d.ts.map +1 -0
- package/dist/index.d.ts +309 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1451 -0
- package/dist/index.js.map +1 -0
- package/dist/services/client/index.d.ts +34 -0
- package/dist/services/client/index.d.ts.map +1 -0
- package/dist/services/client/models.d.ts +17 -0
- package/dist/services/client/models.d.ts.map +1 -0
- package/dist/services/client/providers.d.ts +29 -0
- package/dist/services/client/providers.d.ts.map +1 -0
- package/dist/services/client/registry.d.ts +11 -0
- package/dist/services/client/registry.d.ts.map +1 -0
- package/dist/ui/wizard-script.js +242 -0
- package/dist/ui/wizard-styles.css +96 -0
- package/dist/ui/wizard-visualizer.html +481 -0
- package/package.json +53 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BungeePlan } from './types';
|
|
2
|
+
export declare class BungeeBuilder {
|
|
3
|
+
private _plan;
|
|
4
|
+
constructor(currentStepId: string);
|
|
5
|
+
/**
|
|
6
|
+
* Add a single step execution.
|
|
7
|
+
*/
|
|
8
|
+
readonly add: (stepId: string) => this;
|
|
9
|
+
/**
|
|
10
|
+
* Add multiple executions based on count with config function.
|
|
11
|
+
*/
|
|
12
|
+
readonly batch: (stepId: string, count: number, configFn: (index: number) => Record<string, any>) => this;
|
|
13
|
+
/**
|
|
14
|
+
* Configure execution settings.
|
|
15
|
+
*/
|
|
16
|
+
readonly config: (options: {
|
|
17
|
+
concurrency?: number;
|
|
18
|
+
}) => this;
|
|
19
|
+
/**
|
|
20
|
+
* Trigger the Jump.
|
|
21
|
+
*/
|
|
22
|
+
readonly jump: () => {
|
|
23
|
+
type: "BUNGEE_JUMP";
|
|
24
|
+
plan: BungeePlan;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/bungee/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqB,MAAM,SAAS,CAAC;AAExD,qBAAa,aAAa;IACxB,OAAO,CAAC,KAAK,CAAa;gBAEd,aAAa,EAAE,MAAM;IASjC;;OAEG;IACH,SAAgB,GAAG,GAAI,QAAQ,MAAM,UAGnC;IAEF;;OAEG;IACH,SAAgB,KAAK,GACnB,QAAQ,MAAM,EACd,OAAO,MAAM,EACb,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAOhD;IAEF;;OAEG;IACH,SAAgB,MAAM,GAAI,SAAS;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,UAKzD;IAEF;;OAEG;IACH,SAAgB,IAAI,QAAO;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAElE;CACH"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface BungeeDestination {
|
|
2
|
+
type: 'step';
|
|
3
|
+
targetId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface BungeePlan {
|
|
6
|
+
id: string;
|
|
7
|
+
anchorId: string;
|
|
8
|
+
destinations: BungeeDestination[];
|
|
9
|
+
concurrency: number;
|
|
10
|
+
configFn?: (index: number) => Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/bungee/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/wizard/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { LLMClient } from '../../../services/client';
|
|
3
|
+
import { BungeeBuilder } from '../bungee/builder';
|
|
4
|
+
export interface WizardActions {
|
|
5
|
+
updateContext: (updates: Record<string, any>) => void;
|
|
6
|
+
llmClient: LLMClient;
|
|
7
|
+
goto: (stepId: string) => FlowControlSignal;
|
|
8
|
+
next: () => FlowControlSignal;
|
|
9
|
+
stop: () => FlowControlSignal;
|
|
10
|
+
retry: () => FlowControlSignal;
|
|
11
|
+
wait: () => FlowControlSignal;
|
|
12
|
+
bungee: {
|
|
13
|
+
init: () => BungeeBuilder;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
import { BungeePlan } from '../bungee/types';
|
|
17
|
+
export type FlowControlSignal = 'NEXT' | 'STOP' | 'RETRY' | 'WAIT' | string | {
|
|
18
|
+
type: 'BUNGEE_JUMP';
|
|
19
|
+
plan: BungeePlan;
|
|
20
|
+
};
|
|
21
|
+
export type ContextFunction = (workflowContext: any) => any;
|
|
22
|
+
export type ContextType = 'xml' | 'template' | 'both';
|
|
23
|
+
export interface StepConfig<T = any> {
|
|
24
|
+
id: string;
|
|
25
|
+
instruction: string;
|
|
26
|
+
schema: z.ZodType<T>;
|
|
27
|
+
update: (result: T, workflowContext: Record<string, any>, actions: WizardActions) => Promise<FlowControlSignal>;
|
|
28
|
+
contextFunction?: ContextFunction;
|
|
29
|
+
contextType?: ContextType;
|
|
30
|
+
beforeRun?: () => Promise<void> | void;
|
|
31
|
+
afterRun?: (result: T) => Promise<void> | void;
|
|
32
|
+
model: string;
|
|
33
|
+
}
|
|
34
|
+
export declare class Step<T = any> {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly instruction: string;
|
|
37
|
+
readonly schema: z.ZodType<T>;
|
|
38
|
+
readonly update: (result: T, workflowContext: Record<string, any>, actions: WizardActions) => Promise<FlowControlSignal>;
|
|
39
|
+
readonly contextFunction?: ContextFunction;
|
|
40
|
+
readonly contextType?: ContextType;
|
|
41
|
+
readonly beforeRun?: () => Promise<void> | void;
|
|
42
|
+
readonly afterRun?: (result: T) => Promise<void> | void;
|
|
43
|
+
readonly model: string;
|
|
44
|
+
constructor(config: StepConfig<T>);
|
|
45
|
+
validate(data: unknown): T;
|
|
46
|
+
getContext(workflowContext: any): any;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","s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base';
|
|
2
|
+
export interface ComputeStepConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
instruction: string;
|
|
5
|
+
update: (result: any, workflowContext: Record<string, any>, actions: import('./base').WizardActions) => Promise<import('./base').FlowControlSignal>;
|
|
6
|
+
contextFunction?: ContextFunction;
|
|
7
|
+
contextType?: ContextType;
|
|
8
|
+
beforeRun?: () => Promise<void> | void;
|
|
9
|
+
afterRun?: (result: any) => Promise<void> | void;
|
|
10
|
+
}
|
|
11
|
+
export declare class ComputeStep extends Step<any> {
|
|
12
|
+
readonly isComputeStep: boolean;
|
|
13
|
+
constructor(config: ComputeStepConfig);
|
|
14
|
+
validate(data: unknown): any;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=compute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/steps/compute.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,QAAQ,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACpJ,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAClD;AAED,qBAAa,WAAY,SAAQ,IAAI,CAAC,GAAG,CAAC;IACxC,SAAgB,aAAa,EAAE,OAAO,CAAQ;gBAElC,MAAM,EAAE,iBAAiB;IAUrC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,GAAG;CAI7B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Step, ContextFunction, ContextType } from './base';
|
|
2
|
+
export interface TextStepConfig {
|
|
3
|
+
id: string;
|
|
4
|
+
instruction: string;
|
|
5
|
+
update: (result: string, workflowContext: Record<string, any>, actions: import('./base').WizardActions) => Promise<import('./base').FlowControlSignal>;
|
|
6
|
+
contextFunction?: ContextFunction;
|
|
7
|
+
contextType?: ContextType;
|
|
8
|
+
beforeRun?: () => Promise<void> | void;
|
|
9
|
+
afterRun?: (result: string) => Promise<void> | void;
|
|
10
|
+
model: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class TextStep extends Step<string> {
|
|
13
|
+
constructor(config: TextStepConfig);
|
|
14
|
+
validate(data: unknown): string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/steps/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAc,eAAe,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,QAAQ,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACvJ,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACpD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,QAAS,SAAQ,IAAI,CAAC,MAAM,CAAC;gBAC5B,MAAM,EAAE,cAAc;IASlC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM;CAIhC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as http from 'http';
|
|
2
|
+
import { Step, StepConfig, FlowControlSignal } from './steps/base';
|
|
3
|
+
import { TextStepConfig } from './steps/text';
|
|
4
|
+
import { ComputeStepConfig } from './steps/compute';
|
|
5
|
+
import { LLMClient } from '../../services/client/index';
|
|
6
|
+
export interface WizardConfig {
|
|
7
|
+
id: string;
|
|
8
|
+
systemPrompt?: string;
|
|
9
|
+
onUsage?: (usage: {
|
|
10
|
+
promptTokens: number;
|
|
11
|
+
completionTokens: number;
|
|
12
|
+
totalTokens: number;
|
|
13
|
+
}, provider: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface WizardContext {
|
|
16
|
+
updateContext: (updates: any) => void;
|
|
17
|
+
llmClient: LLMClient;
|
|
18
|
+
goto: (stepId: string) => FlowControlSignal;
|
|
19
|
+
next: () => FlowControlSignal;
|
|
20
|
+
stop: () => FlowControlSignal;
|
|
21
|
+
retry: () => FlowControlSignal;
|
|
22
|
+
}
|
|
23
|
+
export declare class Wizard {
|
|
24
|
+
private static readonly TEMPLATE_REGEX;
|
|
25
|
+
private static readonly WIZARD_TAG_PATTERN;
|
|
26
|
+
private id;
|
|
27
|
+
private llmClient;
|
|
28
|
+
private systemPrompt?;
|
|
29
|
+
private steps;
|
|
30
|
+
private workflowContext;
|
|
31
|
+
private logFilePath;
|
|
32
|
+
private bungeeWorkers;
|
|
33
|
+
private pendingReentry;
|
|
34
|
+
private stepIndexMap;
|
|
35
|
+
private schemaDescriptions;
|
|
36
|
+
private readonly maxCacheSize;
|
|
37
|
+
private visualizationServer?;
|
|
38
|
+
private wss?;
|
|
39
|
+
private visualizationPort?;
|
|
40
|
+
private connectedClients;
|
|
41
|
+
private readonly maxWebSocketConnections;
|
|
42
|
+
private wsIntervals;
|
|
43
|
+
private totalTokens;
|
|
44
|
+
private stepTokens;
|
|
45
|
+
private currentStepIndex;
|
|
46
|
+
private isPaused;
|
|
47
|
+
private isRunning;
|
|
48
|
+
private isStepMode;
|
|
49
|
+
private pauseResolver?;
|
|
50
|
+
private userOverrideData?;
|
|
51
|
+
private runResolver?;
|
|
52
|
+
constructor(config: WizardConfig);
|
|
53
|
+
private log;
|
|
54
|
+
private appendToFile;
|
|
55
|
+
addStep<T>(config: StepConfig<T>): this;
|
|
56
|
+
addParallelSteps(callback: (addStep: <T>(config: StepConfig<T>) => void) => void): this;
|
|
57
|
+
addTextStep(config: TextStepConfig): this;
|
|
58
|
+
addComputeStep(config: ComputeStepConfig): this;
|
|
59
|
+
goto(stepId: string): FlowControlSignal;
|
|
60
|
+
next(): FlowControlSignal;
|
|
61
|
+
stop(): FlowControlSignal;
|
|
62
|
+
retry(): FlowControlSignal;
|
|
63
|
+
wait(): FlowControlSignal;
|
|
64
|
+
private clearStepError;
|
|
65
|
+
private isStringSignal;
|
|
66
|
+
private isBungeeJumpSignal;
|
|
67
|
+
private executeBungeePlan;
|
|
68
|
+
private launchBungeeWorker;
|
|
69
|
+
private createWizardActions;
|
|
70
|
+
private createWorkerActions;
|
|
71
|
+
private createTelescopeContext;
|
|
72
|
+
private executeWorkerStep;
|
|
73
|
+
private mergeWorkerResults;
|
|
74
|
+
private retriggerAnchor;
|
|
75
|
+
private processReentries;
|
|
76
|
+
findStep(stepId: string): Step | null;
|
|
77
|
+
private findStepIndex;
|
|
78
|
+
private executeStep;
|
|
79
|
+
private processStepResult;
|
|
80
|
+
setContext(context: any): this;
|
|
81
|
+
getContext(): any;
|
|
82
|
+
updateContext(updates: any): this;
|
|
83
|
+
run(): Promise<void>;
|
|
84
|
+
private waitForRunCommand;
|
|
85
|
+
generateStepData(step: Step, stepContext: any): Promise<any>;
|
|
86
|
+
private repairSchemaData;
|
|
87
|
+
private describeSchema;
|
|
88
|
+
private getXmlExample;
|
|
89
|
+
private getSchemaType;
|
|
90
|
+
private extractSchemaFields;
|
|
91
|
+
private parseXmlToJson;
|
|
92
|
+
private parseXmlElementWithTagCategory;
|
|
93
|
+
private parseNumber;
|
|
94
|
+
private parseBoolean;
|
|
95
|
+
private parseArray;
|
|
96
|
+
private inferAndParseValue;
|
|
97
|
+
private objectToXml;
|
|
98
|
+
private escapeXml;
|
|
99
|
+
private applyTemplate;
|
|
100
|
+
visualize(port?: number): Promise<{
|
|
101
|
+
server: http.Server;
|
|
102
|
+
url: string;
|
|
103
|
+
}>;
|
|
104
|
+
private setupWebSocketHandlers;
|
|
105
|
+
private handleWebSocketMessage;
|
|
106
|
+
private sendToClients;
|
|
107
|
+
private waitForResume;
|
|
108
|
+
private getVisualizationHtml;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=wizard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../../src/core/wizard/wizard.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAiB,MAAM,cAAc,CAAC;AAClF,OAAO,EAAY,cAAc,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAe,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAKxD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAA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aAAa,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI;IAK3B,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;YAuHZ,iBAAiB;IAMlB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;YA0G3D,gBAAgB;IAwC9B,OAAO,CAAC,cAAc;IA8BtB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,8BAA8B;IAiFtC,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,WAAW;IAqBnB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,aAAa;IAef,SAAS,CAAC,IAAI,GAAE,MAAa,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAiCnF,OAAO,CAAC,sBAAsB;IAuD9B,OAAO,CAAC,sBAAsB;IAmG9B,OAAO,CAAC,aAAa;YAUP,aAAa;IAM3B,OAAO,CAAC,oBAAoB;CAQ7B"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import * as http from 'http';
|
|
3
|
+
|
|
4
|
+
interface Provider {
|
|
5
|
+
complete(options: CompletionOptions): Promise<CompletionResult>;
|
|
6
|
+
supportsModel(model: string): boolean;
|
|
7
|
+
getProviderName(): string;
|
|
8
|
+
}
|
|
9
|
+
declare abstract class BaseProvider implements Provider {
|
|
10
|
+
abstract complete(options: CompletionOptions): Promise<CompletionResult>;
|
|
11
|
+
abstract supportsModel(model: string): boolean;
|
|
12
|
+
abstract getProviderName(): string;
|
|
13
|
+
}
|
|
14
|
+
declare class SwizzyProvider extends BaseProvider {
|
|
15
|
+
private config;
|
|
16
|
+
constructor(config: LLMConfig);
|
|
17
|
+
complete(options: CompletionOptions): Promise<CompletionResult>;
|
|
18
|
+
supportsModel(model: string): boolean;
|
|
19
|
+
getProviderName(): string;
|
|
20
|
+
}
|
|
21
|
+
declare class MultiProvider extends BaseProvider {
|
|
22
|
+
private openaiKey?;
|
|
23
|
+
private anthropicKey?;
|
|
24
|
+
private googleKey?;
|
|
25
|
+
private xaiKey?;
|
|
26
|
+
constructor();
|
|
27
|
+
complete(options: CompletionOptions): Promise<CompletionResult>;
|
|
28
|
+
supportsModel(model: string): boolean;
|
|
29
|
+
getProviderName(): string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class ProviderRegistry {
|
|
33
|
+
private providers;
|
|
34
|
+
constructor();
|
|
35
|
+
private registerDefaultProviders;
|
|
36
|
+
registerProvider(name: string, provider: Provider): void;
|
|
37
|
+
getProviderForModel(model: string): Provider;
|
|
38
|
+
getAllProviders(): Provider[];
|
|
39
|
+
hasProviderForModel(model: string): boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare enum Models {
|
|
43
|
+
GPT4 = "gpt-4",
|
|
44
|
+
GPT35_TURBO = "gpt-3.5-turbo",
|
|
45
|
+
CLAUDE3_SONNET = "claude-3-sonnet-20240229",
|
|
46
|
+
CLAUDE3_HAIKU = "claude-3-haiku-20240307",
|
|
47
|
+
GEMINI_PRO = "gemini-pro",
|
|
48
|
+
GEMINI_PRO_VISION = "gemini-pro-vision",
|
|
49
|
+
GROK_BETA = "grok-beta",
|
|
50
|
+
SWIZZY_DEFAULT = "swizzy-default"
|
|
51
|
+
}
|
|
52
|
+
declare class Model {
|
|
53
|
+
readonly provider: string;
|
|
54
|
+
readonly model: string;
|
|
55
|
+
constructor(modelEnum: Models);
|
|
56
|
+
private getProviderFromModel;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface LLMConfig {
|
|
60
|
+
baseURL?: string;
|
|
61
|
+
apiKey?: string;
|
|
62
|
+
}
|
|
63
|
+
interface CompletionOptions {
|
|
64
|
+
prompt: string;
|
|
65
|
+
model?: string;
|
|
66
|
+
maxTokens?: number;
|
|
67
|
+
temperature?: number;
|
|
68
|
+
stream?: boolean;
|
|
69
|
+
onUsage?: (usage: {
|
|
70
|
+
promptTokens: number;
|
|
71
|
+
completionTokens: number;
|
|
72
|
+
totalTokens: number;
|
|
73
|
+
}, provider: string) => void;
|
|
74
|
+
}
|
|
75
|
+
interface CompletionResult {
|
|
76
|
+
text: string;
|
|
77
|
+
usage?: {
|
|
78
|
+
promptTokens: number;
|
|
79
|
+
completionTokens: number;
|
|
80
|
+
totalTokens: number;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class LLMClient {
|
|
85
|
+
private registry;
|
|
86
|
+
constructor(registry: ProviderRegistry);
|
|
87
|
+
complete(options: CompletionOptions): Promise<CompletionResult>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface BungeeDestination {
|
|
91
|
+
type: 'step';
|
|
92
|
+
targetId: string;
|
|
93
|
+
}
|
|
94
|
+
interface BungeePlan {
|
|
95
|
+
id: string;
|
|
96
|
+
anchorId: string;
|
|
97
|
+
destinations: BungeeDestination[];
|
|
98
|
+
concurrency: number;
|
|
99
|
+
configFn?: (index: number) => Record<string, any>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare class BungeeBuilder {
|
|
103
|
+
private _plan;
|
|
104
|
+
constructor(currentStepId: string);
|
|
105
|
+
/**
|
|
106
|
+
* Add a single step execution.
|
|
107
|
+
*/
|
|
108
|
+
readonly add: (stepId: string) => this;
|
|
109
|
+
/**
|
|
110
|
+
* Add multiple executions based on count with config function.
|
|
111
|
+
*/
|
|
112
|
+
readonly batch: (stepId: string, count: number, configFn: (index: number) => Record<string, any>) => this;
|
|
113
|
+
/**
|
|
114
|
+
* Configure execution settings.
|
|
115
|
+
*/
|
|
116
|
+
readonly config: (options: {
|
|
117
|
+
concurrency?: number;
|
|
118
|
+
}) => this;
|
|
119
|
+
/**
|
|
120
|
+
* Trigger the Jump.
|
|
121
|
+
*/
|
|
122
|
+
readonly jump: () => {
|
|
123
|
+
type: "BUNGEE_JUMP";
|
|
124
|
+
plan: BungeePlan;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
interface WizardActions {
|
|
129
|
+
updateContext: (updates: Record<string, any>) => void;
|
|
130
|
+
llmClient: LLMClient;
|
|
131
|
+
goto: (stepId: string) => FlowControlSignal;
|
|
132
|
+
next: () => FlowControlSignal;
|
|
133
|
+
stop: () => FlowControlSignal;
|
|
134
|
+
retry: () => FlowControlSignal;
|
|
135
|
+
wait: () => FlowControlSignal;
|
|
136
|
+
bungee: {
|
|
137
|
+
init: () => BungeeBuilder;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
type FlowControlSignal = 'NEXT' | 'STOP' | 'RETRY' | 'WAIT' | string | {
|
|
142
|
+
type: 'BUNGEE_JUMP';
|
|
143
|
+
plan: BungeePlan;
|
|
144
|
+
};
|
|
145
|
+
type ContextFunction = (workflowContext: any) => any;
|
|
146
|
+
type ContextType = 'xml' | 'template' | 'both';
|
|
147
|
+
interface StepConfig<T = any> {
|
|
148
|
+
id: string;
|
|
149
|
+
instruction: string;
|
|
150
|
+
schema: z.ZodType<T>;
|
|
151
|
+
update: (result: T, workflowContext: Record<string, any>, actions: WizardActions) => Promise<FlowControlSignal>;
|
|
152
|
+
contextFunction?: ContextFunction;
|
|
153
|
+
contextType?: ContextType;
|
|
154
|
+
beforeRun?: () => Promise<void> | void;
|
|
155
|
+
afterRun?: (result: T) => Promise<void> | void;
|
|
156
|
+
model: string;
|
|
157
|
+
}
|
|
158
|
+
declare class Step<T = any> {
|
|
159
|
+
readonly id: string;
|
|
160
|
+
readonly instruction: string;
|
|
161
|
+
readonly schema: z.ZodType<T>;
|
|
162
|
+
readonly update: (result: T, workflowContext: Record<string, any>, actions: WizardActions) => Promise<FlowControlSignal>;
|
|
163
|
+
readonly contextFunction?: ContextFunction;
|
|
164
|
+
readonly contextType?: ContextType;
|
|
165
|
+
readonly beforeRun?: () => Promise<void> | void;
|
|
166
|
+
readonly afterRun?: (result: T) => Promise<void> | void;
|
|
167
|
+
readonly model: string;
|
|
168
|
+
constructor(config: StepConfig<T>);
|
|
169
|
+
validate(data: unknown): T;
|
|
170
|
+
getContext(workflowContext: any): any;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
interface TextStepConfig {
|
|
174
|
+
id: string;
|
|
175
|
+
instruction: string;
|
|
176
|
+
update: (result: string, workflowContext: Record<string, any>, actions: WizardActions) => Promise<FlowControlSignal>;
|
|
177
|
+
contextFunction?: ContextFunction;
|
|
178
|
+
contextType?: ContextType;
|
|
179
|
+
beforeRun?: () => Promise<void> | void;
|
|
180
|
+
afterRun?: (result: string) => Promise<void> | void;
|
|
181
|
+
model: string;
|
|
182
|
+
}
|
|
183
|
+
declare class TextStep extends Step<string> {
|
|
184
|
+
constructor(config: TextStepConfig);
|
|
185
|
+
validate(data: unknown): string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface ComputeStepConfig {
|
|
189
|
+
id: string;
|
|
190
|
+
instruction: string;
|
|
191
|
+
update: (result: any, workflowContext: Record<string, any>, actions: WizardActions) => Promise<FlowControlSignal>;
|
|
192
|
+
contextFunction?: ContextFunction;
|
|
193
|
+
contextType?: ContextType;
|
|
194
|
+
beforeRun?: () => Promise<void> | void;
|
|
195
|
+
afterRun?: (result: any) => Promise<void> | void;
|
|
196
|
+
}
|
|
197
|
+
declare class ComputeStep extends Step<any> {
|
|
198
|
+
readonly isComputeStep: boolean;
|
|
199
|
+
constructor(config: ComputeStepConfig);
|
|
200
|
+
validate(data: unknown): any;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
interface WizardConfig {
|
|
204
|
+
id: string;
|
|
205
|
+
systemPrompt?: string;
|
|
206
|
+
onUsage?: (usage: {
|
|
207
|
+
promptTokens: number;
|
|
208
|
+
completionTokens: number;
|
|
209
|
+
totalTokens: number;
|
|
210
|
+
}, provider: string) => void;
|
|
211
|
+
}
|
|
212
|
+
interface WizardContext {
|
|
213
|
+
updateContext: (updates: any) => void;
|
|
214
|
+
llmClient: LLMClient;
|
|
215
|
+
goto: (stepId: string) => FlowControlSignal;
|
|
216
|
+
next: () => FlowControlSignal;
|
|
217
|
+
stop: () => FlowControlSignal;
|
|
218
|
+
retry: () => FlowControlSignal;
|
|
219
|
+
}
|
|
220
|
+
declare class Wizard {
|
|
221
|
+
private static readonly TEMPLATE_REGEX;
|
|
222
|
+
private static readonly WIZARD_TAG_PATTERN;
|
|
223
|
+
private id;
|
|
224
|
+
private llmClient;
|
|
225
|
+
private systemPrompt?;
|
|
226
|
+
private steps;
|
|
227
|
+
private workflowContext;
|
|
228
|
+
private logFilePath;
|
|
229
|
+
private bungeeWorkers;
|
|
230
|
+
private pendingReentry;
|
|
231
|
+
private stepIndexMap;
|
|
232
|
+
private schemaDescriptions;
|
|
233
|
+
private readonly maxCacheSize;
|
|
234
|
+
private visualizationServer?;
|
|
235
|
+
private wss?;
|
|
236
|
+
private visualizationPort?;
|
|
237
|
+
private connectedClients;
|
|
238
|
+
private readonly maxWebSocketConnections;
|
|
239
|
+
private wsIntervals;
|
|
240
|
+
private totalTokens;
|
|
241
|
+
private stepTokens;
|
|
242
|
+
private currentStepIndex;
|
|
243
|
+
private isPaused;
|
|
244
|
+
private isRunning;
|
|
245
|
+
private isStepMode;
|
|
246
|
+
private pauseResolver?;
|
|
247
|
+
private userOverrideData?;
|
|
248
|
+
private runResolver?;
|
|
249
|
+
constructor(config: WizardConfig);
|
|
250
|
+
private log;
|
|
251
|
+
private appendToFile;
|
|
252
|
+
addStep<T>(config: StepConfig<T>): this;
|
|
253
|
+
addParallelSteps(callback: (addStep: <T>(config: StepConfig<T>) => void) => void): this;
|
|
254
|
+
addTextStep(config: TextStepConfig): this;
|
|
255
|
+
addComputeStep(config: ComputeStepConfig): this;
|
|
256
|
+
goto(stepId: string): FlowControlSignal;
|
|
257
|
+
next(): FlowControlSignal;
|
|
258
|
+
stop(): FlowControlSignal;
|
|
259
|
+
retry(): FlowControlSignal;
|
|
260
|
+
wait(): FlowControlSignal;
|
|
261
|
+
private clearStepError;
|
|
262
|
+
private isStringSignal;
|
|
263
|
+
private isBungeeJumpSignal;
|
|
264
|
+
private executeBungeePlan;
|
|
265
|
+
private launchBungeeWorker;
|
|
266
|
+
private createWizardActions;
|
|
267
|
+
private createWorkerActions;
|
|
268
|
+
private createTelescopeContext;
|
|
269
|
+
private executeWorkerStep;
|
|
270
|
+
private mergeWorkerResults;
|
|
271
|
+
private retriggerAnchor;
|
|
272
|
+
private processReentries;
|
|
273
|
+
findStep(stepId: string): Step | null;
|
|
274
|
+
private findStepIndex;
|
|
275
|
+
private executeStep;
|
|
276
|
+
private processStepResult;
|
|
277
|
+
setContext(context: any): this;
|
|
278
|
+
getContext(): any;
|
|
279
|
+
updateContext(updates: any): this;
|
|
280
|
+
run(): Promise<void>;
|
|
281
|
+
private waitForRunCommand;
|
|
282
|
+
generateStepData(step: Step, stepContext: any): Promise<any>;
|
|
283
|
+
private repairSchemaData;
|
|
284
|
+
private describeSchema;
|
|
285
|
+
private getXmlExample;
|
|
286
|
+
private getSchemaType;
|
|
287
|
+
private extractSchemaFields;
|
|
288
|
+
private parseXmlToJson;
|
|
289
|
+
private parseXmlElementWithTagCategory;
|
|
290
|
+
private parseNumber;
|
|
291
|
+
private parseBoolean;
|
|
292
|
+
private parseArray;
|
|
293
|
+
private inferAndParseValue;
|
|
294
|
+
private objectToXml;
|
|
295
|
+
private escapeXml;
|
|
296
|
+
private applyTemplate;
|
|
297
|
+
visualize(port?: number): Promise<{
|
|
298
|
+
server: http.Server;
|
|
299
|
+
url: string;
|
|
300
|
+
}>;
|
|
301
|
+
private setupWebSocketHandlers;
|
|
302
|
+
private handleWebSocketMessage;
|
|
303
|
+
private sendToClients;
|
|
304
|
+
private waitForResume;
|
|
305
|
+
private getVisualizationHtml;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export { BaseProvider, BungeeBuilder, ComputeStep, LLMClient, Model, Models, MultiProvider, ProviderRegistry, Step, SwizzyProvider, TextStep, Wizard, Wizard as default };
|
|
309
|
+
export type { BungeeDestination, BungeePlan, CompletionOptions, CompletionResult, ComputeStepConfig, ContextFunction, ContextType, FlowControlSignal, LLMConfig, Provider, StepConfig, TextStepConfig, WizardActions, WizardConfig, WizardContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAGlD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACpE,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|