@alumbwe/anvil 1.0.8 → 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 -44
- package/dist/bundled.js.map +12 -12
- 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();
|
|
@@ -73541,7 +73541,7 @@ var init_open_url = __esm(() => {
|
|
|
73541
73541
|
});
|
|
73542
73542
|
|
|
73543
73543
|
// src/utils/constants.ts
|
|
73544
|
-
var IS_FREEBUFF
|
|
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) => {
|
|
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,6 +73567,8 @@ var IS_FREEBUFF = false, END_SESSION_MESSAGE = "Ending session and returning to
|
|
|
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";
|
|
73570
73572
|
HIDDEN_AGENT_IDS = ["context-pruner"];
|
|
73571
73573
|
COLLAPSED_BY_DEFAULT_TOOL_NAMES = [
|
|
73572
73574
|
"set_output"
|
|
@@ -79566,7 +79568,7 @@ var init_slash_commands = __esm(() => {
|
|
|
79566
79568
|
{
|
|
79567
79569
|
id: "feedback",
|
|
79568
79570
|
label: "feedback",
|
|
79569
|
-
description:
|
|
79571
|
+
description: "Share general feedback about Anvil"
|
|
79570
79572
|
},
|
|
79571
79573
|
{
|
|
79572
79574
|
id: "bash",
|
|
@@ -83531,7 +83533,6 @@ var init_feedback_input_mode = __esm(() => {
|
|
|
83531
83533
|
init_separator();
|
|
83532
83534
|
init_use_theme();
|
|
83533
83535
|
init_chat_store();
|
|
83534
|
-
init_constants6();
|
|
83535
83536
|
init_strings2();
|
|
83536
83537
|
init_terminal_enter_detection();
|
|
83537
83538
|
init_ui_constants();
|
|
@@ -83555,7 +83556,7 @@ var init_feedback_input_mode = __esm(() => {
|
|
|
83555
83556
|
label: "App bug",
|
|
83556
83557
|
shortLabel: "Bug",
|
|
83557
83558
|
highlightKey: "warning",
|
|
83558
|
-
placeholder:
|
|
83559
|
+
placeholder: "Report a problem with Anvil (crashes, errors, UI issues, etc.)"
|
|
83559
83560
|
},
|
|
83560
83561
|
{
|
|
83561
83562
|
id: "other",
|
|
@@ -106774,7 +106775,6 @@ var init_chat_header = __esm(() => {
|
|
|
106774
106775
|
init_use_sheen_animation();
|
|
106775
106776
|
init_use_terminal_dimensions();
|
|
106776
106777
|
init_use_theme();
|
|
106777
|
-
init_constants6();
|
|
106778
106778
|
init_open_file();
|
|
106779
106779
|
init_path_helpers();
|
|
106780
106780
|
init_theme_system();
|
|
@@ -106819,12 +106819,9 @@ var init_chat_header = __esm(() => {
|
|
|
106819
106819
|
},
|
|
106820
106820
|
children: logoComponent
|
|
106821
106821
|
}),
|
|
106822
|
-
/* @__PURE__ */
|
|
106822
|
+
/* @__PURE__ */ jsx42("text", {
|
|
106823
106823
|
style: { wrapMode: "word", marginBottom: 1, fg: theme.foreground },
|
|
106824
|
-
children:
|
|
106825
|
-
IS_FREEBUFF ? "Freebuff" : "Anvil",
|
|
106826
|
-
" will run commands on your behalf to help you build."
|
|
106827
|
-
]
|
|
106824
|
+
children: "Anvil will run commands on your behalf to help you build."
|
|
106828
106825
|
}),
|
|
106829
106826
|
/* @__PURE__ */ jsxs27("text", {
|
|
106830
106827
|
style: { wrapMode: "word", marginBottom: 1, fg: theme.foreground },
|
|
@@ -116530,7 +116527,6 @@ var init_top_banner = __esm(() => {
|
|
|
116530
116527
|
init_terminal_link();
|
|
116531
116528
|
init_use_theme();
|
|
116532
116529
|
init_chat_store();
|
|
116533
|
-
init_constants6();
|
|
116534
116530
|
init_path_helpers();
|
|
116535
116531
|
init_ui_constants();
|
|
116536
116532
|
TOP_BANNER_REGISTRY = {
|
|
@@ -116549,13 +116545,9 @@ Select a project folder to get started, or choose "Start here".`
|
|
|
116549
116545
|
const displayGitRoot = gitRoot ? formatCwd(gitRoot) : "git root";
|
|
116550
116546
|
return /* @__PURE__ */ jsxs61(Fragment24, {
|
|
116551
116547
|
children: [
|
|
116552
|
-
/* @__PURE__ */
|
|
116548
|
+
/* @__PURE__ */ jsx101("text", {
|
|
116553
116549
|
style: { wrapMode: "word", fg: textColor },
|
|
116554
|
-
children:
|
|
116555
|
-
"You started ",
|
|
116556
|
-
IS_FREEBUFF ? "Freebuff" : "Anvil",
|
|
116557
|
-
" in a subdirectory of a git repo."
|
|
116558
|
-
]
|
|
116550
|
+
children: "You started Anvil in a subdirectory of a git repo."
|
|
116559
116551
|
}),
|
|
116560
116552
|
gitRoot && onSwitchToGitRoot ? /* @__PURE__ */ jsx101(TerminalLink, {
|
|
116561
116553
|
text: `Switch to git root (${displayGitRoot})`,
|
|
@@ -124834,12 +124826,9 @@ var LoginModal = ({
|
|
|
124834
124826
|
" "
|
|
124835
124827
|
]
|
|
124836
124828
|
}),
|
|
124837
|
-
/* @__PURE__ */
|
|
124829
|
+
/* @__PURE__ */ jsx107("span", {
|
|
124838
124830
|
fg: theme.primary,
|
|
124839
|
-
children:
|
|
124840
|
-
IS_FREEBUFF ? "freebuff" : "anvil",
|
|
124841
|
-
" login"
|
|
124842
|
-
]
|
|
124831
|
+
children: "anvil login"
|
|
124843
124832
|
}),
|
|
124844
124833
|
/* @__PURE__ */ jsxs66("span", {
|
|
124845
124834
|
fg: theme.secondary,
|
|
@@ -124870,7 +124859,6 @@ var init_login_modal = __esm(() => {
|
|
|
124870
124859
|
init_use_sheen_animation();
|
|
124871
124860
|
init_use_theme();
|
|
124872
124861
|
init_login_store();
|
|
124873
|
-
init_constants6();
|
|
124874
124862
|
init_clipboard();
|
|
124875
124863
|
init_fingerprint();
|
|
124876
124864
|
init_logger();
|
|
@@ -126722,13 +126710,13 @@ import { useCallback as useCallback53, useEffect as useEffect53, useRef as useRe
|
|
|
126722
126710
|
import { jsx as jsx111, jsxs as jsxs70, Fragment as Fragment27 } from "@opentui/react/jsx-runtime";
|
|
126723
126711
|
function getTakeoverErrorMessage(failure2) {
|
|
126724
126712
|
if (failure2.type === "http" && failure2.statusCode === 503) {
|
|
126725
|
-
return "
|
|
126713
|
+
return "Anvil is busy and couldn't complete the takeover yet.";
|
|
126726
126714
|
}
|
|
126727
126715
|
if (failure2.type === "timeout") {
|
|
126728
|
-
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.";
|
|
126729
126717
|
}
|
|
126730
126718
|
if (failure2.outcomeUnknown) {
|
|
126731
|
-
return "
|
|
126719
|
+
return "Anvil couldn't confirm whether the takeover succeeded. Check the warning, then retry if you still want to take over.";
|
|
126732
126720
|
}
|
|
126733
126721
|
return failure2.message.trim() ? `Takeover failed: ${failure2.message}` : "The takeover failed unexpectedly.";
|
|
126734
126722
|
}
|
|
@@ -126815,11 +126803,11 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
126815
126803
|
/* @__PURE__ */ jsx111("text", {
|
|
126816
126804
|
style: { fg: theme.foreground },
|
|
126817
126805
|
attributes: TextAttributes50.BOLD,
|
|
126818
|
-
children: "
|
|
126806
|
+
children: "Anvil is already running"
|
|
126819
126807
|
}),
|
|
126820
126808
|
/* @__PURE__ */ jsx111("text", {
|
|
126821
126809
|
style: { fg: theme.muted },
|
|
126822
|
-
children: "Only one
|
|
126810
|
+
children: "Only one Anvil instance is allowed at a time."
|
|
126823
126811
|
}),
|
|
126824
126812
|
displayError && /* @__PURE__ */ jsxs70("text", {
|
|
126825
126813
|
style: { fg: theme.secondary, wrapMode: "word" },
|
|
@@ -127158,10 +127146,10 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127158
127146
|
})
|
|
127159
127147
|
]
|
|
127160
127148
|
}),
|
|
127161
|
-
".
|
|
127149
|
+
". Anvil can't be used from VPN, proxy, or Tor traffic. Disable it and restart Anvil to try again."
|
|
127162
127150
|
]
|
|
127163
127151
|
}) : session.countryCode === "UNKNOWN" ? /* @__PURE__ */ jsx111(Fragment27, {
|
|
127164
|
-
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."
|
|
127165
127153
|
}) : /* @__PURE__ */ jsxs70(Fragment27, {
|
|
127166
127154
|
children: [
|
|
127167
127155
|
"We detected your location as",
|
|
@@ -127170,7 +127158,7 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127170
127158
|
fg: theme.foreground,
|
|
127171
127159
|
children: session.countryCode
|
|
127172
127160
|
}),
|
|
127173
|
-
", which is outside the countries where
|
|
127161
|
+
", which is outside the countries where Anvil is currently offered. Press Ctrl+C to exit."
|
|
127174
127162
|
]
|
|
127175
127163
|
})
|
|
127176
127164
|
})
|
|
@@ -127184,7 +127172,7 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127184
127172
|
}),
|
|
127185
127173
|
/* @__PURE__ */ jsx111("text", {
|
|
127186
127174
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
127187
|
-
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."
|
|
127188
127176
|
})
|
|
127189
127177
|
]
|
|
127190
127178
|
}),
|
|
@@ -127226,7 +127214,7 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127226
127214
|
children: [
|
|
127227
127215
|
/* @__PURE__ */ jsx111("text", {
|
|
127228
127216
|
style: { fg: theme.secondary, marginBottom: 1 },
|
|
127229
|
-
children: "\u2615 Daily
|
|
127217
|
+
children: "\u2615 Daily Anvil limit reached"
|
|
127230
127218
|
}),
|
|
127231
127219
|
/* @__PURE__ */ jsxs70("text", {
|
|
127232
127220
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
@@ -127248,13 +127236,13 @@ var LANDING_HEADING = "Start coding for free", COLLAPSED_LOGO_MIN_HEIGHT = 26, f
|
|
|
127248
127236
|
children: [
|
|
127249
127237
|
/* @__PURE__ */ jsx111("text", {
|
|
127250
127238
|
style: { fg: theme.secondary, marginBottom: 1 },
|
|
127251
|
-
children: "\uD83D\uDEA6 Too many
|
|
127239
|
+
children: "\uD83D\uDEA6 Too many Anvil sessions on this network"
|
|
127252
127240
|
}),
|
|
127253
127241
|
/* @__PURE__ */ jsxs70("text", {
|
|
127254
127242
|
style: { fg: theme.muted, wrapMode: "word" },
|
|
127255
127243
|
children: [
|
|
127256
127244
|
session.activeUsersForIp,
|
|
127257
|
-
" 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",
|
|
127258
127246
|
" ",
|
|
127259
127247
|
/* @__PURE__ */ jsx111("span", {
|
|
127260
127248
|
fg: theme.foreground,
|
|
@@ -128876,5 +128864,5 @@ if (isTerminalCommandBrokerInvocation(process.argv)) {
|
|
|
128876
128864
|
await Promise.resolve().then(() => (init_src2(), exports_src));
|
|
128877
128865
|
}
|
|
128878
128866
|
|
|
128879
|
-
//# debugId=
|
|
128867
|
+
//# debugId=8E9B5E616C9C9E2164756E2164756E21
|
|
128880
128868
|
//# sourceMappingURL=bundled.js.map
|