fix: consolidate duplicate bundled-extension-paths.ts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson 2026-03-17 16:17:53 -06:00
parent 99c3375f18
commit 12e65afd36
2 changed files with 1 additions and 12 deletions

View file

@ -1,11 +0,0 @@
import { delimiter } from "node:path";
export function parseBundledExtensionPaths(
value: string | undefined,
pathDelimiter = delimiter,
): string[] {
return (value ?? "")
.split(pathDelimiter)
.map((segment) => segment.trim())
.filter(Boolean);
}

View file

@ -23,7 +23,7 @@ import { StringEnum } from "@gsd/pi-ai";
import { type ExtensionAPI, getMarkdownTheme } from "@gsd/pi-coding-agent";
import { Container, Markdown, Spacer, Text } from "@gsd/pi-tui";
import { Type } from "@sinclair/typebox";
import { parseBundledExtensionPaths } from "../shared/bundled-extension-paths.js";
import { parseBundledExtensionPaths } from "../../../bundled-extension-paths.js";
import { type AgentConfig, type AgentScope, discoverAgents } from "./agents.js";
import {
type IsolationEnvironment,