polymath-society 0.2.9 → 0.2.10

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.
Files changed (2) hide show
  1. package/dist/cli.js +22 -25
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2117,7 +2117,8 @@ var init_plan = __esm({
2117
2117
  // src/wizard.ts
2118
2118
  var wizard_exports = {};
2119
2119
  __export(wizard_exports, {
2120
- runWizard: () => runWizard
2120
+ runWizard: () => runWizard,
2121
+ sayExportLinks: () => sayExportLinks
2121
2122
  });
2122
2123
  import { promises as fs35 } from "fs";
2123
2124
  import os10 from "os";
@@ -2152,6 +2153,24 @@ async function scanJsonlDir(label, dir) {
2152
2153
  await walk(dir, 0);
2153
2154
  return { label, dir, files, newest: newest ? new Date(newest).toISOString().slice(0, 10) : null };
2154
2155
  }
2156
+ async function sayExportLinks(say, haveKinds) {
2157
+ const { EXPORT_LINKS: EXPORT_LINKS2, osc8: osc82 } = await Promise.resolve().then(() => (init_exportLinks(), exportLinks_exports));
2158
+ const requestable = EXPORT_LINKS2.filter((l) => l.requestUrl);
2159
+ if (!requestable.length) return;
2160
+ const missing = requestable.filter((l) => !haveKinds.has(l.kind));
2161
+ say();
2162
+ say(` ${bold("Export more of your history")} \u2014 one click each:`);
2163
+ if (missing.length) {
2164
+ say(` ${missing.map((l) => l.label).join(", ")} ${missing.length === 1 ? "is" : "are"} not on this machine yet.`);
2165
+ }
2166
+ for (const l of requestable) {
2167
+ const have = haveKinds.has(l.kind);
2168
+ say(` ${bold(l.label)}${have ? green(" \u2713 already have one") : ""} ${osc82(l.requestUrl, l.requestUrl)}`);
2169
+ say(` ${l.buttonPath} \xB7 ${l.eta}`);
2170
+ }
2171
+ say(` ${dim("Run polymath-society again once a download lands \u2014 it finds the zip on its own.")}`);
2172
+ say();
2173
+ }
2155
2174
  function describeExport(f, i, included, hadPrevious) {
2156
2175
  const kind = {
2157
2176
  chatgpt: "ChatGPT export",
@@ -2327,20 +2346,7 @@ async function runWizard() {
2327
2346
  const defaults = found.map(() => true);
2328
2347
  say(` Found ${dim("(identified locally from the files themselves)")}:`);
2329
2348
  found.forEach((f, i) => say(describeExport(f, i, defaults[i], hadPrevious)));
2330
- {
2331
- const { EXPORT_LINKS: EXPORT_LINKS2, osc8: osc82 } = await Promise.resolve().then(() => (init_exportLinks(), exportLinks_exports));
2332
- const haveKinds = new Set(found.map((f) => f.kind));
2333
- const missing = EXPORT_LINKS2.filter((l) => l.requestUrl && !haveKinds.has(l.kind));
2334
- if (missing.length) {
2335
- say();
2336
- say(` ${bold("Not on this machine yet")} \u2014 one click to request each:`);
2337
- for (const l of missing) {
2338
- say(` ${bold(l.label)} ${osc82(l.requestUrl, l.requestUrl)}`);
2339
- say(` ${l.buttonPath} \xB7 ${l.eta}`);
2340
- }
2341
- say();
2342
- }
2343
- }
2349
+ await sayExportLinks(say, new Set(found.map((f) => f.kind)));
2344
2350
  const include = await pick2(defaults, hadPrevious);
2345
2351
  const manifest = {
2346
2352
  approvedAt: (/* @__PURE__ */ new Date()).toISOString(),
@@ -2360,16 +2366,7 @@ async function runWizard() {
2360
2366
  }
2361
2367
  } else {
2362
2368
  await writeManifest(dataDir, { approvedAt: (/* @__PURE__ */ new Date()).toISOString(), agents, exports: { included: [], excluded: [] } });
2363
- {
2364
- const { EXPORT_LINKS: EXPORT_LINKS2, osc8: osc82 } = await Promise.resolve().then(() => (init_exportLinks(), exportLinks_exports));
2365
- const missing = EXPORT_LINKS2.filter((l) => l.requestUrl);
2366
- say();
2367
- say(` ${bold("You can request these exports")} \u2014 one click each:`);
2368
- for (const l of missing) {
2369
- say(` ${bold(l.label)} ${osc82(l.requestUrl, l.requestUrl)}`);
2370
- say(` ${l.buttonPath} \xB7 ${l.eta}`);
2371
- }
2372
- }
2369
+ await sayExportLinks(say, /* @__PURE__ */ new Set());
2373
2370
  }
2374
2371
  {
2375
2372
  const { EXPORT_LINKS: EXPORT_LINKS2 } = await Promise.resolve().then(() => (init_exportLinks(), exportLinks_exports));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polymath-society",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Deterministic metrics from your local Claude Code / Codex agent logs — parallelism, flow, throughput, projects. Zero LLM, zero server, on-device.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",