@whisperr/wizard 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +16 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7,6 +7,12 @@ import * as p from "@clack/prompts";
|
|
|
7
7
|
// src/core/config.ts
|
|
8
8
|
var DEFAULT_API_BASE = "https://api.whisperr.net";
|
|
9
9
|
var DEFAULT_MODEL = "claude-sonnet-4-6";
|
|
10
|
+
var DEFAULT_EFFORT = "medium";
|
|
11
|
+
var EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
12
|
+
function resolveEffort() {
|
|
13
|
+
const raw = (process.env.WHISPERR_WIZARD_EFFORT ?? "").toLowerCase();
|
|
14
|
+
return EFFORT_LEVELS.includes(raw) ? raw : DEFAULT_EFFORT;
|
|
15
|
+
}
|
|
10
16
|
function resolveConfig(flags = {}) {
|
|
11
17
|
const apiBaseUrl = (flags.apiBaseUrl ?? process.env.WHISPERR_WIZARD_API_BASE ?? DEFAULT_API_BASE).replace(/\/+$/, "");
|
|
12
18
|
const llmBaseUrl = (process.env.WHISPERR_WIZARD_LLM_BASE ?? `${apiBaseUrl}/wizard/llm`).replace(/\/+$/, "");
|
|
@@ -18,6 +24,7 @@ function resolveConfig(flags = {}) {
|
|
|
18
24
|
apiBaseUrl,
|
|
19
25
|
llmBaseUrl,
|
|
20
26
|
model: flags.model ?? process.env.WHISPERR_WIZARD_MODEL ?? DEFAULT_MODEL,
|
|
27
|
+
effort: resolveEffort(),
|
|
21
28
|
maxTurns: Number(process.env.WHISPERR_WIZARD_MAX_TURNS ?? 55),
|
|
22
29
|
directAnthropicKey,
|
|
23
30
|
offline
|
|
@@ -1135,6 +1142,7 @@ async function runIntegrationAgent(opts) {
|
|
|
1135
1142
|
systemPrompt: systemPrompt9,
|
|
1136
1143
|
repoPath,
|
|
1137
1144
|
model: config.model,
|
|
1145
|
+
effort: config.effort,
|
|
1138
1146
|
maxTurns: 35,
|
|
1139
1147
|
progress
|
|
1140
1148
|
});
|
|
@@ -1164,6 +1172,7 @@ ${core.summary}`);
|
|
|
1164
1172
|
systemPrompt: systemPrompt9,
|
|
1165
1173
|
repoPath,
|
|
1166
1174
|
model: config.model,
|
|
1175
|
+
effort: config.effort,
|
|
1167
1176
|
maxTurns: config.maxTurns,
|
|
1168
1177
|
progress
|
|
1169
1178
|
});
|
|
@@ -1181,7 +1190,7 @@ ${events.summary}`);
|
|
|
1181
1190
|
};
|
|
1182
1191
|
}
|
|
1183
1192
|
async function runPass(opts) {
|
|
1184
|
-
const { prompt, systemPrompt: systemPrompt9, repoPath, model, maxTurns, progress } = opts;
|
|
1193
|
+
const { prompt, systemPrompt: systemPrompt9, repoPath, model, effort, maxTurns, progress } = opts;
|
|
1185
1194
|
let summary = "";
|
|
1186
1195
|
let costUsd = 0;
|
|
1187
1196
|
let ok = false;
|
|
@@ -1192,6 +1201,11 @@ async function runPass(opts) {
|
|
|
1192
1201
|
model,
|
|
1193
1202
|
cwd: repoPath,
|
|
1194
1203
|
systemPrompt: systemPrompt9,
|
|
1204
|
+
// Adaptive thinking (Claude decides depth per step) + an explicit effort
|
|
1205
|
+
// level. Sonnet 4.6 supports both; we set them rather than rely on SDK
|
|
1206
|
+
// defaults so the behavior is pinned regardless of SDK version.
|
|
1207
|
+
thinking: { type: "adaptive" },
|
|
1208
|
+
effort,
|
|
1195
1209
|
allowedTools: ["Read", "Edit", "Write", "Bash", "Glob", "Grep"],
|
|
1196
1210
|
permissionMode: "bypassPermissions",
|
|
1197
1211
|
maxTurns,
|
|
@@ -1771,7 +1785,7 @@ async function main() {
|
|
|
1771
1785
|
return;
|
|
1772
1786
|
}
|
|
1773
1787
|
if ("version" in parsed) {
|
|
1774
|
-
console.log("0.1.
|
|
1788
|
+
console.log("0.1.9");
|
|
1775
1789
|
return;
|
|
1776
1790
|
}
|
|
1777
1791
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whisperr/wizard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Whisperr Wizard — one command to integrate the Whisperr SDK into your app. Authenticates with your onboarded account and uses an AI coding agent to wire up identify() and your business events automatically.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|