@engramresearch/srun 0.1.4 → 0.1.5

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/README.md CHANGED
@@ -7,9 +7,14 @@ srun dev
7
7
  srun build
8
8
  srun installer
9
9
  srun test
10
+ srun check
11
+ srun preview
12
+ srun clean
13
+ srun setup
10
14
  srun lint
11
15
  srun format
12
16
  srun info
17
+ srun list
13
18
  ```
14
19
 
15
20
  The goal is to reduce cognitive load when switching between projects, package managers, frameworks, and custom script names.
@@ -70,6 +75,28 @@ Project markers:
70
75
  - Monorepo: `apps/`, `packages/`, TurboRepo or NX markers
71
76
  - Cargo-only: `Cargo.toml` without `package.json`
72
77
 
78
+ ## Commands
79
+
80
+ Core commands:
81
+
82
+ - `srun dev` — run the project in development mode.
83
+ - `srun build` — build the project.
84
+ - `srun installer` — create installer/package/release artifacts when a matching script exists.
85
+ - `srun test` — run tests.
86
+ - `srun check` — run validation/typecheck. Alias: `srun typecheck`.
87
+ - `srun preview` — run preview/serve production build when available.
88
+ - `srun clean` — clean build output/cache.
89
+ - `srun setup` — run setup/bootstrap/dependency scripts. Aliases: `srun install`, `srun bootstrap`.
90
+ - `srun lint` — run linting.
91
+ - `srun format` — run formatting.
92
+ - `srun info` — show detected project type, package manager, warnings, and resolved commands.
93
+ - `srun list` — show resolved intents plus all package scripts.
94
+
95
+ Safe flags for executable commands:
96
+
97
+ - `--dry-run` prints the resolved command without executing it.
98
+ - `--verbose` prints detection and resolution details.
99
+
73
100
  ## Resolution examples
74
101
 
75
102
  Next.js:
@@ -123,8 +150,37 @@ Cargo-only:
123
150
  ```bash
124
151
  srun dev --dry-run
125
152
  # cargo run
153
+
154
+ srun check --dry-run
155
+ # cargo check
156
+
157
+ srun clean --dry-run
158
+ # cargo clean
126
159
  ```
127
160
 
161
+ TypeScript validation:
162
+
163
+ ```json
164
+ {
165
+ "scripts": {
166
+ "check": "tsc --noEmit"
167
+ }
168
+ }
169
+ ```
170
+
171
+ ```bash
172
+ srun check --dry-run
173
+ # pnpm run check
174
+ ```
175
+
176
+ Discovery:
177
+
178
+ ```bash
179
+ srun list
180
+ ```
181
+
182
+ Shows resolved intents and all package scripts.
183
+
128
184
  ## Info and verbose mode
129
185
 
130
186
  ```bash
@@ -156,8 +212,8 @@ cargo test
156
212
  3. Commit, push, and create a tag:
157
213
 
158
214
  ```bash
159
- git tag v0.1.3
160
- git push origin main v0.1.3
215
+ git tag v0.1.5
216
+ git push origin main v0.1.5
161
217
  ```
162
218
 
163
219
  The workflow builds platform binaries, packages them into the single root npm package, publishes `@engramresearch/srun` to npmjs, then publishes the same package as a GitHub Packages mirror.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engramresearch/srun",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Universal Smart Project Runner",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -13,7 +13,8 @@
13
13
  "test": "cargo test",
14
14
  "lint": "cargo clippy",
15
15
  "format": "cargo fmt",
16
- "release:check": "node npm/check-release.js"
16
+ "release:check": "node npm/check-release.js",
17
+ "check": "cargo check"
17
18
  },
18
19
  "files": [
19
20
  "npm/srun.js",