agent-first-data 0.31.0 → 0.32.0

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.
@@ -203,6 +203,10 @@
203
203
  "type": "boolean",
204
204
  "description": "This argument's value must never be echoed back in help, errors, or logs."
205
205
  },
206
+ "sources": {
207
+ "description": "Sources this string argument accepts beside a literal value. The core validates that a value names only a listed scheme and renders env/file/file+FORMAT/stream syntax into help; reading the source is the host's, at the moment it chooses.",
208
+ "$ref": "#/$defs/sourceSet"
209
+ },
206
210
  "about": {
207
211
  "$ref": "#/$defs/nonEmpty"
208
212
  }
@@ -368,6 +372,71 @@
368
372
  }
369
373
  }
370
374
  ]
375
+ },
376
+ "sourceSet": {
377
+ "type": "object",
378
+ "required": [
379
+ "schemes"
380
+ ],
381
+ "additionalProperties": false,
382
+ "anyOf": [
383
+ {
384
+ "properties": {
385
+ "schemes": {
386
+ "minItems": 1
387
+ }
388
+ }
389
+ },
390
+ {
391
+ "required": [
392
+ "host_schemes"
393
+ ],
394
+ "properties": {
395
+ "host_schemes": {
396
+ "minItems": 1
397
+ }
398
+ }
399
+ }
400
+ ],
401
+ "properties": {
402
+ "schemes": {
403
+ "type": "array",
404
+ "uniqueItems": true,
405
+ "items": {
406
+ "enum": [
407
+ "env",
408
+ "file",
409
+ "stdin",
410
+ "fd",
411
+ "prompt"
412
+ ]
413
+ }
414
+ },
415
+ "host_schemes": {
416
+ "description": "Schemes the host parses and reads itself, declared so help and validation know they exist. Names must not collide with each other or the built-in/reserved grammar; CliSpec::build validates that each syntax begins with its own name and a colon.",
417
+ "type": "array",
418
+ "minItems": 1,
419
+ "uniqueItems": true,
420
+ "items": {
421
+ "type": "object",
422
+ "required": [
423
+ "name",
424
+ "syntax"
425
+ ],
426
+ "additionalProperties": false,
427
+ "properties": {
428
+ "name": {
429
+ "type": "string",
430
+ "pattern": "^[a-z][a-z0-9-]*$"
431
+ },
432
+ "syntax": {
433
+ "$ref": "#/$defs/nonEmpty",
434
+ "description": "Displayed source syntax beginning with the exact host scheme name, a colon, and a non-empty value placeholder."
435
+ }
436
+ }
437
+ }
438
+ }
439
+ }
371
440
  }
372
441
  }
373
442
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-first-data",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "A naming convention that lets AI agents understand your data without being told what it means, plus a CLI and library for reading Markdown structure and safely editing structured JSON, TOML, YAML, dotenv, and INI documents.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^26.1.2",
31
- "tsx": "^4.23.1",
31
+ "tsx": "^4.23.10",
32
32
  "typescript": "^7.0.2"
33
33
  },
34
34
  "dependencies": {