zenflo 0.11.5 → 0.11.6
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/dist/{index-6-qKdQ7W.cjs → index-BtMdJglm.cjs} +5 -9
- package/dist/{index-DuOY65WC.mjs → index-QlmPnTH6.mjs} +4 -8
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.mjs +1 -1
- package/dist/{runCodex-qe9_J04U.cjs → runCodex-Cg3lSta7.cjs} +2 -2
- package/dist/{runCodex-hZGg21lA.mjs → runCodex-DrAbIuHU.mjs} +2 -2
- package/dist/{types-BowvGBcM.cjs → types-CJaqq466.cjs} +8 -9
- package/dist/{types-ROQJQZrv.mjs → types-DjiA-t1_.mjs} +7 -8
- package/package.json +1 -1
|
@@ -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-
|
|
6
|
+
var types = require('./types-CJaqq466.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');
|
|
@@ -296,7 +296,7 @@ async function claudeLocal(opts) {
|
|
|
296
296
|
args.push(...opts.claudeArgs);
|
|
297
297
|
}
|
|
298
298
|
if (!claudeCliPath || !fs.existsSync(claudeCliPath)) {
|
|
299
|
-
throw new Error("Claude local launcher not found. Please ensure
|
|
299
|
+
throw new Error("Claude local launcher not found. Please ensure ZENFLO_PROJECT_ROOT is set correctly for development.");
|
|
300
300
|
}
|
|
301
301
|
const env = {
|
|
302
302
|
...process.env,
|
|
@@ -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-
|
|
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-BtMdJglm.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");
|
|
@@ -3553,10 +3553,8 @@ function getEnvironmentInfo() {
|
|
|
3553
3553
|
return {
|
|
3554
3554
|
PWD: process.env.PWD,
|
|
3555
3555
|
ZENFLO_HOME_DIR: process.env.ZENFLO_HOME_DIR,
|
|
3556
|
-
HAPPY_HOME_DIR: process.env.HAPPY_HOME_DIR,
|
|
3557
3556
|
ZENFLO_SERVER_URL: process.env.ZENFLO_SERVER_URL,
|
|
3558
|
-
|
|
3559
|
-
HAPPY_PROJECT_ROOT: process.env.HAPPY_PROJECT_ROOT,
|
|
3557
|
+
ZENFLO_PROJECT_ROOT: process.env.ZENFLO_PROJECT_ROOT,
|
|
3560
3558
|
DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING: process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING,
|
|
3561
3559
|
NODE_ENV: process.env.NODE_ENV,
|
|
3562
3560
|
DEBUG: process.env.DEBUG,
|
|
@@ -3617,9 +3615,7 @@ async function runDoctorCommand(filter) {
|
|
|
3617
3615
|
console.log(chalk.bold("\n\u{1F30D} Environment Variables"));
|
|
3618
3616
|
const env = getEnvironmentInfo();
|
|
3619
3617
|
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
3618
|
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")}`);
|
|
3623
3619
|
console.log(`DANGEROUSLY_LOG_TO_SERVER: ${env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING ? chalk.yellow("ENABLED") : chalk.gray("not set")}`);
|
|
3624
3620
|
console.log(`DEBUG: ${env.DEBUG ? chalk.green(env.DEBUG) : chalk.gray("not set")}`);
|
|
3625
3621
|
console.log(`NODE_ENV: ${env.NODE_ENV ? chalk.green(env.NODE_ENV) : chalk.gray("not set")}`);
|
|
@@ -5860,7 +5856,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
5860
5856
|
return;
|
|
5861
5857
|
} else if (subcommand === "codex") {
|
|
5862
5858
|
try {
|
|
5863
|
-
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-
|
|
5859
|
+
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Cg3lSta7.cjs'); });
|
|
5864
5860
|
let startedBy = void 0;
|
|
5865
5861
|
for (let i = 1; i < args.length; i++) {
|
|
5866
5862
|
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-
|
|
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-DjiA-t1_.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';
|
|
@@ -274,7 +274,7 @@ async function claudeLocal(opts) {
|
|
|
274
274
|
args.push(...opts.claudeArgs);
|
|
275
275
|
}
|
|
276
276
|
if (!claudeCliPath || !existsSync(claudeCliPath)) {
|
|
277
|
-
throw new Error("Claude local launcher not found. Please ensure
|
|
277
|
+
throw new Error("Claude local launcher not found. Please ensure ZENFLO_PROJECT_ROOT is set correctly for development.");
|
|
278
278
|
}
|
|
279
279
|
const env = {
|
|
280
280
|
...process.env,
|
|
@@ -3531,10 +3531,8 @@ function getEnvironmentInfo() {
|
|
|
3531
3531
|
return {
|
|
3532
3532
|
PWD: process.env.PWD,
|
|
3533
3533
|
ZENFLO_HOME_DIR: process.env.ZENFLO_HOME_DIR,
|
|
3534
|
-
HAPPY_HOME_DIR: process.env.HAPPY_HOME_DIR,
|
|
3535
3534
|
ZENFLO_SERVER_URL: process.env.ZENFLO_SERVER_URL,
|
|
3536
|
-
|
|
3537
|
-
HAPPY_PROJECT_ROOT: process.env.HAPPY_PROJECT_ROOT,
|
|
3535
|
+
ZENFLO_PROJECT_ROOT: process.env.ZENFLO_PROJECT_ROOT,
|
|
3538
3536
|
DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING: process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING,
|
|
3539
3537
|
NODE_ENV: process.env.NODE_ENV,
|
|
3540
3538
|
DEBUG: process.env.DEBUG,
|
|
@@ -3595,9 +3593,7 @@ async function runDoctorCommand(filter) {
|
|
|
3595
3593
|
console.log(chalk.bold("\n\u{1F30D} Environment Variables"));
|
|
3596
3594
|
const env = getEnvironmentInfo();
|
|
3597
3595
|
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
3596
|
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")}`);
|
|
3601
3597
|
console.log(`DANGEROUSLY_LOG_TO_SERVER: ${env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING ? chalk.yellow("ENABLED") : chalk.gray("not set")}`);
|
|
3602
3598
|
console.log(`DEBUG: ${env.DEBUG ? chalk.green(env.DEBUG) : chalk.gray("not set")}`);
|
|
3603
3599
|
console.log(`NODE_ENV: ${env.NODE_ENV ? chalk.green(env.NODE_ENV) : chalk.gray("not set")}`);
|
|
@@ -5838,7 +5834,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
5838
5834
|
return;
|
|
5839
5835
|
} else if (subcommand === "codex") {
|
|
5840
5836
|
try {
|
|
5841
|
-
const { runCodex } = await import('./runCodex-
|
|
5837
|
+
const { runCodex } = await import('./runCodex-DrAbIuHU.mjs');
|
|
5842
5838
|
let startedBy = void 0;
|
|
5843
5839
|
for (let i = 1; i < args.length; i++) {
|
|
5844
5840
|
if (args[i] === "--started-by") {
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/lib.cjs
CHANGED
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-
|
|
1
|
+
export { A as ApiClient, a as ApiSessionClient, R as RawJSONLinesSchema, c as configuration, l as logger } from './types-DjiA-t1_.mjs';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'chalk';
|
|
4
4
|
import 'fs';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var ink = require('ink');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var types = require('./types-
|
|
5
|
+
var types = require('./types-CJaqq466.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-
|
|
12
|
+
var index = require('./index-BtMdJglm.cjs');
|
|
13
13
|
var os = require('node:os');
|
|
14
14
|
var node_path = require('node:path');
|
|
15
15
|
var fs = require('node: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-
|
|
3
|
+
import { l as logger, A as ApiClient, r as readSettings, p as projectPath, c as configuration, b as packageJson } from './types-DjiA-t1_.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-
|
|
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-QlmPnTH6.mjs';
|
|
11
11
|
import os from 'node:os';
|
|
12
12
|
import { resolve, join } from 'node:path';
|
|
13
13
|
import fs from '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.
|
|
45
|
+
var version = "0.11.6";
|
|
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,13 +203,12 @@ class Configuration {
|
|
|
203
203
|
isExperimentalEnabled;
|
|
204
204
|
disableCaffeinate;
|
|
205
205
|
constructor() {
|
|
206
|
-
this.serverUrl = process.env.ZENFLO_SERVER_URL ||
|
|
207
|
-
this.webappUrl = process.env.ZENFLO_WEBAPP_URL ||
|
|
206
|
+
this.serverUrl = process.env.ZENFLO_SERVER_URL || "https://zenflo.combinedmemory.com";
|
|
207
|
+
this.webappUrl = process.env.ZENFLO_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.ZENFLO_HOME_DIR
|
|
211
|
-
const
|
|
212
|
-
const expandedPath = homeDir.replace(/^~/, os.homedir());
|
|
210
|
+
if (process.env.ZENFLO_HOME_DIR) {
|
|
211
|
+
const expandedPath = process.env.ZENFLO_HOME_DIR.replace(/^~/, os.homedir());
|
|
213
212
|
this.happyHomeDir = expandedPath;
|
|
214
213
|
} else {
|
|
215
214
|
this.happyHomeDir = node_path.join(os.homedir(), ".happy");
|
|
@@ -564,8 +563,8 @@ function getSessionLogPath() {
|
|
|
564
563
|
class Logger {
|
|
565
564
|
constructor(logFilePath = getSessionLogPath()) {
|
|
566
565
|
this.logFilePath = logFilePath;
|
|
567
|
-
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING &&
|
|
568
|
-
this.dangerouslyUnencryptedServerLoggingUrl = process.env.ZENFLO_SERVER_URL
|
|
566
|
+
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && process.env.ZENFLO_SERVER_URL) {
|
|
567
|
+
this.dangerouslyUnencryptedServerLoggingUrl = process.env.ZENFLO_SERVER_URL;
|
|
569
568
|
console.log(chalk.yellow("[REMOTE LOGGING] Sending logs to server for AI debugging"));
|
|
570
569
|
}
|
|
571
570
|
}
|
|
@@ -1020,7 +1019,7 @@ class RpcHandlerManager {
|
|
|
1020
1019
|
}
|
|
1021
1020
|
}
|
|
1022
1021
|
|
|
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-
|
|
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-CJaqq466.cjs', document.baseURI).href))));
|
|
1024
1023
|
function projectPath() {
|
|
1025
1024
|
const path$1 = path.resolve(__dirname$1, "..");
|
|
1026
1025
|
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.
|
|
24
|
+
var version = "0.11.6";
|
|
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,13 +182,12 @@ class Configuration {
|
|
|
182
182
|
isExperimentalEnabled;
|
|
183
183
|
disableCaffeinate;
|
|
184
184
|
constructor() {
|
|
185
|
-
this.serverUrl = process.env.ZENFLO_SERVER_URL ||
|
|
186
|
-
this.webappUrl = process.env.ZENFLO_WEBAPP_URL ||
|
|
185
|
+
this.serverUrl = process.env.ZENFLO_SERVER_URL || "https://zenflo.combinedmemory.com";
|
|
186
|
+
this.webappUrl = process.env.ZENFLO_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.ZENFLO_HOME_DIR
|
|
190
|
-
const
|
|
191
|
-
const expandedPath = homeDir.replace(/^~/, homedir());
|
|
189
|
+
if (process.env.ZENFLO_HOME_DIR) {
|
|
190
|
+
const expandedPath = process.env.ZENFLO_HOME_DIR.replace(/^~/, homedir());
|
|
192
191
|
this.happyHomeDir = expandedPath;
|
|
193
192
|
} else {
|
|
194
193
|
this.happyHomeDir = join(homedir(), ".happy");
|
|
@@ -543,8 +542,8 @@ function getSessionLogPath() {
|
|
|
543
542
|
class Logger {
|
|
544
543
|
constructor(logFilePath = getSessionLogPath()) {
|
|
545
544
|
this.logFilePath = logFilePath;
|
|
546
|
-
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING &&
|
|
547
|
-
this.dangerouslyUnencryptedServerLoggingUrl = process.env.ZENFLO_SERVER_URL
|
|
545
|
+
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && process.env.ZENFLO_SERVER_URL) {
|
|
546
|
+
this.dangerouslyUnencryptedServerLoggingUrl = process.env.ZENFLO_SERVER_URL;
|
|
548
547
|
console.log(chalk.yellow("[REMOTE LOGGING] Sending logs to server for AI debugging"));
|
|
549
548
|
}
|
|
550
549
|
}
|