@weavelogic/knowledge-graph-agent 0.4.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 +339 -679
- 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/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/index.d.ts.map +1 -1
- package/dist/cli/index.js +28 -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/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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +106 -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/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/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,605 @@
|
|
|
1
|
+
import { resolve, join } from "path";
|
|
2
|
+
import { existsSync, mkdirSync } from "fs";
|
|
3
|
+
import { createDatabase } from "../core/database.js";
|
|
4
|
+
import { createAdvancedCache } from "../caching/index.js";
|
|
5
|
+
import { ConfigManager } from "../config/manager.js";
|
|
6
|
+
import { createHealthMonitor, createMemoryCheck, createDatabaseCheck } from "../health/index.js";
|
|
7
|
+
import { createRegistry } from "../agents/registry.js";
|
|
8
|
+
import { createWorkflowRegistry } from "../workflows/registry.js";
|
|
9
|
+
import { createServiceManager } from "../services/manager.js";
|
|
10
|
+
import { createTypedEventBus } from "./event-bus.js";
|
|
11
|
+
import { createLogger } from "../utils/logger.js";
|
|
12
|
+
const logger = createLogger("service-container");
|
|
13
|
+
function emitContainerEvent(eventBus, type, source, data) {
|
|
14
|
+
const emitter = eventBus.getEmitter();
|
|
15
|
+
emitter.emit(type, {
|
|
16
|
+
type,
|
|
17
|
+
source,
|
|
18
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
19
|
+
data
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
class ServiceContainer {
|
|
23
|
+
static instance = null;
|
|
24
|
+
static instanceLock = false;
|
|
25
|
+
// Service instances (lazy initialized)
|
|
26
|
+
_database = null;
|
|
27
|
+
_cache = null;
|
|
28
|
+
_configManager = null;
|
|
29
|
+
_healthMonitor = null;
|
|
30
|
+
_agentRegistry = null;
|
|
31
|
+
_workflowRegistry = null;
|
|
32
|
+
_pluginManager = null;
|
|
33
|
+
_eventBus;
|
|
34
|
+
_serviceManager = null;
|
|
35
|
+
// State tracking
|
|
36
|
+
_config;
|
|
37
|
+
_initState = "uninitialized";
|
|
38
|
+
_initPromise = null;
|
|
39
|
+
_startTime = 0;
|
|
40
|
+
_shutdownInProgress = false;
|
|
41
|
+
// Service initialization tracking
|
|
42
|
+
_serviceStates = /* @__PURE__ */ new Map();
|
|
43
|
+
/**
|
|
44
|
+
* Private constructor - use getInstance() instead
|
|
45
|
+
*/
|
|
46
|
+
constructor(config) {
|
|
47
|
+
this._config = this.normalizeConfig(config);
|
|
48
|
+
this._eventBus = createTypedEventBus({
|
|
49
|
+
maxHistorySize: 1e3,
|
|
50
|
+
historyRetention: 60 * 60 * 1e3,
|
|
51
|
+
// 1 hour
|
|
52
|
+
debugEvents: config.verbose ?? false
|
|
53
|
+
});
|
|
54
|
+
this.initializeServiceStates();
|
|
55
|
+
logger.debug("ServiceContainer instance created", {
|
|
56
|
+
projectRoot: this._config.projectRoot
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Normalize and validate configuration
|
|
61
|
+
*/
|
|
62
|
+
normalizeConfig(config) {
|
|
63
|
+
return {
|
|
64
|
+
projectRoot: resolve(config.projectRoot),
|
|
65
|
+
databasePath: config.databasePath ?? ".kg/knowledge.db",
|
|
66
|
+
walMode: config.walMode ?? true,
|
|
67
|
+
cache: {
|
|
68
|
+
maxSize: config.cache?.maxSize ?? 100 * 1024 * 1024,
|
|
69
|
+
// 100MB
|
|
70
|
+
maxEntries: config.cache?.maxEntries ?? 1e4,
|
|
71
|
+
defaultTtl: config.cache?.defaultTtl ?? 36e5,
|
|
72
|
+
// 1 hour
|
|
73
|
+
evictionPolicy: config.cache?.evictionPolicy ?? "lru"
|
|
74
|
+
},
|
|
75
|
+
enableHealthMonitoring: config.enableHealthMonitoring ?? true,
|
|
76
|
+
healthCheckInterval: config.healthCheckInterval ?? 6e4,
|
|
77
|
+
maxAgentsPerType: config.maxAgentsPerType ?? 10,
|
|
78
|
+
verbose: config.verbose ?? false
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Initialize service state tracking
|
|
83
|
+
*/
|
|
84
|
+
initializeServiceStates() {
|
|
85
|
+
const services = [
|
|
86
|
+
"database",
|
|
87
|
+
"cache",
|
|
88
|
+
"configManager",
|
|
89
|
+
"healthMonitor",
|
|
90
|
+
"agentRegistry",
|
|
91
|
+
"workflowRegistry",
|
|
92
|
+
"serviceManager",
|
|
93
|
+
"pluginManager"
|
|
94
|
+
];
|
|
95
|
+
for (const service of services) {
|
|
96
|
+
this._serviceStates.set(service, "uninitialized");
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// ============================================================================
|
|
100
|
+
// Singleton Pattern
|
|
101
|
+
// ============================================================================
|
|
102
|
+
/**
|
|
103
|
+
* Get the singleton instance, optionally creating it with config
|
|
104
|
+
*
|
|
105
|
+
* @param config - Configuration for new instance (required if no instance exists)
|
|
106
|
+
* @returns The singleton ServiceContainer instance
|
|
107
|
+
* @throws Error if no instance exists and no config provided
|
|
108
|
+
*/
|
|
109
|
+
static getInstance(config) {
|
|
110
|
+
if (ServiceContainer.instance) {
|
|
111
|
+
if (config) {
|
|
112
|
+
ServiceContainer.instance._config = ServiceContainer.instance.normalizeConfig(config);
|
|
113
|
+
}
|
|
114
|
+
return ServiceContainer.instance;
|
|
115
|
+
}
|
|
116
|
+
if (!config) {
|
|
117
|
+
throw new Error("ServiceContainer not initialized. Provide config.");
|
|
118
|
+
}
|
|
119
|
+
if (ServiceContainer.instanceLock) {
|
|
120
|
+
throw new Error("ServiceContainer is being initialized by another caller.");
|
|
121
|
+
}
|
|
122
|
+
ServiceContainer.instanceLock = true;
|
|
123
|
+
try {
|
|
124
|
+
ServiceContainer.instance = new ServiceContainer(config);
|
|
125
|
+
} finally {
|
|
126
|
+
ServiceContainer.instanceLock = false;
|
|
127
|
+
}
|
|
128
|
+
return ServiceContainer.instance;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Check if an instance exists
|
|
132
|
+
*/
|
|
133
|
+
static hasInstance() {
|
|
134
|
+
return ServiceContainer.instance !== null;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Reset the singleton instance (for testing)
|
|
138
|
+
*/
|
|
139
|
+
static async resetInstance() {
|
|
140
|
+
if (ServiceContainer.instance) {
|
|
141
|
+
await ServiceContainer.instance.shutdown();
|
|
142
|
+
ServiceContainer.instance = null;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// ============================================================================
|
|
146
|
+
// Service Accessors (Lazy Initialization)
|
|
147
|
+
// ============================================================================
|
|
148
|
+
/**
|
|
149
|
+
* Get the database instance
|
|
150
|
+
* @throws Error if container not initialized
|
|
151
|
+
*/
|
|
152
|
+
getDatabase() {
|
|
153
|
+
this.assertInitialized();
|
|
154
|
+
if (!this._database) {
|
|
155
|
+
throw new Error("Database not initialized");
|
|
156
|
+
}
|
|
157
|
+
return this._database;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Get the advanced cache instance
|
|
161
|
+
* @throws Error if container not initialized
|
|
162
|
+
*/
|
|
163
|
+
getCache() {
|
|
164
|
+
this.assertInitialized();
|
|
165
|
+
if (!this._cache) {
|
|
166
|
+
throw new Error("Cache not initialized");
|
|
167
|
+
}
|
|
168
|
+
return this._cache;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get the configuration manager
|
|
172
|
+
* @throws Error if container not initialized
|
|
173
|
+
*/
|
|
174
|
+
getConfig() {
|
|
175
|
+
this.assertInitialized();
|
|
176
|
+
if (!this._configManager) {
|
|
177
|
+
throw new Error("ConfigManager not initialized");
|
|
178
|
+
}
|
|
179
|
+
return this._configManager;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Get the health monitor
|
|
183
|
+
* @throws Error if container not initialized
|
|
184
|
+
*/
|
|
185
|
+
getHealthMonitor() {
|
|
186
|
+
this.assertInitialized();
|
|
187
|
+
if (!this._healthMonitor) {
|
|
188
|
+
throw new Error("HealthMonitor not initialized");
|
|
189
|
+
}
|
|
190
|
+
return this._healthMonitor;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Get the agent registry
|
|
194
|
+
* @throws Error if container not initialized
|
|
195
|
+
*/
|
|
196
|
+
getAgentRegistry() {
|
|
197
|
+
this.assertInitialized();
|
|
198
|
+
if (!this._agentRegistry) {
|
|
199
|
+
throw new Error("AgentRegistry not initialized");
|
|
200
|
+
}
|
|
201
|
+
return this._agentRegistry;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Get the workflow registry
|
|
205
|
+
* @throws Error if container not initialized
|
|
206
|
+
*/
|
|
207
|
+
getWorkflowRegistry() {
|
|
208
|
+
this.assertInitialized();
|
|
209
|
+
if (!this._workflowRegistry) {
|
|
210
|
+
throw new Error("WorkflowRegistry not initialized");
|
|
211
|
+
}
|
|
212
|
+
return this._workflowRegistry;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Get the plugin manager (if available)
|
|
216
|
+
*/
|
|
217
|
+
getPluginManager() {
|
|
218
|
+
this.assertInitialized();
|
|
219
|
+
return this._pluginManager;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Get the typed event bus for cross-service communication
|
|
223
|
+
*/
|
|
224
|
+
getEventBus() {
|
|
225
|
+
return this._eventBus;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Get the service manager for background services
|
|
229
|
+
* @throws Error if container not initialized
|
|
230
|
+
*/
|
|
231
|
+
getServiceManager() {
|
|
232
|
+
this.assertInitialized();
|
|
233
|
+
if (!this._serviceManager) {
|
|
234
|
+
throw new Error("ServiceManager not initialized");
|
|
235
|
+
}
|
|
236
|
+
return this._serviceManager;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Get the project root directory
|
|
240
|
+
*/
|
|
241
|
+
getProjectRoot() {
|
|
242
|
+
return this._config.projectRoot;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Get the container configuration
|
|
246
|
+
*/
|
|
247
|
+
getContainerConfig() {
|
|
248
|
+
return Object.freeze({ ...this._config });
|
|
249
|
+
}
|
|
250
|
+
// ============================================================================
|
|
251
|
+
// Lifecycle Management
|
|
252
|
+
// ============================================================================
|
|
253
|
+
/**
|
|
254
|
+
* Initialize all services in dependency order
|
|
255
|
+
*/
|
|
256
|
+
async initialize() {
|
|
257
|
+
if (this._initPromise) {
|
|
258
|
+
return this._initPromise;
|
|
259
|
+
}
|
|
260
|
+
if (this._initState === "initialized") {
|
|
261
|
+
logger.debug("ServiceContainer already initialized");
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
this._initPromise = this._doInitialize();
|
|
265
|
+
try {
|
|
266
|
+
await this._initPromise;
|
|
267
|
+
} finally {
|
|
268
|
+
this._initPromise = null;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Internal initialization logic with dependency ordering
|
|
273
|
+
*/
|
|
274
|
+
async _doInitialize() {
|
|
275
|
+
if (this._initState === "initializing") {
|
|
276
|
+
throw new Error("Initialization already in progress");
|
|
277
|
+
}
|
|
278
|
+
this._initState = "initializing";
|
|
279
|
+
this._startTime = Date.now();
|
|
280
|
+
logger.info("Initializing ServiceContainer...");
|
|
281
|
+
emitContainerEvent(this._eventBus, "container:initializing", "container", {});
|
|
282
|
+
try {
|
|
283
|
+
await this.ensureDirectories();
|
|
284
|
+
await this.initializeService("configManager", () => this.initConfigManager());
|
|
285
|
+
await this.initializeService("database", () => this.initDatabase());
|
|
286
|
+
await this.initializeService("cache", () => this.initCache());
|
|
287
|
+
await this.initializeService("healthMonitor", () => this.initHealthMonitor());
|
|
288
|
+
await this.initializeService("serviceManager", () => this.initServiceManager());
|
|
289
|
+
await this.initializeService("agentRegistry", () => this.initAgentRegistry());
|
|
290
|
+
await this.initializeService("workflowRegistry", () => this.initWorkflowRegistry());
|
|
291
|
+
this._initState = "initialized";
|
|
292
|
+
const initTime = Date.now() - this._startTime;
|
|
293
|
+
logger.info("ServiceContainer initialized successfully", {
|
|
294
|
+
initTimeMs: initTime,
|
|
295
|
+
services: Array.from(this._serviceStates.entries()).filter(([, state]) => state === "initialized").map(([name]) => name)
|
|
296
|
+
});
|
|
297
|
+
emitContainerEvent(this._eventBus, "container:ready", "container", {
|
|
298
|
+
initTimeMs: initTime
|
|
299
|
+
});
|
|
300
|
+
} catch (error) {
|
|
301
|
+
this._initState = "failed";
|
|
302
|
+
logger.error(
|
|
303
|
+
"Failed to initialize ServiceContainer",
|
|
304
|
+
error instanceof Error ? error : new Error(String(error))
|
|
305
|
+
);
|
|
306
|
+
emitContainerEvent(this._eventBus, "container:failed", "container", {
|
|
307
|
+
error: error instanceof Error ? error.message : String(error)
|
|
308
|
+
});
|
|
309
|
+
await this._cleanup();
|
|
310
|
+
throw error;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Initialize a single service with state tracking
|
|
315
|
+
*/
|
|
316
|
+
async initializeService(name, initializer) {
|
|
317
|
+
this._serviceStates.set(name, "initializing");
|
|
318
|
+
emitContainerEvent(this._eventBus, "service:initializing", "container", { service: name });
|
|
319
|
+
try {
|
|
320
|
+
await initializer();
|
|
321
|
+
this._serviceStates.set(name, "initialized");
|
|
322
|
+
emitContainerEvent(this._eventBus, "service:initialized", "container", { service: name });
|
|
323
|
+
logger.debug(`Service initialized: ${name}`);
|
|
324
|
+
} catch (error) {
|
|
325
|
+
this._serviceStates.set(name, "failed");
|
|
326
|
+
emitContainerEvent(this._eventBus, "service:failed", "container", {
|
|
327
|
+
service: name,
|
|
328
|
+
error: error instanceof Error ? error.message : String(error)
|
|
329
|
+
});
|
|
330
|
+
throw error;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Ensure required directories exist
|
|
335
|
+
*/
|
|
336
|
+
async ensureDirectories() {
|
|
337
|
+
const kgDir = join(this._config.projectRoot, ".kg");
|
|
338
|
+
if (!existsSync(kgDir)) {
|
|
339
|
+
mkdirSync(kgDir, { recursive: true });
|
|
340
|
+
logger.debug("Created .kg directory");
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
// ============================================================================
|
|
344
|
+
// Service Initializers
|
|
345
|
+
// ============================================================================
|
|
346
|
+
async initConfigManager() {
|
|
347
|
+
this._configManager = new ConfigManager(this._config.projectRoot);
|
|
348
|
+
}
|
|
349
|
+
async initDatabase() {
|
|
350
|
+
const dbPath = join(this._config.projectRoot, this._config.databasePath);
|
|
351
|
+
this._database = createDatabase(dbPath);
|
|
352
|
+
logger.debug("Database initialized", { path: dbPath });
|
|
353
|
+
}
|
|
354
|
+
async initCache() {
|
|
355
|
+
this._cache = createAdvancedCache({
|
|
356
|
+
maxSize: this._config.cache?.maxSize,
|
|
357
|
+
maxEntries: this._config.cache?.maxEntries,
|
|
358
|
+
defaultTtl: this._config.cache?.defaultTtl,
|
|
359
|
+
evictionPolicy: this._config.cache?.evictionPolicy,
|
|
360
|
+
enableStats: true
|
|
361
|
+
});
|
|
362
|
+
logger.debug("Cache initialized");
|
|
363
|
+
}
|
|
364
|
+
async initHealthMonitor() {
|
|
365
|
+
this._healthMonitor = createHealthMonitor({
|
|
366
|
+
interval: this._config.healthCheckInterval,
|
|
367
|
+
autoStart: false
|
|
368
|
+
});
|
|
369
|
+
this._healthMonitor.register(createMemoryCheck(85));
|
|
370
|
+
if (this._database) {
|
|
371
|
+
const dbPath = join(this._config.projectRoot, this._config.databasePath);
|
|
372
|
+
this._healthMonitor.register(createDatabaseCheck(dbPath));
|
|
373
|
+
}
|
|
374
|
+
if (this._config.enableHealthMonitoring) {
|
|
375
|
+
this._healthMonitor.start();
|
|
376
|
+
}
|
|
377
|
+
logger.debug("Health monitor initialized");
|
|
378
|
+
}
|
|
379
|
+
async initServiceManager() {
|
|
380
|
+
this._serviceManager = createServiceManager();
|
|
381
|
+
logger.debug("Service manager initialized");
|
|
382
|
+
}
|
|
383
|
+
async initAgentRegistry() {
|
|
384
|
+
this._agentRegistry = createRegistry({
|
|
385
|
+
enableHealthMonitoring: this._config.enableHealthMonitoring,
|
|
386
|
+
healthCheckInterval: this._config.healthCheckInterval,
|
|
387
|
+
maxAgentsPerType: this._config.maxAgentsPerType
|
|
388
|
+
});
|
|
389
|
+
logger.debug("Agent registry initialized");
|
|
390
|
+
}
|
|
391
|
+
async initWorkflowRegistry() {
|
|
392
|
+
this._workflowRegistry = createWorkflowRegistry({
|
|
393
|
+
maxConcurrentExecutions: 10,
|
|
394
|
+
persistHistory: true,
|
|
395
|
+
maxHistoryEntries: 1e3
|
|
396
|
+
});
|
|
397
|
+
logger.debug("Workflow registry initialized");
|
|
398
|
+
}
|
|
399
|
+
// ============================================================================
|
|
400
|
+
// Shutdown
|
|
401
|
+
// ============================================================================
|
|
402
|
+
/**
|
|
403
|
+
* Gracefully shutdown all services in reverse dependency order
|
|
404
|
+
*/
|
|
405
|
+
async shutdown() {
|
|
406
|
+
if (this._shutdownInProgress) {
|
|
407
|
+
logger.warn("Shutdown already in progress");
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
if (this._initState === "uninitialized") {
|
|
411
|
+
logger.debug("ServiceContainer not initialized, nothing to shutdown");
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
this._shutdownInProgress = true;
|
|
415
|
+
logger.info("Shutting down ServiceContainer...");
|
|
416
|
+
emitContainerEvent(this._eventBus, "container:shutdown", "container", {});
|
|
417
|
+
await this._cleanup();
|
|
418
|
+
this._initState = "uninitialized";
|
|
419
|
+
this._shutdownInProgress = false;
|
|
420
|
+
logger.info("ServiceContainer shutdown complete");
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Internal cleanup logic - shutdown services in reverse order
|
|
424
|
+
*/
|
|
425
|
+
async _cleanup() {
|
|
426
|
+
await this.shutdownService("workflowRegistry", async () => {
|
|
427
|
+
if (this._workflowRegistry) {
|
|
428
|
+
this._workflowRegistry.clear();
|
|
429
|
+
this._workflowRegistry = null;
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
await this.shutdownService("agentRegistry", async () => {
|
|
433
|
+
if (this._agentRegistry) {
|
|
434
|
+
await this._agentRegistry.dispose();
|
|
435
|
+
this._agentRegistry = null;
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
await this.shutdownService("serviceManager", async () => {
|
|
439
|
+
if (this._serviceManager) {
|
|
440
|
+
await this._serviceManager.shutdown();
|
|
441
|
+
this._serviceManager = null;
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
await this.shutdownService("healthMonitor", async () => {
|
|
445
|
+
if (this._healthMonitor) {
|
|
446
|
+
this._healthMonitor.stop();
|
|
447
|
+
this._healthMonitor = null;
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
await this.shutdownService("cache", async () => {
|
|
451
|
+
if (this._cache) {
|
|
452
|
+
this._cache.clear();
|
|
453
|
+
this._cache = null;
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
await this.shutdownService("database", async () => {
|
|
457
|
+
if (this._database) {
|
|
458
|
+
this._database.close();
|
|
459
|
+
this._database = null;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
await this.shutdownService("configManager", async () => {
|
|
463
|
+
if (this._configManager) {
|
|
464
|
+
try {
|
|
465
|
+
this._configManager.save();
|
|
466
|
+
} catch {
|
|
467
|
+
}
|
|
468
|
+
this._configManager = null;
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Shutdown a single service with error handling
|
|
474
|
+
*/
|
|
475
|
+
async shutdownService(name, cleanup) {
|
|
476
|
+
if (this._serviceStates.get(name) !== "initialized") {
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
emitContainerEvent(this._eventBus, "service:shutting-down", "container", { service: name });
|
|
480
|
+
try {
|
|
481
|
+
await cleanup();
|
|
482
|
+
this._serviceStates.set(name, "uninitialized");
|
|
483
|
+
logger.debug(`Service shutdown complete: ${name}`);
|
|
484
|
+
} catch (error) {
|
|
485
|
+
logger.error(`Error shutting down ${name}`, error);
|
|
486
|
+
this._serviceStates.set(name, "failed");
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
// ============================================================================
|
|
490
|
+
// Health & Status
|
|
491
|
+
// ============================================================================
|
|
492
|
+
/**
|
|
493
|
+
* Check if container is initialized
|
|
494
|
+
*/
|
|
495
|
+
isInitialized() {
|
|
496
|
+
return this._initState === "initialized";
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Get initialization state
|
|
500
|
+
*/
|
|
501
|
+
getInitState() {
|
|
502
|
+
return this._initState;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Get individual service states
|
|
506
|
+
*/
|
|
507
|
+
getServiceStates() {
|
|
508
|
+
return new Map(this._serviceStates);
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Get comprehensive health status
|
|
512
|
+
*/
|
|
513
|
+
getHealth() {
|
|
514
|
+
const components = [];
|
|
515
|
+
const now = /* @__PURE__ */ new Date();
|
|
516
|
+
const serviceEntries = Array.from(this._serviceStates.entries());
|
|
517
|
+
for (const [name, state] of serviceEntries) {
|
|
518
|
+
components.push({
|
|
519
|
+
name,
|
|
520
|
+
healthy: state === "initialized",
|
|
521
|
+
message: state,
|
|
522
|
+
lastCheck: now
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
if (this._healthMonitor && this._initState === "initialized") {
|
|
526
|
+
try {
|
|
527
|
+
const systemHealth = this._healthMonitor.getLastStatus();
|
|
528
|
+
for (const component of systemHealth.components) {
|
|
529
|
+
components.push({
|
|
530
|
+
name: `monitor:${component.name}`,
|
|
531
|
+
healthy: component.status === "healthy",
|
|
532
|
+
message: component.message,
|
|
533
|
+
metrics: component.metadata,
|
|
534
|
+
lastCheck: component.lastCheck
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
} catch {
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
const unhealthyCount = components.filter((c) => !c.healthy).length;
|
|
541
|
+
const overallHealthy = unhealthyCount === 0;
|
|
542
|
+
const status = unhealthyCount === 0 ? "healthy" : unhealthyCount < 2 ? "degraded" : "unhealthy";
|
|
543
|
+
const memUsage = process.memoryUsage();
|
|
544
|
+
return {
|
|
545
|
+
healthy: overallHealthy,
|
|
546
|
+
status,
|
|
547
|
+
components,
|
|
548
|
+
uptime: this._initState === "initialized" ? Date.now() - this._startTime : 0,
|
|
549
|
+
totalRequests: 0,
|
|
550
|
+
// Updated by server manager
|
|
551
|
+
memory: {
|
|
552
|
+
heapUsed: memUsage.heapUsed,
|
|
553
|
+
heapTotal: memUsage.heapTotal,
|
|
554
|
+
external: memUsage.external,
|
|
555
|
+
rss: memUsage.rss
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Get uptime in milliseconds
|
|
561
|
+
*/
|
|
562
|
+
getUptime() {
|
|
563
|
+
if (this._initState !== "initialized") {
|
|
564
|
+
return 0;
|
|
565
|
+
}
|
|
566
|
+
return Date.now() - this._startTime;
|
|
567
|
+
}
|
|
568
|
+
// ============================================================================
|
|
569
|
+
// Helper Methods
|
|
570
|
+
// ============================================================================
|
|
571
|
+
/**
|
|
572
|
+
* Assert that the container is initialized
|
|
573
|
+
* @throws Error if not initialized
|
|
574
|
+
*/
|
|
575
|
+
assertInitialized() {
|
|
576
|
+
if (this._initState !== "initialized") {
|
|
577
|
+
throw new Error("ServiceContainer not initialized. Call initialize() first.");
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
async function createServiceContainer(config) {
|
|
582
|
+
const container = ServiceContainer.getInstance(config);
|
|
583
|
+
await container.initialize();
|
|
584
|
+
return container;
|
|
585
|
+
}
|
|
586
|
+
function getServiceContainer() {
|
|
587
|
+
if (!ServiceContainer.hasInstance()) {
|
|
588
|
+
throw new Error("ServiceContainer not initialized. Call createServiceContainer() first.");
|
|
589
|
+
}
|
|
590
|
+
return ServiceContainer.getInstance();
|
|
591
|
+
}
|
|
592
|
+
function hasServiceContainer() {
|
|
593
|
+
return ServiceContainer.hasInstance();
|
|
594
|
+
}
|
|
595
|
+
async function shutdownServiceContainer() {
|
|
596
|
+
await ServiceContainer.resetInstance();
|
|
597
|
+
}
|
|
598
|
+
export {
|
|
599
|
+
ServiceContainer,
|
|
600
|
+
createServiceContainer,
|
|
601
|
+
getServiceContainer,
|
|
602
|
+
hasServiceContainer,
|
|
603
|
+
shutdownServiceContainer
|
|
604
|
+
};
|
|
605
|
+
//# sourceMappingURL=container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.js","sources":["../../src/server/container.ts"],"sourcesContent":["/**\n * Service Container - Singleton Pattern for Concurrent Server Execution\n *\n * Provides a centralized container for managing all shared services across\n * MCP, GraphQL, and Dashboard servers. Implements lazy initialization,\n * dependency injection, and coordinated lifecycle management.\n *\n * @module server/container\n */\n\nimport { join, resolve } from 'path';\nimport { existsSync, mkdirSync } from 'fs';\nimport { KnowledgeGraphDatabase, createDatabase } from '../core/database.js';\nimport { AdvancedCache, createAdvancedCache } from '../caching/index.js';\nimport { ConfigManager } from '../config/manager.js';\nimport {\n HealthMonitor,\n createHealthMonitor,\n createMemoryCheck,\n createDatabaseCheck,\n type SystemHealth,\n} from '../health/index.js';\nimport { AgentRegistry, createRegistry } from '../agents/registry.js';\nimport { WorkflowRegistry, createWorkflowRegistry } from '../workflows/registry.js';\nimport { ServiceManager, createServiceManager } from '../services/manager.js';\nimport { TypedEventBus, createTypedEventBus } from './event-bus.js';\nimport { createLogger } from '../utils/index.js';\nimport type { HealthStatus, ComponentHealth } from './types.js';\nimport type { CacheConfig } from '../caching/index.js';\nimport type { PluginManager } from '../plugins/types.js';\n\nconst logger = createLogger('service-container');\n\n/**\n * Emit a container lifecycle event using the underlying emitter\n */\nfunction emitContainerEvent(\n eventBus: TypedEventBus,\n type: ContainerEventType,\n source: string,\n data: Record<string, unknown>\n): void {\n const emitter = eventBus.getEmitter();\n emitter.emit(type, {\n type,\n source,\n timestamp: new Date(),\n data,\n });\n}\n\n// ============================================================================\n// Types\n// ============================================================================\n\n/**\n * Service initialization state\n */\nexport type ServiceInitState = 'uninitialized' | 'initializing' | 'initialized' | 'failed';\n\n/**\n * Service dependency graph - defines initialization order\n */\nexport interface ServiceDependency {\n name: string;\n dependsOn: string[];\n priority: number; // Lower = earlier initialization\n}\n\n/**\n * Container configuration options\n */\nexport interface ContainerConfig {\n /** Project root directory */\n projectRoot: string;\n /** Database path (relative to projectRoot) */\n databasePath?: string;\n /** Enable WAL mode for SQLite */\n walMode?: boolean;\n /** Cache configuration */\n cache?: Partial<CacheConfig>;\n /** Enable health monitoring */\n enableHealthMonitoring?: boolean;\n /** Health check interval in ms */\n healthCheckInterval?: number;\n /** Max agents per type */\n maxAgentsPerType?: number;\n /** Enable verbose logging */\n verbose?: boolean;\n}\n\n/**\n * Container event types\n */\nexport type ContainerEventType =\n | 'service:initializing'\n | 'service:initialized'\n | 'service:failed'\n | 'service:shutting-down'\n | 'container:ready'\n | 'container:shutdown';\n\n// ============================================================================\n// Service Container Implementation\n// ============================================================================\n\n/**\n * ServiceContainer - Singleton for shared service management\n *\n * Manages the lifecycle of all shared services across concurrent server\n * instances. Provides lazy initialization, dependency injection, and\n * coordinated shutdown.\n *\n * @example\n * ```typescript\n * // Get or create the singleton instance\n * const container = ServiceContainer.getInstance({\n * projectRoot: '/path/to/project',\n * });\n *\n * // Initialize all services\n * await container.initialize();\n *\n * // Access services\n * const db = container.getDatabase();\n * const cache = container.getCache();\n *\n * // Graceful shutdown\n * await container.shutdown();\n * ```\n */\nexport class ServiceContainer {\n private static instance: ServiceContainer | null = null;\n private static instanceLock = false;\n\n // Service instances (lazy initialized)\n private _database: KnowledgeGraphDatabase | null = null;\n private _cache: AdvancedCache | null = null;\n private _configManager: ConfigManager | null = null;\n private _healthMonitor: HealthMonitor | null = null;\n private _agentRegistry: AgentRegistry | null = null;\n private _workflowRegistry: WorkflowRegistry | null = null;\n private _pluginManager: PluginManager | null = null;\n private _eventBus: TypedEventBus;\n private _serviceManager: ServiceManager | null = null;\n\n // State tracking\n private _config: ContainerConfig;\n private _initState: ServiceInitState = 'uninitialized';\n private _initPromise: Promise<void> | null = null;\n private _startTime: number = 0;\n private _shutdownInProgress = false;\n\n // Service initialization tracking\n private _serviceStates: Map<string, ServiceInitState> = new Map();\n\n /**\n * Private constructor - use getInstance() instead\n */\n private constructor(config: ContainerConfig) {\n this._config = this.normalizeConfig(config);\n this._eventBus = createTypedEventBus({\n maxHistorySize: 1000,\n historyRetention: 60 * 60 * 1000, // 1 hour\n debugEvents: config.verbose ?? false,\n });\n\n // Initialize service state tracking\n this.initializeServiceStates();\n\n logger.debug('ServiceContainer instance created', {\n projectRoot: this._config.projectRoot,\n });\n }\n\n /**\n * Normalize and validate configuration\n */\n private normalizeConfig(config: ContainerConfig): ContainerConfig {\n return {\n projectRoot: resolve(config.projectRoot),\n databasePath: config.databasePath ?? '.kg/knowledge.db',\n walMode: config.walMode ?? true,\n cache: {\n maxSize: config.cache?.maxSize ?? 100 * 1024 * 1024, // 100MB\n maxEntries: config.cache?.maxEntries ?? 10000,\n defaultTtl: config.cache?.defaultTtl ?? 3600000, // 1 hour\n evictionPolicy: config.cache?.evictionPolicy ?? 'lru',\n },\n enableHealthMonitoring: config.enableHealthMonitoring ?? true,\n healthCheckInterval: config.healthCheckInterval ?? 60000,\n maxAgentsPerType: config.maxAgentsPerType ?? 10,\n verbose: config.verbose ?? false,\n };\n }\n\n /**\n * Initialize service state tracking\n */\n private initializeServiceStates(): void {\n const services = [\n 'database',\n 'cache',\n 'configManager',\n 'healthMonitor',\n 'agentRegistry',\n 'workflowRegistry',\n 'serviceManager',\n 'pluginManager',\n ];\n\n for (const service of services) {\n this._serviceStates.set(service, 'uninitialized');\n }\n }\n\n // ============================================================================\n // Singleton Pattern\n // ============================================================================\n\n /**\n * Get the singleton instance, optionally creating it with config\n *\n * @param config - Configuration for new instance (required if no instance exists)\n * @returns The singleton ServiceContainer instance\n * @throws Error if no instance exists and no config provided\n */\n static getInstance(config?: ContainerConfig): ServiceContainer {\n if (ServiceContainer.instance) {\n // Update config if provided\n if (config) {\n ServiceContainer.instance._config = ServiceContainer.instance.normalizeConfig(config);\n }\n return ServiceContainer.instance;\n }\n\n if (!config) {\n throw new Error('ServiceContainer not initialized. Provide config.');\n }\n\n // Prevent concurrent instance creation\n if (ServiceContainer.instanceLock) {\n throw new Error('ServiceContainer is being initialized by another caller.');\n }\n\n ServiceContainer.instanceLock = true;\n try {\n ServiceContainer.instance = new ServiceContainer(config);\n } finally {\n ServiceContainer.instanceLock = false;\n }\n\n return ServiceContainer.instance;\n }\n\n /**\n * Check if an instance exists\n */\n static hasInstance(): boolean {\n return ServiceContainer.instance !== null;\n }\n\n /**\n * Reset the singleton instance (for testing)\n */\n static async resetInstance(): Promise<void> {\n if (ServiceContainer.instance) {\n await ServiceContainer.instance.shutdown();\n ServiceContainer.instance = null;\n }\n }\n\n // ============================================================================\n // Service Accessors (Lazy Initialization)\n // ============================================================================\n\n /**\n * Get the database instance\n * @throws Error if container not initialized\n */\n getDatabase(): KnowledgeGraphDatabase {\n this.assertInitialized();\n if (!this._database) {\n throw new Error('Database not initialized');\n }\n return this._database;\n }\n\n /**\n * Get the advanced cache instance\n * @throws Error if container not initialized\n */\n getCache(): AdvancedCache {\n this.assertInitialized();\n if (!this._cache) {\n throw new Error('Cache not initialized');\n }\n return this._cache;\n }\n\n /**\n * Get the configuration manager\n * @throws Error if container not initialized\n */\n getConfig(): ConfigManager {\n this.assertInitialized();\n if (!this._configManager) {\n throw new Error('ConfigManager not initialized');\n }\n return this._configManager;\n }\n\n /**\n * Get the health monitor\n * @throws Error if container not initialized\n */\n getHealthMonitor(): HealthMonitor {\n this.assertInitialized();\n if (!this._healthMonitor) {\n throw new Error('HealthMonitor not initialized');\n }\n return this._healthMonitor;\n }\n\n /**\n * Get the agent registry\n * @throws Error if container not initialized\n */\n getAgentRegistry(): AgentRegistry {\n this.assertInitialized();\n if (!this._agentRegistry) {\n throw new Error('AgentRegistry not initialized');\n }\n return this._agentRegistry;\n }\n\n /**\n * Get the workflow registry\n * @throws Error if container not initialized\n */\n getWorkflowRegistry(): WorkflowRegistry {\n this.assertInitialized();\n if (!this._workflowRegistry) {\n throw new Error('WorkflowRegistry not initialized');\n }\n return this._workflowRegistry;\n }\n\n /**\n * Get the plugin manager (if available)\n */\n getPluginManager(): PluginManager | null {\n this.assertInitialized();\n return this._pluginManager;\n }\n\n /**\n * Get the typed event bus for cross-service communication\n */\n getEventBus(): TypedEventBus {\n return this._eventBus;\n }\n\n /**\n * Get the service manager for background services\n * @throws Error if container not initialized\n */\n getServiceManager(): ServiceManager {\n this.assertInitialized();\n if (!this._serviceManager) {\n throw new Error('ServiceManager not initialized');\n }\n return this._serviceManager;\n }\n\n /**\n * Get the project root directory\n */\n getProjectRoot(): string {\n return this._config.projectRoot;\n }\n\n /**\n * Get the container configuration\n */\n getContainerConfig(): Readonly<ContainerConfig> {\n return Object.freeze({ ...this._config });\n }\n\n // ============================================================================\n // Lifecycle Management\n // ============================================================================\n\n /**\n * Initialize all services in dependency order\n */\n async initialize(): Promise<void> {\n // Return existing promise if already initializing\n if (this._initPromise) {\n return this._initPromise;\n }\n\n // Return immediately if already initialized\n if (this._initState === 'initialized') {\n logger.debug('ServiceContainer already initialized');\n return;\n }\n\n this._initPromise = this._doInitialize();\n\n try {\n await this._initPromise;\n } finally {\n this._initPromise = null;\n }\n }\n\n /**\n * Internal initialization logic with dependency ordering\n */\n private async _doInitialize(): Promise<void> {\n if (this._initState === 'initializing') {\n throw new Error('Initialization already in progress');\n }\n\n this._initState = 'initializing';\n this._startTime = Date.now();\n\n logger.info('Initializing ServiceContainer...');\n emitContainerEvent(this._eventBus, 'container:initializing' as ContainerEventType, 'container', {});\n\n try {\n // Ensure .kg directory exists\n await this.ensureDirectories();\n\n // Initialize services in dependency order\n // Phase 1: Core services (no dependencies)\n await this.initializeService('configManager', () => this.initConfigManager());\n await this.initializeService('database', () => this.initDatabase());\n await this.initializeService('cache', () => this.initCache());\n\n // Phase 2: Dependent services\n await this.initializeService('healthMonitor', () => this.initHealthMonitor());\n await this.initializeService('serviceManager', () => this.initServiceManager());\n\n // Phase 3: High-level services\n await this.initializeService('agentRegistry', () => this.initAgentRegistry());\n await this.initializeService('workflowRegistry', () => this.initWorkflowRegistry());\n\n // Phase 4: Optional services\n // Plugin manager initialization would go here when implemented\n\n this._initState = 'initialized';\n\n const initTime = Date.now() - this._startTime;\n logger.info('ServiceContainer initialized successfully', {\n initTimeMs: initTime,\n services: Array.from(this._serviceStates.entries())\n .filter(([, state]) => state === 'initialized')\n .map(([name]) => name),\n });\n\n emitContainerEvent(this._eventBus, 'container:ready', 'container', {\n initTimeMs: initTime,\n });\n } catch (error) {\n this._initState = 'failed';\n\n logger.error(\n 'Failed to initialize ServiceContainer',\n error instanceof Error ? error : new Error(String(error))\n );\n\n emitContainerEvent(this._eventBus, 'container:failed' as ContainerEventType, 'container', {\n error: error instanceof Error ? error.message : String(error),\n });\n\n // Cleanup partial initialization\n await this._cleanup();\n\n throw error;\n }\n }\n\n /**\n * Initialize a single service with state tracking\n */\n private async initializeService(\n name: string,\n initializer: () => Promise<void>\n ): Promise<void> {\n this._serviceStates.set(name, 'initializing');\n emitContainerEvent(this._eventBus, 'service:initializing', 'container', { service: name });\n\n try {\n await initializer();\n this._serviceStates.set(name, 'initialized');\n emitContainerEvent(this._eventBus, 'service:initialized', 'container', { service: name });\n logger.debug(`Service initialized: ${name}`);\n } catch (error) {\n this._serviceStates.set(name, 'failed');\n emitContainerEvent(this._eventBus, 'service:failed', 'container', {\n service: name,\n error: error instanceof Error ? error.message : String(error),\n });\n throw error;\n }\n }\n\n /**\n * Ensure required directories exist\n */\n private async ensureDirectories(): Promise<void> {\n const kgDir = join(this._config.projectRoot, '.kg');\n if (!existsSync(kgDir)) {\n mkdirSync(kgDir, { recursive: true });\n logger.debug('Created .kg directory');\n }\n }\n\n // ============================================================================\n // Service Initializers\n // ============================================================================\n\n private async initConfigManager(): Promise<void> {\n this._configManager = new ConfigManager(this._config.projectRoot);\n }\n\n private async initDatabase(): Promise<void> {\n const dbPath = join(this._config.projectRoot, this._config.databasePath!);\n this._database = createDatabase(dbPath);\n logger.debug('Database initialized', { path: dbPath });\n }\n\n private async initCache(): Promise<void> {\n this._cache = createAdvancedCache({\n maxSize: this._config.cache?.maxSize,\n maxEntries: this._config.cache?.maxEntries,\n defaultTtl: this._config.cache?.defaultTtl,\n evictionPolicy: this._config.cache?.evictionPolicy,\n enableStats: true,\n });\n logger.debug('Cache initialized');\n }\n\n private async initHealthMonitor(): Promise<void> {\n this._healthMonitor = createHealthMonitor({\n interval: this._config.healthCheckInterval,\n autoStart: false,\n });\n\n // Register built-in health checks\n this._healthMonitor.register(createMemoryCheck(85)); // 85% threshold\n\n if (this._database) {\n const dbPath = join(this._config.projectRoot, this._config.databasePath!);\n this._healthMonitor.register(createDatabaseCheck(dbPath));\n }\n\n if (this._config.enableHealthMonitoring) {\n this._healthMonitor.start();\n }\n\n logger.debug('Health monitor initialized');\n }\n\n private async initServiceManager(): Promise<void> {\n this._serviceManager = createServiceManager();\n logger.debug('Service manager initialized');\n }\n\n private async initAgentRegistry(): Promise<void> {\n this._agentRegistry = createRegistry({\n enableHealthMonitoring: this._config.enableHealthMonitoring,\n healthCheckInterval: this._config.healthCheckInterval,\n maxAgentsPerType: this._config.maxAgentsPerType,\n });\n logger.debug('Agent registry initialized');\n }\n\n private async initWorkflowRegistry(): Promise<void> {\n this._workflowRegistry = createWorkflowRegistry({\n maxConcurrentExecutions: 10,\n persistHistory: true,\n maxHistoryEntries: 1000,\n });\n logger.debug('Workflow registry initialized');\n }\n\n // ============================================================================\n // Shutdown\n // ============================================================================\n\n /**\n * Gracefully shutdown all services in reverse dependency order\n */\n async shutdown(): Promise<void> {\n if (this._shutdownInProgress) {\n logger.warn('Shutdown already in progress');\n return;\n }\n\n if (this._initState === 'uninitialized') {\n logger.debug('ServiceContainer not initialized, nothing to shutdown');\n return;\n }\n\n this._shutdownInProgress = true;\n logger.info('Shutting down ServiceContainer...');\n emitContainerEvent(this._eventBus, 'container:shutdown', 'container', {});\n\n await this._cleanup();\n\n this._initState = 'uninitialized';\n this._shutdownInProgress = false;\n\n logger.info('ServiceContainer shutdown complete');\n }\n\n /**\n * Internal cleanup logic - shutdown services in reverse order\n */\n private async _cleanup(): Promise<void> {\n // Shutdown in reverse dependency order\n\n // Phase 4: Optional services (first to shutdown)\n // Plugin manager would be cleaned up here\n\n // Phase 3: High-level services\n await this.shutdownService('workflowRegistry', async () => {\n if (this._workflowRegistry) {\n // WorkflowRegistry doesn't have a dispose, but we can clear active executions\n this._workflowRegistry.clear();\n this._workflowRegistry = null;\n }\n });\n\n await this.shutdownService('agentRegistry', async () => {\n if (this._agentRegistry) {\n await this._agentRegistry.dispose();\n this._agentRegistry = null;\n }\n });\n\n // Phase 2: Dependent services\n await this.shutdownService('serviceManager', async () => {\n if (this._serviceManager) {\n await this._serviceManager.shutdown();\n this._serviceManager = null;\n }\n });\n\n await this.shutdownService('healthMonitor', async () => {\n if (this._healthMonitor) {\n this._healthMonitor.stop();\n this._healthMonitor = null;\n }\n });\n\n // Phase 1: Core services (last to shutdown)\n await this.shutdownService('cache', async () => {\n if (this._cache) {\n // AdvancedCache doesn't have explicit cleanup, just clear\n this._cache.clear();\n this._cache = null;\n }\n });\n\n await this.shutdownService('database', async () => {\n if (this._database) {\n this._database.close();\n this._database = null;\n }\n });\n\n await this.shutdownService('configManager', async () => {\n if (this._configManager) {\n // Save any pending config changes\n try {\n this._configManager.save();\n } catch {\n // Ignore save errors during shutdown\n }\n this._configManager = null;\n }\n });\n }\n\n /**\n * Shutdown a single service with error handling\n */\n private async shutdownService(\n name: string,\n cleanup: () => Promise<void>\n ): Promise<void> {\n if (this._serviceStates.get(name) !== 'initialized') {\n return;\n }\n\n emitContainerEvent(this._eventBus, 'service:shutting-down', 'container', { service: name });\n\n try {\n await cleanup();\n this._serviceStates.set(name, 'uninitialized');\n logger.debug(`Service shutdown complete: ${name}`);\n } catch (error) {\n logger.error(`Error shutting down ${name}`, error as Error);\n this._serviceStates.set(name, 'failed');\n }\n }\n\n // ============================================================================\n // Health & Status\n // ============================================================================\n\n /**\n * Check if container is initialized\n */\n isInitialized(): boolean {\n return this._initState === 'initialized';\n }\n\n /**\n * Get initialization state\n */\n getInitState(): ServiceInitState {\n return this._initState;\n }\n\n /**\n * Get individual service states\n */\n getServiceStates(): Map<string, ServiceInitState> {\n return new Map(this._serviceStates);\n }\n\n /**\n * Get comprehensive health status\n */\n getHealth(): HealthStatus {\n const components: ComponentHealth[] = [];\n const now = new Date();\n\n // Check each service\n const serviceEntries = Array.from(this._serviceStates.entries());\n for (const [name, state] of serviceEntries) {\n components.push({\n name,\n healthy: state === 'initialized',\n message: state,\n lastCheck: now,\n });\n }\n\n // Add health monitor results if available\n if (this._healthMonitor && this._initState === 'initialized') {\n try {\n const systemHealth = this._healthMonitor.getLastStatus();\n for (const component of systemHealth.components) {\n components.push({\n name: `monitor:${component.name}`,\n healthy: component.status === 'healthy',\n message: component.message,\n metrics: component.metadata as Record<string, number | string> | undefined,\n lastCheck: component.lastCheck,\n });\n }\n } catch {\n // Health monitor might not be ready\n }\n }\n\n // Calculate overall health\n const unhealthyCount = components.filter((c) => !c.healthy).length;\n const overallHealthy = unhealthyCount === 0;\n const status: HealthStatus['status'] =\n unhealthyCount === 0 ? 'healthy' : unhealthyCount < 2 ? 'degraded' : 'unhealthy';\n\n // Memory usage\n const memUsage = process.memoryUsage();\n\n return {\n healthy: overallHealthy,\n status,\n components,\n uptime: this._initState === 'initialized' ? Date.now() - this._startTime : 0,\n totalRequests: 0, // Updated by server manager\n memory: {\n heapUsed: memUsage.heapUsed,\n heapTotal: memUsage.heapTotal,\n external: memUsage.external,\n rss: memUsage.rss,\n },\n };\n }\n\n /**\n * Get uptime in milliseconds\n */\n getUptime(): number {\n if (this._initState !== 'initialized') {\n return 0;\n }\n return Date.now() - this._startTime;\n }\n\n // ============================================================================\n // Helper Methods\n // ============================================================================\n\n /**\n * Assert that the container is initialized\n * @throws Error if not initialized\n */\n private assertInitialized(): void {\n if (this._initState !== 'initialized') {\n throw new Error('ServiceContainer not initialized. Call initialize() first.');\n }\n }\n}\n\n// ============================================================================\n// Factory Functions\n// ============================================================================\n\n/**\n * Create and initialize a service container\n *\n * @param config - Container configuration\n * @returns Initialized ServiceContainer\n */\nexport async function createServiceContainer(\n config: ContainerConfig\n): Promise<ServiceContainer> {\n const container = ServiceContainer.getInstance(config);\n await container.initialize();\n return container;\n}\n\n/**\n * Get existing service container instance\n *\n * @returns ServiceContainer if initialized\n * @throws Error if not initialized\n */\nexport function getServiceContainer(): ServiceContainer {\n if (!ServiceContainer.hasInstance()) {\n throw new Error('ServiceContainer not initialized. Call createServiceContainer() first.');\n }\n return ServiceContainer.getInstance();\n}\n\n/**\n * Check if service container is available\n */\nexport function hasServiceContainer(): boolean {\n return ServiceContainer.hasInstance();\n}\n\n/**\n * Shutdown and reset the service container\n */\nexport async function shutdownServiceContainer(): Promise<void> {\n await ServiceContainer.resetInstance();\n}\n"],"names":[],"mappings":";;;;;;;;;;;AA+BA,MAAM,SAAS,aAAa,mBAAmB;AAK/C,SAAS,mBACP,UACA,MACA,QACA,MACM;AACN,QAAM,UAAU,SAAS,WAAA;AACzB,UAAQ,KAAK,MAAM;AAAA,IACjB;AAAA,IACA;AAAA,IACA,+BAAe,KAAA;AAAA,IACf;AAAA,EAAA,CACD;AACH;AAkFO,MAAM,iBAAiB;AAAA,EAC5B,OAAe,WAAoC;AAAA,EACnD,OAAe,eAAe;AAAA;AAAA,EAGtB,YAA2C;AAAA,EAC3C,SAA+B;AAAA,EAC/B,iBAAuC;AAAA,EACvC,iBAAuC;AAAA,EACvC,iBAAuC;AAAA,EACvC,oBAA6C;AAAA,EAC7C,iBAAuC;AAAA,EACvC;AAAA,EACA,kBA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