@dagger.io/dagger 0.17.0 → 0.17.1

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.
@@ -2901,6 +2901,7 @@ export declare class InterfaceTypeDef extends BaseClient {
2901
2901
  }
2902
2902
  export declare class LLM extends BaseClient {
2903
2903
  private readonly _id?;
2904
+ private readonly _currentType?;
2904
2905
  private readonly _getString?;
2905
2906
  private readonly _historyJSON?;
2906
2907
  private readonly _lastReply?;
@@ -2911,84 +2912,73 @@ export declare class LLM extends BaseClient {
2911
2912
  /**
2912
2913
  * Constructor is used for internal usage only, do not create object from it.
2913
2914
  */
2914
- constructor(ctx?: Context, _id?: LLMID, _getString?: string, _historyJSON?: string, _lastReply?: string, _model?: string, _provider?: string, _sync?: LLMID, _tools?: string);
2915
+ constructor(ctx?: Context, _id?: LLMID, _currentType?: string, _getString?: string, _historyJSON?: string, _lastReply?: string, _model?: string, _provider?: string, _sync?: LLMID, _tools?: string);
2915
2916
  /**
2916
2917
  * A unique identifier for this LLM.
2917
2918
  */
2918
2919
  id: () => Promise<LLMID>;
2919
2920
  /**
2920
2921
  * Retrieve a the current value in the LLM environment, of type CacheVolume
2921
- * @deprecated use get<TargetType> instead
2922
2922
  */
2923
2923
  cacheVolume: () => CacheVolume;
2924
2924
  /**
2925
2925
  * Retrieve a the current value in the LLM environment, of type Container
2926
- * @deprecated use get<TargetType> instead
2927
2926
  */
2928
2927
  container: () => Container;
2929
2928
  /**
2930
2929
  * Retrieve a the current value in the LLM environment, of type CurrentModule
2931
- * @deprecated use get<TargetType> instead
2932
2930
  */
2933
2931
  currentModule: () => CurrentModule;
2932
+ /**
2933
+ * returns the type of the current state
2934
+ */
2935
+ currentType: () => Promise<string>;
2934
2936
  /**
2935
2937
  * Retrieve a the current value in the LLM environment, of type Directory
2936
- * @deprecated use get<TargetType> instead
2937
2938
  */
2938
2939
  directory: () => Directory;
2939
2940
  /**
2940
2941
  * Retrieve a the current value in the LLM environment, of type EnumTypeDef
2941
- * @deprecated use get<TargetType> instead
2942
2942
  */
2943
2943
  enumTypeDef: () => EnumTypeDef;
2944
2944
  /**
2945
2945
  * Retrieve a the current value in the LLM environment, of type EnumValueTypeDef
2946
- * @deprecated use get<TargetType> instead
2947
2946
  */
2948
2947
  enumValueTypeDef: () => EnumValueTypeDef;
2949
2948
  /**
2950
2949
  * Retrieve a the current value in the LLM environment, of type Error
2951
- * @deprecated use get<TargetType> instead
2952
2950
  */
2953
2951
  error: () => Error;
2954
2952
  /**
2955
2953
  * Retrieve a the current value in the LLM environment, of type ErrorValue
2956
- * @deprecated use get<TargetType> instead
2957
2954
  */
2958
2955
  errorValue: () => ErrorValue;
2959
2956
  /**
2960
2957
  * Retrieve a the current value in the LLM environment, of type FieldTypeDef
2961
- * @deprecated use get<TargetType> instead
2962
2958
  */
2963
2959
  fieldTypeDef: () => FieldTypeDef;
2964
2960
  /**
2965
2961
  * Retrieve a the current value in the LLM environment, of type File
2966
- * @deprecated use get<TargetType> instead
2967
2962
  */
2968
2963
  file: () => File;
2969
2964
  /**
2970
2965
  * Retrieve a the current value in the LLM environment, of type Function
2971
- * @deprecated use get<TargetType> instead
2972
2966
  */
2973
2967
  function_: () => Function_;
2974
2968
  /**
2975
2969
  * Retrieve a the current value in the LLM environment, of type FunctionArg
2976
- * @deprecated use get<TargetType> instead
2977
2970
  */
2978
2971
  functionArg: () => FunctionArg;
2979
2972
  /**
2980
2973
  * Retrieve a the current value in the LLM environment, of type FunctionCall
2981
- * @deprecated use get<TargetType> instead
2982
2974
  */
2983
2975
  functionCall: () => FunctionCall;
2984
2976
  /**
2985
2977
  * Retrieve a the current value in the LLM environment, of type FunctionCallArgValue
2986
- * @deprecated use get<TargetType> instead
2987
2978
  */
2988
2979
  functionCallArgValue: () => FunctionCallArgValue;
2989
2980
  /**
2990
2981
  * Retrieve a the current value in the LLM environment, of type GeneratedCode
2991
- * @deprecated use get<TargetType> instead
2992
2982
  */
2993
2983
  generatedCode: () => GeneratedCode;
2994
2984
  /**
@@ -3163,12 +3153,10 @@ export declare class LLM extends BaseClient {
3163
3153
  getTypeDef: (name: string) => TypeDef;
3164
3154
  /**
3165
3155
  * Retrieve a the current value in the LLM environment, of type GitRef
3166
- * @deprecated use get<TargetType> instead
3167
3156
  */
3168
3157
  gitRef: () => GitRef;
3169
3158
  /**
3170
3159
  * Retrieve a the current value in the LLM environment, of type GitRepository
3171
- * @deprecated use get<TargetType> instead
3172
3160
  */
3173
3161
  gitRepository: () => GitRepository;
3174
3162
  /**
@@ -3181,17 +3169,14 @@ export declare class LLM extends BaseClient {
3181
3169
  historyJSON: () => Promise<string>;
3182
3170
  /**
3183
3171
  * Retrieve a the current value in the LLM environment, of type InputTypeDef
3184
- * @deprecated use get<TargetType> instead
3185
3172
  */
3186
3173
  inputTypeDef: () => InputTypeDef;
3187
3174
  /**
3188
3175
  * Retrieve a the current value in the LLM environment, of type InterfaceTypeDef
3189
- * @deprecated use get<TargetType> instead
3190
3176
  */
3191
3177
  interfaceTypeDef: () => InterfaceTypeDef;
3192
3178
  /**
3193
3179
  * Retrieve a the current value in the LLM environment, of type LLM
3194
- * @deprecated use get<TargetType> instead
3195
3180
  */
3196
3181
  lLM: () => LLM;
3197
3182
  /**
@@ -3200,12 +3185,10 @@ export declare class LLM extends BaseClient {
3200
3185
  lastReply: () => Promise<string>;
3201
3186
  /**
3202
3187
  * Retrieve a the current value in the LLM environment, of type ListTypeDef
3203
- * @deprecated use get<TargetType> instead
3204
3188
  */
3205
3189
  listTypeDef: () => ListTypeDef;
3206
3190
  /**
3207
3191
  * synchronize LLM state
3208
- * @deprecated use sync
3209
3192
  */
3210
3193
  loop: () => LLM;
3211
3194
  /**
@@ -3214,22 +3197,18 @@ export declare class LLM extends BaseClient {
3214
3197
  model: () => Promise<string>;
3215
3198
  /**
3216
3199
  * Retrieve a the current value in the LLM environment, of type Module
3217
- * @deprecated use get<TargetType> instead
3218
3200
  */
3219
3201
  module_: () => Module_;
3220
3202
  /**
3221
3203
  * Retrieve a the current value in the LLM environment, of type ModuleConfigClient
3222
- * @deprecated use get<TargetType> instead
3223
3204
  */
3224
3205
  moduleConfigClient: () => ModuleConfigClient;
3225
3206
  /**
3226
3207
  * Retrieve a the current value in the LLM environment, of type ModuleSource
3227
- * @deprecated use get<TargetType> instead
3228
3208
  */
3229
3209
  moduleSource: () => ModuleSource;
3230
3210
  /**
3231
3211
  * Retrieve a the current value in the LLM environment, of type ObjectTypeDef
3232
- * @deprecated use get<TargetType> instead
3233
3212
  */
3234
3213
  objectTypeDef: () => ObjectTypeDef;
3235
3214
  /**
@@ -3238,22 +3217,18 @@ export declare class LLM extends BaseClient {
3238
3217
  provider: () => Promise<string>;
3239
3218
  /**
3240
3219
  * Retrieve a the current value in the LLM environment, of type ScalarTypeDef
3241
- * @deprecated use get<TargetType> instead
3242
3220
  */
3243
3221
  scalarTypeDef: () => ScalarTypeDef;
3244
3222
  /**
3245
3223
  * Retrieve a the current value in the LLM environment, of type SDKConfig
3246
- * @deprecated use get<TargetType> instead
3247
3224
  */
3248
3225
  sdkconfig: () => SDKConfig;
3249
3226
  /**
3250
3227
  * Retrieve a the current value in the LLM environment, of type Secret
3251
- * @deprecated use get<TargetType> instead
3252
3228
  */
3253
3229
  secret: () => Secret;
3254
3230
  /**
3255
3231
  * Retrieve a the current value in the LLM environment, of type Service
3256
- * @deprecated use get<TargetType> instead
3257
3232
  */
3258
3233
  service: () => Service;
3259
3234
  /**
@@ -3462,12 +3437,10 @@ export declare class LLM extends BaseClient {
3462
3437
  setTypeDef: (name: string, value: TypeDef) => LLM;
3463
3438
  /**
3464
3439
  * Retrieve a the current value in the LLM environment, of type Socket
3465
- * @deprecated use get<TargetType> instead
3466
3440
  */
3467
3441
  socket: () => Socket;
3468
3442
  /**
3469
3443
  * Retrieve a the current value in the LLM environment, of type SourceMap
3470
- * @deprecated use get<TargetType> instead
3471
3444
  */
3472
3445
  sourceMap: () => SourceMap;
3473
3446
  /**
@@ -3476,7 +3449,6 @@ export declare class LLM extends BaseClient {
3476
3449
  sync: () => Promise<LLM>;
3477
3450
  /**
3478
3451
  * Retrieve a the current value in the LLM environment, of type Terminal
3479
- * @deprecated use get<TargetType> instead
3480
3452
  */
3481
3453
  terminal: () => Terminal;
3482
3454
  /**
@@ -3485,7 +3457,6 @@ export declare class LLM extends BaseClient {
3485
3457
  tools: () => Promise<string>;
3486
3458
  /**
3487
3459
  * Retrieve a the current value in the LLM environment, of type TypeDef
3488
- * @deprecated use get<TargetType> instead
3489
3460
  */
3490
3461
  typeDef: () => TypeDef;
3491
3462
  /**
@@ -3495,127 +3466,106 @@ export declare class LLM extends BaseClient {
3495
3466
  /**
3496
3467
  * Set a variable of type CacheVolume in the llm environment
3497
3468
  * @param value The CacheVolume value to assign to the variable
3498
- * @deprecated use set<TargetType> instead
3499
3469
  */
3500
3470
  withCacheVolume: (value: CacheVolume) => LLM;
3501
3471
  /**
3502
3472
  * Set a variable of type Container in the llm environment
3503
3473
  * @param value The Container value to assign to the variable
3504
- * @deprecated use set<TargetType> instead
3505
3474
  */
3506
3475
  withContainer: (value: Container) => LLM;
3507
3476
  /**
3508
3477
  * Set a variable of type CurrentModule in the llm environment
3509
3478
  * @param value The CurrentModule value to assign to the variable
3510
- * @deprecated use set<TargetType> instead
3511
3479
  */
3512
3480
  withCurrentModule: (value: CurrentModule) => LLM;
3513
3481
  /**
3514
3482
  * Set a variable of type Directory in the llm environment
3515
3483
  * @param value The Directory value to assign to the variable
3516
- * @deprecated use set<TargetType> instead
3517
3484
  */
3518
3485
  withDirectory: (value: Directory) => LLM;
3519
3486
  /**
3520
3487
  * Set a variable of type EnumTypeDef in the llm environment
3521
3488
  * @param value The EnumTypeDef value to assign to the variable
3522
- * @deprecated use set<TargetType> instead
3523
3489
  */
3524
3490
  withEnumTypeDef: (value: EnumTypeDef) => LLM;
3525
3491
  /**
3526
3492
  * Set a variable of type EnumValueTypeDef in the llm environment
3527
3493
  * @param value The EnumValueTypeDef value to assign to the variable
3528
- * @deprecated use set<TargetType> instead
3529
3494
  */
3530
3495
  withEnumValueTypeDef: (value: EnumValueTypeDef) => LLM;
3531
3496
  /**
3532
3497
  * Set a variable of type Error in the llm environment
3533
3498
  * @param value The Error value to assign to the variable
3534
- * @deprecated use set<TargetType> instead
3535
3499
  */
3536
3500
  withError: (value: Error) => LLM;
3537
3501
  /**
3538
3502
  * Set a variable of type ErrorValue in the llm environment
3539
3503
  * @param value The ErrorValue value to assign to the variable
3540
- * @deprecated use set<TargetType> instead
3541
3504
  */
3542
3505
  withErrorValue: (value: ErrorValue) => LLM;
3543
3506
  /**
3544
3507
  * Set a variable of type FieldTypeDef in the llm environment
3545
3508
  * @param value The FieldTypeDef value to assign to the variable
3546
- * @deprecated use set<TargetType> instead
3547
3509
  */
3548
3510
  withFieldTypeDef: (value: FieldTypeDef) => LLM;
3549
3511
  /**
3550
3512
  * Set a variable of type File in the llm environment
3551
3513
  * @param value The File value to assign to the variable
3552
- * @deprecated use set<TargetType> instead
3553
3514
  */
3554
3515
  withFile: (value: File) => LLM;
3555
3516
  /**
3556
3517
  * Set a variable of type Function in the llm environment
3557
3518
  * @param value The Function value to assign to the variable
3558
- * @deprecated use set<TargetType> instead
3559
3519
  */
3560
3520
  withFunction: (value: Function_) => LLM;
3561
3521
  /**
3562
3522
  * Set a variable of type FunctionArg in the llm environment
3563
3523
  * @param value The FunctionArg value to assign to the variable
3564
- * @deprecated use set<TargetType> instead
3565
3524
  */
3566
3525
  withFunctionArg: (value: FunctionArg) => LLM;
3567
3526
  /**
3568
3527
  * Set a variable of type FunctionCall in the llm environment
3569
3528
  * @param value The FunctionCall value to assign to the variable
3570
- * @deprecated use set<TargetType> instead
3571
3529
  */
3572
3530
  withFunctionCall: (value: FunctionCall) => LLM;
3573
3531
  /**
3574
3532
  * Set a variable of type FunctionCallArgValue in the llm environment
3575
3533
  * @param value The FunctionCallArgValue value to assign to the variable
3576
- * @deprecated use set<TargetType> instead
3577
3534
  */
3578
3535
  withFunctionCallArgValue: (value: FunctionCallArgValue) => LLM;
3579
3536
  /**
3580
3537
  * Set a variable of type GeneratedCode in the llm environment
3581
3538
  * @param value The GeneratedCode value to assign to the variable
3582
- * @deprecated use set<TargetType> instead
3583
3539
  */
3584
3540
  withGeneratedCode: (value: GeneratedCode) => LLM;
3585
3541
  /**
3586
3542
  * Set a variable of type GitRef in the llm environment
3587
3543
  * @param value The GitRef value to assign to the variable
3588
- * @deprecated use set<TargetType> instead
3589
3544
  */
3590
3545
  withGitRef: (value: GitRef) => LLM;
3591
3546
  /**
3592
3547
  * Set a variable of type GitRepository in the llm environment
3593
3548
  * @param value The GitRepository value to assign to the variable
3594
- * @deprecated use set<TargetType> instead
3595
3549
  */
3596
3550
  withGitRepository: (value: GitRepository) => LLM;
3597
3551
  /**
3598
3552
  * Set a variable of type InputTypeDef in the llm environment
3599
3553
  * @param value The InputTypeDef value to assign to the variable
3600
- * @deprecated use set<TargetType> instead
3601
3554
  */
3602
3555
  withInputTypeDef: (value: InputTypeDef) => LLM;
3603
3556
  /**
3604
3557
  * Set a variable of type InterfaceTypeDef in the llm environment
3605
3558
  * @param value The InterfaceTypeDef value to assign to the variable
3606
- * @deprecated use set<TargetType> instead
3607
3559
  */
3608
3560
  withInterfaceTypeDef: (value: InterfaceTypeDef) => LLM;
3609
3561
  /**
3610
3562
  * Set a variable of type LLM in the llm environment
3611
3563
  * @param value The LLM value to assign to the variable
3612
- * @deprecated use set<TargetType> instead
3613
3564
  */
3614
3565
  withLLM: (value: LLM) => LLM;
3615
3566
  /**
3616
3567
  * Set a variable of type ListTypeDef in the llm environment
3617
3568
  * @param value The ListTypeDef value to assign to the variable
3618
- * @deprecated use set<TargetType> instead
3619
3569
  */
3620
3570
  withListTypeDef: (value: ListTypeDef) => LLM;
3621
3571
  /**
@@ -3626,25 +3576,21 @@ export declare class LLM extends BaseClient {
3626
3576
  /**
3627
3577
  * Set a variable of type Module in the llm environment
3628
3578
  * @param value The Module value to assign to the variable
3629
- * @deprecated use set<TargetType> instead
3630
3579
  */
3631
3580
  withModule: (value: Module_) => LLM;
3632
3581
  /**
3633
3582
  * Set a variable of type ModuleConfigClient in the llm environment
3634
3583
  * @param value The ModuleConfigClient value to assign to the variable
3635
- * @deprecated use set<TargetType> instead
3636
3584
  */
3637
3585
  withModuleConfigClient: (value: ModuleConfigClient) => LLM;
3638
3586
  /**
3639
3587
  * Set a variable of type ModuleSource in the llm environment
3640
3588
  * @param value The ModuleSource value to assign to the variable
3641
- * @deprecated use set<TargetType> instead
3642
3589
  */
3643
3590
  withModuleSource: (value: ModuleSource) => LLM;
3644
3591
  /**
3645
3592
  * Set a variable of type ObjectTypeDef in the llm environment
3646
3593
  * @param value The ObjectTypeDef value to assign to the variable
3647
- * @deprecated use set<TargetType> instead
3648
3594
  */
3649
3595
  withObjectTypeDef: (value: ObjectTypeDef) => LLM;
3650
3596
  /**
@@ -3663,52 +3609,48 @@ export declare class LLM extends BaseClient {
3663
3609
  * @param value The variable value
3664
3610
  */
3665
3611
  withPromptVar: (name: string, value: string) => LLM;
3612
+ /**
3613
+ * Provide the entire Query object to the LLM
3614
+ */
3615
+ withQuery: () => LLM;
3666
3616
  /**
3667
3617
  * Set a variable of type SDKConfig in the llm environment
3668
3618
  * @param value The SDKConfig value to assign to the variable
3669
- * @deprecated use set<TargetType> instead
3670
3619
  */
3671
3620
  withSDKConfig: (value: SDKConfig) => LLM;
3672
3621
  /**
3673
3622
  * Set a variable of type ScalarTypeDef in the llm environment
3674
3623
  * @param value The ScalarTypeDef value to assign to the variable
3675
- * @deprecated use set<TargetType> instead
3676
3624
  */
3677
3625
  withScalarTypeDef: (value: ScalarTypeDef) => LLM;
3678
3626
  /**
3679
3627
  * Set a variable of type Secret in the llm environment
3680
3628
  * @param value The Secret value to assign to the variable
3681
- * @deprecated use set<TargetType> instead
3682
3629
  */
3683
3630
  withSecret: (value: Secret) => LLM;
3684
3631
  /**
3685
3632
  * Set a variable of type Service in the llm environment
3686
3633
  * @param value The Service value to assign to the variable
3687
- * @deprecated use set<TargetType> instead
3688
3634
  */
3689
3635
  withService: (value: Service) => LLM;
3690
3636
  /**
3691
3637
  * Set a variable of type Socket in the llm environment
3692
3638
  * @param value The Socket value to assign to the variable
3693
- * @deprecated use set<TargetType> instead
3694
3639
  */
3695
3640
  withSocket: (value: Socket) => LLM;
3696
3641
  /**
3697
3642
  * Set a variable of type SourceMap in the llm environment
3698
3643
  * @param value The SourceMap value to assign to the variable
3699
- * @deprecated use set<TargetType> instead
3700
3644
  */
3701
3645
  withSourceMap: (value: SourceMap) => LLM;
3702
3646
  /**
3703
3647
  * Set a variable of type Terminal in the llm environment
3704
3648
  * @param value The Terminal value to assign to the variable
3705
- * @deprecated use set<TargetType> instead
3706
3649
  */
3707
3650
  withTerminal: (value: Terminal) => LLM;
3708
3651
  /**
3709
3652
  * Set a variable of type TypeDef in the llm environment
3710
3653
  * @param value The TypeDef value to assign to the variable
3711
- * @deprecated use set<TargetType> instead
3712
3654
  */
3713
3655
  withTypeDef: (value: TypeDef) => LLM;
3714
3656
  /**
@@ -3942,7 +3884,7 @@ export declare class ModuleSource extends BaseClient {
3942
3884
  */
3943
3885
  cloneRef: () => Promise<string>;
3944
3886
  /**
3945
- * The resolved commit of the git repo this source points to. Only valid for git sources.
3887
+ * The resolved commit of the git repo this source points to.
3946
3888
  */
3947
3889
  commit: () => Promise<string>;
3948
3890
  /**
@@ -3979,7 +3921,7 @@ export declare class ModuleSource extends BaseClient {
3979
3921
  */
3980
3922
  generatedContextDirectory: () => Directory;
3981
3923
  /**
3982
- * The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket). Only valid for git sources.
3924
+ * The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket).
3983
3925
  */
3984
3926
  htmlRepoURL: () => Promise<string>;
3985
3927
  /**
@@ -4031,7 +3973,7 @@ export declare class ModuleSource extends BaseClient {
4031
3973
  */
4032
3974
  sync: () => Promise<ModuleSource>;
4033
3975
  /**
4034
- * The specified version of the git repo this source points to. Only valid for git sources.
3976
+ * The specified version of the git repo this source points to.
4035
3977
  */
4036
3978
  version: () => Promise<string>;
4037
3979
  /**