@dxtmisha/scripts 0.11.7 → 1.0.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 +67 -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 +12 -2
- 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 +22 -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-x3CInynJ.js +232 -0
- package/dist/PropertiesConfig-ChizwW5y.js +250 -0
- package/{src/config.ts → dist/config.d.ts} +179 -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 +4677 -0
- package/dist/library.js +1436 -0
- package/dist/propertyTypes-DflziKuR.js +236 -0
- package/package.json +69 -20
- 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 -133
- 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 -119
- 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
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# AI Prompt: Library Package Implementation & Development (Materials)
|
|
2
|
-
|
|
3
|
-
**Role Persona:**
|
|
4
|
-
You 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.
|
|
5
|
-
|
|
6
|
-
**Task Goal:**
|
|
7
|
-
Based 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.
|
|
8
|
-
|
|
9
|
-
**Work Materials & Assets ("materials" folder):**
|
|
10
|
-
This directory (the `materials` folder) contains all relevant design assets, component/utility specifications, screenshots, layout guides, and technical requirements.
|
|
11
|
-
- **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.
|
|
12
|
-
- Ensure the final components, classes, and utilities perfectly match the specifications in these materials.
|
|
13
|
-
|
|
14
|
-
**Project Location & Resolution:**
|
|
15
|
-
The 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.
|
|
16
|
-
|
|
17
|
-
**Template Structure & Explanations:**
|
|
18
|
-
The target parent directory represents a standardized library package project structure. You must study and strictly adhere to its file layout:
|
|
19
|
-
- `index.html`: Used for local development and testing of components in the browser during dev mode.
|
|
20
|
-
- `package.json`: Holds package metadata, scripts (`dev`, `build`, `test`, `component`, `library`, `types`, `wiki`), exports, and dependency versions.
|
|
21
|
-
- `vite.config.ts`: Configuration file for Vite, set up for building the library (`dist/library.js` and `dist/style.css`).
|
|
22
|
-
- `tsconfig.json`, `tsconfig.app.json` & `tsconfig.node.json`: TypeScript configuration files.
|
|
23
|
-
- `src/`: The core source directory of the library:
|
|
24
|
-
- `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.
|
|
25
|
-
- `src/main.ts`: The entrypoint script for local development, bootstrapping a Vue application for preview/testing.
|
|
26
|
-
- `src/App.vue`: The root component for local development and testing.
|
|
27
|
-
- `src/style.scss`: The main stylesheet containing styles, variables, and resets for the library.
|
|
28
|
-
- `src/components/`: Directory for reusable UI components.
|
|
29
|
-
- `src/composables/`: Directory for stateful composition functions and hooks.
|
|
30
|
-
- `src/classes/`: Directory for structural class representations or logic abstractions.
|
|
31
|
-
- `src/functions/`: Directory for pure or helper utilities.
|
|
32
|
-
- `src/types/`: Directory for TypeScript type definitions and interfaces.
|
|
33
|
-
|
|
34
|
-
**Strict Implementation & Architectural Constraints:**
|
|
35
|
-
1. **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.
|
|
36
|
-
2. **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.
|
|
37
|
-
3. **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.
|
|
38
|
-
4. **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.
|
|
39
|
-
5. **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.
|
|
40
|
-
6. **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.
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
CRITICAL PRIORITY OVERRIDE:
|
|
44
|
-
Everything 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.
|
|
45
|
-
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@packages/library",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"description": "[description]",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "vite",
|
|
9
|
-
"build": "vue-tsc -b && vite build",
|
|
10
|
-
"preview": "vite preview",
|
|
11
|
-
"test": "vitest",
|
|
12
|
-
"component": "dxt-component",
|
|
13
|
-
"library": "dxt-library",
|
|
14
|
-
"types": "npm run library && npm run build && dxt-types",
|
|
15
|
-
"screenshot": "dxt-screenshot",
|
|
16
|
-
"wiki": "dxt-ai-doc",
|
|
17
|
-
"prepublishOnly": "npm run library && npm run build && dxt-types-save",
|
|
18
|
-
"publish-to-npm": "npm publish --access public"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"ai-resources/",
|
|
22
|
-
"ai-screenshot/",
|
|
23
|
-
"dist",
|
|
24
|
-
"ai-description.md",
|
|
25
|
-
"ai-doc.md",
|
|
26
|
-
"ai-mcp-resources.json",
|
|
27
|
-
"ai-types.md",
|
|
28
|
-
"CHANGELOG.md",
|
|
29
|
-
"LICENSE",
|
|
30
|
-
"package.json",
|
|
31
|
-
"README.md"
|
|
32
|
-
],
|
|
33
|
-
"main": "dist/library.js",
|
|
34
|
-
"module": "dist/library.js",
|
|
35
|
-
"types": "dist/library.d.ts",
|
|
36
|
-
"exports": {
|
|
37
|
-
".": {
|
|
38
|
-
"import": "./dist/library.js",
|
|
39
|
-
"types": "./dist/library.d.ts"
|
|
40
|
-
},
|
|
41
|
-
"./style.css": "./dist/style.css"
|
|
42
|
-
},
|
|
43
|
-
"dependencies": {},
|
|
44
|
-
"devDependencies": {},
|
|
45
|
-
"sideEffects": false
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Delete me
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Delete me
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Delete me
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Delete me
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Delete me
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { viteBasicFunction } from '@dxtmisha/configuration/viteBasicFunction'
|
|
2
|
-
|
|
3
|
-
// https://vite.dev/config/
|
|
4
|
-
export default viteBasicFunction(
|
|
5
|
-
undefined,
|
|
6
|
-
undefined,
|
|
7
|
-
undefined,
|
|
8
|
-
undefined,
|
|
9
|
-
undefined,
|
|
10
|
-
undefined,
|
|
11
|
-
undefined,
|
|
12
|
-
undefined,
|
|
13
|
-
true
|
|
14
|
-
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# @packages/library
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Logs
|
|
2
|
-
logs
|
|
3
|
-
*.log
|
|
4
|
-
npm-debug.log*
|
|
5
|
-
yarn-debug.log*
|
|
6
|
-
yarn-error.log*
|
|
7
|
-
pnpm-debug.log*
|
|
8
|
-
lerna-debug.log*
|
|
9
|
-
|
|
10
|
-
node_modules
|
|
11
|
-
dist-ssr
|
|
12
|
-
*.local
|
|
13
|
-
.output
|
|
14
|
-
|
|
15
|
-
ai-types.md
|
|
16
|
-
ai-description.md
|
|
17
|
-
ai-mcp-resources.json
|
|
18
|
-
|
|
19
|
-
# Editor directories and files
|
|
20
|
-
.vscode/*
|
|
21
|
-
!.vscode/extensions.json
|
|
22
|
-
.idea
|
|
23
|
-
.DS_Store
|
|
24
|
-
*.suo
|
|
25
|
-
*.ntvs*
|
|
26
|
-
*.njsproj
|
|
27
|
-
*.sln
|
|
28
|
-
*.sw?
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@packages/library",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.1.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite dev",
|
|
8
|
-
"build": "vite build",
|
|
9
|
-
"preview": "vite preview",
|
|
10
|
-
"component": "dxt-component"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@dxtmisha/configuration": "*",
|
|
15
|
-
"@dxtmisha/functional": "*",
|
|
16
|
-
"@dxtmisha/functional-basic": "*",
|
|
17
|
-
"@dxtmisha/media": "*",
|
|
18
|
-
"@dxtmisha/nitro-basic": "*",
|
|
19
|
-
"@dxtmisha/styles": "*",
|
|
20
|
-
"nitro": "*",
|
|
21
|
-
"nitropack": "*",
|
|
22
|
-
"vue": "*",
|
|
23
|
-
"vue-router": "*"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineHandler } from 'nitro'
|
|
2
|
-
|
|
3
|
-
export default defineHandler(() => {
|
|
4
|
-
return {
|
|
5
|
-
status: 'success',
|
|
6
|
-
message: 'Hello from Nitro API!',
|
|
7
|
-
timestamp: new Date().toISOString(),
|
|
8
|
-
data: {
|
|
9
|
-
version: '1.0.0',
|
|
10
|
-
description: 'This is a test API route for dxt-ui demo.'
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { uiBootstrapClient, uiCreateClientApp } from '@dxtmisha/nitro-basic'
|
|
2
|
-
import { createApp } from './main'
|
|
3
|
-
|
|
4
|
-
const { app, router, options } = createApp()
|
|
5
|
-
|
|
6
|
-
uiBootstrapClient()
|
|
7
|
-
uiCreateClientApp(
|
|
8
|
-
app,
|
|
9
|
-
undefined,
|
|
10
|
-
router,
|
|
11
|
-
options
|
|
12
|
-
)
|
|
13
|
-
.then()
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { uiBootstrapServer, uiCreateServerApp } from '@dxtmisha/nitro-basic'
|
|
2
|
-
|
|
3
|
-
import { createApp } from './main'
|
|
4
|
-
import template from './templates/main.html?raw'
|
|
5
|
-
|
|
6
|
-
uiBootstrapServer()
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
async fetch(request: Request) {
|
|
10
|
-
const { app, router, options } = createApp()
|
|
11
|
-
|
|
12
|
-
const {
|
|
13
|
-
headers,
|
|
14
|
-
body
|
|
15
|
-
} = await uiCreateServerApp(
|
|
16
|
-
app,
|
|
17
|
-
request,
|
|
18
|
-
router,
|
|
19
|
-
options,
|
|
20
|
-
undefined,
|
|
21
|
-
undefined,
|
|
22
|
-
template
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
return new Response(body, {
|
|
26
|
-
headers
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
}
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="<!--ssr-lang-->">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<link rel="stylesheet"
|
|
8
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap"/>
|
|
9
|
-
<link rel="stylesheet"
|
|
10
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"/>
|
|
11
|
-
<!--ssr-meta-->
|
|
12
|
-
<title><!--ssr-title--></title>
|
|
13
|
-
<!--ssr-scriptsJson-->
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<div id="app"><!--ssr-outlet--></div>
|
|
18
|
-
<!--ssr-teleports-->
|
|
19
|
-
</body>
|
|
20
|
-
|
|
21
|
-
</html>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@dxtmisha/configuration/tsconfig/tsconfig.app.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
-
"types": [
|
|
6
|
-
"vite/client"
|
|
7
|
-
]
|
|
8
|
-
},
|
|
9
|
-
"include": [
|
|
10
|
-
"src/**/*.ts",
|
|
11
|
-
"src/**/*.tsx",
|
|
12
|
-
"src/**/*.vue"
|
|
13
|
-
]
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@dxtmisha/configuration/tsconfig/tsconfig.node.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
5
|
-
"moduleResolution": "bundler"
|
|
6
|
-
},
|
|
7
|
-
"include": [
|
|
8
|
-
"nitro.config.ts",
|
|
9
|
-
"vite.config.ts",
|
|
10
|
-
"server/**/*.ts"
|
|
11
|
-
]
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import { nitro } from 'nitro/vite'
|
|
3
|
-
|
|
4
|
-
import vue from '@vitejs/plugin-vue'
|
|
5
|
-
|
|
6
|
-
export default defineConfig(() => ({
|
|
7
|
-
plugins: [
|
|
8
|
-
vue(),
|
|
9
|
-
nitro({
|
|
10
|
-
serverDir: './server'
|
|
11
|
-
})
|
|
12
|
-
],
|
|
13
|
-
build: {
|
|
14
|
-
minify: true,
|
|
15
|
-
cssCodeSplit: true
|
|
16
|
-
}
|
|
17
|
-
}))
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# @packages/library
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Logs
|
|
2
|
-
logs
|
|
3
|
-
*.log
|
|
4
|
-
npm-debug.log*
|
|
5
|
-
yarn-debug.log*
|
|
6
|
-
yarn-error.log*
|
|
7
|
-
pnpm-debug.log*
|
|
8
|
-
lerna-debug.log*
|
|
9
|
-
|
|
10
|
-
node_modules
|
|
11
|
-
dist
|
|
12
|
-
dist-ssr
|
|
13
|
-
*.local
|
|
14
|
-
|
|
15
|
-
ai-types.md
|
|
16
|
-
ai-description.md
|
|
17
|
-
ai-mcp-resources.json
|
|
18
|
-
|
|
19
|
-
# Editor directories and files
|
|
20
|
-
.vscode/*
|
|
21
|
-
!.vscode/extensions.json
|
|
22
|
-
.idea
|
|
23
|
-
.DS_Store
|
|
24
|
-
*.suo
|
|
25
|
-
*.ntvs*
|
|
26
|
-
*.njsproj
|
|
27
|
-
*.sln
|
|
28
|
-
*.sw?
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title>@packages/library</title>
|
|
7
|
-
</head>
|
|
8
|
-
<body>
|
|
9
|
-
<div id="app"></div>
|
|
10
|
-
<script type="module" src="/src/main.ts"></script>
|
|
11
|
-
</body>
|
|
12
|
-
</html>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Work Materials
|
|
2
|
-
|
|
3
|
-
This 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.
|
|
4
|
-
|
|
5
|
-
### Contents and Usage:
|
|
6
|
-
- Place design screenshots, layout diagrams, or visual references here.
|
|
7
|
-
- Place text drafts, API research files, or functional notes here.
|
|
8
|
-
- Keeping materials here helps maintain a centralized workspace context for AI agents and developers.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# AI Prompt: Project & Website Implementation (Materials)
|
|
2
|
-
|
|
3
|
-
**Role Persona:**
|
|
4
|
-
You 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.
|
|
5
|
-
|
|
6
|
-
**Task Goal:**
|
|
7
|
-
Based 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.
|
|
8
|
-
|
|
9
|
-
**Work Materials & Assets ("materials" folder):**
|
|
10
|
-
This directory (the `materials` folder) contains all relevant design assets, page copy, screenshots, layout guides, and technical specifications for the website.
|
|
11
|
-
- **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.
|
|
12
|
-
- Ensure the final page layout, responsive design, and interactive states perfectly match the specifications in these materials.
|
|
13
|
-
|
|
14
|
-
**Project Location & Resolution:**
|
|
15
|
-
The 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.
|
|
16
|
-
|
|
17
|
-
**Template Structure & Explanations:**
|
|
18
|
-
The target parent directory represents a standardized Vite + Vue 3 project structure. You must study and strictly adhere to its file layout:
|
|
19
|
-
- `index.html`: The main HTML shell. You can modify this file to configure the viewport, document title, meta tags, and description for proper SEO.
|
|
20
|
-
- `package.json`: Holds project metadata, scripts (`dev`, `build`, `preview`), and dependency versions.
|
|
21
|
-
- `vite.config.ts`: Configuration file for Vite. Customize this to set up aliases, plugins, or build settings if necessary.
|
|
22
|
-
- `tsconfig.json` & `tsconfig.app.json`: TypeScript configuration files.
|
|
23
|
-
- `src/`: The core source directory of the application:
|
|
24
|
-
- `src/main.ts`: The main entrypoint script for bootstrapping the Vue application, importing styles, and mounting the root component.
|
|
25
|
-
- `src/App.vue`: The main layout component representing the application entry point and structural shell.
|
|
26
|
-
- `src/style.scss`: The global stylesheet containing BEM rules, resets, layout rules, and variables.
|
|
27
|
-
- `src/components/`: Directory for page sections, blocks, cards, header, footer, and other reusable UI components.
|
|
28
|
-
- `src/composables/`: Directory for stateful business logic, API connections, or reactive states.
|
|
29
|
-
- `src/assets/`: Directory for images, graphics, fonts, and other static assets.
|
|
30
|
-
|
|
31
|
-
**Strict Implementation & Architectural Constraints:**
|
|
32
|
-
1. **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.
|
|
33
|
-
2. **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.
|
|
34
|
-
3. **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.
|
|
35
|
-
4. **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.
|
|
36
|
-
5. **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.
|
|
37
|
-
6. **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.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
CRITICAL PRIORITY OVERRIDE:
|
|
41
|
-
Everything 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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|