Files
openclaw/tsdown.config.ts
Tarun Sukhani e65d1deedd Sync adabot changes on top of origin/main
Includes:
- memory-neo4j: four-phase sleep cycle (dedup, decay, extraction, cleanup)
- memory-neo4j: full plugin implementation with hybrid search
- memory-lancedb: updates and benchmarks
- OpenSpec workflow skills and commands
- Session memory hooks
- Various CLI and config improvements

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-16 17:56:38 +08:00

71 lines
1.3 KiB
TypeScript

import { readFileSync } from "node:fs";
import { defineConfig } from "tsdown";
const pkg = JSON.parse(readFileSync("./package.json", "utf-8"));
const env = {
NODE_ENV: "production",
};
const define = {
__OPENCLAW_VERSION__: JSON.stringify(pkg.version),
};
export default defineConfig([
{
entry: "src/index.ts",
env,
define,
fixedExtension: false,
platform: "node",
},
{
entry: "src/entry.ts",
env,
define,
fixedExtension: false,
platform: "node",
},
{
// Ensure this module is bundled as an entry so legacy CLI shims can resolve its exports.
entry: "src/cli/daemon-cli.ts",
env,
fixedExtension: false,
platform: "node",
},
{
entry: "src/infra/warning-filter.ts",
env,
fixedExtension: false,
platform: "node",
},
{
entry: "src/plugin-sdk/index.ts",
outDir: "dist/plugin-sdk",
env,
define,
fixedExtension: false,
platform: "node",
},
{
entry: "src/plugin-sdk/account-id.ts",
outDir: "dist/plugin-sdk",
env,
fixedExtension: false,
platform: "node",
},
{
entry: "src/extensionAPI.ts",
env,
define,
fixedExtension: false,
platform: "node",
},
{
entry: ["src/hooks/bundled/*/handler.ts", "src/hooks/llm-slug-generator.ts"],
env,
fixedExtension: false,
platform: "node",
},
]);