Skip to content

Reset core scaffolding and contracts#40

Open
feuersteiner wants to merge 29 commits intomainfrom
39-major-refactor-to-orgnaize-and-split-into-packages
Open

Reset core scaffolding and contracts#40
feuersteiner wants to merge 29 commits intomainfrom
39-major-refactor-to-orgnaize-and-split-into-packages

Conversation

@feuersteiner
Copy link
Owner

@feuersteiner feuersteiner commented Feb 25, 2026

Concise rebuild plan for Contextrie.

Goals

  • Keep core contracts minimal and composable
  • Treat parsers as the only IO/format boundary
  • Make ingestion format-agnostic
  • Make the library extensible for adding parsers and assessors
  • Establish a clean, repeatable workflow

Tasks

  • Reset repo layout and seed core package
  • Add core source contracts (document, list, reference)
  • Document core boundaries and usage
  • Define parser + indexer + ingester scaffolding
  • Add assessor hooks (first/last pass)
  • Add compose pipeline skeleton
  • Add CLI wrapper
  • Add docs site skeleton
  • Add Python stub
  • Add examples

Copilot AI review requested due to automatic review settings February 25, 2026 15:42
@feuersteiner feuersteiner linked an issue Feb 25, 2026 that may be closed by this pull request
10 tasks
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR resets the Contextrie repository to a clean monorepo structure with a minimal core package that defines type contracts and source primitives. The changes remove all implementation code (client, CLI, demo) and replace it with a foundational type system that separates concerns between core contracts and future adapters.

Changes:

  • Removed all implementation code (ingester, assessor, composer, client, CLI, demo) and dependencies
  • Added core type system with source primitives (Document, List, ReferenceDocument, ReferenceList) and ingestion contracts
  • Set up SvelteKit documentation site scaffold and stub directories for CLI, examples, and Python package

Reviewed changes

Copilot reviewed 75 out of 82 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
package.json Removed from root (no longer a monolithic package)
tsconfig.build.json Removed from root
index.ts Simplified to only export core types
readme.md Updated with new repo layout and simplified API concepts
core/types/ New core type system defining source primitives and ingestion contracts
core/package.json New standalone package configuration for core
docs/ New SvelteKit documentation site scaffold
cli/README.md Stub placeholder
examples/README.md Stub placeholder
python/README.md Stub placeholder
demo/ Completely removed with all demo files
client/ Removed all client implementation
core/ingester/, core/assessor/, core/compose/, core/session/ All removed
.github/workflows/pr-checks.yml Removed CI workflow
contributing.md Removed
AGENTS.md Removed
eslint.config.js Removed from root
.gitignore Simplified

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI commented Feb 25, 2026

@feuersteiner I've opened a new pull request, #41, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link

Copilot AI commented Feb 25, 2026

@feuersteiner I've opened a new pull request, #42, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 6 commits February 25, 2026 19:26
Co-authored-by: feuersteiner <18667704+feuersteiner@users.noreply.github.com>
Co-authored-by: feuersteiner <18667704+feuersteiner@users.noreply.github.com>
Remove non-existent `the-plan.md` reference from repo layout
Make `kind` property readonly in `ReferenceListSource`
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 75 out of 82 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 75 out of 82 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +11 to +12
const gitignorePath = path.resolve(import.meta.dirname, '.gitignore');

Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import.meta.dirname is not a standard ESM property in Node (and differs from Bun’s import.meta.dir). As a result, loading this ESLint config will likely throw at runtime, breaking eslint .. Use a portable dirname derivation (e.g., from import.meta.url) or switch to the runtime-supported import.meta.dir if this is Bun-only.

Copilot uses AI. Check for mistakes.
@y-71 y-71 force-pushed the 39-major-refactor-to-orgnaize-and-split-into-packages branch from b7db489 to 5994ee8 Compare March 1, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Major refactor: organize and split into packages

3 participants