anveesa 0.3.0 → 0.3.2
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/Cargo.lock +1 -1
- package/Cargo.toml +2 -2
- package/package.json +1 -1
- package/src/cli.rs +20 -0
- package/src/lib.rs +527 -93
- package/src/provider/openai_compatible.rs +47 -1
- package/src/tools.rs +79 -22
- package/src/tools_scenarios.rs +1693 -0
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "anveesa"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.2"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
default-run = "anveesa"
|
|
6
6
|
|
|
@@ -13,5 +13,5 @@ reqwest = { version = "0.12", default-features = false, features = ["json", "rus
|
|
|
13
13
|
rustyline = "14"
|
|
14
14
|
serde = { version = "1.0", features = ["derive"] }
|
|
15
15
|
serde_json = "1.0"
|
|
16
|
-
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "process", "time", "sync", "io-util"] }
|
|
16
|
+
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "process", "time", "sync", "io-util", "signal"] }
|
|
17
17
|
toml = "0.8"
|
package/package.json
CHANGED
package/src/cli.rs
CHANGED
|
@@ -25,6 +25,26 @@ pub enum Command {
|
|
|
25
25
|
Providers,
|
|
26
26
|
/// Manage the Anveesa config file.
|
|
27
27
|
Config(ConfigArgs),
|
|
28
|
+
/// Manage saved interactive sessions.
|
|
29
|
+
Sessions(SessionsArgs),
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#[derive(Debug, Args)]
|
|
33
|
+
pub struct SessionsArgs {
|
|
34
|
+
#[command(subcommand)]
|
|
35
|
+
pub command: SessionsCommand,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#[derive(Debug, Subcommand)]
|
|
39
|
+
pub enum SessionsCommand {
|
|
40
|
+
/// List all saved sessions.
|
|
41
|
+
List,
|
|
42
|
+
/// Delete sessions. Without flags, deletes the session for the current directory.
|
|
43
|
+
Clear {
|
|
44
|
+
/// Delete all saved sessions.
|
|
45
|
+
#[arg(long)]
|
|
46
|
+
all: bool,
|
|
47
|
+
},
|
|
28
48
|
}
|
|
29
49
|
|
|
30
50
|
#[derive(Debug, Args)]
|