olympus-ai 2.7.3 → 2.7.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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/nul +3 -0
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +64 -60
- package/dist/agents/definitions.d.ts +23 -6
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +25 -8
- package/dist/agents/definitions.js.map +1 -1
- package/dist/agents/document-writer.d.ts +13 -3
- package/dist/agents/document-writer.d.ts.map +1 -1
- package/dist/agents/document-writer.js +13 -3
- package/dist/agents/document-writer.js.map +1 -1
- package/dist/agents/explore.d.ts +13 -4
- package/dist/agents/explore.d.ts.map +1 -1
- package/dist/agents/explore.js +13 -4
- package/dist/agents/explore.js.map +1 -1
- package/dist/agents/frontend-engineer.d.ts +14 -3
- package/dist/agents/frontend-engineer.d.ts.map +1 -1
- package/dist/agents/frontend-engineer.js +14 -3
- package/dist/agents/frontend-engineer.js.map +1 -1
- package/dist/agents/librarian.d.ts +13 -4
- package/dist/agents/librarian.d.ts.map +1 -1
- package/dist/agents/librarian.js +13 -4
- package/dist/agents/librarian.js.map +1 -1
- package/dist/agents/metis.d.ts +12 -4
- package/dist/agents/metis.d.ts.map +1 -1
- package/dist/agents/metis.js +12 -4
- package/dist/agents/metis.js.map +1 -1
- package/dist/agents/momus.d.ts +12 -4
- package/dist/agents/momus.d.ts.map +1 -1
- package/dist/agents/momus.js +12 -4
- package/dist/agents/momus.js.map +1 -1
- package/dist/agents/multimodal-looker.d.ts +13 -3
- package/dist/agents/multimodal-looker.d.ts.map +1 -1
- package/dist/agents/multimodal-looker.js +13 -3
- package/dist/agents/multimodal-looker.js.map +1 -1
- package/dist/agents/olympian.d.ts +14 -4
- package/dist/agents/olympian.d.ts.map +1 -1
- package/dist/agents/olympian.js +14 -4
- package/dist/agents/olympian.js.map +1 -1
- package/dist/agents/oracle.d.ts +13 -5
- package/dist/agents/oracle.d.ts.map +1 -1
- package/dist/agents/oracle.js +13 -5
- package/dist/agents/oracle.js.map +1 -1
- package/dist/agents/orchestrator-olympus.d.ts +13 -3
- package/dist/agents/orchestrator-olympus.d.ts.map +1 -1
- package/dist/agents/orchestrator-olympus.js +13 -3
- package/dist/agents/orchestrator-olympus.js.map +1 -1
- package/dist/agents/prometheus.d.ts +12 -4
- package/dist/agents/prometheus.d.ts.map +1 -1
- package/dist/agents/prometheus.js +12 -4
- package/dist/agents/prometheus.js.map +1 -1
- package/dist/agents/types.d.ts +10 -3
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/types.js +10 -3
- package/dist/agents/types.js.map +1 -1
- package/dist/agents/utils.d.ts +9 -4
- package/dist/agents/utils.d.ts.map +1 -1
- package/dist/agents/utils.js +9 -4
- package/dist/agents/utils.js.map +1 -1
- package/dist/config/loader.js +1 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/features/background-agent/concurrency.d.ts +1 -1
- package/dist/features/background-agent/concurrency.js +1 -1
- package/dist/features/background-agent/index.d.ts +1 -1
- package/dist/features/background-agent/index.js +1 -1
- package/dist/features/background-agent/manager.d.ts +1 -1
- package/dist/features/background-agent/manager.js +1 -1
- package/dist/features/background-agent/types.d.ts +1 -1
- package/dist/features/background-agent/types.js +1 -1
- package/dist/features/background-tasks.d.ts +11 -11
- package/dist/features/background-tasks.js +11 -11
- package/dist/features/builtin-skills/index.d.ts +1 -1
- package/dist/features/builtin-skills/index.js +1 -1
- package/dist/features/builtin-skills/skills.d.ts +1 -1
- package/dist/features/builtin-skills/skills.js +1 -1
- package/dist/features/builtin-skills/types.d.ts +1 -1
- package/dist/features/builtin-skills/types.js +1 -1
- package/dist/features/context-injector/collector.d.ts +9 -4
- package/dist/features/context-injector/collector.d.ts.map +1 -1
- package/dist/features/context-injector/collector.js +9 -4
- package/dist/features/context-injector/collector.js.map +1 -1
- package/dist/features/context-injector/index.d.ts +1 -1
- package/dist/features/context-injector/index.js +1 -1
- package/dist/features/context-injector/injector.d.ts +1 -1
- package/dist/features/context-injector/injector.js +1 -1
- package/dist/features/context-injector/types.d.ts +1 -1
- package/dist/features/context-injector/types.js +1 -1
- package/dist/features/continuation-enforcement.d.ts +5 -2
- package/dist/features/continuation-enforcement.d.ts.map +1 -1
- package/dist/features/continuation-enforcement.js +10 -4
- package/dist/features/continuation-enforcement.js.map +1 -1
- package/dist/features/magic-keywords.d.ts +12 -3
- package/dist/features/magic-keywords.d.ts.map +1 -1
- package/dist/features/magic-keywords.js +12 -3
- package/dist/features/magic-keywords.js.map +1 -1
- package/dist/features/quest-state/constants.d.ts +1 -1
- package/dist/features/quest-state/constants.js +1 -1
- package/dist/features/quest-state/index.d.ts +1 -1
- package/dist/features/quest-state/index.js +1 -1
- package/dist/features/quest-state/storage.d.ts +1 -1
- package/dist/features/quest-state/storage.js +1 -1
- package/dist/features/quest-state/types.d.ts +1 -1
- package/dist/features/quest-state/types.js +1 -1
- package/dist/hooks/agent-usage-reminder/constants.d.ts +1 -1
- package/dist/hooks/agent-usage-reminder/constants.js +1 -1
- package/dist/hooks/agent-usage-reminder/index.d.ts +1 -1
- package/dist/hooks/agent-usage-reminder/index.js +1 -1
- package/dist/hooks/agent-usage-reminder/storage.d.ts +1 -1
- package/dist/hooks/agent-usage-reminder/storage.js +1 -1
- package/dist/hooks/agent-usage-reminder/types.d.ts +1 -1
- package/dist/hooks/agent-usage-reminder/types.js +1 -1
- package/dist/hooks/ascent/index.d.ts +1 -1
- package/dist/hooks/ascent/index.js +1 -1
- package/dist/hooks/auto-slash-command/constants.d.ts +1 -1
- package/dist/hooks/auto-slash-command/constants.js +1 -1
- package/dist/hooks/auto-slash-command/detector.d.ts +1 -1
- package/dist/hooks/auto-slash-command/detector.js +1 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +1 -1
- package/dist/hooks/auto-slash-command/executor.js +1 -1
- package/dist/hooks/auto-slash-command/index.d.ts +1 -1
- package/dist/hooks/auto-slash-command/index.js +1 -1
- package/dist/hooks/auto-slash-command/types.d.ts +1 -1
- package/dist/hooks/auto-slash-command/types.js +1 -1
- package/dist/hooks/background-notification/index.d.ts +7 -4
- package/dist/hooks/background-notification/index.d.ts.map +1 -1
- package/dist/hooks/background-notification/index.js +7 -4
- package/dist/hooks/background-notification/index.js.map +1 -1
- package/dist/hooks/background-notification/types.d.ts +1 -1
- package/dist/hooks/background-notification/types.js +1 -1
- package/dist/hooks/comment-checker/constants.d.ts +1 -1
- package/dist/hooks/comment-checker/constants.js +1 -1
- package/dist/hooks/comment-checker/filters.d.ts +1 -1
- package/dist/hooks/comment-checker/filters.js +1 -1
- package/dist/hooks/comment-checker/index.d.ts +1 -1
- package/dist/hooks/comment-checker/index.js +1 -1
- package/dist/hooks/comment-checker/types.d.ts +1 -1
- package/dist/hooks/comment-checker/types.js +1 -1
- package/dist/hooks/context-window-limit-recovery/constants.d.ts +1 -1
- package/dist/hooks/context-window-limit-recovery/constants.js +1 -1
- package/dist/hooks/context-window-limit-recovery/index.d.ts +1 -1
- package/dist/hooks/context-window-limit-recovery/index.js +1 -1
- package/dist/hooks/context-window-limit-recovery/parser.d.ts +1 -1
- package/dist/hooks/context-window-limit-recovery/parser.js +1 -1
- package/dist/hooks/context-window-limit-recovery/types.d.ts +1 -1
- package/dist/hooks/context-window-limit-recovery/types.js +1 -1
- package/dist/hooks/directory-readme-injector/constants.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/constants.js +1 -1
- package/dist/hooks/directory-readme-injector/index.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/index.js +1 -1
- package/dist/hooks/directory-readme-injector/storage.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/storage.js +1 -1
- package/dist/hooks/directory-readme-injector/types.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/types.js +1 -1
- package/dist/hooks/edit-error-recovery/index.d.ts +1 -1
- package/dist/hooks/edit-error-recovery/index.js +1 -1
- package/dist/hooks/empty-message-sanitizer/constants.d.ts +1 -1
- package/dist/hooks/empty-message-sanitizer/constants.js +1 -1
- package/dist/hooks/empty-message-sanitizer/index.d.ts +1 -1
- package/dist/hooks/empty-message-sanitizer/index.js +1 -1
- package/dist/hooks/empty-message-sanitizer/types.d.ts +1 -1
- package/dist/hooks/empty-message-sanitizer/types.js +1 -1
- package/dist/hooks/keyword-detector/index.d.ts +7 -3
- package/dist/hooks/keyword-detector/index.d.ts.map +1 -1
- package/dist/hooks/keyword-detector/index.js +7 -3
- package/dist/hooks/keyword-detector/index.js.map +1 -1
- package/dist/hooks/olympus-orchestrator/constants.d.ts +1 -1
- package/dist/hooks/olympus-orchestrator/constants.js +1 -1
- package/dist/hooks/olympus-orchestrator/index.d.ts +8 -5
- package/dist/hooks/olympus-orchestrator/index.d.ts.map +1 -1
- package/dist/hooks/olympus-orchestrator/index.js +8 -5
- package/dist/hooks/olympus-orchestrator/index.js.map +1 -1
- package/dist/hooks/preemptive-compaction/constants.d.ts +1 -1
- package/dist/hooks/preemptive-compaction/constants.js +1 -1
- package/dist/hooks/preemptive-compaction/index.d.ts +1 -1
- package/dist/hooks/preemptive-compaction/index.js +1 -1
- package/dist/hooks/preemptive-compaction/types.d.ts +1 -1
- package/dist/hooks/preemptive-compaction/types.js +1 -1
- package/dist/hooks/rules-injector/constants.d.ts +1 -1
- package/dist/hooks/rules-injector/constants.js +1 -1
- package/dist/hooks/rules-injector/finder.d.ts +1 -1
- package/dist/hooks/rules-injector/finder.js +1 -1
- package/dist/hooks/rules-injector/index.d.ts +1 -1
- package/dist/hooks/rules-injector/index.js +1 -1
- package/dist/hooks/rules-injector/matcher.d.ts +1 -1
- package/dist/hooks/rules-injector/matcher.js +1 -1
- package/dist/hooks/rules-injector/parser.d.ts +1 -1
- package/dist/hooks/rules-injector/parser.js +1 -1
- package/dist/hooks/rules-injector/storage.d.ts +1 -1
- package/dist/hooks/rules-injector/storage.js +1 -1
- package/dist/hooks/rules-injector/types.d.ts +1 -1
- package/dist/hooks/rules-injector/types.js +1 -1
- package/dist/hooks/session-recovery/constants.d.ts +1 -1
- package/dist/hooks/session-recovery/constants.js +1 -1
- package/dist/hooks/session-recovery/index.d.ts +1 -1
- package/dist/hooks/session-recovery/index.js +1 -1
- package/dist/hooks/session-recovery/storage.d.ts +1 -1
- package/dist/hooks/session-recovery/storage.js +1 -1
- package/dist/hooks/session-recovery/types.d.ts +1 -1
- package/dist/hooks/session-recovery/types.js +1 -1
- package/dist/hooks/think-mode/detector.d.ts +1 -1
- package/dist/hooks/think-mode/detector.js +1 -1
- package/dist/hooks/think-mode/index.d.ts +1 -1
- package/dist/hooks/think-mode/index.js +1 -1
- package/dist/hooks/think-mode/switcher.d.ts +1 -1
- package/dist/hooks/think-mode/switcher.js +1 -1
- package/dist/hooks/think-mode/types.d.ts +1 -1
- package/dist/hooks/think-mode/types.js +1 -1
- package/dist/hooks/thinking-block-validator/constants.d.ts +1 -1
- package/dist/hooks/thinking-block-validator/constants.js +1 -1
- package/dist/hooks/thinking-block-validator/index.d.ts +1 -1
- package/dist/hooks/thinking-block-validator/index.js +1 -1
- package/dist/hooks/thinking-block-validator/types.d.ts +1 -1
- package/dist/hooks/thinking-block-validator/types.js +1 -1
- package/dist/hooks/todo-continuation/index.d.ts +1 -1
- package/dist/hooks/todo-continuation/index.js +1 -1
- package/dist/index.d.ts +15 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -10
- package/dist/index.js.map +1 -1
- package/dist/installer/hooks.d.ts +70 -24
- package/dist/installer/hooks.d.ts.map +1 -1
- package/dist/installer/hooks.js +69 -24
- package/dist/installer/hooks.js.map +1 -1
- package/dist/installer/index.d.ts +2 -2
- package/dist/installer/index.js +6 -6
- package/dist/installer/index.js.map +1 -1
- package/package.json +4 -4
- package/scripts/install.sh +0 -2
- /package/scripts/{claude-sisyphus.sh → claude-olympus.sh} +0 -0
- /package/scripts/{sisyphus-aliases.sh → olympus-aliases.sh} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Manages the active work plan state for Olympus orchestrator.
|
|
5
5
|
* Part of the Olympus quest system for tracking active work plans.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Core Olympus feature for quest state management and plan tracking.
|
|
8
8
|
*/
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=types.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Constants for tracking tool usage and encouraging agent delegation.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus agent-usage-reminder hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/** Storage directory for agent usage reminder state */
|
|
9
9
|
export declare const OLYMPUS_STORAGE_DIR: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Constants for tracking tool usage and encouraging agent delegation.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus agent-usage-reminder hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
import { homedir } from 'os';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* This hook tracks tool usage and appends reminder messages to tool outputs
|
|
8
8
|
* when users haven't been using agents effectively.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Olympus agent-usage-reminder hook for extending Claude Code behavior.
|
|
11
11
|
* Adapted for Claude Code's shell-based hook system.
|
|
12
12
|
*/
|
|
13
13
|
export { loadAgentUsageState, saveAgentUsageState, clearAgentUsageState } from './storage.js';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* This hook tracks tool usage and appends reminder messages to tool outputs
|
|
8
8
|
* when users haven't been using agents effectively.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Olympus agent-usage-reminder hook for extending Claude Code behavior.
|
|
11
11
|
* Adapted for Claude Code's shell-based hook system.
|
|
12
12
|
*/
|
|
13
13
|
import { loadAgentUsageState, saveAgentUsageState, clearAgentUsageState, } from './storage.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Persists agent usage state across sessions.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus agent-usage-reminder hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import type { AgentUsageState } from './types.js';
|
|
9
9
|
export declare function loadAgentUsageState(sessionID: string): AgentUsageState | null;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Persists agent usage state across sessions.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus agent-usage-reminder hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, writeFileSync, unlinkSync, } from 'fs';
|
|
9
9
|
import { join } from 'path';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Tracks agent usage to encourage delegation to specialized agents.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus agent-usage-reminder hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
export interface AgentUsageState {
|
|
9
9
|
sessionID: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Self-referential work loop that continues until a completion promise is detected.
|
|
5
5
|
* Named after the character who keeps working until the job is done.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus ascent hook for extending Claude Code behavior.
|
|
8
8
|
*/
|
|
9
9
|
export interface AscentLoopState {
|
|
10
10
|
/** Whether the loop is currently active */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Self-referential work loop that continues until a completion promise is detected.
|
|
5
5
|
* Named after the character who keeps working until the job is done.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus ascent hook for extending Claude Code behavior.
|
|
8
8
|
*/
|
|
9
9
|
import { existsSync, readFileSync, writeFileSync, mkdirSync, unlinkSync } from 'fs';
|
|
10
10
|
import { join } from 'path';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Configuration values for slash command detection.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus auto-slash-command hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
export declare const HOOK_NAME: "auto-slash-command";
|
|
9
9
|
/** XML tags to mark auto-expanded slash commands */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Configuration values for slash command detection.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus auto-slash-command hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
export const HOOK_NAME = 'auto-slash-command';
|
|
9
9
|
/** XML tags to mark auto-expanded slash commands */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Detects slash commands in user prompts.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus auto-slash-command hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import { SLASH_COMMAND_PATTERN, EXCLUDED_COMMANDS, } from './constants.js';
|
|
9
9
|
/** Pattern to match code blocks */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Discovers and executes slash commands from various sources.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus auto-slash-command hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import type { ParsedSlashCommand, CommandInfo, CommandScope, ExecuteResult } from './types.js';
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Discovers and executes slash commands from various sources.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus auto-slash-command hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import { existsSync, readdirSync, readFileSync } from 'fs';
|
|
9
9
|
import { join, basename } from 'path';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - Project-level commands from .claude/commands/
|
|
8
8
|
* - Template expansion with $ARGUMENTS placeholder
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Olympus auto-slash-command hook for extending Claude Code behavior.
|
|
11
11
|
*/
|
|
12
12
|
import type { AutoSlashCommandHookInput, AutoSlashCommandResult } from './types.js';
|
|
13
13
|
export * from './types.js';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - Project-level commands from .claude/commands/
|
|
8
8
|
* - Template expansion with $ARGUMENTS placeholder
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* Olympus auto-slash-command hook for extending Claude Code behavior.
|
|
11
11
|
*/
|
|
12
12
|
import { detectSlashCommand, extractPromptText, } from './detector.js';
|
|
13
13
|
import { executeSlashCommand, findCommand, listAvailableCommands, } from './executor.js';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Background Notification Hook
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* Integrates with the BackgroundManager to show task completion status.
|
|
4
|
+
* Trigger: Periodic check or task completion events
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Behavior:
|
|
7
|
+
* - Monitors background task completion via BackgroundManager
|
|
8
|
+
* - Shows task completion status and results
|
|
9
|
+
* - Notifies when async operations finish
|
|
10
|
+
*
|
|
11
|
+
* User Impact: Visibility into background task execution without blocking main workflow
|
|
9
12
|
*/
|
|
10
13
|
import type { BackgroundManager, BackgroundTask } from '../../features/background-agent/index.js';
|
|
11
14
|
import type { BackgroundNotificationHookConfig, BackgroundNotificationHookInput, BackgroundNotificationHookOutput, NotificationCheckResult } from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/background-notification/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/background-notification/index.ts"],"names":[],"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CAAgC,CAAC,CAI3C"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Background Notification Hook
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* Integrates with the BackgroundManager to show task completion status.
|
|
4
|
+
* Trigger: Periodic check or task completion events
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Behavior:
|
|
7
|
+
* - Monitors background task completion via BackgroundManager
|
|
8
|
+
* - Shows task completion status and results
|
|
9
|
+
* - Notifies when async operations finish
|
|
10
|
+
*
|
|
11
|
+
* User Impact: Visibility into background task execution without blocking main workflow
|
|
9
12
|
*/
|
|
10
13
|
import { getBackgroundManager } from '../../features/background-agent/index.js';
|
|
11
14
|
/** Hook name identifier */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/background-notification/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/background-notification/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAiBhF,2BAA2B;AAC3B,MAAM,CAAC,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAEnD;;GAEG;AACH,SAAS,sBAAsB,CAAC,IAAoB;IAClD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClE,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAEtF,MAAM,KAAK,GAAG;QAC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notification handling.
|
|
5
|
-
*
|
|
5
|
+
* Olympus background-notification hook for extending Claude Code behavior.
|
|
6
6
|
*/
|
|
7
7
|
import type { BackgroundTask } from '../../features/background-agent/index.js';
|
|
8
8
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Background Notification Hook Types
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for background task notification handling.
|
|
5
|
-
*
|
|
5
|
+
* Olympus background-notification hook for extending Claude Code behavior.
|
|
6
6
|
*/
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=types.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Keywords and patterns for comment detection and filtering.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus comment-checker hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* BDD (Behavior-Driven Development) keywords that are acceptable in comments
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Keywords and patterns for comment detection and filtering.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus comment-checker hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* BDD (Behavior-Driven Development) keywords that are acceptable in comments
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Filters to determine which comments should be flagged vs skipped.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus comment-checker hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import type { CommentInfo, FilterResult } from './types.js';
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Filters to determine which comments should be flagged vs skipped.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus comment-checker hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import { BDD_KEYWORDS, TYPE_CHECKER_PREFIXES } from './constants.js';
|
|
9
9
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Detects comments and docstrings in code changes and prompts Claude
|
|
5
5
|
* to justify or remove unnecessary comments.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus comment-checker hook for extending Claude Code behavior.
|
|
8
8
|
* Instead of using an external CLI binary, this implementation does
|
|
9
9
|
* comment detection directly in TypeScript.
|
|
10
10
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Detects comments and docstrings in code changes and prompts Claude
|
|
5
5
|
* to justify or remove unnecessary comments.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus comment-checker hook for extending Claude Code behavior.
|
|
8
8
|
* Instead of using an external CLI binary, this implementation does
|
|
9
9
|
* comment detection directly in TypeScript.
|
|
10
10
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Messages and prompts for recovery from context limit errors.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Recovery message when context window limit is hit
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Messages and prompts for recovery from context limit errors.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Recovery message when context window limit is hit
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Detects context window limit errors and injects recovery messages
|
|
5
5
|
* to help Claude recover gracefully.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
8
8
|
*
|
|
9
9
|
* Note: This is a simplified version for Claude Code's shell hook system.
|
|
10
10
|
* The original uses OpenCode's plugin event system for more sophisticated
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Detects context window limit errors and injects recovery messages
|
|
5
5
|
* to help Claude recover gracefully.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
8
8
|
*
|
|
9
9
|
* Note: This is a simplified version for Claude Code's shell hook system.
|
|
10
10
|
* The original uses OpenCode's plugin event system for more sophisticated
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Parses error responses to detect token/context limit errors.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import type { ParsedTokenLimitError } from './types.js';
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Parses error responses to detect token/context limit errors.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Patterns to extract token counts from error messages
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for detecting and recovering from context window limit errors.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Parsed token limit error information
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for detecting and recovering from context window limit errors.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus anthropic-context-window-limit-recovery hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Configuration for retry behavior
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Constants for finding and injecting README files from directories.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/** Storage directory for directory-readme-injector state */
|
|
9
9
|
export declare const OLYMPUS_STORAGE_DIR: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Constants for finding and injecting README files from directories.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import { join } from 'node:path';
|
|
9
9
|
import { homedir } from 'node:os';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Automatically injects relevant README content from directories when files are accessed.
|
|
5
5
|
* Walks up the directory tree from accessed files to find and inject README.md files.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
8
8
|
* Adapted for Claude Code's shell hook system.
|
|
9
9
|
*/
|
|
10
10
|
export * from './types.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Automatically injects relevant README content from directories when files are accessed.
|
|
5
5
|
* Walks up the directory tree from accessed files to find and inject README.md files.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
8
8
|
* Adapted for Claude Code's shell hook system.
|
|
9
9
|
*/
|
|
10
10
|
import { existsSync, readFileSync } from 'node:fs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Persistent storage for tracking which directory READMEs have been injected per session.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Load set of injected directory paths for a session.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Persistent storage for tracking which directory READMEs have been injected per session.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, writeFileSync, unlinkSync, } from 'node:fs';
|
|
9
9
|
import { join } from 'node:path';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for tracking injected README files per session.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Storage data for tracking which directory READMEs have been injected
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for tracking injected README files per session.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Olympus directory-readme-injector hook for extending Claude Code behavior.
|
|
7
7
|
*/
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=types.js.map
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - oldString not found (wrong assumption about file content)
|
|
10
10
|
* - oldString found multiple times (ambiguous match, need more context)
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* Olympus edit-error-recovery hook for extending Claude Code behavior.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
15
|
* Known Edit tool error patterns that indicate the AI made a mistake
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* - oldString not found (wrong assumption about file content)
|
|
10
10
|
* - oldString found multiple times (ambiguous match, need more context)
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* Olympus edit-error-recovery hook for extending Claude Code behavior.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
15
|
* Known Edit tool error patterns that indicate the AI made a mistake
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* AFTER all other message processing. In the shell hooks system, this should be
|
|
15
15
|
* invoked at the last stage before messages are sent to the API.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* Olympus empty-message-sanitizer hook for extending Claude Code behavior.
|
|
18
18
|
*/
|
|
19
19
|
import type { MessagePart, MessageWithParts, EmptyMessageSanitizerInput, EmptyMessageSanitizerOutput, EmptyMessageSanitizerConfig } from './types.js';
|
|
20
20
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* AFTER all other message processing. In the shell hooks system, this should be
|
|
15
15
|
* invoked at the last stage before messages are sent to the API.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* Olympus empty-message-sanitizer hook for extending Claude Code behavior.
|
|
18
18
|
*/
|
|
19
19
|
import * as fs from 'fs';
|
|
20
20
|
import * as path from 'path';
|