@getpochi/cli 0.5.52 → 0.5.53

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 +11 -11
  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.52",
368452
+ version: "0.5.53",
368453
368453
  type: "module",
368454
368454
  bin: {
368455
368455
  pochi: "src/cli.ts"
@@ -395922,16 +395922,16 @@ var import_node_machine_id = __toESM(require_dist3(), 1);
395922
395922
  async function createStore3() {
395923
395923
  const { jwt: jwt2 = null } = await getPochiCredentials2() || {};
395924
395924
  const storeId = await getStoreId(jwt2);
395925
- const disableSync = !!process.env.POCHI_LIVEKIT_NO_SYNC;
395925
+ const enableSync = !!process.env.POCHI_LIVEKIT_SYNC_ON;
395926
395926
  const adapter4 = makeAdapter({
395927
- storage: disableSync ? { type: "in-memory" } : {
395927
+ storage: enableSync ? {
395928
395928
  type: "fs",
395929
395929
  baseDirectory: path24.join(os9.homedir(), ".pochi", "storage")
395930
- },
395930
+ } : { type: "in-memory" },
395931
395931
  devtools: process.env.POCHI_LIVEKIT_DEVTOOLS ? {
395932
395932
  schemaPath: "../../packages/livekit/src/livestore/schema.ts"
395933
395933
  } : undefined,
395934
- sync: jwt2 && !disableSync ? {
395934
+ sync: jwt2 && enableSync ? {
395935
395935
  backend: makeWsSync({
395936
395936
  url: getSyncBaseUrl()
395937
395937
  })
@@ -409705,6 +409705,9 @@ function registerTaskShareCommand(taskCommand) {
409705
409705
 
409706
409706
  // src/task/cmd.ts
409707
409707
  function registerTaskCommand(program5) {
409708
+ const enableSync = !!process.env.POCHI_LIVEKIT_SYNC_ON;
409709
+ if (!enableSync)
409710
+ return;
409708
409711
  const taskCommand = program5.command("task").description("Manage and interact with tasks.").addHelpCommand(true);
409709
409712
  registerTaskListCommand(taskCommand);
409710
409713
  registerTaskShareCommand(taskCommand);
@@ -412394,12 +412397,6 @@ var program5 = new Command().name("pochi").description(`${source_default.bold("P
412394
412397
  const renderer = new OutputRenderer(runner.state);
412395
412398
  await runner.run();
412396
412399
  renderer.shutdown();
412397
- const shareId = runner.shareId;
412398
- if (shareId) {
412399
- const shareUrl = source_default.underline(`https://app.getpochi.com/share/${shareId}`);
412400
- console.log(`
412401
- ${source_default.bold("Task link: ")} ${shareUrl}`);
412402
- }
412403
412400
  mcpHub.dispose();
412404
412401
  await waitForSync(store, "2 second").catch(console.error);
412405
412402
  await shutdownStoreAndExit(store);
@@ -412537,6 +412534,9 @@ async function createLLMConfigWithProviders(program6, model2) {
412537
412534
  assertUnreachable2(modelProvider.kind);
412538
412535
  }
412539
412536
  async function waitForSync(inputStore, timeoutDuration = "1 second") {
412537
+ if (!process.env.POCHI_LIVEKIT_SYNC_ON) {
412538
+ return;
412539
+ }
412540
412540
  const store = inputStore || await createStore3();
412541
412541
  await exports_Effect2.gen(function* (_8) {
412542
412542
  while (true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpochi/cli",
3
- "version": "0.5.52",
3
+ "version": "0.5.53",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pochi": "dist/cli.js"