@qlucent/fishi-core 0.15.0 → 0.15.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4552,7 +4552,7 @@ try {
4552
4552
 
4553
4553
  // Emit monitoring event
4554
4554
  try {
4555
- const { emitMonitorEvent } = await import('./monitor-emitter.mjs');
4555
+ const { emitMonitorEvent } = await import(new URL('./monitor-emitter.mjs', import.meta.url).href);
4556
4556
  emitMonitorEvent(projectRoot, { type: 'session.started', agent: 'master-orchestrator', data: { phase, sprint, projectName, taskCounts } });
4557
4557
  } catch {}
4558
4558
  } catch (err) {
@@ -4797,7 +4797,7 @@ try {
4797
4797
 
4798
4798
  // Emit monitoring event
4799
4799
  try {
4800
- const { emitMonitorEvent } = await import('./monitor-emitter.mjs');
4800
+ const { emitMonitorEvent } = await import(new URL('./monitor-emitter.mjs', import.meta.url).href);
4801
4801
  emitMonitorEvent(projectRoot, { type: 'checkpoint.created', agent: 'system', data: { checkpointId: paddedNum, phase: state['phase'] || state['current-phase'] || 'unknown', taskCounts } });
4802
4802
  } catch {}
4803
4803
  } catch (err) {
@@ -4985,7 +4985,7 @@ try {
4985
4985
 
4986
4986
  // Emit monitoring event
4987
4987
  try {
4988
- const { emitMonitorEvent } = await import('./monitor-emitter.mjs');
4988
+ const { emitMonitorEvent } = await import(new URL('./monitor-emitter.mjs', import.meta.url).href);
4989
4989
  emitMonitorEvent(projectRoot, { type: 'agent.completed', agent: agentName || 'unknown', data: { status: status || 'unknown', filesChanged: parsed.filesChanged ? parsed.filesChanged.length : 0, summary: summary || '', taskId: taskId || '' } });
4990
4990
  } catch {}
4991
4991
  } catch (err) {
@@ -5704,7 +5704,7 @@ function cmdCreate() {
5704
5704
  appendWorktreeEntry(agentSlug, taskSlug, coordinatorSlug, branch, treePath);
5705
5705
 
5706
5706
  // Emit monitoring event
5707
- try { import('./monitor-emitter.mjs').then(m => m.emitMonitorEvent(ROOT, { type: 'worktree.created', agent: agentSlug, data: { task: taskSlug, coordinator: coordinatorSlug, branch } })).catch(() => {}); } catch {}
5707
+ try { import(new URL('./monitor-emitter.mjs', import.meta.url).href).then(m => m.emitMonitorEvent(ROOT, { type: 'worktree.created', agent: agentSlug, data: { task: taskSlug, coordinator: coordinatorSlug, branch } })).catch(() => {}); } catch {}
5708
5708
 
5709
5709
  out({
5710
5710
  worktree: treePath,
@@ -5872,7 +5872,7 @@ function cmdMerge() {
5872
5872
  }
5873
5873
 
5874
5874
  // Emit monitoring event
5875
- try { import('./monitor-emitter.mjs').then(m => m.emitMonitorEvent(ROOT, { type: 'worktree.merged', agent: 'system', data: { branch } })).catch(() => {}); } catch {}
5875
+ try { import(new URL('./monitor-emitter.mjs', import.meta.url).href).then(m => m.emitMonitorEvent(ROOT, { type: 'worktree.merged', agent: 'system', data: { branch } })).catch(() => {}); } catch {}
5876
5876
 
5877
5877
  out({
5878
5878
  merged: branch,
@@ -5929,7 +5929,7 @@ function cmdCleanup() {
5929
5929
  removeWorktreeEntry(worktreeName);
5930
5930
 
5931
5931
  // Emit monitoring event
5932
- try { import('./monitor-emitter.mjs').then(m => m.emitMonitorEvent(ROOT, { type: 'worktree.cleaned', agent: 'system', data: { worktree: worktreeName } })).catch(() => {}); } catch {}
5932
+ try { import(new URL('./monitor-emitter.mjs', import.meta.url).href).then(m => m.emitMonitorEvent(ROOT, { type: 'worktree.cleaned', agent: 'system', data: { worktree: worktreeName } })).catch(() => {}); } catch {}
5933
5933
 
5934
5934
  out({
5935
5935
  removed: treePath,
@@ -6114,7 +6114,7 @@ function createGate(phase, description) {
6114
6114
  saveGates(data);
6115
6115
 
6116
6116
  // Emit monitoring event
6117
- try { import('./monitor-emitter.mjs').then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.created', agent: 'master-orchestrator', data: { phase } })).catch(() => {}); } catch {}
6117
+ try { import(new URL('./monitor-emitter.mjs', import.meta.url).href).then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.created', agent: 'master-orchestrator', data: { phase } })).catch(() => {}); } catch {}
6118
6118
 
6119
6119
  console.log(JSON.stringify({ phase, status: 'pending', action: 'created' }));
6120
6120
  }
@@ -6194,7 +6194,7 @@ function approveGate(phase) {
6194
6194
  updateProjectPhase(phase, 'approved');
6195
6195
 
6196
6196
  // Emit monitoring event
6197
- try { import('./monitor-emitter.mjs').then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.approved', agent: 'master-orchestrator', data: { phase } })).catch(() => {}); } catch {}
6197
+ try { import(new URL('./monitor-emitter.mjs', import.meta.url).href).then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.approved', agent: 'master-orchestrator', data: { phase } })).catch(() => {}); } catch {}
6198
6198
 
6199
6199
  console.log(JSON.stringify({ phase, status: 'approved', action: 'approved', docs_checked: gate.docs_checked }));
6200
6200
  }
@@ -6214,7 +6214,7 @@ function rejectGate(phase, reason) {
6214
6214
  saveGates(data);
6215
6215
 
6216
6216
  // Emit monitoring event
6217
- try { import('./monitor-emitter.mjs').then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.rejected', agent: 'master-orchestrator', data: { phase, reason: gate.reason } })).catch(() => {}); } catch {}
6217
+ try { import(new URL('./monitor-emitter.mjs', import.meta.url).href).then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.rejected', agent: 'master-orchestrator', data: { phase, reason: gate.reason } })).catch(() => {}); } catch {}
6218
6218
 
6219
6219
  console.log(JSON.stringify({ phase, status: 'rejected', reason: gate.reason, action: 'rejected' }));
6220
6220
  }
@@ -6235,7 +6235,7 @@ function skipGate(phase) {
6235
6235
  updateProjectPhase(phase, 'skipped');
6236
6236
 
6237
6237
  // Emit monitoring event
6238
- try { import('./monitor-emitter.mjs').then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.skipped', agent: 'master-orchestrator', data: { phase } })).catch(() => {}); } catch {}
6238
+ try { import(new URL('./monitor-emitter.mjs', import.meta.url).href).then(m => m.emitMonitorEvent(process.cwd(), { type: 'gate.skipped', agent: 'master-orchestrator', data: { phase } })).catch(() => {}); } catch {}
6239
6239
 
6240
6240
  console.log(JSON.stringify({ phase, status: 'skipped', action: 'skipped' }));
6241
6241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlucent/fishi-core",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Shared templates, types, and generators for the FISHI framework",
5
5
  "license": "MIT",
6
6
  "type": "module",