@cldmv/fix-headers 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -6
- package/dist/cli.mjs +57 -0
- package/dist/config/load.mjs +2 -0
- package/dist/constants.mjs +2 -0
- package/dist/core/declaration-sources.mjs +4 -0
- package/dist/core/file-discovery.mjs +2 -0
- package/dist/core/fix-headers.mjs +3 -0
- package/dist/core/ignore-rules.mjs +2 -0
- package/dist/detect/project.mjs +2 -0
- package/dist/detectors/c.mjs +6 -0
- package/dist/detectors/css.mjs +2 -0
- package/dist/detectors/go.mjs +2 -0
- package/dist/detectors/html.mjs +2 -0
- package/dist/detectors/index.mjs +3 -0
- package/dist/detectors/json.mjs +2 -0
- package/dist/detectors/markdown.mjs +2 -0
- package/dist/detectors/node.mjs +2 -0
- package/dist/detectors/php.mjs +2 -0
- package/dist/detectors/python.mjs +2 -0
- package/dist/detectors/rust.mjs +2 -0
- package/dist/detectors/top-lines.mjs +3 -0
- package/dist/detectors/yaml.mjs +2 -0
- package/dist/drivers/go.mjs +2 -0
- package/dist/drivers/index.mjs +2 -0
- package/dist/drivers/node.mjs +2 -0
- package/dist/drivers/php.mjs +2 -0
- package/dist/drivers/python.mjs +2 -0
- package/dist/drivers/rust.mjs +2 -0
- package/dist/drivers/shared.mjs +4 -0
- package/dist/header/dates.mjs +2 -0
- package/dist/header/fields.mjs +2 -0
- package/dist/header/parser.mjs +21 -0
- package/dist/header/syntax.mjs +4 -0
- package/dist/header/template.mjs +2 -0
- package/dist/index.cjs +16 -16
- package/dist/index.mjs +2 -37
- package/dist/utils/diff.mjs +5 -0
- package/dist/utils/fs.mjs +2 -0
- package/dist/utils/git.mjs +4 -0
- package/dist/utils/text.mjs +2 -0
- package/dist/utils/time.mjs +2 -0
- package/package.json +9 -12
- package/types/src/cli.d.mts +15 -0
- package/types/src/config/load.d.mts +15 -0
- package/types/src/constants.d.mts +15 -0
- package/types/src/core/declaration-sources.d.mts +58 -0
- package/types/src/core/file-discovery.d.mts +15 -0
- package/types/src/core/fix-headers.d.mts +16 -0
- package/types/src/core/ignore-rules.d.mts +15 -0
- package/types/src/detect/project.d.mts +15 -0
- package/types/src/detectors/c.d.mts +15 -0
- package/types/src/detectors/css.d.mts +15 -0
- package/types/src/detectors/go.d.mts +15 -0
- package/types/src/detectors/html.d.mts +15 -0
- package/types/src/detectors/index.d.mts +15 -0
- package/types/src/detectors/json.d.mts +15 -0
- package/types/src/detectors/markdown.d.mts +15 -0
- package/types/src/detectors/node.d.mts +15 -0
- package/types/src/detectors/php.d.mts +15 -0
- package/types/src/detectors/python.d.mts +15 -0
- package/types/src/detectors/rust.d.mts +15 -0
- package/types/src/detectors/top-lines.d.mts +15 -0
- package/types/src/detectors/yaml.d.mts +15 -0
- package/types/src/drivers/go.d.mts +15 -0
- package/types/src/drivers/index.d.mts +15 -0
- package/types/src/drivers/node.d.mts +15 -0
- package/types/src/drivers/php.d.mts +15 -0
- package/types/src/drivers/python.d.mts +15 -0
- package/types/src/drivers/rust.d.mts +15 -0
- package/types/src/drivers/shared.d.mts +15 -0
- package/types/src/header/dates.d.mts +15 -0
- package/types/src/header/fields.d.mts +15 -0
- package/types/src/header/parser.d.mts +15 -0
- package/types/src/header/syntax.d.mts +15 -0
- package/types/src/header/template.d.mts +15 -0
- package/types/src/index.d.mts +15 -0
- package/types/src/utils/diff.d.mts +2 -1
- package/types/src/utils/fs.d.mts +15 -0
- package/types/src/utils/git.d.mts +15 -0
- package/types/src/utils/text.d.mts +2 -1
- package/types/src/utils/time.d.mts +2 -1
- package/bin/fix-headers.mjs +0 -91
- package/types/devcheck.d.mts +0 -1
- package/types/index.d.mts +0 -2
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/detectors/node.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:49:52-08:00 (1795643392)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* Whether a path names a TypeScript declaration file (`.d.ts`, `.d.mts` or `.d.cts`).
|
|
3
18
|
* @param {string} filePath - File path.
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/detectors/php.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:24-08:00 (1795640844)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
export namespace detector {
|
|
2
17
|
export let id: string;
|
|
3
18
|
export { extensions };
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/detectors/python.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:24-08:00 (1795640844)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
export namespace detector {
|
|
2
17
|
export let id: string;
|
|
3
18
|
export { extensions };
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/detectors/rust.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:24-08:00 (1795640844)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
export namespace detector {
|
|
2
17
|
export let id: string;
|
|
3
18
|
export { extensions };
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/detectors/top-lines.d.mts
|
|
5
|
+
* @Date: 2026-10-31T12:00:00-07:00 (1793473200)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:25-08:00 (1795640845)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* Whether a comment line is a vi/Vim/ex modeline, in either of Vim's forms:
|
|
3
18
|
* `vim: set ts=4 sw=4:` (`se`/`set`, options, a closing `:`, then any text) or
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/detectors/yaml.d.mts
|
|
5
|
+
* @Date: 2026-03-01T18:28:31-08:00 (1772418511)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:25-08:00 (1795640845)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
export namespace detector {
|
|
2
17
|
export let id: string;
|
|
3
18
|
export { extensions };
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/drivers/go.d.mts
|
|
5
|
+
* @Date: 2026-09-28T19:20:00-07:00 (1790648400)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:25-08:00 (1795640845)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/** @type {import("./index.mjs").ManifestDriver} */
|
|
2
17
|
export const driver: import("./index.mjs").ManifestDriver;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/drivers/index.d.mts
|
|
5
|
+
* @Date: 2026-09-28T19:20:00-07:00 (1790648400)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:25-08:00 (1795640845)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* Gets a driver by id.
|
|
3
18
|
* @param {string} id - Driver id.
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/drivers/node.d.mts
|
|
5
|
+
* @Date: 2026-09-28T19:20:00-07:00 (1790648400)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:25-08:00 (1795640845)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/** @type {import("./index.mjs").ManifestDriver} */
|
|
2
17
|
export const driver: import("./index.mjs").ManifestDriver;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/drivers/php.d.mts
|
|
5
|
+
* @Date: 2026-09-28T19:20:00-07:00 (1790648400)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:25-08:00 (1795640845)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/** @type {import("./index.mjs").ManifestDriver} */
|
|
2
17
|
export const driver: import("./index.mjs").ManifestDriver;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/drivers/python.d.mts
|
|
5
|
+
* @Date: 2026-09-28T19:20:00-07:00 (1790648400)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/** @type {import("./index.mjs").ManifestDriver} */
|
|
2
17
|
export const driver: import("./index.mjs").ManifestDriver;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/drivers/rust.d.mts
|
|
5
|
+
* @Date: 2026-09-28T19:20:00-07:00 (1790648400)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/** @type {import("./index.mjs").ManifestDriver} */
|
|
2
17
|
export const driver: import("./index.mjs").ManifestDriver;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/drivers/shared.d.mts
|
|
5
|
+
* @Date: 2026-09-28T19:20:00-07:00 (1790648400)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* Detects a driver's manifests in one folder. The folder counts as a project of the driver's
|
|
3
18
|
* kind when at least one of the manifests is present and readable; its content is not
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/header/dates.d.mts
|
|
5
|
+
* @Date: 2026-09-28T09:16:17-07:00 (1790612177)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* Picks the earliest of several labelled date payloads. Missing payloads are skipped and the
|
|
3
18
|
* earlier entry wins a tie, so callers list their preferred source first.
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/header/fields.d.mts
|
|
5
|
+
* @Date: 2026-09-28T09:14:18-07:00 (1790612058)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* Parses every known field out of a header block. Values are the text as written in
|
|
3
18
|
* the header (dates keep their `date (timestamp)` form); a field that is missing or
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/header/parser.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* Splits the text of an existing header block that is not header fields from the fields.
|
|
3
18
|
* `foreign` holds every line that is neither a field, a separator next to a field, nor an
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/header/syntax.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* @fileoverview Header comment syntax helpers for mapping file extensions to comment styles.
|
|
3
18
|
* @module fix-headers/header/syntax
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/header/template.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* @fileoverview Header template builder used to generate normalized file headers.
|
|
3
18
|
* @module fix-headers/header/template
|
package/types/src/index.d.mts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/index.d.mts
|
|
5
|
+
* @Date: 2026-03-01T13:34:00-08:00 (1772400840)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* @fileoverview Public module API exposing a single function for header updates.
|
|
3
18
|
* @module fix-headers
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
* @Project: @cldmv/fix-headers
|
|
4
|
-
* @Filename: src/utils/diff.
|
|
4
|
+
* @Filename: types/src/utils/diff.d.mts
|
|
5
5
|
* @Date: 2026-09-28T09:14:18-07:00 (1790612058)
|
|
6
6
|
* @Author: Nate Corcoran <CLDMV>
|
|
7
7
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* @fileoverview Minimal line-level unified diff for header blocks. Header blocks are a
|
|
17
18
|
* handful of lines, so a plain longest-common-subsequence table is fast enough and keeps
|
package/types/src/utils/fs.d.mts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/utils/fs.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* @fileoverview Filesystem helpers for project discovery and recursive scanning.
|
|
3
18
|
* @module fix-headers/utils/fs
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @Project: @cldmv/fix-headers
|
|
4
|
+
* @Filename: types/src/utils/git.d.mts
|
|
5
|
+
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
|
+
* @Author: Nate Corcoran <CLDMV>
|
|
7
|
+
* @Email: <Shinrai@users.noreply.github.com>
|
|
8
|
+
* -----
|
|
9
|
+
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
10
|
+
* @Last modified time: 2026-11-25T13:07:26-08:00 (1795640846)
|
|
11
|
+
* -----
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
/**
|
|
2
17
|
* @fileoverview Git helpers for author identity and file history metadata.
|
|
3
18
|
* @module fix-headers/utils/git
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
* @Project: @cldmv/fix-headers
|
|
4
|
-
* @Filename: src/utils/text.
|
|
4
|
+
* @Filename: types/src/utils/text.d.mts
|
|
5
5
|
* @Date: 2026-10-31T16:30:00-07:00 (1793489400)
|
|
6
6
|
* @Author: Nate Corcoran <CLDMV>
|
|
7
7
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* @fileoverview String checks written as index scans instead of regular expressions, so they
|
|
17
18
|
* run in linear time on any input (the regex forms backtrack polynomially on long runs of
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
* @Project: @cldmv/fix-headers
|
|
4
|
-
* @Filename: src/utils/time.
|
|
4
|
+
* @Filename: types/src/utils/time.d.mts
|
|
5
5
|
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
6
6
|
* @Author: Nate Corcoran <CLDMV>
|
|
7
7
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
+
|
|
15
16
|
/**
|
|
16
17
|
* @fileoverview Date/time helpers used for header timestamp formatting.
|
|
17
18
|
* @module fix-headers/utils/time
|