@feltdb/feltkit 0.1.1 → 0.3.0

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 (99) hide show
  1. package/dist/app.d.ts +106 -10
  2. package/dist/app.js +51 -0
  3. package/dist/app.js.map +1 -1
  4. package/dist/cli/deploy.js +9 -0
  5. package/dist/cli/deploy.js.map +1 -1
  6. package/dist/cli/main.js +339 -2
  7. package/dist/cli/main.js.map +1 -1
  8. package/dist/cli/skills.d.ts +39 -0
  9. package/dist/cli/skills.js +125 -0
  10. package/dist/cli/skills.js.map +1 -0
  11. package/dist/dashboard/assets/{index-BLnBFDJs.css → index--1Tqbv_A.css} +1 -1
  12. package/dist/dashboard/assets/index-D9529PVz.js +15 -0
  13. package/dist/dashboard/index.html +2 -2
  14. package/dist/errors.d.ts +5 -1
  15. package/dist/errors.js +3 -0
  16. package/dist/errors.js.map +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/runtime/activity.d.ts +21 -8
  19. package/dist/runtime/activity.js +17 -3
  20. package/dist/runtime/activity.js.map +1 -1
  21. package/dist/runtime/agent.d.ts +353 -0
  22. package/dist/runtime/agent.js +1345 -0
  23. package/dist/runtime/agent.js.map +1 -0
  24. package/dist/runtime/authority.d.ts +24 -3
  25. package/dist/runtime/authority.js +72 -5
  26. package/dist/runtime/authority.js.map +1 -1
  27. package/dist/runtime/changes.d.ts +16 -8
  28. package/dist/runtime/changes.js.map +1 -1
  29. package/dist/runtime/content.d.ts +33 -0
  30. package/dist/runtime/content.js +46 -0
  31. package/dist/runtime/content.js.map +1 -0
  32. package/dist/runtime/context.d.ts +26 -1
  33. package/dist/runtime/credentials.d.ts +174 -0
  34. package/dist/runtime/credentials.js +407 -0
  35. package/dist/runtime/credentials.js.map +1 -0
  36. package/dist/runtime/data.d.ts +8 -2
  37. package/dist/runtime/data.js +74 -9
  38. package/dist/runtime/data.js.map +1 -1
  39. package/dist/runtime/decisions.d.ts +141 -0
  40. package/dist/runtime/decisions.js +330 -0
  41. package/dist/runtime/decisions.js.map +1 -0
  42. package/dist/runtime/environment.js +11 -0
  43. package/dist/runtime/environment.js.map +1 -1
  44. package/dist/runtime/idempotency.d.ts +37 -0
  45. package/dist/runtime/idempotency.js +88 -0
  46. package/dist/runtime/idempotency.js.map +1 -0
  47. package/dist/runtime/instance.d.ts +8 -3
  48. package/dist/runtime/instance.js +27 -4
  49. package/dist/runtime/instance.js.map +1 -1
  50. package/dist/runtime/integrations.d.ts +125 -0
  51. package/dist/runtime/integrations.js +429 -0
  52. package/dist/runtime/integrations.js.map +1 -0
  53. package/dist/runtime/loader.d.ts +5 -1
  54. package/dist/runtime/loader.js +35 -13
  55. package/dist/runtime/loader.js.map +1 -1
  56. package/dist/runtime/projects.d.ts +1 -0
  57. package/dist/runtime/projects.js +6 -4
  58. package/dist/runtime/projects.js.map +1 -1
  59. package/dist/runtime/readiness.d.ts +29 -0
  60. package/dist/runtime/readiness.js +154 -0
  61. package/dist/runtime/readiness.js.map +1 -0
  62. package/dist/runtime/runtime.d.ts +53 -1
  63. package/dist/runtime/runtime.js +252 -9
  64. package/dist/runtime/runtime.js.map +1 -1
  65. package/dist/runtime/services.d.ts +205 -36
  66. package/dist/runtime/services.js +479 -152
  67. package/dist/runtime/services.js.map +1 -1
  68. package/dist/runtime/sessions.d.ts +7 -18
  69. package/dist/runtime/sessions.js +7 -5
  70. package/dist/runtime/sessions.js.map +1 -1
  71. package/dist/server/admin.d.ts +80 -0
  72. package/dist/server/admin.js +677 -8
  73. package/dist/server/admin.js.map +1 -1
  74. package/dist/server/index.d.ts +2 -0
  75. package/dist/server/index.js +13 -4
  76. package/dist/server/index.js.map +1 -1
  77. package/dist/server/management.d.ts +12 -0
  78. package/dist/server/management.js +177 -0
  79. package/dist/server/management.js.map +1 -0
  80. package/dist/server/mcp.d.ts +202 -0
  81. package/dist/server/mcp.js +62 -4
  82. package/dist/server/mcp.js.map +1 -1
  83. package/dist/server/operators.d.ts +77 -0
  84. package/dist/server/operators.js +162 -0
  85. package/dist/server/operators.js.map +1 -0
  86. package/dist/server/project.js +17 -4
  87. package/dist/server/project.js.map +1 -1
  88. package/dist/testing/index.js +3 -2
  89. package/dist/testing/index.js.map +1 -1
  90. package/package.json +18 -11
  91. package/skills/.claude-plugin/marketplace.json +16 -0
  92. package/skills/.claude-plugin/plugin.json +24 -0
  93. package/skills/README.md +44 -0
  94. package/skills/feltkit-agent/SKILL.md +84 -0
  95. package/skills/feltkit-build/SKILL.md +153 -0
  96. package/skills/feltkit-data/SKILL.md +79 -0
  97. package/skills/feltkit-operations/SKILL.md +72 -0
  98. package/skills/feltkit-services/SKILL.md +124 -0
  99. package/dist/dashboard/assets/index-CxJGCspE.js +0 -15
@@ -0,0 +1,125 @@
1
+ /**
2
+ * `feltkit skills`: install, update, and validate the FeltKit Agent Skills.
3
+ *
4
+ * The skills ship inside this package (skills/), so the installed skills always
5
+ * describe the installed SDK. Installing copies each skill folder into a Claude Code
6
+ * skills directory (.claude/skills/ for the project, ~/.claude/skills/ with --user) and
7
+ * writes a marker recording which version put it there. Updating is installing again:
8
+ * a skill FeltKit installed is replaced; a folder of the same name that FeltKit did
9
+ * not install is left alone unless --force.
10
+ *
11
+ * Skills are guidance. Installing them grants nothing.
12
+ */
13
+ import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
14
+ import { createHash } from "node:crypto";
15
+ import { homedir } from "node:os";
16
+ import { join, relative, resolve } from "node:path";
17
+ import { fileURLToPath } from "node:url";
18
+ const MARKER = ".feltkit-skill.json";
19
+ const NAME = /^[a-z0-9]+(-[a-z0-9]+)*$/;
20
+ /** The skills shipped with this package. */
21
+ export function skillsSource() {
22
+ // dist/cli/skills.js and src/cli/skills.ts are both two levels below the package root.
23
+ return fileURLToPath(new URL("../../skills", import.meta.url));
24
+ }
25
+ export function shippedSkills(source = skillsSource()) {
26
+ const manifest = JSON.parse(readFileSync(join(source, ".claude-plugin", "plugin.json"), "utf8"));
27
+ return { version: manifest.version, skills: manifest.skills.map((s) => s.replace(/^\.\//, "")) };
28
+ }
29
+ export function skillsTarget(options) {
30
+ if (options.dir)
31
+ return resolve(options.projectDir, options.dir);
32
+ return options.user ? join(homedir(), ".claude", "skills") : join(options.projectDir, ".claude", "skills");
33
+ }
34
+ /** Frontmatter and size rules of the Agent Skill format. */
35
+ export function validateSkillFolder(dir, expectedName) {
36
+ const problems = [];
37
+ const file = join(dir, "SKILL.md");
38
+ if (!existsSync(file))
39
+ return ["SKILL.md is missing"];
40
+ const text = readFileSync(file, "utf8");
41
+ const match = /^---\n([\s\S]*?)\n---\n/.exec(text);
42
+ if (!match)
43
+ return ["SKILL.md has no YAML frontmatter"];
44
+ const fields = Object.fromEntries(match[1].split("\n").filter((l) => /^[a-z]+:/.test(l)).map((l) => [l.slice(0, l.indexOf(":")), l.slice(l.indexOf(":") + 1).trim()]));
45
+ if (fields.name !== expectedName)
46
+ problems.push(`frontmatter name is "${fields.name}", expected "${expectedName}"`);
47
+ if (!NAME.test(String(fields.name ?? "")) || String(fields.name).length > 64)
48
+ problems.push("name must be lowercase letters, digits, and hyphens (at most 64)");
49
+ if (!fields.description)
50
+ problems.push("description is missing");
51
+ else if (fields.description.length > 1024)
52
+ problems.push(`description is ${fields.description.length} characters (at most 1024)`);
53
+ const lines = text.split("\n").length;
54
+ if (lines > 500)
55
+ problems.push(`SKILL.md is ${lines} lines (keep it under 500; move detail to references/)`);
56
+ return problems;
57
+ }
58
+ function digest(dir) {
59
+ const hash = createHash("sha256");
60
+ const walk = (current) => {
61
+ for (const entry of readdirSync(current).sort()) {
62
+ if (entry === MARKER)
63
+ continue;
64
+ const path = join(current, entry);
65
+ if (statSync(path).isDirectory())
66
+ walk(path);
67
+ else
68
+ hash.update(relative(dir, path)).update("\0").update(readFileSync(path)).update("\0");
69
+ }
70
+ };
71
+ walk(dir);
72
+ return hash.digest("hex");
73
+ }
74
+ export function installSkills(target, options = {}) {
75
+ const source = options.source ?? skillsSource();
76
+ const { version, skills } = shippedSkills(source);
77
+ mkdirSync(target, { recursive: true });
78
+ const installed = [];
79
+ const skipped = [];
80
+ for (const skill of skills) {
81
+ const from = join(source, skill);
82
+ const problems = validateSkillFolder(from, skill);
83
+ if (problems.length)
84
+ throw new Error(`The shipped skill ${skill} is invalid: ${problems.join("; ")}`);
85
+ const to = join(target, skill);
86
+ if (existsSync(to) && !existsSync(join(to, MARKER)) && !options.force) {
87
+ skipped.push({ skill, reason: `${to} exists and was not installed by FeltKit (use --force to replace it)` });
88
+ continue;
89
+ }
90
+ rmSync(to, { recursive: true, force: true });
91
+ cpSync(from, to, { recursive: true });
92
+ writeFileSync(join(to, MARKER), `${JSON.stringify({ skill, version, digest: digest(from), installedAt: new Date().toISOString() }, null, 2)}\n`);
93
+ installed.push(skill);
94
+ }
95
+ return { target, version, installed, skipped };
96
+ }
97
+ /** Validate installed skills: present, well-formed, this SDK's version, unmodified. */
98
+ export function checkSkills(target, options = {}) {
99
+ const source = options.source ?? skillsSource();
100
+ const { version, skills } = shippedSkills(source);
101
+ const problems = [];
102
+ for (const skill of skills) {
103
+ const dir = join(target, skill);
104
+ if (!existsSync(dir)) {
105
+ problems.push({ skill, problem: `not installed in ${target} (run feltkit skills install)` });
106
+ continue;
107
+ }
108
+ for (const problem of validateSkillFolder(dir, skill))
109
+ problems.push({ skill, problem });
110
+ let marker = {};
111
+ try {
112
+ marker = JSON.parse(readFileSync(join(dir, MARKER), "utf8"));
113
+ }
114
+ catch {
115
+ problems.push({ skill, problem: "no install marker: not installed by feltkit skills install" });
116
+ continue;
117
+ }
118
+ if (marker.version !== version)
119
+ problems.push({ skill, problem: `installed for ${marker.version}; this SDK ships ${version} (run feltkit skills install to update)` });
120
+ else if (digest(dir) !== digest(join(source, skill)))
121
+ problems.push({ skill, problem: "modified since install (run feltkit skills install --force to restore)" });
122
+ }
123
+ return { target, version, skills, problems, ok: problems.length === 0 };
124
+ }
125
+ //# sourceMappingURL=skills.js.map
@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AAO,EAAE,CAAC,CAAC;QACzF,IAAI,MAAM,GAA0C,EAAE,CAAC;QACvD,IAAI,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;QAC/D,CAAC;QAAC,MAAM,CAAC;YACP,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,4DAA4D,EAAE,CAAC,CAAC;YAChG,SAAS;QACX,CAAC;QACD,IAAI,MAAM,CAAC,OAAO,KAAK,OAAO;YAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,iBAAiB,MAAM,CAAC,OAAO,oBAAoB,OAAO,yCAAyC,EAAE,CAAC,CAAC;aAClK,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;YAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,wEAAwE,EAAE,CAAC,CAAC;IACpK,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;AAC1E,CAAC"}
@@ -1 +1 @@
1
- :root{--bg: #f6f7f6;--surface: #ffffff;--surface-2: #f1f3f2;--ink: #141716;--ink-2: #3d4440;--muted: #6c746f;--line: #e2e5e3;--line-strong: #cfd4d1;--accent: #0f7a55;--accent-ink: #ffffff;--accent-soft: #e5f4ed;--ok: #0f7a55;--ok-soft: #e5f4ed;--warn: #9a5b00;--warn-soft: #fdf3e1;--bad: #b42318;--bad-soft: #fdecea;--info: #2f5fa7;--info-soft: #e9f0fb;--logo-bg: #111827;--logo-fg: #34d399;--radius: 10px;--shadow: 0 1px 2px rgba(15, 23, 20, .05), 0 4px 12px rgba(15, 23, 20, .04);--mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.5;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}@media(prefers-color-scheme:dark){:root{--bg: #0e1110;--surface: #151918;--surface-2: #1b201e;--ink: #e9ecea;--ink-2: #c3c9c5;--muted: #8e9792;--line: #262c29;--line-strong: #343b37;--accent: #34d399;--accent-ink: #052e1f;--accent-soft: #12291f;--ok: #34d399;--ok-soft: #12291f;--warn: #fbbf24;--warn-soft: #2b2210;--bad: #f97066;--bad-soft: #2d1614;--info: #7ea8f2;--info-soft: #152238;--logo-bg: #1f2937;--shadow: none}}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3{margin:0;letter-spacing:-.01em}h1{font-size:22px;font-weight:650}h2{font-size:15px;font-weight:600}h3{font-size:13px;font-weight:600;margin-bottom:6px}p{margin:0 0 8px}code,.mono{font-family:var(--mono);font-size:12.5px}code{background:var(--surface-2);padding:1px 5px;border-radius:5px}.muted{color:var(--muted)}.small{font-size:12.5px}.right{margin-left:auto}.nowrap{white-space:nowrap}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.error-text{color:var(--bad)}.danger{color:var(--bad)!important}.pad{padding:8px 10px}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.app{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.nav{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:18px 12px;border-right:1px solid var(--line);background:var(--surface)}.nav-brand{display:flex;align-items:center;gap:10px;padding:0 6px}.nav-app{font-weight:650}.nav-sub{font-size:12px;color:var(--muted)}.nav ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}.nav a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;text-decoration:none;color:var(--ink-2)}.nav a:hover{background:var(--surface-2);color:var(--ink)}.nav a.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav kbd{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--muted);opacity:0}.nav a:hover kbd{opacity:1}.nav-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding:0 6px}.live{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}.live .dot{width:8px;height:8px;border-radius:50%;background:var(--line-strong)}.live.on .dot{background:#22c55e;box-shadow:0 0 0 3px #22c55e2e}.logo{display:inline-flex}.content{min-width:0;display:flex;flex-direction:column}.envbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 28px;border-bottom:1px solid var(--line);background:var(--surface);font-size:12.5px}.envname{font-weight:600;text-transform:capitalize;padding:1px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}.envbar .path{max-width:46ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}.envbar>:last-child{margin-left:auto}.envbar-prod{background:var(--warn-soft)}.envbar-prod .envname{background:var(--warn);color:#fff}.envwarn{color:var(--warn);font-weight:600}.page{padding:28px;max-width:1240px;width:100%;display:flex;flex-direction:column;gap:18px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.page-header p{max-width:72ch;margin-top:4px}.actions{display:flex;gap:8px;align-items:center}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.stack-lg{display:flex;flex-direction:column;gap:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.card-current{border-color:var(--accent)}.lede{color:var(--ink-2)}.link{font-size:12.5px;color:var(--muted);text-decoration:none}.link:hover{color:var(--accent)}.label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:10px 0 6px}.stats .stat{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:2px;cursor:pointer;box-shadow:var(--shadow)}.stat:hover{border-color:var(--line-strong)}.stat-label{font-size:12.5px;color:var(--muted)}.stat-value{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums}.stat-detail{font-size:12px;color:var(--muted)}.stat-bad .stat-value{color:var(--bad)}.list,.feed{list-style:none;padding:0;margin:0}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);text-decoration:none}.list li:last-child .list-row,.list li.list-row:last-child{border-bottom:0}a.list-row:hover .mono{color:var(--accent)}.feed-row{display:flex;align-items:center;gap:10px;padding:7px 4px;border-bottom:1px solid var(--line);text-decoration:none;min-width:0}.feed li:last-child .feed-row{border-bottom:0}.feed-row:hover{background:var(--surface-2)}.feed-name{white-space:nowrap}.components{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.components-title{font-size:12px;color:var(--muted);margin-bottom:6px}.component{display:flex;gap:10px;align-items:baseline;padding:2px 0}.component .mono{min-width:140px}.kv{margin:0;display:flex;flex-direction:column}.kv-row{display:grid;grid-template-columns:140px 1fr;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}.kv-row:last-child{border-bottom:0}.kv dt{color:var(--muted);font-size:12.5px}.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}.path{word-break:break-all}.badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;line-height:18px;padding:0 8px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);white-space:nowrap}.badge-ok{background:var(--ok-soft);color:var(--ok)}.badge-warn{background:var(--warn-soft);color:var(--warn)}.badge-bad{background:var(--bad-soft);color:var(--bad)}.badge-info{background:var(--info-soft);color:var(--info)}.badge-accent{background:var(--accent-soft);color:var(--accent)}.chip{display:inline-block;margin:0 4px 4px 0;text-decoration:none}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;text-decoration:none;font-weight:500;white-space:nowrap}.btn:hover{border-color:var(--muted)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-primary:hover{filter:brightness(1.05);border-color:var(--accent)}.btn-danger{background:var(--bad);border-color:var(--bad);color:#fff}.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn-ghost:hover{color:var(--ink);border-color:transparent;background:var(--surface-2)}.btn-small{padding:3px 9px;font-size:12.5px}.input{padding:7px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);min-width:0}.grow{flex:1}.code-input{width:100%;font-family:var(--mono);font-size:12.5px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface-2);resize:vertical;margin:8px 0}.field-inline{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}.check{display:inline-flex;align-items:center;gap:6px;font-size:13px}.filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);padding:9px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface);position:sticky;top:0}.table td{padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:top}.table tbody tr:last-child td{border-bottom:0}.table-wrap .table tbody tr{cursor:pointer}.table tbody tr:hover td{background:var(--surface-2)}.table tr.selected td{background:var(--accent-soft)}.table.compact td,.table.compact th{padding:6px 8px}.card .table th{background:transparent}.num{text-align:right;font-variant-numeric:tabular-nums}.more{margin:10px}.fields{border-collapse:collapse;width:100%}.fields td{padding:4px 8px 4px 0;border-bottom:1px dashed var(--line);vertical-align:top}.type{color:var(--info);background:transparent;padding:0}.split{display:grid;grid-template-columns:240px 1fr;gap:18px;align-items:start}.split-nav{position:sticky;top:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px;display:flex;flex-direction:column;gap:2px;max-height:calc(100vh - 140px);overflow-y:auto}.split-group+.split-group{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.split-title{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:4px 8px}.split-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;border-radius:7px;text-decoration:none}.split-item:hover{background:var(--surface-2)}.split-item.active{background:var(--accent-soft);color:var(--accent)}.split-main{min-width:0;display:flex;flex-direction:column;gap:12px}.collection-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.schema{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px}.schema summary{cursor:pointer;color:var(--muted);font-size:12.5px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}.tabs button{background:none;border:0;padding:8px 12px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}.tabs button.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}.steps{list-style:none;display:flex;gap:0;padding:0;margin:10px 0 12px}.step{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);padding-right:18px;position:relative}.step+.step:before{content:"";width:14px;height:1px;background:var(--line-strong);margin-right:6px}.step-dot{width:10px;height:10px;border-radius:50%;border:2px solid var(--line-strong)}.step-done{color:var(--ink)}.step-done .step-dot{background:var(--ok);border-color:var(--ok)}.step-no .step-dot{border-style:dashed}.empty{padding:28px 12px;text-align:center;color:var(--muted)}.empty-title{color:var(--ink-2);font-weight:600;margin-bottom:4px}.empty-body{max-width:56ch;margin:0 auto;font-size:13px}.loading{display:flex;align-items:center;gap:10px;color:var(--muted);padding:20px 4px}.spinner{width:14px;height:14px;border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}.error-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:8px;background:var(--bad-soft);color:var(--bad);border:1px solid color-mix(in srgb,var(--bad) 25%,transparent)}.callout{padding:10px 12px;border-radius:8px;background:var(--warn-soft);color:var(--ink-2);font-size:12.5px;display:flex;flex-direction:column;gap:6px;margin-bottom:8px}.result{margin-top:10px;padding:10px;border-radius:8px;border:1px solid var(--line)}.result-ok{border-color:color-mix(in srgb,var(--ok) 40%,transparent)}.result-bad{border-color:color-mix(in srgb,var(--warn) 40%,transparent)}.json{font-family:var(--mono);font-size:12px;background:var(--surface-2);border-radius:8px;padding:10px 12px;margin:6px 0 0;overflow:auto;max-height:420px;white-space:pre-wrap;word-break:break-word}.token{display:block;word-break:break-all;background:var(--surface);padding:6px 8px}.evidence{padding:8px 10px;border:1px solid var(--line);border-radius:8px;margin-bottom:6px}.issue{margin-bottom:14px;display:flex;flex-direction:column;gap:8px}.drawer-backdrop{position:fixed;inset:0;background:#0a0e0c52;display:flex;justify-content:flex-end;z-index:10}.drawer{width:min(620px,100%);height:100%;background:var(--surface);border-left:1px solid var(--line);display:flex;flex-direction:column;box-shadow:-8px 0 24px #00000014}.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}.drawer-header h2{font-family:var(--mono);font-size:14px;overflow-wrap:anywhere}.drawer-body{padding:18px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.gate{min-height:100vh;display:grid;place-items:center;padding:24px}.gate-card{width:min(520px,100%);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}@media(max-width:1080px){.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){.app{grid-template-columns:1fr}.nav{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center}.nav ul{flex-direction:row;flex-wrap:wrap}.nav kbd,.nav-foot{display:none}.grid-2,.grid-3,.grid-4,.split{grid-template-columns:1fr}.split-nav{position:static;max-height:none}.page{padding:18px 16px}.envbar{padding:8px 16px}.kv-row{grid-template-columns:1fr;gap:2px}}
1
+ :root{--bg: #f6f7f6;--surface: #ffffff;--surface-2: #f1f3f2;--ink: #141716;--ink-2: #3d4440;--muted: #6c746f;--line: #e2e5e3;--line-strong: #cfd4d1;--accent: #0f7a55;--accent-ink: #ffffff;--accent-soft: #e5f4ed;--ok: #0f7a55;--ok-soft: #e5f4ed;--warn: #9a5b00;--warn-soft: #fdf3e1;--bad: #b42318;--bad-soft: #fdecea;--info: #2f5fa7;--info-soft: #e9f0fb;--logo-bg: #111827;--logo-fg: #34d399;--radius: 10px;--shadow: 0 1px 2px rgba(15, 23, 20, .05), 0 4px 12px rgba(15, 23, 20, .04);--mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.5;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}@media(prefers-color-scheme:dark){:root{--bg: #0e1110;--surface: #151918;--surface-2: #1b201e;--ink: #e9ecea;--ink-2: #c3c9c5;--muted: #8e9792;--line: #262c29;--line-strong: #343b37;--accent: #34d399;--accent-ink: #052e1f;--accent-soft: #12291f;--ok: #34d399;--ok-soft: #12291f;--warn: #fbbf24;--warn-soft: #2b2210;--bad: #f97066;--bad-soft: #2d1614;--info: #7ea8f2;--info-soft: #152238;--logo-bg: #1f2937;--shadow: none}}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3{margin:0;letter-spacing:-.01em}h1{font-size:22px;font-weight:650}h2{font-size:15px;font-weight:600}h3{font-size:13px;font-weight:600;margin-bottom:6px}p{margin:0 0 8px}code,.mono{font-family:var(--mono);font-size:12.5px}code{background:var(--surface-2);padding:1px 5px;border-radius:5px}.muted{color:var(--muted)}.small{font-size:12.5px}.right{margin-left:auto}.nowrap{white-space:nowrap}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.error-text{color:var(--bad)}.danger{color:var(--bad)!important}.pad{padding:8px 10px}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.app{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.nav{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:18px 12px;border-right:1px solid var(--line);background:var(--surface)}.nav-brand{display:flex;align-items:center;gap:10px;padding:0 6px}.nav-app{font-weight:650}.nav-sub{font-size:12px;color:var(--muted)}.nav ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}.nav a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;text-decoration:none;color:var(--ink-2)}.nav a:hover{background:var(--surface-2);color:var(--ink)}.nav a.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav kbd{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--muted);opacity:0}.nav a:hover kbd{opacity:1}.nav-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding:0 6px}.live{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}.live .dot{width:8px;height:8px;border-radius:50%;background:var(--line-strong)}.live.on .dot{background:#22c55e;box-shadow:0 0 0 3px #22c55e2e}.logo{display:inline-flex}.content{min-width:0;display:flex;flex-direction:column}.envbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 28px;border-bottom:1px solid var(--line);background:var(--surface);font-size:12.5px}.envname{font-weight:600;text-transform:capitalize;padding:1px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent)}.envbar .path{max-width:46ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}.envbar>:last-child{margin-left:auto}.envbar-prod{background:var(--warn-soft)}.envbar-prod .envname{background:var(--warn);color:#fff}.envwarn{color:var(--warn);font-weight:600}.page{padding:28px;max-width:1240px;width:100%;display:flex;flex-direction:column;gap:18px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.page-header p{max-width:72ch;margin-top:4px}.actions{display:flex;gap:8px;align-items:center}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.row.between{justify-content:space-between}.stack-lg{display:flex;flex-direction:column;gap:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.card-current{border-color:var(--accent)}.lede{color:var(--ink-2)}.link{font-size:12.5px;color:var(--muted);text-decoration:none}.link:hover{color:var(--accent)}.label{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:10px 0 6px}.stats .stat{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:2px;cursor:pointer;box-shadow:var(--shadow)}.stat:hover{border-color:var(--line-strong)}.stat-label{font-size:12.5px;color:var(--muted)}.stat-value{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums}.stat-detail{font-size:12px;color:var(--muted)}.stat-bad .stat-value{color:var(--bad)}.list,.feed{list-style:none;padding:0;margin:0}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);text-decoration:none}.list li:last-child .list-row,.list li.list-row:last-child{border-bottom:0}a.list-row:hover .mono{color:var(--accent)}.feed-row{display:flex;align-items:center;gap:10px;padding:7px 4px;border-bottom:1px solid var(--line);text-decoration:none;min-width:0}.feed li:last-child .feed-row{border-bottom:0}.feed-row:hover{background:var(--surface-2)}.feed-name{white-space:nowrap}.components{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.components-title{font-size:12px;color:var(--muted);margin-bottom:6px}.component{display:flex;gap:10px;align-items:baseline;padding:2px 0}.component .mono{min-width:140px}.kv{margin:0;display:flex;flex-direction:column}.kv-row{display:grid;grid-template-columns:140px 1fr;gap:12px;padding:7px 0;border-bottom:1px solid var(--line)}.kv-row:last-child{border-bottom:0}.kv dt{color:var(--muted);font-size:12.5px}.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}.path{word-break:break-all}.badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;line-height:18px;padding:0 8px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);white-space:nowrap}.badge-ok{background:var(--ok-soft);color:var(--ok)}.badge-warn{background:var(--warn-soft);color:var(--warn)}.badge-bad{background:var(--bad-soft);color:var(--bad)}.badge-info{background:var(--info-soft);color:var(--info)}.badge-accent{background:var(--accent-soft);color:var(--accent)}.chip{display:inline-block;margin:0 4px 4px 0;text-decoration:none}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface);cursor:pointer;text-decoration:none;font-weight:500;white-space:nowrap}.btn:hover{border-color:var(--muted)}.btn:disabled{opacity:.55;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-primary:hover{filter:brightness(1.05);border-color:var(--accent)}.btn-danger{background:var(--bad);border-color:var(--bad);color:#fff}.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn-ghost:hover{color:var(--ink);border-color:transparent;background:var(--surface-2)}.btn-small{padding:3px 9px;font-size:12.5px}.input{padding:7px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);min-width:0}.grow{flex:1}.code-input{width:100%;font-family:var(--mono);font-size:12.5px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface-2);resize:vertical;margin:8px 0}.field-inline{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}.check{display:inline-flex;align-items:center;gap:6px;font-size:13px}.filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);padding:9px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface);position:sticky;top:0}.table td{padding:8px 12px;border-bottom:1px solid var(--line);vertical-align:top}.table tbody tr:last-child td{border-bottom:0}.table-wrap .table tbody tr{cursor:pointer}.table tbody tr:hover td{background:var(--surface-2)}.table tr.selected td{background:var(--accent-soft)}.table.compact td,.table.compact th{padding:6px 8px}.card .table th{background:transparent}.num{text-align:right;font-variant-numeric:tabular-nums}.more{margin:10px}.fields{border-collapse:collapse;width:100%}.fields td{padding:4px 8px 4px 0;border-bottom:1px dashed var(--line);vertical-align:top}.type{color:var(--info);background:transparent;padding:0}.split{display:grid;grid-template-columns:240px 1fr;gap:18px;align-items:start}.split-nav{position:sticky;top:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px;display:flex;flex-direction:column;gap:2px;max-height:calc(100vh - 140px);overflow-y:auto}.split-group+.split-group{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.split-title{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:4px 8px}.split-item{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;border-radius:7px;text-decoration:none}.split-item:hover{background:var(--surface-2)}.split-item.active{background:var(--accent-soft);color:var(--accent)}.split-main{min-width:0;display:flex;flex-direction:column;gap:12px}.collection-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.schema{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px}.schema summary{cursor:pointer;color:var(--muted);font-size:12.5px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}.tabs button{background:none;border:0;padding:8px 12px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}.tabs button.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}.steps{list-style:none;display:flex;gap:0;padding:0;margin:10px 0 12px}.step{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);padding-right:18px;position:relative}.step+.step:before{content:"";width:14px;height:1px;background:var(--line-strong);margin-right:6px}.step-dot{width:10px;height:10px;border-radius:50%;border:2px solid var(--line-strong)}.step-done{color:var(--ink)}.step-done .step-dot{background:var(--ok);border-color:var(--ok)}.step-no .step-dot{border-style:dashed}.empty{padding:28px 12px;text-align:center;color:var(--muted)}.empty-title{color:var(--ink-2);font-weight:600;margin-bottom:4px}.empty-body{max-width:56ch;margin:0 auto;font-size:13px}.loading{display:flex;align-items:center;gap:10px;color:var(--muted);padding:20px 4px}.spinner{width:14px;height:14px;border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}.error-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-radius:8px;background:var(--bad-soft);color:var(--bad);border:1px solid color-mix(in srgb,var(--bad) 25%,transparent)}.callout{padding:10px 12px;border-radius:8px;background:var(--warn-soft);color:var(--ink-2);font-size:12.5px;display:flex;flex-direction:column;gap:6px;margin-bottom:8px}.result{margin-top:10px;padding:10px;border-radius:8px;border:1px solid var(--line)}.result-ok{border-color:color-mix(in srgb,var(--ok) 40%,transparent)}.result-bad{border-color:color-mix(in srgb,var(--warn) 40%,transparent)}.json{font-family:var(--mono);font-size:12px;background:var(--surface-2);border-radius:8px;padding:10px 12px;margin:6px 0 0;overflow:auto;max-height:420px;white-space:pre-wrap;word-break:break-word}.token{display:block;word-break:break-all;background:var(--surface);padding:6px 8px}.evidence{padding:8px 10px;border:1px solid var(--line);border-radius:8px;margin-bottom:6px}.issue{margin-bottom:14px;display:flex;flex-direction:column;gap:8px}.drawer-backdrop{position:fixed;inset:0;background:#0a0e0c52;display:flex;justify-content:flex-end;z-index:10}.drawer{width:min(620px,100%);height:100%;background:var(--surface);border-left:1px solid var(--line);display:flex;flex-direction:column;box-shadow:-8px 0 24px #00000014}.drawer-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}.drawer-header h2{font-family:var(--mono);font-size:14px;overflow-wrap:anywhere}.drawer-body{padding:18px 20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.gate{min-height:100vh;display:grid;place-items:center;padding:24px}.gate-card{width:min(520px,100%);background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:28px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}@media(max-width:1080px){.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){.app{grid-template-columns:1fr}.nav{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center}.nav ul{flex-direction:row;flex-wrap:wrap}.nav kbd,.nav-foot{display:none}.grid-2,.grid-3,.grid-4,.split{grid-template-columns:1fr}.split-nav{position:static;max-height:none}.page{padding:18px 16px}.envbar{padding:8px 16px}.kv-row{grid-template-columns:1fr;gap:2px}}.form{display:grid;gap:10px;max-width:640px}.form label{display:grid;gap:4px}.form label>span{font-size:12px;font-weight:600;color:var(--muted)}.form select,.form textarea{font:inherit}.timeline{list-style:none;margin:0;padding:0;display:grid;gap:14px}.timeline-item{border-left:2px solid var(--line);padding-left:12px}.timeline-item p{margin:4px 0}.timeline-item ul{margin:4px 0;padding-left:18px}.ok-box{padding:10px 12px;border-radius:8px;background:var(--ok-soft, #e7f6ec);color:var(--ok, #17703a);border:1px solid color-mix(in srgb,var(--ok, #17703a) 25%,transparent);margin-top:8px}.error-box+.error-box,.card .error-box{margin-top:8px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:8px}.form-grid label{display:flex;flex-direction:column;gap:4px;font-size:13px}.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.check .small{margin-top:2px}.journey{list-style:none;margin:0;padding:0;display:grid;gap:8px}.journey li{display:flex;gap:10px;align-items:baseline}