zenflo 0.11.4 → 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-FBQqV3tt.cjs → index-BtMdJglm.cjs} +9 -9
- package/dist/{index-BFbq03uJ.mjs → index-QlmPnTH6.mjs} +8 -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-CzeejIBC.cjs → runCodex-Cg3lSta7.cjs} +2 -2
- package/dist/{runCodex-DAY1lCxR.mjs → runCodex-DrAbIuHU.mjs} +2 -2
- package/dist/{types-B4VPN3pY.cjs → types-CJaqq466.cjs} +8 -8
- package/dist/{types-D1IoNz1N.mjs → types-DjiA-t1_.mjs} +7 -7
- 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");
|
|
@@ -3552,9 +3552,9 @@ async function killRunawayHappyProcesses() {
|
|
|
3552
3552
|
function getEnvironmentInfo() {
|
|
3553
3553
|
return {
|
|
3554
3554
|
PWD: process.env.PWD,
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3555
|
+
ZENFLO_HOME_DIR: process.env.ZENFLO_HOME_DIR,
|
|
3556
|
+
ZENFLO_SERVER_URL: process.env.ZENFLO_SERVER_URL,
|
|
3557
|
+
ZENFLO_PROJECT_ROOT: process.env.ZENFLO_PROJECT_ROOT,
|
|
3558
3558
|
DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING: process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING,
|
|
3559
3559
|
NODE_ENV: process.env.NODE_ENV,
|
|
3560
3560
|
DEBUG: process.env.DEBUG,
|
|
@@ -3614,8 +3614,8 @@ async function runDoctorCommand(filter) {
|
|
|
3614
3614
|
console.log(`Logs Dir: ${chalk.blue(types.configuration.logsDir)}`);
|
|
3615
3615
|
console.log(chalk.bold("\n\u{1F30D} Environment Variables"));
|
|
3616
3616
|
const env = getEnvironmentInfo();
|
|
3617
|
-
console.log(`
|
|
3618
|
-
console.log(`
|
|
3617
|
+
console.log(`ZENFLO_HOME_DIR: ${env.ZENFLO_HOME_DIR ? chalk.green(env.ZENFLO_HOME_DIR) : chalk.gray("not set")}`);
|
|
3618
|
+
console.log(`ZENFLO_SERVER_URL: ${env.ZENFLO_SERVER_URL ? chalk.green(env.ZENFLO_SERVER_URL) : chalk.gray("not set")}`);
|
|
3619
3619
|
console.log(`DANGEROUSLY_LOG_TO_SERVER: ${env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING ? chalk.yellow("ENABLED") : chalk.gray("not set")}`);
|
|
3620
3620
|
console.log(`DEBUG: ${env.DEBUG ? chalk.green(env.DEBUG) : chalk.gray("not set")}`);
|
|
3621
3621
|
console.log(`NODE_ENV: ${env.NODE_ENV ? chalk.green(env.NODE_ENV) : chalk.gray("not set")}`);
|
|
@@ -5856,7 +5856,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
5856
5856
|
return;
|
|
5857
5857
|
} else if (subcommand === "codex") {
|
|
5858
5858
|
try {
|
|
5859
|
-
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-
|
|
5859
|
+
const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Cg3lSta7.cjs'); });
|
|
5860
5860
|
let startedBy = void 0;
|
|
5861
5861
|
for (let i = 1; i < args.length; i++) {
|
|
5862
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,
|
|
@@ -3530,9 +3530,9 @@ async function killRunawayHappyProcesses() {
|
|
|
3530
3530
|
function getEnvironmentInfo() {
|
|
3531
3531
|
return {
|
|
3532
3532
|
PWD: process.env.PWD,
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3533
|
+
ZENFLO_HOME_DIR: process.env.ZENFLO_HOME_DIR,
|
|
3534
|
+
ZENFLO_SERVER_URL: process.env.ZENFLO_SERVER_URL,
|
|
3535
|
+
ZENFLO_PROJECT_ROOT: process.env.ZENFLO_PROJECT_ROOT,
|
|
3536
3536
|
DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING: process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING,
|
|
3537
3537
|
NODE_ENV: process.env.NODE_ENV,
|
|
3538
3538
|
DEBUG: process.env.DEBUG,
|
|
@@ -3592,8 +3592,8 @@ async function runDoctorCommand(filter) {
|
|
|
3592
3592
|
console.log(`Logs Dir: ${chalk.blue(configuration.logsDir)}`);
|
|
3593
3593
|
console.log(chalk.bold("\n\u{1F30D} Environment Variables"));
|
|
3594
3594
|
const env = getEnvironmentInfo();
|
|
3595
|
-
console.log(`
|
|
3596
|
-
console.log(`
|
|
3595
|
+
console.log(`ZENFLO_HOME_DIR: ${env.ZENFLO_HOME_DIR ? chalk.green(env.ZENFLO_HOME_DIR) : chalk.gray("not set")}`);
|
|
3596
|
+
console.log(`ZENFLO_SERVER_URL: ${env.ZENFLO_SERVER_URL ? chalk.green(env.ZENFLO_SERVER_URL) : chalk.gray("not set")}`);
|
|
3597
3597
|
console.log(`DANGEROUSLY_LOG_TO_SERVER: ${env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING ? chalk.yellow("ENABLED") : chalk.gray("not set")}`);
|
|
3598
3598
|
console.log(`DEBUG: ${env.DEBUG ? chalk.green(env.DEBUG) : chalk.gray("not set")}`);
|
|
3599
3599
|
console.log(`NODE_ENV: ${env.NODE_ENV ? chalk.green(env.NODE_ENV) : chalk.gray("not set")}`);
|
|
@@ -5834,7 +5834,7 @@ async function handleConnectVendor(vendor, displayName) {
|
|
|
5834
5834
|
return;
|
|
5835
5835
|
} else if (subcommand === "codex") {
|
|
5836
5836
|
try {
|
|
5837
|
-
const { runCodex } = await import('./runCodex-
|
|
5837
|
+
const { runCodex } = await import('./runCodex-DrAbIuHU.mjs');
|
|
5838
5838
|
let startedBy = void 0;
|
|
5839
5839
|
for (let i = 1; i < args.length; i++) {
|
|
5840
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,12 +203,12 @@ class Configuration {
|
|
|
203
203
|
isExperimentalEnabled;
|
|
204
204
|
disableCaffeinate;
|
|
205
205
|
constructor() {
|
|
206
|
-
this.serverUrl = process.env.
|
|
207
|
-
this.webappUrl = process.env.
|
|
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.
|
|
211
|
-
const expandedPath = process.env.
|
|
210
|
+
if (process.env.ZENFLO_HOME_DIR) {
|
|
211
|
+
const expandedPath = process.env.ZENFLO_HOME_DIR.replace(/^~/, os.homedir());
|
|
212
212
|
this.happyHomeDir = expandedPath;
|
|
213
213
|
} else {
|
|
214
214
|
this.happyHomeDir = node_path.join(os.homedir(), ".happy");
|
|
@@ -563,8 +563,8 @@ function getSessionLogPath() {
|
|
|
563
563
|
class Logger {
|
|
564
564
|
constructor(logFilePath = getSessionLogPath()) {
|
|
565
565
|
this.logFilePath = logFilePath;
|
|
566
|
-
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && process.env.
|
|
567
|
-
this.dangerouslyUnencryptedServerLoggingUrl = process.env.
|
|
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;
|
|
568
568
|
console.log(chalk.yellow("[REMOTE LOGGING] Sending logs to server for AI debugging"));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
@@ -1019,7 +1019,7 @@ class RpcHandlerManager {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
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-
|
|
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))));
|
|
1023
1023
|
function projectPath() {
|
|
1024
1024
|
const path$1 = path.resolve(__dirname$1, "..");
|
|
1025
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,12 +182,12 @@ class Configuration {
|
|
|
182
182
|
isExperimentalEnabled;
|
|
183
183
|
disableCaffeinate;
|
|
184
184
|
constructor() {
|
|
185
|
-
this.serverUrl = process.env.
|
|
186
|
-
this.webappUrl = process.env.
|
|
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.
|
|
190
|
-
const expandedPath = process.env.
|
|
189
|
+
if (process.env.ZENFLO_HOME_DIR) {
|
|
190
|
+
const expandedPath = process.env.ZENFLO_HOME_DIR.replace(/^~/, homedir());
|
|
191
191
|
this.happyHomeDir = expandedPath;
|
|
192
192
|
} else {
|
|
193
193
|
this.happyHomeDir = join(homedir(), ".happy");
|
|
@@ -542,8 +542,8 @@ function getSessionLogPath() {
|
|
|
542
542
|
class Logger {
|
|
543
543
|
constructor(logFilePath = getSessionLogPath()) {
|
|
544
544
|
this.logFilePath = logFilePath;
|
|
545
|
-
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING && process.env.
|
|
546
|
-
this.dangerouslyUnencryptedServerLoggingUrl = process.env.
|
|
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;
|
|
547
547
|
console.log(chalk.yellow("[REMOTE LOGGING] Sending logs to server for AI debugging"));
|
|
548
548
|
}
|
|
549
549
|
}
|