Skip to content

Commit 4809ab7

Browse files
authored
Fail on error (#72)
1 parent 52b75ff commit 4809ab7

17 files changed

+854
-804
lines changed

pdl-live/src/pdl_ast.d.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ export type Fallback =
275275
export type Role = string | null;
276276
export type Path = string[];
277277
export type File = string;
278-
export type HasError = boolean;
279278
export type Kind = "empty";
280279
/**
281280
* Name of the variable used to store the result of the execution of the block.
@@ -351,7 +350,6 @@ export type Fallback1 =
351350
*
352351
*/
353352
export type Role1 = string | null;
354-
export type HasError1 = boolean;
355353
export type Kind1 = "error";
356354
export type Msg = string;
357355
export type Program1 =
@@ -478,7 +476,6 @@ export type Fallback2 =
478476
*
479477
*/
480478
export type Role2 = string | null;
481-
export type HasError2 = boolean;
482479
export type Kind2 = "include";
483480
/**
484481
* Name of the file to include.
@@ -584,7 +581,6 @@ export type Fallback3 =
584581
*
585582
*/
586583
export type Role3 = string | null;
587-
export type HasError3 = boolean;
588584
export type Kind3 = "read";
589585
/**
590586
* Name of the file to read. If `None`, read the standard input.
@@ -674,7 +670,6 @@ export type Fallback4 =
674670
* Role of associated to the message.
675671
*/
676672
export type Role4 = string | null;
677-
export type HasError4 = boolean;
678673
export type Kind4 = "message";
679674
/**
680675
* Content of the message.
@@ -803,7 +798,6 @@ export type Fallback5 =
803798
*
804799
*/
805800
export type Role5 = string | null;
806-
export type HasError5 = boolean;
807801
export type Kind5 = "object";
808802
export type Object =
809803
| {
@@ -932,7 +926,6 @@ export type Fallback6 =
932926
*
933927
*/
934928
export type Role6 = string | null;
935-
export type HasError6 = boolean;
936929
export type Kind6 = "array";
937930
export type Array =
938931
| number
@@ -1058,7 +1051,6 @@ export type Fallback7 =
10581051
*
10591052
*/
10601053
export type Role7 = string | null;
1061-
export type HasError7 = boolean;
10621054
export type Kind7 = "sequence";
10631055
export type Sequence =
10641056
| number
@@ -1184,7 +1176,6 @@ export type Fallback8 =
11841176
*
11851177
*/
11861178
export type Role8 = string | null;
1187-
export type HasError8 = boolean;
11881179
export type Kind8 = "document";
11891180
/**
11901181
* Body of the document.
@@ -1314,7 +1305,6 @@ export type Fallback9 =
13141305
*
13151306
*/
13161307
export type Role9 = string | null;
1317-
export type HasError9 = boolean;
13181308
export type Kind9 = "for";
13191309
/**
13201310
* Body of the loop.
@@ -1503,7 +1493,6 @@ export type Fallback10 =
15031493
*
15041494
*/
15051495
export type Role10 = string | null;
1506-
export type HasError10 = boolean;
15071496
export type Kind10 = "repeat_until";
15081497
/**
15091498
* Body of the loop.
@@ -1692,7 +1681,6 @@ export type Fallback11 =
16921681
*
16931682
*/
16941683
export type Role11 = string | null;
1695-
export type HasError11 = boolean;
16961684
export type Kind11 = "repeat";
16971685
/**
16981686
* Body of the loop.
@@ -1886,7 +1874,6 @@ export type Fallback12 =
18861874
*
18871875
*/
18881876
export type Role12 = string | null;
1889-
export type HasError12 = boolean;
18901877
export type Kind12 = "if";
18911878
/**
18921879
* Branch to exectute if the condition is true.
@@ -2072,7 +2059,6 @@ export type Fallback13 =
20722059
*
20732060
*/
20742061
export type Role13 = string | null;
2075-
export type HasError13 = boolean;
20762062
export type Kind13 = "data";
20772063
/**
20782064
* Do not evaluate expressions inside strings.
@@ -2152,7 +2138,6 @@ export type Fallback14 =
21522138
*
21532139
*/
21542140
export type Role14 = string | null;
2155-
export type HasError14 = boolean;
21562141
export type Kind14 = "get";
21572142
/**
21582143
* Name of the variable to access.
@@ -2232,7 +2217,6 @@ export type Fallback15 =
22322217
*
22332218
*/
22342219
export type Role15 = string | null;
2235-
export type HasError15 = boolean;
22362220
export type Kind15 = "api";
22372221
export type Api = string;
22382222
/**
@@ -2367,7 +2351,6 @@ export type Fallback16 =
23672351
*
23682352
*/
23692353
export type Role16 = string | null;
2370-
export type HasError16 = boolean;
23712354
export type Kind16 = "code";
23722355
/**
23732356
* Programming language of the code.
@@ -2502,7 +2485,6 @@ export type Fallback17 =
25022485
*
25032486
*/
25042487
export type Role17 = string | null;
2505-
export type HasError17 = boolean;
25062488
export type Kind17 = "model";
25072489
export type Model = string;
25082490
export type Input1 =
@@ -2713,7 +2695,6 @@ export type Fallback18 =
27132695
*
27142696
*/
27152697
export type Role18 = string | null;
2716-
export type HasError18 = boolean;
27172698
export type Kind18 = "model";
27182699
export type Model1 = string;
27192700
export type Input2 =
@@ -2920,7 +2901,6 @@ export type Fallback19 =
29202901
*
29212902
*/
29222903
export type Role19 = string | null;
2923-
export type HasError19 = boolean;
29242904
export type Kind19 = "call";
29252905
/**
29262906
* Function to call.
@@ -3052,7 +3032,6 @@ export type Fallback20 =
30523032
*
30533033
*/
30543034
export type Role20 = string | null;
3055-
export type HasError20 = boolean;
30563035
export type Kind20 = "function";
30573036
/**
30583037
* Functions parameters with their types.
@@ -3207,7 +3186,6 @@ export interface FunctionBlock {
32073186
role?: Role20;
32083187
result?: unknown;
32093188
location?: LocationType | null;
3210-
has_error?: HasError20;
32113189
kind?: Kind20;
32123190
function: Function;
32133191
return: Return;
@@ -3290,7 +3268,6 @@ export interface CallBlock {
32903268
role?: Role19;
32913269
result?: unknown;
32923270
location?: LocationType | null;
3293-
has_error?: HasError19;
32943271
kind?: Kind19;
32953272
call: Call;
32963273
args?: Args;
@@ -3373,7 +3350,6 @@ export interface LitellmModelBlock {
33733350
role?: Role18;
33743351
result?: unknown;
33753352
location?: LocationType | null;
3376-
has_error?: HasError18;
33773353
kind?: Kind18;
33783354
model: Model1;
33793355
input?: Input2;
@@ -3455,7 +3431,6 @@ export interface BamModelBlock {
34553431
role?: Role17;
34563432
result?: unknown;
34573433
location?: LocationType | null;
3458-
has_error?: HasError17;
34593434
kind?: Kind17;
34603435
model: Model;
34613436
input?: Input1;
@@ -3544,7 +3519,6 @@ export interface CodeBlock {
35443519
role?: Role16;
35453520
result?: unknown;
35463521
location?: LocationType | null;
3547-
has_error?: HasError16;
35483522
kind?: Kind16;
35493523
lan: Lan;
35503524
code: Code;
@@ -3626,7 +3600,6 @@ export interface ApiBlock {
36263600
role?: Role15;
36273601
result?: unknown;
36283602
location?: LocationType | null;
3629-
has_error?: HasError15;
36303603
kind?: Kind15;
36313604
api: Api;
36323605
url: Url;
@@ -3709,7 +3682,6 @@ export interface GetBlock {
37093682
role?: Role14;
37103683
result?: unknown;
37113684
location?: LocationType | null;
3712-
has_error?: HasError14;
37133685
kind?: Kind14;
37143686
get: Get;
37153687
}
@@ -3790,7 +3762,6 @@ export interface DataBlock {
37903762
role?: Role13;
37913763
result?: unknown;
37923764
location?: LocationType | null;
3793-
has_error?: HasError13;
37943765
kind?: Kind13;
37953766
data: Data;
37963767
raw?: Raw;
@@ -3872,7 +3843,6 @@ export interface IfBlock {
38723843
role?: Role12;
38733844
result?: unknown;
38743845
location?: LocationType | null;
3875-
has_error?: HasError12;
38763846
kind?: Kind12;
38773847
if: If;
38783848
then: Then;
@@ -3956,7 +3926,6 @@ export interface RepeatBlock {
39563926
role?: Role11;
39573927
result?: unknown;
39583928
location?: LocationType | null;
3959-
has_error?: HasError11;
39603929
kind?: Kind11;
39613930
repeat: Repeat2;
39623931
num_iterations: NumIterations;
@@ -4040,7 +4009,6 @@ export interface RepeatUntilBlock {
40404009
role?: Role10;
40414010
result?: unknown;
40424011
location?: LocationType | null;
4043-
has_error?: HasError10;
40444012
kind?: Kind10;
40454013
repeat: Repeat1;
40464014
until: Until;
@@ -4124,7 +4092,6 @@ export interface ForBlock {
41244092
role?: Role9;
41254093
result?: unknown;
41264094
location?: LocationType | null;
4127-
has_error?: HasError9;
41284095
kind?: Kind9;
41294096
for: For;
41304097
repeat: Repeat;
@@ -4208,7 +4175,6 @@ export interface DocumentBlock {
42084175
role?: Role8;
42094176
result?: unknown;
42104177
location?: LocationType | null;
4211-
has_error?: HasError8;
42124178
kind?: Kind8;
42134179
document: Document;
42144180
}
@@ -4289,7 +4255,6 @@ export interface SequenceBlock {
42894255
role?: Role7;
42904256
result?: unknown;
42914257
location?: LocationType | null;
4292-
has_error?: HasError7;
42934258
kind?: Kind7;
42944259
sequence: Sequence;
42954260
}
@@ -4370,7 +4335,6 @@ export interface ArrayBlock {
43704335
role?: Role6;
43714336
result?: unknown;
43724337
location?: LocationType | null;
4373-
has_error?: HasError6;
43744338
kind?: Kind6;
43754339
array: Array;
43764340
}
@@ -4451,7 +4415,6 @@ export interface ObjectBlock {
44514415
role?: Role5;
44524416
result?: unknown;
44534417
location?: LocationType | null;
4454-
has_error?: HasError5;
44554418
kind?: Kind5;
44564419
object: Object;
44574420
}
@@ -4532,7 +4495,6 @@ export interface MessageBlock {
45324495
role: Role4;
45334496
result?: unknown;
45344497
location?: LocationType | null;
4535-
has_error?: HasError4;
45364498
kind?: Kind4;
45374499
content: Content;
45384500
}
@@ -4613,7 +4575,6 @@ export interface ReadBlock {
46134575
role?: Role3;
46144576
result?: unknown;
46154577
location?: LocationType | null;
4616-
has_error?: HasError3;
46174578
kind?: Kind3;
46184579
read: Read;
46194580
message?: Message;
@@ -4696,7 +4657,6 @@ export interface IncludeBlock {
46964657
role?: Role2;
46974658
result?: unknown;
46984659
location?: LocationType | null;
4699-
has_error?: HasError2;
47004660
kind?: Kind2;
47014661
include: Include;
47024662
trace?: Trace;
@@ -4775,7 +4735,6 @@ export interface ErrorBlock {
47754735
role?: Role1;
47764736
result?: unknown;
47774737
location?: LocationType | null;
4778-
has_error?: HasError1;
47794738
kind?: Kind1;
47804739
msg: Msg;
47814740
program: Program1;
@@ -4857,7 +4816,6 @@ export interface EmptyBlock {
48574816
role?: Role;
48584817
result?: unknown;
48594818
location?: LocationType | null;
4860-
has_error?: HasError;
48614819
kind?: Kind;
48624820
}
48634821
/**

0 commit comments

Comments
 (0)