baseguard 1.0.5 → 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.
- package/dist/ai/gemini-analyzer.d.ts.map +1 -1
- package/dist/ai/gemini-analyzer.js +1 -1
- package/dist/ai/gemini-analyzer.js.map +1 -1
- package/dist/ai/gemini-code-fixer.d.ts.map +1 -1
- package/dist/ai/gemini-code-fixer.js +2 -7
- package/dist/ai/gemini-code-fixer.js.map +1 -1
- package/dist/ai/jules-implementer.d.ts +8 -0
- package/dist/ai/jules-implementer.d.ts.map +1 -1
- package/dist/ai/jules-implementer.js +115 -17
- package/dist/ai/jules-implementer.js.map +1 -1
- package/package.json +1 -1
- package/src/ai/__tests__/gemini-analyzer.test.ts +0 -181
- package/src/ai/agentkit-orchestrator.ts +0 -534
- package/src/ai/fix-manager.ts +0 -362
- package/src/ai/gemini-analyzer.ts +0 -665
- package/src/ai/gemini-code-fixer.ts +0 -539
- package/src/ai/index.ts +0 -4
- package/src/ai/jules-implementer.ts +0 -504
- package/src/ai/unified-code-fixer.ts +0 -347
- package/src/commands/automation.ts +0 -344
- package/src/commands/check.ts +0 -298
- package/src/commands/config.ts +0 -584
- package/src/commands/fix.ts +0 -269
- package/src/commands/index.ts +0 -7
- package/src/commands/init.ts +0 -156
- package/src/commands/status.ts +0 -307
- package/src/core/api-key-manager.ts +0 -298
- package/src/core/baseguard.ts +0 -757
- package/src/core/baseline-checker.ts +0 -566
- package/src/core/cache-manager.ts +0 -272
- package/src/core/configuration-recovery.ts +0 -672
- package/src/core/configuration.ts +0 -596
- package/src/core/debug-logger.ts +0 -590
- package/src/core/directory-filter.ts +0 -421
- package/src/core/error-handler.ts +0 -518
- package/src/core/file-processor.ts +0 -338
- package/src/core/gitignore-manager.ts +0 -169
- package/src/core/graceful-degradation-manager.ts +0 -596
- package/src/core/index.ts +0 -17
- package/src/core/lazy-loader.ts +0 -317
- package/src/core/logger.ts +0 -0
- package/src/core/memory-manager.ts +0 -290
- package/src/core/parser-worker.ts +0 -33
- package/src/core/startup-optimizer.ts +0 -246
- package/src/core/system-error-handler.ts +0 -755
- package/src/git/automation-engine.ts +0 -361
- package/src/git/github-manager.ts +0 -190
- package/src/git/hook-manager.ts +0 -210
- package/src/git/index.ts +0 -4
- package/src/index.ts +0 -8
- package/src/parsers/feature-validator.ts +0 -559
- package/src/parsers/index.ts +0 -8
- package/src/parsers/parser-manager.ts +0 -418
- package/src/parsers/parser.ts +0 -26
- package/src/parsers/react-parser-optimized.ts +0 -161
- package/src/parsers/react-parser.ts +0 -359
- package/src/parsers/svelte-parser.ts +0 -510
- package/src/parsers/vanilla-parser.ts +0 -685
- package/src/parsers/vue-parser.ts +0 -476
- package/src/types/index.ts +0 -96
- package/src/ui/components.ts +0 -567
- package/src/ui/help.ts +0 -193
- package/src/ui/index.ts +0 -4
- package/src/ui/prompts.ts +0 -681
- package/src/ui/terminal-header.ts +0 -59
- package/tests/e2e/baseguard.e2e.test.ts +0 -516
- package/tests/e2e/cross-platform.e2e.test.ts +0 -420
- package/tests/e2e/git-integration.e2e.test.ts +0 -487
- package/tests/fixtures/react-project/package.json +0 -14
- package/tests/fixtures/react-project/src/App.css +0 -76
- package/tests/fixtures/react-project/src/App.tsx +0 -77
- package/tests/fixtures/svelte-project/package.json +0 -11
- package/tests/fixtures/svelte-project/src/App.svelte +0 -369
- package/tests/fixtures/vanilla-project/index.html +0 -76
- package/tests/fixtures/vanilla-project/script.js +0 -331
- package/tests/fixtures/vanilla-project/styles.css +0 -359
- package/tests/fixtures/vue-project/package.json +0 -12
- package/tests/fixtures/vue-project/src/App.vue +0 -216
- package/tmp-smoke/.baseguard/backups/config-2026-02-19T12-04-11-067Z-auto.json +0 -30
- package/tmp-smoke/src/bad.css +0 -3
|
@@ -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>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"timestamp": "2026-02-19T12:04:11.067Z",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"config": {
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"targets": [
|
|
7
|
-
{
|
|
8
|
-
"browser": "safari",
|
|
9
|
-
"minVersion": "15"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"apiKeys": {
|
|
13
|
-
"jules": null,
|
|
14
|
-
"gemini": null
|
|
15
|
-
},
|
|
16
|
-
"codingAgent": {
|
|
17
|
-
"primary": "gemini",
|
|
18
|
-
"fallback": "jules"
|
|
19
|
-
},
|
|
20
|
-
"automation": {
|
|
21
|
-
"enabled": false,
|
|
22
|
-
"trigger": "pre-commit",
|
|
23
|
-
"autoAnalyze": false,
|
|
24
|
-
"autoFix": false,
|
|
25
|
-
"blockCommit": true
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"source": "auto",
|
|
29
|
-
"checksum": "180fa87badc74f9fea734dfda433584b8fce5026c959b913b305affc18303626"
|
|
30
|
-
}
|
package/tmp-smoke/src/bad.css
DELETED