rename klo to ktx

This commit is contained in:
Andrey Avtomonov 2026-05-10 23:51:24 +02:00
parent 1a42152e6f
commit 3ce510b55b
704 changed files with 10205 additions and 10255 deletions

View file

@ -17,7 +17,7 @@ describe('memory-flow acceptance scenarios', () => {
it('renders a completed replay with a clear saved-memory completion line', () => {
const output = renderScenario(successfulReplayScenario());
expect(output).toContain('KLO memory flow warehouse/metricflow done');
expect(output).toContain('KTX memory flow warehouse/metricflow done');
expect(output).toContain('Saved 3 memories from 4 raw files: 2 wiki pages, 1 SL updates.');
expect(output).toContain('Commit: abc12345 Run: run-success Report: ingest-report.json');
});
@ -48,7 +48,7 @@ describe('memory-flow acceptance scenarios', () => {
it('renders no ANSI color codes in the text fallback for terminals without color support', () => {
const output = renderScenario(successfulReplayScenario(), 80);
expect(output).toContain('KLO memory flow warehouse/metricflow done');
expect(output).toContain('KTX memory flow warehouse/metricflow done');
expect(output).not.toMatch(/\u001b\[[0-9;]*m/);
});

View file

@ -96,14 +96,14 @@ function reportSnapshot(): IngestReportSnapshot {
toolTranscripts: [
{
unitKey: 'orders',
path: '/tmp/klo/run/wu-transcripts/job-1/orders.jsonl',
path: '/tmp/ktx/run/wu-transcripts/job-1/orders.jsonl',
toolCallCount: 3,
errorCount: 0,
toolNames: ['read_raw_span', 'wiki_write', 'sl_write_source'],
},
{
unitKey: 'customers',
path: '/tmp/klo/run/wu-transcripts/job-1/customers.jsonl',
path: '/tmp/ktx/run/wu-transcripts/job-1/customers.jsonl',
toolCallCount: 2,
errorCount: 1,
toolNames: ['read_raw_span', 'sl_write_source'],
@ -244,14 +244,14 @@ describe('memory-flow event mapping', () => {
expect(replay.details.transcripts).toEqual([
{
unitKey: 'orders',
path: '/tmp/klo/run/wu-transcripts/job-1/orders.jsonl',
path: '/tmp/ktx/run/wu-transcripts/job-1/orders.jsonl',
toolCallCount: 3,
errorCount: 0,
toolNames: ['read_raw_span', 'wiki_write', 'sl_write_source'],
},
{
unitKey: 'customers',
path: '/tmp/klo/run/wu-transcripts/job-1/customers.jsonl',
path: '/tmp/ktx/run/wu-transcripts/job-1/customers.jsonl',
toolCallCount: 2,
errorCount: 1,
toolNames: ['read_raw_span', 'sl_write_source'],

View file

@ -13,7 +13,7 @@ import type { MemoryFlowInteractionState, MemoryFlowViewModel } from './types.js
function view(): MemoryFlowViewModel {
return {
title: 'KLO memory flow warehouse/metricflow running',
title: 'KTX memory flow warehouse/metricflow running',
subtitle: 'Run run-1 Sync sync-1',
status: 'running',
activeLine: 'active: WorkUnit orders step 2/4',

View file

@ -5,7 +5,7 @@ import type { MemoryFlowViewModel } from './types.js';
function view(): MemoryFlowViewModel {
return {
title: 'KLO memory flow warehouse/metricflow done',
title: 'KTX memory flow warehouse/metricflow done',
subtitle: 'Run run-1 Sync sync-1',
status: 'done',
activeLine: 'active: complete',
@ -128,7 +128,7 @@ describe('renderMemoryFlowInteractive', () => {
const output = renderMemoryFlowInteractive(view(), state, { terminalWidth: 140 });
expect(output).toContain('KLO memory flow warehouse/metricflow done');
expect(output).toContain('KTX memory flow warehouse/metricflow done');
expect(output).toContain('OK SOURCE -> OK CHUNKS -> !! WORKUNITS -> OK ACTIONS -> !! GATES -> OK SAVED');
expect(output).toContain('[WORKUNITS]');
expect(output).toContain('> orders');

View file

@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest';
describe('@klo/context/ingest/memory-flow lightweight export', () => {
describe('@ktx/context/ingest/memory-flow lightweight export', () => {
it('exports replay parsing and text rendering without the full ingest entry point', async () => {
const memoryFlow = await import('./index.js');

View file

@ -4,7 +4,7 @@ import { renderMemoryFlowReplay } from './render.js';
function view(): MemoryFlowViewModel {
return {
title: 'KLO memory flow warehouse/metricflow done',
title: 'KTX memory flow warehouse/metricflow done',
subtitle: 'Run run-1 Sync sync-1',
status: 'done',
activeLine: 'active: complete',
@ -79,7 +79,7 @@ describe('renderMemoryFlowReplay', () => {
'OK SOURCE -> OK CHUNKS -> !! WORKUNITS -> OK ACTIONS -> !! GATES -> OK SAVED',
);
expect(renderMemoryFlowReplay(view(), { terminalWidth: 140 })).toMatchInlineSnapshot(`
"KLO memory flow warehouse/metricflow done
"KTX memory flow warehouse/metricflow done
active: complete
Run run-1 Sync sync-1
OK SOURCE -> OK CHUNKS -> !! WORKUNITS -> OK ACTIONS -> !! GATES -> OK SAVED

View file

@ -93,7 +93,7 @@ describe('buildMemoryFlowViewModel', () => {
it('builds six readable columns from replay events', () => {
const view = buildMemoryFlowViewModel(replayInput());
expect(view.title).toBe('KLO memory flow warehouse/metricflow done');
expect(view.title).toBe('KTX memory flow warehouse/metricflow done');
expect(view.activeLine).toBe('active: complete');
expect(view.columns.map((column) => column.id)).toEqual([
'source',
@ -179,7 +179,7 @@ describe('buildMemoryFlowViewModel', () => {
details: { actions: [], provenance: [], transcripts: [] },
});
expect(view.title).toBe('KLO memory flow Warehouse + dbt + BI + Docs done');
expect(view.title).toBe('KTX memory flow Warehouse + dbt + BI + Docs done');
expect(view.columns.find((column) => column.id === 'source')?.counters[0]).toBe('Warehouse, dbt, BI, Docs');
expect(view.completionLine).toContain('Saved 16 memories from 29 raw files');
});

View file

@ -509,7 +509,7 @@ export function buildMemoryFlowViewModel(input: MemoryFlowReplayInput): MemoryFl
: `${input.connectionId}/${input.adapter}`;
return {
title: `KLO memory flow ${titleSources} ${input.status}`,
title: `KTX memory flow ${titleSources} ${input.status}`,
subtitle: `Run ${input.runId} Sync ${input.syncId}`,
status: input.status,
activeLine: activeLine(input),

View file

@ -11,7 +11,7 @@ function viewWithStatuses(statuses: Array<'waiting' | 'active' | 'complete' | 'w
const ids = ['source', 'chunks', 'workUnits', 'actions', 'gates', 'saved'] as const;
return {
title: 'KLO memory flow warehouse/metricflow running',
title: 'KTX memory flow warehouse/metricflow running',
subtitle: 'Run run-1 Sync sync-1',
status: 'running',
activeLine: 'active: WorkUnit orders',