Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
88 lines (58 loc) · 1.44 KB
/
Copy pathMakefile
File metadata and controls
88 lines (58 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.PHONY: prepare build typecheck lint lint-fix lint-pkg sherif test test-watch test-coverage clean changeset version publish release dev vis rust-build rust-check rust-test
## Setup
prepare:
bun install
## Build
build:
bun run build
## Quality
typecheck:
bun run typecheck
lint:
bun run lint
lint-fix:
bun run lint:fix
sherif:
bun run sherif
check-nix-workspace:
bun run check:nix-workspace
lint-pkg:
bun run lint:pkg
## Test
test:
bun run test
test-watch:
bun run test:watch
test-coverage:
bun run test:coverage
## Clean
clean:
bun run clean
## Release
changeset:
bun run changeset
version:
bun run version
publish:
bun run publish
release: version publish
## Development
dev:
bun run dev:cli
## Rust binaries
# The `cli` feature gates the kimi-agent-cli binary (it links the napi
# bindings, which only resolve inside a Node process). Every target below
# passes it so the binary is rebuilt rather than left stale.
rust-build:
cd packages/kimi-agent && cargo build --release --features cli
rust-check:
cd packages/kimi-agent && cargo check --all-targets --features cli
# `cargo test --features cli` builds the debug binary the integration tests
# spawn; `find_binary` picks the newest artifact, so a bare `cargo test`
# would otherwise exercise whatever was left in target/.
rust-test:
cd packages/kimi-agent && cargo test --features cli
cd packages/kimi-agent && cargo run --features cli -- --test
## vis
vis:
bun run vis