Files
deepseek-harness/packages/util
creatixchu 3c3e0583e5 Merge remote-tracking branch 'origin/feat/cua-approval-format' into feat/cua-permission-onboarding
# Conflicts:
#	apps/web/tests/cua-optin.e2e.ts
#	apps/web/tests/expected/plugin-config/official.expected.md
#	apps/web/tests/expected/plugin-manager/live-enabled.expected.md
#	apps/web/tests/expected/plugin-manager/manager.expected.md
#	apps/web/tests/plugin-manager.e2e.ts
#	packages/api/session-controller/README.i18n.yaml
#	packages/client/ui-plugin-manager/README.i18n.yaml
#	packages/client/ui-plugin-manager/src/client/presentation.ts
#	packages/experimental/cua-bundle/README.i18n.yaml
#	packages/experimental/cua-bundle/README.md
#	packages/experimental/cua-bundle/README.zh.md
#	packages/experimental/cua/tests/application-access.spec.ts
2026-10-20 13:13:41 +08:00
..
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +08:00
2026-10-17 15:10:31 +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, output retention, time and zone vocabulary, 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, outbound proxy policy, native commands, 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.

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
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
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
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.