@archildata/api-types 0.0.67 → 0.0.69
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/index.d.ts +66 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3042,7 +3042,9 @@ export interface components {
|
|
|
3042
3042
|
*/
|
|
3043
3043
|
directory: string;
|
|
3044
3044
|
/**
|
|
3045
|
-
* @description Regular expression in ripgrep syntax. A newline separates
|
|
3045
|
+
* @description Regular expression in ripgrep syntax. A newline separates
|
|
3046
|
+
* alternative patterns, except with `multiline`, where it matches a
|
|
3047
|
+
* line break.
|
|
3046
3048
|
* @example ERROR|FATAL
|
|
3047
3049
|
*/
|
|
3048
3050
|
pattern: string;
|
|
@@ -3076,6 +3078,18 @@ export interface components {
|
|
|
3076
3078
|
maxResults: number;
|
|
3077
3079
|
/** @description Match the pattern case-insensitively (`rg -i`). Defaults to false. */
|
|
3078
3080
|
ignoreCase?: boolean;
|
|
3081
|
+
/**
|
|
3082
|
+
* @description Let a match span lines (`rg -U`): `\n` or a newline character in
|
|
3083
|
+
* the pattern matches a line break, and `.` matches one only after
|
|
3084
|
+
* `(?s)`. Files with Windows line endings need `\r?\n` instead of
|
|
3085
|
+
* `\n`. Matches on adjacent lines come back as one match covering
|
|
3086
|
+
* all of them, and count once toward `maxResults`. A file with at
|
|
3087
|
+
* least `maxResults` matching lines stops the request with
|
|
3088
|
+
* `maxResults`, even when merging leaves fewer matches. A match cut
|
|
3089
|
+
* off by the 4 MiB output limit comes back shortened, and the
|
|
3090
|
+
* request reports `incomplete`. Defaults to false.
|
|
3091
|
+
*/
|
|
3092
|
+
multiline?: boolean;
|
|
3079
3093
|
/**
|
|
3080
3094
|
* @description Path globs with ripgrep's `-g` rules, matched against paths
|
|
3081
3095
|
* relative to `directory`. A leading `!` excludes. A glob without a
|
|
@@ -3109,6 +3123,36 @@ export interface components {
|
|
|
3109
3123
|
* ]
|
|
3110
3124
|
*/
|
|
3111
3125
|
typesNot?: string[];
|
|
3126
|
+
/**
|
|
3127
|
+
* @description Lines of context to return before each match (`rg -B`). When
|
|
3128
|
+
* either context field is set, the result includes `groups`.
|
|
3129
|
+
* @default 0
|
|
3130
|
+
*/
|
|
3131
|
+
contextBefore: number;
|
|
3132
|
+
/**
|
|
3133
|
+
* @description Lines of context to return after each match (`rg -A`). When
|
|
3134
|
+
* either context field is set, the result includes `groups`.
|
|
3135
|
+
* @default 0
|
|
3136
|
+
*/
|
|
3137
|
+
contextAfter: number;
|
|
3138
|
+
};
|
|
3139
|
+
/**
|
|
3140
|
+
* @description A run of consecutive lines from one file, as grep prints it with
|
|
3141
|
+
* context: each match with its surrounding lines, with nearby matches
|
|
3142
|
+
* merged into one group so every line appears once.
|
|
3143
|
+
*/
|
|
3144
|
+
GrepGroup: {
|
|
3145
|
+
/** @description Path to the file (relative to the disk root). */
|
|
3146
|
+
file: string;
|
|
3147
|
+
lines: components["schemas"]["GrepGroupLine"][];
|
|
3148
|
+
};
|
|
3149
|
+
GrepGroupLine: {
|
|
3150
|
+
/** @description 1-based line number. */
|
|
3151
|
+
line: number;
|
|
3152
|
+
/** @description The line, truncated like `GrepMatch.text`. */
|
|
3153
|
+
text: string;
|
|
3154
|
+
/** @description True for a matching line, false for a context line. */
|
|
3155
|
+
match: boolean;
|
|
3112
3156
|
};
|
|
3113
3157
|
GrepMatch: {
|
|
3114
3158
|
/**
|
|
@@ -3117,11 +3161,18 @@ export interface components {
|
|
|
3117
3161
|
*/
|
|
3118
3162
|
file: string;
|
|
3119
3163
|
/**
|
|
3120
|
-
* @description 1-based line number where the match occurred.
|
|
3164
|
+
* @description 1-based line number where the match occurred. With `multiline`,
|
|
3165
|
+
* the match's first line.
|
|
3121
3166
|
* @example 142
|
|
3122
3167
|
*/
|
|
3123
3168
|
line: number;
|
|
3124
|
-
/** @description
|
|
3169
|
+
/** @description With `multiline`, the 1-based number of the match's last line. */
|
|
3170
|
+
endLine?: number;
|
|
3171
|
+
/**
|
|
3172
|
+
* @description The matching line, truncated at 512 KiB, or shorter with context.
|
|
3173
|
+
* With `multiline`, every line the match covers, joined by `\n`,
|
|
3174
|
+
* each truncated separately.
|
|
3175
|
+
*/
|
|
3125
3176
|
text: string;
|
|
3126
3177
|
};
|
|
3127
3178
|
/**
|
|
@@ -3140,6 +3191,18 @@ export interface components {
|
|
|
3140
3191
|
GrepStoppedReason: "completed" | "incomplete" | "max_results" | "deadline" | "list_failed";
|
|
3141
3192
|
GrepDiskResult: {
|
|
3142
3193
|
matches: components["schemas"]["GrepMatch"][];
|
|
3194
|
+
/**
|
|
3195
|
+
* @description Matches with their context lines, grouped the way grep prints
|
|
3196
|
+
* them. Present only when `contextBefore` or `contextAfter` is set.
|
|
3197
|
+
* Holds the same matches as `matches`. When the search stops at
|
|
3198
|
+
* `maxResults`, the last group ends up to `contextAfter` lines
|
|
3199
|
+
* after its last kept match, and any matches in those lines are
|
|
3200
|
+
* shown as context, so `groups` holds exactly the matches in
|
|
3201
|
+
* `matches`. Each line of a group
|
|
3202
|
+
* counts toward the response size, so large context and
|
|
3203
|
+
* `maxResults` multiply it.
|
|
3204
|
+
*/
|
|
3205
|
+
groups?: components["schemas"]["GrepGroup"][];
|
|
3143
3206
|
stoppedReason: components["schemas"]["GrepStoppedReason"];
|
|
3144
3207
|
/** @description Files actually fed to a grep container. */
|
|
3145
3208
|
filesScanned: number;
|