Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

style: run prettier to fix code formatting

auroracapital11798aa14d11
diff --git a/claude-ops/scripts/account-rotation/account-leases.mjs b/claude-ops/scripts/account-rotation/account-leases.mjs
index 5637a88b..25db9069 100644
--- a/claude-ops/scripts/account-rotation/account-leases.mjs
+++ b/claude-ops/scripts/account-rotation/account-leases.mjs
@@ -71,11 +71,16 @@ export function readAllLeases(log = () => {}) {
const leases = new Map();
try {
const ls = runAws([
- 's3api', 'list-objects-v2',
- '--bucket', LEASE_BUCKET,
- '--prefix', LEASE_PREFIX,
- '--region', LEASE_REGION,
- '--output', 'json',
+ 's3api',
+ 'list-objects-v2',
+ '--bucket',
+ LEASE_BUCKET,
+ '--prefix',
+ LEASE_PREFIX,
+ '--region',
+ LEASE_REGION,
+ '--output',
+ 'json',
]);
if (ls.status !== 0) {
if (ls.stderr) log(`[lease] list failed (fail-open): ${ls.stderr.trim().split('\n')[0]}`);
@@ -85,10 +90,7 @@ export function readAllLeases(log = () => {}) {
for (const obj of parsed.Contents || []) {
const k = obj.Key;
if (!k || !k.endsWith('.json')) continue;
- const got = runAws([
- 's3', 'cp', `s3://${LEASE_BUCKET}/${k}`, '-',
- '--region', LEASE_REGION,
- ]);
+ const got = runAws(['s3', 'cp', `s3://${LEASE_BUCKET}/${k}`, '-', '--region', LEASE_REGION]);
if (got.status !== 0) continue;
try {
const body = JSON.parse(got.stdout);
@@ -128,11 +130,19 @@ export function writeLease(accountKey, log = () => {}) {
try {
const me = selfHost();
const body = JSON.stringify({ host: me, account: accountKey, ts: Date.now() });
- const put = runAws([
- 's3', 'cp', '-', `s3://${LEASE_BUCKET}/${keyFor(accountKey)}`,
- '--region', LEASE_REGION,
- '--content-type', 'application/json',
- ], { input: body });
+ const put = runAws(
+ [
+ 's3',
+ 'cp',
+ '-',
+ `s3://${LEASE_BUCKET}/${keyFor(accountKey)}`,
+ '--region',
+ LEASE_REGION,
+ '--content-type',
+ 'application/json',
+ ],
+ { input: body },
+ );
if (put.status !== 0) {
if (put.stderr) log(`[lease] write ${accountKey} failed (non-fatal): ${put.stderr.trim().split('\n')[0]}`);
return false;
@@ -142,10 +152,7 @@ export function writeLease(accountKey, log = () => {}) {
const all = readAllLeases(log);
for (const [acct, { host }] of all) {
if (host === me && acct !== accountKey) {
- const del = runAws([
- 's3', 'rm', `s3://${LEASE_BUCKET}/${keyFor(acct)}`,
- '--region', LEASE_REGION,
- ]);
+ const del = runAws(['s3', 'rm', `s3://${LEASE_BUCKET}/${keyFor(acct)}`, '--region', LEASE_REGION]);
if (del.status === 0) log(`[lease] cleared stale own-lease for ${acct}`);
}
}
@@ -164,9 +171,7 @@ export function applyAccountLeases(config, { keepKey = null, log = () => {} } =
const blocked = foreignActiveKeys(log);
if (!blocked.size) return config;
const keyOf = (a) => a.label || a.email;
- config.accounts = config.accounts.filter(
- (a) => keyOf(a) === keepKey || !blocked.has(keyOf(a)),
- );
+ config.accounts = config.accounts.filter((a) => keyOf(a) === keepKey || !blocked.has(keyOf(a)));
log(`[lease] excluding foreign-active accounts: ${[...blocked].join(', ')}`);
} catch (e) {
log(`[lease] applyAccountLeases error (fail-open): ${e.message}`);
diff --git a/claude-ops/scripts/account-rotation/claude-settings-mode.mjs b/claude-ops/scripts/account-rotation/claude-settings-mode.mjs
index 68bb77e9..754ae502 100644
--- a/claude-ops/scripts/account-rotation/claude-settings-mode.mjs
+++ b/claude-ops/scripts/account-rotation/claude-settings-mode.mjs
@@ -107,11 +107,7 @@ function sonnetRank(inferenceProfileId) {
function haikuRank(inferenceProfileId) {
let m = inferenceProfileId.match(/\.anthropic\.claude-haiku-(\d+)-(\d+)-(\d{8})/);
if (m) {
- return [
- parseInt(m[1], 10),
- parseInt(m[2], 10),
- parseInt(m[3], 10),
- ];
+ return [parseInt(m[1], 10), parseInt(m[2], 10), parseInt(m[3], 10)];
}
m = inferenceProfileId.match(/\.anthropic\.claude-3-5-haiku-(\d{8})/);
if (m) return [3, 5, parseInt(m[1], 10)];
@@ -134,18 +130,9 @@ function candidatesWithPrefix(profiles, prefix, predicate) {
}
function pickLatestSonnet(profiles, prefix) {
- const c = candidatesWithPrefix(
- profiles,
- prefix,
- (id) => id.includes('.anthropic.claude-sonnet-'),
- );
+ const c = candidatesWithPrefix(profiles, prefix, (id) => id.includes('.anthropic.claude-sonnet-'));
if (!c.length) return null;
- c.sort((x, y) =>
- rankCompareDesc(
- sonnetRank(x.inferenceProfileId),
- sonnetRank(y.inferenceProfileId),
- ),
- );
+ c.sort((x, y) => rankCompareDesc(sonnetRank(x.inferenceProfileId), sonnetRank(y.inferenceProfileId)));
return c[0].inferenceProfileId;
}
@@ -156,9 +143,7 @@ function pickLatestHaiku(profiles, prefix) {
return false;
});
if (!c.length) return null;
- c.sort((x, y) =>
- rankCompareDesc(haikuRank(x.inferenceProfileId), haikuRank(y.inferenceProfileId)),
- );
+ c.sort((x, y) => rankCompareDesc(haikuRank(x.inferenceProfileId), haikuRank(y.inferenceProfileId)));
return c[0].inferenceProfileId;
}