@ascenda-one/github-collector 0.1.44 → 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.
- package/dist/cli.js +197 -10
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -956,6 +956,12 @@ var require_metricKeys = __commonJS({
|
|
|
956
956
|
backendAliases: ["gitAction", "git_action"],
|
|
957
957
|
note: "The live hooks set it on a shell event; the git extractor sets it to commit on each commit event it emits."
|
|
958
958
|
},
|
|
959
|
+
accountKey: {
|
|
960
|
+
family: "session",
|
|
961
|
+
readBy: ["backend"],
|
|
962
|
+
backendAliases: ["accountKey", "account_key"],
|
|
963
|
+
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."
|
|
964
|
+
},
|
|
959
965
|
repoKey: {
|
|
960
966
|
family: "repo",
|
|
961
967
|
readBy: ["backend"],
|
|
@@ -1291,6 +1297,21 @@ var require_metricKeys = __commonJS({
|
|
|
1291
1297
|
readBy: ["diagnostic"],
|
|
1292
1298
|
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."
|
|
1293
1299
|
},
|
|
1300
|
+
apiErrorMessageCount: {
|
|
1301
|
+
family: "outcome",
|
|
1302
|
+
readBy: ["diagnostic"],
|
|
1303
|
+
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."
|
|
1304
|
+
},
|
|
1305
|
+
compactSummaryCount: {
|
|
1306
|
+
family: "context",
|
|
1307
|
+
readBy: ["diagnostic"],
|
|
1308
|
+
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."
|
|
1309
|
+
},
|
|
1310
|
+
nestedSubagentCount: {
|
|
1311
|
+
family: "counts",
|
|
1312
|
+
readBy: ["diagnostic"],
|
|
1313
|
+
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."
|
|
1314
|
+
},
|
|
1294
1315
|
advisorTokensTotal: {
|
|
1295
1316
|
family: "context",
|
|
1296
1317
|
readBy: ["diagnostic"],
|
|
@@ -1521,6 +1542,7 @@ var require_out = __commonJS({
|
|
|
1521
1542
|
gitAction: "git",
|
|
1522
1543
|
milestoneKind: "git",
|
|
1523
1544
|
branchHash: "repo",
|
|
1545
|
+
accountKey: "session",
|
|
1524
1546
|
repoKey: "forge",
|
|
1525
1547
|
headRepoKey: "forge",
|
|
1526
1548
|
prCreatedAt: "git",
|
|
@@ -1550,6 +1572,9 @@ var require_out = __commonJS({
|
|
|
1550
1572
|
// One constant word, from the agent itself. The session sentence names it.
|
|
1551
1573
|
sessionEndReason: "session",
|
|
1552
1574
|
interruptionKind: "waiting",
|
|
1575
|
+
waitMs: "waiting",
|
|
1576
|
+
waitEndedBy: "waiting",
|
|
1577
|
+
waitConfidence: "waiting",
|
|
1553
1578
|
// Claude Code's own opaque id for one subagent, and the class it belongs
|
|
1554
1579
|
// to. Never the agent's name or anything it was asked.
|
|
1555
1580
|
subagentId: "subagents",
|
|
@@ -1592,6 +1617,7 @@ var require_out = __commonJS({
|
|
|
1592
1617
|
"gitAction",
|
|
1593
1618
|
"milestoneKind",
|
|
1594
1619
|
"branchHash",
|
|
1620
|
+
"accountKey",
|
|
1595
1621
|
"repoKey",
|
|
1596
1622
|
"headRepoKey",
|
|
1597
1623
|
"prCreatedAt",
|
|
@@ -1619,6 +1645,9 @@ var require_out = __commonJS({
|
|
|
1619
1645
|
"runtime",
|
|
1620
1646
|
"sessionEndReason",
|
|
1621
1647
|
"interruptionKind",
|
|
1648
|
+
"waitMs",
|
|
1649
|
+
"waitEndedBy",
|
|
1650
|
+
"waitConfidence",
|
|
1622
1651
|
"subagentId",
|
|
1623
1652
|
"subagentClass",
|
|
1624
1653
|
"simulated",
|
|
@@ -1708,6 +1737,10 @@ var require_out = __commonJS({
|
|
|
1708
1737
|
// step toward an interruption count becoming a score, a streak, or something
|
|
1709
1738
|
// that fires on a miss. It must never become any of those.
|
|
1710
1739
|
supervision_interruption: "supervision",
|
|
1740
|
+
// How long that wait lasted, inferred from the next hook that could only
|
|
1741
|
+
// have fired after an answer. Same leg, same rule: overhead to be counted,
|
|
1742
|
+
// never a score.
|
|
1743
|
+
supervision_wait_ended: "supervision",
|
|
1711
1744
|
// The agent asked to run a tool, and the auto-mode classifier refused one.
|
|
1712
1745
|
// Claude Code's `PermissionRequest` and `PermissionDenied` hooks. Neutral,
|
|
1713
1746
|
// because the Notification for the same prompt is already counted above as
|
|
@@ -1918,7 +1951,7 @@ var require_collectorVersion = __commonJS({
|
|
|
1918
1951
|
exports.COLLECTOR_VERSION = exports.UNRELEASED_COLLECTOR_VERSION = void 0;
|
|
1919
1952
|
exports.describeCollectorVersion = describeCollectorVersion;
|
|
1920
1953
|
exports.UNRELEASED_COLLECTOR_VERSION = "unreleased";
|
|
1921
|
-
exports.COLLECTOR_VERSION = "0.1.
|
|
1954
|
+
exports.COLLECTOR_VERSION = "0.1.45" ? "0.1.45" : exports.UNRELEASED_COLLECTOR_VERSION;
|
|
1922
1955
|
function describeCollectorVersion(version = exports.COLLECTOR_VERSION) {
|
|
1923
1956
|
return version === exports.UNRELEASED_COLLECTOR_VERSION ? `${version} (built from a checkout, not a release)` : version;
|
|
1924
1957
|
}
|
|
@@ -5829,7 +5862,7 @@ var require_setupDisclosure = __commonJS({
|
|
|
5829
5862
|
git: "that a commit, push or revert happened, and when a pull request opened or merged",
|
|
5830
5863
|
edits: "roughly how much a file changed, as a bucket, and whether you edited it after the agent wrote it",
|
|
5831
5864
|
context: "how full the context window got",
|
|
5832
|
-
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",
|
|
5865
|
+
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",
|
|
5833
5866
|
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",
|
|
5834
5867
|
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)",
|
|
5835
5868
|
turns: "an opaque id your agent gives each prompt, so one turn's events group together",
|
|
@@ -7618,6 +7651,102 @@ var require_effortState = __commonJS({
|
|
|
7618
7651
|
}
|
|
7619
7652
|
});
|
|
7620
7653
|
|
|
7654
|
+
// ../packages/tool-kit/out/accountKey.js
|
|
7655
|
+
var require_accountKey = __commonJS({
|
|
7656
|
+
"../packages/tool-kit/out/accountKey.js"(exports) {
|
|
7657
|
+
"use strict";
|
|
7658
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
7659
|
+
if (k2 === void 0) k2 = k;
|
|
7660
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7661
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7662
|
+
desc = { enumerable: true, get: function() {
|
|
7663
|
+
return m[k];
|
|
7664
|
+
} };
|
|
7665
|
+
}
|
|
7666
|
+
Object.defineProperty(o, k2, desc);
|
|
7667
|
+
} : function(o, m, k, k2) {
|
|
7668
|
+
if (k2 === void 0) k2 = k;
|
|
7669
|
+
o[k2] = m[k];
|
|
7670
|
+
});
|
|
7671
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
7672
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
7673
|
+
} : function(o, v) {
|
|
7674
|
+
o["default"] = v;
|
|
7675
|
+
});
|
|
7676
|
+
var __importStar = exports && exports.__importStar || /* @__PURE__ */ function() {
|
|
7677
|
+
var ownKeys = function(o) {
|
|
7678
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
7679
|
+
var ar = [];
|
|
7680
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
7681
|
+
return ar;
|
|
7682
|
+
};
|
|
7683
|
+
return ownKeys(o);
|
|
7684
|
+
};
|
|
7685
|
+
return function(mod) {
|
|
7686
|
+
if (mod && mod.__esModule) return mod;
|
|
7687
|
+
var result = {};
|
|
7688
|
+
if (mod != null) {
|
|
7689
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
7690
|
+
}
|
|
7691
|
+
__setModuleDefault(result, mod);
|
|
7692
|
+
return result;
|
|
7693
|
+
};
|
|
7694
|
+
}();
|
|
7695
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7696
|
+
exports.ACCOUNT_KEY_VERSION = void 0;
|
|
7697
|
+
exports.readPlanTier = readPlanTier;
|
|
7698
|
+
exports.deriveAccountKey = deriveAccountKey;
|
|
7699
|
+
exports.extraClaudeProfileDirs = extraClaudeProfileDirs;
|
|
7700
|
+
var fs = __importStar(__require("fs"));
|
|
7701
|
+
var os = __importStar(__require("os"));
|
|
7702
|
+
var path = __importStar(__require("path"));
|
|
7703
|
+
var salt_1 = require_salt();
|
|
7704
|
+
exports.ACCOUNT_KEY_VERSION = "account-v1";
|
|
7705
|
+
function readPlanTier(configDir, home = os.homedir(), env = process.env) {
|
|
7706
|
+
const isDefault = path.resolve(configDir) === path.join(home, ".claude") && !env.CLAUDE_CONFIG_DIR?.trim();
|
|
7707
|
+
const candidates = isDefault ? [path.join(home, ".claude.json"), path.join(configDir, ".claude.json")] : [path.join(configDir, ".claude.json")];
|
|
7708
|
+
for (const file of candidates) {
|
|
7709
|
+
try {
|
|
7710
|
+
const parsed = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
7711
|
+
const account = parsed?.oauthAccount;
|
|
7712
|
+
const tier = account?.organizationRateLimitTier;
|
|
7713
|
+
if (typeof tier === "string" && tier.length <= 64)
|
|
7714
|
+
return tier.trim();
|
|
7715
|
+
} catch {
|
|
7716
|
+
}
|
|
7717
|
+
}
|
|
7718
|
+
return "";
|
|
7719
|
+
}
|
|
7720
|
+
function deriveAccountKey(configDir, home = os.homedir(), env = process.env, saltFilePath) {
|
|
7721
|
+
const first = env.CLAUDE_CONFIG_DIR?.split(",")[0]?.trim();
|
|
7722
|
+
const dir = path.resolve(configDir ?? (first ? first : path.join(home, ".claude")));
|
|
7723
|
+
const tier = readPlanTier(dir, home, env);
|
|
7724
|
+
try {
|
|
7725
|
+
return (0, salt_1.hashWithMachineSalt)(`${exports.ACCOUNT_KEY_VERSION}
|
|
7726
|
+
${dir}
|
|
7727
|
+
${tier}`, saltFilePath) ?? void 0;
|
|
7728
|
+
} catch {
|
|
7729
|
+
return void 0;
|
|
7730
|
+
}
|
|
7731
|
+
}
|
|
7732
|
+
function extraClaudeProfileDirs(home = os.homedir()) {
|
|
7733
|
+
let names;
|
|
7734
|
+
try {
|
|
7735
|
+
names = fs.readdirSync(home, { withFileTypes: true }).filter((e) => (e.isDirectory() || e.isSymbolicLink()) && e.name.startsWith(".claude-")).map((e) => e.name).sort();
|
|
7736
|
+
} catch {
|
|
7737
|
+
return [];
|
|
7738
|
+
}
|
|
7739
|
+
return names.map((name) => path.join(home, name)).filter((dir) => {
|
|
7740
|
+
try {
|
|
7741
|
+
return fs.statSync(path.join(dir, "projects")).isDirectory();
|
|
7742
|
+
} catch {
|
|
7743
|
+
return false;
|
|
7744
|
+
}
|
|
7745
|
+
});
|
|
7746
|
+
}
|
|
7747
|
+
}
|
|
7748
|
+
});
|
|
7749
|
+
|
|
7621
7750
|
// ../packages/tool-kit/out/squadronJoin.js
|
|
7622
7751
|
var require_squadronJoin = __commonJS({
|
|
7623
7752
|
"../packages/tool-kit/out/squadronJoin.js"(exports) {
|
|
@@ -8143,8 +8272,9 @@ var require_agentProcess = __commonJS({
|
|
|
8143
8272
|
};
|
|
8144
8273
|
}();
|
|
8145
8274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8146
|
-
exports.psArgsLookup = exports.psLookup = exports.AGENT_PROCESS = void 0;
|
|
8275
|
+
exports.psStartLookup = exports.psArgsLookup = exports.psLookup = exports.AGENT_PROCESS = void 0;
|
|
8147
8276
|
exports.scriptMarkerIn = scriptMarkerIn;
|
|
8277
|
+
exports.probeProcess = probeProcess;
|
|
8148
8278
|
exports.findAgentProcess = findAgentProcess;
|
|
8149
8279
|
exports.findAgentPid = findAgentPid;
|
|
8150
8280
|
exports.livePidFields = livePidFields;
|
|
@@ -8193,6 +8323,39 @@ var require_agentProcess = __commonJS({
|
|
|
8193
8323
|
exports.psLookup = psLookup;
|
|
8194
8324
|
var psArgsLookup = (pid) => ps("args=", pid);
|
|
8195
8325
|
exports.psArgsLookup = psArgsLookup;
|
|
8326
|
+
var psStartLookup = (pid) => {
|
|
8327
|
+
if (process.platform === "win32")
|
|
8328
|
+
return void 0;
|
|
8329
|
+
const line = ps("lstart=", pid);
|
|
8330
|
+
const ms = line ? Date.parse(line) : NaN;
|
|
8331
|
+
return Number.isFinite(ms) ? ms : void 0;
|
|
8332
|
+
};
|
|
8333
|
+
exports.psStartLookup = psStartLookup;
|
|
8334
|
+
var START_TOLERANCE_MS = 2e3;
|
|
8335
|
+
function probeProcess(pid, startedAt, options = {}) {
|
|
8336
|
+
if ((options.platform ?? process.platform) === "win32")
|
|
8337
|
+
return "unknown";
|
|
8338
|
+
if (!Number.isInteger(pid) || pid <= 1)
|
|
8339
|
+
return "unknown";
|
|
8340
|
+
const kill = options.kill ?? ((p, sig) => {
|
|
8341
|
+
process.kill(p, sig);
|
|
8342
|
+
});
|
|
8343
|
+
try {
|
|
8344
|
+
kill(pid, 0);
|
|
8345
|
+
} catch (error) {
|
|
8346
|
+
const code = error?.code;
|
|
8347
|
+
if (code === "ESRCH")
|
|
8348
|
+
return "dead";
|
|
8349
|
+
if (code !== "EPERM")
|
|
8350
|
+
return "unknown";
|
|
8351
|
+
}
|
|
8352
|
+
if (startedAt === void 0)
|
|
8353
|
+
return "unknown";
|
|
8354
|
+
const now = (options.startLookup ?? exports.psStartLookup)(pid);
|
|
8355
|
+
if (now === void 0)
|
|
8356
|
+
return "unknown";
|
|
8357
|
+
return Math.abs(now - startedAt) > START_TOLERANCE_MS ? "dead" : "alive";
|
|
8358
|
+
}
|
|
8196
8359
|
function findAgentProcess(rule, options = {}) {
|
|
8197
8360
|
if (!rule)
|
|
8198
8361
|
return void 0;
|
|
@@ -8208,13 +8371,13 @@ var require_agentProcess = __commonJS({
|
|
|
8208
8371
|
return void 0;
|
|
8209
8372
|
if (pid !== process.pid) {
|
|
8210
8373
|
if (rule.executable(info.command)) {
|
|
8211
|
-
return accepts(rule, rule.args ? argsLookup(pid) : "") ? { pid, match: "executable" } : void 0;
|
|
8374
|
+
return accepts(rule, rule.args ? argsLookup(pid) : "") ? { pid, match: "executable", ...startField(pid, options) } : void 0;
|
|
8212
8375
|
}
|
|
8213
8376
|
if (markers.length > 0 && SCRIPT_RUNTIME.test(path.basename(info.command))) {
|
|
8214
8377
|
const args = argsLookup(pid);
|
|
8215
8378
|
const marker = args === void 0 ? void 0 : scriptMarkerIn(args, markers);
|
|
8216
8379
|
if (marker !== void 0) {
|
|
8217
|
-
return accepts(rule, args) ? { pid, match: "path", marker } : void 0;
|
|
8380
|
+
return accepts(rule, args) ? { pid, match: "path", marker, ...startField(pid, options) } : void 0;
|
|
8218
8381
|
}
|
|
8219
8382
|
}
|
|
8220
8383
|
}
|
|
@@ -8222,6 +8385,10 @@ var require_agentProcess = __commonJS({
|
|
|
8222
8385
|
}
|
|
8223
8386
|
return void 0;
|
|
8224
8387
|
}
|
|
8388
|
+
function startField(pid, options) {
|
|
8389
|
+
const startedAt = (options.startLookup ?? exports.psStartLookup)(pid);
|
|
8390
|
+
return startedAt === void 0 ? {} : { startedAt };
|
|
8391
|
+
}
|
|
8225
8392
|
function accepts(rule, args) {
|
|
8226
8393
|
if (!rule.args)
|
|
8227
8394
|
return true;
|
|
@@ -8233,9 +8400,10 @@ var require_agentProcess = __commonJS({
|
|
|
8233
8400
|
function livePidFields(match) {
|
|
8234
8401
|
if (!match)
|
|
8235
8402
|
return {};
|
|
8403
|
+
const start = match.startedAt === void 0 ? {} : { pidStartedAt: match.startedAt };
|
|
8236
8404
|
if (match.match === "executable")
|
|
8237
|
-
return { pid: match.pid };
|
|
8238
|
-
return { pid: match.pid, pidMatch: "path", pidMarker: match.marker };
|
|
8405
|
+
return { pid: match.pid, ...start };
|
|
8406
|
+
return { pid: match.pid, pidMatch: "path", pidMarker: match.marker, ...start };
|
|
8239
8407
|
}
|
|
8240
8408
|
}
|
|
8241
8409
|
});
|
|
@@ -8248,9 +8416,9 @@ var require_out3 = __commonJS({
|
|
|
8248
8416
|
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;
|
|
8249
8417
|
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;
|
|
8250
8418
|
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;
|
|
8251
|
-
exports.
|
|
8252
|
-
exports.
|
|
8253
|
-
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;
|
|
8419
|
+
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;
|
|
8420
|
+
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;
|
|
8421
|
+
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;
|
|
8254
8422
|
var commandClassifier_1 = require_commandClassifier();
|
|
8255
8423
|
Object.defineProperty(exports, "classifyCommand", { enumerable: true, get: function() {
|
|
8256
8424
|
return commandClassifier_1.classifyCommand;
|
|
@@ -8764,6 +8932,19 @@ var require_out3 = __commonJS({
|
|
|
8764
8932
|
Object.defineProperty(exports, "recordForgeProjectAlias", { enumerable: true, get: function() {
|
|
8765
8933
|
return forgeProject_1.recordForgeProjectAlias;
|
|
8766
8934
|
} });
|
|
8935
|
+
var accountKey_1 = require_accountKey();
|
|
8936
|
+
Object.defineProperty(exports, "deriveAccountKey", { enumerable: true, get: function() {
|
|
8937
|
+
return accountKey_1.deriveAccountKey;
|
|
8938
|
+
} });
|
|
8939
|
+
Object.defineProperty(exports, "extraClaudeProfileDirs", { enumerable: true, get: function() {
|
|
8940
|
+
return accountKey_1.extraClaudeProfileDirs;
|
|
8941
|
+
} });
|
|
8942
|
+
Object.defineProperty(exports, "readPlanTier", { enumerable: true, get: function() {
|
|
8943
|
+
return accountKey_1.readPlanTier;
|
|
8944
|
+
} });
|
|
8945
|
+
Object.defineProperty(exports, "ACCOUNT_KEY_VERSION", { enumerable: true, get: function() {
|
|
8946
|
+
return accountKey_1.ACCOUNT_KEY_VERSION;
|
|
8947
|
+
} });
|
|
8767
8948
|
var forgeKeys_1 = require_forgeKeys();
|
|
8768
8949
|
Object.defineProperty(exports, "REPO_KEYS_ENV_VAR", { enumerable: true, get: function() {
|
|
8769
8950
|
return forgeKeys_1.REPO_KEYS_ENV_VAR;
|
|
@@ -8971,12 +9152,18 @@ var require_out3 = __commonJS({
|
|
|
8971
9152
|
Object.defineProperty(exports, "livePidFields", { enumerable: true, get: function() {
|
|
8972
9153
|
return agentProcess_1.livePidFields;
|
|
8973
9154
|
} });
|
|
9155
|
+
Object.defineProperty(exports, "probeProcess", { enumerable: true, get: function() {
|
|
9156
|
+
return agentProcess_1.probeProcess;
|
|
9157
|
+
} });
|
|
8974
9158
|
Object.defineProperty(exports, "psArgsLookup", { enumerable: true, get: function() {
|
|
8975
9159
|
return agentProcess_1.psArgsLookup;
|
|
8976
9160
|
} });
|
|
8977
9161
|
Object.defineProperty(exports, "psLookup", { enumerable: true, get: function() {
|
|
8978
9162
|
return agentProcess_1.psLookup;
|
|
8979
9163
|
} });
|
|
9164
|
+
Object.defineProperty(exports, "psStartLookup", { enumerable: true, get: function() {
|
|
9165
|
+
return agentProcess_1.psStartLookup;
|
|
9166
|
+
} });
|
|
8980
9167
|
Object.defineProperty(exports, "scriptMarkerIn", { enumerable: true, get: function() {
|
|
8981
9168
|
return agentProcess_1.scriptMarkerIn;
|
|
8982
9169
|
} });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"publishConfig": { "access": "public" },
|
|
3
3
|
"name": "@ascenda-one/github-collector",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.45",
|
|
5
5
|
"description": "Code-forge collaboration collector for Ascenda work telemetry — first-person review and pull-request signals.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|