claudehq 1.0.2 → 1.0.3

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.
@@ -16,6 +16,7 @@ const TODOS_DIR = path.join(CLAUDE_DIR, 'todos');
16
16
  const PLANS_DIR = path.join(CLAUDE_DIR, 'plans');
17
17
  const PROJECTS_DIR = path.join(CLAUDE_DIR, 'projects');
18
18
  const EVENTS_DIR = path.join(CLAUDE_DIR, 'tasks-board');
19
+ const ORCHESTRATIONS_DIR = path.join(CLAUDE_DIR, 'tasks-board', 'orchestrations');
19
20
 
20
21
  // Data files
21
22
  const CUSTOM_NAMES_FILE = path.join(TASKS_DIR, 'session-names.json');
@@ -35,6 +36,26 @@ const SESSION_STATUS = {
35
36
  OFFLINE: 'offline'
36
37
  };
37
38
 
39
+ // Agent status constants (for orchestration)
40
+ const AGENT_STATUS = {
41
+ PENDING: 'pending',
42
+ SPAWNING: 'spawning',
43
+ RUNNING: 'running',
44
+ WAITING: 'waiting',
45
+ COMPLETED: 'completed',
46
+ FAILED: 'failed',
47
+ CANCELLED: 'cancelled'
48
+ };
49
+
50
+ // Orchestration status constants
51
+ const ORCHESTRATION_STATUS = {
52
+ DRAFT: 'draft',
53
+ RUNNING: 'running',
54
+ PAUSED: 'paused',
55
+ COMPLETED: 'completed',
56
+ FAILED: 'failed'
57
+ };
58
+
38
59
  // Timeouts and intervals
39
60
  const HEALTH_CHECK_INTERVAL = 5000; // 5 seconds
40
61
  const WORKING_TIMEOUT = 5 * 60 * 1000; // 5 minutes
@@ -53,6 +74,7 @@ module.exports = {
53
74
  PLANS_DIR,
54
75
  PROJECTS_DIR,
55
76
  EVENTS_DIR,
77
+ ORCHESTRATIONS_DIR,
56
78
 
57
79
  // Files
58
80
  CUSTOM_NAMES_FILE,
@@ -66,6 +88,8 @@ module.exports = {
66
88
 
67
89
  // Status
68
90
  SESSION_STATUS,
91
+ AGENT_STATUS,
92
+ ORCHESTRATION_STATUS,
69
93
 
70
94
  // Timing
71
95
  HEALTH_CHECK_INTERVAL,
@@ -46,6 +46,24 @@ const EventTypes = {
46
46
  // Attention events
47
47
  ATTENTION_NEEDED: 'attention:needed',
48
48
  ATTENTION_CLEARED: 'attention:cleared',
49
+
50
+ // Orchestration events
51
+ ORCHESTRATION_CREATED: 'orchestration:created',
52
+ ORCHESTRATION_UPDATED: 'orchestration:updated',
53
+ ORCHESTRATION_STARTED: 'orchestration:started',
54
+ ORCHESTRATION_PAUSED: 'orchestration:paused',
55
+ ORCHESTRATION_COMPLETED: 'orchestration:completed',
56
+ ORCHESTRATION_FAILED: 'orchestration:failed',
57
+ ORCHESTRATION_DELETED: 'orchestration:deleted',
58
+
59
+ // Agent events (within orchestrations)
60
+ AGENT_CREATED: 'agent:created',
61
+ AGENT_SPAWNED: 'agent:spawned',
62
+ AGENT_STATUS_CHANGED: 'agent:status_changed',
63
+ AGENT_OUTPUT: 'agent:output',
64
+ AGENT_COMPLETED: 'agent:completed',
65
+ AGENT_FAILED: 'agent:failed',
66
+ AGENT_KILLED: 'agent:killed',
49
67
  };
50
68
 
51
69
  class EventBus {