@git.zone/tsdisk 1.1.0

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.
@@ -0,0 +1,41 @@
1
+ {
2
+ "@git.zone/cli": {
3
+ "schemaVersion": 2,
4
+ "projectType": "npm",
5
+ "module": {
6
+ "githost": "code.foss.global",
7
+ "gitscope": "git.zone",
8
+ "gitrepo": "tsdisk",
9
+ "description": "A disk usage diagnostic CLI for finding large files, caches, logs, and Docker storage.",
10
+ "npmPackagename": "@git.zone/tsdisk",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "disk",
14
+ "diagnostics",
15
+ "du",
16
+ "ncdu",
17
+ "docker",
18
+ "cache"
19
+ ]
20
+ },
21
+ "release": {
22
+ "targets": {
23
+ "git": {
24
+ "enabled": true,
25
+ "remote": "origin",
26
+ "pushBranch": true,
27
+ "pushTags": true
28
+ },
29
+ "npm": {
30
+ "enabled": true,
31
+ "registries": [
32
+ "https://verdaccio.lossless.digital",
33
+ "https://registry.npmjs.org"
34
+ ],
35
+ "accessLevel": "public",
36
+ "alreadyPublished": "success"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
package/cli.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ process.env.CLI_CALL = 'true';
3
+ const cliTool = await import('./dist_ts/index.js');
4
+ await cliTool.runCli();
@@ -0,0 +1,8 @@
1
+ /**
2
+ * autocreated commitinfo by @push.rocks/commitinfo
3
+ */
4
+ export declare const commitinfo: {
5
+ name: string;
6
+ version: string;
7
+ description: string;
8
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * autocreated commitinfo by @push.rocks/commitinfo
3
+ */
4
+ export const commitinfo = {
5
+ name: '@git.zone/tsdisk',
6
+ version: '1.1.0',
7
+ description: 'A disk usage diagnostic CLI for finding large files, caches, logs, and Docker storage.'
8
+ };
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxrQkFBa0I7SUFDeEIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHdGQUF3RjtDQUN0RyxDQUFBIn0=
@@ -0,0 +1,3 @@
1
+ export { commitinfo } from './00_commitinfo_data.js';
2
+ export { formatBytes, main, parseDuOutput, runCli, } from './tsdisk.cli.js';
3
+ export * from './tsdisk.toolcaches.js';
@@ -0,0 +1,4 @@
1
+ export { commitinfo } from './00_commitinfo_data.js';
2
+ export { formatBytes, main, parseDuOutput, runCli, } from './tsdisk.cli.js';
3
+ export * from './tsdisk.toolcaches.js';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDckQsT0FBTyxFQUNMLFdBQVcsRUFDWCxJQUFJLEVBQ0osYUFBYSxFQUNiLE1BQU0sR0FDUCxNQUFNLGlCQUFpQixDQUFDO0FBQ3pCLGNBQWMsd0JBQXdCLENBQUMifQ==
@@ -0,0 +1,29 @@
1
+ import { type IToolCacheFinding } from './tsdisk.toolcaches.js';
2
+ export interface IRuntimeContext {
3
+ runningAsRoot: boolean;
4
+ sudoAvailable: boolean;
5
+ sudoChecked: boolean;
6
+ targetUser: string;
7
+ targetUid: string;
8
+ targetHome: string;
9
+ targetRuntimeDir: string;
10
+ dockerTimeoutSeconds: number;
11
+ duTimeoutSeconds: number;
12
+ ncduTimeoutSeconds: number;
13
+ }
14
+ interface IDuEntry {
15
+ bytes: number;
16
+ path: string;
17
+ }
18
+ export interface IWorkspaceScanOptions {
19
+ maxDepth: number;
20
+ timeoutMs: number;
21
+ maxEntries: number;
22
+ }
23
+ export declare function formatBytes(bytes: number): string;
24
+ export declare function parseDuOutput(output: string): IDuEntry[];
25
+ export declare function collectToolCachePathsFromRoot(rootArg: string, optionsArg: IWorkspaceScanOptions): Promise<IToolCacheFinding[]>;
26
+ export declare function collectProjectToolCacheDiagnostics(ctx: IRuntimeContext): Promise<IToolCacheFinding[]>;
27
+ export declare function main(): Promise<void>;
28
+ export declare function runCli(args?: string[]): Promise<void>;
29
+ export {};