From a69f0f0c3775feb706afcaac7c84b00ef59c4147 Mon Sep 17 00:00:00 2001 From: xx254 Date: Thu, 2 Apr 2026 20:29:21 +0800 Subject: [PATCH] setup --- .gitignore | 4 +++ scripts/bootstrap-system.js | 55 ++----------------------------------- 2 files changed, 6 insertions(+), 53 deletions(-) diff --git a/.gitignore b/.gitignore index 53de784..50055fb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,10 @@ reports/* state/*.json !state/*.example.json +# Personal context files — user-specific, never commit +context/about-me.md +context/brand-voice.md + # Lead CSV files — contain real personal data, never commit *.csv !sample_contacts.example.csv diff --git a/scripts/bootstrap-system.js b/scripts/bootstrap-system.js index 1579771..4a761e1 100644 --- a/scripts/bootstrap-system.js +++ b/scripts/bootstrap-system.js @@ -1,7 +1,6 @@ #!/usr/bin/env node const fs = require("fs"); const path = require("path"); -const readline = require("readline"); const { readJson, writeJson, ensureDir } = require("./lib/io"); const ROOT = path.resolve(__dirname, ".."); @@ -100,55 +99,5 @@ const result = { root: ROOT }; -// Telemetry opt-in — ask once on first setup -const freshState = readJson(statePath, {}); -if (!freshState.telemetryPrompted) { - const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); - - const ask = (q) => new Promise((resolve) => rl.question(q, resolve)); - - (async () => { - console.log("\n──────────────────────────────────────────"); - console.log("Help us improve these skills for your industry."); - console.log("Community mode shares anonymous usage data — which skills you run,"); - console.log("how many leads processed, signal types that worked."); - console.log("No names, no message content, no file paths. Ever."); - console.log("Change anytime: set \"telemetry\": \"off\" in state/linkedin-settings.json"); - console.log("──────────────────────────────────────────"); - - const a1 = await ask("\nA) Sure, happy to help improve this\nB) No thanks\n> "); - - let telemetryLevel; - - if (a1.trim().toUpperCase() === "A") { - telemetryLevel = "community"; - } else { - const a2 = await ask( - "\nHow about anonymous mode? We just learn that someone ran the pipeline —\n" + - "no ID, no details. Just a counter that helps us know the tool is useful.\n\n" + - "A) Anonymous is fine\nB) No thanks, fully off\n> " - ); - telemetryLevel = a2.trim().toUpperCase() === "A" ? "anonymous" : "off"; - } - - rl.close(); - - // Save telemetry choice to settings - const settings = readJson(settingsPath, {}); - if (!settings.settings) settings.settings = {}; - settings.settings.telemetry = telemetryLevel; - writeJson(settingsPath, settings); - - // Mark telemetry as prompted in state - const state = readJson(statePath, {}); - state.telemetryPrompted = true; - writeJson(statePath, state); - - result.telemetry = telemetryLevel; - showSampleLeads(); - console.log("\n" + JSON.stringify(result, null, 2)); - })(); -} else { - showSampleLeads(); - console.log(JSON.stringify(result, null, 2)); -} +showSampleLeads(); +console.log(JSON.stringify(result, null, 2));