@bli-cockpit/cli 0.1.2 → 0.1.3

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
@@ -26,8 +26,9 @@ What happens:
26
26
  1. npm downloads the public `@bli-cockpit/cli` package.
27
27
  2. `cockpit onboard` writes local user config.
28
28
  3. Cockpit prints a dashboard pairing URL and code.
29
- 4. The signed-in intern approves that exact code, or an Admin approves it while
30
- watching the same code.
29
+ 4. Admin approves the pending request from Ambient -> Collector approvals, or
30
+ pastes the printed code there. The signed-in intern can still use the
31
+ printed URL.
31
32
  5. The CLI starts general ambient capture, uploads private raw evidence objects
32
33
  when present, then uploads one safe metadata/ref envelope.
33
34
  6. The CLI prints `PASS: Cockpit collector is ready for harvest.`
@@ -636,7 +636,7 @@ function nextStepForOnboardBlocker(blocker) {
636
636
  case "ticket_binding":
637
637
  return "Run `cockpit start --ticket <id>` when actual ticket work begins, then run `cockpit sync`.";
638
638
  case "device_pairing":
639
- return "Open the pairing URL, approve the exact code in Cockpit, then rerun `cockpit onboard`.";
639
+ return "Approve from Ambient -> Collector approvals, or paste the pairing code there, then rerun `cockpit onboard`.";
640
640
  case "network_or_ingest":
641
641
  return "Check dashboard URL/network, then run `cockpit sync --json` or rerun `cockpit onboard`.";
642
642
  case "install":
@@ -4,7 +4,7 @@ import fs from "node:fs/promises";
4
4
  import os from "node:os";
5
5
  import path from "node:path";
6
6
  import { summarizeLocalUploadSpool } from "./spool/local-spool.js";
7
- export const LOCAL_COLLECTOR_VERSION = "0.1.2";
7
+ export const LOCAL_COLLECTOR_VERSION = "0.1.3";
8
8
  export const DEFAULT_DASHBOARD_URL = "http://127.0.0.1:3100";
9
9
  export function getCollectorRuntimePaths(homeDir = os.homedir()) {
10
10
  const paths = getUserLocalCockpitPaths(homeDir);
package/dist/upload.js CHANGED
@@ -212,18 +212,17 @@ function makeSourceScanCompletedEvent(options) {
212
212
  }
213
213
  const rawEvidencePointers = options.rawEvidenceFacts?.pointers ?? [];
214
214
  const hasRawEvidence = rawEvidencePointers.length > 0;
215
+ const eventPrivacyClassification = hasRawEvidence
216
+ ? "redacted_summary"
217
+ : "metadata";
215
218
  return TelemetryIngestEventDtoSchema.parse({
216
219
  event_id: `ambient-sync:${options.context.work_context_id}:${options.generatedAt}`,
217
220
  event_type: "source_scan_completed",
218
221
  occurred_at: options.generatedAt,
219
222
  provenance: options.context.provenance,
220
- privacy_classification: hasRawEvidence
221
- ? "remote_durable_raw_evidence"
222
- : "metadata",
223
+ privacy_classification: eventPrivacyClassification,
223
224
  redaction: {
224
- privacy_classification: hasRawEvidence
225
- ? "remote_durable_raw_evidence"
226
- : "metadata",
225
+ privacy_classification: eventPrivacyClassification,
227
226
  redaction_status: hasRawEvidence
228
227
  ? "raw_remote_durable"
229
228
  : "metadata_only",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {