@socketsecurity/lib 6.0.9 → 6.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +8 -9
- package/dist/abort/signal.d.ts +1 -1
- package/dist/abort/signal.js +1 -1
- package/dist/ai/agent-context.d.mts +1 -1
- package/dist/ai/agent-context.js +3 -2
- package/dist/ai/backends.d.mts +3 -3
- package/dist/ai/backends.js +2 -2
- package/dist/ai/billing-context.d.mts +74 -0
- package/dist/ai/billing-context.js +129 -0
- package/dist/ai/credentials.d.mts +39 -5
- package/dist/ai/credentials.js +61 -6
- package/dist/ai/discover.d.mts +4 -0
- package/dist/ai/discover.js +4 -0
- package/dist/ai/exec.d.mts +1 -1
- package/dist/ai/exec.js +1 -1
- package/dist/ai/http.d.mts +8 -8
- package/dist/ai/http.js +6 -6
- package/dist/ai/profiles.d.mts +9 -10
- package/dist/ai/profiles.js +0 -5
- package/dist/ai/role.d.mts +58 -0
- package/dist/ai/role.js +96 -0
- package/dist/ai/route-heuristic.d.mts +177 -0
- package/dist/ai/route-heuristic.js +194 -0
- package/dist/ai/route.d.mts +10 -9
- package/dist/ai/route.js +14 -13
- package/dist/ai/spawn.d.mts +2 -1
- package/dist/ai/spawn.js +25 -2
- package/dist/ai/subagent-status.d.mts +2 -0
- package/dist/ai/subagent-status.js +2 -0
- package/dist/ai/tier.d.mts +1 -1
- package/dist/ai/types.d.mts +9 -2
- package/dist/ai/worktree.d.mts +1 -1
- package/dist/ai/worktree.js +3 -2
- package/dist/argv/parse.d.ts +2 -0
- package/dist/argv/parse.js +2 -0
- package/dist/bin/_internal.d.ts +1 -1
- package/dist/bin/_internal.js +1 -1
- package/dist/bin/prim.cjs +446 -300
- package/dist/bin/shadow.js +2 -1
- package/dist/bin/which.d.ts +28 -3
- package/dist/bin/which.js +45 -3
- package/dist/cacache/_internal.d.ts +10 -2
- package/dist/cacache/_internal.js +6 -10
- package/dist/cache/ttl/_internal.d.ts +33 -0
- package/dist/cache/ttl/_internal.js +68 -0
- package/dist/cache/ttl/browser.d.ts +56 -0
- package/dist/cache/ttl/browser.js +257 -0
- package/dist/cache/ttl/store.js +10 -33
- package/dist/cache/ttl/types.d.ts +46 -3
- package/dist/checks/primordials-defaults.d.ts +5 -5
- package/dist/checks/primordials-defaults.js +5 -5
- package/dist/checks/primordials.d.ts +1 -1
- package/dist/checks/primordials.js +25 -17
- package/dist/cli/check-primordials.d.ts +6 -1
- package/dist/cli/check-primordials.js +14 -5
- package/dist/cli/check.js +1 -1
- package/dist/cli/socket-lib.d.ts +1 -1
- package/dist/cli/socket-lib.js +3 -3
- package/dist/colors/socket-palette.d.ts +1 -1
- package/dist/compression/brotli.d.ts +6 -2
- package/dist/compression/brotli.js +4 -0
- package/dist/compression/gzip.d.ts +6 -2
- package/dist/compression/gzip.js +6 -1
- package/dist/config/layers.d.ts +4 -4
- package/dist/config/layers.js +4 -4
- package/dist/constants/agents.d.ts +3 -0
- package/dist/constants/agents.js +3 -0
- package/dist/constants/node.d.ts +14 -0
- package/dist/constants/node.js +14 -0
- package/dist/constants/package-default-node-range.js +1 -5
- package/dist/constants/packages.d.ts +5 -0
- package/dist/constants/packages.js +5 -0
- package/dist/constants/platform.d.ts +1 -1
- package/dist/constants/platform.js +1 -1
- package/dist/constants/socket.js +1 -1
- package/dist/constants/typescript.d.ts +5 -0
- package/dist/constants/typescript.js +5 -0
- package/dist/debug/_internal.d.ts +22 -7
- package/dist/debug/_internal.js +33 -15
- package/dist/debug/namespace.js +11 -8
- package/dist/debug/output.d.ts +12 -1
- package/dist/debug/output.js +33 -16
- package/dist/dlx/binary-resolution.js +7 -4
- package/dist/eco/npm/npm/parse-lockfile.js +2 -1
- package/dist/eco/npm/vlt/exec.d.ts +1 -1
- package/dist/eco/npm/vlt/exec.js +1 -1
- package/dist/env/agents.d.ts +6 -0
- package/dist/env/agents.js +29 -0
- package/dist/env/flags.d.ts +12 -0
- package/dist/env/flags.js +23 -0
- package/dist/env/github-status.js +2 -2
- package/dist/env/providers.d.ts +6 -0
- package/dist/env/providers.js +23 -0
- package/dist/env/proxy.js +1 -1
- package/dist/env/rewire.d.ts +32 -0
- package/dist/env/rewire.js +55 -23
- package/dist/env/runtimes.d.ts +9 -0
- package/dist/env/runtimes.js +53 -0
- package/dist/env/socket-cli.d.ts +5 -2
- package/dist/env/socket-cli.js +6 -3
- package/dist/errors/predicates.d.ts +3 -2
- package/dist/errors/predicates.js +5 -3
- package/dist/errors/stack.js +2 -1
- package/dist/events/exit/_internal.d.ts +1 -23
- package/dist/external/@npmcli/package-json.js +179 -88
- package/dist/external/@npmcli/promise-spawn.js +2 -2
- package/dist/external/@sinclair/typebox/value.js +5 -4
- package/dist/external/@socketregistry/yocto-spinner.js +3 -3
- package/dist/external/adm-zip.d.ts +82 -0
- package/dist/external/adm-zip.js +2 -2
- package/dist/external/cacache.d.ts +87 -0
- package/dist/external/debug.d.ts +22 -0
- package/dist/external/debug.js +11 -4
- package/dist/external/del.d.ts +1 -0
- package/dist/external/external-pack.d.ts +12 -0
- package/dist/external/external-pack.js +41 -34
- package/dist/external/fast-glob.d.ts +8 -0
- package/dist/external/fast-sort.d.ts +1 -0
- package/dist/external/get-east-asian-width.d.ts +5 -0
- package/dist/external/get-east-asian-width.js +8 -1
- package/dist/external/has-flag.d.ts +1 -0
- package/dist/external/inquirer-pack.d.ts +18 -0
- package/dist/external/libnpmexec.d.ts +35 -0
- package/dist/external/libnpmpack.d.ts +1 -0
- package/dist/external/make-fetch-happen.d.ts +13 -0
- package/dist/external/normalize-package-data.d.ts +4 -0
- package/dist/external/npm-core.d.ts +14 -0
- package/dist/external/npm-pack.d.ts +24 -0
- package/dist/external/npm-pack.js +1551 -1867
- package/dist/external/npm-package-arg.d.ts +4 -0
- package/dist/external/p-map.js +8 -1
- package/dist/external/pacote.d.ts +15 -0
- package/dist/external/pico-pack.d.ts +16 -0
- package/dist/external/pico-pack.js +38 -23
- package/dist/external/picomatch.d.ts +96 -0
- package/dist/external/pony-cause.d.ts +14 -0
- package/dist/external/semver.d.ts +60 -0
- package/dist/external/semver.js +1459 -4
- package/dist/external/shell-quote.d.ts +51 -0
- package/dist/external/shell-quote.js +55 -15
- package/dist/external/signal-exit.d.ts +1 -0
- package/dist/external/spdx-correct.d.ts +4 -0
- package/dist/external/spdx-expression-parse.d.ts +4 -0
- package/dist/external/spdx-pack.d.ts +10 -0
- package/dist/external/std-env.d.ts +284 -0
- package/dist/external/std-env.js +323 -0
- package/dist/external/streaming-iterables.d.ts +11 -0
- package/dist/external/supports-color.d.ts +1 -0
- package/dist/external/tar-fs.d.ts +31 -0
- package/dist/external/validate-npm-package-name.d.ts +4 -0
- package/dist/external/which.d.ts +25 -0
- package/dist/external/which.js +2 -2
- package/dist/external/yargs-parser.d.ts +2 -0
- package/dist/external/yargs-parser.js +11 -3
- package/dist/external/yoctocolors-cjs.d.ts +51 -0
- package/dist/external-tools/bazel/asset-names.d.ts +1 -1
- package/dist/external-tools/bazel/from-download.d.ts +1 -1
- package/dist/external-tools/bazel/resolve.d.ts +3 -0
- package/dist/external-tools/bazel/resolve.js +3 -0
- package/dist/external-tools/cdxgen/asset-names.d.ts +5 -5
- package/dist/external-tools/cdxgen/asset-names.js +3 -3
- package/dist/external-tools/cdxgen/from-download.d.ts +2 -2
- package/dist/external-tools/cdxgen/from-download.js +1 -1
- package/dist/external-tools/cdxgen/resolve.d.ts +4 -1
- package/dist/external-tools/cdxgen/resolve.js +4 -1
- package/dist/external-tools/cdxgen/types.d.ts +1 -1
- package/dist/external-tools/from-download.d.ts +2 -2
- package/dist/external-tools/from-download.js +1 -1
- package/dist/external-tools/janus/asset-names.d.ts +4 -1
- package/dist/external-tools/janus/asset-names.js +3 -0
- package/dist/external-tools/janus/from-download.d.ts +3 -3
- package/dist/external-tools/janus/from-download.js +2 -2
- package/dist/external-tools/janus/resolve.d.ts +3 -0
- package/dist/external-tools/janus/resolve.js +3 -0
- package/dist/external-tools/jre/asset-names.d.ts +3 -1
- package/dist/external-tools/jre/asset-names.js +2 -0
- package/dist/external-tools/jre/from-download.d.ts +1 -1
- package/dist/external-tools/manifest.d.ts +5 -3
- package/dist/external-tools/manifest.js +4 -2
- package/dist/external-tools/opengrep/asset-names.d.ts +1 -1
- package/dist/external-tools/opengrep/resolve.d.ts +3 -0
- package/dist/external-tools/opengrep/resolve.js +3 -0
- package/dist/external-tools/python/asset-names.d.ts +3 -1
- package/dist/external-tools/python/asset-names.js +7 -3
- package/dist/external-tools/python/pin.js +3 -1
- package/dist/external-tools/python/resolve.d.ts +3 -0
- package/dist/external-tools/python/resolve.js +3 -0
- package/dist/external-tools/sbt/resolve.d.ts +3 -0
- package/dist/external-tools/sbt/resolve.js +3 -0
- package/dist/external-tools/skillspector/from-uv.d.ts +1 -1
- package/dist/external-tools/synp/resolve.d.ts +3 -0
- package/dist/external-tools/synp/resolve.js +3 -0
- package/dist/external-tools/trivy/asset-names.d.ts +1 -1
- package/dist/external-tools/trivy/resolve.d.ts +3 -0
- package/dist/external-tools/trivy/resolve.js +3 -0
- package/dist/external-tools/trufflehog/asset-names.d.ts +4 -1
- package/dist/external-tools/trufflehog/asset-names.js +3 -0
- package/dist/external-tools/trufflehog/from-download.d.ts +1 -1
- package/dist/external-tools/trufflehog/resolve.d.ts +3 -0
- package/dist/external-tools/trufflehog/resolve.js +3 -0
- package/dist/external-tools/uv/asset-names.d.ts +1 -1
- package/dist/external-tools/uv/resolve.d.ts +3 -0
- package/dist/external-tools/uv/resolve.js +3 -0
- package/dist/fleet/repo-config.d.ts +8 -6
- package/dist/fleet/repo-config.js +8 -6
- package/dist/fs/_internal.d.ts +1 -1
- package/dist/fs/_internal.js +1 -1
- package/dist/fs/access.d.ts +2 -0
- package/dist/fs/access.js +2 -0
- package/dist/fs/allowed-dirs-cache.js +5 -3
- package/dist/fs/find.js +1 -2
- package/dist/fs/inspect.d.ts +2 -2
- package/dist/fs/read-file.js +3 -4
- package/dist/fs/safe.js +1 -1
- package/dist/git/_internal.js +5 -1
- package/dist/github/commit.d.ts +92 -0
- package/dist/github/commit.js +113 -0
- package/dist/github/ghsa.js +1 -1
- package/dist/github/refs-graphql.js +1 -1
- package/dist/github/request.js +1 -1
- package/dist/github/token.d.ts +5 -2
- package/dist/github/token.js +6 -4
- package/dist/github/workflow-runs.d.ts +107 -0
- package/dist/github/workflow-runs.js +98 -0
- package/dist/http-request/_internal.d.ts +1 -1
- package/dist/http-request/browser.d.ts +6 -0
- package/dist/http-request/browser.js +3 -2
- package/dist/http-request/download.js +2 -0
- package/dist/http-request/headers.d.ts +1 -1
- package/dist/http-request/headers.js +1 -1
- package/dist/http-request/request-attempt.js +6 -3
- package/dist/http-request/request-types.d.ts +10 -1
- package/dist/http-request/request.js +2 -2
- package/dist/http-request/user-agent.d.ts +23 -2
- package/dist/http-request/user-agent.js +48 -6
- package/dist/integrity.d.ts +3 -1
- package/dist/integrity.js +3 -1
- package/dist/json/format.js +4 -1
- package/dist/logger/_internal.d.ts +13 -15
- package/dist/logger/_internal.js +21 -21
- package/dist/logger/colors.d.ts +9 -3
- package/dist/logger/colors.js +6 -13
- package/dist/logger/console-methods.js +2 -2
- package/dist/logger/console.d.ts +1 -0
- package/dist/logger/console.js +9 -9
- package/dist/logger/node.js +2 -1
- package/dist/native-messaging/install.js +1 -1
- package/dist/native-messaging/rate-limit.d.ts +4 -1
- package/dist/native-messaging/rate-limit.js +4 -1
- package/dist/node/events.d.ts +3 -0
- package/dist/node/events.js +3 -0
- package/dist/node/fs.d.ts +1 -1
- package/dist/node/timers-promises.d.ts +3 -0
- package/dist/node/timers-promises.js +3 -0
- package/dist/node/url.d.ts +3 -0
- package/dist/node/url.js +3 -0
- package/dist/npm/meta-cache.d.ts +183 -0
- package/dist/npm/meta-cache.js +318 -0
- package/dist/npm/meta-slice.d.ts +27 -0
- package/dist/npm/meta-slice.js +68 -0
- package/dist/npm/meta-types.d.ts +282 -0
- package/dist/npm/meta-types.js +2 -0
- package/dist/npm/meta.d.ts +125 -0
- package/dist/npm/meta.js +347 -0
- package/dist/npm/registry.d.ts +212 -0
- package/dist/npm/registry.js +284 -0
- package/dist/objects/getters.d.ts +1 -1
- package/dist/objects/getters.js +1 -1
- package/dist/packages/manifest.js +6 -7
- package/dist/packages/metadata-extensions.js +2 -4
- package/dist/packages/provenance.d.ts +8 -0
- package/dist/packages/provenance.js +8 -0
- package/dist/packages/tarball.js +1 -2
- package/dist/packages/validation.d.ts +0 -10
- package/dist/packages/validation.js +0 -14
- package/dist/paths/exts.d.ts +30 -0
- package/dist/paths/exts.js +30 -0
- package/dist/paths/filenames.d.ts +6 -0
- package/dist/paths/filenames.js +6 -0
- package/dist/paths/globs.d.ts +6 -0
- package/dist/paths/globs.js +6 -0
- package/dist/paths/resolve.js +19 -14
- package/dist/paths/socket.d.ts +8 -8
- package/dist/paths/socket.js +8 -8
- package/dist/perf/report.js +4 -2
- package/dist/pkg-ext/data.js +0 -2
- package/dist/primordials/globals.d.ts +1 -1
- package/dist/primordials/globals.js +1 -1
- package/dist/primordials/headers.d.ts +13 -1
- package/dist/primordials/headers.js +13 -1
- package/dist/primordials/process.d.ts +1 -1
- package/dist/primordials/process.js +1 -1
- package/dist/primordials/url.d.ts +18 -0
- package/dist/primordials/url.js +18 -0
- package/dist/process/spawn/child.js +3 -5
- package/dist/promises/_internal.d.ts +1 -1
- package/dist/promises/_internal.js +1 -2
- package/dist/promises/options.js +3 -3
- package/dist/releases/socket-btm-binary-naming.js +12 -1
- package/dist/secrets/_internal.d.ts +1 -1
- package/dist/secrets/_internal.js +1 -1
- package/dist/secrets/find.d.ts +2 -2
- package/dist/secrets/find.js +2 -2
- package/dist/secrets/keychain.d.ts +10 -1
- package/dist/secrets/keychain.js +10 -1
- package/dist/secrets/socket-api-token.d.ts +1 -1
- package/dist/secrets/socket-api-token.js +1 -1
- package/dist/secrets/types.d.ts +1 -1
- package/dist/smol/http.d.ts +2 -0
- package/dist/smol/http.js +2 -0
- package/dist/smol/https.d.ts +2 -0
- package/dist/smol/https.js +2 -0
- package/dist/sorts/_internal.d.ts +2 -3
- package/dist/sorts/_internal.js +1 -3
- package/dist/spinner/format.js +2 -4
- package/dist/stdio/footer.js +8 -7
- package/dist/stdio/prompts.d.ts +8 -15
- package/dist/stdio/prompts.js +18 -29
- package/dist/strings/predicates.d.ts +2 -2
- package/dist/strings/search.js +1 -1
- package/dist/strings/types.d.ts +4 -0
- package/dist/strings/width.d.ts +1 -0
- package/dist/strings/width.js +17 -8
- package/dist/themes/context.d.ts +13 -0
- package/dist/themes/context.js +23 -8
- package/dist/versions/_internal.d.ts +43 -13
- package/dist/versions/_internal.js +27 -15
- package/dist/versions/compare.d.ts +16 -10
- package/dist/versions/compare.js +36 -16
- package/dist/versions/parse.js +1 -1
- package/dist/versions/range.js +3 -2
- package/dist/words/pluralize.js +4 -1
- package/llms.txt +63 -750
- package/package.json +200 -35
package/llms.txt
CHANGED
|
@@ -1,750 +1,63 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
- [
|
|
22
|
-
- [
|
|
23
|
-
- [
|
|
24
|
-
- [
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
28
|
-
- [
|
|
29
|
-
- [
|
|
30
|
-
- [
|
|
31
|
-
- [
|
|
32
|
-
- [
|
|
33
|
-
- [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- [
|
|
38
|
-
- [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- [
|
|
43
|
-
- [
|
|
44
|
-
- [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- [
|
|
53
|
-
- [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
- [
|
|
58
|
-
- [
|
|
59
|
-
- [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- [@socketsecurity/lib/bin/exec](./dist/bin/exec.d.ts): `execBin` — spawn a binary with PATH resolution, wrapper-script unwrapping, and Windows shell handling.
|
|
65
|
-
- [@socketsecurity/lib/bin/find](./dist/bin/find.d.ts): Find specific package-manager binaries with platform- aware fallbacks.
|
|
66
|
-
- [@socketsecurity/lib/bin/resolve](./dist/bin/resolve.d.ts): Resolve a binary path to the underlying script file.
|
|
67
|
-
- [@socketsecurity/lib/bin/shadow](./dist/bin/shadow.d.ts): Shadow-bin detection.
|
|
68
|
-
- [@socketsecurity/lib/bin/types](./dist/bin/types.d.ts): Public type surface for `bin/*` modules — the `WhichOptions` interface that callers pass to `which`, `whichSync`, `whichReal`, and `whichRealSync`.
|
|
69
|
-
- [@socketsecurity/lib/bin/which](./dist/bin/which.d.ts): Look up binaries on PATH.
|
|
70
|
-
|
|
71
|
-
## cacache/
|
|
72
|
-
|
|
73
|
-
- [@socketsecurity/lib/cacache/clear](./dist/cacache/clear.d.ts): Bulk-clear entries from the Socket shared cacache — `clear()` plus its wildcard helper `createPatternMatcher`.
|
|
74
|
-
- [@socketsecurity/lib/cacache/read](./dist/cacache/read.d.ts): Cache read entrypoints — `get` (throws on miss) and `safeGet` (returns `undefined` on miss).
|
|
75
|
-
- [@socketsecurity/lib/cacache/tmp](./dist/cacache/tmp.d.ts): `withTmp` — run a callback with a freshly-created temp directory under the cacache root.
|
|
76
|
-
- [@socketsecurity/lib/cacache/types](./dist/cacache/types.d.ts): Public type surface for `cacache/*` modules — the `CacheEntry` row shape returned by reads and the option bags consumed by `clear` / `get` / `put`.
|
|
77
|
-
- [@socketsecurity/lib/cacache/write](./dist/cacache/write.d.ts): Cache write entrypoints — `put` (insert/replace by key) and `remove` (single-key delete).
|
|
78
|
-
|
|
79
|
-
## cache/
|
|
80
|
-
|
|
81
|
-
- [@socketsecurity/lib/cache/ttl/store](./dist/cache/ttl/store.d.ts): `createTtlCache` — generic TTL-based cache built on top of cacache (persistent) plus an in-memory LRU memo layer.
|
|
82
|
-
- [@socketsecurity/lib/cache/ttl/types](./dist/cache/ttl/types.d.ts): Public type surface for `cache/ttl/*` modules — the `TtlCache` interface (the seven-method API returned by `createTtlCache`), the `TtlCacheEntry` storage shape, and the `TtlCacheOptions` / `ClearOptions` configuration...
|
|
83
|
-
|
|
84
|
-
## checks/
|
|
85
|
-
|
|
86
|
-
- [@socketsecurity/lib/checks/primordials](./dist/checks/primordials.d.ts): Primordials drift check — generic core.
|
|
87
|
-
- [@socketsecurity/lib/checks/primordials-defaults](./dist/checks/primordials-defaults.d.ts): GENERATED — do not edit by hand.
|
|
88
|
-
|
|
89
|
-
## cli/
|
|
90
|
-
|
|
91
|
-
- [@socketsecurity/lib/cli/check](./dist/cli/check.d.ts): `socket-lib check <name>` subcommand group.
|
|
92
|
-
- [@socketsecurity/lib/cli/check-primordials](./dist/cli/check-primordials.d.ts): `socket-lib check primordials` handler.
|
|
93
|
-
- [@socketsecurity/lib/cli/socket-lib](./dist/cli/socket-lib.d.ts): `socket-lib` CLI entry point — top-level dispatcher.
|
|
94
|
-
|
|
95
|
-
## colors/
|
|
96
|
-
|
|
97
|
-
- [@socketsecurity/lib/colors/convert](./dist/colors/convert.d.ts): Color conversion helpers — `isRgbTuple()` narrows a `ColorValue` to the RGB-tuple branch, and `toRgb()` resolves a named color or passes through an existing tuple.
|
|
98
|
-
- [@socketsecurity/lib/colors/palette](./dist/colors/palette.d.ts): Named-color palette — maps each `ColorName` to its canonical RGB tuple.
|
|
99
|
-
- [@socketsecurity/lib/colors/socket-palette](./dist/colors/socket-palette.d.ts): Socket terminal-color palette — mirrors the CSS design tokens defined in the fleet's `template/styles/tokens.css` (light / dark / synthwave themes).
|
|
100
|
-
- [@socketsecurity/lib/colors/types](./dist/colors/types.d.ts): Public type surface for `colors/*` modules — the `ColorInherit` literal, the `ColorName` named-color union, the `ColorRgb` tuple, and the `ColorValue` super-union.
|
|
101
|
-
|
|
102
|
-
## compression/
|
|
103
|
-
|
|
104
|
-
- [@socketsecurity/lib/compression/brotli](./dist/compression/brotli.d.ts): Brotli compression / decompression — in-memory, file-to-file, and raw-stream variants.
|
|
105
|
-
- [@socketsecurity/lib/compression/gzip](./dist/compression/gzip.d.ts): Gzip compression / decompression — same calling shapes as brotli: in-memory, file-to-file, and raw-stream variants.
|
|
106
|
-
- [@socketsecurity/lib/compression/types](./dist/compression/types.d.ts): Public type surface for `compression/*` modules — the `CompressOptions` accepted by every compression entrypoint and `CompressFileOptions` which extends it with `inPlace`.
|
|
107
|
-
|
|
108
|
-
## config/
|
|
109
|
-
|
|
110
|
-
- [@socketsecurity/lib/config/layers](./dist/config/layers.d.ts): Read a layered config — a base config that higher layers may override or extend.
|
|
111
|
-
|
|
112
|
-
## constants/
|
|
113
|
-
|
|
114
|
-
- [@socketsecurity/lib/constants/agents](./dist/constants/agents.d.ts): Package manager agent constants.
|
|
115
|
-
- [@socketsecurity/lib/constants/encoding](./dist/constants/encoding.d.ts): Character encoding and character code constants.
|
|
116
|
-
- [@socketsecurity/lib/constants/github](./dist/constants/github.d.ts): GitHub API and cache constants.
|
|
117
|
-
- [@socketsecurity/lib/constants/licenses](./dist/constants/licenses.d.ts): License identifier constants.
|
|
118
|
-
- [@socketsecurity/lib/constants/lifecycle-script-names](./dist/constants/lifecycle-script-names.d.ts): NPM lifecycle script names.
|
|
119
|
-
- [@socketsecurity/lib/constants/maintained-node-versions](./dist/constants/maintained-node-versions.d.ts): Maintained Node.js versions without external dependencies.
|
|
120
|
-
- [@socketsecurity/lib/constants/node](./dist/constants/node.d.ts): Node.js runtime version and capability helpers.
|
|
121
|
-
- [@socketsecurity/lib/constants/package-default-node-range](./dist/constants/package-default-node-range.d.ts): Default Node.js version range for packages.
|
|
122
|
-
- [@socketsecurity/lib/constants/package-default-socket-categories](./dist/constants/package-default-socket-categories.d.ts): Default Socket security categories for packages.
|
|
123
|
-
- [@socketsecurity/lib/constants/packages](./dist/constants/packages.d.ts): Package metadata, defaults, extensions, and lifecycle helpers.
|
|
124
|
-
- [@socketsecurity/lib/constants/platform](./dist/constants/platform.d.ts): Platform detection and OS-specific constants.
|
|
125
|
-
- [@socketsecurity/lib/constants/runtime](./dist/constants/runtime.d.ts): Runtime environment detection constants.
|
|
126
|
-
- [@socketsecurity/lib/constants/sentinels](./dist/constants/sentinels.d.ts): Core primitives and fundamental constants.
|
|
127
|
-
- [@socketsecurity/lib/constants/socket](./dist/constants/socket.d.ts): Socket.dev branding and identifier constants.
|
|
128
|
-
- [@socketsecurity/lib/constants/testing](./dist/constants/testing.d.ts): Testing framework and CI-related string constants.
|
|
129
|
-
- [@socketsecurity/lib/constants/time](./dist/constants/time.d.ts): Time-related numeric constants.
|
|
130
|
-
- [@socketsecurity/lib/constants/typescript](./dist/constants/typescript.d.ts): TypeScript availability detection.
|
|
131
|
-
|
|
132
|
-
## cover/
|
|
133
|
-
|
|
134
|
-
- [@socketsecurity/lib/cover/code](./dist/cover/code.d.ts): Code coverage utilities for parsing v8 coverage data.
|
|
135
|
-
- [@socketsecurity/lib/cover/formatters](./dist/cover/formatters.d.ts): Coverage output formatters.
|
|
136
|
-
- [@socketsecurity/lib/cover/type](./dist/cover/type.d.ts): TypeScript type coverage utilities.
|
|
137
|
-
- [@socketsecurity/lib/cover/types](./dist/cover/types.d.ts): Type definitions for coverage utilities.
|
|
138
|
-
|
|
139
|
-
## crypto/
|
|
140
|
-
|
|
141
|
-
- [@socketsecurity/lib/crypto/hash](./dist/crypto/hash.d.ts): Crypto hash helpers that prefer Node builtins where available.
|
|
142
|
-
|
|
143
|
-
## debug/
|
|
144
|
-
|
|
145
|
-
- [@socketsecurity/lib/debug/caller-info](./dist/debug/caller-info.d.ts): `getCallerInfo` — extract the caller's function name from the V8 stack trace at a given offset.
|
|
146
|
-
- [@socketsecurity/lib/debug/namespace](./dist/debug/namespace.d.ts): Namespace-handling helpers — `extractOptions` normalises the polymorphic first argument that every `*Ns` function takes, `getDebugJsInstance` per-namespace caches the underlying `debug-js` instance with `customLog` pa...
|
|
147
|
-
- [@socketsecurity/lib/debug/output](./dist/debug/output.d.ts): Output entrypoints — `debug` / `debugCache` / `debugDir` / `debugLog` and their `*Ns` namespace variants, plus `debuglog` (node-util-compatible) and `debugtime` (start/end timers).
|
|
148
|
-
- [@socketsecurity/lib/debug/types](./dist/debug/types.d.ts): Public type surface for `debug/*` modules — the options bag accepted by every `debug*Ns` entrypoint and the `InspectOptions` mirror of `node:util`'s shape (the public subset we accept; not the full thing).
|
|
149
|
-
|
|
150
|
-
## dlx/
|
|
151
|
-
|
|
152
|
-
- [@socketsecurity/lib/dlx/arborist](./dist/dlx/arborist.d.ts): Safe Arborist wrapper for dlx installs and lockfile-only resolution.
|
|
153
|
-
- [@socketsecurity/lib/dlx/binary](./dist/dlx/binary.d.ts): DLX binary execution utilities for Socket ecosystem.
|
|
154
|
-
- [@socketsecurity/lib/dlx/binary-cache](./dist/dlx/binary-cache.d.ts): On-disk cache metadata helpers for dlx binaries.
|
|
155
|
-
- [@socketsecurity/lib/dlx/binary-download](./dist/dlx/binary-download.d.ts): Download helpers for dlx binaries — fetch tarballs from URLs, verify integrity, cache to disk with concurrency locking.
|
|
156
|
-
- [@socketsecurity/lib/dlx/binary-resolution](./dist/dlx/binary-resolution.d.ts): Binary resolution for installed dlx packages.
|
|
157
|
-
- [@socketsecurity/lib/dlx/binary-types](./dist/dlx/binary-types.d.ts): Public option / result interfaces for dlx binary operations.
|
|
158
|
-
- [@socketsecurity/lib/dlx/cache](./dist/dlx/cache.d.ts): Cache key generation utilities for DLX package installations.
|
|
159
|
-
- [@socketsecurity/lib/dlx/detect](./dist/dlx/detect.d.ts): Executable type detection for DLX and local filesystem paths.
|
|
160
|
-
- [@socketsecurity/lib/dlx/dir](./dist/dlx/dir.d.ts): Directory management utilities for DLX installations.
|
|
161
|
-
- [@socketsecurity/lib/dlx/firewall](./dist/dlx/firewall.d.ts): Socket Firewall integration for dlx installs.
|
|
162
|
-
- [@socketsecurity/lib/dlx/lockfile](./dist/dlx/lockfile.d.ts): Package pin generation for dlx installs.
|
|
163
|
-
- [@socketsecurity/lib/dlx/manifest](./dist/dlx/manifest.d.ts): DLX manifest storage utilities.
|
|
164
|
-
- [@socketsecurity/lib/dlx/package](./dist/dlx/package.d.ts): DLX package execution — install and execute npm packages.
|
|
165
|
-
- [@socketsecurity/lib/dlx/packages](./dist/dlx/packages.d.ts): Package management utilities for DLX installations.
|
|
166
|
-
- [@socketsecurity/lib/dlx/paths](./dist/dlx/paths.d.ts): Path utilities for DLX package installations.
|
|
167
|
-
- [@socketsecurity/lib/dlx/spec](./dist/dlx/spec.d.ts): Parse `package@version` specs into `{name, version}`.
|
|
168
|
-
- [@socketsecurity/lib/dlx/types](./dist/dlx/types.d.ts): Public option / result interfaces for dlx package operations.
|
|
169
|
-
|
|
170
|
-
## eco/
|
|
171
|
-
|
|
172
|
-
- [@socketsecurity/lib/eco/cargo/lockfile-format](./dist/eco/cargo/lockfile-format.d.ts): Format descriptor for `Cargo.lock` — Rust's Cargo-managed lockfile.
|
|
173
|
-
- [@socketsecurity/lib/eco/cargo/manifest-format](./dist/eco/cargo/manifest-format.d.ts): Format descriptor for `Cargo.toml` — Rust's package manifest.
|
|
174
|
-
- [@socketsecurity/lib/eco/cargo/parse-lockfile](./dist/eco/cargo/parse-lockfile.d.ts): `parseCargoLock(content)` — parses a Rust `Cargo.lock` (v1/v2/v3/v4) into a `ParsedLockfile`.
|
|
175
|
-
- [@socketsecurity/lib/eco/manifest/analyze-lockfile](./dist/eco/manifest/analyze-lockfile.d.ts): `analyzeLockfile(lockfile)` — returns a `LockfileStats` summary (counts by dep type, total packages, per-ecosystem breakdown).
|
|
176
|
-
- [@socketsecurity/lib/eco/manifest/detect-format](./dist/eco/manifest/detect-format.d.ts): `detectFormat(filename)` — maps a filename (or path) to its `FormatDescriptor` (ecosystem + manifest/lockfile + lockfile format), or returns `undefined` if nothing matched.
|
|
177
|
-
- [@socketsecurity/lib/eco/manifest/find-packages](./dist/eco/manifest/find-packages.d.ts): `findPackages(lockfile, pattern)` — returns all `PackageRef`s whose name matches the regex/string pattern.
|
|
178
|
-
- [@socketsecurity/lib/eco/manifest/get-package](./dist/eco/manifest/get-package.d.ts): `getPackage(lockfile, name)` — O(1) lookup of the first matching `PackageRef` by name in a `ParsedLockfile`.
|
|
179
|
-
- [@socketsecurity/lib/eco/manifest/get-package-versions](./dist/eco/manifest/get-package-versions.d.ts): `getPackageVersions(lockfile, name)` — returns all `PackageRef`s that match the given name in a `ParsedLockfile`.
|
|
180
|
-
- [@socketsecurity/lib/eco/manifest/manifest-error](./dist/eco/manifest/manifest-error.d.ts): `ManifestError` — the error class every parser in `src/eco/<pm>/parse-*` and every dispatcher in `src/eco/manifest/*` throws on invalid / unsupported input.
|
|
181
|
-
- [@socketsecurity/lib/eco/manifest/parse](./dist/eco/manifest/parse.d.ts): `parse(filename, content)` — auto-detects format from filename then dispatches to `parseManifest` or `parseLockfile`.
|
|
182
|
-
- [@socketsecurity/lib/eco/manifest/parse-lockfile](./dist/eco/manifest/parse-lockfile.d.ts): `parseLockfile(content, ecosystem, format?)` — dispatches to the right per-PM lockfile parser.
|
|
183
|
-
- [@socketsecurity/lib/eco/manifest/parse-manifest](./dist/eco/manifest/parse-manifest.d.ts): `parseManifest(content, ecosystem)` — dispatches to the right per-ecosystem manifest parser.
|
|
184
|
-
- [@socketsecurity/lib/eco/manifest/types](./dist/eco/manifest/types.d.ts): Shared types for manifest + lockfile parsing.
|
|
185
|
-
- [@socketsecurity/lib/eco/npm/bun/exec](./dist/eco/npm/bun/exec.d.ts): Bun tool surface.
|
|
186
|
-
- [@socketsecurity/lib/eco/npm/manifest-format](./dist/eco/npm/manifest-format.d.ts): Format descriptor for `package.json` — the manifest shape shared across the entire npm-family ecosystem (npm, pnpm, yarn, bun, vlt).
|
|
187
|
-
- [@socketsecurity/lib/eco/npm/npm/exec](./dist/eco/npm/npm/exec.d.ts): Execute npm commands with optimized flags and security defaults.
|
|
188
|
-
- [@socketsecurity/lib/eco/npm/npm/extract-package-name-from-path](./dist/eco/npm/npm/extract-package-name-from-path.d.ts): `extractPackageNameFromPath(pkgPath)` — given an npm v2/v3 lockfile entry key like `node_modules/a/node_modules/b`, returns the final package name (`b`), preserving scoped-package boundaries (`@scope/name` stays joined).
|
|
189
|
-
- [@socketsecurity/lib/eco/npm/npm/flags](./dist/eco/npm/npm/flags.d.ts): Npm CLI flag predicates.
|
|
190
|
-
- [@socketsecurity/lib/eco/npm/npm/lockfile-format](./dist/eco/npm/npm/lockfile-format.d.ts): Format descriptor for npm lockfiles — covers both `package-lock.json` and `npm-shrinkwrap.json` (npm v1/v2/v3 lock formats share the parser).
|
|
191
|
-
- [@socketsecurity/lib/eco/npm/npm/parse-git-url](./dist/eco/npm/npm/parse-git-url.d.ts): `parseGitUrl(resolved)` — extracts `{ url, commit }` from a `resolved` field on an npm lockfile entry when it points to a git source (`git+…` or `git://…`).
|
|
192
|
-
- [@socketsecurity/lib/eco/npm/npm/parse-lockfile](./dist/eco/npm/npm/parse-lockfile.d.ts): `parsePackageLock(content)` — parses an npm `package-lock.json` / `npm-shrinkwrap.json` (v1/v2/v3) into a `ParsedLockfile`.
|
|
193
|
-
- [@socketsecurity/lib/eco/npm/parse-package-json](./dist/eco/npm/parse-package-json.d.ts): `parsePackageJson(content)` — parses a `package.json` string into a `ParsedManifest`.
|
|
194
|
-
- [@socketsecurity/lib/eco/npm/pnpm/detect-pnpm-version](./dist/eco/npm/pnpm/detect-pnpm-version.d.ts): `detectPnpmVersion(content)` — scans a pnpm-lock.yaml for its `lockfileVersion:` line and returns `5`, `6`, or `9`.
|
|
195
|
-
- [@socketsecurity/lib/eco/npm/pnpm/exec](./dist/eco/npm/pnpm/exec.d.ts): Execute pnpm commands with optimized flags and security defaults.
|
|
196
|
-
- [@socketsecurity/lib/eco/npm/pnpm/flags](./dist/eco/npm/pnpm/flags.d.ts): Pnpm CLI flag predicates.
|
|
197
|
-
- [@socketsecurity/lib/eco/npm/pnpm/lockfile-format](./dist/eco/npm/pnpm/lockfile-format.d.ts): Format descriptor for `pnpm-lock.yaml` — pnpm's YAML-formatted lockfile (v5/v6/v9).
|
|
198
|
-
- [@socketsecurity/lib/eco/npm/pnpm/parse-lockfile](./dist/eco/npm/pnpm/parse-lockfile.d.ts): `parsePnpmLock(content)` — parses a `pnpm-lock.yaml` (v5, v6, or v9) into a `ParsedLockfile`.
|
|
199
|
-
- [@socketsecurity/lib/eco/npm/pnpm/parse-pnpm-package-id-v5](./dist/eco/npm/pnpm/parse-pnpm-package-id-v5.d.ts): `parsePnpmPackageIdV5(pkgId)` — extracts `{ name, version }` from a pnpm v5 package key.
|
|
200
|
-
- [@socketsecurity/lib/eco/npm/pnpm/parse-pnpm-package-id-v6-v9](./dist/eco/npm/pnpm/parse-pnpm-package-id-v6-v9.d.ts): `parsePnpmPackageIdV6V9(pkgId)` — extracts `{ name, version }` from a pnpm v6/v9 package key.
|
|
201
|
-
- [@socketsecurity/lib/eco/npm/script](./dist/eco/npm/script.d.ts): Cross-tool script runner — picks the right package manager by detecting the nearest lockfile and dispatches to its exec function.
|
|
202
|
-
- [@socketsecurity/lib/eco/npm/vlt/exec](./dist/eco/npm/vlt/exec.d.ts): Vlt tool surface.
|
|
203
|
-
- [@socketsecurity/lib/eco/npm/yarnpkg/yarn/exec](./dist/eco/npm/yarnpkg/yarn/exec.d.ts): Execute Yarn Classic (v1.x) commands with optimized flags and security defaults.
|
|
204
|
-
- [@socketsecurity/lib/eco/npm/yarnpkg/yarn/lockfile-format](./dist/eco/npm/yarnpkg/yarn/lockfile-format.d.ts): Format descriptor for `yarn.lock` — yarn's lockfile (Classic v1 + Berry v6 share the filename; the parser auto-discriminates on `__metadata:` presence).
|
|
205
|
-
- [@socketsecurity/lib/eco/npm/yarnpkg/yarn/parse-lockfile](./dist/eco/npm/yarnpkg/yarn/parse-lockfile.d.ts): `parseYarnLock(content)` — parses a `yarn.lock` (Classic v1 or Berry v6) into a `ParsedLockfile`.
|
|
206
|
-
- [@socketsecurity/lib/eco/npm/yarnpkg/yarn/parse-yarn-descriptor](./dist/eco/npm/yarnpkg/yarn/parse-yarn-descriptor.d.ts): `parseYarnDescriptor(descriptor)` — extracts the package name from a yarn lockfile spec key.
|
|
207
|
-
- [@socketsecurity/lib/eco/purl](./dist/eco/purl.d.ts): PURL (Package URL) ecosystem identifiers shared across every package manager Socket understands.
|
|
208
|
-
- [@socketsecurity/lib/eco/types](./dist/eco/types.d.ts): Socket Registry ecosystem schema types — tags for packages and the manifest entries the registry build pipeline emits.
|
|
209
|
-
|
|
210
|
-
## effects/
|
|
211
|
-
|
|
212
|
-
- [@socketsecurity/lib/effects/pulse-frames](./dist/effects/pulse-frames.d.ts): Socket pulse animation frames generator.
|
|
213
|
-
- [@socketsecurity/lib/effects/shimmer](./dist/effects/shimmer.d.ts): Shimmer animation engine — pure functions, zero deps.
|
|
214
|
-
- [@socketsecurity/lib/effects/shimmer-keyframes](./dist/effects/shimmer-keyframes.d.ts): SVG keyframe batcher for the shimmer engine.
|
|
215
|
-
- [@socketsecurity/lib/effects/shimmer-terminal](./dist/effects/shimmer-terminal.d.ts): Terminal renderer for the shimmer engine.
|
|
216
|
-
|
|
217
|
-
## env/
|
|
218
|
-
|
|
219
|
-
- [@socketsecurity/lib/env/boolean](./dist/env/boolean.d.ts): `envAsBoolean` — coerce an env-var-shaped value into a boolean.
|
|
220
|
-
- [@socketsecurity/lib/env/case-insensitive](./dist/env/case-insensitive.d.ts): Case-insensitive environment-variable key lookup — `findCaseInsensitiveEnvKey` walks `Object.keys(env)` with an O(1) length-prefilter before the (expensive) `toUpperCase` comparison.
|
|
221
|
-
- [@socketsecurity/lib/env/ci](./dist/env/ci.d.ts): CI environment variable getter.
|
|
222
|
-
- [@socketsecurity/lib/env/debug](./dist/env/debug.d.ts): DEBUG environment variable getter.
|
|
223
|
-
- [@socketsecurity/lib/env/github](./dist/env/github.d.ts): GitHub Actions environment variable getters.
|
|
224
|
-
- [@socketsecurity/lib/env/github-status](./dist/env/github-status.d.ts): Probe githubstatus.com to detect platform degradation before making GitHub API calls.
|
|
225
|
-
- [@socketsecurity/lib/env/home](./dist/env/home.d.ts): HOME environment variable getter with Windows fallback.
|
|
226
|
-
- [@socketsecurity/lib/env/locale](./dist/env/locale.d.ts): Locale and language environment variable getters.
|
|
227
|
-
- [@socketsecurity/lib/env/node-auth-token](./dist/env/node-auth-token.d.ts): NODE_AUTH_TOKEN environment variable getter.
|
|
228
|
-
- [@socketsecurity/lib/env/node-env](./dist/env/node-env.d.ts): NODE_ENV environment variable getter.
|
|
229
|
-
- [@socketsecurity/lib/env/node-version-managers](./dist/env/node-version-managers.d.ts): Detect which Node version manager is active on this machine and emit a targeted upgrade hint.
|
|
230
|
-
- [@socketsecurity/lib/env/npm](./dist/env/npm.d.ts): NPM environment variable getters.
|
|
231
|
-
- [@socketsecurity/lib/env/number](./dist/env/number.d.ts): `envAsNumber` — coerce an env-var-shaped value into a number.
|
|
232
|
-
- [@socketsecurity/lib/env/package-manager](./dist/env/package-manager.d.ts): Package manager environment detection.
|
|
233
|
-
- [@socketsecurity/lib/env/path](./dist/env/path.d.ts): PATH environment variable getter.
|
|
234
|
-
- [@socketsecurity/lib/env/pre-commit](./dist/env/pre-commit.d.ts): PRE_COMMIT environment variable getter.
|
|
235
|
-
- [@socketsecurity/lib/env/proxy](./dist/env/proxy.d.ts): `createEnvProxy` — wrap `process.env` (or any env-like record) in a Proxy that adds case-insensitive lookups for known-Windows-sensitive keys (PATH, APPDATA, etc.) and an `overrides` layer.
|
|
236
|
-
- [@socketsecurity/lib/env/rewire](./dist/env/rewire.d.ts): Environment variable rewiring utilities for testing.
|
|
237
|
-
- [@socketsecurity/lib/env/shell](./dist/env/shell.d.ts): SHELL environment variable getter.
|
|
238
|
-
- [@socketsecurity/lib/env/socket](./dist/env/socket.d.ts): Socket Security environment variable getters.
|
|
239
|
-
- [@socketsecurity/lib/env/socket-cli](./dist/env/socket-cli.d.ts): Socket CLI environment variables.
|
|
240
|
-
- [@socketsecurity/lib/env/socket-mcp](./dist/env/socket-mcp.d.ts): Socket MCP HTTP server environment variable getters.
|
|
241
|
-
- [@socketsecurity/lib/env/string](./dist/env/string.d.ts): `envAsString` — coerce an env-var-shaped value into a string.
|
|
242
|
-
- [@socketsecurity/lib/env/temp-dir](./dist/env/temp-dir.d.ts): Temporary directory environment variable getters.
|
|
243
|
-
- [@socketsecurity/lib/env/term](./dist/env/term.d.ts): TERM environment variable getter.
|
|
244
|
-
- [@socketsecurity/lib/env/test](./dist/env/test.d.ts): Test environment variable getters and detection.
|
|
245
|
-
- [@socketsecurity/lib/env/types](./dist/env/types.d.ts): Public type surface for the cross-cutting `env/*` leaves split out of the legacy single-file `env.ts` — option bags consumed by `envAsBoolean` / `envAsNumber` / `envAsString`.
|
|
246
|
-
- [@socketsecurity/lib/env/windows](./dist/env/windows.d.ts): Windows environment variable getters.
|
|
247
|
-
- [@socketsecurity/lib/env/xdg](./dist/env/xdg.d.ts): XDG Base Directory Specification environment variable getters.
|
|
248
|
-
|
|
249
|
-
## errors/
|
|
250
|
-
|
|
251
|
-
- [@socketsecurity/lib/errors/message](./dist/errors/message.d.ts): Human-readable error-message extractor.
|
|
252
|
-
- [@socketsecurity/lib/errors/predicates](./dist/errors/predicates.d.ts): Error type-guard predicates — `isError` (with the `isErrorBuiltin` / `isErrorShim` building blocks) and the libuv errno-code narrower `isErrnoException`.
|
|
253
|
-
- [@socketsecurity/lib/errors/stack](./dist/errors/stack.d.ts): Stack-trace extractor with cause-chain support.
|
|
254
|
-
|
|
255
|
-
## events/
|
|
256
|
-
|
|
257
|
-
- [@socketsecurity/lib/events/exit/handler](./dist/events/exit/handler.d.ts): `onExit` — register a callback for process exit / signal.
|
|
258
|
-
- [@socketsecurity/lib/events/exit/intercept](./dist/events/exit/intercept.d.ts): Process-method interceptors — `processEmit` replaces `process.emit` and `processReallyExit` replaces `process.reallyExit` while `load()` is active.
|
|
259
|
-
- [@socketsecurity/lib/events/exit/lifecycle](./dist/events/exit/lifecycle.d.ts): `load` and `unload` — install and remove the `signal-exit` listeners.
|
|
260
|
-
- [@socketsecurity/lib/events/exit/signals](./dist/events/exit/signals.d.ts): `signals()` — list the signals this process is watching.
|
|
261
|
-
- [@socketsecurity/lib/events/exit/types](./dist/events/exit/types.d.ts): Public type surface for `events/exit/*` modules — the `OnExitOptions` consumed by `onExit`, plus the shared internal types for the signal emitter, emitted-signal map, and listener map.
|
|
262
|
-
- [@socketsecurity/lib/events/warning/handler](./dist/events/warning/handler.d.ts): Bump the max-listener cap on an EventTarget (or AbortSignal).
|
|
263
|
-
- [@socketsecurity/lib/events/warning/suppress](./dist/events/warning/suppress.d.ts): `process.emitWarning` suppression.
|
|
264
|
-
|
|
265
|
-
## external-tools/
|
|
266
|
-
|
|
267
|
-
- [@socketsecurity/lib/external-tools/bazel/asset-names](./dist/external-tools/bazel/asset-names.d.ts): Upstream Bazel release asset-name mapping per `platform-arch`.
|
|
268
|
-
- [@socketsecurity/lib/external-tools/bazel/from-download](./dist/external-tools/bazel/from-download.d.ts): `bazelFromDownload()` — fetches the upstream Bazel binary and returns a `ResolvedBazel` pointing at the cached executable.
|
|
269
|
-
- [@socketsecurity/lib/external-tools/bazel/from-path](./dist/external-tools/bazel/from-path.d.ts): `bazelFromPath()` — looks for `bazelisk` first, then `bazel`, on the system PATH.
|
|
270
|
-
- [@socketsecurity/lib/external-tools/bazel/read-bazel-version-file](./dist/external-tools/bazel/read-bazel-version-file.d.ts): `readBazelVersionFile(workspaceDir)` — walks up from `workspaceDir` looking for a `.bazelversion` file (the Bazel/Bazelisk convention for pinning the project's Bazel version).
|
|
271
|
-
- [@socketsecurity/lib/external-tools/bazel/resolve](./dist/external-tools/bazel/resolve.d.ts): `resolveBazel()` — Bazel resolution entry point.
|
|
272
|
-
- [@socketsecurity/lib/external-tools/bazel/resolve-asset-url](./dist/external-tools/bazel/resolve-asset-url.d.ts): `resolveBazelAssetUrl(version, platformArch)` — builds the upstream GitHub Releases download URL for a Bazel binary.
|
|
273
|
-
- [@socketsecurity/lib/external-tools/bazel/resolve-bazel-version](./dist/external-tools/bazel/resolve-bazel-version.d.ts): `resolveBazelVersion({ cwd })` — picks the Bazel version to run for a project, matching the bazelisk precedence: 1.
|
|
274
|
-
- [@socketsecurity/lib/external-tools/bazel/types](./dist/external-tools/bazel/types.d.ts): Shared types for Bazel resolution.
|
|
275
|
-
- [@socketsecurity/lib/external-tools/cdxgen/asset-names](./dist/external-tools/cdxgen/asset-names.d.ts): Upstream cdxgen release asset-name mapping per `platform-arch`.
|
|
276
|
-
- [@socketsecurity/lib/external-tools/cdxgen/from-download](./dist/external-tools/cdxgen/from-download.d.ts): `cdxgenFromDownload()` — fetches the upstream cdxgen SEA binary (slim by default) and returns a `ResolvedCdxgen` pointing at the cached executable.
|
|
277
|
-
- [@socketsecurity/lib/external-tools/cdxgen/from-path](./dist/external-tools/cdxgen/from-path.d.ts): `cdxgenFromPath()` — looks for `cdxgen` on the system PATH.
|
|
278
|
-
- [@socketsecurity/lib/external-tools/cdxgen/from-vfs](./dist/external-tools/cdxgen/from-vfs.d.ts): `cdxgenFromVfs()` — extracts cdxgen from the smol binary's VFS.
|
|
279
|
-
- [@socketsecurity/lib/external-tools/cdxgen/resolve](./dist/external-tools/cdxgen/resolve.d.ts): `resolveCdxgen()` — cdxgen resolution entry point.
|
|
280
|
-
- [@socketsecurity/lib/external-tools/cdxgen/types](./dist/external-tools/cdxgen/types.d.ts): Shared types for cdxgen resolution.
|
|
281
|
-
- [@socketsecurity/lib/external-tools/from-download](./dist/external-tools/from-download.d.ts): Generic "download tier" for external-tools resolvers.
|
|
282
|
-
- [@socketsecurity/lib/external-tools/from-pip-venv](./dist/external-tools/from-pip-venv.d.ts): Generic "venv-install tier" for external-tools resolvers.
|
|
283
|
-
- [@socketsecurity/lib/external-tools/janus/asset-names](./dist/external-tools/janus/asset-names.d.ts): Upstream janus release asset-name mapping per `platform-arch`.
|
|
284
|
-
- [@socketsecurity/lib/external-tools/janus/from-download](./dist/external-tools/janus/from-download.d.ts): `janusFromDownload()` — fetches upstream janus and returns a `ResolvedJanus` pointing at the extracted binary.
|
|
285
|
-
- [@socketsecurity/lib/external-tools/janus/from-path](./dist/external-tools/janus/from-path.d.ts): `janusFromPath()` — looks for `janus` on the system PATH.
|
|
286
|
-
- [@socketsecurity/lib/external-tools/janus/from-vfs](./dist/external-tools/janus/from-vfs.d.ts): `janusFromVfs()` — extracts the janus binary from the smol binary's VFS.
|
|
287
|
-
- [@socketsecurity/lib/external-tools/janus/resolve](./dist/external-tools/janus/resolve.d.ts): `resolveJanus()` — janus resolution entry point.
|
|
288
|
-
- [@socketsecurity/lib/external-tools/janus/types](./dist/external-tools/janus/types.d.ts): Shared types for janus resolution.
|
|
289
|
-
- [@socketsecurity/lib/external-tools/jre/asset-names](./dist/external-tools/jre/asset-names.d.ts): Adoptium API platform-arch → asset-query mappings.
|
|
290
|
-
- [@socketsecurity/lib/external-tools/jre/detect-platform-arch](./dist/external-tools/jre/detect-platform-arch.d.ts): `getJreArch()` — resolves the current machine to a `platform-arch` string suitable for the Adoptium `ADOPTIUM_QUERY_MAP` keys (e.g.
|
|
291
|
-
- [@socketsecurity/lib/external-tools/jre/from-download](./dist/external-tools/jre/from-download.d.ts): `jreFromDownload()` — fetches Adoptium JRE and returns a `ResolvedJre` pointing at the extracted java binary.
|
|
292
|
-
- [@socketsecurity/lib/external-tools/jre/from-java-home](./dist/external-tools/jre/from-java-home.d.ts): `jreFromJavaHome()` — checks `$JAVA_HOME` for an existing JRE/JDK.
|
|
293
|
-
- [@socketsecurity/lib/external-tools/jre/from-path](./dist/external-tools/jre/from-path.d.ts): `jreFromPath()` — looks for `java` (or `java.exe`) on the system PATH via socket-lib's `which`.
|
|
294
|
-
- [@socketsecurity/lib/external-tools/jre/from-vfs](./dist/external-tools/jre/from-vfs.d.ts): `jreFromVfs()` — extracts the JRE directory tree from the smol binary's VFS and returns the resolved-shape pointing into the extracted directory.
|
|
295
|
-
- [@socketsecurity/lib/external-tools/jre/resolve](./dist/external-tools/jre/resolve.d.ts): `resolveJre()` — the JRE resolution entry point.
|
|
296
|
-
- [@socketsecurity/lib/external-tools/jre/types](./dist/external-tools/jre/types.d.ts): Shared types for JRE resolution.
|
|
297
|
-
- [@socketsecurity/lib/external-tools/manifest](./dist/external-tools/manifest.d.ts): Reader for `external-tools.json` — the fleet manifest describing downloadable external binaries (sfw, zizmor, etc.) with pinned versions, per-platform asset names, and integrity hashes.
|
|
298
|
-
- [@socketsecurity/lib/external-tools/opengrep/asset-names](./dist/external-tools/opengrep/asset-names.d.ts): Upstream OpenGrep release asset-name mapping per `platform-arch`.
|
|
299
|
-
- [@socketsecurity/lib/external-tools/opengrep/from-download](./dist/external-tools/opengrep/from-download.d.ts): `opengrepFromDownload()` — fetches upstream OpenGrep and returns a `ResolvedOpengrep` pointing at the cached binary.
|
|
300
|
-
- [@socketsecurity/lib/external-tools/opengrep/from-path](./dist/external-tools/opengrep/from-path.d.ts): `opengrepFromPath()` — looks for `opengrep` on the system PATH.
|
|
301
|
-
- [@socketsecurity/lib/external-tools/opengrep/from-vfs](./dist/external-tools/opengrep/from-vfs.d.ts): `opengrepFromVfs()` — extracts the OpenGrep binary from the smol binary's VFS.
|
|
302
|
-
- [@socketsecurity/lib/external-tools/opengrep/resolve](./dist/external-tools/opengrep/resolve.d.ts): `resolveOpengrep()` — OpenGrep resolution entry point.
|
|
303
|
-
- [@socketsecurity/lib/external-tools/opengrep/types](./dist/external-tools/opengrep/types.d.ts): Shared types for OpenGrep resolution.
|
|
304
|
-
- [@socketsecurity/lib/external-tools/python/asset-names](./dist/external-tools/python/asset-names.d.ts): Python-build-standalone release asset mapping.
|
|
305
|
-
- [@socketsecurity/lib/external-tools/python/dlx](./dist/external-tools/python/dlx.d.ts): One-call dlx convenience wrappers for python: resolve (or download) a CPython into the known dlx location, then run a pip primitive against it — so callers don't thread `pythonBin` by hand.
|
|
306
|
-
- [@socketsecurity/lib/external-tools/python/from-download](./dist/external-tools/python/from-download.d.ts): `pythonFromDownload()` — fetches a python-build-standalone CPython into the DLX cache and returns a `ResolvedPython` pointing at the interpreter.
|
|
307
|
-
- [@socketsecurity/lib/external-tools/python/from-path](./dist/external-tools/python/from-path.d.ts): `pythonFromPath()` — looks for a CPython interpreter on the system PATH.
|
|
308
|
-
- [@socketsecurity/lib/external-tools/python/pin](./dist/external-tools/python/pin.d.ts): `resolvePipPackagePin()` — the Python mirror of `resolveNpmPackagePin()` (dlx/lockfile).
|
|
309
|
-
- [@socketsecurity/lib/external-tools/python/pip-install](./dist/external-tools/python/pip-install.d.ts): `downloadPipPackage()` — the Python mirror of `dlx/package.ts`'s `downloadNpmPackage()`.
|
|
310
|
-
- [@socketsecurity/lib/external-tools/python/resolve](./dist/external-tools/python/resolve.d.ts): `resolvePython()` — CPython resolution entry point.
|
|
311
|
-
- [@socketsecurity/lib/external-tools/python/types](./dist/external-tools/python/types.d.ts): Types for the python-build-standalone DLX resolver.
|
|
312
|
-
- [@socketsecurity/lib/external-tools/python/uv-install](./dist/external-tools/python/uv-install.d.ts): Uv project install helpers — the locked-source-of-truth half of the "uv project + dlx materialize" model.
|
|
313
|
-
- [@socketsecurity/lib/external-tools/sbt/asset-names](./dist/external-tools/sbt/asset-names.d.ts): SBT distribution download-URL builder.
|
|
314
|
-
- [@socketsecurity/lib/external-tools/sbt/from-download](./dist/external-tools/sbt/from-download.d.ts): `sbtFromDownload()` — fetches the SBT launcher tarball, extracts it, and returns a `ResolvedSbt` pointing at the `bin/sbt` script.
|
|
315
|
-
- [@socketsecurity/lib/external-tools/sbt/from-path](./dist/external-tools/sbt/from-path.d.ts): `sbtFromPath()` — looks for the `sbt` shell script on the system PATH.
|
|
316
|
-
- [@socketsecurity/lib/external-tools/sbt/from-vfs](./dist/external-tools/sbt/from-vfs.d.ts): `sbtFromVfs()` — extracts the SBT launcher jar from the smol binary's VFS.
|
|
317
|
-
- [@socketsecurity/lib/external-tools/sbt/resolve](./dist/external-tools/sbt/resolve.d.ts): `resolveSbt()` — SBT resolution entry point.
|
|
318
|
-
- [@socketsecurity/lib/external-tools/sbt/types](./dist/external-tools/sbt/types.d.ts): Shared types for SBT resolution.
|
|
319
|
-
- [@socketsecurity/lib/external-tools/skillspector/from-dlx](./dist/external-tools/skillspector/from-dlx.d.ts): `skillspectorFromDlx()` — DLX-venv tier of SkillSpector resolution.
|
|
320
|
-
- [@socketsecurity/lib/external-tools/skillspector/from-path](./dist/external-tools/skillspector/from-path.d.ts): `skillspectorFromPath()` — `which skillspector` lookup.
|
|
321
|
-
- [@socketsecurity/lib/external-tools/skillspector/from-uv](./dist/external-tools/skillspector/from-uv.d.ts): `skillspectorFromUv()` — locked-uv-project tier of SkillSpector resolution.
|
|
322
|
-
- [@socketsecurity/lib/external-tools/skillspector/from-vfs](./dist/external-tools/skillspector/from-vfs.d.ts): `skillspectorFromVfs()` — extracts SkillSpector from the smol Node VFS if it's bundled.
|
|
323
|
-
- [@socketsecurity/lib/external-tools/skillspector/resolve](./dist/external-tools/skillspector/resolve.d.ts): `resolveSkillSpector()` — SkillSpector resolution entry point.
|
|
324
|
-
- [@socketsecurity/lib/external-tools/skillspector/types](./dist/external-tools/skillspector/types.d.ts): Shared types for SkillSpector resolution.
|
|
325
|
-
- [@socketsecurity/lib/external-tools/synp/asset-names](./dist/external-tools/synp/asset-names.d.ts): Upstream synp package coordinates.
|
|
326
|
-
- [@socketsecurity/lib/external-tools/synp/from-download](./dist/external-tools/synp/from-download.d.ts): `synpFromDownload()` — installs the pinned synp npm package via `dlx/package` and returns a `ResolvedSynp` pointing at the resolved bin shim.
|
|
327
|
-
- [@socketsecurity/lib/external-tools/synp/from-path](./dist/external-tools/synp/from-path.d.ts): `synpFromPath()` — looks for `synp` on the system PATH.
|
|
328
|
-
- [@socketsecurity/lib/external-tools/synp/from-vfs](./dist/external-tools/synp/from-vfs.d.ts): `synpFromVfs()` — extracts synp from the smol binary's VFS.
|
|
329
|
-
- [@socketsecurity/lib/external-tools/synp/resolve](./dist/external-tools/synp/resolve.d.ts): `resolveSynp()` — synp resolution entry point.
|
|
330
|
-
- [@socketsecurity/lib/external-tools/synp/types](./dist/external-tools/synp/types.d.ts): Shared types for synp resolution.
|
|
331
|
-
- [@socketsecurity/lib/external-tools/trivy/asset-names](./dist/external-tools/trivy/asset-names.d.ts): Upstream Trivy release asset-name mapping per `platform-arch`.
|
|
332
|
-
- [@socketsecurity/lib/external-tools/trivy/from-download](./dist/external-tools/trivy/from-download.d.ts): `trivyFromDownload()` — fetches upstream Trivy and returns a `ResolvedTrivy` pointing at the extracted binary.
|
|
333
|
-
- [@socketsecurity/lib/external-tools/trivy/from-path](./dist/external-tools/trivy/from-path.d.ts): `trivyFromPath()` — looks for `trivy` on the system PATH.
|
|
334
|
-
- [@socketsecurity/lib/external-tools/trivy/from-vfs](./dist/external-tools/trivy/from-vfs.d.ts): `trivyFromVfs()` — extracts the Trivy binary from the smol binary's VFS.
|
|
335
|
-
- [@socketsecurity/lib/external-tools/trivy/resolve](./dist/external-tools/trivy/resolve.d.ts): `resolveTrivy()` — Trivy resolution entry point.
|
|
336
|
-
- [@socketsecurity/lib/external-tools/trivy/types](./dist/external-tools/trivy/types.d.ts): Shared types for Trivy resolution.
|
|
337
|
-
- [@socketsecurity/lib/external-tools/trufflehog/asset-names](./dist/external-tools/trufflehog/asset-names.d.ts): Upstream TruffleHog release asset-name mapping per `platform-arch`.
|
|
338
|
-
- [@socketsecurity/lib/external-tools/trufflehog/from-download](./dist/external-tools/trufflehog/from-download.d.ts): `trufflehogFromDownload()` — fetches upstream TruffleHog and returns a `ResolvedTrufflehog` pointing at the extracted binary.
|
|
339
|
-
- [@socketsecurity/lib/external-tools/trufflehog/from-path](./dist/external-tools/trufflehog/from-path.d.ts): `trufflehogFromPath()` — looks for `trufflehog` on the system PATH via socket-lib's `which`.
|
|
340
|
-
- [@socketsecurity/lib/external-tools/trufflehog/from-vfs](./dist/external-tools/trufflehog/from-vfs.d.ts): `trufflehogFromVfs()` — extracts the TruffleHog binary from the smol binary's VFS.
|
|
341
|
-
- [@socketsecurity/lib/external-tools/trufflehog/resolve](./dist/external-tools/trufflehog/resolve.d.ts): `resolveTrufflehog()` — TruffleHog resolution entry point.
|
|
342
|
-
- [@socketsecurity/lib/external-tools/trufflehog/types](./dist/external-tools/trufflehog/types.d.ts): Shared types for TruffleHog resolution.
|
|
343
|
-
- [@socketsecurity/lib/external-tools/uv/asset-names](./dist/external-tools/uv/asset-names.d.ts): Upstream uv release asset-name mapping per `platform-arch`.
|
|
344
|
-
- [@socketsecurity/lib/external-tools/uv/from-download](./dist/external-tools/uv/from-download.d.ts): `uvFromDownload()` — fetches upstream uv and returns a `ResolvedUv` pointing at the extracted binary.
|
|
345
|
-
- [@socketsecurity/lib/external-tools/uv/from-path](./dist/external-tools/uv/from-path.d.ts): `uvFromPath()` — looks for `uv` on the system PATH.
|
|
346
|
-
- [@socketsecurity/lib/external-tools/uv/from-vfs](./dist/external-tools/uv/from-vfs.d.ts): `uvFromVfs()` — extracts the uv binary from the smol binary's VFS.
|
|
347
|
-
- [@socketsecurity/lib/external-tools/uv/resolve](./dist/external-tools/uv/resolve.d.ts): `resolveUv()` — uv resolution entry point.
|
|
348
|
-
- [@socketsecurity/lib/external-tools/uv/types](./dist/external-tools/uv/types.d.ts): Shared types for uv resolution.
|
|
349
|
-
|
|
350
|
-
## fleet/
|
|
351
|
-
|
|
352
|
-
- [@socketsecurity/lib/fleet/repo-config](./dist/fleet/repo-config.d.ts): Fleet-convention config reader: a per-repo override (`.config/repo`) layered over the cascaded fleet default (`.config/fleet`).
|
|
353
|
-
|
|
354
|
-
## fs/
|
|
355
|
-
|
|
356
|
-
- [@socketsecurity/lib/fs/access](./dist/fs/access.d.ts): Synchronous file-access predicates — boolean "can this process do X to this path?" checks over `fs.accessSync`.
|
|
357
|
-
- [@socketsecurity/lib/fs/allowed-dirs-cache](./dist/fs/allowed-dirs-cache.d.ts): Cache-invalidation entry point for the allowed-directories list used by `safeDelete` / `safeDeleteSync`.
|
|
358
|
-
- [@socketsecurity/lib/fs/encoding](./dist/fs/encoding.d.ts): Encoding-name normalization.
|
|
359
|
-
- [@socketsecurity/lib/fs/find](./dist/fs/find.d.ts): Walk parent directories to locate a file or directory by name.
|
|
360
|
-
- [@socketsecurity/lib/fs/inspect](./dist/fs/inspect.d.ts): Filesystem inspection helpers — `stat` / `lstat` wrappers that return `undefined` instead of throwing, and the directory / symlink / emptiness predicates layered on top.
|
|
361
|
-
- [@socketsecurity/lib/fs/read-dir](./dist/fs/read-dir.d.ts): Async/sync directory listing — returns directory names only (filtering out files), with optional emptiness suppression and natural-order sorting.
|
|
362
|
-
- [@socketsecurity/lib/fs/read-file](./dist/fs/read-file.d.ts): File-content readers — UTF-8 / binary / safe variants (sync + async).
|
|
363
|
-
- [@socketsecurity/lib/fs/read-json](./dist/fs/read-json.d.ts): Read-and-parse helpers for JSON files.
|
|
364
|
-
- [@socketsecurity/lib/fs/read-json-cache](./dist/fs/read-json-cache.d.ts): Process-scoped LRU cache for `readJson` / `readJsonSync` results, keyed by absolute path + stat (`ino + size + mtimeMs`).
|
|
365
|
-
- [@socketsecurity/lib/fs/resolve-module](./dist/fs/resolve-module.d.ts): `require.resolve`-from-an-arbitrary-base.
|
|
366
|
-
- [@socketsecurity/lib/fs/safe](./dist/fs/safe.d.ts): Safe deletion + idempotent directory creation.
|
|
367
|
-
- [@socketsecurity/lib/fs/types](./dist/fs/types.d.ts): Public type surface for `fs/*` modules — option shapes, encoding union, and result records.
|
|
368
|
-
- [@socketsecurity/lib/fs/unique](./dist/fs/unique.d.ts): Generate a unique filepath by appending `-1`, `-2`, … before the extension until the path is free.
|
|
369
|
-
- [@socketsecurity/lib/fs/validate](./dist/fs/validate.d.ts): Pre-flight readability check for file lists.
|
|
370
|
-
- [@socketsecurity/lib/fs/write-json](./dist/fs/write-json.d.ts): JSON writers that match the wire-format conventions a tool ecosystem expects: configurable indentation, configurable EOL, trailing newline by default.
|
|
371
|
-
|
|
372
|
-
## git/
|
|
373
|
-
|
|
374
|
-
- [@socketsecurity/lib/git/changed](./dist/git/changed.d.ts): "Anything different from HEAD" helpers — the broad-strokes `git status --porcelain` view that lumps staged, unstaged, and untracked paths together.
|
|
375
|
-
- [@socketsecurity/lib/git/repo](./dist/git/repo.d.ts): Git repository discovery + foundational lazy fs/path/cwd helpers shared across `git/*` leaves.
|
|
376
|
-
- [@socketsecurity/lib/git/staged](./dist/git/staged.d.ts): "Ready for the next commit" helpers — `git diff --cached` over only the index.
|
|
377
|
-
- [@socketsecurity/lib/git/tracked](./dist/git/tracked.d.ts): Tracked-status + submodule-membership probes for a working-tree path.
|
|
378
|
-
- [@socketsecurity/lib/git/types](./dist/git/types.d.ts): Public type surface for `git/*` modules — the `FilterPackagesByChangesOptions` and `GitDiffOptions` configuration records.
|
|
379
|
-
- [@socketsecurity/lib/git/unstaged](./dist/git/unstaged.d.ts): "Edited but not yet staged" helpers — `git diff` over the working tree only.
|
|
380
|
-
|
|
381
|
-
## github/
|
|
382
|
-
|
|
383
|
-
- [@socketsecurity/lib/github/constants](./dist/github/constants.d.ts): GitHub API URL + cache-TTL constants.
|
|
384
|
-
- [@socketsecurity/lib/github/errors](./dist/github/errors.d.ts): Named errors thrown by `github/*` helpers.
|
|
385
|
-
- [@socketsecurity/lib/github/ghsa](./dist/github/ghsa.d.ts): GitHub Security Advisory (GHSA) lookups.
|
|
386
|
-
- [@socketsecurity/lib/github/refs](./dist/github/refs.d.ts): Resolve GitHub git refs (tag / branch / commit) to full commit SHAs.
|
|
387
|
-
- [@socketsecurity/lib/github/refs-cache](./dist/github/refs-cache.d.ts): TtlCache singleton for github/refs.
|
|
388
|
-
- [@socketsecurity/lib/github/refs-graphql](./dist/github/refs-graphql.d.ts): Resolve a GitHub git ref via GraphQL.
|
|
389
|
-
- [@socketsecurity/lib/github/refs-rest](./dist/github/refs-rest.d.ts): Resolve a GitHub git ref via REST tier-cascade.
|
|
390
|
-
- [@socketsecurity/lib/github/request](./dist/github/request.d.ts): Authenticated GitHub REST fetch.
|
|
391
|
-
- [@socketsecurity/lib/github/token](./dist/github/token.d.ts): GitHub token resolution.
|
|
392
|
-
- [@socketsecurity/lib/github/types](./dist/github/types.d.ts): Public type surface for `github/*` modules — pure interfaces.
|
|
393
|
-
|
|
394
|
-
## globs/
|
|
395
|
-
|
|
396
|
-
- [@socketsecurity/lib/globs/defaults](./dist/globs/defaults.d.ts): The npm-packlist-derived `defaultIgnore` list.
|
|
397
|
-
- [@socketsecurity/lib/globs/match](./dist/globs/match.d.ts): `glob` (async) and `globSync` — fast-glob wrappers with a `node:fs.glob` fast-path when the option surface lines up.
|
|
398
|
-
- [@socketsecurity/lib/globs/matcher](./dist/globs/matcher.d.ts): `getGlobMatcher` — picomatch-backed sync predicate with an LRU-memoized matcher cache.
|
|
399
|
-
- [@socketsecurity/lib/globs/stream](./dist/globs/stream.d.ts): `globStreamLicenses` — license-file discovery as an async stream.
|
|
400
|
-
- [@socketsecurity/lib/globs/types](./dist/globs/types.d.ts): Public type surface for `globs/*` modules — the `Pattern` alias, the `FastGlobOptions` mirror of fast-glob's option surface, and the `GlobOptions` extension that adds Socket-specific `recursive` / `ignoreOriginals` fl...
|
|
401
|
-
|
|
402
|
-
## http-request/
|
|
403
|
-
|
|
404
|
-
- [@socketsecurity/lib/http-request/browser](./dist/http-request/browser.d.ts): Browser-safe HTTP request layer — mirrors the public surface of `@socketsecurity/lib/http-request` (`httpJson`, `httpText`, `httpRequest`, `HttpResponseError`) but uses the browser's `fetch` API instead of Node's `nod...
|
|
405
|
-
- [@socketsecurity/lib/http-request/checksum-file](./dist/http-request/checksum-file.d.ts): Checksum file fetching + parsing for download verification.
|
|
406
|
-
- [@socketsecurity/lib/http-request/download](./dist/http-request/download.d.ts): Streaming file downloads with retries, progress callbacks, and SHA-256 verification.
|
|
407
|
-
- [@socketsecurity/lib/http-request/download-types](./dist/http-request/download-types.d.ts): Types for HTTP download + checksum-fetch operations.
|
|
408
|
-
- [@socketsecurity/lib/http-request/errors](./dist/http-request/errors.d.ts): Error-message enrichment for HTTP/HTTPS requests.
|
|
409
|
-
- [@socketsecurity/lib/http-request/fetch/browser](./dist/http-request/fetch/browser.d.ts): Thin wrapper over the global `fetch()` so tests can mock the network layer via `vi.mock('@socketsecurity/lib/http-request/fetch/browser')` without monkey-patching `globalThis.fetch` (which conflicts with the project's...
|
|
410
|
-
- [@socketsecurity/lib/http-request/headers](./dist/http-request/headers.d.ts): Header utilities for HTTP/HTTPS requests.
|
|
411
|
-
- [@socketsecurity/lib/http-request/http-request](./dist/http-request/node.d.ts): Node-side HTTP request layer — the public surface (`httpJson`, `httpText`, `httpRequest`, `HttpResponseError`) for consumers on Node.
|
|
412
|
-
- [@socketsecurity/lib/http-request/node](./dist/http-request/node.d.ts): Node-side HTTP request layer — the public surface (`httpJson`, `httpText`, `httpRequest`, `HttpResponseError`) for consumers on Node.
|
|
413
|
-
- [@socketsecurity/lib/http-request/request](./dist/http-request/request.d.ts): Core HTTP/HTTPS request loop — the retry orchestrator.
|
|
414
|
-
- [@socketsecurity/lib/http-request/request-attempt](./dist/http-request/request-attempt.d.ts): Single HTTP request attempt — the workhorse beneath the retrying `httpRequest` orchestrator.
|
|
415
|
-
- [@socketsecurity/lib/http-request/request-types](./dist/http-request/request-types.d.ts): Types for HTTP request configuration — options, hooks, and Node `IncomingMessage` aliases.
|
|
416
|
-
- [@socketsecurity/lib/http-request/response-reader](./dist/http-request/response-reader.d.ts): Read a raw Node `IncomingMessage` into our `HttpResponse` shape.
|
|
417
|
-
- [@socketsecurity/lib/http-request/response-types](./dist/http-request/response-types.d.ts): Types for HTTP response surface — `HttpResponse` with its fetch-like body accessors, and `HttpResponseError` for `throwOnError`.
|
|
418
|
-
- [@socketsecurity/lib/http-request/user-agent](./dist/http-request/user-agent.d.ts): User-Agent header generation for socket-lib's outbound HTTP requests.
|
|
419
|
-
|
|
420
|
-
## ipc-cli/
|
|
421
|
-
|
|
422
|
-
- [@socketsecurity/lib/ipc-cli/get](./dist/ipc-cli/get.d.ts): Socket CLI child-process IPC object getter.
|
|
423
|
-
- [@socketsecurity/lib/ipc-cli/types](./dist/ipc-cli/types.d.ts): Public type surface for `ipc-cli/*` modules — the `IpcObject` record describing the `SOCKET_CLI_*` env-var shape forwarded from a parent Socket CLI to a child process.
|
|
424
|
-
|
|
425
|
-
## ipc/
|
|
426
|
-
|
|
427
|
-
- [@socketsecurity/lib/ipc/directory](./dist/ipc/directory.d.ts): Stub-directory creation + permission audit.
|
|
428
|
-
- [@socketsecurity/lib/ipc/paths](./dist/ipc/paths.d.ts): IPC stub path resolution.
|
|
429
|
-
- [@socketsecurity/lib/ipc/types](./dist/ipc/types.d.ts): Public type surface for `ipc/*` modules — the `IpcStub` shape that backs the file-based handoff.
|
|
430
|
-
- [@socketsecurity/lib/ipc/write](./dist/ipc/write.d.ts): Atomic stub write — `O_CREAT|O_WRONLY|O_EXCL| O_NOFOLLOW` so we refuse to overwrite a pre-existing stub (collision with attacker-planted file or PID reuse) and refuse to follow symlinks at the final path component.
|
|
431
|
-
|
|
432
|
-
## json/
|
|
433
|
-
|
|
434
|
-
- [@socketsecurity/lib/json/edit](./dist/json/edit.d.ts): Editable JSON file manipulation with formatting preservation.
|
|
435
|
-
- [@socketsecurity/lib/json/format](./dist/json/format.d.ts): Shared utilities for JSON formatting preservation and manipulation.
|
|
436
|
-
- [@socketsecurity/lib/json/parse](./dist/json/parse.d.ts): JSON parsing utilities with Buffer detection and BOM stripping.
|
|
437
|
-
- [@socketsecurity/lib/json/types](./dist/json/types.d.ts): JSON type definitions and interfaces.
|
|
438
|
-
|
|
439
|
-
## links/
|
|
440
|
-
|
|
441
|
-
- [@socketsecurity/lib/links/create](./dist/links/create.d.ts): Themed hyperlink utilities for terminal output.
|
|
442
|
-
- [@socketsecurity/lib/links/types](./dist/links/types.d.ts): Public type surface for `links/*` modules — the `LinkOptions` record.
|
|
443
|
-
|
|
444
|
-
## logger/
|
|
445
|
-
|
|
446
|
-
- [@socketsecurity/lib/logger/browser](./dist/logger/browser.d.ts): Browser-safe `Logger` implementation — mirrors the public `success` / `fail` / `warn` / `error` / `info` / `log` surface of the Node `Logger` (see `./node`) but backed by the global `console` so it works in Chrome MV3...
|
|
447
|
-
- [@socketsecurity/lib/logger/colors](./dist/logger/colors.d.ts): Color application helpers for `logger/*` modules.
|
|
448
|
-
- [@socketsecurity/lib/logger/console](./dist/logger/console.d.ts): Lazy `Console` construction + dynamic prototype mirroring for `Logger`.
|
|
449
|
-
- [@socketsecurity/lib/logger/console-methods](./dist/logger/console-methods.d.ts): Free-function bodies for the `Logger` methods that are thin, chainable mirrors of the underlying `node:console` API (`assert`, `count`, `dir`, `dirxml`, `table`, `time`, `timeEnd`, `timeLog`, `trace`).
|
|
450
|
-
- [@socketsecurity/lib/logger/default](./dist/logger/default.d.ts): Shared-default `Logger` singleton.
|
|
451
|
-
- [@socketsecurity/lib/logger/indentation-methods](./dist/logger/indentation-methods.d.ts): Free-function bodies for the `Logger` indentation-domain methods (`indent`, `dedent`, `resetIndent`, `group`, `groupCollapsed`, `groupEnd`).
|
|
452
|
-
- [@socketsecurity/lib/logger/logger](./dist/logger/node.d.ts): Node-side `Logger` class — owns per-instance state (parent, bound stream, indent buffers, theme) and exposes the public surface as thin delegators over sibling free-function leaves.
|
|
453
|
-
- [@socketsecurity/lib/logger/node](./dist/logger/node.d.ts): Node-side `Logger` class — owns per-instance state (parent, bound stream, indent buffers, theme) and exposes the public surface as thin delegators over sibling free-function leaves.
|
|
454
|
-
- [@socketsecurity/lib/logger/options](./dist/logger/options.d.ts): Constructor-options parsing for the `Logger` class.
|
|
455
|
-
- [@socketsecurity/lib/logger/semantic-methods](./dist/logger/semantic-methods.d.ts): Free-function bodies for the symbol-prefixed semantic `Logger` methods (`done`, `fail`, `info`, `skip`, `step`, `success`, `warn`).
|
|
456
|
-
- [@socketsecurity/lib/logger/stream](./dist/logger/stream.d.ts): Terminal stream resolution + line-clearing helpers shared by the Node-side `Logger` methods that write directly to a stream (`clearLine`, `clearVisible`, `progress`).
|
|
457
|
-
- [@socketsecurity/lib/logger/stream-methods](./dist/logger/stream-methods.d.ts): Free-function bodies for the `Logger` methods that write to or clear a raw stream rather than going through the indented `#apply` path (`clearLine`, `clearVisible`, `progress`, `write`).
|
|
458
|
-
- [@socketsecurity/lib/logger/symbols](./dist/logger/symbols.d.ts): Symbol exports + the `LOG_SYMBOLS` proxy.
|
|
459
|
-
- [@socketsecurity/lib/logger/symbols-builder](./dist/logger/symbols-builder.d.ts): Free-function helpers for per-instance log-symbol construction + symbol stripping.
|
|
460
|
-
- [@socketsecurity/lib/logger/types](./dist/logger/types.d.ts): Public type surface for `logger/*` modules — the `LogSymbols` shape, the `LoggerMethods` mapped type that mirrors `console`, and the `Task` interface returned by `Logger.createTask`.
|
|
461
|
-
|
|
462
|
-
## memo/
|
|
463
|
-
|
|
464
|
-
- [@socketsecurity/lib/memo/async](./dist/memo/async.d.ts): `memoizeAsync` — async-aware memoizer with the same LRU+TTL contract as `memoize`, plus thundering-herd dedup.
|
|
465
|
-
- [@socketsecurity/lib/memo/clear](./dist/memo/clear.d.ts): `clearAllMemoizationCaches` — fan out to every per-cache clear function registered in `_internal.cacheRegistry`.
|
|
466
|
-
- [@socketsecurity/lib/memo/decorator](./dist/memo/decorator.d.ts): `Memoize` — class-method decorator that wraps the decorated method via `memoize`.
|
|
467
|
-
- [@socketsecurity/lib/memo/memoize](./dist/memo/memoize.d.ts): `memoize` — synchronous function memoizer with LRU eviction (Map insertion-order based), optional TTL, and optional custom key generator.
|
|
468
|
-
- [@socketsecurity/lib/memo/once](./dist/memo/once.d.ts): `once` — zero-argument memoizer.
|
|
469
|
-
- [@socketsecurity/lib/memo/types](./dist/memo/types.d.ts): Public type surface for `memo/*` modules — `MemoizeOptions` is the user-facing options bag accepted by every memoize entrypoint, `CacheEntry<T>` is the internal row stored in each per-function cache.
|
|
470
|
-
- [@socketsecurity/lib/memo/weak](./dist/memo/weak.d.ts): `memoizeWeak` — memoizer keyed by an object reference via `WeakMap`.
|
|
471
|
-
|
|
472
|
-
## native-messaging/
|
|
473
|
-
|
|
474
|
-
- [@socketsecurity/lib/native-messaging/host](./dist/native-messaging/host.d.ts): Chrome native messaging host entry point.
|
|
475
|
-
- [@socketsecurity/lib/native-messaging/install](./dist/native-messaging/install.d.ts): Install the Socket native messaging host manifest so Chrome can find and launch the host when the extension calls connectNative().
|
|
476
|
-
- [@socketsecurity/lib/native-messaging/rate-limit](./dist/native-messaging/rate-limit.d.ts): Token-bucket rate limit for the Chrome native-messaging host.
|
|
477
|
-
- [@socketsecurity/lib/native-messaging/run](./dist/native-messaging/run.d.ts): Native messaging host entry point.
|
|
478
|
-
|
|
479
|
-
## node/
|
|
480
|
-
|
|
481
|
-
- [@socketsecurity/lib/node/async-hooks](./dist/node/async-hooks.d.ts): Lazy-loader for `node:async_hooks`.
|
|
482
|
-
- [@socketsecurity/lib/node/child-process](./dist/node/child-process.d.ts): Lazy-loader for `node:child_process`.
|
|
483
|
-
- [@socketsecurity/lib/node/crypto](./dist/node/crypto.d.ts): Lazy-loader for `node:crypto`.
|
|
484
|
-
- [@socketsecurity/lib/node/events](./dist/node/events.d.ts): Lazy-loader for `node:events`.
|
|
485
|
-
- [@socketsecurity/lib/node/fs](./dist/node/fs.d.ts): Early-snapshot accessor for `node:fs`.
|
|
486
|
-
- [@socketsecurity/lib/node/fs-promises](./dist/node/fs-promises.d.ts): Lazy-loader for `node:fs/promises`.
|
|
487
|
-
- [@socketsecurity/lib/node/http](./dist/node/http.d.ts): Lazy-loader for `node:http`.
|
|
488
|
-
- [@socketsecurity/lib/node/https](./dist/node/https.d.ts): Lazy-loader for `node:https`.
|
|
489
|
-
- [@socketsecurity/lib/node/module](./dist/node/module.d.ts): Accessors for `node:module` that work across runtimes.
|
|
490
|
-
- [@socketsecurity/lib/node/os](./dist/node/os.d.ts): Early-snapshot accessor for `node:os`.
|
|
491
|
-
- [@socketsecurity/lib/node/path](./dist/node/path.d.ts): Early-snapshot accessor for `node:path`.
|
|
492
|
-
- [@socketsecurity/lib/node/timers-promises](./dist/node/timers-promises.d.ts): Lazy-loader for `node:timers/promises`.
|
|
493
|
-
- [@socketsecurity/lib/node/url](./dist/node/url.d.ts): Lazy-loader for `node:url`.
|
|
494
|
-
- [@socketsecurity/lib/node/util](./dist/node/util.d.ts): Lazy-loader for `node:util`.
|
|
495
|
-
|
|
496
|
-
## objects/
|
|
497
|
-
|
|
498
|
-
- [@socketsecurity/lib/objects/getters](./dist/objects/getters.d.ts): Lazy-getter primitives + `createConstantsObject`.
|
|
499
|
-
- [@socketsecurity/lib/objects/inspect](./dist/objects/inspect.d.ts): Object inspection helpers — `getKeys`, `getOwn`, `getOwnPropertyValues`.
|
|
500
|
-
- [@socketsecurity/lib/objects/mutate](./dist/objects/mutate.d.ts): Object mutation helpers — `merge` (deep recursive), `objectAssign` (alias for native), `objectFreeze` (alias for native).
|
|
501
|
-
- [@socketsecurity/lib/objects/predicates](./dist/objects/predicates.d.ts): Object type guards: `hasKeys`, `hasOwn`, `isObject`, `isPlainObject`.
|
|
502
|
-
- [@socketsecurity/lib/objects/sort](./dist/objects/sort.d.ts): Sorted-object helpers: `entryKeyComparator`, `objectEntries`, `toSortedObject`, `toSortedObjectFromEntries`.
|
|
503
|
-
- [@socketsecurity/lib/objects/types](./dist/objects/types.d.ts): Public type surface for `objects/*` modules — getter definition shapes and the `Remap` type helper.
|
|
504
|
-
|
|
505
|
-
## packages/
|
|
506
|
-
|
|
507
|
-
- [@socketsecurity/lib/packages/edit](./dist/packages/edit.d.ts): Editable package.json manipulation utilities.
|
|
508
|
-
- [@socketsecurity/lib/packages/edit-class](./dist/packages/edit-class.d.ts): The `EditablePackageJson` class factory.
|
|
509
|
-
- [@socketsecurity/lib/packages/exports](./dist/packages/exports.d.ts): Package exports field utilities.
|
|
510
|
-
- [@socketsecurity/lib/packages/fetch](./dist/packages/fetch.d.ts): Network-facing package helpers: the lazily-initialized make-fetch-happen fetcher (shared cache) and GitHub tarball-URL resolution for a package spec.
|
|
511
|
-
- [@socketsecurity/lib/packages/find](./dist/packages/find.d.ts): Find the nearest package.json (or other marker) walking up from an `import.meta` — the package-domain wrapper over the generic `findUpSync` lookup in `fs/find`.
|
|
512
|
-
- [@socketsecurity/lib/packages/isolation](./dist/packages/isolation.d.ts): Package isolation utilities for testing.
|
|
513
|
-
- [@socketsecurity/lib/packages/licenses](./dist/packages/licenses.d.ts): SPDX license parsing and analysis utilities.
|
|
514
|
-
- [@socketsecurity/lib/packages/manifest](./dist/packages/manifest.d.ts): Package manifest and packument fetching utilities.
|
|
515
|
-
- [@socketsecurity/lib/packages/metadata-extensions](./dist/packages/metadata-extensions.d.ts): Package-extension lookup: match a package name + version against the `packageExtensions` overrides table (the same data pnpm/yarn use to patch missing dependency metadata) and merge the matching entries.
|
|
516
|
-
- [@socketsecurity/lib/packages/normalize](./dist/packages/normalize.d.ts): Package.json normalization utilities.
|
|
517
|
-
- [@socketsecurity/lib/packages/provenance](./dist/packages/provenance.d.ts): Package provenance and attestation verification utilities.
|
|
518
|
-
- [@socketsecurity/lib/packages/read](./dist/packages/read.d.ts): Read + parse a package.json.
|
|
519
|
-
- [@socketsecurity/lib/packages/specs](./dist/packages/specs.d.ts): Package spec parsing, name resolution, and GitHub URL utilities.
|
|
520
|
-
- [@socketsecurity/lib/packages/tarball](./dist/packages/tarball.d.ts): Package tarball operations: extract a package to a directory and pack a spec into a tarball, both via pacote/libnpmpack with the shared packument cache.
|
|
521
|
-
- [@socketsecurity/lib/packages/types](./dist/packages/types.d.ts): Public type surface for `packages/*` modules — the `PackageJson` shape (npm-extended with a `socket` field) plus option bags consumed across `edit` / `manifest` / `normalize` / `operations` / `provenance` / `licenses`.
|
|
522
|
-
- [@socketsecurity/lib/packages/validation](./dist/packages/validation.d.ts): Package name validation utilities.
|
|
523
|
-
|
|
524
|
-
## paths/
|
|
525
|
-
|
|
526
|
-
- [@socketsecurity/lib/paths/conversion](./dist/paths/conversion.d.ts): Path conversion utilities — MSYS↔native bridging and string-shape helpers.
|
|
527
|
-
- [@socketsecurity/lib/paths/dirnames](./dist/paths/dirnames.d.ts): Directory name and path pattern constants.
|
|
528
|
-
- [@socketsecurity/lib/paths/exts](./dist/paths/exts.d.ts): File extension constants.
|
|
529
|
-
- [@socketsecurity/lib/paths/filenames](./dist/paths/filenames.d.ts): File name constants.
|
|
530
|
-
- [@socketsecurity/lib/paths/globs](./dist/paths/globs.d.ts): Glob pattern constants.
|
|
531
|
-
- [@socketsecurity/lib/paths/normalize](./dist/paths/normalize.d.ts): Path normalization — the core `normalizePath` and its MSYS drive-letter helper.
|
|
532
|
-
- [@socketsecurity/lib/paths/packages](./dist/paths/packages.d.ts): Package.json path resolution utilities.
|
|
533
|
-
- [@socketsecurity/lib/paths/predicates](./dist/paths/predicates.d.ts): Path predicates — `is*` checks for path shape and kind.
|
|
534
|
-
- [@socketsecurity/lib/paths/resolve](./dist/paths/resolve.d.ts): Path resolution utilities — `resolve`, `relative`, `relativeResolve`.
|
|
535
|
-
- [@socketsecurity/lib/paths/rewire](./dist/paths/rewire.d.ts): Path rewiring utilities for testing.
|
|
536
|
-
- [@socketsecurity/lib/paths/socket](./dist/paths/socket.d.ts): Path utilities for Socket ecosystem directories.
|
|
537
|
-
- [@socketsecurity/lib/paths/walk](./dist/paths/walk.d.ts): Walk parent directories.
|
|
538
|
-
|
|
539
|
-
## perf/
|
|
540
|
-
|
|
541
|
-
- [@socketsecurity/lib/perf/enabled](./dist/perf/enabled.d.ts): Feature-flag check — `isPerfEnabled()` returns true when `DEBUG=perf` is set in the environment.
|
|
542
|
-
- [@socketsecurity/lib/perf/metrics](./dist/perf/metrics.d.ts): Read-side helpers — `getPerformanceMetrics` returns a shallow copy of the recorded rows, `getPerformanceSummary` rolls them up per operation (count / total / avg / min / max), and `clearPerformanceMetrics` empties the...
|
|
543
|
-
- [@socketsecurity/lib/perf/report](./dist/perf/report.d.ts): Report-side helpers — `generatePerformanceReport` returns a multi-line ASCII-bordered report string; `printPerformanceSummary` writes a one-line-per-op summary through `debugLog`.
|
|
544
|
-
- [@socketsecurity/lib/perf/timer](./dist/perf/timer.d.ts): Recording-side helpers — `perfTimer` (returns a stop() closure), `measure` / `measureSync` (timed wrappers around an async / sync function), `perfCheckpoint` (zero-duration marker), and `trackMemory` (records heap-use...
|
|
545
|
-
- [@socketsecurity/lib/perf/types](./dist/perf/types.d.ts): Public type surface for `perf/*` modules — the `PerformanceMetrics` row shape pushed onto the shared metrics array by `perfTimer` / `measure` / `measureSync` / `perfCheckpoint` / `trackMemory`.
|
|
546
|
-
|
|
547
|
-
## pkg-ext/
|
|
548
|
-
|
|
549
|
-
- [@socketsecurity/lib/pkg-ext/data](./dist/pkg-ext/data.d.ts): Package extensions for compatibility adjustments.
|
|
550
|
-
- [@socketsecurity/lib/pkg-ext/types](./dist/pkg-ext/types.d.ts): Public type surface for `pkg-ext/*` modules — the `PackageExtension` tuple shape used by the merged Yarn / Socket-curated extensions list.
|
|
551
|
-
|
|
552
|
-
## primordials/
|
|
553
|
-
|
|
554
|
-
- [@socketsecurity/lib/primordials/array](./dist/primordials/array.d.ts): Safe references to `Array`, typed-array, `ArrayBuffer`, `DataView`, `Atomics`, and shared iterator-prototype primordials.
|
|
555
|
-
- [@socketsecurity/lib/primordials/buffer](./dist/primordials/buffer.d.ts): Safe references to Node's `Buffer` global.
|
|
556
|
-
- [@socketsecurity/lib/primordials/date](./dist/primordials/date.d.ts): Safe references to `Date`.
|
|
557
|
-
- [@socketsecurity/lib/primordials/error](./dist/primordials/error.d.ts): Safe references to `Error` and its subclass constructors, plus V8's stack-trace API.
|
|
558
|
-
- [@socketsecurity/lib/primordials/function](./dist/primordials/function.d.ts): Safe references to `Function.prototype` methods.
|
|
559
|
-
- [@socketsecurity/lib/primordials/globals](./dist/primordials/globals.d.ts): Safe references to top-level globals that don't fit a larger primordials leaf — primitive constructors (`Boolean`, `BigInt`), `Proxy`, `SharedArrayBuffer`, language-level constants (`Infinity`, `NaN`, `globalThis`), a...
|
|
560
|
-
- [@socketsecurity/lib/primordials/headers](./dist/primordials/headers.d.ts): Safe references to the Fetch `Headers` constructor and its `Headers.prototype` methods.
|
|
561
|
-
- [@socketsecurity/lib/primordials/intl](./dist/primordials/intl.d.ts): Safe references to `Intl` constructors.
|
|
562
|
-
- [@socketsecurity/lib/primordials/json](./dist/primordials/json.d.ts): Safe references to `JSON.parse` / `JSON.stringify`.
|
|
563
|
-
- [@socketsecurity/lib/primordials/map-set](./dist/primordials/map-set.d.ts): Safe references to `Map`, `Set`, `WeakMap`, `WeakSet`, and `WeakRef`.
|
|
564
|
-
- [@socketsecurity/lib/primordials/math](./dist/primordials/math.d.ts): Safe references to `Math` constants and methods.
|
|
565
|
-
- [@socketsecurity/lib/primordials/number](./dist/primordials/number.d.ts): Safe references to `Number`, its constants, predicates, and parse helpers.
|
|
566
|
-
- [@socketsecurity/lib/primordials/object](./dist/primordials/object.d.ts): Safe references to `Object` static methods and prototype methods.
|
|
567
|
-
- [@socketsecurity/lib/primordials/process](./dist/primordials/process.d.ts): Safe call-through accessors for the `process` global's methods and value reads.
|
|
568
|
-
- [@socketsecurity/lib/primordials/promise](./dist/primordials/promise.d.ts): Safe references to `Promise` static methods, prototype methods, and the ES2024 `withResolvers` factory.
|
|
569
|
-
- [@socketsecurity/lib/primordials/reflect](./dist/primordials/reflect.d.ts): Safe references to `Reflect.*`.
|
|
570
|
-
- [@socketsecurity/lib/primordials/regexp](./dist/primordials/regexp.d.ts): Safe references to `RegExp` and its prototype methods.
|
|
571
|
-
- [@socketsecurity/lib/primordials/string](./dist/primordials/string.d.ts): Safe references to `String` static methods and prototype methods.
|
|
572
|
-
- [@socketsecurity/lib/primordials/symbol](./dist/primordials/symbol.d.ts): Safe references to `Symbol`, well-known symbols, and `Symbol.prototype`.
|
|
573
|
-
- [@socketsecurity/lib/primordials/uncurry](./dist/primordials/uncurry.d.ts): `uncurryThis` and the cluster of helpers built atop it.
|
|
574
|
-
- [@socketsecurity/lib/primordials/url](./dist/primordials/url.d.ts): Safe references to `URL`, `URLSearchParams`, and the `URLSearchParams.prototype` methods.
|
|
575
|
-
|
|
576
|
-
## process/
|
|
577
|
-
|
|
578
|
-
- [@socketsecurity/lib/process/abort](./dist/process/abort.d.ts): Process control helpers.
|
|
579
|
-
- [@socketsecurity/lib/process/lock-instance](./dist/process/lock-instance.d.ts): Singleton `processLock` instance — the canonical cross-cutting lock manager.
|
|
580
|
-
- [@socketsecurity/lib/process/lock-manager](./dist/process/lock-manager.d.ts): `ProcessLockManager` — the class that owns active locks, touch timers, and the exit-handler registration.
|
|
581
|
-
- [@socketsecurity/lib/process/lock-types](./dist/process/lock-types.d.ts): Public type surface for `process/lock-*` modules — the `ProcessLockOptions` bag accepted by `processLock.acquire` and `processLock.withLock`.
|
|
582
|
-
- [@socketsecurity/lib/process/spawn/child](./dist/process/spawn/child.d.ts): Child process spawning utilities with cross-platform support.
|
|
583
|
-
- [@socketsecurity/lib/process/spawn/errors](./dist/process/spawn/errors.d.ts): Spawn error classification and enhancement.
|
|
584
|
-
- [@socketsecurity/lib/process/spawn/kill-tree](./dist/process/spawn/kill-tree.d.ts): Cross-platform process-tree termination.
|
|
585
|
-
- [@socketsecurity/lib/process/spawn/stdio](./dist/process/spawn/stdio.d.ts): Stdio configuration helpers for `spawn` callers.
|
|
586
|
-
- [@socketsecurity/lib/process/spawn/types](./dist/process/spawn/types.d.ts): Public type surface for `spawn/*` modules.
|
|
587
|
-
- [@socketsecurity/lib/process/transient](./dist/process/transient.d.ts): Temporary package executor detection utilities for Socket ecosystem.
|
|
588
|
-
|
|
589
|
-
## promises/
|
|
590
|
-
|
|
591
|
-
- [@socketsecurity/lib/promises/iterate](./dist/promises/iterate.d.ts): Concurrency-controlled async iteration helpers: `pEach`, `pEachChunk`, `pFilter`, `pFilterChunk`.
|
|
592
|
-
- [@socketsecurity/lib/promises/options](./dist/promises/options.d.ts): Option-shape normalizers for the iteration / retry helpers.
|
|
593
|
-
- [@socketsecurity/lib/promises/queue](./dist/promises/queue.d.ts): Bounded concurrency promise queue.
|
|
594
|
-
- [@socketsecurity/lib/promises/resolvers](./dist/promises/resolvers.d.ts): ECMA-262 standalone async helpers — `withResolvers` (Promise.withResolvers) and `fromAsync` (Array.fromAsync).
|
|
595
|
-
- [@socketsecurity/lib/promises/retry](./dist/promises/retry.d.ts): `pRetry` — exponential-backoff retry with optional jitter, abort-signal support, and an `onRetry` hook for customizing delays or canceling retries entirely.
|
|
596
|
-
- [@socketsecurity/lib/promises/timers](./dist/promises/timers.d.ts): Browser-compatible promise-based timer helpers.
|
|
597
|
-
- [@socketsecurity/lib/promises/types](./dist/promises/types.d.ts): Public type surface for `promises/*` modules: `RetryOptions`, `IterationOptions`, `PromiseWithResolvers`, and the `QueuedTask` storage shape used by the bounded-concurrency `PromiseQueue`.
|
|
598
|
-
|
|
599
|
-
## regexps/
|
|
600
|
-
|
|
601
|
-
- [@socketsecurity/lib/regexps/escape](./dist/regexps/escape.d.ts): Public `escapeRegExp` entry — binds to native `RegExp.escape` (TC39 Stage 4, Node 24+ / V8 13.7) when available, otherwise falls back to the spec-compliant implementation in `./spec`.
|
|
602
|
-
- [@socketsecurity/lib/regexps/hex](./dist/regexps/hex.d.ts): Hex-encoding helpers — fixed-width `\xHH` (`hex2`) and `\uHHHH` (`hex4`) producers used by the spec-compliant `RegExp.escape` fallback to emit canonical escape sequences.
|
|
603
|
-
- [@socketsecurity/lib/regexps/spec](./dist/regexps/spec.d.ts): Spec-compliant fallback for the TC39 `RegExp.escape` (https://tc39.es/ecma262/#sec-regexp.escape).
|
|
604
|
-
|
|
605
|
-
## releases/
|
|
606
|
-
|
|
607
|
-
- [@socketsecurity/lib/releases/github-archives](./dist/releases/github-archives.d.ts): GitHub release archive download + extraction.
|
|
608
|
-
- [@socketsecurity/lib/releases/github-asset-url](./dist/releases/github-asset-url.d.ts): Per-release asset-URL discovery for GitHub releases.
|
|
609
|
-
- [@socketsecurity/lib/releases/github-assets](./dist/releases/github-assets.d.ts): Asset matching helpers for GitHub releases.
|
|
610
|
-
- [@socketsecurity/lib/releases/github-auth](./dist/releases/github-auth.d.ts): GitHub API authentication header helpers.
|
|
611
|
-
- [@socketsecurity/lib/releases/github-downloads](./dist/releases/github-downloads.d.ts): GitHub release asset downloads.
|
|
612
|
-
- [@socketsecurity/lib/releases/github-listing](./dist/releases/github-listing.d.ts): GitHub release listing via REST + GraphQL.
|
|
613
|
-
- [@socketsecurity/lib/releases/github-retry-config](./dist/releases/github-retry-config.d.ts): Shared retry configuration for the GitHub release helpers (`github-listing`, `github-asset-url`).
|
|
614
|
-
- [@socketsecurity/lib/releases/github-types](./dist/releases/github-types.d.ts): Public types for GitHub release download utilities.
|
|
615
|
-
- [@socketsecurity/lib/releases/socket-btm](./dist/releases/socket-btm.d.ts): Socket-btm release download utilities.
|
|
616
|
-
- [@socketsecurity/lib/releases/socket-btm-binary-naming](./dist/releases/socket-btm-binary-naming.d.ts): Socket-btm binary asset/platform-arch naming helpers.
|
|
617
|
-
|
|
618
|
-
## schema/
|
|
619
|
-
|
|
620
|
-
- [@socketsecurity/lib/schema/parse](./dist/schema/parse.d.ts): Throwing twin of `validateSchema`.
|
|
621
|
-
- [@socketsecurity/lib/schema/types](./dist/schema/types.d.ts): Shared types for schema validation.
|
|
622
|
-
- [@socketsecurity/lib/schema/validate](./dist/schema/validate.d.ts): Universal schema validator — non-throwing.
|
|
623
|
-
|
|
624
|
-
## sea/
|
|
625
|
-
|
|
626
|
-
- [@socketsecurity/lib/sea/detect](./dist/sea/detect.d.ts): SEA (Single Executable Application) binary detection + path accessor.
|
|
627
|
-
|
|
628
|
-
## secrets/
|
|
629
|
-
|
|
630
|
-
- [@socketsecurity/lib/secrets/broker](./dist/secrets/broker.d.ts): Proteus broker client.
|
|
631
|
-
- [@socketsecurity/lib/secrets/compare](./dist/secrets/compare.d.ts): Constant-time secret comparison.
|
|
632
|
-
- [@socketsecurity/lib/secrets/find](./dist/secrets/find.d.ts): Resolve a secret from the canonical fleet precedence order: process env → OS keychain.
|
|
633
|
-
- [@socketsecurity/lib/secrets/keychain](./dist/secrets/keychain.d.ts): Cross-platform secret-storage helper.
|
|
634
|
-
- [@socketsecurity/lib/secrets/linux](./dist/secrets/linux.d.ts): Linux Secret Service backend via `secret-tool`.
|
|
635
|
-
- [@socketsecurity/lib/secrets/macos](./dist/secrets/macos.d.ts): MacOS Keychain backend via `security(1)`.
|
|
636
|
-
- [@socketsecurity/lib/secrets/rc](./dist/secrets/rc.d.ts): Write a managed `export VAR='<value>'` block to the user's shell rc ("run commands") file.
|
|
637
|
-
- [@socketsecurity/lib/secrets/socket-api-token](./dist/secrets/socket-api-token.d.ts): Convenience helper for reading the Socket API token from the canonical env → keychain precedence order.
|
|
638
|
-
- [@socketsecurity/lib/secrets/types](./dist/secrets/types.d.ts): Public type surface for `secrets/*`.
|
|
639
|
-
- [@socketsecurity/lib/secrets/windows](./dist/secrets/windows.d.ts): Windows backend via PowerShell CredentialManager module, with a DPAPI-encrypted file fallback.
|
|
640
|
-
|
|
641
|
-
## shadow/
|
|
642
|
-
|
|
643
|
-
- [@socketsecurity/lib/shadow/skip](./dist/shadow/skip.d.ts): Shadow binary installation utilities for Socket ecosystem.
|
|
644
|
-
- [@socketsecurity/lib/shadow/types](./dist/shadow/types.d.ts): Public type surface for `shadow/*` modules — the `ShadowInstallationOptions` record.
|
|
645
|
-
|
|
646
|
-
## shell/
|
|
647
|
-
|
|
648
|
-
- [@socketsecurity/lib/shell/parse](./dist/shell/parse.d.ts): Tokenize a shell command line into typed entries (bare strings, operators, comments, globs).
|
|
649
|
-
- [@socketsecurity/lib/shell/quote](./dist/shell/quote.d.ts): Escape an argv array into a single shell-safe command string.
|
|
650
|
-
|
|
651
|
-
## smol/
|
|
652
|
-
|
|
653
|
-
- [@socketsecurity/lib/smol/detect](./dist/smol/detect.d.ts): Smol detection + lazy-loader for `node:smol-util`.
|
|
654
|
-
- [@socketsecurity/lib/smol/http](./dist/smol/http.d.ts): Lazy-loader for socket-btm's `node:smol-http`.
|
|
655
|
-
- [@socketsecurity/lib/smol/https](./dist/smol/https.d.ts): Lazy-loader for socket-btm's `node:smol-https`.
|
|
656
|
-
- [@socketsecurity/lib/smol/manifest](./dist/smol/manifest.d.ts): Lazy-loader for socket-btm's `node:smol-manifest`.
|
|
657
|
-
- [@socketsecurity/lib/smol/path](./dist/smol/path.d.ts): Lazy-loader for socket-btm's `node:smol-path` — native fast paths for the hot path-string primitives (`dirname`, `normalize`, …) and, per the socket-btm `node-smol-path` Phase 4 plan, batched filesystem ops (`access`,...
|
|
658
|
-
- [@socketsecurity/lib/smol/primordial](./dist/smol/primordial.d.ts): Lazy-loader for socket-btm's `node:smol-primordial` binding.
|
|
659
|
-
- [@socketsecurity/lib/smol/purl](./dist/smol/purl.d.ts): Lazy-loader for socket-btm's `node:smol-purl` binding.
|
|
660
|
-
- [@socketsecurity/lib/smol/versions](./dist/smol/versions.d.ts): Lazy-loader for socket-btm's `node:smol-versions`.
|
|
661
|
-
- [@socketsecurity/lib/smol/vfs](./dist/smol/vfs.d.ts): Lazy-loader for socket-btm's `node:smol-vfs`.
|
|
662
|
-
|
|
663
|
-
## sorts/
|
|
664
|
-
|
|
665
|
-
- [@socketsecurity/lib/sorts/natural](./dist/sorts/natural.d.ts): Locale-aware + numeric-aware comparison via `Intl.Collator`, plus the `naturalSorter` helper that wires the fast-sort engine to the natural comparator.
|
|
666
|
-
- [@socketsecurity/lib/sorts/semver](./dist/sorts/semver.d.ts): Semver-aware string comparison.
|
|
667
|
-
- [@socketsecurity/lib/sorts/strings](./dist/sorts/strings.d.ts): Plain string comparison.
|
|
668
|
-
- [@socketsecurity/lib/sorts/types](./dist/sorts/types.d.ts): Public type surface for `sorts/*` modules — the `FastSortFunction` shape returned by `naturalSorter`.
|
|
669
|
-
|
|
670
|
-
## spinner/
|
|
671
|
-
|
|
672
|
-
- [@socketsecurity/lib/spinner/create-spinner-class](./dist/spinner/create-spinner-class.d.ts): Builds the lazy-init Socket `Spinner` class that extends the live `yocto-spinner` constructor.
|
|
673
|
-
- [@socketsecurity/lib/spinner/default](./dist/spinner/default.d.ts): Spinner-style registry — exposes the union of the standard `cli-spinners` collection and Socket's custom `socket` pulse animation, plus a lazy default-spinner singleton.
|
|
674
|
-
- [@socketsecurity/lib/spinner/format](./dist/spinner/format.d.ts): Stateless helpers shared by `spinner/*` modules — the `ciSpinner` constant for non-interactive output, the `COLOR_INHERIT` sentinel for shimmer color references, plus pure formatters (`desc`, `formatProgress`, `normal...
|
|
675
|
-
- [@socketsecurity/lib/spinner/spinner](./dist/spinner/spinner.d.ts): Spinner factory — lazily builds the Socket `Spinner` class that wraps `yocto-spinner` with Socket-specific behaviors (custom RGB color pipeline, shimmer, progress bar, indented step messages, status methods that don't...
|
|
676
|
-
- [@socketsecurity/lib/spinner/spinner-internals](./dist/spinner/spinner-internals.d.ts): Pure helpers extracted from the Socket `Spinner` class body: option parsing (theme/color resolution, shimmer config) and the shimmer rendering pass.
|
|
677
|
-
- [@socketsecurity/lib/spinner/spinner-shimmer-methods](./dist/spinner/spinner-shimmer-methods.d.ts): Shimmer-configuration methods for the Socket `Spinner` class, split out of `create-spinner-class.ts` to keep that module under the file-size cap.
|
|
678
|
-
- [@socketsecurity/lib/spinner/spinner-status-methods](./dist/spinner/spinner-status-methods.d.ts): Status-presentation methods for the Socket `Spinner` class, split out of `create-spinner-class.ts` to keep that module under the file-size cap.
|
|
679
|
-
- [@socketsecurity/lib/spinner/types](./dist/spinner/types.d.ts): Public type surface for `spinner/*` modules — the `Spinner` instance shape, configuration option records, progress and shimmer state types, plus the `withSpinner*` option records.
|
|
680
|
-
- [@socketsecurity/lib/spinner/with](./dist/spinner/with.d.ts): Lifecycle wrappers around `Spinner` — `withSpinner` (async, push-pop options + auto-stop), `withSpinnerRestore` (conditionally restart a previously-spinning instance), and `withSpinnerSync` (sync sibling of `withSpinn...
|
|
681
|
-
|
|
682
|
-
## stdio/
|
|
683
|
-
|
|
684
|
-
- [@socketsecurity/lib/stdio/clear](./dist/stdio/clear.d.ts): Terminal clearing and cursor utilities.
|
|
685
|
-
- [@socketsecurity/lib/stdio/divider](./dist/stdio/divider.d.ts): Console divider and separator utilities.
|
|
686
|
-
- [@socketsecurity/lib/stdio/footer](./dist/stdio/footer.d.ts): Console footer/summary formatting utilities.
|
|
687
|
-
- [@socketsecurity/lib/stdio/header](./dist/stdio/header.d.ts): Console header/banner formatting utilities.
|
|
688
|
-
- [@socketsecurity/lib/stdio/progress](./dist/stdio/progress.d.ts): Progress bar utilities for CLI applications.
|
|
689
|
-
- [@socketsecurity/lib/stdio/prompts](./dist/stdio/prompts.d.ts): User prompt utilities for interactive scripts.
|
|
690
|
-
- [@socketsecurity/lib/stdio/stderr](./dist/stdio/stderr.d.ts): Standard error stream utilities.
|
|
691
|
-
- [@socketsecurity/lib/stdio/stdout](./dist/stdio/stdout.d.ts): Standard output stream utilities.
|
|
692
|
-
|
|
693
|
-
## streams/
|
|
694
|
-
|
|
695
|
-
- [@socketsecurity/lib/streams/parallel](./dist/streams/parallel.d.ts): Parallel iteration helpers — `parallelMap()` and the fire-and-forget `parallelEach()`.
|
|
696
|
-
- [@socketsecurity/lib/streams/transform](./dist/streams/transform.d.ts): Streaming transform helper — `transform()` wraps `streaming-iterables.transform` with the project's `pRetry` per-item retry policy.
|
|
697
|
-
|
|
698
|
-
## strings/
|
|
699
|
-
|
|
700
|
-
- [@socketsecurity/lib/strings/format](./dist/strings/format.d.ts): Line formatting helpers: `applyLinePrefix`, `centerText`, `indentString`, `repeatString`.
|
|
701
|
-
- [@socketsecurity/lib/strings/predicates](./dist/strings/predicates.d.ts): String predicates: `isBlankString` and `isNonEmptyString`.
|
|
702
|
-
- [@socketsecurity/lib/strings/search](./dist/strings/search.d.ts): `search` — like `String.prototype.search` but with a configurable starting index.
|
|
703
|
-
- [@socketsecurity/lib/strings/transform](./dist/strings/transform.d.ts): String transformations: `stripBom`, `toKebabCase`, `trimNewlines`.
|
|
704
|
-
- [@socketsecurity/lib/strings/types](./dist/strings/types.d.ts): Public type surface for `strings/*` modules — branded string types and option interfaces.
|
|
705
|
-
- [@socketsecurity/lib/strings/width](./dist/strings/width.d.ts): `stringWidth` — calculate visual terminal width.
|
|
706
|
-
|
|
707
|
-
## tables/
|
|
708
|
-
|
|
709
|
-
- [@socketsecurity/lib/tables/bordered](./dist/tables/bordered.d.ts): Bordered table renderer using Unicode box-drawing characters (`┌`, `─`, `│`, `┴`, …).
|
|
710
|
-
- [@socketsecurity/lib/tables/padding](./dist/tables/padding.d.ts): Cell padding + display-width measurement — shared helpers used by both the simple and bordered table renderers.
|
|
711
|
-
- [@socketsecurity/lib/tables/simple](./dist/tables/simple.d.ts): Borderless table renderer — columns separated by two spaces, header underlined with `─`.
|
|
712
|
-
- [@socketsecurity/lib/tables/types](./dist/tables/types.d.ts): Public type surface for `tables/*` modules — the `ColumnAlignment` union + `TableColumn` config record.
|
|
713
|
-
|
|
714
|
-
## temporal/
|
|
715
|
-
|
|
716
|
-
- [@socketsecurity/lib/temporal/instant](./dist/temporal/instant.d.ts): Spec clause 8 — Temporal.Instant Objects.
|
|
717
|
-
- [@socketsecurity/lib/temporal/now](./dist/temporal/now.d.ts): Spec clause 6 — Temporal.Now.
|
|
718
|
-
- [@socketsecurity/lib/temporal/slots](./dist/temporal/slots.d.ts): Internal-slot machinery for Temporal objects.
|
|
719
|
-
- [@socketsecurity/lib/temporal/system](./dist/temporal/system.d.ts): Spec clause 21.x host hook — wallclock reader.
|
|
720
|
-
- [@socketsecurity/lib/temporal/temporal](./dist/temporal/temporal.d.ts): Public aggregator for the `Temporal` surface.
|
|
721
|
-
|
|
722
|
-
## themes/
|
|
723
|
-
|
|
724
|
-
- [@socketsecurity/lib/themes/context](./dist/themes/context.d.ts): Elegant theme context management.
|
|
725
|
-
- [@socketsecurity/lib/themes/resolve](./dist/themes/resolve.d.ts): Theme utilities — color resolution and composition.
|
|
726
|
-
- [@socketsecurity/lib/themes/themes](./dist/themes/themes.d.ts): Elegant theme definitions for Socket libraries.
|
|
727
|
-
- [@socketsecurity/lib/themes/types](./dist/themes/types.d.ts): Elegant theme type system.
|
|
728
|
-
|
|
729
|
-
## url/
|
|
730
|
-
|
|
731
|
-
- [@socketsecurity/lib/url/assert-safe](./dist/url/assert-safe.d.ts): SSRF guard for operator- or issuer-supplied URLs — `assertSafeHttpUrl` parses a raw URL, rejects non-HTTP(S) schemes, and refuses hosts that resolve to loopback / private / link-local ranges (cloud metadata, redis, in...
|
|
732
|
-
- [@socketsecurity/lib/url/parse](./dist/url/parse.d.ts): URL parsing helpers — `parseUrl` (safe `new URL(...)` wrapper that returns `undefined` instead of throwing) and `createRelativeUrl` (compose a relative path against an optional base).
|
|
733
|
-
- [@socketsecurity/lib/url/predicates](./dist/url/predicates.d.ts): URL type-guard predicates — `isUrl` answers whether a value parses as a valid URL via `parseUrl`.
|
|
734
|
-
- [@socketsecurity/lib/url/search-params](./dist/url/search-params.d.ts): URL search-param coercion helpers — `urlSearchParamsAs*` normalise a raw `string | null | undefined` value into a typed shape (array / boolean / number / string) with a default.
|
|
735
|
-
- [@socketsecurity/lib/url/types](./dist/url/types.d.ts): Public type surface for `url/*` modules — option interfaces consumed by `createRelativeUrl`, `urlSearchParamsAs*`, and `urlSearchParamsGet*`.
|
|
736
|
-
|
|
737
|
-
## versions/
|
|
738
|
-
|
|
739
|
-
- [@socketsecurity/lib/versions/compare](./dist/versions/compare.d.ts): Version comparison operators aligned with `node:smol-versions` (the C++-accelerated multi-ecosystem version helper shipped by the smol Node binary).
|
|
740
|
-
- [@socketsecurity/lib/versions/modify](./dist/versions/modify.d.ts): Mutation helpers — `incrementVersion` bumps a version by release type ('major' | 'minor' | 'patch' | 'pre*'), and `versionDiff` returns the kind of step between two versions.
|
|
741
|
-
- [@socketsecurity/lib/versions/parse](./dist/versions/parse.d.ts): Parsing helpers — `coerceVersion` rounds a sloppy input ("1.2") up to a valid semver triple, `parseVersion` returns `{major, minor, patch, prerelease, build}`, and the `getMajor*` / `getMinor*` / `getPatchVersion` acc...
|
|
742
|
-
- [@socketsecurity/lib/versions/range](./dist/versions/range.d.ts): Range / set helpers — `satisfiesVersion` / `filterVersions` check membership against a semver range, `maxVersion` / `minVersion` pick the bounds of an arbitrary version array.
|
|
743
|
-
- [@socketsecurity/lib/versions/types](./dist/versions/types.d.ts): Public type surface for `versions/*` modules — the parsed-version shape returned by `parseVersion` (a stable subset of semver's SemVer instance, exposed as a structural type rather than leaking the upstream class).
|
|
744
|
-
|
|
745
|
-
## words/
|
|
746
|
-
|
|
747
|
-
- [@socketsecurity/lib/words/article](./dist/words/article.d.ts): Indefinite-article picker — `determineArticle()` returns `'a'` or `'an'` based on the leading vowel of a word.
|
|
748
|
-
- [@socketsecurity/lib/words/capitalize](./dist/words/capitalize.d.ts): Word-case helpers — `capitalize()` produces an upper-first / lower-rest variant that iterates by code point so surrogate pairs aren't split.
|
|
749
|
-
- [@socketsecurity/lib/words/pluralize](./dist/words/pluralize.d.ts): Count-based pluralization.
|
|
750
|
-
- [@socketsecurity/lib/words/types](./dist/words/types.d.ts): Public type surface for `words/*` modules — the `PluralizeOptions` record and its `PluralForms` companion.
|
|
1
|
+
# socket-lib
|
|
2
|
+
|
|
3
|
+
> <a href="https://socket.dev/npm/package/@socketsecurity/lib"><img src="https://socket.dev/api/badge/npm/package/@socketsecurity/lib" alt="Socket Badge" height="20"></a> 
|
|
4
|
+
|
|
5
|
+
| key | value |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| version | 6.0.10-prerelease |
|
|
8
|
+
| node | >=22 |
|
|
9
|
+
| layout | monorepo |
|
|
10
|
+
| license | MIT |
|
|
11
|
+
| package manager | pnpm (from repo root) |
|
|
12
|
+
|
|
13
|
+
## Docs
|
|
14
|
+
|
|
15
|
+
- [README](README.md): <a href="https://socket.dev/npm/package/@socketsecurity/lib"><img src="https://socket.dev/api/badge/npm/package/@socketsecurity/lib" alt="Socket Badge" height="20"></a> 
|
|
16
|
+
- [adversarial-self-review](docs/agents.md/fleet/adversarial-self-review.md): A clean automated review is one reviewer shape finding nothing. On a
|
|
17
|
+
- [agent-delegation](docs/agents.md/fleet/agent-delegation.md): When a task fits one of the patterns below, hand it off instead of doing it in the current session. The point is to get a _different model's_ take, or to keep heavy work out of the main context. Don't…
|
|
18
|
+
- [agents-and-skills](docs/agents.md/fleet/agents-and-skills.md): The CLAUDE.md `### Agents & skills` section names the entry-point skills. This file is the full taxonomy and the cross-fleet runner. Before authoring a new skill, read…
|
|
19
|
+
- [binary-vs-napi-naming](docs/agents.md/fleet/binary-vs-napi-naming.md): Per-platform artifacts split into two naming domains **by design** (ratified
|
|
20
|
+
- [bypass-phrases](docs/agents.md/fleet/bypass-phrases.md): Reverting tracked changes or bypassing the fleet's hook chain requires the user to type the canonical phrase verbatim in a recent user turn. Inferring intent from "go ahead", "skip the hook", "fix…
|
|
21
|
+
- [c8-ignore-directives](docs/agents.md/fleet/c8-ignore-directives.md): `c8 ignore next N` does not work the way the name implies for multi-line code. Use `c8 ignore start` / `c8 ignore stop` brackets for any body that spans more than one line. Enforced at edit time by…
|
|
22
|
+
- [cascade-file-classification](docs/agents.md/fleet/cascade-file-classification.md): Every fleet repo's files fall into exactly one of three cascade classes. Knowing
|
|
23
|
+
- [cascade-is-a-unit](docs/agents.md/fleet/cascade-is-a-unit.md): A fleet cascade propagates ONE logical change across every member. The N
|
|
24
|
+
- [cascaded-hook-catalog](docs/agents.md/fleet/cascaded-hook-catalog.md): Reference catalog for the fleet hooks, `_shared` helpers, oxlint rules, and
|
|
25
|
+
- [CHANGELOG](CHANGELOG.md)
|
|
26
|
+
- [code-is-law](docs/agents.md/fleet/code-is-law.md): The CLAUDE.md `### Code is law` section is the headline: docs alone don't enforce. A discipline the repo depends on holds only when an executable enforcer makes the wrong move fail (or at least nag)…
|
|
27
|
+
- [code-style](docs/agents.md/fleet/code-style.md): The CLAUDE.md `### Code style` section is the short list of heaviest invariants. This file is the full set of subrules and their rationale. When a rule has a sister skill or hook, the SKILL.md / hook…
|
|
28
|
+
- [commit-cadence-format](docs/agents.md/fleet/commit-cadence-format.md): Companion to the `### Commit cadence & message format` rule in `template/CLAUDE.md`. The inline section gives the headline. This file holds the spec, the cadence rationale, and the bypass surface.
|
|
29
|
+
- [commit-signing](docs/agents.md/fleet/commit-signing.md): Every commit landing on a default branch (`main` / `master`) in the fleet must carry a verified signature. Three independent layers enforce this; bypassing any one of them is treated as exceptional…
|
|
30
|
+
- [conformance-runners](docs/agents.md/fleet/conformance-runners.md): How to author, organize, and maintain runners that exercise a built
|
|
31
|
+
- [cross-tool-agents](docs/agents.md/fleet/cross-tool-agents.md): The fleet's automation is authored for **Claude Code**, but Codex and OpenCode
|
|
32
|
+
- [database](docs/agents.md/fleet/database.md): When a fleet repo needs a database, the stack is fixed: **PostgreSQL** as the engine, **Drizzle ORM** as the query/schema layer, and **`node:smol-sql`** as the driver on the node-smol runtime. This is…
|
|
33
|
+
- [delegating-execution](docs/agents.md/fleet/delegating-execution.md): For non-trivial work, planning and review are big-brain jobs; execution and follow-up are floor jobs bounded by the written plan. The four-phase cycle:
|
|
34
|
+
- [diagnosing-bugs](docs/agents.md/fleet/diagnosing-bugs.md): The discipline for hard bugs and performance regressions. The one rule that
|
|
35
|
+
- [disabled-seam-pattern](docs/agents.md/fleet/disabled-seam-pattern.md): Keep the **wire-in point** (the seam where a future capability slots in) present in the code, but gate the **behavior** behind a flag defaulted off. Never delete the seam; never hard-wire the behavior…
|
|
36
|
+
- [drift-watch](docs/agents.md/fleet/drift-watch.md): Companion to the `### Drift watch` rule in `template/CLAUDE.md`. The inline section gives the headline. This file enumerates where drift hides, how to check, and the cascade-PR convention.
|
|
37
|
+
- [error-messages](docs/agents.md/fleet/error-messages.md): Companion to the `## Error Messages` section of `CLAUDE.md`. That section holds the rules. This file holds longer examples and anti-patterns that would bloat CLAUDE.md inlined.
|
|
38
|
+
- [export-and-no-any](docs/agents.md/fleet/export-and-no-any.md): Two paired fleet rules captured under one doc because they're symbiotic — exporting types is what makes "no `any`" practical, and "no `any`" is what makes the export discipline pay back.
|
|
39
|
+
- [fable-fallback](docs/agents.md/fleet/fable-fallback.md): `claude-fable-5` (and the `claude-mythos-5` alias) is an adaptive-only model
|
|
40
|
+
- [file-size](docs/agents.md/fleet/file-size.md): The CLAUDE.md `### File size` section is the cap. This file is the splitting playbook and the explicit exception list.
|
|
41
|
+
- [fleet-doctor](docs/agents.md/fleet/fleet-doctor.md): `scripts/fleet/doctor.mts` — a cascade-resident health check that diagnoses and
|
|
42
|
+
- [gh-token-hygiene](docs/agents.md/fleet/gh-token-hygiene.md): GitHub CLI auth tokens are the highest-blast-radius credential most developers carry. The Nx Console supply-chain compromise (May 2026) exfiltrated `~/.config/gh/hosts.yml` and used the token against…
|
|
43
|
+
- [git-config-write-guard](docs/agents.md/fleet/git-config-write-guard.md): A fleet repo's local `.git/config` carries **per-clone** state. Identity, signing keys, and core invariants like `core.bare` live in the **global** git config (and in `~/.gitconfig`); the local config…
|
|
44
|
+
- [github-token-limitations](docs/agents.md/fleet/github-token-limitations.md): GitHub Actions suppresses every event created with the default `GITHUB_TOKEN` — pushes, `pull_request` open/close/reopen, issue events, tag creation. The only events that still fire are…
|
|
45
|
+
|
|
46
|
+
## API
|
|
47
|
+
|
|
48
|
+
- [integrity](src/integrity.ts)
|
|
49
|
+
|
|
50
|
+
## Commands
|
|
51
|
+
|
|
52
|
+
- [pnpm run build](package.json): node scripts/repo/bundle.mts
|
|
53
|
+
- [pnpm run check](package.json): node scripts/fleet/check.mts
|
|
54
|
+
- [pnpm run cover](package.json): node scripts/fleet/cover.mts
|
|
55
|
+
- [pnpm run fix](package.json): node scripts/fleet/fix.mts
|
|
56
|
+
- [pnpm run format](package.json): node scripts/fleet/format.mts
|
|
57
|
+
- [pnpm run lint](package.json): node scripts/fleet/lint.mts
|
|
58
|
+
- [pnpm run test](package.json): node scripts/fleet/test.mts
|
|
59
|
+
- [pnpm run update](package.json): node scripts/fleet/update.mts
|
|
60
|
+
|
|
61
|
+
## Conventions
|
|
62
|
+
|
|
63
|
+
- [CLAUDE.md](CLAUDE.md): Engineering rules and fleet conventions for Claude Code.
|