deepseek-harness/packages/util
2026-08-30 02:29:53 +08:00
..
atomic-write fix(atomic-write): retry transient Windows replacement 2026-08-29 13:04:06 +08:00
brand chore(deps): refresh package manifests 2026-08-30 02:29:53 +08:00
crypto release(dsh): 0.1.2-alpha.1 2026-08-28 00:50:12 +08:00
deque test(deque): pin storage release behavior 2026-08-28 18:02:11 +08:00
home-paths release(dsh): 0.1.2-alpha.1 2026-08-28 00:50:12 +08:00
launch-environment release(dsh): 0.1.2-alpha.1 2026-08-28 00:50:12 +08:00
native-command release(dsh): 0.1.2-alpha.1 2026-08-28 00:50:12 +08:00
output-retention release(dsh): 0.1.2-alpha.1 2026-08-28 00:50:12 +08:00
time fix(api): rename the failure marker, harden cross-realm discrimination, and mark the packed-record violation 2026-08-29 03:12:43 +08:00
timeout release(dsh): 0.1.2-alpha.1 2026-08-28 00:50:12 +08:00
values chore(deps): refresh package manifests 2026-08-30 02:29:53 +08:00
workspace-path release(dsh): 0.1.2-alpha.1 2026-08-28 00:50:12 +08:00
README.i18n.yaml docs: describe runtime dependency ownership 2026-08-30 02:29:53 +08:00
README.md docs: describe runtime dependency ownership 2026-08-30 02:29:53 +08:00
README.zh.md docs: describe runtime dependency ownership 2026-08-30 02:29:53 +08:00

description kind
Package map for shared utilities: atomic file writes, branded ids, deques, JSON values, harness home paths, launch environment, native commands, output retention, time zones, and timeouts. 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, native commands, output retention, time-zone canonicalization, 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.

Table of Contents


Packages

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

Package Role
brand/ Nominal string types and their stateless constructor
crypto/ Mints RFC 9562 v4 UUIDs from the cross-runtime crypto.getRandomValues primitive
deque/ Provides amortized constant-time queue operations with bounded vacant storage
values/ Validates, snapshots, compares, and freezes lossless JSON-compatible values
home-paths/ Resolves the single Harness home and joins shared user-data paths
launch-environment/ Frozen launch environment that remembers which layer supplied each value
atomic-write/ Atomic file replacement and cross-process writer locking
native-command/ Runs host-native commands directly, never through a shell string
workspace-path/ Provides browser-safe Workspace path and display helpers
output-retention/ Bounds model-facing output and reports exact omission metadata
time/ Validates and canonicalizes a caller-reported IANA time zone
timeout/ Deadline arithmetic, signal fusion, and timeout-versus-cancel classification

Dev Note

Working context for maintainers — click to expand

None.