@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.
- package/dist/src/api/client.gen.d.ts +421 -4
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +534 -5
- package/dist/src/module/decorators.d.ts.map +1 -1
- package/dist/src/module/entrypoint/register.d.ts.map +1 -1
- package/dist/src/module/entrypoint/register.js +2 -2
- package/dist/src/module/registry.d.ts +2 -2
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/package.json +2 -1
|
@@ -691,6 +691,52 @@ export type DirectoryFilterOpts = {
|
|
|
691
691
|
*/
|
|
692
692
|
include?: string[];
|
|
693
693
|
};
|
|
694
|
+
export type DirectorySearchOpts = {
|
|
695
|
+
/**
|
|
696
|
+
* Directory or file paths to search
|
|
697
|
+
*/
|
|
698
|
+
paths?: string[];
|
|
699
|
+
/**
|
|
700
|
+
* Glob patterns to match (e.g., "*.md")
|
|
701
|
+
*/
|
|
702
|
+
globs?: string[];
|
|
703
|
+
/**
|
|
704
|
+
* The text to match.
|
|
705
|
+
*/
|
|
706
|
+
pattern: string;
|
|
707
|
+
/**
|
|
708
|
+
* Interpret the pattern as a literal string instead of a regular expression.
|
|
709
|
+
*/
|
|
710
|
+
literal?: boolean;
|
|
711
|
+
/**
|
|
712
|
+
* Enable searching across multiple lines.
|
|
713
|
+
*/
|
|
714
|
+
multiline?: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* Allow the . pattern to match newlines in multiline mode.
|
|
717
|
+
*/
|
|
718
|
+
dotall?: boolean;
|
|
719
|
+
/**
|
|
720
|
+
* Enable case-insensitive matching.
|
|
721
|
+
*/
|
|
722
|
+
insensitive?: boolean;
|
|
723
|
+
/**
|
|
724
|
+
* Honor .gitignore, .ignore, and .rgignore files.
|
|
725
|
+
*/
|
|
726
|
+
skipIgnored?: boolean;
|
|
727
|
+
/**
|
|
728
|
+
* Skip hidden files (files starting with .).
|
|
729
|
+
*/
|
|
730
|
+
skipHidden?: boolean;
|
|
731
|
+
/**
|
|
732
|
+
* Only return matching files, not lines and content
|
|
733
|
+
*/
|
|
734
|
+
filesOnly?: boolean;
|
|
735
|
+
/**
|
|
736
|
+
* Limit the number of results to return
|
|
737
|
+
*/
|
|
738
|
+
limit?: number;
|
|
739
|
+
};
|
|
694
740
|
export type DirectoryTerminalOpts = {
|
|
695
741
|
/**
|
|
696
742
|
* If set, override the default container used for the terminal.
|
|
@@ -841,6 +887,16 @@ export declare enum ExistsType {
|
|
|
841
887
|
export type FieldTypeDefID = string & {
|
|
842
888
|
__FieldTypeDefID: never;
|
|
843
889
|
};
|
|
890
|
+
export type FileContentsOpts = {
|
|
891
|
+
/**
|
|
892
|
+
* Start reading after this line
|
|
893
|
+
*/
|
|
894
|
+
offsetLines?: number;
|
|
895
|
+
/**
|
|
896
|
+
* Maximum number of lines to read
|
|
897
|
+
*/
|
|
898
|
+
limitLines?: number;
|
|
899
|
+
};
|
|
844
900
|
export type FileDigestOpts = {
|
|
845
901
|
/**
|
|
846
902
|
* If true, exclude metadata from the digest.
|
|
@@ -853,6 +909,52 @@ export type FileExportOpts = {
|
|
|
853
909
|
*/
|
|
854
910
|
allowParentDirPath?: boolean;
|
|
855
911
|
};
|
|
912
|
+
export type FileSearchOpts = {
|
|
913
|
+
/**
|
|
914
|
+
* Interpret the pattern as a literal string instead of a regular expression.
|
|
915
|
+
*/
|
|
916
|
+
literal?: boolean;
|
|
917
|
+
/**
|
|
918
|
+
* Enable searching across multiple lines.
|
|
919
|
+
*/
|
|
920
|
+
multiline?: boolean;
|
|
921
|
+
/**
|
|
922
|
+
* Allow the . pattern to match newlines in multiline mode.
|
|
923
|
+
*/
|
|
924
|
+
dotall?: boolean;
|
|
925
|
+
/**
|
|
926
|
+
* Enable case-insensitive matching.
|
|
927
|
+
*/
|
|
928
|
+
insensitive?: boolean;
|
|
929
|
+
/**
|
|
930
|
+
* Honor .gitignore, .ignore, and .rgignore files.
|
|
931
|
+
*/
|
|
932
|
+
skipIgnored?: boolean;
|
|
933
|
+
/**
|
|
934
|
+
* Skip hidden files (files starting with .).
|
|
935
|
+
*/
|
|
936
|
+
skipHidden?: boolean;
|
|
937
|
+
/**
|
|
938
|
+
* Only return matching files, not lines and content
|
|
939
|
+
*/
|
|
940
|
+
filesOnly?: boolean;
|
|
941
|
+
/**
|
|
942
|
+
* Limit the number of results to return
|
|
943
|
+
*/
|
|
944
|
+
limit?: number;
|
|
945
|
+
paths?: string[];
|
|
946
|
+
globs?: string[];
|
|
947
|
+
};
|
|
948
|
+
export type FileWithReplacedOpts = {
|
|
949
|
+
/**
|
|
950
|
+
* Replace all occurrences of the pattern.
|
|
951
|
+
*/
|
|
952
|
+
all?: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* Replace the first match starting from the specified line.
|
|
955
|
+
*/
|
|
956
|
+
firstFrom?: number;
|
|
957
|
+
};
|
|
856
958
|
/**
|
|
857
959
|
* The `FileID` scalar type represents an identifier for an object of type File.
|
|
858
960
|
*/
|
|
@@ -958,6 +1060,10 @@ export type HostDirectoryOpts = {
|
|
|
958
1060
|
* If true, the directory will always be reloaded from the host.
|
|
959
1061
|
*/
|
|
960
1062
|
noCache?: boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* Don't apply .gitignore filter rules inside the directory
|
|
1065
|
+
*/
|
|
1066
|
+
noGitAutoIgnore?: boolean;
|
|
961
1067
|
};
|
|
962
1068
|
export type HostFileOpts = {
|
|
963
1069
|
/**
|
|
@@ -1032,6 +1138,22 @@ export type InterfaceTypeDefID = string & {
|
|
|
1032
1138
|
export type JSON = string & {
|
|
1033
1139
|
__JSON: never;
|
|
1034
1140
|
};
|
|
1141
|
+
export type JSONValueContentsOpts = {
|
|
1142
|
+
/**
|
|
1143
|
+
* Pretty-print
|
|
1144
|
+
*/
|
|
1145
|
+
pretty?: boolean;
|
|
1146
|
+
/**
|
|
1147
|
+
* Optional line prefix
|
|
1148
|
+
*/
|
|
1149
|
+
indent?: string;
|
|
1150
|
+
};
|
|
1151
|
+
/**
|
|
1152
|
+
* The `JSONValueID` scalar type represents an identifier for an object of type JSONValue.
|
|
1153
|
+
*/
|
|
1154
|
+
export type JSONValueID = string & {
|
|
1155
|
+
__JSONValueID: never;
|
|
1156
|
+
};
|
|
1035
1157
|
/**
|
|
1036
1158
|
* The `LLMID` scalar type represents an identifier for an object of type LLM.
|
|
1037
1159
|
*/
|
|
@@ -1279,6 +1401,18 @@ export type SDKConfigID = string & {
|
|
|
1279
1401
|
export type ScalarTypeDefID = string & {
|
|
1280
1402
|
__ScalarTypeDefID: never;
|
|
1281
1403
|
};
|
|
1404
|
+
/**
|
|
1405
|
+
* The `SearchResultID` scalar type represents an identifier for an object of type SearchResult.
|
|
1406
|
+
*/
|
|
1407
|
+
export type SearchResultID = string & {
|
|
1408
|
+
__SearchResultID: never;
|
|
1409
|
+
};
|
|
1410
|
+
/**
|
|
1411
|
+
* The `SearchSubmatchID` scalar type represents an identifier for an object of type SearchSubmatch.
|
|
1412
|
+
*/
|
|
1413
|
+
export type SearchSubmatchID = string & {
|
|
1414
|
+
__SearchSubmatchID: never;
|
|
1415
|
+
};
|
|
1282
1416
|
/**
|
|
1283
1417
|
* The `SecretID` scalar type represents an identifier for an object of type Secret.
|
|
1284
1418
|
*/
|
|
@@ -1301,6 +1435,9 @@ export type ServiceStopOpts = {
|
|
|
1301
1435
|
*/
|
|
1302
1436
|
kill?: boolean;
|
|
1303
1437
|
};
|
|
1438
|
+
export type ServiceTerminalOpts = {
|
|
1439
|
+
cmd?: string[];
|
|
1440
|
+
};
|
|
1304
1441
|
export type ServiceUpOpts = {
|
|
1305
1442
|
/**
|
|
1306
1443
|
* List of frontend/backend port mappings to forward.
|
|
@@ -1581,6 +1718,10 @@ export declare class Binding extends BaseClient {
|
|
|
1581
1718
|
* Retrieve the binding value, as type GitRepository
|
|
1582
1719
|
*/
|
|
1583
1720
|
asGitRepository: () => GitRepository;
|
|
1721
|
+
/**
|
|
1722
|
+
* Retrieve the binding value, as type JSONValue
|
|
1723
|
+
*/
|
|
1724
|
+
asJSONValue: () => JSONValue;
|
|
1584
1725
|
/**
|
|
1585
1726
|
* Retrieve the binding value, as type LLM
|
|
1586
1727
|
*/
|
|
@@ -1597,6 +1738,14 @@ export declare class Binding extends BaseClient {
|
|
|
1597
1738
|
* Retrieve the binding value, as type ModuleSource
|
|
1598
1739
|
*/
|
|
1599
1740
|
asModuleSource: () => ModuleSource;
|
|
1741
|
+
/**
|
|
1742
|
+
* Retrieve the binding value, as type SearchResult
|
|
1743
|
+
*/
|
|
1744
|
+
asSearchResult: () => SearchResult;
|
|
1745
|
+
/**
|
|
1746
|
+
* Retrieve the binding value, as type SearchSubmatch
|
|
1747
|
+
*/
|
|
1748
|
+
asSearchSubmatch: () => SearchSubmatch;
|
|
1600
1749
|
/**
|
|
1601
1750
|
* Retrieve the binding value, as type Secret
|
|
1602
1751
|
*/
|
|
@@ -1668,6 +1817,7 @@ export declare class Cloud extends BaseClient {
|
|
|
1668
1817
|
*/
|
|
1669
1818
|
export declare class Container extends BaseClient {
|
|
1670
1819
|
private readonly _id?;
|
|
1820
|
+
private readonly _combinedOutput?;
|
|
1671
1821
|
private readonly _envVariable?;
|
|
1672
1822
|
private readonly _exists?;
|
|
1673
1823
|
private readonly _exitCode?;
|
|
@@ -1686,7 +1836,7 @@ export declare class Container extends BaseClient {
|
|
|
1686
1836
|
/**
|
|
1687
1837
|
* Constructor is used for internal usage only, do not create object from it.
|
|
1688
1838
|
*/
|
|
1689
|
-
constructor(ctx?: Context, _id?: ContainerID, _envVariable?: string, _exists?: boolean, _exitCode?: number, _export?: string, _exportImage?: Void, _imageRef?: string, _label?: string, _platform?: Platform, _publish?: string, _stderr?: string, _stdout?: string, _sync?: ContainerID, _up?: Void, _user?: string, _workdir?: string);
|
|
1839
|
+
constructor(ctx?: Context, _id?: ContainerID, _combinedOutput?: string, _envVariable?: string, _exists?: boolean, _exitCode?: number, _export?: string, _exportImage?: Void, _imageRef?: string, _label?: string, _platform?: Platform, _publish?: string, _stderr?: string, _stdout?: string, _sync?: ContainerID, _up?: Void, _user?: string, _workdir?: string);
|
|
1690
1840
|
/**
|
|
1691
1841
|
* A unique identifier for this Container.
|
|
1692
1842
|
*/
|
|
@@ -1737,6 +1887,12 @@ export declare class Container extends BaseClient {
|
|
|
1737
1887
|
* @deprecated Use `Directory.build` instead
|
|
1738
1888
|
*/
|
|
1739
1889
|
build: (context: Directory, opts?: ContainerBuildOpts) => Container;
|
|
1890
|
+
/**
|
|
1891
|
+
* The combined buffered standard output and standard error stream of the last executed command
|
|
1892
|
+
*
|
|
1893
|
+
* Returns an error if no command was executed
|
|
1894
|
+
*/
|
|
1895
|
+
combinedOutput: () => Promise<string>;
|
|
1740
1896
|
/**
|
|
1741
1897
|
* Return the container's default arguments.
|
|
1742
1898
|
*/
|
|
@@ -2423,6 +2579,23 @@ export declare class Directory extends BaseClient {
|
|
|
2423
2579
|
* Returns the name of the directory.
|
|
2424
2580
|
*/
|
|
2425
2581
|
name: () => Promise<string>;
|
|
2582
|
+
/**
|
|
2583
|
+
* Searches for content matching the given regular expression or literal string.
|
|
2584
|
+
*
|
|
2585
|
+
* Uses Rust regex syntax; escape literal ., [, ], {, }, | with backslashes.
|
|
2586
|
+
* @param opts.paths Directory or file paths to search
|
|
2587
|
+
* @param opts.globs Glob patterns to match (e.g., "*.md")
|
|
2588
|
+
* @param opts.pattern The text to match.
|
|
2589
|
+
* @param opts.literal Interpret the pattern as a literal string instead of a regular expression.
|
|
2590
|
+
* @param opts.multiline Enable searching across multiple lines.
|
|
2591
|
+
* @param opts.dotall Allow the . pattern to match newlines in multiline mode.
|
|
2592
|
+
* @param opts.insensitive Enable case-insensitive matching.
|
|
2593
|
+
* @param opts.skipIgnored Honor .gitignore, .ignore, and .rgignore files.
|
|
2594
|
+
* @param opts.skipHidden Skip hidden files (files starting with .).
|
|
2595
|
+
* @param opts.filesOnly Only return matching files, not lines and content
|
|
2596
|
+
* @param opts.limit Limit the number of results to return
|
|
2597
|
+
*/
|
|
2598
|
+
search: (opts?: DirectorySearchOpts) => Promise<SearchResult[]>;
|
|
2426
2599
|
/**
|
|
2427
2600
|
* Force evaluation in the engine.
|
|
2428
2601
|
*/
|
|
@@ -2850,6 +3023,19 @@ export declare class Env extends BaseClient {
|
|
|
2850
3023
|
* @param description A description of the desired value of the binding
|
|
2851
3024
|
*/
|
|
2852
3025
|
withGitRepositoryOutput: (name: string, description: string) => Env;
|
|
3026
|
+
/**
|
|
3027
|
+
* Create or update a binding of type JSONValue in the environment
|
|
3028
|
+
* @param name The name of the binding
|
|
3029
|
+
* @param value The JSONValue value to assign to the binding
|
|
3030
|
+
* @param description The purpose of the input
|
|
3031
|
+
*/
|
|
3032
|
+
withJSONValueInput: (name: string, value: JSONValue, description: string) => Env;
|
|
3033
|
+
/**
|
|
3034
|
+
* Declare a desired JSONValue output to be assigned in the environment
|
|
3035
|
+
* @param name The name of the binding
|
|
3036
|
+
* @param description A description of the desired value of the binding
|
|
3037
|
+
*/
|
|
3038
|
+
withJSONValueOutput: (name: string, description: string) => Env;
|
|
2853
3039
|
/**
|
|
2854
3040
|
* Create or update a binding of type LLM in the environment
|
|
2855
3041
|
* @param name The name of the binding
|
|
@@ -2902,6 +3088,32 @@ export declare class Env extends BaseClient {
|
|
|
2902
3088
|
* @param description A description of the desired value of the binding
|
|
2903
3089
|
*/
|
|
2904
3090
|
withModuleSourceOutput: (name: string, description: string) => Env;
|
|
3091
|
+
/**
|
|
3092
|
+
* Create or update a binding of type SearchResult in the environment
|
|
3093
|
+
* @param name The name of the binding
|
|
3094
|
+
* @param value The SearchResult value to assign to the binding
|
|
3095
|
+
* @param description The purpose of the input
|
|
3096
|
+
*/
|
|
3097
|
+
withSearchResultInput: (name: string, value: SearchResult, description: string) => Env;
|
|
3098
|
+
/**
|
|
3099
|
+
* Declare a desired SearchResult output to be assigned in the environment
|
|
3100
|
+
* @param name The name of the binding
|
|
3101
|
+
* @param description A description of the desired value of the binding
|
|
3102
|
+
*/
|
|
3103
|
+
withSearchResultOutput: (name: string, description: string) => Env;
|
|
3104
|
+
/**
|
|
3105
|
+
* Create or update a binding of type SearchSubmatch in the environment
|
|
3106
|
+
* @param name The name of the binding
|
|
3107
|
+
* @param value The SearchSubmatch value to assign to the binding
|
|
3108
|
+
* @param description The purpose of the input
|
|
3109
|
+
*/
|
|
3110
|
+
withSearchSubmatchInput: (name: string, value: SearchSubmatch, description: string) => Env;
|
|
3111
|
+
/**
|
|
3112
|
+
* Declare a desired SearchSubmatch output to be assigned in the environment
|
|
3113
|
+
* @param name The name of the binding
|
|
3114
|
+
* @param description A description of the desired value of the binding
|
|
3115
|
+
*/
|
|
3116
|
+
withSearchSubmatchOutput: (name: string, description: string) => Env;
|
|
2905
3117
|
/**
|
|
2906
3118
|
* Create or update a binding of type Secret in the environment
|
|
2907
3119
|
* @param name The name of the binding
|
|
@@ -3093,8 +3305,10 @@ export declare class File extends BaseClient {
|
|
|
3093
3305
|
id: () => Promise<FileID>;
|
|
3094
3306
|
/**
|
|
3095
3307
|
* Retrieves the contents of the file.
|
|
3308
|
+
* @param opts.offsetLines Start reading after this line
|
|
3309
|
+
* @param opts.limitLines Maximum number of lines to read
|
|
3096
3310
|
*/
|
|
3097
|
-
contents: () => Promise<string>;
|
|
3311
|
+
contents: (opts?: FileContentsOpts) => Promise<string>;
|
|
3098
3312
|
/**
|
|
3099
3313
|
* Return the file's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
|
|
3100
3314
|
* @param opts.excludeMetadata If true, exclude metadata from the digest.
|
|
@@ -3110,6 +3324,21 @@ export declare class File extends BaseClient {
|
|
|
3110
3324
|
* Retrieves the name of the file.
|
|
3111
3325
|
*/
|
|
3112
3326
|
name: () => Promise<string>;
|
|
3327
|
+
/**
|
|
3328
|
+
* Searches for content matching the given regular expression or literal string.
|
|
3329
|
+
*
|
|
3330
|
+
* Uses Rust regex syntax; escape literal ., [, ], {, }, | with backslashes.
|
|
3331
|
+
* @param pattern The text to match.
|
|
3332
|
+
* @param opts.literal Interpret the pattern as a literal string instead of a regular expression.
|
|
3333
|
+
* @param opts.multiline Enable searching across multiple lines.
|
|
3334
|
+
* @param opts.dotall Allow the . pattern to match newlines in multiline mode.
|
|
3335
|
+
* @param opts.insensitive Enable case-insensitive matching.
|
|
3336
|
+
* @param opts.skipIgnored Honor .gitignore, .ignore, and .rgignore files.
|
|
3337
|
+
* @param opts.skipHidden Skip hidden files (files starting with .).
|
|
3338
|
+
* @param opts.filesOnly Only return matching files, not lines and content
|
|
3339
|
+
* @param opts.limit Limit the number of results to return
|
|
3340
|
+
*/
|
|
3341
|
+
search: (pattern: string, opts?: FileSearchOpts) => Promise<SearchResult[]>;
|
|
3113
3342
|
/**
|
|
3114
3343
|
* Retrieves the size of the file, in bytes.
|
|
3115
3344
|
*/
|
|
@@ -3123,6 +3352,22 @@ export declare class File extends BaseClient {
|
|
|
3123
3352
|
* @param name Name to set file to.
|
|
3124
3353
|
*/
|
|
3125
3354
|
withName: (name: string) => File;
|
|
3355
|
+
/**
|
|
3356
|
+
* Retrieves the file with content replaced with the given text.
|
|
3357
|
+
*
|
|
3358
|
+
* If 'all' is true, all occurrences of the pattern will be replaced.
|
|
3359
|
+
*
|
|
3360
|
+
* If 'firstAfter' is specified, only the first match starting at the specified line will be replaced.
|
|
3361
|
+
*
|
|
3362
|
+
* If neither are specified, and there are multiple matches for the pattern, this will error.
|
|
3363
|
+
*
|
|
3364
|
+
* If there are no matches for the pattern, this will error.
|
|
3365
|
+
* @param search The text to match.
|
|
3366
|
+
* @param replacement The text to match.
|
|
3367
|
+
* @param opts.all Replace all occurrences of the pattern.
|
|
3368
|
+
* @param opts.firstFrom Replace the first match starting from the specified line.
|
|
3369
|
+
*/
|
|
3370
|
+
withReplaced: (search: string, replacement: string, opts?: FileWithReplacedOpts) => File;
|
|
3126
3371
|
/**
|
|
3127
3372
|
* Retrieves this file with its created/modified timestamps set to the given time.
|
|
3128
3373
|
* @param timestamp Timestamp to set dir/files in.
|
|
@@ -3405,10 +3650,11 @@ export declare class GitRef extends BaseClient {
|
|
|
3405
3650
|
*/
|
|
3406
3651
|
export declare class GitRepository extends BaseClient {
|
|
3407
3652
|
private readonly _id?;
|
|
3653
|
+
private readonly _url?;
|
|
3408
3654
|
/**
|
|
3409
3655
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3410
3656
|
*/
|
|
3411
|
-
constructor(ctx?: Context, _id?: GitRepositoryID);
|
|
3657
|
+
constructor(ctx?: Context, _id?: GitRepositoryID, _url?: string);
|
|
3412
3658
|
/**
|
|
3413
3659
|
* A unique identifier for this GitRepository.
|
|
3414
3660
|
*/
|
|
@@ -3451,6 +3697,10 @@ export declare class GitRepository extends BaseClient {
|
|
|
3451
3697
|
* @param opts.patterns Glob patterns (e.g., "refs/tags/v*").
|
|
3452
3698
|
*/
|
|
3453
3699
|
tags: (opts?: GitRepositoryTagsOpts) => Promise<string[]>;
|
|
3700
|
+
/**
|
|
3701
|
+
* The URL of the git repository.
|
|
3702
|
+
*/
|
|
3703
|
+
url: () => Promise<string>;
|
|
3454
3704
|
/**
|
|
3455
3705
|
* Header to authenticate the remote with.
|
|
3456
3706
|
* @param header Secret used to populate the Authorization HTTP header
|
|
@@ -3483,12 +3733,18 @@ export declare class Host extends BaseClient {
|
|
|
3483
3733
|
* A unique identifier for this Host.
|
|
3484
3734
|
*/
|
|
3485
3735
|
id: () => Promise<HostID>;
|
|
3736
|
+
/**
|
|
3737
|
+
* Accesses a container image on the host.
|
|
3738
|
+
* @param name Name of the image to access.
|
|
3739
|
+
*/
|
|
3740
|
+
containerImage: (name: string) => Container;
|
|
3486
3741
|
/**
|
|
3487
3742
|
* Accesses a directory on the host.
|
|
3488
3743
|
* @param path Location of the directory to access (e.g., ".").
|
|
3489
3744
|
* @param opts.exclude Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
|
|
3490
3745
|
* @param opts.include Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
|
|
3491
3746
|
* @param opts.noCache If true, the directory will always be reloaded from the host.
|
|
3747
|
+
* @param opts.noGitAutoIgnore Don't apply .gitignore filter rules inside the directory
|
|
3492
3748
|
*/
|
|
3493
3749
|
directory: (path: string, opts?: HostDirectoryOpts) => Directory;
|
|
3494
3750
|
/**
|
|
@@ -3600,6 +3856,84 @@ export declare class InterfaceTypeDef extends BaseClient {
|
|
|
3600
3856
|
*/
|
|
3601
3857
|
sourceModuleName: () => Promise<string>;
|
|
3602
3858
|
}
|
|
3859
|
+
export declare class JSONValue extends BaseClient {
|
|
3860
|
+
private readonly _id?;
|
|
3861
|
+
private readonly _asBoolean?;
|
|
3862
|
+
private readonly _asInteger?;
|
|
3863
|
+
private readonly _asString?;
|
|
3864
|
+
private readonly _contents?;
|
|
3865
|
+
/**
|
|
3866
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
3867
|
+
*/
|
|
3868
|
+
constructor(ctx?: Context, _id?: JSONValueID, _asBoolean?: boolean, _asInteger?: number, _asString?: string, _contents?: JSON);
|
|
3869
|
+
/**
|
|
3870
|
+
* A unique identifier for this JSONValue.
|
|
3871
|
+
*/
|
|
3872
|
+
id: () => Promise<JSONValueID>;
|
|
3873
|
+
/**
|
|
3874
|
+
* Decode an array from json
|
|
3875
|
+
*/
|
|
3876
|
+
asArray: () => Promise<JSONValue[]>;
|
|
3877
|
+
/**
|
|
3878
|
+
* Decode a boolean from json
|
|
3879
|
+
*/
|
|
3880
|
+
asBoolean: () => Promise<boolean>;
|
|
3881
|
+
/**
|
|
3882
|
+
* Decode an integer from json
|
|
3883
|
+
*/
|
|
3884
|
+
asInteger: () => Promise<number>;
|
|
3885
|
+
/**
|
|
3886
|
+
* Decode a string from json
|
|
3887
|
+
*/
|
|
3888
|
+
asString: () => Promise<string>;
|
|
3889
|
+
/**
|
|
3890
|
+
* Return the value encoded as json
|
|
3891
|
+
* @param opts.pretty Pretty-print
|
|
3892
|
+
* @param opts.indent Optional line prefix
|
|
3893
|
+
*/
|
|
3894
|
+
contents: (opts?: JSONValueContentsOpts) => Promise<JSON>;
|
|
3895
|
+
/**
|
|
3896
|
+
* Lookup the field at the given path, and return its value.
|
|
3897
|
+
* @param path Path of the field to lookup, encoded as an array of field names
|
|
3898
|
+
*/
|
|
3899
|
+
field: (path: string[]) => JSONValue;
|
|
3900
|
+
/**
|
|
3901
|
+
* List fields of the encoded object
|
|
3902
|
+
*/
|
|
3903
|
+
fields: () => Promise<string[]>;
|
|
3904
|
+
/**
|
|
3905
|
+
* Encode a boolean to json
|
|
3906
|
+
* @param value New boolean value
|
|
3907
|
+
*/
|
|
3908
|
+
newBoolean: (value: boolean) => JSONValue;
|
|
3909
|
+
/**
|
|
3910
|
+
* Encode an integer to json
|
|
3911
|
+
* @param value New integer value
|
|
3912
|
+
*/
|
|
3913
|
+
newInteger: (value: number) => JSONValue;
|
|
3914
|
+
/**
|
|
3915
|
+
* Encode a string to json
|
|
3916
|
+
* @param value New string value
|
|
3917
|
+
*/
|
|
3918
|
+
newString: (value: string) => JSONValue;
|
|
3919
|
+
/**
|
|
3920
|
+
* Return a new json value, decoded from the given content
|
|
3921
|
+
* @param contents New JSON-encoded contents
|
|
3922
|
+
*/
|
|
3923
|
+
withContents: (contents: JSON) => JSONValue;
|
|
3924
|
+
/**
|
|
3925
|
+
* Set a new field at the given path
|
|
3926
|
+
* @param path Path of the field to set, encoded as an array of field names
|
|
3927
|
+
* @param value The new value of the field
|
|
3928
|
+
*/
|
|
3929
|
+
withField: (path: string[], value: JSONValue) => JSONValue;
|
|
3930
|
+
/**
|
|
3931
|
+
* Call the provided function with current JSONValue.
|
|
3932
|
+
*
|
|
3933
|
+
* This is useful for reusability and readability by not breaking the calling chain.
|
|
3934
|
+
*/
|
|
3935
|
+
with: (arg: (param: JSONValue) => JSONValue) => JSONValue;
|
|
3936
|
+
}
|
|
3603
3937
|
export declare class LLM extends BaseClient {
|
|
3604
3938
|
private readonly _id?;
|
|
3605
3939
|
private readonly _historyJSON?;
|
|
@@ -4283,6 +4617,10 @@ export declare class Client extends BaseClient {
|
|
|
4283
4617
|
* @param opts.experimentalServiceHost A service which must be started before the URL is fetched.
|
|
4284
4618
|
*/
|
|
4285
4619
|
http: (url: string, opts?: ClientHttpOpts) => File;
|
|
4620
|
+
/**
|
|
4621
|
+
* Initialize a JSON value
|
|
4622
|
+
*/
|
|
4623
|
+
json: () => JSONValue;
|
|
4286
4624
|
/**
|
|
4287
4625
|
* Initialize a Large Language Model (LLM)
|
|
4288
4626
|
* @param opts.model Model to use
|
|
@@ -4402,6 +4740,10 @@ export declare class Client extends BaseClient {
|
|
|
4402
4740
|
* Load a InterfaceTypeDef from its ID.
|
|
4403
4741
|
*/
|
|
4404
4742
|
loadInterfaceTypeDefFromID: (id: InterfaceTypeDefID) => InterfaceTypeDef;
|
|
4743
|
+
/**
|
|
4744
|
+
* Load a JSONValue from its ID.
|
|
4745
|
+
*/
|
|
4746
|
+
loadJSONValueFromID: (id: JSONValueID) => JSONValue;
|
|
4405
4747
|
/**
|
|
4406
4748
|
* Load a LLM from its ID.
|
|
4407
4749
|
*/
|
|
@@ -4446,6 +4788,14 @@ export declare class Client extends BaseClient {
|
|
|
4446
4788
|
* Load a ScalarTypeDef from its ID.
|
|
4447
4789
|
*/
|
|
4448
4790
|
loadScalarTypeDefFromID: (id: ScalarTypeDefID) => ScalarTypeDef;
|
|
4791
|
+
/**
|
|
4792
|
+
* Load a SearchResult from its ID.
|
|
4793
|
+
*/
|
|
4794
|
+
loadSearchResultFromID: (id: SearchResultID) => SearchResult;
|
|
4795
|
+
/**
|
|
4796
|
+
* Load a SearchSubmatch from its ID.
|
|
4797
|
+
*/
|
|
4798
|
+
loadSearchSubmatchFromID: (id: SearchSubmatchID) => SearchSubmatch;
|
|
4449
4799
|
/**
|
|
4450
4800
|
* Load a Secret from its ID.
|
|
4451
4801
|
*/
|
|
@@ -4565,6 +4915,67 @@ export declare class ScalarTypeDef extends BaseClient {
|
|
|
4565
4915
|
*/
|
|
4566
4916
|
sourceModuleName: () => Promise<string>;
|
|
4567
4917
|
}
|
|
4918
|
+
export declare class SearchResult extends BaseClient {
|
|
4919
|
+
private readonly _id?;
|
|
4920
|
+
private readonly _absoluteOffset?;
|
|
4921
|
+
private readonly _filePath?;
|
|
4922
|
+
private readonly _lineNumber?;
|
|
4923
|
+
private readonly _matchedLines?;
|
|
4924
|
+
/**
|
|
4925
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
4926
|
+
*/
|
|
4927
|
+
constructor(ctx?: Context, _id?: SearchResultID, _absoluteOffset?: number, _filePath?: string, _lineNumber?: number, _matchedLines?: string);
|
|
4928
|
+
/**
|
|
4929
|
+
* A unique identifier for this SearchResult.
|
|
4930
|
+
*/
|
|
4931
|
+
id: () => Promise<SearchResultID>;
|
|
4932
|
+
/**
|
|
4933
|
+
* The byte offset of this line within the file.
|
|
4934
|
+
*/
|
|
4935
|
+
absoluteOffset: () => Promise<number>;
|
|
4936
|
+
/**
|
|
4937
|
+
* The path to the file that matched.
|
|
4938
|
+
*/
|
|
4939
|
+
filePath: () => Promise<string>;
|
|
4940
|
+
/**
|
|
4941
|
+
* The first line that matched.
|
|
4942
|
+
*/
|
|
4943
|
+
lineNumber: () => Promise<number>;
|
|
4944
|
+
/**
|
|
4945
|
+
* The line content that matched.
|
|
4946
|
+
*/
|
|
4947
|
+
matchedLines: () => Promise<string>;
|
|
4948
|
+
/**
|
|
4949
|
+
* Sub-match positions and content within the matched lines.
|
|
4950
|
+
*/
|
|
4951
|
+
submatches: () => Promise<SearchSubmatch[]>;
|
|
4952
|
+
}
|
|
4953
|
+
export declare class SearchSubmatch extends BaseClient {
|
|
4954
|
+
private readonly _id?;
|
|
4955
|
+
private readonly _end?;
|
|
4956
|
+
private readonly _start?;
|
|
4957
|
+
private readonly _text?;
|
|
4958
|
+
/**
|
|
4959
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
4960
|
+
*/
|
|
4961
|
+
constructor(ctx?: Context, _id?: SearchSubmatchID, _end?: number, _start?: number, _text?: string);
|
|
4962
|
+
/**
|
|
4963
|
+
* A unique identifier for this SearchSubmatch.
|
|
4964
|
+
*/
|
|
4965
|
+
id: () => Promise<SearchSubmatchID>;
|
|
4966
|
+
/**
|
|
4967
|
+
* The match's end offset within the matched lines.
|
|
4968
|
+
*/
|
|
4969
|
+
end: () => Promise<number>;
|
|
4970
|
+
/**
|
|
4971
|
+
* The match's start offset within the matched lines.
|
|
4972
|
+
*/
|
|
4973
|
+
start: () => Promise<number>;
|
|
4974
|
+
/**
|
|
4975
|
+
* The matched text.
|
|
4976
|
+
*/
|
|
4977
|
+
text: () => Promise<string>;
|
|
4978
|
+
}
|
|
4568
4979
|
/**
|
|
4569
4980
|
* A reference to a secret value, which can be handled more safely than the value itself.
|
|
4570
4981
|
*/
|
|
@@ -4603,11 +5014,12 @@ export declare class Service extends BaseClient {
|
|
|
4603
5014
|
private readonly _hostname?;
|
|
4604
5015
|
private readonly _start?;
|
|
4605
5016
|
private readonly _stop?;
|
|
5017
|
+
private readonly _sync?;
|
|
4606
5018
|
private readonly _up?;
|
|
4607
5019
|
/**
|
|
4608
5020
|
* Constructor is used for internal usage only, do not create object from it.
|
|
4609
5021
|
*/
|
|
4610
|
-
constructor(ctx?: Context, _id?: ServiceID, _endpoint?: string, _hostname?: string, _start?: ServiceID, _stop?: ServiceID, _up?: Void);
|
|
5022
|
+
constructor(ctx?: Context, _id?: ServiceID, _endpoint?: string, _hostname?: string, _start?: ServiceID, _stop?: ServiceID, _sync?: ServiceID, _up?: Void);
|
|
4611
5023
|
/**
|
|
4612
5024
|
* A unique identifier for this Service.
|
|
4613
5025
|
*/
|
|
@@ -4641,6 +5053,11 @@ export declare class Service extends BaseClient {
|
|
|
4641
5053
|
* @param opts.kill Immediately kill the service without waiting for a graceful exit
|
|
4642
5054
|
*/
|
|
4643
5055
|
stop: (opts?: ServiceStopOpts) => Promise<Service>;
|
|
5056
|
+
/**
|
|
5057
|
+
* Forces evaluation of the pipeline in the engine.
|
|
5058
|
+
*/
|
|
5059
|
+
sync: () => Promise<Service>;
|
|
5060
|
+
terminal: (opts?: ServiceTerminalOpts) => Service;
|
|
4644
5061
|
/**
|
|
4645
5062
|
* Creates a tunnel that forwards traffic from the caller's network to this service.
|
|
4646
5063
|
* @param opts.ports List of frontend/backend port mappings to forward.
|