@blinkdotnew/cli 0.1.8 → 0.1.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/dist/cli.js CHANGED
@@ -1203,7 +1203,8 @@ After creating a project, link it to your current directory:
1203
1203
  });
1204
1204
  project.command("delete <project_id>").description("Delete a project").option("--yes", "Skip confirmation").action(async (projectId, opts) => {
1205
1205
  requireToken();
1206
- if (!opts.yes) {
1206
+ const skipConfirm = opts.yes || process.argv.includes("--yes") || process.argv.includes("-y");
1207
+ if (!skipConfirm && process.stdout.isTTY) {
1207
1208
  const { confirm } = await import("@clack/prompts");
1208
1209
  const ok = await confirm({ message: `Delete project ${projectId}? This cannot be undone.` });
1209
1210
  if (!ok) {
@@ -1475,7 +1476,8 @@ Examples:
1475
1476
  `).action(async (key, opts) => {
1476
1477
  requireToken();
1477
1478
  const agentId = requireAgentId(opts.agent);
1478
- if (!opts.yes && !isJsonMode()) {
1479
+ const skipConfirm = opts.yes || process.argv.includes("--yes") || process.argv.includes("-y");
1480
+ if (!skipConfirm && !isJsonMode() && process.stdout.isTTY) {
1479
1481
  const { confirm } = await import("@clack/prompts");
1480
1482
  const ok = await confirm({ message: `Delete secret "${key}" from agent ${agentId}?` });
1481
1483
  if (!ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkdotnew/cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Blink platform CLI — deploy apps, manage databases, generate AI content",
5
5
  "bin": {
6
6
  "blink": "dist/cli.js"
@@ -49,7 +49,8 @@ After creating a project, link it to your current directory:
49
49
  .option('--yes', 'Skip confirmation')
50
50
  .action(async (projectId: string, opts) => {
51
51
  requireToken()
52
- if (!opts.yes) {
52
+ const skipConfirm = opts.yes || process.argv.includes('--yes') || process.argv.includes('-y')
53
+ if (!skipConfirm && process.stdout.isTTY) {
53
54
  const { confirm } = await import('@clack/prompts')
54
55
  const ok = await confirm({ message: `Delete project ${projectId}? This cannot be undone.` })
55
56
  if (!ok) { console.log('Cancelled.'); return }
@@ -96,7 +96,8 @@ Examples:
96
96
  .action(async (key: string, opts) => {
97
97
  requireToken()
98
98
  const agentId = requireAgentId(opts.agent)
99
- if (!opts.yes && !isJsonMode()) {
99
+ const skipConfirm = opts.yes || process.argv.includes('--yes') || process.argv.includes('-y')
100
+ if (!skipConfirm && !isJsonMode() && process.stdout.isTTY) {
100
101
  const { confirm } = await import('@clack/prompts')
101
102
  const ok = await confirm({ message: `Delete secret "${key}" from agent ${agentId}?` })
102
103
  if (!ok) { console.log('Cancelled.'); return }