Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

The codebase supported two syntaxes for runtime file imports: the @./path inline syntax and the {{#runtime-import path}} macro. This removes the inline syntax, leaving only the macro syntax for consistency.

Changes

JavaScript runtime:

  • Removed convertInlinesToMacros() function that translated @./path{{#runtime-import path}}
  • Simplified prompt processing pipeline from 4 steps to 3
  • Removed 68 lines of inline syntax tests

Go compiler:

  • Removed inline syntax pattern detection in containsRuntimeImports()
  • Cleaned up test cases referencing @./ syntax

Workflows:

  • Updated 2 workflows to use macro syntax:
    - @./agentics/code-simplifier.md
    + {{#runtime-import agentics/code-simplifier.md}}

Documentation:

  • Removed inline syntax sections from templating and imports guides
  • Updated all examples to use macro syntax exclusively
  • Rewrote file-url-inlining.md to focus on runtime import macros

Migration

All runtime file imports now use the macro syntax:

<!-- Before -->
@./docs/standards.md
@./src/auth.go:45-75
@https://example.com/checklist.md

<!-- After -->
{{#runtime-import docs/standards.md}}
{{#runtime-import src/auth.go:45-75}}
{{#runtime-import https://example.com/checklist.md}}

Net impact: -449 lines, +92 lines across 14 files.

Original prompt

Remove the "@" syntax to import files and only support "runtime-import" instead.

  • update compiler
  • update agentic workflows
  • update docs

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 16, 2026 15:06
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove '@' syntax for importing files and support runtime-import Remove @ inline syntax for runtime imports, keep only {{#runtime-import}} macro Jan 16, 2026
Copilot AI requested a review from pelikhan January 16, 2026 15:23
@pelikhan pelikhan marked this pull request as ready for review January 16, 2026 15:28
@pelikhan pelikhan merged commit e60fefa into main Jan 16, 2026
116 of 117 checks passed
@pelikhan pelikhan deleted the copilot/remove-at-import-syntax branch January 16, 2026 15:31
Copilot AI added a commit that referenced this pull request Jan 16, 2026
- Merged origin/main into branch
- Removed @ inline syntax support from extractRuntimeImportPaths()
- Removed all tests for @ inline syntax (@./path, @../path patterns)
- Updated to align with main's removal of @ syntax in PR #10313

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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