@contractspec/lib.contracts 0.0.0-canary-20260119225944 → 0.0.0-canary-20260128200020

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.
Files changed (155) hide show
  1. package/dist/app-config/contracts.d.ts +51 -51
  2. package/dist/app-config/events.d.ts +27 -27
  3. package/dist/app-config/lifecycle-contracts.d.ts +55 -55
  4. package/dist/app-config/runtime.d.ts +1 -1
  5. package/dist/app-config/spec.d.ts +2 -2
  6. package/dist/capabilities/capabilities.d.ts +64 -5
  7. package/dist/capabilities/capabilities.js +125 -0
  8. package/dist/capabilities/context.d.ts +88 -0
  9. package/dist/capabilities/context.js +87 -0
  10. package/dist/capabilities/docs/capabilities.docblock.js +191 -2
  11. package/dist/capabilities/guards.d.ts +110 -0
  12. package/dist/capabilities/guards.js +146 -0
  13. package/dist/capabilities/index.d.ts +4 -1
  14. package/dist/capabilities/index.js +4 -1
  15. package/dist/capabilities/validation.d.ts +76 -0
  16. package/dist/capabilities/validation.js +141 -0
  17. package/dist/client/react/feature-render.d.ts +2 -2
  18. package/dist/contract-registry/schemas.d.ts +2 -2
  19. package/dist/data-views/data-views.d.ts +2 -1
  20. package/dist/data-views/index.d.ts +2 -1
  21. package/dist/data-views/registry.d.ts +1 -1
  22. package/dist/data-views/runtime.d.ts +1 -1
  23. package/dist/data-views/spec.d.ts +2 -8
  24. package/dist/data-views/types.d.ts +1 -1
  25. package/dist/docs/capabilities/documentationSystem.capability.d.ts +7 -0
  26. package/dist/docs/capabilities/documentationSystem.capability.js +71 -0
  27. package/dist/docs/capabilities/index.d.ts +2 -0
  28. package/dist/docs/capabilities/index.js +3 -0
  29. package/dist/docs/commands/docsGenerate.command.d.ts +95 -0
  30. package/dist/docs/commands/docsGenerate.command.js +139 -0
  31. package/dist/docs/commands/docsPublish.command.d.ts +64 -0
  32. package/dist/docs/commands/docsPublish.command.js +104 -0
  33. package/dist/docs/commands/index.d.ts +3 -0
  34. package/dist/docs/commands/index.js +4 -0
  35. package/dist/docs/constants.d.ts +15 -0
  36. package/dist/docs/constants.js +18 -0
  37. package/dist/docs/contracts.d.ts +442 -0
  38. package/dist/docs/contracts.js +58 -0
  39. package/dist/docs/ensure-docblocks.d.ts +1 -0
  40. package/dist/docs/ensure-docblocks.js +1 -0
  41. package/dist/docs/events/docsGenerated.event.d.ts +62 -0
  42. package/dist/docs/events/docsGenerated.event.js +53 -0
  43. package/dist/docs/events/docsPublished.event.d.ts +70 -0
  44. package/dist/docs/events/docsPublished.event.js +57 -0
  45. package/dist/docs/events/index.d.ts +3 -0
  46. package/dist/docs/events/index.js +4 -0
  47. package/dist/docs/forms/docsSearch.form.d.ts +22 -0
  48. package/dist/docs/forms/docsSearch.form.js +113 -0
  49. package/dist/docs/forms/index.d.ts +2 -0
  50. package/dist/docs/forms/index.js +3 -0
  51. package/dist/docs/index.d.ts +23 -2
  52. package/dist/docs/index.js +24 -1
  53. package/dist/docs/presentations/docsLayout.presentation.d.ts +7 -0
  54. package/dist/docs/presentations/docsLayout.presentation.js +32 -0
  55. package/dist/docs/presentations/docsReferencePage.presentation.d.ts +7 -0
  56. package/dist/docs/presentations/docsReferencePage.presentation.js +32 -0
  57. package/dist/docs/presentations/index.d.ts +3 -0
  58. package/dist/docs/presentations/index.js +4 -0
  59. package/dist/docs/queries/contractReference.query.d.ts +217 -0
  60. package/dist/docs/queries/contractReference.query.js +122 -0
  61. package/dist/docs/queries/docsIndex.query.d.ts +272 -0
  62. package/dist/docs/queries/docsIndex.query.js +130 -0
  63. package/dist/docs/queries/index.d.ts +3 -0
  64. package/dist/docs/queries/index.js +4 -0
  65. package/dist/docs/tech/cli.docblock.js +10 -0
  66. package/dist/docs/tech/docs-system.docblock.d.ts +1 -0
  67. package/dist/docs/tech/docs-system.docblock.js +128 -0
  68. package/dist/docs/views/contractReference.dataView.d.ts +7 -0
  69. package/dist/docs/views/contractReference.dataView.js +80 -0
  70. package/dist/docs/views/docsIndex.dataView.d.ts +7 -0
  71. package/dist/docs/views/docsIndex.dataView.js +136 -0
  72. package/dist/docs/views/exampleCatalog.dataView.d.ts +7 -0
  73. package/dist/docs/views/exampleCatalog.dataView.js +91 -0
  74. package/dist/docs/views/index.d.ts +4 -0
  75. package/dist/docs/views/index.js +5 -0
  76. package/dist/events.d.ts +80 -14
  77. package/dist/events.js +33 -3
  78. package/dist/examples/schema.d.ts +19 -19
  79. package/dist/examples/types.d.ts +1 -1
  80. package/dist/experiments/spec.d.ts +9 -6
  81. package/dist/features/index.d.ts +2 -2
  82. package/dist/features/install.d.ts +4 -4
  83. package/dist/features/types.d.ts +28 -32
  84. package/dist/forms/forms.d.ts +1 -1
  85. package/dist/index.d.ts +54 -28
  86. package/dist/index.js +28 -3
  87. package/dist/install.d.ts +1 -1
  88. package/dist/integrations/openbanking/contracts/accounts.d.ts +67 -67
  89. package/dist/integrations/openbanking/contracts/balances.d.ts +35 -35
  90. package/dist/integrations/openbanking/contracts/transactions.d.ts +49 -49
  91. package/dist/integrations/openbanking/models.d.ts +55 -55
  92. package/dist/integrations/operations.d.ts +103 -103
  93. package/dist/integrations/spec.d.ts +2 -2
  94. package/dist/jsonschema.d.ts +1 -1
  95. package/dist/knowledge/operations.d.ts +67 -67
  96. package/dist/knowledge/spec.d.ts +1 -1
  97. package/dist/llm/exporters.d.ts +4 -4
  98. package/dist/llm/types.d.ts +1 -1
  99. package/dist/markdown.d.ts +2 -2
  100. package/dist/onboarding-base.d.ts +29 -29
  101. package/dist/operations/operation.d.ts +8 -2
  102. package/dist/operations/registry.d.ts +2 -2
  103. package/dist/ownership.d.ts +133 -8
  104. package/dist/ownership.js +25 -0
  105. package/dist/policy/context.d.ts +237 -0
  106. package/dist/policy/context.js +227 -0
  107. package/dist/policy/guards.d.ts +145 -0
  108. package/dist/policy/guards.js +254 -0
  109. package/dist/policy/index.d.ts +12 -1
  110. package/dist/policy/index.js +11 -1
  111. package/dist/policy/spec.d.ts +7 -4
  112. package/dist/policy/validation.d.ts +67 -0
  113. package/dist/policy/validation.js +307 -0
  114. package/dist/presentations/presentations.d.ts +6 -0
  115. package/dist/presentations/registry.d.ts +1 -1
  116. package/dist/registry.d.ts +1 -1
  117. package/dist/serialization/index.d.ts +3 -0
  118. package/dist/serialization/index.js +3 -0
  119. package/dist/serialization/serializers.d.ts +40 -0
  120. package/dist/serialization/serializers.js +148 -0
  121. package/dist/serialization/types.d.ts +103 -0
  122. package/dist/serialization/types.js +0 -0
  123. package/dist/server/rest-elysia.d.ts +1 -1
  124. package/dist/server/rest-express.d.ts +1 -1
  125. package/dist/server/rest-generic.d.ts +1 -1
  126. package/dist/server/rest-next-app.d.ts +1 -1
  127. package/dist/server/rest-next-mcp.d.ts +1 -1
  128. package/dist/server/rest-next-pages.d.ts +1 -1
  129. package/dist/telemetry/spec.d.ts +1 -1
  130. package/dist/tests/runner.d.ts +1 -1
  131. package/dist/tests/spec.d.ts +17 -12
  132. package/dist/themes.d.ts +8 -5
  133. package/dist/translations/index.d.ts +6 -0
  134. package/dist/translations/index.js +5 -0
  135. package/dist/translations/registry.d.ts +144 -0
  136. package/dist/translations/registry.js +223 -0
  137. package/dist/translations/spec.d.ts +126 -0
  138. package/dist/translations/spec.js +31 -0
  139. package/dist/translations/validation.d.ts +85 -0
  140. package/dist/translations/validation.js +328 -0
  141. package/dist/types.d.ts +140 -14
  142. package/dist/versioning/index.d.ts +2 -1
  143. package/dist/versioning/index.js +2 -1
  144. package/dist/versioning/refs.d.ts +179 -0
  145. package/dist/versioning/refs.js +161 -0
  146. package/dist/workflow/context.d.ts +191 -0
  147. package/dist/workflow/context.js +227 -0
  148. package/dist/workflow/index.d.ts +6 -3
  149. package/dist/workflow/index.js +4 -2
  150. package/dist/workflow/spec.d.ts +4 -11
  151. package/dist/workflow/validation.d.ts +64 -2
  152. package/dist/workflow/validation.js +194 -1
  153. package/dist/workspace-config/contractsrc-schema.js +1 -0
  154. package/dist/workspace-config/contractsrc-types.d.ts +3 -3
  155. package/package.json +47 -8
@@ -0,0 +1,62 @@
1
+ import { EventSpec } from "../../events.js";
2
+ import "../../index.js";
3
+ import * as _contractspec_lib_schema300 from "@contractspec/lib.schema";
4
+ import { SchemaModel } from "@contractspec/lib.schema";
5
+
6
+ //#region src/docs/events/docsGenerated.event.d.ts
7
+ declare const DocsGeneratedPayload: SchemaModel<{
8
+ buildId: {
9
+ type: _contractspec_lib_schema300.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ version: {
13
+ type: _contractspec_lib_schema300.FieldType<string, string>;
14
+ isOptional: true;
15
+ };
16
+ generatedAt: {
17
+ type: _contractspec_lib_schema300.FieldType<Date, string>;
18
+ isOptional: false;
19
+ };
20
+ outputDir: {
21
+ type: _contractspec_lib_schema300.FieldType<string, string>;
22
+ isOptional: true;
23
+ };
24
+ artifactCount: {
25
+ type: _contractspec_lib_schema300.FieldType<number, number>;
26
+ isOptional: true;
27
+ };
28
+ warnings: {
29
+ type: _contractspec_lib_schema300.FieldType<string, string>;
30
+ isOptional: true;
31
+ isArray: true;
32
+ };
33
+ }>;
34
+ declare const DocsGeneratedEvent: EventSpec<SchemaModel<{
35
+ buildId: {
36
+ type: _contractspec_lib_schema300.FieldType<string, string>;
37
+ isOptional: false;
38
+ };
39
+ version: {
40
+ type: _contractspec_lib_schema300.FieldType<string, string>;
41
+ isOptional: true;
42
+ };
43
+ generatedAt: {
44
+ type: _contractspec_lib_schema300.FieldType<Date, string>;
45
+ isOptional: false;
46
+ };
47
+ outputDir: {
48
+ type: _contractspec_lib_schema300.FieldType<string, string>;
49
+ isOptional: true;
50
+ };
51
+ artifactCount: {
52
+ type: _contractspec_lib_schema300.FieldType<number, number>;
53
+ isOptional: true;
54
+ };
55
+ warnings: {
56
+ type: _contractspec_lib_schema300.FieldType<string, string>;
57
+ isOptional: true;
58
+ isArray: true;
59
+ };
60
+ }>>;
61
+ //#endregion
62
+ export { DocsGeneratedEvent, DocsGeneratedPayload };
@@ -0,0 +1,53 @@
1
+ import { defineEvent } from "../../events.js";
2
+ import { DOCS_DOMAIN, DOCS_OWNERS, DOCS_STABILITY, DOCS_TAGS } from "../constants.js";
3
+ import { docId } from "../registry.js";
4
+ import "../ensure-docblocks.js";
5
+ import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
6
+
7
+ //#region src/docs/events/docsGenerated.event.ts
8
+ const DocsGeneratedPayload = new SchemaModel({
9
+ name: "DocsGeneratedPayload",
10
+ fields: {
11
+ buildId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ version: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: true
18
+ },
19
+ generatedAt: {
20
+ type: ScalarTypeEnum.DateTime(),
21
+ isOptional: false
22
+ },
23
+ outputDir: {
24
+ type: ScalarTypeEnum.String_unsecure(),
25
+ isOptional: true
26
+ },
27
+ artifactCount: {
28
+ type: ScalarTypeEnum.Int_unsecure(),
29
+ isOptional: true
30
+ },
31
+ warnings: {
32
+ type: ScalarTypeEnum.String_unsecure(),
33
+ isOptional: true,
34
+ isArray: true
35
+ }
36
+ }
37
+ });
38
+ const DocsGeneratedEvent = defineEvent({
39
+ meta: {
40
+ key: "docs.generated",
41
+ version: "1.0.0",
42
+ description: "Emitted when documentation artifacts are generated.",
43
+ domain: DOCS_DOMAIN,
44
+ owners: DOCS_OWNERS,
45
+ tags: [...DOCS_TAGS, "generation"],
46
+ stability: DOCS_STABILITY,
47
+ docId: [docId("docs.tech.docs-generator")]
48
+ },
49
+ payload: DocsGeneratedPayload
50
+ });
51
+
52
+ //#endregion
53
+ export { DocsGeneratedEvent, DocsGeneratedPayload };
@@ -0,0 +1,70 @@
1
+ import { EventSpec } from "../../events.js";
2
+ import "../../index.js";
3
+ import * as _contractspec_lib_schema312 from "@contractspec/lib.schema";
4
+ import { SchemaModel } from "@contractspec/lib.schema";
5
+
6
+ //#region src/docs/events/docsPublished.event.d.ts
7
+ declare const DocsPublishedPayload: SchemaModel<{
8
+ publishId: {
9
+ type: _contractspec_lib_schema312.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ version: {
13
+ type: _contractspec_lib_schema312.FieldType<string, string>;
14
+ isOptional: true;
15
+ };
16
+ environment: {
17
+ type: _contractspec_lib_schema312.FieldType<string, string>;
18
+ isOptional: true;
19
+ };
20
+ url: {
21
+ type: _contractspec_lib_schema312.FieldType<string, string>;
22
+ isOptional: true;
23
+ };
24
+ publishedAt: {
25
+ type: _contractspec_lib_schema312.FieldType<Date, string>;
26
+ isOptional: false;
27
+ };
28
+ status: {
29
+ type: _contractspec_lib_schema312.FieldType<string, string>;
30
+ isOptional: true;
31
+ };
32
+ warnings: {
33
+ type: _contractspec_lib_schema312.FieldType<string, string>;
34
+ isOptional: true;
35
+ isArray: true;
36
+ };
37
+ }>;
38
+ declare const DocsPublishedEvent: EventSpec<SchemaModel<{
39
+ publishId: {
40
+ type: _contractspec_lib_schema312.FieldType<string, string>;
41
+ isOptional: false;
42
+ };
43
+ version: {
44
+ type: _contractspec_lib_schema312.FieldType<string, string>;
45
+ isOptional: true;
46
+ };
47
+ environment: {
48
+ type: _contractspec_lib_schema312.FieldType<string, string>;
49
+ isOptional: true;
50
+ };
51
+ url: {
52
+ type: _contractspec_lib_schema312.FieldType<string, string>;
53
+ isOptional: true;
54
+ };
55
+ publishedAt: {
56
+ type: _contractspec_lib_schema312.FieldType<Date, string>;
57
+ isOptional: false;
58
+ };
59
+ status: {
60
+ type: _contractspec_lib_schema312.FieldType<string, string>;
61
+ isOptional: true;
62
+ };
63
+ warnings: {
64
+ type: _contractspec_lib_schema312.FieldType<string, string>;
65
+ isOptional: true;
66
+ isArray: true;
67
+ };
68
+ }>>;
69
+ //#endregion
70
+ export { DocsPublishedEvent, DocsPublishedPayload };
@@ -0,0 +1,57 @@
1
+ import { defineEvent } from "../../events.js";
2
+ import { DOCS_DOMAIN, DOCS_OWNERS, DOCS_STABILITY, DOCS_TAGS } from "../constants.js";
3
+ import { docId } from "../registry.js";
4
+ import "../ensure-docblocks.js";
5
+ import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
6
+
7
+ //#region src/docs/events/docsPublished.event.ts
8
+ const DocsPublishedPayload = new SchemaModel({
9
+ name: "DocsPublishedPayload",
10
+ fields: {
11
+ publishId: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: false
14
+ },
15
+ version: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: true
18
+ },
19
+ environment: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: true
22
+ },
23
+ url: {
24
+ type: ScalarTypeEnum.String_unsecure(),
25
+ isOptional: true
26
+ },
27
+ publishedAt: {
28
+ type: ScalarTypeEnum.DateTime(),
29
+ isOptional: false
30
+ },
31
+ status: {
32
+ type: ScalarTypeEnum.String_unsecure(),
33
+ isOptional: true
34
+ },
35
+ warnings: {
36
+ type: ScalarTypeEnum.String_unsecure(),
37
+ isOptional: true,
38
+ isArray: true
39
+ }
40
+ }
41
+ });
42
+ const DocsPublishedEvent = defineEvent({
43
+ meta: {
44
+ key: "docs.published",
45
+ version: "1.0.0",
46
+ description: "Emitted when documentation is published.",
47
+ domain: DOCS_DOMAIN,
48
+ owners: DOCS_OWNERS,
49
+ tags: [...DOCS_TAGS, "publish"],
50
+ stability: DOCS_STABILITY,
51
+ docId: [docId("docs.tech.docs-publish")]
52
+ },
53
+ payload: DocsPublishedPayload
54
+ });
55
+
56
+ //#endregion
57
+ export { DocsPublishedEvent, DocsPublishedPayload };
@@ -0,0 +1,3 @@
1
+ import { DocsGeneratedEvent, DocsGeneratedPayload } from "./docsGenerated.event.js";
2
+ import { DocsPublishedEvent, DocsPublishedPayload } from "./docsPublished.event.js";
3
+ export { DocsGeneratedEvent, DocsGeneratedPayload, DocsPublishedEvent, DocsPublishedPayload };
@@ -0,0 +1,4 @@
1
+ import { DocsGeneratedEvent, DocsGeneratedPayload } from "./docsGenerated.event.js";
2
+ import { DocsPublishedEvent, DocsPublishedPayload } from "./docsPublished.event.js";
3
+
4
+ export { DocsGeneratedEvent, DocsGeneratedPayload, DocsPublishedEvent, DocsPublishedPayload };
@@ -0,0 +1,22 @@
1
+ import { FormSpec } from "../../forms/forms.js";
2
+ import "../../index.js";
3
+ import * as _contractspec_lib_schema297 from "@contractspec/lib.schema";
4
+ import { SchemaModel } from "@contractspec/lib.schema";
5
+
6
+ //#region src/docs/forms/docsSearch.form.d.ts
7
+ declare const DocsSearchForm: FormSpec<SchemaModel<{
8
+ query: {
9
+ type: _contractspec_lib_schema297.FieldType<string, string>;
10
+ isOptional: true;
11
+ };
12
+ visibility: {
13
+ type: _contractspec_lib_schema297.FieldType<string, string>;
14
+ isOptional: true;
15
+ };
16
+ kind: {
17
+ type: _contractspec_lib_schema297.FieldType<string, string>;
18
+ isOptional: true;
19
+ };
20
+ }>>;
21
+ //#endregion
22
+ export { DocsSearchForm };
@@ -0,0 +1,113 @@
1
+ import { defineFormSpec } from "../../forms/forms.js";
2
+ import { DOCS_DOMAIN, DOCS_OWNERS, DOCS_STABILITY, DOCS_TAGS } from "../constants.js";
3
+ import { docId } from "../registry.js";
4
+ import "../ensure-docblocks.js";
5
+ import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
6
+
7
+ //#region src/docs/forms/docsSearch.form.ts
8
+ const DocsSearchFormModel = new SchemaModel({
9
+ name: "DocsSearchFormModel",
10
+ fields: {
11
+ query: {
12
+ type: ScalarTypeEnum.String_unsecure(),
13
+ isOptional: true
14
+ },
15
+ visibility: {
16
+ type: ScalarTypeEnum.String_unsecure(),
17
+ isOptional: true
18
+ },
19
+ kind: {
20
+ type: ScalarTypeEnum.String_unsecure(),
21
+ isOptional: true
22
+ }
23
+ }
24
+ });
25
+ const DocsSearchForm = defineFormSpec({
26
+ meta: {
27
+ key: "docs.search.form",
28
+ title: "Docs Search",
29
+ version: "1.0.0",
30
+ description: "Search form for documentation discovery.",
31
+ domain: DOCS_DOMAIN,
32
+ owners: DOCS_OWNERS,
33
+ tags: [...DOCS_TAGS, "search"],
34
+ stability: DOCS_STABILITY,
35
+ docId: [docId("docs.tech.docs-search")]
36
+ },
37
+ model: DocsSearchFormModel,
38
+ fields: [
39
+ {
40
+ kind: "text",
41
+ name: "query",
42
+ labelI18n: "Search",
43
+ placeholderI18n: "Search docs"
44
+ },
45
+ {
46
+ kind: "select",
47
+ name: "visibility",
48
+ labelI18n: "Visibility",
49
+ options: {
50
+ kind: "static",
51
+ options: [
52
+ {
53
+ labelI18n: "Public",
54
+ value: "public"
55
+ },
56
+ {
57
+ labelI18n: "Internal",
58
+ value: "internal"
59
+ },
60
+ {
61
+ labelI18n: "Mixed",
62
+ value: "mixed"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ kind: "select",
69
+ name: "kind",
70
+ labelI18n: "Kind",
71
+ options: {
72
+ kind: "static",
73
+ options: [
74
+ {
75
+ labelI18n: "Goal",
76
+ value: "goal"
77
+ },
78
+ {
79
+ labelI18n: "How",
80
+ value: "how"
81
+ },
82
+ {
83
+ labelI18n: "Usage",
84
+ value: "usage"
85
+ },
86
+ {
87
+ labelI18n: "Reference",
88
+ value: "reference"
89
+ },
90
+ {
91
+ labelI18n: "FAQ",
92
+ value: "faq"
93
+ },
94
+ {
95
+ labelI18n: "Changelog",
96
+ value: "changelog"
97
+ }
98
+ ]
99
+ }
100
+ }
101
+ ],
102
+ actions: [{
103
+ key: "search",
104
+ labelI18n: "Search"
105
+ }],
106
+ policy: {
107
+ flags: [],
108
+ pii: []
109
+ }
110
+ });
111
+
112
+ //#endregion
113
+ export { DocsSearchForm };
@@ -0,0 +1,2 @@
1
+ import { DocsSearchForm } from "./docsSearch.form.js";
2
+ export { DocsSearchForm };
@@ -0,0 +1,3 @@
1
+ import { DocsSearchForm } from "./docsSearch.form.js";
2
+
3
+ export { DocsSearchForm };
@@ -1,7 +1,28 @@
1
1
  import { DocBlock, DocBlockLink, DocKind, DocVisibility } from "./types.js";
2
+ import { DOCS_CAPABILITY_KEY, DOCS_CAPABILITY_REF, DOCS_CAPABILITY_VERSION, DOCS_DOMAIN, DOCS_LAYOUT_PRESENTATION_KEY, DOCS_OWNERS, DOCS_REFERENCE_PRESENTATION_KEY, DOCS_STABILITY, DOCS_TAGS } from "./constants.js";
3
+ import { DocsGenerateCommand } from "./commands/docsGenerate.command.js";
4
+ import { DocsPublishCommand } from "./commands/docsPublish.command.js";
5
+ import "./commands/index.js";
6
+ import { DocSummaryModel, DocsIndexInput, DocsIndexOutput, DocsIndexQuery } from "./queries/docsIndex.query.js";
7
+ import { ContractReferenceInput, ContractReferenceModel, ContractReferenceOutput, ContractReferenceQuery } from "./queries/contractReference.query.js";
8
+ import "./queries/index.js";
9
+ import { DocsGeneratedEvent, DocsGeneratedPayload } from "./events/docsGenerated.event.js";
10
+ import { DocsPublishedEvent, DocsPublishedPayload } from "./events/docsPublished.event.js";
11
+ import "./events/index.js";
12
+ import { DocumentationSystemCapability } from "./capabilities/documentationSystem.capability.js";
13
+ import "./capabilities/index.js";
14
+ import { docsDataViewContracts, docsEventContracts, docsFormContracts, docsOperationContracts, docsPresentationContracts, registerDocsDataViews, registerDocsEvents, registerDocsForms, registerDocsOperations, registerDocsPresentations } from "./contracts.js";
2
15
  import { DocPresentationOptions, DocPresentationRoute, docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from "./presentations.js";
16
+ import { DocsLayoutPresentation } from "./presentations/docsLayout.presentation.js";
17
+ import { DocsReferencePagePresentation } from "./presentations/docsReferencePage.presentation.js";
18
+ import "./presentations/index.js";
19
+ import { DocsSearchForm } from "./forms/docsSearch.form.js";
20
+ import "./forms/index.js";
21
+ import { DocsIndexDataView } from "./views/docsIndex.dataView.js";
22
+ import { ContractReferenceDataView } from "./views/contractReference.dataView.js";
23
+ import { ExampleCatalogDataView } from "./views/exampleCatalog.dataView.js";
24
+ import "./views/index.js";
3
25
  import { DocId, DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from "./registry.js";
4
26
  import { techContractsDocs } from "./tech-contracts.docs.js";
5
27
  import { metaDocs } from "./meta.docs.js";
6
- import "./tech/cli.docblock.js";
7
- export { DocBlock, DocBlockLink, DocId, DocKind, DocPresentationOptions, DocPresentationRoute, DocRegistry, DocVisibility, defaultDocRegistry, docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, listRegisteredDocBlocks, mapDocRoutes, metaDocs, registerDocBlocks, techContractsDocs };
28
+ export { ContractReferenceDataView, ContractReferenceInput, ContractReferenceModel, ContractReferenceOutput, ContractReferenceQuery, DOCS_CAPABILITY_KEY, DOCS_CAPABILITY_REF, DOCS_CAPABILITY_VERSION, DOCS_DOMAIN, DOCS_LAYOUT_PRESENTATION_KEY, DOCS_OWNERS, DOCS_REFERENCE_PRESENTATION_KEY, DOCS_STABILITY, DOCS_TAGS, DocBlock, DocBlockLink, DocId, DocKind, DocPresentationOptions, DocPresentationRoute, DocRegistry, DocSummaryModel, DocVisibility, DocsGenerateCommand, DocsGeneratedEvent, DocsGeneratedPayload, DocsIndexDataView, DocsIndexInput, DocsIndexOutput, DocsIndexQuery, DocsLayoutPresentation, DocsPublishCommand, DocsPublishedEvent, DocsPublishedPayload, DocsReferencePagePresentation, DocsSearchForm, DocumentationSystemCapability, ExampleCatalogDataView, defaultDocRegistry, docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, docsDataViewContracts, docsEventContracts, docsFormContracts, docsOperationContracts, docsPresentationContracts, listRegisteredDocBlocks, mapDocRoutes, metaDocs, registerDocBlocks, registerDocsDataViews, registerDocsEvents, registerDocsForms, registerDocsOperations, registerDocsPresentations, techContractsDocs };
@@ -1,5 +1,28 @@
1
+ import { DOCS_CAPABILITY_KEY, DOCS_CAPABILITY_REF, DOCS_CAPABILITY_VERSION, DOCS_DOMAIN, DOCS_LAYOUT_PRESENTATION_KEY, DOCS_OWNERS, DOCS_REFERENCE_PRESENTATION_KEY, DOCS_STABILITY, DOCS_TAGS } from "./constants.js";
1
2
  import { docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from "./presentations.js";
2
3
  import { DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from "./registry.js";
4
+ import "./tech/docs-system.docblock.js";
5
+ import { DocsGeneratedEvent, DocsGeneratedPayload } from "./events/docsGenerated.event.js";
6
+ import { DocsGenerateCommand } from "./commands/docsGenerate.command.js";
7
+ import { DocsPublishedEvent, DocsPublishedPayload } from "./events/docsPublished.event.js";
8
+ import { DocsPublishCommand } from "./commands/docsPublish.command.js";
9
+ import "./commands/index.js";
10
+ import { DocSummaryModel, DocsIndexInput, DocsIndexOutput, DocsIndexQuery } from "./queries/docsIndex.query.js";
11
+ import { ContractReferenceInput, ContractReferenceModel, ContractReferenceOutput, ContractReferenceQuery } from "./queries/contractReference.query.js";
12
+ import "./queries/index.js";
13
+ import "./events/index.js";
14
+ import { DocumentationSystemCapability } from "./capabilities/documentationSystem.capability.js";
15
+ import "./capabilities/index.js";
16
+ import { DocsLayoutPresentation } from "./presentations/docsLayout.presentation.js";
17
+ import { DocsReferencePagePresentation } from "./presentations/docsReferencePage.presentation.js";
18
+ import "./presentations/index.js";
19
+ import { DocsSearchForm } from "./forms/docsSearch.form.js";
20
+ import "./forms/index.js";
21
+ import { DocsIndexDataView } from "./views/docsIndex.dataView.js";
22
+ import { ContractReferenceDataView } from "./views/contractReference.dataView.js";
23
+ import { ExampleCatalogDataView } from "./views/exampleCatalog.dataView.js";
24
+ import "./views/index.js";
25
+ import { docsDataViewContracts, docsEventContracts, docsFormContracts, docsOperationContracts, docsPresentationContracts, registerDocsDataViews, registerDocsEvents, registerDocsForms, registerDocsOperations, registerDocsPresentations } from "./contracts.js";
3
26
  import { techContractsDocs } from "./tech-contracts.docs.js";
4
27
  import { metaDocs } from "./meta.docs.js";
5
28
  import "./accessibility_wcag_compliance_specs.docblock.js";
@@ -27,4 +50,4 @@ import "./tech/studio/team-invitations.docblock.js";
27
50
  import "./tech/llm/llm-integration.docblock.js";
28
51
  import "./tech/cli.docblock.js";
29
52
 
30
- export { DocRegistry, defaultDocRegistry, docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, listRegisteredDocBlocks, mapDocRoutes, metaDocs, registerDocBlocks, techContractsDocs };
53
+ export { ContractReferenceDataView, ContractReferenceInput, ContractReferenceModel, ContractReferenceOutput, ContractReferenceQuery, DOCS_CAPABILITY_KEY, DOCS_CAPABILITY_REF, DOCS_CAPABILITY_VERSION, DOCS_DOMAIN, DOCS_LAYOUT_PRESENTATION_KEY, DOCS_OWNERS, DOCS_REFERENCE_PRESENTATION_KEY, DOCS_STABILITY, DOCS_TAGS, DocRegistry, DocSummaryModel, DocsGenerateCommand, DocsGeneratedEvent, DocsGeneratedPayload, DocsIndexDataView, DocsIndexInput, DocsIndexOutput, DocsIndexQuery, DocsLayoutPresentation, DocsPublishCommand, DocsPublishedEvent, DocsPublishedPayload, DocsReferencePagePresentation, DocsSearchForm, DocumentationSystemCapability, ExampleCatalogDataView, defaultDocRegistry, docBlockToPresentationSpec, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, docsDataViewContracts, docsEventContracts, docsFormContracts, docsOperationContracts, docsPresentationContracts, listRegisteredDocBlocks, mapDocRoutes, metaDocs, registerDocBlocks, registerDocsDataViews, registerDocsEvents, registerDocsForms, registerDocsOperations, registerDocsPresentations, techContractsDocs };
@@ -0,0 +1,7 @@
1
+ import { PresentationSpec } from "../../presentations/presentations.js";
2
+ import "../../index.js";
3
+
4
+ //#region src/docs/presentations/docsLayout.presentation.d.ts
5
+ declare const DocsLayoutPresentation: PresentationSpec;
6
+ //#endregion
7
+ export { DocsLayoutPresentation };
@@ -0,0 +1,32 @@
1
+ import { definePresentation } from "../../presentations/presentations.js";
2
+ import "../../presentations/index.js";
3
+ import { DOCS_CAPABILITY_REF, DOCS_DOMAIN, DOCS_LAYOUT_PRESENTATION_KEY, DOCS_OWNERS, DOCS_STABILITY, DOCS_TAGS } from "../constants.js";
4
+ import { docId } from "../registry.js";
5
+ import "../ensure-docblocks.js";
6
+
7
+ //#region src/docs/presentations/docsLayout.presentation.ts
8
+ const DocsLayoutPresentation = definePresentation({
9
+ meta: {
10
+ key: DOCS_LAYOUT_PRESENTATION_KEY,
11
+ title: "Docs Layout",
12
+ version: "1.0.0",
13
+ description: "Shared layout shell for documentation pages.",
14
+ goal: "Provide consistent navigation, layout, and docs UI scaffolding.",
15
+ context: "Used by web docs surfaces to render DocBlock-based content.",
16
+ domain: DOCS_DOMAIN,
17
+ owners: DOCS_OWNERS,
18
+ tags: [...DOCS_TAGS, "layout"],
19
+ stability: DOCS_STABILITY,
20
+ docId: [docId("docs.tech.docs-system")]
21
+ },
22
+ capability: DOCS_CAPABILITY_REF,
23
+ source: {
24
+ type: "component",
25
+ framework: "react",
26
+ componentKey: DOCS_LAYOUT_PRESENTATION_KEY
27
+ },
28
+ targets: ["react"]
29
+ });
30
+
31
+ //#endregion
32
+ export { DocsLayoutPresentation };
@@ -0,0 +1,7 @@
1
+ import { PresentationSpec } from "../../presentations/presentations.js";
2
+ import "../../index.js";
3
+
4
+ //#region src/docs/presentations/docsReferencePage.presentation.d.ts
5
+ declare const DocsReferencePagePresentation: PresentationSpec;
6
+ //#endregion
7
+ export { DocsReferencePagePresentation };
@@ -0,0 +1,32 @@
1
+ import { definePresentation } from "../../presentations/presentations.js";
2
+ import "../../presentations/index.js";
3
+ import { DOCS_CAPABILITY_REF, DOCS_DOMAIN, DOCS_OWNERS, DOCS_REFERENCE_PRESENTATION_KEY, DOCS_STABILITY, DOCS_TAGS } from "../constants.js";
4
+ import { docId } from "../registry.js";
5
+ import "../ensure-docblocks.js";
6
+
7
+ //#region src/docs/presentations/docsReferencePage.presentation.ts
8
+ const DocsReferencePagePresentation = definePresentation({
9
+ meta: {
10
+ key: DOCS_REFERENCE_PRESENTATION_KEY,
11
+ title: "Docs Reference Page",
12
+ version: "1.0.0",
13
+ description: "Reference page layout for contract documentation.",
14
+ goal: "Render contract references with consistent metadata and formatting.",
15
+ context: "Used by docs surfaces to present contract reference content and schemas.",
16
+ domain: DOCS_DOMAIN,
17
+ owners: DOCS_OWNERS,
18
+ tags: [...DOCS_TAGS, "reference"],
19
+ stability: DOCS_STABILITY,
20
+ docId: [docId("docs.tech.docs-reference")]
21
+ },
22
+ capability: DOCS_CAPABILITY_REF,
23
+ source: {
24
+ type: "component",
25
+ framework: "react",
26
+ componentKey: DOCS_REFERENCE_PRESENTATION_KEY
27
+ },
28
+ targets: ["react", "markdown"]
29
+ });
30
+
31
+ //#endregion
32
+ export { DocsReferencePagePresentation };
@@ -0,0 +1,3 @@
1
+ import { DocsLayoutPresentation } from "./docsLayout.presentation.js";
2
+ import { DocsReferencePagePresentation } from "./docsReferencePage.presentation.js";
3
+ export { DocsLayoutPresentation, DocsReferencePagePresentation };
@@ -0,0 +1,4 @@
1
+ import { DocsLayoutPresentation } from "./docsLayout.presentation.js";
2
+ import { DocsReferencePagePresentation } from "./docsReferencePage.presentation.js";
3
+
4
+ export { DocsLayoutPresentation, DocsReferencePagePresentation };