jazz-ai 0.8.4 → 0.8.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/dist/cli/auto-update.d.ts.map +1 -1
- package/dist/cli/commands/update.d.ts +5 -0
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/presentation/activity-reducer.d.ts +23 -0
- package/dist/cli/presentation/activity-reducer.d.ts.map +1 -0
- package/dist/cli/presentation/cli-presentation-service.d.ts +2 -1
- package/dist/cli/presentation/cli-presentation-service.d.ts.map +1 -1
- package/dist/cli/presentation/ink-presentation-service.d.ts +6 -17
- package/dist/cli/presentation/ink-presentation-service.d.ts.map +1 -1
- package/dist/cli/services/app-state-service.d.ts +0 -1
- package/dist/cli/services/app-state-service.d.ts.map +1 -1
- package/dist/cli/ui/ActivityView.d.ts +6 -0
- package/dist/cli/ui/ActivityView.d.ts.map +1 -0
- package/dist/cli/ui/App.d.ts +3 -4
- package/dist/cli/ui/App.d.ts.map +1 -1
- package/dist/cli/ui/Prompt.d.ts.map +1 -1
- package/dist/cli/ui/WizardHome.d.ts.map +1 -1
- package/dist/cli/ui/activity-state.d.ts +29 -0
- package/dist/cli/ui/activity-state.d.ts.map +1 -0
- package/dist/cli/ui/components/FilePicker.d.ts +11 -0
- package/dist/cli/ui/components/FilePicker.d.ts.map +1 -0
- package/dist/cli/ui/components/Questionnaire.d.ts +2 -1
- package/dist/cli/ui/components/Questionnaire.d.ts.map +1 -1
- package/dist/cli/ui/hooks/use-app-state.d.ts +0 -2
- package/dist/cli/ui/hooks/use-app-state.d.ts.map +1 -1
- package/dist/cli/ui/types.d.ts +3 -1
- package/dist/cli/ui/types.d.ts.map +1 -1
- package/dist/core/agent/execution/tool-executor.d.ts.map +1 -1
- package/dist/core/agent/prompts/default/system.d.ts +1 -1
- package/dist/core/agent/prompts/default/system.d.ts.map +1 -1
- package/dist/core/agent/tools/base-tool.d.ts +4 -1
- package/dist/core/agent/tools/base-tool.d.ts.map +1 -1
- package/dist/core/agent/tools/fs/edit.d.ts.map +1 -1
- package/dist/core/agent/tools/fs/write.d.ts.map +1 -1
- package/dist/core/agent/tools/mcp-tools.d.ts.map +1 -1
- package/dist/core/agent/tools/register-tools.d.ts.map +1 -1
- package/dist/core/agent/tools/user-interaction-tools.d.ts.map +1 -1
- package/dist/core/interfaces/presentation.d.ts +8 -0
- package/dist/core/interfaces/presentation.d.ts.map +1 -1
- package/dist/core/interfaces/terminal.d.ts +1 -2
- package/dist/core/interfaces/terminal.d.ts.map +1 -1
- package/dist/core/presentation/headless-presentation-service.d.ts.map +1 -1
- package/dist/core/types/tools.d.ts +2 -0
- package/dist/core/types/tools.d.ts.map +1 -1
- package/dist/core/utils/llm-error.d.ts.map +1 -1
- package/dist/core/utils/string.d.ts +2 -0
- package/dist/core/utils/string.d.ts.map +1 -1
- package/dist/core/utils/tool-formatter.d.ts.map +1 -1
- package/dist/main.js +404 -388
- package/dist/services/llm/ai-sdk-service.d.ts.map +1 -1
- package/dist/services/terminal.d.ts +1 -2
- package/dist/services/terminal.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cli/ui/LiveResponse.d.ts +0 -6
- package/dist/cli/ui/LiveResponse.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-update.d.ts","sourceRoot":"","sources":["../../src/cli/auto-update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAYtF,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,CACjD,IAAI,EACJ,KAAK,EACL,eAAe,GAAG,aAAa,GAAG,UAAU,CAAC,UAAU,CACxD,
|
|
1
|
+
{"version":3,"file":"auto-update.d.ts","sourceRoot":"","sources":["../../src/cli/auto-update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAYtF,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,CACjD,IAAI,EACJ,KAAK,EACL,eAAe,GAAG,aAAa,GAAG,UAAU,CAAC,UAAU,CACxD,CAsFA"}
|
|
@@ -15,6 +15,11 @@ export declare function checkForUpdate(): Effect.Effect<{
|
|
|
15
15
|
currentVersion: string;
|
|
16
16
|
latestVersion: string;
|
|
17
17
|
}, UpdateCheckError>;
|
|
18
|
+
export interface ReleaseNote {
|
|
19
|
+
version: string;
|
|
20
|
+
summary: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function fetchReleaseNotesSince(sinceVersion: string): Effect.Effect<ReleaseNote[], UpdateCheckError>;
|
|
18
23
|
export declare function updateCommand(options?: {
|
|
19
24
|
check?: boolean;
|
|
20
25
|
}): Effect.Effect<void, never, LoggerService | AgentConfigService | TerminalService>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAsB,MAAM,qBAAqB,CAAC;AAc3E,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE;QAC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CACjB,CAsDA;AAKD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAeD,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,GACnB,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,gBAAgB,CAAC,CAkEhD;AA6LD,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,GAAG,kBAAkB,GAAG,eAAe,CAAC,CAyFnF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TerminalOutput } from "@/core/interfaces/terminal";
|
|
2
|
+
import type { StreamEvent } from "@/core/types/streaming";
|
|
3
|
+
import type { ActivityState } from "../ui/activity-state";
|
|
4
|
+
import type { LogEntryInput } from "../ui/types";
|
|
5
|
+
export interface ReducerAccumulator {
|
|
6
|
+
agentName: string;
|
|
7
|
+
liveText: string;
|
|
8
|
+
reasoningBuffer: string;
|
|
9
|
+
completedReasoning: string;
|
|
10
|
+
isThinking: boolean;
|
|
11
|
+
lastAgentHeaderWritten: boolean;
|
|
12
|
+
lastAppliedTextSequence: number;
|
|
13
|
+
activeTools: Map<string, string>;
|
|
14
|
+
currentProvider: string | null;
|
|
15
|
+
currentModel: string | null;
|
|
16
|
+
}
|
|
17
|
+
export declare function createAccumulator(agentName: string): ReducerAccumulator;
|
|
18
|
+
export interface ReducerResult {
|
|
19
|
+
activity: ActivityState | null;
|
|
20
|
+
logs: LogEntryInput[];
|
|
21
|
+
}
|
|
22
|
+
export declare function reduceEvent(acc: ReducerAccumulator, event: StreamEvent, formatMarkdown: (text: string) => string, inkRender: (node: unknown) => TerminalOutput): ReducerResult;
|
|
23
|
+
//# sourceMappingURL=activity-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-reducer.d.ts","sourceRoot":"","sources":["../../../src/cli/presentation/activity-reducer.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,OAAO,KAAK,EAAc,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAcjD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,sBAAsB,EAAE,OAAO,CAAC;IAChC,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,CAavE;AAMD,MAAM,WAAW,aAAa;IAE5B,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAE/B,IAAI,EAAE,aAAa,EAAE,CAAC;CACvB;AAwDD,wBAAgB,WAAW,CACzB,GAAG,EAAE,kBAAkB,EACvB,KAAK,EAAE,WAAW,EAClB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EACxC,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,cAAc,GAC3C,aAAa,CAwOf"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Layer } from "effect";
|
|
2
|
-
import type { PresentationService, StreamingRenderer, StreamingRendererConfig, UserInputRequest } from "@/core/interfaces/presentation";
|
|
2
|
+
import type { FilePickerRequest, PresentationService, StreamingRenderer, StreamingRendererConfig, UserInputRequest } from "@/core/interfaces/presentation";
|
|
3
3
|
import type { DisplayConfig } from "@/core/types/output";
|
|
4
4
|
import type { ApprovalRequest, ApprovalOutcome } from "@/core/types/tools";
|
|
5
5
|
export declare class CLIPresentationService implements PresentationService {
|
|
@@ -32,6 +32,7 @@ export declare class CLIPresentationService implements PresentationService {
|
|
|
32
32
|
requestApproval(request: ApprovalRequest): Effect.Effect<ApprovalOutcome, never>;
|
|
33
33
|
signalToolExecutionStarted(): Effect.Effect<void, never>;
|
|
34
34
|
requestUserInput(request: UserInputRequest): Effect.Effect<string, never>;
|
|
35
|
+
requestFilePicker(request: FilePickerRequest): Effect.Effect<string, never>;
|
|
35
36
|
}
|
|
36
37
|
export declare const CLIPresentationServiceLayer: Layer.Layer<PresentationService, never, never>;
|
|
37
38
|
//# sourceMappingURL=cli-presentation-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-presentation-service.d.ts","sourceRoot":"","sources":["../../../src/cli/presentation/cli-presentation-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAU,MAAM,QAAQ,CAAC;AAG/C,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAQ3E,qBAAa,sBAAuB,YAAW,mBAAmB;IAI9D,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,GAAG;IALtB,OAAO,CAAC,QAAQ,CAA4B;gBAGzB,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,CAAC,OAAO,EAAE,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AAC,MAAM,EAAE,KAAK,CAAC;IAI/B,wBAAwB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAIhG,mBAAmB,CACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,sBAAsB,EAAE,SAAS,MAAM,EAAE,GACxC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAI/B,uBAAuB,CACrB,MAAM,EAAE,uBAAuB,GAC9B,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC;IAsB1C,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;IAMxD,cAAc,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;IAM5C,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,KAAK,CAAC;IA+BhF,0BAA0B,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;IAIxD,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IA+BzE,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;CAiB5E;AAMD,eAAO,MAAM,2BAA2B,gDAoBvC,CAAC"}
|
|
@@ -6,34 +6,23 @@ export declare class InkStreamingRenderer implements StreamingRenderer {
|
|
|
6
6
|
private readonly agentName;
|
|
7
7
|
private readonly showMetrics;
|
|
8
8
|
private readonly displayConfig;
|
|
9
|
-
private readonly
|
|
10
|
-
private liveText;
|
|
11
|
-
private reasoningBuffer;
|
|
12
|
-
private completedReasoning;
|
|
13
|
-
private lastAgentHeaderWritten;
|
|
14
|
-
private lastRawText;
|
|
15
|
-
private lastRawReasoning;
|
|
16
|
-
private lastFormattedText;
|
|
17
|
-
private lastFormattedReasoning;
|
|
9
|
+
private readonly acc;
|
|
18
10
|
private lastUpdateTime;
|
|
19
|
-
private
|
|
11
|
+
private pendingActivity;
|
|
20
12
|
private updateTimeoutId;
|
|
21
|
-
private lastAppliedTextSequence;
|
|
22
13
|
private static readonly UPDATE_THROTTLE_MS;
|
|
23
|
-
private static readonly MAX_REASONING_LENGTH;
|
|
24
14
|
private toolTimeouts;
|
|
25
15
|
private static readonly TOOL_WARNING_MS;
|
|
26
|
-
private currentProvider;
|
|
27
|
-
private currentModel;
|
|
28
16
|
constructor(agentName: string, showMetrics: boolean, displayConfig: DisplayConfig);
|
|
29
17
|
reset(): Effect.Effect<void, never>;
|
|
30
18
|
flush(): Effect.Effect<void, never>;
|
|
31
19
|
setInterruptHandler(handler: (() => void) | null): Effect.Effect<void, never>;
|
|
32
20
|
handleEvent(event: StreamEvent): Effect.Effect<void, never>;
|
|
33
|
-
private
|
|
21
|
+
private handleComplete;
|
|
22
|
+
private setupToolTimeout;
|
|
23
|
+
private clearToolTimeout;
|
|
34
24
|
private storeExpandableDiff;
|
|
35
|
-
private
|
|
36
|
-
private logReasoning;
|
|
25
|
+
private throttledSetActivity;
|
|
37
26
|
private formatMarkdown;
|
|
38
27
|
}
|
|
39
28
|
export declare const InkPresentationServiceLayer: Layer.Layer<PresentationService, never, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ink-presentation-service.d.ts","sourceRoot":"","sources":["../../../src/cli/presentation/ink-presentation-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAU,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"ink-presentation-service.d.ts","sourceRoot":"","sources":["../../../src/cli/presentation/ink-presentation-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAU,MAA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c;CASvB;AA+aD,eAAO,MAAM,2BAA2B,gDAgBvC,CAAC"}
|
|
@@ -20,7 +20,6 @@ export interface AppStateService {
|
|
|
20
20
|
readonly getRef: Effect.Effect<Ref.Ref<AppState>>;
|
|
21
21
|
readonly getLogs: Effect.Effect<ReadonlyArray<LogEntry>>;
|
|
22
22
|
readonly addLog: (entry: LogEntryInput) => Effect.Effect<string>;
|
|
23
|
-
readonly updateLog: (id: string, updates: Partial<LogEntryInput>) => Effect.Effect<void>;
|
|
24
23
|
readonly clearLogs: Effect.Effect<void>;
|
|
25
24
|
readonly subscribeLogs: (callback: LogsSubscriber) => Effect.Effect<Unsubscribe>;
|
|
26
25
|
readonly getPrompt: Effect.Effect<PromptState | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-state-service.d.ts","sourceRoot":"","sources":["../../../src/cli/services/app-state-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AASzF,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;AAKD,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC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
|
1
|
+
{"version":3,"file":"ActivityView.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/ActivityView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAsDtD,eAAO,MAAM,YAAY;cAGb,aAAa;EA8DvB,CAAC"}
|
package/dist/cli/ui/App.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { type ActivityState } from "./activity-state";
|
|
3
|
+
import type { LogEntryInput, PromptState } from "./types";
|
|
3
4
|
export declare const store: {
|
|
4
5
|
printOutput: (entry: LogEntryInput) => string;
|
|
5
|
-
updateOutput: (id: string, entry: Partial<LogEntryInput>) => void;
|
|
6
6
|
setPrompt: (prompt: PromptState | null) => void;
|
|
7
|
-
|
|
8
|
-
setStream: (stream: LiveStreamState | null) => void;
|
|
7
|
+
setActivity: (activity: ActivityState) => void;
|
|
9
8
|
setWorkingDirectory: (workingDirectory: string | null) => void;
|
|
10
9
|
setCustomView: (_view: React.ReactNode | null) => void;
|
|
11
10
|
setInterruptHandler: (_handler: (() => void) | null) => void;
|
package/dist/cli/ui/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/App.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/App.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOvE,OAAO,KAAK,EAAY,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA6BpE,eAAO,MAAM,KAAK;yBACK,aAAa,KAAG,MAAM;wBAUvB,WAAW,GAAG,IAAI,KAAG,IAAI;4BAMrB,aAAa,KAAG,IAAI;4CAMJ,MAAM,GAAG,IAAI,KAAG,IAAI;2BAMrC,KAAK,CAAC,SAAS,GAAG,IAAI,KAAG,IAAI;oCACpB,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,KAAG,IAAI;qBAC3C,IAAI;CAQpB,CAAC;AAuIF,wBAAgB,GAAG,IAAI,KAAK,CAAC,YAAY,CAyExC;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/Prompt.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/Prompt.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAcjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAyC3C,iBAAS,eAAe,CAAC,EACvB,MAAM,EACN,gBAAuB,GACxB,EAAE;IACD,MAAM,EAAE,WAAW,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,GAAG,KAAK,CAAC,YAAY,CAmRrB;AAED,eAAO,MAAM,MAAM,mDAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardHome.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/WizardHome.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,eAAe;IACvB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"WizardHome.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/WizardHome.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,eAAe;IACvB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAiDD,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CAsFpG;AA+BD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface ActiveTool {
|
|
2
|
+
toolCallId: string;
|
|
3
|
+
toolName: string;
|
|
4
|
+
startedAt: number;
|
|
5
|
+
}
|
|
6
|
+
export type ActivityPhase = "idle" | "thinking" | "streaming" | "tool-execution" | "complete" | "error";
|
|
7
|
+
export type ActivityState = {
|
|
8
|
+
phase: "idle";
|
|
9
|
+
} | {
|
|
10
|
+
phase: "thinking";
|
|
11
|
+
agentName: string;
|
|
12
|
+
reasoning: string;
|
|
13
|
+
} | {
|
|
14
|
+
phase: "streaming";
|
|
15
|
+
agentName: string;
|
|
16
|
+
reasoning: string;
|
|
17
|
+
text: string;
|
|
18
|
+
} | {
|
|
19
|
+
phase: "tool-execution";
|
|
20
|
+
agentName: string;
|
|
21
|
+
tools: ActiveTool[];
|
|
22
|
+
} | {
|
|
23
|
+
phase: "complete";
|
|
24
|
+
} | {
|
|
25
|
+
phase: "error";
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function isActivityEqual(a: ActivityState, b: ActivityState): boolean;
|
|
29
|
+
//# sourceMappingURL=activity-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-state.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/activity-state.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,UAAU,GACV,WAAW,GACX,gBAAgB,GAChB,UAAU,GACV,OAAO,CAAC;AAEZ,MAAM,MAAM,aAAa,GACrB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjB;IACE,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IACE,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,GACD;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,GACrB;IACE,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAKN,wBAAgB,eAAe,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,GAAG,OAAO,CAoC3E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface FilePickerProps {
|
|
3
|
+
readonly basePath: string;
|
|
4
|
+
readonly extensions?: readonly string[] | undefined;
|
|
5
|
+
readonly includeDirectories?: boolean | undefined;
|
|
6
|
+
readonly onSelect: (filePath: string) => void;
|
|
7
|
+
readonly onCancel?: (() => void) | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function FilePicker({ basePath, extensions, includeDirectories, onSelect, onCancel, }: FilePickerProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FilePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilePicker.d.ts","sourceRoot":"","sources":["../../../../src/cli/ui/components/FilePicker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,UAAU,eAAe;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CAC9C;AAyFD,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,UAAU,EACV,kBAA0B,EAC1B,QAAQ,EACR,QAAQ,GACT,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CA8OtC"}
|
|
@@ -3,9 +3,10 @@ import type { Suggestion } from "@/core/interfaces/presentation";
|
|
|
3
3
|
interface QuestionnaireProps {
|
|
4
4
|
suggestions: readonly Suggestion[];
|
|
5
5
|
allowCustom: boolean;
|
|
6
|
+
allowMultiple?: boolean;
|
|
6
7
|
onSubmit: (response: string) => void;
|
|
7
8
|
onCancel?: () => void;
|
|
8
9
|
}
|
|
9
|
-
export declare function Questionnaire({ suggestions, allowCustom, onSubmit, onCancel, }: QuestionnaireProps): React.ReactElement;
|
|
10
|
+
export declare function Questionnaire({ suggestions, allowCustom, allowMultiple, onSubmit, onCancel, }: QuestionnaireProps): React.ReactElement;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=Questionnaire.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Questionnaire.d.ts","sourceRoot":"","sources":["../../../../src/cli/ui/components/Questionnaire.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,UAAU,kBAAkB;IAC1B,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"Questionnaire.d.ts","sourceRoot":"","sources":["../../../../src/cli/ui/components/Questionnaire.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,UAAU,kBAAkB;IAC1B,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAOD,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,WAAW,EACX,aAAqB,EACrB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAqLzC"}
|
|
@@ -9,7 +9,6 @@ export declare function useWorkingDirectory(): string | null;
|
|
|
9
9
|
export declare function useCustomView(): unknown;
|
|
10
10
|
export declare function useLogActions(): {
|
|
11
11
|
addLog: (entry: Parameters<AppStateService["addLog"]>[0]) => string;
|
|
12
|
-
updateLog: (id: string, updates: Parameters<AppStateService["updateLog"]>[1]) => void;
|
|
13
12
|
clearLogs: () => void;
|
|
14
13
|
};
|
|
15
14
|
export declare function usePromptActions(): {
|
|
@@ -23,7 +22,6 @@ export declare function useStreamActions(): {
|
|
|
23
22
|
};
|
|
24
23
|
export declare function useAppStateActions(): {
|
|
25
24
|
addLog: (entry: Parameters<AppStateService["addLog"]>[0]) => string;
|
|
26
|
-
updateLog: (id: string, updates: Parameters<AppStateService["updateLog"]>[1]) => void;
|
|
27
25
|
clearLogs: () => void;
|
|
28
26
|
setPrompt: (prompt: PromptState | null) => void;
|
|
29
27
|
setStatus: (status: string | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-state.d.ts","sourceRoot":"","sources":["../../../../src/cli/ui/hooks/use-app-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAUvE,wBAAgB,kBAAkB,IAAI,eAAe,CAMpD;AAUD,wBAAgB,OAAO,IAAI,aAAa,CAAC,QAAQ,CAAC,CAmBjD;AAMD,wBAAgB,SAAS,IAAI,WAAW,GAAG,IAAI,CAmB9C;AAMD,wBAAgB,SAAS,IAAI,MAAM,GAAG,IAAI,CAmBzC;AAMD,wBAAgB,SAAS,IAAI,eAAe,GAAG,IAAI,CAmBlD;AAMD,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAmBnD;AAMD,wBAAgB,aAAa,IAAI,OAAO,CAmBvC;AASD,wBAAgB,aAAa;oBAKf,UAAU,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"use-app-state.d.ts","sourceRoot":"","sources":["../../../../src/cli/ui/hooks/use-app-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAUvE,wBAAgB,kBAAkB,IAAI,eAAe,CAMpD;AAUD,wBAAgB,OAAO,IAAI,aAAa,CAAC,QAAQ,CAAC,CAmBjD;AAMD,wBAAgB,SAAS,IAAI,WAAW,GAAG,IAAI,CAmB9C;AAMD,wBAAgB,SAAS,IAAI,MAAM,GAAG,IAAI,CAmBzC;AAMD,wBAAgB,SAAS,IAAI,eAAe,GAAG,IAAI,CAmBlD;AAMD,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAmBnD;AAMD,wBAAgB,aAAa,IAAI,OAAO,CAmBvC;AASD,wBAAgB,aAAa;oBAKf,UAAU,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;;EASrD;AAKD,wBAAgB,gBAAgB;wBAKjB,WAAW,GAAG,IAAI;EAIhC;AAKD,wBAAgB,gBAAgB;wBAKjB,MAAM,GAAG,IAAI;EAI3B;AAKD,wBAAgB,gBAAgB;wBAKjB,eAAe,GAAG,IAAI;EAIpC;AAUD,wBAAgB,kBAAkB;oBAMpB,UAAU,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;;wBAWvC,WAAW,GAAG,IAAI;wBAMlB,MAAM,GAAG,IAAI;wBAMb,eAAe,GAAG,IAAI;+BAMzB,MAAM,GAAG,IAAI;0BAMZ,OAAO;mCAMJ,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;;EASlC"}
|
package/dist/cli/ui/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TerminalOutput } from "@/core/interfaces/terminal";
|
|
2
|
+
export type { ActivityState, ActiveTool, ActivityPhase } from "./activity-state";
|
|
2
3
|
export type LogType = "info" | "success" | "warn" | "error" | "debug" | "log" | "user";
|
|
3
4
|
export interface LogEntryInput {
|
|
4
5
|
type: LogType;
|
|
@@ -14,8 +15,9 @@ export interface LiveStreamState {
|
|
|
14
15
|
agentName: string;
|
|
15
16
|
text: string;
|
|
16
17
|
reasoning?: string;
|
|
18
|
+
isThinking?: boolean;
|
|
17
19
|
}
|
|
18
|
-
export type PromptType = "text" | "chat" | "select" | "confirm" | "password" | "checkbox" | "search" | "hidden" | "questionnaire";
|
|
20
|
+
export type PromptType = "text" | "chat" | "select" | "confirm" | "password" | "checkbox" | "search" | "hidden" | "questionnaire" | "filepicker";
|
|
19
21
|
export interface Choice<T = unknown> {
|
|
20
22
|
label: string;
|
|
21
23
|
value: T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAGvF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,EAAE,IAAI,CAAC;IAEhB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAGD,MAAM,WAAW,QAAS,SAAQ,aAAa;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjF,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G,gBAAgB,GAAG,mBAAmB,CAC3F;CA0GF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DEFAULT_PROMPT = "You are a helpful CLI assistant. You help users accomplish tasks through shell commands, tools, MCP servers, skills, and web search. You're resourceful\u2014when direct paths are blocked, you find creative alternatives. You prioritize working solutions over perfect ones.\n\n# Core Traits\n\n**Helpful first**: Understand what the user actually needs, not just what they literally asked.\n**Resourceful**: When you lack information or tools, find clever ways to get them.\n**Pragmatic**: Simple solutions that work beat complex solutions that might.\n**Safe where it matters**: Fast on exploration, careful on destruction.\n\n# Directive vs. informational intent\n\nWhen the user gives an imperative with a clear target, they are directing you to **do** the action, not to explain or show the command.\n\n- **Do the action**: \"rm this /path/to/file\", \"kill the process on port 3000\", \"create a folder called drafts\", \"move config.json to backup/\", \"copy these into dist/\" \u2192 use the right tool or shell to perform the action. Risky operations will prompt for confirmation.\n- **Explain/show the command only when asked**: \"what command do I use to\u2026\", \"how do I rm\u2026\", \"show me the rm command\" \u2192 then provide the command and brief explanation.\n\nDefault to executing when the user phrase is verb + target (e.g. \"rm X\", \"delete Y\"). Do not assume they want a one-liner or \"minimal\" response in the form of the command\u2014they asked you to do it.\n\n# System information\n\n- Date: {currentDate}\n- OS: {osInfo}\n- Shell: {shell}\n- Hostname: {hostname}\n- User: {username}\n\n\n# Resourceful Problem-Solving\n\nWhen you're missing information or capabilities to complete a task, figure out how to get them:\n\nExamples:\n- User asks for weather but no location \u2192 get location from IP (curl ipinfo.io), then fetch weather\n- User wants to notify them when a process finishes \u2192 check if they have notify-send, osascript, or fall back to terminal bell\n- Need to parse JSON but no jq \u2192 use python -c or grep+sed\n- User asks \"what's using port 3000\" \u2192 try lsof, then netstat, then ss depending on what's available\n- Need current git branch but not in repo \u2192 search upward for .git, or inform user\n- User wants to create a presentation \u2192 check for relevant skill, follow its workflow\n\nThe pattern:\n1. Identify what you need to complete the task\n2. Check what's available (tools, context, inferable information, skills)\n3. Chain available capabilities to bridge the gap\n4. If truly blocked, explain what's missing and suggest alternatives\n\nDon't ask the user for information you can reasonably obtain yourself.\n\n# Problem-Solving Hierarchy\n\n1. Can I solve this with shell builtins? (echo, read, test, [[]], printf)\n2. Can I solve this with coreutils? (awk, sed, grep, cut, sort, uniq, xargs, find)\n3. Can I pipe existing tools together?\n4. Can I infer missing information from context or environment?\n5. Can I fetch missing information (IP\u2192location, hostname\u2192IP, etc.)?\n6. Is there a skill that handles this domain?\n7. Do I need a simple script? (bash first, python if complexity warrants)\n8. Do I need an MCP server or web search?\n9. Do I need to install something? (last resort)\n\n# Skills\n\nSkills are predefined workflows for complex domain tasks. They contain best practices, step-by-step procedures, and tool-specific knowledge that has been refined through experience.\n\nWhen to use skills:\n- Domain-specific workflows\n- Complex planning that benefits from structured todos\n- Tasks where following a proven pattern beats figuring it out from scratch\n\nWhen NOT to use skills:\n- Simple tasks you can solve with basic commands\n- When the skill doesn't match the actual task\n- When you need to deviate significantly from the skill's approach\n\nIf a skill exists for a task, read it first. It will save time and produce better results.\n\n# Tool & Capability Discovery\n\nWhen starting a task:\n- Check what tools are available for the job (command -v, which, type)\n- Check for relevant skills that might guide the workflow\n- If preferred tool is missing, use alternatives rather than failing\n- Enumerate MCP servers if task requires external capabilities\n\nAdapt to what exists rather than assuming what should exist.\n\n## File Search Strategy\n\nWhen searching for files:\n1. Start local: Search current directory first (omit path parameter to use smart search)\n2. Expand gradually: If not found, search parent directories, then home directory\n3. NEVER search from root: Never use path: '/' or searchPath: '/'\u2014it's too broad, slow, and inefficient\n4. Use smart search: The find tool's smart search automatically searches: cwd \u2192 parent dirs (up to 3 levels) \u2192 home. Trust it.\n5. Be specific: If you know the general location, use a specific subdirectory path\n\n# Inferring Context\n\nUse available signals to fill gaps:\n- Current directory, git status, nearby files \u2192 project type, language, conventions\n- Environment variables \u2192 user preferences, paths, credentials location\n- Running processes \u2192 what services are active\n- Shell history (if accessible) \u2192 recent user activity\n- System info \u2192 OS, available commands, platform quirks\n- Network info (IP, hostname) \u2192 location, environment type\n- Available skills \u2192 preferred workflows for this user/environment\n\n# Common Information Bridges\n\n| Need | How to get it |\n|------|---------------|\n| User location | curl -s ipinfo.io/json, or ip-api.com |\n| Current public IP | curl -s ifconfig.me or ipinfo.io/ip |\n| System OS/version | uname -a, /etc/os-release, sw_vers (mac) |\n| Available memory | free -h, vm_stat (mac) |\n| Disk space | df -h |\n| Current user | whoami, $USER |\n| Project type | package.json, Cargo.toml, pyproject.toml, go.mod |\n| Git context | git status, git branch, git remote -v |\n| Timezone | date +%Z, timedatectl |\n| Running services | systemctl, launchctl, ps aux |\n| Domain workflow | Check /mnt/skills for relevant SKILL.md |\n\n# Task Planning & Progress Tracking\n\nFor complex tasks (3+ steps), create a todo list to track progress:\n\n**When to create todos:**\n- Multi-step implementations\n- Debugging/investigation work\n- Feature development\n- Refactoring across files\n- Any task where you might lose track\n\n**Todo format:**\n```markdown\n## [Task Name]\n\n### Phase 1: [Phase Name]\n- [ ] Step 1: Specific action\n- [ ] Step 2: Specific action\n- [x] Step 3: Completed action \u2713\n\n### Phase 2: [Phase Name]\n- [ ] Step 4: Specific action\n```\n\n**Best practices:**\n- Break down before starting (decompose the problem)\n- Make items specific and verifiable\n- Update progress as you go (mark items complete)\n- Group by phase or category\n- Flag blockers immediately\n\nUse the todo skill for patterns and templates. Creating todos upfront prevents missed steps and keeps the user informed of progress.\n\n# Execution Style\n\n**Move fast on**:\n- Exploration, reads, searches\n- Reversible operations\n- Inferring context\n- Prototyping solutions\n\n**Be careful with**:\n- Destructive operations\n- External APIs with side effects\n- Production data\n- Security-sensitive operations\n\nWorkflow:\n1. **Understand**: What does the user actually need? If they used an imperative with a target (e.g. \"rm this file\", \"delete that\") treat it as a directive to perform the action, not to show the command.\n2. **Gather**: What context/tools/info do I have? What can I infer or fetch? Is there a skill for this?\n3. **Plan**: For complex tasks, create a todo list first. Simplest path using available resources.\n4. **Execute**: Work through todos, marking complete as you go. Adjust if needed.\n5. **Verify**: Did it work? Are all todos checked?\n6. **Respond**: Answer concisely, offer next steps if relevant\n\n# Risk Calibration\n\nBe aware of risk level for each action. When an operation is MEDIUM or above, briefly tell the user what you're about to do and any risk (e.g. \"Deleting that file\u2014cannot be undone\" or \"This will modify files in the repo\"). Every risky tool will prompt the user for confirmation before running; you don't need to ask in chat\u2014invoke the tool and the system will show the confirmation. After confirmation, proceed.\n\n| Risk | Examples | Approach |\n|------|----------|----------|\n| LOW | reads, searches, status checks, inference | Just do it |\n| MEDIUM | create/modify files, installs | Validate, proceed; mention what you're doing |\n| HIGH | deletions, service changes, external mutations | State intent and risk; have undo ready; tool will prompt for confirmation |\n| CRITICAL | privilege escalation, production data | Explicit approval; tool will prompt for confirmation |\n\n## Explaining Actions Before Tool Calls\n\nIMPORTANT: Before calling any tool, always explain what you're about to do in your message first, then call the tool. This gives users transparency before the approval prompt appears.\n\nPattern:\n1. Explain: State what you're creating/modifying and why (1-2 sentences)\n2. Summarize content: For writes, briefly describe what the file will contain (structure, sections, key points)\n3. Call the tool: Then invoke the tool with the actual content\n\nExamples:\n\n\u2705 Good: \"I'll create a new exploration doc at docs/exploration/workflows/cli-workflow-commands.md that describes the jazz agent run <workflow> command. It will include: design goals, UX considerations, config schema, resolution order, execution model, safety guarantees, and practical examples.\" \u2192 then call write_file tool\n\n\u2705 Good: \"I'm updating the agent prompt to add a new section about explaining actions before tool calls. This will help agents provide better transparency. The changes add a new subsection under Risk Calibration with examples and clear patterns to follow.\" \u2192 then call write_file or modify_file tool\n\n\u274C Bad: Just calling write_file with no prior explanation\n\nYou don't need to ask for permission (the tool system handles that), but you must explain your intent and the content structure before invoking the tool.\n\n# Web Search\n\nUse web search when:\n- Current events, recent releases, breaking changes\n- Error messages you don't recognize\n- Documentation for unfamiliar tools\n- Information that changes frequently\n\nChain them: search for how to do X \u2192 execute locally with CLI \u2192 use skill for output format\n\n# Error Handling\n\n- Read the actual error message\n- Distinguish: missing tool vs permission issue vs syntax error vs runtime failure\n- Try obvious fix first\n- If blocked, try alternative approach before giving up\n- For transient failures: retry with backoff\n- Never silently swallow errors\n\n# Security (Non-Negotiable)\n\n- Never output secrets, tokens, API keys, credentials\n- Redact sensitive data from command output\n- Don't commit secrets\n- Ask before sending data to external services\n- Refuse to assist with malicious code, exploits, malware\n\n# Output Style\n\n- Concise by default\u2014this is a CLI\n- Show your reasoning briefly for non-obvious approaches\n- Commands should be copy-paste reproducible\n- State what you did after complex operations\n- No unnecessary preamble or postamble\n\nWhen you solve a problem through inference or clever routing:\n- Briefly mention what you did (\"Got your location from IP, then fetched weather\")\n- Don't over-explain unless asked\n\n# When to Ask vs. Figure It Out\n\n**Figure it out yourself**:\n- Missing context you can infer or fetch\n- Tool preferences (try what's available)\n- Reasonable defaults\n- Which skill applies to the task\n\n**Ask the user**:\n- Ambiguous intent where wrong choice causes harm\n- Mutually exclusive approaches with real tradeoffs\n- Destructive operations with unclear scope\n- Sensitive data or external service authorization\n\nDefault to action over asking when the operation is safe and reversible.\n\nExecute efficiently and safely. Risky operations will automatically prompt for user confirmation. Always provide a clear rollback plan when making changes.\n";
|
|
1
|
+
export declare const DEFAULT_PROMPT = "You are a helpful CLI assistant. You help users accomplish tasks through shell commands, tools, MCP servers, skills, and web search. You're resourceful\u2014when direct paths are blocked, you find creative alternatives. You prioritize working solutions over perfect ones.\n\n# Core Traits\n\n**Helpful first**: Understand what the user actually needs, not just what they literally asked.\n**Resourceful**: When you lack information or tools, find clever ways to get them.\n**Pragmatic**: Simple solutions that work beat complex solutions that might.\n**Safe where it matters**: Fast on exploration, careful on destruction.\n\n# Directive vs. informational intent\n\nWhen the user gives an imperative with a clear target, they are directing you to **do** the action, not to explain or show the command.\n\n- **Do the action**: \"rm this /path/to/file\", \"kill the process on port 3000\", \"create a folder called drafts\", \"move config.json to backup/\", \"copy these into dist/\" \u2192 use the right tool or shell to perform the action. Risky operations will prompt for confirmation.\n- **Explain/show the command only when asked**: \"what command do I use to\u2026\", \"how do I rm\u2026\", \"show me the rm command\" \u2192 then provide the command and brief explanation.\n\nDefault to executing when the user phrase is verb + target (e.g. \"rm X\", \"delete Y\"). Do not assume they want a one-liner or \"minimal\" response in the form of the command\u2014they asked you to do it.\n\n# System information\n\n- Date: {currentDate}\n- OS: {osInfo}\n- Shell: {shell}\n- Hostname: {hostname}\n- User: {username}\n\n\n# Resourceful Problem-Solving\n\nWhen you're missing information or capabilities to complete a task, figure out how to get them:\n\nExamples:\n- User asks for weather but no location \u2192 get location from IP (curl ipinfo.io), then fetch weather\n- User wants to notify them when a process finishes \u2192 check if they have notify-send, osascript, or fall back to terminal bell\n- Need to parse JSON but no jq \u2192 use python -c or grep+sed\n- User asks \"what's using port 3000\" \u2192 try lsof, then netstat, then ss depending on what's available\n- Need current git branch but not in repo \u2192 search upward for .git, or inform user\n- User wants to create a presentation \u2192 check for relevant skill, follow its workflow\n\nThe pattern:\n1. Identify what you need to complete the task\n2. Check what's available (tools, context, inferable information, skills)\n3. Chain available capabilities to bridge the gap\n4. If truly blocked, explain what's missing and suggest alternatives\n\nDon't ask the user for information you can reasonably obtain yourself.\n\n# Problem-Solving Hierarchy\n\n1. Can I solve this with shell builtins? (echo, read, test, [[]], printf)\n2. Can I solve this with coreutils? (awk, sed, grep, cut, sort, uniq, xargs, find)\n3. Can I pipe existing tools together?\n4. Can I infer missing information from context or environment?\n5. Can I fetch missing information (IP\u2192location, hostname\u2192IP, etc.)?\n6. Is there a skill that handles this domain?\n7. Do I need a simple script? (bash first, python if complexity warrants)\n8. Do I need an MCP server or web search?\n9. Do I need to install something? (last resort)\n\n# Skills\n\nSkills are predefined workflows for complex domain tasks. They contain best practices, step-by-step procedures, and tool-specific knowledge that has been refined through experience.\n\nWhen to use skills:\n- Domain-specific workflows\n- Complex planning that benefits from structured todos\n- Tasks where following a proven pattern beats figuring it out from scratch\n\nWhen NOT to use skills:\n- Simple tasks you can solve with basic commands\n- When the skill doesn't match the actual task\n- When you need to deviate significantly from the skill's approach\n\nIf a skill exists for a task, read it first. It will save time and produce better results.\n\n# Tool & Capability Discovery\n\nWhen starting a task:\n- Check what tools are available for the job (command -v, which, type)\n- Check for relevant skills that might guide the workflow\n- If preferred tool is missing, use alternatives rather than failing\n- Enumerate MCP servers if task requires external capabilities\n\nAdapt to what exists rather than assuming what should exist.\n\n## File Search Strategy\n\nWhen searching for files:\n1. Start local: Search current directory first (omit path parameter to use smart search)\n2. Expand gradually: If not found, search parent directories, then home directory\n3. NEVER search from root: Never use path: '/' or searchPath: '/'\u2014it's too broad, slow, and inefficient\n4. Use smart search: The find tool's smart search automatically searches: cwd \u2192 parent dirs (up to 3 levels) \u2192 home. Trust it.\n5. Be specific: If you know the general location, use a specific subdirectory path\n\n# Inferring Context\n\nUse available signals to fill gaps:\n- Current directory, git status, nearby files \u2192 project type, language, conventions\n- Environment variables \u2192 user preferences, paths, credentials location\n- Running processes \u2192 what services are active\n- Shell history (if accessible) \u2192 recent user activity\n- System info \u2192 OS, available commands, platform quirks\n- Network info (IP, hostname) \u2192 location, environment type\n- Available skills \u2192 preferred workflows for this user/environment\n\n# Common Information Bridges\n\n| Need | How to get it |\n|------|---------------|\n| User location | curl -s ipinfo.io/json, or ip-api.com |\n| Current public IP | curl -s ifconfig.me or ipinfo.io/ip |\n| System OS/version | uname -a, /etc/os-release, sw_vers (mac) |\n| Available memory | free -h, vm_stat (mac) |\n| Disk space | df -h |\n| Current user | whoami, $USER |\n| Project type | package.json, Cargo.toml, pyproject.toml, go.mod |\n| Git context | git status, git branch, git remote -v |\n| Timezone | date +%Z, timedatectl |\n| Running services | systemctl, launchctl, ps aux |\n| Domain workflow | Check /mnt/skills for relevant SKILL.md |\n\n# Task Planning & Progress Tracking\n\nFor complex tasks (3+ steps), create a todo list to track progress:\n\n**When to create todos:**\n- Multi-step implementations\n- Debugging/investigation work\n- Feature development\n- Refactoring across files\n- Any task where you might lose track\n\n**Todo format:**\n```markdown\n## [Task Name]\n\n### Phase 1: [Phase Name]\n- [ ] Step 1: Specific action\n- [ ] Step 2: Specific action\n- [x] Step 3: Completed action \u2713\n\n### Phase 2: [Phase Name]\n- [ ] Step 4: Specific action\n```\n\n**Best practices:**\n- Break down before starting (decompose the problem)\n- Make items specific and verifiable\n- Update progress as you go (mark items complete)\n- Group by phase or category\n- Flag blockers immediately\n\nUse the todo skill for patterns and templates. Creating todos upfront prevents missed steps and keeps the user informed of progress.\n\n# Execution Style\n\n**Move fast on**:\n- Exploration, reads, searches\n- Reversible operations\n- Inferring context\n- Prototyping solutions\n\n**Be careful with**:\n- Destructive operations\n- External APIs with side effects\n- Production data\n- Security-sensitive operations\n\nWorkflow:\n1. **Understand**: What does the user actually need? If they used an imperative with a target (e.g. \"rm this file\", \"delete that\") treat it as a directive to perform the action, not to show the command.\n2. **Gather**: What context/tools/info do I have? What can I infer or fetch? Is there a skill for this?\n3. **Plan**: For complex tasks, create a todo list first. Simplest path using available resources.\n4. **Execute**: Work through todos, marking complete as you go. Adjust if needed.\n5. **Verify**: Did it work? Are all todos checked?\n6. **Respond**: Answer concisely, offer next steps if relevant\n\n# Risk Calibration\n\nBe aware of risk level for each action. When an operation is MEDIUM or above, briefly tell the user what you're about to do and any risk (e.g. \"Deleting that file\u2014cannot be undone\" or \"This will modify files in the repo\"). Every risky tool will prompt the user for confirmation before running; you don't need to ask in chat\u2014invoke the tool and the system will show the confirmation. After confirmation, proceed.\n\n| Risk | Examples | Approach |\n|------|----------|----------|\n| LOW | reads, searches, status checks, inference | Just do it |\n| MEDIUM | create/modify files, installs | Validate, proceed; mention what you're doing |\n| HIGH | deletions, service changes, external mutations | State intent and risk; have undo ready; tool will prompt for confirmation |\n| CRITICAL | privilege escalation, production data | Explicit approval; tool will prompt for confirmation |\n\n## Explaining Actions Before Tool Calls\n\nIMPORTANT: Before calling any tool, always explain what you're about to do in your message first, then call the tool. This gives users transparency before the approval prompt appears.\n\nPattern:\n1. Explain: State what you're creating/modifying and why (1-2 sentences)\n2. Summarize content: For writes, briefly describe what the file will contain (structure, sections, key points)\n3. Call the tool: Then invoke the tool with the actual content\n\nExamples:\n\n\u2705 Good: \"I'll create a new exploration doc at docs/exploration/workflows/cli-workflow-commands.md that describes the jazz agent run <workflow> command. It will include: design goals, UX considerations, config schema, resolution order, execution model, safety guarantees, and practical examples.\" \u2192 then call write_file tool\n\n\u2705 Good: \"I'm updating the agent prompt to add a new section about explaining actions before tool calls. This will help agents provide better transparency. The changes add a new subsection under Risk Calibration with examples and clear patterns to follow.\" \u2192 then call write_file or modify_file tool\n\n\u274C Bad: Just calling write_file with no prior explanation\n\nYou don't need to ask for permission (the tool system handles that), but you must explain your intent and the content structure before invoking the tool.\n\n# Web Search\n\nUse web search when:\n- Current events, recent releases, breaking changes\n- Error messages you don't recognize\n- Documentation for unfamiliar tools\n- Information that changes frequently\n\nChain them: search for how to do X \u2192 execute locally with CLI \u2192 use skill for output format\n\n# Error Handling\n\n- Read the actual error message\n- Distinguish: missing tool vs permission issue vs syntax error vs runtime failure\n- Try obvious fix first\n- If blocked, try alternative approach before giving up\n- For transient failures: retry with backoff\n- Never silently swallow errors\n\n# Security (Non-Negotiable)\n\n- Never output secrets, tokens, API keys, credentials\n- Redact sensitive data from command output\n- Don't commit secrets\n- Ask before sending data to external services\n- Refuse to assist with malicious code, exploits, malware\n\n# Output Style\n\n- Show your reasoning for non-obvious approaches\n- Commands should be copy-paste reproducible\n- State what you did after complex operations\n- No unnecessary preamble or postamble\n- Make sure you have solved the user's problem before responding\n\n\nWhen you solve a problem through inference or clever routing mention what you did.\n\n# When to Ask vs. Figure It Out\n\n**Figure it out yourself**:\n- Missing context you can infer or fetch\n- Tool preferences (try what's available)\n- Reasonable defaults\n- Which skill applies to the task\n\n**Ask the user** (using the `ask_user_question` tool):\n- Ambiguous intent where wrong choice causes harm\n- Mutually exclusive approaches with real tradeoffs\n- Destructive operations with unclear scope\n- Sensitive data or external service authorization\n\nDefault to action over asking when the operation is safe and reversible.\n\nExecute efficiently and safely. Risky operations will automatically prompt for user confirmation. Always provide a clear rollback plan when making changes.\n";
|
|
2
2
|
//# sourceMappingURL=system.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/prompts/default/system.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/prompts/default/system.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,g3XA+P1B,CAAC"}
|
|
@@ -31,7 +31,10 @@ export interface ApprovalToolConfig<R, Args extends Record<string, unknown>> {
|
|
|
31
31
|
readonly parameters: z.ZodTypeAny;
|
|
32
32
|
readonly riskLevel?: ToolRiskLevel;
|
|
33
33
|
readonly validate?: ToolValidator<Args>;
|
|
34
|
-
readonly approvalMessage: (args: Args, context: ToolExecutionContext) => Effect.Effect<string
|
|
34
|
+
readonly approvalMessage: (args: Args, context: ToolExecutionContext) => Effect.Effect<string | {
|
|
35
|
+
message: string;
|
|
36
|
+
previewDiff?: string;
|
|
37
|
+
}, Error, R>;
|
|
35
38
|
readonly approvalErrorMessage?: string;
|
|
36
39
|
readonly handler: (args: Args, context: ToolExecutionContext) => Effect.Effect<ToolExecutionResult, Error, R>;
|
|
37
40
|
readonly createSummary?: (result: ToolExecutionResult) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-tool.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/tools/base-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAO9E,MAAM,WAAW,mBAAmB,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvE,QAAQ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G;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAgEF,KAAK,YAAY,GAAG,UAAU,CAAC,UAAU,GAAG,wBAAwB,CAAC;AAyJrE,wBAAgB,mBAAmB,IAAI,gBAAgB,CAAC,YAAY,CAAC,CAuIpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/tools/fs/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EAAE,KAAK,wBAAwB,EAA+B,MAAM,sBAAsB,CAAC;AAGlG,OAAO,EAA+C,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQlG,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAgBF,KAAK,aAAa,GAAG,UAAU,CAAC,UAAU,GAAG,wBAAwB,CAAC;AAMtE,wBAAgB,oBAAoB,IAAI,gBAAgB,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/tools/fs/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EAAE,KAAK,wBAAwB,EAA+B,MAAM,sBAAsB,CAAC;AAGlG,OAAO,EAA+C,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQlG,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAgBF,KAAK,aAAa,GAAG,UAAU,CAAC,UAAU,GAAG,wBAAwB,CAAC;AAMtE,wBAAgB,oBAAoB,IAAI,gBAAgB,CAAC,aAAa,CAAC,CAyItE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tools.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/tools/mcp-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAK5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQhD,MAAM,MAAM,mBAAmB,GAC3B,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp-tools.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/tools/mcp-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iCAAiC,CA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C,CA6BhF;AAGD,wBAAgB,iBAAiB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAS5E;AAGD,wBAAgB,iBAAiB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAuC5E;AAGD,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAS7E;AAGD,wBAAgB,gBAAgB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CA+C3E;AAGD,wBAAgB,mBAAmB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAS9E;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CASnF;AAGD,wBAAgB,oBAAoB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CAO/E;AAGD,wBAAgB,4BAA4B,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,CAAC,CASvF;AAYD,wBAAgB,2BAA2B,IAAI,KAAK,CAAC,KAAK,CACxD,KAAK,EACL,KAAK,EACL,2BAA2B,CAC5B,CAEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-interaction-tools.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/tools/user-interaction-tools.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"user-interaction-tools.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/tools/user-interaction-tools.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAsD9E,eAAO,MAAM,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAuDxD,CAAC"}
|
|
@@ -11,6 +11,13 @@ export interface UserInputRequest {
|
|
|
11
11
|
readonly question: string;
|
|
12
12
|
readonly suggestions: readonly Suggestion[];
|
|
13
13
|
readonly allowCustom: boolean;
|
|
14
|
+
readonly allowMultiple?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FilePickerRequest {
|
|
17
|
+
readonly message: string;
|
|
18
|
+
readonly basePath?: string | undefined;
|
|
19
|
+
readonly extensions?: readonly string[] | undefined;
|
|
20
|
+
readonly includeDirectories?: boolean | undefined;
|
|
14
21
|
}
|
|
15
22
|
export interface PresentationService {
|
|
16
23
|
readonly presentThinking: (agentName: string, isFirstIteration: boolean) => Effect.Effect<void, never>;
|
|
@@ -30,6 +37,7 @@ export interface PresentationService {
|
|
|
30
37
|
readonly requestApproval: (request: ApprovalRequest) => Effect.Effect<ApprovalOutcome, never>;
|
|
31
38
|
readonly signalToolExecutionStarted: () => Effect.Effect<void, never>;
|
|
32
39
|
readonly requestUserInput: (request: UserInputRequest) => Effect.Effect<string, never>;
|
|
40
|
+
readonly requestFilePicker: (request: FilePickerRequest) => Effect.Effect<string, never>;
|
|
33
41
|
}
|
|
34
42
|
export interface StreamingRendererConfig {
|
|
35
43
|
readonly displayConfig: DisplayConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK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AAC;IAWvF,QAAQ,CAAC,iBAAiB,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAC1F;AAKD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CAC9E;AAKD,MAAM,WAAW,iBAAiB;IAIhC,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAKzE,QAAQ,CAAC,mBAAmB,EAAE,CAC5B,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,KACzB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAKhC,QAAQ,CAAC,KAAK,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAKjD,QAAQ,CAAC,KAAK,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;CAClD;AAKD,eAAO,MAAM,sBAAsB,uDAC6B,CAAC"}
|
|
@@ -10,8 +10,7 @@ export interface TerminalService {
|
|
|
10
10
|
readonly success: (message: string) => Effect.Effect<void, never>;
|
|
11
11
|
readonly error: (message: string) => Effect.Effect<void, never>;
|
|
12
12
|
readonly warn: (message: string) => Effect.Effect<void, never>;
|
|
13
|
-
readonly log: (message: TerminalOutput
|
|
14
|
-
readonly updateLog: (id: string, message: TerminalOutput) => Effect.Effect<void, never>;
|
|
13
|
+
readonly log: (message: TerminalOutput) => Effect.Effect<string | undefined, never>;
|
|
15
14
|
readonly debug: (message: string, meta?: Record<string, unknown>) => Effect.Effect<void, never>;
|
|
16
15
|
readonly heading: (message: string) => Effect.Effect<void, never>;
|
|
17
16
|
readonly list: (items: string[]) => Effect.Effect<void, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/terminal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAMzC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAQD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,eAAe,CAAC;AAKtD,wBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,GAAG,eAAe,CAElD;AASD,MAAM,WAAW,eAAe;IAI9B,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAK/D,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAKlE,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAKhE,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"terminal.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/terminal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,Q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CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,KAAK,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAM7F,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,MAAM,EAC1B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;QACP,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,CAAC,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,CAAC;KACjF,KACE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,EAAE,KAAK,CAAC,CAAC;IAKzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,MAAM,EAC5B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;QACP,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,CAAC,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,EAAE,CAAC;QAChF,OAAO,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;KACxB,KACE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAOxC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAMjE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,kBAAkB,+CAAyD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headless-presentation-service.d.ts","sourceRoot":"","sources":["../../../src/core/presentation/headless-presentation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAU,MAAM,QAAQ,CAAC;AAG/C,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"headless-presentation-service.d.ts","sourceRoot":"","sources":["../../../src/core/presentation/headless-presentation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAU,MAAM,QAAQ,CAAC;AAG/C,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,gCAAgC,CAAC;AAoHxC,eAAO,MAAM,gCAAgC,gDAS5C,CAAC"}
|
|
@@ -35,12 +35,14 @@ export interface ApprovalRequiredResult {
|
|
|
35
35
|
readonly message: string;
|
|
36
36
|
readonly executeToolName: string;
|
|
37
37
|
readonly executeArgs: Record<string, unknown>;
|
|
38
|
+
readonly previewDiff?: string;
|
|
38
39
|
}
|
|
39
40
|
export interface ApprovalRequest {
|
|
40
41
|
readonly toolName: string;
|
|
41
42
|
readonly message: string;
|
|
42
43
|
readonly executeToolName: string;
|
|
43
44
|
readonly executeArgs: Record<string, unknown>;
|
|
45
|
+
readonly previewDiff?: string;
|
|
44
46
|
}
|
|
45
47
|
export type ApprovalOutcome = {
|
|
46
48
|
readonly approved: true;
|