@cydm/magic-shell-agent-node 0.1.16 → 0.1.18

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.
@@ -1,4 +1,20 @@
1
- export function normalizeWorkerTitleCandidate(raw) {
1
+ function isShellNoiseTitle(value) {
2
+ const normalized = value.trim().toLowerCase();
3
+ if (!normalized)
4
+ return true;
5
+ if (normalized.startsWith("/"))
6
+ return true;
7
+ if (/^[a-z]:\\windows\\system32\\cmd(?:\.exe)?$/i.test(normalized))
8
+ return true;
9
+ if (/^[a-z]:\\windows\\system32\\windowspowershell\\v1\.0\\powershell(?:\.exe)?$/i.test(normalized))
10
+ return true;
11
+ if (/^[a-z]:\\windows\\system32\\wt(?:\.exe)?$/i.test(normalized))
12
+ return true;
13
+ if (/^(cmd|cmd\.exe|powershell|powershell\.exe|pwsh|pwsh\.exe|wt|wt\.exe)$/i.test(normalized))
14
+ return true;
15
+ return false;
16
+ }
17
+ function normalizeVisibleTitle(raw, maxLength) {
2
18
  const cleaned = raw
3
19
  .split(/\n{2,}/)[0]
4
20
  .split("\n")[0]
@@ -6,13 +22,16 @@ export function normalizeWorkerTitleCandidate(raw) {
6
22
  .replace(/Reply to the primary agent now.*$/i, "")
7
23
  .replace(/\s+/g, " ")
8
24
  .trim();
9
- const title = cleaned.slice(0, 48);
25
+ const title = cleaned.slice(0, maxLength).trim();
10
26
  if (!title)
11
27
  return null;
12
- if (title.startsWith("/"))
28
+ if (isShellNoiseTitle(title))
13
29
  return null;
14
30
  return title;
15
31
  }
32
+ export function normalizeWorkerTitleCandidate(raw) {
33
+ return normalizeVisibleTitle(raw, 48);
34
+ }
16
35
  export function extractTerminalMetadata(output, agentType) {
17
36
  const matches = Array.from(output.matchAll(/\x1b\](?:0|2);([^\x07\x1b]*)(?:\x07|\x1b\\)/g));
18
37
  if (!matches.length) {
@@ -44,7 +63,7 @@ export function extractTerminalMetadata(output, agentType) {
44
63
  const normalized = agentType === "pie"
45
64
  ? visibleTitle.replace(/^Pie\s*[·-]\s*/i, "")
46
65
  : visibleTitle;
47
- const title = normalized.trim().replace(/\s+/g, " ").slice(0, 60);
66
+ const title = normalizeVisibleTitle(normalized, 60);
48
67
  if (title) {
49
68
  metadata.title = title;
50
69
  }
@@ -629,9 +629,15 @@
629
629
  flex-direction: column;
630
630
  gap: 8px;
631
631
  overflow: auto;
632
+ scrollbar-width: none;
633
+ -ms-overflow-style: none;
632
634
  min-height: 0;
633
635
  }
634
636
 
637
+ .worker-list::-webkit-scrollbar {
638
+ display: none;
639
+ }
640
+
635
641
  .worker-section {
636
642
  display: flex;
637
643
  flex-direction: column;
@@ -927,9 +933,15 @@
927
933
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
928
934
  color: var(--text-primary);
929
935
  overflow: auto;
936
+ scrollbar-width: none;
937
+ -ms-overflow-style: none;
930
938
  z-index: 20;
931
939
  }
932
940
 
941
+ .worker-detail-panel::-webkit-scrollbar {
942
+ display: none;
943
+ }
944
+
933
945
  .worker-detail-panel.active {
934
946
  display: block;
935
947
  }
@@ -987,6 +999,12 @@
987
999
  gap: 4px;
988
1000
  max-height: 140px;
989
1001
  overflow: auto;
1002
+ scrollbar-width: none;
1003
+ -ms-overflow-style: none;
1004
+ }
1005
+
1006
+ .worker-detail-events::-webkit-scrollbar {
1007
+ display: none;
990
1008
  }
991
1009
 
992
1010
  .worker-detail-event {
@@ -1008,6 +1026,12 @@
1008
1026
  white-space: pre-wrap;
1009
1027
  max-height: 120px;
1010
1028
  overflow: auto;
1029
+ scrollbar-width: none;
1030
+ -ms-overflow-style: none;
1031
+ }
1032
+
1033
+ .worker-detail-output::-webkit-scrollbar {
1034
+ display: none;
1011
1035
  }
1012
1036
 
1013
1037
  .worker-detail-snapshots {
@@ -1017,6 +1041,12 @@
1017
1041
  gap: 4px;
1018
1042
  max-height: 120px;
1019
1043
  overflow: auto;
1044
+ scrollbar-width: none;
1045
+ -ms-overflow-style: none;
1046
+ }
1047
+
1048
+ .worker-detail-snapshots::-webkit-scrollbar {
1049
+ display: none;
1020
1050
  }
1021
1051
 
1022
1052
  .worker-detail-snapshot {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cydm/magic-shell-agent-node",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Magic Shell Agent Node - Local agent connector",
5
5
  "homepage": "https://magicshell.ai",
6
6
  "keywords": [