inflight-cli 2.9.0 → 2.10.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.
@@ -98,7 +98,7 @@ async function checkAndSyncGit(cwd, opts = {}) {
98
98
  if (isAgent) {
99
99
  agentActionRequired({
100
100
  type: "git_uncommitted",
101
- message: "You have uncommitted changes. Your deployment won't include them.",
101
+ message: "There are uncommitted changes that won't be in the deployment. Ask the user what to do.",
102
102
  choices: [
103
103
  { id: "commit_push", label: "Commit and push these changes" },
104
104
  { id: "continue", label: "Continue without committing" },
@@ -167,7 +167,7 @@ async function checkAndSyncGit(cwd, opts = {}) {
167
167
  if (isAgent) {
168
168
  agentActionRequired({
169
169
  type: "git_unpushed",
170
- message: "You have unpushed commits. Your deployment won't include them.",
170
+ message: "There are unpushed commits that won't be in the deployment. Ask the user what to do.",
171
171
  choices: [
172
172
  { id: "push", label: "Push these commits" },
173
173
  { id: "continue", label: "Continue without pushing" },
@@ -224,7 +224,7 @@ async function checkAndSyncGit(cwd, opts = {}) {
224
224
  if (isAgent) {
225
225
  agentActionRequired({
226
226
  type: "git_no_remote",
227
- message: `Branch "${branch}" hasn't been pushed yet — no deployment exists.`,
227
+ message: `Branch "${branch}" hasn't been pushed yet — no deployment exists. Ask the user what to do.`,
228
228
  choices: [
229
229
  { id: "push", label: "Push to create a deployment" },
230
230
  { id: "continue", label: "Continue without pushing" },
@@ -304,7 +304,7 @@ async function agentShareFlow(cwd, apiKey, workspaceId, opts) {
304
304
  else {
305
305
  agentActionRequired({
306
306
  type: "choose_provider",
307
- message: "Could not auto-detect deployment provider.",
307
+ message: "Could not auto-detect deployment provider. Ask the user which one they use.",
308
308
  choices: [
309
309
  { id: "vercel", label: "Vercel" },
310
310
  { id: "netlify", label: "Netlify" },
@@ -350,7 +350,7 @@ async function agentShareFlow(cwd, apiKey, workspaceId, opts) {
350
350
  const currentBranch = gitInfo.branch;
351
351
  agentActionRequired({
352
352
  type: "choose_project",
353
- message: "Select a project or create new.",
353
+ message: "Ask the user which project to share into. Present all choices below as a numbered list.",
354
354
  choices: [
355
355
  { id: "new", label: "Start a new project" },
356
356
  ...projects.map((proj) => ({
@@ -377,7 +377,7 @@ async function agentShareFlow(cwd, apiKey, workspaceId, opts) {
377
377
  if (selectedProject && selectedProject.latestVersion.commentCount === 0) {
378
378
  agentActionRequired({
379
379
  type: "choose_override",
380
- message: `"${selectedProject.latestVersion.title}" has no feedback yet.`,
380
+ message: `"${selectedProject.latestVersion.title}" has no feedback yet. Ask the user whether to update it or create a new version.`,
381
381
  choices: [
382
382
  {
383
383
  id: "override",
@@ -58,7 +58,7 @@ export async function resolveWorkspace(workspaces, opts = {}) {
58
58
  if (isAgent) {
59
59
  agentActionRequired({
60
60
  type: "choose_workspace",
61
- message: "Multiple workspaces found. Re-run with --workspace <id>.",
61
+ message: "Multiple workspaces found. Ask the user which one to use.",
62
62
  choices: workspaces.map((w) => ({ id: w.id, label: w.name })),
63
63
  nextCommand: `${commandForNext} --workspace <ID>`,
64
64
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inflight-cli",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "description": "Get feedback directly on your staging URL",
5
5
  "bin": {
6
6
  "inflight": "dist/index.js",