Commit graph

282 commits

Author SHA1 Message Date
Andrey Avtomonov
b9e0a746af
feat(cli): clean up dev command surface (#57)
* feat(cli): clean up dev command surface

* test: align CI expectations with CLI cleanup

* test(cli): update slow test command expectations
2026-05-13 12:00:08 +02:00
Luca Martial
46b013e32a
Merge pull request #55 from Kaelio/fix-embedding-spinner-multiline
Use shared spinner for embedding health checks
2026-05-13 00:53:38 -04:00
Luca Martial
59b0b12c5c Format embedding health progress helper 2026-05-12 21:53:23 -07:00
Luca Martial
c7061d8630 Use shared spinner for embedding health checks 2026-05-12 21:50:41 -07:00
Luca Martial
703ecd427e
Merge pull request #52 from Kaelio/select-tables-on-connect
Select tables during database setup
2026-05-13 00:34:19 -04:00
Luca Martial
9175451b01 Merge remote-tracking branch 'origin/main' into select-tables-on-connect
# Conflicts:
#	packages/cli/src/setup-agents.test.ts
2026-05-12 21:33:12 -07:00
Luca Martial
9a8cb08192 Refine setup table selection flow 2026-05-12 21:31:11 -07:00
Luca Martial
8a040615b9
Merge pull request #53 from Kaelio/multiselect-enter-selects
Confirm skipped optional setup selections
2026-05-12 23:51:36 -04:00
Luca Martial
2ede86263d Align agent setup completion test with state file 2026-05-12 18:23:04 -07:00
Luca Martial
8ceb3bc7b9 Confirm skipped optional setup selections 2026-05-12 18:23:03 -07:00
Luca Martial
6a5383a398 Prompt for enabled tables during setup 2026-05-12 18:22:08 -07:00
Luca Martial
9704d8632b Add connector table listing 2026-05-12 18:22:05 -07:00
Luca Martial
52ddb061a4 Add scan table filtering 2026-05-12 18:22:03 -07:00
Luca Martial
fefbabab5f
Merge pull request #51 from Kaelio/demo-target-dir-explain
feat(cli): add intro step and project dir to demo tour
2026-05-12 20:54:46 -04:00
Luca Martial
262276dcd7 feat(cli): add intro step and project dir to demo tour
Show the target project directory in the demo banner and add an
introductory screen before the first setup card so users understand
where demo artifacts will land. Also simplify stdin key detection
by comparing raw byte values instead of string conversions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 17:54:18 -07:00
Luca Martial
556563d654
Merge pull request #50 from Kaelio/setup-path-hint-cleanup
fix(cli): remove redundant path resolution hints from project setup
2026-05-12 20:18:46 -04:00
Luca Martial
52d1c903ae fix(cli): remove redundant path resolution hints from project setup
The placeholder text and confirmation step already communicate path
formats clearly; the standalone hints added visual noise.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 17:17:18 -07:00
Luca Martial
aacddb6720
Merge pull request #49 from Kaelio/hide-primary-source-counts
feat(cli): improve database setup UX
2026-05-12 20:16:30 -04:00
Luca Martial
a2096dd847 feat(cli): hide table counts from primary source connection test output
Table counts during connection testing are noisy and not actionable for
users — the scan step already reports detailed schema information.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 17:14:56 -07:00
Luca Martial
d567ffec48 feat(cli): offer connection URL paste first in database setup
Users most commonly paste a connection URL rather than entering fields
individually, so surface that option first in the connection method prompt.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 17:14:35 -07:00
Luca Martial
e7dbf91b96
Merge pull request #48 from Kaelio/fix-duplicate-directory-prompt
fix(cli): replace duplicate directory prompt with direct path options
2026-05-12 20:06:37 -04:00
Luca Martial
ea10dd9f39 merge: resolve conflict with main's box-drawing formatting
Keep the confirmProjectDir helper extraction from this branch while
adopting the │ box-drawing prefixes added on main.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 17:03:03 -07:00
Luca Martial
bdca6d0f04 fix(cli): replace duplicate directory prompt with direct path options
Extract confirmProjectDir helper and split the "Create a new project
folder" option into "New subfolder (./ktx-project)" and "Custom path"
so users reach their target directory with fewer prompts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 16:59:30 -07:00
Luca Martial
fcdf5234c6
Merge pull request #45 from Kaelio/luca/klo-654-improve-indents
feat(cli): add box-drawing prefixes to setup messages
2026-05-12 19:58:55 -04:00
Luca Martial
07ac71ea7c feat(cli): add box-drawing prefixes to remaining setup stdout messages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 16:58:09 -07:00
Luca Martial
509f9f5301 feat(cli): prefix text-input continuation lines with box-drawing characters
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 16:58:00 -07:00
Luca Martial
e13350c970
Merge pull request #47 from Kaelio/luca-martial/save-setup-in-dot-ktx
Save setup completion state in .ktx/setup/state.json
2026-05-12 19:27:26 -04:00
Luca Martial
dbfee6b453 feat(cli): migrate all setup steps to use local state for completion tracking
Update every setup step to write completed_steps to .ktx/setup/state.json
instead of ktx.yaml, stripping legacy entries from config on write.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 16:26:23 -07:00
Luca Martial
f70271152b feat(context): add local .ktx/setup/state.json for setup completion tracking
Move setup step completion state out of ktx.yaml into a gitignored local
state file so it is not committed or shared across machines.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 16:26:13 -07:00
Andrey Avtomonov
85fc408054
chore(deps): refresh workspace dependencies (#43)
* chore(deps): refresh workspace dependencies

* Fix pnpm artifact smoke build approvals
2026-05-13 01:15:35 +02:00
Luca Martial
f091f948ee feat(cli): add box-drawing prefixes to setup informational messages
Align stdout informational messages in setup flows with the existing
Clack prompt visual style by prefixing them with │.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 15:46:56 -07:00
Andrey Avtomonov
17a2fee69a
fix(cli): remove ktx setup subcommands (#42)
* fix(cli): remove ktx setup subcommands

* test(scripts): update setup-dev status expectation
2026-05-13 00:38:26 +02:00
Andrey Avtomonov
cc5e41f836
Merge pull request #44 from Kaelio/copy-cli-command-plan
feat(cli): add command tree docs script
2026-05-13 00:37:28 +02:00
Andrey Avtomonov
7b52ff9bd0 docs: add cli command tree implementation plan 2026-05-13 00:36:19 +02:00
Andrey Avtomonov
5e057f97e3 fix(cli): preserve tree continuation guides 2026-05-13 00:35:07 +02:00
Andrey Avtomonov
39f0320c2b feat(cli): render command docs as tree 2026-05-13 00:33:24 +02:00
Andrey Avtomonov
e8a7018c55 fix(cli): match command tree description separator 2026-05-13 00:27:39 +02:00
Andrey Avtomonov
d4ce275a3c chore(cli): add docs:commands pnpm script 2026-05-13 00:26:06 +02:00
Andrey Avtomonov
fda3d4b7ec feat(cli): add print-command-tree build-time script 2026-05-13 00:25:35 +02:00
Andrey Avtomonov
f205bec1f6 feat(cli): add walkCommandTree and formatCommandTree helpers 2026-05-13 00:24:51 +02:00
Andrey Avtomonov
cdcfd21e95 refactor(cli): extract buildKtxProgram for reuse outside runCommanderKtxCli 2026-05-13 00:23:58 +02:00
Andrey Avtomonov
80f298d652
Merge pull request #41 from Kaelio/cli-dev-runtime-status
feat(cli): clean up command surface
2026-05-12 23:52:25 +02:00
Andrey Avtomonov
e15a4ebaec feat(cli): clean up command surface 2026-05-12 23:51:46 +02:00
Luca Martial
60457e9407
Improve schema setup and Notion ingest UX (#14)
* Improve schema setup and Notion ingest UX

* Handle Postgres network scan failures

* WIP: save local changes before main merge

* Refine setup prompt choices

* Tighten ingest reconciliation guidance

* Commit setup config updates

* Canonicalize unmapped fallback details

* Count reconciliation actions in reports

* Harden semantic layer source validation

* Return wiki content after edits

* Validate SL sources against manifests

* Validate wiki refs before writes

* Simplify CLI next steps

* Clarify agent setup summary

* Surface dbt target SL sources

* Recover SL write fallbacks

* Preserve failed context build metadata

* Track raw paths for ingest actions

* test(cli): update seeded demo expectations

* fix(ingest): scope fallback recovery checks

* fix(sl): tighten source validation guards

* fix(wiki): ignore empty embedding vectors

* Improve Notion ingest UX

* Enforce flat wiki keys

* test(context): update wiki key assertion

---------

Co-authored-by: Andrey Avtomonov <andreybavt@gmail.com>
2026-05-12 22:56:58 +02:00
Andrey Avtomonov
866d33e71a
Merge pull request #39 from Kaelio/cli-print-project-dir
feat(cli): print resolved project dir
2026-05-12 16:51:15 +02:00
Andrey Avtomonov
5277c81b33 fix(ci): update artifact source test 2026-05-12 16:17:45 +02:00
Andrey Avtomonov
6a1fded5ce fix(ci): align smoke stderr expectations 2026-05-12 15:31:41 +02:00
Andrey Avtomonov
009558be7e
Merge branch 'main' into cli-print-project-dir 2026-05-12 15:22:38 +02:00
Andrey Avtomonov
5b8e4b51d9
Merge pull request #40 from Kaelio/fix-main-ci-errors
fix(cli): route plain ingest progress to stderr
2026-05-12 15:20:38 +02:00
Andrey Avtomonov
dc0e33ddda fix(cli): route plain ingest progress to stderr 2026-05-12 15:15:28 +02:00