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 CHANGED
@@ -295,7 +295,7 @@ function postDashboardEvent(data) {
295
295
 
296
296
  const req = http.request({
297
297
  hostname: 'localhost',
298
- port: 3333,
298
+ port: parseInt(process.env.ERNE_DASHBOARD_PORT || '3333', 10),
299
299
  path: '/api/events',
300
300
  method: 'POST',
301
301
  headers: {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erne-universal",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Complete AI coding agent harness for React Native and Expo development",
5
5
  "keywords": [
6
6
  "react-native",
@@ -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 id = ticket && ticket.id ? String(ticket.id) : '';
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 url = ticket && ticket.url ? String(ticket.url) : '';
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}`;