Skip to content

Commit 6652f93

Browse files
authored
Rename mark to staged and staged to differ (#391)
1 parent 9fc34ba commit 6652f93

217 files changed

Lines changed: 8083 additions & 8068 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.
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: Mark CI
1+
name: Differ CI
22

33
on:
44
pull_request:
55
branches: [main]
66
paths:
7-
- "apps/mark/**"
7+
- "apps/differ/**"
88
- "packages/**"
99
- "crates/**"
1010
- "pnpm-lock.yaml"
1111
- "pnpm-workspace.yaml"
1212
- "package.json"
13-
- ".github/workflows/mark-ci.yml"
13+
- ".github/workflows/differ-ci.yml"
1414
push:
1515
branches: [main]
1616
paths:
17-
- "apps/mark/**"
17+
- "apps/differ/**"
1818
- "packages/**"
1919
- "crates/**"
2020
- "pnpm-lock.yaml"
2121
- "pnpm-workspace.yaml"
2222
- "package.json"
23-
- ".github/workflows/mark-ci.yml"
23+
- ".github/workflows/differ-ci.yml"
2424
workflow_dispatch:
2525

2626
env:
@@ -44,7 +44,7 @@ jobs:
4444
# Cache Cargo dependencies
4545
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
4646
with:
47-
workspaces: apps/mark/src-tauri
47+
workspaces: apps/differ/src-tauri
4848

4949
# Install system dependencies for Tauri (Linux)
5050
- name: Install Tauri dependencies (Linux)
@@ -69,8 +69,8 @@ jobs:
6969
- name: Install dependencies
7070
run: |
7171
pnpm install --frozen-lockfile
72-
cd apps/mark/src-tauri && cargo fetch
72+
cd apps/differ/src-tauri && cargo fetch
7373
7474
# Run all checks via the app justfile
7575
- name: Check all (fmt, lint, typecheck)
76-
run: just -f apps/mark/justfile ci
76+
run: just -f apps/differ/justfile ci

.github/workflows/staged-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
paths:
77
- "apps/staged/**"
8+
- "packages/**"
89
- "crates/**"
910
- "pnpm-lock.yaml"
1011
- "pnpm-workspace.yaml"
@@ -14,6 +15,7 @@ on:
1415
branches: [main]
1516
paths:
1617
- "apps/staged/**"
18+
- "packages/**"
1719
- "crates/**"
1820
- "pnpm-lock.yaml"
1921
- "pnpm-workspace.yaml"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[workspace]
22
resolver = "2"
33
members = ["crates/*"]
4-
exclude = ["apps/mark/src-tauri", "apps/staged/src-tauri"]
4+
exclude = ["apps/staged/src-tauri", "apps/differ/src-tauri"]

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,35 @@ just setup
1515
Then run an app:
1616

1717
```bash
18-
just dev # start Mark
19-
just dev staged # start Staged
18+
just dev # start Staged
19+
just dev differ # start Differ
2020
```
2121

2222
## App Installation
2323

2424
For end-user installs:
2525

26-
- Mark (macOS): `curl -fsSL https://raw.githubusercontent.com/block/builderbot/main/apps/mark/install.sh | bash`
27-
- Staged: no standalone installer yet; run from source with `just dev staged` or build with `just app staged build`
26+
- Staged (macOS): `curl -fsSL https://raw.githubusercontent.com/block/builderbot/main/apps/staged/install.sh | bash`
27+
- Differ: no standalone installer yet; run from source with `just dev differ` or build with `just app differ build`
2828

2929
## Command Guide
3030

3131
The root `justfile` supports both styles:
3232

3333
```bash
34-
just dev staged # verb-first (recommended for humans)
35-
just app staged dev # explicit delegation form
34+
just dev differ # verb-first (recommended for humans)
35+
just app differ dev # explicit delegation form
3636
```
3737

3838
Useful commands:
3939

4040
```bash
4141
just apps # list app names
4242
just setup # first-time setup (hooks + JS deps)
43-
just dev # run Mark app
44-
just dev staged # run Staged app
45-
just mark # alias for `just app mark dev`
43+
just dev # run Staged app
44+
just dev differ # run Differ app
4645
just staged # alias for `just app staged dev`
46+
just differ # alias for `just app differ dev`
4747
just check # full non-modifying checks
4848
just ci # alias of `just check`
4949
just fmt # format repo
@@ -53,8 +53,8 @@ just test # run Rust workspace tests
5353

5454
## Repo Layout
5555

56-
- `apps/mark`: main desktop app.
57-
- `apps/staged`: standalone staged/diff app.
56+
- `apps/staged`: main desktop app.
57+
- `apps/differ`: standalone diff app.
5858
- `packages/diff-viewer`: shared Svelte diff viewer package.
5959
- `crates/`: shared Rust crates.
6060
- `scripts/`: helper scripts used by app tooling.
@@ -63,14 +63,14 @@ just test # run Rust workspace tests
6363

6464
Each app has its own `justfile` for app-specific workflows:
6565

66-
- `apps/mark/justfile`
6766
- `apps/staged/justfile`
67+
- `apps/differ/justfile`
6868

6969
Use root delegation to run any app recipe:
7070

7171
```bash
72-
just app mark ci
73-
just app staged build
72+
just app staged ci
73+
just app differ build
7474
```
7575

7676
## Troubleshooting
@@ -84,4 +84,4 @@ just app staged build
8484

8585
## More Docs
8686

87-
- Mark app docs: `apps/mark/README.md`
87+
- Staged app docs: `apps/staged/README.md`
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Mark</title>
8-
<!-- The window starts hidden and is shown by App.svelte after the
9-
theme is applied, so no inline style hacks are needed here. -->
6+
<title>Staged</title>
107
</head>
118
<body>
129
<div id="app"></div>
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Mark - AI-Powered Development Workspace
1+
# Differ - Standalone Diff Viewer
22
# Run `just dev` to start development.
33

44
# ============================================================================
@@ -14,18 +14,13 @@ install:
1414
# Development
1515
# ============================================================================
1616

17-
# Run the app in development mode (optionally point to another repo)
18-
dev repo="":
17+
# Run the app in development mode
18+
dev:
1919
#!/usr/bin/env bash
2020
set -euo pipefail
21-
22-
# Install JS deps if needed
2321
[[ -d node_modules ]] || pnpm install
2422

25-
# Derive a stable port from the working directory so the same worktree
26-
# always gets the same port. This avoids changing TAURI_CONFIG between
27-
# runs, which would invalidate Cargo's build cache and trigger a full
28-
# Rust rebuild every time.
23+
# Derive a stable port from the working directory
2924
VITE_PORT=$(python3 -c "import hashlib,os; h=int(hashlib.sha256(os.getcwd().encode()).hexdigest(),16); print(10000 + h % 55000)")
3025
export VITE_PORT
3126
TAURI_CONFIG="{\"build\":{\"devUrl\":\"http://localhost:${VITE_PORT}\",\"beforeDevCommand\":\"exec ./node_modules/.bin/vite --port ${VITE_PORT} --strictPort\"}}"
@@ -49,7 +44,6 @@ dev repo="":
4944
fi
5045

5146
echo "Starting on port ${VITE_PORT}"
52-
{{ if repo != "" { "export MARK_REPO=" + repo } else { "" } }}
5347
pnpm exec tauri dev --config "$TAURI_CONFIG"
5448

5549
# Build the app for production
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@builderbot/mark",
2+
"name": "@builderbot/differ",
33
"private": true,
4-
"version": "0.3.0",
4+
"version": "0.1.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -17,6 +17,7 @@
1717
"@tauri-apps/cli": "^2.10.0",
1818
"@tsconfig/svelte": "^5.0.6",
1919
"@types/node": "^24.10.1",
20+
"@types/sanitize-html": "^2.13.0",
2021
"prettier": "^3.7.4",
2122
"prettier-plugin-svelte": "^3.4.1",
2223
"svelte": "^5.46.4",
@@ -27,16 +28,10 @@
2728
"dependencies": {
2829
"@builderbot/diff-viewer": "workspace:*",
2930
"@tauri-apps/api": "^2.10.0",
30-
"@tauri-apps/plugin-clipboard-manager": "^2.3.2",
31-
"@tauri-apps/plugin-dialog": "^2.6.0",
32-
"@tauri-apps/plugin-store": "^2.4.2",
33-
"ansi-to-html": "^0.7.2",
31+
"@tauri-apps/plugin-store": "^2.2.0",
3432
"lucide-svelte": "^0.575.0",
3533
"marked": "^17.0.1",
3634
"sanitize-html": "^2.17.0",
3735
"shiki": "^3.20.0"
38-
},
39-
"overrides": {
40-
"ajv": "8.18.0"
4136
}
4237
}

0 commit comments

Comments
 (0)