Merge pull request #968 from gsd-build/fix/duplicate-bundled-extension-paths

fix: consolidate duplicate bundled-extension-paths.ts
This commit is contained in:
TÂCHES 2026-03-17 16:23:11 -06:00 committed by GitHub
commit 23bc77fc56
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,