@opencxh/domain 1.253.0 → 1.255.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.
@@ -7,3 +7,21 @@
7
7
  * `voorstel: tool:mcp__jira__create_issue`.
8
8
  */
9
9
  export declare function humanizeAction(action: string): string;
10
+ /** The namespaced tool id without the step's `tool:` prefix. */
11
+ export declare function toolName(action: string): string;
12
+ /**
13
+ * The tool's own name, without the namespace that says who owns it:
14
+ * `work__create_work_item` and `mcp__jira__create_issue` become `create_work_item` and
15
+ * `create_issue`. The owner is shown separately (a group header, a chip), so repeating it
16
+ * in every row only costs width.
17
+ */
18
+ export declare function toolBareName(action: string): string;
19
+ /**
20
+ * What a person reads in a picker: `work__create_work_item` becomes `Create work item`.
21
+ *
22
+ * Derived and not translated, on purpose. A tool declares a `description` written for the
23
+ * model and no label of its own, so the honest options were this or a `title` field in
24
+ * thirteen apps — work that has not earned itself yet. The raw id stays visible next to it,
25
+ * because that is what an error message and the run trace will say.
26
+ */
27
+ export declare function toolDisplayName(action: string): string;
@@ -0,0 +1 @@
1
+ export {};
@@ -45,12 +45,15 @@ export declare const TRIGGER_VARS: readonly [{
45
45
  }, {
46
46
  readonly name: "fromStatus";
47
47
  readonly type: "string";
48
+ readonly onlyFor: readonly ["INTERACTION_STATUS_CHANGED"];
48
49
  }, {
49
50
  readonly name: "toStatus";
50
51
  readonly type: "string";
52
+ readonly onlyFor: readonly ["INTERACTION_STATUS_CHANGED"];
51
53
  }, {
52
54
  readonly name: "toCategory";
53
55
  readonly type: "string";
56
+ readonly onlyFor: readonly ["WORK_ITEM_STATUS_CHANGED"];
54
57
  }, {
55
58
  readonly name: "contactId";
56
59
  readonly type: "string";
@@ -70,6 +73,14 @@ export declare const TRIGGER_VARS: readonly [{
70
73
  readonly name: "assigneeUserId";
71
74
  readonly type: "string";
72
75
  }];
76
+ /**
77
+ * Does this trigger fill that variable? A trigger listing no activity types matches
78
+ * everything, which is also what the engine does with it.
79
+ */
80
+ export declare function triggerFillsVar(variable: {
81
+ name: string;
82
+ onlyFor?: readonly string[];
83
+ }, activityTypes: readonly string[] | undefined): boolean;
73
84
  /**
74
85
  * What a classify step **yields** per mode — the contract `runClassify` honours.
75
86
  *
@@ -0,0 +1 @@
1
+ export {};