borgmcp-shared 0.6.2 → 0.6.4

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/src/templates.ts CHANGED
@@ -30,12 +30,29 @@ export type MessageTaxonomy = MessageTaxonomyClass[];
30
30
 
31
31
  export interface Template {
32
32
  name: string;
33
+ label: string;
34
+ short_description: string;
33
35
  description: string;
34
36
  roles: TemplateRole[];
35
37
  cube_directive?: string;
36
38
  message_taxonomy?: MessageTaxonomy;
37
39
  }
38
40
 
41
+ export const LEGACY_DEFAULT_TEMPLATE_LABEL = 'Default (legacy)';
42
+
43
+ export const NEW_CUBE_TEMPLATE_PRESENTATIONS = [
44
+ {
45
+ name: 'software-dev',
46
+ label: 'Software Development',
47
+ short_description: 'Recommended for code repositories.',
48
+ },
49
+ {
50
+ name: 'starter',
51
+ label: 'Starter',
52
+ short_description: 'Minimal roles for general projects.',
53
+ },
54
+ ] as const;
55
+
39
56
  export const ESCALATION_DISCIPLINE = `
40
57
 
41
58
  Escalation:
@@ -318,7 +335,7 @@ const SECURITY_AUDITOR = `Perform only the routed security review of an exact so
318
335
  - Do not implement fixes, merge, deploy, publish, tag, or release.${SERIALIZED_REVIEW_ROUNDS_DISCIPLINE}${ESCALATION_DISCIPLINE}`;
319
336
 
320
337
  const SOFTWARE_DEV: Template = {
321
- name: 'software-dev',
338
+ ...NEW_CUBE_TEMPLATE_PRESENTATIONS[0],
322
339
  description: 'Scope-first multi-agent software development with one human Coordinator, implementation, and proportionate review roles.',
323
340
  cube_directive: SOFTWARE_DEV_DIRECTIVE,
324
341
  message_taxonomy: SOFTWARE_DEV_TAXONOMY,
@@ -432,7 +449,7 @@ const STARTER_TAXONOMY: MessageTaxonomy = [
432
449
  ];
433
450
 
434
451
  const STARTER: Template = {
435
- name: 'starter',
452
+ ...NEW_CUBE_TEMPLATE_PRESENTATIONS[1],
436
453
  description: 'Minimal scope-first template for general projects: a human Coordinator, a Worker, and a Reviewer.',
437
454
  cube_directive: `## Scope and coordination
438
455
 
@@ -487,8 +504,8 @@ const STARTER: Template = {
487
504
  };
488
505
 
489
506
  export const TEMPLATES: Record<string, Template> = {
490
- starter: STARTER,
491
507
  'software-dev': SOFTWARE_DEV,
508
+ starter: STARTER,
492
509
  };
493
510
 
494
511
  export function getTemplate(name: string): Template | null {