@metaobjectsdev/codegen-ts 0.24.4 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -12
- package/dist/api-surface.d.ts +29 -0
- package/dist/api-surface.d.ts.map +1 -1
- package/dist/api-surface.js +47 -0
- package/dist/api-surface.js.map +1 -1
- package/dist/client-directive.d.ts +18 -0
- package/dist/client-directive.d.ts.map +1 -0
- package/dist/client-directive.js +37 -0
- package/dist/client-directive.js.map +1 -0
- package/dist/column-mapper.d.ts +12 -0
- package/dist/column-mapper.d.ts.map +1 -1
- package/dist/column-mapper.js +1 -0
- package/dist/column-mapper.js.map +1 -1
- package/dist/constants.d.ts +24 -11
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +54 -19
- package/dist/constants.js.map +1 -1
- package/dist/db-emitting.d.ts +6 -0
- package/dist/db-emitting.d.ts.map +1 -0
- package/dist/db-emitting.js +26 -0
- package/dist/db-emitting.js.map +1 -0
- package/dist/generator-registry.d.ts.map +1 -1
- package/dist/generator-registry.js +7 -1
- package/dist/generator-registry.js.map +1 -1
- package/dist/generator.d.ts +5 -0
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js.map +1 -1
- package/dist/generators/agent-docs-file.d.ts +19 -0
- package/dist/generators/agent-docs-file.d.ts.map +1 -0
- package/dist/generators/agent-docs-file.js +257 -0
- package/dist/generators/agent-docs-file.js.map +1 -0
- package/dist/generators/agent-requirements-page.d.ts +22 -0
- package/dist/generators/agent-requirements-page.d.ts.map +1 -0
- package/dist/generators/agent-requirements-page.js +175 -0
- package/dist/generators/agent-requirements-page.js.map +1 -0
- package/dist/generators/agent-schema-input.d.ts +69 -0
- package/dist/generators/agent-schema-input.d.ts.map +1 -0
- package/dist/generators/agent-schema-input.js +23 -0
- package/dist/generators/agent-schema-input.js.map +1 -0
- package/dist/generators/agent-schema-page.d.ts +21 -0
- package/dist/generators/agent-schema-page.d.ts.map +1 -0
- package/dist/generators/agent-schema-page.js +241 -0
- package/dist/generators/agent-schema-page.js.map +1 -0
- package/dist/generators/agent-ui-page.d.ts +22 -0
- package/dist/generators/agent-ui-page.d.ts.map +1 -0
- package/dist/generators/agent-ui-page.js +253 -0
- package/dist/generators/agent-ui-page.js.map +1 -0
- package/dist/generators/api-docs-file.d.ts.map +1 -1
- package/dist/generators/api-docs-file.js +13 -6
- package/dist/generators/api-docs-file.js.map +1 -1
- package/dist/generators/api-model.d.ts +6 -0
- package/dist/generators/api-model.d.ts.map +1 -1
- package/dist/generators/api-model.js +54 -35
- package/dist/generators/api-model.js.map +1 -1
- package/dist/generators/callable-file.js +1 -1
- package/dist/generators/callable-file.js.map +1 -1
- package/dist/generators/docs-data-builder.d.ts.map +1 -1
- package/dist/generators/docs-data-builder.js +47 -2
- package/dist/generators/docs-data-builder.js.map +1 -1
- package/dist/generators/docs-data.d.ts +6 -2
- package/dist/generators/docs-data.d.ts.map +1 -1
- package/dist/generators/index.d.ts +3 -0
- package/dist/generators/index.d.ts.map +1 -1
- package/dist/generators/index.js +4 -0
- package/dist/generators/index.js.map +1 -1
- package/dist/generators/names-file.d.ts +17 -0
- package/dist/generators/names-file.d.ts.map +1 -0
- package/dist/generators/names-file.js +95 -0
- package/dist/generators/names-file.js.map +1 -0
- package/dist/generators/requirements-markdown.d.ts +18 -1
- package/dist/generators/requirements-markdown.d.ts.map +1 -1
- package/dist/generators/requirements-markdown.js +11 -9
- package/dist/generators/requirements-markdown.js.map +1 -1
- package/dist/generators/routes-file-hono.d.ts +17 -2
- package/dist/generators/routes-file-hono.d.ts.map +1 -1
- package/dist/generators/routes-file-hono.js +15 -12
- package/dist/generators/routes-file-hono.js.map +1 -1
- package/dist/generators/routes-file.d.ts +17 -2
- package/dist/generators/routes-file.d.ts.map +1 -1
- package/dist/generators/routes-file.js +10 -8
- package/dist/generators/routes-file.js.map +1 -1
- package/dist/generators/template-generator.d.ts.map +1 -1
- package/dist/generators/template-generator.js +20 -6
- package/dist/generators/template-generator.js.map +1 -1
- package/dist/index.d.ts +21 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -4
- package/dist/index.js.map +1 -1
- package/dist/metaobjects-config.d.ts +67 -1
- package/dist/metaobjects-config.d.ts.map +1 -1
- package/dist/metaobjects-config.js +10 -1
- package/dist/metaobjects-config.js.map +1 -1
- package/dist/names.d.ts +275 -0
- package/dist/names.d.ts.map +1 -0
- package/dist/names.js +434 -0
- package/dist/names.js.map +1 -0
- package/dist/naming.d.ts +17 -0
- package/dist/naming.d.ts.map +1 -1
- package/dist/naming.js +21 -0
- package/dist/naming.js.map +1 -1
- package/dist/overwrite-policy.d.ts.map +1 -1
- package/dist/overwrite-policy.js +15 -3
- package/dist/overwrite-policy.js.map +1 -1
- package/dist/payload-codegen.d.ts.map +1 -1
- package/dist/payload-codegen.js +4 -3
- package/dist/payload-codegen.js.map +1 -1
- package/dist/projection/extract-view-spec.d.ts +25 -1
- package/dist/projection/extract-view-spec.d.ts.map +1 -1
- package/dist/projection/extract-view-spec.js +79 -6
- package/dist/projection/extract-view-spec.js.map +1 -1
- package/dist/prompt-generator-gate.d.ts +27 -0
- package/dist/prompt-generator-gate.d.ts.map +1 -0
- package/dist/prompt-generator-gate.js +62 -0
- package/dist/prompt-generator-gate.js.map +1 -0
- package/dist/reference-templates.d.ts +22 -5
- package/dist/reference-templates.d.ts.map +1 -1
- package/dist/reference-templates.js +55 -21
- package/dist/reference-templates.js.map +1 -1
- package/dist/render-context.d.ts +20 -1
- package/dist/render-context.d.ts.map +1 -1
- package/dist/render-context.js +2 -0
- package/dist/render-context.js.map +1 -1
- package/dist/retired-codegen-attrs.d.ts +32 -0
- package/dist/retired-codegen-attrs.d.ts.map +1 -0
- package/dist/retired-codegen-attrs.js +47 -0
- package/dist/retired-codegen-attrs.js.map +1 -0
- package/dist/routes-expose.d.ts +63 -0
- package/dist/routes-expose.d.ts.map +1 -0
- package/dist/routes-expose.js +57 -0
- package/dist/routes-expose.js.map +1 -0
- package/dist/runner.d.ts +18 -0
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +115 -7
- package/dist/runner.js.map +1 -1
- package/dist/templates/callable-file.d.ts +7 -2
- package/dist/templates/callable-file.d.ts.map +1 -1
- package/dist/templates/callable-file.js +54 -9
- package/dist/templates/callable-file.js.map +1 -1
- package/dist/templates/drizzle-schema.d.ts.map +1 -1
- package/dist/templates/drizzle-schema.js +236 -65
- package/dist/templates/drizzle-schema.js.map +1 -1
- package/dist/templates/entity-constants.d.ts +15 -6
- package/dist/templates/entity-constants.d.ts.map +1 -1
- package/dist/templates/entity-constants.js +85 -161
- package/dist/templates/entity-constants.js.map +1 -1
- package/dist/templates/entity-file.d.ts.map +1 -1
- package/dist/templates/entity-file.js +38 -4
- package/dist/templates/entity-file.js.map +1 -1
- package/dist/templates/entity-meta-file.d.ts +15 -1
- package/dist/templates/entity-meta-file.d.ts.map +1 -1
- package/dist/templates/entity-meta-file.js +12 -2
- package/dist/templates/entity-meta-file.js.map +1 -1
- package/dist/templates/entity-ui-descriptor.d.ts +112 -0
- package/dist/templates/entity-ui-descriptor.d.ts.map +1 -0
- package/dist/templates/entity-ui-descriptor.js +238 -0
- package/dist/templates/entity-ui-descriptor.js.map +1 -0
- package/dist/templates/field-meta.d.ts +46 -9
- package/dist/templates/field-meta.d.ts.map +1 -1
- package/dist/templates/field-meta.js +95 -21
- package/dist/templates/field-meta.js.map +1 -1
- package/dist/templates/names-decl.d.ts +38 -0
- package/dist/templates/names-decl.d.ts.map +1 -0
- package/dist/templates/names-decl.js +104 -0
- package/dist/templates/names-decl.js.map +1 -0
- package/dist/templates/output-parser.d.ts.map +1 -1
- package/dist/templates/output-parser.js +54 -8
- package/dist/templates/output-parser.js.map +1 -1
- package/dist/templates/projection-decl.d.ts +21 -0
- package/dist/templates/projection-decl.d.ts.map +1 -1
- package/dist/templates/projection-decl.js +53 -29
- package/dist/templates/projection-decl.js.map +1 -1
- package/dist/templates/queries-file.d.ts.map +1 -1
- package/dist/templates/queries-file.js +17 -2
- package/dist/templates/queries-file.js.map +1 -1
- package/dist/templates/render-helper.d.ts.map +1 -1
- package/dist/templates/render-helper.js +3 -1
- package/dist/templates/render-helper.js.map +1 -1
- package/dist/templates/requirement-test.d.ts.map +1 -1
- package/dist/templates/requirement-test.js +48 -21
- package/dist/templates/requirement-test.js.map +1 -1
- package/dist/templates/routes-file-hono.d.ts +2 -1
- package/dist/templates/routes-file-hono.d.ts.map +1 -1
- package/dist/templates/routes-file-hono.js +11 -2
- package/dist/templates/routes-file-hono.js.map +1 -1
- package/dist/templates/routes-file.d.ts +2 -1
- package/dist/templates/routes-file.d.ts.map +1 -1
- package/dist/templates/routes-file.js +54 -21
- package/dist/templates/routes-file.js.map +1 -1
- package/dist/templates/value-object-file.d.ts.map +1 -1
- package/dist/templates/value-object-file.js +15 -1
- package/dist/templates/value-object-file.js.map +1 -1
- package/dist/templates/view-decl.d.ts +37 -1
- package/dist/templates/view-decl.d.ts.map +1 -1
- package/dist/templates/view-decl.js +27 -3
- package/dist/templates/view-decl.js.map +1 -1
- package/dist/templates/zod-validators.d.ts +21 -0
- package/dist/templates/zod-validators.d.ts.map +1 -1
- package/dist/templates/zod-validators.js +40 -5
- package/dist/templates/zod-validators.js.map +1 -1
- package/dist/view-context.d.ts +24 -0
- package/dist/view-context.d.ts.map +1 -0
- package/dist/view-context.js +81 -0
- package/dist/view-context.js.map +1 -0
- package/package.json +6 -6
- package/src/api-surface.ts +53 -0
- package/src/client-directive.ts +36 -0
- package/src/column-mapper.ts +13 -0
- package/src/constants.ts +91 -16
- package/src/db-emitting.ts +31 -0
- package/src/generator-registry.ts +7 -0
- package/src/generator.ts +5 -0
- package/src/generators/agent-docs-file.ts +297 -0
- package/src/generators/agent-requirements-page.ts +199 -0
- package/src/generators/agent-schema-input.ts +88 -0
- package/src/generators/agent-schema-page.ts +297 -0
- package/src/generators/agent-ui-page.ts +290 -0
- package/src/generators/api-docs-file.ts +13 -6
- package/src/generators/api-model.ts +63 -34
- package/src/generators/callable-file.ts +1 -1
- package/src/generators/docs-data-builder.ts +46 -2
- package/src/generators/docs-data.ts +6 -2
- package/src/generators/index.ts +10 -0
- package/src/generators/names-file.ts +98 -0
- package/src/generators/requirements-markdown.ts +36 -2
- package/src/generators/routes-file-hono.ts +26 -15
- package/src/generators/routes-file.ts +20 -7
- package/src/generators/template-generator.ts +20 -6
- package/src/index.ts +63 -5
- package/src/metaobjects-config.ts +78 -2
- package/src/names.ts +630 -0
- package/src/naming.ts +23 -0
- package/src/overwrite-policy.ts +15 -3
- package/src/payload-codegen.ts +4 -3
- package/src/projection/extract-view-spec.ts +85 -6
- package/src/prompt-generator-gate.ts +73 -0
- package/src/reference/barrel.ts +3 -0
- package/src/reference/entity.ts +28 -2
- package/src/reference/names.ts +125 -0
- package/src/reference/queries.ts +14 -2
- package/src/reference/routes-hono.ts +113 -0
- package/src/reference/routes.ts +30 -9
- package/src/reference-templates.ts +61 -21
- package/src/render-context.ts +22 -1
- package/src/retired-codegen-attrs.ts +52 -0
- package/src/routes-expose.ts +86 -0
- package/src/runner.ts +129 -11
- package/src/templates/callable-file.ts +60 -8
- package/src/templates/drizzle-schema.ts +248 -60
- package/src/templates/entity-constants.ts +95 -184
- package/src/templates/entity-file.ts +46 -4
- package/src/templates/entity-meta-file.ts +16 -3
- package/src/templates/entity-ui-descriptor.ts +305 -0
- package/src/templates/field-meta.ts +100 -19
- package/src/templates/names-decl.ts +165 -0
- package/src/templates/output-parser.ts +54 -7
- package/src/templates/projection-decl.ts +72 -31
- package/src/templates/queries-file.ts +17 -2
- package/src/templates/render-helper.ts +3 -1
- package/src/templates/requirement-test.ts +49 -18
- package/src/templates/routes-file-hono.ts +14 -2
- package/src/templates/routes-file.ts +69 -24
- package/src/templates/value-object-file.ts +15 -1
- package/src/templates/view-decl.ts +53 -3
- package/src/templates/zod-validators.ts +41 -5
- package/src/view-context.ts +88 -0
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,10 @@ export type { TemplateSpecEntry, TemplateSpecFile } from "./template-codegen/tem
|
|
|
10
10
|
export type { TemplateScope } from "./generators/template-generator.js";
|
|
11
11
|
export { generatorRegistry, listGenerators, getGenerator, } from "./generator-registry.js";
|
|
12
12
|
export type { GeneratorRegistryEntry, GeneratorTier } from "./generator-registry.js";
|
|
13
|
-
export type { MetaobjectsGenConfig, NormalizedMetaobjectsGenConfig, ResolvedGenConfig, Dialect, ExtStyle, ColumnNamingStrategy, MetaDataTypeProvider, GeneratorSpec, DocsConfig, ResolvedDocsConfig, DocsSurface, ApiSurface } from "./metaobjects-config.js";
|
|
13
|
+
export type { MetaobjectsGenConfig, NormalizedMetaobjectsGenConfig, ResolvedGenConfig, Dialect, ExtStyle, ColumnNamingStrategy, MetaDataTypeProvider, GeneratorSpec, DocsConfig, ResolvedDocsConfig, DocsSurface, ApiSurface, VerifyConfig } from "./metaobjects-config.js";
|
|
14
14
|
export { defineConfig, normalizeConfig, resolveGenerators, resolveDocsConfig } from "./metaobjects-config.js";
|
|
15
|
+
export { DEFAULT_DIALECT } from "./metaobjects-config.js";
|
|
16
|
+
export { dbEmittingObjects, missingDialectMessage } from "./db-emitting.js";
|
|
15
17
|
export { apiLabel } from "./generators/api-label.js";
|
|
16
18
|
export type { ColumnSpec, DefaultExpr } from "./column-mapper.js";
|
|
17
19
|
export { mapColumnType } from "./column-mapper.js";
|
|
@@ -25,7 +27,8 @@ export type { WriteStatus, WriteResult, MergeStrategy, BaselineMode, DecideAndWr
|
|
|
25
27
|
export { decideAndWrite, GitMissingError } from "./overwrite-policy.js";
|
|
26
28
|
export { contentHash, readGeneratedHash, listGeneratedPaths } from "./overwrite-policy.js";
|
|
27
29
|
export { CodegenError } from "./errors.js";
|
|
28
|
-
export { GENERATED_HEADER,
|
|
30
|
+
export { GENERATED_HEADER, DEFAULT_OUT_DIR, RETIRED_CODEGEN_ATTRS, type RetiredCodegenAttr } from "./constants.js";
|
|
31
|
+
export { warnRetiredCodegenAttrs } from "./retired-codegen-attrs.js";
|
|
29
32
|
export { formatTs } from "./format.js";
|
|
30
33
|
export { pluralize, columnNameFromField, tableNameFromEntity, viewNameFromProjection } from "./naming.js";
|
|
31
34
|
export { packageToPath, entityOutputPath, crossEntitySpecifier, barrelEntrySpecifier, relativeModuleSpecifier, entityModuleSpecifier, siblingSpecifier, barrelModuleSpecifier } from "./import-path.js";
|
|
@@ -34,15 +37,18 @@ export { docPageOutputPath, docPageHref, docPageNode, effectivePackage, assertNo
|
|
|
34
37
|
export type { DocPageNode, DocPagePlacement } from "./docs-paths.js";
|
|
35
38
|
export { isProjection, isWriteThrough } from "./projection/projection-detector.js";
|
|
36
39
|
export { isAbstract, emitsInstanceArtifacts, emitsWriteArtifacts } from "./instance-artifacts.js";
|
|
37
|
-
export { servesReadApi, servesWriteApi } from "./api-surface.js";
|
|
40
|
+
export { hasGeneratedForm, restPath, servesReadApi, servesWriteApi } from "./api-surface.js";
|
|
41
|
+
export { viewForContext, VIEW_CONTEXT_FORM, VIEW_CONTEXT_GRID } from "./view-context.js";
|
|
42
|
+
export { humanize, inferViewKind, labelFor, currencyMetaFor, valueObjectFor } from "./templates/field-meta.js";
|
|
38
43
|
export { renderEntityMetaFile, entityMetaFileName, entityMetaSpecifier } from "./templates/entity-meta-file.js";
|
|
39
44
|
export { isTphDiscriminatorBase, tphConcreteSubtypes, collectTphSubtypeFields, tphPlan, tphRouteSegment } from "./templates/tph-discriminator.js";
|
|
40
45
|
export type { TphPlan, TphSubtypePlan } from "./templates/tph-discriminator.js";
|
|
41
|
-
export { isTphSubtype, tphDiscriminatorPin } from "./templates/zod-validators.js";
|
|
46
|
+
export { isTphSubtype, tphDiscriminatorBase, tphDiscriminatorPin } from "./templates/zod-validators.js";
|
|
47
|
+
export { isSortableField, sortableFields } from "./templates/filter-shared.js";
|
|
42
48
|
export { renderTphDiscriminatorUnion } from "./templates/tph-discriminator.js";
|
|
43
49
|
export { hasWritableRdbSource, hasAnyRdbSource } from "./source-detect.js";
|
|
44
50
|
export { renderSharedEnumsFile, SHARED_ENUMS_BASENAME } from "./templates/enums-file.js";
|
|
45
|
-
export { resolveReferenceRoot, readReferenceTemplate, REFERENCE_GENERATOR_NAMES } from "./reference-templates.js";
|
|
51
|
+
export { resolveReferenceRoot, readReferenceTemplate, REFERENCE_GENERATOR_NAMES, makeReferenceReader } from "./reference-templates.js";
|
|
46
52
|
export type { ReferenceGeneratorName } from "./reference-templates.js";
|
|
47
53
|
export { code, imp, joinCode } from "ts-poet";
|
|
48
54
|
export type { Code } from "ts-poet";
|
|
@@ -58,8 +64,14 @@ export { renderFilterType } from "./templates/filter-type.js";
|
|
|
58
64
|
export { renderFilterAllowlist, renderSortAllowlist } from "./templates/filter-allowlist.js";
|
|
59
65
|
export { renderEntityConstants, resourcePath } from "./templates/entity-constants.js";
|
|
60
66
|
export { renderQueriesFile } from "./templates/queries-file.js";
|
|
67
|
+
export { CRUD_VERBS, resolveExpose, intersectExpose, exposeLine } from "./routes-expose.js";
|
|
68
|
+
export type { CrudVerb, ExposeOption } from "./routes-expose.js";
|
|
61
69
|
export { renderRoutesFile } from "./templates/routes-file.js";
|
|
70
|
+
export { renderRoutesFileHono } from "./templates/routes-file-hono.js";
|
|
62
71
|
export { renderValueObjectFile } from "./templates/value-object-file.js";
|
|
72
|
+
export { renderNamesDecl } from "./templates/names-decl.js";
|
|
73
|
+
export type { NamesDeclOpts } from "./templates/names-decl.js";
|
|
74
|
+
export { resolveObjectNames, resolveSuperFragmentNames, namesArtifactSuperOf, namesRef, namesConstArg, physicalNameExpr, columnExpr, type ObjectNames, type FieldNames, type SuperNames, } from "./names.js";
|
|
63
75
|
export { renderProjectionDecl } from "./templates/projection-decl.js";
|
|
64
76
|
export type { ProjectionDeclOpts } from "./templates/projection-decl.js";
|
|
65
77
|
export { extractViewSpec } from "./projection/extract-view-spec.js";
|
|
@@ -78,6 +90,9 @@ export type { TemplateDocData, TemplateOutputPart } from "./generators/template-
|
|
|
78
90
|
export { buildTemplateDocData } from "./generators/template-doc-builder.js";
|
|
79
91
|
export { requirementTests } from "./generators/requirement-tests.js";
|
|
80
92
|
export { requirementsFile } from "./generators/requirements-file.js";
|
|
93
|
+
export { agentDocsFile } from "./generators/agent-docs-file.js";
|
|
94
|
+
export type { AgentDocsFileOpts } from "./generators/agent-docs-file.js";
|
|
95
|
+
export type { AgentSchemaInput, SchemaColumnLike, SchemaTableLike, SchemaViewLike, } from "./generators/agent-schema-input.js";
|
|
81
96
|
export type { RequirementRow } from "./generators/requirements-view.js";
|
|
82
97
|
export { requirementRows } from "./generators/requirements-view.js";
|
|
83
98
|
export type { RequirementTestsOpts, RequirementTestRenderer, } from "./generators/requirement-tests.js";
|
|
@@ -89,4 +104,5 @@ export { reconcileOrphans, refusedOrphanMessage } from "./reconcile-orphans.js";
|
|
|
89
104
|
export type { OrphanDecision, ReconcileOrphansArgs, OrphanPolicy, } from "./reconcile-orphans.js";
|
|
90
105
|
export { sweepOrphans } from "./orphan-sweep.js";
|
|
91
106
|
export type { OrphanJob, SweepOrphansArgs, SweepOrphansResult, } from "./orphan-sweep.js";
|
|
107
|
+
export { withClientDirective, CLIENT_DIRECTIVE } from "./client-directive.js";
|
|
92
108
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAI7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EACL,uB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AAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,cAAc,GACf,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAKxE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,YAAY,EACV,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,UAAU,GACX,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,aAAa,EACb,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAO3E,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAChF,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,14 @@ export { parseTemplateSpec, templateSpecToGenerators } from "./template-codegen/
|
|
|
12
12
|
// ADR-0021 D3 — stable-name generator registry + discoverability surface.
|
|
13
13
|
export { generatorRegistry, listGenerators, getGenerator, } from "./generator-registry.js";
|
|
14
14
|
export { defineConfig, normalizeConfig, resolveGenerators, resolveDocsConfig } from "./metaobjects-config.js";
|
|
15
|
+
// The dialect every generator falls back to when a config declares none. Exported because
|
|
16
|
+
// `meta docs` must apply the SAME default `normalizeConfig` does — a command that resolved
|
|
17
|
+
// the dialect differently would document a schema the toolchain does not produce.
|
|
18
|
+
export { DEFAULT_DIALECT } from "./metaobjects-config.js";
|
|
19
|
+
// The runner's own "does this model need a dialect?" guard. `meta docs` must ask it rather
|
|
20
|
+
// than defaulting, because DEFAULT_DIALECT is inert and a DB project with no dialect is one
|
|
21
|
+
// `meta gen` REFUSES — documenting it as sqlite states an answer the toolchain never gave.
|
|
22
|
+
export { dbEmittingObjects, missingDialectMessage } from "./db-emitting.js";
|
|
15
23
|
export { apiLabel } from "./generators/api-label.js";
|
|
16
24
|
export { mapColumnType } from "./column-mapper.js";
|
|
17
25
|
export { buildPkMap } from "./pk-resolver.js";
|
|
@@ -26,7 +34,8 @@ export { decideAndWrite, GitMissingError } from "./overwrite-policy.js";
|
|
|
26
34
|
// convicting every stranger's file that happens to sit in the same directory.
|
|
27
35
|
export { contentHash, readGeneratedHash, listGeneratedPaths } from "./overwrite-policy.js";
|
|
28
36
|
export { CodegenError } from "./errors.js";
|
|
29
|
-
export { GENERATED_HEADER,
|
|
37
|
+
export { GENERATED_HEADER, DEFAULT_OUT_DIR, RETIRED_CODEGEN_ATTRS } from "./constants.js";
|
|
38
|
+
export { warnRetiredCodegenAttrs } from "./retired-codegen-attrs.js";
|
|
30
39
|
export { formatTs } from "./format.js";
|
|
31
40
|
export { pluralize, columnNameFromField, tableNameFromEntity, viewNameFromProjection } from "./naming.js";
|
|
32
41
|
export { packageToPath, entityOutputPath, crossEntitySpecifier, barrelEntrySpecifier, relativeModuleSpecifier, entityModuleSpecifier, siblingSpecifier, barrelModuleSpecifier } from "./import-path.js";
|
|
@@ -34,13 +43,28 @@ export { docPageOutputPath, docPageHref, docPageNode, effectivePackage, assertNo
|
|
|
34
43
|
export { isProjection, isWriteThrough } from "./projection/projection-detector.js";
|
|
35
44
|
export { isAbstract, emitsInstanceArtifacts, emitsWriteArtifacts } from "./instance-artifacts.js";
|
|
36
45
|
// The UI tier asks THESE — "is there an endpoint?" — never the storage predicates.
|
|
37
|
-
export { servesReadApi, servesWriteApi } from "./api-surface.js";
|
|
46
|
+
export { hasGeneratedForm, restPath, servesReadApi, servesWriteApi } from "./api-surface.js";
|
|
47
|
+
// #356 — every emitter selects a field's view by the SURFACE it renders, never by
|
|
48
|
+
// declaration position. An owned generator (FR-040) composing the render layer must
|
|
49
|
+
// use this too, or it reinstates the order-dependence in its own copy.
|
|
50
|
+
export { viewForContext, VIEW_CONTEXT_FORM, VIEW_CONTEXT_GRID } from "./view-context.js";
|
|
51
|
+
// The shared per-field UI derivation. `valueObjectFor` is the predicate the React form
|
|
52
|
+
// generator and the `agent/ui.md` docs page must both ask — it decides whether a field is
|
|
53
|
+
// rendered as an input at all — and `humanize` is the one body behind every generated
|
|
54
|
+
// label. Both are exported so the react tier reads them rather than keeping a copy.
|
|
55
|
+
export { humanize, inferViewKind, labelFor, currencyMetaFor, valueObjectFor } from "./templates/field-meta.js";
|
|
38
56
|
// The DB-free descriptor module the UI tier imports from (see entity-meta-file.ts).
|
|
39
57
|
export { renderEntityMetaFile, entityMetaFileName, entityMetaSpecifier } from "./templates/entity-meta-file.js";
|
|
40
58
|
// FR-017 TPH helpers — used by the per-framework codegen packages (tanstack,
|
|
41
59
|
// react) to dispatch polymorphic/per-subtype emission and skip subtype files.
|
|
42
60
|
export { isTphDiscriminatorBase, tphConcreteSubtypes, collectTphSubtypeFields, tphPlan, tphRouteSegment } from "./templates/tph-discriminator.js";
|
|
43
|
-
export { isTphSubtype, tphDiscriminatorPin } from "./templates/zod-validators.js";
|
|
61
|
+
export { isTphSubtype, tphDiscriminatorBase, tphDiscriminatorPin } from "./templates/zod-validators.js";
|
|
62
|
+
// The ONE sortability rule. It builds the server-side `<Entity>SortAllowlist` and the
|
|
63
|
+
// client-side sort union, and it is public so a UI-tier generator (a data-grid column
|
|
64
|
+
// emitter, say) marks a column sortable by ASKING the server's rule rather than
|
|
65
|
+
// reimplementing its three branches out of tree. A hand-copied predicate is how the
|
|
66
|
+
// grid came to offer headers the allowlist rejects (#352/#354).
|
|
67
|
+
export { isSortableField, sortableFields } from "./templates/filter-shared.js";
|
|
44
68
|
// ADR-0034 reference-template composition helpers. Promoted to the public engine
|
|
45
69
|
// surface so a COPIED reference generator (src/reference/*.ts → consumer's
|
|
46
70
|
// codegen/generators/*.ts) imports only `@metaobjectsdev/codegen-ts`, never a
|
|
@@ -51,7 +75,7 @@ export { hasWritableRdbSource, hasAnyRdbSource } from "./source-detect.js";
|
|
|
51
75
|
export { renderSharedEnumsFile, SHARED_ENUMS_BASENAME } from "./templates/enums-file.js";
|
|
52
76
|
// ADR-0034 scaffold-and-own — reader for the copyable reference generators in
|
|
53
77
|
// `src/reference/*.ts`. `meta init` uses this to copy them into the consumer's repo.
|
|
54
|
-
export { resolveReferenceRoot, readReferenceTemplate, REFERENCE_GENERATOR_NAMES } from "./reference-templates.js";
|
|
78
|
+
export { resolveReferenceRoot, readReferenceTemplate, REFERENCE_GENERATOR_NAMES, makeReferenceReader } from "./reference-templates.js";
|
|
55
79
|
// ts-poet composition primitives, re-exported from THIS package's own ts-poet
|
|
56
80
|
// instance. The ADR-0034 owned/scaffolded generators MUST import these from here
|
|
57
81
|
// rather than from a bare "ts-poet": ts-poet recognizes nested Code/Import
|
|
@@ -79,8 +103,14 @@ export { renderFilterType } from "./templates/filter-type.js";
|
|
|
79
103
|
export { renderFilterAllowlist, renderSortAllowlist } from "./templates/filter-allowlist.js";
|
|
80
104
|
export { renderEntityConstants, resourcePath } from "./templates/entity-constants.js";
|
|
81
105
|
export { renderQueriesFile } from "./templates/queries-file.js";
|
|
106
|
+
// #348 — which CRUD verbs a generated routes file mounts. Public because an OWNED
|
|
107
|
+
// routes generator (ADR-0034) composes the same render call and needs the same option.
|
|
108
|
+
export { CRUD_VERBS, resolveExpose, intersectExpose, exposeLine } from "./routes-expose.js";
|
|
82
109
|
export { renderRoutesFile } from "./templates/routes-file.js";
|
|
110
|
+
export { renderRoutesFileHono } from "./templates/routes-file-hono.js";
|
|
83
111
|
export { renderValueObjectFile } from "./templates/value-object-file.js";
|
|
112
|
+
export { renderNamesDecl } from "./templates/names-decl.js";
|
|
113
|
+
export { resolveObjectNames, resolveSuperFragmentNames, namesArtifactSuperOf, namesRef, namesConstArg, physicalNameExpr, columnExpr, } from "./names.js";
|
|
84
114
|
export { renderProjectionDecl } from "./templates/projection-decl.js";
|
|
85
115
|
export { extractViewSpec } from "./projection/extract-view-spec.js";
|
|
86
116
|
export { emitViewDdl } from "./projection/view-ddl-emit.js";
|
|
@@ -103,6 +133,9 @@ export { buildTemplateDocData } from "./generators/template-doc-builder.js";
|
|
|
103
133
|
// worse than the bug report this is meant to avoid.
|
|
104
134
|
export { requirementTests } from "./generators/requirement-tests.js";
|
|
105
135
|
export { requirementsFile } from "./generators/requirements-file.js";
|
|
136
|
+
// The `agent` docs surface. `AgentSchemaInput` is exported because the CLI SUPPLIES it —
|
|
137
|
+
// codegen-ts deliberately does not compute the physical schema (see agent-schema-input.ts).
|
|
138
|
+
export { agentDocsFile } from "./generators/agent-docs-file.js";
|
|
106
139
|
// The projection itself, not just its type: it is the authority on WHICH doc slots a
|
|
107
140
|
// requirement surface actually renders, and `meta verify`'s authoring lint tells an
|
|
108
141
|
// author that `summary` is invisible while `title` is the entry's label. Both halves of
|
|
@@ -117,4 +150,7 @@ export { renderRequirementTest } from "./templates/requirement-test.js";
|
|
|
117
150
|
// reconcile the same way the runner does instead of hand-rolling the walk.
|
|
118
151
|
export { reconcileOrphans, refusedOrphanMessage } from "./reconcile-orphans.js";
|
|
119
152
|
export { sweepOrphans } from "./orphan-sweep.js";
|
|
153
|
+
// FR-040 §6.4 — the client-component directive for generated CLIENT artifacts.
|
|
154
|
+
// Public so an OWNED generator applies it the same way the built-ins do.
|
|
155
|
+
export { withClientDirective, CLIENT_DIRECTIVE } from "./client-directive.js";
|
|
120
156
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,EAAE;AACF,yCAAyC;AACzC,wEAAwE;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE7E,+EAA+E;AAC/E,kEAAkE;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,qCAAqC,CAAC;AAS7C,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAIlG,0EAA0E;AAC1E,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,YAAY,GACb,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC9G,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AASxD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxE,mFAAmF;AACnF,qFAAqF;AACrF,kFAAkF;AAClF,+EAA+E;AAC/E,6EAA6E;AAC7E,8EAA8E;AAC9E,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAA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E,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAMhF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,+EAA+E;AAC/E,yEAAyE;AACzE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -49,6 +49,14 @@ export interface ResolvedGenConfig {
|
|
|
49
49
|
* api-docs reads this to AUTO-DETECT whether to document the Hono CRUD surface
|
|
50
50
|
* (it otherwise mirrors the default Fastify-only suite). Undefined ⇒ false. */
|
|
51
51
|
includeHonoRoutes?: boolean;
|
|
52
|
+
/** §A6 — whether the OPT-IN names generator (namesFile) is active in the run,
|
|
53
|
+
* aggregated by the runner from the suite's `emitsNames` markers. A generator that
|
|
54
|
+
* wants to REFERENCE `<Entity>Names` reads this to know the artifact will exist:
|
|
55
|
+
* the names generator is opt-in under ADR-0034 scaffold-and-own, so an
|
|
56
|
+
* unconditional import would break every project that has not enabled it.
|
|
57
|
+
* Undefined ⇒ false. Templates read the same fact off `RenderContext.includeNames`,
|
|
58
|
+
* which the runner sets from this same aggregation. */
|
|
59
|
+
includeNames?: boolean;
|
|
52
60
|
/**
|
|
53
61
|
* FR-019 / ADR-0026: the module specifier from which an externally-PROVIDED
|
|
54
62
|
* shared enum (`@provided: true` on an abstract package-level `field.enum`) is
|
|
@@ -100,6 +108,34 @@ export interface MetaobjectsGenConfig extends Omit<ResolvedGenConfig, "dbImport"
|
|
|
100
108
|
* (e.g. `{ AuditLog: "auditLog", LlmTierConfig: "llmTierConfig" }`).
|
|
101
109
|
*/
|
|
102
110
|
collectionNameOverrides?: Record<string, string>;
|
|
111
|
+
/**
|
|
112
|
+
* Prepend a module-level client-component directive — `"use client";` — to every
|
|
113
|
+
* generated CLIENT artifact (forms, hooks, grid columns, grid hooks). Defaults to
|
|
114
|
+
* `false`. FR-040 §6.4.
|
|
115
|
+
*
|
|
116
|
+
* **Why this is config and not a metadata attribute.** It is a fact about the
|
|
117
|
+
* adopter's BUNDLER TOPOLOGY, not about the entity — the metamodel contains nothing
|
|
118
|
+
* that could derive it, and every non-TS port would carry a registration it can never
|
|
119
|
+
* dispatch on, which is the `source.rdb @role` mistake that retired four members in
|
|
120
|
+
* 0.21.0. It sits here beside `extStyle` and `columnNamingStrategy` for the same
|
|
121
|
+
* reason `pluralizeCollections` does: a per-port codegen concern (ADR-0001), so
|
|
122
|
+
* config, and no cross-port conformance cost.
|
|
123
|
+
*
|
|
124
|
+
* **Why it defaults to `false`.** The generated form and hook modules genuinely ARE
|
|
125
|
+
* client components, so the directive is a true statement about them — but it is only
|
|
126
|
+
* REQUIRED by frameworks that compile server and client from one tree (React Server
|
|
127
|
+
* Components). Elsewhere it is inert and provokes module-level-directive warnings in
|
|
128
|
+
* some bundlers, so defaulting it on would put noise in every generated UI file for
|
|
129
|
+
* the majority to save the minority one line. The asymmetry that would argue for
|
|
130
|
+
* defaulting on — a runtime error for RSC adopters versus a build warning for
|
|
131
|
+
* everyone else — is what FR-040 itself removed: before it, an RSC adopter had no
|
|
132
|
+
* seam at all; now it is this flag, or `meta eject form` and a one-line prepend.
|
|
133
|
+
*
|
|
134
|
+
* Flipping the default needs EVIDENCE, not a guess about majorities — the standard
|
|
135
|
+
* `extStyle` was held to in 0.20.1, where the default moved because the documented
|
|
136
|
+
* quickstart provably failed under a stock `tsc --init`.
|
|
137
|
+
*/
|
|
138
|
+
clientDirective?: boolean;
|
|
103
139
|
/**
|
|
104
140
|
* Drizzle timestamp column mode. "string" (default) types timestamp columns as
|
|
105
141
|
* ISO-8601 strings (matches the generated Zod + cross-port wire contract); "date"
|
|
@@ -135,6 +171,9 @@ export interface MetaobjectsGenConfig extends Omit<ResolvedGenConfig, "dbImport"
|
|
|
135
171
|
emitAbstractShapes?: boolean;
|
|
136
172
|
/** Docs-output config consumed by the `meta docs` door. See {@link DocsConfig}. */
|
|
137
173
|
docs?: DocsConfig;
|
|
174
|
+
/** `meta verify` / `meta gen` advisory settings. Nothing here affects codegen.
|
|
175
|
+
* See {@link VerifyConfig}. */
|
|
176
|
+
verify?: VerifyConfig;
|
|
138
177
|
/** Named output destinations. Generators reference one via `target`. */
|
|
139
178
|
targets?: Record<string, TargetConfig>;
|
|
140
179
|
/** importBase for the default target (top-level outDir). */
|
|
@@ -176,12 +215,13 @@ export interface NormalizedMetaobjectsGenConfig extends Omit<MetaobjectsGenConfi
|
|
|
176
215
|
pluralizeCollections: boolean;
|
|
177
216
|
collectionNameOverrides: Record<string, string>;
|
|
178
217
|
timestampMode: "date" | "string";
|
|
218
|
+
clientDirective: boolean;
|
|
179
219
|
apiPrefix: string;
|
|
180
220
|
emitAbstractShapes: boolean;
|
|
181
221
|
outputLayout: OutputLayout;
|
|
182
222
|
targets: Record<string, ResolvedTarget>;
|
|
183
223
|
}
|
|
184
|
-
export type DocsSurface = "model" | "api" | "requirements";
|
|
224
|
+
export type DocsSurface = "model" | "api" | "requirements" | "agent";
|
|
185
225
|
export interface ApiSurface {
|
|
186
226
|
lang: string;
|
|
187
227
|
subDir: string;
|
|
@@ -190,6 +230,32 @@ export interface ApiSurface {
|
|
|
190
230
|
/** The single docs-output config: where ALL doc surfaces go, how pages are laid
|
|
191
231
|
* out, and which surfaces to emit. Read by the `meta docs` door (and, when the
|
|
192
232
|
* api surface fans out, by each port's docs command). */
|
|
233
|
+
/**
|
|
234
|
+
* `meta verify` settings. Nothing here changes what codegen emits.
|
|
235
|
+
*
|
|
236
|
+
* This block existed once before, for `verify.testFiles`, and was removed in 0.24.0 with
|
|
237
|
+
* the `@verifiedBy` vocabulary it served. It returns for exactly the reason it was added:
|
|
238
|
+
* the advisory scans carry a list of conventions that is, unavoidably, a guess about
|
|
239
|
+
* someone else's repository. Built-in defaults for the layouts that demonstrably exist,
|
|
240
|
+
* PLUS a project-declared list, is the shape that survives being wrong.
|
|
241
|
+
*/
|
|
242
|
+
export interface VerifyConfig {
|
|
243
|
+
/**
|
|
244
|
+
* Path globs the "you hand-rolled what MetaObjects models" advisory skips entirely.
|
|
245
|
+
* Relative to the project root, forward-slash, `**` spans separators; a glob matching a
|
|
246
|
+
* directory prunes the whole subtree. ADDS to the built-in exclusions rather than
|
|
247
|
+
* replacing them.
|
|
248
|
+
*
|
|
249
|
+
* verify: { antiPatternIgnore: ["db/changelog/**", "vendor/sql/**"] }
|
|
250
|
+
*
|
|
251
|
+
* Reach for this when the advisory reports a file you cannot act on — a vendored SQL
|
|
252
|
+
* archive, read-only reference DDL, a migration tool whose naming the built-ins do not
|
|
253
|
+
* recognise. It is deliberately narrower than `--no-antipatterns`: silencing the whole
|
|
254
|
+
* scan to quiet one directory is how a useful advisory gets switched off wholesale, the
|
|
255
|
+
* same failure `--no-requirement-lint` was carved out to avoid.
|
|
256
|
+
*/
|
|
257
|
+
antiPatternIgnore?: string[];
|
|
258
|
+
}
|
|
193
259
|
export interface DocsConfig {
|
|
194
260
|
outDir?: string;
|
|
195
261
|
layout?: OutputLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaobjects-config.d.ts","sourceRoot":"","sources":["../src/metaobjects-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChI,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGrE;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAC5C,gFAAgF;AAChF,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3F,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,YAAY,EAA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CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED;;6DAE6D;AAC7D,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,GAAG,EAAE,OAAO,CAAC,kBAAkB,CAAC,EAChC,cAAc,EAAE,YAAY,GAC3B,kBAAkB,CAoBpB;AAED,0EAA0E;AAC1E,wBAAgB,YAAY,CAAC,MAAM,EAAE,oBAAoB,GAAG,oBAAoB,CAE/E;AAED;;kEAEkE;AAClE,wBAAgB,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAwB3F;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,EAAE,CAqB9E;AAED,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,8BAA8B,CAoB5F"}
|
|
@@ -19,7 +19,15 @@ export function resolveDocsConfig(block, cli, fallbackLayout) {
|
|
|
19
19
|
// files for a project declaring no `requirement.*` node — not an empty page. A
|
|
20
20
|
// project without a ledger sees byte-identical output to before the surface
|
|
21
21
|
// existed; see requirements-file.ts.
|
|
22
|
-
|
|
22
|
+
//
|
|
23
|
+
// `agent` defaults ON for the same reason and under the same discipline: each of
|
|
24
|
+
// its three pages renders "" when its tier has nothing to describe, and an empty
|
|
25
|
+
// render emits no file. It is additionally gated on a loadable gen config, exactly
|
|
26
|
+
// as `api` is — physical names, the dialect and view dispatch all come from there,
|
|
27
|
+
// so without one there is nothing true to say. Turning it on by default is what
|
|
28
|
+
// makes the always-on agent-context pointer able to name the files: a pointer to a
|
|
29
|
+
// page an adopter has to opt into is a pointer at nothing.
|
|
30
|
+
surfaces: cli.surfaces ?? block?.surfaces ?? ["model", "api", "requirements", "agent"],
|
|
23
31
|
apiSurfaces: cli.apiSurfaces ?? block?.apiSurfaces ?? [{ lang: "ts", subDir: "api" }],
|
|
24
32
|
};
|
|
25
33
|
}
|
|
@@ -99,6 +107,7 @@ export function normalizeConfig(config) {
|
|
|
99
107
|
// normalize to "string" on sqlite/D1 at this one choke point so the option
|
|
100
108
|
// can never silently emit a non-compiling column + a disagreeing Zod schema.
|
|
101
109
|
timestampMode: dialect === "sqlite" ? "string" : (config.timestampMode ?? "string"),
|
|
110
|
+
clientDirective: config.clientDirective ?? false,
|
|
102
111
|
apiPrefix: config.apiPrefix ?? "",
|
|
103
112
|
emitAbstractShapes: config.emitAbstractShapes ?? true,
|
|
104
113
|
outputLayout: config.outputLayout ?? "flat",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metaobjects-config.js","sourceRoot":"","sources":["../src/metaobjects-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAwD,MAAM,0BAA0B,CAAC;AAIhI,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAqB5D,4FAA4F;AAC5F,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"metaobjects-config.js","sourceRoot":"","sources":["../src/metaobjects-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAwD,MAAM,0BAA0B,CAAC;AAIhI,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAqB5D,4FAA4F;AAC5F,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAkD7C;;wFAEwF;AACxF,MAAM,CAAC,MAAM,eAAe,GAAY,QAAQ,CAAC;AACjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAgNxC;;6DAE6D;AAC7D,MAAM,UAAU,iBAAiB,CAC/B,KAA6B,EAC7B,GAAgC,EAChC,cAA4B;IAE5B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