@devdogsuga/devtools 0.1.51-next.526 → 0.1.51-next.527

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,5 +1,5 @@
1
1
  import { c as ownPackageDir, g as positionals, h as flagValue, l as ownVersion, n as discoverRepoRoot, r as findRepoRoot, u as cliName } from "./root-CsocfxnK.js";
2
- import { A as renderCommandList, C as currentProduct, E as isProductMode, O as catalog, S as ProductConfigError, T as activeCatalog, _ as bail, a as recordEnteredTier, b as explainError, c as describeEnvironment, d as resolveDbConnection, f as sessionIsLocal, i as beginInvocation, j as renderHelp, k as helpPath, l as probeEnvironment, n as bareGroupStartPath, o as recordResolved, p as sessionLabel, r as runMenu, s as reproducibleCommand, t as bareGroupStartFlags, u as nonEmpty, v as errorMessage, x as unwrap, y as explain } from "./menu-CJC7OElU.js";
2
+ import { A as renderCommandList, C as currentProduct, E as isProductMode, O as catalog, S as ProductConfigError, T as activeCatalog, _ as bail, a as recordEnteredTier, b as explainError, c as describeEnvironment, d as resolveDbConnection, f as sessionIsLocal, i as beginInvocation, j as renderHelp, k as helpPath, l as probeEnvironment, n as bareGroupStartPath, o as recordResolved, p as sessionLabel, r as runMenu, s as reproducibleCommand, t as bareGroupStartFlags, u as nonEmpty, v as errorMessage, x as unwrap, y as explain } from "./menu-DjE4EZKO.js";
3
3
  import { A as dryRunKind, C as layoutAt, E as resolveLayout, O as reportRan, P as wouldRunLine, S as findApp, T as resolveAppPath, _ as loadEnvLoad, b as appWorkspaceRoot, c as reportRuns, f as supabase, g as loadEnv, h as getEnvSync, j as isDryRun, k as runInGroup, l as run$1, m as supabaseRoot, s as dbPush, u as runWithStderr, v as loadEnvSession, w as listApps, x as devdogsugaRootOrNull, y as repoPeerUrl } from "./supabase-project-BoJKMCxL.js";
4
4
  import { d as hasYes, f as isNonInteractive, n as captureDevtoolsError, o as initDevtoolsTelemetry } from "./telemetry-BKFDtzXI.js";
5
5
  import { t as runStackCommand } from "./stack-7Lbym6Wq.js";
package/dist/launch.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as installFailureLog, n as discoverRepoRoot, r as findRepoRoot, t as RepoNotFoundError, u as cliName } from "./root-CsocfxnK.js";
2
- import { D as setProductMode, O as catalog, _ as bail, g as setMenuEnvHook, h as realEnvEntryDeps, k as helpPath, m as enterSessionEnvironment, n as bareGroupStartPath, u as nonEmpty, v as errorMessage, w as findProductRoot, x as unwrap } from "./menu-CJC7OElU.js";
2
+ import { D as setProductMode, O as catalog, _ as bail, g as setMenuEnvHook, h as realEnvEntryDeps, k as helpPath, m as enterSessionEnvironment, n as bareGroupStartPath, u as nonEmpty, v as errorMessage, w as findProductRoot, x as unwrap } from "./menu-DjE4EZKO.js";
3
3
  import { D as formatCommand, M as resolveDryRun, N as setDryRun, _ as loadEnvLoad, j as isDryRun, v as loadEnvSession } from "./supabase-project-BoJKMCxL.js";
4
4
  import { d as hasYes, f as isNonInteractive, m as stripTierFlag, n as captureDevtoolsError, o as initDevtoolsTelemetry, p as stripNoEnvFlag, s as lastSentryEventId } from "./telemetry-BKFDtzXI.js";
5
5
  import { confirm, select } from "@clack/prompts";
@@ -124,6 +124,14 @@ function ignoreClosedPipes() {
124
124
  }
125
125
  //#endregion
126
126
  //#region src/launch.ts
127
+ /** The catalog node `rest` dispatches to. */
128
+ function declaredCommand(rest) {
129
+ const path = helpPath(rest);
130
+ for (let length = path.length; length > 0; length -= 1) {
131
+ const node = catalog.findCommand(path.slice(0, length));
132
+ if (node) return node;
133
+ }
134
+ }
127
135
  /**
128
136
  * Whether the command `rest` dispatches to is declared `envFree` in
129
137
  * the command catalog — the leading run of non-flag tokens is the
@@ -139,12 +147,7 @@ function ignoreClosedPipes() {
139
147
  * remember to add here too.
140
148
  */
141
149
  function isEnvFreeCommand(rest) {
142
- const path = helpPath(rest);
143
- for (let length = path.length; length > 0; length -= 1) {
144
- const node = catalog.findCommand(path.slice(0, length));
145
- if (node) return node.envFree === true;
146
- }
147
- return false;
150
+ return declaredCommand(rest)?.envFree === true;
148
151
  }
149
152
  /**
150
153
  * Whether the command reads nothing but the checkout, so the session behaves
@@ -153,7 +156,7 @@ function isEnvFreeCommand(rest) {
153
156
  * runner that has no `.env` at all.
154
157
  */
155
158
  function skipsEnvEntry(rest) {
156
- return catalog.findCommand(helpPath(rest))?.noEnv === true;
159
+ return declaredCommand(rest)?.noEnv === true;
157
160
  }
158
161
  /** The offer's stack start (`env-entry.ts` holds the TTY prompt, this holds
159
162
  * the lifecycle command), imported lazily like the rest of the commands. */
@@ -169,7 +172,7 @@ async function startStack() {
169
172
  * post-tier-resolution path.
170
173
  */
171
174
  async function dispatch(argv) {
172
- const { main } = await import("./cli-BEFBVH8e.js");
175
+ const { main } = await import("./cli-D4LUUxUR.js");
173
176
  try {
174
177
  await main(argv);
175
178
  } catch (err) {
@@ -500,6 +500,7 @@ const moderationCommand = {
500
500
  summary: "Send one signed moderation action to a receiver.",
501
501
  hint: "like a moderator's decision, without the platform",
502
502
  envFree: true,
503
+ noEnv: true,
503
504
  options: [
504
505
  TO,
505
506
  SECRET,
@@ -533,6 +534,7 @@ const moderationCommand = {
533
534
  summary: "Send the conformance sequence and check each answer.",
534
535
  hint: "pass or fail",
535
536
  envFree: true,
537
+ noEnv: true,
536
538
  options: [TO, SECRET]
537
539
  }]
538
540
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devdogsuga/devtools",
3
- "version": "0.1.51-next.526",
3
+ "version": "0.1.51-next.527",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Contributor CLI for DevDogs repositories (the platform monorepo, DogDays, DogPack): the real tools with the session's tier filled in, `setup`, `db sync`, `db types`, `dev-data`, a menu over them, the checks CI runs, and the `with-env` launcher. Ships built JS; run via `pnpm dlx @devdogsuga/devtools` or `npx @devdogsuga/devtools` (or the `devtools` bin once installed) from inside a clone.",
@@ -45,8 +45,8 @@
45
45
  "tsdown": "^0.23.0",
46
46
  "vitest": "^4.1.11",
47
47
  "@devdogsuga/cli-core": "0.0.0",
48
- "@devdogsuga/config": "0.1.4-next.526",
49
- "@devdogsuga/sdk": "0.1.0"
48
+ "@devdogsuga/sdk": "0.1.0",
49
+ "@devdogsuga/config": "0.1.4-next.526"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsdown && node scripts/write-build-info.mjs && node ../../scripts/check-bundle-imports.mjs",