trdr-ds-install 1.3.0 → 1.3.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trdr-ds-install",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Installs the TRDR Design System skill for Claude Code",
|
|
5
5
|
"bin": {
|
|
6
6
|
"trdr-ds-install": "./bin/install.js"
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"sync-components": "node scripts/sync-components.js",
|
|
10
10
|
"sync-tokens": "node scripts/sync-tokens.js",
|
|
11
11
|
"sync": "node scripts/sync-tokens.js && node scripts/sync-components.js",
|
|
12
|
-
"sync:local": "node scripts/sync-tokens.js --local ../trdr-design-hub && node scripts/sync-components.js --local ../trdr-design-hub"
|
|
12
|
+
"sync:local": "node scripts/sync-tokens.js --local ../trdr-design-hub && node scripts/sync-components.js --local ../trdr-design-hub",
|
|
13
|
+
"postpublish": "node bin/install.js"
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
15
16
|
"bin/",
|
|
@@ -6,6 +6,9 @@ argument-hint: "[analyze|apply|resume|status|sync|batch N]"
|
|
|
6
6
|
allowed-tools: [Read, Glob, Grep, Edit, Write, Bash, WebFetch]
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
**Skill version:** 1.3.0
|
|
10
|
+
**npm package:** trdr-ds-install
|
|
11
|
+
|
|
9
12
|
You are implementing the **TRDR Design System** in a developer's project. The Design Hub is the single source of truth and lives at **https://trdr.mrocontent.com.br**.
|
|
10
13
|
|
|
11
14
|
This skill ships with two **offline-first snapshots** of the Hub:
|
|
@@ -37,9 +40,41 @@ Execute in two clearly separated phases: **PHASE 1: ANALYZE → PHASE 2: EXECUTE
|
|
|
37
40
|
|
|
38
41
|
Scan the project and produce a structured migration plan. Do NOT modify any project files yet.
|
|
39
42
|
|
|
40
|
-
### Step 0 —
|
|
43
|
+
### Step 0 — Check for skill updates, then detect previous progress
|
|
44
|
+
|
|
45
|
+
**Version check (runs on every invocation):**
|
|
46
|
+
|
|
47
|
+
Run this command silently via Bash:
|
|
48
|
+
```bash
|
|
49
|
+
npm show trdr-ds-install version 2>/dev/null
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Compare the result with the **Skill version** constant at the top of this file (`1.3.0`).
|
|
53
|
+
|
|
54
|
+
- If the command fails or returns empty (no internet / npm unavailable): skip silently, continue.
|
|
55
|
+
- If registry version == local version: skip silently, continue.
|
|
56
|
+
- If registry version > local version:
|
|
57
|
+
```
|
|
58
|
+
🔄 Nova versão da skill disponível: trdr-ds-install@[registry-version] (instalada: 1.3.0)
|
|
59
|
+
|
|
60
|
+
Responda:
|
|
61
|
+
- `"atualizar"` / `"update"` — instalar a nova versão agora (requer reiniciar /trdr-ds após)
|
|
62
|
+
- `"continuar"` / `"skip"` — usar a versão atual desta sessão
|
|
63
|
+
```
|
|
64
|
+
**STOP.** Wait for reply.
|
|
65
|
+
|
|
66
|
+
If reply is `"atualizar"` / `"update"`:
|
|
67
|
+
- Run Bash: `npx trdr-ds-install@latest`
|
|
68
|
+
- Output:
|
|
69
|
+
```
|
|
70
|
+
✅ Skill atualizada para trdr-ds-install@[registry-version].
|
|
71
|
+
Use /trdr-ds novamente para continuar com a versão mais recente.
|
|
72
|
+
```
|
|
73
|
+
- STOP. Do not continue with the current (old) instructions.
|
|
74
|
+
|
|
75
|
+
**After version check, detect previous progress:**
|
|
41
76
|
|
|
42
|
-
|
|
77
|
+
Check if `DS_PROGRESS.md` exists at the project root.
|
|
43
78
|
|
|
44
79
|
**If found AND `Status:` line is NOT `COMPLETE`:**
|
|
45
80
|
```
|