Merge pull request #968 from gsd-build/fix/duplicate-bundled-extension-paths
fix: consolidate duplicate bundled-extension-paths.ts
This commit is contained in:
commit
23bc77fc56
2 changed files with 1 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue