@pdpp/local-collector 0.18.4 → 0.18.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const COLLECTOR_BUILD_SOURCE_SENTINEL = "source";
|
|
2
2
|
const COLLECTOR_BUILD_INFO = {
|
|
3
|
-
builtAt: "2026-06-
|
|
4
|
-
revision: "
|
|
5
|
-
version: "0.18.
|
|
3
|
+
builtAt: "2026-06-26T20:25:10.467Z",
|
|
4
|
+
revision: "cfc7aa4bc2ac",
|
|
5
|
+
version: "0.18.6",
|
|
6
6
|
};
|
|
7
7
|
function buildAgentVersion(info = COLLECTOR_BUILD_INFO) {
|
|
8
8
|
return `${info.version}+${info.revision}`;
|
|
@@ -97,7 +97,7 @@ export function runConnector(config) {
|
|
|
97
97
|
if (typeof config.collect !== "function") {
|
|
98
98
|
throw new Error("runConnector: config.collect required");
|
|
99
99
|
}
|
|
100
|
-
const { name, validateRecord, collect, browser, retryablePattern = DEFAULT_RETRYABLE_PATTERN, timeRangeField = "date", isTombstone, auth, } = config;
|
|
100
|
+
const { name, validateRecord, collect, browser, normalizeTerminalError = (error) => error, retryablePattern = DEFAULT_RETRYABLE_PATTERN, timeRangeField = "date", isTombstone, auth, } = config;
|
|
101
101
|
const ensureSession = browser ? config.ensureSession : undefined;
|
|
102
102
|
const probeSession = browser ? config.probeSession : undefined;
|
|
103
103
|
const timeRangeFieldFor = typeof timeRangeField === "function" ? timeRangeField : () => timeRangeField;
|
|
@@ -120,11 +120,12 @@ export function runConnector(config) {
|
|
|
120
120
|
};
|
|
121
121
|
let observedCounters = null;
|
|
122
122
|
const emitFailed = (message, retryable = false, records_emitted = observedCounters?.totalEmitted ?? 0) => {
|
|
123
|
+
const terminalError = normalizeTerminalError({ message, retryable });
|
|
123
124
|
emit({
|
|
124
125
|
type: "DONE",
|
|
125
126
|
status: "failed",
|
|
126
127
|
records_emitted,
|
|
127
|
-
error:
|
|
128
|
+
error: terminalError,
|
|
128
129
|
}).catch(() => undefined);
|
|
129
130
|
flushAndExit(1);
|
|
130
131
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdpp/local-collector",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.6",
|
|
4
4
|
"description": "Publishable local collector runtime for PDPP: filesystem-class connectors (Claude Code, Codex) plus the device-exporter ingest client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|