@vibecloudtr/cli 0.0.2 → 0.1.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/ENVIRONMENT.md CHANGED
@@ -90,7 +90,6 @@ goes to real lengths to keep that same token at 0600 in a 0700 directory.
90
90
  Registration writes a URL; the editor authenticates against the authorization
91
91
  server it discovers from it.
92
92
 
93
-
94
93
  ## VIBECLOUD_ORG
95
94
 
96
95
  - Type: string (organisation **slug**, e.g. `acme` — not an opaque ID)
@@ -196,7 +195,7 @@ an RFC 8252 loopback redirect.
196
195
  the **deployment's** vocabulary while `oauth.Server.ValidateScopes` bounds the
197
196
  request by the **client's** registration, and the two need not agree: a client
198
197
  registered for `mcp:tools` alone is refused with `scope "mcp:db" is not
199
- permitted for this client` (measured 2026-08-15). Set this to the subset the
198
+ permitted for this client` (measured 2026-08-15). Set this to the subset the
200
199
  client is registered for. Leave it unset otherwise.
201
200
 
202
201
  ## BROWSER
package/README.md CHANGED
@@ -51,6 +51,7 @@ for public source repositories, and this one is private.
51
51
  `prepublishOnly` runs `make check` and `scripts/check-package.mjs` first and
52
52
  aborts the publish if either fails. `npm publish` tags the version `latest`,
53
53
  which is what `npx @vibecloudtr/cli` resolves to for everyone.
54
+
54
55
  5. **Verify, from any machine:**
55
56
 
56
57
  npm view @vibecloudtr/cli version dist-tags
@@ -188,6 +189,11 @@ asked for. An editor config it cannot write (a settings file with
188
189
  comments, a foreign entry under our key) is likewise reported and skipped.
189
190
  `--no-mcp` and `--no-deploy` skip those steps.
190
191
 
192
+ With no git remote, `init` creates an upload app instead: it packs the working
193
+ tree (`src/cli/upload/pack.ts`), PUTs the archive to the one-time URL from
194
+ `createSourceUpload`, and deploys it with `deployUpload`; the report's
195
+ `app.source` is `upload` (`git` otherwise).
196
+
191
197
  An App exists for every project; what `init` attaches is its **source**
192
198
  (`sourceRepo` null means connected to nothing), so a project that already has
193
199
  one is never re-attached. The deploy is followed by identity, not by phase
@@ -513,19 +519,19 @@ the running API with a genuine token, not assumed.
513
519
 
514
520
  ### What the commands do, and what they refuse
515
521
 
516
- | Command | Reads / writes |
517
- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
518
- | `vibe org`, `vibe team list` | `Query.orgs`, `Org.members` |
519
- | `vibe project list\|status\|create\|resize` | `Org.projects`, `projectBySlug`, `createProject`, `changePackage` |
520
- | `vibe usage` | `Org.projects`, `Project.usage`, `Project.caps` — org-scoped egress and build minutes printed once, nullable dimensions as `olculmedi` and never as 0 |
521
- | `vibe app list\|create\|config` | `Project.apps`, `createApp`, `setAppOutputMode` — every nullable field printed as its own "not yet" sentence; `firstLiveAt` is read, never derived from `phase`. `--output-mode static\|standalone` and `--output-dir <dir>` (static only) on `create` and `config` (VIBEC-478); omitted flags are not sent, so the server defaults apply (new app `STANDALONE`, directory `dist`). `config` reports acceptance only: if the app has been built before, the cell rebuilds the current commit with the new mode and the running version serves until that build is live; if it has never been built, nothing is rebuilt and the next `vibe deploy start` uses the new mode. Both cases are printed, since the API cannot tell which applies. An unreported mode prints as `bildirilmedi`, never as standalone |
522
- | `vibe db connect\|introspect\|security\|migrate` | `Project.endpoints.db`, `Project.schema`, `Project.rlsAdvisor`, `applyMigration` |
523
- | `vibe deploy start\|cancel\|rollback` | `deployApp`, `cancelBuild`, `rollbackApp`, `App.rollbackTargets` |
524
- | `vibe domain add\|verify\|list\|release` | `addDomain` (with `--app`, or the project's only app; prints the DCV CNAME **and** the routing record — CNAME to `<app>.vibeapp.tr` for a subdomain, A to the cell's apps address for an apex, VIBEC-373), `verifyDomain`, `Project.domains` (`routingRecord` per row), `removeDomain` |
525
- | `vibe branch create\|list\|extend\|delete` | `createBranch`, `Project.branches`, `extendBranch`, `deleteBranch` — a preview branch (VIBEC-72): its own database (shared pair on Luna/Terra/Sol, isolated instance on Pro), keys and `<slug>--<name>.api` hostname, TTL 3 d default / 5 d max from creation; `--mode clone` copies production rows and needs the org owner's toggle. `--branch <name>` on `deploy start`, `db migrate` and `db connect` targets it |
526
- | `vibe config set\|secret\|list\|unset` | `setAppConfig`, `App.config` — `config secret --scope BUILD\|RUNTIME` says where the secret is read: `BUILD` mounts it for `next build` only (a `DATABASE_URL` a prerendered page queries at build time, a Sentry token for sourcemap upload) and turns off cache mounts for that build; `RUNTIME` gives it to the running app only. Without `--scope` nothing is sent and the API's documented default applies: `RUNTIME`. Any other value is refused before the secret is read. `config set --value-from projectEndpoint:api\|projectSecret:anonKey` writes a platform-derived source instead of a literal (VIBEC-469); exactly one of `--value`, `--file`, `--value-from` |
527
- | `vibe backups` | `Project.backups`, `Project.caps` |
528
- | `vibe token list\|revoke` | `Query.tokens`, `revokeToken` |
522
+ | Command | Reads / writes |
523
+ | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
524
+ | `vibe org`, `vibe team list` | `Query.orgs`, `Org.members` |
525
+ | `vibe project list\|status\|create\|resize` | `Org.projects`, `projectBySlug`, `createProject`, `changePackage` |
526
+ | `vibe usage` | `Org.projects`, `Project.usage`, `Project.caps` — org-scoped egress and build minutes printed once, nullable dimensions as `olculmedi` and never as 0 |
527
+ | `vibe app list\|create\|config` | `Project.apps`, `createApp`, `setAppOutputMode` — every nullable field printed as its own "not yet" sentence; `firstLiveAt` is read, never derived from `phase`. `--output-mode static\|standalone` and `--output-dir <dir>` (static only) on `create` and `config` (VIBEC-478); omitted flags are not sent, so the server defaults apply (new app `STANDALONE`, directory `dist`). `config` reports acceptance only: if the app has been built before, the cell rebuilds the current commit with the new mode and the running version serves until that build is live; if it has never been built, nothing is rebuilt and the next `vibe deploy start` uses the new mode. Both cases are printed, since the API cannot tell which applies. An unreported mode prints as `bildirilmedi`, never as standalone |
528
+ | `vibe db connect\|introspect\|security\|migrate` | `Project.endpoints.db`, `Project.schema`, `Project.rlsAdvisor`, `applyMigration` |
529
+ | `vibe deploy start\|upload\|cancel\|rollback` | `deployApp`, `createSourceUpload` + `deployUpload` (`upload`: packs `--dir`, default `.`, and deploys an UPLOAD app, one with no git remote), `cancelBuild`, `rollbackApp`, `App.rollbackTargets` |
530
+ | `vibe domain add\|verify\|list\|release` | `addDomain` (with `--app`, or the project's only app; prints the DCV CNAME **and** the routing record — CNAME to `<app>.vibeapp.tr` for a subdomain, A to the cell's apps address for an apex, VIBEC-373), `verifyDomain`, `Project.domains` (`routingRecord` per row), `removeDomain` |
531
+ | `vibe branch create\|list\|extend\|delete` | `createBranch`, `Project.branches`, `extendBranch`, `deleteBranch` — a preview branch (VIBEC-72): its own database (shared pair on Luna/Terra/Sol, isolated instance on Pro), keys and `<slug>--<name>.api` hostname, TTL 3 d default / 5 d max from creation; `--mode clone` copies production rows and needs the org owner's toggle. `--branch <name>` on `deploy start`, `db migrate` and `db connect` targets it |
532
+ | `vibe config set\|secret\|list\|unset` | `setAppConfig`, `App.config` — `config secret --scope BUILD\|RUNTIME` says where the secret is read: `BUILD` mounts it for `next build` only (a `DATABASE_URL` a prerendered page queries at build time, a Sentry token for sourcemap upload) and turns off cache mounts for that build; `RUNTIME` gives it to the running app only. Without `--scope` nothing is sent and the API's documented default applies: `RUNTIME`. Any other value is refused before the secret is read. `config set --value-from projectEndpoint:api\|projectSecret:anonKey` writes a platform-derived source instead of a literal (VIBEC-469); exactly one of `--value`, `--file`, `--value-from` |
533
+ | `vibe backups` | `Project.backups`, `Project.caps` |
534
+ | `vibe token list\|revoke` | `Query.tokens`, `revokeToken` |
529
535
 
530
536
  **Two classes of refusal, both exiting non-zero with the reason named.** Neither
531
537
  is an unknown-flag error: someone who types the command deserves to learn why.
@@ -1022,8 +1028,8 @@ GoTrue (v2.189.0) verifies exactly that when `encrypted_password` is
1022
1028
  `$fbscrypt$v=1,n=<mem_cost>,r=<rounds>,p=1,ss=<salt_sep>,sk=<signer_key>$<salt>$<hash>`,
1023
1029
  so **users keep their passwords**. The project's hash parameters come from the
1024
1030
  Identity Toolkit config; when the service account lacks
1025
- `firebaseauth.configs.getHashConfig`, pass the console's *Password hash
1026
- parameters* export as `--hash-params` (an explicit second input, not a guess;
1031
+ `firebaseauth.configs.getHashConfig`, pass the console's _Password hash
1032
+ parameters_ export as `--hash-params` (an explicit second input, not a guess;
1027
1033
  without either, password users are skipped by name). Every user gets a
1028
1034
  deterministic UUIDv5 of their Firebase uid (GoTrue ids are uuids), with the
1029
1035
  original uid in `raw_user_meta_data.firebase_uid`. Carried: email + password,
@@ -1254,7 +1260,7 @@ extensions it accepted:
1254
1260
  image does not carry — banned (`dblink`, `http`, …), unknown, or allowed-but-absent
1255
1261
  (PostGIS) — refuses before the mint, all of them listed at once. Neon's own
1256
1262
  `neon`/`neon_utils` are left out of the dump rather than refused. Everything
1257
- PostgreSQL marks *trusted* on the image (`pg_trgm`, `citext`, `hstore`, `ltree`,
1263
+ PostgreSQL marks _trusted_ on the image (`pg_trgm`, `citext`, `hstore`, `ltree`,
1258
1264
  `unaccent`, `btree_gin/gist`, …) restores where your dump puts it, because
1259
1265
  `tenant_owner` holds `CREATE` on the database since 2026-09-17 — the server's
1260
1266
  trust flag is the boundary, and the tenant bootstrap refuses an image that marks a
package/commands.json CHANGED
@@ -20,7 +20,7 @@
20
20
  },
21
21
  {
22
22
  "name": "init",
23
- "summary": "giris, proje, repo, MCP ve ilk yayin — tek komutta",
23
+ "summary": "giris, proje, hizmetler, repo, MCP ve ilk yayin — tek komutta",
24
24
  "kind": "runs",
25
25
  "note": "yeni bir proje icin --package gerekir; aboneligi baslamamis bir projede aboneligin baslatilacagi adresi yazar ve bekler; --yes ile hicbir soru sorulmaz"
26
26
  },
@@ -69,6 +69,21 @@
69
69
  "summary": "RLS danismaninin bulgulari",
70
70
  "kind": "runs"
71
71
  },
72
+ {
73
+ "name": "db init",
74
+ "summary": "veritabanini baslat (ilk kez; kapasite burada ayrilir)",
75
+ "kind": "runs"
76
+ },
77
+ {
78
+ "name": "auth init",
79
+ "summary": "kimlik hizmetini baslat (veritabani ve REST API ile)",
80
+ "kind": "runs"
81
+ },
82
+ {
83
+ "name": "storage init",
84
+ "summary": "depolama hizmetini baslat (veritabani ve REST API ile)",
85
+ "kind": "runs"
86
+ },
72
87
  {
73
88
  "name": "app list",
74
89
  "summary": "projedeki uygulamalari listele",
@@ -89,6 +104,11 @@
89
104
  "summary": "yeni bir derleme ve yayinlama baslat",
90
105
  "kind": "runs"
91
106
  },
107
+ {
108
+ "name": "deploy upload",
109
+ "summary": "bu dizini yukleyip derle ve yayinla (git reposu olmayan, yuklemeyle baglanan uygulama)",
110
+ "kind": "runs"
111
+ },
92
112
  {
93
113
  "name": "deploy cancel",
94
114
  "summary": "suren derlemeyi iptal et",