diff --git a/scripts/release/sdk.ts b/scripts/release/sdk.ts index aa6ef2f..b5f54b0 100644 --- a/scripts/release/sdk.ts +++ b/scripts/release/sdk.ts @@ -81,16 +81,16 @@ async function npmVersionExists( return true; } catch (error: any) { if (error.stderr) { - if ( - !error.stderr.includes( - `No match found for version ${version}`, - ) && - !error.stderr.includes( - `'${packageName}@${version}' is not in this registry.`, - ) - ) { + const stderr = error.stderr; + // Expected errors when version or package doesn't exist + const expected = + stderr.includes(`No match found for version ${version}`) || + stderr.includes(`'${packageName}@${version}' is not in this registry.`) || + stderr.includes("404 Not Found") || + stderr.includes("is not in the npm registry"); + if (!expected) { throw new Error( - `unexpected npm view version output: ${error.stderr}`, + `unexpected npm view version output: ${stderr}`, ); } } diff --git a/sdks/acp-http-client/package.json b/sdks/acp-http-client/package.json index 6eb419a..ad1bc4e 100644 --- a/sdks/acp-http-client/package.json +++ b/sdks/acp-http-client/package.json @@ -1,6 +1,6 @@ { "name": "acp-http-client", - "version": "0.1.0", + "version": "0.2.0", "description": "Protocol-faithful ACP JSON-RPC over streamable HTTP client.", "license": "Apache-2.0", "repository": { diff --git a/sdks/persist-indexeddb/package.json b/sdks/persist-indexeddb/package.json index dc204ca..04eb853 100644 --- a/sdks/persist-indexeddb/package.json +++ b/sdks/persist-indexeddb/package.json @@ -1,6 +1,6 @@ { "name": "@sandbox-agent/persist-indexeddb", - "version": "0.1.0", + "version": "0.2.0", "description": "IndexedDB persistence driver for the Sandbox Agent TypeScript SDK", "license": "Apache-2.0", "repository": { diff --git a/sdks/persist-postgres/package.json b/sdks/persist-postgres/package.json index 0ad277d..be8afd6 100644 --- a/sdks/persist-postgres/package.json +++ b/sdks/persist-postgres/package.json @@ -1,6 +1,6 @@ { "name": "@sandbox-agent/persist-postgres", - "version": "0.1.0", + "version": "0.2.0", "description": "PostgreSQL persistence driver for the Sandbox Agent TypeScript SDK", "license": "Apache-2.0", "repository": { diff --git a/sdks/persist-rivet/package.json b/sdks/persist-rivet/package.json index 44baf47..da170aa 100644 --- a/sdks/persist-rivet/package.json +++ b/sdks/persist-rivet/package.json @@ -1,6 +1,6 @@ { "name": "@sandbox-agent/persist-rivet", - "version": "0.1.0", + "version": "0.2.0", "description": "Rivet Actor persistence driver for the Sandbox Agent TypeScript SDK", "license": "Apache-2.0", "repository": { diff --git a/sdks/persist-sqlite/package.json b/sdks/persist-sqlite/package.json index 46f1e58..a35a4c2 100644 --- a/sdks/persist-sqlite/package.json +++ b/sdks/persist-sqlite/package.json @@ -1,6 +1,6 @@ { "name": "@sandbox-agent/persist-sqlite", - "version": "0.1.0", + "version": "0.2.0", "description": "SQLite persistence driver for the Sandbox Agent TypeScript SDK", "license": "Apache-2.0", "repository": {