@apotech-os/support-kit 10.4.0 → 10.6.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
@@ -297,6 +297,14 @@ interface DraftNodeConfig {
297
297
  provider: string;
298
298
  reasoning: ReasoningEffort;
299
299
  maxToolCalls: number;
300
+ /**
301
+ * Record id of the agent this step writes for, set by `withAgentModel`.
302
+ * Only forwarded to the platform so the spend lands on that agent (#355),
303
+ * which reads its name from the record — nothing in the graph branches on
304
+ * it. An id, not the name: a rename keeps the history, two agents with one
305
+ * name stay apart.
306
+ */
307
+ agent?: string;
300
308
  }
301
309
  interface EvaluateNodeConfig {
302
310
  model: string;
@@ -309,6 +317,8 @@ interface ReviseNodeConfig {
309
317
  model: string;
310
318
  provider: string;
311
319
  reasoning: ReasoningEffort;
320
+ /** See `DraftNodeConfig.agent`. */
321
+ agent?: string;
312
322
  }
313
323
  /**
314
324
  * The steps with a Langfuse prompt of their own — every LLM step except
@@ -575,6 +585,12 @@ interface CompletionRequest {
575
585
  tags?: string[];
576
586
  metadata?: Record<string, string>;
577
587
  };
588
+ /**
589
+ * The agent this completion writes for (draft, revise), forwarded to
590
+ * `ctx.api.llm.complete`'s `agent` so the platform charges the spend to
591
+ * it (#355). Absent on every other step.
592
+ */
593
+ agent?: string;
578
594
  }
579
595
  interface CompletionResult {
580
596
  text: string | null;
@@ -940,6 +956,57 @@ declare function isDecisionOrigin(value: unknown): value is DecisionOrigin;
940
956
  /** Reads an untrusted stored value, falling back to the least-privileged origin. */
941
957
  declare function toDecisionOrigin(value: unknown): DecisionOrigin;
942
958
 
959
+ declare const GENERATION_MODES: readonly ["auto", "operator"];
960
+ type GenerationMode = (typeof GENERATION_MODES)[number];
961
+ declare const PROMPT_USAGES: readonly ["always", "auto", "operator"];
962
+ type PromptUsage = (typeof PROMPT_USAGES)[number];
963
+ declare const DEFAULT_PROMPT_USAGE: PromptUsage;
964
+ /** Prompt name → usage. A name that is absent is `always`. */
965
+ type SharedPromptUsages = Record<string, PromptUsage>;
966
+ declare function isPromptUsage(value: unknown): value is PromptUsage;
967
+ /**
968
+ * Reads the stored setting. Anything that is not a known usage is dropped,
969
+ * which makes that prompt `always`: an unreadable entry must never silently
970
+ * remove a block from every reply.
971
+ */
972
+ declare function toSharedPromptUsages(value: unknown): SharedPromptUsages;
973
+ /** A system prompt's usage is fixed by the code: the stored setting never overrides it. */
974
+ declare function promptUsageOf(name: string, usages: SharedPromptUsages): PromptUsage;
975
+ declare function isPromptUsedIn(mode: GenerationMode, usage: PromptUsage): boolean;
976
+
977
+ /**
978
+ * Shared prompts the kit itself reads, by name.
979
+ *
980
+ * Every other `shared/*` prompt exists because an agent prompt references it.
981
+ * These exist because the code asks for them: the name is fixed here, and the
982
+ * text written here is what is served until a version is published (and
983
+ * whenever the published one cannot be read). The team edits the text like
984
+ * any other shared prompt; it cannot rename it or make it disappear.
985
+ */
986
+
987
+ interface SystemPrompt {
988
+ name: string;
989
+ /** What it is for, in the team's words. */
990
+ description: string;
991
+ /** Fixed: the code decides when it is read, not the usage setting. */
992
+ usage: PromptUsage;
993
+ defaultContent: string;
994
+ }
995
+ declare const OPERATOR_MODE_PROMPT_NAME = "shared/mode-operateur";
996
+ /**
997
+ * Tells the model who it is writing for. The agent prompts are written for
998
+ * the pipeline answering alone, and their limits ("jamais plus de 5 % sans
999
+ * validation humaine", "un agent reviendra vers vous") turned an operator's
1000
+ * own instruction into a hand-off to the very person asking.
1001
+ *
1002
+ * The extension sends what the operator typed as a last message worded
1003
+ * "Merci d'utiliser le contexte suivant…": the text names it so the model
1004
+ * reads it as an instruction and not as background.
1005
+ */
1006
+ declare const DEFAULT_OPERATOR_MODE_PROMPT: string;
1007
+ declare const SYSTEM_PROMPTS: readonly SystemPrompt[];
1008
+ declare function systemPromptOf(name: string): SystemPrompt | undefined;
1009
+
943
1010
  /**
944
1011
  * Run budget: bounds a run in TOOL CALLS and TIME only, never in money —
945
1012
  * cost is measured (`charge`, I15) and watched separately, not capped here.
@@ -1853,6 +1920,25 @@ interface PromptResolverDeps {
1853
1920
  now?: () => number;
1854
1921
  /** Fires at every silent-degradation point in the ladder (post-review E). */
1855
1922
  onDegraded?: (event: PromptDegradedEvent) => void;
1923
+ /**
1924
+ * Which composition targets this resolver composes, asked once per
1925
+ * resolution. A target `isActive` answers `false` for resolves to nothing,
1926
+ * as if its tag were not there: this is how a shared prompt restricted to
1927
+ * one generation mode stays out of the other (`domain/prompt-usage.ts`).
1928
+ * Absent, every target is composed.
1929
+ *
1930
+ * `cacheScope` keeps the `prompt-cache` mirror entries of one filter apart
1931
+ * from every other's. It must change whenever the filter's answers do: the
1932
+ * mirror holds COMPOSED text, so an entry written under one set of
1933
+ * restrictions would otherwise be served, on a Langfuse outage, to a
1934
+ * resolution that has since been told to leave a block out. Absent, the
1935
+ * historical unscoped key is used.
1936
+ */
1937
+ referenceFilter?: () => Promise<ReferenceFilter>;
1938
+ }
1939
+ interface ReferenceFilter {
1940
+ isActive: (name: string) => boolean;
1941
+ cacheScope?: string;
1856
1942
  }
1857
1943
  /** Builds a `PromptPort` implementing §3.7's three-level fallback ladder. */
1858
1944
  declare function createPromptResolver(deps: PromptResolverDeps): PromptPort;
@@ -2279,6 +2365,8 @@ interface SupportKitSettings {
2279
2365
  noreplySenders: string[];
2280
2366
  channelPromptEmail: string;
2281
2367
  channelPromptWhatsapp: string;
2368
+ /** Optional: apps deployed before the field existed store none, read as every shared prompt `always`. */
2369
+ sharedPromptUsages?: SharedPromptUsages;
2282
2370
  renameEnabled: boolean;
2283
2371
  renameFrom: string;
2284
2372
  renameTo: string;
@@ -2509,4 +2597,4 @@ interface SupportPipelineFragments {
2509
2597
  }
2510
2598
  declare function buildSupportPipeline(config: SupportPipelineConfig): SupportPipelineFragments;
2511
2599
 
2512
- export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, ATTACHMENT_MARKER_ONLY, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type AwaitingSince, type Budget, CANDIDATE_MIN_LENGTH, COLLISION_GUARDRAILS, CONVERSATION_END_ACTIONS, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CollisionGuardrailId, type CompletionRequest, type CompletionResult, type Conversation, type ConversationEndAction, type ConversationEndConfig, type ConversationEndSettings, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DECISION_ORIGINS, DEFAULT_AUTO_SEND_CHANNELS, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_CONVERSATION_END_TAG, DEFAULT_DECISION_ORIGIN, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, type DecisionOrigin, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, type GeneratedResponseStatus, type GuardrailId, type IneligibleReason, 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, ORIGIN_DESCRIPTION, OUTCOMES, 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, type PublicationMode, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type RawTicketFactsAt, type ReasoningEffort, type ReconstructHoldInput, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_CHANNELS, SUPPORT_KIT_SETTINGS_FIELDS, type SettingsIssueKey, type SettingsValidationIssue, type SettingsWarning, type SettingsWarningKey, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportChannel, 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, accountChannelAddress, agentRecord, answerableChannels, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildReplyTimingRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, conversationEndEffects, createBudget, createPromptResolver, customerChannelAddress, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isCustomerTurnWithWords, isDecisionOrigin, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isOutcome, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, publicationMode, rawTicketFactsAt, readConversationEnd, reclaimStalledSend, reconstructGuardrailHits, requiresFollowup, resolvePromptName, runGuardrails, runTicket, settingsToProfile, settingsWarnings, stopOptOut, targetRefFor, toConversationEnd, toDecisionOrigin, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };
2600
+ export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, ATTACHMENT_MARKER_ONLY, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type AwaitingSince, type Budget, CANDIDATE_MIN_LENGTH, COLLISION_GUARDRAILS, CONVERSATION_END_ACTIONS, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CollisionGuardrailId, type CompletionRequest, type CompletionResult, type Conversation, type ConversationEndAction, type ConversationEndConfig, type ConversationEndSettings, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DECISION_ORIGINS, DEFAULT_AUTO_SEND_CHANNELS, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_CONVERSATION_END_TAG, DEFAULT_DECISION_ORIGIN, DEFAULT_LLM_PROVIDER, DEFAULT_OPERATOR_MODE_PROMPT, DEFAULT_PROFILE_KEY, DEFAULT_PROMPT_USAGE, DEFAULT_WHATSAPP_MODE, type DecisionOrigin, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, GENERATION_MODES, type GeneratedResponseStatus, type GenerationMode, type GuardrailId, type IneligibleReason, 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, OPERATOR_MODE_PROMPT_NAME, ORIGIN_DESCRIPTION, OUTCOMES, type OrderSummary, type OutboundReply, type Outcome, PROMPT_SLOTS, PROMPT_USAGES, 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 PromptUsage, type ProposedAction, type PublicationMode, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type RawTicketFactsAt, type ReasoningEffort, type ReconstructHoldInput, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_CHANNELS, SUPPORT_KIT_SETTINGS_FIELDS, SYSTEM_PROMPTS, type SettingsIssueKey, type SettingsValidationIssue, type SettingsWarning, type SettingsWarningKey, type SharedPromptUsages, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportChannel, type SupportKitNodeSettings, type SupportKitSettings, type SupportPipelineConfig, type SupportPipelineFragments, type SystemPrompt, 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, accountChannelAddress, agentRecord, answerableChannels, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildReplyTimingRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, conversationEndEffects, createBudget, createPromptResolver, customerChannelAddress, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isCustomerTurnWithWords, isDecisionOrigin, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isOutcome, isPromptUsage, isPromptUsedIn, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, promptUsageOf, publicationMode, rawTicketFactsAt, readConversationEnd, reclaimStalledSend, reconstructGuardrailHits, requiresFollowup, resolvePromptName, runGuardrails, runTicket, settingsToProfile, settingsWarnings, stopOptOut, systemPromptOf, targetRefFor, toConversationEnd, toDecisionOrigin, toSharedPromptUsages, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };
package/dist/index.d.ts CHANGED
@@ -297,6 +297,14 @@ interface DraftNodeConfig {
297
297
  provider: string;
298
298
  reasoning: ReasoningEffort;
299
299
  maxToolCalls: number;
300
+ /**
301
+ * Record id of the agent this step writes for, set by `withAgentModel`.
302
+ * Only forwarded to the platform so the spend lands on that agent (#355),
303
+ * which reads its name from the record — nothing in the graph branches on
304
+ * it. An id, not the name: a rename keeps the history, two agents with one
305
+ * name stay apart.
306
+ */
307
+ agent?: string;
300
308
  }
301
309
  interface EvaluateNodeConfig {
302
310
  model: string;
@@ -309,6 +317,8 @@ interface ReviseNodeConfig {
309
317
  model: string;
310
318
  provider: string;
311
319
  reasoning: ReasoningEffort;
320
+ /** See `DraftNodeConfig.agent`. */
321
+ agent?: string;
312
322
  }
313
323
  /**
314
324
  * The steps with a Langfuse prompt of their own — every LLM step except
@@ -575,6 +585,12 @@ interface CompletionRequest {
575
585
  tags?: string[];
576
586
  metadata?: Record<string, string>;
577
587
  };
588
+ /**
589
+ * The agent this completion writes for (draft, revise), forwarded to
590
+ * `ctx.api.llm.complete`'s `agent` so the platform charges the spend to
591
+ * it (#355). Absent on every other step.
592
+ */
593
+ agent?: string;
578
594
  }
579
595
  interface CompletionResult {
580
596
  text: string | null;
@@ -940,6 +956,57 @@ declare function isDecisionOrigin(value: unknown): value is DecisionOrigin;
940
956
  /** Reads an untrusted stored value, falling back to the least-privileged origin. */
941
957
  declare function toDecisionOrigin(value: unknown): DecisionOrigin;
942
958
 
959
+ declare const GENERATION_MODES: readonly ["auto", "operator"];
960
+ type GenerationMode = (typeof GENERATION_MODES)[number];
961
+ declare const PROMPT_USAGES: readonly ["always", "auto", "operator"];
962
+ type PromptUsage = (typeof PROMPT_USAGES)[number];
963
+ declare const DEFAULT_PROMPT_USAGE: PromptUsage;
964
+ /** Prompt name → usage. A name that is absent is `always`. */
965
+ type SharedPromptUsages = Record<string, PromptUsage>;
966
+ declare function isPromptUsage(value: unknown): value is PromptUsage;
967
+ /**
968
+ * Reads the stored setting. Anything that is not a known usage is dropped,
969
+ * which makes that prompt `always`: an unreadable entry must never silently
970
+ * remove a block from every reply.
971
+ */
972
+ declare function toSharedPromptUsages(value: unknown): SharedPromptUsages;
973
+ /** A system prompt's usage is fixed by the code: the stored setting never overrides it. */
974
+ declare function promptUsageOf(name: string, usages: SharedPromptUsages): PromptUsage;
975
+ declare function isPromptUsedIn(mode: GenerationMode, usage: PromptUsage): boolean;
976
+
977
+ /**
978
+ * Shared prompts the kit itself reads, by name.
979
+ *
980
+ * Every other `shared/*` prompt exists because an agent prompt references it.
981
+ * These exist because the code asks for them: the name is fixed here, and the
982
+ * text written here is what is served until a version is published (and
983
+ * whenever the published one cannot be read). The team edits the text like
984
+ * any other shared prompt; it cannot rename it or make it disappear.
985
+ */
986
+
987
+ interface SystemPrompt {
988
+ name: string;
989
+ /** What it is for, in the team's words. */
990
+ description: string;
991
+ /** Fixed: the code decides when it is read, not the usage setting. */
992
+ usage: PromptUsage;
993
+ defaultContent: string;
994
+ }
995
+ declare const OPERATOR_MODE_PROMPT_NAME = "shared/mode-operateur";
996
+ /**
997
+ * Tells the model who it is writing for. The agent prompts are written for
998
+ * the pipeline answering alone, and their limits ("jamais plus de 5 % sans
999
+ * validation humaine", "un agent reviendra vers vous") turned an operator's
1000
+ * own instruction into a hand-off to the very person asking.
1001
+ *
1002
+ * The extension sends what the operator typed as a last message worded
1003
+ * "Merci d'utiliser le contexte suivant…": the text names it so the model
1004
+ * reads it as an instruction and not as background.
1005
+ */
1006
+ declare const DEFAULT_OPERATOR_MODE_PROMPT: string;
1007
+ declare const SYSTEM_PROMPTS: readonly SystemPrompt[];
1008
+ declare function systemPromptOf(name: string): SystemPrompt | undefined;
1009
+
943
1010
  /**
944
1011
  * Run budget: bounds a run in TOOL CALLS and TIME only, never in money —
945
1012
  * cost is measured (`charge`, I15) and watched separately, not capped here.
@@ -1853,6 +1920,25 @@ interface PromptResolverDeps {
1853
1920
  now?: () => number;
1854
1921
  /** Fires at every silent-degradation point in the ladder (post-review E). */
1855
1922
  onDegraded?: (event: PromptDegradedEvent) => void;
1923
+ /**
1924
+ * Which composition targets this resolver composes, asked once per
1925
+ * resolution. A target `isActive` answers `false` for resolves to nothing,
1926
+ * as if its tag were not there: this is how a shared prompt restricted to
1927
+ * one generation mode stays out of the other (`domain/prompt-usage.ts`).
1928
+ * Absent, every target is composed.
1929
+ *
1930
+ * `cacheScope` keeps the `prompt-cache` mirror entries of one filter apart
1931
+ * from every other's. It must change whenever the filter's answers do: the
1932
+ * mirror holds COMPOSED text, so an entry written under one set of
1933
+ * restrictions would otherwise be served, on a Langfuse outage, to a
1934
+ * resolution that has since been told to leave a block out. Absent, the
1935
+ * historical unscoped key is used.
1936
+ */
1937
+ referenceFilter?: () => Promise<ReferenceFilter>;
1938
+ }
1939
+ interface ReferenceFilter {
1940
+ isActive: (name: string) => boolean;
1941
+ cacheScope?: string;
1856
1942
  }
1857
1943
  /** Builds a `PromptPort` implementing §3.7's three-level fallback ladder. */
1858
1944
  declare function createPromptResolver(deps: PromptResolverDeps): PromptPort;
@@ -2279,6 +2365,8 @@ interface SupportKitSettings {
2279
2365
  noreplySenders: string[];
2280
2366
  channelPromptEmail: string;
2281
2367
  channelPromptWhatsapp: string;
2368
+ /** Optional: apps deployed before the field existed store none, read as every shared prompt `always`. */
2369
+ sharedPromptUsages?: SharedPromptUsages;
2282
2370
  renameEnabled: boolean;
2283
2371
  renameFrom: string;
2284
2372
  renameTo: string;
@@ -2509,4 +2597,4 @@ interface SupportPipelineFragments {
2509
2597
  }
2510
2598
  declare function buildSupportPipeline(config: SupportPipelineConfig): SupportPipelineFragments;
2511
2599
 
2512
- export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, ATTACHMENT_MARKER_ONLY, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type AwaitingSince, type Budget, CANDIDATE_MIN_LENGTH, COLLISION_GUARDRAILS, CONVERSATION_END_ACTIONS, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CollisionGuardrailId, type CompletionRequest, type CompletionResult, type Conversation, type ConversationEndAction, type ConversationEndConfig, type ConversationEndSettings, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DECISION_ORIGINS, DEFAULT_AUTO_SEND_CHANNELS, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_CONVERSATION_END_TAG, DEFAULT_DECISION_ORIGIN, DEFAULT_LLM_PROVIDER, DEFAULT_PROFILE_KEY, DEFAULT_WHATSAPP_MODE, type DecisionOrigin, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, type GeneratedResponseStatus, type GuardrailId, type IneligibleReason, 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, ORIGIN_DESCRIPTION, OUTCOMES, 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, type PublicationMode, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type RawTicketFactsAt, type ReasoningEffort, type ReconstructHoldInput, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_CHANNELS, SUPPORT_KIT_SETTINGS_FIELDS, type SettingsIssueKey, type SettingsValidationIssue, type SettingsWarning, type SettingsWarningKey, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportChannel, 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, accountChannelAddress, agentRecord, answerableChannels, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildReplyTimingRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, conversationEndEffects, createBudget, createPromptResolver, customerChannelAddress, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isCustomerTurnWithWords, isDecisionOrigin, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isOutcome, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, publicationMode, rawTicketFactsAt, readConversationEnd, reclaimStalledSend, reconstructGuardrailHits, requiresFollowup, resolvePromptName, runGuardrails, runTicket, settingsToProfile, settingsWarnings, stopOptOut, targetRefFor, toConversationEnd, toDecisionOrigin, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };
2600
+ export { AGENT_GUARDRAILS, AGENT_STATUSES, AGENT_TOOLS, ATTACHMENT_MARKER_ONLY, type ActionDecision, type AgentProfile, type AgentStatus, type AuditTags, type AutoReplyGuardSettings, type AwaitingSince, type Budget, CANDIDATE_MIN_LENGTH, COLLISION_GUARDRAILS, CONVERSATION_END_ACTIONS, type CatalogueTool, type CategoryPolicy, type CategoryReferentialEntry, type ChannelKind, type ChatMessage, type Classification, type ClockPort, type CollisionGuardrailId, type CompletionRequest, type CompletionResult, type Conversation, type ConversationEndAction, type ConversationEndConfig, type ConversationEndSettings, type ConversationPort, type ConversationRef, type CostLedger, type CustomerInfo, DECISION_ORIGINS, DEFAULT_AUTO_SEND_CHANNELS, DEFAULT_CHANNEL_PROMPT_EMAIL, DEFAULT_CHANNEL_PROMPT_WHATSAPP, DEFAULT_CONVERSATION_END_TAG, DEFAULT_DECISION_ORIGIN, DEFAULT_LLM_PROVIDER, DEFAULT_OPERATOR_MODE_PROMPT, DEFAULT_PROFILE_KEY, DEFAULT_PROMPT_USAGE, DEFAULT_WHATSAPP_MODE, type DecisionOrigin, type Draft, type DraftAttribution, type DraftNodeConfig, EVALUATION_VERDICTS, type EscalateNodeConfig, type EvaluateNodeConfig, type EvaluationVerdict, GENERATED_RESPONSE_STATUSES, GENERATION_MODES, type GeneratedResponseStatus, type GenerationMode, type GuardrailId, type IneligibleReason, 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, OPERATOR_MODE_PROMPT_NAME, ORIGIN_DESCRIPTION, OUTCOMES, type OrderSummary, type OutboundReply, type Outcome, PROMPT_SLOTS, PROMPT_USAGES, 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 PromptUsage, type ProposedAction, type PublicationMode, REASONING_MAX_LEN, type RawPrompt, type RawPromptConfig, type RawTicket, type RawTicketFactsAt, type ReasoningEffort, type ReconstructHoldInput, type RecordDef, type ReplyPort, type ResolvedPrompt, type ResumeFrom, type ReviseNodeConfig, type RunGuardrailsInput, type RunStamp, type RunTicketOptions, type RunUntil, STOP_PHRASES, SUPPORT_CHANNELS, SUPPORT_KIT_SETTINGS_FIELDS, SYSTEM_PROMPTS, type SettingsIssueKey, type SettingsValidationIssue, type SettingsWarning, type SettingsWarningKey, type SharedPromptUsages, type SimilarTicket, type SourceDescriptor, type StatePort, type SupportChannel, type SupportKitNodeSettings, type SupportKitSettings, type SupportPipelineConfig, type SupportPipelineFragments, type SystemPrompt, 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, accountChannelAddress, agentRecord, answerableChannels, assertTransition, buildCategoryRecord, buildDiffAnalysisRecord, buildEvaluationRecord, buildGeneratedResponseRecord, buildReplyTimingRecord, buildResponseComparisonRecord, buildSupportKitRecords, buildSupportPipeline, buildTriageDecisionRecord, canTransition, categoryGroupRecord, channelPreGates, conversationEndEffects, createBudget, createPromptResolver, customerChannelAddress, diffAnalysisUniqueKey, firstCustomerMessage, guardrailBucket, hasCustomerAttachment, hasReferences, initialState, isAutoSendEligible, isAutomatedSenderEmail, isAutomatedSenderTicket, isCustomerTurnWithWords, isDecisionOrigin, isEvaluationVerdict, isGeneratedResponseStatus, isJudgemeConversation, isJudgemeTicket, isOutcome, isPromptUsage, isPromptUsedIn, isSendable, isSendableVerdict, isTerminalStatus, isTicketClosed, isWhatsappChevronNote, isWhatsappTicket, lastCustomerMessage, needsRevision, openTicketKeyFor, parseReferences, pipelineStateRecord, promptCacheRecord, promptUsageOf, publicationMode, rawTicketFactsAt, readConversationEnd, reclaimStalledSend, reconstructGuardrailHits, requiresFollowup, resolvePromptName, runGuardrails, runTicket, settingsToProfile, settingsWarnings, stopOptOut, systemPromptOf, targetRefFor, toConversationEnd, toDecisionOrigin, toSharedPromptUsages, validateSettings, verifyReply, whatsappModeFromLegacyBoolean };