backend-manager 5.9.7 → 5.9.9
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/package.json +5 -3
- package/src/cli/commands/setup-tests/bem-config.js +3 -2
- package/src/cli/commands/setup-tests/helpers.js +5 -0
- package/src/cli/commands/setup-tests/project-id-consistency.js +2 -1
- package/src/test/fixtures/firebase-project/.temp/test-mode.json +1 -1
- package/src/test/fixtures/firebase-project/database-debug.log +8 -8
- package/src/test/fixtures/firebase-project/firestore-debug.log +57 -55
- package/src/test/fixtures/firebase-project/pubsub-debug.log +3 -3
- package/templates/_.env +42 -0
- package/templates/_.gitignore +60 -0
- package/templates/backend-manager-config.json +249 -0
- package/templates/database.rules.json +83 -0
- package/templates/firebase.json +66 -0
- package/templates/firestore.indexes.json +4 -0
- package/templates/firestore.rules +112 -0
- package/templates/public/404.html +26 -0
- package/templates/public/index.html +24 -0
- package/templates/remoteconfig.template.json +1 -0
- package/templates/storage-lifecycle-config-1-day.json +9 -0
- package/templates/storage-lifecycle-config-30-days.json +9 -0
- package/templates/storage.rules +8 -0
- package/test/_init/accounts-validation.js +58 -0
- package/test/_legacy/ai/index.js +231 -0
- package/test/_legacy/ai/test.jpg +0 -0
- package/test/_legacy/ai/test.pdf +0 -0
- package/test/_legacy/index.js +31 -0
- package/test/_legacy/payment-resolver/chargebee/orders/refunded.json +0 -0
- package/test/_legacy/payment-resolver/chargebee/orders/unpaid.json +98 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/active.json +578 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-in-trial.json +38 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-skipped-to-active.json +135 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-active-to-cancelled.json +42 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-active.json +44 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-cancelled.json +39 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-refund.json +143 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-suspended.json +48 -0
- package/test/_legacy/payment-resolver/coinbase/orders/regular.json +204 -0
- package/test/_legacy/payment-resolver/coinbase/subscriptions/cancelled.json +204 -0
- package/test/_legacy/payment-resolver/coinbase/subscriptions/paid-2.json +125 -0
- package/test/_legacy/payment-resolver/index.js +1558 -0
- package/test/_legacy/payment-resolver/paypal/orders/refunded.json +0 -0
- package/test/_legacy/payment-resolver/paypal/orders/regular.json +120 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/active-refund-previous-stmnt.json +323 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/active.json +192 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-in-trial.json +125 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-payment-not-complete.json +76 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-payment-overdue-2.json +114 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-payment-overdue.json +114 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-active-to-cancelled.json +111 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-active.json +132 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-cancelled.json +107 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-expired.json +91 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-refund.json +147 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-suspended.json +120 -0
- package/test/_legacy/payment-resolver/stripe/orders/refunded.json +0 -0
- package/test/_legacy/payment-resolver/stripe/orders/regular.json +91 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/active.json +421 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-in-trial.json +349 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-active-failed-authorization.json +430 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-active.json +319 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-cancelled.json +319 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-refund.json +414 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-suspended.json +319 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/unsure.json +339 -0
- package/test/_legacy/test-new +1178 -0
- package/test/_legacy/test.md +89 -0
- package/test/_legacy/usage.js +175 -0
- package/test/_legacy/user.js +31 -0
- package/test/ai/tools-live.js +170 -0
- package/test/boot/emulator-boots.js +37 -0
- package/test/content/blog-generate.js +160 -0
- package/test/email/campaign-send.js +45 -0
- package/test/email/consent-lifecycle.js +257 -0
- package/test/email/feedback-and-plain-send.js +52 -0
- package/test/email/fixtures/clean.json +30 -0
- package/test/email/fixtures/editorial.json +30 -0
- package/test/email/fixtures/field-report.json +53 -0
- package/test/email/marketing-lifecycle.js +132 -0
- package/test/email/newsletter-generate.js +819 -0
- package/test/email/newsletter-templates.js +491 -0
- package/test/email/templates.js +207 -0
- package/test/email/transactional-send.js +34 -0
- package/test/email/transactional.js +560 -0
- package/test/email/validation.js +710 -0
- package/test/events/auth-delete-race.js +201 -0
- package/test/events/payments/journey-payments-cancel-endpoint.js +100 -0
- package/test/events/payments/journey-payments-cancel.js +182 -0
- package/test/events/payments/journey-payments-discount.js +89 -0
- package/test/events/payments/journey-payments-failure.js +146 -0
- package/test/events/payments/journey-payments-legacy-product.js +149 -0
- package/test/events/payments/journey-payments-one-time-failure.js +111 -0
- package/test/events/payments/journey-payments-one-time.js +136 -0
- package/test/events/payments/journey-payments-plan-change.js +144 -0
- package/test/events/payments/journey-payments-refund-webhook.js +180 -0
- package/test/events/payments/journey-payments-suspend.js +181 -0
- package/test/events/payments/journey-payments-trial-cancel.js +130 -0
- package/test/events/payments/journey-payments-trial.js +171 -0
- package/test/events/payments/journey-payments-uid-resolution.js +132 -0
- package/test/events/payments/journey-payments-upgrade.js +135 -0
- package/test/fixtures/chargebee/invoice-one-time.json +27 -0
- package/test/fixtures/chargebee/subscription-active.json +44 -0
- package/test/fixtures/chargebee/subscription-cancelled.json +42 -0
- package/test/fixtures/chargebee/subscription-in-trial.json +41 -0
- package/test/fixtures/chargebee/subscription-legacy-plan.json +41 -0
- package/test/fixtures/chargebee/subscription-non-renewing.json +41 -0
- package/test/fixtures/chargebee/subscription-paused.json +42 -0
- package/test/fixtures/chargebee/webhook-payment-failed.json +51 -0
- package/test/fixtures/chargebee/webhook-subscription-created.json +47 -0
- package/test/fixtures/paypal/order-approved.json +62 -0
- package/test/fixtures/paypal/order-completed.json +110 -0
- package/test/fixtures/paypal/subscription-active.json +76 -0
- package/test/fixtures/paypal/subscription-cancelled.json +50 -0
- package/test/fixtures/paypal/subscription-suspended.json +65 -0
- package/test/fixtures/stripe/checkout-session-completed.json +130 -0
- package/test/fixtures/stripe/invoice-payment-failed.json +148 -0
- package/test/fixtures/stripe/invoice-subscription-payment-failed.json +28 -0
- package/test/fixtures/stripe/subscription-active.json +161 -0
- package/test/fixtures/stripe/subscription-canceled.json +161 -0
- package/test/fixtures/stripe/subscription-trialing.json +161 -0
- package/test/functions/admin/database-read.js +134 -0
- package/test/functions/admin/database-write.js +159 -0
- package/test/functions/admin/edit-post.js +366 -0
- package/test/functions/admin/firestore-query.js +207 -0
- package/test/functions/admin/firestore-read.js +129 -0
- package/test/functions/admin/firestore-write.js +105 -0
- package/test/functions/admin/get-stats.js +115 -0
- package/test/functions/admin/send-email.js +119 -0
- package/test/functions/admin/send-notification.js +208 -0
- package/test/functions/admin/write-repo-content.js +223 -0
- package/test/functions/general/add-marketing-contact.js +335 -0
- package/test/functions/general/fetch-post.js +54 -0
- package/test/functions/general/generate-uuid.js +114 -0
- package/test/functions/test/authenticate.js +64 -0
- package/test/functions/user/create-custom-token.js +73 -0
- package/test/functions/user/delete.js +135 -0
- package/test/functions/user/get-active-sessions.js +111 -0
- package/test/functions/user/get-subscription-info.js +99 -0
- package/test/functions/user/regenerate-api-keys.js +156 -0
- package/test/functions/user/resolve.js +52 -0
- package/test/functions/user/sign-out-all-sessions.js +94 -0
- package/test/functions/user/sign-up.js +252 -0
- package/test/functions/user/submit-feedback.js +104 -0
- package/test/functions/user/validate-settings.js +82 -0
- package/test/helpers/ai-request-payload.js +300 -0
- package/test/helpers/ai-test-provider.js +202 -0
- package/test/helpers/ai-tools-format.js +383 -0
- package/test/helpers/content/blog-auto-publisher.js +484 -0
- package/test/helpers/content/feed-parser.js +528 -0
- package/test/helpers/content/ghostii-blocks.js +134 -0
- package/test/helpers/content/ghostii-feed-integration.js +404 -0
- package/test/helpers/content/ghostii-write-article.js +243 -0
- package/test/helpers/environment.js +230 -0
- package/test/helpers/infer-contact.js +113 -0
- package/test/helpers/merge-line-files.js +271 -0
- package/test/helpers/payment/chargebee/parse-webhook.js +413 -0
- package/test/helpers/payment/chargebee/to-unified-one-time.js +147 -0
- package/test/helpers/payment/chargebee/to-unified-subscription.js +648 -0
- package/test/helpers/payment/paypal/parse-webhook.js +539 -0
- package/test/helpers/payment/paypal/to-unified-one-time.js +382 -0
- package/test/helpers/payment/paypal/to-unified-subscription.js +820 -0
- package/test/helpers/payment/stripe/parse-webhook.js +447 -0
- package/test/helpers/payment/stripe/to-unified-one-time.js +306 -0
- package/test/helpers/payment/stripe/to-unified-subscription.js +708 -0
- package/test/helpers/sanitize.js +222 -0
- package/test/helpers/slugify.js +394 -0
- package/test/helpers/storage.js +194 -0
- package/test/helpers/user.js +755 -0
- package/test/helpers/webhook-forward.js +418 -0
- package/test/mcp/discovery.js +53 -0
- package/test/mcp/oauth.js +161 -0
- package/test/mcp/protocol.js +268 -0
- package/test/mcp/roles.js +188 -0
- package/test/mcp/utils.js +245 -0
- package/test/routes/admin/create-post.js +364 -0
- package/test/routes/admin/database.js +131 -0
- package/test/routes/admin/deduplicate-image-alts.js +190 -0
- package/test/routes/admin/email.js +114 -0
- package/test/routes/admin/firestore-query.js +204 -0
- package/test/routes/admin/firestore.js +127 -0
- package/test/routes/admin/infer-contact.js +218 -0
- package/test/routes/admin/notification.js +198 -0
- package/test/routes/admin/post-resize-image.js +184 -0
- package/test/routes/admin/post.js +368 -0
- package/test/routes/admin/repo-content.js +223 -0
- package/test/routes/admin/stats.js +112 -0
- package/test/routes/content/post.js +54 -0
- package/test/routes/general/uuid.js +115 -0
- package/test/routes/marketing/campaign.js +125 -0
- package/test/routes/marketing/contact.js +370 -0
- package/test/routes/marketing/email-preferences.js +292 -0
- package/test/routes/marketing/push-send.js +32 -0
- package/test/routes/marketing/webhook-forward.js +61 -0
- package/test/routes/marketing/webhook.js +639 -0
- package/test/routes/payments/cancel.js +163 -0
- package/test/routes/payments/discount.js +80 -0
- package/test/routes/payments/dispute-alert.js +320 -0
- package/test/routes/payments/intent.js +336 -0
- package/test/routes/payments/portal.js +92 -0
- package/test/routes/payments/refund.js +179 -0
- package/test/routes/payments/trial-eligibility.js +71 -0
- package/test/routes/payments/webhook.js +107 -0
- package/test/routes/test/authenticate.js +59 -0
- package/test/routes/test/schema.js +554 -0
- package/test/routes/test/usage.js +342 -0
- package/test/routes/user/api-keys.js +156 -0
- package/test/routes/user/delete.js +136 -0
- package/test/routes/user/feedback.js +104 -0
- package/test/routes/user/sessions.js +199 -0
- package/test/routes/user/settings-validate.js +82 -0
- package/test/routes/user/signup.js +542 -0
- package/test/routes/user/subscription.js +99 -0
- package/test/routes/user/token.js +73 -0
- package/test/routes/user/user.js +157 -0
- package/test/rules/notifications.js +410 -0
- package/test/rules/payments-carts.js +371 -0
- package/test/rules/user.js +396 -0
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-manager",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.9",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"files": [
|
|
7
|
-
"src/",
|
|
8
|
-
"dist/",
|
|
9
7
|
"bin/",
|
|
8
|
+
"dist/",
|
|
10
9
|
"docs/",
|
|
10
|
+
"src/",
|
|
11
|
+
"templates/",
|
|
12
|
+
"test/",
|
|
11
13
|
"CLAUDE.md"
|
|
12
14
|
],
|
|
13
15
|
"bin": {
|
|
@@ -40,9 +40,10 @@ class BemConfigTest extends BaseTest {
|
|
|
40
40
|
async fix() {
|
|
41
41
|
const ui = require('../../utils/ui');
|
|
42
42
|
|
|
43
|
-
//
|
|
43
|
+
// Copy template if config doesn't exist or is empty
|
|
44
44
|
if (!this.context.hasContent(this.self.bemConfigJSON)) {
|
|
45
|
-
|
|
45
|
+
const templatePath = path.resolve(__dirname, '../../../../templates/backend-manager-config.json');
|
|
46
|
+
jetpack.copy(templatePath, `${this.self.firebaseProjectPath}/functions/backend-manager-config.json`, { overwrite: true });
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
// Collect the keys that are still missing (these are what the user must fill in).
|
|
@@ -9,6 +9,10 @@ function loadJSON(path) {
|
|
|
9
9
|
return JSON5.parse(contents);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
function saveJSON5(filePath, data) {
|
|
13
|
+
jetpack.write(filePath, JSON5.stringify(data, null, 2) + '\n');
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
function hasContent(object) {
|
|
13
17
|
return Object.keys(object).length > 0;
|
|
14
18
|
}
|
|
@@ -19,6 +23,7 @@ function isLocal(name) {
|
|
|
19
23
|
|
|
20
24
|
module.exports = {
|
|
21
25
|
loadJSON,
|
|
26
|
+
saveJSON5,
|
|
22
27
|
hasContent,
|
|
23
28
|
isLocal,
|
|
24
29
|
};
|
|
@@ -2,6 +2,7 @@ const BaseTest = require('./base-test');
|
|
|
2
2
|
const jetpack = require('fs-jetpack');
|
|
3
3
|
const JSON5 = require('json5');
|
|
4
4
|
const chalk = require('chalk').default;
|
|
5
|
+
const helpers = require('./helpers');
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Ensures projectId is consistent across all configuration files:
|
|
@@ -142,7 +143,7 @@ class ProjectIdConsistencyTest extends BaseTest {
|
|
|
142
143
|
bemConfigData.firebaseConfig = bemConfigData.firebaseConfig || {};
|
|
143
144
|
bemConfigData.firebaseConfig.projectId = expectedProjectId;
|
|
144
145
|
|
|
145
|
-
|
|
146
|
+
helpers.saveJSON5(bemConfigPath, bemConfigData);
|
|
146
147
|
console.log(chalk.green(`Fixed: backend-manager-config.json → firebaseConfig.projectId = ${expectedProjectId}`));
|
|
147
148
|
}
|
|
148
149
|
|
|
@@ -2,11 +2,11 @@ WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
|
2
2
|
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by akka.util.Unsafe (file:/Users/ian/.cache/firebase/emulators/firebase-database-emulator-v4.11.2.jar)
|
|
3
3
|
WARNING: Please consider reporting this to the maintainers of class akka.util.Unsafe
|
|
4
4
|
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
21:48:49.365 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
|
|
6
|
+
21:48:49.461 [main] INFO com.firebase.server.forge.App$ - Listening at 127.0.0.1:9000
|
|
7
|
+
21:48:59.683 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO com.firebase.core.namespace.NamespaceActor - demo-backend-manager-default-rtdb successfully activated FBKV (SurveyIdle(0)) wait: 76ms, init: 0ms
|
|
8
|
+
21:48:59.719 [NamespaceSystem-blocking-namespace-operation-dispatcher-6] INFO com.firebase.core.namespace.StateManager - Namespace demo-backend-manager-default-rtdb status Active to Active
|
|
9
|
+
21:49:11.203 [Thread-0] INFO com.firebase.server.forge.App$ - Attempting graceful shutdown.
|
|
10
|
+
21:49:11.207 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO com.firebase.core.namespace.Terminator$Terminator - 1 actors left to terminate: demo-backend-manager-default-rtdb
|
|
11
|
+
21:49:11.211 [NamespaceSystem-akka.actor.default-dispatcher-5] INFO com.firebase.core.namespace.NamespaceActor - stopped namespace actor for demo-backend-manager-default-rtdb
|
|
12
|
+
21:49:11.214 [Thread-0] INFO com.firebase.server.forge.App$ - Graceful shutdown complete.
|
|
@@ -2,7 +2,7 @@ WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
|
2
2
|
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/Users/ian/.cache/firebase/emulators/cloud-firestore-emulator-v1.21.0.jar)
|
|
3
3
|
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
|
|
4
4
|
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
|
|
5
|
-
Jun
|
|
5
|
+
Jun 25, 2026 9:48:48 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
|
|
6
6
|
INFO: Started WebSocket server on ws://127.0.0.1:9150
|
|
7
7
|
|
|
8
8
|
API endpoint: http://127.0.0.1:8080
|
|
@@ -20,113 +20,115 @@ If you are running a Firestore in Datastore Mode project, run:
|
|
|
20
20
|
Note: Support for Datastore Mode is in preview. If you encounter any bugs please file at https://github.com/firebase/firebase-tools/issues.
|
|
21
21
|
Dev App Server is now running.
|
|
22
22
|
|
|
23
|
-
Jun
|
|
23
|
+
Jun 25, 2026 9:48:58 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
24
24
|
INFO: Detected non-HTTP/2 connection.
|
|
25
|
-
Jun
|
|
25
|
+
Jun 25, 2026 9:48:59 PM io.grpc.netty.TcpMetrics loadEpollInfo
|
|
26
26
|
INFO: Epoll available during static init of TcpMetrics:false
|
|
27
|
-
Jun
|
|
27
|
+
Jun 25, 2026 9:48:59 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
28
28
|
INFO: Detected HTTP/2 connection.
|
|
29
|
-
Jun
|
|
29
|
+
Jun 25, 2026 9:49:00 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
30
30
|
INFO: Detected HTTP/2 connection.
|
|
31
|
-
Jun
|
|
31
|
+
Jun 25, 2026 9:49:00 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
32
32
|
INFO: Detected HTTP/2 connection.
|
|
33
|
-
Jun
|
|
33
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
34
34
|
INFO: Detected HTTP/2 connection.
|
|
35
|
-
Jun
|
|
35
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
36
36
|
INFO: Detected HTTP/2 connection.
|
|
37
|
-
Jun
|
|
37
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
38
38
|
INFO: Detected HTTP/2 connection.
|
|
39
|
-
Jun
|
|
39
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
40
40
|
INFO: Detected HTTP/2 connection.
|
|
41
|
-
Jun
|
|
41
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
42
42
|
INFO: Detected HTTP/2 connection.
|
|
43
|
-
Jun
|
|
43
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
44
44
|
INFO: Detected HTTP/2 connection.
|
|
45
|
-
Jun
|
|
45
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
46
46
|
INFO: Detected HTTP/2 connection.
|
|
47
|
-
Jun
|
|
47
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
48
48
|
INFO: Detected HTTP/2 connection.
|
|
49
|
-
Jun
|
|
49
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
50
50
|
INFO: Detected HTTP/2 connection.
|
|
51
|
-
Jun
|
|
51
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
52
52
|
INFO: Detected HTTP/2 connection.
|
|
53
|
-
Jun
|
|
53
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
54
54
|
INFO: Detected HTTP/2 connection.
|
|
55
|
-
Jun
|
|
55
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
56
56
|
INFO: Detected HTTP/2 connection.
|
|
57
|
-
Jun
|
|
57
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
58
58
|
INFO: Detected HTTP/2 connection.
|
|
59
|
-
Jun
|
|
59
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
60
60
|
INFO: Detected HTTP/2 connection.
|
|
61
|
-
Jun
|
|
61
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
62
62
|
INFO: Detected HTTP/2 connection.
|
|
63
|
-
Jun
|
|
63
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
64
64
|
INFO: Detected HTTP/2 connection.
|
|
65
|
-
Jun
|
|
65
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
66
66
|
INFO: Detected HTTP/2 connection.
|
|
67
|
-
Jun
|
|
67
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
68
68
|
INFO: Detected HTTP/2 connection.
|
|
69
|
-
Jun
|
|
69
|
+
Jun 25, 2026 9:49:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
70
70
|
INFO: Detected HTTP/2 connection.
|
|
71
|
-
Jun
|
|
71
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
72
72
|
INFO: Detected HTTP/2 connection.
|
|
73
|
-
Jun
|
|
73
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
74
74
|
INFO: Detected HTTP/2 connection.
|
|
75
|
-
Jun
|
|
75
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
76
76
|
INFO: Detected HTTP/2 connection.
|
|
77
|
-
Jun
|
|
77
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
78
78
|
INFO: Detected HTTP/2 connection.
|
|
79
|
-
Jun
|
|
79
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
80
80
|
INFO: Detected HTTP/2 connection.
|
|
81
|
-
Jun
|
|
81
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
82
82
|
INFO: Detected HTTP/2 connection.
|
|
83
|
-
Jun
|
|
83
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
84
84
|
INFO: Detected HTTP/2 connection.
|
|
85
|
-
Jun
|
|
85
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
86
86
|
INFO: Detected HTTP/2 connection.
|
|
87
|
-
Jun
|
|
87
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
88
88
|
INFO: Detected HTTP/2 connection.
|
|
89
|
-
Jun
|
|
89
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
90
90
|
INFO: Detected HTTP/2 connection.
|
|
91
|
-
Jun
|
|
91
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
92
92
|
INFO: Detected HTTP/2 connection.
|
|
93
|
-
Jun
|
|
93
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
94
94
|
INFO: Detected HTTP/2 connection.
|
|
95
|
-
Jun
|
|
95
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
96
96
|
INFO: Detected HTTP/2 connection.
|
|
97
|
-
Jun
|
|
97
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
98
98
|
INFO: Detected HTTP/2 connection.
|
|
99
|
-
Jun
|
|
99
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
100
100
|
INFO: Detected HTTP/2 connection.
|
|
101
|
-
Jun
|
|
101
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
102
102
|
INFO: Detected HTTP/2 connection.
|
|
103
|
-
Jun
|
|
103
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
104
104
|
INFO: Detected HTTP/2 connection.
|
|
105
|
-
Jun
|
|
105
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
106
106
|
INFO: Detected HTTP/2 connection.
|
|
107
|
-
Jun
|
|
107
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
108
108
|
INFO: Detected HTTP/2 connection.
|
|
109
|
-
Jun
|
|
109
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
110
110
|
INFO: Detected HTTP/2 connection.
|
|
111
|
-
Jun
|
|
111
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
112
112
|
INFO: Detected HTTP/2 connection.
|
|
113
|
-
Jun
|
|
113
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
114
114
|
INFO: Detected HTTP/2 connection.
|
|
115
|
-
Jun
|
|
115
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
116
116
|
INFO: Detected HTTP/2 connection.
|
|
117
|
-
Jun
|
|
117
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
118
118
|
INFO: Detected HTTP/2 connection.
|
|
119
|
-
Jun
|
|
119
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
120
120
|
INFO: Detected HTTP/2 connection.
|
|
121
|
-
Jun
|
|
121
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
122
122
|
INFO: Detected HTTP/2 connection.
|
|
123
|
-
Jun
|
|
123
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
124
124
|
INFO: Detected HTTP/2 connection.
|
|
125
|
-
Jun
|
|
125
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
126
126
|
INFO: Detected HTTP/2 connection.
|
|
127
|
-
Jun
|
|
127
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
128
128
|
INFO: Detected HTTP/2 connection.
|
|
129
|
-
Jun
|
|
129
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
130
|
+
INFO: Detected HTTP/2 connection.
|
|
131
|
+
Jun 25, 2026 9:49:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
130
132
|
INFO: Detected HTTP/2 connection.
|
|
131
133
|
*** shutting down gRPC server since JVM is shutting down
|
|
132
134
|
*** server shut down
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
This is the Google Pub/Sub fake.
|
|
2
2
|
Implementation may be incomplete or differ from the real system.
|
|
3
|
-
Jun
|
|
3
|
+
Jun 25, 2026 9:48:52 PM com.google.cloud.pubsub.testing.v1.Main main
|
|
4
4
|
INFO: IAM integration is disabled. IAM policy methods and ACL checks are not supported
|
|
5
5
|
SLF4J(W): No SLF4J providers were found.
|
|
6
6
|
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
|
|
@@ -9,9 +9,9 @@ WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
|
9
9
|
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/Users/ian/.cache/firebase/emulators/pubsub-emulator-0.8.33/pubsub-emulator/lib/cloud-pubsub-emulator-0.8.33-all.jar)
|
|
10
10
|
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
|
|
11
11
|
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
|
|
12
|
-
Jun
|
|
12
|
+
Jun 25, 2026 9:48:53 PM com.google.cloud.pubsub.testing.v1.Main main
|
|
13
13
|
INFO: Server started, listening on 8085
|
|
14
|
-
Jun
|
|
14
|
+
Jun 25, 2026 9:48:59 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
15
15
|
INFO: Detected HTTP/2 connection.
|
|
16
16
|
*** shutting down gRPC server since JVM is shutting down
|
|
17
17
|
*** server shut down
|
package/templates/_.env
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# ========== Default Values ==========
|
|
2
|
+
# GitHub
|
|
3
|
+
GH_TOKEN=""
|
|
4
|
+
|
|
5
|
+
# Backend Manager
|
|
6
|
+
BACKEND_MANAGER_KEY=""
|
|
7
|
+
BACKEND_MANAGER_WEBHOOK_KEY=""
|
|
8
|
+
BACKEND_MANAGER_NAMESPACE=""
|
|
9
|
+
BACKEND_MANAGER_OPENAI_API_KEY=""
|
|
10
|
+
BACKEND_MANAGER_ANTHROPIC_API_KEY=""
|
|
11
|
+
|
|
12
|
+
# AI
|
|
13
|
+
OPENAI_API_KEY=""
|
|
14
|
+
ANTHROPIC_API_KEY=""
|
|
15
|
+
CLAUDE_CODE_OAUTH_TOKEN=""
|
|
16
|
+
|
|
17
|
+
# Payment Processors
|
|
18
|
+
PAYPAL_CLIENT_SECRET=""
|
|
19
|
+
STRIPE_SECRET_KEY=""
|
|
20
|
+
CHARGEBEE_API_KEY=""
|
|
21
|
+
COINBASE_API_KEY=""
|
|
22
|
+
|
|
23
|
+
# Analytics
|
|
24
|
+
GOOGLE_ANALYTICS_SECRET=""
|
|
25
|
+
META_ACCESS_TOKEN=""
|
|
26
|
+
TIKTOK_ACCESS_TOKEN=""
|
|
27
|
+
|
|
28
|
+
# Security
|
|
29
|
+
CLOUDFLARE_TOKEN=""
|
|
30
|
+
RECAPTCHA_SECRET_KEY=""
|
|
31
|
+
|
|
32
|
+
# Email & Newsletter
|
|
33
|
+
SENDGRID_API_KEY=""
|
|
34
|
+
BEEHIIV_API_KEY=""
|
|
35
|
+
NEVERBOUNCE_API_KEY=""
|
|
36
|
+
ZEROBOUNCE_API_KEY=""
|
|
37
|
+
UNSUBSCRIBE_HMAC_KEY=""
|
|
38
|
+
APOLLO_API_KEY=""
|
|
39
|
+
|
|
40
|
+
# ========== Custom Values ==========
|
|
41
|
+
# Add your custom environment variables below this line
|
|
42
|
+
# ...
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# ========== Default Values ==========
|
|
2
|
+
# macOS
|
|
3
|
+
.DS_Store
|
|
4
|
+
|
|
5
|
+
# Logs
|
|
6
|
+
logs
|
|
7
|
+
*.log
|
|
8
|
+
npm-debug.log*
|
|
9
|
+
yarn-debug.log*
|
|
10
|
+
yarn-error.log*
|
|
11
|
+
firebase-debug.log*
|
|
12
|
+
|
|
13
|
+
# Firebase cache
|
|
14
|
+
.firebase/
|
|
15
|
+
|
|
16
|
+
# Firebase config
|
|
17
|
+
.firebaserc
|
|
18
|
+
|
|
19
|
+
# Runtime data
|
|
20
|
+
pids
|
|
21
|
+
*.pid
|
|
22
|
+
*.seed
|
|
23
|
+
*.pid.lock
|
|
24
|
+
|
|
25
|
+
# Coverage directory
|
|
26
|
+
coverage
|
|
27
|
+
.nyc_output
|
|
28
|
+
|
|
29
|
+
# Dependency directories
|
|
30
|
+
node_modules/
|
|
31
|
+
|
|
32
|
+
# Optional npm cache directory
|
|
33
|
+
.npm
|
|
34
|
+
|
|
35
|
+
# Optional eslint cache
|
|
36
|
+
.eslintcache
|
|
37
|
+
|
|
38
|
+
# Output of 'npm pack'
|
|
39
|
+
*.tgz
|
|
40
|
+
|
|
41
|
+
# Yarn Integrity file
|
|
42
|
+
.yarn-integrity
|
|
43
|
+
|
|
44
|
+
# dotenv environment variables file
|
|
45
|
+
.env*
|
|
46
|
+
|
|
47
|
+
# BEM specific
|
|
48
|
+
.runtimeconfig.json
|
|
49
|
+
service-account*.json
|
|
50
|
+
bem-reload-trigger.js
|
|
51
|
+
.temp/
|
|
52
|
+
_legacy
|
|
53
|
+
|
|
54
|
+
# Root proxy (generated by setup)
|
|
55
|
+
/package.json
|
|
56
|
+
/package-lock.json
|
|
57
|
+
|
|
58
|
+
# ========== Custom Values ==========
|
|
59
|
+
# Add your custom ignore patterns below this line
|
|
60
|
+
# ...
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
{
|
|
2
|
+
parent: '', // 'self' = this BEM is the parent (newsletter-sources provider); a URL = external parent; '' = no parent
|
|
3
|
+
brand: {
|
|
4
|
+
id: 'my-app',
|
|
5
|
+
name: 'My Brand',
|
|
6
|
+
description: '',
|
|
7
|
+
url: 'https://example.com',
|
|
8
|
+
contact: {
|
|
9
|
+
email: 'support@example.com',
|
|
10
|
+
},
|
|
11
|
+
// Physical postal address — required by CAN-SPAM in commercial email footers.
|
|
12
|
+
// Rendered in the newsletter footer + transactional email footers.
|
|
13
|
+
// Structured so the renderer can format it consistently across locales
|
|
14
|
+
// and break onto multiple lines if needed. line2/region/postalCode are optional.
|
|
15
|
+
address: {
|
|
16
|
+
line1: '123 Main St',
|
|
17
|
+
line2: 'Suite 100',
|
|
18
|
+
city: 'City',
|
|
19
|
+
region: 'ST',
|
|
20
|
+
postalCode: '12345',
|
|
21
|
+
country: 'United States',
|
|
22
|
+
},
|
|
23
|
+
images: {
|
|
24
|
+
wordmark: 'https://example.com/wordmark.png',
|
|
25
|
+
brandmark: 'https://example.com/wordmark.png',
|
|
26
|
+
combomark: 'https://example.com/combomark.png',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
github: {
|
|
30
|
+
user: 'username',
|
|
31
|
+
repo_website: 'https://github.com/username/backend-manager',
|
|
32
|
+
},
|
|
33
|
+
parent: '', // URL of the parent BEM instance (e.g., 'https://api.itwcreativeworks.com') — used by newsletter generator to pull sources
|
|
34
|
+
sentry: {
|
|
35
|
+
dsn: 'https://d965557418748jd749d837asf00552f@o777489.ingest.sentry.io/8789941',
|
|
36
|
+
},
|
|
37
|
+
analytics: {
|
|
38
|
+
providers: {
|
|
39
|
+
google: {
|
|
40
|
+
id: null,
|
|
41
|
+
},
|
|
42
|
+
meta: {
|
|
43
|
+
id: null,
|
|
44
|
+
},
|
|
45
|
+
tiktok: {
|
|
46
|
+
id: null,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
oauth2: {},
|
|
51
|
+
payment: {
|
|
52
|
+
processors: {
|
|
53
|
+
stripe: {
|
|
54
|
+
publishableKey: null,
|
|
55
|
+
},
|
|
56
|
+
paypal: {
|
|
57
|
+
clientId: null,
|
|
58
|
+
},
|
|
59
|
+
chargebee: {
|
|
60
|
+
site: null,
|
|
61
|
+
},
|
|
62
|
+
coinbase: {
|
|
63
|
+
enabled: false,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
products: [
|
|
67
|
+
{
|
|
68
|
+
id: 'basic',
|
|
69
|
+
name: 'Basic',
|
|
70
|
+
type: 'subscription',
|
|
71
|
+
limits: {
|
|
72
|
+
requests: 100,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'premium',
|
|
77
|
+
name: 'Premium',
|
|
78
|
+
type: 'subscription',
|
|
79
|
+
limits: {
|
|
80
|
+
requests: 1000,
|
|
81
|
+
},
|
|
82
|
+
trial: {
|
|
83
|
+
days: 14,
|
|
84
|
+
},
|
|
85
|
+
prices: {
|
|
86
|
+
monthly: 4.99,
|
|
87
|
+
annually: 49.99,
|
|
88
|
+
},
|
|
89
|
+
stripe: {
|
|
90
|
+
productId: null,
|
|
91
|
+
},
|
|
92
|
+
paypal: {
|
|
93
|
+
productId: null,
|
|
94
|
+
},
|
|
95
|
+
chargebee: {
|
|
96
|
+
itemId: null,
|
|
97
|
+
legacyPlanIds: [],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'ultimate',
|
|
102
|
+
name: 'Ultimate',
|
|
103
|
+
type: 'subscription',
|
|
104
|
+
limits: {
|
|
105
|
+
requests: 10000,
|
|
106
|
+
},
|
|
107
|
+
prices: {
|
|
108
|
+
monthly: 19.99,
|
|
109
|
+
annually: 199.99,
|
|
110
|
+
},
|
|
111
|
+
stripe: {
|
|
112
|
+
productId: null,
|
|
113
|
+
},
|
|
114
|
+
paypal: {
|
|
115
|
+
productId: null,
|
|
116
|
+
},
|
|
117
|
+
chargebee: {
|
|
118
|
+
itemId: null,
|
|
119
|
+
legacyPlanIds: [],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 'credits-100',
|
|
124
|
+
name: '100 Credits',
|
|
125
|
+
type: 'one-time',
|
|
126
|
+
prices: {
|
|
127
|
+
once: 9.99,
|
|
128
|
+
},
|
|
129
|
+
stripe: {
|
|
130
|
+
productId: null,
|
|
131
|
+
},
|
|
132
|
+
chargebee: {
|
|
133
|
+
itemId: null,
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
// Add more products/tiers here
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
marketing: {
|
|
140
|
+
campaigns: {
|
|
141
|
+
enabled: true,
|
|
142
|
+
platform: 'sendgrid',
|
|
143
|
+
listId: '', // SendGrid Marketing list UUID. Populated by OMEGA's sendgrid/ensure/list.js. Skips runtime list-discovery API call.
|
|
144
|
+
},
|
|
145
|
+
newsletter: {
|
|
146
|
+
enabled: false,
|
|
147
|
+
platform: 'beehiiv',
|
|
148
|
+
publicationId: '', // Beehiiv publication ID (e.g., 'pub_xxxxx'). Populated by OMEGA's beehiiv/ensure/publication.js. Required for marketing sync to Beehiiv.
|
|
149
|
+
// Content: single object or array (matches blog config shape). Generator uses the first entry.
|
|
150
|
+
content: [
|
|
151
|
+
{
|
|
152
|
+
sources: ['$parent'], // '$parent' | '$feed:https://...' | '$brand'
|
|
153
|
+
categories: [], // e.g., ['social-media', 'marketing'] — topic constraints + AI categorization
|
|
154
|
+
links: [], // links to inject into generated content
|
|
155
|
+
instructions: '', // free-form text passed to the AI
|
|
156
|
+
tone: 'professional', // 'professional' | 'casual' | 'actionable' | 'witty' | etc.
|
|
157
|
+
keywords: [], // SEO keywords to weave in
|
|
158
|
+
template: 'clean', // 'clean' | 'editorial' | 'field-report' — layout template
|
|
159
|
+
article: {
|
|
160
|
+
enabled: false, // expand lead section into a full blog post via Ghostii
|
|
161
|
+
author: null,
|
|
162
|
+
},
|
|
163
|
+
theme: {
|
|
164
|
+
primaryColor: '#5B5BFF',
|
|
165
|
+
secondaryColor: '#1E1E2A',
|
|
166
|
+
accentColor: '#F6F7FB',
|
|
167
|
+
font: 'Inter, system-ui, sans-serif',
|
|
168
|
+
},
|
|
169
|
+
sponsorships: [],
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
prune: {
|
|
174
|
+
enabled: true,
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
firebaseConfig: {
|
|
178
|
+
apiKey: '123-456',
|
|
179
|
+
authDomain: 'PROJECT-ID.firebaseapp.com',
|
|
180
|
+
projectId: 'PROJECT-ID',
|
|
181
|
+
storageBucket: 'PROJECT-ID.appspot.com',
|
|
182
|
+
messagingSenderId: '123',
|
|
183
|
+
appId: '1:123:web:456',
|
|
184
|
+
measurementId: 'G-0123456789',
|
|
185
|
+
},
|
|
186
|
+
// Standalone blog auto-publisher (daily cron). OPT-IN: disabled by default.
|
|
187
|
+
// Set enabled: true and quantity >= 1 to auto-publish independent blog posts.
|
|
188
|
+
// For newsletter-linked articles, use marketing.newsletter.content.article.enabled instead.
|
|
189
|
+
//
|
|
190
|
+
// `platform` selects the article-generation provider (only 'ghostii' for now).
|
|
191
|
+
//
|
|
192
|
+
// Source types:
|
|
193
|
+
// '$brand' — generic brand-topic generation
|
|
194
|
+
// '$feed:https://example.com/feed' — RSS/Atom/JSON feed: pick one unprocessed article per run
|
|
195
|
+
// '$parent' — fetch sources from parent server's source pool (without claiming)
|
|
196
|
+
// 'https://example.com/page' — fetch URL content as prompt seed
|
|
197
|
+
// 'Write about topic X' — text: use directly as prompt seed
|
|
198
|
+
//
|
|
199
|
+
// All feed/parent sources are tracked in Firestore (`content-sources`) so the same
|
|
200
|
+
// article is never reprocessed. When a feed is unreachable or exhausted, falls back to $brand.
|
|
201
|
+
blog: {
|
|
202
|
+
enabled: false,
|
|
203
|
+
platform: 'ghostii',
|
|
204
|
+
content: [
|
|
205
|
+
{
|
|
206
|
+
sources: [ // '$brand' | '$feed:https://...' | '$parent'
|
|
207
|
+
'$brand',
|
|
208
|
+
// '$feed:https://techcrunch.com/feed/',
|
|
209
|
+
// '$parent',
|
|
210
|
+
],
|
|
211
|
+
categories: [], // topic constraints + output tags
|
|
212
|
+
links: [], // links to inject into generated content
|
|
213
|
+
instructions: '', // free-form text passed to the AI
|
|
214
|
+
tone: 'professional', // 'professional' | 'casual' | 'actionable' | 'witty' | etc.
|
|
215
|
+
keywords: [], // SEO keywords to weave in
|
|
216
|
+
quantity: 0, // number of articles to generate per run
|
|
217
|
+
chance: 1.0,
|
|
218
|
+
author: null,
|
|
219
|
+
postPath: 'ghostii', // defaults to platform name; sub-folder under _posts/{year}/
|
|
220
|
+
// Per-entry Ghostii API overrides (all optional, fall back to framework defaults)
|
|
221
|
+
overrides: {
|
|
222
|
+
// keywords: ['AI', 'technology'],
|
|
223
|
+
// length: 'long', // short | medium | long | comprehensive
|
|
224
|
+
// research: true, // web search for real external links
|
|
225
|
+
// insertImages: true, // section images from Unsplash
|
|
226
|
+
// headerImageUrl: 'unsplash', // disabled | unsplash | generate
|
|
227
|
+
// maxLinks: 6,
|
|
228
|
+
// sectionQuantity: 5,
|
|
229
|
+
// feedUrl: '', // brand blog feed for title dedup
|
|
230
|
+
},
|
|
231
|
+
// brand: 'other-app-id', // Optional: target a different brand
|
|
232
|
+
// brandUrl: 'https://api.otherapp.com', // Required if brand is set
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
reviews: {
|
|
237
|
+
enabled: true,
|
|
238
|
+
sites: [
|
|
239
|
+
'trustpilot.com',
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
dataRequest: {
|
|
243
|
+
// Additional queries to include in GDPR data exports
|
|
244
|
+
// BEM always exports: users, auth record, data-requests, payments-intents, payments-orders
|
|
245
|
+
// Single doc: { path: 'collection/{uid}', redact: ['field.to.redact'] }
|
|
246
|
+
// Collection query: { collection: 'my-data', where: [['ownerField', '==', '{uid}']] }
|
|
247
|
+
queries: [],
|
|
248
|
+
},
|
|
249
|
+
}
|