@stackbone/cli 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.3] - 2026-07-06
11
+
12
+ ### Fixed
13
+
14
+ - **`stackbone init` (and every other command) could crash with `ERR_MODULE_NOT_FOUND: Cannot find package 'drizzle-orm'`** on some `pnpm dlx`/global-install layouts. The CLI carried a dead "marker import" of `drizzle-kit/api` purely so the bundler would register `drizzle-kit` as a dependency — but that import is loaded eagerly on every CLI boot, and `drizzle-kit/api` itself requires `drizzle-orm` without declaring it as a dependency. On pnpm setups with an isolated `node_modules` layout, `drizzle-kit` can't see `drizzle-orm` even when it's installed right next to it, so the CLI crashed before running any command. Removed the marker import; `drizzle-kit` is now declared explicitly in the build config instead, and the CLI only touches `drizzle-kit` at all when a migration is genuinely being generated (`db migrate create`, or `stackbone dev`'s auto-migrate).
15
+
10
16
  ## [0.2.2] - 2026-07-06
11
17
 
12
18
  ### Fixed
package/main.js CHANGED
@@ -38,7 +38,6 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
38
38
  import { cancel, intro, isCancel, log, note, outro, select, spinner, text as text$1 } from "@clack/prompts";
39
39
  import open$1 from "open";
40
40
  import { readMigrationFiles } from "drizzle-orm/migrator";
41
- import "drizzle-kit/api";
42
41
  import { createServer } from "node:net";
43
42
  import { create } from "tar";
44
43
  import { Readable } from "node:stream";
@@ -2989,7 +2988,7 @@ var DEV_HMAC_SECRET = "dev-stackbone-local-emulator-hmac-secret";
2989
2988
  //#endregion
2990
2989
  //#region ../../libs/runtime/agent-emulator/src/lib/server/contract.ts
2991
2990
  init_src$14();
2992
- var STACKBONE_CLI_BUILD_VERSION = "0.2.2";
2991
+ var STACKBONE_CLI_BUILD_VERSION = "0.2.3";
2993
2992
  /**
2994
2993
  * Capabilities the local emulator advertises on `GET /api/contract`, derived
2995
2994
  * from the route registry above so the advertised set and the mounted routes
@@ -3020,7 +3019,11 @@ var buildContractResponse = () => contractResponseSchema.parse({
3020
3019
  });
3021
3020
  //#endregion
3022
3021
  //#region ../../libs/runtime/agent-emulator/src/lib/server/cors.ts
3023
- var DEFAULT_ALLOWED_ORIGINS = ["https://app.stackbone.ai", "http://localhost:*"];
3022
+ var DEFAULT_ALLOWED_ORIGINS = [
3023
+ "https://app.stackbone.ai",
3024
+ "https://chat.stackbone.ai",
3025
+ "http://localhost:*"
3026
+ ];
3024
3027
  var escapeRegex = (input) => input.replace(/[.+?^${}()|[\]\\]/g, "\\$&");
3025
3028
  var compilePattern = (pattern) => {
3026
3029
  const escaped = escapeRegex(pattern.trim()).replace(/\*/g, "[^/.]+");
@@ -35174,6 +35177,7 @@ is for offline work or when the relay handshake fails.
35174
35177
  The emulator enforces an explicit CORS allowlist (no \`*\`). Default origins:
35175
35178
 
35176
35179
  - \`https://app.stackbone.ai\`
35180
+ - \`https://chat.stackbone.ai\`
35177
35181
  - \`http://localhost:*\` (any port; covers any local dev server you run)
35178
35182
 
35179
35183
  Add origins **per-repo** via \`stackbone.config.json\` at the project root
@@ -35185,6 +35189,7 @@ Add origins **per-repo** via \`stackbone.config.json\` at the project root
35185
35189
  "studio": {
35186
35190
  "corsOrigins": [
35187
35191
  "https://app.stackbone.ai",
35192
+ "https://chat.stackbone.ai",
35188
35193
  "https://staging.stackbone.ai",
35189
35194
  "http://localhost:*",
35190
35195
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackbone/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "bin": {
Binary file
Binary file