Skip to content

0.2.0

Choose a tag to compare

@cursor cursor released this 18 Sep 13:08
a417d62

0.2.0 — FieldInfo YAML templates

18 September 2026. Minor on the public 0.1.8 beta.

Install

pip install opentide==0.2.0
export OPENTIDE_REPO_ROOT=/path/to/detection-repo
opentide validate --strict

Changed

  • opentide generate templates walks Pydantic FieldInfo instead of the JSON Schema gen_template walker (#223).
  • Optional sections are commented YAML with # hugging each key (#references: / #public:). Nested optionals are not commented again. Spacer blanks stay blank.
  • Placeholders are typed (no YAML null). Nested bodies come from nested models.
  • Rule configurations are commented platform stubs (#sentinel:) rather than {}.
  • VS Code snippet conversion treats commented nested keys as mapping children, so configurations: with only #sentinel: stubs is not turned into a tabstop.

Verify

python -c "import opentide; print(opentide.__version__)"
opentide setup --yes --name "Tutorial Detections" --org "Example Corp" --platform sentinel --path /tmp/tutorial-detections
opentide --repo /tmp/tutorial-detections generate
opentide --repo /tmp/tutorial-detections validate --strict

Expect 0.2.0. .opentide/templates/rule.1.0.template.yaml must contain #sentinel:, hug # to keys ( #enabled:, not # enabled:), keep spacer blanks (no lone #), and contain no YAML null.

Links

License: EUPL-1.2. Issues: OpenTideHQ/opentide.