- Updated logging system to use Pino for structured logging, including session-specific loggers. - Refactored project structure in CLAUDE.md for better organization and clarity. - Added new build scripts and commands in README.md for easier usage. - Improved error handling and logging in core components and Telegram adapter. - Introduced session log retention and cleanup functionality. - Updated package.json and pnpm-lock.yaml to include new logging dependencies.
27 lines
455 B
TypeScript
27 lines
455 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
cli: 'src/cli.ts',
|
|
index: 'src/index.ts',
|
|
},
|
|
format: ['esm'],
|
|
target: 'node20',
|
|
platform: 'node',
|
|
splitting: true,
|
|
sourcemap: true,
|
|
dts: true,
|
|
clean: true,
|
|
outDir: 'dist-publish/dist',
|
|
external: [
|
|
'grammy',
|
|
'zod',
|
|
'nanoid',
|
|
'@agentclientprotocol/sdk',
|
|
'@inquirer/prompts',
|
|
'pino',
|
|
'pino-pretty',
|
|
'pino-roll',
|
|
],
|
|
})
|