@dagger.io/dagger 0.19.4 → 0.19.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.
Files changed (42) hide show
  1. package/dist/src/api/client.gen.d.ts +82 -6
  2. package/dist/src/api/client.gen.d.ts.map +1 -1
  3. package/dist/src/api/client.gen.js +110 -6
  4. package/dist/src/module/entrypoint/register.d.ts.map +1 -1
  5. package/dist/src/module/entrypoint/register.js +17 -7
  6. package/dist/src/module/introspector/dagger_module/argument.d.ts +2 -0
  7. package/dist/src/module/introspector/dagger_module/argument.d.ts.map +1 -1
  8. package/dist/src/module/introspector/dagger_module/argument.js +9 -2
  9. package/dist/src/module/introspector/dagger_module/enum.d.ts +2 -0
  10. package/dist/src/module/introspector/dagger_module/enum.d.ts.map +1 -1
  11. package/dist/src/module/introspector/dagger_module/enum.js +5 -1
  12. package/dist/src/module/introspector/dagger_module/enumBase.d.ts +1 -0
  13. package/dist/src/module/introspector/dagger_module/enumBase.d.ts.map +1 -1
  14. package/dist/src/module/introspector/dagger_module/enumClass.d.ts +2 -0
  15. package/dist/src/module/introspector/dagger_module/enumClass.d.ts.map +1 -1
  16. package/dist/src/module/introspector/dagger_module/enumClass.js +5 -1
  17. package/dist/src/module/introspector/dagger_module/function.d.ts +2 -0
  18. package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -1
  19. package/dist/src/module/introspector/dagger_module/function.js +5 -1
  20. package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts +2 -0
  21. package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts.map +1 -1
  22. package/dist/src/module/introspector/dagger_module/interfaceFunction.js +5 -1
  23. package/dist/src/module/introspector/dagger_module/object.d.ts +2 -0
  24. package/dist/src/module/introspector/dagger_module/object.d.ts.map +1 -1
  25. package/dist/src/module/introspector/dagger_module/object.js +5 -1
  26. package/dist/src/module/introspector/dagger_module/objectBase.d.ts +2 -0
  27. package/dist/src/module/introspector/dagger_module/objectBase.d.ts.map +1 -1
  28. package/dist/src/module/introspector/dagger_module/property.d.ts +2 -0
  29. package/dist/src/module/introspector/dagger_module/property.d.ts.map +1 -1
  30. package/dist/src/module/introspector/dagger_module/property.js +5 -1
  31. package/dist/src/module/introspector/dagger_module/typeObject.d.ts +2 -0
  32. package/dist/src/module/introspector/dagger_module/typeObject.d.ts.map +1 -1
  33. package/dist/src/module/introspector/dagger_module/typeObject.js +5 -1
  34. package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts +2 -0
  35. package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts.map +1 -1
  36. package/dist/src/module/introspector/dagger_module/typeObjectProperty.js +5 -1
  37. package/dist/src/module/introspector/typescript_module/ast.d.ts +5 -0
  38. package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -1
  39. package/dist/src/module/introspector/typescript_module/ast.js +24 -1
  40. package/dist/src/provisioning/default.d.ts +1 -1
  41. package/dist/src/provisioning/default.js +1 -1
  42. package/package.json +5 -5
@@ -936,6 +936,8 @@ export type FieldTypeDefID = string & {
936
936
  export type FileAsEnvFileOpts = {
937
937
  /**
938
938
  * Replace "${VAR}" or "$VAR" with the value of other vars
939
+ *
940
+ * @deprecated Variable expansion is now enabled by default
939
941
  */
940
942
  expand?: boolean;
941
943
  };
@@ -1034,6 +1036,10 @@ export type FunctionWithArgOpts = {
1034
1036
  * The source map for the argument definition.
1035
1037
  */
1036
1038
  sourceMap?: SourceMap;
1039
+ /**
1040
+ * If deprecated, the reason or migration path.
1041
+ */
1042
+ deprecated?: string;
1037
1043
  };
1038
1044
  export type FunctionWithCachePolicyOpts = {
1039
1045
  /**
@@ -1041,6 +1047,12 @@ export type FunctionWithCachePolicyOpts = {
1041
1047
  */
1042
1048
  timeToLive?: string;
1043
1049
  };
1050
+ export type FunctionWithDeprecatedOpts = {
1051
+ /**
1052
+ * Reason or migration path describing the deprecation.
1053
+ */
1054
+ reason?: string;
1055
+ };
1044
1056
  /**
1045
1057
  * The `FunctionArgID` scalar type represents an identifier for an object of type FunctionArg.
1046
1058
  */
@@ -1361,6 +1373,8 @@ export type ClientEnvOpts = {
1361
1373
  export type ClientEnvFileOpts = {
1362
1374
  /**
1363
1375
  * Replace "${VAR}" or "$VAR" with the value of other vars
1376
+ *
1377
+ * @deprecated Variable expansion is now enabled by default
1364
1378
  */
1365
1379
  expand?: boolean;
1366
1380
  };
@@ -1373,6 +1387,8 @@ export type ClientFileOpts = {
1373
1387
  export type ClientGitOpts = {
1374
1388
  /**
1375
1389
  * DEPRECATED: Set to true to keep .git directory.
1390
+ *
1391
+ * @deprecated Set to true to keep .git directory.
1376
1392
  */
1377
1393
  keepGitDir?: boolean;
1378
1394
  /**
@@ -1581,6 +1597,10 @@ export type TypeDefWithEnumMemberOpts = {
1581
1597
  * The source map for the enum member definition.
1582
1598
  */
1583
1599
  sourceMap?: SourceMap;
1600
+ /**
1601
+ * If deprecated, the reason or migration path.
1602
+ */
1603
+ deprecated?: string;
1584
1604
  };
1585
1605
  export type TypeDefWithEnumValueOpts = {
1586
1606
  /**
@@ -1591,6 +1611,10 @@ export type TypeDefWithEnumValueOpts = {
1591
1611
  * The source map for the enum value definition.
1592
1612
  */
1593
1613
  sourceMap?: SourceMap;
1614
+ /**
1615
+ * If deprecated, the reason or migration path.
1616
+ */
1617
+ deprecated?: string;
1594
1618
  };
1595
1619
  export type TypeDefWithFieldOpts = {
1596
1620
  /**
@@ -1601,6 +1625,10 @@ export type TypeDefWithFieldOpts = {
1601
1625
  * The source map for the field definition.
1602
1626
  */
1603
1627
  sourceMap?: SourceMap;
1628
+ /**
1629
+ * If deprecated, the reason or migration path.
1630
+ */
1631
+ deprecated?: string;
1604
1632
  };
1605
1633
  export type TypeDefWithInterfaceOpts = {
1606
1634
  description?: string;
@@ -1609,6 +1637,7 @@ export type TypeDefWithInterfaceOpts = {
1609
1637
  export type TypeDefWithObjectOpts = {
1610
1638
  description?: string;
1611
1639
  sourceMap?: SourceMap;
1640
+ deprecated?: string;
1612
1641
  };
1613
1642
  export type TypeDefWithScalarOpts = {
1614
1643
  description?: string;
@@ -3111,17 +3140,22 @@ export declare class EnumTypeDef extends BaseClient {
3111
3140
  */
3112
3141
  export declare class EnumValueTypeDef extends BaseClient {
3113
3142
  private readonly _id?;
3143
+ private readonly _deprecated?;
3114
3144
  private readonly _description?;
3115
3145
  private readonly _name?;
3116
3146
  private readonly _value?;
3117
3147
  /**
3118
3148
  * Constructor is used for internal usage only, do not create object from it.
3119
3149
  */
3120
- constructor(ctx?: Context, _id?: EnumValueTypeDefID, _description?: string, _name?: string, _value?: string);
3150
+ constructor(ctx?: Context, _id?: EnumValueTypeDefID, _deprecated?: string, _description?: string, _name?: string, _value?: string);
3121
3151
  /**
3122
3152
  * A unique identifier for this EnumValueTypeDef.
3123
3153
  */
3124
3154
  id: () => Promise<EnumValueTypeDefID>;
3155
+ /**
3156
+ * The reason this enum member is deprecated, if any.
3157
+ */
3158
+ deprecated: () => Promise<string>;
3125
3159
  /**
3126
3160
  * A doc string for the enum member, if any.
3127
3161
  */
@@ -3609,16 +3643,21 @@ export declare class ErrorValue extends BaseClient {
3609
3643
  */
3610
3644
  export declare class FieldTypeDef extends BaseClient {
3611
3645
  private readonly _id?;
3646
+ private readonly _deprecated?;
3612
3647
  private readonly _description?;
3613
3648
  private readonly _name?;
3614
3649
  /**
3615
3650
  * Constructor is used for internal usage only, do not create object from it.
3616
3651
  */
3617
- constructor(ctx?: Context, _id?: FieldTypeDefID, _description?: string, _name?: string);
3652
+ constructor(ctx?: Context, _id?: FieldTypeDefID, _deprecated?: string, _description?: string, _name?: string);
3618
3653
  /**
3619
3654
  * A unique identifier for this FieldTypeDef.
3620
3655
  */
3621
3656
  id: () => Promise<FieldTypeDefID>;
3657
+ /**
3658
+ * The reason this enum member is deprecated, if any.
3659
+ */
3660
+ deprecated: () => Promise<string>;
3622
3661
  /**
3623
3662
  * A doc string for the field, if any.
3624
3663
  */
@@ -3755,12 +3794,13 @@ export declare class File extends BaseClient {
3755
3794
  */
3756
3795
  export declare class Function_ extends BaseClient {
3757
3796
  private readonly _id?;
3797
+ private readonly _deprecated?;
3758
3798
  private readonly _description?;
3759
3799
  private readonly _name?;
3760
3800
  /**
3761
3801
  * Constructor is used for internal usage only, do not create object from it.
3762
3802
  */
3763
- constructor(ctx?: Context, _id?: FunctionID, _description?: string, _name?: string);
3803
+ constructor(ctx?: Context, _id?: FunctionID, _deprecated?: string, _description?: string, _name?: string);
3764
3804
  /**
3765
3805
  * A unique identifier for this Function.
3766
3806
  */
@@ -3769,6 +3809,10 @@ export declare class Function_ extends BaseClient {
3769
3809
  * Arguments accepted by the function, if any.
3770
3810
  */
3771
3811
  args: () => Promise<FunctionArg[]>;
3812
+ /**
3813
+ * The reason this function is deprecated, if any.
3814
+ */
3815
+ deprecated: () => Promise<string>;
3772
3816
  /**
3773
3817
  * A doc string for the function, if any.
3774
3818
  */
@@ -3794,6 +3838,7 @@ export declare class Function_ extends BaseClient {
3794
3838
  * @param opts.defaultPath If the argument is a Directory or File type, default to load path from context directory, relative to root directory.
3795
3839
  * @param opts.ignore Patterns to ignore when loading the contextual argument value.
3796
3840
  * @param opts.sourceMap The source map for the argument definition.
3841
+ * @param opts.deprecated If deprecated, the reason or migration path.
3797
3842
  */
3798
3843
  withArg: (name: string, typeDef: TypeDef, opts?: FunctionWithArgOpts) => Function_;
3799
3844
  /**
@@ -3802,6 +3847,11 @@ export declare class Function_ extends BaseClient {
3802
3847
  * @param opts.timeToLive The TTL for the cache policy, if applicable. Provided as a duration string, e.g. "5m", "1h30s".
3803
3848
  */
3804
3849
  withCachePolicy: (policy: FunctionCachePolicy, opts?: FunctionWithCachePolicyOpts) => Function_;
3850
+ /**
3851
+ * Returns the function with the provided deprecation reason.
3852
+ * @param opts.reason Reason or migration path describing the deprecation.
3853
+ */
3854
+ withDeprecated: (opts?: FunctionWithDeprecatedOpts) => Function_;
3805
3855
  /**
3806
3856
  * Returns the function with the given doc string.
3807
3857
  * @param description The doc string to set.
@@ -3828,12 +3878,13 @@ export declare class FunctionArg extends BaseClient {
3828
3878
  private readonly _id?;
3829
3879
  private readonly _defaultPath?;
3830
3880
  private readonly _defaultValue?;
3881
+ private readonly _deprecated?;
3831
3882
  private readonly _description?;
3832
3883
  private readonly _name?;
3833
3884
  /**
3834
3885
  * Constructor is used for internal usage only, do not create object from it.
3835
3886
  */
3836
- constructor(ctx?: Context, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _description?: string, _name?: string);
3887
+ constructor(ctx?: Context, _id?: FunctionArgID, _defaultPath?: string, _defaultValue?: JSON, _deprecated?: string, _description?: string, _name?: string);
3837
3888
  /**
3838
3889
  * A unique identifier for this FunctionArg.
3839
3890
  */
@@ -3846,6 +3897,10 @@ export declare class FunctionArg extends BaseClient {
3846
3897
  * A default value to use for this argument when not explicitly set by the caller, if any.
3847
3898
  */
3848
3899
  defaultValue: () => Promise<JSON>;
3900
+ /**
3901
+ * The reason this function is deprecated, if any.
3902
+ */
3903
+ deprecated: () => Promise<string>;
3849
3904
  /**
3850
3905
  * A doc string for the argument, if any.
3851
3906
  */
@@ -4409,6 +4464,14 @@ export declare class LLM extends BaseClient {
4409
4464
  * Disable the default system prompt
4410
4465
  */
4411
4466
  withoutDefaultSystemPrompt: () => LLM;
4467
+ /**
4468
+ * Clear the message history, leaving only the system prompts
4469
+ */
4470
+ withoutMessageHistory: () => LLM;
4471
+ /**
4472
+ * Clear the system prompts, leaving only the default system prompt
4473
+ */
4474
+ withoutSystemPrompts: () => LLM;
4412
4475
  /**
4413
4476
  * Call the provided function with current LLM.
4414
4477
  *
@@ -4870,13 +4933,14 @@ export declare class ModuleSource extends BaseClient {
4870
4933
  */
4871
4934
  export declare class ObjectTypeDef extends BaseClient {
4872
4935
  private readonly _id?;
4936
+ private readonly _deprecated?;
4873
4937
  private readonly _description?;
4874
4938
  private readonly _name?;
4875
4939
  private readonly _sourceModuleName?;
4876
4940
  /**
4877
4941
  * Constructor is used for internal usage only, do not create object from it.
4878
4942
  */
4879
- constructor(ctx?: Context, _id?: ObjectTypeDefID, _description?: string, _name?: string, _sourceModuleName?: string);
4943
+ constructor(ctx?: Context, _id?: ObjectTypeDefID, _deprecated?: string, _description?: string, _name?: string, _sourceModuleName?: string);
4880
4944
  /**
4881
4945
  * A unique identifier for this ObjectTypeDef.
4882
4946
  */
@@ -4885,6 +4949,10 @@ export declare class ObjectTypeDef extends BaseClient {
4885
4949
  * The function used to construct new instances of this object, if any
4886
4950
  */
4887
4951
  constructor_: () => Function_;
4952
+ /**
4953
+ * The reason this enum member is deprecated, if any.
4954
+ */
4955
+ deprecated: () => Promise<string>;
4888
4956
  /**
4889
4957
  * The doc string for the object, if any.
4890
4958
  */
@@ -5343,15 +5411,20 @@ export declare class Client extends BaseClient {
5343
5411
  */
5344
5412
  export declare class SDKConfig extends BaseClient {
5345
5413
  private readonly _id?;
5414
+ private readonly _debug?;
5346
5415
  private readonly _source?;
5347
5416
  /**
5348
5417
  * Constructor is used for internal usage only, do not create object from it.
5349
5418
  */
5350
- constructor(ctx?: Context, _id?: SDKConfigID, _source?: string);
5419
+ constructor(ctx?: Context, _id?: SDKConfigID, _debug?: boolean, _source?: string);
5351
5420
  /**
5352
5421
  * A unique identifier for this SDKConfig.
5353
5422
  */
5354
5423
  id: () => Promise<SDKConfigID>;
5424
+ /**
5425
+ * Whether to start the SDK runtime in debug mode with an interactive terminal.
5426
+ */
5427
+ debug: () => Promise<boolean>;
5355
5428
  /**
5356
5429
  * Source of the SDK. Either a name of a builtin SDK or a module source ref string pointing to the SDK's implementation.
5357
5430
  */
@@ -5689,6 +5762,7 @@ export declare class TypeDef extends BaseClient {
5689
5762
  * @param opts.value The value of the member in the enum
5690
5763
  * @param opts.description A doc string for the member, if any
5691
5764
  * @param opts.sourceMap The source map for the enum member definition.
5765
+ * @param opts.deprecated If deprecated, the reason or migration path.
5692
5766
  */
5693
5767
  withEnumMember: (name: string, opts?: TypeDefWithEnumMemberOpts) => TypeDef;
5694
5768
  /**
@@ -5696,6 +5770,7 @@ export declare class TypeDef extends BaseClient {
5696
5770
  * @param value The name of the value in the enum
5697
5771
  * @param opts.description A doc string for the value, if any
5698
5772
  * @param opts.sourceMap The source map for the enum value definition.
5773
+ * @param opts.deprecated If deprecated, the reason or migration path.
5699
5774
  * @deprecated Use withEnumMember instead
5700
5775
  */
5701
5776
  withEnumValue: (value: string, opts?: TypeDefWithEnumValueOpts) => TypeDef;
@@ -5705,6 +5780,7 @@ export declare class TypeDef extends BaseClient {
5705
5780
  * @param typeDef The type of the field
5706
5781
  * @param opts.description A doc string for the field, if any
5707
5782
  * @param opts.sourceMap The source map for the field definition.
5783
+ * @param opts.deprecated If deprecated, the reason or migration path.
5708
5784
  */
5709
5785
  withField: (name: string, typeDef: TypeDef, opts?: TypeDefWithFieldOpts) => TypeDef;
5710
5786
  /**