@scania/tegel-lite 0.0.3-rules-beta.2 → 0.0.3-rules-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,29 +40,13 @@ const TOOLS = [
40
40
  mode: 'directory',
41
41
  },
42
42
  {
43
- id: 'claude',
44
- label: 'Claude Code',
45
- description: 'CLAUDE.md at project root',
46
- sourceFile: path.join(packageRoot, 'CLAUDE.md'),
47
- targetFile: path.join(projectRoot, 'CLAUDE.md'),
48
- mode: 'aggregated',
49
- },
50
- {
51
- id: 'copilot',
52
- label: 'GitHub Copilot',
43
+ id: 'vscode',
44
+ label: 'VS Code (GitHub Copilot)',
53
45
  description: '.github/copilot-instructions.md',
54
46
  sourceFile: path.join(packageRoot, '.github', 'copilot-instructions.md'),
55
47
  targetFile: path.join(projectRoot, '.github', 'copilot-instructions.md'),
56
48
  mode: 'aggregated',
57
49
  },
58
- {
59
- id: 'codex',
60
- label: 'OpenAI Codex',
61
- description: 'AGENTS.md at project root',
62
- sourceFile: path.join(packageRoot, 'AGENTS.md'),
63
- targetFile: path.join(projectRoot, 'AGENTS.md'),
64
- mode: 'aggregated',
65
- },
66
50
  ];
67
51
 
68
52
  // ── Helpers ───────────────────────────────────────────────────────────────────
@@ -146,6 +130,8 @@ function showCheckboxList(items) {
146
130
  // Initial render
147
131
  const output = render();
148
132
  stdout.write(output);
133
+ // Position cursor at start of line after menu for consistent re-renders
134
+ stdout.write('\n');
149
135
 
150
136
  stdin.setRawMode(true);
151
137
  stdin.resume();
@@ -185,9 +171,14 @@ function showCheckboxList(items) {
185
171
  }
186
172
 
187
173
  // Re-render: move up to overwrite
188
- const lineCount = items.length + 2;
189
- stdout.write(`\x1B[${lineCount}A\x1B[0J`);
174
+ // +3 because we have: items.length + empty line + help text + our newline
175
+ const lineCount = items.length + 3;
176
+ // Move to start of line, move up lineCount lines, clear from cursor to end of screen
177
+ stdout.write('\r');
178
+ stdout.write(`\x1B[${lineCount}A`);
179
+ stdout.write('\x1B[0J');
190
180
  stdout.write(render());
181
+ stdout.write('\n');
191
182
  }
192
183
 
193
184
  stdin.on('data', onKeypress);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scania/tegel-lite",
3
- "version": "0.0.3-rules-beta.2",
3
+ "version": "0.0.3-rules-beta.3",
4
4
  "description": "Styles-only library for Tegel Design System (Beta)",
5
5
  "type": "module",
6
6
  "keywords": [