Files
deepseek-harness/packages/util
MagolorandZiyaZhang d997173e45 feat(timeline): integrate Timeline as an experimental plugin (#7973)
* Add Timeline as an experimental Harness plugin

* fix(timeline): align prompt counters and release inactive views

* fix(timeline): refine frontend motion and document features

* test(timeline): refresh recorded context after upstream update

* fix(timeline): satisfy UI locale and module graph checks

* test(timeline): align integration checks with CI test lanes

* docs(timeline): document exported locale dictionaries

* fix(timeline): use session records and native client interfaces

* fix(timeline): mount edit RPC and align integration checks

* fix(timeline): follow Harness theme rules

* test(timeline): cover session recovery and client interactions

* fix(timeline): address integration review findings

* fix(timeline): isolate forked plan continuation

* docs(timeline): record the 0.4.0 integration changes

* docs(timeline): clarify the plugin description

* test(timeline): cover integration behavior and recovery edges

* fix(timeline): align dependency metadata and test lint

* fix(timeline): isolate scoped work and harden replay

* docs(timeline): refresh persistence catalog source links

* docs(timeline): document planning ownership predicate

* test(timeline): refresh the recommendation description snapshot

* build(timeline): classify Host dependency exports

* test(web): pace the Goal queue snapshot replay

* feat(timeline): make sidebar auto-open configurable

* docs(timeline): clarify sibling task weights

* fix(timeline): harden report updates and checkpoint recovery

* refactor(timeline): share detail view props

* fix(timeline): clarify progress, reports, and sidebar settings (#8347)

* fix(timeline): align the integration with current Harness contracts

* fix(timeline): preserve navigation when removing a task tree

* Reduce Timeline report replay allocations

Reuse the discussion list when report retention leaves its targets intact.
Clarify that the integrated package follows the Harness release version.

Node 24.21.0 on macOS arm64, median of three measured replays after warmup.
With 17,640 reports, replay took 5650 ms before and 804 ms after.
Peak RSS fell from 343 MiB to 288 MiB. Retained heap stayed near 33 MiB.
The serialized view stayed at 5,297,849 bytes.

---------

Co-authored-by: ZiyaZhang <[email protected]>
2026-11-13 11:54:22 +08:00
..
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00
2026-11-11 10:18:52 +08:00

description, kind
description kind
Package map for shared utilities: atomic file writes, branded ids, deques, JSON values, harness home paths, launch environment, native commands, packaged ripgrep, output retention, time and zone vocabulary, timeouts, and official package lists. package-group

util/ — shared utilities

English | 中文

Summary

The util/ group gives capability packages shared mechanical primitives instead of duplicate implementations. It covers atomic writes, branded ids, deques, lossless JSON values, UUIDs, Harness-home paths, launch environments, outbound proxy policy, native commands, packaged ripgrep execution, output retention, time-zone, instant, and span vocabulary, and timeout handling. Every root entry here is a library: it registers no product service or event, and the consuming capability retains the business semantics. The exception is official-bundles: instead of a mechanical primitive, it holds the installation's and the plugin manager's official package lists as data their consumers apply.

Table of Contents


Packages

Each package provides one primitive or one data set; open a package page for how to use it.

Package Role
brand/ Nominal string types and their stateless constructor
error/ The dependency-free HarnessError base class with a stable machine-routable code
package-manifest/ Shared TypeScript declarations for package manifests
plugin-detail/ Selects plugin detail documents and reads them from local packages and npm file CDNs
plugin-market-index/ Validates plugin market index format 1 and builds pinned install arguments
official-bundles/ Lists the official bundle and plugin packages the installation ships, offers, installs on demand, retires, and the plugin manager protects or presents
crypto/ Mints RFC 9562 v4 UUIDs from the cross-runtime crypto.getRandomValues primitive
deque/ Provides amortized constant-time queue operations with bounded vacant storage
chunked-list/ Retains immutable list versions with bounded append copying and checkpoint validation
values/ Validates, snapshots, compares, and freezes lossless JSON-compatible values
home-paths/ Resolves the single Harness home and joins shared user-data paths
http-proxy/ Resolves one outbound proxy policy and installs it for fetch, SDK agents, and spawned children
launch-environment/ Frozen launch environment that remembers which layer supplied each value
atomic-write/ Atomic file replacement and cross-process writer locking
lazy-require/ Loads CommonJS-compatible Host dependencies on first use with caller-relative resolution
native-command/ Runs host-native commands directly, never through a shell string
ripgrep/ Resolves the packaged ripgrep binary, spawns it through the caller's subprocess service, and streams its output records
workspace-path/ Provides browser-safe Workspace path and display helpers
code-language/ Maps a filename suffix to the syntax-highlighting language that the Code preview, diff review, and the read card render
output-retention/ Bounds model-facing output and reports exact omission metadata
time/ Parses strict instants, local calendars, and caller-reported IANA zones, and holds a millisecond span
timeout/ Deadline arithmetic, signal fusion, and timeout-versus-cancel classification

Dev Note

Working context for maintainers — click to expand

None.