Skip to content

Commit 604d214

Browse files
committed
fix: update remaining markdown-agent references to mdflow
Update User-Agent headers, comments, and temp directory prefixes from markdown-agent to mdflow.
1 parent 195744a commit 604d214

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Typed error classes for markdown-agent
2+
* Typed error classes for mdflow
33
*
44
* These errors allow library code to signal failures without calling process.exit(),
55
* enabling proper error handling in tests and when used as a library.
@@ -8,7 +8,7 @@
88
*/
99

1010
/**
11-
* Base error class for all markdown-agent errors
11+
* Base error class for all mdflow errors
1212
*/
1313
export class MarkdownAgentError extends Error {
1414
constructor(message: string, public code: number = 1) {

src/fetch.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,14 @@ describe("fetch utilities", () => {
253253
});
254254
});
255255

256-
describeNetwork("integration with markdown-agent use cases", () => {
256+
describeNetwork("integration with mdflow use cases", () => {
257257
it("fetches GitHub raw content", async () => {
258258
// Test fetching a well-known, stable GitHub file
259259
const response = await resilientFetch(
260260
"https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore",
261261
{
262262
headers: {
263-
"User-Agent": "markdown-agent/1.0",
263+
"User-Agent": "mdflow/1.0",
264264
"Accept": "text/plain, text/markdown, */*",
265265
},
266266
}

src/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export async function fetchWithRetry(
231231
/**
232232
* Resilient fetch with both timeout and retry support
233233
*
234-
* This is the recommended function for network requests in markdown-agent.
234+
* This is the recommended function for network requests in mdflow.
235235
* It combines timeout protection (to prevent hanging on tarpits) with
236236
* exponential backoff retry (to handle transient failures).
237237
*

src/imports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ async function processUrlImport(
464464
const response = await resilientFetch(url, {
465465
headers: {
466466
"Accept": "text/markdown, application/json, text/plain, */*",
467-
"User-Agent": "markdown-agent/1.0",
467+
"User-Agent": "mdflow/1.0",
468468
},
469469
});
470470

src/remote.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function fetchRemote(url: string): Promise<RemoteResult> {
6666

6767
const response = await resilientFetch(rawUrl, {
6868
headers: {
69-
"User-Agent": "markdown-agent/1.0",
69+
"User-Agent": "mdflow/1.0",
7070
"Accept": "text/plain, text/markdown, */*",
7171
},
7272
});
@@ -82,7 +82,7 @@ export async function fetchRemote(url: string): Promise<RemoteResult> {
8282
const content = await response.text();
8383

8484
// Create temp directory
85-
const tempDir = await mkdtemp(join(tmpdir(), "markdown-agent-"));
85+
const tempDir = await mkdtemp(join(tmpdir(), "mdflow-"));
8686
const fileName = extractFileName(url) || "remote.md";
8787
const localPath = join(tempDir, fileName);
8888

src/snapshot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Snapshot Testing for markdown-agent Prompts
2+
* Snapshot Testing for mdflow Prompts
33
*
44
* This file tests the full prompt expansion pipeline using Bun's built-in
55
* snapshot testing. Snapshots are stored in __snapshots__/snapshot.test.ts.snap

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export interface Logger {
113113
}
114114

115115
/**
116-
* Global configuration structure for markdown-agent
116+
* Global configuration structure for mdflow
117117
*/
118118
export interface GlobalConfig {
119119
/** Default settings per command */

0 commit comments

Comments
 (0)