@mu-agent/mu 0.0.7 → 0.0.9
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/README.md +4 -0
- package/dist/index.js +120 -121
- package/dist/mu.js +263 -263
- package/dist/types/ai/index.d.ts +1 -0
- package/dist/types/ai/provider-config.d.ts +1 -1
- package/dist/types/ai/providers/llama-cpp.d.ts +3 -0
- package/dist/types/profile-coding/index.d.ts +0 -1
- package/dist/types/profile-coding/ripgrep.d.ts +2 -0
- package/dist/types/profile-coding/shell-inspection.d.ts +1 -0
- package/dist/types/profile-coding/tools/todo.d.ts +1 -1
- package/dist/types/sdk/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/profile-coding/tools/search.d.ts +0 -23
package/dist/types/ai/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { builtinProviderConfigs, modelApi, providerBaseUrl, providerConfig, prov
|
|
|
9
9
|
export { anthropic, streamAnthropic } from "./providers/anthropic.js";
|
|
10
10
|
export { gemini, streamGemini } from "./providers/gemini.js";
|
|
11
11
|
export { discoverGitHubCopilotModels } from "./providers/github-copilot.js";
|
|
12
|
+
export { discoverLlamaCppModels, llamaCpp } from "./providers/llama-cpp.js";
|
|
12
13
|
export { discoverOpenAICodexModels, openai, openaiCodex, streamOpenAI, } from "./providers/openai.js";
|
|
13
14
|
export { openaiCompletions, streamOpenAICompletions } from "./providers/openai-completions.js";
|
|
14
15
|
export { getProvider, providers, registerProvider } from "./registry.js";
|
|
@@ -5,7 +5,7 @@ export interface BuiltinProviderConfig {
|
|
|
5
5
|
api: LlmApi;
|
|
6
6
|
baseUrl?: string;
|
|
7
7
|
env: string[];
|
|
8
|
-
auth?: "bearer" | "anthropic" | "google" | "azure" | "cloudflare";
|
|
8
|
+
auth?: "bearer" | "anthropic" | "google" | "azure" | "cloudflare" | "none";
|
|
9
9
|
headers?: Record<string, string>;
|
|
10
10
|
}
|
|
11
11
|
export declare const builtinProviderConfigs: Map<string, BuiltinProviderConfig>;
|
|
@@ -29,7 +29,6 @@ export { classifyShellCommand, isInspectionShellCommand, parseInspectionCommands
|
|
|
29
29
|
export { FileState } from "./state.js";
|
|
30
30
|
export { bashTool } from "./tools/bash.js";
|
|
31
31
|
export { editTool, lsTool, readTool, resolveInRoot, writeTool } from "./tools/files.js";
|
|
32
|
-
export { globTool, globToRegExp, grepTool, type RipgrepRunner, resolveNpmRipgrepExecutable, resolveRipgrepExecutable, type SearchToolOptions, } from "./tools/search.js";
|
|
33
32
|
export { shellSpawner, taskTools } from "./tools/tasks.js";
|
|
34
33
|
export type { TodoItem } from "./tools/todo.js";
|
|
35
34
|
export { renderTodos, TodoStore, todoTool } from "./tools/todo.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare function resolveNpmRipgrepExecutable(platform?: NodeJS.Platform, architecture?: NodeJS.Architecture, from?: string, resolvePackage?: (specifier: string, from: string) => string): string | undefined;
|
|
2
|
+
export declare function resolveRipgrepExecutable(execPath?: string, platform?: NodeJS.Platform, which?: (command: string) => string | null, resolveNpm?: () => string | undefined): string | undefined;
|
|
@@ -2,3 +2,4 @@ export type ShellCommandClassification = "inspect" | "other";
|
|
|
2
2
|
export declare function parseInspectionCommands(source: string): string[][] | undefined;
|
|
3
3
|
export declare function classifyShellCommand(command: string): ShellCommandClassification;
|
|
4
4
|
export declare function isInspectionShellCommand(command: string): boolean;
|
|
5
|
+
export declare function isSingleRipgrepCommand(command: string): boolean;
|
|
@@ -11,6 +11,6 @@ export declare function renderTodos(items: TodoItem[]): string;
|
|
|
11
11
|
export declare function todoTool(store: TodoStore): import("../../sdk/index.js").Tool<{
|
|
12
12
|
items: {
|
|
13
13
|
content: string;
|
|
14
|
-
status: "
|
|
14
|
+
status: "pending" | "in_progress" | "completed";
|
|
15
15
|
}[];
|
|
16
16
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { Credential, ModelDiscoveryOptions, ModelInfo, Provider, ProviderModelDiscoveryOptions, ThinkingLevel, Usage, } from "../ai/index.js";
|
|
2
|
-
export { builtinProviderConfigs, defaultModelId, defaultModelRef, defaultThinkingLevel, discoverModels, findModel, listModels, providerHasCredentials, refreshModels, registerModels, registerProvider, supportedThinkingLevels, thinkingLevelForModel, } from "../ai/index.js";
|
|
2
|
+
export { builtinProviderConfigs, defaultModelId, defaultModelRef, defaultThinkingLevel, discoverModels, findModel, listModels, providerConfig, providerHasCredentials, refreshModels, registerModels, registerProvider, supportedThinkingLevels, thinkingLevelForModel, } from "../ai/index.js";
|
|
3
3
|
export type { AgentEvent, AgentMessage, AnyTool, Command, CommandContext, CommandResult, CustomMessage, Extension, ExtensionAPI, ExtensionEvent, ExtensionEventFor, ExtensionEventType, LifecycleEvent, LifecycleNotification, PermissionMode, PermissionModeTone, PermissionRequest, PermissionRule, ProfileRuntime, ProfileRuntimeHost, SessionStore, StreamDelta, Tool, ToolRenderer, UserContent, } from "../core/index.js";
|
|
4
4
|
export { CommandRegistry, customMessage, ExtensionHost, errorResult, MemorySessionStore, SessionTree, textResult, userMessage, } from "../core/index.js";
|
|
5
5
|
export type { AgentOptions, AgentRunOptions, CheckpointActionData, CheckpointActionResult, HaltReason, ManualCompactionResult, RunResult, } from "./agent.js";
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type ToolDeps } from "./files.js";
|
|
2
|
-
export interface RipgrepRunResult {
|
|
3
|
-
exitCode: number;
|
|
4
|
-
stderr: string;
|
|
5
|
-
stopped: boolean;
|
|
6
|
-
}
|
|
7
|
-
export type RipgrepRunner = (args: string[], cwd: string, signal: AbortSignal, onLine: (line: string) => boolean) => Promise<RipgrepRunResult | undefined>;
|
|
8
|
-
export interface SearchToolOptions {
|
|
9
|
-
ripgrep?: RipgrepRunner | false;
|
|
10
|
-
}
|
|
11
|
-
export declare function resolveNpmRipgrepExecutable(platform?: NodeJS.Platform, architecture?: NodeJS.Architecture, from?: string, resolvePackage?: (specifier: string, from: string) => string): string | undefined;
|
|
12
|
-
export declare function resolveRipgrepExecutable(execPath?: string, platform?: NodeJS.Platform, which?: (command: string) => string | null, resolveNpm?: () => string | undefined): string | undefined;
|
|
13
|
-
export declare function globToRegExp(pattern: string): RegExp;
|
|
14
|
-
export declare function globTool(deps: ToolDeps, options?: SearchToolOptions): import("../../sdk/index.js").Tool<{
|
|
15
|
-
pattern: string;
|
|
16
|
-
path?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare function grepTool(deps: ToolDeps, options?: SearchToolOptions): import("../../sdk/index.js").Tool<{
|
|
19
|
-
pattern: string;
|
|
20
|
-
path?: string | undefined;
|
|
21
|
-
include?: string | undefined;
|
|
22
|
-
ignoreCase?: boolean | undefined;
|
|
23
|
-
}>;
|