@archildata/api-types 0.0.68 → 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.
Files changed (2) hide show
  1. package/index.d.ts +24 -3
  2. 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 alternative patterns.
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
@@ -3147,11 +3161,18 @@ export interface components {
3147
3161
  */
3148
3162
  file: string;
3149
3163
  /**
3150
- * @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.
3151
3166
  * @example 142
3152
3167
  */
3153
3168
  line: number;
3154
- /** @description The matching line, truncated at 512 KiB, or shorter with context. */
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
+ */
3155
3176
  text: string;
3156
3177
  };
3157
3178
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",