Spaces:
Sleeping
Sleeping
File size: 558 Bytes
fb4d8fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { VERSION } from "../../version.js";
import { resolveCliChannelOptions } from "../channel-options.js";
export type ProgramContext = {
programVersion: string;
channelOptions: string[];
messageChannelOptions: string;
agentChannelOptions: string;
};
export function createProgramContext(): ProgramContext {
const channelOptions = resolveCliChannelOptions();
return {
programVersion: VERSION,
channelOptions,
messageChannelOptions: channelOptions.join("|"),
agentChannelOptions: ["last", ...channelOptions].join("|"),
};
}
|