baseguard 1.0.4 → 1.0.6

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.
Files changed (84) hide show
  1. package/dist/ai/gemini-analyzer.d.ts.map +1 -1
  2. package/dist/ai/gemini-analyzer.js +1 -1
  3. package/dist/ai/gemini-analyzer.js.map +1 -1
  4. package/dist/ai/gemini-code-fixer.d.ts.map +1 -1
  5. package/dist/ai/gemini-code-fixer.js +2 -7
  6. package/dist/ai/gemini-code-fixer.js.map +1 -1
  7. package/dist/ai/jules-implementer.d.ts +8 -0
  8. package/dist/ai/jules-implementer.d.ts.map +1 -1
  9. package/dist/ai/jules-implementer.js +115 -17
  10. package/dist/ai/jules-implementer.js.map +1 -1
  11. package/dist/commands/fix.d.ts.map +1 -1
  12. package/dist/commands/fix.js +5 -1
  13. package/dist/commands/fix.js.map +1 -1
  14. package/dist/core/baseline-checker.d.ts.map +1 -1
  15. package/dist/core/baseline-checker.js +6 -4
  16. package/dist/core/baseline-checker.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/ai/__tests__/gemini-analyzer.test.ts +0 -181
  19. package/src/ai/agentkit-orchestrator.ts +0 -534
  20. package/src/ai/fix-manager.ts +0 -362
  21. package/src/ai/gemini-analyzer.ts +0 -665
  22. package/src/ai/gemini-code-fixer.ts +0 -539
  23. package/src/ai/index.ts +0 -4
  24. package/src/ai/jules-implementer.ts +0 -504
  25. package/src/ai/unified-code-fixer.ts +0 -347
  26. package/src/commands/automation.ts +0 -344
  27. package/src/commands/check.ts +0 -298
  28. package/src/commands/config.ts +0 -584
  29. package/src/commands/fix.ts +0 -264
  30. package/src/commands/index.ts +0 -7
  31. package/src/commands/init.ts +0 -156
  32. package/src/commands/status.ts +0 -307
  33. package/src/core/api-key-manager.ts +0 -298
  34. package/src/core/baseguard.ts +0 -757
  35. package/src/core/baseline-checker.ts +0 -564
  36. package/src/core/cache-manager.ts +0 -272
  37. package/src/core/configuration-recovery.ts +0 -672
  38. package/src/core/configuration.ts +0 -596
  39. package/src/core/debug-logger.ts +0 -590
  40. package/src/core/directory-filter.ts +0 -421
  41. package/src/core/error-handler.ts +0 -518
  42. package/src/core/file-processor.ts +0 -338
  43. package/src/core/gitignore-manager.ts +0 -169
  44. package/src/core/graceful-degradation-manager.ts +0 -596
  45. package/src/core/index.ts +0 -17
  46. package/src/core/lazy-loader.ts +0 -317
  47. package/src/core/logger.ts +0 -0
  48. package/src/core/memory-manager.ts +0 -290
  49. package/src/core/parser-worker.ts +0 -33
  50. package/src/core/startup-optimizer.ts +0 -246
  51. package/src/core/system-error-handler.ts +0 -755
  52. package/src/git/automation-engine.ts +0 -361
  53. package/src/git/github-manager.ts +0 -190
  54. package/src/git/hook-manager.ts +0 -210
  55. package/src/git/index.ts +0 -4
  56. package/src/index.ts +0 -8
  57. package/src/parsers/feature-validator.ts +0 -559
  58. package/src/parsers/index.ts +0 -8
  59. package/src/parsers/parser-manager.ts +0 -418
  60. package/src/parsers/parser.ts +0 -26
  61. package/src/parsers/react-parser-optimized.ts +0 -161
  62. package/src/parsers/react-parser.ts +0 -359
  63. package/src/parsers/svelte-parser.ts +0 -510
  64. package/src/parsers/vanilla-parser.ts +0 -685
  65. package/src/parsers/vue-parser.ts +0 -476
  66. package/src/types/index.ts +0 -96
  67. package/src/ui/components.ts +0 -567
  68. package/src/ui/help.ts +0 -193
  69. package/src/ui/index.ts +0 -4
  70. package/src/ui/prompts.ts +0 -681
  71. package/src/ui/terminal-header.ts +0 -59
  72. package/tests/e2e/baseguard.e2e.test.ts +0 -516
  73. package/tests/e2e/cross-platform.e2e.test.ts +0 -420
  74. package/tests/e2e/git-integration.e2e.test.ts +0 -487
  75. package/tests/fixtures/react-project/package.json +0 -14
  76. package/tests/fixtures/react-project/src/App.css +0 -76
  77. package/tests/fixtures/react-project/src/App.tsx +0 -77
  78. package/tests/fixtures/svelte-project/package.json +0 -11
  79. package/tests/fixtures/svelte-project/src/App.svelte +0 -369
  80. package/tests/fixtures/vanilla-project/index.html +0 -76
  81. package/tests/fixtures/vanilla-project/script.js +0 -331
  82. package/tests/fixtures/vanilla-project/styles.css +0 -359
  83. package/tests/fixtures/vue-project/package.json +0 -12
  84. package/tests/fixtures/vue-project/src/App.vue +0 -216
@@ -1,216 +0,0 @@
1
- <template>
2
- <div class="vue-app">
3
- <h1>Vue Test App</h1>
4
- <button @click="openDialog">Open Dialog</button>
5
- <button @click="testWebAPIs">Test Web APIs</button>
6
- <button @click="testCanvas">Test Canvas</button>
7
-
8
- <dialog ref="dialogRef" :open="dialogOpen">
9
- <p>This is a modern dialog element in Vue</p>
10
- <button @click="closeDialog">Close</button>
11
- </dialog>
12
-
13
- <div class="container-test">
14
- <p>Container query test in Vue</p>
15
- </div>
16
-
17
- <canvas ref="canvasRef" width="200" height="200"></canvas>
18
- </div>
19
- </template>
20
-
21
- <script setup lang="ts">
22
- import { ref, onMounted, onUnmounted } from 'vue';
23
-
24
- const dialogOpen = ref(false);
25
- const dialogRef = ref<HTMLDialogElement>();
26
- const canvasRef = ref<HTMLCanvasElement>();
27
- let resizeObserver: ResizeObserver | null = null;
28
-
29
- onMounted(() => {
30
- // Modern JavaScript APIs
31
- setupModernAPIs();
32
- setupCanvas();
33
- });
34
-
35
- onUnmounted(() => {
36
- if (resizeObserver) {
37
- resizeObserver.disconnect();
38
- }
39
- });
40
-
41
- const setupModernAPIs = () => {
42
- // ResizeObserver - baseline newly available
43
- resizeObserver = new ResizeObserver((entries) => {
44
- console.log('Vue: Element resized:', entries);
45
- });
46
-
47
- if (dialogRef.value) {
48
- resizeObserver.observe(dialogRef.value);
49
- }
50
-
51
- // structuredClone - baseline newly available
52
- const testData = { vue: true, data: { nested: 'value' } };
53
- const cloned = structuredClone(testData);
54
- console.log('Vue: Cloned data:', cloned);
55
-
56
- // Array.at() - baseline newly available
57
- const items = ['vue', 'react', 'svelte'];
58
- const lastFramework = items.at(-1);
59
- console.log('Vue: Last framework:', lastFramework);
60
- };
61
-
62
- const setupCanvas = () => {
63
- if (!canvasRef.value) return;
64
-
65
- const ctx = canvasRef.value.getContext('2d');
66
- if (ctx) {
67
- // Modern Canvas API - filter property
68
- ctx.filter = 'blur(2px)';
69
- ctx.fillStyle = 'blue';
70
- ctx.fillRect(10, 10, 100, 100);
71
- }
72
- };
73
-
74
- const openDialog = () => {
75
- if (dialogRef.value) {
76
- // HTMLDialogElement.showModal() - baseline newly available
77
- dialogRef.value.showModal();
78
- }
79
- dialogOpen.value = true;
80
- };
81
-
82
- const closeDialog = () => {
83
- if (dialogRef.value) {
84
- dialogRef.value.close();
85
- }
86
- dialogOpen.value = false;
87
- };
88
-
89
- const testWebAPIs = () => {
90
- // Test various modern Web APIs
91
-
92
- // AbortController - baseline widely available
93
- const controller = new AbortController();
94
- const signal = controller.signal;
95
-
96
- // Fetch with AbortSignal
97
- fetch('https://api.example.com/data', { signal })
98
- .then(response => response.json())
99
- .catch(error => {
100
- if (error.name === 'AbortError') {
101
- console.log('Vue: Fetch aborted');
102
- }
103
- });
104
-
105
- // Abort after 1 second
106
- setTimeout(() => controller.abort(), 1000);
107
-
108
- // IntersectionObserver - baseline widely available
109
- const observer = new IntersectionObserver((entries) => {
110
- console.log('Vue: Intersection observed:', entries);
111
- });
112
-
113
- if (dialogRef.value) {
114
- observer.observe(dialogRef.value);
115
- }
116
- };
117
-
118
- const testCanvas = () => {
119
- if (!canvasRef.value) return;
120
-
121
- // Test OffscreenCanvas - baseline newly available
122
- if ('OffscreenCanvas' in window) {
123
- const offscreen = new OffscreenCanvas(100, 100);
124
- const ctx = offscreen.getContext('2d');
125
- if (ctx) {
126
- ctx.fillStyle = 'red';
127
- ctx.fillRect(0, 0, 50, 50);
128
- }
129
- }
130
-
131
- // Test WebGL2 - baseline widely available
132
- const gl = canvasRef.value.getContext('webgl2');
133
- if (gl) {
134
- gl.clearColor(0.0, 1.0, 0.0, 1.0);
135
- gl.clear(gl.COLOR_BUFFER_BIT);
136
- }
137
- };
138
- </script>
139
-
140
- <style scoped>
141
- /* Modern CSS features in Vue component */
142
- .vue-app {
143
- container-type: inline-size;
144
- container-name: vue-container;
145
-
146
- /* Modern CSS properties */
147
- aspect-ratio: 4/3;
148
- accent-color: #42b883;
149
- color-scheme: light dark;
150
-
151
- /* CSS Grid with modern gap */
152
- display: grid;
153
- gap: 1.5rem;
154
-
155
- /* Modern CSS functions */
156
- background: color-mix(in srgb, #42b883 30%, white);
157
-
158
- /* Backdrop filter */
159
- backdrop-filter: blur(5px);
160
- }
161
-
162
- /* Container queries */
163
- @container vue-container (min-width: 500px) {
164
- .container-test {
165
- font-size: 1.4rem;
166
- color: #42b883;
167
- }
168
- }
169
-
170
- /* Modern selectors */
171
- .vue-app:has(dialog[open]) {
172
- background-color: rgba(66, 184, 131, 0.1);
173
- }
174
-
175
- /* CSS nesting */
176
- .vue-app {
177
- .container-test {
178
- padding: 1.5rem;
179
- border-radius: 8px;
180
-
181
- &:hover {
182
- background-color: rgba(66, 184, 131, 0.1);
183
- }
184
- }
185
- }
186
-
187
- /* Modern pseudo-classes */
188
- .vue-app button:focus-visible {
189
- outline: 2px solid #42b883;
190
- outline-offset: 2px;
191
- }
192
-
193
- .vue-app button:is(:hover, :focus) {
194
- transform: translateY(-2px);
195
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
196
- }
197
-
198
- /* Modern CSS units and functions */
199
- .container-test {
200
- width: clamp(200px, 50%, 400px);
201
- height: max(150px, 15vh);
202
- margin-block: 1rem;
203
- padding-inline: 1.5rem;
204
- }
205
-
206
- /* CSS custom properties with modern color functions */
207
- :root {
208
- --vue-primary: oklch(0.6 0.2 160);
209
- --vue-secondary: color(display-p3 0.26 0.72 0.51);
210
- }
211
-
212
- canvas {
213
- border: 1px solid var(--vue-primary);
214
- border-radius: 4px;
215
- }
216
- </style>