fix(auth): preserve bare profile behavior across runtime and sync

This commit is contained in:
Tam Nhu Tran committed 2026-03-05 12:36:51 +07:00
1 parent bc9b04444e
commit 8f8684ce85
14 files changed
+355 -34

No files matched your search

+16
View File
@@ -47,6 +47,22 @@ describe('auth command args parsing', () => {
expect(parsed.deeperContinuity).toBe(true);
});
it('parses bare flag for create command', () => {
const parsed = parseArgs(['work', '--bare']);
expect(parsed.profileName).toBe('work');
expect(parsed.bare).toBe(true);
});
it('parses bare flag with shared context flags', () => {
const parsed = parseArgs(['work', '--bare', '--share-context', '--context-group', 'sprint-a']);
expect(parsed.profileName).toBe('work');
expect(parsed.bare).toBe(true);
expect(parsed.shareContext).toBe(true);
expect(parsed.contextGroup).toBe('sprint-a');
});
it('tracks unknown flags and keeps positional profile intact', () => {
const parsed = parseArgs(['--foo', 'bar', 'work']);