@ebowwa/pkg-ops 0.1.10 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebowwa/pkg-ops",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "description": "Package operations CLI - installs @ebowwa/* npm packages and manages systemd services",
6
6
  "bin": {
package/rust/Cargo.lock CHANGED
@@ -224,6 +224,18 @@ version = "0.2.17"
224
224
  source = "registry+https://github.com/rust-lang/crates.io-index"
225
225
  checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
226
226
 
227
+ [[package]]
228
+ name = "pkg-ops-core"
229
+ version = "0.1.0"
230
+ dependencies = [
231
+ "chrono",
232
+ "serde",
233
+ "serde_json",
234
+ "sha2",
235
+ "tracing",
236
+ "tracing-subscriber",
237
+ ]
238
+
227
239
  [[package]]
228
240
  name = "proc-macro2"
229
241
  version = "1.0.106"
@@ -445,18 +457,6 @@ version = "0.9.5"
445
457
  source = "registry+https://github.com/rust-lang/crates.io-index"
446
458
  checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
447
459
 
448
- [[package]]
449
- name = "vps-manager-core"
450
- version = "0.1.0"
451
- dependencies = [
452
- "chrono",
453
- "serde",
454
- "serde_json",
455
- "sha2",
456
- "tracing",
457
- "tracing-subscriber",
458
- ]
459
-
460
460
  [[package]]
461
461
  name = "wasm-bindgen"
462
462
  version = "0.2.114"
package/rust/src/lib.rs CHANGED
@@ -1,4 +1,4 @@
1
- //! VPS Manager Core Library
1
+ //! PkgOps Core Library
2
2
  //!
3
3
  //! Package management operations for VPS.
4
4
 
@@ -105,8 +105,8 @@ use std::path::Path;
105
105
  use std::process::Command;
106
106
  use tracing::{debug, error, info};
107
107
 
108
- const WORK_DIR: &str = "/opt/vps-manager";
109
- const BACKUP_DIR: &str = "/opt/vps-manager/backups";
108
+ const WORK_DIR: &str = "/opt/pkg-ops";
109
+ const BACKUP_DIR: &str = "/opt/pkg-ops/backups";
110
110
 
111
111
  /// Install a package using bun
112
112
  pub fn install_package(package_name: &str, version: &str) -> InstallResult {
package/rust/src/main.rs CHANGED
@@ -1,4 +1,4 @@
1
- //! VPS Manager Core - Rust Worker
1
+ //! PkgOps Core - Rust Worker
2
2
  //!
3
3
  //! JSON-RPC 2.0 server that handles package management operations.
4
4
  //! Communicates via stdin/stdout with newline-delimited JSON.
@@ -8,7 +8,7 @@ use std::io::{self, BufRead, Write};
8
8
  use tracing::{error, info, warn};
9
9
 
10
10
  // Import everything from the library
11
- use vps_manager_core::*;
11
+ use pkg_ops_core::*;
12
12
 
13
13
  // ---------------------------------------------------------------------------
14
14
  // Handlers
@@ -265,7 +265,7 @@ fn run_event_loop() -> io::Result<()> {
265
265
  let stdout = io::stdout();
266
266
  let mut stdout_lock = stdout.lock();
267
267
 
268
- info!("VPS Manager Core started, listening on stdin...");
268
+ info!("PkgOps Core started, listening on stdin...");
269
269
 
270
270
  for (line_num, line_result) in stdin.lock().lines().enumerate() {
271
271
  let line = match line_result {
@@ -322,7 +322,7 @@ fn run_event_loop() -> io::Result<()> {
322
322
  }
323
323
  }
324
324
 
325
- info!("VPS Manager Core shutting down (EOF on stdin)");
325
+ info!("PkgOps Core shutting down (EOF on stdin)");
326
326
  Ok(())
327
327
  }
328
328