@space-lens/cli 0.2.2 → 0.2.3

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.
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  //#region src/cli-config.ts
2
3
  var PRESETS = [
3
4
  "node",
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { executeCleanup, planCleanup, scanDirectory } from "space-lens";
2
3
  //#region src/scanner.ts
3
4
  function loadSpaceLensData(options) {
package/dist/cli.mjs CHANGED
@@ -1,4 +1,5 @@
1
- import { a as formatBytes, c as SORT_MODES, i as createScanViewModel, l as normalizeCliConfig, n as createCleanViewModel, o as getSelectedEntries, r as createInitialTuiState, t as applyTuiAction } from "./assets/model-D5_IMhZA.js";
1
+ #!/usr/bin/env node
2
+ import { a as formatBytes, c as SORT_MODES, i as createScanViewModel, l as normalizeCliConfig, n as createCleanViewModel, o as getSelectedEntries, r as createInitialTuiState, t as applyTuiAction } from "./assets/model-BICd3EQ5.js";
2
3
  import { Args, Command, Options } from "@effect/cli";
3
4
  import * as NodeContext from "@effect/platform-node/NodeContext";
4
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
@@ -4111,7 +4112,7 @@ function colorForPreset(preset) {
4111
4112
  }
4112
4113
  //#endregion
4113
4114
  //#region src/cli-program.ts
4114
- var APP_VERSION = "0.2.2";
4115
+ var APP_VERSION = "0.2.3";
4115
4116
  var command = Command.make("spacelens", {
4116
4117
  paths: Args.text({ name: "path" }).pipe(Args.atLeast(0), Args.withDescription("Directory to scan.")),
4117
4118
  presets: Options.text("preset").pipe(Options.withAlias("p"), Options.repeated, Options.withDescription("Cleanup preset: node, rust, gitignored.")),
@@ -4132,7 +4133,7 @@ function runCli(argv = process.argv) {
4132
4133
  }
4133
4134
  var runTuiProgram = Effect.fn("runTuiProgram")((options) => Effect.gen(function* () {
4134
4135
  const [{ executeCleanupEntries, loadSpaceLensData }] = yield* Effect.tryPromise({
4135
- try: () => Promise.all([import("./assets/scanner-DiwQ0w5N.js")]),
4136
+ try: () => Promise.all([import("./assets/scanner-CZbLKIYe.js")]),
4136
4137
  catch: toError
4137
4138
  });
4138
4139
  const initialData = yield* Effect.try({
package/dist/index.mjs CHANGED
@@ -1,2 +1,3 @@
1
- import { a as formatBytes, c as SORT_MODES, d as parseSortMode, i as createScanViewModel, l as normalizeCliConfig, n as createCleanViewModel, o as getSelectedEntries, r as createInitialTuiState, s as PRESETS, t as applyTuiAction, u as parsePresetList } from "./assets/model-D5_IMhZA.js";
1
+ #!/usr/bin/env node
2
+ import { a as formatBytes, c as SORT_MODES, d as parseSortMode, i as createScanViewModel, l as normalizeCliConfig, n as createCleanViewModel, o as getSelectedEntries, r as createInitialTuiState, s as PRESETS, t as applyTuiAction, u as parsePresetList } from "./assets/model-BICd3EQ5.js";
2
3
  export { PRESETS, SORT_MODES, applyTuiAction, createCleanViewModel, createInitialTuiState, createScanViewModel, formatBytes, getSelectedEntries, normalizeCliConfig, parsePresetList, parseSortMode };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@space-lens/cli",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "description": "Solid-based Uniview TUI for Space Lens scanning and cleanup.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "access": "public"
28
28
  },
29
29
  "scripts": {
30
- "build": "vite build --config vite.config.ts",
30
+ "build": "vite build --config vite.config.ts && node scripts/mark-cli-executable.mjs",
31
31
  "dev": "vite-node src/cli.ts",
32
32
  "lint": "tsc --noEmit",
33
33
  "test": "vitest run src/ui.test.tsx && node --import tsx --test \"src/**/*.test.ts\"",