@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
64 lines (63 loc) • 4.2 kB
TypeScript
import type { BookCommitment } from './_base/BookCommitment';
import type { CommitmentDefinition } from './_base/CommitmentDefinition';
import { ActionCommitmentDefinition } from './ACTION/ACTION';
import { DeleteCommitmentDefinition } from './DELETE/DELETE';
import { FormatCommitmentDefinition } from './FORMAT/FORMAT';
import { GoalCommitmentDefinition } from './GOAL/GOAL';
import { KnowledgeCommitmentDefinition } from './KNOWLEDGE/KNOWLEDGE';
import { MemoryCommitmentDefinition } from './MEMORY/MEMORY';
import { InitialMessageCommitmentDefinition } from './MESSAGE/InitialMessageCommitmentDefinition';
import { MessageCommitmentDefinition } from './MESSAGE/MESSAGE';
import { MetaCommitmentDefinition } from './META/META';
import { MetaColorCommitmentDefinition } from './META_COLOR/META_COLOR';
import { MetaImageCommitmentDefinition } from './META_IMAGE/META_IMAGE';
import { ModelCommitmentDefinition } from './MODEL/MODEL';
import { NoteCommitmentDefinition } from './NOTE/NOTE';
import { PersonaCommitmentDefinition } from './PERSONA/PERSONA';
import { RuleCommitmentDefinition } from './RULE/RULE';
import { SampleCommitmentDefinition } from './SAMPLE/SAMPLE';
import { ScenarioCommitmentDefinition } from './SCENARIO/SCENARIO';
import { StyleCommitmentDefinition } from './STYLE/STYLE';
import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplementedCommitmentDefinition';
/**
* Registry of all available commitment definitions
* This array contains instances of all commitment definitions
* This is the single source of truth for all commitments in the system
*
* @private Use functions to access commitments instead of this array directly
*/
export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, MemoryCommitmentDefinition, MemoryCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
/**
* Gets a commitment definition by its type
* @param type The commitment type to look up
* @returns The commitment definition or null if not found
*
* @public exported from `@promptbook/core`
*/
export declare function getCommitmentDefinition(type: BookCommitment): CommitmentDefinition | null;
/**
* Gets all available commitment definitions
* @returns Array of all commitment definitions
*
* @public exported from `@promptbook/core`
*/
export declare function getAllCommitmentDefinitions(): ReadonlyArray<CommitmentDefinition>;
/**
* Gets all available commitment types
* @returns Array of all commitment types
*
* @public exported from `@promptbook/core`
*/
export declare function getAllCommitmentTypes(): ReadonlyArray<BookCommitment>;
/**
* Checks if a commitment type is supported
* @param type The commitment type to check
* @returns True if the commitment type is supported
*
* @public exported from `@promptbook/core`
*/
export declare function isCommitmentSupported(type: BookCommitment): boolean;
/**
* TODO: [🧠] Maybe create through standardized $register
* Note: [💞] Ignore a discrepancy between file name and entity name
*/