oh-my-opencode 2.8.3 → 2.9.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.
@@ -15,3 +15,4 @@ export * from "./data-path";
15
15
  export * from "./config-errors";
16
16
  export * from "./claude-config-dir";
17
17
  export * from "./jsonc-parser";
18
+ export * from "./migration";
@@ -0,0 +1,11 @@
1
+ export declare const AGENT_NAME_MAP: Record<string, string>;
2
+ export declare const HOOK_NAME_MAP: Record<string, string>;
3
+ export declare function migrateAgentNames(agents: Record<string, unknown>): {
4
+ migrated: Record<string, unknown>;
5
+ changed: boolean;
6
+ };
7
+ export declare function migrateHookNames(hooks: string[]): {
8
+ migrated: string[];
9
+ changed: boolean;
10
+ };
11
+ export declare function migrateConfigFile(configPath: string, rawConfig: Record<string, unknown>): boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,7 @@
1
1
  export declare const OPENCODE_STORAGE: string;
2
2
  export declare const MESSAGE_STORAGE: string;
3
3
  export declare const PART_STORAGE: string;
4
+ export declare const SESSION_STORAGE: string;
4
5
  export declare const TODO_DIR: string;
5
6
  export declare const TRANSCRIPT_DIR: string;
6
7
  export declare const SESSION_LIST_DESCRIPTION = "List all OpenCode sessions with optional filtering.\n\nReturns a list of available session IDs with metadata including message count, date range, and agents used.\n\nArguments:\n- limit (optional): Maximum number of sessions to return\n- from_date (optional): Filter sessions from this date (ISO 8601 format)\n- to_date (optional): Filter sessions until this date (ISO 8601 format)\n\nExample output:\n| Session ID | Messages | First | Last | Agents |\n|------------|----------|-------|------|--------|\n| ses_abc123 | 45 | 2025-12-20 | 2025-12-24 | build, oracle |\n| ses_def456 | 12 | 2025-12-19 | 2025-12-19 | build |";
@@ -1,4 +1,8 @@
1
- import type { SessionMessage, SessionInfo, TodoItem } from "./types";
1
+ import type { SessionMessage, SessionInfo, TodoItem, SessionMetadata } from "./types";
2
+ export interface GetMainSessionsOptions {
3
+ directory?: string;
4
+ }
5
+ export declare function getMainSessions(options: GetMainSessionsOptions): Promise<SessionMetadata[]>;
2
6
  export declare function getAllSessions(): Promise<string[]>;
3
7
  export declare function getMessageDir(sessionID: string): string;
4
8
  export declare function sessionExists(sessionID: string): boolean;
@@ -44,11 +44,29 @@ export interface SearchResult {
44
44
  match_count: number;
45
45
  timestamp?: number;
46
46
  }
47
+ export interface SessionMetadata {
48
+ id: string;
49
+ version?: string;
50
+ projectID: string;
51
+ directory: string;
52
+ title?: string;
53
+ parentID?: string;
54
+ time: {
55
+ created: number;
56
+ updated: number;
57
+ };
58
+ summary?: {
59
+ additions: number;
60
+ deletions: number;
61
+ files: number;
62
+ };
63
+ }
47
64
  export interface SessionListArgs {
48
65
  limit?: number;
49
66
  offset?: number;
50
67
  from_date?: string;
51
68
  to_date?: string;
69
+ project_path?: string;
52
70
  }
53
71
  export interface SessionReadArgs {
54
72
  session_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode",
3
- "version": "2.8.3",
3
+ "version": "2.9.0",
4
4
  "description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",