snow-ai 0.6.0 → 0.6.1
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/README.md +1 -1
- package/bundle/cli.mjs +42 -16
- package/bundle/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ _An intelligent AI-powered CLI tool for developers_
|
|
|
20
20
|
|
|
21
21
|
## ❤️Thanks Support 💖
|
|
22
22
|
|
|
23
|
-
* [UUCode](https://www.uucode.org
|
|
23
|
+
* [UUCode](https://www.uucode.org)
|
|
24
24
|
|
|
25
25
|
## << [Click to view the detailed complete document](docs/usage/en/0.Catalogue.md) >>
|
|
26
26
|
|
package/bundle/cli.mjs
CHANGED
|
@@ -80866,6 +80866,7 @@ var init_en = __esm({
|
|
|
80866
80866
|
reindex: "Rebuild codebase index, detect changed, deleted, new and modified files",
|
|
80867
80867
|
permissions: "Manage always-approved tools permissions",
|
|
80868
80868
|
backend: "Show background processes panel",
|
|
80869
|
+
profiles: "Switch configuration profiles",
|
|
80869
80870
|
vulnerabilityHunting: "Toggle vulnerability hunting mode for security-focused code analysis",
|
|
80870
80871
|
quit: "Exit the application"
|
|
80871
80872
|
}
|
|
@@ -81659,7 +81660,7 @@ var init_zh = __esm({
|
|
|
81659
81660
|
advancedModel: "\u9AD8\u7EA7\u6A21\u578B(\u952E\u5165\u53EF\u641C\u7D22):",
|
|
81660
81661
|
basicModel: "\u57FA\u7840\u6A21\u578B(\u952E\u5165\u53EF\u641C\u7D22):",
|
|
81661
81662
|
maxContextTokens: "\u6700\u5927\u4E0A\u4E0B\u6587\u4EE4\u724C:",
|
|
81662
|
-
maxTokens: "\u6700\u5927\u4EE4\u724C\u6570:",
|
|
81663
|
+
maxTokens: "\u6700\u5927\u56DE\u590D\u4EE4\u724C\u6570:",
|
|
81663
81664
|
editSimilarityThreshold: "\u6587\u4EF6\u7F16\u8F91\u76F8\u4F3C\u5EA6\u9608\u503C(0-1, \u975E\u5FC5\u8981\u4E0D\u6539):",
|
|
81664
81665
|
notSet: "\u672A\u8BBE\u7F6E",
|
|
81665
81666
|
enabled: "[\u2713] \u5DF2\u542F\u7528",
|
|
@@ -81951,6 +81952,7 @@ var init_zh = __esm({
|
|
|
81951
81952
|
permissions: "\u7BA1\u7406\u59CB\u7EC8\u6279\u51C6\u7684\u5DE5\u5177\u6743\u9650",
|
|
81952
81953
|
vulnerabilityHunting: "\u5207\u6362\u6F0F\u6D1E\u68C0\u67E5\u6A21\u5F0F\uFF0C\u8FDB\u884C\u5B89\u5168\u6027\u4EE3\u7801\u5206\u6790",
|
|
81953
81954
|
backend: "\u663E\u793A\u540E\u53F0\u8FDB\u7A0B\u9762\u677F",
|
|
81955
|
+
profiles: "\u6253\u5F00\u914D\u7F6E\u6587\u4EF6\u5207\u6362\u9762\u677F",
|
|
81954
81956
|
quit: "\u9000\u51FA\u5E94\u7528\u7A0B\u5E8F"
|
|
81955
81957
|
}
|
|
81956
81958
|
},
|
|
@@ -82743,7 +82745,7 @@ var init_zh_TW = __esm({
|
|
|
82743
82745
|
advancedModel: "\u9032\u968E\u6A21\u578B(\u8F38\u5165\u5F8C\u53EF\u4EE5\u641C\u5C0B):",
|
|
82744
82746
|
basicModel: "\u57FA\u790E\u6A21\u578B(\u8F38\u5165\u5F8C\u53EF\u4EE5\u641C\u5C0B):",
|
|
82745
82747
|
maxContextTokens: "\u6700\u5927\u4E0A\u4E0B\u6587\u4EE4\u724C:",
|
|
82746
|
-
maxTokens: "\u6700\u5927\u4EE4\u724C\u6578:",
|
|
82748
|
+
maxTokens: "\u6700\u5927\u56DE\u590D\u4EE4\u724C\u6578:",
|
|
82747
82749
|
editSimilarityThreshold: "\u6A94\u6848\u7DE8\u8F2F\u76F8\u4F3C\u5EA6\u95BE\u503C(0-1, \u975E\u5FC5\u8981\u4E0D\u6539):",
|
|
82748
82750
|
notSet: "\u672A\u8A2D\u5B9A",
|
|
82749
82751
|
enabled: "[\u2713] \u5DF2\u555F\u7528",
|
|
@@ -83035,6 +83037,7 @@ var init_zh_TW = __esm({
|
|
|
83035
83037
|
permissions: "\u7BA1\u7406\u6C38\u9060\u5141\u8A31\u7684\u5DE5\u5177\u6B0A\u9650",
|
|
83036
83038
|
vulnerabilityHunting: "\u5207\u63DB\u6F0F\u6D1E\u6AA2\u67E5\u6A21\u5F0F\uFF0C\u9032\u884C\u5B89\u5168\u6027\u4EE3\u78BC\u5206\u6790",
|
|
83037
83039
|
backend: "\u986F\u793A\u80CC\u666F\u8655\u7406\u7A0B\u5E8F\u9762\u677F",
|
|
83040
|
+
profiles: "\u958B\u555F\u8A2D\u5B9A\u6A94\u5207\u63DB\u9762\u677F",
|
|
83038
83041
|
quit: "\u9000\u51FA\u61C9\u7528\u7A0B\u5F0F"
|
|
83039
83042
|
}
|
|
83040
83043
|
},
|
|
@@ -538987,10 +538990,7 @@ function useCommandPanel(buffer, isProcessing = false) {
|
|
|
538987
538990
|
{ name: "clear", description: t.commandPanel.commands.clear },
|
|
538988
538991
|
{ name: "resume", description: t.commandPanel.commands.resume },
|
|
538989
538992
|
{ name: "mcp", description: t.commandPanel.commands.mcp },
|
|
538990
|
-
{
|
|
538991
|
-
name: "yolo",
|
|
538992
|
-
description: t.commandPanel.commands.yolo
|
|
538993
|
-
},
|
|
538993
|
+
{ name: "yolo", description: t.commandPanel.commands.yolo },
|
|
538994
538994
|
{
|
|
538995
538995
|
name: "plan",
|
|
538996
538996
|
description: t.commandPanel.commands.plan
|
|
@@ -539021,6 +539021,10 @@ function useCommandPanel(buffer, isProcessing = false) {
|
|
|
539021
539021
|
name: "backend",
|
|
539022
539022
|
description: t.commandPanel.commands.backend || "Show background processes"
|
|
539023
539023
|
},
|
|
539024
|
+
{
|
|
539025
|
+
name: "profiles",
|
|
539026
|
+
description: t.commandPanel.commands.profiles
|
|
539027
|
+
},
|
|
539024
539028
|
{
|
|
539025
539029
|
name: "export",
|
|
539026
539030
|
description: t.commandPanel.commands.export
|
|
@@ -549120,14 +549124,11 @@ Output: ${combinedOutput}`;
|
|
|
549120
549124
|
commandName
|
|
549121
549125
|
};
|
|
549122
549126
|
options3.setMessages((prev) => [...prev, commandMessage]);
|
|
549123
|
-
} else if (result2.success && result2.action === "
|
|
549124
|
-
options3.
|
|
549125
|
-
|
|
549126
|
-
|
|
549127
|
-
|
|
549128
|
-
commandName
|
|
549129
|
-
};
|
|
549130
|
-
options3.setMessages((prev) => [...prev, commandMessage]);
|
|
549127
|
+
} else if (result2.success && result2.action === "showProfilePanel") {
|
|
549128
|
+
options3.onSwitchProfile();
|
|
549129
|
+
} else if (result2.success && result2.action === "home") {
|
|
549130
|
+
resetTerminal(stdout);
|
|
549131
|
+
navigateTo("welcome");
|
|
549131
549132
|
} else if (result2.success && result2.action === "showUsagePanel") {
|
|
549132
549133
|
options3.setShowUsagePanel(true);
|
|
549133
549134
|
const commandMessage = {
|
|
@@ -555335,6 +555336,29 @@ var init_PermissionsPanel = __esm({
|
|
|
555335
555336
|
}
|
|
555336
555337
|
});
|
|
555337
555338
|
|
|
555339
|
+
// dist/utils/commands/profiles.js
|
|
555340
|
+
var profiles_exports = {};
|
|
555341
|
+
__export(profiles_exports, {
|
|
555342
|
+
default: () => profiles_default
|
|
555343
|
+
});
|
|
555344
|
+
var profiles_default;
|
|
555345
|
+
var init_profiles = __esm({
|
|
555346
|
+
"dist/utils/commands/profiles.js"() {
|
|
555347
|
+
"use strict";
|
|
555348
|
+
init_commandExecutor();
|
|
555349
|
+
registerCommand("profiles", {
|
|
555350
|
+
execute: () => {
|
|
555351
|
+
return {
|
|
555352
|
+
success: true,
|
|
555353
|
+
action: "showProfilePanel",
|
|
555354
|
+
message: "Opening profile switching panel"
|
|
555355
|
+
};
|
|
555356
|
+
}
|
|
555357
|
+
});
|
|
555358
|
+
profiles_default = {};
|
|
555359
|
+
}
|
|
555360
|
+
});
|
|
555361
|
+
|
|
555338
555362
|
// dist/utils/commands/permissions.js
|
|
555339
555363
|
var permissions_exports = {};
|
|
555340
555364
|
__export(permissions_exports, {
|
|
@@ -555483,6 +555507,7 @@ function ChatScreen({ autoResume, enableYolo }) {
|
|
|
555483
555507
|
(0, import_react133.useEffect)(() => {
|
|
555484
555508
|
Promise.all([
|
|
555485
555509
|
Promise.resolve().then(() => (init_clear(), clear_exports)),
|
|
555510
|
+
Promise.resolve().then(() => (init_profiles(), profiles_exports)),
|
|
555486
555511
|
Promise.resolve().then(() => (init_resume(), resume_exports)),
|
|
555487
555512
|
Promise.resolve().then(() => (init_mcp(), mcp_exports)),
|
|
555488
555513
|
Promise.resolve().then(() => (init_yolo(), yolo_exports)),
|
|
@@ -555887,6 +555912,7 @@ function ChatScreen({ autoResume, enableYolo }) {
|
|
|
555887
555912
|
setShowRoleDeletion: panelState.setShowRoleDeletion,
|
|
555888
555913
|
setShowWorkingDirPanel: panelState.setShowWorkingDirPanel,
|
|
555889
555914
|
setShowPermissionsPanel,
|
|
555915
|
+
onSwitchProfile: handleSwitchProfile,
|
|
555890
555916
|
setShowBackgroundPanel: backgroundProcesses.enablePanel,
|
|
555891
555917
|
setYoloMode,
|
|
555892
555918
|
setPlanMode,
|
|
@@ -556048,14 +556074,14 @@ function ChatScreen({ autoResume, enableYolo }) {
|
|
|
556048
556074
|
setPendingMessages([]);
|
|
556049
556075
|
}
|
|
556050
556076
|
});
|
|
556051
|
-
|
|
556077
|
+
function handleSwitchProfile() {
|
|
556052
556078
|
panelState.handleSwitchProfile({
|
|
556053
556079
|
isStreaming: streamingState.isStreaming,
|
|
556054
556080
|
hasPendingRollback: !!snapshotState.pendingRollback,
|
|
556055
556081
|
hasPendingToolConfirmation: !!pendingToolConfirmation,
|
|
556056
556082
|
hasPendingUserQuestion: !!pendingUserQuestion
|
|
556057
556083
|
});
|
|
556058
|
-
}
|
|
556084
|
+
}
|
|
556059
556085
|
const handleProfileSelect = panelState.handleProfileSelect;
|
|
556060
556086
|
const handleSessionPanelSelect = async (sessionId) => {
|
|
556061
556087
|
panelState.setShowSessionPanel(false);
|
package/bundle/package.json
CHANGED