@alumbwe/anvil 1.0.6 → 1.0.8
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/bundled.js +18 -20
- package/dist/bundled.js.map +5 -5
- package/package.json +1 -1
package/dist/bundled.js
CHANGED
|
@@ -292,7 +292,7 @@ var getBaseEnv = () => ({
|
|
|
292
292
|
ANVIL_EDITOR: process.env.ANVIL_EDITOR,
|
|
293
293
|
OPEN_TUI_THEME: process.env.OPEN_TUI_THEME,
|
|
294
294
|
OPENTUI_THEME: process.env.OPENTUI_THEME,
|
|
295
|
-
ANVIL_IS_BINARY:
|
|
295
|
+
ANVIL_IS_BINARY: "false",
|
|
296
296
|
ANVIL_CLI_VERSION: process.env.ANVIL_CLI_VERSION,
|
|
297
297
|
ANVIL_CLI_TARGET: process.env.ANVIL_CLI_TARGET,
|
|
298
298
|
ANVIL_RG_PATH: process.env.ANVIL_RG_PATH,
|
|
@@ -343,7 +343,7 @@ var getCliEnv = () => ({
|
|
|
343
343
|
ANVIL_EDITOR: process.env.ANVIL_EDITOR,
|
|
344
344
|
OPEN_TUI_THEME: process.env.OPEN_TUI_THEME,
|
|
345
345
|
OPENTUI_THEME: process.env.OPENTUI_THEME,
|
|
346
|
-
ANVIL_IS_BINARY:
|
|
346
|
+
ANVIL_IS_BINARY: "false",
|
|
347
347
|
ANVIL_CLI_VERSION: process.env.ANVIL_CLI_VERSION,
|
|
348
348
|
ANVIL_CLI_TARGET: process.env.ANVIL_CLI_TARGET,
|
|
349
349
|
ANVIL_RG_PATH: process.env.ANVIL_RG_PATH,
|
|
@@ -353,7 +353,7 @@ var getCliEnv = () => ({
|
|
|
353
353
|
ANVIL_LAUNCHER_PID: process.env.ANVIL_LAUNCHER_PID,
|
|
354
354
|
ANVIL_SHIP_LOGS: process.env.ANVIL_SHIP_LOGS,
|
|
355
355
|
ANVIL_NO_TERMINAL_WATCHDOG: process.env.ANVIL_NO_TERMINAL_WATCHDOG,
|
|
356
|
-
FREEBUFF_MODE:
|
|
356
|
+
FREEBUFF_MODE: "true"
|
|
357
357
|
}), getSystemProcessEnv = () => process.env;
|
|
358
358
|
var init_env = __esm(() => {
|
|
359
359
|
init_env_process();
|
|
@@ -394,17 +394,17 @@ var init_env_schema = __esm(() => {
|
|
|
394
394
|
});
|
|
395
395
|
clientEnvVars = clientEnvSchema.keyof().options;
|
|
396
396
|
clientProcessEnv = {
|
|
397
|
-
NEXT_PUBLIC_CB_ENVIRONMENT:
|
|
398
|
-
NEXT_PUBLIC_ANVIL_APP_URL:
|
|
397
|
+
NEXT_PUBLIC_CB_ENVIRONMENT: "dev",
|
|
398
|
+
NEXT_PUBLIC_ANVIL_APP_URL: "https://codebuff.com",
|
|
399
399
|
NEXT_PUBLIC_FREEBUFF_APP_URL: process.env.NEXT_PUBLIC_FREEBUFF_APP_URL,
|
|
400
|
-
NEXT_PUBLIC_SUPPORT_EMAIL:
|
|
401
|
-
NEXT_PUBLIC_POSTHOG_API_KEY:
|
|
402
|
-
NEXT_PUBLIC_POSTHOG_HOST_URL:
|
|
400
|
+
NEXT_PUBLIC_SUPPORT_EMAIL: "support@codebuff.com",
|
|
401
|
+
NEXT_PUBLIC_POSTHOG_API_KEY: "phc_placeholder",
|
|
402
|
+
NEXT_PUBLIC_POSTHOG_HOST_URL: "https://posthog.codebuff.test",
|
|
403
403
|
NEXT_PUBLIC_GRAVITY_PIXEL_ID: process.env.NEXT_PUBLIC_GRAVITY_PIXEL_ID,
|
|
404
|
-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:
|
|
405
|
-
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL:
|
|
404
|
+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: "pk_test_placeholder",
|
|
405
|
+
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL: "https://stripe.codebuff.test",
|
|
406
406
|
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID: process.env.NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID,
|
|
407
|
-
NEXT_PUBLIC_WEB_PORT:
|
|
407
|
+
NEXT_PUBLIC_WEB_PORT: "3000",
|
|
408
408
|
NEXT_PUBLIC_TURNSTILE_SITE_KEY: process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY,
|
|
409
409
|
NEXT_PUBLIC_RECAPTCHA_V2_SITE_KEY: process.env.NEXT_PUBLIC_RECAPTCHA_V2_SITE_KEY,
|
|
410
410
|
NEXT_PUBLIC_RECAPTCHA_V3_SITE_KEY: process.env.NEXT_PUBLIC_RECAPTCHA_V3_SITE_KEY,
|
|
@@ -39741,7 +39741,7 @@ function remapModelForDirectDeepSeek(model) {
|
|
|
39741
39741
|
return "deepseek-v4-flash";
|
|
39742
39742
|
return DEFAULT_DIRECT_DEEPSEEK_MODEL;
|
|
39743
39743
|
}
|
|
39744
|
-
var DEEPSEEK_BASE_URL = "https://api.deepseek.com", DEFAULT_DIRECT_DEEPSEEK_MODEL = "deepseek-v4-pro", getDirectDeepSeekApiKey = () =>
|
|
39744
|
+
var DEEPSEEK_BASE_URL = "https://api.deepseek.com", DEFAULT_DIRECT_DEEPSEEK_MODEL = "deepseek-v4-pro", getDirectDeepSeekApiKey = () => "sk-da16dbd07f4641ecb7e003af63a0241f", isDirectDeepSeekMode = () => Boolean(getDirectDeepSeekApiKey());
|
|
39745
39745
|
|
|
39746
39746
|
// ../common/src/util/promise.ts
|
|
39747
39747
|
async function withTimeout(promise, timeoutMs, timeoutMessage = `Operation timed out after ${timeoutMs}ms`) {
|
|
@@ -40171,7 +40171,7 @@ async function searchWithDuckDuckGo(params) {
|
|
|
40171
40171
|
}
|
|
40172
40172
|
async function directWebSearch(params) {
|
|
40173
40173
|
const { query, depth = "standard", fetch: fetch2, logger } = params;
|
|
40174
|
-
const serperApiKey =
|
|
40174
|
+
const serperApiKey = "54c30771b3796dc7d73dcbdecbd2a90b6660a6fa13d50d339eb54048eed65128";
|
|
40175
40175
|
if (serperApiKey) {
|
|
40176
40176
|
const serperResult = await searchWithSerper({
|
|
40177
40177
|
query,
|
|
@@ -73541,7 +73541,7 @@ var init_open_url = __esm(() => {
|
|
|
73541
73541
|
});
|
|
73542
73542
|
|
|
73543
73543
|
// src/utils/constants.ts
|
|
73544
|
-
var IS_FREEBUFF, END_SESSION_MESSAGE = "Ending session and returning to the model picker\u2026", HIDDEN_AGENT_IDS, COLLAPSED_BY_DEFAULT_TOOL_NAMES, shouldCollapseToolByDefault = (toolName37) => {
|
|
73544
|
+
var IS_FREEBUFF = false, END_SESSION_MESSAGE = "Ending session and returning to the model picker\u2026", HIDDEN_AGENT_IDS, COLLAPSED_BY_DEFAULT_TOOL_NAMES, shouldCollapseToolByDefault = (toolName37) => {
|
|
73545
73545
|
return COLLAPSED_BY_DEFAULT_TOOL_NAMES.includes(toolName37);
|
|
73546
73546
|
}, shouldHideAgent = (agentId) => {
|
|
73547
73547
|
return HIDDEN_AGENT_IDS.some((hiddenId) => agentId.includes(hiddenId));
|
|
@@ -73567,8 +73567,6 @@ var IS_FREEBUFF, END_SESSION_MESSAGE = "Ending session and returning to the mode
|
|
|
73567
73567
|
return MULTI_PROMPT_EDITOR_IDS.some((id) => agentType.includes(id));
|
|
73568
73568
|
}, CLI_HARNESS = "base3", HARNESS_MODE_IDS, AGENT_MODE_TO_ID, AGENT_MODES, AGENT_MODE_TO_COST_MODE;
|
|
73569
73569
|
var init_constants6 = __esm(() => {
|
|
73570
|
-
init_env();
|
|
73571
|
-
IS_FREEBUFF = getCliEnv().FREEBUFF_MODE === "true";
|
|
73572
73570
|
HIDDEN_AGENT_IDS = ["context-pruner"];
|
|
73573
73571
|
COLLAPSED_BY_DEFAULT_TOOL_NAMES = [
|
|
73574
73572
|
"set_output"
|
|
@@ -123963,7 +123961,7 @@ var FreebuffSupersededScreen = () => {
|
|
|
123963
123961
|
/* @__PURE__ */ jsx106("text", {
|
|
123964
123962
|
style: { fg: theme.foreground, marginBottom: 1 },
|
|
123965
123963
|
attributes: TextAttributes47.BOLD,
|
|
123966
|
-
children: "Another
|
|
123964
|
+
children: "Another Anvil instance took over this account."
|
|
123967
123965
|
}),
|
|
123968
123966
|
/* @__PURE__ */ jsx106("text", {
|
|
123969
123967
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
@@ -123971,7 +123969,7 @@ var FreebuffSupersededScreen = () => {
|
|
|
123971
123969
|
}),
|
|
123972
123970
|
/* @__PURE__ */ jsx106("text", {
|
|
123973
123971
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
123974
|
-
children: "Close the other instance, then restart
|
|
123972
|
+
children: "Close the other instance, then restart Anvil here."
|
|
123975
123973
|
}),
|
|
123976
123974
|
/* @__PURE__ */ jsx106("box", {
|
|
123977
123975
|
style: { marginTop: 1 },
|
|
@@ -127851,7 +127849,7 @@ function parseArgs({
|
|
|
127851
127849
|
} = {}) {
|
|
127852
127850
|
const program = new Command;
|
|
127853
127851
|
if (isFreebuff) {
|
|
127854
|
-
program.name("
|
|
127852
|
+
program.name("anvil").description("Anvil - AI coding assistant").version(version, "-v, --version", "Print the CLI version").option("--continue [conversation-id]", "Continue from a previous conversation (optionally specify a conversation id)").option("--cwd <directory>", "Set the working directory (default: current directory)").addArgument(new Argument("[command]", "Command to run").choices(["login"])).helpOption("-h, --help", "Show this help message");
|
|
127855
127853
|
} else {
|
|
127856
127854
|
program.name("anvil").description("Anvil CLI - AI-powered coding assistant").version(version, "-v, --version", "Print the CLI version").option("--agent <agent-id>", "Run a specific agent id (skips loading local .agents overrides)").option("--clear-logs", "Remove any existing CLI log files before starting").option("--continue [conversation-id]", "Continue from a previous conversation (optionally specify a conversation id)").option("--cwd <directory>", "Set the working directory (default: current directory)").option("--lite", "Start in LITE mode").option("--free", "Start in LITE mode (deprecated alias)").option("--max", "Start in MAX mode").option("--plan", "Start in PLAN mode").addHelpText("after", `
|
|
127857
127855
|
Commands:
|
|
@@ -128878,5 +128876,5 @@ if (isTerminalCommandBrokerInvocation(process.argv)) {
|
|
|
128878
128876
|
await Promise.resolve().then(() => (init_src2(), exports_src));
|
|
128879
128877
|
}
|
|
128880
128878
|
|
|
128881
|
-
//# debugId=
|
|
128879
|
+
//# debugId=EB602EBEC957445A64756E2164756E21
|
|
128882
128880
|
//# sourceMappingURL=bundled.js.map
|