@mu-agent/mu 0.0.5 → 0.0.6
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 +18 -0
- package/dist/index.js +90 -88
- package/dist/mu.js +307 -282
- package/dist/types/profile-coding/checkpoint.d.ts +3 -0
- package/dist/types/profile-coding/shell.d.ts +1 -1
- package/dist/types/sdk/agent.d.ts +2 -0
- package/dist/types/sdk/commands.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15,12 +15,15 @@ export declare class ShadowCheckpointProvider implements CheckpointProvider {
|
|
|
15
15
|
private readonly root;
|
|
16
16
|
private readonly shadowDir;
|
|
17
17
|
private readonly run;
|
|
18
|
+
private readonly lockDir;
|
|
18
19
|
private readonly excludedPathspecs;
|
|
19
20
|
private initialized;
|
|
20
21
|
constructor(options: ShadowCheckpointOptions);
|
|
21
22
|
get directory(): string;
|
|
22
23
|
private env;
|
|
23
24
|
private git;
|
|
25
|
+
private acquireLock;
|
|
26
|
+
private locked;
|
|
24
27
|
private ensure;
|
|
25
28
|
private ignoredDisposableDirectories;
|
|
26
29
|
private checkpointPathspecs;
|
|
@@ -10,4 +10,4 @@ export interface ProcessTreeTarget {
|
|
|
10
10
|
export declare function shellCommand(command: string, options?: ShellCommandOptions): string[];
|
|
11
11
|
export declare function windowsTaskkillCommand(pid: number): string[];
|
|
12
12
|
export declare function shellEnv(overrides?: Record<string, string>, toolDir?: () => string | undefined): Record<string, string | undefined>;
|
|
13
|
-
export declare function terminateProcessTree(process: ProcessTreeTarget, signal: NodeJS.Signals, platform?: NodeJS.Platform): void
|
|
13
|
+
export declare function terminateProcessTree(process: ProcessTreeTarget, signal: NodeJS.Signals, platform?: NodeJS.Platform): Promise<void>;
|
|
@@ -13,6 +13,8 @@ export interface AgentOptions {
|
|
|
13
13
|
budget?: Budget;
|
|
14
14
|
session?: SessionStore;
|
|
15
15
|
sessionId?: string;
|
|
16
|
+
sessionProfile?: string;
|
|
17
|
+
sessionEnvironment?: Record<string, string>;
|
|
16
18
|
thinkingLevel?: ThinkingLevel;
|
|
17
19
|
apiKey?: string;
|
|
18
20
|
getCredentials?: (provider: string) => Promise<Credential | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Usage } from "../ai/index.js";
|
|
2
2
|
import { type CheckpointDiffFile, type Command, CommandRegistry } from "../core/index.js";
|
|
3
3
|
import type { CheckpointActionResult, ManualCompactionResult } from "./agent.js";
|
|
4
4
|
export interface ForkPoint {
|