unraidclaw 0.1.0 → 0.1.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/dist/index.js +5 -5
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -418,7 +418,7 @@ function registerVMTools(api, client) {
|
|
|
418
418
|
function registerArrayTools(api, client) {
|
|
419
419
|
api.registerTool({
|
|
420
420
|
name: "unraid_array_status",
|
|
421
|
-
description: "Get the current status of the Unraid array including state, capacity, disks, and parities.",
|
|
421
|
+
description: "Get the current status of the Unraid array including state, capacity, disks, and parities. Capacity is in kilobytes (KiB). Disk 'size' fields are in kilobytes (KiB).",
|
|
422
422
|
parameters: { type: "object" },
|
|
423
423
|
execute: async () => {
|
|
424
424
|
try {
|
|
@@ -526,7 +526,7 @@ function registerArrayTools(api, client) {
|
|
|
526
526
|
function registerDiskTools(api, client) {
|
|
527
527
|
api.registerTool({
|
|
528
528
|
name: "unraid_disk_list",
|
|
529
|
-
description: "List all disks in the Unraid server with basic info (name, size, temp, status).",
|
|
529
|
+
description: "List all disks in the Unraid server with basic info (name, size, temp, status). The 'size' field is in kilobytes (KiB).",
|
|
530
530
|
parameters: { type: "object" },
|
|
531
531
|
execute: async () => {
|
|
532
532
|
try {
|
|
@@ -538,7 +538,7 @@ function registerDiskTools(api, client) {
|
|
|
538
538
|
});
|
|
539
539
|
api.registerTool({
|
|
540
540
|
name: "unraid_disk_details",
|
|
541
|
-
description: "Get detailed information about a specific disk including SMART data and health status.",
|
|
541
|
+
description: "Get detailed information about a specific disk including SMART data and health status. The 'size' field is in kilobytes (KiB).",
|
|
542
542
|
parameters: {
|
|
543
543
|
type: "object",
|
|
544
544
|
properties: {
|
|
@@ -560,7 +560,7 @@ function registerDiskTools(api, client) {
|
|
|
560
560
|
function registerShareTools(api, client) {
|
|
561
561
|
api.registerTool({
|
|
562
562
|
name: "unraid_share_list",
|
|
563
|
-
description: "List all user shares on the Unraid server with their settings and usage.",
|
|
563
|
+
description: "List all user shares on the Unraid server with their settings and usage. The 'free' and 'size' fields are in kilobytes (KiB).",
|
|
564
564
|
parameters: { type: "object" },
|
|
565
565
|
execute: async () => {
|
|
566
566
|
try {
|
|
@@ -572,7 +572,7 @@ function registerShareTools(api, client) {
|
|
|
572
572
|
});
|
|
573
573
|
api.registerTool({
|
|
574
574
|
name: "unraid_share_details",
|
|
575
|
-
description: "Get details for a specific user share by name.",
|
|
575
|
+
description: "Get details for a specific user share by name. The 'free' and 'size' fields are in kilobytes (KiB).",
|
|
576
576
|
parameters: {
|
|
577
577
|
type: "object",
|
|
578
578
|
properties: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unraidclaw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "OpenClaw plugin to manage your Unraid server — Docker, VMs, array, shares, system, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"openclaw": {
|
|
15
|
-
"extensions": [
|
|
15
|
+
"extensions": [
|
|
16
|
+
"./dist/index.js"
|
|
17
|
+
]
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
18
20
|
"dist",
|
|
@@ -24,7 +26,6 @@
|
|
|
24
26
|
"clean": "rm -rf dist"
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
|
-
"@unraidclaw/shared": "workspace:*",
|
|
28
29
|
"typescript": "^5.7.0",
|
|
29
30
|
"@types/node": "^22.0.0",
|
|
30
31
|
"tsup": "^8.5.0"
|