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: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Removed unreachable migration barrels, obsolete prompt/example artifacts, and unused internal helpers; builds now reject unused locals and parameters.
- Bounded semantic, file-analysis, MCP-session, and host-session retention with TTL/LRU limits, proactive cleanup, raw directory-entry scan budgets, and safe runtime configuration clamps.
- Moved checkpoint payload history from `session.json` into individually bounded, paginated checkpoint records with summary-only session reads, incremental counts, legacy dual-read, and lazy migration.
- Made host-session binding mutations atomic across concurrent hooks, with owner-identified inter-process locks that safely recover after a crashed hook, preserve live legacy locks during rolling upgrades, and prevent terminal MCP activity sessions from being reused.
Expand Down
3 changes: 0 additions & 3 deletions CONVENTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ CONTRIBUTING.md
LICENSE
README.md
docs/ -- Published documentation produced by this tool
example-documentation.ts
jest.config.js
package.json
package-lock.json
prompts/ -- Prompt templates (update_plan_prompt.md, update_scaffold_prompt.md)
scripts/ -- Build and test helper scripts
src/ -- TypeScript source (~240 files): CLI entrypoint, services, generators, utilities
tsconfig.json
Expand Down Expand Up @@ -70,4 +68,3 @@ Generated: 2026-03-18T21:32:55.004Z
## Testing

See [testing-strategy.md](../testing-strategy.md) in the parent docs directory for full test framework documentation.

2 changes: 1 addition & 1 deletion docs/src/content/docs/en/about/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ The operator's package. It ships the full CLI stack and exports a handful of ser
- `SyncService` — export/import rules, agents, and skills
- `ReportService` — generate workflow progress reports

It includes the `prompts/` directory used by the interactive CLI, and its bin is `dotcontext`.
Its executable is exposed as the `dotcontext` bin.

### `@dotcontext/harness`

Expand Down
3 changes: 1 addition & 2 deletions docs/src/content/docs/en/about/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ Builds the five isolated package bundles into `.release/packages/{cli,harness,mc
- Writes a package-specific `package.json` manifest for each surface — filtered dependencies, `exports`, and `bin` entries.
- Copies shared files (`LICENSE`, `README.md`).
- Generates bin shims for the executables (`dotcontext`, `dotcontext-mcp`).
- Copies the `prompts/` directory (CLI only).

### `npm run smoke:packages`

Expand All @@ -75,7 +74,7 @@ Runs `scripts/smoke-package-bundles.js` to validate the bundles you just built.
- The expected exports are present in each compiled index.
- Bin entries and local shims exist for CLI and MCP.
- **No legacy `dist/services/` folder** ships — this enforces the architecture (domain behavior must not leak into the transport surfaces).
- `README.md` and `LICENSE` are included; the `prompts/` directory is present for CLI.
- `README.md` and `LICENSE` are included.

:::caution
The "no `dist/services/`" check is intentional. If a package smoke test fails on it, you have probably moved domain behavior into `cli` or `mcp` instead of `harness`. See [Architecture](/about/architecture/) for the boundary rules.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/pt-br/about/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ O pacote do operador. Ele entrega a stack completa da CLI e exporta um punhado d
- `SyncService` — exportar/importar rules, agents e skills
- `ReportService` — gerar relatórios de progresso do workflow

Ele inclui o diretório `prompts/` usado pela CLI interativa, e seu bin é `dotcontext`.
Seu executável é exposto pelo bin `dotcontext`.

### `@dotcontext/harness`

Expand Down
3 changes: 1 addition & 2 deletions docs/src/content/docs/pt-br/about/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ Faz o build dos cinco bundles de pacote isolados em `.release/packages/{cli,harn
- Escreve um manifesto `package.json` específico para cada surface — dependências filtradas, `exports` e entradas `bin`.
- Copia arquivos compartilhados (`LICENSE`, `README.md`).
- Gera os shims de bin para os executáveis (`dotcontext`, `dotcontext-mcp`).
- Copia o diretório `prompts/` (somente CLI).

### `npm run smoke:packages`

Expand All @@ -75,7 +74,7 @@ Roda `scripts/smoke-package-bundles.js` para validar os bundles que você acabou
- Que os `exports` esperados estão presentes em cada index compilado.
- Que as entradas `bin` e os shims locais existem para CLI e MCP.
- Que **nenhuma pasta legada `dist/services/`** é publicada — isso reforça a arquitetura (comportamento de domínio não pode vazar para as surfaces de transporte).
- Que `README.md` e `LICENSE` estão incluídos; e que o diretório `prompts/` está presente para a CLI.
- Que `README.md` e `LICENSE` estão incluídos.

:::caution
A verificação de "nenhum `dist/services/`" é intencional. Se um smoke test de pacote falhar nela, provavelmente você moveu comportamento de domínio para `cli` ou `mcp` em vez de para o `harness`. Veja a [Arquitetura](/pt-br/about/architecture/) para as regras de fronteira.
Expand Down
32 changes: 0 additions & 32 deletions example-documentation.ts

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"files": [
"dist/**/*",
"README.md",
"LICENSE",
"prompts/**/*"
"LICENSE"
],
"engines": {
"node": ">=20.12.0"
Expand Down
94 changes: 0 additions & 94 deletions prompts/github_issue_prevc_prompt.md

This file was deleted.

41 changes: 0 additions & 41 deletions prompts/update_plan_prompt.md

This file was deleted.

27 changes: 0 additions & 27 deletions prompts/update_scaffold_prompt.md

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/build-package-bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,10 @@ function buildBundles() {
exports: { '.': './dist/cli/index.js' },
bin: { dotcontext: 'dist/index.js' },
dependencies: rootPkg.dependencies,
files: ['dist/**/*', 'prompts/**/*', 'README.md', 'LICENSE'],
files: ['dist/**/*', 'README.md', 'LICENSE'],
}
),
readme: loadTemplate('cli.README.md'),
copyPrompts: true,
},
{
slug: 'harness',
Expand Down Expand Up @@ -235,9 +234,6 @@ function buildBundles() {
copyDir(distDir, path.join(pkgRoot, 'dist'));
}

if (pkg.copyPrompts && fs.existsSync(path.join(repoRoot, 'prompts'))) {
copyDir(path.join(repoRoot, 'prompts'), path.join(pkgRoot, 'prompts'));
}
for (const file of commonFiles) {
copyFile(path.join(repoRoot, file), path.join(pkgRoot, file));
}
Expand Down
5 changes: 0 additions & 5 deletions scripts/smoke-package-bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const bundles = [
'ReportService',
],
bin: 'dotcontext',
requiresPrompts: true,
},
{
slug: 'harness',
Expand Down Expand Up @@ -144,10 +143,6 @@ function smokeBundle(bundle) {
);
}

if (bundle.requiresPrompts) {
assert(fs.existsSync(path.join(bundleRoot, 'prompts')), `${bundle.slug}: prompts missing`);
}

const mod = requireFresh(mainPath);
for (const exportName of bundle.expectedExports) {
assert(mod[exportName], `${bundle.slug}: missing export ${exportName}`);
Expand Down
Loading
Loading