oh-my-opencode 1.2.3 → 2.0.0

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.
@@ -1,15 +0,0 @@
1
- /** Keyword patterns - "ultrawork", "ulw" (case-insensitive, word boundary) */
2
- export declare const ULTRAWORK_PATTERNS: RegExp[];
3
- /** Code block pattern to exclude from keyword detection */
4
- export declare const CODE_BLOCK_PATTERN: RegExp;
5
- /** Inline code pattern to exclude */
6
- export declare const INLINE_CODE_PATTERN: RegExp;
7
- /**
8
- * ULTRAWORK_CONTEXT - Agent-Agnostic Guidance
9
- *
10
- * Key principles:
11
- * - NO specific agent names (oracle, librarian, etc.)
12
- * - Only provide guidance based on agent role/capability
13
- * - Emphasize parallel execution, TODO tracking, delegation
14
- */
15
- export declare const ULTRAWORK_CONTEXT = "<ultrawork-mode>\n[CODE RED] Maximum precision required. Ultrathink before acting.\n\nYOU MUST LEVERAGE ALL AVAILABLE AGENTS TO THEIR FULLEST POTENTIAL.\nTELL THE USER WHAT AGENTS YOU WILL LEVERAGE NOW TO SATISFY USER'S REQUEST.\n\n## AGENT UTILIZATION PRINCIPLES (by capability, not by name)\n- **Codebase Exploration**: Spawn exploration agents using BACKGROUND TASKS for file patterns, internal implementations, project structure\n- **Documentation & References**: Use librarian-type agents via BACKGROUND TASKS for API references, examples, external library docs\n- **Planning & Strategy**: NEVER plan yourself - ALWAYS spawn a dedicated planning agent for work breakdown\n- **High-IQ Reasoning**: Leverage specialized agents for architecture decisions, code review, strategic planning\n- **Frontend/UI Tasks**: Delegate to UI-specialized agents for design and implementation\n\n## EXECUTION RULES\n- **TODO**: Track EVERY step. Mark complete IMMEDIATELY after each.\n- **PARALLEL**: Fire independent agent calls simultaneously via background_task - NEVER wait sequentially.\n- **BACKGROUND FIRST**: Use background_task for exploration/research agents (10+ concurrent if needed).\n- **VERIFY**: Re-read request after completion. Check ALL requirements met before reporting done.\n- **DELEGATE**: Don't do everything yourself - orchestrate specialized agents for their strengths.\n\n## WORKFLOW\n1. Analyze the request and identify required capabilities\n2. Spawn exploration/librarian agents via background_task in PARALLEL (10+ if needed)\n3. Use planning agents to create detailed work breakdown\n4. Execute with continuous verification against original requirements\n\n</ultrawork-mode>\n\n---\n\n";
@@ -1,16 +0,0 @@
1
- /**
2
- * Remove code blocks and inline code from text.
3
- * Prevents false positives when keywords appear in code.
4
- */
5
- export declare function removeCodeBlocks(text: string): string;
6
- /**
7
- * Detect ultrawork keywords in text (excluding code blocks).
8
- */
9
- export declare function detectUltraworkKeyword(text: string): boolean;
10
- /**
11
- * Extract text content from message parts.
12
- */
13
- export declare function extractPromptText(parts: Array<{
14
- type: string;
15
- text?: string;
16
- }>): string;
@@ -1,40 +0,0 @@
1
- export * from "./detector";
2
- export * from "./constants";
3
- export * from "./types";
4
- export declare function clearUltraworkModeState(sessionID: string): void;
5
- export declare function createUltraworkModeHook(): {
6
- /**
7
- * chat.message hook - detect ultrawork/ulw keywords, inject context via history
8
- *
9
- * Execution timing: AFTER claudeCodeHooks["chat.message"]
10
- * Behavior:
11
- * 1. Extract text from user prompt
12
- * 2. Detect ultrawork/ulw keywords (excluding code blocks)
13
- * 3. If detected, inject ULTRAWORK_CONTEXT via injectHookMessage (history injection)
14
- */
15
- "chat.message": (input: {
16
- sessionID: string;
17
- agent?: string;
18
- model?: {
19
- providerID: string;
20
- modelID: string;
21
- };
22
- messageID?: string;
23
- }, output: {
24
- message: Record<string, unknown>;
25
- parts: Array<{
26
- type: string;
27
- text?: string;
28
- [key: string]: unknown;
29
- }>;
30
- }) => Promise<void>;
31
- /**
32
- * event hook - cleanup session state on deletion
33
- */
34
- event: ({ event, }: {
35
- event: {
36
- type: string;
37
- properties?: unknown;
38
- };
39
- }) => Promise<void>;
40
- };
@@ -1,20 +0,0 @@
1
- export interface UltraworkModeState {
2
- /** Whether ultrawork keyword was detected */
3
- detected: boolean;
4
- /** Whether context was injected */
5
- injected: boolean;
6
- }
7
- export interface ModelRef {
8
- providerID: string;
9
- modelID: string;
10
- }
11
- export interface MessageWithModel {
12
- model?: ModelRef;
13
- }
14
- export interface UltraworkModeInput {
15
- parts: Array<{
16
- type: string;
17
- text?: string;
18
- }>;
19
- message: MessageWithModel;
20
- }