@tangle-network/agent-app 0.45.53 → 0.45.55
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/README.md +1 -1
- package/dist/alerting/index.d.ts +5 -175
- package/dist/alerting/slack.d.ts +176 -0
- package/dist/app-auth/index.d.ts +14 -17
- package/dist/assets/index.d.ts +2 -504
- package/dist/assets/schema.d.ts +264 -0
- package/dist/assets/types.d.ts +237 -0
- package/dist/assistant/AssistantDock.d.ts +56 -0
- package/dist/assistant/AssistantHistory.d.ts +41 -0
- package/dist/assistant/AssistantPanel.d.ts +84 -0
- package/dist/assistant/ProposalCard.d.ts +41 -0
- package/dist/assistant/ResizeHandle.d.ts +19 -0
- package/dist/assistant/client-context.d.ts +20 -0
- package/dist/assistant/client.d.ts +117 -0
- package/dist/assistant/index.d.ts +19 -848
- package/dist/assistant/launcher.d.ts +23 -0
- package/dist/assistant/persistence.d.ts +26 -0
- package/dist/assistant/presentation.d.ts +99 -0
- package/dist/assistant/provider-label.d.ts +7 -0
- package/dist/assistant/reducer.d.ts +130 -0
- package/dist/assistant/sse.d.ts +24 -0
- package/dist/assistant/time-ago.d.ts +6 -0
- package/dist/assistant/transcript.d.ts +97 -0
- package/dist/assistant/types.d.ts +291 -0
- package/dist/assistant/use-stick-to-bottom.d.ts +28 -0
- package/dist/assistant/useAssistantChat.d.ts +63 -0
- package/dist/assistant/useAssistantModels.d.ts +22 -0
- package/dist/assistant/useAssistantThreads.d.ts +47 -0
- package/dist/assistant/usePanelPrefs.d.ts +55 -0
- package/dist/billing/index.d.ts +19 -21
- package/dist/brand/index.d.ts +16 -10
- package/dist/brand-extraction/extract.d.ts +34 -0
- package/dist/brand-extraction/index.d.ts +12 -214
- package/dist/brand-extraction/map.d.ts +58 -0
- package/dist/brand-extraction/types.d.ts +119 -0
- package/dist/catalog/index.d.ts +11 -101
- package/dist/chat-react/composer-mode-controls.d.ts +14 -0
- package/dist/chat-react/entry-composer.d.ts +92 -0
- package/dist/chat-react/index.d.ts +22 -118
- package/dist/chat-react/types.d.ts +11 -0
- package/dist/chat-routes/attachment-store.d.ts +84 -0
- package/dist/chat-routes/attachment-upload.d.ts +84 -0
- package/dist/chat-routes/attachment-validation.d.ts +95 -0
- package/dist/chat-routes/binary-sniff.d.ts +45 -0
- package/dist/chat-routes/completed-sandbox-turn.d.ts +25 -0
- package/dist/chat-routes/detached-turn.d.ts +197 -0
- package/dist/chat-routes/dispatch-parts.d.ts +101 -0
- package/dist/chat-routes/draft-persistence.d.ts +189 -0
- package/dist/chat-routes/durable-projection.d.ts +18 -0
- package/dist/chat-routes/file-index.d.ts +115 -0
- package/dist/chat-routes/index.d.ts +25 -1840
- package/dist/chat-routes/model-failover-stream.d.ts +206 -0
- package/dist/chat-routes/promote-file-part.d.ts +84 -0
- package/dist/chat-routes/resolve-attachments.d.ts +72 -0
- package/dist/chat-routes/sandbox-producer.d.ts +146 -0
- package/dist/chat-routes/sandbox-turn-usage.d.ts +4 -0
- package/dist/{stale-turn-lock-DucQzvXu.d.ts → chat-routes/stale-turn-lock.d.ts} +7 -9
- package/dist/chat-routes/turn-routes.d.ts +540 -0
- package/dist/chat-routes/upload.d.ts +84 -0
- package/dist/{wire-DOZ-O6hD.d.ts → chat-routes/wire.d.ts} +41 -44
- package/dist/chat-store/core.d.ts +19 -0
- package/dist/chat-store/index.d.ts +22 -322
- package/dist/{parts-BqIHMdyu.d.ts → chat-store/parts.d.ts} +49 -47
- package/dist/chat-store/schema.d.ts +157 -0
- package/dist/chat-store/store.d.ts +177 -0
- package/dist/config/index.d.ts +13 -18
- package/dist/crypto/index.d.ts +10 -12
- package/dist/crypto/web-token.d.ts +22 -0
- package/dist/design-canvas/apply.d.ts +70 -0
- package/dist/design-canvas/drizzle-store.d.ts +29 -0
- package/dist/design-canvas/drizzle.d.ts +7 -575
- package/dist/{export-presets-mgVulRaV.d.ts → design-canvas/export-presets.d.ts} +18 -22
- package/dist/design-canvas/index.d.ts +22 -268
- package/dist/design-canvas/mcp-entry.d.ts +15 -0
- package/dist/design-canvas/mcp-handler.d.ts +34 -0
- package/dist/design-canvas/mcp-tools.d.ts +30 -0
- package/dist/{model-DnfO_PdJ.d.ts → design-canvas/model.d.ts} +33 -35
- package/dist/{operations-ByJ6yXOW.d.ts → design-canvas/operations.d.ts} +21 -25
- package/dist/design-canvas/schema.d.ts +558 -0
- package/dist/{store-CqfDtnPQ.d.ts → design-canvas/store.d.ts} +8 -12
- package/dist/design-canvas/templates.d.ts +72 -0
- package/dist/design-canvas/validate.d.ts +32 -0
- package/dist/design-canvas-react/components/BleedTrimOverlay.d.ts +22 -0
- package/dist/design-canvas-react/components/BrandKnot.d.ts +11 -0
- package/dist/design-canvas-react/components/CanvasEmptyState.d.ts +32 -0
- package/dist/design-canvas-react/components/CanvasInsertPanel.d.ts +53 -0
- package/dist/{lazy-DrkVyDpe.d.ts → design-canvas-react/components/DesignCanvas.d.ts} +27 -20
- package/dist/design-canvas-react/components/DesignCanvasEditor.d.ts +23 -0
- package/dist/design-canvas-react/components/ElementNode.d.ts +51 -0
- package/dist/design-canvas-react/components/ExportControl.d.ts +21 -0
- package/dist/design-canvas-react/components/GridLayer.d.ts +47 -0
- package/dist/design-canvas-react/components/InlineTextEditor.d.ts +25 -0
- package/dist/design-canvas-react/components/LayersPanel.d.ts +20 -0
- package/dist/design-canvas-react/components/PagesStrip.d.ts +34 -0
- package/dist/design-canvas-react/components/Rulers.d.ts +31 -0
- package/dist/design-canvas-react/components/SelectionLayer.d.ts +51 -0
- package/dist/design-canvas-react/components/SnapGuidesOverlay.d.ts +25 -0
- package/dist/design-canvas-react/components/Toolbar.d.ts +64 -0
- package/dist/design-canvas-react/components/Workspace.d.ts +92 -0
- package/dist/design-canvas-react/components/ZoomControls.d.ts +14 -0
- package/dist/design-canvas-react/components/glyphs.d.ts +46 -0
- package/dist/design-canvas-react/components/icon-button.d.ts +22 -0
- package/dist/design-canvas-react/components/index.d.ts +27 -0
- package/dist/design-canvas-react/components/layer-tree.d.ts +34 -0
- package/dist/design-canvas-react/components/ruler-math.d.ts +78 -0
- package/dist/design-canvas-react/components/transform-math.d.ts +168 -0
- package/dist/{command-stack-TNPWJCzW.d.ts → design-canvas-react/contracts.d.ts} +16 -63
- package/dist/design-canvas-react/engine/command-stack.d.ts +43 -0
- package/dist/design-canvas-react/engine/commands.d.ts +154 -0
- package/dist/design-canvas-react/engine/selection.d.ts +48 -0
- package/dist/design-canvas-react/engine/snap.d.ts +24 -0
- package/dist/design-canvas-react/engine/zoom-pan.d.ts +18 -0
- package/dist/design-canvas-react/engine.d.ts +21 -399
- package/dist/design-canvas-react/export-math.d.ts +104 -0
- package/dist/design-canvas-react/export.d.ts +89 -0
- package/dist/design-canvas-react/index.d.ts +16 -586
- package/dist/design-canvas-react/insert-builders.d.ts +61 -0
- package/dist/design-canvas-react/lazy.d.ts +21 -6
- package/dist/documents/docx.d.ts +50 -0
- package/dist/documents/extract.d.ts +87 -0
- package/dist/documents/index.d.ts +26 -232
- package/dist/documents/media-type.d.ts +33 -0
- package/dist/documents/pdf-inspector.d.ts +5 -9
- package/dist/{types-DrBidf3O.d.ts → documents/types.d.ts} +13 -15
- package/dist/documents/zip.d.ts +56 -0
- package/dist/eval/calibration.d.ts +106 -0
- package/dist/eval/index.d.ts +8 -116
- package/dist/eval-campaign/index.d.ts +11 -12
- package/dist/{trust-gate-Dcm5xSva.d.ts → eval-campaign/trust-gate.d.ts} +5 -9
- package/dist/forms/blank.d.ts +48 -0
- package/dist/forms/fill.d.ts +105 -0
- package/dist/forms/index.d.ts +58 -332
- package/dist/forms/registry.d.ts +115 -0
- package/dist/forms/verify.d.ts +58 -0
- package/dist/harness/index.d.ts +21 -19
- package/dist/intakes/api.d.ts +5 -11
- package/dist/{completion-CvcNUz07.d.ts → intakes/completion.d.ts} +7 -11
- package/dist/intakes/context-sufficiency.d.ts +113 -0
- package/dist/intakes/drizzle/schema.d.ts +338 -0
- package/dist/intakes/drizzle/store.d.ts +75 -0
- package/dist/intakes/drizzle.d.ts +12 -391
- package/dist/intakes/index.d.ts +23 -113
- package/dist/{model-C8U0HZxL.d.ts → intakes/model.d.ts} +15 -17
- package/dist/intakes-react/components/BrandMark.d.ts +10 -0
- package/dist/intakes-react/components/IntakeInterview.d.ts +15 -0
- package/dist/intakes-react/components/index.d.ts +1 -0
- package/dist/intakes-react/contracts.d.ts +42 -0
- package/dist/intakes-react/index.d.ts +12 -47
- package/dist/intakes-react/lazy.d.ts +9 -8
- package/dist/integrations/index.d.ts +10 -12
- package/dist/{contract-OxG_jVMx.d.ts → interactions/contract.d.ts} +40 -42
- package/dist/interactions/index.d.ts +16 -256
- package/dist/interactions/route.d.ts +151 -0
- package/dist/interactions/sidecar.d.ts +100 -0
- package/dist/knowledge/index.d.ts +7 -11
- package/dist/knowledge-loop/index.d.ts +13 -20
- package/dist/legibility/checks/empty-state.d.ts +59 -0
- package/dist/legibility/checks/reachability.d.ts +103 -0
- package/dist/legibility/checks/silent-failure.d.ts +57 -0
- package/dist/legibility/checks/success.d.ts +38 -0
- package/dist/legibility/checks/vocabulary.d.ts +65 -0
- package/dist/legibility/cli-args.d.ts +30 -0
- package/dist/legibility/cli.d.ts +25 -0
- package/dist/legibility/index.d.ts +10 -530
- package/dist/legibility/report.d.ts +22 -0
- package/dist/legibility/scan.d.ts +29 -0
- package/dist/legibility/source.d.ts +132 -0
- package/dist/legibility/suppress.d.ts +36 -0
- package/dist/legibility/types.d.ts +168 -0
- package/dist/legibility/walk-sources.d.ts +21 -0
- package/dist/{agent-activity-C8ZG0F0M.d.ts → missions/agent-activity.d.ts} +3 -5
- package/dist/missions/engine.d.ts +251 -0
- package/dist/missions/events.d.ts +195 -0
- package/dist/missions/index.d.ts +12 -765
- package/dist/missions/plan-parse.d.ts +50 -0
- package/dist/missions/service.d.ts +265 -0
- package/dist/{failover-D-3UXXTb.d.ts → model-resolution/failover.d.ts} +10 -12
- package/dist/model-resolution/index.d.ts +15 -18
- package/dist/object-store/index.d.ts +15 -17
- package/dist/openui/action.d.ts +54 -0
- package/dist/openui/authoring.d.ts +25 -0
- package/dist/openui/index.d.ts +24 -206
- package/dist/openui/route.d.ts +124 -0
- package/dist/openui/segments.d.ts +71 -0
- package/dist/openui/values.d.ts +82 -0
- package/dist/openui-react/index.d.ts +9 -13
- package/dist/peer-floors/check.d.ts +9 -190
- package/dist/peer-floors/cli.d.ts +2 -3
- package/dist/peer-floors/dependency-source.d.ts +178 -0
- package/dist/plans/index.d.ts +13 -14
- package/dist/{billing-BuNlaKlE.d.ts → platform/billing.d.ts} +28 -32
- package/dist/platform/guards.d.ts +79 -0
- package/dist/platform/hub.d.ts +107 -0
- package/dist/platform/index.d.ts +7 -112
- package/dist/{sso-Cm00S61u.d.ts → platform/sso.d.ts} +15 -97
- package/dist/preflight/cli.d.ts +3 -6
- package/dist/preflight/index.d.ts +16 -18
- package/dist/preset-cloudflare/headers.d.ts +12 -0
- package/dist/preset-cloudflare/index.d.ts +22 -74
- package/dist/preset-cloudflare/workflow-instance.d.ts +35 -0
- package/dist/profile/budget.d.ts +72 -0
- package/dist/profile/fingerprint.d.ts +65 -0
- package/dist/profile/index.d.ts +27 -19
- package/dist/prompt/index.d.ts +3 -5
- package/dist/record/drizzle/schema.d.ts +488 -0
- package/dist/record/drizzle/store.d.ts +224 -0
- package/dist/record/drizzle.d.ts +10 -679
- package/dist/record/fold.d.ts +99 -0
- package/dist/record/index.d.ts +13 -13
- package/dist/{fold-DACU7gtf.d.ts → record/model.d.ts} +22 -124
- package/dist/record/ulid.d.ts +12 -0
- package/dist/redact/index.d.ts +14 -16
- package/dist/run/index.d.ts +11 -16
- package/dist/runtime/agent.d.ts +23 -0
- package/dist/runtime/certified-delivery.d.ts +57 -0
- package/dist/runtime/index.d.ts +17 -367
- package/dist/runtime/loop.d.ts +58 -0
- package/dist/runtime/model-catalog.d.ts +103 -0
- package/dist/{model-CdCDfBA9.d.ts → runtime/model.d.ts} +25 -27
- package/dist/runtime/openai-stream.d.ts +126 -0
- package/dist/runtime/surface-profile.d.ts +115 -0
- package/dist/sandbox/binary-read.d.ts +63 -0
- package/dist/sandbox/diagnostics.d.ts +69 -0
- package/dist/sandbox/index.d.ts +103 -1085
- package/dist/sandbox/model.d.ts +179 -0
- package/dist/sandbox/outcome.d.ts +10 -0
- package/dist/sandbox/prewarm-claim-d1.d.ts +80 -0
- package/dist/sandbox/prewarm.d.ts +193 -0
- package/dist/sandbox/recovery.d.ts +216 -0
- package/dist/sandbox/terminal-connection.d.ts +145 -0
- package/dist/sandbox/workspace-sandbox-manager.d.ts +44 -0
- package/dist/sequences/apply.d.ts +54 -0
- package/dist/sequences/captions.d.ts +91 -0
- package/dist/sequences/drizzle-store.d.ts +36 -0
- package/dist/sequences/drizzle.d.ts +7 -1252
- package/dist/sequences/exports.d.ts +138 -0
- package/dist/sequences/index.d.ts +19 -340
- package/dist/sequences/mcp-entry.d.ts +15 -0
- package/dist/sequences/mcp-handler.d.ts +39 -0
- package/dist/sequences/mcp-tools.d.ts +47 -0
- package/dist/{store-B7LLlk9p.d.ts → sequences/model.d.ts} +26 -110
- package/dist/sequences/operations.d.ts +126 -0
- package/dist/sequences/schema.d.ts +1231 -0
- package/dist/sequences/store.d.ts +81 -0
- package/dist/sequences/validate.d.ts +98 -0
- package/dist/sequences-react/components/BrandMark.d.ts +10 -0
- package/dist/sequences-react/components/PreviewCanvas.d.ts +26 -0
- package/dist/sequences-react/components/SnapIndicatorLine.d.ts +11 -0
- package/dist/sequences-react/components/TimelineClipChip.d.ts +80 -0
- package/dist/sequences-react/components/TimelineEditor.d.ts +44 -0
- package/dist/sequences-react/components/TimelineEmptyState.d.ts +21 -0
- package/dist/sequences-react/components/TimelineGhostLanes.d.ts +14 -0
- package/dist/sequences-react/components/TimelinePlayhead.d.ts +11 -0
- package/dist/sequences-react/components/TimelineRuler.d.ts +16 -0
- package/dist/sequences-react/components/TimelineSmallScreenGate.d.ts +12 -0
- package/dist/sequences-react/components/TimelineTrackRow.d.ts +51 -0
- package/dist/sequences-react/components/ZoomControl.d.ts +15 -0
- package/dist/sequences-react/components/composite-command.d.ts +8 -0
- package/dist/sequences-react/components/glyphs.d.ts +26 -0
- package/dist/sequences-react/components/index.d.ts +31 -0
- package/dist/sequences-react/components/interaction-math.d.ts +103 -0
- package/dist/sequences-react/contracts.d.ts +187 -0
- package/dist/sequences-react/engine/command-stack.d.ts +18 -0
- package/dist/sequences-react/engine/commands.d.ts +146 -0
- package/dist/sequences-react/engine/playback.d.ts +18 -0
- package/dist/sequences-react/engine/snap.d.ts +29 -0
- package/dist/sequences-react/engine/zoom.d.ts +29 -0
- package/dist/sequences-react/index.d.ts +20 -880
- package/dist/sequences-react/lazy.d.ts +8 -0
- package/dist/sequences-react/media/frame-provider.d.ts +70 -0
- package/dist/sequences-react/media/transcription.d.ts +33 -0
- package/dist/sequences-react/media/waveform.d.ts +34 -0
- package/dist/session-shell/index.d.ts +31 -204
- package/dist/session-shell/nav-guard.d.ts +170 -0
- package/dist/session-shell/path.d.ts +19 -0
- package/dist/signoff/cli.d.ts +4 -7
- package/dist/signoff/config.d.ts +12 -0
- package/dist/signoff/exec.d.ts +44 -0
- package/dist/signoff/index.d.ts +56 -14
- package/dist/signoff/invoked-as-script.d.ts +25 -0
- package/dist/signoff/node-version.d.ts +50 -0
- package/dist/signoff/proof-attach.d.ts +88 -0
- package/dist/signoff/proof-cli.d.ts +1 -0
- package/dist/signoff/proof-fixture.d.ts +13 -0
- package/dist/signoff/proof-from-report.d.ts +22 -0
- package/dist/signoff/proof-git.d.ts +57 -0
- package/dist/signoff/proof-record.d.ts +202 -0
- package/dist/signoff/proof-verify.d.ts +103 -0
- package/dist/signoff/proof.d.ts +35 -310
- package/dist/signoff/report.d.ts +7 -0
- package/dist/{run-D80hoLKh.d.ts → signoff/run.d.ts} +3 -6
- package/dist/signoff/schedule.d.ts +55 -0
- package/dist/signoff/seeds.d.ts +50 -0
- package/dist/signoff/store.d.ts +22 -0
- package/dist/{types-Bd6uW9vQ.d.ts → signoff/types.d.ts} +15 -17
- package/dist/signoff/workflow-pin.d.ts +56 -0
- package/dist/signoff/workspace.d.ts +40 -0
- package/dist/skills/index.d.ts +28 -32
- package/dist/skills-placement/index.d.ts +7 -11
- package/dist/spend/budget.d.ts +123 -0
- package/dist/spend/ceiling.d.ts +51 -0
- package/dist/spend/cli-args.d.ts +20 -0
- package/dist/spend/cli.d.ts +1 -0
- package/dist/spend/fixtures/incident-parked-time.d.ts +55 -0
- package/dist/spend/index.d.ts +38 -1144
- package/dist/spend/liveness.d.ts +131 -0
- package/dist/spend/ownership.d.ts +87 -0
- package/dist/spend/reconcile.d.ts +109 -0
- package/dist/spend/reference.d.ts +42 -0
- package/dist/spend/report.d.ts +12 -0
- package/dist/spend/store.d.ts +123 -0
- package/dist/spend/types.d.ts +466 -0
- package/dist/store/index.d.ts +10 -12
- package/dist/stories/app-shell/fixtures.d.ts +43 -0
- package/dist/stories/app-shell/shell.d.ts +81 -0
- package/dist/stories/assistant/fixtures.d.ts +73 -0
- package/dist/stories/chat/fixtures.d.ts +70 -0
- package/dist/stories/chat/markdown.d.ts +11 -0
- package/dist/stories/chat/run-drill-in.d.ts +19 -0
- package/dist/stories/chat-controls/fixtures.d.ts +116 -0
- package/dist/stories/design-canvas/fixtures.d.ts +57 -0
- package/dist/stories/fixtures/canvas.d.ts +10 -0
- package/dist/stories/fixtures/catalog.d.ts +7 -0
- package/dist/stories/fixtures/chat.d.ts +39 -0
- package/dist/stories/fixtures/index.d.ts +4 -0
- package/dist/stories/fixtures/sequences.d.ts +17 -0
- package/dist/stories/panels/fixtures.d.ts +63 -0
- package/dist/stories/sequences/fixtures.d.ts +30 -0
- package/dist/stories/studio/fixtures.d.ts +22 -0
- package/dist/stream/index.d.ts +10 -56
- package/dist/{stream-normalizer-DKRxyVlZ.d.ts → stream/stream-normalizer.d.ts} +23 -26
- package/dist/{turn-buffer-COMQUwO2.d.ts → stream/turn-buffer.d.ts} +21 -23
- package/dist/stream/turn-identity.d.ts +49 -0
- package/dist/studio/generation.d.ts +179 -0
- package/dist/studio/index.d.ts +12 -181
- package/dist/studio-react/avatar-composer.d.ts +8 -0
- package/dist/studio-react/composer-hero.d.ts +12 -0
- package/dist/studio-react/composer-shell.d.ts +18 -0
- package/dist/studio-react/generation-card.d.ts +9 -0
- package/dist/studio-react/generation-detail-modal.d.ts +11 -0
- package/dist/studio-react/generation-detail.d.ts +6 -0
- package/dist/studio-react/generation-grid.d.ts +15 -0
- package/dist/studio-react/image-composer.d.ts +8 -0
- package/dist/studio-react/index.d.ts +32 -245
- package/dist/studio-react/library-drawer.d.ts +12 -0
- package/dist/studio-react/library-panel.d.ts +15 -0
- package/dist/studio-react/publish-package-composer.d.ts +18 -0
- package/dist/studio-react/result-canvas.d.ts +6 -0
- package/dist/studio-react/speech-composer.d.ts +4 -0
- package/dist/studio-react/studio-header.d.ts +5 -0
- package/dist/studio-react/studio-sheet.d.ts +12 -0
- package/dist/studio-react/studio-workspace.d.ts +23 -0
- package/dist/studio-react/transcription-composer.d.ts +12 -0
- package/dist/studio-react/type-config.d.ts +11 -0
- package/dist/studio-react/use-studio-generations.d.ts +20 -0
- package/dist/studio-react/video-composer.d.ts +10 -0
- package/dist/tangle/index.d.ts +7 -9
- package/dist/teams/drizzle/access.d.ts +82 -0
- package/dist/{invitations-schema-_fI7HkJP.d.ts → teams/drizzle/invitations-schema.d.ts} +39 -27
- package/dist/teams/drizzle/personal-organization.d.ts +41 -0
- package/dist/{access-490O6aOU.d.ts → teams/drizzle/schema.d.ts} +57 -122
- package/dist/teams/drizzle.d.ts +12 -44
- package/dist/teams/index.d.ts +20 -44
- package/dist/teams/invitations-api.d.ts +17 -21
- package/dist/{invitations-DoYMvXea.d.ts → teams/invitations.d.ts} +14 -18
- package/dist/teams/invite.d.ts +42 -0
- package/dist/teams/members-api.d.ts +12 -16
- package/dist/teams/resend.d.ts +3 -13
- package/dist/{roles-B4nU3jDi.d.ts → teams/roles.d.ts} +18 -20
- package/dist/teams-react/components/BrandMark.d.ts +10 -0
- package/dist/teams-react/components/InvitationsPanel.d.ts +13 -0
- package/dist/teams-react/components/InviteAcceptPage.d.ts +10 -0
- package/dist/teams-react/components/MembersPanel.d.ts +14 -0
- package/dist/teams-react/components/RoleSelect.d.ts +17 -0
- package/dist/teams-react/components/index.d.ts +3 -0
- package/dist/teams-react/contracts.d.ts +134 -0
- package/dist/teams-react/index.d.ts +12 -143
- package/dist/teams-react/lazy.d.ts +11 -11
- package/dist/test-setup.d.ts +1 -0
- package/dist/theme/index.d.ts +6 -104
- package/dist/theme/tailwind-preset.d.ts +1 -2
- package/dist/theme/theme.d.ts +106 -0
- package/dist/theme-contract/cli.d.ts +21 -0
- package/dist/theme-contract/index.d.ts +4 -6
- package/dist/{auth-BYtiazA4.d.ts → tools/auth.d.ts} +8 -11
- package/dist/tools/capability.d.ts +54 -0
- package/dist/tools/dispatch.d.ts +37 -0
- package/dist/tools/errors.d.ts +8 -0
- package/dist/tools/gating.d.ts +62 -0
- package/dist/tools/http.d.ts +27 -0
- package/dist/tools/index.d.ts +12 -217
- package/dist/{mcp-rpc-DYwPlYbZ.d.ts → tools/mcp-rpc.d.ts} +7 -9
- package/dist/{mcp-xxoZZfor.d.ts → tools/mcp.d.ts} +14 -16
- package/dist/tools/openai.d.ts +28 -0
- package/dist/tools/registry.d.ts +39 -0
- package/dist/tools/runtime.d.ts +22 -0
- package/dist/{types-B25Mib1r.d.ts → tools/types.d.ts} +15 -83
- package/dist/{flow-types-CJxEmaRy.d.ts → trace/flow-types.d.ts} +2 -4
- package/dist/trace/index.d.ts +11 -148
- package/dist/trace/mission-flow.d.ts +82 -0
- package/dist/trace/mission-trace.d.ts +52 -0
- package/dist/turn-health/classify.d.ts +207 -0
- package/dist/turn-health/index.d.ts +29 -637
- package/dist/turn-health/lifecycle.d.ts +75 -0
- package/dist/turn-health/sink.d.ts +122 -0
- package/dist/turn-health/sweep.d.ts +245 -0
- package/dist/turn-stream/adapters.d.ts +257 -0
- package/dist/turn-stream/core.d.ts +293 -0
- package/dist/turn-stream/do.d.ts +144 -0
- package/dist/turn-stream/index.d.ts +62 -738
- package/dist/turn-stream/memory.d.ts +41 -0
- package/dist/vault/ConfirmDialog.d.ts +22 -0
- package/dist/vault/VaultPane.d.ts +15 -0
- package/dist/{VaultPane-BDP6SB_K.d.ts → vault/contracts.d.ts} +15 -22
- package/dist/vault/index.d.ts +15 -22
- package/dist/vault/lazy.d.ts +9 -7
- package/dist/vault/server.d.ts +8 -10
- package/dist/web/free-route-limit.d.ts +187 -0
- package/dist/web/index.d.ts +15 -207
- package/dist/{rate-limit-BOVmJRXZ.d.ts → web/rate-limit.d.ts} +3 -5
- package/dist/web-react/agent-session-controls.d.ts +105 -0
- package/dist/web-react/async/async-view.d.ts +69 -0
- package/dist/web-react/async/index.d.ts +13 -305
- package/dist/web-react/async/state.d.ts +107 -0
- package/dist/web-react/async/use-async-resource.d.ts +41 -0
- package/dist/web-react/async/use-confirmed-mutation.d.ts +90 -0
- package/dist/web-react/brand-mark.d.ts +11 -0
- package/dist/web-react/chat-attachments.d.ts +21 -0
- package/dist/web-react/chat-composer.d.ts +174 -0
- package/dist/web-react/chat-interactions.d.ts +1 -0
- package/dist/web-react/chat-mentions.d.ts +48 -0
- package/dist/web-react/chat-stream.d.ts +106 -0
- package/dist/web-react/class-names.d.ts +10 -0
- package/dist/web-react/controls.d.ts +265 -0
- package/dist/web-react/durable-chat-cards.d.ts +40 -0
- package/dist/web-react/durable-interaction-submit.d.ts +22 -0
- package/dist/web-react/durable-plan-card.d.ts +13 -0
- package/dist/web-react/durable-plan-flow.d.ts +77 -0
- package/dist/web-react/harness-glyphs.d.ts +28 -0
- package/dist/web-react/index.d.ts +80 -2347
- package/dist/web-react/inert.d.ts +39 -0
- package/dist/web-react/insight-card.d.ts +203 -0
- package/dist/web-react/interaction-card-support.d.ts +115 -0
- package/dist/web-react/interaction-plan-card.d.ts +39 -0
- package/dist/web-react/interaction-question-card.d.ts +100 -0
- package/dist/web-react/message-attachments.d.ts +56 -0
- package/dist/web-react/mission-activity.d.ts +96 -0
- package/dist/web-react/motion.d.ts +43 -0
- package/dist/web-react/provenance-model.d.ts +195 -0
- package/dist/web-react/provenance.d.ts +82 -0
- package/dist/web-react/provider-logo.d.ts +14 -0
- package/dist/web-react/record-grid-model.d.ts +257 -0
- package/dist/web-react/record-grid.d.ts +108 -0
- package/dist/web-react/sandbox-terminal.d.ts +90 -0
- package/dist/web-react/seat-paywall.d.ts +47 -0
- package/dist/web-react/session-history.d.ts +196 -0
- package/dist/web-react/smooth-text.d.ts +29 -0
- package/dist/web-react/sparkline.d.ts +150 -0
- package/dist/web-react/terminal.d.ts +1 -92
- package/dist/web-react/use-chat-interactions.d.ts +78 -0
- package/dist/web-react/use-composer-attachments.d.ts +111 -0
- package/dist/web-react/use-file-mentions.d.ts +94 -0
- package/dist/web-react/work-product.d.ts +105 -0
- package/dist/work-product/claim-support.d.ts +288 -0
- package/dist/work-product/index.d.ts +16 -849
- package/dist/work-product/provenance.d.ts +61 -0
- package/dist/{queue-VTBA5ONX.d.ts → work-product/queue.d.ts} +10 -12
- package/dist/work-product/quote.d.ts +139 -0
- package/dist/work-product/route.d.ts +88 -0
- package/dist/work-product/service.d.ts +123 -0
- package/dist/work-product/tools.d.ts +144 -0
- package/dist/{types-CCeYywdS.d.ts → work-product/types.d.ts} +29 -31
- package/dist/work-product-react/index.d.ts +19 -8
- package/dist/workspace-react/index.d.ts +8 -11
- package/package.json +5 -4
- package/dist/agent-session-controls-CmlXwp_H.d.ts +0 -384
- package/dist/apply-6wlMOLf8.d.ts +0 -280
- package/dist/attachment-validation-BfJDBU1g.d.ts +0 -261
- package/dist/budget-BOucfcb_.d.ts +0 -142
- package/dist/values-C7RidJuI.d.ts +0 -156
|
@@ -1,882 +1,22 @@
|
|
|
1
|
-
import { c as SequenceOperation, b as SequenceApplyResult } from '../apply-6wlMOLf8.js';
|
|
2
|
-
import { f as SequenceTimeline, g as SequenceClip, e as SequenceTrack } from '../store-B7LLlk9p.js';
|
|
3
|
-
import * as react from 'react';
|
|
4
|
-
import react__default from 'react';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
2
|
+
* React timeline-editor surface for the sequences module: engine/media/
|
|
3
|
+
* component seams (contracts), the command-stack editing engine, the media
|
|
4
|
+
* pipeline (frame provider, waveform, transcription), the editor components,
|
|
5
|
+
* and the code-split `React.lazy` entry.
|
|
11
6
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* committed command). */
|
|
29
|
-
inverseOperations(): SequenceOperation[];
|
|
30
|
-
}
|
|
31
|
-
/** Local editor state — the timeline plus volatile view state the server
|
|
32
|
-
* never sees. */
|
|
33
|
-
interface EditorTimelineState {
|
|
34
|
-
timeline: SequenceTimeline;
|
|
35
|
-
playheadFrame: number;
|
|
36
|
-
selectedClipIds: string[];
|
|
37
|
-
zoom: number;
|
|
38
|
-
scrollLeft: number;
|
|
39
|
-
}
|
|
40
|
-
/** Manage and track command execution with undo, redo, state subscription, and timeline reset capabilities */
|
|
41
|
-
interface CommandStack {
|
|
42
|
-
execute(command: TimelineCommand): void;
|
|
43
|
-
undo(): void;
|
|
44
|
-
redo(): void;
|
|
45
|
-
canUndo(): boolean;
|
|
46
|
-
canRedo(): boolean;
|
|
47
|
-
/** Subscribe to state changes; returns an unsubscribe. */
|
|
48
|
-
subscribe(listener: () => void): () => void;
|
|
49
|
-
getState(): EditorTimelineState;
|
|
50
|
-
/** Replace timeline state from a server refresh WITHOUT clearing history. */
|
|
51
|
-
reset(timeline: SequenceTimeline): void;
|
|
52
|
-
}
|
|
53
|
-
/** Exponential zoom mapping so the slider feels linear across a 10x+ range.
|
|
54
|
-
* zoom = pixels per frame. */
|
|
55
|
-
interface ZoomMath {
|
|
56
|
-
sliderToZoom(slider: number): number;
|
|
57
|
-
zoomToSlider(zoom: number): number;
|
|
58
|
-
minZoom: number;
|
|
59
|
-
maxZoom: number;
|
|
60
|
-
}
|
|
61
|
-
/** Define a point in a timeline where snapping occurs based on frame and kind */
|
|
62
|
-
interface SnapPoint {
|
|
63
|
-
frame: number;
|
|
64
|
-
kind: 'clip-start' | 'clip-end' | 'playhead' | 'sequence-end';
|
|
65
|
-
}
|
|
66
|
-
/** Describe the result of snapping a point to a frame including success status and snapped point details */
|
|
67
|
-
interface SnapResult {
|
|
68
|
-
frame: number;
|
|
69
|
-
snapped: boolean;
|
|
70
|
-
point: SnapPoint | null;
|
|
71
|
-
}
|
|
72
|
-
/** rAF-driven playback clock. `performance.now()` deltas drive the playhead;
|
|
73
|
-
* emits one callback per animation frame while playing. */
|
|
74
|
-
interface PlaybackClock {
|
|
75
|
-
play(): void;
|
|
76
|
-
pause(): void;
|
|
77
|
-
seek(frame: number): void;
|
|
78
|
-
isPlaying(): boolean;
|
|
79
|
-
getFrame(): number;
|
|
80
|
-
subscribe(listener: (frame: number) => void): () => void;
|
|
81
|
-
dispose(): void;
|
|
82
|
-
}
|
|
83
|
-
/** Supplies decoded frames for preview rendering. The baseline implementation
|
|
84
|
-
* seeks an off-DOM HTMLVideoElement (works everywhere); a WebCodecs
|
|
85
|
-
* implementation can replace it behind the same seam. */
|
|
86
|
-
interface VideoFrameProvider {
|
|
87
|
-
/** Draw the frame at `sourceSeconds` into `ctx` at the given rect. Resolves
|
|
88
|
-
* when the frame is painted; rejects when the media cannot be decoded. */
|
|
89
|
-
drawFrame(mediaUrl: string, sourceSeconds: number, ctx: CanvasRenderingContext2D, rect: {
|
|
90
|
-
x: number;
|
|
91
|
-
y: number;
|
|
92
|
-
width: number;
|
|
93
|
-
height: number;
|
|
94
|
-
}): Promise<void>;
|
|
95
|
-
/** Pre-warm a media URL so the first `drawFrame` doesn't stall. */
|
|
96
|
-
prefetch(mediaUrl: string): void;
|
|
97
|
-
dispose(): void;
|
|
98
|
-
}
|
|
99
|
-
/** min/max sample peaks per pixel bucket for waveform rendering. */
|
|
100
|
-
interface WaveformData {
|
|
101
|
-
peaks: Float32Array;
|
|
102
|
-
/** Samples represented per peak pair. */
|
|
103
|
-
samplesPerBucket: number;
|
|
104
|
-
durationSeconds: number;
|
|
105
|
-
}
|
|
106
|
-
/** Represent a segment of transcription with text and start and end times in seconds */
|
|
107
|
-
interface TranscriptionSegment {
|
|
108
|
-
text: string;
|
|
109
|
-
startSeconds: number;
|
|
110
|
-
endSeconds: number;
|
|
111
|
-
}
|
|
112
|
-
/** Whisper-in-a-worker contract. Implementations dynamically import the model
|
|
113
|
-
* runtime; `available` is false when the optional peer is not installed. */
|
|
114
|
-
interface TranscriptionProvider {
|
|
115
|
-
available: boolean;
|
|
116
|
-
transcribe(mediaUrl: string, opts?: {
|
|
117
|
-
language?: string;
|
|
118
|
-
onProgress?: (fraction: number) => void;
|
|
119
|
-
}): Promise<TranscriptionSegment[]>;
|
|
120
|
-
}
|
|
121
|
-
/** Overridable copy for the editor's product-facing labels. Every field is
|
|
122
|
-
* optional; the editor ships clear defaults (see `DEFAULT_TIMELINE_LABELS`).
|
|
123
|
-
* Accessible names (the `*AriaLabel` fields) stay descriptive for screen
|
|
124
|
-
* readers; the short visible labels carry the on-screen verb. Products rename
|
|
125
|
-
* per their own vocabulary without forking the component. */
|
|
126
|
-
interface TimelineEditorLabels {
|
|
127
|
-
/** Visible verb on the split-at-playhead tool. */
|
|
128
|
-
splitClip?: string;
|
|
129
|
-
splitClipAriaLabel?: string;
|
|
130
|
-
/** Visible verb on the add-caption-at-playhead tool. */
|
|
131
|
-
addCaption?: string;
|
|
132
|
-
addCaptionAriaLabel?: string;
|
|
133
|
-
/** Visible verb on the export action (rendered only when `onCreateExport`). */
|
|
134
|
-
createExport?: string;
|
|
135
|
-
/** Empty-state heading + the three doors. */
|
|
136
|
-
emptyTitle?: string;
|
|
137
|
-
emptyBody?: string;
|
|
138
|
-
emptyTemplateDoor?: string;
|
|
139
|
-
emptyClipDoor?: string;
|
|
140
|
-
emptyAgentDoor?: string;
|
|
141
|
-
/** Phone gate shown instead of the gesture-heavy editor below `sm`. */
|
|
142
|
-
smallScreenTitle?: string;
|
|
143
|
-
smallScreenBody?: string;
|
|
144
|
-
/** Ghost-lane names shown at rest so time reads as a timeline before any
|
|
145
|
-
* track exists. */
|
|
146
|
-
ghostVideoLane?: string;
|
|
147
|
-
ghostCaptionLane?: string;
|
|
148
|
-
}
|
|
149
|
-
/** Define properties and callbacks for editing and applying operations on a sequence timeline */
|
|
150
|
-
interface TimelineEditorProps {
|
|
151
|
-
timeline: SequenceTimeline;
|
|
152
|
-
canWrite: boolean;
|
|
153
|
-
/** Persist operations the user produced. Reject to roll the edit back.
|
|
154
|
-
* Resolve with the per-operation `SequenceApplyResult[]` (what
|
|
155
|
-
* `applySequenceOperations` returns, index-aligned with `operations`) so
|
|
156
|
-
* the editor can reconcile its optimistic `local-…` clip ids to the
|
|
157
|
-
* server-minted ids — without it, undoing a committed place/split/caption
|
|
158
|
-
* after a timeline refresh emits operations the server cannot resolve.
|
|
159
|
-
* Resolving void skips reconciliation. */
|
|
160
|
-
onApplyOperations(operations: SequenceOperation[]): Promise<SequenceApplyResult[] | void>;
|
|
161
|
-
/** Selection + playhead surface to the host (e.g. to attach agent context). */
|
|
162
|
-
onSelectionChange?(clips: SequenceClip[]): void;
|
|
163
|
-
onPlayheadChange?(frame: number): void;
|
|
164
|
-
/** Host-rendered side panel (agent chat) and shelf (draggable assets). */
|
|
165
|
-
renderSidePanel?(ctx: {
|
|
166
|
-
selectedClips: SequenceClip[];
|
|
167
|
-
playheadFrame: number;
|
|
168
|
-
}): React.ReactNode;
|
|
169
|
-
renderAssetShelf?(): React.ReactNode;
|
|
170
|
-
/** Frame provider override; omitted → the baseline HTMLVideoElement provider. */
|
|
171
|
-
frameProvider?: VideoFrameProvider;
|
|
172
|
-
/** Overridable product-facing copy; defaults are clear on their own. */
|
|
173
|
-
labels?: TimelineEditorLabels;
|
|
174
|
-
/** Empty-state doors. Supplying a handler renders that door; omitting it
|
|
175
|
-
* hides it. With none supplied the empty state shows guidance only. */
|
|
176
|
-
onStartFromTemplate?(): void;
|
|
177
|
-
onAddClip?(): void;
|
|
178
|
-
onAskAgent?(): void;
|
|
179
|
-
/** Render the export action (a toolbar "Export…" button). Omitted → no export
|
|
180
|
-
* affordance. The handler owns the dialog/flow; this surface only invokes it. */
|
|
181
|
-
onCreateExport?(): void;
|
|
182
|
-
/** Off by default. When true AND the consuming product supplies a branded
|
|
183
|
-
* export pipeline, the export door/button is marked as Tangle-branded. This
|
|
184
|
-
* surface has no render pipeline of its own to brand, so the flag is a
|
|
185
|
-
* forward-compatible hint to `onCreateExport`, never a baked watermark. */
|
|
186
|
-
brandedExport?: boolean;
|
|
187
|
-
className?: string;
|
|
188
|
-
}
|
|
189
|
-
/** Provide default labels and accessibility text for timeline editor UI elements */
|
|
190
|
-
declare const DEFAULT_TIMELINE_LABELS: Required<TimelineEditorLabels>;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Undo/redo command stack over immutable `EditorTimelineState`.
|
|
194
|
-
*
|
|
195
|
-
* Invariant that makes `reset()` safe: history entries hold COMMANDS — each a
|
|
196
|
-
* pair of state transforms plus the durable operations captured at
|
|
197
|
-
* construction — never state snapshots. Rebasing the timeline from a server
|
|
198
|
-
* refresh therefore cannot stale the history: a later undo re-applies the
|
|
199
|
-
* command's inverse transform to whatever timeline is current. If a rebase
|
|
200
|
-
* removed a clip a historical command targets, that command's transform throws
|
|
201
|
-
* (fail loud) rather than silently editing the wrong clip — the host decides
|
|
202
|
-
* whether to drop history at that point.
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
/** Oldest entries are dropped past this bound; redo is cleared on execute. */
|
|
206
|
-
declare const COMMAND_HISTORY_LIMIT = 200;
|
|
207
|
-
/** Create a command stack managing undo and redo operations for a given timeline */
|
|
208
|
-
declare function createCommandStack(initial: SequenceTimeline): CommandStack;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Concrete `TimelineCommand` factories. Every factory captures the inverse
|
|
212
|
-
* from PRE-state at construction — undo is a value computed once, never a
|
|
213
|
-
* re-derivation from whatever state exists later. Local execute/undo update
|
|
214
|
-
* `EditorTimelineState` immutably; `operations()`/`inverseOperations()` return
|
|
215
|
-
* the durable `SequenceOperation[]` equivalent, built per call from captured
|
|
216
|
-
* primitives so callers can never alias command internals.
|
|
217
|
-
*
|
|
218
|
-
* Id boundary: `place_clip`, `add_caption`, and `split_clip` mint clip ids
|
|
219
|
-
* server-side, so factories that create local clips take a caller-minted id.
|
|
220
|
-
* Every factory also takes an optional `resolveClipId` — a LIVE local→server
|
|
221
|
-
* alias lookup the host feeds from `onApplyOperations` results. Resolution
|
|
222
|
-
* runs at execute/undo/emission time (never at construction), so a command
|
|
223
|
-
* captured against an optimistic `local-…` id keeps working after a server
|
|
224
|
-
* refresh replaced it with the minted id. Residual boundary: clips a durable
|
|
225
|
-
* undo recreates (e.g. the `place_clip` inverse of a delete) mint FRESH
|
|
226
|
-
* server ids that only the next refresh reconciles.
|
|
227
|
-
*
|
|
228
|
-
* Transforms re-resolve their target clip at execute/undo time and throw when
|
|
229
|
-
* it no longer exists (e.g. removed by a `reset()` rebase) — editing a wrong
|
|
230
|
-
* or absent clip silently would corrupt the durable op stream.
|
|
231
|
-
*/
|
|
232
|
-
|
|
233
|
-
/** Live local→server clip-id lookup (see module header). Must return its
|
|
234
|
-
* argument when no alias exists. */
|
|
235
|
-
type ClipIdResolver = (clipId: string) => string;
|
|
236
|
-
/** Define input parameters to move a clip within a timeline including optional track and resolver */
|
|
237
|
-
interface MoveClipInput {
|
|
238
|
-
timeline: SequenceTimeline;
|
|
239
|
-
clipId: string;
|
|
240
|
-
startFrame: number;
|
|
241
|
-
/** Omitted → stays on its current track. */
|
|
242
|
-
trackId?: string;
|
|
243
|
-
resolveClipId?: ClipIdResolver;
|
|
244
|
-
}
|
|
245
|
-
/** Drag-move. The target start clamps through the model's `clampClipStart`
|
|
246
|
-
* so drags past either edge land at the boundary instead of throwing
|
|
247
|
-
* mid-gesture; the emitted operation carries the clamped value. */
|
|
248
|
-
declare function moveClipCommand(input: MoveClipInput): TimelineCommand;
|
|
249
|
-
/** Define input parameters for trimming a clip within a sequence timeline */
|
|
250
|
-
interface TrimClipInput {
|
|
251
|
-
timeline: SequenceTimeline;
|
|
252
|
-
clipId: string;
|
|
253
|
-
startFrame: number;
|
|
254
|
-
durationFrames: number;
|
|
255
|
-
/** New source in-point when trimming the head; omitted → unchanged. */
|
|
256
|
-
sourceInFrame?: number;
|
|
257
|
-
resolveClipId?: ClipIdResolver;
|
|
258
|
-
}
|
|
259
|
-
/** Trim is strict where move is forgiving: the caller (a trim handle) already
|
|
260
|
-
* knows both edges, so out-of-bounds input is a bug, not a gesture. */
|
|
261
|
-
declare function trimClipCommand(input: TrimClipInput): TimelineCommand;
|
|
262
|
-
/** Define input parameters required to place a clip within a sequence timeline */
|
|
263
|
-
interface PlaceClipInput {
|
|
264
|
-
timeline: SequenceTimeline;
|
|
265
|
-
/** Caller-minted optimistic id for the local clip (see module header). */
|
|
266
|
-
clipId: string;
|
|
267
|
-
trackId: string;
|
|
268
|
-
label: string;
|
|
269
|
-
startFrame: number;
|
|
270
|
-
durationFrames: number;
|
|
271
|
-
/** Omitted → 0 (start of the source). */
|
|
272
|
-
sourceInFrame?: number;
|
|
273
|
-
media?: {
|
|
274
|
-
url: string;
|
|
275
|
-
kind: 'video' | 'image' | 'audio';
|
|
276
|
-
};
|
|
277
|
-
generationId?: string;
|
|
278
|
-
assetId?: string;
|
|
279
|
-
metadata?: Record<string, unknown>;
|
|
280
|
-
resolveClipId?: ClipIdResolver;
|
|
281
|
-
}
|
|
282
|
-
/** Resolve and validate clip placement parameters to create a timeline command */
|
|
283
|
-
declare function placeClipCommand(input: PlaceClipInput): TimelineCommand;
|
|
284
|
-
/** Define input parameters required to delete a clip from a sequence timeline */
|
|
285
|
-
interface DeleteClipInput {
|
|
286
|
-
timeline: SequenceTimeline;
|
|
287
|
-
clipId: string;
|
|
288
|
-
resolveClipId?: ClipIdResolver;
|
|
289
|
-
}
|
|
290
|
-
/** Snapshots the full clip at construction so undo restores it exactly. The
|
|
291
|
-
* durable inverse rebuilds within the closed operation union: caption clips
|
|
292
|
-
* (caption track + text) invert through `add_caption` — `place_clip` cannot
|
|
293
|
-
* carry text/language — everything else through `place_clip` with media,
|
|
294
|
-
* product references, source window, and disabled state intact. Boundary:
|
|
295
|
-
* the caption path cannot carry `disabled` or `metadata`, so a deleted
|
|
296
|
-
* disabled caption resurrects ENABLED server-side and caption metadata is
|
|
297
|
-
* lost — local undo stays exact (same class of loss as the `set_clip_text`
|
|
298
|
-
* language-clear boundary). */
|
|
299
|
-
declare function deleteClipCommand(input: DeleteClipInput): TimelineCommand;
|
|
300
|
-
/** Define input parameters for splitting a clip at a specific frame within a timeline */
|
|
301
|
-
interface SplitClipInput {
|
|
302
|
-
timeline: SequenceTimeline;
|
|
303
|
-
clipId: string;
|
|
304
|
-
/** Sequence-frame to cut at; must fall strictly inside the clip. */
|
|
305
|
-
atFrame: number;
|
|
306
|
-
/** Caller-minted id for the second (tail) clip. */
|
|
307
|
-
newClipId: string;
|
|
308
|
-
resolveClipId?: ClipIdResolver;
|
|
309
|
-
}
|
|
310
|
-
/** Source mapping is 1:1 frames (no rate ramps in the model), so the tail's
|
|
311
|
-
* source in-point is the head's in-point advanced by the head duration. */
|
|
312
|
-
declare function splitClipCommand(input: SplitClipInput): TimelineCommand;
|
|
313
|
-
/** Define input parameters for adding a caption clip to a sequence timeline */
|
|
314
|
-
interface AddCaptionInput {
|
|
315
|
-
timeline: SequenceTimeline;
|
|
316
|
-
/** Caller-minted optimistic id for the local caption clip. */
|
|
317
|
-
clipId: string;
|
|
318
|
-
/** Editor commands are concrete: the caller resolves placement (e.g. via
|
|
319
|
-
* `chooseCaptionPlacement`) and the target track before constructing. */
|
|
320
|
-
trackId: string;
|
|
321
|
-
text: string;
|
|
322
|
-
language?: string;
|
|
323
|
-
startFrame: number;
|
|
324
|
-
durationFrames: number;
|
|
325
|
-
resolveClipId?: ClipIdResolver;
|
|
326
|
-
}
|
|
327
|
-
/** Resolve a command to add a caption to a specified caption track within a timeline */
|
|
328
|
-
declare function addCaptionCommand(input: AddCaptionInput): TimelineCommand;
|
|
329
|
-
/** Define input parameters for setting text and optional language on a specific clip in a timeline */
|
|
330
|
-
interface SetClipTextInput {
|
|
331
|
-
timeline: SequenceTimeline;
|
|
332
|
-
clipId: string;
|
|
333
|
-
text: string;
|
|
334
|
-
/** Omitted → language unchanged. */
|
|
335
|
-
language?: string;
|
|
336
|
-
resolveClipId?: ClipIdResolver;
|
|
337
|
-
}
|
|
338
|
-
/** Requires the clip to already carry text: `set_clip_text` has no "create"
|
|
339
|
-
* semantics in the union, and an inverse for a text-less clip would have to
|
|
340
|
-
* invent an empty string. Boundary: when the clip had NO language and this
|
|
341
|
-
* command sets one, local undo restores `undefined` exactly but the durable
|
|
342
|
-
* inverse cannot clear language (the op has no clear form) — flagged to the
|
|
343
|
-
* apply layer. */
|
|
344
|
-
declare function setClipTextCommand(input: SetClipTextInput): TimelineCommand;
|
|
345
|
-
/** Define input parameters to toggle the disabled state of a clip within a timeline */
|
|
346
|
-
interface ToggleClipDisabledInput {
|
|
347
|
-
timeline: SequenceTimeline;
|
|
348
|
-
clipId: string;
|
|
349
|
-
resolveClipId?: ClipIdResolver;
|
|
350
|
-
}
|
|
351
|
-
/** The target value is captured at construction (not flipped at execute time)
|
|
352
|
-
* so redo after a rebase applies the same durable op the stack already
|
|
353
|
-
* emitted. */
|
|
354
|
-
declare function toggleClipDisabledCommand(input: ToggleClipDisabledInput): TimelineCommand;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Zoom + viewport coordinate math. Zoom is PIXELS PER FRAME; the slider is a
|
|
358
|
-
* normalized [0, 1] control mapped exponentially (zoom = min·(max/min)^slider)
|
|
359
|
-
* so each slider step multiplies the scale by a constant factor — linear
|
|
360
|
-
* slider feel across a 10x+ range.
|
|
361
|
-
*/
|
|
362
|
-
|
|
363
|
-
/** Define configuration settings for minimum and maximum zoom levels */
|
|
364
|
-
interface ZoomMathConfig {
|
|
365
|
-
minZoom: number;
|
|
366
|
-
maxZoom: number;
|
|
367
|
-
}
|
|
368
|
-
/** Create a ZoomMath object that validates config and calculates zoom ratio within bounds */
|
|
369
|
-
declare function createZoomMath(config: ZoomMathConfig): ZoomMath;
|
|
370
|
-
/** Horizontal viewport: zoom in pixels per frame, scrollLeft in pixels. */
|
|
371
|
-
interface ViewportTransform {
|
|
372
|
-
zoom: number;
|
|
373
|
-
scrollLeft: number;
|
|
374
|
-
}
|
|
375
|
-
/** Frame → viewport-relative pixel x. Output is fractional; round through
|
|
376
|
-
* `snapPixel` before drawing. */
|
|
377
|
-
declare function frameToPixel(frame: number, view: ViewportTransform): number;
|
|
378
|
-
/** Viewport-relative pixel x → integer frame. Frames are integer positions,
|
|
379
|
-
* so the result rounds to the nearest frame and floors at 0 (a pointer left
|
|
380
|
-
* of frame 0 resolves to 0). */
|
|
381
|
-
declare function pixelToFrame(pixel: number, view: ViewportTransform): number;
|
|
382
|
-
/** Snap a CSS-pixel value to the device pixel grid so 1px timeline rules
|
|
383
|
-
* render crisp on fractional-DPR displays. */
|
|
384
|
-
declare function snapPixel(value: number, devicePixelRatio: number): number;
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Drag snapping. Snap points come from the timeline's structure (clip edges,
|
|
388
|
-
* playhead, sequence end); the snap THRESHOLD is measured in screen pixels at
|
|
389
|
-
* the current zoom — what feels "close" is a screen distance, not a frame
|
|
390
|
-
* count — and converts to frames as thresholdPx / zoom.
|
|
391
|
-
*/
|
|
392
|
-
|
|
393
|
-
/** Snap point with its owning clip when it came from one, so a drag can
|
|
394
|
-
* exclude the dragged clip's own edges. Structurally a `SnapPoint`. */
|
|
395
|
-
interface TimelineSnapPoint extends SnapPoint {
|
|
396
|
-
clipId?: string;
|
|
397
|
-
}
|
|
398
|
-
/** Disabled clips still occupy timeline space visually, so their edges remain
|
|
399
|
-
* snap targets. */
|
|
400
|
-
declare function collectSnapPoints(timeline: SequenceTimeline, playheadFrame: number): TimelineSnapPoint[];
|
|
401
|
-
/** Define options to configure snapping behavior including zoom, threshold, and exclusion criteria */
|
|
402
|
-
interface ApplySnapOptions {
|
|
403
|
-
/** Pixels per frame — converts the pixel threshold into frames. */
|
|
404
|
-
zoom: number;
|
|
405
|
-
/** Screen-distance threshold; 10px matches the editor's hit-slop. */
|
|
406
|
-
thresholdPx?: number;
|
|
407
|
-
/** Return true to remove a point from consideration (e.g. the dragged
|
|
408
|
-
* clip's own edges via `TimelineSnapPoint.clipId`). */
|
|
409
|
-
exclude?: (point: SnapPoint) => boolean;
|
|
410
|
-
}
|
|
411
|
-
/** Nearest candidate wins; ties keep the first candidate in `points` order
|
|
412
|
-
* (sorted by frame from `collectSnapPoints`, so the lower frame). */
|
|
413
|
-
declare function applySnap(frame: number, points: SnapPoint[], opts: ApplySnapOptions): SnapResult;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* rAF playback clock. The playhead is derived from a (start time, start
|
|
417
|
-
* frame) anchor and `performance.now()` deltas — never from per-tick
|
|
418
|
-
* increments — so dropped animation frames cannot accumulate drift.
|
|
419
|
-
*
|
|
420
|
-
* Browser-only at PLAY time, import-safe everywhere: `requestAnimationFrame`
|
|
421
|
-
* and `performance` are resolved off `globalThis` when playback starts, never
|
|
422
|
-
* at module load or construction, so server bundles that import the editor
|
|
423
|
-
* engine do not crash.
|
|
424
|
-
*/
|
|
425
|
-
|
|
426
|
-
/** Define configuration settings for playback clock including frames per second and total duration frames */
|
|
427
|
-
interface PlaybackClockConfig {
|
|
428
|
-
fps: number;
|
|
429
|
-
durationFrames: number;
|
|
430
|
-
}
|
|
431
|
-
/** Create a playback clock that manages frame timing and playback state based on configuration */
|
|
432
|
-
declare function createPlaybackClock(config: PlaybackClockConfig): PlaybackClock;
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Baseline frame pipeline behind the `VideoFrameProvider` seam: an off-DOM
|
|
436
|
-
* HTMLVideoElement pool for video URLs and an HTMLImageElement pool for
|
|
437
|
-
* stills, merged by a per-URL kind dispatcher so the editor canvas never
|
|
438
|
-
* cares which kind a clip's media is. A WebCodecs implementation can replace
|
|
439
|
-
* this wholesale behind the same seam.
|
|
440
|
-
*
|
|
441
|
-
* Server-safe at import time, browser-only at call time: nothing touches
|
|
442
|
-
* `document` or `fetch` until a provider method runs.
|
|
443
|
-
*/
|
|
444
|
-
|
|
445
|
-
/** Define the default maximum number of media elements allowed in a collection */
|
|
446
|
-
declare const DEFAULT_MAX_MEDIA_ELEMENTS = 4;
|
|
447
|
-
/** Half a frame at 30fps. Seeks closer than this repaint the decoder's
|
|
448
|
-
* current frame instead of forcing a redundant seek. */
|
|
449
|
-
declare const SEEK_TOLERANCE_SECONDS: number;
|
|
450
|
-
/** A seek that hasn't fired `seeked` after this long is a decode failure —
|
|
451
|
-
* the draw REJECTS rather than painting whatever frame happens to be up. */
|
|
452
|
-
declare const SEEK_TIMEOUT_MS = 5000;
|
|
453
|
-
/** Define a rectangular frame with position and size properties x, y, width, and height */
|
|
454
|
-
interface FrameRect {
|
|
455
|
-
x: number;
|
|
456
|
-
y: number;
|
|
457
|
-
width: number;
|
|
458
|
-
height: number;
|
|
459
|
-
}
|
|
460
|
-
/** Object-fit 'contain' placement: preserve aspect ratio, fit entirely inside
|
|
461
|
-
* `dest`, center the residual space. Callers own clearing the letterbox
|
|
462
|
-
* margins — this paints only the fitted region. */
|
|
463
|
-
declare function containFitRect(source: {
|
|
464
|
-
width: number;
|
|
465
|
-
height: number;
|
|
466
|
-
}, dest: FrameRect): FrameRect;
|
|
467
|
-
/** Determine if seeking is required based on the difference between current and target times */
|
|
468
|
-
declare function needsSeek(currentTimeSeconds: number, targetSeconds: number): boolean;
|
|
469
|
-
/** Manage a leased element from a pool and release it to enable LRU eviction */
|
|
470
|
-
interface PooledElementLease<T> {
|
|
471
|
-
element: T;
|
|
472
|
-
/** Unpins the element; idle elements become LRU-evictable. Idempotent. */
|
|
473
|
-
release(): void;
|
|
474
|
-
}
|
|
475
|
-
/** Manage a pool of media elements to acquire, check, count, and dispose resources efficiently */
|
|
476
|
-
interface MediaElementPool<T> {
|
|
477
|
-
acquire(url: string): PooledElementLease<T>;
|
|
478
|
-
has(url: string): boolean;
|
|
479
|
-
size(): number;
|
|
480
|
-
dispose(): void;
|
|
481
|
-
}
|
|
482
|
-
/** LRU pool of media elements keyed by URL. Entries pinned by an outstanding
|
|
483
|
-
* lease are never evicted — a draw in flight must keep its element — so the
|
|
484
|
-
* pool can temporarily exceed `maxElements` under concurrent draws and
|
|
485
|
-
* shrinks back as leases release. */
|
|
486
|
-
declare function createMediaElementPool<T>(opts: {
|
|
487
|
-
maxElements: number;
|
|
488
|
-
create(url: string): T;
|
|
489
|
-
destroy(element: T, url: string): void;
|
|
490
|
-
}): MediaElementPool<T>;
|
|
491
|
-
/** Extension-based kind classification; 'unknown' defers to a HEAD
|
|
492
|
-
* content-type probe at draw time. */
|
|
493
|
-
declare function classifyMediaUrl(url: string): 'video' | 'image' | 'unknown';
|
|
494
|
-
/** Stills behind the same `VideoFrameProvider` seam — `sourceSeconds` is
|
|
495
|
-
* validated for contract parity but does not affect the painted pixels. */
|
|
496
|
-
declare function createImageFrameProvider(opts?: {
|
|
497
|
-
maxElements?: number;
|
|
498
|
-
}): VideoFrameProvider;
|
|
499
|
-
/** The baseline provider `TimelineEditorProps.frameProvider` defaults to.
|
|
500
|
-
* Video and image pools each hold up to `maxElements` entries. */
|
|
501
|
-
declare function createVideoElementFrameProvider(opts?: {
|
|
502
|
-
maxElements?: number;
|
|
503
|
-
}): VideoFrameProvider;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Waveform rendering for audio clips: bucketed max-abs peaks computed once
|
|
507
|
-
* per (media, zoom bucket count) and painted as mirrored bars around the
|
|
508
|
-
* track lane's midline. `computeWaveform` is pure so peak math is testable
|
|
509
|
-
* without Web Audio; `loadWaveform` is the browser edge that decodes real
|
|
510
|
-
* media into it.
|
|
511
|
-
*/
|
|
512
|
-
|
|
513
|
-
/** Structural slice of Web Audio's AudioBuffer so peak math runs on synthetic
|
|
514
|
-
* fixtures in tests and on real decoded buffers in the browser. */
|
|
515
|
-
interface AudioBufferLike {
|
|
516
|
-
numberOfChannels: number;
|
|
517
|
-
length: number;
|
|
518
|
-
sampleRate: number;
|
|
519
|
-
duration: number;
|
|
520
|
-
getChannelData(channel: number): Float32Array;
|
|
521
|
-
}
|
|
522
|
-
/** One max-abs peak per bucket, taken across all channels. `peaks[b]` is the
|
|
523
|
-
* loudest absolute sample in bucket `b`; rendering mirrors it around the
|
|
524
|
-
* midline, which is what the contract's "peak pair" denotes. Buckets past
|
|
525
|
-
* the end of short audio hold 0. */
|
|
526
|
-
declare function computeWaveform(buffer: AudioBufferLike, bucketCount: number): WaveformData;
|
|
527
|
-
/** Fetch + decode `mediaUrl` and bucket it. Pass `ctx` to reuse a shared
|
|
528
|
-
* AudioContext; otherwise one is created and closed around the decode. */
|
|
529
|
-
declare function loadWaveform(mediaUrl: string, bucketCount: number, ctx?: AudioContext): Promise<WaveformData>;
|
|
530
|
-
/** Paint mirrored peak bars centered on the rect's midline. Silent buckets
|
|
531
|
-
* still paint a 1px hairline so the lane reads as audio, not as empty;
|
|
532
|
-
* peaks beyond ±1.0 (hot masters) clip to the full lane height. */
|
|
533
|
-
declare function drawWaveform(ctx: CanvasRenderingContext2D, data: WaveformData, rect: {
|
|
534
|
-
x: number;
|
|
535
|
-
y: number;
|
|
536
|
-
width: number;
|
|
537
|
-
height: number;
|
|
538
|
-
}, color: string): void;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Whisper transcription behind the `TranscriptionProvider` seam, powered by
|
|
542
|
-
* the OPTIONAL peer `@huggingface/transformers`. The peer is loaded with a
|
|
543
|
-
* dynamic variable-specifier import inside `transcribe()` so bundlers leave
|
|
544
|
-
* it external and apps that never transcribe never pay for it. `available`
|
|
545
|
-
* is the sync UI affordance signal; `transcribe()` re-verifies with the real
|
|
546
|
-
* import and is the source of truth.
|
|
547
|
-
*/
|
|
548
|
-
|
|
549
|
-
/** Provide the default Whisper model identifier for ONNX community large v3 turbo */
|
|
550
|
-
declare const DEFAULT_WHISPER_MODEL = "onnx-community/whisper-large-v3-turbo";
|
|
551
|
-
interface WhisperChunk {
|
|
552
|
-
text: string;
|
|
553
|
-
timestamp: [number, number | null];
|
|
554
|
-
}
|
|
555
|
-
/** Define the structure for transcribed text output with optional segmented chunks */
|
|
556
|
-
interface WhisperOutput {
|
|
557
|
-
text: string;
|
|
558
|
-
chunks?: WhisperChunk[];
|
|
559
|
-
}
|
|
560
|
-
/** Mean-mixdown to mono. Single-channel buffers return the live channel data
|
|
561
|
-
* without copying — callers must treat the result as read-only. */
|
|
562
|
-
declare function mixdownToMono(buffer: AudioBufferLike): Float32Array;
|
|
563
|
-
/** Map whisper chunk output to contract segments. A `null` end timestamp is
|
|
564
|
-
* whisper's "ran past the end of the audio" sentinel on the final chunk and
|
|
565
|
-
* resolves to the audio duration. */
|
|
566
|
-
declare function mapWhisperOutput(output: WhisperOutput | WhisperOutput[], durationSeconds: number, mediaUrl: string): TranscriptionSegment[];
|
|
567
|
-
/** Create a Whisper-based transcription provider with optional model configuration */
|
|
568
|
-
declare function createWhisperTranscriptionProvider(opts?: {
|
|
569
|
-
model?: string;
|
|
570
|
-
}): TranscriptionProvider;
|
|
571
|
-
|
|
572
|
-
declare const SEQUENCE_MEDIA_DRAG_TYPE = "application/x-sequence-media";
|
|
573
|
-
declare function TimelineEditor(props: TimelineEditorProps): react.JSX.Element;
|
|
574
|
-
|
|
575
|
-
interface PreviewCanvasProps {
|
|
576
|
-
timeline: SequenceTimeline;
|
|
577
|
-
clock: PlaybackClock;
|
|
578
|
-
frameProvider: VideoFrameProvider;
|
|
579
|
-
className?: string;
|
|
580
|
-
}
|
|
581
|
-
declare function PreviewCanvas({ timeline, clock, frameProvider, className }: PreviewCanvasProps): react.JSX.Element;
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Adaptive timecode ruler. Tick density follows zoom through
|
|
585
|
-
* `selectTickStepSeconds` (major ticks never closer than ~80px, minor ticks
|
|
586
|
-
* at a fifth of the major step when they'd sit at least 8px apart). Click or
|
|
587
|
-
* drag scrubs: the pointer is captured, every move quantizes to a whole frame,
|
|
588
|
-
* and the frame is committed through `onScrub` (the editor routes it to
|
|
589
|
-
* `PlaybackClock.seek`).
|
|
590
|
-
*/
|
|
591
|
-
interface TimelineRulerProps {
|
|
592
|
-
fps: number;
|
|
593
|
-
durationFrames: number;
|
|
594
|
-
/** Pixels per frame. */
|
|
595
|
-
zoom: number;
|
|
596
|
-
onScrub(frame: number): void;
|
|
597
|
-
}
|
|
598
|
-
declare function TimelineRuler({ fps, durationFrames, zoom, onScrub }: TimelineRulerProps): react.JSX.Element;
|
|
599
|
-
|
|
600
|
-
interface ClipMoveCommit {
|
|
601
|
-
clipId: string;
|
|
602
|
-
startFrame: number;
|
|
603
|
-
trackId: string;
|
|
604
|
-
}
|
|
605
|
-
interface ClipTrimCommit {
|
|
606
|
-
clipId: string;
|
|
607
|
-
startFrame: number;
|
|
608
|
-
durationFrames: number;
|
|
609
|
-
sourceInFrame: number;
|
|
610
|
-
}
|
|
611
|
-
interface TimelineClipChipProps {
|
|
612
|
-
clip: SequenceClip;
|
|
613
|
-
track: SequenceTrack;
|
|
614
|
-
fps: number;
|
|
615
|
-
/** Pixels per frame. */
|
|
616
|
-
zoom: number;
|
|
617
|
-
sequenceDurationFrames: number;
|
|
618
|
-
selected: boolean;
|
|
619
|
-
canWrite: boolean;
|
|
620
|
-
/** Roving-tabindex: exactly one chip per editor carries tabIndex 0 so the
|
|
621
|
-
* clip set is a single Tab stop; arrows move focus across the others. */
|
|
622
|
-
tabbable: boolean;
|
|
623
|
-
frameProvider: VideoFrameProvider;
|
|
624
|
-
/** Snap a candidate move (both clip edges considered); editor closes over
|
|
625
|
-
* the engine's snap points. */
|
|
626
|
-
snapMove(candidate: {
|
|
627
|
-
startFrame: number;
|
|
628
|
-
durationFrames: number;
|
|
629
|
-
clipId: string;
|
|
630
|
-
}): {
|
|
631
|
-
startFrame: number;
|
|
632
|
-
point: SnapPoint | null;
|
|
633
|
-
};
|
|
634
|
-
/** Snap a single trim edge. */
|
|
635
|
-
snapEdge(candidate: {
|
|
636
|
-
frame: number;
|
|
637
|
-
clipId: string;
|
|
638
|
-
}): {
|
|
639
|
-
frame: number;
|
|
640
|
-
point: SnapPoint | null;
|
|
641
|
-
};
|
|
642
|
-
onSnapPointChange(point: SnapPoint | null): void;
|
|
643
|
-
onSelect(clipId: string, additive: boolean): void;
|
|
644
|
-
/** Keyboard delete of the focused clip (one command on the stack), routed
|
|
645
|
-
* through the same locked-track guard as the transport Delete key. */
|
|
646
|
-
onRequestDelete(clipId: string): void;
|
|
647
|
-
/** Move keyboard focus to the previous/next clip in DOM order (roving
|
|
648
|
-
* tabindex); the editor owns the ordered chip set. */
|
|
649
|
-
onFocusStep(clipId: string, direction: -1 | 1): void;
|
|
650
|
-
onCommitMove(input: ClipMoveCommit): void;
|
|
651
|
-
onCommitTrim(input: ClipTrimCommit): void;
|
|
652
|
-
onCommitText(input: {
|
|
653
|
-
clipId: string;
|
|
654
|
-
text: string;
|
|
655
|
-
}): void;
|
|
656
|
-
}
|
|
657
|
-
declare function TimelineClipChip(props: TimelineClipChipProps): react.JSX.Element;
|
|
658
|
-
|
|
659
|
-
interface TimelineTrackRowProps {
|
|
660
|
-
track: SequenceTrack;
|
|
661
|
-
clips: SequenceClip[];
|
|
662
|
-
fps: number;
|
|
663
|
-
zoom: number;
|
|
664
|
-
sequenceDurationFrames: number;
|
|
665
|
-
selectedClipIds: ReadonlySet<string>;
|
|
666
|
-
/** The single clip that carries tabIndex 0 (roving tabindex); null seeds the
|
|
667
|
-
* first chip in the editor as the lone Tab stop. */
|
|
668
|
-
tabbableClipId: string | null;
|
|
669
|
-
canWrite: boolean;
|
|
670
|
-
frameProvider: VideoFrameProvider;
|
|
671
|
-
snapMove(candidate: {
|
|
672
|
-
startFrame: number;
|
|
673
|
-
durationFrames: number;
|
|
674
|
-
clipId: string;
|
|
675
|
-
}): {
|
|
676
|
-
startFrame: number;
|
|
677
|
-
point: SnapPoint | null;
|
|
678
|
-
};
|
|
679
|
-
snapEdge(candidate: {
|
|
680
|
-
frame: number;
|
|
681
|
-
clipId: string;
|
|
682
|
-
}): {
|
|
683
|
-
frame: number;
|
|
684
|
-
point: SnapPoint | null;
|
|
685
|
-
};
|
|
686
|
-
onSnapPointChange(point: SnapPoint | null): void;
|
|
687
|
-
onSelectClip(clipId: string, additive: boolean): void;
|
|
688
|
-
onRequestDeleteClip(clipId: string): void;
|
|
689
|
-
onFocusStepClip(clipId: string, direction: -1 | 1): void;
|
|
690
|
-
onCommitMove(input: ClipMoveCommit): void;
|
|
691
|
-
onCommitTrim(input: ClipTrimCommit): void;
|
|
692
|
-
onCommitText(input: {
|
|
693
|
-
clipId: string;
|
|
694
|
-
text: string;
|
|
695
|
-
}): void;
|
|
696
|
-
onLaneSeek(frame: number): void;
|
|
697
|
-
}
|
|
698
|
-
declare function TimelineTrackRow(props: TimelineTrackRowProps): react.JSX.Element;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Playhead overlay for the track area: a full-height line with a triangular
|
|
702
|
-
* cap. Positioned in timeline pixels (frame * zoom) inside the scrolled
|
|
703
|
-
* content, so it moves with horizontal scroll for free. Pointer-transparent —
|
|
704
|
-
* scrubbing belongs to the ruler.
|
|
705
|
-
*/
|
|
706
|
-
interface TimelinePlayheadProps {
|
|
707
|
-
frame: number;
|
|
708
|
-
zoom: number;
|
|
709
|
-
}
|
|
710
|
-
declare function TimelinePlayhead({ frame, zoom }: TimelinePlayheadProps): react.JSX.Element;
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* Load the canonical Tangle knot only when a sequence surface renders it.
|
|
714
|
-
* `/brand` imports the optional `@tangle-network/brand` peer, so a failed load
|
|
715
|
-
* renders a fixed-size spacer instead of crashing the editor.
|
|
716
|
-
*/
|
|
717
|
-
interface BrandMarkProps {
|
|
718
|
-
size: number;
|
|
719
|
-
className?: string;
|
|
720
|
-
}
|
|
721
|
-
declare function BrandMark({ size, className }: BrandMarkProps): react.JSX.Element;
|
|
722
|
-
|
|
723
|
-
interface TimelineEmptyStateProps {
|
|
724
|
-
labels?: TimelineEditorLabels;
|
|
725
|
-
brandedExport?: boolean;
|
|
726
|
-
onStartFromTemplate?(): void;
|
|
727
|
-
onAddClip?(): void;
|
|
728
|
-
onAskAgent?(): void;
|
|
729
|
-
}
|
|
730
|
-
declare function TimelineEmptyState(props: TimelineEmptyStateProps): react.JSX.Element;
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Labeled placeholder lanes drawn behind the empty state so the surface reads
|
|
734
|
-
* as a timeline before any track exists: a "Video" lane and a "Captions" lane
|
|
735
|
-
* with the same sticky header column the real `TimelineTrackRow` uses, sized to
|
|
736
|
-
* the timeline width so the ruler's timecodes line up over real lanes. Purely
|
|
737
|
-
* decorative — no clips, no gestures.
|
|
738
|
-
*/
|
|
739
|
-
interface TimelineGhostLanesProps {
|
|
740
|
-
/** Timeline pixel width (durationFrames * zoom), so ghost lanes match the ruler. */
|
|
741
|
-
laneWidth: number;
|
|
742
|
-
videoLabel: string;
|
|
743
|
-
captionLabel: string;
|
|
744
|
-
}
|
|
745
|
-
declare function TimelineGhostLanes({ laneWidth, videoLabel, captionLabel }: TimelineGhostLanesProps): react.JSX.Element;
|
|
746
|
-
|
|
747
|
-
interface TimelineSmallScreenGateProps {
|
|
748
|
-
labels?: TimelineEditorLabels;
|
|
749
|
-
}
|
|
750
|
-
declare function TimelineSmallScreenGate({ labels }: TimelineSmallScreenGateProps): react.JSX.Element;
|
|
751
|
-
|
|
752
|
-
interface SnapIndicatorLineProps {
|
|
753
|
-
point: SnapPoint | null;
|
|
754
|
-
zoom: number;
|
|
755
|
-
}
|
|
756
|
-
declare function SnapIndicatorLine({ point, zoom }: SnapIndicatorLineProps): react.JSX.Element | null;
|
|
757
|
-
|
|
758
|
-
interface ZoomControlProps {
|
|
759
|
-
zoomMath: ZoomMath;
|
|
760
|
-
zoom: number;
|
|
761
|
-
onZoomChange(zoom: number): void;
|
|
762
|
-
/** Fit-to-sequence pixels-per-frame; clicking the readout snaps back to it. */
|
|
763
|
-
fitZoom?: number;
|
|
764
|
-
}
|
|
765
|
-
declare function ZoomControl({ zoomMath, zoom, onZoomChange, fitZoom }: ZoomControlProps): react.JSX.Element;
|
|
766
|
-
|
|
767
|
-
/**
|
|
768
|
-
* Fuses several `TimelineCommand`s into one undo step so a single gesture
|
|
769
|
-
* (multi-select delete, drop that creates a track and places a clip) never
|
|
770
|
-
* fragments the history. Execute runs in order; undo runs in strict reverse so
|
|
771
|
-
* intermediate states reconstruct exactly.
|
|
772
|
-
*/
|
|
773
|
-
|
|
774
|
-
declare function compositeCommand(label: string, commands: TimelineCommand[]): TimelineCommand;
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* Pure pointer-gesture math for the timeline editor. Every drag/trim/scrub
|
|
778
|
-
* gesture quantizes through these functions so the interactive behavior is
|
|
779
|
-
* unit-testable without a DOM. All inputs/outputs are integer frames except
|
|
780
|
-
* pixel deltas and zoom (px per frame), which are the only float-valued edge.
|
|
781
|
-
*/
|
|
782
|
-
|
|
783
|
-
/** Quantize a horizontal pointer delta to whole frames at the current zoom. */
|
|
784
|
-
declare function framesFromPixelDelta(deltaX: number, zoom: number): number;
|
|
785
|
-
interface MoveDragInput {
|
|
786
|
-
originStartFrame: number;
|
|
787
|
-
durationFrames: number;
|
|
788
|
-
deltaFrames: number;
|
|
789
|
-
sequenceDurationFrames: number;
|
|
790
|
-
}
|
|
791
|
-
/** New start frame for a move drag, clamped so the clip stays fully inside
|
|
792
|
-
* the sequence. */
|
|
793
|
-
declare function moveDragStartFrame(input: MoveDragInput): number;
|
|
794
|
-
interface TrimStartDragInput {
|
|
795
|
-
originStartFrame: number;
|
|
796
|
-
originDurationFrames: number;
|
|
797
|
-
originSourceInFrame: number;
|
|
798
|
-
deltaFrames: number;
|
|
799
|
-
}
|
|
800
|
-
interface TrimStartDragResult {
|
|
801
|
-
startFrame: number;
|
|
802
|
-
durationFrames: number;
|
|
803
|
-
sourceInFrame: number;
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* Head trim: the clip END is invariant; start slides between two hard walls —
|
|
807
|
-
* it cannot reveal media before source frame 0 (sourceInFrame >= 0) and cannot
|
|
808
|
-
* pass within MIN_SEQUENCE_CLIP_FRAMES of the end. sourceInFrame shifts by
|
|
809
|
-
* exactly the start delta so the visible content stays anchored.
|
|
810
|
-
*/
|
|
811
|
-
declare function trimStartDrag(input: TrimStartDragInput): TrimStartDragResult;
|
|
812
|
-
interface TrimEndDragInput {
|
|
813
|
-
originStartFrame: number;
|
|
814
|
-
originDurationFrames: number;
|
|
815
|
-
sourceInFrame: number;
|
|
816
|
-
deltaFrames: number;
|
|
817
|
-
sequenceDurationFrames: number;
|
|
818
|
-
/** Natural source length in frames when known; bounds how far the tail can
|
|
819
|
-
* extend. Omit for stills and media of unknown length. */
|
|
820
|
-
sourceDurationFrames?: number;
|
|
821
|
-
}
|
|
822
|
-
/** Tail trim: start is invariant; duration is bounded below by the minimum
|
|
823
|
-
* clip length and above by both the sequence end and the remaining source
|
|
824
|
-
* material past the in-point. */
|
|
825
|
-
declare function trimEndDrag(input: TrimEndDragInput): {
|
|
826
|
-
durationFrames: number;
|
|
827
|
-
};
|
|
828
|
-
/**
|
|
829
|
-
* Smallest ruler step whose major ticks sit at least `minSpacingPx` apart at
|
|
830
|
-
* the current zoom; past the table it grows in whole minutes so labels never
|
|
831
|
-
* collide at extreme zoom-out.
|
|
832
|
-
*/
|
|
833
|
-
declare function selectTickStepSeconds(input: {
|
|
834
|
-
zoom: number;
|
|
835
|
-
fps: number;
|
|
836
|
-
minSpacingPx?: number;
|
|
837
|
-
}): number;
|
|
838
|
-
interface LetterboxRect {
|
|
839
|
-
x: number;
|
|
840
|
-
y: number;
|
|
841
|
-
width: number;
|
|
842
|
-
height: number;
|
|
843
|
-
}
|
|
844
|
-
/** Contain-fit a media aspect inside a container, centered with letterbox or
|
|
845
|
-
* pillarbox bars. */
|
|
846
|
-
declare function letterboxRect(input: {
|
|
847
|
-
containerWidth: number;
|
|
848
|
-
containerHeight: number;
|
|
849
|
-
mediaWidth: number;
|
|
850
|
-
mediaHeight: number;
|
|
851
|
-
}): LetterboxRect;
|
|
852
|
-
/** Caption type scales with the rendered frame, floored so captions stay
|
|
853
|
-
* legible on small previews. */
|
|
854
|
-
declare function captionFontPx(canvasCssHeight: number): number;
|
|
855
|
-
/** Pixel geometry for a clip chip; width floors at 2px so 1-frame clips stay
|
|
856
|
-
* grabbable. */
|
|
857
|
-
declare function clipChipGeometry(input: {
|
|
858
|
-
startFrame: number;
|
|
859
|
-
durationFrames: number;
|
|
860
|
-
zoom: number;
|
|
861
|
-
}): {
|
|
862
|
-
left: number;
|
|
863
|
-
width: number;
|
|
864
|
-
};
|
|
865
|
-
/**
|
|
866
|
-
* A move drag snaps whichever clip edge lands closest to a snap point: the
|
|
867
|
-
* start edge directly, or the end edge re-expressed as a start. An unsnapped
|
|
868
|
-
* candidate passes through unchanged.
|
|
869
|
-
*/
|
|
870
|
-
declare function chooseMoveSnap(input: {
|
|
871
|
-
candidateStartFrame: number;
|
|
872
|
-
durationFrames: number;
|
|
873
|
-
startSnap: SnapResult;
|
|
874
|
-
endSnap: SnapResult;
|
|
875
|
-
}): {
|
|
876
|
-
startFrame: number;
|
|
877
|
-
point: SnapPoint | null;
|
|
878
|
-
};
|
|
879
|
-
|
|
880
|
-
declare const SequenceTimelineEditorLazy: react__default.LazyExoticComponent<typeof TimelineEditor>;
|
|
881
|
-
|
|
882
|
-
export { type AddCaptionInput, type ApplySnapOptions, type AudioBufferLike, BrandMark, type BrandMarkProps, COMMAND_HISTORY_LIMIT, type ClipIdResolver, type ClipMoveCommit, type ClipTrimCommit, type CommandStack, DEFAULT_MAX_MEDIA_ELEMENTS, DEFAULT_TIMELINE_LABELS, DEFAULT_WHISPER_MODEL, type DeleteClipInput, type EditorTimelineState, type FrameRect, type LetterboxRect, type MediaElementPool, type MoveClipInput, type MoveDragInput, type PlaceClipInput, type PlaybackClock, type PlaybackClockConfig, type PooledElementLease, PreviewCanvas, type PreviewCanvasProps, SEEK_TIMEOUT_MS, SEEK_TOLERANCE_SECONDS, SEQUENCE_MEDIA_DRAG_TYPE, SequenceTimelineEditorLazy, type SetClipTextInput, SnapIndicatorLine, type SnapIndicatorLineProps, type SnapPoint, type SnapResult, type SplitClipInput, TimelineClipChip, type TimelineClipChipProps, type TimelineCommand, TimelineEditor, type TimelineEditorLabels, type TimelineEditorProps, TimelineEmptyState, type TimelineEmptyStateProps, TimelineGhostLanes, type TimelineGhostLanesProps, TimelinePlayhead, type TimelinePlayheadProps, TimelineRuler, type TimelineRulerProps, TimelineSmallScreenGate, type TimelineSmallScreenGateProps, type TimelineSnapPoint, TimelineTrackRow, type TimelineTrackRowProps, type ToggleClipDisabledInput, type TranscriptionProvider, type TranscriptionSegment, type TrimClipInput, type TrimEndDragInput, type TrimStartDragInput, type TrimStartDragResult, type VideoFrameProvider, type ViewportTransform, type WaveformData, type WhisperOutput, ZoomControl, type ZoomControlProps, type ZoomMath, type ZoomMathConfig, addCaptionCommand, applySnap, captionFontPx, chooseMoveSnap, classifyMediaUrl, clipChipGeometry, collectSnapPoints, compositeCommand, computeWaveform, containFitRect, createCommandStack, createImageFrameProvider, createMediaElementPool, createPlaybackClock, createVideoElementFrameProvider, createWhisperTranscriptionProvider, createZoomMath, deleteClipCommand, drawWaveform, frameToPixel, framesFromPixelDelta, letterboxRect, loadWaveform, mapWhisperOutput, mixdownToMono, moveClipCommand, moveDragStartFrame, needsSeek, pixelToFrame, placeClipCommand, selectTickStepSeconds, setClipTextCommand, snapPixel, splitClipCommand, toggleClipDisabledCommand, trimClipCommand, trimEndDrag, trimStartDrag };
|
|
7
|
+
* Never re-exported from the package root — react is an optional peer
|
|
8
|
+
* (the `web-react` precedent). Engine and media modules are import-safe in
|
|
9
|
+
* server bundles; DOM access begins only inside component render and
|
|
10
|
+
* provider/clock method calls.
|
|
11
|
+
*/
|
|
12
|
+
export * from './contracts';
|
|
13
|
+
export * from './engine/command-stack';
|
|
14
|
+
export * from './engine/commands';
|
|
15
|
+
export * from './engine/zoom';
|
|
16
|
+
export * from './engine/snap';
|
|
17
|
+
export * from './engine/playback';
|
|
18
|
+
export * from './media/frame-provider';
|
|
19
|
+
export * from './media/waveform';
|
|
20
|
+
export * from './media/transcription';
|
|
21
|
+
export * from './components/index';
|
|
22
|
+
export * from './lazy';
|