@feltdb/feltkit 0.3.35 → 0.3.37

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 (39) hide show
  1. package/dist/dashboard/assets/index-BhxrvY37.js +15 -0
  2. package/dist/dashboard/assets/index-CSzYeCo_.css +1 -0
  3. package/dist/dashboard/index.html +2 -2
  4. package/dist/docs.d.ts +1 -1
  5. package/dist/docs.js +1 -0
  6. package/dist/docs.js.map +1 -1
  7. package/dist/runtime/agent-control-capabilities.d.ts +4 -0
  8. package/dist/runtime/agent-control-capabilities.js +66 -0
  9. package/dist/runtime/agent-control-capabilities.js.map +1 -0
  10. package/dist/runtime/agent-control.d.ts +173 -0
  11. package/dist/runtime/agent-control.js +405 -0
  12. package/dist/runtime/agent-control.js.map +1 -0
  13. package/dist/runtime/agent.d.ts +5 -0
  14. package/dist/runtime/agent.js +72 -1
  15. package/dist/runtime/agent.js.map +1 -1
  16. package/dist/runtime/context.d.ts +12 -0
  17. package/dist/runtime/contract.js +7 -2
  18. package/dist/runtime/contract.js.map +1 -1
  19. package/dist/runtime/providers.d.ts +126 -1
  20. package/dist/runtime/providers.js +242 -6
  21. package/dist/runtime/providers.js.map +1 -1
  22. package/dist/runtime/runtime.js +22 -3
  23. package/dist/runtime/runtime.js.map +1 -1
  24. package/dist/server/admin.js +48 -1
  25. package/dist/server/admin.js.map +1 -1
  26. package/dist/server/index.js +104 -0
  27. package/dist/server/index.js.map +1 -1
  28. package/dist/server/mcp.d.ts +58 -3
  29. package/dist/server/mcp.js +7 -0
  30. package/dist/server/mcp.js.map +1 -1
  31. package/docs/AGENT-CONTROL.md +142 -0
  32. package/docs/LOCAL-AUTHORITY.md +5 -3
  33. package/docs/PROVIDERS.md +58 -1
  34. package/docs/README.md +3 -2
  35. package/package.json +14 -14
  36. package/skills/.claude-plugin/marketplace.json +1 -1
  37. package/skills/.claude-plugin/plugin.json +1 -1
  38. package/dist/dashboard/assets/index-9rMS3yBm.js +0 -15
  39. package/dist/dashboard/assets/index-DkiYTUMR.css +0 -1
@@ -0,0 +1 @@
1
+ :root{color-scheme:light;--stack-font-family-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--stack-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;--stack-text-xs-size: .75rem;--stack-text-xs-line: 1rem;--stack-text-sm-size: .8125rem;--stack-text-sm-line: 1.25rem;--stack-text-md-size: .875rem;--stack-text-md-line: 1.375rem;--stack-text-lg-size: 1rem;--stack-text-lg-line: 1.5rem;--stack-text-xl-size: 1.25rem;--stack-text-xl-line: 1.75rem;--stack-text-2xl-size: 1.5rem;--stack-text-2xl-line: 2rem;--stack-text-3xl-size: 1.875rem;--stack-text-3xl-line: 2.375rem;--stack-text-4xl-size: 2.5rem;--stack-text-4xl-line: 3rem;--stack-text-display-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);--stack-text-display-line: 1.08;--stack-font-weight-regular: 400;--stack-font-weight-medium: 500;--stack-font-weight-semibold: 600;--stack-font-weight-bold: 700;--stack-letter-spacing-tight: -.02em;--stack-space-0: 0;--stack-space-1: 4px;--stack-space-2: 8px;--stack-space-3: 12px;--stack-space-4: 16px;--stack-space-5: 20px;--stack-space-6: 24px;--stack-space-8: 32px;--stack-space-10: 40px;--stack-space-12: 48px;--stack-space-16: 64px;--stack-space-20: 80px;--stack-space-24: 96px;--stack-size-control-sm: 32px;--stack-size-control-md: 36px;--stack-size-control-lg: 44px;--stack-size-icon-sm: 14px;--stack-size-icon-md: 16px;--stack-radius-sm: 4px;--stack-radius-md: 6px;--stack-radius-lg: 10px;--stack-radius-pill: 999px;--stack-border-width-thin: 1px;--stack-border-width-thick: 2px;--stack-focus-ring-width: 2px;--stack-focus-ring-offset: 2px;--stack-z-sticky: 10;--stack-z-dropdown: 20;--stack-z-overlay: 30;--stack-z-toast: 40;--stack-motion-duration-fast: .12s;--stack-motion-duration-base: .2s;--stack-motion-ease-standard: cubic-bezier(.2, 0, 0, 1);--stack-size-content-max: 1180px;--stack-size-prose-max: 68ch;--stack-color-bg-canvas: #f6f7f9;--stack-color-bg-surface: #ffffff;--stack-color-bg-raised: #ffffff;--stack-color-bg-sunken: #eef0f3;--stack-color-bg-overlay: rgba(15, 18, 24, .48);--stack-color-bg-code: #f0f2f5;--stack-color-text-default: #16181d;--stack-color-text-muted: #4b5260;--stack-color-text-subtle: #5f6673;--stack-color-text-inverse: #ffffff;--stack-color-text-link: #0a55d6;--stack-color-text-on-accent: #ffffff;--stack-color-border-default: #d9dde3;--stack-color-border-strong: #7c8492;--stack-color-border-subtle: #e8ebef;--stack-focus-ring-color: #0a5ce8;--stack-color-action-primary-bg: #0a5ce8;--stack-color-action-primary-fg: #ffffff;--stack-color-action-primary-bg-hover: #084dc4;--stack-color-action-primary-bg-active: #063fa3;--stack-color-action-secondary-bg: #ffffff;--stack-color-action-secondary-fg: #16181d;--stack-color-action-secondary-bg-hover: #eef0f3;--stack-color-action-secondary-bg-active: #e2e5ea;--stack-color-action-danger-bg: #c42b2b;--stack-color-action-danger-fg: #ffffff;--stack-color-action-danger-bg-hover: #a82323;--stack-color-action-danger-bg-active: #8c1d1d;--stack-color-status-positive-fg: #136b3a;--stack-color-status-positive-bg: #e8f5ee;--stack-color-status-positive-border: #9fd3b4;--stack-color-status-positive-glyph: #1a7f45;--stack-color-status-progress-fg: #1f4fb8;--stack-color-status-progress-bg: #eaf0fd;--stack-color-status-progress-border: #b9cbf3;--stack-color-status-progress-glyph: #2f5bd8;--stack-color-status-attention-fg: #734700;--stack-color-status-attention-bg: #fdf3e1;--stack-color-status-attention-border: #ecc77f;--stack-color-status-attention-glyph: #a26400;--stack-color-status-critical-fg: #a32020;--stack-color-status-critical-bg: #fdecec;--stack-color-status-critical-border: #f0b0b0;--stack-color-status-critical-glyph: #c42b2b;--stack-color-status-neutral-fg: #4b5260;--stack-color-status-neutral-bg: #eef0f3;--stack-color-status-neutral-border: #cdd2d9;--stack-color-status-neutral-glyph: #6b7280;--stack-color-status-unknown-fg: #55468a;--stack-color-status-unknown-bg: #f1eef8;--stack-color-status-unknown-border: #cdc4e8;--stack-color-status-unknown-glyph: #7262ad;--stack-color-evidence-verified-fg: #0d5c4a;--stack-color-evidence-verified-bg: #e4f4ef;--stack-color-evidence-verified-border: #93d1c0;--stack-color-evidence-verified-glyph: #11806a;--stack-color-evidence-unverified-fg: #4b5260;--stack-color-evidence-unverified-bg: #eef0f3;--stack-color-evidence-unverified-border: #cdd2d9;--stack-color-evidence-unverified-glyph: #6b7280;--stack-color-notice-info-fg: #1f4fb8;--stack-color-notice-info-bg: #eaf0fd;--stack-color-notice-info-border: #b9cbf3;--stack-color-chart-1: #2563eb;--stack-color-chart-2: #c2410c;--stack-color-chart-3: #0f766e;--stack-color-chart-4: #7c3aed;--stack-color-chart-5: #be185d;--stack-color-chart-6: #4d7c0f;--stack-color-chart-7: #a16207;--stack-color-chart-8: #475569;--stack-shadow-raised: 0 1px 2px rgba(16, 24, 40, .06);--stack-shadow-overlay: 0 12px 32px rgba(16, 24, 40, .18);--stack-brand-ink: #0b1538;--stack-brand-accent: #0a5ce8;--stack-brand-mark-start: #0b1538;--stack-brand-mark-end: #0a64ff;--stack-product-accent: #0a5ce8;--stack-product-accent-fg: #ffffff}[data-stack-product=feltdb]{--stack-product-accent: #18754a;--stack-product-accent-fg: #ffffff}[data-stack-product=appport]{--stack-product-accent: #2f6584;--stack-product-accent-fg: #ffffff}[data-stack-product=appboundry]{--stack-product-accent: #6a3fd0;--stack-product-accent-fg: #ffffff}[data-stack-product=authboundry]{--stack-product-accent: #8a4b36;--stack-product-accent-fg: #ffffff}[data-stack-product=feltkit]{--stack-product-accent: #0b7f6e;--stack-product-accent-fg: #ffffff}@media(prefers-color-scheme:dark){:root:not([data-stack-theme=light]){color-scheme:dark;--stack-color-bg-canvas: #0f1115;--stack-color-bg-surface: #171a20;--stack-color-bg-raised: #1d2027;--stack-color-bg-sunken: #0b0d10;--stack-color-bg-overlay: rgba(0, 0, 0, .6);--stack-color-bg-code: #1d2027;--stack-color-text-default: #e8eaee;--stack-color-text-muted: #b3b9c4;--stack-color-text-subtle: #9aa2ae;--stack-color-text-inverse: #0f1115;--stack-color-text-link: #8ab4ff;--stack-color-text-on-accent: #0b1020;--stack-color-border-default: #2e333c;--stack-color-border-strong: #6b7380;--stack-color-border-subtle: #23272e;--stack-focus-ring-color: #8ab4ff;--stack-color-action-primary-bg: #6ea3ff;--stack-color-action-primary-fg: #0b1020;--stack-color-action-primary-bg-hover: #8ab4ff;--stack-color-action-primary-bg-active: #a7c6ff;--stack-color-action-secondary-bg: #1d2027;--stack-color-action-secondary-fg: #e8eaee;--stack-color-action-secondary-bg-hover: #262a32;--stack-color-action-secondary-bg-active: #2e333c;--stack-color-action-danger-bg: #ff7b76;--stack-color-action-danger-fg: #1a0b0b;--stack-color-action-danger-bg-hover: #ff9692;--stack-color-action-danger-bg-active: #ffb0ad;--stack-color-status-positive-fg: #7ee2a8;--stack-color-status-positive-bg: #12291d;--stack-color-status-positive-border: #24543a;--stack-color-status-positive-glyph: #4cc985;--stack-color-status-progress-fg: #a9c1ff;--stack-color-status-progress-bg: #16213d;--stack-color-status-progress-border: #2c3f72;--stack-color-status-progress-glyph: #7b9cff;--stack-color-status-attention-fg: #f5c66b;--stack-color-status-attention-bg: #2e2410;--stack-color-status-attention-border: #5c4720;--stack-color-status-attention-glyph: #f0b429;--stack-color-status-critical-fg: #ff9b96;--stack-color-status-critical-bg: #331617;--stack-color-status-critical-border: #6b2a2a;--stack-color-status-critical-glyph: #ff6b6b;--stack-color-status-neutral-fg: #c3c8d1;--stack-color-status-neutral-bg: #22262d;--stack-color-status-neutral-border: #3a3f48;--stack-color-status-neutral-glyph: #9aa2ae;--stack-color-status-unknown-fg: #c9bdf2;--stack-color-status-unknown-bg: #241f36;--stack-color-status-unknown-border: #43395f;--stack-color-status-unknown-glyph: #a796e6;--stack-color-evidence-verified-fg: #7fe0c9;--stack-color-evidence-verified-bg: #0f2a25;--stack-color-evidence-verified-border: #22584c;--stack-color-evidence-verified-glyph: #46c7aa;--stack-color-evidence-unverified-fg: #c3c8d1;--stack-color-evidence-unverified-bg: #22262d;--stack-color-evidence-unverified-border: #3a3f48;--stack-color-evidence-unverified-glyph: #9aa2ae;--stack-color-notice-info-fg: #a9c1ff;--stack-color-notice-info-bg: #16213d;--stack-color-notice-info-border: #2c3f72;--stack-color-chart-1: #6ea3ff;--stack-color-chart-2: #fb923c;--stack-color-chart-3: #2dd4bf;--stack-color-chart-4: #c4a1ff;--stack-color-chart-5: #f472b6;--stack-color-chart-6: #a3e635;--stack-color-chart-7: #facc15;--stack-color-chart-8: #a8b3c4;--stack-shadow-raised: 0 1px 2px rgba(0, 0, 0, .4);--stack-shadow-overlay: 0 12px 32px rgba(0, 0, 0, .55);--stack-brand-ink: #e6ebf7;--stack-brand-accent: #8ab4ff;--stack-brand-mark-start: #dbe5ff;--stack-brand-mark-end: #3d86ff;--stack-product-accent: #8ab4ff;--stack-product-accent-fg: #0b1020}:root:not([data-stack-theme=light]) [data-stack-product=feltdb],:root:not([data-stack-theme=light])[data-stack-product=feltdb]{--stack-product-accent: #42e58d;--stack-product-accent-fg: #0b1020}:root:not([data-stack-theme=light]) [data-stack-product=appport],:root:not([data-stack-theme=light])[data-stack-product=appport]{--stack-product-accent: #7fb3d1;--stack-product-accent-fg: #0b1020}:root:not([data-stack-theme=light]) [data-stack-product=appboundry],:root:not([data-stack-theme=light])[data-stack-product=appboundry]{--stack-product-accent: #b49cf5;--stack-product-accent-fg: #0b1020}:root:not([data-stack-theme=light]) [data-stack-product=authboundry],:root:not([data-stack-theme=light])[data-stack-product=authboundry]{--stack-product-accent: #e09a80;--stack-product-accent-fg: #0b1020}:root:not([data-stack-theme=light]) [data-stack-product=feltkit],:root:not([data-stack-theme=light])[data-stack-product=feltkit]{--stack-product-accent: #3fd8c4;--stack-product-accent-fg: #0b1020}}:root[data-stack-theme=light]{color-scheme:light;--stack-color-bg-canvas: #f6f7f9;--stack-color-bg-surface: #ffffff;--stack-color-bg-raised: #ffffff;--stack-color-bg-sunken: #eef0f3;--stack-color-bg-overlay: rgba(15, 18, 24, .48);--stack-color-bg-code: #f0f2f5;--stack-color-text-default: #16181d;--stack-color-text-muted: #4b5260;--stack-color-text-subtle: #5f6673;--stack-color-text-inverse: #ffffff;--stack-color-text-link: #0a55d6;--stack-color-text-on-accent: #ffffff;--stack-color-border-default: #d9dde3;--stack-color-border-strong: #7c8492;--stack-color-border-subtle: #e8ebef;--stack-focus-ring-color: #0a5ce8;--stack-color-action-primary-bg: #0a5ce8;--stack-color-action-primary-fg: #ffffff;--stack-color-action-primary-bg-hover: #084dc4;--stack-color-action-primary-bg-active: #063fa3;--stack-color-action-secondary-bg: #ffffff;--stack-color-action-secondary-fg: #16181d;--stack-color-action-secondary-bg-hover: #eef0f3;--stack-color-action-secondary-bg-active: #e2e5ea;--stack-color-action-danger-bg: #c42b2b;--stack-color-action-danger-fg: #ffffff;--stack-color-action-danger-bg-hover: #a82323;--stack-color-action-danger-bg-active: #8c1d1d;--stack-color-status-positive-fg: #136b3a;--stack-color-status-positive-bg: #e8f5ee;--stack-color-status-positive-border: #9fd3b4;--stack-color-status-positive-glyph: #1a7f45;--stack-color-status-progress-fg: #1f4fb8;--stack-color-status-progress-bg: #eaf0fd;--stack-color-status-progress-border: #b9cbf3;--stack-color-status-progress-glyph: #2f5bd8;--stack-color-status-attention-fg: #734700;--stack-color-status-attention-bg: #fdf3e1;--stack-color-status-attention-border: #ecc77f;--stack-color-status-attention-glyph: #a26400;--stack-color-status-critical-fg: #a32020;--stack-color-status-critical-bg: #fdecec;--stack-color-status-critical-border: #f0b0b0;--stack-color-status-critical-glyph: #c42b2b;--stack-color-status-neutral-fg: #4b5260;--stack-color-status-neutral-bg: #eef0f3;--stack-color-status-neutral-border: #cdd2d9;--stack-color-status-neutral-glyph: #6b7280;--stack-color-status-unknown-fg: #55468a;--stack-color-status-unknown-bg: #f1eef8;--stack-color-status-unknown-border: #cdc4e8;--stack-color-status-unknown-glyph: #7262ad;--stack-color-evidence-verified-fg: #0d5c4a;--stack-color-evidence-verified-bg: #e4f4ef;--stack-color-evidence-verified-border: #93d1c0;--stack-color-evidence-verified-glyph: #11806a;--stack-color-evidence-unverified-fg: #4b5260;--stack-color-evidence-unverified-bg: #eef0f3;--stack-color-evidence-unverified-border: #cdd2d9;--stack-color-evidence-unverified-glyph: #6b7280;--stack-color-notice-info-fg: #1f4fb8;--stack-color-notice-info-bg: #eaf0fd;--stack-color-notice-info-border: #b9cbf3;--stack-color-chart-1: #2563eb;--stack-color-chart-2: #c2410c;--stack-color-chart-3: #0f766e;--stack-color-chart-4: #7c3aed;--stack-color-chart-5: #be185d;--stack-color-chart-6: #4d7c0f;--stack-color-chart-7: #a16207;--stack-color-chart-8: #475569;--stack-shadow-raised: 0 1px 2px rgba(16, 24, 40, .06);--stack-shadow-overlay: 0 12px 32px rgba(16, 24, 40, .18);--stack-brand-ink: #0b1538;--stack-brand-accent: #0a5ce8;--stack-brand-mark-start: #0b1538;--stack-brand-mark-end: #0a64ff;--stack-product-accent: #0a5ce8;--stack-product-accent-fg: #ffffff}:root[data-stack-theme=light] [data-stack-product=feltdb],:root[data-stack-theme=light][data-stack-product=feltdb]{--stack-product-accent: #18754a;--stack-product-accent-fg: #ffffff}:root[data-stack-theme=light] [data-stack-product=appport],:root[data-stack-theme=light][data-stack-product=appport]{--stack-product-accent: #2f6584;--stack-product-accent-fg: #ffffff}:root[data-stack-theme=light] [data-stack-product=appboundry],:root[data-stack-theme=light][data-stack-product=appboundry]{--stack-product-accent: #6a3fd0;--stack-product-accent-fg: #ffffff}:root[data-stack-theme=light] [data-stack-product=authboundry],:root[data-stack-theme=light][data-stack-product=authboundry]{--stack-product-accent: #8a4b36;--stack-product-accent-fg: #ffffff}:root[data-stack-theme=light] [data-stack-product=feltkit],:root[data-stack-theme=light][data-stack-product=feltkit]{--stack-product-accent: #0b7f6e;--stack-product-accent-fg: #ffffff}:root[data-stack-theme=dark]{color-scheme:dark;--stack-color-bg-canvas: #0f1115;--stack-color-bg-surface: #171a20;--stack-color-bg-raised: #1d2027;--stack-color-bg-sunken: #0b0d10;--stack-color-bg-overlay: rgba(0, 0, 0, .6);--stack-color-bg-code: #1d2027;--stack-color-text-default: #e8eaee;--stack-color-text-muted: #b3b9c4;--stack-color-text-subtle: #9aa2ae;--stack-color-text-inverse: #0f1115;--stack-color-text-link: #8ab4ff;--stack-color-text-on-accent: #0b1020;--stack-color-border-default: #2e333c;--stack-color-border-strong: #6b7380;--stack-color-border-subtle: #23272e;--stack-focus-ring-color: #8ab4ff;--stack-color-action-primary-bg: #6ea3ff;--stack-color-action-primary-fg: #0b1020;--stack-color-action-primary-bg-hover: #8ab4ff;--stack-color-action-primary-bg-active: #a7c6ff;--stack-color-action-secondary-bg: #1d2027;--stack-color-action-secondary-fg: #e8eaee;--stack-color-action-secondary-bg-hover: #262a32;--stack-color-action-secondary-bg-active: #2e333c;--stack-color-action-danger-bg: #ff7b76;--stack-color-action-danger-fg: #1a0b0b;--stack-color-action-danger-bg-hover: #ff9692;--stack-color-action-danger-bg-active: #ffb0ad;--stack-color-status-positive-fg: #7ee2a8;--stack-color-status-positive-bg: #12291d;--stack-color-status-positive-border: #24543a;--stack-color-status-positive-glyph: #4cc985;--stack-color-status-progress-fg: #a9c1ff;--stack-color-status-progress-bg: #16213d;--stack-color-status-progress-border: #2c3f72;--stack-color-status-progress-glyph: #7b9cff;--stack-color-status-attention-fg: #f5c66b;--stack-color-status-attention-bg: #2e2410;--stack-color-status-attention-border: #5c4720;--stack-color-status-attention-glyph: #f0b429;--stack-color-status-critical-fg: #ff9b96;--stack-color-status-critical-bg: #331617;--stack-color-status-critical-border: #6b2a2a;--stack-color-status-critical-glyph: #ff6b6b;--stack-color-status-neutral-fg: #c3c8d1;--stack-color-status-neutral-bg: #22262d;--stack-color-status-neutral-border: #3a3f48;--stack-color-status-neutral-glyph: #9aa2ae;--stack-color-status-unknown-fg: #c9bdf2;--stack-color-status-unknown-bg: #241f36;--stack-color-status-unknown-border: #43395f;--stack-color-status-unknown-glyph: #a796e6;--stack-color-evidence-verified-fg: #7fe0c9;--stack-color-evidence-verified-bg: #0f2a25;--stack-color-evidence-verified-border: #22584c;--stack-color-evidence-verified-glyph: #46c7aa;--stack-color-evidence-unverified-fg: #c3c8d1;--stack-color-evidence-unverified-bg: #22262d;--stack-color-evidence-unverified-border: #3a3f48;--stack-color-evidence-unverified-glyph: #9aa2ae;--stack-color-notice-info-fg: #a9c1ff;--stack-color-notice-info-bg: #16213d;--stack-color-notice-info-border: #2c3f72;--stack-color-chart-1: #6ea3ff;--stack-color-chart-2: #fb923c;--stack-color-chart-3: #2dd4bf;--stack-color-chart-4: #c4a1ff;--stack-color-chart-5: #f472b6;--stack-color-chart-6: #a3e635;--stack-color-chart-7: #facc15;--stack-color-chart-8: #a8b3c4;--stack-shadow-raised: 0 1px 2px rgba(0, 0, 0, .4);--stack-shadow-overlay: 0 12px 32px rgba(0, 0, 0, .55);--stack-brand-ink: #e6ebf7;--stack-brand-accent: #8ab4ff;--stack-brand-mark-start: #dbe5ff;--stack-brand-mark-end: #3d86ff;--stack-product-accent: #8ab4ff;--stack-product-accent-fg: #0b1020}:root[data-stack-theme=dark] [data-stack-product=feltdb],:root[data-stack-theme=dark][data-stack-product=feltdb]{--stack-product-accent: #42e58d;--stack-product-accent-fg: #0b1020}:root[data-stack-theme=dark] [data-stack-product=appport],:root[data-stack-theme=dark][data-stack-product=appport]{--stack-product-accent: #7fb3d1;--stack-product-accent-fg: #0b1020}:root[data-stack-theme=dark] [data-stack-product=appboundry],:root[data-stack-theme=dark][data-stack-product=appboundry]{--stack-product-accent: #b49cf5;--stack-product-accent-fg: #0b1020}:root[data-stack-theme=dark] [data-stack-product=authboundry],:root[data-stack-theme=dark][data-stack-product=authboundry]{--stack-product-accent: #e09a80;--stack-product-accent-fg: #0b1020}:root[data-stack-theme=dark] [data-stack-product=feltkit],:root[data-stack-theme=dark][data-stack-product=feltkit]{--stack-product-accent: #3fd8c4;--stack-product-accent-fg: #0b1020}@media(prefers-reduced-motion:reduce){:root{--stack-motion-duration-fast: 0ms;--stack-motion-duration-base: 0ms}}.stack-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.stack-status{display:inline-flex;align-items:baseline;gap:var(--stack-space-1);font:inherit;color:inherit;white-space:nowrap}.stack-status__glyph{font-size:.85em;line-height:1}.stack-status__detail{color:var(--stack-color-text-muted)}.stack-status__detail:before{content:"· "}.stack-status--positive .stack-status__glyph{color:var(--stack-color-status-positive-glyph)}.stack-status--progress .stack-status__glyph{color:var(--stack-color-status-progress-glyph)}.stack-status--attention .stack-status__glyph{color:var(--stack-color-status-attention-glyph)}.stack-status--critical .stack-status__glyph{color:var(--stack-color-status-critical-glyph)}.stack-status--neutral .stack-status__glyph{color:var(--stack-color-status-neutral-glyph)}.stack-status--unknown .stack-status__glyph{color:var(--stack-color-status-unknown-glyph)}.stack-verification{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:var(--stack-space-1);padding:var(--stack-space-1) var(--stack-space-2);border:var(--stack-border-width-thin) solid var(--stack-color-evidence-unverified-border);border-radius:var(--stack-radius-md);background:var(--stack-color-evidence-unverified-bg);color:var(--stack-color-evidence-unverified-fg);font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line)}.stack-verification--verified{border-color:var(--stack-color-evidence-verified-border);background:var(--stack-color-evidence-verified-bg);color:var(--stack-color-evidence-verified-fg)}.stack-verification--verification_failed{border-color:var(--stack-color-status-critical-border);background:var(--stack-color-status-critical-bg);color:var(--stack-color-status-critical-fg)}.stack-verification__label{font-weight:var(--stack-font-weight-medium)}.stack-verification__evidence{color:inherit;text-decoration:underline}.stack-verification__checks{flex-basis:100%;margin:var(--stack-space-1) 0 0;padding-left:var(--stack-space-5)}.stack-freshness{display:inline-flex;align-items:baseline;gap:var(--stack-space-1);color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line)}.stack-freshness__glyph{font-size:.85em}.stack-freshness--live .stack-freshness__glyph{color:var(--stack-color-status-positive-glyph)}.stack-freshness--cached .stack-freshness__glyph{color:var(--stack-color-status-neutral-glyph)}.stack-freshness--stale{color:var(--stack-color-status-attention-fg)}.stack-freshness--stale .stack-freshness__glyph{color:var(--stack-color-status-attention-glyph)}.stack-freshness--unknown .stack-freshness__glyph{color:var(--stack-color-status-unknown-glyph)}.stack-unavailable,.stack-error,.stack-empty,.stack-loading{border-radius:var(--stack-radius-lg);padding:var(--stack-space-3) var(--stack-space-4);font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line)}.stack-unavailable{border:var(--stack-border-width-thin) dashed var(--stack-color-border-strong);background:var(--stack-color-bg-sunken);color:var(--stack-color-text-muted)}.stack-unavailable__title{margin:0;color:var(--stack-color-text-default);font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line);font-weight:var(--stack-font-weight-semibold)}.stack-unavailable__reason{margin:var(--stack-space-1) 0 0}.stack-error{border:var(--stack-border-width-thin) solid var(--stack-color-status-critical-border);background:var(--stack-color-status-critical-bg);color:var(--stack-color-status-critical-fg)}.stack-error__title{margin:0;font-weight:var(--stack-font-weight-semibold)}.stack-error__message,.stack-error__meta{margin:var(--stack-space-1) 0 0}.stack-error__meta code{font-family:var(--stack-font-family-mono);font-size:.92em}.stack-error__actions{display:flex;gap:var(--stack-space-2);margin-top:var(--stack-space-3)}.stack-empty{border:var(--stack-border-width-thin) dashed var(--stack-color-border-default);color:var(--stack-color-text-muted);text-align:center;padding:var(--stack-space-6) var(--stack-space-4)}.stack-empty__title{margin:0;color:var(--stack-color-text-default);font-size:var(--stack-text-lg-size);line-height:var(--stack-text-lg-line);font-weight:var(--stack-font-weight-semibold)}.stack-empty__body{margin:var(--stack-space-1) 0 0}.stack-empty__action{margin-top:var(--stack-space-3)}.stack-loading{display:flex;align-items:center;gap:var(--stack-space-2);color:var(--stack-color-text-muted);padding-left:0}.stack-loading__indicator{width:var(--stack-size-icon-sm);height:var(--stack-size-icon-sm);border-radius:50%;border:var(--stack-border-width-thick) solid var(--stack-color-border-default);border-top-color:var(--stack-color-status-progress-glyph);animation:stack-spin calc(var(--stack-motion-duration-base) * 4) linear infinite}@keyframes stack-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.stack-loading__indicator,.stack-button__busy{animation:none}}.stack-meta{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:var(--stack-space-2);margin:0}.stack-meta__item{min-width:0;padding:var(--stack-space-3);border:var(--stack-border-width-thin) solid var(--stack-color-border-default);border-radius:var(--stack-radius-lg);background:var(--stack-color-bg-surface)}.stack-meta__label{color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);line-height:var(--stack-text-xs-line);text-transform:uppercase;letter-spacing:.04em;font-weight:var(--stack-font-weight-medium)}.stack-meta__value{margin:var(--stack-space-1) 0 0;color:var(--stack-color-text-default);font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line);overflow-wrap:anywhere}.stack-meta__value--mono{font-family:var(--stack-font-family-mono);font-size:var(--stack-text-sm-size)}.stack-meta__hint{margin:var(--stack-space-1) 0 0;color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size)}.stack-identity{display:inline-flex;align-items:baseline;gap:var(--stack-space-2);min-width:0}.stack-identity__kind{color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);text-transform:uppercase;letter-spacing:.04em}.stack-identity__name{font-weight:var(--stack-font-weight-semibold);color:inherit}a.stack-identity__name{color:var(--stack-color-text-link)}.stack-identity__id{font-family:var(--stack-font-family-mono);font-size:var(--stack-text-sm-size);padding:0 var(--stack-space-1);border-radius:var(--stack-radius-sm);background:var(--stack-color-bg-code);color:var(--stack-color-text-default)}.stack-page-header{margin:0 0 var(--stack-space-4)}.stack-page-header__eyebrow{margin:0;color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--stack-font-weight-semibold)}.stack-page-header__title-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--stack-space-3)}.stack-page-header__title{margin:var(--stack-space-1) 0 0;color:var(--stack-color-text-default);font-size:var(--stack-text-2xl-size);line-height:var(--stack-text-2xl-line);font-weight:var(--stack-font-weight-semibold)}.stack-page-header__actions{display:flex;gap:var(--stack-space-2);margin-left:auto}.stack-page-header__description{margin:var(--stack-space-1) 0 0;color:var(--stack-color-text-muted);max-width:72ch}.stack-page-header__meta{margin-top:var(--stack-space-2)}.stack-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--stack-space-2);min-height:var(--stack-size-control-md);padding:0 var(--stack-space-3);border:var(--stack-border-width-thin) solid var(--stack-color-border-default);border-radius:var(--stack-radius-md);background:var(--stack-color-action-secondary-bg);color:var(--stack-color-action-secondary-fg);font:inherit;font-size:var(--stack-text-md-size);font-weight:var(--stack-font-weight-medium);cursor:pointer;transition:background-color var(--stack-motion-duration-fast) var(--stack-motion-ease-standard)}.stack-button:hover:not(:disabled){background:var(--stack-color-action-secondary-bg-hover)}.stack-button:active:not(:disabled){background:var(--stack-color-action-secondary-bg-active)}.stack-button--primary{border-color:transparent;background:var(--stack-color-action-primary-bg);color:var(--stack-color-action-primary-fg)}.stack-button--primary:hover:not(:disabled){background:var(--stack-color-action-primary-bg-hover)}.stack-button--primary:active:not(:disabled){background:var(--stack-color-action-primary-bg-active)}.stack-button--danger{border-color:transparent;background:var(--stack-color-action-danger-bg);color:var(--stack-color-action-danger-fg)}.stack-button--danger:hover:not(:disabled){background:var(--stack-color-action-danger-bg-hover)}.stack-button--danger:active:not(:disabled){background:var(--stack-color-action-danger-bg-active)}.stack-button--ghost{border-color:transparent;background:transparent}.stack-button--sm{min-height:var(--stack-size-control-sm);padding:0 var(--stack-space-2);font-size:var(--stack-text-sm-size)}.stack-button--lg{min-height:var(--stack-size-control-lg);padding:0 var(--stack-space-4)}.stack-button:disabled{opacity:.55;cursor:not-allowed}.stack-button[aria-busy=true]{opacity:.8;cursor:progress}.stack-button__busy{width:var(--stack-size-icon-sm);height:var(--stack-size-icon-sm);border-radius:50%;border:var(--stack-border-width-thick) solid currentColor;border-right-color:transparent;animation:stack-spin calc(var(--stack-motion-duration-base) * 4) linear infinite}.stack-button:focus-visible,.stack-identity__name:focus-visible,.stack-verification__evidence:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-breadcrumbs{font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line);color:var(--stack-color-text-muted)}.stack-breadcrumbs__list{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--stack-space-1);margin:0;padding:0;list-style:none}.stack-breadcrumbs__item{display:inline-flex;align-items:baseline;gap:var(--stack-space-1);min-width:0}.stack-breadcrumbs__separator{color:var(--stack-color-text-subtle)}.stack-breadcrumbs__link{color:var(--stack-color-text-link);text-decoration:none}.stack-breadcrumbs__link:hover{text-decoration:underline}.stack-breadcrumbs__current{color:var(--stack-color-text-default);font-weight:var(--stack-font-weight-medium);overflow-wrap:anywhere}.stack-tabs{display:flex;gap:var(--stack-space-1);overflow-x:auto;border-bottom:var(--stack-border-width-thin) solid var(--stack-color-border-default)}.stack-tabs__tab{display:inline-flex;align-items:center;gap:var(--stack-space-2);min-height:var(--stack-size-control-md);padding:0 var(--stack-space-3);margin-bottom:-1px;border:0;border-bottom:var(--stack-border-width-thick) solid transparent;background:transparent;color:var(--stack-color-text-muted);font:inherit;font-size:var(--stack-text-md-size);font-weight:var(--stack-font-weight-medium);white-space:nowrap;cursor:pointer}.stack-tabs__tab:hover:not(:disabled){color:var(--stack-color-text-default)}.stack-tabs__tab[aria-selected=true]{color:var(--stack-color-text-default);border-bottom-color:var(--stack-color-action-primary-bg)}.stack-tabs__tab:disabled{opacity:.55;cursor:not-allowed}.stack-tabs__badge{padding:0 var(--stack-space-2);border-radius:var(--stack-radius-pill);background:var(--stack-color-bg-sunken);color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size)}.stack-tabpanel{padding-top:var(--stack-space-4)}.stack-table{overflow-x:auto;border:var(--stack-border-width-thin) solid var(--stack-color-border-default);border-radius:var(--stack-radius-lg);background:var(--stack-color-bg-surface)}.stack-table[aria-busy=true]{box-shadow:inset 0 var(--stack-border-width-thick) 0 var(--stack-color-status-progress-glyph)}.stack-table__table{width:100%;border-collapse:collapse;font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line)}.stack-table__caption{padding:var(--stack-space-3) var(--stack-space-4);text-align:left;color:var(--stack-color-text-default);font-weight:var(--stack-font-weight-semibold)}.stack-table__header{padding:var(--stack-space-2) var(--stack-space-4);text-align:left;white-space:nowrap;border-bottom:var(--stack-border-width-thin) solid var(--stack-color-border-default);background:var(--stack-color-bg-sunken);color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);font-weight:var(--stack-font-weight-semibold);letter-spacing:.04em;text-transform:uppercase}.stack-table__sort{display:inline-flex;align-items:center;gap:var(--stack-space-1);padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}.stack-table__sort-indicator{color:var(--stack-color-text-subtle)}.stack-table__cell{padding:var(--stack-space-2) var(--stack-space-4);vertical-align:top;border-bottom:var(--stack-border-width-thin) solid var(--stack-color-border-subtle);color:var(--stack-color-text-default)}.stack-table__row:last-child .stack-table__cell{border-bottom:0}.stack-table__cell--end{text-align:right}.stack-table__cell[data-missing=true]{color:var(--stack-color-text-subtle)}.stack-table__row--selectable{cursor:pointer}.stack-table__row--selectable:hover{background:var(--stack-color-bg-sunken)}.stack-table__row--selected{background:var(--stack-color-status-progress-bg)}.stack-filter{margin:0 0 var(--stack-space-3)}.stack-filter__controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--stack-space-3)}.stack-filter__field{display:flex;flex-direction:column;gap:var(--stack-space-1);min-width:0}.stack-filter__label{color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);font-weight:var(--stack-font-weight-semibold)}.stack-filter__control{min-height:var(--stack-size-control-md);max-width:100%;padding:0 var(--stack-space-2);border:var(--stack-border-width-thin) solid var(--stack-color-border-strong);border-radius:var(--stack-radius-md);background:var(--stack-color-bg-surface);color:var(--stack-color-text-default);font:inherit;font-size:var(--stack-text-md-size)}.stack-filter__actions{display:flex;gap:var(--stack-space-2)}.stack-filter__result{margin:var(--stack-space-2) 0 0;min-height:var(--stack-text-sm-line);color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.stack-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--stack-space-3);margin-top:var(--stack-space-3)}.stack-pagination__summary{margin:0;color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.stack-pagination__actions{display:flex;gap:var(--stack-space-2);margin-left:auto}.stack-shell{min-height:100vh;display:flex;flex-direction:column;background:var(--stack-color-bg-canvas);color:var(--stack-color-text-default);font-family:var(--stack-font-family-sans)}.stack-shell__skip{position:absolute;left:var(--stack-space-2);top:-100px;z-index:var(--stack-z-toast);padding:var(--stack-space-2) var(--stack-space-3);border-radius:var(--stack-radius-md);background:var(--stack-color-action-primary-bg);color:var(--stack-color-action-primary-fg)}.stack-shell__skip:not(:focus){clip-path:inset(50%)}.stack-shell__skip:focus{top:var(--stack-space-2)}.stack-shell__bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--stack-space-3);min-height:52px;padding:var(--stack-space-2) var(--stack-space-4);border-bottom:var(--stack-border-width-thin) solid var(--stack-color-border-default);background:var(--stack-color-bg-surface)}.stack-shell__product{display:inline-flex;align-items:center;gap:var(--stack-space-2);color:var(--stack-color-text-default);text-decoration:none;font-weight:var(--stack-font-weight-semibold);letter-spacing:.02em}.stack-shell__mark{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:var(--stack-radius-md);background:var(--stack-product-accent, var(--stack-color-action-primary-bg));color:var(--stack-product-accent-fg, var(--stack-color-action-primary-fg));font-size:var(--stack-text-xs-size)}.stack-shell__context,.stack-shell__search{display:flex;align-items:center;min-width:0}.stack-shell__search{flex:1 1 200px;max-width:420px}.stack-shell__end{display:flex;align-items:center;gap:var(--stack-space-3);margin-left:auto;min-width:0;flex-wrap:wrap}.stack-shell__family{display:inline-flex;align-items:center;gap:var(--stack-space-2);color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);text-decoration:none}.stack-shell__family:hover{color:var(--stack-color-text-default);text-decoration:underline}.stack-shell__family:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-shell__family .stack-brand-mark{width:16px}.stack-shell__account{display:flex;align-items:center;gap:var(--stack-space-2);min-width:0}.stack-shell__body{flex:1;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:0}.stack-shell__nav{padding:var(--stack-space-4) var(--stack-space-3);border-right:var(--stack-border-width-thin) solid var(--stack-color-border-default);background:var(--stack-color-bg-surface);overflow-y:auto;min-width:0;overflow-x:hidden}.stack-shell__nav-group+.stack-shell__nav-group{margin-top:var(--stack-space-4)}.stack-shell__nav-heading{margin:0 0 var(--stack-space-1);padding:0 var(--stack-space-2);color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);font-weight:var(--stack-font-weight-semibold);letter-spacing:.06em;text-transform:uppercase}.stack-shell__nav-list{margin:0;padding:0;list-style:none}.stack-shell__nav-entry{min-width:0}.stack-shell__nav-entry--action{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--stack-space-1)}.stack-shell__nav-item{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--stack-space-2);align-items:center;min-width:0;padding:var(--stack-space-2);border-radius:var(--stack-radius-md);overflow-wrap:anywhere;color:var(--stack-color-text-default);text-decoration:none;font-size:var(--stack-text-md-size)}.stack-shell__nav-label{grid-column:1;min-width:0;overflow-wrap:anywhere}.stack-shell__nav-detail{grid-column:1;min-width:0;overflow-wrap:anywhere;color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);font-weight:400}.stack-shell__nav-meta{grid-column:2;grid-row:1 / span 2;color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);font-variant-numeric:tabular-nums;white-space:nowrap}.stack-shell__nav-action{display:flex;min-width:0;max-width:100%}.stack-shell__nav-action>*{max-width:100%}.stack-shell__sidebar-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:var(--stack-radius-md);background:transparent;color:var(--stack-color-text-default);cursor:pointer}.stack-shell__sidebar-button:hover{background:var(--stack-color-bg-sunken)}.stack-shell__sidebar-icon{width:20px;height:20px;display:block}@media(min-width:768px){.stack-shell--collapsed .stack-shell__body{grid-template-columns:minmax(0,1fr)}.stack-shell--collapsed .stack-shell__nav{display:none}}.stack-shell__nav-item:hover{background:var(--stack-color-bg-sunken)}.stack-shell__nav-item[aria-current=page]{background:var(--stack-color-status-progress-bg);color:var(--stack-color-status-progress-fg);font-weight:var(--stack-font-weight-semibold)}.stack-shell__main{box-sizing:border-box;width:100%;min-width:0;padding:var(--stack-space-6)}.stack-shell__main:focus{outline:none}.stack-shell__menu-button{display:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:var(--stack-radius-md);background:transparent;color:var(--stack-color-text-default);font:inherit;font-size:var(--stack-text-lg-size);cursor:pointer}.stack-shell__menu-button:hover{background:var(--stack-color-bg-sunken)}@media(max-width:767px){.stack-shell__body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}.stack-shell__nav{display:flex;gap:var(--stack-space-3);padding:var(--stack-space-2) var(--stack-space-3);border-right:0;border-bottom:var(--stack-border-width-thin) solid var(--stack-color-border-default);overflow-x:auto}.stack-shell__nav-group+.stack-shell__nav-group{margin-top:0}.stack-shell__nav-heading{display:none}.stack-shell__nav-list{display:flex;gap:var(--stack-space-1)}.stack-shell__nav-item{white-space:nowrap}.stack-shell__nav-detail,.stack-shell__sidebar-button{display:none}.stack-shell__main{padding:var(--stack-space-4)}.stack-shell--menu .stack-shell__menu-button{display:inline-flex}.stack-shell--menu .stack-shell__nav{display:none}.stack-shell--menu.stack-shell--menu-open .stack-shell__nav{display:block;padding:var(--stack-space-3);overflow-x:visible;overflow-y:auto}.stack-shell--menu.stack-shell--menu-open .stack-shell__nav-group+.stack-shell__nav-group{margin-top:var(--stack-space-4)}.stack-shell--menu.stack-shell--menu-open .stack-shell__nav-heading,.stack-shell--menu.stack-shell--menu-open .stack-shell__nav-list{display:block}.stack-shell--menu.stack-shell--menu-open .stack-shell__nav-item{white-space:normal}.stack-shell--menu.stack-shell--menu-open .stack-shell__nav-detail{display:block}}.stack-tabs__tab:focus-visible,.stack-table__sort:focus-visible,.stack-table:focus-visible,.stack-table__row--selectable:focus-visible,.stack-filter__control:focus-visible,.stack-shell__theme:focus-visible,.stack-shell__nav-item:focus-visible,.stack-shell__product:focus-visible,.stack-breadcrumbs__link:focus-visible,.stack-shell__skip:focus-visible,.stack-tabpanel:focus-visible,.stack-shell__menu-button:focus-visible,.stack-shell__sidebar-button:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-field{display:flex;flex-direction:column;gap:var(--stack-space-1);min-width:0}.stack-field__label{color:var(--stack-color-text-default);font-size:var(--stack-text-sm-size);font-weight:var(--stack-font-weight-semibold)}.stack-field__required{color:var(--stack-color-status-critical-fg)}.stack-field__control{box-sizing:border-box;width:100%;min-height:var(--stack-size-control-md);padding:var(--stack-space-1) var(--stack-space-2);border:var(--stack-border-width-thin) solid var(--stack-color-border-strong);border-radius:var(--stack-radius-md);background:var(--stack-color-bg-surface);color:var(--stack-color-text-default);font:inherit;font-size:var(--stack-text-md-size)}textarea.stack-field__control{min-height:calc(var(--stack-size-control-md) * 2);resize:vertical;font-family:var(--stack-font-family-mono);font-size:var(--stack-text-sm-size)}.stack-field__control::placeholder{color:var(--stack-color-text-subtle);opacity:1}.stack-field__control:disabled,.stack-field__control[readonly]{background:var(--stack-color-bg-sunken);color:var(--stack-color-text-muted)}.stack-field--invalid .stack-field__control{border-color:var(--stack-color-status-critical-glyph)}.stack-field__hint{margin:0;color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size)}.stack-field__error{margin:0;color:var(--stack-color-status-critical-fg);font-size:var(--stack-text-xs-size);font-weight:var(--stack-font-weight-semibold)}.stack-form{display:flex;flex-direction:column;gap:var(--stack-space-3);margin:0 0 var(--stack-space-4)}.stack-form__fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:var(--stack-space-3);align-items:start}.stack-form__actions{display:flex;flex-wrap:wrap;gap:var(--stack-space-2)}.stack-form--inline{flex-direction:row;flex-wrap:wrap;align-items:flex-end}.stack-form--inline .stack-form__fields{flex:1 1 320px}.stack-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 2 * var(--stack-space-4)));max-height:calc(100vh - 2 * var(--stack-space-4));padding:0;overflow:auto;border:var(--stack-border-width-thin) solid var(--stack-color-border-default);border-radius:var(--stack-radius-lg);background:var(--stack-color-bg-raised);color:var(--stack-color-text-default);box-shadow:var(--stack-shadow-overlay);font-family:var(--stack-font-family-sans)}.stack-dialog::backdrop{background:var(--stack-color-bg-overlay)}.stack-dialog__surface{display:flex;flex-direction:column;gap:var(--stack-space-3);padding:var(--stack-space-5)}.stack-dialog__title{margin:0;font-size:var(--stack-text-lg-size);line-height:var(--stack-text-lg-line);font-weight:var(--stack-font-weight-semibold)}.stack-dialog__description{margin:0;color:var(--stack-color-text-muted)}.stack-dialog__body{display:flex;flex-direction:column;gap:var(--stack-space-3)}.stack-dialog__body .stack-form{margin:0}.stack-dialog__body .stack-form__fields{grid-template-columns:1fr}.stack-dialog__actions,.stack-form-dialog .stack-form__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--stack-space-2)}.stack-confirm__consequences{margin:0;padding-left:var(--stack-space-5)}.stack-confirm__consequences li+li{margin-top:var(--stack-space-1)}.stack-field__control:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}@media(prefers-reduced-motion:no-preference){.stack-dialog[open]{animation:stack-dialog-in var(--stack-motion-duration-fast) var(--stack-motion-ease-standard)}}@keyframes stack-dialog-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.stack-evidence{margin:0 0 var(--stack-space-4);padding:var(--stack-space-4);border:var(--stack-border-width-thin) solid var(--stack-color-border-default);border-radius:var(--stack-radius-lg);background:var(--stack-color-bg-surface);color:var(--stack-color-text-default)}.stack-evidence__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--stack-space-2) var(--stack-space-3)}.stack-evidence__title{margin:0;font-size:var(--stack-text-lg-size);line-height:var(--stack-text-lg-line);font-weight:var(--stack-font-weight-semibold)}.stack-evidence__summary{margin:var(--stack-space-1) 0 var(--stack-space-3);color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.stack-evidence__claims{display:grid;grid-template-columns:minmax(8rem,max-content) minmax(0,1fr);gap:var(--stack-space-2) var(--stack-space-4);margin:0}.stack-evidence__claim{display:contents}.stack-evidence__label{color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.stack-evidence__value{margin:0;min-width:0;overflow-wrap:anywhere;font-size:var(--stack-text-sm-size)}.stack-evidence__value--mono{font-family:var(--stack-font-family-mono);font-size:var(--stack-text-sm-size)}.stack-evidence__check{grid-column:2;margin:0}.stack-evidence__source{margin:var(--stack-space-3) 0 0;color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size)}@media(max-width:479px){.stack-evidence__claims{grid-template-columns:minmax(0,1fr)}.stack-evidence__check{grid-column:1}}.stack-alert{display:flex;gap:var(--stack-space-3);margin:0 0 var(--stack-space-4);padding:var(--stack-space-3) var(--stack-space-4);border:var(--stack-border-width-thin) solid var(--stack-color-notice-info-border);border-radius:var(--stack-radius-md);background:var(--stack-color-notice-info-bg);color:var(--stack-color-notice-info-fg);font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line)}.stack-alert--attention{border-color:var(--stack-color-status-attention-border);background:var(--stack-color-status-attention-bg);color:var(--stack-color-status-attention-fg)}.stack-alert--critical{border-color:var(--stack-color-status-critical-border);background:var(--stack-color-status-critical-bg);color:var(--stack-color-status-critical-fg)}.stack-alert__glyph{flex:none;width:1.25em;text-align:center;font-weight:var(--stack-font-weight-semibold)}.stack-alert__content{display:flex;flex-direction:column;gap:var(--stack-space-1);min-width:0}.stack-alert__title{margin:0;font-weight:var(--stack-font-weight-semibold)}.stack-alert__body>:first-child{margin-top:0}.stack-alert__body>:last-child{margin-bottom:0}.stack-alert__actions{display:flex;flex-wrap:wrap;gap:var(--stack-space-2);margin-top:var(--stack-space-1)}.stack-checkbox{display:flex;flex-direction:column;gap:var(--stack-space-1);min-width:0}.stack-checkbox__row{display:flex;align-items:flex-start;gap:var(--stack-space-2)}.stack-checkbox__control{flex:none;width:18px;height:18px;margin:3px 0 0;accent-color:var(--stack-color-action-primary-bg)}.stack-checkbox__label{color:var(--stack-color-text-default);font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line);cursor:pointer}.stack-checkbox__control:disabled+.stack-checkbox__label{color:var(--stack-color-text-muted);cursor:default}.stack-checkbox--invalid .stack-checkbox__control{outline:var(--stack-border-width-thin) solid var(--stack-color-status-critical-glyph);outline-offset:1px}.stack-checkbox .stack-field__hint,.stack-checkbox .stack-field__error{padding-left:calc(18px + var(--stack-space-2))}.stack-checkbox__control:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-fieldgroup{min-width:0;margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:var(--stack-space-2)}.stack-fieldgroup__legend{padding:0;margin-bottom:var(--stack-space-1);color:var(--stack-color-text-default);font-size:var(--stack-text-sm-size);font-weight:var(--stack-font-weight-semibold)}.stack-fieldgroup__controls{display:flex;flex-direction:column;gap:var(--stack-space-2)}.stack-timeline{margin:0 0 var(--stack-space-4)}.stack-timeline__list{list-style:none;margin:0;padding:0}.stack-timeline__item{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr);gap:var(--stack-space-3);padding-bottom:var(--stack-space-4)}.stack-timeline__item:before{content:"";position:absolute;left:5px;top:14px;bottom:0;width:var(--stack-border-width-thin);background:var(--stack-color-border-default)}.stack-timeline__item:last-child:before{display:none}.stack-timeline__marker{width:12px;height:12px;margin-top:4px;box-sizing:border-box;border-radius:var(--stack-radius-pill);border:var(--stack-border-width-thick) solid var(--stack-color-border-strong);background:var(--stack-color-bg-surface)}.stack-timeline__content{min-width:0}.stack-timeline__summary{margin:0;overflow-wrap:anywhere;color:var(--stack-color-text-default)}.stack-timeline__meta{margin:var(--stack-space-1) 0 0;color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.stack-timeline__detail{margin-top:var(--stack-space-2);font-size:var(--stack-text-sm-size)}.stack-timeline__more{margin:0;color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.stack-timeline__link{color:var(--stack-color-text-link)}.stack-timeline__link:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-brand-mark{display:block;width:24px;height:auto;flex:none}.stack-brand-mark__start{stop-color:var(--stack-brand-mark-start)}.stack-brand-mark__end{stop-color:var(--stack-brand-mark-end)}.stack-theme-switch__control,.stack-shell__theme{min-height:var(--stack-size-control-sm);padding:0 var(--stack-space-2);border:var(--stack-border-width-thin) solid var(--stack-color-border-strong);border-radius:var(--stack-radius-md);background:var(--stack-color-bg-surface);color:var(--stack-color-text-default);font:inherit;font-size:var(--stack-text-sm-size)}.stack-site-container{box-sizing:border-box;width:100%;max-width:var(--stack-size-content-max);margin:0 auto;padding:0 clamp(var(--stack-space-4),4vw,var(--stack-space-10))}.stack-section{padding:clamp(var(--stack-space-12),8vw,var(--stack-space-24)) 0}.stack-section+.stack-section{border-top:var(--stack-border-width-thin) solid var(--stack-color-border-subtle)}.stack-eyebrow{margin:0 0 var(--stack-space-3);color:var(--stack-product-accent);font-size:var(--stack-text-sm-size);font-weight:var(--stack-font-weight-semibold);letter-spacing:.06em;text-transform:uppercase}.stack-display{margin:0;color:var(--stack-color-text-default);font-size:var(--stack-text-display-size);line-height:var(--stack-text-display-line);font-weight:var(--stack-font-weight-bold);letter-spacing:var(--stack-letter-spacing-tight);text-wrap:balance}.stack-heading{margin:0 0 var(--stack-space-4);color:var(--stack-color-text-default);font-size:var(--stack-text-3xl-size);line-height:var(--stack-text-3xl-line);font-weight:var(--stack-font-weight-bold);letter-spacing:var(--stack-letter-spacing-tight);text-wrap:balance}.stack-lede{max-width:var(--stack-size-prose-max);margin:var(--stack-space-5) 0 0;color:var(--stack-color-text-muted);font-size:var(--stack-text-xl-size);line-height:var(--stack-text-xl-line)}.stack-hero{padding:clamp(var(--stack-space-12),10vw,var(--stack-space-24)) 0 clamp(var(--stack-space-10),8vw,var(--stack-space-20))}.stack-hero__actions{display:flex;flex-wrap:wrap;gap:var(--stack-space-3);margin-top:var(--stack-space-8)}.stack-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:var(--stack-space-4);margin:0;padding:0;list-style:none}.stack-feature{padding:var(--stack-space-6);border:var(--stack-border-width-thin) solid var(--stack-color-border-default);border-radius:var(--stack-radius-lg);background:var(--stack-color-bg-surface)}.stack-feature__title{margin:0 0 var(--stack-space-2);color:var(--stack-color-text-default);font-size:var(--stack-text-lg-size);line-height:var(--stack-text-lg-line);font-weight:var(--stack-font-weight-semibold)}.stack-feature__body{margin:0;color:var(--stack-color-text-muted)}.stack-site-header{position:sticky;top:0;z-index:var(--stack-z-sticky);border-bottom:var(--stack-border-width-thin) solid var(--stack-color-border-default);background:color-mix(in srgb,var(--stack-color-bg-canvas) 92%,transparent);-webkit-backdrop-filter:saturate(140%) blur(10px);backdrop-filter:saturate(140%) blur(10px);font-family:var(--stack-font-family-sans);color:var(--stack-color-text-default)}.stack-site-header__skip{position:absolute;left:var(--stack-space-4);top:var(--stack-space-2);transform:translateY(-200%);padding:var(--stack-space-2) var(--stack-space-3);border-radius:var(--stack-radius-md);background:var(--stack-color-text-default);color:var(--stack-color-text-inverse)}.stack-site-header__skip:focus{transform:none}.stack-site-header__inner{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:var(--stack-space-2) var(--stack-space-6);max-width:var(--stack-size-content-max);min-height:64px;margin:0 auto;padding:var(--stack-space-2) clamp(var(--stack-space-4),4vw,var(--stack-space-10))}.stack-site-header__identity{display:flex;align-items:center;gap:var(--stack-space-3);min-width:0;flex-wrap:wrap}.stack-site-header__home{display:inline-flex;align-items:center;gap:var(--stack-space-2);align-self:center;color:var(--stack-color-text-default);text-decoration:none;font-size:var(--stack-text-lg-size);font-weight:var(--stack-font-weight-bold);letter-spacing:-.01em}.stack-site-header__logo{display:inline-flex;width:24px}.stack-site-header__logo>img,.stack-site-header__logo>svg{width:100%;height:auto;display:block}.stack-site-header__product-mark{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:var(--stack-radius-md);background:var(--stack-product-accent);color:var(--stack-product-accent-fg);font-size:var(--stack-text-xs-size);letter-spacing:.02em}.stack-site-header__family{color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);text-decoration:none;white-space:nowrap}.stack-site-header__family:hover{color:var(--stack-color-text-default);text-decoration:underline}.stack-site-header .stack-site-header__nav{margin-left:auto;min-width:0}.stack-site-header__nav-list{display:flex;gap:var(--stack-space-1);margin:0;padding:0;list-style:none}.stack-site-header .stack-site-header__nav-item{display:block;padding:var(--stack-space-2) var(--stack-space-3);border-radius:var(--stack-radius-md);color:var(--stack-color-text-muted);text-decoration:none;font-size:var(--stack-text-md-size);white-space:nowrap}.stack-site-header__nav-item:hover{color:var(--stack-color-text-default);background:var(--stack-color-bg-sunken)}.stack-site-header__nav-item[aria-current=page]{color:var(--stack-color-text-default);box-shadow:inset 0 -2px 0 var(--stack-product-accent);border-radius:0}.stack-site-header__end{display:flex;align-items:center;gap:var(--stack-space-3)}@media(max-width:860px){.stack-site-header__inner{padding-top:var(--stack-space-3);padding-bottom:0}.stack-site-header__end{margin-left:auto}.stack-site-header .stack-site-header__nav{order:3;flex:1 0 100%;margin:0 calc(-1*clamp(var(--stack-space-4),4vw,var(--stack-space-10)));overflow-x:auto}.stack-site-header__nav-list{padding:0 clamp(var(--stack-space-4),4vw,var(--stack-space-10)) var(--stack-space-1)}.stack-site-header .stack-site-header__nav-item{padding:var(--stack-space-2)}}.stack-site-header,.stack-site-footer{display:block;height:auto;padding:0;margin:0;text-align:left;text-transform:none;letter-spacing:normal}.stack-site-header nav,.stack-site-footer nav{display:block;gap:normal;padding:0;margin:0;border:0;background:none;position:static;width:auto;height:auto}.stack-site-header a,.stack-site-footer a{text-transform:none;letter-spacing:normal;border:0;font-weight:inherit}.stack-site-footer p,.stack-site-footer ul,.stack-site-footer li{text-align:left}.stack-site-footer__link,.stack-site-footer__company,.stack-site-footer__legal a{padding:0}.stack-site-footer{border-top:var(--stack-border-width-thin) solid var(--stack-color-border-default);background:var(--stack-color-bg-sunken);color:var(--stack-color-text-muted);font-family:var(--stack-font-family-sans);font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line)}.stack-site-footer__inner{box-sizing:border-box;max-width:var(--stack-size-content-max);margin:0 auto;padding:var(--stack-space-12) clamp(var(--stack-space-4),4vw,var(--stack-space-10)) var(--stack-space-8)}.stack-site-footer__top{display:grid;grid-template-columns:minmax(0,2fr) repeat(auto-fit,minmax(140px,1fr));gap:var(--stack-space-8)}.stack-site-footer__name{margin:0;color:var(--stack-color-text-default);font-size:var(--stack-text-lg-size);font-weight:var(--stack-font-weight-bold)}.stack-site-footer__tagline{margin:var(--stack-space-2) 0 0;max-width:36ch}.stack-site-footer__heading{margin:0 0 var(--stack-space-3);color:var(--stack-color-text-default);font-size:var(--stack-text-sm-size);font-weight:var(--stack-font-weight-semibold)}.stack-site-footer__list,.stack-site-footer__products{margin:0;padding:0;list-style:none;min-width:0}.stack-site-footer__column{min-width:0}.stack-site-footer__list li+li{margin-top:var(--stack-space-2)}.stack-site-footer a{color:inherit;text-underline-offset:3px}.stack-site-footer__link{text-decoration:none;overflow-wrap:anywhere}.stack-site-footer__link:hover{color:var(--stack-color-text-default);text-decoration:underline}.stack-site-footer .stack-site-footer__family{margin-top:var(--stack-space-10);padding-top:var(--stack-space-6);border-top:var(--stack-border-width-thin) solid var(--stack-color-border-default)}.stack-site-footer__company{display:inline-flex;align-items:center;gap:var(--stack-space-2);color:var(--stack-color-text-default)!important;font-weight:var(--stack-font-weight-semibold);text-decoration:none}.stack-site-footer__company:hover{text-decoration:underline}.stack-site-footer__mark{width:20px}.stack-site-footer__products{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:var(--stack-space-2) var(--stack-space-4);margin-top:var(--stack-space-4)}.stack-site-footer .stack-site-footer__product{display:flex;flex-direction:column;padding:var(--stack-space-2) 0 var(--stack-space-2) var(--stack-space-3);align-items:flex-start;gap:0;white-space:normal;border:0;border-left:var(--stack-border-width-thick) solid var(--stack-product-accent);text-decoration:none}.stack-site-footer__product-name{color:var(--stack-color-text-default);font-weight:var(--stack-font-weight-semibold)}.stack-site-footer__product-category{font-size:var(--stack-text-sm-size)}.stack-site-footer__product[aria-current=true] .stack-site-footer__product-name:after{content:" · this site";font-weight:var(--stack-font-weight-regular);color:var(--stack-color-text-muted)}.stack-site-footer__product:hover .stack-site-footer__product-name{text-decoration:underline}.stack-site-footer__legal{margin:var(--stack-space-8) 0 0;font-size:var(--stack-text-sm-size)}@media(max-width:640px){.stack-site-footer__top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.stack-site-footer__about{grid-column:1 / -1}}.stack-site-header a:focus-visible,.stack-site-footer a:focus-visible,.stack-theme-switch__control:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}[class^=stack-][hidden],[class*=" stack-"][hidden]{display:none!important}.stack-chart{margin:0;min-width:0;display:flex;flex-direction:column;gap:var(--stack-space-2);color:var(--stack-color-text-default);font-family:var(--stack-font-family-sans)}.stack-chart__header{display:flex;flex-direction:column;gap:2px}.stack-chart__title{margin:0;font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line);font-weight:var(--stack-font-weight-semibold)}.stack-chart__description{color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line)}.stack-chart__plot{min-width:0;width:100%}.stack-chart__svg,.stack-sparkline__svg{display:block;overflow:visible}.stack-chart__svg{width:100%;height:auto;max-width:100%}.stack-chart__state{min-height:120px;display:flex;align-items:center}.stack-chart__state>*{flex:1}.stack-chart__s1{--stack-chart-c: var(--stack-color-chart-1)}.stack-chart__s2{--stack-chart-c: var(--stack-color-chart-2)}.stack-chart__s3{--stack-chart-c: var(--stack-color-chart-3)}.stack-chart__s4{--stack-chart-c: var(--stack-color-chart-4)}.stack-chart__s5{--stack-chart-c: var(--stack-color-chart-5)}.stack-chart__s6{--stack-chart-c: var(--stack-color-chart-6)}.stack-chart__s7{--stack-chart-c: var(--stack-color-chart-7)}.stack-chart__s8{--stack-chart-c: var(--stack-color-chart-8)}.stack-chart__tick,.stack-chart__axis-label{fill:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);font-family:var(--stack-font-family-sans)}.stack-chart__axis-label{fill:var(--stack-color-text-subtle)}.stack-chart__tick--start{text-anchor:start}.stack-chart__tick--middle{text-anchor:middle}.stack-chart__tick--end{text-anchor:end}.stack-chart__grid{stroke:var(--stack-color-border-subtle);stroke-width:1}.stack-chart__zero{stroke:var(--stack-color-border-strong)}.stack-chart__line{fill:none;stroke:var(--stack-chart-c);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.stack-chart--line .stack-chart__d1 .stack-chart__line{stroke-dasharray:7 4}.stack-chart--line .stack-chart__d2 .stack-chart__line{stroke-dasharray:2 3}.stack-chart--line .stack-chart__d3 .stack-chart__line{stroke-dasharray:10 3 2 3}.stack-chart__area{fill:var(--stack-chart-c);fill-opacity:.18;stroke:none}.stack-chart__point{fill:var(--stack-color-bg-surface);stroke:var(--stack-chart-c);stroke-width:2}.stack-chart__bar{fill:var(--stack-chart-c)}.stack-chart--bar .stack-chart__bar{stroke:var(--stack-color-bg-surface);stroke-width:.5}.stack-chart__arc{fill:var(--stack-chart-c);stroke:var(--stack-color-bg-surface);stroke-width:2}.stack-chart__center-value{fill:var(--stack-color-text-default);font-size:var(--stack-text-lg-size);font-weight:var(--stack-font-weight-semibold)}.stack-chart__center-label{fill:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size)}.stack-chart__target,.stack-chart__slice{outline:none}.stack-chart__target-area{fill:transparent}.stack-chart__cursor{stroke:var(--stack-color-border-strong);stroke-width:1;visibility:hidden;pointer-events:none}.stack-chart__target:hover .stack-chart__target-area,.stack-chart__target:focus-visible .stack-chart__target-area{fill:var(--stack-color-border-strong);fill-opacity:.1}.stack-chart__target:focus-visible .stack-chart__target-area{stroke:var(--stack-focus-ring-color);stroke-width:var(--stack-focus-ring-width)}.stack-chart__slice:focus-visible .stack-chart__arc{stroke:var(--stack-focus-ring-color);stroke-width:3}.stack-chart__slice:hover .stack-chart__arc{fill-opacity:.85}.stack-chart__targets{pointer-events:all}.stack-chart__marks{pointer-events:none}.stack-chart--donut .stack-chart__marks{pointer-events:all}.stack-chart__tip{visibility:hidden;pointer-events:none}.stack-chart__target:hover .stack-chart__tip,.stack-chart__target:focus .stack-chart__tip,.stack-chart__target:hover .stack-chart__cursor,.stack-chart__target:focus .stack-chart__cursor,.stack-chart__slice:hover .stack-chart__tip,.stack-chart__slice:focus .stack-chart__tip{visibility:visible}.stack-chart__tip-box{fill:var(--stack-color-bg-raised);stroke:var(--stack-color-border-default);filter:drop-shadow(var(--stack-shadow-raised))}.stack-chart__tip-title{fill:var(--stack-color-text-default);font-size:var(--stack-text-xs-size);font-weight:var(--stack-font-weight-semibold)}.stack-chart__tip-row{fill:var(--stack-color-text-default);font-size:var(--stack-text-xs-size)}.stack-chart__tip-swatch{fill:var(--stack-chart-c)}.stack-chart__legend{display:flex;flex-wrap:wrap;gap:var(--stack-space-1) var(--stack-space-4);margin:0;padding:0;list-style:none;font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line)}.stack-chart__legend-item,.stack-chart__legend-toggle{display:inline-flex;align-items:center;gap:var(--stack-space-2);min-width:0}.stack-chart__legend-label{overflow-wrap:anywhere}.stack-chart__legend-note{color:var(--stack-color-text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.stack-chart__legend-toggle{font:inherit;color:inherit;background:none;border:var(--stack-border-width-thin) solid transparent;border-radius:var(--stack-radius-sm);padding:2px var(--stack-space-1);min-height:24px;cursor:pointer}.stack-chart__legend-toggle:hover{border-color:var(--stack-color-border-default)}.stack-chart__legend-toggle:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-chart__legend-item--hidden .stack-chart__legend-label{text-decoration:line-through;color:var(--stack-color-text-muted)}.stack-chart__legend-item--hidden .stack-chart__swatch{opacity:.35}.stack-chart__swatch{flex:none;width:12px;height:12px;border-radius:2px;background:var(--stack-chart-c)}.stack-chart__swatch--line{height:0;width:18px;border-radius:0;background:none;border-top:3px solid var(--stack-chart-c)}.stack-chart__swatch--line.stack-chart__d1{border-top-style:dashed}.stack-chart__swatch--line.stack-chart__d2{border-top-style:dotted}.stack-chart__swatch--line.stack-chart__d3{border-top-style:double}.stack-chart__donut{display:flex;flex-wrap:wrap;align-items:center;gap:var(--stack-space-4)}.stack-chart__plot--donut{flex:0 1 240px;max-width:280px}.stack-chart__donut .stack-chart__legend{flex:1 1 200px;flex-direction:column;flex-wrap:nowrap}.stack-chart__data{font-size:var(--stack-text-sm-size)}.stack-chart__data-summary{cursor:pointer;color:var(--stack-color-text-link);width:fit-content;border-radius:var(--stack-radius-sm)}.stack-chart__data-summary:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-chart__table-wrap{overflow-x:auto;margin-top:var(--stack-space-2)}.stack-chart__table{border-collapse:collapse;min-width:100%}.stack-chart__table th,.stack-chart__table td{padding:var(--stack-space-1) var(--stack-space-2);border-bottom:var(--stack-border-width-thin) solid var(--stack-color-border-subtle);text-align:left;font-weight:var(--stack-font-weight-regular);white-space:nowrap}.stack-chart__table thead th{color:var(--stack-color-text-muted);font-weight:var(--stack-font-weight-semibold)}.stack-chart__table .stack-chart__num{text-align:right;font-variant-numeric:tabular-nums}.stack-chart__table [data-missing]{color:var(--stack-color-text-muted)}.stack-sparkline{display:inline-flex;vertical-align:middle;color:var(--stack-color-chart-1)}.stack-sparkline__line{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}.stack-sparkline__point,.stack-sparkline__endpoint{fill:currentColor}.stack-sparkline__empty{color:var(--stack-color-text-muted)}.stack-agent-status{display:flex;flex-direction:column;gap:var(--stack-space-1)}.stack-agent-status__facts{margin:0;padding-left:var(--stack-space-5);color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line)}.stack-agent-status__fact{overflow-wrap:anywhere}.stack-agent-status__fact[data-fact=signaled]{color:var(--stack-color-text-default)}.stack-agent-controls{display:flex;flex-wrap:wrap;gap:var(--stack-space-2);align-items:center}.stack-agent-controls .stack-button__label{display:inline-flex;align-items:center;gap:var(--stack-space-1)}.stack-agent-controls__square{padding:0;aspect-ratio:1}.stack-agent-controls .stack-agent-controls__square{min-width:var(--stack-size-control-md)}.stack-agent-controls__icon{display:inline-flex;align-items:center;justify-content:center;line-height:0}.stack-agent-controls__svg{width:20px;height:20px;display:block}.stack-agent-composer__bar .stack-agent-controls__svg{width:18px;height:18px}.stack-agent-composer{display:flex;flex-direction:column;gap:var(--stack-space-1);min-width:0}.stack-agent-composer__box{display:flex;flex-direction:column;min-width:0;border:var(--stack-border-width-thin) solid var(--stack-color-border-strong);border-radius:var(--stack-radius-lg);background:var(--stack-color-bg-surface)}.stack-agent-composer__box:focus-within{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.stack-agent-composer__box--invalid{border-color:var(--stack-color-status-critical-border)}.stack-agent-composer__box--disabled{background:var(--stack-color-bg-sunken)}.stack-agent-composer__input{border:0;outline:none;resize:vertical;min-height:calc(var(--stack-size-control-md) * 2);box-sizing:border-box;width:100%;padding:var(--stack-space-3) var(--stack-space-3) var(--stack-space-1);background:transparent;color:var(--stack-color-text-default);font:inherit;line-height:var(--stack-text-md-line)}.stack-agent-composer__input:disabled{color:var(--stack-color-text-muted)}.stack-agent-composer__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--stack-space-2);padding:var(--stack-space-2);flex-wrap:wrap}.stack-agent-composer__start,.stack-agent-composer__end{display:flex;align-items:center;gap:var(--stack-space-1)}.stack-agent-composer__end{margin-left:auto}.stack-agent-composer__bar .stack-agent-controls__square{min-width:var(--stack-size-control-sm);min-height:var(--stack-size-control-sm)}.stack-agent-updates{margin:0 0 var(--stack-space-4)}.stack-agent-updates__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--stack-space-3)}.stack-agent-update{padding:var(--stack-space-3);border:var(--stack-border-width-thin) solid var(--stack-color-border-default);border-radius:var(--stack-radius-md);background:var(--stack-color-bg-surface);min-width:0}.stack-agent-update[data-state=conflict]{border-color:var(--stack-color-status-attention-border);background:var(--stack-color-status-attention-bg)}.stack-agent-update[data-state=withdrawn],.stack-agent-update[data-state=abandoned]{background:var(--stack-color-bg-sunken)}.stack-agent-update__head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--stack-space-2)}.stack-agent-update__at{color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.stack-agent-update__track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--stack-space-1);list-style:none;margin:var(--stack-space-2) 0 0;padding:0}.stack-agent-update__step{padding-top:var(--stack-space-1);border-top:var(--stack-border-width-thick) solid var(--stack-color-border-subtle);color:var(--stack-color-text-subtle);font-size:var(--stack-text-sm-size);overflow-wrap:anywhere}.stack-agent-update__step[data-reached=true]{border-top-color:var(--stack-color-status-progress-glyph);color:var(--stack-color-text-default)}.stack-agent-update[data-state=incorporated] .stack-agent-update__step[data-reached=true]{border-top-color:var(--stack-color-status-positive-glyph)}.stack-agent-update__step[aria-current=step]{font-weight:600}.stack-agent-update__text{margin:var(--stack-space-2) 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--stack-color-text-default)}.stack-agent-update__text[data-missing=true]{color:var(--stack-color-text-muted);font-style:italic}.stack-agent-update__from,.stack-agent-update__resolution{margin:var(--stack-space-1) 0 0;font-size:var(--stack-text-sm-size);color:var(--stack-color-text-muted);overflow-wrap:anywhere}.stack-agent-update__resolution-by{font-weight:600;color:var(--stack-color-text-default)}:root{--feltkit-gap: var(--stack-space-4);--feltkit-radius: var(--stack-radius-lg);--feltkit-border: var(--stack-border-width-thin) solid var(--stack-color-border-default);--feltkit-mono: var(--stack-font-family-mono);--feltkit-code-bg: var(--stack-color-bg-code)}*{box-sizing:border-box}body{margin:0;background:var(--stack-color-bg-canvas);color:var(--stack-color-text-default);font-family:var(--stack-font-family-sans);font-size:var(--stack-text-md-size);line-height:var(--stack-text-md-line)}a{color:var(--stack-color-text-link)}code{font-family:var(--feltkit-mono);font-size:var(--stack-text-sm-size);background:var(--feltkit-code-bg);padding:0 var(--stack-space-1);border-radius:var(--stack-radius-sm);overflow-wrap:anywhere}h2,h3,p{margin:0}:focus-visible{outline:var(--stack-focus-ring-width) solid var(--stack-focus-ring-color);outline-offset:var(--stack-focus-ring-offset)}.feltkit-muted{color:var(--stack-color-text-muted)}.feltkit-small{font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line)}.feltkit-mono{font-family:var(--feltkit-mono);font-size:var(--stack-text-sm-size);overflow-wrap:anywhere}.feltkit-path{overflow-wrap:anywhere;word-break:break-all}.feltkit-type{color:var(--stack-color-text-muted)}.feltkit-context{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:var(--stack-space-2);min-width:0}.feltkit-context__app{overflow-wrap:anywhere}.feltkit-family{display:inline-flex;align-items:center;gap:var(--stack-space-2);color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);text-decoration:none}.feltkit-family:hover{color:var(--stack-color-text-default);text-decoration:underline}.feltkit-family svg{width:16px;height:auto}.feltkit-environment{margin:0 0 var(--stack-space-4)}.feltkit-environment__line{display:flex;flex-wrap:wrap;gap:var(--stack-space-1) var(--stack-space-3);color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.feltkit-page{display:flex;flex-direction:column;gap:var(--feltkit-gap);min-width:0;max-width:1240px}.feltkit-panel{min-width:0;padding:var(--stack-space-4);border:var(--feltkit-border);border-radius:var(--feltkit-radius);background:var(--stack-color-bg-surface);display:flex;flex-direction:column;gap:var(--stack-space-3)}.feltkit-panel>*{min-width:0}.feltkit-panel__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--stack-space-2) var(--stack-space-3)}.feltkit-panel__title{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:var(--stack-space-2);font-size:var(--stack-text-lg-size);line-height:var(--stack-text-lg-line);font-weight:var(--stack-font-weight-semibold);overflow-wrap:anywhere}.feltkit-panel__actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--stack-space-2)}.feltkit-panel--current{border-color:var(--stack-product-accent)}.feltkit-grid{display:grid;gap:var(--feltkit-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}.feltkit-grid--wide{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));align-items:start}.feltkit-grid--stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}.feltkit-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--stack-space-2);min-width:0}.feltkit-row--end{align-items:flex-end}.feltkit-stack{display:flex;flex-direction:column;gap:var(--stack-space-3);min-width:0}.feltkit-stat{display:flex;flex-direction:column;gap:var(--stack-space-1);min-width:0;padding:var(--stack-space-3) var(--stack-space-4);border:var(--feltkit-border);border-radius:var(--feltkit-radius);background:var(--stack-color-bg-surface);color:inherit;text-decoration:none}.feltkit-stat:hover{border-color:var(--stack-color-border-strong)}.feltkit-stat__label{color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}.feltkit-stat__value{font-size:var(--stack-text-2xl-size);line-height:var(--stack-text-2xl-line);font-weight:var(--stack-font-weight-semibold);font-variant-numeric:tabular-nums}.feltkit-stat__detail{color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size)}.feltkit-list{list-style:none;margin:0;padding:0}.feltkit-list>li{min-width:0;overflow-wrap:anywhere}.feltkit-list>li+li{border-top:var(--stack-border-width-thin) solid var(--stack-color-border-subtle)}.feltkit-list__row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--stack-space-1) var(--stack-space-3);padding:var(--stack-space-2) 0;min-width:0;color:inherit;text-decoration:none}a.feltkit-list__row:hover .feltkit-list__name{text-decoration:underline}.feltkit-list__name{font-family:var(--feltkit-mono);font-size:var(--stack-text-sm-size);overflow-wrap:anywhere;min-width:0}.feltkit-split{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:var(--feltkit-gap);align-items:start}.feltkit-index{display:flex;flex-direction:column;gap:var(--stack-space-1);padding:var(--stack-space-2);border:var(--feltkit-border);border-radius:var(--feltkit-radius);background:var(--stack-color-bg-surface);min-width:0}.feltkit-index__heading{margin:var(--stack-space-2) var(--stack-space-2) 0;color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);font-weight:var(--stack-font-weight-semibold);letter-spacing:.06em;text-transform:uppercase}.feltkit-index ul{list-style:none;margin:0;padding:0}.feltkit-index a{display:flex;justify-content:space-between;gap:var(--stack-space-2);padding:var(--stack-space-1) var(--stack-space-2);border-radius:var(--stack-radius-md);color:var(--stack-color-text-default);text-decoration:none;min-width:0}.feltkit-index a:hover{background:var(--stack-color-bg-sunken)}.feltkit-index a[aria-current=page]{background:var(--stack-color-bg-sunken);font-weight:var(--stack-font-weight-semibold);box-shadow:inset 3px 0 0 var(--stack-product-accent)}.feltkit-index__name{font-family:var(--feltkit-mono);font-size:var(--stack-text-sm-size);overflow-wrap:anywhere;min-width:0}.feltkit-index__meta{color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);white-space:nowrap}.feltkit-detail{display:flex;flex-direction:column;gap:var(--feltkit-gap);min-width:0}.feltkit-code{margin:0;padding:var(--stack-space-2) var(--stack-space-3);max-height:420px;overflow:auto;border-radius:var(--stack-radius-md);background:var(--feltkit-code-bg);color:var(--stack-color-text-default);font-family:var(--feltkit-mono);font-size:var(--stack-text-sm-size);line-height:var(--stack-text-sm-line);white-space:pre-wrap;overflow-wrap:anywhere}.feltkit-command{display:flex;align-items:flex-start;gap:var(--stack-space-2);min-width:0}.feltkit-command>.feltkit-code{flex:1 1 auto;min-width:0}.feltkit-schema{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--stack-space-1)}.feltkit-schema li{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--stack-space-2)}.feltkit-secret{display:block;padding:var(--stack-space-2);word-break:break-all}.feltkit-label{margin:0 0 var(--stack-space-1);color:var(--stack-color-text-muted);font-size:var(--stack-text-xs-size);font-weight:var(--stack-font-weight-semibold);letter-spacing:.04em;text-transform:uppercase}details.feltkit-details>summary{cursor:pointer;color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size)}details.feltkit-details[open]>summary{margin-bottom:var(--stack-space-2)}.feltkit-identity{min-width:200px}.feltkit-inline{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--stack-space-2);min-width:0}.feltkit-inline>div{flex:1 1 200px}.feltkit-choices{display:flex;flex-wrap:wrap;gap:var(--stack-space-2) var(--stack-space-4)}.feltkit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--stack-space-2)}.feltkit-dialog-wide{width:min(760px,calc(100vw - 2 * var(--stack-space-4)))}.feltkit-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--stack-space-2)}.feltkit-steps li{display:grid;grid-template-columns:minmax(7rem,max-content) minmax(0,1fr);gap:var(--stack-space-1) var(--stack-space-3);align-items:baseline}.feltkit-steps__detail{color:var(--stack-color-text-muted);font-size:var(--stack-text-sm-size);overflow-wrap:anywhere}.feltkit-gate{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--stack-space-4);padding:var(--stack-space-6) var(--stack-space-4)}.feltkit-gate__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--stack-space-3);width:min(520px,100%)}.feltkit-gate__card{width:min(520px,100%);display:flex;flex-direction:column;gap:var(--stack-space-3);padding:var(--stack-space-6);border:var(--feltkit-border);border-radius:var(--feltkit-radius);background:var(--stack-color-bg-surface)}.feltkit-gate__title{margin:0;font-size:var(--stack-text-xl-size);line-height:var(--stack-text-xl-line);font-weight:var(--stack-font-weight-semibold)}@media(max-width:767px){.feltkit-split,.feltkit-steps li{grid-template-columns:minmax(0,1fr)}.feltkit-panel{padding:var(--stack-space-3)}.feltkit-gate__card{padding:var(--stack-space-4)}.feltkit-identity{min-width:0}}td code{overflow-wrap:normal;white-space:nowrap}.feltkit-check{padding:var(--stack-space-2) 0}
@@ -9,8 +9,8 @@
9
9
  <link rel="apple-touch-icon" href="/_feltkit/apple-touch-icon.png" />
10
10
  <title>FeltKit</title>
11
11
  <script>(function(){try{var v=window.localStorage.getItem("stack-ui.theme");if(v==="light"||v==="dark")document.documentElement.setAttribute("data-stack-theme",v);}catch(e){}})();</script>
12
- <script type="module" crossorigin src="/_feltkit/assets/index-9rMS3yBm.js"></script>
13
- <link rel="stylesheet" crossorigin href="/_feltkit/assets/index-DkiYTUMR.css">
12
+ <script type="module" crossorigin src="/_feltkit/assets/index-BhxrvY37.js"></script>
13
+ <link rel="stylesheet" crossorigin href="/_feltkit/assets/index-CSzYeCo_.css">
14
14
  </head>
15
15
  <body>
16
16
  <div id="root"></div>
package/dist/docs.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const PACKAGE_NAME = "@feltdb/feltkit";
2
2
  /** The documents shipped in the package, with what each one answers. Order = reading order. */
3
- export declare const SHIPPED_DOCS: readonly [readonly ["ARCHITECTURE.md", "How FeltKit is put together: one FeltDB instance, AppPort, AppPort Services"], readonly ["GUARANTEES.md", "What FeltKit guarantees, and its known limitations"], readonly ["TRANSACTIONS.md", "Mutations, ctx.db.sequence and ctx.afterCommit: the transaction contract"], readonly ["SECURITY.md", "Authorization, sessions, credentials, and production Studio"], readonly ["AUTH.md", "Accounts, sessions, workspaces (tenancy), invitations, and the React sign-in and workspace screens"], readonly ["POLICIES.md", "Declarative policies (owner, sharing, state, input, roles, delegation), managed versions without a redeploy, simulation, decision evidence"], readonly ["SIGN-IN-BROKER.md", "Sign in with GitHub and Google with nothing to register: the FeltKit broker, the assertion it signs, the extension flow, running and rotating it"], readonly ["EXTENSION-HOSTS.md", "Running the app in a browser extension: ownership, token storage, session end, lifecycle, gaps"], readonly ["INVOCATIONS.md", "Surfaces and invocations: registering entry points, the feltkit.invocation/1 contract, the durable lifecycle, dispatch and recovery"], readonly ["EXECUTION.md", "Placement-neutral execution: the control plane and execution environments, the execution contract, adapters, placement, authority and evidence"], readonly ["LOCAL-AUTHORITY.md", "The private AuthBoundry beside the application (authority.local): grants, agents, per-agent delegation and the agentCallers opt-in"], readonly ["CONNECTIONS.md", "People's own connections to integrations (credential.owner: person): connecting, isolation, AuthBoundry at every call (reference implementation)"], readonly ["AGENT-OPERATIONS.md", "Agents: MCP, tasks, proposals, approvals, and evidence"], readonly ["GENERATION.md", "Model generation in an application: actions, streaming, tools as proposals, in-app approvals, caller context"], readonly ["RESOLVER.md", "Model references: change the model a deployed app uses through Resolver, without a redeploy"], readonly ["PATH-TO-PRODUCTION.md", "From a local app to production: deploy targets and what you must provide"], readonly ["BACKUP.md", "Backing up and restoring an environment's state"], readonly ["COMPONENTS.md", "Runtime components: a gateway or worker that runs with the application, as a declared principal"], readonly ["PROVIDERS.md", "AppPort providers: packages that contribute capabilities, credentials, external effects and channels to the application"], readonly ["APPBOUNDRY.md", "The AppBoundry artifact, deploying through AppBoundry, and the self-hosted runtime"], readonly ["APPBOUNDRY-DEPLOY-CONTRACT.md", "The deployment contract FeltKit expects from AppBoundry (proposed)"], readonly ["WHY-FELTKIT.md", "Design choices, compared with Convex"], readonly ["UPSTREAM-GAPS.md", "Known gaps in FeltDB, AppPort and AppPort Services, and their status"], readonly ["MEASURE.md", "feltkit measure: what an application is made of, its provenance, platform use and app-built infrastructure"]];
3
+ export declare const SHIPPED_DOCS: readonly [readonly ["ARCHITECTURE.md", "How FeltKit is put together: one FeltDB instance, AppPort, AppPort Services"], readonly ["GUARANTEES.md", "What FeltKit guarantees, and its known limitations"], readonly ["TRANSACTIONS.md", "Mutations, ctx.db.sequence and ctx.afterCommit: the transaction contract"], readonly ["SECURITY.md", "Authorization, sessions, credentials, and production Studio"], readonly ["AUTH.md", "Accounts, sessions, workspaces (tenancy), invitations, and the React sign-in and workspace screens"], readonly ["POLICIES.md", "Declarative policies (owner, sharing, state, input, roles, delegation), managed versions without a redeploy, simulation, decision evidence"], readonly ["SIGN-IN-BROKER.md", "Sign in with GitHub and Google with nothing to register: the FeltKit broker, the assertion it signs, the extension flow, running and rotating it"], readonly ["EXTENSION-HOSTS.md", "Running the app in a browser extension: ownership, token storage, session end, lifecycle, gaps"], readonly ["INVOCATIONS.md", "Surfaces and invocations: registering entry points, the feltkit.invocation/1 contract, the durable lifecycle, dispatch and recovery"], readonly ["EXECUTION.md", "Placement-neutral execution: the control plane and execution environments, the execution contract, adapters, placement, authority and evidence"], readonly ["LOCAL-AUTHORITY.md", "The private AuthBoundry beside the application (authority.local): grants, agents, per-agent delegation and the agentCallers opt-in"], readonly ["CONNECTIONS.md", "People's own connections to integrations (credential.owner: person): connecting, isolation, AuthBoundry at every call (reference implementation)"], readonly ["AGENT-OPERATIONS.md", "Agents: MCP, tasks, proposals, approvals, and evidence"], readonly ["AGENT-CONTROL.md", "Steering a running agent: update signals, submitted updates at safe boundaries, pause, resume, interrupt, stop"], readonly ["GENERATION.md", "Model generation in an application: actions, streaming, tools as proposals, in-app approvals, caller context"], readonly ["RESOLVER.md", "Model references: change the model a deployed app uses through Resolver, without a redeploy"], readonly ["PATH-TO-PRODUCTION.md", "From a local app to production: deploy targets and what you must provide"], readonly ["BACKUP.md", "Backing up and restoring an environment's state"], readonly ["COMPONENTS.md", "Runtime components: a gateway or worker that runs with the application, as a declared principal"], readonly ["PROVIDERS.md", "AppPort providers: packages that contribute capabilities, credentials, external effects and channels to the application"], readonly ["APPBOUNDRY.md", "The AppBoundry artifact, deploying through AppBoundry, and the self-hosted runtime"], readonly ["APPBOUNDRY-DEPLOY-CONTRACT.md", "The deployment contract FeltKit expects from AppBoundry (proposed)"], readonly ["WHY-FELTKIT.md", "Design choices, compared with Convex"], readonly ["UPSTREAM-GAPS.md", "Known gaps in FeltDB, AppPort and AppPort Services, and their status"], readonly ["MEASURE.md", "feltkit measure: what an application is made of, its provenance, platform use and app-built infrastructure"]];
4
4
  export type DocName = (typeof SHIPPED_DOCS)[number][0];
5
5
  /** The shipped file on disk (inside node_modules/@feltdb/feltkit in a project). */
6
6
  export declare function docFile(name: DocName): string;
package/dist/docs.js CHANGED
@@ -27,6 +27,7 @@ export const SHIPPED_DOCS = [
27
27
  ["LOCAL-AUTHORITY.md", "The private AuthBoundry beside the application (authority.local): grants, agents, per-agent delegation and the agentCallers opt-in"],
28
28
  ["CONNECTIONS.md", "People's own connections to integrations (credential.owner: person): connecting, isolation, AuthBoundry at every call (reference implementation)"],
29
29
  ["AGENT-OPERATIONS.md", "Agents: MCP, tasks, proposals, approvals, and evidence"],
30
+ ["AGENT-CONTROL.md", "Steering a running agent: update signals, submitted updates at safe boundaries, pause, resume, interrupt, stop"],
30
31
  ["GENERATION.md", "Model generation in an application: actions, streaming, tools as proposals, in-app approvals, caller context"],
31
32
  ["RESOLVER.md", "Model references: change the model a deployed app uses through Resolver, without a redeploy"],
32
33
  ["PATH-TO-PRODUCTION.md", "From a local app to production: deploy targets and what you must provide"],
package/dist/docs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../src/docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAC9C,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;AAE9G,+FAA+F;AAC/F,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,CAAC,iBAAiB,EAAE,6EAA6E,CAAC;IAClG,CAAC,eAAe,EAAE,oDAAoD,CAAC;IACvE,CAAC,iBAAiB,EAAE,0EAA0E,CAAC;IAC/F,CAAC,aAAa,EAAE,6DAA6D,CAAC;IAC9E,CAAC,SAAS,EAAE,oGAAoG,CAAC;IACjH,CAAC,aAAa,EAAE,4IAA4I,CAAC;IAC7J,CAAC,mBAAmB,EAAE,kJAAkJ,CAAC;IACzK,CAAC,oBAAoB,EAAE,gGAAgG,CAAC;IACxH,CAAC,gBAAgB,EAAE,qIAAqI,CAAC;IACzJ,CAAC,cAAc,EAAE,gJAAgJ,CAAC;IAClK,CAAC,oBAAoB,EAAE,oIAAoI,CAAC;IAC5J,CAAC,gBAAgB,EAAE,kJAAkJ,CAAC;IACtK,CAAC,qBAAqB,EAAE,wDAAwD,CAAC;IACjF,CAAC,eAAe,EAAE,8G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H,CAAC;AAIX,mFAAmF;AACnF,MAAM,UAAU,OAAO,CAAC,IAAa;IACnC,OAAO,aAAa,CAAC,IAAI,GAAG,CAAC,WAAW,IAAI,EAAE,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,CAAC;AAED,uDAAuD;AACvD,MAAM,UAAU,MAAM,CAAC,IAAc;IACnC,OAAO,gCAAgC,YAAY,IAAI,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AAC1G,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,MAAM,CAAC,IAAa;IAClC,OAAO,gBAAgB,YAAY,SAAS,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACvE,CAAC;AAED,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAG,iCAAiC,YAAY,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AgentHost } from "./agent.js";
2
+ import type { Principal } from "./authority.js";
3
+ export declare const AGENT_CONTROL_EXTENSION = "appport.agent-control/1";
4
+ export declare function agentControlCapabilities(host: () => AgentHost, principalOf: (context: any) => Principal | null, errors: (fn: () => Promise<unknown>) => Promise<any>): import("@appport/sdk").CapabilityDefinition<unknown, unknown>[];
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Agent control as AppPort capabilities: the `appport.agent-control/1` contract (AppPort's
3
+ * spec/agent-control-1.md), served by this application beside its own capabilities. Each handler
4
+ * is one call into AgentHost.control; the lifecycle stays there. Names, effects, idempotency and
5
+ * required inputs follow the contract; `lintAgentControlSupport` (@appport/protocol) checks them.
6
+ *
7
+ * The schemas are written here with @appport/schema because the published @appport/protocol this
8
+ * package pins predates the contract module; once it ships, they should come from there.
9
+ */
10
+ import { defineCapability } from "@appport/sdk";
11
+ import { s } from "@appport/schema";
12
+ import { FeltKitError } from "../errors.js";
13
+ import { AGENT_PERMISSIONS } from "./agent.js";
14
+ export const AGENT_CONTROL_EXTENSION = "appport.agent-control/1";
15
+ const id = () => s.string({ minLength: 1, maxLength: 128 });
16
+ const reason = () => s.optional(s.string({ maxLength: 500 }));
17
+ const loose = (shape) => s.object(shape, { additionalProperties: true });
18
+ const instruction = loose({ instructionId: s.string(), taskId: s.string(), state: s.enum(["signaled", "received", "delivered", "incorporated", "conflict", "withdrawn", "abandoned"]), seq: s.integer(), from: s.string() });
19
+ const state = loose({ taskId: s.string(), phase: s.enum(["running", "pausing", "paused", "interrupted", "blocked", "completed", "stopped"]), mode: s.enum(["running", "paused", "interrupted"]), revision: s.string(), instructions: s.array(instruction) });
20
+ export function agentControlCapabilities(host, principalOf, errors) {
21
+ const write = [AGENT_PERMISSIONS.write];
22
+ const op = (name, input, output, run, description) => defineCapability({
23
+ name: `appport.agent.${name}`,
24
+ version: 1,
25
+ description,
26
+ input,
27
+ output,
28
+ authorization: write,
29
+ effect: "consequential",
30
+ idempotency: "supported",
31
+ handler: (i, context) => errors(() => run(principalOf(context), i, context)),
32
+ });
33
+ // An AppPort idempotencyKey also names the update, so a replay without a stored response is still one update.
34
+ const key = (context) => (typeof context?.idempotencyKey === "string" ? { key: context.idempotencyKey } : {});
35
+ const asState = async (p, taskId) => ({ state: await host().control.view(taskId, p) });
36
+ return [
37
+ defineCapability({
38
+ name: "appport.agent.state",
39
+ version: 1,
40
+ description: "A task's control state: phase, mode, work in flight, and every update in order.",
41
+ input: s.object({ taskId: id() }),
42
+ output: s.object({ state }),
43
+ authorization: [AGENT_PERMISSIONS.read],
44
+ effect: "observation",
45
+ handler: (i, context) => errors(async () => {
46
+ const p = principalOf(context);
47
+ if (!p)
48
+ throw new FeltKitError("UNAUTHORIZED", "Sign in to read agent tasks.");
49
+ return asState(p, i.taskId);
50
+ }),
51
+ }),
52
+ op("signal", s.object({ taskId: id(), note: s.optional(s.string({ maxLength: 200 })) }), s.object({ instruction }), async (p, i, c) => ({ instruction: await host().control.signal(i.taskId, { ...key(c), ...(i.note ? { note: i.note } : {}) }, p) }), "An update is coming. Recorded; the agent keeps working."),
53
+ op("submit", s.object({ taskId: id(), text: s.string({ minLength: 1, maxLength: 8000 }), instructionId: s.optional(id()) }), s.object({ instruction }), async (p, i, c) => ({ instruction: await host().control.submit(i.taskId, { text: i.text, ...(i.instructionId ? { instructionId: i.instructionId } : key(c)) }, p) }), "Submit an update; it reaches the agent at its next checkpoint. Acknowledges receipt only."),
54
+ op("withdraw", s.object({ taskId: id(), instructionId: id(), reason: reason() }), s.object({ instruction }), async (p, i) => ({ instruction: await host().control.withdraw(i.taskId, i.instructionId, p, i.reason) }), "Take back an update the agent has not been given."),
55
+ op("pause", s.object({ taskId: id(), reason: reason() }), s.object({ state }), async (p, i) => ({ state: await host().control.pause(i.taskId, p, i.reason) }), "Start no new work; work in flight finishes and is recorded."),
56
+ op("resume", s.object({ taskId: id(), reason: reason() }), s.object({ state }), async (p, i) => ({ state: await host().control.resume(i.taskId, p, i.reason) }), "Continue from the recorded state."),
57
+ op("interrupt", s.object({ taskId: id(), reason: reason() }), s.object({ state }), async (p, i) => ({ state: await host().control.interrupt(i.taskId, p, i.reason) }), "Cancel in-progress reasoning now and hold. A dispatched operation is not aborted."),
58
+ op("stop", s.object({ taskId: id(), reason: reason() }), s.object({ state }), async (p, i) => {
59
+ await host().cancel(i.taskId, p, i.reason ?? "stopped");
60
+ return asState(p, i.taskId);
61
+ }, "End the task. Open updates are closed as abandoned."),
62
+ op("checkpoint", s.object({ taskId: id() }), loose({ proceed: s.boolean(), mode: s.string(), instructions: s.array(loose({ instructionId: s.string(), text: s.string() })), signaled: s.integer(), checkpoint: s.integer() }), async (p, i) => host().control.checkpoint(i.taskId, p), "The safe boundary (the task owner): receive pending updates and whether to proceed."),
63
+ op("acknowledge", s.object({ taskId: id(), instructionId: id(), outcome: s.enum(["incorporated", "conflict"]), note: s.string({ minLength: 1, maxLength: 2000 }) }), s.object({ instruction }), async (p, i) => ({ instruction: await host().control.acknowledge(i.taskId, i.instructionId, { outcome: i.outcome, note: i.note }, p) }), "Say what a delivered update changed, or surface a conflict (the task pauses)."),
64
+ ];
65
+ }
66
+ //# sourceMappingURL=agent-control-capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-control-capabilities.js","sourceRoot":"","sources":["../../src/runtime/agent-control-capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAEjE,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;AAC5D,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AAC9D,MAAM,KAAK,GAAG,CAAC,KAA0B,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9F,MAAM,WAAW,GAAG,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAA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Ac,CAAC,EAAE,qFAAqF,CAAC;QAC1X,EAAE,CAAC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,IAAI,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAc,CAAC,EAAE,CAAC,EAAE,+EAA+E,CAAC;KACva,CAAC;AACJ,CAAC"}
@@ -0,0 +1,173 @@
1
+ import { type AgentMemory, type AgentStateStore, type AgentTask } from "@feltdb/core";
2
+ import type { Principal } from "./authority.js";
3
+ export declare const CONTROL_KIND = "agent-control";
4
+ export declare const INSTRUCTION_KIND = "agent-instruction";
5
+ export declare const INSTRUCTION_TEXT_LIMIT = 8000;
6
+ export type ControlMode = "running" | "paused" | "interrupted";
7
+ /** What a person sees: the mode, with in-flight work taken into account. Derived, never stored. */
8
+ export type ExecutionPhase = "running" | "pausing" | "paused" | "interrupted" | "blocked" | "completed" | "stopped";
9
+ export interface ControlRecord {
10
+ taskId: string;
11
+ mode: ControlMode;
12
+ seq: number;
13
+ reason?: string;
14
+ setBy?: string;
15
+ setAt?: string;
16
+ history: Array<{
17
+ mode: ControlMode;
18
+ at: string;
19
+ by: string;
20
+ note?: string;
21
+ }>;
22
+ }
23
+ export type InstructionState = "signaled" | "received" | "delivered" | "incorporated" | "conflict" | "withdrawn" | "abandoned";
24
+ export declare const OPEN_INSTRUCTION: readonly InstructionState[];
25
+ export interface InstructionRecord {
26
+ instructionId: string;
27
+ taskId: string;
28
+ state: InstructionState;
29
+ seq: number;
30
+ /** Who signaled or submitted it (`type:id`). */
31
+ from: string;
32
+ /** The update itself; absent while only signaled. */
33
+ text?: string;
34
+ /** A note sent with the signal ("about the date range"). Never instructions. */
35
+ note?: string;
36
+ signaledAt?: string;
37
+ receivedAt?: string;
38
+ deliveredAt?: string;
39
+ /** The checkpoint (FeltDB checkpoint version) at which it was handed to the reasoner. */
40
+ deliveredAtCheckpoint?: number;
41
+ resolvedAt?: string;
42
+ /** incorporated / conflict: what the reasoner said it changes; withdrawn / abandoned: why. */
43
+ resolution?: {
44
+ by: string;
45
+ note: string;
46
+ };
47
+ history: Array<{
48
+ state: InstructionState;
49
+ at: string;
50
+ by: string;
51
+ note?: string;
52
+ }>;
53
+ }
54
+ /** What AgentHost gives this module: its state store and its existing checks, nothing more. */
55
+ export interface ControlPort {
56
+ state(): AgentStateStore;
57
+ memories(taskId: string): Promise<AgentMemory[]>;
58
+ /** The task, in the caller's scope, not terminal (NOT_FOUND / CONFLICT otherwise). */
59
+ loaded(taskId: string, p: Principal): Promise<{
60
+ task: AgentTask;
61
+ }>;
62
+ /** Any task in the caller's scope, terminal ones included (for reads). */
63
+ find(taskId: string, p: Principal | "admin"): Promise<{
64
+ task: AgentTask;
65
+ } | null>;
66
+ /** Work in flight right now, from durable records: open generations and actions approved/executing. */
67
+ inFlight(taskId: string): Promise<{
68
+ generations: string[];
69
+ actions: string[];
70
+ }>;
71
+ /** Abort this process's running generations for a task (interrupt). */
72
+ abortGenerations(taskId: string, reason: string): number;
73
+ activity(name: string, p: Principal, taskId: string, outcome: "success" | "error" | "denied", detail: Record<string, unknown>): void;
74
+ }
75
+ export interface ControlView {
76
+ taskId: string;
77
+ objective: string;
78
+ owner: string;
79
+ phase: ExecutionPhase;
80
+ mode: ControlMode;
81
+ reason: string | null;
82
+ inFlight: {
83
+ generations: string[];
84
+ actions: string[];
85
+ };
86
+ /** Updates signaled and not yet submitted. */
87
+ signaled: number;
88
+ /** Every update, in order (oldest first). */
89
+ instructions: InstructionRecord[];
90
+ /** The latest FeltDB checkpoint version: the boundary count. */
91
+ checkpoint: number;
92
+ /** Changes whenever anything above changes; clients use it to drop stale snapshots. */
93
+ revision: string;
94
+ }
95
+ export interface Checkpoint {
96
+ /** False while paused or interrupted: start no new work, call checkpoint again later. */
97
+ proceed: boolean;
98
+ mode: ControlMode;
99
+ reason: string | null;
100
+ /** Updates the reasoner must take into account now, oldest first (delivered, not yet acknowledged). */
101
+ instructions: Array<{
102
+ instructionId: string;
103
+ text: string;
104
+ from: string;
105
+ receivedAt: string;
106
+ deliveredAt: string;
107
+ }>;
108
+ /** Updates a person has said are coming but not sent yet. Keep working; they arrive at a later checkpoint. */
109
+ signaled: number;
110
+ checkpoint: number;
111
+ }
112
+ export declare class AgentControl {
113
+ #private;
114
+ constructor(port: ControlPort);
115
+ mode(taskId: string): Promise<{
116
+ mode: ControlMode;
117
+ reason: string | null;
118
+ }>;
119
+ view(taskId: string, p: Principal | "admin"): Promise<ControlView>;
120
+ /**
121
+ * Refuses new work (a generation or a proposal) unless the task is running and every received
122
+ * update has been handed to the reasoner. Signaled updates do not block: the agent keeps working.
123
+ */
124
+ gate(taskId: string, what: string): Promise<void>;
125
+ /** Completing would silently drop an update: refused while any is open (signaled included). */
126
+ gateComplete(taskId: string): Promise<void>;
127
+ /** Approving runs an action now: not while the task is paused or interrupted. */
128
+ gateApproval(taskId: string): Promise<void>;
129
+ /** "An update is coming." Recorded; nothing about the agent's work changes. */
130
+ signal(taskId: string, input: {
131
+ key?: string;
132
+ note?: string;
133
+ }, p: Principal): Promise<InstructionRecord>;
134
+ /**
135
+ * Submit an update. With `instructionId`, it fills that signal (only its sender may); otherwise
136
+ * it is a new update. Acknowledges receipt only: it is not incorporated until the agent says so.
137
+ */
138
+ submit(taskId: string, input: {
139
+ text: string;
140
+ key?: string;
141
+ instructionId?: string;
142
+ }, p: Principal): Promise<InstructionRecord>;
143
+ /** Take back an update the agent has not been given yet. */
144
+ withdraw(taskId: string, instructionId: string, p: Principal, reason?: string): Promise<InstructionRecord>;
145
+ /** Stop starting new work. Running work finishes and is recorded (the phase is "pausing" until then). */
146
+ pause(taskId: string, p: Principal, reason?: string): Promise<ControlView>;
147
+ /**
148
+ * Stop now and hold: a running model generation is cancelled (recorded as cancelled). A dispatched
149
+ * action is not aborted, since that cannot undo its effect; it finishes or times out and is recorded.
150
+ */
151
+ interrupt(taskId: string, p: Principal, reason?: string): Promise<ControlView & {
152
+ cancelledGenerations: number;
153
+ }>;
154
+ /** Continue from the recorded state. Pending updates reach the agent at its next checkpoint. */
155
+ resume(taskId: string, p: Principal, reason?: string): Promise<ControlView>;
156
+ /**
157
+ * The safe boundary. Hands every received update to the reasoner (received → delivered, recorded
158
+ * with the checkpoint it was delivered at) and returns them with any delivered earlier and not yet
159
+ * acknowledged (redelivered after a restart). Idempotent: calling it again delivers nothing twice.
160
+ */
161
+ checkpoint(taskId: string, p: Principal): Promise<Checkpoint>;
162
+ /**
163
+ * The reasoner says what a delivered update changes. `incorporated`: the plan now reflects it.
164
+ * `conflict`: it contradicts the objective or completed work in a way the agent should not decide;
165
+ * the task is paused with the explanation, for a person to clarify and resume.
166
+ */
167
+ acknowledge(taskId: string, instructionId: string, input: {
168
+ outcome: "incorporated" | "conflict";
169
+ note: string;
170
+ }, p: Principal): Promise<InstructionRecord>;
171
+ /** Stop (AgentHost.cancel) succeeded: every open update is closed as abandoned, with the reason. */
172
+ abandonOpen(taskId: string, by: string, reason: string): Promise<number>;
173
+ }