@weavelogic/knowledge-graph-agent 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +374 -427
- package/dist/_virtual/ExpiringCache.js +5 -0
- package/dist/_virtual/ExpiringCache.js.map +1 -0
- package/dist/_virtual/___vite-browser-external.js +7 -0
- package/dist/_virtual/___vite-browser-external.js.map +1 -0
- package/dist/_virtual/__vite-browser-external.js +5 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +27 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/assert-valid-pattern.js +5 -0
- package/dist/_virtual/assert-valid-pattern.js.map +1 -0
- package/dist/_virtual/ast-converter.js +5 -0
- package/dist/_virtual/ast-converter.js.map +1 -0
- package/dist/_virtual/ast-spec.js +5 -0
- package/dist/_virtual/ast-spec.js.map +1 -0
- package/dist/_virtual/ast.js +5 -0
- package/dist/_virtual/ast.js.map +1 -0
- package/dist/_virtual/brace-expressions.js +5 -0
- package/dist/_virtual/brace-expressions.js.map +1 -0
- package/dist/_virtual/browser.js +6 -0
- package/dist/_virtual/browser.js.map +1 -0
- package/dist/_virtual/browser2.js +5 -0
- package/dist/_virtual/browser2.js.map +1 -0
- package/dist/_virtual/candidateTSConfigRootDirs.js +5 -0
- package/dist/_virtual/candidateTSConfigRootDirs.js.map +1 -0
- package/dist/_virtual/check-modifiers.js +5 -0
- package/dist/_virtual/check-modifiers.js.map +1 -0
- package/dist/_virtual/clear-caches.js +5 -0
- package/dist/_virtual/clear-caches.js.map +1 -0
- package/dist/_virtual/compilerOptions.js +5 -0
- package/dist/_virtual/compilerOptions.js.map +1 -0
- package/dist/_virtual/convert-comments.js +5 -0
- package/dist/_virtual/convert-comments.js.map +1 -0
- package/dist/_virtual/convert.js +5 -0
- package/dist/_virtual/convert.js.map +1 -0
- package/dist/_virtual/createIsolatedProgram.js +5 -0
- package/dist/_virtual/createIsolatedProgram.js.map +1 -0
- package/dist/_virtual/createParseSettings.js +5 -0
- package/dist/_virtual/createParseSettings.js.map +1 -0
- package/dist/_virtual/createParserServices.js +5 -0
- package/dist/_virtual/createParserServices.js.map +1 -0
- package/dist/_virtual/createProjectProgram.js +5 -0
- package/dist/_virtual/createProjectProgram.js.map +1 -0
- package/dist/_virtual/createProjectProgramError.js +5 -0
- package/dist/_virtual/createProjectProgramError.js.map +1 -0
- package/dist/_virtual/createProjectService.js +5 -0
- package/dist/_virtual/createProjectService.js.map +1 -0
- package/dist/_virtual/createSourceFile.js +5 -0
- package/dist/_virtual/createSourceFile.js.map +1 -0
- package/dist/_virtual/describeFilePath.js +5 -0
- package/dist/_virtual/describeFilePath.js.map +1 -0
- package/dist/_virtual/escape.js +5 -0
- package/dist/_virtual/escape.js.map +1 -0
- package/dist/_virtual/eslint-visitor-keys.js +5 -0
- package/dist/_virtual/eslint-visitor-keys.js.map +1 -0
- package/dist/_virtual/estree-to-ts-node-types.js +5 -0
- package/dist/_virtual/estree-to-ts-node-types.js.map +1 -0
- package/dist/_virtual/get-keys.js +5 -0
- package/dist/_virtual/get-keys.js.map +1 -0
- package/dist/_virtual/getModifiers.js +5 -0
- package/dist/_virtual/getModifiers.js.map +1 -0
- package/dist/_virtual/getParsedConfigFile.js +5 -0
- package/dist/_virtual/getParsedConfigFile.js.map +1 -0
- package/dist/_virtual/getParsedConfigFileFromTSServer.js +5 -0
- package/dist/_virtual/getParsedConfigFileFromTSServer.js.map +1 -0
- package/dist/_virtual/getProjectConfigFiles.js +5 -0
- package/dist/_virtual/getProjectConfigFiles.js.map +1 -0
- package/dist/_virtual/getScriptKind.js +5 -0
- package/dist/_virtual/getScriptKind.js.map +1 -0
- package/dist/_virtual/getWatchProgramsForProjects.js +5 -0
- package/dist/_virtual/getWatchProgramsForProjects.js.map +1 -0
- package/dist/_virtual/global-ponyfill.js +9 -0
- package/dist/_virtual/global-ponyfill.js.map +1 -0
- package/dist/_virtual/global-ponyfill2.js +5 -0
- package/dist/_virtual/global-ponyfill2.js.map +1 -0
- package/dist/_virtual/index.js +2 -4
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/_virtual/inferSingleRun.js +5 -0
- package/dist/_virtual/inferSingleRun.js.map +1 -0
- package/dist/_virtual/lib.js +5 -0
- package/dist/_virtual/lib.js.map +1 -0
- package/dist/_virtual/node-utils.js +5 -0
- package/dist/_virtual/node-utils.js.map +1 -0
- package/dist/_virtual/parser-options.js +5 -0
- package/dist/_virtual/parser-options.js.map +1 -0
- package/dist/_virtual/parser.js +5 -0
- package/dist/_virtual/parser.js.map +1 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/_virtual/resolveProjectList.js +5 -0
- package/dist/_virtual/resolveProjectList.js.map +1 -0
- package/dist/_virtual/semantic-or-syntactic-errors.js +5 -0
- package/dist/_virtual/semantic-or-syntactic-errors.js.map +1 -0
- package/dist/_virtual/shared.js +5 -0
- package/dist/_virtual/shared.js.map +1 -0
- package/dist/_virtual/simple-traverse.js +5 -0
- package/dist/_virtual/simple-traverse.js.map +1 -0
- package/dist/_virtual/source-files.js +5 -0
- package/dist/_virtual/source-files.js.map +1 -0
- package/dist/_virtual/ts-estree.js +5 -0
- package/dist/_virtual/ts-estree.js.map +1 -0
- package/dist/_virtual/ts-nodes.js +5 -0
- package/dist/_virtual/ts-nodes.js.map +1 -0
- package/dist/_virtual/tsserverlibrary.js +5 -0
- package/dist/_virtual/tsserverlibrary.js.map +1 -0
- package/dist/_virtual/typescript.js +5 -0
- package/dist/_virtual/typescript.js.map +1 -0
- package/dist/_virtual/unescape.js +5 -0
- package/dist/_virtual/unescape.js.map +1 -0
- package/dist/_virtual/useProgramFromProjectService.js +5 -0
- package/dist/_virtual/useProgramFromProjectService.js.map +1 -0
- package/dist/_virtual/useProvidedPrograms.js +5 -0
- package/dist/_virtual/useProvidedPrograms.js.map +1 -0
- package/dist/_virtual/utils.js +5 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/validateDefaultProjectForFilesGlob.js +5 -0
- package/dist/_virtual/validateDefaultProjectForFilesGlob.js.map +1 -0
- package/dist/_virtual/version-check.js +5 -0
- package/dist/_virtual/version-check.js.map +1 -0
- package/dist/_virtual/version.js +5 -0
- package/dist/_virtual/version.js.map +1 -0
- package/dist/_virtual/visitor-keys.js +5 -0
- package/dist/_virtual/visitor-keys.js.map +1 -0
- package/dist/_virtual/warnAboutTSVersion.js +5 -0
- package/dist/_virtual/warnAboutTSVersion.js.map +1 -0
- package/dist/_virtual/withoutProjectParserOptions.js +5 -0
- package/dist/_virtual/withoutProjectParserOptions.js.map +1 -0
- package/dist/_virtual/xhtml-entities.js +5 -0
- package/dist/_virtual/xhtml-entities.js.map +1 -0
- package/dist/audit/config.d.ts +150 -0
- package/dist/audit/config.d.ts.map +1 -0
- package/dist/audit/config.js +111 -0
- package/dist/audit/config.js.map +1 -0
- package/dist/audit/index.d.ts +38 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/services/audit-chain.d.ts +276 -0
- package/dist/audit/services/audit-chain.d.ts.map +1 -0
- package/dist/audit/services/audit-chain.js +502 -0
- package/dist/audit/services/audit-chain.js.map +1 -0
- package/dist/audit/services/index.d.ts +11 -0
- package/dist/audit/services/index.d.ts.map +1 -0
- package/dist/audit/services/syndication.d.ts +334 -0
- package/dist/audit/services/syndication.d.ts.map +1 -0
- package/dist/audit/services/syndication.js +589 -0
- package/dist/audit/services/syndication.js.map +1 -0
- package/dist/audit/types.d.ts +453 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/cli/commands/audit.d.ts +21 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +621 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/dashboard.d.ts +14 -0
- package/dist/cli/commands/dashboard.d.ts.map +1 -0
- package/dist/cli/commands/dashboard.js +271 -0
- package/dist/cli/commands/dashboard.js.map +1 -0
- package/dist/cli/commands/plugin.d.ts +14 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +784 -0
- package/dist/cli/commands/plugin.js.map +1 -0
- package/dist/cli/commands/serve.d.ts +15 -0
- package/dist/cli/commands/serve.d.ts.map +1 -0
- package/dist/cli/commands/serve.js +252 -0
- package/dist/cli/commands/serve.js.map +1 -0
- package/dist/cli/commands/vector.d.ts +14 -0
- package/dist/cli/commands/vector.d.ts.map +1 -0
- package/dist/cli/commands/vector.js +429 -0
- package/dist/cli/commands/vector.js.map +1 -0
- package/dist/cli/commands/workflow.d.ts +12 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +471 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +54 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/config/manager.js +325 -0
- package/dist/config/manager.js.map +1 -0
- package/dist/dashboard-server/index.d.ts +31 -0
- package/dist/dashboard-server/index.d.ts.map +1 -0
- package/dist/dashboard-server/server.d.ts +205 -0
- package/dist/dashboard-server/server.d.ts.map +1 -0
- package/dist/dashboard-server/server.js +651 -0
- package/dist/dashboard-server/server.js.map +1 -0
- package/dist/database/schemas/index.d.ts +85 -0
- package/dist/database/schemas/index.d.ts.map +1 -0
- package/dist/graphql/context.d.ts +154 -0
- package/dist/graphql/context.d.ts.map +1 -0
- package/dist/graphql/context.js +168 -0
- package/dist/graphql/context.js.map +1 -0
- package/dist/graphql/index.d.ts +12 -0
- package/dist/graphql/index.d.ts.map +1 -0
- package/dist/graphql/pubsub.d.ts +282 -0
- package/dist/graphql/pubsub.d.ts.map +1 -0
- package/dist/graphql/resolvers/index.d.ts +519 -0
- package/dist/graphql/resolvers/index.d.ts.map +1 -0
- package/dist/graphql/resolvers/mutations.d.ts +255 -0
- package/dist/graphql/resolvers/mutations.d.ts.map +1 -0
- package/dist/graphql/resolvers/queries.d.ts +451 -0
- package/dist/graphql/resolvers/queries.d.ts.map +1 -0
- package/dist/graphql/resolvers/subscriptions.d.ts +399 -0
- package/dist/graphql/resolvers/subscriptions.d.ts.map +1 -0
- package/dist/graphql/scalars.d.ts +89 -0
- package/dist/graphql/scalars.d.ts.map +1 -0
- package/dist/graphql/scalars.js +242 -0
- package/dist/graphql/scalars.js.map +1 -0
- package/dist/graphql/server.d.ts +122 -0
- package/dist/graphql/server.d.ts.map +1 -0
- package/dist/graphql/server.js +368 -0
- package/dist/graphql/server.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/handlers/index.js +1 -1
- package/dist/mcp-server/server.js +2 -2
- package/dist/mcp-server/tools/audit/checkpoint.d.ts +58 -0
- package/dist/mcp-server/tools/audit/checkpoint.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/checkpoint.js +73 -0
- package/dist/mcp-server/tools/audit/checkpoint.js.map +1 -0
- package/dist/mcp-server/tools/audit/index.d.ts +53 -0
- package/dist/mcp-server/tools/audit/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/index.js +12 -0
- package/dist/mcp-server/tools/audit/index.js.map +1 -0
- package/dist/mcp-server/tools/audit/query.d.ts +58 -0
- package/dist/mcp-server/tools/audit/query.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/query.js +125 -0
- package/dist/mcp-server/tools/audit/query.js.map +1 -0
- package/dist/mcp-server/tools/audit/sync.d.ts +58 -0
- package/dist/mcp-server/tools/audit/sync.d.ts.map +1 -0
- package/dist/mcp-server/tools/audit/sync.js +126 -0
- package/dist/mcp-server/tools/audit/sync.js.map +1 -0
- package/dist/mcp-server/tools/index.d.ts +3 -0
- package/dist/mcp-server/tools/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/registry.js +90 -0
- package/dist/mcp-server/tools/registry.js.map +1 -1
- package/dist/mcp-server/tools/vector/index.d.ts +12 -0
- package/dist/mcp-server/tools/vector/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/index.js +12 -0
- package/dist/mcp-server/tools/vector/index.js.map +1 -0
- package/dist/mcp-server/tools/vector/search.d.ts +41 -0
- package/dist/mcp-server/tools/vector/search.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/search.js +224 -0
- package/dist/mcp-server/tools/vector/search.js.map +1 -0
- package/dist/mcp-server/tools/vector/trajectory.d.ts +39 -0
- package/dist/mcp-server/tools/vector/trajectory.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/trajectory.js +170 -0
- package/dist/mcp-server/tools/vector/trajectory.js.map +1 -0
- package/dist/mcp-server/tools/vector/upsert.d.ts +44 -0
- package/dist/mcp-server/tools/vector/upsert.d.ts.map +1 -0
- package/dist/mcp-server/tools/vector/upsert.js +175 -0
- package/dist/mcp-server/tools/vector/upsert.js.map +1 -0
- package/dist/mcp-server/tools/workflow/index.d.ts +29 -0
- package/dist/mcp-server/tools/workflow/index.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/index.js +12 -0
- package/dist/mcp-server/tools/workflow/index.js.map +1 -0
- package/dist/mcp-server/tools/workflow/list.d.ts +41 -0
- package/dist/mcp-server/tools/workflow/list.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/list.js +195 -0
- package/dist/mcp-server/tools/workflow/list.js.map +1 -0
- package/dist/mcp-server/tools/workflow/start.d.ts +40 -0
- package/dist/mcp-server/tools/workflow/start.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/start.js +165 -0
- package/dist/mcp-server/tools/workflow/start.js.map +1 -0
- package/dist/mcp-server/tools/workflow/status.d.ts +38 -0
- package/dist/mcp-server/tools/workflow/status.d.ts.map +1 -0
- package/dist/mcp-server/tools/workflow/status.js +97 -0
- package/dist/mcp-server/tools/workflow/status.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/create.js +31 -0
- package/dist/node_modules/@envelop/core/esm/create.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/document-string-map.js +5 -0
- package/dist/node_modules/@envelop/core/esm/document-string-map.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/orchestrator.js +407 -0
- package/dist/node_modules/@envelop/core/esm/orchestrator.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-engine.js +29 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-engine.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-extend-context.js +10 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-extend-context.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-masked-errors.js +86 -0
- package/dist/node_modules/@envelop/core/esm/plugins/use-masked-errors.js.map +1 -0
- package/dist/node_modules/@envelop/core/esm/utils.js +129 -0
- package/dist/node_modules/@envelop/core/esm/utils.js.map +1 -0
- package/dist/node_modules/@envelop/instrumentation/esm/instrumentation.js +51 -0
- package/dist/node_modules/@envelop/instrumentation/esm/instrumentation.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/coerceError.js +26 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/coerceError.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/execute.js +1101 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/execute.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/flattenAsyncIterable.js +72 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/flattenAsyncIterable.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/invariant.js +9 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/invariant.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/normalizedExecutor.js +22 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/normalizedExecutor.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/promiseForObject.js +26 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/promiseForObject.js.map +1 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/values.js +73 -0
- package/dist/node_modules/@graphql-tools/executor/esm/execution/values.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/extensions.js +46 -0
- package/dist/node_modules/@graphql-tools/merge/esm/extensions.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/links.js +142 -0
- package/dist/node_modules/@graphql-tools/merge/esm/links.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/merge-resolvers.js +27 -0
- package/dist/node_modules/@graphql-tools/merge/esm/merge-resolvers.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/arguments.js +23 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/arguments.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/directives.js +113 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum-values.js +39 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum-values.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum.js +23 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/fields.js +74 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/fields.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/input-type.js +27 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/input-type.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/interface.js +29 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/interface.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-named-type-array.js +15 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-named-type-array.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-nodes.js +81 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-nodes.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-typedefs.js +142 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-typedefs.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/scalar.js +21 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/scalar.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/schema-def.js +36 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/schema-def.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/type.js +29 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/type.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/union.js +24 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/union.js.map +1 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/utils.js +67 -0
- package/dist/node_modules/@graphql-tools/merge/esm/typedefs-mergers/utils.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/addResolversToSchema.js +287 -0
- package/dist/node_modules/@graphql-tools/schema/esm/addResolversToSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/assertResolversPresent.js +42 -0
- package/dist/node_modules/@graphql-tools/schema/esm/assertResolversPresent.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/checkForResolveTypeResolver.js +22 -0
- package/dist/node_modules/@graphql-tools/schema/esm/checkForResolveTypeResolver.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/extendResolversFromInterfaces.js +34 -0
- package/dist/node_modules/@graphql-tools/schema/esm/extendResolversFromInterfaces.js.map +1 -0
- package/dist/node_modules/@graphql-tools/schema/esm/makeExecutableSchema.js +50 -0
- package/dist/node_modules/@graphql-tools/schema/esm/makeExecutableSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/AccumulatorMap.js +17 -0
- package/dist/node_modules/@graphql-tools/utils/esm/AccumulatorMap.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Interfaces.js +32 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Interfaces.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Path.js +21 -0
- package/dist/node_modules/@graphql-tools/utils/esm/Path.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromType.js +31 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromType.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValue.js +70 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValue.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js +56 -0
- package/dist/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/collectFields.js +137 -0
- package/dist/node_modules/@graphql-tools/utils/esm/collectFields.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/comments.js +337 -0
- package/dist/node_modules/@graphql-tools/utils/esm/comments.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js +20 -0
- package/dist/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/directives.js +46 -0
- package/dist/node_modules/@graphql-tools/utils/esm/directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/errors.js +52 -0
- package/dist/node_modules/@graphql-tools/utils/esm/errors.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachDefaultValue.js +28 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachDefaultValue.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachField.js +18 -0
- package/dist/node_modules/@graphql-tools/utils/esm/forEachField.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/get-directives.js +12 -0
- package/dist/node_modules/@graphql-tools/utils/esm/get-directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getArgumentValues.js +61 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getArgumentValues.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js +76 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getObjectTypeFromTypeMap.js +13 -0
- package/dist/node_modules/@graphql-tools/utils/esm/getObjectTypeFromTypeMap.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/heal.js +120 -0
- package/dist/node_modules/@graphql-tools/utils/esm/heal.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/helpers.js +42 -0
- package/dist/node_modules/@graphql-tools/utils/esm/helpers.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isAsyncIterable.js +7 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isAsyncIterable.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isDocumentNode.js +8 -0
- package/dist/node_modules/@graphql-tools/utils/esm/isDocumentNode.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/jsutils.js +26 -0
- package/dist/node_modules/@graphql-tools/utils/esm/jsutils.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mapSchema.js +439 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mapSchema.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/memoize.js +104 -0
- package/dist/node_modules/@graphql-tools/utils/esm/memoize.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mergeDeep.js +86 -0
- package/dist/node_modules/@graphql-tools/utils/esm/mergeDeep.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js +370 -0
- package/dist/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rewire.js +155 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rewire.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rootTypes.js +33 -0
- package/dist/node_modules/@graphql-tools/utils/esm/rootTypes.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/stub.js +32 -0
- package/dist/node_modules/@graphql-tools/utils/esm/stub.js.map +1 -0
- package/dist/node_modules/@graphql-tools/utils/esm/transformInputValue.js +47 -0
- package/dist/node_modules/@graphql-tools/utils/esm/transformInputValue.js.map +1 -0
- package/dist/node_modules/@graphql-yoga/logger/esm/index.js +42 -0
- package/dist/node_modules/@graphql-yoga/logger/esm/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/createProjectService.js +126 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/createProjectService.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js +25 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/getParsedConfigFileFromTSServer.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/index.js +32 -0
- package/dist/node_modules/@typescript-eslint/project-service/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js +20 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/compilerOptions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js +87 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/getParsedConfigFile.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js +34 -0
- package/dist/node_modules/@typescript-eslint/tsconfig-utils/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +201 -0
- package/dist/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/index.js +45 -0
- package/dist/node_modules/@typescript-eslint/types/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/lib.js +12 -0
- package/dist/node_modules/@typescript-eslint/types/dist/lib.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/parser-options.js +12 -0
- package/dist/node_modules/@typescript-eslint/types/dist/parser-options.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/types/dist/ts-estree.js +52 -0
- package/dist/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +54 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js +207 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/check-modifiers.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +34 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +81 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +2438 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +117 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +33 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js +82 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgramError.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +84 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +31 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +90 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +292 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +134 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +91 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js +35 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/create-program/validateDefaultProjectForFilesGlob.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js +39 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/createParserServices.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +88 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/index.js +90 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +268 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +533 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +50 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js +38 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/candidateTSConfigRootDirs.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +216 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +87 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +53 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +89 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +92 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +132 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +124 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +64 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js +63 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/source-files.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +12 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +46 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +12 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js +205 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/useProgramFromProjectService.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +75 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version.js +15 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/version.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/dist/withoutProjectParserOptions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +23 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js +495 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js +121 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js +763 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js +17 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/package.json.js +9 -0
- package/dist/node_modules/@typescript-eslint/typescript-estree/package.json.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +16 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/index.js +25 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map +1 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +187 -0
- package/dist/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/AsyncDisposableStack.js +72 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/AsyncDisposableStack.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/SupressedError.js +16 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/SupressedError.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/index.js +6 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/index.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/symbols.js +12 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/symbols.js.map +1 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/utils.js +12 -0
- package/dist/node_modules/@whatwg-node/disposablestack/esm/utils.js.map +1 -0
- package/dist/node_modules/@whatwg-node/fetch/dist/global-ponyfill.js +33 -0
- package/dist/node_modules/@whatwg-node/fetch/dist/global-ponyfill.js.map +1 -0
- package/dist/node_modules/@whatwg-node/promise-helpers/esm/index.js +241 -0
- package/dist/node_modules/@whatwg-node/promise-helpers/esm/index.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/createServerAdapter.js +333 -0
- package/dist/node_modules/@whatwg-node/server/esm/createServerAdapter.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/plugins/useCors.js +106 -0
- package/dist/node_modules/@whatwg-node/server/esm/plugins/useCors.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/utils.js +476 -0
- package/dist/node_modules/@whatwg-node/server/esm/utils.js.map +1 -0
- package/dist/node_modules/@whatwg-node/server/esm/uwebsockets.js +232 -0
- package/dist/node_modules/@whatwg-node/server/esm/uwebsockets.js.map +1 -0
- package/dist/node_modules/balanced-match/index.js +62 -0
- package/dist/node_modules/balanced-match/index.js.map +1 -0
- package/dist/node_modules/brace-expansion/index.js +156 -0
- package/dist/node_modules/brace-expansion/index.js.map +1 -0
- package/dist/node_modules/cross-inspect/esm/index.js +89 -0
- package/dist/node_modules/cross-inspect/esm/index.js.map +1 -0
- package/dist/node_modules/debug/src/browser.js +178 -0
- package/dist/node_modules/debug/src/browser.js.map +1 -0
- package/dist/node_modules/debug/src/common.js +183 -0
- package/dist/node_modules/debug/src/common.js.map +1 -0
- package/dist/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.js +353 -0
- package/dist/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.js.map +1 -0
- package/dist/node_modules/fdir/dist/index.js +540 -0
- package/dist/node_modules/fdir/dist/index.js.map +1 -0
- package/dist/node_modules/graphql/error/GraphQLError.js +154 -0
- package/dist/node_modules/graphql/error/GraphQLError.js.map +1 -0
- package/dist/node_modules/graphql/error/locatedError.js +23 -0
- package/dist/node_modules/graphql/error/locatedError.js.map +1 -0
- package/dist/node_modules/graphql/error/syntaxError.js +11 -0
- package/dist/node_modules/graphql/error/syntaxError.js.map +1 -0
- package/dist/node_modules/graphql/execution/collectFields.js +128 -0
- package/dist/node_modules/graphql/execution/collectFields.js.map +1 -0
- package/dist/node_modules/graphql/execution/execute.js +606 -0
- package/dist/node_modules/graphql/execution/execute.js.map +1 -0
- package/dist/node_modules/graphql/execution/mapAsyncIterator.js +46 -0
- package/dist/node_modules/graphql/execution/mapAsyncIterator.js.map +1 -0
- package/dist/node_modules/graphql/execution/subscribe.js +121 -0
- package/dist/node_modules/graphql/execution/subscribe.js.map +1 -0
- package/dist/node_modules/graphql/execution/values.js +184 -0
- package/dist/node_modules/graphql/execution/values.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/Path.js +21 -0
- package/dist/node_modules/graphql/jsutils/Path.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/devAssert.js +10 -0
- package/dist/node_modules/graphql/jsutils/devAssert.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/didYouMean.js +24 -0
- package/dist/node_modules/graphql/jsutils/didYouMean.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/groupBy.js +17 -0
- package/dist/node_modules/graphql/jsutils/groupBy.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/identityFunc.js +7 -0
- package/dist/node_modules/graphql/jsutils/identityFunc.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/inspect.js +85 -0
- package/dist/node_modules/graphql/jsutils/inspect.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/instanceOf.js +42 -0
- package/dist/node_modules/graphql/jsutils/instanceOf.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/invariant.js +12 -0
- package/dist/node_modules/graphql/jsutils/invariant.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isAsyncIterable.js +7 -0
- package/dist/node_modules/graphql/jsutils/isAsyncIterable.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isIterableObject.js +7 -0
- package/dist/node_modules/graphql/jsutils/isIterableObject.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isObjectLike.js +7 -0
- package/dist/node_modules/graphql/jsutils/isObjectLike.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/isPromise.js +7 -0
- package/dist/node_modules/graphql/jsutils/isPromise.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/keyMap.js +11 -0
- package/dist/node_modules/graphql/jsutils/keyMap.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/keyValMap.js +11 -0
- package/dist/node_modules/graphql/jsutils/keyValMap.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/mapValue.js +11 -0
- package/dist/node_modules/graphql/jsutils/mapValue.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/memoize3.js +28 -0
- package/dist/node_modules/graphql/jsutils/memoize3.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/naturalCompare.js +47 -0
- package/dist/node_modules/graphql/jsutils/naturalCompare.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/printPathArray.js +9 -0
- package/dist/node_modules/graphql/jsutils/printPathArray.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/promiseForObject.js +13 -0
- package/dist/node_modules/graphql/jsutils/promiseForObject.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/promiseReduce.js +12 -0
- package/dist/node_modules/graphql/jsutils/promiseReduce.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/suggestionList.js +94 -0
- package/dist/node_modules/graphql/jsutils/suggestionList.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/toError.js +15 -0
- package/dist/node_modules/graphql/jsutils/toError.js.map +1 -0
- package/dist/node_modules/graphql/jsutils/toObjMap.js +17 -0
- package/dist/node_modules/graphql/jsutils/toObjMap.js.map +1 -0
- package/dist/node_modules/graphql/language/ast.js +189 -0
- package/dist/node_modules/graphql/language/ast.js.map +1 -0
- package/dist/node_modules/graphql/language/blockString.js +60 -0
- package/dist/node_modules/graphql/language/blockString.js.map +1 -0
- package/dist/node_modules/graphql/language/characterClasses.js +24 -0
- package/dist/node_modules/graphql/language/characterClasses.js.map +1 -0
- package/dist/node_modules/graphql/language/directiveLocation.js +26 -0
- package/dist/node_modules/graphql/language/directiveLocation.js.map +1 -0
- package/dist/node_modules/graphql/language/kinds.js +55 -0
- package/dist/node_modules/graphql/language/kinds.js.map +1 -0
- package/dist/node_modules/graphql/language/lexer.js +543 -0
- package/dist/node_modules/graphql/language/lexer.js.map +1 -0
- package/dist/node_modules/graphql/language/location.js +22 -0
- package/dist/node_modules/graphql/language/location.js.map +1 -0
- package/dist/node_modules/graphql/language/parser.js +1343 -0
- package/dist/node_modules/graphql/language/parser.js.map +1 -0
- package/dist/node_modules/graphql/language/predicates.js +28 -0
- package/dist/node_modules/graphql/language/predicates.js.map +1 -0
- package/dist/node_modules/graphql/language/printLocation.js +51 -0
- package/dist/node_modules/graphql/language/printLocation.js.map +1 -0
- package/dist/node_modules/graphql/language/printString.js +178 -0
- package/dist/node_modules/graphql/language/printString.js.map +1 -0
- package/dist/node_modules/graphql/language/printer.js +269 -0
- package/dist/node_modules/graphql/language/printer.js.map +1 -0
- package/dist/node_modules/graphql/language/source.js +33 -0
- package/dist/node_modules/graphql/language/source.js.map +1 -0
- package/dist/node_modules/graphql/language/tokenKind.js +30 -0
- package/dist/node_modules/graphql/language/tokenKind.js.map +1 -0
- package/dist/node_modules/graphql/language/visitor.js +192 -0
- package/dist/node_modules/graphql/language/visitor.js.map +1 -0
- package/dist/node_modules/graphql/type/assertName.js +34 -0
- package/dist/node_modules/graphql/type/assertName.js.map +1 -0
- package/dist/node_modules/graphql/type/definition.js +648 -0
- package/dist/node_modules/graphql/type/definition.js.map +1 -0
- package/dist/node_modules/graphql/type/directives.js +137 -0
- package/dist/node_modules/graphql/type/directives.js.map +1 -0
- package/dist/node_modules/graphql/type/introspection.js +506 -0
- package/dist/node_modules/graphql/type/introspection.js.map +1 -0
- package/dist/node_modules/graphql/type/scalars.js +248 -0
- package/dist/node_modules/graphql/type/scalars.js.map +1 -0
- package/dist/node_modules/graphql/type/schema.js +223 -0
- package/dist/node_modules/graphql/type/schema.js.map +1 -0
- package/dist/node_modules/graphql/type/validate.js +461 -0
- package/dist/node_modules/graphql/type/validate.js.map +1 -0
- package/dist/node_modules/graphql/utilities/TypeInfo.js +257 -0
- package/dist/node_modules/graphql/utilities/TypeInfo.js.map +1 -0
- package/dist/node_modules/graphql/utilities/astFromValue.js +111 -0
- package/dist/node_modules/graphql/utilities/astFromValue.js.map +1 -0
- package/dist/node_modules/graphql/utilities/buildASTSchema.js +65 -0
- package/dist/node_modules/graphql/utilities/buildASTSchema.js.map +1 -0
- package/dist/node_modules/graphql/utilities/coerceInputValue.js +154 -0
- package/dist/node_modules/graphql/utilities/coerceInputValue.js.map +1 -0
- package/dist/node_modules/graphql/utilities/extendSchema.js +456 -0
- package/dist/node_modules/graphql/utilities/extendSchema.js.map +1 -0
- package/dist/node_modules/graphql/utilities/getOperationAST.js +22 -0
- package/dist/node_modules/graphql/utilities/getOperationAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/sortValueNode.js +30 -0
- package/dist/node_modules/graphql/utilities/sortValueNode.js.map +1 -0
- package/dist/node_modules/graphql/utilities/typeComparators.js +58 -0
- package/dist/node_modules/graphql/utilities/typeComparators.js.map +1 -0
- package/dist/node_modules/graphql/utilities/typeFromAST.js +20 -0
- package/dist/node_modules/graphql/utilities/typeFromAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/valueFromAST.js +109 -0
- package/dist/node_modules/graphql/utilities/valueFromAST.js.map +1 -0
- package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js +32 -0
- package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js.map +1 -0
- package/dist/node_modules/graphql/validation/ValidationContext.js +171 -0
- package/dist/node_modules/graphql/validation/ValidationContext.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +24 -0
- package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +80 -0
- package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +43 -0
- package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +73 -0
- package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js +112 -0
- package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +20 -0
- package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +55 -0
- package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +28 -0
- package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +34 -0
- package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +56 -0
- package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +53 -0
- package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +34 -0
- package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +41 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +519 -0
- package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +55 -0
- package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +113 -0
- package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +99 -0
- package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js +53 -0
- package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +62 -0
- package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +47 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +29 -0
- package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +63 -0
- package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +50 -0
- package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +59 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +27 -0
- package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +38 -0
- package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +32 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +48 -0
- package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +41 -0
- package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +30 -0
- package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +170 -0
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +27 -0
- package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +74 -0
- package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js.map +1 -0
- package/dist/node_modules/graphql/validation/specifiedRules.js +88 -0
- package/dist/node_modules/graphql/validation/specifiedRules.js.map +1 -0
- package/dist/node_modules/graphql/validation/validate.js +65 -0
- package/dist/node_modules/graphql/validation/validate.js.map +1 -0
- package/dist/node_modules/graphql/version.js +10 -0
- package/dist/node_modules/graphql/version.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/common.js +127 -0
- package/dist/node_modules/graphql-ws/lib/common.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/server.js +257 -0
- package/dist/node_modules/graphql-ws/lib/server.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/use/ws.js +83 -0
- package/dist/node_modules/graphql-ws/lib/use/ws.js.map +1 -0
- package/dist/node_modules/graphql-ws/lib/utils.js +35 -0
- package/dist/node_modules/graphql-ws/lib/utils.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/error.js +127 -0
- package/dist/node_modules/graphql-yoga/esm/error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/graphiql-html.js +5 -0
- package/dist/node_modules/graphql-yoga/esm/graphiql-html.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/landing-page-html.js +21 -0
- package/dist/node_modules/graphql-yoga/esm/landing-page-html.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/allowed-headers.js +26 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/allowed-headers.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/get.js +15 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/get.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-form-url-encoded.js +12 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-form-url-encoded.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-graphql-string.js +12 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-graphql-string.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-json.js +58 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-json.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-multipart.js +78 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/post-multipart.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/utils.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-parser/utils.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-graphql-query-params.js +131 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-graphql-query-params.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-method-for-graphql.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-check-method-for-graphql.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-http-validation-error.js +21 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-http-validation-error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-limit-batching.js +37 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-limit-batching.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-prevent-mutation-via-get.js +61 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/request-validation/use-prevent-mutation-via-get.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/accept.js +28 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/accept.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/multipart.js +68 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/multipart.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/regular.js +29 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/regular.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/sse.js +83 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/sse.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/stringify.js +47 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/result-processor/stringify.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-graphiql.js +55 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-graphiql.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-health-check.js +20 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-health-check.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-parser-and-validation-cache.js +63 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-parser-and-validation-cache.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-request-parser.js +15 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-request-parser.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-result-processor.js +58 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-result-processor.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-schema.js +76 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-schema.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-unhandled-route.js +52 -0
- package/dist/node_modules/graphql-yoga/esm/plugins/use-unhandled-route.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/process-request.js +56 -0
- package/dist/node_modules/graphql-yoga/esm/process-request.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/server.js +374 -0
- package/dist/node_modules/graphql-yoga/esm/server.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/utils/create-lru-cache.js +10 -0
- package/dist/node_modules/graphql-yoga/esm/utils/create-lru-cache.js.map +1 -0
- package/dist/node_modules/graphql-yoga/esm/utils/mask-error.js +47 -0
- package/dist/node_modules/graphql-yoga/esm/utils/mask-error.js.map +1 -0
- package/dist/node_modules/graphql-yoga/node_modules/lru-cache/dist/esm/index.js +1370 -0
- package/dist/node_modules/graphql-yoga/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/dist/node_modules/ms/index.js +121 -0
- package/dist/node_modules/ms/index.js.map +1 -0
- package/dist/node_modules/picomatch/index.js +23 -0
- package/dist/node_modules/picomatch/index.js.map +1 -0
- package/dist/node_modules/picomatch/lib/constants.js +203 -0
- package/dist/node_modules/picomatch/lib/constants.js.map +1 -0
- package/dist/node_modules/picomatch/lib/parse.js +774 -0
- package/dist/node_modules/picomatch/lib/parse.js.map +1 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +148 -0
- package/dist/node_modules/picomatch/lib/picomatch.js.map +1 -0
- package/dist/node_modules/picomatch/lib/scan.js +336 -0
- package/dist/node_modules/picomatch/lib/scan.js.map +1 -0
- package/dist/node_modules/picomatch/lib/utils.js +71 -0
- package/dist/node_modules/picomatch/lib/utils.js.map +1 -0
- package/dist/node_modules/semver/classes/comparator.js +123 -0
- package/dist/node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/node_modules/semver/classes/range.js +388 -0
- package/dist/node_modules/semver/classes/range.js.map +1 -0
- package/dist/node_modules/semver/classes/semver.js +288 -0
- package/dist/node_modules/semver/classes/semver.js.map +1 -0
- package/dist/node_modules/semver/functions/clean.js +18 -0
- package/dist/node_modules/semver/functions/clean.js.map +1 -0
- package/dist/node_modules/semver/functions/cmp.js +60 -0
- package/dist/node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/node_modules/semver/functions/coerce.js +53 -0
- package/dist/node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-build.js +19 -0
- package/dist/node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/node_modules/semver/functions/compare-loose.js +15 -0
- package/dist/node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/node_modules/semver/functions/compare.js +15 -0
- package/dist/node_modules/semver/functions/compare.js.map +1 -0
- package/dist/node_modules/semver/functions/diff.js +49 -0
- package/dist/node_modules/semver/functions/diff.js.map +1 -0
- package/dist/node_modules/semver/functions/eq.js +15 -0
- package/dist/node_modules/semver/functions/eq.js.map +1 -0
- package/dist/node_modules/semver/functions/gt.js +15 -0
- package/dist/node_modules/semver/functions/gt.js.map +1 -0
- package/dist/node_modules/semver/functions/gte.js +15 -0
- package/dist/node_modules/semver/functions/gte.js.map +1 -0
- package/dist/node_modules/semver/functions/inc.js +29 -0
- package/dist/node_modules/semver/functions/inc.js.map +1 -0
- package/dist/node_modules/semver/functions/lt.js +15 -0
- package/dist/node_modules/semver/functions/lt.js.map +1 -0
- package/dist/node_modules/semver/functions/lte.js +15 -0
- package/dist/node_modules/semver/functions/lte.js.map +1 -0
- package/dist/node_modules/semver/functions/major.js +15 -0
- package/dist/node_modules/semver/functions/major.js.map +1 -0
- package/dist/node_modules/semver/functions/minor.js +15 -0
- package/dist/node_modules/semver/functions/minor.js.map +1 -0
- package/dist/node_modules/semver/functions/neq.js +15 -0
- package/dist/node_modules/semver/functions/neq.js.map +1 -0
- package/dist/node_modules/semver/functions/parse.js +27 -0
- package/dist/node_modules/semver/functions/parse.js.map +1 -0
- package/dist/node_modules/semver/functions/patch.js +15 -0
- package/dist/node_modules/semver/functions/patch.js.map +1 -0
- package/dist/node_modules/semver/functions/prerelease.js +18 -0
- package/dist/node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/node_modules/semver/functions/rcompare.js +15 -0
- package/dist/node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/node_modules/semver/functions/rsort.js +15 -0
- package/dist/node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/node_modules/semver/functions/satisfies.js +22 -0
- package/dist/node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/node_modules/semver/functions/sort.js +15 -0
- package/dist/node_modules/semver/functions/sort.js.map +1 -0
- package/dist/node_modules/semver/functions/valid.js +18 -0
- package/dist/node_modules/semver/functions/valid.js.map +1 -0
- package/dist/node_modules/semver/index.js +140 -0
- package/dist/node_modules/semver/index.js.map +1 -0
- package/dist/node_modules/semver/internal/constants.js +36 -0
- package/dist/node_modules/semver/internal/constants.js.map +1 -0
- package/dist/node_modules/semver/internal/debug.js +14 -0
- package/dist/node_modules/semver/internal/debug.js.map +1 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/lrucache.js.map +1 -0
- package/dist/node_modules/semver/internal/parse-options.js +23 -0
- package/dist/node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/node_modules/semver/internal/re.js +96 -0
- package/dist/node_modules/semver/internal/re.js.map +1 -0
- package/dist/node_modules/semver/ranges/gtr.js +15 -0
- package/dist/node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/node_modules/semver/ranges/intersects.js +19 -0
- package/dist/node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/node_modules/semver/ranges/ltr.js +15 -0
- package/dist/node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +35 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +35 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/node_modules/semver/ranges/min-version.js +66 -0
- package/dist/node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/node_modules/semver/ranges/outside.js +81 -0
- package/dist/node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/node_modules/semver/ranges/simplify.js +56 -0
- package/dist/node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/node_modules/semver/ranges/subset.js +170 -0
- package/dist/node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +15 -0
- package/dist/node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/node_modules/semver/ranges/valid.js +21 -0
- package/dist/node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/node_modules/tinyglobby/dist/index.js +332 -0
- package/dist/node_modules/tinyglobby/dist/index.js.map +1 -0
- package/dist/node_modules/ts-api-utils/lib/index.js +2361 -0
- package/dist/node_modules/ts-api-utils/lib/index.js.map +1 -0
- package/dist/node_modules/typescript/lib/tsserverlibrary.js +33 -0
- package/dist/node_modules/typescript/lib/tsserverlibrary.js.map +1 -0
- package/dist/node_modules/typescript/lib/typescript.js +210602 -0
- package/dist/node_modules/typescript/lib/typescript.js.map +1 -0
- package/dist/node_modules/ws/browser.js +16 -0
- package/dist/node_modules/ws/browser.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.d.ts +105 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.js +507 -0
- package/dist/plugins/analyzers/code-complexity/analyzer.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.d.ts +70 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.js +405 -0
- package/dist/plugins/analyzers/code-complexity/graph-generator.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/index.d.ts +191 -0
- package/dist/plugins/analyzers/code-complexity/index.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/index.js +276 -0
- package/dist/plugins/analyzers/code-complexity/index.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/metrics.d.ts +77 -0
- package/dist/plugins/analyzers/code-complexity/metrics.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/metrics.js +514 -0
- package/dist/plugins/analyzers/code-complexity/metrics.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/plugin.d.ts +161 -0
- package/dist/plugins/analyzers/code-complexity/plugin.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/plugin.js +661 -0
- package/dist/plugins/analyzers/code-complexity/plugin.js.map +1 -0
- package/dist/plugins/analyzers/code-complexity/types.d.ts +360 -0
- package/dist/plugins/analyzers/code-complexity/types.d.ts.map +1 -0
- package/dist/plugins/analyzers/code-complexity/types.js +27 -0
- package/dist/plugins/analyzers/code-complexity/types.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.d.ts +56 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.js +387 -0
- package/dist/plugins/analyzers/dependency-health/analyzer.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.d.ts +60 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.js +295 -0
- package/dist/plugins/analyzers/dependency-health/graph-generator.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/index.d.ts +201 -0
- package/dist/plugins/analyzers/dependency-health/index.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/index.js +857 -0
- package/dist/plugins/analyzers/dependency-health/index.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.d.ts +68 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.js +226 -0
- package/dist/plugins/analyzers/dependency-health/npm-client.js.map +1 -0
- package/dist/plugins/analyzers/dependency-health/types.d.ts +462 -0
- package/dist/plugins/analyzers/dependency-health/types.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.d.ts +80 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.d.ts.map +1 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.js +215 -0
- package/dist/plugins/analyzers/dependency-health/vulnerability.js.map +1 -0
- package/dist/plugins/analyzers/index.d.ts +12 -0
- package/dist/plugins/analyzers/index.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +13 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/loader.d.ts +158 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +554 -0
- package/dist/plugins/loader.js.map +1 -0
- package/dist/plugins/manager.d.ts +183 -0
- package/dist/plugins/manager.d.ts.map +1 -0
- package/dist/plugins/manager.js +876 -0
- package/dist/plugins/manager.js.map +1 -0
- package/dist/plugins/registry.d.ts +163 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +448 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/types.d.ts +930 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +43 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/server/container.d.ts +263 -0
- package/dist/server/container.d.ts.map +1 -0
- package/dist/server/container.js +605 -0
- package/dist/server/container.js.map +1 -0
- package/dist/server/event-bus.d.ts +418 -0
- package/dist/server/event-bus.d.ts.map +1 -0
- package/dist/server/event-bus.js +442 -0
- package/dist/server/event-bus.js.map +1 -0
- package/dist/server/index.d.ts +37 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/manager.d.ts +123 -0
- package/dist/server/manager.d.ts.map +1 -0
- package/dist/server/manager.js +742 -0
- package/dist/server/manager.js.map +1 -0
- package/dist/server/shared-services.d.ts +130 -0
- package/dist/server/shared-services.d.ts.map +1 -0
- package/dist/server/shared-services.js +476 -0
- package/dist/server/shared-services.js.map +1 -0
- package/dist/server/types.d.ts +320 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server/types.js +13 -0
- package/dist/server/types.js.map +1 -0
- package/dist/services/manager.js +328 -0
- package/dist/services/manager.js.map +1 -0
- package/dist/vector/config.d.ts +300 -0
- package/dist/vector/config.d.ts.map +1 -0
- package/dist/vector/config.js +124 -0
- package/dist/vector/config.js.map +1 -0
- package/dist/vector/index.d.ts +50 -0
- package/dist/vector/index.d.ts.map +1 -0
- package/dist/vector/services/index.d.ts +13 -0
- package/dist/vector/services/index.d.ts.map +1 -0
- package/dist/vector/services/trajectory-tracker.d.ts +405 -0
- package/dist/vector/services/trajectory-tracker.d.ts.map +1 -0
- package/dist/vector/services/trajectory-tracker.js +445 -0
- package/dist/vector/services/trajectory-tracker.js.map +1 -0
- package/dist/vector/services/vector-store.d.ts +339 -0
- package/dist/vector/services/vector-store.d.ts.map +1 -0
- package/dist/vector/services/vector-store.js +748 -0
- package/dist/vector/services/vector-store.js.map +1 -0
- package/dist/vector/types.d.ts +677 -0
- package/dist/vector/types.d.ts.map +1 -0
- package/dist/workflow/adapters/goap-adapter.d.ts +196 -0
- package/dist/workflow/adapters/goap-adapter.d.ts.map +1 -0
- package/dist/workflow/adapters/goap-adapter.js +706 -0
- package/dist/workflow/adapters/goap-adapter.js.map +1 -0
- package/dist/workflow/adapters/index.d.ts +10 -0
- package/dist/workflow/adapters/index.d.ts.map +1 -0
- package/dist/workflow/config.d.ts +135 -0
- package/dist/workflow/config.d.ts.map +1 -0
- package/dist/workflow/config.js +92 -0
- package/dist/workflow/config.js.map +1 -0
- package/dist/workflow/handlers/index.d.ts +9 -0
- package/dist/workflow/handlers/index.d.ts.map +1 -0
- package/dist/workflow/handlers/webhook-handlers.d.ts +397 -0
- package/dist/workflow/handlers/webhook-handlers.d.ts.map +1 -0
- package/dist/workflow/handlers/webhook-handlers.js +454 -0
- package/dist/workflow/handlers/webhook-handlers.js.map +1 -0
- package/dist/workflow/index.d.ts +42 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/services/index.d.ts +9 -0
- package/dist/workflow/services/index.d.ts.map +1 -0
- package/dist/workflow/services/workflow-service.d.ts +318 -0
- package/dist/workflow/services/workflow-service.d.ts.map +1 -0
- package/dist/workflow/services/workflow-service.js +577 -0
- package/dist/workflow/services/workflow-service.js.map +1 -0
- package/dist/workflow/types.d.ts +470 -0
- package/dist/workflow/types.d.ts.map +1 -0
- package/dist/workflow/workflows/realtime-collab.d.ts +245 -0
- package/dist/workflow/workflows/realtime-collab.d.ts.map +1 -0
- package/package.json +29 -3
- package/dist/_virtual/additionalItems.js +0 -5
- package/dist/_virtual/additionalItems.js.map +0 -1
- package/dist/_virtual/additionalProperties.js +0 -5
- package/dist/_virtual/additionalProperties.js.map +0 -1
- package/dist/_virtual/ajv.js +0 -6
- package/dist/_virtual/ajv.js.map +0 -1
- package/dist/_virtual/ajv2.js +0 -5
- package/dist/_virtual/ajv2.js.map +0 -1
- package/dist/_virtual/allOf.js +0 -5
- package/dist/_virtual/allOf.js.map +0 -1
- package/dist/_virtual/anyOf.js +0 -5
- package/dist/_virtual/anyOf.js.map +0 -1
- package/dist/_virtual/applicability.js +0 -5
- package/dist/_virtual/applicability.js.map +0 -1
- package/dist/_virtual/boolSchema.js +0 -5
- package/dist/_virtual/boolSchema.js.map +0 -1
- package/dist/_virtual/code.js +0 -5
- package/dist/_virtual/code.js.map +0 -1
- package/dist/_virtual/code2.js +0 -5
- package/dist/_virtual/code2.js.map +0 -1
- package/dist/_virtual/const.js +0 -5
- package/dist/_virtual/const.js.map +0 -1
- package/dist/_virtual/contains.js +0 -5
- package/dist/_virtual/contains.js.map +0 -1
- package/dist/_virtual/core.js +0 -5
- package/dist/_virtual/core.js.map +0 -1
- package/dist/_virtual/dataType.js +0 -5
- package/dist/_virtual/dataType.js.map +0 -1
- package/dist/_virtual/defaults.js +0 -5
- package/dist/_virtual/defaults.js.map +0 -1
- package/dist/_virtual/dependencies.js +0 -5
- package/dist/_virtual/dependencies.js.map +0 -1
- package/dist/_virtual/draft7.js +0 -5
- package/dist/_virtual/draft7.js.map +0 -1
- package/dist/_virtual/enum.js +0 -5
- package/dist/_virtual/enum.js.map +0 -1
- package/dist/_virtual/equal.js +0 -5
- package/dist/_virtual/equal.js.map +0 -1
- package/dist/_virtual/errors.js +0 -5
- package/dist/_virtual/errors.js.map +0 -1
- package/dist/_virtual/format.js +0 -5
- package/dist/_virtual/format.js.map +0 -1
- package/dist/_virtual/formats.js +0 -5
- package/dist/_virtual/formats.js.map +0 -1
- package/dist/_virtual/id.js +0 -5
- package/dist/_virtual/id.js.map +0 -1
- package/dist/_virtual/if.js +0 -5
- package/dist/_virtual/if.js.map +0 -1
- package/dist/_virtual/index12.js +0 -5
- package/dist/_virtual/index12.js.map +0 -1
- package/dist/_virtual/items.js +0 -5
- package/dist/_virtual/items.js.map +0 -1
- package/dist/_virtual/items2020.js +0 -5
- package/dist/_virtual/items2020.js.map +0 -1
- package/dist/_virtual/keyword.js +0 -5
- package/dist/_virtual/keyword.js.map +0 -1
- package/dist/_virtual/limit.js +0 -5
- package/dist/_virtual/limit.js.map +0 -1
- package/dist/_virtual/limitItems.js +0 -5
- package/dist/_virtual/limitItems.js.map +0 -1
- package/dist/_virtual/limitLength.js +0 -5
- package/dist/_virtual/limitLength.js.map +0 -1
- package/dist/_virtual/limitNumber.js +0 -5
- package/dist/_virtual/limitNumber.js.map +0 -1
- package/dist/_virtual/limitProperties.js +0 -5
- package/dist/_virtual/limitProperties.js.map +0 -1
- package/dist/_virtual/metadata.js +0 -5
- package/dist/_virtual/metadata.js.map +0 -1
- package/dist/_virtual/multipleOf.js +0 -5
- package/dist/_virtual/multipleOf.js.map +0 -1
- package/dist/_virtual/names.js +0 -5
- package/dist/_virtual/names.js.map +0 -1
- package/dist/_virtual/not.js +0 -5
- package/dist/_virtual/not.js.map +0 -1
- package/dist/_virtual/oneOf.js +0 -5
- package/dist/_virtual/oneOf.js.map +0 -1
- package/dist/_virtual/pattern.js +0 -5
- package/dist/_virtual/pattern.js.map +0 -1
- package/dist/_virtual/patternProperties.js +0 -5
- package/dist/_virtual/patternProperties.js.map +0 -1
- package/dist/_virtual/prefixItems.js +0 -5
- package/dist/_virtual/prefixItems.js.map +0 -1
- package/dist/_virtual/properties.js +0 -5
- package/dist/_virtual/properties.js.map +0 -1
- package/dist/_virtual/propertyNames.js +0 -5
- package/dist/_virtual/propertyNames.js.map +0 -1
- package/dist/_virtual/ref.js +0 -5
- package/dist/_virtual/ref.js.map +0 -1
- package/dist/_virtual/ref_error.js +0 -5
- package/dist/_virtual/ref_error.js.map +0 -1
- package/dist/_virtual/required.js +0 -5
- package/dist/_virtual/required.js.map +0 -1
- package/dist/_virtual/resolve.js +0 -5
- package/dist/_virtual/resolve.js.map +0 -1
- package/dist/_virtual/rules.js +0 -5
- package/dist/_virtual/rules.js.map +0 -1
- package/dist/_virtual/scope.js +0 -5
- package/dist/_virtual/scope.js.map +0 -1
- package/dist/_virtual/subschema.js +0 -5
- package/dist/_virtual/subschema.js.map +0 -1
- package/dist/_virtual/thenElse.js +0 -5
- package/dist/_virtual/thenElse.js.map +0 -1
- package/dist/_virtual/types.js +0 -5
- package/dist/_virtual/types.js.map +0 -1
- package/dist/_virtual/ucs2length.js +0 -5
- package/dist/_virtual/ucs2length.js.map +0 -1
- package/dist/_virtual/uniqueItems.js +0 -5
- package/dist/_virtual/uniqueItems.js.map +0 -1
- package/dist/_virtual/uri.js +0 -5
- package/dist/_virtual/uri.js.map +0 -1
- package/dist/_virtual/util.js +0 -5
- package/dist/_virtual/util.js.map +0 -1
- package/dist/_virtual/validation_error.js +0 -5
- package/dist/_virtual/validation_error.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +0 -296
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +0 -71
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +0 -26
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +0 -407
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +0 -1332
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +0 -71
- package/dist/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +0 -1
- package/dist/node_modules/ajv/dist/ajv.js +0 -84
- package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -160
- package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -728
- package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -152
- package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/errors.js +0 -131
- package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/index.js +0 -234
- package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/names.js +0 -44
- package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -22
- package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/resolve.js +0 -163
- package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/rules.js +0 -35
- package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/util.js +0 -173
- package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -27
- package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -58
- package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -193
- package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -43
- package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -522
- package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -126
- package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -89
- package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
- package/dist/node_modules/ajv/dist/core.js +0 -628
- package/dist/node_modules/ajv/dist/core.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/data.json.js +0 -24
- package/dist/node_modules/ajv/dist/refs/data.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +0 -25
- package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/equal.js +0 -16
- package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -30
- package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/uri.js +0 -16
- package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
- package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -20
- package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -59
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -114
- package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -32
- package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -100
- package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -103
- package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -68
- package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -64
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -43
- package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -64
- package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -81
- package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -22
- package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -66
- package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -49
- package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -23
- package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -140
- package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -19
- package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -132
- package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -114
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -18
- package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -31
- package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -95
- package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -16
- package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -27
- package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -36
- package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -56
- package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -52
- package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -39
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -37
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -33
- package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -34
- package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -89
- package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -75
- package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/formats.js +0 -209
- package/dist/node_modules/ajv-formats/dist/formats.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/index.js +0 -51
- package/dist/node_modules/ajv-formats/dist/index.js.map +0 -1
- package/dist/node_modules/ajv-formats/dist/limit.js +0 -80
- package/dist/node_modules/ajv-formats/dist/limit.js.map +0 -1
- package/dist/node_modules/fast-deep-equal/index.js +0 -39
- package/dist/node_modules/fast-deep-equal/index.js.map +0 -1
- package/dist/node_modules/fast-uri/index.js +0 -261
- package/dist/node_modules/fast-uri/index.js.map +0 -1
- package/dist/node_modules/fast-uri/lib/schemes.js +0 -215
- package/dist/node_modules/fast-uri/lib/schemes.js.map +0 -1
- package/dist/node_modules/fast-uri/lib/utils.js +0 -261
- package/dist/node_modules/fast-uri/lib/utils.js.map +0 -1
- package/dist/node_modules/json-schema-traverse/index.js +0 -92
- package/dist/node_modules/json-schema-traverse/index.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.js +0 -37
- package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.js +0 -43
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.js +0 -13
- package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -688
- package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/api.js +0 -492
- package/dist/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.js +0 -405
- package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -58
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.js +0 -38
- package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -82
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -60
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.js +0 -87
- package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.js +0 -1283
- package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -341
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -2
- package/dist/node_modules/zod-to-json-schema/dist/esm/parsers/string.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../../../../src/plugins/analyzers/code-complexity/plugin.ts"],"sourcesContent":["/**\n * Code Complexity Analyzer Plugin\n *\n * Implements the AnalyzerPlugin interface for analyzing TypeScript/JavaScript\n * code complexity. Provides streaming analysis, cyclomatic complexity,\n * cognitive complexity, Halstead metrics, and deep nesting detection.\n *\n * @module plugins/analyzers/code-complexity/plugin\n */\n\nimport { parse, type TSESTree } from '@typescript-eslint/typescript-estree';\nimport { relative, extname, basename } from 'path';\nimport { createLogger } from '../../../utils/logger.js';\nimport type {\n AnalyzerPlugin,\n AnalysisInput,\n AnalysisResult,\n AnalysisStreamChunk,\n PluginContext,\n} from '../../types.js';\nimport {\n calculateCyclomaticComplexity,\n calculateCognitiveComplexity,\n calculateMaxNestingDepth,\n calculateLinesOfCode,\n countReturnStatements,\n calculateMaintainabilityIndex,\n calculateHalsteadMetrics,\n classifyComplexityLevel,\n detectComplexityIssues,\n generateRecommendations,\n} from './metrics.js';\nimport type {\n ComplexityScore,\n ComplexityLevel,\n FunctionAnalysis,\n FunctionKind,\n HalsteadMetrics,\n} from './types.js';\nimport { DEFAULT_THRESHOLDS, EMPTY_HALSTEAD_METRICS } from './types.js';\n\nconst logger = createLogger('code-complexity-analyzer-plugin');\n\n// ============================================================================\n// Plugin Configuration\n// ============================================================================\n\n/**\n * Configuration options for the Code Complexity Analyzer plugin\n */\nexport interface CodeComplexityPluginConfig {\n /** Cyclomatic complexity threshold for \"high\" designation */\n cyclomaticHigh?: number;\n /** Cyclomatic complexity threshold for \"critical\" designation */\n cyclomaticCritical?: number;\n /** Cognitive complexity threshold for \"high\" designation */\n cognitiveHigh?: number;\n /** Cognitive complexity threshold for \"critical\" designation */\n cognitiveCritical?: number;\n /** Maximum recommended nesting depth */\n maxNestingDepth?: number;\n /** Maximum recommended function length (LOC) */\n maxFunctionLength?: number;\n /** Include Halstead metrics in analysis */\n includeHalstead?: boolean;\n /** Minimum complexity to include in results (filter out simple functions) */\n minComplexityToReport?: number;\n}\n\n// ============================================================================\n// Code Complexity Analyzer Plugin\n// ============================================================================\n\n/**\n * Code Complexity Analyzer Plugin\n *\n * Implements the AnalyzerPlugin interface for analyzing code complexity\n * in TypeScript and JavaScript files.\n *\n * Features:\n * - Cyclomatic complexity (McCabe) calculation\n * - Cognitive complexity (SonarSource) calculation\n * - Halstead software science metrics\n * - Deep nesting detection (> 4 levels)\n * - Lines of code counting\n * - Function and class counting\n * - Streaming analysis support\n * - Structured entity and relationship extraction\n *\n * @example\n * ```typescript\n * const plugin = new CodeComplexityAnalyzerPlugin();\n * await plugin.initialize(context);\n *\n * const result = await plugin.analyze({\n * id: 'analysis-1',\n * content: sourceCode,\n * contentType: 'typescript',\n * filePath: '/src/example.ts'\n * });\n *\n * console.log(`Found ${result.entities?.length} entities`);\n * ```\n */\nexport class CodeComplexityAnalyzerPlugin implements AnalyzerPlugin {\n readonly name = 'code-complexity-analyzer';\n readonly version = '1.0.0';\n readonly type = 'analyzer' as const;\n readonly supportedContentTypes = ['typescript', 'javascript', 'tsx', 'jsx'];\n\n private context: PluginContext | null = null;\n private config: CodeComplexityPluginConfig = {};\n private thresholds = { ...DEFAULT_THRESHOLDS };\n\n // ==========================================================================\n // Lifecycle Methods\n // ==========================================================================\n\n /**\n * Initialize the plugin with context\n */\n async initialize(context: PluginContext): Promise<void> {\n this.context = context;\n\n // Load configuration from plugin config\n if (context.pluginConfig) {\n this.config = context.pluginConfig as CodeComplexityPluginConfig;\n this.thresholds = {\n cyclomaticHigh: this.config.cyclomaticHigh ?? DEFAULT_THRESHOLDS.cyclomaticHigh,\n cyclomaticCritical: this.config.cyclomaticCritical ?? DEFAULT_THRESHOLDS.cyclomaticCritical,\n cognitiveHigh: this.config.cognitiveHigh ?? DEFAULT_THRESHOLDS.cognitiveHigh,\n cognitiveCritical: this.config.cognitiveCritical ?? DEFAULT_THRESHOLDS.cognitiveCritical,\n maxNestingDepth: this.config.maxNestingDepth ?? DEFAULT_THRESHOLDS.maxNestingDepth,\n maxFunctionLength: this.config.maxFunctionLength ?? DEFAULT_THRESHOLDS.maxFunctionLength,\n };\n }\n\n logger.info('Code Complexity Analyzer Plugin initialized', {\n thresholds: this.thresholds,\n });\n }\n\n /**\n * Cleanup plugin resources\n */\n async destroy(): Promise<void> {\n this.context = null;\n logger.info('Code Complexity Analyzer Plugin destroyed');\n }\n\n /**\n * Check plugin health\n */\n async healthCheck(): Promise<{ healthy: boolean; message?: string; details?: Record<string, unknown> }> {\n return {\n healthy: true,\n message: 'Code Complexity Analyzer is ready',\n details: {\n supportedContentTypes: this.supportedContentTypes,\n thresholds: this.thresholds,\n },\n };\n }\n\n /**\n * Get plugin statistics\n */\n async getStats(): Promise<Record<string, unknown>> {\n return {\n name: this.name,\n version: this.version,\n supportedContentTypes: this.supportedContentTypes,\n thresholds: this.thresholds,\n };\n }\n\n // ==========================================================================\n // Analyzer Interface Methods\n // ==========================================================================\n\n /**\n * Check if this analyzer can handle the given content type\n */\n canAnalyze(contentType: string): boolean {\n const normalizedType = contentType.toLowerCase().replace(/^\\./, '');\n return this.supportedContentTypes.includes(normalizedType) ||\n ['ts', 'js', 'mts', 'mjs', 'cts', 'cjs'].includes(normalizedType);\n }\n\n /**\n * Analyze content and return structured results\n */\n async analyze(input: AnalysisInput): Promise<AnalysisResult> {\n const startTime = Date.now();\n\n logger.debug('Analyzing content', {\n id: input.id,\n contentType: input.contentType,\n filePath: input.filePath,\n });\n\n const result: AnalysisResult = {\n success: false,\n analysisType: 'code-complexity',\n entities: [],\n relationships: [],\n tags: [],\n metrics: {\n durationMs: 0,\n tokensProcessed: 0,\n entitiesFound: 0,\n relationshipsFound: 0,\n },\n suggestions: [],\n };\n\n try {\n // Parse the AST\n const ast = this.parseContent(input.content, input.contentType);\n if (!ast) {\n result.error = {\n code: 'PARSE_ERROR',\n message: 'Failed to parse source code',\n };\n return result;\n }\n\n // Extract functions and analyze\n const functions = this.extractAndAnalyzeFunctions(ast, input.content, input.filePath || 'unknown');\n\n // Calculate file-level metrics\n const { loc, totalLines } = calculateLinesOfCode(input.content, 1, input.content.split('\\n').length);\n const classCount = this.countClasses(ast);\n const importCount = this.countImports(ast);\n\n // Generate entities from functions\n for (const fn of functions) {\n const entityId = `${input.id}-fn-${fn.name}-${fn.startLine}`;\n\n result.entities!.push({\n id: entityId,\n type: 'function',\n value: fn.name,\n confidence: 1.0,\n position: {\n start: fn.startLine,\n end: fn.endLine,\n },\n metadata: {\n kind: fn.kind,\n isAsync: fn.isAsync,\n parentName: fn.parentName,\n complexity: fn.complexity,\n level: fn.level,\n issues: fn.issues,\n recommendations: fn.recommendations,\n },\n });\n\n // Add relationships for nested functions or class methods\n if (fn.parentName) {\n result.relationships!.push({\n sourceId: entityId,\n targetId: `${input.id}-class-${fn.parentName}`,\n type: 'belongs_to',\n confidence: 1.0,\n metadata: {\n relationship: 'method_of_class',\n },\n });\n }\n }\n\n // Add class entities\n const classNames = this.extractClassNames(ast);\n for (const className of classNames) {\n result.entities!.push({\n id: `${input.id}-class-${className}`,\n type: 'class',\n value: className,\n confidence: 1.0,\n metadata: {\n methodCount: functions.filter(f => f.parentName === className).length,\n },\n });\n }\n\n // Generate tags based on complexity\n const complexFunctions = functions.filter(f => f.level === 'high' || f.level === 'critical');\n const avgCyclomatic = functions.length > 0\n ? functions.reduce((sum, f) => sum + f.complexity.cyclomatic, 0) / functions.length\n : 0;\n\n result.tags = [\n { value: 'code-complexity', confidence: 1.0, category: 'analysis' },\n { value: input.contentType, confidence: 1.0, category: 'language' },\n ];\n\n if (complexFunctions.length > 0) {\n result.tags.push({\n value: 'has-complex-functions',\n confidence: 1.0,\n category: 'quality',\n });\n }\n\n if (avgCyclomatic > this.thresholds.cyclomaticHigh) {\n result.tags.push({\n value: 'high-complexity',\n confidence: 1.0,\n category: 'quality',\n });\n }\n\n // Generate suggestions\n for (const fn of complexFunctions) {\n result.suggestions!.push({\n type: 'other',\n message: `Function \"${fn.name}\" has ${fn.level} complexity (CC: ${fn.complexity.cyclomatic}). Consider refactoring.`,\n confidence: 0.9,\n action: {\n type: 'refactor',\n function: fn.name,\n location: { line: fn.startLine, file: input.filePath },\n recommendations: fn.recommendations,\n },\n });\n }\n\n // Generate summary\n result.summary = this.generateSummary(functions, loc, classCount);\n\n // Calculate quality score (0-1 based on complexity distribution)\n const criticalCount = functions.filter(f => f.level === 'critical').length;\n const highCount = functions.filter(f => f.level === 'high').length;\n const totalFunctions = functions.length || 1;\n result.qualityScore = Math.max(0, 1 - (criticalCount * 0.3 + highCount * 0.1) / totalFunctions);\n\n // Update metrics\n result.metrics = {\n durationMs: Date.now() - startTime,\n tokensProcessed: input.content.length,\n entitiesFound: result.entities!.length,\n relationshipsFound: result.relationships!.length,\n };\n\n // Add raw data for debugging\n result.raw = {\n totalFunctions: functions.length,\n complexFunctions: complexFunctions.length,\n loc,\n totalLines,\n classCount,\n importCount,\n avgCyclomatic: Math.round(avgCyclomatic * 100) / 100,\n fileComplexity: functions.reduce((sum, f) => sum + f.complexity.cyclomatic, 0),\n };\n\n result.success = true;\n\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error);\n result.error = {\n code: 'ANALYSIS_ERROR',\n message,\n details: { error },\n };\n logger.error('Analysis failed', error instanceof Error ? error : new Error(message));\n }\n\n result.metrics!.durationMs = Date.now() - startTime;\n return result;\n }\n\n /**\n * Stream analysis results for large content\n */\n async *analyzeStream(input: AnalysisInput): AsyncIterable<AnalysisStreamChunk> {\n const startTime = Date.now();\n\n yield {\n type: 'progress',\n data: { stage: 'parsing', message: 'Parsing source code...' },\n progress: 10,\n timestamp: new Date(),\n };\n\n // Parse AST\n const ast = this.parseContent(input.content, input.contentType);\n if (!ast) {\n yield {\n type: 'error',\n data: { code: 'PARSE_ERROR', message: 'Failed to parse source code' },\n timestamp: new Date(),\n };\n return;\n }\n\n yield {\n type: 'progress',\n data: { stage: 'extracting', message: 'Extracting functions...' },\n progress: 30,\n timestamp: new Date(),\n };\n\n // Extract and analyze functions\n const functions = this.extractAndAnalyzeFunctions(ast, input.content, input.filePath || 'unknown');\n const totalFunctions = functions.length;\n\n // Stream each function as an entity\n for (let i = 0; i < functions.length; i++) {\n const fn = functions[i];\n const entityId = `${input.id}-fn-${fn.name}-${fn.startLine}`;\n\n yield {\n type: 'entity',\n data: {\n id: entityId,\n type: 'function',\n value: fn.name,\n confidence: 1.0,\n position: { start: fn.startLine, end: fn.endLine },\n metadata: {\n kind: fn.kind,\n isAsync: fn.isAsync,\n parentName: fn.parentName,\n complexity: fn.complexity,\n level: fn.level,\n issues: fn.issues,\n recommendations: fn.recommendations,\n },\n },\n progress: 30 + Math.round((i / totalFunctions) * 50),\n timestamp: new Date(),\n };\n\n // Stream relationships\n if (fn.parentName) {\n yield {\n type: 'relationship',\n data: {\n sourceId: entityId,\n targetId: `${input.id}-class-${fn.parentName}`,\n type: 'belongs_to',\n confidence: 1.0,\n },\n timestamp: new Date(),\n };\n }\n }\n\n yield {\n type: 'progress',\n data: { stage: 'extracting-classes', message: 'Extracting classes...' },\n progress: 85,\n timestamp: new Date(),\n };\n\n // Stream class entities\n const classNames = this.extractClassNames(ast);\n for (const className of classNames) {\n yield {\n type: 'entity',\n data: {\n id: `${input.id}-class-${className}`,\n type: 'class',\n value: className,\n confidence: 1.0,\n metadata: {\n methodCount: functions.filter(f => f.parentName === className).length,\n },\n },\n timestamp: new Date(),\n };\n }\n\n // Stream tags\n yield {\n type: 'tag',\n data: { value: 'code-complexity', confidence: 1.0, category: 'analysis' },\n progress: 95,\n timestamp: new Date(),\n };\n\n // Complete\n yield {\n type: 'complete',\n data: {\n totalFunctions: functions.length,\n complexFunctions: functions.filter(f => f.level === 'high' || f.level === 'critical').length,\n durationMs: Date.now() - startTime,\n },\n progress: 100,\n timestamp: new Date(),\n };\n }\n\n /**\n * Get configuration options for this analyzer\n */\n getConfigOptions(): Record<string, {\n type: 'string' | 'number' | 'boolean' | 'array' | 'object';\n description: string;\n default?: unknown;\n required?: boolean;\n }> {\n return {\n cyclomaticHigh: {\n type: 'number',\n description: 'Cyclomatic complexity threshold for \"high\" designation',\n default: 10,\n },\n cyclomaticCritical: {\n type: 'number',\n description: 'Cyclomatic complexity threshold for \"critical\" designation',\n default: 20,\n },\n cognitiveHigh: {\n type: 'number',\n description: 'Cognitive complexity threshold for \"high\" designation',\n default: 15,\n },\n cognitiveCritical: {\n type: 'number',\n description: 'Cognitive complexity threshold for \"critical\" designation',\n default: 25,\n },\n maxNestingDepth: {\n type: 'number',\n description: 'Maximum recommended nesting depth',\n default: 4,\n },\n maxFunctionLength: {\n type: 'number',\n description: 'Maximum recommended function length in lines',\n default: 50,\n },\n includeHalstead: {\n type: 'boolean',\n description: 'Include Halstead software science metrics',\n default: true,\n },\n minComplexityToReport: {\n type: 'number',\n description: 'Minimum cyclomatic complexity to include in results',\n default: 0,\n },\n };\n }\n\n // ==========================================================================\n // Private Helper Methods\n // ==========================================================================\n\n /**\n * Parse source code to AST\n */\n private parseContent(content: string, contentType: string): TSESTree.Program | null {\n const isTypeScript = ['typescript', 'tsx', 'ts'].includes(contentType.toLowerCase());\n const isJsx = ['tsx', 'jsx'].includes(contentType.toLowerCase());\n\n try {\n return parse(content, {\n loc: true,\n range: true,\n tokens: false,\n comment: false,\n jsx: isJsx,\n ...(isTypeScript ? {} : { allowInvalidAST: true }),\n });\n } catch (error) {\n logger.debug('Parse error', {\n error: error instanceof Error ? error.message : String(error),\n });\n return null;\n }\n }\n\n /**\n * Extract and analyze all functions from AST\n */\n private extractAndAnalyzeFunctions(\n ast: TSESTree.Program,\n sourceCode: string,\n filePath: string\n ): FunctionAnalysis[] {\n const functions: FunctionAnalysis[] = [];\n\n const traverse = (node: TSESTree.Node, parentName?: string): void => {\n const functionInfo = this.getFunctionInfo(node, parentName);\n if (functionInfo) {\n const analysis = this.analyzeFunctionNode(\n functionInfo.node,\n functionInfo.name,\n functionInfo.kind,\n filePath,\n sourceCode,\n functionInfo.isAsync,\n functionInfo.isExported,\n functionInfo.parentName\n );\n functions.push(analysis);\n }\n\n // Track class names for methods\n let newParentName = parentName;\n if (node.type === 'ClassDeclaration' || node.type === 'ClassExpression') {\n const classNode = node as TSESTree.ClassDeclaration;\n newParentName = classNode.id?.name ?? 'AnonymousClass';\n }\n\n // Traverse children\n for (const key of Object.keys(node)) {\n if (key === 'parent') continue;\n const child = (node as unknown as Record<string, unknown>)[key];\n if (child && typeof child === 'object') {\n if (Array.isArray(child)) {\n for (const item of child) {\n if (item && typeof item === 'object' && 'type' in item) {\n traverse(item as TSESTree.Node, newParentName);\n }\n }\n } else if ('type' in child) {\n traverse(child as TSESTree.Node, newParentName);\n }\n }\n }\n };\n\n traverse(ast);\n return functions;\n }\n\n /**\n * Get function information from node\n */\n private getFunctionInfo(\n node: TSESTree.Node,\n parentName?: string\n ): {\n node: TSESTree.Node;\n name: string;\n kind: FunctionKind;\n isAsync: boolean;\n isExported: boolean;\n parentName?: string;\n } | null {\n switch (node.type) {\n case 'FunctionDeclaration': {\n const fn = node as TSESTree.FunctionDeclaration;\n return {\n node: fn,\n name: fn.id?.name ?? 'anonymous',\n kind: fn.generator ? 'generator' : 'function',\n isAsync: fn.async,\n isExported: false,\n parentName,\n };\n }\n\n case 'FunctionExpression': {\n const fn = node as TSESTree.FunctionExpression;\n return {\n node: fn,\n name: fn.id?.name ?? 'anonymous',\n kind: fn.generator ? 'generator' : 'function',\n isAsync: fn.async,\n isExported: false,\n parentName,\n };\n }\n\n case 'ArrowFunctionExpression': {\n const fn = node as TSESTree.ArrowFunctionExpression;\n return {\n node: fn,\n name: 'arrow',\n kind: 'arrow',\n isAsync: fn.async,\n isExported: false,\n parentName,\n };\n }\n\n case 'MethodDefinition': {\n const method = node as TSESTree.MethodDefinition;\n const methodName = this.getPropertyName(method.key) ?? 'method';\n let kind: FunctionKind;\n if (method.kind === 'constructor') {\n kind = 'constructor';\n } else if (method.kind === 'get') {\n kind = 'getter';\n } else if (method.kind === 'set') {\n kind = 'setter';\n } else {\n kind = 'method';\n }\n const fn = method.value as TSESTree.FunctionExpression;\n return {\n node: method.value,\n name: methodName,\n kind,\n isAsync: fn.async,\n isExported: false,\n parentName,\n };\n }\n\n default:\n return null;\n }\n }\n\n /**\n * Analyze a single function node\n */\n private analyzeFunctionNode(\n node: TSESTree.Node,\n name: string,\n kind: FunctionKind,\n filePath: string,\n sourceCode: string,\n isAsync: boolean,\n isExported: boolean,\n parentName?: string\n ): FunctionAnalysis {\n const startLine = node.loc?.start.line ?? 1;\n const endLine = node.loc?.end.line ?? 1;\n\n // Calculate complexity metrics\n const cyclomatic = calculateCyclomaticComplexity(node);\n const cognitive = calculateCognitiveComplexity(node);\n const maxNestingDepth = calculateMaxNestingDepth(node);\n const { loc, totalLines } = calculateLinesOfCode(sourceCode, startLine, endLine);\n const returnCount = countReturnStatements(node);\n const parameterCount = this.getParameterCount(node);\n\n // Calculate Halstead metrics if enabled\n const halstead = this.config.includeHalstead !== false\n ? calculateHalsteadMetrics(node)\n : undefined;\n\n const complexity: ComplexityScore = {\n cyclomatic,\n cognitive,\n loc,\n totalLines,\n maxNestingDepth,\n parameterCount,\n returnCount,\n halstead,\n };\n\n // Classify complexity level\n const level = classifyComplexityLevel(complexity, this.thresholds);\n\n // Detect issues\n const issues = detectComplexityIssues(complexity, this.thresholds, name);\n\n // Add deep nesting detection\n if (maxNestingDepth > this.thresholds.maxNestingDepth) {\n issues.push(`Deep nesting detected: ${maxNestingDepth} levels (threshold: ${this.thresholds.maxNestingDepth})`);\n }\n\n // Generate recommendations\n const recommendations = generateRecommendations(complexity, this.thresholds, level);\n\n return {\n name,\n filePath,\n startLine,\n endLine,\n kind,\n complexity,\n level,\n parentName,\n isAsync,\n isExported,\n issues,\n recommendations,\n };\n }\n\n /**\n * Get property name from key\n */\n private getPropertyName(key: TSESTree.Node): string | null {\n if (key.type === 'Identifier') {\n return (key as TSESTree.Identifier).name;\n }\n if (key.type === 'Literal') {\n return String((key as TSESTree.Literal).value);\n }\n return null;\n }\n\n /**\n * Get parameter count from function\n */\n private getParameterCount(node: TSESTree.Node): number {\n if ('params' in node && Array.isArray(node.params)) {\n return node.params.length;\n }\n return 0;\n }\n\n /**\n * Count imports in AST\n */\n private countImports(ast: TSESTree.Program): number {\n return ast.body.filter(n => n.type === 'ImportDeclaration').length;\n }\n\n /**\n * Count classes in AST\n */\n private countClasses(ast: TSESTree.Program): number {\n let count = 0;\n const traverse = (node: TSESTree.Node): void => {\n if (node.type === 'ClassDeclaration' || node.type === 'ClassExpression') {\n count++;\n }\n for (const key of Object.keys(node)) {\n if (key === 'parent') continue;\n const child = (node as unknown as Record<string, unknown>)[key];\n if (child && typeof child === 'object') {\n if (Array.isArray(child)) {\n for (const item of child) {\n if (item && typeof item === 'object' && 'type' in item) {\n traverse(item as TSESTree.Node);\n }\n }\n } else if ('type' in child) {\n traverse(child as TSESTree.Node);\n }\n }\n }\n };\n traverse(ast);\n return count;\n }\n\n /**\n * Extract class names from AST\n */\n private extractClassNames(ast: TSESTree.Program): string[] {\n const names: string[] = [];\n const traverse = (node: TSESTree.Node): void => {\n if (node.type === 'ClassDeclaration' || node.type === 'ClassExpression') {\n const classNode = node as TSESTree.ClassDeclaration;\n if (classNode.id?.name) {\n names.push(classNode.id.name);\n }\n }\n for (const key of Object.keys(node)) {\n if (key === 'parent') continue;\n const child = (node as unknown as Record<string, unknown>)[key];\n if (child && typeof child === 'object') {\n if (Array.isArray(child)) {\n for (const item of child) {\n if (item && typeof item === 'object' && 'type' in item) {\n traverse(item as TSESTree.Node);\n }\n }\n } else if ('type' in child) {\n traverse(child as TSESTree.Node);\n }\n }\n }\n };\n traverse(ast);\n return names;\n }\n\n /**\n * Generate a summary of the analysis\n */\n private generateSummary(functions: FunctionAnalysis[], loc: number, classCount: number): string {\n const totalFunctions = functions.length;\n const complexFunctions = functions.filter(f => f.level === 'high' || f.level === 'critical').length;\n const avgCyclomatic = totalFunctions > 0\n ? Math.round(functions.reduce((sum, f) => sum + f.complexity.cyclomatic, 0) / totalFunctions * 100) / 100\n : 0;\n const avgCognitive = totalFunctions > 0\n ? Math.round(functions.reduce((sum, f) => sum + f.complexity.cognitive, 0) / totalFunctions * 100) / 100\n : 0;\n\n return `Analyzed ${totalFunctions} functions and ${classCount} classes across ${loc} lines of code. ` +\n `Average cyclomatic complexity: ${avgCyclomatic}, cognitive complexity: ${avgCognitive}. ` +\n `Found ${complexFunctions} function(s) with high or critical complexity.`;\n }\n}\n\n// ============================================================================\n// Factory Functions\n// ============================================================================\n\n/**\n * Create a new Code Complexity Analyzer Plugin instance\n */\nexport function createCodeComplexityAnalyzerPlugin(): CodeComplexityAnalyzerPlugin {\n return new CodeComplexityAnalyzerPlugin();\n}\n\n/**\n * Default export for plugin discovery\n */\nexport default CodeComplexityAnalyzerPlugin;\n"],"names":["parse"],"mappings":";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AA;AACb;"}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Complexity Analyzer Plugin - Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for complexity analysis including cyclomatic complexity,
|
|
5
|
+
* cognitive complexity, Halstead metrics, and code structure metrics.
|
|
6
|
+
*
|
|
7
|
+
* @module plugins/analyzers/code-complexity/types
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Halstead software science metrics
|
|
11
|
+
*
|
|
12
|
+
* Based on Maurice Halstead's software science:
|
|
13
|
+
* - n1 = number of distinct operators
|
|
14
|
+
* - n2 = number of distinct operands
|
|
15
|
+
* - N1 = total number of operators
|
|
16
|
+
* - N2 = total number of operands
|
|
17
|
+
*/
|
|
18
|
+
export interface HalsteadMetrics {
|
|
19
|
+
/** Number of distinct operators */
|
|
20
|
+
distinctOperators: number;
|
|
21
|
+
/** Number of distinct operands */
|
|
22
|
+
distinctOperands: number;
|
|
23
|
+
/** Total number of operators */
|
|
24
|
+
totalOperators: number;
|
|
25
|
+
/** Total number of operands */
|
|
26
|
+
totalOperands: number;
|
|
27
|
+
/** Program vocabulary: n = n1 + n2 */
|
|
28
|
+
vocabulary: number;
|
|
29
|
+
/** Program length: N = N1 + N2 */
|
|
30
|
+
length: number;
|
|
31
|
+
/** Calculated program length: N^ = n1 * log2(n1) + n2 * log2(n2) */
|
|
32
|
+
calculatedLength: number;
|
|
33
|
+
/** Volume: V = N * log2(n) - Size of implementation */
|
|
34
|
+
volume: number;
|
|
35
|
+
/** Difficulty: D = (n1/2) * (N2/n2) - Difficulty to understand */
|
|
36
|
+
difficulty: number;
|
|
37
|
+
/** Effort: E = D * V - Mental effort required */
|
|
38
|
+
effort: number;
|
|
39
|
+
/** Time to program: T = E / 18 seconds */
|
|
40
|
+
time: number;
|
|
41
|
+
/** Number of delivered bugs: B = V / 3000 */
|
|
42
|
+
bugs: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Default/empty Halstead metrics
|
|
46
|
+
*/
|
|
47
|
+
export declare const EMPTY_HALSTEAD_METRICS: HalsteadMetrics;
|
|
48
|
+
/**
|
|
49
|
+
* Individual complexity score for a code element
|
|
50
|
+
*/
|
|
51
|
+
export interface ComplexityScore {
|
|
52
|
+
/** Cyclomatic complexity - measures decision points (if, for, while, case, catch, &&, ||, ?:) */
|
|
53
|
+
cyclomatic: number;
|
|
54
|
+
/** Cognitive complexity - measures mental effort to understand (nested structures weighted higher) */
|
|
55
|
+
cognitive: number;
|
|
56
|
+
/** Lines of code (excluding blank lines and comments) */
|
|
57
|
+
loc: number;
|
|
58
|
+
/** Total lines including comments and blank lines */
|
|
59
|
+
totalLines: number;
|
|
60
|
+
/** Number of parameters (for functions) */
|
|
61
|
+
parameterCount?: number;
|
|
62
|
+
/** Maximum nesting depth */
|
|
63
|
+
maxNestingDepth: number;
|
|
64
|
+
/** Number of return statements */
|
|
65
|
+
returnCount?: number;
|
|
66
|
+
/** Halstead software science metrics */
|
|
67
|
+
halstead?: HalsteadMetrics;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Complexity thresholds for categorization
|
|
71
|
+
*/
|
|
72
|
+
export interface ComplexityThresholds {
|
|
73
|
+
/** Cyclomatic complexity threshold for "complex" designation */
|
|
74
|
+
cyclomaticHigh: number;
|
|
75
|
+
/** Cyclomatic complexity threshold for "very complex" designation */
|
|
76
|
+
cyclomaticCritical: number;
|
|
77
|
+
/** Cognitive complexity threshold for "complex" designation */
|
|
78
|
+
cognitiveHigh: number;
|
|
79
|
+
/** Cognitive complexity threshold for "very complex" designation */
|
|
80
|
+
cognitiveCritical: number;
|
|
81
|
+
/** Maximum recommended nesting depth */
|
|
82
|
+
maxNestingDepth: number;
|
|
83
|
+
/** Maximum recommended function length (LOC) */
|
|
84
|
+
maxFunctionLength: number;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Default complexity thresholds
|
|
88
|
+
*/
|
|
89
|
+
export declare const DEFAULT_THRESHOLDS: ComplexityThresholds;
|
|
90
|
+
/**
|
|
91
|
+
* Classification of complexity level
|
|
92
|
+
*/
|
|
93
|
+
export type ComplexityLevel = 'low' | 'moderate' | 'high' | 'critical';
|
|
94
|
+
/**
|
|
95
|
+
* Function/method analysis result
|
|
96
|
+
*/
|
|
97
|
+
export interface FunctionAnalysis {
|
|
98
|
+
/** Function name */
|
|
99
|
+
name: string;
|
|
100
|
+
/** File path containing the function */
|
|
101
|
+
filePath: string;
|
|
102
|
+
/** Start line number (1-indexed) */
|
|
103
|
+
startLine: number;
|
|
104
|
+
/** End line number (1-indexed) */
|
|
105
|
+
endLine: number;
|
|
106
|
+
/** Function kind (function, method, arrow, constructor) */
|
|
107
|
+
kind: FunctionKind;
|
|
108
|
+
/** Complexity scores */
|
|
109
|
+
complexity: ComplexityScore;
|
|
110
|
+
/** Complexity classification */
|
|
111
|
+
level: ComplexityLevel;
|
|
112
|
+
/** Parent class/object name if applicable */
|
|
113
|
+
parentName?: string;
|
|
114
|
+
/** Is this an async function */
|
|
115
|
+
isAsync: boolean;
|
|
116
|
+
/** Is this an exported function */
|
|
117
|
+
isExported: boolean;
|
|
118
|
+
/** List of issue descriptions */
|
|
119
|
+
issues: string[];
|
|
120
|
+
/** Recommendations for improvement */
|
|
121
|
+
recommendations: string[];
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Types of functions detected
|
|
125
|
+
*/
|
|
126
|
+
export type FunctionKind = 'function' | 'arrow' | 'method' | 'constructor' | 'getter' | 'setter' | 'generator' | 'asyncGenerator';
|
|
127
|
+
/**
|
|
128
|
+
* Complete file analysis result
|
|
129
|
+
*/
|
|
130
|
+
export interface FileAnalysis {
|
|
131
|
+
/** Absolute file path */
|
|
132
|
+
filePath: string;
|
|
133
|
+
/** Relative path from project root */
|
|
134
|
+
relativePath: string;
|
|
135
|
+
/** File extension */
|
|
136
|
+
extension: string;
|
|
137
|
+
/** File-level complexity scores (aggregated) */
|
|
138
|
+
complexity: FileComplexityScore;
|
|
139
|
+
/** All functions in the file */
|
|
140
|
+
functions: FunctionAnalysis[];
|
|
141
|
+
/** Number of classes */
|
|
142
|
+
classCount: number;
|
|
143
|
+
/** Number of imports */
|
|
144
|
+
importCount: number;
|
|
145
|
+
/** Number of exports */
|
|
146
|
+
exportCount: number;
|
|
147
|
+
/** Analysis timestamp */
|
|
148
|
+
analyzedAt: Date;
|
|
149
|
+
/** Parse errors if any */
|
|
150
|
+
parseErrors: string[];
|
|
151
|
+
/** Complex functions (exceeding thresholds) */
|
|
152
|
+
complexFunctions: FunctionAnalysis[];
|
|
153
|
+
/** Overall file complexity level */
|
|
154
|
+
level: ComplexityLevel;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* File-level complexity aggregation
|
|
158
|
+
*/
|
|
159
|
+
export interface FileComplexityScore extends ComplexityScore {
|
|
160
|
+
/** Average cyclomatic complexity per function */
|
|
161
|
+
avgCyclomatic: number;
|
|
162
|
+
/** Average cognitive complexity per function */
|
|
163
|
+
avgCognitive: number;
|
|
164
|
+
/** Total function count */
|
|
165
|
+
functionCount: number;
|
|
166
|
+
/** Maintainability index (0-100, higher is better) */
|
|
167
|
+
maintainabilityIndex: number;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Project-wide analysis result
|
|
171
|
+
*/
|
|
172
|
+
export interface ProjectAnalysis {
|
|
173
|
+
/** Project root path */
|
|
174
|
+
projectRoot: string;
|
|
175
|
+
/** All analyzed files */
|
|
176
|
+
files: FileAnalysis[];
|
|
177
|
+
/** Project-level aggregated metrics */
|
|
178
|
+
metrics: ProjectMetrics;
|
|
179
|
+
/** Files with complexity issues */
|
|
180
|
+
hotspots: FileAnalysis[];
|
|
181
|
+
/** Most complex functions across project */
|
|
182
|
+
complexFunctions: FunctionAnalysis[];
|
|
183
|
+
/** Analysis configuration used */
|
|
184
|
+
config: AnalyzerConfig;
|
|
185
|
+
/** Analysis timing */
|
|
186
|
+
timing: {
|
|
187
|
+
startedAt: Date;
|
|
188
|
+
completedAt: Date;
|
|
189
|
+
durationMs: number;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Project-wide metrics
|
|
194
|
+
*/
|
|
195
|
+
export interface ProjectMetrics {
|
|
196
|
+
/** Total files analyzed */
|
|
197
|
+
totalFiles: number;
|
|
198
|
+
/** Total functions analyzed */
|
|
199
|
+
totalFunctions: number;
|
|
200
|
+
/** Total lines of code */
|
|
201
|
+
totalLoc: number;
|
|
202
|
+
/** Average cyclomatic complexity */
|
|
203
|
+
avgCyclomatic: number;
|
|
204
|
+
/** Average cognitive complexity */
|
|
205
|
+
avgCognitive: number;
|
|
206
|
+
/** Average maintainability index */
|
|
207
|
+
avgMaintainability: number;
|
|
208
|
+
/** Distribution of complexity levels */
|
|
209
|
+
complexityDistribution: Record<ComplexityLevel, number>;
|
|
210
|
+
/** Files by complexity level */
|
|
211
|
+
filesByLevel: Record<ComplexityLevel, number>;
|
|
212
|
+
/** Most complex files (top N) */
|
|
213
|
+
topComplexFiles: Array<{
|
|
214
|
+
path: string;
|
|
215
|
+
score: number;
|
|
216
|
+
}>;
|
|
217
|
+
/** Most complex functions (top N) */
|
|
218
|
+
topComplexFunctions: Array<{
|
|
219
|
+
name: string;
|
|
220
|
+
file: string;
|
|
221
|
+
score: number;
|
|
222
|
+
}>;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* File patterns to include/exclude
|
|
226
|
+
*/
|
|
227
|
+
export interface FilePatterns {
|
|
228
|
+
/** Glob patterns for files to include */
|
|
229
|
+
include: string[];
|
|
230
|
+
/** Glob patterns for files to exclude */
|
|
231
|
+
exclude: string[];
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Analyzer configuration
|
|
235
|
+
*/
|
|
236
|
+
export interface AnalyzerConfig {
|
|
237
|
+
/** Project root directory */
|
|
238
|
+
projectRoot: string;
|
|
239
|
+
/** File patterns to analyze */
|
|
240
|
+
patterns: FilePatterns;
|
|
241
|
+
/** Complexity thresholds */
|
|
242
|
+
thresholds: ComplexityThresholds;
|
|
243
|
+
/** Maximum files to analyze */
|
|
244
|
+
maxFiles?: number;
|
|
245
|
+
/** Include node_modules */
|
|
246
|
+
includeNodeModules: boolean;
|
|
247
|
+
/** Include test files */
|
|
248
|
+
includeTests: boolean;
|
|
249
|
+
/** Generate graph nodes for complex functions */
|
|
250
|
+
generateGraphNodes: boolean;
|
|
251
|
+
/** Minimum complexity to include in results */
|
|
252
|
+
minComplexityToReport: number;
|
|
253
|
+
/** Enable verbose logging */
|
|
254
|
+
verbose: boolean;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Default analyzer configuration
|
|
258
|
+
*/
|
|
259
|
+
export declare const DEFAULT_CONFIG: AnalyzerConfig;
|
|
260
|
+
/**
|
|
261
|
+
* Complexity node type for knowledge graph
|
|
262
|
+
*/
|
|
263
|
+
export type ComplexityNodeType = 'complexity-hotspot' | 'complex-function' | 'complex-file';
|
|
264
|
+
/**
|
|
265
|
+
* Node generated from complexity analysis
|
|
266
|
+
*/
|
|
267
|
+
export interface ComplexityNode {
|
|
268
|
+
/** Node ID (unique identifier) */
|
|
269
|
+
id: string;
|
|
270
|
+
/** Node type */
|
|
271
|
+
type: ComplexityNodeType;
|
|
272
|
+
/** Display title */
|
|
273
|
+
title: string;
|
|
274
|
+
/** File path */
|
|
275
|
+
filePath: string;
|
|
276
|
+
/** Function name if applicable */
|
|
277
|
+
functionName?: string;
|
|
278
|
+
/** Line range */
|
|
279
|
+
lineRange?: {
|
|
280
|
+
start: number;
|
|
281
|
+
end: number;
|
|
282
|
+
};
|
|
283
|
+
/** Complexity scores */
|
|
284
|
+
complexity: ComplexityScore;
|
|
285
|
+
/** Complexity level */
|
|
286
|
+
level: ComplexityLevel;
|
|
287
|
+
/** Issues identified */
|
|
288
|
+
issues: string[];
|
|
289
|
+
/** Recommendations */
|
|
290
|
+
recommendations: string[];
|
|
291
|
+
/** Related node IDs */
|
|
292
|
+
relatedNodes: string[];
|
|
293
|
+
/** Tags for categorization */
|
|
294
|
+
tags: string[];
|
|
295
|
+
/** Creation timestamp */
|
|
296
|
+
createdAt: Date;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Edge connecting complexity nodes to file nodes
|
|
300
|
+
*/
|
|
301
|
+
export interface ComplexityEdge {
|
|
302
|
+
/** Source node ID */
|
|
303
|
+
source: string;
|
|
304
|
+
/** Target node ID */
|
|
305
|
+
target: string;
|
|
306
|
+
/** Edge type for complexity relationships */
|
|
307
|
+
type: 'complexity' | 'contains' | 'related';
|
|
308
|
+
/** Relationship weight */
|
|
309
|
+
weight: number;
|
|
310
|
+
/** Context for the edge */
|
|
311
|
+
context?: string;
|
|
312
|
+
/** Complexity score associated with this relationship */
|
|
313
|
+
complexityScore?: number;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Plugin result from analysis
|
|
317
|
+
*/
|
|
318
|
+
export interface ComplexityPluginResult {
|
|
319
|
+
/** Analysis success */
|
|
320
|
+
success: boolean;
|
|
321
|
+
/** Project-wide analysis */
|
|
322
|
+
analysis: ProjectAnalysis;
|
|
323
|
+
/** Generated knowledge graph nodes */
|
|
324
|
+
nodes: ComplexityNode[];
|
|
325
|
+
/** Generated edges */
|
|
326
|
+
edges: ComplexityEdge[];
|
|
327
|
+
/** Error messages if any */
|
|
328
|
+
errors: string[];
|
|
329
|
+
/** Warning messages */
|
|
330
|
+
warnings: string[];
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Plugin options for integration
|
|
334
|
+
*/
|
|
335
|
+
export interface ComplexityPluginOptions {
|
|
336
|
+
/** Analyzer configuration */
|
|
337
|
+
config?: Partial<AnalyzerConfig>;
|
|
338
|
+
/** Store results in cache */
|
|
339
|
+
useCache?: boolean;
|
|
340
|
+
/** Cache TTL in milliseconds */
|
|
341
|
+
cacheTtl?: number;
|
|
342
|
+
/** Generate markdown report */
|
|
343
|
+
generateReport?: boolean;
|
|
344
|
+
/** Report output path */
|
|
345
|
+
reportPath?: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Cache entry for complexity results
|
|
349
|
+
*/
|
|
350
|
+
export interface ComplexityAnalysisCache {
|
|
351
|
+
/** File path */
|
|
352
|
+
filePath: string;
|
|
353
|
+
/** File modification time */
|
|
354
|
+
mtime: number;
|
|
355
|
+
/** Cached analysis result */
|
|
356
|
+
analysis: FileAnalysis;
|
|
357
|
+
/** Cache timestamp */
|
|
358
|
+
cachedAt: number;
|
|
359
|
+
}
|
|
360
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analyzers/code-complexity/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gCAAgC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,gBAAgB,EAAE,MAAM,CAAC;IACzB,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,eAapC,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,iGAAiG;IACj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WAAW,uBAAuB;IACtC,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,QAAQ,EAAE,YAAY,CAAC;IACvB,sBAAsB;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const EMPTY_HALSTEAD_METRICS = {
|
|
2
|
+
distinctOperators: 0,
|
|
3
|
+
distinctOperands: 0,
|
|
4
|
+
totalOperators: 0,
|
|
5
|
+
totalOperands: 0,
|
|
6
|
+
vocabulary: 0,
|
|
7
|
+
length: 0,
|
|
8
|
+
calculatedLength: 0,
|
|
9
|
+
volume: 0,
|
|
10
|
+
difficulty: 0,
|
|
11
|
+
effort: 0,
|
|
12
|
+
time: 0,
|
|
13
|
+
bugs: 0
|
|
14
|
+
};
|
|
15
|
+
const DEFAULT_THRESHOLDS = {
|
|
16
|
+
cyclomaticHigh: 10,
|
|
17
|
+
cyclomaticCritical: 20,
|
|
18
|
+
cognitiveHigh: 15,
|
|
19
|
+
cognitiveCritical: 25,
|
|
20
|
+
maxNestingDepth: 4,
|
|
21
|
+
maxFunctionLength: 50
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
DEFAULT_THRESHOLDS,
|
|
25
|
+
EMPTY_HALSTEAD_METRICS
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../src/plugins/analyzers/code-complexity/types.ts"],"sourcesContent":["/**\n * Code Complexity Analyzer Plugin - Type Definitions\n *\n * Types for complexity analysis including cyclomatic complexity,\n * cognitive complexity, Halstead metrics, and code structure metrics.\n *\n * @module plugins/analyzers/code-complexity/types\n */\n\nimport type { NodeType, KnowledgeNode } from '../../../core/types.js';\n\n// ============================================================================\n// Halstead Metrics Types\n// ============================================================================\n\n/**\n * Halstead software science metrics\n *\n * Based on Maurice Halstead's software science:\n * - n1 = number of distinct operators\n * - n2 = number of distinct operands\n * - N1 = total number of operators\n * - N2 = total number of operands\n */\nexport interface HalsteadMetrics {\n /** Number of distinct operators */\n distinctOperators: number;\n /** Number of distinct operands */\n distinctOperands: number;\n /** Total number of operators */\n totalOperators: number;\n /** Total number of operands */\n totalOperands: number;\n /** Program vocabulary: n = n1 + n2 */\n vocabulary: number;\n /** Program length: N = N1 + N2 */\n length: number;\n /** Calculated program length: N^ = n1 * log2(n1) + n2 * log2(n2) */\n calculatedLength: number;\n /** Volume: V = N * log2(n) - Size of implementation */\n volume: number;\n /** Difficulty: D = (n1/2) * (N2/n2) - Difficulty to understand */\n difficulty: number;\n /** Effort: E = D * V - Mental effort required */\n effort: number;\n /** Time to program: T = E / 18 seconds */\n time: number;\n /** Number of delivered bugs: B = V / 3000 */\n bugs: number;\n}\n\n/**\n * Default/empty Halstead metrics\n */\nexport const EMPTY_HALSTEAD_METRICS: HalsteadMetrics = {\n distinctOperators: 0,\n distinctOperands: 0,\n totalOperators: 0,\n totalOperands: 0,\n vocabulary: 0,\n length: 0,\n calculatedLength: 0,\n volume: 0,\n difficulty: 0,\n effort: 0,\n time: 0,\n bugs: 0,\n};\n\n// ============================================================================\n// Complexity Metric Types\n// ============================================================================\n\n/**\n * Individual complexity score for a code element\n */\nexport interface ComplexityScore {\n /** Cyclomatic complexity - measures decision points (if, for, while, case, catch, &&, ||, ?:) */\n cyclomatic: number;\n /** Cognitive complexity - measures mental effort to understand (nested structures weighted higher) */\n cognitive: number;\n /** Lines of code (excluding blank lines and comments) */\n loc: number;\n /** Total lines including comments and blank lines */\n totalLines: number;\n /** Number of parameters (for functions) */\n parameterCount?: number;\n /** Maximum nesting depth */\n maxNestingDepth: number;\n /** Number of return statements */\n returnCount?: number;\n /** Halstead software science metrics */\n halstead?: HalsteadMetrics;\n}\n\n/**\n * Complexity thresholds for categorization\n */\nexport interface ComplexityThresholds {\n /** Cyclomatic complexity threshold for \"complex\" designation */\n cyclomaticHigh: number;\n /** Cyclomatic complexity threshold for \"very complex\" designation */\n cyclomaticCritical: number;\n /** Cognitive complexity threshold for \"complex\" designation */\n cognitiveHigh: number;\n /** Cognitive complexity threshold for \"very complex\" designation */\n cognitiveCritical: number;\n /** Maximum recommended nesting depth */\n maxNestingDepth: number;\n /** Maximum recommended function length (LOC) */\n maxFunctionLength: number;\n}\n\n/**\n * Default complexity thresholds\n */\nexport const DEFAULT_THRESHOLDS: ComplexityThresholds = {\n cyclomaticHigh: 10,\n cyclomaticCritical: 20,\n cognitiveHigh: 15,\n cognitiveCritical: 25,\n maxNestingDepth: 4,\n maxFunctionLength: 50,\n};\n\n// ============================================================================\n// Function Analysis Types\n// ============================================================================\n\n/**\n * Classification of complexity level\n */\nexport type ComplexityLevel = 'low' | 'moderate' | 'high' | 'critical';\n\n/**\n * Function/method analysis result\n */\nexport interface FunctionAnalysis {\n /** Function name */\n name: string;\n /** File path containing the function */\n filePath: string;\n /** Start line number (1-indexed) */\n startLine: number;\n /** End line number (1-indexed) */\n endLine: number;\n /** Function kind (function, method, arrow, constructor) */\n kind: FunctionKind;\n /** Complexity scores */\n complexity: ComplexityScore;\n /** Complexity classification */\n level: ComplexityLevel;\n /** Parent class/object name if applicable */\n parentName?: string;\n /** Is this an async function */\n isAsync: boolean;\n /** Is this an exported function */\n isExported: boolean;\n /** List of issue descriptions */\n issues: string[];\n /** Recommendations for improvement */\n recommendations: string[];\n}\n\n/**\n * Types of functions detected\n */\nexport type FunctionKind =\n | 'function'\n | 'arrow'\n | 'method'\n | 'constructor'\n | 'getter'\n | 'setter'\n | 'generator'\n | 'asyncGenerator';\n\n// ============================================================================\n// File Analysis Types\n// ============================================================================\n\n/**\n * Complete file analysis result\n */\nexport interface FileAnalysis {\n /** Absolute file path */\n filePath: string;\n /** Relative path from project root */\n relativePath: string;\n /** File extension */\n extension: string;\n /** File-level complexity scores (aggregated) */\n complexity: FileComplexityScore;\n /** All functions in the file */\n functions: FunctionAnalysis[];\n /** Number of classes */\n classCount: number;\n /** Number of imports */\n importCount: number;\n /** Number of exports */\n exportCount: number;\n /** Analysis timestamp */\n analyzedAt: Date;\n /** Parse errors if any */\n parseErrors: string[];\n /** Complex functions (exceeding thresholds) */\n complexFunctions: FunctionAnalysis[];\n /** Overall file complexity level */\n level: ComplexityLevel;\n}\n\n/**\n * File-level complexity aggregation\n */\nexport interface FileComplexityScore extends ComplexityScore {\n /** Average cyclomatic complexity per function */\n avgCyclomatic: number;\n /** Average cognitive complexity per function */\n avgCognitive: number;\n /** Total function count */\n functionCount: number;\n /** Maintainability index (0-100, higher is better) */\n maintainabilityIndex: number;\n}\n\n// ============================================================================\n// Project Analysis Types\n// ============================================================================\n\n/**\n * Project-wide analysis result\n */\nexport interface ProjectAnalysis {\n /** Project root path */\n projectRoot: string;\n /** All analyzed files */\n files: FileAnalysis[];\n /** Project-level aggregated metrics */\n metrics: ProjectMetrics;\n /** Files with complexity issues */\n hotspots: FileAnalysis[];\n /** Most complex functions across project */\n complexFunctions: FunctionAnalysis[];\n /** Analysis configuration used */\n config: AnalyzerConfig;\n /** Analysis timing */\n timing: {\n startedAt: Date;\n completedAt: Date;\n durationMs: number;\n };\n}\n\n/**\n * Project-wide metrics\n */\nexport interface ProjectMetrics {\n /** Total files analyzed */\n totalFiles: number;\n /** Total functions analyzed */\n totalFunctions: number;\n /** Total lines of code */\n totalLoc: number;\n /** Average cyclomatic complexity */\n avgCyclomatic: number;\n /** Average cognitive complexity */\n avgCognitive: number;\n /** Average maintainability index */\n avgMaintainability: number;\n /** Distribution of complexity levels */\n complexityDistribution: Record<ComplexityLevel, number>;\n /** Files by complexity level */\n filesByLevel: Record<ComplexityLevel, number>;\n /** Most complex files (top N) */\n topComplexFiles: Array<{ path: string; score: number }>;\n /** Most complex functions (top N) */\n topComplexFunctions: Array<{ name: string; file: string; score: number }>;\n}\n\n// ============================================================================\n// Analyzer Configuration Types\n// ============================================================================\n\n/**\n * File patterns to include/exclude\n */\nexport interface FilePatterns {\n /** Glob patterns for files to include */\n include: string[];\n /** Glob patterns for files to exclude */\n exclude: string[];\n}\n\n/**\n * Analyzer configuration\n */\nexport interface AnalyzerConfig {\n /** Project root directory */\n projectRoot: string;\n /** File patterns to analyze */\n patterns: FilePatterns;\n /** Complexity thresholds */\n thresholds: ComplexityThresholds;\n /** Maximum files to analyze */\n maxFiles?: number;\n /** Include node_modules */\n includeNodeModules: boolean;\n /** Include test files */\n includeTests: boolean;\n /** Generate graph nodes for complex functions */\n generateGraphNodes: boolean;\n /** Minimum complexity to include in results */\n minComplexityToReport: number;\n /** Enable verbose logging */\n verbose: boolean;\n}\n\n/**\n * Default analyzer configuration\n */\nexport const DEFAULT_CONFIG: AnalyzerConfig = {\n projectRoot: '.',\n patterns: {\n include: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],\n exclude: [\n '**/node_modules/**',\n '**/dist/**',\n '**/build/**',\n '**/*.d.ts',\n '**/*.min.js',\n '**/coverage/**',\n ],\n },\n thresholds: DEFAULT_THRESHOLDS,\n includeNodeModules: false,\n includeTests: true,\n generateGraphNodes: true,\n minComplexityToReport: 0,\n verbose: false,\n};\n\n// ============================================================================\n// Knowledge Graph Integration Types\n// ============================================================================\n\n/**\n * Complexity node type for knowledge graph\n */\nexport type ComplexityNodeType = 'complexity-hotspot' | 'complex-function' | 'complex-file';\n\n/**\n * Node generated from complexity analysis\n */\nexport interface ComplexityNode {\n /** Node ID (unique identifier) */\n id: string;\n /** Node type */\n type: ComplexityNodeType;\n /** Display title */\n title: string;\n /** File path */\n filePath: string;\n /** Function name if applicable */\n functionName?: string;\n /** Line range */\n lineRange?: { start: number; end: number };\n /** Complexity scores */\n complexity: ComplexityScore;\n /** Complexity level */\n level: ComplexityLevel;\n /** Issues identified */\n issues: string[];\n /** Recommendations */\n recommendations: string[];\n /** Related node IDs */\n relatedNodes: string[];\n /** Tags for categorization */\n tags: string[];\n /** Creation timestamp */\n createdAt: Date;\n}\n\n/**\n * Edge connecting complexity nodes to file nodes\n */\nexport interface ComplexityEdge {\n /** Source node ID */\n source: string;\n /** Target node ID */\n target: string;\n /** Edge type for complexity relationships */\n type: 'complexity' | 'contains' | 'related';\n /** Relationship weight */\n weight: number;\n /** Context for the edge */\n context?: string;\n /** Complexity score associated with this relationship */\n complexityScore?: number;\n}\n\n// ============================================================================\n// Plugin Interface Types\n// ============================================================================\n\n/**\n * Plugin result from analysis\n */\nexport interface ComplexityPluginResult {\n /** Analysis success */\n success: boolean;\n /** Project-wide analysis */\n analysis: ProjectAnalysis;\n /** Generated knowledge graph nodes */\n nodes: ComplexityNode[];\n /** Generated edges */\n edges: ComplexityEdge[];\n /** Error messages if any */\n errors: string[];\n /** Warning messages */\n warnings: string[];\n}\n\n/**\n * Plugin options for integration\n */\nexport interface ComplexityPluginOptions {\n /** Analyzer configuration */\n config?: Partial<AnalyzerConfig>;\n /** Store results in cache */\n useCache?: boolean;\n /** Cache TTL in milliseconds */\n cacheTtl?: number;\n /** Generate markdown report */\n generateReport?: boolean;\n /** Report output path */\n reportPath?: string;\n}\n\n/**\n * Cache entry for complexity results\n */\nexport interface ComplexityAnalysisCache {\n /** File path */\n filePath: string;\n /** File modification time */\n mtime: number;\n /** Cached analysis result */\n analysis: FileAnalysis;\n /** Cache timestamp */\n cachedAt: number;\n}\n"],"names":[],"mappings":"AAsDO,MAAM,yBAA0C;AAAA,EACrD,mBAAmB;AAAA,EACnB,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AACR;AAiDO,MAAM,qBAA2C;AAAA,EACtD,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,mBAAmB;AACrB;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dependency Health Analyzer
|
|
3
|
+
*
|
|
4
|
+
* Core analyzer that combines vulnerability checking, outdated package detection,
|
|
5
|
+
* and npm registry metadata to calculate comprehensive health scores.
|
|
6
|
+
*
|
|
7
|
+
* @module plugins/analyzers/dependency-health/analyzer
|
|
8
|
+
*/
|
|
9
|
+
import type { DependencyHealthConfig, DependencyHealthScore, DependencyHealthAnalysis } from './types.js';
|
|
10
|
+
/**
|
|
11
|
+
* DependencyHealthAnalyzer class
|
|
12
|
+
*/
|
|
13
|
+
export declare class DependencyHealthAnalyzer {
|
|
14
|
+
private projectRoot;
|
|
15
|
+
private config;
|
|
16
|
+
private npmClient;
|
|
17
|
+
private vulnChecker;
|
|
18
|
+
constructor(projectRoot: string, config?: Partial<DependencyHealthConfig>);
|
|
19
|
+
/**
|
|
20
|
+
* Run full dependency health analysis
|
|
21
|
+
*/
|
|
22
|
+
analyze(): Promise<DependencyHealthAnalysis>;
|
|
23
|
+
/**
|
|
24
|
+
* Read dependencies from package.json
|
|
25
|
+
*/
|
|
26
|
+
private readDependencies;
|
|
27
|
+
/**
|
|
28
|
+
* Create a DependencyInfo object
|
|
29
|
+
*/
|
|
30
|
+
private createDependencyInfo;
|
|
31
|
+
/**
|
|
32
|
+
* Check for outdated packages using npm outdated
|
|
33
|
+
*/
|
|
34
|
+
private checkOutdated;
|
|
35
|
+
/**
|
|
36
|
+
* Calculate health score for a dependency
|
|
37
|
+
*/
|
|
38
|
+
private calculateHealthScore;
|
|
39
|
+
/**
|
|
40
|
+
* Get health score for a specific package
|
|
41
|
+
*/
|
|
42
|
+
getPackageHealth(packageName: string): Promise<DependencyHealthScore | null>;
|
|
43
|
+
/**
|
|
44
|
+
* Get packages below minimum health score threshold
|
|
45
|
+
*/
|
|
46
|
+
getUnhealthyPackages(): Promise<DependencyHealthScore[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Clear internal caches
|
|
49
|
+
*/
|
|
50
|
+
clearCache(): void;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Create a dependency health analyzer instance
|
|
54
|
+
*/
|
|
55
|
+
export declare function createDependencyHealthAnalyzer(projectRoot: string, config?: Partial<DependencyHealthConfig>): DependencyHealthAnalyzer;
|
|
56
|
+
//# sourceMappingURL=analyzer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analyzers/dependency-health/analyzer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAeH,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EAOzB,MAAM,YAAY,CAAC;AAiCpB;;GAEG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAmC;IACjD,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,WAAW,CAAuB;gBAE9B,WAAW,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,sBAAsB,CAAM;IAoB7E;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,wBAAwB,CAAC;IA4HlD;;OAEG;YACW,gBAAgB;IAgD9B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAa5B;;OAEG;YACW,aAAa;IAuD3B;;OAEG;YACW,oBAAoB;IAoHlC;;OAEG;IACG,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;IAkBlF;;OAEG;IACG,oBAAoB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAO9D;;OAEG;IACH,UAAU,IAAI,IAAI;CAGnB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,GACvC,wBAAwB,CAE1B"}
|