@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 1.17 kB
TypeScript
/**
* The one decoder of the private descriptor table (senpi#4749), shared by the table's owner (`private-fds.ts`)
* and the startup stub's filler release (`private-fd-startup-fillers.ts`). Side-effect free on purpose: the stub
* runs before `private-fds.ts` adopts the table at import, so nothing here may import that module.
*/
export declare const PRIVATE_FDS_TABLE_ENV = "SENPI_PRIVATE_FDS";
/** Forwarded in place of a table that was present but yielded no names, so every hop reads the same state. */
export declare const UNPARSEABLE_TABLE = "unparseable";
/**
* A parsed table keeps its valid-name `entries`, and every entry's value in `values`: a descriptor under a
* refused name is still named by the launcher. A table that does not parse keeps only the names it still quotes.
*/
export type DecodedPrivateFdTable = {
readonly parsed: true;
readonly entries: readonly (readonly [string, unknown])[];
readonly values: readonly unknown[];
} | {
readonly parsed: false;
readonly names: readonly string[];
};
export declare function decodePrivateFdTable(encoded: string): DecodedPrivateFdTable;
//# sourceMappingURL=private-fd-table.d.ts.map