Skip to content

Commit 7d357ac

Browse files
PaulJPhilpclaude
andcommitted
feat(toolkit): wire relatedPatterns into getPatternByIdDb
Query pattern_relations table and return related pattern slugs in get_pattern responses. The downstream MCP handler already renders this field when present. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9d9f4e6 commit 7d357ac

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

packages/toolkit/dist/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export { buildSnippet, generateUsageExample, sanitizeInput, type BuildSnippetPar
1010
export { CodeExample, DifficultyLevel, Pattern, PatternCategory, PatternSummary, PatternsIndex, type CodeExample as CodeExampleType, type DifficultyLevel as DifficultyLevelType, type PatternCategory as PatternCategoryType, type PatternSummary as PatternSummaryType, type Pattern as PatternType } from "./schemas/pattern.js";
1111
export { GenerateRequest, type GenerateRequest as GenerateRequestType } from "./schemas/generate.js";
1212
export { createDatabase, getDatabaseUrl, type Database, type DatabaseConnection } from "./db/client.js";
13-
export { applicationPatterns, effectPatterns, jobStatuses, jobs, patternJobs, patternRelations, skillLevels, skillPatterns, skills, type ApplicationPattern as DbApplicationPattern, type CodeExample as DbCodeExample, type EffectPattern as DbEffectPattern, type Job as DbJob, type JobStatus, type NewApplicationPattern, type NewEffectPattern, type NewJob, type NewSkill, type NewSkillPattern, type PatternRule, type Skill as DbSkill, type SkillLevel, type SkillPattern, } from "./db/schema/index.js";
14-
export { ApplicationPatternLockedError, ApplicationPatternNotFoundError, ApplicationPatternRepositoryError, EffectPatternLockedError, EffectPatternNotFoundError, EffectPatternRepositoryError, JobLockedError, JobNotFoundError, JobRepositoryError, SkillLockedError, SkillNotFoundError, SkillRepositoryError, createApplicationPatternRepository, createEffectPatternRepository, createJobRepository, createSkillRepository, type ApplicationPatternRepository, type EffectPatternRepository, type JobRepository, type JobWithPatterns, type SearchPatternsParams as RepositorySearchParams, type SearchSkillsParams, type SkillRepository, } from "./repositories/index.js";
15-
export { ApplicationPatternRepositoryLive, ApplicationPatternRepositoryService, DatabaseLayer, DatabaseService, DatabaseServiceLive, EffectPatternRepositoryLive, EffectPatternRepositoryService, JobRepositoryLive, JobRepositoryService, findAllApplicationPatterns, findApplicationPatternBySlug, findEffectPatternBySlug, findJobsByApplicationPattern, findPatternsByApplicationPattern, getCoverageStats, getJobWithPatterns, searchEffectPatterns } from "./services/database.js";
13+
export { applicationPatterns, effectPatterns, patternRelations, skillLevels, skillPatterns, skills, type ApplicationPattern as DbApplicationPattern, type CodeExample as DbCodeExample, type EffectPattern as DbEffectPattern, type NewApplicationPattern, type NewEffectPattern, type NewSkill, type NewSkillPattern, type PatternRule, type Skill as DbSkill, type SkillLevel, type SkillPattern, } from "./db/schema/index.js";
14+
export { ApplicationPatternLockedError, ApplicationPatternNotFoundError, ApplicationPatternRepositoryError, EffectPatternLockedError, EffectPatternNotFoundError, EffectPatternRepositoryError, SkillLockedError, SkillNotFoundError, SkillRepositoryError, createApplicationPatternRepository, createEffectPatternRepository, createSkillRepository, type ApplicationPatternRepository, type EffectPatternRepository, type SearchPatternsParams as RepositorySearchParams, type SearchSkillsParams, type SkillRepository, } from "./repositories/index.js";
15+
export { ApplicationPatternRepositoryLive, ApplicationPatternRepositoryService, DatabaseLayer, DatabaseService, DatabaseServiceLive, EffectPatternRepositoryLive, EffectPatternRepositoryService, findAllApplicationPatterns, findApplicationPatternBySlug, findEffectPatternBySlug, findPatternsByApplicationPattern, searchEffectPatterns } from "./services/database.js";
1616
export { splitSections } from "./splitSections.js";
1717
export { ToolkitConfig, type ToolkitConfigType } from "./services/config.js";
1818
export { LogLevel as ToolkitLogLevel, ToolkitLogger, type LogEntry as ToolkitLogEntry } from "./services/logger.js";

packages/toolkit/dist/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/toolkit/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/toolkit/dist/search.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)