Files
log/readme.md
2026-01-16 13:01:24 +09:00

53 lines
940 B
Markdown

# ailog
## config
```sh
$ ls public/
config.json
networks.json
client-metadata.json
```
## preview
```sh
$ npm run dev
```
## content generate
speed up by using local cache
```sh
$ npm run fetch # API download -> content/${did}/...
$ npm run generate # content html -> dist/
$ npm run preview # dist/ preview server
```
```sh
content/
└── did:plc:uqzpqmrjnptsxezjx4xuh2mn/
├── profile.json
└── ai.syui.log.post/
└── 3mch5zca4nj2h.json
```
## translate
```sh
$ cd rust/
$ cargo build --release
$ ./target/release/ailog
$ cat .env.example
AILOG_DIR=~/ai/log
TRANSLATE_URL=http://127.0.0.1:1234/v1
TRANSLATE_MODEL=plamo-2-translate
```
```sh
$ ailog l syui.ai -p ${PASSWORD} -s bsky.social
$ ailog t ./content/did:plc:uqzpqmrjnptsxezjx4xuh2mn/ai.syui.log.post -f ja -l en
$ ailog s ./content/did:plc:uqzpqmrjnptsxezjx4xuh2mn/ai.syui.log.post/3mch5zca4nj2h.json -c ai.syui.log.post
```