pinokiod 7.5.41 → 7.5.43
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/package.json +1 -1
- package/server/index.js +45 -7
- package/server/lib/log_redaction.js +163 -5
- package/server/lib/privacy_filter_cache.js +286 -0
- package/server/public/logs-top-redaction.css +85 -37
- package/server/public/logs-top-redaction.js +299 -105
- package/server/public/logs.js +65 -9
- package/server/public/privacy_filter_worker.js +149 -7
- package/server/public/style.css +82 -0
- package/server/views/logs.ejs +36 -25
- package/server/views/partials/logs_top_redaction_actions.ejs +1 -2
- package/server/views/partials/logs_top_redaction_pane.ejs +16 -6
- package/test/log-redaction-overrides.test.js +85 -3
- package/test/logs-ask-ai.test.js +213 -18
- package/test/privacy-filter-cache.test.js +242 -0
|
@@ -19,39 +19,6 @@ body.dark .logs-redact-button:focus-visible {
|
|
|
19
19
|
border-color: rgba(96, 165, 250, 0.34);
|
|
20
20
|
background: rgba(96, 165, 250, 0.14);
|
|
21
21
|
}
|
|
22
|
-
.logs-redaction-chip {
|
|
23
|
-
border: 1px solid rgba(28, 96, 186, 0.18);
|
|
24
|
-
border-radius: 999px;
|
|
25
|
-
min-height: 26px;
|
|
26
|
-
padding: 0 9px;
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
gap: 6px;
|
|
31
|
-
background: rgba(28, 96, 186, 0.055);
|
|
32
|
-
color: #174a8b;
|
|
33
|
-
font-size: 10px;
|
|
34
|
-
line-height: 1;
|
|
35
|
-
font-weight: 760;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
}
|
|
39
|
-
.logs-redaction-chip:hover,
|
|
40
|
-
.logs-redaction-chip:focus-visible {
|
|
41
|
-
border-color: rgba(28, 96, 186, 0.32);
|
|
42
|
-
background: rgba(28, 96, 186, 0.1);
|
|
43
|
-
outline: none;
|
|
44
|
-
}
|
|
45
|
-
body.dark .logs-redaction-chip {
|
|
46
|
-
border-color: rgba(96, 165, 250, 0.2);
|
|
47
|
-
background: rgba(96, 165, 250, 0.08);
|
|
48
|
-
color: #bfdbfe;
|
|
49
|
-
}
|
|
50
|
-
body.dark .logs-redaction-chip:hover,
|
|
51
|
-
body.dark .logs-redaction-chip:focus-visible {
|
|
52
|
-
border-color: rgba(96, 165, 250, 0.32);
|
|
53
|
-
background: rgba(96, 165, 250, 0.13);
|
|
54
|
-
}
|
|
55
22
|
body.dark .logs-report-status.is-error {
|
|
56
23
|
color: #ff8373;
|
|
57
24
|
}
|
|
@@ -81,18 +48,29 @@ body.dark .logs-report-status.is-error {
|
|
|
81
48
|
justify-content: space-between;
|
|
82
49
|
gap: 10px;
|
|
83
50
|
}
|
|
51
|
+
.logs-top-redaction-header-actions {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: flex-end;
|
|
55
|
+
gap: 6px;
|
|
56
|
+
flex: 0 0 auto;
|
|
57
|
+
}
|
|
58
|
+
.logs-top-redaction-header-actions .logs-icon-button.is-busy i {
|
|
59
|
+
animation: spin 1s linear infinite;
|
|
60
|
+
}
|
|
84
61
|
.logs-top-redaction-files {
|
|
85
62
|
display: flex;
|
|
86
63
|
flex-direction: column;
|
|
87
64
|
gap: 6px;
|
|
88
65
|
margin-top: 10px;
|
|
89
|
-
max-height:
|
|
66
|
+
max-height: 244px;
|
|
90
67
|
overflow: auto;
|
|
91
68
|
}
|
|
92
69
|
.logs-top-redaction-file {
|
|
93
70
|
display: grid;
|
|
94
|
-
grid-template-columns: minmax(0, 1fr);
|
|
95
|
-
align-items:
|
|
71
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
72
|
+
align-items: start;
|
|
73
|
+
gap: 8px;
|
|
96
74
|
border: 1px solid transparent;
|
|
97
75
|
border-radius: 7px;
|
|
98
76
|
padding: 7px 8px;
|
|
@@ -101,6 +79,10 @@ body.dark .logs-report-status.is-error {
|
|
|
101
79
|
cursor: pointer;
|
|
102
80
|
text-align: left;
|
|
103
81
|
}
|
|
82
|
+
.logs-top-redaction-file.is-warning {
|
|
83
|
+
border-color: rgba(186, 133, 28, 0.2);
|
|
84
|
+
background: rgba(186, 133, 28, 0.055);
|
|
85
|
+
}
|
|
104
86
|
.logs-top-redaction-file:hover,
|
|
105
87
|
.logs-top-redaction-file.is-active {
|
|
106
88
|
border-color: var(--logs-border-strong);
|
|
@@ -133,10 +115,76 @@ body.dark .logs-top-redaction-file {
|
|
|
133
115
|
font-size: 10px;
|
|
134
116
|
line-height: 1.2;
|
|
135
117
|
}
|
|
136
|
-
.logs-top-redaction-
|
|
118
|
+
.logs-top-redaction-file-badge {
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
border-radius: 999px;
|
|
122
|
+
padding: 2px 6px;
|
|
123
|
+
background: rgba(186, 133, 28, 0.11);
|
|
124
|
+
color: #7a5413;
|
|
125
|
+
font-size: 9px;
|
|
126
|
+
line-height: 1.2;
|
|
127
|
+
font-weight: 800;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
}
|
|
130
|
+
body.dark .logs-top-redaction-file-badge {
|
|
131
|
+
background: rgba(245, 189, 75, 0.12);
|
|
132
|
+
color: #e1b261;
|
|
133
|
+
}
|
|
134
|
+
.logs-top-redaction-mode {
|
|
135
|
+
grid-column: 1 / -1;
|
|
136
|
+
width: 100%;
|
|
137
|
+
min-width: 0;
|
|
138
|
+
min-height: 26px;
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
border: 1px solid var(--logs-border);
|
|
141
|
+
border-radius: 6px;
|
|
142
|
+
padding: 0 7px;
|
|
143
|
+
background: var(--logs-bg);
|
|
144
|
+
color: var(--logs-text);
|
|
145
|
+
font-size: 10px;
|
|
146
|
+
font-weight: 700;
|
|
147
|
+
}
|
|
148
|
+
.logs-top-redaction-mode:focus-visible {
|
|
149
|
+
border-color: var(--logs-border-strong);
|
|
150
|
+
outline: none;
|
|
151
|
+
}
|
|
152
|
+
.logs-top-redaction-mode:disabled {
|
|
153
|
+
opacity: 0.7;
|
|
154
|
+
cursor: not-allowed;
|
|
155
|
+
}
|
|
156
|
+
.logs-top-redaction-footer {
|
|
137
157
|
flex: 0 0 auto;
|
|
158
|
+
min-width: 0;
|
|
138
159
|
border-top: 1px solid var(--logs-border);
|
|
139
160
|
padding: 10px 12px;
|
|
161
|
+
display: block;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
}
|
|
164
|
+
.logs-top-redaction-actions {
|
|
165
|
+
display: grid;
|
|
166
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
167
|
+
gap: 6px;
|
|
168
|
+
align-items: stretch;
|
|
169
|
+
min-width: 0;
|
|
170
|
+
}
|
|
171
|
+
.logs-top-redaction-actions .logs-primary-button,
|
|
172
|
+
.logs-top-redaction-actions .logs-secondary-button,
|
|
173
|
+
.logs-top-redaction-actions .logs-flat-button {
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
width: 100%;
|
|
176
|
+
min-width: 0;
|
|
177
|
+
max-width: 100%;
|
|
178
|
+
}
|
|
179
|
+
.logs-top-redaction-actions #logs-download-archive {
|
|
180
|
+
grid-column: 1 / -1;
|
|
181
|
+
}
|
|
182
|
+
.logs-top-redaction-footer .logs-zip-status {
|
|
183
|
+
display: block;
|
|
184
|
+
width: 100%;
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
margin-top: 8px;
|
|
187
|
+
text-align: left;
|
|
140
188
|
color: var(--logs-muted);
|
|
141
189
|
font-size: 11px;
|
|
142
190
|
line-height: 1.35;
|