zenflo 0.11.3 → 0.11.5

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.
@@ -3,7 +3,7 @@
3
3
  var chalk = require('chalk');
4
4
  var os = require('node:os');
5
5
  var node_crypto = require('node:crypto');
6
- var types = require('./types-BXQVTwHm.cjs');
6
+ var types = require('./types-BowvGBcM.cjs');
7
7
  var node_child_process = require('node:child_process');
8
8
  var node_path = require('node:path');
9
9
  var node_readline = require('node:readline');
@@ -981,7 +981,7 @@ class AbortError extends Error {
981
981
  }
982
982
  }
983
983
 
984
- const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-D8ukIc06.cjs', document.baseURI).href)));
984
+ const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-6-qKdQ7W.cjs', document.baseURI).href)));
985
985
  const __dirname$1 = node_path.join(__filename$1, "..");
986
986
  function getDefaultClaudeCodePath() {
987
987
  return node_path.join(__dirname$1, "..", "..", "..", "node_modules", "@anthropic-ai", "claude-code", "cli.js");
@@ -3552,7 +3552,9 @@ async function killRunawayHappyProcesses() {
3552
3552
  function getEnvironmentInfo() {
3553
3553
  return {
3554
3554
  PWD: process.env.PWD,
3555
+ ZENFLO_HOME_DIR: process.env.ZENFLO_HOME_DIR,
3555
3556
  HAPPY_HOME_DIR: process.env.HAPPY_HOME_DIR,
3557
+ ZENFLO_SERVER_URL: process.env.ZENFLO_SERVER_URL,
3556
3558
  HAPPY_SERVER_URL: process.env.HAPPY_SERVER_URL,
3557
3559
  HAPPY_PROJECT_ROOT: process.env.HAPPY_PROJECT_ROOT,
3558
3560
  DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING: process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING,
@@ -3614,8 +3616,10 @@ async function runDoctorCommand(filter) {
3614
3616
  console.log(`Logs Dir: ${chalk.blue(types.configuration.logsDir)}`);
3615
3617
  console.log(chalk.bold("\n\u{1F30D} Environment Variables"));
3616
3618
  const env = getEnvironmentInfo();
3617
- console.log(`HAPPY_HOME_DIR: ${env.HAPPY_HOME_DIR ? chalk.green(env.HAPPY_HOME_DIR) : chalk.gray("not set")}`);
3618
- console.log(`HAPPY_SERVER_URL: ${env.HAPPY_SERVER_URL ? chalk.green(env.HAPPY_SERVER_URL) : chalk.gray("not set")}`);
3619
+ console.log(`ZENFLO_HOME_DIR: ${env.ZENFLO_HOME_DIR ? chalk.green(env.ZENFLO_HOME_DIR) : chalk.gray("not set")}`);
3620
+ console.log(`HAPPY_HOME_DIR (legacy): ${env.HAPPY_HOME_DIR ? chalk.yellow(env.HAPPY_HOME_DIR) : chalk.gray("not set")}`);
3621
+ console.log(`ZENFLO_SERVER_URL: ${env.ZENFLO_SERVER_URL ? chalk.green(env.ZENFLO_SERVER_URL) : chalk.gray("not set")}`);
3622
+ console.log(`HAPPY_SERVER_URL (legacy): ${env.HAPPY_SERVER_URL ? chalk.yellow(env.HAPPY_SERVER_URL) : chalk.gray("not set")}`);
3619
3623
  console.log(`DANGEROUSLY_LOG_TO_SERVER: ${env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING ? chalk.yellow("ENABLED") : chalk.gray("not set")}`);
3620
3624
  console.log(`DEBUG: ${env.DEBUG ? chalk.green(env.DEBUG) : chalk.gray("not set")}`);
3621
3625
  console.log(`NODE_ENV: ${env.NODE_ENV ? chalk.green(env.NODE_ENV) : chalk.gray("not set")}`);
@@ -5856,7 +5860,7 @@ async function handleConnectVendor(vendor, displayName) {
5856
5860
  return;
5857
5861
  } else if (subcommand === "codex") {
5858
5862
  try {
5859
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-DvbOp3BH.cjs'); });
5863
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-qe9_J04U.cjs'); });
5860
5864
  let startedBy = void 0;
5861
5865
  for (let i = 1; i < args.length; i++) {
5862
5866
  if (args[i] === "--started-by") {
@@ -1,7 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
  import os$1, { homedir } from 'node:os';
3
3
  import { randomUUID, randomBytes } from 'node:crypto';
4
- import { l as logger, p as projectPath, d as backoff, e as delay, R as RawJSONLinesSchema, f as AsyncLock, c as configuration, g as readDaemonState, h as clearDaemonState, b as packageJson, r as readSettings, i as readCredentials, j as encodeBase64, u as updateSettings, k as encodeBase64Url, m as decodeBase64, w as writeCredentialsLegacy, n as writeCredentialsDataKey, o as acquireDaemonLock, q as writeDaemonState, A as ApiClient, s as releaseDaemonLock, t as clearCredentials, v as clearMachineId, x as getLatestDaemonLog } from './types-B8nHnO9L.mjs';
4
+ import { l as logger, p as projectPath, d as backoff, e as delay, R as RawJSONLinesSchema, f as AsyncLock, c as configuration, g as readDaemonState, h as clearDaemonState, b as packageJson, r as readSettings, i as readCredentials, j as encodeBase64, u as updateSettings, k as encodeBase64Url, m as decodeBase64, w as writeCredentialsLegacy, n as writeCredentialsDataKey, o as acquireDaemonLock, q as writeDaemonState, A as ApiClient, s as releaseDaemonLock, t as clearCredentials, v as clearMachineId, x as getLatestDaemonLog } from './types-ROQJQZrv.mjs';
5
5
  import { spawn, execSync, execFileSync } from 'node:child_process';
6
6
  import { resolve, join } from 'node:path';
7
7
  import { createInterface } from 'node:readline';
@@ -3530,7 +3530,9 @@ async function killRunawayHappyProcesses() {
3530
3530
  function getEnvironmentInfo() {
3531
3531
  return {
3532
3532
  PWD: process.env.PWD,
3533
+ ZENFLO_HOME_DIR: process.env.ZENFLO_HOME_DIR,
3533
3534
  HAPPY_HOME_DIR: process.env.HAPPY_HOME_DIR,
3535
+ ZENFLO_SERVER_URL: process.env.ZENFLO_SERVER_URL,
3534
3536
  HAPPY_SERVER_URL: process.env.HAPPY_SERVER_URL,
3535
3537
  HAPPY_PROJECT_ROOT: process.env.HAPPY_PROJECT_ROOT,
3536
3538
  DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING: process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING,
@@ -3592,8 +3594,10 @@ async function runDoctorCommand(filter) {
3592
3594
  console.log(`Logs Dir: ${chalk.blue(configuration.logsDir)}`);
3593
3595
  console.log(chalk.bold("\n\u{1F30D} Environment Variables"));
3594
3596
  const env = getEnvironmentInfo();
3595
- console.log(`HAPPY_HOME_DIR: ${env.HAPPY_HOME_DIR ? chalk.green(env.HAPPY_HOME_DIR) : chalk.gray("not set")}`);
3596
- console.log(`HAPPY_SERVER_URL: ${env.HAPPY_SERVER_URL ? chalk.green(env.HAPPY_SERVER_URL) : chalk.gray("not set")}`);
3597
+ console.log(`ZENFLO_HOME_DIR: ${env.ZENFLO_HOME_DIR ? chalk.green(env.ZENFLO_HOME_DIR) : chalk.gray("not set")}`);
3598
+ console.log(`HAPPY_HOME_DIR (legacy): ${env.HAPPY_HOME_DIR ? chalk.yellow(env.HAPPY_HOME_DIR) : chalk.gray("not set")}`);
3599
+ console.log(`ZENFLO_SERVER_URL: ${env.ZENFLO_SERVER_URL ? chalk.green(env.ZENFLO_SERVER_URL) : chalk.gray("not set")}`);
3600
+ console.log(`HAPPY_SERVER_URL (legacy): ${env.HAPPY_SERVER_URL ? chalk.yellow(env.HAPPY_SERVER_URL) : chalk.gray("not set")}`);
3597
3601
  console.log(`DANGEROUSLY_LOG_TO_SERVER: ${env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING ? chalk.yellow("ENABLED") : chalk.gray("not set")}`);
3598
3602
  console.log(`DEBUG: ${env.DEBUG ? chalk.green(env.DEBUG) : chalk.gray("not set")}`);
3599
3603
  console.log(`NODE_ENV: ${env.NODE_ENV ? chalk.green(env.NODE_ENV) : chalk.gray("not set")}`);
@@ -5834,7 +5838,7 @@ async function handleConnectVendor(vendor, displayName) {
5834
5838
  return;
5835
5839
  } else if (subcommand === "codex") {
5836
5840
  try {
5837
- const { runCodex } = await import('./runCodex-BeCu5Fz-.mjs');
5841
+ const { runCodex } = await import('./runCodex-hZGg21lA.mjs');
5838
5842
  let startedBy = void 0;
5839
5843
  for (let i = 1; i < args.length; i++) {
5840
5844
  if (args[i] === "--started-by") {
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./index-D8ukIc06.cjs');
5
- require('./types-BXQVTwHm.cjs');
4
+ require('./index-6-qKdQ7W.cjs');
5
+ require('./types-BowvGBcM.cjs');
6
6
  require('zod');
7
7
  require('node:child_process');
8
8
  require('node:os');
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'chalk';
2
- import './index-C0hzuX29.mjs';
3
- import './types-B8nHnO9L.mjs';
2
+ import './index-DuOY65WC.mjs';
3
+ import './types-ROQJQZrv.mjs';
4
4
  import 'zod';
5
5
  import 'node:child_process';
6
6
  import 'node:os';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var types = require('./types-BXQVTwHm.cjs');
3
+ var types = require('./types-BowvGBcM.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-B8nHnO9L.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-ROQJQZrv.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';
@@ -1,13 +1,13 @@
1
1
  import { useStdout, useInput, Box, Text, render } from 'ink';
2
2
  import React, { useState, useRef, useEffect, useCallback } from 'react';
3
- import { l as logger, A as ApiClient, r as readSettings, p as projectPath, c as configuration, b as packageJson } from './types-B8nHnO9L.mjs';
3
+ import { l as logger, A as ApiClient, r as readSettings, p as projectPath, c as configuration, b as packageJson } from './types-ROQJQZrv.mjs';
4
4
  import { Client } from '@modelcontextprotocol/sdk/client/index.js';
5
5
  import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
6
6
  import { z } from 'zod';
7
7
  import { ElicitRequestSchema } from '@modelcontextprotocol/sdk/types.js';
8
8
  import { execSync } from 'child_process';
9
9
  import { randomUUID } from 'node:crypto';
10
- import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler, a as MessageBuffer, s as startZenfloServer, t as trimIdent, b as stopCaffeinate } from './index-C0hzuX29.mjs';
10
+ import { i as initialMachineMetadata, n as notifyDaemonSessionStarted, M as MessageQueue2, h as hashObject, r as registerKillSessionHandler, a as MessageBuffer, s as startZenfloServer, t as trimIdent, b as stopCaffeinate } from './index-DuOY65WC.mjs';
11
11
  import os from 'node:os';
12
12
  import { resolve, join } from 'node:path';
13
13
  import fs from 'node:fs';
@@ -2,14 +2,14 @@
2
2
 
3
3
  var ink = require('ink');
4
4
  var React = require('react');
5
- var types = require('./types-BXQVTwHm.cjs');
5
+ var types = require('./types-BowvGBcM.cjs');
6
6
  var index_js = require('@modelcontextprotocol/sdk/client/index.js');
7
7
  var stdio_js = require('@modelcontextprotocol/sdk/client/stdio.js');
8
8
  var z = require('zod');
9
9
  var types_js = require('@modelcontextprotocol/sdk/types.js');
10
10
  var child_process = require('child_process');
11
11
  var node_crypto = require('node:crypto');
12
- var index = require('./index-D8ukIc06.cjs');
12
+ var index = require('./index-6-qKdQ7W.cjs');
13
13
  var os = require('node:os');
14
14
  var node_path = require('node:path');
15
15
  var fs = require('node:fs');
@@ -42,7 +42,7 @@ function _interopNamespaceDefault(e) {
42
42
  var z__namespace = /*#__PURE__*/_interopNamespaceDefault(z);
43
43
 
44
44
  var name = "zenflo";
45
- var version = "0.11.3";
45
+ var version = "0.11.5";
46
46
  var description = "Mobile and Web client for Claude Code and Codex - ZenFlo edition";
47
47
  var author = "Combined Memory";
48
48
  var license = "MIT";
@@ -203,12 +203,13 @@ class Configuration {
203
203
  isExperimentalEnabled;
204
204
  disableCaffeinate;
205
205
  constructor() {
206
- this.serverUrl = process.env.HAPPY_SERVER_URL || "https://zenflo.combinedmemory.com";
207
- this.webappUrl = process.env.HAPPY_WEBAPP_URL || "https://app.combinedmemory.com";
206
+ this.serverUrl = process.env.ZENFLO_SERVER_URL || process.env.HAPPY_SERVER_URL || "https://zenflo.combinedmemory.com";
207
+ this.webappUrl = process.env.ZENFLO_WEBAPP_URL || process.env.HAPPY_WEBAPP_URL || "https://app.combinedmemory.com";
208
208
  const args = process.argv.slice(2);
209
209
  this.isDaemonProcess = args.length >= 2 && args[0] === "daemon" && args[1] === "start-sync";
210
- if (process.env.HAPPY_HOME_DIR) {
211
- const expandedPath = process.env.HAPPY_HOME_DIR.replace(/^~/, os.homedir());
210
+ if (process.env.ZENFLO_HOME_DIR || process.env.HAPPY_HOME_DIR) {
211
+ const homeDir = process.env.ZENFLO_HOME_DIR || process.env.HAPPY_HOME_DIR;
212
+ const expandedPath = homeDir.replace(/^~/, os.homedir());
212
213
  this.happyHomeDir = expandedPath;
213
214
  } else {
214
215
  this.happyHomeDir = node_path.join(os.homedir(), ".happy");
@@ -563,8 +564,8 @@ function getSessionLogPath() {
563
564
  class Logger {
564
565
  constructor(logFilePath = getSessionLogPath()) {
565
566
  this.logFilePath = logFilePath;
566
- if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && process.env.HAPPY_SERVER_URL) {
567
- this.dangerouslyUnencryptedServerLoggingUrl = process.env.HAPPY_SERVER_URL;
567
+ if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && (process.env.ZENFLO_SERVER_URL || process.env.HAPPY_SERVER_URL)) {
568
+ this.dangerouslyUnencryptedServerLoggingUrl = process.env.ZENFLO_SERVER_URL || process.env.HAPPY_SERVER_URL;
568
569
  console.log(chalk.yellow("[REMOTE LOGGING] Sending logs to server for AI debugging"));
569
570
  }
570
571
  }
@@ -1019,7 +1020,7 @@ class RpcHandlerManager {
1019
1020
  }
1020
1021
  }
1021
1022
 
1022
- const __dirname$1 = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-BXQVTwHm.cjs', document.baseURI).href))));
1023
+ const __dirname$1 = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-BowvGBcM.cjs', document.baseURI).href))));
1023
1024
  function projectPath() {
1024
1025
  const path$1 = path.resolve(__dirname$1, "..");
1025
1026
  return path$1;
@@ -21,7 +21,7 @@ import { platform } from 'os';
21
21
  import { Expo } from 'expo-server-sdk';
22
22
 
23
23
  var name = "zenflo";
24
- var version = "0.11.3";
24
+ var version = "0.11.5";
25
25
  var description = "Mobile and Web client for Claude Code and Codex - ZenFlo edition";
26
26
  var author = "Combined Memory";
27
27
  var license = "MIT";
@@ -182,12 +182,13 @@ class Configuration {
182
182
  isExperimentalEnabled;
183
183
  disableCaffeinate;
184
184
  constructor() {
185
- this.serverUrl = process.env.HAPPY_SERVER_URL || "https://zenflo.combinedmemory.com";
186
- this.webappUrl = process.env.HAPPY_WEBAPP_URL || "https://app.combinedmemory.com";
185
+ this.serverUrl = process.env.ZENFLO_SERVER_URL || process.env.HAPPY_SERVER_URL || "https://zenflo.combinedmemory.com";
186
+ this.webappUrl = process.env.ZENFLO_WEBAPP_URL || process.env.HAPPY_WEBAPP_URL || "https://app.combinedmemory.com";
187
187
  const args = process.argv.slice(2);
188
188
  this.isDaemonProcess = args.length >= 2 && args[0] === "daemon" && args[1] === "start-sync";
189
- if (process.env.HAPPY_HOME_DIR) {
190
- const expandedPath = process.env.HAPPY_HOME_DIR.replace(/^~/, homedir());
189
+ if (process.env.ZENFLO_HOME_DIR || process.env.HAPPY_HOME_DIR) {
190
+ const homeDir = process.env.ZENFLO_HOME_DIR || process.env.HAPPY_HOME_DIR;
191
+ const expandedPath = homeDir.replace(/^~/, homedir());
191
192
  this.happyHomeDir = expandedPath;
192
193
  } else {
193
194
  this.happyHomeDir = join(homedir(), ".happy");
@@ -542,8 +543,8 @@ function getSessionLogPath() {
542
543
  class Logger {
543
544
  constructor(logFilePath = getSessionLogPath()) {
544
545
  this.logFilePath = logFilePath;
545
- if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && process.env.HAPPY_SERVER_URL) {
546
- this.dangerouslyUnencryptedServerLoggingUrl = process.env.HAPPY_SERVER_URL;
546
+ if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && (process.env.ZENFLO_SERVER_URL || process.env.HAPPY_SERVER_URL)) {
547
+ this.dangerouslyUnencryptedServerLoggingUrl = process.env.ZENFLO_SERVER_URL || process.env.HAPPY_SERVER_URL;
547
548
  console.log(chalk.yellow("[REMOTE LOGGING] Sending logs to server for AI debugging"));
548
549
  }
549
550
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zenflo",
3
- "version": "0.11.3",
3
+ "version": "0.11.5",
4
4
  "description": "Mobile and Web client for Claude Code and Codex - ZenFlo edition",
5
5
  "author": "Combined Memory",
6
6
  "license": "MIT",