Lines 1-23javascript
1import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
2import os$1, { homedir } from 'node:os';
3import { randomUUID, randomBytes, createHash as createHash$1 } from 'node:crypto';
4import { l as logger, g as getProjectPath, p as projectPath, i as initializeSandbox, w as wrapCommand, I as InvalidateSync, R as RawJSONLinesSchema, f as delay, h as AsyncLock, c as configuration, d as packageJson, e as encodeBase64, j as encodeBase64Url, k as decodeBase64, m as getLocalHappyAgentCredentialPath, r as readLocalHappyAgentCredentials, n as decryptWithDataKey, o as decryptLegacy, q as decrypt, s as hasLocalHappyAgentAuth, t as detectResumeSupport, u as detectCLIAvailability, A as ApiClient, b as connectionState, v as startOfflineReconnection, C as CodexAppServerClient, x as getLat ...
5import spawn$1, { spawn } from 'cross-spawn';
6import path, { join, resolve, relative, isAbsolute, sep, basename, dirname } from 'node:path';
7import { createInterface } from 'node:readline';
8import { existsSync, readFileSync, readdirSync, statSync, mkdirSync, writeFileSync, unlinkSync, rmSync, chmodSync as chmodSync$1 } from 'node:fs';
9import { readFile, mkdir, chmod, writeFile, readdir } from 'node:fs/promises';
10import fs, { watch, access } from 'fs/promises';
11import { useStdout, useInput, Box, Text, render } from 'ink';
12import React, { useState, useRef, useEffect, useCallback } from 'react';
13import { query as query$1, AbortError } from '@anthropic-ai/claude-agent-sdk';
14import axios, { AxiosError } from 'axios';
16import 'socket.io-client';
17import tweetnacl from 'tweetnacl';
18import os, { homedir as homedir$1 } from 'os';
19import { spawn as spawn$2, execSync as execSync$1, exec } from 'child_process';
20import { createEnvelope } from '@slopus/happy-wire';
HighCross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/index-Cv5msKie.mjsView on unpkg · L3 MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/index-Cv5msKie.mjsView on unpkg · L3 21import { createId } from '@paralleldrive/cuid2';
22import { statSync as statSync$1, existsSync as existsSync$1, writeFileSync as writeFileSync$1, chmodSync, unlinkSync as unlinkSync$1, mkdirSync as mkdirSync$1 } from 'fs';
23import { join as join$1 } from 'path';
Long lines were clipped for display.