@prisma/cli-engine 0.8.0 → 0.9.0

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  The execution engine of the unified Prisma CLI: it owns the path from argv to exit code — parsing, execution, rendering, and error handling.
4
4
 
5
- Every command describes its output once, as blocks, and the engine renders it in one of three formats chosen by `--format`: `human` for a person at a terminal (padded, aligned, coloured, on stderr, with the machine-usable data lines on stdout), `json` for a program (a stream of frames ending in a result envelope on stdout), and `markdown` for an agent that reads the output as text (plain Markdown with every value labelled, everything on stdout, nothing on stderr). A terminal gets `human` and a pipe gets `json` unless a format is named; `markdown` is only ever explicit.
5
+ Every command describes its output once, as blocks, and the engine renders it in one of three formats chosen by `--format`: `human` for a person at a terminal (padded, aligned, coloured, on stderr, with the machine-usable data lines on stdout), `json` for a program (a stream of frames ending in a result envelope on stdout), and `markdown` for an agent that reads the output as text (plain Markdown with every value labelled, everything on stdout, nothing on stderr). Without a format flag the format is `human`, whether stdout is a terminal or a pipe: a pipe receives the command's data lines and nothing else. `json` and `markdown` are only ever explicit.
6
6
 
7
7
  ## Entry points
8
8
 
@@ -1230,6 +1230,12 @@ function runCommand(manager, request) {
1230
1230
  //#endregion
1231
1231
  //#region src/presentation.ts
1232
1232
  const PRESENTED = Symbol.for("prisma.cli-engine.presented");
1233
+ /** The `stdout` of a command whose only result is that it succeeded,
1234
+ * such as a delete. The reason says why the command has no data, where
1235
+ * its presentation is defined. */
1236
+ function noDataLines(_reason) {
1237
+ return () => [];
1238
+ }
1233
1239
  //#endregion
1234
1240
  //#region src/credential-manager.ts
1235
1241
  /** The environment variables that supply a credential to a process: a
@@ -2110,12 +2116,13 @@ const SHARED_ALIASES = {
2110
2116
  };
2111
2117
  /** The pre-parse format decision: json framing must be in effect before
2112
2118
  * stricli parses (its own failure output is framed too), so the format
2113
- * flags are read from raw argv and a TTY stdout decides the rest. */
2114
- function sniffFormat(argv, runtime) {
2115
- return formatFlagGiven(argv) ?? (runtime.isTty.stdout ? "human" : "json");
2119
+ * flags are read from raw argv. Where stdout goes never picks the
2120
+ * format: a pipe gets human output, whose stdout is the data lines. */
2121
+ function sniffFormat(argv) {
2122
+ return formatFlagGiven(argv) ?? "human";
2116
2123
  }
2117
2124
  function applySharedFlags(state, shared, runtime) {
2118
- state.format = shared.format ?? resolveAutoFormat(shared, runtime);
2125
+ state.format = shared.format ?? (shared.json === true ? "json" : "human");
2119
2126
  state.yes = shared.yes === true;
2120
2127
  state.confirmValues = [...shared.confirm ?? []];
2121
2128
  state.interactive = shared.interactive ?? defaultInteractive(runtime);
@@ -2146,10 +2153,6 @@ function resolveColorEnabled(shared, runtime) {
2146
2153
  function defaultInteractive(runtime) {
2147
2154
  return runtime.isTty.stdin && !resolveIsCI(runtime);
2148
2155
  }
2149
- function resolveAutoFormat(shared, runtime) {
2150
- if (shared.json === true) return "json";
2151
- return runtime.isTty.stdout ? "human" : "json";
2152
- }
2153
2156
  /** --quiet and --verbose are log-level shorthands; either one beats an
2154
2157
  * explicit --log-level given alongside it. */
2155
2158
  function resolveLogLevel(shared) {
@@ -5811,7 +5814,7 @@ var EngineImpl = class {
5811
5814
  this.redirects = buildRedirectTable(spec);
5812
5815
  }
5813
5816
  async execute(argv, runtime, hooks) {
5814
- const format = sniffFormat(argv, runtime);
5817
+ const format = sniffFormat(argv);
5815
5818
  const state = {
5816
5819
  commandId: "",
5817
5820
  docsBaseUrl: void 0,
@@ -6228,4 +6231,4 @@ function distributePositionals(def, values) {
6228
6231
  return positionals;
6229
6232
  }
6230
6233
  //#endregion
6231
- export { credentialWorkspaceId as C, credentialsRequiredError as D, credentialWorkspaceMismatchError as E, emptyServiceTokenError as O, claimedIdentity as S, credentialRejectedError as T, detectCI as _, definePrismaConfig as a, readActiveAccessToken as b, PRISMA_CONFIG_VERSION as c, PRESENTED as d, readUserConfig as f, exitWithChildStatus as g, resolveGating as h, CONFIG_FILE_NAME as i, noSessionForWorkspaceError as k, SERVICE_TOKEN_ENV_VAR as l, writeUserConfig as m, resolveSectionOverChain as n, loadConfig as o, userConfigPath as p, resolveSectionPath as r, realpathOr as s, buildEngine as t, WORKSPACE_ID_ENV_VAR as u, flag as v, authServiceError as w, claimedExpiresAt as x, positional as y };
6234
+ export { noSessionForWorkspaceError as A, claimedIdentity as C, credentialWorkspaceMismatchError as D, credentialRejectedError as E, credentialsRequiredError as O, claimedExpiresAt as S, authServiceError as T, exitWithChildStatus as _, definePrismaConfig as a, positional as b, PRISMA_CONFIG_VERSION as c, PRESENTED as d, noDataLines as f, resolveGating as g, writeUserConfig as h, CONFIG_FILE_NAME as i, emptyServiceTokenError as k, SERVICE_TOKEN_ENV_VAR as l, userConfigPath as m, resolveSectionOverChain as n, loadConfig as o, readUserConfig as p, resolveSectionPath as r, realpathOr as s, buildEngine as t, WORKSPACE_ID_ENV_VAR as u, detectCI as v, credentialWorkspaceId as w, readActiveAccessToken as x, flag as y };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as defineConfigSection, $t as ManagementApiClientConfig, A as StatementAnswer, At as PackageManagerRunResult, B as PresentedResult, Bt as positional, C as defineServerCommand, Ct as SpawnChild, D as OpenUrlOutcome, Dt as exitWithChildStatus, E as CommandContext, Et as SpawnedChild, F as Block, Ft as Char, G as TreeNode, Gt as CredentialManager, H as Status, Ht as ActiveCredential, I as Format, It as CommandArgs, J as Severity, Jt as Session, K as Ui, Kt as CredentialOrigin, L as Outcome, Lt as FlagSpec, M as StatementQuestion, Mt as PackageOperations, N as StatementSurface, Nt as Args, O as OpenUrlRequest, Ot as PackageManagerId, P as StatementsOptions, Pt as ArgsSpec, Q as SectionValidation, Qt as ManagementApiClient, R as PRESENTED, Rt as PositionalSpec, S as defineCommand, St as ExitWithChildStatusOptions, T as BrowserWaitRequest, Tt as SpawnRequest, U as Text, Ut as Credential, V as Span, Vt as ActiveAccessTokenOptions, W as Tone, Wt as CredentialIdentity, X as StreamMeta, Xt as CredentialRefreshResult, Y as StreamEvent, Yt as StoredSessions, Z as ConfigSection, Zt as CredentialRefresher, _ as ServerCommandDefinition, _t as TelemetryPayload, a as RedirectSpec, at as ResolvedSection, b as StatementSpec, bt as ChildResult, c as CommandDefinition, ct as resolveSectionPath, d as CommandNeeds, dt as InputStream, en as TokenStorage, et as ConfigSchema, f as CompletedEnvelope, ft as LoadedConfig, g as NeedsSpec, gt as Runtime, h as HelpSpec, ht as PRISMA_CONFIG_VERSION, i as MountedTree, it as validateSectionWithSchema, j as StatementOptions, jt as PackageManagerRunner, k as PromptSurface, kt as PackageManagerRunRequest, l as CommandHandler, lt as Host, m as Handler, mt as OutputStream, n as CommandFamily, nt as configSchema, o as defineCommandFamily, ot as SectionProvenance, p as ErroredEnvelope, pt as LoadedConfigFile, q as EngineEvent, qt as SERVICE_TOKEN_ENV_VAR, r as CommandRedirect, rt as reference, s as AnyCommand, st as resolveSectionOverChain, t as TelemetryDeclaration, tt as ConfigSchemaValue, u as CommandHelp, ut as HostProcess, v as SessionCommandDefinition, vt as EngineCommandSnapshot, w as defineSessionCommand, wt as SpawnOptions, x as WorkflowStep, xt as ChildStatusSettlement, y as SpawnDeclarations, yt as RunSummary, z as Presentations, zt as flag } from "./report-CQ30sy_e.js";
1
+ import { $ as SectionValidation, $t as ManagementApiClient, A as StatementAnswer, At as PackageManagerRunRequest, B as PresentedResult, Bt as flag, C as defineServerCommand, Ct as ExitWithChildStatusOptions, D as OpenUrlOutcome, Dt as SpawnedChild, E as CommandContext, Et as SpawnRequest, F as Block, Ft as ArgsSpec, G as TreeNode, Gt as CredentialIdentity, H as Status, Ht as ActiveAccessTokenOptions, I as Format, It as Char, J as EngineEvent, Jt as SERVICE_TOKEN_ENV_VAR, K as Ui, Kt as CredentialManager, L as Outcome, Lt as CommandArgs, M as StatementQuestion, Mt as PackageManagerRunner, N as StatementSurface, Nt as PackageOperations, O as OpenUrlRequest, Ot as exitWithChildStatus, P as StatementsOptions, Pt as Args, Q as ConfigSection, Qt as CredentialRefresher, R as PRESENTED, Rt as FlagSpec, S as defineCommand, St as ChildStatusSettlement, T as BrowserWaitRequest, Tt as SpawnOptions, U as Text, Ut as ActiveCredential, V as Span, Vt as positional, W as Tone, Wt as Credential, X as StreamEvent, Xt as StoredSessions, Y as Severity, Yt as Session, Z as StreamMeta, Zt as CredentialRefreshResult, _ as ServerCommandDefinition, _t as Runtime, a as RedirectSpec, at as validateSectionWithSchema, b as StatementSpec, bt as RunSummary, c as CommandDefinition, ct as resolveSectionOverChain, d as CommandNeeds, dt as HostProcess, en as ManagementApiClientConfig, et as defineConfigSection, f as CompletedEnvelope, ft as InputStream, g as NeedsSpec, gt as PRISMA_CONFIG_VERSION, h as HelpSpec, ht as OutputStream, i as MountedTree, it as reference, j as StatementOptions, jt as PackageManagerRunResult, k as PromptSurface, kt as PackageManagerId, l as CommandHandler, lt as resolveSectionPath, m as Handler, mt as LoadedConfigFile, n as CommandFamily, nt as ConfigSchemaValue, o as defineCommandFamily, ot as ResolvedSection, p as ErroredEnvelope, pt as LoadedConfig, q as noDataLines, qt as CredentialOrigin, r as CommandRedirect, rt as configSchema, s as AnyCommand, st as SectionProvenance, t as TelemetryDeclaration, tn as TokenStorage, tt as ConfigSchema, u as CommandHelp, ut as Host, v as SessionCommandDefinition, vt as TelemetryPayload, w as defineSessionCommand, wt as SpawnChild, x as WorkflowStep, xt as ChildResult, y as SpawnDeclarations, yt as EngineCommandSnapshot, z as Presentations, zt as PositionalSpec } from "./report-C6k54wjM.js";
2
2
  import { n as CliStructuredError } from "./protocol-YjqPCCOG.js";
3
3
 
4
4
  //#region src/active-access-token.d.ts
@@ -227,4 +227,4 @@ declare function claimedExpiresAt(token: string): Date | undefined;
227
227
  */
228
228
  declare function claimedIdentity(token: string): CredentialIdentity | undefined;
229
229
  //#endregion
230
- export { type ActiveAccessTokenOptions, type ActiveCredential, type AnyCommand, type Args, type ArgsSpec, type Block, type BrowserWaitRequest, type Char, type ChildResult, type ChildStatusSettlement, type Cli, type CliRunHooks, type CommandArgs, type CommandContext, type CommandDefinition, type CommandFamily, type CommandHandler, type CommandHelp, type CommandNeeds, type CommandRedirect, type CompletedEnvelope, type ConfigSchema, type ConfigSchemaValue, type ConfigSection, type Credential, type CredentialIdentity, type CredentialManager, type CredentialOrigin, type CredentialRefreshResult, type CredentialRefresher, type CredentialsRequiredReason, type EngineCommandSnapshot, type EngineEvent, EnvironmentCredentialManager, type ErroredEnvelope, type ExitWithChildStatusOptions, type FlagSpec, type Format, type Handler, type HelpSpec, type Host, type HostProcess, type InputStream, type LoadedConfig, type LoadedConfigFile, type ManagementApiClient, type ManagementApiClientConfig, type MountedTree, type NeedsSpec, type OpenUrlOutcome, type OpenUrlRequest, type Outcome, type OutputStream, PRESENTED, PRISMA_CONFIG_VERSION, type PackageManagerId, type PackageManagerRunRequest, type PackageManagerRunResult, type PackageManagerRunner, type PackageOperations, type PositionalSpec, type Presentations, type PresentedResult, type PromptSurface, type RedirectSpec, type ResolvedSection, type RunSummary, type Runtime, SERVICE_TOKEN_ENV_VAR, type SectionProvenance, type SectionValidation, type ServerCommandDefinition, type Session, type SessionCommandDefinition, type Severity, type Span, type SpawnChild, type SpawnDeclarations, type SpawnOptions, type SpawnRequest, type SpawnedChild, type StatementAnswer, type StatementOptions, type StatementQuestion, type StatementSpec, type StatementSurface, type StatementsOptions, type Status, type StoredSessions, type StreamEvent, type StreamMeta, type TelemetryDeclaration, type TelemetryPayload, type TelemetryStatus, type TelemetryStatusReason, type Text, type TokenStorage, type Tone, type TreeNode, type Ui, type WorkflowStep, authServiceError, claimedExpiresAt, claimedIdentity, configSchema, createCli, credentialRejectedError, credentialWorkspaceId, credentialWorkspaceMismatchError, credentialsRequiredError, defineCommand, defineCommandFamily, defineConfigSection, definePrismaConfig, defineServerCommand, defineSessionCommand, detectCI, emptyServiceTokenError, exitWithChildStatus, flag, loadConfig, noSessionForWorkspaceError, positional, readActiveAccessToken, realpathOr, reference, resolveSectionOverChain, resolveSectionPath, telemetryCommandGroup, validateSectionWithSchema };
230
+ export { type ActiveAccessTokenOptions, type ActiveCredential, type AnyCommand, type Args, type ArgsSpec, type Block, type BrowserWaitRequest, type Char, type ChildResult, type ChildStatusSettlement, type Cli, type CliRunHooks, type CommandArgs, type CommandContext, type CommandDefinition, type CommandFamily, type CommandHandler, type CommandHelp, type CommandNeeds, type CommandRedirect, type CompletedEnvelope, type ConfigSchema, type ConfigSchemaValue, type ConfigSection, type Credential, type CredentialIdentity, type CredentialManager, type CredentialOrigin, type CredentialRefreshResult, type CredentialRefresher, type CredentialsRequiredReason, type EngineCommandSnapshot, type EngineEvent, EnvironmentCredentialManager, type ErroredEnvelope, type ExitWithChildStatusOptions, type FlagSpec, type Format, type Handler, type HelpSpec, type Host, type HostProcess, type InputStream, type LoadedConfig, type LoadedConfigFile, type ManagementApiClient, type ManagementApiClientConfig, type MountedTree, type NeedsSpec, type OpenUrlOutcome, type OpenUrlRequest, type Outcome, type OutputStream, PRESENTED, PRISMA_CONFIG_VERSION, type PackageManagerId, type PackageManagerRunRequest, type PackageManagerRunResult, type PackageManagerRunner, type PackageOperations, type PositionalSpec, type Presentations, type PresentedResult, type PromptSurface, type RedirectSpec, type ResolvedSection, type RunSummary, type Runtime, SERVICE_TOKEN_ENV_VAR, type SectionProvenance, type SectionValidation, type ServerCommandDefinition, type Session, type SessionCommandDefinition, type Severity, type Span, type SpawnChild, type SpawnDeclarations, type SpawnOptions, type SpawnRequest, type SpawnedChild, type StatementAnswer, type StatementOptions, type StatementQuestion, type StatementSpec, type StatementSurface, type StatementsOptions, type Status, type StoredSessions, type StreamEvent, type StreamMeta, type TelemetryDeclaration, type TelemetryPayload, type TelemetryStatus, type TelemetryStatusReason, type Text, type TokenStorage, type Tone, type TreeNode, type Ui, type WorkflowStep, authServiceError, claimedExpiresAt, claimedIdentity, configSchema, createCli, credentialRejectedError, credentialWorkspaceId, credentialWorkspaceMismatchError, credentialsRequiredError, defineCommand, defineCommandFamily, defineConfigSection, definePrismaConfig, defineServerCommand, defineSessionCommand, detectCI, emptyServiceTokenError, exitWithChildStatus, flag, loadConfig, noDataLines, noSessionForWorkspaceError, positional, readActiveAccessToken, realpathOr, reference, resolveSectionOverChain, resolveSectionPath, telemetryCommandGroup, validateSectionWithSchema };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as ok, r as notOk, t as CliStructuredError } from "./protocol-TtNVkeVS.js";
2
- import { C as credentialWorkspaceId, D as credentialsRequiredError, E as credentialWorkspaceMismatchError, O as emptyServiceTokenError, S as claimedIdentity, T as credentialRejectedError, _ as detectCI, a as definePrismaConfig, b as readActiveAccessToken, c as PRISMA_CONFIG_VERSION, d as PRESENTED, f as readUserConfig, g as exitWithChildStatus, h as resolveGating, k as noSessionForWorkspaceError, l as SERVICE_TOKEN_ENV_VAR, m as writeUserConfig, n as resolveSectionOverChain, o as loadConfig, p as userConfigPath, r as resolveSectionPath, s as realpathOr, t as buildEngine, u as WORKSPACE_ID_ENV_VAR, v as flag, w as authServiceError, x as claimedExpiresAt, y as positional } from "./engine-BE7WKK2X.js";
2
+ import { A as noSessionForWorkspaceError, C as claimedIdentity, D as credentialWorkspaceMismatchError, E as credentialRejectedError, O as credentialsRequiredError, S as claimedExpiresAt, T as authServiceError, _ as exitWithChildStatus, a as definePrismaConfig, b as positional, c as PRISMA_CONFIG_VERSION, d as PRESENTED, f as noDataLines, g as resolveGating, h as writeUserConfig, k as emptyServiceTokenError, l as SERVICE_TOKEN_ENV_VAR, m as userConfigPath, n as resolveSectionOverChain, o as loadConfig, p as readUserConfig, r as resolveSectionPath, s as realpathOr, t as buildEngine, u as WORKSPACE_ID_ENV_VAR, v as detectCI, w as credentialWorkspaceId, x as readActiveAccessToken, y as flag } from "./engine-BBuDSD7p.js";
3
3
  import { dirname, isAbsolute, resolve } from "node:path";
4
4
  import { scope, type } from "arktype";
5
5
  //#region src/cli.ts
@@ -474,11 +474,14 @@ const REASON_EXPLANATION = {
474
474
  function statusSummaryLine(status) {
475
475
  return `Telemetry is ${status.enabled ? "enabled" : "disabled"}: ${REASON_EXPLANATION[status.reason]}`;
476
476
  }
477
+ /** `key<TAB>value` data lines; the reason is its code, such as
478
+ * `stored-opt-out`, which is what a script compares against. */
477
479
  function formatTelemetryStatusLines(status) {
478
480
  return [
479
- statusSummaryLine(status),
480
- `Config file: ${status.configPath}`,
481
- `Installation ID: ${status.installationIdStored ? "stored" : "not stored"}`
481
+ `enabled\t${status.enabled}`,
482
+ `reason\t${status.reason}`,
483
+ `config file\t${status.configPath}`,
484
+ `installation id stored\t${status.installationIdStored}`
482
485
  ];
483
486
  }
484
487
  function statusPresentations(status) {
@@ -502,8 +505,7 @@ function statusPresentations(status) {
502
505
  next: () => []
503
506
  };
504
507
  }
505
- /** One confirmation line, echoed on stdout, with the stored decision as
506
- * the json result. */
508
+ /** One confirmation line, with the stored decision as the json result. */
507
509
  function consentPresentations(line, json) {
508
510
  return {
509
511
  human: () => [{
@@ -511,7 +513,7 @@ function consentPresentations(line, json) {
511
513
  status: "ok",
512
514
  text: line
513
515
  }],
514
- stdout: () => [line],
516
+ stdout: noDataLines("Storing a preference has no data; telemetry status reports it."),
515
517
  json: () => json,
516
518
  next: () => []
517
519
  };
@@ -597,4 +599,4 @@ Telemetry is on by default (opt-out); see ${options.docsUrl}\nfor what is collec
597
599
  };
598
600
  }
599
601
  //#endregion
600
- export { EnvironmentCredentialManager, PRESENTED, PRISMA_CONFIG_VERSION, SERVICE_TOKEN_ENV_VAR, authServiceError, claimedExpiresAt, claimedIdentity, configSchema, createCli, credentialRejectedError, credentialWorkspaceId, credentialWorkspaceMismatchError, credentialsRequiredError, defineCommand, defineCommandFamily, defineConfigSection, definePrismaConfig, defineServerCommand, defineSessionCommand, detectCI, emptyServiceTokenError, exitWithChildStatus, flag, loadConfig, noSessionForWorkspaceError, positional, readActiveAccessToken, realpathOr, reference, resolveSectionOverChain, resolveSectionPath, telemetryCommandGroup, validateSectionWithSchema };
602
+ export { EnvironmentCredentialManager, PRESENTED, PRISMA_CONFIG_VERSION, SERVICE_TOKEN_ENV_VAR, authServiceError, claimedExpiresAt, claimedIdentity, configSchema, createCli, credentialRejectedError, credentialWorkspaceId, credentialWorkspaceMismatchError, credentialsRequiredError, defineCommand, defineCommandFamily, defineConfigSection, definePrismaConfig, defineServerCommand, defineSessionCommand, detectCI, emptyServiceTokenError, exitWithChildStatus, flag, loadConfig, noDataLines, noSessionForWorkspaceError, positional, readActiveAccessToken, realpathOr, reference, resolveSectionOverChain, resolveSectionPath, telemetryCommandGroup, validateSectionWithSchema };
@@ -1078,6 +1078,10 @@ interface Presentations {
1078
1078
  readonly json: () => unknown;
1079
1079
  readonly next: () => readonly NextAction[];
1080
1080
  }
1081
+ /** The `stdout` of a command whose only result is that it succeeded,
1082
+ * such as a delete. The reason says why the command has no data, where
1083
+ * its presentation is defined. */
1084
+ declare function noDataLines(_reason: string): () => readonly string[];
1081
1085
  /**
1082
1086
  * What happened: it selects the glyph (✔ ✘ ⚠ ℹ) and carries a default
1083
1087
  * Tone of the same name. Separate from Tone because a failure can be
@@ -1835,4 +1839,4 @@ interface TelemetryDeclaration {
1835
1839
  readonly docsUrl: string;
1836
1840
  }
1837
1841
  //#endregion
1838
- export { defineConfigSection as $, ManagementApiClientConfig as $t, StatementAnswer as A, PackageManagerRunResult as At, PresentedResult as B, positional as Bt, defineServerCommand as C, SpawnChild as Ct, OpenUrlOutcome as D, exitWithChildStatus as Dt, CommandContext as E, SpawnedChild as Et, Block as F, Char as Ft, TreeNode as G, CredentialManager as Gt, Status as H, ActiveCredential as Ht, Format as I, CommandArgs as It, Severity as J, Session as Jt, Ui as K, CredentialOrigin as Kt, Outcome as L, FlagSpec as Lt, StatementQuestion as M, PackageOperations as Mt, StatementSurface as N, Args as Nt, OpenUrlRequest as O, PackageManagerId as Ot, StatementsOptions as P, ArgsSpec as Pt, SectionValidation as Q, ManagementApiClient$1 as Qt, PRESENTED as R, PositionalSpec as Rt, defineCommand as S, ExitWithChildStatusOptions as St, BrowserWaitRequest as T, SpawnRequest as Tt, Text as U, Credential as Ut, Span as V, ActiveAccessTokenOptions as Vt, Tone as W, CredentialIdentity as Wt, StreamMeta as X, CredentialRefreshResult as Xt, StreamEvent as Y, StoredSessions as Yt, ConfigSection as Z, CredentialRefresher as Zt, ServerCommandDefinition as _, TelemetryPayload as _t, RedirectSpec as a, ResolvedSection as at, StatementSpec as b, ChildResult as bt, CommandDefinition as c, resolveSectionPath as ct, CommandNeeds as d, InputStream as dt, TokenStorage$1 as en, ConfigSchema as et, CompletedEnvelope as f, LoadedConfig as ft, NeedsSpec as g, Runtime as gt, HelpSpec as h, PRISMA_CONFIG_VERSION as ht, MountedTree as i, validateSectionWithSchema as it, StatementOptions as j, PackageManagerRunner as jt, PromptSurface as k, PackageManagerRunRequest as kt, CommandHandler as l, Host as lt, Handler as m, OutputStream as mt, CommandFamily as n, configSchema as nt, defineCommandFamily as o, SectionProvenance as ot, ErroredEnvelope as p, LoadedConfigFile as pt, EngineEvent as q, SERVICE_TOKEN_ENV_VAR as qt, CommandRedirect as r, reference as rt, AnyCommand as s, resolveSectionOverChain as st, TelemetryDeclaration as t, ConfigSchemaValue as tt, CommandHelp as u, HostProcess as ut, SessionCommandDefinition as v, EngineCommandSnapshot as vt, defineSessionCommand as w, SpawnOptions as wt, WorkflowStep as x, ChildStatusSettlement as xt, SpawnDeclarations as y, RunSummary as yt, Presentations as z, flag as zt };
1842
+ export { SectionValidation as $, ManagementApiClient$1 as $t, StatementAnswer as A, PackageManagerRunRequest as At, PresentedResult as B, flag as Bt, defineServerCommand as C, ExitWithChildStatusOptions as Ct, OpenUrlOutcome as D, SpawnedChild as Dt, CommandContext as E, SpawnRequest as Et, Block as F, ArgsSpec as Ft, TreeNode as G, CredentialIdentity as Gt, Status as H, ActiveAccessTokenOptions as Ht, Format as I, Char as It, EngineEvent as J, SERVICE_TOKEN_ENV_VAR as Jt, Ui as K, CredentialManager as Kt, Outcome as L, CommandArgs as Lt, StatementQuestion as M, PackageManagerRunner as Mt, StatementSurface as N, PackageOperations as Nt, OpenUrlRequest as O, exitWithChildStatus as Ot, StatementsOptions as P, Args as Pt, ConfigSection as Q, CredentialRefresher as Qt, PRESENTED as R, FlagSpec as Rt, defineCommand as S, ChildStatusSettlement as St, BrowserWaitRequest as T, SpawnOptions as Tt, Text as U, ActiveCredential as Ut, Span as V, positional as Vt, Tone as W, Credential as Wt, StreamEvent as X, StoredSessions as Xt, Severity as Y, Session as Yt, StreamMeta as Z, CredentialRefreshResult as Zt, ServerCommandDefinition as _, Runtime as _t, RedirectSpec as a, validateSectionWithSchema as at, StatementSpec as b, RunSummary as bt, CommandDefinition as c, resolveSectionOverChain as ct, CommandNeeds as d, HostProcess as dt, ManagementApiClientConfig as en, defineConfigSection as et, CompletedEnvelope as f, InputStream as ft, NeedsSpec as g, PRISMA_CONFIG_VERSION as gt, HelpSpec as h, OutputStream as ht, MountedTree as i, reference as it, StatementOptions as j, PackageManagerRunResult as jt, PromptSurface as k, PackageManagerId as kt, CommandHandler as l, resolveSectionPath as lt, Handler as m, LoadedConfigFile as mt, CommandFamily as n, ConfigSchemaValue as nt, defineCommandFamily as o, ResolvedSection as ot, ErroredEnvelope as p, LoadedConfig as pt, noDataLines as q, CredentialOrigin as qt, CommandRedirect as r, configSchema as rt, AnyCommand as s, SectionProvenance as st, TelemetryDeclaration as t, TokenStorage$1 as tn, ConfigSchema as tt, CommandHelp as u, Host as ut, SessionCommandDefinition as v, TelemetryPayload as vt, defineSessionCommand as w, SpawnChild as wt, WorkflowStep as x, ChildResult as xt, SpawnDeclarations as y, EngineCommandSnapshot as yt, Presentations as z, PositionalSpec as zt };
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $t as ManagementApiClientConfig, B as PresentedResult, Ct as SpawnChild, Gt as CredentialManager, Ht as ActiveCredential, Jt as Session, Ot as PackageManagerId, Qt as ManagementApiClient, Tt as SpawnRequest, Ut as Credential, Vt as ActiveAccessTokenOptions, Y as StreamEvent, Yt as StoredSessions, Zt as CredentialRefresher, _t as TelemetryPayload, bt as ChildResult, en as TokenStorage, gt as Runtime, i as MountedTree, jt as PackageManagerRunner, lt as Host, n as CommandFamily, q as EngineEvent, t as TelemetryDeclaration, x as WorkflowStep, yt as RunSummary } from "./report-CQ30sy_e.js";
1
+ import { $t as ManagementApiClient, B as PresentedResult, Et as SpawnRequest, Ht as ActiveAccessTokenOptions, J as EngineEvent, Kt as CredentialManager, Mt as PackageManagerRunner, Qt as CredentialRefresher, Ut as ActiveCredential, Wt as Credential, X as StreamEvent, Xt as StoredSessions, Yt as Session, _t as Runtime, bt as RunSummary, en as ManagementApiClientConfig, i as MountedTree, kt as PackageManagerId, n as CommandFamily, t as TelemetryDeclaration, tn as TokenStorage, ut as Host, vt as TelemetryPayload, wt as SpawnChild, x as WorkflowStep, xt as ChildResult } from "./report-C6k54wjM.js";
2
2
 
3
3
  //#region src/in-memory-credential-manager.d.ts
4
4
  /** A stored session with its credential material — what the manager
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as credentialWorkspaceId, D as credentialsRequiredError, E as credentialWorkspaceMismatchError, S as claimedIdentity, b as readActiveAccessToken, k as noSessionForWorkspaceError, t as buildEngine, x as claimedExpiresAt } from "./engine-BE7WKK2X.js";
1
+ import { A as noSessionForWorkspaceError, C as claimedIdentity, D as credentialWorkspaceMismatchError, O as credentialsRequiredError, S as claimedExpiresAt, t as buildEngine, w as credentialWorkspaceId, x as readActiveAccessToken } from "./engine-BBuDSD7p.js";
2
2
  import { Buffer } from "node:buffer";
3
3
  import { resolve } from "node:path";
4
4
  //#region src/in-memory-credential-manager.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-engine",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "The execution engine of the unified Prisma CLI.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -53,8 +53,8 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@prisma/management-api-sdk": "1.80.0",
56
- "@repo/cli-conformance": "8.0.0-rc.23-dev.152",
57
- "@repo/tsconfig": "8.0.0-rc.23-dev.152",
56
+ "@repo/cli-conformance": "8.0.0-rc.23-dev.153",
57
+ "@repo/tsconfig": "8.0.0-rc.23-dev.153",
58
58
  "@types/node": "^22.19.19",
59
59
  "ci-info": "^4.3.1",
60
60
  "tsdown": "^0.21.10",