@devdogsuga/devtools 0.1.26 → 0.1.27
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 +72 -11
- package/bin/devtools.mjs +4 -4
- package/dist/cli-CZKkNHK5.js +6619 -0
- package/dist/failure-log-BBPGejQv.js +256 -0
- package/dist/launch.js +267 -281
- package/dist/local-env-D8HC2JK_.js +351 -0
- package/dist/local-env-DrBCXqD8.js +2 -0
- package/dist/menu-CQBsQRgH.js +1684 -0
- package/dist/peer-redirect-hooks.js +15 -0
- package/dist/peers-RBplwovA.js +229 -0
- package/dist/root-C2OmZDwD.js +94 -0
- package/dist/stack-Bx-55oi_.js +2 -0
- package/dist/stack-BynCgRVS.js +181 -0
- package/dist/supabase-project-0knM0mqd.js +426 -0
- package/dist/telemetry-C4foD8MD.js +249 -0
- package/dist/telemetry.js +2 -148
- package/package.json +10 -29
- package/bin/devtools-ci-bare.mjs +0 -48
- package/bin/devtools-ci.mjs +0 -31
- package/dist/args.d.ts +0 -26
- package/dist/args.js +0 -78
- package/dist/bws/bw.d.ts +0 -18
- package/dist/bws/bw.js +0 -70
- package/dist/bws/client.d.ts +0 -43
- package/dist/bws/client.js +0 -363
- package/dist/bws/environments.d.ts +0 -96
- package/dist/bws/environments.js +0 -111
- package/dist/bws/pace.d.ts +0 -25
- package/dist/bws/pace.js +0 -43
- package/dist/bws/retry.d.ts +0 -12
- package/dist/bws/retry.js +0 -39
- package/dist/bws/store.d.ts +0 -1
- package/dist/bws/store.js +0 -32
- package/dist/bws/token.d.ts +0 -31
- package/dist/bws/token.js +0 -88
- package/dist/bws/vault.d.ts +0 -29
- package/dist/bws/vault.js +0 -200
- package/dist/catalog.d.ts +0 -57
- package/dist/catalog.js +0 -57
- package/dist/cf/build.d.ts +0 -13
- package/dist/cf/build.js +0 -65
- package/dist/cf/commands.d.ts +0 -1
- package/dist/cf/commands.js +0 -172
- package/dist/cf/local-env.d.ts +0 -58
- package/dist/cf/local-env.js +0 -177
- package/dist/ci.d.ts +0 -1
- package/dist/ci.js +0 -328
- package/dist/cli.d.ts +0 -11
- package/dist/cli.js +0 -1094
- package/dist/commands.d.ts +0 -261
- package/dist/commands.js +0 -1318
- package/dist/completions.d.ts +0 -4
- package/dist/completions.js +0 -110
- package/dist/cron/commands.d.ts +0 -47
- package/dist/cron/commands.js +0 -372
- package/dist/cron/discovery.d.ts +0 -55
- package/dist/cron/discovery.js +0 -85
- package/dist/cron/schema.d.ts +0 -45
- package/dist/cron/schema.js +0 -35
- package/dist/db/config-push.d.ts +0 -8
- package/dist/db/config-push.js +0 -11
- package/dist/db/connection.d.ts +0 -79
- package/dist/db/connection.js +0 -114
- package/dist/db/exec.d.ts +0 -1
- package/dist/db/exec.js +0 -11
- package/dist/db/generate-types.d.ts +0 -1
- package/dist/db/generate-types.js +0 -4
- package/dist/db/generated-env.d.ts +0 -69
- package/dist/db/generated-env.js +0 -113
- package/dist/db/introspect.d.ts +0 -1
- package/dist/db/introspect.js +0 -122
- package/dist/db/local-env.d.ts +0 -65
- package/dist/db/local-env.js +0 -23
- package/dist/db/new-migration.d.ts +0 -8
- package/dist/db/new-migration.js +0 -69
- package/dist/db/pooler.d.ts +0 -23
- package/dist/db/pooler.js +0 -55
- package/dist/db/run.d.ts +0 -68
- package/dist/db/run.js +0 -156
- package/dist/db/seed-buckets.d.ts +0 -2
- package/dist/db/seed-buckets.js +0 -4
- package/dist/db/seed-production.d.ts +0 -8
- package/dist/db/seed-production.js +0 -79
- package/dist/db/seed-roles.d.ts +0 -7
- package/dist/db/seed-roles.js +0 -33
- package/dist/db/session-refresh.d.ts +0 -43
- package/dist/db/session-refresh.js +0 -40
- package/dist/deploy/migrations.d.ts +0 -20
- package/dist/deploy/migrations.js +0 -68
- package/dist/deploy/orphans.d.ts +0 -20
- package/dist/deploy/orphans.js +0 -177
- package/dist/deploy/preflight.d.ts +0 -53
- package/dist/deploy/preflight.js +0 -189
- package/dist/deploy/report.d.ts +0 -26
- package/dist/deploy/report.js +0 -70
- package/dist/deploy/require-planner.d.ts +0 -2
- package/dist/deploy/require-planner.js +0 -60
- package/dist/deploy/require-token.d.ts +0 -15
- package/dist/deploy/require-token.js +0 -78
- package/dist/deploy/secrets-file.d.ts +0 -17
- package/dist/deploy/secrets-file.js +0 -166
- package/dist/deploy/write-env.d.ts +0 -40
- package/dist/deploy/write-env.js +0 -395
- package/dist/docs/index-pages.d.ts +0 -38
- package/dist/docs/index-pages.js +0 -186
- package/dist/emails/commands.d.ts +0 -15
- package/dist/emails/commands.js +0 -130
- package/dist/emails/email-types.d.ts +0 -13
- package/dist/emails/email-types.js +0 -1
- package/dist/emails/fixtures.d.ts +0 -20
- package/dist/emails/fixtures.js +0 -20
- package/dist/env/audit.d.ts +0 -206
- package/dist/env/audit.js +0 -436
- package/dist/env/cloudflare.d.ts +0 -21
- package/dist/env/cloudflare.js +0 -61
- package/dist/env/commands.d.ts +0 -99
- package/dist/env/commands.js +0 -613
- package/dist/env/discovery.d.ts +0 -15
- package/dist/env/discovery.js +0 -239
- package/dist/env/document.d.ts +0 -119
- package/dist/env/document.js +0 -323
- package/dist/env/example.d.ts +0 -68
- package/dist/env/example.js +0 -605
- package/dist/env/selection.d.ts +0 -105
- package/dist/env/selection.js +0 -228
- package/dist/env-entry.d.ts +0 -49
- package/dist/env-entry.js +0 -204
- package/dist/environment-doctor.d.ts +0 -45
- package/dist/environment-doctor.js +0 -429
- package/dist/environment.d.ts +0 -92
- package/dist/environment.js +0 -185
- package/dist/fingerprint.d.ts +0 -10
- package/dist/fingerprint.js +0 -18
- package/dist/gen/campus-map.d.ts +0 -1
- package/dist/gen/campus-map.js +0 -473
- package/dist/gen/commands.d.ts +0 -1
- package/dist/gen/commands.js +0 -25
- package/dist/gen/hypno.d.ts +0 -1
- package/dist/gen/hypno.js +0 -134
- package/dist/gh/client.d.ts +0 -80
- package/dist/gh/client.js +0 -259
- package/dist/gh/environments.d.ts +0 -83
- package/dist/gh/environments.js +0 -178
- package/dist/gh/rulesets/actors.d.ts +0 -14
- package/dist/gh/rulesets/actors.js +0 -69
- package/dist/gh/rulesets/api.d.ts +0 -15
- package/dist/gh/rulesets/api.js +0 -104
- package/dist/gh/rulesets/commands.d.ts +0 -3
- package/dist/gh/rulesets/commands.js +0 -203
- package/dist/gh/rulesets/desired.d.ts +0 -112
- package/dist/gh/rulesets/desired.js +0 -271
- package/dist/gh/rulesets/diff.d.ts +0 -65
- package/dist/gh/rulesets/diff.js +0 -170
- package/dist/gh/rulesets/types.d.ts +0 -76
- package/dist/gh/rulesets/types.js +0 -13
- package/dist/gh/settings/api.d.ts +0 -40
- package/dist/gh/settings/api.js +0 -180
- package/dist/gh/settings/commands.d.ts +0 -1
- package/dist/gh/settings/commands.js +0 -254
- package/dist/gh/settings/desired.d.ts +0 -53
- package/dist/gh/settings/desired.js +0 -43
- package/dist/gh/settings/diff.d.ts +0 -57
- package/dist/gh/settings/diff.js +0 -161
- package/dist/gh/settings/types.d.ts +0 -92
- package/dist/gh/settings/types.js +0 -11
- package/dist/gh/settings/workflows.d.ts +0 -41
- package/dist/gh/settings/workflows.js +0 -128
- package/dist/grantRoot.d.ts +0 -42
- package/dist/grantRoot.js +0 -89
- package/dist/help.d.ts +0 -18
- package/dist/help.js +0 -169
- package/dist/images/commands.d.ts +0 -32
- package/dist/images/commands.js +0 -231
- package/dist/images/events.d.ts +0 -47
- package/dist/images/events.js +0 -116
- package/dist/images/graphics.d.ts +0 -70
- package/dist/images/graphics.js +0 -234
- package/dist/images/open-graph-types.d.ts +0 -75
- package/dist/images/open-graph-types.js +0 -1
- package/dist/images/prompts.d.ts +0 -34
- package/dist/images/prompts.js +0 -100
- package/dist/images/render.d.ts +0 -21
- package/dist/images/render.js +0 -61
- package/dist/images/select.d.ts +0 -64
- package/dist/images/select.js +0 -96
- package/dist/instance.d.ts +0 -69
- package/dist/instance.js +0 -102
- package/dist/invocation.d.ts +0 -49
- package/dist/invocation.js +0 -78
- package/dist/launch-ci.d.ts +0 -1
- package/dist/launch-ci.js +0 -90
- package/dist/launch.d.ts +0 -18
- package/dist/menu.d.ts +0 -43
- package/dist/menu.js +0 -300
- package/dist/moderation.d.ts +0 -70
- package/dist/moderation.js +0 -128
- package/dist/oauth/browser.d.ts +0 -1
- package/dist/oauth/browser.js +0 -13
- package/dist/oauth/config.d.ts +0 -24
- package/dist/oauth/config.js +0 -24
- package/dist/oauth/connect-url.d.ts +0 -17
- package/dist/oauth/connect-url.js +0 -23
- package/dist/oauth/db.d.ts +0 -37
- package/dist/oauth/db.js +0 -108
- package/dist/oauth/device.d.ts +0 -93
- package/dist/oauth/device.js +0 -198
- package/dist/oauth/discovery.d.ts +0 -28
- package/dist/oauth/discovery.js +0 -54
- package/dist/oauth/env-file.d.ts +0 -6
- package/dist/oauth/env-file.js +0 -35
- package/dist/oauth/exchange.d.ts +0 -43
- package/dist/oauth/exchange.js +0 -93
- package/dist/oauth/label.d.ts +0 -1
- package/dist/oauth/label.js +0 -25
- package/dist/oauth/loopback.d.ts +0 -52
- package/dist/oauth/loopback.js +0 -168
- package/dist/oauth/pkce.d.ts +0 -6
- package/dist/oauth/pkce.js +0 -34
- package/dist/oauth/target.d.ts +0 -54
- package/dist/oauth/target.js +0 -102
- package/dist/oauth/transport.d.ts +0 -41
- package/dist/oauth/transport.js +0 -32
- package/dist/oauth/wizard.d.ts +0 -40
- package/dist/oauth/wizard.js +0 -578
- package/dist/persona.d.ts +0 -18
- package/dist/persona.js +0 -221
- package/dist/pick.d.ts +0 -6
- package/dist/pick.js +0 -64
- package/dist/pipes.d.ts +0 -1
- package/dist/pipes.js +0 -25
- package/dist/planner/checks.d.ts +0 -26
- package/dist/planner/checks.js +0 -104
- package/dist/planner/commands.d.ts +0 -10
- package/dist/planner/commands.js +0 -367
- package/dist/planner/db.d.ts +0 -15
- package/dist/planner/db.js +0 -33
- package/dist/planner/role.d.ts +0 -33
- package/dist/planner/role.js +0 -68
- package/dist/repo/peer-redirect-hooks.d.ts +0 -16
- package/dist/repo/peer-redirect-hooks.js +0 -10
- package/dist/repo/peer-redirect.d.ts +0 -4
- package/dist/repo/peer-redirect.js +0 -26
- package/dist/repo/peers.d.ts +0 -39
- package/dist/repo/peers.js +0 -139
- package/dist/repo/resolve.d.ts +0 -41
- package/dist/repo/resolve.js +0 -152
- package/dist/repo/root.d.ts +0 -23
- package/dist/repo/root.js +0 -91
- package/dist/repo/source.d.ts +0 -14
- package/dist/repo/source.js +0 -54
- package/dist/repo/supabase-project.d.ts +0 -60
- package/dist/repo/supabase-project.js +0 -124
- package/dist/repo/tsx-loader.d.ts +0 -6
- package/dist/repo/tsx-loader.js +0 -41
- package/dist/run/pick.d.ts +0 -90
- package/dist/run/pick.js +0 -664
- package/dist/setup.d.ts +0 -1
- package/dist/setup.js +0 -280
- package/dist/stack.d.ts +0 -48
- package/dist/stack.js +0 -403
- package/dist/telemetry.d.ts +0 -59
- package/dist/tier.d.ts +0 -40
- package/dist/tier.js +0 -96
- package/dist/ui.d.ts +0 -40
- package/dist/ui.js +0 -71
- package/dist/version.d.ts +0 -7
- package/dist/version.js +0 -17
- package/dist/workers.d.ts +0 -5
- package/dist/workers.js +0 -33
- package/dist/workflows/commands.d.ts +0 -54
- package/dist/workflows/commands.js +0 -763
package/dist/ui.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared prompt plumbing.
|
|
3
|
-
*
|
|
4
|
-
* The audience here is a contributor who may not be comfortable in a terminal
|
|
5
|
-
* at all, so two rules apply throughout:
|
|
6
|
-
*
|
|
7
|
-
* * Nothing requires knowing a command. Running `pnpm devtools` with no
|
|
8
|
-
* arguments opens a menu, and every prompt has a sensible default.
|
|
9
|
-
* * A failure says what to do next. `explain()` exists so no error path
|
|
10
|
-
* ends at a stack trace.
|
|
11
|
-
*/
|
|
12
|
-
import { cancel, isCancel, log, note } from "@clack/prompts";
|
|
13
|
-
import { reportDevtoolsError } from "./telemetry.js";
|
|
14
|
-
export function bail(message = "Cancelled.") {
|
|
15
|
-
cancel(message);
|
|
16
|
-
process.exit(1);
|
|
17
|
-
}
|
|
18
|
-
/** Exits cleanly on Ctrl-C rather than letting a cancel symbol leak onward. */
|
|
19
|
-
export function unwrap(value) {
|
|
20
|
-
if (isCancel(value))
|
|
21
|
-
bail();
|
|
22
|
-
return value;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Reports a failure with the next thing to try.
|
|
26
|
-
*
|
|
27
|
-
* `hints` is not decoration: for most of these failures the fix is one command,
|
|
28
|
-
* and printing it is the difference between a contributor continuing and a
|
|
29
|
-
* contributor asking in Discord.
|
|
30
|
-
*/
|
|
31
|
-
export function explain(summary, detail, hints = []) {
|
|
32
|
-
log.error(summary);
|
|
33
|
-
if (detail)
|
|
34
|
-
log.message(detail);
|
|
35
|
-
if (hints.length > 0)
|
|
36
|
-
note(hints.join("\n"), "Try this");
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* A refusal the reader can fix themselves — a name that matches nothing, a
|
|
40
|
-
* flag missing where there is no terminal to ask. Thrown from deep enough
|
|
41
|
-
* that the command's catch can't tell it from a real failure any other way;
|
|
42
|
-
* `explainError` prints it like any other error but keeps it out of Sentry.
|
|
43
|
-
*/
|
|
44
|
-
export class UsageError extends Error {
|
|
45
|
-
name = "UsageError";
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* `explain()` for a caught error rather than a refusal: prints the same way,
|
|
49
|
-
* with `err`'s message as the detail, and reports `err` to Sentry unless it
|
|
50
|
-
* is a {@link UsageError}. Only failures nobody anticipated belong there.
|
|
51
|
-
*/
|
|
52
|
-
export function explainError(summary, err, hints = []) {
|
|
53
|
-
if (!(err instanceof UsageError))
|
|
54
|
-
reportDevtoolsError(err);
|
|
55
|
-
explain(summary, errorMessage(err), hints);
|
|
56
|
-
}
|
|
57
|
-
export function errorMessage(err) {
|
|
58
|
-
return err instanceof Error ? err.message : String(err);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* A pass/fail list.
|
|
62
|
-
*
|
|
63
|
-
* Deliberately plain text rather than a box-drawing table: these lines get
|
|
64
|
-
* pasted into Discord and GitHub issues, where anything fancier turns to
|
|
65
|
-
* rubble.
|
|
66
|
-
*/
|
|
67
|
-
export function renderChecks(checks) {
|
|
68
|
-
return checks
|
|
69
|
-
.map((c) => `${c.ok ? "PASS" : "FAIL"} ${c.name}\n ${c.detail}`)
|
|
70
|
-
.join("\n");
|
|
71
|
-
}
|
package/dist/version.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** The directory this module's compiled file lives in one level under —
|
|
2
|
-
* i.e. the devtools package's own root (`dist/version.js` → up one).
|
|
3
|
-
* Exported for tests; memoized since it never changes within a process. */
|
|
4
|
-
export declare function ownPackageDir(): string;
|
|
5
|
-
/** Reads this build's own `package.json` version — used by `telemetry.ts`
|
|
6
|
-
* (release tagging) and `cli.ts`'s `version` command. */
|
|
7
|
-
export declare function ownVersion(): string;
|
package/dist/version.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from "node:fs";
|
|
2
|
-
import { dirname, join } from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
|
-
let cachedOwnDir;
|
|
5
|
-
/** The directory this module's compiled file lives in one level under —
|
|
6
|
-
* i.e. the devtools package's own root (`dist/version.js` → up one).
|
|
7
|
-
* Exported for tests; memoized since it never changes within a process. */
|
|
8
|
-
export function ownPackageDir() {
|
|
9
|
-
cachedOwnDir ??= join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
10
|
-
return cachedOwnDir;
|
|
11
|
-
}
|
|
12
|
-
/** Reads this build's own `package.json` version — used by `telemetry.ts`
|
|
13
|
-
* (release tagging) and `cli.ts`'s `version` command. */
|
|
14
|
-
export function ownVersion() {
|
|
15
|
-
const pkg = JSON.parse(readFileSync(join(ownPackageDir(), "package.json"), "utf8"));
|
|
16
|
-
return typeof pkg.version === "string" ? pkg.version : "0.0.0";
|
|
17
|
-
}
|
package/dist/workers.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Workspace-relative paths, exactly as listed in root `workers.json`. */
|
|
2
|
-
export declare function workerPaths(): readonly string[];
|
|
3
|
-
/** Basenames, e.g. `"schedule-builder"` — the `pnpm --filter` / CLI slug. */
|
|
4
|
-
export declare function workerApps(): readonly string[];
|
|
5
|
-
export declare function isWorkerApp(value: string): boolean;
|
package/dist/workers.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The one list of Worker apps, read from root `workers.json`.
|
|
3
|
-
*
|
|
4
|
-
* Six call sites across `devtools` and `env` used to carry their own copy of
|
|
5
|
-
* `["platform", "sandbox", "schedule-builder"]` — a CLI's app-choice list, a
|
|
6
|
-
* deploy guard, an env-registry consumer, a cron drift test, and more — with
|
|
7
|
-
* nothing to say when one of them drifted from the rest. `workers.test.ts`
|
|
8
|
-
* covers the drift; this module is the one place to fix it.
|
|
9
|
-
*/
|
|
10
|
-
import { readFileSync } from "node:fs";
|
|
11
|
-
import { basename, join } from "node:path";
|
|
12
|
-
import { findRepoRoot } from "./repo/root.js";
|
|
13
|
-
// Both lists used to be top-level `const`s, evaluated the instant this
|
|
14
|
-
// module was imported — which meant `findRepoRoot()` ran (and threw
|
|
15
|
-
// `RepoNotFoundError`) at IMPORT time for anything that pulled this module
|
|
16
|
-
// in transitively, `devtools --help` and `devtools setup` included, even
|
|
17
|
-
// outside any repo. Lazy + memoized getters fix that: nothing here touches
|
|
18
|
-
// the filesystem until a caller actually asks for the list, by which point
|
|
19
|
-
// it is a real repo-dependent command that is supposed to refuse outside a
|
|
20
|
-
// repo anyway.
|
|
21
|
-
let cachedWorkerPaths;
|
|
22
|
-
/** Workspace-relative paths, exactly as listed in root `workers.json`. */
|
|
23
|
-
export function workerPaths() {
|
|
24
|
-
cachedWorkerPaths ??= JSON.parse(readFileSync(join(findRepoRoot(), "workers.json"), "utf8"));
|
|
25
|
-
return cachedWorkerPaths;
|
|
26
|
-
}
|
|
27
|
-
/** Basenames, e.g. `"schedule-builder"` — the `pnpm --filter` / CLI slug. */
|
|
28
|
-
export function workerApps() {
|
|
29
|
-
return workerPaths().map((path) => basename(path));
|
|
30
|
-
}
|
|
31
|
-
export function isWorkerApp(value) {
|
|
32
|
-
return workerApps().includes(value);
|
|
33
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { type AppWranglerConfig, type CronTier } from "../cron/discovery.js";
|
|
2
|
-
export interface WorkflowChoice {
|
|
3
|
-
app: string;
|
|
4
|
-
tier: CronTier;
|
|
5
|
-
binding: string;
|
|
6
|
-
name: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
interface WorkflowOptions {
|
|
10
|
-
app?: string;
|
|
11
|
-
tier?: string;
|
|
12
|
-
workflow?: string;
|
|
13
|
-
params?: string;
|
|
14
|
-
port?: string;
|
|
15
|
-
yes: boolean;
|
|
16
|
-
json: boolean;
|
|
17
|
-
instanceId?: string;
|
|
18
|
-
}
|
|
19
|
-
export { renderWranglerEnvFile } from "../cf/local-env.js";
|
|
20
|
-
export declare function workflowChoices(configs: readonly AppWranglerConfig[], tiers?: readonly CronTier[]): WorkflowChoice[];
|
|
21
|
-
export declare function workflowTriggerArgs(choice: WorkflowChoice, options: Pick<WorkflowOptions, "params" | "port" | "instanceId">): string[];
|
|
22
|
-
/** Wait until a locally-triggered instance finishes before its server is stopped. */
|
|
23
|
-
export declare function waitForLocalWorkflow(workflowName: string, instanceId: string, port: string, options?: {
|
|
24
|
-
timeoutMs?: number;
|
|
25
|
-
pollMs?: number;
|
|
26
|
-
fetcher?: typeof fetch;
|
|
27
|
-
}): Promise<number>;
|
|
28
|
-
export declare function wranglerDevArgs(app: string, port: string): string[];
|
|
29
|
-
/** `vinext dev` bound to loopback, where `isWranglerDevRunning` probes. */
|
|
30
|
-
export declare function vinextDevArgs(app: string, port: string): string[];
|
|
31
|
-
/**
|
|
32
|
-
* The port of a `vinext dev` already running for `app`, from the lock file
|
|
33
|
-
* vinext keeps at `<app>/.vinext/dev/lock.json` — or undefined when there is
|
|
34
|
-
* none, or its process is gone. vinext refuses a second dev server in the same
|
|
35
|
-
* app directory, so starting one beside it fails ("Another vinext dev server
|
|
36
|
-
* is already running"); reusing it is the only way through.
|
|
37
|
-
*/
|
|
38
|
-
export declare function runningVinextDevPort(appDir: string, isAlive?: (pid: number) => boolean): string | undefined;
|
|
39
|
-
/** Probe Wrangler's Workflow explorer API, rather than merely checking a port. */
|
|
40
|
-
export declare function isWranglerDevRunning(port: string, timeoutMs?: number, fetcher?: typeof fetch): Promise<boolean>;
|
|
41
|
-
/** Whether nothing is bound to `port` on loopback — a real bind test, not a
|
|
42
|
-
* connect probe, so it answers the only question that matters here: can Wrangler
|
|
43
|
-
* take this port? */
|
|
44
|
-
export declare function isPortFree(port: number): Promise<boolean>;
|
|
45
|
-
/** The first free port at or after `from`, or null if a bounded scan finds
|
|
46
|
-
* none. Bounded so an exhausted range fails loudly instead of looping. */
|
|
47
|
-
export declare function findFreePort(from: number, attempts?: number): Promise<number | null>;
|
|
48
|
-
export declare function isWranglerDevConnectionFailure(stderr: string): boolean;
|
|
49
|
-
export declare function wranglerDevConnectionHint(app: string, port: string): string;
|
|
50
|
-
export declare function wranglerDevNotRunningHint(app: string, port: string): string;
|
|
51
|
-
export declare function runWorkflowsList(argv: readonly string[]): Promise<number>;
|
|
52
|
-
export declare function runWorkflowsRun(argv: readonly string[]): Promise<number>;
|
|
53
|
-
export declare function runWorkflowsServe(argv: readonly string[]): Promise<number>;
|
|
54
|
-
export declare function runWorkflows(argv: readonly string[]): Promise<number>;
|