oh-my-opencode 3.15.3 → 3.16.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.
- package/dist/agents/dynamic-agent-core-sections.d.ts +7 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +1 -1
- package/dist/cli/config-manager/backup-config.d.ts +6 -0
- package/dist/cli/config-manager/version-compatibility.d.ts +9 -0
- package/dist/cli/config-manager.d.ts +4 -0
- package/dist/cli/doctor/constants.d.ts +1 -1
- package/dist/cli/index.js +1421 -533
- package/dist/cli/minimum-opencode-version.d.ts +1 -0
- package/dist/cli/model-fallback-types.d.ts +3 -0
- package/dist/cli/types.d.ts +1 -0
- package/dist/create-managers.d.ts +14 -0
- package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +5 -2
- package/dist/features/boulder-state/storage.d.ts +7 -0
- package/dist/features/builtin-commands/templates/ralph-loop.d.ts +1 -1
- package/dist/features/claude-code-mcp-loader/env-expander.d.ts +5 -2
- package/dist/features/claude-code-plugin-loader/loader.d.ts +15 -0
- package/dist/features/claude-code-plugin-loader/scope-filter.d.ts +2 -0
- package/dist/features/claude-code-plugin-loader/types.d.ts +11 -0
- package/dist/features/claude-code-session-state/state.d.ts +1 -0
- package/dist/features/mcp-oauth/provider.d.ts +1 -0
- package/dist/features/mcp-oauth/refresh-mutex.d.ts +26 -0
- package/dist/features/skill-mcp-manager/error-redaction.d.ts +10 -0
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +7 -0
- package/dist/features/skill-mcp-manager/types.d.ts +3 -1
- package/dist/hooks/atlas/types.d.ts +1 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
- package/dist/hooks/keyword-detector/hook.d.ts +2 -1
- package/dist/hooks/ralph-loop/constants.d.ts +1 -0
- package/dist/hooks/ralph-loop/oracle-verification-detector.d.ts +8 -0
- package/dist/hooks/read-image-resizer/png-fallback-resizer.d.ts +2 -0
- package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +4 -0
- package/dist/hooks/runtime-fallback/error-classifier.d.ts +1 -5
- package/dist/hooks/session-recovery/types.d.ts +2 -0
- package/dist/hooks/todo-continuation-enforcer/pending-question-detection.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/token-limit-detection.d.ts +4 -0
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +7 -0
- package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +1 -0
- package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +2 -0
- package/dist/index.js +1957 -1020
- package/dist/plugin/chat-params.d.ts +1 -0
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -0
- package/dist/shared/agent-display-names.d.ts +9 -2
- package/dist/shared/compaction-marker.d.ts +12 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/internal-initiator-marker.d.ts +1 -0
- package/dist/shared/session-prompt-params-state.d.ts +1 -0
- package/dist/tools/background-task/constants.d.ts +1 -1
- package/package.json +16 -18
- package/postinstall.mjs +63 -1
|
@@ -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,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";
|
|
@@ -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
|
|
27
|
+
export declare const MIN_OPENCODE_VERSION = "1.4.0";
|
|
28
28
|
export declare const PACKAGE_NAME = "oh-my-openagent";
|
|
29
29
|
export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];
|