Skip to content

Write assistant subfolder to metadata.folderPath on push - #102

Closed
dhruva-vapi wants to merge 1 commit into
mainfrom
devin/1795219830-assistant-folder-path
Closed

dhruva-vapi wants to merge 1 commit into
mainfrom
devin/1795219830-assistant-folder-path

Conversation

@dhruva-vapi

@dhruva-vapi dhruva-vapi commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Push now sends each assistant's GitOps subfolder as metadata.folderPath, so the dashboard can group assistants by the same folders (dashboard half is a separate PR).

assistants/support/tier2/intake.yml  →  metadata: { ...userMetadata, folderPath: "support/tier2" }
assistants/intake.yml                →  metadata: { ...userMetadata, folderPath: null }   // clears a stale value after a move to root
  • withAssistantFolder (src/assistant-folder.ts) is applied in applyAssistant after reference resolution; other metadata keys are kept. Non-object metadata throws.
  • folderPath is derived, so withoutAssistantFolder strips it on pull (never written to local files) and in hashing/drift/audit (canonical.ts, resources.ts, drift.ts, audit.ts, push response baselines), so it never shows as drift.
  • Assistants only; squads and other types unchanged.

Tested with npm test (589 pass, new tests/assistant-folder.test.ts) and npm run build. Not run against a live org.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Devin Review

🟢 Devin Review found nothing to fix · View findings

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Replaced by #106.

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.

1 participant