@denizokcu/haze 0.9.0 → 0.10.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.
- package/CHANGELOG.md +57 -17
- package/README.md +119 -64
- package/dist/cli/chat/chatMetrics.d.ts +17 -1
- package/dist/cli/chat/chatMetrics.js +22 -5
- package/dist/cli/chat/contextReport.d.ts +11 -0
- package/dist/cli/chat/contextReport.js +44 -0
- package/dist/cli/chat/fileMentionSuggestions.d.ts +29 -0
- package/dist/cli/chat/fileMentionSuggestions.js +91 -0
- package/dist/cli/chat/inputSuggestions.d.ts +5 -0
- package/dist/cli/chat/inputSuggestions.js +17 -3
- package/dist/cli/chat/sessionLifecycle.d.ts +58 -0
- package/dist/cli/chat/sessionLifecycle.js +155 -0
- package/dist/cli/chat/sessionRecorder.js +7 -9
- package/dist/cli/chat/startupInfo.d.ts +1 -0
- package/dist/cli/chat/startupInfo.js +11 -0
- package/dist/cli/chat/tips.d.ts +21 -0
- package/dist/cli/chat/tips.js +43 -0
- package/dist/cli/chat/wizardDispatch.d.ts +64 -0
- package/dist/cli/chat/wizardDispatch.js +645 -0
- package/dist/cli/commands/chat.d.ts +1 -0
- package/dist/cli/commands/chat.js +181 -700
- package/dist/cli/commands/chatModes.d.ts +1 -1
- package/dist/cli/commands/chatModes.js +7 -2
- package/dist/cli/commands/commandHelp.js +5 -3
- package/dist/cli/commands/commands.d.ts +3 -2
- package/dist/cli/commands/commands.js +12 -13
- package/dist/cli/commands/fleetCommand.d.ts +14 -0
- package/dist/cli/commands/fleetCommand.js +46 -0
- package/dist/cli/commands/formatters.d.ts +5 -0
- package/dist/cli/commands/formatters.js +33 -6
- package/dist/cli/commands/logsCommand.js +1 -7
- package/dist/cli/commands/modelCommand.js +1 -1
- package/dist/cli/commands/providerWizard.d.ts +1 -0
- package/dist/cli/commands/providerWizard.js +13 -0
- package/dist/cli/commands/runCommand.d.ts +1 -0
- package/dist/cli/commands/runCommand.js +25 -5
- package/dist/cli/commands/sessionPicker.d.ts +9 -0
- package/dist/cli/commands/sessionPicker.js +29 -0
- package/dist/cli/commands/settingsSummary.js +6 -4
- package/dist/cli/commands/skillConfirmRemove.js +4 -3
- package/dist/cli/commands/skillWizard.d.ts +2 -0
- package/dist/cli/commands/skillWizard.js +16 -6
- package/dist/cli/commands/streaming/idleTimer.d.ts +26 -0
- package/dist/cli/commands/streaming/idleTimer.js +24 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +2 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.js +4 -2
- package/dist/cli/commands/streaming/turnRuntime.js +6 -4
- package/dist/cli/commands/streaming.d.ts +13 -1
- package/dist/cli/commands/streaming.js +42 -19
- package/dist/cli/commands/wizardActions.d.ts +6 -0
- package/dist/cli/commands/wizardActions.js +6 -0
- package/dist/cli/commands/wizardSuggestions.d.ts +8 -0
- package/dist/cli/commands/wizardSuggestions.js +60 -12
- package/dist/cli/commands/wizardTransition.d.ts +4 -0
- package/dist/cli/commands/wizardTransition.js +1 -2
- package/dist/cli/index.js +17 -3
- package/dist/cli/terminalTitle.d.ts +6 -0
- package/dist/cli/terminalTitle.js +36 -0
- package/dist/config/inputHistory.d.ts +3 -3
- package/dist/config/inputHistory.js +12 -18
- package/dist/config/modelDiscovery.d.ts +20 -0
- package/dist/config/modelDiscovery.js +51 -0
- package/dist/config/providerPresets.d.ts +16 -4
- package/dist/config/providerPresets.js +263 -34
- package/dist/config/providers.d.ts +2 -0
- package/dist/config/providers.js +7 -0
- package/dist/config/settings.d.ts +22 -0
- package/dist/config/settings.js +29 -1
- package/dist/config/skillSettings.d.ts +6 -13
- package/dist/config/skillSettings.js +20 -19
- package/dist/core/agent/budgets.d.ts +26 -0
- package/dist/core/agent/budgets.js +34 -0
- package/dist/core/agent/compaction.js +17 -3
- package/dist/core/agent/contextBudget.d.ts +8 -0
- package/dist/core/agent/contextBudget.js +29 -0
- package/dist/core/agent/errors.js +6 -2
- package/dist/core/agent/events.d.ts +12 -0
- package/dist/core/agent/toolOutputStore.d.ts +5 -0
- package/dist/core/agent/toolOutputStore.js +18 -1
- package/dist/core/agent/workState.d.ts +1 -1
- package/dist/core/agent/workState.js +0 -4
- package/dist/core/attachments/imageAttachments.d.ts +90 -0
- package/dist/core/attachments/imageAttachments.js +245 -0
- package/dist/core/attachments/readBlessings.d.ts +37 -0
- package/dist/core/attachments/readBlessings.js +79 -0
- package/dist/core/goal/requestClassifier.d.ts +0 -3
- package/dist/core/goal/requestClassifier.js +0 -13
- package/dist/core/io/boundedRead.js +76 -29
- package/dist/core/limits/byteBudgets.d.ts +5 -0
- package/dist/core/limits/byteBudgets.js +5 -0
- package/dist/core/limits/textBudgets.d.ts +23 -0
- package/dist/core/limits/textBudgets.js +23 -0
- package/dist/core/process/backgroundRegistry.d.ts +35 -0
- package/dist/core/process/backgroundRegistry.js +194 -0
- package/dist/core/process/runBoundedProcess.d.ts +3 -0
- package/dist/core/process/runBoundedProcess.js +65 -29
- package/dist/core/safety/urlGuard.d.ts +2 -1
- package/dist/core/safety/urlGuard.js +3 -2
- package/dist/core/session/sessionSlimming.js +47 -4
- package/dist/core/session/sessionStore.d.ts +37 -0
- package/dist/core/session/sessionStore.js +95 -9
- package/dist/core/subagent/contracts.d.ts +116 -0
- package/dist/core/subagent/contracts.js +54 -0
- package/dist/core/subagent/executionProfiles.d.ts +28 -0
- package/dist/core/subagent/executionProfiles.js +45 -0
- package/dist/core/subagent/subagentCoordinator.d.ts +74 -0
- package/dist/core/subagent/subagentCoordinator.js +134 -0
- package/dist/core/subagent/subagentRunner.d.ts +211 -145
- package/dist/core/subagent/subagentRunner.js +228 -98
- package/dist/core/subagent/workspaceMutationPolicy.d.ts +11 -0
- package/dist/core/subagent/workspaceMutationPolicy.js +52 -0
- package/dist/core/tasks/taskStorage.js +12 -1
- package/dist/llm/client.d.ts +20 -29
- package/dist/llm/client.js +29 -28
- package/dist/llm/hazeTools.d.ts +2013 -78
- package/dist/llm/hazeTools.js +16 -7
- package/dist/llm/lsp.d.ts +2 -0
- package/dist/llm/lsp.js +18 -3
- package/dist/llm/requestContext.d.ts +22 -1
- package/dist/llm/requestContext.js +45 -5
- package/dist/llm/systemPrompt.d.ts +4 -1
- package/dist/llm/systemPrompt.js +14 -4
- package/dist/llm/toolResultTypes.d.ts +1 -1
- package/dist/llm/tools/bashTool.d.ts +874 -32
- package/dist/llm/tools/bashTool.js +25 -4
- package/dist/llm/tools/fetchTool.d.ts +26 -26
- package/dist/llm/tools/fetchTool.js +1 -1
- package/dist/llm/tools/fileToolShared.d.ts +2 -1
- package/dist/llm/tools/fileToolShared.js +5 -5
- package/dist/llm/tools/grepRunner.d.ts +5 -0
- package/dist/llm/tools/grepRunner.js +52 -71
- package/dist/llm/tools/outputCap.d.ts +2 -6
- package/dist/llm/tools/outputCap.js +2 -6
- package/dist/llm/tools/processTool.d.ts +1077 -0
- package/dist/llm/tools/processTool.js +41 -0
- package/dist/llm/tools/toolContext.d.ts +8 -0
- package/dist/llm/tools/toolContext.js +22 -11
- package/dist/llm/tools/workspaceFile.d.ts +9 -1
- package/dist/llm/tools/workspaceFile.js +33 -4
- package/dist/llm/webFetch.js +24 -11
- package/dist/llm/workerContext.d.ts +18 -0
- package/dist/llm/workerContext.js +55 -0
- package/dist/skills/SkillLoader.d.ts +2 -2
- package/dist/skills/SkillRegistry.d.ts +3 -2
- package/dist/skills/SkillRegistry.js +43 -13
- package/dist/skills/builder/SkillBuilder.d.ts +3 -0
- package/dist/skills/builder/SkillBuilder.js +23 -5
- package/dist/skills/skillTools.js +11 -4
- package/dist/skills/types.d.ts +6 -1
- package/dist/ui/components/TextInput.d.ts +5 -2
- package/dist/ui/components/TextInput.js +76 -8
- package/dist/utils/format.d.ts +2 -0
- package/dist/utils/format.js +8 -0
- package/dist/utils/fs.d.ts +0 -1
- package/dist/utils/fs.js +0 -4
- package/dist/utils/openPath.d.ts +2 -0
- package/dist/utils/openPath.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { HazeMcpServer, HazeProviderSettings, HazeSettings } from '../../config/settings.js';
|
|
2
|
+
import type { HazeLspServer } from '../../config/lspSettings.js';
|
|
3
|
+
import type { LoadedSkill, SkillSource } from '../../skills/types.js';
|
|
4
|
+
import type { SessionSummary } from '../../core/session/sessionStore.js';
|
|
5
|
+
import type { Mode } from '../commands/chatModes.js';
|
|
6
|
+
/**
|
|
7
|
+
* Wizard submit dispatch (CR-006): one table-driven entry point for every
|
|
8
|
+
* picker/wizard mode. Handlers call the pure `*Wizard.ts` result functions and
|
|
9
|
+
* apply the shared settingsPatch/mode/message shape, so `chat.tsx` stays
|
|
10
|
+
* orchestration glue instead of a 150-line if-chain.
|
|
11
|
+
*/
|
|
12
|
+
export interface WizardDispatchDeps {
|
|
13
|
+
settings: HazeSettings;
|
|
14
|
+
skills: LoadedSkill[];
|
|
15
|
+
modelProviderFilter: string | undefined;
|
|
16
|
+
selectedProviderName: string | undefined;
|
|
17
|
+
selectedSkillName: string | undefined;
|
|
18
|
+
selectedLspName: string | undefined;
|
|
19
|
+
selectedMcpName: string | undefined;
|
|
20
|
+
sessions?: SessionSummary[];
|
|
21
|
+
selectedSessionId?: string;
|
|
22
|
+
providerDraft: Partial<HazeProviderSettings>;
|
|
23
|
+
lspDraft: Partial<HazeLspServer>;
|
|
24
|
+
mcpDraft: Partial<HazeMcpServer>;
|
|
25
|
+
skillDraft: {
|
|
26
|
+
name?: string;
|
|
27
|
+
scope?: SkillSource;
|
|
28
|
+
};
|
|
29
|
+
setMode: (mode: Mode) => void;
|
|
30
|
+
setSettings: (next: HazeSettings) => void;
|
|
31
|
+
setSelectedProviderName: (name: string | undefined) => void;
|
|
32
|
+
setSelectedSkillName: (name: string | undefined) => void;
|
|
33
|
+
setSelectedLspName: (name: string | undefined) => void;
|
|
34
|
+
setSelectedMcpName: (name: string | undefined) => void;
|
|
35
|
+
setSelectedSessionId?: (id: string | undefined) => void;
|
|
36
|
+
resumeSessionById?: (id: string) => Promise<boolean>;
|
|
37
|
+
forkSessionById?: (id: string) => Promise<boolean>;
|
|
38
|
+
setModelProviderFilter: (filter: string | undefined) => void;
|
|
39
|
+
setProviderDraft: (draft: Partial<HazeProviderSettings>) => void;
|
|
40
|
+
setSkillDraft: (draft: {
|
|
41
|
+
name?: string;
|
|
42
|
+
scope?: SkillSource;
|
|
43
|
+
}) => void;
|
|
44
|
+
setLspDraft: (draft: Partial<HazeLspServer>) => void;
|
|
45
|
+
setMcpDraft: (draft: Partial<HazeMcpServer>) => void;
|
|
46
|
+
setDiscoveredModels: (models: string[]) => void;
|
|
47
|
+
/** Curated preset models pinned atop discovered ones; cleared with discovered models. */
|
|
48
|
+
setSuggestedModels: (models: string[]) => void;
|
|
49
|
+
showMessage: (message: string | undefined) => void;
|
|
50
|
+
refreshSkills: () => Promise<unknown>;
|
|
51
|
+
setBusyLabel: (label: string) => void;
|
|
52
|
+
setBusy: (busy: boolean) => void;
|
|
53
|
+
/** Busy label to restore when a skill creation finishes. */
|
|
54
|
+
idleBusyLabel: string;
|
|
55
|
+
}
|
|
56
|
+
export interface WizardDispatch {
|
|
57
|
+
/** Handle the value for wizard/picker modes; returns false for non-wizard modes. */
|
|
58
|
+
dispatch: (mode: Mode, value: string) => Promise<boolean>;
|
|
59
|
+
/** Exposed for the MCP field-transition path in submit(). */
|
|
60
|
+
finishMcpCustom: (keyValue?: string, draft?: Partial<HazeMcpServer>) => Promise<void>;
|
|
61
|
+
/** Exposed for the provider field-transition path: discover models for a provider draft after its key step. */
|
|
62
|
+
discoverProviderModelsForDraft: (draft: Partial<HazeProviderSettings>) => Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
export declare function createWizardDispatch(deps: WizardDispatchDeps): WizardDispatch;
|