公开 API 索引
按真实发布包、公开入口、类型声明与平台边界查找 API。
此索引使用已核实的正规 npm 精确产物,并以源码 549b987 审计公开符号。入口链接指向固定 revision 的声明;函数签名、类型和行为以对应声明与专题文档为准。
完整 type/value 清单、实际 exports、peer、tarball integrity 与发布时间见 机器可读清单. 安装 记录一致的版本组合。普通服务方法不会自动成为 CLI、Web 或 MCP 操作。
@lenso/core
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/core | ConfigError, ConfigSourceError, DiagnosticError, bindConfig, defineApp, definePlugin, definePluginConfig, lifecycleFailure, preflightConfigs, resolveConfig, startApp, validatePlugins, valuesSource |
@lenso/core/plugin | defineApp, definePlugin |
@lenso/core/browser | defineApp, definePlugin |
@lenso/core/config | ConfigError, ConfigSourceError, bindConfig, definePluginConfig, preflightConfigs, resolveConfig, valuesSource |
@lenso/core/config/env | envSource |
@lenso/core/config/file | jsonFileSource |
@lenso/engine
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/engine | EngineError, EngineSession, build, createDevSupervisor, createEngineSession, defaultEngineOwner, defaultEnginePlugins, defineEngineConfig, defineEnginePlugin, defineOperation, describePluginConfig, diagnostic, discover, generate, readApplication, startEngineDevCycle, withEngine |
@lenso/engine/authoring | defineEngineConfig, defineEnginePlugin |
@lenso/engine/application | readApplication |
@lenso/engine/operations | boundedJson, defineOperation, describeOperation, executeOperation, invokeValidatedOperation, redactOperationDescription, resolveOperation, safeInputSchema, validateOperationInput, validateOperations |
@lenso/engine/diagnostics | EngineError, diagnostic, environmentSecrets, redact, stableJson |
@lenso/engine/dev-ready | isDevReadyMessage, reportDevReady |
@lenso/engine/dev-worker | Engine 自有 worker 模块,无命名值导出 |
@lenso/cli
已核实发布版: 0.19.0 · 源码版本: 0.19.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/cli | CliError, call, defineOperation, dev, diagnostic, inspect, invoke |
@lenso/web
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/web | createWebPlugin |
@lenso/web/client | createClient |
@lenso/web/bun | createBunListenerPlugin |
@lenso/auth
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/auth | AuthConfigurationError, AuthError, allPolicies, allRequirements, audience, authenticatedWithin, authoritativeSession, createAuth, defineSource, realm, requireAssurance, sessionCreatedWithin |
@lenso/auth/plugin | createAuthPlugin |
@lenso/auth/fetch | authErrorResponse, bearerEvidence, headersEvidence, requireSameOrigin |
@lenso/auth/orpc | optionalAuth, requiredAuth |
@lenso/auth/session-source | sessionSource |
@lenso/auth/sessions | createManagedSessions, sessionLifetime |
@lenso/auth/drizzle/pg | postgresSessionStore |
@lenso/auth/drizzle/sqlite | sqliteSessionStore, sqliteStore |
@lenso/auth/drizzle/d1 | d1SessionStore |
@lenso/auth/drizzle/schema-pg | authSessions |
@lenso/auth/drizzle/schema-sqlite | authSessions |
@lenso/auth/migrations/* | SQL 迁移资产通配入口 |
@lenso/db
已核实发布版: 0.1.1 · 源码版本: 0.1.1
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/db | createDrizzlePlugin |
@lenso/db/bun-sql | createBunSqlPlugin |
@lenso/db/bun-sqlite | createBunSqlitePlugin |
@lenso/db/d1 | createD1Plugin |
@lenso/workers
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/workers | createBindingsPlugin, createWorkerHandler |
@lenso/storage
已核实发布版: 0.1.1 · 源码版本: 0.1.1
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/storage | StorageError, createStoragePlugin, unsupportedSigning, validateContentType, validateExpiry, validateKey, validateList, validateRange |
@lenso/storage/local | createLocalStoragePlugin |
@lenso/storage/s3 | createS3StoragePlugin |
@lenso/storage/r2 | createR2StoragePlugin |
@lenso/storage/files | createFilesPlugin |
@lenso/storage/sqlite | createSqliteFileQueries, fileSchema, files |
@lenso/storage/postgres | createPostgresFileQueries, fileSchema, files |
@lenso/storage/fetch | createFileDownloadHandler, createFileUploadHandler |
@lenso/tasks
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/tasks | INPUT_LIMIT_BYTES, RESULT_LIMIT_BYTES, TaskQueueError, createTaskPlugin, createTaskQueue, defineTask |
@lenso/tasks/postgres | createPostgresTaskProvider, migratePostgresTaskQueue |
@lenso/log
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/log | createLogger |
@lenso/otel
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/otel | ROOT_CONTEXT, SpanKind, SpanStatusCode, context, metrics, propagation, trace |
@lenso/otel/browser | ROOT_CONTEXT, SpanKind, SpanStatusCode, context, metrics, propagation, trace |
@lenso/otel/bun | bootstrapTelemetry |
@lenso/otel/orpc | createORPCInstrumentation |
@lenso/otel/workers | bootstrapWorkerTracing |
@lenso/mcp
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/mcp | serveStdio |
@lenso/manage
已核实发布版: 0.2.0 · 源码版本: 0.2.0
| 公开入口 | 导出函数 / 值或资产 |
|---|---|
@lenso/manage | bindManageOperation, createAgentTools, createManageAdapter, defineManage, describeManage, selectManageOperations |
@lenso/manage/agent | createAgentTools |
@lenso/manage/orpc | createManageRouter |
已发布、实验与尚未提供的边界
- 上述精确包均已发布,公开入口与符号已经按真实 tarball 核对;这不授予任何应用级授权或部署权限。
- oRPC v2 固定预发行 2.0.0-beta.42;客户端与服务端必须匹配。Workers 原生 tracing 入口是独立实验路径,不能假设与 Bun OTel SDK 行为相同。
- Manage 已提供有限操作 adapter、agent 工具与可选 oRPC router;没有内置 Console UI、持久审批/audit、调度、回滚或自动配置读写。可信 binding、operation admission 与共享服务对象策略缺一不可。
- 配置中心、订阅/hot reload、Observe query CLI 尚未提供。配置来源可替换,底层解析可手动使用,不要求 Web。
- 当前持久队列为 PostgreSQL。D1/R2 是借用的平台 binding;Bun filesystem、DB client 与 Engine 不属于 Worker 运行时图。
- Browser 入口不导出 startApp;服务端资源、secret 与身份适配器不进入前端 bundle。Storage/Tasks 没有公开 migration 子路径,不猜测内部 import。