contentbit 1.0.0 → 2.0.0-next.1
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 +24 -93
- package/dist/bin.js +23110 -10179
- package/dist/cli-format.d.ts +11 -3
- package/dist/cli-format.d.ts.map +1 -1
- package/dist/command-config.d.ts +7 -2
- package/dist/command-config.d.ts.map +1 -1
- package/dist/commands/adopt-routes.d.ts +47 -0
- package/dist/commands/adopt-routes.d.ts.map +1 -0
- package/dist/commands/adopt.d.ts +2 -2
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/check.d.ts +14 -0
- package/dist/commands/check.d.ts.map +1 -0
- package/dist/commands/context.d.ts +11 -0
- package/dist/commands/context.d.ts.map +1 -0
- package/dist/commands/find-markdown.d.ts +13 -0
- package/dist/commands/find-markdown.d.ts.map +1 -0
- package/dist/commands/init-blocks.d.ts +38 -0
- package/dist/commands/init-blocks.d.ts.map +1 -0
- package/dist/commands/init-ci.d.ts +16 -0
- package/dist/commands/init-ci.d.ts.map +1 -0
- package/dist/commands/init-site.d.ts +16 -0
- package/dist/commands/init-site.d.ts.map +1 -0
- package/dist/commands/init-targets.d.ts +22 -4
- package/dist/commands/init-targets.d.ts.map +1 -1
- package/dist/commands/init.d.ts +6 -5
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/package-manager.d.ts +22 -0
- package/dist/commands/package-manager.d.ts.map +1 -0
- package/dist/commands/skill-drift.d.ts +7 -0
- package/dist/commands/skill-drift.d.ts.map +1 -0
- package/dist/commands/studio.d.ts +3 -2
- package/dist/commands/studio.d.ts.map +1 -1
- package/dist/content-project.d.ts +1 -6
- package/dist/content-project.d.ts.map +1 -1
- package/dist/load-site.d.ts +20 -0
- package/dist/load-site.d.ts.map +1 -0
- package/dist/project-config.d.ts +4 -1
- package/dist/project-config.d.ts.map +1 -1
- package/dist/run.d.ts +3 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +22968 -10047
- package/dist/write-file.d.ts +7 -0
- package/dist/write-file.d.ts.map +1 -0
- package/package.json +17 -10
- package/dist/commands/brief.d.ts +0 -12
- package/dist/commands/brief.d.ts.map +0 -1
- package/dist/commands/doctor.d.ts +0 -16
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/links.d.ts +0 -9
- package/dist/commands/links.d.ts.map +0 -1
- package/dist/commands/snapshot.d.ts +0 -12
- package/dist/commands/snapshot.d.ts.map +0 -1
- package/dist/commands/stats.d.ts +0 -9
- package/dist/commands/stats.d.ts.map +0 -1
- package/dist/links-io.d.ts +0 -3
- package/dist/links-io.d.ts.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writes a file so that it holds its old content or the new one, never part of either, even when
|
|
3
|
+
* the process dies midway: the content goes to a temporary file next to it, renamed over it once
|
|
4
|
+
* written. Through a symlink, the target gets the content and the link stays. The mode is kept.
|
|
5
|
+
*/
|
|
6
|
+
export declare function writeFileAtomic(path: string, content: string): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=write-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-file.d.ts","sourceRoot":"","sources":["../src/write-file.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBlF"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentbit",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0-next.1",
|
|
4
|
+
"description": "An SEO content check for agents: report SEO and link problems on a site's built pages and Markdown before deploy, and give agents each page's context.",
|
|
5
5
|
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"broken-links",
|
|
6
8
|
"cli",
|
|
7
|
-
"
|
|
9
|
+
"internal-links",
|
|
8
10
|
"llm",
|
|
9
11
|
"markdown",
|
|
10
|
-
"
|
|
12
|
+
"seo",
|
|
13
|
+
"seo-audit",
|
|
14
|
+
"static-site",
|
|
15
|
+
"technical-seo"
|
|
11
16
|
],
|
|
12
17
|
"homepage": "https://contentbit.dev",
|
|
13
18
|
"bugs": "https://github.com/agonist/contentbit/issues",
|
|
@@ -39,15 +44,17 @@
|
|
|
39
44
|
"commander": "^15.0.0",
|
|
40
45
|
"import-meta-resolve": "^4.2.0",
|
|
41
46
|
"tinyglobby": "^0.2.10",
|
|
42
|
-
"@contentbit/blocks": "
|
|
43
|
-
"@contentbit/core": "
|
|
47
|
+
"@contentbit/blocks": "2.0.0-next.1",
|
|
48
|
+
"@contentbit/core": "2.0.0-next.1"
|
|
44
49
|
},
|
|
45
50
|
"devDependencies": {
|
|
46
|
-
"@types/node": "^
|
|
47
|
-
"esbuild": "^0.28.
|
|
51
|
+
"@types/node": "^26.6.11",
|
|
52
|
+
"esbuild": "^0.28.2",
|
|
48
53
|
"typescript": "^5.9.3",
|
|
49
|
-
"vitest": "^
|
|
50
|
-
"@contentbit/
|
|
54
|
+
"vitest": "^5.1.2",
|
|
55
|
+
"@contentbit/built-site": "0.0.0",
|
|
56
|
+
"@contentbit/project": "0.6.0",
|
|
57
|
+
"@contentbit/studio": "2.0.0-next.1"
|
|
51
58
|
},
|
|
52
59
|
"engines": {
|
|
53
60
|
"node": ">=22.18"
|
package/dist/commands/brief.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Io } from '../run.js';
|
|
2
|
-
import type { LinkOptionValues } from '../link-options.js';
|
|
3
|
-
export interface BriefCommandInput extends LinkOptionValues {
|
|
4
|
-
target: string;
|
|
5
|
-
globs: string[];
|
|
6
|
-
registry?: string;
|
|
7
|
-
noGenericBlocks?: boolean;
|
|
8
|
-
seoConfig?: string;
|
|
9
|
-
json?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare function briefCommand(input: BriefCommandInput, io: Io): Promise<number>;
|
|
12
|
-
//# sourceMappingURL=brief.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brief.d.ts","sourceRoot":"","sources":["../../src/commands/brief.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA;AAInC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAI1D,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA2CpF"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Io } from '../run.js';
|
|
2
|
-
import type { LinkOptionValues } from '../link-options.js';
|
|
3
|
-
export interface DoctorCommandInput extends LinkOptionValues {
|
|
4
|
-
globs: string[];
|
|
5
|
-
registry?: string;
|
|
6
|
-
noGenericBlocks?: boolean;
|
|
7
|
-
strictWarnings?: boolean;
|
|
8
|
-
strictSeo?: boolean;
|
|
9
|
-
json?: boolean;
|
|
10
|
-
minSectionWords?: string;
|
|
11
|
-
seoConfig?: string;
|
|
12
|
-
noSeo?: boolean;
|
|
13
|
-
watch?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function doctorCommand(input: DoctorCommandInput, io: Io): Promise<number>;
|
|
16
|
-
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA;AAYnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAsB1D,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,wBAAsB,aAAa,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAQtF"}
|
package/dist/commands/links.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Io } from '../run.js';
|
|
2
|
-
import type { LinkOptionValues } from '../link-options.js';
|
|
3
|
-
export interface LinksCommandInput extends LinkOptionValues {
|
|
4
|
-
globs: string[];
|
|
5
|
-
out?: string;
|
|
6
|
-
fix?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function linksCommand(input: LinksCommandInput, io: Io): Promise<number>;
|
|
9
|
-
//# sourceMappingURL=links.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/commands/links.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA;AAKnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG1D,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,OAAO,CAAA;CACd;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA8CpF"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Io } from '../run.js';
|
|
2
|
-
import type { LinkOptionValues } from '../link-options.js';
|
|
3
|
-
export interface SnapshotCommandInput extends LinkOptionValues {
|
|
4
|
-
globs: string[];
|
|
5
|
-
registry?: string;
|
|
6
|
-
noGenericBlocks?: boolean;
|
|
7
|
-
seoConfig?: string;
|
|
8
|
-
noSeo?: boolean;
|
|
9
|
-
revision?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function snapshotCommand(input: SnapshotCommandInput, io: Io): Promise<number>;
|
|
12
|
-
//# sourceMappingURL=snapshot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/commands/snapshot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA;AAGnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,oBAAoB,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAc1F"}
|
package/dist/commands/stats.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Io } from '../run.js';
|
|
2
|
-
export interface StatsCommandInput {
|
|
3
|
-
globs: string[];
|
|
4
|
-
registry?: string;
|
|
5
|
-
noGenericBlocks?: boolean;
|
|
6
|
-
noValidate?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function statsCommand(input: StatsCommandInput, io: Io): Promise<number>;
|
|
9
|
-
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../src/commands/stats.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,WAAW,CAAA;AAQnC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,wBAAsB,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBpF"}
|
package/dist/links-io.d.ts
DELETED
package/dist/links-io.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"links-io.d.ts","sourceRoot":"","sources":["../src/links-io.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAMrE,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAQ7E"}
|