djournal 0.4.0 → 0.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.
Files changed (2) hide show
  1. package/bin/journal.js +5 -2
  2. package/package.json +1 -1
package/bin/journal.js CHANGED
@@ -104,7 +104,10 @@ function print(value, json) {
104
104
  }
105
105
  if (value.conflicts?.length) process.stdout.write(`conflicts: ${value.conflicts.join(", ")}\n`);
106
106
  if (value.files) {
107
- for (const file of value.files) process.stdout.write(`${file.status.padEnd(8)} ${file.path}\n`);
107
+ for (const file of value.files) {
108
+ if (typeof file === "string") process.stdout.write(`${file}\n`);
109
+ else process.stdout.write(`${file.status.padEnd(8)} ${file.path}\n`);
110
+ }
108
111
  }
109
112
  if (value.checks) {
110
113
  for (const check of value.checks) process.stdout.write(`${check.ok ? "ok" : "fail"} ${check.name}: ${check.detail}\n`);
@@ -144,4 +147,4 @@ async function main() {
144
147
 
145
148
  if (require.main === module) main();
146
149
 
147
- module.exports = { parseArgs };
150
+ module.exports = { parseArgs, print };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djournal",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Durable project memory for coding agents, stored as linked Markdown",
5
5
  "type": "commonjs",
6
6
  "bin": {