MCPcopy
hub / github.com/coder/mux / extractRequestId

Function extractRequestId

src/node/runtime/sshAskpass.ts:31–34  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

29let askpassPath: string | undefined;
30
31function extractRequestId(filename: string): string | undefined {
32 const match = /^prompt\.(.+)\.txt$/.exec(filename);
33 return match?.[1];
34}
35
36async function ensureAskpassScript(): Promise<string> {
37 if (askpassPath) {

Callers 1

createAskpassSessionFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected