vskill 0.5.87 → 0.5.89

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 (70) hide show
  1. package/README.md +28 -0
  2. package/agents.json +124 -0
  3. package/dist/agents/agents-registry.d.ts +29 -5
  4. package/dist/agents/agents-registry.js +133 -12
  5. package/dist/agents/agents-registry.js.map +1 -1
  6. package/dist/commands/add.d.ts +2 -16
  7. package/dist/commands/add.js +3 -89
  8. package/dist/commands/add.js.map +1 -1
  9. package/dist/eval/plugin-scanner.d.ts +14 -0
  10. package/dist/eval/plugin-scanner.js +237 -0
  11. package/dist/eval/plugin-scanner.js.map +1 -0
  12. package/dist/eval/skill-scanner.d.ts +18 -0
  13. package/dist/eval/skill-scanner.js +82 -9
  14. package/dist/eval/skill-scanner.js.map +1 -1
  15. package/dist/eval/standalone-skill-scanner.d.ts +7 -0
  16. package/dist/eval/standalone-skill-scanner.js +76 -0
  17. package/dist/eval/standalone-skill-scanner.js.map +1 -0
  18. package/dist/eval-server/api-routes.d.ts +1 -0
  19. package/dist/eval-server/api-routes.js +12 -1
  20. package/dist/eval-server/api-routes.js.map +1 -1
  21. package/dist/eval-server/eval-server.d.ts +9 -1
  22. package/dist/eval-server/eval-server.js +51 -1
  23. package/dist/eval-server/eval-server.js.map +1 -1
  24. package/dist/eval-server/workspace-routes.d.ts +14 -0
  25. package/dist/eval-server/workspace-routes.js +108 -0
  26. package/dist/eval-server/workspace-routes.js.map +1 -0
  27. package/dist/eval-server/workspace-store.d.ts +36 -0
  28. package/dist/eval-server/workspace-store.js +144 -0
  29. package/dist/eval-server/workspace-store.js.map +1 -0
  30. package/dist/eval-ui/assets/{CommandPalette-BmFgVfCB.js → CommandPalette-DrPj2MN0.js} +1 -1
  31. package/dist/eval-ui/assets/{UpdateDropdown-DyH9TWvR.js → UpdateDropdown-CXwYZ5VE.js} +1 -1
  32. package/dist/eval-ui/assets/index-D5A8Jbqy.css +1 -0
  33. package/dist/eval-ui/assets/index-Dg6Nwzn_.js +90 -0
  34. package/dist/eval-ui/index.html +2 -2
  35. package/dist/shared/copy-plugin-filtered.d.ts +13 -0
  36. package/dist/shared/copy-plugin-filtered.js +97 -0
  37. package/dist/shared/copy-plugin-filtered.js.map +1 -0
  38. package/dist/studio/lib/ops-log.d.ts +10 -0
  39. package/dist/studio/lib/ops-log.js +99 -0
  40. package/dist/studio/lib/ops-log.js.map +1 -0
  41. package/dist/studio/lib/provenance.d.ts +4 -0
  42. package/dist/studio/lib/provenance.js +41 -0
  43. package/dist/studio/lib/provenance.js.map +1 -0
  44. package/dist/studio/lib/scope-transfer.d.ts +28 -0
  45. package/dist/studio/lib/scope-transfer.js +112 -0
  46. package/dist/studio/lib/scope-transfer.js.map +1 -0
  47. package/dist/studio/routes/index.d.ts +2 -0
  48. package/dist/studio/routes/index.js +19 -0
  49. package/dist/studio/routes/index.js.map +1 -0
  50. package/dist/studio/routes/ops.d.ts +2 -0
  51. package/dist/studio/routes/ops.js +63 -0
  52. package/dist/studio/routes/ops.js.map +1 -0
  53. package/dist/studio/routes/promote.d.ts +2 -0
  54. package/dist/studio/routes/promote.js +118 -0
  55. package/dist/studio/routes/promote.js.map +1 -0
  56. package/dist/studio/routes/revert.d.ts +2 -0
  57. package/dist/studio/routes/revert.js +97 -0
  58. package/dist/studio/routes/revert.js.map +1 -0
  59. package/dist/studio/routes/test-install.d.ts +2 -0
  60. package/dist/studio/routes/test-install.js +102 -0
  61. package/dist/studio/routes/test-install.js.map +1 -0
  62. package/dist/studio/types.d.ts +48 -0
  63. package/dist/studio/types.js +11 -0
  64. package/dist/studio/types.js.map +1 -0
  65. package/dist/utils/agent-filter.js +9 -1
  66. package/dist/utils/agent-filter.js.map +1 -1
  67. package/package.json +4 -1
  68. package/scripts/preuninstall.cjs +9 -2
  69. package/dist/eval-ui/assets/index-C4XKAX1s.css +0 -1
  70. package/dist/eval-ui/assets/index-DQDnt_gJ.js +0 -89
@@ -0,0 +1,118 @@
1
+ // ---------------------------------------------------------------------------
2
+ // promote route — POST /api/skills/:plugin/:skill/promote
3
+ // ---------------------------------------------------------------------------
4
+ // AC-US1-01 (SSE sequence started → copied → indexed → done)
5
+ // AC-US1-03 (collision → 409 {ok:false,code:"collision",path})
6
+ // AC-US1-04 (.vskill-meta.json provenance sidecar written to dest)
7
+ // ---------------------------------------------------------------------------
8
+ import { randomUUID } from "node:crypto";
9
+ import { homedir } from "node:os";
10
+ import { existsSync } from "node:fs";
11
+ import { sendJson } from "../../eval-server/router.js";
12
+ import { initSSE, sendSSE, sendSSEDone } from "../../eval-server/sse-helpers.js";
13
+ import { transfer, CollisionError, MissingSourceError, resolveScopePath, } from "../lib/scope-transfer.js";
14
+ import { writeProvenance } from "../lib/provenance.js";
15
+ import { appendOp } from "../lib/ops-log.js";
16
+ function parseQuery(url) {
17
+ return new URL(url || "/", "http://localhost").searchParams;
18
+ }
19
+ export function registerPromoteRoute(router, root, home = homedir()) {
20
+ router.post("/api/skills/:plugin/:skill/promote", async (req, res, params) => {
21
+ const { plugin, skill } = params;
22
+ const query = parseQuery(req.url);
23
+ const overwrite = query.get("overwrite") === "true";
24
+ const fromScopeRaw = (query.get("from") || "installed");
25
+ const fromScope = fromScopeRaw === "global" ? "global" : "installed";
26
+ const sourcePath = resolveScopePath(fromScope, root, skill, home);
27
+ const destPath = resolveScopePath("own", root, skill, home);
28
+ const opId = randomUUID();
29
+ // Pre-validate BEFORE opening the SSE stream so collisions and missing-
30
+ // source errors return clean HTTP status codes (409 / 404) per AC-US1-03.
31
+ if (!existsSync(sourcePath)) {
32
+ sendJson(res, { ok: false, code: "missing-source", path: sourcePath }, 404, req);
33
+ return;
34
+ }
35
+ if (existsSync(destPath) && !overwrite) {
36
+ sendJson(res, { ok: false, code: "collision", path: destPath }, 409, req);
37
+ return;
38
+ }
39
+ const emit = (e) => {
40
+ if (!res.headersSent)
41
+ initSSE(res, req);
42
+ sendSSE(res, e.type, e);
43
+ };
44
+ try {
45
+ // started — emitted before copy so client can capture FLIP rect.
46
+ emit({
47
+ type: "started",
48
+ opId,
49
+ skillId: `${plugin}/${skill}`,
50
+ fromScope,
51
+ toScope: "own",
52
+ sourcePath,
53
+ destPath,
54
+ });
55
+ const result = await transfer({ plugin, skill, fromScope, toScope: "own", root, home, overwrite }, emit);
56
+ // Provenance sidecar (AC-US1-04)
57
+ const provenance = {
58
+ promotedFrom: fromScope,
59
+ sourcePath,
60
+ promotedAt: Date.now(),
61
+ };
62
+ await writeProvenance(result.destPath, provenance);
63
+ // Indexed event — scanner refresh hook (250ms debounce per ADR; for now
64
+ // we just signal the milestone; the actual scanner runs out-of-band in
65
+ // the live system).
66
+ emit({ type: "indexed" });
67
+ // Op-log append BEFORE done so subscribers see the row by the time the
68
+ // client receives the done event.
69
+ const op = {
70
+ id: opId,
71
+ ts: Date.now(),
72
+ op: "promote",
73
+ skillId: `${plugin}/${skill}`,
74
+ fromScope,
75
+ toScope: "own",
76
+ paths: { source: sourcePath, dest: result.destPath },
77
+ actor: "studio-ui",
78
+ details: { filesWritten: result.filesWritten },
79
+ };
80
+ await appendOp(op);
81
+ sendSSEDone(res, { type: "done", opId, destPath: result.destPath });
82
+ }
83
+ catch (err) {
84
+ if (err instanceof CollisionError) {
85
+ // 409 — JSON, not SSE (headers not yet sent because emit() defers initSSE
86
+ // until the FIRST event; collision is detected inside transfer() AFTER
87
+ // started has fired, so we may already have SSE headers… handle both).
88
+ if (res.headersSent) {
89
+ sendSSE(res, "error", { type: "error", code: "collision", message: err.message, path: err.path });
90
+ res.end();
91
+ }
92
+ else {
93
+ sendJson(res, { ok: false, code: "collision", path: err.path }, 409, req);
94
+ }
95
+ return;
96
+ }
97
+ if (err instanceof MissingSourceError) {
98
+ if (res.headersSent) {
99
+ sendSSE(res, "error", { type: "error", code: "missing-source", message: err.message });
100
+ res.end();
101
+ }
102
+ else {
103
+ sendJson(res, { ok: false, code: "missing-source", path: err.path }, 404, req);
104
+ }
105
+ return;
106
+ }
107
+ const message = err instanceof Error ? err.message : "unknown error";
108
+ if (res.headersSent) {
109
+ sendSSE(res, "error", { type: "error", code: "io-error", message });
110
+ res.end();
111
+ }
112
+ else {
113
+ sendJson(res, { ok: false, code: "io-error", error: message }, 500, req);
114
+ }
115
+ }
116
+ });
117
+ }
118
+ //# sourceMappingURL=promote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promote.js","sourceRoot":"","sources":["../../../src/studio/routes/promote.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0DAA0D;AAC1D,8EAA8E;AAC9E,6DAA6D;AAC7D,+DAA+D;AAC/D,mEAAmE;AACnE,8EAA8E;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAQ7C,SAAS,UAAU,CAAC,GAAuB;IACzC,OAAO,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,EAAE,kBAAkB,CAAC,CAAC,YAAY,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,IAAY,EACZ,OAAe,OAAO,EAAE;IAExB,MAAM,CAAC,IAAI,CACT,oCAAoC,EACpC,KAAK,EAAE,GAAyB,EAAE,GAAwB,EAAE,MAA8B,EAAE,EAAE;QAC5F,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAkC,CAAC;QAC7D,M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AK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;YACrE,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;gBACpB,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;gBACpE,GAAG,CAAC,GAAG,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;YAC3E,CAAC;QACH,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Router } from "../../eval-server/router.js";
2
+ export declare function registerRevertRoute(router: Router, root: string, home?: string): void;
@@ -0,0 +1,97 @@
1
+ // ---------------------------------------------------------------------------
2
+ // revert route — POST /api/skills/:plugin/:skill/revert
3
+ // ---------------------------------------------------------------------------
4
+ // AC-US3-01 (SSE started → deleted → indexed → done; OWN dir removed)
5
+ // AC-US3-03/04 (provenance-gated delete — missing .vskill-meta.json → 400
6
+ // {code:"no-provenance"}, no fs change; the original promote
7
+ // op in ops-log is preserved — a new revert op is appended)
8
+ // ---------------------------------------------------------------------------
9
+ import { randomUUID } from "node:crypto";
10
+ import { homedir } from "node:os";
11
+ import { existsSync, readdirSync, statSync, rmSync } from "node:fs";
12
+ import { join } from "node:path";
13
+ import { sendJson } from "../../eval-server/router.js";
14
+ import { initSSE, sendSSE, sendSSEDone } from "../../eval-server/sse-helpers.js";
15
+ import { resolveScopePath } from "../lib/scope-transfer.js";
16
+ import { readProvenance } from "../lib/provenance.js";
17
+ import { appendOp } from "../lib/ops-log.js";
18
+ function countFiles(dir) {
19
+ let n = 0;
20
+ if (!existsSync(dir))
21
+ return 0;
22
+ for (const entry of readdirSync(dir)) {
23
+ const full = join(dir, entry);
24
+ const st = statSync(full);
25
+ if (st.isDirectory())
26
+ n += countFiles(full);
27
+ else if (st.isFile())
28
+ n += 1;
29
+ }
30
+ return n;
31
+ }
32
+ export function registerRevertRoute(router, root, home = homedir()) {
33
+ router.post("/api/skills/:plugin/:skill/revert", async (req, res, params) => {
34
+ const { plugin, skill } = params;
35
+ const ownDir = resolveScopePath("own", root, skill, home);
36
+ const opId = randomUUID();
37
+ if (!existsSync(ownDir)) {
38
+ sendJson(res, { ok: false, code: "missing-source", path: ownDir }, 404, req);
39
+ return;
40
+ }
41
+ // Provenance gate (AC-US3-04) — refuse to delete a skill that was NOT
42
+ // promoted, since that would destroy user-authored work.
43
+ const provenance = await readProvenance(ownDir);
44
+ if (!provenance) {
45
+ sendJson(res, { ok: false, code: "no-provenance", path: ownDir }, 400, req);
46
+ return;
47
+ }
48
+ const emit = (e) => {
49
+ if (!res.headersSent)
50
+ initSSE(res, req);
51
+ sendSSE(res, e.type, e);
52
+ };
53
+ try {
54
+ // Capture target scope for logging BEFORE the delete.
55
+ const toScope = provenance.promotedFrom;
56
+ const filesDeleted = countFiles(ownDir);
57
+ emit({
58
+ type: "started",
59
+ opId,
60
+ skillId: `${plugin}/${skill}`,
61
+ fromScope: "own",
62
+ toScope,
63
+ sourcePath: ownDir,
64
+ destPath: provenance.sourcePath,
65
+ });
66
+ rmSync(ownDir, { recursive: true, force: true });
67
+ emit({ type: "deleted", filesDeleted });
68
+ emit({ type: "indexed" });
69
+ // Append-only: a NEW revert op is appended. We do NOT mutate the
70
+ // original promote op.
71
+ const op = {
72
+ id: opId,
73
+ ts: Date.now(),
74
+ op: "revert",
75
+ skillId: `${plugin}/${skill}`,
76
+ fromScope: "own",
77
+ toScope,
78
+ paths: { source: ownDir, dest: provenance.sourcePath },
79
+ actor: "studio-ui",
80
+ details: { filesDeleted },
81
+ };
82
+ await appendOp(op);
83
+ sendSSEDone(res, { type: "done", opId, destPath: ownDir });
84
+ }
85
+ catch (err) {
86
+ const message = err instanceof Error ? err.message : "unknown error";
87
+ if (res.headersSent) {
88
+ sendSSE(res, "error", { type: "error", code: "io-error", message });
89
+ res.end();
90
+ }
91
+ else {
92
+ sendJson(res, { ok: false, code: "io-error", error: message }, 500, req);
93
+ }
94
+ }
95
+ });
96
+ }
97
+ //# sourceMappingURL=revert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revert.js","sourceRoot":"","sources":["../../../src/studio/routes/revert.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,wDAAwD;AACxD,8EAA8E;AAC9E,sEAAsE;AACtE,0EAA0E;AAC1E,4EAA4E;AAC5E,2EAA2E;AAC3E,8EAA8E;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,SAAS,UAAU,CAAC,GAAW;IAC7B,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,MAAM,KAAK,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9B,MAAM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,EAAE,MAAM,EAAE,CAAC,CAAC;QAC7D,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;YACrE,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;gBACpB,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;gBACpE,GAAG,CAAC,GAAG,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;YAC3E,CAAC;QACH,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { Router } from "../../eval-server/router.js";
2
+ export declare function registerTestInstallRoute(router: Router, root: string, home?: string): void;
@@ -0,0 +1,102 @@
1
+ // ---------------------------------------------------------------------------
2
+ // test-install route — POST /api/skills/:plugin/:skill/test-install
3
+ // ---------------------------------------------------------------------------
4
+ // AC-US2-01 (SSE started→copied→indexed→done; reuses copyPluginFiltered via
5
+ // transfer() in scope-transfer lib — no duplicate copy logic)
6
+ // AC-US2-02 (?dest=global → ~/.claude/skills; default INSTALLED)
7
+ // AC-US2-03 (dest appears after scanner refresh — signaled via indexed event)
8
+ // AC-US2-04 (collision → 409 without ?overwrite)
9
+ // ---------------------------------------------------------------------------
10
+ import { randomUUID } from "node:crypto";
11
+ import { homedir } from "node:os";
12
+ import { existsSync } from "node:fs";
13
+ import { sendJson } from "../../eval-server/router.js";
14
+ import { initSSE, sendSSE, sendSSEDone } from "../../eval-server/sse-helpers.js";
15
+ import { transfer, CollisionError, MissingSourceError, resolveScopePath, } from "../lib/scope-transfer.js";
16
+ import { appendOp } from "../lib/ops-log.js";
17
+ function parseQuery(url) {
18
+ return new URL(url || "/", "http://localhost").searchParams;
19
+ }
20
+ export function registerTestInstallRoute(router, root, home = homedir()) {
21
+ router.post("/api/skills/:plugin/:skill/test-install", async (req, res, params) => {
22
+ const { plugin, skill } = params;
23
+ const query = parseQuery(req.url);
24
+ const overwrite = query.get("overwrite") === "true";
25
+ const destRaw = query.get("dest");
26
+ const toScope = destRaw === "global" ? "global" : "installed";
27
+ const sourcePath = resolveScopePath("own", root, skill, home);
28
+ const destPath = resolveScopePath(toScope, root, skill, home);
29
+ const opId = randomUUID();
30
+ // Pre-validate so collisions / missing-source return clean HTTP codes.
31
+ if (!existsSync(sourcePath)) {
32
+ sendJson(res, { ok: false, code: "missing-source", path: sourcePath }, 404, req);
33
+ return;
34
+ }
35
+ if (existsSync(destPath) && !overwrite) {
36
+ sendJson(res, { ok: false, code: "collision", path: destPath }, 409, req);
37
+ return;
38
+ }
39
+ const emit = (e) => {
40
+ if (!res.headersSent)
41
+ initSSE(res, req);
42
+ sendSSE(res, e.type, e);
43
+ };
44
+ try {
45
+ emit({
46
+ type: "started",
47
+ opId,
48
+ skillId: `${plugin}/${skill}`,
49
+ fromScope: "own",
50
+ toScope,
51
+ sourcePath,
52
+ destPath,
53
+ });
54
+ const result = await transfer({ plugin, skill, fromScope: "own", toScope, root, home, overwrite }, emit);
55
+ emit({ type: "indexed" });
56
+ const op = {
57
+ id: opId,
58
+ ts: Date.now(),
59
+ op: "test-install",
60
+ skillId: `${plugin}/${skill}`,
61
+ fromScope: "own",
62
+ toScope,
63
+ paths: { source: sourcePath, dest: result.destPath },
64
+ actor: "studio-ui",
65
+ details: { filesWritten: result.filesWritten },
66
+ };
67
+ await appendOp(op);
68
+ sendSSEDone(res, { type: "done", opId, destPath: result.destPath });
69
+ }
70
+ catch (err) {
71
+ if (err instanceof CollisionError) {
72
+ if (res.headersSent) {
73
+ sendSSE(res, "error", { type: "error", code: "collision", message: err.message, path: err.path });
74
+ res.end();
75
+ }
76
+ else {
77
+ sendJson(res, { ok: false, code: "collision", path: err.path }, 409, req);
78
+ }
79
+ return;
80
+ }
81
+ if (err instanceof MissingSourceError) {
82
+ if (res.headersSent) {
83
+ sendSSE(res, "error", { type: "error", code: "missing-source", message: err.message });
84
+ res.end();
85
+ }
86
+ else {
87
+ sendJson(res, { ok: false, code: "missing-source", path: err.path }, 404, req);
88
+ }
89
+ return;
90
+ }
91
+ const message = err instanceof Error ? err.message : "unknown error";
92
+ if (res.headersSent) {
93
+ sendSSE(res, "error", { type: "error", code: "io-error", message });
94
+ res.end();
95
+ }
96
+ else {
97
+ sendJson(res, { ok: false, code: "io-error", error: message }, 500, req);
98
+ }
99
+ }
100
+ });
101
+ }
102
+ //# sourceMappingURL=test-install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-install.js","sourceRoot":"","sources":["../../../src/studio/routes/test-install.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oEAAoE;AACpE,8EAA8E;AAC9E,4EAA4E;AAC5E,0EAA0E;AAC1E,iEAAiE;AACjE,8EAA8E;AAC9E,iDAAiD;AACjD,8EAA8E;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,SAAS,UAAU,CAAC,GAAuB;IACzC,OAAO,IAAI,GAAG,CAAC,GAAG,IAAI,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ACrE,IAAI,GAAG,CAAC,WAAW,EAAE,CAAC;gBACpB,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;gBACpE,GAAG,CAAC,GAAG,EAAE,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;YAC3E,CAAC;QACH,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,48 @@
1
+ export type SkillScope = "own" | "installed" | "global";
2
+ export type StudioOpName = "promote" | "revert" | "test-install" | "skill-create" | "skill-edit" | "skill-delete" | "model-config-change";
3
+ export type StudioOp = {
4
+ id: string;
5
+ ts: number;
6
+ op: StudioOpName;
7
+ skillId?: string;
8
+ fromScope?: SkillScope;
9
+ toScope?: SkillScope;
10
+ paths?: {
11
+ source: string;
12
+ dest: string;
13
+ };
14
+ actor: "studio-ui";
15
+ details?: Record<string, unknown>;
16
+ };
17
+ export type Provenance = {
18
+ promotedFrom: "installed" | "global";
19
+ sourcePath: string;
20
+ promotedAt: number;
21
+ sourceSkillVersion?: string;
22
+ };
23
+ export type TransferEventName = "started" | "copied" | "deleted" | "indexed" | "done" | "error";
24
+ export type TransferEvent = {
25
+ type: "started";
26
+ opId: string;
27
+ skillId: string;
28
+ fromScope: string;
29
+ toScope: string;
30
+ sourcePath: string;
31
+ destPath: string;
32
+ } | {
33
+ type: "copied";
34
+ filesWritten: number;
35
+ } | {
36
+ type: "deleted";
37
+ filesDeleted: number;
38
+ } | {
39
+ type: "indexed";
40
+ } | {
41
+ type: "done";
42
+ opId: string;
43
+ destPath: string;
44
+ } | {
45
+ type: "error";
46
+ code: string;
47
+ message: string;
48
+ };
@@ -0,0 +1,11 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Studio scope-transfer — server-side shared types
3
+ // ---------------------------------------------------------------------------
4
+ // Source of truth for StudioOp, Provenance, and TransferEvent. The client
5
+ // (src/eval-ui/src/types.ts) mirrors these shapes manually per the existing
6
+ // client/server type-sync pattern.
7
+ //
8
+ // See .specweave/increments/0688-studio-skill-scope-transfer/plan.md §5.
9
+ // ---------------------------------------------------------------------------
10
+ export {};
11
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/studio/types.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,mDAAmD;AACnD,8EAA8E;AAC9E,0EAA0E;AAC1E,4EAA4E;AAC5E,mCAAmC;AACnC,EAAE;AACF,yEAAyE;AACzE,8EAA8E"}
@@ -27,6 +27,14 @@ export function filterAgents(agents, requestedIds) {
27
27
  throw new Error(`Unknown agent(s): ${missing.join(", ")}. Available: ${availableList}`);
28
28
  }
29
29
  const requested = new Set(ids);
30
- return agents.filter((a) => requested.has(a.id));
30
+ const matched = agents.filter((a) => requested.has(a.id));
31
+ // Web-only agents (Devin, bolt.new, v0, Replit) have no local CLI/config
32
+ // dir — reject explicitly rather than silently writing to a dead-letter path.
33
+ const remoteOnly = matched.filter((a) => a.isRemoteOnly === true);
34
+ if (remoteOnly.length > 0) {
35
+ const remoteIds = remoteOnly.map((a) => a.id).join(", ");
36
+ throw new Error(`Cannot install to remote-only agent(s): ${remoteIds}. These tools run as hosted web services and have no local skills directory.`);
37
+ }
38
+ return matched;
31
39
  }
32
40
  //# sourceMappingURL=agent-filter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-filter.js","sourceRoot":"","sources":["../../src/utils/agent-filter.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAyB,EACzB,YAAgC;IAEhC,mFAAmF;IACnF,MAAM,GAAG,GAAG,OAAO,Y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,EAAE,CAAC;QAC1B,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,MAAM,IAAI,KAAK,CACb,2CAA2C,SAAS,8EAA8E,CACnI,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vskill",
3
- "version": "0.5.87",
3
+ "version": "0.5.89",
4
4
  "type": "module",
5
5
  "description": "Secure multi-platform AI skill installer — scan before you install",
6
6
  "bin": {
@@ -9,6 +9,8 @@
9
9
  "main": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "scripts": {
12
+ "generate:agents-json": "npx tsx scripts/generate-agents-json.ts",
13
+ "prebuild": "npm run generate:agents-json",
12
14
  "build": "tsc",
13
15
  "build:eval-ui": "vite build --config src/eval-ui/vite.config.ts",
14
16
  "dev": "tsc --watch",
@@ -47,6 +49,7 @@
47
49
  "files": [
48
50
  "dist",
49
51
  "scripts/preuninstall.cjs",
52
+ "agents.json",
50
53
  "README.md"
51
54
  ],
52
55
  "devDependencies": {
@@ -13,11 +13,18 @@ const os = require("os");
13
13
 
14
14
  const home = os.homedir();
15
15
 
16
- // Subset of universal agents with their global skill directories
16
+ // Subset of universal agents with their global skill directories.
17
+ // 0694 (F-004): GitHub Copilot was split into the VS Code extension
18
+ // (github-copilot-ext) and the standalone CLI (copilot-cli). The two
19
+ // adapters use independent global dirs (~/.config/github-copilot vs
20
+ // ~/.copilot) so the CLI's skills must be cleaned separately from the
21
+ // extension's. Keep both entries until preuninstall is refactored to
22
+ // derive AGENT_DIRS from AGENTS_REGISTRY at runtime.
17
23
  const AGENT_DIRS = [
18
24
  { name: "Claude Code", dir: path.join(home, ".claude", "commands") },
19
25
  { name: "Cursor", dir: path.join(home, ".cursor", "skills") },
20
- { name: "GitHub Copilot", dir: path.join(home, ".config", "github-copilot", "skills") },
26
+ { name: "GitHub Copilot (VS Code)", dir: path.join(home, ".config", "github-copilot", "skills") },
27
+ { name: "GitHub Copilot CLI", dir: path.join(home, ".copilot", "skills") },
21
28
  { name: "Windsurf", dir: path.join(home, ".windsurf", "skills") },
22
29
  { name: "Cline", dir: path.join(home, ".cline", "skills") },
23
30
  ];
@@ -1 +0,0 @@
1
- /*! tailwindcss v4.2.1 | 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-space-y-reverse:0;--tw-divide-y-reverse:0;--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-outline-style:solid;--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;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--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)}}@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%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, 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{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]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-4{top:calc(var(--spacing) * 4)}.top-8{top:calc(var(--spacing) * 8)}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-4{right:calc(var(--spacing) * 4)}.right-5{right:calc(var(--spacing) * 5)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:calc(var(--spacing) * 0)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-3{left:calc(var(--spacing) * 3)}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.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-2{margin-inline:calc(var(--spacing) * -2)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing) * 4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-3\.5{margin-top:calc(var(--spacing) * 3.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.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-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-36{height:calc(var(--spacing) * 36)}.h-48{height:calc(var(--spacing) * 48)}.h-full{height:100%}.h-px{height:1px}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\[500px\]{max-height:500px}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-28{width:calc(var(--spacing) * 28)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-40{width:calc(var(--spacing) * 40)}.w-48{width:calc(var(--spacing) * 48)}.w-\[340px\]{width:340px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[3fr_2fr\]{grid-template-columns:3fr 2fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:calc(var(--spacing) * 0)}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[3px\]{border-radius:3px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-\[9px\]{font-size:9px}.text-\[10\.5px\]{font-size:10.5px}.text-\[10px\]{font-size:10px}.text-\[11\.5px\]{font-size:11.5px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[28px\]{font-size:28px}.text-\[32px\]{font-size:32px}.text-\[36px\]{font-size:36px}.leading-none{--tw-leading:1;line-height:1}.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-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-pre-wrap{white-space:pre-wrap}.capitalize{text-transform:capitalize}.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}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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-all{transition-property:all;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))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\:underline:hover{text-decoration-line:underline}}}:root{--color-paper:#fbf8f3;--color-surface:#fff;--color-ink:#191919;--color-ink-muted:#5a5651;--color-rule:#e8e1d6;--color-accent:#d4a27f;--color-accent-ink:#7a4a24;--color-installed:#2f6a4a;--color-own:#8a5a1f;--color-focus:#3b6ea8;--font-serif:"Source Serif 4 Variable", "Source Serif 4", Georgia, serif;--font-sans:"Inter Tight Variable", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono Variable", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;--ease-standard:cubic-bezier(.2, 0, 0, 1);--duration-fast:.12s;--duration-base:.18s;--duration-modal:.24s}[data-theme=light]{--color-paper:#fbf8f3;--color-surface:#fff;--color-ink:#191919;--color-ink-muted:#5a5651;--color-rule:#e8e1d6;--color-accent:#d4a27f;--color-accent-ink:#7a4a24;--color-installed:#2f6a4a;--color-own:#8a5a1f;--color-focus:#3b6ea8}[data-theme=dark]{--color-paper:#1a1814;--color-surface:#221f1a;--color-ink:#f2ece1;--color-ink-muted:#a59d8f;--color-rule:#2e2a24;--color-accent:#e0b793;--color-accent-ink:#f2ece1;--color-installed:#86c9a5;--color-own:#e6b877;--color-focus:#7ca8d9}[data-contrast=more]{--color-ink-muted:#3d3a36;--color-rule:#b8ad9a}[data-theme=dark][data-contrast=more]{--color-ink-muted:#d4cbba;--color-rule:#4a453d}:root{--bg-canvas:var(--color-paper);--bg-surface:var(--color-surface);--text-primary:var(--color-ink);--text-secondary:var(--color-ink-muted);--text-accent:var(--color-accent-ink);--border-default:var(--color-rule);--border-focus:var(--color-focus);--status-installed:var(--color-installed);--status-own:var(--color-own);--accent-surface:var(--color-accent);--surface-0:var(--color-paper);--surface-1:var(--color-surface);--surface-2:var(--color-surface);--surface-3:var(--color-rule);--surface-4:var(--color-rule);--border-subtle:var(--color-rule);--border-hover:var(--color-accent);--border-active:var(--color-focus);--text-tertiary:var(--color-ink-muted);--accent:var(--color-accent);--accent-hover:var(--color-accent-ink);--accent-muted:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){:root{--accent-muted:color-mix(in srgb, var(--color-accent) 20%, transparent)}}:root{--green:var(--color-installed);--green-muted:var(--color-installed)}@supports (color:color-mix(in lab,red,red)){:root{--green-muted:color-mix(in srgb, var(--color-installed) 18%, transparent)}}:root{--red:#b54444;--red-muted:#b544442e;--yellow:var(--color-own);--yellow-muted:var(--color-own)}@supports (color:color-mix(in lab,red,red)){:root{--yellow-muted:color-mix(in srgb, var(--color-own) 18%, transparent)}}:root{--orange:var(--color-own);--orange-muted:var(--color-own)}@supports (color:color-mix(in lab,red,red)){:root{--orange-muted:color-mix(in srgb, var(--color-own) 18%, transparent)}}:root{--purple:var(--color-accent);--purple-muted:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){:root{--purple-muted:color-mix(in srgb, var(--color-accent) 18%, transparent)}}:root{--ease-out-expo:var(--ease-standard);--ease-spring:var(--ease-standard)}[data-theme=dark]{--red:#d48a8a;--red-muted:#d48a8a38}html{background:var(--bg-canvas);color:var(--text-primary)}body{background:var(--bg-canvas);color:var(--text-primary);font-family:var(--font-sans);font-feature-settings:"ss01","cv11";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::selection{background:var(--color-accent)}@supports (color:color-mix(in lab,red,red)){::selection{background:color-mix(in srgb,var(--color-accent) 35%,transparent)}}::selection{color:var(--text-primary)}:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px;border-radius:4px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}@keyframes fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in-scale{0%{opacity:0;transform:scale(.98)translateY(4px)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes slide-in-right{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:translate(0)}}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes modal-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes spin-slow{to{transform:rotate(360deg)}}.animate-fade-in{animation:fade-in var(--duration-base) var(--ease-standard) both}.animate-fade-in-scale{animation:fade-in-scale var(--duration-base) var(--ease-standard) both}.animate-slide-in-right{animation:slide-in-right var(--duration-base) var(--ease-standard) both}.animate-overlay-in{animation:overlay-in var(--duration-fast) var(--ease-standard) both}.animate-modal-in{animation:modal-in var(--duration-modal) var(--ease-standard) both}.stagger-children>*{animation:fade-in var(--duration-base) var(--ease-standard) both}.stagger-children>:first-child{animation-delay:0s}.stagger-children>:nth-child(2){animation-delay:30ms}.stagger-children>:nth-child(3){animation-delay:60ms}.stagger-children>:nth-child(4){animation-delay:90ms}.stagger-children>:nth-child(n+5){animation-delay:.12s}@media(prefers-reduced-motion:reduce){*,:before,:after{transition-duration:0s!important;transition-delay:0s!important;animation-duration:0s!important;animation-delay:0s!important}}.placeholder,.skeleton{background:var(--border-default);opacity:.6;border-radius:4px}.glass-card{background:var(--bg-surface);border:1px solid var(--border-default);transition:border-color var(--duration-fast) var(--ease-standard);border-radius:8px}.glass-card:hover,.glass-card-interactive:hover{border-color:var(--color-accent)}.pill{letter-spacing:.02em;color:var(--text-secondary);align-items:center;gap:6px;padding:2px 0;font-size:11px;font-weight:500;line-height:1.4;display:inline-flex}.pill:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.pill-installed{color:var(--status-installed)}.pill-own{color:var(--status-own)}.input-field{background:var(--bg-surface);border:1px solid var(--border-default);color:var(--text-primary);font-size:13px;font-family:var(--font-sans);transition:border-color var(--duration-fast) var(--ease-standard);border-radius:6px;outline:none;width:100%;padding:8px 12px}.input-field:focus{border-color:var(--border-focus);box-shadow:0 0 0 3px var(--color-focus)}@supports (color:color-mix(in lab,red,red)){.input-field:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--color-focus) 18%,transparent)}}.input-field::placeholder{color:var(--text-secondary)}.btn{height:36px;font-size:13px;font-weight:500;font-family:var(--font-sans);cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard);white-space:nowrap;border:1px solid #0000;border-radius:6px;outline:none;justify-content:center;align-items:center;gap:6px;padding:8px 14px;display:inline-flex}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--color-ink);color:var(--color-paper)}.btn-primary:hover:not(:disabled){background:var(--color-ink)}@supports (color:color-mix(in lab,red,red)){.btn-primary:hover:not(:disabled){background:color-mix(in srgb,var(--color-ink) 88%,var(--color-accent))}}.btn-secondary{color:var(--text-primary);border-color:var(--border-default);background:0 0}.btn-secondary:hover:not(:disabled){border-color:var(--color-accent);color:var(--text-primary)}.btn-purple{background:var(--color-ink);color:var(--color-paper)}.btn-purple:hover:not(:disabled){background:var(--color-ink)}@supports (color:color-mix(in lab,red,red)){.btn-purple:hover:not(:disabled){background:color-mix(in srgb,var(--color-ink) 88%,var(--color-accent))}}.btn-danger{color:var(--red);border-color:var(--red);background:0 0}.btn-danger:hover:not(:disabled){background:var(--red-muted)}.btn-ghost{color:var(--text-secondary);background:0 0;height:auto;padding:6px 10px}.btn-ghost:hover:not(:disabled){color:var(--text-primary);background:var(--border-default)}.spinner{border:2px solid var(--border-default);border-top-color:var(--color-accent);border-radius:50%;width:16px;height:16px;animation:.6s linear infinite spin-slow}.spinner-lg{border-width:2.5px;width:24px;height:24px}.score-ring{--size:56px;--stroke:4px;width:var(--size);height:var(--size);justify-content:center;align-items:center;display:flex;position:relative}.score-ring svg{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotate(-90deg)}.score-ring circle{fill:none;stroke-width:var(--stroke);stroke-linecap:round}.score-ring .track{stroke:var(--border-default)}.score-ring .fill{transition:stroke-dashoffset .8s var(--ease-standard)}.divide-y>*+*{border-top-color:var(--border-default)}hr{border:none;border-top:1px solid var(--border-default);margin:0}:root{--theme-transition:background-color .15s var(--ease-standard), color .15s var(--ease-standard), border-color .15s var(--ease-standard)}html,body,.glass-card,.pill,.input-field,.btn,aside,header,footer,main,nav,section,[data-theme-surface]{transition:var(--theme-transition)}:focus-visible{transition-property:none}input:focus,textarea:focus,select:focus,button:focus{transition:none}.focus-ring:focus-visible,[role=button]:focus-visible,[role=menuitem]:focus-visible,[role=tab]:focus-visible,[role=option]:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px;border-radius:4px}[data-contrast=more] :focus-visible,[data-contrast=more] .focus-ring:focus-visible{outline-width:3px}@media(max-width:1024px)and (min-width:768px){.studio-grid{grid-template-columns:240px 1px 1fr!important}}@media(max-width:767px){.studio-grid{grid-template-columns:1fr!important}.studio-grid>:nth-child(2),.studio-grid>:nth-child(3){display:none}}@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-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@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}@property --tw-duration{syntax:"*";inherits:false}