@leitwerk-dev/server 0.5.12 → 0.5.13

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.
@@ -311,6 +311,8 @@ interface WorkerRuntimeProfileConfig {
311
311
  interface CommitMessageTemplateConfig {
312
312
  /** Human-readable instructions applied to generated commit messages. @internal */
313
313
  rules: string;
314
+ /** Append a Git Signed-off-by trailer (`git commit --signoff`) to commits. @internal */
315
+ signoff?: boolean;
314
316
  }
315
317
  /** @internal */
316
318
  interface CommitMessageConfig {
@@ -0,0 +1,8 @@
1
+ import {
2
+ createAppContext
3
+ } from "./chunk-KR2Q3NLJ.js";
4
+ import "./chunk-CHK7ZFJS.js";
5
+ export {
6
+ createAppContext
7
+ };
8
+ //# sourceMappingURL=app-WPJIIDUW.js.map
@@ -212,9 +212,11 @@ function resolveCommitMessageMetadata(repoLocator, config) {
212
212
  ([locator]) => normalizeRepositoryLocator(locator) === normalizedLocator
213
213
  )?.[1];
214
214
  const templateId = override2 ?? config?.default_template ?? null;
215
+ const template = templateId ? config?.templates[templateId] : void 0;
215
216
  return {
216
217
  templateId,
217
- rules: (templateId ? config?.templates[templateId]?.rules : void 0) ?? BUILT_IN_COMMIT_MESSAGE_RULES
218
+ rules: template?.rules ?? BUILT_IN_COMMIT_MESSAGE_RULES,
219
+ ...template?.signoff ? { signoff: true } : {}
218
220
  };
219
221
  }
220
222
 
@@ -494,7 +496,13 @@ var configSchema = v.looseObject({
494
496
  skill_repositories: v.optional(v.array(skillRepositorySchema)),
495
497
  commit_messages: v.optional(
496
498
  v.strictObject({
497
- templates: v.record(v.string(), v.strictObject({ rules: v.pipe(v.string(), v.nonEmpty()) })),
499
+ templates: v.record(
500
+ v.string(),
501
+ v.strictObject({
502
+ rules: v.pipe(v.string(), v.nonEmpty()),
503
+ signoff: v.optional(v.boolean())
504
+ })
505
+ ),
498
506
  default_template: v.optional(v.nullable(v.pipe(v.string(), v.nonEmpty()))),
499
507
  repositories: v.record(v.string(), v.pipe(v.string(), v.nonEmpty()))
500
508
  })
@@ -13525,4 +13533,4 @@ export {
13525
13533
  createProjectedSessionSnapshotStore,
13526
13534
  createBroadcaster
13527
13535
  };
13528
- //# sourceMappingURL=chunk-65CBLH7U.js.map
13536
+ //# sourceMappingURL=chunk-CHK7ZFJS.js.map