cursedops 0.7.0 → 0.7.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursedops",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
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 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": {
@@ -136,9 +136,16 @@ function readIfThere(path: string): string | null {
136
136
  return existsSync(path) ? readFileSync(path, "utf8") : null;
137
137
  }
138
138
 
139
- /** `command` under the app's Worker CPU wrapper, in the argv {@link parseWorkerCpuArgv} reads. */
139
+ /**
140
+ * `command` under the app's Worker CPU wrapper, in the argv {@link parseWorkerCpuArgv} reads.
141
+ *
142
+ * 🔴 `--env` is ALWAYS spelled, production included. `bun run <file> -- x` swallows a `--` that
143
+ * comes straight after the file, so `bun run scripts/worker-cpu.ts -- bun run smoke.ts` reached
144
+ * the wrapper with no separator and exited on its usage line — measured on collections'
145
+ * production smoke, 2026-09-23, after the Worker had already shipped (cursedops 0.7.0).
146
+ */
140
147
  export function underCpuTail(wrapper: readonly string[], env: WorkerEnv, command: readonly string[]): string[] {
141
- return [...wrapper, ...(env === "stage" ? ["--env", "stage"] : []), "--", ...command];
148
+ return [...wrapper, "--env", env, "--", ...command];
142
149
  }
143
150
 
144
151
  /** A refusal an app adds to the sequence: a sentence saying why not, or `null` to proceed. */