architecture-harness 0.14.0 → 0.16.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/package.json +1 -1
- package/src/cli/dispatch-guard.mjs +5 -3
- package/src/cli/dispatch-guard.test.mjs +83 -0
- package/src/cli/dispatch-reminder.mjs +45 -9
- package/src/cli/dispatch-reminder.test.mjs +66 -2
- package/src/cli/dispatch-slot.mjs +151 -36
- package/src/cli/dispatch-slot.test.mjs +160 -11
- package/src/cli/dispatch.mjs +100 -8
- package/src/cli/dispatch.test.mjs +105 -1
- package/src/cli/explore-guard.mjs +211 -0
- package/src/cli/explore-guard.test.mjs +193 -0
- package/src/cli/explore-hint.mjs +85 -0
- package/src/cli/explore-hint.test.mjs +134 -0
- package/src/cli/plugin-agents.test.mjs +11 -5
- package/src/config.mjs +33 -2
package/src/config.mjs
CHANGED
|
@@ -414,21 +414,52 @@ export const defaults = {
|
|
|
414
414
|
|
|
415
415
|
// What each key of `swarm.dispatch` means when a repository omits it. A list replaces its default.
|
|
416
416
|
export const dispatchDefaults = {
|
|
417
|
-
// Types that may omit `model`: the plugin's
|
|
417
|
+
// Types that may omit `model`: the plugin's four, and the bare names of a user-level copy.
|
|
418
418
|
allowedTypes: [
|
|
419
419
|
"sdd-implementer",
|
|
420
420
|
"sdd-planner",
|
|
421
421
|
"sdd-reviewer",
|
|
422
|
+
"sdd-branch-reviewer",
|
|
422
423
|
"architecture:sdd-implementer",
|
|
423
424
|
"architecture:sdd-planner",
|
|
424
425
|
"architecture:sdd-reviewer",
|
|
426
|
+
"architecture:sdd-branch-reviewer",
|
|
425
427
|
],
|
|
426
|
-
// Types that share
|
|
428
|
+
// Types that share the slots of a session.
|
|
427
429
|
implementerTypes: ["sdd-implementer", "architecture:sdd-implementer"],
|
|
428
430
|
// The longest prompt, in characters. A brief belongs in a file.
|
|
429
431
|
maxPromptChars: 12000,
|
|
430
432
|
// A slot with no stop expires after this many minutes.
|
|
431
433
|
slotMinutes: 60,
|
|
434
|
+
// How many implementers run at once in a session. Each needs paths of its own, and a worktree.
|
|
435
|
+
implementerSlots: 1,
|
|
436
|
+
// The model families each type's named `model` may carry. `"*"` covers every other type.
|
|
437
|
+
models: {
|
|
438
|
+
"sdd-planner": ["opus"],
|
|
439
|
+
"architecture:sdd-planner": ["opus"],
|
|
440
|
+
"sdd-branch-reviewer": ["opus"],
|
|
441
|
+
"architecture:sdd-branch-reviewer": ["opus"],
|
|
442
|
+
"sdd-implementer": ["sonnet"],
|
|
443
|
+
"architecture:sdd-implementer": ["sonnet"],
|
|
444
|
+
"sdd-reviewer": ["sonnet"],
|
|
445
|
+
"architecture:sdd-reviewer": ["sonnet"],
|
|
446
|
+
"*": ["sonnet", "haiku"],
|
|
447
|
+
},
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
// The model families the guard knows. A model string's family is the first of these it
|
|
451
|
+
// contains, lower-cased, so a new release under an existing family needs no kit change.
|
|
452
|
+
export const MODEL_FAMILIES = ["opus", "sonnet", "haiku", "fable"];
|
|
453
|
+
|
|
454
|
+
// What each key of `swarm.explore` means when a repository omits it. The kit names no tool; a
|
|
455
|
+
// repository lists its own index, call graph or summarizer in `tools` and `summarizer`.
|
|
456
|
+
export const exploreDefaults = {
|
|
457
|
+
tools: [],
|
|
458
|
+
summarizer: null,
|
|
459
|
+
maxReadLines: 300,
|
|
460
|
+
maxGrepLines: 80,
|
|
461
|
+
maxOutputChars: 20000,
|
|
462
|
+
exempt: [],
|
|
432
463
|
};
|
|
433
464
|
|
|
434
465
|
function isPlainObject(value) {
|