@ascenda-one/agent-mcp 0.1.40 → 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.
package/dist/cli.js CHANGED
@@ -608,7 +608,7 @@ var require_metricKeys = __commonJS({
608
608
  family: "context",
609
609
  readBy: ["handoff"],
610
610
  unit: "tokens",
611
- note: "Codex only: the model_context_window the rollout itself recorded \u2014 the real denominator its contextWindowPeakPct was computed against. Claude Code records no window and its ratio assumes 200k; absent here means the store never said."
611
+ note: "Codex: the model_context_window the rollout itself recorded \u2014 the real denominator its contextWindowPeakPct was computed against. VS Code: the largest modelConfiguration.contextSize a Copilot request recorded. Claude Code records no window and its ratio assumes 200k; absent here means the store never said."
612
612
  },
613
613
  date: { family: "clock", readBy: ["handoff"] },
614
614
  errorCount: { family: "outcome", readBy: ["handoff"] },
@@ -724,6 +724,17 @@ var require_metricKeys = __commonJS({
724
724
  unit: "lines",
725
725
  note: "Claude Code only: user lines written by the Agent SDK or a headless run (entrypoint sdk-*). Nobody typed them, so promptCount leaves them out. Counted once per line across the store."
726
726
  },
727
+ copilotCredits: {
728
+ family: "context",
729
+ readBy: ["diagnostic"],
730
+ unit: "Copilot credits",
731
+ note: "VS Code only: the sum of each Copilot request's copilotCredits, rounded to five decimal places. Absent where no request recorded the figure, which Copilot builds before Jun 2026 don't."
732
+ },
733
+ reasoningEffort: {
734
+ family: "model",
735
+ readBy: ["diagnostic"],
736
+ note: "VS Code only: the modelConfiguration.reasoningEffort most of a Copilot session's requests ran with. Absent where no request recorded a model configuration."
737
+ },
727
738
  tokensNotCollected: {
728
739
  family: "context",
729
740
  readBy: ["diagnostic"],
@@ -737,7 +748,28 @@ var require_metricKeys = __commonJS({
737
748
  duplicateChatSessions: {
738
749
  family: "reading",
739
750
  readBy: ["diagnostic"],
740
- note: "VS Code only: chat sessions seen in more than one place (a transferred session also in a workspace). Counted once."
751
+ note: "VS Code only: chat sessions seen in more than one place (a transferred session also in a workspace). Counted once. Copilot CLI uses it for a session written both as a directory and as an older flat file."
752
+ },
753
+ clientName: {
754
+ family: "session",
755
+ readBy: ["diagnostic"],
756
+ note: "Copilot CLI only: workspace.yaml's client_name, one constant word naming what started the CLI (vscode, vscode-agent-host). Absent on sessions written before the field existed, which were the standalone CLI."
757
+ },
758
+ totalApiDurationMs: {
759
+ family: "session",
760
+ readBy: ["diagnostic"],
761
+ unit: "milliseconds",
762
+ note: "Copilot CLI only: session.shutdown.totalApiDurationMs, the time the session spent waiting on model calls. Absent where the session has no shutdown event."
763
+ },
764
+ selectedModel: {
765
+ family: "model",
766
+ readBy: ["diagnostic"],
767
+ note: "Copilot CLI only: the model the person chose at session start (session.start.selectedModel), which is auto when they let the router pick. primaryModel is the model that served the session, so the two differ exactly when the router chose."
768
+ },
769
+ selectedModelClass: {
770
+ family: "model",
771
+ readBy: ["diagnostic"],
772
+ note: "Copilot CLI only: classifyModelClass of selectedModel, so a session whose person picked auto reads router:auto beside the served model's class."
741
773
  },
742
774
  sessionsStartedFromBubble: {
743
775
  family: "reading",
@@ -896,6 +928,9 @@ var require_out = __commonJS({
896
928
  outcome: "outcome",
897
929
  trigger: "outcome",
898
930
  promptClass: "counts",
931
+ // One letter for how long the prompt was, worked out on this machine.
932
+ // Never the text or its length.
933
+ promptSizeBucket: "counts",
899
934
  reason: "outcome",
900
935
  afterHours: "clock",
901
936
  activity: "counts",
@@ -955,6 +990,7 @@ var require_out = __commonJS({
955
990
  "outcome",
956
991
  "trigger",
957
992
  "promptClass",
993
+ "promptSizeBucket",
958
994
  "reason",
959
995
  "afterHours",
960
996
  "activity",
@@ -1259,7 +1295,7 @@ var require_collectorVersion = __commonJS({
1259
1295
  exports.COLLECTOR_VERSION = exports.UNRELEASED_COLLECTOR_VERSION = void 0;
1260
1296
  exports.describeCollectorVersion = describeCollectorVersion;
1261
1297
  exports.UNRELEASED_COLLECTOR_VERSION = "unreleased";
1262
- exports.COLLECTOR_VERSION = "0.1.40" ? "0.1.40" : exports.UNRELEASED_COLLECTOR_VERSION;
1298
+ exports.COLLECTOR_VERSION = "0.1.42" ? "0.1.42" : exports.UNRELEASED_COLLECTOR_VERSION;
1263
1299
  function describeCollectorVersion(version2 = exports.COLLECTOR_VERSION) {
1264
1300
  return version2 === exports.UNRELEASED_COLLECTOR_VERSION ? `${version2} (built from a checkout, not a release)` : version2;
1265
1301
  }
@@ -2365,6 +2401,8 @@ var require_http = __commonJS({
2365
2401
  exports.createPairingSession = createPairingSession;
2366
2402
  exports.getPairingStatus = getPairingStatus;
2367
2403
  exports.startStudyJoin = startStudyJoin;
2404
+ exports.previewJoinCode = previewJoinCode;
2405
+ exports.startSquadronJoin = startSquadronJoin;
2368
2406
  exports.getStudyJoinStatus = getStudyJoinStatus;
2369
2407
  exports.readInitiatives = readInitiatives;
2370
2408
  exports.readStudyNotices = readStudyNotices;
@@ -2416,6 +2454,31 @@ var require_http = __commonJS({
2416
2454
  throw await apiError(response);
2417
2455
  return await response.json();
2418
2456
  }
2457
+ async function previewJoinCode(apiBaseUrl, joinCode) {
2458
+ const response = await fetch(`${apiBaseUrl}/api/share/join/${encodeURIComponent(joinCode)}`, {
2459
+ method: "GET",
2460
+ headers: { Accept: "application/json" }
2461
+ });
2462
+ if (!response.ok)
2463
+ throw await apiError(response);
2464
+ return await response.json();
2465
+ }
2466
+ async function startSquadronJoin(apiBaseUrl, eventWriteToken, seat) {
2467
+ const response = await fetch(`${apiBaseUrl}/v1/org-study-join-sessions`, {
2468
+ method: "POST",
2469
+ headers: { "Content-Type": "application/json", Authorization: `Bearer ${eventWriteToken}` },
2470
+ body: JSON.stringify({
2471
+ joinCode: seat.joinCode,
2472
+ mode: "jam",
2473
+ handle: seat.handle,
2474
+ ...seat.aircraft ? { aircraft: seat.aircraft } : {},
2475
+ ...seat.colour ? { colour: seat.colour } : {}
2476
+ })
2477
+ });
2478
+ if (!response.ok)
2479
+ throw await apiError(response);
2480
+ return await response.json();
2481
+ }
2419
2482
  async function getStudyJoinStatus(apiBaseUrl, eventWriteToken, joinSessionId) {
2420
2483
  const response = await fetch(`${apiBaseUrl}/v1/org-study-join-sessions/${encodeURIComponent(joinSessionId)}/status`, {
2421
2484
  method: "GET",
@@ -3924,6 +3987,8 @@ var require_hookAdapter = __commonJS({
3924
3987
  if (!logFile)
3925
3988
  throw error2;
3926
3989
  logUnsent(logFile, events, options);
3990
+ if (!(error2 instanceof MissingInstallationIdError))
3991
+ throw error2;
3927
3992
  return;
3928
3993
  }
3929
3994
  const sender = new eventSender_1.AscendaEventSender({
@@ -4021,17 +4086,20 @@ var require_confirmLinks = __commonJS({
4021
4086
  "../packages/tool-kit/out/confirmLinks.js"(exports) {
4022
4087
  "use strict";
4023
4088
  Object.defineProperty(exports, "__esModule", { value: true });
4089
+ exports.WEEKLY_POSTER_CONNECT_URL = void 0;
4024
4090
  exports.pairingConfirmUrl = pairingConfirmUrl;
4025
4091
  exports.pairingConfirmLines = pairingConfirmLines;
4026
4092
  exports.studyJoinConfirmUrl = studyJoinConfirmUrl;
4093
+ exports.WEEKLY_POSTER_CONNECT_URL = "https://me.ascendaflow.com/connect";
4027
4094
  function pairingConfirmUrl(qrUrl) {
4028
4095
  return isHttps(qrUrl) ? qrUrl : void 0;
4029
4096
  }
4030
4097
  function pairingConfirmLines(qrUrl, code) {
4031
4098
  const url = pairingConfirmUrl(qrUrl);
4099
+ const where = [" Ascenda Flow, under Connections \u2192 Ingest telemetry", ` ${exports.WEEKLY_POSTER_CONNECT_URL}, for the weekly poster`];
4032
4100
  if (!url)
4033
- return [`Confirm in the Ascenda app \u2014 code ${code}`];
4034
- return [`Open this link to confirm: ${url}`, `Or paste code ${code} in the Ascenda app.`];
4101
+ return [`Confirm code ${code} in either place:`, ...where];
4102
+ return [`Open this link to confirm: ${url}`, `Or enter code ${code} in either place:`, ...where];
4035
4103
  }
4036
4104
  function studyJoinConfirmUrl(apiBaseUrl, deviceCode) {
4037
4105
  if (!isHttps(apiBaseUrl))
@@ -4092,6 +4160,7 @@ var require_studyJoin = __commonJS({
4092
4160
  };
4093
4161
  }();
4094
4162
  Object.defineProperty(exports, "__esModule", { value: true });
4163
+ exports.gitOfferLine = gitOfferLine;
4095
4164
  exports.runStudyJoin = runStudyJoin;
4096
4165
  exports.formatWindow = formatWindow;
4097
4166
  exports.describeStudyGrant = describeStudyGrant;
@@ -4100,6 +4169,11 @@ var require_studyJoin = __commonJS({
4100
4169
  var readline = __importStar(__require("node:readline"));
4101
4170
  var confirmLinks_1 = require_confirmLinks();
4102
4171
  var http_1 = require_http();
4172
+ function gitOfferLine(optionalImportStores) {
4173
+ if (!optionalImportStores?.includes("git"))
4174
+ return void 0;
4175
+ return "The page also has an unticked box for git history: commit times, size buckets, files changed and whether each is a merge. No messages, paths, names or emails.";
4176
+ }
4103
4177
  var STUDY_JOIN_MODE = "report";
4104
4178
  var POLL_INTERVAL_MS = 3e3;
4105
4179
  var POLL_TIMEOUT_MS = 11 * 60 * 1e3;
@@ -4136,6 +4210,9 @@ var require_studyJoin = __commonJS({
4136
4210
  print("Report (30 days) grants:");
4137
4211
  for (const grant of start.grants)
4138
4212
  print(` ${describeStudyGrant(grant)}`);
4213
+ const gitOffer = gitOfferLine(start.optionalImportStores);
4214
+ if (gitOffer)
4215
+ print(gitOffer);
4139
4216
  print("");
4140
4217
  print("Study mode needs the Ascenda app. Open the app to join that way instead.");
4141
4218
  print("");
@@ -4190,7 +4267,7 @@ var require_studyJoin = __commonJS({
4190
4267
  print("");
4191
4268
  print("Each of these can be turned off separately, in the app's consent settings.");
4192
4269
  print("The organisation sees group counts, never who joined.");
4193
- report({ status: "joined", start, granted });
4270
+ report({ status: "joined", start, granted, importStores: poll.importStores ?? null });
4194
4271
  return 0;
4195
4272
  }
4196
4273
  if (poll.status === "expired") {
@@ -4212,7 +4289,7 @@ var require_studyJoin = __commonJS({
4212
4289
  print("Each of these can be turned off separately, in the app's consent settings.");
4213
4290
  }
4214
4291
  print("Run join again, or check with your organisation.");
4215
- report({ status: "refused", start, granted, refusedReason: poll.refusedReason, message: describeRefusal(poll.refusedReason) });
4292
+ report({ status: "refused", start, granted, refusedReason: poll.refusedReason, message: describeRefusal(poll.refusedReason), importStores: poll.importStores ?? null });
4216
4293
  return 1;
4217
4294
  }
4218
4295
  print("");
@@ -4393,8 +4470,10 @@ var require_pairingStudyJoin = __commonJS({
4393
4470
  const join = attempt.carriesJoin ? session.studyJoin : void 0;
4394
4471
  if (!join)
4395
4472
  return (0, confirmLinks_1.pairingConfirmLines)(session.qrUrl, session.code);
4473
+ const gitOffer = (0, studyJoin_1.gitOfferLine)(join.optionalImportStores);
4396
4474
  return [
4397
4475
  `This also joins ${join.organisationName} (${(0, studyJoin_1.formatWindow)(join.windowStartUtc, join.windowEndUtc)}). The page shows what you'd share before you confirm.`,
4476
+ ...gitOffer ? [gitOffer] : [],
4398
4477
  `Open this link to confirm: ${session.qrUrl}`
4399
4478
  ];
4400
4479
  }
@@ -5025,7 +5104,7 @@ var require_setupDisclosure = __commonJS({
5025
5104
  exports.renderSetupDisclosure = renderSetupDisclosure;
5026
5105
  exports.FAMILY_SENTENCES = {
5027
5106
  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",
5028
- 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",
5107
+ 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",
5029
5108
  tools: "the name of each tool your agent calls",
5030
5109
  outcome: "whether a call succeeded, failed, or was interrupted",
5031
5110
  clock: "your machine's offset from UTC, so an evening is read as an evening",
@@ -5278,6 +5357,7 @@ var require_liveBus = __commonJS({
5278
5357
  exports.existingSocketCandidates = existingSocketCandidates;
5279
5358
  exports.liveBusSocketPath = liveBusSocketPath;
5280
5359
  exports.bucketPromptSize = bucketPromptSize;
5360
+ exports.promptSizeMetadata = promptSizeMetadata;
5281
5361
  exports.emitLiveSignal = emitLiveSignal;
5282
5362
  exports.deliverLine = deliverLine;
5283
5363
  var fs = __importStar(__require("fs"));
@@ -5326,6 +5406,9 @@ var require_liveBus = __commonJS({
5326
5406
  return "l";
5327
5407
  return "xl";
5328
5408
  }
5409
+ function promptSizeMetadata(text) {
5410
+ return text === void 0 ? {} : { promptSizeBucket: bucketPromptSize(text) };
5411
+ }
5329
5412
  var NOBODY_LISTENING = /* @__PURE__ */ new Set(["ECONNREFUSED", "ENOENT"]);
5330
5413
  function onTheWire(signal) {
5331
5414
  const out = { ...signal };
@@ -5964,7 +6047,7 @@ ${(0, setupDisclosure_1.renderSetupDisclosure)({ sends: spec.sends, displayName:
5964
6047
  if (options.dryRun) {
5965
6048
  row("info", "moved", `would remove the copy in ${(0, hookRunner_1.tidyHomePath)(otherFile, os.homedir())}, so each event runs once`);
5966
6049
  } else if (removeOurHookEntries(otherFile, spec)) {
5967
- row("ok", "moved", `removed the copy in ${(0, hookRunner_1.tidyHomePath)(otherFile, os.homedir())}, so each event runs once ${ui.dim("(backup beside it)")}`);
6050
+ row("ok", "moved", `removed the copy in ${(0, hookRunner_1.tidyHomePath)(otherFile, os.homedir())}, so each event runs once${spec.settings.owned ? "" : ` ${ui.dim("(backup beside it)")}`}`);
5968
6051
  } else {
5969
6052
  row("warn", "note", `${(0, hookRunner_1.tidyHomePath)(otherFile, os.homedir())} registers these hooks too, so each event runs twice.`);
5970
6053
  detail("", `Remove the ${spec.binaryName} entries from one of the two files.`);
@@ -5991,7 +6074,7 @@ ${(0, setupDisclosure_1.renderSetupDisclosure)({ sends: spec.sends, displayName:
5991
6074
  const next = (label, value) => console.log(` ${ui.bold(label.padEnd(6))} ${value}`);
5992
6075
  console.log("");
5993
6076
  if (chosenLocal) {
5994
- console.log(`${ui.mark("ok")} ${ui.bold("Ready.")} The screen saver and the Ascenda app's live view work now.`);
6077
+ console.log(`${ui.mark("ok")} ${ui.bold("Ready.")} The screen saver and Ascenda Flow's live view work now.`);
5995
6078
  console.log(" They run on this machine and need no account or pairing.");
5996
6079
  if (eventLog.path)
5997
6080
  console.log(` Every event is also written to ${(0, hookRunner_1.tidyHomePath)(eventLog.path, os.homedir())}, for you or any tool to read.`);
@@ -6008,9 +6091,9 @@ ${(0, setupDisclosure_1.renderSetupDisclosure)({ sends: spec.sends, displayName:
6008
6091
  next(chosenLocal ? "Pair" : "Retry", `${ui.cyan(`${self} setup`)}${chosenLocal ? ui.dim(" (optional)") : ""}`);
6009
6092
  if (chosenLocal) {
6010
6093
  console.log("");
6011
- console.log(ui.dim(" Pairing sends the details below to Ascenda's servers, under the account the"));
6012
- console.log(ui.dim(" Ascenda app is signed in to when you confirm the code, so your sessions appear"));
6013
- console.log(ui.dim(" in the app. Until you pair, nothing leaves this machine."));
6094
+ console.log(ui.dim(" Pairing sends the details below to Ascenda's servers, under the account you"));
6095
+ console.log(ui.dim(" confirm the code with, in Ascenda Flow or at me.ascendaflow.com."));
6096
+ console.log(ui.dim(" Until you pair, nothing leaves this machine."));
6014
6097
  console.log("");
6015
6098
  console.log(ui.dim((0, setupDisclosure_1.renderSetupDisclosure)({ sends: spec.sends, displayName: spec.displayName }).split("\n").map((line) => ` ${line}`).join("\n")));
6016
6099
  }
@@ -6236,7 +6319,7 @@ Pairing ${status.status}. Run setup again.`);
6236
6319
  function writeHookSettings(settingsFile, binary, spec, dryRun) {
6237
6320
  let settings = { ...spec.settings.scaffold ?? {} };
6238
6321
  const exists = fs.existsSync(settingsFile);
6239
- if (exists) {
6322
+ if (exists && !spec.settings.owned) {
6240
6323
  const raw = fs.readFileSync(settingsFile, "utf8").trim();
6241
6324
  if (raw) {
6242
6325
  try {
@@ -6249,7 +6332,7 @@ ${settingsFile} is not valid JSON. Fix or move it, then run setup again.`);
6249
6332
  }
6250
6333
  }
6251
6334
  const command = hookCommand(binary, spec);
6252
- const hooks = { ...settings.hooks ?? {} };
6335
+ const hooks = spec.settings.owned ? {} : { ...settings.hooks ?? {} };
6253
6336
  for (const event of spec.hookEvents) {
6254
6337
  hooks[event] = placeOurEntry(hooks[event] ?? [], spec.settings.entry(command, event), spec);
6255
6338
  }
@@ -6264,6 +6347,11 @@ ${settingsFile} is not valid JSON. Fix or move it, then run setup again.`);
6264
6347
  ${serialised}`);
6265
6348
  return true;
6266
6349
  }
6350
+ if (spec.settings.owned) {
6351
+ fs.mkdirSync(path.dirname(settingsFile), { recursive: true });
6352
+ (0, hookRunner_1.writeAtomically)(settingsFile, serialised, 420);
6353
+ return true;
6354
+ }
6267
6355
  (0, settingsFile_1.replaceSettingsFile)(settingsFile, serialised);
6268
6356
  return true;
6269
6357
  }
@@ -6518,6 +6606,15 @@ ${serialised}`);
6518
6606
  if (found.length)
6519
6607
  lines.push("", ...found);
6520
6608
  }
6609
+ if (spec.doctorExtras) {
6610
+ try {
6611
+ const extra = spec.doctorExtras(ui);
6612
+ if (extra.length)
6613
+ lines.push("", ...extra);
6614
+ } catch (error2) {
6615
+ lines.push("", ` ${spec.displayName} checks could not run: ${error2 instanceof Error ? error2.message : String(error2)}`);
6616
+ }
6617
+ }
6521
6618
  lines.push("", ...accountLines(ui, spec));
6522
6619
  const localOnly = (0, credentials_1.isLocalOnlyHostInstall)(spec.host, (id) => (0, tokenStore_1.readTokenFile)((0, tokenStore_1.defaultTokenFilePath)(id)) !== void 0);
6523
6620
  lines.push("", ` ${ui.bold("Local events")} ${(0, eventLog_1.describeEventLog)((0, eventLog_1.resolveEventLog)({ localOnly }), `npx ${spec.packageName} setup`)}`);
@@ -6573,6 +6670,10 @@ ${serialised}`);
6573
6670
  function removeOurHookEntries(settingsFile, spec) {
6574
6671
  if (!fs.existsSync(settingsFile))
6575
6672
  return true;
6673
+ if (spec.settings.owned) {
6674
+ fs.rmSync(settingsFile, { force: true });
6675
+ return true;
6676
+ }
6576
6677
  try {
6577
6678
  const settings = JSON.parse(fs.readFileSync(settingsFile, "utf8"));
6578
6679
  const hooks = { ...settings.hooks ?? {} };
@@ -6600,7 +6701,7 @@ ${serialised}`);
6600
6701
  console.error(`could not parse ${settingsFile} \u2014 remove the ascenda hook entries by hand`);
6601
6702
  return 1;
6602
6703
  }
6603
- console.log(`hooks removed from ${settingsFile}`);
6704
+ console.log(spec.settings.owned ? `removed ${settingsFile}` : `hooks removed from ${settingsFile}`);
6604
6705
  }
6605
6706
  for (const file of (0, hookRunner_1.removeHookRunner)(spec.binaryName)) {
6606
6707
  if (!file.endsWith(".node") && !file.endsWith(".no-node"))
@@ -6711,6 +6812,395 @@ var require_turnState = __commonJS({
6711
6812
  }
6712
6813
  });
6713
6814
 
6815
+ // ../packages/tool-kit/out/squadronJoin.js
6816
+ var require_squadronJoin = __commonJS({
6817
+ "../packages/tool-kit/out/squadronJoin.js"(exports) {
6818
+ "use strict";
6819
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
6820
+ if (k2 === void 0) k2 = k;
6821
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6822
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6823
+ desc = { enumerable: true, get: function() {
6824
+ return m[k];
6825
+ } };
6826
+ }
6827
+ Object.defineProperty(o, k2, desc);
6828
+ } : function(o, m, k, k2) {
6829
+ if (k2 === void 0) k2 = k;
6830
+ o[k2] = m[k];
6831
+ });
6832
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
6833
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
6834
+ } : function(o, v) {
6835
+ o["default"] = v;
6836
+ });
6837
+ var __importStar = exports && exports.__importStar || /* @__PURE__ */ function() {
6838
+ var ownKeys = function(o) {
6839
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
6840
+ var ar = [];
6841
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
6842
+ return ar;
6843
+ };
6844
+ return ownKeys(o);
6845
+ };
6846
+ return function(mod) {
6847
+ if (mod && mod.__esModule) return mod;
6848
+ var result = {};
6849
+ if (mod != null) {
6850
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
6851
+ }
6852
+ __setModuleDefault(result, mod);
6853
+ return result;
6854
+ };
6855
+ }();
6856
+ Object.defineProperty(exports, "__esModule", { value: true });
6857
+ exports.SQUADRON_COLOURS = exports.SQUADRON_AIRCRAFT = void 0;
6858
+ exports.generateCallsign = generateCallsign;
6859
+ exports.normaliseBookingReference = normaliseBookingReference;
6860
+ exports.callsignProblem = callsignProblem;
6861
+ exports.runSquadronJoin = runSquadronJoin;
6862
+ exports.leaseEnd = leaseEnd;
6863
+ exports.describeGate = describeGate;
6864
+ exports.describeSquadronRefusal = describeSquadronRefusal;
6865
+ var readline = __importStar(__require("node:readline"));
6866
+ var node_crypto_1 = __require("node:crypto");
6867
+ var confirmLinks_1 = require_confirmLinks();
6868
+ var http_1 = require_http();
6869
+ exports.SQUADRON_AIRCRAFT = ["trainer", "airliner", "glider", "fighter", "stealth", "floatplane"];
6870
+ exports.SQUADRON_COLOURS = ["orange", "yellow", "ivory", "charcoal", "grey", "red"];
6871
+ var CALLSIGN_WORDS = ["Kestrel", "Falcon", "Heron", "Swift", "Osprey", "Raven", "Merlin", "Puffin", "Condor", "Harrier", "Kite", "Tern"];
6872
+ function generateCallsign() {
6873
+ return `${CALLSIGN_WORDS[(0, node_crypto_1.randomInt)(CALLSIGN_WORDS.length)]} ${String((0, node_crypto_1.randomInt)(10, 100))}`;
6874
+ }
6875
+ function normaliseBookingReference(raw) {
6876
+ const cleaned = (raw ?? "").replace(/[\s-]/g, "").toUpperCase();
6877
+ return /^[A-Z0-9]{6}$/.test(cleaned) ? cleaned : void 0;
6878
+ }
6879
+ function callsignProblem(callsign) {
6880
+ const trimmed = callsign.trim();
6881
+ if (trimmed.length === 0)
6882
+ return "A callsign can't be empty.";
6883
+ if (trimmed.length > 40)
6884
+ return "A callsign is 40 characters at most.";
6885
+ if (/[\u0000-\u001f\u007f]/.test(trimmed))
6886
+ return "A callsign can't contain control characters.";
6887
+ return void 0;
6888
+ }
6889
+ var POLL_INTERVAL_MS = 3e3;
6890
+ var POLL_TIMEOUT_MS = 11 * 60 * 1e3;
6891
+ async function runSquadronJoin(ctx) {
6892
+ const stdin = ctx.stdin ?? process.stdin;
6893
+ const stdout = ctx.stdout ?? process.stdout;
6894
+ const stderr = ctx.stderr ?? process.stderr;
6895
+ const print = (line = "") => stdout.write(`${line}
6896
+ `);
6897
+ if (!stdin.isTTY || !stdout.isTTY) {
6898
+ stderr.write("squadron needs an interactive terminal (stdin and stdout). Run it directly, not from a script or a pipe.\n");
6899
+ return 0;
6900
+ }
6901
+ const reference = normaliseBookingReference(ctx.bookingReference);
6902
+ if (!reference) {
6903
+ stderr.write("A booking reference is six letters or digits, like FEFBDH.\n");
6904
+ return 1;
6905
+ }
6906
+ let preview;
6907
+ try {
6908
+ preview = await (0, http_1.previewJoinCode)(ctx.apiBaseUrl, reference);
6909
+ } catch (error2) {
6910
+ stderr.write(`${describeSquadronError(error2)}
6911
+ `);
6912
+ return 1;
6913
+ }
6914
+ const jam = preview.jam;
6915
+ if (preview.labRole !== "Jam" || !jam) {
6916
+ stderr.write(`${reference} isn't a Squadron booking reference. If it's a study code, run join instead.
6917
+ `);
6918
+ return 1;
6919
+ }
6920
+ if (jam.acceptsJoins === false) {
6921
+ 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");
6922
+ return 1;
6923
+ }
6924
+ const aircraftList = jam.aircraft?.length ? jam.aircraft : [...exports.SQUADRON_AIRCRAFT];
6925
+ const colourList = jam.colours?.length ? jam.colours : [...exports.SQUADRON_COLOURS];
6926
+ for (const [flag, value, list] of [["--aircraft", ctx.aircraft, aircraftList], ["--colour", ctx.colour, colourList]]) {
6927
+ if (value !== void 0 && !list.includes(value.trim().toLowerCase())) {
6928
+ stderr.write(`${flag} must be one of: ${list.join(", ")}.
6929
+ `);
6930
+ return 1;
6931
+ }
6932
+ }
6933
+ if (ctx.callsign !== void 0) {
6934
+ const problem = callsignProblem(ctx.callsign);
6935
+ if (problem) {
6936
+ stderr.write(`${problem}
6937
+ `);
6938
+ return 1;
6939
+ }
6940
+ }
6941
+ print();
6942
+ print(`Squadron: ${jam.name ?? preview.labName ?? reference}`);
6943
+ if (jam.mission)
6944
+ print(`Mission: ${jam.mission}`);
6945
+ print(describeGate(jam));
6946
+ print();
6947
+ const prompt = createPrompter(stdin, stdout);
6948
+ try {
6949
+ let callsign = ctx.callsign?.trim();
6950
+ if (callsign === void 0) {
6951
+ const suggested = (ctx.generateCallsign ?? generateCallsign)();
6952
+ for (; ; ) {
6953
+ const answer = await prompt.ask(`Callsign [${suggested}]: `);
6954
+ if (answer === void 0)
6955
+ return notNow(print);
6956
+ const chosen = answer === "" ? suggested : answer;
6957
+ const problem = callsignProblem(chosen);
6958
+ if (!problem) {
6959
+ callsign = chosen.trim();
6960
+ break;
6961
+ }
6962
+ print(problem);
6963
+ }
6964
+ }
6965
+ let aircraft = ctx.aircraft?.trim().toLowerCase();
6966
+ if (aircraft === void 0) {
6967
+ const suggested = aircraftList[(0, node_crypto_1.randomInt)(aircraftList.length)];
6968
+ aircraft = await askFromList(prompt, print, "Aircraft", aircraftList, suggested);
6969
+ if (aircraft === void 0)
6970
+ return notNow(print);
6971
+ }
6972
+ let colour = ctx.colour?.trim().toLowerCase();
6973
+ if (colour === void 0) {
6974
+ const picked = await askFromList(prompt, print, "Colour", colourList, "", "dealt for you");
6975
+ if (picked === void 0)
6976
+ return notNow(print);
6977
+ colour = picked === "" ? void 0 : picked;
6978
+ }
6979
+ print();
6980
+ print(`You'll confirm as ${callsign}, ${aircraft}${colour ? `, ${colour}` : ""}. The confirm page lets you change any of them.`);
6981
+ print();
6982
+ print("Joining shares, with this squadron only:");
6983
+ print(` your activity counts from ${ctx.displayName}: prompts, tool calls, turns and edits, as numbers`);
6984
+ print(" your callsign and aircraft, which the other pilots see");
6985
+ print("Never your prompts, code, file names or project names.");
6986
+ print("Sharing stops on the date the server gives when you join. It's printed then.");
6987
+ print();
6988
+ print(" 1) Join");
6989
+ print(" 2) Not now");
6990
+ print();
6991
+ const choice = await prompt.ask("Choice [Not now]: ");
6992
+ if (choice === void 0 || !/^(1|join|y|yes)$/i.test(choice))
6993
+ return notNow(print);
6994
+ prompt.close();
6995
+ let start;
6996
+ try {
6997
+ start = await (0, http_1.startSquadronJoin)(ctx.apiBaseUrl, ctx.eventWriteToken, { joinCode: reference, handle: callsign, aircraft, colour });
6998
+ } catch (error2) {
6999
+ const doorClosed = error2 instanceof http_1.AscendaApiError && error2.status === 404 && !error2.errorCode?.startsWith("jam_");
7000
+ 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(error2)}
7001
+ `);
7002
+ return 1;
7003
+ }
7004
+ if (start.kind !== void 0 && start.kind !== "jam") {
7005
+ stderr.write(`${reference} opened a study join, not a sortie. Run join instead.
7006
+ `);
7007
+ return 1;
7008
+ }
7009
+ print();
7010
+ const confirmUrl = (0, confirmLinks_1.studyJoinConfirmUrl)(ctx.apiBaseUrl, start.deviceCode);
7011
+ if (confirmUrl) {
7012
+ print(`Open this link to confirm: ${confirmUrl}`);
7013
+ print(`Or confirm in the Ascenda app with code ${start.deviceCode}.`);
7014
+ } else {
7015
+ print(`Confirm in the Ascenda app with code ${start.deviceCode}`);
7016
+ }
7017
+ print(`Waiting for confirmation (expires ${formatLocalTime(start.expiresAt)})...`);
7018
+ const pollIntervalMs = ctx.pollIntervalMs ?? POLL_INTERVAL_MS;
7019
+ const deadline = Math.min(Date.parse(start.expiresAt) || Date.now() + POLL_TIMEOUT_MS, Date.now() + POLL_TIMEOUT_MS);
7020
+ while (Date.now() < deadline) {
7021
+ await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));
7022
+ let poll;
7023
+ try {
7024
+ poll = await (0, http_1.getStudyJoinStatus)(ctx.apiBaseUrl, ctx.eventWriteToken, start.joinSessionId);
7025
+ } catch (error2) {
7026
+ if (!(error2 instanceof http_1.AscendaApiError) || error2.status >= 500 && error2.status <= 599)
7027
+ continue;
7028
+ stderr.write(`${describeSquadronError(error2)}
7029
+ `);
7030
+ return 1;
7031
+ }
7032
+ if (poll.status === "pending")
7033
+ continue;
7034
+ if (poll.status === "confirmed") {
7035
+ const until = poll.endUtc ?? poll.jam?.endUtc ?? leaseEnd(poll.jam ?? {});
7036
+ const seat = poll.jam?.handle ? ` as ${poll.jam.handle}` : "";
7037
+ print();
7038
+ print(poll.jam?.alreadyJoined ? `You already have a seat${seat}.` : `Joined${seat}.`);
7039
+ 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.");
7040
+ print(describeStatusAfterJoin(poll.jam));
7041
+ return 0;
7042
+ }
7043
+ if (poll.status === "expired") {
7044
+ print();
7045
+ print("This code expired before it was confirmed. Run squadron again for a fresh code.");
7046
+ return 1;
7047
+ }
7048
+ print();
7049
+ print(describeSquadronRefusal(poll.refusedReason ?? void 0));
7050
+ return 1;
7051
+ }
7052
+ print();
7053
+ print("Timed out waiting for confirmation. Run squadron again for a fresh code.");
7054
+ return 1;
7055
+ } finally {
7056
+ prompt.close();
7057
+ }
7058
+ }
7059
+ function leaseEnd(jam) {
7060
+ const from = Date.parse(jam.startedAt ?? jam.quorumDeadline ?? "");
7061
+ if (Number.isNaN(from) || typeof jam.durationMinutes !== "number")
7062
+ return void 0;
7063
+ return new Date(from + (jam.durationMinutes + 7 * 24 * 60) * 6e4).toISOString();
7064
+ }
7065
+ function notNow(print) {
7066
+ print("Not now.");
7067
+ return 0;
7068
+ }
7069
+ async function askFromList(prompt, print, label, list, suggested, emptyMeans) {
7070
+ print(`${label === "Aircraft" ? "Aircraft" : `${label}s`}: ${list.join(", ")}`);
7071
+ for (; ; ) {
7072
+ const answer = await prompt.ask(`${label} [${emptyMeans ?? suggested}]: `);
7073
+ if (answer === void 0)
7074
+ return void 0;
7075
+ if (answer === "")
7076
+ return suggested;
7077
+ const value = answer.toLowerCase();
7078
+ const byNumber = /^\d+$/.test(value) ? list[Number(value) - 1] : void 0;
7079
+ if (byNumber)
7080
+ return byNumber;
7081
+ if (list.includes(value))
7082
+ return value;
7083
+ print(`Pick one of: ${list.join(", ")}.`);
7084
+ }
7085
+ }
7086
+ function describeGate(jam) {
7087
+ const length = jam.durationMinutes ? `${jam.durationMinutes}-minute flight plan` : "flight plan";
7088
+ if (jam.status === "live")
7089
+ return `In the air now, ${length}.`;
7090
+ const have = jam.activeParticipants ?? 0;
7091
+ const need = jam.minParticipants ?? 0;
7092
+ const deadline = jam.quorumDeadline ? `, gate closes ${formatLocalTime(jam.quorumDeadline)}` : "";
7093
+ 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)}.`;
7094
+ }
7095
+ function describeStatusAfterJoin(jam) {
7096
+ if (!jam)
7097
+ return "Open the Ascenda app to watch the squadron.";
7098
+ if (jam.status === "live" && jam.expiresAt)
7099
+ return `The squadron is in the air until ${formatLocalTime(jam.expiresAt)}. Open the Ascenda app to watch.`;
7100
+ const have = jam.activeParticipants;
7101
+ const need = jam.minParticipants;
7102
+ if (have !== void 0 && need !== void 0 && need > have)
7103
+ return `${have} of ${need} pilots in. The clock starts when the squadron fills.`;
7104
+ return "Open the Ascenda app to watch the squadron.";
7105
+ }
7106
+ function describeSquadronRefusal(code) {
7107
+ switch (code) {
7108
+ case "join_code_not_found":
7109
+ return "No sortie has that booking reference, or it has ended.";
7110
+ case "jam_closed":
7111
+ return "That sortie has ended.";
7112
+ case "jam_locked":
7113
+ return "This sortie's gate is closed. Ask the host to open it.";
7114
+ case "jam_already_left":
7115
+ return "You left this sortie, and leaving is final. Ask the host for a new one.";
7116
+ case "jam_handle_taken":
7117
+ return "Another pilot has that callsign. Run squadron again and pick another.";
7118
+ case "jam_requires_account":
7119
+ return "A sortie needs a signed-in Ascenda account, not a guest one.";
7120
+ case "jam_handle_required":
7121
+ case "jam_handle_too_long":
7122
+ case "jam_handle_invalid":
7123
+ return "The server didn't accept that callsign. Run squadron again and pick another.";
7124
+ case "jam_aircraft_unknown":
7125
+ return "The server didn't recognise that aircraft.";
7126
+ case "jam_colour_unknown":
7127
+ return "The server didn't recognise that colour.";
7128
+ case "unknown_mode":
7129
+ return "This server's join door didn't accept a sortie. It may be older than this command.";
7130
+ case "too_many_open_sessions":
7131
+ return "Too many joins are waiting to be confirmed. Confirm or let one expire, then try again.";
7132
+ case "jam_not_enabled":
7133
+ return "Squadron isn't switched on for this server yet.";
7134
+ default:
7135
+ return code ? `The server refused the join (${code}).` : "The server refused the join.";
7136
+ }
7137
+ }
7138
+ function describeSquadronError(error2) {
7139
+ if (error2 instanceof http_1.AscendaApiError) {
7140
+ if (error2.status === 401)
7141
+ return "This collector's pairing isn't accepted any more. Run pair, then try again.";
7142
+ if (error2.status === 404 && !error2.errorCode?.startsWith("jam_"))
7143
+ return describeSquadronRefusal("join_code_not_found");
7144
+ return describeSquadronRefusal(error2.errorCode);
7145
+ }
7146
+ return `Couldn't reach Ascenda: ${error2 instanceof Error ? error2.message : String(error2)}`;
7147
+ }
7148
+ function createPrompter(stdin, stdout) {
7149
+ const rl = readline.createInterface({ input: stdin, output: stdout });
7150
+ let closed = false;
7151
+ const lines = [];
7152
+ let waiting;
7153
+ rl.on("line", (line) => {
7154
+ if (waiting) {
7155
+ const resolve = waiting;
7156
+ waiting = void 0;
7157
+ resolve(line.trim());
7158
+ } else {
7159
+ lines.push(line.trim());
7160
+ }
7161
+ });
7162
+ rl.on("close", () => {
7163
+ closed = true;
7164
+ if (waiting) {
7165
+ const resolve = waiting;
7166
+ waiting = void 0;
7167
+ resolve(void 0);
7168
+ }
7169
+ });
7170
+ return {
7171
+ ask(question) {
7172
+ if (lines.length > 0) {
7173
+ stdout.write(question);
7174
+ return Promise.resolve(lines.shift());
7175
+ }
7176
+ if (closed)
7177
+ return Promise.resolve(void 0);
7178
+ stdout.write(question);
7179
+ return new Promise((resolve) => {
7180
+ waiting = resolve;
7181
+ });
7182
+ },
7183
+ close() {
7184
+ if (!closed)
7185
+ rl.close();
7186
+ }
7187
+ };
7188
+ }
7189
+ function formatLocalTime(iso) {
7190
+ const date3 = new Date(iso);
7191
+ if (Number.isNaN(date3.getTime()))
7192
+ return iso;
7193
+ return new Intl.DateTimeFormat(void 0, { day: "numeric", month: "short", hour: "numeric", minute: "2-digit" }).format(date3);
7194
+ }
7195
+ function formatLocalDate(iso) {
7196
+ const date3 = new Date(iso);
7197
+ if (Number.isNaN(date3.getTime()))
7198
+ return iso;
7199
+ return new Intl.DateTimeFormat(void 0, { day: "numeric", month: "short", year: "numeric" }).format(date3);
7200
+ }
7201
+ }
7202
+ });
7203
+
6714
7204
  // ../packages/tool-kit/out/pluginBundle.js
6715
7205
  var require_pluginBundle = __commonJS({
6716
7206
  "../packages/tool-kit/out/pluginBundle.js"(exports) {
@@ -6951,9 +7441,9 @@ var require_out3 = __commonJS({
6951
7441
  Object.defineProperty(exports, "__esModule", { value: true });
6952
7442
  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;
6953
7443
  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;
6954
- 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;
6955
- 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;
6956
- 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.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;
7444
+ 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;
7445
+ 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;
7446
+ 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;
6957
7447
  var commandClassifier_1 = require_commandClassifier();
6958
7448
  Object.defineProperty(exports, "classifyCommand", { enumerable: true, get: function() {
6959
7449
  return commandClassifier_1.classifyCommand;
@@ -7397,6 +7887,41 @@ var require_out3 = __commonJS({
7397
7887
  Object.defineProperty(exports, "repoKeysEnabled", { enumerable: true, get: function() {
7398
7888
  return forgeKeys_1.repoKeysEnabled;
7399
7889
  } });
7890
+ var squadronJoin_1 = require_squadronJoin();
7891
+ Object.defineProperty(exports, "runSquadronJoin", { enumerable: true, get: function() {
7892
+ return squadronJoin_1.runSquadronJoin;
7893
+ } });
7894
+ Object.defineProperty(exports, "leaseEnd", { enumerable: true, get: function() {
7895
+ return squadronJoin_1.leaseEnd;
7896
+ } });
7897
+ Object.defineProperty(exports, "generateCallsign", { enumerable: true, get: function() {
7898
+ return squadronJoin_1.generateCallsign;
7899
+ } });
7900
+ Object.defineProperty(exports, "normaliseBookingReference", { enumerable: true, get: function() {
7901
+ return squadronJoin_1.normaliseBookingReference;
7902
+ } });
7903
+ Object.defineProperty(exports, "callsignProblem", { enumerable: true, get: function() {
7904
+ return squadronJoin_1.callsignProblem;
7905
+ } });
7906
+ Object.defineProperty(exports, "describeGate", { enumerable: true, get: function() {
7907
+ return squadronJoin_1.describeGate;
7908
+ } });
7909
+ Object.defineProperty(exports, "describeSquadronRefusal", { enumerable: true, get: function() {
7910
+ return squadronJoin_1.describeSquadronRefusal;
7911
+ } });
7912
+ Object.defineProperty(exports, "SQUADRON_AIRCRAFT", { enumerable: true, get: function() {
7913
+ return squadronJoin_1.SQUADRON_AIRCRAFT;
7914
+ } });
7915
+ Object.defineProperty(exports, "SQUADRON_COLOURS", { enumerable: true, get: function() {
7916
+ return squadronJoin_1.SQUADRON_COLOURS;
7917
+ } });
7918
+ var http_1 = require_http();
7919
+ Object.defineProperty(exports, "previewJoinCode", { enumerable: true, get: function() {
7920
+ return http_1.previewJoinCode;
7921
+ } });
7922
+ Object.defineProperty(exports, "startSquadronJoin", { enumerable: true, get: function() {
7923
+ return http_1.startSquadronJoin;
7924
+ } });
7400
7925
  var liveBus_1 = require_liveBus();
7401
7926
  Object.defineProperty(exports, "emitLiveSignal", { enumerable: true, get: function() {
7402
7927
  return liveBus_1.emitLiveSignal;
@@ -7407,6 +7932,9 @@ var require_out3 = __commonJS({
7407
7932
  Object.defineProperty(exports, "bucketPromptSize", { enumerable: true, get: function() {
7408
7933
  return liveBus_1.bucketPromptSize;
7409
7934
  } });
7935
+ Object.defineProperty(exports, "promptSizeMetadata", { enumerable: true, get: function() {
7936
+ return liveBus_1.promptSizeMetadata;
7937
+ } });
7410
7938
  Object.defineProperty(exports, "liveBusSocketPath", { enumerable: true, get: function() {
7411
7939
  return liveBus_1.liveBusSocketPath;
7412
7940
  } });
@@ -7565,48 +8093,48 @@ var require_out3 = __commonJS({
7565
8093
  Object.defineProperty(exports, "scriptMarkerIn", { enumerable: true, get: function() {
7566
8094
  return agentProcess_1.scriptMarkerIn;
7567
8095
  } });
7568
- var http_1 = require_http();
8096
+ var http_2 = require_http();
7569
8097
  Object.defineProperty(exports, "AscendaApiError", { enumerable: true, get: function() {
7570
- return http_1.AscendaApiError;
8098
+ return http_2.AscendaApiError;
7571
8099
  } });
7572
8100
  Object.defineProperty(exports, "createPairingSession", { enumerable: true, get: function() {
7573
- return http_1.createPairingSession;
8101
+ return http_2.createPairingSession;
7574
8102
  } });
7575
8103
  Object.defineProperty(exports, "getPairingStatus", { enumerable: true, get: function() {
7576
- return http_1.getPairingStatus;
8104
+ return http_2.getPairingStatus;
7577
8105
  } });
7578
8106
  Object.defineProperty(exports, "getStudyJoinStatus", { enumerable: true, get: function() {
7579
- return http_1.getStudyJoinStatus;
8107
+ return http_2.getStudyJoinStatus;
7580
8108
  } });
7581
8109
  Object.defineProperty(exports, "renewToolToken", { enumerable: true, get: function() {
7582
- return http_1.renewToolToken;
8110
+ return http_2.renewToolToken;
7583
8111
  } });
7584
8112
  Object.defineProperty(exports, "postToolEvent", { enumerable: true, get: function() {
7585
- return http_1.postToolEvent;
8113
+ return http_2.postToolEvent;
7586
8114
  } });
7587
8115
  Object.defineProperty(exports, "postToolEventsBatch", { enumerable: true, get: function() {
7588
- return http_1.postToolEventsBatch;
8116
+ return http_2.postToolEventsBatch;
7589
8117
  } });
7590
8118
  Object.defineProperty(exports, "parseIngestResponse", { enumerable: true, get: function() {
7591
- return http_1.parseIngestResponse;
8119
+ return http_2.parseIngestResponse;
7592
8120
  } });
7593
8121
  Object.defineProperty(exports, "isRetryableStatus", { enumerable: true, get: function() {
7594
- return http_1.isRetryableStatus;
8122
+ return http_2.isRetryableStatus;
7595
8123
  } });
7596
8124
  Object.defineProperty(exports, "readInitiatives", { enumerable: true, get: function() {
7597
- return http_1.readInitiatives;
8125
+ return http_2.readInitiatives;
7598
8126
  } });
7599
8127
  Object.defineProperty(exports, "readStudyNotices", { enumerable: true, get: function() {
7600
- return http_1.readStudyNotices;
8128
+ return http_2.readStudyNotices;
7601
8129
  } });
7602
8130
  Object.defineProperty(exports, "markStudyNoticeShown", { enumerable: true, get: function() {
7603
- return http_1.markStudyNoticeShown;
8131
+ return http_2.markStudyNoticeShown;
7604
8132
  } });
7605
8133
  Object.defineProperty(exports, "setStudyObjection", { enumerable: true, get: function() {
7606
- return http_1.setStudyObjection;
8134
+ return http_2.setStudyObjection;
7607
8135
  } });
7608
8136
  Object.defineProperty(exports, "startStudyJoin", { enumerable: true, get: function() {
7609
- return http_1.startStudyJoin;
8137
+ return http_2.startStudyJoin;
7610
8138
  } });
7611
8139
  var initiatives_1 = require_initiatives();
7612
8140
  Object.defineProperty(exports, "INITIATIVE_COPY", { enumerable: true, get: function() {
@@ -7644,10 +8172,16 @@ var require_out3 = __commonJS({
7644
8172
  Object.defineProperty(exports, "formatWindow", { enumerable: true, get: function() {
7645
8173
  return studyJoin_1.formatWindow;
7646
8174
  } });
8175
+ Object.defineProperty(exports, "gitOfferLine", { enumerable: true, get: function() {
8176
+ return studyJoin_1.gitOfferLine;
8177
+ } });
7647
8178
  Object.defineProperty(exports, "runStudyJoin", { enumerable: true, get: function() {
7648
8179
  return studyJoin_1.runStudyJoin;
7649
8180
  } });
7650
8181
  var confirmLinks_1 = require_confirmLinks();
8182
+ Object.defineProperty(exports, "WEEKLY_POSTER_CONNECT_URL", { enumerable: true, get: function() {
8183
+ return confirmLinks_1.WEEKLY_POSTER_CONNECT_URL;
8184
+ } });
7651
8185
  Object.defineProperty(exports, "pairingConfirmLines", { enumerable: true, get: function() {
7652
8186
  return confirmLinks_1.pairingConfirmLines;
7653
8187
  } });
@@ -28828,6 +29362,7 @@ var RESERVED_METADATA_KEYS = /* @__PURE__ */ new Set([
28828
29362
  "outcome",
28829
29363
  "trigger",
28830
29364
  "promptClass",
29365
+ "promptSizeBucket",
28831
29366
  "reason",
28832
29367
  "afterHours",
28833
29368
  "activity",
package/dist/server.js CHANGED
@@ -19,6 +19,7 @@ const RESERVED_METADATA_KEYS = new Set([
19
19
  "outcome",
20
20
  "trigger",
21
21
  "promptClass",
22
+ "promptSizeBucket",
22
23
  "reason",
23
24
  "afterHours",
24
25
  "activity",
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAy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@ -1,7 +1,7 @@
1
1
  {
2
2
  "publishConfig": { "access": "public" },
3
3
  "name": "@ascenda-one/agent-mcp",
4
- "version": "0.1.40",
4
+ "version": "0.1.42",
5
5
  "description": "MCP server exposing ascenda_emit_work_signal — the one submission interface for agent-observed (semantic) work-friction signals.",
6
6
  "repository": {
7
7
  "type": "git",