Lines 6-46javascript
6 * Transport layer for the autonomous extraction pipeline:
7 * 1. Check kill-switch sentinel + recursion guard (A5.2)
8 * 2. Enumerate active sources via TranscriptSource interface (A5.1)
9 * 3. For each new session: readSession() → client-side scrub → write queue file → local extraction → POST /learn
10 * 4. On success: update ledger, delete queue file. On failure: leave queue file.
13 * node scripts/runner.js # sweep all sources
14 * node scripts/runner.js --source claude-code # specific source
15 * node scripts/runner.js --dry-run # scrub only, no upload
16 * node scripts/runner.js --session <id> # process specific session
17 * node scripts/runner.js --transcript <path> # single-file mode (hook-fired)
18 * node scripts/runner.js --install-hooks # install SessionEnd hook
19 * node scripts/runner.js --install-sweeper # install launchd sweeper to ~/.auxilo/bin (P1-13)
20 * node scripts/runner.js --install-digest # install launchd daily-digest to ~/.auxilo/bin (P1-13)
21 * node scripts/runner.js --status # print status (B14)
22 * node scripts/runner.js --flush-pending # retry queue files
23 * node scripts/runner.js --force # ignore ledger high-water
26 * AUXILO_API_KEY — API key for authenticated /learn submissions (REQUIRED unless --dry-run)
27 * AUXILO_BASE_URL — Server URL (default: http://localhost:49152)
28 * AUXILO_EXTRACTING — Recursion guard (A5.2); set to "1" by this runner
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
scripts/runner.jsView on unpkg · L26 35const fs = require('fs');
36const path = require('path');
37const os = require('os');
38const crypto = require('crypto');
39const { scanText, SENSITIVITY_FILTER_VERSION } = require('../lib/sensitivity-filter.js');
40const { ClaudeCodeSource } = require('./sources/claude-code.js');
41const { OpenClawSource } = require('./sources/openclaw.js');
42const { GeminiCliSource } = require('./sources/gemini-cli.js');
43const { AntigravitySource } = require('./sources/antigravity.js');
44const { GenericJsonlSource } = require('./sources/generic-jsonl.js');
46// ─── Constants ──────────────────────────────────────────────────────────────