@dxtmisha/scripts 0.10.5 → 0.10.6

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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.10.6] - 2026-07-05
6
+
7
+ ### Changed
8
+ - **Library Template prompt**: Updated `prompt.md` in the library template `materials/` folder to describe library/package architecture, entrypoints, and file structures instead of web application/landing page layouts.
9
+ - **Library Template description**: Updated `ai-description.md` in the library template folder to include mandatory development guidelines for auto-generating exports (forbidding manual edits of `src/library.ts` and enforcing `npm run library`).
10
+
5
11
  ## [0.10.5] - 2026-07-05
6
12
 
7
13
  ### Added
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/scripts",
3
3
  "private": false,
4
- "version": "0.10.5",
4
+ "version": "0.10.6",
5
5
  "type": "module",
6
6
  "description": "Development scripts and CLI tools for DXT UI projects - automated component generation, library building and project management tools",
7
7
  "keywords": [
@@ -0,0 +1,15 @@
1
+ Core Purpose: This library provides a template structure for creating modular, reusable, and type-safe component/utility packages within the design system.
2
+
3
+ Key Expositions:
4
+ - UI Components: Reusable components located under `src/components/`.
5
+ - Composables: Stateful composition hooks under `src/composables/`.
6
+ - Classes: Logical or utility class abstractions under `src/classes/`.
7
+ - Functions: Pure helpers and utility functions under `src/functions/`.
8
+ - Types: TypeScript declarations and interfaces under `src/types/`.
9
+
10
+ Critical Development Rules:
11
+ - **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.
12
+ - **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:
13
+ ```bash
14
+ npm run library
15
+ ```
@@ -0,0 +1,8 @@
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.
@@ -0,0 +1,45 @@
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
+