@rocapine/community 0.3.3 → 0.4.1

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/README.md CHANGED
@@ -13,7 +13,7 @@ version. The binary is named `community`.
13
13
  ## `init`
14
14
 
15
15
  ```bash
16
- npx @rocapine/community init [--modules core,push,polls,reaction,inbox] [--project-url <url>] [--anon-key <key>] [--dir supabase]
16
+ npx @rocapine/community init [--modules core,push,polls,reaction,inbox,translation] [--project-url <url>] [--anon-key <key>] [--dir supabase]
17
17
  ```
18
18
 
19
19
  Copies the migrations and Edge Functions for the requested modules into
@@ -21,13 +21,13 @@ Copies the migrations and Edge Functions for the requested modules into
21
21
  relative to the current directory), and writes a `community-sdk.json`
22
22
  manifest at the repo root recording what was installed.
23
23
 
24
- - `--modules` — comma-separated (`core,push,polls,reaction,inbox`). `core`
24
+ - `--modules` — comma-separated (`core,push,polls,reaction,inbox,translation`). `core`
25
25
  is always implied even if omitted. Omit the flag entirely to install every
26
26
  module. Regardless of the order you type them, modules are installed
27
- `core → push → polls → reaction → inbox` — this order is load-bearing:
27
+ `core → push → polls → reaction → inbox → translation` — this order is load-bearing:
28
28
  the inbox module's reaction trigger is guarded at install time and must
29
29
  find the reaction module's table already present, so reaction has to land
30
- first. Requesting `inbox` without `reaction` prints a (non-fatal) warning.
30
+ first. Requesting `inbox` without `reaction`, or `translation` without `polls`, prints a (non-fatal) warning (reactions missing from the inbox; poll labels left untranslated).
31
31
  - `--project-url` / `--anon-key` — needed only if a migration in the
32
32
  selected modules carries a placeholder (see "Placeholder guard" below).
33
33
  If omitted, the CLI tries to read the project URL from
package/lib/index.js CHANGED
@@ -60,7 +60,7 @@ program
60
60
  program
61
61
  .command("init")
62
62
  .description("Copy the community backend into a Supabase project: migrations, Edge Functions, and a community-sdk.json manifest")
63
- .option("--modules <modules>", "comma-separated module list (core,push,polls,reaction,inbox) — core is always implied; defaults to all modules")
63
+ .option("--modules <modules>", "comma-separated module list (core,push,polls,reaction,inbox,translation) — core is always implied; defaults to all modules")
64
64
  .option("--project-url <url>", "Supabase project URL, e.g. https://<ref>.supabase.co")
65
65
  .option("--anon-key <key>", "Supabase anon key")
66
66
  .option("--dir <dir>", "target Supabase directory, relative to the current directory", "supabase")
@@ -103,7 +103,7 @@ program
103
103
  .command("adopt")
104
104
  .description("Register an already-live community backend (e.g. an app that hand-rolled its own before this SDK existed) with community-sdk.json, without copying any files")
105
105
  .requiredOption("--schema-version <n>", "the community-sdk schema version this app's live backend corresponds to")
106
- .requiredOption("--modules <modules>", "comma-separated module list (core,push,polls,reaction,inbox) — core is always implied")
106
+ .requiredOption("--modules <modules>", "comma-separated module list (core,push,polls,reaction,inbox,translation) — core is always implied")
107
107
  .option("--dir <dir>", "Supabase directory this app would use, relative to the current directory", "supabase")
108
108
  .action(async (opts) => {
109
109
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocapine/community",
3
- "version": "0.3.3",
3
+ "version": "0.4.1",
4
4
  "description": "CLI to install, upgrade and adopt the Rocapine Community SDK's Supabase backend (migrations, Edge Functions) into a project.",
5
5
  "license": "MIT",
6
6
  "repository": {