vibeview 0.14.1 → 0.14.2

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.
@@ -998,6 +998,7 @@ function persistPickedAppId(cwd, cfg, platform, appId) {
998
998
  return next;
999
999
  }
1000
1000
  var CREATE_NEW_APP = "__vibeview_create_new_app__";
1001
+ var DONT_LINK_APP = "__vibeview_dont_link_app__";
1001
1002
  async function resolveCloudAppIds(cwd, cfgRef, platforms, opts, listApps) {
1002
1003
  const createFromArtifact = /* @__PURE__ */ new Set();
1003
1004
  const missing = platforms.filter((p) => !cfgRef.current?.platforms?.[p]?.appId);
@@ -1021,7 +1022,9 @@ async function resolveCloudAppIds(cwd, cfgRef, platforms, opts, listApps) {
1021
1022
  createFromArtifact.add(platform);
1022
1023
  if (!opts.json) {
1023
1024
  console.error(
1024
- chalk2.dim(`no ${platform} apps yet \u2014 this build will create one from the artifact`)
1025
+ chalk2.dim(
1026
+ opts.production ? `no ${platform} apps yet \u2014 production builds aren't linked to an app; the signed artifact will be available from the build itself` : `no ${platform} apps yet \u2014 this build will create one from the artifact`
1027
+ )
1025
1028
  );
1026
1029
  }
1027
1030
  continue;
@@ -1032,11 +1035,21 @@ async function resolveCloudAppIds(cwd, cfgRef, platforms, opts, listApps) {
1032
1035
  // one platform, so `(ios)` on every row would be pure noise (same
1033
1036
  // reasoning as dev.ts's picker).
1034
1037
  choices: [
1038
+ // Under --production a "Don't link an app" row leads the list (the
1039
+ // neutral default, since the create-from-artifact escape hatch below
1040
+ // is suppressed there): production builds aren't linked to an app
1041
+ // unless the user explicitly wants the link — see DONT_LINK_APP.
1042
+ ...opts.production ? [{ value: DONT_LINK_APP, name: "Don't link an app" }] : [],
1035
1043
  ...apps.map((a) => ({ value: a.public_id, name: a.name })),
1036
- { value: CREATE_NEW_APP, name: "Create a new app from this build" }
1044
+ // No create-from-artifact row under --production: a production build
1045
+ // never creates an app (internal_builds returns before app creation),
1046
+ // so offering it would promise something that can't happen. Picking
1047
+ // an EXISTING app is still meaningful — app-scoped signing
1048
+ // credentials resolve by app.
1049
+ ...opts.production ? [] : [{ value: CREATE_NEW_APP, name: "Create a new app from this build" }]
1037
1050
  ]
1038
1051
  });
1039
- if (appId === CREATE_NEW_APP) {
1052
+ if (appId === CREATE_NEW_APP || appId === DONT_LINK_APP) {
1040
1053
  createFromArtifact.add(platform);
1041
1054
  continue;
1042
1055
  }
@@ -1213,7 +1226,9 @@ ${offenders}`);
1213
1226
  return;
1214
1227
  }
1215
1228
  const finished = await waitForCloudBuilds(created, opts, d);
1216
- persistResolvedAppIds(cwd, cfgRef, createFromArtifact, finished.values());
1229
+ if (!opts.production) {
1230
+ persistResolvedAppIds(cwd, cfgRef, createFromArtifact, finished.values());
1231
+ }
1217
1232
  let downloadFailed = false;
1218
1233
  if (opts.download) {
1219
1234
  for (const b of finished.values()) {
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  readDevState,
14
14
  readMetroState,
15
15
  runAgentVerb
16
- } from "./chunk-2VNBRBST.js";
16
+ } from "./chunk-S3ANKSHB.js";
17
17
  import {
18
18
  ApiClient,
19
19
  EXIT_INFRA_ERROR,
@@ -1288,7 +1288,10 @@ The build may still be running server-side \u2014 resume watching it with \`vibe
1288
1288
  id,
1289
1289
  platform: "",
1290
1290
  status,
1291
+ distribution: "simulator",
1291
1292
  app_public_id: null,
1293
+ app_name: null,
1294
+ requested_by: null,
1292
1295
  created_at: null,
1293
1296
  started_at: null,
1294
1297
  finished_at: null,
@@ -1296,6 +1299,9 @@ The build may still be running server-side \u2014 resume watching it with \`vibe
1296
1299
  used_free_quota: false,
1297
1300
  error_summary: null,
1298
1301
  app_build_id: null,
1302
+ has_artifact: false,
1303
+ artifact_size: 0,
1304
+ artifact_filename: null,
1299
1305
  timeout_s: 0
1300
1306
  };
1301
1307
  const final = await fetchFinalSummary(id, fallback, deps);
@@ -2229,7 +2235,7 @@ program.command("dev-stop").description("Stop a `vibeview dev --detach` session
2229
2235
  program.command("mcp").description(
2230
2236
  "Run an MCP stdio server exposing the agent verbs (tap, swipe, type, ...) plus dev_start/dev_stop as tools"
2231
2237
  ).option("--token <token>", "API token (or set VIBEVIEW_API_TOKEN)").action(async (opts) => {
2232
- const { runMcpServer } = await import("./server-KG7CEBEY.js");
2238
+ const { runMcpServer } = await import("./server-LTJ4F4DC.js");
2233
2239
  await runMcpServer(opts);
2234
2240
  });
2235
2241
  program.command("agent-setup").description(
@@ -11,7 +11,7 @@ import {
11
11
  readDevState,
12
12
  renderEnvelope,
13
13
  startDevSession
14
- } from "./chunk-2VNBRBST.js";
14
+ } from "./chunk-S3ANKSHB.js";
15
15
  import {
16
16
  ApiClient,
17
17
  resolveAuth
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibeview",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "VibeView CLI -- run mobile tests from CI/CD pipelines",
5
5
  "type": "module",
6
6
  "bin": {