@archildata/eve

中文文档
0.0.23发布于 2026/11/06MITTypeScriptESM + CJS构建来源已验证近 30 天下载 6700

Archil filesystem adapter for eve

原始使用文档
文档目录3 节
  1. Install
  2. Disk Tools
  3. Sandbox Backend

@archildata/eve

Archil integration for eve.

This package provides different functionality depending on your use case.

If you want to provide your agent with access to existing data in an Archil disk use createDiskTools, an eve toolset factory exposing standard filesystem capabilities as tools.

If you want a sandbox backed by an Archil disk and serverless execution use archilBackend.

Install

npm install disk @archildata/eve

disk is a peer dependency. The Archil client reads standard Archil environment configuration, including ARCHIL_API_KEY and ARCHIL_REGION, unless you pass an existing Archil client.

Disk Tools

Use createDiskTools from an eve agent/tools/*.ts file when the agent should have direct tools for an Archil disk or multi-disk workspace:

// agent/tools/filesystem.ts
import * as archil from "disk";
import { createDiskTools } from "@archildata/eve";

const disk = await archil.getDisk(process.env.ARCHIL_DISK_ID!);
// or mount multiple disks as a workspace...
const disk = archil.workspace({
  source: { disk: await archil.getDisk(process.env.SOURCE_DISK_ID!), readOnly: true },
  reports: await archil.getDisk(process.env.REPORTS_DISK_ID!),
});

export default createDiskTools(disk);

createDiskTools returns an eve defineDynamic(...) export that is ready to mount from one tools file.

Sandbox Backend

Use archilBackend from an eve sandbox definition:

// agent/sandbox/sandbox.ts
import { archilBackend } from "@archildata/eve";
import { defineSandbox } from "eve/sandbox";

export default defineSandbox({
  backend: archilBackend({
    disk: process.env.ARCHIL_DISK_ID!,
  }),
});

Set ARCHIL_DISK_ID to the ID of the Archil disk that should back the sandbox.

archilBackend accepts:

  • disk: Archil disk ID.
  • client: Existing Archil client. Omit this to create one from environment configuration.
  • rootPrefix: Namespace for this eve app on the disk. Defaults to .eve/sandbox.
  • queueMs: Archil write queue timeout. Defaults to 5000.

Use eve's normal bootstrap hook when the sandbox should start with project-specific files or tools:

export default defineSandbox({
  backend: archilBackend({
    disk: process.env.ARCHIL_DISK_ID!,
  }),
  revalidationKey: () => "python-tools-v1",
  async bootstrap({ use }) {
    const sandbox = await use();
    await sandbox.run({ command: "mkdir -p .cache && python --version" });
  },
});

版本与发布记录

@archildata/eve 共发布 24 个版本,首次发布于 2026/07/07;过去 12 个月发布了 24 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.0.23latest2026/11/061 天前
0.0.222026/11/034 天前
0.0.212026/10/2811 天前
0.0.202026/10/1524 天前
0.0.192026/10/0930 天前
0.0.182026/10/031 个月前

关于 @archildata/eve 的常见问题

@archildata/eve 是什么?

Archil filesystem adapter for eve

如何安装 @archildata/eve?

在项目目录运行 npm install @archildata/eve,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:eve(>=0.20.0)、disk(1.12.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@archildata/eve 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@archildata/eve 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@archildata/eve 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@archildata/eve 可以商用吗?

@archildata/eve 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@archildata/eve 的下载量有多少?

根据 npm 官方下载统计,@archildata/eve 在 2026/10/07 – 2026/11/05 这 30 天内被下载 6,700 次,日均约 223 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@archildata/eve 还在维护吗?

最新版本 0.0.23 发布于 2026/11/06(1 天前);至今共发布 24 个版本,其中过去 12 个月发布了 24 个;首次发布于 2026/07/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。