@ascenda-one/history-import 0.1.41 → 0.1.42

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 +494 -26
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -924,6 +924,9 @@ var require_out = __commonJS({
924
924
  outcome: "outcome",
925
925
  trigger: "outcome",
926
926
  promptClass: "counts",
927
+ // One letter for how long the prompt was, worked out on this machine.
928
+ // Never the text or its length.
929
+ promptSizeBucket: "counts",
927
930
  reason: "outcome",
928
931
  afterHours: "clock",
929
932
  activity: "counts",
@@ -983,6 +986,7 @@ var require_out = __commonJS({
983
986
  "outcome",
984
987
  "trigger",
985
988
  "promptClass",
989
+ "promptSizeBucket",
986
990
  "reason",
987
991
  "afterHours",
988
992
  "activity",
@@ -1287,7 +1291,7 @@ var require_collectorVersion = __commonJS({
1287
1291
  exports.COLLECTOR_VERSION = exports.UNRELEASED_COLLECTOR_VERSION = void 0;
1288
1292
  exports.describeCollectorVersion = describeCollectorVersion;
1289
1293
  exports.UNRELEASED_COLLECTOR_VERSION = "unreleased";
1290
- exports.COLLECTOR_VERSION = "0.1.41" ? "0.1.41" : exports.UNRELEASED_COLLECTOR_VERSION;
1294
+ exports.COLLECTOR_VERSION = "0.1.42" ? "0.1.42" : exports.UNRELEASED_COLLECTOR_VERSION;
1291
1295
  function describeCollectorVersion(version = exports.COLLECTOR_VERSION) {
1292
1296
  return version === exports.UNRELEASED_COLLECTOR_VERSION ? `${version} (built from a checkout, not a release)` : version;
1293
1297
  }
@@ -2393,6 +2397,8 @@ var require_http = __commonJS({
2393
2397
  exports.createPairingSession = createPairingSession;
2394
2398
  exports.getPairingStatus = getPairingStatus;
2395
2399
  exports.startStudyJoin = startStudyJoin;
2400
+ exports.previewJoinCode = previewJoinCode;
2401
+ exports.startSquadronJoin = startSquadronJoin;
2396
2402
  exports.getStudyJoinStatus = getStudyJoinStatus2;
2397
2403
  exports.readInitiatives = readInitiatives;
2398
2404
  exports.readStudyNotices = readStudyNotices;
@@ -2444,6 +2450,31 @@ var require_http = __commonJS({
2444
2450
  throw await apiError(response);
2445
2451
  return await response.json();
2446
2452
  }
2453
+ async function previewJoinCode(apiBaseUrl, joinCode) {
2454
+ const response = await fetch(`${apiBaseUrl}/api/share/join/${encodeURIComponent(joinCode)}`, {
2455
+ method: "GET",
2456
+ headers: { Accept: "application/json" }
2457
+ });
2458
+ if (!response.ok)
2459
+ throw await apiError(response);
2460
+ return await response.json();
2461
+ }
2462
+ async function startSquadronJoin(apiBaseUrl, eventWriteToken, seat) {
2463
+ const response = await fetch(`${apiBaseUrl}/v1/org-study-join-sessions`, {
2464
+ method: "POST",
2465
+ headers: { "Content-Type": "application/json", Authorization: `Bearer ${eventWriteToken}` },
2466
+ body: JSON.stringify({
2467
+ joinCode: seat.joinCode,
2468
+ mode: "jam",
2469
+ handle: seat.handle,
2470
+ ...seat.aircraft ? { aircraft: seat.aircraft } : {},
2471
+ ...seat.colour ? { colour: seat.colour } : {}
2472
+ })
2473
+ });
2474
+ if (!response.ok)
2475
+ throw await apiError(response);
2476
+ return await response.json();
2477
+ }
2447
2478
  async function getStudyJoinStatus2(apiBaseUrl, eventWriteToken, joinSessionId) {
2448
2479
  const response = await fetch(`${apiBaseUrl}/v1/org-study-join-sessions/${encodeURIComponent(joinSessionId)}/status`, {
2449
2480
  method: "GET",
@@ -4051,17 +4082,20 @@ var require_confirmLinks = __commonJS({
4051
4082
  "../packages/tool-kit/out/confirmLinks.js"(exports) {
4052
4083
  "use strict";
4053
4084
  Object.defineProperty(exports, "__esModule", { value: true });
4085
+ exports.WEEKLY_POSTER_CONNECT_URL = void 0;
4054
4086
  exports.pairingConfirmUrl = pairingConfirmUrl;
4055
4087
  exports.pairingConfirmLines = pairingConfirmLines;
4056
4088
  exports.studyJoinConfirmUrl = studyJoinConfirmUrl;
4089
+ exports.WEEKLY_POSTER_CONNECT_URL = "https://me.ascendaflow.com/connect";
4057
4090
  function pairingConfirmUrl(qrUrl) {
4058
4091
  return isHttps(qrUrl) ? qrUrl : void 0;
4059
4092
  }
4060
4093
  function pairingConfirmLines(qrUrl, code) {
4061
4094
  const url = pairingConfirmUrl(qrUrl);
4095
+ const where = [" Ascenda Flow, under Connections \u2192 Ingest telemetry", ` ${exports.WEEKLY_POSTER_CONNECT_URL}, for the weekly poster`];
4062
4096
  if (!url)
4063
- return [`Confirm in the Ascenda app \u2014 code ${code}`];
4064
- return [`Open this link to confirm: ${url}`, `Or paste code ${code} in the Ascenda app.`];
4097
+ return [`Confirm code ${code} in either place:`, ...where];
4098
+ return [`Open this link to confirm: ${url}`, `Or enter code ${code} in either place:`, ...where];
4065
4099
  }
4066
4100
  function studyJoinConfirmUrl(apiBaseUrl, deviceCode) {
4067
4101
  if (!isHttps(apiBaseUrl))
@@ -5066,7 +5100,7 @@ var require_setupDisclosure = __commonJS({
5066
5100
  exports.renderSetupDisclosure = renderSetupDisclosure;
5067
5101
  exports.FAMILY_SENTENCES = {
5068
5102
  session: "when a session starts and ends, the one-word reason for the end if your agent gives one, how long each turn took, and whether it ran on this machine or in a hosted cloud session",
5069
- counts: "how many prompts you sent, how many replies came back, and what class of command ran in a terminal \u2014 test, lint, build, git and so on",
5103
+ counts: "how many prompts you sent and roughly how long each was, as one of four sizes, how many replies came back, and what class of command ran in a terminal \u2014 test, lint, build, git and so on",
5070
5104
  tools: "the name of each tool your agent calls",
5071
5105
  outcome: "whether a call succeeded, failed, or was interrupted",
5072
5106
  clock: "your machine's offset from UTC, so an evening is read as an evening",
@@ -5319,6 +5353,7 @@ var require_liveBus = __commonJS({
5319
5353
  exports.existingSocketCandidates = existingSocketCandidates;
5320
5354
  exports.liveBusSocketPath = liveBusSocketPath;
5321
5355
  exports.bucketPromptSize = bucketPromptSize;
5356
+ exports.promptSizeMetadata = promptSizeMetadata;
5322
5357
  exports.emitLiveSignal = emitLiveSignal;
5323
5358
  exports.deliverLine = deliverLine;
5324
5359
  var fs16 = __importStar(__require("fs"));
@@ -5367,6 +5402,9 @@ var require_liveBus = __commonJS({
5367
5402
  return "l";
5368
5403
  return "xl";
5369
5404
  }
5405
+ function promptSizeMetadata(text) {
5406
+ return text === void 0 ? {} : { promptSizeBucket: bucketPromptSize(text) };
5407
+ }
5370
5408
  var NOBODY_LISTENING = /* @__PURE__ */ new Set(["ECONNREFUSED", "ENOENT"]);
5371
5409
  function onTheWire(signal) {
5372
5410
  const out = { ...signal };
@@ -6032,7 +6070,7 @@ ${(0, setupDisclosure_1.renderSetupDisclosure)({ sends: spec.sends, displayName:
6032
6070
  const next = (label, value) => console.log(` ${ui.bold(label.padEnd(6))} ${value}`);
6033
6071
  console.log("");
6034
6072
  if (chosenLocal) {
6035
- console.log(`${ui.mark("ok")} ${ui.bold("Ready.")} The screen saver and the Ascenda app's live view work now.`);
6073
+ console.log(`${ui.mark("ok")} ${ui.bold("Ready.")} The screen saver and Ascenda Flow's live view work now.`);
6036
6074
  console.log(" They run on this machine and need no account or pairing.");
6037
6075
  if (eventLog.path)
6038
6076
  console.log(` Every event is also written to ${(0, hookRunner_1.tidyHomePath)(eventLog.path, os6.homedir())}, for you or any tool to read.`);
@@ -6049,9 +6087,9 @@ ${(0, setupDisclosure_1.renderSetupDisclosure)({ sends: spec.sends, displayName:
6049
6087
  next(chosenLocal ? "Pair" : "Retry", `${ui.cyan(`${self} setup`)}${chosenLocal ? ui.dim(" (optional)") : ""}`);
6050
6088
  if (chosenLocal) {
6051
6089
  console.log("");
6052
- console.log(ui.dim(" Pairing sends the details below to Ascenda's servers, under the account the"));
6053
- console.log(ui.dim(" Ascenda app is signed in to when you confirm the code, so your sessions appear"));
6054
- console.log(ui.dim(" in the app. Until you pair, nothing leaves this machine."));
6090
+ console.log(ui.dim(" Pairing sends the details below to Ascenda's servers, under the account you"));
6091
+ console.log(ui.dim(" confirm the code with, in Ascenda Flow or at me.ascendaflow.com."));
6092
+ console.log(ui.dim(" Until you pair, nothing leaves this machine."));
6055
6093
  console.log("");
6056
6094
  console.log(ui.dim((0, setupDisclosure_1.renderSetupDisclosure)({ sends: spec.sends, displayName: spec.displayName }).split("\n").map((line) => ` ${line}`).join("\n")));
6057
6095
  }
@@ -6770,6 +6808,395 @@ var require_turnState = __commonJS({
6770
6808
  }
6771
6809
  });
6772
6810
 
6811
+ // ../packages/tool-kit/out/squadronJoin.js
6812
+ var require_squadronJoin = __commonJS({
6813
+ "../packages/tool-kit/out/squadronJoin.js"(exports) {
6814
+ "use strict";
6815
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
6816
+ if (k2 === void 0) k2 = k;
6817
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6818
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6819
+ desc = { enumerable: true, get: function() {
6820
+ return m[k];
6821
+ } };
6822
+ }
6823
+ Object.defineProperty(o, k2, desc);
6824
+ } : function(o, m, k, k2) {
6825
+ if (k2 === void 0) k2 = k;
6826
+ o[k2] = m[k];
6827
+ });
6828
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
6829
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
6830
+ } : function(o, v) {
6831
+ o["default"] = v;
6832
+ });
6833
+ var __importStar = exports && exports.__importStar || /* @__PURE__ */ function() {
6834
+ var ownKeys = function(o) {
6835
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
6836
+ var ar = [];
6837
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
6838
+ return ar;
6839
+ };
6840
+ return ownKeys(o);
6841
+ };
6842
+ return function(mod) {
6843
+ if (mod && mod.__esModule) return mod;
6844
+ var result = {};
6845
+ if (mod != null) {
6846
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
6847
+ }
6848
+ __setModuleDefault(result, mod);
6849
+ return result;
6850
+ };
6851
+ }();
6852
+ Object.defineProperty(exports, "__esModule", { value: true });
6853
+ exports.SQUADRON_COLOURS = exports.SQUADRON_AIRCRAFT = void 0;
6854
+ exports.generateCallsign = generateCallsign;
6855
+ exports.normaliseBookingReference = normaliseBookingReference;
6856
+ exports.callsignProblem = callsignProblem;
6857
+ exports.runSquadronJoin = runSquadronJoin;
6858
+ exports.leaseEnd = leaseEnd;
6859
+ exports.describeGate = describeGate;
6860
+ exports.describeSquadronRefusal = describeSquadronRefusal;
6861
+ var readline2 = __importStar(__require("node:readline"));
6862
+ var node_crypto_1 = __require("node:crypto");
6863
+ var confirmLinks_1 = require_confirmLinks();
6864
+ var http_1 = require_http();
6865
+ exports.SQUADRON_AIRCRAFT = ["trainer", "airliner", "glider", "fighter", "stealth", "floatplane"];
6866
+ exports.SQUADRON_COLOURS = ["orange", "yellow", "ivory", "charcoal", "grey", "red"];
6867
+ var CALLSIGN_WORDS = ["Kestrel", "Falcon", "Heron", "Swift", "Osprey", "Raven", "Merlin", "Puffin", "Condor", "Harrier", "Kite", "Tern"];
6868
+ function generateCallsign() {
6869
+ return `${CALLSIGN_WORDS[(0, node_crypto_1.randomInt)(CALLSIGN_WORDS.length)]} ${String((0, node_crypto_1.randomInt)(10, 100))}`;
6870
+ }
6871
+ function normaliseBookingReference(raw) {
6872
+ const cleaned = (raw ?? "").replace(/[\s-]/g, "").toUpperCase();
6873
+ return /^[A-Z0-9]{6}$/.test(cleaned) ? cleaned : void 0;
6874
+ }
6875
+ function callsignProblem(callsign) {
6876
+ const trimmed = callsign.trim();
6877
+ if (trimmed.length === 0)
6878
+ return "A callsign can't be empty.";
6879
+ if (trimmed.length > 40)
6880
+ return "A callsign is 40 characters at most.";
6881
+ if (/[\u0000-\u001f\u007f]/.test(trimmed))
6882
+ return "A callsign can't contain control characters.";
6883
+ return void 0;
6884
+ }
6885
+ var POLL_INTERVAL_MS = 3e3;
6886
+ var POLL_TIMEOUT_MS = 11 * 60 * 1e3;
6887
+ async function runSquadronJoin(ctx) {
6888
+ const stdin = ctx.stdin ?? process.stdin;
6889
+ const stdout = ctx.stdout ?? process.stdout;
6890
+ const stderr = ctx.stderr ?? process.stderr;
6891
+ const print = (line = "") => stdout.write(`${line}
6892
+ `);
6893
+ if (!stdin.isTTY || !stdout.isTTY) {
6894
+ stderr.write("squadron needs an interactive terminal (stdin and stdout). Run it directly, not from a script or a pipe.\n");
6895
+ return 0;
6896
+ }
6897
+ const reference = normaliseBookingReference(ctx.bookingReference);
6898
+ if (!reference) {
6899
+ stderr.write("A booking reference is six letters or digits, like FEFBDH.\n");
6900
+ return 1;
6901
+ }
6902
+ let preview;
6903
+ try {
6904
+ preview = await (0, http_1.previewJoinCode)(ctx.apiBaseUrl, reference);
6905
+ } catch (error) {
6906
+ stderr.write(`${describeSquadronError(error)}
6907
+ `);
6908
+ return 1;
6909
+ }
6910
+ const jam = preview.jam;
6911
+ if (preview.labRole !== "Jam" || !jam) {
6912
+ stderr.write(`${reference} isn't a Squadron booking reference. If it's a study code, run join instead.
6913
+ `);
6914
+ return 1;
6915
+ }
6916
+ if (jam.acceptsJoins === false) {
6917
+ stderr.write(jam.isLocked ? "This sortie's gate is closed. Ask the host to open it.\n" : "This sortie isn't taking new pilots.\n");
6918
+ return 1;
6919
+ }
6920
+ const aircraftList = jam.aircraft?.length ? jam.aircraft : [...exports.SQUADRON_AIRCRAFT];
6921
+ const colourList = jam.colours?.length ? jam.colours : [...exports.SQUADRON_COLOURS];
6922
+ for (const [flag, value, list] of [["--aircraft", ctx.aircraft, aircraftList], ["--colour", ctx.colour, colourList]]) {
6923
+ if (value !== void 0 && !list.includes(value.trim().toLowerCase())) {
6924
+ stderr.write(`${flag} must be one of: ${list.join(", ")}.
6925
+ `);
6926
+ return 1;
6927
+ }
6928
+ }
6929
+ if (ctx.callsign !== void 0) {
6930
+ const problem = callsignProblem(ctx.callsign);
6931
+ if (problem) {
6932
+ stderr.write(`${problem}
6933
+ `);
6934
+ return 1;
6935
+ }
6936
+ }
6937
+ print();
6938
+ print(`Squadron: ${jam.name ?? preview.labName ?? reference}`);
6939
+ if (jam.mission)
6940
+ print(`Mission: ${jam.mission}`);
6941
+ print(describeGate(jam));
6942
+ print();
6943
+ const prompt = createPrompter(stdin, stdout);
6944
+ try {
6945
+ let callsign = ctx.callsign?.trim();
6946
+ if (callsign === void 0) {
6947
+ const suggested = (ctx.generateCallsign ?? generateCallsign)();
6948
+ for (; ; ) {
6949
+ const answer = await prompt.ask(`Callsign [${suggested}]: `);
6950
+ if (answer === void 0)
6951
+ return notNow(print);
6952
+ const chosen = answer === "" ? suggested : answer;
6953
+ const problem = callsignProblem(chosen);
6954
+ if (!problem) {
6955
+ callsign = chosen.trim();
6956
+ break;
6957
+ }
6958
+ print(problem);
6959
+ }
6960
+ }
6961
+ let aircraft = ctx.aircraft?.trim().toLowerCase();
6962
+ if (aircraft === void 0) {
6963
+ const suggested = aircraftList[(0, node_crypto_1.randomInt)(aircraftList.length)];
6964
+ aircraft = await askFromList(prompt, print, "Aircraft", aircraftList, suggested);
6965
+ if (aircraft === void 0)
6966
+ return notNow(print);
6967
+ }
6968
+ let colour = ctx.colour?.trim().toLowerCase();
6969
+ if (colour === void 0) {
6970
+ const picked = await askFromList(prompt, print, "Colour", colourList, "", "dealt for you");
6971
+ if (picked === void 0)
6972
+ return notNow(print);
6973
+ colour = picked === "" ? void 0 : picked;
6974
+ }
6975
+ print();
6976
+ print(`You'll confirm as ${callsign}, ${aircraft}${colour ? `, ${colour}` : ""}. The confirm page lets you change any of them.`);
6977
+ print();
6978
+ print("Joining shares, with this squadron only:");
6979
+ print(` your activity counts from ${ctx.displayName}: prompts, tool calls, turns and edits, as numbers`);
6980
+ print(" your callsign and aircraft, which the other pilots see");
6981
+ print("Never your prompts, code, file names or project names.");
6982
+ print("Sharing stops on the date the server gives when you join. It's printed then.");
6983
+ print();
6984
+ print(" 1) Join");
6985
+ print(" 2) Not now");
6986
+ print();
6987
+ const choice = await prompt.ask("Choice [Not now]: ");
6988
+ if (choice === void 0 || !/^(1|join|y|yes)$/i.test(choice))
6989
+ return notNow(print);
6990
+ prompt.close();
6991
+ let start;
6992
+ try {
6993
+ start = await (0, http_1.startSquadronJoin)(ctx.apiBaseUrl, ctx.eventWriteToken, { joinCode: reference, handle: callsign, aircraft, colour });
6994
+ } catch (error) {
6995
+ const doorClosed = error instanceof http_1.AscendaApiError && error.status === 404 && !error.errorCode?.startsWith("jam_");
6996
+ stderr.write(doorClosed ? "This server can't seat you in a sortie from the command line yet. Join from the Ascenda app instead.\n" : `${describeSquadronError(error)}
6997
+ `);
6998
+ return 1;
6999
+ }
7000
+ if (start.kind !== void 0 && start.kind !== "jam") {
7001
+ stderr.write(`${reference} opened a study join, not a sortie. Run join instead.
7002
+ `);
7003
+ return 1;
7004
+ }
7005
+ print();
7006
+ const confirmUrl = (0, confirmLinks_1.studyJoinConfirmUrl)(ctx.apiBaseUrl, start.deviceCode);
7007
+ if (confirmUrl) {
7008
+ print(`Open this link to confirm: ${confirmUrl}`);
7009
+ print(`Or confirm in the Ascenda app with code ${start.deviceCode}.`);
7010
+ } else {
7011
+ print(`Confirm in the Ascenda app with code ${start.deviceCode}`);
7012
+ }
7013
+ print(`Waiting for confirmation (expires ${formatLocalTime(start.expiresAt)})...`);
7014
+ const pollIntervalMs = ctx.pollIntervalMs ?? POLL_INTERVAL_MS;
7015
+ const deadline = Math.min(Date.parse(start.expiresAt) || Date.now() + POLL_TIMEOUT_MS, Date.now() + POLL_TIMEOUT_MS);
7016
+ while (Date.now() < deadline) {
7017
+ await new Promise((resolve3) => setTimeout(resolve3, pollIntervalMs));
7018
+ let poll;
7019
+ try {
7020
+ poll = await (0, http_1.getStudyJoinStatus)(ctx.apiBaseUrl, ctx.eventWriteToken, start.joinSessionId);
7021
+ } catch (error) {
7022
+ if (!(error instanceof http_1.AscendaApiError) || error.status >= 500 && error.status <= 599)
7023
+ continue;
7024
+ stderr.write(`${describeSquadronError(error)}
7025
+ `);
7026
+ return 1;
7027
+ }
7028
+ if (poll.status === "pending")
7029
+ continue;
7030
+ if (poll.status === "confirmed") {
7031
+ const until = poll.endUtc ?? poll.jam?.endUtc ?? leaseEnd(poll.jam ?? {});
7032
+ const seat = poll.jam?.handle ? ` as ${poll.jam.handle}` : "";
7033
+ print();
7034
+ print(poll.jam?.alreadyJoined ? `You already have a seat${seat}.` : `Joined${seat}.`);
7035
+ print(until ? `Your activity counts are shared with this squadron until ${formatLocalDate(until)}.` : "Your activity counts are shared with this squadron until the sortie's sharing ends. The server didn't give a date.");
7036
+ print(describeStatusAfterJoin(poll.jam));
7037
+ return 0;
7038
+ }
7039
+ if (poll.status === "expired") {
7040
+ print();
7041
+ print("This code expired before it was confirmed. Run squadron again for a fresh code.");
7042
+ return 1;
7043
+ }
7044
+ print();
7045
+ print(describeSquadronRefusal(poll.refusedReason ?? void 0));
7046
+ return 1;
7047
+ }
7048
+ print();
7049
+ print("Timed out waiting for confirmation. Run squadron again for a fresh code.");
7050
+ return 1;
7051
+ } finally {
7052
+ prompt.close();
7053
+ }
7054
+ }
7055
+ function leaseEnd(jam) {
7056
+ const from = Date.parse(jam.startedAt ?? jam.quorumDeadline ?? "");
7057
+ if (Number.isNaN(from) || typeof jam.durationMinutes !== "number")
7058
+ return void 0;
7059
+ return new Date(from + (jam.durationMinutes + 7 * 24 * 60) * 6e4).toISOString();
7060
+ }
7061
+ function notNow(print) {
7062
+ print("Not now.");
7063
+ return 0;
7064
+ }
7065
+ async function askFromList(prompt, print, label, list, suggested, emptyMeans) {
7066
+ print(`${label === "Aircraft" ? "Aircraft" : `${label}s`}: ${list.join(", ")}`);
7067
+ for (; ; ) {
7068
+ const answer = await prompt.ask(`${label} [${emptyMeans ?? suggested}]: `);
7069
+ if (answer === void 0)
7070
+ return void 0;
7071
+ if (answer === "")
7072
+ return suggested;
7073
+ const value = answer.toLowerCase();
7074
+ const byNumber = /^\d+$/.test(value) ? list[Number(value) - 1] : void 0;
7075
+ if (byNumber)
7076
+ return byNumber;
7077
+ if (list.includes(value))
7078
+ return value;
7079
+ print(`Pick one of: ${list.join(", ")}.`);
7080
+ }
7081
+ }
7082
+ function describeGate(jam) {
7083
+ const length = jam.durationMinutes ? `${jam.durationMinutes}-minute flight plan` : "flight plan";
7084
+ if (jam.status === "live")
7085
+ return `In the air now, ${length}.`;
7086
+ const have = jam.activeParticipants ?? 0;
7087
+ const need = jam.minParticipants ?? 0;
7088
+ const deadline = jam.quorumDeadline ? `, gate closes ${formatLocalTime(jam.quorumDeadline)}` : "";
7089
+ return need > have ? `On the ground: ${have} of ${need} pilots in${deadline}. The ${length} starts when the squadron fills.` : `On the ground${deadline}. ${length[0].toUpperCase()}${length.slice(1)}.`;
7090
+ }
7091
+ function describeStatusAfterJoin(jam) {
7092
+ if (!jam)
7093
+ return "Open the Ascenda app to watch the squadron.";
7094
+ if (jam.status === "live" && jam.expiresAt)
7095
+ return `The squadron is in the air until ${formatLocalTime(jam.expiresAt)}. Open the Ascenda app to watch.`;
7096
+ const have = jam.activeParticipants;
7097
+ const need = jam.minParticipants;
7098
+ if (have !== void 0 && need !== void 0 && need > have)
7099
+ return `${have} of ${need} pilots in. The clock starts when the squadron fills.`;
7100
+ return "Open the Ascenda app to watch the squadron.";
7101
+ }
7102
+ function describeSquadronRefusal(code) {
7103
+ switch (code) {
7104
+ case "join_code_not_found":
7105
+ return "No sortie has that booking reference, or it has ended.";
7106
+ case "jam_closed":
7107
+ return "That sortie has ended.";
7108
+ case "jam_locked":
7109
+ return "This sortie's gate is closed. Ask the host to open it.";
7110
+ case "jam_already_left":
7111
+ return "You left this sortie, and leaving is final. Ask the host for a new one.";
7112
+ case "jam_handle_taken":
7113
+ return "Another pilot has that callsign. Run squadron again and pick another.";
7114
+ case "jam_requires_account":
7115
+ return "A sortie needs a signed-in Ascenda account, not a guest one.";
7116
+ case "jam_handle_required":
7117
+ case "jam_handle_too_long":
7118
+ case "jam_handle_invalid":
7119
+ return "The server didn't accept that callsign. Run squadron again and pick another.";
7120
+ case "jam_aircraft_unknown":
7121
+ return "The server didn't recognise that aircraft.";
7122
+ case "jam_colour_unknown":
7123
+ return "The server didn't recognise that colour.";
7124
+ case "unknown_mode":
7125
+ return "This server's join door didn't accept a sortie. It may be older than this command.";
7126
+ case "too_many_open_sessions":
7127
+ return "Too many joins are waiting to be confirmed. Confirm or let one expire, then try again.";
7128
+ case "jam_not_enabled":
7129
+ return "Squadron isn't switched on for this server yet.";
7130
+ default:
7131
+ return code ? `The server refused the join (${code}).` : "The server refused the join.";
7132
+ }
7133
+ }
7134
+ function describeSquadronError(error) {
7135
+ if (error instanceof http_1.AscendaApiError) {
7136
+ if (error.status === 401)
7137
+ return "This collector's pairing isn't accepted any more. Run pair, then try again.";
7138
+ if (error.status === 404 && !error.errorCode?.startsWith("jam_"))
7139
+ return describeSquadronRefusal("join_code_not_found");
7140
+ return describeSquadronRefusal(error.errorCode);
7141
+ }
7142
+ return `Couldn't reach Ascenda: ${error instanceof Error ? error.message : String(error)}`;
7143
+ }
7144
+ function createPrompter(stdin, stdout) {
7145
+ const rl = readline2.createInterface({ input: stdin, output: stdout });
7146
+ let closed = false;
7147
+ const lines = [];
7148
+ let waiting;
7149
+ rl.on("line", (line) => {
7150
+ if (waiting) {
7151
+ const resolve3 = waiting;
7152
+ waiting = void 0;
7153
+ resolve3(line.trim());
7154
+ } else {
7155
+ lines.push(line.trim());
7156
+ }
7157
+ });
7158
+ rl.on("close", () => {
7159
+ closed = true;
7160
+ if (waiting) {
7161
+ const resolve3 = waiting;
7162
+ waiting = void 0;
7163
+ resolve3(void 0);
7164
+ }
7165
+ });
7166
+ return {
7167
+ ask(question) {
7168
+ if (lines.length > 0) {
7169
+ stdout.write(question);
7170
+ return Promise.resolve(lines.shift());
7171
+ }
7172
+ if (closed)
7173
+ return Promise.resolve(void 0);
7174
+ stdout.write(question);
7175
+ return new Promise((resolve3) => {
7176
+ waiting = resolve3;
7177
+ });
7178
+ },
7179
+ close() {
7180
+ if (!closed)
7181
+ rl.close();
7182
+ }
7183
+ };
7184
+ }
7185
+ function formatLocalTime(iso) {
7186
+ const date = new Date(iso);
7187
+ if (Number.isNaN(date.getTime()))
7188
+ return iso;
7189
+ return new Intl.DateTimeFormat(void 0, { day: "numeric", month: "short", hour: "numeric", minute: "2-digit" }).format(date);
7190
+ }
7191
+ function formatLocalDate(iso) {
7192
+ const date = new Date(iso);
7193
+ if (Number.isNaN(date.getTime()))
7194
+ return iso;
7195
+ return new Intl.DateTimeFormat(void 0, { day: "numeric", month: "short", year: "numeric" }).format(date);
7196
+ }
7197
+ }
7198
+ });
7199
+
6773
7200
  // ../packages/tool-kit/out/pluginBundle.js
6774
7201
  var require_pluginBundle = __commonJS({
6775
7202
  "../packages/tool-kit/out/pluginBundle.js"(exports) {
@@ -7010,9 +7437,9 @@ var require_out3 = __commonJS({
7010
7437
  Object.defineProperty(exports, "__esModule", { value: true });
7011
7438
  exports.expandUserPath = exports.describeEventLog = exports.defaultEventLogPath = exports.appendEventLog = exports.EVENT_LOG_OFF = exports.EVENT_LOG_ENV_VAR = exports.toAgentEvent = exports.buildEventPayload = exports.buildEventBody = exports.TOKEN_RENEW_LEAD_MS = exports.AscendaSemanticEventError = exports.AscendaEventSender = exports.startBackgroundFlush = exports.runOutboxFlush = exports.hookDeliveryInline = exports.flushLockPath = exports.OUTBOX_FLUSH_COMMAND = exports.HOOK_DELIVERY_ENV_VAR = exports.FLUSH_LOCK_FRESH_MS = exports.describeCollectorVersion = exports.UNRELEASED_COLLECTOR_VERSION = exports.COLLECTOR_VERSION = exports.detectCollectorPlatform = exports.COLLECTOR_PLATFORM = exports.mintIdempotencyKey = exports.looksLikeCorrection = exports.outcomeForHook = exports.inferOutcome = exports.getNestedNumber = exports.getNestedString = exports.getNested = exports.getNumber = exports.getString = exports.localHourAt = exports.utcOffsetMinutesAt = exports.BUSINESS_DAY = exports.isOutsideBusinessHours = exports.isAfterHours = exports.bucketDurationMs = exports.bucketLinesChanged = exports.classifyModelClass = exports.autonomyBand = exports.shellCommandFacts = exports.invitesDebrief = exports.classifyMcpWorkMilestone = exports.classifyWorkMilestone = exports.isReworkGitAction = exports.classifyGitAction = exports.isVerificationCommand = exports.classifyCommand = void 0;
7012
7439
  exports.shouldAnnounceFailure = exports.recordSendOutcome = exports.readCollectorState = exports.defaultStateFilePath = exports.tokenExpiryFilePath = exports.readTokenFile = exports.readTokenExpiry = exports.persistEventWriteToken = exports.listPersistedToolInstallationIds = exports.defaultTokenFilePath = exports.ascendaHome = exports.EVENT_TOKEN_TTL_MS = exports.recordTurnStart = exports.readTurnPromptId = exports.consumeTurnDurationMs = exports.writeTopLevelCredentials = exports.writeMachineCredentials = exports.writeRepoKeysSetting = exports.writeEventLogSetting = exports.writeHostCredentials = exports.removeHostCredentials = exports.readMachineCredentials = exports.readHostCredentials = exports.isLocalOnlyHostInstall = exports.credentialsFilePath = exports.renderSetupDisclosure = exports.REFUSALS = exports.FREE_TEXT_KEYS = exports.FAMILY_SENTENCES = exports.ALWAYS_SENT = exports.writeHookSettings = exports.trustProblemLines = exports.runCliAgentSetup = exports.registeredHookSets = exports.ourHookPositions = exports.isCliAgentManagementCommand = exports.findStaleHookCommands = exports.cliAgentHookBinPath = exports.resolveContextHashes = exports.resolveCliAgentInstallationId = exports.withPromptId = exports.withForgeKeys = exports.loadCliAgentConfig = exports.flushHookOutbox = exports.deliverHookEvents = exports.MissingInstallationIdError = exports.DEFAULT_API_BASE_URL = exports.resolveEventLogPath = exports.resolveEventLog = exports.parseEventLogFlag = void 0;
7013
- exports.saverReplayPath = exports.saverContainerDir = exports.readSaverStatuses = exports.probeSocket = exports.heldForSaver = exports.holdForSaver = exports.LIVE_BUS_BACKGROUND_TRUST_MS = exports.liveBusSocketCandidates = exports.liveBusSocketPath = exports.bucketPromptSize = exports.deliverLine = exports.emitLiveSignal = exports.repoKeysEnabled = exports.deriveForgeKeysForCwd = exports.REPO_KEYS_ENV_VAR = exports.recordForgeProjectAlias = exports.forgeFullNameFromConfig = exports.readForgeFullName = exports.parseForgeFullName = exports.forgeBranchKey = exports.forgeRepoKey = exports.forgeProjectHash = exports.workContextRegistryFilePath = exports.readWorkContextRegistry = exports.recordWorkContextAlias = exports.recordWorkContext = exports.readBranchName = exports.normalizeBranchName = exports.deriveBranchHashForCwd = exports.deriveBranchHash = exports.deriveWorkContext = exports.hashWithMachineSalt = exports.readOrCreateMachineSalt = exports.machineSaltFilePath = exports.fixedTimeProvider = exports.systemTimeProvider = exports.enforceOutboxBounds = exports.claimOutbox = exports.readOutboxSummary = exports.appendToOutbox = exports.defaultOutboxFilePath = exports.outboxDrainEnabled = exports.DEFAULT_OUTBOX_DRAIN_BATCH_SIZE = exports.DEFAULT_OUTBOX_MAX_AGE_MS = exports.DEFAULT_OUTBOX_MAX_ENTRIES = exports.OUTBOX_DRAIN_ENV_VAR = exports.recordOutboxDiscard = exports.unresolvedToolInstallationId = exports.unresolvedStateFilePath = exports.markFailureNotified = void 0;
7014
- exports.isRetryableStatus = exports.parseIngestResponse = exports.postToolEventsBatch = exports.postToolEvent = exports.renewToolToken = exports.getStudyJoinStatus = exports.getPairingStatus = exports.createPairingSession = exports.AscendaApiError = exports.scriptMarkerIn = exports.psLookup = exports.psArgsLookup = exports.livePidFields = exports.findAgentProcess = exports.findAgentPid = exports.AGENT_PROCESS = exports.readViaPlugin = exports.readHookSet = exports.isHookSet = exports.hookSetOfCommand = exports.hookSetChanges = exports.hookSetArgument = exports.describeHookSetChanges = exports.UNVERSIONED_HOOK_SET = exports.HOOK_SET_FLAG = exports.liveSignalDoctorLines = exports.doctorRow = exports.DOCTOR_VALUE_COLUMN = exports.pluginBundlePaths = exports.installPluginBundle = exports.describePluginBundleOutcome = exports.replaceSettingsFile = exports.writeAtomically = exports.tidyHomePath = exports.stampLastHook = exports.resolveHookNode = exports.removeHookRunner = exports.readLastHook = exports.lastHookPath = exports.isDowngrade = exports.installHookRunner = exports.hookRunnerPaths = exports.hookRunnerCommand = exports.hookLauncherScript = exports.describeAge = exports.terminalStyle = exports.colourEnabled = exports.SAVER_REPLAY_WINDOW_MS = exports.saverSupportDir = exports.saverStatusDir = void 0;
7015
- exports.writePairingJoinOutcome = exports.settleStudyJoin = exports.pairingJoinOutcome = exports.pairingAttemptLines = exports.createPairingAttempt = exports.PAIR_ORG_JOIN_CODE_ENV = exports.PAIR_JOIN_OUTCOME_FILE_ENV = exports.studyJoinConfirmUrl = exports.pairingConfirmUrl = exports.pairingConfirmLines = exports.runStudyJoin = exports.gitOfferLine = exports.formatWindow = exports.describeStudyGrant = exports.describeStudyKind = exports.describeStudyJoinRefusal = exports.studyNoticeStatus = exports.runStudyObjection = exports.renderStudyNotices = exports.NOTICED_PURPOSES = exports.renderInitiatives = exports.initiativesStatusLines = exports.INITIATIVE_COPY = exports.startStudyJoin = exports.setStudyObjection = exports.markStudyNoticeShown = exports.readStudyNotices = exports.readInitiatives = void 0;
7440
+ exports.emitLiveSignal = exports.startSquadronJoin = exports.previewJoinCode = exports.SQUADRON_COLOURS = exports.SQUADRON_AIRCRAFT = exports.describeSquadronRefusal = exports.describeGate = exports.callsignProblem = exports.normaliseBookingReference = exports.generateCallsign = exports.leaseEnd = exports.runSquadronJoin = exports.repoKeysEnabled = exports.deriveForgeKeysForCwd = exports.REPO_KEYS_ENV_VAR = exports.recordForgeProjectAlias = exports.forgeFullNameFromConfig = exports.readForgeFullName = exports.parseForgeFullName = exports.forgeBranchKey = exports.forgeRepoKey = exports.forgeProjectHash = exports.workContextRegistryFilePath = exports.readWorkContextRegistry = exports.recordWorkContextAlias = exports.recordWorkContext = exports.readBranchName = exports.normalizeBranchName = exports.deriveBranchHashForCwd = exports.deriveBranchHash = exports.deriveWorkContext = exports.hashWithMachineSalt = exports.readOrCreateMachineSalt = exports.machineSaltFilePath = exports.fixedTimeProvider = exports.systemTimeProvider = exports.enforceOutboxBounds = exports.claimOutbox = exports.readOutboxSummary = exports.appendToOutbox = exports.defaultOutboxFilePath = exports.outboxDrainEnabled = exports.DEFAULT_OUTBOX_DRAIN_BATCH_SIZE = exports.DEFAULT_OUTBOX_MAX_AGE_MS = exports.DEFAULT_OUTBOX_MAX_ENTRIES = exports.OUTBOX_DRAIN_ENV_VAR = exports.recordOutboxDiscard = exports.unresolvedToolInstallationId = exports.unresolvedStateFilePath = exports.markFailureNotified = void 0;
7441
+ exports.livePidFields = exports.findAgentProcess = exports.findAgentPid = exports.AGENT_PROCESS = exports.readViaPlugin = exports.readHookSet = exports.isHookSet = exports.hookSetOfCommand = exports.hookSetChanges = exports.hookSetArgument = exports.describeHookSetChanges = exports.UNVERSIONED_HOOK_SET = exports.HOOK_SET_FLAG = exports.liveSignalDoctorLines = exports.doctorRow = exports.DOCTOR_VALUE_COLUMN = exports.pluginBundlePaths = exports.installPluginBundle = exports.describePluginBundleOutcome = exports.replaceSettingsFile = exports.writeAtomically = exports.tidyHomePath = exports.stampLastHook = exports.resolveHookNode = exports.removeHookRunner = exports.readLastHook = exports.lastHookPath = exports.isDowngrade = exports.installHookRunner = exports.hookRunnerPaths = exports.hookRunnerCommand = exports.hookLauncherScript = exports.describeAge = exports.terminalStyle = exports.colourEnabled = exports.SAVER_REPLAY_WINDOW_MS = exports.saverSupportDir = exports.saverStatusDir = exports.saverReplayPath = exports.saverContainerDir = exports.readSaverStatuses = exports.probeSocket = exports.heldForSaver = exports.holdForSaver = exports.LIVE_BUS_BACKGROUND_TRUST_MS = exports.liveBusSocketCandidates = exports.liveBusSocketPath = exports.promptSizeMetadata = exports.bucketPromptSize = exports.deliverLine = void 0;
7442
+ exports.writePairingJoinOutcome = exports.settleStudyJoin = exports.pairingJoinOutcome = exports.pairingAttemptLines = exports.createPairingAttempt = exports.PAIR_ORG_JOIN_CODE_ENV = exports.PAIR_JOIN_OUTCOME_FILE_ENV = exports.studyJoinConfirmUrl = exports.pairingConfirmUrl = exports.pairingConfirmLines = exports.WEEKLY_POSTER_CONNECT_URL = exports.runStudyJoin = exports.gitOfferLine = exports.formatWindow = exports.describeStudyGrant = exports.describeStudyKind = exports.describeStudyJoinRefusal = exports.studyNoticeStatus = exports.runStudyObjection = exports.renderStudyNotices = exports.NOTICED_PURPOSES = exports.renderInitiatives = exports.initiativesStatusLines = exports.INITIATIVE_COPY = exports.startStudyJoin = exports.setStudyObjection = exports.markStudyNoticeShown = exports.readStudyNotices = exports.readInitiatives = exports.isRetryableStatus = exports.parseIngestResponse = exports.postToolEventsBatch = exports.postToolEvent = exports.renewToolToken = exports.getStudyJoinStatus = exports.getPairingStatus = exports.createPairingSession = exports.AscendaApiError = exports.scriptMarkerIn = exports.psLookup = exports.psArgsLookup = void 0;
7016
7443
  var commandClassifier_1 = require_commandClassifier();
7017
7444
  Object.defineProperty(exports, "classifyCommand", { enumerable: true, get: function() {
7018
7445
  return commandClassifier_1.classifyCommand;
@@ -7456,6 +7883,41 @@ var require_out3 = __commonJS({
7456
7883
  Object.defineProperty(exports, "repoKeysEnabled", { enumerable: true, get: function() {
7457
7884
  return forgeKeys_1.repoKeysEnabled;
7458
7885
  } });
7886
+ var squadronJoin_1 = require_squadronJoin();
7887
+ Object.defineProperty(exports, "runSquadronJoin", { enumerable: true, get: function() {
7888
+ return squadronJoin_1.runSquadronJoin;
7889
+ } });
7890
+ Object.defineProperty(exports, "leaseEnd", { enumerable: true, get: function() {
7891
+ return squadronJoin_1.leaseEnd;
7892
+ } });
7893
+ Object.defineProperty(exports, "generateCallsign", { enumerable: true, get: function() {
7894
+ return squadronJoin_1.generateCallsign;
7895
+ } });
7896
+ Object.defineProperty(exports, "normaliseBookingReference", { enumerable: true, get: function() {
7897
+ return squadronJoin_1.normaliseBookingReference;
7898
+ } });
7899
+ Object.defineProperty(exports, "callsignProblem", { enumerable: true, get: function() {
7900
+ return squadronJoin_1.callsignProblem;
7901
+ } });
7902
+ Object.defineProperty(exports, "describeGate", { enumerable: true, get: function() {
7903
+ return squadronJoin_1.describeGate;
7904
+ } });
7905
+ Object.defineProperty(exports, "describeSquadronRefusal", { enumerable: true, get: function() {
7906
+ return squadronJoin_1.describeSquadronRefusal;
7907
+ } });
7908
+ Object.defineProperty(exports, "SQUADRON_AIRCRAFT", { enumerable: true, get: function() {
7909
+ return squadronJoin_1.SQUADRON_AIRCRAFT;
7910
+ } });
7911
+ Object.defineProperty(exports, "SQUADRON_COLOURS", { enumerable: true, get: function() {
7912
+ return squadronJoin_1.SQUADRON_COLOURS;
7913
+ } });
7914
+ var http_1 = require_http();
7915
+ Object.defineProperty(exports, "previewJoinCode", { enumerable: true, get: function() {
7916
+ return http_1.previewJoinCode;
7917
+ } });
7918
+ Object.defineProperty(exports, "startSquadronJoin", { enumerable: true, get: function() {
7919
+ return http_1.startSquadronJoin;
7920
+ } });
7459
7921
  var liveBus_1 = require_liveBus();
7460
7922
  Object.defineProperty(exports, "emitLiveSignal", { enumerable: true, get: function() {
7461
7923
  return liveBus_1.emitLiveSignal;
@@ -7466,6 +7928,9 @@ var require_out3 = __commonJS({
7466
7928
  Object.defineProperty(exports, "bucketPromptSize", { enumerable: true, get: function() {
7467
7929
  return liveBus_1.bucketPromptSize;
7468
7930
  } });
7931
+ Object.defineProperty(exports, "promptSizeMetadata", { enumerable: true, get: function() {
7932
+ return liveBus_1.promptSizeMetadata;
7933
+ } });
7469
7934
  Object.defineProperty(exports, "liveBusSocketPath", { enumerable: true, get: function() {
7470
7935
  return liveBus_1.liveBusSocketPath;
7471
7936
  } });
@@ -7624,48 +8089,48 @@ var require_out3 = __commonJS({
7624
8089
  Object.defineProperty(exports, "scriptMarkerIn", { enumerable: true, get: function() {
7625
8090
  return agentProcess_1.scriptMarkerIn;
7626
8091
  } });
7627
- var http_1 = require_http();
8092
+ var http_2 = require_http();
7628
8093
  Object.defineProperty(exports, "AscendaApiError", { enumerable: true, get: function() {
7629
- return http_1.AscendaApiError;
8094
+ return http_2.AscendaApiError;
7630
8095
  } });
7631
8096
  Object.defineProperty(exports, "createPairingSession", { enumerable: true, get: function() {
7632
- return http_1.createPairingSession;
8097
+ return http_2.createPairingSession;
7633
8098
  } });
7634
8099
  Object.defineProperty(exports, "getPairingStatus", { enumerable: true, get: function() {
7635
- return http_1.getPairingStatus;
8100
+ return http_2.getPairingStatus;
7636
8101
  } });
7637
8102
  Object.defineProperty(exports, "getStudyJoinStatus", { enumerable: true, get: function() {
7638
- return http_1.getStudyJoinStatus;
8103
+ return http_2.getStudyJoinStatus;
7639
8104
  } });
7640
8105
  Object.defineProperty(exports, "renewToolToken", { enumerable: true, get: function() {
7641
- return http_1.renewToolToken;
8106
+ return http_2.renewToolToken;
7642
8107
  } });
7643
8108
  Object.defineProperty(exports, "postToolEvent", { enumerable: true, get: function() {
7644
- return http_1.postToolEvent;
8109
+ return http_2.postToolEvent;
7645
8110
  } });
7646
8111
  Object.defineProperty(exports, "postToolEventsBatch", { enumerable: true, get: function() {
7647
- return http_1.postToolEventsBatch;
8112
+ return http_2.postToolEventsBatch;
7648
8113
  } });
7649
8114
  Object.defineProperty(exports, "parseIngestResponse", { enumerable: true, get: function() {
7650
- return http_1.parseIngestResponse;
8115
+ return http_2.parseIngestResponse;
7651
8116
  } });
7652
8117
  Object.defineProperty(exports, "isRetryableStatus", { enumerable: true, get: function() {
7653
- return http_1.isRetryableStatus;
8118
+ return http_2.isRetryableStatus;
7654
8119
  } });
7655
8120
  Object.defineProperty(exports, "readInitiatives", { enumerable: true, get: function() {
7656
- return http_1.readInitiatives;
8121
+ return http_2.readInitiatives;
7657
8122
  } });
7658
8123
  Object.defineProperty(exports, "readStudyNotices", { enumerable: true, get: function() {
7659
- return http_1.readStudyNotices;
8124
+ return http_2.readStudyNotices;
7660
8125
  } });
7661
8126
  Object.defineProperty(exports, "markStudyNoticeShown", { enumerable: true, get: function() {
7662
- return http_1.markStudyNoticeShown;
8127
+ return http_2.markStudyNoticeShown;
7663
8128
  } });
7664
8129
  Object.defineProperty(exports, "setStudyObjection", { enumerable: true, get: function() {
7665
- return http_1.setStudyObjection;
8130
+ return http_2.setStudyObjection;
7666
8131
  } });
7667
8132
  Object.defineProperty(exports, "startStudyJoin", { enumerable: true, get: function() {
7668
- return http_1.startStudyJoin;
8133
+ return http_2.startStudyJoin;
7669
8134
  } });
7670
8135
  var initiatives_1 = require_initiatives();
7671
8136
  Object.defineProperty(exports, "INITIATIVE_COPY", { enumerable: true, get: function() {
@@ -7710,6 +8175,9 @@ var require_out3 = __commonJS({
7710
8175
  return studyJoin_1.runStudyJoin;
7711
8176
  } });
7712
8177
  var confirmLinks_1 = require_confirmLinks();
8178
+ Object.defineProperty(exports, "WEEKLY_POSTER_CONNECT_URL", { enumerable: true, get: function() {
8179
+ return confirmLinks_1.WEEKLY_POSTER_CONNECT_URL;
8180
+ } });
7713
8181
  Object.defineProperty(exports, "pairingConfirmLines", { enumerable: true, get: function() {
7714
8182
  return confirmLinks_1.pairingConfirmLines;
7715
8183
  } });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "publishConfig": { "access": "public" },
3
3
  "name": "@ascenda-one/history-import",
4
- "version": "0.1.41",
4
+ "version": "0.1.42",
5
5
  "description": "Retrospective AI-usage import for Ascenda work telemetry — extracts the baseline already sitting in Claude Code, Codex, Cursor and VS Code stores.",
6
6
  "repository": {
7
7
  "type": "git",