@dxtmisha/scripts 0.11.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/ai-resources/componentMaterials.md +19 -0
- package/ai-resources/componentPrompt.md +381 -0
- package/ai-resources/componentWiki.md +13 -0
- package/bin/arguments.ts +168 -0
- package/bin/build-packages.ts +34 -3
- package/bin/build-publish-packages.ts +12 -2
- package/bin/design-component.ts +7 -1
- package/bin/design-constructor.ts +22 -3
- package/bin/design-figma.ts +26 -4
- package/bin/design-flags.ts +14 -2
- package/bin/design-library.ts +7 -1
- package/bin/design-package.ts +29 -5
- package/bin/design-prompt.ts +27 -3
- package/bin/design-screenshot.ts +12 -2
- package/bin/design-types-save.ts +32 -5
- package/bin/design-types.ts +32 -6
- package/bin/design-ui.ts +21 -3
- package/bin/design-wiki-storm.ts +11 -3
- package/dist/AiZAi-BiLAcdFy.js +232 -0
- package/dist/PropertiesConfig-BKZz_FWW.js +262 -0
- package/{src/config.ts → dist/config.d.ts} +185 -158
- package/dist/config.js +20 -0
- package/dist/figmaApiTypes-CArSsNW8.js +6 -0
- package/dist/library-ai.d.ts +482 -0
- package/dist/library-ai.js +2 -0
- package/dist/library-figma.d.ts +462 -0
- package/dist/library-figma.js +75 -0
- package/dist/library-ui.d.ts +586 -0
- package/dist/library-ui.js +3760 -0
- package/dist/library.d.ts +4910 -0
- package/dist/library.js +1568 -0
- package/dist/propertyTypes-C64u6rT3.js +236 -0
- package/package.json +76 -27
- package/bin/ai-doc.ts +0 -7
- package/bin/build-functional.ts +0 -5
- package/bin/design-component-wiki.ts +0 -11
- package/src/classes/Ai/AiAbstract.ts +0 -242
- package/src/classes/Ai/AiClaude.ts +0 -26
- package/src/classes/Ai/AiClaudeAgent.ts +0 -16
- package/src/classes/Ai/AiClaudeAgentLite.ts +0 -86
- package/src/classes/Ai/AiClaudeCli.ts +0 -24
- package/src/classes/Ai/AiClaudeCliLite.ts +0 -108
- package/src/classes/Ai/AiClaudeLite.ts +0 -112
- package/src/classes/Ai/AiDoc.ts +0 -81
- package/src/classes/Ai/AiDocItem.ts +0 -27
- package/src/classes/Ai/AiDocItemAbstract.ts +0 -209
- package/src/classes/Ai/AiDocItemClasses.ts +0 -27
- package/src/classes/Ai/AiDocItemComposables.ts +0 -20
- package/src/classes/Ai/AiDocType.ts +0 -45
- package/src/classes/Ai/AiGoogle.ts +0 -26
- package/src/classes/Ai/AiGoogleCli.ts +0 -24
- package/src/classes/Ai/AiGoogleCliLite.ts +0 -108
- package/src/classes/Ai/AiGoogleLite.ts +0 -78
- package/src/classes/Ai/AiOpenAi.ts +0 -26
- package/src/classes/Ai/AiOpenAiLite.ts +0 -107
- package/src/classes/Ai/AiZAi.ts +0 -17
- package/src/classes/Ai/AiZAiLite.ts +0 -77
- package/src/classes/Ai/ApiTmp.ts +0 -43
- package/src/classes/BrowserItem.ts +0 -408
- package/src/classes/Build/BuildFunctional.ts +0 -54
- package/src/classes/Build/BuildPackages.ts +0 -137
- package/src/classes/Build/BuildPublishPackages.ts +0 -105
- package/src/classes/BuildItem.ts +0 -187
- package/src/classes/Component/ComponentCreator.ts +0 -45
- package/src/classes/Component/ComponentItem.ts +0 -161
- package/src/classes/Component/ComponentWiki.ts +0 -258
- package/src/classes/Component/ComponentWikiFile.ts +0 -138
- package/src/classes/Design/DesignCommand.ts +0 -243
- package/src/classes/Design/DesignComponent.ts +0 -824
- package/src/classes/Design/DesignConstructor.ts +0 -222
- package/src/classes/Design/DesignConstructors.ts +0 -101
- package/src/classes/Design/DesignFigma.ts +0 -61
- package/src/classes/Design/DesignFlags.ts +0 -215
- package/src/classes/Design/DesignReplace.ts +0 -672
- package/src/classes/Design/DesignScreenshot.ts +0 -140
- package/src/classes/Design/DesignStructure.ts +0 -201
- package/src/classes/Design/DesignStructureClasses.ts +0 -105
- package/src/classes/Design/DesignStructureItemAbstract.ts +0 -52
- package/src/classes/Design/DesignStructureRead.ts +0 -349
- package/src/classes/Design/DesignStructureStyles.ts +0 -45
- package/src/classes/Design/DesignTypes.ts +0 -94
- package/src/classes/Design/DesignTypesAi.ts +0 -135
- package/src/classes/Design/DesignTypesDescription.ts +0 -121
- package/src/classes/Design/DesignTypesMake.ts +0 -460
- package/src/classes/Design/DesignTypesMcp.ts +0 -90
- package/src/classes/Design/DesignTypesPrompts.ts +0 -332
- package/src/classes/Design/DesignTypescript.ts +0 -244
- package/src/classes/Design/DesignUi.ts +0 -143
- package/src/classes/Design/DesignWiki.ts +0 -52
- package/src/classes/Design/DesignWikiStorm.ts +0 -95
- package/src/classes/Design/DesignWikiStormItem.ts +0 -316
- package/src/classes/FigmaApi.ts +0 -190
- package/src/classes/Git/GitRead.ts +0 -261
- package/src/classes/Library/LibraryAiMcpItem.ts +0 -67
- package/src/classes/Library/LibraryAiPrompt.ts +0 -268
- package/src/classes/Library/LibraryAiPromptItem.ts +0 -331
- package/src/classes/Library/LibraryAiWiki.ts +0 -127
- package/src/classes/Library/LibraryAiWikiItem.ts +0 -79
- package/src/classes/Library/LibraryExport.ts +0 -167
- package/src/classes/Library/LibraryFlags.ts +0 -62
- package/src/classes/Library/LibraryItems.ts +0 -138
- package/src/classes/Library/LibraryList.ts +0 -189
- package/src/classes/Library/LibraryMedia.ts +0 -139
- package/src/classes/Library/LibraryPlugin.ts +0 -73
- package/src/classes/Library/LibraryTypes.ts +0 -130
- package/src/classes/Package/PackageFile.ts +0 -154
- package/src/classes/Package/PackageInit.ts +0 -54
- package/src/classes/Package/PackageItem.ts +0 -329
- package/src/classes/Properties/Properties.ts +0 -175
- package/src/classes/Properties/PropertiesCache.ts +0 -248
- package/src/classes/Properties/PropertiesConfig.ts +0 -213
- package/src/classes/Properties/PropertiesConvector.ts +0 -52
- package/src/classes/Properties/PropertiesFile.ts +0 -522
- package/src/classes/Properties/PropertiesImport.ts +0 -182
- package/src/classes/Properties/PropertiesItems.ts +0 -605
- package/src/classes/Properties/PropertiesKeys.ts +0 -121
- package/src/classes/Properties/PropertiesMain.ts +0 -138
- package/src/classes/Properties/PropertiesPalette.ts +0 -149
- package/src/classes/Properties/PropertiesPath.ts +0 -193
- package/src/classes/Properties/PropertiesScss.ts +0 -261
- package/src/classes/Properties/PropertiesSeparator.ts +0 -118
- package/src/classes/Properties/PropertiesSettings.ts +0 -104
- package/src/classes/Properties/PropertiesStandard.ts +0 -180
- package/src/classes/Properties/PropertiesTool.ts +0 -80
- package/src/classes/Properties/PropertiesTypes.ts +0 -147
- package/src/classes/Properties/PropertiesValues.ts +0 -75
- package/src/classes/Properties/PropertiesWrap.ts +0 -187
- package/src/classes/Properties/convector/convectorColor.ts +0 -27
- package/src/classes/Properties/convector/convectorFontFamilies.ts +0 -18
- package/src/classes/Properties/convector/convectorShadow.ts +0 -61
- package/src/classes/Properties/convector/convectorTypography.ts +0 -19
- package/src/classes/Properties/to/PropertiesToAbstract.ts +0 -51
- package/src/classes/Properties/to/PropertiesToAnimate.ts +0 -59
- package/src/classes/Properties/to/PropertiesToClass.ts +0 -49
- package/src/classes/Properties/to/PropertiesToClone.ts +0 -114
- package/src/classes/Properties/to/PropertiesToComponent.ts +0 -52
- package/src/classes/Properties/to/PropertiesToDrag.ts +0 -231
- package/src/classes/Properties/to/PropertiesToDuplicate.ts +0 -165
- package/src/classes/Properties/to/PropertiesToFull.ts +0 -36
- package/src/classes/Properties/to/PropertiesToLink.ts +0 -259
- package/src/classes/Properties/to/PropertiesToMedia.ts +0 -187
- package/src/classes/Properties/to/PropertiesToMulti.ts +0 -101
- package/src/classes/Properties/to/PropertiesToNone.ts +0 -46
- package/src/classes/Properties/to/PropertiesToPalette.ts +0 -241
- package/src/classes/Properties/to/PropertiesToProperty.ts +0 -31
- package/src/classes/Properties/to/PropertiesToRemove.ts +0 -33
- package/src/classes/Properties/to/PropertiesToReplace.ts +0 -77
- package/src/classes/Properties/to/PropertiesToRoot.ts +0 -40
- package/src/classes/Properties/to/PropertiesToSimilar.ts +0 -128
- package/src/classes/Properties/to/PropertiesToSort.ts +0 -146
- package/src/classes/Properties/to/PropertiesToState.ts +0 -65
- package/src/classes/Properties/to/PropertiesToStyle.ts +0 -52
- package/src/classes/Properties/to/PropertiesToSub.ts +0 -95
- package/src/classes/Properties/to/PropertiesToSubclass.ts +0 -76
- package/src/classes/Properties/to/PropertiesToVar.ts +0 -194
- package/src/classes/Properties/to/PropertiesToVariable.ts +0 -176
- package/src/classes/Styles/Styles.ts +0 -247
- package/src/classes/Styles/StylesClasses.ts +0 -86
- package/src/classes/Styles/StylesProperties.ts +0 -197
- package/src/classes/Styles/StylesRoot.ts +0 -103
- package/src/classes/Styles/StylesTool.ts +0 -112
- package/src/classes/Styles/to/StylesToAbstract.ts +0 -93
- package/src/classes/Styles/to/StylesToAnimate.ts +0 -19
- package/src/classes/Styles/to/StylesToClass.ts +0 -25
- package/src/classes/Styles/to/StylesToClassFull.ts +0 -19
- package/src/classes/Styles/to/StylesToContainer.ts +0 -24
- package/src/classes/Styles/to/StylesToMedia.ts +0 -19
- package/src/classes/Styles/to/StylesToProperty.ts +0 -123
- package/src/classes/Styles/to/StylesToRoot.ts +0 -14
- package/src/classes/Styles/to/StylesToSelector.ts +0 -71
- package/src/classes/Styles/to/StylesToVar.ts +0 -105
- package/src/classes/Styles/to/StylesToVirtual.ts +0 -33
- package/src/composables/useAi.ts +0 -38
- package/src/demo/ai.ts +0 -10
- package/src/functions/getComponentPaths.ts +0 -13
- package/src/functions/getConfigAi.ts +0 -14
- package/src/functions/getConstructorProperties.ts +0 -54
- package/src/functions/getDirname.ts +0 -17
- package/src/functions/getNameDirByPaths.ts +0 -16
- package/src/functions/getPackageJson.ts +0 -19
- package/src/functions/hasNativeDirname.ts +0 -8
- package/src/functions/run.ts +0 -47
- package/src/functions/toPathStandardSep.ts +0 -14
- package/src/library-ai.ts +0 -10
- package/src/library.ts +0 -73
- package/src/media/ai/ai-doc-types.ts +0 -21
- package/src/media/properties/css.ts +0 -634
- package/src/media/properties/cssSelector.ts +0 -74
- package/src/media/properties/cssVirtual.ts +0 -12
- package/src/media/properties/listSort.ts +0 -113
- package/src/media/properties/style.ts +0 -81
- package/src/media/templates/component/DesignComponent.mdx +0 -30
- package/src/media/templates/component/DesignComponent.stories.ts +0 -34
- package/src/media/templates/component/DesignComponent.vue +0 -54
- package/src/media/templates/component/DesignComponentAiWiki.vue +0 -25
- package/src/media/templates/component/index.ts +0 -13
- package/src/media/templates/component/props.ts +0 -27
- package/src/media/templates/component/styleToken.scss +0 -17
- package/src/media/templates/component/wiki.ts +0 -13
- package/src/media/templates/component/wikiData.ts +0 -28
- package/src/media/templates/componentDoc/ComponentDoc.vue +0 -26
- package/src/media/templates/componentDoc/index.ts +0 -12
- package/src/media/templates/componentDoc/materials/README.md +0 -8
- package/src/media/templates/componentDoc/materials/prompt.md +0 -38
- package/src/media/templates/componentDoc/subcomponents/_.gitignore.txt +0 -0
- package/src/media/templates/componentDoc/types.ts +0 -15
- package/src/media/templates/componentDoc/wiki/ComponentDoc.mdx +0 -13
- package/src/media/templates/componentDoc/wiki/ComponentDoc.stories.ts +0 -24
- package/src/media/templates/componentDoc/wiki/prompt.md +0 -41
- package/src/media/templates/constructors/Constructors.ts +0 -33
- package/src/media/templates/constructors/ConstructorsDesign.tsx +0 -129
- package/src/media/templates/constructors/basicTypes.ts +0 -0
- package/src/media/templates/constructors/index.ts +0 -5
- package/src/media/templates/constructors/props.ts +0 -28
- package/src/media/templates/constructors/style.scss +0 -5
- package/src/media/templates/constructors/types.ts +0 -47
- package/src/media/templates/packages/figma/README.md +0 -1
- package/src/media/templates/packages/figma/_.gitignore.txt +0 -29
- package/src/media/templates/packages/figma/ai.sample.config.ts +0 -2
- package/src/media/templates/packages/figma/design.config.json +0 -3
- package/src/media/templates/packages/figma/index.html +0 -12
- package/src/media/templates/packages/figma/manifest.json +0 -25
- package/src/media/templates/packages/figma/package.json +0 -37
- package/src/media/templates/packages/figma/src/App.vue +0 -9
- package/src/media/templates/packages/figma/src/classes/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/code.ts +0 -16
- package/src/media/templates/packages/figma/src/components/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/composables/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/config.ts +0 -0
- package/src/media/templates/packages/figma/src/functions/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/library.ts +0 -0
- package/src/media/templates/packages/figma/src/main.ts +0 -4
- package/src/media/templates/packages/figma/src/media/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/storybook/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/types/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/figma/tsconfig.app.json +0 -12
- package/src/media/templates/packages/figma/tsconfig.json +0 -7
- package/src/media/templates/packages/figma/tsconfig.node.json +0 -8
- package/src/media/templates/packages/figma/vite.config.ts +0 -7
- package/src/media/templates/packages/library/README.md +0 -1
- package/src/media/templates/packages/library/_.gitignore.txt +0 -27
- package/src/media/templates/packages/library/ai-description.md +0 -15
- package/src/media/templates/packages/library/design.config.json +0 -3
- package/src/media/templates/packages/library/index.html +0 -12
- package/src/media/templates/packages/library/materials/README.md +0 -8
- package/src/media/templates/packages/library/materials/prompt.md +0 -45
- package/src/media/templates/packages/library/package.json +0 -46
- package/src/media/templates/packages/library/src/App.vue +0 -8
- package/src/media/templates/packages/library/src/classes/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/components/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/composables/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/functions/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/library.ts +0 -0
- package/src/media/templates/packages/library/src/main.ts +0 -6
- package/src/media/templates/packages/library/src/style.scss +0 -0
- package/src/media/templates/packages/library/src/types/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/library/tsconfig.app.json +0 -11
- package/src/media/templates/packages/library/tsconfig.json +0 -7
- package/src/media/templates/packages/library/tsconfig.node.json +0 -7
- package/src/media/templates/packages/library/vite.config.ts +0 -14
- package/src/media/templates/packages/nitro/README.md +0 -1
- package/src/media/templates/packages/nitro/_.gitignore.txt +0 -28
- package/src/media/templates/packages/nitro/index.html +0 -2
- package/src/media/templates/packages/nitro/package.json +0 -25
- package/src/media/templates/packages/nitro/server/plugins/ui-plugin.ts +0 -7
- package/src/media/templates/packages/nitro/server/routes/api/hello.ts +0 -13
- package/src/media/templates/packages/nitro/src/App.vue +0 -10
- package/src/media/templates/packages/nitro/src/assets/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/components/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/composables/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/entry-client.ts +0 -13
- package/src/media/templates/packages/nitro/src/entry-server.ts +0 -29
- package/src/media/templates/packages/nitro/src/main.ts +0 -14
- package/src/media/templates/packages/nitro/src/pages/HomePage.vue +0 -8
- package/src/media/templates/packages/nitro/src/router.ts +0 -11
- package/src/media/templates/packages/nitro/src/style.scss +0 -0
- package/src/media/templates/packages/nitro/src/templates/main.html +0 -21
- package/src/media/templates/packages/nitro/src/vite-env.d.ts +0 -11
- package/src/media/templates/packages/nitro/tsconfig.app.json +0 -14
- package/src/media/templates/packages/nitro/tsconfig.json +0 -7
- package/src/media/templates/packages/nitro/tsconfig.node.json +0 -12
- package/src/media/templates/packages/nitro/vite.config.ts +0 -17
- package/src/media/templates/packages/project/README.md +0 -1
- package/src/media/templates/packages/project/_.gitignore.txt +0 -28
- package/src/media/templates/packages/project/design.config.json +0 -3
- package/src/media/templates/packages/project/index.html +0 -12
- package/src/media/templates/packages/project/materials/README.md +0 -8
- package/src/media/templates/packages/project/materials/prompt.md +0 -41
- package/src/media/templates/packages/project/package.json +0 -13
- package/src/media/templates/packages/project/public/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/App.vue +0 -12
- package/src/media/templates/packages/project/src/assets/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/components/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/composables/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/main.ts +0 -6
- package/src/media/templates/packages/project/src/style.scss +0 -0
- package/src/media/templates/packages/project/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/project/tsconfig.app.json +0 -11
- package/src/media/templates/packages/project/tsconfig.json +0 -7
- package/src/media/templates/packages/project/tsconfig.node.json +0 -7
- package/src/media/templates/packages/project/vite.config.ts +0 -7
- package/src/media/templates/prompts/aiCodeGlobalPrompt.en.md +0 -22
- package/src/media/templates/prompts/aiCodeGlobalPrompt.ru.md +0 -21
- package/src/media/templates/prompts/aiCodeVuePrompt.en.md +0 -17
- package/src/media/templates/prompts/aiCodeVuePrompt.ru.md +0 -17
- package/src/media/templates/prompts/aiDocClassPrompt.en.txt +0 -63
- package/src/media/templates/prompts/aiDocClassPrompt.ru.txt +0 -63
- package/src/media/templates/prompts/aiDocComposablePrompt.en.txt +0 -67
- package/src/media/templates/prompts/aiDocComposablePrompt.ru.txt +0 -67
- package/src/media/templates/prompts/aiDocFunctionPrompt.en.txt +0 -57
- package/src/media/templates/prompts/aiDocFunctionPrompt.ru.txt +0 -57
- package/src/media/templates/prompts/componentPrompt.en.txt +0 -182
- package/src/media/templates/prompts/componentPrompt.ru.txt +0 -182
- package/src/media/templates/prompts/demoClassEn.mdx +0 -111
- package/src/media/templates/prompts/demoClassRu.mdx +0 -111
- package/src/media/templates/prompts/demoComponentEn.mdx +0 -282
- package/src/media/templates/prompts/demoComponentRu.mdx +0 -282
- package/src/media/templates/prompts/demoComposableEn.mdx +0 -103
- package/src/media/templates/prompts/demoComposableRu.mdx +0 -103
- package/src/media/templates/prompts/demoDocEn.mdx +0 -30
- package/src/media/templates/prompts/demoDocRu.mdx +0 -30
- package/src/media/templates/viteComponentTemplateConfig.ts +0 -14
- package/src/types/aiTypes.ts +0 -19
- package/src/types/configTypes.ts +0 -69
- package/src/types/designTypes.ts +0 -167
- package/src/types/figmaApiTypes.ts +0 -337
- package/src/types/gitTypes.ts +0 -59
- package/src/types/libraryTypes.ts +0 -49
- package/src/types/propertyTypes.ts +0 -586
- package/src/types/screenshotTypes.ts +0 -55
- package/src/types/webTypes.ts +0 -134
- package/src/vite-env.d.ts +0 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { n as e, t } from "./PropertiesConfig-BKZz_FWW.js";
|
|
2
|
+
import { UI_DIRS_LIBRARY as n, UI_DIR_PACKAGES as r, UI_FILE_PACKAGE as i } from "./config.js";
|
|
3
|
+
import { forEach as a, isFilled as o } from "@dxtmisha/functional-basic";
|
|
4
|
+
import s from "node:path";
|
|
5
|
+
//#region src/functions/getPackageJson.ts
|
|
6
|
+
function c(t) {
|
|
7
|
+
if (t) {
|
|
8
|
+
let n = e.isDir(t) ? e.getPathFile(t, i, "") : t;
|
|
9
|
+
return e.readFile(n);
|
|
10
|
+
}
|
|
11
|
+
return e.readFile(i);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/media/templates/packageTemplates.ts
|
|
15
|
+
var l = {
|
|
16
|
+
figma: {
|
|
17
|
+
"README.md": "# @packages/library\n",
|
|
18
|
+
"_.gitignore.txt": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist-ssr\n*.local\n\n/ai.config.ts\n\nai-types.md\nai-description.md\nai-mcp-resources.json\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n",
|
|
19
|
+
"ai.sample.config.ts": "export const FIGMA_AI_KEY = ''\nexport const FIGMA_AI_MODEL = ''\n",
|
|
20
|
+
"design.config.json": "{\n \"extends\": \"../../design.config.json\"\n}\n",
|
|
21
|
+
"index.html": "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\"/>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>\n <title>@packages/library</title>\n</head>\n<body>\n<div id=\"app\"></div>\n<script type=\"module\" src=\"/src/main.ts\"><\/script>\n</body>\n</html>\n",
|
|
22
|
+
"manifest.json": "{\n \"name\": \"@packages/library\",\n \"id\": \"--\",\n \"api\": \"0.0.0\",\n \"main\": \"dist/code.js\",\n \"capabilities\": [\n \"codegen\",\n \"inspect\"\n ],\n \"enableProposedApi\": false,\n \"documentAccess\": \"dynamic-page\",\n \"editorType\": [\n \"dev\"\n ],\n \"ui\": \"dist/index.html\",\n \"codegenLanguages\": [\n {\n \"label\": \"Language Label\",\n \"value\": \"language-value\"\n }\n ],\n \"networkAccess\": {\n \"allowedDomains\": []\n }\n}",
|
|
23
|
+
"package.json": "{\n \"name\": \"@packages/library\",\n \"private\": true,\n \"version\": \"0.0.0\",\n \"type\": \"module\",\n \"description\": \"[description]\",\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"vue-tsc -b && vite build --mode ui && vite build --mode code\",\n \"build:ui:watch\": \"vue-tsc -b && vite build --mode ui --watch\",\n \"build:code:watch\": \"vue-tsc -b && vite build --mode code --watch\",\n \"preview\": \"vite preview\",\n \"test\": \"vitest\",\n \"component\": \"dxt-component\",\n \"library\": \"dxt-library\"\n },\n \"files\": [\n \"dist\",\n \"README.md\",\n \"package.json\"\n ],\n \"main\": \"dist/library.js\",\n \"module\": \"dist/library.js\",\n \"types\": \"dist/library.d.ts\",\n \"exports\": {\n \".\": {\n \"import\": \"./dist/library.js\",\n \"types\": \"./dist/library.d.ts\"\n },\n \"./style.css\": \"./dist/style.css\",\n \"./types/*\": \"./dist/*\",\n \"./types/**/*.d.ts\": \"./dist/**/*.d.ts\"\n },\n \"dependencies\": {},\n \"devDependencies\": {}\n}\n",
|
|
24
|
+
"src/App.vue": "<script setup lang=\"ts\">\n\n<\/script>\n\n<template>\n <div>@packages/library</div>\n</template>\n\n<style lang=\"scss\"></style>\n",
|
|
25
|
+
"src/classes/_.gitignore.txt": "# Delete me",
|
|
26
|
+
"src/code.ts": "switch (figma.mode) {\n case 'inspect':\n figma.showUI(__html__)\n break\n case 'codegen':\n figma.codegen.on('generate', async () => {\n return [\n {\n title: 'Test generate',\n language: 'PLAINTEXT',\n code: 'code test'\n }\n ]\n })\n break\n}\n",
|
|
27
|
+
"src/components/_.gitignore.txt": "# Delete me",
|
|
28
|
+
"src/composables/_.gitignore.txt": "# Delete me",
|
|
29
|
+
"src/config.ts": "",
|
|
30
|
+
"src/functions/_.gitignore.txt": "# Delete me",
|
|
31
|
+
"src/library.ts": "",
|
|
32
|
+
"src/main.ts": "import { createApp } from 'vue'\nimport App from './App.vue'\n\ncreateApp(App).mount('#app')\n",
|
|
33
|
+
"src/media/_.gitignore.txt": "# Delete me",
|
|
34
|
+
"src/storybook/_.gitignore.txt": "# Delete me",
|
|
35
|
+
"src/types/_.gitignore.txt": "# Delete me",
|
|
36
|
+
"src/vite-env.d.ts": "/// <reference types=\"vite/client\" />\n",
|
|
37
|
+
"tsconfig.app.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.app.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.app.tsbuildinfo\",\n \"types\": [\"@figma/plugin-typings\"]\n },\n \"include\": [\n \"src/**/*.ts\",\n \"src/**/*.tsx\",\n \"src/**/*.vue\"\n ]\n}\n",
|
|
38
|
+
"tsconfig.json": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ]\n}\n",
|
|
39
|
+
"tsconfig.node.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.node.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.node.tsbuildinfo\",\n \"types\": [\"@figma/plugin-typings\"]\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
|
40
|
+
"vite.config.ts": "import { viteFigma } from '@dxtmisha/configuration/viteFigma'\n\n// https://vite.dev/config/\nexport default viteFigma(\n process.argv.includes('--watch'),\n __dirname\n)\n"
|
|
41
|
+
},
|
|
42
|
+
library: {
|
|
43
|
+
"README.md": "# @packages/library\n",
|
|
44
|
+
"_.gitignore.txt": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist-ssr\n*.local\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n",
|
|
45
|
+
"ai-description.md": "Core Purpose: This library provides a template structure for creating modular, reusable, and type-safe component/utility packages within the design system.\n\nKey Expositions:\n- UI Components: Reusable components located under `src/components/`.\n- Composables: Stateful composition hooks under `src/composables/`.\n- Classes: Logical or utility class abstractions under `src/classes/`.\n- Functions: Pure helpers and utility functions under `src/functions/`.\n- Types: TypeScript declarations and interfaces under `src/types/`.\n\nCritical Development Rules:\n- **Do NOT modify `src/library.ts` directly**: This file is auto-generated and serves as the main entry point exporting all library entities. Manually editing it is strictly forbidden.\n- **Run the library generation script**: When creating, renaming, or deleting any new class, component, function, composable, or type, you MUST run the generation command to update the exports automatically:\n ```bash\n npm run library\n ```\n",
|
|
46
|
+
"design.config.json": "{\n \"extends\": \"../../design.config.json\"\n}\n",
|
|
47
|
+
"index.html": "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>@packages/library</title>\n </head>\n <body>\n <div id=\"app\"></div>\n <script type=\"module\" src=\"/src/main.ts\"><\/script>\n </body>\n</html>\n",
|
|
48
|
+
"materials/README.md": "# Work Materials\n\nThis folder is designed to store all supporting design documents, component specifications, assets, research notes, and raw inputs utilized for generating high-quality component documentation and design integrations.\n\n### Contents and Usage:\n- Place design screenshots, layout diagrams, or visual references here.\n- Place text drafts, API research files, or functional notes here.\n- Keeping materials here helps maintain a centralized workspace context for AI agents and developers.\n",
|
|
49
|
+
"materials/prompt.md": "# AI Prompt: Library Package Implementation & Development (Materials)\n\n**Role Persona:**\nYou are a distinguished, world-class Senior Frontend Web Developer and Technical Architect. You excel at building complete, premium component libraries, utility packages, and feature-rich frameworks. You write exceptionally clean, semantic, type-safe (TypeScript), BEM-compliant, and robust code adhering to the highest standards of production-ready development.\n\n**Task Goal:**\nBased on the design assets, specifications, page copy, and mockups located in this \"materials\" folder, you must implement a fully working, production-ready, and robust component library or utility package.\n\n**Work Materials & Assets (\"materials\" folder):**\nThis directory (the `materials` folder) contains all relevant design assets, component/utility specifications, screenshots, layout guides, and technical requirements.\n- **Mandatory Study**: You MUST locate, open, and deeply analyze all files and assets present inside this `materials` folder before beginning any implementation or modifying any code.\n- Ensure the final components, classes, and utilities perfectly match the specifications in these materials.\n\n**Project Location & Resolution:**\nThe project source files and configurations are located one level up from this \"materials\" folder. You must locate, edit, or create files directly in that folder hierarchy.\n\n**Template Structure & Explanations:**\nThe target parent directory represents a standardized library package project structure. You must study and strictly adhere to its file layout:\n- `index.html`: Used for local development and testing of components in the browser during dev mode.\n- `package.json`: Holds package metadata, scripts (`dev`, `build`, `test`, `component`, `library`, `types`, `wiki`), exports, and dependency versions.\n- `vite.config.ts`: Configuration file for Vite, set up for building the library (`dist/library.js` and `dist/style.css`).\n- `tsconfig.json`, `tsconfig.app.json` & `tsconfig.node.json`: TypeScript configuration files.\n- `src/`: The core source directory of the library:\n - `src/library.ts`: The main entrypoint of the library. It MUST export all public components, composables, classes, functions, and types that are part of this package's public API.\n - `src/main.ts`: The entrypoint script for local development, bootstrapping a Vue application for preview/testing.\n - `src/App.vue`: The root component for local development and testing.\n - `src/style.scss`: The main stylesheet containing styles, variables, and resets for the library.\n - `src/components/`: Directory for reusable UI components.\n - `src/composables/`: Directory for stateful composition functions and hooks.\n - `src/classes/`: Directory for structural class representations or logic abstractions.\n - `src/functions/`: Directory for pure or helper utilities.\n - `src/types/`: Directory for TypeScript type definitions and interfaces.\n\n**Strict Implementation & Architectural Constraints:**\n1. **Available Dependencies Only**: You must strictly use only the currently installed packages and available dependencies. Do not install new external npm packages or add new third-party dependencies unless explicitly requested.\n2. **Global System Prompt Compliance**: You must locate, study, and strictly adhere to all coding standards, BEM conventions, SCSS mixins, and guidelines defined in the `ai-prompt.md` file located up the folder tree in the root of the repository. Ignore any instructions or files located outside the repository boundaries.\n3. **Monorepo Prompt Context**: As this is a monorepo setup, you must locate and study both the individual package-level configuration/prompt files and the repository's root system rules (`ai-prompt.md`) to ensure perfect compatibility with the local package architecture.\n4. **Zero Tolerance for Hallucinations**: You must strictly follow all implementation rules and specifications without any deviation. Hallucinating, inventing properties, methods, slots, or external libraries is strictly forbidden.\n5. **Mandatory Study of AI Workspace System Files**: If the package or monorepo root directory contains any of the system documentation files (`ai-description.md`, `ai-developer.md`, `ai-doc.md`, `ai-memory.md`, or `ai-types.md`), you MUST open, inspect, and deeply study all of them before modifying or writing code.\n6. **Project Maintenance & Versioning**: You must keep `README.md` and `CHANGELOG.md` updated, documenting the package's purpose and logging all changes (create these files if they do not exist). Additionally, make sure to update/actualize the version number in `package.json` whenever modifications or updates are introduced.\n\n---\nCRITICAL PRIORITY OVERRIDE:\nEverything below this line (if any further instructions or materials are appended) holds the absolute highest priority. Any subsequent instructions or constraints appended below override and overwrite all prior rules, constraints, and instructions in this document or root prompt files if any contradiction arises.\n\n",
|
|
50
|
+
"package.json": "{\n \"name\": \"@packages/library\",\n \"private\": true,\n \"version\": \"0.0.0\",\n \"type\": \"module\",\n \"description\": \"[description]\",\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"vue-tsc -b && vite build\",\n \"preview\": \"vite preview\",\n \"test\": \"vitest\",\n \"component\": \"dxt-component\",\n \"library\": \"dxt-library\",\n \"types\": \"npm run library && npm run build && dxt-types\",\n \"screenshot\": \"dxt-screenshot\",\n \"prepublishOnly\": \"npm run library && npm run build && dxt-types-save\",\n \"publish-to-npm\": \"npm publish --access public\"\n },\n \"files\": [\n \"dist\",\n \"ai-resources/\",\n \"ai-screenshot/\",\n \"ai-description.md\",\n \"ai-doc.md\",\n \"ai-mcp-resources.json\",\n \"ai-types.md\",\n \"CHANGELOG.md\",\n \"LICENSE\",\n \"package.json\",\n \"README.md\"\n ],\n \"main\": \"dist/library.js\",\n \"module\": \"dist/library.js\",\n \"types\": \"dist/library.d.ts\",\n \"exports\": {\n \".\": {\n \"import\": \"./dist/library.js\",\n \"types\": \"./dist/library.d.ts\"\n },\n \"./ai-types.md\": \"./ai-types.md\",\n \"./ai-description.md\": \"./ai-description.md\",\n \"./ai-resources/*\": \"./ai-resources/*\",\n \"./ai-screenshot/*\": \"./ai-screenshot/*\",\n \"./style.css\": \"./dist/style.css\"\n },\n \"dependencies\": {},\n \"devDependencies\": {},\n \"sideEffects\": false\n}",
|
|
51
|
+
"src/App.vue": "<script setup lang=\"ts\">\n<\/script>\n\n<template>\n <div>@packages/library</div>\n</template>\n\n<style lang=\"scss\"></style>\n",
|
|
52
|
+
"src/classes/_.gitignore.txt": "# Delete me",
|
|
53
|
+
"src/components/_.gitignore.txt": "# Delete me",
|
|
54
|
+
"src/composables/_.gitignore.txt": "# Delete me",
|
|
55
|
+
"src/functions/_.gitignore.txt": "# Delete me",
|
|
56
|
+
"src/library.ts": "",
|
|
57
|
+
"src/main.ts": "import { createApp } from 'vue'\nimport App from './App.vue'\n\nimport './style.scss'\n\ncreateApp(App).mount('#app')\n",
|
|
58
|
+
"src/style.scss": "",
|
|
59
|
+
"src/types/_.gitignore.txt": "# Delete me",
|
|
60
|
+
"src/vite-env.d.ts": "/// <reference types=\"vite/client\" />\n",
|
|
61
|
+
"tsconfig.app.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.app.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.app.tsbuildinfo\"\n },\n \"include\": [\n \"src/**/*.ts\",\n \"src/**/*.tsx\",\n \"src/**/*.vue\"\n ]\n}\n",
|
|
62
|
+
"tsconfig.json": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ]\n}\n",
|
|
63
|
+
"tsconfig.node.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.node.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.node.tsbuildinfo\"\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
|
64
|
+
"vite.config.ts": "import { viteBasicFunction } from '@dxtmisha/configuration/viteBasicFunction'\n\n// https://vite.dev/config/\nexport default viteBasicFunction()\n"
|
|
65
|
+
},
|
|
66
|
+
nitro: {
|
|
67
|
+
"README.md": "# @packages/library\n",
|
|
68
|
+
"_.gitignore.txt": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist-ssr\n*.local\n.output\n\nai-types.md\nai-description.md\nai-mcp-resources.json\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n",
|
|
69
|
+
"index.html": "<!--ssr-outlet-->\n<script type=\"module\" src=\"/src/entry-client.ts\"><\/script>",
|
|
70
|
+
"package.json": "{\n \"name\": \"@packages/library\",\n \"private\": true,\n \"version\": \"0.1.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"dev\": \"vite dev\",\n \"build\": \"vite build\",\n \"preview\": \"vite preview\",\n \"component\": \"dxt-component\"\n },\n \"dependencies\": {},\n \"devDependencies\": {\n \"@dxtmisha/configuration\": \"*\",\n \"@dxtmisha/functional\": \"*\",\n \"@dxtmisha/functional-basic\": \"*\",\n \"@dxtmisha/media\": \"*\",\n \"@dxtmisha/nitro-basic\": \"*\",\n \"@dxtmisha/styles\": \"*\",\n \"nitro\": \"*\",\n \"nitropack\": \"*\",\n \"vue\": \"*\",\n \"vue-router\": \"*\"\n }\n}\n",
|
|
71
|
+
"public/_.gitignore.txt": "",
|
|
72
|
+
"server/plugins/ui-plugin.ts": "import { definePlugin } from 'nitro'\nimport { initPluginBasic } from '@dxtmisha/nitro-basic/plugin'\n\nexport default definePlugin((nitroApp) => {\n initPluginBasic(nitroApp as any)\n console.log('UI plugin initialized')\n})\n",
|
|
73
|
+
"server/routes/api/hello.ts": "import { defineHandler } from 'nitro'\n\nexport default defineHandler(() => {\n return {\n status: 'success',\n message: 'Hello from Nitro API!',\n timestamp: new Date().toISOString(),\n data: {\n version: '1.0.0',\n description: 'This is a test API route for dxt-ui demo.'\n }\n }\n})\n",
|
|
74
|
+
"src/App.vue": "<script setup lang=\"ts\">\n<\/script>\n\n<template>\n <div class=\"app\">\n <RouterView/>\n </div>\n</template>\n\n<style lang=\"scss\"></style>\n",
|
|
75
|
+
"src/assets/_.gitignore.txt": "",
|
|
76
|
+
"src/components/_.gitignore.txt": "",
|
|
77
|
+
"src/composables/_.gitignore.txt": "",
|
|
78
|
+
"src/entry-client.ts": "import { uiBootstrapClient, uiCreateClientApp } from '@dxtmisha/nitro-basic'\nimport { createApp } from './main'\n\nconst { app, router, options } = createApp()\n\nuiBootstrapClient()\nuiCreateClientApp(\n app,\n undefined,\n router,\n options\n)\n .then()\n",
|
|
79
|
+
"src/entry-server.ts": "import { uiBootstrapServer, uiCreateServerApp } from '@dxtmisha/nitro-basic'\n\nimport { createApp } from './main'\nimport template from './templates/main.html?raw'\n\nuiBootstrapServer()\n\nexport default {\n async fetch(request: Request) {\n const { app, router, options } = createApp()\n\n const {\n headers,\n body\n } = await uiCreateServerApp(\n app,\n request,\n router,\n options,\n undefined,\n undefined,\n template\n )\n\n return new Response(body, {\n headers\n })\n }\n}\n",
|
|
80
|
+
"src/main.ts": "import { uiCreateApp } from '@dxtmisha/nitro-basic'\n\nimport App from './App.vue'\nimport { routes } from './router'\n\nimport './style.scss'\n\nexport function createApp() {\n return uiCreateApp(App, {\n appRouter: {\n routes\n }\n })\n}\n",
|
|
81
|
+
"src/pages/HomePage.vue": "<script setup lang=\"ts\">\n<\/script>\n\n<template>\n <div>Home</div>\n</template>\n\n<style lang=\"scss\"></style>\n",
|
|
82
|
+
"src/router.ts": "import type { RouteRecordRaw } from 'vue-router'\n\nimport HomePage from './pages/HomePage.vue'\n\nexport const routes: RouteRecordRaw[] = [\n {\n path: '/',\n name: 'home',\n component: HomePage\n }\n]\n",
|
|
83
|
+
"src/style.scss": "",
|
|
84
|
+
"src/templates/main.html": "<!DOCTYPE html>\n<html lang=\"<!--ssr-lang-->\">\n\n<head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <link rel=\"stylesheet\"\n href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap\"/>\n <link rel=\"stylesheet\"\n href=\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined\"/>\n <!--ssr-meta-->\n <title><!--ssr-title--></title>\n <!--ssr-scriptsJson-->\n</head>\n\n<body>\n <div id=\"app\"><!--ssr-outlet--></div>\n <!--ssr-teleports-->\n</body>\n\n</html>",
|
|
85
|
+
"src/vite-env.d.ts": "/// <reference types=\"vite/client\" />\n\ndeclare module '*.html' {\n const content: string\n export default content\n}\n\ndeclare module '*.html?raw' {\n const content: string\n export default content\n}\n",
|
|
86
|
+
"tsconfig.app.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.app.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.app.tsbuildinfo\",\n \"types\": [\n \"vite/client\"\n ]\n },\n \"include\": [\n \"src/**/*.ts\",\n \"src/**/*.tsx\",\n \"src/**/*.vue\"\n ]\n}",
|
|
87
|
+
"tsconfig.json": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ]\n}\n",
|
|
88
|
+
"tsconfig.node.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.node.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.node.tsbuildinfo\",\n \"moduleResolution\": \"bundler\"\n },\n \"include\": [\n \"nitro.config.ts\",\n \"vite.config.ts\",\n \"server/**/*.ts\"\n ]\n}\n",
|
|
89
|
+
"vite.config.ts": "import { defineConfig } from 'vite'\nimport { nitro } from 'nitro/vite'\n\nimport vue from '@vitejs/plugin-vue'\n\nexport default defineConfig(() => ({\n plugins: [\n vue(),\n nitro({\n serverDir: './server'\n })\n ],\n build: {\n minify: true,\n cssCodeSplit: true\n }\n}))\n"
|
|
90
|
+
},
|
|
91
|
+
project: {
|
|
92
|
+
"README.md": "# @packages/library\n",
|
|
93
|
+
"_.gitignore.txt": "# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\npnpm-debug.log*\nlerna-debug.log*\n\nnode_modules\ndist\ndist-ssr\n*.local\n\nai-types.md\nai-description.md\nai-mcp-resources.json\n\n# Editor directories and files\n.vscode/*\n!.vscode/extensions.json\n.idea\n.DS_Store\n*.suo\n*.ntvs*\n*.njsproj\n*.sln\n*.sw?\n",
|
|
94
|
+
"design.config.json": "{\n \"extends\": \"../../design.config.json\"\n}\n",
|
|
95
|
+
"index.html": "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>@packages/library</title>\n </head>\n <body>\n <div id=\"app\"></div>\n <script type=\"module\" src=\"/src/main.ts\"><\/script>\n </body>\n</html>\n",
|
|
96
|
+
"materials/README.md": "# Work Materials\n\nThis folder is designed to store all supporting design documents, component specifications, assets, research notes, and raw inputs utilized for generating high-quality component documentation and design integrations.\n\n### Contents and Usage:\n- Place design screenshots, layout diagrams, or visual references here.\n- Place text drafts, API research files, or functional notes here.\n- Keeping materials here helps maintain a centralized workspace context for AI agents and developers.\n",
|
|
97
|
+
"materials/prompt.md": "# AI Prompt: Project & Website Implementation (Materials)\n\n**Role Persona:**\nYou are a distinguished, world-class Senior Frontend Web Developer and Technical Architect. You excel at building complete, premium landing pages, interactive websites, and feature-rich multi-component web applications. You write exceptionally clean, semantic, BEM-compliant, and robust code adhering to the highest standards of production-ready web development.\n\n**Task Goal:**\nBased on the design assets, specifications, page copy, and mockups located in this \"materials\" folder, you must implement a fully working, production-ready, and robust web page or application.\n\n**Work Materials & Assets (\"materials\" folder):**\nThis directory (the `materials` folder) contains all relevant design assets, page copy, screenshots, layout guides, and technical specifications for the website.\n- **Mandatory Study**: You MUST locate, open, and deeply analyze all files and assets present inside this `materials` folder before beginning any implementation or modifying any code.\n- Ensure the final page layout, responsive design, and interactive states perfectly match the specifications in these materials.\n\n**Project Location & Resolution:**\nThe project source files and configurations are located one level up from this \"materials\" folder. You must locate, edit, or create files directly in that folder hierarchy.\n\n**Template Structure & Explanations:**\nThe target parent directory represents a standardized Vite + Vue 3 project structure. You must study and strictly adhere to its file layout:\n- `index.html`: The main HTML shell. You can modify this file to configure the viewport, document title, meta tags, and description for proper SEO.\n- `package.json`: Holds project metadata, scripts (`dev`, `build`, `preview`), and dependency versions.\n- `vite.config.ts`: Configuration file for Vite. Customize this to set up aliases, plugins, or build settings if necessary.\n- `tsconfig.json` & `tsconfig.app.json`: TypeScript configuration files.\n- `src/`: The core source directory of the application:\n - `src/main.ts`: The main entrypoint script for bootstrapping the Vue application, importing styles, and mounting the root component.\n - `src/App.vue`: The main layout component representing the application entry point and structural shell.\n - `src/style.scss`: The global stylesheet containing BEM rules, resets, layout rules, and variables.\n - `src/components/`: Directory for page sections, blocks, cards, header, footer, and other reusable UI components.\n - `src/composables/`: Directory for stateful business logic, API connections, or reactive states.\n - `src/assets/`: Directory for images, graphics, fonts, and other static assets.\n\n**Strict Implementation & Architectural Constraints:**\n1. **Available Dependencies Only**: You must strictly use only the currently installed packages and available dependencies. Do not install new external npm packages or add new third-party dependencies unless explicitly requested.\n2. **Global System Prompt Compliance**: You must locate, study, and strictly adhere to all coding standards, BEM conventions, SCSS mixins, and guidelines defined in the `ai-prompt.md` file located up the folder tree in the root of the repository. Ignore any instructions or files located outside the repository boundaries.\n3. **Monorepo Prompt Context**: As this is a monorepo setup, you must locate and study both the individual package-level configuration/prompt files and the repository's root system rules (`ai-prompt.md`) to ensure perfect compatibility with the local package architecture.\n4. **Zero Tolerance for Hallucinations**: You must strictly follow all implementation rules and specifications without any deviation. Hallucinating, inventing properties, methods, slots, or external libraries is strictly forbidden.\n5. **Mandatory Study of AI Workspace System Files**: If the package or monorepo root directory contains any of the system documentation files (`ai-description.md`, `ai-developer.md`, `ai-doc.md`, `ai-memory.md`, or `ai-types.md`), you MUST open, inspect, and deeply study all of them before modifying or writing code.\n6. **Project Maintenance & Versioning**: You must keep `README.md` and `CHANGELOG.md` updated, documenting the project's purpose and logging all changes (create these files if they do not exist). Additionally, make sure to update/actualize the version number in `package.json` whenever modifications or updates are introduced.\n\n---\nCRITICAL PRIORITY OVERRIDE:\nEverything below this line (if any further instructions or materials are appended) holds the absolute highest priority. Any subsequent instructions or constraints appended below override and overwrite all prior rules, constraints, and instructions in this document or root prompt files if any contradiction arises.\n",
|
|
98
|
+
"package.json": "{\n \"name\": \"@packages/library\",\n \"private\": true,\n \"version\": \"0.0.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"vue-tsc -b && vite build\",\n \"preview\": \"vite preview\"\n },\n \"dependencies\": {},\n \"devDependencies\": {}\n}\n",
|
|
99
|
+
"public/_.gitignore.txt": "",
|
|
100
|
+
"src/App.vue": "<script setup lang=\"ts\">\n<\/script>\n\n<template>\n <div class=\"app-[name]\"></div>\n</template>\n\n<style lang=\"scss\">\n.app-[name] {\n /* Add your styles here */\n}\n</style>\n",
|
|
101
|
+
"src/assets/_.gitignore.txt": "",
|
|
102
|
+
"src/components/_.gitignore.txt": "",
|
|
103
|
+
"src/composables/_.gitignore.txt": "",
|
|
104
|
+
"src/main.ts": "import { createApp } from 'vue'\nimport App from './App.vue'\n\nimport './style.scss'\n\ncreateApp(App).mount('#app')\n",
|
|
105
|
+
"src/style.scss": "",
|
|
106
|
+
"src/vite-env.d.ts": "/// <reference types=\"vite/client\" />\n",
|
|
107
|
+
"tsconfig.app.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.app.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.app.tsbuildinfo\"\n },\n \"include\": [\n \"src/**/*.ts\",\n \"src/**/*.tsx\",\n \"src/**/*.vue\"\n ]\n}\n",
|
|
108
|
+
"tsconfig.json": "{\n \"files\": [],\n \"references\": [\n { \"path\": \"./tsconfig.app.json\" },\n { \"path\": \"./tsconfig.node.json\" }\n ]\n}\n",
|
|
109
|
+
"tsconfig.node.json": "{\n \"extends\": \"@dxtmisha/configuration/tsconfig/tsconfig.node.json\",\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.node.tsbuildinfo\"\n },\n \"include\": [\"vite.config.ts\"]\n}\n",
|
|
110
|
+
"vite.config.ts": "import { defineConfig } from 'vite'\nimport vue from '@vitejs/plugin-vue'\n\n// https://vite.dev/config/\nexport default defineConfig({\n plugins: [vue()]\n})\n"
|
|
111
|
+
}
|
|
112
|
+
}, u = [
|
|
113
|
+
r,
|
|
114
|
+
"storybook",
|
|
115
|
+
".storybook",
|
|
116
|
+
"main.ts"
|
|
117
|
+
], d = class {
|
|
118
|
+
name;
|
|
119
|
+
dir;
|
|
120
|
+
type;
|
|
121
|
+
templates;
|
|
122
|
+
sample = l;
|
|
123
|
+
constructor(e, t, n, r) {
|
|
124
|
+
this.name = e, this.dir = t, this.type = n, this.templates = r;
|
|
125
|
+
}
|
|
126
|
+
make() {
|
|
127
|
+
console.log("Package init in:", this.dir), [...this.getSample(), ...this.getTemplates()].forEach((e) => {
|
|
128
|
+
this.writeFile(this.getFileName(e.file), e.content), e.path.endsWith("library.ts") && this.makeLibrary().makePackage().makeStorybook();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
makeStorybook() {
|
|
132
|
+
if (e.is(u)) {
|
|
133
|
+
let t = e.readFileOnly(u), n = this.getCode();
|
|
134
|
+
t && !t.match(`/${n}/src/`) && (console.log("Update storybook..."), t = t.replace(/(stories: \[)/, `$1
|
|
135
|
+
'../../${n}/src/**/*.mdx',
|
|
136
|
+
'../../${n}/src/**/*.stories.@(js|jsx|mjs|ts|tsx)',`), e.writeByPath(u, t));
|
|
137
|
+
}
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
getCode() {
|
|
141
|
+
return this.getName().replace("/", "-");
|
|
142
|
+
}
|
|
143
|
+
getFile(t, n) {
|
|
144
|
+
return {
|
|
145
|
+
file: e.joinPath([...this.dir, t]),
|
|
146
|
+
path: e.joinPath(n),
|
|
147
|
+
content: String(e.readFileOnly(n))
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
getFileByList(t) {
|
|
151
|
+
let n = e.readDirRecursive(t), r = [];
|
|
152
|
+
return n.forEach((e) => {
|
|
153
|
+
r.push(this.getFile(e, [...t, e]));
|
|
154
|
+
}), r;
|
|
155
|
+
}
|
|
156
|
+
getFileName(e) {
|
|
157
|
+
return e.replace("_.gitignore.txt", ".gitignore");
|
|
158
|
+
}
|
|
159
|
+
getName() {
|
|
160
|
+
return this.name.replace(s.sep, "/");
|
|
161
|
+
}
|
|
162
|
+
getProjectName() {
|
|
163
|
+
let e = this.getName(), n = t.getPackagePrefix();
|
|
164
|
+
if (n) return `${n}/${e}`;
|
|
165
|
+
let r = String(this.readPackage()?.name);
|
|
166
|
+
return `${r.split("/")?.[0] ?? r}/${e}`;
|
|
167
|
+
}
|
|
168
|
+
getSample() {
|
|
169
|
+
let t = this.sample?.[this.type];
|
|
170
|
+
if (t) {
|
|
171
|
+
let n = [];
|
|
172
|
+
return a(t, (t, r) => {
|
|
173
|
+
n.push({
|
|
174
|
+
file: e.joinPath([...this.dir, r]),
|
|
175
|
+
path: r,
|
|
176
|
+
content: t
|
|
177
|
+
});
|
|
178
|
+
}), n;
|
|
179
|
+
}
|
|
180
|
+
return [];
|
|
181
|
+
}
|
|
182
|
+
getTemplates() {
|
|
183
|
+
return o(this.templates) ? this.getFileByList([this.templates]) : [];
|
|
184
|
+
}
|
|
185
|
+
readPackage() {
|
|
186
|
+
return e.readFile("package.json") ?? {};
|
|
187
|
+
}
|
|
188
|
+
makeLibrary() {
|
|
189
|
+
let t = this.getCode() + ".ts", r = [...n, t];
|
|
190
|
+
return e.is(n) && !e.is(r) && (console.log("Generate library..."), e.writeByPath(r, `import '${this.getProjectName()}/style.css'
|
|
191
|
+
export * from '${this.getProjectName()}'
|
|
192
|
+
`)), this;
|
|
193
|
+
}
|
|
194
|
+
makePackage() {
|
|
195
|
+
let t = e.readFileOnly(i), n = this.getCode();
|
|
196
|
+
if (t && !t.match(RegExp(`["']${this.getProjectName()}["']`))) {
|
|
197
|
+
let r = !1;
|
|
198
|
+
t.match(/["']dependencies["']/) && (console.log("Update package.json: dependencies..."), r = !0, t = t.replace(/(["']dependencies["']:[^{]+{)/, `$1
|
|
199
|
+
"${this.getProjectName()}": "workspace:*",`)), t.match(/["']exports["']/) && (console.log("Update package.json: exports..."), r = !0, t = t.replace(/(["']exports["']:[^{]+{)/, `$1
|
|
200
|
+
"./${n}": {
|
|
201
|
+
"import": "./dist/${n}.js",
|
|
202
|
+
"types": "./dist/${n}.d.ts"
|
|
203
|
+
},`)), t.match(/["']files["']/) && (console.log("Update package.json: files..."), r = !0, t = t.replace(/(["']files["']:[^[]+\[)/, `$1
|
|
204
|
+
"packages/${n}/dist",
|
|
205
|
+
"packages/${n}/package.json",`)), r && e.writeByPath(i, t);
|
|
206
|
+
}
|
|
207
|
+
return this;
|
|
208
|
+
}
|
|
209
|
+
writeFile(t, n) {
|
|
210
|
+
let r = n.replace(/@packages\/library/g, this.getProjectName()).replace(/\[name]/g, this.getName());
|
|
211
|
+
e.writeByPath(t, r), e.chmod(t);
|
|
212
|
+
}
|
|
213
|
+
}, f = class {
|
|
214
|
+
type;
|
|
215
|
+
templates;
|
|
216
|
+
dir;
|
|
217
|
+
constructor(e, t, n = r) {
|
|
218
|
+
this.type = e, this.templates = t, this.dir = n;
|
|
219
|
+
}
|
|
220
|
+
make() {
|
|
221
|
+
console.log(`Initializing package of type: ${this.type} with templates: ${this.templates}`), this.getDirs().forEach((e) => {
|
|
222
|
+
new d(e, [this.dir, e], this.type, this.templates).make();
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
getDirs() {
|
|
226
|
+
return e.readDir(this.dir).filter((t) => e.readDir([this.dir, t]).length === 0);
|
|
227
|
+
}
|
|
228
|
+
}, p = /* @__PURE__ */ function(e) {
|
|
229
|
+
return e.design = "design", e.component = "component", e.classType = "class", e.theme = "theme", e.var = "var", e.property = "property", e.selector = "selector", e.virtual = "virtual", e.state = "state", e.subclass = "subclass", e.media = "media", e.mediaMax = "media-max", e.mediaGroup = "media-group", e.mediaMaxGroup = "media-max-group", e.container = "container", e.containerMax = "container-max", e.containerGroup = "container-group", e.containerMaxGroup = "container-max-group", e.animate = "animate", e.animateFrame = "animate-frame", e.link = "link", e.linkClass = "link-class", e.scss = "scss", e.root = "root", e.mixin = "mixin", e.none = "none", e.file = "file", e.other = "other", e;
|
|
230
|
+
}({}), m = /* @__PURE__ */ function(e) {
|
|
231
|
+
return e.root = "root", e.class = "class", e.media = "media", e.theme = "theme", e.shade = "shade", e.palette = "palette", e.paletteNone = "palette-none", e.color = "color", e.colors = "colors", e.style = "style", e;
|
|
232
|
+
}({}), h = /* @__PURE__ */ function(e) {
|
|
233
|
+
return e.value = "value", e.type = "_type", e.category = "_category", e.state = "_state", e.subclass = "_subclass", e.varKey = "_var", e.prop = "_prop", e.theme = "_theme", e.rename = "_rename", e.replace = "_replace", e.default = "_default", e.important = "_important", e.modification = "_modification", e.drag = "_drag", e.dragSetting = "_dragSetting", e.settingClone = "_settingClone", e.fullName = "_fullName", e.fullValue = "_fullValue", e.style = "_style", e.remove = "_remove", e.name = "__n", e.nameIndex = "__ni", e.variable = "__v", e.css = "__c", e.cssColorOpacity = "__cco", e.code = "__f", e.sort = "__s", e.order = "__o", e.index = "__i", e.stateMain = "__m", e.duplicate = "__d", e.file = "__file", e.wrap = "__wrap", e;
|
|
234
|
+
}({});
|
|
235
|
+
//#endregion
|
|
236
|
+
export { c as a, f as i, h as n, p as r, m as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/scripts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "CLI tools, AI integration scripts, and automation utilities for DXT UI — automated component scaffolding, Figma layout generation, library packaging, documentation building, screenshot captures, and AI prompt processing.",
|
|
7
7
|
"keywords": [
|
|
@@ -34,26 +34,31 @@
|
|
|
34
34
|
"url": "https://github.com/dxtmisha/dxt-ui/issues"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
+
"dev": "vite",
|
|
38
|
+
"build": "vite build",
|
|
39
|
+
"preview": "vite preview",
|
|
37
40
|
"library": "dxt-library",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"prepublishOnly": "npm run build",
|
|
38
43
|
"publish-to-npm": "npm publish --access public"
|
|
39
44
|
},
|
|
40
45
|
"files": [
|
|
41
46
|
"bin/",
|
|
42
|
-
"
|
|
47
|
+
"dist/",
|
|
48
|
+
"src/media/properties.json",
|
|
49
|
+
"ai-resources/",
|
|
43
50
|
"CHANGELOG.md",
|
|
44
51
|
"LICENSE",
|
|
45
52
|
"README.md",
|
|
46
53
|
"package.json"
|
|
47
54
|
],
|
|
48
|
-
"main": "./
|
|
49
|
-
"module": "./
|
|
55
|
+
"main": "./dist/library.js",
|
|
56
|
+
"module": "./dist/library.js",
|
|
57
|
+
"types": "./dist/library.d.ts",
|
|
50
58
|
"bin": {
|
|
51
|
-
"dxt-ai-doc": "bin/ai-doc.ts",
|
|
52
|
-
"dxt-build-functional": "bin/build-functional.ts",
|
|
53
59
|
"dxt-build-packages": "bin/build-packages.ts",
|
|
54
60
|
"dxt-build-publish-packages": "bin/build-publish-packages.ts",
|
|
55
61
|
"dxt-component": "bin/design-component.ts",
|
|
56
|
-
"dxt-component-wiki": "bin/design-component-wiki.ts",
|
|
57
62
|
"dxt-constructor": "bin/design-constructor.ts",
|
|
58
63
|
"dxt-figma-layout": "bin/design-figma.ts",
|
|
59
64
|
"dxt-flags": "bin/design-flags.ts",
|
|
@@ -67,33 +72,77 @@
|
|
|
67
72
|
"dxt-wiki-storm": "bin/design-wiki-storm.ts"
|
|
68
73
|
},
|
|
69
74
|
"exports": {
|
|
70
|
-
".":
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
".": {
|
|
76
|
+
"types": "./dist/library.d.ts",
|
|
77
|
+
"default": "./dist/library.js"
|
|
78
|
+
},
|
|
79
|
+
"./ai": {
|
|
80
|
+
"types": "./dist/library-ai.d.ts",
|
|
81
|
+
"default": "./dist/library-ai.js"
|
|
82
|
+
},
|
|
83
|
+
"./figma": {
|
|
84
|
+
"types": "./dist/library-figma.d.ts",
|
|
85
|
+
"default": "./dist/library-figma.js"
|
|
86
|
+
},
|
|
87
|
+
"./config": {
|
|
88
|
+
"types": "./dist/config.d.ts",
|
|
89
|
+
"default": "./dist/config.js"
|
|
90
|
+
},
|
|
74
91
|
"./properties.json": "./src/media/properties.json"
|
|
75
92
|
},
|
|
76
93
|
"engines": {
|
|
77
94
|
"node": ">=20.0.0"
|
|
78
95
|
},
|
|
79
96
|
"dependencies": {
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"@napi-rs/canvas": "*",
|
|
88
|
-
"ai": "*",
|
|
89
|
-
"openai": "*",
|
|
90
|
-
"puppeteer": "*",
|
|
91
|
-
"sass": "*",
|
|
92
|
-
"typescript": "*",
|
|
93
|
-
"vite-node": "*",
|
|
94
|
-
"vue": "*"
|
|
97
|
+
"@dxtmisha/functional": ">=1.15.16",
|
|
98
|
+
"@dxtmisha/functional-basic": ">=1.11.0",
|
|
99
|
+
"@dxtmisha/media": ">=0.7.4",
|
|
100
|
+
"sass": ">=1.103.1",
|
|
101
|
+
"typescript": ">=6.0.3",
|
|
102
|
+
"vite-node": ">=6.0.0",
|
|
103
|
+
"vue": ">=3.5.42"
|
|
95
104
|
},
|
|
96
105
|
"devDependencies": {
|
|
97
|
-
"
|
|
106
|
+
"puppeteer": ">=25.9.0"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"@ai-sdk/xai": ">=4.0.50",
|
|
110
|
+
"@anthropic-ai/claude-agent-sdk": ">=0.3.251",
|
|
111
|
+
"@anthropic-ai/sdk": ">=0.122.0",
|
|
112
|
+
"@dxtmisha/wiki": ">=0.114.0",
|
|
113
|
+
"@google/genai": ">=2.19.0",
|
|
114
|
+
"@napi-rs/canvas": ">=1.0.8",
|
|
115
|
+
"ai": ">=7.0.85",
|
|
116
|
+
"openai": ">=7.8.0",
|
|
117
|
+
"puppeteer": ">=25.9.0"
|
|
118
|
+
},
|
|
119
|
+
"peerDependenciesMeta": {
|
|
120
|
+
"@ai-sdk/xai": {
|
|
121
|
+
"optional": true
|
|
122
|
+
},
|
|
123
|
+
"@anthropic-ai/claude-agent-sdk": {
|
|
124
|
+
"optional": true
|
|
125
|
+
},
|
|
126
|
+
"@anthropic-ai/sdk": {
|
|
127
|
+
"optional": true
|
|
128
|
+
},
|
|
129
|
+
"@dxtmisha/wiki": {
|
|
130
|
+
"optional": true
|
|
131
|
+
},
|
|
132
|
+
"@google/genai": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"@napi-rs/canvas": {
|
|
136
|
+
"optional": true
|
|
137
|
+
},
|
|
138
|
+
"ai": {
|
|
139
|
+
"optional": true
|
|
140
|
+
},
|
|
141
|
+
"openai": {
|
|
142
|
+
"optional": true
|
|
143
|
+
},
|
|
144
|
+
"puppeteer": {
|
|
145
|
+
"optional": true
|
|
146
|
+
}
|
|
98
147
|
}
|
|
99
148
|
}
|
package/bin/ai-doc.ts
DELETED
package/bin/build-functional.ts
DELETED