Skip to content

Reference ​

ts
import { applyPlanOps, createPlan, validatePlan } from '@adecore/plan';
import type { Plan, PlanActor, PlanOp } from '@adecore/plan/protocol';

Schemas ​

On @adecore/plan/protocol. They drop keys they do not know.

SchemaTypeSchemaType
PlanSchemaPlanPlanOpSchemaPlanOp
PlanMetaSchemaPlanMetaPlanPersonOpSchemaPlanPersonOp
PlanItemSchemaPlanItemPlanSetOpSchemaPlanSetOp
PlanSectionSchemaPlanSectionPlanNoteOpSchemaPlanNoteOp
PlanTextSchemaPlanTextPlanUnlockOpSchemaPlanUnlockOp
PlanStepSchemaPlanStepPlanAddOpSchemaPlanAddOp
PlanIdSchemaPlanIdPlanEditOpSchemaPlanEditOp
PlanItemIdSchemaPlanItemIdPlanMoveOpSchemaPlanMoveOp
PlanStepStateSchemaPlanStepStatePlanRemoveOpSchemaPlanRemoveOp
PlanChecksSchemaPlanChecksPlanMetaOpSchemaPlanMetaOp
PlanActorSchemaPlanActor
PlanKindSchemaPlanKind

On @adecore/plan, the strict draft schemas: PlanDraftMetaSchema, PlanDraftSectionSchema, PlanDraftTextSchema and PlanDraftStepSchema.

Where each subject lives ​

SubjectPage
PLAN_LIMITSPlans
States and their markersState and progress
The eight operations and PlanRefusalCodeOperations
Who may set which stepPermissions
PlanTextOptionsText for an agent

Exports ​

Every name each entry point exports, read from its source. Anything not listed is internal and may change in any release.

@adecore/plan ​

Creating, validating and changing plans, permissions, the tree helpers, Markdown and text.

NameKindSource
PlanApplyOptionstypeapply
PlanAppliedtypeapply
randomItemIdfunctionapply
applyPlanOpsfunctionapply
validatePlanfunctionapply
PlanDraftStepSchemaconstapply
PlanDraftSteptypeapply
PlanDraftTextSchemaconstapply
PlanDraftTexttypeapply
PlanDraftSectionSchemaconstapply
PlanDraftSectiontypeapply
PlanDraftItemtypeapply
PlanDraftMetaSchemaconstapply
PlanDrafttypeapply
parsePlanDraftfunctionapply
PlanCreateOptionstypeapply
createPlanfunctionapply
planToMarkdownfunctionmarkdown
parsePlanMarkdownfunctionmarkdown
PlanVerdicttypepermissions
canApplyfunctionpermissions
canDeletePlanfunctionpermissions
PLAN_STATE_MARKERSconsttext
PLAN_LEGENDconsttext
PlanTextOptionstypetext
progressTextfunctiontext
renderPlanTextfunctiontext
PlanRefusalCodetypetree
PlanRefusaltypetree
refusefunctiontree
findItemfunctiontree
allItemsfunctiontree
allStepsfunctiontree
isParentStepfunctiontree
effectiveChecksfunctiontree
stepStatefunctiontree
PlanProgresstypetree
planProgressfunctiontree
leafStepsfunctiontree
activeStepIdsfunctiontree

@adecore/plan/protocol ​

The schemas and types of a plan and its operations, and PLAN_LIMITS.

NameKindSource
PLAN_LIMITSconstprotocol
PlanItemIdSchemaconstprotocol
PlanItemIdtypeprotocol
PlanIdSchemaconstprotocol
PlanIdtypeprotocol
PlanStepStateSchemaconstprotocol
PlanStepStatetypeprotocol
PlanChecksSchemaconstprotocol
PlanCheckstypeprotocol
PlanActorSchemaconstprotocol
PlanActortypeprotocol
PlanKindSchemaconstprotocol
PlanKindtypeprotocol
PlanMetaSchemaconstprotocol
PlanMetatypeprotocol
PlanStepSchemaconstprotocol
PlanSteptypeprotocol
PlanTextSchemaconstprotocol
PlanTexttypeprotocol
PlanSectionSchemaconstprotocol
PlanSectiontypeprotocol
PlanItemSchemaconstprotocol
PlanItemtypeprotocol
PlanSchemaconstprotocol
Plantypeprotocol
PlanSetOpSchemaconstprotocol
PlanSetOptypeprotocol
PlanNoteOpSchemaconstprotocol
PlanNoteOptypeprotocol
PlanUnlockOpSchemaconstprotocol
PlanUnlockOptypeprotocol
PlanAddOpSchemaconstprotocol
PlanAddOptypeprotocol
PlanEditOpSchemaconstprotocol
PlanEditOptypeprotocol
PlanMoveOpSchemaconstprotocol
PlanMoveOptypeprotocol
PlanRemoveOpSchemaconstprotocol
PlanRemoveOptypeprotocol
PlanMetaOpSchemaconstprotocol
PlanMetaOptypeprotocol
PlanPersonOpSchemaconstprotocol
PlanPersonOptypeprotocol
PlanOpSchemaconstprotocol
PlanOptypeprotocol

Licenses and third-party notices are listed in each package.