olympus-ai 2.4.1 → 2.5.2
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/dist/__tests__/hooks/bundle.test.d.ts +2 -0
- package/dist/__tests__/hooks/bundle.test.d.ts.map +1 -0
- package/dist/__tests__/hooks/bundle.test.js +116 -0
- package/dist/__tests__/hooks/bundle.test.js.map +1 -0
- package/dist/__tests__/hooks/integration.test.d.ts +2 -0
- package/dist/__tests__/hooks/integration.test.d.ts.map +1 -0
- package/dist/__tests__/hooks/integration.test.js +132 -0
- package/dist/__tests__/hooks/integration.test.js.map +1 -0
- package/dist/__tests__/hooks/performance.test.d.ts +2 -0
- package/dist/__tests__/hooks/performance.test.d.ts.map +1 -0
- package/dist/__tests__/hooks/performance.test.js +267 -0
- package/dist/__tests__/hooks/performance.test.js.map +1 -0
- package/dist/__tests__/hooks/router.test.d.ts +2 -0
- package/dist/__tests__/hooks/router.test.d.ts.map +1 -0
- package/dist/__tests__/hooks/router.test.js +793 -0
- package/dist/__tests__/hooks/router.test.js.map +1 -0
- package/dist/__tests__/installer.test.js +7 -3
- package/dist/__tests__/installer.test.js.map +1 -1
- package/dist/hooks/config.d.ts +47 -0
- package/dist/hooks/config.d.ts.map +1 -0
- package/dist/hooks/config.js +120 -0
- package/dist/hooks/config.js.map +1 -0
- package/dist/hooks/entry.d.ts +17 -0
- package/dist/hooks/entry.d.ts.map +1 -0
- package/dist/hooks/entry.js +66 -0
- package/dist/hooks/entry.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/olympus-hooks.cjs +653 -0
- package/dist/hooks/registrations/index.d.ts +25 -0
- package/dist/hooks/registrations/index.d.ts.map +1 -0
- package/dist/hooks/registrations/index.js +43 -0
- package/dist/hooks/registrations/index.js.map +1 -0
- package/dist/hooks/registrations/messages-transform.d.ts +8 -0
- package/dist/hooks/registrations/messages-transform.d.ts.map +1 -0
- package/dist/hooks/registrations/messages-transform.js +63 -0
- package/dist/hooks/registrations/messages-transform.js.map +1 -0
- package/dist/hooks/registrations/notification.d.ts +7 -0
- package/dist/hooks/registrations/notification.d.ts.map +1 -0
- package/dist/hooks/registrations/notification.js +34 -0
- package/dist/hooks/registrations/notification.js.map +1 -0
- package/dist/hooks/registrations/post-tool-use.d.ts +18 -0
- package/dist/hooks/registrations/post-tool-use.d.ts.map +1 -0
- package/dist/hooks/registrations/post-tool-use.js +198 -0
- package/dist/hooks/registrations/post-tool-use.js.map +1 -0
- package/dist/hooks/registrations/pre-tool-use.d.ts +11 -0
- package/dist/hooks/registrations/pre-tool-use.d.ts.map +1 -0
- package/dist/hooks/registrations/pre-tool-use.js +102 -0
- package/dist/hooks/registrations/pre-tool-use.js.map +1 -0
- package/dist/hooks/registrations/session-start.d.ts +7 -0
- package/dist/hooks/registrations/session-start.d.ts.map +1 -0
- package/dist/hooks/registrations/session-start.js +60 -0
- package/dist/hooks/registrations/session-start.js.map +1 -0
- package/dist/hooks/registrations/stop.d.ts +8 -0
- package/dist/hooks/registrations/stop.d.ts.map +1 -0
- package/dist/hooks/registrations/stop.js +28 -0
- package/dist/hooks/registrations/stop.js.map +1 -0
- package/dist/hooks/registrations/user-prompt-submit.d.ts +7 -0
- package/dist/hooks/registrations/user-prompt-submit.d.ts.map +1 -0
- package/dist/hooks/registrations/user-prompt-submit.js +114 -0
- package/dist/hooks/registrations/user-prompt-submit.js.map +1 -0
- package/dist/hooks/registry.d.ts +39 -0
- package/dist/hooks/registry.d.ts.map +1 -0
- package/dist/hooks/registry.js +58 -0
- package/dist/hooks/registry.js.map +1 -0
- package/dist/hooks/router.d.ts +31 -0
- package/dist/hooks/router.d.ts.map +1 -0
- package/dist/hooks/router.js +155 -0
- package/dist/hooks/router.js.map +1 -0
- package/dist/hooks/types.d.ts +102 -0
- package/dist/hooks/types.d.ts.map +1 -0
- package/dist/hooks/types.js +8 -0
- package/dist/hooks/types.js.map +1 -0
- package/dist/installer/default-config.d.ts +112 -0
- package/dist/installer/default-config.d.ts.map +1 -0
- package/dist/installer/default-config.js +153 -0
- package/dist/installer/default-config.js.map +1 -0
- package/dist/installer/hooks.d.ts +104 -0
- package/dist/installer/hooks.d.ts.map +1 -1
- package/dist/installer/hooks.js +80 -0
- package/dist/installer/hooks.js.map +1 -1
- package/dist/installer/index.d.ts +5 -1
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +2108 -2064
- package/dist/installer/index.js.map +1 -1
- package/dist/installer/migrate.d.ts +28 -0
- package/dist/installer/migrate.d.ts.map +1 -0
- package/dist/installer/migrate.js +99 -0
- package/dist/installer/migrate.js.map +1 -0
- package/dist/shared/types.d.ts +60 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/package.json +3 -1
- package/.claude/agents/document-writer.md +0 -152
- package/.claude/agents/explore-medium.md +0 -25
- package/.claude/agents/explore.md +0 -86
- package/.claude/agents/frontend-engineer-high.md +0 -24
- package/.claude/agents/frontend-engineer-low.md +0 -23
- package/.claude/agents/frontend-engineer.md +0 -89
- package/.claude/agents/librarian-low.md +0 -22
- package/.claude/agents/librarian.md +0 -70
- package/.claude/agents/metis.md +0 -85
- package/.claude/agents/momus.md +0 -97
- package/.claude/agents/multimodal-looker.md +0 -39
- package/.claude/agents/olympian-high.md +0 -39
- package/.claude/agents/olympian-low.md +0 -29
- package/.claude/agents/olympian.md +0 -71
- package/.claude/agents/oracle-low.md +0 -23
- package/.claude/agents/oracle-medium.md +0 -28
- package/.claude/agents/oracle.md +0 -77
- package/.claude/agents/prometheus.md +0 -126
- package/.claude/agents/qa-tester.md +0 -220
- package/.claude/commands/analyze/skill.md +0 -14
- package/.claude/commands/analyze.md +0 -14
- package/.claude/commands/ascent/skill.md +0 -152
- package/.claude/commands/ascent.md +0 -152
- package/.claude/commands/cancel-ascent.md +0 -9
- package/.claude/commands/complete-plan.md +0 -101
- package/.claude/commands/deepinit.md +0 -114
- package/.claude/commands/deepsearch/skill.md +0 -15
- package/.claude/commands/deepsearch.md +0 -15
- package/.claude/commands/doctor.md +0 -190
- package/.claude/commands/olympus/skill.md +0 -82
- package/.claude/commands/olympus-default.md +0 -26
- package/.claude/commands/plan.md +0 -37
- package/.claude/commands/prometheus/skill.md +0 -41
- package/.claude/commands/prometheus.md +0 -41
- package/.claude/commands/review/skill.md +0 -40
- package/.claude/commands/review.md +0 -40
- package/.claude/commands/ultrawork/skill.md +0 -90
- package/.claude/commands/ultrawork.md +0 -90
- package/.claude/commands/update.md +0 -38
- package/dist/features/boulder-state/constants.d.ts +0 -20
- package/dist/features/boulder-state/constants.d.ts.map +0 -1
- package/dist/features/boulder-state/constants.js +0 -20
- package/dist/features/boulder-state/constants.js.map +0 -1
- package/dist/features/boulder-state/index.d.ts +0 -12
- package/dist/features/boulder-state/index.d.ts.map +0 -1
- package/dist/features/boulder-state/index.js +0 -13
- package/dist/features/boulder-state/index.js.map +0 -1
- package/dist/features/boulder-state/storage.d.ts +0 -58
- package/dist/features/boulder-state/storage.d.ts.map +0 -1
- package/dist/features/boulder-state/storage.js +0 -174
- package/dist/features/boulder-state/storage.js.map +0 -1
- package/dist/features/boulder-state/types.d.ts +0 -48
- package/dist/features/boulder-state/types.d.ts.map +0 -1
- package/dist/features/boulder-state/types.js +0 -10
- package/dist/features/boulder-state/types.js.map +0 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default Configuration for Olympus Hooks
|
|
3
|
+
*
|
|
4
|
+
* Provides default settings for all hooks.
|
|
5
|
+
* These are merged with user configuration.
|
|
6
|
+
*/
|
|
7
|
+
import type { PluginConfig } from '../shared/types.js';
|
|
8
|
+
/**
|
|
9
|
+
* Default configuration for hooks
|
|
10
|
+
* All hooks are enabled by default
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_HOOKS_CONFIG: NonNullable<PluginConfig['hooks']>;
|
|
13
|
+
/**
|
|
14
|
+
* Get the default hooks configuration
|
|
15
|
+
*/
|
|
16
|
+
export declare function getDefaultHooksConfig(): NonNullable<PluginConfig['hooks']>;
|
|
17
|
+
/**
|
|
18
|
+
* Merge user config with defaults
|
|
19
|
+
* User settings override defaults
|
|
20
|
+
*/
|
|
21
|
+
export declare function mergeHooksConfig(userConfig?: PluginConfig['hooks']): NonNullable<PluginConfig['hooks']>;
|
|
22
|
+
/**
|
|
23
|
+
* Hook metadata for documentation and UI
|
|
24
|
+
*/
|
|
25
|
+
export declare const HOOK_METADATA: {
|
|
26
|
+
keywordDetector: {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
event: string;
|
|
30
|
+
};
|
|
31
|
+
autoSlashCommand: {
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
event: string;
|
|
35
|
+
};
|
|
36
|
+
thinkMode: {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
event: string;
|
|
40
|
+
};
|
|
41
|
+
sessionStart: {
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
event: string;
|
|
45
|
+
};
|
|
46
|
+
persistentMode: {
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
event: string;
|
|
50
|
+
};
|
|
51
|
+
rulesInjector: {
|
|
52
|
+
name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
event: string;
|
|
55
|
+
};
|
|
56
|
+
directoryReadmeInjector: {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
event: string;
|
|
60
|
+
};
|
|
61
|
+
nonInteractiveEnv: {
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
event: string;
|
|
65
|
+
};
|
|
66
|
+
olympusOrchestrator: {
|
|
67
|
+
name: string;
|
|
68
|
+
description: string;
|
|
69
|
+
event: string;
|
|
70
|
+
};
|
|
71
|
+
editErrorRecovery: {
|
|
72
|
+
name: string;
|
|
73
|
+
description: string;
|
|
74
|
+
event: string;
|
|
75
|
+
};
|
|
76
|
+
commentChecker: {
|
|
77
|
+
name: string;
|
|
78
|
+
description: string;
|
|
79
|
+
event: string;
|
|
80
|
+
};
|
|
81
|
+
contextWindowLimitRecovery: {
|
|
82
|
+
name: string;
|
|
83
|
+
description: string;
|
|
84
|
+
event: string;
|
|
85
|
+
};
|
|
86
|
+
preemptiveCompaction: {
|
|
87
|
+
name: string;
|
|
88
|
+
description: string;
|
|
89
|
+
event: string;
|
|
90
|
+
};
|
|
91
|
+
agentUsageReminder: {
|
|
92
|
+
name: string;
|
|
93
|
+
description: string;
|
|
94
|
+
event: string;
|
|
95
|
+
};
|
|
96
|
+
backgroundNotification: {
|
|
97
|
+
name: string;
|
|
98
|
+
description: string;
|
|
99
|
+
event: string;
|
|
100
|
+
};
|
|
101
|
+
emptyMessageSanitizer: {
|
|
102
|
+
name: string;
|
|
103
|
+
description: string;
|
|
104
|
+
event: string;
|
|
105
|
+
};
|
|
106
|
+
thinkingBlockValidator: {
|
|
107
|
+
name: string;
|
|
108
|
+
description: string;
|
|
109
|
+
event: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=default-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-config.d.ts","sourceRoot":"","sources":["../../src/installer/default-config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAmCnE,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAE1E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,GACjC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAepC;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFzB,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default Configuration for Olympus Hooks
|
|
3
|
+
*
|
|
4
|
+
* Provides default settings for all hooks.
|
|
5
|
+
* These are merged with user configuration.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Default configuration for hooks
|
|
9
|
+
* All hooks are enabled by default
|
|
10
|
+
*/
|
|
11
|
+
export const DEFAULT_HOOKS_CONFIG = {
|
|
12
|
+
// Global settings
|
|
13
|
+
enabled: true,
|
|
14
|
+
hookTimeoutMs: 100,
|
|
15
|
+
// UserPromptSubmit hooks
|
|
16
|
+
keywordDetector: { enabled: true },
|
|
17
|
+
autoSlashCommand: { enabled: true },
|
|
18
|
+
thinkMode: { enabled: true },
|
|
19
|
+
// SessionStart hooks
|
|
20
|
+
sessionStart: { enabled: true },
|
|
21
|
+
// Stop hooks
|
|
22
|
+
persistentMode: { enabled: true },
|
|
23
|
+
// PreToolUse hooks
|
|
24
|
+
rulesInjector: { enabled: true },
|
|
25
|
+
directoryReadmeInjector: { enabled: true },
|
|
26
|
+
nonInteractiveEnv: { enabled: true },
|
|
27
|
+
olympusOrchestrator: { enabled: true },
|
|
28
|
+
// PostToolUse hooks
|
|
29
|
+
editErrorRecovery: { enabled: true },
|
|
30
|
+
commentChecker: { enabled: true },
|
|
31
|
+
contextWindowLimitRecovery: { enabled: true },
|
|
32
|
+
preemptiveCompaction: { enabled: true },
|
|
33
|
+
agentUsageReminder: { enabled: true },
|
|
34
|
+
// Notification hooks
|
|
35
|
+
backgroundNotification: { enabled: true },
|
|
36
|
+
// MessagesTransform hooks
|
|
37
|
+
emptyMessageSanitizer: { enabled: true },
|
|
38
|
+
thinkingBlockValidator: { enabled: true }
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Get the default hooks configuration
|
|
42
|
+
*/
|
|
43
|
+
export function getDefaultHooksConfig() {
|
|
44
|
+
return { ...DEFAULT_HOOKS_CONFIG };
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Merge user config with defaults
|
|
48
|
+
* User settings override defaults
|
|
49
|
+
*/
|
|
50
|
+
export function mergeHooksConfig(userConfig) {
|
|
51
|
+
if (!userConfig) {
|
|
52
|
+
return getDefaultHooksConfig();
|
|
53
|
+
}
|
|
54
|
+
// Deep merge user config over defaults
|
|
55
|
+
const merged = { ...DEFAULT_HOOKS_CONFIG };
|
|
56
|
+
for (const [key, value] of Object.entries(userConfig)) {
|
|
57
|
+
if (value !== undefined) {
|
|
58
|
+
merged[key] = value;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return merged;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Hook metadata for documentation and UI
|
|
65
|
+
*/
|
|
66
|
+
export const HOOK_METADATA = {
|
|
67
|
+
keywordDetector: {
|
|
68
|
+
name: 'Keyword Detector',
|
|
69
|
+
description: 'Detects magic keywords (ultrawork, ultrathink, search, analyze) and activates modes',
|
|
70
|
+
event: 'UserPromptSubmit'
|
|
71
|
+
},
|
|
72
|
+
autoSlashCommand: {
|
|
73
|
+
name: 'Auto Slash Command',
|
|
74
|
+
description: 'Expands custom slash commands from .claude/commands/',
|
|
75
|
+
event: 'UserPromptSubmit'
|
|
76
|
+
},
|
|
77
|
+
thinkMode: {
|
|
78
|
+
name: 'Think Mode',
|
|
79
|
+
description: 'Activates extended thinking when think/ultrathink keywords detected',
|
|
80
|
+
event: 'UserPromptSubmit'
|
|
81
|
+
},
|
|
82
|
+
sessionStart: {
|
|
83
|
+
name: 'Session Start',
|
|
84
|
+
description: 'Restores persistent mode states and pending tasks on session start',
|
|
85
|
+
event: 'SessionStart'
|
|
86
|
+
},
|
|
87
|
+
persistentMode: {
|
|
88
|
+
name: 'Persistent Mode',
|
|
89
|
+
description: 'Prevents stopping when tasks remain (ascent, ultrawork, todos)',
|
|
90
|
+
event: 'Stop'
|
|
91
|
+
},
|
|
92
|
+
rulesInjector: {
|
|
93
|
+
name: 'Rules Injector',
|
|
94
|
+
description: 'Injects project and user rules when accessing files',
|
|
95
|
+
event: 'PreToolUse'
|
|
96
|
+
},
|
|
97
|
+
directoryReadmeInjector: {
|
|
98
|
+
name: 'Directory README Injector',
|
|
99
|
+
description: 'Injects README context when working in directories',
|
|
100
|
+
event: 'PreToolUse'
|
|
101
|
+
},
|
|
102
|
+
nonInteractiveEnv: {
|
|
103
|
+
name: 'Non-Interactive Environment',
|
|
104
|
+
description: 'Adds -y flags and environment variables for non-interactive execution',
|
|
105
|
+
event: 'PreToolUse'
|
|
106
|
+
},
|
|
107
|
+
olympusOrchestrator: {
|
|
108
|
+
name: 'Olympus Orchestrator',
|
|
109
|
+
description: 'Reminds about delegation and tracks file changes',
|
|
110
|
+
event: 'PreToolUse/PostToolUse'
|
|
111
|
+
},
|
|
112
|
+
editErrorRecovery: {
|
|
113
|
+
name: 'Edit Error Recovery',
|
|
114
|
+
description: 'Provides recovery guidance when Edit tool fails',
|
|
115
|
+
event: 'PostToolUse'
|
|
116
|
+
},
|
|
117
|
+
commentChecker: {
|
|
118
|
+
name: 'Comment Checker',
|
|
119
|
+
description: 'Detects unnecessary comments in code changes',
|
|
120
|
+
event: 'PostToolUse'
|
|
121
|
+
},
|
|
122
|
+
contextWindowLimitRecovery: {
|
|
123
|
+
name: 'Context Window Limit Recovery',
|
|
124
|
+
description: 'Detects and recovers from context window limit errors',
|
|
125
|
+
event: 'PostToolUse'
|
|
126
|
+
},
|
|
127
|
+
preemptiveCompaction: {
|
|
128
|
+
name: 'Preemptive Compaction',
|
|
129
|
+
description: 'Warns before hitting context window limit',
|
|
130
|
+
event: 'PostToolUse'
|
|
131
|
+
},
|
|
132
|
+
agentUsageReminder: {
|
|
133
|
+
name: 'Agent Usage Reminder',
|
|
134
|
+
description: 'Reminds to use specialized agents for appropriate tasks',
|
|
135
|
+
event: 'PostToolUse'
|
|
136
|
+
},
|
|
137
|
+
backgroundNotification: {
|
|
138
|
+
name: 'Background Notification',
|
|
139
|
+
description: 'Surfaces background task completion notifications',
|
|
140
|
+
event: 'Notification'
|
|
141
|
+
},
|
|
142
|
+
emptyMessageSanitizer: {
|
|
143
|
+
name: 'Empty Message Sanitizer',
|
|
144
|
+
description: 'Fixes empty messages before sending to model',
|
|
145
|
+
event: 'MessagesTransform'
|
|
146
|
+
},
|
|
147
|
+
thinkingBlockValidator: {
|
|
148
|
+
name: 'Thinking Block Validator',
|
|
149
|
+
description: 'Validates and fixes thinking blocks in messages',
|
|
150
|
+
event: 'MessagesTransform'
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
//# sourceMappingURL=default-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-config.js","sourceRoot":"","sources":["../../src/installer/default-config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAuC;IACtE,kBAAkB;IAClB,OAAO,EAAE,IAAI;IACb,aAAa,EAAE,GAAG;IAElB,yBAAyB;IACzB,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAClC,gBAAgB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IACnC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAE5B,qBAAqB;IACrB,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAE/B,aAAa;IACb,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAEjC,mBAAmB;IACnB,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAChC,uBAAuB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;IAC1C,iBAAiB,EAAE,EAAE,OAAO,EAAE,I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,EAAE;QAClB,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,yDAAyD;QACtE,KAAK,EAAE,aAAa;KACrB;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,mDAAmD;QAChE,KAAK,EAAE,cAAc;KACtB;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,8CAA8C;QAC3D,KAAK,EAAE,mBAAmB;KAC3B;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,iDAAiD;QAC9D,KAAK,EAAE,mBAAmB;KAC3B;CACF,CAAC"}
|
|
@@ -146,6 +146,110 @@ export declare const HOOKS_SETTINGS_CONFIG_NODE: {
|
|
|
146
146
|
}[];
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
+
/**
|
|
150
|
+
* Settings config for bundled hooks (new unified approach)
|
|
151
|
+
* Single bundle handles all hook events via --event flag
|
|
152
|
+
*/
|
|
153
|
+
export declare const HOOKS_SETTINGS_CONFIG_BUNDLED: {
|
|
154
|
+
hooks: {
|
|
155
|
+
UserPromptSubmit: {
|
|
156
|
+
hooks: {
|
|
157
|
+
type: "command";
|
|
158
|
+
command: string;
|
|
159
|
+
}[];
|
|
160
|
+
}[];
|
|
161
|
+
SessionStart: {
|
|
162
|
+
hooks: {
|
|
163
|
+
type: "command";
|
|
164
|
+
command: string;
|
|
165
|
+
}[];
|
|
166
|
+
}[];
|
|
167
|
+
Stop: {
|
|
168
|
+
hooks: {
|
|
169
|
+
type: "command";
|
|
170
|
+
command: string;
|
|
171
|
+
}[];
|
|
172
|
+
}[];
|
|
173
|
+
PreToolUse: {
|
|
174
|
+
hooks: {
|
|
175
|
+
type: "command";
|
|
176
|
+
command: string;
|
|
177
|
+
}[];
|
|
178
|
+
}[];
|
|
179
|
+
PostToolUse: {
|
|
180
|
+
hooks: {
|
|
181
|
+
type: "command";
|
|
182
|
+
command: string;
|
|
183
|
+
}[];
|
|
184
|
+
}[];
|
|
185
|
+
Notification: {
|
|
186
|
+
hooks: {
|
|
187
|
+
type: "command";
|
|
188
|
+
command: string;
|
|
189
|
+
}[];
|
|
190
|
+
}[];
|
|
191
|
+
MessagesTransform: {
|
|
192
|
+
hooks: {
|
|
193
|
+
type: "command";
|
|
194
|
+
command: string;
|
|
195
|
+
}[];
|
|
196
|
+
}[];
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Check if bundled hooks should be used
|
|
201
|
+
* Can be enabled via OLYMPUS_USE_BUNDLED_HOOKS=1
|
|
202
|
+
*/
|
|
203
|
+
export declare function shouldUseBundledHooks(): boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Get the bundled hooks settings config
|
|
206
|
+
*/
|
|
207
|
+
export declare function getBundledHooksSettingsConfig(): {
|
|
208
|
+
hooks: {
|
|
209
|
+
UserPromptSubmit: {
|
|
210
|
+
hooks: {
|
|
211
|
+
type: "command";
|
|
212
|
+
command: string;
|
|
213
|
+
}[];
|
|
214
|
+
}[];
|
|
215
|
+
SessionStart: {
|
|
216
|
+
hooks: {
|
|
217
|
+
type: "command";
|
|
218
|
+
command: string;
|
|
219
|
+
}[];
|
|
220
|
+
}[];
|
|
221
|
+
Stop: {
|
|
222
|
+
hooks: {
|
|
223
|
+
type: "command";
|
|
224
|
+
command: string;
|
|
225
|
+
}[];
|
|
226
|
+
}[];
|
|
227
|
+
PreToolUse: {
|
|
228
|
+
hooks: {
|
|
229
|
+
type: "command";
|
|
230
|
+
command: string;
|
|
231
|
+
}[];
|
|
232
|
+
}[];
|
|
233
|
+
PostToolUse: {
|
|
234
|
+
hooks: {
|
|
235
|
+
type: "command";
|
|
236
|
+
command: string;
|
|
237
|
+
}[];
|
|
238
|
+
}[];
|
|
239
|
+
Notification: {
|
|
240
|
+
hooks: {
|
|
241
|
+
type: "command";
|
|
242
|
+
command: string;
|
|
243
|
+
}[];
|
|
244
|
+
}[];
|
|
245
|
+
MessagesTransform: {
|
|
246
|
+
hooks: {
|
|
247
|
+
type: "command";
|
|
248
|
+
command: string;
|
|
249
|
+
}[];
|
|
250
|
+
}[];
|
|
251
|
+
};
|
|
252
|
+
};
|
|
149
253
|
/**
|
|
150
254
|
* Get the appropriate hooks settings config for the current platform
|
|
151
255
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/installer/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,iDAAiD;AACjD,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,kCAAkC;AAClC,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,IAAI,OAAO,CAU5C;AAED,4DAA4D;AAC5D,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,mCAAmC;AACnC,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,woJA2F7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,wcAgB9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,2TAU1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,8cAgB3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,+PAME,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,+gMAsGnC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,s7CAwCpC,CAAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,6lNAsMxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,qvEAgFzC,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,qqSA4KlC,CAAC;AAEF;;;GAGG;A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 export const HOOKS_SETTINGS_CONFIG_NODE = {
|
|
|
1339
1339
|
]
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
+
/**
|
|
1343
|
+
* Settings config for bundled hooks (new unified approach)
|
|
1344
|
+
* Single bundle handles all hook events via --event flag
|
|
1345
|
+
*/
|
|
1346
|
+
export const HOOKS_SETTINGS_CONFIG_BUNDLED = {
|
|
1347
|
+
hooks: {
|
|
1348
|
+
UserPromptSubmit: [{
|
|
1349
|
+
hooks: [{
|
|
1350
|
+
type: "command",
|
|
1351
|
+
command: isWindows()
|
|
1352
|
+
? `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=UserPromptSubmit`
|
|
1353
|
+
: `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=UserPromptSubmit`
|
|
1354
|
+
}]
|
|
1355
|
+
}],
|
|
1356
|
+
SessionStart: [{
|
|
1357
|
+
hooks: [{
|
|
1358
|
+
type: "command",
|
|
1359
|
+
command: isWindows()
|
|
1360
|
+
? `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=SessionStart`
|
|
1361
|
+
: `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=SessionStart`
|
|
1362
|
+
}]
|
|
1363
|
+
}],
|
|
1364
|
+
Stop: [{
|
|
1365
|
+
hooks: [{
|
|
1366
|
+
type: "command",
|
|
1367
|
+
command: isWindows()
|
|
1368
|
+
? `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=Stop`
|
|
1369
|
+
: `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=Stop`
|
|
1370
|
+
}]
|
|
1371
|
+
}],
|
|
1372
|
+
PreToolUse: [{
|
|
1373
|
+
hooks: [{
|
|
1374
|
+
type: "command",
|
|
1375
|
+
command: isWindows()
|
|
1376
|
+
? `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=PreToolUse`
|
|
1377
|
+
: `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=PreToolUse`
|
|
1378
|
+
}]
|
|
1379
|
+
}],
|
|
1380
|
+
PostToolUse: [{
|
|
1381
|
+
hooks: [{
|
|
1382
|
+
type: "command",
|
|
1383
|
+
command: isWindows()
|
|
1384
|
+
? `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=PostToolUse`
|
|
1385
|
+
: `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=PostToolUse`
|
|
1386
|
+
}]
|
|
1387
|
+
}],
|
|
1388
|
+
Notification: [{
|
|
1389
|
+
hooks: [{
|
|
1390
|
+
type: "command",
|
|
1391
|
+
command: isWindows()
|
|
1392
|
+
? `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=Notification`
|
|
1393
|
+
: `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=Notification`
|
|
1394
|
+
}]
|
|
1395
|
+
}],
|
|
1396
|
+
MessagesTransform: [{
|
|
1397
|
+
hooks: [{
|
|
1398
|
+
type: "command",
|
|
1399
|
+
command: isWindows()
|
|
1400
|
+
? `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=MessagesTransform`
|
|
1401
|
+
: `node "${join(getHooksDir(), 'olympus-hooks.cjs')}" --event=MessagesTransform`
|
|
1402
|
+
}]
|
|
1403
|
+
}]
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1406
|
+
/**
|
|
1407
|
+
* Check if bundled hooks should be used
|
|
1408
|
+
* Can be enabled via OLYMPUS_USE_BUNDLED_HOOKS=1
|
|
1409
|
+
*/
|
|
1410
|
+
export function shouldUseBundledHooks() {
|
|
1411
|
+
return process.env.OLYMPUS_USE_BUNDLED_HOOKS === '1';
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Get the bundled hooks settings config
|
|
1415
|
+
*/
|
|
1416
|
+
export function getBundledHooksSettingsConfig() {
|
|
1417
|
+
return HOOKS_SETTINGS_CONFIG_BUNDLED;
|
|
1418
|
+
}
|
|
1342
1419
|
/**
|
|
1343
1420
|
* Get the appropriate hooks settings config for the current platform
|
|
1344
1421
|
*/
|
|
1345
1422
|
export function getHooksSettingsConfig() {
|
|
1423
|
+
if (shouldUseBundledHooks()) {
|
|
1424
|
+
return getBundledHooksSettingsConfig();
|
|
1425
|
+
}
|
|
1346
1426
|
return shouldUseNodeHooks() ? HOOKS_SETTINGS_CONFIG_NODE : HOOKS_SETTINGS_CONFIG_BASH;
|
|
1347
1427
|
}
|
|
1348
1428
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/installer/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,iDAAiD;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAEnC,kCAAkC;AAClC,MAAM,UAAU,SAAS;IACvB,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC;AACtC,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,kBAAkB;IAChC,iCAAiC;IACjC,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,GAAG,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,GAAG,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,kDAAkD;IAClD,OAAO,SAAS,EAAE,CAAC;AACrB,CAAC;AAED,4DAA4D;AAC5D,MAAM,UAAU,kBAAkB;IAChC,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;AACpC,CAAC;AAED,mCAAmC;AACnC,MAAM,UAAU,WAAW;IACzB,OAAO,IAAI,CAAC,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED;;;GAGG;AACH,MA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AAED;;GAEG;AACH,MAAM,UAAU,6BAA6B;IAC3C,OAAO,6BAA6B,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,IAAI,qBAAqB,EAAE,EAAE,CAAC;QAC5B,OAAO,6BAA6B,EAAE,CAAC;IACzC,CAAC;IACD,OAAO,kBAAkB,EAAE,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,0BAA0B,CAAC;AACxF,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,0BAA0B,CAAC;AAEhE,gFAAgF;AAChF,wCAAwC;AACxC,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,qBAAqB,EAAE,uBAAuB;IAC9C,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;CACzC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,sBAAsB,EAAE,4BAA4B;IACpD,uBAAuB,EAAE,6BAA6B;IACtD,qBAAqB,EAAE,2BAA2B;IAClD,mBAAmB,EAAE,yBAAyB;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,kBAAkB,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC;AACtE,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAA2B,iBAAiB,CAAC"}
|
|
@@ -24,7 +24,7 @@ export declare const HOOKS_DIR: string;
|
|
|
24
24
|
export declare const SETTINGS_FILE: string;
|
|
25
25
|
export declare const VERSION_FILE: string;
|
|
26
26
|
/** Current version - MUST match package.json */
|
|
27
|
-
export declare const VERSION = "2.
|
|
27
|
+
export declare const VERSION = "2.5.0";
|
|
28
28
|
/** Installation result */
|
|
29
29
|
export interface InstallResult {
|
|
30
30
|
success: boolean;
|
|
@@ -74,6 +74,10 @@ export declare const COMMAND_DEFINITIONS: Record<string, string>;
|
|
|
74
74
|
* ENHANCED: Intelligent skill composition based on task type
|
|
75
75
|
*/
|
|
76
76
|
export declare const CLAUDE_MD_CONTENT = "# Olympus Multi-Agent System\n\nYou are an intelligent orchestrator with multi-agent capabilities.\n\n## DEFAULT OPERATING MODE\n\nYou operate as a **conductor** by default - coordinating specialists rather than doing everything yourself.\n\n### Core Behaviors (Always Active)\n\n1. **TODO TRACKING**: Create todos before non-trivial tasks, mark progress in real-time\n2. **SMART DELEGATION**: Delegate complex/specialized work to subagents\n3. **PARALLEL WHEN PROFITABLE**: Run independent tasks concurrently when beneficial\n4. **BACKGROUND EXECUTION**: Long-running operations run async\n5. **PERSISTENCE**: Continue until todo list is empty\n\n### What You Do vs. Delegate\n\n| Action | Do Directly | Delegate |\n|--------|-------------|----------|\n| Read single file | Yes | - |\n| Quick search (<10 results) | Yes | - |\n| Status/verification checks | Yes | - |\n| Single-line changes | Yes | - |\n| Multi-file code changes | - | Yes |\n| Complex analysis/debugging | - | Yes |\n| Specialized work (UI, docs) | - | Yes |\n| Deep codebase exploration | - | Yes |\n\n### Parallelization Heuristic\n\n- **2+ independent tasks** with >30 seconds work each \u2192 Parallelize\n- **Sequential dependencies** \u2192 Run in order\n- **Quick tasks** (<10 seconds) \u2192 Just do them directly\n\n## ENHANCEMENT SKILLS\n\nStack these on top of default behavior when needed:\n\n| Skill | What It Adds | When to Use |\n|-------|--------------|-------------|\n| `/ultrawork` | Maximum intensity, parallel everything, don't wait | Speed critical, large tasks |\n| `/git-master` | Atomic commits, style detection, history expertise | Multi-file changes |\n| `/frontend-ui-ux` | Bold aesthetics, design sensibility | UI/component work |\n| `/ascent` | Cannot stop until verified complete | Must-finish tasks |\n| `/prometheus` | Interview user, create strategic plans | Complex planning |\n| `/review` | Critical evaluation, find flaws | Plan review |\n\n### Skill Detection\n\nAutomatically activate skills based on task signals:\n\n| Signal | Auto-Activate |\n|--------|---------------|\n| \"don't stop until done\" / \"must complete\" | + ascent |\n| UI/component/styling work | + frontend-ui-ux |\n| \"ultrawork\" / \"maximum speed\" / \"parallel\" | + ultrawork |\n| Multi-file git changes | + git-master |\n| \"plan this\" / strategic discussion | prometheus |\n\n## THE ASCENT NEVER ENDS\n\nLike the heroes who climb Mount Olympus, you are BOUND to your task list. You do not stop. You do not quit. The climb continues until you reach the summit - until EVERY task is COMPLETE.\n\n## Available Subagents\n\nUse the Task tool to delegate to specialized agents:\n\n| Agent | Model | Purpose | When to Use |\n|-------|-------|---------|-------------|\n| `oracle` | Opus | Architecture & debugging | Complex problems, root cause analysis |\n| `librarian` | Sonnet | Documentation & research | Finding docs, understanding code |\n| `explore` | Haiku | Fast search | Quick file/pattern searches |\n| `frontend-engineer` | Sonnet | UI/UX | Component design, styling |\n| `document-writer` | Haiku | Documentation | README, API docs, comments |\n| `multimodal-looker` | Sonnet | Visual analysis | Screenshots, diagrams |\n| `momus` | Opus | Plan review | Critical evaluation of plans |\n| `metis` | Opus | Pre-planning | Hidden requirements, risk analysis |\n| `olympian` | Sonnet | Focused execution | Direct task implementation |\n| `prometheus` | Opus | Strategic planning | Creating comprehensive work plans |\n| `qa-tester` | Sonnet | CLI testing | Interactive CLI/service testing with tmux |\n\n### Smart Model Routing (SAVE TOKENS)\n\n**Choose tier based on task complexity: LOW (haiku) \u2192 MEDIUM (sonnet) \u2192 HIGH (opus)**\n\n| Domain | LOW (Haiku) | MEDIUM (Sonnet) | HIGH (Opus) |\n|--------|-------------|-----------------|-------------|\n| **Analysis** | `oracle-low` | `oracle-medium` | `oracle` |\n| **Execution** | `olympian-low` | `olympian` | `olympian-high` |\n| **Search** | `explore` | `explore-medium` | - |\n| **Research** | `librarian-low` | `librarian` | - |\n| **Frontend** | `frontend-engineer-low` | `frontend-engineer` | `frontend-engineer-high` |\n| **Docs** | `document-writer` | - | - |\n| **Planning** | - | - | `prometheus`, `momus`, `metis` |\n\n**Use LOW for simple lookups, MEDIUM for standard work, HIGH for complex reasoning.**\n\n## Slash Commands\n\n| Command | Description |\n|---------|-------------|\n| `/ultrawork <task>` | Maximum performance mode - parallel everything |\n| `/deepsearch <query>` | Thorough codebase search |\n| `/analyze <target>` | Deep analysis and investigation |\n| `/plan <description>` | Start planning session with Prometheus |\n| `/review [plan-path]` | Review a plan with Momus |\n| `/prometheus <task>` | Strategic planning with interview workflow |\n| `/ascent <task>` | Self-referential loop until task completion |\n| `/cancel-ascent` | Cancel active The Ascent |\n| `/complete-plan [path]` | Verify and complete a plan after implementation |\n| `/update` | Check for and install updates |\n\n## Planning Workflow\n\n1. Use `/plan` to start a planning session\n2. Prometheus will interview you about requirements\n3. Say \"Create the plan\" when ready\n4. Use `/review` to have Momus evaluate the plan\n5. Start implementation (default mode handles execution)\n6. Use `/complete-plan` to verify and close the loop\n\n## Orchestration Principles\n\n1. **Smart Delegation**: Delegate complex/specialized work; do simple tasks directly\n2. **Parallelize When Profitable**: Multiple independent tasks with significant work \u2192 parallel\n3. **Persist**: Continue until ALL tasks are complete\n4. **Verify**: Check your todo list before declaring completion\n5. **Plan First**: For complex tasks, use Prometheus to create a plan\n\n## Background Task Execution\n\nFor long-running operations, use `run_in_background: true`:\n\n**Run in Background** (set `run_in_background: true`):\n- Package installation: npm install, pip install, cargo build\n- Build processes: npm run build, make, tsc\n- Test suites: npm test, pytest, cargo test\n- Docker operations: docker build, docker pull\n- Git operations: git clone, git fetch\n\n**Run Blocking** (foreground):\n- Quick status checks: git status, ls, pwd\n- File reads: cat, head, tail\n- Simple commands: echo, which, env\n\n**How to Use:**\n1. Bash: `run_in_background: true`\n2. Task: `run_in_background: true`\n3. Check results: `TaskOutput(task_id: \"...\")`\n\nMaximum 5 concurrent background tasks.\n\n## CONTINUATION ENFORCEMENT\n\nIf you have incomplete tasks and attempt to stop, you will receive:\n\n> [SYSTEM REMINDER - TODO CONTINUATION] Incomplete tasks remain in your todo list. Continue working on the next pending task. Proceed without asking for permission. Mark each task complete when finished. Do not stop until all tasks are done.\n\n### The Olympian Verification Checklist\n\nBefore concluding ANY work session, verify:\n- [ ] TODO LIST: Zero pending/in_progress tasks\n- [ ] FUNCTIONALITY: All requested features work\n- [ ] TESTS: All tests pass (if applicable)\n- [ ] ERRORS: Zero unaddressed errors\n- [ ] QUALITY: Code is production-ready\n\n**If ANY checkbox is unchecked, CONTINUE WORKING.**\n\nThe ascent continues until Olympus is reached.\n";
|
|
77
|
+
/**
|
|
78
|
+
* Install the bundled hooks file
|
|
79
|
+
*/
|
|
80
|
+
export declare function installBundledHooks(): boolean;
|
|
77
81
|
/**
|
|
78
82
|
* Install Olympus agents, commands, skills, and hooks
|
|
79
83
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/installer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/installer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAiBH,0CAA0C;AAC1C,eAAO,MAAM,iBAAiB,QAA6B,CAAC;AAC5D,eAAO,MAAM,UAAU,QAAoC,CAAC;AAC5D,eAAO,MAAM,YAAY,QAAsC,CAAC;AAChE,eAAO,MAAM,UAAU,QAAoC,CAAC;AAC5D,eAAO,MAAM,SAAS,QAAmC,CAAC;AAC1D,eAAO,MAAM,aAAa,QAA2C,CAAC;AACtE,eAAO,MAAM,YAAY,QAAmD,CAAC;AAE7E,gDAAgD;AAChD,eAAO,MAAM,OAAO,UAAU,CAAC;AAE/B,0BAA0B;AAC1B,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,EAAE,OAAO,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