@sprucelabs/spruce-cli 14.29.12 → 14.29.16

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.d.ts +3 -0
  3. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.js +37 -0
  4. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.js.map +1 -0
  5. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.d.ts +3 -0
  6. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.js +51 -0
  7. package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.js.map +1 -0
  8. package/build/.spruce/schemas/schemas.types.d.ts +84 -16
  9. package/build/.spruce/schemas/schemas.types.js.map +1 -1
  10. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js +2 -2
  11. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js.map +1 -1
  12. package/build/__tests__/testDirsAndFiles/related_schemas/v2020_10_06/skillWithExtraField.builder.d.ts +1 -1
  13. package/build/constants.d.ts +1 -1
  14. package/build/constants.js +1 -1
  15. package/build/constants.js.map +1 -1
  16. package/build/features/skill/actions/LoginAction.js +1 -1
  17. package/build/features/skill/actions/LoginAction.js.map +1 -1
  18. package/build/features/skill/actions/RegisterAction.js +1 -1
  19. package/build/features/skill/actions/RegisterAction.js.map +1 -1
  20. package/build/interfaces/TerminalInterface.js +1 -1
  21. package/build/interfaces/TerminalInterface.js.map +1 -1
  22. package/build/schemas/v2020_07_22/setupTestsOptions.builder.js +1 -1
  23. package/build/schemas/v2020_07_22/setupTestsOptions.builder.js.map +1 -1
  24. package/package.json +29 -29
  25. package/src/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.ts +25 -0
  26. package/src/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.ts +43 -0
  27. package/src/.spruce/schemas/schemas.types.ts +102 -18
  28. package/src/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.ts +2 -2
  29. package/src/constants.ts +1 -1
  30. package/src/features/skill/actions/LoginAction.ts +1 -1
  31. package/src/features/skill/actions/RegisterAction.ts +1 -1
  32. package/src/interfaces/TerminalInterface.ts +1 -1
  33. package/src/schemas/v2020_07_22/setupTestsOptions.builder.ts +1 -1
@@ -374,44 +374,83 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
374
374
  namespace SpruceSchemas.Heartwood.v2021_02_11 {
375
375
 
376
376
 
377
- interface RegisterSkillViewsEmitPayload {
377
+ interface ListViewsResult {
378
378
 
379
379
 
380
- 'ids': string[]
381
-
382
- 'source': string
383
-
384
- 'theme'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme| undefined | null
380
+ 'namespace': string
381
+ /** Skill view ids. For now this is every view, but soon will be only skill views */
382
+ 'svcIds': string[]
383
+ /** View ids. For now this is every view, but soon will be only views (not skill views) */
384
+ 'vcIds': string[]
385
385
  }
386
386
 
387
- interface RegisterSkillViewsEmitPayloadSchema extends SpruceSchema.Schema {
388
- id: 'registerSkillViewsEmitPayload',
387
+ interface ListViewsResultSchema extends SpruceSchema.Schema {
388
+ id: 'listViewsResult',
389
389
  version: 'v2021_02_11',
390
390
  namespace: 'Heartwood',
391
391
  name: '',
392
392
  fields: {
393
393
  /** . */
394
- 'ids': {
394
+ 'namespace': {
395
395
  type: 'text',
396
396
  isRequired: true,
397
+ options: undefined
398
+ },
399
+ /** Skill view ids. For now this is every view, but soon will be only skill views */
400
+ 'svcIds': {
401
+ label: 'Skill view ids',
402
+ type: 'id',
403
+ isRequired: true,
404
+ hint: 'For now this is every view, but soon will be only skill views',
397
405
  isArray: true,
406
+ minArrayLength: 0,
398
407
  options: undefined
399
408
  },
400
- /** . */
401
- 'source': {
402
- type: 'text',
409
+ /** View ids. For now this is every view, but soon will be only views (not skill views) */
410
+ 'vcIds': {
411
+ label: 'View ids',
412
+ type: 'id',
403
413
  isRequired: true,
414
+ hint: 'For now this is every view, but soon will be only views (not skill views)',
415
+ isArray: true,
416
+ minArrayLength: 0,
404
417
  options: undefined
405
418
  },
419
+ }
420
+ }
421
+
422
+ type ListViewsResultEntity = SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.ListViewsResultSchema>
423
+
424
+ }
425
+
426
+
427
+ namespace SpruceSchemas.Heartwood.v2021_02_11 {
428
+
429
+
430
+ interface ListViewsResponsePayload {
431
+
432
+
433
+ 'views': SpruceSchemas.Heartwood.v2021_02_11.ListViewsResult[]
434
+ }
435
+
436
+ interface ListViewsResponsePayloadSchema extends SpruceSchema.Schema {
437
+ id: 'listViewsResponsePayload',
438
+ version: 'v2021_02_11',
439
+ namespace: 'Heartwood',
440
+ name: '',
441
+ fields: {
406
442
  /** . */
407
- 'theme': {
443
+ 'views': {
408
444
  type: 'schema',
409
- options: {schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ThemeSchema,}
445
+ isRequired: true,
446
+ isArray: true,
447
+ minArrayLength: 0,
448
+ options: {schema: SpruceSchemas.Heartwood.v2021_02_11.ListViewsResultSchema,}
410
449
  },
411
450
  }
412
451
  }
413
452
 
414
- type RegisterSkillViewsEmitPayloadEntity = SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.RegisterSkillViewsEmitPayloadSchema>
453
+ type ListViewsResponsePayloadEntity = SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.ListViewsResponsePayloadSchema>
415
454
 
416
455
  }
417
456
 
@@ -453,6 +492,51 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
453
492
  }
454
493
 
455
494
 
495
+ namespace SpruceSchemas.Heartwood.v2021_02_11 {
496
+
497
+
498
+ interface RegisterSkillViewsEmitPayload {
499
+
500
+
501
+ 'ids': string[]
502
+
503
+ 'source': string
504
+
505
+ 'theme'?: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Theme| undefined | null
506
+ }
507
+
508
+ interface RegisterSkillViewsEmitPayloadSchema extends SpruceSchema.Schema {
509
+ id: 'registerSkillViewsEmitPayload',
510
+ version: 'v2021_02_11',
511
+ namespace: 'Heartwood',
512
+ name: '',
513
+ fields: {
514
+ /** . */
515
+ 'ids': {
516
+ type: 'text',
517
+ isRequired: true,
518
+ isArray: true,
519
+ options: undefined
520
+ },
521
+ /** . */
522
+ 'source': {
523
+ type: 'text',
524
+ isRequired: true,
525
+ options: undefined
526
+ },
527
+ /** . */
528
+ 'theme': {
529
+ type: 'schema',
530
+ options: {schema: SpruceSchemas.HeartwoodViewControllers.v2021_02_11.ThemeSchema,}
531
+ },
532
+ }
533
+ }
534
+
535
+ type RegisterSkillViewsEmitPayloadEntity = SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.RegisterSkillViewsEmitPayloadSchema>
536
+
537
+ }
538
+
539
+
456
540
  namespace SpruceSchemas.Heartwood.v2021_02_11 {
457
541
 
458
542
 
@@ -1360,7 +1444,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1360
1444
 
1361
1445
  /** Demo phone number. */
1362
1446
  'demoNumber': string
1363
- /** Skill slug. */
1447
+ /** Namespace. */
1364
1448
  'skillSlug': string
1365
1449
  }
1366
1450
 
@@ -1378,9 +1462,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
1378
1462
  isRequired: true,
1379
1463
  options: undefined
1380
1464
  },
1381
- /** Skill slug. */
1465
+ /** Namespace. */
1382
1466
  'skillSlug': {
1383
- label: 'Skill slug',
1467
+ label: 'Namespace',
1384
1468
  type: 'text',
1385
1469
  isRequired: true,
1386
1470
  options: undefined
@@ -17,9 +17,9 @@ const setupTestsOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SetupTestsOpt
17
17
  isRequired: true,
18
18
  options: undefined
19
19
  },
20
- /** Skill slug. */
20
+ /** Namespace. */
21
21
  'skillSlug': {
22
- label: 'Skill slug',
22
+ label: 'Namespace',
23
23
  type: 'text',
24
24
  isRequired: true,
25
25
  options: undefined
package/src/constants.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const DEFAULT_HOST = 'https://mercury.spruce.ai'
2
- export const CLI_HERO = 'SPRCBT'
2
+ export const CLI_HERO = 'Sprucebot'
3
3
 
4
4
  export const FILE_ACTION_OVERWRITE = 'overwrite'
5
5
  export const FILE_ACTION_SKIP = 'skip'
@@ -13,7 +13,7 @@ const optionsSchema = buildSchema({
13
13
  fields: {
14
14
  skillSlug: {
15
15
  type: 'text',
16
- label: 'Skill slug',
16
+ label: 'Namespace',
17
17
  },
18
18
  },
19
19
  })
@@ -16,7 +16,7 @@ const optionsSchema = buildSchema({
16
16
  },
17
17
  nameKebab: {
18
18
  type: 'text',
19
- label: 'Slug',
19
+ label: 'Namespace',
20
20
  isRequired: true,
21
21
  },
22
22
  description: {
@@ -288,7 +288,7 @@ export default class TerminalInterface implements GraphicsInterface {
288
288
  }
289
289
 
290
290
  public renderHero(message: string, effects?: GraphicsTextEffect[]) {
291
- fonts.say(message, {
291
+ fonts.say(message.replace(/[aeiou]/gi, ''), {
292
292
  // Font: 'tiny',
293
293
  align: 'left',
294
294
  gradient: [GraphicsTextEffect.Red, GraphicsTextEffect.Blue],
@@ -13,7 +13,7 @@ export default buildSchema({
13
13
  },
14
14
  skillSlug: {
15
15
  type: 'text',
16
- label: 'Skill slug',
16
+ label: 'Namespace',
17
17
  isRequired: true,
18
18
  },
19
19
  },