Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { dirname, resolve } from 'node:path'
import process from 'node:process'
import { fileURLToPath } from 'node:url'

// TODO(integration): replace stub when sibling modules land
import { clearIndexCache, loadOrBuildIndex } from './indexing/cache.ts'
import { CspIndex } from './indexing/index.ts'
import { serve } from './mcp/server.ts'
Expand Down
15 changes: 8 additions & 7 deletions src/indexing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
// indexing units (model loading + createIndexFromPath) into a single object
// that the CLI and MCP server drive.
//
// Wiring status:
// - fromPath: implemented (this task, T003).
// - fromGit: stub (T005).
// - search / findRelated: sync delegation to search.ts (T004).
// - save: implemented (this task, T006) — writes manifest + chunks + bm25 + dense.
// - loadFromDisk: throwing stub (real persistence in T007); declared here so
// the Phase A/B branch type-checks (cli.ts references CspIndex.loadFromDisk).
// Construction:
// - fromPath: index a local directory.
// - fromGit: shallow-clone a git URL into a temp dir, index it via
// fromPath, then re-root the index at the URL.
// - loadFromDisk: reconstruct a saved index from its on-disk artifacts.
// Operations:
// - search / findRelated: delegate to search.ts over the in-memory index.
// - save: persist the index (manifest + chunks + bm25 + dense vectors).

import type { Chunk, ContentType, IndexStats, SearchResult } from '../types.ts'
import type { Model } from './dense.ts'
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Port of src/semble/types.py
// Minimal stub — full implementation lands in Unit 1.

/** Call type for token-savings tracking. */
export enum CallType {
Expand Down
1 change: 0 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Port of src/semble/utils.py
// Minimal stub — full implementation lands in Unit 3.

import type { Chunk, SearchResult } from './types.ts'

Expand Down
Loading