From bd50330383157a9162b9297eb1be97336b2a30e9 Mon Sep 17 00:00:00 2001 From: Jan Rose Date: Fri, 14 Aug 2026 22:21:23 +0200 Subject: [PATCH] Update stale autogen rule with file paths & tasks --- .agents/rules/auto-generated-files.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.agents/rules/auto-generated-files.md b/.agents/rules/auto-generated-files.md index 0104602cf84..d79fec64759 100644 --- a/.agents/rules/auto-generated-files.md +++ b/.agents/rules/auto-generated-files.md @@ -1,12 +1,14 @@ --- description: Rules for how to deal with auto-generated files globs: - - ".codegen/openapi.json" + - ".codegen/cli.json" - ".gitattributes" - "acceptance/**/out*" - "acceptance/**/output.txt" - "acceptance/**/output.*.txt" - "acceptance/**/output/**" + - "bundle/internal/tf/schema/*.go" + - "bundle/terraform_dabs_map/generated.go" - "cmd/account/*.go" - "cmd/account/**/*.go" - "cmd/workspace/*.go" @@ -20,12 +22,14 @@ globs: - "python/databricks/bundles/*/__init__.py" - "python/databricks/bundles/*/_models/*.py" paths: - - ".codegen/openapi.json" + - ".codegen/cli.json" - ".gitattributes" - "acceptance/**/out*" - "acceptance/**/output.txt" - "acceptance/**/output.*.txt" - "acceptance/**/output/**" + - "bundle/internal/tf/schema/*.go" + - "bundle/terraform_dabs_map/generated.go" - "cmd/account/*.go" - "cmd/account/**/*.go" - "cmd/workspace/*.go" @@ -65,6 +69,9 @@ Files matching this rule's glob pattern are most likely generated artifacts. Aut - `./task generate-clijson` — refreshes `.codegen/cli.json` from the OpenAPI spec via genkit (requires universe repo); also updates `internal/genkit/tagging.py`. - Direct engine generated YAML: - `./task generate-direct` (or `./task generate-direct-apitypes`, `./task generate-direct-resources`) +- Terraform provider schema and DABs field map: + - `./task generate-tf-schema` + - `./task generate-schema-map` - Bundle schemas: - `./task generate-schema` - Rewrites `bundle/internal/schema/annotations.yml` in place: upstream docs are sourced from `.codegen/cli.json` at generation time, and the file is synced with the config structure (placeholders added, stale entries dropped).