@dagger.io/dagger 0.19.5 → 0.19.7

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.
@@ -724,6 +724,20 @@ export class Binding extends BaseClient {
724
724
  const ctx = this._ctx.select("asChangeset");
725
725
  return new Changeset(ctx);
726
726
  };
727
+ /**
728
+ * Retrieve the binding value, as type Check
729
+ */
730
+ asCheck = () => {
731
+ const ctx = this._ctx.select("asCheck");
732
+ return new Check(ctx);
733
+ };
734
+ /**
735
+ * Retrieve the binding value, as type CheckGroup
736
+ */
737
+ asCheckGroup = () => {
738
+ const ctx = this._ctx.select("asCheckGroup");
739
+ return new CheckGroup(ctx);
740
+ };
727
741
  /**
728
742
  * Retrieve the binding value, as type Cloud
729
743
  */
@@ -1036,6 +1050,166 @@ export class Changeset extends BaseClient {
1036
1050
  return new Client(ctx.copy()).loadChangesetFromID(response);
1037
1051
  };
1038
1052
  }
1053
+ export class Check extends BaseClient {
1054
+ _id = undefined;
1055
+ _completed = undefined;
1056
+ _description = undefined;
1057
+ _name = undefined;
1058
+ _passed = undefined;
1059
+ _resultEmoji = undefined;
1060
+ /**
1061
+ * Constructor is used for internal usage only, do not create object from it.
1062
+ */
1063
+ constructor(ctx, _id, _completed, _description, _name, _passed, _resultEmoji) {
1064
+ super(ctx);
1065
+ this._id = _id;
1066
+ this._completed = _completed;
1067
+ this._description = _description;
1068
+ this._name = _name;
1069
+ this._passed = _passed;
1070
+ this._resultEmoji = _resultEmoji;
1071
+ }
1072
+ /**
1073
+ * A unique identifier for this Check.
1074
+ */
1075
+ id = async () => {
1076
+ if (this._id) {
1077
+ return this._id;
1078
+ }
1079
+ const ctx = this._ctx.select("id");
1080
+ const response = await ctx.execute();
1081
+ return response;
1082
+ };
1083
+ /**
1084
+ * Whether the check completed
1085
+ */
1086
+ completed = async () => {
1087
+ if (this._completed) {
1088
+ return this._completed;
1089
+ }
1090
+ const ctx = this._ctx.select("completed");
1091
+ const response = await ctx.execute();
1092
+ return response;
1093
+ };
1094
+ /**
1095
+ * The description of the check
1096
+ */
1097
+ description = async () => {
1098
+ if (this._description) {
1099
+ return this._description;
1100
+ }
1101
+ const ctx = this._ctx.select("description");
1102
+ const response = await ctx.execute();
1103
+ return response;
1104
+ };
1105
+ /**
1106
+ * Return the fully qualified name of the check
1107
+ */
1108
+ name = async () => {
1109
+ if (this._name) {
1110
+ return this._name;
1111
+ }
1112
+ const ctx = this._ctx.select("name");
1113
+ const response = await ctx.execute();
1114
+ return response;
1115
+ };
1116
+ /**
1117
+ * Whether the check passed
1118
+ */
1119
+ passed = async () => {
1120
+ if (this._passed) {
1121
+ return this._passed;
1122
+ }
1123
+ const ctx = this._ctx.select("passed");
1124
+ const response = await ctx.execute();
1125
+ return response;
1126
+ };
1127
+ /**
1128
+ * The path of the check within its module
1129
+ */
1130
+ path = async () => {
1131
+ const ctx = this._ctx.select("path");
1132
+ const response = await ctx.execute();
1133
+ return response;
1134
+ };
1135
+ /**
1136
+ * An emoji representing the result of the check
1137
+ */
1138
+ resultEmoji = async () => {
1139
+ if (this._resultEmoji) {
1140
+ return this._resultEmoji;
1141
+ }
1142
+ const ctx = this._ctx.select("resultEmoji");
1143
+ const response = await ctx.execute();
1144
+ return response;
1145
+ };
1146
+ /**
1147
+ * Execute the check
1148
+ */
1149
+ run = () => {
1150
+ const ctx = this._ctx.select("run");
1151
+ return new Check(ctx);
1152
+ };
1153
+ /**
1154
+ * Call the provided function with current Check.
1155
+ *
1156
+ * This is useful for reusability and readability by not breaking the calling chain.
1157
+ */
1158
+ with = (arg) => {
1159
+ return arg(this);
1160
+ };
1161
+ }
1162
+ export class CheckGroup extends BaseClient {
1163
+ _id = undefined;
1164
+ /**
1165
+ * Constructor is used for internal usage only, do not create object from it.
1166
+ */
1167
+ constructor(ctx, _id) {
1168
+ super(ctx);
1169
+ this._id = _id;
1170
+ }
1171
+ /**
1172
+ * A unique identifier for this CheckGroup.
1173
+ */
1174
+ id = async () => {
1175
+ if (this._id) {
1176
+ return this._id;
1177
+ }
1178
+ const ctx = this._ctx.select("id");
1179
+ const response = await ctx.execute();
1180
+ return response;
1181
+ };
1182
+ /**
1183
+ * Return a list of individual checks and their details
1184
+ */
1185
+ list = async () => {
1186
+ const ctx = this._ctx.select("list").select("id");
1187
+ const response = await ctx.execute();
1188
+ return response.map((r) => new Client(ctx.copy()).loadCheckFromID(r.id));
1189
+ };
1190
+ /**
1191
+ * Generate a markdown report
1192
+ */
1193
+ report = () => {
1194
+ const ctx = this._ctx.select("report");
1195
+ return new File(ctx);
1196
+ };
1197
+ /**
1198
+ * Execute all selected checks
1199
+ */
1200
+ run = () => {
1201
+ const ctx = this._ctx.select("run");
1202
+ return new CheckGroup(ctx);
1203
+ };
1204
+ /**
1205
+ * Call the provided function with current CheckGroup.
1206
+ *
1207
+ * This is useful for reusability and readability by not breaking the calling chain.
1208
+ */
1209
+ with = (arg) => {
1210
+ return arg(this);
1211
+ };
1212
+ }
1039
1213
  /**
1040
1214
  * Dagger Cloud configuration and state
1041
1215
  */
@@ -2113,6 +2287,21 @@ export class CurrentModule extends BaseClient {
2113
2287
  const response = await ctx.execute();
2114
2288
  return response;
2115
2289
  };
2290
+ /**
2291
+ * The dependencies of the module.
2292
+ */
2293
+ dependencies = async () => {
2294
+ const ctx = this._ctx.select("dependencies").select("id");
2295
+ const response = await ctx.execute();
2296
+ return response.map((r) => new Client(ctx.copy()).loadModuleFromID(r.id));
2297
+ };
2298
+ /**
2299
+ * The generated files and directories made on top of the module source's context directory.
2300
+ */
2301
+ generatedContextDirectory = () => {
2302
+ const ctx = this._ctx.select("generatedContextDirectory");
2303
+ return new Directory(ctx);
2304
+ };
2116
2305
  /**
2117
2306
  * The name of the module being executed in
2118
2307
  */
@@ -3144,6 +3333,48 @@ export class Env extends BaseClient {
3144
3333
  const ctx = this._ctx.select("withChangesetOutput", { name, description });
3145
3334
  return new Env(ctx);
3146
3335
  };
3336
+ /**
3337
+ * Create or update a binding of type CheckGroup in the environment
3338
+ * @param name The name of the binding
3339
+ * @param value The CheckGroup value to assign to the binding
3340
+ * @param description The purpose of the input
3341
+ */
3342
+ withCheckGroupInput = (name, value, description) => {
3343
+ const ctx = this._ctx.select("withCheckGroupInput", {
3344
+ name,
3345
+ value,
3346
+ description,
3347
+ });
3348
+ return new Env(ctx);
3349
+ };
3350
+ /**
3351
+ * Declare a desired CheckGroup output to be assigned in the environment
3352
+ * @param name The name of the binding
3353
+ * @param description A description of the desired value of the binding
3354
+ */
3355
+ withCheckGroupOutput = (name, description) => {
3356
+ const ctx = this._ctx.select("withCheckGroupOutput", { name, description });
3357
+ return new Env(ctx);
3358
+ };
3359
+ /**
3360
+ * Create or update a binding of type Check in the environment
3361
+ * @param name The name of the binding
3362
+ * @param value The Check value to assign to the binding
3363
+ * @param description The purpose of the input
3364
+ */
3365
+ withCheckInput = (name, value, description) => {
3366
+ const ctx = this._ctx.select("withCheckInput", { name, value, description });
3367
+ return new Env(ctx);
3368
+ };
3369
+ /**
3370
+ * Declare a desired Check output to be assigned in the environment
3371
+ * @param name The name of the binding
3372
+ * @param description A description of the desired value of the binding
3373
+ */
3374
+ withCheckOutput = (name, description) => {
3375
+ const ctx = this._ctx.select("withCheckOutput", { name, description });
3376
+ return new Env(ctx);
3377
+ };
3147
3378
  /**
3148
3379
  * Create or update a binding of type Cloud in the environment
3149
3380
  * @param name The name of the binding
@@ -4255,6 +4486,13 @@ export class Function_ extends BaseClient {
4255
4486
  });
4256
4487
  return new Function_(ctx);
4257
4488
  };
4489
+ /**
4490
+ * Returns the function with a flag indicating it's a check.
4491
+ */
4492
+ withCheck = () => {
4493
+ const ctx = this._ctx.select("withCheck");
4494
+ return new Function_(ctx);
4495
+ };
4258
4496
  /**
4259
4497
  * Returns the function with the provided deprecation reason.
4260
4498
  * @param opts.reason Reason or migration path describing the deprecation.
@@ -5419,6 +5657,20 @@ export class LLM extends BaseClient {
5419
5657
  const ctx = this._ctx.select("withoutDefaultSystemPrompt");
5420
5658
  return new LLM(ctx);
5421
5659
  };
5660
+ /**
5661
+ * Clear the message history, leaving only the system prompts
5662
+ */
5663
+ withoutMessageHistory = () => {
5664
+ const ctx = this._ctx.select("withoutMessageHistory");
5665
+ return new LLM(ctx);
5666
+ };
5667
+ /**
5668
+ * Clear the system prompts, leaving only the default system prompt
5669
+ */
5670
+ withoutSystemPrompts = () => {
5671
+ const ctx = this._ctx.select("withoutSystemPrompts");
5672
+ return new LLM(ctx);
5673
+ };
5422
5674
  /**
5423
5675
  * Call the provided function with current LLM.
5424
5676
  *
@@ -5611,6 +5863,24 @@ export class Module_ extends BaseClient {
5611
5863
  const response = await ctx.execute();
5612
5864
  return response;
5613
5865
  };
5866
+ /**
5867
+ * Return the check defined by the module with the given name. Must match to exactly one check.
5868
+ * @param name The name of the check to retrieve
5869
+ * @experimental
5870
+ */
5871
+ check = (name) => {
5872
+ const ctx = this._ctx.select("check", { name });
5873
+ return new Check(ctx);
5874
+ };
5875
+ /**
5876
+ * Return all checks defined by the module
5877
+ * @param opts.include Only include checks matching the specified patterns
5878
+ * @experimental
5879
+ */
5880
+ checks = (opts) => {
5881
+ const ctx = this._ctx.select("checks", { ...opts });
5882
+ return new CheckGroup(ctx);
5883
+ };
5614
5884
  /**
5615
5885
  * The dependencies of the module.
5616
5886
  */
@@ -6761,6 +7031,20 @@ export class Client extends BaseClient {
6761
7031
  const ctx = this._ctx.select("loadChangesetFromID", { id });
6762
7032
  return new Changeset(ctx);
6763
7033
  };
7034
+ /**
7035
+ * Load a Check from its ID.
7036
+ */
7037
+ loadCheckFromID = (id) => {
7038
+ const ctx = this._ctx.select("loadCheckFromID", { id });
7039
+ return new Check(ctx);
7040
+ };
7041
+ /**
7042
+ * Load a CheckGroup from its ID.
7043
+ */
7044
+ loadCheckGroupFromID = (id) => {
7045
+ const ctx = this._ctx.select("loadCheckGroupFromID", { id });
7046
+ return new CheckGroup(ctx);
7047
+ };
6764
7048
  /**
6765
7049
  * Load a Cloud from its ID.
6766
7050
  */
@@ -11,6 +11,11 @@ export declare const object: () => (<T extends import("./registry.js").Class>(co
11
11
  * @param alias The alias to use for the field when exposed on the API.
12
12
  */
13
13
  export declare const func: (alias?: string) => ((target: object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => void);
14
+ /**
15
+ * The definition of @check decorator that marks a function as a check.
16
+ * Checks are functions that return void/error to indicate pass/fail.
17
+ */
18
+ export declare const check: () => ((target: object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => void);
14
19
  /**
15
20
  * The definition of @field decorator that should be on top of any
16
21
  * class' property that must be exposed to the Dagger API.
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/module/decorators.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,MAAM,wEAAkB,CAAA;AAErC;;;;;GAKG;AACH,eAAO,MAAM,IAAI,gFAoC2rD,CAAC,8BApC5qD,CAAA;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,qEAAiB,CAAA;AAEnC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wEAAoB,CAAA;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,yIAAoB,CAAA"}
1
+ {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/module/decorators.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,MAAM,wEAAkB,CAAA;AAErC;;;;;GAKG;AACH,eAAO,MAAM,IAAI,gFA0CggD,CAAC,8BA1Cj/C,CAAA;AAEjC;;;GAGG;AACH,eAAO,MAAM,KAAK,kEAoCk1D,CAAC,8BApCl0D,CAAA;AAEnC;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,qEAAiB,CAAA;AAEnC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wEAAoB,CAAA;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,yIAAoB,CAAA"}
@@ -15,6 +15,11 @@ export const object = registry.object;
15
15
  * @param alias The alias to use for the field when exposed on the API.
16
16
  */
17
17
  export const func = registry.func;
18
+ /**
19
+ * The definition of @check decorator that marks a function as a check.
20
+ * Checks are functions that return void/error to indicate pass/fail.
21
+ */
22
+ export const check = registry.check;
18
23
  /**
19
24
  * The definition of @field decorator that should be on top of any
20
25
  * class' property that must be exposed to the Dagger API.
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/module/entrypoint/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,QAAQ,EACR,OAAO,EAQR,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,eAAe,IAAI,SAAS,EAC5B,iBAAiB,IAAI,WAAW,EAChC,cAAc,IAAI,MAAM,EACxB,YAAY,EAEZ,cAAc,EACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AAU5F,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,YAAY;IAEjD;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAyF9B;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS;IAInE;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS;IAgC7D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,CAAC,GAAG,EAAE,SAAS,KAAK,SAAS;IAmDtD;;;;;;;OAOG;IACH,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS;CA4BjE"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/module/entrypoint/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,QAAQ,EACR,OAAO,EAQR,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,eAAe,IAAI,SAAS,EAC5B,iBAAiB,IAAI,WAAW,EAChC,cAAc,IAAI,MAAM,EACxB,YAAY,EAEZ,cAAc,EACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AAU5F,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,YAAY;IAEjD;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAyF9B;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS;IAInE;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS;IAoC7D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,CAAC,GAAG,EAAE,SAAS,KAAK,SAAS;IAmDtD;;;;;;;OAOG;IACH,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS;CA4BjE"}
@@ -108,6 +108,9 @@ export class Register {
108
108
  if (fct.deprecated !== undefined) {
109
109
  fnDef = fnDef.withDeprecated({ reason: fct.deprecated });
110
110
  }
111
+ if (fct.isCheck) {
112
+ fnDef = fnDef.withCheck();
113
+ }
111
114
  return fnDef;
112
115
  }
113
116
  /**
@@ -1,6 +1,7 @@
1
- export type DaggerDecorators = "object" | "func" | "argument" | "enumType" | "field";
1
+ export type DaggerDecorators = "object" | "func" | "check" | "argument" | "enumType" | "field";
2
2
  export declare const OBJECT_DECORATOR: DaggerDecorators;
3
3
  export declare const FUNCTION_DECORATOR: DaggerDecorators;
4
+ export declare const CHECK_DECORATOR: DaggerDecorators;
4
5
  export declare const FIELD_DECORATOR: DaggerDecorators;
5
6
  export declare const ARGUMENT_DECORATOR: DaggerDecorators;
6
7
  export declare const ENUM_DECORATOR: DaggerDecorators;
@@ -1 +1 @@
1
- {"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/decorator.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,OAAO,CAAA;AAEX,eAAO,MAAM,gBAAgB,EAAkB,gBAAgB,CAAA;AAC/D,eAAO,MAAM,kBAAkB,EAAgB,gBAAgB,CAAA;AAC/D,eAAO,MAAM,eAAe,EAAiB,gBAAgB,CAAA;AAC7D,eAAO,MAAM,kBAAkB,EAAoB,gBAAgB,CAAA;AACnE,eAAO,MAAM,cAAc,EAAoB,gBAAgB,CAAA"}
1
+ {"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/decorator.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,MAAM,GACN,OAAO,GACP,UAAU,GACV,UAAU,GACV,OAAO,CAAA;AAEX,eAAO,MAAM,gBAAgB,EAAkB,gBAAgB,CAAA;AAC/D,eAAO,MAAM,kBAAkB,EAAgB,gBAAgB,CAAA;AAC/D,eAAO,MAAM,eAAe,EAAiB,gBAAgB,CAAA;AAC7D,eAAO,MAAM,eAAe,EAAiB,gBAAgB,CAAA;AAC7D,eAAO,MAAM,kBAAkB,EAAoB,gBAAgB,CAAA;AACnE,eAAO,MAAM,cAAc,EAAoB,gBAAgB,CAAA"}
@@ -1,6 +1,7 @@
1
- import { argument, func, object, enumType, field } from "../../decorators.js";
1
+ import { argument, func, object, enumType, field, check, } from "../../decorators.js";
2
2
  export const OBJECT_DECORATOR = object.name;
3
3
  export const FUNCTION_DECORATOR = func.name;
4
+ export const CHECK_DECORATOR = check.name;
4
5
  export const FIELD_DECORATOR = field.name;
5
6
  export const ARGUMENT_DECORATOR = argument.name;
6
7
  export const ENUM_DECORATOR = enumType.name;
@@ -19,6 +19,7 @@ export declare class DaggerFunction extends Locatable {
19
19
  arguments: DaggerArguments;
20
20
  alias: string | undefined;
21
21
  cache: string | undefined;
22
+ isCheck: boolean;
22
23
  private signature;
23
24
  private symbol;
24
25
  constructor(node: ts.MethodDeclaration, ast: AST);
@@ -1 +1 @@
1
- {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAkB,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,CAAA;AAEhE,qBAAa,cAAe,SAAQ,SAAS;IAczC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAdf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,cAAc,CAAC,CAAQ;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IACjC,SAAS,EAAE,eAAe,CAAK;IAC/B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAEhC,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,MAAM,CAAW;gBAGN,IAAI,EAAE,EAAE,CAAC,iBAAiB,EAC1B,GAAG,EAAE,GAAG;IAkC3B,OAAO,CAAC,aAAa;IAWd,YAAY,IAAI,MAAM,EAAE;IAIxB,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,EAAE;IAIxB,aAAa,IAAI,MAAM,EAAE;IAoBzB,mBAAmB,CAAC,UAAU,EAAE,UAAU;IAuB1C,MAAM;;;;;;;;CAUd"}
@@ -1,7 +1,7 @@
1
1
  import { IntrospectionError } from "../../../common/errors/index.js";
2
2
  import { AST, isTypeDefResolved, resolveTypeDef, } from "../typescript_module/index.js";
3
3
  import { DaggerArgument } from "./argument.js";
4
- import { FUNCTION_DECORATOR } from "./decorator.js";
4
+ import { CHECK_DECORATOR, FUNCTION_DECORATOR } from "./decorator.js";
5
5
  import { Locatable } from "./locatable.js";
6
6
  export class DaggerFunction extends Locatable {
7
7
  node;
@@ -14,6 +14,7 @@ export class DaggerFunction extends Locatable {
14
14
  arguments = {};
15
15
  alias;
16
16
  cache;
17
+ isCheck = false;
17
18
  signature;
18
19
  symbol;
19
20
  constructor(node, ast) {
@@ -38,6 +39,10 @@ export class DaggerFunction extends Locatable {
38
39
  this.cache = functionArguments.cache;
39
40
  }
40
41
  }
42
+ // Parse @check decorator
43
+ if (this.ast.isNodeDecoratedWith(this.node, CHECK_DECORATOR)) {
44
+ this.isCheck = true;
45
+ }
41
46
  for (const parameter of this.node.parameters) {
42
47
  this.arguments[parameter.name.getText()] = new DaggerArgument(parameter, this.ast);
43
48
  }
@@ -57,6 +57,7 @@ export declare class AST {
57
57
  typeToStringType(type: ts.Type): string;
58
58
  tsTypeToTypeDef(node: ts.Node, type: ts.Type): TypeDef<TypeDefKind> | undefined;
59
59
  private resolveParameterDefaultValueTypeReference;
60
+ private getLiteralValueFromExpression;
60
61
  private warnUnresolvedDefaultValue;
61
62
  resolveParameterDefaultValue(expression: ts.Expression): any;
62
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/typescript_module/ast.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE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Ae,CACpB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS;IA4DnC,OAAO,CAAC,yCAAyC;IAuBjD,OAAO,CAAC,6BAA6B;IAmErC,OAAO,CAAC,0BAA0B;IAO3B,4BAA4B,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,GAAG;CAgIpE"}
@@ -304,6 +304,62 @@ export class AST {
304
304
  return undefined;
305
305
  }
306
306
  }
307
+ // Try to extract literal values (enum members, string/number/boolean/bigint
308
+ // literals) directly from the type checker. Returns undefined if the
309
+ // expression is not a literal.
310
+ getLiteralValueFromExpression(expression) {
311
+ const type = this.checker.getTypeAtLocation(expression);
312
+ if (!type) {
313
+ return undefined;
314
+ }
315
+ const resolveLiteral = (t) => {
316
+ if (t.flags & ts.TypeFlags.BooleanLiteral) {
317
+ const intrinsic = t;
318
+ // Handle boolean value
319
+ switch (intrinsic.intrinsicName) {
320
+ case "true":
321
+ return true;
322
+ case "false":
323
+ return false;
324
+ }
325
+ }
326
+ if (t.flags &
327
+ (ts.TypeFlags.EnumLiteral |
328
+ ts.TypeFlags.StringLiteral |
329
+ ts.TypeFlags.NumberLiteral |
330
+ ts.TypeFlags.BigIntLiteral)) {
331
+ const literal = t;
332
+ if (literal.value !== undefined) {
333
+ return literal.value;
334
+ }
335
+ // Some literals only expose `intrinsicName`. Example:
336
+ // const yes = true; function use(flag: boolean = yes) {}
337
+ // The checker reports `intrinsicName: "true"` without a `value`, so we fallback.
338
+ const intrinsic = literal;
339
+ if (intrinsic.intrinsicName !== undefined) {
340
+ return intrinsic.intrinsicName;
341
+ }
342
+ }
343
+ return undefined;
344
+ };
345
+ if (type.isUnion()) {
346
+ // Walk union members to surface the literal. Example:
347
+ // ```ts
348
+ // const defaults = { proto: NetworkProtocol.Udp }
349
+ // function use(proto: NetworkProtocol = defaults.proto) {}
350
+ // ```
351
+ // The checker reports `defaults.proto` as `NetworkProtocol.Tcp | NetworkProtocol.Udp`,
352
+ // so we inspect each subtype to recover the actual default value.
353
+ for (const subtype of type.types) {
354
+ const literal = resolveLiteral(subtype);
355
+ if (literal !== undefined) {
356
+ return literal;
357
+ }
358
+ }
359
+ return undefined;
360
+ }
361
+ return resolveLiteral(type);
362
+ }
307
363
  warnUnresolvedDefaultValue(expression) {
308
364
  console.warn(`default value '${expression.getText()}' at ${AST.getNodePosition(expression)} cannot be resolved, dagger does not support object or function as default value.
309
365
  The value will be ignored by the introspection and resolve at the runtime.`);
@@ -377,22 +433,37 @@ export class AST {
377
433
  return undefined;
378
434
  }
379
435
  case ts.SyntaxKind.PropertyAccessExpression: {
380
- const symbol = this.checker.getSymbolAtLocation(expression);
381
- if (!symbol)
382
- return undefined;
383
- const decl = symbol.valueDeclaration;
384
- if (!decl) {
385
- this.warnUnresolvedDefaultValue(expression);
386
- return undefined;
436
+ const propertyAccess = expression;
437
+ // Quick path: TypeScript already computed the literal value.
438
+ const directConstant = this.checker.getConstantValue(propertyAccess);
439
+ if (directConstant !== undefined) {
440
+ return directConstant;
387
441
  }
388
- if (ts.isEnumMember(decl)) {
389
- const val = this.checker.getConstantValue(decl);
390
- if (val !== undefined)
391
- return val;
392
- if (decl.initializer)
393
- return this.resolveParameterDefaultValue(decl.initializer);
442
+ // Otherwise inspect the enum member backing the property accessor.
443
+ const nameSymbol = this.checker.getSymbolAtLocation(propertyAccess.name);
444
+ if (nameSymbol) {
445
+ const declarations = nameSymbol.declarations ?? [];
446
+ const decls = nameSymbol.valueDeclaration
447
+ ? [nameSymbol.valueDeclaration, ...declarations]
448
+ : declarations;
449
+ for (const decl of decls) {
450
+ if (ts.isEnumMember(decl)) {
451
+ const val = this.checker.getConstantValue(decl);
452
+ if (val !== undefined) {
453
+ return val;
454
+ }
455
+ if (decl.initializer) {
456
+ return this.resolveParameterDefaultValue(decl.initializer);
457
+ }
458
+ }
459
+ }
394
460
  }
395
- // Warn the user if the default value cannot be resolved
461
+ // Fall back to literal type information if available.
462
+ const literal = this.getLiteralValueFromExpression(propertyAccess);
463
+ if (literal !== undefined) {
464
+ return literal;
465
+ }
466
+ // Warn the user if the default value cannot be resolved.
396
467
  this.warnUnresolvedDefaultValue(expression);
397
468
  return undefined;
398
469
  }
@@ -77,6 +77,10 @@ export declare class Registry {
77
77
  * class' method that must be exposed to the Dagger API.
78
78
  */
79
79
  func: (alias?: string) => ((target: object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => void);
80
+ /**
81
+ * The definition of @check decorator that marks a function as a check.
82
+ */
83
+ check: () => ((target: object, propertyKey: string | symbol, descriptor?: PropertyDescriptor) => void);
80
84
  argument: (opts?: ArgumentOptions) => ((target: object, propertyKey: string | undefined, parameterIndex: number) => void);
81
85
  /**
82
86
  * Build a class that is part of the module itself so you can
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/module/registry.ts"],"names":[],"mappings":"AAIA,OAAO,kBAAkB,CAAA;AAIzB,MAAM,MAAM,KAAK,GAAG;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA;CAAE,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAU1C,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,QAAQ;I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B,cAAc,EAAE,MAAM,KACnB,IAAI,CAAC,CAMT;IAED;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,GAAG;IAY7C;;;;;;;;;;OAUG;IACG,SAAS,CACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,IAAI,GACX,OAAO,CAAC,GAAG,CAAC;CAiChB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,UAAiB,CAAA"}
@@ -59,6 +59,12 @@ export class Registry {
59
59
  func = (alias) => {
60
60
  return (target, propertyKey, descriptor) => { };
61
61
  };
62
+ /**
63
+ * The definition of @check decorator that marks a function as a check.
64
+ */
65
+ check = () => {
66
+ return (target, propertyKey, descriptor) => { };
67
+ };
62
68
  argument = (opts) => {
63
69
  return (target, propertyKey, parameterIndex) => { };
64
70
  };
@@ -1,2 +1,2 @@
1
- export declare const CLI_VERSION = "0.19.5";
1
+ export declare const CLI_VERSION = "0.19.7";
2
2
  //# sourceMappingURL=default.d.ts.map
@@ -1,2 +1,2 @@
1
1
  // Code generated by dagger. DO NOT EDIT.
2
- export const CLI_VERSION = "0.19.5";
2
+ export const CLI_VERSION = "0.19.7";