feat: Add support for sandbox edit command (#385)

* feat: Add support for sandbox edit command

* docs: Update sandbox docs

* fix(editor): address review — neutral failure wording, skip sh-script tests on Windows

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(test): avoid pnpm init in pm-e2e — devEngines.packageManager crashes subsequent pnpm add

Same workaround and rationale as the PNPM job in pmg-e2e.yml. Latest pnpm
(unpinned pnpm/action-setup) writes devEngines.packageManager with
onFail:download on init, and the next add fails with "Cannot use 'in'
operator to search for 'integrity' in undefined".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Abhisek Datta
2026-07-18 22:53:39 +05:30
committed by GitHub
co-authored by Claude Fable 5
parent bafd3c0654
commit 695a1d739d
8 changed files with 478 additions and 47 deletions
+4 -1
View File
@@ -76,7 +76,10 @@ function testPackageManager(pm) {
try {
// Initialize project
test(`${pm}: Initialize project`, () => {
const initCmd = pm === 'npm' ? 'npm init -y' : 'pnpm init';
// npm init even for pnpm: `pnpm init` writes devEngines.packageManager
// with onFail:download, and the next `pnpm add` crashes with
// "Cannot use 'in' operator to search for 'integrity' in undefined".
const initCmd = 'npm init -y';
const result = exec(initCmd, { cwd: testDir, env });
if (!result.success) {
console.log(` ❌ FAIL: ${result.error}`);