adorn-api 1.0.22 → 1.0.24
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/.eslintignore +3 -0
- package/.eslintrc.cjs +30 -0
- package/README.md +375 -531
- package/dist/core/express-adapter.d.ts +27 -0
- package/dist/core/express-adapter.d.ts.map +1 -0
- package/dist/core/express-adapter.js +146 -0
- package/dist/core/express-adapter.js.map +1 -0
- package/dist/core/http-error.d.ts +7 -0
- package/dist/core/http-error.d.ts.map +1 -0
- package/dist/core/http-error.js +14 -0
- package/dist/core/http-error.js.map +1 -0
- package/dist/decorators/controller.decorator.d.ts +2 -0
- package/dist/decorators/controller.decorator.d.ts.map +1 -0
- package/dist/decorators/controller.decorator.js +26 -0
- package/dist/decorators/controller.decorator.js.map +1 -0
- package/dist/decorators/create.decorator.d.ts +8 -0
- package/dist/decorators/create.decorator.d.ts.map +1 -0
- package/dist/decorators/create.decorator.js +67 -0
- package/dist/decorators/create.decorator.js.map +1 -0
- package/dist/decorators/http-method.decorator.d.ts +16 -0
- package/dist/decorators/http-method.decorator.d.ts.map +1 -0
- package/dist/decorators/http-method.decorator.js +117 -0
- package/dist/decorators/http-method.decorator.js.map +1 -0
- package/dist/decorators/http-params.d.ts +17 -0
- package/dist/decorators/http-params.d.ts.map +1 -0
- package/dist/decorators/http-params.js +26 -0
- package/dist/decorators/http-params.js.map +1 -0
- package/dist/decorators/index.d.ts +10 -5
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js +14 -0
- package/dist/decorators/index.js.map +1 -0
- package/dist/decorators/list.decorator.d.ts +18 -0
- package/dist/decorators/list.decorator.d.ts.map +1 -0
- package/dist/decorators/list.decorator.js +99 -0
- package/dist/decorators/list.decorator.js.map +1 -0
- package/dist/decorators/middleware.decorator.d.ts +4 -0
- package/dist/decorators/middleware.decorator.d.ts.map +1 -0
- package/dist/decorators/middleware.decorator.js +34 -0
- package/dist/decorators/middleware.decorator.js.map +1 -0
- package/dist/decorators/response.decorator.d.ts +8 -0
- package/dist/decorators/response.decorator.d.ts.map +1 -0
- package/dist/decorators/response.decorator.js +44 -0
- package/dist/decorators/response.decorator.js.map +1 -0
- package/dist/decorators/route-options.d.ts +14 -0
- package/dist/decorators/route-options.d.ts.map +1 -0
- package/dist/decorators/route-options.js +22 -0
- package/dist/decorators/route-options.js.map +1 -0
- package/dist/decorators/schema.decorator.d.ts +82 -0
- package/dist/decorators/schema.decorator.d.ts.map +1 -0
- package/dist/decorators/schema.decorator.js +123 -0
- package/dist/decorators/schema.decorator.js.map +1 -0
- package/dist/decorators/update.decorator.d.ts +8 -0
- package/dist/decorators/update.decorator.d.ts.map +1 -0
- package/dist/decorators/update.decorator.js +63 -0
- package/dist/decorators/update.decorator.js.map +1 -0
- package/dist/index.d.ts +11 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -637
- package/dist/index.js.map +1 -1
- package/dist/metadata/metadata-storage.d.ts +38 -0
- package/dist/metadata/metadata-storage.d.ts.map +1 -0
- package/dist/metadata/metadata-storage.js +102 -0
- package/dist/metadata/metadata-storage.js.map +1 -0
- package/dist/metal-orm-integration/dto-helper.d.ts +5 -0
- package/dist/metal-orm-integration/dto-helper.d.ts.map +1 -0
- package/dist/metal-orm-integration/dto-helper.js +48 -0
- package/dist/metal-orm-integration/dto-helper.js.map +1 -0
- package/dist/metal-orm-integration/dto-response.decorator.d.ts +4 -0
- package/dist/metal-orm-integration/dto-response.decorator.d.ts.map +1 -0
- package/dist/metal-orm-integration/dto-response.decorator.js +69 -0
- package/dist/metal-orm-integration/dto-response.decorator.js.map +1 -0
- package/dist/metal-orm-integration/entity-schema-builder.d.ts +20 -0
- package/dist/metal-orm-integration/entity-schema-builder.d.ts.map +1 -0
- package/dist/metal-orm-integration/entity-schema-builder.js +356 -0
- package/dist/metal-orm-integration/entity-schema-builder.js.map +1 -0
- package/dist/metal-orm-integration/index.d.ts +5 -0
- package/dist/metal-orm-integration/index.d.ts.map +1 -0
- package/dist/metal-orm-integration/index.js +5 -0
- package/dist/metal-orm-integration/index.js.map +1 -0
- package/dist/metal-orm-integration/schema-modifier.d.ts +11 -0
- package/dist/metal-orm-integration/schema-modifier.d.ts.map +1 -0
- package/dist/metal-orm-integration/schema-modifier.js +62 -0
- package/dist/metal-orm-integration/schema-modifier.js.map +1 -0
- package/dist/openapi/index.d.ts +4 -0
- package/dist/openapi/index.d.ts.map +1 -0
- package/dist/openapi/index.js +4 -0
- package/dist/openapi/index.js.map +1 -0
- package/dist/openapi/openapi-generator.d.ts +22 -0
- package/dist/openapi/openapi-generator.d.ts.map +1 -0
- package/dist/openapi/openapi-generator.js +428 -0
- package/dist/openapi/openapi-generator.js.map +1 -0
- package/dist/openapi/swagger-ui.d.ts +11 -0
- package/dist/openapi/swagger-ui.d.ts.map +1 -0
- package/dist/openapi/swagger-ui.js +20 -0
- package/dist/openapi/swagger-ui.js.map +1 -0
- package/dist/openapi/zod-to-openapi.d.ts +4 -0
- package/dist/openapi/zod-to-openapi.d.ts.map +1 -0
- package/dist/openapi/zod-to-openapi.js +184 -0
- package/dist/openapi/zod-to-openapi.js.map +1 -0
- package/dist/types/common.d.ts +4 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +2 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/controller.d.ts +14 -0
- package/dist/types/controller.d.ts.map +1 -0
- package/dist/types/controller.js +2 -0
- package/dist/types/controller.js.map +1 -0
- package/dist/types/metadata.d.ts +48 -0
- package/dist/types/metadata.d.ts.map +1 -0
- package/dist/types/metadata.js +2 -0
- package/dist/types/metadata.js.map +1 -0
- package/dist/types/openapi.d.ts +30 -0
- package/dist/types/openapi.d.ts.map +1 -0
- package/dist/types/openapi.js +2 -0
- package/dist/types/openapi.js.map +1 -0
- package/dist/validation/zod-adapter.d.ts +15 -0
- package/dist/validation/zod-adapter.d.ts.map +1 -0
- package/dist/validation/zod-adapter.js +61 -0
- package/dist/validation/zod-adapter.js.map +1 -0
- package/examples/basic/app.ts +15 -0
- package/examples/basic/index.ts +6 -0
- package/examples/basic/user.controller.ts +35 -0
- package/examples/basic/user.dtos.ts +23 -0
- package/examples/metal-orm-sqlite/app.ts +18 -0
- package/examples/metal-orm-sqlite/db.ts +90 -0
- package/examples/metal-orm-sqlite/index.ts +6 -0
- package/examples/metal-orm-sqlite/post.controller.ts +209 -0
- package/examples/metal-orm-sqlite/post.dtos.ts +78 -0
- package/examples/metal-orm-sqlite/post.entity.ts +24 -0
- package/examples/metal-orm-sqlite/user.controller.helpers.ts +305 -0
- package/examples/metal-orm-sqlite/user.controller.ts +231 -0
- package/examples/metal-orm-sqlite/user.dtos.ts +88 -0
- package/examples/metal-orm-sqlite/user.entity.ts +21 -0
- package/examples/metal-orm-sqlite-music/album.controller.ts +278 -0
- package/examples/metal-orm-sqlite-music/album.dtos.ts +85 -0
- package/examples/metal-orm-sqlite-music/album.entity.ts +28 -0
- package/examples/metal-orm-sqlite-music/app.ts +19 -0
- package/examples/metal-orm-sqlite-music/artist.controller.ts +272 -0
- package/examples/metal-orm-sqlite-music/artist.dtos.ts +68 -0
- package/examples/metal-orm-sqlite-music/artist.entity.ts +27 -0
- package/examples/metal-orm-sqlite-music/db.ts +148 -0
- package/examples/metal-orm-sqlite-music/index.ts +6 -0
- package/examples/metal-orm-sqlite-music/track.controller.ts +221 -0
- package/examples/metal-orm-sqlite-music/track.dtos.ts +82 -0
- package/examples/metal-orm-sqlite-music/track.entity.ts +27 -0
- package/examples/openapi/health.controller.ts +11 -0
- package/examples/openapi/health.dto.ts +7 -0
- package/examples/openapi/index.ts +12 -0
- package/examples/restful/app.ts +15 -0
- package/examples/restful/index.ts +9 -0
- package/examples/restful/task.controller.ts +118 -0
- package/examples/restful/task.dtos.ts +66 -0
- package/examples/restful/task.store.ts +95 -0
- package/examples/tsconfig.json +8 -0
- package/examples/utils/start-server.ts +56 -0
- package/package.json +33 -97
- package/scripts/run-example.js +29 -0
- package/src/adapter/express.ts +589 -0
- package/src/adapter/metal-orm/convention-overrides.ts +115 -0
- package/src/adapter/metal-orm/crud-dtos.ts +141 -0
- package/src/adapter/metal-orm/dto.ts +20 -0
- package/src/adapter/metal-orm/error-dtos.ts +51 -0
- package/src/adapter/metal-orm/field-builder.ts +185 -0
- package/src/adapter/metal-orm/filters.ts +52 -0
- package/src/adapter/metal-orm/index.ts +66 -0
- package/src/adapter/metal-orm/paged-dtos.ts +94 -0
- package/src/adapter/metal-orm/pagination.ts +28 -0
- package/src/adapter/metal-orm/types.ts +250 -0
- package/src/adapter/metal-orm/utils.ts +36 -0
- package/src/adapter/metal-orm.test.ts +439 -0
- package/src/core/__tests__/coerce.test.ts +39 -0
- package/src/core/__tests__/dto-compose.test.ts +68 -0
- package/src/core/__tests__/schema-builder.test.ts +82 -0
- package/src/core/coerce.ts +190 -0
- package/src/core/decorators.ts +645 -0
- package/src/core/errors.ts +55 -0
- package/src/core/metadata.ts +110 -0
- package/src/core/openapi.ts +282 -0
- package/src/core/schema-builder.ts +287 -0
- package/src/core/schema.ts +400 -0
- package/src/core/types.ts +14 -0
- package/src/e2e/http-error.e2e.test.ts +52 -0
- package/src/e2e/sqlite-metal-orm.e2e.test.ts +174 -0
- package/src/e2e/sqlite.e2e.test.ts +126 -0
- package/src/index.ts +8 -0
- package/tsconfig.eslint.json +7 -0
- package/tsconfig.json +18 -0
- package/vitest.config.ts +8 -0
- package/dist/adapter/express/auth.d.ts +0 -13
- package/dist/adapter/express/auth.d.ts.map +0 -1
- package/dist/adapter/express/bootstrap.d.ts +0 -40
- package/dist/adapter/express/bootstrap.d.ts.map +0 -1
- package/dist/adapter/express/coercion.d.ts +0 -102
- package/dist/adapter/express/coercion.d.ts.map +0 -1
- package/dist/adapter/express/index.d.ts +0 -6
- package/dist/adapter/express/index.d.ts.map +0 -1
- package/dist/adapter/express/merge.d.ts +0 -45
- package/dist/adapter/express/merge.d.ts.map +0 -1
- package/dist/adapter/express/openapi.d.ts +0 -66
- package/dist/adapter/express/openapi.d.ts.map +0 -1
- package/dist/adapter/express/router.d.ts +0 -10
- package/dist/adapter/express/router.d.ts.map +0 -1
- package/dist/adapter/express/swagger.d.ts +0 -18
- package/dist/adapter/express/swagger.d.ts.map +0 -1
- package/dist/adapter/express/types.d.ts +0 -110
- package/dist/adapter/express/types.d.ts.map +0 -1
- package/dist/adapter/express/validation.d.ts +0 -27
- package/dist/adapter/express/validation.d.ts.map +0 -1
- package/dist/cli/progress.d.ts +0 -122
- package/dist/cli/progress.d.ts.map +0 -1
- package/dist/cli.cjs +0 -4390
- package/dist/cli.cjs.map +0 -1
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -4371
- package/dist/cli.js.map +0 -1
- package/dist/compiler/analyze/index.d.ts +0 -5
- package/dist/compiler/analyze/index.d.ts.map +0 -1
- package/dist/compiler/analyze/scanControllers.d.ts +0 -88
- package/dist/compiler/analyze/scanControllers.d.ts.map +0 -1
- package/dist/compiler/cache/isStale.d.ts +0 -46
- package/dist/compiler/cache/isStale.d.ts.map +0 -1
- package/dist/compiler/cache/loadArtifacts.d.ts +0 -149
- package/dist/compiler/cache/loadArtifacts.d.ts.map +0 -1
- package/dist/compiler/cache/schema.d.ts +0 -32
- package/dist/compiler/cache/schema.d.ts.map +0 -1
- package/dist/compiler/cache/writeCache.d.ts +0 -14
- package/dist/compiler/cache/writeCache.d.ts.map +0 -1
- package/dist/compiler/gems.d.ts +0 -75
- package/dist/compiler/gems.d.ts.map +0 -1
- package/dist/compiler/generator/index.d.ts +0 -7
- package/dist/compiler/generator/index.d.ts.map +0 -1
- package/dist/compiler/generator/manifest.d.ts +0 -23
- package/dist/compiler/generator/manifest.d.ts.map +0 -1
- package/dist/compiler/generator/openapi.d.ts +0 -118
- package/dist/compiler/generator/openapi.d.ts.map +0 -1
- package/dist/compiler/graph/builder.d.ts +0 -24
- package/dist/compiler/graph/builder.d.ts.map +0 -1
- package/dist/compiler/graph/index.d.ts +0 -7
- package/dist/compiler/graph/index.d.ts.map +0 -1
- package/dist/compiler/graph/schemaGraph.d.ts +0 -67
- package/dist/compiler/graph/schemaGraph.d.ts.map +0 -1
- package/dist/compiler/graph/types.d.ts +0 -203
- package/dist/compiler/graph/types.d.ts.map +0 -1
- package/dist/compiler/index.d.ts +0 -12
- package/dist/compiler/index.d.ts.map +0 -1
- package/dist/compiler/ir/index.d.ts +0 -7
- package/dist/compiler/ir/index.d.ts.map +0 -1
- package/dist/compiler/ir/pipeline.d.ts +0 -82
- package/dist/compiler/ir/pipeline.d.ts.map +0 -1
- package/dist/compiler/ir/stages.d.ts +0 -40
- package/dist/compiler/ir/stages.d.ts.map +0 -1
- package/dist/compiler/ir/visitor.d.ts +0 -98
- package/dist/compiler/ir/visitor.d.ts.map +0 -1
- package/dist/compiler/manifest/emit.d.ts +0 -21
- package/dist/compiler/manifest/emit.d.ts.map +0 -1
- package/dist/compiler/manifest/format.d.ts +0 -119
- package/dist/compiler/manifest/format.d.ts.map +0 -1
- package/dist/compiler/manifest/index.d.ts +0 -6
- package/dist/compiler/manifest/index.d.ts.map +0 -1
- package/dist/compiler/runner/createProgram.d.ts +0 -24
- package/dist/compiler/runner/createProgram.d.ts.map +0 -1
- package/dist/compiler/runner/index.d.ts +0 -5
- package/dist/compiler/runner/index.d.ts.map +0 -1
- package/dist/compiler/schema/extractAnnotations.d.ts +0 -57
- package/dist/compiler/schema/extractAnnotations.d.ts.map +0 -1
- package/dist/compiler/schema/index.d.ts +0 -8
- package/dist/compiler/schema/index.d.ts.map +0 -1
- package/dist/compiler/schema/intersectionHandler.d.ts +0 -44
- package/dist/compiler/schema/intersectionHandler.d.ts.map +0 -1
- package/dist/compiler/schema/objectHandler.d.ts +0 -146
- package/dist/compiler/schema/objectHandler.d.ts.map +0 -1
- package/dist/compiler/schema/openapi.d.ts +0 -71
- package/dist/compiler/schema/openapi.d.ts.map +0 -1
- package/dist/compiler/schema/parameters.d.ts +0 -90
- package/dist/compiler/schema/parameters.d.ts.map +0 -1
- package/dist/compiler/schema/partitioner.d.ts +0 -85
- package/dist/compiler/schema/partitioner.d.ts.map +0 -1
- package/dist/compiler/schema/primitives.d.ts +0 -68
- package/dist/compiler/schema/primitives.d.ts.map +0 -1
- package/dist/compiler/schema/queryBuilderAnalyzer.d.ts +0 -76
- package/dist/compiler/schema/queryBuilderAnalyzer.d.ts.map +0 -1
- package/dist/compiler/schema/queryBuilderSchemaBuilder.d.ts +0 -13
- package/dist/compiler/schema/queryBuilderSchemaBuilder.d.ts.map +0 -1
- package/dist/compiler/schema/splitOpenapi.d.ts +0 -46
- package/dist/compiler/schema/splitOpenapi.d.ts.map +0 -1
- package/dist/compiler/schema/typeToJsonSchema.d.ts +0 -26
- package/dist/compiler/schema/typeToJsonSchema.d.ts.map +0 -1
- package/dist/compiler/schema/types.d.ts +0 -70
- package/dist/compiler/schema/types.d.ts.map +0 -1
- package/dist/compiler/schema/unionHandler.d.ts +0 -70
- package/dist/compiler/schema/unionHandler.d.ts.map +0 -1
- package/dist/compiler/transform/dedup.d.ts +0 -35
- package/dist/compiler/transform/dedup.d.ts.map +0 -1
- package/dist/compiler/transform/flatten.d.ts +0 -50
- package/dist/compiler/transform/flatten.d.ts.map +0 -1
- package/dist/compiler/transform/index.d.ts +0 -7
- package/dist/compiler/transform/index.d.ts.map +0 -1
- package/dist/compiler/transform/inline.d.ts +0 -46
- package/dist/compiler/transform/inline.d.ts.map +0 -1
- package/dist/compiler/validation/emitPrecompiledValidators.d.ts +0 -62
- package/dist/compiler/validation/emitPrecompiledValidators.d.ts.map +0 -1
- package/dist/compiler/validation/index.d.ts +0 -5
- package/dist/compiler/validation/index.d.ts.map +0 -1
- package/dist/decorators/Auth.d.ts +0 -22
- package/dist/decorators/Auth.d.ts.map +0 -1
- package/dist/decorators/Controller.d.ts +0 -17
- package/dist/decorators/Controller.d.ts.map +0 -1
- package/dist/decorators/Public.d.ts +0 -15
- package/dist/decorators/Public.d.ts.map +0 -1
- package/dist/decorators/Use.d.ts +0 -23
- package/dist/decorators/Use.d.ts.map +0 -1
- package/dist/decorators/methods.d.ts +0 -26
- package/dist/decorators/methods.d.ts.map +0 -1
- package/dist/express.cjs +0 -1186
- package/dist/express.cjs.map +0 -1
- package/dist/express.d.ts +0 -8
- package/dist/express.d.ts.map +0 -1
- package/dist/express.js +0 -1150
- package/dist/express.js.map +0 -1
- package/dist/http.d.ts +0 -33
- package/dist/http.d.ts.map +0 -1
- package/dist/index.cjs +0 -724
- package/dist/index.cjs.map +0 -1
- package/dist/metal/applyListQuery.d.ts +0 -100
- package/dist/metal/applyListQuery.d.ts.map +0 -1
- package/dist/metal/index.cjs +0 -278
- package/dist/metal/index.cjs.map +0 -1
- package/dist/metal/index.d.ts +0 -15
- package/dist/metal/index.d.ts.map +0 -1
- package/dist/metal/index.js +0 -243
- package/dist/metal/index.js.map +0 -1
- package/dist/metal/listQuery.d.ts +0 -26
- package/dist/metal/listQuery.d.ts.map +0 -1
- package/dist/metal/queryOptions.d.ts +0 -16
- package/dist/metal/queryOptions.d.ts.map +0 -1
- package/dist/metal/readMetalBag.d.ts +0 -69
- package/dist/metal/readMetalBag.d.ts.map +0 -1
- package/dist/metal/registerMetalEntities.d.ts +0 -26
- package/dist/metal/registerMetalEntities.d.ts.map +0 -1
- package/dist/metal/schemaFromEntity.d.ts +0 -41
- package/dist/metal/schemaFromEntity.d.ts.map +0 -1
- package/dist/metal/searchWhere.d.ts +0 -97
- package/dist/metal/searchWhere.d.ts.map +0 -1
- package/dist/metal/symbolMetadata.d.ts +0 -8
- package/dist/metal/symbolMetadata.d.ts.map +0 -1
- package/dist/runtime/auth/runtime.d.ts +0 -183
- package/dist/runtime/auth/runtime.d.ts.map +0 -1
- package/dist/runtime/metadata/bucket.d.ts +0 -2
- package/dist/runtime/metadata/bucket.d.ts.map +0 -1
- package/dist/runtime/metadata/key.d.ts +0 -2
- package/dist/runtime/metadata/key.d.ts.map +0 -1
- package/dist/runtime/metadata/read.d.ts +0 -2
- package/dist/runtime/metadata/read.d.ts.map +0 -1
- package/dist/runtime/metadata/types.d.ts +0 -95
- package/dist/runtime/metadata/types.d.ts.map +0 -1
- package/dist/runtime/polyfill.d.ts +0 -2
- package/dist/runtime/polyfill.d.ts.map +0 -1
- package/dist/runtime/upload.d.ts +0 -44
- package/dist/runtime/upload.d.ts.map +0 -1
- package/dist/runtime/validation/ajv.d.ts +0 -120
- package/dist/runtime/validation/ajv.d.ts.map +0 -1
- package/dist/runtime/validation/index.d.ts +0 -11
- package/dist/runtime/validation/index.d.ts.map +0 -1
- package/dist/schema/decorators.d.ts +0 -37
- package/dist/schema/decorators.d.ts.map +0 -1
- package/dist/schema/index.cjs +0 -214
- package/dist/schema/index.cjs.map +0 -1
- package/dist/schema/index.d.ts +0 -2
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js +0 -163
- package/dist/schema/index.js.map +0 -1
- package/dist/scripts/adorn-example.cjs +0 -404
- package/dist/scripts/adorn-example.cjs.map +0 -1
- package/dist/utils/operationId.d.ts +0 -2
- package/dist/utils/operationId.d.ts.map +0 -1
- package/dist/utils/path.d.ts +0 -2
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/port.d.ts +0 -9
- package/dist/utils/port.d.ts.map +0 -1
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schema graph operations for advanced schema management.
|
|
3
|
-
* Provides graph algorithms for schema optimization and analysis.
|
|
4
|
-
*/
|
|
5
|
-
import type { Graph, NodeId } from "./types.js";
|
|
6
|
-
/**
|
|
7
|
-
* Schema-specific graph with advanced operations
|
|
8
|
-
*/
|
|
9
|
-
export declare class SchemaGraph {
|
|
10
|
-
private graph;
|
|
11
|
-
private adjacency;
|
|
12
|
-
private reverseAdjacency;
|
|
13
|
-
constructor(graph: Graph);
|
|
14
|
-
/**
|
|
15
|
-
* Build adjacency lists for faster traversal
|
|
16
|
-
*/
|
|
17
|
-
private buildAdjacencyLists;
|
|
18
|
-
/**
|
|
19
|
-
* Find all nodes that use a given type
|
|
20
|
-
*/
|
|
21
|
-
findTypeUsages(typeId: NodeId): NodeId[];
|
|
22
|
-
/**
|
|
23
|
-
* Detect cycles in the dependency graph
|
|
24
|
-
*/
|
|
25
|
-
detectCycles(): CycleReport;
|
|
26
|
-
/**
|
|
27
|
-
* Depth-first search for cycle detection
|
|
28
|
-
*/
|
|
29
|
-
private detectCyclesDFS;
|
|
30
|
-
/**
|
|
31
|
-
* Find strongly connected components using Tarjan's algorithm
|
|
32
|
-
*/
|
|
33
|
-
findStronglyConnectedComponents(): NodeId[][];
|
|
34
|
-
/**
|
|
35
|
-
* Topological sort of the graph
|
|
36
|
-
*/
|
|
37
|
-
topologicalSort(): NodeId[];
|
|
38
|
-
/**
|
|
39
|
-
* Find nodes reachable from a given start node
|
|
40
|
-
*/
|
|
41
|
-
findReachable(startNodeId: NodeId): Set<NodeId>;
|
|
42
|
-
/**
|
|
43
|
-
* Find shortest path between two nodes (BFS)
|
|
44
|
-
*/
|
|
45
|
-
findShortestPath(fromId: NodeId, toId: NodeId): NodeId[] | null;
|
|
46
|
-
/**
|
|
47
|
-
* Reconstruct path from previous map
|
|
48
|
-
*/
|
|
49
|
-
private reconstructPath;
|
|
50
|
-
/**
|
|
51
|
-
* Get nodes grouped by their depth from roots
|
|
52
|
-
*/
|
|
53
|
-
getDepthGroups(): Map<number, NodeId[]>;
|
|
54
|
-
/**
|
|
55
|
-
* Get the underlying graph
|
|
56
|
-
*/
|
|
57
|
-
getGraph(): Graph;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Cycle detection report
|
|
61
|
-
*/
|
|
62
|
-
export interface CycleReport {
|
|
63
|
-
hasCycles: boolean;
|
|
64
|
-
cycles: NodeId[][];
|
|
65
|
-
cycleCount: number;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=schemaGraph.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemaGraph.d.ts","sourceRoot":"","sources":["../../../src/compiler/graph/schemaGraph.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAgB,MAAM,YAAY,CAAC;AAG9D;;GAEG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,SAAS,CAAuC;IACxD,OAAO,CAAC,gBAAgB,CAAuC;gBAEnD,KAAK,EAAE,KAAK;IAKxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;OAEG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE;IAaxC;;OAEG;IACH,YAAY,IAAI,WAAW;IAkB3B;;OAEG;IACH,OAAO,CAAC,eAAe;IA0BvB;;OAEG;IACH,+BAA+B,IAAI,MAAM,EAAE,EAAE;IA8C7C;;OAEG;IACH,eAAe,IAAI,MAAM,EAAE;IAwC3B;;OAEG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAuB/C;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI;IA0B/D;;OAEG;IACH,OAAO,CAAC,eAAe;IAiBvB;;OAEG;IACH,cAAc,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAqCvC;;OAEG;IACH,QAAQ,IAAI,KAAK;CAGlB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Graph-Based Intermediate Representation (GBIR) type definitions.
|
|
3
|
-
* Provides the core data structures for the graph-based compiler architecture.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Unique identifier for a node in the graph
|
|
7
|
-
*/
|
|
8
|
-
export type NodeId = string;
|
|
9
|
-
/**
|
|
10
|
-
* All possible node kinds in the compiler graph
|
|
11
|
-
*/
|
|
12
|
-
export type NodeKind = 'TypeDefinition' | 'Controller' | 'Operation' | 'Parameter' | 'SchemaComponent' | 'Validator' | 'Interface' | 'Enum' | 'Union' | 'Intersection';
|
|
13
|
-
/**
|
|
14
|
-
* Relationship types between graph nodes
|
|
15
|
-
*/
|
|
16
|
-
export type EdgeRelation = 'uses' | 'extends' | 'implements' | 'validates' | 'references' | 'dependsOn' | 'generates' | 'annotates' | 'contains';
|
|
17
|
-
/**
|
|
18
|
-
* Edge in the graph with metadata
|
|
19
|
-
*/
|
|
20
|
-
export interface GraphEdge {
|
|
21
|
-
targetId: NodeId;
|
|
22
|
-
relation: EdgeRelation;
|
|
23
|
-
properties?: Record<string, unknown>;
|
|
24
|
-
weight?: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Source location for debugging and error reporting
|
|
28
|
-
*/
|
|
29
|
-
export interface SourceLocation {
|
|
30
|
-
filePath: string;
|
|
31
|
-
line: number;
|
|
32
|
-
column: number;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Node metadata shared across all node types
|
|
36
|
-
*/
|
|
37
|
-
export interface NodeMetadata {
|
|
38
|
-
name: string;
|
|
39
|
-
sourceLocation: SourceLocation;
|
|
40
|
-
tags?: Set<string>;
|
|
41
|
-
annotations?: Map<string, unknown>;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Base interface for all graph nodes
|
|
45
|
-
*/
|
|
46
|
-
export interface GraphNode {
|
|
47
|
-
id: NodeId;
|
|
48
|
-
kind: NodeKind;
|
|
49
|
-
metadata: NodeMetadata;
|
|
50
|
-
edges: GraphEdge[];
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Type definition node (class, interface, type alias)
|
|
54
|
-
*/
|
|
55
|
-
export interface TypeDefinitionNode extends GraphNode {
|
|
56
|
-
kind: 'TypeDefinition';
|
|
57
|
-
typeDef: {
|
|
58
|
-
isGeneric: boolean;
|
|
59
|
-
typeParameters?: string[];
|
|
60
|
-
properties?: Map<string, NodeId>;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Controller node representing a controller class
|
|
65
|
-
*/
|
|
66
|
-
export interface ControllerNode extends GraphNode {
|
|
67
|
-
kind: 'Controller';
|
|
68
|
-
controller: {
|
|
69
|
-
basePath: string;
|
|
70
|
-
consumes?: string[];
|
|
71
|
-
produces?: string[];
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Operation node representing an HTTP endpoint
|
|
76
|
-
*/
|
|
77
|
-
export interface OperationNode extends GraphNode {
|
|
78
|
-
kind: 'Operation';
|
|
79
|
-
operation: {
|
|
80
|
-
httpMethod: string;
|
|
81
|
-
path: string;
|
|
82
|
-
operationId: string;
|
|
83
|
-
returnType: NodeId;
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Parameter node for operation parameters
|
|
88
|
-
*/
|
|
89
|
-
export interface ParameterNode extends GraphNode {
|
|
90
|
-
kind: 'Parameter';
|
|
91
|
-
parameter: {
|
|
92
|
-
index: number;
|
|
93
|
-
location: 'path' | 'query' | 'body' | 'header' | 'cookie';
|
|
94
|
-
type: NodeId;
|
|
95
|
-
isOptional: boolean;
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Schema component node (for OpenAPI/JSON Schema components)
|
|
100
|
-
*/
|
|
101
|
-
export interface SchemaComponentNode extends GraphNode {
|
|
102
|
-
kind: 'SchemaComponent';
|
|
103
|
-
schema: {
|
|
104
|
-
schemaType: 'object' | 'array' | 'primitive' | 'enum' | 'union' | 'intersection';
|
|
105
|
-
definition: unknown;
|
|
106
|
-
isExternal: boolean;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Validator node for runtime validation
|
|
111
|
-
*/
|
|
112
|
-
export interface ValidatorNode extends GraphNode {
|
|
113
|
-
kind: 'Validator';
|
|
114
|
-
validator: {
|
|
115
|
-
schemaRef: NodeId;
|
|
116
|
-
mode: 'ajv-runtime' | 'precompiled';
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Interface definition node
|
|
121
|
-
*/
|
|
122
|
-
export interface InterfaceNode extends GraphNode {
|
|
123
|
-
kind: 'Interface';
|
|
124
|
-
interfaceDef: {
|
|
125
|
-
methods?: Map<string, NodeId>;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Enum definition node
|
|
130
|
-
*/
|
|
131
|
-
export interface EnumNode extends GraphNode {
|
|
132
|
-
kind: 'Enum';
|
|
133
|
-
enumDef: {
|
|
134
|
-
values: string[];
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Union type node
|
|
139
|
-
*/
|
|
140
|
-
export interface UnionNode extends GraphNode {
|
|
141
|
-
kind: 'Union';
|
|
142
|
-
union: {
|
|
143
|
-
types: NodeId[];
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Intersection type node
|
|
148
|
-
*/
|
|
149
|
-
export interface IntersectionNode extends GraphNode {
|
|
150
|
-
kind: 'Intersection';
|
|
151
|
-
intersection: {
|
|
152
|
-
types: NodeId[];
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Union type for all possible graph nodes
|
|
157
|
-
*/
|
|
158
|
-
export type AnyNode = TypeDefinitionNode | ControllerNode | OperationNode | ParameterNode | SchemaComponentNode | ValidatorNode | InterfaceNode | EnumNode | UnionNode | IntersectionNode;
|
|
159
|
-
/**
|
|
160
|
-
* The main graph structure containing nodes and relationships
|
|
161
|
-
*/
|
|
162
|
-
export interface Graph {
|
|
163
|
-
nodes: Map<NodeId, AnyNode>;
|
|
164
|
-
roots: Set<NodeId>;
|
|
165
|
-
version: string;
|
|
166
|
-
metadata: {
|
|
167
|
-
createdAt: string;
|
|
168
|
-
generatedBy: string;
|
|
169
|
-
tsVersion?: string;
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Create a new empty graph
|
|
174
|
-
*/
|
|
175
|
-
export declare function createGraph(tsVersion?: string): Graph;
|
|
176
|
-
/**
|
|
177
|
-
* Generate a unique node ID
|
|
178
|
-
*/
|
|
179
|
-
export declare function generateNodeId(kind: NodeKind, name: string): NodeId;
|
|
180
|
-
/**
|
|
181
|
-
* Add a node to the graph
|
|
182
|
-
*/
|
|
183
|
-
export declare function addNode(graph: Graph, node: AnyNode): void;
|
|
184
|
-
/**
|
|
185
|
-
* Remove a node from the graph
|
|
186
|
-
*/
|
|
187
|
-
export declare function removeNode(graph: Graph, nodeId: NodeId): void;
|
|
188
|
-
/**
|
|
189
|
-
* Add an edge between two nodes
|
|
190
|
-
*/
|
|
191
|
-
export declare function addEdge(graph: Graph, sourceId: NodeId, targetId: NodeId, relation: EdgeRelation, properties?: Record<string, unknown>): void;
|
|
192
|
-
/**
|
|
193
|
-
* Get all nodes of a specific kind
|
|
194
|
-
*/
|
|
195
|
-
export declare function getNodesByKind<T extends AnyNode>(graph: Graph, kind: T['kind']): T[];
|
|
196
|
-
/**
|
|
197
|
-
* Get all edges of a specific relation type
|
|
198
|
-
*/
|
|
199
|
-
export declare function getEdgesByRelation(graph: Graph, relation: EdgeRelation): {
|
|
200
|
-
sourceId: NodeId;
|
|
201
|
-
edge: GraphEdge;
|
|
202
|
-
}[];
|
|
203
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/compiler/graph/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B;;GA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AAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAEzD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAU7D;AAED;;GAEG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,YAAY,EACtB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,IAAI,CAgBN;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,OAAO,EAC9C,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,GACd,CAAC,EAAE,CAGL;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,GACrB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAAE,EAAE,CAYzC"}
|
package/dist/compiler/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compiler exports - GEMS Graph-Based Compiler
|
|
3
|
-
*/
|
|
4
|
-
export * from './gems.js';
|
|
5
|
-
export * from './graph/index.js';
|
|
6
|
-
export * from './ir/index.js';
|
|
7
|
-
export * from './transform/index.js';
|
|
8
|
-
export * from './generator/index.js';
|
|
9
|
-
export * from './runner/createProgram.js';
|
|
10
|
-
export * from './graph/schemaGraph.js';
|
|
11
|
-
export * from './graph/builder.js';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compiler/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/compiler/ir/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IR Pipeline orchestrator for multi-stage graph transformation.
|
|
3
|
-
* Manages compilation stages with dependency resolution.
|
|
4
|
-
*/
|
|
5
|
-
import type { Graph } from "../graph/types.js";
|
|
6
|
-
/**
|
|
7
|
-
* Transformation stage in the IR pipeline
|
|
8
|
-
*/
|
|
9
|
-
export interface IRStage {
|
|
10
|
-
name: string;
|
|
11
|
-
process(graph: Graph): Promise<Graph> | Graph;
|
|
12
|
-
dependencies?: string[];
|
|
13
|
-
description?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Pipeline execution result
|
|
17
|
-
*/
|
|
18
|
-
export interface PipelineResult {
|
|
19
|
-
graph: Graph;
|
|
20
|
-
stagesExecuted: string[];
|
|
21
|
-
duration: number;
|
|
22
|
-
errors: Error[];
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* IR Pipeline for multi-stage compilation
|
|
26
|
-
*/
|
|
27
|
-
export declare class IRPipeline {
|
|
28
|
-
private stages;
|
|
29
|
-
private executionHistory;
|
|
30
|
-
/**
|
|
31
|
-
* Register a transformation stage
|
|
32
|
-
*/
|
|
33
|
-
addStage(stage: IRStage): void;
|
|
34
|
-
/**
|
|
35
|
-
* Remove a stage from the pipeline
|
|
36
|
-
*/
|
|
37
|
-
removeStage(stageName: string): void;
|
|
38
|
-
/**
|
|
39
|
-
* Get a stage by name
|
|
40
|
-
*/
|
|
41
|
-
getStage(stageName: string): IRStage | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Get all registered stages
|
|
44
|
-
*/
|
|
45
|
-
getAllStages(): IRStage[];
|
|
46
|
-
/**
|
|
47
|
-
* Execute the entire pipeline
|
|
48
|
-
*/
|
|
49
|
-
execute(initialGraph: Graph): Promise<PipelineResult>;
|
|
50
|
-
/**
|
|
51
|
-
* Execute only specific stages
|
|
52
|
-
*/
|
|
53
|
-
executeFrom(initialGraph: Graph, fromStage: string): Promise<PipelineResult>;
|
|
54
|
-
/**
|
|
55
|
-
* Execute only up to a specific stage
|
|
56
|
-
*/
|
|
57
|
-
executeTo(initialGraph: Graph, toStage: string): Promise<PipelineResult>;
|
|
58
|
-
/**
|
|
59
|
-
* Resolve execution order based on dependencies
|
|
60
|
-
*/
|
|
61
|
-
private resolveExecutionOrder;
|
|
62
|
-
/**
|
|
63
|
-
* Get execution history
|
|
64
|
-
*/
|
|
65
|
-
getExecutionHistory(): string[];
|
|
66
|
-
/**
|
|
67
|
-
* Clear execution history
|
|
68
|
-
*/
|
|
69
|
-
clearHistory(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Validate pipeline configuration
|
|
72
|
-
*/
|
|
73
|
-
validate(): {
|
|
74
|
-
valid: boolean;
|
|
75
|
-
errors: string[];
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Create a default pipeline with standard stages
|
|
80
|
-
*/
|
|
81
|
-
export declare function createDefaultPipeline(): IRPipeline;
|
|
82
|
-
//# sourceMappingURL=pipeline.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../src/compiler/ir/pipeline.ts"],"names":[],"mappings":"A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;OAEG;IACH,QAAQ,IAAI;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE;CA0BjD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,UAAU,CAOlD"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { IRStage } from "./pipeline.js";
|
|
2
|
-
/**
|
|
3
|
-
* Stage names
|
|
4
|
-
*/
|
|
5
|
-
export declare const STAGE_NAMES: {
|
|
6
|
-
readonly PARSE: "parse";
|
|
7
|
-
readonly TYPE_RESOLVE: "type-resolve";
|
|
8
|
-
readonly NORMALIZE: "normalize";
|
|
9
|
-
readonly OPTIMIZE: "optimize";
|
|
10
|
-
readonly GENERATE: "generate";
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Parse stage - builds graph from AST
|
|
14
|
-
*/
|
|
15
|
-
export declare const parseStage: IRStage;
|
|
16
|
-
/**
|
|
17
|
-
* Type resolution stage - resolves type references
|
|
18
|
-
*/
|
|
19
|
-
export declare const typeResolveStage: IRStage;
|
|
20
|
-
/**
|
|
21
|
-
* Normalization stage - normalizes graph structure
|
|
22
|
-
*/
|
|
23
|
-
export declare const normalizeStage: IRStage;
|
|
24
|
-
/**
|
|
25
|
-
* Optimization stage - applies optimizations
|
|
26
|
-
*/
|
|
27
|
-
export declare const optimizeStage: IRStage;
|
|
28
|
-
/**
|
|
29
|
-
* Generation stage - generates outputs
|
|
30
|
-
*/
|
|
31
|
-
export declare const generateStage: IRStage;
|
|
32
|
-
/**
|
|
33
|
-
* Get all default stages
|
|
34
|
-
*/
|
|
35
|
-
export declare function getAllStages(): IRStage[];
|
|
36
|
-
/**
|
|
37
|
-
* Create custom pipeline with selected stages
|
|
38
|
-
*/
|
|
39
|
-
export declare function createCustomPipeline(stageNames: (typeof STAGE_NAMES)[keyof typeof STAGE_NAMES][]): IRStage[];
|
|
40
|
-
//# sourceMappingURL=stages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../../src/compiler/ir/stages.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,OASxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAS9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAS5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,OAS3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,OAS3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,YAAY,IAAI,OAAO,EAAE,CAQxC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,EAAE,GAC3D,OAAO,EAAE,CAmCX"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Visitor pattern for graph transformations.
|
|
3
|
-
* Provides flexible way to traverse and transform graph nodes.
|
|
4
|
-
*/
|
|
5
|
-
import type { GraphEdge, AnyNode, NodeKind } from "../graph/types.js";
|
|
6
|
-
import type { Graph } from "../graph/types.js";
|
|
7
|
-
/**
|
|
8
|
-
* Visitor context for tracking state during traversal
|
|
9
|
-
*/
|
|
10
|
-
export interface VisitorContext {
|
|
11
|
-
graph: Graph;
|
|
12
|
-
visited: Set<string>;
|
|
13
|
-
skipChildren: boolean;
|
|
14
|
-
replacements: Map<string, AnyNode>;
|
|
15
|
-
metadata: Map<string, unknown>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Create a new visitor context
|
|
19
|
-
*/
|
|
20
|
-
export declare function createVisitorContext(graph: Graph): VisitorContext;
|
|
21
|
-
/**
|
|
22
|
-
* Base visitor interface
|
|
23
|
-
*/
|
|
24
|
-
export interface GraphVisitor {
|
|
25
|
-
visitNode?(node: AnyNode, context: VisitorContext): AnyNode | null | void;
|
|
26
|
-
visitEdge?(edge: GraphEdge, sourceId: string, context: VisitorContext): GraphEdge | null | void;
|
|
27
|
-
beforeTraversal?(context: VisitorContext): void;
|
|
28
|
-
afterTraversal?(context: VisitorContext): void;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Node transformer for specific node kinds
|
|
32
|
-
*/
|
|
33
|
-
export type NodeTransformer = (node: AnyNode, context: VisitorContext) => AnyNode | null | void;
|
|
34
|
-
/**
|
|
35
|
-
* Edge transformer
|
|
36
|
-
*/
|
|
37
|
-
export type EdgeTransformer = (edge: GraphEdge, sourceId: string, context: VisitorContext) => GraphEdge | null | void;
|
|
38
|
-
/**
|
|
39
|
-
* Transforming visitor that applies transformations to nodes and edges
|
|
40
|
-
*/
|
|
41
|
-
export declare class TransformingVisitor implements GraphVisitor {
|
|
42
|
-
private nodeTransformers;
|
|
43
|
-
private edgeTransformer?;
|
|
44
|
-
private beforeCallback?;
|
|
45
|
-
private afterCallback?;
|
|
46
|
-
/**
|
|
47
|
-
* Register a transformer for a specific node kind
|
|
48
|
-
*/
|
|
49
|
-
registerTransformer(kind: NodeKind, transformer: NodeTransformer): void;
|
|
50
|
-
/**
|
|
51
|
-
* Register a transformer for all edges
|
|
52
|
-
*/
|
|
53
|
-
registerEdgeTransformer(transformer: EdgeTransformer): void;
|
|
54
|
-
/**
|
|
55
|
-
* Set callback before traversal
|
|
56
|
-
*/
|
|
57
|
-
onBeforeTraversal(callback: (context: VisitorContext) => void): void;
|
|
58
|
-
/**
|
|
59
|
-
* Set callback after traversal
|
|
60
|
-
*/
|
|
61
|
-
onAfterTraversal(callback: (context: VisitorContext) => void): void;
|
|
62
|
-
visitNode(node: AnyNode, context: VisitorContext): AnyNode | null;
|
|
63
|
-
visitEdge(edge: GraphEdge, sourceId: string, context: VisitorContext): GraphEdge | null;
|
|
64
|
-
beforeTraversal(context: VisitorContext): void;
|
|
65
|
-
afterTraversal(context: VisitorContext): void;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Compose multiple visitors together
|
|
69
|
-
*/
|
|
70
|
-
export declare class CompositeVisitor implements GraphVisitor {
|
|
71
|
-
private visitors;
|
|
72
|
-
constructor(...visitors: GraphVisitor[]);
|
|
73
|
-
addVisitor(visitor: GraphVisitor): void;
|
|
74
|
-
visitNode(node: AnyNode, context: VisitorContext): AnyNode | null;
|
|
75
|
-
visitEdge(edge: GraphEdge, sourceId: string, context: VisitorContext): GraphEdge | null;
|
|
76
|
-
beforeTraversal(context: VisitorContext): void;
|
|
77
|
-
afterTraversal(context: VisitorContext): void;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Traverse the graph with a visitor
|
|
81
|
-
*/
|
|
82
|
-
export declare function traverseGraph(graph: Graph, visitor: GraphVisitor, options?: {
|
|
83
|
-
order?: 'preorder' | 'postorder' | 'levelorder';
|
|
84
|
-
startNodes?: Set<string>;
|
|
85
|
-
}): Graph;
|
|
86
|
-
/**
|
|
87
|
-
* Filter visitor that only visits nodes matching a predicate
|
|
88
|
-
*/
|
|
89
|
-
export declare class FilterVisitor implements GraphVisitor {
|
|
90
|
-
private predicate;
|
|
91
|
-
private innerVisitor;
|
|
92
|
-
constructor(predicate: (node: AnyNode) => boolean, innerVisitor: GraphVisitor);
|
|
93
|
-
visitNode(node: AnyNode, context: VisitorContext): AnyNode | null;
|
|
94
|
-
visitEdge(edge: GraphEdge, sourceId: string, context: VisitorContext): GraphEdge | null;
|
|
95
|
-
beforeTraversal(context: VisitorContext): void;
|
|
96
|
-
afterTraversal(context: VisitorContext): void;
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=visitor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visitor.d.ts","sourceRoot":"","sources":["../../../src/comp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G,IAAI;IAM9C,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;CAK9C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAAY,EACrB,OAAO,CAAC,EAAE;IACR,KAAK,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,YAAY,CAAC;IAChD,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC1B,GACA,KAAK,CAwBP;AA6HD;;GAEG;AACH,qBAAa,aAAc,YAAW,YAAY;IAChD,OAAO,CAAC,SAAS,CAA6B;IAC9C,OAAO,CAAC,YAAY,CAAe;gBAEvB,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,EAAE,YAAY,EAAE,YAAY;IAK7E,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,GAAG,IAAI;IAOjE,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI;IAQvF,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAI9C,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;CAG9C"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Manifest generation module.
|
|
3
|
-
* Creates the manifest file describing the compiled API structure.
|
|
4
|
-
*/
|
|
5
|
-
import type { ScannedController } from "../analyze/scanControllers.js";
|
|
6
|
-
import type { ManifestV1 } from "./format.js";
|
|
7
|
-
import ts from "typescript";
|
|
8
|
-
type ValidationMode = "none" | "ajv-runtime" | "precompiled";
|
|
9
|
-
/**
|
|
10
|
-
* Generates the manifest file content from scanned controllers.
|
|
11
|
-
* The manifest describes the complete API structure including all controllers, operations, and their parameters.
|
|
12
|
-
*
|
|
13
|
-
* @param controllers - Array of scanned controllers to include in the manifest
|
|
14
|
-
* @param checker - TypeScript type checker for analyzing types
|
|
15
|
-
* @param version - Version of the adorn-api package
|
|
16
|
-
* @param validationMode - Validation mode to specify in the manifest (default: "ajv-runtime")
|
|
17
|
-
* @returns The generated manifest object
|
|
18
|
-
*/
|
|
19
|
-
export declare function generateManifest(controllers: ScannedController[], checker: ts.TypeChecker, version: string, validationMode?: ValidationMode): ManifestV1;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=emit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emit.d.ts","sourceRoot":"","sources":["../../../src/compiler/manifest/emit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAoB,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,UAAU,EAAyD,MAAM,aAAa,CAAC;AAGrG,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,KAAK,cAAc,GAAG,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;AAE7D;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,iBAAiB,EAAE,EAChC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,OAAO,EAAE,MAAM,EACf,cAAc,GAAE,cAA8B,GAC7C,UAAU,CAuCZ"}
|