deepline 0.3.110 → 0.3.111

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.
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
202
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
203
- version: '0.3.110',
203
+ version: '0.3.111',
204
204
  updateSummary:
205
205
  'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
206
206
  packageCapabilities: {
@@ -68,6 +68,7 @@ export type PlayDeploymentDoc = {
68
68
  results?: unknown;
69
69
  buildSeconds?: number;
70
70
  startedAt?: number;
71
+ promotedAt?: number;
71
72
  finishedAt?: number;
72
73
  error?: string;
73
74
  createdAt: number;
@@ -59,6 +59,8 @@ export type SerializedPlayDeployment = {
59
59
  error: string | null;
60
60
  createdAt: number;
61
61
  startedAt: number | null;
62
+ /** Set once the live-pointer flip committed; the status may still be in flight. */
63
+ promotedAt: number | null;
62
64
  finishedAt: number | null;
63
65
  };
64
66
 
@@ -82,6 +84,7 @@ export function serializePlayDeployment(
82
84
  error: deployment.error ?? null,
83
85
  createdAt: deployment.createdAt,
84
86
  startedAt: deployment.startedAt ?? null,
87
+ promotedAt: deployment.promotedAt ?? null,
85
88
  finishedAt: deployment.finishedAt ?? null,
86
89
  };
87
90
  }
package/dist/cli/index.js CHANGED
@@ -1298,7 +1298,7 @@ var SDK_RELEASE = {
1298
1298
  // getters keep their established compatibility behavior.
1299
1299
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1300
1300
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1301
- version: "0.3.110",
1301
+ version: "0.3.111",
1302
1302
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
1303
1303
  packageCapabilities: {
1304
1304
  updatePreferences: 1
@@ -37487,6 +37487,28 @@ async function handleDeploymentGet(id, options) {
37487
37487
  { json: options.json }
37488
37488
  );
37489
37489
  }
37490
+ async function handleDeploymentCancel(id, options) {
37491
+ const { http } = getAuthedHttpClient();
37492
+ const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
37493
+ printCommandEnvelope(
37494
+ {
37495
+ cancelled: payload.cancelled,
37496
+ deployment: payload.deployment,
37497
+ render: {
37498
+ sections: [
37499
+ {
37500
+ title: payload.cancelled ? "cancelled" : "already cancelled",
37501
+ lines: [
37502
+ payload.deployment ? renderDeployment(payload.deployment) : `Deployment ${id} cancelled.`,
37503
+ "The build stops at its next step and nothing from it goes live."
37504
+ ]
37505
+ }
37506
+ ]
37507
+ }
37508
+ },
37509
+ { json: options.json }
37510
+ );
37511
+ }
37490
37512
  function registerGitCommands(program) {
37491
37513
  const git = program.command("git", { hidden: !cliFeatureEnabled(GIT_DEPLOY_FEATURE) }).alias("projects").description(
37492
37514
  "Git deploys: link repositories to this workspace and deploy plays on push."
@@ -37501,6 +37523,7 @@ Examples:
37501
37523
  deepline git set <id> --branch release
37502
37524
  deepline git unlink <id>
37503
37525
  deepline git deployments --repo <id>
37526
+ deepline git cancel <deployment-id>
37504
37527
  `
37505
37528
  );
37506
37529
  git.command("connect").description("Connect a GitHub installation (browser step).").option("--json", "Emit JSON output").action(async (options) => handleConnect(options));
@@ -37541,6 +37564,11 @@ Examples:
37541
37564
  git.command("deployments").description("Deployment history; pass an id for one deployment.").argument("[id]", "Deployment id (omit to list)").option("--repo <id>", "Filter to one repository link").option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
37542
37565
  async (id, options) => id ? handleDeploymentGet(id, options) : handleDeploymentsList(options)
37543
37566
  );
37567
+ git.command("cancel").description(
37568
+ "Cancel a queued or running deployment before its plays go live (admin)."
37569
+ ).argument("<id>", "Deployment id").option("--json", "Emit JSON output").action(
37570
+ async (id, options) => handleDeploymentCancel(id, options)
37571
+ );
37544
37572
  const deployments = program.command("deployments", { hidden: true });
37545
37573
  deployments.command("list").option("--project <id>", "Filter to one repository link").option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
37546
37574
  async (options) => handleDeploymentsList({ ...options, repo: options.project })
@@ -1271,7 +1271,7 @@ var SDK_RELEASE = {
1271
1271
  // getters keep their established compatibility behavior.
1272
1272
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1273
1273
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1274
- version: "0.3.110",
1274
+ version: "0.3.111",
1275
1275
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
1276
1276
  packageCapabilities: {
1277
1277
  updatePreferences: 1
@@ -37550,6 +37550,28 @@ async function handleDeploymentGet(id, options) {
37550
37550
  { json: options.json }
37551
37551
  );
37552
37552
  }
37553
+ async function handleDeploymentCancel(id, options) {
37554
+ const { http } = getAuthedHttpClient();
37555
+ const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
37556
+ printCommandEnvelope(
37557
+ {
37558
+ cancelled: payload.cancelled,
37559
+ deployment: payload.deployment,
37560
+ render: {
37561
+ sections: [
37562
+ {
37563
+ title: payload.cancelled ? "cancelled" : "already cancelled",
37564
+ lines: [
37565
+ payload.deployment ? renderDeployment(payload.deployment) : `Deployment ${id} cancelled.`,
37566
+ "The build stops at its next step and nothing from it goes live."
37567
+ ]
37568
+ }
37569
+ ]
37570
+ }
37571
+ },
37572
+ { json: options.json }
37573
+ );
37574
+ }
37553
37575
  function registerGitCommands(program) {
37554
37576
  const git = program.command("git", { hidden: !cliFeatureEnabled(GIT_DEPLOY_FEATURE) }).alias("projects").description(
37555
37577
  "Git deploys: link repositories to this workspace and deploy plays on push."
@@ -37564,6 +37586,7 @@ Examples:
37564
37586
  deepline git set <id> --branch release
37565
37587
  deepline git unlink <id>
37566
37588
  deepline git deployments --repo <id>
37589
+ deepline git cancel <deployment-id>
37567
37590
  `
37568
37591
  );
37569
37592
  git.command("connect").description("Connect a GitHub installation (browser step).").option("--json", "Emit JSON output").action(async (options) => handleConnect(options));
@@ -37604,6 +37627,11 @@ Examples:
37604
37627
  git.command("deployments").description("Deployment history; pass an id for one deployment.").argument("[id]", "Deployment id (omit to list)").option("--repo <id>", "Filter to one repository link").option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
37605
37628
  async (id, options) => id ? handleDeploymentGet(id, options) : handleDeploymentsList(options)
37606
37629
  );
37630
+ git.command("cancel").description(
37631
+ "Cancel a queued or running deployment before its plays go live (admin)."
37632
+ ).argument("<id>", "Deployment id").option("--json", "Emit JSON output").action(
37633
+ async (id, options) => handleDeploymentCancel(id, options)
37634
+ );
37607
37635
  const deployments = program.command("deployments", { hidden: true });
37608
37636
  deployments.command("list").option("--project <id>", "Filter to one repository link").option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
37609
37637
  async (options) => handleDeploymentsList({ ...options, repo: options.project })
package/dist/index.js CHANGED
@@ -860,7 +860,7 @@ var SDK_RELEASE = {
860
860
  // getters keep their established compatibility behavior.
861
861
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
862
862
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
863
- version: "0.3.110",
863
+ version: "0.3.111",
864
864
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
865
865
  packageCapabilities: {
866
866
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
768
768
  // getters keep their established compatibility behavior.
769
769
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
770
770
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
771
- version: "0.3.110",
771
+ version: "0.3.111",
772
772
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
773
773
  packageCapabilities: {
774
774
  updatePreferences: 1
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.110";
152
+ readonly version: "0.3.111";
153
153
  readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.d.ts CHANGED
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.110";
152
+ readonly version: "0.3.111";
153
153
  readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.js CHANGED
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
74
74
  // getters keep their established compatibility behavior.
75
75
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
76
76
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
77
- version: "0.3.110",
77
+ version: "0.3.111",
78
78
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
79
79
  packageCapabilities: {
80
80
  updatePreferences: 1
package/dist/release.mjs CHANGED
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
48
48
  // getters keep their established compatibility behavior.
49
49
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
50
50
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
51
- version: "0.3.110",
51
+ version: "0.3.111",
52
52
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
53
53
  packageCapabilities: {
54
54
  updatePreferences: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.110",
3
+ "version": "0.3.111",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",