@camunda/copilot-chat 0.5.12-alpha.8 → 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 +134 -0
- package/dist/index.js +14492 -12960
- 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";
|
|
@@ -141,6 +183,22 @@ export declare interface camundaDocsSearchToolResult {
|
|
|
141
183
|
readonly sources: readonly KapaAiSearchResult[];
|
|
142
184
|
}
|
|
143
185
|
|
|
186
|
+
export declare const CAPABILITY: {
|
|
187
|
+
readonly BPMN_EDITING: "BPMN_EDITING";
|
|
188
|
+
readonly FORM_EDITING: "FORM_EDITING";
|
|
189
|
+
readonly DMN_EDITING: "DMN_EDITING";
|
|
190
|
+
readonly FEEL_EDITING: "FEEL_EDITING";
|
|
191
|
+
readonly BPMN_VIEWING: "BPMN_VIEWING";
|
|
192
|
+
readonly FORM_VIEWING: "FORM_VIEWING";
|
|
193
|
+
readonly DMN_VIEWING: "DMN_VIEWING";
|
|
194
|
+
readonly FILE_OPERATIONS: "FILE_OPERATIONS";
|
|
195
|
+
readonly FILE_CREATION: "FILE_CREATION";
|
|
196
|
+
readonly VALIDATION: "VALIDATION";
|
|
197
|
+
readonly INTEGRATION: "INTEGRATION";
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export declare type Capability = (typeof CAPABILITY)[keyof typeof CAPABILITY];
|
|
201
|
+
|
|
144
202
|
declare interface ChatActions {
|
|
145
203
|
readonly addUserMessage: (content: string) => string;
|
|
146
204
|
readonly addAssistantMessage: (id: string) => void;
|
|
@@ -392,6 +450,14 @@ export declare const createWithValidation: (context: CopilotToolContext) => <T e
|
|
|
392
450
|
|
|
393
451
|
export declare type DescriptionFormatter = (args: Record<string, unknown>) => string;
|
|
394
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
|
+
|
|
395
461
|
declare interface DmnDefinitions extends DmnModdleElement {
|
|
396
462
|
readonly $model: {
|
|
397
463
|
readonly toXML: (definitions: DmnDefinitions, options?: {
|
|
@@ -459,10 +525,19 @@ export declare const EventType: {
|
|
|
459
525
|
readonly EXECUTION_COMPLETE: "EXECUTION_COMPLETE";
|
|
460
526
|
readonly ERROR: "ERROR";
|
|
461
527
|
readonly CONVERSATION_TITLE: "CONVERSATION_TITLE";
|
|
528
|
+
readonly SKILL_ACTIVATED: "SKILL_ACTIVATED";
|
|
462
529
|
};
|
|
463
530
|
|
|
464
531
|
export declare type EventTypeValue = (typeof EventType)[keyof typeof EventType];
|
|
465
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
|
+
|
|
466
541
|
declare interface FeelValidationResult {
|
|
467
542
|
readonly error?: string;
|
|
468
543
|
readonly warnings?: ReadonlyArray<string>;
|
|
@@ -481,12 +556,32 @@ export declare interface FormLintError {
|
|
|
481
556
|
readonly category: string;
|
|
482
557
|
}
|
|
483
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
|
+
|
|
484
567
|
export declare const getDefaultStatusLabel: (eventType: EventTypeValue, toolName?: string, eventStatus?: EventStatusValue) => string;
|
|
485
568
|
|
|
486
569
|
export declare interface ImportResult {
|
|
487
570
|
readonly error?: unknown;
|
|
488
571
|
}
|
|
489
572
|
|
|
573
|
+
export declare const isApplyElementTemplateCompleted: (event: AgentEvent) => boolean;
|
|
574
|
+
|
|
575
|
+
export declare const isCurrentFileModified: (event: AgentEvent) => boolean;
|
|
576
|
+
|
|
577
|
+
export declare const isLayoutBpmnXmlCompleted: (event: AgentEvent) => boolean;
|
|
578
|
+
|
|
579
|
+
export declare const isToolAllowedWithCapabilities: (tool: {
|
|
580
|
+
readonly requiredCapabilities?: ReadonlyArray<string>;
|
|
581
|
+
}, capabilities: ReadonlyArray<string>) => boolean;
|
|
582
|
+
|
|
583
|
+
export declare const isWriteArtifactCompleted: (event: AgentEvent) => boolean;
|
|
584
|
+
|
|
490
585
|
declare interface KapaAiSearchResult {
|
|
491
586
|
readonly content: string;
|
|
492
587
|
readonly source_url: string;
|
|
@@ -558,6 +653,14 @@ declare interface ModelerAccessOptions {
|
|
|
558
653
|
|
|
559
654
|
export declare const openSidecar: () => void;
|
|
560
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
|
+
|
|
561
664
|
export declare interface ProjectContext {
|
|
562
665
|
readonly id: string;
|
|
563
666
|
readonly folderId: string | null;
|
|
@@ -612,6 +715,21 @@ export declare interface SidecarRenderProps {
|
|
|
612
715
|
readonly isOpen: boolean;
|
|
613
716
|
}
|
|
614
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
|
+
|
|
615
733
|
declare interface SourceReference {
|
|
616
734
|
readonly content: string;
|
|
617
735
|
readonly sourceUrl: string;
|
|
@@ -719,6 +837,14 @@ export declare interface ToolResultPayload {
|
|
|
719
837
|
|
|
720
838
|
export declare type ToolType = 'frontend' | 'mixed';
|
|
721
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
|
+
|
|
722
848
|
export declare const traverseModdle: (root: DmnModdleElement | Record<string, unknown>, visitor: TraverseVisitor) => void;
|
|
723
849
|
|
|
724
850
|
declare type TraverseVisitor = (element: DmnModdleElement) => void | false;
|
|
@@ -735,4 +861,12 @@ export declare const useChatStore: UseBoundStore<StoreApi<ChatStore>>;
|
|
|
735
861
|
|
|
736
862
|
export declare const useSidecarOpen: () => boolean;
|
|
737
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
|
+
|
|
738
872
|
export { }
|