pynydus.common.enums

Centralised StrEnum definitions for the Nydus project.

String-valued identifiers used across production code and tests are defined here so imports resolve to a single source of truth.

Module Contents

Classes

AgentType

Supported agent platforms.

ModuleType

Top-level module types in an Egg (skill, memory, secret).

SecretKind

Kind of redacted value: credential (gitleaks) or PII (Presidio).

InjectionMode

How a secret value is provided at hatch time.

MemoryLabel

Canonical labels for memory records, assigned by spawners.

HatchMode

Hatching mode: rebuild from structured modules or passthrough raw snapshot.

DiffChange

Type of change reported in a diff entry.

Directive

All recognised Nydusfile directives.

Data

API

class pynydus.common.enums.AgentType

Bases: enum.StrEnum

Supported agent platforms.

OPENCLAW

‘openclaw’

ZEROCLAW

‘zeroclaw’

LETTA

‘letta’

class pynydus.common.enums.ModuleType

Bases: enum.StrEnum

Top-level module types in an Egg (skill, memory, secret).

SKILL

‘skill’

MEMORY

‘memory’

SECRET

‘secret’

pynydus.common.enums.Bucket

None

class pynydus.common.enums.SecretKind

Bases: enum.StrEnum

Kind of redacted value: credential (gitleaks) or PII (Presidio).

CREDENTIAL

‘credential’

PII

‘pii’

class pynydus.common.enums.InjectionMode

Bases: enum.StrEnum

How a secret value is provided at hatch time.

ENV

‘env’

SUBSTITUTION

‘substitution’

class pynydus.common.enums.MemoryLabel

Bases: enum.StrEnum

Canonical labels for memory records, assigned by spawners.

PERSONA

‘persona’

FLOW

‘flow’

CONTEXT

‘context’

STATE

‘state’

class pynydus.common.enums.HatchMode

Bases: enum.StrEnum

Hatching mode: rebuild from structured modules or passthrough raw snapshot.

REBUILD

‘rebuild’

PASSTHROUGH

‘passthrough’

class pynydus.common.enums.DiffChange

Bases: enum.StrEnum

Type of change reported in a diff entry.

ADDED

‘added’

REMOVED

‘removed’

MODIFIED

‘modified’

class pynydus.common.enums.Directive

Bases: enum.StrEnum

All recognised Nydusfile directives.

FROM

‘FROM’

SOURCE

‘SOURCE’

REDACT

‘REDACT’

EXCLUDE

‘EXCLUDE’

LABEL

‘LABEL’

ADD

‘ADD’

SET

‘SET’

REMOVE

‘REMOVE’

property is_singular: bool

Whether this directive takes a single argument (FROM or REDACT).

Returns: True if this member is FROM or REDACT.

property is_merge: bool

Whether this directive is a merge operation (ADD, SET, REMOVE).

Returns: True if this member is ADD, SET, or REMOVE.