@superdesign/cli 0.1.7 → 0.1.8

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/README.md CHANGED
@@ -218,7 +218,6 @@ Execute:
218
218
  ```bash
219
219
  superdesign execute-flow-pages \
220
220
  --draft-id <draftId> \
221
- --source-node-id <nodeId> \
222
221
  --pages '[{"title":"Signup","prompt":"..."},{"title":"Payment","prompt":"..."}]' \
223
222
  --json
224
223
  ```
@@ -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.7";
15
+ export declare const CLI_VERSION = "0.1.8";
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.7",
319
+ cliVersion: "0.1.8",
320
320
  os: `${external_os_namespaceObject.platform()} ${external_os_namespaceObject.release()}`,
321
321
  hostname: external_os_namespaceObject.hostname()
322
322
  });
@@ -916,9 +916,10 @@ superdesign --help
916
916
  return command;
917
917
  }
918
918
  function createPlanFlowPagesCommand() {
919
- const command = new external_commander_namespaceObject.Command('plan-flow-pages').description('Plan flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').requiredOption('--source-node-id <id>', 'Source node ID in the flow').option('--context <context>', 'Additional context for flow planning').option('--json', 'Output in JSON format').action(async (options)=>{
919
+ 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)=>{
920
920
  if (options.json) setJsonMode(true);
921
921
  job_runner_requireAuth(manager_isAuthenticated);
922
+ const sourceNodeId = `draft-variant-${options.draftId}`;
922
923
  await runJob({
923
924
  startLabel: 'Planning flow pages...',
924
925
  pollingLabel: 'AI is analyzing and planning pages...',
@@ -926,7 +927,7 @@ superdesign --help
926
927
  timeoutLabel: 'Planning timed out',
927
928
  failureLabel: 'Failed to plan flow pages',
928
929
  startJob: ()=>planFlowPages(options.draftId, {
929
- sourceNodeId: options.sourceNodeId,
930
+ sourceNodeId,
930
931
  flowContext: options.context
931
932
  }),
932
933
  transformResult: (job)=>({
@@ -958,7 +959,7 @@ superdesign --help
958
959
  return parsed;
959
960
  }
960
961
  function createExecuteFlowPagesCommand() {
961
- const command = new external_commander_namespaceObject.Command('execute-flow-pages').description('Generate flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').requiredOption('--source-node-id <id>', 'Source node ID in the flow').requiredOption('--pages <json>', 'JSON array of pages to generate [{title, prompt}]').option('--context <context>', 'Additional context for flow generation').option('--json', 'Output in JSON format').action(async (options)=>{
962
+ const command = new external_commander_namespaceObject.Command('execute-flow-pages').description('Generate flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').requiredOption('--pages <json>', 'JSON array of pages to generate [{title, prompt}]').option('--context <context>', 'Additional context for flow generation').option('--json', 'Output in JSON format').action(async (options)=>{
962
963
  if (options.json) setJsonMode(true);
963
964
  job_runner_requireAuth(manager_isAuthenticated);
964
965
  let pages;
@@ -978,6 +979,7 @@ superdesign --help
978
979
  output_error('Maximum 10 pages allowed');
979
980
  process.exit(EXIT_CODES.VALIDATION_ERROR);
980
981
  }
982
+ const sourceNodeId = `draft-variant-${options.draftId}`;
981
983
  const timeoutMs = Math.max(300000, 2 * pages.length * 60000);
982
984
  await runJob({
983
985
  startLabel: `Generating ${pages.length} flow page(s)...`,
@@ -987,7 +989,7 @@ superdesign --help
987
989
  failureLabel: 'Failed to execute flow pages',
988
990
  timeoutMs,
989
991
  startJob: ()=>executeFlowPages(options.draftId, {
990
- sourceNodeId: options.sourceNodeId,
992
+ sourceNodeId,
991
993
  flowContext: options.context,
992
994
  pages
993
995
  }),
@@ -1304,7 +1306,7 @@ superdesign --help
1304
1306
  durationMs: opts.durationMs,
1305
1307
  errorCode: opts.errorCode,
1306
1308
  options: opts.options,
1307
- cliVersion: "0.1.7",
1309
+ cliVersion: "0.1.8",
1308
1310
  os: `${external_os_default().platform()} ${external_os_default().release()}`
1309
1311
  };
1310
1312
  const posthog = getPostHog();
@@ -1341,7 +1343,7 @@ superdesign --help
1341
1343
  (0, external_dotenv_namespaceObject.config)();
1342
1344
  function createProgram() {
1343
1345
  const program = new external_commander_namespaceObject.Command();
1344
- program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.7");
1346
+ program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.8");
1345
1347
  let startTime = 0;
1346
1348
  program.hook('preAction', ()=>{
1347
1349
  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.7",
229
+ cliVersion: "0.1.8",
230
230
  os: `${platform()} ${release()}`,
231
231
  hostname: hostname()
232
232
  });
@@ -826,9 +826,10 @@ function createIterateDesignDraftCommand() {
826
826
  return command;
827
827
  }
828
828
  function createPlanFlowPagesCommand() {
829
- const command = new Command('plan-flow-pages').description('Plan flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').requiredOption('--source-node-id <id>', 'Source node ID in the flow').option('--context <context>', 'Additional context for flow planning').option('--json', 'Output in JSON format').action(async (options)=>{
829
+ 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)=>{
830
830
  if (options.json) setJsonMode(true);
831
831
  job_runner_requireAuth(manager_isAuthenticated);
832
+ const sourceNodeId = `draft-variant-${options.draftId}`;
832
833
  await runJob({
833
834
  startLabel: 'Planning flow pages...',
834
835
  pollingLabel: 'AI is analyzing and planning pages...',
@@ -836,7 +837,7 @@ function createPlanFlowPagesCommand() {
836
837
  timeoutLabel: 'Planning timed out',
837
838
  failureLabel: 'Failed to plan flow pages',
838
839
  startJob: ()=>planFlowPages(options.draftId, {
839
- sourceNodeId: options.sourceNodeId,
840
+ sourceNodeId,
840
841
  flowContext: options.context
841
842
  }),
842
843
  transformResult: (job)=>({
@@ -868,7 +869,7 @@ function parsePages(pagesJson) {
868
869
  return parsed;
869
870
  }
870
871
  function createExecuteFlowPagesCommand() {
871
- const command = new Command('execute-flow-pages').description('Generate flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').requiredOption('--source-node-id <id>', 'Source node ID in the flow').requiredOption('--pages <json>', 'JSON array of pages to generate [{title, prompt}]').option('--context <context>', 'Additional context for flow generation').option('--json', 'Output in JSON format').action(async (options)=>{
872
+ const command = new Command('execute-flow-pages').description('Generate flow pages using AI').requiredOption('--draft-id <id>', 'Source draft ID').requiredOption('--pages <json>', 'JSON array of pages to generate [{title, prompt}]').option('--context <context>', 'Additional context for flow generation').option('--json', 'Output in JSON format').action(async (options)=>{
872
873
  if (options.json) setJsonMode(true);
873
874
  job_runner_requireAuth(manager_isAuthenticated);
874
875
  let pages;
@@ -888,6 +889,7 @@ function createExecuteFlowPagesCommand() {
888
889
  output_error('Maximum 10 pages allowed');
889
890
  process.exit(EXIT_CODES.VALIDATION_ERROR);
890
891
  }
892
+ const sourceNodeId = `draft-variant-${options.draftId}`;
891
893
  const timeoutMs = Math.max(300000, 2 * pages.length * 60000);
892
894
  await runJob({
893
895
  startLabel: `Generating ${pages.length} flow page(s)...`,
@@ -897,7 +899,7 @@ function createExecuteFlowPagesCommand() {
897
899
  failureLabel: 'Failed to execute flow pages',
898
900
  timeoutMs,
899
901
  startJob: ()=>executeFlowPages(options.draftId, {
900
- sourceNodeId: options.sourceNodeId,
902
+ sourceNodeId,
901
903
  flowContext: options.context,
902
904
  pages
903
905
  }),
@@ -1212,7 +1214,7 @@ async function trackCommand(opts) {
1212
1214
  durationMs: opts.durationMs,
1213
1215
  errorCode: opts.errorCode,
1214
1216
  options: opts.options,
1215
- cliVersion: "0.1.7",
1217
+ cliVersion: "0.1.8",
1216
1218
  os: `${os.platform()} ${os.release()}`
1217
1219
  };
1218
1220
  const posthog = getPostHog();
@@ -1249,7 +1251,7 @@ external_dotenv_config({
1249
1251
  external_dotenv_config();
1250
1252
  function createProgram() {
1251
1253
  const program = new Command();
1252
- program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.7");
1254
+ program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.8");
1253
1255
  let startTime = 0;
1254
1256
  program.hook('preAction', ()=>{
1255
1257
  startTime = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdesign/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "CLI for SuperDesign Platform - agent skills for Claude Code",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",