@superdesign/cli 0.1.9 → 0.1.11
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/config/constants.d.ts +1 -1
- package/dist/index.cjs +14 -4
- package/dist/index.js +14 -4
- package/package.json +1 -1
|
@@ -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.
|
|
15
|
+
export declare const CLI_VERSION = "0.1.11";
|
|
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.
|
|
319
|
+
cliVersion: "0.1.11",
|
|
320
320
|
os: `${external_os_namespaceObject.platform()} ${external_os_namespaceObject.release()}`,
|
|
321
321
|
hostname: external_os_namespaceObject.hostname()
|
|
322
322
|
});
|
|
@@ -875,7 +875,17 @@ superdesign --help
|
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
877
|
function createIterateDesignDraftCommand() {
|
|
878
|
-
const command = new external_commander_namespaceObject.Command('iterate-design-draft').description(
|
|
878
|
+
const command = new external_commander_namespaceObject.Command('iterate-design-draft').description(`Generate design based on existing draft or template, the main design exploration tool
|
|
879
|
+
|
|
880
|
+
Usage Examples:
|
|
881
|
+
# Iterate: replace mode (single variation, updates in place)
|
|
882
|
+
superdesign iterate-design-draft --draft-id <id> -p "..." --mode replace --json
|
|
883
|
+
|
|
884
|
+
# Iterate: Explore multiple versions & variations (each prompt = one variation, prompt should be just directional, do not specify color, style, let superdesign design expert fill in details, you just give direction)
|
|
885
|
+
superdesign iterate-design-draft --draft-id <id> -p "dark theme" -p "minimal" -p "bold" --mode branch --json
|
|
886
|
+
|
|
887
|
+
# Iterate: Auto explore (only give exploration direction, and let Superdesign fill in details, e.g. explore different styles; Default do NOT use auto explore mode)
|
|
888
|
+
superdesign iterate-design-draft --draft-id <id> -p "..." --mode branch --count 3 --json`).requiredOption('--draft-id <id>', 'Draft ID to iterate on').requiredOption('-p, --prompt <prompt...>', 'Iteration prompt(s). Use multiple -p for specific prompts per variation.').requiredOption('--mode <mode>', 'Iteration mode (replace or branch)').option('--count <count>', 'Number of variations (1-4). Only used when single prompt provided.').option('--json', 'Output in JSON format').addOption(new external_commander_namespaceObject.Option('--project-id <id>').hideHelp()).action(async (options)=>{
|
|
879
889
|
if (options.json) setJsonMode(true);
|
|
880
890
|
job_runner_requireAuth(manager_isAuthenticated);
|
|
881
891
|
const { prompts, count, mode } = validateOptions(options);
|
|
@@ -1305,7 +1315,7 @@ superdesign --help
|
|
|
1305
1315
|
durationMs: opts.durationMs,
|
|
1306
1316
|
errorCode: opts.errorCode,
|
|
1307
1317
|
options: opts.options,
|
|
1308
|
-
cliVersion: "0.1.
|
|
1318
|
+
cliVersion: "0.1.11",
|
|
1309
1319
|
os: `${external_os_default().platform()} ${external_os_default().release()}`
|
|
1310
1320
|
};
|
|
1311
1321
|
const posthog = getPostHog();
|
|
@@ -1342,7 +1352,7 @@ superdesign --help
|
|
|
1342
1352
|
(0, external_dotenv_namespaceObject.config)();
|
|
1343
1353
|
function createProgram() {
|
|
1344
1354
|
const program = new external_commander_namespaceObject.Command();
|
|
1345
|
-
program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.
|
|
1355
|
+
program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.11");
|
|
1346
1356
|
let startTime = 0;
|
|
1347
1357
|
program.hook('preAction', ()=>{
|
|
1348
1358
|
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.
|
|
229
|
+
cliVersion: "0.1.11",
|
|
230
230
|
os: `${platform()} ${release()}`,
|
|
231
231
|
hostname: hostname()
|
|
232
232
|
});
|
|
@@ -785,7 +785,17 @@ function validateOptions(options) {
|
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
787
|
function createIterateDesignDraftCommand() {
|
|
788
|
-
const command = new Command('iterate-design-draft').description(
|
|
788
|
+
const command = new Command('iterate-design-draft').description(`Generate design based on existing draft or template, the main design exploration tool
|
|
789
|
+
|
|
790
|
+
Usage Examples:
|
|
791
|
+
# Iterate: replace mode (single variation, updates in place)
|
|
792
|
+
superdesign iterate-design-draft --draft-id <id> -p "..." --mode replace --json
|
|
793
|
+
|
|
794
|
+
# Iterate: Explore multiple versions & variations (each prompt = one variation, prompt should be just directional, do not specify color, style, let superdesign design expert fill in details, you just give direction)
|
|
795
|
+
superdesign iterate-design-draft --draft-id <id> -p "dark theme" -p "minimal" -p "bold" --mode branch --json
|
|
796
|
+
|
|
797
|
+
# Iterate: Auto explore (only give exploration direction, and let Superdesign fill in details, e.g. explore different styles; Default do NOT use auto explore mode)
|
|
798
|
+
superdesign iterate-design-draft --draft-id <id> -p "..." --mode branch --count 3 --json`).requiredOption('--draft-id <id>', 'Draft ID to iterate on').requiredOption('-p, --prompt <prompt...>', 'Iteration prompt(s). Use multiple -p for specific prompts per variation.').requiredOption('--mode <mode>', 'Iteration mode (replace or branch)').option('--count <count>', 'Number of variations (1-4). Only used when single prompt provided.').option('--json', 'Output in JSON format').addOption(new Option('--project-id <id>').hideHelp()).action(async (options)=>{
|
|
789
799
|
if (options.json) setJsonMode(true);
|
|
790
800
|
job_runner_requireAuth(manager_isAuthenticated);
|
|
791
801
|
const { prompts, count, mode } = validateOptions(options);
|
|
@@ -1213,7 +1223,7 @@ async function trackCommand(opts) {
|
|
|
1213
1223
|
durationMs: opts.durationMs,
|
|
1214
1224
|
errorCode: opts.errorCode,
|
|
1215
1225
|
options: opts.options,
|
|
1216
|
-
cliVersion: "0.1.
|
|
1226
|
+
cliVersion: "0.1.11",
|
|
1217
1227
|
os: `${os.platform()} ${os.release()}`
|
|
1218
1228
|
};
|
|
1219
1229
|
const posthog = getPostHog();
|
|
@@ -1250,7 +1260,7 @@ external_dotenv_config({
|
|
|
1250
1260
|
external_dotenv_config();
|
|
1251
1261
|
function createProgram() {
|
|
1252
1262
|
const program = new Command();
|
|
1253
|
-
program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.
|
|
1263
|
+
program.name('superdesign').description('SuperDesign CLI - AI product designer for coding agents').version("0.1.11");
|
|
1254
1264
|
let startTime = 0;
|
|
1255
1265
|
program.hook('preAction', ()=>{
|
|
1256
1266
|
startTime = Date.now();
|