@powerformer/refly-cli 0.1.0 → 0.1.1-beta.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.
package/dist/index.d.ts CHANGED
@@ -65,13 +65,13 @@ declare const WorkflowDraftSchema: z.ZodObject<{
65
65
  } | undefined;
66
66
  }, {
67
67
  name: string;
68
- description?: string | undefined;
69
68
  nodes?: {
70
69
  id: string;
71
70
  type: string;
72
71
  dependsOn?: string[] | undefined;
73
72
  input?: Record<string, unknown> | undefined;
74
73
  }[] | undefined;
74
+ description?: string | undefined;
75
75
  metadata?: {
76
76
  tags?: string[] | undefined;
77
77
  owner?: string | undefined;
@@ -172,13 +172,13 @@ declare const BuilderSessionSchema: z.ZodObject<{
172
172
  } | undefined;
173
173
  }, {
174
174
  name: string;
175
- description?: string | undefined;
176
175
  nodes?: {
177
176
  id: string;
178
177
  type: string;
179
178
  dependsOn?: string[] | undefined;
180
179
  input?: Record<string, unknown> | undefined;
181
180
  }[] | undefined;
181
+ description?: string | undefined;
182
182
  metadata?: {
183
183
  tags?: string[] | undefined;
184
184
  owner?: string | undefined;
@@ -231,9 +231,9 @@ declare const BuilderSessionSchema: z.ZodObject<{
231
231
  }>>;
232
232
  }, "strip", z.ZodTypeAny, {
233
233
  id: string;
234
- createdAt: string;
235
234
  updatedAt: string;
236
235
  version: number;
236
+ createdAt: string;
237
237
  validation: {
238
238
  ok: boolean;
239
239
  errors: {
@@ -264,18 +264,18 @@ declare const BuilderSessionSchema: z.ZodObject<{
264
264
  } | undefined;
265
265
  }, {
266
266
  id: string;
267
- createdAt: string;
268
267
  updatedAt: string;
268
+ createdAt: string;
269
269
  state: "IDLE" | "DRAFT" | "VALIDATED" | "COMMITTED" | "ABORTED";
270
270
  workflowDraft: {
271
271
  name: string;
272
- description?: string | undefined;
273
272
  nodes?: {
274
273
  id: string;
275
274
  type: string;
276
275
  dependsOn?: string[] | undefined;
277
276
  input?: Record<string, unknown> | undefined;
278
277
  }[] | undefined;
278
+ description?: string | undefined;
279
279
  metadata?: {
280
280
  tags?: string[] | undefined;
281
281
  owner?: string | undefined;
@@ -464,42 +464,42 @@ declare const ConfigSchema: z.ZodObject<{
464
464
  email: z.ZodString;
465
465
  name: z.ZodOptional<z.ZodString>;
466
466
  }, "strip", z.ZodTypeAny, {
467
- uid: string;
468
467
  email: string;
468
+ uid: string;
469
469
  name?: string | undefined;
470
470
  }, {
471
- uid: string;
472
471
  email: string;
472
+ uid: string;
473
473
  name?: string | undefined;
474
474
  }>>;
475
475
  }, "strip", z.ZodTypeAny, {
476
+ user?: {
477
+ email: string;
478
+ uid: string;
479
+ name?: string | undefined;
480
+ } | undefined;
481
+ provider?: "google" | "github" | undefined;
476
482
  method?: "oauth" | "apikey" | undefined;
477
483
  accessToken?: string | undefined;
478
484
  refreshToken?: string | undefined;
479
485
  expiresAt?: string | undefined;
480
- provider?: "google" | "github" | undefined;
481
486
  apiKey?: string | undefined;
482
487
  apiKeyId?: string | undefined;
483
488
  apiKeyName?: string | undefined;
489
+ }, {
484
490
  user?: {
485
- uid: string;
486
491
  email: string;
492
+ uid: string;
487
493
  name?: string | undefined;
488
494
  } | undefined;
489
- }, {
495
+ provider?: "google" | "github" | undefined;
490
496
  method?: "oauth" | "apikey" | undefined;
491
497
  accessToken?: string | undefined;
492
498
  refreshToken?: string | undefined;
493
499
  expiresAt?: string | undefined;
494
- provider?: "google" | "github" | undefined;
495
500
  apiKey?: string | undefined;
496
501
  apiKeyId?: string | undefined;
497
502
  apiKeyName?: string | undefined;
498
- user?: {
499
- uid: string;
500
- email: string;
501
- name?: string | undefined;
502
- } | undefined;
503
503
  }>>;
504
504
  api: z.ZodOptional<z.ZodObject<{
505
505
  endpoint: z.ZodDefault<z.ZodString>;
@@ -520,52 +520,52 @@ declare const ConfigSchema: z.ZodObject<{
520
520
  }>>;
521
521
  }, "strip", z.ZodTypeAny, {
522
522
  version: number;
523
+ skill?: {
524
+ installedVersion?: string | undefined;
525
+ installedAt?: string | undefined;
526
+ } | undefined;
523
527
  auth?: {
528
+ user?: {
529
+ email: string;
530
+ uid: string;
531
+ name?: string | undefined;
532
+ } | undefined;
533
+ provider?: "google" | "github" | undefined;
524
534
  method?: "oauth" | "apikey" | undefined;
525
535
  accessToken?: string | undefined;
526
536
  refreshToken?: string | undefined;
527
537
  expiresAt?: string | undefined;
528
- provider?: "google" | "github" | undefined;
529
538
  apiKey?: string | undefined;
530
539
  apiKeyId?: string | undefined;
531
540
  apiKeyName?: string | undefined;
532
- user?: {
533
- uid: string;
534
- email: string;
535
- name?: string | undefined;
536
- } | undefined;
537
541
  } | undefined;
538
542
  api?: {
539
543
  endpoint: string;
540
544
  } | undefined;
545
+ }, {
541
546
  skill?: {
542
547
  installedVersion?: string | undefined;
543
548
  installedAt?: string | undefined;
544
549
  } | undefined;
545
- }, {
546
550
  version?: number | undefined;
547
551
  auth?: {
552
+ user?: {
553
+ email: string;
554
+ uid: string;
555
+ name?: string | undefined;
556
+ } | undefined;
557
+ provider?: "google" | "github" | undefined;
548
558
  method?: "oauth" | "apikey" | undefined;
549
559
  accessToken?: string | undefined;
550
560
  refreshToken?: string | undefined;
551
561
  expiresAt?: string | undefined;
552
- provider?: "google" | "github" | undefined;
553
562
  apiKey?: string | undefined;
554
563
  apiKeyId?: string | undefined;
555
564
  apiKeyName?: string | undefined;
556
- user?: {
557
- uid: string;
558
- email: string;
559
- name?: string | undefined;
560
- } | undefined;
561
565
  } | undefined;
562
566
  api?: {
563
567
  endpoint?: string | undefined;
564
568
  } | undefined;
565
- skill?: {
566
- installedVersion?: string | undefined;
567
- installedAt?: string | undefined;
568
- } | undefined;
569
569
  }>;
570
570
  type Config = z.infer<typeof ConfigSchema>;
571
571
  /**
package/dist/index.js CHANGED
@@ -204,14 +204,6 @@ function getClaudeSkillDir() {
204
204
  function getClaudeCommandsDir() {
205
205
  return path.join(os.homedir(), ".claude", "commands");
206
206
  }
207
- function claudeDirectoriesExist() {
208
- const skillsDir = path.join(os.homedir(), ".claude", "skills");
209
- const commandsDir = getClaudeCommandsDir();
210
- return {
211
- skills: fs.existsSync(skillsDir),
212
- commands: fs.existsSync(commandsDir)
213
- };
214
- }
215
207
  function ensureDir(dir) {
216
208
  if (!fs.existsSync(dir)) {
217
209
  fs.mkdirSync(dir, { recursive: true, mode: 448 });
@@ -4935,7 +4927,6 @@ function installSkill() {
4935
4927
  commandsPath: null,
4936
4928
  version: getSkillVersion()
4937
4929
  };
4938
- const dirs = claudeDirectoriesExist();
4939
4930
  const sourceDir = getPackageSkillDir();
4940
4931
  const targetDir = getClaudeSkillDir();
4941
4932
  ensureDir(targetDir);
@@ -4955,12 +4946,11 @@ function installSkill() {
4955
4946
  fs5.copyFileSync(path5.join(refsSource, file), path5.join(refsTarget, file));
4956
4947
  }
4957
4948
  }
4958
- if (dirs.commands) {
4959
- const commandsDir = getClaudeCommandsDir();
4960
- result.commandsInstalled = installSlashCommands(sourceDir, commandsDir);
4961
- if (result.commandsInstalled) {
4962
- result.commandsPath = commandsDir;
4963
- }
4949
+ const commandsDir = getClaudeCommandsDir();
4950
+ ensureDir(commandsDir);
4951
+ result.commandsInstalled = installSlashCommands(sourceDir, commandsDir);
4952
+ if (result.commandsInstalled) {
4953
+ result.commandsPath = commandsDir;
4964
4954
  }
4965
4955
  updateSkillInfo(result.version);
4966
4956
  return result;