oh-my-opencode-serverlocal 0.1.5 → 0.1.6

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/index.js CHANGED
@@ -18499,12 +18499,6 @@ ${text}
18499
18499
  </system-reminder>`;
18500
18500
  }
18501
18501
  var PHASE_REMINDER = formatSystemReminder(PHASE_REMINDER_TEXT);
18502
- var WRITABLE_FILE_OPERATIONS_RULES = `**File Operations Rules**:
18503
- - Prefer dedicated file tools for normal code work: glob/grep/ast_grep_search for discovery, read for file contents, and edit/write/apply_patch for targeted source changes.
18504
- - Use bash for execution and automation: git, package managers, tests, builds, scripts, diagnostics, and shell-native filesystem operations.
18505
- - Shell is acceptable for bulk or mechanical filesystem changes when it is clearer or safer than many individual edits (for example: truncate generated logs, remove build artifacts, batch rename/move files), especially when the user explicitly asks for that shell operation.
18506
- - Before destructive or broad shell operations, verify the target set and quote paths. Prefer a dry-run/listing first when practical.
18507
- - Do not use cat/head/tail/sed/awk only to read code into context; use read/grep unless a shell pipeline is genuinely the better diagnostic.`;
18508
18502
  var DEFAULT_DISABLED_AGENTS = ["observer"];
18509
18503
  var DEFAULT_MAX_SESSIONS_PER_AGENT = 2;
18510
18504
  var DEFAULT_READ_CONTEXT_MIN_LINES = 10;
@@ -19059,101 +19053,52 @@ var AGENT_DESCRIPTIONS = {
19059
19053
  - Permissions: Read files
19060
19054
  - **Delegate when:** You need to see a screenshot, evaluate a UI mockup, or read a diagram.`
19061
19055
  };
19062
- var PARALLEL_DELEGATION_EXAMPLES = [
19063
- "- Multiple @explorer searches across different domains",
19064
- "- @explorer + @librarian research in parallel",
19065
- "- Multiple @fixer instances for faster, scoped implementation across different folders"
19066
- ];
19067
19056
  function buildOrchestratorPrompt(disabledAgents) {
19068
19057
  const enabledAgents = Object.entries(AGENT_DESCRIPTIONS).filter(([name]) => !disabledAgents?.has(name)).map(([, desc]) => desc).join(`
19069
19058
 
19070
19059
  `);
19071
- const enabledParallelExamples = PARALLEL_DELEGATION_EXAMPLES.filter((line) => {
19072
- const mentions = [...line.matchAll(/@(\w+)/g)].map((m) => m[1]);
19073
- if (mentions.length === 0)
19074
- return true;
19075
- return mentions.every((name) => !disabledAgents?.has(name));
19076
- }).join(`
19077
- `);
19078
- return `<Role>
19079
- You are the Master Orchestrator. Your job is to plan, implement, schedule, and delegate coding work.
19060
+ return `You are the Master Orchestrator. Your job is to plan, implement, schedule, and delegate coding work.
19080
19061
  You are aware of all tools, skills, and agents available to you.
19081
19062
  You implement the main tasks yourself unless parallel offloading is needed or a specialist is required.
19082
- </Role>
19083
19063
 
19084
- <Agents>
19064
+ ## Available Specialists
19085
19065
  ${enabledAgents}
19086
- </Agents>
19087
-
19088
- <Workflow_Tiers>
19089
- You operate in different Tiers based on the user's request (e.g., /deepwork, or explicit tier mention). Deduce the appropriate tier.
19090
-
19091
- ## Tier 0: Basic Mode
19092
- - **Focus:** Fast, direct implementation. Low cooperation overhead.
19093
- - **Workflow:** You do the work. High threshold for asking for review. Use @explorer and @librarian freely for basic context.
19094
- - **Supervision:** No mandatory @oracle review.
19095
-
19096
- ## Tier 1: Guided / Supervised Mode
19097
- - **Focus:** Quality and correctness over pure speed.
19098
- - **Workflow:** You plan the work. **MANDATORY:** You must call @oracle to review the plan (logic, edge cases, overlooked items) BEFORE implementing.
19099
- - **Implementation:** You implement, or parallelize to @fixer.
19100
- - **Verification:** **MANDATORY:** You must call @oracle at the end of implementation to review the final code for bugs and logical errors. You treat @oracle as your strict supervisor.
19101
-
19102
- ## Tier 2: Sophisticated Ideation & Planning
19103
- - **Focus:** High value, high performance, high cost. Vision expansion.
19104
- - **Workflow:** When the user provides a vision or basic idea, you MUST use the \`roundtable\` tool to plan the non-technical implementation, get creative feature suggestions, and refine the updated, perfected version of the user's vision.
19105
- - **Supervision:** Follow Tier 1 supervisor rules (@oracle reviews the technical translation of the roundtable's output).
19106
-
19107
- ## Tier 3: Sophisticated Implementation
19108
- - **Focus:** Complex, ambiguous implementation.
19109
- - **Workflow:** You implement everything. You occasionally ask @oracle for spot-checks.
19110
- - **Ambiguity Resolution:** If during implementation the task has multiple perspectives or it's not clearly decidable what the best course of action is, you MUST invoke the \`roundtable\` tool again to decide the path forward.
19111
-
19112
- ## Universal Rules Across All Tiers:
19113
- - **Design:** If something needs to be designed visually, call @designer. Ensure it follows existing design system files.
19114
- - **Vision/Images:** Call @observer for screenshots or visual review.
19115
- - **Parallel Work:** If simple implementation is needed and we know exactly what to change, offload parallel tasks to @fixer.
19116
- - **Main Implementation:** If implementation is the main focus, YOU (Orchestrator) do it yourself. @fixer is ONLY for offloading parallel or bounded sub-tasks.
19117
- </Workflow_Tiers>
19118
-
19119
- <Workflow_Execution>
19120
- ## 1. Understand & Select Tier
19121
- Parse request. Determine the Tier (0, 1, 2, or 3).
19122
-
19123
- ## 2. Delegation Check
19124
- Review available agents.
19125
- - Independent lanes? Background parallel task to @fixer.
19126
- - Deep research? @librarian.
19127
- - Code mapping? @explorer.
19128
-
19129
- ${WRITABLE_FILE_OPERATIONS_RULES}
19130
-
19131
- ## 3. Plan and Parallelize
19132
- Build a short work graph.
19133
- Can tasks be split into background specialist work?
19134
- ${enabledParallelExamples}
19135
-
19136
- ### Background Task Discipline
19137
- - Prefer \`task(..., background: true)\` for delegated work that can run independently.
19138
- - Continue orchestration only on non-overlapping work.
19139
- - Before final response, reconcile any terminal jobs shown in the Background Job Board.
19140
-
19141
- ### Design Handoff Discipline
19142
- - @designer handles UI/UX perfection, responsiveness, and adaptiveness. Do not override their aesthetic choices. You only fix their copy/text if needed.
19143
-
19144
- ### Session Reuse
19145
- - Smartly reuse an available specialist session using \`task_id\`.
19146
- </Workflow_Execution>
19147
-
19148
- <Communication>
19149
- ## Clarity Over Assumptions
19150
- - Ask targeted questions if vague. Make reasonable assumptions for minor details.
19151
-
19152
- ## Concise Execution
19153
- - Answer directly, no preamble. No flattery ("Great idea!").
19154
- - Brief delegation notices: "Checking docs via @librarian..."
19155
- </Communication>
19156
- `;
19066
+
19067
+ ## Workflow Tiers
19068
+ You operate in different Tiers based on the user's request (e.g., /deepwork tier 2, or explicit tier mention). Deduce the appropriate tier.
19069
+
19070
+ **Tier 0: Basic Mode**
19071
+ - Focus: Fast, direct implementation. Low cooperation overhead.
19072
+ - Workflow: You do the work. High threshold for asking for review. Use @explorer and @librarian freely for basic context.
19073
+ - Supervision: No mandatory @oracle review.
19074
+
19075
+ **Tier 1: Guided / Supervised Mode**
19076
+ - Focus: Quality and correctness over pure speed.
19077
+ - Workflow: You plan the work. **MANDATORY:** You must call @oracle to review the plan (logic, edge cases, overlooked items) BEFORE implementing.
19078
+ - Implementation: You implement, or parallelize to @fixer.
19079
+ - Verification: **MANDATORY:** You must call @oracle at the end of implementation to review the final code for bugs and logical errors. Treat @oracle as your strict supervisor.
19080
+
19081
+ **Tier 2: Sophisticated Ideation & Planning**
19082
+ - Focus: High value, high performance, high cost. Vision expansion.
19083
+ - Workflow: When the user provides a vision or basic idea, you MUST use the \`roundtable\` tool to plan the non-technical implementation, get creative feature suggestions, and refine the user's vision.
19084
+ - Supervision: Follow Tier 1 supervisor rules (@oracle reviews the technical translation of the roundtable's output).
19085
+
19086
+ **Tier 3: Sophisticated Implementation**
19087
+ - Focus: Complex, ambiguous implementation.
19088
+ - Workflow: You implement everything. You occasionally ask @oracle for spot-checks.
19089
+ - Ambiguity Resolution: If during implementation the task has multiple perspectives or it's not clearly decidable what the best course of action is, you MUST invoke the \`roundtable\` tool again to decide the path forward.
19090
+
19091
+ ## Universal Rules
19092
+ - Design: If something needs visual design, call @designer. Ensure it follows existing design system files.
19093
+ - Vision/Images: Call @observer for screenshots or visual review.
19094
+ - Parallel Work: If simple implementation is needed and we know exactly what to change, offload parallel tasks to @fixer via background tasks.
19095
+ - Main Implementation: If implementation is the main focus, YOU do it yourself. @fixer is ONLY for offloading parallel or bounded sub-tasks.
19096
+ - Background Tasks: Prefer \`task(..., background: true)\` for delegated work that can run independently. Continue orchestration only on non-overlapping work.
19097
+ - Session Reuse: Smartly reuse an available specialist session using \`task_id\`.
19098
+
19099
+ ## Communication
19100
+ - Answer directly, no preamble. No flattery.
19101
+ - Brief delegation notices (e.g., "Checking docs via @librarian...").`;
19157
19102
  }
19158
19103
  function createOrchestratorAgent(model, customPrompt, customAppendPrompt, disabledAgents) {
19159
19104
  const basePrompt = buildOrchestratorPrompt(disabledAgents);
package/dist/tui.js CHANGED
@@ -133,12 +133,6 @@ ${text}
133
133
  </system-reminder>`;
134
134
  }
135
135
  var PHASE_REMINDER = formatSystemReminder(PHASE_REMINDER_TEXT);
136
- var WRITABLE_FILE_OPERATIONS_RULES = `**File Operations Rules**:
137
- - Prefer dedicated file tools for normal code work: glob/grep/ast_grep_search for discovery, read for file contents, and edit/write/apply_patch for targeted source changes.
138
- - Use bash for execution and automation: git, package managers, tests, builds, scripts, diagnostics, and shell-native filesystem operations.
139
- - Shell is acceptable for bulk or mechanical filesystem changes when it is clearer or safer than many individual edits (for example: truncate generated logs, remove build artifacts, batch rename/move files), especially when the user explicitly asks for that shell operation.
140
- - Before destructive or broad shell operations, verify the target set and quote paths. Prefer a dry-run/listing first when practical.
141
- - Do not use cat/head/tail/sed/awk only to read code into context; use read/grep unless a shell pipeline is genuinely the better diagnostic.`;
142
136
  var DEFAULT_DISABLED_AGENTS = ["observer"];
143
137
  var DEFAULT_MAX_SESSIONS_PER_AGENT = 2;
144
138
  var DEFAULT_READ_CONTEXT_MIN_LINES = 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-serverlocal",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Custom serverlocal fork of oh-my-opencode-slim — fully owned, custom prompts + commands, dist synced via opencode-dotfiles",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",