@astryxdesign/cli 0.6.0 → 0.6.1
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/CHANGELOG.md +48 -1
- package/README.md +76 -67
- package/api/build/build.test.mjs +37 -0
- package/api/build/build.type.mjs +1 -1
- package/api/build/kit/kit.mjs +31 -1
- package/api/component/_adapter.mjs +14 -28
- package/api/component/integration-import-agreement.test.mjs +318 -0
- package/api/doctor/doctor.d.mts +32 -3
- package/api/doctor/doctor.doc.mjs +2 -1
- package/api/doctor/doctor.mjs +97 -4
- package/api/doctor/doctor.test.mjs +90 -1
- package/api/gap-report/gap-report-worker.d.mts +4 -0
- package/api/gap-report/gap-report-worker.mjs +73 -0
- package/api/gap-report/gap-report.d.mts +81 -0
- package/api/gap-report/gap-report.doc.d.mts +9 -0
- package/api/gap-report/gap-report.doc.mjs +127 -0
- package/api/gap-report/gap-report.mjs +707 -0
- package/api/gap-report/gap-report.test.mjs +1210 -0
- package/api/gap-report/gap-report.type.d.mts +88 -0
- package/api/gap-report/gap-report.type.mjs +69 -0
- package/api/index.d.mts +8 -1
- package/api/index.mjs +24 -1
- package/api/integration/add-contribution.d.mts +44 -0
- package/api/integration/add-contribution.mjs +1160 -0
- package/api/integration/add-contribution.test.mjs +733 -0
- package/api/integration/add-helpers.d.mts +80 -0
- package/api/integration/add-helpers.mjs +333 -0
- package/api/integration/add-helpers.test.mjs +161 -0
- package/api/integration/add-theme.d.mts +10 -0
- package/api/integration/add-theme.mjs +332 -0
- package/api/integration/add-theme.test.mjs +194 -0
- package/api/integration/integration-authoring.type.d.mts +55 -0
- package/api/integration/integration-authoring.type.mjs +76 -0
- package/api/integration/integration-block-exports.test.mjs +4 -0
- package/api/integration/integrationAdd.doc.d.mts +5 -0
- package/api/integration/integrationAdd.doc.mjs +100 -0
- package/api/integration/integrationAddAgentDoc.doc.d.mts +5 -0
- package/api/integration/integrationAddAgentDoc.doc.mjs +49 -0
- package/api/integration/integrationAddCodemod.doc.d.mts +5 -0
- package/api/integration/integrationAddCodemod.doc.mjs +55 -0
- package/api/integration/integrationAddComponent.doc.d.mts +5 -0
- package/api/integration/integrationAddComponent.doc.mjs +49 -0
- package/api/integration/integrationAddDoc.doc.d.mts +5 -0
- package/api/integration/integrationAddDoc.doc.mjs +59 -0
- package/api/integration/integrationAddTemplate.doc.d.mts +5 -0
- package/api/integration/integrationAddTemplate.doc.mjs +55 -0
- package/api/integration/integrationAddTheme.doc.d.mts +5 -0
- package/api/integration/integrationAddTheme.doc.mjs +85 -0
- package/api/integration/integrationPackCheck.doc.d.mts +5 -0
- package/api/integration/integrationPackCheck.doc.mjs +35 -0
- package/api/integration/pack-check.d.mts +27 -0
- package/api/integration/pack-check.mjs +795 -0
- package/api/integration/pack-check.test.mjs +569 -0
- package/api/integration/pack-check.type.d.mts +45 -0
- package/api/integration/pack-check.type.mjs +56 -0
- package/api/integration/public-api.test.mjs +21 -0
- package/api/integration/validate-integration.mjs +221 -11
- package/api/integration/validate-integration.test.mjs +189 -5
- package/api/integration/validateIntegration.doc.mjs +2 -2
- package/api/json/index.ts +1 -0
- package/api/search/search.mjs +19 -1
- package/api/theme/_adapter.d.mts +26 -28
- package/api/theme/_adapter.mjs +101 -38
- package/api/theme/add/add.d.mts +2 -1
- package/api/theme/add/add.mjs +56 -20
- package/api/theme/add/add.test.mjs +1 -0
- package/api/theme/build/build.d.mts +25 -0
- package/api/theme/build/build.mjs +101 -70
- package/api/theme/build/build.test.mjs +77 -44
- package/api/theme/integration-themes.test.mjs +183 -0
- package/api/theme/list/list.d.mts +10 -2
- package/api/theme/list/list.mjs +31 -10
- package/api/theme/list/list.test.mjs +102 -23
- package/api/theme/listThemes.doc.d.mts +1 -5
- package/api/theme/listThemes.doc.mjs +6 -13
- package/api/theme/targets/targets.test.mjs +22 -8
- package/api/theme/theme.d.mts +1 -1
- package/api/theme/theme.mjs +1 -1
- package/api/theme/theme.type.d.mts +9 -0
- package/api/theme/theme.type.mjs +3 -1
- package/api/theme/themeAdd.doc.d.mts +1 -4
- package/api/theme/themeAdd.doc.mjs +31 -31
- package/api/theme/themeBuild.doc.mjs +1 -1
- package/api/theme/themeList.doc.d.mts +1 -4
- package/api/theme/themeList.doc.mjs +7 -15
- package/api/theme/themeListAvailable.doc.d.mts +8 -0
- package/api/theme/themeListAvailable.doc.mjs +57 -0
- package/api/theme/themeTargets.doc.mjs +21 -7
- package/api/upgrade/_adapter.d.mts +2 -0
- package/api/upgrade/_adapter.mjs +1 -0
- package/api/upgrade/registry/registry.d.mts +40 -0
- package/api/upgrade/registry/registry.mjs +1154 -0
- package/api/upgrade/registry/registry.test.mjs +826 -0
- package/api/upgrade/run/run.mjs +49 -8
- package/api/upgrade/status/status.d.mts +6 -4
- package/api/upgrade/status/status.mjs +26 -8
- package/api/upgrade/upgrade.d.mts +2 -2
- package/api/upgrade/upgrade.doc.mjs +33 -9
- package/api/upgrade/upgrade.mjs +34 -7
- package/api/upgrade/upgrade.test.mjs +198 -8
- package/api/upgrade/upgrade.type.d.mts +90 -1
- package/api/upgrade/upgrade.type.mjs +51 -2
- package/assets/docs/cli-integrations.doc.mjs +152 -28
- package/assets/docs/getting-started.doc.mjs +1 -1
- package/assets/docs/{shadcn-compatibility.doc.mjs → shadcn-compatibility.doc.draft.mjs} +23 -13
- package/assets/docs/styling.doc.mjs +3 -3
- package/assets/docs/theme.doc.dense.mjs +2 -2
- package/assets/docs/theme.doc.mjs +23 -13
- package/assets/docs/theme.doc.zh.mjs +1 -1
- package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs +2 -1
- package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.tsx +38 -12
- package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadShowcase.doc.mjs +15 -0
- package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadShowcase.tsx +87 -0
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +23 -0
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.tsx +75 -0
- package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx +5 -19
- package/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjs +3 -2
- package/assets/templates/blocks/components/Center/CenterHorizontal.tsx +4 -5
- package/assets/templates/blocks/components/Toast/ToastAction.tsx +2 -1
- package/assets/templates/blocks/components/Toast/ToastDeduplication.tsx +2 -1
- package/assets/templates/blocks/components/Toast/ToastDismiss.tsx +2 -1
- package/assets/templates/blocks/components/Toast/ToastShowcase.tsx +2 -1
- package/assets/templates/blocks/components/Toast/ToastStacking.tsx +2 -1
- package/assets/templates/blocks/components/Toast/ToastTypes.tsx +2 -1
- package/assets/templates/pages/dashboard/template.doc.mjs +2 -2
- package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +3 -2
- package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +3 -2
- package/assets/templates/pages/dashboard-comparison/template.doc.mjs +3 -3
- package/assets/templates/pages/dashboard-composition/template.doc.mjs +2 -2
- package/assets/templates/pages/dashboard-progress/template.doc.mjs +2 -2
- package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +2 -2
- package/assets/templates/themes/butter/butterTheme.ts +3 -3
- package/assets/templates/themes/neutral/neutralTheme.ts +2 -2
- package/assets/templates/themes/stone/stoneTheme.ts +3 -3
- package/assets/theme.template.ts +4 -7
- package/authoring/config/config.doc.mjs +9 -1
- package/authoring/config/parse.d.mts +2 -0
- package/authoring/config/parse.mjs +28 -3
- package/authoring/config/parse.test.mjs +25 -3
- package/authoring/config/type.ts +3 -0
- package/authoring/doctypes/_schema.d.mts +3 -0
- package/authoring/doctypes/_schema.mjs +6 -1
- package/authoring/doctypes/base/type.ts +6 -6
- package/authoring/doctypes/component/component.doc.mjs +6 -0
- package/authoring/doctypes/component/type.ts +2 -0
- package/authoring/gap-report/parse.d.mts +63 -0
- package/authoring/gap-report/parse.mjs +121 -0
- package/authoring/gap-report/parse.test.mjs +172 -0
- package/authoring/gap-report/type.ts +107 -0
- package/authoring/index.d.mts +1 -0
- package/authoring/index.d.ts +12 -0
- package/authoring/index.mjs +4 -0
- package/authoring/integration/integration.doc.mjs +14 -2
- package/authoring/integration/parse.test.mjs +9 -4
- package/authoring/integration/schema.d.mts +2 -0
- package/authoring/integration/schema.mjs +1 -0
- package/authoring/integration/type.ts +23 -6
- package/authoring/shadcn/receipt.d.mts +219 -0
- package/authoring/shadcn/receipt.mjs +248 -0
- package/authoring/shadcn/receipt.test.mjs +187 -0
- package/authoring/shadcn/source-variants.d.mts +28 -0
- package/authoring/shadcn/source-variants.mjs +176 -0
- package/authoring/shadcn/source-variants.test.mjs +120 -0
- package/clients/cli/commands/build-theme.mjs +54 -19
- package/clients/cli/commands/build-theme.variants.test.mjs +15 -12
- package/clients/cli/commands/component/index.mjs +1 -1
- package/clients/cli/commands/docs.test.mjs +1 -0
- package/clients/cli/commands/doctor-integration.doc.mjs +1 -1
- package/clients/cli/commands/gap-report.doc.mjs +73 -0
- package/clients/cli/commands/gap-report.mjs +114 -0
- package/clients/cli/commands/gap-report.test.mjs +198 -0
- package/clients/cli/commands/import-hint-correctness.test.mjs +88 -0
- package/clients/cli/commands/integration-add.doc.mjs +88 -0
- package/clients/cli/commands/integration-authoring.test.mjs +177 -0
- package/clients/cli/commands/integration-pack.doc.mjs +34 -0
- package/clients/cli/commands/integration-real-world.test.mjs +618 -0
- package/clients/cli/commands/integration.doc.mjs +28 -0
- package/clients/cli/commands/integration.mjs +153 -0
- package/clients/cli/commands/theme-add.doc.mjs +11 -6
- package/clients/cli/commands/theme-list.doc.mjs +21 -5
- package/clients/cli/commands/theme-targets.behavior.test.mjs +19 -2
- package/clients/cli/commands/theme.doc.mjs +2 -2
- package/clients/cli/commands/upgrade.doc.mjs +17 -4
- package/clients/cli/commands/upgrade.mjs +12 -1
- package/clients/cli/commands/upgrade.test.mjs +41 -0
- package/clients/cli/index.mjs +5 -0
- package/clients/cli/lib/component-format.mjs +42 -26
- package/clients/cli/lib/component-format.test.mjs +34 -3
- package/clients/cli/lib/manifest.mjs +12 -0
- package/foundation/config/project-themes.test.mjs +127 -0
- package/foundation/config/project.d.mts +23 -4
- package/foundation/config/project.mjs +96 -9
- package/foundation/config/project.test.mjs +132 -6
- package/foundation/discovery/component-discovery.d.mts +36 -0
- package/foundation/discovery/component-discovery.mjs +96 -0
- package/foundation/discovery/theme-discovery.d.mts +39 -0
- package/foundation/discovery/theme-discovery.mjs +650 -0
- package/foundation/discovery/theme-discovery.test.mjs +375 -0
- package/foundation/discovery/theming-targets.d.mts +16 -0
- package/foundation/discovery/theming-targets.mjs +39 -3
- package/foundation/discovery/theming-targets.test.mjs +139 -0
- package/foundation/integrations/autolink.d.mts +96 -0
- package/foundation/integrations/autolink.mjs +265 -0
- package/foundation/integrations/autolink.test.mjs +430 -0
- package/foundation/integrations/contribution-inventory.d.mts +152 -0
- package/foundation/integrations/contribution-inventory.mjs +497 -0
- package/foundation/integrations/contribution-inventory.test.mjs +361 -0
- package/foundation/integrations/integrations.d.mts +73 -9
- package/foundation/integrations/integrations.mjs +158 -8
- package/foundation/integrations/integrations.test.mjs +152 -29
- package/foundation/integrations/manifest-writer.d.mts +56 -0
- package/foundation/integrations/manifest-writer.mjs +328 -0
- package/foundation/integrations/manifest-writer.test.mjs +229 -0
- package/foundation/integrations/validate-contributions.mjs +81 -6
- package/foundation/response/error-codes.d.mts +4 -1
- package/foundation/response/error-codes.doc.mjs +16 -1
- package/foundation/response/error-codes.mjs +10 -1
- package/foundation/response/response-types.doc.mjs +23 -2
- package/package.json +8 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
export type GapReportCategory = "missing_component" | "missing_variant" | "layout_gap" | "styling_gap" | "a11y_gap" | "api_friction" | "docs_gap" | "other";
|
|
5
|
+
export type GapReportCategoryEntry = {
|
|
6
|
+
value: GapReportCategory;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
export type GapReportOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* Project directory used for config and owner routing.
|
|
12
|
+
*/
|
|
13
|
+
cwd?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Fixed report category.
|
|
16
|
+
*/
|
|
17
|
+
category?: GapReportCategory | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* What capability was missing or difficult.
|
|
20
|
+
*/
|
|
21
|
+
reason?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Optional additional context.
|
|
24
|
+
*/
|
|
25
|
+
detail?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Explicit owner package for ambiguous routes.
|
|
28
|
+
*/
|
|
29
|
+
package?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Explicit consent for public handlers or GitHub issue creation.
|
|
32
|
+
*/
|
|
33
|
+
confirmPublic?: boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Return the category vocabulary without routing or writing.
|
|
36
|
+
*/
|
|
37
|
+
listCategories?: boolean | undefined;
|
|
38
|
+
};
|
|
39
|
+
export type GapReportCategoriesResponse = {
|
|
40
|
+
type: "gap-report.categories";
|
|
41
|
+
data: GapReportCategoryEntry[];
|
|
42
|
+
};
|
|
43
|
+
export type GapReportAggregateStatus = "filed" | "partial" | "failed" | "routed_only" | "consent_required" | "skipped";
|
|
44
|
+
export type GapReportDeliveryStatus = "filed" | "routed_only" | "skipped" | "failed" | "consent_required";
|
|
45
|
+
/**
|
|
46
|
+
* One handler's outcome in the fan-out.
|
|
47
|
+
*/
|
|
48
|
+
export type GapReportDelivery = {
|
|
49
|
+
handlerType: "project" | "integration" | "fallback";
|
|
50
|
+
/**
|
|
51
|
+
* Project, integration package, or fallback name.
|
|
52
|
+
*/
|
|
53
|
+
handler: string;
|
|
54
|
+
audience: "internal" | "public" | null;
|
|
55
|
+
status: GapReportDeliveryStatus;
|
|
56
|
+
url: string | null;
|
|
57
|
+
message: string | null;
|
|
58
|
+
};
|
|
59
|
+
export type GapReportReceipt = {
|
|
60
|
+
/**
|
|
61
|
+
* Overall outcome.
|
|
62
|
+
*/
|
|
63
|
+
status: GapReportAggregateStatus;
|
|
64
|
+
/**
|
|
65
|
+
* Selected owner package.
|
|
66
|
+
*/
|
|
67
|
+
package: string;
|
|
68
|
+
/**
|
|
69
|
+
* Selected issue destination, when configured.
|
|
70
|
+
*/
|
|
71
|
+
issuesUrl: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Ordered handler outcomes.
|
|
74
|
+
*/
|
|
75
|
+
deliveries: GapReportDelivery[];
|
|
76
|
+
/**
|
|
77
|
+
* Count of handlers that filed the report.
|
|
78
|
+
*/
|
|
79
|
+
filedCount: number;
|
|
80
|
+
/**
|
|
81
|
+
* Count of handlers that routed only.
|
|
82
|
+
*/
|
|
83
|
+
routedOnlyCount: number;
|
|
84
|
+
};
|
|
85
|
+
export type GapReportReceiptResponse = {
|
|
86
|
+
type: "gap-report.file";
|
|
87
|
+
data: GapReportReceipt;
|
|
88
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Colocated public types for `gapReport()` and `astryx gap-report`.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {'missing_component'|'missing_variant'|'layout_gap'|'styling_gap'|'a11y_gap'|'api_friction'|'docs_gap'|'other'} GapReportCategory
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {object} GapReportCategoryEntry
|
|
13
|
+
* @property {GapReportCategory} value
|
|
14
|
+
* @property {string} label
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @typedef {object} GapReportOptions
|
|
19
|
+
* @property {string} [cwd] Project directory used for config and owner routing.
|
|
20
|
+
* @property {GapReportCategory} [category] Fixed report category.
|
|
21
|
+
* @property {string} [reason] What capability was missing or difficult.
|
|
22
|
+
* @property {string} [detail] Optional additional context.
|
|
23
|
+
* @property {string} [package] Explicit owner package for ambiguous routes.
|
|
24
|
+
* @property {boolean} [confirmPublic] Explicit consent for public handlers or GitHub issue creation.
|
|
25
|
+
* @property {boolean} [listCategories] Return the category vocabulary without routing or writing.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {object} GapReportCategoriesResponse
|
|
30
|
+
* @property {'gap-report.categories'} type
|
|
31
|
+
* @property {GapReportCategoryEntry[]} data
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @typedef {'filed'|'partial'|'failed'|'routed_only'|'consent_required'|'skipped'} GapReportAggregateStatus
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @typedef {'filed'|'routed_only'|'skipped'|'failed'|'consent_required'} GapReportDeliveryStatus
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* One handler's outcome in the fan-out.
|
|
44
|
+
* @typedef {object} GapReportDelivery
|
|
45
|
+
* @property {'project'|'integration'|'fallback'} handlerType
|
|
46
|
+
* @property {string} handler Project, integration package, or fallback name.
|
|
47
|
+
* @property {'internal'|'public'|null} audience
|
|
48
|
+
* @property {GapReportDeliveryStatus} status
|
|
49
|
+
* @property {string|null} url
|
|
50
|
+
* @property {string|null} message
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @typedef {object} GapReportReceipt
|
|
55
|
+
* @property {GapReportAggregateStatus} status Overall outcome.
|
|
56
|
+
* @property {string} package Selected owner package.
|
|
57
|
+
* @property {string|null} issuesUrl Selected issue destination, when configured.
|
|
58
|
+
* @property {GapReportDelivery[]} deliveries Ordered handler outcomes.
|
|
59
|
+
* @property {number} filedCount Count of handlers that filed the report.
|
|
60
|
+
* @property {number} routedOnlyCount Count of handlers that routed only.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @typedef {object} GapReportReceiptResponse
|
|
65
|
+
* @property {'gap-report.file'} type
|
|
66
|
+
* @property {GapReportReceipt} data
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
export {};
|
package/api/index.d.mts
CHANGED
|
@@ -10,9 +10,12 @@ export { hook } from "./hook/hook.mjs";
|
|
|
10
10
|
export { search } from "./search/search.mjs";
|
|
11
11
|
export { build } from "./build/build.mjs";
|
|
12
12
|
export { swizzle } from "./swizzle/swizzle.mjs";
|
|
13
|
+
export { gapReport } from "./gap-report/gap-report.mjs";
|
|
13
14
|
export { upgrade } from "./upgrade/upgrade.mjs";
|
|
14
15
|
export { init } from "./init/init.mjs";
|
|
15
16
|
export { doctor } from "./doctor/doctor.mjs";
|
|
17
|
+
export { integrationAddTheme } from "./integration/add-theme.mjs";
|
|
18
|
+
export { integrationPackCheck } from "./integration/pack-check.mjs";
|
|
16
19
|
export { AstryxError } from "./error.mjs";
|
|
17
20
|
export { logger } from "./logger.mjs";
|
|
18
21
|
export * from "./component/component.type.mjs";
|
|
@@ -25,14 +28,18 @@ export * from "./hook/hook.type.mjs";
|
|
|
25
28
|
export * from "./search/search.type.mjs";
|
|
26
29
|
export * from "./build/build.type.mjs";
|
|
27
30
|
export * from "./swizzle/swizzle.type.mjs";
|
|
31
|
+
export * from "./gap-report/gap-report.type.mjs";
|
|
28
32
|
export * from "./upgrade/upgrade.type.mjs";
|
|
29
33
|
export * from "./init/init.type.mjs";
|
|
30
34
|
export * from "./doctor/doctor.type.mjs";
|
|
31
35
|
export * from "./layout/layout.type.mjs";
|
|
36
|
+
export * from "./integration/integration-authoring.type.mjs";
|
|
37
|
+
export * from "./integration/pack-check.type.mjs";
|
|
32
38
|
export * from "./integration/validate-integration.type.mjs";
|
|
33
39
|
export * from "./integration/authoring-checks.type.mjs";
|
|
34
40
|
export type Logger = import("./logger.mjs").Logger;
|
|
35
|
-
export { themeBuild, themeAdd, themeList, themeTargets, themePaletteGenerate, generateTonalPalette, listThemes } from "./theme/theme.mjs";
|
|
41
|
+
export { themeBuild, themeAdd, themeList, themeListAvailable, themeTargets, themePaletteGenerate, generateTonalPalette, listThemes } from "./theme/theme.mjs";
|
|
36
42
|
export { layoutExpand, layoutCheck, layoutGrammar } from "./layout/layout.mjs";
|
|
43
|
+
export { integrationAdd, integrationAddAgentDoc, integrationAddCodemod, integrationAddComponent, integrationAddDoc, integrationAddTemplate } from "./integration/add-contribution.mjs";
|
|
37
44
|
export { validateIntegration, summarizeIssues } from "./integration/validate-integration.mjs";
|
|
38
45
|
export { integrationTemplateConflicts, integrationComponentConflicts, integrationDocConflicts } from "./integration/authoring-checks.mjs";
|
package/api/index.mjs
CHANGED
|
@@ -25,15 +25,35 @@ export {docs} from './docs/docs.mjs';
|
|
|
25
25
|
export {blog} from './blog/blog.mjs';
|
|
26
26
|
export {discover} from './discover/discover.mjs';
|
|
27
27
|
export {template} from './template/template.mjs';
|
|
28
|
-
export {
|
|
28
|
+
export {
|
|
29
|
+
themeBuild,
|
|
30
|
+
themeAdd,
|
|
31
|
+
themeList,
|
|
32
|
+
themeListAvailable,
|
|
33
|
+
themeTargets,
|
|
34
|
+
themePaletteGenerate,
|
|
35
|
+
generateTonalPalette,
|
|
36
|
+
listThemes,
|
|
37
|
+
} from './theme/theme.mjs';
|
|
29
38
|
export {hook} from './hook/hook.mjs';
|
|
30
39
|
export {search} from './search/search.mjs';
|
|
31
40
|
export {build} from './build/build.mjs';
|
|
32
41
|
export {swizzle} from './swizzle/swizzle.mjs';
|
|
42
|
+
export {gapReport} from './gap-report/gap-report.mjs';
|
|
33
43
|
export {upgrade} from './upgrade/upgrade.mjs';
|
|
34
44
|
export {init} from './init/init.mjs';
|
|
35
45
|
export {doctor} from './doctor/doctor.mjs';
|
|
36
46
|
export {layoutExpand, layoutCheck, layoutGrammar} from './layout/layout.mjs';
|
|
47
|
+
export {
|
|
48
|
+
integrationAdd,
|
|
49
|
+
integrationAddAgentDoc,
|
|
50
|
+
integrationAddCodemod,
|
|
51
|
+
integrationAddComponent,
|
|
52
|
+
integrationAddDoc,
|
|
53
|
+
integrationAddTemplate,
|
|
54
|
+
} from './integration/add-contribution.mjs';
|
|
55
|
+
export {integrationAddTheme} from './integration/add-theme.mjs';
|
|
56
|
+
export {integrationPackCheck} from './integration/pack-check.mjs';
|
|
37
57
|
export {
|
|
38
58
|
validateIntegration,
|
|
39
59
|
summarizeIssues,
|
|
@@ -66,9 +86,12 @@ export * from './hook/hook.type.mjs';
|
|
|
66
86
|
export * from './search/search.type.mjs';
|
|
67
87
|
export * from './build/build.type.mjs';
|
|
68
88
|
export * from './swizzle/swizzle.type.mjs';
|
|
89
|
+
export * from './gap-report/gap-report.type.mjs';
|
|
69
90
|
export * from './upgrade/upgrade.type.mjs';
|
|
70
91
|
export * from './init/init.type.mjs';
|
|
71
92
|
export * from './doctor/doctor.type.mjs';
|
|
72
93
|
export * from './layout/layout.type.mjs';
|
|
94
|
+
export * from './integration/integration-authoring.type.mjs';
|
|
95
|
+
export * from './integration/pack-check.type.mjs';
|
|
73
96
|
export * from './integration/validate-integration.type.mjs';
|
|
74
97
|
export * from './integration/authoring-checks.type.mjs';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @param {string} name
|
|
6
|
+
* @param {import('./integration-authoring.type.mjs').IntegrationAddComponentOptions} [options]
|
|
7
|
+
*/
|
|
8
|
+
export function integrationAddComponent(name: string, options?: import("./integration-authoring.type.mjs").IntegrationAddComponentOptions): Promise<import("./integration-authoring.type.mjs").IntegrationAddResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} name
|
|
11
|
+
* @param {import('./integration-authoring.type.mjs').IntegrationAddDocOptions} [options]
|
|
12
|
+
*/
|
|
13
|
+
export function integrationAddDoc(name: string, options?: import("./integration-authoring.type.mjs").IntegrationAddDocOptions): Promise<import("./integration-authoring.type.mjs").IntegrationAddResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* @param {string} name
|
|
16
|
+
* @param {import('./integration-authoring.type.mjs').IntegrationAddTemplateOptions} [options]
|
|
17
|
+
*/
|
|
18
|
+
export function integrationAddTemplate(name: string, options?: import("./integration-authoring.type.mjs").IntegrationAddTemplateOptions): Promise<import("./integration-authoring.type.mjs").IntegrationAddResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* @param {string} name
|
|
21
|
+
* @param {import('./integration-authoring.type.mjs').IntegrationAddCodemodOptions} options
|
|
22
|
+
*/
|
|
23
|
+
export function integrationAddCodemod(name: string, options: import("./integration-authoring.type.mjs").IntegrationAddCodemodOptions): Promise<import("./integration-authoring.type.mjs").IntegrationAddResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* @param {string} line
|
|
26
|
+
* @param {import('./integration-authoring.type.mjs').IntegrationAddAgentDocOptions} [options]
|
|
27
|
+
*/
|
|
28
|
+
export function integrationAddAgentDoc(line: string, options?: import("./integration-authoring.type.mjs").IntegrationAddAgentDocOptions): Promise<import("./integration-authoring.type.mjs").IntegrationAddResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Add one contribution to the local integration package.
|
|
31
|
+
*
|
|
32
|
+
* @param {'component'|'doc'|'template'|'codemod'|'agent-doc'|'theme'} kind
|
|
33
|
+
* @param {string} name
|
|
34
|
+
* @param {{cwd?: string, dryRun?: boolean, templateType?: 'page'|'block', to?: string, replaces?: string, extends?: string}} [options]
|
|
35
|
+
* @returns {Promise<import('./integration-authoring.type.mjs').IntegrationAddResponse>}
|
|
36
|
+
*/
|
|
37
|
+
export function integrationAdd(kind: "component" | "doc" | "template" | "codemod" | "agent-doc" | "theme", name: string, options?: {
|
|
38
|
+
cwd?: string;
|
|
39
|
+
dryRun?: boolean;
|
|
40
|
+
templateType?: "page" | "block";
|
|
41
|
+
to?: string;
|
|
42
|
+
replaces?: string;
|
|
43
|
+
extends?: string;
|
|
44
|
+
}): Promise<import("./integration-authoring.type.mjs").IntegrationAddResponse>;
|