@sayknow-cli/utils 0.3.5 → 0.3.6
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/package.json +6 -7
- package/dist/types/abortable.d.ts +0 -27
- package/dist/types/async.d.ts +0 -6
- package/dist/types/cli.d.ts +0 -118
- package/dist/types/color.d.ts +0 -82
- package/dist/types/dirs.d.ts +0 -163
- package/dist/types/env.d.ts +0 -68
- package/dist/types/fetch-retry.d.ts +0 -80
- package/dist/types/format.d.ts +0 -37
- package/dist/types/frontmatter.d.ts +0 -25
- package/dist/types/fs-error.d.ts +0 -31
- package/dist/types/glob.d.ts +0 -28
- package/dist/types/hook-fetch.d.ts +0 -16
- package/dist/types/index.d.ts +0 -30
- package/dist/types/json.d.ts +0 -4
- package/dist/types/logger.d.ts +0 -66
- package/dist/types/mermaid-ascii.d.ts +0 -11
- package/dist/types/mime.d.ts +0 -29
- package/dist/types/peek-file.d.ts +0 -9
- package/dist/types/postmortem.d.ts +0 -29
- package/dist/types/procmgr.d.ts +0 -35
- package/dist/types/prompt.d.ts +0 -18
- package/dist/types/ptree.d.ts +0 -108
- package/dist/types/ring.d.ts +0 -93
- package/dist/types/safe-stderr.d.ts +0 -1
- package/dist/types/sanitize-text.d.ts +0 -14
- package/dist/types/snowflake.d.ts +0 -25
- package/dist/types/spawn-env.d.ts +0 -4
- package/dist/types/stream.d.ts +0 -68
- package/dist/types/tab-spacing.d.ts +0 -9
- package/dist/types/temp.d.ts +0 -14
- package/dist/types/type-guards.d.ts +0 -3
- package/dist/types/which.d.ts +0 -37
package/dist/types/which.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cache policy for which lookups.
|
|
3
|
-
*/
|
|
4
|
-
export declare const enum WhichCachePolicy {
|
|
5
|
-
/**
|
|
6
|
-
* Use cached result if available.
|
|
7
|
-
*/
|
|
8
|
-
Cached = 0,
|
|
9
|
-
/**
|
|
10
|
-
* Bypass cache and perform a new lookup.
|
|
11
|
-
*/
|
|
12
|
-
Bypass = 1,
|
|
13
|
-
/**
|
|
14
|
-
* Always update cache.
|
|
15
|
-
*/
|
|
16
|
-
Fresh = 2,
|
|
17
|
-
/**
|
|
18
|
-
* Read-only, serves from cache if present, but doesn't write.
|
|
19
|
-
*/
|
|
20
|
-
ReadOnly = 3
|
|
21
|
-
}
|
|
22
|
-
export interface WhichOptions extends Bun.WhichOptions {
|
|
23
|
-
/**
|
|
24
|
-
* Cache policy for the lookup.
|
|
25
|
-
* Defaults to `WhichCachePolicy.Fresh`.
|
|
26
|
-
*/
|
|
27
|
-
cache?: WhichCachePolicy;
|
|
28
|
-
}
|
|
29
|
-
export declare const whichFresh: typeof Bun.which;
|
|
30
|
-
/**
|
|
31
|
-
* Locate binary on PATH (with flexible caching).
|
|
32
|
-
*
|
|
33
|
-
* @param command - Binary name to resolve
|
|
34
|
-
* @param options - Bun.WhichOptions plus `cache` control
|
|
35
|
-
* @returns Filesystem path if found, else null
|
|
36
|
-
*/
|
|
37
|
-
export declare function $which(command: string, options?: WhichOptions): string | null;
|