@getpochi/cli 0.5.49 → 0.5.51

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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -368449,7 +368449,7 @@ var {
368449
368449
  // package.json
368450
368450
  var package_default = {
368451
368451
  name: "@getpochi/cli",
368452
- version: "0.5.49",
368452
+ version: "0.5.51",
368453
368453
  type: "module",
368454
368454
  bin: {
368455
368455
  pochi: "src/cli.ts"
@@ -395916,15 +395916,16 @@ var import_node_machine_id = __toESM(require_dist3(), 1);
395916
395916
  async function createStore3() {
395917
395917
  const { jwt: jwt2 = null } = await getPochiCredentials2() || {};
395918
395918
  const storeId = await getStoreId(jwt2);
395919
+ const disableSync = !!process.env.POCHI_LIVEKIT_NO_SYNC;
395919
395920
  const adapter4 = makeAdapter({
395920
- storage: {
395921
+ storage: disableSync ? { type: "in-memory" } : {
395921
395922
  type: "fs",
395922
395923
  baseDirectory: path24.join(os9.homedir(), ".pochi", "storage")
395923
395924
  },
395924
395925
  devtools: process.env.POCHI_LIVEKIT_DEVTOOLS ? {
395925
395926
  schemaPath: "../../packages/livekit/src/livestore/schema.ts"
395926
395927
  } : undefined,
395927
- sync: jwt2 ? {
395928
+ sync: jwt2 && !disableSync ? {
395928
395929
  backend: makeWsSync({
395929
395930
  url: getSyncBaseUrl()
395930
395931
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpochi/cli",
3
- "version": "0.5.49",
3
+ "version": "0.5.51",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pochi": "dist/cli.js"