Skip to content

fix(ai-config): force skills copy read to always use physical FS#1656

Merged
damyanpetev merged 8 commits intomasterfrom
dpetev/ai-config-fallback-fix
Apr 22, 2026
Merged

fix(ai-config): force skills copy read to always use physical FS#1656
damyanpetev merged 8 commits intomasterfrom
dpetev/ai-config-fallback-fix

Conversation

@damyanpetev
Copy link
Copy Markdown
Member

@damyanpetev damyanpetev commented Apr 22, 2026

Description

Related Issue

Closes #1658

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring / code cleanup
  • Build / CI configuration change

Affected Packages

  • igniteui-cli (packages/cli)
  • @igniteui/cli-core (packages/core)
  • @igniteui/angular-templates (packages/igx-templates)
  • @igniteui/angular-schematics (packages/ng-schematics)
  • @igniteui/mcp-server (packages/igniteui-mcp)

Checklist

  • I have tested my changes locally (npm run test)
  • I have built the project successfully (npm run build)
  • I have run the linter (npm run lint)
  • I have added/updated tests as needed
  • My changes do not introduce new warnings or errors

Additional Context

Copilot AI review requested due to automatic review settings April 22, 2026 12:23
@damyanpetev damyanpetev changed the title fix(ai-config): fallback relative paths to work w/ schematics virt FS fix(ai-config): skills fallback relative paths for schematics virt FS Apr 22, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 22, 2026

Coverage Status

coverage: 86.3% (+0.004%) from 86.296% — dpetev/ai-config-fallback-fix into master

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes AI skills template-path fallback so it works when running under Angular schematics’ virtual filesystem (Tree), where absolute on-disk template paths can’t be globbed/read through the virtual IFileSystem.

Changes:

  • Convert template templatePaths skills roots from absolute paths to process.cwd()-relative paths in resolveSkillsRoots().
  • Update/add unit tests to cover cwd-relative behavior and the “absolute template path → relative skills root” conversion.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/core/util/ai-skills.ts Adjusts template fallback skill root computation to use cwd-relative paths.
spec/unit/ai-skills-spec.ts Updates existing template fallback test path setup and adds a new test validating absolute-to-relative conversion for virtual FS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/core/util/ai-skills.ts Outdated
@damyanpetev damyanpetev changed the title fix(ai-config): skills fallback relative paths for schematics virt FS fix(ai-config): force skills copy read to always use physical FS Apr 22, 2026
ChronosSF
ChronosSF previously approved these changes Apr 22, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/core/util/ai-skills.ts
Comment thread packages/core/util/ai-skills.ts Outdated
Comment thread spec/unit/ai-skills-spec.ts
Comment thread .vscode/launch.json Outdated
Comment thread .vscode/launch.json Outdated
damyanpetev and others added 2 commits April 22, 2026 19:33
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ChronosSF ChronosSF self-requested a review April 22, 2026 16:37
ChronosSF
ChronosSF previously approved these changes Apr 22, 2026
@damyanpetev damyanpetev merged commit 74358cb into master Apr 22, 2026
3 checks passed
@damyanpetev damyanpetev deleted the dpetev/ai-config-fallback-fix branch April 22, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ai-config schematic fails to add skills

4 participants