Skip to content

chore: 2026 reboot - #10

Merged
srl295 merged 2 commits into
masterfrom
2026-reboot
Oct 1, 2026
Merged

srl295 merged 2 commits into
masterfrom
2026-reboot

Conversation

@srl295

@srl295 srl295 commented Oct 1, 2026

Copy link
Copy Markdown
Member
  • add AGENTS
  • stability and packaging

Resolve the planned fixes tracked in AGENTS.md.

Correctness:
- plugin-taskw: guard the githubbody/annotations truncation with
  Array.isArray(j) && j.length > 0 && j[0]; it previously dereferenced
  j[0] unguarded, so a non-array or empty export crashed.
- plugin-taskw: accumulate stderr into `err` instead of only printing it,
  so the actual failure reason reaches the rejection message rather than
  a bare "non zero exit".
- cli: add requireBaseDir(), used by getList()/getDir(). baseDir was
  undefined when `dir` was never configured, which failed opaquely in
  fs.opendir()/path.join().
- cli: flatten the getList() project filter into guard clauses. The
  nested if/else made the "no taskwarrior field + project filter" case
  look like dead code when it is the documented exclusion rule.
- cli: store `date` as an explicit ISO string instead of relying on
  JSON.stringify's Date coercion, and mark MourtBlob's taskwarrior,
  shortDate and localDate optional to match what is actually on disk.
- cli: drop the unused readFile import.
- plugin-taskw: remove the no-op fetchTask -> fetchData wrapper.

Packaging:
- tsconfig: add rootDir "."/outDir "dist", declaration true, and drop
  the redundant "module": "commonjs" (already set by @tsconfig/node16).
- bin/mourt: require ../dist/lib/cli and explain the compiled-vs-source
  split.
- lib/config.ts: require ../../package.json, since the compiled file now
  lives at dist/lib/ rather than lib/.
- package.json: add exports/types/files; point main at dist/main.js.
  files ships dist/**/*.js and dist/**/*.d.ts, excluding .ts sources
  and .map files.
- .npmignore: delete, now superseded by the files field.

Verified via CLI smoke tests, an npm pack install test, and a full
parse of the existing 1520-entry dataset. No test suite exists yet;
npm test still exits 1 by design.
@srl295
srl295 merged commit 14605c0 into master Oct 1, 2026
3 checks passed
@srl295
srl295 deleted the 2026-reboot branch October 1, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant