Skip to content

Commit fc5ca49

Browse files
committed
sync(dla): refresh to 3ad76fba
Refreshes the vendored copy from b6a64831 to upstream main 3ad76fba (v0.4.9), 40 commits. Notable capture fixes: video sources are captured and localized rather than silently dropped (#320), shorthand-with-var() declarations the live CSSOM cannot re-serialize are recovered (#319), default-document captures pair by normalized URL (#317), a source's entry-URL session carries through capture and media fetch (#316), and sitemap/robots.txt probes root at the entry origin (#315). Vendored tree matches upstream verbatim; the committed dist bundles rebuild byte-identically from source.
1 parent 85256e0 commit fc5ca49

68 files changed

Lines changed: 4741 additions & 517 deletions

Some content is hidden

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

‎packages/data-liberation-agent/.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "data-liberation",
33
"description": "Inspect or liberate any website (GoDaddy Websites & Marketing, Hostinger, HubSpot, Shopify, Squarespace, Webflow, Weebly, Wix, or any other site) into a complete, portable HTML site, then publish it to a live URL.",
4-
"version": "0.3.0",
4+
"version": "0.4.9",
55
"author": {
66
"name": "Automattic"
77
},

‎packages/data-liberation-agent/.codex-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "data-liberation",
33
"description": "Inspect or liberate any website (GoDaddy Websites & Marketing, Hostinger, HubSpot, Shopify, Squarespace, Webflow, Weebly, Wix, or any other site) into a complete, portable HTML site, then publish it to a live URL.",
4-
"version": "0.3.0",
4+
"version": "0.4.9",
55
"author": {
66
"name": "Automattic"
77
},
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
# The committed dist/ bundles must be byte-identical when CI rebuilds them
2-
# from source (see .buildkite/commands/run-lint.sh). Newlines inside template
1+
# The main-branch distribution bundles must rebuild byte-identically.
2+
# Newlines inside template
33
# literals end up in the bundle bytes, so a CRLF checkout would build bundles
44
# that differ from CI's LF build. Pin LF for everything in this package.
55
* text=auto eol=lf
66

7-
# Generated bundles conflict on every concurrent PR that regenerates them,
8-
# even when the underlying source changes don't overlap, because they're
9-
# minified and any two rebuilds differ byte-for-byte. Hand-merging them is
10-
# also unsafe: a textual merge can produce a file that merges cleanly and is
11-
# wrong. Take one side instead of merging, then regenerate with
12-
# `npm run build:mcp-bundle` and let CI's "Verify committed plugin bundles"
13-
# step confirm the committed bytes match a fresh build. Never resolve a
14-
# conflict on these files by hand-merging the hunks.
15-
dist/mcp-server.bundle.mjs merge=ours
16-
dist/capture-engine.bundle.mjs merge=ours
7+
# Release automation owns generated bundles on main. Feature branches keep
8+
# their merge-base bundles; CI builds fresh output for verification only.

‎packages/data-liberation-agent/.github/workflows/ci.yml‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: CI
22

33
on:
44
pull_request:
5-
push:
6-
branches:
7-
- main
85

96
permissions:
107
contents: read
@@ -19,21 +16,25 @@ jobs:
1916
timeout-minutes: 20
2017
steps:
2118
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Keep generated bundles out of pull requests
22+
env:
23+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
24+
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
25+
run: |
26+
if ! git diff --quiet "${BASE_SHA}...${HEAD_SHA}" -- dist; then
27+
echo "dist/ is maintained on main by the Release workflow. Restore generated changes to the PR merge-base before committing."
28+
git diff --stat "${BASE_SHA}...${HEAD_SHA}" -- dist
29+
exit 1
30+
fi
2231
- uses: actions/setup-node@v4
2332
with:
2433
node-version-file: .nvmrc
2534
cache: npm
2635
- run: npm ci --ignore-scripts
2736
- run: npx playwright install --with-deps chromium
2837
- run: npm run build
29-
- name: Verify committed plugin bundles
30-
run: |
31-
if [[ -n "$(git status --porcelain -- dist)" ]]; then
32-
git status --porcelain -- dist
33-
git diff --stat -- dist
34-
echo "Committed plugin bundles are stale. Run 'npm run build:mcp-bundle' and commit dist/."
35-
exit 1
36-
fi
3738
- name: Verify skill driver coverage
3839
run: |
3940
missing_drivers=$(grep -rhoE 'run\.mjs [a-z0-9_-]+' skills 2>/dev/null | awk '{print $2}' | sort -u | while read -r name; do

‎packages/data-liberation-agent/.github/workflows/release.yml‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,47 @@ concurrency:
1616
jobs:
1717
release:
1818
runs-on: ubuntu-latest
19+
timeout-minutes: 30
1920
steps:
2021
- uses: actions/checkout@v6
2122
with:
23+
# A queued run builds the latest main, including earlier queued merges.
24+
ref: main
2225
fetch-depth: 0
2326
token: ${{ secrets.GITHUB_TOKEN }}
2427

28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version-file: .nvmrc
31+
cache: npm
32+
- run: npm ci --ignore-scripts
33+
- run: npx playwright install --with-deps chromium
34+
- run: npm run build
35+
- run: npm run test:package
36+
- run: npm test
37+
38+
- name: Commit verified plugin bundles
39+
run: |
40+
git add -- dist
41+
if ! git diff --cached --quiet; then
42+
git -c user.name='github-actions[bot]' \
43+
-c user.email='41898282+github-actions[bot]@users.noreply.github.com' \
44+
commit -m "build: regenerate plugin bundles"
45+
fi
46+
# A concurrent source merge makes this fail safely. Its queued run
47+
# rebuilds the new main; generated output is never rebased or forced.
48+
git push origin HEAD:main
49+
- name: Verify committed bundle reproducibility
50+
run: |
51+
npm run build:mcp-bundle
52+
test -z "$(git status --porcelain -- dist)"
53+
2554
- uses: Extra-Chill/homeboy-action@v2
2655
id: release
2756
with:
28-
extension: node
57+
extension: nodejs
2958
component: data-liberation-agent
3059
commands: release
60+
# Distribution currently uses committed bundles and GitHub tags.
61+
# npm publishing/release assets are a separate tracked change (#296).
62+
release-skip-publish: 'true'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b6a6483106bcf65247df2ee576f063d775f87a95
1+
3ad76fba1d7040f88c439ec24a336dedd78b920c

‎packages/data-liberation-agent/AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ Reuse is opt-in: a plain re-run recaptures, and `--resume` is what reports `reus
9393
- `src/index.ts` is the generic public product API. Package imports (`data-liberation` and `data-liberation/runtime`) resolve to the same committed `dist/capture-engine.bundle.mjs`, sharing one set of extension registries. `src/capture-engine.ts` re-exports that API; its filename is historical. Keep runtime browser imports lazy so HTTP-only inspection and registration remain available without Playwright. `npm run test:package` exercises actual browserless and browser-backed workflows from relocated bundles, plus installed types and registry identity. See `docs/runtime-api.md`.
9494

9595
- `.mcp.json` starts the server through `scripts/mcp-launcher.mjs`: dev checkouts run `src/` via tsx, plugin installs run the committed bundle `dist/mcp-server.bundle.mjs`. The launcher only falls back to the bundle when dependencies do not resolve, so a dev environment never runs a stale dist.
96-
- The bundles must be committed, because Codex plugin installs do not restore dependencies. Regenerate with `npm run build:mcp-bundle` after changing `src/` or dependencies; CI fails on drift.
97-
- Two branches that both regenerate the bundles conflict on them by construction — they're minified, so any two rebuilds differ byte-for-byte even when the underlying source changes don't overlap. `.gitattributes` declares `merge=ours` for both bundle files so git takes one side instead of attempting a textual merge. **Never resolve a bundle conflict by hand-merging the hunks** — a textual merge on minified output can merge cleanly and still be wrong. Regenerate with `npm run build:mcp-bundle` and commit the result; "Verify committed plugin bundles" confirms the committed bytes match a fresh build. GitHub's own conflict check does not run git merge drivers, so its PR banner can still show these files as conflicting even with the attribute in place — pull the branch locally and merge or rebase there, where the attribute takes effect, then push.
96+
- Committed bundles support dependency-free plugin installs. The serialized `Release` workflow owns `dist/` on **main**: build, package integration, and tests pass before bundles are committed, checked for reproducibility, and handed to Homeboy for release. A concurrent merge rejects the normal push; the queued run rebuilds the latest main. GitHub-token commits do not trigger another push workflow.
97+
- Feature PRs contain source and tests, with `dist/` unchanged from their merge-base. Run `npm run build` and `npm run test:package` locally, then restore generated output before committing (`git restore --source=HEAD --staged --worktree -- dist`). CI rejects PR-authored `dist/` changes and tests freshly built bundles rather than stale committed bytes. For an older PR that already committed bundles, restore `dist/` from `git merge-base HEAD origin/main` and commit that restoration. Merge main normally afterwards. Bundles are never hand-merged. Main can briefly carry the previous bundles until the distribution job completes; dependency-free consumers should pin a successful release, and source checkouts should build locally.
9898
- `playwright` and `single-file-cli` stay external to the bundle behind guarded dynamic imports that degrade with install guidance.
9999
- Playwright's Chromium is not installed on `npm install`. Run `npm run setup:browser` once.
100100

‎packages/data-liberation-agent/CHANGELOG.md‎

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,111 @@ Homeboy does not backfill history: the `0.2.1` and `0.2.2` entries below
1515
predate Homeboy adoption and were written by hand from their tag messages.
1616
Everything from the next release onward is Homeboy-generated.
1717

18+
## [0.4.9] - 2026-09-21
19+
20+
### Changed
21+
- regenerate plugin bundles
22+
23+
### Fixed
24+
- capture and localize video sources, and never drop a failed one
25+
26+
## [0.4.8] - 2026-09-21
27+
28+
### Changed
29+
- regenerate plugin bundles
30+
31+
### Fixed
32+
- recover shorthand-with-var() declarations the live CSSOM cannot re-serialize
33+
34+
## [0.4.7] - 2026-09-21
35+
36+
### Changed
37+
- regenerate plugin bundles
38+
39+
### Fixed
40+
- pair default-document captures by normalized URL
41+
42+
## [0.4.6] - 2026-09-21
43+
44+
### Changed
45+
- regenerate plugin bundles
46+
47+
### Fixed
48+
- carry a source's entry-URL session through capture and media fetch
49+
- root sitemap and robots.txt probes at the entry origin
50+
51+
## [0.4.5] - 2026-09-21
52+
53+
### Changed
54+
- regenerate plugin bundles
55+
56+
### Fixed
57+
- remove Wix 'Powered and secured by' credits
58+
59+
## [0.4.4] - 2026-09-21
60+
61+
### Changed
62+
- regenerate plugin bundles
63+
64+
### Fixed
65+
- Fix delayed Wix desktop anchor scrolling
66+
67+
## [0.4.3] - 2026-09-21
68+
69+
### Changed
70+
- regenerate plugin bundles
71+
72+
### Fixed
73+
- wait for images before responsive capture
74+
75+
## [0.4.2] - 2026-09-21
76+
77+
### Changed
78+
- regenerate plugin bundles
79+
80+
### Fixed
81+
- capture and localize linked audio files
82+
83+
## [0.4.1] - 2026-09-21
84+
85+
### Changed
86+
- regenerate plugin bundles
87+
88+
### Fixed
89+
- distinguish absent source routes from incomplete captures
90+
91+
## [0.4.0] - 2026-09-21
92+
93+
### Added
94+
- record selectable sets that drive a shared region
95+
96+
### Changed
97+
- regenerate plugin bundles only on main
98+
99+
### Fixed
100+
- keep a selectable-set probe from navigating the page
101+
- stop pager probing from clicking picture-only links off the route
102+
- remove the "Powered and secured by Wix" footer credit
103+
- ignore live text in the responsive document signature
104+
- preserve distinct directory and default-document captures
105+
- root the website export at the discovered origin, not the entry URL
106+
- replay captured dialogs onto the captured trigger, not a label match
107+
108+
## [0.3.1] - 2026-09-18
109+
110+
### Fixed
111+
- discover sitemap-index.xml and make incomplete captures explicit
112+
- reclaim the space a removed provider bar reserved in custom properties
113+
- load desktop source pages as desktop Chrome, not HeadlessChrome
114+
- rebase relative links when captured documents move
115+
- accept http and www variants of the entry host in sitemaps, and report rejections
116+
- discover every same-origin homepage link with a DOM, not landmark regexes
117+
- recognize a client-routed SPA not-found screen served as HTTP 200
118+
- stop a client-routed SPA control from navigating capture off its route
119+
- recognize unnamed builder chrome by structure, not vendor name
120+
- capture interaction triggers covered at the click point
121+
- stop treating data: and blob: URIs as unresolved dependencies
122+
18123
## [0.3.0] - 2026-09-17
19124

20125
### Added
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/private/var/folders/lr/c_cmmt7s0592m4njz99v5yb40000gn/T/data-liberation-agent-9CsrfG/AGENTS.md
1+
AGENTS.md

‎packages/data-liberation-agent/CONTRIBUTING.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ This is required. DISCOVERIES.md is a local, untracked log (gitignored — it is
7575
### 4. Submit the PR
7676

7777
```bash
78+
git restore --source=HEAD --staged --worktree -- dist
7879
git add -A
7980
git commit -m "discovery: short description of what you found"
8081
git push origin improvement/your-branch-name
@@ -131,7 +132,11 @@ skills/liberate/ The one skill, which drives the CLI
131132
scripts/ Build and packaging
132133
```
133134

134-
`dist/mcp-server.bundle.mjs` and `dist/capture-engine.bundle.mjs` are committed, generated bundles — the plugin installer copies this package verbatim with no build step, so they have to be in git. If your branch conflicts on them, don't hand-merge the hunks: take either side, run `npm run build:mcp-bundle`, and commit the regenerated output. `.gitattributes` declares `merge=ours` for both files, but GitHub's own conflict check never runs git merge drivers, so its PR banner can still show them as conflicting — resolve by merging or rebasing locally instead, where the declaration takes effect, then push. CI's "Verify committed plugin bundles" step is what actually checks correctness; see AGENTS.md for detail.
135+
`dist/` remains committed for dependency-free plugin installs, and the `Release` workflow maintains it on main. Feature PRs change source and tests only. Build locally with `npm run build`, run `npm run test:package`, and restore generated output before committing. PR CI rejects authored bundle changes and verifies freshly built output instead of requiring a bundle commit.
136+
137+
For an older branch that already committed bundles, run `git restore --source="$(git merge-base HEAD origin/main)" --staged --worktree -- dist` and commit the restoration before merging main. This removes the branch's generated-output changes so Git can accept main's bundles normally. Never hand-merge minified output.
138+
139+
After a merge, the serialized main workflow builds and tests the latest source, commits regenerated bundles, checks reproducibility, then invokes Homeboy release. A rejected push leaves the newer main untouched; its queued run rebuilds it. Main can briefly contain the previous bundles while that job runs. Dependency-free installations should pin a successful release; development checkouts build from source.
135140

136141
## Questions
137142

0 commit comments

Comments
 (0)