@superdesign/cli 0.1.11 → 0.1.12

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.
@@ -13,7 +13,6 @@ export interface IterateDraftRequest {
13
13
  mode: 'replace' | 'branch';
14
14
  }
15
15
  export interface PlanFlowRequest {
16
- sourceNodeId: string;
17
16
  flowContext?: string;
18
17
  }
19
18
  export interface FlowPage {
@@ -21,7 +20,6 @@ export interface FlowPage {
21
20
  prompt: string;
22
21
  }
23
22
  export interface ExecuteFlowRequest {
24
- sourceNodeId: string;
25
23
  flowContext?: string;
26
24
  pages: FlowPage[];
27
25
  }
@@ -12,7 +12,7 @@ export declare const POLL_TIMEOUT_MS: number;
12
12
  export declare const AUTH_POLL_INTERVAL_MS = 2000;
13
13
  export declare const AUTH_POLL_TIMEOUT_MS: number;
14
14
  /** CLI version - should match package.json */
15
- export declare const CLI_VERSION = "0.1.11";
15
+ export declare const CLI_VERSION = "0.1.12";
16
16
  /** PostHog analytics configuration */
17
17
  export declare const POSTHOG_KEY: string;
18
18
  export declare const POSTHOG_HOST: string;
package/dist/index.cjs CHANGED
@@ -316,7 +316,7 @@ var __webpack_exports__ = {};
316
316
  try {
317
317
  startSpinner('Creating auth session...');
318
318
  const session = await createSession({
319
- cliVersion: "0.1.11",
319
+ cliVersion: "0.1.12",
320
320
  os: `${external_os_namespaceObject.platform()} ${external_os_namespaceObject.release()}`,
321
321
  hostname: external_os_namespaceObject.hostname()
322
322
  });
@@ -928,7 +928,6 @@ Usage Examples:
928
928
  const command = new external_commander_namespaceObject.Command('plan-flow-pages').description('Plan flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').option('--context <context>', 'Additional context for flow planning').option('--json', 'Output in JSON format').action(async (options)=>{
929
929
  if (options.json) setJsonMode(true);
930
930
  job_runner_requireAuth(manager_isAuthenticated);
931
- const sourceNodeId = `draft-variant-${options.draftId}`;
932
931
  await runJob({
933
932
  startLabel: 'Planning flow pages...',
934
933
  pollingLabel: 'AI is analyzing and planning pages...',
@@ -936,7 +935,6 @@ Usage Examples:
936
935
  timeoutLabel: 'Planning timed out',
937
936
  failureLabel: 'Failed to plan flow pages',
938
937
  startJob: ()=>planFlowPages(options.draftId, {
939
- sourceNodeId,
940
938
  flowContext: options.context
941
939
  }),
942
940
  transformResult: (job)=>({
@@ -988,7 +986,6 @@ Usage Examples:
988
986
  output_error('Maximum 10 pages allowed');
989
987
  process.exit(EXIT_CODES.VALIDATION_ERROR);
990
988
  }
991
- const sourceNodeId = `draft-variant-${options.draftId}`;
992
989
  const timeoutMs = Math.max(300000, 2 * pages.length * 60000);
993
990
  await runJob({
994
991
  startLabel: `Generating ${pages.length} flow page(s)...`,
@@ -998,7 +995,6 @@ Usage Examples:
998
995
  failureLabel: 'Failed to execute flow pages',
999
996
  timeoutMs,
1000
997
  startJob: ()=>executeFlowPages(options.draftId, {
1001
- sourceNodeId,
1002
998
  flowContext: options.context,
1003
999
  pages
1004
1000
  }),
@@ -1315,7 +1311,7 @@ Usage Examples:
1315
1311
  durationMs: opts.durationMs,
1316
1312
  errorCode: opts.errorCode,
1317
1313
  options: opts.options,
1318
- cliVersion: "0.1.11",
1314
+ cliVersion: "0.1.12",
1319
1315
  os: `${external_os_default().platform()} ${external_os_default().release()}`
1320
1316
  };
1321
1317
  const posthog = getPostHog();
@@ -1352,7 +1348,7 @@ Usage Examples:
1352
1348
  (0, external_dotenv_namespaceObject.config)();
1353
1349
  function createProgram() {
1354
1350
  const program = new external_commander_namespaceObject.Command();
1355
- program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.11");
1351
+ program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.12");
1356
1352
  let startTime = 0;
1357
1353
  program.hook('preAction', ()=>{
1358
1354
  startTime = Date.now();
package/dist/index.js CHANGED
@@ -226,7 +226,7 @@ async function runAuthFlow(options = {}) {
226
226
  try {
227
227
  startSpinner('Creating auth session...');
228
228
  const session = await createSession({
229
- cliVersion: "0.1.11",
229
+ cliVersion: "0.1.12",
230
230
  os: `${platform()} ${release()}`,
231
231
  hostname: hostname()
232
232
  });
@@ -838,7 +838,6 @@ function createPlanFlowPagesCommand() {
838
838
  const command = new Command('plan-flow-pages').description('Plan flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').option('--context <context>', 'Additional context for flow planning').option('--json', 'Output in JSON format').action(async (options)=>{
839
839
  if (options.json) setJsonMode(true);
840
840
  job_runner_requireAuth(manager_isAuthenticated);
841
- const sourceNodeId = `draft-variant-${options.draftId}`;
842
841
  await runJob({
843
842
  startLabel: 'Planning flow pages...',
844
843
  pollingLabel: 'AI is analyzing and planning pages...',
@@ -846,7 +845,6 @@ function createPlanFlowPagesCommand() {
846
845
  timeoutLabel: 'Planning timed out',
847
846
  failureLabel: 'Failed to plan flow pages',
848
847
  startJob: ()=>planFlowPages(options.draftId, {
849
- sourceNodeId,
850
848
  flowContext: options.context
851
849
  }),
852
850
  transformResult: (job)=>({
@@ -898,7 +896,6 @@ function createExecuteFlowPagesCommand() {
898
896
  output_error('Maximum 10 pages allowed');
899
897
  process.exit(EXIT_CODES.VALIDATION_ERROR);
900
898
  }
901
- const sourceNodeId = `draft-variant-${options.draftId}`;
902
899
  const timeoutMs = Math.max(300000, 2 * pages.length * 60000);
903
900
  await runJob({
904
901
  startLabel: `Generating ${pages.length} flow page(s)...`,
@@ -908,7 +905,6 @@ function createExecuteFlowPagesCommand() {
908
905
  failureLabel: 'Failed to execute flow pages',
909
906
  timeoutMs,
910
907
  startJob: ()=>executeFlowPages(options.draftId, {
911
- sourceNodeId,
912
908
  flowContext: options.context,
913
909
  pages
914
910
  }),
@@ -1223,7 +1219,7 @@ async function trackCommand(opts) {
1223
1219
  durationMs: opts.durationMs,
1224
1220
  errorCode: opts.errorCode,
1225
1221
  options: opts.options,
1226
- cliVersion: "0.1.11",
1222
+ cliVersion: "0.1.12",
1227
1223
  os: `${os.platform()} ${os.release()}`
1228
1224
  };
1229
1225
  const posthog = getPostHog();
@@ -1260,7 +1256,7 @@ external_dotenv_config({
1260
1256
  external_dotenv_config();
1261
1257
  function createProgram() {
1262
1258
  const program = new Command();
1263
- program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.11");
1259
+ program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.12");
1264
1260
  let startTime = 0;
1265
1261
  program.hook('preAction', ()=>{
1266
1262
  startTime = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdesign/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "CLI for SuperDesign Platform - agent skills for Claude Code",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",