@agent-native/core 0.92.10 → 0.92.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +29 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/agent/production-agent.ts +214 -17
- package/corpus/core/src/agent/run-manager.ts +72 -14
- package/corpus/core/src/agent/run-store.ts +152 -27
- package/corpus/core/src/cli/design-connect.ts +433 -151
- package/corpus/core/src/cli/skills.ts +14 -0
- package/corpus/core/src/client/AssistantChat.tsx +25 -0
- package/corpus/core/src/client/MultiTabAssistantChat.tsx +40 -6
- package/corpus/core/src/client/agent-chat-adapter.ts +56 -12
- package/corpus/core/src/client/agent-chat.ts +165 -1
- package/corpus/core/src/client/chat/index.ts +9 -1
- package/corpus/core/src/client/extensions/EmbeddedExtension.tsx +38 -2
- package/corpus/core/src/client/index.ts +5 -0
- package/corpus/core/src/client/rich-markdown-editor/useCollabReconcile.ts +18 -7
- package/corpus/core/src/collab/awareness-store.ts +23 -12
- package/corpus/core/src/collab/client.ts +16 -5
- package/corpus/core/src/collab/index.ts +4 -0
- package/corpus/core/src/collab/recent-edits.ts +65 -2
- package/corpus/core/src/index.browser.ts +1 -0
- package/corpus/core/src/server/agent-chat-plugin.ts +98 -11
- package/corpus/core/src/server/builder-design-systems.ts +30 -4
- package/corpus/templates/clips/.agents/skills/ai-video-tools/SKILL.md +1 -1
- package/corpus/templates/clips/.agents/skills/video-sharing/SKILL.md +12 -6
- package/corpus/templates/clips/AGENTS.md +4 -0
- package/corpus/templates/clips/actions/create-recording.ts +2 -0
- package/corpus/templates/clips/actions/lib/create-recording-schema.ts +5 -3
- package/corpus/templates/clips/actions/request-transcript.ts +102 -33
- package/corpus/templates/clips/app/components/library/library-grid.tsx +1 -0
- package/corpus/templates/clips/app/components/player/share-dialog.tsx +59 -19
- package/corpus/templates/clips/app/components/player/transcript-panel.tsx +75 -9
- package/corpus/templates/clips/app/components/player/video-player.tsx +17 -12
- package/corpus/templates/clips/app/hooks/use-player-shortcuts.ts +1 -0
- package/corpus/templates/clips/app/i18n/ar-SA.ts +1 -0
- package/corpus/templates/clips/app/i18n/de-DE.ts +1 -0
- package/corpus/templates/clips/app/i18n/en-US.ts +1 -0
- package/corpus/templates/clips/app/i18n/es-ES.ts +1 -0
- package/corpus/templates/clips/app/i18n/fr-FR.ts +1 -0
- package/corpus/templates/clips/app/i18n/hi-IN.ts +1 -0
- package/corpus/templates/clips/app/i18n/ja-JP.ts +1 -0
- package/corpus/templates/clips/app/i18n/ko-KR.ts +1 -0
- package/corpus/templates/clips/app/i18n/pt-BR.ts +1 -0
- package/corpus/templates/clips/app/i18n/zh-CN.ts +1 -0
- package/corpus/templates/clips/app/i18n/zh-TW.ts +1 -0
- package/corpus/templates/clips/app/routes/r.$recordingId.tsx +70 -37
- package/corpus/templates/clips/app/routes/record.tsx +17 -4
- package/corpus/templates/clips/app/routes/share.$shareId.tsx +2 -0
- package/corpus/templates/clips/changelog/2026-07-09-desktop-popover-sits-closer-to-the-menu-bar.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-desktop-recording-optimization-progress-stays-visible-until-the-clip-opens.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-fixed-large-video-file-uploads-failing-before-their-resumabl.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-fixed-new-video-uploads-defaulting-to-private.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-long-recordings-now-get-enough-time-to-download-their-media-.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-meeting-notes-no-longer-lowers-your-microphone-volume-for-ot.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-on-mobile-tapping-a-playing-clip-reveals-playback-controls-w.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-regenerate-any-clip-transcript-from-its-saved-recording-or-r.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-09-slack-previews-now-show-the-clip-length-alongside-its-descri.md +6 -0
- package/corpus/templates/clips/changelog/2026-07-10-fixed-copying-agent-responses-and-transcript-text-from-recor.md +6 -0
- package/corpus/templates/clips/desktop/src/app.tsx +12 -2
- package/corpus/templates/clips/desktop/src/hooks/useMeetingTranscription.ts +8 -1
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +8 -5
- package/corpus/templates/clips/desktop/src/lib/transcription-engine.ts +5 -5
- package/corpus/templates/clips/desktop/src/lib/voice-dictation.ts +3 -0
- package/corpus/templates/clips/desktop/src/styles.css +6 -3
- package/corpus/templates/clips/desktop/src-tauri/src/clips/mod.rs +29 -11
- package/corpus/templates/clips/desktop/src-tauri/src/native_screen.rs +1 -1
- package/corpus/templates/clips/desktop/src-tauri/src/system_audio.rs +103 -21
- package/corpus/templates/clips/desktop/src-tauri/src/whisper_speech.rs +117 -39
- package/corpus/templates/clips/server/lib/slack-unfurls.ts +20 -1
- package/corpus/templates/clips/server/lib/streaming-upload-mode.ts +10 -4
- package/corpus/templates/clips/shared/recording-core.ts +12 -0
- package/corpus/templates/content/AGENTS.md +7 -6
- package/corpus/templates/content/actions/_builder-cms-read-client.ts +82 -7
- package/corpus/templates/content/actions/_database-source-utils.ts +149 -30
- package/corpus/templates/content/actions/_document-flush.ts +132 -17
- package/corpus/templates/content/actions/_notion-action-utils.ts +15 -0
- package/corpus/templates/content/actions/add-content-database-source-field-property.ts +4 -7
- package/corpus/templates/content/actions/attach-content-database-source.ts +41 -17
- package/corpus/templates/content/actions/change-content-database-source-role.ts +46 -8
- package/corpus/templates/content/actions/create-and-link-notion-page.ts +2 -0
- package/corpus/templates/content/actions/link-notion-page.ts +2 -0
- package/corpus/templates/content/actions/pull-document.ts +5 -7
- package/corpus/templates/content/actions/pull-notion-page.ts +2 -0
- package/corpus/templates/content/actions/push-notion-page.ts +10 -0
- package/corpus/templates/content/actions/resolve-notion-sync-conflict.ts +2 -0
- package/corpus/templates/content/actions/suggest-source-join-key.ts +8 -1
- package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +88 -23
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +32 -2
- package/corpus/templates/content/app/hooks/use-notion.ts +6 -6
- package/corpus/templates/content/app/i18n/zh-TW.ts +1 -0
- package/corpus/templates/content/app/i18n-data.ts +18 -0
- package/corpus/templates/content/changelog/2026-07-09-builder-source-refreshes-now-keep-mapped-fields-such-as-topi.md +6 -0
- package/corpus/templates/content/changelog/2026-07-09-notion-conflict-choices-and-version-restores-preserve-docume.md +6 -0
- package/corpus/templates/content/server/lib/notion-sync.ts +80 -64
- package/corpus/templates/content/shared/api.ts +1 -0
- package/corpus/templates/design/.agents/skills/design-generation/SKILL.md +29 -2
- package/corpus/templates/design/.agents/skills/design-systems/SKILL.md +86 -0
- package/corpus/templates/design/.agents/skills/export-handoff/SKILL.md +57 -0
- package/corpus/templates/design/.agents/skills/visual-edit/SKILL.md +11 -0
- package/corpus/templates/design/AGENTS.md +45 -10
- package/corpus/templates/design/actions/add-localhost-screens.ts +66 -13
- package/corpus/templates/design/actions/apply-component-prop-edit.ts +45 -36
- package/corpus/templates/design/actions/apply-motion-edit.ts +25 -31
- package/corpus/templates/design/actions/apply-shader-fill.ts +29 -42
- package/corpus/templates/design/actions/detach-component-instance.ts +337 -0
- package/corpus/templates/design/actions/export-design-as-figma-svg.ts +219 -0
- package/corpus/templates/design/actions/generate-design.ts +79 -12
- package/corpus/templates/design/actions/generate-screens.ts +57 -12
- package/corpus/templates/design/actions/get-figma-styles.ts +115 -0
- package/corpus/templates/design/actions/go-to-main-component.ts +254 -0
- package/corpus/templates/design/actions/grant-localhost-write-consent.ts +4 -3
- package/corpus/templates/design/actions/import-design-source.ts +4 -31
- package/corpus/templates/design/actions/import-figma-clipboard.ts +134 -0
- package/corpus/templates/design/actions/import-figma-frame.ts +95 -0
- package/corpus/templates/design/actions/index-design-system-with-builder.ts +16 -1
- package/corpus/templates/design/actions/list-design-components.ts +104 -0
- package/corpus/templates/design/actions/list-figma-library-assets.ts +1 -24
- package/corpus/templates/design/actions/open-component-source.ts +2 -4
- package/corpus/templates/design/actions/present-design-variants.ts +412 -16
- package/corpus/templates/design/actions/preview-source-edit.ts +14 -1
- package/corpus/templates/design/actions/run-design-audit.ts +25 -3
- package/corpus/templates/design/actions/show-design-questions.ts +10 -0
- package/corpus/templates/design/actions/swap-component-instance.ts +544 -0
- package/corpus/templates/design/actions/take-design-screenshot.ts +45 -60
- package/corpus/templates/design/actions/write-local-file.ts +25 -1
- package/corpus/templates/design/app/components/design/CanvasContextMenu.tsx +152 -0
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +1077 -58
- package/corpus/templates/design/app/components/design/DesignEditorSkeleton.tsx +5 -5
- package/corpus/templates/design/app/components/design/DesignExtensionsPanel.tsx +73 -21
- package/corpus/templates/design/app/components/design/EditPanel.tsx +16 -11
- package/corpus/templates/design/app/components/design/KeyboardShortcutsPanel.tsx +364 -0
- package/corpus/templates/design/app/components/design/LayersPanel.tsx +180 -53
- package/corpus/templates/design/app/components/design/LocalhostWriteConsentDialog.tsx +0 -2
- package/corpus/templates/design/app/components/design/MotionDock.tsx +144 -21
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +1152 -167
- package/corpus/templates/design/app/components/design/QuestionFlow.tsx +27 -5
- package/corpus/templates/design/app/components/design/ReviewPanel.tsx +23 -2
- package/corpus/templates/design/app/components/design/TokensPanel.tsx +63 -49
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +1293 -54
- package/corpus/templates/design/app/components/design/bridge/embedded-wheel.bridge.ts +7 -0
- package/corpus/templates/design/app/components/design/bridge/hit-test.bridge.ts +6 -1
- package/corpus/templates/design/app/components/design/bridge/motion-preview.bridge.ts +23 -6
- package/corpus/templates/design/app/components/design/bridge/sample.bridge.ts +7 -0
- package/corpus/templates/design/app/components/design/code-workbench/CodeWorkbench.tsx +5 -0
- package/corpus/templates/design/app/components/design/code-workbench/editor/MonacoHost.tsx +14 -2
- package/corpus/templates/design/app/components/design/code-workbench/explorer/FileTree.tsx +37 -2
- package/corpus/templates/design/app/components/design/code-workbench/format/format-on-open-guard.ts +25 -0
- package/corpus/templates/design/app/components/design/code-workbench/format/format-on-open.ts +19 -1
- package/corpus/templates/design/app/components/design/code-workbench/model-registry.ts +43 -5
- package/corpus/templates/design/app/components/design/code-workbench/search/SearchView.tsx +27 -2
- package/corpus/templates/design/app/components/design/code-workbench/search/search-engine.ts +10 -1
- package/corpus/templates/design/app/components/design/code-workbench/store.tsx +19 -2
- package/corpus/templates/design/app/components/design/design-canvas/annotation-snapshot.ts +265 -0
- package/corpus/templates/design/app/components/design/design-canvas/annotation-submit.ts +16 -5
- package/corpus/templates/design/app/components/design/design-canvas/coordinate-transforms.ts +16 -2
- package/corpus/templates/design/app/components/design/design-canvas/embedded-frame.ts +7 -2
- package/corpus/templates/design/app/components/design/design-canvas/iframe-events.ts +3 -1
- package/corpus/templates/design/app/components/design/edit-panel/code-inspect-helpers.tsx +78 -8
- package/corpus/templates/design/app/components/design/edit-panel/component-section.tsx +451 -73
- package/corpus/templates/design/app/components/design/edit-panel/document-colors.ts +12 -4
- package/corpus/templates/design/app/components/design/edit-panel/effects-properties.tsx +398 -272
- package/corpus/templates/design/app/components/design/edit-panel/element-classification.ts +41 -7
- package/corpus/templates/design/app/components/design/edit-panel/element-identity.ts +16 -3
- package/corpus/templates/design/app/components/design/edit-panel/field-primitives.tsx +24 -4
- package/corpus/templates/design/app/components/design/edit-panel/fill-gradient-helpers.ts +222 -4
- package/corpus/templates/design/app/components/design/edit-panel/fill-properties.tsx +171 -78
- package/corpus/templates/design/app/components/design/edit-panel/inspector-controls.tsx +45 -5
- package/corpus/templates/design/app/components/design/edit-panel/layout-properties.tsx +299 -28
- package/corpus/templates/design/app/components/design/edit-panel/panel-primitives.tsx +120 -150
- package/corpus/templates/design/app/components/design/edit-panel/position-helpers.ts +53 -1
- package/corpus/templates/design/app/components/design/edit-panel/position-layout-properties.tsx +284 -117
- package/corpus/templates/design/app/components/design/edit-panel/selection-helpers.ts +81 -0
- package/corpus/templates/design/app/components/design/edit-panel/stroke-properties.tsx +19 -14
- package/corpus/templates/design/app/components/design/edit-panel/style-options.ts +7 -0
- package/corpus/templates/design/app/components/design/edit-panel/typography-helpers.ts +155 -0
- package/corpus/templates/design/app/components/design/edit-panel/typography-properties.tsx +268 -46
- package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +350 -31
- package/corpus/templates/design/app/components/design/inspector/ConstraintsWidget.tsx +13 -4
- package/corpus/templates/design/app/components/design/inspector/DesignColorPicker.tsx +233 -23
- package/corpus/templates/design/app/components/design/inspector/GradientEditor.tsx +72 -2
- package/corpus/templates/design/app/components/design/inspector/ScrubInput.tsx +51 -11
- package/corpus/templates/design/app/components/design/inspector/ShaderFillsPanel.tsx +84 -11
- package/corpus/templates/design/app/components/design/inspector/index.ts +3 -0
- package/corpus/templates/design/app/components/design/keyboard-shortcuts.ts +552 -0
- package/corpus/templates/design/app/components/design/multi-screen/board-surface-html.ts +157 -0
- package/corpus/templates/design/app/components/design/multi-screen/frame-geometry.ts +53 -0
- package/corpus/templates/design/app/components/design/multi-screen/overview-layout.ts +184 -0
- package/corpus/templates/design/app/components/design/multi-screen/primitive-drop-target.ts +403 -26
- package/corpus/templates/design/app/components/design/multi-screen/types.ts +20 -1
- package/corpus/templates/design/app/components/design/types.ts +33 -0
- package/corpus/templates/design/app/components/editor/PromptDialog.tsx +59 -7
- package/corpus/templates/design/app/components/visual-editor/CanvasCommentPins.tsx +119 -17
- package/corpus/templates/design/app/components/visual-editor/DrawOverlay.tsx +275 -63
- package/corpus/templates/design/app/hooks/use-question-flow.ts +14 -3
- package/corpus/templates/design/app/hooks/useDesignHotkeys.ts +67 -10
- package/corpus/templates/design/app/i18n/zh-TW.ts +91 -1
- package/corpus/templates/design/app/i18n-data.ts +1217 -10
- package/corpus/templates/design/app/i18n-keyboard-shortcuts.ts +577 -0
- package/corpus/templates/design/app/lib/agent-chat.ts +23 -0
- package/corpus/templates/design/app/lib/design-import.ts +24 -0
- package/corpus/templates/design/app/lib/figma-clipboard.ts +157 -0
- package/corpus/templates/design/app/lib/figma-svg-copy.ts +221 -0
- package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +143 -30
- package/corpus/templates/design/app/pages/design-editor/collab-sync.ts +15 -0
- package/corpus/templates/design/app/pages/design-editor/editor-session.ts +33 -0
- package/corpus/templates/design/app/pages/design-editor/editor-state.ts +38 -0
- package/corpus/templates/design/app/pages/design-editor/overview-annotation-context.ts +157 -0
- package/corpus/templates/design/app/pages/design-editor/overview-camera.ts +62 -6
- package/corpus/templates/design/app/pages/design-editor/pending-edits.ts +245 -0
- package/corpus/templates/design/app/pages/design-editor/react-semantic-handoff.ts +586 -0
- package/corpus/templates/design/app/pages/design-editor/screen-auto-layout.ts +169 -0
- package/corpus/templates/design/app/pages/design-editor/selection-state.ts +201 -1
- package/corpus/templates/design/changelog/2026-07-09-added-underline-strikethrough-and-text-case-uppercase-lowerc.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-annotate-now-draws-across-the-all-screens-canvas-without-swi.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-auto-layout-children-can-now-be-dragged-into-freeform-screen.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-board-shapes-now-stay-visible-and-nest-correctly-across-the-.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-component-source-navigation-now-opens-reliably-from-the-insp.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-cross-screen-local-react-layer-moves-now-hand-off-exact-sour.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-cross-screen-moves-undo-and-redo-now-keep-both-screens-stabl.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-detach-a-component-instance-into-plain-editable-eleme.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-dragging-layers-into-auto-layout-now-respects-ignore-auto-la.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-drawing-annotations-sent-to-the-agent-now-include-a-rendered.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-editor-sidebars-now-use-figma-matched-default-widths-for-a-r.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-empty-frames-and-rectangles-now-expose-full-auto-layout-cont.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-export-any-design-screen-as-a-real-vector-svg-for-figma-with.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-grid-auto-layout-now-uses-true-responsive-rows-and-columns-w.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-hidden-and-locked-screens-now-behave-consistently-between-la.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-image-fills-now-preserve-valid-urls-and-layered-fit-settings.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-import-figma-frames-as-pixel-accurate-design-screens-via-a-s.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-inspect-code-now-hides-internal-styling-metadata-and-wraps-l.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-inspector-blur-and-shadow-effects-now-preserve-other-effects.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-jump-to-a-components-other-instances-from-the-inspecto.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-keyboard-shortcuts-are-now-discoverable-in-a-figma-style-bot.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-layer-selection-now-keeps-cmd-or-ctrl-toggles-and-shift-rang.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-layers-dropped-into-auto-layout-now-participate-correctly-in.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-local-live-edit-screens-now-enter-and-leave-full-view-withou.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-local-preview-urls-now-live-in-the-inspector-instead-of-taki.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-local-react-layers-can-now-be-hidden-and-locked-from-layers-.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-local-react-layers-now-keep-exact-source-provenance-and-supp.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-local-react-visual-editing-now-loads-reliably-and-shows-live.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-paste-from-figma-cmd-v-now-imports-exact-editable-nodes-when.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-pressing-escape-after-selecting-a-screen-now-reveals-page-pr.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-right-click-overlapping-or-nested-objects-to-choose-the-exac.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-scale-edge-stretch-and-center-constraints-now-preserve-layer.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-screen-rows-can-now-be-reordered-in-layers-with-matching-can.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-screen-selection-stays-responsive-in-designs-with-hundreds-o.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-shift-a-now-enables-auto-layout-on-a-selected-screen-with-fl.md +6 -0
- package/corpus/templates/design/changelog/2026-07-09-swap-a-component-instance-for-another-from-the-libra.md +6 -0
- package/corpus/templates/design/changelog/2026-07-10-drawing-annotations-now-stay-available-to-retry-when-the.md +6 -0
- package/corpus/templates/design/e2e/global-setup.ts +3 -6
- package/corpus/templates/design/e2e/helpers.ts +27 -6
- package/corpus/templates/design/server/lib/design-to-figma-svg.ts +1412 -0
- package/corpus/templates/design/server/lib/figma-clipboard-match.ts +196 -0
- package/corpus/templates/design/server/lib/figma-node-import.ts +311 -0
- package/corpus/templates/design/server/lib/figma-node-to-html.ts +1334 -0
- package/corpus/templates/design/server/lib/figma-paste-fallback.ts +64 -0
- package/corpus/templates/design/server/lib/playwright-runtime.ts +78 -0
- package/corpus/templates/design/server/plugins/db.ts +41 -0
- package/corpus/templates/design/server/source-workspace.ts +64 -0
- package/corpus/templates/design/shared/board-file.ts +13 -2
- package/corpus/templates/design/shared/canvas-math.ts +231 -33
- package/corpus/templates/design/shared/code-layer.ts +122 -8
- package/corpus/templates/design/shared/component-library.ts +161 -0
- package/corpus/templates/design/shared/db-conflict.ts +27 -0
- package/corpus/templates/design/shared/design-source-capabilities.ts +2 -1
- package/corpus/templates/design/shared/figma-url.ts +149 -0
- package/corpus/templates/design/shared/pen-path.ts +16 -7
- package/corpus/templates/design/shared/source-mode.ts +1 -0
- package/corpus/templates/plan/app/components/plan/CanvasArea.tsx +7 -19
- package/corpus/templates/plan/changelog/2026-07-09-canvas-panning-now-keeps-zoom-fixed-even-at-the-edges.md +6 -0
- package/corpus/templates/slides/actions/index-design-system-with-builder.ts +16 -1
- package/corpus/templates/slides/app/context/DeckContext.tsx +311 -70
- package/corpus/templates/slides/changelog/2026-07-09-fixed-the-slide-rail-going-permanently-stale-during-a-long-a.md +6 -0
- package/dist/agent/production-agent.d.ts +82 -7
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +180 -17
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/agent/run-manager.d.ts.map +1 -1
- package/dist/agent/run-manager.js +63 -14
- package/dist/agent/run-manager.js.map +1 -1
- package/dist/agent/run-store.d.ts +46 -0
- package/dist/agent/run-store.d.ts.map +1 -1
- package/dist/agent/run-store.js +129 -22
- package/dist/agent/run-store.js.map +1 -1
- package/dist/cli/design-connect.d.ts +6 -0
- package/dist/cli/design-connect.d.ts.map +1 -1
- package/dist/cli/design-connect.js +336 -139
- package/dist/cli/design-connect.js.map +1 -1
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +14 -0
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/AssistantChat.d.ts +2 -0
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +19 -3
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
- package/dist/client/MultiTabAssistantChat.js +38 -18
- package/dist/client/MultiTabAssistantChat.js.map +1 -1
- package/dist/client/agent-chat-adapter.d.ts.map +1 -1
- package/dist/client/agent-chat-adapter.js +48 -12
- package/dist/client/agent-chat-adapter.js.map +1 -1
- package/dist/client/agent-chat.d.ts +60 -0
- package/dist/client/agent-chat.d.ts.map +1 -1
- package/dist/client/agent-chat.js +122 -1
- package/dist/client/agent-chat.js.map +1 -1
- package/dist/client/chat/index.d.ts +1 -1
- package/dist/client/chat/index.d.ts.map +1 -1
- package/dist/client/chat/index.js +1 -1
- package/dist/client/chat/index.js.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.d.ts +12 -0
- package/dist/client/extensions/EmbeddedExtension.d.ts.map +1 -1
- package/dist/client/extensions/EmbeddedExtension.js +36 -2
- package/dist/client/extensions/EmbeddedExtension.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.d.ts.map +1 -1
- package/dist/client/rich-markdown-editor/useCollabReconcile.js +18 -6
- package/dist/client/rich-markdown-editor/useCollabReconcile.js.map +1 -1
- package/dist/collab/awareness-store.d.ts +5 -0
- package/dist/collab/awareness-store.d.ts.map +1 -1
- package/dist/collab/awareness-store.js +19 -12
- package/dist/collab/awareness-store.js.map +1 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +1 -1
- package/dist/collab/client.d.ts.map +1 -1
- package/dist/collab/client.js +13 -5
- package/dist/collab/client.js.map +1 -1
- package/dist/collab/index.d.ts +1 -0
- package/dist/collab/index.d.ts.map +1 -1
- package/dist/collab/index.js +1 -0
- package/dist/collab/index.js.map +1 -1
- package/dist/collab/recent-edits.d.ts +3 -1
- package/dist/collab/recent-edits.d.ts.map +1 -1
- package/dist/collab/recent-edits.js +57 -2
- package/dist/collab/recent-edits.js.map +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/observability/routes.d.ts +5 -5
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +3 -3
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +87 -10
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/builder-design-systems.d.ts +15 -0
- package/dist/server/builder-design-systems.d.ts.map +1 -1
- package/dist/server/builder-design-systems.js +9 -4
- package/dist/server/builder-design-systems.js.map +1 -1
- package/package.json +1 -1
|
@@ -191,6 +191,11 @@ const DeckContext = createContext<DeckContextType | null>(null);
|
|
|
191
191
|
|
|
192
192
|
const OPEN_DECK_FALLBACK_POLL_MS = 5_000;
|
|
193
193
|
const DECK_LIST_FALLBACK_POLL_MS = 15_000;
|
|
194
|
+
// Bounded exponential backoff for SSE reconnect after a fatal error (e.g. a
|
|
195
|
+
// non-2xx response, which EventSource treats as terminal and never retries
|
|
196
|
+
// on its own — see the SSE effect below). Doubles from BASE up to MAX.
|
|
197
|
+
const SSE_RECONNECT_BASE_MS = 1_000;
|
|
198
|
+
const SSE_RECONNECT_MAX_MS = 30_000;
|
|
194
199
|
|
|
195
200
|
type DeckListActionResult = {
|
|
196
201
|
decks?: unknown[];
|
|
@@ -236,6 +241,30 @@ const saveStateListeners = new Set<() => void>();
|
|
|
236
241
|
// Ops are appended by enqueueDeckOp and drained when the debounce fires.
|
|
237
242
|
const pendingOpsQueue = new Map<string, GranularOp[]>();
|
|
238
243
|
|
|
244
|
+
// Every raw deck fetch (the legacy full-replace PUT, the create POST) MUST be
|
|
245
|
+
// bounded. Without a timeout, a stalled connection leaves the awaited promise
|
|
246
|
+
// forever pending, so the `finally` that drains `inFlightSaves` /
|
|
247
|
+
// `pendingCreateIdsRef` never runs — wedging the deck id in a set that
|
|
248
|
+
// `hasUncommittedDeckChanges` reads, which permanently suppresses the poll's
|
|
249
|
+
// and the SSE resync's open-deck refetch (the editor goes blind to agent edits
|
|
250
|
+
// until a full page reload). Matches the granular `patch-deck` path, which is
|
|
251
|
+
// already bounded at 60s by `actionFetch`'s DEFAULT_ACTION_TIMEOUT_MS.
|
|
252
|
+
const RAW_DECK_FETCH_TIMEOUT_MS = 60_000;
|
|
253
|
+
|
|
254
|
+
async function fetchWithTimeout(
|
|
255
|
+
input: string,
|
|
256
|
+
init: RequestInit = {},
|
|
257
|
+
timeoutMs = RAW_DECK_FETCH_TIMEOUT_MS,
|
|
258
|
+
): Promise<Response> {
|
|
259
|
+
const controller = new AbortController();
|
|
260
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
261
|
+
try {
|
|
262
|
+
return await fetch(input, { ...init, signal: controller.signal });
|
|
263
|
+
} finally {
|
|
264
|
+
clearTimeout(timer);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
239
268
|
// Cached snapshot for useSyncExternalStore. MUST be stable when the boolean
|
|
240
269
|
// is unchanged or React will infinite-loop (it compares snapshots with
|
|
241
270
|
// Object.is — a fresh object literal every call schedules a new update,
|
|
@@ -311,9 +340,12 @@ function enqueueDeckOp(deckId: string, op: GranularOp) {
|
|
|
311
340
|
if (ops.length === 0) return;
|
|
312
341
|
|
|
313
342
|
if (ops[0].op === "full-replace") {
|
|
314
|
-
// Legacy full-deck PUT — used by undo/redo and setDeckSlides
|
|
343
|
+
// Legacy full-deck PUT — used by undo/redo and setDeckSlides.
|
|
344
|
+
// Bounded so a stalled PUT can't wedge `inFlightSaves` forever (its
|
|
345
|
+
// `finally` cleanup below only runs once this await settles; an
|
|
346
|
+
// AbortError from the timeout is a rejection that still reaches it).
|
|
315
347
|
const deck = ops[0].deck;
|
|
316
|
-
await
|
|
348
|
+
await fetchWithTimeout(`${appBasePath()}/api/decks/${deckId}`, {
|
|
317
349
|
method: "PUT",
|
|
318
350
|
headers: { "Content-Type": "application/json" },
|
|
319
351
|
body: JSON.stringify(deck),
|
|
@@ -738,7 +770,11 @@ async function deleteDeckFromAPI(id: string): Promise<void> {
|
|
|
738
770
|
}
|
|
739
771
|
|
|
740
772
|
async function createDeckOnAPI(deck: Deck): Promise<void> {
|
|
741
|
-
|
|
773
|
+
// Bounded so a stalled create response can't leave the deck id in
|
|
774
|
+
// `pendingCreateIdsRef` forever (cleared only in the caller's `.finally`,
|
|
775
|
+
// which needs this promise to settle). A wedged pending-create id would
|
|
776
|
+
// otherwise suppress the open-deck refetch just like a wedged save.
|
|
777
|
+
const res = await fetchWithTimeout(`${appBasePath()}/api/decks`, {
|
|
742
778
|
method: "POST",
|
|
743
779
|
headers: { "Content-Type": "application/json" },
|
|
744
780
|
body: JSON.stringify(deck),
|
|
@@ -778,6 +814,57 @@ export function hasUncommittedDeckChanges(
|
|
|
778
814
|
);
|
|
779
815
|
}
|
|
780
816
|
|
|
817
|
+
/**
|
|
818
|
+
* Additive, content-preserving reconcile of a server deck snapshot onto the
|
|
819
|
+
* local copy — used when the open deck has uncommitted local edits, where a
|
|
820
|
+
* wholesale adopt would clobber the user's in-progress typing.
|
|
821
|
+
*
|
|
822
|
+
* The concern the "uncommitted changes" guard originally addressed (don't
|
|
823
|
+
* overwrite local edits with slightly-stale server state) is legitimate for
|
|
824
|
+
* slide BODIES, but it must not make the client permanently blind to the
|
|
825
|
+
* agent ADDING slides — that is the production staleness bug. So we split the
|
|
826
|
+
* two concerns:
|
|
827
|
+
* - never overwrite the content of a slide that exists locally, and
|
|
828
|
+
* - never drop a local-only slide (an unsaved local add), but
|
|
829
|
+
* - always surface server slides that are missing locally (agent additions),
|
|
830
|
+
* positioned to follow the server's ordering.
|
|
831
|
+
*
|
|
832
|
+
* Removals and content changes to slides that exist on both sides are left to
|
|
833
|
+
* the clean-deck path (`applyRemoteDeckUpdate`), which runs once local edits
|
|
834
|
+
* settle. This merge is intentionally conservative: it can only ADD slides, so
|
|
835
|
+
* it can never destroy local work, yet it always heals an empty/stale rail.
|
|
836
|
+
*
|
|
837
|
+
* Returns the same `local` reference when nothing was added, so callers can
|
|
838
|
+
* cheaply detect "no change".
|
|
839
|
+
*/
|
|
840
|
+
export function mergeServerAddedSlides(local: Deck, server: Deck): Deck {
|
|
841
|
+
const localIds = new Set(local.slides.map((s) => s.id));
|
|
842
|
+
const additions = server.slides.filter((s) => !localIds.has(s.id));
|
|
843
|
+
if (additions.length === 0) return local;
|
|
844
|
+
|
|
845
|
+
// Walk the server order, emitting local slides with their local (possibly
|
|
846
|
+
// dirty) content and inserting server-only additions in place. Any local
|
|
847
|
+
// slide not present on the server (an unsaved local add) is carried over at
|
|
848
|
+
// the end so we never drop unsaved local work.
|
|
849
|
+
const localById = new Map(local.slides.map((s) => [s.id, s]));
|
|
850
|
+
const emitted = new Set<string>();
|
|
851
|
+
const merged: Slide[] = [];
|
|
852
|
+
for (const s of server.slides) {
|
|
853
|
+
const localSlide = localById.get(s.id);
|
|
854
|
+
merged.push(localSlide ?? s);
|
|
855
|
+
emitted.add(s.id);
|
|
856
|
+
}
|
|
857
|
+
for (const s of local.slides) {
|
|
858
|
+
if (!emitted.has(s.id)) {
|
|
859
|
+
merged.push(s);
|
|
860
|
+
emitted.add(s.id);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
// Keep local scalar fields (title/tweaks/etc. may be locally edited); only
|
|
864
|
+
// the slide set is reconciled here.
|
|
865
|
+
return { ...local, slides: merged };
|
|
866
|
+
}
|
|
867
|
+
|
|
781
868
|
export const defaultSlideContent: Record<SlideLayout, string> = {
|
|
782
869
|
title: `<div class="fmd-slide" style="padding: 80px 110px; justify-content: space-between;">
|
|
783
870
|
<div>
|
|
@@ -980,6 +1067,109 @@ export function DeckProvider({ children }: { children: ReactNode }) {
|
|
|
980
1067
|
[],
|
|
981
1068
|
);
|
|
982
1069
|
|
|
1070
|
+
// Re-fetch the deck list and diff it against local state (added/removed
|
|
1071
|
+
// decks). Shared by the fallback poll and the SSE resync-on-reconnect path
|
|
1072
|
+
// below so both pull from one implementation of "what changed".
|
|
1073
|
+
const refetchDeckListIfChanged = useCallback(async () => {
|
|
1074
|
+
const fresh = await fetchDecksFromAPI();
|
|
1075
|
+
// A null result means the fetch failed (network error or non-2xx). Skip
|
|
1076
|
+
// the diff so we don't wipe local state on a transient failure.
|
|
1077
|
+
if (fresh === null) return;
|
|
1078
|
+
const pending = pendingCreateIdsRef.current;
|
|
1079
|
+
const currentDecks = decksRef.current;
|
|
1080
|
+
const currentIds = new Set(currentDecks.map((d) => d.id));
|
|
1081
|
+
const freshIds = new Set(fresh.map((d) => d.id));
|
|
1082
|
+
// Check if deck list changed (added or removed). Optimistic decks still
|
|
1083
|
+
// in flight are preserved (not treated as removed).
|
|
1084
|
+
const added = fresh.filter((d) => !currentIds.has(d.id));
|
|
1085
|
+
const removed = currentDecks.filter(
|
|
1086
|
+
(d) => !freshIds.has(d.id) && !pending.has(d.id),
|
|
1087
|
+
);
|
|
1088
|
+
if (added.length === 0 && removed.length === 0) return;
|
|
1089
|
+
lastExternalUpdateRef.current = Date.now();
|
|
1090
|
+
setDecks((prev) => {
|
|
1091
|
+
const prevIds = new Set(prev.map((d) => d.id));
|
|
1092
|
+
// Only add decks that aren't already in prev (prevents duplicates when
|
|
1093
|
+
// the closure's deck snapshot is stale compared to `prev`).
|
|
1094
|
+
let next = prev.filter((d) => freshIds.has(d.id) || pending.has(d.id));
|
|
1095
|
+
for (const a of added) {
|
|
1096
|
+
if (!prevIds.has(a.id)) next = [...next, a];
|
|
1097
|
+
}
|
|
1098
|
+
return next;
|
|
1099
|
+
});
|
|
1100
|
+
}, []);
|
|
1101
|
+
|
|
1102
|
+
// Re-fetch the currently-open deck's full slide data and reconcile it.
|
|
1103
|
+
//
|
|
1104
|
+
// We ALWAYS fetch — never gate on pending-create or uncommitted-edits state.
|
|
1105
|
+
// Gating the fetch was the liveness bug: a wedged `pendingSaves` /
|
|
1106
|
+
// `inFlightSaves` / `pendingCreateIdsRef` entry (or a legitimately dirty
|
|
1107
|
+
// deck) would make the editor permanently blind to agent-added slides.
|
|
1108
|
+
//
|
|
1109
|
+
// How we APPLY the result depends on whether there are local edits to
|
|
1110
|
+
// protect:
|
|
1111
|
+
// - Clean deck → adopt the server snapshot wholesale (handles content
|
|
1112
|
+
// changes, removals, and reorders too), exactly as before.
|
|
1113
|
+
// - Dirty deck / unsaved local create → additive merge only: surface
|
|
1114
|
+
// agent-added slides without ever overwriting or dropping local slides.
|
|
1115
|
+
const refetchOpenDeckIfChanged = useCallback(
|
|
1116
|
+
async (currentOpenId: string) => {
|
|
1117
|
+
const serverDeck = await fetchDeckFromAPI(currentOpenId);
|
|
1118
|
+
// Null means 404 (row not created yet), a transient failure, or a
|
|
1119
|
+
// still-pending create — nothing authoritative to reconcile.
|
|
1120
|
+
if (!serverDeck) return;
|
|
1121
|
+
const clientDeck = decksRef.current.find((d) => d.id === currentOpenId);
|
|
1122
|
+
|
|
1123
|
+
const hasLocalEdits =
|
|
1124
|
+
pendingCreateIdsRef.current.has(currentOpenId) ||
|
|
1125
|
+
hasUncommittedDeckChanges(currentOpenId, dirtyDeckIdsRef.current);
|
|
1126
|
+
|
|
1127
|
+
if (hasLocalEdits && clientDeck) {
|
|
1128
|
+
// Content-preserving: only ADD server slides missing locally.
|
|
1129
|
+
const merged = mergeServerAddedSlides(clientDeck, serverDeck);
|
|
1130
|
+
if (merged === clientDeck) return; // nothing new to surface
|
|
1131
|
+
lastExternalUpdateRef.current = Date.now();
|
|
1132
|
+
setDecks((prev) => {
|
|
1133
|
+
const idx = prev.findIndex((d) => d.id === currentOpenId);
|
|
1134
|
+
if (idx < 0) return prev;
|
|
1135
|
+
const next = [...prev];
|
|
1136
|
+
next[idx] = merged;
|
|
1137
|
+
return next;
|
|
1138
|
+
});
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
const changed =
|
|
1143
|
+
!clientDeck ||
|
|
1144
|
+
clientDeck.updatedAt !== serverDeck.updatedAt ||
|
|
1145
|
+
clientDeck.slides.length !== serverDeck.slides.length;
|
|
1146
|
+
if (!changed) return;
|
|
1147
|
+
lastExternalUpdateRef.current = Date.now();
|
|
1148
|
+
applyRemoteDeckUpdate(serverDeck);
|
|
1149
|
+
},
|
|
1150
|
+
[applyRemoteDeckUpdate],
|
|
1151
|
+
);
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Full resync of authoritative deck/slide state from the server. The SSE
|
|
1155
|
+
* channel (`notifyClients` server-side) is fire-and-forget to whatever
|
|
1156
|
+
* connections are live at broadcast time — there is no backlog or replay,
|
|
1157
|
+
* so any event emitted while this tab was disconnected is gone forever.
|
|
1158
|
+
* Call this whenever the SSE connection (re)establishes after a drop so
|
|
1159
|
+
* agent writes made during the gap show up without requiring a full page
|
|
1160
|
+
* reload.
|
|
1161
|
+
*/
|
|
1162
|
+
const resyncDeckState = useCallback(async () => {
|
|
1163
|
+
try {
|
|
1164
|
+
await refetchDeckListIfChanged();
|
|
1165
|
+
} catch {}
|
|
1166
|
+
const currentOpenId = currentOpenDeckIdFromWindow();
|
|
1167
|
+
if (!currentOpenId) return;
|
|
1168
|
+
try {
|
|
1169
|
+
await refetchOpenDeckIfChanged(currentOpenId);
|
|
1170
|
+
} catch {}
|
|
1171
|
+
}, [refetchDeckListIfChanged, refetchOpenDeckIfChanged]);
|
|
1172
|
+
|
|
983
1173
|
const resetDeckBaseline = useCallback((nextDecks: Deck[]) => {
|
|
984
1174
|
setDecks(nextDecks);
|
|
985
1175
|
// A baseline reset (initial mount, route change, or access reload) starts a
|
|
@@ -1053,79 +1243,29 @@ export function DeckProvider({ children }: { children: ReactNode }) {
|
|
|
1053
1243
|
|
|
1054
1244
|
async function poll() {
|
|
1055
1245
|
if (stopped || isHidden()) return;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
const currentOpenId = readOpenDeckId();
|
|
1059
|
-
const pending = pendingCreateIdsRef.current;
|
|
1246
|
+
const now = Date.now();
|
|
1247
|
+
const currentOpenId = readOpenDeckId();
|
|
1060
1248
|
|
|
1249
|
+
try {
|
|
1061
1250
|
if (
|
|
1062
1251
|
!currentOpenId ||
|
|
1063
1252
|
now - lastListFetchAt >= DECK_LIST_FALLBACK_POLL_MS
|
|
1064
1253
|
) {
|
|
1065
1254
|
lastListFetchAt = now;
|
|
1066
|
-
|
|
1067
|
-
//
|
|
1068
|
-
//
|
|
1069
|
-
//
|
|
1070
|
-
//
|
|
1071
|
-
|
|
1072
|
-
if (fresh !== null) {
|
|
1073
|
-
const currentDecks = decksRef.current;
|
|
1074
|
-
const currentIds = new Set(currentDecks.map((d) => d.id));
|
|
1075
|
-
const freshIds = new Set(fresh.map((d) => d.id));
|
|
1076
|
-
// Check if deck list changed (added or removed). Optimistic decks
|
|
1077
|
-
// still in flight are preserved (not treated as removed).
|
|
1078
|
-
const added = fresh.filter((d) => !currentIds.has(d.id));
|
|
1079
|
-
const removed = currentDecks.filter(
|
|
1080
|
-
(d) => !freshIds.has(d.id) && !pending.has(d.id),
|
|
1081
|
-
);
|
|
1082
|
-
if (added.length > 0 || removed.length > 0) {
|
|
1083
|
-
lastExternalUpdateRef.current = Date.now();
|
|
1084
|
-
setDecks((prev) => {
|
|
1085
|
-
const prevIds = new Set(prev.map((d) => d.id));
|
|
1086
|
-
let next = prev.filter(
|
|
1087
|
-
(d) => freshIds.has(d.id) || pending.has(d.id),
|
|
1088
|
-
);
|
|
1089
|
-
// Only add decks that aren't already in prev (prevents duplicates
|
|
1090
|
-
// when the closure's deck snapshot is stale compared to `prev`).
|
|
1091
|
-
for (const a of added) {
|
|
1092
|
-
if (!prevIds.has(a.id)) next = [...next, a];
|
|
1093
|
-
}
|
|
1094
|
-
return next;
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1255
|
+
// A failed fetch (network error or non-2xx) is swallowed inside
|
|
1256
|
+
// refetchDeckListIfChanged — skip the diff so we don't wipe local
|
|
1257
|
+
// state on a transient failure, otherwise the user's open deck
|
|
1258
|
+
// disappears and they're bounced back to the empty "Create your
|
|
1259
|
+
// first deck" screen until the next poll succeeds.
|
|
1260
|
+
await refetchDeckListIfChanged();
|
|
1098
1261
|
}
|
|
1099
1262
|
|
|
1100
1263
|
// Also re-fetch the currently-open deck so agent-added slides show up.
|
|
1101
1264
|
// The list endpoint may not include full slide contents, and SSE can
|
|
1102
1265
|
// miss events if the client reconnects between broadcasts.
|
|
1103
|
-
|
|
1104
|
-
// Skip the refetch if a save is pending or in flight — the server's
|
|
1105
|
-
// copy might be a few hundred ms behind the local edits the user is
|
|
1106
|
-
// mid-typing, and overwriting wholesale would briefly revert their
|
|
1107
|
-
// characters before the next save lands. The next poll tick (after
|
|
1108
|
-
// saves settle) catches up.
|
|
1109
|
-
if (
|
|
1110
|
-
currentOpenId &&
|
|
1111
|
-
!pending.has(currentOpenId) &&
|
|
1112
|
-
!hasUncommittedDeckChanges(currentOpenId, dirtyDeckIdsRef.current)
|
|
1113
|
-
) {
|
|
1266
|
+
if (currentOpenId) {
|
|
1114
1267
|
try {
|
|
1115
|
-
|
|
1116
|
-
if (serverDeck) {
|
|
1117
|
-
const clientDeck = decksRef.current.find(
|
|
1118
|
-
(d) => d.id === currentOpenId,
|
|
1119
|
-
);
|
|
1120
|
-
const changed =
|
|
1121
|
-
!clientDeck ||
|
|
1122
|
-
clientDeck.updatedAt !== serverDeck.updatedAt ||
|
|
1123
|
-
clientDeck.slides.length !== serverDeck.slides.length;
|
|
1124
|
-
if (changed) {
|
|
1125
|
-
lastExternalUpdateRef.current = Date.now();
|
|
1126
|
-
applyRemoteDeckUpdate(serverDeck);
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1268
|
+
await refetchOpenDeckIfChanged(currentOpenId);
|
|
1129
1269
|
} catch {}
|
|
1130
1270
|
}
|
|
1131
1271
|
} catch {}
|
|
@@ -1160,7 +1300,7 @@ export function DeckProvider({ children }: { children: ReactNode }) {
|
|
|
1160
1300
|
window.removeEventListener("focus", pollNow);
|
|
1161
1301
|
document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
1162
1302
|
};
|
|
1163
|
-
}, [
|
|
1303
|
+
}, [refetchDeckListIfChanged, refetchOpenDeckIfChanged, loading]);
|
|
1164
1304
|
|
|
1165
1305
|
// The dirty-deck set is now only used as a sentinel that "something changed
|
|
1166
1306
|
// for this deck". Ops are enqueued directly in each mutation handler below;
|
|
@@ -1184,11 +1324,53 @@ export function DeckProvider({ children }: { children: ReactNode }) {
|
|
|
1184
1324
|
}
|
|
1185
1325
|
}, [decks, loading]);
|
|
1186
1326
|
|
|
1187
|
-
// Listen for
|
|
1327
|
+
// Listen for deck changes via SSE (so agent edits show up in real-time).
|
|
1328
|
+
//
|
|
1329
|
+
// EventSource auto-reconnects on its own ONLY for network-level drops
|
|
1330
|
+
// (readyState stays CONNECTING while it retries). A non-2xx HTTP response
|
|
1331
|
+
// — e.g. a transient 503 during a cold start — is FATAL per spec: the
|
|
1332
|
+
// browser sets readyState CLOSED and never retries. Without our own
|
|
1333
|
+
// reconnect logic, a single 503 permanently kills live updates for the
|
|
1334
|
+
// rest of the tab's life (the rail goes stale until a manual reload).
|
|
1335
|
+
//
|
|
1336
|
+
// We reconnect manually with bounded exponential backoff, and because
|
|
1337
|
+
// notifyClients() on the server has no backlog/replay (fire-and-forget to
|
|
1338
|
+
// whatever connections are live at broadcast time — see
|
|
1339
|
+
// server/handlers/decks.ts), every reconnect after the first triggers a
|
|
1340
|
+
// full resync via resyncDeckState() so agent writes made during the gap
|
|
1341
|
+
// aren't silently lost.
|
|
1188
1342
|
useEffect(() => {
|
|
1189
1343
|
if (isEmbedAuthActive()) return;
|
|
1190
|
-
|
|
1191
|
-
|
|
1344
|
+
let stopped = false;
|
|
1345
|
+
let es: EventSource | null = null;
|
|
1346
|
+
let reconnectTimer: ReturnType<typeof setTimeout> | null = null;
|
|
1347
|
+
let retryCount = 0;
|
|
1348
|
+
let hasConnectedOnce = false;
|
|
1349
|
+
|
|
1350
|
+
const isHidden = () =>
|
|
1351
|
+
typeof document !== "undefined" && document.visibilityState === "hidden";
|
|
1352
|
+
|
|
1353
|
+
const clearReconnectTimer = () => {
|
|
1354
|
+
if (reconnectTimer) {
|
|
1355
|
+
clearTimeout(reconnectTimer);
|
|
1356
|
+
reconnectTimer = null;
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
const scheduleReconnect = () => {
|
|
1361
|
+
if (stopped || reconnectTimer || isHidden()) return;
|
|
1362
|
+
const delay = Math.min(
|
|
1363
|
+
SSE_RECONNECT_BASE_MS * 2 ** retryCount,
|
|
1364
|
+
SSE_RECONNECT_MAX_MS,
|
|
1365
|
+
);
|
|
1366
|
+
retryCount += 1;
|
|
1367
|
+
reconnectTimer = setTimeout(() => {
|
|
1368
|
+
reconnectTimer = null;
|
|
1369
|
+
connect();
|
|
1370
|
+
}, delay);
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
const handleMessage = async (event: MessageEvent) => {
|
|
1192
1374
|
try {
|
|
1193
1375
|
const data = JSON.parse(event.data);
|
|
1194
1376
|
if (data.type === "deck-deleted" && data.deckId) {
|
|
@@ -1211,8 +1393,67 @@ export function DeckProvider({ children }: { children: ReactNode }) {
|
|
|
1211
1393
|
}
|
|
1212
1394
|
} catch {}
|
|
1213
1395
|
};
|
|
1214
|
-
|
|
1215
|
-
|
|
1396
|
+
|
|
1397
|
+
const connect = () => {
|
|
1398
|
+
if (stopped || isHidden()) return;
|
|
1399
|
+
// Never leak the previous connection.
|
|
1400
|
+
if (es) {
|
|
1401
|
+
es.close();
|
|
1402
|
+
es = null;
|
|
1403
|
+
}
|
|
1404
|
+
const next = new EventSource(`${appBasePath()}/api/decks/events`);
|
|
1405
|
+
es = next;
|
|
1406
|
+
next.onmessage = handleMessage;
|
|
1407
|
+
next.onopen = () => {
|
|
1408
|
+
retryCount = 0;
|
|
1409
|
+
// Every reconnect after the first can have missed broadcasts made
|
|
1410
|
+
// while we were disconnected — the SSE channel has no backlog, so
|
|
1411
|
+
// resync authoritative state instead of trusting the stream alone
|
|
1412
|
+
// to have caught us up.
|
|
1413
|
+
if (hasConnectedOnce) {
|
|
1414
|
+
void resyncDeckState();
|
|
1415
|
+
}
|
|
1416
|
+
hasConnectedOnce = true;
|
|
1417
|
+
};
|
|
1418
|
+
next.onerror = () => {
|
|
1419
|
+
if (es !== next) return;
|
|
1420
|
+
if (next.readyState === EventSource.CLOSED) {
|
|
1421
|
+
// Fatal per spec (non-2xx status, bad content-type, etc.) — the
|
|
1422
|
+
// browser will not retry on its own. Reconnect ourselves.
|
|
1423
|
+
next.close();
|
|
1424
|
+
es = null;
|
|
1425
|
+
scheduleReconnect();
|
|
1426
|
+
}
|
|
1427
|
+
// readyState === CONNECTING means the browser is already retrying a
|
|
1428
|
+
// network-level drop on its own; onopen above resyncs once that
|
|
1429
|
+
// succeeds.
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
|
|
1433
|
+
const handleVisibilityChange = () => {
|
|
1434
|
+
if (isHidden()) {
|
|
1435
|
+
clearReconnectTimer();
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
retryCount = 0;
|
|
1439
|
+
if (!es || es.readyState === EventSource.CLOSED) {
|
|
1440
|
+
connect();
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1444
|
+
connect();
|
|
1445
|
+
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
1446
|
+
|
|
1447
|
+
return () => {
|
|
1448
|
+
stopped = true;
|
|
1449
|
+
clearReconnectTimer();
|
|
1450
|
+
document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
1451
|
+
if (es) {
|
|
1452
|
+
es.close();
|
|
1453
|
+
es = null;
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
}, [applyRemoteDeckUpdate, resyncDeckState]);
|
|
1216
1457
|
|
|
1217
1458
|
// Flush pending (debounced) saves before the tab is hidden or unloaded so the
|
|
1218
1459
|
// last ~500ms of edits aren't lost on close/navigation. `pagehide` is the
|
|
@@ -6,7 +6,7 @@ import type { AgentEngine, EngineTool, EngineMessage, EngineContentPart } from "
|
|
|
6
6
|
import { type Processor } from "./processors.js";
|
|
7
7
|
import { subscribeToRun, getActiveRunForThread, getActiveRunForThreadAsync, getRun, abortRun } from "./run-manager.js";
|
|
8
8
|
import type { ActiveRun } from "./run-manager.js";
|
|
9
|
-
import { insertRun, updateRunHeartbeat, updateRunStatusIfRunning, setRunTerminalReason, claimBackgroundRun, readBackgroundRunClaim, recordRunDiagnostic, countRunsForTurn } from "./run-store.js";
|
|
9
|
+
import { insertRun, updateRunHeartbeat, updateRunStatusIfRunning, setRunError, setRunTerminalReason, claimBackgroundRun, readBackgroundRunClaim, recordRunDiagnostic, countRunsForTurn } from "./run-store.js";
|
|
10
10
|
import type { ActionTool, AgentChatAttachment, AgentChatEvent, AgentChatReference, AgentChatStructuredMessage } from "./types.js";
|
|
11
11
|
export { PROVIDER_TO_ENV };
|
|
12
12
|
/**
|
|
@@ -550,8 +550,10 @@ export declare function shouldChainBackgroundContinuation(opts: {
|
|
|
550
550
|
export declare function markBackgroundContinuationChunkTerminal(opts: {
|
|
551
551
|
runId: string;
|
|
552
552
|
continuationReason: AgentLoopContinuationReason;
|
|
553
|
+
terminalEvent?: AgentChatEvent;
|
|
553
554
|
deps?: {
|
|
554
555
|
updateRunStatusIfRunning?: typeof updateRunStatusIfRunning;
|
|
556
|
+
setRunError?: typeof setRunError;
|
|
555
557
|
setRunTerminalReason?: typeof setRunTerminalReason;
|
|
556
558
|
};
|
|
557
559
|
}): Promise<boolean>;
|
|
@@ -634,6 +636,65 @@ export declare function resolveContinuationDispatchBudget(opts: {
|
|
|
634
636
|
chainViaDurableBackground: boolean;
|
|
635
637
|
workerProvenInBackgroundFunction: boolean;
|
|
636
638
|
}): ContinuationDispatchBudget;
|
|
639
|
+
/**
|
|
640
|
+
* True when a `fireInternalDispatch` failure is Netlify's Functions platform
|
|
641
|
+
* loop-protection response (`HTTP 508 Loop Detected`), matched against the
|
|
642
|
+
* exact message `self-dispatch.ts`'s `dispatchResponseError` constructs
|
|
643
|
+
* (`Self-dispatch to ${path} returned HTTP ${res.status} ${res.statusText}...`).
|
|
644
|
+
* Matches on the status code alone (not the reason phrase text) so it is
|
|
645
|
+
* robust to any wording Netlify's edge puts in `statusText`.
|
|
646
|
+
*
|
|
647
|
+
* VERIFIED: production `agent_runs` diagnostics show exactly this failure mode
|
|
648
|
+
* — 8 successful `chain_dispatch_sent` self-dispatches followed by a 9th/10th
|
|
649
|
+
* that dies with `HTTP 508 Loop Detected`, terminal reason
|
|
650
|
+
* `background_continuation_dispatch_failed`. UNVERIFIED (Netlify does not
|
|
651
|
+
* document the mechanism — checked the Functions overview, Functions API
|
|
652
|
+
* reference, Background Functions overview, Status Codes reference, and
|
|
653
|
+
* Request Chain troubleshooting docs, none mention it): the ONLY public
|
|
654
|
+
* confirmation is a Netlify staff forum reply — "we prevent multiple
|
|
655
|
+
* executions after one-another as that's a 'loop' ... I believe we enforce
|
|
656
|
+
* this after 9 or 10 self-invocations"
|
|
657
|
+
* (https://answers.netlify.com/t/self-invoke-background-function-via-post-requests/146012)
|
|
658
|
+
* — which also confirms Background Functions do NOT escape the limit (the
|
|
659
|
+
* reporter's case was already a `-background` function self-invoking). See
|
|
660
|
+
* `MAX_NESTED_SELF_DISPATCH_DEPTH` for how this classification is used.
|
|
661
|
+
*/
|
|
662
|
+
export declare function isLoopProtectionDispatchError(err: unknown): boolean;
|
|
663
|
+
/**
|
|
664
|
+
* Conservative safety margin on NESTED self-dispatch chaining — a
|
|
665
|
+
* continuation dispatched directly from within the live invocation that is
|
|
666
|
+
* about to finish, as opposed to being picked up later by the
|
|
667
|
+
* unclaimed-background-run sweep (`agent-chat-plugin.ts`), which fires its
|
|
668
|
+
* redispatch from an unrelated, timer-driven invocation rather than from
|
|
669
|
+
* inside the chain's own execution.
|
|
670
|
+
*
|
|
671
|
+
* Netlify's loop-protection ceiling is undocumented and platform-reported
|
|
672
|
+
* only approximately ("I believe... 9 or 10" — see
|
|
673
|
+
* `isLoopProtectionDispatchError`), so hard-coding that exact number here
|
|
674
|
+
* would be pinning behavior to a number Netlify itself won't commit to, and
|
|
675
|
+
* production evidence shows it can trigger by the 9th self-dispatch. Rather
|
|
676
|
+
* than only reacting after triggering that undocumented limit,
|
|
677
|
+
* `chainServerDrivenContinuation` proactively hands a chunk to the sweep once
|
|
678
|
+
* `backgroundContinuationCount` (nested hops since the last chain break)
|
|
679
|
+
* reaches this value — comfortably below the observed ~9-10 failure point —
|
|
680
|
+
* instead of attempting another nested dispatch. This is the SAME deferred-
|
|
681
|
+
* recovery path already used when a dispatch fails outright: the row is left
|
|
682
|
+
* `status='running', dispatch_mode='background'` for the sweep to redispatch,
|
|
683
|
+
* never silently dropped.
|
|
684
|
+
*
|
|
685
|
+
* The sweep's redispatch marker intentionally omits `continuationCount` (see
|
|
686
|
+
* the "Unclaimed background-run sweep" in `agent-chat-plugin.ts`), so a
|
|
687
|
+
* sweep-recovered chunk's own `backgroundContinuationCount` resets to 0 —
|
|
688
|
+
* this constant therefore bounds each NESTED segment between chain breaks,
|
|
689
|
+
* not the whole turn. The TRUE ceiling on total turn length is unaffected by
|
|
690
|
+
* that reset: it is the durable per-turn SQL ledger (`countRunsForTurn`,
|
|
691
|
+
* checked above in this function) plus `MAX_BACKGROUND_RUN_CONTINUATIONS` —
|
|
692
|
+
* both counted independently of this in-marker value — so a legitimately
|
|
693
|
+
* long turn keeps making progress in bounded nested segments, each recovered
|
|
694
|
+
* by the sweep, until it genuinely exhausts the intentional overall budget
|
|
695
|
+
* and fails loud with `turn_continuation_budget_exhausted`.
|
|
696
|
+
*/
|
|
697
|
+
export declare const MAX_NESTED_SELF_DISPATCH_DEPTH = 6;
|
|
637
698
|
/**
|
|
638
699
|
* Server-driven continuation handoff for a chunk that hit its soft-timeout
|
|
639
700
|
* boundary still unfinished: mint the next chunk's runId, PRE-INSERT its run
|
|
@@ -642,12 +703,26 @@ export declare function resolveContinuationDispatchBudget(opts: {
|
|
|
642
703
|
* `_process-run` self-dispatch carrying ids only (the body is persisted on
|
|
643
704
|
* the row as `dispatch_payload`), fully AWAIT the dispatch acknowledgment
|
|
644
705
|
* with retries, and mark this chunk terminal only after the handoff landed.
|
|
645
|
-
* On failure
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
* the
|
|
649
|
-
*
|
|
650
|
-
*
|
|
706
|
+
* On failure this chunk always goes terminal loudly (diag stage + terminal
|
|
707
|
+
* reason recorded — never a silent loss), but the successor row's fate
|
|
708
|
+
* depends on WHY the dispatch failed:
|
|
709
|
+
* - the pre-insert itself failed (no successor row exists) — nothing for a
|
|
710
|
+
* sweep to find, so this is unrecoverable: fail loud immediately with
|
|
711
|
+
* `background_continuation_dispatch_failed`.
|
|
712
|
+
* - every dispatch attempt failed but the successor row DOES exist with its
|
|
713
|
+
* `dispatch_payload` intact — this is RECOVERABLE: the row is left alone
|
|
714
|
+
* (`status='running', dispatch_mode='background'`) instead of being
|
|
715
|
+
* errored, so the unclaimed-background-run sweep in `agent-chat-plugin.ts`
|
|
716
|
+
* can redispatch it once `UNCLAIMED_BACKGROUND_RUN_GRACE_MS` has passed.
|
|
717
|
+
* This chunk is flipped to errored with the distinct, honest
|
|
718
|
+
* `background_continuation_dispatch_deferred` reason — the TURN is
|
|
719
|
+
* deferred, not dead. The sweep still bounds this by
|
|
720
|
+
* `UNCLAIMED_BACKGROUND_RUN_REDISPATCH_BOUND_MS`: past that it falls back
|
|
721
|
+
* to the existing loud reap, so a genuinely dead handoff never hangs
|
|
722
|
+
* silently forever. (For a FOREGROUND self-chain the client additionally
|
|
723
|
+
* still receives the terminal `auto_continue` event — run-manager emits
|
|
724
|
+
* it after this callback — so the existing client re-POST path is a
|
|
725
|
+
* second, faster fallback alongside the sweep.)
|
|
651
726
|
*
|
|
652
727
|
* `chainViaDurableBackground` selects the dispatch target:
|
|
653
728
|
* - true → the durable-background worker chain (unchanged behavior): the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production-agent.d.ts","sourceRoot":"","sources":["../../src/agent/production-agent.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,IAAI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