@astryxdesign/cli 0.6.3-canary.7ada42e → 0.6.3-canary.7ec7be0
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 +21 -19
- package/api/build/_adapter.d.mts +50 -0
- package/api/build/_adapter.mjs +60 -0
- package/api/build/build.doc.mjs +13 -7
- package/api/build/build.test.mjs +184 -6
- package/api/build/build.type.d.mts +57 -2
- package/api/build/build.type.mjs +30 -7
- package/api/build/help/help.d.mts +4 -0
- package/api/build/help/help.mjs +24 -11
- package/api/build/kit/kit.d.mts +4 -1
- package/api/build/kit/kit.mjs +165 -49
- package/api/build/kit/rank.d.mts +44 -0
- package/api/build/kit/rank.mjs +432 -0
- package/api/build/kit/rank.test.mjs +196 -0
- package/api/component/_adapter.d.mts +6 -12
- package/api/component/_adapter.mjs +20 -10
- package/api/component/component.mjs +60 -12
- package/api/component/list/list.mjs +3 -2
- package/api/docs/_adapter.d.mts +251 -28
- package/api/docs/_adapter.mjs +918 -35
- package/api/docs/detail/detail.mjs +11 -3
- package/api/docs/detail/section/section.mjs +24 -13
- package/api/docs/detail/section/section.test.mjs +15 -6
- package/api/docs/docs.d.mts +5 -3
- package/api/docs/docs.doc.mjs +38 -17
- package/api/docs/docs.mjs +44 -8
- package/api/docs/docs.test.mjs +158 -4
- package/api/docs/docs.type.d.mts +181 -2
- package/api/docs/docs.type.mjs +117 -3
- package/api/docs/index/index.mjs +11 -3
- package/api/docs/index/index.test.mjs +1 -1
- package/api/docs/integration-tree.test.mjs +555 -0
- package/api/docs/integrationDocs.test.mjs +14 -14
- package/api/docs/list/list.mjs +25 -5
- package/api/docs/node/node.d.mts +43 -0
- package/api/docs/node/node.mjs +192 -0
- package/api/docs/reference-blocks.test.mjs +406 -0
- package/api/doctor/doctor.d.mts +30 -2
- package/api/doctor/doctor.mjs +151 -8
- package/api/doctor/doctor.test.mjs +95 -7
- package/api/index.d.mts +1 -1
- package/api/index.mjs +1 -0
- package/api/init/init.doc.mjs +1 -1
- package/api/integration/add-contribution.d.mts +2 -1
- package/api/integration/add-contribution.mjs +107 -5
- package/api/integration/add-contribution.test.mjs +137 -0
- package/api/integration/authoring-checks.mjs +138 -28
- package/api/integration/authoring-checks.test.mjs +171 -3
- package/api/integration/authoring-checks.type.mjs +6 -1
- package/api/integration/integration-authoring.type.d.mts +2 -0
- package/api/integration/integration-authoring.type.mjs +2 -0
- package/api/integration/integrationAdd.doc.mjs +6 -0
- package/api/integration/integrationAddDoc.doc.mjs +7 -1
- package/api/integration/integrationDocConflicts.doc.mjs +1 -1
- package/api/integration/integrationPackCheck.doc.mjs +1 -1
- package/api/integration/integrationTemplateConflicts.doc.d.mts +3 -0
- package/api/integration/integrationTemplateConflicts.doc.mjs +3 -0
- package/api/integration/pack-check.mjs +34 -0
- package/api/integration/pack-check.test.mjs +121 -0
- package/api/integration/pack-check.type.d.mts +26 -2
- package/api/integration/pack-check.type.mjs +14 -1
- package/api/integration/template-conflict-compatibility.test.mjs +73 -0
- package/api/integration/validate-integration.test.mjs +3 -3
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/json/index.ts +2 -0
- package/api/layout/_adapter.mjs +20 -5
- package/api/search/search.d.mts +59 -1
- package/api/search/search.doc.mjs +4 -3
- package/api/search/search.mjs +442 -71
- package/api/search/search.test.mjs +91 -2
- package/api/search/search.type.d.mts +13 -1
- package/api/search/search.type.mjs +4 -1
- package/api/template/list/list.mjs +1 -0
- package/api/template/table-floating-bulk-actions.test.mjs +66 -0
- package/api/template/template-integration.test.mjs +1072 -3
- package/api/template/template.doc.mjs +27 -7
- package/api/template/template.mjs +45 -8
- package/api/template/template.type.d.mts +6 -8
- package/api/template/template.type.mjs +3 -2
- package/api/theme/template/template.test.mjs +5 -0
- package/api/theme/themeTemplate.doc.mjs +1 -1
- package/assets/docs/getting-started.doc.mjs +2 -2
- package/assets/docs/layout.doc.dense.mjs +2 -2
- package/assets/docs/layout.doc.mjs +1 -1
- package/assets/docs/principles.doc.mjs +6 -6
- package/assets/docs/styling-libraries.doc.mjs +3 -3
- package/assets/docs/styling.doc.mjs +4 -4
- package/assets/docs/theme.doc.mjs +4 -4
- package/assets/docs/tokens.doc.mjs +1 -1
- package/assets/docs/tree/api.doc.mjs +30 -0
- package/assets/docs/tree/cli.doc.mjs +23 -0
- package/assets/docs/tree/commands.doc.mjs +25 -0
- package/assets/docs/{cli-integrations.doc.mjs → tree/integrations.doc.mjs} +37 -9
- package/assets/docs/tree/integrations.test.mjs +62 -0
- package/assets/docs/tree/writing-docs.doc.mjs +286 -0
- package/assets/docs/working-with-ai.doc.mjs +3 -3
- package/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjs +1 -1
- package/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.tsx +1 -3
- package/assets/templates/blocks/components/Table/TableBulkActionsTable.doc.mjs +14 -0
- package/assets/templates/blocks/components/Table/TableBulkActionsTable.tsx +71 -0
- package/assets/templates/blocks/components/Table/TableFloatingBulkActionsTable.doc.mjs +19 -0
- package/assets/templates/blocks/components/Table/TableFloatingBulkActionsTable.tsx +139 -0
- package/authoring/debug/parse.d.mts +3 -3
- package/authoring/doctypes/_schema.d.mts +119 -117
- package/authoring/doctypes/_schema.mjs +54 -3
- package/authoring/doctypes/base/graph-fields.doc.mjs +7 -5
- package/authoring/doctypes/base/type.ts +6 -5
- package/authoring/doctypes/command/command.doc.mjs +1 -1
- package/authoring/doctypes/command/type.ts +2 -2
- package/authoring/doctypes/enum/enum.doc.mjs +1 -1
- package/authoring/doctypes/enum/type.ts +1 -1
- package/authoring/doctypes/function/function.doc.mjs +3 -2
- package/authoring/doctypes/function/type.ts +3 -2
- package/authoring/doctypes/load-contract.test.mjs +26 -1
- package/authoring/doctypes/namespace/namespace.doc.mjs +6 -10
- package/authoring/doctypes/namespace/parse.test.mjs +23 -25
- package/authoring/doctypes/namespace/type.ts +5 -2
- package/authoring/doctypes/parse.mjs +3 -2
- package/authoring/doctypes/reference/reference.doc.mjs +34 -5
- package/authoring/doctypes/reference/type.ts +28 -11
- package/authoring/doctypes/schema/schema.doc.mjs +1 -1
- package/authoring/doctypes/schema/type.ts +1 -1
- package/authoring/doctypes/template/parse.d.mts +2 -0
- package/authoring/doctypes/template/parse.mjs +4 -0
- package/authoring/doctypes/template/parse.test.mjs +18 -0
- package/authoring/doctypes/template/template.doc.mjs +6 -0
- package/authoring/doctypes/template/type.ts +8 -0
- package/authoring/identity/identity.doc.mjs +2 -2
- package/authoring/index.d.ts +1 -0
- package/authoring/integration/type.ts +1 -1
- package/clients/cli/commands/build-theme.adaptations.test.mjs +100 -1
- package/clients/cli/commands/build-theme.mjs +1 -1
- package/clients/cli/commands/build.doc.mjs +11 -6
- package/clients/cli/commands/build.mjs +105 -67
- package/clients/cli/commands/build.text-fields.test.mjs +41 -0
- package/clients/cli/commands/component/index.mjs +1 -1
- package/clients/cli/commands/component-ownership.test.mjs +3 -3
- package/clients/cli/commands/discover.broken-integration.test.mjs +7 -8
- package/clients/cli/commands/discover.mjs +1 -1
- package/clients/cli/commands/docs.doc.mjs +20 -8
- package/clients/cli/commands/docs.mjs +183 -69
- package/clients/cli/commands/docs.test.mjs +120 -16
- package/clients/cli/commands/doctor-integration-docs.doc.mjs +2 -2
- package/clients/cli/commands/doctor-integration-templates.doc.mjs +14 -7
- package/clients/cli/commands/doctor-integration.test.mjs +75 -1
- package/clients/cli/commands/doctor.mjs +53 -16
- package/clients/cli/commands/integration-add.doc.mjs +10 -0
- package/clients/cli/commands/integration.mjs +1 -0
- package/clients/cli/commands/search.mjs +11 -2
- package/clients/cli/commands/setup-nudge.test.mjs +6 -0
- package/clients/cli/commands/template.doc.mjs +23 -6
- package/clients/cli/commands/template.mjs +4 -91
- package/clients/cli/index.mjs +8 -0
- package/clients/cli/lib/manifest.mjs +9 -2
- package/foundation/agent-docs/agent-docs.d.mts +3 -2
- package/foundation/agent-docs/agent-docs.mjs +13 -9
- package/foundation/agent-docs/agent-docs.test.mjs +19 -1
- package/foundation/config/project.d.mts +12 -11
- package/foundation/config/project.mjs +73 -59
- package/foundation/config/project.test.mjs +141 -5
- package/foundation/discovery/authoring-self-docs.d.mts +12 -0
- package/foundation/discovery/authoring-self-docs.mjs +20 -8
- package/foundation/discovery/authoring-self-docs.test.mjs +25 -9
- package/foundation/discovery/cli-self-docs.d.mts +40 -34
- package/foundation/discovery/cli-self-docs.mjs +91 -115
- package/foundation/discovery/cli-self-docs.test.mjs +104 -166
- package/foundation/discovery/component-discovery.d.mts +38 -0
- package/foundation/discovery/component-discovery.mjs +48 -0
- package/foundation/discovery/docs-discovery.d.mts +109 -9
- package/foundation/discovery/docs-discovery.mjs +223 -24
- package/foundation/discovery/docs-discovery.test.mjs +103 -27
- package/foundation/discovery/docs-output-budget.d.mts +2 -2
- package/foundation/discovery/docs-output-budget.mjs +1 -1
- package/foundation/discovery/docs-section-key.d.mts +28 -10
- package/foundation/discovery/docs-section-key.mjs +134 -33
- package/foundation/discovery/docs-section-key.test.mjs +41 -19
- package/foundation/discovery/template-adapter.d.mts +92 -6
- package/foundation/discovery/template-adapter.mjs +453 -17
- package/foundation/discovery/template-adapter.test.mjs +42 -0
- package/foundation/discovery/template-conflict-release.d.mts +13 -0
- package/foundation/discovery/template-conflict-release.mjs +40 -0
- package/foundation/discovery/template-conflict-release.test.mjs +40 -0
- package/foundation/doc-compiler/bundle.mjs +61 -1
- package/foundation/doc-compiler/bundle.test.mjs +21 -10
- package/foundation/doc-compiler/compile.d.mts +113 -132
- package/foundation/doc-compiler/compile.mjs +57 -10
- package/foundation/doc-compiler/diagnostics.mjs +28 -0
- package/foundation/doc-compiler/doc-loads.test.mjs +2 -2
- package/foundation/doc-compiler/inputs.d.mts +2 -2
- package/foundation/doc-compiler/inputs.mjs +6 -1
- package/foundation/doc-compiler/ir.mjs +7 -0
- package/foundation/doc-compiler/lenses.d.mts +8 -5
- package/foundation/doc-compiler/lenses.mjs +50 -4
- package/foundation/doc-compiler/links.d.mts +162 -0
- package/foundation/doc-compiler/links.mjs +294 -0
- package/foundation/doc-compiler/links.test.mjs +192 -0
- package/foundation/doc-compiler/lower-doc.test.mjs +5 -2
- package/foundation/doc-compiler/read.d.mts +3 -2
- package/foundation/doc-compiler/read.mjs +6 -1
- package/foundation/doc-compiler/tree.d.mts +288 -0
- package/foundation/doc-compiler/tree.mjs +876 -0
- package/foundation/doc-compiler/tree.test.mjs +598 -0
- package/foundation/integrations/autolink.test.mjs +1 -1
- package/foundation/integrations/cli-requirement.d.mts +45 -0
- package/foundation/integrations/cli-requirement.mjs +154 -0
- package/foundation/integrations/cli-requirement.test.mjs +84 -0
- package/foundation/integrations/contribution-inventory.d.mts +2 -1
- package/foundation/integrations/contribution-inventory.mjs +10 -4
- package/foundation/integrations/contribution-inventory.test.mjs +19 -0
- package/foundation/integrations/integration-warnings.d.mts +9 -2
- package/foundation/integrations/integration-warnings.mjs +51 -26
- package/foundation/integrations/integration-warnings.test.mjs +74 -1
- package/foundation/integrations/validate-contributions.mjs +25 -27
- package/foundation/response/response-types.doc.d.mts +5 -1
- package/foundation/response/response-types.doc.mjs +19 -10
- package/foundation/text/string-utils.d.mts +8 -0
- package/foundation/text/string-utils.mjs +18 -0
- package/foundation/xle/expand.mjs +1 -1
- package/foundation/xle/xle.test.mjs +13 -0
- package/package.json +9 -9
- package/assets/docs/cli.doc.mjs +0 -15
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
* @file EnumDoc for the `type` discriminant carried on every --json success
|
|
5
5
|
* envelope. The vocabulary mirrors the RESPONSE_TYPES map (each command's
|
|
6
6
|
* `jsonOut(...)` call sites) in `clients/cli/lib/manifest.mjs`; a consumer
|
|
7
|
-
* switches on `type` to narrow the `data` payload.
|
|
7
|
+
* switches on `type` to narrow the `data` payload. Descriptions follow the
|
|
8
|
+
* currently published response projection, not a future package-version boundary.
|
|
9
|
+
*
|
|
10
|
+
* @input Public response discriminants and their currently released payloads.
|
|
11
|
+
* @output Generated consumer reference for every typed JSON success response.
|
|
8
12
|
* @position packages/cli/foundation/response — enum documentation
|
|
9
13
|
*/
|
|
10
14
|
|
|
@@ -61,22 +65,27 @@ export const doc = {
|
|
|
61
65
|
{
|
|
62
66
|
value: 'docs.list',
|
|
63
67
|
description:
|
|
64
|
-
|
|
68
|
+
"All reference-doc topics as DocsListEntry[] ({topic, description, package, replaces?}), in read order; meta.namespaces lists the docs tree's top-level namespaces, and meta.notLoaded each package whose docs did not load.",
|
|
65
69
|
},
|
|
66
70
|
{
|
|
67
71
|
value: 'docs.detail',
|
|
68
72
|
description:
|
|
69
|
-
"One topic's full ReferenceDoc, with token-ref blocks inlined.",
|
|
73
|
+
"One topic's full ReferenceDoc (the JSON read of a topic, --full, --dense, or a topic with one section), with token-ref blocks inlined, plus links ({up, previous, next}: the commands that open the level it sits in and its neighbors there).",
|
|
70
74
|
},
|
|
71
75
|
{
|
|
72
76
|
value: 'docs.index',
|
|
73
77
|
description:
|
|
74
|
-
"One topic's section index (--index): the topic's name, title, and description, plus sections, each {id, title, summary} (pass the id as the section argument; summary is the section's one-line summary).",
|
|
78
|
+
"One topic's section index, the text read of a topic with more than one section (and --index): the topic's name, title, and description, plus sections, each {id, title, summary} (pass the id as the section argument; summary is the section's one-line summary), and links ({up, previous, next}: the commands that open the level it sits in and its neighbors there).",
|
|
75
79
|
},
|
|
76
80
|
{
|
|
77
81
|
value: 'docs.detail.section',
|
|
78
82
|
description:
|
|
79
|
-
'One ReferenceSection of a topic, found by key or title, with token-ref blocks inlined.',
|
|
83
|
+
'One ReferenceSection of a topic, found by key or title, with token-ref blocks inlined, plus links ({up, previous, next}: the commands that open its topic index and the sections before and after it).',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
value: 'docs.node',
|
|
87
|
+
description:
|
|
88
|
+
"One node of the docs tree, read by its route: its id, kind, package, title, summary, and breadcrumb, plus a namespace's slots with their children (one level down) or a typed doc's content, and links ({up, previous, next, related}: the commands that open its parent, its neighbors, and the docs it names).",
|
|
80
89
|
},
|
|
81
90
|
|
|
82
91
|
// blog (read from the published RSS feed)
|
|
@@ -116,7 +125,7 @@ export const doc = {
|
|
|
116
125
|
{
|
|
117
126
|
value: 'search',
|
|
118
127
|
description:
|
|
119
|
-
'The echoed query, `matchCount` (total matches, before `limit`), and results, a ranked SearchResultEntry[] bounded by `limit`: each {domain, name, score, reason, description, command}, plus import (components, hooks), title (docs), or displayName and kind (templates).',
|
|
128
|
+
'The echoed query, `matchCount` (total matches, before `limit`), and results, a ranked SearchResultEntry[] bounded by `limit`: each {domain, name, score, reason, description, command}, plus import (components, hooks), title, parent (the command that opens the level above), package (for a docs-tree hit), and, for a hit on one section, section (docs), or displayName and kind (templates).',
|
|
120
129
|
},
|
|
121
130
|
|
|
122
131
|
// build
|
|
@@ -128,7 +137,7 @@ export const doc = {
|
|
|
128
137
|
{
|
|
129
138
|
value: 'build.kit',
|
|
130
139
|
description:
|
|
131
|
-
|
|
140
|
+
"The template to start from and its kit: query, hasResults, matchCount (never a cap), directMatch, start {name, command, basis, reason, alternatives, ...}, pages (search's closest templates), blocks and domain as SearchResultEntry[], frame, foundation, and hint {reason, commands} when thin.",
|
|
132
141
|
},
|
|
133
142
|
|
|
134
143
|
// swizzle
|
|
@@ -158,7 +167,7 @@ export const doc = {
|
|
|
158
167
|
{
|
|
159
168
|
value: 'template.list',
|
|
160
169
|
description:
|
|
161
|
-
'
|
|
170
|
+
'The effective discovered TemplateListEntry[] for pages and blocks. A winning replacement entry includes optional `replaces`, naming the Core id omitted from the default list.',
|
|
162
171
|
},
|
|
163
172
|
{
|
|
164
173
|
value: 'template.show',
|
|
@@ -286,7 +295,7 @@ export const doc = {
|
|
|
286
295
|
{
|
|
287
296
|
value: 'integration.template-conflicts',
|
|
288
297
|
description:
|
|
289
|
-
'The integration identity, structural issues, and non-blocking
|
|
298
|
+
'The integration identity, structural issues, and non-blocking Core template-id conflicts as {id, severity: warning, integrationPackage, integrationType, integrationName, coreMatches, message, command}.',
|
|
290
299
|
},
|
|
291
300
|
{
|
|
292
301
|
value: 'integration.component-conflicts',
|
|
@@ -296,7 +305,7 @@ export const doc = {
|
|
|
296
305
|
{
|
|
297
306
|
value: 'integration.doc-conflicts',
|
|
298
307
|
description:
|
|
299
|
-
'The integration identity, structural issues, and Core doc overlaps
|
|
308
|
+
'The integration identity, structural issues, and Core doc overlaps. Each finding includes `severity` (`info` | `error`) and `relationship` (`replaces` | `extends` | `accidental`).',
|
|
300
309
|
},
|
|
301
310
|
|
|
302
311
|
// layout (XLE/XLO)
|
|
@@ -40,4 +40,12 @@ export function searchComponents(needle: string, coreDir: string, components: Re
|
|
|
40
40
|
score: number;
|
|
41
41
|
reason: string;
|
|
42
42
|
}[]>;
|
|
43
|
+
/**
|
|
44
|
+
* The first sentence of a text, whitespace collapsed. A period after "e.g" or
|
|
45
|
+
* "i.e" does not end the sentence. Used where a description has to fit on one
|
|
46
|
+
* line: `build`'s alternatives and its text kit.
|
|
47
|
+
* @param {string} text
|
|
48
|
+
* @returns {string}
|
|
49
|
+
*/
|
|
50
|
+
export function firstSentence(text: string): string;
|
|
43
51
|
export { levenshteinDistance } from "./levenshtein.mjs";
|
|
@@ -208,3 +208,21 @@ export async function searchComponents(needle, coreDir, components) {
|
|
|
208
208
|
|
|
209
209
|
return results;
|
|
210
210
|
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The first sentence of a text, whitespace collapsed. A period after "e.g" or
|
|
214
|
+
* "i.e" does not end the sentence. Used where a description has to fit on one
|
|
215
|
+
* line: `build`'s alternatives and its text kit.
|
|
216
|
+
* @param {string} text
|
|
217
|
+
* @returns {string}
|
|
218
|
+
*/
|
|
219
|
+
export function firstSentence(text) {
|
|
220
|
+
const flat = String(text ?? '').replace(/\s+/g, ' ').trim();
|
|
221
|
+
const ends = /[.!?](?=\s|$)/g;
|
|
222
|
+
for (let m = ends.exec(flat); m; m = ends.exec(flat)) {
|
|
223
|
+
if (!/\b(e\.g|i\.e)$/i.test(flat.slice(0, m.index))) {
|
|
224
|
+
return flat.slice(0, m.index + 1);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return flat;
|
|
228
|
+
}
|
|
@@ -545,7 +545,7 @@ class Emitter {
|
|
|
545
545
|
const flags = hint.flags.length > 0 ? ` (+${hint.flags.join(' +')})` : '';
|
|
546
546
|
const arg = hint.arg ? `:${hint.arg}` : '';
|
|
547
547
|
return [
|
|
548
|
-
`${pad}{/* TODO(xle): content block '${hint.block.name}'${flags}${arg} — scaffold it with: astryx template ${hint.block.name} */}`,
|
|
548
|
+
`${pad}{/* TODO(xle): content block '${hint.block.name}'${flags}${arg} — scaffold it with: astryx template ${hint.block.name} --type block */}`,
|
|
549
549
|
];
|
|
550
550
|
}
|
|
551
551
|
this.todos.push(`unresolved hint {${hint.name}}`);
|
|
@@ -10,6 +10,7 @@ import {describe, it, expect} from 'vitest';
|
|
|
10
10
|
import {parse, parseCompact, parseOutline, detectForm, XLEParseError} from './parse.mjs';
|
|
11
11
|
import {toCompact, toOutline} from './print.mjs';
|
|
12
12
|
import {validate} from './validate.mjs';
|
|
13
|
+
import {expand} from './expand.mjs';
|
|
13
14
|
import {parseEnumValues, SPACING_STEPS} from './registry.mjs';
|
|
14
15
|
|
|
15
16
|
// ─── parser: compact ───────────────────────────────────────────────────────
|
|
@@ -309,6 +310,18 @@ describe('validate', () => {
|
|
|
309
310
|
expect(doc.roots[0].hint.block.name).toBe('CardCallout');
|
|
310
311
|
});
|
|
311
312
|
|
|
313
|
+
it('includes --type block when a known block source is unavailable', () => {
|
|
314
|
+
const doc = parse('Bx{card-callout}');
|
|
315
|
+
expect(validate(doc, registry, BLOCKS).errors).toEqual([]);
|
|
316
|
+
const result = expand(doc, registry, {
|
|
317
|
+
componentName: 'Demo',
|
|
318
|
+
blockModules: new Map(),
|
|
319
|
+
});
|
|
320
|
+
expect(result.code).toContain(
|
|
321
|
+
'astryx template CardCallout --type block',
|
|
322
|
+
);
|
|
323
|
+
});
|
|
324
|
+
|
|
312
325
|
it('enforces structural pairings', () => {
|
|
313
326
|
const doc = parse('Bx > Sh');
|
|
314
327
|
const {errors} = validate(doc, registry, BLOCKS);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.6.3-canary.
|
|
3
|
+
"version": "0.6.3-canary.7ec7be0",
|
|
4
4
|
"displayName": "CLI",
|
|
5
5
|
"description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -101,10 +101,10 @@
|
|
|
101
101
|
"zod": "^4.4.3"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@astryxdesign/charts": "0.6.3-canary.
|
|
105
|
-
"@astryxdesign/core": "0.6.3-canary.
|
|
106
|
-
"@astryxdesign/lab": "0.6.3-canary.
|
|
107
|
-
"@astryxdesign/theme-neutral": "0.6.3-canary.
|
|
104
|
+
"@astryxdesign/charts": "0.6.3-canary.7ec7be0",
|
|
105
|
+
"@astryxdesign/core": "0.6.3-canary.7ec7be0",
|
|
106
|
+
"@astryxdesign/lab": "0.6.3-canary.7ec7be0",
|
|
107
|
+
"@astryxdesign/theme-neutral": "0.6.3-canary.7ec7be0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependenciesMeta": {
|
|
110
110
|
"@astryxdesign/charts": {
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
|
-
"@astryxdesign/charts": "0.6.3-canary.
|
|
125
|
-
"@astryxdesign/core": "0.6.3-canary.
|
|
126
|
-
"@astryxdesign/lab": "0.6.3-canary.
|
|
127
|
-
"@astryxdesign/theme-neutral": "0.6.3-canary.
|
|
124
|
+
"@astryxdesign/charts": "0.6.3-canary.7ec7be0",
|
|
125
|
+
"@astryxdesign/core": "0.6.3-canary.7ec7be0",
|
|
126
|
+
"@astryxdesign/lab": "0.6.3-canary.7ec7be0",
|
|
127
|
+
"@astryxdesign/theme-neutral": "0.6.3-canary.7ec7be0",
|
|
128
128
|
"@heroicons/react": "^2.2.0",
|
|
129
129
|
"@stylexjs/stylex": "^0.19.0",
|
|
130
130
|
"@types/babel__core": "^7.20.5",
|
package/assets/docs/cli.doc.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file `astryx docs cli`: every command, API function, output schema, and
|
|
5
|
-
* enum the CLI documents, one section each.
|
|
6
|
-
*
|
|
7
|
-
* Built from the docs whose `namespace` is `cli/commands` or `cli/api`, so it
|
|
8
|
-
* cannot drift from the commands and functions it describes. `astryx doctor`
|
|
9
|
-
* names a CLI doc with no namespace, or one no topic reads.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
import {buildCliTopic} from '../../foundation/discovery/cli-self-docs.mjs';
|
|
13
|
-
|
|
14
|
-
/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */
|
|
15
|
-
export const docs = await buildCliTopic();
|