@dxtmisha/scripts 0.11.4 → 0.11.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,11 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.11.6] - 2026-08-19
6
+
7
+ ### Changed
8
+ - **Component Documentation Prompt (`prompt.md`)**:
9
+ - Added requirement for `*.stories.ts` to append a concise short description of the component (2–4 words) to the `meta.title` property after the component name separated by a dash.
10
+ - Added a strict prohibition against defining or adding `argTypes` to `meta` or stories in `*.stories.ts`.
11
+ - **Project Template (`.gitignore`)**:
12
+ - Added `ai-types.md`, `ai-description.md`, and `ai-mcp-resources.json` to the project package template's `_.gitignore.txt`.
13
+ - **Template Cleanups**:
14
+ - Renamed template `.gitignore` files to `_.gitignore.txt` across scaffolding templates.
15
+ - Removed deprecated `run.ts` script from the `componentDoc/wiki/` template.
16
+
17
+ ## [0.11.5] - 2026-08-19
18
+
19
+ ### Changed
20
+ - **Library Package Template (`.gitignore`)**:
21
+ - Added `ai-mcp-resources.json` to the library template's `_.gitignore.txt` to automatically ignore generated MCP resource files in newly scaffolded libraries.
22
+
5
23
  ## [0.11.4] - 2026-08-19
6
24
 
7
25
  ### Changed
8
26
  - **AI Types Save Workflow (`dxt-types-save`)**:
9
- - Added MCP resources generation (`await this.mcp.make()`) into `DesignTypes.makeSave()` to automatically generate and synchronize MCP resource manifests (`ai-mcp.json`) when running fast type saving.
27
+ - Added MCP resources generation (`await this.mcp.make()`) into `DesignTypes.makeSave()` to automatically generate and synchronize MCP resource manifests (`ai-mcp-resources.json`) when running fast type saving.
10
28
 
11
29
  ## [0.11.3] - 2026-08-19
12
30
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/scripts",
3
3
  "private": false,
4
- "version": "0.11.4",
4
+ "version": "0.11.6",
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": [
@@ -23,6 +23,12 @@ You must save your changes in the correct target locations:
23
23
  - **Documentation & Playground changes** (including MDX files and `stories.ts` playground configurations) must be saved inside this current directory (the `wiki` folder).
24
24
  - **Component source changes** (including Vue SFC and typings/properties files) must be saved inside the parent directory (one level up from this current directory).
25
25
 
26
+ - **Storybook Stories Configuration (`*.stories.ts`)**:
27
+ - In the `meta` object of `*.stories.ts`, you MUST append a concise short description of the component (2–4 words) to the `title` field after the component name separated by a dash:
28
+ `title: '[project]/[ComponentName] - [short description of 2-4 words]'` (e.g. `'d1/Button - Interactive action trigger'` or `'d1/Button - Интерактивная кнопка действия'`).
29
+ - The short description must capture the primary purpose of the component in 2–4 words in the target documentation language ([wikiLanguage]).
30
+ - **No `argTypes`**: Adding `argTypes` to the `meta` configuration object or anywhere in `*.stories.ts` is **STRICTLY FORBIDDEN**.
31
+
26
32
  > [!IMPORTANT]
27
33
  > **Ignore Output Separation Rules in componentPrompt:**
28
34
  > You must completely ignore any instructions or constraints in `componentPrompt.en.txt`/`componentPrompt.ru.txt` regarding how the final result/output should be returned or structured (specifically ignore rules 5-8, the requirement to split the response into 5 parts separated by "#########", and the prohibition on writing or modifying files).
@@ -0,0 +1,29 @@
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
+
14
+ /ai.config.ts
15
+
16
+ ai-types.md
17
+ ai-description.md
18
+ ai-mcp-resources.json
19
+
20
+ # Editor directories and files
21
+ .vscode/*
22
+ !.vscode/extensions.json
23
+ .idea
24
+ .DS_Store
25
+ *.suo
26
+ *.ntvs*
27
+ *.njsproj
28
+ *.sln
29
+ *.sw?
@@ -13,7 +13,7 @@ dist-ssr
13
13
 
14
14
  ai-types.md
15
15
  ai-description.md
16
- ai-resources
16
+ ai-mcp-resources.json
17
17
 
18
18
  # Editor directories and files
19
19
  .vscode/*
@@ -0,0 +1,28 @@
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?
@@ -12,6 +12,10 @@ dist
12
12
  dist-ssr
13
13
  *.local
14
14
 
15
+ ai-types.md
16
+ ai-description.md
17
+ ai-mcp-resources.json
18
+
15
19
  # Editor directories and files
16
20
  .vscode/*
17
21
  !.vscode/extensions.json
@@ -1,22 +0,0 @@
1
- #!/usr/bin/env vite-node
2
- /// <reference types="node" />
3
-
4
- import { spawn } from 'node:child_process'
5
- import { readFileSync } from 'node:fs'
6
-
7
- ;(async () => {
8
- try {
9
- // You can add prompt generation logic here
10
- const prompt = readFileSync(new URL('./prompt.md', import.meta.url), 'utf-8')
11
-
12
- const child = spawn(
13
- 'npx',
14
- ['dxt-component-wiki', '[path]', prompt],
15
- { stdio: 'inherit' }
16
- )
17
-
18
- child.on('exit', code => console.log('End:', code))
19
- } catch (error) {
20
- console.error('Error:', error)
21
- }
22
- })()