@agent-native/scheduling

中文文档
0.2.58发布于 2026/11/13MITES Module构建来源已验证近 30 天下载 1.7万

Scheduling primitives for agent-native apps — event types, availability, bookings, team scheduling, workflows, and routing forms.

原始使用文档
文档目录5 节
  1. Install
  2. Compose
  3. Package lifecycle
  4. Docs for your AI
  5. Eject

@agent-native/scheduling

Scheduling primitives for agent-native apps.

Scheduling is a Toolkit capability module installed on demand. It lives in its own npm package so apps only take the domain model, actions, UI, and lifecycle metadata they need.

Powers the calendar template and custom scheduling surfaces. Provides:

  • Drizzle schemas — event types, schedules, availability rules, bookings, teams, workflows, routing forms
  • Pure helpers — slot computation (DST-safe), availability rule evaluation, round-robin assignment, recurring event expansion
  • Server layer — DB repos, availability engine, booking service, pluggable calendar/video providers
  • Actions — defineAction modules consumed as agent tools + HTTP endpoints
  • React primitives — headless hooks (useSlots, useBookingFlow, useTimezone) + opt-in styled components
  • AI-readable docs — llms.txt bundle and skill files for the agent

Install

pnpm add @agent-native/scheduling

Peer-depends on @agent-native/core, drizzle-orm, and (optionally) react.

Compose

Template's server/db/schema.ts:

export * from "@agent-native/scheduling/schema";

Template's actions/create-booking.ts:

export { default } from "@agent-native/scheduling/actions/create-booking";

Override by replacing the stub body with a full defineAction(...).

Package lifecycle

Scheduling publishes a static, versioned agent-native.package.json. Inspect its contributions without executing package code, preview installation, or eject the published source into a local workspace package:

agent-native package inspect @agent-native/scheduling --json
agent-native package add @agent-native/scheduling --apply
agent-native package eject @agent-native/scheduling --apply

Add and eject are dry-run unless --apply is explicit. The CLI refuses file collisions and unsupported layouts and rolls back if dependency installation fails.

Docs for your AI

Expose the package docs to your AI coding tool via llms.txt:

node_modules/@agent-native/scheduling/docs/llms.txt
node_modules/@agent-native/scheduling/docs/llms-full.txt

Or fetch over HTTP when deployed:

/docs/scheduling.md
/docs/scheduling-full.md

Eject

For full customization, eject the package source into your repo (v0.2). For now, copy files you want to own into packages/scheduling-local/ and swap the dependency manually. See docs/eject.md.

版本与发布记录

@agent-native/scheduling 共发布 419 个版本,首次发布于 2026/04/30;过去 12 个月发布了 419 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.58latest2026/11/13今天
0.2.572026/11/13今天
0.2.57-nightly-202611121825392026/11/13今天
0.2.57-nightly-202611112125002026/11/121 天前
0.2.57-nightly-202611110924092026/11/112 天前
0.2.57-nightly-202611110632122026/11/112 天前

其他发布通道:dev-embed-chat-beta-20261025 → 0.2.46-embed-chat-beta-20261025-20261025212203,dev-beta-dispatch-embed-01a15dc9 → 0.2.46-beta-dispatch-embed-01a15dc9-20261027050558,dev-embedded-chat-fix-20261027 → 0.2.46-embedded-chat-fix-20261027-20261027063754,dev-same-host-mcp-20261027 → 0.2.46-same-host-mcp-20261027-20261027081850,dev-chat-origin-secure-20261027 → 0.2.46-chat-origin-secure-20261027-20261027102654,dev-embedded-chat-20261027 → 0.2.46-embedded-chat-20261027-20261027145752。

关于 @agent-native/scheduling 的常见问题

@agent-native/scheduling 是什么?

Scheduling primitives for agent-native apps — event types, availability, bookings, team scheduling, workflows, and routing forms.

如何安装 @agent-native/scheduling?

在项目目录运行 npm install @agent-native/scheduling,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:drizzle-orm(>=0.45)、@agent-native/core(>=0.228.1-0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@agent-native/scheduling 支持 TypeScript 吗?

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

@agent-native/scheduling 支持 ESM 还是 CommonJS?

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

@agent-native/scheduling 可以商用吗?

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

@agent-native/scheduling 的下载量有多少?

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

@agent-native/scheduling 还在维护吗?

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