@ascenda-one/agent-mcp 0.1.43 → 0.1.45

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 +197 -10
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -960,6 +960,12 @@ var require_metricKeys = __commonJS({
960
960
  backendAliases: ["gitAction", "git_action"],
961
961
  note: "The live hooks set it on a shell event; the git extractor sets it to commit on each commit event it emits."
962
962
  },
963
+ accountKey: {
964
+ family: "session",
965
+ readBy: ["backend"],
966
+ backendAliases: ["accountKey", "account_key"],
967
+ note: "Machine-salted digest of the Claude config folder plus the plan tier, from deriveAccountKey. Same value the live hooks send, so two profiles on one machine stay apart. Never a token, email or account id. Absent when no salt is readable."
968
+ },
963
969
  repoKey: {
964
970
  family: "repo",
965
971
  readBy: ["backend"],
@@ -1295,6 +1301,21 @@ var require_metricKeys = __commonJS({
1295
1301
  readBy: ["diagnostic"],
1296
1302
  note: "Claude Code only: advisor calls (a second model consulted inside one API message). Their tokens and models are already folded into the session totals and model mix, and this is the receipt for how much of that they are."
1297
1303
  },
1304
+ apiErrorMessageCount: {
1305
+ family: "outcome",
1306
+ readBy: ["diagnostic"],
1307
+ note: "Claude Code only: assistant lines the runtime flagged isApiErrorMessage, the error text shown where a reply should be. Counted apart from apiErrorCount, which reads the api_error system lines, so the two can be compared. Absent when there are none."
1308
+ },
1309
+ compactSummaryCount: {
1310
+ family: "context",
1311
+ readBy: ["diagnostic"],
1312
+ note: "Claude Code only: user lines flagged isCompactSummary, the summary a compaction leaves as the next turn's opening. A cross-check on compactionCount, which reads compact_boundary lines. Absent when there are none."
1313
+ },
1314
+ nestedSubagentCount: {
1315
+ family: "counts",
1316
+ readBy: ["diagnostic"],
1317
+ note: "Claude Code only: subagents launched by another subagent, linked by the agent id in the launching subagent's own tool results. Absent when there are none."
1318
+ },
1298
1319
  advisorTokensTotal: {
1299
1320
  family: "context",
1300
1321
  readBy: ["diagnostic"],
@@ -1525,6 +1546,7 @@ var require_out = __commonJS({
1525
1546
  gitAction: "git",
1526
1547
  milestoneKind: "git",
1527
1548
  branchHash: "repo",
1549
+ accountKey: "session",
1528
1550
  repoKey: "forge",
1529
1551
  headRepoKey: "forge",
1530
1552
  prCreatedAt: "git",
@@ -1554,6 +1576,9 @@ var require_out = __commonJS({
1554
1576
  // One constant word, from the agent itself. The session sentence names it.
1555
1577
  sessionEndReason: "session",
1556
1578
  interruptionKind: "waiting",
1579
+ waitMs: "waiting",
1580
+ waitEndedBy: "waiting",
1581
+ waitConfidence: "waiting",
1557
1582
  // Claude Code's own opaque id for one subagent, and the class it belongs
1558
1583
  // to. Never the agent's name or anything it was asked.
1559
1584
  subagentId: "subagents",
@@ -1596,6 +1621,7 @@ var require_out = __commonJS({
1596
1621
  "gitAction",
1597
1622
  "milestoneKind",
1598
1623
  "branchHash",
1624
+ "accountKey",
1599
1625
  "repoKey",
1600
1626
  "headRepoKey",
1601
1627
  "prCreatedAt",
@@ -1623,6 +1649,9 @@ var require_out = __commonJS({
1623
1649
  "runtime",
1624
1650
  "sessionEndReason",
1625
1651
  "interruptionKind",
1652
+ "waitMs",
1653
+ "waitEndedBy",
1654
+ "waitConfidence",
1626
1655
  "subagentId",
1627
1656
  "subagentClass",
1628
1657
  "simulated",
@@ -1712,6 +1741,10 @@ var require_out = __commonJS({
1712
1741
  // step toward an interruption count becoming a score, a streak, or something
1713
1742
  // that fires on a miss. It must never become any of those.
1714
1743
  supervision_interruption: "supervision",
1744
+ // How long that wait lasted, inferred from the next hook that could only
1745
+ // have fired after an answer. Same leg, same rule: overhead to be counted,
1746
+ // never a score.
1747
+ supervision_wait_ended: "supervision",
1715
1748
  // The agent asked to run a tool, and the auto-mode classifier refused one.
1716
1749
  // Claude Code's `PermissionRequest` and `PermissionDenied` hooks. Neutral,
1717
1750
  // because the Notification for the same prompt is already counted above as
@@ -1922,7 +1955,7 @@ var require_collectorVersion = __commonJS({
1922
1955
  exports.COLLECTOR_VERSION = exports.UNRELEASED_COLLECTOR_VERSION = void 0;
1923
1956
  exports.describeCollectorVersion = describeCollectorVersion;
1924
1957
  exports.UNRELEASED_COLLECTOR_VERSION = "unreleased";
1925
- exports.COLLECTOR_VERSION = "0.1.43" ? "0.1.43" : exports.UNRELEASED_COLLECTOR_VERSION;
1958
+ exports.COLLECTOR_VERSION = "0.1.45" ? "0.1.45" : exports.UNRELEASED_COLLECTOR_VERSION;
1926
1959
  function describeCollectorVersion(version2 = exports.COLLECTOR_VERSION) {
1927
1960
  return version2 === exports.UNRELEASED_COLLECTOR_VERSION ? `${version2} (built from a checkout, not a release)` : version2;
1928
1961
  }
@@ -5833,7 +5866,7 @@ var require_setupDisclosure = __commonJS({
5833
5866
  git: "that a commit, push or revert happened, and when a pull request opened or merged",
5834
5867
  edits: "roughly how much a file changed, as a bucket, and whether you edited it after the agent wrote it",
5835
5868
  context: "how full the context window got",
5836
- waiting: "that your agent stopped and waited for you, as one word: permission_request, input_request, idle_prompt, or other, and that it asked permission for a tool or had one refused in auto mode, with the tool's name",
5869
+ waiting: "that your agent stopped and waited for you, as one word: permission_request, input_request, idle_prompt, or other, how many milliseconds the wait lasted as worked out on your machine, and that it asked permission for a tool or had one refused in auto mode, with the tool's name",
5837
5870
  subagents: "when a subagent starts and stops, the id your agent gives it, and whether it was built in, from a plugin or one you defined \u2014 never its name or what it was asked",
5838
5871
  forge: "for a GitHub repository, one digest of owner/repo and one of the branch, which anyone who guesses the names can reproduce, so a pull request can be matched to your session (turn off with setup --no-repo-keys)",
5839
5872
  turns: "an opaque id your agent gives each prompt, so one turn's events group together",
@@ -7622,6 +7655,102 @@ var require_effortState = __commonJS({
7622
7655
  }
7623
7656
  });
7624
7657
 
7658
+ // ../packages/tool-kit/out/accountKey.js
7659
+ var require_accountKey = __commonJS({
7660
+ "../packages/tool-kit/out/accountKey.js"(exports) {
7661
+ "use strict";
7662
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
7663
+ if (k2 === void 0) k2 = k;
7664
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7665
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7666
+ desc = { enumerable: true, get: function() {
7667
+ return m[k];
7668
+ } };
7669
+ }
7670
+ Object.defineProperty(o, k2, desc);
7671
+ } : function(o, m, k, k2) {
7672
+ if (k2 === void 0) k2 = k;
7673
+ o[k2] = m[k];
7674
+ });
7675
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
7676
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
7677
+ } : function(o, v) {
7678
+ o["default"] = v;
7679
+ });
7680
+ var __importStar = exports && exports.__importStar || /* @__PURE__ */ function() {
7681
+ var ownKeys = function(o) {
7682
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
7683
+ var ar = [];
7684
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
7685
+ return ar;
7686
+ };
7687
+ return ownKeys(o);
7688
+ };
7689
+ return function(mod) {
7690
+ if (mod && mod.__esModule) return mod;
7691
+ var result = {};
7692
+ if (mod != null) {
7693
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
7694
+ }
7695
+ __setModuleDefault(result, mod);
7696
+ return result;
7697
+ };
7698
+ }();
7699
+ Object.defineProperty(exports, "__esModule", { value: true });
7700
+ exports.ACCOUNT_KEY_VERSION = void 0;
7701
+ exports.readPlanTier = readPlanTier;
7702
+ exports.deriveAccountKey = deriveAccountKey;
7703
+ exports.extraClaudeProfileDirs = extraClaudeProfileDirs;
7704
+ var fs = __importStar(__require("fs"));
7705
+ var os = __importStar(__require("os"));
7706
+ var path = __importStar(__require("path"));
7707
+ var salt_1 = require_salt();
7708
+ exports.ACCOUNT_KEY_VERSION = "account-v1";
7709
+ function readPlanTier(configDir, home = os.homedir(), env = process.env) {
7710
+ const isDefault = path.resolve(configDir) === path.join(home, ".claude") && !env.CLAUDE_CONFIG_DIR?.trim();
7711
+ const candidates = isDefault ? [path.join(home, ".claude.json"), path.join(configDir, ".claude.json")] : [path.join(configDir, ".claude.json")];
7712
+ for (const file of candidates) {
7713
+ try {
7714
+ const parsed = JSON.parse(fs.readFileSync(file, "utf8"));
7715
+ const account = parsed?.oauthAccount;
7716
+ const tier = account?.organizationRateLimitTier;
7717
+ if (typeof tier === "string" && tier.length <= 64)
7718
+ return tier.trim();
7719
+ } catch {
7720
+ }
7721
+ }
7722
+ return "";
7723
+ }
7724
+ function deriveAccountKey(configDir, home = os.homedir(), env = process.env, saltFilePath) {
7725
+ const first = env.CLAUDE_CONFIG_DIR?.split(",")[0]?.trim();
7726
+ const dir = path.resolve(configDir ?? (first ? first : path.join(home, ".claude")));
7727
+ const tier = readPlanTier(dir, home, env);
7728
+ try {
7729
+ return (0, salt_1.hashWithMachineSalt)(`${exports.ACCOUNT_KEY_VERSION}
7730
+ ${dir}
7731
+ ${tier}`, saltFilePath) ?? void 0;
7732
+ } catch {
7733
+ return void 0;
7734
+ }
7735
+ }
7736
+ function extraClaudeProfileDirs(home = os.homedir()) {
7737
+ let names;
7738
+ try {
7739
+ names = fs.readdirSync(home, { withFileTypes: true }).filter((e) => (e.isDirectory() || e.isSymbolicLink()) && e.name.startsWith(".claude-")).map((e) => e.name).sort();
7740
+ } catch {
7741
+ return [];
7742
+ }
7743
+ return names.map((name) => path.join(home, name)).filter((dir) => {
7744
+ try {
7745
+ return fs.statSync(path.join(dir, "projects")).isDirectory();
7746
+ } catch {
7747
+ return false;
7748
+ }
7749
+ });
7750
+ }
7751
+ }
7752
+ });
7753
+
7625
7754
  // ../packages/tool-kit/out/squadronJoin.js
7626
7755
  var require_squadronJoin = __commonJS({
7627
7756
  "../packages/tool-kit/out/squadronJoin.js"(exports) {
@@ -8147,8 +8276,9 @@ var require_agentProcess = __commonJS({
8147
8276
  };
8148
8277
  }();
8149
8278
  Object.defineProperty(exports, "__esModule", { value: true });
8150
- exports.psArgsLookup = exports.psLookup = exports.AGENT_PROCESS = void 0;
8279
+ exports.psStartLookup = exports.psArgsLookup = exports.psLookup = exports.AGENT_PROCESS = void 0;
8151
8280
  exports.scriptMarkerIn = scriptMarkerIn;
8281
+ exports.probeProcess = probeProcess;
8152
8282
  exports.findAgentProcess = findAgentProcess;
8153
8283
  exports.findAgentPid = findAgentPid;
8154
8284
  exports.livePidFields = livePidFields;
@@ -8197,6 +8327,39 @@ var require_agentProcess = __commonJS({
8197
8327
  exports.psLookup = psLookup;
8198
8328
  var psArgsLookup = (pid) => ps("args=", pid);
8199
8329
  exports.psArgsLookup = psArgsLookup;
8330
+ var psStartLookup = (pid) => {
8331
+ if (process.platform === "win32")
8332
+ return void 0;
8333
+ const line = ps("lstart=", pid);
8334
+ const ms = line ? Date.parse(line) : NaN;
8335
+ return Number.isFinite(ms) ? ms : void 0;
8336
+ };
8337
+ exports.psStartLookup = psStartLookup;
8338
+ var START_TOLERANCE_MS = 2e3;
8339
+ function probeProcess(pid, startedAt, options = {}) {
8340
+ if ((options.platform ?? process.platform) === "win32")
8341
+ return "unknown";
8342
+ if (!Number.isInteger(pid) || pid <= 1)
8343
+ return "unknown";
8344
+ const kill = options.kill ?? ((p, sig) => {
8345
+ process.kill(p, sig);
8346
+ });
8347
+ try {
8348
+ kill(pid, 0);
8349
+ } catch (error2) {
8350
+ const code = error2?.code;
8351
+ if (code === "ESRCH")
8352
+ return "dead";
8353
+ if (code !== "EPERM")
8354
+ return "unknown";
8355
+ }
8356
+ if (startedAt === void 0)
8357
+ return "unknown";
8358
+ const now = (options.startLookup ?? exports.psStartLookup)(pid);
8359
+ if (now === void 0)
8360
+ return "unknown";
8361
+ return Math.abs(now - startedAt) > START_TOLERANCE_MS ? "dead" : "alive";
8362
+ }
8200
8363
  function findAgentProcess(rule, options = {}) {
8201
8364
  if (!rule)
8202
8365
  return void 0;
@@ -8212,13 +8375,13 @@ var require_agentProcess = __commonJS({
8212
8375
  return void 0;
8213
8376
  if (pid !== process.pid) {
8214
8377
  if (rule.executable(info.command)) {
8215
- return accepts(rule, rule.args ? argsLookup(pid) : "") ? { pid, match: "executable" } : void 0;
8378
+ return accepts(rule, rule.args ? argsLookup(pid) : "") ? { pid, match: "executable", ...startField(pid, options) } : void 0;
8216
8379
  }
8217
8380
  if (markers.length > 0 && SCRIPT_RUNTIME.test(path.basename(info.command))) {
8218
8381
  const args = argsLookup(pid);
8219
8382
  const marker = args === void 0 ? void 0 : scriptMarkerIn(args, markers);
8220
8383
  if (marker !== void 0) {
8221
- return accepts(rule, args) ? { pid, match: "path", marker } : void 0;
8384
+ return accepts(rule, args) ? { pid, match: "path", marker, ...startField(pid, options) } : void 0;
8222
8385
  }
8223
8386
  }
8224
8387
  }
@@ -8226,6 +8389,10 @@ var require_agentProcess = __commonJS({
8226
8389
  }
8227
8390
  return void 0;
8228
8391
  }
8392
+ function startField(pid, options) {
8393
+ const startedAt = (options.startLookup ?? exports.psStartLookup)(pid);
8394
+ return startedAt === void 0 ? {} : { startedAt };
8395
+ }
8229
8396
  function accepts(rule, args) {
8230
8397
  if (!rule.args)
8231
8398
  return true;
@@ -8237,9 +8404,10 @@ var require_agentProcess = __commonJS({
8237
8404
  function livePidFields(match) {
8238
8405
  if (!match)
8239
8406
  return {};
8407
+ const start = match.startedAt === void 0 ? {} : { pidStartedAt: match.startedAt };
8240
8408
  if (match.match === "executable")
8241
- return { pid: match.pid };
8242
- return { pid: match.pid, pidMatch: "path", pidMarker: match.marker };
8409
+ return { pid: match.pid, ...start };
8410
+ return { pid: match.pid, pidMatch: "path", pidMarker: match.marker, ...start };
8243
8411
  }
8244
8412
  }
8245
8413
  });
@@ -8252,9 +8420,9 @@ var require_out3 = __commonJS({
8252
8420
  exports.RELEASE_CHECK_ENV_VAR = 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.withModelOnChange = exports.modelFieldsFor = exports.clearSentModelId = exports.recordSentModelId = exports.readSentModelId = exports.claudeCodeModelRoute = exports.modelRouteFromCodexProvider = exports.modelRouteFromSlug = exports.classifyEffortClass = exports.isPremiumModelClass = exports.PREMIUM_MODEL_CLASSES = exports.classifyModelClass = exports.autonomyBand = exports.shellCommandFacts = exports.invitesDebrief = exports.classifyMcpWorkMilestone = exports.classifyWorkMilestone = exports.isReworkGitAction = exports.classifyGitAction = exports.isVerificationCommand = exports.classifyCommand = void 0;
8253
8421
  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 = 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.runsFromInstalledBundle = exports.releaseStanding = exports.releaseCheckPath = exports.refreshReleaseCheck = exports.readReleaseCheck = exports.pendingReleaseNotice = exports.installedBundleVersion = exports.describeReleaseCheck = exports.compareReleases = exports.RELEASE_MANIFEST_URL = void 0;
8254
8422
  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 = 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.recordSentEffortLevel = exports.readSentEffortLevel = exports.clearSentEffortLevel = exports.recordTurnStart = exports.readTurnPromptId = exports.consumeTurnDurationMs = exports.writeTopLevelCredentials = exports.writeMachineCredentials = exports.writeRepoKeysSetting = exports.writeEventLogSetting = exports.writeHostCredentials = exports.removeHostCredentials = exports.readMachineCredentials = void 0;
8255
- 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 = 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 = void 0;
8256
- 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 = 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 = void 0;
8257
- 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 = void 0;
8423
+ 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 = 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.ACCOUNT_KEY_VERSION = exports.readPlanTier = exports.extraClaudeProfileDirs = exports.deriveAccountKey = exports.recordForgeProjectAlias = exports.forgeFullNameFromConfig = exports.readForgeFullName = exports.parseForgeFullName = exports.forgeBranchKey = exports.forgeRepoKey = exports.forgeProjectHash = exports.workContextRegistryFilePath = exports.readWorkContextRegistry = exports.recordWorkContextAlias = void 0;
8424
+ 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.psStartLookup = exports.psLookup = exports.psArgsLookup = exports.probeProcess = 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 = void 0;
8425
+ 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 = void 0;
8258
8426
  var commandClassifier_1 = require_commandClassifier();
8259
8427
  Object.defineProperty(exports, "classifyCommand", { enumerable: true, get: function() {
8260
8428
  return commandClassifier_1.classifyCommand;
@@ -8768,6 +8936,19 @@ var require_out3 = __commonJS({
8768
8936
  Object.defineProperty(exports, "recordForgeProjectAlias", { enumerable: true, get: function() {
8769
8937
  return forgeProject_1.recordForgeProjectAlias;
8770
8938
  } });
8939
+ var accountKey_1 = require_accountKey();
8940
+ Object.defineProperty(exports, "deriveAccountKey", { enumerable: true, get: function() {
8941
+ return accountKey_1.deriveAccountKey;
8942
+ } });
8943
+ Object.defineProperty(exports, "extraClaudeProfileDirs", { enumerable: true, get: function() {
8944
+ return accountKey_1.extraClaudeProfileDirs;
8945
+ } });
8946
+ Object.defineProperty(exports, "readPlanTier", { enumerable: true, get: function() {
8947
+ return accountKey_1.readPlanTier;
8948
+ } });
8949
+ Object.defineProperty(exports, "ACCOUNT_KEY_VERSION", { enumerable: true, get: function() {
8950
+ return accountKey_1.ACCOUNT_KEY_VERSION;
8951
+ } });
8771
8952
  var forgeKeys_1 = require_forgeKeys();
8772
8953
  Object.defineProperty(exports, "REPO_KEYS_ENV_VAR", { enumerable: true, get: function() {
8773
8954
  return forgeKeys_1.REPO_KEYS_ENV_VAR;
@@ -8975,12 +9156,18 @@ var require_out3 = __commonJS({
8975
9156
  Object.defineProperty(exports, "livePidFields", { enumerable: true, get: function() {
8976
9157
  return agentProcess_1.livePidFields;
8977
9158
  } });
9159
+ Object.defineProperty(exports, "probeProcess", { enumerable: true, get: function() {
9160
+ return agentProcess_1.probeProcess;
9161
+ } });
8978
9162
  Object.defineProperty(exports, "psArgsLookup", { enumerable: true, get: function() {
8979
9163
  return agentProcess_1.psArgsLookup;
8980
9164
  } });
8981
9165
  Object.defineProperty(exports, "psLookup", { enumerable: true, get: function() {
8982
9166
  return agentProcess_1.psLookup;
8983
9167
  } });
9168
+ Object.defineProperty(exports, "psStartLookup", { enumerable: true, get: function() {
9169
+ return agentProcess_1.psStartLookup;
9170
+ } });
8984
9171
  Object.defineProperty(exports, "scriptMarkerIn", { enumerable: true, get: function() {
8985
9172
  return agentProcess_1.scriptMarkerIn;
8986
9173
  } });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "publishConfig": { "access": "public" },
3
3
  "name": "@ascenda-one/agent-mcp",
4
- "version": "0.1.43",
4
+ "version": "0.1.45",
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",