@alumbwe/anvil 1.0.7 → 1.0.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/bundled.js +32 -46
- package/dist/bundled.js.map +13 -13
- package/package.json +1 -1
package/dist/bundled.js
CHANGED
|
@@ -60845,16 +60845,16 @@ var init_freebuff_data_use = __esm(() => {
|
|
|
60845
60845
|
}
|
|
60846
60846
|
};
|
|
60847
60847
|
FREEBUFF_PUBLIC_DATA_USE_COPY = {
|
|
60848
|
-
collectionQuestion: "Does
|
|
60849
|
-
collectionAnswer: "
|
|
60848
|
+
collectionQuestion: "Does Anvil collect my data?",
|
|
60849
|
+
collectionAnswer: "Anvil is supported by text ads. We do not collect your traces or files unless the model provider does. Currently, this applies only to DeepSeek models.",
|
|
60850
60850
|
trainingQuestion: "Is my data used to train AI?",
|
|
60851
|
-
trainingAnswer: "Only when a model or feature says data may be used for AI training.
|
|
60851
|
+
trainingAnswer: "Only when a model or feature says data may be used for AI training. Anvil or the provider may then keep submissions to develop, train, test, evaluate, fine-tune, and improve AI models or products.",
|
|
60852
60852
|
storageQuestion: "How is my data used and stored?",
|
|
60853
|
-
storageAnswer: "We use prompts, messages, code, files, and repository data to provide the service. We may analyze prompts and messages\u2014including pasted content\u2014to personalize ads, using
|
|
60853
|
+
storageAnswer: "We use prompts, messages, code, files, and repository data to provide the service. We may analyze prompts and messages\u2014including pasted content\u2014to personalize ads, using Anvil systems and service providers acting on our behalf. Separate uploads and connected repositories are not provided to advertising providers. Where required by law, we provide advertising choices and honor recognized opt-out signals; elsewhere, this processing may be required to use the free service. See the Privacy Policy for retention and details.",
|
|
60854
60854
|
compactTrainingSummary: `Models or features labeled \u201C${FREEBUFF_AI_TRAINING_NOTICE}\u201D may keep submissions to develop, train, test, evaluate, fine-tune, and improve AI models or products.`,
|
|
60855
|
-
compactPrivacySummary: `Prompts and messages may be analyzed to personalize ads, using
|
|
60856
|
-
localExecutionSummary: "
|
|
60857
|
-
compactLocalExecutionSummary: "Edits run locally, but relevant prompts, code, files, and repository context are sent to
|
|
60855
|
+
compactPrivacySummary: `Prompts and messages may be analyzed to personalize ads, using Anvil systems and service providers acting on our behalf. Separate uploads and connected repositories are not provided to advertising providers. Models or features labeled \u201C${FREEBUFF_AI_TRAINING_NOTICE}\u201D may use submissions for that purpose.`,
|
|
60856
|
+
localExecutionSummary: "Anvil edits files locally but sends relevant prompts, code, files, and repository context to its servers and model providers. See the Privacy Policy for details.",
|
|
60857
|
+
compactLocalExecutionSummary: "Edits run locally, but relevant prompts, code, files, and repository context are sent to Anvil and model providers."
|
|
60858
60858
|
};
|
|
60859
60859
|
});
|
|
60860
60860
|
|
|
@@ -73399,7 +73399,7 @@ function createTerminalCommandBroker({
|
|
|
73399
73399
|
}
|
|
73400
73400
|
};
|
|
73401
73401
|
}
|
|
73402
|
-
var TERMINAL_COMMAND_BROKER_FLAG = "--terminal-command-broker", TERMINAL_COMMAND_BROKER_ENV = "ANVIL_TERMINAL_COMMAND_BROKER", TERMINAL_COMMAND_BROKER_PROTOCOL_ENV = "ANVIL_TERMINAL_COMMAND_BROKER_PROTOCOL", MAX_REQUEST_BYTES, MAX_PROTOCOL_BYTES, PROTOCOL_FILE_PREFIX = "freebuff-terminal-command-broker-", TERMINAL_COMMAND_BROKER_RECOVERY = "Restart
|
|
73402
|
+
var TERMINAL_COMMAND_BROKER_FLAG = "--terminal-command-broker", TERMINAL_COMMAND_BROKER_ENV = "ANVIL_TERMINAL_COMMAND_BROKER", TERMINAL_COMMAND_BROKER_PROTOCOL_ENV = "ANVIL_TERMINAL_COMMAND_BROKER_PROTOCOL", MAX_REQUEST_BYTES, MAX_PROTOCOL_BYTES, PROTOCOL_FILE_PREFIX = "freebuff-terminal-command-broker-", TERMINAL_COMMAND_BROKER_RECOVERY = "Restart Anvil and try again.", terminalCommandBroker;
|
|
73403
73403
|
var init_terminal_command_broker = __esm(() => {
|
|
73404
73404
|
init_env();
|
|
73405
73405
|
init_windows_terminal_health();
|
|
@@ -79568,7 +79568,7 @@ var init_slash_commands = __esm(() => {
|
|
|
79568
79568
|
{
|
|
79569
79569
|
id: "feedback",
|
|
79570
79570
|
label: "feedback",
|
|
79571
|
-
description:
|
|
79571
|
+
description: "Share general feedback about Anvil"
|
|
79572
79572
|
},
|
|
79573
79573
|
{
|
|
79574
79574
|
id: "bash",
|
|
@@ -83533,7 +83533,6 @@ var init_feedback_input_mode = __esm(() => {
|
|
|
83533
83533
|
init_separator();
|
|
83534
83534
|
init_use_theme();
|
|
83535
83535
|
init_chat_store();
|
|
83536
|
-
init_constants6();
|
|
83537
83536
|
init_strings2();
|
|
83538
83537
|
init_terminal_enter_detection();
|
|
83539
83538
|
init_ui_constants();
|
|
@@ -83557,7 +83556,7 @@ var init_feedback_input_mode = __esm(() => {
|
|
|
83557
83556
|
label: "App bug",
|
|
83558
83557
|
shortLabel: "Bug",
|
|
83559
83558
|
highlightKey: "warning",
|
|
83560
|
-
placeholder:
|
|
83559
|
+
placeholder: "Report a problem with Anvil (crashes, errors, UI issues, etc.)"
|
|
83561
83560
|
},
|
|
83562
83561
|
{
|
|
83563
83562
|
id: "other",
|
|
@@ -106776,7 +106775,6 @@ var init_chat_header = __esm(() => {
|
|
|
106776
106775
|
init_use_sheen_animation();
|
|
106777
106776
|
init_use_terminal_dimensions();
|
|
106778
106777
|
init_use_theme();
|
|
106779
|
-
init_constants6();
|
|
106780
106778
|
init_open_file();
|
|
106781
106779
|
init_path_helpers();
|
|
106782
106780
|
init_theme_system();
|
|
@@ -106821,12 +106819,9 @@ var init_chat_header = __esm(() => {
|
|
|
106821
106819
|
},
|
|
106822
106820
|
children: logoComponent
|
|
106823
106821
|
}),
|
|
106824
|
-
/* @__PURE__ */
|
|
106822
|
+
/* @__PURE__ */ jsx42("text", {
|
|
106825
106823
|
style: { wrapMode: "word", marginBottom: 1, fg: theme.foreground },
|
|
106826
|
-
children:
|
|
106827
|
-
IS_FREEBUFF ? "Freebuff" : "Anvil",
|
|
106828
|
-
" will run commands on your behalf to help you build."
|
|
106829
|
-
]
|
|
106824
|
+
children: "Anvil will run commands on your behalf to help you build."
|
|
106830
106825
|
}),
|
|
106831
106826
|
/* @__PURE__ */ jsxs27("text", {
|
|
106832
106827
|
style: { wrapMode: "word", marginBottom: 1, fg: theme.foreground },
|
|
@@ -116532,7 +116527,6 @@ var init_top_banner = __esm(() => {
|
|
|
116532
116527
|
init_terminal_link();
|
|
116533
116528
|
init_use_theme();
|
|
116534
116529
|
init_chat_store();
|
|
116535
|
-
init_constants6();
|
|
116536
116530
|
init_path_helpers();
|
|
116537
116531
|
init_ui_constants();
|
|
116538
116532
|
TOP_BANNER_REGISTRY = {
|
|
@@ -116551,13 +116545,9 @@ Select a project folder to get started, or choose "Start here".`
|
|
|
116551
116545
|
const displayGitRoot = gitRoot ? formatCwd(gitRoot) : "git root";
|
|
116552
116546
|
return /* @__PURE__ */ jsxs61(Fragment24, {
|
|
116553
116547
|
children: [
|
|
116554
|
-
/* @__PURE__ */
|
|
116548
|
+
/* @__PURE__ */ jsx101("text", {
|
|
116555
116549
|
style: { wrapMode: "word", fg: textColor },
|
|
116556
|
-
children:
|
|
116557
|
-
"You started ",
|
|
116558
|
-
IS_FREEBUFF ? "Freebuff" : "Anvil",
|
|
116559
|
-
" in a subdirectory of a git repo."
|
|
116560
|
-
]
|
|
116550
|
+
children: "You started Anvil in a subdirectory of a git repo."
|
|
116561
116551
|
}),
|
|
116562
116552
|
gitRoot && onSwitchToGitRoot ? /* @__PURE__ */ jsx101(TerminalLink, {
|
|
116563
116553
|
text: `Switch to git root (${displayGitRoot})`,
|
|
@@ -123963,7 +123953,7 @@ var FreebuffSupersededScreen = () => {
|
|
|
123963
123953
|
/* @__PURE__ */ jsx106("text", {
|
|
123964
123954
|
style: { fg: theme.foreground, marginBottom: 1 },
|
|
123965
123955
|
attributes: TextAttributes47.BOLD,
|
|
123966
|
-
children: "Another
|
|
123956
|
+
children: "Another Anvil instance took over this account."
|
|
123967
123957
|
}),
|
|
123968
123958
|
/* @__PURE__ */ jsx106("text", {
|
|
123969
123959
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
@@ -123971,7 +123961,7 @@ var FreebuffSupersededScreen = () => {
|
|
|
123971
123961
|
}),
|
|
123972
123962
|
/* @__PURE__ */ jsx106("text", {
|
|
123973
123963
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
123974
|
-
children: "Close the other instance, then restart
|
|
123964
|
+
children: "Close the other instance, then restart Anvil here."
|
|
123975
123965
|
}),
|
|
123976
123966
|
/* @__PURE__ */ jsx106("box", {
|
|
123977
123967
|
style: { marginTop: 1 },
|
|
@@ -124836,12 +124826,9 @@ var LoginModal = ({
|
|
|
124836
124826
|
" "
|
|
124837
124827
|
]
|
|
124838
124828
|
}),
|
|
124839
|
-
/* @__PURE__ */
|
|
124829
|
+
/* @__PURE__ */ jsx107("span", {
|
|
124840
124830
|
fg: theme.primary,
|
|
124841
|
-
children:
|
|
124842
|
-
IS_FREEBUFF ? "freebuff" : "anvil",
|
|
124843
|
-
" login"
|
|
124844
|
-
]
|
|
124831
|
+
children: "anvil login"
|
|
124845
124832
|
}),
|
|
124846
124833
|
/* @__PURE__ */ jsxs66("span", {
|
|
124847
124834
|
fg: theme.secondary,
|
|
@@ -124872,7 +124859,6 @@ var init_login_modal = __esm(() => {
|
|
|
124872
124859
|
init_use_sheen_animation();
|
|
124873
124860
|
init_use_theme();
|
|
124874
124861
|
init_login_store();
|
|
124875
|
-
init_constants6();
|
|
124876
124862
|
init_clipboard();
|
|
124877
124863
|
init_fingerprint();
|
|
124878
124864
|
init_logger();
|
|
@@ -126724,13 +126710,13 @@ import { useCallback as useCallback53, useEffect as useEffect53, useRef as useRe
|
|
|
126724
126710
|
import { jsx as jsx111, jsxs as jsxs70, Fragment as Fragment27 } from "@opentui/react/jsx-runtime";
|
|
126725
126711
|
function getTakeoverErrorMessage(failure2) {
|
|
126726
126712
|
if (failure2.type === "http" && failure2.statusCode === 503) {
|
|
126727
|
-
return "
|
|
126713
|
+
return "Anvil is busy and couldn't complete the takeover yet.";
|
|
126728
126714
|
}
|
|
126729
126715
|
if (failure2.type === "timeout") {
|
|
126730
|
-
return failure2.outcomeUnknown ? "The takeover request timed out and may have succeeded. Check the warning, then retry if you still want to take over." : failure2.retry ? "The takeover request timed out while
|
|
126716
|
+
return failure2.outcomeUnknown ? "The takeover request timed out and may have succeeded. Check the warning, then retry if you still want to take over." : failure2.retry ? "The takeover request timed out while Anvil was busy." : "The takeover request timed out.";
|
|
126731
126717
|
}
|
|
126732
126718
|
if (failure2.outcomeUnknown) {
|
|
126733
|
-
return "
|
|
126719
|
+
return "Anvil couldn't confirm whether the takeover succeeded. Check the warning, then retry if you still want to take over.";
|
|
126734
126720
|
}
|
|
126735
126721
|
return failure2.message.trim() ? `Takeover failed: ${failure2.message}` : "The takeover failed unexpectedly.";
|
|
126736
126722
|
}
|
|
@@ -126817,11 +126803,11 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
126817
126803
|
/* @__PURE__ */ jsx111("text", {
|
|
126818
126804
|
style: { fg: theme.foreground },
|
|
126819
126805
|
attributes: TextAttributes50.BOLD,
|
|
126820
|
-
children: "
|
|
126806
|
+
children: "Anvil is already running"
|
|
126821
126807
|
}),
|
|
126822
126808
|
/* @__PURE__ */ jsx111("text", {
|
|
126823
126809
|
style: { fg: theme.muted },
|
|
126824
|
-
children: "Only one
|
|
126810
|
+
children: "Only one Anvil instance is allowed at a time."
|
|
126825
126811
|
}),
|
|
126826
126812
|
displayError && /* @__PURE__ */ jsxs70("text", {
|
|
126827
126813
|
style: { fg: theme.secondary, wrapMode: "word" },
|
|
@@ -127160,10 +127146,10 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127160
127146
|
})
|
|
127161
127147
|
]
|
|
127162
127148
|
}),
|
|
127163
|
-
".
|
|
127149
|
+
". Anvil can't be used from VPN, proxy, or Tor traffic. Disable it and restart Anvil to try again."
|
|
127164
127150
|
]
|
|
127165
127151
|
}) : session.countryCode === "UNKNOWN" ? /* @__PURE__ */ jsx111(Fragment27, {
|
|
127166
|
-
children: "We couldn't verify an eligible location for this request. VPN, Tor, proxy, or unknown-location traffic can't use
|
|
127152
|
+
children: "We couldn't verify an eligible location for this request. VPN, Tor, proxy, or unknown-location traffic can't use Anvil. Press Ctrl+C to exit."
|
|
127167
127153
|
}) : /* @__PURE__ */ jsxs70(Fragment27, {
|
|
127168
127154
|
children: [
|
|
127169
127155
|
"We detected your location as",
|
|
@@ -127172,7 +127158,7 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127172
127158
|
fg: theme.foreground,
|
|
127173
127159
|
children: session.countryCode
|
|
127174
127160
|
}),
|
|
127175
|
-
", which is outside the countries where
|
|
127161
|
+
", which is outside the countries where Anvil is currently offered. Press Ctrl+C to exit."
|
|
127176
127162
|
]
|
|
127177
127163
|
})
|
|
127178
127164
|
})
|
|
@@ -127186,7 +127172,7 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127186
127172
|
}),
|
|
127187
127173
|
/* @__PURE__ */ jsx111("text", {
|
|
127188
127174
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
127189
|
-
children: "This account has been suspended and can't use
|
|
127175
|
+
children: "This account has been suspended and can't use Anvil. If you think this is a mistake, contact support@codebuff.com. Press Ctrl+C to exit."
|
|
127190
127176
|
})
|
|
127191
127177
|
]
|
|
127192
127178
|
}),
|
|
@@ -127228,7 +127214,7 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127228
127214
|
children: [
|
|
127229
127215
|
/* @__PURE__ */ jsx111("text", {
|
|
127230
127216
|
style: { fg: theme.secondary, marginBottom: 1 },
|
|
127231
|
-
children: "\u2615 Daily
|
|
127217
|
+
children: "\u2615 Daily Anvil limit reached"
|
|
127232
127218
|
}),
|
|
127233
127219
|
/* @__PURE__ */ jsxs70("text", {
|
|
127234
127220
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
@@ -127250,13 +127236,13 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127250
127236
|
children: [
|
|
127251
127237
|
/* @__PURE__ */ jsx111("text", {
|
|
127252
127238
|
style: { fg: theme.secondary, marginBottom: 1 },
|
|
127253
|
-
children: "\uD83D\uDEA6 Too many
|
|
127239
|
+
children: "\uD83D\uDEA6 Too many Anvil sessions on this network"
|
|
127254
127240
|
}),
|
|
127255
127241
|
/* @__PURE__ */ jsxs70("text", {
|
|
127256
127242
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
127257
127243
|
children: [
|
|
127258
127244
|
session.activeUsersForIp,
|
|
127259
|
-
" other people are already using
|
|
127245
|
+
" other people are already using Anvil from your network, which is the most we allow at once. Try again in",
|
|
127260
127246
|
" ",
|
|
127261
127247
|
/* @__PURE__ */ jsx111("span", {
|
|
127262
127248
|
fg: theme.foreground,
|
|
@@ -127851,7 +127837,7 @@ function parseArgs({
|
|
|
127851
127837
|
} = {}) {
|
|
127852
127838
|
const program = new Command;
|
|
127853
127839
|
if (isFreebuff) {
|
|
127854
|
-
program.name("
|
|
127840
|
+
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
127841
|
} else {
|
|
127856
127842
|
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
127843
|
Commands:
|
|
@@ -128878,5 +128864,5 @@ if (isTerminalCommandBrokerInvocation(process.argv)) {
|
|
|
128878
128864
|
await Promise.resolve().then(() => (init_src2(), exports_src));
|
|
128879
128865
|
}
|
|
128880
128866
|
|
|
128881
|
-
//# debugId=
|
|
128867
|
+
//# debugId=8E9B5E616C9C9E2164756E2164756E21
|
|
128882
128868
|
//# sourceMappingURL=bundled.js.map
|