af-motion 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/LICENSE +201 -0
- package/README.md +203 -3
- package/RELEASE_NOTES.md +115 -0
- package/bin/af-motion.js +16 -0
- package/bin/mcp-server.js +21 -0
- package/dist/3d/adapter.d.ts +29 -0
- package/dist/3d/assets/cache.d.ts +71 -0
- package/dist/3d/assets/index.d.ts +10 -0
- package/dist/3d/assets/inspection.d.ts +19 -0
- package/dist/3d/assets/loaders.d.ts +30 -0
- package/dist/3d/assets/manager.d.ts +69 -0
- package/dist/3d/assets/scene-integration.d.ts +23 -0
- package/dist/3d/assets/types.d.ts +80 -0
- package/dist/3d/assets/validation.d.ts +12 -0
- package/dist/3d/camera/index.d.ts +7 -0
- package/dist/3d/camera/presets.d.ts +8 -0
- package/dist/3d/camera/transitions.d.ts +19 -0
- package/dist/3d/camera/types.d.ts +37 -0
- package/dist/3d/camera/validation.d.ts +9 -0
- package/dist/3d/capabilities.d.ts +11 -0
- package/dist/3d/composition/fallback.d.ts +20 -0
- package/dist/3d/composition/generation.d.ts +24 -0
- package/dist/3d/composition/index.d.ts +12 -0
- package/dist/3d/composition/quality.d.ts +35 -0
- package/dist/3d/composition/recipes.d.ts +34 -0
- package/dist/3d/composition/types.d.ts +88 -0
- package/dist/3d/composition/unified.d.ts +18 -0
- package/dist/3d/environment/index.d.ts +6 -0
- package/dist/3d/environment/presets.d.ts +8 -0
- package/dist/3d/environment/types.d.ts +36 -0
- package/dist/3d/environment/validation.d.ts +9 -0
- package/dist/3d/geometry/cache.d.ts +37 -0
- package/dist/3d/geometry/generators.d.ts +24 -0
- package/dist/3d/geometry/hash.d.ts +10 -0
- package/dist/3d/geometry/index.d.ts +9 -0
- package/dist/3d/geometry/three-adapter.d.ts +15 -0
- package/dist/3d/geometry/types.d.ts +120 -0
- package/dist/3d/geometry/validation.d.ts +6 -0
- package/dist/3d/index.d.ts +32 -0
- package/dist/3d/interaction/camera-controls.d.ts +58 -0
- package/dist/3d/interaction/index.d.ts +8 -0
- package/dist/3d/interaction/manager.d.ts +61 -0
- package/dist/3d/interaction/presets.d.ts +9 -0
- package/dist/3d/interaction/raycaster.d.ts +20 -0
- package/dist/3d/interaction/types.d.ts +78 -0
- package/dist/3d/lighting/index.d.ts +6 -0
- package/dist/3d/lighting/presets.d.ts +8 -0
- package/dist/3d/lighting/types.d.ts +31 -0
- package/dist/3d/lighting/validation.d.ts +17 -0
- package/dist/3d/materials/bridge.d.ts +11 -0
- package/dist/3d/materials/index.d.ts +7 -0
- package/dist/3d/materials/presets.d.ts +9 -0
- package/dist/3d/materials/types.d.ts +43 -0
- package/dist/3d/materials/validation.d.ts +9 -0
- package/dist/3d/morphing/animator.d.ts +19 -0
- package/dist/3d/morphing/correspondence.d.ts +32 -0
- package/dist/3d/morphing/geometry.d.ts +28 -0
- package/dist/3d/morphing/index.d.ts +16 -0
- package/dist/3d/morphing/interpolation.d.ts +45 -0
- package/dist/3d/morphing/morph.d.ts +18 -0
- package/dist/3d/morphing/presets.d.ts +31 -0
- package/dist/3d/morphing/react.d.ts +29 -0
- package/dist/3d/morphing/topology.d.ts +34 -0
- package/dist/3d/morphing/types.d.ts +138 -0
- package/dist/3d/morphing/validation.d.ts +19 -0
- package/dist/3d/optimization/analysis.d.ts +14 -0
- package/dist/3d/optimization/colliders.d.ts +16 -0
- package/dist/3d/optimization/geometry.d.ts +22 -0
- package/dist/3d/optimization/hierarchy.d.ts +14 -0
- package/dist/3d/optimization/index.d.ts +33 -0
- package/dist/3d/optimization/lod.d.ts +13 -0
- package/dist/3d/optimization/materials.d.ts +12 -0
- package/dist/3d/optimization/recommendations.d.ts +13 -0
- package/dist/3d/optimization/skeleton.d.ts +20 -0
- package/dist/3d/optimization/types.d.ts +252 -0
- package/dist/3d/physics/benchmark.d.ts +76 -0
- package/dist/3d/physics/body/inertia.d.ts +61 -0
- package/dist/3d/physics/collision/ccd.d.ts +26 -0
- package/dist/3d/physics/collision/narrowphase.d.ts +15 -0
- package/dist/3d/physics/collision/shapes.d.ts +45 -0
- package/dist/3d/physics/constraints/advanced.d.ts +40 -0
- package/dist/3d/physics/constraints/solver.d.ts +34 -0
- package/dist/3d/physics/constraints/types.d.ts +106 -0
- package/dist/3d/physics/events.d.ts +34 -0
- package/dist/3d/physics/index.d.ts +29 -0
- package/dist/3d/physics/material.d.ts +27 -0
- package/dist/3d/physics/math.d.ts +79 -0
- package/dist/3d/physics/soft/cloth.d.ts +12 -0
- package/dist/3d/physics/soft/collision.d.ts +12 -0
- package/dist/3d/physics/soft/gpu.d.ts +19 -0
- package/dist/3d/physics/soft/pbd.d.ts +20 -0
- package/dist/3d/physics/soft/rope.d.ts +16 -0
- package/dist/3d/physics/soft/soft-body.d.ts +12 -0
- package/dist/3d/physics/soft/types.d.ts +212 -0
- package/dist/3d/physics/solver/integrators.d.ts +25 -0
- package/dist/3d/physics/solver/types.d.ts +28 -0
- package/dist/3d/physics/spatial/spatial-hash.d.ts +51 -0
- package/dist/3d/physics/types.d.ts +579 -0
- package/dist/3d/physics/world.d.ts +106 -0
- package/dist/3d/r3f.d.ts +34 -0
- package/dist/3d/scene.d.ts +8 -0
- package/dist/3d/schema.d.ts +739 -0
- package/dist/3d/schemas/ai-integration.d.ts +201 -0
- package/dist/3d/schemas/correction.d.ts +11 -0
- package/dist/3d/schemas/index.d.ts +12 -0
- package/dist/3d/schemas/schemas.d.ts +361 -0
- package/dist/3d/schemas/serialization.d.ts +22 -0
- package/dist/3d/schemas/types.d.ts +199 -0
- package/dist/3d/schemas/validation.d.ts +33 -0
- package/dist/3d/scroll/controller.d.ts +32 -0
- package/dist/3d/scroll/index.d.ts +6 -0
- package/dist/3d/scroll/presets.d.ts +9 -0
- package/dist/3d/scroll/types.d.ts +53 -0
- package/dist/3d/terrain/biomes.d.ts +18 -0
- package/dist/3d/terrain/chunks.d.ts +20 -0
- package/dist/3d/terrain/erosion.d.ts +15 -0
- package/dist/3d/terrain/heightmap.d.ts +27 -0
- package/dist/3d/terrain/index.d.ts +18 -0
- package/dist/3d/terrain/materials.d.ts +20 -0
- package/dist/3d/terrain/noise.d.ts +25 -0
- package/dist/3d/terrain/physics.d.ts +34 -0
- package/dist/3d/terrain/terrain.d.ts +12 -0
- package/dist/3d/terrain/types.d.ts +235 -0
- package/dist/3d/terrain/vegetation.d.ts +14 -0
- package/dist/3d/types.d.ts +176 -0
- package/dist/3d/world/hydrology.d.ts +12 -0
- package/dist/3d/world/index.d.ts +15 -0
- package/dist/3d/world/lighting.d.ts +16 -0
- package/dist/3d/world/pipeline.d.ts +20 -0
- package/dist/3d/world/population.d.ts +12 -0
- package/dist/3d/world/presets.d.ts +11 -0
- package/dist/3d/world/streaming.d.ts +13 -0
- package/dist/3d/world/types.d.ts +272 -0
- package/dist/3d/world/world.d.ts +64 -0
- package/dist/backgrounds/advanced-gradient.d.ts +32 -0
- package/dist/backgrounds/atmospheric-backgrounds.d.ts +79 -0
- package/dist/backgrounds/aurora.d.ts +24 -0
- package/dist/backgrounds/cosmic-background.d.ts +31 -0
- package/dist/backgrounds/energy-effects.d.ts +78 -0
- package/dist/backgrounds/floating-orbs.d.ts +26 -0
- package/dist/backgrounds/fluid-backgrounds.d.ts +72 -0
- package/dist/backgrounds/geometric-backgrounds.d.ts +78 -0
- package/dist/backgrounds/gradient.d.ts +20 -0
- package/dist/backgrounds/grid.d.ts +22 -0
- package/dist/backgrounds/internal/canvas-lifecycle.d.ts +29 -0
- package/dist/backgrounds/noise.d.ts +20 -0
- package/dist/backgrounds/particle-background.d.ts +37 -0
- package/dist/backgrounds/particle-field.d.ts +22 -0
- package/dist/backgrounds/spotlight.d.ts +20 -0
- package/dist/backgrounds/wave.d.ts +22 -0
- package/dist/catalogue.d.ts +227 -0
- package/dist/catalogue.js +4 -0
- package/dist/chunks/catalogue-ZmbeEdRo.js +59850 -0
- package/dist/chunks/core-animation-CeiI_TEe.js +1394 -0
- package/dist/chunks/motion-choreography-DC6LWvDk.js +4089 -0
- package/dist/chunks/pointer-capture-lrnKAl2I.js +158 -0
- package/dist/chunks/safe-json-D5j34GEB.js +62 -0
- package/dist/chunks/scroll-velocity-BNUHaS0-.js +904 -0
- package/dist/cli/commands/doctor.d.ts +9 -0
- package/dist/cli/commands/example.d.ts +9 -0
- package/dist/cli/commands/info.d.ts +8 -0
- package/dist/cli/commands/init.d.ts +9 -0
- package/dist/cli/commands/presets.d.ts +10 -0
- package/dist/cli/commands/validate.d.ts +9 -0
- package/dist/cli/index.d.ts +22 -0
- package/dist/cli/types.d.ts +115 -0
- package/dist/cli/utils/safety.d.ts +11 -0
- package/dist/cli/utils/templates.d.ts +16 -0
- package/dist/cli/utils/terminal.d.ts +29 -0
- package/dist/cli.js +825 -0
- package/dist/core/adaptive-motion.d.ts +100 -0
- package/dist/core/adaptive-quality/controller.d.ts +61 -0
- package/dist/core/adaptive-quality/index.d.ts +13 -0
- package/dist/core/adaptive-quality/metrics.d.ts +33 -0
- package/dist/core/adaptive-quality/policies.d.ts +40 -0
- package/dist/core/adaptive-quality/profile.d.ts +58 -0
- package/dist/core/adaptive-quality/react.d.ts +57 -0
- package/dist/core/adaptive-quality/recommendation.d.ts +12 -0
- package/dist/core/adaptive-quality/resolution.d.ts +22 -0
- package/dist/core/adaptive-quality/types.d.ts +362 -0
- package/dist/core/advanced-motion/adapters.d.ts +20 -0
- package/dist/core/advanced-motion/controller.d.ts +52 -0
- package/dist/core/advanced-motion/index.d.ts +12 -0
- package/dist/core/advanced-motion/recipes.d.ts +16 -0
- package/dist/core/advanced-motion/timeline.d.ts +35 -0
- package/dist/core/advanced-motion/types.d.ts +174 -0
- package/dist/core/advanced-motion/validation.d.ts +11 -0
- package/dist/core/agent-workflows/agent-registry.d.ts +21 -0
- package/dist/core/agent-workflows/agents/accessibility-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/composition-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/design-to-motion-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/index.d.ts +13 -0
- package/dist/core/agent-workflows/agents/motion-intelligence-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/performance-agent.d.ts +9 -0
- package/dist/core/agent-workflows/agents/scene-generation-agent.d.ts +9 -0
- package/dist/core/agent-workflows/collaboration-planner.d.ts +38 -0
- package/dist/core/agent-workflows/collaboration-workflows.d.ts +83 -0
- package/dist/core/agent-workflows/communication.d.ts +29 -0
- package/dist/core/agent-workflows/conflict-resolver.d.ts +25 -0
- package/dist/core/agent-workflows/context.d.ts +36 -0
- package/dist/core/agent-workflows/execution-engine.d.ts +30 -0
- package/dist/core/agent-workflows/index.d.ts +20 -0
- package/dist/core/agent-workflows/orchestration-types.d.ts +144 -0
- package/dist/core/agent-workflows/orchestrator.d.ts +29 -0
- package/dist/core/agent-workflows/react.d.ts +71 -0
- package/dist/core/agent-workflows/shared-context.d.ts +36 -0
- package/dist/core/agent-workflows/task-planner.d.ts +42 -0
- package/dist/core/agent-workflows/templates.d.ts +14 -0
- package/dist/core/agent-workflows/tool-registry.d.ts +24 -0
- package/dist/core/agent-workflows/types.d.ts +167 -0
- package/dist/core/ai-ecosystem/capability-registry.d.ts +23 -0
- package/dist/core/ai-ecosystem/index.d.ts +13 -0
- package/dist/core/ai-ecosystem/pipeline.d.ts +19 -0
- package/dist/core/ai-ecosystem/provider.d.ts +19 -0
- package/dist/core/ai-ecosystem/types.d.ts +69 -0
- package/dist/core/ai-motion-intelligence/engine.d.ts +51 -0
- package/dist/core/ai-motion-intelligence/explanation-engine.d.ts +8 -0
- package/dist/core/ai-motion-intelligence/index.d.ts +15 -0
- package/dist/core/ai-motion-intelligence/intent-classifier.d.ts +14 -0
- package/dist/core/ai-motion-intelligence/knowledge-base.d.ts +12 -0
- package/dist/core/ai-motion-intelligence/provider.d.ts +31 -0
- package/dist/core/ai-motion-intelligence/quality-evaluator.d.ts +9 -0
- package/dist/core/ai-motion-intelligence/react.d.ts +14 -0
- package/dist/core/ai-motion-intelligence/recommendation-engine.d.ts +16 -0
- package/dist/core/ai-motion-intelligence/types.d.ts +134 -0
- package/dist/core/ai-motion-registry.d.ts +201 -0
- package/dist/core/animate.d.ts +57 -0
- package/dist/core/animation-intelligence/engine.d.ts +42 -0
- package/dist/core/animation-intelligence/index.d.ts +11 -0
- package/dist/core/animation-intelligence/intent.d.ts +15 -0
- package/dist/core/animation-intelligence/schema.d.ts +42 -0
- package/dist/core/animation-intelligence/scoring.d.ts +15 -0
- package/dist/core/animation-intelligence/types.d.ts +91 -0
- package/dist/core/animation-parallel.d.ts +37 -0
- package/dist/core/animation-presets.d.ts +56 -0
- package/dist/core/animation-sequence.d.ts +37 -0
- package/dist/core/animation-timeline.d.ts +46 -0
- package/dist/core/animation.d.ts +48 -0
- package/dist/core/built-in-palettes.d.ts +331 -0
- package/dist/core/choreography-intelligence/bridge.d.ts +43 -0
- package/dist/core/choreography-intelligence/generator.d.ts +11 -0
- package/dist/core/choreography-intelligence/index.d.ts +11 -0
- package/dist/core/choreography-intelligence/intent.d.ts +11 -0
- package/dist/core/choreography-intelligence/schema.d.ts +76 -0
- package/dist/core/choreography-intelligence/types.d.ts +87 -0
- package/dist/core/composition.d.ts +170 -0
- package/dist/core/configuration-corrector.d.ts +85 -0
- package/dist/core/design-intelligence.d.ts +199 -0
- package/dist/core/design-system.d.ts +206 -0
- package/dist/core/design-to-motion/design-analyzer.d.ts +13 -0
- package/dist/core/design-to-motion/engine.d.ts +34 -0
- package/dist/core/design-to-motion/generator.d.ts +16 -0
- package/dist/core/design-to-motion/index.d.ts +15 -0
- package/dist/core/design-to-motion/input-parser.d.ts +17 -0
- package/dist/core/design-to-motion/motion-planner.d.ts +11 -0
- package/dist/core/design-to-motion/presets.d.ts +11 -0
- package/dist/core/design-to-motion/react.d.ts +13 -0
- package/dist/core/design-to-motion/types.d.ts +221 -0
- package/dist/core/design-to-motion/validator.d.ts +13 -0
- package/dist/core/device-capabilities/classification.d.ts +25 -0
- package/dist/core/device-capabilities/detection.d.ts +27 -0
- package/dist/core/device-capabilities/graphics.d.ts +22 -0
- package/dist/core/device-capabilities/hardware.d.ts +27 -0
- package/dist/core/device-capabilities/index.d.ts +14 -0
- package/dist/core/device-capabilities/monitor.d.ts +19 -0
- package/dist/core/device-capabilities/react.d.ts +24 -0
- package/dist/core/device-capabilities/runtime.d.ts +11 -0
- package/dist/core/device-capabilities/scoring.d.ts +18 -0
- package/dist/core/device-capabilities/types.d.ts +171 -0
- package/dist/core/effect-composer.d.ts +41 -0
- package/dist/core/generation-pipeline.d.ts +135 -0
- package/dist/core/inertia.d.ts +30 -0
- package/dist/core/interactions/cursor-controller.d.ts +9 -0
- package/dist/core/interactions/custom-gestures.d.ts +28 -0
- package/dist/core/interactions/device-capabilities.d.ts +12 -0
- package/dist/core/interactions/drag-controller.d.ts +60 -0
- package/dist/core/interactions/errors.d.ts +13 -0
- package/dist/core/interactions/gesture-classifier.d.ts +43 -0
- package/dist/core/interactions/gesture-intelligence-controller.d.ts +9 -0
- package/dist/core/interactions/gesture-recognizers.d.ts +160 -0
- package/dist/core/interactions/gesture-sequence.d.ts +9 -0
- package/dist/core/interactions/index.d.ts +27 -0
- package/dist/core/interactions/input-normalizer.d.ts +8 -0
- package/dist/core/interactions/interaction-manager.d.ts +43 -0
- package/dist/core/interactions/keyboard-manager.d.ts +16 -0
- package/dist/core/interactions/magnetic-controller.d.ts +9 -0
- package/dist/core/interactions/magnetic-group.d.ts +11 -0
- package/dist/core/interactions/multitouch-controller.d.ts +62 -0
- package/dist/core/interactions/pointer-controller.d.ts +34 -0
- package/dist/core/interactions/pointer-tracker.d.ts +32 -0
- package/dist/core/interactions/prioritizer.d.ts +17 -0
- package/dist/core/interactions/touch-controller.d.ts +35 -0
- package/dist/core/interactions/types.d.ts +710 -0
- package/dist/core/layout/controller.d.ts +56 -0
- package/dist/core/layout/flip.d.ts +21 -0
- package/dist/core/layout/group.d.ts +46 -0
- package/dist/core/layout/index.d.ts +12 -0
- package/dist/core/layout/measure.d.ts +30 -0
- package/dist/core/layout/presets.d.ts +24 -0
- package/dist/core/layout/types.d.ts +189 -0
- package/dist/core/microinteractions/generator.d.ts +11 -0
- package/dist/core/microinteractions/index.d.ts +11 -0
- package/dist/core/microinteractions/intent.d.ts +11 -0
- package/dist/core/microinteractions/runtime.d.ts +25 -0
- package/dist/core/microinteractions/schema.d.ts +82 -0
- package/dist/core/microinteractions/types.d.ts +79 -0
- package/dist/core/motion-choreography.d.ts +163 -0
- package/dist/core/motion-dna.d.ts +129 -0
- package/dist/core/motion-path/animator.d.ts +13 -0
- package/dist/core/motion-path/engine.d.ts +27 -0
- package/dist/core/motion-path/follower.d.ts +8 -0
- package/dist/core/motion-path/index.d.ts +15 -0
- package/dist/core/motion-path/lut.d.ts +33 -0
- package/dist/core/motion-path/parser.d.ts +26 -0
- package/dist/core/motion-path/segments.d.ts +16 -0
- package/dist/core/motion-path/types.d.ts +178 -0
- package/dist/core/motion-path/vector3.d.ts +49 -0
- package/dist/core/motion-recipe.d.ts +171 -0
- package/dist/core/motion-states.d.ts +43 -0
- package/dist/core/motion-validation/consistency.d.ts +11 -0
- package/dist/core/motion-validation/index.d.ts +11 -0
- package/dist/core/motion-validation/optimizer.d.ts +11 -0
- package/dist/core/motion-validation/schema.d.ts +81 -0
- package/dist/core/motion-validation/types.d.ts +53 -0
- package/dist/core/motion-validation/validator.d.ts +11 -0
- package/dist/core/motion.d.ts +7 -0
- package/dist/core/natural-motion.d.ts +110 -0
- package/dist/core/palette-colors.d.ts +16 -0
- package/dist/core/palette-styles.d.ts +12 -0
- package/dist/core/palettes.d.ts +59 -0
- package/dist/core/performance-intelligence/conflicts.d.ts +21 -0
- package/dist/core/performance-intelligence/context.d.ts +48 -0
- package/dist/core/performance-intelligence/coordinator.d.ts +84 -0
- package/dist/core/performance-intelligence/decisions.d.ts +17 -0
- package/dist/core/performance-intelligence/history.d.ts +44 -0
- package/dist/core/performance-intelligence/index.d.ts +15 -0
- package/dist/core/performance-intelligence/policies.d.ts +59 -0
- package/dist/core/performance-intelligence/react.d.ts +78 -0
- package/dist/core/performance-intelligence/report.d.ts +16 -0
- package/dist/core/performance-intelligence/scoring.d.ts +16 -0
- package/dist/core/performance-intelligence/types.d.ts +203 -0
- package/dist/core/performance-optimizer/bottlenecks.d.ts +9 -0
- package/dist/core/performance-optimizer/index.d.ts +13 -0
- package/dist/core/performance-optimizer/optimizer.d.ts +43 -0
- package/dist/core/performance-optimizer/profiler.d.ts +38 -0
- package/dist/core/performance-optimizer/react.d.ts +55 -0
- package/dist/core/performance-optimizer/strategies.d.ts +22 -0
- package/dist/core/performance-optimizer/types.d.ts +227 -0
- package/dist/core/performance-optimizer/workers.d.ts +27 -0
- package/dist/core/physics/collision-constraints.d.ts +15 -0
- package/dist/core/physics/collision-detection.d.ts +93 -0
- package/dist/core/physics/collision-response.d.ts +24 -0
- package/dist/core/physics/collision-types.d.ts +381 -0
- package/dist/core/physics/collision-world.d.ts +11 -0
- package/dist/core/physics/composition-behaviors.d.ts +97 -0
- package/dist/core/physics/composition-choreography.d.ts +14 -0
- package/dist/core/physics/composition-engine.d.ts +25 -0
- package/dist/core/physics/composition-recipes.d.ts +46 -0
- package/dist/core/physics/composition-types.d.ts +265 -0
- package/dist/core/physics/composition-validation.d.ts +33 -0
- package/dist/core/physics/index.d.ts +37 -0
- package/dist/core/physics/inertia-animation.d.ts +11 -0
- package/dist/core/physics/inertia-math.d.ts +56 -0
- package/dist/core/physics/inertia-presets.d.ts +25 -0
- package/dist/core/physics/inertia-simulation.d.ts +11 -0
- package/dist/core/physics/inertia-types.d.ts +355 -0
- package/dist/core/physics/inertia-validation.d.ts +22 -0
- package/dist/core/physics/math.d.ts +99 -0
- package/dist/core/physics/presets.d.ts +28 -0
- package/dist/core/physics/simulation.d.ts +11 -0
- package/dist/core/physics/spring-animation.d.ts +11 -0
- package/dist/core/physics/spring-math.d.ts +47 -0
- package/dist/core/physics/spring-presets.d.ts +29 -0
- package/dist/core/physics/spring-simulation.d.ts +11 -0
- package/dist/core/physics/spring-types.d.ts +350 -0
- package/dist/core/physics/spring-validation.d.ts +22 -0
- package/dist/core/physics/stepper.d.ts +24 -0
- package/dist/core/physics/types.d.ts +280 -0
- package/dist/core/physics/validation.d.ts +62 -0
- package/dist/core/pointer-capture.d.ts +7 -0
- package/dist/core/reference-analysis/index.d.ts +10 -0
- package/dist/core/reference-analysis/interpreter.d.ts +12 -0
- package/dist/core/reference-analysis/planner.d.ts +15 -0
- package/dist/core/reference-analysis/specification.d.ts +14 -0
- package/dist/core/reference-analysis/types.d.ts +244 -0
- package/dist/core/resource-intelligence/cache.d.ts +43 -0
- package/dist/core/resource-intelligence/gpu.d.ts +19 -0
- package/dist/core/resource-intelligence/index.d.ts +16 -0
- package/dist/core/resource-intelligence/leaks.d.ts +13 -0
- package/dist/core/resource-intelligence/memory.d.ts +27 -0
- package/dist/core/resource-intelligence/pooling.d.ts +32 -0
- package/dist/core/resource-intelligence/pressure.d.ts +32 -0
- package/dist/core/resource-intelligence/react.d.ts +63 -0
- package/dist/core/resource-intelligence/registry.d.ts +33 -0
- package/dist/core/resource-intelligence/reports.d.ts +14 -0
- package/dist/core/resource-intelligence/types.d.ts +232 -0
- package/dist/core/scene-generation/engine.d.ts +31 -0
- package/dist/core/scene-generation/generator.d.ts +14 -0
- package/dist/core/scene-generation/index.d.ts +14 -0
- package/dist/core/scene-generation/input-parser.d.ts +24 -0
- package/dist/core/scene-generation/presets.d.ts +10 -0
- package/dist/core/scene-generation/react.d.ts +13 -0
- package/dist/core/scene-generation/scene-analyzer.d.ts +9 -0
- package/dist/core/scene-generation/scene-planner.d.ts +12 -0
- package/dist/core/scene-generation/types.d.ts +236 -0
- package/dist/core/scene-generation/validator.d.ts +18 -0
- package/dist/core/schema.d.ts +185 -0
- package/dist/core/scroll-intelligence/generator.d.ts +11 -0
- package/dist/core/scroll-intelligence/index.d.ts +11 -0
- package/dist/core/scroll-intelligence/intent.d.ts +11 -0
- package/dist/core/scroll-intelligence/runtime.d.ts +21 -0
- package/dist/core/scroll-intelligence/schema.d.ts +78 -0
- package/dist/core/scroll-intelligence/types.d.ts +85 -0
- package/dist/core/spring.d.ts +38 -0
- package/dist/core/svg-morph/animator.d.ts +10 -0
- package/dist/core/svg-morph/arc-to-cubic.d.ts +11 -0
- package/dist/core/svg-morph/index.d.ts +10 -0
- package/dist/core/svg-morph/interpolate.d.ts +23 -0
- package/dist/core/svg-morph/normalize.d.ts +34 -0
- package/dist/core/svg-morph/parser.d.ts +13 -0
- package/dist/core/svg-morph/shapes.d.ts +32 -0
- package/dist/core/svg-morph/types.d.ts +144 -0
- package/dist/core/transform.d.ts +27 -0
- package/dist/core/transitions/controller.d.ts +45 -0
- package/dist/core/transitions/engine.d.ts +26 -0
- package/dist/core/transitions/group-transition.d.ts +30 -0
- package/dist/core/transitions/index.d.ts +15 -0
- package/dist/core/transitions/presets.d.ts +16 -0
- package/dist/core/transitions/schema.d.ts +71 -0
- package/dist/core/transitions/shared-element-transition.d.ts +88 -0
- package/dist/core/transitions/shared-element.d.ts +84 -0
- package/dist/core/transitions/types.d.ts +185 -0
- package/dist/core/transitions/view-transition.d.ts +25 -0
- package/dist/core/typography/engine.d.ts +19 -0
- package/dist/core/typography/index.d.ts +15 -0
- package/dist/core/typography/path-motion.d.ts +24 -0
- package/dist/core/typography/presets.d.ts +14 -0
- package/dist/core/typography/properties.d.ts +19 -0
- package/dist/core/typography/segmenter.d.ts +32 -0
- package/dist/core/typography/stagger.d.ts +15 -0
- package/dist/core/typography/transitions.d.ts +11 -0
- package/dist/core/typography/types.d.ts +154 -0
- package/dist/core/utils/safe-json.d.ts +50 -0
- package/dist/core/visual-style-registry.d.ts +659 -0
- package/dist/easing/easings.d.ts +44 -0
- package/dist/effects/border-beam.d.ts +28 -0
- package/dist/effects/count-up.d.ts +30 -0
- package/dist/effects/cursor-trail.d.ts +23 -0
- package/dist/effects/drag.d.ts +41 -0
- package/dist/effects/draw-svg.d.ts +19 -0
- package/dist/effects/follow-pointer.d.ts +19 -0
- package/dist/effects/glow.d.ts +25 -0
- package/dist/effects/gradient-text.d.ts +22 -0
- package/dist/effects/hover-motion.d.ts +32 -0
- package/dist/effects/in-view.d.ts +14 -0
- package/dist/effects/magnetic.d.ts +40 -0
- package/dist/effects/morph-svg.d.ts +15 -0
- package/dist/effects/parallax.d.ts +42 -0
- package/dist/effects/pinch.d.ts +27 -0
- package/dist/effects/reveal.d.ts +33 -0
- package/dist/effects/ripple.d.ts +21 -0
- package/dist/effects/scroll-animate.d.ts +23 -0
- package/dist/effects/scroll-direction.d.ts +19 -0
- package/dist/effects/scroll-progress.d.ts +29 -0
- package/dist/effects/scroll-trigger.d.ts +22 -0
- package/dist/effects/scroll-velocity.d.ts +29 -0
- package/dist/effects/shine.d.ts +23 -0
- package/dist/effects/split-text.d.ts +17 -0
- package/dist/effects/spotlight.d.ts +24 -0
- package/dist/effects/stagger.d.ts +46 -0
- package/dist/effects/swipe.d.ts +27 -0
- package/dist/effects/text-highlight.d.ts +25 -0
- package/dist/effects/text-mask.d.ts +25 -0
- package/dist/effects/text-reveal.d.ts +28 -0
- package/dist/effects/text-scramble.d.ts +18 -0
- package/dist/effects/tilt.d.ts +42 -0
- package/dist/effects/typewriter.d.ts +26 -0
- package/dist/graphics/capabilities.d.ts +12 -0
- package/dist/graphics/composition/engine.d.ts +14 -0
- package/dist/graphics/composition/fallback.d.ts +13 -0
- package/dist/graphics/composition/index.d.ts +10 -0
- package/dist/graphics/composition/ordering.d.ts +29 -0
- package/dist/graphics/composition/quality.d.ts +24 -0
- package/dist/graphics/composition/schema.d.ts +156 -0
- package/dist/graphics/composition/types.d.ts +81 -0
- package/dist/graphics/composition/unified.d.ts +23 -0
- package/dist/graphics/effects/advanced/engine.d.ts +9 -0
- package/dist/graphics/effects/advanced/index.d.ts +1 -0
- package/dist/graphics/effects/composer.d.ts +9 -0
- package/dist/graphics/effects/distortion/engine.d.ts +9 -0
- package/dist/graphics/effects/distortion/index.d.ts +1 -0
- package/dist/graphics/effects/fluid/engine.d.ts +9 -0
- package/dist/graphics/effects/fluid/index.d.ts +1 -0
- package/dist/graphics/effects/index.d.ts +10 -0
- package/dist/graphics/effects/particles/engine.d.ts +9 -0
- package/dist/graphics/effects/particles/index.d.ts +2 -0
- package/dist/graphics/effects/particles/pool.d.ts +17 -0
- package/dist/graphics/effects/schema.d.ts +312 -0
- package/dist/graphics/effects/types.d.ts +85 -0
- package/dist/graphics/engine.d.ts +5 -0
- package/dist/graphics/environment/clouds.d.ts +28 -0
- package/dist/graphics/environment/environment.d.ts +50 -0
- package/dist/graphics/environment/fire-smoke.d.ts +32 -0
- package/dist/graphics/environment/fog.d.ts +28 -0
- package/dist/graphics/environment/index.d.ts +18 -0
- package/dist/graphics/environment/lightning.d.ts +33 -0
- package/dist/graphics/environment/rain.d.ts +33 -0
- package/dist/graphics/environment/snow.d.ts +30 -0
- package/dist/graphics/environment/types.d.ts +184 -0
- package/dist/graphics/environment/weather.d.ts +19 -0
- package/dist/graphics/environment/wind.d.ts +23 -0
- package/dist/graphics/fluid/flow-field.d.ts +74 -0
- package/dist/graphics/fluid/grid.d.ts +43 -0
- package/dist/graphics/fluid/index.d.ts +13 -0
- package/dist/graphics/fluid/interactions.d.ts +39 -0
- package/dist/graphics/fluid/rendering.d.ts +32 -0
- package/dist/graphics/fluid/simulation.d.ts +50 -0
- package/dist/graphics/fluid/solver.d.ts +19 -0
- package/dist/graphics/fluid/types.d.ts +186 -0
- package/dist/graphics/gpu-simulation/backends/backend.d.ts +24 -0
- package/dist/graphics/gpu-simulation/backends/cpu.d.ts +21 -0
- package/dist/graphics/gpu-simulation/backends/selection.d.ts +15 -0
- package/dist/graphics/gpu-simulation/backends/webgl2.d.ts +28 -0
- package/dist/graphics/gpu-simulation/backends/webgpu.d.ts +23 -0
- package/dist/graphics/gpu-simulation/capabilities.d.ts +14 -0
- package/dist/graphics/gpu-simulation/device.d.ts +17 -0
- package/dist/graphics/gpu-simulation/engine.d.ts +8 -0
- package/dist/graphics/gpu-simulation/index.d.ts +22 -0
- package/dist/graphics/gpu-simulation/ping-pong.d.ts +23 -0
- package/dist/graphics/gpu-simulation/pipeline.d.ts +18 -0
- package/dist/graphics/gpu-simulation/resource-manager.d.ts +8 -0
- package/dist/graphics/gpu-simulation/shaders.d.ts +50 -0
- package/dist/graphics/gpu-simulation/types.d.ts +288 -0
- package/dist/graphics/index.d.ts +23 -0
- package/dist/graphics/materials/glass.d.ts +22 -0
- package/dist/graphics/materials/index.d.ts +9 -0
- package/dist/graphics/materials/lighting.d.ts +22 -0
- package/dist/graphics/materials/presets.d.ts +28 -0
- package/dist/graphics/materials/schema.d.ts +574 -0
- package/dist/graphics/materials/surface.d.ts +13 -0
- package/dist/graphics/materials/types.d.ts +150 -0
- package/dist/graphics/particle-fields/composition.d.ts +32 -0
- package/dist/graphics/particle-fields/forces.d.ts +103 -0
- package/dist/graphics/particle-fields/index.d.ts +12 -0
- package/dist/graphics/particle-fields/interaction.d.ts +32 -0
- package/dist/graphics/particle-fields/spatial-index.d.ts +20 -0
- package/dist/graphics/particle-fields/system.d.ts +52 -0
- package/dist/graphics/particle-fields/types.d.ts +138 -0
- package/dist/graphics/particles/behaviors.d.ts +11 -0
- package/dist/graphics/particles/controller.d.ts +82 -0
- package/dist/graphics/particles/data-layout.d.ts +51 -0
- package/dist/graphics/particles/emitters.d.ts +24 -0
- package/dist/graphics/particles/index.d.ts +15 -0
- package/dist/graphics/particles/random.d.ts +25 -0
- package/dist/graphics/particles/rendering.d.ts +16 -0
- package/dist/graphics/particles/simulation.d.ts +23 -0
- package/dist/graphics/particles/types.d.ts +282 -0
- package/dist/graphics/renderer.d.ts +66 -0
- package/dist/graphics/resource-manager.d.ts +6 -0
- package/dist/graphics/schema.d.ts +177 -0
- package/dist/graphics/simulation/adapters.d.ts +36 -0
- package/dist/graphics/simulation/coordinator.d.ts +64 -0
- package/dist/graphics/simulation/index.d.ts +11 -0
- package/dist/graphics/simulation/optimizer.d.ts +101 -0
- package/dist/graphics/simulation/resource-manager.d.ts +40 -0
- package/dist/graphics/simulation/types.d.ts +126 -0
- package/dist/graphics/textures/cache.d.ts +29 -0
- package/dist/graphics/textures/canvas-utils.d.ts +31 -0
- package/dist/graphics/textures/engine.d.ts +34 -0
- package/dist/graphics/textures/generators.d.ts +29 -0
- package/dist/graphics/textures/index.d.ts +11 -0
- package/dist/graphics/textures/material-integration.d.ts +20 -0
- package/dist/graphics/textures/prng.d.ts +27 -0
- package/dist/graphics/textures/schema.d.ts +219 -0
- package/dist/graphics/textures/types.d.ts +80 -0
- package/dist/graphics/types.d.ts +152 -0
- package/dist/graphics/viewport.d.ts +32 -0
- package/dist/index.d.ts +132 -0
- package/dist/index.js +4921 -0
- package/dist/mcp/index.d.ts +12 -0
- package/dist/mcp/prompts.d.ts +9 -0
- package/dist/mcp/resources.d.ts +9 -0
- package/dist/mcp/server.d.ts +29 -0
- package/dist/mcp/tools.d.ts +9 -0
- package/dist/mcp/transport.d.ts +33 -0
- package/dist/mcp/types.d.ts +96 -0
- package/dist/presets.d.ts +176 -0
- package/dist/presets.js +3 -0
- package/dist/react.d.ts +5358 -0
- package/dist/react.js +7557 -0
- package/package.json +112 -6
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion Advanced Composition Validation & Dependency Analysis
|
|
3
|
+
*
|
|
4
|
+
* Validates composition syntax, timing constraints, dependency completeness,
|
|
5
|
+
* and detects circular dependency graphs using Depth-First Search (DFS).
|
|
6
|
+
*/
|
|
7
|
+
import type { AdvancedMotionCompositionDefinition, CompositionValidationResult } from "./types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Validates an advanced motion composition and analyzes its dependency graph.
|
|
10
|
+
*/
|
|
11
|
+
export declare function validateAdvancedComposition(definition: AdvancedMotionCompositionDefinition): CompositionValidationResult;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Agent Registry (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Provides a modular, thread-safe registry for discovering, registering,
|
|
5
|
+
* inspecting, and querying specialized AI Agents in AF Motion.
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentCapability, AgentCategory, AgentDefinition, AgentInputType, AgentMetadata } from "./types.js";
|
|
8
|
+
export declare class AgentRegistry {
|
|
9
|
+
private readonly agents;
|
|
10
|
+
register(agent: AgentDefinition): void;
|
|
11
|
+
unregister(agentId: string): boolean;
|
|
12
|
+
get(agentId: string): AgentDefinition | undefined;
|
|
13
|
+
has(agentId: string): boolean;
|
|
14
|
+
list(): AgentMetadata[];
|
|
15
|
+
findByCategory(category: AgentCategory): AgentDefinition[];
|
|
16
|
+
findByCapability(capability: AgentCapability): AgentDefinition[];
|
|
17
|
+
findByInputType(inputType: AgentInputType): AgentDefinition[];
|
|
18
|
+
clear(): void;
|
|
19
|
+
get size(): number;
|
|
20
|
+
}
|
|
21
|
+
export declare const agentRegistry: AgentRegistry;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Accessibility Agent (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Specialized agent responsible for evaluating WCAG motion guidelines,
|
|
5
|
+
* verifying prefers-reduced-motion fallback compatibility, detecting
|
|
6
|
+
* vestibular triggers or excessive flashing, and recommending accessible alternatives.
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentDefinition } from "../types.js";
|
|
9
|
+
export declare const accessibilityAgent: AgentDefinition;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Composition Agent (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Specialized agent responsible for analyzing composition graphs,
|
|
5
|
+
* identifying dependency conflicts, verifying track timing synchronizations,
|
|
6
|
+
* and recommending sequencing improvements.
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentDefinition } from "../types.js";
|
|
9
|
+
export declare const compositionAgent: AgentDefinition;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Design-to-Motion Agent (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Specialized agent responsible for interpreting visual design briefs,
|
|
5
|
+
* structured UI components, and generating production-ready AF Motion configurations
|
|
6
|
+
* and Motion DNA profiles using Prompt 142's engine.
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentDefinition } from "../types.js";
|
|
9
|
+
export declare const designToMotionAgent: AgentDefinition;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Specialized Agents Index & Registration (Phase 18, Prompt 144)
|
|
3
|
+
*/
|
|
4
|
+
import { AgentRegistry } from "../agent-registry.js";
|
|
5
|
+
import { motionIntelligenceAgent } from "./motion-intelligence-agent.js";
|
|
6
|
+
import { designToMotionAgent } from "./design-to-motion-agent.js";
|
|
7
|
+
import { sceneGenerationAgent } from "./scene-generation-agent.js";
|
|
8
|
+
import { performanceOptimizationAgent } from "./performance-agent.js";
|
|
9
|
+
import { accessibilityAgent } from "./accessibility-agent.js";
|
|
10
|
+
import { compositionAgent } from "./composition-agent.js";
|
|
11
|
+
export { motionIntelligenceAgent, designToMotionAgent, sceneGenerationAgent, performanceOptimizationAgent, accessibilityAgent, compositionAgent, };
|
|
12
|
+
export declare const STANDARD_AGENTS: import("../types.js").AgentDefinition<unknown, unknown>[];
|
|
13
|
+
export declare function registerDefaultAgents(registry?: AgentRegistry): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Motion Intelligence Agent (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Specialized agent responsible for analyzing motion configurations,
|
|
5
|
+
* evaluating quality scores, detecting aesthetic and timing issues,
|
|
6
|
+
* and recommending actionable improvements using Prompt 141's intelligence engine.
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentDefinition } from "../types.js";
|
|
9
|
+
export declare const motionIntelligenceAgent: AgentDefinition;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Performance Optimization Agent (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Specialized agent responsible for analyzing runtime telemetry,
|
|
5
|
+
* identifying framerate drops and memory bottlenecks, and recommending
|
|
6
|
+
* adaptive quality scaling and GPU optimizations.
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentDefinition } from "../types.js";
|
|
9
|
+
export declare const performanceOptimizationAgent: AgentDefinition;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Scene Generation Agent (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Specialized agent responsible for interpreting natural-language scene requests
|
|
5
|
+
* and structured scene specifications to generate complete multi-system scenes
|
|
6
|
+
* (3D, physics, particles, DOM) using Prompt 143's engine.
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentDefinition } from "../types.js";
|
|
9
|
+
export declare const sceneGenerationAgent: AgentDefinition;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Multi-Agent Collaboration Planner (Phase 18, Prompt 145)
|
|
3
|
+
*
|
|
4
|
+
* Constructs validated collaboration plans, matches required capabilities to agents,
|
|
5
|
+
* resolves dependency graphs, detects cycles, and calculates parallel execution waves.
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentCapability, AgentMetadata } from "./types.js";
|
|
8
|
+
import type { CollaborationPlan, CollaborationTask, OrchestrationStrategy } from "./orchestration-types.js";
|
|
9
|
+
import { AgentRegistry } from "./agent-registry.js";
|
|
10
|
+
export declare class CollaborationPlanner {
|
|
11
|
+
private readonly registry;
|
|
12
|
+
constructor(registry?: AgentRegistry);
|
|
13
|
+
/**
|
|
14
|
+
* Automatically select the best agent for a given required capability.
|
|
15
|
+
*/
|
|
16
|
+
selectAgentForCapability(capability: AgentCapability): AgentMetadata;
|
|
17
|
+
/**
|
|
18
|
+
* Group tasks into parallel execution waves based on dependency levels.
|
|
19
|
+
*/
|
|
20
|
+
computeParallelWaves(tasks: CollaborationTask[]): string[][];
|
|
21
|
+
/**
|
|
22
|
+
* Validates a collaboration plan.
|
|
23
|
+
*/
|
|
24
|
+
validateCollaborationPlan(plan: CollaborationPlan): {
|
|
25
|
+
valid: boolean;
|
|
26
|
+
issues: string[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Creates a structured collaboration plan.
|
|
30
|
+
*/
|
|
31
|
+
createCollaborationPlan(goal: string, tasks: Omit<CollaborationTask, "status" | "waveIndex">[], options?: {
|
|
32
|
+
strategy?: OrchestrationStrategy;
|
|
33
|
+
coordinatorAgentId?: string;
|
|
34
|
+
requirePlanApproval?: boolean;
|
|
35
|
+
metadata?: Record<string, unknown>;
|
|
36
|
+
}): CollaborationPlan;
|
|
37
|
+
}
|
|
38
|
+
export declare const collaborationPlanner: CollaborationPlanner;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Specialized Multi-Agent Collaboration Workflows (Phase 18, Prompt 145)
|
|
3
|
+
*
|
|
4
|
+
* Implements 4 practical multi-agent collaboration workflows:
|
|
5
|
+
* 1. Complete Design-to-Motion Pipeline (Review-and-Refine)
|
|
6
|
+
* 2. Complete Scene Creation (Hierarchical)
|
|
7
|
+
* 3. Motion Optimization Team (Pipeline)
|
|
8
|
+
* 4. Complete Creative Audit (Parallel)
|
|
9
|
+
*/
|
|
10
|
+
import type { CollaborationPlan } from "./orchestration-types.js";
|
|
11
|
+
import { CollaborationPlanner } from "./collaboration-planner.js";
|
|
12
|
+
export declare const COLLABORATION_WORKFLOW_DEFINITIONS: {
|
|
13
|
+
"complete-design-to-motion": {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
strategy: "review-and-refine";
|
|
18
|
+
defaultGoal: string;
|
|
19
|
+
estimatedDurationMs: number;
|
|
20
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
21
|
+
};
|
|
22
|
+
"complete-scene-creation": {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
strategy: "hierarchical";
|
|
27
|
+
defaultGoal: string;
|
|
28
|
+
estimatedDurationMs: number;
|
|
29
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
30
|
+
};
|
|
31
|
+
"motion-optimization-team": {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
strategy: "pipeline";
|
|
36
|
+
defaultGoal: string;
|
|
37
|
+
estimatedDurationMs: number;
|
|
38
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
39
|
+
};
|
|
40
|
+
"complete-creative-audit": {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
strategy: "parallel";
|
|
45
|
+
defaultGoal: string;
|
|
46
|
+
estimatedDurationMs: number;
|
|
47
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare function listCollaborationWorkflows(): ({
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
strategy: "review-and-refine";
|
|
55
|
+
defaultGoal: string;
|
|
56
|
+
estimatedDurationMs: number;
|
|
57
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
58
|
+
} | {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
description: string;
|
|
62
|
+
strategy: "hierarchical";
|
|
63
|
+
defaultGoal: string;
|
|
64
|
+
estimatedDurationMs: number;
|
|
65
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
description: string;
|
|
70
|
+
strategy: "pipeline";
|
|
71
|
+
defaultGoal: string;
|
|
72
|
+
estimatedDurationMs: number;
|
|
73
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
74
|
+
} | {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
strategy: "parallel";
|
|
79
|
+
defaultGoal: string;
|
|
80
|
+
estimatedDurationMs: number;
|
|
81
|
+
createPlan: (goal: string, initialInputs?: Record<string, unknown>, planner?: CollaborationPlanner) => CollaborationPlan;
|
|
82
|
+
})[];
|
|
83
|
+
export declare function getCollaborationWorkflow(id: string): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Agent Communication Protocol & Message Bus (Phase 18, Prompt 145)
|
|
3
|
+
*
|
|
4
|
+
* Provides a structured, typed message bus for inter-agent communication,
|
|
5
|
+
* message delivery, audit trails, and security validation (no executable code).
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentMessage, AgentMessageType } from "./orchestration-types.js";
|
|
8
|
+
export declare const MAX_MESSAGE_PAYLOAD_BYTES: number;
|
|
9
|
+
export declare const MAX_BUS_HISTORY_MESSAGES = 1000;
|
|
10
|
+
export declare class AgentMessageBus {
|
|
11
|
+
private readonly messages;
|
|
12
|
+
private sequenceCounter;
|
|
13
|
+
private readonly subscribers;
|
|
14
|
+
createMessage(params: {
|
|
15
|
+
workflowId: string;
|
|
16
|
+
senderAgentId: string;
|
|
17
|
+
recipientAgentId: string;
|
|
18
|
+
type: AgentMessageType;
|
|
19
|
+
payload: Record<string, unknown>;
|
|
20
|
+
payloadReference?: string;
|
|
21
|
+
}): AgentMessage;
|
|
22
|
+
dispatch(message: AgentMessage): void;
|
|
23
|
+
subscribe(handler: (msg: AgentMessage) => void): () => void;
|
|
24
|
+
getMessagesForWorkflow(workflowId: string): AgentMessage[];
|
|
25
|
+
getMessagesBetween(agentA: string, agentB: string): AgentMessage[];
|
|
26
|
+
clear(): void;
|
|
27
|
+
private assertPayloadSafety;
|
|
28
|
+
}
|
|
29
|
+
export declare const agentMessageBus: AgentMessageBus;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Multi-Agent Conflict Detection & Resolution (Phase 18, Prompt 145)
|
|
3
|
+
*
|
|
4
|
+
* Implements deterministic conflict detection across agent outputs,
|
|
5
|
+
* priority/rule-based resolutions, and transparent decision audit logging.
|
|
6
|
+
*/
|
|
7
|
+
import type { ConflictRecord, ResolutionStrategy } from "./orchestration-types.js";
|
|
8
|
+
export declare class ConflictResolver {
|
|
9
|
+
/**
|
|
10
|
+
* Analyzes two or more agent outputs / recommendations for mutual contradictions.
|
|
11
|
+
*/
|
|
12
|
+
detectConflicts(params: {
|
|
13
|
+
workflowId: string;
|
|
14
|
+
agentOutputs: Array<{
|
|
15
|
+
agentId: string;
|
|
16
|
+
output: Record<string, unknown>;
|
|
17
|
+
artifactKey?: string;
|
|
18
|
+
}>;
|
|
19
|
+
}): ConflictRecord[];
|
|
20
|
+
/**
|
|
21
|
+
* Resolves a conflict using a specified strategy or user selection.
|
|
22
|
+
*/
|
|
23
|
+
resolveConflict(conflict: ConflictRecord, strategy: ResolutionStrategy, manualSelection?: unknown): ConflictRecord;
|
|
24
|
+
}
|
|
25
|
+
export declare const conflictResolver: ConflictResolver;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Workflow Context & Audit Manager (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Implements workflow-scoped context stores, immutable output tracking,
|
|
5
|
+
* and structured audit logs for full execution observability.
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentWorkflowTelemetry, ToolCallLog, WorkflowAuditEntry, WorkflowStatus } from "./types.js";
|
|
8
|
+
export declare class WorkflowContext {
|
|
9
|
+
readonly workflowId: string;
|
|
10
|
+
readonly goal: string;
|
|
11
|
+
private readonly store;
|
|
12
|
+
private readonly taskOutputs;
|
|
13
|
+
private readonly auditTrail;
|
|
14
|
+
private readonly toolCalls;
|
|
15
|
+
private readonly startTime;
|
|
16
|
+
private endTime?;
|
|
17
|
+
private status;
|
|
18
|
+
constructor(workflowId: string, goal: string, initialData?: Record<string, unknown>);
|
|
19
|
+
get(key: string): unknown;
|
|
20
|
+
set(key: string, value: unknown): void;
|
|
21
|
+
getAll(): Record<string, unknown>;
|
|
22
|
+
setTaskOutput(taskId: string, output: unknown): void;
|
|
23
|
+
getTaskOutput<T = unknown>(taskId: string): T | undefined;
|
|
24
|
+
getAllTaskOutputs(): Record<string, unknown>;
|
|
25
|
+
recordToolCall(log: ToolCallLog): void;
|
|
26
|
+
logAudit(entry: Omit<WorkflowAuditEntry, "timestamp">): void;
|
|
27
|
+
getAuditTrail(): WorkflowAuditEntry[];
|
|
28
|
+
setStatus(status: WorkflowStatus): void;
|
|
29
|
+
getStatus(): WorkflowStatus;
|
|
30
|
+
getTelemetry(taskCounts: {
|
|
31
|
+
total: number;
|
|
32
|
+
completed: number;
|
|
33
|
+
failed: number;
|
|
34
|
+
skipped: number;
|
|
35
|
+
}): AgentWorkflowTelemetry;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Agent Workflow Execution Engine (Phase 18, Prompt 144)
|
|
3
|
+
*
|
|
4
|
+
* Implements the core execution lifecycle for agent workflows:
|
|
5
|
+
* - Topological dependency resolution
|
|
6
|
+
* - Human approval boundaries (plan-level & task-level)
|
|
7
|
+
* - Safe tool invocation via SafeToolRegistry
|
|
8
|
+
* - Retry policies and task skipping
|
|
9
|
+
* - AbortSignal cancellation & timeouts
|
|
10
|
+
* - Complete execution telemetry and audit logging
|
|
11
|
+
*/
|
|
12
|
+
import type { TaskPlan, WorkflowExecutionOptions, WorkflowExecutionResult } from "./types.js";
|
|
13
|
+
import { AgentRegistry } from "./agent-registry.js";
|
|
14
|
+
import { SafeToolRegistry } from "./tool-registry.js";
|
|
15
|
+
import { TaskPlanner } from "./task-planner.js";
|
|
16
|
+
export declare class WorkflowExecutionEngine {
|
|
17
|
+
private readonly agents;
|
|
18
|
+
private readonly tools;
|
|
19
|
+
private readonly planner;
|
|
20
|
+
constructor(agents?: AgentRegistry, tools?: SafeToolRegistry, planner?: TaskPlanner);
|
|
21
|
+
/**
|
|
22
|
+
* Executes a task plan asynchronously with full lifecycle support.
|
|
23
|
+
*/
|
|
24
|
+
executePlan(plan: TaskPlan, options?: WorkflowExecutionOptions): Promise<WorkflowExecutionResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Synchronous execution wrapper for deterministic offline testing.
|
|
27
|
+
*/
|
|
28
|
+
executePlanSync(plan: TaskPlan, options?: WorkflowExecutionOptions): WorkflowExecutionResult;
|
|
29
|
+
}
|
|
30
|
+
export declare const workflowExecutionEngine: WorkflowExecutionEngine;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Agent Workflows & Multi-Agent Orchestration (Phase 18, Prompts 144–145)
|
|
3
|
+
*
|
|
4
|
+
* Deterministic, offline-capable AI Agent Workflow & Multi-Agent Orchestration ecosystem.
|
|
5
|
+
*/
|
|
6
|
+
export { AGENT_WORKFLOWS_SPEC_VERSION, type AgentCategory, type AgentCapability, type AgentInputType, type AgentOutputType, type TaskStatus, type WorkflowStatus, type AgentMetadata, type ToolCallLog, type AgentExecutionContext, type AgentExecutionResult, type AgentDefinition, type AgentTask, type TaskPlan, type ToolPermission, type ToolDefinition, type WorkflowAuditEntry, type AgentWorkflowTelemetry, type WorkflowTemplate, type WorkflowExecutionOptions, type WorkflowExecutionResult, } from "./types.js";
|
|
7
|
+
export { ORCHESTRATION_SPEC_VERSION, type OrchestrationStrategy, type AgentMessageType, type AgentMessage, type CollaborationTask, type CollaborationPlan, type SharedArtifact, type ConflictType, type ResolutionStrategy, type ConflictRecord, type QualityGateStatus, type QualityGateCheck, type CollectiveValidationResult, type MultiAgentDeliverable, type OrchestrationOptions, } from "./orchestration-types.js";
|
|
8
|
+
export { AgentRegistry, agentRegistry, } from "./agent-registry.js";
|
|
9
|
+
export { SafeToolRegistry, safeToolRegistry, registerDefaultSafeTools, } from "./tool-registry.js";
|
|
10
|
+
export { STANDARD_AGENTS, registerDefaultAgents, motionIntelligenceAgent, designToMotionAgent, sceneGenerationAgent, performanceOptimizationAgent, accessibilityAgent, compositionAgent, } from "./agents/index.js";
|
|
11
|
+
export { TaskPlanner, taskPlanner, TaskPlanValidationError, } from "./task-planner.js";
|
|
12
|
+
export { WorkflowContext, } from "./context.js";
|
|
13
|
+
export { SharedWorkflowContext, } from "./shared-context.js";
|
|
14
|
+
export { WorkflowExecutionEngine, workflowExecutionEngine, } from "./execution-engine.js";
|
|
15
|
+
export { WORKFLOW_TEMPLATES, listWorkflowTemplates, getWorkflowTemplate, } from "./templates.js";
|
|
16
|
+
export { CollaborationPlanner, collaborationPlanner, } from "./collaboration-planner.js";
|
|
17
|
+
export { AgentMessageBus, agentMessageBus, } from "./communication.js";
|
|
18
|
+
export { ConflictResolver, conflictResolver, } from "./conflict-resolver.js";
|
|
19
|
+
export { MultiAgentOrchestrator, multiAgentOrchestrator, } from "./orchestrator.js";
|
|
20
|
+
export { COLLABORATION_WORKFLOW_DEFINITIONS, listCollaborationWorkflows, getCollaborationWorkflow, } from "./collaboration-workflows.js";
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Multi-Agent Collaboration & Orchestration Types (Phase 18, Prompt 145)
|
|
3
|
+
*
|
|
4
|
+
* Core data contracts for coordinated multi-agent orchestration, communication protocols,
|
|
5
|
+
* shared artifact stores, conflict resolution, parallel wave scheduling, and collective quality gates.
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentCapability, AgentMetadata, AgentOutputType, TaskStatus, WorkflowStatus } from "./types.js";
|
|
8
|
+
export declare const ORCHESTRATION_SPEC_VERSION = "1.0.0";
|
|
9
|
+
export type OrchestrationStrategy = "sequential" | "parallel" | "hierarchical" | "pipeline" | "review-and-refine";
|
|
10
|
+
export type AgentMessageType = "task_assignment" | "task_completion" | "artifact_delivery" | "analysis_findings" | "recommendations" | "validation_results" | "clarification_request" | "failure_notification" | "approval_request";
|
|
11
|
+
export interface AgentMessage {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly workflowId: string;
|
|
14
|
+
readonly senderAgentId: string;
|
|
15
|
+
readonly recipientAgentId: string;
|
|
16
|
+
readonly type: AgentMessageType;
|
|
17
|
+
readonly sequenceNumber: number;
|
|
18
|
+
readonly timestamp: number;
|
|
19
|
+
readonly payloadReference?: string;
|
|
20
|
+
readonly payload: Readonly<Record<string, unknown>>;
|
|
21
|
+
readonly schemaVersion: string;
|
|
22
|
+
}
|
|
23
|
+
export interface CollaborationTask {
|
|
24
|
+
id: string;
|
|
25
|
+
description: string;
|
|
26
|
+
assignedAgentId: string;
|
|
27
|
+
requiredCapabilities: AgentCapability[];
|
|
28
|
+
inputReferences: Record<string, string>;
|
|
29
|
+
inputs: Record<string, unknown>;
|
|
30
|
+
expectedOutput: AgentOutputType;
|
|
31
|
+
dependencies: string[];
|
|
32
|
+
priority: number;
|
|
33
|
+
status: TaskStatus;
|
|
34
|
+
waveIndex?: number;
|
|
35
|
+
optional?: boolean;
|
|
36
|
+
requireApproval?: boolean;
|
|
37
|
+
retryPolicy?: {
|
|
38
|
+
maxRetries: number;
|
|
39
|
+
retryCount: number;
|
|
40
|
+
};
|
|
41
|
+
validationRequirements?: string[];
|
|
42
|
+
output?: unknown;
|
|
43
|
+
artifactKey?: string;
|
|
44
|
+
error?: string;
|
|
45
|
+
executionDurationMs?: number;
|
|
46
|
+
}
|
|
47
|
+
export interface CollaborationPlan {
|
|
48
|
+
readonly workflowId: string;
|
|
49
|
+
readonly goal: string;
|
|
50
|
+
readonly strategy: OrchestrationStrategy;
|
|
51
|
+
readonly coordinatorAgentId: string;
|
|
52
|
+
readonly participatingAgentIds: readonly string[];
|
|
53
|
+
readonly tasks: readonly CollaborationTask[];
|
|
54
|
+
readonly parallelWaves: readonly (readonly string[])[];
|
|
55
|
+
readonly createdAt: number;
|
|
56
|
+
readonly estimatedDurationMs: number;
|
|
57
|
+
readonly requirePlanApproval?: boolean;
|
|
58
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
59
|
+
}
|
|
60
|
+
export interface SharedArtifact<T = unknown> {
|
|
61
|
+
readonly key: string;
|
|
62
|
+
readonly version: number;
|
|
63
|
+
readonly type: AgentOutputType;
|
|
64
|
+
readonly producerAgentId: string;
|
|
65
|
+
readonly taskId: string;
|
|
66
|
+
readonly createdAt: number;
|
|
67
|
+
readonly immutable: boolean;
|
|
68
|
+
readonly data: T;
|
|
69
|
+
readonly hash: string;
|
|
70
|
+
readonly tags?: readonly string[];
|
|
71
|
+
}
|
|
72
|
+
export type ConflictType = "conflicting_config" | "incompatible_recommendation" | "token_mismatch" | "performance_vs_quality" | "accessibility_violation" | "dependency_cycle";
|
|
73
|
+
export type ResolutionStrategy = "priority_based" | "rule_based" | "dependency_aware" | "human_approval" | "reject_with_explanation";
|
|
74
|
+
export interface ConflictRecord {
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly workflowId: string;
|
|
77
|
+
readonly conflictType: ConflictType;
|
|
78
|
+
readonly participatingAgentIds: readonly string[];
|
|
79
|
+
readonly conflictingArtifactKeys: readonly string[];
|
|
80
|
+
readonly details: string;
|
|
81
|
+
readonly resolutionStrategy: ResolutionStrategy;
|
|
82
|
+
readonly selectedResolution?: unknown;
|
|
83
|
+
readonly reason: string;
|
|
84
|
+
readonly approvalStatus: "pending" | "approved" | "rejected" | "auto_resolved";
|
|
85
|
+
readonly resolvedAt?: number;
|
|
86
|
+
}
|
|
87
|
+
export type QualityGateStatus = "passed" | "failed" | "warning" | "not_evaluated";
|
|
88
|
+
export interface QualityGateCheck {
|
|
89
|
+
readonly id: string;
|
|
90
|
+
readonly name: string;
|
|
91
|
+
readonly required: boolean;
|
|
92
|
+
readonly status: QualityGateStatus;
|
|
93
|
+
readonly summary: string;
|
|
94
|
+
readonly evaluatedByAgentId?: string;
|
|
95
|
+
readonly details?: Readonly<Record<string, unknown>>;
|
|
96
|
+
}
|
|
97
|
+
export interface CollectiveValidationResult {
|
|
98
|
+
readonly passed: boolean;
|
|
99
|
+
readonly gates: readonly QualityGateCheck[];
|
|
100
|
+
readonly overallQualityScore: number;
|
|
101
|
+
readonly issues: readonly string[];
|
|
102
|
+
readonly warnings: readonly string[];
|
|
103
|
+
}
|
|
104
|
+
export interface MultiAgentDeliverable {
|
|
105
|
+
readonly workflowId: string;
|
|
106
|
+
readonly goal: string;
|
|
107
|
+
readonly strategy: OrchestrationStrategy;
|
|
108
|
+
readonly status: WorkflowStatus;
|
|
109
|
+
readonly plan: CollaborationPlan;
|
|
110
|
+
readonly participatingAgents: readonly AgentMetadata[];
|
|
111
|
+
readonly artifacts: Readonly<Record<string, SharedArtifact>>;
|
|
112
|
+
readonly consolidatedDeliverable?: unknown;
|
|
113
|
+
readonly qualityValidation: CollectiveValidationResult;
|
|
114
|
+
readonly conflicts: readonly ConflictRecord[];
|
|
115
|
+
readonly messageAudit: readonly AgentMessage[];
|
|
116
|
+
readonly telemetry: {
|
|
117
|
+
readonly startTime: number;
|
|
118
|
+
readonly endTime: number;
|
|
119
|
+
readonly durationMs: number;
|
|
120
|
+
readonly waveCount: number;
|
|
121
|
+
readonly tasksCompleted: number;
|
|
122
|
+
readonly tasksFailed: number;
|
|
123
|
+
readonly messagesSent: number;
|
|
124
|
+
};
|
|
125
|
+
readonly error?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface OrchestrationOptions {
|
|
128
|
+
strategy?: OrchestrationStrategy;
|
|
129
|
+
maxConcurrency?: number;
|
|
130
|
+
requirePlanApproval?: boolean;
|
|
131
|
+
requireConflictApproval?: boolean;
|
|
132
|
+
approvalGranted?: boolean;
|
|
133
|
+
onApprovalRequired?: (request: {
|
|
134
|
+
scope: "plan" | "task";
|
|
135
|
+
workflowId: string;
|
|
136
|
+
taskId?: string;
|
|
137
|
+
description: string;
|
|
138
|
+
}) => boolean | Promise<boolean>;
|
|
139
|
+
timeoutMs?: number;
|
|
140
|
+
signal?: AbortSignal;
|
|
141
|
+
onProgress?: (progress: number, currentWave: number, activeTasks: CollaborationTask[]) => void;
|
|
142
|
+
onMessage?: (message: AgentMessage) => void;
|
|
143
|
+
onConflict?: (conflict: ConflictRecord) => void;
|
|
144
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Multi-Agent Orchestration Engine (Phase 18, Prompt 145)
|
|
3
|
+
*
|
|
4
|
+
* Coordinates multi-agent collaboration execution across parallel waves,
|
|
5
|
+
* message dispatching, shared artifact exchange, conflict resolution,
|
|
6
|
+
* collective quality gate validation, and final deliverable assembly.
|
|
7
|
+
*/
|
|
8
|
+
import type { CollaborationPlan, MultiAgentDeliverable, OrchestrationOptions } from "./orchestration-types.js";
|
|
9
|
+
import { AgentRegistry } from "./agent-registry.js";
|
|
10
|
+
import { SafeToolRegistry } from "./tool-registry.js";
|
|
11
|
+
import { CollaborationPlanner } from "./collaboration-planner.js";
|
|
12
|
+
import { AgentMessageBus } from "./communication.js";
|
|
13
|
+
import { ConflictResolver } from "./conflict-resolver.js";
|
|
14
|
+
export declare class MultiAgentOrchestrator {
|
|
15
|
+
private readonly agents;
|
|
16
|
+
private readonly tools;
|
|
17
|
+
private readonly planner;
|
|
18
|
+
private readonly bus;
|
|
19
|
+
private readonly conflicts;
|
|
20
|
+
constructor(agents?: AgentRegistry, tools?: SafeToolRegistry, planner?: CollaborationPlanner, bus?: AgentMessageBus, conflicts?: ConflictResolver);
|
|
21
|
+
/**
|
|
22
|
+
* Executes a multi-agent collaboration plan with wave scheduling and conflict resolution.
|
|
23
|
+
*/
|
|
24
|
+
orchestrate(plan: CollaborationPlan, options?: OrchestrationOptions): Promise<MultiAgentDeliverable>;
|
|
25
|
+
private executeSingleCollaborationTask;
|
|
26
|
+
private evaluateCollectiveQualityGates;
|
|
27
|
+
private synthesizeConsolidatedDeliverable;
|
|
28
|
+
}
|
|
29
|
+
export declare const multiAgentOrchestrator: MultiAgentOrchestrator;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AF Motion — Agent Workflows & Collaboration React Integration (Phase 18, Prompts 144–145)
|
|
3
|
+
*
|
|
4
|
+
* Provides:
|
|
5
|
+
* - `useAgentWorkflow()`: Hook for individual agent workflows (Prompt 144)
|
|
6
|
+
* - `useAgentCollaboration()`: Hook for multi-agent orchestration, conflict resolution, and quality gates (Prompt 145)
|
|
7
|
+
*/
|
|
8
|
+
import type { AgentMetadata, AgentTask, TaskPlan, WorkflowAuditEntry, WorkflowExecutionOptions, WorkflowExecutionResult, WorkflowStatus, WorkflowTemplate } from "./types.js";
|
|
9
|
+
import type { AgentMessage, CollaborationPlan, CollaborationTask, ConflictRecord, MultiAgentDeliverable, OrchestrationOptions, QualityGateCheck, ResolutionStrategy } from "./orchestration-types.js";
|
|
10
|
+
import { listCollaborationWorkflows } from "./collaboration-workflows.js";
|
|
11
|
+
export interface UseAgentWorkflowState {
|
|
12
|
+
status: WorkflowStatus;
|
|
13
|
+
isExecuting: boolean;
|
|
14
|
+
isWaitingForApproval: boolean;
|
|
15
|
+
progress: number;
|
|
16
|
+
currentTask: AgentTask | null;
|
|
17
|
+
tasks: AgentTask[];
|
|
18
|
+
}
|
|
19
|
+
export interface UseAgentWorkflowReturn {
|
|
20
|
+
workflowState: UseAgentWorkflowState;
|
|
21
|
+
plan: TaskPlan | null;
|
|
22
|
+
result: WorkflowExecutionResult | null;
|
|
23
|
+
error: string | null;
|
|
24
|
+
logs: WorkflowAuditEntry[];
|
|
25
|
+
availableAgents: AgentMetadata[];
|
|
26
|
+
availableTemplates: WorkflowTemplate[];
|
|
27
|
+
availableTools: Array<{
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
permission: string;
|
|
32
|
+
}>;
|
|
33
|
+
loadTemplate: (templateId: string, initialInputs?: Record<string, unknown>) => TaskPlan | null;
|
|
34
|
+
createCustomPlan: (goal: string, tasks: Array<Omit<AgentTask, "status">>) => TaskPlan | null;
|
|
35
|
+
approvePlan: () => Promise<WorkflowExecutionResult | null>;
|
|
36
|
+
approveTask: (taskId: string) => void;
|
|
37
|
+
rejectTask: (taskId: string, reason: string) => void;
|
|
38
|
+
runWorkflow: (options?: WorkflowExecutionOptions) => Promise<WorkflowExecutionResult | null>;
|
|
39
|
+
cancelWorkflow: () => void;
|
|
40
|
+
reset: () => void;
|
|
41
|
+
}
|
|
42
|
+
export declare function useAgentWorkflow(defaultTemplateId?: string): UseAgentWorkflowReturn;
|
|
43
|
+
export interface UseAgentCollaborationState {
|
|
44
|
+
status: WorkflowStatus;
|
|
45
|
+
isOrchestrating: boolean;
|
|
46
|
+
isWaitingForApproval: boolean;
|
|
47
|
+
progress: number;
|
|
48
|
+
currentWave: number;
|
|
49
|
+
totalWaves: number;
|
|
50
|
+
activeTasks: CollaborationTask[];
|
|
51
|
+
conflicts: ConflictRecord[];
|
|
52
|
+
qualityGates: QualityGateCheck[];
|
|
53
|
+
}
|
|
54
|
+
export interface UseAgentCollaborationReturn {
|
|
55
|
+
collaborationState: UseAgentCollaborationState;
|
|
56
|
+
plan: CollaborationPlan | null;
|
|
57
|
+
deliverable: MultiAgentDeliverable | null;
|
|
58
|
+
messages: AgentMessage[];
|
|
59
|
+
error: string | null;
|
|
60
|
+
availableWorkflows: ReturnType<typeof listCollaborationWorkflows>;
|
|
61
|
+
loadWorkflow: (workflowId: string, initialInputs?: Record<string, unknown>) => CollaborationPlan | null;
|
|
62
|
+
createCustomCollaboration: (goal: string, tasks: Array<Omit<CollaborationTask, "status" | "waveIndex">>, options?: {
|
|
63
|
+
strategy?: CollaborationPlan["strategy"];
|
|
64
|
+
coordinatorAgentId?: string;
|
|
65
|
+
}) => CollaborationPlan | null;
|
|
66
|
+
resolveConflict: (conflictId: string, strategy: ResolutionStrategy, manualSelection?: unknown) => void;
|
|
67
|
+
orchestrate: (options?: OrchestrationOptions) => Promise<MultiAgentDeliverable | null>;
|
|
68
|
+
cancel: () => void;
|
|
69
|
+
reset: () => void;
|
|
70
|
+
}
|
|
71
|
+
export declare function useAgentCollaboration(defaultWorkflowId?: string): UseAgentCollaborationReturn;
|