@cf-vibesdk/sdk 0.1.1 → 0.1.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.
package/dist/index.d.ts CHANGED
@@ -271,16 +271,6 @@ declare const AgenticBlueprintSchema: z.ZodObject<{
271
271
  frameworks: z.ZodArray<z.ZodString, "many">;
272
272
  } & {
273
273
  plan: z.ZodArray<z.ZodString, "many">;
274
- preflightAnswers: z.ZodOptional<z.ZodArray<z.ZodObject<{
275
- question: z.ZodString;
276
- answer: z.ZodString;
277
- }, "strip", z.ZodTypeAny, {
278
- question: string;
279
- answer: string;
280
- }, {
281
- question: string;
282
- answer: string;
283
- }>, "many">>;
284
274
  }, "strip", z.ZodTypeAny, {
285
275
  description: string;
286
276
  title: string;
@@ -288,10 +278,6 @@ declare const AgenticBlueprintSchema: z.ZodObject<{
288
278
  colorPalette: string[];
289
279
  frameworks: string[];
290
280
  plan: string[];
291
- preflightAnswers?: {
292
- question: string;
293
- answer: string;
294
- }[] | undefined;
295
281
  }, {
296
282
  description: string;
297
283
  title: string;
@@ -299,10 +285,6 @@ declare const AgenticBlueprintSchema: z.ZodObject<{
299
285
  colorPalette: string[];
300
286
  frameworks: string[];
301
287
  plan: string[];
302
- preflightAnswers?: {
303
- question: string;
304
- answer: string;
305
- }[] | undefined;
306
288
  }>;
307
289
  type PhasicBlueprint = z.infer<typeof PhasicBlueprintSchema>;
308
290
  type AgenticBlueprint = z.infer<typeof AgenticBlueprintSchema>;
@@ -801,8 +783,6 @@ interface BaseProjectState {
801
783
  pendingUserInputs: string[];
802
784
  projectUpdatesAccumulator: string[];
803
785
  lastDeepDebugTranscript: string | null;
804
- preflightQuestions?: string;
805
- preflightCompleted?: boolean;
806
786
  mvpGenerated: boolean;
807
787
  reviewingInitiated: boolean;
808
788
  }
@@ -815,10 +795,16 @@ interface PhasicState extends BaseProjectState {
815
795
  reviewCycles?: number;
816
796
  currentPhase?: PhaseConceptType;
817
797
  }
798
+ interface PreflightState {
799
+ questionsAsked: number;
800
+ isWaitingForAnswer: boolean;
801
+ }
818
802
  interface AgenticState extends BaseProjectState {
819
803
  behaviorType: "agentic";
820
804
  blueprint: AgenticBlueprint;
821
805
  currentPlan: Plan;
806
+ preflightQuestions?: string;
807
+ preflightState?: PreflightState;
822
808
  }
823
809
  export type AgentState = PhasicState | AgenticState;
824
810
  interface FileObject {
@@ -1341,10 +1327,10 @@ interface CodeGenArgs {
1341
1327
  behaviorType?: BehaviorType;
1342
1328
  projectType?: ProjectType;
1343
1329
  images?: ImageAttachment[];
1330
+ /** Optional preflight questions context to ask the user before building */
1331
+ preflightQuestions?: string;
1344
1332
  /** Optional ephemeral credentials (BYOK / gateway override) for sdk */
1345
1333
  credentials?: CredentialsPayload;
1346
- /** Optional preflight questions prompt. When provided, the agent asks these questions one-by-one before building and stores answers in the blueprint. */
1347
- preflightQuestions?: string;
1348
1334
  }
1349
1335
  /**
1350
1336
  * Data structure for connectToExistingAgent response
@@ -2507,7 +2493,7 @@ declare const apps: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2507
2493
  tableName: "apps";
2508
2494
  dataType: "string";
2509
2495
  columnType: "SQLiteText";
2510
- data: "public" | "private";
2496
+ data: "private" | "public";
2511
2497
  driverParam: string;
2512
2498
  notNull: true;
2513
2499
  hasDefault: true;
@@ -2595,7 +2581,7 @@ declare const apps: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2595
2581
  tableName: "apps";
2596
2582
  dataType: "string";
2597
2583
  columnType: "SQLiteText";
2598
- data: "public" | "private";
2584
+ data: "private" | "public";
2599
2585
  driverParam: string;
2600
2586
  notNull: false;
2601
2587
  hasDefault: false;
@@ -5196,11 +5182,11 @@ type App = {
5196
5182
  framework: string | null;
5197
5183
  userId: string | null;
5198
5184
  sessionToken: string | null;
5199
- visibility: "public" | "private";
5185
+ visibility: "private" | "public";
5200
5186
  status: "completed" | "generating";
5201
5187
  deploymentId: string | null;
5202
5188
  githubRepositoryUrl: string | null;
5203
- githubRepositoryVisibility: "public" | "private" | null;
5189
+ githubRepositoryVisibility: "private" | "public" | null;
5204
5190
  isArchived: boolean | null;
5205
5191
  isFeatured: boolean | null;
5206
5192
  version: number | null;
@@ -5503,11 +5489,11 @@ type App$1 = {
5503
5489
  framework: string | null;
5504
5490
  userId: string | null;
5505
5491
  sessionToken: string | null;
5506
- visibility: "public" | "private";
5492
+ visibility: "private" | "public";
5507
5493
  status: "completed" | "generating";
5508
5494
  deploymentId: string | null;
5509
5495
  githubRepositoryUrl: string | null;
5510
- githubRepositoryVisibility: "public" | "private" | null;
5496
+ githubRepositoryVisibility: "private" | "public" | null;
5511
5497
  isArchived: boolean | null;
5512
5498
  isFeatured: boolean | null;
5513
5499
  version: number | null;
@@ -6057,7 +6043,7 @@ export declare class VibeClient {
6057
6043
  finalPrompt: string | null;
6058
6044
  framework: string | null;
6059
6045
  sessionToken: string | null;
6060
- visibility: "public" | "private";
6046
+ visibility: "private" | "public";
6061
6047
  githubRepositoryUrl: string | null;
6062
6048
  githubRepositoryVisibility: string | null;
6063
6049
  isArchived: string | boolean | null;
@@ -6119,10 +6105,6 @@ type Blueprint$1 = {
6119
6105
  phase: string;
6120
6106
  description: string;
6121
6107
  }>;
6122
- preflightAnswers?: Array<{
6123
- question: string;
6124
- answer: string;
6125
- }>;
6126
6108
  };
6127
6109
  /**
6128
6110
  * Converts a Blueprint object to readable Markdown.
package/dist/index.js CHANGED
@@ -1364,12 +1364,6 @@ function blueprintToMarkdown(bp) {
1364
1364
  for (const p of bp.implementationRoadmap)
1365
1365
  lines.push(`- **${p.phase}**: ${p.description}`);
1366
1366
  }
1367
- if (bp.preflightAnswers?.length) {
1368
- lines.push("");
1369
- lines.push("## Preflight Answers");
1370
- for (const a of bp.preflightAnswers)
1371
- lines.push(`- **${a.question}**: ${a.answer}`);
1372
- }
1373
1367
  return lines.join(`
1374
1368
  `);
1375
1369
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cf-vibesdk/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {