@camunda/copilot-chat 0.5.12-alpha.9 → 0.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.ts +106 -0
- package/dist/index.js +14426 -12912
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare interface AgentEvent {
|
|
|
30
30
|
readonly toolCallId?: string;
|
|
31
31
|
readonly toolArguments?: string;
|
|
32
32
|
readonly toolResult?: string;
|
|
33
|
+
readonly skillName?: string;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export declare type AgentResult = ToolInvokeResult | MixedToolResultEvent | ConversationTitleResult;
|
|
@@ -88,8 +89,17 @@ export declare interface AgentTransport {
|
|
|
88
89
|
fetchConversations?(page: number, size: number): Promise<ConversationsPage>;
|
|
89
90
|
fetchConversationMessages?(conversationId: string, cursor?: number | null, limit?: number): Promise<ConversationMessagesPage>;
|
|
90
91
|
rollbackConversation?(conversationId: string, milestoneId: string): Promise<RollbackResponse | undefined>;
|
|
92
|
+
registerSkills?(conversationId: string, skills: readonly SkillDefinition[]): Promise<void>;
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
export declare const auditAndRepairSkill: {
|
|
96
|
+
readonly slug: "audit-and-repair";
|
|
97
|
+
readonly name: "Audit and repair";
|
|
98
|
+
readonly description: "Use ONLY when the user is asking to review, audit, check, fix, or repair an EXISTING diagram on the canvas. Do NOT use for creating new diagrams or modifying not-yet-built processes.";
|
|
99
|
+
readonly suggestedCapabilities: readonly ["BPMN_VIEWING", "BPMN_EDITING"];
|
|
100
|
+
readonly content: string;
|
|
101
|
+
};
|
|
102
|
+
|
|
93
103
|
declare interface BackendToolPayload {
|
|
94
104
|
readonly name: string;
|
|
95
105
|
readonly description: string;
|
|
@@ -107,6 +117,22 @@ export declare interface BpmnElement {
|
|
|
107
117
|
readonly children?: ReadonlyArray<BpmnElement>;
|
|
108
118
|
}
|
|
109
119
|
|
|
120
|
+
export declare const bpmnErrorHandlingSkill: {
|
|
121
|
+
readonly slug: "bpmn-error-handling";
|
|
122
|
+
readonly name: "BPMN Error Handling";
|
|
123
|
+
readonly description: "Error boundary events and error end event patterns for BPMN processes. Activate when the process has service tasks, call activities, or explicit error/failure handling.";
|
|
124
|
+
readonly suggestedCapabilities: readonly ["BPMN_EDITING"];
|
|
125
|
+
readonly content: string;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export declare const bpmnGatewayPatternsSkill: {
|
|
129
|
+
readonly slug: "bpmn-gateway-patterns";
|
|
130
|
+
readonly name: "BPMN Gateway Patterns";
|
|
131
|
+
readonly description: "Gateway rules — default flows, condition expression syntax, parallel split/join, event-based gateways. Activate when the process has decision points or parallel work.";
|
|
132
|
+
readonly suggestedCapabilities: readonly ["BPMN_EDITING"];
|
|
133
|
+
readonly content: string;
|
|
134
|
+
};
|
|
135
|
+
|
|
110
136
|
export declare interface BpmnModeler {
|
|
111
137
|
readonly get: (serviceName: string, strict?: boolean) => unknown;
|
|
112
138
|
readonly saveXML: (options?: {
|
|
@@ -116,6 +142,22 @@ export declare interface BpmnModeler {
|
|
|
116
142
|
}>;
|
|
117
143
|
}
|
|
118
144
|
|
|
145
|
+
export declare const bpmnModelingBestPracticesSkill: {
|
|
146
|
+
readonly slug: "bpmn-modeling-best-practices";
|
|
147
|
+
readonly name: "BPMN Modeling Best Practices";
|
|
148
|
+
readonly description: "Camunda 8 modeling conventions aligned with the camunda/process-os reference: naming, required Zeebe extensions, signal vs message, waiting states, escalation patterns, XOR gateway data requirements, error handling, SLA reminder pattern, multi-end-event rule. Activate this BEFORE building any non-trivial BPMN process.";
|
|
149
|
+
readonly suggestedCapabilities: readonly ["BPMN_EDITING"];
|
|
150
|
+
readonly content: string;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export declare const bpmnTimerSlaSkill: {
|
|
154
|
+
readonly slug: "bpmn-timer-sla";
|
|
155
|
+
readonly name: "BPMN Timer & SLA";
|
|
156
|
+
readonly description: "Timer boundary events, SLA escalation, and ISO 8601 duration expressions. Activate when the process has user tasks with deadlines, approval steps, or any time-based waiting.";
|
|
157
|
+
readonly suggestedCapabilities: readonly ["BPMN_EDITING"];
|
|
158
|
+
readonly content: string;
|
|
159
|
+
};
|
|
160
|
+
|
|
119
161
|
export declare const camundaDocsSearchTool: {
|
|
120
162
|
readonly name: "camunda_docs_search";
|
|
121
163
|
readonly displayName: "Searching docs";
|
|
@@ -408,6 +450,14 @@ export declare const createWithValidation: (context: CopilotToolContext) => <T e
|
|
|
408
450
|
|
|
409
451
|
export declare type DescriptionFormatter = (args: Record<string, unknown>) => string;
|
|
410
452
|
|
|
453
|
+
export declare const discoverySkill: {
|
|
454
|
+
readonly slug: "discovery";
|
|
455
|
+
readonly name: "Discovery";
|
|
456
|
+
readonly description: "Detect gaps in a BPMN request before building — ask 1–3 targeted questions about actors, error conditions, and time constraints when the request is ambiguous. Skip if the request is already detailed.";
|
|
457
|
+
readonly suggestedCapabilities: readonly ["BPMN_EDITING"];
|
|
458
|
+
readonly content: string;
|
|
459
|
+
};
|
|
460
|
+
|
|
411
461
|
declare interface DmnDefinitions extends DmnModdleElement {
|
|
412
462
|
readonly $model: {
|
|
413
463
|
readonly toXML: (definitions: DmnDefinitions, options?: {
|
|
@@ -475,10 +525,19 @@ export declare const EventType: {
|
|
|
475
525
|
readonly EXECUTION_COMPLETE: "EXECUTION_COMPLETE";
|
|
476
526
|
readonly ERROR: "ERROR";
|
|
477
527
|
readonly CONVERSATION_TITLE: "CONVERSATION_TITLE";
|
|
528
|
+
readonly SKILL_ACTIVATED: "SKILL_ACTIVATED";
|
|
478
529
|
};
|
|
479
530
|
|
|
480
531
|
export declare type EventTypeValue = (typeof EventType)[keyof typeof EventType];
|
|
481
532
|
|
|
533
|
+
export declare const feelReferenceSkill: {
|
|
534
|
+
readonly slug: "feel-reference";
|
|
535
|
+
readonly name: "FEEL Language Reference";
|
|
536
|
+
readonly description: "Full FEEL language reference — operators, 20 most-used built-ins, date/time arithmetic, null safety, multi-entry context. Activate when writing non-trivial FEEL expressions.";
|
|
537
|
+
readonly suggestedCapabilities: readonly ["BPMN_EDITING"];
|
|
538
|
+
readonly content: string;
|
|
539
|
+
};
|
|
540
|
+
|
|
482
541
|
declare interface FeelValidationResult {
|
|
483
542
|
readonly error?: string;
|
|
484
543
|
readonly warnings?: ReadonlyArray<string>;
|
|
@@ -497,6 +556,14 @@ export declare interface FormLintError {
|
|
|
497
556
|
readonly category: string;
|
|
498
557
|
}
|
|
499
558
|
|
|
559
|
+
export declare const formSchemaSkill: {
|
|
560
|
+
readonly slug: "form-schema";
|
|
561
|
+
readonly name: "Camunda Form Schema";
|
|
562
|
+
readonly description: "Camunda Forms schema rules — component types, validation, ID conventions, binding, datetime subtype. Activate when creating or modifying forms.";
|
|
563
|
+
readonly suggestedCapabilities: readonly ["FORM_EDITING"];
|
|
564
|
+
readonly content: string;
|
|
565
|
+
};
|
|
566
|
+
|
|
500
567
|
export declare const getDefaultStatusLabel: (eventType: EventTypeValue, toolName?: string, eventStatus?: EventStatusValue) => string;
|
|
501
568
|
|
|
502
569
|
export declare interface ImportResult {
|
|
@@ -586,6 +653,14 @@ declare interface ModelerAccessOptions {
|
|
|
586
653
|
|
|
587
654
|
export declare const openSidecar: () => void;
|
|
588
655
|
|
|
656
|
+
export declare const planThenBuildSkill: {
|
|
657
|
+
readonly slug: "plan-then-build";
|
|
658
|
+
readonly name: "Plan then build";
|
|
659
|
+
readonly description: "Plan a BPMN process before any mutation; lock in the topology and build iteratively.";
|
|
660
|
+
readonly suggestedCapabilities: readonly ["BPMN_VIEWING", "BPMN_EDITING"];
|
|
661
|
+
readonly content: string;
|
|
662
|
+
};
|
|
663
|
+
|
|
589
664
|
export declare interface ProjectContext {
|
|
590
665
|
readonly id: string;
|
|
591
666
|
readonly folderId: string | null;
|
|
@@ -640,6 +715,21 @@ export declare interface SidecarRenderProps {
|
|
|
640
715
|
readonly isOpen: boolean;
|
|
641
716
|
}
|
|
642
717
|
|
|
718
|
+
export declare interface SkillDefinition {
|
|
719
|
+
readonly slug: string;
|
|
720
|
+
readonly name: string;
|
|
721
|
+
readonly description: string;
|
|
722
|
+
readonly content: string;
|
|
723
|
+
readonly suggestedCapabilities?: readonly Capability[];
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export declare const skillRegistry: {
|
|
727
|
+
register: (skill: SkillDefinition) => void;
|
|
728
|
+
get: (slug: string) => SkillDefinition | undefined;
|
|
729
|
+
getAll: () => readonly SkillDefinition[];
|
|
730
|
+
clear: () => void;
|
|
731
|
+
};
|
|
732
|
+
|
|
643
733
|
declare interface SourceReference {
|
|
644
734
|
readonly content: string;
|
|
645
735
|
readonly sourceUrl: string;
|
|
@@ -747,6 +837,14 @@ export declare interface ToolResultPayload {
|
|
|
747
837
|
|
|
748
838
|
export declare type ToolType = 'frontend' | 'mixed';
|
|
749
839
|
|
|
840
|
+
export declare const topologyClassifierSkill: {
|
|
841
|
+
readonly slug: "topology-classifier";
|
|
842
|
+
readonly name: "Topology classifier";
|
|
843
|
+
readonly description: "Use ONLY when the prompt EXPLICITLY mentions AI agents, autonomous decisioning, LLM orchestration, or multiple-event-triggered flows. Do NOT use for ordinary sequential business processes (e.g. approval, KYC, onboarding, invoice handling, claim handling) — those are handled by plan-then-build alone.";
|
|
844
|
+
readonly suggestedCapabilities: readonly ["BPMN_VIEWING", "BPMN_EDITING"];
|
|
845
|
+
readonly content: string;
|
|
846
|
+
};
|
|
847
|
+
|
|
750
848
|
export declare const traverseModdle: (root: DmnModdleElement | Record<string, unknown>, visitor: TraverseVisitor) => void;
|
|
751
849
|
|
|
752
850
|
declare type TraverseVisitor = (element: DmnModdleElement) => void | false;
|
|
@@ -763,4 +861,12 @@ export declare const useChatStore: UseBoundStore<StoreApi<ChatStore>>;
|
|
|
763
861
|
|
|
764
862
|
export declare const useSidecarOpen: () => boolean;
|
|
765
863
|
|
|
864
|
+
export declare const zeebeTaskConfigurationSkill: {
|
|
865
|
+
readonly slug: "zeebe-task-configuration";
|
|
866
|
+
readonly name: "Zeebe Task Configuration";
|
|
867
|
+
readonly description: "Zeebe extension element patterns for service tasks, user tasks, and business rule tasks — taskDefinition, assignmentDefinition, formDefinition, ioMapping. Activate when configuring any task.";
|
|
868
|
+
readonly suggestedCapabilities: readonly ["BPMN_EDITING"];
|
|
869
|
+
readonly content: string;
|
|
870
|
+
};
|
|
871
|
+
|
|
766
872
|
export { }
|