@apotech-os/support-kit 2.10.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -305,6 +305,13 @@ interface ReviseNodeConfig {
305
305
  provider: string;
306
306
  reasoning: ReasoningEffort;
307
307
  }
308
+ /**
309
+ * The steps with a Langfuse prompt of their own — every LLM step except
310
+ * `revise`, which re-runs the writer with a fixed correction turn
311
+ * (`graph/revise.ts`) and so speaks with `prompts.draft`, never a prompt of
312
+ * its own.
313
+ */
314
+ type PromptTableKey = Exclude<NodeKey, 'revise'>;
308
315
  interface AgentProfile {
309
316
  /** 'customer' | 'partner' | 'social' … — the tenant identifier. */
310
317
  key: string;
@@ -344,7 +351,7 @@ interface AgentProfile {
344
351
  evaluate: EvaluateNodeConfig | null;
345
352
  revise: ReviseNodeConfig | null;
346
353
  };
347
- prompts: Record<NodeKey, PromptRef>;
354
+ prompts: Record<PromptTableKey, PromptRef>;
348
355
  /** Tool names resolved against the registry (§6.2). */
349
356
  tools: string[];
350
357
  guardrails: {
@@ -1528,13 +1535,11 @@ type PromptSlot = (typeof PROMPT_SLOTS)[number];
1528
1535
  * are two `PromptSlot`s nothing ever reads a fallback for (they resolve by
1529
1536
  * bare NAME off the settings fields' own defaults, never through a
1530
1537
  * `PromptRef.fallback`), so accepting them here silently drops whatever a
1531
- * caller sets. `revise` is the opposite gap: not a `PromptSlot` at all, yet
1532
- * the one node `buildPromptsTable` DOES bind a `PromptRef` for — before this
1533
- * type existed, a caller had no way to express its fallback under a Langfuse
1534
- * outage with a cold cache, the one resolved prompt §3.7's level 3 leaves
1535
- * unreachable.
1538
+ * caller sets. `revise` is NOT a key either: that step re-runs the writer
1539
+ * with a fixed correction turn (`graph/revise.ts`), so it resolves no
1540
+ * prompt of its own to fall back for.
1536
1541
  */
1537
- type PromptFallbackSlot = Exclude<PromptSlot, 'shared/style-email' | 'shared/style-whatsapp'> | 'revise';
1542
+ type PromptFallbackSlot = Exclude<PromptSlot, 'shared/style-email' | 'shared/style-whatsapp'>;
1538
1543
  interface PromptNameConfig {
1539
1544
  /**
1540
1545
  * Required, not defaulted (H3, T25 review): §4's checklist for a new
@@ -1551,7 +1556,7 @@ interface PromptNameConfig {
1551
1556
  /**
1552
1557
  * §3.2's `config.defaults.prompts` — the level-3 in-code fallback TEXT
1553
1558
  * (`PromptRef.fallback`, §3.7 point 3) a caller can override per slot,
1554
- * read by `buildPromptsTable` (triage/escalation/evaluation/revise) and
1559
+ * read by `buildPromptsTable` (triage/escalation/evaluation) and
1555
1560
  * by `suggest-prompt`/`run-diff-analysis`'s own meta-prompt constants
1556
1561
  * (`suggest`/`diff-analysis`). Typed as `PromptFallbackSlot`, not
1557
1562
  * `PromptSlot` (M7): the accepted key set must match what is actually
@@ -1563,15 +1568,6 @@ interface PromptNameConfig {
1563
1568
  }
1564
1569
  /** Resolve one slot to its Langfuse prompt name for a given `buildSupportPipeline` config. */
1565
1570
  declare function resolvePromptName(slot: PromptSlot, config: PromptNameConfig): string;
1566
- /**
1567
- * `revise` has no `PROMPT_SLOTS` entry (see the module doc — it is not one
1568
- * of the seven §3.7 slots) but resolves via the exact same
1569
- * `promptNames?.revise ?? <prefix>revise` pattern the other slots use. One
1570
- * function so `buildPromptsTable` (the graph's own consumer) and
1571
- * `mergeRole`'s `role.prompts` allowlist (T25) cannot drift apart on how
1572
- * that name is computed.
1573
- */
1574
- declare function resolveReviseName(config: PromptNameConfig): string;
1575
1571
 
1576
1572
  /**
1577
1573
  * `category` (ex-`Category`) — spec §3.4.
@@ -1881,11 +1877,14 @@ interface SupportKitNodeSettings {
1881
1877
  escalationEnabled?: boolean;
1882
1878
  }
1883
1879
  /**
1884
- * `draft` is the one step with no `prompt` of its own: it speaks with the
1880
+ * The two steps with no `prompt` of their own. `draft` speaks with the
1885
1881
  * resolved agent's voice, so its Langfuse binding lives on the `agent`
1886
1882
  * record (§3.4, `functions/records.ts`'s `draftPromptRefFor`) and is chosen
1887
- * per agent on the AgentsPage, not per install on the SettingsPage. A
1888
- * `prompt` key here would be written by an operator and read by nobody.
1883
+ * per agent on the AgentsPage, not per install on the SettingsPage.
1884
+ * `revise` re-runs that same writer against the judge's objection
1885
+ * (`graph/nodes/revise.ts`), so it too has only the writer's prompt to
1886
+ * speak with — a `prompt` key on either would be written by an operator
1887
+ * and read by nobody.
1889
1888
  */
1890
1889
  type SupportKitDraftNodeSettings = Omit<SupportKitNodeSettings, 'prompt'>;
1891
1890
  /**
@@ -1905,7 +1904,7 @@ interface SupportKitSettings {
1905
1904
  escalate?: SupportKitNodeSettings | null;
1906
1905
  draft?: SupportKitDraftNodeSettings | null;
1907
1906
  evaluate?: SupportKitNodeSettings | null;
1908
- revise?: SupportKitNodeSettings | null;
1907
+ revise?: SupportKitDraftNodeSettings | null;
1909
1908
  };
1910
1909
  unknownTag: string;
1911
1910
  handledTag: string;
@@ -1929,7 +1928,7 @@ interface SupportKitSettings {
1929
1928
  renameTo: string;
1930
1929
  statsTimezone: string;
1931
1930
  }
1932
- declare function settingsToProfile(settings: SupportKitSettings, prompts: Record<NodeKey, PromptRef>): AgentProfile;
1931
+ declare function settingsToProfile(settings: SupportKitSettings, prompts: Record<PromptTableKey, PromptRef>): AgentProfile;
1933
1932
 
1934
1933
  /**
1935
1934
  * `SupportKitFunctionConfig` — what each of the four T22 manifest fragments
@@ -1986,7 +1985,7 @@ interface SupportPipelineConfig extends SupportKitFunctionConfig {
1986
1985
  * one changes.
1987
1986
  *
1988
1987
  * `defaults.prompts` is wired to its real consumers: `buildPromptsTable`
1989
- * (triage/escalate/evaluate/revise's `PromptRef.fallback`) and
1988
+ * (triage/escalate/evaluate's `PromptRef.fallback`) and
1990
1989
  * `suggest-prompt`/`run-diff-analysis`'s own meta-prompt fallback.
1991
1990
  *
1992
1991
  * `defaults.channel` (DECISION 3, T25 — see the migration progress
@@ -2066,4 +2065,4 @@ interface SupportPipelineFragments {
2066
2065
  }
2067
2066
  declare function buildSupportPipeline(config: SupportPipelineConfig): SupportPipelineFragments;
2068
2067
 
2069
- export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type Budget, CANDIDATE_MIN_LENGTH, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CompletionRequest, type CompletionResult, type Conversation, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, type GeneratedResponseStatus, type GuardrailId, InvalidStatusTransitionError, type JsonSchema, type JudgedReply, type KnowledgeHit, type LlmPort, type Message, MissingPromptError, NODE_NAMES, type Node, type NodeCost, type NodeDeps, type NodeKey, type NodeName, type NodeStep, type OrderSummary, type OutboundReply, type Outcome, PROMPT_SLOTS, type PlatformPromptReader, type PortName, type PromptCacheEntry, type PromptCachePort, type PromptDegradedEvent, type PromptNameConfig, type PromptPort, type PromptRef, type PromptReference, type PromptResolverDeps, type PromptSlot, type ProposedAction, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type ReasoningEffort, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_KIT_SETTINGS_FIELDS, type SettingsIssueKey, type SettingsValidationIssue, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportKitNodeSettings, type SupportKitSettings, type SupportPipelineConfig, type SupportPipelineFragments, type TicketRunState, type ToolCallRecord, type ToolCallRequest, type ToolContext, type ToolPolicy, type ToolSpec, type TrackingSummary, type TriageNodeConfig, UNCERTAINTY_MARKERS, type Usage, type Verdict, type VerifyReplyInput, type VerifyReplyResult, WHATSAPP_MODES, WHATSAPP_NOTE_CHEVRON, type WhatsappMode, agentRecord, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, createBudget, createPromptResolver, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, reclaimStalledSend, requiresFollowup, resolvePromptName, resolveReviseName, runGuardrails, runTicket, settingsToProfile, stopOptOut, targetRefFor, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };
2068
+ export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type Budget, CANDIDATE_MIN_LENGTH, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CompletionRequest, type CompletionResult, type Conversation, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, type GeneratedResponseStatus, type GuardrailId, InvalidStatusTransitionError, type JsonSchema, type JudgedReply, type KnowledgeHit, type LlmPort, type Message, MissingPromptError, NODE_NAMES, type Node, type NodeCost, type NodeDeps, type NodeKey, type NodeName, type NodeStep, type OrderSummary, type OutboundReply, type Outcome, PROMPT_SLOTS, type PlatformPromptReader, type PortName, type PromptCacheEntry, type PromptCachePort, type PromptDegradedEvent, type PromptNameConfig, type PromptPort, type PromptRef, type PromptReference, type PromptResolverDeps, type PromptSlot, type PromptTableKey, type ProposedAction, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type ReasoningEffort, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_KIT_SETTINGS_FIELDS, type SettingsIssueKey, type SettingsValidationIssue, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportKitNodeSettings, type SupportKitSettings, type SupportPipelineConfig, type SupportPipelineFragments, type TicketRunState, type ToolCallRecord, type ToolCallRequest, type ToolContext, type ToolPolicy, type ToolSpec, type TrackingSummary, type TriageNodeConfig, UNCERTAINTY_MARKERS, type Usage, type Verdict, type VerifyReplyInput, type VerifyReplyResult, WHATSAPP_MODES, WHATSAPP_NOTE_CHEVRON, type WhatsappMode, agentRecord, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, createBudget, createPromptResolver, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, reclaimStalledSend, requiresFollowup, resolvePromptName, runGuardrails, runTicket, settingsToProfile, stopOptOut, targetRefFor, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };
package/dist/index.d.ts CHANGED
@@ -305,6 +305,13 @@ interface ReviseNodeConfig {
305
305
  provider: string;
306
306
  reasoning: ReasoningEffort;
307
307
  }
308
+ /**
309
+ * The steps with a Langfuse prompt of their own — every LLM step except
310
+ * `revise`, which re-runs the writer with a fixed correction turn
311
+ * (`graph/revise.ts`) and so speaks with `prompts.draft`, never a prompt of
312
+ * its own.
313
+ */
314
+ type PromptTableKey = Exclude<NodeKey, 'revise'>;
308
315
  interface AgentProfile {
309
316
  /** 'customer' | 'partner' | 'social' … — the tenant identifier. */
310
317
  key: string;
@@ -344,7 +351,7 @@ interface AgentProfile {
344
351
  evaluate: EvaluateNodeConfig | null;
345
352
  revise: ReviseNodeConfig | null;
346
353
  };
347
- prompts: Record<NodeKey, PromptRef>;
354
+ prompts: Record<PromptTableKey, PromptRef>;
348
355
  /** Tool names resolved against the registry (§6.2). */
349
356
  tools: string[];
350
357
  guardrails: {
@@ -1528,13 +1535,11 @@ type PromptSlot = (typeof PROMPT_SLOTS)[number];
1528
1535
  * are two `PromptSlot`s nothing ever reads a fallback for (they resolve by
1529
1536
  * bare NAME off the settings fields' own defaults, never through a
1530
1537
  * `PromptRef.fallback`), so accepting them here silently drops whatever a
1531
- * caller sets. `revise` is the opposite gap: not a `PromptSlot` at all, yet
1532
- * the one node `buildPromptsTable` DOES bind a `PromptRef` for — before this
1533
- * type existed, a caller had no way to express its fallback under a Langfuse
1534
- * outage with a cold cache, the one resolved prompt §3.7's level 3 leaves
1535
- * unreachable.
1538
+ * caller sets. `revise` is NOT a key either: that step re-runs the writer
1539
+ * with a fixed correction turn (`graph/revise.ts`), so it resolves no
1540
+ * prompt of its own to fall back for.
1536
1541
  */
1537
- type PromptFallbackSlot = Exclude<PromptSlot, 'shared/style-email' | 'shared/style-whatsapp'> | 'revise';
1542
+ type PromptFallbackSlot = Exclude<PromptSlot, 'shared/style-email' | 'shared/style-whatsapp'>;
1538
1543
  interface PromptNameConfig {
1539
1544
  /**
1540
1545
  * Required, not defaulted (H3, T25 review): §4's checklist for a new
@@ -1551,7 +1556,7 @@ interface PromptNameConfig {
1551
1556
  /**
1552
1557
  * §3.2's `config.defaults.prompts` — the level-3 in-code fallback TEXT
1553
1558
  * (`PromptRef.fallback`, §3.7 point 3) a caller can override per slot,
1554
- * read by `buildPromptsTable` (triage/escalation/evaluation/revise) and
1559
+ * read by `buildPromptsTable` (triage/escalation/evaluation) and
1555
1560
  * by `suggest-prompt`/`run-diff-analysis`'s own meta-prompt constants
1556
1561
  * (`suggest`/`diff-analysis`). Typed as `PromptFallbackSlot`, not
1557
1562
  * `PromptSlot` (M7): the accepted key set must match what is actually
@@ -1563,15 +1568,6 @@ interface PromptNameConfig {
1563
1568
  }
1564
1569
  /** Resolve one slot to its Langfuse prompt name for a given `buildSupportPipeline` config. */
1565
1570
  declare function resolvePromptName(slot: PromptSlot, config: PromptNameConfig): string;
1566
- /**
1567
- * `revise` has no `PROMPT_SLOTS` entry (see the module doc — it is not one
1568
- * of the seven §3.7 slots) but resolves via the exact same
1569
- * `promptNames?.revise ?? <prefix>revise` pattern the other slots use. One
1570
- * function so `buildPromptsTable` (the graph's own consumer) and
1571
- * `mergeRole`'s `role.prompts` allowlist (T25) cannot drift apart on how
1572
- * that name is computed.
1573
- */
1574
- declare function resolveReviseName(config: PromptNameConfig): string;
1575
1571
 
1576
1572
  /**
1577
1573
  * `category` (ex-`Category`) — spec §3.4.
@@ -1881,11 +1877,14 @@ interface SupportKitNodeSettings {
1881
1877
  escalationEnabled?: boolean;
1882
1878
  }
1883
1879
  /**
1884
- * `draft` is the one step with no `prompt` of its own: it speaks with the
1880
+ * The two steps with no `prompt` of their own. `draft` speaks with the
1885
1881
  * resolved agent's voice, so its Langfuse binding lives on the `agent`
1886
1882
  * record (§3.4, `functions/records.ts`'s `draftPromptRefFor`) and is chosen
1887
- * per agent on the AgentsPage, not per install on the SettingsPage. A
1888
- * `prompt` key here would be written by an operator and read by nobody.
1883
+ * per agent on the AgentsPage, not per install on the SettingsPage.
1884
+ * `revise` re-runs that same writer against the judge's objection
1885
+ * (`graph/nodes/revise.ts`), so it too has only the writer's prompt to
1886
+ * speak with — a `prompt` key on either would be written by an operator
1887
+ * and read by nobody.
1889
1888
  */
1890
1889
  type SupportKitDraftNodeSettings = Omit<SupportKitNodeSettings, 'prompt'>;
1891
1890
  /**
@@ -1905,7 +1904,7 @@ interface SupportKitSettings {
1905
1904
  escalate?: SupportKitNodeSettings | null;
1906
1905
  draft?: SupportKitDraftNodeSettings | null;
1907
1906
  evaluate?: SupportKitNodeSettings | null;
1908
- revise?: SupportKitNodeSettings | null;
1907
+ revise?: SupportKitDraftNodeSettings | null;
1909
1908
  };
1910
1909
  unknownTag: string;
1911
1910
  handledTag: string;
@@ -1929,7 +1928,7 @@ interface SupportKitSettings {
1929
1928
  renameTo: string;
1930
1929
  statsTimezone: string;
1931
1930
  }
1932
- declare function settingsToProfile(settings: SupportKitSettings, prompts: Record<NodeKey, PromptRef>): AgentProfile;
1931
+ declare function settingsToProfile(settings: SupportKitSettings, prompts: Record<PromptTableKey, PromptRef>): AgentProfile;
1933
1932
 
1934
1933
  /**
1935
1934
  * `SupportKitFunctionConfig` — what each of the four T22 manifest fragments
@@ -1986,7 +1985,7 @@ interface SupportPipelineConfig extends SupportKitFunctionConfig {
1986
1985
  * one changes.
1987
1986
  *
1988
1987
  * `defaults.prompts` is wired to its real consumers: `buildPromptsTable`
1989
- * (triage/escalate/evaluate/revise's `PromptRef.fallback`) and
1988
+ * (triage/escalate/evaluate's `PromptRef.fallback`) and
1990
1989
  * `suggest-prompt`/`run-diff-analysis`'s own meta-prompt fallback.
1991
1990
  *
1992
1991
  * `defaults.channel` (DECISION 3, T25 — see the migration progress
@@ -2066,4 +2065,4 @@ interface SupportPipelineFragments {
2066
2065
  }
2067
2066
  declare function buildSupportPipeline(config: SupportPipelineConfig): SupportPipelineFragments;
2068
2067
 
2069
- export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type Budget, CANDIDATE_MIN_LENGTH, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CompletionRequest, type CompletionResult, type Conversation, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, type GeneratedResponseStatus, type GuardrailId, InvalidStatusTransitionError, type JsonSchema, type JudgedReply, type KnowledgeHit, type LlmPort, type Message, MissingPromptError, NODE_NAMES, type Node, type NodeCost, type NodeDeps, type NodeKey, type NodeName, type NodeStep, type OrderSummary, type OutboundReply, type Outcome, PROMPT_SLOTS, type PlatformPromptReader, type PortName, type PromptCacheEntry, type PromptCachePort, type PromptDegradedEvent, type PromptNameConfig, type PromptPort, type PromptRef, type PromptReference, type PromptResolverDeps, type PromptSlot, type ProposedAction, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type ReasoningEffort, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_KIT_SETTINGS_FIELDS, type SettingsIssueKey, type SettingsValidationIssue, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportKitNodeSettings, type SupportKitSettings, type SupportPipelineConfig, type SupportPipelineFragments, type TicketRunState, type ToolCallRecord, type ToolCallRequest, type ToolContext, type ToolPolicy, type ToolSpec, type TrackingSummary, type TriageNodeConfig, UNCERTAINTY_MARKERS, type Usage, type Verdict, type VerifyReplyInput, type VerifyReplyResult, WHATSAPP_MODES, WHATSAPP_NOTE_CHEVRON, type WhatsappMode, agentRecord, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, createBudget, createPromptResolver, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, reclaimStalledSend, requiresFollowup, resolvePromptName, resolveReviseName, runGuardrails, runTicket, settingsToProfile, stopOptOut, targetRefFor, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };
2068
+ export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type Budget, CANDIDATE_MIN_LENGTH, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CompletionRequest, type CompletionResult, type Conversation, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, type GeneratedResponseStatus, type GuardrailId, InvalidStatusTransitionError, type JsonSchema, type JudgedReply, type KnowledgeHit, type LlmPort, type Message, MissingPromptError, NODE_NAMES, type Node, type NodeCost, type NodeDeps, type NodeKey, type NodeName, type NodeStep, type OrderSummary, type OutboundReply, type Outcome, PROMPT_SLOTS, type PlatformPromptReader, type PortName, type PromptCacheEntry, type PromptCachePort, type PromptDegradedEvent, type PromptNameConfig, type PromptPort, type PromptRef, type PromptReference, type PromptResolverDeps, type PromptSlot, type PromptTableKey, type ProposedAction, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type ReasoningEffort, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_KIT_SETTINGS_FIELDS, type SettingsIssueKey, type SettingsValidationIssue, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportKitNodeSettings, type SupportKitSettings, type SupportPipelineConfig, type SupportPipelineFragments, type TicketRunState, type ToolCallRecord, type ToolCallRequest, type ToolContext, type ToolPolicy, type ToolSpec, type TrackingSummary, type TriageNodeConfig, UNCERTAINTY_MARKERS, type Usage, type Verdict, type VerifyReplyInput, type VerifyReplyResult, WHATSAPP_MODES, WHATSAPP_NOTE_CHEVRON, type WhatsappMode, agentRecord, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, createBudget, createPromptResolver, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, reclaimStalledSend, requiresFollowup, resolvePromptName, runGuardrails, runTicket, settingsToProfile, stopOptOut, targetRefFor, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { CATEGORY_GROUP_FIELD_NAME_UID, CATEGORY_GROUP_FIELD_ORDER_UID, PIPELINE_STATE_FIELD_SINGLETON_KEY_UID, PIPELINE_STATE_FIELD_SOURCE_VIEW_ID_UID, PIPELINE_STATE_FIELD_LAST_TRIAGE_AT_UID, PIPELINE_STATE_FIELD_LAST_SWEEP_AT_UID, PROMPT_CACHE_FIELD_PROMPT_KEY_UID, PROMPT_CACHE_FIELD_CONTENT_UID, PROMPT_CACHE_FIELD_VERSION_UID, PROMPT_CACHE_FIELD_LABEL_UID, PROMPT_CACHE_FIELD_CONFIG_UID, CATEGORY_GROUP_INDEX_NAME_UID, CATEGORY_GROUP_OBJECT_UID, PIPELINE_STATE_INDEX_SINGLETON_KEY_UID, PIPELINE_STATE_OBJECT_UID, PROMPT_CACHE_INDEX_PROMPT_KEY_UID, PROMPT_CACHE_OBJECT_UID, CATEGORY_INDEX_TAG_NAME_UID, CATEGORY_INDEX_NAME_UID, CATEGORY_INDEX_ORDER_UID, CATEGORY_FIELD_NAME_UID, CATEGORY_FIELD_TAG_NAME_UID, CATEGORY_FIELD_ORDER_UID, CATEGORY_FIELD_GROUP_ID_UID, CATEGORY_FIELD_AGENT_ID_UID, CATEGORY_FIELD_EXTRA_TAGS_UID, CATEGORY_FIELD_DESCRIPTION_UID, CATEGORY_FIELD_EXAMPLES_UID, CATEGORY_FIELD_FAST_RESPONSE_ENABLED_UID, CATEGORY_FIELD_AUTO_REPLY_ENABLED_UID, CATEGORY_OBJECT_UID, TRIAGE_DECISION_INDEX_TICKET_ID_UID, TRIAGE_DECISION_INDEX_DECIDED_AT_UID, TRIAGE_DECISION_INDEX_ESCALATED_UID, TRIAGE_DECISION_FIELD_TICKET_ID_UID, TRIAGE_DECISION_FIELD_DECIDED_AT_UID, TRIAGE_DECISION_FIELD_CATEGORY_ID_UID, TRIAGE_DECISION_FIELD_TAG_UID, TRIAGE_DECISION_FIELD_CONFIDENCE_UID, TRIAGE_DECISION_FIELD_REASONING_UID, TRIAGE_DECISION_FIELD_CONVERSATION_OVER_UID, TRIAGE_DECISION_FIELD_ESCALATED_UID, TRIAGE_DECISION_FIELD_ESCALATION_CONFIDENCE_UID, TRIAGE_DECISION_FIELD_ESCALATION_REASONING_UID, TRIAGE_DECISION_FIELD_STATUS_UID, TRIAGE_DECISION_FIELD_ERROR_UID, TRIAGE_DECISION_FIELD_RUN_ID_UID, TRIAGE_DECISION_FIELD_SUBJECT_RENAMED_UID, TRIAGE_DECISION_OBJECT_UID, GENERATED_RESPONSE_INDEX_TICKET_ID_UID, GENERATED_RESPONSE_INDEX_OPEN_TICKET_KEY_UID, GENERATED_RESPONSE_INDEX_STATUS_UID, GENERATED_RESPONSE_INDEX_TRIAGE_DECISION_ID_UID, GENERATED_RESPONSE_INDEX_GENERATED_AT_UID, GENERATED_RESPONSE_INDEX_EXPIRES_AT_UID, GENERATED_RESPONSE_FIELD_TICKET_ID_UID, GENERATED_RESPONSE_FIELD_OPEN_TICKET_KEY_UID, GENERATED_RESPONSE_STATUSES, GENERATED_RESPONSE_FIELD_STATUS_UID, GENERATED_RESPONSE_FIELD_TRIAGE_DECISION_ID_UID, GENERATED_RESPONSE_FIELD_CATEGORY_ID_UID, GENERATED_RESPONSE_FIELD_AGENT_ID_UID, GENERATED_RESPONSE_FIELD_CHANNEL_UID, GENERATED_RESPONSE_FIELD_RESPONSE_TEXT_UID, GENERATED_RESPONSE_FIELD_SOURCES_UID, GENERATED_RESPONSE_FIELD_TRACED_INPUT_UID, GENERATED_RESPONSE_FIELD_VERDICT_UID, GENERATED_RESPONSE_FIELD_GUARDRAIL_HITS_UID, GENERATED_RESPONSE_FIELD_AUTO_SEND_DECISION_UID, GENERATED_RESPONSE_FIELD_FOLLOWUP_REQUIRED_UID, GENERATED_RESPONSE_FIELD_SERVED_COUNT_UID, GENERATED_RESPONSE_FIELD_SERVED_TO_UID, GENERATED_RESPONSE_FIELD_GENERATED_AT_UID, GENERATED_RESPONSE_FIELD_EXPIRES_AT_UID, GENERATED_RESPONSE_FIELD_SENT_AT_UID, GENERATED_RESPONSE_FIELD_SENT_MESSAGE_ID_UID, GENERATED_RESPONSE_FIELD_LANGFUSE_TRACE_ID_UID, GENERATED_RESPONSE_FIELD_LANGFUSE_OBSERVATION_ID_UID, GENERATED_RESPONSE_FIELD_PROMPT_NAME_UID, GENERATED_RESPONSE_FIELD_PROMPT_VERSION_UID, GENERATED_RESPONSE_FIELD_ERROR_UID, GENERATED_RESPONSE_FIELD_GENERATED_MESSAGE_COUNT_UID, GENERATED_RESPONSE_FIELD_GENERATED_LAST_MESSAGE_AT_UID, GENERATED_RESPONSE_FIELD_SENDING_AT_UID, GENERATED_RESPONSE_OBJECT_UID, RESPONSE_COMPARISON_INDEX_CAPTURED_AT_UID, RESPONSE_COMPARISON_INDEX_TICKET_ID_UID, RESPONSE_COMPARISON_FIELD_GENERATED_TEXT_UID, RESPONSE_COMPARISON_FIELD_SENT_TEXT_UID, RESPONSE_COMPARISON_FIELD_CAPTURED_AT_UID, RESPONSE_COMPARISON_FIELD_TICKET_ID_UID, RESPONSE_COMPARISON_FIELD_TICKET_URL_UID, RESPONSE_COMPARISON_FIELD_AGENT_ID_UID, RESPONSE_COMPARISON_FIELD_LANGFUSE_TRACE_ID_UID, RESPONSE_COMPARISON_FIELD_LANGFUSE_OBSERVATION_ID_UID, RESPONSE_COMPARISON_FIELD_PROMPT_NAME_UID, RESPONSE_COMPARISON_FIELD_PROMPT_VERSION_UID, RESPONSE_COMPARISON_FIELD_CONVERSATION_MESSAGES_UID, RESPONSE_COMPARISON_FIELD_DIFF_UID, RESPONSE_COMPARISON_OBJECT_UID, EVALUATION_FIELD_AGENT_ID_UID, EVALUATION_FIELD_SATISFIED_UID, EVALUATION_FIELD_MESSAGES_UID, EVALUATION_FIELD_TICKET_URL_UID, EVALUATION_FIELD_LANGFUSE_TRACE_ID_UID, EVALUATION_FIELD_LANGFUSE_OBSERVATION_ID_UID, EVALUATION_FIELD_SUPPORT_USER_KEY_ID_UID, EVALUATION_OBJECT_UID, DIFF_ANALYSIS_INDEX_UNIQUE_KEY_UID, DIFF_ANALYSIS_FIELD_AGENT_ID_UID, DIFF_ANALYSIS_FIELD_PROMPT_NAME_UID, DIFF_ANALYSIS_FIELD_PROMPT_VERSION_UID, DIFF_ANALYSIS_FIELD_POINTS_UID, DIFF_ANALYSIS_FIELD_UNIQUE_KEY_UID, DIFF_ANALYSIS_OBJECT_UID, agentRecord, SUPPORT_KIT_SETTINGS_FIELDS, MissingPromptError, validateSettings, toCategory, toAgent, resolveDraftAgent, settingsToProfile, buildPromptsTable, draftPromptRefFor, runTicket, assertTransition, openTicketKeyFor, act, initialState, applyOutcomeTags, listCategories, toCategoryReferential, resolvePromptName, DEFAULT_LLM_PROVIDER, toCategoryGroup, toGeneratedResponse, NODE_NAMES, reclaimStalledSend, applySignature, isGeneratedResponseStatus, isEvaluationVerdict, requiresFollowup, computeWordDiff, findCategoryByTag, isWhatsappTicket, isConversationOver, isFallbackClassification, hasNoDraftNode, hasCustomerAttachment, isTicketClosed, isWhatsappChevronNote } from './chunk-CVYJU4SV.js';
2
- export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, CANDIDATE_MIN_LENGTH, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, EVALUATION_VERDICTS, GENERATED_RESPONSE_STATUSES, InvalidStatusTransitionError, MissingPromptError, NODE_NAMES, PROMPT_SLOTS, REASONING_MAX_LEN, STOP_PHRASES, SUPPORT_KIT_SETTINGS_FIELDS, UNCERTAINTY_MARKERS, WHATSAPP_MODES, WHATSAPP_NOTE_CHEVRON, agentRecord, assertTransition, canTransition, channelPreGates, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, reclaimStalledSend, requiresFollowup, resolvePromptName, resolveReviseName, runGuardrails, runTicket, settingsToProfile, stopOptOut, validateSettings, verifyReply, whatsappModeFromLegacyBoolean } from './chunk-CVYJU4SV.js';
1
+ import { CATEGORY_GROUP_FIELD_NAME_UID, CATEGORY_GROUP_FIELD_ORDER_UID, PIPELINE_STATE_FIELD_SINGLETON_KEY_UID, PIPELINE_STATE_FIELD_SOURCE_VIEW_ID_UID, PIPELINE_STATE_FIELD_LAST_TRIAGE_AT_UID, PIPELINE_STATE_FIELD_LAST_SWEEP_AT_UID, PROMPT_CACHE_FIELD_PROMPT_KEY_UID, PROMPT_CACHE_FIELD_CONTENT_UID, PROMPT_CACHE_FIELD_VERSION_UID, PROMPT_CACHE_FIELD_LABEL_UID, PROMPT_CACHE_FIELD_CONFIG_UID, CATEGORY_GROUP_INDEX_NAME_UID, CATEGORY_GROUP_OBJECT_UID, PIPELINE_STATE_INDEX_SINGLETON_KEY_UID, PIPELINE_STATE_OBJECT_UID, PROMPT_CACHE_INDEX_PROMPT_KEY_UID, PROMPT_CACHE_OBJECT_UID, CATEGORY_INDEX_TAG_NAME_UID, CATEGORY_INDEX_NAME_UID, CATEGORY_INDEX_ORDER_UID, CATEGORY_FIELD_NAME_UID, CATEGORY_FIELD_TAG_NAME_UID, CATEGORY_FIELD_ORDER_UID, CATEGORY_FIELD_GROUP_ID_UID, CATEGORY_FIELD_AGENT_ID_UID, CATEGORY_FIELD_EXTRA_TAGS_UID, CATEGORY_FIELD_DESCRIPTION_UID, CATEGORY_FIELD_EXAMPLES_UID, CATEGORY_FIELD_FAST_RESPONSE_ENABLED_UID, CATEGORY_FIELD_AUTO_REPLY_ENABLED_UID, CATEGORY_OBJECT_UID, TRIAGE_DECISION_INDEX_TICKET_ID_UID, TRIAGE_DECISION_INDEX_DECIDED_AT_UID, TRIAGE_DECISION_INDEX_ESCALATED_UID, TRIAGE_DECISION_FIELD_TICKET_ID_UID, TRIAGE_DECISION_FIELD_DECIDED_AT_UID, TRIAGE_DECISION_FIELD_CATEGORY_ID_UID, TRIAGE_DECISION_FIELD_TAG_UID, TRIAGE_DECISION_FIELD_CONFIDENCE_UID, TRIAGE_DECISION_FIELD_REASONING_UID, TRIAGE_DECISION_FIELD_CONVERSATION_OVER_UID, TRIAGE_DECISION_FIELD_ESCALATED_UID, TRIAGE_DECISION_FIELD_ESCALATION_CONFIDENCE_UID, TRIAGE_DECISION_FIELD_ESCALATION_REASONING_UID, TRIAGE_DECISION_FIELD_STATUS_UID, TRIAGE_DECISION_FIELD_ERROR_UID, TRIAGE_DECISION_FIELD_RUN_ID_UID, TRIAGE_DECISION_FIELD_SUBJECT_RENAMED_UID, TRIAGE_DECISION_OBJECT_UID, GENERATED_RESPONSE_INDEX_TICKET_ID_UID, GENERATED_RESPONSE_INDEX_OPEN_TICKET_KEY_UID, GENERATED_RESPONSE_INDEX_STATUS_UID, GENERATED_RESPONSE_INDEX_TRIAGE_DECISION_ID_UID, GENERATED_RESPONSE_INDEX_GENERATED_AT_UID, GENERATED_RESPONSE_INDEX_EXPIRES_AT_UID, GENERATED_RESPONSE_FIELD_TICKET_ID_UID, GENERATED_RESPONSE_FIELD_OPEN_TICKET_KEY_UID, GENERATED_RESPONSE_STATUSES, GENERATED_RESPONSE_FIELD_STATUS_UID, GENERATED_RESPONSE_FIELD_TRIAGE_DECISION_ID_UID, GENERATED_RESPONSE_FIELD_CATEGORY_ID_UID, GENERATED_RESPONSE_FIELD_AGENT_ID_UID, GENERATED_RESPONSE_FIELD_CHANNEL_UID, GENERATED_RESPONSE_FIELD_RESPONSE_TEXT_UID, GENERATED_RESPONSE_FIELD_SOURCES_UID, GENERATED_RESPONSE_FIELD_TRACED_INPUT_UID, GENERATED_RESPONSE_FIELD_VERDICT_UID, GENERATED_RESPONSE_FIELD_GUARDRAIL_HITS_UID, GENERATED_RESPONSE_FIELD_AUTO_SEND_DECISION_UID, GENERATED_RESPONSE_FIELD_FOLLOWUP_REQUIRED_UID, GENERATED_RESPONSE_FIELD_SERVED_COUNT_UID, GENERATED_RESPONSE_FIELD_SERVED_TO_UID, GENERATED_RESPONSE_FIELD_GENERATED_AT_UID, GENERATED_RESPONSE_FIELD_EXPIRES_AT_UID, GENERATED_RESPONSE_FIELD_SENT_AT_UID, GENERATED_RESPONSE_FIELD_SENT_MESSAGE_ID_UID, GENERATED_RESPONSE_FIELD_LANGFUSE_TRACE_ID_UID, GENERATED_RESPONSE_FIELD_LANGFUSE_OBSERVATION_ID_UID, GENERATED_RESPONSE_FIELD_PROMPT_NAME_UID, GENERATED_RESPONSE_FIELD_PROMPT_VERSION_UID, GENERATED_RESPONSE_FIELD_ERROR_UID, GENERATED_RESPONSE_FIELD_GENERATED_MESSAGE_COUNT_UID, GENERATED_RESPONSE_FIELD_GENERATED_LAST_MESSAGE_AT_UID, GENERATED_RESPONSE_FIELD_SENDING_AT_UID, GENERATED_RESPONSE_OBJECT_UID, RESPONSE_COMPARISON_INDEX_CAPTURED_AT_UID, RESPONSE_COMPARISON_INDEX_TICKET_ID_UID, RESPONSE_COMPARISON_FIELD_GENERATED_TEXT_UID, RESPONSE_COMPARISON_FIELD_SENT_TEXT_UID, RESPONSE_COMPARISON_FIELD_CAPTURED_AT_UID, RESPONSE_COMPARISON_FIELD_TICKET_ID_UID, RESPONSE_COMPARISON_FIELD_TICKET_URL_UID, RESPONSE_COMPARISON_FIELD_AGENT_ID_UID, RESPONSE_COMPARISON_FIELD_LANGFUSE_TRACE_ID_UID, RESPONSE_COMPARISON_FIELD_LANGFUSE_OBSERVATION_ID_UID, RESPONSE_COMPARISON_FIELD_PROMPT_NAME_UID, RESPONSE_COMPARISON_FIELD_PROMPT_VERSION_UID, RESPONSE_COMPARISON_FIELD_CONVERSATION_MESSAGES_UID, RESPONSE_COMPARISON_FIELD_DIFF_UID, RESPONSE_COMPARISON_OBJECT_UID, EVALUATION_FIELD_AGENT_ID_UID, EVALUATION_FIELD_SATISFIED_UID, EVALUATION_FIELD_MESSAGES_UID, EVALUATION_FIELD_TICKET_URL_UID, EVALUATION_FIELD_LANGFUSE_TRACE_ID_UID, EVALUATION_FIELD_LANGFUSE_OBSERVATION_ID_UID, EVALUATION_FIELD_SUPPORT_USER_KEY_ID_UID, EVALUATION_OBJECT_UID, DIFF_ANALYSIS_INDEX_UNIQUE_KEY_UID, DIFF_ANALYSIS_FIELD_AGENT_ID_UID, DIFF_ANALYSIS_FIELD_PROMPT_NAME_UID, DIFF_ANALYSIS_FIELD_PROMPT_VERSION_UID, DIFF_ANALYSIS_FIELD_POINTS_UID, DIFF_ANALYSIS_FIELD_UNIQUE_KEY_UID, DIFF_ANALYSIS_OBJECT_UID, agentRecord, SUPPORT_KIT_SETTINGS_FIELDS, MissingPromptError, validateSettings, toCategory, toAgent, resolveDraftAgent, settingsToProfile, buildPromptsTable, draftPromptRefFor, runTicket, assertTransition, openTicketKeyFor, act, initialState, applyOutcomeTags, listCategories, toCategoryReferential, resolvePromptName, DEFAULT_LLM_PROVIDER, toCategoryGroup, toGeneratedResponse, NODE_NAMES, reclaimStalledSend, applySignature, isGeneratedResponseStatus, isEvaluationVerdict, requiresFollowup, computeWordDiff, findCategoryByTag, isWhatsappTicket, isConversationOver, isFallbackClassification, hasNoDraftNode, hasCustomerAttachment, isTicketClosed, isWhatsappChevronNote } from './chunk-KCPVWKUY.js';
2
+ export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, CANDIDATE_MIN_LENGTH, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, EVALUATION_VERDICTS, GENERATED_RESPONSE_STATUSES, InvalidStatusTransitionError, MissingPromptError, NODE_NAMES, PROMPT_SLOTS, REASONING_MAX_LEN, STOP_PHRASES, SUPPORT_KIT_SETTINGS_FIELDS, UNCERTAINTY_MARKERS, WHATSAPP_MODES, WHATSAPP_NOTE_CHEVRON, agentRecord, assertTransition, canTransition, channelPreGates, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, reclaimStalledSend, requiresFollowup, resolvePromptName, runGuardrails, runTicket, settingsToProfile, stopOptOut, validateSettings, verifyReply, whatsappModeFromLegacyBoolean } from './chunk-KCPVWKUY.js';
3
3
  import { FieldType, APPROVAL_DECIDED_EVENT, AppApiError } from '@apotech-os/app-kit';
4
4
  import { createHash } from 'node:crypto';
5
5