Skip to content

Unblock Cloud Agent installs: land env setup on main - #114

Merged
DrunkOnJava merged 4 commits into
mainfrom
cursor/cloud-env-on-main-44c9
Aug 28, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
cursor/cloud-env-on-main-44c9

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Aug 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Unblocks Cloud Agent setupStatus: INSTALL_FAILED on main, which currently lacks .cursor/install.sh while agents expect bash .cursor/environment.json → bash .cursor/install.sh.

This PR brings the environment-only files from draft #113 (cursor/setup-dev-environment-1703) onto a clean branch based on latest main, plus shared advisory lockfile fixes from #118 so cargo deny/audit and viewer npm audit pass.

What's included

  • .cursor/environment.json — install script, port 5173, viewer-dev-server terminal
  • .cursor/install.sh — idempotent Rust (≥1.85) + Python (maturin) + WASM viewer bootstrap + smoke checks
  • AGENTS.md — Cursor Cloud specific instructions
  • CI env config lint job (shellcheck + schema validate)
  • .gitignore — ignore *.so from maturin develop
  • Merge of #118 deps advisory bump (quick-xml/pyo3/anyhow/crossbeam-epoch + viewer npm audit fix)

Why a separate PR

#113 already has the same env content and passed fresh-pod builds, but main still fails install for new agents. Landing this slim branch unblocks Cloud Agents without waiting on any other work on #113.

Once #114 is green and merges, #113 can be closed as superseded.

Verification

  • Local: cargo deny check advisories ok; cargo audit clean; cd viewer && npm audit --audit-level=high → 0 vulnerabilities
  • Env setup files retained alongside deps bumps (merge commit e207d39)

Do not merge until CI is green on the post-merge head.

cursoragent and others added 2 commits August 28, 2026 09:36
Bring .cursor/environment.json, install.sh, AGENTS.md, CI env-config
lint, and .gitignore *.so from PR #113 onto main so Cloud Agents no
longer fail with missing .cursor/install.sh.

Co-authored-by: DrunkOnJava <[email protected]>
Bump anyhow (≥1.0.103), crossbeam-epoch (≥0.9.20), quick-xml 0.41,
and pyo3 0.29 to clear RUSTSEC advisories that were failing cargo
audit/deny across finish-line PRs. Adapt PartAtom parsing for
quick-xml 0.38+ GeneralRef entity streaming. Run npm audit fix in
viewer/ (nanoid, postcss, vite 8.x patch) so high-severity npm audit
passes without a Vite major bump.

Co-authored-by: DrunkOnJava <[email protected]>
…n-main-44c9

Bring shared Rust/npm advisory fixes (#118) onto the cloud env PR (#114).

Co-authored-by: DrunkOnJava <[email protected]>
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review August 28, 2026 10:52
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Merged origin/cursor/deps-advisory-bump-44c9 (#118) via merge commit e207d39 to clear the shared cargo deny / cargo audit / viewer npm audit failures.

Local verification on the merge head:

  • cargo deny check advisories → ok
  • cargo audit → clean
  • cd viewer && npm audit --audit-level=high → 0 vulnerabilities

Env setup files from this PR are retained. Marked ready for review once CI is green.

Note: once this PR is green and lands, draft #113 can be closed as superseded by #114.

DrunkOnJava added a commit that referenced this pull request Aug 28, 2026
## Summary

Clears the shared cargo-audit / cargo-deny / viewer npm-audit failures
that have been failing unrelated finish-line PRs (#114–#117) on the same
advisories.

**After this merges, #115 / #116 / #117 (and related finish-line
branches) should rebase onto `main`** so they pick up the lockfile fixes
without each re-fighting the same CI jobs.

### Rust (`Cargo.lock` / `Cargo.toml` / `rvt-py`)
| Crate | From → To | Advisory |
|---|---|---|
| `anyhow` | 1.0.102 → 1.0.104 | RUSTSEC-2026-0190 |
| `crossbeam-epoch` | 0.9.18 → 0.9.20 | RUSTSEC-2026-0204 |
| `quick-xml` | 0.36.2 → 0.41.0 | RUSTSEC-2026-0194 / 0195 |
| `pyo3` | 0.24.2 → 0.29.2 | RUSTSEC-2026-0176 / 0177 |

`PartAtom` parsing adapted for quick-xml ≥0.38 (`Event::GeneralRef`
entity streaming; no ignore/pin).

### Viewer npm
`npm audit fix` in `viewer/` (stayed on Vite 8.x):
- `vite` 8.0.9 → 8.2.2
- `postcss` → 8.5.26
- `nanoid` → 3.3.18

## Test plan
- [x] `cargo check --workspace`
- [x] `cargo audit` clean
- [x] `cargo deny check advisories` ok
- [x] `cargo test --lib part_atom` (8 passed)
- [x] `cd viewer && npm audit --audit-level=high` → 0 vulnerabilities
- [ ] CI green on this PR

No product / ArcWall / viewer feature work included.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> PartAtom parsing behavior changed to match a new XML event model;
incorrect entity/whitespace handling could misread family metadata,
while pyo3 upgrades affect the Python wheel ABI surface.
> 
> **Overview**
> Bumps Rust and viewer dependencies to clear **cargo-audit**,
**cargo-deny**, and **npm audit** failures that were blocking unrelated
PRs, with a targeted parser fix for the **quick-xml** major-line
upgrade.
> 
> **Rust:** `quick-xml` **0.36 → 0.41**, `pyo3` **0.24 → 0.29**
(`rvt-py`), plus transitive fixes (`anyhow`, `crossbeam-epoch`).
**`PartAtom::from_bytes`** in `part_atom.rs` is updated for quick-xml
≥0.38: entities stream as **`Event::GeneralRef`** instead of inline
expansion, text is accumulated in **`pending`** and flushed on end tags
(replacing **`trim_text`** + **`BytesText::unescape`**), and category
**`scheme`** attributes use **`normalized_value`**.
> 
> **Viewer:** `viewer/package-lock.json` from **`npm audit fix`** (e.g.
**vite** 8.0.9 → 8.2.2, **rolldown** 1.2.6, **postcss** / **nanoid**
bumps)—dev tooling only, no app feature changes.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
e312d79. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
@DrunkOnJava
DrunkOnJava merged commit 1605ad1 into main Aug 28, 2026
20 checks passed
@DrunkOnJava
DrunkOnJava deleted the cursor/cloud-env-on-main-44c9 branch August 28, 2026 11:18
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
## Summary

Clears the shared cargo-audit / cargo-deny / viewer npm-audit failures
that have been failing unrelated finish-line PRs (#114–#117) on the same
advisories.

**After this merges, #115 / #116 / #117 (and related finish-line
branches) should rebase onto `main`** so they pick up the lockfile fixes
without each re-fighting the same CI jobs.

### Rust (`Cargo.lock` / `Cargo.toml` / `rvt-py`)
| Crate | From → To | Advisory |
|---|---|---|
| `anyhow` | 1.0.102 → 1.0.104 | RUSTSEC-2026-0190 |
| `crossbeam-epoch` | 0.9.18 → 0.9.20 | RUSTSEC-2026-0204 |
| `quick-xml` | 0.36.2 → 0.41.0 | RUSTSEC-2026-0194 / 0195 |
| `pyo3` | 0.24.2 → 0.29.2 | RUSTSEC-2026-0176 / 0177 |

`PartAtom` parsing adapted for quick-xml ≥0.38 (`Event::GeneralRef`
entity streaming; no ignore/pin).

### Viewer npm
`npm audit fix` in `viewer/` (stayed on Vite 8.x):
- `vite` 8.0.9 → 8.2.2
- `postcss` → 8.5.26
- `nanoid` → 3.3.18

## Test plan
- [x] `cargo check --workspace`
- [x] `cargo audit` clean
- [x] `cargo deny check advisories` ok
- [x] `cargo test --lib part_atom` (8 passed)
- [x] `cd viewer && npm audit --audit-level=high` → 0 vulnerabilities
- [ ] CI green on this PR

No product / ArcWall / viewer feature work included.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> PartAtom parsing behavior changed to match a new XML event model;
incorrect entity/whitespace handling could misread family metadata,
while pyo3 upgrades affect the Python wheel ABI surface.
> 
> **Overview**
> Bumps Rust and viewer dependencies to clear **cargo-audit**,
**cargo-deny**, and **npm audit** failures that were blocking unrelated
PRs, with a targeted parser fix for the **quick-xml** major-line
upgrade.
> 
> **Rust:** `quick-xml` **0.36 → 0.41**, `pyo3` **0.24 → 0.29**
(`rvt-py`), plus transitive fixes (`anyhow`, `crossbeam-epoch`).
**`PartAtom::from_bytes`** in `part_atom.rs` is updated for quick-xml
≥0.38: entities stream as **`Event::GeneralRef`** instead of inline
expansion, text is accumulated in **`pending`** and flushed on end tags
(replacing **`trim_text`** + **`BytesText::unescape`**), and category
**`scheme`** attributes use **`normalized_value`**.
> 
> **Viewer:** `viewer/package-lock.json` from **`npm audit fix`** (e.g.
**vite** 8.0.9 → 8.2.2, **rolldown** 1.2.6, **postcss** / **nanoid**
bumps)—dev tooling only, no app feature changes.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
d4e146a035a291fb82a75f45f5e4e01b788008d2. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
## Summary

Unblocks Cloud Agent `setupStatus: INSTALL_FAILED` on `main`, which
currently lacks `.cursor/install.sh` while agents expect `bash
.cursor/environment.json` → `bash .cursor/install.sh`.

This PR brings the **environment-only** files from draft
[#113](#113)
(`cursor/setup-dev-environment-1703`) onto a clean branch based on
latest `main`, plus shared advisory lockfile fixes from
[#118](#118) so cargo
deny/audit and viewer npm audit pass.

## What's included

- `.cursor/environment.json` — install script, port `5173`,
`viewer-dev-server` terminal
- `.cursor/install.sh` — idempotent Rust (≥1.85) + Python (`maturin`) +
WASM viewer bootstrap + smoke checks
- `AGENTS.md` — Cursor Cloud specific instructions
- CI `env config lint` job (shellcheck + schema validate)
- `.gitignore` — ignore `*.so` from `maturin develop`
- Merge of `#118` deps advisory bump
(`quick-xml`/`pyo3`/`anyhow`/`crossbeam-epoch` + viewer `npm audit fix`)

## Why a separate PR

#113 already has the same env content and passed fresh-pod builds, but
`main` still fails install for new agents. Landing this slim branch
unblocks Cloud Agents without waiting on any other work on #113.

**Once #114 is green and merges, #113 can be closed as superseded.**

## Verification

- Local: `cargo deny check advisories` ok; `cargo audit` clean; `cd
viewer && npm audit --audit-level=high` → 0 vulnerabilities
- Env setup files retained alongside deps bumps (merge commit `e12badc`)

Do not merge until CI is green on the post-merge head.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants