Skip to content

πŸ™Œ OpenHands: AI-Driven Development

feat: npm publish workflow with OIDC trusted publishing (#358)

Rohit Malhotrab5f01f366f23
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000000..fe1156b24a
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,51 @@
+# npm ignore file - overrides .gitignore for npm publish
+# We need to INCLUDE build/ and dist/ which are in .gitignore
+
+# Source files (not needed in package)
+src/
+__tests__/
+tests/
+*.test.ts
+*.test.tsx
+*.spec.ts
+
+# Development config
+.github/
+.husky/
+.openhands/
+.agents/
+.vscode/
+*.config.ts
+*.config.js
+*.config.mjs
+tsconfig*.json
+eslint.config.mjs
+.eslintrc*
+.prettierrc*
+vitest.setup.ts
+
+# Development docs
+DEVELOPMENT.md
+AGENTS.md
+CHANGELOG.md
+
+# Generated files we don't need
+public/locales/
+src/i18n/declaration.ts
+.env*
+.envrc
+
+# Test artifacts
+/test-results/
+/playwright-report/
+/blob-report/
+/playwright/
+coverage/
+
+# Misc
+node_modules/
+*.tgz
+.react-router/
+.vercel
+ralph/
+artifacts/
diff --git a/bin/agent-canvas.mjs b/bin/agent-canvas.mjs
index 44ff0f6d68..c9076e2ff3 100755
--- a/bin/agent-canvas.mjs
+++ b/bin/agent-canvas.mjs
@@ -16,7 +16,8 @@ import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
-const BUILD_DIR = join(__dirname, "..", "build", "client");
+// Build output is in build/ (not build/client/) - see react-router.config.ts unpackClientDirectory
+const BUILD_DIR = join(__dirname, "..", "build");
// Check for help flag first
const args = process.argv.slice(2);
diff --git a/package-lock.json b/package-lock.json
index 5a5939035a..5eb1de921f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@openhands/agent-canvas",
- "version": "1.0.0-alpha.2",
+ "version": "1.0.0-alpha.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@openhands/agent-canvas",
- "version": "1.0.0-alpha.2",
+ "version": "1.0.0-alpha.3",
"license": "MIT",
"dependencies": {
"@heroui/react": "2.8.10",
diff --git a/package.json b/package.json
index 00edbde559..c208e698d3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@openhands/agent-canvas",
- "version": "1.0.0-alpha.2",
+ "version": "1.0.0-alpha.3",
"description": "Agent Canvas UI for OpenHands - run AI coding agents with a visual interface",
"license": "MIT",
"private": false,