@swizzy_ai/kit 1.0.4 → 1.0.6
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 +133 -46
- package/dist/core/wizard/bungee/builder.d.ts +13 -2
- package/dist/core/wizard/bungee/builder.d.ts.map +1 -1
- package/dist/core/wizard/bungee/executor.d.ts +1 -1
- package/dist/core/wizard/bungee/executor.d.ts.map +1 -1
- package/dist/core/wizard/bungee/types.d.ts +6 -1
- package/dist/core/wizard/bungee/types.d.ts.map +1 -1
- package/dist/core/wizard/state-manager.d.ts +15 -0
- package/dist/core/wizard/state-manager.d.ts.map +1 -0
- package/dist/core/wizard/steps/base.d.ts +5 -2
- package/dist/core/wizard/steps/base.d.ts.map +1 -1
- package/dist/core/wizard/steps/text.d.ts +1 -0
- package/dist/core/wizard/steps/text.d.ts.map +1 -1
- package/dist/core/wizard/visualization-manager.d.ts.map +1 -1
- package/dist/core/wizard/wizard.d.ts +14 -9
- package/dist/core/wizard/wizard.d.ts.map +1 -1
- package/dist/index.d.ts +39 -14
- package/dist/index.js +346 -191
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/wizard/context-manager.d.ts +0 -9
- package/dist/core/wizard/context-manager.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -84,14 +84,17 @@ The LLM never decides where to go or what to do - it only generates text based o
|
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
|
-
###
|
|
87
|
+
### State and Context Management
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
Wizard uses two complementary concepts for data management:
|
|
90
90
|
|
|
91
|
-
####
|
|
91
|
+
#### State: The Global Data Store
|
|
92
|
+
|
|
93
|
+
**State** is the persistent, shared data that flows through your entire workflow. It's the "source of truth" that all steps can read from and write to.
|
|
92
94
|
|
|
93
95
|
```javascript
|
|
94
|
-
|
|
96
|
+
// Set initial state
|
|
97
|
+
wizard.setState({
|
|
95
98
|
userQuestion: 'What are the key findings?',
|
|
96
99
|
documents: [
|
|
97
100
|
{ title: 'Q1 Report', pages: 45, data: [...] },
|
|
@@ -99,69 +102,68 @@ wizard.setContext({
|
|
|
99
102
|
],
|
|
100
103
|
processedCount: 0
|
|
101
104
|
});
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
#### Reading Context
|
|
105
|
-
|
|
106
|
-
Context is available in every `update` function and `context`:
|
|
107
105
|
|
|
108
|
-
|
|
106
|
+
// State is available in every update function
|
|
109
107
|
wizard.addComputeStep({
|
|
110
108
|
id: 'check_status',
|
|
111
|
-
update: (result,
|
|
112
|
-
|
|
113
|
-
console.log(`Processed ${context.processedCount} documents`);
|
|
109
|
+
update: (result, state, actions) => {
|
|
110
|
+
console.log(`Processed ${state.processedCount} documents`);
|
|
114
111
|
return actions.next();
|
|
115
112
|
}
|
|
116
113
|
});
|
|
117
|
-
```
|
|
118
114
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
```javascript
|
|
115
|
+
// Update state (supports both object and functional updates)
|
|
122
116
|
wizard.addComputeStep({
|
|
123
117
|
id: 'increment_counter',
|
|
124
|
-
update: (result,
|
|
125
|
-
actions.
|
|
126
|
-
|
|
127
|
-
});
|
|
118
|
+
update: (result, state, actions) => {
|
|
119
|
+
actions.setState({ processedCount: state.processedCount + 1 });
|
|
120
|
+
// Or using functional updates:
|
|
121
|
+
// actions.setState(prevState => ({ processedCount: prevState.processedCount + 1 }));
|
|
128
122
|
return actions.next();
|
|
129
123
|
}
|
|
130
124
|
});
|
|
131
125
|
```
|
|
132
126
|
|
|
133
|
-
#### Context
|
|
127
|
+
#### Context: What the LLM Sees
|
|
128
|
+
|
|
129
|
+
**Context** is a function that transforms your global state into a focused, LLM-friendly view. This is where you design the information architecture for each step.
|
|
134
130
|
|
|
135
|
-
The
|
|
131
|
+
The context function receives the full state and returns only what the LLM should see for that specific step.
|
|
136
132
|
|
|
137
133
|
```javascript
|
|
138
134
|
wizard.addTextStep({
|
|
139
135
|
id: 'analyze',
|
|
140
136
|
instruction: 'Analyze these documents:\n{{formattedDocs}}',
|
|
141
|
-
context: (
|
|
142
|
-
// Transform
|
|
143
|
-
formattedDocs:
|
|
137
|
+
context: (state) => ({
|
|
138
|
+
// Transform global state into LLM-friendly format
|
|
139
|
+
formattedDocs: state.documents
|
|
144
140
|
.map((doc, i) => `${i + 1}. ${doc.title} (${doc.pages} pages)`)
|
|
145
141
|
.join('\n'),
|
|
146
|
-
// Only expose what's needed
|
|
147
|
-
totalDocs:
|
|
142
|
+
// Only expose what's needed for this step
|
|
143
|
+
totalDocs: state.documents.length
|
|
148
144
|
}),
|
|
149
145
|
schema: z.object({
|
|
150
146
|
insights: z.array(z.string())
|
|
151
147
|
}),
|
|
152
148
|
model: Models.SWIZZY_DEFAULT,
|
|
153
|
-
update: (result,
|
|
154
|
-
actions.
|
|
149
|
+
update: (result, state, actions) => {
|
|
150
|
+
actions.setState({ insights: result.insights });
|
|
155
151
|
return actions.next();
|
|
156
152
|
}
|
|
157
153
|
});
|
|
158
154
|
```
|
|
159
155
|
|
|
160
|
-
**Why
|
|
161
|
-
-
|
|
162
|
-
- Present
|
|
163
|
-
- Prevent
|
|
164
|
-
- Design the exact "
|
|
156
|
+
**Why Context Functions Matter**:
|
|
157
|
+
- **Token Efficiency**: Show only relevant data to stay within LLM limits
|
|
158
|
+
- **Information Architecture**: Present data in the optimal format for the task
|
|
159
|
+
- **Security**: Prevent LLMs from seeing sensitive or distracting information
|
|
160
|
+
- **UX Design**: Craft the exact "interface" each LLM step experiences
|
|
161
|
+
|
|
162
|
+
**Key Distinction**:
|
|
163
|
+
- **State** = Global data store (persistent, shared, updatable)
|
|
164
|
+
- **Context** = Per-step data transformation (temporary, focused, read-only for LLM)
|
|
165
|
+
|
|
166
|
+
**Migration Note**: `updateContext()`, `setContext()`, and `getContext()` are still supported for backward compatibility, but `setState()` and `getState()` are the preferred modern APIs. `setState()` supports both object and functional updates.
|
|
165
167
|
|
|
166
168
|
---
|
|
167
169
|
|
|
@@ -199,7 +201,7 @@ wizard.addStep({
|
|
|
199
201
|
model: Models.SWIZZY_DEFAULT,
|
|
200
202
|
update: (result, context, actions) => {
|
|
201
203
|
// result is guaranteed to match schema
|
|
202
|
-
actions.
|
|
204
|
+
actions.setState({ entities: result });
|
|
203
205
|
return actions.next();
|
|
204
206
|
}
|
|
205
207
|
});
|
|
@@ -214,8 +216,8 @@ wizard.addTextStep({
|
|
|
214
216
|
id: 'summarize',
|
|
215
217
|
instruction: 'Summarize: {{document}}',
|
|
216
218
|
model: Models.SWIZZY_DEFAULT,
|
|
217
|
-
update: (text,
|
|
218
|
-
actions.
|
|
219
|
+
update: (text, state, actions) => {
|
|
220
|
+
actions.setState({ summary: text });
|
|
219
221
|
return actions.next();
|
|
220
222
|
}
|
|
221
223
|
});
|
|
@@ -662,7 +664,7 @@ graph TD
|
|
|
662
664
|
#### Basic Bungee Example
|
|
663
665
|
|
|
664
666
|
```javascript
|
|
665
|
-
wizard.
|
|
667
|
+
wizard.setState({
|
|
666
668
|
documents: ['doc1.txt', 'doc2.txt', 'doc3.txt']
|
|
667
669
|
});
|
|
668
670
|
|
|
@@ -727,7 +729,7 @@ wizard.addComputeStep({
|
|
|
727
729
|
Search 100 pages simultaneously instead of sequentially:
|
|
728
730
|
|
|
729
731
|
```javascript
|
|
730
|
-
wizard.
|
|
732
|
+
wizard.setState({
|
|
731
733
|
userQuestion: 'What are the key findings about climate change?',
|
|
732
734
|
totalPages: 100
|
|
733
735
|
});
|
|
@@ -888,8 +890,8 @@ const wizard = new Wizard({
|
|
|
888
890
|
}
|
|
889
891
|
});
|
|
890
892
|
|
|
891
|
-
// Initialize
|
|
892
|
-
wizard.
|
|
893
|
+
// Initialize state
|
|
894
|
+
wizard.setState({
|
|
893
895
|
documentText: 'Your document content here...',
|
|
894
896
|
userQuery: 'Extract key insights',
|
|
895
897
|
maxRetries: 3
|
|
@@ -980,6 +982,89 @@ wizard.run();
|
|
|
980
982
|
|
|
981
983
|
---
|
|
982
984
|
|
|
985
|
+
## Events
|
|
986
|
+
|
|
987
|
+
Wizard emits events throughout execution for monitoring and integration. Listen using `wizard.on(eventName, callback)`.
|
|
988
|
+
|
|
989
|
+
### State Events
|
|
990
|
+
|
|
991
|
+
| Event | Description | Data Structure |
|
|
992
|
+
|-------|-------------|----------------|
|
|
993
|
+
| `state:update` | Fired when state is modified | `{ previousState, newState, updates, timestamp }` |
|
|
994
|
+
|
|
995
|
+
**Example:**
|
|
996
|
+
```javascript
|
|
997
|
+
wizard.on('state:update', (data) => {
|
|
998
|
+
console.log('State changed:', data.updates);
|
|
999
|
+
console.log('New state:', data.newState);
|
|
1000
|
+
});
|
|
1001
|
+
```
|
|
1002
|
+
|
|
1003
|
+
### Wizard Lifecycle Events
|
|
1004
|
+
|
|
1005
|
+
| Event | Description | Data Structure |
|
|
1006
|
+
|-------|-------------|----------------|
|
|
1007
|
+
| `start` | Wizard execution begins | `{ wizardId, timestamp, steps }` |
|
|
1008
|
+
| `complete` | Wizard execution finishes successfully | `{ duration, totalSteps, timestamp }` |
|
|
1009
|
+
| `wizard:stop` | Wizard execution stops (completion or manual) | `{ reason, finalState, timestamp }` |
|
|
1010
|
+
| `pause` | Wizard execution is paused | `{ timestamp, currentStepId }` |
|
|
1011
|
+
| `resume` | Wizard execution resumes | `{ timestamp, currentStepId }` |
|
|
1012
|
+
|
|
1013
|
+
### Step Events
|
|
1014
|
+
|
|
1015
|
+
| Event | Description | Data Structure |
|
|
1016
|
+
|-------|-------------|----------------|
|
|
1017
|
+
| `step:start` | Step begins execution | `{ stepId, instruction, timestamp }` |
|
|
1018
|
+
| `step:complete` | Step finishes successfully | `{ stepId, data, duration, timestamp }` |
|
|
1019
|
+
| `step:failed` | Step fails permanently | `{ stepId, error, retryCount, timestamp }` |
|
|
1020
|
+
| `step:error` | Step encounters error (may retry) | `{ stepId, error, retryCount, timestamp }` |
|
|
1021
|
+
| `step:retry` | Step is being retried | `{ stepId, attempt, error, timestamp }` |
|
|
1022
|
+
|
|
1023
|
+
### Streaming Events
|
|
1024
|
+
|
|
1025
|
+
| Event | Description | Data Structure |
|
|
1026
|
+
|-------|-------------|----------------|
|
|
1027
|
+
| `step:chunk` | Raw text chunk during streaming | `{ stepId, chunk, timestamp }` |
|
|
1028
|
+
| `step:streaming` | Parsed data chunk during streaming | `{ stepId, data, timestamp }` |
|
|
1029
|
+
|
|
1030
|
+
**Example - Complete Event Monitoring:**
|
|
1031
|
+
```javascript
|
|
1032
|
+
// Monitor all step progress
|
|
1033
|
+
wizard.on('step:start', (data) => {
|
|
1034
|
+
console.log(`🚀 Starting step: ${data.stepId}`);
|
|
1035
|
+
});
|
|
1036
|
+
|
|
1037
|
+
wizard.on('step:complete', (data) => {
|
|
1038
|
+
console.log(`✅ Completed step: ${data.stepId} (${data.duration}ms)`);
|
|
1039
|
+
console.log('Result:', data.data);
|
|
1040
|
+
});
|
|
1041
|
+
|
|
1042
|
+
wizard.on('step:failed', (data) => {
|
|
1043
|
+
console.error(`❌ Failed step: ${data.stepId}`, data.error);
|
|
1044
|
+
});
|
|
1045
|
+
|
|
1046
|
+
// Monitor wizard completion
|
|
1047
|
+
wizard.on('wizard:stop', (data) => {
|
|
1048
|
+
console.log(`🏁 Wizard finished (${data.reason})`);
|
|
1049
|
+
console.log('Final state:', data.finalState);
|
|
1050
|
+
});
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1053
|
+
**Example - Real-time Streaming:**
|
|
1054
|
+
```javascript
|
|
1055
|
+
wizard.on('step:streaming', (data) => {
|
|
1056
|
+
// Update UI with partial results
|
|
1057
|
+
updateUI(data.stepId, data.data);
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
wizard.on('step:chunk', (data) => {
|
|
1061
|
+
// Handle raw text streaming
|
|
1062
|
+
appendToOutput(data.chunk);
|
|
1063
|
+
});
|
|
1064
|
+
```
|
|
1065
|
+
|
|
1066
|
+
---
|
|
1067
|
+
|
|
983
1068
|
## API Reference
|
|
984
1069
|
|
|
985
1070
|
### Wizard Constructor
|
|
@@ -1001,9 +1086,10 @@ new Wizard(config: {
|
|
|
1001
1086
|
|
|
1002
1087
|
| Method | Description |
|
|
1003
1088
|
|--------|-------------|
|
|
1004
|
-
| `
|
|
1005
|
-
| `
|
|
1006
|
-
| `
|
|
1089
|
+
| `setState(data)` | Initialize workflow state |
|
|
1090
|
+
| `getState()` | Retrieve current state |
|
|
1091
|
+
| `setState(updates)` | Update state (supports object or functional updates) |
|
|
1092
|
+
| `getContext()` | Retrieve current state (legacy alias for getState) |
|
|
1007
1093
|
|
|
1008
1094
|
### Step Methods
|
|
1009
1095
|
|
|
@@ -1026,7 +1112,8 @@ Available in every `update` function:
|
|
|
1026
1112
|
|
|
1027
1113
|
```typescript
|
|
1028
1114
|
{
|
|
1029
|
-
|
|
1115
|
+
setState: (updates: object | function) => void;
|
|
1116
|
+
updateContext: (updates: object) => void; // Legacy
|
|
1030
1117
|
next: () => FlowControlSignal;
|
|
1031
1118
|
goto: (stepId: string) => FlowControlSignal;
|
|
1032
1119
|
retry: () => FlowControlSignal;
|
|
@@ -5,17 +5,28 @@ export declare class BungeeBuilder {
|
|
|
5
5
|
/**
|
|
6
6
|
* Add a single step execution.
|
|
7
7
|
*/
|
|
8
|
-
readonly add: (stepId: string) => this;
|
|
8
|
+
readonly add: (stepId: string, config?: Record<string, any>) => this;
|
|
9
9
|
/**
|
|
10
10
|
* Add multiple executions based on count with config function.
|
|
11
11
|
*/
|
|
12
|
-
readonly batch: (stepId: string, count: number, configFn: (index: number) => Record<string, any
|
|
12
|
+
readonly batch: (stepId: string, count: number, configFn: (index: number) => Record<string, any>, options?: {
|
|
13
|
+
optimistic?: boolean;
|
|
14
|
+
returnToAnchor?: boolean;
|
|
15
|
+
failWizardOnFailure?: boolean;
|
|
16
|
+
}) => this;
|
|
13
17
|
/**
|
|
14
18
|
* Configure execution settings.
|
|
15
19
|
*/
|
|
16
20
|
readonly config: (options: {
|
|
17
21
|
concurrency?: number;
|
|
22
|
+
optimistic?: boolean;
|
|
23
|
+
returnToAnchor?: boolean;
|
|
24
|
+
failWizardOnFailure?: boolean;
|
|
18
25
|
}) => this;
|
|
26
|
+
/**
|
|
27
|
+
* Set completion callback.
|
|
28
|
+
*/
|
|
29
|
+
readonly onComplete: (callback: (wizard: any) => any) => this;
|
|
19
30
|
/**
|
|
20
31
|
* Trigger the Jump.
|
|
21
32
|
*/
|
|
@@ -1 +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,
|
|
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,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAGjE;IAEF;;OAEG;IACH,SAAgB,KAAK,GACnB,QAAQ,MAAM,EACd,OAAO,MAAM,EACb,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChD,UAAU;QACR,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,UAgBD;IAEF;;OAEG;IACH,SAAgB,MAAM,GAAI,SAAS;QACjC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;KAC/B,UAcC;IAEF;;OAEG;IACH,SAAgB,UAAU,GAAI,UAAU,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,UAG1D;IAEF;;OAEG;IACH,SAAgB,IAAI,QAAO;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,CAElE;CACH"}
|
|
@@ -4,7 +4,7 @@ export declare class BungeeExecutor {
|
|
|
4
4
|
private bungeeWorkers;
|
|
5
5
|
private pendingReentry;
|
|
6
6
|
constructor(wizard: any);
|
|
7
|
-
executeBungeePlan(plan: BungeePlan): Promise<
|
|
7
|
+
executeBungeePlan(plan: BungeePlan): Promise<any>;
|
|
8
8
|
private launchBungeeWorker;
|
|
9
9
|
private createTelescopeContext;
|
|
10
10
|
private executeWorkerStep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/bungee/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,qBAAa,cAAc;IASb,OAAO,CAAC,MAAM;IAR1B,OAAO,CAAC,aAAa,CAKL;IAChB,OAAO,CAAC,cAAc,CAA0B;gBAE5B,MAAM,EAAE,GAAG;IAEzB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/bungee/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,qBAAa,cAAc;IASb,OAAO,CAAC,MAAM;IAR1B,OAAO,CAAC,aAAa,CAKL;IAChB,OAAO,CAAC,cAAc,CAA0B;gBAE5B,MAAM,EAAE,GAAG;IAEzB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC;YAoCzC,kBAAkB;IAqChC,OAAO,CAAC,sBAAsB;YAShB,iBAAiB;IAW/B,kBAAkB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;YAIxE,eAAe;IAOvB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAOxC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
export interface BungeeDestination {
|
|
2
2
|
type: 'step';
|
|
3
3
|
targetId: string;
|
|
4
|
+
config?: Record<string, any>;
|
|
4
5
|
}
|
|
6
|
+
import { FlowControlSignal } from '../steps/base';
|
|
5
7
|
export interface BungeePlan {
|
|
6
8
|
id: string;
|
|
7
9
|
anchorId: string;
|
|
8
10
|
destinations: BungeeDestination[];
|
|
9
11
|
concurrency: number;
|
|
10
|
-
|
|
12
|
+
optimistic?: boolean;
|
|
13
|
+
returnToAnchor?: boolean;
|
|
14
|
+
failWizardOnFailure?: boolean;
|
|
15
|
+
onComplete?: (wizard: any) => FlowControlSignal;
|
|
11
16
|
}
|
|
12
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +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;
|
|
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;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,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,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,iBAAiB,CAAC;CACjD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class StateManager {
|
|
2
|
+
private events;
|
|
3
|
+
private state;
|
|
4
|
+
constructor(events: {
|
|
5
|
+
emit: (event: string, data?: any) => void;
|
|
6
|
+
});
|
|
7
|
+
setState(updates: Partial<any> | ((prevState: any) => Partial<any>)): void;
|
|
8
|
+
getState(): any;
|
|
9
|
+
setContext(context: any): void;
|
|
10
|
+
getContext(): any;
|
|
11
|
+
updateContext(updates: any): void;
|
|
12
|
+
getWorkflowContext(): any;
|
|
13
|
+
setWorkflowContext(state: any): void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=state-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-manager.d.ts","sourceRoot":"","sources":["../../../src/core/wizard/state-manager.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAGX,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,KAAK,CAAW;gBAEJ,MAAM,EAAE;QAAE,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAA;KAAE;IAEzE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI;IAuB1E,QAAQ,IAAI,GAAG;IAKf,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI;IAI9B,UAAU,IAAI,GAAG;IAIjB,aAAa,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI;IAIjC,kBAAkB,IAAI,GAAG;IAIzB,kBAAkB,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;CAGrC"}
|
|
@@ -3,6 +3,7 @@ import { LLMClient } from '../../../services/client';
|
|
|
3
3
|
import { BungeeBuilder } from '../bungee/builder';
|
|
4
4
|
export interface WizardActions {
|
|
5
5
|
updateContext: (updates: Record<string, any>) => void;
|
|
6
|
+
setState: (updates: Partial<any> | ((prevState: any) => Partial<any>)) => void;
|
|
6
7
|
llmClient: LLMClient;
|
|
7
8
|
goto: (stepId: string) => FlowControlSignal;
|
|
8
9
|
next: () => FlowControlSignal;
|
|
@@ -18,7 +19,7 @@ export type FlowControlSignal = 'NEXT' | 'STOP' | 'RETRY' | 'WAIT' | string | {
|
|
|
18
19
|
type: 'BUNGEE_JUMP';
|
|
19
20
|
plan: BungeePlan;
|
|
20
21
|
};
|
|
21
|
-
export type Context = (workflowContext: any) => any
|
|
22
|
+
export type Context = (workflowContext: any) => any | Promise<any>;
|
|
22
23
|
export type ContextType = 'xml' | 'template' | 'both';
|
|
23
24
|
export interface StepConfig<T = any> {
|
|
24
25
|
id: string;
|
|
@@ -30,6 +31,7 @@ export interface StepConfig<T = any> {
|
|
|
30
31
|
beforeRun?: () => Promise<void> | void;
|
|
31
32
|
afterRun?: (result: T) => Promise<void> | void;
|
|
32
33
|
model: string;
|
|
34
|
+
stream?: boolean;
|
|
33
35
|
}
|
|
34
36
|
export declare class Step<T = any> {
|
|
35
37
|
readonly id: string;
|
|
@@ -41,9 +43,10 @@ export declare class Step<T = any> {
|
|
|
41
43
|
readonly beforeRun?: () => Promise<void> | void;
|
|
42
44
|
readonly afterRun?: (result: T) => Promise<void> | void;
|
|
43
45
|
readonly model: string;
|
|
46
|
+
readonly stream?: boolean;
|
|
44
47
|
executionCount: number;
|
|
45
48
|
constructor(config: StepConfig<T>);
|
|
46
49
|
validate(data: unknown): T;
|
|
47
|
-
getContext(workflowContext: any): any
|
|
50
|
+
getContext(workflowContext: any): Promise<any>;
|
|
48
51
|
}
|
|
49
52
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/steps/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,iBAAiB,CAAC;IAC5C,IAAI,EAAE,MAAM,iBAAiB,CAAC;IAC9B,IAAI,EAAE,MAAM,iBAAiB,CAAC;IAC9B,KAAK,EAAE,MAAM,iBAAiB,CAAC;IAC/B,IAAI,EAAE,MAAM,iBAAiB,CAAC;IAC9B,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,aAAa,CAAC;KAC3B,CAAC;CACH;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAE9C,MAAM,MAAM,OAAO,GAAG,CAAC,eAAe,EAAE,GAAG,KAAK,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":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,CAAC;IAC9B,SAAgB,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,SAAK;gBAEd,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IAajC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,CAAC;IAQpB,UAAU,CAAC,eAAe,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAGrD"}
|
|
@@ -8,6 +8,7 @@ export interface TextStepConfig {
|
|
|
8
8
|
beforeRun?: () => Promise<void> | void;
|
|
9
9
|
afterRun?: (result: string) => Promise<void> | void;
|
|
10
10
|
model: string;
|
|
11
|
+
stream: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare class TextStep extends Step<string> {
|
|
13
14
|
constructor(config: TextStepConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/steps/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEhE,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,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,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;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/core/wizard/steps/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEhE,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,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,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;IACd,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,qBAAa,QAAS,SAAQ,IAAI,CAAC,MAAM,CAAC;gBAC5B,MAAM,EAAE,cAAc;IASlC,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM;CAIhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualization-manager.d.ts","sourceRoot":"","sources":["../../../src/core/wizard/visualization-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAM7B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,qBAAa,oBAAoB;IAWnB,OAAO,CAAC,MAAM;IAVnB,mBAAmB,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;I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I,CAAC;IAMlC,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAMpC,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAInC,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI;IAInC,cAAc,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAIjC,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI;IAIrC,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAQxD,OAAO,CAAC,oBAAoB;CAQ7B"}
|
|
@@ -50,7 +50,7 @@ export declare class Wizard {
|
|
|
50
50
|
private isLoggingEnabled;
|
|
51
51
|
private logger;
|
|
52
52
|
private usageTracker;
|
|
53
|
-
private
|
|
53
|
+
private stateManager;
|
|
54
54
|
private visualizationManager;
|
|
55
55
|
private bungeeExecutor;
|
|
56
56
|
private events;
|
|
@@ -99,19 +99,24 @@ export declare class Wizard {
|
|
|
99
99
|
* Uses streaming for regular steps to provide real-time parsing and UI updates.
|
|
100
100
|
* TextStep and ComputeStep use different approaches (non-streaming).
|
|
101
101
|
*/
|
|
102
|
+
/**
|
|
103
|
+
* Generates data for a wizard step by calling the LLM.
|
|
104
|
+
* CLEANED VERSION: Separates formatting rules from logic to prevent hallucination.
|
|
105
|
+
*/
|
|
102
106
|
generateStepData(step: Step, stepContext: any): Promise<any>;
|
|
103
107
|
private repairSchemaData;
|
|
104
108
|
/**
|
|
105
|
-
* Creates
|
|
109
|
+
* Creates an improved streaming XML parser for incremental processing of LLM responses.
|
|
106
110
|
*
|
|
107
|
-
* This parser
|
|
108
|
-
* fields marked with tag-category="wizard"
|
|
111
|
+
* This parser is designed to handle partial chunks robustly and provides better error recovery.
|
|
112
|
+
* It processes XML chunks as they arrive, extracting fields marked with tag-category="wizard".
|
|
109
113
|
*
|
|
110
|
-
* Key
|
|
111
|
-
* -
|
|
112
|
-
* -
|
|
113
|
-
* -
|
|
114
|
-
* -
|
|
114
|
+
* Key improvements:
|
|
115
|
+
* - Better partial tag handling
|
|
116
|
+
* - More robust regex matching
|
|
117
|
+
* - Improved buffer management
|
|
118
|
+
* - Better error recovery for malformed chunks
|
|
119
|
+
* - State machine approach for parsing
|
|
115
120
|
*
|
|
116
121
|
* @returns An object with a push method that accepts text chunks and returns parse results
|
|
117
122
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../../src/core/wizard/wizard.ts"],"names":[],"mappings":"AACA,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;AA8BxD,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;QAAC,gBAAgB,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC9C,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,iBAAiB,CAAC;IAC5C,IAAI,EAAE,MAAM,iBAAiB,CAAC;IAC9B,IAAI,EAAE,MAAM,iBAAiB,CAAC;IAC9B,KAAK,EAAE,MAAM,iBAAiB,CAAC;CAChC;AAED,KAAK,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