@astryxdesign/cli 0.7.3 → 0.7.4-canary.1a552f2
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 +63 -63
- package/api/component/_adapter.mjs +4 -3
- package/api/component/component.mjs +13 -6
- package/api/component/doc-links.test.mjs +33 -0
- package/api/discover/_adapter.mjs +22 -10
- package/api/discover/_catalog-view.d.mts +2 -0
- package/api/discover/_catalog-view.mjs +1 -0
- package/api/discover/_catalog-view.test.mjs +1 -0
- package/api/discover/detail/detail.mjs +1 -0
- package/api/discover/detail/detail.test.mjs +3 -0
- package/api/discover/detail/doc/doc.mjs +5 -1
- package/api/discover/detail/doc/doc.test.mjs +1 -0
- package/api/discover/detail/item/item.mjs +2 -0
- package/api/discover/detail/item/item.test.mjs +2 -0
- package/api/discover/discover.doc.mjs +4 -4
- package/api/discover/discover.type.d.mts +20 -0
- package/api/discover/discover.type.mjs +5 -0
- package/api/discover/list/list.test.mjs +2 -0
- package/api/discover/search/search.d.mts +3 -2
- package/api/discover/search/search.mjs +26 -7
- package/api/discover/search/search.test.mjs +67 -0
- package/api/docs/_adapter.d.mts +80 -0
- package/api/docs/_adapter.mjs +261 -11
- package/api/docs/detail/detail.mjs +8 -0
- package/api/docs/docOverlays.test.mjs +2 -1
- package/api/docs/docs.d.mts +16 -6
- package/api/docs/docs.doc.mjs +1 -1
- package/api/docs/docs.mjs +55 -6
- package/api/docs/docs.type.d.mts +28 -2
- package/api/docs/docs.type.mjs +13 -3
- package/api/docs/guide-route-targets.test.mjs +1002 -0
- package/api/docs/index/index.mjs +9 -0
- package/api/docs/integration-tree.test.mjs +22 -0
- package/api/docs/integrationDocs.test.mjs +85 -0
- package/api/docs/list/list.mjs +7 -1
- package/api/docs/node/node.mjs +9 -1
- package/api/docs/reference-blocks.test.mjs +1 -1
- package/api/doctor/_adapter.d.mts +40 -0
- package/api/doctor/_adapter.mjs +171 -1
- package/api/doctor/built-checks.d.mts +85 -0
- package/api/doctor/built-checks.mjs +837 -0
- package/api/doctor/built-checks.test.mjs +531 -0
- package/api/doctor/doctor.d.mts +6 -5
- package/api/doctor/doctor.doc.mjs +11 -1
- package/api/doctor/doctor.mjs +18 -3
- package/api/doctor/doctor.type.d.mts +6 -0
- package/api/doctor/doctor.type.mjs +3 -0
- package/api/hook/list/list.d.mts +1 -1
- package/api/integration/_adapter.d.mts +11 -2
- package/api/integration/_adapter.mjs +30 -4
- package/api/integration/authoring-checks.mjs +29 -2
- package/api/integration/authoring-checks.test.mjs +131 -1
- package/api/integration/check/check.d.mts +4 -1
- package/api/integration/check/check.mjs +34 -4
- package/api/integration/check/check.test.mjs +49 -0
- package/api/integration/integration-check.type.d.mts +8 -0
- package/api/integration/integration-check.type.mjs +4 -1
- package/api/integration/integrationCheck.doc.mjs +8 -1
- package/api/integration/integrationDocConflicts.doc.mjs +1 -1
- package/api/integration/pack-check.mjs +71 -2
- package/api/integration/pack-check.test.mjs +77 -0
- package/api/integration/validate-integration-case-disk.test.mjs +2 -0
- package/api/integration/validate-integration-gaps.test.mjs +7 -4
- package/api/integration/validate-integration.mjs +96 -14
- package/api/integration/validate-integration.type.d.mts +10 -4
- package/api/integration/validate-integration.type.mjs +10 -5
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/search/_candidate-score.d.mts +3 -2
- package/api/search/_candidate-score.mjs +66 -3
- package/api/search/_gather-docs.mjs +12 -2
- package/api/search/_priority.mjs +2 -1
- package/api/search/_score.d.mts +2 -1
- package/api/search/_score.mjs +2 -2
- package/api/search/search.doc.mjs +1 -1
- package/api/search/search.family-members.test.mjs +124 -0
- package/api/search/search.mjs +28 -0
- package/api/theme/palette/generate/generate.d.mts +8 -0
- package/api/theme/palette/generate/generate.mjs +38 -11
- package/api/theme/palette/generate/generate.test.mjs +83 -4
- package/api/theme/palette/generate/generator.d.mts +6 -0
- package/api/theme/palette/generate/generator.mjs +6 -0
- package/api/theme/theme.type.d.mts +12 -1
- package/api/theme/theme.type.mjs +7 -1
- package/api/theme/themeBuild.doc.mjs +1 -1
- package/api/theme/themeList.doc.mjs +1 -1
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/api/theme/themeTargets.doc.mjs +1 -1
- package/assets/discover/official-packages.json +16 -0
- package/assets/docs/author-a-theme.doc.mjs +15 -15
- package/assets/docs/browser-support.doc.mjs +1 -1
- package/assets/docs/getting-started.doc.mjs +16 -16
- package/assets/docs/is-my-code-good.doc.mjs +6 -6
- package/assets/docs/styling-overview.doc.mjs +5 -5
- package/assets/docs/theme.doc.mjs +5 -5
- package/assets/docs/tree/add-a-component.doc.mjs +1 -1
- package/assets/docs/tree/add-a-theme.doc.mjs +2 -2
- package/assets/docs/tree/add-a-topic.doc.mjs +6 -6
- package/assets/docs/tree/agent-guidance.doc.mjs +5 -5
- package/assets/docs/tree/authoring.doc.mjs +2 -2
- package/assets/docs/tree/block-template.doc.mjs +1 -1
- package/assets/docs/tree/check-the-props.doc.mjs +3 -3
- package/assets/docs/tree/check-your-docs.doc.mjs +6 -6
- package/assets/docs/tree/checks.doc.mjs +11 -11
- package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
- package/assets/docs/tree/cli-command.doc.mjs +6 -6
- package/assets/docs/tree/codemods.doc.mjs +7 -7
- package/assets/docs/tree/component-family.doc.mjs +1 -1
- package/assets/docs/tree/component-imports.doc.mjs +2 -2
- package/assets/docs/tree/component-lookups.doc.mjs +6 -5
- package/assets/docs/tree/computer-agent-guide.doc.mjs +7 -7
- package/assets/docs/tree/computer-integrations.doc.mjs +5 -5
- package/assets/docs/tree/debug-and-gap-reports.doc.mjs +3 -3
- package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
- package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
- package/assets/docs/tree/doc-syntax.doc.mjs +219 -0
- package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
- package/assets/docs/tree/extend-or-replace.doc.mjs +39 -7
- package/assets/docs/tree/font-setup.doc.mjs +1 -1
- package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
- package/assets/docs/tree/global-integrations.doc.mjs +11 -11
- package/assets/docs/tree/global.doc.mjs +2 -2
- package/assets/docs/tree/host-entry.doc.mjs +1 -1
- package/assets/docs/tree/install-once.doc.mjs +4 -4
- package/assets/docs/tree/layout.doc.mjs +1 -1
- package/assets/docs/tree/links.doc.mjs +2 -2
- package/assets/docs/tree/migration-setup.doc.mjs +15 -15
- package/assets/docs/tree/migration.doc.mjs +2 -1
- package/assets/docs/tree/other-libraries.doc.mjs +1 -1
- package/assets/docs/tree/page-template.doc.mjs +2 -2
- package/assets/docs/tree/problems.doc.mjs +8 -8
- package/assets/docs/tree/project-global-or-both.doc.mjs +2 -2
- package/assets/docs/tree/publishing.doc.mjs +7 -7
- package/assets/docs/tree/quick-start.doc.mjs +9 -9
- package/assets/docs/tree/reference.doc.mjs +2 -2
- package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
- package/assets/docs/tree/replace-a-core-template.doc.mjs +4 -4
- package/assets/docs/tree/scaffold.doc.mjs +1 -1
- package/assets/docs/tree/sections-and-placement.doc.mjs +3 -3
- package/assets/docs/tree/see-it-in-an-app.doc.mjs +3 -3
- package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
- package/assets/docs/tree/single-component.doc.mjs +4 -4
- package/assets/docs/tree/start-a-template.doc.mjs +5 -5
- package/assets/docs/tree/styling-advanced.doc.mjs +1 -1
- package/assets/docs/tree/styling-libraries.doc.mjs +2 -1
- package/assets/docs/tree/styling.doc.mjs +1 -1
- package/assets/docs/tree/tailwind.doc.mjs +1 -1
- package/assets/docs/tree/test-in-an-app.doc.mjs +5 -5
- package/assets/docs/tree/test-template-in-app.doc.mjs +6 -6
- package/assets/docs/tree/tokens-and-setup.doc.mjs +1 -1
- package/assets/docs/tree/troubleshooting.doc.mjs +24 -20
- package/assets/docs/tree/uninstall.doc.mjs +2 -2
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/upgrading.doc.mjs +3 -3
- package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
- package/assets/docs/tree/verify-packed-template.doc.mjs +3 -3
- package/assets/docs/tree/versioning.doc.mjs +4 -4
- package/assets/docs/tree/who-answers.doc.mjs +4 -4
- package/assets/docs/tree/write-the-template-file.doc.mjs +4 -4
- package/assets/docs/use-a-theme.doc.mjs +10 -10
- package/assets/docs/use-integrations.doc.mjs +1 -1
- package/assets/docs/working-with-ai.doc.mjs +15 -15
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +1 -1
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +1 -1
- package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/butter/butterPalettes.generated.receipt.json +1499 -0
- package/assets/templates/themes/butter/butterPalettes.generated.ts +550 -0
- package/assets/templates/themes/butter/butterTheme.ts +274 -234
- package/assets/templates/themes/butter/palette.config.json +484 -0
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +41 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.receipt.json +979 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.ts +271 -0
- package/assets/templates/themes/gothic/gothicTheme.ts +130 -160
- package/assets/templates/themes/gothic/palette.config.json +371 -0
- package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.receipt.json +1502 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.ts +501 -0
- package/assets/templates/themes/matcha/matchaPalettes.ts +21 -0
- package/assets/templates/themes/matcha/matchaTheme.ts +164 -103
- package/assets/templates/themes/matcha/palette.config.json +448 -0
- package/assets/templates/themes/stone/palette.config.json +262 -0
- package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/stone/stonePalettes.generated.receipt.json +840 -0
- package/assets/templates/themes/stone/stonePalettes.generated.ts +501 -0
- package/assets/templates/themes/stone/stoneTheme.ts +190 -207
- package/assets/templates/themes/y2k/palette.config.json +166 -0
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.receipt.json +872 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.ts +550 -0
- package/assets/templates/themes/y2k/y2kPalettes.ts +257 -0
- package/assets/templates/themes/y2k/y2kTheme.ts +164 -391
- package/authoring/codemod/codemod.doc.mjs +1 -1
- package/authoring/config/config.doc.mjs +4 -4
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/discover/discover.doc.mjs +1 -1
- package/authoring/doctypes/_schema.d.mts +4 -0
- package/authoring/doctypes/_schema.mjs +4 -0
- package/authoring/doctypes/reference/type.ts +14 -2
- package/authoring/gap-report/gap-report.doc.mjs +1 -1
- package/authoring/integration/integration.doc.mjs +6 -6
- package/clients/cli/commands/discover.mjs +1 -1
- package/clients/cli/commands/discover.sources.test.mjs +6 -0
- package/clients/cli/commands/docs.doc.mjs +1 -1
- package/clients/cli/commands/docs.mjs +27 -2
- package/clients/cli/commands/docs.test.mjs +1 -1
- package/clients/cli/commands/doctor-integration-docs.doc.mjs +1 -1
- package/clients/cli/commands/doctor.doc.mjs +13 -1
- package/clients/cli/commands/doctor.mjs +25 -9
- package/clients/cli/commands/integration-check.doc.mjs +11 -0
- package/clients/cli/commands/integration-check.test.mjs +36 -3
- package/clients/cli/commands/integration-pack.doc.mjs +1 -1
- package/clients/cli/commands/integration-verify.doc.mjs +1 -1
- package/clients/cli/commands/integration.mjs +15 -3
- package/clients/cli/commands/theme-targets.doc.mjs +1 -1
- package/clients/cli/commands/upgrade.doc.mjs +2 -2
- package/clients/cli/lib/define-command.mjs +5 -3
- package/foundation/agent-docs/agent-docs.d.mts +14 -2
- package/foundation/agent-docs/agent-docs.mjs +65 -4
- package/foundation/agent-docs/agent-docs.test.mjs +107 -0
- package/foundation/discovery/docs-discovery.d.mts +93 -2
- package/foundation/discovery/docs-discovery.mjs +237 -8
- package/foundation/discovery/runner-allowlist.d.mts +2 -0
- package/foundation/discovery/runner-allowlist.mjs +4 -0
- package/foundation/discovery/runner-commands.d.mts +29 -13
- package/foundation/discovery/runner-commands.mjs +253 -17
- package/foundation/discovery/stray-pointers.mjs +11 -5
- package/foundation/discovery/stray-pointers.test.mjs +6 -0
- package/foundation/doc-compiler/compile.mjs +8 -1
- package/foundation/doc-compiler/doc-loads.test.mjs +3 -0
- package/foundation/doc-compiler/doc-syntax.d.mts +194 -0
- package/foundation/doc-compiler/doc-syntax.mjs +739 -0
- package/foundation/doc-compiler/doc-syntax.test.mjs +383 -0
- package/foundation/doc-compiler/links.d.mts +13 -16
- package/foundation/doc-compiler/links.mjs +40 -7
- package/foundation/doc-compiler/tree.d.mts +5 -0
- package/foundation/doc-compiler/tree.mjs +9 -0
- package/foundation/env/package-manager.d.mts +18 -0
- package/foundation/env/package-manager.mjs +40 -0
- package/foundation/integrations/cli-requirement.d.mts +29 -0
- package/foundation/integrations/cli-requirement.mjs +47 -0
- package/foundation/integrations/cli-requirement.test.mjs +23 -2
- package/foundation/response/error-codes.test.mjs +9 -0
- package/foundation/response/response-types.doc.mjs +11 -11
- package/foundation/response/response-types.doc.test.mjs +29 -0
- package/package.json +9 -9
|
@@ -26,7 +26,7 @@ export const docs = {
|
|
|
26
26
|
content: [
|
|
27
27
|
{
|
|
28
28
|
type: 'prose',
|
|
29
|
-
text: '`
|
|
29
|
+
text: '`{@command template}` copies exactly one source file. It does not copy sibling helpers, stylesheets, fonts, icons, images, or media. Plan for that before you add supporting files.',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
type: 'table',
|
|
@@ -44,13 +44,13 @@ export const docs = {
|
|
|
44
44
|
type: 'code',
|
|
45
45
|
lang: 'bash',
|
|
46
46
|
code: `# Page: src/app/account/page.tsx
|
|
47
|
-
|
|
47
|
+
{@command template acme-account src/app/account}
|
|
48
48
|
|
|
49
49
|
# Block: src/features/account/acme-stat-card.tsx
|
|
50
|
-
|
|
50
|
+
{@command template acme-stat-card src/features/account}
|
|
51
51
|
|
|
52
52
|
# Exact destination for either kind
|
|
53
|
-
|
|
53
|
+
{@command template acme-stat-card src/features/account/StatusCard.tsx}`,
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
type: 'prose',
|
|
@@ -19,7 +19,7 @@ export const docs = {
|
|
|
19
19
|
type: 'code',
|
|
20
20
|
lang: 'bash',
|
|
21
21
|
label: 'Install and add a theme',
|
|
22
|
-
code: '
|
|
22
|
+
code: '{@pm install @astryxdesign/theme-neutral}\n{@command theme add neutral}',
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
type: 'code',
|
|
@@ -54,7 +54,7 @@ export const docs = {
|
|
|
54
54
|
type: 'code',
|
|
55
55
|
lang: 'bash',
|
|
56
56
|
label: 'Add descriptors to earlier copies',
|
|
57
|
-
code: '
|
|
57
|
+
code: '{@command upgrade --from 0.6.4 --path . --apply}',
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
type: 'prose',
|
|
@@ -71,13 +71,13 @@ export const docs = {
|
|
|
71
71
|
content: [
|
|
72
72
|
{
|
|
73
73
|
type: 'prose',
|
|
74
|
-
text: 'Install the theme package you want with `
|
|
74
|
+
text: 'Install the theme package you want with `{@pm install @astryxdesign/theme-<name>}`, then import its slug with `theme add <slug>`. The CLI imports the package\'s built outputs for you.',
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
type: 'table',
|
|
78
78
|
headers: ['Theme', 'Add command', 'Description'],
|
|
79
79
|
rows: [
|
|
80
|
-
['Neutral', '
|
|
80
|
+
['Neutral', '{@command theme add neutral}', 'Muted, minimal aesthetic with Figtree typography. A good starting point.'],
|
|
81
81
|
['Butter', 'astryx theme add butter', 'Golden, buttery surfaces with blue accents; Sarina + Outfit type.'],
|
|
82
82
|
['Chocolate', 'astryx theme add chocolate', 'Warm brown tones and cozy beige; Fraunces + Albert Sans type.'],
|
|
83
83
|
['Gothic', 'astryx theme add gothic', 'Dark-only atmospheric theme; deep blue-gray surfaces, distressed display type.'],
|
|
@@ -97,7 +97,7 @@ export const docs = {
|
|
|
97
97
|
content: [
|
|
98
98
|
{
|
|
99
99
|
type: 'prose',
|
|
100
|
-
text: "`<Theme>` takes `theme` (required), `mode` (`'system'` by default, or `'light'`/`'dark'`), and `children`. For every prop, run `
|
|
100
|
+
text: "`<Theme>` takes `theme` (required), `mode` (`'system'` by default, or `'light'`/`'dark'`), and `children`. For every prop, run `{@command component Theme}`.",
|
|
101
101
|
},
|
|
102
102
|
],
|
|
103
103
|
},
|
|
@@ -113,7 +113,7 @@ export const docs = {
|
|
|
113
113
|
type: 'code',
|
|
114
114
|
lang: 'bash',
|
|
115
115
|
label: 'Install, inspect, and add',
|
|
116
|
-
code: '
|
|
116
|
+
code: '{@pm install @astryxdesign/core @acme/brand-integration}\n{@command theme list --package @acme/brand-integration}\n{@command docs brand-theme}\n{@command theme add ocean --package @acme/brand-integration}',
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
type: 'prose',
|
|
@@ -175,11 +175,11 @@ export const docs = {
|
|
|
175
175
|
headers: ['', 'Runtime (source)', 'Built'],
|
|
176
176
|
rows: [
|
|
177
177
|
['Import (published theme)', '@astryxdesign/theme-{name}', '@astryxdesign/theme-{name}/built + theme.css'],
|
|
178
|
-
['Import (custom theme)', 'defineTheme() directly', 'Built .js + .css from `
|
|
178
|
+
['Import (custom theme)', 'defineTheme() directly', 'Built .js + .css from `{@command theme build}`'],
|
|
179
179
|
['How it works', 'useInsertionEffect injects <style> at hydration', 'Pre-compiled .css file loaded with the page'],
|
|
180
180
|
['Component overrides', 'Injected client-only', 'In static CSS: present during SSR'],
|
|
181
181
|
['SSR safe', 'Tokens yes, component overrides flash on hydration', 'Fully SSR safe: no flash'],
|
|
182
|
-
['Best for', 'Authoring input for `
|
|
182
|
+
['Best for', 'Authoring input for `{@command theme build}`', 'App wiring, in development and production'],
|
|
183
183
|
],
|
|
184
184
|
},
|
|
185
185
|
{
|
|
@@ -188,8 +188,8 @@ export const docs = {
|
|
|
188
188
|
items: [
|
|
189
189
|
'Use `theme add` for production apps; it wires the built module and CSS.',
|
|
190
190
|
'Import `themes` and `defaultThemeSlug` from the generated module once, and keep that wiring in development too.',
|
|
191
|
-
'While you edit a local theme, run `
|
|
192
|
-
'Run `
|
|
191
|
+
'While you edit a local theme, run `{@command theme build --watch}` so its built files stay current.',
|
|
192
|
+
'Run `{@command theme build}` for custom themes to get the built artifacts.',
|
|
193
193
|
],
|
|
194
194
|
},
|
|
195
195
|
{
|
|
@@ -40,7 +40,7 @@ export const docs = {
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
type: 'prose',
|
|
43
|
-
text: "That's it. The `init --features agents` command generates everything your AI needs (component index, behavioral rules, CLI reference, and package guidance from configured integrations) from the installed project. After a dependency bump, `
|
|
43
|
+
text: "That's it. The `init --features agents` command generates everything your AI needs (component index, behavioral rules, CLI reference, and package guidance from configured integrations) from the installed project. After a dependency bump, `{@command upgrade --from <old version>}` reports a stale block and adding `--apply` refreshes it.",
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
type: 'prose',
|
|
@@ -50,12 +50,12 @@ export const docs = {
|
|
|
50
50
|
type: 'code',
|
|
51
51
|
lang: 'bash',
|
|
52
52
|
label: 'Manual options',
|
|
53
|
-
code: `
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
code: `{@command init --features agents --agent claude} # CLAUDE.md if present, else .claude/CLAUDE.md
|
|
54
|
+
{@command init --features agents --agent cursor} # .cursorrules if present, else AGENTS.md
|
|
55
|
+
{@command init --features agents --agent codex} # AGENTS.md (Copilot, Codex, etc.)
|
|
56
|
+
{@command init --features agents --agent hermes} # .hermes.md or HERMES.md if present, else AGENTS.md
|
|
57
|
+
{@command init --features agents --agent muse} # AGENTS.md (Muse)
|
|
58
|
+
{@command init --features agents --agent all} # every agent file present except GEMINI.md, else AGENTS.md and .claude/CLAUDE.md`,
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
type: 'prose',
|
|
@@ -63,7 +63,7 @@ astryx init --features agents --agent all # every agent file present excep
|
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
type: 'prose',
|
|
66
|
-
text: "For agents that work outside any one project, your global install keeps one short Astryx skill, `~/.agents/skills/astryx/SKILL.md`, linked into the skill folders agent tools read, such as `~/.claude/skills/astryx`. It tells agents Astryx is there and when to use it; `
|
|
66
|
+
text: "For agents that work outside any one project, your global install keeps one short Astryx skill, `~/.agents/skills/astryx/SKILL.md`, linked into the skill folders agent tools read, such as `~/.claude/skills/astryx`. It tells agents Astryx is there and when to use it; `{@command init --user}` writes it now or, with `--remove-agents`, turns it off. Inside a project, agents follow that project's own agent docs. See {@link generic:computer-agent-guide}.",
|
|
67
67
|
},
|
|
68
68
|
],
|
|
69
69
|
},
|
|
@@ -78,9 +78,9 @@ astryx init --features agents --agent all # every agent file present excep
|
|
|
78
78
|
type: 'list',
|
|
79
79
|
style: 'ordered',
|
|
80
80
|
items: [
|
|
81
|
-
'`
|
|
82
|
-
'`
|
|
83
|
-
'`
|
|
81
|
+
'`{@command build "<idea>"}`: get the page template to start from (always one: the closest match, or the app shell), two other templates, and the blocks and components for the parts it lacks',
|
|
82
|
+
'`{@command template <name> <path>}`: scaffold that template into the project, keep its frame and spacing, and replace its content',
|
|
83
|
+
'`{@command component <Name>}`: read props and examples for every component used',
|
|
84
84
|
],
|
|
85
85
|
},
|
|
86
86
|
{
|
|
@@ -100,7 +100,7 @@ astryx init --features agents --agent all # every agent file present excep
|
|
|
100
100
|
type: 'code',
|
|
101
101
|
lang: 'bash',
|
|
102
102
|
label: 'Install as a Cursor project rule',
|
|
103
|
-
code: `
|
|
103
|
+
code: `{@command init --features agents --agent-docs-path .cursor/rules/astryx.mdc}`,
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
type: 'prose',
|
|
@@ -171,9 +171,9 @@ npm run astryx -- docs tokens --dense`,
|
|
|
171
171
|
type: 'code',
|
|
172
172
|
lang: 'bash',
|
|
173
173
|
label: 'Short output for pasting into AI conversations',
|
|
174
|
-
code: `
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
code: `{@command docs styling --full --detail brief}
|
|
175
|
+
{@command component Dialog --detail compact}
|
|
176
|
+
{@command docs principles --dense}`,
|
|
177
177
|
},
|
|
178
178
|
],
|
|
179
179
|
},
|
package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const doc = {
|
|
|
7
7
|
name: 'Bottom Sheet Switcher — Review flow',
|
|
8
8
|
displayName: 'Bottom Sheet Switcher — Review flow',
|
|
9
9
|
description:
|
|
10
|
-
'A two-step form flow that lets a person review settings, confirm them, or move back
|
|
10
|
+
'A two-step form flow that lets a person review settings, confirm them, or move back, each step in its own native dialog under one scrim.',
|
|
11
11
|
isReady: true,
|
|
12
12
|
isShowcase: false,
|
|
13
13
|
aspectRatio: 3 / 4,
|
|
@@ -7,7 +7,7 @@ export const doc = {
|
|
|
7
7
|
name: 'Bottom Sheet Switcher',
|
|
8
8
|
displayName: 'Bottom Sheet Switcher',
|
|
9
9
|
description:
|
|
10
|
-
'A three-step flow that transitions between content-hugging sheets of different heights
|
|
10
|
+
'A three-step flow that transitions between content-hugging sheets of different heights, each step in its own native dialog with one scrim handed between them.',
|
|
11
11
|
isReady: true,
|
|
12
12
|
isShowcase: true,
|
|
13
13
|
aspectRatio: 3 / 4,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
// Generated from the committed full palette for the stops used by Butter's
|
|
4
|
+
// theme source. Regenerate with `pnpm generate:butter-palette-refs`.
|
|
5
|
+
// Keep the complete palette available for authoring and audits without
|
|
6
|
+
// making consumers pay for unused palette stops.
|
|
7
|
+
// prettier-ignore
|
|
8
|
+
export const butterPaletteRefs = {
|
|
9
|
+
purple: {
|
|
10
|
+
light: {25: '#52237b', 80: '#ddb9f6', 90: '#f2daff'},
|
|
11
|
+
dark: {25: '#52237b', 80: '#ddb9f6', 90: '#f2daff'},
|
|
12
|
+
},
|
|
13
|
+
green: {
|
|
14
|
+
light: {25: '#004a05', 70: '#7bbf7a', 80: '#a2d7a0', 85: '#b6e3b4', 90: '#caeec8'},
|
|
15
|
+
dark: {15: '#013004', 20: '#063c0a', 70: '#83bc82', 80: '#a8d4a6', 90: '#cdedcc'},
|
|
16
|
+
},
|
|
17
|
+
neutral: {
|
|
18
|
+
light: {0: '#000000', 15: '#1d1c11', 30: '#4a4732', 45: '#605f52', 55: '#79786a', 70: '#adac9e', 75: '#c7c4b2', 80: '#d6d3b8', 85: '#e5e3d4', 90: '#f3f2e2', 95: '#fdfbe4', 100: '#ffffff'},
|
|
19
|
+
dark: {0: '#000000', 5: '#131107', 10: '#261a13', 15: '#2e2117', 20: '#3a2a1f', 30: '#4a4732', 35: '#49473b', 40: '#725538', 45: '#605f52', 60: '#939184', 70: '#adac9e', 80: '#d6d3b8', 85: '#f0edd4', 90: '#f3f2e2', 95: '#fdfbe4', 100: '#ffffff'},
|
|
20
|
+
},
|
|
21
|
+
orange: {
|
|
22
|
+
light: {25: '#622e00', 80: '#f2bd81', 90: '#ffdcb6'},
|
|
23
|
+
dark: {25: '#622e00', 80: '#f2bd81', 90: '#ffdcb6'},
|
|
24
|
+
},
|
|
25
|
+
blue: {
|
|
26
|
+
light: {25: '#203a6c', 80: '#bdc5eb', 90: '#dbe1ff'},
|
|
27
|
+
dark: {25: '#203a6c', 80: '#bdc5eb', 90: '#dbe1ff'},
|
|
28
|
+
},
|
|
29
|
+
red: {
|
|
30
|
+
light: {10: '#3b0200', 25: '#6f1400', 30: '#821b00', 60: '#e56241', 80: '#ffb09b', 90: '#ffd9cf', 95: '#ffece7'},
|
|
31
|
+
dark: {15: '#4c0700', 25: '#6f1400', 80: '#ffb09b', 85: '#ffc5b5', 90: '#ffd9cf'},
|
|
32
|
+
},
|
|
33
|
+
yellow: {
|
|
34
|
+
light: {25: '#443c00', 30: '#514700', 70: '#bfae35', 80: '#dfcf5b', 85: '#f0df72', 90: '#fdee8c', 95: '#fff7c0'},
|
|
35
|
+
dark: {15: '#2c2600', 25: '#443c00', 70: '#bcae4e', 75: '#cdbe59', 85: '#eedf75', 90: '#fdee8c'},
|
|
36
|
+
},
|
|
37
|
+
teal: {
|
|
38
|
+
light: {25: '#00482d', 80: '#94d3bb', 90: '#b0f0d7'},
|
|
39
|
+
dark: {25: '#00482d', 80: '#94d3bb', 90: '#b0f0d7'},
|
|
40
|
+
},
|
|
41
|
+
accent: {
|
|
42
|
+
light: {35: '#194ce8', 40: '#225bff', 55: '#4d82ff'},
|
|
43
|
+
},
|
|
44
|
+
cyan: {
|
|
45
|
+
light: {25: '#004649', 80: '#8dd2d3', 90: '#a9eff0'},
|
|
46
|
+
dark: {25: '#004649', 80: '#8dd2d3', 90: '#a9eff0'},
|
|
47
|
+
},
|
|
48
|
+
pink: {
|
|
49
|
+
light: {25: '#6c0a68', 80: '#f0b3e8', 90: '#ffd5fb'},
|
|
50
|
+
dark: {25: '#6c0a68', 80: '#f0b3e8', 90: '#ffd5fb'},
|
|
51
|
+
},
|
|
52
|
+
} as const;
|
|
53
|
+
|
|
54
|
+
export default butterPaletteRefs;
|