oh-my-opencode 5.0.0-beta.51 → 5.0.0-beta.52

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 (92) hide show
  1. package/dist/cli/doctor/checks/index.d.ts +2 -0
  2. package/dist/cli/doctor/checks/latest-version.d.ts +11 -0
  3. package/dist/cli/doctor/framework/constants.d.ts +5 -0
  4. package/dist/cli/doctor/framework/types.d.ts +2 -0
  5. package/dist/cli/index.js +88 -37
  6. package/dist/cli-node/index.js +88 -37
  7. package/dist/features/background-agent/manager.d.ts +7 -0
  8. package/dist/features/background-agent/types.d.ts +4 -0
  9. package/dist/features/claude-tasks/storage.d.ts +7 -2
  10. package/dist/features/hook-message-injector/index.d.ts +1 -0
  11. package/dist/features/hook-message-injector/sdk-message-lookup.d.ts +1 -0
  12. package/dist/hooks/keyword-detector/hook.d.ts +2 -0
  13. package/dist/hooks/keyword-detector/ultrawork/index.d.ts +2 -0
  14. package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +1 -0
  15. package/dist/index.js +286 -109
  16. package/dist/plugin/chat-message/types.d.ts +3 -1
  17. package/dist/plugin/stop-continuation.d.ts +3 -0
  18. package/dist/plugin/system-transform.d.ts +5 -1
  19. package/dist/skills/frontend/ATTRIBUTION.md +10 -0
  20. package/dist/skills/frontend/SKILL.md +3 -0
  21. package/dist/skills/frontend/references/design/README.md +10 -2
  22. package/dist/skills/frontend/references/design/_INDEX.md +1 -0
  23. package/dist/skills/frontend/references/design/ambience-skill.md +145 -0
  24. package/dist/skills/frontend/references/design/interaction-skill.md +2 -0
  25. package/dist/tui.js +16 -7
  26. package/package.json +14 -14
  27. package/packages/lsp-daemon/dist/cli.js +1 -2
  28. package/packages/lsp-daemon/dist/ownership.js +2 -2
  29. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  30. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  31. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  32. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  33. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  34. package/packages/omo-codex/plugin/components/git-bash/dist/cli.js +1 -1
  35. package/packages/omo-codex/plugin/components/git-bash/dist/codex-hook.js +2 -1
  36. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  37. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  38. package/packages/omo-codex/plugin/components/git-bash/src/codex-hook.ts +2 -1
  39. package/packages/omo-codex/plugin/components/git-bash/test/codex-hook.test.ts +6 -7
  40. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  41. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  42. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  43. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  44. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  45. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  46. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  47. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  48. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  49. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  50. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  51. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  52. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  53. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  54. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  55. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  56. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  57. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  58. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  59. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  60. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  61. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  62. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  63. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  64. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  65. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  66. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  67. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  68. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  69. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  70. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  71. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  72. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  73. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  74. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  75. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  76. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  77. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  78. package/packages/omo-codex/plugin/package-lock.json +12 -12
  79. package/packages/omo-codex/plugin/package.json +1 -1
  80. package/packages/omo-codex/plugin/skills/frontend/ATTRIBUTION.md +10 -0
  81. package/packages/omo-codex/plugin/skills/frontend/SKILL.md +3 -0
  82. package/packages/omo-codex/plugin/skills/frontend/references/design/README.md +10 -2
  83. package/packages/omo-codex/plugin/skills/frontend/references/design/_INDEX.md +1 -0
  84. package/packages/omo-codex/plugin/skills/frontend/references/design/ambience-skill.md +145 -0
  85. package/packages/omo-codex/plugin/skills/frontend/references/design/interaction-skill.md +2 -0
  86. package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
  87. package/packages/shared-skills/skills/frontend/ATTRIBUTION.md +10 -0
  88. package/packages/shared-skills/skills/frontend/SKILL.md +3 -0
  89. package/packages/shared-skills/skills/frontend/references/design/README.md +10 -2
  90. package/packages/shared-skills/skills/frontend/references/design/_INDEX.md +1 -0
  91. package/packages/shared-skills/skills/frontend/references/design/ambience-skill.md +145 -0
  92. package/packages/shared-skills/skills/frontend/references/design/interaction-skill.md +2 -0
@@ -70,6 +70,8 @@ export interface BackgroundTask {
70
70
  isUnstableAgent?: boolean;
71
71
  /** Category used for this task (e.g., 'quick', 'visual-engineering') */
72
72
  category?: string;
73
+ /** Directory the child session is created and prompted in; defaults to the parent session directory */
74
+ cwd?: string;
73
75
  onSessionCreated?: (sessionId: string) => void | Promise<void>;
74
76
  /** Pending retry notification details for the next spawned retry session */
75
77
  retryNotification?: {
@@ -118,6 +120,8 @@ export interface LaunchInput {
118
120
  skillContent?: string;
119
121
  category?: string;
120
122
  sessionPermission?: SessionPermissionRule[];
123
+ /** Directory the child session is created and prompted in; defaults to the parent session directory */
124
+ cwd?: string;
121
125
  onSessionCreated?: (sessionId: string) => void | Promise<void>;
122
126
  /** User tool overrides (ask/allow/deny) from category or agent config. Merged into launchTools before hardcoded restrictions. */
123
127
  userPermission?: Record<string, "ask" | "allow" | "deny">;
@@ -6,9 +6,14 @@ export declare function resolveTaskListId(config?: Partial<OhMyOpenCodeConfig>):
6
6
  export declare function ensureDir(dirPath: string): void;
7
7
  export declare function readJsonSafe<T>(filePath: string, schema: z.ZodType<T>): T | null;
8
8
  export declare function writeJsonAtomic(filePath: string, data: unknown): void;
9
+ export interface AcquireLockOptions {
10
+ waitTimeoutMs?: number;
11
+ retryDelayMs?: number;
12
+ }
13
+ export declare function resolveLockWaitTimeoutMs(): number;
9
14
  export declare function generateTaskId(): string;
10
15
  export declare function listTaskFiles(config?: Partial<OhMyOpenCodeConfig>): string[];
11
- export declare function acquireLock(dirPath: string): {
16
+ export declare function acquireLock(dirPath: string, options?: AcquireLockOptions): Promise<{
12
17
  acquired: boolean;
13
18
  release: () => void;
14
- };
19
+ }>;
@@ -2,3 +2,4 @@ export { injectHookMessage, findNearestMessageWithFields, findFirstMessageWithAg
2
2
  export type { StoredMessage } from "./injector";
3
3
  export type { MessageMeta, OriginalMessageContext, TextPart, ToolPermission } from "./types";
4
4
  export { MESSAGE_STORAGE } from "./constants";
5
+ export { generatePartId } from "./id-generation";
@@ -19,6 +19,7 @@ export interface SDKMessage {
19
19
  };
20
20
  readonly providerID?: string;
21
21
  readonly modelID?: string;
22
+ readonly variant?: string;
22
23
  readonly tools?: Record<string, ToolPermission>;
23
24
  readonly time?: {
24
25
  readonly created?: number;
@@ -20,6 +20,8 @@ export declare function createKeywordDetectorHook(ctx: PluginInput, _collector?:
20
20
  [key: string]: unknown;
21
21
  }>;
22
22
  }) => Promise<void>;
23
+ clearSession: (sessionID: string) => void;
24
+ getSystemTransformGuidance: (sessionID: string, modelID?: string) => string | undefined;
23
25
  event: ({ event }: {
24
26
  event: {
25
27
  type: string;
@@ -15,6 +15,8 @@ export { ULTRAWORK_GPT_MESSAGE, getGptUltraworkMessage } from "./gpt";
15
15
  export { ULTRAWORK_GEMINI_MESSAGE, getGeminiUltraworkMessage } from "./gemini";
16
16
  export { ULTRAWORK_GLM_MESSAGE, getGlmUltraworkMessage } from "./glm";
17
17
  export { ULTRAWORK_DEFAULT_MESSAGE, getDefaultUltraworkMessage, } from "./default";
18
+ import { type UltraworkSource } from "./source-detector";
19
+ export declare function getUltraworkMessageForSource(source: UltraworkSource): string;
18
20
  /**
19
21
  * Gets the appropriate ultrawork message based on agent and model context.
20
22
  */
@@ -10,6 +10,7 @@ type MessageInfo = {
10
10
  };
11
11
  providerID?: string;
12
12
  modelID?: string;
13
+ variant?: string;
13
14
  tools?: Record<string, boolean | "allow" | "deny" | "ask">;
14
15
  };
15
16
  type MessagePart = {