@aspruyt/xfg 8.2.0 → 8.3.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.
@@ -19,11 +19,13 @@ const CONVENTIONAL_TYPES = [
19
19
  const CONVENTIONAL_SUBJECT = new RegExp(`^(${CONVENTIONAL_TYPES.join("|")})(\\([a-z0-9._/-]+\\))?!?: \\S.*$`);
20
20
  const SYSTEM_PROMPT = `You write git commit messages and pull request summaries for automated configuration sync changes.
21
21
  You receive the list of changed files with unified diffs. Reply with a JSON object with exactly these keys:
22
- - "subject": a Conventional Commits subject line, at most ${MAX_SUBJECT_LENGTH} characters, format "type(scope): description". type is one of: ${CONVENTIONAL_TYPES.join(", ")}. scope is optional, lowercase, and names the area changed (e.g. workflows, devcontainer, eslint). description is imperative, lowercase, no trailing period, and says what actually changed (e.g. "pin actions/checkout to v5"), never just "sync files".
23
- - "body": an optional commit body (plain text, wrap at 72 columns) explaining the notable changes. Use an empty string if the subject says it all.
24
- - "prSummary": a short markdown summary for a pull request description (a sentence or a few bullet points). No headings.
25
- Pick the type from the effect of the change: ci for CI config, build for build tooling and dev environments, style for formatter/linter config, docs for documentation, chore otherwise.
26
- Only describe what is in the diffs. Do not invent reasons.`;
22
+ - "subject": a Conventional Commits subject line, at most ${MAX_SUBJECT_LENGTH} characters, format "type(scope): description" or "type: description". type is one of: ${CONVENTIONAL_TYPES.join(", ")}. Use a scope only when a single area changed, lowercase, naming that area (e.g. workflows, eslint); omit the scope when more than one area changed. description is imperative, lowercase, no trailing period, and says what actually changed (e.g. "pin actions/checkout to v5"), never just "sync files".
23
+ - "body": the commit body (plain text, wrap at 72 columns). When more than one area changed, the body is required: one bullet per area ("- "). Each bullet names the concrete thing that changed (tool, rule, setting or key, version) and states its effect as read directly from the diff, in plain words a later search would use (e.g. "enable no-unused-vars so lint fails on unused variables", not just "update eslint config"); do not guess motives. Use an empty string only when a single change is fully described by the subject.
24
+ - "prSummary": a short markdown summary for a pull request description (a sentence or a few bullet points) that covers every changed area. No headings.
25
+ The subject must cover all changes. Name the changed areas in it when they fit (e.g. "chore: update <area>, <area> and <area>"); use a broader summary only when they do not, and never a subject that names just one of several changes.
26
+ Names of things (tools, rules, settings) are fine; file names and paths are not, since git already records them.
27
+ Pick the type from the effect of the change: ci for CI config, build for build tooling and dev environments, style for formatter/linter config, docs for documentation, chore otherwise. When the changes span more than one type, use chore.
28
+ Only describe what is in the diffs.`;
27
29
  const RESPONSE_SCHEMA = {
28
30
  type: "object",
29
31
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspruyt/xfg",
3
- "version": "8.2.0",
3
+ "version": "8.3.0",
4
4
  "description": "Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab — declaratively, from a single YAML config",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",