oh-my-openagent 5.1.77 → 5.1.79

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 (63) hide show
  1. package/dist/agents/hephaestus/model-support.d.ts +1 -0
  2. package/dist/agents/native-prompt-frame.d.ts +9 -1
  3. package/dist/agents/refusal-rule.d.ts +4 -1
  4. package/dist/cli/index.js +624 -407
  5. package/dist/cli-node/index.js +624 -407
  6. package/dist/index.js +579 -339
  7. package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
  8. package/dist/tui.js +18 -14
  9. package/package.json +14 -14
  10. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  11. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  12. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  13. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  14. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  15. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  16. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  17. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  18. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  19. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
  20. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  21. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  22. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  23. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  24. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  25. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  26. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  27. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  28. package/packages/omo-codex/plugin/components/ultrawork/README.md +1 -1
  29. package/packages/omo-codex/plugin/components/ultrawork/agents/explorer.toml +1 -1
  30. package/packages/omo-codex/plugin/components/ultrawork/agents/librarian.toml +1 -1
  31. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  32. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  33. package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
  34. package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
  35. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
  36. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  37. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  38. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  39. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  40. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  41. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  42. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  43. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  44. package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
  45. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  46. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  47. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  48. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  49. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  50. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  51. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  52. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
  53. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  54. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  55. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  56. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  57. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  58. package/packages/omo-codex/plugin/package-lock.json +12 -12
  59. package/packages/omo-codex/plugin/package.json +1 -1
  60. package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
  61. package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +2 -2
  62. package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
  63. package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
@@ -3,4 +3,5 @@ export declare class UnsupportedHephaestusModelError extends Error {
3
3
  constructor(model: string | undefined);
4
4
  }
5
5
  export declare function isHephaestusSupportedModel(model: string | undefined): boolean;
6
+ export declare function isStandaloneHephaestusPreset(preset: string | undefined): boolean;
6
7
  export declare function assertHephaestusSupportedModel(model: string | undefined): void;
@@ -14,7 +14,15 @@ export declare const NativePromptContext: z.ZodObject<{
14
14
  }, z.core.$strip>>>;
15
15
  restriction: z.ZodOptional<z.ZodLiteral<"hephaestus">>;
16
16
  useTaskSystem: z.ZodOptional<z.ZodBoolean>;
17
+ refusalRule: z.ZodOptional<z.ZodLiteral<true>>;
18
+ role: z.ZodOptional<z.ZodString>;
19
+ standalone: z.ZodOptional<z.ZodLiteral<true>>;
17
20
  }, z.core.$strip>;
18
21
  export type NativePromptContext = z.infer<typeof NativePromptContext>;
22
+ /** A rendered agent prompt: the frame, and the role text that follows it ("" when nothing does). */
23
+ export type NativePromptParts = {
24
+ readonly frame: string;
25
+ readonly role: string;
26
+ };
19
27
  export declare function frameNativePrompt(body: string, context: NativePromptContext): string;
20
- export declare function replaceNativePromptFrames(system: string[], model: string | undefined, render: (context: NativePromptContext) => string | undefined, refreshTools?: boolean): void;
28
+ export declare function replaceNativePromptFrames(system: string[], model: string | undefined, render: (context: NativePromptContext) => NativePromptParts | undefined, refreshTools?: boolean): void;
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * The rule every agent prompt carries about refusals: a permission denial or a user's refusal is final for
3
3
  * what the refused call was meant to do, so no prompt's "try another approach" advice applies to it.
4
- * Appended centrally by each agent's prompt builder, so every model route carries it.
4
+ * Each agent's prompt builder appends it to the role. A framed prompt then states it once in the frame (the model
5
+ * core's own copy, or this one right after the core), so every model route carries it exactly once.
5
6
  */
6
7
  export declare const REFUSAL_IS_FINAL_RULE = "A permission denial or a refusal by the user is not a blocker to work around: it is final for what that call was meant to do. Never reach that result with another tool, command, path or host; ask the user.";
7
8
  export declare function withRefusalRule(prompt: string): string;
9
+ /** The prompt without the copy `withRefusalRule` appended: a framed prompt states the rule in its frame instead. */
10
+ export declare function withoutRefusalRule(prompt: string): string;