@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.
- package/dist/src/api/client.gen.d.ts +13 -71
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +24 -71
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -1
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/dist/src/telemetry/init.d.ts.map +1 -1
- package/dist/src/telemetry/init.js +2 -3
- package/package.json +12 -12
|
@@ -2979,6 +2979,7 @@ export class InterfaceTypeDef extends BaseClient {
|
|
|
2979
2979
|
}
|
|
2980
2980
|
export class LLM extends BaseClient {
|
|
2981
2981
|
_id = undefined;
|
|
2982
|
+
_currentType = undefined;
|
|
2982
2983
|
_getString = undefined;
|
|
2983
2984
|
_historyJSON = undefined;
|
|
2984
2985
|
_lastReply = undefined;
|
|
@@ -2989,9 +2990,10 @@ export class LLM extends BaseClient {
|
|
|
2989
2990
|
/**
|
|
2990
2991
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2991
2992
|
*/
|
|
2992
|
-
constructor(ctx, _id, _getString, _historyJSON, _lastReply, _model, _provider, _sync, _tools) {
|
|
2993
|
+
constructor(ctx, _id, _currentType, _getString, _historyJSON, _lastReply, _model, _provider, _sync, _tools) {
|
|
2993
2994
|
super(ctx);
|
|
2994
2995
|
this._id = _id;
|
|
2996
|
+
this._currentType = _currentType;
|
|
2995
2997
|
this._getString = _getString;
|
|
2996
2998
|
this._historyJSON = _historyJSON;
|
|
2997
2999
|
this._lastReply = _lastReply;
|
|
@@ -3013,7 +3015,6 @@ export class LLM extends BaseClient {
|
|
|
3013
3015
|
};
|
|
3014
3016
|
/**
|
|
3015
3017
|
* Retrieve a the current value in the LLM environment, of type CacheVolume
|
|
3016
|
-
* @deprecated use get<TargetType> instead
|
|
3017
3018
|
*/
|
|
3018
3019
|
cacheVolume = () => {
|
|
3019
3020
|
const ctx = this._ctx.select("cacheVolume");
|
|
@@ -3021,7 +3022,6 @@ export class LLM extends BaseClient {
|
|
|
3021
3022
|
};
|
|
3022
3023
|
/**
|
|
3023
3024
|
* Retrieve a the current value in the LLM environment, of type Container
|
|
3024
|
-
* @deprecated use get<TargetType> instead
|
|
3025
3025
|
*/
|
|
3026
3026
|
container = () => {
|
|
3027
3027
|
const ctx = this._ctx.select("container");
|
|
@@ -3029,15 +3029,24 @@ export class LLM extends BaseClient {
|
|
|
3029
3029
|
};
|
|
3030
3030
|
/**
|
|
3031
3031
|
* Retrieve a the current value in the LLM environment, of type CurrentModule
|
|
3032
|
-
* @deprecated use get<TargetType> instead
|
|
3033
3032
|
*/
|
|
3034
3033
|
currentModule = () => {
|
|
3035
3034
|
const ctx = this._ctx.select("currentModule");
|
|
3036
3035
|
return new CurrentModule(ctx);
|
|
3037
3036
|
};
|
|
3037
|
+
/**
|
|
3038
|
+
* returns the type of the current state
|
|
3039
|
+
*/
|
|
3040
|
+
currentType = async () => {
|
|
3041
|
+
if (this._currentType) {
|
|
3042
|
+
return this._currentType;
|
|
3043
|
+
}
|
|
3044
|
+
const ctx = this._ctx.select("currentType");
|
|
3045
|
+
const response = await ctx.execute();
|
|
3046
|
+
return response;
|
|
3047
|
+
};
|
|
3038
3048
|
/**
|
|
3039
3049
|
* Retrieve a the current value in the LLM environment, of type Directory
|
|
3040
|
-
* @deprecated use get<TargetType> instead
|
|
3041
3050
|
*/
|
|
3042
3051
|
directory = () => {
|
|
3043
3052
|
const ctx = this._ctx.select("directory");
|
|
@@ -3045,7 +3054,6 @@ export class LLM extends BaseClient {
|
|
|
3045
3054
|
};
|
|
3046
3055
|
/**
|
|
3047
3056
|
* Retrieve a the current value in the LLM environment, of type EnumTypeDef
|
|
3048
|
-
* @deprecated use get<TargetType> instead
|
|
3049
3057
|
*/
|
|
3050
3058
|
enumTypeDef = () => {
|
|
3051
3059
|
const ctx = this._ctx.select("enumTypeDef");
|
|
@@ -3053,7 +3061,6 @@ export class LLM extends BaseClient {
|
|
|
3053
3061
|
};
|
|
3054
3062
|
/**
|
|
3055
3063
|
* Retrieve a the current value in the LLM environment, of type EnumValueTypeDef
|
|
3056
|
-
* @deprecated use get<TargetType> instead
|
|
3057
3064
|
*/
|
|
3058
3065
|
enumValueTypeDef = () => {
|
|
3059
3066
|
const ctx = this._ctx.select("enumValueTypeDef");
|
|
@@ -3061,7 +3068,6 @@ export class LLM extends BaseClient {
|
|
|
3061
3068
|
};
|
|
3062
3069
|
/**
|
|
3063
3070
|
* Retrieve a the current value in the LLM environment, of type Error
|
|
3064
|
-
* @deprecated use get<TargetType> instead
|
|
3065
3071
|
*/
|
|
3066
3072
|
error = () => {
|
|
3067
3073
|
const ctx = this._ctx.select("error");
|
|
@@ -3069,7 +3075,6 @@ export class LLM extends BaseClient {
|
|
|
3069
3075
|
};
|
|
3070
3076
|
/**
|
|
3071
3077
|
* Retrieve a the current value in the LLM environment, of type ErrorValue
|
|
3072
|
-
* @deprecated use get<TargetType> instead
|
|
3073
3078
|
*/
|
|
3074
3079
|
errorValue = () => {
|
|
3075
3080
|
const ctx = this._ctx.select("errorValue");
|
|
@@ -3077,7 +3082,6 @@ export class LLM extends BaseClient {
|
|
|
3077
3082
|
};
|
|
3078
3083
|
/**
|
|
3079
3084
|
* Retrieve a the current value in the LLM environment, of type FieldTypeDef
|
|
3080
|
-
* @deprecated use get<TargetType> instead
|
|
3081
3085
|
*/
|
|
3082
3086
|
fieldTypeDef = () => {
|
|
3083
3087
|
const ctx = this._ctx.select("fieldTypeDef");
|
|
@@ -3085,7 +3089,6 @@ export class LLM extends BaseClient {
|
|
|
3085
3089
|
};
|
|
3086
3090
|
/**
|
|
3087
3091
|
* Retrieve a the current value in the LLM environment, of type File
|
|
3088
|
-
* @deprecated use get<TargetType> instead
|
|
3089
3092
|
*/
|
|
3090
3093
|
file = () => {
|
|
3091
3094
|
const ctx = this._ctx.select("file");
|
|
@@ -3093,7 +3096,6 @@ export class LLM extends BaseClient {
|
|
|
3093
3096
|
};
|
|
3094
3097
|
/**
|
|
3095
3098
|
* Retrieve a the current value in the LLM environment, of type Function
|
|
3096
|
-
* @deprecated use get<TargetType> instead
|
|
3097
3099
|
*/
|
|
3098
3100
|
function_ = () => {
|
|
3099
3101
|
const ctx = this._ctx.select("function");
|
|
@@ -3101,7 +3103,6 @@ export class LLM extends BaseClient {
|
|
|
3101
3103
|
};
|
|
3102
3104
|
/**
|
|
3103
3105
|
* Retrieve a the current value in the LLM environment, of type FunctionArg
|
|
3104
|
-
* @deprecated use get<TargetType> instead
|
|
3105
3106
|
*/
|
|
3106
3107
|
functionArg = () => {
|
|
3107
3108
|
const ctx = this._ctx.select("functionArg");
|
|
@@ -3109,7 +3110,6 @@ export class LLM extends BaseClient {
|
|
|
3109
3110
|
};
|
|
3110
3111
|
/**
|
|
3111
3112
|
* Retrieve a the current value in the LLM environment, of type FunctionCall
|
|
3112
|
-
* @deprecated use get<TargetType> instead
|
|
3113
3113
|
*/
|
|
3114
3114
|
functionCall = () => {
|
|
3115
3115
|
const ctx = this._ctx.select("functionCall");
|
|
@@ -3117,7 +3117,6 @@ export class LLM extends BaseClient {
|
|
|
3117
3117
|
};
|
|
3118
3118
|
/**
|
|
3119
3119
|
* Retrieve a the current value in the LLM environment, of type FunctionCallArgValue
|
|
3120
|
-
* @deprecated use get<TargetType> instead
|
|
3121
3120
|
*/
|
|
3122
3121
|
functionCallArgValue = () => {
|
|
3123
3122
|
const ctx = this._ctx.select("functionCallArgValue");
|
|
@@ -3125,7 +3124,6 @@ export class LLM extends BaseClient {
|
|
|
3125
3124
|
};
|
|
3126
3125
|
/**
|
|
3127
3126
|
* Retrieve a the current value in the LLM environment, of type GeneratedCode
|
|
3128
|
-
* @deprecated use get<TargetType> instead
|
|
3129
3127
|
*/
|
|
3130
3128
|
generatedCode = () => {
|
|
3131
3129
|
const ctx = this._ctx.select("generatedCode");
|
|
@@ -3409,7 +3407,6 @@ export class LLM extends BaseClient {
|
|
|
3409
3407
|
};
|
|
3410
3408
|
/**
|
|
3411
3409
|
* Retrieve a the current value in the LLM environment, of type GitRef
|
|
3412
|
-
* @deprecated use get<TargetType> instead
|
|
3413
3410
|
*/
|
|
3414
3411
|
gitRef = () => {
|
|
3415
3412
|
const ctx = this._ctx.select("gitRef");
|
|
@@ -3417,7 +3414,6 @@ export class LLM extends BaseClient {
|
|
|
3417
3414
|
};
|
|
3418
3415
|
/**
|
|
3419
3416
|
* Retrieve a the current value in the LLM environment, of type GitRepository
|
|
3420
|
-
* @deprecated use get<TargetType> instead
|
|
3421
3417
|
*/
|
|
3422
3418
|
gitRepository = () => {
|
|
3423
3419
|
const ctx = this._ctx.select("gitRepository");
|
|
@@ -3444,7 +3440,6 @@ export class LLM extends BaseClient {
|
|
|
3444
3440
|
};
|
|
3445
3441
|
/**
|
|
3446
3442
|
* Retrieve a the current value in the LLM environment, of type InputTypeDef
|
|
3447
|
-
* @deprecated use get<TargetType> instead
|
|
3448
3443
|
*/
|
|
3449
3444
|
inputTypeDef = () => {
|
|
3450
3445
|
const ctx = this._ctx.select("inputTypeDef");
|
|
@@ -3452,7 +3447,6 @@ export class LLM extends BaseClient {
|
|
|
3452
3447
|
};
|
|
3453
3448
|
/**
|
|
3454
3449
|
* Retrieve a the current value in the LLM environment, of type InterfaceTypeDef
|
|
3455
|
-
* @deprecated use get<TargetType> instead
|
|
3456
3450
|
*/
|
|
3457
3451
|
interfaceTypeDef = () => {
|
|
3458
3452
|
const ctx = this._ctx.select("interfaceTypeDef");
|
|
@@ -3460,7 +3454,6 @@ export class LLM extends BaseClient {
|
|
|
3460
3454
|
};
|
|
3461
3455
|
/**
|
|
3462
3456
|
* Retrieve a the current value in the LLM environment, of type LLM
|
|
3463
|
-
* @deprecated use get<TargetType> instead
|
|
3464
3457
|
*/
|
|
3465
3458
|
lLM = () => {
|
|
3466
3459
|
const ctx = this._ctx.select("lLM");
|
|
@@ -3479,7 +3472,6 @@ export class LLM extends BaseClient {
|
|
|
3479
3472
|
};
|
|
3480
3473
|
/**
|
|
3481
3474
|
* Retrieve a the current value in the LLM environment, of type ListTypeDef
|
|
3482
|
-
* @deprecated use get<TargetType> instead
|
|
3483
3475
|
*/
|
|
3484
3476
|
listTypeDef = () => {
|
|
3485
3477
|
const ctx = this._ctx.select("listTypeDef");
|
|
@@ -3487,7 +3479,6 @@ export class LLM extends BaseClient {
|
|
|
3487
3479
|
};
|
|
3488
3480
|
/**
|
|
3489
3481
|
* synchronize LLM state
|
|
3490
|
-
* @deprecated use sync
|
|
3491
3482
|
*/
|
|
3492
3483
|
loop = () => {
|
|
3493
3484
|
const ctx = this._ctx.select("loop");
|
|
@@ -3506,7 +3497,6 @@ export class LLM extends BaseClient {
|
|
|
3506
3497
|
};
|
|
3507
3498
|
/**
|
|
3508
3499
|
* Retrieve a the current value in the LLM environment, of type Module
|
|
3509
|
-
* @deprecated use get<TargetType> instead
|
|
3510
3500
|
*/
|
|
3511
3501
|
module_ = () => {
|
|
3512
3502
|
const ctx = this._ctx.select("module");
|
|
@@ -3514,7 +3504,6 @@ export class LLM extends BaseClient {
|
|
|
3514
3504
|
};
|
|
3515
3505
|
/**
|
|
3516
3506
|
* Retrieve a the current value in the LLM environment, of type ModuleConfigClient
|
|
3517
|
-
* @deprecated use get<TargetType> instead
|
|
3518
3507
|
*/
|
|
3519
3508
|
moduleConfigClient = () => {
|
|
3520
3509
|
const ctx = this._ctx.select("moduleConfigClient");
|
|
@@ -3522,7 +3511,6 @@ export class LLM extends BaseClient {
|
|
|
3522
3511
|
};
|
|
3523
3512
|
/**
|
|
3524
3513
|
* Retrieve a the current value in the LLM environment, of type ModuleSource
|
|
3525
|
-
* @deprecated use get<TargetType> instead
|
|
3526
3514
|
*/
|
|
3527
3515
|
moduleSource = () => {
|
|
3528
3516
|
const ctx = this._ctx.select("moduleSource");
|
|
@@ -3530,7 +3518,6 @@ export class LLM extends BaseClient {
|
|
|
3530
3518
|
};
|
|
3531
3519
|
/**
|
|
3532
3520
|
* Retrieve a the current value in the LLM environment, of type ObjectTypeDef
|
|
3533
|
-
* @deprecated use get<TargetType> instead
|
|
3534
3521
|
*/
|
|
3535
3522
|
objectTypeDef = () => {
|
|
3536
3523
|
const ctx = this._ctx.select("objectTypeDef");
|
|
@@ -3549,7 +3536,6 @@ export class LLM extends BaseClient {
|
|
|
3549
3536
|
};
|
|
3550
3537
|
/**
|
|
3551
3538
|
* Retrieve a the current value in the LLM environment, of type ScalarTypeDef
|
|
3552
|
-
* @deprecated use get<TargetType> instead
|
|
3553
3539
|
*/
|
|
3554
3540
|
scalarTypeDef = () => {
|
|
3555
3541
|
const ctx = this._ctx.select("scalarTypeDef");
|
|
@@ -3557,7 +3543,6 @@ export class LLM extends BaseClient {
|
|
|
3557
3543
|
};
|
|
3558
3544
|
/**
|
|
3559
3545
|
* Retrieve a the current value in the LLM environment, of type SDKConfig
|
|
3560
|
-
* @deprecated use get<TargetType> instead
|
|
3561
3546
|
*/
|
|
3562
3547
|
sdkconfig = () => {
|
|
3563
3548
|
const ctx = this._ctx.select("sdkconfig");
|
|
@@ -3565,7 +3550,6 @@ export class LLM extends BaseClient {
|
|
|
3565
3550
|
};
|
|
3566
3551
|
/**
|
|
3567
3552
|
* Retrieve a the current value in the LLM environment, of type Secret
|
|
3568
|
-
* @deprecated use get<TargetType> instead
|
|
3569
3553
|
*/
|
|
3570
3554
|
secret = () => {
|
|
3571
3555
|
const ctx = this._ctx.select("secret");
|
|
@@ -3573,7 +3557,6 @@ export class LLM extends BaseClient {
|
|
|
3573
3557
|
};
|
|
3574
3558
|
/**
|
|
3575
3559
|
* Retrieve a the current value in the LLM environment, of type Service
|
|
3576
|
-
* @deprecated use get<TargetType> instead
|
|
3577
3560
|
*/
|
|
3578
3561
|
service = () => {
|
|
3579
3562
|
const ctx = this._ctx.select("service");
|
|
@@ -3887,7 +3870,6 @@ export class LLM extends BaseClient {
|
|
|
3887
3870
|
};
|
|
3888
3871
|
/**
|
|
3889
3872
|
* Retrieve a the current value in the LLM environment, of type Socket
|
|
3890
|
-
* @deprecated use get<TargetType> instead
|
|
3891
3873
|
*/
|
|
3892
3874
|
socket = () => {
|
|
3893
3875
|
const ctx = this._ctx.select("socket");
|
|
@@ -3895,7 +3877,6 @@ export class LLM extends BaseClient {
|
|
|
3895
3877
|
};
|
|
3896
3878
|
/**
|
|
3897
3879
|
* Retrieve a the current value in the LLM environment, of type SourceMap
|
|
3898
|
-
* @deprecated use get<TargetType> instead
|
|
3899
3880
|
*/
|
|
3900
3881
|
sourceMap = () => {
|
|
3901
3882
|
const ctx = this._ctx.select("sourceMap");
|
|
@@ -3911,7 +3892,6 @@ export class LLM extends BaseClient {
|
|
|
3911
3892
|
};
|
|
3912
3893
|
/**
|
|
3913
3894
|
* Retrieve a the current value in the LLM environment, of type Terminal
|
|
3914
|
-
* @deprecated use get<TargetType> instead
|
|
3915
3895
|
*/
|
|
3916
3896
|
terminal = () => {
|
|
3917
3897
|
const ctx = this._ctx.select("terminal");
|
|
@@ -3930,7 +3910,6 @@ export class LLM extends BaseClient {
|
|
|
3930
3910
|
};
|
|
3931
3911
|
/**
|
|
3932
3912
|
* Retrieve a the current value in the LLM environment, of type TypeDef
|
|
3933
|
-
* @deprecated use get<TargetType> instead
|
|
3934
3913
|
*/
|
|
3935
3914
|
typeDef = () => {
|
|
3936
3915
|
const ctx = this._ctx.select("typeDef");
|
|
@@ -3947,7 +3926,6 @@ export class LLM extends BaseClient {
|
|
|
3947
3926
|
/**
|
|
3948
3927
|
* Set a variable of type CacheVolume in the llm environment
|
|
3949
3928
|
* @param value The CacheVolume value to assign to the variable
|
|
3950
|
-
* @deprecated use set<TargetType> instead
|
|
3951
3929
|
*/
|
|
3952
3930
|
withCacheVolume = (value) => {
|
|
3953
3931
|
const ctx = this._ctx.select("withCacheVolume", { value });
|
|
@@ -3956,7 +3934,6 @@ export class LLM extends BaseClient {
|
|
|
3956
3934
|
/**
|
|
3957
3935
|
* Set a variable of type Container in the llm environment
|
|
3958
3936
|
* @param value The Container value to assign to the variable
|
|
3959
|
-
* @deprecated use set<TargetType> instead
|
|
3960
3937
|
*/
|
|
3961
3938
|
withContainer = (value) => {
|
|
3962
3939
|
const ctx = this._ctx.select("withContainer", { value });
|
|
@@ -3965,7 +3942,6 @@ export class LLM extends BaseClient {
|
|
|
3965
3942
|
/**
|
|
3966
3943
|
* Set a variable of type CurrentModule in the llm environment
|
|
3967
3944
|
* @param value The CurrentModule value to assign to the variable
|
|
3968
|
-
* @deprecated use set<TargetType> instead
|
|
3969
3945
|
*/
|
|
3970
3946
|
withCurrentModule = (value) => {
|
|
3971
3947
|
const ctx = this._ctx.select("withCurrentModule", { value });
|
|
@@ -3974,7 +3950,6 @@ export class LLM extends BaseClient {
|
|
|
3974
3950
|
/**
|
|
3975
3951
|
* Set a variable of type Directory in the llm environment
|
|
3976
3952
|
* @param value The Directory value to assign to the variable
|
|
3977
|
-
* @deprecated use set<TargetType> instead
|
|
3978
3953
|
*/
|
|
3979
3954
|
withDirectory = (value) => {
|
|
3980
3955
|
const ctx = this._ctx.select("withDirectory", { value });
|
|
@@ -3983,7 +3958,6 @@ export class LLM extends BaseClient {
|
|
|
3983
3958
|
/**
|
|
3984
3959
|
* Set a variable of type EnumTypeDef in the llm environment
|
|
3985
3960
|
* @param value The EnumTypeDef value to assign to the variable
|
|
3986
|
-
* @deprecated use set<TargetType> instead
|
|
3987
3961
|
*/
|
|
3988
3962
|
withEnumTypeDef = (value) => {
|
|
3989
3963
|
const ctx = this._ctx.select("withEnumTypeDef", { value });
|
|
@@ -3992,7 +3966,6 @@ export class LLM extends BaseClient {
|
|
|
3992
3966
|
/**
|
|
3993
3967
|
* Set a variable of type EnumValueTypeDef in the llm environment
|
|
3994
3968
|
* @param value The EnumValueTypeDef value to assign to the variable
|
|
3995
|
-
* @deprecated use set<TargetType> instead
|
|
3996
3969
|
*/
|
|
3997
3970
|
withEnumValueTypeDef = (value) => {
|
|
3998
3971
|
const ctx = this._ctx.select("withEnumValueTypeDef", { value });
|
|
@@ -4001,7 +3974,6 @@ export class LLM extends BaseClient {
|
|
|
4001
3974
|
/**
|
|
4002
3975
|
* Set a variable of type Error in the llm environment
|
|
4003
3976
|
* @param value The Error value to assign to the variable
|
|
4004
|
-
* @deprecated use set<TargetType> instead
|
|
4005
3977
|
*/
|
|
4006
3978
|
withError = (value) => {
|
|
4007
3979
|
const ctx = this._ctx.select("withError", { value });
|
|
@@ -4010,7 +3982,6 @@ export class LLM extends BaseClient {
|
|
|
4010
3982
|
/**
|
|
4011
3983
|
* Set a variable of type ErrorValue in the llm environment
|
|
4012
3984
|
* @param value The ErrorValue value to assign to the variable
|
|
4013
|
-
* @deprecated use set<TargetType> instead
|
|
4014
3985
|
*/
|
|
4015
3986
|
withErrorValue = (value) => {
|
|
4016
3987
|
const ctx = this._ctx.select("withErrorValue", { value });
|
|
@@ -4019,7 +3990,6 @@ export class LLM extends BaseClient {
|
|
|
4019
3990
|
/**
|
|
4020
3991
|
* Set a variable of type FieldTypeDef in the llm environment
|
|
4021
3992
|
* @param value The FieldTypeDef value to assign to the variable
|
|
4022
|
-
* @deprecated use set<TargetType> instead
|
|
4023
3993
|
*/
|
|
4024
3994
|
withFieldTypeDef = (value) => {
|
|
4025
3995
|
const ctx = this._ctx.select("withFieldTypeDef", { value });
|
|
@@ -4028,7 +3998,6 @@ export class LLM extends BaseClient {
|
|
|
4028
3998
|
/**
|
|
4029
3999
|
* Set a variable of type File in the llm environment
|
|
4030
4000
|
* @param value The File value to assign to the variable
|
|
4031
|
-
* @deprecated use set<TargetType> instead
|
|
4032
4001
|
*/
|
|
4033
4002
|
withFile = (value) => {
|
|
4034
4003
|
const ctx = this._ctx.select("withFile", { value });
|
|
@@ -4037,7 +4006,6 @@ export class LLM extends BaseClient {
|
|
|
4037
4006
|
/**
|
|
4038
4007
|
* Set a variable of type Function in the llm environment
|
|
4039
4008
|
* @param value The Function value to assign to the variable
|
|
4040
|
-
* @deprecated use set<TargetType> instead
|
|
4041
4009
|
*/
|
|
4042
4010
|
withFunction = (value) => {
|
|
4043
4011
|
const ctx = this._ctx.select("withFunction", { value });
|
|
@@ -4046,7 +4014,6 @@ export class LLM extends BaseClient {
|
|
|
4046
4014
|
/**
|
|
4047
4015
|
* Set a variable of type FunctionArg in the llm environment
|
|
4048
4016
|
* @param value The FunctionArg value to assign to the variable
|
|
4049
|
-
* @deprecated use set<TargetType> instead
|
|
4050
4017
|
*/
|
|
4051
4018
|
withFunctionArg = (value) => {
|
|
4052
4019
|
const ctx = this._ctx.select("withFunctionArg", { value });
|
|
@@ -4055,7 +4022,6 @@ export class LLM extends BaseClient {
|
|
|
4055
4022
|
/**
|
|
4056
4023
|
* Set a variable of type FunctionCall in the llm environment
|
|
4057
4024
|
* @param value The FunctionCall value to assign to the variable
|
|
4058
|
-
* @deprecated use set<TargetType> instead
|
|
4059
4025
|
*/
|
|
4060
4026
|
withFunctionCall = (value) => {
|
|
4061
4027
|
const ctx = this._ctx.select("withFunctionCall", { value });
|
|
@@ -4064,7 +4030,6 @@ export class LLM extends BaseClient {
|
|
|
4064
4030
|
/**
|
|
4065
4031
|
* Set a variable of type FunctionCallArgValue in the llm environment
|
|
4066
4032
|
* @param value The FunctionCallArgValue value to assign to the variable
|
|
4067
|
-
* @deprecated use set<TargetType> instead
|
|
4068
4033
|
*/
|
|
4069
4034
|
withFunctionCallArgValue = (value) => {
|
|
4070
4035
|
const ctx = this._ctx.select("withFunctionCallArgValue", { value });
|
|
@@ -4073,7 +4038,6 @@ export class LLM extends BaseClient {
|
|
|
4073
4038
|
/**
|
|
4074
4039
|
* Set a variable of type GeneratedCode in the llm environment
|
|
4075
4040
|
* @param value The GeneratedCode value to assign to the variable
|
|
4076
|
-
* @deprecated use set<TargetType> instead
|
|
4077
4041
|
*/
|
|
4078
4042
|
withGeneratedCode = (value) => {
|
|
4079
4043
|
const ctx = this._ctx.select("withGeneratedCode", { value });
|
|
@@ -4082,7 +4046,6 @@ export class LLM extends BaseClient {
|
|
|
4082
4046
|
/**
|
|
4083
4047
|
* Set a variable of type GitRef in the llm environment
|
|
4084
4048
|
* @param value The GitRef value to assign to the variable
|
|
4085
|
-
* @deprecated use set<TargetType> instead
|
|
4086
4049
|
*/
|
|
4087
4050
|
withGitRef = (value) => {
|
|
4088
4051
|
const ctx = this._ctx.select("withGitRef", { value });
|
|
@@ -4091,7 +4054,6 @@ export class LLM extends BaseClient {
|
|
|
4091
4054
|
/**
|
|
4092
4055
|
* Set a variable of type GitRepository in the llm environment
|
|
4093
4056
|
* @param value The GitRepository value to assign to the variable
|
|
4094
|
-
* @deprecated use set<TargetType> instead
|
|
4095
4057
|
*/
|
|
4096
4058
|
withGitRepository = (value) => {
|
|
4097
4059
|
const ctx = this._ctx.select("withGitRepository", { value });
|
|
@@ -4100,7 +4062,6 @@ export class LLM extends BaseClient {
|
|
|
4100
4062
|
/**
|
|
4101
4063
|
* Set a variable of type InputTypeDef in the llm environment
|
|
4102
4064
|
* @param value The InputTypeDef value to assign to the variable
|
|
4103
|
-
* @deprecated use set<TargetType> instead
|
|
4104
4065
|
*/
|
|
4105
4066
|
withInputTypeDef = (value) => {
|
|
4106
4067
|
const ctx = this._ctx.select("withInputTypeDef", { value });
|
|
@@ -4109,7 +4070,6 @@ export class LLM extends BaseClient {
|
|
|
4109
4070
|
/**
|
|
4110
4071
|
* Set a variable of type InterfaceTypeDef in the llm environment
|
|
4111
4072
|
* @param value The InterfaceTypeDef value to assign to the variable
|
|
4112
|
-
* @deprecated use set<TargetType> instead
|
|
4113
4073
|
*/
|
|
4114
4074
|
withInterfaceTypeDef = (value) => {
|
|
4115
4075
|
const ctx = this._ctx.select("withInterfaceTypeDef", { value });
|
|
@@ -4118,7 +4078,6 @@ export class LLM extends BaseClient {
|
|
|
4118
4078
|
/**
|
|
4119
4079
|
* Set a variable of type LLM in the llm environment
|
|
4120
4080
|
* @param value The LLM value to assign to the variable
|
|
4121
|
-
* @deprecated use set<TargetType> instead
|
|
4122
4081
|
*/
|
|
4123
4082
|
withLLM = (value) => {
|
|
4124
4083
|
const ctx = this._ctx.select("withLLM", { value });
|
|
@@ -4127,7 +4086,6 @@ export class LLM extends BaseClient {
|
|
|
4127
4086
|
/**
|
|
4128
4087
|
* Set a variable of type ListTypeDef in the llm environment
|
|
4129
4088
|
* @param value The ListTypeDef value to assign to the variable
|
|
4130
|
-
* @deprecated use set<TargetType> instead
|
|
4131
4089
|
*/
|
|
4132
4090
|
withListTypeDef = (value) => {
|
|
4133
4091
|
const ctx = this._ctx.select("withListTypeDef", { value });
|
|
@@ -4144,7 +4102,6 @@ export class LLM extends BaseClient {
|
|
|
4144
4102
|
/**
|
|
4145
4103
|
* Set a variable of type Module in the llm environment
|
|
4146
4104
|
* @param value The Module value to assign to the variable
|
|
4147
|
-
* @deprecated use set<TargetType> instead
|
|
4148
4105
|
*/
|
|
4149
4106
|
withModule = (value) => {
|
|
4150
4107
|
const ctx = this._ctx.select("withModule", { value });
|
|
@@ -4153,7 +4110,6 @@ export class LLM extends BaseClient {
|
|
|
4153
4110
|
/**
|
|
4154
4111
|
* Set a variable of type ModuleConfigClient in the llm environment
|
|
4155
4112
|
* @param value The ModuleConfigClient value to assign to the variable
|
|
4156
|
-
* @deprecated use set<TargetType> instead
|
|
4157
4113
|
*/
|
|
4158
4114
|
withModuleConfigClient = (value) => {
|
|
4159
4115
|
const ctx = this._ctx.select("withModuleConfigClient", { value });
|
|
@@ -4162,7 +4118,6 @@ export class LLM extends BaseClient {
|
|
|
4162
4118
|
/**
|
|
4163
4119
|
* Set a variable of type ModuleSource in the llm environment
|
|
4164
4120
|
* @param value The ModuleSource value to assign to the variable
|
|
4165
|
-
* @deprecated use set<TargetType> instead
|
|
4166
4121
|
*/
|
|
4167
4122
|
withModuleSource = (value) => {
|
|
4168
4123
|
const ctx = this._ctx.select("withModuleSource", { value });
|
|
@@ -4171,7 +4126,6 @@ export class LLM extends BaseClient {
|
|
|
4171
4126
|
/**
|
|
4172
4127
|
* Set a variable of type ObjectTypeDef in the llm environment
|
|
4173
4128
|
* @param value The ObjectTypeDef value to assign to the variable
|
|
4174
|
-
* @deprecated use set<TargetType> instead
|
|
4175
4129
|
*/
|
|
4176
4130
|
withObjectTypeDef = (value) => {
|
|
4177
4131
|
const ctx = this._ctx.select("withObjectTypeDef", { value });
|
|
@@ -4202,10 +4156,16 @@ export class LLM extends BaseClient {
|
|
|
4202
4156
|
const ctx = this._ctx.select("withPromptVar", { name, value });
|
|
4203
4157
|
return new LLM(ctx);
|
|
4204
4158
|
};
|
|
4159
|
+
/**
|
|
4160
|
+
* Provide the entire Query object to the LLM
|
|
4161
|
+
*/
|
|
4162
|
+
withQuery = () => {
|
|
4163
|
+
const ctx = this._ctx.select("withQuery");
|
|
4164
|
+
return new LLM(ctx);
|
|
4165
|
+
};
|
|
4205
4166
|
/**
|
|
4206
4167
|
* Set a variable of type SDKConfig in the llm environment
|
|
4207
4168
|
* @param value The SDKConfig value to assign to the variable
|
|
4208
|
-
* @deprecated use set<TargetType> instead
|
|
4209
4169
|
*/
|
|
4210
4170
|
withSDKConfig = (value) => {
|
|
4211
4171
|
const ctx = this._ctx.select("withSDKConfig", { value });
|
|
@@ -4214,7 +4174,6 @@ export class LLM extends BaseClient {
|
|
|
4214
4174
|
/**
|
|
4215
4175
|
* Set a variable of type ScalarTypeDef in the llm environment
|
|
4216
4176
|
* @param value The ScalarTypeDef value to assign to the variable
|
|
4217
|
-
* @deprecated use set<TargetType> instead
|
|
4218
4177
|
*/
|
|
4219
4178
|
withScalarTypeDef = (value) => {
|
|
4220
4179
|
const ctx = this._ctx.select("withScalarTypeDef", { value });
|
|
@@ -4223,7 +4182,6 @@ export class LLM extends BaseClient {
|
|
|
4223
4182
|
/**
|
|
4224
4183
|
* Set a variable of type Secret in the llm environment
|
|
4225
4184
|
* @param value The Secret value to assign to the variable
|
|
4226
|
-
* @deprecated use set<TargetType> instead
|
|
4227
4185
|
*/
|
|
4228
4186
|
withSecret = (value) => {
|
|
4229
4187
|
const ctx = this._ctx.select("withSecret", { value });
|
|
@@ -4232,7 +4190,6 @@ export class LLM extends BaseClient {
|
|
|
4232
4190
|
/**
|
|
4233
4191
|
* Set a variable of type Service in the llm environment
|
|
4234
4192
|
* @param value The Service value to assign to the variable
|
|
4235
|
-
* @deprecated use set<TargetType> instead
|
|
4236
4193
|
*/
|
|
4237
4194
|
withService = (value) => {
|
|
4238
4195
|
const ctx = this._ctx.select("withService", { value });
|
|
@@ -4241,7 +4198,6 @@ export class LLM extends BaseClient {
|
|
|
4241
4198
|
/**
|
|
4242
4199
|
* Set a variable of type Socket in the llm environment
|
|
4243
4200
|
* @param value The Socket value to assign to the variable
|
|
4244
|
-
* @deprecated use set<TargetType> instead
|
|
4245
4201
|
*/
|
|
4246
4202
|
withSocket = (value) => {
|
|
4247
4203
|
const ctx = this._ctx.select("withSocket", { value });
|
|
@@ -4250,7 +4206,6 @@ export class LLM extends BaseClient {
|
|
|
4250
4206
|
/**
|
|
4251
4207
|
* Set a variable of type SourceMap in the llm environment
|
|
4252
4208
|
* @param value The SourceMap value to assign to the variable
|
|
4253
|
-
* @deprecated use set<TargetType> instead
|
|
4254
4209
|
*/
|
|
4255
4210
|
withSourceMap = (value) => {
|
|
4256
4211
|
const ctx = this._ctx.select("withSourceMap", { value });
|
|
@@ -4259,7 +4214,6 @@ export class LLM extends BaseClient {
|
|
|
4259
4214
|
/**
|
|
4260
4215
|
* Set a variable of type Terminal in the llm environment
|
|
4261
4216
|
* @param value The Terminal value to assign to the variable
|
|
4262
|
-
* @deprecated use set<TargetType> instead
|
|
4263
4217
|
*/
|
|
4264
4218
|
withTerminal = (value) => {
|
|
4265
4219
|
const ctx = this._ctx.select("withTerminal", { value });
|
|
@@ -4268,7 +4222,6 @@ export class LLM extends BaseClient {
|
|
|
4268
4222
|
/**
|
|
4269
4223
|
* Set a variable of type TypeDef in the llm environment
|
|
4270
4224
|
* @param value The TypeDef value to assign to the variable
|
|
4271
|
-
* @deprecated use set<TargetType> instead
|
|
4272
4225
|
*/
|
|
4273
4226
|
withTypeDef = (value) => {
|
|
4274
4227
|
const ctx = this._ctx.select("withTypeDef", { value });
|
|
@@ -4742,7 +4695,7 @@ export class ModuleSource extends BaseClient {
|
|
|
4742
4695
|
return response;
|
|
4743
4696
|
};
|
|
4744
4697
|
/**
|
|
4745
|
-
* The resolved commit of the git repo this source points to.
|
|
4698
|
+
* The resolved commit of the git repo this source points to.
|
|
4746
4699
|
*/
|
|
4747
4700
|
commit = async () => {
|
|
4748
4701
|
if (this._commit) {
|
|
@@ -4824,7 +4777,7 @@ export class ModuleSource extends BaseClient {
|
|
|
4824
4777
|
return new Directory(ctx);
|
|
4825
4778
|
};
|
|
4826
4779
|
/**
|
|
4827
|
-
* The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket).
|
|
4780
|
+
* The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket).
|
|
4828
4781
|
*/
|
|
4829
4782
|
htmlRepoURL = async () => {
|
|
4830
4783
|
if (this._htmlRepoURL) {
|
|
@@ -4960,7 +4913,7 @@ export class ModuleSource extends BaseClient {
|
|
|
4960
4913
|
return new Client(ctx.copy()).loadModuleSourceFromID(response);
|
|
4961
4914
|
};
|
|
4962
4915
|
/**
|
|
4963
|
-
* The specified version of the git repo this source points to.
|
|
4916
|
+
* The specified version of the git repo this source points to.
|
|
4964
4917
|
*/
|
|
4965
4918
|
version = async () => {
|
|
4966
4919
|
if (this._version) {
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG/C,cAAc,qBAAqB,CAAA;AAGnC,cAAc,0BAA0B,CAAA;AAGxC,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAG7C,cAAc,wBAAwB,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.17.
|
|
1
|
+
export declare const CLI_VERSION = "0.17.1";
|
|
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.17.
|
|
2
|
+
export const CLI_VERSION = "0.17.1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/telemetry/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/telemetry/init.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,aAAa,CAAQ;IAE7B,OAAO,CAAC,GAAG,CAAC,CAAS;IAErB;;OAEG;IACH,UAAU;IAQV,SAAS;IAoBT;;OAEG;IACG,KAAK;IAMX;;OAEG;IACH,QAAQ;CAeT"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getBooleanFromEnv } from "@opentelemetry/core";
|
|
2
2
|
import { NodeSDK } from "@opentelemetry/sdk-node";
|
|
3
3
|
const SERVICE_NAME = "dagger-typescript-sdk";
|
|
4
|
-
const env = getEnvWithoutDefaults();
|
|
5
4
|
/*
|
|
6
5
|
* Look for variables prefixed with OTel to see if OpenTelemetry is configured.
|
|
7
6
|
*/
|
|
@@ -28,7 +27,7 @@ export class DaggerOtelConfigurator {
|
|
|
28
27
|
if (!otelConfigured()) {
|
|
29
28
|
return;
|
|
30
29
|
}
|
|
31
|
-
if (
|
|
30
|
+
if (getBooleanFromEnv("OTEL_SDK_DISABLED") ?? true) {
|
|
32
31
|
return;
|
|
33
32
|
}
|
|
34
33
|
this.setupEnv();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dagger.io/dagger",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"author": "hello@dagger.io",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "dist/src/index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@grpc/grpc-js": "^1.13.
|
|
20
|
+
"@grpc/grpc-js": "^1.13.1",
|
|
21
21
|
"@lifeomic/axios-fetch": "^3.1.0",
|
|
22
22
|
"@opentelemetry/api": "^1.9.0",
|
|
23
|
-
"@opentelemetry/core": "^
|
|
24
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
25
|
-
"@opentelemetry/sdk-metrics": "^
|
|
26
|
-
"@opentelemetry/sdk-node": "^0.
|
|
23
|
+
"@opentelemetry/core": "^2.0.0",
|
|
24
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.200.0",
|
|
25
|
+
"@opentelemetry/sdk-metrics": "^2.0.0",
|
|
26
|
+
"@opentelemetry/sdk-node": "^0.200.0",
|
|
27
27
|
"@opentelemetry/semantic-conventions": "^1.30.0",
|
|
28
28
|
"adm-zip": "^0.5.16",
|
|
29
29
|
"env-paths": "^3.0.0",
|
|
@@ -54,17 +54,17 @@
|
|
|
54
54
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
55
55
|
"@types/adm-zip": "^0.5.7",
|
|
56
56
|
"@types/mocha": "^10.0.10",
|
|
57
|
-
"@types/node": "~22.13.
|
|
57
|
+
"@types/node": "~22.13.13",
|
|
58
58
|
"@types/tar": "^6.1.13",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
60
|
-
"@typescript-eslint/parser": "^8.
|
|
61
|
-
"eslint": "^9.
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
60
|
+
"@typescript-eslint/parser": "^8.27.0",
|
|
61
|
+
"eslint": "^9.23.0",
|
|
62
62
|
"eslint-config-prettier": "^10.1.1",
|
|
63
|
-
"eslint-plugin-prettier": "^5.2.
|
|
63
|
+
"eslint-plugin-prettier": "^5.2.4",
|
|
64
64
|
"mocha": "^11.1.0",
|
|
65
65
|
"prettier": "^3.5.3",
|
|
66
66
|
"ts-node": "^10.9.2",
|
|
67
67
|
"tsx": "^4.19.3",
|
|
68
|
-
"typescript-eslint": "^8.
|
|
68
|
+
"typescript-eslint": "^8.27.0"
|
|
69
69
|
}
|
|
70
70
|
}
|