@kanson1996/audit-trail 0.1.0

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.
@@ -0,0 +1,90 @@
1
+ {
2
+ "id": "audit-trail",
3
+ "configSchema": {
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "logDir": {
8
+ "type": "string"
9
+ },
10
+ "captureMode": {
11
+ "type": "string",
12
+ "enum": ["metadata_only", "full_capture"]
13
+ },
14
+ "rotation": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "strategy": {
19
+ "type": "string",
20
+ "enum": ["daily", "session", "size"]
21
+ },
22
+ "maxSizeBytes": {
23
+ "type": "integer",
24
+ "minimum": 1
25
+ }
26
+ }
27
+ },
28
+ "redaction": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "properties": {
32
+ "mode": {
33
+ "type": "string",
34
+ "enum": ["hash", "omit", "truncate"]
35
+ },
36
+ "fields": {
37
+ "type": "array",
38
+ "items": { "type": "string" }
39
+ },
40
+ "truncateLength": {
41
+ "type": "integer",
42
+ "minimum": 1
43
+ }
44
+ }
45
+ },
46
+ "enabledEvents": {
47
+ "type": "array",
48
+ "items": { "type": "string" }
49
+ },
50
+ "captureBeforeToolCall": {
51
+ "type": "boolean"
52
+ }
53
+ }
54
+ },
55
+ "uiHints": {
56
+ "logDir": {
57
+ "label": "Log Directory",
58
+ "placeholder": "~/.openclaw/audit-trail",
59
+ "help": "Directory where tamper-evident audit logs are stored",
60
+ "advanced": true
61
+ },
62
+ "captureMode": {
63
+ "label": "Capture Mode",
64
+ "help": "metadata_only: record hashes and lengths only (privacy-safe). full_capture: record raw content."
65
+ },
66
+ "rotation.strategy": {
67
+ "label": "Rotation Strategy",
68
+ "help": "daily: one file per day. session: one file per session. size: rotate by file size."
69
+ },
70
+ "rotation.maxSizeBytes": {
71
+ "label": "Max Log File Size (bytes)",
72
+ "help": "Only used when rotation strategy is 'size'",
73
+ "advanced": true
74
+ },
75
+ "redaction.mode": {
76
+ "label": "Redaction Mode",
77
+ "help": "hash: replace with SHA-256. omit: remove field. truncate: keep first N chars."
78
+ },
79
+ "redaction.fields": {
80
+ "label": "Redaction Fields",
81
+ "help": "Dot-notation paths to redact in full_capture mode (e.g. payload.content)",
82
+ "advanced": true
83
+ },
84
+ "captureBeforeToolCall": {
85
+ "label": "Capture Before Tool Call",
86
+ "help": "Record tool parameters before execution (may expose sensitive args)",
87
+ "advanced": true
88
+ }
89
+ }
90
+ }
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@kanson1996/audit-trail",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "Tamper-evident audit trail plugin for OpenClaw",
6
+ "license": "MIT",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "openclaw.plugin.json"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.js",
16
+ "types": "./dist/index.d.ts"
17
+ }
18
+ },
19
+ "openclaw": {
20
+ "extensions": [
21
+ "./index.ts"
22
+ ]
23
+ },
24
+ "scripts": {
25
+ "build": "tsc -p tsconfig.json",
26
+ "typecheck": "tsc -p tsconfig.json --noEmit",
27
+ "test": "vitest run"
28
+ },
29
+ "dependencies": {
30
+ "agent-audit-trail": "0.1.0",
31
+ "commander": "^12.1.0"
32
+ },
33
+ "devDependencies": {
34
+ "typescript": "^5.7.0",
35
+ "vitest": "^2.1.0"
36
+ },
37
+ "peerDependencies": {
38
+ "openclaw": ">=2026.3.11"
39
+ }
40
+ }