veryfront 0.1.1166 → 0.1.1167
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/esm/cli/app/views/dashboard.d.ts.map +1 -1
- package/esm/cli/app/views/dashboard.js +8 -35
- package/esm/cli/app/views/startup.d.ts +1 -8
- package/esm/cli/app/views/startup.d.ts.map +1 -1
- package/esm/cli/app/views/startup.js +16 -52
- package/esm/cli/auth/login.d.ts.map +1 -1
- package/esm/cli/auth/login.js +13 -8
- package/esm/cli/commands/build/config-display.d.ts.map +1 -1
- package/esm/cli/commands/build/config-display.js +20 -21
- package/esm/cli/commands/build/error-handler.d.ts.map +1 -1
- package/esm/cli/commands/build/error-handler.js +8 -15
- package/esm/cli/commands/build/handler.js +9 -12
- package/esm/cli/commands/build/stats-display.d.ts.map +1 -1
- package/esm/cli/commands/build/stats-display.js +9 -22
- package/esm/cli/commands/config/handler.d.ts.map +1 -1
- package/esm/cli/commands/config/handler.js +23 -4
- package/esm/cli/commands/demo/demo.d.ts +4 -0
- package/esm/cli/commands/demo/demo.d.ts.map +1 -1
- package/esm/cli/commands/demo/demo.js +30 -16
- package/esm/cli/commands/deploy/command-help.d.ts.map +1 -1
- package/esm/cli/commands/deploy/command-help.js +5 -10
- package/esm/cli/commands/deploy/command.d.ts +25 -3
- package/esm/cli/commands/deploy/command.d.ts.map +1 -1
- package/esm/cli/commands/deploy/command.js +202 -137
- package/esm/cli/commands/deploy/index.d.ts +2 -2
- package/esm/cli/commands/deploy/index.d.ts.map +1 -1
- package/esm/cli/commands/deploy/index.js +1 -1
- package/esm/cli/commands/dev/command.d.ts.map +1 -1
- package/esm/cli/commands/dev/command.js +10 -21
- package/esm/cli/commands/dev/handler.d.ts.map +1 -1
- package/esm/cli/commands/dev/handler.js +2 -0
- package/esm/cli/commands/doctor/index.js +2 -2
- package/esm/cli/commands/eval/command.d.ts +10 -0
- package/esm/cli/commands/eval/command.d.ts.map +1 -1
- package/esm/cli/commands/eval/command.js +2 -3
- package/esm/cli/commands/generate/integration-generator.d.ts.map +1 -1
- package/esm/cli/commands/generate/integration-generator.js +2 -1
- package/esm/cli/commands/init/init-command.d.ts +5 -1
- package/esm/cli/commands/init/init-command.d.ts.map +1 -1
- package/esm/cli/commands/init/init-command.js +89 -79
- package/esm/cli/commands/init/interactive-wizard.d.ts +1 -0
- package/esm/cli/commands/init/interactive-wizard.d.ts.map +1 -1
- package/esm/cli/commands/init/interactive-wizard.js +17 -31
- package/esm/cli/commands/init/types.d.ts +2 -0
- package/esm/cli/commands/init/types.d.ts.map +1 -1
- package/esm/cli/commands/install/install.js +1 -1
- package/esm/cli/commands/install/uninstall.js +1 -1
- package/esm/cli/commands/push/command-help.d.ts.map +1 -1
- package/esm/cli/commands/push/command-help.js +6 -15
- package/esm/cli/commands/push/command.d.ts +12 -6
- package/esm/cli/commands/push/command.d.ts.map +1 -1
- package/esm/cli/commands/push/command.js +203 -93
- package/esm/cli/commands/start/command.d.ts +1 -0
- package/esm/cli/commands/start/command.d.ts.map +1 -1
- package/esm/cli/commands/start/command.js +8 -8
- package/esm/cli/commands/studio/command.js +2 -2
- package/esm/cli/commands/up/command-help.d.ts.map +1 -1
- package/esm/cli/commands/up/command-help.js +5 -6
- package/esm/cli/commands/up/command.d.ts.map +1 -1
- package/esm/cli/commands/up/command.js +107 -46
- package/esm/cli/help/formatters.d.ts +0 -1
- package/esm/cli/help/formatters.d.ts.map +1 -1
- package/esm/cli/help/formatters.js +2 -38
- package/esm/cli/help/index.d.ts +0 -1
- package/esm/cli/help/index.d.ts.map +1 -1
- package/esm/cli/help/index.js +0 -1
- package/esm/cli/help/main-help.d.ts.map +1 -1
- package/esm/cli/help/main-help.js +12 -2
- package/esm/cli/help/tips.d.ts +0 -2
- package/esm/cli/help/tips.d.ts.map +1 -1
- package/esm/cli/help/tips.js +1 -13
- package/esm/cli/mcp/tools/deploy-tool.d.ts.map +1 -1
- package/esm/cli/mcp/tools/deploy-tool.js +0 -1
- package/esm/cli/router.d.ts.map +1 -1
- package/esm/cli/router.js +7 -4
- package/esm/cli/shared/args.d.ts.map +1 -1
- package/esm/cli/shared/args.js +3 -1
- package/esm/cli/shared/config.d.ts +11 -0
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +33 -11
- package/esm/cli/shared/deployment-provenance.d.ts +1 -1
- package/esm/cli/shared/deployment-provenance.d.ts.map +1 -1
- package/esm/cli/shared/deployment-provenance.js +13 -9
- package/esm/cli/shared/project-link.d.ts +14 -0
- package/esm/cli/shared/project-link.d.ts.map +1 -0
- package/esm/cli/shared/project-link.js +147 -0
- package/esm/cli/shared/project-source-context.d.ts.map +1 -1
- package/esm/cli/shared/project-source-context.js +2 -3
- package/esm/cli/shared/runtime-auth.d.ts +3 -3
- package/esm/cli/shared/runtime-auth.d.ts.map +1 -1
- package/esm/cli/shared/runtime-auth.js +18 -7
- package/esm/cli/shared/server-startup.d.ts +4 -3
- package/esm/cli/shared/server-startup.d.ts.map +1 -1
- package/esm/cli/shared/server-startup.js +9 -4
- package/esm/cli/shared/types.d.ts +1 -0
- package/esm/cli/shared/types.d.ts.map +1 -1
- package/esm/cli/templates/manifest.js +7 -7
- package/esm/cli/ui/colors.d.ts.map +1 -1
- package/esm/cli/ui/colors.js +10 -5
- package/esm/cli/ui/components/multi-select.js +1 -1
- package/esm/cli/ui/components/table.js +3 -3
- package/esm/cli/ui/progress.js +5 -5
- package/esm/cli/ui/tui.js +1 -1
- package/esm/cli/utils/env-prompt.d.ts.map +1 -1
- package/esm/cli/utils/env-prompt.js +3 -1
- package/esm/cli/utils/index.d.ts.map +1 -1
- package/esm/cli/utils/index.js +17 -14
- package/esm/cli/utils/terminal-select.d.ts +7 -2
- package/esm/cli/utils/terminal-select.d.ts.map +1 -1
- package/esm/cli/utils/terminal-select.js +21 -10
- package/esm/deno.js +1 -1
- package/esm/extensions/ext-bundler-esbuild/src/index.js +1 -1
- package/esm/extensions/ext-eval-report-mlflow/src/index.js +1 -1
- package/esm/extensions/ext-llm-anthropic/src/index.js +1 -1
- package/esm/extensions/ext-llm-google/src/index.js +1 -1
- package/esm/extensions/ext-llm-openai/src/index.js +1 -1
- package/esm/extensions/ext-schema-zod/src/index.js +1 -1
- package/esm/src/agent/ag-ui/runtime-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/runtime-support.js +17 -1
- package/esm/src/agent/hosted/chat-request.d.ts.map +1 -1
- package/esm/src/agent/hosted/chat-request.js +40 -1
- package/esm/src/agent/runtime/ag-ui-contract.d.ts +76 -0
- package/esm/src/agent/runtime/ag-ui-contract.d.ts.map +1 -1
- package/esm/src/agent/runtime/ag-ui-contract.js +23 -0
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +7 -6
- package/esm/src/agent/runtime/message-adapter.d.ts +18 -18
- package/esm/src/agent/runtime/message-adapter.d.ts.map +1 -1
- package/esm/src/agent/runtime/message-adapter.js +18 -4
- package/esm/src/agent/schemas/agent.schema.d.ts +40 -0
- package/esm/src/agent/schemas/agent.schema.d.ts.map +1 -1
- package/esm/src/agent/schemas/agent.schema.js +9 -0
- package/esm/src/cache/module-cache.js +1 -1
- package/esm/src/config/loader.js +1 -1
- package/esm/src/errors/middleware/cli-error-boundary.d.ts +5 -1
- package/esm/src/errors/middleware/cli-error-boundary.d.ts.map +1 -1
- package/esm/src/errors/middleware/cli-error-boundary.js +26 -64
- package/esm/src/extensions/builtin-extensions.js +1 -1
- package/esm/src/extensions/capabilities.js +1 -1
- package/esm/src/extensions/loader.js +1 -1
- package/esm/src/internal-agents/schema.d.ts +76 -0
- package/esm/src/internal-agents/schema.d.ts.map +1 -1
- package/esm/src/internal-agents/schema.js +28 -0
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +14 -10
- package/esm/src/platform/compat/stdin.d.ts +20 -0
- package/esm/src/platform/compat/stdin.d.ts.map +1 -1
- package/esm/src/platform/compat/stdin.js +78 -44
- package/esm/src/platform/index.d.ts +1 -1
- package/esm/src/platform/index.d.ts.map +1 -1
- package/esm/src/platform/index.js +1 -1
- package/esm/src/routing/api/module-loader/loader.js +2 -2
- package/esm/src/security/http/config.d.ts.map +1 -1
- package/esm/src/security/http/config.js +3 -2
- package/esm/src/server/handlers/preview/hmr.handler.js +2 -2
- package/esm/src/server/handlers/request/api/project-discovery.js +2 -2
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +1 -4
- package/esm/src/server/runtime-handler/request-lifecycle.d.ts +1 -1
- package/esm/src/server/runtime-handler/request-lifecycle.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/request-lifecycle.js +2 -2
- package/esm/src/server/runtime-handler/request-tracker.d.ts +3 -2
- package/esm/src/server/runtime-handler/request-tracker.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/request-tracker.js +31 -7
- package/esm/src/tool/factory.js +1 -1
- package/esm/src/tool/registry.js +1 -1
- package/esm/src/transforms/esm/transform-cache.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +5 -5
- package/esm/cli/help/logo.d.ts +0 -2
- package/esm/cli/help/logo.d.ts.map +0 -1
- package/esm/cli/help/logo.js +0 -4
|
@@ -11,13 +11,15 @@ import { exitProcess, isTTY } from "../../utils/index.js";
|
|
|
11
11
|
import { createOAuthAuthorizationUrl, createOAuthState, readToken, saveToken, validateToken, } from "../../auth/index.js";
|
|
12
12
|
import { canOpenBrowser, openBrowser } from "../../auth/browser.js";
|
|
13
13
|
import { getCallbackUrl, startCallbackServer } from "../../auth/callback-server.js";
|
|
14
|
-
import { DEFAULT_CALLBACK_PORT, DEFAULT_LOGIN_TIMEOUT_MS } from "../../shared/constants.js";
|
|
14
|
+
import { DEFAULT_CALLBACK_PORT, DEFAULT_LOGIN_TIMEOUT_MS, resolveCliApiUrl, } from "../../shared/constants.js";
|
|
15
15
|
import { initCommand } from "../init/index.js";
|
|
16
|
-
import {
|
|
16
|
+
import { writeProjectLink } from "../../shared/project-link.js";
|
|
17
17
|
import { randomSuffix } from "../../shared/slug.js";
|
|
18
18
|
import { deployCommand } from "../deploy/index.js";
|
|
19
19
|
import { pushCommand } from "../push/index.js";
|
|
20
20
|
import { devCommand } from "../dev/index.js";
|
|
21
|
+
import { createApiClient } from "../../shared/config.js";
|
|
22
|
+
import { getProjectTarget } from "../../shared/deployment-provenance.js";
|
|
21
23
|
import { reserveProjectSlug } from "../../shared/reserve-slug.js";
|
|
22
24
|
import { DEMO_STEPS } from "./steps.js";
|
|
23
25
|
// ANSI escape codes
|
|
@@ -36,6 +38,16 @@ const AUTH_OPTIONS = [
|
|
|
36
38
|
{ id: "microsoft", label: "Microsoft" },
|
|
37
39
|
{ id: "token", label: "API Token" },
|
|
38
40
|
];
|
|
41
|
+
export async function resolveDemoReservedProject(reserveResult, token, client = createApiClient({
|
|
42
|
+
apiUrl: resolveCliApiUrl(),
|
|
43
|
+
apiToken: token,
|
|
44
|
+
projectSlug: reserveResult.slug,
|
|
45
|
+
})) {
|
|
46
|
+
if (reserveResult.projectId) {
|
|
47
|
+
return { id: reserveResult.projectId, slug: reserveResult.slug };
|
|
48
|
+
}
|
|
49
|
+
return getProjectTarget(client, reserveResult.slug);
|
|
50
|
+
}
|
|
39
51
|
function clearCountdownLine() {
|
|
40
52
|
write(`\r ${" ".repeat(30)}\r`);
|
|
41
53
|
}
|
|
@@ -137,7 +149,7 @@ async function demoLogin(preselectedMethod) {
|
|
|
137
149
|
}
|
|
138
150
|
await saveToken(tokenInput);
|
|
139
151
|
console.log();
|
|
140
|
-
console.log(`
|
|
152
|
+
console.log(` ✓ Logged in as ${brand(userInfo.email)}`);
|
|
141
153
|
return true;
|
|
142
154
|
}
|
|
143
155
|
if (!canOpenBrowser()) {
|
|
@@ -181,7 +193,7 @@ async function demoLogin(preselectedMethod) {
|
|
|
181
193
|
}
|
|
182
194
|
await saveToken(result.token);
|
|
183
195
|
console.log();
|
|
184
|
-
console.log(`
|
|
196
|
+
console.log(` ✓ Logged in as ${brand(userInfo.email)}`);
|
|
185
197
|
return true;
|
|
186
198
|
}
|
|
187
199
|
catch (e) {
|
|
@@ -256,7 +268,7 @@ async function executeStepAction(step, projectName, loginMethod) {
|
|
|
256
268
|
const userInfo = await validateToken(existingToken);
|
|
257
269
|
if (userInfo) {
|
|
258
270
|
console.log();
|
|
259
|
-
console.log(`
|
|
271
|
+
console.log(` ✓ Already logged in as ${brand(userInfo.email)}`);
|
|
260
272
|
return;
|
|
261
273
|
}
|
|
262
274
|
}
|
|
@@ -274,7 +286,6 @@ async function executeStepAction(step, projectName, loginMethod) {
|
|
|
274
286
|
});
|
|
275
287
|
const projectDir = join(cwd(), projectName);
|
|
276
288
|
const slug = `${projectName}-${randomSuffix()}`;
|
|
277
|
-
await writeProjectSlug(projectDir, slug);
|
|
278
289
|
actualProjectSlug = slug;
|
|
279
290
|
const token = await readToken();
|
|
280
291
|
if (!token)
|
|
@@ -283,11 +294,14 @@ async function executeStepAction(step, projectName, loginMethod) {
|
|
|
283
294
|
console.log(` ${dim("Registering project...")}`);
|
|
284
295
|
try {
|
|
285
296
|
const reserveResult = await reserveProjectSlug(slug, token);
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
297
|
+
const project = await resolveDemoReservedProject(reserveResult, token);
|
|
298
|
+
await writeProjectLink(projectDir, {
|
|
299
|
+
controlPlane: resolveCliApiUrl(),
|
|
300
|
+
projectId: project.id,
|
|
301
|
+
projectSlug: project.slug,
|
|
302
|
+
});
|
|
303
|
+
actualProjectSlug = project.slug;
|
|
304
|
+
console.log(" ✓ Project registered");
|
|
291
305
|
console.log(` ${dim("Pushing code...")}`);
|
|
292
306
|
chdir(projectDir);
|
|
293
307
|
await pushCommand({
|
|
@@ -297,7 +311,7 @@ async function executeStepAction(step, projectName, loginMethod) {
|
|
|
297
311
|
dryRun: false,
|
|
298
312
|
quiet: true,
|
|
299
313
|
});
|
|
300
|
-
console.log(
|
|
314
|
+
console.log(" ✓ Code pushed");
|
|
301
315
|
}
|
|
302
316
|
catch (e) {
|
|
303
317
|
console.log(` ${error("✗")} ${e instanceof Error ? e.message : String(e)}`);
|
|
@@ -310,7 +324,7 @@ async function executeStepAction(step, projectName, loginMethod) {
|
|
|
310
324
|
console.log();
|
|
311
325
|
console.log(` ${dim("Skipping dev server in auto mode...")}`);
|
|
312
326
|
console.log();
|
|
313
|
-
console.log(
|
|
327
|
+
console.log(" ✓ Dev server skipped");
|
|
314
328
|
return;
|
|
315
329
|
}
|
|
316
330
|
console.log();
|
|
@@ -345,7 +359,7 @@ async function executeStepAction(step, projectName, loginMethod) {
|
|
|
345
359
|
}
|
|
346
360
|
await delay(500);
|
|
347
361
|
console.log();
|
|
348
|
-
console.log(
|
|
362
|
+
console.log(" ✓ Dev server stopped");
|
|
349
363
|
return;
|
|
350
364
|
}
|
|
351
365
|
case "deploy": {
|
|
@@ -360,7 +374,7 @@ async function executeStepAction(step, projectName, loginMethod) {
|
|
|
360
374
|
dryRun: false,
|
|
361
375
|
});
|
|
362
376
|
const deployedUrl = `https://${actualProjectSlug ?? projectName}.production.veryfront.com`;
|
|
363
|
-
console.log(`
|
|
377
|
+
console.log(` ✓ Deployed to ${brand(deployedUrl)}`);
|
|
364
378
|
}
|
|
365
379
|
catch (e) {
|
|
366
380
|
console.log(` ${error("✗")} Deploy failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
@@ -395,7 +409,7 @@ function renderProgress(currentStepIndex, steps) {
|
|
|
395
409
|
const duration = getStepDuration(step.id);
|
|
396
410
|
if (i < currentStepIndex) {
|
|
397
411
|
const durationText = duration ? dim(` (${formatDuration(duration)})`) : "";
|
|
398
|
-
lines.push(`
|
|
412
|
+
lines.push(` ✓ ${dim(step.title) + durationText}`);
|
|
399
413
|
continue;
|
|
400
414
|
}
|
|
401
415
|
if (i === currentStepIndex) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,UAAU,EAAE,WAyCxB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const deployHelp = {
|
|
2
2
|
name: "deploy",
|
|
3
3
|
category: "deploy",
|
|
4
|
-
description: "
|
|
4
|
+
description: "Promote a branch to an environment",
|
|
5
5
|
usage: "veryfront deploy [options]",
|
|
6
6
|
options: [
|
|
7
7
|
{
|
|
@@ -9,17 +9,13 @@ export const deployHelp = {
|
|
|
9
9
|
description: "Branch to release from (default: main)",
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
flag: "--env <name>",
|
|
12
|
+
flag: "-e, --env, --environment <name>",
|
|
13
13
|
description: "Environment to deploy to (default: production)",
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
flag: "--release-name <name>",
|
|
17
17
|
description: "Custom release name (auto-generated if omitted)",
|
|
18
18
|
},
|
|
19
|
-
{
|
|
20
|
-
flag: "-f, --force",
|
|
21
|
-
description: "Skip confirmation for compatibility (prefer global --yes)",
|
|
22
|
-
},
|
|
23
19
|
{
|
|
24
20
|
flag: "--dry-run",
|
|
25
21
|
description: "Preview without executing",
|
|
@@ -31,16 +27,15 @@ export const deployHelp = {
|
|
|
31
27
|
],
|
|
32
28
|
examples: [
|
|
33
29
|
"veryfront deploy",
|
|
34
|
-
"veryfront deploy --
|
|
35
|
-
"veryfront deploy --branch feature-x --
|
|
30
|
+
"veryfront deploy --environment staging",
|
|
31
|
+
"veryfront deploy --branch feature-x --environment staging",
|
|
36
32
|
"veryfront deploy --release-name v1.2.0",
|
|
37
|
-
"veryfront deploy --branch main --env production --yes",
|
|
38
33
|
"veryfront deploy --dry-run",
|
|
39
34
|
],
|
|
40
35
|
notes: [
|
|
41
36
|
"Requires VERYFRONT_API_TOKEN or an authenticated Veryfront login",
|
|
42
37
|
"Creates or links a project when veryfront.json is not present",
|
|
43
|
-
"Pushes
|
|
38
|
+
"Pushes the selected branch before creating the release",
|
|
44
39
|
"Creates a new release from the specified branch",
|
|
45
40
|
"Verifies the target environment points to the created deployment before succeeding",
|
|
46
41
|
],
|
|
@@ -19,6 +19,7 @@ export declare const getDeployArgsSchema: () => import("../../../src/internal-ag
|
|
|
19
19
|
env: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
20
20
|
releaseName: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
21
21
|
dryRun: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
22
|
+
/** Deprecated compatibility flag; invoking deploy already authorizes the operation. */
|
|
22
23
|
force: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
23
24
|
/** Quiet mode - suppress spinner/progress output */
|
|
24
25
|
quiet: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
@@ -31,6 +32,7 @@ export declare const DeployArgsSchema: import("../../../src/internal-agents/sche
|
|
|
31
32
|
env: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
32
33
|
releaseName: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
33
34
|
dryRun: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
35
|
+
/** Deprecated compatibility flag; invoking deploy already authorizes the operation. */
|
|
34
36
|
force: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
35
37
|
/** Quiet mode - suppress spinner/progress output */
|
|
36
38
|
quiet: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
@@ -43,6 +45,8 @@ export declare const DeployArgsSchema: import("../../../src/internal-agents/sche
|
|
|
43
45
|
type ParsedDeployOptions = InferSchema<ReturnType<typeof getDeployArgsSchema>>;
|
|
44
46
|
export type DeployOptions = Omit<ParsedDeployOptions, "skipSourcePush"> & {
|
|
45
47
|
skipSourcePush?: boolean;
|
|
48
|
+
/** Internal composition control for parent commands that own the JSON result. */
|
|
49
|
+
suppressJsonOutput?: boolean;
|
|
46
50
|
assetManifestPollIntervalMs?: number;
|
|
47
51
|
assetManifestTimeoutMs?: number;
|
|
48
52
|
environmentPollIntervalMs?: number;
|
|
@@ -57,13 +61,13 @@ export declare const parseDeployArgs: (args: import("../../shared/types.js").Par
|
|
|
57
61
|
env: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
58
62
|
releaseName: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
59
63
|
dryRun: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
64
|
+
/** Deprecated compatibility flag; invoking deploy already authorizes the operation. */
|
|
60
65
|
force: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
61
66
|
/** Quiet mode - suppress spinner/progress output */
|
|
62
67
|
quiet: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
63
68
|
/** Internal option used by commands that already pushed source. */
|
|
64
69
|
skipSourcePush: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
65
70
|
}>>;
|
|
66
|
-
export declare function requiresExplicitDeployConfirmation(force: boolean): boolean;
|
|
67
71
|
/**
|
|
68
72
|
* Environment from the API
|
|
69
73
|
*/
|
|
@@ -128,6 +132,25 @@ export interface DeploymentVerification {
|
|
|
128
132
|
commitSha: string | null;
|
|
129
133
|
sourceDigest: string;
|
|
130
134
|
}
|
|
135
|
+
export interface DeployResult {
|
|
136
|
+
projectId: string;
|
|
137
|
+
projectSlug: string;
|
|
138
|
+
release: {
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
version: string;
|
|
142
|
+
};
|
|
143
|
+
environment: string;
|
|
144
|
+
environmentId: string;
|
|
145
|
+
deploymentId: string;
|
|
146
|
+
url: string;
|
|
147
|
+
protected: boolean;
|
|
148
|
+
routingConvergence: DeploymentRoutingConvergence | null;
|
|
149
|
+
commitSha: string | null;
|
|
150
|
+
sourceDigest: string;
|
|
151
|
+
controlPlane: string;
|
|
152
|
+
branch: string;
|
|
153
|
+
}
|
|
131
154
|
export interface ReleaseSourceVerification {
|
|
132
155
|
projectId: string;
|
|
133
156
|
releaseId: string;
|
|
@@ -205,7 +228,6 @@ export declare function resolvePushedSource(input: {
|
|
|
205
228
|
projectId: string;
|
|
206
229
|
projectSlug: string;
|
|
207
230
|
branch: string;
|
|
208
|
-
requireClean: boolean;
|
|
209
231
|
}): Promise<{
|
|
210
232
|
commitSha: string | null;
|
|
211
233
|
sourceDigest: string;
|
|
@@ -219,6 +241,6 @@ export declare function waitForReleaseAssetManifest(client: ApiClient, projectSl
|
|
|
219
241
|
/**
|
|
220
242
|
* Create a release and deploy to an environment
|
|
221
243
|
*/
|
|
222
|
-
export declare function deployCommand(options: DeployOptions): Promise<
|
|
244
|
+
export declare function deployCommand(options: DeployOptions): Promise<DeployResult | null>;
|
|
223
245
|
export {};
|
|
224
246
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAI3E,OAAO,EACL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAI3E,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,wBAAwB,CAAC;AAShC,OAAO,EAIL,KAAK,aAAa,EAMnB,MAAM,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