@pyric/cli 0.1.0-alpha.18 → 0.1.0-alpha.19
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/README.md +9 -4
- package/README.md.orig +5 -1
- package/dist/bridge/server/mcp-contract.d.ts +2 -2
- package/dist/bridge/server/mcp-contract.d.ts.map +1 -1
- package/dist/bridge/server/mcp-contract.js +3 -0
- package/dist/bridge/server/mcp-contract.js.map +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +3 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp-proxy.d.ts.map +1 -1
- package/dist/cli/mcp-proxy.js.map +1 -1
- package/dist/cli/rules.d.ts +1 -0
- package/dist/cli/rules.d.ts.map +1 -1
- package/dist/cli/rules.js +18 -4
- package/dist/cli/rules.js.map +1 -1
- package/dist/cli/service-command-records/storage-rules-resolve.d.ts +4 -0
- package/dist/cli/service-command-records/storage-rules-resolve.d.ts.map +1 -0
- package/dist/cli/service-command-records/storage-rules-resolve.js +3 -0
- package/dist/cli/service-command-records/storage-rules-resolve.js.map +1 -0
- package/dist/cli/service-commands.generated.d.ts +3 -0
- package/dist/cli/service-commands.generated.d.ts.map +1 -1
- package/dist/cli/service-commands.generated.js +2 -0
- package/dist/cli/service-commands.generated.js.map +1 -1
- package/dist/serve/rules.d.ts +3 -3
- package/dist/serve/rules.d.ts.map +1 -1
- package/dist/serve/rules.js +13 -5
- package/dist/serve/rules.js.map +1 -1
- package/dist/serve/site-ui/_astro/{RulesCodeEditor.CzwHdCi9.js → RulesCodeEditor.Bl-XMkhD.js} +1 -1
- package/dist/serve/site-ui/_astro/_example_.B9DG9HLJ.css +1 -0
- package/dist/serve/site-ui/_astro/{_slug_.C6QfVOxJ.css → _slug_.CupVK4TM.css} +1 -1
- package/dist/serve/site-ui/_astro/_studio_.CfxiQWkk.css +1 -0
- package/dist/serve/site-ui/_astro/app.Ce3MTLQm.js +1 -0
- package/dist/serve/site-ui/_astro/app.taqzyjD0.js +11 -0
- package/dist/serve/site-ui/_astro/chess-showcase.Dh5D8kqe.js +354 -0
- package/dist/serve/site-ui/_astro/{example-runtime.B0byNQOl.js → example-runtime.CuyAjjiG.js} +2 -26
- package/dist/serve/site-ui/_astro/sandbox-controls.BP4M5f1M.js +1169 -0
- package/dist/serve/site-ui/_astro/seed.CSUkloMi.js +20 -0
- package/dist/serve/site-ui/_astro/writes.C57paAj2.js +99 -0
- package/dist/serve/site-ui/auth/index.html +2 -2
- package/dist/serve/site-ui/docs/_rhythm/index.html +1 -1
- package/dist/serve/site-ui/docs/agent/set-up-your-agent/index.html +29 -4
- package/dist/serve/site-ui/docs/agent/set-up-your-agent.md +8 -5
- package/dist/serve/site-ui/docs/agent/watch-and-review/index.html +1 -1
- package/dist/serve/site-ui/docs/agent/work-with-an-agent/index.html +1 -1
- package/dist/serve/site-ui/docs/ai-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/api-reference/index.html +1 -1
- package/dist/serve/site-ui/docs/app-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/auth-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/build/ai-logic/index.html +1 -1
- package/dist/serve/site-ui/docs/build/authentication/index.html +1 -1
- package/dist/serve/site-ui/docs/build/cloud-firestore/index.html +30 -52
- package/dist/serve/site-ui/docs/build/cloud-firestore.md +40 -36
- package/dist/serve/site-ui/docs/build/cloud-messaging/index.html +1 -1
- package/dist/serve/site-ui/docs/build/cloud-storage/index.html +1 -1
- package/dist/serve/site-ui/docs/build/realtime-database/index.html +1 -1
- package/dist/serve/site-ui/docs/conformance-scores/index.html +1 -1
- package/dist/serve/site-ui/docs/create-pyric-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/database-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/examples/chess/index.html +645 -249
- package/dist/serve/site-ui/docs/examples/chess.md +45 -16
- package/dist/serve/site-ui/docs/examples/index.html +2 -2
- package/dist/serve/site-ui/docs/firestore-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/functions-rtdb-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/get-started/how-the-swap-works/index.html +1 -1
- package/dist/serve/site-ui/docs/get-started/nextjs/index.html +1 -1
- package/dist/serve/site-ui/docs/get-started/start-building/index.html +29 -3
- package/dist/serve/site-ui/docs/get-started/start-building.md +9 -4
- package/dist/serve/site-ui/docs/get-started/vite/index.html +1 -1
- package/dist/serve/site-ui/docs/index.json +23 -18
- package/dist/serve/site-ui/docs/messaging-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/observe/resolve-runtime-status/index.html +1 -1
- package/dist/serve/site-ui/docs/observe/see-whats-happening/index.html +1 -1
- package/dist/serve/site-ui/docs/observe/shape-your-data/index.html +1 -1
- package/dist/serve/site-ui/docs/overview/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-admin-app-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-admin-auth-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-admin-database-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-admin-firestore-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-admin-messaging-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-admin-storage-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ai-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ai-scripting-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-app-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-auth-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-assurance-browser-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-assurance-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-bridge-client-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-bridge-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-conformance-browser-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-conformance-docs-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-conformance-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-credentials-node-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-discover-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-next-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-register-app-bridge-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-register-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-remote-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-serve-worker-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-verify-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-cli-vite-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-database-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-firestore-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-messaging-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-messaging-sw-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-rules-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-sandbox-database-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-sandbox-firestore-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-sandbox-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-storage-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-agents-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-auth-hooks-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-auth-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-events-hooks-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-events-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-firestore-hooks-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-firestore-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-primitives-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-rtdb-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-rules-hooks-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-rules-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-storage-hooks-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-storage-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-traffic-hooks-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/pyric-ui-traffic-reference-api/index.html +1 -1
- package/dist/serve/site-ui/docs/rules-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/audit-your-rules/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/firestore-rules-limits/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/read-a-denial/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/rtdb-rules-in-typescript/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/rules-standard-library/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/secure-it-with-rules/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/simulate-and-lint/index.html +1 -1
- package/dist/serve/site-ui/docs/secure/write-a-rules-test-suite/index.html +1 -1
- package/dist/serve/site-ui/docs/ship/ship-to-production/index.html +1 -1
- package/dist/serve/site-ui/docs/ship/test-in-node/index.html +1 -1
- package/dist/serve/site-ui/docs/storage-compat/index.html +1 -1
- package/dist/serve/site-ui/docs/trust/how-we-know-it-matches-firebase/index.html +1 -1
- package/dist/serve/site-ui/docs/trust/rules-standard-library/index.html +1 -1
- package/dist/serve/site-ui/docs/trust/storage-rules-stdlib-research/index.html +1 -1
- package/dist/serve/site-ui/docs/trust/versioning-and-compatibility/index.html +1 -1
- package/dist/serve/site-ui/docs/tutorial/index.html +1 -1
- package/dist/serve/site-ui/examples/chess/index.html +2 -2
- package/dist/serve/site-ui/firestore/index.html +2 -2
- package/dist/serve/site-ui/index.html +2 -2
- package/dist/serve/site-ui/rtdb/index.html +2 -2
- package/dist/serve/site-ui/settings/index.html +2 -2
- package/dist/serve/site-ui/storage/index.html +2 -2
- package/dist/serve/site-ui/traffic/index.html +2 -2
- package/dist/serve/vite-rules-source.d.ts.map +1 -1
- package/dist/serve/vite-rules-source.js +28 -7
- package/dist/serve/vite-rules-source.js.map +1 -1
- package/package.json +4 -4
- package/src/bridge/server/mcp-contract.ts +3 -0
- package/src/cli/index.ts +3 -0
- package/src/cli/mcp-proxy.ts +6 -7
- package/src/cli/rules.ts +31 -4
- package/src/cli/service-command-records/storage-rules-resolve.ts +4 -0
- package/src/cli/service-commands.generated.ts +2 -0
- package/src/serve/rules.ts +15 -5
- package/src/serve/vite-rules-source.ts +29 -7
- package/dist/serve/site-ui/_astro/_example_.jevZ7OdV.css +0 -1
- package/dist/serve/site-ui/_astro/_studio_.B6b_G1ev.css +0 -1
- package/dist/serve/site-ui/_astro/app.B7pBzz5N.js +0 -11
- package/dist/serve/site-ui/_astro/app.boex5SnQ.js +0 -1
- package/dist/serve/site-ui/_astro/chess-showcase.DDqE-QGe.js +0 -1
- package/dist/serve/site-ui/_astro/chess-source-explorer.C5k9c5yK.js +0 -1
- package/dist/serve/site-ui/_astro/chess-v2.CFHmd3UL.js +0 -354
- package/dist/serve/site-ui/_astro/index.uwPvjH_1.js +0 -1
- package/dist/serve/site-ui/_astro/jsx-runtime.D_zvdyIk.js +0 -9
- package/dist/serve/site-ui/_astro/reads.Dh3z0fJy.js +0 -1
- package/dist/serve/site-ui/_astro/sandbox-controls.C2IqtoSw.js +0 -1252
- package/dist/serve/site-ui/_astro/seed.CCmj00su.js +0 -20
- package/dist/serve/site-ui/examples/firestore-first-write/index.html +0 -2
package/src/cli/mcp-proxy.ts
CHANGED
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
* `pyric mcp-proxy` — a stdio MCP server that relays to a RUNNING
|
|
3
3
|
* `pyric dev --bridge`'s HTTP MCP endpoint.
|
|
4
4
|
*
|
|
5
|
-
* Why this exists:
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* forwards the protocol. No manual `claude mcp add`, no fixed port.
|
|
5
|
+
* Why this exists: the agent plugin declares one static stdio command, while
|
|
6
|
+
* serve's endpoint is `http://localhost:<PORT>/__pyric/mcp` with a runtime
|
|
7
|
+
* port (scan-forward / AirPlay). The proxy discovers the live serve and
|
|
8
|
+
* forwards the protocol. No per-client MCP setup, no fixed port.
|
|
10
9
|
* (design rationale)
|
|
11
10
|
*
|
|
12
11
|
* Relay is at the TRANSPORT level via the MCP SDK's own transports — we do
|
|
13
12
|
* NOT re-implement JSON-RPC/SSE/session framing. `StdioServerTransport`
|
|
14
|
-
* talks to
|
|
13
|
+
* talks to the MCP client; `StreamableHTTPClientTransport` talks to serve; each
|
|
15
14
|
* transport's `onmessage` is piped to the other's `send`.
|
|
16
15
|
*
|
|
17
16
|
* Two hardening layers sit on top of that pipe:
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
* + IPv6 `[::1]:P`); without this, the proxy locks onto whichever family
|
|
23
22
|
* answers first while the browser is on the other — split-brain.
|
|
24
23
|
* TIMEOUT — every relayed request is failed with a JSON-RPC error after
|
|
25
|
-
* REQUEST_TIMEOUT_MS instead of hanging
|
|
24
|
+
* REQUEST_TIMEOUT_MS instead of hanging the agent forever (a killed
|
|
26
25
|
* server can leave a half-open keep-alive socket that never FINs). A
|
|
27
26
|
* `settled` set swallows a late real response so the client never sees a
|
|
28
27
|
* duplicate after the timeout already failed the call.
|
package/src/cli/rules.ts
CHANGED
|
@@ -125,14 +125,30 @@ export async function runRulesValidate(parsed: ParsedArgs, deps: RulesDeps = {})
|
|
|
125
125
|
export async function runRulesResolve(
|
|
126
126
|
parsed: ParsedArgs,
|
|
127
127
|
deps: ResolveRulesDeps = {},
|
|
128
|
+
): Promise<number> {
|
|
129
|
+
return runServiceRulesResolve('firestore', parsed, deps);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export async function runStorageRulesResolve(
|
|
133
|
+
parsed: ParsedArgs,
|
|
134
|
+
deps: ResolveRulesDeps = {},
|
|
135
|
+
): Promise<number> {
|
|
136
|
+
return runServiceRulesResolve('storage', parsed, deps);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
async function runServiceRulesResolve(
|
|
140
|
+
service: 'firestore' | 'storage',
|
|
141
|
+
parsed: ParsedArgs,
|
|
142
|
+
deps: ResolveRulesDeps,
|
|
128
143
|
): Promise<number> {
|
|
129
144
|
const out = deps.stdout ?? process.stdout;
|
|
130
145
|
const err = deps.stderr ?? process.stderr;
|
|
131
146
|
const cwd = deps.cwd ?? process.cwd();
|
|
147
|
+
const command = `pyric ${service} rules resolve`;
|
|
132
148
|
const sourcePath = parsed.positional[0];
|
|
133
149
|
if (!sourcePath) {
|
|
134
150
|
err.write(
|
|
135
|
-
|
|
151
|
+
`${command}: missing rules-file path. Usage: ${command} <path> [--out <path>]\n`,
|
|
136
152
|
);
|
|
137
153
|
return 1;
|
|
138
154
|
}
|
|
@@ -143,16 +159,27 @@ export async function runRulesResolve(
|
|
|
143
159
|
source = await (deps.readFile ?? readFile)(absoluteSourcePath, 'utf-8');
|
|
144
160
|
} catch (error) {
|
|
145
161
|
err.write(
|
|
146
|
-
|
|
162
|
+
`${command}: ${error instanceof Error ? error.message : String(error)}\n`,
|
|
147
163
|
);
|
|
148
164
|
return 1;
|
|
149
165
|
}
|
|
150
166
|
|
|
167
|
+
const expectedService =
|
|
168
|
+
service === 'storage' ? 'firebase.storage' : 'cloud.firestore';
|
|
169
|
+
const parsedSource = parseToAST(source);
|
|
170
|
+
if (parsedSource && parsedSource.service.name !== expectedService) {
|
|
171
|
+
err.write(
|
|
172
|
+
`${command}: source declares service ${parsedSource.service.name}; expected ${expectedService}\n`,
|
|
173
|
+
);
|
|
174
|
+
return 2;
|
|
175
|
+
}
|
|
176
|
+
|
|
151
177
|
const result = (deps.resolveModules ?? resolveModules)(source, {
|
|
152
178
|
basePath: dirname(absoluteSourcePath),
|
|
179
|
+
sourceFile: sourcePath,
|
|
153
180
|
});
|
|
154
181
|
if (!result.success) {
|
|
155
|
-
err.write(
|
|
182
|
+
err.write(`${command}: ${result.error.message}\n`);
|
|
156
183
|
return 2;
|
|
157
184
|
}
|
|
158
185
|
|
|
@@ -169,7 +196,7 @@ export async function runRulesResolve(
|
|
|
169
196
|
result.data.resolved.endsWith('\n') ? result.data.resolved : `${result.data.resolved}\n`,
|
|
170
197
|
'utf-8',
|
|
171
198
|
);
|
|
172
|
-
out.write(
|
|
199
|
+
out.write(`${command}: wrote ${outputPath}\n`);
|
|
173
200
|
return 0;
|
|
174
201
|
}
|
|
175
202
|
|
|
@@ -10,6 +10,7 @@ import firestoreRulesResolve from './service-command-records/firestore-rules-res
|
|
|
10
10
|
import firestoreRulesSimulate from './service-command-records/firestore-rules-simulate.js';
|
|
11
11
|
import firestoreRulesValidate from './service-command-records/firestore-rules-validate.js';
|
|
12
12
|
import storageRulesLint from './service-command-records/storage-rules-lint.js';
|
|
13
|
+
import storageRulesResolve from './service-command-records/storage-rules-resolve.js';
|
|
13
14
|
import storageRulesSimulate from './service-command-records/storage-rules-simulate.js';
|
|
14
15
|
|
|
15
16
|
export const SERVICE_COMMANDS = [
|
|
@@ -23,5 +24,6 @@ export const SERVICE_COMMANDS = [
|
|
|
23
24
|
{ path: ["firestore","rules","simulate"], run: firestoreRulesSimulate },
|
|
24
25
|
{ path: ["firestore","rules","validate"], run: firestoreRulesValidate },
|
|
25
26
|
{ path: ["storage","rules","lint"], run: storageRulesLint },
|
|
27
|
+
{ path: ["storage","rules","resolve"], run: storageRulesResolve },
|
|
26
28
|
{ path: ["storage","rules","simulate"], run: storageRulesSimulate },
|
|
27
29
|
] as const satisfies readonly ServiceCommand[];
|
package/src/serve/rules.ts
CHANGED
|
@@ -109,19 +109,29 @@ export async function loadProjectRules(
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
112
|
+
* Resolve and validate a raw Storage rules source. Modular sources are
|
|
113
|
+
* authored in storage.modules.rules and resolved in memory before the
|
|
114
|
+
* sandbox sees them; firebase.json can continue to point at storage.rules.
|
|
115
115
|
*/
|
|
116
116
|
export function prepareStorageRulesSource(raw: string, sourcePath: string): string {
|
|
117
|
+
let source = raw;
|
|
118
|
+
if (/^\s*rules_version\s*=\s*['"]2\+modules['"]/m.test(raw)) {
|
|
119
|
+
const resolved = resolveModulesBrowser(raw, { sourceFile: sourcePath });
|
|
120
|
+
if (!resolved.success) {
|
|
121
|
+
throw new Error(
|
|
122
|
+
`pyric dev: ${sourcePath} uses 2+modules but module resolution failed: ${resolved.error.message}`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
source = resolved.data.resolved;
|
|
126
|
+
}
|
|
117
127
|
try {
|
|
118
|
-
parseStorageRules(
|
|
128
|
+
parseStorageRules(source);
|
|
119
129
|
} catch (e) {
|
|
120
130
|
throw new Error(
|
|
121
131
|
`pyric dev: ${sourcePath} failed to parse: ${e instanceof Error ? e.message : String(e)} — fix the rules before serving.`,
|
|
122
132
|
);
|
|
123
133
|
}
|
|
124
|
-
return
|
|
134
|
+
return source;
|
|
125
135
|
}
|
|
126
136
|
|
|
127
137
|
/**
|
|
@@ -12,17 +12,39 @@ export function resolveViteRulesConfig(
|
|
|
12
12
|
explicitRules: string | undefined,
|
|
13
13
|
firebaseConfig: FirebaseJson | null,
|
|
14
14
|
): FirebaseJson | null {
|
|
15
|
-
const
|
|
15
|
+
const firestoreSource = explicitRules
|
|
16
16
|
?? (existsSync(path.join(root, 'firestore.modules.rules'))
|
|
17
17
|
? 'firestore.modules.rules'
|
|
18
18
|
: undefined);
|
|
19
|
+
const storageSource = existsSync(path.join(root, 'storage.modules.rules'))
|
|
20
|
+
? 'storage.modules.rules'
|
|
21
|
+
: undefined;
|
|
19
22
|
|
|
20
|
-
if (!
|
|
21
|
-
|
|
23
|
+
if (!firestoreSource && !storageSource) return firebaseConfig;
|
|
24
|
+
let resolved: FirebaseJson = {
|
|
22
25
|
...(firebaseConfig ?? {}),
|
|
23
|
-
firestore: {
|
|
24
|
-
...(firebaseConfig?.firestore ?? {}),
|
|
25
|
-
rules: rulesSource,
|
|
26
|
-
},
|
|
27
26
|
};
|
|
27
|
+
if (firestoreSource) {
|
|
28
|
+
resolved.firestore = {
|
|
29
|
+
...(firebaseConfig?.firestore ?? {}),
|
|
30
|
+
rules: firestoreSource,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (storageSource) {
|
|
34
|
+
const storage = firebaseConfig?.storage;
|
|
35
|
+
if (Array.isArray(storage)) {
|
|
36
|
+
const index = Math.max(0, storage.findIndex((entry) => entry.rules));
|
|
37
|
+
resolved.storage = storage.length === 0
|
|
38
|
+
? [{ rules: storageSource }]
|
|
39
|
+
: storage.map((entry, entryIndex) =>
|
|
40
|
+
entryIndex === index ? { ...entry, rules: storageSource } : entry,
|
|
41
|
+
);
|
|
42
|
+
} else {
|
|
43
|
+
resolved.storage = {
|
|
44
|
+
...(storage ?? {}),
|
|
45
|
+
rules: storageSource,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return resolved;
|
|
28
50
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
body{margin:0;background:#15151d;color:#f4f4f7;font-family:Inter,sans-serif}.example-runtime{box-sizing:border-box;min-height:100vh;padding:1rem}.example-runtime header{display:flex;align-items:center;gap:.65rem}.example-runtime header strong{flex:1;font-size:.9rem}.example-runtime button{border:1px solid #4a4a58;border-radius:.45rem;padding:.45rem .65rem;background:#24242f;color:inherit;cursor:pointer}.example-runtime p{color:#b6b6c2;font-size:.82rem;line-height:1.45}.example-runtime pre{min-height:8rem;overflow:auto;border-radius:.55rem;padding:.85rem;background:#0f0f17;color:#d9f99d;font:.78rem/1.5 JetBrains Mono,monospace}.status{width:.55rem;height:.55rem;border-radius:50%;background:#eab308}.status-ready{background:#22c55e}.status-error{background:#ef4444}.copy-error{float:right}.chess-showcase{padding:clamp(1rem,3vw,2.25rem);background:#15151d;color:#f4f4f7}.chess-play{display:grid;grid-template-columns:minmax(20rem,42rem) minmax(18rem,25rem);gap:clamp(1rem,3vw,2rem);align-items:start;max-width:70rem;margin:0 auto}.chess-board-wrap{padding:clamp(.55rem,1.5vw,1rem);border:1px solid #474258;border-radius:.5rem;background:#201f2a}.chess-board{display:grid;grid-template:repeat(8,minmax(0,1fr)) / repeat(8,minmax(0,1fr));overflow:hidden;width:100%;aspect-ratio:1}.chess-square{position:relative;display:grid;width:100%;height:100%;min-width:0;min-height:0;place-items:center;overflow:hidden;border:0;border-radius:0;padding:0;cursor:pointer;font-size:clamp(1.6rem,5vw,3.6rem);line-height:1;text-shadow:0 2px 2px #0005}.chess-piece{position:absolute;inset:0;display:grid;place-items:center;line-height:1}.chess-square.is-light{background:#d7d0e3;color:#17151d}.chess-square.is-dark{background:#756b91;color:#111018}.chess-square:hover{box-shadow:inset 0 0 0 .22rem #c7ff5f;z-index:1}.chess-square.is-selected{box-shadow:inset 0 0 0 .3rem #b8ff3d;background:#9caa64;z-index:2}.chess-square small{position:absolute;font:700 .58rem/1 Inter,sans-serif;opacity:.65}.rank-label{top:.25rem;left:.25rem}.file-label{right:.25rem;bottom:.22rem}.chess-console{display:grid;gap:1rem}.turn-row,.identity-picker,.scenario-picker,.verdict{border:1px solid #413e4d;border-radius:.5rem;background:#1e1d27;padding:1rem}.turn-row{display:flex;gap:1rem;align-items:center;justify-content:space-between}.turn-row strong{display:block;margin-top:.25rem;font-size:1rem}.verdict strong{display:flex;align-items:center;gap:.45rem;margin-top:.25rem;font-size:1rem}.verdict strong i{width:.48rem;height:.48rem;border-radius:50%;background:#8f8b9d}.console-label{color:#9995a6;font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.chess-showcase button{border:1px solid #504c5d;border-radius:.5rem;padding:.55rem .7rem;background:#292733;color:inherit;cursor:pointer}.chess-showcase button:hover{border-color:#8d84ae;background:#322f40}.chess-showcase button:disabled{opacity:.45;cursor:not-allowed}.identity-picker{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.identity-picker legend,.scenario-picker legend{grid-column:1 / -1;padding:0 .2rem;color:#aaa6b7;font-size:.78rem}.identity-picker button[aria-pressed=true],.source-tabs button[aria-selected=true]{border-color:#9d8dff;background:#443c70}.identity-picker code{display:block;margin-top:.2rem;color:#c5bfd6;font-size:.65rem}.try-row{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.scenario-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}.scenario-action select{min-width:0;border:1px solid #504c5d;border-radius:.5rem;padding:.55rem .7rem;background:#292733;color:inherit;font:inherit}.scenario-picker p{margin:.7rem 0 .35rem}.scenario-picker>code{color:#c5bfd6;font-size:.7rem;line-height:1.5}.verdict{min-height:10rem}.verdict.is-allowed{border-color:#4d735c}.verdict.is-denied{border-color:#754956}.verdict.is-allowed strong i{background:#4ade80}.verdict.is-denied strong i{background:#fb7185}.verdict dl{display:grid;gap:.3rem;margin:.85rem 0}.verdict dl div{display:flex;justify-content:space-between;gap:1rem}.verdict dt{color:#9995a6;font-size:.75rem}.verdict dd{margin:0;font-size:.75rem}.verdict p{margin:.75rem 0 0;color:#bbb8c8;font-size:.8rem;line-height:1.5}@media(max-width:820px){.chess-play{grid-template-columns:1fr}}@media(max-width:430px){.chess-showcase{padding:.75rem}.chess-square{font-size:1.8rem}.try-row,.scenario-action{grid-template-columns:1fr}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}:root{--font-ui:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono:"JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;--font-display:var(--font-ui);--fs-display:28px;--fs-title:17px;--fs-body:13px;--fs-label:12px;--fs-data:12.5px;--fs-caption:11.5px;--fs-micro:10.5px;--tracking-micro:.06em;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--bg:#16161a;--panel:#1e1e24;--elevated:#24242c;--ink:#fbfbfe;--muted:#72728a;--faint:#72728a;--line:#2a2a35;--line-2:#3a3a48;--accent:#8f7fe8;--accent-tint:#1e1b2e;--accent-ink:#14102a;--deny:#ededee;--deny-ink:#0c0c0d;--deny-tint:#161618;--diff-add:#57b985;--diff-add-bg:#111d16;--diff-remove:#e2607a;--diff-remove-bg:#221318;--update-added-bg:#19402b;--update-modified-bg:#4a3512;--update-added-ink:#57d685;--update-modified-ink:#ffb300}@media(prefers-color-scheme:light){:root:not([data-theme]){--bg:#fff;--panel:#fafafa;--elevated:#fff;--ink:#16181d;--muted:#646b78;--faint:#9aa1ad;--line:#e7e8ec;--line-2:#d9dbe0;--accent:#6b57d6;--accent-tint:#f4f2fd;--accent-ink:#fff;--deny:#16181d;--deny-ink:#fff;--deny-tint:#f4f4f6;--diff-add:#1f8f4e;--diff-add-bg:#eef8f1;--diff-remove:#c2374b;--diff-remove-bg:#fceef0;--update-added-bg:#d9f4e3;--update-modified-bg:#ffedb3;--update-added-ink:#188038;--update-modified-ink:#9a5b00}}[data-theme=light]{--bg:#fff;--panel:#fafafa;--elevated:#fff;--ink:#16181d;--muted:#646b78;--faint:#9aa1ad;--line:#e7e8ec;--line-2:#d9dbe0;--accent:#6b57d6;--accent-tint:#f4f2fd;--accent-ink:#fff;--deny:#16181d;--deny-ink:#fff;--deny-tint:#f4f4f6;--diff-add:#1f8f4e;--diff-add-bg:#eef8f1;--diff-remove:#c2374b;--diff-remove-bg:#fceef0;--update-added-bg:#d9f4e3;--update-modified-bg:#ffedb3;--update-added-ink:#188038;--update-modified-ink:#9a5b00}[data-pyric-update=added]{--pyric-update-light:var(--update-added-bg);--pyric-update-ink:var(--update-added-ink)}[data-pyric-update=modified]{--pyric-update-light:var(--update-modified-bg);--pyric-update-ink:var(--update-modified-ink)}[data-pyric-update][data-pyric-update-cycle="0"]{animation:1.2s ease-out pyric-update-light-a}[data-pyric-update][data-pyric-update-cycle="1"]{animation:1.2s ease-out pyric-update-light-b}[data-pyric-update][data-pyric-update-cycle="0"] :is(.fs-doctree__key,.fs-doctree__value,[data-rtdb-key],[data-rtdb-value]){animation:1.2s ease-out pyric-update-text-a}[data-pyric-update][data-pyric-update-cycle="1"] :is(.fs-doctree__key,.fs-doctree__value,[data-rtdb-key],[data-rtdb-value]){animation:1.2s ease-out pyric-update-text-b}@keyframes pyric-update-light-a{0%{background-color:var(--pyric-update-light);color:var(--pyric-update-ink)}to{background-color:#0000}}@keyframes pyric-update-light-b{0%{background-color:var(--pyric-update-light);color:var(--pyric-update-ink)}to{background-color:#0000}}@keyframes pyric-update-text-a{0%{color:var(--pyric-update-ink)}}@keyframes pyric-update-text-b{0%{color:var(--pyric-update-ink)}}@media(prefers-reduced-motion:reduce){[data-pyric-update],[data-pyric-update] *{animation:none!important}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono);--spacing:.25rem;--container-md:28rem;--container-xl:36rem;--container-2xl:42rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:var(--bg);--color-panel:var(--panel);--color-elevated:var(--elevated);--color-ink:var(--ink);--color-muted:var(--muted);--color-faint:var(--faint);--color-line:var(--line);--color-line-2:var(--line-2);--color-accent:var(--accent);--color-accent-tint:var(--accent-tint);--color-accent-ink:var(--accent-ink);--color-deny:var(--deny);--color-deny-ink:var(--deny-ink);--color-deny-tint:var(--deny-tint);--color-diff-add:var(--diff-add);--color-diff-add-bg:var(--diff-add-bg);--color-diff-remove:var(--diff-remove);--color-diff-remove-bg:var(--diff-remove-bg);--font-ui:var(--font-ui);--font-display:var(--font-display);--color-content-bg:var(--bg);--color-sidebar-bg:var(--panel);--color-border:var(--line);--color-border-strong:var(--line-2);--color-soft-white:var(--ink);--color-slate-gray:var(--muted);--color-label-white:var(--ink);--color-primary:var(--accent);--color-danger:var(--diff-remove);--color-warning:#f5a623;--color-info:var(--accent);--color-severity-low:var(--muted);--color-severity-medium:#f5a623;--color-severity-high:var(--diff-remove)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font-family:var(--font-ui);-webkit-font-smoothing:antialiased;font-size:13px;line-height:1.5}.mono{font-family:var(--font-mono)}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-full{height:100%}.min-h-0{min-height:0}.w-2{width:calc(var(--spacing) * 2)}.w-3{width:calc(var(--spacing) * 3)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-md{max-width:var(--container-md)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.grid-cols-\[1fr_320px\]{grid-template-columns:1fr 320px}.grid-cols-\[18rem_minmax\(0\,1fr\)\]{grid-template-columns:18rem minmax(0,1fr)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-y-1{row-gap:var(--spacing)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-border{border-color:var(--color-border)}.border-line{border-color:var(--color-line)}.bg-content-bg{background-color:var(--color-content-bg)}.bg-current{background-color:currentColor}.bg-danger\/10{background-color:var(--color-danger)}@supports (color:color-mix(in lab,red,red)){.bg-danger\/10{background-color:color-mix(in oklab,var(--color-danger) 10%,transparent)}}.bg-danger\/15{background-color:var(--color-danger)}@supports (color:color-mix(in lab,red,red)){.bg-danger\/15{background-color:color-mix(in oklab,var(--color-danger) 15%,transparent)}}.bg-panel{background-color:var(--color-panel)}.bg-primary\/15{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/15{background-color:color-mix(in oklab,var(--color-primary) 15%,transparent)}}.bg-severity-high{background-color:var(--color-severity-high)}.bg-severity-low{background-color:var(--color-severity-low)}.bg-severity-medium{background-color:var(--color-severity-medium)}.bg-sidebar-bg{background-color:var(--color-sidebar-bg)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-5{padding:calc(var(--spacing) * 5)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-16{padding-block:calc(var(--spacing) * 16)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.6rem\]{font-size:.6rem}.text-\[0\.7em\]{font-size:.7em}.text-\[0\.7rem\]{font-size:.7rem}.text-\[0\.65rem\]{font-size:.65rem}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-danger{color:var(--color-danger)}.text-diff-add{color:var(--color-diff-add)}.text-info{color:var(--color-info)}.text-muted{color:var(--color-muted)}.text-primary,.text-primary\/70{color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.text-primary\/70{color:color-mix(in oklab,var(--color-primary) 70%,transparent)}}.text-slate-gray,.text-slate-gray\/80{color:var(--color-slate-gray)}@supports (color:color-mix(in lab,red,red)){.text-slate-gray\/80{color:color-mix(in oklab,var(--color-slate-gray) 80%,transparent)}}.text-soft-white{color:var(--color-soft-white)}.text-warning{color:var(--color-warning)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-primary\/40{-webkit-text-decoration-color:var(--color-primary);text-decoration-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.decoration-primary\/40{-webkit-text-decoration-color:color-mix(in oklab,var(--color-primary) 40%,transparent);text-decoration-color:color-mix(in oklab,var(--color-primary) 40%,transparent)}}.underline-offset-2{text-underline-offset:2px}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.placeholder\:text-slate-gray::placeholder{color:var(--color-slate-gray)}@media(hover:hover){.hover\:bg-content-bg:hover{background-color:var(--color-content-bg)}.hover\:bg-primary\/25:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/25:hover{background-color:color-mix(in oklab,var(--color-primary) 25%,transparent)}}.hover\:text-soft-white:hover{color:var(--color-soft-white)}.hover\:decoration-primary:hover{-webkit-text-decoration-color:var(--color-primary);text-decoration-color:var(--color-primary)}}.disabled\:opacity-40:disabled{opacity:.4}.\[\&_\[data-pyric-empty-body\]\]\:mt-2 [data-pyric-empty-body]{margin-top:calc(var(--spacing) * 2)}.\[\&_\[data-pyric-empty-body\]\]\:max-w-md [data-pyric-empty-body]{max-width:var(--container-md)}.\[\&_\[data-pyric-empty-body\]\]\:text-sm [data-pyric-empty-body]{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.\[\&_\[data-pyric-empty-body\]\]\:leading-relaxed [data-pyric-empty-body]{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_\[data-pyric-empty-body\]\]\:text-slate-gray [data-pyric-empty-body]{color:var(--color-slate-gray)}.\[\&_\[data-pyric-empty-title\]\]\:text-base [data-pyric-empty-title]{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.\[\&_\[data-pyric-empty-title\]\]\:font-semibold [data-pyric-empty-title]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.\[\&_\[data-pyric-empty-title\]\]\:text-soft-white [data-pyric-empty-title]{color:var(--color-soft-white)}.\[\&_\[data-pyric-selected\]\]\:text-primary [data-pyric-selected]{color:var(--color-primary)}.\[\&_button\]\:text-left button{text-align:left}}[data-pyric-ui=confirm-portal]{z-index:2000;place-items:center;padding:20px;display:grid;position:fixed;inset:0}[data-pyric-ui=confirm-overlay]{pointer-events:none;background:var(--bg);position:absolute;inset:0}@supports (color:color-mix(in lab,red,red)){[data-pyric-ui=confirm-overlay]{background:color-mix(in srgb,var(--bg) 72%,transparent)}}[data-pyric-ui=confirm-overlay]{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}[data-pyric-ui=confirm-dialog]{border:1px solid var(--line-2);background:var(--elevated);width:min(440px,100%);color:var(--ink);box-shadow:0 18px 60px var(--bg);border-radius:10px;padding:20px;position:relative}@supports (color:color-mix(in lab,red,red)){[data-pyric-ui=confirm-dialog]{box-shadow:0 18px 60px color-mix(in srgb,var(--bg) 75%,transparent)}}[data-pyric-confirm-title]{font-size:16px;font-weight:650}[data-pyric-confirm-body]{color:var(--muted);margin-top:10px;font-size:13px;line-height:1.55}[data-pyric-confirm-body] ul{max-height:180px;font-family:var(--font-mono);margin:0;padding-left:20px;font-size:12px;overflow:auto}[data-pyric-confirm-actions]{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}[data-pyric-confirm-actions] button{appearance:none;border:1px solid var(--line-2);background:var(--panel);color:var(--ink);font:inherit;cursor:pointer;border-radius:7px;padding:7px 13px;font-size:12.5px}[data-pyric-confirm-confirm][data-pyric-destructive]{border-color:var(--diff-remove);background:var(--diff-remove);color:var(--deny-ink)}[data-pyric-ui=toast-region]{z-index:2100;gap:8px;width:min(360px,100vw - 36px);margin:0;padding:0;list-style:none;display:grid;position:fixed;top:18px;right:18px}[data-pyric-toast]{border:1px solid var(--line-2);background:var(--elevated);color:var(--ink);box-shadow:0 12px 36px var(--bg);border-radius:9px;padding:12px 36px 12px 14px;position:relative}@supports (color:color-mix(in lab,red,red)){[data-pyric-toast]{box-shadow:0 12px 36px color-mix(in srgb,var(--bg) 65%,transparent)}}[data-pyric-toast][data-pyric-toast-kind=error]{border-color:var(--diff-remove)}@supports (color:color-mix(in lab,red,red)){[data-pyric-toast][data-pyric-toast-kind=error]{border-color:color-mix(in srgb,var(--diff-remove) 55%,var(--line))}}[data-pyric-toast-title]{font-weight:600}[data-pyric-toast-body]{color:var(--muted);margin-top:5px;font-size:12px}[data-pyric-toast-dismiss]{color:var(--faint);cursor:pointer;background:0 0;border:0;position:absolute;top:8px;right:8px}.studio-chip{border:1px solid var(--line);background:var(--elevated);color:var(--muted);font-size:var(--fs-caption);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:3px 9px;line-height:1.2;text-decoration:none;display:inline-flex}.studio-selection-count{font-family:var(--font-mono);color:var(--ink);font-size:12px}.studio-selection-delete{appearance:none;border:1px solid var(--diff-remove)}@supports (color:color-mix(in lab,red,red)){.studio-selection-delete{border:1px solid color-mix(in srgb,var(--diff-remove) 45%,var(--line))}}.studio-selection-delete{background:var(--elevated);color:var(--diff-remove);font:inherit;cursor:pointer;border-radius:7px;padding:5px 11px;font-size:12px}.studio-selection-delete:disabled{opacity:.45;cursor:default}a.studio-chip:hover{border-color:var(--line-2);color:var(--ink)}.studio-chip__dot{background:var(--faint);border-radius:999px;flex:none;width:6px;height:6px}.studio-chip--live .studio-chip__dot{background:var(--accent)}.studio-chip--warn{color:var(--ink);border-color:var(--diff-remove)}@supports (color:color-mix(in lab,red,red)){.studio-chip--warn{border-color:color-mix(in srgb,var(--diff-remove) 45%,var(--line))}}.studio-chip--warn .studio-chip__dot{background:var(--diff-remove)}.studio-presence{display:inline-flex;position:relative}.studio-presence__trigger{appearance:none;font:inherit;cursor:pointer}.studio-presence__trigger:hover{border-color:var(--line-2);color:var(--ink)}.studio-presence__backdrop{z-index:40;position:fixed;inset:0}.studio-presence__panel{z-index:50;border:1px solid var(--line);background:var(--elevated);width:min(320px,100vw - 24px);box-shadow:0 8px 24px var(--ink);border-radius:10px;padding:12px 12px 10px;position:absolute;top:calc(100% + 6px);right:0}@supports (color:color-mix(in lab,red,red)){.studio-presence__panel{box-shadow:0 8px 24px color-mix(in srgb,var(--ink) 12%,transparent)}}.studio-presence__panel{color:var(--ink)}.studio-presence__lead{font-size:var(--fs-caption);color:var(--muted);margin:0 0 10px;line-height:1.45}.studio-presence__list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.studio-presence__item{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:8px 9px}.studio-presence__item-head{align-items:center;gap:8px;margin-bottom:2px;display:flex}.studio-presence__kind{font-size:var(--fs-caption);color:var(--ink);font-weight:600}.studio-presence__this{letter-spacing:.04em;text-transform:uppercase;color:var(--accent);font-size:10px;font-weight:700}.studio-presence__route{font-family:var(--font-mono);color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;overflow:hidden}.studio-presence__meta{color:var(--faint);margin-top:2px;font-size:11px}.studio-presence__boundary{color:var(--faint);margin:10px 0 0;font-size:11px;line-height:1.45}.studio-surface{container-type:inline-size}.studio-surface__intro{gap:6px;max-width:680px;margin-bottom:22px;display:grid}.studio-surface__eyebrow{color:var(--accent);font-size:var(--fs-micro);letter-spacing:var(--tracking-micro);text-transform:uppercase;margin:0;font-weight:700}.studio-surface__title{color:var(--ink);margin:0;font-size:clamp(18px,2vw,24px);font-weight:650;line-height:1.2}.studio-surface__copy{color:var(--muted);font-size:var(--fs-body);margin:0;line-height:1.6}.studio-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;display:grid}.studio-card,.studio-panel{border:1px solid var(--line);background:var(--panel);border-radius:8px}.studio-card{appearance:none;min-height:132px;color:inherit;text-align:left;align-content:start;gap:10px;padding:16px;display:grid}button.studio-card{cursor:pointer}button.studio-card:hover{border-color:var(--line-2);background:var(--panel)}@supports (color:color-mix(in lab,red,red)){button.studio-card:hover{background:color-mix(in srgb,var(--panel) 80%,var(--elevated))}}.studio-badge{border:1px solid var(--line-2);color:var(--faint);font-size:var(--fs-caption);border-radius:999px;justify-content:center;align-items:center;padding:2px 7px;line-height:1.2;display:inline-flex}.studio-button{appearance:none;border:1px solid var(--line);background:var(--elevated);min-height:32px;color:var(--ink);font:inherit;font-size:var(--fs-label);cursor:pointer;border-radius:7px;justify-content:center;align-items:center;padding:7px 11px;display:inline-flex}.studio-button:hover{border-color:var(--line-2)}.studio-button:disabled{cursor:default;opacity:.55}.studio-button--primary{border-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.studio-button--primary{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}}.studio-button--primary{color:var(--accent)}.studio-button--danger{color:var(--diff-remove)}.studio-panel{padding:16px}.studio-panel__title{color:var(--ink);margin:0 0 10px;font-size:14px;font-weight:650}.studio-empty{place-items:center;min-height:min(560px,70vh);display:grid!important}.studio-empty__panel{border:1px dashed var(--line-2);background:var(--panel);text-align:center;border-radius:8px;width:min(100%,520px);padding:28px}.studio__palette-backdrop{background:var(--bg);position:fixed;inset:0}@supports (color:color-mix(in lab,red,red)){.studio__palette-backdrop{background:color-mix(in srgb,var(--bg) 55%,transparent)}}.studio__palette-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:50;justify-content:center;align-items:flex-start;padding-top:14vh;display:flex}.studio__palette{background:var(--elevated);border:1px solid var(--line-2);border-radius:12px;width:100%;max-width:560px;overflow:hidden;box-shadow:0 18px 48px -12px #00000059}.studio__palette-cmd{border-bottom:1px solid var(--line);align-items:center;gap:9px;padding:12px 14px;display:flex}.studio__palette-input{color:var(--ink);font:inherit;background:0 0;border:none;outline:none;flex:1;font-size:14px}.studio__palette-input::placeholder{color:var(--faint)}.studio__palette-list{max-height:52vh;margin:0;padding:6px;list-style:none;overflow:auto}.studio__palette-item{text-align:left;appearance:none;width:100%;font:inherit;cursor:pointer;background:0 0;border:none;border-radius:8px;flex-direction:column;gap:2px;padding:9px 11px;display:flex}.studio__palette-item[data-active]{background:var(--accent-tint)}.studio__palette-label{color:var(--ink);font-size:13px;font-weight:500}.studio__palette-item[aria-current=page] .studio__palette-label:after{content:"current";text-transform:uppercase;letter-spacing:.04em;color:var(--accent);margin-left:8px;font-size:10px;font-weight:400}.studio__palette-blurb{color:var(--muted);font-size:12px;line-height:1.45}.studio__palette-empty{text-align:center;color:var(--faint);padding:16px;font-size:13px}.studio__palette-run .studio__palette-label{color:var(--accent)}.studio__palette-running{color:var(--muted);margin:0;padding:16px;font-size:13px}.studio__palette-error{color:var(--diff-remove);margin:0;padding:4px 16px 14px;font-size:12px;line-height:1.5}@media(max-width:760px){.studio__palette-backdrop{padding-top:8vh}.studio__palette{max-width:none;margin:0 12px}.ai-set__field{flex-direction:column;align-items:stretch}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}.studio-loading[data-astro-cid-w5sm6wlz]{margin:0;min-height:100vh;display:grid;place-items:center;background:#16161a;color:#a1a1aa;font:14px Inter,system-ui,sans-serif}
|