UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

29 lines • 1.33 kB
import { posix } from "node:path"; type PathRules = typeof posix; /** * Vendored contract: the old-location breadcrumb the OmO desktop leaves at a data root it moved * (omo-desktop-app `packages/shared/src/appHomePrepare.ts`, step M6 of the data-home move, #1829). * Both repositories validate it identically and commit the same v1 fixture; any change bumps * `schemaVersion` and lands in both. senpi#2898. */ export declare const MOVED_BREADCRUMB_FILE = "omo-desktop-moved.json"; export declare const MOVED_BREADCRUMB_KIND = "omo-desktop-moved"; export declare const MOVED_BREADCRUMB_SCHEMA_VERSION = 1; export interface MovedBreadcrumb { /** Absolute, normalized path of the new data root, on this host's path rules. */ readonly movedTo: string; /** The moved home's id; its ownership marker must carry the same one. */ readonly homeId: string; /** The moved prefixes, relative to the breadcrumb's directory, as path segments. */ readonly moved: readonly (readonly string[])[]; } export type BreadcrumbParse = { readonly kind: "valid"; readonly breadcrumb: MovedBreadcrumb; } | { readonly kind: "ignored"; readonly reason: string; }; export declare function parseMovedBreadcrumb(raw: unknown, host?: PathRules): BreadcrumbParse; export {}; //# sourceMappingURL=breadcrumb.d.ts.map