nexus-agents - v2.80.0
    Preparing search index...

    Interface ClassifyInput

    Input for trust classification.

    interface ClassifyInput {
        username: string;
        authorAssociation: string;
        sanitizedInput?: {
            content: string;
            originalLength: number;
            trustTier: "1" | "2" | "3" | "4";
            userRole:
                | "unknown"
                | "owner"
                | "maintainer"
                | "collaborator"
                | "contributor"
                | "member";
            injectionFlags: (
                | "authority_claim"
                | "instruction_pattern"
                | "system_prompt_manipulation"
                | "hidden_content"
                | "urgency_manipulation"
                | "fake_conversation"
                | "base64_encoded"
                | "external_link_instruction"
            )[];
            strippedElements: {
                tag: string;
                reason: string;
                startIndex: number;
                length: number;
            }[];
            wasModified: boolean;
            sanitizedAt: string;
        };
        config?: Partial<
            {
                allowlistedMaintainers: string[];
                failOpen: boolean;
                maxInputLength: number;
            },
        >;
    }
    Index

    Properties

    username: string

    GitHub username.

    authorAssociation: string

    GitHub API author_association value.

    sanitizedInput?: {
        content: string;
        originalLength: number;
        trustTier: "1" | "2" | "3" | "4";
        userRole:
            | "unknown"
            | "owner"
            | "maintainer"
            | "collaborator"
            | "contributor"
            | "member";
        injectionFlags: (
            | "authority_claim"
            | "instruction_pattern"
            | "system_prompt_manipulation"
            | "hidden_content"
            | "urgency_manipulation"
            | "fake_conversation"
            | "base64_encoded"
            | "external_link_instruction"
        )[];
        strippedElements: {
            tag: string;
            reason: string;
            startIndex: number;
            length: number;
        }[];
        wasModified: boolean;
        sanitizedAt: string;
    }

    Sanitized input (if content has already been through the sanitizer).

    Type Declaration

    • content: string

      Sanitized content with dangerous elements removed.

    • originalLength: number

      Original content before sanitization (for audit).

    • trustTier: "1" | "2" | "3" | "4"

      Assigned trust tier based on user role and content analysis.

    • userRole: "unknown" | "owner" | "maintainer" | "collaborator" | "contributor" | "member"

      GitHub user role of the input source.

    • injectionFlags: (
          | "authority_claim"
          | "instruction_pattern"
          | "system_prompt_manipulation"
          | "hidden_content"
          | "urgency_manipulation"
          | "fake_conversation"
          | "base64_encoded"
          | "external_link_instruction"
      )[]

      Injection patterns detected in content.

    • strippedElements: { tag: string; reason: string; startIndex: number; length: number }[]

      Elements stripped during sanitization (audit trail).

    • wasModified: boolean

      Whether any dangerous content was detected and stripped.

    • sanitizedAt: string

      Timestamp of sanitization (ISO 8601).

    config?: Partial<
        {
            allowlistedMaintainers: string[];
            failOpen: boolean;
            maxInputLength: number;
        },
    >

    Sanitizer config (for allowlist check).