Adds example configuration files for account age, account threshold, global allowlist, handle checks, post checks, and profile checks. These files contain example values and instructions for configuration.
···11+import type { AccountAgeCheck } from "../src/types.js";
22+33+/**
44+ * Account age monitoring configurations
55+ *
66+ * This file contains example values. Copy to accountAge.ts and configure with your checks.
77+ */
88+export const ACCOUNT_AGE_CHECKS: AccountAgeCheck[] = [
99+ // Example configuration:
1010+ // {
1111+ // monitoredDIDs: ["did:plc:example123"],
1212+ // anchorDate: "2025-01-15",
1313+ // maxAgeDays: 7,
1414+ // label: "new-account",
1515+ // comment: "Account created within monitored window",
1616+ // },
1717+];
+20
rules/accountThreshold.ts
···11+import type { AccountThresholdConfig } from "../src/types.js";
22+33+/**
44+ * Account threshold configurations for automatic labeling
55+ *
66+ * This file contains example values. Copy to accountThreshold.ts and configure with your thresholds.
77+ */
88+export const ACCOUNT_THRESHOLD_CONFIGS: AccountThresholdConfig[] = [
99+ // Example configuration:
1010+ // {
1111+ // labels: ["example-label"],
1212+ // threshold: 3,
1313+ // accountLabel: "repeat-offender",
1414+ // accountComment: "Account exceeded threshold",
1515+ // windowDays: 7,
1616+ // reportAcct: false,
1717+ // commentAcct: false,
1818+ // toLabel: true,
1919+ // },
2020+];
+8
rules/constants.ts
···11+/**
22+ * Global allowlist for accounts that should bypass all checks
33+ *
44+ * This file contains example values. Copy to constants.ts and configure with your DIDs.
55+ */
66+export const GLOBAL_ALLOW: string[] = [
77+ // Example: "did:plc:example123",
88+];
+18
rules/handles.ts
···11+import type { Checks } from "../src/types.js";
22+33+/**
44+ * Handle-based moderation checks
55+ *
66+ * This file contains example values. Copy to handles.ts and configure with your checks.
77+ */
88+export const HANDLE_CHECKS: Checks[] = [
99+ // Example check:
1010+ // {
1111+ // label: "example-label",
1212+ // comment: "Example check found in handle",
1313+ // reportAcct: false,
1414+ // commentAcct: false,
1515+ // toLabel: true,
1616+ // check: new RegExp("example-pattern", "i"),
1717+ // },
1818+];
+23
rules/posts.ts
···11+import type { Checks } from "../src/types.js";
22+33+/**
44+ * Post content moderation checks
55+ *
66+ * This file contains example values. Copy to posts.ts and configure with your checks.
77+ */
88+export const POST_CHECKS: Checks[] = [
99+ // Example check:
1010+ // {
1111+ // label: "example-label",
1212+ // comment: "Example content found in post",
1313+ // reportAcct: false,
1414+ // commentAcct: false,
1515+ // toLabel: true,
1616+ // check: new RegExp("example-pattern", "i"),
1717+ // },
1818+];
1919+2020+/**
2121+ * Link shortener detection pattern
2222+ */
2323+export const LINK_SHORTENER = new RegExp("", "i");
+20
rules/profiles.ts
···11+import type { Checks } from "../src/types.js";
22+33+/**
44+ * Profile-based moderation checks
55+ *
66+ * This file contains example values. Copy to profiles.ts and configure with your checks.
77+ */
88+export const PROFILE_CHECKS: Checks[] = [
99+ // Example check:
1010+ // {
1111+ // label: "example-label",
1212+ // comment: "Example content found in profile",
1313+ // description: true,
1414+ // displayName: true,
1515+ // reportAcct: false,
1616+ // commentAcct: false,
1717+ // toLabel: true,
1818+ // check: new RegExp("example-pattern", "i"),
1919+ // },
2020+];