@turtton/oh-my-openagent 3.15.2-copilot.1 → 3.17.0-copilot.1

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 (93) hide show
  1. package/dist/agents/dynamic-agent-core-sections.d.ts +7 -0
  2. package/dist/agents/dynamic-agent-prompt-builder.d.ts +1 -1
  3. package/dist/agents/gpt-apply-patch-guard.d.ts +2 -0
  4. package/dist/agents/hephaestus/gpt-5-3-codex.d.ts +0 -1
  5. package/dist/agents/hephaestus/gpt-5-4.d.ts +22 -1
  6. package/dist/cli/config-manager/backup-config.d.ts +6 -0
  7. package/dist/cli/config-manager/version-compatibility.d.ts +9 -0
  8. package/dist/cli/config-manager.d.ts +4 -0
  9. package/dist/cli/doctor/checks/system.d.ts +15 -2
  10. package/dist/cli/doctor/constants.d.ts +2 -2
  11. package/dist/cli/index.js +7307 -1212
  12. package/dist/cli/minimum-opencode-version.d.ts +1 -0
  13. package/dist/cli/model-fallback-types.d.ts +3 -0
  14. package/dist/cli/run/continuation-state.d.ts +2 -1
  15. package/dist/cli/types.d.ts +1 -0
  16. package/dist/create-managers.d.ts +14 -0
  17. package/dist/create-runtime-tmux-config.d.ts +1 -0
  18. package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +5 -2
  19. package/dist/features/background-agent/spawner.d.ts +3 -0
  20. package/dist/features/boulder-state/storage.d.ts +8 -1
  21. package/dist/features/boulder-state/types.d.ts +1 -0
  22. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +1 -1
  23. package/dist/features/claude-code-mcp-loader/env-expander.d.ts +5 -2
  24. package/dist/features/claude-code-plugin-loader/discovery.d.ts +2 -1
  25. package/dist/features/claude-code-plugin-loader/loader.d.ts +16 -0
  26. package/dist/features/claude-code-plugin-loader/scope-filter.d.ts +2 -0
  27. package/dist/features/claude-code-plugin-loader/types.d.ts +21 -0
  28. package/dist/features/claude-code-session-state/state.d.ts +1 -0
  29. package/dist/features/mcp-oauth/provider.d.ts +1 -0
  30. package/dist/features/mcp-oauth/refresh-mutex.d.ts +26 -0
  31. package/dist/features/skill-mcp-manager/connection.d.ts +3 -4
  32. package/dist/features/skill-mcp-manager/error-redaction.d.ts +10 -0
  33. package/dist/features/skill-mcp-manager/http-client.d.ts +17 -3
  34. package/dist/features/skill-mcp-manager/manager.d.ts +2 -3
  35. package/dist/features/skill-mcp-manager/oauth-handler.d.ts +7 -0
  36. package/dist/features/skill-mcp-manager/stdio-client.d.ts +16 -3
  37. package/dist/features/skill-mcp-manager/types.d.ts +19 -7
  38. package/dist/features/tmux-subagent/manager.d.ts +1 -0
  39. package/dist/hooks/atlas/background-launch-session-tracking.d.ts +11 -0
  40. package/dist/hooks/atlas/boulder-continuation-injector.d.ts +2 -1
  41. package/dist/hooks/atlas/session-last-agent.d.ts +10 -1
  42. package/dist/hooks/atlas/task-context.d.ts +7 -0
  43. package/dist/hooks/atlas/types.d.ts +2 -0
  44. package/dist/hooks/auto-update-checker/constants.d.ts +20 -5
  45. package/dist/hooks/auto-update-checker/hook.d.ts +22 -1
  46. package/dist/hooks/comment-checker/cli-runner.d.ts +4 -1
  47. package/dist/hooks/keyword-detector/hook.d.ts +2 -1
  48. package/dist/hooks/ralph-loop/constants.d.ts +1 -0
  49. package/dist/hooks/ralph-loop/oracle-verification-detector.d.ts +8 -0
  50. package/dist/hooks/read-image-resizer/image-resizer.d.ts +3 -1
  51. package/dist/hooks/read-image-resizer/png-fallback-resizer.d.ts +2 -0
  52. package/dist/hooks/rules-injector/injector.d.ts +12 -0
  53. package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +4 -0
  54. package/dist/hooks/runtime-fallback/error-classifier.d.ts +1 -5
  55. package/dist/hooks/session-recovery/types.d.ts +2 -0
  56. package/dist/hooks/todo-continuation-enforcer/pending-question-detection.d.ts +1 -1
  57. package/dist/hooks/todo-continuation-enforcer/token-limit-detection.d.ts +4 -0
  58. package/dist/hooks/todo-continuation-enforcer/types.d.ts +7 -0
  59. package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +1 -0
  60. package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +2 -0
  61. package/dist/index.js +9875 -2165
  62. package/dist/openclaw/dispatcher.d.ts +3 -12
  63. package/dist/openclaw/reply-listener-discord.d.ts +4 -0
  64. package/dist/openclaw/reply-listener-injection.d.ts +10 -0
  65. package/dist/openclaw/reply-listener-log.d.ts +2 -0
  66. package/dist/openclaw/reply-listener-paths.d.ts +7 -0
  67. package/dist/openclaw/reply-listener-process.d.ts +4 -0
  68. package/dist/openclaw/reply-listener-spawn.d.ts +5 -0
  69. package/dist/openclaw/reply-listener-startup.d.ts +12 -0
  70. package/dist/openclaw/reply-listener-state.d.ts +29 -0
  71. package/dist/openclaw/reply-listener-telegram.d.ts +4 -0
  72. package/dist/openclaw/reply-listener.d.ts +5 -18
  73. package/dist/openclaw/runtime-dispatch.d.ts +17 -0
  74. package/dist/openclaw/types.d.ts +4 -0
  75. package/dist/plugin/chat-params.d.ts +1 -0
  76. package/dist/plugin/command-execute-before.d.ts +3 -1
  77. package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -0
  78. package/dist/plugin/tool-registry.d.ts +24 -0
  79. package/dist/plugin-handlers/agent-priority-order.d.ts +11 -0
  80. package/dist/shared/agent-display-names.d.ts +15 -2
  81. package/dist/shared/compaction-marker.d.ts +13 -0
  82. package/dist/shared/index.d.ts +1 -0
  83. package/dist/shared/internal-initiator-marker.d.ts +1 -0
  84. package/dist/shared/migration/migrations-sidecar.d.ts +41 -0
  85. package/dist/shared/plugin-identity.d.ts +2 -0
  86. package/dist/shared/posthog-activity-state.d.ts +8 -0
  87. package/dist/shared/posthog.d.ts +14 -0
  88. package/dist/shared/session-prompt-params-state.d.ts +1 -0
  89. package/dist/shared/shell-env.d.ts +6 -2
  90. package/dist/testing/module-mock-lifecycle.d.ts +21 -0
  91. package/dist/tools/delegate-task/resolve-call-id.d.ts +2 -0
  92. package/dist/tools/session-manager/tools.d.ts +19 -1
  93. package/package.json +6 -5
@@ -1,5 +1,12 @@
1
1
  import type { AvailableAgent, AvailableCategory, AvailableSkill } from "./dynamic-agent-prompt-types";
2
2
  import type { AvailableTool } from "./dynamic-agent-prompt-types";
3
+ /**
4
+ * Builds an explicit agent identity preamble that overrides any base system prompt identity.
5
+ * This is critical for mode: "primary" agents where OpenCode prepends its own system prompt
6
+ * containing a default identity (e.g., "You are Claude"). Without this override directive,
7
+ * the LLM may default to the base identity instead of the agent's intended persona.
8
+ */
9
+ export declare function buildAgentIdentitySection(agentName: string, roleDescription: string): string;
3
10
  export declare function buildKeyTriggersSection(agents: AvailableAgent[], _skills?: AvailableSkill[]): string;
4
11
  export declare function buildToolSelectionTable(agents: AvailableAgent[], tools?: AvailableTool[], _skills?: AvailableSkill[]): string;
5
12
  export declare function buildExploreSection(agents: AvailableAgent[]): string;
@@ -1,5 +1,5 @@
1
1
  export type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory, } from "./dynamic-agent-prompt-types";
2
2
  export { categorizeTools } from "./dynamic-agent-tool-categorization";
3
- export { buildKeyTriggersSection, buildToolSelectionTable, buildExploreSection, buildLibrarianSection, buildDelegationTable, buildOracleSection, buildNonClaudePlannerSection, buildParallelDelegationSection, } from "./dynamic-agent-core-sections";
3
+ export { buildAgentIdentitySection, buildKeyTriggersSection, buildToolSelectionTable, buildExploreSection, buildLibrarianSection, buildDelegationTable, buildOracleSection, buildNonClaudePlannerSection, buildParallelDelegationSection, } from "./dynamic-agent-core-sections";
4
4
  export { buildCategorySkillsDelegationGuide } from "./dynamic-agent-category-skills-guide";
5
5
  export { buildHardBlocksSection, buildAntiPatternsSection, buildToolCallFormatSection, buildUltraworkSection, buildAntiDuplicationSection, } from "./dynamic-agent-policy-sections";
@@ -0,0 +1,2 @@
1
+ export declare const GPT_APPLY_PATCH_GUIDANCE = "Use the `edit` and `write` tools for file changes. Do not use `apply_patch` on GPT models - it is unreliable here and can hang during verification.";
2
+ export declare function getGptApplyPatchPermission(model: string): Record<string, "deny">;
@@ -1,4 +1,3 @@
1
- /** GPT-5.3 Codex optimized Hephaestus prompt */
2
1
  import type { AgentConfig } from "@opencode-ai/sdk";
3
2
  import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
4
3
  /**
@@ -1,3 +1,24 @@
1
- /** GPT-5.4 optimized Hephaestus prompt */
1
+ /**
2
+ * GPT-5.4 optimized Hephaestus prompt - entropy-reduced rewrite.
3
+ *
4
+ * Design principles (aligned with OpenAI GPT-5.4 prompting guidance):
5
+ * - Personality/tone at position 1 for strong tonal priming
6
+ * - Prose-based instructions; no FORBIDDEN/MUST/NEVER rhetoric
7
+ * - 3 targeted prompt blocks: tool_persistence, dig_deeper, dependency_checks
8
+ * - GPT-5.4 follows instructions well - trust it, fewer threats needed
9
+ * - Conflicts eliminated: no "every 30s" + "be concise" contradiction
10
+ * - Each concern appears in exactly one section
11
+ *
12
+ * Architecture (XML-tagged blocks, consistent with Sisyphus GPT-5.4):
13
+ * 1. <identity> - Role, personality/tone, autonomy, scope
14
+ * 2. <intent> - Intent mapping, complexity classification, ambiguity protocol
15
+ * 3. <explore> - Tool selection, tool_persistence, dig_deeper, dependency_checks, parallelism
16
+ * 4. <constraints> - Hard blocks + anti-patterns (after explore, before execution)
17
+ * 5. <execution> - 5-step workflow, verification, failure recovery, completion check
18
+ * 6. <tracking> - Todo/task discipline
19
+ * 7. <progress> - Update style with examples
20
+ * 8. <delegation> - Category+skills, prompt structure, session continuity, oracle
21
+ * 9. <communication> - Output format, tone guidance
22
+ */
2
23
  import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
3
24
  export declare function buildHephaestusPrompt(availableAgents?: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
@@ -0,0 +1,6 @@
1
+ export interface BackupResult {
2
+ success: boolean;
3
+ backupPath?: string;
4
+ error?: string;
5
+ }
6
+ export declare function backupConfigFile(configPath: string): BackupResult;
@@ -0,0 +1,9 @@
1
+ export interface VersionCompatibility {
2
+ canUpgrade: boolean;
3
+ reason?: string;
4
+ isDowngrade: boolean;
5
+ isMajorBump: boolean;
6
+ requiresMigration: boolean;
7
+ }
8
+ export declare function checkVersionCompatibility(currentVersion: string | null, newVersion: string): VersionCompatibility;
9
+ export declare function extractVersionFromPluginEntry(entry: string): string | null;
@@ -9,3 +9,7 @@ export { isOpenCodeInstalled, getOpenCodeVersion } from "./config-manager/openco
9
9
  export { detectCurrentConfig } from "./config-manager/detect-current-config";
10
10
  export type { BunInstallResult } from "./config-manager/bun-install";
11
11
  export { runBunInstall, runBunInstallWithDetails } from "./config-manager/bun-install";
12
+ export type { VersionCompatibility } from "./config-manager/version-compatibility";
13
+ export { checkVersionCompatibility, extractVersionFromPluginEntry, } from "./config-manager/version-compatibility";
14
+ export type { BackupResult } from "./config-manager/backup-config";
15
+ export { backupConfigFile } from "./config-manager/backup-config";
@@ -1,3 +1,16 @@
1
1
  import type { CheckResult, SystemInfo } from "../types";
2
- export declare function gatherSystemInfo(): Promise<SystemInfo>;
3
- export declare function checkSystem(): Promise<CheckResult>;
2
+ import { findOpenCodeBinary, getOpenCodeVersion, compareVersions } from "./system-binary";
3
+ import { getPluginInfo } from "./system-plugin";
4
+ import { getLatestPluginVersion, getLoadedPluginVersion, getSuggestedInstallTag } from "./system-loaded-version";
5
+ interface SystemCheckDeps {
6
+ findOpenCodeBinary: typeof findOpenCodeBinary;
7
+ getOpenCodeVersion: typeof getOpenCodeVersion;
8
+ compareVersions: typeof compareVersions;
9
+ getPluginInfo: typeof getPluginInfo;
10
+ getLoadedPluginVersion: typeof getLoadedPluginVersion;
11
+ getLatestPluginVersion: typeof getLatestPluginVersion;
12
+ getSuggestedInstallTag: typeof getSuggestedInstallTag;
13
+ }
14
+ export declare function gatherSystemInfo(deps?: SystemCheckDeps): Promise<SystemInfo>;
15
+ export declare function checkSystem(deps?: SystemCheckDeps): Promise<CheckResult>;
16
+ export {};
@@ -24,6 +24,6 @@ export declare const EXIT_CODES: {
24
24
  readonly SUCCESS: 0;
25
25
  readonly FAILURE: 1;
26
26
  };
27
- export declare const MIN_OPENCODE_VERSION = "1.0.150";
28
- export declare const PACKAGE_NAME = "oh-my-openagent";
27
+ export declare const MIN_OPENCODE_VERSION = "1.4.0";
28
+ export declare const PACKAGE_NAME = "oh-my-opencode";
29
29
  export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];