@rubytech/create-realagent-code 0.1.106 → 0.1.108
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/index.js +1 -1
- package/dist/uninstall.js +1 -1
- package/package.json +1 -1
- package/payload/platform/config/brand.json +1 -0
- package/payload/platform/plugins/.claude-plugin/marketplace.json +5 -5
- package/payload/platform/plugins/business-assistant/PLUGIN.md +4 -1
- package/payload/platform/plugins/docs/references/plugins-guide.md +8 -1
- package/payload/platform/plugins/venture-studio/.claude-plugin/plugin.json +8 -0
- package/payload/platform/plugins/venture-studio/PLUGIN.md +79 -0
- package/payload/platform/plugins/venture-studio/skills/brand-pack/SKILL.md +256 -0
- package/payload/platform/plugins/venture-studio/skills/brand-pack/references/color-psychology.md +118 -0
- package/payload/{premium-plugins/founder-pack → platform/plugins/venture-studio}/skills/investor-data-room/SKILL.md +109 -8
- package/payload/platform/plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/html-pdf-pipeline.md +1 -1
- package/payload/{premium-plugins/founder-pack → platform/plugins/venture-studio}/skills/investor-data-room/references/termsheet-template.md +1 -1
- package/payload/platform/plugins/venture-studio/skills/investor-data-room/templates/prospectus/index.html +1565 -0
- package/payload/platform/plugins/venture-studio/skills/investor-data-room/templates/prospectus/render-pdf.mjs +91 -0
- package/payload/platform/plugins/venture-studio/skills/investor-data-room/templates/prospectus/term_sheet.html +715 -0
- package/payload/platform/plugins/venture-studio/skills/office-hours/SKILL.md +588 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/SKILL.md +332 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/aarrr-metrics.md +275 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/assumption-testing.md +93 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/boolean-search.md +308 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/build-measure-learn.md +262 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/business-model-canvas.md +171 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/commitment-signals.md +246 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/design-thinking.md +183 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/earlyvangelist.md +190 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/first-principles.md +58 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/fishbone.md +114 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/five-whys.md +43 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/ice-scoring.md +237 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/innovation-accounting.md +290 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/jtbd.md +105 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/landing-page.md +361 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/market-type.md +167 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/mom-test.md +193 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/mvp-types.md +200 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/og-images.md +239 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/pareto.md +103 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/persona-development.md +291 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/pivot-types.md +225 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/positioning-statement.md +179 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/prd.md +363 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/pre-mortem.md +74 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/problem-validation.md +253 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/product-market-fit.md +256 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/research-synthesis.md +276 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/three-engines-of-growth.md +248 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/validation-tests.md +89 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/value-proposition-canvas.md +121 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/win-loss-analysis.md +242 -0
- package/payload/platform/plugins/venture-studio/skills/zero-to-prototype/references/workflow-mapping.md +271 -0
- package/payload/premium-plugins/.claude-plugin/marketplace.json +4 -4
- package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-brochure/references/build.md +4 -5
- package/payload/premium-plugins/venture-studio/.claude-plugin/plugin.json +8 -0
- package/payload/premium-plugins/venture-studio/PLUGIN.md +79 -0
- package/payload/premium-plugins/venture-studio/skills/brand-pack/SKILL.md +256 -0
- package/payload/premium-plugins/venture-studio/skills/brand-pack/references/color-psychology.md +118 -0
- package/payload/{platform/plugins/founder-pack → premium-plugins/venture-studio}/skills/investor-data-room/SKILL.md +109 -8
- package/payload/premium-plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/html-pdf-pipeline.md +1 -1
- package/payload/{platform/plugins/founder-pack → premium-plugins/venture-studio}/skills/investor-data-room/references/termsheet-template.md +1 -1
- package/payload/premium-plugins/venture-studio/skills/investor-data-room/templates/prospectus/index.html +1565 -0
- package/payload/premium-plugins/venture-studio/skills/investor-data-room/templates/prospectus/render-pdf.mjs +91 -0
- package/payload/premium-plugins/venture-studio/skills/investor-data-room/templates/prospectus/term_sheet.html +715 -0
- package/payload/premium-plugins/venture-studio/skills/office-hours/SKILL.md +588 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/SKILL.md +332 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/aarrr-metrics.md +275 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/assumption-testing.md +93 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/boolean-search.md +308 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/build-measure-learn.md +262 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/business-model-canvas.md +171 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/commitment-signals.md +246 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/design-thinking.md +183 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/earlyvangelist.md +190 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/first-principles.md +58 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/fishbone.md +114 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/five-whys.md +43 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/ice-scoring.md +237 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/innovation-accounting.md +290 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/jtbd.md +105 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/landing-page.md +361 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/market-type.md +167 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/mom-test.md +193 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/mvp-types.md +200 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/og-images.md +239 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/pareto.md +103 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/persona-development.md +291 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/pivot-types.md +225 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/positioning-statement.md +179 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/prd.md +363 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/pre-mortem.md +74 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/problem-validation.md +253 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/product-market-fit.md +256 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/research-synthesis.md +276 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/three-engines-of-growth.md +248 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/validation-tests.md +89 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/value-proposition-canvas.md +121 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/win-loss-analysis.md +242 -0
- package/payload/premium-plugins/venture-studio/skills/zero-to-prototype/references/workflow-mapping.md +271 -0
- package/payload/server/{chunk-BVDLDM6O.js → chunk-AGFS3TVN.js} +108 -3
- package/payload/server/maxy-edge.js +1 -1
- package/payload/server/server.js +7 -2
- package/payload/platform/plugins/founder-pack/.claude-plugin/plugin.json +0 -8
- package/payload/premium-plugins/founder-pack/.claude-plugin/plugin.json +0 -8
- /package/payload/platform/plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/business-plan-template.md +0 -0
- /package/payload/platform/plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/compliance-research-checklist.md +0 -0
- /package/payload/platform/plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/data-room-structure.md +0 -0
- /package/payload/platform/plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/deck-blueprint-template.md +0 -0
- /package/payload/platform/plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/design-tokens-application.md +0 -0
- /package/payload/platform/plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/internal-workings-scrub.md +0 -0
- /package/payload/premium-plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/business-plan-template.md +0 -0
- /package/payload/premium-plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/compliance-research-checklist.md +0 -0
- /package/payload/premium-plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/data-room-structure.md +0 -0
- /package/payload/premium-plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/deck-blueprint-template.md +0 -0
- /package/payload/premium-plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/design-tokens-application.md +0 -0
- /package/payload/premium-plugins/{founder-pack → venture-studio}/skills/investor-data-room/references/internal-workings-scrub.md +0 -0
|
@@ -2632,6 +2632,8 @@ import { resolve, join } from "path";
|
|
|
2632
2632
|
import { existsSync, readFileSync } from "fs";
|
|
2633
2633
|
var configDirName = ".maxy";
|
|
2634
2634
|
var commercialMode = false;
|
|
2635
|
+
var bundleMode = "none";
|
|
2636
|
+
var bundleAllowlist = [];
|
|
2635
2637
|
var vncDisplayNum = 99;
|
|
2636
2638
|
var rfbPortNum = 5900;
|
|
2637
2639
|
var websockifyPortNum = 6080;
|
|
@@ -2651,6 +2653,20 @@ if (platformRoot) {
|
|
|
2651
2653
|
}
|
|
2652
2654
|
if (typeof brand.configDir === "string") configDirName = brand.configDir;
|
|
2653
2655
|
if (brand.commercialMode === true) commercialMode = true;
|
|
2656
|
+
if (brand.shipsPremiumBundles === true) {
|
|
2657
|
+
bundleMode = "all";
|
|
2658
|
+
} else if (Array.isArray(brand.shipsPremiumBundles)) {
|
|
2659
|
+
const arr = brand.shipsPremiumBundles;
|
|
2660
|
+
for (const entry of arr) {
|
|
2661
|
+
if (typeof entry !== "string" || entry.length === 0) {
|
|
2662
|
+
throw new Error(
|
|
2663
|
+
`brand.json at ${brandPath} shipsPremiumBundles array contains invalid entry: ${JSON.stringify(entry)}`
|
|
2664
|
+
);
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
bundleMode = "allowlist";
|
|
2668
|
+
bundleAllowlist = arr;
|
|
2669
|
+
}
|
|
2654
2670
|
if (typeof brand.vncDisplay === "number") vncDisplayNum = brand.vncDisplay;
|
|
2655
2671
|
const brandLabel = configDirName.replace(/^\./, "");
|
|
2656
2672
|
const required = [
|
|
@@ -2674,6 +2690,8 @@ if (platformRoot) {
|
|
|
2674
2690
|
var MAXY_DIR = resolve(homedir(), configDirName);
|
|
2675
2691
|
var BRAND_NAME = configDirName.replace(/^\./, "");
|
|
2676
2692
|
var COMMERCIAL_MODE = commercialMode;
|
|
2693
|
+
var BUNDLE_MODE = bundleMode;
|
|
2694
|
+
var BUNDLE_ALLOWLIST = bundleAllowlist;
|
|
2677
2695
|
var VNC_DISPLAY = `:${vncDisplayNum}`;
|
|
2678
2696
|
var RFB_PORT = rfbPortNum;
|
|
2679
2697
|
var WEBSOCKIFY_PORT = websockifyPortNum;
|
|
@@ -3429,6 +3447,38 @@ if (!existsSync4(PLATFORM_ROOT2)) {
|
|
|
3429
3447
|
Set the MAXY_PLATFORM_ROOT environment variable to the absolute path of the platform directory.`
|
|
3430
3448
|
);
|
|
3431
3449
|
}
|
|
3450
|
+
var _stubDirsLoggedThisBoot = /* @__PURE__ */ new Set();
|
|
3451
|
+
function listValidAccounts() {
|
|
3452
|
+
if (!existsSync4(ACCOUNTS_DIR)) return [];
|
|
3453
|
+
const out = [];
|
|
3454
|
+
const entries = readdirSync(ACCOUNTS_DIR, { withFileTypes: true });
|
|
3455
|
+
for (const entry of entries) {
|
|
3456
|
+
if (!entry.isDirectory()) continue;
|
|
3457
|
+
if (entry.name.startsWith(".")) continue;
|
|
3458
|
+
const accountDir = resolve3(ACCOUNTS_DIR, entry.name);
|
|
3459
|
+
const configPath = resolve3(accountDir, "account.json");
|
|
3460
|
+
if (!existsSync4(configPath)) {
|
|
3461
|
+
if (!_stubDirsLoggedThisBoot.has(entry.name)) {
|
|
3462
|
+
console.error(
|
|
3463
|
+
`[platform] accounts-state STUB-DIR id=${entry.name} \u2014 onboarding leak; remove or repair`
|
|
3464
|
+
);
|
|
3465
|
+
_stubDirsLoggedThisBoot.add(entry.name);
|
|
3466
|
+
}
|
|
3467
|
+
continue;
|
|
3468
|
+
}
|
|
3469
|
+
let config;
|
|
3470
|
+
try {
|
|
3471
|
+
config = JSON.parse(readFileSync4(configPath, "utf-8"));
|
|
3472
|
+
} catch {
|
|
3473
|
+
console.error(
|
|
3474
|
+
`[platform] accounts-state CORRUPT-JSON id=${entry.name} \u2014 account.json failed to parse; treating as stub`
|
|
3475
|
+
);
|
|
3476
|
+
continue;
|
|
3477
|
+
}
|
|
3478
|
+
out.push({ accountId: config.accountId, accountDir, config });
|
|
3479
|
+
}
|
|
3480
|
+
return out;
|
|
3481
|
+
}
|
|
3432
3482
|
function resolveAccount() {
|
|
3433
3483
|
if (!existsSync4(ACCOUNTS_DIR)) return null;
|
|
3434
3484
|
let usersJsonUserId = null;
|
|
@@ -3622,7 +3672,26 @@ function readBundleSubPlugins(bundlePath) {
|
|
|
3622
3672
|
return subs;
|
|
3623
3673
|
}
|
|
3624
3674
|
function walkPremiumBundles() {
|
|
3625
|
-
|
|
3675
|
+
const TAG = "[premium-auto-deliver]";
|
|
3676
|
+
if (BUNDLE_MODE === "none") {
|
|
3677
|
+
console.log(`${TAG} gate brand=${BRAND_NAME} mode=none bundles=[]`);
|
|
3678
|
+
return [];
|
|
3679
|
+
}
|
|
3680
|
+
const onDisk = walkPremiumBundlesOnDisk();
|
|
3681
|
+
if (BUNDLE_MODE === "all") {
|
|
3682
|
+
console.log(`${TAG} gate brand=${BRAND_NAME} mode=all bundles=[${onDisk.map((b) => b.bundle).join(",")}]`);
|
|
3683
|
+
return onDisk;
|
|
3684
|
+
}
|
|
3685
|
+
const allow = new Set(BUNDLE_ALLOWLIST);
|
|
3686
|
+
const kept = onDisk.filter((b) => allow.has(b.bundle));
|
|
3687
|
+
const onDiskNames = new Set(onDisk.map((b) => b.bundle));
|
|
3688
|
+
const missing = BUNDLE_ALLOWLIST.filter((name) => !onDiskNames.has(name));
|
|
3689
|
+
console.log(
|
|
3690
|
+
`${TAG} gate brand=${BRAND_NAME} mode=allowlist bundles=[${kept.map((b) => b.bundle).join(",")}]` + (missing.length > 0 ? ` missing=[${missing.join(",")}]` : "")
|
|
3691
|
+
);
|
|
3692
|
+
return kept;
|
|
3693
|
+
}
|
|
3694
|
+
function walkPremiumBundlesOnDisk() {
|
|
3626
3695
|
const stagingRoot = resolve4(PLATFORM_ROOT2, "../premium-plugins");
|
|
3627
3696
|
if (!existsSync5(stagingRoot)) return [];
|
|
3628
3697
|
let entries;
|
|
@@ -3695,7 +3764,7 @@ function autoDeliverPremiumPlugins() {
|
|
|
3695
3764
|
}
|
|
3696
3765
|
}
|
|
3697
3766
|
}
|
|
3698
|
-
function reconcileEnabledPlugins(accountDir, config) {
|
|
3767
|
+
function reconcileEnabledPlugins(accountDir, config, accountId) {
|
|
3699
3768
|
const TAG = "[premium-auto-deliver]";
|
|
3700
3769
|
if (!accountDir || !config) return;
|
|
3701
3770
|
const bundles = walkPremiumBundles();
|
|
@@ -3721,7 +3790,9 @@ function reconcileEnabledPlugins(accountDir, config) {
|
|
|
3721
3790
|
currentSet.add(sub);
|
|
3722
3791
|
added.push(sub);
|
|
3723
3792
|
}
|
|
3724
|
-
console.log(
|
|
3793
|
+
console.log(
|
|
3794
|
+
`${TAG} stamp accountId=${accountId ?? "unknown"} brand=${BRAND_NAME} mode=${BUNDLE_MODE} bundles=[${bundleNames.join(",")}] added=[${added.join(",")}]`
|
|
3795
|
+
);
|
|
3725
3796
|
if (added.length === 0) return;
|
|
3726
3797
|
const merged = [...currentSet];
|
|
3727
3798
|
const configPath = resolve4(accountDir, "account.json");
|
|
@@ -3735,6 +3806,38 @@ function reconcileEnabledPlugins(accountDir, config) {
|
|
|
3735
3806
|
console.error(`${TAG} enabled-stamp write failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
3736
3807
|
}
|
|
3737
3808
|
}
|
|
3809
|
+
function cleanupLeakedPremiumSubs(accountDir, config, accountId) {
|
|
3810
|
+
const TAG = "[premium-auto-deliver]";
|
|
3811
|
+
if (!accountDir || !config) return;
|
|
3812
|
+
if (BUNDLE_MODE === "all") return;
|
|
3813
|
+
const current = Array.isArray(config.enabledPlugins) ? config.enabledPlugins : [];
|
|
3814
|
+
if (current.length === 0) return;
|
|
3815
|
+
const allow = new Set(BUNDLE_ALLOWLIST);
|
|
3816
|
+
const leakedNames = /* @__PURE__ */ new Set();
|
|
3817
|
+
for (const { bundle, subs } of walkPremiumBundlesOnDisk()) {
|
|
3818
|
+
if (BUNDLE_MODE === "allowlist" && allow.has(bundle)) continue;
|
|
3819
|
+
for (const sub of subs) leakedNames.add(sub);
|
|
3820
|
+
}
|
|
3821
|
+
if (leakedNames.size === 0) return;
|
|
3822
|
+
const removed = [];
|
|
3823
|
+
const kept = [];
|
|
3824
|
+
for (const name of current) {
|
|
3825
|
+
if (leakedNames.has(name)) removed.push(name);
|
|
3826
|
+
else kept.push(name);
|
|
3827
|
+
}
|
|
3828
|
+
if (removed.length === 0) return;
|
|
3829
|
+
const configPath = resolve4(accountDir, "account.json");
|
|
3830
|
+
try {
|
|
3831
|
+
const raw2 = readFileSync5(configPath, "utf-8");
|
|
3832
|
+
const parsed = JSON.parse(raw2);
|
|
3833
|
+
parsed.enabledPlugins = kept;
|
|
3834
|
+
writeFileSync2(configPath, JSON.stringify(parsed, null, 2) + "\n");
|
|
3835
|
+
config.enabledPlugins = kept;
|
|
3836
|
+
console.log(`${TAG} cleanup accountId=${accountId ?? "unknown"} removed=[${removed.join(",")}]`);
|
|
3837
|
+
} catch (err) {
|
|
3838
|
+
console.error(`${TAG} cleanup write failed accountId=${accountId ?? "unknown"}: ${err instanceof Error ? err.message : String(err)}`);
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3738
3841
|
|
|
3739
3842
|
// app/lib/claude-agent/logging.ts
|
|
3740
3843
|
var emitMissingOnResolve = (..._args) => null;
|
|
@@ -4414,6 +4517,7 @@ export {
|
|
|
4414
4517
|
parseCookieValue,
|
|
4415
4518
|
PLATFORM_ROOT2 as PLATFORM_ROOT,
|
|
4416
4519
|
ACCOUNTS_DIR,
|
|
4520
|
+
listValidAccounts,
|
|
4417
4521
|
resolveAccount,
|
|
4418
4522
|
resolveUserAccounts,
|
|
4419
4523
|
fingerprintSessionKey,
|
|
@@ -4432,6 +4536,7 @@ export {
|
|
|
4432
4536
|
walkPremiumBundles,
|
|
4433
4537
|
autoDeliverPremiumPlugins,
|
|
4434
4538
|
reconcileEnabledPlugins,
|
|
4539
|
+
cleanupLeakedPremiumSubs,
|
|
4435
4540
|
emitMissingOnResolve,
|
|
4436
4541
|
stripAttachmentMetaSuffix,
|
|
4437
4542
|
requirePortEnv,
|
package/payload/server/server.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
browserViewerLog,
|
|
19
19
|
canAccessAdmin,
|
|
20
20
|
checkRateLimit,
|
|
21
|
+
cleanupLeakedPremiumSubs,
|
|
21
22
|
clearRateLimit,
|
|
22
23
|
clientIpMiddleware,
|
|
23
24
|
createRemoteSession,
|
|
@@ -35,6 +36,7 @@ import {
|
|
|
35
36
|
isPasswordValid,
|
|
36
37
|
isRemoteAuthConfigured,
|
|
37
38
|
launchAction,
|
|
39
|
+
listValidAccounts,
|
|
38
40
|
reconcileEnabledPlugins,
|
|
39
41
|
recordFailedAttempt,
|
|
40
42
|
registerSession,
|
|
@@ -59,7 +61,7 @@ import {
|
|
|
59
61
|
vncLog,
|
|
60
62
|
waitForExit,
|
|
61
63
|
walkPremiumBundles
|
|
62
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-AGFS3TVN.js";
|
|
63
65
|
import {
|
|
64
66
|
CLOUDFLARE_TASK_DIAGNOSTICS,
|
|
65
67
|
appendCloudflareSteps,
|
|
@@ -14367,7 +14369,10 @@ var bootEntitlement = bootAccountConfig ? resolveEntitlement(
|
|
|
14367
14369
|
}
|
|
14368
14370
|
) : null;
|
|
14369
14371
|
autoDeliverPremiumPlugins();
|
|
14370
|
-
reconcileEnabledPlugins(bootAccount?.accountDir, bootAccount?.config);
|
|
14372
|
+
reconcileEnabledPlugins(bootAccount?.accountDir, bootAccount?.config, bootAccount?.accountId);
|
|
14373
|
+
for (const acct of listValidAccounts()) {
|
|
14374
|
+
cleanupLeakedPremiumSubs(acct.accountDir, acct.config, acct.accountId);
|
|
14375
|
+
}
|
|
14371
14376
|
(async () => {
|
|
14372
14377
|
if (!bootAccount) return;
|
|
14373
14378
|
try {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|