@feltdb/feltkit 0.3.36 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/app.d.ts +153 -3
  2. package/dist/app.js +159 -7
  3. package/dist/app.js.map +1 -1
  4. package/dist/appboundry/build.js +21 -0
  5. package/dist/appboundry/build.js.map +1 -1
  6. package/dist/appboundry/guest.js +4 -0
  7. package/dist/appboundry/guest.js.map +1 -1
  8. package/dist/client/index.d.ts +189 -0
  9. package/dist/client/index.js +201 -0
  10. package/dist/client/index.js.map +1 -1
  11. package/dist/clock.d.ts +24 -0
  12. package/dist/clock.js +49 -0
  13. package/dist/clock.js.map +1 -0
  14. package/dist/dashboard/assets/index-BhxrvY37.js +15 -0
  15. package/dist/dashboard/assets/index-CSzYeCo_.css +1 -0
  16. package/dist/dashboard/index.html +2 -2
  17. package/dist/docs.d.ts +1 -1
  18. package/dist/docs.js +1 -0
  19. package/dist/docs.js.map +1 -1
  20. package/dist/event-stage.js +2 -0
  21. package/dist/event-stage.js.map +1 -1
  22. package/dist/index.d.ts +11 -1
  23. package/dist/index.js +1 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/policy.d.ts +9 -1
  26. package/dist/policy.js +16 -3
  27. package/dist/policy.js.map +1 -1
  28. package/dist/presence.d.ts +85 -0
  29. package/dist/presence.js +37 -0
  30. package/dist/presence.js.map +1 -0
  31. package/dist/quota.d.ts +72 -0
  32. package/dist/quota.js +143 -0
  33. package/dist/quota.js.map +1 -0
  34. package/dist/react/agent-control.d.ts +189 -0
  35. package/dist/react/agent-control.js +366 -0
  36. package/dist/react/agent-control.js.map +1 -0
  37. package/dist/react/index.d.ts +14 -1
  38. package/dist/react/index.js +41 -0
  39. package/dist/react/index.js.map +1 -1
  40. package/dist/runtime/activity.d.ts +8 -0
  41. package/dist/runtime/activity.js.map +1 -1
  42. package/dist/runtime/agent-control.d.ts +18 -0
  43. package/dist/runtime/agent-control.js +34 -1
  44. package/dist/runtime/agent-control.js.map +1 -1
  45. package/dist/runtime/agent.js +16 -4
  46. package/dist/runtime/agent.js.map +1 -1
  47. package/dist/runtime/assemble.js +1 -1
  48. package/dist/runtime/assemble.js.map +1 -1
  49. package/dist/runtime/authority.d.ts +38 -0
  50. package/dist/runtime/authority.js +13 -2
  51. package/dist/runtime/authority.js.map +1 -1
  52. package/dist/runtime/capabilities.js +2 -1
  53. package/dist/runtime/capabilities.js.map +1 -1
  54. package/dist/runtime/changes.d.ts +17 -0
  55. package/dist/runtime/changes.js +65 -2
  56. package/dist/runtime/changes.js.map +1 -1
  57. package/dist/runtime/context.d.ts +114 -0
  58. package/dist/runtime/contract.js +9 -3
  59. package/dist/runtime/contract.js.map +1 -1
  60. package/dist/runtime/events.js +17 -1
  61. package/dist/runtime/events.js.map +1 -1
  62. package/dist/runtime/integrations.js +7 -7
  63. package/dist/runtime/integrations.js.map +1 -1
  64. package/dist/runtime/invocations.d.ts +19 -2
  65. package/dist/runtime/invocations.js +16 -3
  66. package/dist/runtime/invocations.js.map +1 -1
  67. package/dist/runtime/policies.d.ts +5 -2
  68. package/dist/runtime/policies.js.map +1 -1
  69. package/dist/runtime/presence-host.d.ts +84 -0
  70. package/dist/runtime/presence-host.js +303 -0
  71. package/dist/runtime/presence-host.js.map +1 -0
  72. package/dist/runtime/providers.d.ts +130 -1
  73. package/dist/runtime/providers.js +251 -9
  74. package/dist/runtime/providers.js.map +1 -1
  75. package/dist/runtime/resource-access.d.ts +137 -0
  76. package/dist/runtime/resource-access.js +177 -0
  77. package/dist/runtime/resource-access.js.map +1 -0
  78. package/dist/runtime/runtime.d.ts +73 -0
  79. package/dist/runtime/runtime.js +594 -37
  80. package/dist/runtime/runtime.js.map +1 -1
  81. package/dist/runtime/sessions.d.ts +11 -0
  82. package/dist/runtime/sessions.js +15 -0
  83. package/dist/runtime/sessions.js.map +1 -1
  84. package/dist/runtime/tenancy.d.ts +59 -0
  85. package/dist/runtime/tenancy.js +128 -0
  86. package/dist/runtime/tenancy.js.map +1 -1
  87. package/dist/runtime/workers.d.ts +123 -0
  88. package/dist/runtime/workers.js +291 -0
  89. package/dist/runtime/workers.js.map +1 -0
  90. package/dist/server/admin.js +48 -1
  91. package/dist/server/admin.js.map +1 -1
  92. package/dist/server/index.d.ts +0 -19
  93. package/dist/server/index.js +61 -4
  94. package/dist/server/index.js.map +1 -1
  95. package/dist/server/mcp.d.ts +8 -15
  96. package/dist/server/mcp.js +40 -3
  97. package/dist/server/mcp.js.map +1 -1
  98. package/dist/server/project.js +6 -5
  99. package/dist/server/project.js.map +1 -1
  100. package/dist/server/tenancy.d.ts +7 -0
  101. package/dist/server/tenancy.js +31 -0
  102. package/dist/server/tenancy.js.map +1 -1
  103. package/dist/server/watch.d.ts +10 -0
  104. package/dist/server/watch.js +88 -0
  105. package/dist/server/watch.js.map +1 -0
  106. package/dist/testing/index.d.ts +3 -1
  107. package/dist/testing/index.js +3 -2
  108. package/dist/testing/index.js.map +1 -1
  109. package/docs/AGENT-CONTROL.md +130 -4
  110. package/docs/APPBOUNDRY.md +37 -0
  111. package/docs/ARCHITECTURE.md +6 -2
  112. package/docs/AUTH.md +35 -0
  113. package/docs/COMPONENTS.md +71 -0
  114. package/docs/GUARANTEES.md +4 -4
  115. package/docs/PRESENCE-AND-SIGNALING-PROPOSAL.md +152 -0
  116. package/docs/PROVIDERS.md +58 -1
  117. package/docs/README.md +3 -2
  118. package/docs/SECURITY.md +71 -3
  119. package/docs/TRANSACTIONS.md +48 -0
  120. package/docs/UPSTREAM-GAPS.md +16 -2
  121. package/package.json +16 -16
  122. package/skills/.claude-plugin/marketplace.json +1 -1
  123. package/skills/.claude-plugin/plugin.json +1 -1
  124. package/skills/feltkit-agent/SKILL.md +1 -1
  125. package/skills/feltkit-build/SKILL.md +11 -1
  126. package/skills/feltkit-data/SKILL.md +1 -1
  127. package/skills/feltkit-operations/SKILL.md +1 -1
  128. package/skills/feltkit-services/SKILL.md +1 -1
  129. package/dist/dashboard/assets/index-9rMS3yBm.js +0 -15
  130. 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 ["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"]];
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 ["PRESENCE-AND-SIGNALING-PROPOSAL.md", "Presence leases, session binding and transient messages: the app.presence API and its status"], 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
@@ -19,6 +19,7 @@ export const SHIPPED_DOCS = [
19
19
  ["TRANSACTIONS.md", "Mutations, ctx.db.sequence and ctx.afterCommit: the transaction contract"],
20
20
  ["SECURITY.md", "Authorization, sessions, credentials, and production Studio"],
21
21
  ["AUTH.md", "Accounts, sessions, workspaces (tenancy), invitations, and the React sign-in and workspace screens"],
22
+ ["PRESENCE-AND-SIGNALING-PROPOSAL.md", "Presence leases, session binding and transient messages: the app.presence API and its status"],
22
23
  ["POLICIES.md", "Declarative policies (owner, sharing, state, input, roles, delegation), managed versions without a redeploy, simulation, decision evidence"],
23
24
  ["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"],
24
25
  ["EXTENSION-HOSTS.md", "Running the app in a browser extension: ownership, token storage, session end, lifecycle, gaps"],
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,CAA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AE,iGAAiG,CAAC;IACpH,CAAC,cAAc,EAAE,yHAAyH,CAAC;IAC3I,CAAC,eAAe,EAAE,oFAAoF,CAAC;IACvG,CAAC,+BAA+B,EAAE,oEAAoE,CAAC;IACvG,CAAC,gBAAgB,EAAE,sCAAsC,CAAC;IAC1D,CAAC,kBAAkB,EAAE,sEAAsE,CAAC;IAC5F,CAAC,YAAY,EAAE,4GAA4G,CAAC;CACpH,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"}
@@ -4,6 +4,8 @@ export function stageEvent(app, event, payload, options = {}) {
4
4
  const declared = event && app.events.get(event.name);
5
5
  if (!declared || declared !== event)
6
6
  throw new FeltKitError("INVALID_ARGUMENT", `ctx.events.publish: ${String(event?.name ?? event)} is not an event declared with app.event().`);
7
+ if (declared.channel)
8
+ throw new FeltKitError("INVALID_ARGUMENT", `ctx.events.publish: ${event.name} is a channel; send with ctx.channels.send(channel, scope, message), which checks the sender's authority.`);
7
9
  const result = declared.payload.validate(payload);
8
10
  if (!result.ok)
9
11
  throw new FeltKitError("INVALID_ARGUMENT", `ctx.events.publish(${event.name}): the payload does not match its schema: ${(result.issues ?? []).map((i) => i.message).join("; ")}`);
@@ -1 +1 @@
1
- {"version":3,"file":"event-stage.js","sourceRoot":"","sources":["../src/event-stage.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,KAAK,GAAG,iCAAiC,CAAC;AAIhD,MAAM,UAAU,UAAU,CAAC,GAAe,EAAE,KAA+B,EAAE,OAAgB,EAAE,OAAO,GAAuB,EAAE;IAC7H,MAAM,QAAQ,GAAG,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,CAAC,QAAQ,IAAI,QAAQ,KAAK,KAAK;QAAE,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE,uBAAuB,MAAM,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IAClL,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0E,CAAC;IAC3H,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE,sBAAsB,KAAK,CAAC,IAAI,6CAA6C,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClM,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACrG,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE,sBAAsB,KAAK,CAAC,IAAI,gEAAgE,CAAC,CAAC;IAC/I,CAAC;IACD,OAAO,EAAE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,EAAE,CAAC,CAAC;IAClM,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACrG,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE,sBAAsB,KAAK,CAAC,IAAI,gEAAgE,CAAC,CAAC;IAC/I,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AAClI,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * export const list = app.query({ access: "tasks.read", handler: (ctx) => ctx.db.find(tasks) });
8
8
  */
9
9
  export { feltkit, FeltKitApp, RESERVED_COLLECTIONS } from "./app.js";
10
- export type { Access, AgentConfig, AgentDefinition, AuthenticateRequest, CapabilityExposure, CollectionDefinition, CollectionOptions, MigrationContext, MigrationDefinition, StoredRecord, UniqueDeclaration, FeltKitOptions, DevUser, AccountsOptions, AccountEmailOptions, ProviderClient, OidcProvider, SignInProviders, FunctionConfig, FunctionDefinition, FunctionKind, MutationDefinition, ActionDefinition, PrincipalInput, QueryDefinition, } from "./app.js";
10
+ export type { Access, AgentConfig, AgentDefinition, AuthenticateRequest, CapabilityExposure, CollectionDefinition, CollectionOptions, MigrationContext, MigrationDefinition, StoredRecord, UniqueDeclaration, FeltKitOptions, DevUser, AccountsOptions, AccountEmailOptions, ProviderClient, OidcProvider, SignInProviders, FunctionConfig, FunctionDefinition, FunctionKind, FunctionVisibility, MutationDefinition, ActionDefinition, PrincipalInput, QueryDefinition, } from "./app.js";
11
11
  export { s } from "./schema.js";
12
12
  export type { Doc, InferShape, Schema, ShapeInput, ShapeSchema } from "./schema.js";
13
13
  export type { AuthorityMode } from "./runtime/authority-contract.js";
@@ -38,3 +38,13 @@ export type { ContextItem, ContextKind, InvocationEnvelope, InvocationState, Nor
38
38
  export { DEFAULT_POLICY as DEFAULT_PLACEMENT_POLICY, EXECUTION_CONTRACT, PLACEMENT_CONTRACT, resolvePlacement } from "./execution.js";
39
39
  export type { EnvironmentDescriptor, EnvironmentKind, ExecutionAuthority, ExecutionRequest, ExecutionRequirements, PlacementConstraints, PlacementDecision, PlacementPolicy, PlacementResolver, PlacementResult } from "./execution.js";
40
40
  export type { ExecutionAdapter } from "./runtime/execution-host.js";
41
+ export type { ChannelConfig, ChannelReceiveRequest, ChannelSendRequest } from "./app.js";
42
+ export type { ChannelsWriter, GrantsWriter } from "./runtime/context.js";
43
+ export { LEASE_END_REASONS, LEASE_FIELDS, leaseHolds } from "./presence.js";
44
+ export type { Lease, LeaseEndReason, PresenceConfig } from "./presence.js";
45
+ export type { PresenceReader, PresenceWriter } from "./runtime/presence-host.js";
46
+ export type { QuotaDeclaration, QuotaSpec } from "./quota.js";
47
+ export type { Clock } from "./clock.js";
48
+ export type { GuestInfo } from "./runtime/authority.js";
49
+ export type { AgentGrantView, GuestLinkView, ResourceDeclaration, ResourceRef } from "./runtime/resource-access.js";
50
+ export type { PublicTenant, TenantBranding } from "./runtime/tenancy.js";
package/dist/index.js CHANGED
@@ -18,4 +18,5 @@ export { sha256Hex } from "./runtime/sha256.js";
18
18
  export { INVOCATION_CONTRACT, INVOCATION_TRANSITIONS, TERMINAL as INVOCATION_TERMINAL_STATES, InvocationRefusal, canTransition, normalizeInvocation } from "./surfaces.js";
19
19
  // Placement-neutral execution: the execution contract, placement policy and resolution (src/execution.ts).
20
20
  export { DEFAULT_POLICY as DEFAULT_PLACEMENT_POLICY, EXECUTION_CONTRACT, PLACEMENT_CONTRACT, resolvePlacement } from "./execution.js";
21
+ export { LEASE_END_REASONS, LEASE_FIELDS, leaseHolds } from "./presence.js";
21
22
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA4BrE,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAGhC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOjE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAK9F,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMlE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,2OAA2O;AAC3O,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,mIAAmI;AACnI,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,QAAQ,IAAI,0BAA0B,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAG3K,2GAA2G;AAC3G,OAAO,EAAE,cAAc,IAAI,wBAAwB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA6BrE,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAGhC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOjE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAK9F,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMlE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,2OAA2O;AAC3O,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,mIAAmI;AACnI,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,QAAQ,IAAI,0BAA0B,EAAE,iBAAiB,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAG3K,2GAA2G;AAC3G,OAAO,EAAE,cAAc,IAAI,wBAAwB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAOtI,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
package/dist/policy.d.ts CHANGED
@@ -82,10 +82,17 @@ export interface PolicyRule {
82
82
  roles?: readonly string[];
83
83
  anonymous?: boolean;
84
84
  };
85
- /** The record the call acts on, loaded through the call's reader by the argument holding its id. */
85
+ /**
86
+ * The record the call acts on, loaded through the call's reader by the argument `id` names. With `by`, that
87
+ * argument holds the value of a unique field instead of the record id (K7: a meeting addressed by its
88
+ * `code`): `{ collection: meetings, id: "code", by: "code" }`. The field must be declared unique (a
89
+ * single-field `unique` constraint); a value that matches no record, or (for a managed rule naming a field
90
+ * that is not unique) more than one, is no resource.
91
+ */
86
92
  resource?: {
87
93
  collection: CollectionDefinition | string;
88
94
  id: string;
95
+ by?: string;
89
96
  };
90
97
  /** All must hold. */
91
98
  when?: readonly PolicyCondition[];
@@ -98,6 +105,7 @@ export interface ResolvedPolicyRule extends Omit<PolicyRule, "functions" | "reso
98
105
  resource?: {
99
106
  collection: string;
100
107
  id: string;
108
+ by?: string;
101
109
  };
102
110
  source: "code" | "managed";
103
111
  }
package/dist/policy.js CHANGED
@@ -41,6 +41,8 @@ export function checkPolicyRule(rule, where) {
41
41
  const resource = rule.resource;
42
42
  if (resource !== undefined && (typeof resource?.id !== "string" || !resource.id || !resource.collection))
43
43
  fail(`policy ${String(rule.id)}: resource needs a collection and the argument holding the record id.`);
44
+ if (resource?.by !== undefined && (typeof resource.by !== "string" || !/^[A-Za-z_][A-Za-z0-9_]{0,62}$/.test(resource.by) || resource.by === "id"))
45
+ fail(`policy ${String(rule.id)}: resource.by names a unique field of the collection (not "id": leave by out for that).`);
44
46
  const needsResource = (condition) => {
45
47
  if ("owner" in condition || "sharedWith" in condition || "field" in condition)
46
48
  return true;
@@ -182,12 +184,23 @@ export async function evaluatePolicies(set, request) {
182
184
  if (!rule.resource)
183
185
  return null;
184
186
  const id = request.args[rule.resource.id];
185
- if (typeof id !== "string" || !id)
187
+ const by = rule.resource.by;
188
+ if (by === undefined && (typeof id !== "string" || !id))
186
189
  throw new FeltKitError("INVALID_ARGUMENT", `${request.function}: ${rule.resource.id} must be a record id (policy ${rule.id}).`);
187
- const key = `${rule.resource.collection}/${id}`;
190
+ if (by !== undefined && (id === undefined || id === null || typeof id === "object"))
191
+ throw new FeltKitError("INVALID_ARGUMENT", `${request.function}: ${rule.resource.id} must be a value of ${rule.resource.collection}.${by} (policy ${rule.id}).`);
192
+ const key = `${rule.resource.collection}/${by ?? "id"}/${JSON.stringify(id)}`;
188
193
  if (!resources.has(key)) {
189
194
  const collection = request.collection(rule.resource.collection);
190
- resources.set(key, collection ? (await request.db.get(collection, id)) : null);
195
+ let record = null;
196
+ if (collection && by === undefined)
197
+ record = (await request.db.get(collection, id));
198
+ else if (collection) {
199
+ // By a unique field: exactly one record, or no resource (the condition cannot be evaluated, so it does not hold).
200
+ const found = (await request.db.find(collection, { [by]: id }, { limit: 2 }));
201
+ record = found.length === 1 ? found[0] : null;
202
+ }
203
+ resources.set(key, record);
191
204
  }
192
205
  return resources.get(key);
193
206
  };
@@ -1 +1 @@
1
- {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CAAC;IAC7E,IAAI,WAAW,IAAI,SAAS,IAAI,OAAO,IAAI,SAAS,CAAC,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG;QAAE,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACxK,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Presence (K1): records that are leases. Declared with `app.presence(name, shape, { ttlMs, onEnd? })`,
3
+ * held with `ctx.presence.join / renew / end`, read with `ctx.db` like any collection, which shows only
4
+ * the leases that hold now.
5
+ *
6
+ * A lease ends exactly once, with one reason:
7
+ * left its holder ended it
8
+ * removed someone else ended it (the function's `access` decided who may)
9
+ * expired it was not renewed within `ttlMs` (ended by the runtime, at that time, without a request)
10
+ * session-ended the holder's session ended (signed out, revoked, expired, rotated)
11
+ * replaced its holder joined again with the same `key` (a reload)
12
+ *
13
+ * Time comes from the runtime's Clock (src/clock.ts), so expiry is deterministic in tests. A lease that
14
+ * expires is ended by a timer the runtime arms for the earliest expiry: that end is a FeltDB commit, so
15
+ * every live query that read the collection re-runs (the change feed), with no client polling. Reads
16
+ * between the expiry instant and that commit already leave the lease out.
17
+ *
18
+ * Storage today: an ordinary FeltDB collection with the lease fields below; ended leases are kept as
19
+ * history (`history: false` deletes them). This is the part designed to move: when FeltDB has record TTL
20
+ * and ephemeral collections, live leases can become expiring ephemeral records and the end a TTL event,
21
+ * with the same API and the same end reasons.
22
+ *
23
+ * Runtime-neutral declarations (the app definition imports this); the runtime's half is
24
+ * runtime/presence-host.ts.
25
+ */
26
+ import type { CollectionDefinition } from "./app.js";
27
+ export declare const PRESENCE: unique symbol;
28
+ export type LeaseEndReason = "left" | "removed" | "expired" | "session-ended" | "replaced";
29
+ export declare const LEASE_END_REASONS: readonly LeaseEndReason[];
30
+ /** The fields FeltKit keeps on every lease. An application's presence shape may not declare them. */
31
+ export declare const LEASE_FIELDS: {
32
+ /** The holder's principal id and type. */
33
+ readonly holder: "string";
34
+ readonly holderType: "string";
35
+ /** The holder's session ref, when the join came with one. */
36
+ readonly session: "string?";
37
+ /** The join's `key` (one live lease per holder and key). */
38
+ readonly key: "string?";
39
+ /** "ttl": ends unless renewed within ttlMs. "session": lives as long as the holder's session (no renewal). */
40
+ readonly binding: "string";
41
+ readonly startedAt: "number";
42
+ readonly renewedAt: "number";
43
+ /** When a ttl lease ends unless renewed. Absent for a session-bound lease. */
44
+ readonly expiresAt: "number?";
45
+ readonly live: "boolean";
46
+ readonly endedAt: "number?";
47
+ readonly endReason: "string?";
48
+ /** Who ended it (`type:id`), or "platform" (expiry, session end). */
49
+ readonly endedBy: "string?";
50
+ };
51
+ export interface PresenceConfig {
52
+ /** A lease not renewed within this many milliseconds ends ("expired"). 1 s to 24 h. */
53
+ readonly ttlMs: number;
54
+ /**
55
+ * An application agent (`app.agent`, by definition or name) to run after a lease ends, at least once, as the
56
+ * agent's own principal, with `{ presence, lease, reason }`. Recorded in the transaction that ends the
57
+ * lease (the after-commit outbox), so it runs for every end and never for one that did not commit.
58
+ */
59
+ readonly onEnd?: string;
60
+ /** Keep ended leases (attendance history). Default true. */
61
+ readonly history: boolean;
62
+ }
63
+ /** A lease as FeltKit stores it: the application's fields plus LEASE_FIELDS. */
64
+ export interface Lease {
65
+ id: string;
66
+ holder: string;
67
+ holderType: string;
68
+ session?: string;
69
+ key?: string;
70
+ binding: "ttl" | "session";
71
+ startedAt: number;
72
+ renewedAt: number;
73
+ expiresAt?: number;
74
+ live: boolean;
75
+ endedAt?: number;
76
+ endReason?: LeaseEndReason;
77
+ endedBy?: string;
78
+ [field: string]: unknown;
79
+ }
80
+ /** The presence configuration of a collection declared with app.presence, or null. */
81
+ export declare function presenceOf(collection: CollectionDefinition | undefined | null): PresenceConfig | null;
82
+ /** Whether a lease holds at `now` (live, and not past its expiry). */
83
+ export declare function leaseHolds(record: Record<string, unknown> | null | undefined, now: number): boolean;
84
+ export declare const MIN_LEASE_TTL_MS = 1000;
85
+ export declare const MAX_LEASE_TTL_MS: number;
@@ -0,0 +1,37 @@
1
+ export const PRESENCE = Symbol.for("feltkit.presence");
2
+ export const LEASE_END_REASONS = ["left", "removed", "expired", "session-ended", "replaced"];
3
+ /** The fields FeltKit keeps on every lease. An application's presence shape may not declare them. */
4
+ export const LEASE_FIELDS = {
5
+ /** The holder's principal id and type. */
6
+ holder: "string",
7
+ holderType: "string",
8
+ /** The holder's session ref, when the join came with one. */
9
+ session: "string?",
10
+ /** The join's `key` (one live lease per holder and key). */
11
+ key: "string?",
12
+ /** "ttl": ends unless renewed within ttlMs. "session": lives as long as the holder's session (no renewal). */
13
+ binding: "string",
14
+ startedAt: "number",
15
+ renewedAt: "number",
16
+ /** When a ttl lease ends unless renewed. Absent for a session-bound lease. */
17
+ expiresAt: "number?",
18
+ live: "boolean",
19
+ endedAt: "number?",
20
+ endReason: "string?",
21
+ /** Who ended it (`type:id`), or "platform" (expiry, session end). */
22
+ endedBy: "string?",
23
+ };
24
+ /** The presence configuration of a collection declared with app.presence, or null. */
25
+ export function presenceOf(collection) {
26
+ return collection?.[PRESENCE] ?? null;
27
+ }
28
+ /** Whether a lease holds at `now` (live, and not past its expiry). */
29
+ export function leaseHolds(record, now) {
30
+ if (!record || record.live !== true)
31
+ return false;
32
+ const expiresAt = record.expiresAt;
33
+ return typeof expiresAt !== "number" || expiresAt > now;
34
+ }
35
+ export const MIN_LEASE_TTL_MS = 1_000;
36
+ export const MAX_LEASE_TTL_MS = 24 * 60 * 60 * 1000;
37
+ //# sourceMappingURL=presence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presence.js","sourceRoot":"","sources":["../src/presence.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,QAAQ,GAAkB,MAAM,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AAGtE,MAAM,CAAC,MAAM,iBAAiB,GAA8B,CAAC,MAAM,EAAE,SAA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