sunpeak 0.17.2 → 0.17.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.
package/dist/chatgpt/globals.css
CHANGED
|
@@ -1,88 +1,3 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
|
|
3
|
-
/* Scan simulator source files for Tailwind classes */
|
|
4
|
-
@source "./**/*.{ts,tsx}";
|
|
5
|
-
|
|
6
|
-
/* Also scan host-specific shell components */
|
|
7
|
-
@source "../chatgpt/**/*.{ts,tsx}";
|
|
8
|
-
@source "../claude/**/*.{ts,tsx}";
|
|
9
|
-
|
|
10
|
-
/* Configure dark mode to use data-theme attribute */
|
|
11
|
-
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
12
|
-
|
|
13
|
-
/* Sidebar utility — host-overridable via --sim-bg-sidebar */
|
|
14
|
-
@utility bg-sidebar {
|
|
15
|
-
background-color: var(--sim-bg-sidebar, var(--color-background-secondary));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Sidebar form elements — match SDK look */
|
|
19
|
-
.sunpeak-simulator-root select,
|
|
20
|
-
.sunpeak-simulator-root input:not([type="checkbox"]),
|
|
21
|
-
.sunpeak-simulator-root textarea {
|
|
22
|
-
border: 0;
|
|
23
|
-
box-shadow: inset 0 0 0 1px var(--color-border-primary);
|
|
24
|
-
transition: box-shadow 150ms ease, color 150ms ease, background-color 150ms ease;
|
|
25
|
-
}
|
|
26
|
-
.sunpeak-simulator-root select:hover,
|
|
27
|
-
.sunpeak-simulator-root input:not([type="checkbox"]):hover,
|
|
28
|
-
.sunpeak-simulator-root textarea:hover {
|
|
29
|
-
box-shadow: inset 0 0 0 1px var(--color-border-secondary);
|
|
30
|
-
}
|
|
31
|
-
.sunpeak-simulator-root select:focus-visible,
|
|
32
|
-
.sunpeak-simulator-root input:not([type="checkbox"]):focus-visible,
|
|
33
|
-
.sunpeak-simulator-root textarea:focus-visible {
|
|
34
|
-
box-shadow: inset 0 0 0 1px var(--color-border-secondary);
|
|
35
|
-
outline: 2px solid var(--color-ring-primary);
|
|
36
|
-
outline-offset: -1px;
|
|
37
|
-
}
|
|
38
|
-
.sunpeak-simulator-root button:focus-visible {
|
|
39
|
-
outline: 2px solid var(--color-ring-primary);
|
|
40
|
-
outline-offset: -1px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Custom checkbox */
|
|
44
|
-
.sunpeak-simulator-root input[type="checkbox"] {
|
|
45
|
-
appearance: none;
|
|
46
|
-
-webkit-appearance: none;
|
|
47
|
-
width: 16px;
|
|
48
|
-
height: 16px;
|
|
49
|
-
border-radius: 4px;
|
|
50
|
-
border: 1px solid var(--color-border-secondary);
|
|
51
|
-
background-color: transparent;
|
|
52
|
-
background-size: 10px;
|
|
53
|
-
background-position: center;
|
|
54
|
-
background-repeat: no-repeat;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
flex-shrink: 0;
|
|
57
|
-
transition: border-color 150ms ease, background-color 150ms ease;
|
|
58
|
-
}
|
|
59
|
-
.sunpeak-simulator-root input[type="checkbox"]:hover {
|
|
60
|
-
border-color: var(--color-text-tertiary);
|
|
61
|
-
}
|
|
62
|
-
.sunpeak-simulator-root input[type="checkbox"]:checked {
|
|
63
|
-
border-color: var(--color-background-inverse);
|
|
64
|
-
background-color: var(--color-background-inverse);
|
|
65
|
-
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 5L4.25 7L8 3' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
|
|
66
|
-
}
|
|
67
|
-
[data-theme="dark"] .sunpeak-simulator-root input[type="checkbox"]:checked {
|
|
68
|
-
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 5L4.25 7L8 3' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
|
|
69
|
-
}
|
|
70
|
-
.sunpeak-simulator-root input[type="checkbox"]:focus-visible {
|
|
71
|
-
outline: 2px solid var(--color-ring-primary);
|
|
72
|
-
outline-offset: 2px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* Hide native number input spinners */
|
|
76
|
-
.sunpeak-simulator-root input[type="number"]::-webkit-inner-spin-button,
|
|
77
|
-
.sunpeak-simulator-root input[type="number"]::-webkit-outer-spin-button {
|
|
78
|
-
-webkit-appearance: none;
|
|
79
|
-
margin: 0;
|
|
80
|
-
}
|
|
81
|
-
.sunpeak-simulator-root input[type="number"] {
|
|
82
|
-
-moz-appearance: textfield;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* Bundled component styles */
|
|
86
1
|
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
87
2
|
@layer properties {
|
|
88
3
|
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
package/package.json
CHANGED
|
@@ -1,30 +1,9 @@
|
|
|
1
1
|
import { defineConfig, devices } from '@playwright/test';
|
|
2
|
-
import { execSync } from 'child_process';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function getPortSync(preferred: number): number {
|
|
9
|
-
const script = `
|
|
10
|
-
const s = require("net").createServer();
|
|
11
|
-
s.listen(${preferred}, () => {
|
|
12
|
-
process.stdout.write(String(s.address().port));
|
|
13
|
-
s.close();
|
|
14
|
-
});
|
|
15
|
-
s.on("error", () => {
|
|
16
|
-
const f = require("net").createServer();
|
|
17
|
-
f.listen(0, () => {
|
|
18
|
-
process.stdout.write(String(f.address().port));
|
|
19
|
-
f.close();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
`;
|
|
23
|
-
return Number(execSync(`node -e '${script}'`, { encoding: 'utf-8' }).trim());
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const port = Number(process.env.SUNPEAK_TEST_PORT) || getPortSync(6776);
|
|
27
|
-
const sandboxPort = Number(process.env.SUNPEAK_SANDBOX_PORT) || getPortSync(24680);
|
|
3
|
+
// Use fixed preferred ports. If in use, `reuseExistingServer` (local) reuses
|
|
4
|
+
// the running server. In CI, validate.mjs assigns unique ports via env vars.
|
|
5
|
+
const port = Number(process.env.SUNPEAK_TEST_PORT) || 6776;
|
|
6
|
+
const sandboxPort = Number(process.env.SUNPEAK_SANDBOX_PORT) || 24680;
|
|
28
7
|
|
|
29
8
|
export default defineConfig({
|
|
30
9
|
globalSetup: './tests/e2e/global-setup.ts',
|