@vibecloudtr/cli 0.3.0 → 0.4.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/README.md +26 -27
- package/commands.json +112 -32
- package/dist/main.js +237 -219
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Design docs and the decision log are in `../base/docs`.
|
|
|
20
20
|
|
|
21
21
|
## Releasing to npm — the checklist
|
|
22
22
|
|
|
23
|
-
🔴 **`@vibecloudtr/cli` 0.
|
|
23
|
+
🔴 **`@vibecloudtr/cli` 0.4.0 is on npm (2026-10-22)**; 0.0.1 shipped source maps and was
|
|
24
24
|
unpublished. Every page of the site, `llms.txt` and the three agent files instruct
|
|
25
25
|
`npx @vibecloudtr/cli …`, so each publish is the most-repeated promise on the site.
|
|
26
26
|
Publishing is done by hand from the owner's machine with an npm access token. There
|
|
@@ -304,14 +304,15 @@ API) is refused by name before any request is made.
|
|
|
304
304
|
cookie and `authenticate` does read it — from the Cookie header. Deliberately not
|
|
305
305
|
used: it would make the CLI collect the account password, put a long-lived
|
|
306
306
|
console credential on disk, and hand the CLI the `browser` credential kind, which
|
|
307
|
-
is
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
is what `@dangerous` accepts with a 15-minute step-up window. Borrowing a cookie
|
|
308
|
+
would **defeat** that gate rather than satisfy it; the CLI answers each dangerous
|
|
309
|
+
request with its own fresh code instead (dec. 236).
|
|
310
310
|
|
|
311
|
-
**Why a PAT is not
|
|
312
|
-
|
|
313
|
-
`~/.vibecloud/token` still works
|
|
314
|
-
deliberately
|
|
311
|
+
**Why a PAT is not the login either.** `vibe token create` mints one (it asks
|
|
312
|
+
for a two-factor code, dec. 236), and a `vibe_pat_` value pasted into
|
|
313
|
+
`~/.vibecloud/token` still works — the loader accepts that bare form
|
|
314
|
+
deliberately — but a PAT can never run a `@dangerous` command: only the OAuth
|
|
315
|
+
login can answer the per-request code.
|
|
315
316
|
|
|
316
317
|
### 🔴 One value the server publishes nowhere, so it is still required
|
|
317
318
|
|
|
@@ -512,13 +513,19 @@ keeps the CLI out of it meanwhile.
|
|
|
512
513
|
behaves as it always did: it selects, and the server still refuses a mismatch —
|
|
513
514
|
the CLI just cannot name which org it should have been.
|
|
514
515
|
|
|
515
|
-
###
|
|
516
|
+
### Dangerous commands ask for a two-factor code (dec. 236)
|
|
516
517
|
|
|
517
|
-
The credential is an OAuth access token
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
the
|
|
518
|
+
The credential is an OAuth access token (`CredentialKind: "oauth"`). Since dec. 236
|
|
519
|
+
the API admits it to a `@dangerous` mutation when the token carries `mcp:dangerous`
|
|
520
|
+
**and** the request carries a fresh TOTP code in the `Vibecloud-Otp` header — one
|
|
521
|
+
code per request, no window, TOTP only. `stepup.ts` asks for the code, hidden, when
|
|
522
|
+
the API answers `MFA_REQUIRED`; opens the console's enrolment page
|
|
523
|
+
(`details.enrolUrl`) when the account has no second factor; asks again after a
|
|
524
|
+
refused code (a code works once); and takes `--otp <code>` when nobody can be asked
|
|
525
|
+
(`--json`, `--no-input`, no terminal), refusing at once without it. A login from
|
|
526
|
+
before the scope existed gets `FORBIDDEN_SCOPE` and is told to `vibe login` again.
|
|
527
|
+
A PAT is refused before the code (`CREDENTIAL_KIND_FORBIDDEN`). The dangerous
|
|
528
|
+
request is sent once, never retried: a spent code would read as a wrong one.
|
|
522
529
|
|
|
523
530
|
### Output, flags and language
|
|
524
531
|
|
|
@@ -551,23 +558,15 @@ ISO times. Spec: `base/docs/cli-output-guidelines.md`.
|
|
|
551
558
|
| `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` |
|
|
552
559
|
| `vibe backups` | `Project.backups`, `Project.caps` |
|
|
553
560
|
| `vibe token list\|revoke` | `Query.tokens`, `revokeToken` |
|
|
561
|
+
| Two-factor code per request (dec. 236)| `vibe project delete` `deleteProject` · `vibe key reveal\|rotate` `revealServiceRoleKey` + `revealedServiceRoleKey`, `rotateProjectKey` · `vibe db owner-credential` `revealDatabaseOwnerCredential` + `revealedDatabaseOwnerCredential` · `vibe token create` `createToken` · `vibe restore` `createRestore` · `vibe team invite\|remove\|role\|transfer-owner` `inviteMember`, `removeMember`, `changeMemberRole`, `transferOwnership` · `vibe access grant\|revoke` `grantProjectAccess`, `revokeProjectAccess` · `vibe smtp set\|clear` `setProjectSmtp` (password hidden prompt or `--password-stdin`, never a flag value), `clearProjectSmtp` · `vibe project auth-config` `setProjectAuthConfig` · `vibe project egress` `setEgressAllowlist` · `vibe rls guardrail\|exception` `setRowLevelSecurityGuardrail`, `setTableRowLevelSecurityException` · `vibe billing cancel\|payment-method` `cancelSubscription`, `updatePaymentMethod` · `vibe mfa disable` `disableMfa` · `vibe export download` `downloadDataExport`. Destructive ones (`project delete`, `key rotate`, `restore`, `billing cancel`) also take a typed `--confirm <project>`|
|
|
554
562
|
|
|
555
563
|
**Two classes of refusal, both exiting non-zero with the reason named.** Neither
|
|
556
564
|
is an unknown-flag error: someone who types the command deserves to learn why.
|
|
557
565
|
|
|
558
|
-
- **The
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
satisfied step-up. `authenticate` accepts three credentials — the
|
|
563
|
-
`__Host-vc_session` **cookie**, an OAuth access token, and a `vibe_pat_` PAT —
|
|
564
|
-
and only the cookie is a session, never read from an `Authorization` header. So
|
|
565
|
-
no token this CLI can hold clears it, structurally (dec. 81). **Still true now
|
|
566
|
-
that `vibe login` is real**: measured against the running API on 2026-08-14
|
|
567
|
-
with a genuine access token from the flow, every one of these answered
|
|
568
|
-
`CREDENTIAL_KIND_FORBIDDEN`. Closing the gap would mean the CLI holding a real
|
|
569
|
-
session _and_ being able to answer a step-up challenge — and holding a session
|
|
570
|
-
cookie is deliberately not what login does, because that would defeat the gate.
|
|
566
|
+
- **The terminal cannot do it.** `vibe billing card`: `updateSubscriptionCard`
|
|
567
|
+
answers iyzico's hosted form, an HTML fragment that only runs in a browser, so
|
|
568
|
+
the command names the console page instead of calling the API. (Until dec. 236
|
|
569
|
+
the `@dangerous` commands were refusals too; they now ask for a code.)
|
|
571
570
|
- **The API has no field for it.** `vibe deploy force`: there is no cache-invalidating
|
|
572
571
|
field in `DeployAppInput`.
|
|
573
572
|
- **Logs are read, not refused.** `vibe logs` reads an app's runtime logs through
|
package/commands.json
CHANGED
|
@@ -248,6 +248,116 @@
|
|
|
248
248
|
"summary": "Yedekleri listeler",
|
|
249
249
|
"kind": "runs"
|
|
250
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"name": "project delete",
|
|
253
|
+
"summary": "Projeyi siler; iki adımlı doğrulama kodu ister",
|
|
254
|
+
"kind": "runs"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "key reveal",
|
|
258
|
+
"summary": "Projenin service_role anahtarını gösterir; iki adımlı doğrulama kodu ister",
|
|
259
|
+
"kind": "runs"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "token create",
|
|
263
|
+
"summary": "Erişim anahtarı oluşturur; iki adımlı doğrulama kodu ister",
|
|
264
|
+
"kind": "runs"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "key rotate",
|
|
268
|
+
"summary": "Projenin anahtarlarını yeniler; eski anahtarlar hemen geçersiz olur",
|
|
269
|
+
"kind": "runs"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "db owner-credential",
|
|
273
|
+
"summary": "Veritabanı sahibinin (tenant_owner) parolasını gösterir; bir kez okunur",
|
|
274
|
+
"kind": "runs"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "restore",
|
|
278
|
+
"summary": "Bir yedekten geri yükler; HEDEF veritabanının üzerine yazar",
|
|
279
|
+
"kind": "runs"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "access grant",
|
|
283
|
+
"summary": "Bir üyeye projeye yazma izni verir (Kurumsal paket)",
|
|
284
|
+
"kind": "runs"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "access revoke",
|
|
288
|
+
"summary": "Bir üyenin projeye yazma iznini kaldırır",
|
|
289
|
+
"kind": "runs"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "smtp set",
|
|
293
|
+
"summary": "Projenin e-postalarını kendi SMTP sunucunuzdan gönderir",
|
|
294
|
+
"kind": "runs"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "smtp clear",
|
|
298
|
+
"summary": "Projenin e-postalarını yeniden platformun sunucusundan gönderir",
|
|
299
|
+
"kind": "runs"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "project auth-config",
|
|
303
|
+
"summary": "Projenin kimlik doğrulama ayarlarını yazar",
|
|
304
|
+
"kind": "runs"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "project egress",
|
|
308
|
+
"summary": "Uygulamanın dışarıya çıkabileceği alan adlarını yazar",
|
|
309
|
+
"kind": "runs"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "rls guardrail",
|
|
313
|
+
"summary": "Satır düzeyi güvenliğin zorlanmasını açar ya da kapatır",
|
|
314
|
+
"kind": "runs"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "rls exception",
|
|
318
|
+
"summary": "Bir tablo için satır düzeyi güvenlik istisnası yazar",
|
|
319
|
+
"kind": "runs"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "billing cancel",
|
|
323
|
+
"summary": "Projenin aboneliğini iptal eder",
|
|
324
|
+
"kind": "runs"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "team invite",
|
|
328
|
+
"summary": "Takıma üye davet eder",
|
|
329
|
+
"kind": "runs"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "team remove",
|
|
333
|
+
"summary": "Takımdan üye çıkarır; üyenin erişim anahtarları da iptal edilir",
|
|
334
|
+
"kind": "runs"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"name": "team role",
|
|
338
|
+
"summary": "Bir üyenin rolünü değiştirir",
|
|
339
|
+
"kind": "runs"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "team transfer-owner",
|
|
343
|
+
"summary": "Organizasyonun sahipliğini bir üyeye devreder",
|
|
344
|
+
"kind": "runs"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "billing payment-method",
|
|
348
|
+
"summary": "Ödeme yöntemini değiştirmek için iyzico’nun sayfasını açar",
|
|
349
|
+
"kind": "runs"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "mfa disable",
|
|
353
|
+
"summary": "İki adımlı doğrulamayı kapatır; şu anki kodu ister",
|
|
354
|
+
"kind": "runs"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "export download",
|
|
358
|
+
"summary": "Hazır bir veri dışa aktarımının indirme bağlantısını verir",
|
|
359
|
+
"kind": "runs"
|
|
360
|
+
},
|
|
251
361
|
{
|
|
252
362
|
"name": "token list",
|
|
253
363
|
"summary": "Erişim anahtarlarınızı listeler",
|
|
@@ -336,38 +446,8 @@
|
|
|
336
446
|
"kind": "refuses"
|
|
337
447
|
},
|
|
338
448
|
{
|
|
339
|
-
"name": "
|
|
340
|
-
"summary": "
|
|
341
|
-
"kind": "refuses"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"name": "key reveal",
|
|
345
|
-
"summary": "Projenin service_role anahtarını gösterir",
|
|
346
|
-
"kind": "refuses"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"name": "key rotate",
|
|
350
|
-
"summary": "Projenin anahtarını yeniler; eski anahtar hemen geçersiz olur",
|
|
351
|
-
"kind": "refuses"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"name": "token create",
|
|
355
|
-
"summary": "Erişim anahtarı oluşturur",
|
|
356
|
-
"kind": "refuses"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"name": "team invite",
|
|
360
|
-
"summary": "Takıma üye davet eder",
|
|
361
|
-
"kind": "refuses"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"name": "team remove",
|
|
365
|
-
"summary": "Takımdan üye çıkarır; üyenin erişim anahtarları da iptal edilir",
|
|
366
|
-
"kind": "refuses"
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"name": "project delete",
|
|
370
|
-
"summary": "Projeyi siler",
|
|
449
|
+
"name": "billing card",
|
|
450
|
+
"summary": "Abonelik kartını değiştirir (konsolda)",
|
|
371
451
|
"kind": "refuses"
|
|
372
452
|
}
|
|
373
453
|
]
|