Skip to content

Write assistant folder to metadata.gitops.folderPath on push - #106

Merged
devin-ai-integration[bot] merged 4 commits into
mainfrom
devin/1795219830-assistant-folder-path
Nov 21, 2026
Merged

devin-ai-integration[bot] merged 4 commits into
mainfrom
devin/1795219830-assistant-folder-path

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Push now sends each assistant's GitOps subfolder path as metadata.gitops.folderPath, so the dashboard can group assistants by the same folders. The dashboard half is vapi#28359.

assistants/support/intake.yml    →  metadata: { ...user, gitops: { ...userGitops, folderPath: "support" } }
assistants/support/tier2/a.yml   →  folderPath: "support/tier2"
assistants/intake.yml            →  folderPath: null         // clears a stale value after a move to root
  • withAssistantFolder (src/assistant-folder.ts) runs in applyAssistant after reference resolution. It keeps other metadata keys and other metadata.gitops keys. It throws if metadata or metadata.gitops isn't an object.
  • withoutAssistantFolder strips only metadata.gitops.folderPath, and drops containers left empty. It runs on pull, so the key is never written to local files, and in hashing, drift, audit and push response baselines, so the key never shows as drift.
  • A top-level metadata.folderPath is ordinary user metadata and isn't touched.
  • Only assistants change; squads and other resource types are unchanged.
  • I merged main in to pick up the adoption safeguards. The only conflict was in src/push.ts, and both sides are kept.

Tested with npm test (600 pass, including 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 Author

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 Author

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 Author

Devin Review

🟢 Devin Review found nothing to fix · View findings

dhruva-vapi and others added 2 commits November 21, 2026 02:07
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title Write assistant subfolder to metadata.folderPath on push Write assistant folder to metadata.gitops.folderPath on push Nov 21, 2026
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot merged commit 4f41c23 into main Nov 21, 2026
5 checks passed
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