erne-universal 0.10.3 → 0.10.4
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/lib/audit-cli.js +1 -1
- package/lib/dashboard.js +3 -3
- package/lib/doctor.js +0 -1
- package/package.json +1 -1
- package/worker/interpolate.js +4 -2
package/lib/audit-cli.js
CHANGED
package/lib/dashboard.js
CHANGED
|
@@ -96,14 +96,14 @@ async function ensureHooksConfigured() {
|
|
|
96
96
|
event: 'PreToolUse',
|
|
97
97
|
pattern: 'Agent',
|
|
98
98
|
script: 'dashboard-event.js',
|
|
99
|
-
command: 'node scripts/hooks/run-with-flags.js dashboard-event.js',
|
|
99
|
+
command: 'node node_modules/erne-universal/scripts/hooks/run-with-flags.js dashboard-event.js',
|
|
100
100
|
profiles: ['minimal', 'standard', 'strict'],
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
event: 'PostToolUse',
|
|
104
104
|
pattern: 'Agent',
|
|
105
105
|
script: 'dashboard-event.js',
|
|
106
|
-
command: 'node scripts/hooks/run-with-flags.js dashboard-event.js',
|
|
106
|
+
command: 'node node_modules/erne-universal/scripts/hooks/run-with-flags.js dashboard-event.js',
|
|
107
107
|
profiles: ['minimal', 'standard', 'strict'],
|
|
108
108
|
}
|
|
109
109
|
);
|
|
@@ -112,7 +112,7 @@ async function ensureHooksConfigured() {
|
|
|
112
112
|
const dashboardHook = {
|
|
113
113
|
pattern: 'Agent',
|
|
114
114
|
script: 'dashboard-event.js',
|
|
115
|
-
command: 'node scripts/hooks/run-with-flags.js dashboard-event.js',
|
|
115
|
+
command: 'node node_modules/erne-universal/scripts/hooks/run-with-flags.js dashboard-event.js',
|
|
116
116
|
profiles: ['minimal', 'standard', 'strict'],
|
|
117
117
|
};
|
|
118
118
|
if (!data.PreToolUse) data.PreToolUse = [];
|
package/lib/doctor.js
CHANGED
|
@@ -146,7 +146,6 @@ async function autoFix(cwd, findings) {
|
|
|
146
146
|
} catch {
|
|
147
147
|
// tsconfig.json may contain comments (JSON5) — skip auto-fix
|
|
148
148
|
fixes.push('Skipped strict mode: tsconfig.json contains comments (edit manually)');
|
|
149
|
-
return fixes;
|
|
150
149
|
}
|
|
151
150
|
// If tsconfig extends a base config, the base likely already sets strict
|
|
152
151
|
if (tsconfig.extends) {
|
package/package.json
CHANGED
package/worker/interpolate.js
CHANGED
|
@@ -27,11 +27,13 @@ function sanitizeTitle(title) {
|
|
|
27
27
|
* Build standard template variables from a ticket and agent name.
|
|
28
28
|
*/
|
|
29
29
|
function buildTaskVars(ticket, agent) {
|
|
30
|
-
const
|
|
30
|
+
const rawId = ticket && ticket.id ? String(ticket.id) : '';
|
|
31
|
+
const id = rawId.replace(/[`'$\\]/g, '').replace(/[\r\n]+/g, ' ').trim();
|
|
31
32
|
const rawTitle = ticket && ticket.title ? String(ticket.title) : '';
|
|
32
33
|
const title = sanitizeTitle(rawTitle);
|
|
33
34
|
const provider = ticket && ticket.provider ? String(ticket.provider) : '';
|
|
34
|
-
const
|
|
35
|
+
const rawUrl = ticket && ticket.url ? String(ticket.url) : '';
|
|
36
|
+
const url = rawUrl.replace(/[`'$\\]/g, '').replace(/[\r\n]+/g, ' ').trim();
|
|
35
37
|
|
|
36
38
|
const branchId = id.replace(/[^a-zA-Z0-9-]/g, '-').toLowerCase();
|
|
37
39
|
const branch = `${agent || 'worker'}/task-${branchId}`;
|