@angriff36/manifest 2.18.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/LICENSE +21 -0
- package/README.md +476 -0
- package/dist/manifest/agent-sdk/agent-runtime.d.ts +30 -0
- package/dist/manifest/agent-sdk/agent-runtime.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/agent-runtime.js +232 -0
- package/dist/manifest/agent-sdk/agent-runtime.js.map +1 -0
- package/dist/manifest/agent-sdk/index.d.ts +17 -0
- package/dist/manifest/agent-sdk/index.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/index.js +21 -0
- package/dist/manifest/agent-sdk/index.js.map +1 -0
- package/dist/manifest/agent-sdk/intent-mapper.d.ts +17 -0
- package/dist/manifest/agent-sdk/intent-mapper.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/intent-mapper.js +115 -0
- package/dist/manifest/agent-sdk/intent-mapper.js.map +1 -0
- package/dist/manifest/agent-sdk/introspect.d.ts +42 -0
- package/dist/manifest/agent-sdk/introspect.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/introspect.js +284 -0
- package/dist/manifest/agent-sdk/introspect.js.map +1 -0
- package/dist/manifest/agent-sdk/json-schema.d.ts +29 -0
- package/dist/manifest/agent-sdk/json-schema.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/json-schema.js +132 -0
- package/dist/manifest/agent-sdk/json-schema.js.map +1 -0
- package/dist/manifest/agent-sdk/tool-definitions.d.ts +41 -0
- package/dist/manifest/agent-sdk/tool-definitions.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/tool-definitions.js +288 -0
- package/dist/manifest/agent-sdk/tool-definitions.js.map +1 -0
- package/dist/manifest/agent-sdk/types.d.ts +293 -0
- package/dist/manifest/agent-sdk/types.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/types.js +6 -0
- package/dist/manifest/agent-sdk/types.js.map +1 -0
- package/dist/manifest/api-diagnostics.d.ts +41 -0
- package/dist/manifest/api-diagnostics.d.ts.map +1 -0
- package/dist/manifest/api-diagnostics.js +105 -0
- package/dist/manifest/api-diagnostics.js.map +1 -0
- package/dist/manifest/approval/approval-store.d.ts +52 -0
- package/dist/manifest/approval/approval-store.d.ts.map +1 -0
- package/dist/manifest/approval/approval-store.js +25 -0
- package/dist/manifest/approval/approval-store.js.map +1 -0
- package/dist/manifest/approval/stores/memory.d.ts +33 -0
- package/dist/manifest/approval/stores/memory.d.ts.map +1 -0
- package/dist/manifest/approval/stores/memory.js +56 -0
- package/dist/manifest/approval/stores/memory.js.map +1 -0
- package/dist/manifest/approval/stores/postgres.d.ts +41 -0
- package/dist/manifest/approval/stores/postgres.d.ts.map +1 -0
- package/dist/manifest/approval/stores/postgres.js +124 -0
- package/dist/manifest/approval/stores/postgres.js.map +1 -0
- package/dist/manifest/audit/audit-sink.d.ts +53 -0
- package/dist/manifest/audit/audit-sink.d.ts.map +1 -0
- package/dist/manifest/audit/audit-sink.js +15 -0
- package/dist/manifest/audit/audit-sink.js.map +1 -0
- package/dist/manifest/audit/sinks/memory.d.ts +50 -0
- package/dist/manifest/audit/sinks/memory.d.ts.map +1 -0
- package/dist/manifest/audit/sinks/memory.js +66 -0
- package/dist/manifest/audit/sinks/memory.js.map +1 -0
- package/dist/manifest/audit/sinks/postgres.d.ts +31 -0
- package/dist/manifest/audit/sinks/postgres.d.ts.map +1 -0
- package/dist/manifest/audit/sinks/postgres.js +67 -0
- package/dist/manifest/audit/sinks/postgres.js.map +1 -0
- package/dist/manifest/binary-ir.d.ts +76 -0
- package/dist/manifest/binary-ir.d.ts.map +1 -0
- package/dist/manifest/binary-ir.js +124 -0
- package/dist/manifest/binary-ir.js.map +1 -0
- package/dist/manifest/breaking-change.d.ts +75 -0
- package/dist/manifest/breaking-change.d.ts.map +1 -0
- package/dist/manifest/breaking-change.js +704 -0
- package/dist/manifest/breaking-change.js.map +1 -0
- package/dist/manifest/compiler.d.ts +12 -0
- package/dist/manifest/compiler.d.ts.map +1 -0
- package/dist/manifest/compiler.js +23 -0
- package/dist/manifest/compiler.js.map +1 -0
- package/dist/manifest/config.d.ts +171 -0
- package/dist/manifest/config.d.ts.map +1 -0
- package/dist/manifest/config.js +65 -0
- package/dist/manifest/config.js.map +1 -0
- package/dist/manifest/constraint-analysis.d.ts +122 -0
- package/dist/manifest/constraint-analysis.d.ts.map +1 -0
- package/dist/manifest/constraint-analysis.js +340 -0
- package/dist/manifest/constraint-analysis.js.map +1 -0
- package/dist/manifest/date-time.d.ts +13 -0
- package/dist/manifest/date-time.d.ts.map +1 -0
- package/dist/manifest/date-time.js +60 -0
- package/dist/manifest/date-time.js.map +1 -0
- package/dist/manifest/debug/command-trace.d.ts +37 -0
- package/dist/manifest/debug/command-trace.d.ts.map +1 -0
- package/dist/manifest/debug/command-trace.js +51 -0
- package/dist/manifest/debug/command-trace.js.map +1 -0
- package/dist/manifest/debug/index.d.ts +3 -0
- package/dist/manifest/debug/index.d.ts.map +1 -0
- package/dist/manifest/debug/index.js +2 -0
- package/dist/manifest/debug/index.js.map +1 -0
- package/dist/manifest/domain-completeness.d.ts +13 -0
- package/dist/manifest/domain-completeness.d.ts.map +1 -0
- package/dist/manifest/domain-completeness.js +245 -0
- package/dist/manifest/domain-completeness.js.map +1 -0
- package/dist/manifest/entity-composition.d.ts +24 -0
- package/dist/manifest/entity-composition.d.ts.map +1 -0
- package/dist/manifest/entity-composition.js +157 -0
- package/dist/manifest/entity-composition.js.map +1 -0
- package/dist/manifest/examples.d.ts +6 -0
- package/dist/manifest/examples.d.ts.map +1 -0
- package/dist/manifest/examples.js +443 -0
- package/dist/manifest/examples.js.map +1 -0
- package/dist/manifest/federation/client.d.ts +52 -0
- package/dist/manifest/federation/client.d.ts.map +1 -0
- package/dist/manifest/federation/client.js +152 -0
- package/dist/manifest/federation/client.js.map +1 -0
- package/dist/manifest/federation/descriptor.d.ts +25 -0
- package/dist/manifest/federation/descriptor.d.ts.map +1 -0
- package/dist/manifest/federation/descriptor.js +97 -0
- package/dist/manifest/federation/descriptor.js.map +1 -0
- package/dist/manifest/federation/http-adapter.d.ts +26 -0
- package/dist/manifest/federation/http-adapter.d.ts.map +1 -0
- package/dist/manifest/federation/http-adapter.js +209 -0
- package/dist/manifest/federation/http-adapter.js.map +1 -0
- package/dist/manifest/federation/index.d.ts +51 -0
- package/dist/manifest/federation/index.d.ts.map +1 -0
- package/dist/manifest/federation/index.js +49 -0
- package/dist/manifest/federation/index.js.map +1 -0
- package/dist/manifest/federation/policy-bridge.d.ts +51 -0
- package/dist/manifest/federation/policy-bridge.d.ts.map +1 -0
- package/dist/manifest/federation/policy-bridge.js +122 -0
- package/dist/manifest/federation/policy-bridge.js.map +1 -0
- package/dist/manifest/federation/registry.d.ts +88 -0
- package/dist/manifest/federation/registry.d.ts.map +1 -0
- package/dist/manifest/federation/registry.js +165 -0
- package/dist/manifest/federation/registry.js.map +1 -0
- package/dist/manifest/federation/types.d.ts +209 -0
- package/dist/manifest/federation/types.d.ts.map +1 -0
- package/dist/manifest/federation/types.js +13 -0
- package/dist/manifest/federation/types.js.map +1 -0
- package/dist/manifest/generator.d.ts +44 -0
- package/dist/manifest/generator.d.ts.map +1 -0
- package/dist/manifest/generator.js +899 -0
- package/dist/manifest/generator.js.map +1 -0
- package/dist/manifest/ir-cache.d.ts +48 -0
- package/dist/manifest/ir-cache.d.ts.map +1 -0
- package/dist/manifest/ir-cache.js +91 -0
- package/dist/manifest/ir-cache.js.map +1 -0
- package/dist/manifest/ir-compiler.d.ts +135 -0
- package/dist/manifest/ir-compiler.d.ts.map +1 -0
- package/dist/manifest/ir-compiler.js +1477 -0
- package/dist/manifest/ir-compiler.js.map +1 -0
- package/dist/manifest/ir-diff.d.ts +266 -0
- package/dist/manifest/ir-diff.d.ts.map +1 -0
- package/dist/manifest/ir-diff.js +731 -0
- package/dist/manifest/ir-diff.js.map +1 -0
- package/dist/manifest/ir-version-store.d.ts +109 -0
- package/dist/manifest/ir-version-store.d.ts.map +1 -0
- package/dist/manifest/ir-version-store.js +162 -0
- package/dist/manifest/ir-version-store.js.map +1 -0
- package/dist/manifest/ir.d.ts +616 -0
- package/dist/manifest/ir.d.ts.map +1 -0
- package/dist/manifest/ir.js +2 -0
- package/dist/manifest/ir.js.map +1 -0
- package/dist/manifest/lexer.d.ts +37 -0
- package/dist/manifest/lexer.d.ts.map +1 -0
- package/dist/manifest/lexer.js +224 -0
- package/dist/manifest/lexer.js.map +1 -0
- package/dist/manifest/masking.d.ts +11 -0
- package/dist/manifest/masking.d.ts.map +1 -0
- package/dist/manifest/masking.js +34 -0
- package/dist/manifest/masking.js.map +1 -0
- package/dist/manifest/module-resolver.d.ts +42 -0
- package/dist/manifest/module-resolver.d.ts.map +1 -0
- package/dist/manifest/module-resolver.js +162 -0
- package/dist/manifest/module-resolver.js.map +1 -0
- package/dist/manifest/multi-compiler.d.ts +40 -0
- package/dist/manifest/multi-compiler.d.ts.map +1 -0
- package/dist/manifest/multi-compiler.js +324 -0
- package/dist/manifest/multi-compiler.js.map +1 -0
- package/dist/manifest/outbox/outbox-store.d.ts +56 -0
- package/dist/manifest/outbox/outbox-store.d.ts.map +1 -0
- package/dist/manifest/outbox/outbox-store.js +13 -0
- package/dist/manifest/outbox/outbox-store.js.map +1 -0
- package/dist/manifest/outbox/stores/dynamodb.d.ts +100 -0
- package/dist/manifest/outbox/stores/dynamodb.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/dynamodb.js +239 -0
- package/dist/manifest/outbox/stores/dynamodb.js.map +1 -0
- package/dist/manifest/outbox/stores/memory.d.ts +54 -0
- package/dist/manifest/outbox/stores/memory.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/memory.js +131 -0
- package/dist/manifest/outbox/stores/memory.js.map +1 -0
- package/dist/manifest/outbox/stores/mongodb.d.ts +58 -0
- package/dist/manifest/outbox/stores/mongodb.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/mongodb.js +151 -0
- package/dist/manifest/outbox/stores/mongodb.js.map +1 -0
- package/dist/manifest/outbox/stores/postgres.d.ts +81 -0
- package/dist/manifest/outbox/stores/postgres.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/postgres.js +182 -0
- package/dist/manifest/outbox/stores/postgres.js.map +1 -0
- package/dist/manifest/outbox/stores/redis.d.ts +95 -0
- package/dist/manifest/outbox/stores/redis.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/redis.js +248 -0
- package/dist/manifest/outbox/stores/redis.js.map +1 -0
- package/dist/manifest/parser.d.ts +148 -0
- package/dist/manifest/parser.d.ts.map +1 -0
- package/dist/manifest/parser.js +2243 -0
- package/dist/manifest/parser.js.map +1 -0
- package/dist/manifest/plugin-api.d.ts +202 -0
- package/dist/manifest/plugin-api.d.ts.map +1 -0
- package/dist/manifest/plugin-api.js +101 -0
- package/dist/manifest/plugin-api.js.map +1 -0
- package/dist/manifest/plugin-loader.d.ts +101 -0
- package/dist/manifest/plugin-loader.d.ts.map +1 -0
- package/dist/manifest/plugin-loader.js +332 -0
- package/dist/manifest/plugin-loader.js.map +1 -0
- package/dist/manifest/profiling.d.ts +183 -0
- package/dist/manifest/profiling.d.ts.map +1 -0
- package/dist/manifest/profiling.js +186 -0
- package/dist/manifest/profiling.js.map +1 -0
- package/dist/manifest/projections/analytics/generator.d.ts +27 -0
- package/dist/manifest/projections/analytics/generator.d.ts.map +1 -0
- package/dist/manifest/projections/analytics/generator.js +686 -0
- package/dist/manifest/projections/analytics/generator.js.map +1 -0
- package/dist/manifest/projections/analytics/types.d.ts +46 -0
- package/dist/manifest/projections/analytics/types.d.ts.map +1 -0
- package/dist/manifest/projections/analytics/types.js +8 -0
- package/dist/manifest/projections/analytics/types.js.map +1 -0
- package/dist/manifest/projections/builtins.d.ts +29 -0
- package/dist/manifest/projections/builtins.d.ts.map +1 -0
- package/dist/manifest/projections/builtins.js +143 -0
- package/dist/manifest/projections/builtins.js.map +1 -0
- package/dist/manifest/projections/convex/expression.d.ts +52 -0
- package/dist/manifest/projections/convex/expression.d.ts.map +1 -0
- package/dist/manifest/projections/convex/expression.js +166 -0
- package/dist/manifest/projections/convex/expression.js.map +1 -0
- package/dist/manifest/projections/convex/functions.d.ts +22 -0
- package/dist/manifest/projections/convex/functions.d.ts.map +1 -0
- package/dist/manifest/projections/convex/functions.js +786 -0
- package/dist/manifest/projections/convex/functions.js.map +1 -0
- package/dist/manifest/projections/convex/generator.d.ts +79 -0
- package/dist/manifest/projections/convex/generator.d.ts.map +1 -0
- package/dist/manifest/projections/convex/generator.js +406 -0
- package/dist/manifest/projections/convex/generator.js.map +1 -0
- package/dist/manifest/projections/convex/index.d.ts +10 -0
- package/dist/manifest/projections/convex/index.d.ts.map +1 -0
- package/dist/manifest/projections/convex/index.js +10 -0
- package/dist/manifest/projections/convex/index.js.map +1 -0
- package/dist/manifest/projections/convex/options.d.ts +153 -0
- package/dist/manifest/projections/convex/options.d.ts.map +1 -0
- package/dist/manifest/projections/convex/options.js +60 -0
- package/dist/manifest/projections/convex/options.js.map +1 -0
- package/dist/manifest/projections/convex/orchestration.d.ts +23 -0
- package/dist/manifest/projections/convex/orchestration.d.ts.map +1 -0
- package/dist/manifest/projections/convex/orchestration.js +150 -0
- package/dist/manifest/projections/convex/orchestration.js.map +1 -0
- package/dist/manifest/projections/convex/type-mapping.d.ts +40 -0
- package/dist/manifest/projections/convex/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/convex/type-mapping.js +71 -0
- package/dist/manifest/projections/convex/type-mapping.js.map +1 -0
- package/dist/manifest/projections/dart/generator.d.ts +33 -0
- package/dist/manifest/projections/dart/generator.d.ts.map +1 -0
- package/dist/manifest/projections/dart/generator.js +981 -0
- package/dist/manifest/projections/dart/generator.js.map +1 -0
- package/dist/manifest/projections/dart/types.d.ts +29 -0
- package/dist/manifest/projections/dart/types.d.ts.map +1 -0
- package/dist/manifest/projections/dart/types.js +5 -0
- package/dist/manifest/projections/dart/types.js.map +1 -0
- package/dist/manifest/projections/drizzle/generator.d.ts +27 -0
- package/dist/manifest/projections/drizzle/generator.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/generator.js +654 -0
- package/dist/manifest/projections/drizzle/generator.js.map +1 -0
- package/dist/manifest/projections/drizzle/index.d.ts +12 -0
- package/dist/manifest/projections/drizzle/index.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/index.js +12 -0
- package/dist/manifest/projections/drizzle/index.js.map +1 -0
- package/dist/manifest/projections/drizzle/options.d.ts +94 -0
- package/dist/manifest/projections/drizzle/options.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/options.js +31 -0
- package/dist/manifest/projections/drizzle/options.js.map +1 -0
- package/dist/manifest/projections/drizzle/type-mapping.d.ts +74 -0
- package/dist/manifest/projections/drizzle/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/type-mapping.js +101 -0
- package/dist/manifest/projections/drizzle/type-mapping.js.map +1 -0
- package/dist/manifest/projections/dynamodb/generator.d.ts +48 -0
- package/dist/manifest/projections/dynamodb/generator.d.ts.map +1 -0
- package/dist/manifest/projections/dynamodb/generator.js +341 -0
- package/dist/manifest/projections/dynamodb/generator.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/generator.d.ts +44 -0
- package/dist/manifest/projections/elasticsearch/generator.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/generator.js +613 -0
- package/dist/manifest/projections/elasticsearch/generator.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/options.d.ts +56 -0
- package/dist/manifest/projections/elasticsearch/options.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/options.js +37 -0
- package/dist/manifest/projections/elasticsearch/options.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.d.ts +30 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.js +34 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/types.d.ts +81 -0
- package/dist/manifest/projections/elasticsearch/types.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/types.js +10 -0
- package/dist/manifest/projections/elasticsearch/types.js.map +1 -0
- package/dist/manifest/projections/express/generator.d.ts +38 -0
- package/dist/manifest/projections/express/generator.d.ts.map +1 -0
- package/dist/manifest/projections/express/generator.js +620 -0
- package/dist/manifest/projections/express/generator.js.map +1 -0
- package/dist/manifest/projections/express/index.d.ts +8 -0
- package/dist/manifest/projections/express/index.d.ts.map +1 -0
- package/dist/manifest/projections/express/index.js +7 -0
- package/dist/manifest/projections/express/index.js.map +1 -0
- package/dist/manifest/projections/express/types.d.ts +92 -0
- package/dist/manifest/projections/express/types.d.ts.map +1 -0
- package/dist/manifest/projections/express/types.js +9 -0
- package/dist/manifest/projections/express/types.js.map +1 -0
- package/dist/manifest/projections/graphql/generator.d.ts +43 -0
- package/dist/manifest/projections/graphql/generator.d.ts.map +1 -0
- package/dist/manifest/projections/graphql/generator.js +662 -0
- package/dist/manifest/projections/graphql/generator.js.map +1 -0
- package/dist/manifest/projections/graphql/index.d.ts +11 -0
- package/dist/manifest/projections/graphql/index.d.ts.map +1 -0
- package/dist/manifest/projections/graphql/index.js +10 -0
- package/dist/manifest/projections/graphql/index.js.map +1 -0
- package/dist/manifest/projections/graphql/types.d.ts +69 -0
- package/dist/manifest/projections/graphql/types.d.ts.map +1 -0
- package/dist/manifest/projections/graphql/types.js +9 -0
- package/dist/manifest/projections/graphql/types.js.map +1 -0
- package/dist/manifest/projections/health/generator.d.ts +36 -0
- package/dist/manifest/projections/health/generator.d.ts.map +1 -0
- package/dist/manifest/projections/health/generator.js +355 -0
- package/dist/manifest/projections/health/generator.js.map +1 -0
- package/dist/manifest/projections/health/types.d.ts +67 -0
- package/dist/manifest/projections/health/types.d.ts.map +1 -0
- package/dist/manifest/projections/health/types.js +28 -0
- package/dist/manifest/projections/health/types.js.map +1 -0
- package/dist/manifest/projections/hono/generator.d.ts +36 -0
- package/dist/manifest/projections/hono/generator.d.ts.map +1 -0
- package/dist/manifest/projections/hono/generator.js +578 -0
- package/dist/manifest/projections/hono/generator.js.map +1 -0
- package/dist/manifest/projections/hono/types.d.ts +86 -0
- package/dist/manifest/projections/hono/types.d.ts.map +1 -0
- package/dist/manifest/projections/hono/types.js +10 -0
- package/dist/manifest/projections/hono/types.js.map +1 -0
- package/dist/manifest/projections/index.d.ts +58 -0
- package/dist/manifest/projections/index.d.ts.map +1 -0
- package/dist/manifest/projections/index.js +41 -0
- package/dist/manifest/projections/index.js.map +1 -0
- package/dist/manifest/projections/interface.d.ts +285 -0
- package/dist/manifest/projections/interface.d.ts.map +1 -0
- package/dist/manifest/projections/interface.js +8 -0
- package/dist/manifest/projections/interface.js.map +1 -0
- package/dist/manifest/projections/jsonschema/generator.d.ts +35 -0
- package/dist/manifest/projections/jsonschema/generator.d.ts.map +1 -0
- package/dist/manifest/projections/jsonschema/generator.js +347 -0
- package/dist/manifest/projections/jsonschema/generator.js.map +1 -0
- package/dist/manifest/projections/jsonschema/index.d.ts +3 -0
- package/dist/manifest/projections/jsonschema/index.d.ts.map +1 -0
- package/dist/manifest/projections/jsonschema/index.js +2 -0
- package/dist/manifest/projections/jsonschema/index.js.map +1 -0
- package/dist/manifest/projections/jsonschema/types.d.ts +31 -0
- package/dist/manifest/projections/jsonschema/types.d.ts.map +1 -0
- package/dist/manifest/projections/jsonschema/types.js +2 -0
- package/dist/manifest/projections/jsonschema/types.js.map +1 -0
- package/dist/manifest/projections/kysely/generator.d.ts +36 -0
- package/dist/manifest/projections/kysely/generator.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/generator.js +325 -0
- package/dist/manifest/projections/kysely/generator.js.map +1 -0
- package/dist/manifest/projections/kysely/index.d.ts +4 -0
- package/dist/manifest/projections/kysely/index.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/index.js +2 -0
- package/dist/manifest/projections/kysely/index.js.map +1 -0
- package/dist/manifest/projections/kysely/options.d.ts +61 -0
- package/dist/manifest/projections/kysely/options.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/options.js +31 -0
- package/dist/manifest/projections/kysely/options.js.map +1 -0
- package/dist/manifest/projections/kysely/type-mapping.d.ts +61 -0
- package/dist/manifest/projections/kysely/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/type-mapping.js +84 -0
- package/dist/manifest/projections/kysely/type-mapping.js.map +1 -0
- package/dist/manifest/projections/llm-context/generator.d.ts +24 -0
- package/dist/manifest/projections/llm-context/generator.d.ts.map +1 -0
- package/dist/manifest/projections/llm-context/generator.js +371 -0
- package/dist/manifest/projections/llm-context/generator.js.map +1 -0
- package/dist/manifest/projections/llm-context/types.d.ts +205 -0
- package/dist/manifest/projections/llm-context/types.d.ts.map +1 -0
- package/dist/manifest/projections/llm-context/types.js +9 -0
- package/dist/manifest/projections/llm-context/types.js.map +1 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.d.ts +29 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.js +211 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.js.map +1 -0
- package/dist/manifest/projections/materialized-views/generator.d.ts +29 -0
- package/dist/manifest/projections/materialized-views/generator.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/generator.js +263 -0
- package/dist/manifest/projections/materialized-views/generator.js.map +1 -0
- package/dist/manifest/projections/materialized-views/options.d.ts +59 -0
- package/dist/manifest/projections/materialized-views/options.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/options.js +34 -0
- package/dist/manifest/projections/materialized-views/options.js.map +1 -0
- package/dist/manifest/projections/materialized-views/types.d.ts +100 -0
- package/dist/manifest/projections/materialized-views/types.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/types.js +11 -0
- package/dist/manifest/projections/materialized-views/types.js.map +1 -0
- package/dist/manifest/projections/mermaid/generator.d.ts +46 -0
- package/dist/manifest/projections/mermaid/generator.d.ts.map +1 -0
- package/dist/manifest/projections/mermaid/generator.js +436 -0
- package/dist/manifest/projections/mermaid/generator.js.map +1 -0
- package/dist/manifest/projections/mongoose/options.d.ts +30 -0
- package/dist/manifest/projections/mongoose/options.d.ts.map +1 -0
- package/dist/manifest/projections/mongoose/options.js +18 -0
- package/dist/manifest/projections/mongoose/options.js.map +1 -0
- package/dist/manifest/projections/mongoose/type-mapping.d.ts +42 -0
- package/dist/manifest/projections/mongoose/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/mongoose/type-mapping.js +64 -0
- package/dist/manifest/projections/mongoose/type-mapping.js.map +1 -0
- package/dist/manifest/projections/nextjs/defaults.d.ts +161 -0
- package/dist/manifest/projections/nextjs/defaults.d.ts.map +1 -0
- package/dist/manifest/projections/nextjs/defaults.js +157 -0
- package/dist/manifest/projections/nextjs/defaults.js.map +1 -0
- package/dist/manifest/projections/nextjs/generator.d.ts +78 -0
- package/dist/manifest/projections/nextjs/generator.d.ts.map +1 -0
- package/dist/manifest/projections/nextjs/generator.js +1339 -0
- package/dist/manifest/projections/nextjs/generator.js.map +1 -0
- package/dist/manifest/projections/nextjs/schedule-generator.d.ts +10 -0
- package/dist/manifest/projections/nextjs/schedule-generator.d.ts.map +1 -0
- package/dist/manifest/projections/nextjs/schedule-generator.js +54 -0
- package/dist/manifest/projections/nextjs/schedule-generator.js.map +1 -0
- package/dist/manifest/projections/openapi/generator.d.ts +37 -0
- package/dist/manifest/projections/openapi/generator.d.ts.map +1 -0
- package/dist/manifest/projections/openapi/generator.js +690 -0
- package/dist/manifest/projections/openapi/generator.js.map +1 -0
- package/dist/manifest/projections/openapi/index.d.ts +11 -0
- package/dist/manifest/projections/openapi/index.d.ts.map +1 -0
- package/dist/manifest/projections/openapi/index.js +10 -0
- package/dist/manifest/projections/openapi/index.js.map +1 -0
- package/dist/manifest/projections/openapi/types.d.ts +75 -0
- package/dist/manifest/projections/openapi/types.d.ts.map +1 -0
- package/dist/manifest/projections/openapi/types.js +9 -0
- package/dist/manifest/projections/openapi/types.js.map +1 -0
- package/dist/manifest/projections/prisma/generator.d.ts +32 -0
- package/dist/manifest/projections/prisma/generator.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/generator.js +861 -0
- package/dist/manifest/projections/prisma/generator.js.map +1 -0
- package/dist/manifest/projections/prisma/index.d.ts +12 -0
- package/dist/manifest/projections/prisma/index.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/index.js +12 -0
- package/dist/manifest/projections/prisma/index.js.map +1 -0
- package/dist/manifest/projections/prisma/options.d.ts +243 -0
- package/dist/manifest/projections/prisma/options.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/options.js +59 -0
- package/dist/manifest/projections/prisma/options.js.map +1 -0
- package/dist/manifest/projections/prisma/type-mapping.d.ts +60 -0
- package/dist/manifest/projections/prisma/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/type-mapping.js +95 -0
- package/dist/manifest/projections/prisma/type-mapping.js.map +1 -0
- package/dist/manifest/projections/prisma-store/generator.d.ts +12 -0
- package/dist/manifest/projections/prisma-store/generator.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/generator.js +52 -0
- package/dist/manifest/projections/prisma-store/generator.js.map +1 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.d.ts +11 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.js +183 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.js.map +1 -0
- package/dist/manifest/projections/prisma-store/options.d.ts +31 -0
- package/dist/manifest/projections/prisma-store/options.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/options.js +21 -0
- package/dist/manifest/projections/prisma-store/options.js.map +1 -0
- package/dist/manifest/projections/prisma-store/persistence.d.ts +4 -0
- package/dist/manifest/projections/prisma-store/persistence.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/persistence.js +24 -0
- package/dist/manifest/projections/prisma-store/persistence.js.map +1 -0
- package/dist/manifest/projections/pydantic/generator.d.ts +27 -0
- package/dist/manifest/projections/pydantic/generator.d.ts.map +1 -0
- package/dist/manifest/projections/pydantic/generator.js +798 -0
- package/dist/manifest/projections/pydantic/generator.js.map +1 -0
- package/dist/manifest/projections/pydantic/types.d.ts +32 -0
- package/dist/manifest/projections/pydantic/types.d.ts.map +1 -0
- package/dist/manifest/projections/pydantic/types.js +5 -0
- package/dist/manifest/projections/pydantic/types.js.map +1 -0
- package/dist/manifest/projections/react-query/generator.d.ts +87 -0
- package/dist/manifest/projections/react-query/generator.d.ts.map +1 -0
- package/dist/manifest/projections/react-query/generator.js +413 -0
- package/dist/manifest/projections/react-query/generator.js.map +1 -0
- package/dist/manifest/projections/registry.d.ts +59 -0
- package/dist/manifest/projections/registry.d.ts.map +1 -0
- package/dist/manifest/projections/registry.js +110 -0
- package/dist/manifest/projections/registry.js.map +1 -0
- package/dist/manifest/projections/remix/generator.d.ts +58 -0
- package/dist/manifest/projections/remix/generator.d.ts.map +1 -0
- package/dist/manifest/projections/remix/generator.js +788 -0
- package/dist/manifest/projections/remix/generator.js.map +1 -0
- package/dist/manifest/projections/routes/generator.d.ts +32 -0
- package/dist/manifest/projections/routes/generator.d.ts.map +1 -0
- package/dist/manifest/projections/routes/generator.js +401 -0
- package/dist/manifest/projections/routes/generator.js.map +1 -0
- package/dist/manifest/projections/routes/types.d.ts +104 -0
- package/dist/manifest/projections/routes/types.d.ts.map +1 -0
- package/dist/manifest/projections/routes/types.js +11 -0
- package/dist/manifest/projections/routes/types.js.map +1 -0
- package/dist/manifest/projections/shared/naming.d.ts +64 -0
- package/dist/manifest/projections/shared/naming.d.ts.map +1 -0
- package/dist/manifest/projections/shared/naming.js +138 -0
- package/dist/manifest/projections/shared/naming.js.map +1 -0
- package/dist/manifest/projections/storybook/generator.d.ts +38 -0
- package/dist/manifest/projections/storybook/generator.d.ts.map +1 -0
- package/dist/manifest/projections/storybook/generator.js +462 -0
- package/dist/manifest/projections/storybook/generator.js.map +1 -0
- package/dist/manifest/projections/sveltekit/generator.d.ts +64 -0
- package/dist/manifest/projections/sveltekit/generator.d.ts.map +1 -0
- package/dist/manifest/projections/sveltekit/generator.js +1043 -0
- package/dist/manifest/projections/sveltekit/generator.js.map +1 -0
- package/dist/manifest/projections/sveltekit/index.d.ts +11 -0
- package/dist/manifest/projections/sveltekit/index.d.ts.map +1 -0
- package/dist/manifest/projections/sveltekit/index.js +10 -0
- package/dist/manifest/projections/sveltekit/index.js.map +1 -0
- package/dist/manifest/projections/sveltekit/types.d.ts +122 -0
- package/dist/manifest/projections/sveltekit/types.d.ts.map +1 -0
- package/dist/manifest/projections/sveltekit/types.js +10 -0
- package/dist/manifest/projections/sveltekit/types.js.map +1 -0
- package/dist/manifest/projections/terraform/generator.d.ts +29 -0
- package/dist/manifest/projections/terraform/generator.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/generator.js +722 -0
- package/dist/manifest/projections/terraform/generator.js.map +1 -0
- package/dist/manifest/projections/terraform/index.d.ts +7 -0
- package/dist/manifest/projections/terraform/index.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/index.js +7 -0
- package/dist/manifest/projections/terraform/index.js.map +1 -0
- package/dist/manifest/projections/terraform/options.d.ts +92 -0
- package/dist/manifest/projections/terraform/options.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/options.js +37 -0
- package/dist/manifest/projections/terraform/options.js.map +1 -0
- package/dist/manifest/projections/terraform/types.d.ts +55 -0
- package/dist/manifest/projections/terraform/types.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/types.js +38 -0
- package/dist/manifest/projections/terraform/types.js.map +1 -0
- package/dist/manifest/projections/zod/generator.d.ts +27 -0
- package/dist/manifest/projections/zod/generator.d.ts.map +1 -0
- package/dist/manifest/projections/zod/generator.js +367 -0
- package/dist/manifest/projections/zod/generator.js.map +1 -0
- package/dist/manifest/projections/zod/index.d.ts +8 -0
- package/dist/manifest/projections/zod/index.d.ts.map +1 -0
- package/dist/manifest/projections/zod/index.js +7 -0
- package/dist/manifest/projections/zod/index.js.map +1 -0
- package/dist/manifest/projections/zod/types.d.ts +14 -0
- package/dist/manifest/projections/zod/types.d.ts.map +1 -0
- package/dist/manifest/projections/zod/types.js +5 -0
- package/dist/manifest/projections/zod/types.js.map +1 -0
- package/dist/manifest/reaction-completeness-checks.d.ts +11 -0
- package/dist/manifest/reaction-completeness-checks.d.ts.map +1 -0
- package/dist/manifest/reaction-completeness-checks.js +106 -0
- package/dist/manifest/reaction-completeness-checks.js.map +1 -0
- package/dist/manifest/reaction-completeness.d.ts +9 -0
- package/dist/manifest/reaction-completeness.d.ts.map +1 -0
- package/dist/manifest/reaction-completeness.js +35 -0
- package/dist/manifest/reaction-completeness.js.map +1 -0
- package/dist/manifest/registry/emit.d.ts +53 -0
- package/dist/manifest/registry/emit.d.ts.map +1 -0
- package/dist/manifest/registry/emit.js +96 -0
- package/dist/manifest/registry/emit.js.map +1 -0
- package/dist/manifest/runtime-command-extensions.d.ts +21 -0
- package/dist/manifest/runtime-command-extensions.d.ts.map +1 -0
- package/dist/manifest/runtime-command-extensions.js +136 -0
- package/dist/manifest/runtime-command-extensions.js.map +1 -0
- package/dist/manifest/runtime-engine.d.ts +1019 -0
- package/dist/manifest/runtime-engine.d.ts.map +1 -0
- package/dist/manifest/runtime-engine.js +3872 -0
- package/dist/manifest/runtime-engine.js.map +1 -0
- package/dist/manifest/runtime-profiling-bridge.d.ts +22 -0
- package/dist/manifest/runtime-profiling-bridge.d.ts.map +1 -0
- package/dist/manifest/runtime-profiling-bridge.js +69 -0
- package/dist/manifest/runtime-profiling-bridge.js.map +1 -0
- package/dist/manifest/runtime-rate-limit.d.ts +52 -0
- package/dist/manifest/runtime-rate-limit.d.ts.map +1 -0
- package/dist/manifest/runtime-rate-limit.js +70 -0
- package/dist/manifest/runtime-rate-limit.js.map +1 -0
- package/dist/manifest/runtime-retry.d.ts +68 -0
- package/dist/manifest/runtime-retry.d.ts.map +1 -0
- package/dist/manifest/runtime-retry.js +93 -0
- package/dist/manifest/runtime-retry.js.map +1 -0
- package/dist/manifest/runtime-schedule.d.ts +47 -0
- package/dist/manifest/runtime-schedule.d.ts.map +1 -0
- package/dist/manifest/runtime-schedule.js +95 -0
- package/dist/manifest/runtime-schedule.js.map +1 -0
- package/dist/manifest/schedule-utils.d.ts +15 -0
- package/dist/manifest/schedule-utils.d.ts.map +1 -0
- package/dist/manifest/schedule-utils.js +82 -0
- package/dist/manifest/schedule-utils.js.map +1 -0
- package/dist/manifest/standalone-generator.d.ts +32 -0
- package/dist/manifest/standalone-generator.d.ts.map +1 -0
- package/dist/manifest/standalone-generator.js +596 -0
- package/dist/manifest/standalone-generator.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/coercion.d.ts +17 -0
- package/dist/manifest/stores/prisma-generic/coercion.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/coercion.js +83 -0
- package/dist/manifest/stores/prisma-generic/coercion.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/index.d.ts +3 -0
- package/dist/manifest/stores/prisma-generic/index.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/index.js +2 -0
- package/dist/manifest/stores/prisma-generic/index.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/store.d.ts +35 -0
- package/dist/manifest/stores/prisma-generic/store.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/store.js +216 -0
- package/dist/manifest/stores/prisma-generic/store.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/types.d.ts +46 -0
- package/dist/manifest/stores/prisma-generic/types.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/types.js +6 -0
- package/dist/manifest/stores/prisma-generic/types.js.map +1 -0
- package/dist/manifest/stores.node.d.ts +248 -0
- package/dist/manifest/stores.node.d.ts.map +1 -0
- package/dist/manifest/stores.node.js +718 -0
- package/dist/manifest/stores.node.js.map +1 -0
- package/dist/manifest/test/postgres-live-env.d.ts +9 -0
- package/dist/manifest/test/postgres-live-env.d.ts.map +1 -0
- package/dist/manifest/test/postgres-live-env.js +14 -0
- package/dist/manifest/test/postgres-live-env.js.map +1 -0
- package/dist/manifest/types.d.ts +570 -0
- package/dist/manifest/types.d.ts.map +1 -0
- package/dist/manifest/types.js +2 -0
- package/dist/manifest/types.js.map +1 -0
- package/dist/manifest/version.d.ts +15 -0
- package/dist/manifest/version.d.ts.map +1 -0
- package/dist/manifest/version.js +15 -0
- package/dist/manifest/version.js.map +1 -0
- package/dist/manifest/wasm/index.d.ts +15 -0
- package/dist/manifest/wasm/index.d.ts.map +1 -0
- package/dist/manifest/wasm/index.js +15 -0
- package/dist/manifest/wasm/index.js.map +1 -0
- package/dist/manifest/wasm/wasm-evaluator.d.ts +93 -0
- package/dist/manifest/wasm/wasm-evaluator.d.ts.map +1 -0
- package/dist/manifest/wasm/wasm-evaluator.js +242 -0
- package/dist/manifest/wasm/wasm-evaluator.js.map +1 -0
- package/dist/manifest/wasm/wasm-loader.d.ts +56 -0
- package/dist/manifest/wasm/wasm-loader.d.ts.map +1 -0
- package/dist/manifest/wasm/wasm-loader.js +132 -0
- package/dist/manifest/wasm/wasm-loader.js.map +1 -0
- package/docs/spec/config/manifest.config.schema.json +737 -0
- package/docs/spec/config/prisma-projection.schema.json +173 -0
- package/docs/spec/ir/ir-v1.schema.json +2033 -0
- package/docs/spec/plugins/plugin.schema.json +104 -0
- package/docs/spec/registry/bypasses.schema.json +87 -0
- package/docs/spec/registry/commands.schema.json +61 -0
- package/docs/spec/registry/entities.schema.json +52 -0
- package/docs/spec/semantics.md +630 -0
- package/package.json +356 -0
- package/packages/cli/dist/audit/bypass-violations.d.ts +16 -0
- package/packages/cli/dist/audit/bypass-violations.d.ts.map +1 -0
- package/packages/cli/dist/audit/bypass-violations.js +98 -0
- package/packages/cli/dist/audit/bypass-violations.js.map +1 -0
- package/packages/cli/dist/audit/direct-writes.d.ts +15 -0
- package/packages/cli/dist/audit/direct-writes.d.ts.map +1 -0
- package/packages/cli/dist/audit/direct-writes.js +86 -0
- package/packages/cli/dist/audit/direct-writes.js.map +1 -0
- package/packages/cli/dist/audit/event-fabrication.d.ts +17 -0
- package/packages/cli/dist/audit/event-fabrication.d.ts.map +1 -0
- package/packages/cli/dist/audit/event-fabrication.js +101 -0
- package/packages/cli/dist/audit/event-fabrication.js.map +1 -0
- package/packages/cli/dist/audit/existing-command-available.d.ts +20 -0
- package/packages/cli/dist/audit/existing-command-available.d.ts.map +1 -0
- package/packages/cli/dist/audit/existing-command-available.js +158 -0
- package/packages/cli/dist/audit/existing-command-available.js.map +1 -0
- package/packages/cli/dist/audit/missing-tests.d.ts +17 -0
- package/packages/cli/dist/audit/missing-tests.d.ts.map +1 -0
- package/packages/cli/dist/audit/missing-tests.js +108 -0
- package/packages/cli/dist/audit/missing-tests.js.map +1 -0
- package/packages/cli/dist/audit/route-drift.d.ts +16 -0
- package/packages/cli/dist/audit/route-drift.d.ts.map +1 -0
- package/packages/cli/dist/audit/route-drift.js +86 -0
- package/packages/cli/dist/audit/route-drift.js.map +1 -0
- package/packages/cli/dist/audit/types.d.ts +63 -0
- package/packages/cli/dist/audit/types.d.ts.map +1 -0
- package/packages/cli/dist/audit/types.js +10 -0
- package/packages/cli/dist/audit/types.js.map +1 -0
- package/packages/cli/dist/audit/unregistered-command-call.d.ts +25 -0
- package/packages/cli/dist/audit/unregistered-command-call.d.ts.map +1 -0
- package/packages/cli/dist/audit/unregistered-command-call.js +196 -0
- package/packages/cli/dist/audit/unregistered-command-call.js.map +1 -0
- package/packages/cli/dist/audit/unregistered-entity-write.d.ts +16 -0
- package/packages/cli/dist/audit/unregistered-entity-write.d.ts.map +1 -0
- package/packages/cli/dist/audit/unregistered-entity-write.js +96 -0
- package/packages/cli/dist/audit/unregistered-entity-write.js.map +1 -0
- package/packages/cli/dist/audit/write-receiver.d.ts +23 -0
- package/packages/cli/dist/audit/write-receiver.d.ts.map +1 -0
- package/packages/cli/dist/audit/write-receiver.js +32 -0
- package/packages/cli/dist/audit/write-receiver.js.map +1 -0
- package/packages/cli/dist/checks/dispatcher-presence.d.ts +37 -0
- package/packages/cli/dist/checks/dispatcher-presence.d.ts.map +1 -0
- package/packages/cli/dist/checks/dispatcher-presence.js +57 -0
- package/packages/cli/dist/checks/dispatcher-presence.js.map +1 -0
- package/packages/cli/dist/checks/package-shape.d.ts +81 -0
- package/packages/cli/dist/checks/package-shape.d.ts.map +1 -0
- package/packages/cli/dist/checks/package-shape.js +359 -0
- package/packages/cli/dist/checks/package-shape.js.map +1 -0
- package/packages/cli/dist/checks/runtime-smoke.d.ts +42 -0
- package/packages/cli/dist/checks/runtime-smoke.d.ts.map +1 -0
- package/packages/cli/dist/checks/runtime-smoke.js +167 -0
- package/packages/cli/dist/checks/runtime-smoke.js.map +1 -0
- package/packages/cli/dist/commands/analyze.d.ts +97 -0
- package/packages/cli/dist/commands/analyze.d.ts.map +1 -0
- package/packages/cli/dist/commands/analyze.js +411 -0
- package/packages/cli/dist/commands/analyze.js.map +1 -0
- package/packages/cli/dist/commands/audit-bypasses.d.ts +31 -0
- package/packages/cli/dist/commands/audit-bypasses.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-bypasses.js +152 -0
- package/packages/cli/dist/commands/audit-bypasses.js.map +1 -0
- package/packages/cli/dist/commands/audit-constitution.d.ts +20 -0
- package/packages/cli/dist/commands/audit-constitution.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-constitution.js +18 -0
- package/packages/cli/dist/commands/audit-constitution.js.map +1 -0
- package/packages/cli/dist/commands/audit-governance.d.ts +37 -0
- package/packages/cli/dist/commands/audit-governance.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-governance.js +78 -0
- package/packages/cli/dist/commands/audit-governance.js.map +1 -0
- package/packages/cli/dist/commands/audit-routes.d.ts +135 -0
- package/packages/cli/dist/commands/audit-routes.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-routes.js +514 -0
- package/packages/cli/dist/commands/audit-routes.js.map +1 -0
- package/packages/cli/dist/commands/breaking-change.d.ts +15 -0
- package/packages/cli/dist/commands/breaking-change.d.ts.map +1 -0
- package/packages/cli/dist/commands/breaking-change.js +150 -0
- package/packages/cli/dist/commands/breaking-change.js.map +1 -0
- package/packages/cli/dist/commands/build.d.ts +26 -0
- package/packages/cli/dist/commands/build.d.ts.map +1 -0
- package/packages/cli/dist/commands/build.js +58 -0
- package/packages/cli/dist/commands/build.js.map +1 -0
- package/packages/cli/dist/commands/changelog.d.ts +26 -0
- package/packages/cli/dist/commands/changelog.d.ts.map +1 -0
- package/packages/cli/dist/commands/changelog.js +365 -0
- package/packages/cli/dist/commands/changelog.js.map +1 -0
- package/packages/cli/dist/commands/check.d.ts +21 -0
- package/packages/cli/dist/commands/check.d.ts.map +1 -0
- package/packages/cli/dist/commands/check.js +31 -0
- package/packages/cli/dist/commands/check.js.map +1 -0
- package/packages/cli/dist/commands/compile.d.ts +19 -0
- package/packages/cli/dist/commands/compile.d.ts.map +1 -0
- package/packages/cli/dist/commands/compile.js +325 -0
- package/packages/cli/dist/commands/compile.js.map +1 -0
- package/packages/cli/dist/commands/config.d.ts +23 -0
- package/packages/cli/dist/commands/config.d.ts.map +1 -0
- package/packages/cli/dist/commands/config.js +172 -0
- package/packages/cli/dist/commands/config.js.map +1 -0
- package/packages/cli/dist/commands/coverage.d.ts +55 -0
- package/packages/cli/dist/commands/coverage.d.ts.map +1 -0
- package/packages/cli/dist/commands/coverage.js +343 -0
- package/packages/cli/dist/commands/coverage.js.map +1 -0
- package/packages/cli/dist/commands/diagram.d.ts +22 -0
- package/packages/cli/dist/commands/diagram.d.ts.map +1 -0
- package/packages/cli/dist/commands/diagram.js +176 -0
- package/packages/cli/dist/commands/diagram.js.map +1 -0
- package/packages/cli/dist/commands/docs.d.ts +18 -0
- package/packages/cli/dist/commands/docs.d.ts.map +1 -0
- package/packages/cli/dist/commands/docs.js +722 -0
- package/packages/cli/dist/commands/docs.js.map +1 -0
- package/packages/cli/dist/commands/doctor-lib.d.ts +147 -0
- package/packages/cli/dist/commands/doctor-lib.d.ts.map +1 -0
- package/packages/cli/dist/commands/doctor-lib.js +491 -0
- package/packages/cli/dist/commands/doctor-lib.js.map +1 -0
- package/packages/cli/dist/commands/doctor.d.ts +31 -0
- package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
- package/packages/cli/dist/commands/doctor.js +628 -0
- package/packages/cli/dist/commands/doctor.js.map +1 -0
- package/packages/cli/dist/commands/emit-registries.d.ts +33 -0
- package/packages/cli/dist/commands/emit-registries.d.ts.map +1 -0
- package/packages/cli/dist/commands/emit-registries.js +109 -0
- package/packages/cli/dist/commands/emit-registries.js.map +1 -0
- package/packages/cli/dist/commands/enforce-surface.d.ts +62 -0
- package/packages/cli/dist/commands/enforce-surface.d.ts.map +1 -0
- package/packages/cli/dist/commands/enforce-surface.js +172 -0
- package/packages/cli/dist/commands/enforce-surface.js.map +1 -0
- package/packages/cli/dist/commands/fmt.d.ts +17 -0
- package/packages/cli/dist/commands/fmt.d.ts.map +1 -0
- package/packages/cli/dist/commands/fmt.js +129 -0
- package/packages/cli/dist/commands/fmt.js.map +1 -0
- package/packages/cli/dist/commands/gen-tests.d.ts +41 -0
- package/packages/cli/dist/commands/gen-tests.d.ts.map +1 -0
- package/packages/cli/dist/commands/gen-tests.js +370 -0
- package/packages/cli/dist/commands/gen-tests.js.map +1 -0
- package/packages/cli/dist/commands/generate-from-prompt.d.ts +34 -0
- package/packages/cli/dist/commands/generate-from-prompt.d.ts.map +1 -0
- package/packages/cli/dist/commands/generate-from-prompt.js +990 -0
- package/packages/cli/dist/commands/generate-from-prompt.js.map +1 -0
- package/packages/cli/dist/commands/generate.d.ts +36 -0
- package/packages/cli/dist/commands/generate.d.ts.map +1 -0
- package/packages/cli/dist/commands/generate.js +371 -0
- package/packages/cli/dist/commands/generate.js.map +1 -0
- package/packages/cli/dist/commands/harness.d.ts +13 -0
- package/packages/cli/dist/commands/harness.d.ts.map +1 -0
- package/packages/cli/dist/commands/harness.js +276 -0
- package/packages/cli/dist/commands/harness.js.map +1 -0
- package/packages/cli/dist/commands/init-ci.d.ts +19 -0
- package/packages/cli/dist/commands/init-ci.d.ts.map +1 -0
- package/packages/cli/dist/commands/init-ci.js +148 -0
- package/packages/cli/dist/commands/init-ci.js.map +1 -0
- package/packages/cli/dist/commands/init.d.ts +33 -0
- package/packages/cli/dist/commands/init.d.ts.map +1 -0
- package/packages/cli/dist/commands/init.js +157 -0
- package/packages/cli/dist/commands/init.js.map +1 -0
- package/packages/cli/dist/commands/install-hooks.d.ts +29 -0
- package/packages/cli/dist/commands/install-hooks.d.ts.map +1 -0
- package/packages/cli/dist/commands/install-hooks.js +139 -0
- package/packages/cli/dist/commands/install-hooks.js.map +1 -0
- package/packages/cli/dist/commands/integration-check.d.ts +62 -0
- package/packages/cli/dist/commands/integration-check.d.ts.map +1 -0
- package/packages/cli/dist/commands/integration-check.js +298 -0
- package/packages/cli/dist/commands/integration-check.js.map +1 -0
- package/packages/cli/dist/commands/ir-diff.d.ts +8 -0
- package/packages/cli/dist/commands/ir-diff.d.ts.map +1 -0
- package/packages/cli/dist/commands/ir-diff.js +199 -0
- package/packages/cli/dist/commands/ir-diff.js.map +1 -0
- package/packages/cli/dist/commands/lint-routes.d.ts +56 -0
- package/packages/cli/dist/commands/lint-routes.d.ts.map +1 -0
- package/packages/cli/dist/commands/lint-routes.js +228 -0
- package/packages/cli/dist/commands/lint-routes.js.map +1 -0
- package/packages/cli/dist/commands/load-test.d.ts +61 -0
- package/packages/cli/dist/commands/load-test.d.ts.map +1 -0
- package/packages/cli/dist/commands/load-test.js +675 -0
- package/packages/cli/dist/commands/load-test.js.map +1 -0
- package/packages/cli/dist/commands/migrate.d.ts +21 -0
- package/packages/cli/dist/commands/migrate.d.ts.map +1 -0
- package/packages/cli/dist/commands/migrate.js +264 -0
- package/packages/cli/dist/commands/migrate.js.map +1 -0
- package/packages/cli/dist/commands/mock.d.ts +79 -0
- package/packages/cli/dist/commands/mock.d.ts.map +1 -0
- package/packages/cli/dist/commands/mock.js +324 -0
- package/packages/cli/dist/commands/mock.js.map +1 -0
- package/packages/cli/dist/commands/pack-unpack.d.ts +30 -0
- package/packages/cli/dist/commands/pack-unpack.d.ts.map +1 -0
- package/packages/cli/dist/commands/pack-unpack.js +108 -0
- package/packages/cli/dist/commands/pack-unpack.js.map +1 -0
- package/packages/cli/dist/commands/preflight.d.ts +31 -0
- package/packages/cli/dist/commands/preflight.d.ts.map +1 -0
- package/packages/cli/dist/commands/preflight.js +246 -0
- package/packages/cli/dist/commands/preflight.js.map +1 -0
- package/packages/cli/dist/commands/profile.d.ts +30 -0
- package/packages/cli/dist/commands/profile.d.ts.map +1 -0
- package/packages/cli/dist/commands/profile.js +201 -0
- package/packages/cli/dist/commands/profile.js.map +1 -0
- package/packages/cli/dist/commands/repl.d.ts +16 -0
- package/packages/cli/dist/commands/repl.d.ts.map +1 -0
- package/packages/cli/dist/commands/repl.js +772 -0
- package/packages/cli/dist/commands/repl.js.map +1 -0
- package/packages/cli/dist/commands/routes.d.ts +24 -0
- package/packages/cli/dist/commands/routes.d.ts.map +1 -0
- package/packages/cli/dist/commands/routes.js +144 -0
- package/packages/cli/dist/commands/routes.js.map +1 -0
- package/packages/cli/dist/commands/scan.d.ts +23 -0
- package/packages/cli/dist/commands/scan.d.ts.map +1 -0
- package/packages/cli/dist/commands/scan.js +722 -0
- package/packages/cli/dist/commands/scan.js.map +1 -0
- package/packages/cli/dist/commands/seed.d.ts +35 -0
- package/packages/cli/dist/commands/seed.d.ts.map +1 -0
- package/packages/cli/dist/commands/seed.js +503 -0
- package/packages/cli/dist/commands/seed.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-ajv.d.ts +4 -0
- package/packages/cli/dist/commands/validate-ai-ajv.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-ajv.js +78 -0
- package/packages/cli/dist/commands/validate-ai-ajv.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-compiler.d.ts +5 -0
- package/packages/cli/dist/commands/validate-ai-compiler.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-compiler.js +8 -0
- package/packages/cli/dist/commands/validate-ai-compiler.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-report.d.ts +5 -0
- package/packages/cli/dist/commands/validate-ai-report.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-report.js +80 -0
- package/packages/cli/dist/commands/validate-ai-report.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.d.ts +6 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.js +54 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.d.ts +4 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.js +218 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-types.d.ts +41 -0
- package/packages/cli/dist/commands/validate-ai-types.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-types.js +2 -0
- package/packages/cli/dist/commands/validate-ai-types.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.d.ts +5 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.js +126 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai.d.ts +15 -0
- package/packages/cli/dist/commands/validate-ai.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai.js +124 -0
- package/packages/cli/dist/commands/validate-ai.js.map +1 -0
- package/packages/cli/dist/commands/validate.d.ts +15 -0
- package/packages/cli/dist/commands/validate.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate.js +205 -0
- package/packages/cli/dist/commands/validate.js.map +1 -0
- package/packages/cli/dist/commands/versions.d.ts +56 -0
- package/packages/cli/dist/commands/versions.d.ts.map +1 -0
- package/packages/cli/dist/commands/versions.js +427 -0
- package/packages/cli/dist/commands/versions.js.map +1 -0
- package/packages/cli/dist/commands/watch.d.ts +34 -0
- package/packages/cli/dist/commands/watch.d.ts.map +1 -0
- package/packages/cli/dist/commands/watch.js +253 -0
- package/packages/cli/dist/commands/watch.js.map +1 -0
- package/packages/cli/dist/index.d.ts +14 -0
- package/packages/cli/dist/index.d.ts.map +1 -0
- package/packages/cli/dist/index.js +1159 -0
- package/packages/cli/dist/index.js.map +1 -0
- package/packages/cli/dist/utils/config-validate.d.ts +48 -0
- package/packages/cli/dist/utils/config-validate.d.ts.map +1 -0
- package/packages/cli/dist/utils/config-validate.js +116 -0
- package/packages/cli/dist/utils/config-validate.js.map +1 -0
- package/packages/cli/dist/utils/config.d.ts +360 -0
- package/packages/cli/dist/utils/config.d.ts.map +1 -0
- package/packages/cli/dist/utils/config.js +567 -0
- package/packages/cli/dist/utils/config.js.map +1 -0
- package/packages/cli/dist/utils/schema.d.ts +8 -0
- package/packages/cli/dist/utils/schema.d.ts.map +1 -0
- package/packages/cli/dist/utils/schema.js +13 -0
- package/packages/cli/dist/utils/schema.js.map +1 -0
- package/packages/lsp-server/bin/manifest-lsp.js +3 -0
- package/packages/lsp-server/dist/compiler-bridge.d.ts +24 -0
- package/packages/lsp-server/dist/compiler-bridge.d.ts.map +1 -0
- package/packages/lsp-server/dist/compiler-bridge.js +32 -0
- package/packages/lsp-server/dist/compiler-bridge.js.map +1 -0
- package/packages/lsp-server/dist/document-store.d.ts +23 -0
- package/packages/lsp-server/dist/document-store.d.ts.map +1 -0
- package/packages/lsp-server/dist/document-store.js +40 -0
- package/packages/lsp-server/dist/document-store.js.map +1 -0
- package/packages/lsp-server/dist/features/completion.d.ts +23 -0
- package/packages/lsp-server/dist/features/completion.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/completion.js +293 -0
- package/packages/lsp-server/dist/features/completion.js.map +1 -0
- package/packages/lsp-server/dist/features/definition.d.ts +9 -0
- package/packages/lsp-server/dist/features/definition.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/definition.js +24 -0
- package/packages/lsp-server/dist/features/definition.js.map +1 -0
- package/packages/lsp-server/dist/features/diagnostics.d.ts +8 -0
- package/packages/lsp-server/dist/features/diagnostics.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/diagnostics.js +40 -0
- package/packages/lsp-server/dist/features/diagnostics.js.map +1 -0
- package/packages/lsp-server/dist/features/document-symbols.d.ts +8 -0
- package/packages/lsp-server/dist/features/document-symbols.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/document-symbols.js +164 -0
- package/packages/lsp-server/dist/features/document-symbols.js.map +1 -0
- package/packages/lsp-server/dist/features/hover.d.ts +9 -0
- package/packages/lsp-server/dist/features/hover.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/hover.js +100 -0
- package/packages/lsp-server/dist/features/hover.js.map +1 -0
- package/packages/lsp-server/dist/index.d.ts +6 -0
- package/packages/lsp-server/dist/index.d.ts.map +1 -0
- package/packages/lsp-server/dist/index.js +11 -0
- package/packages/lsp-server/dist/index.js.map +1 -0
- package/packages/lsp-server/dist/position-utils.d.ts +25 -0
- package/packages/lsp-server/dist/position-utils.d.ts.map +1 -0
- package/packages/lsp-server/dist/position-utils.js +39 -0
- package/packages/lsp-server/dist/position-utils.js.map +1 -0
- package/packages/lsp-server/dist/server.d.ts +14 -0
- package/packages/lsp-server/dist/server.d.ts.map +1 -0
- package/packages/lsp-server/dist/server.js +96 -0
- package/packages/lsp-server/dist/server.js.map +1 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.d.ts +34 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.d.ts.map +1 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.js +193 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.js.map +1 -0
- package/packages/lsp-server/dist/symbols/symbol-index.d.ts +18 -0
- package/packages/lsp-server/dist/symbols/symbol-index.d.ts.map +1 -0
- package/packages/lsp-server/dist/symbols/symbol-index.js +107 -0
- package/packages/lsp-server/dist/symbols/symbol-index.js.map +1 -0
- package/packages/mcp-server/bin/manifest-mcp.js +27 -0
- package/packages/mcp-server/dist/index.d.ts +24 -0
- package/packages/mcp-server/dist/index.d.ts.map +1 -0
- package/packages/mcp-server/dist/index.js +36 -0
- package/packages/mcp-server/dist/index.js.map +1 -0
- package/packages/mcp-server/dist/resources/ir-cache.d.ts +9 -0
- package/packages/mcp-server/dist/resources/ir-cache.d.ts.map +1 -0
- package/packages/mcp-server/dist/resources/ir-cache.js +47 -0
- package/packages/mcp-server/dist/resources/ir-cache.js.map +1 -0
- package/packages/mcp-server/dist/resources/ir-schema.d.ts +8 -0
- package/packages/mcp-server/dist/resources/ir-schema.d.ts.map +1 -0
- package/packages/mcp-server/dist/resources/ir-schema.js +39 -0
- package/packages/mcp-server/dist/resources/ir-schema.js.map +1 -0
- package/packages/mcp-server/dist/resources/semantics.d.ts +8 -0
- package/packages/mcp-server/dist/resources/semantics.d.ts.map +1 -0
- package/packages/mcp-server/dist/resources/semantics.js +38 -0
- package/packages/mcp-server/dist/resources/semantics.js.map +1 -0
- package/packages/mcp-server/dist/server.d.ts +7 -0
- package/packages/mcp-server/dist/server.d.ts.map +1 -0
- package/packages/mcp-server/dist/server.js +22 -0
- package/packages/mcp-server/dist/server.js.map +1 -0
- package/packages/mcp-server/dist/state/session-store.d.ts +39 -0
- package/packages/mcp-server/dist/state/session-store.d.ts.map +1 -0
- package/packages/mcp-server/dist/state/session-store.js +58 -0
- package/packages/mcp-server/dist/state/session-store.js.map +1 -0
- package/packages/mcp-server/dist/tools/compile.d.ts +30 -0
- package/packages/mcp-server/dist/tools/compile.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/compile.js +54 -0
- package/packages/mcp-server/dist/tools/compile.js.map +1 -0
- package/packages/mcp-server/dist/tools/execute.d.ts +112 -0
- package/packages/mcp-server/dist/tools/execute.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/execute.js +103 -0
- package/packages/mcp-server/dist/tools/execute.js.map +1 -0
- package/packages/mcp-server/dist/tools/explain.d.ts +25 -0
- package/packages/mcp-server/dist/tools/explain.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/explain.js +254 -0
- package/packages/mcp-server/dist/tools/explain.js.map +1 -0
- package/packages/mcp-server/dist/tools/validate.d.ts +23 -0
- package/packages/mcp-server/dist/tools/validate.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/validate.js +38 -0
- package/packages/mcp-server/dist/tools/validate.js.map +1 -0
- package/src/manifest/audit/sinks/postgres.sql +51 -0
- package/src/manifest/outbox/stores/postgres.sql +61 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/manifest/projections/mongoose/options.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,yBAAyB;IACxC,mGAAmG;IACnG,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACvD,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,yBAAyB,CAU1F"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mongoose projection options.
|
|
3
|
+
*
|
|
4
|
+
* ALL relational concepts (collection names, field names, types) come from
|
|
5
|
+
* projection options, NOT from IR. This keeps IR backend-neutral.
|
|
6
|
+
*/
|
|
7
|
+
export function normalizeOptions(opts) {
|
|
8
|
+
const o = (opts ?? {});
|
|
9
|
+
return {
|
|
10
|
+
collectionMappings: o.collectionMappings ?? {},
|
|
11
|
+
fieldMappings: o.fieldMappings ?? {},
|
|
12
|
+
typeMappings: o.typeMappings ?? {},
|
|
13
|
+
includeValidation: o.includeValidation ?? true,
|
|
14
|
+
timestamps: o.timestamps ?? false,
|
|
15
|
+
output: o.output ?? 'schema.ts',
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/manifest/projections/mongoose/options.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA0BH,MAAM,UAAU,gBAAgB,CAAC,IAA8B;IAC7D,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAA8B,CAAC;IACpD,OAAO;QACL,kBAAkB,EAAE,CAAC,CAAC,kBAAkB,IAAI,EAAE;QAC9C,aAAa,EAAE,CAAC,CAAC,aAAa,IAAI,EAAE;QACpC,YAAY,EAAE,CAAC,CAAC,YAAY,IAAI,EAAE;QAClC,iBAAiB,EAAE,CAAC,CAAC,iBAAiB,IAAI,IAAI;QAC9C,UAAU,EAAE,CAAC,CAAC,UAAU,IAAI,KAAK;QACjC,MAAM,EAAE,CAAC,CAAC,MAAM,IAAI,WAAW;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default mapping from IR `type.name` strings to Mongoose schema type strings.
|
|
3
|
+
*
|
|
4
|
+
* This table is the projection's sole interpreter of Manifest's open type
|
|
5
|
+
* vocabulary for Mongoose. The projection knows what any given IR type name
|
|
6
|
+
* means for Mongoose; nothing upstream carries Mongoose knowledge.
|
|
7
|
+
*
|
|
8
|
+
* Consumers can override per-property via `typeMappings`. Anything not in
|
|
9
|
+
* this table and not overridden produces a hard diagnostic — no fallback,
|
|
10
|
+
* no guessing. That is the contract.
|
|
11
|
+
*
|
|
12
|
+
* IMPORTANT: `'number'` is INTENTIONALLY ABSENT from this table.
|
|
13
|
+
* Manifest's `number` is ambiguous between integers, real numbers, and
|
|
14
|
+
* money. Silently mapping it to `Number` is exactly the class of silent
|
|
15
|
+
* bug this project exists to prevent. Authors must pick a precise type:
|
|
16
|
+
* - `int` / `bigint` for counts and ids
|
|
17
|
+
* - `float` for measurements where rounding is acceptable
|
|
18
|
+
* - `money` / `decimal` for currency and other exact-decimal values
|
|
19
|
+
* Bare `number` produces a hard MONGOOSE_AMBIGUOUS_NUMBER diagnostic.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Mongoose schema type representation.
|
|
23
|
+
*
|
|
24
|
+
* `schemaType` is the string used in Mongoose schema definitions:
|
|
25
|
+
* - Simple types: 'String', 'Number', 'Boolean', 'Date', 'Buffer'
|
|
26
|
+
* - Special types: 'Schema.Types.ObjectId', 'Schema.Types.Mixed',
|
|
27
|
+
* 'Schema.Types.Decimal128', 'Schema.Types.BigInt'
|
|
28
|
+
*/
|
|
29
|
+
export interface MongooseSchemaType {
|
|
30
|
+
/** Mongoose SchemaType string (e.g. 'String', 'Number', 'Date') */
|
|
31
|
+
schemaType: string;
|
|
32
|
+
}
|
|
33
|
+
declare const DEFAULT_TYPE_MAPPING: Readonly<Record<string, MongooseSchemaType>>;
|
|
34
|
+
export { DEFAULT_TYPE_MAPPING };
|
|
35
|
+
/**
|
|
36
|
+
* Resolve a Mongoose schema type for an IR `type.name`, given optional
|
|
37
|
+
* per-property overrides from projection config. Returns `undefined` when
|
|
38
|
+
* the name is unknown and no override is supplied — the caller MUST emit
|
|
39
|
+
* a diagnostic.
|
|
40
|
+
*/
|
|
41
|
+
export declare function resolveMongooseType(irTypeName: string, overrides: Readonly<Record<string, string>> | undefined, propertyName: string): MongooseSchemaType | undefined;
|
|
42
|
+
//# sourceMappingURL=type-mapping.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-mapping.d.ts","sourceRoot":"","sources":["../../../../src/manifest/projections/mongoose/type-mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,mEAAmE;IACnE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAqCrE,CAAC;AAEH,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,EACvD,YAAY,EAAE,MAAM,GACnB,kBAAkB,GAAG,SAAS,CAKhC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default mapping from IR `type.name` strings to Mongoose schema type strings.
|
|
3
|
+
*
|
|
4
|
+
* This table is the projection's sole interpreter of Manifest's open type
|
|
5
|
+
* vocabulary for Mongoose. The projection knows what any given IR type name
|
|
6
|
+
* means for Mongoose; nothing upstream carries Mongoose knowledge.
|
|
7
|
+
*
|
|
8
|
+
* Consumers can override per-property via `typeMappings`. Anything not in
|
|
9
|
+
* this table and not overridden produces a hard diagnostic — no fallback,
|
|
10
|
+
* no guessing. That is the contract.
|
|
11
|
+
*
|
|
12
|
+
* IMPORTANT: `'number'` is INTENTIONALLY ABSENT from this table.
|
|
13
|
+
* Manifest's `number` is ambiguous between integers, real numbers, and
|
|
14
|
+
* money. Silently mapping it to `Number` is exactly the class of silent
|
|
15
|
+
* bug this project exists to prevent. Authors must pick a precise type:
|
|
16
|
+
* - `int` / `bigint` for counts and ids
|
|
17
|
+
* - `float` for measurements where rounding is acceptable
|
|
18
|
+
* - `money` / `decimal` for currency and other exact-decimal values
|
|
19
|
+
* Bare `number` produces a hard MONGOOSE_AMBIGUOUS_NUMBER diagnostic.
|
|
20
|
+
*/
|
|
21
|
+
const DEFAULT_TYPE_MAPPING = Object.freeze({
|
|
22
|
+
// String family
|
|
23
|
+
string: { schemaType: 'String' },
|
|
24
|
+
text: { schemaType: 'String' },
|
|
25
|
+
uuid: { schemaType: 'String' },
|
|
26
|
+
email: { schemaType: 'String' },
|
|
27
|
+
url: { schemaType: 'String' },
|
|
28
|
+
// Boolean
|
|
29
|
+
boolean: { schemaType: 'Boolean' },
|
|
30
|
+
bool: { schemaType: 'Boolean' },
|
|
31
|
+
// Integer family — MongoDB Number is IEEE 754 double; fine for int32 range
|
|
32
|
+
int: { schemaType: 'Number' },
|
|
33
|
+
integer: { schemaType: 'Number' },
|
|
34
|
+
// Real number family
|
|
35
|
+
float: { schemaType: 'Number' },
|
|
36
|
+
// Exact decimal family — use Decimal128 for financial accuracy
|
|
37
|
+
decimal: { schemaType: 'Schema.Types.Decimal128' },
|
|
38
|
+
money: { schemaType: 'Schema.Types.Decimal128' },
|
|
39
|
+
// BigInt — supported natively in MongoDB 6.0+ via BSON Long
|
|
40
|
+
bigint: { schemaType: 'Schema.Types.BigInt' },
|
|
41
|
+
// Temporal
|
|
42
|
+
date: { schemaType: 'Date' },
|
|
43
|
+
datetime: { schemaType: 'Date' },
|
|
44
|
+
// Structured
|
|
45
|
+
json: { schemaType: 'Schema.Types.Mixed' },
|
|
46
|
+
object: { schemaType: 'Schema.Types.Mixed' },
|
|
47
|
+
any: { schemaType: 'Schema.Types.Mixed' },
|
|
48
|
+
// Binary
|
|
49
|
+
bytes: { schemaType: 'Buffer' },
|
|
50
|
+
});
|
|
51
|
+
export { DEFAULT_TYPE_MAPPING };
|
|
52
|
+
/**
|
|
53
|
+
* Resolve a Mongoose schema type for an IR `type.name`, given optional
|
|
54
|
+
* per-property overrides from projection config. Returns `undefined` when
|
|
55
|
+
* the name is unknown and no override is supplied — the caller MUST emit
|
|
56
|
+
* a diagnostic.
|
|
57
|
+
*/
|
|
58
|
+
export function resolveMongooseType(irTypeName, overrides, propertyName) {
|
|
59
|
+
if (overrides && Object.prototype.hasOwnProperty.call(overrides, propertyName)) {
|
|
60
|
+
return { schemaType: overrides[propertyName] };
|
|
61
|
+
}
|
|
62
|
+
return DEFAULT_TYPE_MAPPING[irTypeName];
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=type-mapping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-mapping.js","sourceRoot":"","sources":["../../../../src/manifest/projections/mongoose/type-mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAeH,MAAM,oBAAoB,GAAiD,MAAM,CAAC,MAAM,CAAC;IACvF,gBAAgB;IAChB,MAAM,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAChC,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC9B,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC9B,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC/B,GAAG,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAE7B,UAAU;IACV,OAAO,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;IAClC,IAAI,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;IAE/B,2EAA2E;IAC3E,GAAG,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC7B,OAAO,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAEjC,qBAAqB;IACrB,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IAE/B,+DAA+D;IAC/D,OAAO,EAAE,EAAE,UAAU,EAAE,yBAAyB,EAAE;IAClD,KAAK,EAAE,EAAE,UAAU,EAAE,yBAAyB,EAAE;IAEhD,4DAA4D;IAC5D,MAAM,EAAE,EAAE,UAAU,EAAE,qBAAqB,EAAE;IAE7C,WAAW;IACX,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;IAC5B,QAAQ,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;IAEhC,aAAa;IACb,IAAI,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE;IAC1C,MAAM,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE;IAC5C,GAAG,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE;IAEzC,SAAS;IACT,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,UAAkB,EAClB,SAAuD,EACvD,YAAoB;IAEpB,IAAI,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,CAAC;QAC/E,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;IACjD,CAAC;IACD,OAAO,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default values applied to every Next.js projection option.
|
|
3
|
+
*
|
|
4
|
+
* Every key here corresponds to a documented option in
|
|
5
|
+
* `docs/spec/config/manifest.config.md` and a schema entry in
|
|
6
|
+
* `docs/spec/config/manifest.config.schema.json`. Adding a default here
|
|
7
|
+
* without updating both is a documentation drift.
|
|
8
|
+
*/
|
|
9
|
+
export declare const NEXTJS_DEFAULTS: {
|
|
10
|
+
readonly authProvider: "none";
|
|
11
|
+
readonly authImportPath: "@/lib/auth";
|
|
12
|
+
readonly databaseImportPath: "@/lib/database";
|
|
13
|
+
readonly responseImportPath: "@/lib/manifest-response";
|
|
14
|
+
readonly runtimeImportPath: "@/lib/manifest-runtime";
|
|
15
|
+
readonly includeTenantFilter: false;
|
|
16
|
+
readonly includeSoftDeleteFilter: false;
|
|
17
|
+
readonly tenantIdProperty: "tenantId";
|
|
18
|
+
readonly deletedAtProperty: "deletedAt";
|
|
19
|
+
readonly appDir: "app/api";
|
|
20
|
+
readonly strictMode: true;
|
|
21
|
+
readonly includeComments: true;
|
|
22
|
+
readonly indentSize: 2;
|
|
23
|
+
/**
|
|
24
|
+
* HTTP status returned when the auth check fails OR when the auth helper
|
|
25
|
+
* itself throws (e.g. invalid/expired token). 401 by default; some apps
|
|
26
|
+
* standardise on 403 to avoid leaking "user exists but unauthorized".
|
|
27
|
+
* Configurable per goal step 4 — auth failures must NEVER surface as 500.
|
|
28
|
+
*/
|
|
29
|
+
readonly unauthorizedStatus: 401;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Default tenant provider hook.
|
|
33
|
+
*
|
|
34
|
+
* The projection assumes a tenant lookup helper of shape
|
|
35
|
+
* `(id: string) => Promise<string | null>`
|
|
36
|
+
* imported from `importPath`. The lookup key (`orgId` vs `userId`) selects
|
|
37
|
+
* which auth-context field is passed in. Override via
|
|
38
|
+
* `projections.nextjs.options.tenantProvider`.
|
|
39
|
+
*/
|
|
40
|
+
export declare const DEFAULT_TENANT_PROVIDER: {
|
|
41
|
+
readonly importPath: "@/app/lib/tenant";
|
|
42
|
+
readonly functionName: "getTenantIdForOrg";
|
|
43
|
+
readonly lookupKey: "orgId";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Default Next.js dispatcher configuration.
|
|
47
|
+
*
|
|
48
|
+
* The dispatcher is the canonical write path at
|
|
49
|
+
* POST /api/manifest/[entity]/commands/[command]
|
|
50
|
+
*
|
|
51
|
+
* `executionMode` controls *how* the dispatcher invokes Manifest:
|
|
52
|
+
* - `inline` — emit `createManifestRuntime` + `runtime.runCommand`
|
|
53
|
+
* inline in the handler (default, preserves
|
|
54
|
+
* historical behaviour).
|
|
55
|
+
* - `externalExecutor` — import an app-owned executor function and
|
|
56
|
+
* delegate to it. The handler becomes a thin
|
|
57
|
+
* transport adapter. Required when downstream
|
|
58
|
+
* apps centralise runtime construction.
|
|
59
|
+
*
|
|
60
|
+
* `deriveInstanceId` injects an `instanceId` derived from the URL/body
|
|
61
|
+
* into the executor call when true. Off by default to avoid surprising
|
|
62
|
+
* non-instance command callers.
|
|
63
|
+
*/
|
|
64
|
+
export declare const DISPATCHER_DEFAULTS: {
|
|
65
|
+
readonly enabled: true;
|
|
66
|
+
readonly executionMode: "inline";
|
|
67
|
+
readonly executorImportPath: "@/lib/manifest-executor";
|
|
68
|
+
readonly executorImportName: "executeManifestCommand";
|
|
69
|
+
/**
|
|
70
|
+
* Whether the dispatcher extracts an `instanceId` from `body.instanceId`
|
|
71
|
+
* or `body.id` and forwards it to runCommand / the executor.
|
|
72
|
+
*
|
|
73
|
+
* Default: true. Non-create commands (release, archive, update, ...) are
|
|
74
|
+
* the common case and Manifest's `runCommand` accepts `instanceId` via
|
|
75
|
+
* its third-argument options bag. Extracting always — even for create
|
|
76
|
+
* commands that don't need it — is safe because runtime ignores it when
|
|
77
|
+
* the action is a create-only path.
|
|
78
|
+
*/
|
|
79
|
+
readonly deriveInstanceId: true;
|
|
80
|
+
/**
|
|
81
|
+
* Canonical dispatcher path relative to `appDir`. Exposed so apps that
|
|
82
|
+
* want a different prefix (e.g. `/api/v1/manifest/...`) can override
|
|
83
|
+
* without forking the projection.
|
|
84
|
+
*/
|
|
85
|
+
readonly path: "/manifest/[entity]/commands/[command]/route.ts";
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Default policy for the deprecated per-command "concrete" routes.
|
|
89
|
+
*
|
|
90
|
+
* When `enabled` is false, `nextjs.command` artifacts are suppressed
|
|
91
|
+
* entirely. When `legacyAliasesOnly` is true (default), generated concrete
|
|
92
|
+
* routes carry the DEPRECATED ALIAS banner and delegate to the dispatcher
|
|
93
|
+
* — they exist only for back-compat. Set both to true to keep emitting
|
|
94
|
+
* them but signal they are not the canonical surface.
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Default policy for the deprecated per-command "concrete" routes.
|
|
98
|
+
*
|
|
99
|
+
* `enabled` is **false by default** so the canonical-only write surface
|
|
100
|
+
* (the dispatcher) is the single entry point. Apps that still need
|
|
101
|
+
* per-command routes for legacy callers must opt in explicitly with
|
|
102
|
+
* `enabled: true`. When `legacyAliasesOnly` is true (default), generated
|
|
103
|
+
* concrete routes carry the DEPRECATED ALIAS banner pointing at the
|
|
104
|
+
* dispatcher.
|
|
105
|
+
*
|
|
106
|
+
* This was reversed from the previous default (true) per the
|
|
107
|
+
* dispatcher-only-by-default goal.
|
|
108
|
+
*/
|
|
109
|
+
export declare const CONCRETE_COMMAND_ROUTES_DEFAULTS: {
|
|
110
|
+
readonly enabled: false;
|
|
111
|
+
readonly legacyAliasesOnly: true;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Default policy for direct database read routes (GET list, GET detail).
|
|
115
|
+
*
|
|
116
|
+
* Both `enabled` and `directDbReads` default to true to preserve the
|
|
117
|
+
* historical behaviour of the projection emitting Prisma-backed read
|
|
118
|
+
* routes. Apps that prefer to author reads by hand or route them through
|
|
119
|
+
* a separate query layer can set `enabled: false` (no read routes at all)
|
|
120
|
+
* or `directDbReads: false` (route stubs only; no Prisma call inlined).
|
|
121
|
+
*
|
|
122
|
+
* Direct read routes assume a Prisma-compatible client. Manifest cannot
|
|
123
|
+
* fully decouple from that assumption without emitting a different
|
|
124
|
+
* surface; see docs/spec/config/manifest.config.md.
|
|
125
|
+
*/
|
|
126
|
+
export declare const READ_ROUTES_DEFAULTS: {
|
|
127
|
+
readonly enabled: true;
|
|
128
|
+
readonly directDbReads: true;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Default options for the Canonical Routes projection.
|
|
132
|
+
*
|
|
133
|
+
* These mirror the inline defaults in `routes/generator.ts` so the routes
|
|
134
|
+
* projection and the `manifest config` CLI agree on a single source of
|
|
135
|
+
* truth.
|
|
136
|
+
*/
|
|
137
|
+
export declare const ROUTES_DEFAULTS: {
|
|
138
|
+
readonly basePath: "/api";
|
|
139
|
+
readonly includeAuth: true;
|
|
140
|
+
readonly includeTenant: true;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Snapshot type for `manifest config print-defaults` output. Captures
|
|
144
|
+
* everything a downstream repo would need to reason about Manifest's
|
|
145
|
+
* unforced behaviour without reading source.
|
|
146
|
+
*/
|
|
147
|
+
export interface ManifestDefaultsSnapshot {
|
|
148
|
+
nextjs: typeof NEXTJS_DEFAULTS;
|
|
149
|
+
tenantProvider: typeof DEFAULT_TENANT_PROVIDER;
|
|
150
|
+
dispatcher: typeof DISPATCHER_DEFAULTS;
|
|
151
|
+
concreteCommandRoutes: typeof CONCRETE_COMMAND_ROUTES_DEFAULTS;
|
|
152
|
+
readRoutes: typeof READ_ROUTES_DEFAULTS;
|
|
153
|
+
routes: typeof ROUTES_DEFAULTS;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Build the full defaults snapshot. Used by the CLI and tests to render
|
|
157
|
+
* a stable, schema-aligned view of what Manifest will do when no user
|
|
158
|
+
* config is present.
|
|
159
|
+
*/
|
|
160
|
+
export declare function getManifestDefaultsSnapshot(): ManifestDefaultsSnapshot;
|
|
161
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/manifest/projections/nextjs/defaults.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;IAc1B;;;;;OAKG;;CAaH,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB;;;;CAI1B,CAAC;AAEX;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB;;;;;IAK9B;;;;;;;;;OASG;;IAEH;;;;OAIG;;CAEK,CAAC;AAEX;;;;;;;;GAQG;AACH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;CAIlB,CAAC;AAEX;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,OAAO,eAAe,CAAC;IAC/B,cAAc,EAAE,OAAO,uBAAuB,CAAC;IAC/C,UAAU,EAAE,OAAO,mBAAmB,CAAC;IACvC,qBAAqB,EAAE,OAAO,gCAAgC,CAAC;IAC/D,UAAU,EAAE,OAAO,oBAAoB,CAAC;IACxC,MAAM,EAAE,OAAO,eAAe,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,IAAI,wBAAwB,CAStE"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default values applied to every Next.js projection option.
|
|
3
|
+
*
|
|
4
|
+
* Every key here corresponds to a documented option in
|
|
5
|
+
* `docs/spec/config/manifest.config.md` and a schema entry in
|
|
6
|
+
* `docs/spec/config/manifest.config.schema.json`. Adding a default here
|
|
7
|
+
* without updating both is a documentation drift.
|
|
8
|
+
*/
|
|
9
|
+
export const NEXTJS_DEFAULTS = {
|
|
10
|
+
authProvider: 'none',
|
|
11
|
+
authImportPath: '@/lib/auth',
|
|
12
|
+
databaseImportPath: '@/lib/database',
|
|
13
|
+
responseImportPath: '@/lib/manifest-response',
|
|
14
|
+
runtimeImportPath: '@/lib/manifest-runtime',
|
|
15
|
+
includeTenantFilter: false,
|
|
16
|
+
includeSoftDeleteFilter: false,
|
|
17
|
+
tenantIdProperty: 'tenantId',
|
|
18
|
+
deletedAtProperty: 'deletedAt',
|
|
19
|
+
appDir: 'app/api',
|
|
20
|
+
strictMode: true,
|
|
21
|
+
includeComments: true,
|
|
22
|
+
indentSize: 2,
|
|
23
|
+
/**
|
|
24
|
+
* HTTP status returned when the auth check fails OR when the auth helper
|
|
25
|
+
* itself throws (e.g. invalid/expired token). 401 by default; some apps
|
|
26
|
+
* standardise on 403 to avoid leaking "user exists but unauthorized".
|
|
27
|
+
* Configurable per goal step 4 — auth failures must NEVER surface as 500.
|
|
28
|
+
*/
|
|
29
|
+
unauthorizedStatus: 401,
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Default tenant provider hook.
|
|
33
|
+
*
|
|
34
|
+
* The projection assumes a tenant lookup helper of shape
|
|
35
|
+
* `(id: string) => Promise<string | null>`
|
|
36
|
+
* imported from `importPath`. The lookup key (`orgId` vs `userId`) selects
|
|
37
|
+
* which auth-context field is passed in. Override via
|
|
38
|
+
* `projections.nextjs.options.tenantProvider`.
|
|
39
|
+
*/
|
|
40
|
+
export const DEFAULT_TENANT_PROVIDER = {
|
|
41
|
+
importPath: '@/app/lib/tenant',
|
|
42
|
+
functionName: 'getTenantIdForOrg',
|
|
43
|
+
lookupKey: 'orgId',
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Default Next.js dispatcher configuration.
|
|
47
|
+
*
|
|
48
|
+
* The dispatcher is the canonical write path at
|
|
49
|
+
* POST /api/manifest/[entity]/commands/[command]
|
|
50
|
+
*
|
|
51
|
+
* `executionMode` controls *how* the dispatcher invokes Manifest:
|
|
52
|
+
* - `inline` — emit `createManifestRuntime` + `runtime.runCommand`
|
|
53
|
+
* inline in the handler (default, preserves
|
|
54
|
+
* historical behaviour).
|
|
55
|
+
* - `externalExecutor` — import an app-owned executor function and
|
|
56
|
+
* delegate to it. The handler becomes a thin
|
|
57
|
+
* transport adapter. Required when downstream
|
|
58
|
+
* apps centralise runtime construction.
|
|
59
|
+
*
|
|
60
|
+
* `deriveInstanceId` injects an `instanceId` derived from the URL/body
|
|
61
|
+
* into the executor call when true. Off by default to avoid surprising
|
|
62
|
+
* non-instance command callers.
|
|
63
|
+
*/
|
|
64
|
+
export const DISPATCHER_DEFAULTS = {
|
|
65
|
+
enabled: true,
|
|
66
|
+
executionMode: 'inline',
|
|
67
|
+
executorImportPath: '@/lib/manifest-executor',
|
|
68
|
+
executorImportName: 'executeManifestCommand',
|
|
69
|
+
/**
|
|
70
|
+
* Whether the dispatcher extracts an `instanceId` from `body.instanceId`
|
|
71
|
+
* or `body.id` and forwards it to runCommand / the executor.
|
|
72
|
+
*
|
|
73
|
+
* Default: true. Non-create commands (release, archive, update, ...) are
|
|
74
|
+
* the common case and Manifest's `runCommand` accepts `instanceId` via
|
|
75
|
+
* its third-argument options bag. Extracting always — even for create
|
|
76
|
+
* commands that don't need it — is safe because runtime ignores it when
|
|
77
|
+
* the action is a create-only path.
|
|
78
|
+
*/
|
|
79
|
+
deriveInstanceId: true,
|
|
80
|
+
/**
|
|
81
|
+
* Canonical dispatcher path relative to `appDir`. Exposed so apps that
|
|
82
|
+
* want a different prefix (e.g. `/api/v1/manifest/...`) can override
|
|
83
|
+
* without forking the projection.
|
|
84
|
+
*/
|
|
85
|
+
path: '/manifest/[entity]/commands/[command]/route.ts',
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Default policy for the deprecated per-command "concrete" routes.
|
|
89
|
+
*
|
|
90
|
+
* When `enabled` is false, `nextjs.command` artifacts are suppressed
|
|
91
|
+
* entirely. When `legacyAliasesOnly` is true (default), generated concrete
|
|
92
|
+
* routes carry the DEPRECATED ALIAS banner and delegate to the dispatcher
|
|
93
|
+
* — they exist only for back-compat. Set both to true to keep emitting
|
|
94
|
+
* them but signal they are not the canonical surface.
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* Default policy for the deprecated per-command "concrete" routes.
|
|
98
|
+
*
|
|
99
|
+
* `enabled` is **false by default** so the canonical-only write surface
|
|
100
|
+
* (the dispatcher) is the single entry point. Apps that still need
|
|
101
|
+
* per-command routes for legacy callers must opt in explicitly with
|
|
102
|
+
* `enabled: true`. When `legacyAliasesOnly` is true (default), generated
|
|
103
|
+
* concrete routes carry the DEPRECATED ALIAS banner pointing at the
|
|
104
|
+
* dispatcher.
|
|
105
|
+
*
|
|
106
|
+
* This was reversed from the previous default (true) per the
|
|
107
|
+
* dispatcher-only-by-default goal.
|
|
108
|
+
*/
|
|
109
|
+
export const CONCRETE_COMMAND_ROUTES_DEFAULTS = {
|
|
110
|
+
enabled: false,
|
|
111
|
+
legacyAliasesOnly: true,
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Default policy for direct database read routes (GET list, GET detail).
|
|
115
|
+
*
|
|
116
|
+
* Both `enabled` and `directDbReads` default to true to preserve the
|
|
117
|
+
* historical behaviour of the projection emitting Prisma-backed read
|
|
118
|
+
* routes. Apps that prefer to author reads by hand or route them through
|
|
119
|
+
* a separate query layer can set `enabled: false` (no read routes at all)
|
|
120
|
+
* or `directDbReads: false` (route stubs only; no Prisma call inlined).
|
|
121
|
+
*
|
|
122
|
+
* Direct read routes assume a Prisma-compatible client. Manifest cannot
|
|
123
|
+
* fully decouple from that assumption without emitting a different
|
|
124
|
+
* surface; see docs/spec/config/manifest.config.md.
|
|
125
|
+
*/
|
|
126
|
+
export const READ_ROUTES_DEFAULTS = {
|
|
127
|
+
enabled: true,
|
|
128
|
+
directDbReads: true,
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Default options for the Canonical Routes projection.
|
|
132
|
+
*
|
|
133
|
+
* These mirror the inline defaults in `routes/generator.ts` so the routes
|
|
134
|
+
* projection and the `manifest config` CLI agree on a single source of
|
|
135
|
+
* truth.
|
|
136
|
+
*/
|
|
137
|
+
export const ROUTES_DEFAULTS = {
|
|
138
|
+
basePath: '/api',
|
|
139
|
+
includeAuth: true,
|
|
140
|
+
includeTenant: true,
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Build the full defaults snapshot. Used by the CLI and tests to render
|
|
144
|
+
* a stable, schema-aligned view of what Manifest will do when no user
|
|
145
|
+
* config is present.
|
|
146
|
+
*/
|
|
147
|
+
export function getManifestDefaultsSnapshot() {
|
|
148
|
+
return {
|
|
149
|
+
nextjs: NEXTJS_DEFAULTS,
|
|
150
|
+
tenantProvider: DEFAULT_TENANT_PROVIDER,
|
|
151
|
+
dispatcher: DISPATCHER_DEFAULTS,
|
|
152
|
+
concreteCommandRoutes: CONCRETE_COMMAND_ROUTES_DEFAULTS,
|
|
153
|
+
readRoutes: READ_ROUTES_DEFAULTS,
|
|
154
|
+
routes: ROUTES_DEFAULTS,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../src/manifest/projections/nextjs/defaults.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE,YAAY;IAC5B,kBAAkB,EAAE,gBAAgB;IACpC,kBAAkB,EAAE,yBAAyB;IAC7C,iBAAiB,EAAE,wBAAwB;IAC3C,mBAAmB,EAAE,KAAK;IAC1B,uBAAuB,EAAE,KAAK;IAC9B,gBAAgB,EAAE,UAAU;IAC5B,iBAAiB,EAAE,WAAW;IAC9B,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,IAAI;IAChB,eAAe,EAAE,IAAI;IACrB,UAAU,EAAE,CAAC;IACb;;;;;OAKG;IACH,kBAAkB,EAAE,GAAG;CAYvB,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,UAAU,EAAE,kBAAkB;IAC9B,YAAY,EAAE,mBAAmB;IACjC,SAAS,EAAE,OAAO;CACV,CAAC;AAEX;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,IAAI;IACb,aAAa,EAAE,QAAiB;IAChC,kBAAkB,EAAE,yBAAyB;IAC7C,kBAAkB,EAAE,wBAAwB;IAC5C;;;;;;;;;OASG;IACH,gBAAgB,EAAE,IAAI;IACtB;;;;OAIG;IACH,IAAI,EAAE,gDAAgD;CAC9C,CAAC;AAEX;;;;;;;;GAQG;AACH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,OAAO,EAAE,KAAK;IACd,iBAAiB,EAAE,IAAI;CACf,CAAC;AAEX;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,OAAO,EAAE,IAAI;IACb,aAAa,EAAE,IAAI;CACX,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ,EAAE,MAAM;IAChB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;CACX,CAAC;AAgBX;;;;GAIG;AACH,MAAM,UAAU,2BAA2B;IACzC,OAAO;QACL,MAAM,EAAE,eAAe;QACvB,cAAc,EAAE,uBAAuB;QACvC,UAAU,EAAE,mBAAmB;QAC/B,qBAAqB,EAAE,gCAAgC;QACvD,UAAU,EAAE,oBAAoB;QAChC,MAAM,EAAE,eAAe;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Next.js App Router projection for Manifest IR.
|
|
3
|
+
*
|
|
4
|
+
* Generates Next.js API route handlers using App Router conventions.
|
|
5
|
+
* Configurable for different auth providers and database setups.
|
|
6
|
+
*/
|
|
7
|
+
import type { IR } from '../../ir';
|
|
8
|
+
import type { ProjectionTarget, ProjectionRequest, ProjectionResult } from '../interface';
|
|
9
|
+
/**
|
|
10
|
+
* Re-export the canonical defaults so consumers of
|
|
11
|
+
* `@angriff36/manifest/projections/nextjs` get the defaults from the same
|
|
12
|
+
* entry point as the projection class. Anything that needs to render or
|
|
13
|
+
* snapshot the defaults (CLI inspect, tests, downstream tooling) must use
|
|
14
|
+
* these names, not redeclare them.
|
|
15
|
+
*/
|
|
16
|
+
export { NEXTJS_DEFAULTS, DEFAULT_TENANT_PROVIDER, DISPATCHER_DEFAULTS, CONCRETE_COMMAND_ROUTES_DEFAULTS, READ_ROUTES_DEFAULTS, ROUTES_DEFAULTS, getManifestDefaultsSnapshot, type ManifestDefaultsSnapshot, } from './defaults.js';
|
|
17
|
+
export type { ProjectionRequest, ProjectionArtifact, ProjectionDiagnostic, ProjectionResult, ProjectionTarget, NextJsProjectionOptions, } from '../interface';
|
|
18
|
+
/**
|
|
19
|
+
* Next.js projection implementation.
|
|
20
|
+
*/
|
|
21
|
+
export declare class NextJsProjection implements ProjectionTarget {
|
|
22
|
+
readonly name = "nextjs";
|
|
23
|
+
readonly description = "Next.js App Router API routes with configurable auth and database support";
|
|
24
|
+
readonly surfaces: readonly ["nextjs.route", "nextjs.detail", "nextjs.command", "nextjs.dispatcher", "nextjs.subscribe", "nextjs.subscriptionHook", "nextjs.sharedRuntime", "nextjs.schedule", "ts.types", "ts.client"];
|
|
25
|
+
generate(ir: IR, request: ProjectionRequest): ProjectionResult;
|
|
26
|
+
private _route;
|
|
27
|
+
private _types;
|
|
28
|
+
private _client;
|
|
29
|
+
private _command;
|
|
30
|
+
/**
|
|
31
|
+
* Generate POST command handler for an entity command.
|
|
32
|
+
* Writes MUST flow through runtime.runCommand() to enforce guards, policies, and constraints.
|
|
33
|
+
*/
|
|
34
|
+
private _generatePostCommandHandler;
|
|
35
|
+
/**
|
|
36
|
+
* Generate the canonical dispatcher route. Single dynamic file at
|
|
37
|
+
* <appDir>/manifest/[entity]/commands/[command]/route.ts
|
|
38
|
+
* Resolves entity+command at request time and delegates to
|
|
39
|
+
* RuntimeEngine.runCommand. Single canonical write path for governed
|
|
40
|
+
* mutations; downstream integrations may add aliases or CI gates.
|
|
41
|
+
*/
|
|
42
|
+
private _dispatcher;
|
|
43
|
+
private _generateDispatcherHandler;
|
|
44
|
+
/**
|
|
45
|
+
* Generate the SSE subscription route for a realtime entity.
|
|
46
|
+
* GET <appDir>/<entity>/subscribe/route.ts — streams runtime events whose
|
|
47
|
+
* subject.entity matches, over the shared singleton engine.
|
|
48
|
+
*/
|
|
49
|
+
private _subscribe;
|
|
50
|
+
/**
|
|
51
|
+
* Generate a typed client-side EventSource hook for a realtime entity,
|
|
52
|
+
* with exponential-backoff reconnect.
|
|
53
|
+
*/
|
|
54
|
+
private _subscriptionHook;
|
|
55
|
+
/**
|
|
56
|
+
* Generate the module-scoped singleton runtime accessor. Emitted only when
|
|
57
|
+
* the IR contains at least one realtime entity — SSE routes and command
|
|
58
|
+
* routes must share ONE engine instance for subscriptions to observe
|
|
59
|
+
* command events (the event stream is per-engine and in-memory).
|
|
60
|
+
*/
|
|
61
|
+
private _sharedRuntime;
|
|
62
|
+
/**
|
|
63
|
+
* Generate detail (getById) route handler for an entity.
|
|
64
|
+
* Uses direct Prisma findUnique (bypassing runtime) for efficiency.
|
|
65
|
+
*/
|
|
66
|
+
private _detail;
|
|
67
|
+
/**
|
|
68
|
+
* Generate GET route for an entity.
|
|
69
|
+
* Uses direct Prisma query (bypassing runtime) for efficiency.
|
|
70
|
+
*/
|
|
71
|
+
private _generateGetRoute;
|
|
72
|
+
/**
|
|
73
|
+
* Generate GET detail route for a single entity instance.
|
|
74
|
+
* Uses direct Prisma findUnique (bypassing runtime) for efficiency.
|
|
75
|
+
*/
|
|
76
|
+
private _generateDetailRoute;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../src/manifest/projections/nextjs/generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAuB,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAGjB,MAAM,cAAc,CAAC;AAWtB;;;;;;GAMG;AACH,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,EACpB,eAAe,EACf,2BAA2B,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,eAAe,CAAC;AAOvB,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAobtB;;GAEG;AACH,qBAAa,gBAAiB,YAAW,gBAAgB;IACvD,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,WAAW,+EAA+E;IACnG,QAAQ,CAAC,QAAQ,uMAAwM;IAEzN,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,iBAAiB,GAAG,gBAAgB;IAwP9D,OAAO,CAAC,MAAM;IAwBd,OAAO,CAAC,MAAM;IAcd,OAAO,CAAC,OAAO;IAqCf,OAAO,CAAC,QAAQ;IAoChB;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IAoInC;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,0BAA0B;IAqJlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAuFlB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAsGzB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IA2CtB;;;OAGG;IACH,OAAO,CAAC,OAAO;IAuBf;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAqDzB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;CAmF7B"}
|