@upx-us/shield 0.3.5 → 0.3.6

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/README.md CHANGED
@@ -212,6 +212,8 @@ Shield captures agent activity locally, applies on-device redaction, and forward
212
212
  - After upgrade verify with: `openclaw shield status`
213
213
  - See CHANGELOG.md for version history
214
214
 
215
+ > **"Integrity drift detected"** during upgrade is expected. OpenClaw stores the checksum of the installed version and warns when it changes — which it always does on a legitimate upgrade. Confirm with `y` to proceed. This prompt only indicates a real problem if you see it without having explicitly upgraded (e.g. the plugin files changed unexpectedly).
216
+
215
217
  ---
216
218
 
217
219
  ## Troubleshooting
package/dist/src/index.js CHANGED
@@ -68,17 +68,20 @@ async function poll() {
68
68
  if (now - lastTelemetryAt >= TELEMETRY_INTERVAL_MS) {
69
69
  const hostSnapshot = config.collectHostMetrics ? (0, transformer_1.generateHostTelemetry)() : null;
70
70
  const hostMeta = hostSnapshot?.event?.tool_metadata;
71
+ const agentId = process.env.OPENCLAW_AGENT_ID || 'main';
71
72
  const instancePayload = {
72
73
  machine: {
73
74
  hostname: config.hostname,
74
75
  os: process.platform,
75
76
  arch: process.arch,
76
77
  node_version: process.version,
78
+ public_ip: (0, transformer_1.getCachedPublicIp)() ?? undefined,
77
79
  },
78
80
  software: {
79
81
  plugin_version: version_1.VERSION,
80
82
  openclaw_version: (0, transformer_1.resolveOpenClawVersion)(),
81
- agent_label: (0, transformer_1.resolveAgentLabel)('main'),
83
+ agent_label: (0, transformer_1.resolveAgentLabel)(agentId),
84
+ instance_name: (0, transformer_1.resolveAgentLabel)(agentId) || config.hostname,
82
85
  ...(hostMeta && {
83
86
  gateway_bind: hostMeta['openclaw.gateway_bind'],
84
87
  webhook_configured: hostMeta['openclaw.webhook_configured'],
@@ -10,6 +10,7 @@ export interface IngestPayload {
10
10
  }
11
11
  export declare function resolveOpenClawVersion(): string;
12
12
  export declare function resolveAgentLabel(agentId: string): string;
13
+ export declare function getCachedPublicIp(): string | null;
13
14
  export declare function resolveOutboundIp(): Promise<string | null>;
14
15
  export declare function transformEntries(entries: RawEntry[]): EnvelopeEvent[];
15
16
  export declare function generateHostTelemetry(): EnvelopeEvent | null;
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.resolveOpenClawVersion = resolveOpenClawVersion;
37
37
  exports.resolveAgentLabel = resolveAgentLabel;
38
+ exports.getCachedPublicIp = getCachedPublicIp;
38
39
  exports.resolveOutboundIp = resolveOutboundIp;
39
40
  exports.transformEntries = transformEntries;
40
41
  exports.generateHostTelemetry = generateHostTelemetry;
@@ -116,6 +117,9 @@ function writeIpCache(ip) {
116
117
  }
117
118
  catch { }
118
119
  }
120
+ function getCachedPublicIp() {
121
+ return readIpCache()?.ip ?? (_source?.ip_addresses[0] ?? null);
122
+ }
119
123
  function resolveOutboundIp() {
120
124
  return new Promise((resolve) => {
121
125
  try {
@@ -2,7 +2,7 @@
2
2
  "id": "shield",
3
3
  "name": "OpenClaw Shield",
4
4
  "description": "Real-time security monitoring \u2014 streams enriched, redacted security events to the Shield detection platform.",
5
- "version": "0.3.5",
5
+ "version": "0.3.6",
6
6
  "skills": [
7
7
  "./skills"
8
8
  ],
@@ -57,4 +57,4 @@
57
57
  "label": "Collect host telemetry metrics"
58
58
  }
59
59
  }
60
- }
60
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upx-us/shield",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Security monitoring plugin for OpenClaw agents — streams enriched security events to the Shield detection platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",