@lingo.dev/_spec 0.49.1 → 0.49.2

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.
@@ -3,8 +3,8 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "version": {
6
- "description": "The version number of the schema.",
7
6
  "default": 0,
7
+ "description": "The version number of the schema.",
8
8
  "anyOf": [
9
9
  {
10
10
  "type": "number"
@@ -18,15 +18,15 @@
18
18
  "type": "object",
19
19
  "properties": {
20
20
  "source": {
21
- "description": "Primary source locale code of your content (e.g. 'en', 'en-US', 'pt_BR', or 'pt-rBR'). Must be one of the supported locale codes – either a short ISO-639 language code or a full locale identifier using '-', '_' or Android '-r' notation.",
22
- "type": "string"
21
+ "type": "string",
22
+ "description": "Primary source locale code of your content (e.g. 'en', 'en-US', 'pt_BR', or 'pt-rBR'). Must be one of the supported locale codes – either a short ISO-639 language code or a full locale identifier using '-', '_' or Android '-r' notation."
23
23
  },
24
24
  "targets": {
25
- "description": "List of target locale codes to translate to.",
26
25
  "type": "array",
27
26
  "items": {
28
27
  "type": "string"
29
- }
28
+ },
29
+ "description": "List of target locale codes to translate to."
30
30
  },
31
31
  "extraSource": {
32
32
  "description": "Optional extra source locale code used as fallback during translation.",
@@ -85,8 +85,8 @@
85
85
  "type": "object",
86
86
  "properties": {
87
87
  "include": {
88
- "description": "Glob patterns or bucket items to include for this bucket.",
89
88
  "default": [],
89
+ "description": "Glob patterns or bucket items (supports ** for recursive matching) to include for this bucket.",
90
90
  "type": "array",
91
91
  "items": {
92
92
  "anyOf": [
@@ -94,12 +94,11 @@
94
94
  "type": "string"
95
95
  },
96
96
  {
97
- "description": "Bucket path item. Either a string path or an object specifying path and delimiter.",
98
97
  "type": "object",
99
98
  "properties": {
100
99
  "path": {
101
- "description": "Path pattern containing a [locale] placeholder.",
102
- "type": "string"
100
+ "type": "string",
101
+ "description": "Path pattern containing a [locale] placeholder."
103
102
  },
104
103
  "delimiter": {
105
104
  "description": "Delimiter that replaces the [locale] placeholder in the path (default: no delimiter).",
@@ -122,13 +121,14 @@
122
121
  "required": [
123
122
  "path"
124
123
  ],
125
- "additionalProperties": false
124
+ "additionalProperties": false,
125
+ "description": "Bucket path item. Either a string path or an object specifying path and delimiter."
126
126
  }
127
127
  ]
128
128
  }
129
129
  },
130
130
  "exclude": {
131
- "description": "Glob patterns or bucket items to exclude from this bucket.",
131
+ "description": "Glob patterns or bucket items (supports ** for recursive matching) to exclude from this bucket.",
132
132
  "type": "array",
133
133
  "items": {
134
134
  "anyOf": [
@@ -136,12 +136,11 @@
136
136
  "type": "string"
137
137
  },
138
138
  {
139
- "description": "Bucket path item. Either a string path or an object specifying path and delimiter.",
140
139
  "type": "object",
141
140
  "properties": {
142
141
  "path": {
143
- "description": "Path pattern containing a [locale] placeholder.",
144
- "type": "string"
142
+ "type": "string",
143
+ "description": "Path pattern containing a [locale] placeholder."
145
144
  },
146
145
  "delimiter": {
147
146
  "description": "Delimiter that replaces the [locale] placeholder in the path (default: no delimiter).",
@@ -164,7 +163,8 @@
164
163
  "required": [
165
164
  "path"
166
165
  ],
167
- "additionalProperties": false
166
+ "additionalProperties": false,
167
+ "description": "Bucket path item. Either a string path or an object specifying path and delimiter."
168
168
  }
169
169
  ]
170
170
  }
@@ -227,11 +227,9 @@
227
227
  "type": "string"
228
228
  },
229
229
  "provider": {
230
- "description": "Configuration for the machine-translation provider.",
231
230
  "type": "object",
232
231
  "properties": {
233
232
  "id": {
234
- "description": "Identifier of the translation provider service.",
235
233
  "type": "string",
236
234
  "enum": [
237
235
  "openai",
@@ -240,15 +238,16 @@
240
238
  "ollama",
241
239
  "openrouter",
242
240
  "mistral"
243
- ]
241
+ ],
242
+ "description": "Identifier of the translation provider service."
244
243
  },
245
244
  "model": {
246
- "description": "Model name to use for translations.",
247
- "type": "string"
245
+ "type": "string",
246
+ "description": "Model name to use for translations."
248
247
  },
249
248
  "prompt": {
250
- "description": "Prompt template used when requesting translations.",
251
- "type": "string"
249
+ "type": "string",
250
+ "description": "Prompt template used when requesting translations."
252
251
  },
253
252
  "baseUrl": {
254
253
  "description": "Custom base URL for the provider API (optional).",
@@ -273,7 +272,8 @@
273
272
  "model",
274
273
  "prompt"
275
274
  ],
276
- "additionalProperties": false
275
+ "additionalProperties": false,
276
+ "description": "Configuration for the machine-translation provider."
277
277
  },
278
278
  "formatter": {
279
279
  "description": "Code formatter to use for all buckets. Defaults to 'prettier' if not specified and a prettier config is found.",
@@ -287,7 +287,6 @@
287
287
  "type": "string"
288
288
  },
289
289
  "dev": {
290
- "description": "Development-specific settings.",
291
290
  "type": "object",
292
291
  "properties": {
293
292
  "usePseudotranslator": {
@@ -295,7 +294,8 @@
295
294
  "type": "boolean"
296
295
  }
297
296
  },
298
- "additionalProperties": false
297
+ "additionalProperties": false,
298
+ "description": "Development-specific settings."
299
299
  },
300
300
  "engineId": {
301
301
  "type": "string"
package/build/index.cjs CHANGED
@@ -472,10 +472,10 @@ var configV1_1Definition = extendConfigDefinition(configV1Definition, {
472
472
  bucketTypeSchema,
473
473
  _zod2.default.object({
474
474
  include: _zod2.default.array(_zod2.default.string()).default([]).describe(
475
- "File paths or glob patterns to include for this bucket."
475
+ "File paths or glob patterns (including ** for recursive matching) to include for this bucket."
476
476
  ),
477
477
  exclude: _zod2.default.array(_zod2.default.string()).optional().describe(
478
- "File paths or glob patterns to exclude from this bucket."
478
+ "File paths or glob patterns (including ** for recursive matching) to exclude from this bucket."
479
479
  )
480
480
  })
481
481
  ).default({})
@@ -535,8 +535,12 @@ var bucketItemSchema = _zod2.default.object({
535
535
  "Bucket path item. Either a string path or an object specifying path and delimiter."
536
536
  );
537
537
  var bucketValueSchemaV1_3 = _zod2.default.object({
538
- include: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).default([]).describe("Glob patterns or bucket items to include for this bucket."),
539
- exclude: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).optional().describe("Glob patterns or bucket items to exclude from this bucket."),
538
+ include: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).default([]).describe(
539
+ "Glob patterns or bucket items (supports ** for recursive matching) to include for this bucket."
540
+ ),
541
+ exclude: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).optional().describe(
542
+ "Glob patterns or bucket items (supports ** for recursive matching) to exclude from this bucket."
543
+ ),
540
544
  injectLocale: _zod2.default.array(_zod2.default.string()).optional().describe(
541
545
  "Keys within files where the current locale should be injected or removed."
542
546
  ),
package/build/index.mjs CHANGED
@@ -472,10 +472,10 @@ var configV1_1Definition = extendConfigDefinition(configV1Definition, {
472
472
  bucketTypeSchema,
473
473
  Z3.object({
474
474
  include: Z3.array(Z3.string()).default([]).describe(
475
- "File paths or glob patterns to include for this bucket."
475
+ "File paths or glob patterns (including ** for recursive matching) to include for this bucket."
476
476
  ),
477
477
  exclude: Z3.array(Z3.string()).optional().describe(
478
- "File paths or glob patterns to exclude from this bucket."
478
+ "File paths or glob patterns (including ** for recursive matching) to exclude from this bucket."
479
479
  )
480
480
  })
481
481
  ).default({})
@@ -535,8 +535,12 @@ var bucketItemSchema = Z3.object({
535
535
  "Bucket path item. Either a string path or an object specifying path and delimiter."
536
536
  );
537
537
  var bucketValueSchemaV1_3 = Z3.object({
538
- include: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).default([]).describe("Glob patterns or bucket items to include for this bucket."),
539
- exclude: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).optional().describe("Glob patterns or bucket items to exclude from this bucket."),
538
+ include: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).default([]).describe(
539
+ "Glob patterns or bucket items (supports ** for recursive matching) to include for this bucket."
540
+ ),
541
+ exclude: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).optional().describe(
542
+ "Glob patterns or bucket items (supports ** for recursive matching) to exclude from this bucket."
543
+ ),
540
544
  injectLocale: Z3.array(Z3.string()).optional().describe(
541
545
  "Keys within files where the current locale should be injected or removed."
542
546
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingo.dev/_spec",
3
- "version": "0.49.1",
3
+ "version": "0.49.2",
4
4
  "description": "Lingo.dev open specification",
5
5
  "private": false,
6
6
  "repository": {
@@ -24,14 +24,14 @@
24
24
  "author": "",
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "zod": "4.1.12",
27
+ "zod": "4.4.3",
28
28
  "@lingo.dev/_locales": "0.3.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "22.13.5",
32
32
  "tsup": "8.5.1",
33
33
  "typescript": "5.9.3",
34
- "vitest": "3.1.2"
34
+ "vitest": "3.2.6"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "tsup --watch",