Skip to content

Commit 552ae12

Browse files
ashu17706github-actions[bot]Baseline Userclaude
authored
release: v0.4.0 (#41)
* chore: new branch (#33) * fix(ci): bench scorecard ci windows fixes (#34) * ci: auto-template and title for dev to main PRs * release: v0.3.2 (dev -> main) (#35) * New branch (#33) * chore: add pending project files * refactor(ingest): centralize ingestion via parser/resolver/store layers * docs: document layered ingest architecture * test(perf): add qmd benchmark harness and non-blocking CI regression check * perf(bench): add ingest hotpath benchmark and record qmd optimization * perf(ingest): batch session writes and add stable benchmark tooling * Add benchmark scorecard to CI summary and sticky PR comment * Fix bench import path and temporarily disable design-contract workflow * CI: checkout qmd submodule in perf bench workflow * Fix Windows path handling in ingest session discovery * Feature/bench scorecard ci windows fixes (#34) * chore: add pending project files * refactor(ingest): centralize ingestion via parser/resolver/store layers * docs: document layered ingest architecture * test(perf): add qmd benchmark harness and non-blocking CI regression check * perf(bench): add ingest hotpath benchmark and record qmd optimization * perf(ingest): batch session writes and add stable benchmark tooling * Add benchmark scorecard to CI summary and sticky PR comment * Fix bench import path and temporarily disable design-contract workflow * CI: checkout qmd submodule in perf bench workflow * Fix Windows path handling in ingest session discovery * CI: run full test matrix only on merge branches * CI: auto-create draft prerelease on successful dev CI * CI: auto-template and title for dev to main PRs * ci: create dev draft release after successful dev test matrix * chore: add e2e dev release flow test marker (#36) * release: v0.3.2 (dev -> main) (#37) * New branch (#33) * chore: add pending project files * refactor(ingest): centralize ingestion via parser/resolver/store layers * docs: document layered ingest architecture * test(perf): add qmd benchmark harness and non-blocking CI regression check * perf(bench): add ingest hotpath benchmark and record qmd optimization * perf(ingest): batch session writes and add stable benchmark tooling * Add benchmark scorecard to CI summary and sticky PR comment * Fix bench import path and temporarily disable design-contract workflow * CI: checkout qmd submodule in perf bench workflow * Fix Windows path handling in ingest session discovery * Feature/bench scorecard ci windows fixes (#34) * chore: add pending project files * refactor(ingest): centralize ingestion via parser/resolver/store layers * docs: document layered ingest architecture * test(perf): add qmd benchmark harness and non-blocking CI regression check * perf(bench): add ingest hotpath benchmark and record qmd optimization * perf(ingest): batch session writes and add stable benchmark tooling * Add benchmark scorecard to CI summary and sticky PR comment * Fix bench import path and temporarily disable design-contract workflow * CI: checkout qmd submodule in perf bench workflow * Fix Windows path handling in ingest session discovery * CI: run full test matrix only on merge branches * CI: auto-create draft prerelease on successful dev CI * CI: auto-template and title for dev to main PRs * CI: create dev draft release after successful dev test matrix * chore: add e2e dev release flow test marker (#36) * docs: update CHANGELOG.md for v0.4.0 [skip ci] * docs: add CI/release workflow architecture and north-star plan * ci: add commit lint, semver metadata, and deterministic release notes * docs: finalize workflow policy docs without backlog sections * ci: scope commit lint to pull request commit ranges only * fix(ci): setup bun before dev draft release metadata step * fix(ci): allow legacy non-conventional history for dev draft metadata * fix(release): align dev-main PR version with latest stable tag * ci: improve workflow and check naming for PR readability * ci: skip PR test job for dev to main release PRs * fix(ci): use import.meta.dir for cross-platform path resolution new URL(import.meta.url).pathname produces /D:/a/... on Windows, causing ENOENT errors. import.meta.dir is Bun's cross-platform alternative. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Baseline User <baseline@example.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 205c11a commit 552ae12

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

src/team/document.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@
66
*/
77

88
import { OLLAMA_HOST, OLLAMA_MODEL, SMRITI_DIR } from "../config";
9-
import { join, dirname, basename } from "path";
9+
import { join } from "path";
1010
import type { KnowledgeUnit, DocumentationOptions, DocumentGenerationResult } from "./types";
11-
import { existsSync } from "fs";
11+
1212

1313
// =============================================================================
1414
// Template Loading
1515
// =============================================================================
1616

17-
const BUILT_IN_TEMPLATES_DIR = join(
18-
dirname(new URL(import.meta.url).pathname),
19-
"prompts"
20-
);
17+
const BUILT_IN_TEMPLATES_DIR = join(import.meta.dir, "prompts");
2118

2219
/**
2320
* Get the Stage 2 prompt template for a category

src/team/segment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
import { OLLAMA_HOST, OLLAMA_MODEL } from "../config";
10-
import { join, dirname } from "path";
10+
import { join } from "path";
1111
import type { Database } from "bun:sqlite";
1212
import type { RawMessage } from "./formatter";
1313
import { filterMessages, mergeConsecutive, sanitizeContent } from "./formatter";
@@ -21,7 +21,7 @@ import type {
2121
// Prompt Loading
2222
// =============================================================================
2323

24-
const PROMPT_PATH = join(dirname(new URL(import.meta.url).pathname), "prompts", "stage1-segment.md");
24+
const PROMPT_PATH = join(import.meta.dir, "prompts", "stage1-segment.md");
2525

2626
async function loadSegmentationPrompt(): Promise<string> {
2727
const file = Bun.file(PROMPT_PATH);

0 commit comments

Comments
 (0)