Anchorage API reference
    Preparing search index...

    The thread-scoped state store the goal record lives in — structurally core's ResolvedGoalStore (getState/setState/deleteState over a (threadId, type) pair), which core does not export through a mapped subpath, so it is mirrored. A host injects createSignalStorageDomains(binding).threadState (a D1ThreadStateStorage) — the SAME domain the durable goal step resolves through resolveGoalStore, so a record this surface writes is what the loop reads.

    interface ObjectiveStore {
        deleteState(args: { threadId: string; type: string }): Promise<void>;
        getState<T = unknown>(
            args: { threadId: string; type: string },
        ): Promise<T | undefined>;
        setState(
            args: { threadId: string; type: string; value: GoalObjectiveRecord },
        ): Promise<void>;
    }
    Index

    Methods

    • Parameters

      • args: { threadId: string; type: string; value: GoalObjectiveRecord }

      Returns Promise<void>