Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
d4f5723
fix(upload): skip unsupported files inside ZIP instead of rejecting e…
tybot02 Sep 5, 2026
53354c2
fix(derive): hash-based fallback slug for pure CJK topics
tybot02 Sep 7, 2026
c0f0d14
fix(worker): don't burn retry attempts on circuit breaker rejection
tybot02 Sep 7, 2026
0009343
docs(plan): add technical plan - derive knowledge reorganization
tybot02 Sep 7, 2026
d16cbe7
feat(derive): add data structures and entity index builder (Feature: …
tybot02 Sep 7, 2026
ea028f0
feat(classify): add topic-aware classify prompt and function (Feature…
tybot02 Sep 7, 2026
52e19d3
feat(derive): add entity name resolution with LLM canonicalization (F…
tybot02 Sep 7, 2026
a0a2fab
feat(derive): add aggregation planning and reorganize orchestrator (F…
tybot02 Sep 7, 2026
1708fad
feat(derive): wire reorganize into compile_kb and derive_kb (Feature:…
tybot02 Sep 7, 2026
4f0f54e
docs(plan): add technical plan - 2026-09-07-derive-split-oversized-merge
tybot02 Sep 7, 2026
9090a07
feat(merge): add budget estimation helpers (Feature: p2-feat-001)
tybot02 Sep 7, 2026
c439d3e
feat(compile): add batch packing and iterative merge (Feature: p2-fea…
tybot02 Sep 7, 2026
c0c8d8b
feat(compile): wire batch splitting into _process_article (Feature: p…
tybot02 Sep 7, 2026
298772b
test(compile): add batch splitting tests (Feature: p2-feat-004)
tybot02 Sep 7, 2026
54179c4
docs(plan): add technical plan - 2026-09-07-derive-sub-article-split
tybot02 Sep 7, 2026
08b382f
feat(compile): add sub-article threshold and helpers (Feature: p3-fea…
tybot02 Sep 7, 2026
4218de5
feat(compile): add sub-article support to _merge_batch_split (Feature…
tybot02 Sep 7, 2026
7f12424
feat(compile): wire sub-article splitting into _process_article (Feat…
tybot02 Sep 7, 2026
75e88ec
test(compile): add sub-article splitting tests (Feature: p3-feat-004)
tybot02 Sep 7, 2026
63d1b19
fix(compile): cap per-batch budget to prevent LLM timeout (Feature: p…
tybot02 Sep 8, 2026
79c26bf
fix(compile): lower _MAX_BATCH_BUDGET to 20K to prevent merge-path ti…
tybot02 Sep 8, 2026
8bbec08
feat(derive): add reorganize flag and derive-flow diagrams
tybot02 Sep 8, 2026
485d5bd
docs(plan): add technical plan - 20260908-derive-reorganize-config-v2
tybot02 Sep 8, 2026
af7bda7
feat(daemon): read reorganize from payload instead of hardcoding (Fea…
tybot02 Sep 8, 2026
81a50b9
feat(config): add DeriveConf with reorganize setting (Feature: p5-fea…
tybot02 Sep 8, 2026
889e6ab
feat(derive): thread reorganize config through bridge and runner (Fea…
tybot02 Sep 8, 2026
3def7f0
test(daemon): add reorganize parameter tests for _handle_derive (Feat…
tybot02 Sep 8, 2026
12d0837
test(derive): add Go tests for reorganize config, bridge, and runner …
tybot02 Sep 8, 2026
9dda3a3
docs(plan): normalize date format to yyyy-mm-dd
tybot02 Sep 8, 2026
a52b111
docs(plan): add technical plan - 2026-09-09-batch-parallel-write
tybot02 Sep 8, 2026
f29f276
feat(compile): add batch-parallel infrastructure (Feature: p6-feat-001)
tybot02 Sep 8, 2026
92772ea
feat(compile): implement _run_chain for batch-parallel chains (Featur…
tybot02 Sep 8, 2026
8878881
feat(compile): refactor _merge_batch_split to three-phase parallel st…
tybot02 Sep 8, 2026
2833dcc
test(compile): add comprehensive batch-parallel tests (Feature: p6-fe…
tybot02 Sep 8, 2026
0b5bf45
fix(derive): auto-deduplicate slug on conflict instead of erroring
tybot02 Sep 8, 2026
d1eb42d
docs(plan): add technical plan - 2026-09-09-parallel-reorg
tybot02 Sep 9, 2026
29c8602
feat(reorganize): add aggregate-plan-feedback prompt template (Featur…
tybot02 Sep 9, 2026
74ce8b6
feat(compile): add batch_parallel_threshold for serial fallback (Feat…
tybot02 Sep 9, 2026
ac8b0b0
feat(reorganize): add two-round feedback to plan_aggregation (Feature…
tybot02 Sep 9, 2026
a2970a2
docs(plan): add technical plan - 2026-09-09-builds-page-redesign
tybot02 Sep 9, 2026
fa1f675
feat(i18n): add Builds page i18n strings (Feature: p8-feat-007)
tybot02 Sep 9, 2026
694d30e
feat(web): extend derived API client and add build types (Feature: p8…
tybot02 Sep 9, 2026
e2dcff4
feat(api): add ListDerivedJobsPaged and DeleteDerivedJob endpoints (F…
tybot02 Sep 9, 2026
e2d9f88
feat(web): add shared build components (useAutoPolling, StatusStageBa…
tybot02 Sep 9, 2026
f19e240
feat(web): add DeriveJobsTab and DeriveJobDetailDialog components (Fe…
tybot02 Sep 9, 2026
e07f0ba
feat(web): extract TasksTab and TaskDetailDialog components (Feature:…
tybot02 Sep 9, 2026
48e2d5a
feat(web): add Builds page shell, routing, nav, and simplify DeriveDi…
tybot02 Sep 9, 2026
7f617e8
fix(web): adjust StatsBar tab sizing and DeriveJobsTab column widths
tybot02 Sep 9, 2026
7534f90
fix(web): set appropriate column widths for Builds tables (Feature: c…
tybot02 Sep 9, 2026
f7dd2a1
fix(web): widen Attempts column (Feature: attempts-width)
tybot02 Sep 9, 2026
bb28c85
fix(web): make StatsBar tabs inline instead of full-width
tybot02 Sep 9, 2026
c4c064b
fix(web): add divider and padding around StatsBar
tybot02 Sep 9, 2026
06f442a
fix(web): horizontal layout for tabs and search bar with divider
tybot02 Sep 9, 2026
c3907b0
docs(plan): add technical plan - 2026-09-09-write-phase-early-parallel
tybot02 Sep 9, 2026
ac1dc61
fix(web): remove divider from filter bar
tybot02 Sep 9, 2026
ebb2c71
feat(compile): add batch_parallel_batch_limit config and lower defaul…
tybot02 Sep 9, 2026
2dc810e
feat(compile): add batch-count early break to Phase A and _run_chain …
tybot02 Sep 9, 2026
7594157
fix: Windows-native compatibility for the derive-reorganization branc…
wangdahoo Sep 9, 2026
463d142
docs(plan): add technical plan - 2026-09-09-builds-master-detail.md
tybot02 Sep 9, 2026
d110aa0
feat(api): add AbortSignal support to getTask (Feature: p10-feat-002)
tybot02 Sep 9, 2026
443f9c7
feat(i18n): add Sheet description entries for builds detail (Feature:…
tybot02 Sep 9, 2026
166ebc2
feat(ui): extend Sheet component with close button and SheetDescripti…
tybot02 Sep 9, 2026
3972742
feat(builds): create TaskDetailSheet and DeriveJobDetailSheet (Featur…
tybot02 Sep 9, 2026
efe630a
feat(builds): refactor tabs to use Sheet detail with clickable rows (…
tybot02 Sep 9, 2026
00566e6
refactor(builds): remove obsolete Dialog detail components (Feature: …
tybot02 Sep 9, 2026
680edaa
test(builds): update tests for Sheet components and clickable rows (F…
tybot02 Sep 9, 2026
4754299
docs(plan): add technical plan - 2025-09-10-builds-tab-refactor.md
tybot02 Sep 9, 2026
2d9190b
feat(ui): update StatusStageBadge for partial status and optional sta…
tybot02 Sep 9, 2026
c80db64
feat(i18n): add build job keys and rename tab labels (Feature: p11-fe…
tybot02 Sep 9, 2026
5c0684b
feat(api): create build jobs API client (Feature: p11-feat-007)
tybot02 Sep 9, 2026
ec1b907
feat(store): add BuildJob model and BuildJobStore interface (Feature:…
tybot02 Sep 9, 2026
d9fcc3c
feat(ui): create BuildJobDetailSheet component (Feature: p11-feat-011)
tybot02 Sep 9, 2026
3d0f27b
feat(ui): create BuildJobsTab component (Feature: p11-feat-010)
tybot02 Sep 9, 2026
6f0dcc7
feat(store): implement SQLite build_jobs table and store methods (Fea…
tybot02 Sep 9, 2026
baeb921
test(store): add build_jobs store tests (Feature: p11-feat-003)
tybot02 Sep 9, 2026
f61582b
feat(api): add build job API handlers and routes (Feature: p11-feat-004)
tybot02 Sep 9, 2026
bd9dd93
feat(ui): update Builds page to use BuildJobsTab (Feature: p11-feat-012)
tybot02 Sep 9, 2026
6ab01a9
feat(api): create BuildJob on submit (Feature: p11-feat-005)
tybot02 Sep 9, 2026
bed2d82
test(builds): update all frontend tests for tab refactor (Feature: p1…
tybot02 Sep 9, 2026
21038c8
test(api): add build job API tests and update submit tests (Feature: …
tybot02 Sep 9, 2026
9ec9478
fix: enable TOC sidebar scrolling when content overflows
tybot02 Sep 10, 2026
0add828
docs(plan): add technical plan - 2026-09-10-chat-kb-switcher
tybot02 Sep 10, 2026
090be63
feat(ui): update Session type, API functions, and KB store (Feature: …
tybot02 Sep 10, 2026
a83f30f
feat(store): add KBSlug to Session model and update SQLite schema (Fe…
tybot02 Sep 10, 2026
15fec22
test(store): update session tests for kb_slug filter (Feature: p12-fe…
tybot02 Sep 10, 2026
b20f099
feat(ui): create ChatKBSelector component (Feature: p12-feat-006)
tybot02 Sep 10, 2026
a78160d
test(api): update session tests for kb_slug support (Feature: p12-fea…
tybot02 Sep 10, 2026
a8c100b
feat(ui): update SessionList and Chat.tsx for KB-scoped sessions (Fea…
tybot02 Sep 10, 2026
5d01622
test(ui): update frontend tests for KB switcher (Feature: p12-feat-008)
tybot02 Sep 10, 2026
adafdec
docs(plan): add technical plan - 2026-09-10-derive-quality-fix.md
tybot02 Sep 10, 2026
468f538
feat(prompts): add language directives to 6 prompts (Feature: p13-fea…
tybot02 Sep 10, 2026
27bccf5
feat(derive): implement multi-round voting in select_by_topic (Featur…
tybot02 Sep 10, 2026
eed6844
test(merge): add regression test for _create_system language directiv…
tybot02 Sep 10, 2026
b68025c
test(derive): add multi-round voting test suite (Feature: p13-feat-003)
tybot02 Sep 10, 2026
02a2e36
feat(derive): propagate filter_rounds through derive_kb, CLI, and dae…
tybot02 Sep 10, 2026
29a0991
fix: make classify tokenizer CJK-aware with character bigrams
tybot02 Sep 10, 2026
e49cc36
fix(derive): wire filter_rounds from TOML config through Go to Python…
tybot02 Sep 10, 2026
5bd4145
test(derive): add filter stability test script from diagnosis
tybot02 Sep 10, 2026
40e732f
docs(plan): add technical plan - 2026-09-10-cr-fixes
tybot02 Sep 10, 2026
3e08dd6
style(api): fix import grouping in session.go (Feature: p14-feat-002)
tybot02 Sep 10, 2026
13a4eea
fix(api): replace log.Printf with structured slog (Feature: p14-feat-…
tybot02 Sep 10, 2026
4487e3b
refactor(ui): remove unused kbSlug prop from SessionList (Feature: p1…
tybot02 Sep 10, 2026
7f00324
refactor(ui): extract shared formatDate utility (Feature: p14-feat-003)
tybot02 Sep 10, 2026
57409bd
refactor(store): extract duplicated status CASE/WHEN SQL to const (Fe…
tybot02 Sep 10, 2026
7616074
refactor(api): embed buildJobDTO in buildJobDetailDTO (Feature: p14-f…
tybot02 Sep 10, 2026
373c90b
refactor(store): extract generic paged query builder (Feature: p14-fe…
tybot02 Sep 10, 2026
35b8302
refactor(ui): extract shared PagedJobTable component (Feature: p14-fe…
tybot02 Sep 10, 2026
6a5283c
docs(plan): add technical plan - 2026-09-10-derive-drawer-article-tas…
tybot02 Sep 10, 2026
37d4ee5
feat(derive): make filter voting threshold configurable via filter_th…
tybot02 Sep 10, 2026
04988b3
feat(i18n): add derive article table keys (Feature: p15-feat-001)
tybot02 Sep 10, 2026
15e1747
feat(ui): create DeriveWikiPreviewSheet component (Feature: p15-feat-…
tybot02 Sep 10, 2026
6892a46
test(ui): add DeriveWikiPreviewSheet tests (Feature: p15-feat-004)
tybot02 Sep 10, 2026
9a508e8
feat(ui): add article table to DeriveJobDetailSheet (Feature: p15-fea…
tybot02 Sep 10, 2026
0a6072c
test(ui): add DeriveJobDetailSheet article table tests (Feature: p15-…
tybot02 Sep 10, 2026
3268136
docs(plan): add UI polish plan - 2026-09-10-builds-ui-polish.md
tybot02 Sep 10, 2026
941fb4b
style(ui): unify column widths to 160px (Feature: p16-feat-002)
tybot02 Sep 10, 2026
4916a9c
feat(ui): add immediate thinking indicator in chat (Feature: p16-feat…
tybot02 Sep 10, 2026
c4c984f
style(ui): fix tab label, badge spacing, sheet widths (Feature: p16-f…
tybot02 Sep 10, 2026
dde1590
feat(ui): replace row click with details button (Feature: p16-feat-003)
tybot02 Sep 10, 2026
627b724
feat(ui): restyle status badges with WCAG-compliant colors (Feature: …
tybot02 Sep 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ build/
.coverage
coverage/
coverage.out

.bench/
.ph
9 changes: 6 additions & 3 deletions cmd/kaas/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,12 @@ func run(configFile string) error {
if js, ok := st.(store.DerivedJobStore); ok {
if dc, ok := chatBr.(*bridge.DaemonClient); ok {
deriveRunner = derive.NewRunner(js, dc, derive.Config{
KBDir: cfg.Storage.KBDir,
Model: cfg.LLM.Model,
PollInterval: time.Duration(cfg.Worker.PollIntervalMS) * time.Millisecond,
KBDir: cfg.Storage.KBDir,
Model: cfg.LLM.Model,
PollInterval: time.Duration(cfg.Worker.PollIntervalMS) * time.Millisecond,
Reorganize: cfg.Derive.Reorganize,
FilterRounds: cfg.Derive.FilterRounds,
FilterThreshold: cfg.Derive.FilterThreshold,
}, logger)
} else {
logger.Warn("derive: HTTP bridge not a DaemonClient; derive runner disabled")
Expand Down
299 changes: 299 additions & 0 deletions docs/assets/derive-flow.en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
295 changes: 295 additions & 0 deletions docs/assets/derive-flow.zh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,106 changes: 1,106 additions & 0 deletions docs/plans/2025-09-10-builds-tab-refactor.md

Large diffs are not rendered by default.

1,050 changes: 1,050 additions & 0 deletions docs/plans/2026-09-07-derive-knowledge-reorganization.md

Large diffs are not rendered by default.

728 changes: 728 additions & 0 deletions docs/plans/2026-09-07-derive-split-oversized-merge.md

Large diffs are not rendered by default.

855 changes: 855 additions & 0 deletions docs/plans/2026-09-07-derive-sub-article-split.md

Large diffs are not rendered by default.

381 changes: 381 additions & 0 deletions docs/plans/2026-09-08-derive-reorganize-config-v2.md

Large diffs are not rendered by default.

512 changes: 512 additions & 0 deletions docs/plans/2026-09-09-batch-parallel-write.md

Large diffs are not rendered by default.

862 changes: 862 additions & 0 deletions docs/plans/2026-09-09-builds-master-detail.md

Large diffs are not rendered by default.

991 changes: 991 additions & 0 deletions docs/plans/2026-09-09-builds-page-redesign.md

Large diffs are not rendered by default.

580 changes: 580 additions & 0 deletions docs/plans/2026-09-09-parallel-reorg.md

Large diffs are not rendered by default.

721 changes: 721 additions & 0 deletions docs/plans/2026-09-09-write-phase-early-parallel.md

Large diffs are not rendered by default.

Loading