autosnippet 3.2.10 → 3.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -55
- package/config/default.json +19 -1
- package/dashboard/dist/assets/axios-42ANG6Sg.js +6 -0
- package/dashboard/dist/assets/framer-motion-CZfOSYpP.js +9 -0
- package/dashboard/dist/assets/icons-C1dUryS-.js +1 -0
- package/dashboard/dist/assets/index-CKMy5LY6.js +128 -0
- package/dashboard/dist/assets/index-D0whuycy.css +1 -0
- package/dashboard/dist/assets/vendor-BZEJEVBn.js +3068 -0
- package/dashboard/dist/index.html +6 -6
- package/dist/bin/api-server.d.ts +7 -0
- package/dist/bin/api-server.d.ts.map +1 -0
- package/dist/bin/api-server.js +87 -0
- package/dist/bin/api-server.js.map +1 -0
- package/dist/bin/cli.d.ts +20 -0
- package/dist/bin/cli.d.ts.map +1 -0
- package/dist/bin/cli.js +1169 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/bin/mcp-server.d.ts +28 -0
- package/dist/bin/mcp-server.d.ts.map +1 -0
- package/dist/bin/mcp-server.js +59 -0
- package/dist/bin/mcp-server.js.map +1 -0
- package/dist/lib/bootstrap.d.ts +92 -0
- package/dist/lib/bootstrap.d.ts.map +1 -0
- package/dist/lib/bootstrap.js +206 -0
- package/dist/lib/bootstrap.js.map +1 -0
- package/dist/lib/cli/AiScanService.d.ts +72 -0
- package/dist/lib/cli/AiScanService.d.ts.map +1 -0
- package/dist/lib/cli/AiScanService.js +252 -0
- package/dist/lib/cli/AiScanService.js.map +1 -0
- package/dist/lib/cli/CliLogger.d.ts +41 -0
- package/dist/lib/cli/CliLogger.d.ts.map +1 -0
- package/dist/lib/cli/CliLogger.js +73 -0
- package/dist/lib/cli/CliLogger.js.map +1 -0
- package/dist/lib/cli/KnowledgeSyncService.d.ts +156 -0
- package/dist/lib/cli/KnowledgeSyncService.d.ts.map +1 -0
- package/dist/lib/cli/KnowledgeSyncService.js +338 -0
- package/dist/lib/cli/KnowledgeSyncService.js.map +1 -0
- package/dist/lib/cli/SetupService.d.ts +136 -0
- package/dist/lib/cli/SetupService.d.ts.map +1 -0
- package/dist/lib/cli/SetupService.js +510 -0
- package/dist/lib/cli/SetupService.js.map +1 -0
- package/dist/lib/cli/UpgradeService.d.ts +30 -0
- package/dist/lib/cli/UpgradeService.d.ts.map +1 -0
- package/dist/lib/cli/UpgradeService.js +83 -0
- package/dist/lib/cli/UpgradeService.js.map +1 -0
- package/dist/lib/cli/deploy/FileDeployer.d.ts +108 -0
- package/dist/lib/cli/deploy/FileDeployer.d.ts.map +1 -0
- package/dist/lib/cli/deploy/FileDeployer.js +543 -0
- package/dist/lib/cli/deploy/FileDeployer.js.map +1 -0
- package/dist/lib/cli/deploy/FileManifest.d.ts +210 -0
- package/dist/lib/cli/deploy/FileManifest.d.ts.map +1 -0
- package/dist/lib/cli/deploy/FileManifest.js +252 -0
- package/dist/lib/cli/deploy/FileManifest.js.map +1 -0
- package/dist/lib/core/AstAnalyzer.d.ts +278 -0
- package/dist/lib/core/AstAnalyzer.d.ts.map +1 -0
- package/dist/lib/core/AstAnalyzer.js +774 -0
- package/dist/lib/core/AstAnalyzer.js.map +1 -0
- package/dist/lib/core/analysis/CallEdgeResolver.d.ts +145 -0
- package/dist/lib/core/analysis/CallEdgeResolver.d.ts.map +1 -0
- package/dist/lib/core/analysis/CallEdgeResolver.js +374 -0
- package/dist/lib/core/analysis/CallEdgeResolver.js.map +1 -0
- package/dist/lib/core/analysis/CallGraphAnalyzer.d.ts +139 -0
- package/dist/lib/core/analysis/CallGraphAnalyzer.d.ts.map +1 -0
- package/dist/lib/core/analysis/CallGraphAnalyzer.js +313 -0
- package/dist/lib/core/analysis/CallGraphAnalyzer.js.map +1 -0
- package/dist/lib/core/analysis/CallSiteExtractor.d.ts +79 -0
- package/dist/lib/core/analysis/CallSiteExtractor.d.ts.map +1 -0
- package/dist/lib/core/analysis/CallSiteExtractor.js +654 -0
- package/dist/lib/core/analysis/CallSiteExtractor.js.map +1 -0
- package/dist/lib/core/analysis/DataFlowInferrer.d.ts +37 -0
- package/dist/lib/core/analysis/DataFlowInferrer.d.ts.map +1 -0
- package/dist/lib/core/analysis/DataFlowInferrer.js +52 -0
- package/dist/lib/core/analysis/DataFlowInferrer.js.map +1 -0
- package/dist/lib/core/analysis/ImportPathResolver.d.ts +59 -0
- package/dist/lib/core/analysis/ImportPathResolver.d.ts.map +1 -0
- package/dist/lib/core/analysis/ImportPathResolver.js +189 -0
- package/dist/lib/core/analysis/ImportPathResolver.js.map +1 -0
- package/dist/lib/core/analysis/ImportRecord.d.ts +63 -0
- package/dist/lib/core/analysis/ImportRecord.d.ts.map +1 -0
- package/dist/lib/core/analysis/ImportRecord.js +93 -0
- package/dist/lib/core/analysis/ImportRecord.js.map +1 -0
- package/dist/lib/core/analysis/SymbolTableBuilder.d.ts +84 -0
- package/dist/lib/core/analysis/SymbolTableBuilder.d.ts.map +1 -0
- package/dist/lib/core/analysis/SymbolTableBuilder.js +194 -0
- package/dist/lib/core/analysis/SymbolTableBuilder.js.map +1 -0
- package/dist/lib/core/ast/ProjectGraph.d.ts +161 -0
- package/dist/lib/core/ast/ProjectGraph.d.ts.map +1 -0
- package/dist/lib/core/ast/ProjectGraph.js +729 -0
- package/dist/lib/core/ast/ProjectGraph.js.map +1 -0
- package/dist/lib/core/ast/ensure-grammars.d.ts +42 -0
- package/dist/lib/core/ast/ensure-grammars.d.ts.map +1 -0
- package/dist/lib/core/ast/ensure-grammars.js +114 -0
- package/dist/lib/core/ast/ensure-grammars.js.map +1 -0
- package/dist/lib/core/ast/index.d.ts +31 -0
- package/dist/lib/core/ast/index.d.ts.map +1 -0
- package/dist/lib/core/ast/index.js +155 -0
- package/dist/lib/core/ast/index.js.map +1 -0
- package/dist/lib/core/ast/lang-dart.d.ts +35 -0
- package/dist/lib/core/ast/lang-dart.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-dart.js +873 -0
- package/dist/lib/core/ast/lang-dart.js.map +1 -0
- package/dist/lib/core/ast/lang-go.d.ts +32 -0
- package/dist/lib/core/ast/lang-go.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-go.js +680 -0
- package/dist/lib/core/ast/lang-go.js.map +1 -0
- package/dist/lib/core/ast/lang-java.d.ts +25 -0
- package/dist/lib/core/ast/lang-java.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-java.js +592 -0
- package/dist/lib/core/ast/lang-java.js.map +1 -0
- package/dist/lib/core/ast/lang-javascript.d.ts +18 -0
- package/dist/lib/core/ast/lang-javascript.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-javascript.js +233 -0
- package/dist/lib/core/ast/lang-javascript.js.map +1 -0
- package/dist/lib/core/ast/lang-kotlin.d.ts +24 -0
- package/dist/lib/core/ast/lang-kotlin.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-kotlin.js +699 -0
- package/dist/lib/core/ast/lang-kotlin.js.map +1 -0
- package/dist/lib/core/ast/lang-objc.d.ts +16 -0
- package/dist/lib/core/ast/lang-objc.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-objc.js +341 -0
- package/dist/lib/core/ast/lang-objc.js.map +1 -0
- package/dist/lib/core/ast/lang-python.d.ts +23 -0
- package/dist/lib/core/ast/lang-python.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-python.js +360 -0
- package/dist/lib/core/ast/lang-python.js.map +1 -0
- package/dist/lib/core/ast/lang-rust.d.ts +32 -0
- package/dist/lib/core/ast/lang-rust.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-rust.js +919 -0
- package/dist/lib/core/ast/lang-rust.js.map +1 -0
- package/dist/lib/core/ast/lang-swift.d.ts +28 -0
- package/dist/lib/core/ast/lang-swift.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-swift.js +456 -0
- package/dist/lib/core/ast/lang-swift.js.map +1 -0
- package/dist/lib/core/ast/lang-typescript.d.ts +32 -0
- package/dist/lib/core/ast/lang-typescript.d.ts.map +1 -0
- package/dist/lib/core/ast/lang-typescript.js +712 -0
- package/dist/lib/core/ast/lang-typescript.js.map +1 -0
- package/dist/lib/core/ast/parser-init.d.ts +33 -0
- package/dist/lib/core/ast/parser-init.d.ts.map +1 -0
- package/dist/lib/core/ast/parser-init.js +78 -0
- package/dist/lib/core/ast/parser-init.js.map +1 -0
- package/dist/lib/core/capability/CapabilityProbe.d.ts +105 -0
- package/dist/lib/core/capability/CapabilityProbe.d.ts.map +1 -0
- package/dist/lib/core/capability/CapabilityProbe.js +242 -0
- package/dist/lib/core/capability/CapabilityProbe.js.map +1 -0
- package/dist/lib/core/constitution/Constitution.d.ts +106 -0
- package/dist/lib/core/constitution/Constitution.d.ts.map +1 -0
- package/dist/lib/core/constitution/Constitution.js +132 -0
- package/dist/lib/core/constitution/Constitution.js.map +1 -0
- package/dist/lib/core/constitution/ConstitutionValidator.d.ts +60 -0
- package/dist/lib/core/constitution/ConstitutionValidator.d.ts.map +1 -0
- package/dist/lib/core/constitution/ConstitutionValidator.js +189 -0
- package/dist/lib/core/constitution/ConstitutionValidator.js.map +1 -0
- package/dist/lib/core/discovery/DartDiscoverer.d.ts +23 -0
- package/dist/lib/core/discovery/DartDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/DartDiscoverer.js +490 -0
- package/dist/lib/core/discovery/DartDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/DiscovererRegistry.d.ts +38 -0
- package/dist/lib/core/discovery/DiscovererRegistry.d.ts.map +1 -0
- package/dist/lib/core/discovery/DiscovererRegistry.js +70 -0
- package/dist/lib/core/discovery/DiscovererRegistry.js.map +1 -0
- package/dist/lib/core/discovery/GenericDiscoverer.d.ts +27 -0
- package/dist/lib/core/discovery/GenericDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/GenericDiscoverer.js +184 -0
- package/dist/lib/core/discovery/GenericDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/GoDiscoverer.d.ts +23 -0
- package/dist/lib/core/discovery/GoDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/GoDiscoverer.js +507 -0
- package/dist/lib/core/discovery/GoDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/JvmDiscoverer.d.ts +25 -0
- package/dist/lib/core/discovery/JvmDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/JvmDiscoverer.js +457 -0
- package/dist/lib/core/discovery/JvmDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/NodeDiscoverer.d.ts +23 -0
- package/dist/lib/core/discovery/NodeDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/NodeDiscoverer.js +440 -0
- package/dist/lib/core/discovery/NodeDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/ProjectDiscoverer.d.ts +74 -0
- package/dist/lib/core/discovery/ProjectDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/ProjectDiscoverer.js +52 -0
- package/dist/lib/core/discovery/ProjectDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/PythonDiscoverer.d.ts +23 -0
- package/dist/lib/core/discovery/PythonDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/PythonDiscoverer.js +312 -0
- package/dist/lib/core/discovery/PythonDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/RustDiscoverer.d.ts +23 -0
- package/dist/lib/core/discovery/RustDiscoverer.d.ts.map +1 -0
- package/dist/lib/core/discovery/RustDiscoverer.js +492 -0
- package/dist/lib/core/discovery/RustDiscoverer.js.map +1 -0
- package/dist/lib/core/discovery/index.d.ts +25 -0
- package/dist/lib/core/discovery/index.d.ts.map +1 -0
- package/dist/lib/core/discovery/index.js +52 -0
- package/dist/lib/core/discovery/index.js.map +1 -0
- package/dist/lib/core/enhancement/EnhancementPack.d.ts +145 -0
- package/dist/lib/core/enhancement/EnhancementPack.d.ts.map +1 -0
- package/dist/lib/core/enhancement/EnhancementPack.js +64 -0
- package/dist/lib/core/enhancement/EnhancementPack.js.map +1 -0
- package/dist/lib/core/enhancement/EnhancementRegistry.d.ts +28 -0
- package/dist/lib/core/enhancement/EnhancementRegistry.d.ts.map +1 -0
- package/dist/lib/core/enhancement/EnhancementRegistry.js +43 -0
- package/dist/lib/core/enhancement/EnhancementRegistry.js.map +1 -0
- package/dist/lib/core/enhancement/android-enhancement.d.ts +30 -0
- package/dist/lib/core/enhancement/android-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/android-enhancement.js +95 -0
- package/dist/lib/core/enhancement/android-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/django-enhancement.d.ts +48 -0
- package/dist/lib/core/enhancement/django-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/django-enhancement.js +216 -0
- package/dist/lib/core/enhancement/django-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/fastapi-enhancement.d.ts +46 -0
- package/dist/lib/core/enhancement/fastapi-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/fastapi-enhancement.js +189 -0
- package/dist/lib/core/enhancement/fastapi-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/go-grpc-enhancement.d.ts +45 -0
- package/dist/lib/core/enhancement/go-grpc-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/go-grpc-enhancement.js +140 -0
- package/dist/lib/core/enhancement/go-grpc-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/go-web-enhancement.d.ts +42 -0
- package/dist/lib/core/enhancement/go-web-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/go-web-enhancement.js +186 -0
- package/dist/lib/core/enhancement/go-web-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/index.d.ts +25 -0
- package/dist/lib/core/enhancement/index.d.ts.map +1 -0
- package/dist/lib/core/enhancement/index.js +63 -0
- package/dist/lib/core/enhancement/index.js.map +1 -0
- package/dist/lib/core/enhancement/langchain-enhancement.d.ts +47 -0
- package/dist/lib/core/enhancement/langchain-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/langchain-enhancement.js +210 -0
- package/dist/lib/core/enhancement/langchain-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/ml-enhancement.d.ts +47 -0
- package/dist/lib/core/enhancement/ml-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/ml-enhancement.js +240 -0
- package/dist/lib/core/enhancement/ml-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/nextjs-enhancement.d.ts +47 -0
- package/dist/lib/core/enhancement/nextjs-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/nextjs-enhancement.js +201 -0
- package/dist/lib/core/enhancement/nextjs-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/node-server-enhancement.d.ts +45 -0
- package/dist/lib/core/enhancement/node-server-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/node-server-enhancement.js +242 -0
- package/dist/lib/core/enhancement/node-server-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/react-enhancement.d.ts +46 -0
- package/dist/lib/core/enhancement/react-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/react-enhancement.js +229 -0
- package/dist/lib/core/enhancement/react-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/rust-tokio-enhancement.d.ts +47 -0
- package/dist/lib/core/enhancement/rust-tokio-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/rust-tokio-enhancement.js +207 -0
- package/dist/lib/core/enhancement/rust-tokio-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/rust-web-enhancement.d.ts +45 -0
- package/dist/lib/core/enhancement/rust-web-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/rust-web-enhancement.js +229 -0
- package/dist/lib/core/enhancement/rust-web-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/spring-enhancement.d.ts +39 -0
- package/dist/lib/core/enhancement/spring-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/spring-enhancement.js +108 -0
- package/dist/lib/core/enhancement/spring-enhancement.js.map +1 -0
- package/dist/lib/core/enhancement/vue-enhancement.d.ts +54 -0
- package/dist/lib/core/enhancement/vue-enhancement.d.ts.map +1 -0
- package/dist/lib/core/enhancement/vue-enhancement.js +214 -0
- package/dist/lib/core/enhancement/vue-enhancement.js.map +1 -0
- package/dist/lib/core/gateway/Gateway.d.ts +135 -0
- package/dist/lib/core/gateway/Gateway.d.ts.map +1 -0
- package/dist/lib/core/gateway/Gateway.js +261 -0
- package/dist/lib/core/gateway/Gateway.js.map +1 -0
- package/dist/lib/core/gateway/GatewayActionRegistry.d.ts +35 -0
- package/dist/lib/core/gateway/GatewayActionRegistry.d.ts.map +1 -0
- package/dist/lib/core/gateway/GatewayActionRegistry.js +195 -0
- package/dist/lib/core/gateway/GatewayActionRegistry.js.map +1 -0
- package/dist/lib/core/permission/PermissionManager.d.ts +63 -0
- package/dist/lib/core/permission/PermissionManager.d.ts.map +1 -0
- package/dist/lib/core/permission/PermissionManager.js +221 -0
- package/dist/lib/core/permission/PermissionManager.js.map +1 -0
- package/dist/lib/domain/index.d.ts +14 -0
- package/dist/lib/domain/index.d.ts.map +1 -0
- package/dist/lib/domain/index.js +16 -0
- package/dist/lib/domain/index.js.map +1 -0
- package/dist/lib/domain/knowledge/KnowledgeEntry.d.ts +297 -0
- package/dist/lib/domain/knowledge/KnowledgeEntry.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/KnowledgeEntry.js +315 -0
- package/dist/lib/domain/knowledge/KnowledgeEntry.js.map +1 -0
- package/dist/lib/domain/knowledge/KnowledgeRepository.d.ts +36 -0
- package/dist/lib/domain/knowledge/KnowledgeRepository.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/KnowledgeRepository.js +46 -0
- package/dist/lib/domain/knowledge/KnowledgeRepository.js.map +1 -0
- package/dist/lib/domain/knowledge/Lifecycle.d.ts +50 -0
- package/dist/lib/domain/knowledge/Lifecycle.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/Lifecycle.js +91 -0
- package/dist/lib/domain/knowledge/Lifecycle.js.map +1 -0
- package/dist/lib/domain/knowledge/index.d.ts +13 -0
- package/dist/lib/domain/knowledge/index.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/index.js +17 -0
- package/dist/lib/domain/knowledge/index.js.map +1 -0
- package/dist/lib/domain/knowledge/values/Constraints.d.ts +84 -0
- package/dist/lib/domain/knowledge/values/Constraints.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/values/Constraints.js +115 -0
- package/dist/lib/domain/knowledge/values/Constraints.js.map +1 -0
- package/dist/lib/domain/knowledge/values/Content.d.ts +92 -0
- package/dist/lib/domain/knowledge/values/Content.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/values/Content.js +74 -0
- package/dist/lib/domain/knowledge/values/Content.js.map +1 -0
- package/dist/lib/domain/knowledge/values/Quality.d.ts +55 -0
- package/dist/lib/domain/knowledge/values/Quality.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/values/Quality.js +90 -0
- package/dist/lib/domain/knowledge/values/Quality.js.map +1 -0
- package/dist/lib/domain/knowledge/values/Reasoning.d.ts +47 -0
- package/dist/lib/domain/knowledge/values/Reasoning.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/values/Reasoning.js +75 -0
- package/dist/lib/domain/knowledge/values/Reasoning.js.map +1 -0
- package/dist/lib/domain/knowledge/values/Relations.d.ts +72 -0
- package/dist/lib/domain/knowledge/values/Relations.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/values/Relations.js +152 -0
- package/dist/lib/domain/knowledge/values/Relations.js.map +1 -0
- package/dist/lib/domain/knowledge/values/Stats.d.ts +55 -0
- package/dist/lib/domain/knowledge/values/Stats.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/values/Stats.js +74 -0
- package/dist/lib/domain/knowledge/values/Stats.js.map +1 -0
- package/dist/lib/domain/knowledge/values/index.d.ts +10 -0
- package/dist/lib/domain/knowledge/values/index.d.ts.map +1 -0
- package/dist/lib/domain/knowledge/values/index.js +10 -0
- package/dist/lib/domain/knowledge/values/index.js.map +1 -0
- package/dist/lib/domain/snippet/Snippet.d.ts +95 -0
- package/dist/lib/domain/snippet/Snippet.d.ts.map +1 -0
- package/dist/lib/domain/snippet/Snippet.js +110 -0
- package/dist/lib/domain/snippet/Snippet.js.map +1 -0
- package/dist/lib/domain/task/Task.d.ts +145 -0
- package/dist/lib/domain/task/Task.d.ts.map +1 -0
- package/dist/lib/domain/task/Task.js +259 -0
- package/dist/lib/domain/task/Task.js.map +1 -0
- package/dist/lib/domain/task/TaskDependency.d.ts +32 -0
- package/dist/lib/domain/task/TaskDependency.d.ts.map +1 -0
- package/dist/lib/domain/task/TaskDependency.js +43 -0
- package/dist/lib/domain/task/TaskDependency.js.map +1 -0
- package/dist/lib/domain/task/TaskIdGenerator.d.ts +43 -0
- package/dist/lib/domain/task/TaskIdGenerator.d.ts.map +1 -0
- package/dist/lib/domain/task/TaskIdGenerator.js +78 -0
- package/dist/lib/domain/task/TaskIdGenerator.js.map +1 -0
- package/dist/lib/domain/task/index.d.ts +7 -0
- package/dist/lib/domain/task/index.d.ts.map +1 -0
- package/dist/lib/domain/task/index.js +7 -0
- package/dist/lib/domain/task/index.js.map +1 -0
- package/dist/lib/external/ai/AiFactory.d.ts +66 -0
- package/dist/lib/external/ai/AiFactory.d.ts.map +1 -0
- package/dist/lib/external/ai/AiFactory.js +219 -0
- package/dist/lib/external/ai/AiFactory.js.map +1 -0
- package/dist/lib/external/ai/AiProvider.d.ts +311 -0
- package/dist/lib/external/ai/AiProvider.d.ts.map +1 -0
- package/dist/lib/external/ai/AiProvider.js +756 -0
- package/dist/lib/external/ai/AiProvider.js.map +1 -0
- package/dist/lib/external/ai/providers/ClaudeProvider.d.ts +40 -0
- package/dist/lib/external/ai/providers/ClaudeProvider.d.ts.map +1 -0
- package/dist/lib/external/ai/providers/ClaudeProvider.js +269 -0
- package/dist/lib/external/ai/providers/ClaudeProvider.js.map +1 -0
- package/dist/lib/external/ai/providers/GoogleGeminiProvider.d.ts +46 -0
- package/dist/lib/external/ai/providers/GoogleGeminiProvider.d.ts.map +1 -0
- package/dist/lib/external/ai/providers/GoogleGeminiProvider.js +402 -0
- package/dist/lib/external/ai/providers/GoogleGeminiProvider.js.map +1 -0
- package/dist/lib/external/ai/providers/MockProvider.d.ts +34 -0
- package/dist/lib/external/ai/providers/MockProvider.d.ts.map +1 -0
- package/dist/lib/external/ai/providers/MockProvider.js +59 -0
- package/dist/lib/external/ai/providers/MockProvider.js.map +1 -0
- package/dist/lib/external/ai/providers/OpenAiProvider.d.ts +43 -0
- package/dist/lib/external/ai/providers/OpenAiProvider.d.ts.map +1 -0
- package/dist/lib/external/ai/providers/OpenAiProvider.js +271 -0
- package/dist/lib/external/ai/providers/OpenAiProvider.js.map +1 -0
- package/dist/lib/external/mcp/McpServer.d.ts +127 -0
- package/dist/lib/external/mcp/McpServer.d.ts.map +1 -0
- package/dist/lib/external/mcp/McpServer.js +429 -0
- package/dist/lib/external/mcp/McpServer.js.map +1 -0
- package/dist/lib/external/mcp/autoApproveInjector.d.ts +59 -0
- package/dist/lib/external/mcp/autoApproveInjector.d.ts.map +1 -0
- package/dist/lib/external/mcp/autoApproveInjector.js +148 -0
- package/dist/lib/external/mcp/autoApproveInjector.js.map +1 -0
- package/dist/lib/external/mcp/envelope.d.ts +41 -0
- package/dist/lib/external/mcp/envelope.d.ts.map +1 -0
- package/dist/lib/external/mcp/envelope.js +24 -0
- package/dist/lib/external/mcp/envelope.js.map +1 -0
- package/dist/lib/external/mcp/errorHandler.d.ts +33 -0
- package/dist/lib/external/mcp/errorHandler.d.ts.map +1 -0
- package/dist/lib/external/mcp/errorHandler.js +123 -0
- package/dist/lib/external/mcp/errorHandler.js.map +1 -0
- package/dist/lib/external/mcp/handlers/LanguageExtensions.d.ts +33 -0
- package/dist/lib/external/mcp/handlers/LanguageExtensions.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/LanguageExtensions.js +941 -0
- package/dist/lib/external/mcp/handlers/LanguageExtensions.js.map +1 -0
- package/dist/lib/external/mcp/handlers/TargetClassifier.d.ts +12 -0
- package/dist/lib/external/mcp/handlers/TargetClassifier.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/TargetClassifier.js +69 -0
- package/dist/lib/external/mcp/handlers/TargetClassifier.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/BootstrapSession.d.ts +165 -0
- package/dist/lib/external/mcp/handlers/bootstrap/BootstrapSession.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/BootstrapSession.js +230 -0
- package/dist/lib/external/mcp/handlers/bootstrap/BootstrapSession.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/ExternalSubmissionTracker.d.ts +186 -0
- package/dist/lib/external/mcp/handlers/bootstrap/ExternalSubmissionTracker.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/ExternalSubmissionTracker.js +317 -0
- package/dist/lib/external/mcp/handlers/bootstrap/ExternalSubmissionTracker.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.d.ts +299 -0
- package/dist/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.js +817 -0
- package/dist/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/base-dimensions.d.ts +110 -0
- package/dist/lib/external/mcp/handlers/bootstrap/base-dimensions.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/base-dimensions.js +219 -0
- package/dist/lib/external/mcp/handlers/bootstrap/base-dimensions.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/BootstrapSnapshot.d.ts +168 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/BootstrapSnapshot.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/BootstrapSnapshot.js +535 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/BootstrapSnapshot.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/IncrementalBootstrap.d.ts +87 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/IncrementalBootstrap.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/IncrementalBootstrap.js +190 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/IncrementalBootstrap.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/checkpoint.d.ts +33 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/checkpoint.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/checkpoint.js +86 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/checkpoint.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.d.ts +148 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.js +186 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-context.d.ts +154 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-context.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-context.js +213 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/dimension-context.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.d.ts +170 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.js +728 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/orchestrator.d.ts +53 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/orchestrator.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/orchestrator.js +1287 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/orchestrator.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/tier-scheduler.d.ts +65 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/tier-scheduler.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/tier-scheduler.js +154 -0
- package/dist/lib/external/mcp/handlers/bootstrap/pipeline/tier-scheduler.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/refine.d.ts +35 -0
- package/dist/lib/external/mcp/handlers/bootstrap/refine.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/refine.js +343 -0
- package/dist/lib/external/mcp/handlers/bootstrap/refine.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.d.ts +378 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.js +786 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.d.ts +371 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.js +809 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-text.d.ts +172 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-text.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-text.js +212 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/dimension-text.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/skill-generator.d.ts +43 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/skill-generator.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/skill-generator.js +237 -0
- package/dist/lib/external/mcp/handlers/bootstrap/shared/skill-generator.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/skills.d.ts +68 -0
- package/dist/lib/external/mcp/handlers/bootstrap/skills.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap/skills.js +102 -0
- package/dist/lib/external/mcp/handlers/bootstrap/skills.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap-external.d.ts +82 -0
- package/dist/lib/external/mcp/handlers/bootstrap-external.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap-external.js +180 -0
- package/dist/lib/external/mcp/handlers/bootstrap-external.js.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap-internal.d.ts +111 -0
- package/dist/lib/external/mcp/handlers/bootstrap-internal.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/bootstrap-internal.js +393 -0
- package/dist/lib/external/mcp/handlers/bootstrap-internal.js.map +1 -0
- package/dist/lib/external/mcp/handlers/browse.d.ts +151 -0
- package/dist/lib/external/mcp/handlers/browse.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/browse.js +287 -0
- package/dist/lib/external/mcp/handlers/browse.js.map +1 -0
- package/dist/lib/external/mcp/handlers/candidate.d.ts +66 -0
- package/dist/lib/external/mcp/handlers/candidate.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/candidate.js +225 -0
- package/dist/lib/external/mcp/handlers/candidate.js.map +1 -0
- package/dist/lib/external/mcp/handlers/consolidated.d.ts +446 -0
- package/dist/lib/external/mcp/handlers/consolidated.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/consolidated.js +292 -0
- package/dist/lib/external/mcp/handlers/consolidated.js.map +1 -0
- package/dist/lib/external/mcp/handlers/dimension-complete-external.d.ts +57 -0
- package/dist/lib/external/mcp/handlers/dimension-complete-external.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/dimension-complete-external.js +407 -0
- package/dist/lib/external/mcp/handlers/dimension-complete-external.js.map +1 -0
- package/dist/lib/external/mcp/handlers/guard.d.ts +275 -0
- package/dist/lib/external/mcp/handlers/guard.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/guard.js +619 -0
- package/dist/lib/external/mcp/handlers/guard.js.map +1 -0
- package/dist/lib/external/mcp/handlers/knowledge.d.ts +110 -0
- package/dist/lib/external/mcp/handlers/knowledge.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/knowledge.js +338 -0
- package/dist/lib/external/mcp/handlers/knowledge.js.map +1 -0
- package/dist/lib/external/mcp/handlers/search.d.ts +139 -0
- package/dist/lib/external/mcp/handlers/search.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/search.js +265 -0
- package/dist/lib/external/mcp/handlers/search.js.map +1 -0
- package/dist/lib/external/mcp/handlers/skill.d.ts +83 -0
- package/dist/lib/external/mcp/handlers/skill.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/skill.js +633 -0
- package/dist/lib/external/mcp/handlers/skill.js.map +1 -0
- package/dist/lib/external/mcp/handlers/structure.d.ts +189 -0
- package/dist/lib/external/mcp/handlers/structure.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/structure.js +596 -0
- package/dist/lib/external/mcp/handlers/structure.js.map +1 -0
- package/dist/lib/external/mcp/handlers/system.d.ts +95 -0
- package/dist/lib/external/mcp/handlers/system.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/system.js +260 -0
- package/dist/lib/external/mcp/handlers/system.js.map +1 -0
- package/dist/lib/external/mcp/handlers/task.d.ts +58 -0
- package/dist/lib/external/mcp/handlers/task.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/task.js +652 -0
- package/dist/lib/external/mcp/handlers/task.js.map +1 -0
- package/dist/lib/external/mcp/handlers/types.d.ts +325 -0
- package/dist/lib/external/mcp/handlers/types.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/types.js +6 -0
- package/dist/lib/external/mcp/handlers/types.js.map +1 -0
- package/dist/lib/external/mcp/handlers/wiki-external.d.ts +93 -0
- package/dist/lib/external/mcp/handlers/wiki-external.d.ts.map +1 -0
- package/dist/lib/external/mcp/handlers/wiki-external.js +572 -0
- package/dist/lib/external/mcp/handlers/wiki-external.js.map +1 -0
- package/dist/lib/external/mcp/tools.d.ts +75 -0
- package/dist/lib/external/mcp/tools.d.ts.map +1 -0
- package/dist/lib/external/mcp/tools.js +241 -0
- package/dist/lib/external/mcp/tools.js.map +1 -0
- package/dist/lib/external/mcp/zodToMcpSchema.d.ts +32 -0
- package/dist/lib/external/mcp/zodToMcpSchema.d.ts.map +1 -0
- package/dist/lib/external/mcp/zodToMcpSchema.js +84 -0
- package/dist/lib/external/mcp/zodToMcpSchema.js.map +1 -0
- package/dist/lib/http/HttpServer.d.ts +83 -0
- package/dist/lib/http/HttpServer.d.ts.map +1 -0
- package/dist/lib/http/HttpServer.js +437 -0
- package/dist/lib/http/HttpServer.js.map +1 -0
- package/dist/lib/http/api-spec.d.ts +232 -0
- package/dist/lib/http/api-spec.d.ts.map +1 -0
- package/dist/lib/http/api-spec.js +191 -0
- package/dist/lib/http/api-spec.js.map +1 -0
- package/dist/lib/http/middleware/RateLimiter.d.ts +31 -0
- package/dist/lib/http/middleware/RateLimiter.d.ts.map +1 -0
- package/dist/lib/http/middleware/RateLimiter.js +60 -0
- package/dist/lib/http/middleware/RateLimiter.js.map +1 -0
- package/dist/lib/http/middleware/errorHandler.d.ts +25 -0
- package/dist/lib/http/middleware/errorHandler.d.ts.map +1 -0
- package/dist/lib/http/middleware/errorHandler.js +72 -0
- package/dist/lib/http/middleware/errorHandler.js.map +1 -0
- package/dist/lib/http/middleware/gatewayMiddleware.d.ts +17 -0
- package/dist/lib/http/middleware/gatewayMiddleware.d.ts.map +1 -0
- package/dist/lib/http/middleware/gatewayMiddleware.js +63 -0
- package/dist/lib/http/middleware/gatewayMiddleware.js.map +1 -0
- package/dist/lib/http/middleware/requestLogger.d.ts +25 -0
- package/dist/lib/http/middleware/requestLogger.d.ts.map +1 -0
- package/dist/lib/http/middleware/requestLogger.js +67 -0
- package/dist/lib/http/middleware/requestLogger.js.map +1 -0
- package/dist/lib/http/middleware/roleResolver.d.ts +23 -0
- package/dist/lib/http/middleware/roleResolver.d.ts.map +1 -0
- package/dist/lib/http/middleware/roleResolver.js +107 -0
- package/dist/lib/http/middleware/roleResolver.js.map +1 -0
- package/dist/lib/http/middleware/validate.d.ts +41 -0
- package/dist/lib/http/middleware/validate.d.ts.map +1 -0
- package/dist/lib/http/middleware/validate.js +92 -0
- package/dist/lib/http/middleware/validate.js.map +1 -0
- package/dist/lib/http/routes/ai.d.ts +7 -0
- package/dist/lib/http/routes/ai.d.ts.map +1 -0
- package/dist/lib/http/routes/ai.js +763 -0
- package/dist/lib/http/routes/ai.js.map +1 -0
- package/dist/lib/http/routes/auth.d.ts +15 -0
- package/dist/lib/http/routes/auth.d.ts.map +1 -0
- package/dist/lib/http/routes/auth.js +125 -0
- package/dist/lib/http/routes/auth.js.map +1 -0
- package/dist/lib/http/routes/candidates.d.ts +7 -0
- package/dist/lib/http/routes/candidates.d.ts.map +1 -0
- package/dist/lib/http/routes/candidates.js +720 -0
- package/dist/lib/http/routes/candidates.js.map +1 -0
- package/dist/lib/http/routes/commands.d.ts +7 -0
- package/dist/lib/http/routes/commands.d.ts.map +1 -0
- package/dist/lib/http/routes/commands.js +280 -0
- package/dist/lib/http/routes/commands.js.map +1 -0
- package/dist/lib/http/routes/extract.d.ts +7 -0
- package/dist/lib/http/routes/extract.d.ts.map +1 -0
- package/dist/lib/http/routes/extract.js +162 -0
- package/dist/lib/http/routes/extract.js.map +1 -0
- package/dist/lib/http/routes/guard.d.ts +13 -0
- package/dist/lib/http/routes/guard.d.ts.map +1 -0
- package/dist/lib/http/routes/guard.js +227 -0
- package/dist/lib/http/routes/guard.js.map +1 -0
- package/dist/lib/http/routes/guardRules.d.ts +7 -0
- package/dist/lib/http/routes/guardRules.d.ts.map +1 -0
- package/dist/lib/http/routes/guardRules.js +306 -0
- package/dist/lib/http/routes/guardRules.js.map +1 -0
- package/dist/lib/http/routes/health.d.ts +6 -0
- package/dist/lib/http/routes/health.d.ts.map +1 -0
- package/dist/lib/http/routes/health.js +31 -0
- package/dist/lib/http/routes/health.js.map +1 -0
- package/dist/lib/http/routes/knowledge.d.ts +8 -0
- package/dist/lib/http/routes/knowledge.d.ts.map +1 -0
- package/dist/lib/http/routes/knowledge.js +213 -0
- package/dist/lib/http/routes/knowledge.js.map +1 -0
- package/dist/lib/http/routes/modules.d.ts +9 -0
- package/dist/lib/http/routes/modules.d.ts.map +1 -0
- package/dist/lib/http/routes/modules.js +458 -0
- package/dist/lib/http/routes/modules.js.map +1 -0
- package/dist/lib/http/routes/monitoring.d.ts +7 -0
- package/dist/lib/http/routes/monitoring.d.ts.map +1 -0
- package/dist/lib/http/routes/monitoring.js +311 -0
- package/dist/lib/http/routes/monitoring.js.map +1 -0
- package/dist/lib/http/routes/recipes.d.ts +10 -0
- package/dist/lib/http/routes/recipes.d.ts.map +1 -0
- package/dist/lib/http/routes/recipes.js +144 -0
- package/dist/lib/http/routes/recipes.js.map +1 -0
- package/dist/lib/http/routes/remote.d.ts +41 -0
- package/dist/lib/http/routes/remote.d.ts.map +1 -0
- package/dist/lib/http/routes/remote.js +967 -0
- package/dist/lib/http/routes/remote.js.map +1 -0
- package/dist/lib/http/routes/search.d.ts +7 -0
- package/dist/lib/http/routes/search.d.ts.map +1 -0
- package/dist/lib/http/routes/search.js +330 -0
- package/dist/lib/http/routes/search.js.map +1 -0
- package/dist/lib/http/routes/skills.d.ts +7 -0
- package/dist/lib/http/routes/skills.d.ts.map +1 -0
- package/dist/lib/http/routes/skills.js +196 -0
- package/dist/lib/http/routes/skills.js.map +1 -0
- package/dist/lib/http/routes/snippets.d.ts +7 -0
- package/dist/lib/http/routes/snippets.d.ts.map +1 -0
- package/dist/lib/http/routes/snippets.js +50 -0
- package/dist/lib/http/routes/snippets.js.map +1 -0
- package/dist/lib/http/routes/task.d.ts +13 -0
- package/dist/lib/http/routes/task.d.ts.map +1 -0
- package/dist/lib/http/routes/task.js +383 -0
- package/dist/lib/http/routes/task.js.map +1 -0
- package/dist/lib/http/routes/violations.d.ts +7 -0
- package/dist/lib/http/routes/violations.d.ts.map +1 -0
- package/dist/lib/http/routes/violations.js +70 -0
- package/dist/lib/http/routes/violations.js.map +1 -0
- package/dist/lib/http/routes/wiki.d.ts +27 -0
- package/dist/lib/http/routes/wiki.d.ts.map +1 -0
- package/dist/lib/http/routes/wiki.js +312 -0
- package/dist/lib/http/routes/wiki.js.map +1 -0
- package/dist/lib/http/utils/routeHelpers.d.ts +48 -0
- package/dist/lib/http/utils/routeHelpers.d.ts.map +1 -0
- package/dist/lib/http/utils/routeHelpers.js +61 -0
- package/dist/lib/http/utils/routeHelpers.js.map +1 -0
- package/dist/lib/http/utils/sse-sessions.d.ts +59 -0
- package/dist/lib/http/utils/sse-sessions.d.ts.map +1 -0
- package/dist/lib/http/utils/sse-sessions.js +111 -0
- package/dist/lib/http/utils/sse-sessions.js.map +1 -0
- package/dist/lib/http/utils/sse.d.ts +50 -0
- package/dist/lib/http/utils/sse.d.ts.map +1 -0
- package/dist/lib/http/utils/sse.js +125 -0
- package/dist/lib/http/utils/sse.js.map +1 -0
- package/dist/lib/infrastructure/audit/AuditLogger.d.ts +123 -0
- package/dist/lib/infrastructure/audit/AuditLogger.d.ts.map +1 -0
- package/dist/lib/infrastructure/audit/AuditLogger.js +110 -0
- package/dist/lib/infrastructure/audit/AuditLogger.js.map +1 -0
- package/dist/lib/infrastructure/audit/AuditStore.d.ts +126 -0
- package/dist/lib/infrastructure/audit/AuditStore.d.ts.map +1 -0
- package/dist/lib/infrastructure/audit/AuditStore.js +194 -0
- package/dist/lib/infrastructure/audit/AuditStore.js.map +1 -0
- package/dist/lib/infrastructure/cache/CacheService.d.ts +69 -0
- package/dist/lib/infrastructure/cache/CacheService.d.ts.map +1 -0
- package/dist/lib/infrastructure/cache/CacheService.js +132 -0
- package/dist/lib/infrastructure/cache/CacheService.js.map +1 -0
- package/dist/lib/infrastructure/cache/GraphCache.d.ts +66 -0
- package/dist/lib/infrastructure/cache/GraphCache.d.ts.map +1 -0
- package/dist/lib/infrastructure/cache/GraphCache.js +141 -0
- package/dist/lib/infrastructure/cache/GraphCache.js.map +1 -0
- package/dist/lib/infrastructure/cache/UnifiedCacheAdapter.d.ts +61 -0
- package/dist/lib/infrastructure/cache/UnifiedCacheAdapter.d.ts.map +1 -0
- package/dist/lib/infrastructure/cache/UnifiedCacheAdapter.js +110 -0
- package/dist/lib/infrastructure/cache/UnifiedCacheAdapter.js.map +1 -0
- package/dist/lib/infrastructure/config/ConfigLoader.d.ts +20 -0
- package/dist/lib/infrastructure/config/ConfigLoader.d.ts.map +1 -0
- package/dist/lib/infrastructure/config/ConfigLoader.js +130 -0
- package/dist/lib/infrastructure/config/ConfigLoader.js.map +1 -0
- package/dist/lib/infrastructure/config/Defaults.d.ts +76 -0
- package/dist/lib/infrastructure/config/Defaults.d.ts.map +1 -0
- package/dist/lib/infrastructure/config/Defaults.js +84 -0
- package/dist/lib/infrastructure/config/Defaults.js.map +1 -0
- package/dist/lib/infrastructure/config/Paths.d.ts +97 -0
- package/dist/lib/infrastructure/config/Paths.d.ts.map +1 -0
- package/dist/lib/infrastructure/config/Paths.js +154 -0
- package/dist/lib/infrastructure/config/Paths.js.map +1 -0
- package/dist/lib/infrastructure/config/TriggerSymbol.d.ts +21 -0
- package/dist/lib/infrastructure/config/TriggerSymbol.d.ts.map +1 -0
- package/dist/lib/infrastructure/config/TriggerSymbol.js +67 -0
- package/dist/lib/infrastructure/config/TriggerSymbol.js.map +1 -0
- package/dist/lib/infrastructure/database/DatabaseConnection.d.ts +44 -0
- package/dist/lib/infrastructure/database/DatabaseConnection.d.ts.map +1 -0
- package/dist/lib/infrastructure/database/DatabaseConnection.js +152 -0
- package/dist/lib/infrastructure/database/DatabaseConnection.js.map +1 -0
- package/dist/lib/infrastructure/database/drizzle/index.d.ts +29 -0
- package/dist/lib/infrastructure/database/drizzle/index.d.ts.map +1 -0
- package/dist/lib/infrastructure/database/drizzle/index.js +40 -0
- package/dist/lib/infrastructure/database/drizzle/index.js.map +1 -0
- package/dist/lib/infrastructure/database/drizzle/schema.d.ts +3716 -0
- package/dist/lib/infrastructure/database/drizzle/schema.d.ts.map +1 -0
- package/dist/lib/infrastructure/database/drizzle/schema.js +373 -0
- package/dist/lib/infrastructure/database/drizzle/schema.js.map +1 -0
- package/dist/lib/infrastructure/database/migrations/001_initial_schema.d.ts +20 -0
- package/dist/lib/infrastructure/database/migrations/001_initial_schema.d.ts.map +1 -0
- package/dist/lib/infrastructure/database/migrations/001_initial_schema.js +306 -0
- package/dist/lib/infrastructure/database/migrations/001_initial_schema.js.map +1 -0
- package/dist/lib/infrastructure/database/migrations/002_add_tasks.d.ts +12 -0
- package/dist/lib/infrastructure/database/migrations/002_add_tasks.d.ts.map +1 -0
- package/dist/lib/infrastructure/database/migrations/002_add_tasks.js +87 -0
- package/dist/lib/infrastructure/database/migrations/002_add_tasks.js.map +1 -0
- package/dist/lib/infrastructure/database/migrations/003_add_remote_commands.d.ts +8 -0
- package/dist/lib/infrastructure/database/migrations/003_add_remote_commands.d.ts.map +1 -0
- package/dist/lib/infrastructure/database/migrations/003_add_remote_commands.js +28 -0
- package/dist/lib/infrastructure/database/migrations/003_add_remote_commands.js.map +1 -0
- package/dist/lib/infrastructure/event/EventBus.d.ts +45 -0
- package/dist/lib/infrastructure/event/EventBus.d.ts.map +1 -0
- package/dist/lib/infrastructure/event/EventBus.js +75 -0
- package/dist/lib/infrastructure/event/EventBus.js.map +1 -0
- package/dist/lib/infrastructure/external/ClipboardManager.d.ts +29 -0
- package/dist/lib/infrastructure/external/ClipboardManager.d.ts.map +1 -0
- package/dist/lib/infrastructure/external/ClipboardManager.js +151 -0
- package/dist/lib/infrastructure/external/ClipboardManager.js.map +1 -0
- package/dist/lib/infrastructure/external/NativeUi.d.ts +59 -0
- package/dist/lib/infrastructure/external/NativeUi.d.ts.map +1 -0
- package/dist/lib/infrastructure/external/NativeUi.js +290 -0
- package/dist/lib/infrastructure/external/NativeUi.js.map +1 -0
- package/dist/lib/infrastructure/external/OpenBrowser.d.ts +20 -0
- package/dist/lib/infrastructure/external/OpenBrowser.d.ts.map +1 -0
- package/dist/lib/infrastructure/external/OpenBrowser.js +122 -0
- package/dist/lib/infrastructure/external/OpenBrowser.js.map +1 -0
- package/dist/lib/infrastructure/logging/Logger.d.ts +34 -0
- package/dist/lib/infrastructure/logging/Logger.d.ts.map +1 -0
- package/dist/lib/infrastructure/logging/Logger.js +156 -0
- package/dist/lib/infrastructure/logging/Logger.js.map +1 -0
- package/dist/lib/infrastructure/monitoring/ErrorTracker.d.ts +158 -0
- package/dist/lib/infrastructure/monitoring/ErrorTracker.d.ts.map +1 -0
- package/dist/lib/infrastructure/monitoring/ErrorTracker.js +295 -0
- package/dist/lib/infrastructure/monitoring/ErrorTracker.js.map +1 -0
- package/dist/lib/infrastructure/monitoring/PerformanceMonitor.d.ts +121 -0
- package/dist/lib/infrastructure/monitoring/PerformanceMonitor.d.ts.map +1 -0
- package/dist/lib/infrastructure/monitoring/PerformanceMonitor.js +250 -0
- package/dist/lib/infrastructure/monitoring/PerformanceMonitor.js.map +1 -0
- package/dist/lib/infrastructure/paths/HeaderResolver.d.ts +45 -0
- package/dist/lib/infrastructure/paths/HeaderResolver.d.ts.map +1 -0
- package/dist/lib/infrastructure/paths/HeaderResolver.js +102 -0
- package/dist/lib/infrastructure/paths/HeaderResolver.js.map +1 -0
- package/dist/lib/infrastructure/paths/PathFinder.d.ts +38 -0
- package/dist/lib/infrastructure/paths/PathFinder.d.ts.map +1 -0
- package/dist/lib/infrastructure/paths/PathFinder.js +127 -0
- package/dist/lib/infrastructure/paths/PathFinder.js.map +1 -0
- package/dist/lib/infrastructure/realtime/RealtimeService.d.ts +59 -0
- package/dist/lib/infrastructure/realtime/RealtimeService.d.ts.map +1 -0
- package/dist/lib/infrastructure/realtime/RealtimeService.js +160 -0
- package/dist/lib/infrastructure/realtime/RealtimeService.js.map +1 -0
- package/dist/lib/infrastructure/vector/ASTChunker.d.ts +73 -0
- package/dist/lib/infrastructure/vector/ASTChunker.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/ASTChunker.js +389 -0
- package/dist/lib/infrastructure/vector/ASTChunker.js.map +1 -0
- package/dist/lib/infrastructure/vector/AsyncPersistence.d.ts +90 -0
- package/dist/lib/infrastructure/vector/AsyncPersistence.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/AsyncPersistence.js +292 -0
- package/dist/lib/infrastructure/vector/AsyncPersistence.js.map +1 -0
- package/dist/lib/infrastructure/vector/BatchEmbedder.d.ts +42 -0
- package/dist/lib/infrastructure/vector/BatchEmbedder.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/BatchEmbedder.js +130 -0
- package/dist/lib/infrastructure/vector/BatchEmbedder.js.map +1 -0
- package/dist/lib/infrastructure/vector/BinaryPersistence.d.ts +169 -0
- package/dist/lib/infrastructure/vector/BinaryPersistence.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/BinaryPersistence.js +394 -0
- package/dist/lib/infrastructure/vector/BinaryPersistence.js.map +1 -0
- package/dist/lib/infrastructure/vector/Chunker.d.ts +34 -0
- package/dist/lib/infrastructure/vector/Chunker.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/Chunker.js +203 -0
- package/dist/lib/infrastructure/vector/Chunker.js.map +1 -0
- package/dist/lib/infrastructure/vector/HnswIndex.d.ts +208 -0
- package/dist/lib/infrastructure/vector/HnswIndex.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/HnswIndex.js +660 -0
- package/dist/lib/infrastructure/vector/HnswIndex.js.map +1 -0
- package/dist/lib/infrastructure/vector/HnswVectorAdapter.d.ts +145 -0
- package/dist/lib/infrastructure/vector/HnswVectorAdapter.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/HnswVectorAdapter.js +747 -0
- package/dist/lib/infrastructure/vector/HnswVectorAdapter.js.map +1 -0
- package/dist/lib/infrastructure/vector/IndexingPipeline.d.ts +68 -0
- package/dist/lib/infrastructure/vector/IndexingPipeline.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/IndexingPipeline.js +236 -0
- package/dist/lib/infrastructure/vector/IndexingPipeline.js.map +1 -0
- package/dist/lib/infrastructure/vector/JsonVectorAdapter.d.ts +80 -0
- package/dist/lib/infrastructure/vector/JsonVectorAdapter.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/JsonVectorAdapter.js +253 -0
- package/dist/lib/infrastructure/vector/JsonVectorAdapter.js.map +1 -0
- package/dist/lib/infrastructure/vector/ScalarQuantizer.d.ts +88 -0
- package/dist/lib/infrastructure/vector/ScalarQuantizer.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/ScalarQuantizer.js +202 -0
- package/dist/lib/infrastructure/vector/ScalarQuantizer.js.map +1 -0
- package/dist/lib/infrastructure/vector/VectorMigration.d.ts +34 -0
- package/dist/lib/infrastructure/vector/VectorMigration.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/VectorMigration.js +87 -0
- package/dist/lib/infrastructure/vector/VectorMigration.js.map +1 -0
- package/dist/lib/infrastructure/vector/VectorStore.d.ts +81 -0
- package/dist/lib/infrastructure/vector/VectorStore.d.ts.map +1 -0
- package/dist/lib/infrastructure/vector/VectorStore.js +89 -0
- package/dist/lib/infrastructure/vector/VectorStore.js.map +1 -0
- package/dist/lib/injection/ServiceContainer.d.ts +99 -0
- package/dist/lib/injection/ServiceContainer.d.ts.map +1 -0
- package/dist/lib/injection/ServiceContainer.js +463 -0
- package/dist/lib/injection/ServiceContainer.js.map +1 -0
- package/dist/lib/injection/modules/AgentModule.d.ts +11 -0
- package/dist/lib/injection/modules/AgentModule.d.ts.map +1 -0
- package/dist/lib/injection/modules/AgentModule.js +34 -0
- package/dist/lib/injection/modules/AgentModule.js.map +1 -0
- package/dist/lib/injection/modules/AppModule.d.ts +20 -0
- package/dist/lib/injection/modules/AppModule.d.ts.map +1 -0
- package/dist/lib/injection/modules/AppModule.js +100 -0
- package/dist/lib/injection/modules/AppModule.js.map +1 -0
- package/dist/lib/injection/modules/GuardModule.d.ts +13 -0
- package/dist/lib/injection/modules/GuardModule.d.ts.map +1 -0
- package/dist/lib/injection/modules/GuardModule.js +56 -0
- package/dist/lib/injection/modules/GuardModule.js.map +1 -0
- package/dist/lib/injection/modules/InfraModule.d.ts +14 -0
- package/dist/lib/injection/modules/InfraModule.d.ts.map +1 -0
- package/dist/lib/injection/modules/InfraModule.js +76 -0
- package/dist/lib/injection/modules/InfraModule.js.map +1 -0
- package/dist/lib/injection/modules/KnowledgeModule.d.ts +14 -0
- package/dist/lib/injection/modules/KnowledgeModule.d.ts.map +1 -0
- package/dist/lib/injection/modules/KnowledgeModule.js +133 -0
- package/dist/lib/injection/modules/KnowledgeModule.js.map +1 -0
- package/dist/lib/platform/ScreenCaptureService.d.ts +74 -0
- package/dist/lib/platform/ScreenCaptureService.d.ts.map +1 -0
- package/dist/lib/platform/ScreenCaptureService.js +161 -0
- package/dist/lib/platform/ScreenCaptureService.js.map +1 -0
- package/dist/lib/platform/ios/index.d.ts +39 -0
- package/dist/lib/platform/ios/index.d.ts.map +1 -0
- package/dist/lib/platform/ios/index.js +43 -0
- package/dist/lib/platform/ios/index.js.map +1 -0
- package/dist/lib/platform/ios/routes/spm.d.ts +10 -0
- package/dist/lib/platform/ios/routes/spm.d.ts.map +1 -0
- package/dist/lib/platform/ios/routes/spm.js +374 -0
- package/dist/lib/platform/ios/routes/spm.js.map +1 -0
- package/dist/lib/platform/ios/snippet/PlaceholderConverter.d.ts +30 -0
- package/dist/lib/platform/ios/snippet/PlaceholderConverter.d.ts.map +1 -0
- package/dist/lib/platform/ios/snippet/PlaceholderConverter.js +57 -0
- package/dist/lib/platform/ios/snippet/PlaceholderConverter.js.map +1 -0
- package/dist/lib/platform/ios/snippet/XcodeCodec.d.ts +30 -0
- package/dist/lib/platform/ios/snippet/XcodeCodec.d.ts.map +1 -0
- package/dist/lib/platform/ios/snippet/XcodeCodec.js +103 -0
- package/dist/lib/platform/ios/snippet/XcodeCodec.js.map +1 -0
- package/dist/lib/platform/ios/spm/DependencyGraph.d.ts +71 -0
- package/dist/lib/platform/ios/spm/DependencyGraph.d.ts.map +1 -0
- package/dist/lib/platform/ios/spm/DependencyGraph.js +210 -0
- package/dist/lib/platform/ios/spm/DependencyGraph.js.map +1 -0
- package/dist/lib/platform/ios/spm/PackageSwiftParser.d.ts +76 -0
- package/dist/lib/platform/ios/spm/PackageSwiftParser.d.ts.map +1 -0
- package/dist/lib/platform/ios/spm/PackageSwiftParser.js +238 -0
- package/dist/lib/platform/ios/spm/PackageSwiftParser.js.map +1 -0
- package/dist/lib/platform/ios/spm/PolicyEngine.d.ts +49 -0
- package/dist/lib/platform/ios/spm/PolicyEngine.d.ts.map +1 -0
- package/dist/lib/platform/ios/spm/PolicyEngine.js +84 -0
- package/dist/lib/platform/ios/spm/PolicyEngine.js.map +1 -0
- package/dist/lib/platform/ios/spm/SpmDiscoverer.d.ts +56 -0
- package/dist/lib/platform/ios/spm/SpmDiscoverer.d.ts.map +1 -0
- package/dist/lib/platform/ios/spm/SpmDiscoverer.js +312 -0
- package/dist/lib/platform/ios/spm/SpmDiscoverer.js.map +1 -0
- package/dist/lib/platform/ios/spm/SpmHelper.d.ts +106 -0
- package/dist/lib/platform/ios/spm/SpmHelper.d.ts.map +1 -0
- package/dist/lib/platform/ios/spm/SpmHelper.js +479 -0
- package/dist/lib/platform/ios/spm/SpmHelper.js.map +1 -0
- package/dist/lib/platform/ios/xcode/SaveEventFilter.d.ts +69 -0
- package/dist/lib/platform/ios/xcode/SaveEventFilter.d.ts.map +1 -0
- package/dist/lib/platform/ios/xcode/SaveEventFilter.js +145 -0
- package/dist/lib/platform/ios/xcode/SaveEventFilter.js.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeAutomation.d.ts +76 -0
- package/dist/lib/platform/ios/xcode/XcodeAutomation.d.ts.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeAutomation.js +333 -0
- package/dist/lib/platform/ios/xcode/XcodeAutomation.js.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeImportResolver.d.ts +138 -0
- package/dist/lib/platform/ios/xcode/XcodeImportResolver.d.ts.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeImportResolver.js +412 -0
- package/dist/lib/platform/ios/xcode/XcodeImportResolver.js.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeIntegration.d.ts +98 -0
- package/dist/lib/platform/ios/xcode/XcodeIntegration.d.ts.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeIntegration.js +597 -0
- package/dist/lib/platform/ios/xcode/XcodeIntegration.js.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeWriteUtils.d.ts +105 -0
- package/dist/lib/platform/ios/xcode/XcodeWriteUtils.d.ts.map +1 -0
- package/dist/lib/platform/ios/xcode/XcodeWriteUtils.js +196 -0
- package/dist/lib/platform/ios/xcode/XcodeWriteUtils.js.map +1 -0
- package/dist/lib/repository/base/BaseRepository.d.ts +72 -0
- package/dist/lib/repository/base/BaseRepository.d.ts.map +1 -0
- package/dist/lib/repository/base/BaseRepository.js +245 -0
- package/dist/lib/repository/base/BaseRepository.js.map +1 -0
- package/dist/lib/repository/knowledge/KnowledgeRepository.impl.d.ts +200 -0
- package/dist/lib/repository/knowledge/KnowledgeRepository.impl.d.ts.map +1 -0
- package/dist/lib/repository/knowledge/KnowledgeRepository.impl.js +321 -0
- package/dist/lib/repository/knowledge/KnowledgeRepository.impl.js.map +1 -0
- package/dist/lib/repository/remote/RemoteCommandRepository.d.ts +115 -0
- package/dist/lib/repository/remote/RemoteCommandRepository.d.ts.map +1 -0
- package/dist/lib/repository/remote/RemoteCommandRepository.js +242 -0
- package/dist/lib/repository/remote/RemoteCommandRepository.js.map +1 -0
- package/dist/lib/repository/task/TaskRepository.impl.d.ts +189 -0
- package/dist/lib/repository/task/TaskRepository.impl.d.ts.map +1 -0
- package/dist/lib/repository/task/TaskRepository.impl.js +369 -0
- package/dist/lib/repository/task/TaskRepository.impl.js.map +1 -0
- package/dist/lib/repository/token/TokenUsageStore.d.ts +91 -0
- package/dist/lib/repository/token/TokenUsageStore.d.ts.map +1 -0
- package/dist/lib/repository/token/TokenUsageStore.js +160 -0
- package/dist/lib/repository/token/TokenUsageStore.js.map +1 -0
- package/dist/lib/service/agent/AgentEventBus.d.ts +103 -0
- package/dist/lib/service/agent/AgentEventBus.d.ts.map +1 -0
- package/dist/lib/service/agent/AgentEventBus.js +187 -0
- package/dist/lib/service/agent/AgentEventBus.js.map +1 -0
- package/dist/lib/service/agent/AgentFactory.d.ts +251 -0
- package/dist/lib/service/agent/AgentFactory.d.ts.map +1 -0
- package/dist/lib/service/agent/AgentFactory.js +494 -0
- package/dist/lib/service/agent/AgentFactory.js.map +1 -0
- package/dist/lib/service/agent/AgentMessage.d.ts +226 -0
- package/dist/lib/service/agent/AgentMessage.d.ts.map +1 -0
- package/dist/lib/service/agent/AgentMessage.js +227 -0
- package/dist/lib/service/agent/AgentMessage.js.map +1 -0
- package/dist/lib/service/agent/AgentRouter.d.ts +86 -0
- package/dist/lib/service/agent/AgentRouter.d.ts.map +1 -0
- package/dist/lib/service/agent/AgentRouter.js +224 -0
- package/dist/lib/service/agent/AgentRouter.js.map +1 -0
- package/dist/lib/service/agent/AgentRuntime.d.ts +247 -0
- package/dist/lib/service/agent/AgentRuntime.d.ts.map +1 -0
- package/dist/lib/service/agent/AgentRuntime.js +947 -0
- package/dist/lib/service/agent/AgentRuntime.js.map +1 -0
- package/dist/lib/service/agent/AgentState.d.ts +120 -0
- package/dist/lib/service/agent/AgentState.d.ts.map +1 -0
- package/dist/lib/service/agent/AgentState.js +198 -0
- package/dist/lib/service/agent/AgentState.js.map +1 -0
- package/dist/lib/service/agent/ConversationStore.d.ts +120 -0
- package/dist/lib/service/agent/ConversationStore.d.ts.map +1 -0
- package/dist/lib/service/agent/ConversationStore.js +373 -0
- package/dist/lib/service/agent/ConversationStore.js.map +1 -0
- package/dist/lib/service/agent/IntentClassifier.d.ts +64 -0
- package/dist/lib/service/agent/IntentClassifier.d.ts.map +1 -0
- package/dist/lib/service/agent/IntentClassifier.js +307 -0
- package/dist/lib/service/agent/IntentClassifier.js.map +1 -0
- package/dist/lib/service/agent/LarkTransport.d.ts +104 -0
- package/dist/lib/service/agent/LarkTransport.d.ts.map +1 -0
- package/dist/lib/service/agent/LarkTransport.js +486 -0
- package/dist/lib/service/agent/LarkTransport.js.map +1 -0
- package/dist/lib/service/agent/PipelineStrategy.d.ts +114 -0
- package/dist/lib/service/agent/PipelineStrategy.d.ts.map +1 -0
- package/dist/lib/service/agent/PipelineStrategy.js +402 -0
- package/dist/lib/service/agent/PipelineStrategy.js.map +1 -0
- package/dist/lib/service/agent/capabilities.d.ts +207 -0
- package/dist/lib/service/agent/capabilities.d.ts.map +1 -0
- package/dist/lib/service/agent/capabilities.js +405 -0
- package/dist/lib/service/agent/capabilities.js.map +1 -0
- package/dist/lib/service/agent/context/ContextWindow.d.ts +192 -0
- package/dist/lib/service/agent/context/ContextWindow.d.ts.map +1 -0
- package/dist/lib/service/agent/context/ContextWindow.js +610 -0
- package/dist/lib/service/agent/context/ContextWindow.js.map +1 -0
- package/dist/lib/service/agent/context/ExplorationTracker.d.ts +181 -0
- package/dist/lib/service/agent/context/ExplorationTracker.d.ts.map +1 -0
- package/dist/lib/service/agent/context/ExplorationTracker.js +494 -0
- package/dist/lib/service/agent/context/ExplorationTracker.js.map +1 -0
- package/dist/lib/service/agent/context/exploration/ExplorationStrategies.d.ts +173 -0
- package/dist/lib/service/agent/context/exploration/ExplorationStrategies.d.ts.map +1 -0
- package/dist/lib/service/agent/context/exploration/ExplorationStrategies.js +119 -0
- package/dist/lib/service/agent/context/exploration/ExplorationStrategies.js.map +1 -0
- package/dist/lib/service/agent/context/exploration/NudgeGenerator.d.ts +79 -0
- package/dist/lib/service/agent/context/exploration/NudgeGenerator.d.ts.map +1 -0
- package/dist/lib/service/agent/context/exploration/NudgeGenerator.js +307 -0
- package/dist/lib/service/agent/context/exploration/NudgeGenerator.js.map +1 -0
- package/dist/lib/service/agent/context/exploration/PlanTracker.d.ts +91 -0
- package/dist/lib/service/agent/context/exploration/PlanTracker.d.ts.map +1 -0
- package/dist/lib/service/agent/context/exploration/PlanTracker.js +303 -0
- package/dist/lib/service/agent/context/exploration/PlanTracker.js.map +1 -0
- package/dist/lib/service/agent/context/exploration/SignalDetector.d.ts +38 -0
- package/dist/lib/service/agent/context/exploration/SignalDetector.d.ts.map +1 -0
- package/dist/lib/service/agent/context/exploration/SignalDetector.js +164 -0
- package/dist/lib/service/agent/context/exploration/SignalDetector.js.map +1 -0
- package/dist/lib/service/agent/core/ChatAgentPrompts.d.ts +52 -0
- package/dist/lib/service/agent/core/ChatAgentPrompts.d.ts.map +1 -0
- package/dist/lib/service/agent/core/ChatAgentPrompts.js +151 -0
- package/dist/lib/service/agent/core/ChatAgentPrompts.js.map +1 -0
- package/dist/lib/service/agent/core/LLMResultType.d.ts +32 -0
- package/dist/lib/service/agent/core/LLMResultType.d.ts.map +1 -0
- package/dist/lib/service/agent/core/LLMResultType.js +32 -0
- package/dist/lib/service/agent/core/LLMResultType.js.map +1 -0
- package/dist/lib/service/agent/core/LoopContext.d.ts +158 -0
- package/dist/lib/service/agent/core/LoopContext.d.ts.map +1 -0
- package/dist/lib/service/agent/core/LoopContext.js +139 -0
- package/dist/lib/service/agent/core/LoopContext.js.map +1 -0
- package/dist/lib/service/agent/core/MessageAdapter.d.ts +154 -0
- package/dist/lib/service/agent/core/MessageAdapter.d.ts.map +1 -0
- package/dist/lib/service/agent/core/MessageAdapter.js +206 -0
- package/dist/lib/service/agent/core/MessageAdapter.js.map +1 -0
- package/dist/lib/service/agent/core/SystemPromptBuilder.d.ts +86 -0
- package/dist/lib/service/agent/core/SystemPromptBuilder.d.ts.map +1 -0
- package/dist/lib/service/agent/core/SystemPromptBuilder.js +115 -0
- package/dist/lib/service/agent/core/SystemPromptBuilder.js.map +1 -0
- package/dist/lib/service/agent/core/ToolExecutionPipeline.d.ts +186 -0
- package/dist/lib/service/agent/core/ToolExecutionPipeline.d.ts.map +1 -0
- package/dist/lib/service/agent/core/ToolExecutionPipeline.js +334 -0
- package/dist/lib/service/agent/core/ToolExecutionPipeline.js.map +1 -0
- package/dist/lib/service/agent/domain/ChatAgentTasks.d.ts +134 -0
- package/dist/lib/service/agent/domain/ChatAgentTasks.d.ts.map +1 -0
- package/dist/lib/service/agent/domain/ChatAgentTasks.js +182 -0
- package/dist/lib/service/agent/domain/ChatAgentTasks.js.map +1 -0
- package/dist/lib/service/agent/domain/EpisodicConsolidator.d.ts +110 -0
- package/dist/lib/service/agent/domain/EpisodicConsolidator.d.ts.map +1 -0
- package/dist/lib/service/agent/domain/EpisodicConsolidator.js +317 -0
- package/dist/lib/service/agent/domain/EpisodicConsolidator.js.map +1 -0
- package/dist/lib/service/agent/domain/EvidenceCollector.d.ts +152 -0
- package/dist/lib/service/agent/domain/EvidenceCollector.d.ts.map +1 -0
- package/dist/lib/service/agent/domain/EvidenceCollector.js +478 -0
- package/dist/lib/service/agent/domain/EvidenceCollector.js.map +1 -0
- package/dist/lib/service/agent/domain/insight-analyst.d.ts +96 -0
- package/dist/lib/service/agent/domain/insight-analyst.d.ts.map +1 -0
- package/dist/lib/service/agent/domain/insight-analyst.js +224 -0
- package/dist/lib/service/agent/domain/insight-analyst.js.map +1 -0
- package/dist/lib/service/agent/domain/insight-gate.d.ts +223 -0
- package/dist/lib/service/agent/domain/insight-gate.d.ts.map +1 -0
- package/dist/lib/service/agent/domain/insight-gate.js +417 -0
- package/dist/lib/service/agent/domain/insight-gate.js.map +1 -0
- package/dist/lib/service/agent/domain/insight-producer.d.ts +123 -0
- package/dist/lib/service/agent/domain/insight-producer.d.ts.map +1 -0
- package/dist/lib/service/agent/domain/insight-producer.js +243 -0
- package/dist/lib/service/agent/domain/insight-producer.js.map +1 -0
- package/dist/lib/service/agent/domain/scan-prompts.d.ts +145 -0
- package/dist/lib/service/agent/domain/scan-prompts.d.ts.map +1 -0
- package/dist/lib/service/agent/domain/scan-prompts.js +413 -0
- package/dist/lib/service/agent/domain/scan-prompts.js.map +1 -0
- package/dist/lib/service/agent/forced-summary.d.ts +79 -0
- package/dist/lib/service/agent/forced-summary.d.ts.map +1 -0
- package/dist/lib/service/agent/forced-summary.js +310 -0
- package/dist/lib/service/agent/forced-summary.js.map +1 -0
- package/dist/lib/service/agent/index.d.ts +61 -0
- package/dist/lib/service/agent/index.d.ts.map +1 -0
- package/dist/lib/service/agent/index.js +67 -0
- package/dist/lib/service/agent/index.js.map +1 -0
- package/dist/lib/service/agent/memory/ActiveContext.d.ts +383 -0
- package/dist/lib/service/agent/memory/ActiveContext.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/ActiveContext.js +890 -0
- package/dist/lib/service/agent/memory/ActiveContext.js.map +1 -0
- package/dist/lib/service/agent/memory/MemoryConsolidator.d.ts +70 -0
- package/dist/lib/service/agent/memory/MemoryConsolidator.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/MemoryConsolidator.js +335 -0
- package/dist/lib/service/agent/memory/MemoryConsolidator.js.map +1 -0
- package/dist/lib/service/agent/memory/MemoryCoordinator.d.ts +245 -0
- package/dist/lib/service/agent/memory/MemoryCoordinator.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/MemoryCoordinator.js +637 -0
- package/dist/lib/service/agent/memory/MemoryCoordinator.js.map +1 -0
- package/dist/lib/service/agent/memory/MemoryRetriever.d.ts +123 -0
- package/dist/lib/service/agent/memory/MemoryRetriever.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/MemoryRetriever.js +260 -0
- package/dist/lib/service/agent/memory/MemoryRetriever.js.map +1 -0
- package/dist/lib/service/agent/memory/MemoryStore.d.ts +230 -0
- package/dist/lib/service/agent/memory/MemoryStore.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/MemoryStore.js +481 -0
- package/dist/lib/service/agent/memory/MemoryStore.js.map +1 -0
- package/dist/lib/service/agent/memory/PersistentMemory.d.ts +117 -0
- package/dist/lib/service/agent/memory/PersistentMemory.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/PersistentMemory.js +162 -0
- package/dist/lib/service/agent/memory/PersistentMemory.js.map +1 -0
- package/dist/lib/service/agent/memory/SessionStore.d.ts +298 -0
- package/dist/lib/service/agent/memory/SessionStore.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/SessionStore.js +803 -0
- package/dist/lib/service/agent/memory/SessionStore.js.map +1 -0
- package/dist/lib/service/agent/memory/index.d.ts +17 -0
- package/dist/lib/service/agent/memory/index.d.ts.map +1 -0
- package/dist/lib/service/agent/memory/index.js +18 -0
- package/dist/lib/service/agent/memory/index.js.map +1 -0
- package/dist/lib/service/agent/policies.d.ts +294 -0
- package/dist/lib/service/agent/policies.d.ts.map +1 -0
- package/dist/lib/service/agent/policies.js +424 -0
- package/dist/lib/service/agent/policies.js.map +1 -0
- package/dist/lib/service/agent/presets.d.ts +381 -0
- package/dist/lib/service/agent/presets.d.ts.map +1 -0
- package/dist/lib/service/agent/presets.js +308 -0
- package/dist/lib/service/agent/presets.js.map +1 -0
- package/dist/lib/service/agent/strategies.d.ts +208 -0
- package/dist/lib/service/agent/strategies.d.ts.map +1 -0
- package/dist/lib/service/agent/strategies.js +316 -0
- package/dist/lib/service/agent/strategies.js.map +1 -0
- package/dist/lib/service/agent/tools/ToolRegistry.d.ts +68 -0
- package/dist/lib/service/agent/tools/ToolRegistry.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/ToolRegistry.js +200 -0
- package/dist/lib/service/agent/tools/ToolRegistry.js.map +1 -0
- package/dist/lib/service/agent/tools/_shared.d.ts +73 -0
- package/dist/lib/service/agent/tools/_shared.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/_shared.js +50 -0
- package/dist/lib/service/agent/tools/_shared.js.map +1 -0
- package/dist/lib/service/agent/tools/ai-analysis.d.ts +81 -0
- package/dist/lib/service/agent/tools/ai-analysis.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/ai-analysis.js +63 -0
- package/dist/lib/service/agent/tools/ai-analysis.js.map +1 -0
- package/dist/lib/service/agent/tools/ast-graph.d.ts +242 -0
- package/dist/lib/service/agent/tools/ast-graph.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/ast-graph.js +799 -0
- package/dist/lib/service/agent/tools/ast-graph.js.map +1 -0
- package/dist/lib/service/agent/tools/composite.d.ts +397 -0
- package/dist/lib/service/agent/tools/composite.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/composite.js +522 -0
- package/dist/lib/service/agent/tools/composite.js.map +1 -0
- package/dist/lib/service/agent/tools/guard.d.ts +125 -0
- package/dist/lib/service/agent/tools/guard.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/guard.js +125 -0
- package/dist/lib/service/agent/tools/guard.js.map +1 -0
- package/dist/lib/service/agent/tools/index.d.ts +1908 -0
- package/dist/lib/service/agent/tools/index.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/index.js +137 -0
- package/dist/lib/service/agent/tools/index.js.map +1 -0
- package/dist/lib/service/agent/tools/infrastructure.d.ts +198 -0
- package/dist/lib/service/agent/tools/infrastructure.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/infrastructure.js +223 -0
- package/dist/lib/service/agent/tools/infrastructure.js.map +1 -0
- package/dist/lib/service/agent/tools/knowledge-graph.d.ts +91 -0
- package/dist/lib/service/agent/tools/knowledge-graph.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/knowledge-graph.js +97 -0
- package/dist/lib/service/agent/tools/knowledge-graph.js.map +1 -0
- package/dist/lib/service/agent/tools/lifecycle.d.ts +382 -0
- package/dist/lib/service/agent/tools/lifecycle.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/lifecycle.js +453 -0
- package/dist/lib/service/agent/tools/lifecycle.js.map +1 -0
- package/dist/lib/service/agent/tools/project-access.d.ts +392 -0
- package/dist/lib/service/agent/tools/project-access.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/project-access.js +823 -0
- package/dist/lib/service/agent/tools/project-access.js.map +1 -0
- package/dist/lib/service/agent/tools/query.d.ts +181 -0
- package/dist/lib/service/agent/tools/query.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/query.js +244 -0
- package/dist/lib/service/agent/tools/query.js.map +1 -0
- package/dist/lib/service/agent/tools/scan-recipe.d.ts +186 -0
- package/dist/lib/service/agent/tools/scan-recipe.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/scan-recipe.js +195 -0
- package/dist/lib/service/agent/tools/scan-recipe.js.map +1 -0
- package/dist/lib/service/agent/tools/system-interaction.d.ts +154 -0
- package/dist/lib/service/agent/tools/system-interaction.d.ts.map +1 -0
- package/dist/lib/service/agent/tools/system-interaction.js +457 -0
- package/dist/lib/service/agent/tools/system-interaction.js.map +1 -0
- package/dist/lib/service/automation/ActionPipeline.d.ts +38 -0
- package/dist/lib/service/automation/ActionPipeline.d.ts.map +1 -0
- package/dist/lib/service/automation/ActionPipeline.js +57 -0
- package/dist/lib/service/automation/ActionPipeline.js.map +1 -0
- package/dist/lib/service/automation/AutomationOrchestrator.d.ts +93 -0
- package/dist/lib/service/automation/AutomationOrchestrator.d.ts.map +1 -0
- package/dist/lib/service/automation/AutomationOrchestrator.js +64 -0
- package/dist/lib/service/automation/AutomationOrchestrator.js.map +1 -0
- package/dist/lib/service/automation/ContextCollector.d.ts +25 -0
- package/dist/lib/service/automation/ContextCollector.d.ts.map +1 -0
- package/dist/lib/service/automation/ContextCollector.js +36 -0
- package/dist/lib/service/automation/ContextCollector.js.map +1 -0
- package/dist/lib/service/automation/DirectiveDetector.d.ts +56 -0
- package/dist/lib/service/automation/DirectiveDetector.d.ts.map +1 -0
- package/dist/lib/service/automation/DirectiveDetector.js +121 -0
- package/dist/lib/service/automation/DirectiveDetector.js.map +1 -0
- package/dist/lib/service/automation/FileWatcher.d.ts +68 -0
- package/dist/lib/service/automation/FileWatcher.d.ts.map +1 -0
- package/dist/lib/service/automation/FileWatcher.js +385 -0
- package/dist/lib/service/automation/FileWatcher.js.map +1 -0
- package/dist/lib/service/automation/TriggerResolver.d.ts +38 -0
- package/dist/lib/service/automation/TriggerResolver.d.ts.map +1 -0
- package/dist/lib/service/automation/TriggerResolver.js +64 -0
- package/dist/lib/service/automation/TriggerResolver.js.map +1 -0
- package/dist/lib/service/automation/handlers/AlinkHandler.d.ts +11 -0
- package/dist/lib/service/automation/handlers/AlinkHandler.d.ts.map +1 -0
- package/dist/lib/service/automation/handlers/AlinkHandler.js +84 -0
- package/dist/lib/service/automation/handlers/AlinkHandler.js.map +1 -0
- package/dist/lib/service/automation/handlers/CreateHandler.d.ts +17 -0
- package/dist/lib/service/automation/handlers/CreateHandler.d.ts.map +1 -0
- package/dist/lib/service/automation/handlers/CreateHandler.js +178 -0
- package/dist/lib/service/automation/handlers/CreateHandler.js.map +1 -0
- package/dist/lib/service/automation/handlers/GuardHandler.d.ts +18 -0
- package/dist/lib/service/automation/handlers/GuardHandler.d.ts.map +1 -0
- package/dist/lib/service/automation/handlers/GuardHandler.js +223 -0
- package/dist/lib/service/automation/handlers/GuardHandler.js.map +1 -0
- package/dist/lib/service/automation/handlers/HeaderHandler.d.ts +12 -0
- package/dist/lib/service/automation/handlers/HeaderHandler.d.ts.map +1 -0
- package/dist/lib/service/automation/handlers/HeaderHandler.js +42 -0
- package/dist/lib/service/automation/handlers/HeaderHandler.js.map +1 -0
- package/dist/lib/service/automation/handlers/SearchHandler.d.ts +22 -0
- package/dist/lib/service/automation/handlers/SearchHandler.d.ts.map +1 -0
- package/dist/lib/service/automation/handlers/SearchHandler.js +289 -0
- package/dist/lib/service/automation/handlers/SearchHandler.js.map +1 -0
- package/dist/lib/service/bootstrap/BootstrapTaskManager.d.ts +189 -0
- package/dist/lib/service/bootstrap/BootstrapTaskManager.d.ts.map +1 -0
- package/dist/lib/service/bootstrap/BootstrapTaskManager.js +398 -0
- package/dist/lib/service/bootstrap/BootstrapTaskManager.js.map +1 -0
- package/dist/lib/service/candidate/CandidateAggregator.d.ts +32 -0
- package/dist/lib/service/candidate/CandidateAggregator.d.ts.map +1 -0
- package/dist/lib/service/candidate/CandidateAggregator.js +44 -0
- package/dist/lib/service/candidate/CandidateAggregator.js.map +1 -0
- package/dist/lib/service/candidate/SimilarityService.d.ts +32 -0
- package/dist/lib/service/candidate/SimilarityService.d.ts.map +1 -0
- package/dist/lib/service/candidate/SimilarityService.js +82 -0
- package/dist/lib/service/candidate/SimilarityService.js.map +1 -0
- package/dist/lib/service/context/RecipeExtractor.d.ts +69 -0
- package/dist/lib/service/context/RecipeExtractor.d.ts.map +1 -0
- package/dist/lib/service/context/RecipeExtractor.js +307 -0
- package/dist/lib/service/context/RecipeExtractor.js.map +1 -0
- package/dist/lib/service/cursor/AgentInstructionsGenerator.d.ts +133 -0
- package/dist/lib/service/cursor/AgentInstructionsGenerator.d.ts.map +1 -0
- package/dist/lib/service/cursor/AgentInstructionsGenerator.js +410 -0
- package/dist/lib/service/cursor/AgentInstructionsGenerator.js.map +1 -0
- package/dist/lib/service/cursor/CursorDeliveryPipeline.d.ts +305 -0
- package/dist/lib/service/cursor/CursorDeliveryPipeline.d.ts.map +1 -0
- package/dist/lib/service/cursor/CursorDeliveryPipeline.js +677 -0
- package/dist/lib/service/cursor/CursorDeliveryPipeline.js.map +1 -0
- package/dist/lib/service/cursor/FileProtection.d.ts +66 -0
- package/dist/lib/service/cursor/FileProtection.d.ts.map +1 -0
- package/dist/lib/service/cursor/FileProtection.js +101 -0
- package/dist/lib/service/cursor/FileProtection.js.map +1 -0
- package/dist/lib/service/cursor/KnowledgeCompressor.d.ts +79 -0
- package/dist/lib/service/cursor/KnowledgeCompressor.d.ts.map +1 -0
- package/dist/lib/service/cursor/KnowledgeCompressor.js +169 -0
- package/dist/lib/service/cursor/KnowledgeCompressor.js.map +1 -0
- package/dist/lib/service/cursor/RulesGenerator.d.ts +59 -0
- package/dist/lib/service/cursor/RulesGenerator.d.ts.map +1 -0
- package/dist/lib/service/cursor/RulesGenerator.js +161 -0
- package/dist/lib/service/cursor/RulesGenerator.js.map +1 -0
- package/dist/lib/service/cursor/SkillsSyncer.d.ts +61 -0
- package/dist/lib/service/cursor/SkillsSyncer.d.ts.map +1 -0
- package/dist/lib/service/cursor/SkillsSyncer.js +287 -0
- package/dist/lib/service/cursor/SkillsSyncer.js.map +1 -0
- package/dist/lib/service/cursor/TokenBudget.d.ts +27 -0
- package/dist/lib/service/cursor/TokenBudget.d.ts.map +1 -0
- package/dist/lib/service/cursor/TokenBudget.js +38 -0
- package/dist/lib/service/cursor/TokenBudget.js.map +1 -0
- package/dist/lib/service/cursor/TopicClassifier.d.ts +48 -0
- package/dist/lib/service/cursor/TopicClassifier.d.ts.map +1 -0
- package/dist/lib/service/cursor/TopicClassifier.js +176 -0
- package/dist/lib/service/cursor/TopicClassifier.js.map +1 -0
- package/dist/lib/service/guard/ComplianceReporter.d.ts +156 -0
- package/dist/lib/service/guard/ComplianceReporter.d.ts.map +1 -0
- package/dist/lib/service/guard/ComplianceReporter.js +317 -0
- package/dist/lib/service/guard/ComplianceReporter.js.map +1 -0
- package/dist/lib/service/guard/ExclusionManager.d.ts +108 -0
- package/dist/lib/service/guard/ExclusionManager.d.ts.map +1 -0
- package/dist/lib/service/guard/ExclusionManager.js +256 -0
- package/dist/lib/service/guard/ExclusionManager.js.map +1 -0
- package/dist/lib/service/guard/GuardCheckEngine.d.ts +216 -0
- package/dist/lib/service/guard/GuardCheckEngine.d.ts.map +1 -0
- package/dist/lib/service/guard/GuardCheckEngine.js +982 -0
- package/dist/lib/service/guard/GuardCheckEngine.js.map +1 -0
- package/dist/lib/service/guard/GuardCodeChecks.d.ts +34 -0
- package/dist/lib/service/guard/GuardCodeChecks.d.ts.map +1 -0
- package/dist/lib/service/guard/GuardCodeChecks.js +351 -0
- package/dist/lib/service/guard/GuardCodeChecks.js.map +1 -0
- package/dist/lib/service/guard/GuardCrossFileChecks.d.ts +43 -0
- package/dist/lib/service/guard/GuardCrossFileChecks.d.ts.map +1 -0
- package/dist/lib/service/guard/GuardCrossFileChecks.js +290 -0
- package/dist/lib/service/guard/GuardCrossFileChecks.js.map +1 -0
- package/dist/lib/service/guard/GuardFeedbackLoop.d.ts +91 -0
- package/dist/lib/service/guard/GuardFeedbackLoop.d.ts.map +1 -0
- package/dist/lib/service/guard/GuardFeedbackLoop.js +141 -0
- package/dist/lib/service/guard/GuardFeedbackLoop.js.map +1 -0
- package/dist/lib/service/guard/GuardPatternUtils.d.ts +47 -0
- package/dist/lib/service/guard/GuardPatternUtils.d.ts.map +1 -0
- package/dist/lib/service/guard/GuardPatternUtils.js +171 -0
- package/dist/lib/service/guard/GuardPatternUtils.js.map +1 -0
- package/dist/lib/service/guard/GuardService.d.ts +217 -0
- package/dist/lib/service/guard/GuardService.d.ts.map +1 -0
- package/dist/lib/service/guard/GuardService.js +305 -0
- package/dist/lib/service/guard/GuardService.js.map +1 -0
- package/dist/lib/service/guard/RuleLearner.d.ts +98 -0
- package/dist/lib/service/guard/RuleLearner.d.ts.map +1 -0
- package/dist/lib/service/guard/RuleLearner.js +298 -0
- package/dist/lib/service/guard/RuleLearner.js.map +1 -0
- package/dist/lib/service/guard/SourceFileCollector.d.ts +42 -0
- package/dist/lib/service/guard/SourceFileCollector.d.ts.map +1 -0
- package/dist/lib/service/guard/SourceFileCollector.js +106 -0
- package/dist/lib/service/guard/SourceFileCollector.js.map +1 -0
- package/dist/lib/service/guard/ViolationsStore.d.ts +119 -0
- package/dist/lib/service/guard/ViolationsStore.d.ts.map +1 -0
- package/dist/lib/service/guard/ViolationsStore.js +228 -0
- package/dist/lib/service/guard/ViolationsStore.js.map +1 -0
- package/dist/lib/service/knowledge/CodeEntityGraph.d.ts +418 -0
- package/dist/lib/service/knowledge/CodeEntityGraph.d.ts.map +1 -0
- package/dist/lib/service/knowledge/CodeEntityGraph.js +1050 -0
- package/dist/lib/service/knowledge/CodeEntityGraph.js.map +1 -0
- package/dist/lib/service/knowledge/ConfidenceRouter.d.ts +63 -0
- package/dist/lib/service/knowledge/ConfidenceRouter.d.ts.map +1 -0
- package/dist/lib/service/knowledge/ConfidenceRouter.js +155 -0
- package/dist/lib/service/knowledge/ConfidenceRouter.js.map +1 -0
- package/dist/lib/service/knowledge/KnowledgeFileWriter.d.ts +100 -0
- package/dist/lib/service/knowledge/KnowledgeFileWriter.d.ts.map +1 -0
- package/dist/lib/service/knowledge/KnowledgeFileWriter.js +658 -0
- package/dist/lib/service/knowledge/KnowledgeFileWriter.js.map +1 -0
- package/dist/lib/service/knowledge/KnowledgeGraphService.d.ts +121 -0
- package/dist/lib/service/knowledge/KnowledgeGraphService.d.ts.map +1 -0
- package/dist/lib/service/knowledge/KnowledgeGraphService.js +230 -0
- package/dist/lib/service/knowledge/KnowledgeGraphService.js.map +1 -0
- package/dist/lib/service/knowledge/KnowledgeService.d.ts +225 -0
- package/dist/lib/service/knowledge/KnowledgeService.d.ts.map +1 -0
- package/dist/lib/service/knowledge/KnowledgeService.js +852 -0
- package/dist/lib/service/knowledge/KnowledgeService.js.map +1 -0
- package/dist/lib/service/module/ModuleService.d.ts +156 -0
- package/dist/lib/service/module/ModuleService.d.ts.map +1 -0
- package/dist/lib/service/module/ModuleService.js +951 -0
- package/dist/lib/service/module/ModuleService.js.map +1 -0
- package/dist/lib/service/quality/FeedbackCollector.d.ts +55 -0
- package/dist/lib/service/quality/FeedbackCollector.d.ts.map +1 -0
- package/dist/lib/service/quality/FeedbackCollector.js +137 -0
- package/dist/lib/service/quality/FeedbackCollector.js.map +1 -0
- package/dist/lib/service/quality/QualityScorer.d.ts +70 -0
- package/dist/lib/service/quality/QualityScorer.d.ts.map +1 -0
- package/dist/lib/service/quality/QualityScorer.js +183 -0
- package/dist/lib/service/quality/QualityScorer.js.map +1 -0
- package/dist/lib/service/recipe/RecipeCandidateValidator.d.ts +80 -0
- package/dist/lib/service/recipe/RecipeCandidateValidator.d.ts.map +1 -0
- package/dist/lib/service/recipe/RecipeCandidateValidator.js +184 -0
- package/dist/lib/service/recipe/RecipeCandidateValidator.js.map +1 -0
- package/dist/lib/service/recipe/RecipeParser.d.ts +88 -0
- package/dist/lib/service/recipe/RecipeParser.d.ts.map +1 -0
- package/dist/lib/service/recipe/RecipeParser.js +280 -0
- package/dist/lib/service/recipe/RecipeParser.js.map +1 -0
- package/dist/lib/service/search/CoarseRanker.d.ts +64 -0
- package/dist/lib/service/search/CoarseRanker.d.ts.map +1 -0
- package/dist/lib/service/search/CoarseRanker.js +114 -0
- package/dist/lib/service/search/CoarseRanker.js.map +1 -0
- package/dist/lib/service/search/CrossEncoderReranker.d.ts +60 -0
- package/dist/lib/service/search/CrossEncoderReranker.d.ts.map +1 -0
- package/dist/lib/service/search/CrossEncoderReranker.js +158 -0
- package/dist/lib/service/search/CrossEncoderReranker.js.map +1 -0
- package/dist/lib/service/search/HybridRetriever.d.ts +80 -0
- package/dist/lib/service/search/HybridRetriever.d.ts.map +1 -0
- package/dist/lib/service/search/HybridRetriever.js +123 -0
- package/dist/lib/service/search/HybridRetriever.js.map +1 -0
- package/dist/lib/service/search/InvertedIndex.d.ts +34 -0
- package/dist/lib/service/search/InvertedIndex.d.ts.map +1 -0
- package/dist/lib/service/search/InvertedIndex.js +83 -0
- package/dist/lib/service/search/InvertedIndex.js.map +1 -0
- package/dist/lib/service/search/MultiSignalRanker.d.ts +109 -0
- package/dist/lib/service/search/MultiSignalRanker.d.ts.map +1 -0
- package/dist/lib/service/search/MultiSignalRanker.js +257 -0
- package/dist/lib/service/search/MultiSignalRanker.js.map +1 -0
- package/dist/lib/service/search/RetrievalFunnel.d.ts +26 -0
- package/dist/lib/service/search/RetrievalFunnel.d.ts.map +1 -0
- package/dist/lib/service/search/RetrievalFunnel.js +77 -0
- package/dist/lib/service/search/RetrievalFunnel.js.map +1 -0
- package/dist/lib/service/search/SearchEngine.d.ts +389 -0
- package/dist/lib/service/search/SearchEngine.d.ts.map +1 -0
- package/dist/lib/service/search/SearchEngine.js +971 -0
- package/dist/lib/service/search/SearchEngine.js.map +1 -0
- package/dist/lib/service/search/contextBoost.d.ts +47 -0
- package/dist/lib/service/search/contextBoost.d.ts.map +1 -0
- package/dist/lib/service/search/contextBoost.js +45 -0
- package/dist/lib/service/search/contextBoost.js.map +1 -0
- package/dist/lib/service/skills/EventAggregator.d.ts +63 -0
- package/dist/lib/service/skills/EventAggregator.d.ts.map +1 -0
- package/dist/lib/service/skills/EventAggregator.js +178 -0
- package/dist/lib/service/skills/EventAggregator.js.map +1 -0
- package/dist/lib/service/skills/SignalCollector.d.ts +125 -0
- package/dist/lib/service/skills/SignalCollector.d.ts.map +1 -0
- package/dist/lib/service/skills/SignalCollector.js +575 -0
- package/dist/lib/service/skills/SignalCollector.js.map +1 -0
- package/dist/lib/service/skills/SkillAdvisor.d.ts +64 -0
- package/dist/lib/service/skills/SkillAdvisor.d.ts.map +1 -0
- package/dist/lib/service/skills/SkillAdvisor.js +338 -0
- package/dist/lib/service/skills/SkillAdvisor.js.map +1 -0
- package/dist/lib/service/skills/SkillHooks.d.ts +45 -0
- package/dist/lib/service/skills/SkillHooks.d.ts.map +1 -0
- package/dist/lib/service/skills/SkillHooks.js +131 -0
- package/dist/lib/service/skills/SkillHooks.js.map +1 -0
- package/dist/lib/service/snippet/SnippetFactory.d.ts +120 -0
- package/dist/lib/service/snippet/SnippetFactory.d.ts.map +1 -0
- package/dist/lib/service/snippet/SnippetFactory.js +169 -0
- package/dist/lib/service/snippet/SnippetFactory.js.map +1 -0
- package/dist/lib/service/snippet/SnippetInstaller.d.ts +100 -0
- package/dist/lib/service/snippet/SnippetInstaller.d.ts.map +1 -0
- package/dist/lib/service/snippet/SnippetInstaller.js +291 -0
- package/dist/lib/service/snippet/SnippetInstaller.js.map +1 -0
- package/dist/lib/service/snippet/codecs/SnippetCodec.d.ts +61 -0
- package/dist/lib/service/snippet/codecs/SnippetCodec.d.ts.map +1 -0
- package/dist/lib/service/snippet/codecs/SnippetCodec.js +52 -0
- package/dist/lib/service/snippet/codecs/SnippetCodec.js.map +1 -0
- package/dist/lib/service/snippet/codecs/VSCodeCodec.d.ts +32 -0
- package/dist/lib/service/snippet/codecs/VSCodeCodec.d.ts.map +1 -0
- package/dist/lib/service/snippet/codecs/VSCodeCodec.js +89 -0
- package/dist/lib/service/snippet/codecs/VSCodeCodec.js.map +1 -0
- package/dist/lib/service/task/TaskGraphService.d.ts +269 -0
- package/dist/lib/service/task/TaskGraphService.d.ts.map +1 -0
- package/dist/lib/service/task/TaskGraphService.js +603 -0
- package/dist/lib/service/task/TaskGraphService.js.map +1 -0
- package/dist/lib/service/task/TaskKnowledgeBridge.d.ts +53 -0
- package/dist/lib/service/task/TaskKnowledgeBridge.d.ts.map +1 -0
- package/dist/lib/service/task/TaskKnowledgeBridge.js +92 -0
- package/dist/lib/service/task/TaskKnowledgeBridge.js.map +1 -0
- package/dist/lib/service/task/TaskReadyEngine.d.ts +93 -0
- package/dist/lib/service/task/TaskReadyEngine.d.ts.map +1 -0
- package/dist/lib/service/task/TaskReadyEngine.js +124 -0
- package/dist/lib/service/task/TaskReadyEngine.js.map +1 -0
- package/dist/lib/service/wiki/WikiGenerator.d.ts +407 -0
- package/dist/lib/service/wiki/WikiGenerator.d.ts.map +1 -0
- package/dist/lib/service/wiki/WikiGenerator.js +912 -0
- package/dist/lib/service/wiki/WikiGenerator.js.map +1 -0
- package/dist/lib/service/wiki/WikiRenderers.d.ts +219 -0
- package/dist/lib/service/wiki/WikiRenderers.d.ts.map +1 -0
- package/dist/lib/service/wiki/WikiRenderers.js +1627 -0
- package/dist/lib/service/wiki/WikiRenderers.js.map +1 -0
- package/dist/lib/service/wiki/WikiUtils.d.ts +164 -0
- package/dist/lib/service/wiki/WikiUtils.d.ts.map +1 -0
- package/dist/lib/service/wiki/WikiUtils.js +971 -0
- package/dist/lib/service/wiki/WikiUtils.js.map +1 -0
- package/dist/lib/shared/BootstrapEventEmitter.d.ts +59 -0
- package/dist/lib/shared/BootstrapEventEmitter.d.ts.map +1 -0
- package/dist/lib/shared/BootstrapEventEmitter.js +140 -0
- package/dist/lib/shared/BootstrapEventEmitter.js.map +1 -0
- package/dist/lib/shared/DimensionCopyRegistry.d.ts +76 -0
- package/dist/lib/shared/DimensionCopyRegistry.d.ts.map +1 -0
- package/dist/lib/shared/DimensionCopyRegistry.js +402 -0
- package/dist/lib/shared/DimensionCopyRegistry.js.map +1 -0
- package/dist/lib/shared/FieldSpec.d.ts +169 -0
- package/dist/lib/shared/FieldSpec.d.ts.map +1 -0
- package/dist/lib/shared/FieldSpec.js +348 -0
- package/dist/lib/shared/FieldSpec.js.map +1 -0
- package/dist/lib/shared/LanguageService.d.ts +203 -0
- package/dist/lib/shared/LanguageService.d.ts.map +1 -0
- package/dist/lib/shared/LanguageService.js +687 -0
- package/dist/lib/shared/LanguageService.js.map +1 -0
- package/dist/lib/shared/PathGuard.d.ts +105 -0
- package/dist/lib/shared/PathGuard.d.ts.map +1 -0
- package/dist/lib/shared/PathGuard.js +312 -0
- package/dist/lib/shared/PathGuard.js.map +1 -0
- package/dist/lib/shared/RecipeReadinessChecker.d.ts +37 -0
- package/dist/lib/shared/RecipeReadinessChecker.d.ts.map +1 -0
- package/dist/lib/shared/RecipeReadinessChecker.js +68 -0
- package/dist/lib/shared/RecipeReadinessChecker.js.map +1 -0
- package/dist/lib/shared/StyleGuide.d.ts +25 -0
- package/dist/lib/shared/StyleGuide.d.ts.map +1 -0
- package/dist/lib/shared/StyleGuide.js +110 -0
- package/dist/lib/shared/StyleGuide.js.map +1 -0
- package/dist/lib/shared/UnifiedValidator.d.ts +57 -0
- package/dist/lib/shared/UnifiedValidator.d.ts.map +1 -0
- package/dist/lib/shared/UnifiedValidator.js +315 -0
- package/dist/lib/shared/UnifiedValidator.js.map +1 -0
- package/dist/lib/shared/concurrency.d.ts +34 -0
- package/dist/lib/shared/concurrency.d.ts.map +1 -0
- package/dist/lib/shared/concurrency.js +34 -0
- package/dist/lib/shared/concurrency.js.map +1 -0
- package/dist/lib/shared/constants.d.ts +208 -0
- package/dist/lib/shared/constants.d.ts.map +1 -0
- package/dist/lib/shared/constants.js +138 -0
- package/dist/lib/shared/constants.js.map +1 -0
- package/dist/lib/shared/errors/BaseError.d.ts +60 -0
- package/dist/lib/shared/errors/BaseError.d.ts.map +1 -0
- package/dist/lib/shared/errors/BaseError.js +93 -0
- package/dist/lib/shared/errors/BaseError.js.map +1 -0
- package/dist/lib/shared/errors/index.d.ts +6 -0
- package/dist/lib/shared/errors/index.d.ts.map +1 -0
- package/dist/lib/shared/errors/index.js +6 -0
- package/dist/lib/shared/errors/index.js.map +1 -0
- package/dist/lib/shared/isOwnDevRepo.d.ts +21 -0
- package/dist/lib/shared/isOwnDevRepo.d.ts.map +1 -0
- package/dist/lib/shared/isOwnDevRepo.js +53 -0
- package/dist/lib/shared/isOwnDevRepo.js.map +1 -0
- package/dist/lib/shared/package-root.d.ts +13 -0
- package/dist/lib/shared/package-root.d.ts.map +1 -0
- package/dist/lib/shared/package-root.js +58 -0
- package/dist/lib/shared/package-root.js.map +1 -0
- package/dist/lib/shared/resolveProjectRoot.d.ts +26 -0
- package/dist/lib/shared/resolveProjectRoot.d.ts.map +1 -0
- package/dist/lib/shared/resolveProjectRoot.js +24 -0
- package/dist/lib/shared/resolveProjectRoot.js.map +1 -0
- package/dist/lib/shared/schemas/common.d.ts +66 -0
- package/dist/lib/shared/schemas/common.d.ts.map +1 -0
- package/dist/lib/shared/schemas/common.js +58 -0
- package/dist/lib/shared/schemas/common.js.map +1 -0
- package/dist/lib/shared/schemas/config.d.ts +145 -0
- package/dist/lib/shared/schemas/config.d.ts.map +1 -0
- package/dist/lib/shared/schemas/config.js +151 -0
- package/dist/lib/shared/schemas/config.js.map +1 -0
- package/dist/lib/shared/schemas/http-requests.d.ts +339 -0
- package/dist/lib/shared/schemas/http-requests.d.ts.map +1 -0
- package/dist/lib/shared/schemas/http-requests.js +342 -0
- package/dist/lib/shared/schemas/http-requests.js.map +1 -0
- package/dist/lib/shared/schemas/index.d.ts +10 -0
- package/dist/lib/shared/schemas/index.d.ts.map +1 -0
- package/dist/lib/shared/schemas/index.js +10 -0
- package/dist/lib/shared/schemas/index.js.map +1 -0
- package/dist/lib/shared/schemas/mcp-tools.d.ts +344 -0
- package/dist/lib/shared/schemas/mcp-tools.d.ts.map +1 -0
- package/dist/lib/shared/schemas/mcp-tools.js +327 -0
- package/dist/lib/shared/schemas/mcp-tools.js.map +1 -0
- package/dist/lib/shared/shutdown.d.ts +63 -0
- package/dist/lib/shared/shutdown.d.ts.map +1 -0
- package/dist/lib/shared/shutdown.js +111 -0
- package/dist/lib/shared/shutdown.js.map +1 -0
- package/dist/lib/shared/similarity.d.ts +53 -0
- package/dist/lib/shared/similarity.d.ts.map +1 -0
- package/dist/lib/shared/similarity.js +111 -0
- package/dist/lib/shared/similarity.js.map +1 -0
- package/dist/lib/shared/token-utils.d.ts +30 -0
- package/dist/lib/shared/token-utils.d.ts.map +1 -0
- package/dist/lib/shared/token-utils.js +50 -0
- package/dist/lib/shared/token-utils.js.map +1 -0
- package/dist/lib/shared/utils/common.d.ts +45 -0
- package/dist/lib/shared/utils/common.d.ts.map +1 -0
- package/dist/lib/shared/utils/common.js +70 -0
- package/dist/lib/shared/utils/common.js.map +1 -0
- package/dist/lib/types/database.d.ts +14 -0
- package/dist/lib/types/database.d.ts.map +1 -0
- package/dist/lib/types/database.js +2 -0
- package/dist/lib/types/database.js.map +1 -0
- package/dist/scripts/build-native-ui.d.ts +6 -0
- package/dist/scripts/build-native-ui.d.ts.map +1 -0
- package/dist/scripts/build-native-ui.js +65 -0
- package/dist/scripts/build-native-ui.js.map +1 -0
- package/dist/scripts/diagnose-mcp.d.ts +10 -0
- package/dist/scripts/diagnose-mcp.d.ts.map +1 -0
- package/dist/scripts/diagnose-mcp.js +79 -0
- package/dist/scripts/diagnose-mcp.js.map +1 -0
- package/dist/scripts/init-snippets.d.ts +31 -0
- package/dist/scripts/init-snippets.d.ts.map +1 -0
- package/dist/scripts/init-snippets.js +299 -0
- package/dist/scripts/init-snippets.js.map +1 -0
- package/dist/scripts/install-cursor-skill.d.ts +14 -0
- package/dist/scripts/install-cursor-skill.d.ts.map +1 -0
- package/dist/scripts/install-cursor-skill.js +361 -0
- package/dist/scripts/install-cursor-skill.js.map +1 -0
- package/dist/scripts/install-full.d.ts +8 -0
- package/dist/scripts/install-full.d.ts.map +1 -0
- package/dist/scripts/install-full.js +39 -0
- package/dist/scripts/install-full.js.map +1 -0
- package/dist/scripts/install-vscode-copilot.d.ts +24 -0
- package/dist/scripts/install-vscode-copilot.d.ts.map +1 -0
- package/dist/scripts/install-vscode-copilot.js +274 -0
- package/dist/scripts/install-vscode-copilot.js.map +1 -0
- package/dist/scripts/release.d.ts +8 -0
- package/dist/scripts/release.d.ts.map +1 -0
- package/dist/scripts/release.js +361 -0
- package/dist/scripts/release.js.map +1 -0
- package/dist/scripts/setup-mcp-config.d.ts +10 -0
- package/dist/scripts/setup-mcp-config.d.ts.map +1 -0
- package/dist/scripts/setup-mcp-config.js +120 -0
- package/dist/scripts/setup-mcp-config.js.map +1 -0
- package/dist/scripts/verify-context-api.d.ts +8 -0
- package/dist/scripts/verify-context-api.d.ts.map +1 -0
- package/dist/scripts/verify-context-api.js +55 -0
- package/dist/scripts/verify-context-api.js.map +1 -0
- package/package.json +126 -66
- package/resources/native-ui/screenshot.swift +2 -2
- package/scripts/postbuild.mjs +31 -0
- package/scripts/postinstall-safe.mjs +89 -0
- package/templates/guard-ci.yml +1 -1
- package/bin/api-server.js +0 -108
- package/bin/cli.js +0 -1263
- package/bin/mcp-server.js +0 -62
- package/config/knowledge-base.config.js +0 -173
- package/dashboard/dist/assets/axios-C0Zqfgkc.js +0 -6
- package/dashboard/dist/assets/framer-motion-DOATyqla.js +0 -9
- package/dashboard/dist/assets/icons-pSac4wYO.js +0 -531
- package/dashboard/dist/assets/index-BTAsOZv2.js +0 -128
- package/dashboard/dist/assets/index-C_72Ct98.css +0 -1
- package/dashboard/dist/assets/vendor-Ck-HBmg5.js +0 -3122
- package/lib/bootstrap.js +0 -228
- package/lib/cli/AiScanService.js +0 -280
- package/lib/cli/CliLogger.js +0 -78
- package/lib/cli/KnowledgeSyncService.js +0 -384
- package/lib/cli/SetupService.js +0 -559
- package/lib/cli/UpgradeService.js +0 -96
- package/lib/cli/deploy/FileDeployer.js +0 -562
- package/lib/cli/deploy/FileManifest.js +0 -272
- package/lib/core/AstAnalyzer.js +0 -878
- package/lib/core/analysis/CallEdgeResolver.js +0 -402
- package/lib/core/analysis/CallGraphAnalyzer.js +0 -367
- package/lib/core/analysis/CallSiteExtractor.js +0 -629
- package/lib/core/analysis/DataFlowInferrer.js +0 -57
- package/lib/core/analysis/ImportPathResolver.js +0 -189
- package/lib/core/analysis/ImportRecord.js +0 -105
- package/lib/core/analysis/SymbolTableBuilder.js +0 -211
- package/lib/core/ast/ProjectGraph.js +0 -828
- package/lib/core/ast/ensure-grammars.js +0 -129
- package/lib/core/ast/index.js +0 -167
- package/lib/core/ast/lang-dart.js +0 -1010
- package/lib/core/ast/lang-go.js +0 -714
- package/lib/core/ast/lang-java.js +0 -635
- package/lib/core/ast/lang-javascript.js +0 -268
- package/lib/core/ast/lang-kotlin.js +0 -748
- package/lib/core/ast/lang-objc.js +0 -384
- package/lib/core/ast/lang-python.js +0 -396
- package/lib/core/ast/lang-rust.js +0 -997
- package/lib/core/ast/lang-swift.js +0 -512
- package/lib/core/ast/lang-typescript.js +0 -786
- package/lib/core/ast/parser-init.js +0 -86
- package/lib/core/capability/CapabilityProbe.js +0 -258
- package/lib/core/constitution/Constitution.js +0 -132
- package/lib/core/constitution/ConstitutionValidator.js +0 -196
- package/lib/core/discovery/DartDiscoverer.js +0 -529
- package/lib/core/discovery/DiscovererRegistry.js +0 -83
- package/lib/core/discovery/GenericDiscoverer.js +0 -202
- package/lib/core/discovery/GoDiscoverer.js +0 -562
- package/lib/core/discovery/JvmDiscoverer.js +0 -507
- package/lib/core/discovery/NodeDiscoverer.js +0 -465
- package/lib/core/discovery/ProjectDiscoverer.js +0 -93
- package/lib/core/discovery/PythonDiscoverer.js +0 -348
- package/lib/core/discovery/RustDiscoverer.js +0 -541
- package/lib/core/discovery/index.js +0 -56
- package/lib/core/enhancement/EnhancementPack.js +0 -82
- package/lib/core/enhancement/EnhancementRegistry.js +0 -47
- package/lib/core/enhancement/android-enhancement.js +0 -104
- package/lib/core/enhancement/django-enhancement.js +0 -245
- package/lib/core/enhancement/fastapi-enhancement.js +0 -219
- package/lib/core/enhancement/go-grpc-enhancement.js +0 -159
- package/lib/core/enhancement/go-web-enhancement.js +0 -206
- package/lib/core/enhancement/index.js +0 -70
- package/lib/core/enhancement/langchain-enhancement.js +0 -236
- package/lib/core/enhancement/ml-enhancement.js +0 -271
- package/lib/core/enhancement/nextjs-enhancement.js +0 -232
- package/lib/core/enhancement/node-server-enhancement.js +0 -267
- package/lib/core/enhancement/react-enhancement.js +0 -254
- package/lib/core/enhancement/rust-tokio-enhancement.js +0 -237
- package/lib/core/enhancement/rust-web-enhancement.js +0 -264
- package/lib/core/enhancement/spring-enhancement.js +0 -116
- package/lib/core/enhancement/vue-enhancement.js +0 -245
- package/lib/core/gateway/Gateway.js +0 -273
- package/lib/core/gateway/GatewayActionRegistry.js +0 -236
- package/lib/core/permission/PermissionManager.js +0 -252
- package/lib/domain/index.js +0 -29
- package/lib/domain/knowledge/KnowledgeEntry.js +0 -312
- package/lib/domain/knowledge/KnowledgeRepository.js +0 -122
- package/lib/domain/knowledge/Lifecycle.js +0 -101
- package/lib/domain/knowledge/index.js +0 -24
- package/lib/domain/knowledge/values/Constraints.js +0 -138
- package/lib/domain/knowledge/values/Content.js +0 -77
- package/lib/domain/knowledge/values/Quality.js +0 -94
- package/lib/domain/knowledge/values/Reasoning.js +0 -78
- package/lib/domain/knowledge/values/Relations.js +0 -159
- package/lib/domain/knowledge/values/Stats.js +0 -78
- package/lib/domain/knowledge/values/index.js +0 -10
- package/lib/domain/snippet/Snippet.js +0 -107
- package/lib/domain/task/Task.js +0 -244
- package/lib/domain/task/TaskDependency.js +0 -49
- package/lib/domain/task/TaskIdGenerator.js +0 -83
- package/lib/domain/task/index.js +0 -6
- package/lib/external/ai/AiFactory.js +0 -251
- package/lib/external/ai/AiProvider.js +0 -823
- package/lib/external/ai/providers/ClaudeProvider.js +0 -308
- package/lib/external/ai/providers/GoogleGeminiProvider.js +0 -466
- package/lib/external/ai/providers/MockProvider.js +0 -64
- package/lib/external/ai/providers/OpenAiProvider.js +0 -308
- package/lib/external/mcp/McpServer.js +0 -475
- package/lib/external/mcp/autoApproveInjector.js +0 -155
- package/lib/external/mcp/envelope.js +0 -35
- package/lib/external/mcp/errorHandler.js +0 -118
- package/lib/external/mcp/handlers/LanguageExtensions.js +0 -582
- package/lib/external/mcp/handlers/TargetClassifier.js +0 -74
- package/lib/external/mcp/handlers/bootstrap/BootstrapSession.js +0 -252
- package/lib/external/mcp/handlers/bootstrap/ExternalSubmissionTracker.js +0 -397
- package/lib/external/mcp/handlers/bootstrap/MissionBriefingBuilder.js +0 -855
- package/lib/external/mcp/handlers/bootstrap/base-dimensions.js +0 -250
- package/lib/external/mcp/handlers/bootstrap/pipeline/BootstrapSnapshot.js +0 -618
- package/lib/external/mcp/handlers/bootstrap/pipeline/IncrementalBootstrap.js +0 -212
- package/lib/external/mcp/handlers/bootstrap/pipeline/checkpoint.js +0 -96
- package/lib/external/mcp/handlers/bootstrap/pipeline/dimension-configs.js +0 -181
- package/lib/external/mcp/handlers/bootstrap/pipeline/dimension-context.js +0 -227
- package/lib/external/mcp/handlers/bootstrap/pipeline/noAiFallback.js +0 -776
- package/lib/external/mcp/handlers/bootstrap/pipeline/orchestrator.js +0 -1412
- package/lib/external/mcp/handlers/bootstrap/pipeline/tier-scheduler.js +0 -217
- package/lib/external/mcp/handlers/bootstrap/refine.js +0 -365
- package/lib/external/mcp/handlers/bootstrap/shared/bootstrap-phases.js +0 -774
- package/lib/external/mcp/handlers/bootstrap/shared/dimension-sop.js +0 -709
- package/lib/external/mcp/handlers/bootstrap/shared/dimension-text.js +0 -230
- package/lib/external/mcp/handlers/bootstrap/shared/skill-generator.js +0 -268
- package/lib/external/mcp/handlers/bootstrap/skills.js +0 -110
- package/lib/external/mcp/handlers/bootstrap-external.js +0 -183
- package/lib/external/mcp/handlers/bootstrap-internal.js +0 -420
- package/lib/external/mcp/handlers/browse.js +0 -313
- package/lib/external/mcp/handlers/candidate.js +0 -241
- package/lib/external/mcp/handlers/consolidated.js +0 -325
- package/lib/external/mcp/handlers/dimension-complete-external.js +0 -472
- package/lib/external/mcp/handlers/guard.js +0 -610
- package/lib/external/mcp/handlers/knowledge.js +0 -381
- package/lib/external/mcp/handlers/search.js +0 -291
- package/lib/external/mcp/handlers/skill.js +0 -719
- package/lib/external/mcp/handlers/structure.js +0 -622
- package/lib/external/mcp/handlers/system.js +0 -269
- package/lib/external/mcp/handlers/task.js +0 -629
- package/lib/external/mcp/handlers/wiki-external.js +0 -593
- package/lib/external/mcp/tools.js +0 -759
- package/lib/http/HttpServer.js +0 -488
- package/lib/http/api-spec.js +0 -192
- package/lib/http/middleware/RateLimiter.js +0 -69
- package/lib/http/middleware/errorHandler.js +0 -96
- package/lib/http/middleware/gatewayMiddleware.js +0 -61
- package/lib/http/middleware/requestLogger.js +0 -73
- package/lib/http/middleware/roleResolver.js +0 -121
- package/lib/http/routes/ai.js +0 -890
- package/lib/http/routes/auth.js +0 -161
- package/lib/http/routes/candidates.js +0 -812
- package/lib/http/routes/commands.js +0 -343
- package/lib/http/routes/extract.js +0 -199
- package/lib/http/routes/guard.js +0 -283
- package/lib/http/routes/guardRules.js +0 -405
- package/lib/http/routes/health.js +0 -35
- package/lib/http/routes/knowledge.js +0 -305
- package/lib/http/routes/modules.js +0 -584
- package/lib/http/routes/monitoring.js +0 -329
- package/lib/http/routes/recipes.js +0 -174
- package/lib/http/routes/remote.js +0 -1017
- package/lib/http/routes/search.js +0 -452
- package/lib/http/routes/skills.js +0 -248
- package/lib/http/routes/snippets.js +0 -66
- package/lib/http/routes/task.js +0 -418
- package/lib/http/routes/violations.js +0 -94
- package/lib/http/routes/wiki.js +0 -371
- package/lib/http/utils/routeHelpers.js +0 -63
- package/lib/http/utils/sse-sessions.js +0 -124
- package/lib/http/utils/sse.js +0 -138
- package/lib/infrastructure/audit/AuditLogger.js +0 -123
- package/lib/infrastructure/audit/AuditStore.js +0 -219
- package/lib/infrastructure/cache/CacheService.js +0 -151
- package/lib/infrastructure/cache/GraphCache.js +0 -147
- package/lib/infrastructure/cache/UnifiedCacheAdapter.js +0 -115
- package/lib/infrastructure/config/ConfigLoader.js +0 -114
- package/lib/infrastructure/config/Defaults.js +0 -92
- package/lib/infrastructure/config/Paths.js +0 -167
- package/lib/infrastructure/config/TriggerSymbol.js +0 -76
- package/lib/infrastructure/database/DatabaseConnection.js +0 -137
- package/lib/infrastructure/database/migrations/001_initial_schema.js +0 -314
- package/lib/infrastructure/database/migrations/002_add_tasks.js +0 -88
- package/lib/infrastructure/database/migrations/003_add_remote_commands.js +0 -27
- package/lib/infrastructure/event/EventBus.js +0 -83
- package/lib/infrastructure/external/ClipboardManager.js +0 -152
- package/lib/infrastructure/external/NativeUi.js +0 -304
- package/lib/infrastructure/external/OpenBrowser.js +0 -135
- package/lib/infrastructure/logging/Logger.js +0 -184
- package/lib/infrastructure/monitoring/ErrorTracker.js +0 -341
- package/lib/infrastructure/monitoring/PerformanceMonitor.js +0 -281
- package/lib/infrastructure/paths/HeaderResolver.js +0 -115
- package/lib/infrastructure/paths/PathFinder.js +0 -133
- package/lib/infrastructure/plugin/PluginManager.js +0 -139
- package/lib/infrastructure/realtime/RealtimeService.js +0 -179
- package/lib/infrastructure/vector/Chunker.js +0 -177
- package/lib/infrastructure/vector/IndexingPipeline.js +0 -209
- package/lib/infrastructure/vector/JsonVectorAdapter.js +0 -279
- package/lib/infrastructure/vector/VectorStore.js +0 -94
- package/lib/injection/ServiceContainer.js +0 -1063
- package/lib/platform/ScreenCaptureService.js +0 -177
- package/lib/platform/ios/index.js +0 -58
- package/lib/platform/ios/routes/spm.js +0 -440
- package/lib/platform/ios/snippet/PlaceholderConverter.js +0 -59
- package/lib/platform/ios/snippet/XcodeCodec.js +0 -114
- package/lib/platform/ios/spm/DependencyGraph.js +0 -234
- package/lib/platform/ios/spm/PackageSwiftParser.js +0 -267
- package/lib/platform/ios/spm/PolicyEngine.js +0 -91
- package/lib/platform/ios/spm/SpmDiscoverer.js +0 -228
- package/lib/platform/ios/spm/SpmHelper.js +0 -813
- package/lib/platform/ios/xcode/SaveEventFilter.js +0 -165
- package/lib/platform/ios/xcode/XcodeAutomation.js +0 -350
- package/lib/platform/ios/xcode/XcodeImportResolver.js +0 -434
- package/lib/platform/ios/xcode/XcodeIntegration.js +0 -680
- package/lib/platform/ios/xcode/XcodeWriteUtils.js +0 -225
- package/lib/repository/base/BaseRepository.js +0 -256
- package/lib/repository/knowledge/KnowledgeRepository.impl.js +0 -355
- package/lib/repository/task/TaskRepository.impl.js +0 -400
- package/lib/repository/token/TokenUsageStore.js +0 -164
- package/lib/service/agent/AgentEventBus.js +0 -207
- package/lib/service/agent/AgentFactory.js +0 -535
- package/lib/service/agent/AgentMessage.js +0 -240
- package/lib/service/agent/AgentRouter.js +0 -228
- package/lib/service/agent/AgentRuntime.js +0 -1056
- package/lib/service/agent/AgentState.js +0 -217
- package/lib/service/agent/ConversationStore.js +0 -420
- package/lib/service/agent/IntentClassifier.js +0 -331
- package/lib/service/agent/LarkTransport.js +0 -389
- package/lib/service/agent/capabilities.js +0 -409
- package/lib/service/agent/context/ContextWindow.js +0 -674
- package/lib/service/agent/context/ExplorationTracker.js +0 -1385
- package/lib/service/agent/core/ChatAgentPrompts.js +0 -161
- package/lib/service/agent/core/LoopContext.js +0 -170
- package/lib/service/agent/core/MessageAdapter.js +0 -223
- package/lib/service/agent/core/ToolExecutionPipeline.js +0 -376
- package/lib/service/agent/domain/ChatAgentTasks.js +0 -214
- package/lib/service/agent/domain/EpisodicConsolidator.js +0 -367
- package/lib/service/agent/domain/EvidenceCollector.js +0 -502
- package/lib/service/agent/domain/insight-analyst.js +0 -245
- package/lib/service/agent/domain/insight-gate.js +0 -474
- package/lib/service/agent/domain/insight-producer.js +0 -270
- package/lib/service/agent/domain/scan-prompts.js +0 -444
- package/lib/service/agent/forced-summary.js +0 -266
- package/lib/service/agent/index.js +0 -91
- package/lib/service/agent/memory/ActiveContext.js +0 -940
- package/lib/service/agent/memory/MemoryCoordinator.js +0 -662
- package/lib/service/agent/memory/PersistentMemory.js +0 -1165
- package/lib/service/agent/memory/SessionStore.js +0 -897
- package/lib/service/agent/memory/index.js +0 -13
- package/lib/service/agent/policies.js +0 -442
- package/lib/service/agent/presets.js +0 -305
- package/lib/service/agent/strategies.js +0 -756
- package/lib/service/agent/tools/ToolRegistry.js +0 -215
- package/lib/service/agent/tools/_shared.js +0 -61
- package/lib/service/agent/tools/ai-analysis.js +0 -75
- package/lib/service/agent/tools/ast-graph.js +0 -879
- package/lib/service/agent/tools/composite.js +0 -567
- package/lib/service/agent/tools/guard.js +0 -145
- package/lib/service/agent/tools/index.js +0 -250
- package/lib/service/agent/tools/infrastructure.js +0 -232
- package/lib/service/agent/tools/knowledge-graph.js +0 -112
- package/lib/service/agent/tools/lifecycle.js +0 -488
- package/lib/service/agent/tools/project-access.js +0 -919
- package/lib/service/agent/tools/query.js +0 -264
- package/lib/service/agent/tools/scan-recipe.js +0 -189
- package/lib/service/agent/tools/system-interaction.js +0 -476
- package/lib/service/automation/ActionPipeline.js +0 -63
- package/lib/service/automation/AutomationOrchestrator.js +0 -76
- package/lib/service/automation/ContextCollector.js +0 -37
- package/lib/service/automation/DirectiveDetector.js +0 -142
- package/lib/service/automation/FileWatcher.js +0 -430
- package/lib/service/automation/TriggerResolver.js +0 -71
- package/lib/service/automation/handlers/AlinkHandler.js +0 -81
- package/lib/service/automation/handlers/CreateHandler.js +0 -196
- package/lib/service/automation/handlers/DraftHandler.js +0 -77
- package/lib/service/automation/handlers/GuardHandler.js +0 -239
- package/lib/service/automation/handlers/HeaderHandler.js +0 -51
- package/lib/service/automation/handlers/SearchHandler.js +0 -305
- package/lib/service/bootstrap/BootstrapTaskManager.js +0 -442
- package/lib/service/candidate/CandidateAggregator.js +0 -52
- package/lib/service/candidate/SimilarityService.js +0 -100
- package/lib/service/context/RecipeExtractor.js +0 -344
- package/lib/service/cursor/AgentInstructionsGenerator.js +0 -469
- package/lib/service/cursor/CursorDeliveryPipeline.js +0 -745
- package/lib/service/cursor/FileProtection.js +0 -119
- package/lib/service/cursor/KnowledgeCompressor.js +0 -189
- package/lib/service/cursor/RulesGenerator.js +0 -174
- package/lib/service/cursor/SkillsSyncer.js +0 -320
- package/lib/service/cursor/TokenBudget.js +0 -41
- package/lib/service/cursor/TopicClassifier.js +0 -191
- package/lib/service/guard/ComplianceReporter.js +0 -364
- package/lib/service/guard/ExclusionManager.js +0 -280
- package/lib/service/guard/GuardCheckEngine.js +0 -1063
- package/lib/service/guard/GuardCodeChecks.js +0 -391
- package/lib/service/guard/GuardCrossFileChecks.js +0 -326
- package/lib/service/guard/GuardFeedbackLoop.js +0 -152
- package/lib/service/guard/GuardPatternUtils.js +0 -187
- package/lib/service/guard/GuardService.js +0 -323
- package/lib/service/guard/RuleLearner.js +0 -324
- package/lib/service/guard/SourceFileCollector.js +0 -116
- package/lib/service/guard/ViolationsStore.js +0 -236
- package/lib/service/knowledge/CodeEntityGraph.js +0 -1177
- package/lib/service/knowledge/ConfidenceRouter.js +0 -161
- package/lib/service/knowledge/KnowledgeFileWriter.js +0 -725
- package/lib/service/knowledge/KnowledgeGraphService.js +0 -264
- package/lib/service/knowledge/KnowledgeService.js +0 -932
- package/lib/service/module/ModuleService.js +0 -1054
- package/lib/service/quality/FeedbackCollector.js +0 -146
- package/lib/service/quality/QualityScorer.js +0 -203
- package/lib/service/recipe/RecipeCandidateValidator.js +0 -211
- package/lib/service/recipe/RecipeParser.js +0 -309
- package/lib/service/search/CoarseRanker.js +0 -111
- package/lib/service/search/CrossEncoderReranker.js +0 -174
- package/lib/service/search/InvertedIndex.js +0 -92
- package/lib/service/search/MultiSignalRanker.js +0 -227
- package/lib/service/search/RetrievalFunnel.js +0 -134
- package/lib/service/search/SearchEngine.js +0 -811
- package/lib/service/skills/EventAggregator.js +0 -204
- package/lib/service/skills/SignalCollector.js +0 -640
- package/lib/service/skills/SkillAdvisor.js +0 -363
- package/lib/service/skills/SkillHooks.js +0 -136
- package/lib/service/snippet/SnippetFactory.js +0 -192
- package/lib/service/snippet/SnippetInstaller.js +0 -329
- package/lib/service/snippet/codecs/SnippetCodec.js +0 -67
- package/lib/service/snippet/codecs/VSCodeCodec.js +0 -102
- package/lib/service/task/TaskGraphService.js +0 -650
- package/lib/service/task/TaskKnowledgeBridge.js +0 -86
- package/lib/service/task/TaskReadyEngine.js +0 -127
- package/lib/service/wiki/WikiGenerator.js +0 -1038
- package/lib/service/wiki/WikiRenderers.js +0 -1903
- package/lib/service/wiki/WikiUtils.js +0 -1052
- package/lib/shared/BootstrapEventEmitter.js +0 -123
- package/lib/shared/DimensionCopyRegistry.js +0 -472
- package/lib/shared/FieldSpec.js +0 -359
- package/lib/shared/LanguageService.js +0 -757
- package/lib/shared/PathGuard.js +0 -326
- package/lib/shared/RecipeReadinessChecker.js +0 -78
- package/lib/shared/StyleGuide.js +0 -107
- package/lib/shared/UnifiedValidator.js +0 -355
- package/lib/shared/constants.js +0 -161
- package/lib/shared/errors/BaseError.js +0 -94
- package/lib/shared/errors/index.js +0 -14
- package/lib/shared/similarity.js +0 -118
- package/lib/shared/token-utils.js +0 -50
- package/lib/shared/utils/common.js +0 -76
- package/scripts/bench-real-projects.mjs +0 -256
- package/scripts/build-native-ui.js +0 -73
- package/scripts/clear-old-vector-index.js +0 -47
- package/scripts/clear-vector-cache.js +0 -49
- package/scripts/collect-test-project-stats.mjs +0 -160
- package/scripts/diagnose-mcp.js +0 -83
- package/scripts/ensure-parse-package.js +0 -46
- package/scripts/generate-recipe-drafts.js +0 -179
- package/scripts/init-db.js +0 -30
- package/scripts/init-snippets.js +0 -324
- package/scripts/init-vector-db.js +0 -277
- package/scripts/install-cursor-skill.js +0 -393
- package/scripts/install-full.js +0 -45
- package/scripts/install-vscode-copilot.js +0 -333
- package/scripts/migrate-md-to-knowledge.mjs +0 -355
- package/scripts/postinstall-safe.js +0 -98
- package/scripts/recipe-audit.js +0 -253
- package/scripts/release.js +0 -411
- package/scripts/setup-mcp-config.js +0 -135
- package/scripts/verify-context-api.js +0 -61
package/bin/mcp-server.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* AutoSnippet V2 MCP Server 入口
|
|
5
|
-
* 供 Cursor / VSCode Copilot MCP 配置使用
|
|
6
|
-
*
|
|
7
|
-
* VSCode 配置示例 (.vscode/mcp.json):
|
|
8
|
-
* {
|
|
9
|
-
* "servers": {
|
|
10
|
-
* "autosnippet": {
|
|
11
|
-
* "type": "stdio",
|
|
12
|
-
* "command": "node",
|
|
13
|
-
* "args": ["/path/to/v2/bin/mcp-server.js"]
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
* }
|
|
17
|
-
*
|
|
18
|
-
* Cursor 配置示例 (.cursor/mcp.json):
|
|
19
|
-
* {
|
|
20
|
-
* "mcpServers": {
|
|
21
|
-
* "autosnippet": {
|
|
22
|
-
* "command": "node",
|
|
23
|
-
* "args": ["/path/to/v2/bin/mcp-server.js"]
|
|
24
|
-
* }
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
// 标记 MCP 模式 — 必须在任何模块加载前设置
|
|
30
|
-
// 使用动态 import() 避免 ESM static import hoisting 导致 env 未就绪
|
|
31
|
-
process.env.ASD_MCP_MODE = '1';
|
|
32
|
-
|
|
33
|
-
// ─── 进程级错误兜底 ────────────────────────────────────
|
|
34
|
-
process.on('uncaughtException', (error) => {
|
|
35
|
-
process.stderr.write(`[MCP] Uncaught Exception: ${error.message}\n`);
|
|
36
|
-
if (error.stack) {
|
|
37
|
-
process.stderr.write(`${error.stack}\n`);
|
|
38
|
-
}
|
|
39
|
-
process.exit(1);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
process.on('unhandledRejection', (reason) => {
|
|
43
|
-
const msg = reason instanceof Error ? reason.message : String(reason);
|
|
44
|
-
process.stderr.write(`[MCP] Unhandled Rejection: ${msg}\n`);
|
|
45
|
-
process.exit(1);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
process.on('SIGTERM', () => {
|
|
49
|
-
process.stderr.write('[MCP] Received SIGTERM, shutting down…\n');
|
|
50
|
-
process.exit(0);
|
|
51
|
-
});
|
|
52
|
-
process.on('SIGINT', () => {
|
|
53
|
-
process.stderr.write('[MCP] Received SIGINT, shutting down…\n');
|
|
54
|
-
process.exit(0);
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
const { startMcpServer } = await import('../lib/external/mcp/McpServer.js');
|
|
58
|
-
|
|
59
|
-
startMcpServer().catch((err) => {
|
|
60
|
-
process.stderr.write(`MCP Server failed to start: ${err.message}\n`);
|
|
61
|
-
process.exit(1);
|
|
62
|
-
});
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Knowledge Base 配置文件
|
|
3
|
-
* 向量数据库、检索、内存等系统配置
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
// Vector Database 配置
|
|
8
|
-
vectorDb: {
|
|
9
|
-
type: 'milvus',
|
|
10
|
-
connection: {
|
|
11
|
-
uri: process.env.MILVUS_URI || 'http://localhost:19530',
|
|
12
|
-
dbName: 'autosnippet',
|
|
13
|
-
},
|
|
14
|
-
collection: {
|
|
15
|
-
name: 'recipes',
|
|
16
|
-
dimension: 768, // text-embedding-3-small
|
|
17
|
-
indexType: 'IVF_FLAT',
|
|
18
|
-
metricType: 'L2', // Euclidean distance
|
|
19
|
-
nlist: 128, // Number of inverted lists
|
|
20
|
-
},
|
|
21
|
-
timeoutMs: 30000,
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
// 索引配置
|
|
25
|
-
indexing: {
|
|
26
|
-
batchSize: 32,
|
|
27
|
-
embeddingModel: 'text-embedding-3-small', // OpenAI embedding model
|
|
28
|
-
embeddingDimension: 768,
|
|
29
|
-
cachePath: '.autosnippet/cache',
|
|
30
|
-
enableCaching: true,
|
|
31
|
-
cacheExpiry: 7 * 24 * 60 * 60, // 7 days in seconds
|
|
32
|
-
maxCacheSize: 500, // Maximum number of cached embeddings
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
// 检索漏斗配置
|
|
36
|
-
retrieval: {
|
|
37
|
-
layers: ['keyword', 'semantic', 'fusion', 'rerank'],
|
|
38
|
-
topK: {
|
|
39
|
-
keyword: 100, // Layer 1: Keyword filter
|
|
40
|
-
semantic: 50, // Layer 2: Semantic search
|
|
41
|
-
fusion: 20, // Layer 3: Multi-signal ranking
|
|
42
|
-
final: 10, // Layer 4: Context-aware reranking
|
|
43
|
-
},
|
|
44
|
-
weights: {
|
|
45
|
-
default: {
|
|
46
|
-
relevance: 0.35, // Semantic + BM25
|
|
47
|
-
authority: 0.2, // Authority score
|
|
48
|
-
recency: 0.15, // Last modified time
|
|
49
|
-
popularity: 0.15, // Usage heat
|
|
50
|
-
difficulty: 0.1, // Difficulty matching
|
|
51
|
-
seasonality: 0.05, // Seasonality boost
|
|
52
|
-
},
|
|
53
|
-
// Scenario-specific weights
|
|
54
|
-
scenarios: {
|
|
55
|
-
lint: {
|
|
56
|
-
relevance: 0.4,
|
|
57
|
-
authority: 0.3,
|
|
58
|
-
recency: 0.1,
|
|
59
|
-
popularity: 0.1,
|
|
60
|
-
difficulty: 0.1,
|
|
61
|
-
seasonality: 0.0,
|
|
62
|
-
},
|
|
63
|
-
generate: {
|
|
64
|
-
relevance: 0.35,
|
|
65
|
-
authority: 0.15,
|
|
66
|
-
recency: 0.15,
|
|
67
|
-
popularity: 0.2,
|
|
68
|
-
difficulty: 0.1,
|
|
69
|
-
seasonality: 0.05,
|
|
70
|
-
},
|
|
71
|
-
search: {
|
|
72
|
-
relevance: 0.3,
|
|
73
|
-
authority: 0.25,
|
|
74
|
-
recency: 0.15,
|
|
75
|
-
popularity: 0.15,
|
|
76
|
-
difficulty: 0.1,
|
|
77
|
-
seasonality: 0.05,
|
|
78
|
-
},
|
|
79
|
-
learning: {
|
|
80
|
-
relevance: 0.25,
|
|
81
|
-
authority: 0.2,
|
|
82
|
-
recency: 0.1,
|
|
83
|
-
popularity: 0.1,
|
|
84
|
-
difficulty: 0.3, // Priority on simplicity
|
|
85
|
-
seasonality: 0.05,
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
// 内存系统配置
|
|
92
|
-
memory: {
|
|
93
|
-
episodic: {
|
|
94
|
-
persistence: 'json', // or 'redis' for distributed
|
|
95
|
-
persistPath: '.autosnippet/memory/episodic',
|
|
96
|
-
maxSessions: 100,
|
|
97
|
-
sessionTTL: 48 * 60 * 60, // 48 hours in seconds
|
|
98
|
-
},
|
|
99
|
-
conversation: {
|
|
100
|
-
maxRounds: 5,
|
|
101
|
-
compressionThreshold: 0.7,
|
|
102
|
-
summaryMaxLength: 200, // characters
|
|
103
|
-
},
|
|
104
|
-
semantic: {
|
|
105
|
-
// Recipe knowledge base caching
|
|
106
|
-
enableCache: true,
|
|
107
|
-
cacheExpiry: 24 * 60 * 60, // 24 hours
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
// Agent 协调层配置
|
|
112
|
-
agent: {
|
|
113
|
-
coordinator: {
|
|
114
|
-
timeout: 30000, // 30 seconds
|
|
115
|
-
retries: 2,
|
|
116
|
-
fallback: 'search', // Fallback agent if others fail
|
|
117
|
-
},
|
|
118
|
-
intentClassification: {
|
|
119
|
-
enableLLM: false, // Use simple keyword matching by default
|
|
120
|
-
keywords: {
|
|
121
|
-
code_generation: ['create', 'write', 'generate', 'implement', 'make'],
|
|
122
|
-
code_quality_check: ['check', 'validate', 'audit', 'lint', 'review'],
|
|
123
|
-
learning_path: ['learn', 'tutorial', 'explain', 'understand', 'teach'],
|
|
124
|
-
general_query: [],
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
// Token 预算配置
|
|
130
|
-
tokenBudget: {
|
|
131
|
-
maxTokens: 4000,
|
|
132
|
-
allocation: {
|
|
133
|
-
systemPrompt: 300,
|
|
134
|
-
conversationHistory: 1200,
|
|
135
|
-
recipes: 800,
|
|
136
|
-
userInput: 300,
|
|
137
|
-
buffer: 400,
|
|
138
|
-
},
|
|
139
|
-
scenarios: {
|
|
140
|
-
quick_fix: {
|
|
141
|
-
conversationHistory: 200,
|
|
142
|
-
recipes: 1500,
|
|
143
|
-
buffer: 100,
|
|
144
|
-
},
|
|
145
|
-
detailed_explanation: {
|
|
146
|
-
conversationHistory: 600,
|
|
147
|
-
recipes: 1200,
|
|
148
|
-
buffer: 200,
|
|
149
|
-
},
|
|
150
|
-
learning_session: {
|
|
151
|
-
conversationHistory: 400,
|
|
152
|
-
recipes: 1500,
|
|
153
|
-
buffer: 200,
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
// 开发/调试配置
|
|
159
|
-
debug: {
|
|
160
|
-
logIndexing: false,
|
|
161
|
-
logRetrieval: false,
|
|
162
|
-
logAgent: false,
|
|
163
|
-
logMemory: false,
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
// 性能优化
|
|
167
|
-
performance: {
|
|
168
|
-
enableParallelProcessing: true,
|
|
169
|
-
maxConcurrentRequests: 10,
|
|
170
|
-
cacheBatchSize: 32,
|
|
171
|
-
prefetchSize: 10, // Prefetch next N results
|
|
172
|
-
},
|
|
173
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
function Je(e,t){return function(){return e.apply(t,arguments)}}const{toString:pt}=Object.prototype,{getPrototypeOf:be}=Object,{iterator:re,toStringTag:Ve}=Symbol,se=(e=>t=>{const n=pt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>se(t)===e),oe=e=>t=>typeof t===e,{isArray:M}=Array,H=oe("undefined");function J(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const We=F("ArrayBuffer");function ht(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&We(e.buffer),t}const mt=oe("string"),A=oe("function"),Ke=oe("number"),V=e=>e!==null&&typeof e=="object",yt=e=>e===!0||e===!1,Y=e=>{if(se(e)!=="object")return!1;const t=be(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ve in e)&&!(re in e)},bt=e=>{if(!V(e)||J(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},wt=F("Date"),Et=F("File"),Rt=F("Blob"),gt=F("FileList"),St=e=>V(e)&&A(e.pipe),Ot=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=se(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},Tt=F("URLSearchParams"),[At,Ct,xt,_t]=["ReadableStream","Request","Response","Headers"].map(F),Nt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),M(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(J(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function ve(e,t){if(J(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const k=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xe=e=>!H(e)&&e!==k;function pe(){const{caseless:e,skipUndefined:t}=Xe(this)&&this||{},n={},r=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&ve(n,o)||o;Y(n[i])&&Y(s)?n[i]=pe(n[i],s):Y(s)?n[i]=pe({},s):M(s)?n[i]=s.slice():(!t||!H(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&W(arguments[s],r);return n}const Pt=(e,t,n,{allOwnKeys:r}={})=>(W(t,(s,o)=>{n&&A(s)?Object.defineProperty(e,o,{value:Je(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Ft=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ut=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Dt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&be(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Bt=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!Ke(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},kt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&be(Uint8Array)),jt=(e,t)=>{const r=(e&&e[re]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},qt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},It=F("HTMLFormElement"),Ht=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),_e=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mt=F("RegExp"),Ge=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};W(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},$t=e=>{Ge(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return M(e)?r(e):r(String(e).split(t)),n},Jt=()=>{},Vt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Wt(e){return!!(e&&A(e.append)&&e[Ve]==="FormData"&&e[re])}const Kt=e=>{const t=new Array(10),n=(r,s)=>{if(V(r)){if(t.indexOf(r)>=0)return;if(J(r))return r;if(!("toJSON"in r)){t[s]=r;const o=M(r)?[]:{};return W(r,(i,c)=>{const d=n(i,s+1);!H(d)&&(o[c]=d)}),t[s]=void 0,o}}return r};return n(e,0)},vt=F("AsyncFunction"),Xt=e=>e&&(V(e)||A(e))&&A(e.then)&&A(e.catch),Qe=((e,t)=>e?setImmediate:t?((n,r)=>(k.addEventListener("message",({source:s,data:o})=>{s===k&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),k.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(k.postMessage)),Gt=typeof queueMicrotask<"u"?queueMicrotask.bind(k):typeof process<"u"&&process.nextTick||Qe,Qt=e=>e!=null&&A(e[re]),a={isArray:M,isArrayBuffer:We,isBuffer:J,isFormData:Ot,isArrayBufferView:ht,isString:mt,isNumber:Ke,isBoolean:yt,isObject:V,isPlainObject:Y,isEmptyObject:bt,isReadableStream:At,isRequest:Ct,isResponse:xt,isHeaders:_t,isUndefined:H,isDate:wt,isFile:Et,isBlob:Rt,isRegExp:Mt,isFunction:A,isStream:St,isURLSearchParams:Tt,isTypedArray:kt,isFileList:gt,forEach:W,merge:pe,extend:Pt,trim:Nt,stripBOM:Ft,inherits:Ut,toFlatObject:Dt,kindOf:se,kindOfTest:F,endsWith:Lt,toArray:Bt,forEachEntry:jt,matchAll:qt,isHTMLForm:It,hasOwnProperty:_e,hasOwnProp:_e,reduceDescriptors:Ge,freezeMethods:$t,toObjectSet:zt,toCamelCase:Ht,noop:Jt,toFiniteNumber:Vt,findKey:ve,global:k,isContextDefined:Xe,isSpecCompliantForm:Wt,toJSONObject:Kt,isAsyncFn:vt,isThenable:Xt,setImmediate:Qe,asap:Gt,isIterable:Qt};let y=class Ze extends Error{static from(t,n,r,s,o,i){const c=new Ze(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,i&&Object.assign(c,i),c}constructor(t,n,r,s,o){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}};y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";y.ERR_BAD_OPTION="ERR_BAD_OPTION";y.ECONNABORTED="ECONNABORTED";y.ETIMEDOUT="ETIMEDOUT";y.ERR_NETWORK="ERR_NETWORK";y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";y.ERR_DEPRECATED="ERR_DEPRECATED";y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";y.ERR_CANCELED="ERR_CANCELED";y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";y.ERR_INVALID_URL="ERR_INVALID_URL";const Zt=null;function he(e){return a.isPlainObject(e)||a.isArray(e)}function Ye(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ye(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Yt(e){return a.isArray(e)&&!e.some(he)}const en=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(a.isBoolean(u))return u.toString();if(!d&&a.isBlob(u))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,p){let w=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&Yt(u)||(a.isFileList(u)||a.endsWith(m,"[]"))&&(w=a.toArray(u)))return m=Ye(m),w.forEach(function(R,O){!(a.isUndefined(R)||R===null)&&t.append(i===!0?Ne([m],O,o):i===null?m:m+"[]",f(R))}),!1}return he(u)?!0:(t.append(Ne(p,m,o),f(u)),!1)}const h=[],b=Object.assign(en,{defaultVisitor:l,convertValue:f,isVisitable:he});function g(u,m){if(!a.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(u),a.forEach(u,function(w,x){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(x)?x.trim():x,m,b))===!0&&g(w,m?m.concat(x):[x])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function we(e,t){this._pairs=[],e&&ie(e,this,t)}const et=we.prototype;et.append=function(t,n){this._pairs.push([t,n])};et.toString=function(t){const n=t?function(r){return t.call(this,r,Pe)}:Pe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function tn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,n){if(!t)return e;const r=n&&n.encode||tn,s=a.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;let i;if(o?i=o(t,s):i=a.isURLSearchParams(t)?t.toString():new we(t,s).toString(r),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},nn=typeof URLSearchParams<"u"?URLSearchParams:we,rn=typeof FormData<"u"?FormData:null,sn=typeof Blob<"u"?Blob:null,on={isBrowser:!0,classes:{URLSearchParams:nn,FormData:rn,Blob:sn},protocols:["http","https","file","blob","url","data"]},Re=typeof window<"u"&&typeof document<"u",me=typeof navigator=="object"&&navigator||void 0,an=Re&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),cn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ln=Re&&window.location.href||"http://localhost",un=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Re,hasStandardBrowserEnv:an,hasStandardBrowserWebWorkerEnv:cn,navigator:me,origin:ln},Symbol.toStringTag,{value:"Module"})),S={...un,...on};function fn(e,t){return ie(e,new S.classes.URLSearchParams,{visitor:function(n,r,s,o){return S.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function dn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function nt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=pn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(dn(r),s,n,0)}),n}return null}function hn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const K={transitional:Ee,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(nt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ie(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),hn(t)):t}],transformResponse:[function(t){const n=this.transitional||K.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:S.classes.FormData,Blob:S.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{K.headers[e]={}});const mn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&mn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ue=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function bn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const wn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ue(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function En(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Rn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let C=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,d,f){const l=z(d);if(!l)throw new Error("header name must be a non-empty string");const h=a.findKey(s,l);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||d]=ee(c))}const i=(c,d)=>a.forEach(c,(f,l)=>o(f,l,d));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!wn(t))i(yn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},d,f;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[f=l[0]]=(d=c[f])?a.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=z(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return bn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ue(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=z(i),i){const c=a.findKey(r,i);c&&(!n||ue(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ue(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=ee(s),delete n[o];return}const c=t?En(o):String(o).trim();c!==o&&delete n[o],n[c]=ee(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ue]=this[Ue]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=z(i);r[c]||(Rn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};C.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(C.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(C);function fe(e,t){const n=this||K,r=t||n,s=C.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function rt(e){return!!(e&&e.__CANCEL__)}let v=class extends y{constructor(t,n,r){super(t??"canceled",y.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function st(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function gn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[o];i||(i=f),n[s]=d,r[s]=f;let h=o,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i<t)return;const g=l&&f-l;return g?Math.round(b*1e3/g):void 0}}function On(e,t){let n=0,r=1e3/t,s,o;const i=(f,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const l=Date.now(),h=l-n;h>=r?i(f,l):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-h)))},()=>s&&i(s)]}const ne=(e,t,n=3)=>{let r=0;const s=Sn(50,250);return On(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,d=i-r,f=s(d),l=i<=c;r=i;const h={loaded:i,total:c,progress:c?i/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&l?(c-i)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},De=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>(...t)=>a.asap(()=>e(...t)),Tn=S.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,S.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(S.origin),S.navigator&&/(msie|trident)/i.test(S.navigator.userAgent)):()=>!0,An=S.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Cn(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ot(e,t,n){let r=!Cn(t);return e&&(r||n==!1)?xn(e,t):t}const Be=e=>e instanceof C?{...e}:e;function q(e,t){t=t||{};const n={};function r(f,l,h,b){return a.isPlainObject(f)&&a.isPlainObject(l)?a.merge.call({caseless:b},f,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(f,l,h,b){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f,h,b)}else return r(f,l,h,b)}function o(f,l){if(!a.isUndefined(l))return r(void 0,l)}function i(f,l){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function c(f,l,h){if(h in t)return r(f,l);if(h in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(f,l,h)=>s(Be(f),Be(l),h,!0)};return a.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const h=a.hasOwnProp(d,l)?d[l]:s,b=h(e[l],t[l],l);a.isUndefined(b)&&h!==c||(n[l]=b)}),n}const it=e=>{const t=q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;if(t.headers=i=C.from(i),t.url=tt(ot(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(S.hasStandardBrowserEnv||S.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,h])=>{f.includes(l.toLowerCase())&&i.set(l,h)})}}if(S.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Tn(t.url))){const d=s&&o&&An.read(o);d&&i.set(s,d)}return t},_n=typeof XMLHttpRequest<"u",Nn=_n&&function(e){return new Promise(function(n,r){const s=it(e);let o=s.data;const i=C.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,l,h,b,g,u;function m(){g&&g(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function w(){if(!p)return;const R=C.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),P={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:e,request:p};st(function(_){n(_),m()},function(_){r(_),m()},P),p=null}"onloadend"in p?p.onloadend=w:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(w)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(O){const P=O&&O.message?O.message:"Network Error",L=new y(P,y.ERR_NETWORK,e,p);L.event=O||null,r(L),p=null},p.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||Ee;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new y(O,P.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&a.forEach(i.toJSON(),function(O,P){p.setRequestHeader(P,O)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([b,u]=ne(f,!0),p.addEventListener("progress",b)),d&&p.upload&&([h,g]=ne(d),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(l=R=>{p&&(r(!R||R.type?new v(null,e,p):R),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const x=gn(s.url);if(x&&S.protocols.indexOf(x)===-1){r(new y("Unsupported protocol "+x+":",y.ERR_BAD_REQUEST,e));return}p.send(o||null)})},Pn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(f){if(!s){s=!0,c();const l=f instanceof Error?f:this.reason;r.abort(l instanceof y?l:new v(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>a.asap(c),d}},Fn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Un=async function*(e,t){for await(const n of Dn(e))yield*Fn(n,t)},Dn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ke=(e,t,n,r)=>{const s=Un(e,t);let o=0,i,c=d=>{i||(i=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){c(),d.close();return}let h=l.byteLength;if(n){let b=o+=h;n(b)}d.enqueue(new Uint8Array(l))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},je=64*1024,{isFunction:Z}=a,Ln=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:qe,TextEncoder:Ie}=a.global,He=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Bn=e=>{e=a.merge.call({skipUndefined:!0},Ln,e);const{fetch:t,Request:n,Response:r}=e,s=t?Z(t):typeof fetch=="function",o=Z(n),i=Z(r);if(!s)return!1;const c=s&&Z(qe),d=s&&(typeof Ie=="function"?(u=>m=>u.encode(m))(new Ie):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=o&&c&&He(()=>{let u=!1;const m=new n(S.origin,{body:new qe,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=i&&c&&He(()=>a.isReadableStream(new r("").body)),h={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!h[u]&&(h[u]=(m,p)=>{let w=m&&m[u];if(w)return w.call(m);throw new y(`Response type '${u}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const b=async u=>{if(u==null)return 0;if(a.isBlob(u))return u.size;if(a.isSpecCompliantForm(u))return(await new n(S.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(a.isArrayBufferView(u)||a.isArrayBuffer(u))return u.byteLength;if(a.isURLSearchParams(u)&&(u=u+""),a.isString(u))return(await d(u)).byteLength},g=async(u,m)=>{const p=a.toFiniteNumber(u.getContentLength());return p??b(m)};return async u=>{let{url:m,method:p,data:w,signal:x,cancelToken:R,timeout:O,onDownloadProgress:P,onUploadProgress:L,responseType:_,headers:ce,withCredentials:X="same-origin",fetchOptions:Se}=it(u),Oe=t||fetch;_=_?(_+"").toLowerCase():"text";let G=Pn([x,R&&R.toAbortSignal()],O),$=null;const B=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Te;try{if(L&&f&&p!=="get"&&p!=="head"&&(Te=await g(ce,w))!==0){let D=new n(m,{method:"POST",body:w,duplex:"half"}),I;if(a.isFormData(w)&&(I=D.headers.get("content-type"))&&ce.setContentType(I),D.body){const[le,Q]=De(Te,ne(Le(L)));w=ke(D.body,je,le,Q)}}a.isString(X)||(X=X?"include":"omit");const T=o&&"credentials"in n.prototype,Ae={...Se,signal:G,method:p.toUpperCase(),headers:ce.normalize().toJSON(),body:w,duplex:"half",credentials:T?X:void 0};$=o&&new n(m,Ae);let U=await(o?Oe($,Se):Oe(m,Ae));const Ce=l&&(_==="stream"||_==="response");if(l&&(P||Ce&&B)){const D={};["status","statusText","headers"].forEach(xe=>{D[xe]=U[xe]});const I=a.toFiniteNumber(U.headers.get("content-length")),[le,Q]=P&&De(I,ne(Le(P),!0))||[];U=new r(ke(U.body,je,le,()=>{Q&&Q(),B&&B()}),D)}_=_||"text";let dt=await h[a.findKey(h,_)||"text"](U,u);return!Ce&&B&&B(),await new Promise((D,I)=>{st(D,I,{data:dt,headers:C.from(U.headers),status:U.status,statusText:U.statusText,config:u,request:$})})}catch(T){throw B&&B(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,u,$,T&&T.response),{cause:T.cause||T}):y.from(T,T&&T.code,u,$,T&&T.response)}}},kn=new Map,at=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,d,f,l=kn;for(;c--;)d=o[c],f=l.get(d),f===void 0&&l.set(d,f=c?new Map:Bn(t)),l=f;return f};at();const ge={http:Zt,xhr:Nn,fetch:{get:at}};a.forEach(ge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Me=e=>`- ${e}`,jn=e=>a.isFunction(e)||e===null||e===!1;function qn(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!jn(r)&&(s=ge[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
|
|
4
|
-
`+i.map(Me).join(`
|
|
5
|
-
`):" "+Me(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const ct={getAdapter:qn,adapters:ge};function de(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new v(null,e)}function $e(e){return de(e),e.headers=C.from(e.headers),e.data=fe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ct.getAdapter(e.adapter||K.adapter,e)(e).then(function(r){return de(e),r.data=fe.call(e,e.transformResponse,r),r.headers=C.from(r.headers),r},function(r){return rt(r)||(de(e),r&&r.response&&(r.response.data=fe.call(e,e.transformResponse,r.response),r.response.headers=C.from(r.response.headers))),Promise.reject(r)})}const lt="1.13.5",ae={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ae[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ze={};ae.transitional=function(t,n,r){function s(o,i){return"[Axios v"+lt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!ze[i]&&(ze[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};ae.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function In(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],d=c===void 0||i(c,o,e);if(d!==!0)throw new y("option "+o+" must be "+d,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const te={assertOptions:In,validators:ae},N=te.validators;let j=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Fe,response:new Fe}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),te.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),n.headers=C.concat(i,o);const c=[];let d=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;d=d&&m.synchronous;const p=n.transitional||Ee;p&&p.legacyInterceptorReqResOrdering?c.unshift(m.fulfilled,m.rejected):c.push(m.fulfilled,m.rejected)});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,h=0,b;if(!d){const u=[$e.bind(this),void 0];for(u.unshift(...c),u.push(...f),b=u.length,l=Promise.resolve(n);h<b;)l=l.then(u[h++],u[h++]);return l}b=c.length;let g=n;for(;h<b;){const u=c[h++],m=c[h++];try{g=u(g)}catch(p){m.call(this,p);break}}try{l=$e.call(this,g)}catch(u){return Promise.reject(u)}for(h=0,b=f.length;h<b;)l=l.then(f[h++],f[h++]);return l}getUri(t){t=q(this.defaults,t);const n=ot(t.baseURL,t.url,t.allowAbsoluteUrls);return tt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(q(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});let Hn=class ut{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new v(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ut(function(s){t=s}),cancel:t}}};function Mn(e){return function(n){return e.apply(null,n)}}function $n(e){return a.isObject(e)&&e.isAxiosError===!0}const ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ye).forEach(([e,t])=>{ye[t]=e});function ft(e){const t=new j(e),n=Je(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ft(q(e,s))},n}const E=ft(K);E.Axios=j;E.CanceledError=v;E.CancelToken=Hn;E.isCancel=rt;E.VERSION=lt;E.toFormData=ie;E.AxiosError=y;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=Mn;E.isAxiosError=$n;E.mergeConfig=q;E.AxiosHeaders=C;E.formToJSON=e=>nt(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=ct.getAdapter;E.HttpStatusCode=ye;E.default=E;const{Axios:Wn,AxiosError:Kn,CanceledError:vn,isCancel:Xn,CancelToken:Gn,VERSION:Qn,all:Zn,Cancel:Yn,isAxiosError:er,spread:tr,toFormData:nr,AxiosHeaders:rr,HttpStatusCode:sr,formToJSON:or,getAdapter:ir,mergeConfig:ar}=E;export{E as a};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{r as a,j as V,i as it,g as Kt,s as Dt,a as Lt,b as rt,c as bt,d as Jt,e as Zt,f as Qt,h as te,k as ee,l as ne,m as At,n as se,o as oe,p as ie,q as re,S as ae,H as ue,F as L,t as le,u as Tt,v as O,w as at,x as S,y as It,z as ce,A as ut,B as fe,C as W,D as K,E as lt,G as he,I as de,J as D,K as me,L as pe,M as ge,N as ct,O as ve,P as ye,Q as ft,R as Pe,T as xe,U as F,V as we,W as Ce,X as Rt,Y as Ee,Z as Se}from"./vendor-Ck-HBmg5.js";const Q=a.createContext({});function tt(e){const t=a.useRef(null);return t.current===null&&(t.current=e()),t.current}const kt=typeof window<"u",jt=kt?a.useLayoutEffect:a.useEffect,H=a.createContext(null),et=a.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ht(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Me(...e){return t=>{let n=!1;const s=e.map(o=>{const i=ht(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<s.length;o++){const i=s[o];typeof i=="function"?i():ht(e[o],null)}}}}function Ve(...e){return a.useCallback(Me(...e),e)}class De extends a.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,o=it(s)&&s.offsetWidth||0,i=it(s)&&s.offsetHeight||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=o-r.width-r.left,r.bottom=i-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Le({children:e,isPresent:t,anchorX:n,anchorY:s,root:o,pop:i}){var u;const r=a.useId(),l=a.useRef(null),m=a.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=a.useContext(et),p=((u=e.props)==null?void 0:u.ref)??(e==null?void 0:e.ref),c=Ve(l,p);return a.useInsertionEffect(()=>{const{width:d,height:f,top:g,left:v,right:y,bottom:P}=m.current;if(t||i===!1||!l.current||!d||!f)return;const x=n==="left"?`left: ${v}`:`right: ${y}`,w=s==="bottom"?`bottom: ${P}`:`top: ${g}`;l.current.dataset.motionPopId=r;const E=document.createElement("style");h&&(E.nonce=h);const b=o??document.head;return b.appendChild(E),E.sheet&&E.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${r}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${d}px !important;
|
|
5
|
-
height: ${f}px !important;
|
|
6
|
-
${x}px !important;
|
|
7
|
-
${w}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{b.contains(E)&&b.removeChild(E)}},[t]),V.jsx(De,{isPresent:t,childRef:l,sizeRef:m,pop:i,children:i===!1?e:a.cloneElement(e,{ref:c})})}const be=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:i,mode:r,anchorX:l,anchorY:m,root:h})=>{const p=tt(Ae),c=a.useId();let u=!0,d=a.useMemo(()=>(u=!1,{id:c,initial:t,isPresent:n,custom:o,onExitComplete:f=>{p.set(f,!0);for(const g of p.values())if(!g)return;s&&s()},register:f=>(p.set(f,!1),()=>p.delete(f))}),[n,p,s]);return i&&u&&(d={...d}),a.useMemo(()=>{p.forEach((f,g)=>p.set(g,!1))},[n]),a.useEffect(()=>{!n&&!p.size&&s&&s()},[n]),e=V.jsx(Le,{pop:r==="popLayout",isPresent:n,anchorX:l,anchorY:m,root:h,children:e}),V.jsx(H.Provider,{value:d,children:e})};function Ae(){return new Map}function Ft(e=!0){const t=a.useContext(H);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:o}=t,i=a.useId();a.useEffect(()=>{if(e)return o(i)},[e]);const r=a.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,r]:[!0]}const k=e=>e.key||"";function dt(e){const t=[];return a.Children.forEach(e,n=>{a.isValidElement(n)&&t.push(n)}),t}const Hn=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:i="sync",propagate:r=!1,anchorX:l="left",anchorY:m="top",root:h})=>{const[p,c]=Ft(r),u=a.useMemo(()=>dt(e),[e]),d=r&&!p?[]:u.map(k),f=a.useRef(!0),g=a.useRef(u),v=tt(()=>new Map),y=a.useRef(new Set),[P,x]=a.useState(u),[w,E]=a.useState(u);jt(()=>{f.current=!1,g.current=u;for(let M=0;M<w.length;M++){const C=k(w[M]);d.includes(C)?(v.delete(C),y.current.delete(C)):v.get(C)!==!0&&v.set(C,!1)}},[w,d.length,d.join("-")]);const b=[];if(u!==P){let M=[...u];for(let C=0;C<w.length;C++){const A=w[C],N=k(A);d.includes(N)||(M.splice(C,0,A),b.push(A))}return i==="wait"&&b.length&&(M=b),E(dt(M)),x(u),null}const{forceRender:U}=a.useContext(Q);return V.jsx(V.Fragment,{children:w.map(M=>{const C=k(M),A=r&&!p?!1:u===w||d.includes(C),N=()=>{if(y.current.has(C))return;if(y.current.add(C),v.has(C))v.set(C,!0);else return;let ot=!0;v.forEach(qt=>{qt||(ot=!1)}),ot&&(U==null||U(),E(g.current),r&&(c==null||c()),s&&s())};return V.jsx(be,{isPresent:A,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:h,onExitComplete:A?void 0:N,anchorX:l,anchorY:m,children:M},C)})})},Ot=a.createContext({strict:!1}),mt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let pt=!1;function Te(){if(pt)return;const e={};for(const t in mt)e[t]={isEnabled:n=>mt[t].some(s=>!!n[s])};Dt(e),pt=!0}function Wt(){return Te(),Kt()}function Ie(e){const t=Wt();for(const n in e)t[n]={...t[n],...e[n]};Dt(t)}const Re=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function G(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Re.has(e)}let Gt=e=>!G(e);function ke(e){typeof e=="function"&&(Gt=t=>t.startsWith("on")?!G(t):e(t))}try{ke(require("@emotion/is-prop-valid").default)}catch{}function je(e,t,n){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(Gt(o)||n===!0&&G(o)||!t&&!G(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const B=a.createContext({});function Fe(e,t){if(Lt(e)){const{initial:n,animate:s}=e;return{initial:n===!1||rt(n)?n:void 0,animate:rt(s)?s:void 0}}return e.inherit!==!1?t:{}}function Oe(e){const{initial:t,animate:n}=Fe(e,a.useContext(B));return a.useMemo(()=>({initial:t,animate:n}),[gt(t),gt(n)])}function gt(e){return Array.isArray(e)?e.join(" "):e}const nt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ht(e,t,n){for(const s in t)!bt(t[s])&&!Jt(s,n)&&(e[s]=t[s])}function We({transformTemplate:e},t){return a.useMemo(()=>{const n=nt();return Zt(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ge(e,t){const n=e.style||{},s={};return Ht(s,n,e),Object.assign(s,We(e,t)),s}function He(e,t){const n={},s=Ge(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const Bt=()=>({...nt(),attrs:{}});function Be(e,t,n,s){const o=a.useMemo(()=>{const i=Bt();return Qt(i,t,te(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ht(i,e.style,e),o.style={...i,...o.style}}return o}const Ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function st(e){return typeof e!="string"||e.includes("-")?!1:!!(Ue.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ne(e,t,n,{latestValues:s},o,i=!1,r){const m=(r??st(e)?Be:He)(t,s,o,e),h=je(t,typeof e=="string",i),p=e!==a.Fragment?{...h,...m,ref:n}:{},{children:c}=t,u=a.useMemo(()=>bt(c)?c.get():c,[c]);return a.createElement(e,{...p,children:u})}function $e({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,o){return{latestValues:ze(n,s,o,e),renderState:t()}}function ze(e,t,n,s){const o={},i=s(e,{});for(const u in i)o[u]=ee(i[u]);let{initial:r,animate:l}=e;const m=Lt(e),h=ne(e);t&&h&&!m&&e.inherit!==!1&&(r===void 0&&(r=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||r===!1;const c=p?l:r;if(c&&typeof c!="boolean"&&!At(c)){const u=Array.isArray(c)?c:[c];for(let d=0;d<u.length;d++){const f=se(e,u[d]);if(f){const{transitionEnd:g,transition:v,...y}=f;for(const P in y){let x=y[P];if(Array.isArray(x)){const w=p?x.length-1:0;x=x[w]}x!==null&&(o[P]=x)}for(const P in g)o[P]=g[P]}}}return o}const Ut=e=>(t,n)=>{const s=a.useContext(B),o=a.useContext(H),i=()=>$e(e,t,s,o);return n?i():tt(i)},_e=Ut({scrapeMotionValuesFromProps:oe,createRenderState:nt}),Xe=Ut({scrapeMotionValuesFromProps:ie,createRenderState:Bt}),Ye=Symbol.for("motionComponentSymbol");function qe(e,t,n){const s=a.useRef(n);a.useInsertionEffect(()=>{s.current=n});const o=a.useRef(null);return a.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const r=s.current;if(typeof r=="function")if(i){const m=r(i);typeof m=="function"&&(o.current=m)}else o.current?(o.current(),o.current=null):r(i);else r&&(r.current=i)},[t])}const Nt=a.createContext({});function T(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ke(e,t,n,s,o,i){var x,w;const{visualElement:r}=a.useContext(B),l=a.useContext(Ot),m=a.useContext(H),h=a.useContext(et),p=h.reducedMotion,c=h.skipAnimations,u=a.useRef(null),d=a.useRef(!1);s=s||l.renderer,!u.current&&s&&(u.current=s(e,{visualState:t,parent:r,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p,skipAnimations:c,isSVG:i}),d.current&&u.current&&(u.current.manuallyAnimateOnMount=!0));const f=u.current,g=a.useContext(Nt);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&Je(u.current,n,o,g);const v=a.useRef(!1);a.useInsertionEffect(()=>{f&&v.current&&f.update(n,m)});const y=n[re],P=a.useRef(!!y&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,y))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,y)));return jt(()=>{d.current=!0,f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),P.current&&f.animationState&&f.animationState.animateChanges())}),a.useEffect(()=>{f&&(!P.current&&f.animationState&&f.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,y)}),P.current=!1),f.enteringChildren=void 0)}),f}function Je(e,t,n,s){const{layoutId:o,layout:i,drag:r,dragConstraints:l,layoutScroll:m,layoutRoot:h,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$t(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!r||l&&T(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,crossfade:p,layoutScroll:m,layoutRoot:h})}function $t(e){if(e)return e.options.allowProjection!==!1?e.projection:$t(e.parent)}function $(e,{forwardMotionProps:t=!1,type:n}={},s,o){s&&Ie(s);const i=n?n==="svg":st(e),r=i?Xe:_e;function l(h,p){let c;const u={...a.useContext(et),...h,layoutId:Ze(h)},{isStatic:d}=u,f=Oe(h),g=r(h,d);if(!d&&kt){Qe();const v=tn(u);c=v.MeasureLayout,f.visualElement=Ke(e,g,u,o,v.ProjectionNode,i)}return V.jsxs(B.Provider,{value:f,children:[c&&f.visualElement?V.jsx(c,{visualElement:f.visualElement,...u}):null,Ne(e,h,qe(g,f.visualElement,p),g,d,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=a.forwardRef(l);return m[Ye]=e,m}function Ze({layoutId:e}){const t=a.useContext(Q).id;return t&&e!==void 0?t+"-"+e:e}function Qe(e,t){a.useContext(Ot).strict}function tn(e){const t=Wt(),{drag:n,layout:s}=t;if(!n&&!s)return{};const o={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(e)||s!=null&&s.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function en(e,t){if(typeof Proxy>"u")return $;const n=new Map,s=(i,r)=>$(i,r,e,t),o=(i,r)=>s(i,r);return new Proxy(o,{get:(i,r)=>r==="create"?s:(n.has(r)||n.set(r,$(r,void 0,e,t)),n.get(r))})}const nn=(e,t)=>t.isSVG??st(e)?new ae(t):new ue(t,{allowProjection:e!==a.Fragment});class sn extends L{constructor(t){super(t),t.animationState||(t.animationState=le(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();At(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let on=0;class rn extends L{constructor(){super(...arguments),this.id=on++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const an={animation:{Feature:sn},exit:{Feature:rn}};function R(e){return{point:{x:e.pageX,y:e.pageY}}}const un=e=>t=>Tt(t)&&e(t,R(t));function I(e,t,n,s){return O(e,t,un(n),s)}const zt=({current:e})=>e?e.ownerDocument.defaultView:null,vt=(e,t)=>Math.abs(e-t);function ln(e,t){const n=vt(e.x,t.x),s=vt(e.y,t.y);return Math.sqrt(n**2+s**2)}const yt=new Set(["auto","scroll"]);class _t{constructor(t,n,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:r=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=_(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=ln(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!g)return;const{point:v}=d,{timestamp:y}=at;this.history.push({...v,timestamp:y});const{onStart:P,onMove:x}=this.handlers;f||(P&&P(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=z(f,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=_(d.type==="pointercancel"?this.lastMoveEventInfo:z(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,P),v&&v(d,P)},!Tt(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=o||window;const m=R(t),h=z(m,this.transformPagePoint),{point:p}=h,{timestamp:c}=at;this.history=[{...p,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,_(h,this.history)),this.removeListeners=It(I(this.contextWindow,"pointermove",this.handlePointerMove),I(this.contextWindow,"pointerup",this.handlePointerUp),I(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const s=getComputedStyle(n);(yt.has(s.overflowX)||yt.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const s=t===window,o=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),S.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ce(this.updatePoint)}}function z(e,t){return t?{point:t(e.point)}:e}function Pt(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _({point:e},t){return{point:e,delta:Pt(e,Xt(t)),offset:Pt(e,cn(t)),velocity:fn(t,.1)}}function cn(e){return e[0]}function Xt(e){return e[e.length-1]}function fn(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const o=Xt(e);for(;n>=0&&(s=e[n],!(o.timestamp-s.timestamp>ut(t)));)n--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&o.timestamp-s.timestamp>ut(t)*2&&(s=e[1]);const i=fe(o.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const r={x:(o.x-s.x)/i,y:(o.y-s.y)/i};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function hn(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?W(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?W(n,e,s.max):Math.min(e,n)),e}function xt(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function dn(e,{top:t,left:n,bottom:s,right:o}){return{x:xt(e.x,n,o),y:xt(e.y,t,s)}}function wt(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function mn(e,t){return{x:wt(e.x,t.x),y:wt(e.y,t.y)}}function pn(e,t){let n=.5;const s=K(e),o=K(t);return o>s?n=lt(t.min,t.max-s,e.min):s>o&&(n=lt(e.min,e.max-o,t.min)),he(0,1,n)}function gn(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const J=.35;function vn(e=J){return e===!1?e=0:e===!0&&(e=J),{x:Ct(e,"left","right"),y:Ct(e,"top","bottom")}}function Ct(e,t,n){return{min:Et(e,t),max:Et(e,n)}}function Et(e,t){return typeof e=="number"?e:e[t]||0}const yn=new WeakMap;class Pn{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=c=>{n&&this.snapToCursor(R(c).point),this.stopAnimation()},r=(c,u)=>{const{drag:d,dragPropagation:f,onDragStart:g}=this.getProps();if(d&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ye(d),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=u,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),D(y=>{let P=this.getAxisMotionValue(y).get()||0;if(Pe.test(P)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[y];w&&(P=K(w)*(parseFloat(P)/100))}}this.originPoint[y]=P}),g&&S.update(()=>g(c,u),!1,!0),ct(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(c,u)=>{this.latestPointerEvent=c,this.latestPanInfo=u;const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:g,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=u;if(f&&this.currentDirection===null){this.currentDirection=wn(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,y),this.updateAxis("y",u.point,y),this.visualElement.render(),v&&S.update(()=>v(c,u),!1,!0)},m=(c,u)=>{this.latestPointerEvent=c,this.latestPanInfo=u,this.stop(c,u),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:c}=this.getProps();(c||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new _t(t,{onSessionStart:i,onStart:r,onMove:l,onSessionEnd:m,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:s,contextWindow:zt(this.visualElement),element:this.visualElement.current})}stop(t,n){const s=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!s)return;const{velocity:r}=o;this.startAnimation(r);const{onDragEnd:l}=this.getProps();l&&S.postRender(()=>l(s,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,s){const{drag:o}=this.getProps();if(!s||!j(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(r=hn(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&T(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=dn(s.layoutBox,t):this.constraints=!1,this.elastic=vn(n),o!==this.constraints&&!T(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&D(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=gn(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!T(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=me(s,o.root,this.visualElement.getTransformPagePoint());let r=mn(o.layout.layoutBox,i);if(n){const l=n(pe(r));this.hasMutatedConstraints=!!l,l&&(r=ge(l))}return r}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:o,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:l}=this.getProps(),m=this.constraints||{},h=D(p=>{if(!j(p,n,this.currentDirection))return;let c=m&&m[p]||{};r&&(c={min:0,max:0});const u=o?200:1e6,d=o?40:1e7,f={type:"inertia",velocity:s?t[p]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(p,f)});return Promise.all(h).then(l)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return ct(this.visualElement,t),s.start(ve(t,s,0,n,this.visualElement,!1))}stopAnimation(){D(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[n];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){D(n=>{const{drag:s}=this.getProps();if(!j(n,s,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:r,max:l}=o.layout.layoutBox[n],m=i.get()||0;i.set(t[n]-W(r,l,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!T(n)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};D(r=>{const l=this.getAxisMotionValue(r);if(l&&this.constraints!==!1){const m=l.get();o[r]=pn({min:m,max:m},this.constraints[r])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),D(r=>{if(!j(r,t,null))return;const l=this.getAxisMotionValue(r),{min:m,max:h}=this.constraints[r];l.set(W(m,h,o[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yn.set(this.visualElement,this);const t=this.visualElement.current,n=I(t,"pointerdown",h=>{const{drag:p,dragListener:c=!0}=this.getProps(),u=h.target,d=u!==t&&xe(u);p&&c&&!d&&this.start(h)});let s;const o=()=>{const{dragConstraints:h}=this.getProps();T(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),s||(s=xn(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,r=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.read(o);const l=O(window,"resize",()=>this.scalePositionWithinConstraints()),m=i.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(D(c=>{const u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=h[c].translate,u.set(u.get()+h[c].translate))}),this.visualElement.render())}));return()=>{l(),n(),r(),m&&m(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:r=J,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:o,dragConstraints:i,dragElastic:r,dragMomentum:l}}}function St(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function xn(e,t,n){const s=ft(e,St(n)),o=ft(t,St(n));return()=>{s(),o()}}function j(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wn(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Cn extends L{constructor(t){super(t),this.removeGroupControls=F,this.removeListeners=F,this.controls=new Pn(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||F}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const X=e=>(t,n)=>{e&&S.update(()=>e(t,n),!1,!0)};class En extends L{constructor(){super(...arguments),this.removePointerDownListener=F}onPointerDown(t){this.session=new _t(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zt(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:X(t),onStart:X(n),onMove:X(s),onEnd:(i,r)=>{delete this.session,o&&S.postRender(()=>o(i,r))}}}mount(){this.removePointerDownListener=I(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Y=!1;class Sn extends a.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),s&&s.register&&o&&s.register(i),Y&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ce.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:o,isPresent:i}=this.props,{projection:r}=s;return r&&(r.isPresent=i,t.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),Y=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||S.postRender(()=>{const l=r.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),we.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:o}=t;Y=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Yt(e){const[t,n]=Ft(),s=a.useContext(Q);return V.jsx(Sn,{...e,layoutGroup:s,switchLayoutGroup:a.useContext(Nt),isPresent:t,safeToRemove:n})}const Mn={pan:{Feature:En},drag:{Feature:Cn,ProjectionNode:Rt,MeasureLayout:Yt}};function Mt(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=s[o];i&&S.postRender(()=>i(t,R(t)))}class Vn extends L{mount(){const{current:t}=this.node;t&&(this.unmount=Ee(t,(n,s)=>(Mt(this.node,s,"Start"),o=>Mt(this.node,o,"End"))))}unmount(){}}class Dn extends L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=It(O(this.node.current,"focus",()=>this.onFocus()),O(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vt(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=s[o];i&&S.postRender(()=>i(t,R(t)))}class Ln extends L{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Se(t,(o,i)=>(Vt(this.node,i,"Start"),(r,{success:l})=>Vt(this.node,r,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const Z=new WeakMap,q=new WeakMap,bn=e=>{const t=Z.get(e.target);t&&t(e)},An=e=>{e.forEach(bn)};function Tn({root:e,...t}){const n=e||document;q.has(n)||q.set(n,{});const s=q.get(n),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(An,{root:e,...t})),s[o]}function In(e,t,n){const s=Tn(t);return Z.set(e,n),s.observe(e),()=>{Z.delete(e),s.unobserve(e)}}const Rn={some:0,all:1};class kn extends L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:o="some",once:i}=t,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:Rn[o]},l=m=>{const{isIntersecting:h}=m;if(this.isInView===h||(this.isInView=h,i&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:c}=this.node.getProps(),u=h?p:c;u&&u(m)};return In(this.node.current,r,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(jn(t,n))&&this.startObserver()}unmount(){}}function jn({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fn={inView:{Feature:kn},tap:{Feature:Ln},focus:{Feature:Dn},hover:{Feature:Vn}},On={layout:{ProjectionNode:Rt,MeasureLayout:Yt}},Wn={...an,...Fn,...Mn,...On},Bn=en(Wn,nn);export{Hn as A,Bn as m};
|