plum-e2e 2.4.0 → 2.4.1

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.
@@ -16,7 +16,7 @@
16
16
  -->
17
17
 
18
18
  <script>
19
- /** @type {'pass' | 'fail' | 'tag' | 'schedule' | 'neutral' | 'node'} */
19
+ /** @type {'pass' | 'fail' | 'tag' | 'schedule' | 'neutral' | 'node' | 'mcp'} */
20
20
  export let variant = 'neutral';
21
21
  </script>
22
22
 
@@ -65,4 +65,9 @@
65
65
  background: var(--node-soft);
66
66
  color: var(--node);
67
67
  }
68
+
69
+ .mcp {
70
+ background: var(--accent-soft);
71
+ color: var(--accent);
72
+ }
68
73
  </style>
@@ -24,7 +24,8 @@ export const BROWSERS = [
24
24
 
25
25
  export const TRIGGER_TYPES = Object.freeze({
26
26
  MANUAL: 'manual-trigger',
27
- CLI: 'command-line-trigger'
27
+ CLI: 'command-line-trigger',
28
+ MCP: 'mcp-trigger'
28
29
  });
29
30
 
30
31
  export const REPORTS_PER_PAGE = 15;
@@ -17,7 +17,12 @@
17
17
 
18
18
  import { TRIGGER_TYPES } from '$lib/constants';
19
19
 
20
- const NON_SCHEDULED = new Set([TRIGGER_TYPES.MANUAL, TRIGGER_TYPES.CLI, 'undefined']);
20
+ const NON_SCHEDULED = new Set([
21
+ TRIGGER_TYPES.MANUAL,
22
+ TRIGGER_TYPES.CLI,
23
+ TRIGGER_TYPES.MCP,
24
+ 'undefined'
25
+ ]);
21
26
 
22
27
  export function isScheduled(type) {
23
28
  return !!type && !NON_SCHEDULED.has(type);
@@ -26,12 +31,14 @@ export function isScheduled(type) {
26
31
  export function triggerLabel(type) {
27
32
  if (type === TRIGGER_TYPES.MANUAL) return 'Manual';
28
33
  if (type === TRIGGER_TYPES.CLI || type === 'undefined') return 'CLI';
34
+ if (type === TRIGGER_TYPES.MCP) return 'MCP';
29
35
  return 'Scheduled';
30
36
  }
31
37
 
32
38
  export function triggerVariant(type) {
33
39
  if (type === TRIGGER_TYPES.MANUAL) return 'tag';
34
40
  if (type === TRIGGER_TYPES.CLI || type === 'undefined') return 'neutral';
41
+ if (type === TRIGGER_TYPES.MCP) return 'mcp';
35
42
  return 'schedule';
36
43
  }
37
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plum-e2e",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/silverlunah/plum.git"