@crvouga/mockingbird-service-formbricks 3.5.0 → 3.7.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # Changelog — @crvouga/mockingbird-service-formbricks
2
2
 
3
- ## 3.5.0 (2026-10-16)
3
+ ## 3.7.0 (2026-10-19)
4
+
5
+ ### Features
6
+
7
+ - resolve the agent-reported issue queue in one batch ([25c52b6](https://github.com/crvouga/mockingbird/commit/25c52b668a53ddb80b968419601a20abf33f956b))
8
+
9
+ ## 3.6.0 (2026-10-16)
10
+
11
+ ### Features
12
+
13
+ - resolve fleet and emulator issue batch ([26d2f8c](https://github.com/crvouga/mockingbird/commit/26d2f8cee99fefed93192204bac44fb1be35c1da))
14
+
15
+ ## 3.5.0 (2026-10-15)
4
16
 
5
17
  ### Features
6
18
 
package/README.md CHANGED
@@ -36,6 +36,25 @@ npx mockingbird-formbricks serve --port 8813 \
36
36
  --webhook-secret "whsec_…"
37
37
  ```
38
38
 
39
+ Boot it with your own settings and surveys, without a wrapper process or a `PUT` after boot:
40
+
41
+ ```bash
42
+ npx mockingbird-formbricks serve \
43
+ --settings '{"workspaces": ["cworkspace000000000000002"], "legacyEnvironmentIds": {"cenvironment0000000000002": "cworkspace000000000000002"}}' \
44
+ --surveys ./surveys.json
45
+ ```
46
+
47
+ `--settings <json|file>` (or `MOCKINGBIRD_SETTINGS`, or a fleet entry's `settings`) takes the
48
+ fields of `GET|PUT /__admin/settings`, checked with their types (a misspelled key is an error). They
49
+ are every namespace's defaults, a reset returns to them, and a field you give replaces the
50
+ built-in value whole (give `legacyEnvironmentIds` and the default environment alias is gone).
51
+ `--workspace-id` adds to the booted `workspaces`. `--surveys <file>` (a list, or `{surveys: [...]}`)
52
+ adds your surveys after the corpus ones for every namespace, and they survive a reset. A survey
53
+ whose id the corpus (or an earlier row) already has is skipped, a survey with no `workspaceId` is served by
54
+ every configured workspace, and `type`, `status` and a legacy `environmentId` are handled as
55
+ `PUT /__admin/surveys` handles them. `--surveys-mode replace` uses the file as the whole corpus.
56
+ In a fleet, set `options: {"surveys": "surveys.json"}`.
57
+
39
58
  ```ts
40
59
  import { WORKSPACE_ID } from "@crvouga/mockingbird-service-formbricks"
41
60
  import { createServer } from "@crvouga/mockingbird-service-formbricks/server"
@@ -135,7 +154,7 @@ string), `management_unauthorized`, `connection_drop`, `duplicate` (the next web
135
154
  | Export | Kind | Description |
136
155
  | --- | --- | --- |
137
156
  | `FormbricksAPI` | class | The in-process emulator: `fetch(request)`, `reset()`, `responses()`, `render(record)`, `wireSurvey(survey)`, `pipeline(event, record, survey)`, `state`. Options: `sqlite`, `now`, `namespace`, `surveys`, `settings`, `onWebhook`. |
138
- | `createRuntime` | function | The emulator with the full service contract (health, admin, namespaces, credentials, presets, webhooks). Options: `webhooks: {url, secret?, events?, retryDelaysMs?, fetch?}`, `surveys`, `settings`, `clock`, `seed`, `adminKey`, `onLog`, `sqlite`. |
157
+ | `createRuntime` | function | The emulator with the full service contract (health, admin, namespaces, credentials, presets, webhooks). Options: `webhooks: {url, secret?, events?, retryDelaysMs?, fetch?}`, `surveys` (replaces the corpus; `serve --surveys` appends), `settings`, `clock`, `seed`, `adminKey`, `onLog`, `sqlite`. |
139
158
  | `FORMBRICKS_PRESETS` | object | Every named fault preset. |
140
159
  | `FORMBRICKS_NAMESPACE` | string | The service name, `"formbricks"`. |
141
160
  | `WEBHOOK_PATH` | string | A conventional receiver path for examples, `/webhooks/formbricks`. |