Dinh Long Nguyen e1c8d98bf2
Backend Architecture Refactoring (#6094) (#6162)
* add llamacpp plugin

* Refactor llamacpp plugin

* add utils plugin

* remove utils folder

* add hardware implementation

* add utils folder + move utils function

* organize cargo files

* refactor utils src

* refactor util

* apply fmt

* fmt

* Update gguf + reformat

* add permission for gguf commands

* fix cargo test windows

* revert yarn lock

* remove cargo.lock for hardware plugin

* ignore cargo.lock file

* Fix hardware invoke + refactor hardware + refactor tests, constants

* use api wrapper in extension to invoke hardware call + api wrapper build integration

* add newline at EOF (per Akarshan)

* add vi mock for getSystemInfo
2025-08-15 08:59:01 +07:00

3.9 KiB

Default Permission

Default permissions for the llamacpp plugin

This default permission set includes the following:

  • allow-cleanup-llama-processes
  • allow-load-llama-model
  • allow-unload-llama-model
  • allow-get-devices
  • allow-generate-api-key
  • allow-is-process-running
  • allow-get-random-port
  • allow-find-session-by-model
  • allow-get-loaded-models
  • allow-get-all-sessions
  • allow-get-session-by-model
  • allow-read-gguf-metadata

Permission Table

Identifier Description

llamacpp:allow-cleanup-llama-processes

Enables the cleanup_llama_processes command without any pre-configured scope.

llamacpp:deny-cleanup-llama-processes

Denies the cleanup_llama_processes command without any pre-configured scope.

llamacpp:allow-find-session-by-model

Enables the find_session_by_model command without any pre-configured scope.

llamacpp:deny-find-session-by-model

Denies the find_session_by_model command without any pre-configured scope.

llamacpp:allow-generate-api-key

Enables the generate_api_key command without any pre-configured scope.

llamacpp:deny-generate-api-key

Denies the generate_api_key command without any pre-configured scope.

llamacpp:allow-get-all-sessions

Enables the get_all_sessions command without any pre-configured scope.

llamacpp:deny-get-all-sessions

Denies the get_all_sessions command without any pre-configured scope.

llamacpp:allow-get-devices

Enables the get_devices command without any pre-configured scope.

llamacpp:deny-get-devices

Denies the get_devices command without any pre-configured scope.

llamacpp:allow-get-loaded-models

Enables the get_loaded_models command without any pre-configured scope.

llamacpp:deny-get-loaded-models

Denies the get_loaded_models command without any pre-configured scope.

llamacpp:allow-get-random-port

Enables the get_random_port command without any pre-configured scope.

llamacpp:deny-get-random-port

Denies the get_random_port command without any pre-configured scope.

llamacpp:allow-get-session-by-model

Enables the get_session_by_model command without any pre-configured scope.

llamacpp:deny-get-session-by-model

Denies the get_session_by_model command without any pre-configured scope.

llamacpp:allow-is-process-running

Enables the is_process_running command without any pre-configured scope.

llamacpp:deny-is-process-running

Denies the is_process_running command without any pre-configured scope.

llamacpp:allow-load-llama-model

Enables the load_llama_model command without any pre-configured scope.

llamacpp:deny-load-llama-model

Denies the load_llama_model command without any pre-configured scope.

llamacpp:allow-read-gguf-metadata

Enables the read_gguf_metadata command without any pre-configured scope.

llamacpp:deny-read-gguf-metadata

Denies the read_gguf_metadata command without any pre-configured scope.

llamacpp:allow-unload-llama-model

Enables the unload_llama_model command without any pre-configured scope.

llamacpp:deny-unload-llama-model

Denies the unload_llama_model command without any pre-configured scope.