@wolfx/oh-my-openagent 3.17.6 → 3.17.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.
- package/dist/features/background-agent/attempt-lifecycle.d.ts +12 -0
- package/dist/features/background-agent/background-task-notification-template.d.ts +2 -1
- package/dist/features/background-agent/constants.d.ts +1 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +8 -0
- package/dist/features/background-agent/manager.d.ts +9 -0
- package/dist/features/background-agent/types.d.ts +24 -0
- package/dist/features/team-mode/types.d.ts +1 -1
- package/dist/hooks/auto-update-checker/hook/background-update-check.d.ts +1 -1
- package/dist/hooks/model-fallback/controller-accessor.d.ts +1 -0
- package/dist/hooks/model-fallback/fallback-state-controller.d.ts +1 -0
- package/dist/hooks/model-fallback/hook.d.ts +2 -1
- package/dist/hooks/preemptive-compaction-degradation-monitor.d.ts +1 -0
- package/dist/hooks/preemptive-compaction-no-text-tail.d.ts +1 -0
- package/dist/index.js +1433 -5528
- package/dist/plugin/event.d.ts +1 -0
- package/dist/{cli/config-manager → shared}/config-context.d.ts +1 -1
- package/dist/shared/dynamic-truncator.d.ts +9 -10
- package/dist/shared/model-error-classifier.d.ts +2 -2
- package/dist/tools/background-task/clients.d.ts +1 -0
- package/dist/tools/delegate-task/builtin-categories.d.ts +1 -0
- package/dist/tools/delegate-task/builtin-category-definition.d.ts +1 -0
- package/dist/tools/delegate-task/constants.d.ts +1 -1
- package/dist/tools/delegate-task/executor-types.d.ts +1 -0
- package/dist/tools/delegate-task/openai-categories.d.ts +3 -0
- package/dist/tools/delegate-task/sync-task-fallback.d.ts +3 -0
- package/package.json +8 -8
- package/dist/cli/cli-installer.d.ts +0 -2
- package/dist/cli/cli-program.d.ts +0 -1
- package/dist/cli/config-manager/add-plugin-to-opencode-config.d.ts +0 -2
- package/dist/cli/config-manager/backup-config.d.ts +0 -6
- package/dist/cli/config-manager/deep-merge-record.d.ts +0 -1
- package/dist/cli/config-manager/detect-current-config.d.ts +0 -2
- package/dist/cli/config-manager/ensure-config-directory-exists.d.ts +0 -1
- package/dist/cli/config-manager/format-error-with-suggestion.d.ts +0 -1
- package/dist/cli/config-manager/generate-omo-config.d.ts +0 -2
- package/dist/cli/config-manager/npm-dist-tags.d.ts +0 -7
- package/dist/cli/config-manager/opencode-binary.d.ts +0 -2
- package/dist/cli/config-manager/opencode-config-format.d.ts +0 -5
- package/dist/cli/config-manager/parse-opencode-config-file.d.ts +0 -10
- package/dist/cli/config-manager/plugin-name-with-version.d.ts +0 -1
- package/dist/cli/config-manager/version-compatibility.d.ts +0 -9
- package/dist/cli/config-manager/write-omo-config.d.ts +0 -2
- package/dist/cli/config-manager.d.ts +0 -15
- package/dist/cli/doctor/checks/config.d.ts +0 -2
- package/dist/cli/doctor/checks/dependencies.d.ts +0 -4
- package/dist/cli/doctor/checks/index.d.ts +0 -7
- package/dist/cli/doctor/checks/model-resolution-cache.d.ts +0 -2
- package/dist/cli/doctor/checks/model-resolution-config.d.ts +0 -2
- package/dist/cli/doctor/checks/model-resolution-details.d.ts +0 -6
- package/dist/cli/doctor/checks/model-resolution-effective-model.d.ts +0 -3
- package/dist/cli/doctor/checks/model-resolution-types.d.ts +0 -40
- package/dist/cli/doctor/checks/model-resolution-variant.d.ts +0 -5
- package/dist/cli/doctor/checks/model-resolution.d.ts +0 -11
- package/dist/cli/doctor/checks/system-binary.d.ts +0 -13
- package/dist/cli/doctor/checks/system-loaded-version.d.ts +0 -10
- package/dist/cli/doctor/checks/system-plugin.d.ts +0 -15
- package/dist/cli/doctor/checks/system.d.ts +0 -16
- package/dist/cli/doctor/checks/tools-gh.d.ts +0 -10
- package/dist/cli/doctor/checks/tools-lsp.d.ts +0 -4
- package/dist/cli/doctor/checks/tools-mcp.d.ts +0 -3
- package/dist/cli/doctor/checks/tools.d.ts +0 -3
- package/dist/cli/doctor/constants.d.ts +0 -29
- package/dist/cli/doctor/format-default.d.ts +0 -2
- package/dist/cli/doctor/format-shared.d.ts +0 -6
- package/dist/cli/doctor/format-status.d.ts +0 -2
- package/dist/cli/doctor/format-verbose.d.ts +0 -2
- package/dist/cli/doctor/formatter.d.ts +0 -3
- package/dist/cli/doctor/index.d.ts +0 -5
- package/dist/cli/doctor/runner.d.ts +0 -5
- package/dist/cli/doctor/spawn-with-timeout.d.ts +0 -8
- package/dist/cli/doctor/types.d.ts +0 -120
- package/dist/cli/fallback-chain-resolution.d.ts +0 -10
- package/dist/cli/get-local-version/formatter.d.ts +0 -3
- package/dist/cli/get-local-version/get-local-version.d.ts +0 -2
- package/dist/cli/get-local-version/index.d.ts +0 -2
- package/dist/cli/get-local-version/types.d.ts +0 -13
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/install-validators.d.ts +0 -34
- package/dist/cli/install.d.ts +0 -2
- package/dist/cli/mcp-oauth/index.d.ts +0 -6
- package/dist/cli/mcp-oauth/login.d.ts +0 -11
- package/dist/cli/mcp-oauth/logout.d.ts +0 -4
- package/dist/cli/mcp-oauth/status.d.ts +0 -1
- package/dist/cli/minimum-opencode-version.d.ts +0 -1
- package/dist/cli/model-fallback-requirements.d.ts +0 -3
- package/dist/cli/model-fallback-types.d.ts +0 -31
- package/dist/cli/model-fallback.d.ts +0 -5
- package/dist/cli/openai-only-model-catalog.d.ts +0 -3
- package/dist/cli/provider-availability.d.ts +0 -4
- package/dist/cli/provider-model-id-transform.d.ts +0 -1
- package/dist/cli/refresh-model-capabilities.d.ts +0 -15
- package/dist/cli/run/agent-profile-colors.d.ts +0 -2
- package/dist/cli/run/agent-resolver.d.ts +0 -5
- package/dist/cli/run/completion.d.ts +0 -2
- package/dist/cli/run/continuation-state.d.ts +0 -10
- package/dist/cli/run/display-chars.d.ts +0 -5
- package/dist/cli/run/event-formatting.d.ts +0 -3
- package/dist/cli/run/event-handlers.d.ts +0 -11
- package/dist/cli/run/event-state.d.ts +0 -47
- package/dist/cli/run/event-stream-processor.d.ts +0 -3
- package/dist/cli/run/events.d.ts +0 -4
- package/dist/cli/run/index.d.ts +0 -10
- package/dist/cli/run/json-output.d.ts +0 -12
- package/dist/cli/run/model-resolver.d.ts +0 -4
- package/dist/cli/run/on-complete-hook.d.ts +0 -7
- package/dist/cli/run/opencode-binary-resolver.d.ts +0 -5
- package/dist/cli/run/output-renderer.d.ts +0 -7
- package/dist/cli/run/poll-for-completion.d.ts +0 -10
- package/dist/cli/run/runner.d.ts +0 -5
- package/dist/cli/run/server-connection.d.ts +0 -6
- package/dist/cli/run/session-resolver.d.ts +0 -6
- package/dist/cli/run/stdin-suppression.d.ts +0 -12
- package/dist/cli/run/timestamp-output.d.ts +0 -5
- package/dist/cli/run/tool-input-preview.d.ts +0 -6
- package/dist/cli/run/types.d.ts +0 -131
- package/dist/cli/tui-install-prompts.d.ts +0 -2
- package/dist/cli/tui-installer.d.ts +0 -2
- package/dist/cli/types.d.ts +0 -46
- package/dist/shared/posthog-activity-state.d.ts +0 -11
- package/dist/shared/posthog.d.ts +0 -19
- /package/dist/{cli/config-manager → shared}/bun-install.d.ts +0 -0
package/dist/cli/run/types.d.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import type { OpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
-
export type { OpencodeClient };
|
|
3
|
-
export interface RunOptions {
|
|
4
|
-
message: string;
|
|
5
|
-
agent?: string;
|
|
6
|
-
model?: string;
|
|
7
|
-
timestamp?: boolean;
|
|
8
|
-
verbose?: boolean;
|
|
9
|
-
directory?: string;
|
|
10
|
-
port?: number;
|
|
11
|
-
attach?: string;
|
|
12
|
-
onComplete?: string;
|
|
13
|
-
json?: boolean;
|
|
14
|
-
sessionId?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ServerConnection {
|
|
17
|
-
client: OpencodeClient;
|
|
18
|
-
cleanup: () => void;
|
|
19
|
-
}
|
|
20
|
-
export interface RunResult {
|
|
21
|
-
sessionId: string;
|
|
22
|
-
success: boolean;
|
|
23
|
-
durationMs: number;
|
|
24
|
-
messageCount: number;
|
|
25
|
-
summary: string;
|
|
26
|
-
}
|
|
27
|
-
export interface RunContext {
|
|
28
|
-
client: OpencodeClient;
|
|
29
|
-
sessionID: string;
|
|
30
|
-
directory: string;
|
|
31
|
-
abortController: AbortController;
|
|
32
|
-
verbose?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export interface Todo {
|
|
35
|
-
id?: string;
|
|
36
|
-
content: string;
|
|
37
|
-
status: string;
|
|
38
|
-
priority: string;
|
|
39
|
-
}
|
|
40
|
-
export interface SessionStatus {
|
|
41
|
-
type: "idle" | "busy" | "retry";
|
|
42
|
-
}
|
|
43
|
-
export interface ChildSession {
|
|
44
|
-
id: string;
|
|
45
|
-
}
|
|
46
|
-
export interface EventPayload {
|
|
47
|
-
type: string;
|
|
48
|
-
properties?: Record<string, unknown>;
|
|
49
|
-
}
|
|
50
|
-
export interface SessionIdleProps {
|
|
51
|
-
sessionID?: string;
|
|
52
|
-
sessionId?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface SessionStatusProps {
|
|
55
|
-
sessionID?: string;
|
|
56
|
-
sessionId?: string;
|
|
57
|
-
status?: {
|
|
58
|
-
type?: string;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export interface MessageUpdatedProps {
|
|
62
|
-
info?: {
|
|
63
|
-
id?: string;
|
|
64
|
-
sessionID?: string;
|
|
65
|
-
sessionId?: string;
|
|
66
|
-
role?: string;
|
|
67
|
-
modelID?: string;
|
|
68
|
-
providerID?: string;
|
|
69
|
-
agent?: string;
|
|
70
|
-
variant?: string;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
export interface MessagePartUpdatedProps {
|
|
74
|
-
info?: {
|
|
75
|
-
sessionID?: string;
|
|
76
|
-
sessionId?: string;
|
|
77
|
-
role?: string;
|
|
78
|
-
};
|
|
79
|
-
part?: {
|
|
80
|
-
id?: string;
|
|
81
|
-
sessionID?: string;
|
|
82
|
-
sessionId?: string;
|
|
83
|
-
messageID?: string;
|
|
84
|
-
type?: string;
|
|
85
|
-
text?: string;
|
|
86
|
-
/** Tool name (for part.type === "tool") */
|
|
87
|
-
tool?: string;
|
|
88
|
-
/** Tool state (for part.type === "tool") */
|
|
89
|
-
state?: {
|
|
90
|
-
status?: string;
|
|
91
|
-
input?: Record<string, unknown>;
|
|
92
|
-
output?: string;
|
|
93
|
-
};
|
|
94
|
-
name?: string;
|
|
95
|
-
input?: unknown;
|
|
96
|
-
time?: {
|
|
97
|
-
start?: number;
|
|
98
|
-
end?: number;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
export interface MessagePartDeltaProps {
|
|
103
|
-
sessionID?: string;
|
|
104
|
-
sessionId?: string;
|
|
105
|
-
messageID?: string;
|
|
106
|
-
partID?: string;
|
|
107
|
-
field?: string;
|
|
108
|
-
delta?: string;
|
|
109
|
-
}
|
|
110
|
-
export interface ToolExecuteProps {
|
|
111
|
-
sessionID?: string;
|
|
112
|
-
sessionId?: string;
|
|
113
|
-
name?: string;
|
|
114
|
-
input?: Record<string, unknown>;
|
|
115
|
-
}
|
|
116
|
-
export interface ToolResultProps {
|
|
117
|
-
sessionID?: string;
|
|
118
|
-
sessionId?: string;
|
|
119
|
-
name?: string;
|
|
120
|
-
output?: string;
|
|
121
|
-
}
|
|
122
|
-
export interface SessionErrorProps {
|
|
123
|
-
sessionID?: string;
|
|
124
|
-
sessionId?: string;
|
|
125
|
-
error?: unknown;
|
|
126
|
-
}
|
|
127
|
-
export interface TuiToastShowProps {
|
|
128
|
-
title?: string;
|
|
129
|
-
message?: string;
|
|
130
|
-
variant?: "info" | "success" | "warning" | "error";
|
|
131
|
-
}
|
package/dist/cli/types.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export type ClaudeSubscription = "no" | "yes" | "max20";
|
|
2
|
-
export type BooleanArg = "no" | "yes";
|
|
3
|
-
export interface InstallArgs {
|
|
4
|
-
tui: boolean;
|
|
5
|
-
claude?: ClaudeSubscription;
|
|
6
|
-
openai?: BooleanArg;
|
|
7
|
-
gemini?: BooleanArg;
|
|
8
|
-
copilot?: BooleanArg;
|
|
9
|
-
opencodeZen?: BooleanArg;
|
|
10
|
-
zaiCodingPlan?: BooleanArg;
|
|
11
|
-
kimiForCoding?: BooleanArg;
|
|
12
|
-
opencodeGo?: BooleanArg;
|
|
13
|
-
vercelAiGateway?: BooleanArg;
|
|
14
|
-
skipAuth?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface InstallConfig {
|
|
17
|
-
hasClaude: boolean;
|
|
18
|
-
isMax20: boolean;
|
|
19
|
-
hasOpenAI: boolean;
|
|
20
|
-
hasGemini: boolean;
|
|
21
|
-
hasCopilot: boolean;
|
|
22
|
-
hasOpencodeZen: boolean;
|
|
23
|
-
hasZaiCodingPlan: boolean;
|
|
24
|
-
hasKimiForCoding: boolean;
|
|
25
|
-
hasOpencodeGo: boolean;
|
|
26
|
-
hasVercelAiGateway: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface ConfigMergeResult {
|
|
29
|
-
success: boolean;
|
|
30
|
-
configPath: string;
|
|
31
|
-
error?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface DetectedConfig {
|
|
34
|
-
isInstalled: boolean;
|
|
35
|
-
installedVersion: string | null;
|
|
36
|
-
hasClaude: boolean;
|
|
37
|
-
isMax20: boolean;
|
|
38
|
-
hasOpenAI: boolean;
|
|
39
|
-
hasGemini: boolean;
|
|
40
|
-
hasCopilot: boolean;
|
|
41
|
-
hasOpencodeZen: boolean;
|
|
42
|
-
hasZaiCodingPlan: boolean;
|
|
43
|
-
hasKimiForCoding: boolean;
|
|
44
|
-
hasOpencodeGo: boolean;
|
|
45
|
-
hasVercelAiGateway: boolean;
|
|
46
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type PostHogActivityCaptureState = {
|
|
2
|
-
dayUTC: string;
|
|
3
|
-
captureDaily: boolean;
|
|
4
|
-
};
|
|
5
|
-
type PluginLoadedCaptureState = {
|
|
6
|
-
dayUTC: string;
|
|
7
|
-
capturePluginLoaded: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function getPostHogActivityCaptureState(now?: Date): PostHogActivityCaptureState;
|
|
10
|
-
export declare function getPluginLoadedCaptureState(now?: Date): PluginLoadedCaptureState;
|
|
11
|
-
export {};
|
package/dist/shared/posthog.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PostHog } from "posthog-node";
|
|
2
|
-
import { getPostHogActivityCaptureState } from "./posthog-activity-state";
|
|
3
|
-
/** @internal test-only */
|
|
4
|
-
export declare function __setActivityStateProviderForTesting(provider: typeof getPostHogActivityCaptureState): void;
|
|
5
|
-
/** @internal test-only */
|
|
6
|
-
export declare function __resetActivityStateProviderForTesting(): void;
|
|
7
|
-
type PostHogCaptureEvent = Parameters<PostHog["capture"]>[0];
|
|
8
|
-
type PostHogExceptionProperties = Parameters<PostHog["captureException"]>[2];
|
|
9
|
-
type PostHogActivityReason = "run_started" | "plugin_loaded";
|
|
10
|
-
type PostHogClient = {
|
|
11
|
-
capture: (message: PostHogCaptureEvent) => void;
|
|
12
|
-
captureException: (error: unknown, distinctId?: string, additionalProperties?: PostHogExceptionProperties) => void;
|
|
13
|
-
trackActive: (distinctId: string, reason: PostHogActivityReason) => void;
|
|
14
|
-
shutdown: () => Promise<void>;
|
|
15
|
-
};
|
|
16
|
-
export declare function getPostHogDistinctId(): string;
|
|
17
|
-
export declare function createCliPostHog(): PostHogClient;
|
|
18
|
-
export declare function createPluginPostHog(): PostHogClient;
|
|
19
|
-
export {};
|
|
File without changes
|