singularity-forge/src/resources
Mikael Hugo fb1bd3e5fa refactor(shared): deduplicate shared/ utilities against coding-agent package exports
- Add packages/coding-agent/src/utils/format.ts as the canonical source
  for formatDuration, formatTokenCount, truncateWithEllipsis, sparkline,
  formatDateShort, fileLink, stripAnsi, normalizeStringArray — all already
  exported from @singularity-forge/coding-agent via index.ts.

- Convert shared/format-utils.js to a compatibility shim that re-exports
  the 8 functions from @singularity-forge/coding-agent. All 13 importers
  continue to work with no import changes required.

- Convert shared/path-display.js to a compatibility shim that re-exports
  toPosixPath from @singularity-forge/coding-agent. Implementation in
  packages/coding-agent/src/utils/path-display.ts was already canonical.

- shared/frontmatter.js is intentionally NOT shimmed: splitFrontmatter/
  parseFrontmatterMap have a different API from the package's parseFrontmatter/
  stripFrontmatter (flat-map vs {frontmatter, body} object).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-10 22:41:03 +02:00
..
agents fix: harden sift codebase indexing 2026-05-05 13:31:35 +02:00
extensions refactor(shared): deduplicate shared/ utilities against coding-agent package exports 2026-05-10 22:41:03 +02:00
skills refactor: rename pi-* packages to forge-native names (Phase 1) 2026-05-10 11:28:01 +02:00
workflow-skills sf snapshot: uncommitted changes after 131m inactivity 2026-05-09 02:53:47 +02:00
workflows sf snapshot: uncommitted changes after 49m inactivity 2026-05-08 01:07:24 +02:00
SF-WORKFLOW.md sf snapshot: uncommitted changes after 110m inactivity 2026-05-08 00:17:47 +02:00
traces.ts sf snapshot: uncommitted changes after 49m inactivity 2026-05-08 01:07:24 +02:00