oh-my-magento 0.3.8 → 0.3.10

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 (57) hide show
  1. package/README.md +8 -6
  2. package/dist/agents/dynamic-agent-core-sections.d.ts +7 -0
  3. package/dist/agents/dynamic-agent-prompt-builder.d.ts +1 -1
  4. package/dist/cli/config-manager/backup-config.d.ts +6 -0
  5. package/dist/cli/config-manager/version-compatibility.d.ts +9 -0
  6. package/dist/cli/config-manager.d.ts +4 -0
  7. package/dist/cli/doctor/constants.d.ts +1 -1
  8. package/dist/cli/index.js +1751 -603
  9. package/dist/cli/minimum-opencode-version.d.ts +1 -0
  10. package/dist/cli/model-fallback-types.d.ts +3 -0
  11. package/dist/cli/run/continuation-state.d.ts +2 -1
  12. package/dist/cli/types.d.ts +1 -0
  13. package/dist/create-managers.d.ts +14 -0
  14. package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +5 -2
  15. package/dist/features/boulder-state/storage.d.ts +8 -1
  16. package/dist/features/boulder-state/types.d.ts +1 -0
  17. package/dist/features/builtin-commands/templates/ralph-loop.d.ts +1 -1
  18. package/dist/features/claude-code-mcp-loader/env-expander.d.ts +5 -2
  19. package/dist/features/claude-code-plugin-loader/loader.d.ts +15 -0
  20. package/dist/features/claude-code-plugin-loader/scope-filter.d.ts +2 -0
  21. package/dist/features/claude-code-plugin-loader/types.d.ts +11 -0
  22. package/dist/features/claude-code-session-state/state.d.ts +1 -0
  23. package/dist/features/mcp-oauth/provider.d.ts +1 -0
  24. package/dist/features/mcp-oauth/refresh-mutex.d.ts +26 -0
  25. package/dist/features/skill-mcp-manager/error-redaction.d.ts +10 -0
  26. package/dist/features/skill-mcp-manager/oauth-handler.d.ts +7 -0
  27. package/dist/features/skill-mcp-manager/types.d.ts +3 -1
  28. package/dist/hooks/atlas/background-launch-session-tracking.d.ts +11 -0
  29. package/dist/hooks/atlas/boulder-continuation-injector.d.ts +2 -1
  30. package/dist/hooks/atlas/task-context.d.ts +7 -0
  31. package/dist/hooks/atlas/types.d.ts +2 -0
  32. package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
  33. package/dist/hooks/keyword-detector/hook.d.ts +2 -1
  34. package/dist/hooks/ralph-loop/constants.d.ts +1 -0
  35. package/dist/hooks/ralph-loop/oracle-verification-detector.d.ts +8 -0
  36. package/dist/hooks/read-image-resizer/png-fallback-resizer.d.ts +2 -0
  37. package/dist/hooks/runtime-fallback/auto-retry-signal.d.ts +4 -0
  38. package/dist/hooks/runtime-fallback/error-classifier.d.ts +1 -5
  39. package/dist/hooks/session-recovery/types.d.ts +2 -0
  40. package/dist/hooks/todo-continuation-enforcer/pending-question-detection.d.ts +1 -1
  41. package/dist/hooks/todo-continuation-enforcer/token-limit-detection.d.ts +4 -0
  42. package/dist/hooks/todo-continuation-enforcer/types.d.ts +7 -0
  43. package/dist/hooks/unstable-agent-babysitter/task-message-analyzer.d.ts +1 -0
  44. package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +2 -0
  45. package/dist/index.js +2496 -1254
  46. package/dist/plugin/chat-params.d.ts +1 -0
  47. package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -0
  48. package/dist/shared/agent-display-names.d.ts +10 -2
  49. package/dist/shared/compaction-marker.d.ts +12 -0
  50. package/dist/shared/index.d.ts +1 -0
  51. package/dist/shared/internal-initiator-marker.d.ts +1 -0
  52. package/dist/shared/plugin-identity.d.ts +4 -1
  53. package/dist/shared/session-prompt-params-state.d.ts +1 -0
  54. package/dist/tools/background-task/constants.d.ts +1 -1
  55. package/dist/tools/delegate-task/resolve-call-id.d.ts +2 -0
  56. package/package.json +19 -24
  57. package/postinstall.mjs +63 -1
package/README.md CHANGED
@@ -111,7 +111,7 @@ Fetch the installation guide and follow it:
111
111
  curl -s https://raw.githubusercontent.com/caravanglory/oh-my-magento/refs/heads/dev/docs/guide/installation.md
112
112
  ```
113
113
 
114
- **Note**: Use the published package and binary name `oh-my-magento`. Inside `opencode.json`, the compatibility layer now prefers the plugin entry `oh-my-openagent`, while legacy `oh-my-magento` entries still load with a warning. Plugin config files still commonly use `oh-my-magento.json` or `oh-my-magento.jsonc`, and both legacy and renamed basenames are recognized during the transition.
114
+ **Note**: Use the published package and binary name `oh-my-magento`. Inside `opencode.json`, the compatibility layer now prefers the plugin entry `oh-my-openagent`, while legacy `oh-my-magento` entries still load with a warning. Plugin config files use `oh-my-magento.json[c]` as the canonical basename; former `oh-my-magento.json[c]` and legacy `oh-my-openagent.json[c]` are also recognized during the transition.
115
115
 
116
116
  ---
117
117
 
@@ -288,12 +288,14 @@ To remove oh-my-magento:
288
288
 
289
289
  ```bash
290
290
  # Remove plugin config files recognized during the compatibility window
291
- rm -f ~/.config/opencode/oh-my-openagent.jsonc ~/.config/opencode/oh-my-openagent.json \
292
- ~/.config/opencode/oh-my-magento.jsonc ~/.config/opencode/oh-my-magento.json
291
+ rm -f ~/.config/opencode/oh-my-magento.jsonc ~/.config/opencode/oh-my-magento.json \
292
+ ~/.config/opencode/oh-my-magento.jsonc ~/.config/opencode/oh-my-magento.json \
293
+ ~/.config/opencode/oh-my-openagent.jsonc ~/.config/opencode/oh-my-openagent.json
293
294
 
294
295
  # Remove project config (if exists)
295
- rm -f .opencode/oh-my-openagent.jsonc .opencode/oh-my-openagent.json \
296
- .opencode/oh-my-magento.jsonc .opencode/oh-my-magento.json
296
+ rm -f .opencode/oh-my-magento.jsonc .opencode/oh-my-magento.json \
297
+ .opencode/oh-my-magento.jsonc .opencode/oh-my-magento.json \
298
+ .opencode/oh-my-openagent.jsonc .opencode/oh-my-openagent.json
297
299
  ```
298
300
 
299
301
  3. **Verify removal**
@@ -332,7 +334,7 @@ Opinionated defaults, adjustable if you insist.
332
334
  See [Configuration Documentation](docs/reference/configuration.md).
333
335
 
334
336
  **Quick Overview:**
335
- - **Config Locations**: The compatibility layer recognizes both `oh-my-openagent.json[c]` and legacy `oh-my-magento.json[c]` plugin config files. Existing installs still commonly use the legacy basename.
337
+ - **Config Locations**: The canonical config file is `oh-my-magento.json[c]`. The compatibility layer also recognizes former `oh-my-magento.json[c]` and legacy `oh-my-openagent.json[c]` basenames.
336
338
  - **JSONC Support**: Comments and trailing commas supported
337
339
  - **Agents**: Override models, temperatures, prompts, and permissions for any agent
338
340
  - **Built-in Skills**: `playwright` (browser automation), `git-master` (atomic commits)
@@ -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,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";
@@ -25,6 +25,6 @@ export declare const EXIT_CODES: {
25
25
  readonly SUCCESS: 0;
26
26
  readonly FAILURE: 1;
27
27
  };
28
- export declare const MIN_OPENCODE_VERSION = "1.0.150";
28
+ export declare const MIN_OPENCODE_VERSION = "1.4.0";
29
29
  export declare const PACKAGE_NAME: string;
30
30
  export declare const OPENCODE_BINARIES: readonly ["opencode", "opencode-desktop"];