feat(profiles): add opt-in Lean/Full and hybrid Auto selection

This commit is contained in:
haelyra
2026-09-27 16:46:07 -04:00
parent e482e57941
commit 0765f7a2ca
342 changed files with 18212 additions and 209 deletions
@@ -0,0 +1,20 @@
'use strict';
const test = require('node:test');
const assert = require('node:assert/strict');
const { run } = require('../src/cli');
test('add then get round-trips a snippet', () => {
const state = {};
const added = run(['add', 'hello', 'hello', 'world'], state);
assert.equal(added.code, 0);
assert.equal(added.stdout, 'created hello\n');
const got = run(['get', 'hello'], state);
assert.equal(got.code, 0);
assert.equal(got.stdout, 'hello world\n');
});
test('list on empty state', () => {
const result = run(['list'], {});
assert.equal(result.code, 0);
assert.equal(result.stdout, 'no snippets\n');
});