agent-first-data 0.29.2__tar.gz → 0.30.0__tar.gz

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 (19) hide show
  1. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/PKG-INFO +1 -1
  2. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data/assets/cli-spec-v1.schema.json +22 -0
  3. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data/format.py +7 -1
  4. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data.egg-info/PKG-INFO +1 -1
  5. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/pyproject.toml +1 -1
  6. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/README.md +0 -0
  7. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data/__init__.py +0 -0
  8. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data/assets/cli-help-v2.schema.json +0 -0
  9. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data/assets/protocol-v1.schema.json +0 -0
  10. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data/assets/registry.json +0 -0
  11. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data/cli.py +0 -0
  12. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data.egg-info/SOURCES.txt +0 -0
  13. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data.egg-info/dependency_links.txt +0 -0
  14. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/agent_first_data.egg-info/top_level.txt +0 -0
  15. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/setup.cfg +0 -0
  16. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/tests/test_cli.py +0 -0
  17. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/tests/test_format.py +0 -0
  18. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/tests/test_no_stderr_policy.py +0 -0
  19. {agent_first_data-0.29.2 → agent_first_data-0.30.0}/tests/test_requires_python_floor.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-first-data
3
- Version: 0.29.2
3
+ Version: 0.30.0
4
4
  Summary: 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-Expression: MIT
6
6
  Project-URL: Repository, https://github.com/agentfirstkit/agent-first-data
@@ -35,6 +35,28 @@
35
35
  "lifecycle_output": {
36
36
  "$ref": "#/$defs/output"
37
37
  },
38
+ "exit_codes": {
39
+ "type": "array",
40
+ "description": "Exit codes this CLI returns beyond AFDATA's 0/1/2, rendered into the reference's exit-code table. 0/1/2 are AFDATA's own and may not be redeclared.",
41
+ "items": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "code",
46
+ "meaning"
47
+ ],
48
+ "properties": {
49
+ "code": {
50
+ "type": "integer",
51
+ "minimum": 3,
52
+ "maximum": 255
53
+ },
54
+ "meaning": {
55
+ "$ref": "#/$defs/nonEmpty"
56
+ }
57
+ }
58
+ }
59
+ },
38
60
  "commands": {
39
61
  "type": "array",
40
62
  "minItems": 1,
@@ -1014,7 +1014,13 @@ def _redact_secrets(value: Any, context: _RedactionContext = _RedactionContext()
1014
1014
  for k in list(value.keys()):
1015
1015
  v = value[k]
1016
1016
  if context.is_secret_key(k):
1017
- value[k] = REDACTED_MARKER
1017
+ # A null secret is an absent secret. Masking it would
1018
+ # manufacture the appearance of a configured credential —
1019
+ # readers cannot tell "***"-because-set from
1020
+ # "***"-because-null. Redaction hides a value that exists;
1021
+ # it does not invent one.
1022
+ if v is not None:
1023
+ value[k] = REDACTED_MARKER
1018
1024
  elif _key_has_url_suffix(k):
1019
1025
  if isinstance(v, str):
1020
1026
  value[k] = _redact_url_field_value(v, context)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-first-data
3
- Version: 0.29.2
3
+ Version: 0.30.0
4
4
  Summary: 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-Expression: MIT
6
6
  Project-URL: Repository, https://github.com/agentfirstkit/agent-first-data
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agent-first-data"
3
- version = "0.29.2"
3
+ version = "0.30.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
  readme = "README.md"