evil-omo 3.17.11 → 4.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.
Files changed (171) hide show
  1. package/README.ja.md +154 -114
  2. package/README.ko.md +197 -150
  3. package/README.ru.md +93 -71
  4. package/README.zh-cn.md +113 -72
  5. package/dist/agents/agent-skill-resolution.d.ts +1 -0
  6. package/dist/agents/builtin-agents/available-skills.d.ts +1 -1
  7. package/dist/agents/builtin-agents/general-agents.d.ts +1 -0
  8. package/dist/agents/builtin-agents.d.ts +1 -1
  9. package/dist/agents/dynamic-agent-core-sections.d.ts +1 -0
  10. package/dist/agents/dynamic-agent-prompt-builder.d.ts +1 -1
  11. package/dist/agents/hephaestus/gpt-5-5.d.ts +0 -4
  12. package/dist/agents/types.d.ts +1 -0
  13. package/dist/cli/doctor/checks/team-mode.d.ts +2 -0
  14. package/dist/cli/doctor/constants.d.ts +1 -0
  15. package/dist/cli/index.js +21099 -20826
  16. package/dist/cli/run/continuation-state.d.ts +1 -0
  17. package/dist/config/index.d.ts +1 -1
  18. package/dist/config/schema/agent-names.d.ts +1 -0
  19. package/dist/config/schema/agent-overrides.d.ts +45 -0
  20. package/dist/config/schema/categories.d.ts +7 -1
  21. package/dist/config/schema/commands.d.ts +1 -0
  22. package/dist/config/schema/evil-omo-config.d.ts +70 -0
  23. package/dist/config/schema/fallback-models.d.ts +5 -0
  24. package/dist/config/schema/hooks.d.ts +1 -0
  25. package/dist/config/schema/keyword-detector.d.ts +21 -0
  26. package/dist/config/schema/team-mode.d.ts +16 -0
  27. package/dist/config/schema.d.ts +2 -0
  28. package/dist/create-hooks.d.ts +3 -0
  29. package/dist/evil-omo.schema.json +191 -47
  30. package/dist/features/background-agent/manager.d.ts +17 -9
  31. package/dist/features/background-agent/process-cleanup.d.ts +4 -0
  32. package/dist/features/background-agent/types.d.ts +16 -12
  33. package/dist/features/background-agent/wait-for-task-session.d.ts +1 -1
  34. package/dist/features/boulder-state/storage.d.ts +1 -0
  35. package/dist/features/builtin-commands/commands.d.ts +1 -0
  36. package/dist/features/builtin-commands/templates/hyperplan.d.ts +1 -0
  37. package/dist/features/builtin-commands/templates/refactor.d.ts +1 -0
  38. package/dist/features/builtin-commands/templates/remove-ai-slops.d.ts +1 -0
  39. package/dist/features/builtin-commands/types.d.ts +1 -1
  40. package/dist/features/builtin-skills/skills/git-master-sections/commit-workflow.d.ts +1 -1
  41. package/dist/features/builtin-skills/skills/git-master-sections/history-search-workflow.d.ts +1 -1
  42. package/dist/features/builtin-skills/skills/git-master-sections/overview.d.ts +1 -1
  43. package/dist/features/builtin-skills/skills/git-master-sections/quick-reference.d.ts +1 -1
  44. package/dist/features/builtin-skills/skills/git-master-sections/rebase-workflow.d.ts +1 -1
  45. package/dist/features/builtin-skills/skills/index.d.ts +1 -0
  46. package/dist/features/builtin-skills/skills/team-mode.d.ts +2 -0
  47. package/dist/features/builtin-skills/skills.d.ts +1 -0
  48. package/dist/features/claude-code-plugin-loader/discovery.d.ts +1 -0
  49. package/dist/features/hook-message-injector/injector.d.ts +2 -2
  50. package/dist/features/opencode-skill-loader/loader.d.ts +2 -2
  51. package/dist/features/opencode-skill-loader/skill-resolution-options.d.ts +1 -0
  52. package/dist/features/run-continuation-state/types.d.ts +1 -1
  53. package/dist/features/skill-mcp-manager/types.d.ts +1 -0
  54. package/dist/features/team-mode/deps.d.ts +6 -0
  55. package/dist/features/team-mode/member-guidance.d.ts +2 -0
  56. package/dist/features/team-mode/member-parser.d.ts +16 -0
  57. package/dist/features/team-mode/member-session-resolution.d.ts +6 -0
  58. package/dist/features/team-mode/member-session-routing.d.ts +19 -0
  59. package/dist/features/team-mode/resolve-caller-team-lead.d.ts +8 -0
  60. package/dist/features/team-mode/team-layout-tmux/close-team-member-pane.d.ts +4 -0
  61. package/dist/features/team-mode/team-layout-tmux/layout.d.ts +26 -6
  62. package/dist/features/team-mode/team-layout-tmux/rebalance-team-window.d.ts +9 -0
  63. package/dist/features/team-mode/team-layout-tmux/resolve-caller-tmux-session.d.ts +7 -0
  64. package/dist/features/team-mode/team-layout-tmux/sweep-stale-team-sessions.d.ts +8 -0
  65. package/dist/features/team-mode/team-mailbox/ack.d.ts +2 -0
  66. package/dist/features/team-mode/team-mailbox/inbox.d.ts +3 -0
  67. package/dist/features/team-mode/team-mailbox/index.d.ts +7 -0
  68. package/dist/features/team-mode/team-mailbox/poll.d.ts +10 -0
  69. package/dist/features/team-mode/team-mailbox/reservation.d.ts +11 -0
  70. package/dist/features/team-mode/team-mailbox/send.d.ts +27 -0
  71. package/dist/features/team-mode/team-registry/index.d.ts +3 -0
  72. package/dist/features/team-mode/team-registry/loader.d.ts +12 -0
  73. package/dist/features/team-mode/team-registry/paths.d.ts +13 -0
  74. package/dist/features/team-mode/team-registry/team-spec-input-normalizer.d.ts +6 -0
  75. package/dist/features/team-mode/team-registry/validator.d.ts +10 -0
  76. package/dist/features/team-mode/team-runtime/activate-team-layout.d.ts +4 -0
  77. package/dist/features/team-mode/team-runtime/cleanup-team-run-resources.d.ts +17 -0
  78. package/dist/features/team-mode/team-runtime/create.d.ts +25 -0
  79. package/dist/features/team-mode/team-runtime/delete-team.d.ts +16 -0
  80. package/dist/features/team-mode/team-runtime/index.d.ts +2 -0
  81. package/dist/features/team-mode/team-runtime/resolve-member-dependencies.d.ts +3 -0
  82. package/dist/features/team-mode/team-runtime/resolve-member.d.ts +17 -0
  83. package/dist/features/team-mode/team-runtime/shutdown-helpers.d.ts +11 -0
  84. package/dist/features/team-mode/team-runtime/shutdown-test-fixtures.d.ts +46 -0
  85. package/dist/features/team-mode/team-runtime/shutdown.d.ts +5 -0
  86. package/dist/features/team-mode/team-runtime/status.d.ts +36 -0
  87. package/dist/features/team-mode/team-session-registry.d.ts +11 -0
  88. package/dist/features/team-mode/team-state-store/index.d.ts +1 -0
  89. package/dist/features/team-mode/team-state-store/locks.d.ts +12 -0
  90. package/dist/features/team-mode/team-state-store/resume.d.ts +10 -0
  91. package/dist/features/team-mode/team-state-store/store.d.ts +21 -0
  92. package/dist/features/team-mode/team-tasklist/claim.d.ts +10 -0
  93. package/dist/features/team-mode/team-tasklist/dependencies.d.ts +2 -0
  94. package/dist/features/team-mode/team-tasklist/get.d.ts +3 -0
  95. package/dist/features/team-mode/team-tasklist/index.d.ts +6 -0
  96. package/dist/features/team-mode/team-tasklist/list.d.ts +8 -0
  97. package/dist/features/team-mode/team-tasklist/store.d.ts +3 -0
  98. package/dist/features/team-mode/team-tasklist/test-support.d.ts +9 -0
  99. package/dist/features/team-mode/team-tasklist/update.d.ts +9 -0
  100. package/dist/features/team-mode/tools/index.d.ts +1 -0
  101. package/dist/features/team-mode/tools/lifecycle-test-fixture.d.ts +188 -0
  102. package/dist/features/team-mode/tools/lifecycle.d.ts +37 -0
  103. package/dist/features/team-mode/tools/messaging.d.ts +31 -0
  104. package/dist/features/team-mode/tools/query.d.ts +16 -0
  105. package/dist/features/team-mode/tools/tasks.d.ts +18 -0
  106. package/dist/features/team-mode/types.d.ts +138 -6
  107. package/dist/features/tmux-subagent/action-executor-core.d.ts +1 -0
  108. package/dist/features/tmux-subagent/action-executor.d.ts +1 -0
  109. package/dist/features/tmux-subagent/attachable-session-status.d.ts +4 -0
  110. package/dist/features/tmux-subagent/manager.d.ts +32 -3
  111. package/dist/features/tmux-subagent/pane-state-querier.d.ts +10 -0
  112. package/dist/features/tmux-subagent/polling.d.ts +1 -0
  113. package/dist/hooks/atlas/atlas-hook.d.ts +1 -1
  114. package/dist/hooks/atlas/boulder-continuation-injector.d.ts +2 -3
  115. package/dist/hooks/atlas/recent-model-resolver.d.ts +9 -1
  116. package/dist/hooks/atlas/tool-execute-after.d.ts +2 -1
  117. package/dist/hooks/atlas/tool-execute-before.d.ts +1 -0
  118. package/dist/hooks/atlas/types.d.ts +8 -2
  119. package/dist/hooks/index.d.ts +3 -0
  120. package/dist/hooks/keyword-detector/constants.d.ts +6 -0
  121. package/dist/hooks/keyword-detector/detector.d.ts +5 -3
  122. package/dist/hooks/keyword-detector/hook.d.ts +2 -1
  123. package/dist/hooks/keyword-detector/hyperplan/default.d.ts +13 -0
  124. package/dist/hooks/keyword-detector/hyperplan/index.d.ts +1 -0
  125. package/dist/hooks/keyword-detector/team/default.d.ts +13 -0
  126. package/dist/hooks/keyword-detector/team/index.d.ts +1 -0
  127. package/dist/hooks/ralph-loop/loop-session-recovery.d.ts +7 -0
  128. package/dist/hooks/session-notification-scheduler.d.ts +2 -4
  129. package/dist/hooks/session-notification-utils.d.ts +1 -0
  130. package/dist/hooks/session-recovery/recover-tool-result-missing.d.ts +2 -2
  131. package/dist/hooks/team-mailbox-injector/hook.d.ts +31 -0
  132. package/dist/hooks/team-mailbox-injector/index.d.ts +2 -0
  133. package/dist/hooks/team-mode-status-injector/hook.d.ts +28 -0
  134. package/dist/hooks/team-mode-status-injector/index.d.ts +1 -0
  135. package/dist/hooks/team-session-events/team-idle-wake-hint.d.ts +38 -0
  136. package/dist/hooks/team-session-events/team-lead-orphan-handler.d.ts +12 -0
  137. package/dist/hooks/team-session-events/team-member-error-handler.d.ts +10 -0
  138. package/dist/hooks/team-session-events/team-member-status-handler.d.ts +10 -0
  139. package/dist/hooks/team-tool-gating/hook.d.ts +3 -0
  140. package/dist/hooks/team-tool-gating/index.d.ts +1 -0
  141. package/dist/hooks/write-existing-file-guard/hook.d.ts +6 -1
  142. package/dist/hooks/write-existing-file-guard/tool-execute-before-handler.d.ts +1 -0
  143. package/dist/index.js +74499 -71440
  144. package/dist/plugin/hooks/create-core-hooks.d.ts +3 -0
  145. package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
  146. package/dist/plugin/hooks/create-transform-hooks.d.ts +3 -1
  147. package/dist/plugin/recent-synthetic-idles.d.ts +1 -0
  148. package/dist/plugin/tool-registry.d.ts +16 -0
  149. package/dist/shared/bun-spawn-shim.d.ts +40 -0
  150. package/dist/shared/posthog-activity-state.d.ts +0 -5
  151. package/dist/shared/posthog.d.ts +7 -6
  152. package/dist/shared/project-discovery-dirs.d.ts +1 -0
  153. package/dist/shared/shell-env.d.ts +1 -0
  154. package/dist/shared/tmux/constants.d.ts +1 -1
  155. package/dist/shared/tmux/index.d.ts +1 -0
  156. package/dist/shared/tmux/runner.d.ts +13 -0
  157. package/dist/shared/tmux/tmux-utils/pane-replace.d.ts +1 -1
  158. package/dist/shared/tmux/tmux-utils/pane-spawn.d.ts +13 -1
  159. package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +13 -1
  160. package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +1 -1
  161. package/dist/shared/tmux/tmux-utils/stale-session-sweep.d.ts +9 -2
  162. package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +13 -1
  163. package/dist/shared/tmux/tmux-utils.d.ts +1 -1
  164. package/dist/tools/delegate-task/openai-categories.d.ts +1 -0
  165. package/dist/tools/delegate-task/skill-resolver.d.ts +1 -0
  166. package/dist/tools/delegate-task/subagent-resolver.d.ts +5 -1
  167. package/dist/tools/delegate-task/types.d.ts +1 -0
  168. package/dist/tools/index.d.ts +1 -0
  169. package/dist/tools/look-at/missing-file-error.d.ts +2 -0
  170. package/dist/tools/skill/types.d.ts +2 -0
  171. package/package.json +15 -14
@@ -0,0 +1,2 @@
1
+ export { createTeamMailboxInjector } from "./hook";
2
+ export type { TeamMailboxInjectorHook } from "./hook";
@@ -0,0 +1,28 @@
1
+ import type { TeamModeConfig } from "../../config/schema/team-mode";
2
+ type TransformPart = {
3
+ type: string;
4
+ text?: string;
5
+ synthetic?: boolean;
6
+ [key: string]: unknown;
7
+ };
8
+ type TransformMessageInfo = {
9
+ role: string;
10
+ sessionID?: string;
11
+ [key: string]: unknown;
12
+ };
13
+ type MessageWithParts = {
14
+ info: TransformMessageInfo;
15
+ parts: TransformPart[];
16
+ };
17
+ type TeamModeStatusInjectorInput = {
18
+ sessionID?: string;
19
+ [key: string]: unknown;
20
+ };
21
+ type TeamModeStatusInjectorOutput = {
22
+ messages: MessageWithParts[];
23
+ };
24
+ export type TeamModeStatusInjectorHook = {
25
+ "experimental.chat.messages.transform"?: (input: TeamModeStatusInjectorInput, output: TeamModeStatusInjectorOutput) => Promise<void>;
26
+ };
27
+ export declare function createTeamModeStatusInjector(config: TeamModeConfig): TeamModeStatusInjectorHook;
28
+ export {};
@@ -0,0 +1 @@
1
+ export { createTeamModeStatusInjector } from "./hook";
@@ -0,0 +1,38 @@
1
+ import type { TeamModeConfig } from "../../config/schema/team-mode";
2
+ type PromptAsyncInput = {
3
+ path: {
4
+ id: string;
5
+ };
6
+ body: {
7
+ parts: Array<{
8
+ type: "text";
9
+ text: string;
10
+ }>;
11
+ agent?: string;
12
+ model?: {
13
+ providerID: string;
14
+ modelID: string;
15
+ };
16
+ variant?: string;
17
+ };
18
+ query: {
19
+ directory: string;
20
+ };
21
+ };
22
+ type TeamIdleWakeHintContext = {
23
+ directory: string;
24
+ client: {
25
+ session: {
26
+ promptAsync?: (input: PromptAsyncInput) => Promise<unknown>;
27
+ };
28
+ };
29
+ };
30
+ type HookInput = {
31
+ event: {
32
+ type: string;
33
+ properties?: unknown;
34
+ };
35
+ };
36
+ export type HookImpl = (input: HookInput) => Promise<void>;
37
+ export declare function createTeamIdleWakeHint(ctx: TeamIdleWakeHintContext, config: TeamModeConfig): HookImpl;
38
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { TeamModeConfig } from "../../config/schema/team-mode";
2
+ import type { BackgroundManager } from "../../features/background-agent/manager";
3
+ import type { TmuxSessionManager } from "../../features/tmux-subagent/manager";
4
+ type HookInput = {
5
+ event: {
6
+ type: string;
7
+ properties?: unknown;
8
+ };
9
+ };
10
+ export type HookImpl = (input: HookInput) => Promise<void>;
11
+ export declare function createTeamLeadOrphanHandler(config: TeamModeConfig, tmuxMgr?: TmuxSessionManager, bgMgr?: BackgroundManager): HookImpl;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { TeamModeConfig } from "../../config/schema/team-mode";
2
+ type HookInput = {
3
+ event: {
4
+ type: string;
5
+ properties?: unknown;
6
+ };
7
+ };
8
+ export type HookImpl = (input: HookInput) => Promise<void>;
9
+ export declare function createTeamMemberErrorHandler(config: TeamModeConfig): HookImpl;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { TeamModeConfig } from "../../config/schema/team-mode";
2
+ type HookInput = {
3
+ event: {
4
+ type: string;
5
+ properties?: unknown;
6
+ };
7
+ };
8
+ export type HookImpl = (input: HookInput) => Promise<void>;
9
+ export declare function createTeamMemberStatusHandler(config: TeamModeConfig): HookImpl;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { Hooks, PluginInput } from "@opencode-ai/plugin";
2
+ import type { TeamModeConfig } from "../../config/schema/team-mode";
3
+ export declare function createTeamToolGating(_ctx: PluginInput, config: TeamModeConfig | undefined): Hooks;
@@ -0,0 +1 @@
1
+ export { createTeamToolGating } from "./hook";
@@ -6,10 +6,15 @@ export type GuardArgs = {
6
6
  overwrite?: boolean | string;
7
7
  };
8
8
  export declare const MAX_TRACKED_PATHS_PER_SESSION = 1024;
9
+ type WriteExistingFileGuardOptions = {
10
+ maxTrackedSessions?: number;
11
+ maxTrackedPathsPerSession?: number;
12
+ };
9
13
  export declare function asRecord(value: unknown): Record<string, unknown> | undefined;
10
14
  export declare function getPathFromArgs(args: GuardArgs | undefined): string | undefined;
11
15
  export declare function resolveInputPath(ctx: PluginInput, inputPath: string): string;
12
16
  export declare function isPathInsideDirectory(pathToCheck: string, directory: string): boolean;
13
17
  export declare function toCanonicalPath(absolutePath: string): string;
14
18
  export declare function isOverwriteEnabled(value: boolean | string | undefined): boolean;
15
- export declare function createWriteExistingFileGuardHook(ctx: PluginInput): Hooks;
19
+ export declare function createWriteExistingFileGuardHook(ctx: PluginInput, options?: WriteExistingFileGuardOptions): Hooks;
20
+ export {};
@@ -12,4 +12,5 @@ export declare function handleWriteExistingFileGuardToolExecuteBefore(params: {
12
12
  sessionLastAccess: Map<string, number>;
13
13
  getCanonicalSessionRoot: () => string;
14
14
  maxTrackedSessions: number;
15
+ maxTrackedPathsPerSession?: number;
15
16
  }): Promise<void>;