@susu-eng/trunk-sync 2.4.0 → 2.4.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trunk-sync",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Maximum continuous integration for multi-agent coding — every edit is committed and pushed to trunk immediately",
5
5
  "author": {
6
6
  "name": "Eli Mydlarz"
@@ -1,6 +1,9 @@
1
1
  import { readFileSync, writeFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
  import { homedir } from "node:os";
4
+ const DEFAULTS = {
5
+ "commit-transcripts": "false",
6
+ };
4
7
  const USAGE = `Usage: trunk-sync config Show all config
5
8
  trunk-sync config <key> Get a value
6
9
  trunk-sync config <key>=<value> Set a value
@@ -76,9 +79,9 @@ export function configCommand(args) {
76
79
  if (eq === -1) {
77
80
  // Single key — read its value
78
81
  const map = readConfig();
79
- const value = map.get(arg);
82
+ const value = map.get(arg) ?? DEFAULTS[arg];
80
83
  if (value === undefined) {
81
- console.error(`Key not found: ${arg}`);
84
+ console.error(`Unknown key: ${arg}`);
82
85
  process.exit(1);
83
86
  }
84
87
  console.log(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@susu-eng/trunk-sync",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "type": "module",
5
5
  "description": "Maximum continuous integration for multi-agent coding — every edit is committed and pushed to trunk immediately",
6
6
  "bin": {
@@ -32,6 +32,9 @@
32
32
  "sync",
33
33
  "trunk-based-development"
34
34
  ],
35
+ "dependencies": {
36
+ "@susu-eng/trunk-sync": "^2.4.0"
37
+ },
35
38
  "scripts": {
36
39
  "build": "tsc",
37
40
  "postbuild": "chmod +x dist/cli.js",