mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 13:04:08 +00:00
feat(coding-agent): package deduplication and collision detection
- Package deduplication: same package in global+project, project wins - Collision detection for skills, prompts, and themes with ResourceCollision type - PathMetadata tracking with parent directory lookup for file paths - Display improvements: section headers, sorted groups, accent colors for packages - pi list shows full paths below package names - Extension loader discovers files in directories without index.ts - In-memory SettingsManager properly tracks project settings fixes #645
This commit is contained in:
parent
c5c515f560
commit
50c8323590
18 changed files with 738 additions and 389 deletions
|
|
@ -62,10 +62,10 @@ import {
|
|||
import type { BashExecutionMessage, CustomMessage } from "./messages.js";
|
||||
import type { ModelRegistry } from "./model-registry.js";
|
||||
import { expandPromptTemplate, type PromptTemplate } from "./prompt-templates.js";
|
||||
import type { ResourceLoader } from "./resource-loader.js";
|
||||
import type { ResourceDiagnostic, ResourceLoader } from "./resource-loader.js";
|
||||
import type { BranchSummaryEntry, CompactionEntry, NewSessionOptions, SessionManager } from "./session-manager.js";
|
||||
import type { SettingsManager } from "./settings-manager.js";
|
||||
import type { Skill, SkillWarning } from "./skills.js";
|
||||
import type { Skill } from "./skills.js";
|
||||
import { buildSystemPrompt } from "./system-prompt.js";
|
||||
import type { BashOperations } from "./tools/bash.js";
|
||||
import { createAllTools } from "./tools/index.js";
|
||||
|
|
@ -1036,12 +1036,9 @@ export class AgentSession {
|
|||
return this._resourceLoader.getSkills().skills;
|
||||
}
|
||||
|
||||
/** Skill loading warnings captured by resource loader */
|
||||
get skillWarnings(): readonly SkillWarning[] {
|
||||
return this._resourceLoader.getSkills().diagnostics.map((diagnostic) => ({
|
||||
skillPath: diagnostic.path ?? "<unknown>",
|
||||
message: diagnostic.message,
|
||||
}));
|
||||
/** Skill loading diagnostics (warnings, errors, collisions) */
|
||||
get skillWarnings(): readonly ResourceDiagnostic[] {
|
||||
return this._resourceLoader.getSkills().diagnostics;
|
||||
}
|
||||
|
||||
get resourceLoader(): ResourceLoader {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue