@pdpp/local-collector 0.1.0-beta.8 → 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.
package/README.md
CHANGED
|
@@ -17,19 +17,19 @@ enrollment response currently names that value `source_instance_id`.
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
# @pdpp/local-collector
|
|
21
|
-
npx -y @pdpp/local-collector
|
|
20
|
+
# @pdpp/local-collector package, npx-launched pdpp-local-collector binary
|
|
21
|
+
npx -y @pdpp/local-collector advertise
|
|
22
22
|
|
|
23
|
-
# @pdpp/local-collector
|
|
24
|
-
npx -y @pdpp/local-collector
|
|
23
|
+
# @pdpp/local-collector package, npx-launched pdpp-local-collector binary
|
|
24
|
+
npx -y @pdpp/local-collector enroll \
|
|
25
25
|
--base-url https://<reference-host> \
|
|
26
26
|
--code <one-time-code>
|
|
27
27
|
|
|
28
|
-
# @pdpp/local-collector
|
|
28
|
+
# @pdpp/local-collector package, npx-launched pdpp-local-collector binary
|
|
29
29
|
PDPP_LOCAL_DEVICE_ID=<device_id> \
|
|
30
30
|
PDPP_LOCAL_DEVICE_TOKEN=<device_token> \
|
|
31
31
|
PDPP_CONNECTION_ID=<source_instance_id> \
|
|
32
|
-
npx -y @pdpp/local-collector
|
|
32
|
+
npx -y @pdpp/local-collector run \
|
|
33
33
|
--base-url https://<reference-host> \
|
|
34
34
|
--connector claude_code
|
|
35
35
|
```
|
|
@@ -41,8 +41,8 @@ before persisting records or state.
|
|
|
41
41
|
Install globally if you prefer a persistent binary:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
# @pdpp/local-collector
|
|
45
|
-
npm i -g @pdpp/local-collector
|
|
44
|
+
# @pdpp/local-collector package, installs the pdpp-local-collector binary
|
|
45
|
+
npm i -g @pdpp/local-collector
|
|
46
46
|
pdpp-local-collector advertise
|
|
47
47
|
```
|
|
48
48
|
|
|
@@ -375,9 +375,9 @@ export function buildLocalOutboxDoctor(status, errorSummary) {
|
|
|
375
375
|
remediation.push(`This lane drained ${status.coverage.record_batches} record batch(es) but never carried a ` +
|
|
376
376
|
"`coverage_diagnostics` record, so the dashboard can only show coverage_unknown. " +
|
|
377
377
|
"Re-run with a build that emits `coverage_diagnostics` by default and the default stream set (no `--streams`): " +
|
|
378
|
-
"`npx -y @pdpp/local-collector
|
|
379
|
-
"Older installs may omit `coverage_diagnostics` from bundled defaults. `npx -y` fetches the latest *published*
|
|
380
|
-
"which can still lag the repo build — if the gap persists, confirm
|
|
378
|
+
"`npx -y @pdpp/local-collector run …` (or `pdpp-local-collector run …` if already on a current build). " +
|
|
379
|
+
"Older installs may omit `coverage_diagnostics` from bundled defaults. `npx -y` fetches the latest *published* build, " +
|
|
380
|
+
"which can still lag the repo build — if the gap persists, confirm the published `latest` carries the fix with " +
|
|
381
381
|
"`pnpm release:dist-tag-check` (release owner) rather than assuming the published build is current.");
|
|
382
382
|
}
|
|
383
383
|
if (checks.deployment_posture === "warn") {
|
|
@@ -401,14 +401,14 @@ function deploymentPostureRemediation(posture) {
|
|
|
401
401
|
}
|
|
402
402
|
if (posture.is_placeholder_version) {
|
|
403
403
|
parts.push(`The reported version is the \`${posture.version}\` placeholder, which is older than ` +
|
|
404
|
-
"every real build (
|
|
404
|
+
"every real build (left over from the npm bootstrap; upgrade to the published release).");
|
|
405
405
|
}
|
|
406
406
|
parts.push("Pin a published version before capturing operator-host evidence: " +
|
|
407
|
-
"`npm i -g @pdpp/local-collector
|
|
408
|
-
"The published
|
|
407
|
+
"`npm i -g @pdpp/local-collector` (or an explicit pinned `@<version>`). " +
|
|
408
|
+
"The published build can lag the repo build, so confirm it carries the " +
|
|
409
409
|
"fixes you need before re-pinning — `pnpm release:dist-tag-check` (release " +
|
|
410
|
-
"owner) reports
|
|
411
|
-
"ahead of
|
|
410
|
+
"owner) reports the live dist-tag posture; a `repo_dist_override` that is " +
|
|
411
|
+
"ahead of the published build is dev evidence, not a build to downgrade to. " +
|
|
412
412
|
"See docs/local-collector.md §\"Deployment Posture: Published vs Dev\".");
|
|
413
413
|
return parts.join(" ");
|
|
414
414
|
}
|
|
@@ -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.1.0
|
|
3
|
+
builtAt: "2026-06-10T21:11:50.491Z",
|
|
4
|
+
revision: "02f42a3d0f77",
|
|
5
|
+
version: "0.1.0",
|
|
6
6
|
};
|
|
7
7
|
function buildAgentVersion(info = COLLECTOR_BUILD_INFO) {
|
|
8
8
|
return `${info.version}+${info.revision}`;
|
|
@@ -35,22 +35,18 @@ export const STATIC_SECRET_CONNECTOR_REGISTRY = Object.freeze({
|
|
|
35
35
|
slack: freezeStaticSecretDescriptor({
|
|
36
36
|
credentialKind: "secret_bundle",
|
|
37
37
|
secretFieldEnvVars: {
|
|
38
|
+
slack_workspace: ["SLACK_WORKSPACE"],
|
|
38
39
|
slack_token: ["SLACK_TOKEN"],
|
|
39
40
|
slack_cookie: ["SLACK_COOKIE"],
|
|
40
41
|
},
|
|
41
|
-
setupFieldEnvVars: {
|
|
42
|
-
slack_workspace: ["SLACK_WORKSPACE"],
|
|
43
|
-
},
|
|
44
42
|
}),
|
|
45
43
|
reddit: freezeStaticSecretDescriptor({
|
|
46
44
|
credentialKind: "secret_bundle",
|
|
47
45
|
secretFieldEnvVars: {
|
|
48
|
-
reddit_password: ["REDDIT_PASSWORD"],
|
|
49
|
-
reddit_client_secret: ["REDDIT_CLIENT_SECRET"],
|
|
50
|
-
},
|
|
51
|
-
setupFieldEnvVars: {
|
|
52
46
|
reddit_username: ["REDDIT_USERNAME"],
|
|
47
|
+
reddit_password: ["REDDIT_PASSWORD"],
|
|
53
48
|
reddit_client_id: ["REDDIT_CLIENT_ID"],
|
|
49
|
+
reddit_client_secret: ["REDDIT_CLIENT_SECRET"],
|
|
54
50
|
},
|
|
55
51
|
}),
|
|
56
52
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdpp/local-collector",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
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,
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"access": "public",
|
|
59
59
|
"provenance": false,
|
|
60
60
|
"registry": "https://registry.npmjs.org/",
|
|
61
|
-
"tag": "
|
|
61
|
+
"tag": "latest"
|
|
62
62
|
}
|
|
63
63
|
}
|