Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 2, 2025

The AGENTS.md Boilerplate File Syntax section was incomplete, missing most compile syntaxes documented in boilerplates/README.md.

Changes

  • Reference link to boilerplates/README.md for full documentation
  • Special file names table with priority order (filename < !filename < $filename.ts < !$filename.ts)
  • JS/TS/Vue syntax patterns:
    • If/else and ternary with BATI.has()
    • Comment-based conditionals (// BATI.has(), //# BATI.has())
    • /*# BATI include-if-imported #*/
    • BATI.Any type casting, BATI.If<> conditional types
  • JSX/TSX conditional attributes via //# BATI.has() comments
  • HTML/Vue template conditional elements via <!-- BATI.has() -->
  • SquirellyJS syntax for any file extension: /*{ @if (it.BATI.has("...")) }*/
  • Important notes on unsupported patterns, auto-cleanup of unused imports, prettier formatting

Example JSX conditional attribute:

<div
  //# BATI.has("tailwindcss")
  class="p-5"
  //# !BATI.has("tailwindcss")
  style={{ padding: "20px" }}
>

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • googlechromelabs.github.io
    • Triggering command: /usr/local/bin/node node install.mjs (dns block)
  • https://storage.googleapis.com/chrome-for-testing-public/142.0.7444.175/linux64/chrome-linux64.zip
    • Triggering command: /usr/local/bin/node node install.mjs (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Update AGENTS.md (or create a new one in boilerplates) to reference all Bati specific compile syntaxes and behaviours that are references in boilerplates/README.md


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update AGENTS.md to include Bati specific compile syntaxes Expand AGENTS.md with comprehensive Bati compile syntax documentation Dec 2, 2025
Copilot AI requested a review from magne4000 December 2, 2025 15:39
@magne4000 magne4000 marked this pull request as ready for review December 2, 2025 15:40
@magne4000 magne4000 merged commit a64b8bc into main Dec 2, 2025
8 of 13 checks passed
@magne4000 magne4000 deleted the copilot/update-agents-md-bati-syntax branch December 2, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants