cursedops 0.19.2 → 0.19.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/paths.ts +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursedops",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "description": "The build-and-ops answers this generation's apps wrote independently and identically: finding a generation's roots — and printing a command that runs when pasted — without knowing a path, the generation's whole-tree laws run over one repo from a checkout or a worktree, macOS launchd agent install/replace/remove and the live port a job serves, the scaffolding and verdicts of a deployed smoke (origin probe, the smoke's own environment, a network that lies about DNS, a settled version), the static-serving helpers eight apps copied — the path-traversal guard among them — the API floor that keeps an unmatched /api/... from ever being answered with the app shell, the commit and dirty flag a checkout-served process reports, the Cloudflare Worker deploy toolkit four apps copied (the deploy sequence, exact-set secrets over a pipe, origin-first rollback, the curl edge fetch, the row-for-row D1 import proof, the billed-CPU tail check around a deploy's walk and smoke, and each app's worker:secrets and worker:smoke main as one function of its data), the relay a Worker fronts a Mac-bound app with (the Durable Object, the frames, the Mac's dialer and key rotation — lifted from station for roms — and the signed-in stage walk's skeleton and the relay app's whole worker:deploy), the Worker import-graph and await-port checks every Worker app's suite runs over its own source, and the public-surface ratchet three published libraries each carried a forked copy of. Mechanism only — no app knows its name from here. Bun, zero runtime dependencies (typescript is an optional peer, for public-surface only), ships source.",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/paths.ts CHANGED
@@ -161,6 +161,13 @@ export function runGenerationLaws(from: string, options: LawsOptions = {}): numb
161
161
  * `scripts/paths.ts` rather than copy a thirteenth wrapper; this is the one place it lives now.
162
162
  * A gate that ran `check-paths` before scheduling its own `paths` stage would run it twice, and
163
163
  * would pass `--force` to a law that has no idea what it means.
164
+ *
165
+ * 🔴 A `--` ends this wrapper's flags: it and everything after it go to the law verbatim, because
166
+ * that is the command a law like `suite-once.ts` wraps. Reading past it took the inner
167
+ * `forge-paths --only timed.ts` of `forge-paths --only suite-once.ts browser-test -- forge-paths
168
+ * --only timed.ts browser-test -- bun test …` as this wrapper's, so the wrapped command became a bare
169
+ * `forge-paths` and the browser suite ran nothing and stamped green (forge task
170
+ * cursedops-forge-paths-takes-an-inner-only, 2026-10-23).
164
171
  */
165
172
  export function parseLawsArgv(argv: readonly string[]): { also: string[]; only: string[]; argv: string[] } {
166
173
  const also: string[] = [];
@@ -168,6 +175,10 @@ export function parseLawsArgv(argv: readonly string[]): { also: string[]; only:
168
175
  const rest: string[] = [];
169
176
  for (let i = 0; i < argv.length; i++) {
170
177
  const arg = argv[i] as string;
178
+ if (arg === "--") {
179
+ rest.push(...argv.slice(i));
180
+ break;
181
+ }
171
182
  const flag = arg === "--also" ? also : arg === "--only" ? only : null;
172
183
  if (flag) {
173
184
  const next = argv[i + 1];