@dagger.io/dagger 0.18.16 → 0.18.17

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.
@@ -591,6 +591,13 @@ export class Binding extends BaseClient {
591
591
  const ctx = this._ctx.select("asGitRepository");
592
592
  return new GitRepository(ctx);
593
593
  };
594
+ /**
595
+ * Retrieve the binding value, as type JSONValue
596
+ */
597
+ asJSONValue = () => {
598
+ const ctx = this._ctx.select("asJSONValue");
599
+ return new JSONValue(ctx);
600
+ };
594
601
  /**
595
602
  * Retrieve the binding value, as type LLM
596
603
  */
@@ -619,6 +626,20 @@ export class Binding extends BaseClient {
619
626
  const ctx = this._ctx.select("asModuleSource");
620
627
  return new ModuleSource(ctx);
621
628
  };
629
+ /**
630
+ * Retrieve the binding value, as type SearchResult
631
+ */
632
+ asSearchResult = () => {
633
+ const ctx = this._ctx.select("asSearchResult");
634
+ return new SearchResult(ctx);
635
+ };
636
+ /**
637
+ * Retrieve the binding value, as type SearchSubmatch
638
+ */
639
+ asSearchSubmatch = () => {
640
+ const ctx = this._ctx.select("asSearchSubmatch");
641
+ return new SearchSubmatch(ctx);
642
+ };
622
643
  /**
623
644
  * Retrieve the binding value, as type Secret
624
645
  */
@@ -762,6 +783,7 @@ export class Cloud extends BaseClient {
762
783
  */
763
784
  export class Container extends BaseClient {
764
785
  _id = undefined;
786
+ _combinedOutput = undefined;
765
787
  _envVariable = undefined;
766
788
  _exists = undefined;
767
789
  _exitCode = undefined;
@@ -780,9 +802,10 @@ export class Container extends BaseClient {
780
802
  /**
781
803
  * Constructor is used for internal usage only, do not create object from it.
782
804
  */
783
- constructor(ctx, _id, _envVariable, _exists, _exitCode, _export, _exportImage, _imageRef, _label, _platform, _publish, _stderr, _stdout, _sync, _up, _user, _workdir) {
805
+ constructor(ctx, _id, _combinedOutput, _envVariable, _exists, _exitCode, _export, _exportImage, _imageRef, _label, _platform, _publish, _stderr, _stdout, _sync, _up, _user, _workdir) {
784
806
  super(ctx);
785
807
  this._id = _id;
808
+ this._combinedOutput = _combinedOutput;
786
809
  this._envVariable = _envVariable;
787
810
  this._exists = _exists;
788
811
  this._exitCode = _exitCode;
@@ -872,6 +895,19 @@ export class Container extends BaseClient {
872
895
  const ctx = this._ctx.select("build", { context, ...opts });
873
896
  return new Container(ctx);
874
897
  };
898
+ /**
899
+ * The combined buffered standard output and standard error stream of the last executed command
900
+ *
901
+ * Returns an error if no command was executed
902
+ */
903
+ combinedOutput = async () => {
904
+ if (this._combinedOutput) {
905
+ return this._combinedOutput;
906
+ }
907
+ const ctx = this._ctx.select("combinedOutput");
908
+ const response = await ctx.execute();
909
+ return response;
910
+ };
875
911
  /**
876
912
  * Return the container's default arguments.
877
913
  */
@@ -2014,6 +2050,27 @@ export class Directory extends BaseClient {
2014
2050
  const response = await ctx.execute();
2015
2051
  return response;
2016
2052
  };
2053
+ /**
2054
+ * Searches for content matching the given regular expression or literal string.
2055
+ *
2056
+ * Uses Rust regex syntax; escape literal ., [, ], {, }, | with backslashes.
2057
+ * @param opts.paths Directory or file paths to search
2058
+ * @param opts.globs Glob patterns to match (e.g., "*.md")
2059
+ * @param opts.pattern The text to match.
2060
+ * @param opts.literal Interpret the pattern as a literal string instead of a regular expression.
2061
+ * @param opts.multiline Enable searching across multiple lines.
2062
+ * @param opts.dotall Allow the . pattern to match newlines in multiline mode.
2063
+ * @param opts.insensitive Enable case-insensitive matching.
2064
+ * @param opts.skipIgnored Honor .gitignore, .ignore, and .rgignore files.
2065
+ * @param opts.skipHidden Skip hidden files (files starting with .).
2066
+ * @param opts.filesOnly Only return matching files, not lines and content
2067
+ * @param opts.limit Limit the number of results to return
2068
+ */
2069
+ search = async (opts) => {
2070
+ const ctx = this._ctx.select("search", { ...opts }).select("id");
2071
+ const response = await ctx.execute();
2072
+ return response.map((r) => new Client(ctx.copy()).loadSearchResultFromID(r.id));
2073
+ };
2017
2074
  /**
2018
2075
  * Force evaluation in the engine.
2019
2076
  */
@@ -2813,6 +2870,29 @@ export class Env extends BaseClient {
2813
2870
  });
2814
2871
  return new Env(ctx);
2815
2872
  };
2873
+ /**
2874
+ * Create or update a binding of type JSONValue in the environment
2875
+ * @param name The name of the binding
2876
+ * @param value The JSONValue value to assign to the binding
2877
+ * @param description The purpose of the input
2878
+ */
2879
+ withJSONValueInput = (name, value, description) => {
2880
+ const ctx = this._ctx.select("withJSONValueInput", {
2881
+ name,
2882
+ value,
2883
+ description,
2884
+ });
2885
+ return new Env(ctx);
2886
+ };
2887
+ /**
2888
+ * Declare a desired JSONValue output to be assigned in the environment
2889
+ * @param name The name of the binding
2890
+ * @param description A description of the desired value of the binding
2891
+ */
2892
+ withJSONValueOutput = (name, description) => {
2893
+ const ctx = this._ctx.select("withJSONValueOutput", { name, description });
2894
+ return new Env(ctx);
2895
+ };
2816
2896
  /**
2817
2897
  * Create or update a binding of type LLM in the environment
2818
2898
  * @param name The name of the binding
@@ -2907,6 +2987,58 @@ export class Env extends BaseClient {
2907
2987
  });
2908
2988
  return new Env(ctx);
2909
2989
  };
2990
+ /**
2991
+ * Create or update a binding of type SearchResult in the environment
2992
+ * @param name The name of the binding
2993
+ * @param value The SearchResult value to assign to the binding
2994
+ * @param description The purpose of the input
2995
+ */
2996
+ withSearchResultInput = (name, value, description) => {
2997
+ const ctx = this._ctx.select("withSearchResultInput", {
2998
+ name,
2999
+ value,
3000
+ description,
3001
+ });
3002
+ return new Env(ctx);
3003
+ };
3004
+ /**
3005
+ * Declare a desired SearchResult output to be assigned in the environment
3006
+ * @param name The name of the binding
3007
+ * @param description A description of the desired value of the binding
3008
+ */
3009
+ withSearchResultOutput = (name, description) => {
3010
+ const ctx = this._ctx.select("withSearchResultOutput", {
3011
+ name,
3012
+ description,
3013
+ });
3014
+ return new Env(ctx);
3015
+ };
3016
+ /**
3017
+ * Create or update a binding of type SearchSubmatch in the environment
3018
+ * @param name The name of the binding
3019
+ * @param value The SearchSubmatch value to assign to the binding
3020
+ * @param description The purpose of the input
3021
+ */
3022
+ withSearchSubmatchInput = (name, value, description) => {
3023
+ const ctx = this._ctx.select("withSearchSubmatchInput", {
3024
+ name,
3025
+ value,
3026
+ description,
3027
+ });
3028
+ return new Env(ctx);
3029
+ };
3030
+ /**
3031
+ * Declare a desired SearchSubmatch output to be assigned in the environment
3032
+ * @param name The name of the binding
3033
+ * @param description A description of the desired value of the binding
3034
+ */
3035
+ withSearchSubmatchOutput = (name, description) => {
3036
+ const ctx = this._ctx.select("withSearchSubmatchOutput", {
3037
+ name,
3038
+ description,
3039
+ });
3040
+ return new Env(ctx);
3041
+ };
2910
3042
  /**
2911
3043
  * Create or update a binding of type Secret in the environment
2912
3044
  * @param name The name of the binding
@@ -3267,12 +3399,14 @@ export class File extends BaseClient {
3267
3399
  };
3268
3400
  /**
3269
3401
  * Retrieves the contents of the file.
3402
+ * @param opts.offsetLines Start reading after this line
3403
+ * @param opts.limitLines Maximum number of lines to read
3270
3404
  */
3271
- contents = async () => {
3405
+ contents = async (opts) => {
3272
3406
  if (this._contents) {
3273
3407
  return this._contents;
3274
3408
  }
3275
- const ctx = this._ctx.select("contents");
3409
+ const ctx = this._ctx.select("contents", { ...opts });
3276
3410
  const response = await ctx.execute();
3277
3411
  return response;
3278
3412
  };
@@ -3312,6 +3446,25 @@ export class File extends BaseClient {
3312
3446
  const response = await ctx.execute();
3313
3447
  return response;
3314
3448
  };
3449
+ /**
3450
+ * Searches for content matching the given regular expression or literal string.
3451
+ *
3452
+ * Uses Rust regex syntax; escape literal ., [, ], {, }, | with backslashes.
3453
+ * @param pattern The text to match.
3454
+ * @param opts.literal Interpret the pattern as a literal string instead of a regular expression.
3455
+ * @param opts.multiline Enable searching across multiple lines.
3456
+ * @param opts.dotall Allow the . pattern to match newlines in multiline mode.
3457
+ * @param opts.insensitive Enable case-insensitive matching.
3458
+ * @param opts.skipIgnored Honor .gitignore, .ignore, and .rgignore files.
3459
+ * @param opts.skipHidden Skip hidden files (files starting with .).
3460
+ * @param opts.filesOnly Only return matching files, not lines and content
3461
+ * @param opts.limit Limit the number of results to return
3462
+ */
3463
+ search = async (pattern, opts) => {
3464
+ const ctx = this._ctx.select("search", { pattern, ...opts }).select("id");
3465
+ const response = await ctx.execute();
3466
+ return response.map((r) => new Client(ctx.copy()).loadSearchResultFromID(r.id));
3467
+ };
3315
3468
  /**
3316
3469
  * Retrieves the size of the file, in bytes.
3317
3470
  */
@@ -3339,6 +3492,29 @@ export class File extends BaseClient {
3339
3492
  const ctx = this._ctx.select("withName", { name });
3340
3493
  return new File(ctx);
3341
3494
  };
3495
+ /**
3496
+ * Retrieves the file with content replaced with the given text.
3497
+ *
3498
+ * If 'all' is true, all occurrences of the pattern will be replaced.
3499
+ *
3500
+ * If 'firstAfter' is specified, only the first match starting at the specified line will be replaced.
3501
+ *
3502
+ * If neither are specified, and there are multiple matches for the pattern, this will error.
3503
+ *
3504
+ * If there are no matches for the pattern, this will error.
3505
+ * @param search The text to match.
3506
+ * @param replacement The text to match.
3507
+ * @param opts.all Replace all occurrences of the pattern.
3508
+ * @param opts.firstFrom Replace the first match starting from the specified line.
3509
+ */
3510
+ withReplaced = (search, replacement, opts) => {
3511
+ const ctx = this._ctx.select("withReplaced", {
3512
+ search,
3513
+ replacement,
3514
+ ...opts,
3515
+ });
3516
+ return new File(ctx);
3517
+ };
3342
3518
  /**
3343
3519
  * Retrieves this file with its created/modified timestamps set to the given time.
3344
3520
  * @param timestamp Timestamp to set dir/files in.
@@ -3866,12 +4042,14 @@ export class GitRef extends BaseClient {
3866
4042
  */
3867
4043
  export class GitRepository extends BaseClient {
3868
4044
  _id = undefined;
4045
+ _url = undefined;
3869
4046
  /**
3870
4047
  * Constructor is used for internal usage only, do not create object from it.
3871
4048
  */
3872
- constructor(ctx, _id) {
4049
+ constructor(ctx, _id, _url) {
3873
4050
  super(ctx);
3874
4051
  this._id = _id;
4052
+ this._url = _url;
3875
4053
  }
3876
4054
  /**
3877
4055
  * A unique identifier for this GitRepository.
@@ -3948,6 +4126,17 @@ export class GitRepository extends BaseClient {
3948
4126
  const response = await ctx.execute();
3949
4127
  return response;
3950
4128
  };
4129
+ /**
4130
+ * The URL of the git repository.
4131
+ */
4132
+ url = async () => {
4133
+ if (this._url) {
4134
+ return this._url;
4135
+ }
4136
+ const ctx = this._ctx.select("url");
4137
+ const response = await ctx.execute();
4138
+ return response;
4139
+ };
3951
4140
  /**
3952
4141
  * Header to authenticate the remote with.
3953
4142
  * @param header Secret used to populate the Authorization HTTP header
@@ -3998,12 +4187,21 @@ export class Host extends BaseClient {
3998
4187
  const response = await ctx.execute();
3999
4188
  return response;
4000
4189
  };
4190
+ /**
4191
+ * Accesses a container image on the host.
4192
+ * @param name Name of the image to access.
4193
+ */
4194
+ containerImage = (name) => {
4195
+ const ctx = this._ctx.select("containerImage", { name });
4196
+ return new Container(ctx);
4197
+ };
4001
4198
  /**
4002
4199
  * Accesses a directory on the host.
4003
4200
  * @param path Location of the directory to access (e.g., ".").
4004
4201
  * @param opts.exclude Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
4005
4202
  * @param opts.include Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
4006
4203
  * @param opts.noCache If true, the directory will always be reloaded from the host.
4204
+ * @param opts.noGitAutoIgnore Don't apply .gitignore filter rules inside the directory
4007
4205
  */
4008
4206
  directory = (path, opts) => {
4009
4207
  const ctx = this._ctx.select("directory", { path, ...opts });
@@ -4196,6 +4394,154 @@ export class InterfaceTypeDef extends BaseClient {
4196
4394
  return response;
4197
4395
  };
4198
4396
  }
4397
+ export class JSONValue extends BaseClient {
4398
+ _id = undefined;
4399
+ _asBoolean = undefined;
4400
+ _asInteger = undefined;
4401
+ _asString = undefined;
4402
+ _contents = undefined;
4403
+ /**
4404
+ * Constructor is used for internal usage only, do not create object from it.
4405
+ */
4406
+ constructor(ctx, _id, _asBoolean, _asInteger, _asString, _contents) {
4407
+ super(ctx);
4408
+ this._id = _id;
4409
+ this._asBoolean = _asBoolean;
4410
+ this._asInteger = _asInteger;
4411
+ this._asString = _asString;
4412
+ this._contents = _contents;
4413
+ }
4414
+ /**
4415
+ * A unique identifier for this JSONValue.
4416
+ */
4417
+ id = async () => {
4418
+ if (this._id) {
4419
+ return this._id;
4420
+ }
4421
+ const ctx = this._ctx.select("id");
4422
+ const response = await ctx.execute();
4423
+ return response;
4424
+ };
4425
+ /**
4426
+ * Decode an array from json
4427
+ */
4428
+ asArray = async () => {
4429
+ const ctx = this._ctx.select("asArray").select("id");
4430
+ const response = await ctx.execute();
4431
+ return response.map((r) => new Client(ctx.copy()).loadJSONValueFromID(r.id));
4432
+ };
4433
+ /**
4434
+ * Decode a boolean from json
4435
+ */
4436
+ asBoolean = async () => {
4437
+ if (this._asBoolean) {
4438
+ return this._asBoolean;
4439
+ }
4440
+ const ctx = this._ctx.select("asBoolean");
4441
+ const response = await ctx.execute();
4442
+ return response;
4443
+ };
4444
+ /**
4445
+ * Decode an integer from json
4446
+ */
4447
+ asInteger = async () => {
4448
+ if (this._asInteger) {
4449
+ return this._asInteger;
4450
+ }
4451
+ const ctx = this._ctx.select("asInteger");
4452
+ const response = await ctx.execute();
4453
+ return response;
4454
+ };
4455
+ /**
4456
+ * Decode a string from json
4457
+ */
4458
+ asString = async () => {
4459
+ if (this._asString) {
4460
+ return this._asString;
4461
+ }
4462
+ const ctx = this._ctx.select("asString");
4463
+ const response = await ctx.execute();
4464
+ return response;
4465
+ };
4466
+ /**
4467
+ * Return the value encoded as json
4468
+ * @param opts.pretty Pretty-print
4469
+ * @param opts.indent Optional line prefix
4470
+ */
4471
+ contents = async (opts) => {
4472
+ if (this._contents) {
4473
+ return this._contents;
4474
+ }
4475
+ const ctx = this._ctx.select("contents", { ...opts });
4476
+ const response = await ctx.execute();
4477
+ return response;
4478
+ };
4479
+ /**
4480
+ * Lookup the field at the given path, and return its value.
4481
+ * @param path Path of the field to lookup, encoded as an array of field names
4482
+ */
4483
+ field = (path) => {
4484
+ const ctx = this._ctx.select("field", { path });
4485
+ return new JSONValue(ctx);
4486
+ };
4487
+ /**
4488
+ * List fields of the encoded object
4489
+ */
4490
+ fields = async () => {
4491
+ const ctx = this._ctx.select("fields");
4492
+ const response = await ctx.execute();
4493
+ return response;
4494
+ };
4495
+ /**
4496
+ * Encode a boolean to json
4497
+ * @param value New boolean value
4498
+ */
4499
+ newBoolean = (value) => {
4500
+ const ctx = this._ctx.select("newBoolean", { value });
4501
+ return new JSONValue(ctx);
4502
+ };
4503
+ /**
4504
+ * Encode an integer to json
4505
+ * @param value New integer value
4506
+ */
4507
+ newInteger = (value) => {
4508
+ const ctx = this._ctx.select("newInteger", { value });
4509
+ return new JSONValue(ctx);
4510
+ };
4511
+ /**
4512
+ * Encode a string to json
4513
+ * @param value New string value
4514
+ */
4515
+ newString = (value) => {
4516
+ const ctx = this._ctx.select("newString", { value });
4517
+ return new JSONValue(ctx);
4518
+ };
4519
+ /**
4520
+ * Return a new json value, decoded from the given content
4521
+ * @param contents New JSON-encoded contents
4522
+ */
4523
+ withContents = (contents) => {
4524
+ const ctx = this._ctx.select("withContents", { contents });
4525
+ return new JSONValue(ctx);
4526
+ };
4527
+ /**
4528
+ * Set a new field at the given path
4529
+ * @param path Path of the field to set, encoded as an array of field names
4530
+ * @param value The new value of the field
4531
+ */
4532
+ withField = (path, value) => {
4533
+ const ctx = this._ctx.select("withField", { path, value });
4534
+ return new JSONValue(ctx);
4535
+ };
4536
+ /**
4537
+ * Call the provided function with current JSONValue.
4538
+ *
4539
+ * This is useful for reusability and readability by not breaking the calling chain.
4540
+ */
4541
+ with = (arg) => {
4542
+ return arg(this);
4543
+ };
4544
+ }
4199
4545
  export class LLM extends BaseClient {
4200
4546
  _id = undefined;
4201
4547
  _historyJSON = undefined;
@@ -5547,6 +5893,13 @@ export class Client extends BaseClient {
5547
5893
  const ctx = this._ctx.select("http", { url, ...opts });
5548
5894
  return new File(ctx);
5549
5895
  };
5896
+ /**
5897
+ * Initialize a JSON value
5898
+ */
5899
+ json = () => {
5900
+ const ctx = this._ctx.select("json");
5901
+ return new JSONValue(ctx);
5902
+ };
5550
5903
  /**
5551
5904
  * Initialize a Large Language Model (LLM)
5552
5905
  * @param opts.model Model to use
@@ -5753,6 +6106,13 @@ export class Client extends BaseClient {
5753
6106
  const ctx = this._ctx.select("loadInterfaceTypeDefFromID", { id });
5754
6107
  return new InterfaceTypeDef(ctx);
5755
6108
  };
6109
+ /**
6110
+ * Load a JSONValue from its ID.
6111
+ */
6112
+ loadJSONValueFromID = (id) => {
6113
+ const ctx = this._ctx.select("loadJSONValueFromID", { id });
6114
+ return new JSONValue(ctx);
6115
+ };
5756
6116
  /**
5757
6117
  * Load a LLM from its ID.
5758
6118
  */
@@ -5830,6 +6190,20 @@ export class Client extends BaseClient {
5830
6190
  const ctx = this._ctx.select("loadScalarTypeDefFromID", { id });
5831
6191
  return new ScalarTypeDef(ctx);
5832
6192
  };
6193
+ /**
6194
+ * Load a SearchResult from its ID.
6195
+ */
6196
+ loadSearchResultFromID = (id) => {
6197
+ const ctx = this._ctx.select("loadSearchResultFromID", { id });
6198
+ return new SearchResult(ctx);
6199
+ };
6200
+ /**
6201
+ * Load a SearchSubmatch from its ID.
6202
+ */
6203
+ loadSearchSubmatchFromID = (id) => {
6204
+ const ctx = this._ctx.select("loadSearchSubmatchFromID", { id });
6205
+ return new SearchSubmatch(ctx);
6206
+ };
5833
6207
  /**
5834
6208
  * Load a Secret from its ID.
5835
6209
  */
@@ -6051,6 +6425,147 @@ export class ScalarTypeDef extends BaseClient {
6051
6425
  return response;
6052
6426
  };
6053
6427
  }
6428
+ export class SearchResult extends BaseClient {
6429
+ _id = undefined;
6430
+ _absoluteOffset = undefined;
6431
+ _filePath = undefined;
6432
+ _lineNumber = undefined;
6433
+ _matchedLines = undefined;
6434
+ /**
6435
+ * Constructor is used for internal usage only, do not create object from it.
6436
+ */
6437
+ constructor(ctx, _id, _absoluteOffset, _filePath, _lineNumber, _matchedLines) {
6438
+ super(ctx);
6439
+ this._id = _id;
6440
+ this._absoluteOffset = _absoluteOffset;
6441
+ this._filePath = _filePath;
6442
+ this._lineNumber = _lineNumber;
6443
+ this._matchedLines = _matchedLines;
6444
+ }
6445
+ /**
6446
+ * A unique identifier for this SearchResult.
6447
+ */
6448
+ id = async () => {
6449
+ if (this._id) {
6450
+ return this._id;
6451
+ }
6452
+ const ctx = this._ctx.select("id");
6453
+ const response = await ctx.execute();
6454
+ return response;
6455
+ };
6456
+ /**
6457
+ * The byte offset of this line within the file.
6458
+ */
6459
+ absoluteOffset = async () => {
6460
+ if (this._absoluteOffset) {
6461
+ return this._absoluteOffset;
6462
+ }
6463
+ const ctx = this._ctx.select("absoluteOffset");
6464
+ const response = await ctx.execute();
6465
+ return response;
6466
+ };
6467
+ /**
6468
+ * The path to the file that matched.
6469
+ */
6470
+ filePath = async () => {
6471
+ if (this._filePath) {
6472
+ return this._filePath;
6473
+ }
6474
+ const ctx = this._ctx.select("filePath");
6475
+ const response = await ctx.execute();
6476
+ return response;
6477
+ };
6478
+ /**
6479
+ * The first line that matched.
6480
+ */
6481
+ lineNumber = async () => {
6482
+ if (this._lineNumber) {
6483
+ return this._lineNumber;
6484
+ }
6485
+ const ctx = this._ctx.select("lineNumber");
6486
+ const response = await ctx.execute();
6487
+ return response;
6488
+ };
6489
+ /**
6490
+ * The line content that matched.
6491
+ */
6492
+ matchedLines = async () => {
6493
+ if (this._matchedLines) {
6494
+ return this._matchedLines;
6495
+ }
6496
+ const ctx = this._ctx.select("matchedLines");
6497
+ const response = await ctx.execute();
6498
+ return response;
6499
+ };
6500
+ /**
6501
+ * Sub-match positions and content within the matched lines.
6502
+ */
6503
+ submatches = async () => {
6504
+ const ctx = this._ctx.select("submatches").select("id");
6505
+ const response = await ctx.execute();
6506
+ return response.map((r) => new Client(ctx.copy()).loadSearchSubmatchFromID(r.id));
6507
+ };
6508
+ }
6509
+ export class SearchSubmatch extends BaseClient {
6510
+ _id = undefined;
6511
+ _end = undefined;
6512
+ _start = undefined;
6513
+ _text = undefined;
6514
+ /**
6515
+ * Constructor is used for internal usage only, do not create object from it.
6516
+ */
6517
+ constructor(ctx, _id, _end, _start, _text) {
6518
+ super(ctx);
6519
+ this._id = _id;
6520
+ this._end = _end;
6521
+ this._start = _start;
6522
+ this._text = _text;
6523
+ }
6524
+ /**
6525
+ * A unique identifier for this SearchSubmatch.
6526
+ */
6527
+ id = async () => {
6528
+ if (this._id) {
6529
+ return this._id;
6530
+ }
6531
+ const ctx = this._ctx.select("id");
6532
+ const response = await ctx.execute();
6533
+ return response;
6534
+ };
6535
+ /**
6536
+ * The match's end offset within the matched lines.
6537
+ */
6538
+ end = async () => {
6539
+ if (this._end) {
6540
+ return this._end;
6541
+ }
6542
+ const ctx = this._ctx.select("end");
6543
+ const response = await ctx.execute();
6544
+ return response;
6545
+ };
6546
+ /**
6547
+ * The match's start offset within the matched lines.
6548
+ */
6549
+ start = async () => {
6550
+ if (this._start) {
6551
+ return this._start;
6552
+ }
6553
+ const ctx = this._ctx.select("start");
6554
+ const response = await ctx.execute();
6555
+ return response;
6556
+ };
6557
+ /**
6558
+ * The matched text.
6559
+ */
6560
+ text = async () => {
6561
+ if (this._text) {
6562
+ return this._text;
6563
+ }
6564
+ const ctx = this._ctx.select("text");
6565
+ const response = await ctx.execute();
6566
+ return response;
6567
+ };
6568
+ }
6054
6569
  /**
6055
6570
  * A reference to a secret value, which can be handled more safely than the value itself.
6056
6571
  */
@@ -6123,17 +6638,19 @@ export class Service extends BaseClient {
6123
6638
  _hostname = undefined;
6124
6639
  _start = undefined;
6125
6640
  _stop = undefined;
6641
+ _sync = undefined;
6126
6642
  _up = undefined;
6127
6643
  /**
6128
6644
  * Constructor is used for internal usage only, do not create object from it.
6129
6645
  */
6130
- constructor(ctx, _id, _endpoint, _hostname, _start, _stop, _up) {
6646
+ constructor(ctx, _id, _endpoint, _hostname, _start, _stop, _sync, _up) {
6131
6647
  super(ctx);
6132
6648
  this._id = _id;
6133
6649
  this._endpoint = _endpoint;
6134
6650
  this._hostname = _hostname;
6135
6651
  this._start = _start;
6136
6652
  this._stop = _stop;
6653
+ this._sync = _sync;
6137
6654
  this._up = _up;
6138
6655
  }
6139
6656
  /**
@@ -6202,6 +6719,18 @@ export class Service extends BaseClient {
6202
6719
  const response = await ctx.execute();
6203
6720
  return new Client(ctx.copy()).loadServiceFromID(response);
6204
6721
  };
6722
+ /**
6723
+ * Forces evaluation of the pipeline in the engine.
6724
+ */
6725
+ sync = async () => {
6726
+ const ctx = this._ctx.select("sync");
6727
+ const response = await ctx.execute();
6728
+ return new Client(ctx.copy()).loadServiceFromID(response);
6729
+ };
6730
+ terminal = (opts) => {
6731
+ const ctx = this._ctx.select("terminal", { ...opts });
6732
+ return new Service(ctx);
6733
+ };
6205
6734
  /**
6206
6735
  * Creates a tunnel that forwards traffic from the caller's network to this service.
6207
6736
  * @param opts.ports List of frontend/backend port mappings to forward.
@@ -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,gFAkC2rC,CAAC,8BAlC5qC,CAAA;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,qEAAiB,CAAA;AAEnC;;;GAGG;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,gFAkCitC,CAAC,8BAlClsC,CAAA;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,qEAAiB,CAAA;AAEnC;;;GAGG;AACH,eAAO,MAAM,QAAQ,wEAAoB,CAAA;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,yIAAoB,CAAA"}