Skip to content

Commit d30e1a6

Browse files
CoderCococlaude
andauthored
refactor(workspaces): rename @gsd/* scope to @hyveon/* (#215)
Closes #142 ## Summary - Renames `app/packages/server` → `app/packages/desktop-main` and changes its package name from `@gsd/server` → `@hyveon/desktop-main` - Migrates all remaining workspace packages from the `@gsd/*` scope to `@hyveon/*`: `shared`, `web`, all five Lambda packages (`lambda-interactions`, `lambda-followup`, `lambda-update-dns`, `lambda-watchdog`, `lambda-efs-seeder`), and `scripts` - Updates every `import … from '@gsd/…'` across the TS source tree, all npm workspace scripts, `tsconfig.json`, `vitest.config.ts`, `embed-tfstate.mjs`, and Playwright configs - Updates CLAUDE.md, README, all docs, and the Electron design spec to use the new scope - Also fixes the `.gitignore` entry for the generated tfstate file (path was still pointing at `packages/server/`) ## Test plan - [x] `npm install` succeeded (lock file regenerated) - [x] `npm run app:build` passes (shared → desktop-main → web) - [x] `npm run app:test` — 480 tests pass unchanged - [x] `npm run app:lint` — clean - [x] Zero `@gsd/` references remain (`grep -r "@gsd/" --include="*.ts" --include="*.tsx" --include="*.json"` returns nothing) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b78f637 commit d30e1a6

81 files changed

Lines changed: 4017 additions & 5199 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/agents/discord-iam-reviewer.md

Lines changed: 3 additions & 3 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Thumbs.db
3232

3333
# Auto-generated at dev/build time — committed as null, real state must not
3434
# be committed (contains AWS ARNs/account IDs).
35-
app/packages/server/src/generated/tfstate.ts
35+
app/packages/desktop-main/src/generated/tfstate.ts
3636

3737
# Playwright artifacts (traces, videos, screenshots) and HTML report.
3838
app/packages/web/test-results/

CLAUDE.md

Lines changed: 20 additions & 20 deletions

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY package.json package-lock.json ./
1010
# Copy every workspace member's package.json so npm ci can resolve them.
1111
COPY app/package.json app/
1212
COPY app/packages/shared/package.json app/packages/shared/
13-
COPY app/packages/server/package.json app/packages/server/
13+
COPY app/packages/desktop-main/package.json app/packages/desktop-main/
1414
COPY app/packages/web/package.json app/packages/web/
1515
COPY app/packages/lambda/interactions/package.json app/packages/lambda/interactions/
1616
COPY app/packages/lambda/followup/package.json app/packages/lambda/followup/
@@ -36,4 +36,4 @@ EXPOSE 3001
3636

3737
ENV NODE_ENV=production
3838

39-
CMD ["node", "packages/server/dist/main.js"]
39+
CMD ["node", "packages/desktop-main/dist/main.js"]

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LAMBDAS_STAMP := $(STAMP)/lambdas.stamp
1111

1212
# ── Source globs for change detection ───────────────────────────────────────
1313
SHARED_SRCS := $(shell find $(APP_DIR)/packages/shared/src -name '*.ts' 2>/dev/null)
14-
SERVER_SRCS := $(shell find $(APP_DIR)/packages/server/src -name '*.ts' 2>/dev/null)
14+
SERVER_SRCS := $(shell find $(APP_DIR)/packages/desktop-main/src -name '*.ts' 2>/dev/null)
1515
WEB_SRCS := $(shell find $(APP_DIR)/packages/web/src -name '*.ts' -o -name '*.tsx' -o -name '*.css' 2>/dev/null) \
1616
$(APP_DIR)/packages/web/index.html \
1717
$(APP_DIR)/packages/web/vite.config.ts
@@ -41,25 +41,25 @@ install: $(INSTALL_STAMP)
4141

4242
# ── Shared ───────────────────────────────────────────────────────────────────
4343
$(SHARED_STAMP): $(INSTALL_STAMP) $(SHARED_SRCS) $(TS_CONFIGS)
44-
cd $(APP_DIR) && npm run build -w @gsd/shared
44+
cd $(APP_DIR) && npm run build -w @hyveon/shared
4545
touch $@
4646

4747
# ── Server ───────────────────────────────────────────────────────────────────
4848
$(SERVER_STAMP): $(SHARED_STAMP) $(SERVER_SRCS) $(TS_CONFIGS)
49-
cd $(APP_DIR) && npm run build -w @gsd/server
49+
cd $(APP_DIR) && npm run build -w @hyveon/desktop-main
5050
touch $@
5151

5252
# ── Web ──────────────────────────────────────────────────────────────────────
5353
$(WEB_STAMP): $(SHARED_STAMP) $(WEB_SRCS) $(TS_CONFIGS)
54-
cd $(APP_DIR) && npm run build -w @gsd/web
54+
cd $(APP_DIR) && npm run build -w @hyveon/web
5555
touch $@
5656

5757
# ── Lambdas ──────────────────────────────────────────────────────────────────
5858
$(LAMBDAS_STAMP): $(SHARED_STAMP) $(LAMBDA_SRCS) $(TS_CONFIGS)
59-
cd $(APP_DIR) && npm run build -w @gsd/lambda-interactions \
60-
-w @gsd/lambda-followup \
61-
-w @gsd/lambda-update-dns \
62-
-w @gsd/lambda-watchdog
59+
cd $(APP_DIR) && npm run build -w @hyveon/lambda-interactions \
60+
-w @hyveon/lambda-followup \
61+
-w @hyveon/lambda-update-dns \
62+
-w @hyveon/lambda-watchdog
6363
touch $@
6464

6565
# ── Composite build targets ───────────────────────────────────────────────────
@@ -117,7 +117,7 @@ tf-destroy: tf-init
117117
# ── Clean ──────────────────────────────────────────────────────────────────────
118118
clean:
119119
rm -rf $(APP_DIR)/packages/shared/dist \
120-
$(APP_DIR)/packages/server/dist \
120+
$(APP_DIR)/packages/desktop-main/dist \
121121
$(APP_DIR)/packages/web/dist
122122
find $(APP_DIR)/packages/lambda -type d -name dist -exec rm -rf {} +
123123
rm -rf $(STAMP)

README.md

Lines changed: 4 additions & 4 deletions

app/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"type": "module",
66
"scripts": {
77
"predev": "node scripts/embed-tfstate.mjs",
8-
"dev": "concurrently -n server,client -c cyan,magenta \"npm run dev -w @gsd/server\" \"npm run dev -w @gsd/web\"",
8+
"dev": "concurrently -n server,client -c cyan,magenta \"npm run dev -w @hyveon/desktop-main\" \"npm run dev -w @hyveon/web\"",
99
"prebuild": "node scripts/embed-tfstate.mjs",
10-
"build": "npm run build -w @gsd/shared && npm run build -w @gsd/server && npm run build -w @gsd/web",
11-
"build:lambdas": "npm run build -w @gsd/shared && npm run build -w @gsd/lambda-interactions -w @gsd/lambda-followup -w @gsd/lambda-update-dns -w @gsd/lambda-watchdog -w @gsd/lambda-efs-seeder",
12-
"start": "node packages/server/dist/main.js",
10+
"build": "npm run build -w @hyveon/shared && npm run build -w @hyveon/desktop-main && npm run build -w @hyveon/web",
11+
"build:lambdas": "npm run build -w @hyveon/shared && npm run build -w @hyveon/lambda-interactions -w @hyveon/lambda-followup -w @hyveon/lambda-update-dns -w @hyveon/lambda-watchdog -w @hyveon/lambda-efs-seeder",
12+
"start": "node packages/desktop-main/dist/main.js",
1313
"test": "vitest run",
1414
"test:coverage": "vitest run --coverage",
1515
"test:watch": "vitest",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@gsd/server",
2+
"name": "@hyveon/desktop-main",
33
"version": "1.0.0",
44
"private": true,
55
"type": "module",
@@ -17,7 +17,7 @@
1717
"@aws-sdk/client-ecs": "^3.600.0",
1818
"@aws-sdk/client-secrets-manager": "^3.600.0",
1919
"@aws-sdk/lib-dynamodb": "^3.600.0",
20-
"@gsd/shared": "*",
20+
"@hyveon/shared": "*",
2121
"@nestjs/common": "^10.4.0",
2222
"@nestjs/core": "^10.4.0",
2323
"@nestjs/platform-express": "^10.4.0",
File renamed without changes.

app/packages/server/src/controllers/config.controller.test.ts renamed to app/packages/desktop-main/src/controllers/config.controller.test.ts

File renamed without changes.

0 commit comments

Comments
 (0)