@aspectlylabs/mikka

中文文档
0.0.51发布于 2026/10/31AGPL-3.0-onlyES Module构建来源已验证

Local Mikka daemon: runs agents through the user's own CLIs

原始使用文档

Mikka daemon

The daemon connects your computer to Mikka and runs threads with your installed Claude Code or Codex. Node.js 24 or newer and Git are required. Sign in to the coding CLI and make sure your local Git credentials can read the repositories you want to use.

The release candidate is a single @aspectlylabs/mikka package containing the mikka command and its daemon subcommands. The source workspace stays private; pnpm --filter @mikka/daemon build produces the package with the private protocol bundled. The npm organization and trusted publisher must be verified before publication.

Once the package has been published, install it once and start the daemon:

npm install -g @aspectlylabs/mikka
mikka daemon login
mikka daemon

Login prints a browser confirmation link and a short code. The daemon saves a device credential, never the browser session. The default server is https://app.aspectlylabs.com/mikka. For a Preview or self-hosted server, use the full application URL (including its base path) in both commands:

mikka daemon login --server https://preview.example/mikka
mikka daemon --server https://preview.example/mikka

mikka daemon status reports an already running daemon. Ctrl+C shuts it down. Manual test setup can use mikka daemon login --token <device-token>; keep the token out of screenshots, logs and shell history.

Release candidate

pnpm --filter @mikka/daemon build
export MIKKA_DAEMON_DIST_DIR=/absolute/path/printed/by/the/build
pnpm --filter @mikka/daemon test:package
npm pack "$MIKKA_DAEMON_DIST_DIR"

Each build writes a new .retained-build-* directory in the source package. Existing builds remain intact. The package test requires that exact directory and retains its .retained-package-test-* installation, tarball and fixture index for inspection. The test daemon still performs its normal lifecycle cleanup inside the new dedicated fixture; previously retained resources are not part of that fixture.

No global tsx or separate @mikka/protocol package is needed. Every push to main publishes through .github/workflows/publish-daemon.yml after daemon checks and the installed-package runtime test pass. The workflow uses npm trusted publishing and provenance; its npm trust configuration must authorize this exact repository and workflow filename.

CI stamps 0.0.<workflow run number + 1> into the source manifest before the build, so the npm package and runtime report the same version. Source commits keep their development version. Re-running a workflow keeps its version and skips publication if npm already records that version from the same commit. CI writes the commit SHA into the published manifest as gitHead; an existing version with absent or different commit metadata stops the release. After publication, CI reads npm metadata back and checks the commit SHA. If npm serves 404 while the published version becomes available, CI checks up to 31 times with 10-second waits. Exhausting that wait reports registry verification as incomplete; it does not claim that npm rejected publication. Releases queue without cancellation (up to GitHub's 100 pending-run limit). An older run can publish under its own build-<version> tag, preserving the newer latest version. Manual dispatch remains available on main and gets a new run version. Running local tests or builds does not publish anything.

test:package installs the actual tarball into a new directory with public registry dependencies, without workspace symlinks or install scripts. Plain Node then runs the installed CLI and bundled mock daemon through a real clone/worktree/verification/commit/push against a disposable local bare origin. It verifies the pushed file and preserves the personal checkout. The test logs the tarball digest; its control plane and model are explicit in-memory fixtures. This is not real Claude Code/Codex, native-helper, live GitHub App or production device-authorization acceptance.

版本与发布记录

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

版本发布日期距今
0.0.51latest2026/10/312 天前
0.0.492026/10/313 天前
0.0.482026/10/313 天前
0.0.472026/10/313 天前
0.0.462026/10/313 天前
0.0.452026/10/313 天前

关于 @aspectlylabs/mikka 的常见问题

@aspectlylabs/mikka 是什么?

本地Mikka守护进程:通过用户自己的cli运行代理

如何安装 @aspectlylabs/mikka?

在项目目录运行 npm install @aspectlylabs/mikka,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mikka,可以用 npx mikka 直接运行。

@aspectlylabs/mikka 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aspectlylabs__mikka 是否存在。

@aspectlylabs/mikka 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@aspectlylabs/mikka 需要什么版本的 Node.js?

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

@aspectlylabs/mikka 可以商用吗?

@aspectlylabs/mikka 使用 AGPL-3.0-only 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@aspectlylabs/mikka 还在维护吗?

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