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/README.md +23 -9
- package/dist/conformance/adapter.d.ts +27 -1
- package/dist/conformance/adapter.d.ts.map +1 -1
- package/dist/conformance/adapter.js +184 -17
- package/dist/conformance/adapter.js.map +1 -1
- package/dist/conformance/index.d.ts +139 -1
- package/dist/conformance/index.d.ts.map +1 -1
- package/dist/conformance/index.js +193 -0
- package/dist/conformance/index.js.map +1 -1
- package/dist/protocol/contract.d.ts +62 -2
- package/dist/protocol/contract.d.ts.map +1 -1
- package/dist/protocol/contract.js +177 -5
- package/dist/protocol/contract.js.map +1 -1
- package/dist/protocol/errors.d.ts +2 -0
- package/dist/protocol/errors.d.ts.map +1 -1
- package/dist/protocol/errors.js +2 -0
- package/dist/protocol/errors.js.map +1 -1
- package/dist/protocol/version.d.ts +1 -1
- package/dist/protocol/version.js +1 -1
- package/dist/templates.d.ts +12 -0
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +16 -3
- package/dist/templates.js.map +1 -1
- package/docs/compatibility.md +18 -2
- package/docs/enrollment.md +97 -25
- package/docs/releasing.md +24 -22
- package/package.json +1 -1
- package/src/conformance/adapter.ts +398 -22
- package/src/conformance/index.ts +271 -1
- package/src/protocol/contract.ts +254 -11
- package/src/protocol/errors.ts +2 -0
- package/src/protocol/version.ts +2 -2
- package/src/templates.ts +20 -3
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
|
-
|
|
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
|
-
|
|
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 {
|