registry  /  @huicai/cli  /  2026.711.0

@huicai/cli@2026.711.0

在终端运行的智能体 CLI:以 HuiCai_AI 平台的 OpenAI 兼容 /v1 为模型后端,在用户本机执行文件/命令工具。

Static Scan Results

scanned 5h ago · by rust-scanner

Static analysis completed at 65.0% confidence. No malicious behavior was detected; 12 low-signal pattern(s) were surfaced and cleared.

Static reason
No blocking static signals were detected.

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 48 file(s), 372 KB of source, external domains: a.com, huicai-ai.sjht.com

Source & flagged code

5 flagged · loading source
src/device.jsView file
5L6: import { spawn } from 'node:child_process'; L7: import { c } from './colors.js';
High
Child Process

Package source references child process execution.

src/device.jsView on unpkg · L5
10function openBrowser(url) { L11: if (!url || process.env.HUICAI_NO_BROWSER) return; L12: const platform = process.platform; ... L15: try { L16: const child = spawn(cmd, args, { stdio: 'ignore', detached: true }); L17: child.on('error', () => {}); ... L24: async function postJson(baseUrl, path, body) { L25: const res = await fetch(`${baseUrl}${path}`, { L26: method: 'POST',
High
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

src/device.jsView on unpkg · L10
src/hooks.jsView file
107const r = isWin L108: ? spawnSync(process.env.COMSPEC || 'cmd.exe', ['/d', '/s', '/c', hook.command], L109: { cwd: env.HUICAI_CWD, env, input, encoding: 'utf8', timeout: hook.timeout, maxBuffer: 4 * 1024 * 1024, windowsVerbatimArguments: true })
High
Shell

Package source references shell execution.

src/hooks.jsView on unpkg · L107
src/memory.jsView file
1// 长期记忆(跨会话):按项目目录归属,存于 ~/.huicai/memory/<hash>.md。 L2: // 模型经内置 memory_write 工具主动记录「值得跨会话记住的事实」(用户偏好、项目结论、约定等),
Low
Weak Crypto

Package source references weak cryptographic algorithms.

src/memory.jsView on unpkg · L1
src/schedule.jsView file
1// /schedule:管理定时任务(持久化到 ~/.huicai/schedule.json),并生成交给系统 cron 运行的 crontab 行。 L2: // 不自带调度器——把定时职责交给成熟的系统 cron;本模块负责登记 + 生成可粘贴的 crontab 条目。 ... L7: L8: export const SCHEDULE_FILE = path.join(os.homedir(), '.huicai', 'schedule.json'); L9: ... L11: try { L12: const j = JSON.parse(fs.readFileSync(SCHEDULE_FILE, 'utf8')); L13: return Array.isArray(j) ? j : [];
Medium
Install Persistence

Source writes installer persistence such as shell profile or service configuration.

src/schedule.jsView on unpkg · L1

Findings

3 High3 Medium6 Low
HighChild Processsrc/device.js
HighShellsrc/hooks.js
HighSame File Env Network Executionsrc/device.js
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencesrc/schedule.js
LowNon Install Lifecycle Scripts
LowScripts Present
LowWeak Cryptosrc/memory.js
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings