@denizokcu/haze 0.11.0 → 1.0.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 +23 -0
- package/README.md +23 -14
- package/SECURITY.md +3 -3
- package/dist/buildInfo.json +3 -3
- package/dist/cli/chat/chatMetrics.d.ts +2 -2
- package/dist/cli/chat/chatMetrics.js +1 -1
- package/dist/cli/chat/fileMentionSuggestions.js +1 -1
- package/dist/cli/chat/inputSuggestions.d.ts +8 -16
- package/dist/cli/chat/inputSuggestions.js +9 -41
- package/dist/cli/chat/messages.d.ts +0 -2
- package/dist/cli/chat/messages.js +2 -2
- package/dist/cli/chat/sessionLifecycle.d.ts +2 -1
- package/dist/cli/chat/turnState.d.ts +1 -1
- package/dist/cli/chat/wizardDispatch.d.ts +90 -28
- package/dist/cli/chat/wizardDispatch.js +250 -133
- package/dist/cli/commands/chat.js +14 -72
- package/dist/cli/commands/chatModes.d.ts +8 -1
- package/dist/cli/commands/chatModes.js +9 -44
- package/dist/cli/commands/doctor.js +1 -1
- package/dist/cli/commands/formatters.d.ts +3 -3
- package/dist/cli/commands/formatters.js +6 -25
- package/dist/cli/commands/providerWizard.js +2 -3
- package/dist/cli/commands/runCommand.js +1 -1
- package/dist/cli/commands/serverWizard.d.ts +34 -0
- package/dist/cli/commands/{mcpWizard.js → serverWizard.js} +44 -2
- package/dist/cli/commands/skillsWizard.d.ts +41 -0
- package/dist/cli/commands/{skillWizard.js → skillsWizard.js} +33 -11
- package/dist/cli/commands/streaming/abortCause.d.ts +2 -1
- package/dist/cli/commands/streaming/agentAttempt.d.ts +43 -0
- package/dist/cli/commands/streaming/agentAttempt.js +79 -0
- package/dist/cli/commands/streaming/attemptLifecycle.d.ts +56 -0
- package/dist/cli/commands/streaming/attemptLifecycle.js +110 -0
- package/dist/cli/commands/streaming/attemptOutcome.d.ts +96 -0
- package/dist/cli/commands/streaming/attemptOutcome.js +206 -0
- package/dist/cli/commands/streaming/attemptSetup.d.ts +78 -0
- package/dist/cli/commands/streaming/attemptSetup.js +167 -0
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +1 -1
- package/dist/cli/commands/streaming/goalCheckpoint.js +2 -2
- package/dist/cli/commands/streaming/goalSupervisor.js +9 -6
- package/dist/cli/commands/streaming/stallRecovery.d.ts +94 -0
- package/dist/cli/commands/streaming/stallRecovery.js +105 -0
- package/dist/cli/commands/streaming/streamLoop.d.ts +72 -0
- package/dist/cli/commands/streaming/streamLoop.js +448 -0
- package/dist/cli/commands/streaming/toolCallRecovery.d.ts +14 -0
- package/dist/cli/commands/streaming/toolCallRecovery.js +56 -0
- package/dist/cli/commands/streaming/toolGroupRenderer.d.ts +2 -1
- package/dist/cli/commands/streaming/turnRuntime.d.ts +4 -0
- package/dist/cli/commands/streaming/turnRuntime.js +6 -0
- package/dist/cli/commands/streaming.d.ts +14 -25
- package/dist/cli/commands/streaming.js +43 -754
- package/dist/cli/commands/wizardFlow.d.ts +334 -0
- package/dist/cli/commands/wizardFlow.js +377 -0
- package/dist/cli/contextReport.js +3 -0
- package/dist/cli/index.js +1 -1
- package/dist/config/contextFiles.js +9 -3
- package/dist/config/inputHistory.d.ts +0 -1
- package/dist/config/inputHistory.js +1 -1
- package/dist/config/modelDiscovery.d.ts +0 -15
- package/dist/config/modelDiscovery.js +1 -1
- package/dist/config/settings.d.ts +7 -0
- package/dist/config/settings.js +3 -0
- package/dist/config/skillSettings.js +4 -4
- package/dist/config/updateCheck.d.ts +0 -1
- package/dist/config/updateCheck.js +1 -1
- package/dist/core/agent/budgets.d.ts +63 -1
- package/dist/core/agent/budgets.js +84 -1
- package/dist/core/agent/compaction.js +1 -1
- package/dist/core/agent/completionController.d.ts +7 -13
- package/dist/core/agent/completionController.js +17 -8
- package/dist/core/agent/contextBudget.d.ts +0 -4
- package/dist/core/agent/contextBudget.js +3 -3
- package/dist/core/agent/errors.d.ts +0 -1
- package/dist/core/agent/errors.js +1 -1
- package/dist/core/agent/events.d.ts +5 -1
- package/dist/core/{goal/completionPolicy.d.ts → agent/goalPolicy.d.ts} +18 -0
- package/dist/core/agent/goalPolicy.js +106 -0
- package/dist/core/agent/requestAssembly.d.ts +2 -2
- package/dist/core/agent/requestAssembly.js +16 -4
- package/dist/core/agent/toolCapabilities.d.ts +2 -2
- package/dist/core/agent/toolCapabilities.js +5 -5
- package/dist/core/agent/toolOutputStore.js +1 -1
- package/dist/core/agent/toolResults.js +1 -1
- package/dist/core/agent/workState.d.ts +6 -3
- package/dist/core/agent/workState.js +62 -7
- package/dist/core/attachments/imageAttachments.js +90 -42
- package/dist/core/deadline.d.ts +0 -6
- package/dist/core/deadline.js +1 -1
- package/dist/core/io/boundedRead.js +1 -1
- package/dist/core/limits.d.ts +51 -0
- package/dist/core/limits.js +51 -0
- package/dist/core/log/llmLog.js +1 -1
- package/dist/core/process/backgroundRegistry.d.ts +2 -3
- package/dist/core/process/backgroundRegistry.js +10 -6
- package/dist/core/process/userShell.d.ts +16 -0
- package/dist/core/process/userShell.js +59 -0
- package/dist/core/safety/shellClassifier.d.ts +11 -0
- package/dist/core/safety/{bashClassifier.js → shellClassifier.js} +5 -3
- package/dist/core/safety/urlGuard.d.ts +1 -1
- package/dist/core/session/sessionSlimming.d.ts +0 -3
- package/dist/core/session/sessionSlimming.js +2 -3
- package/dist/core/session/sessionStore.d.ts +1 -0
- package/dist/core/session/sessionStore.js +39 -20
- package/dist/core/{bashOutput → shellOutput}/lineFilter.js +8 -2
- package/dist/core/{bashOutput → shellOutput}/reducers/search.d.ts +0 -1
- package/dist/core/{bashOutput → shellOutput}/reducers/search.js +1 -1
- package/dist/core/shellOutput/registry.d.ts +2 -0
- package/dist/core/{bashOutput → shellOutput}/registry.js +3 -3
- package/dist/core/{bashOutput → shellOutput}/types.d.ts +6 -5
- package/dist/core/subagent/contracts.d.ts +2 -14
- package/dist/core/subagent/contracts.js +3 -3
- package/dist/core/subagent/executionProfiles.js +2 -2
- package/dist/core/subagent/subagentRunner.js +3 -4
- package/dist/core/toolOutput/reduction.d.ts +0 -12
- package/dist/core/toolOutput/reduction.js +1 -1
- package/dist/core/validation/outputParser.d.ts +2 -2
- package/dist/llm/client.js +5 -1
- package/dist/llm/hazeTools.d.ts +139 -124
- package/dist/llm/hazeTools.js +14 -11
- package/dist/llm/initPrompt.js +1 -1
- package/dist/llm/lsp/client.d.ts +45 -0
- package/dist/llm/lsp/client.js +195 -0
- package/dist/llm/lsp/pool.d.ts +23 -0
- package/dist/llm/lsp/pool.js +86 -0
- package/dist/llm/lsp/protocol.d.ts +64 -0
- package/dist/llm/lsp/protocol.js +128 -0
- package/dist/llm/lsp/requests.d.ts +94 -0
- package/dist/llm/lsp/requests.js +119 -0
- package/dist/llm/lspTools.d.ts +3824 -570
- package/dist/llm/lspTools.js +65 -1
- package/dist/llm/openaiCodex.d.ts +0 -2
- package/dist/llm/openaiCodex.js +0 -4
- package/dist/llm/openaiCodexOAuth.d.ts +0 -3
- package/dist/llm/openaiCodexOAuth.js +6 -3
- package/dist/llm/requestContext.d.ts +5 -1
- package/dist/llm/requestContext.js +25 -2
- package/dist/llm/systemPrompt.d.ts +1 -0
- package/dist/llm/systemPrompt.js +13 -6
- package/dist/llm/toolResultTypes.d.ts +0 -14
- package/dist/llm/toolResultTypes.js +1 -4
- package/dist/llm/tools/editMatch.d.ts +0 -9
- package/dist/llm/tools/editMatch.js +1 -1
- package/dist/llm/tools/fetchTool.js +1 -1
- package/dist/llm/tools/fileToolShared.d.ts +4 -2
- package/dist/llm/tools/fileToolShared.js +9 -5
- package/dist/llm/tools/gitIgnore.d.ts +25 -32
- package/dist/llm/tools/gitIgnore.js +216 -98
- package/dist/llm/tools/grepParse.d.ts +2 -1
- package/dist/llm/tools/grepRunner.d.ts +1 -1
- package/dist/llm/tools/grepRunner.js +2 -2
- package/dist/llm/tools/outputCap.d.ts +2 -7
- package/dist/llm/tools/outputCap.js +3 -3
- package/dist/llm/tools/processTool.d.ts +16 -16
- package/dist/llm/tools/processTool.js +1 -1
- package/dist/llm/tools/readRecovery.d.ts +0 -2
- package/dist/llm/tools/readRecovery.js +2 -2
- package/dist/llm/tools/{bashTool.d.ts → shellTool.d.ts} +123 -107
- package/dist/llm/tools/{bashTool.js → shellTool.js} +15 -14
- package/dist/llm/tools/toolContext.js +5 -5
- package/dist/llm/tools/workspaceFile.d.ts +0 -1
- package/dist/llm/tools/workspaceFile.js +1 -6
- package/dist/llm/webFetch.d.ts +1 -1
- package/dist/skills/SkillLoader.d.ts +1 -11
- package/dist/skills/SkillLoader.js +1 -2
- package/dist/skills/types.d.ts +2 -1
- package/dist/utils/buildInfo.d.ts +6 -13
- package/dist/utils/buildInfo.js +6 -15
- package/dist/utils/fs.d.ts +7 -5
- package/dist/utils/fs.js +5 -2
- package/dist/utils/path.d.ts +0 -1
- package/dist/utils/path.js +1 -1
- package/package.json +6 -4
- package/dist/cli/commands/lspWizard.d.ts +0 -14
- package/dist/cli/commands/lspWizard.js +0 -44
- package/dist/cli/commands/mcpWizard.d.ts +0 -15
- package/dist/cli/commands/skillConfirmRemove.d.ts +0 -11
- package/dist/cli/commands/skillConfirmRemove.js +0 -20
- package/dist/cli/commands/skillCreation.d.ts +0 -12
- package/dist/cli/commands/skillCreation.js +0 -14
- package/dist/cli/commands/skillWizard.d.ts +0 -17
- package/dist/cli/commands/streaming/idleTimer.d.ts +0 -26
- package/dist/cli/commands/streaming/idleTimer.js +0 -24
- package/dist/cli/commands/streaming/turnOutcome.d.ts +0 -27
- package/dist/cli/commands/streaming/turnOutcome.js +0 -29
- package/dist/cli/commands/wizardActions.d.ts +0 -47
- package/dist/cli/commands/wizardActions.js +0 -47
- package/dist/cli/commands/wizardInput.d.ts +0 -4
- package/dist/cli/commands/wizardInput.js +0 -19
- package/dist/cli/commands/wizardPrompts.d.ts +0 -22
- package/dist/cli/commands/wizardPrompts.js +0 -58
- package/dist/cli/commands/wizardSuggestions.d.ts +0 -31
- package/dist/cli/commands/wizardSuggestions.js +0 -190
- package/dist/cli/commands/wizardTransition.d.ts +0 -37
- package/dist/cli/commands/wizardTransition.js +0 -43
- package/dist/core/agent/toolExecutionBudget.d.ts +0 -35
- package/dist/core/agent/toolExecutionBudget.js +0 -49
- package/dist/core/agent/turnBudget.d.ts +0 -35
- package/dist/core/agent/turnBudget.js +0 -27
- package/dist/core/bashOutput/ansi.d.ts +0 -1
- package/dist/core/bashOutput/ansi.js +0 -7
- package/dist/core/bashOutput/registry.d.ts +0 -4
- package/dist/core/goal/completionPolicy.js +0 -43
- package/dist/core/goal/requestClassifier.d.ts +0 -3
- package/dist/core/goal/requestClassifier.js +0 -18
- package/dist/core/goal/sessionGoal.d.ts +0 -8
- package/dist/core/goal/sessionGoal.js +0 -30
- package/dist/core/limits/byteBudgets.d.ts +0 -20
- package/dist/core/limits/byteBudgets.js +0 -20
- package/dist/core/limits/textBudgets.d.ts +0 -25
- package/dist/core/limits/textBudgets.js +0 -25
- package/dist/core/safety/bashClassifier.d.ts +0 -10
- package/dist/llm/lsp.d.ts +0 -149
- package/dist/llm/lsp.js +0 -368
- package/dist/ui/components/ErrorView.d.ts +0 -4
- package/dist/ui/components/ErrorView.js +0 -7
- package/dist/utils/yaml.d.ts +0 -2
- package/dist/utils/yaml.js +0 -8
- package/examples/skills/files/SKILL.md +0 -16
- package/examples/skills/files/examples/file-editing.md +0 -3
- /package/dist/core/{bashOutput → shellOutput}/command.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/command.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/lineFilter.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/content.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/content.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/gh.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/gh.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/git.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/git.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/validation.d.ts +0 -0
- /package/dist/core/{bashOutput → shellOutput}/reducers/validation.js +0 -0
- /package/dist/core/{bashOutput → shellOutput}/types.js +0 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import type { HazeMcpServer, HazeSettings } from '../../config/settings.js';
|
|
2
|
+
import type { LoadedSkill } from '../../skills/types.js';
|
|
3
|
+
import type { SessionSummary } from '../../core/session/sessionStore.js';
|
|
4
|
+
import type { TextInputSuggestion } from '../../ui/components/TextInput.js';
|
|
5
|
+
/**
|
|
6
|
+
* Wizard flow table (CR-006 successor): the single source of truth for every
|
|
7
|
+
* picker/wizard step. A step's kind, placeholder, suggestion list, and (for
|
|
8
|
+
* field-capture steps) its pure capture function all live in one entry, so
|
|
9
|
+
* adding a wizard step touches one table row — `chatModes.ts` derives the
|
|
10
|
+
* `Mode` union and the picker/masked/empty-submit classification from this
|
|
11
|
+
* table, and `chat/wizardDispatch.ts` drives the submits.
|
|
12
|
+
*
|
|
13
|
+
* Keep this module a leaf: it must not import the per-domain `*Wizard.ts`
|
|
14
|
+
* result modules or `chatModes.ts`, so the dependency graph stays acyclic
|
|
15
|
+
* (domain modules import the shared constants/helpers from here).
|
|
16
|
+
*/
|
|
17
|
+
export declare const PROVIDER_CHOICES: {
|
|
18
|
+
readonly addProvider: "add provider";
|
|
19
|
+
readonly custom: "custom";
|
|
20
|
+
};
|
|
21
|
+
export declare const PROVIDER_ACTIONS: {
|
|
22
|
+
readonly useProvider: "use provider";
|
|
23
|
+
readonly addModels: "add models";
|
|
24
|
+
readonly manageAccess: "set API key";
|
|
25
|
+
readonly signInChatGpt: "sign in with ChatGPT";
|
|
26
|
+
readonly markImageCapable: "mark image-capable";
|
|
27
|
+
readonly clearImageCapable: "clear image-capable";
|
|
28
|
+
readonly removeModels: "remove models";
|
|
29
|
+
readonly removeProvider: "remove provider";
|
|
30
|
+
};
|
|
31
|
+
export declare const MODEL_CHOICES: {
|
|
32
|
+
readonly addModels: "add models";
|
|
33
|
+
readonly enterModelNames: "enter model names";
|
|
34
|
+
};
|
|
35
|
+
export declare const SERVER_CHOICES: {
|
|
36
|
+
readonly addServer: "add server";
|
|
37
|
+
readonly custom: "custom";
|
|
38
|
+
};
|
|
39
|
+
export declare const COMMON_ACTIONS: {
|
|
40
|
+
readonly enable: "enable";
|
|
41
|
+
readonly disable: "disable";
|
|
42
|
+
};
|
|
43
|
+
export declare const LSP_ACTIONS: {
|
|
44
|
+
readonly removeServer: "remove server";
|
|
45
|
+
};
|
|
46
|
+
export declare const MCP_ACTIONS: {
|
|
47
|
+
readonly manageAccess: "set API key";
|
|
48
|
+
readonly removeServer: "remove server";
|
|
49
|
+
};
|
|
50
|
+
export declare const MCP_TRANSPORTS: {
|
|
51
|
+
readonly http: "http";
|
|
52
|
+
readonly sse: "sse";
|
|
53
|
+
readonly stdio: "stdio";
|
|
54
|
+
};
|
|
55
|
+
export declare const SKILL_CHOICES: {
|
|
56
|
+
readonly addSkill: "add skill";
|
|
57
|
+
};
|
|
58
|
+
export declare const SKILL_ACTIONS: {
|
|
59
|
+
readonly showInfo: "show info";
|
|
60
|
+
readonly validate: "validate";
|
|
61
|
+
readonly removeSkill: "remove skill";
|
|
62
|
+
};
|
|
63
|
+
export declare function commaList(value: string): string[];
|
|
64
|
+
export declare function commandParts(value: string): string[];
|
|
65
|
+
export declare function isYesConfirmation(value: string): boolean;
|
|
66
|
+
export declare function isValidUrl(value: string): boolean;
|
|
67
|
+
export declare function skillPickerValue(skill: LoadedSkill): string;
|
|
68
|
+
export declare function findSelectedSkill(skills: LoadedSkill[], selection: string | undefined): LoadedSkill | undefined;
|
|
69
|
+
export type NameCaptureResult = {
|
|
70
|
+
nextMode?: string;
|
|
71
|
+
draft?: {
|
|
72
|
+
name?: string;
|
|
73
|
+
};
|
|
74
|
+
message?: string;
|
|
75
|
+
systemMessage?: string;
|
|
76
|
+
};
|
|
77
|
+
export declare function captureProviderName(settings: HazeSettings, value: string): NameCaptureResult;
|
|
78
|
+
export declare function captureLspName(settings: HazeSettings, value: string): NameCaptureResult;
|
|
79
|
+
export declare function captureMcpName(settings: HazeSettings, value: string): NameCaptureResult;
|
|
80
|
+
export type FieldCaptureResult = {
|
|
81
|
+
draft?: Partial<HazeMcpServer>;
|
|
82
|
+
message?: string;
|
|
83
|
+
nextMode?: string;
|
|
84
|
+
systemMessage?: string;
|
|
85
|
+
};
|
|
86
|
+
export declare function captureProviderUrl(value: string): FieldCaptureResult;
|
|
87
|
+
export declare function captureMcpUrl(value: string): FieldCaptureResult;
|
|
88
|
+
export declare function captureMcpTransport(value: string): FieldCaptureResult;
|
|
89
|
+
export declare function captureMcpCommand(value: string): FieldCaptureResult;
|
|
90
|
+
export declare function providerSuggestions(settings: HazeSettings): TextInputSuggestion[];
|
|
91
|
+
export declare function providerActionSuggestions(settings: HazeSettings, selectedProviderName: string | undefined): TextInputSuggestion[];
|
|
92
|
+
export declare function presetSuggestions(): TextInputSuggestion[];
|
|
93
|
+
export declare function modelSuggestions(settings: HazeSettings, modelProviderFilter: string | undefined): TextInputSuggestion[];
|
|
94
|
+
export declare function modelAddProviderSuggestions(settings: HazeSettings): TextInputSuggestion[];
|
|
95
|
+
/**
|
|
96
|
+
* Model picker fed by live /models discovery. Curated `suggestedModels`
|
|
97
|
+
* (from provider presets) are pinned atop the discovered list when the
|
|
98
|
+
* endpoint actually serves them — stale curation entries simply don't pin.
|
|
99
|
+
*/
|
|
100
|
+
export declare function modelPickSuggestions(settings: HazeSettings, providerName: string | undefined, discoveredModels: string[], suggestedModels?: string[]): TextInputSuggestion[];
|
|
101
|
+
export declare function lspSuggestions(settings: HazeSettings): TextInputSuggestion[];
|
|
102
|
+
export declare function lspActionSuggestions(settings: HazeSettings, selectedLspName: string | undefined): TextInputSuggestion[];
|
|
103
|
+
export declare function mcpSuggestions(settings: HazeSettings): TextInputSuggestion[];
|
|
104
|
+
export declare function mcpActionSuggestions(settings: HazeSettings, selectedMcpName: string | undefined): TextInputSuggestion[];
|
|
105
|
+
export declare function mcpTransportSuggestions(): TextInputSuggestion[];
|
|
106
|
+
export declare function skillsSuggestions(settings: HazeSettings, skills: LoadedSkill[]): TextInputSuggestion[];
|
|
107
|
+
export declare function skillScopeSuggestions(): TextInputSuggestion[];
|
|
108
|
+
export declare function skillsActionSuggestions(settings: HazeSettings, skills: LoadedSkill[], selectedSkillName: string | undefined): TextInputSuggestion[];
|
|
109
|
+
type WizardStepKind = 'pick' | 'input' | 'masked-input' | 'confirm';
|
|
110
|
+
/** Inputs available to a step's suggestion builder (mirrors the picker state). */
|
|
111
|
+
export interface WizardSuggestionState {
|
|
112
|
+
settings: HazeSettings;
|
|
113
|
+
skills: LoadedSkill[];
|
|
114
|
+
sessions?: SessionSummary[];
|
|
115
|
+
selectedProviderName?: string;
|
|
116
|
+
modelProviderFilter?: string;
|
|
117
|
+
providerDraftName?: string;
|
|
118
|
+
discoveredModels?: string[];
|
|
119
|
+
suggestedModels?: string[];
|
|
120
|
+
selectedSkillName?: string;
|
|
121
|
+
selectedLspName?: string;
|
|
122
|
+
selectedMcpName?: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* One wizard step. `kind` drives the input behavior classification that
|
|
126
|
+
* `chatModes.ts` derives (`pick` → always-on suggestion picker, `masked-input`
|
|
127
|
+
* → masked input, `optional` → empty submit allowed, `confirm` → typed
|
|
128
|
+
* "yes" confirmation). Placeholders must stay user-stable.
|
|
129
|
+
*/
|
|
130
|
+
export interface WizardStepDef {
|
|
131
|
+
id: string;
|
|
132
|
+
kind: WizardStepKind;
|
|
133
|
+
placeholder: string;
|
|
134
|
+
/** Empty submission is valid (optional steps such as API keys). */
|
|
135
|
+
optional?: boolean;
|
|
136
|
+
suggestions: (state: WizardSuggestionState) => TextInputSuggestion[];
|
|
137
|
+
}
|
|
138
|
+
export declare const WIZARD_STEPS: readonly [{
|
|
139
|
+
readonly id: "sessions";
|
|
140
|
+
readonly kind: "pick";
|
|
141
|
+
readonly placeholder: "Choose a saved session";
|
|
142
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
143
|
+
}, {
|
|
144
|
+
readonly id: "sessionAction";
|
|
145
|
+
readonly kind: "pick";
|
|
146
|
+
readonly placeholder: "Resume or fork this session";
|
|
147
|
+
readonly suggestions: () => TextInputSuggestion[];
|
|
148
|
+
}, {
|
|
149
|
+
readonly id: "provider";
|
|
150
|
+
readonly kind: "pick";
|
|
151
|
+
readonly placeholder: "Choose provider";
|
|
152
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
153
|
+
}, {
|
|
154
|
+
readonly id: "providerAction";
|
|
155
|
+
readonly kind: "pick";
|
|
156
|
+
readonly placeholder: "Choose provider action";
|
|
157
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
158
|
+
}, {
|
|
159
|
+
readonly id: "providerAddPreset";
|
|
160
|
+
readonly kind: "pick";
|
|
161
|
+
readonly placeholder: "Choose a provider preset or custom";
|
|
162
|
+
readonly suggestions: () => TextInputSuggestion[];
|
|
163
|
+
}, {
|
|
164
|
+
readonly id: "providerAddName";
|
|
165
|
+
readonly kind: "input";
|
|
166
|
+
readonly placeholder: "Provider name";
|
|
167
|
+
readonly suggestions: () => never[];
|
|
168
|
+
}, {
|
|
169
|
+
readonly id: "providerAddUrl";
|
|
170
|
+
readonly kind: "input";
|
|
171
|
+
readonly placeholder: "https://example.com/v1";
|
|
172
|
+
readonly suggestions: () => never[];
|
|
173
|
+
}, {
|
|
174
|
+
readonly id: "providerAddKey";
|
|
175
|
+
readonly kind: "masked-input";
|
|
176
|
+
readonly placeholder: "API key, or blank for local";
|
|
177
|
+
readonly optional: true;
|
|
178
|
+
readonly suggestions: () => never[];
|
|
179
|
+
}, {
|
|
180
|
+
readonly id: "providerAddModels";
|
|
181
|
+
readonly kind: "input";
|
|
182
|
+
readonly placeholder: "model-a, model-b";
|
|
183
|
+
readonly suggestions: () => never[];
|
|
184
|
+
}, {
|
|
185
|
+
readonly id: "providerAppendModels";
|
|
186
|
+
readonly kind: "input";
|
|
187
|
+
readonly placeholder: "model-a, model-b";
|
|
188
|
+
readonly suggestions: () => never[];
|
|
189
|
+
}, {
|
|
190
|
+
readonly id: "providerSetKey";
|
|
191
|
+
readonly kind: "masked-input";
|
|
192
|
+
readonly placeholder: "API key";
|
|
193
|
+
readonly suggestions: () => never[];
|
|
194
|
+
}, {
|
|
195
|
+
readonly id: "providerRemoveModels";
|
|
196
|
+
readonly kind: "input";
|
|
197
|
+
readonly placeholder: "model-a, model-b";
|
|
198
|
+
readonly suggestions: () => never[];
|
|
199
|
+
}, {
|
|
200
|
+
readonly id: "providerConfirmRemove";
|
|
201
|
+
readonly kind: "confirm";
|
|
202
|
+
readonly placeholder: "Type \"yes\" to confirm";
|
|
203
|
+
readonly suggestions: () => never[];
|
|
204
|
+
}, {
|
|
205
|
+
readonly id: "model";
|
|
206
|
+
readonly kind: "pick";
|
|
207
|
+
readonly placeholder: "Choose model, or add model";
|
|
208
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
209
|
+
}, {
|
|
210
|
+
readonly id: "modelAddProvider";
|
|
211
|
+
readonly kind: "pick";
|
|
212
|
+
readonly placeholder: "Choose a provider to add models to";
|
|
213
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
214
|
+
}, {
|
|
215
|
+
readonly id: "modelPick";
|
|
216
|
+
readonly kind: "pick";
|
|
217
|
+
readonly placeholder: "Choose a model to add";
|
|
218
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
219
|
+
}, {
|
|
220
|
+
readonly id: "skills";
|
|
221
|
+
readonly kind: "pick";
|
|
222
|
+
readonly placeholder: "Choose a skill or add skill";
|
|
223
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
224
|
+
}, {
|
|
225
|
+
readonly id: "skillsAction";
|
|
226
|
+
readonly kind: "pick";
|
|
227
|
+
readonly placeholder: "show info, enable, disable, validate, or remove";
|
|
228
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
229
|
+
}, {
|
|
230
|
+
readonly id: "skillsAddName";
|
|
231
|
+
readonly kind: "input";
|
|
232
|
+
readonly placeholder: "Skill name (kebab-case, e.g. security-review)";
|
|
233
|
+
readonly suggestions: () => never[];
|
|
234
|
+
}, {
|
|
235
|
+
readonly id: "skillsAddScope";
|
|
236
|
+
readonly kind: "pick";
|
|
237
|
+
readonly placeholder: "Choose this project or global";
|
|
238
|
+
readonly suggestions: () => TextInputSuggestion[];
|
|
239
|
+
}, {
|
|
240
|
+
readonly id: "skillsAddDescription";
|
|
241
|
+
readonly kind: "input";
|
|
242
|
+
readonly placeholder: "Describe what the skill should do";
|
|
243
|
+
readonly suggestions: () => never[];
|
|
244
|
+
}, {
|
|
245
|
+
readonly id: "skillsConfirmRemove";
|
|
246
|
+
readonly kind: "confirm";
|
|
247
|
+
readonly placeholder: "Type \"yes\" to confirm";
|
|
248
|
+
readonly suggestions: () => never[];
|
|
249
|
+
}, {
|
|
250
|
+
readonly id: "lsp";
|
|
251
|
+
readonly kind: "pick";
|
|
252
|
+
readonly placeholder: "Choose LSP server or add server";
|
|
253
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
254
|
+
}, {
|
|
255
|
+
readonly id: "lspAction";
|
|
256
|
+
readonly kind: "pick";
|
|
257
|
+
readonly placeholder: "enable, disable, or remove server";
|
|
258
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
259
|
+
}, {
|
|
260
|
+
readonly id: "lspAddPreset";
|
|
261
|
+
readonly kind: "pick";
|
|
262
|
+
readonly placeholder: "Choose an LSP preset or custom";
|
|
263
|
+
readonly suggestions: () => TextInputSuggestion[];
|
|
264
|
+
}, {
|
|
265
|
+
readonly id: "lspAddName";
|
|
266
|
+
readonly kind: "input";
|
|
267
|
+
readonly placeholder: "LSP server name (e.g. typescript)";
|
|
268
|
+
readonly suggestions: () => never[];
|
|
269
|
+
}, {
|
|
270
|
+
readonly id: "lspAddCommand";
|
|
271
|
+
readonly kind: "input";
|
|
272
|
+
readonly placeholder: "Command (e.g. typescript-language-server --stdio)";
|
|
273
|
+
readonly suggestions: () => never[];
|
|
274
|
+
}, {
|
|
275
|
+
readonly id: "lspConfirmRemove";
|
|
276
|
+
readonly kind: "confirm";
|
|
277
|
+
readonly placeholder: "Type \"yes\" to confirm";
|
|
278
|
+
readonly suggestions: () => never[];
|
|
279
|
+
}, {
|
|
280
|
+
readonly id: "mcp";
|
|
281
|
+
readonly kind: "pick";
|
|
282
|
+
readonly placeholder: "Choose MCP server or add server";
|
|
283
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
284
|
+
}, {
|
|
285
|
+
readonly id: "mcpAction";
|
|
286
|
+
readonly kind: "pick";
|
|
287
|
+
readonly placeholder: "enable, disable, remove, or set key";
|
|
288
|
+
readonly suggestions: (s: WizardSuggestionState) => TextInputSuggestion[];
|
|
289
|
+
}, {
|
|
290
|
+
readonly id: "mcpAddPreset";
|
|
291
|
+
readonly kind: "pick";
|
|
292
|
+
readonly placeholder: "Choose an MCP preset or custom";
|
|
293
|
+
readonly suggestions: () => TextInputSuggestion[];
|
|
294
|
+
}, {
|
|
295
|
+
readonly id: "mcpAddName";
|
|
296
|
+
readonly kind: "input";
|
|
297
|
+
readonly placeholder: "MCP server name (e.g. context7)";
|
|
298
|
+
readonly suggestions: () => never[];
|
|
299
|
+
}, {
|
|
300
|
+
readonly id: "mcpAddTransport";
|
|
301
|
+
readonly kind: "pick";
|
|
302
|
+
readonly placeholder: "http, sse, or stdio";
|
|
303
|
+
readonly suggestions: () => TextInputSuggestion[];
|
|
304
|
+
}, {
|
|
305
|
+
readonly id: "mcpAddUrl";
|
|
306
|
+
readonly kind: "input";
|
|
307
|
+
readonly placeholder: "https://mcp.example.com/mcp";
|
|
308
|
+
readonly suggestions: () => never[];
|
|
309
|
+
}, {
|
|
310
|
+
readonly id: "mcpAddCommand";
|
|
311
|
+
readonly kind: "input";
|
|
312
|
+
readonly placeholder: "Command (e.g. npx -y @pkg/server)";
|
|
313
|
+
readonly suggestions: () => never[];
|
|
314
|
+
}, {
|
|
315
|
+
readonly id: "mcpAddKey";
|
|
316
|
+
readonly kind: "masked-input";
|
|
317
|
+
readonly placeholder: "API key, or blank to skip";
|
|
318
|
+
readonly optional: true;
|
|
319
|
+
readonly suggestions: () => never[];
|
|
320
|
+
}, {
|
|
321
|
+
readonly id: "mcpSetKey";
|
|
322
|
+
readonly kind: "masked-input";
|
|
323
|
+
readonly placeholder: "API key";
|
|
324
|
+
readonly suggestions: () => never[];
|
|
325
|
+
}, {
|
|
326
|
+
readonly id: "mcpConfirmRemove";
|
|
327
|
+
readonly kind: "confirm";
|
|
328
|
+
readonly placeholder: "Type \"yes\" to confirm";
|
|
329
|
+
readonly suggestions: () => never[];
|
|
330
|
+
}];
|
|
331
|
+
export type WizardStepId = (typeof WIZARD_STEPS)[number]['id'];
|
|
332
|
+
/** Suggestions for a wizard mode, or undefined when the mode is not a wizard step ('chat'). */
|
|
333
|
+
export declare function wizardSuggestionsFor(mode: string, state: WizardSuggestionState): TextInputSuggestion[] | undefined;
|
|
334
|
+
export {};
|