@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
23 lines • 1.21 kB
TypeScript
import type { Extension } from "./extensions/types.ts";
import type { PathMetadata } from "./package-manager.ts";
import type { SourceScope } from "./source-info.ts";
export interface DiscoveredResourceEntry {
readonly path: string;
readonly extensionPath: string;
/** Scope the handler pinned explicitly; an entry without one inherits it from the contributor. */
readonly scope?: SourceScope;
}
export interface DiscoveredResourcePath {
readonly path: string;
readonly metadata: PathMetadata;
}
type ContributingExtension = Pick<Extension, "path" | "sourceInfo">;
export declare function getExtensionSourceLabel(extensionPath: string): string;
/**
* Turn discover results into loader metadata. A contributed path is `system` when the handler said so,
* or when it comes from a builtin extension, or when a system package contributes a path inside its
* own payload; everything else keeps the `temporary` scope contributed paths always had.
*/
export declare function resolveDiscoveredResourcePaths(entries: readonly DiscoveredResourceEntry[], extensions: readonly ContributingExtension[]): DiscoveredResourcePath[];
export {};
//# sourceMappingURL=discovered-resource-scope.d.ts.map