@milesroxas/create-design-hub 0.4.3 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milesroxas/create-design-hub",
3
- "version": "0.4.3",
3
+ "version": "0.6.0",
4
4
  "description": "Create a Design Hub project: the thin folder of prototypes, kit materials and docs that installs the @milesroxas/design-hub package. Runs as `npm create @milesroxas/design-hub`.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "devDependencies": {
34
34
  "@biomejs/biome": "2.6.3",
35
- "@milesroxas/design-hub": "0.4.3"
35
+ "@milesroxas/design-hub": "0.6.0"
36
36
  },
37
37
  "scripts": {
38
38
  "check": "biome check --config-path ../design-hub/configs/biome .",
@@ -30,6 +30,19 @@
30
30
  }
31
31
  ]
32
32
  }
33
+ ],
34
+ "SessionStart": [
35
+ {
36
+ "matcher": "startup",
37
+ "hooks": [
38
+ {
39
+ "type": "command",
40
+ "command": "cd \"$CLAUDE_PROJECT_DIR\" && node_modules/.bin/design-hub hook update",
41
+ "timeout": 180,
42
+ "statusMessage": "Checking for a Design Hub update"
43
+ }
44
+ ]
45
+ }
33
46
  ]
34
47
  }
35
48
  }
@@ -36,3 +36,6 @@ PAYLOAD_AUTH_COLLECTION=
36
36
  WORDPRESS_URL=
37
37
  WORDPRESS_USER=
38
38
  WORDPRESS_APP_PASSWORD=
39
+
40
+ # Design Hub upgrades itself when a Claude Code session starts. 0 turns that off.
41
+ # DESIGN_HUB_AUTO_UPDATE=0
@@ -0,0 +1 @@
1
+ {"version":1,"sessions":{"52f13010-20d7-46d0-aaec-17d6cc177465":{"updatedAt":1795638846738,"files":{"/Users/milesroxas/.t3/worktrees/design-hub/t3-f03ef544-186a3a53e48691ed/packages/create-design-hub/template/prototypes/proto-comments/shared.tsx":{"editCount":1,"findings":[],"stopBaseline":{"version":1,"engine":"0.1.16","counts":{}}},"/Users/milesroxas/.t3/worktrees/design-hub/t3-f03ef544-186a3a53e48691ed/packages/create-design-hub/template/prototypes/proto-comments/index.tsx":{"editCount":1,"findings":[],"stopBaseline":{"version":1,"engine":"0.1.16","counts":{}}},"/Users/milesroxas/.t3/worktrees/design-hub/t3-f03ef544-186a3a53e48691ed/packages/create-design-hub/template/prototypes/proto-comments/Quiet.tsx":{"editCount":1,"findings":[],"stopBaseline":{"version":1,"engine":"0.1.16","counts":{}}},"/Users/milesroxas/.t3/worktrees/design-hub/t3-f03ef544-186a3a53e48691ed/packages/create-design-hub/template/prototypes/proto-comments/Spatial.tsx":{"editCount":1,"findings":[],"stopBaseline":{"version":1,"engine":"0.1.16","counts":{}}},"/Users/milesroxas/.t3/worktrees/design-hub/t3-f03ef544-186a3a53e48691ed/packages/create-design-hub/template/prototypes/proto-comments/Conversation.tsx":{"editCount":1,"findings":[],"stopBaseline":{"version":1,"engine":"0.1.16","counts":{}}},"/Users/milesroxas/.t3/worktrees/design-hub/t3-f03ef544-186a3a53e48691ed/packages/create-design-hub/template/prototypes/proto-comments/styles.css":{"editCount":1,"findings":[],"stopBaseline":{"version":1,"engine":"0.1.16","counts":{}}}}}}}
@@ -126,7 +126,7 @@ Say what you could not verify. Do not commit unless asked.
126
126
 
127
127
  ## Skills
128
128
 
129
- The `miles-*` skills in `.claude/skills/` come from the `@milesroxas/design-hub` package (`pnpm skills` refreshes them and adds any `package.json` script they call; never edit the copies). To upgrade the package: `pnpm add @milesroxas/design-hub@latest && pnpm skills`. Load one when its trigger matches.
129
+ The `miles-*` skills in `.claude/skills/` come from the `@milesroxas/design-hub` package (`pnpm skills` refreshes them and adds any `package.json` script they call; never edit the copies). The package upgrades itself: a SessionStart hook runs `design-hub upgrade` on every new session. When it reports an upgrade, tell the user in one line and commit `package.json`, the lockfile and `.claude/` as their own commit ("Upgrade Design Hub to <version>") with the next commit the user asks for. When it reports a failure, say so and offer `pnpm exec design-hub upgrade` once the cause is fixed. Load one when its trigger matches.
130
130
 
131
131
  | Skill | Load when |
132
132
  | --- | --- |
@@ -21,4 +21,4 @@ Not a developer? The [guide](https://github.com/milesroxas/design-hub/tree/main/
21
21
 
22
22
  The rules for people and agents are in [AGENTS.md](AGENTS.md). Sharing a link, the password gate and review comments: ask Claude to share or turn on comments (the `miles-deploy` and `miles-review` skills run every command), or `pnpm commands` for every command.
23
23
 
24
- Upgrade Design Hub: `pnpm add @milesroxas/design-hub@latest && pnpm skills`, or ask Claude to upgrade it.
24
+ Design Hub upgrades itself when a Claude Code session starts here. To upgrade by hand: `pnpm exec design-hub upgrade`. To turn the automatic upgrade off: `DESIGN_HUB_AUTO_UPDATE=0` in `.env`.