@staff0rd/assist 0.816.1 → 0.818.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/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.816.1",
9
+ version: "0.818.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -16108,17 +16108,12 @@ function declaredNodeState(node, deployments, behindBySha2, run4) {
16108
16108
  deployedAt: deployment?.at ?? null,
16109
16109
  behind: deployment ? behindBySha2.get(deployment.commit.sha) ?? null : null,
16110
16110
  queued: queued?.commit ?? null,
16111
+ queuedRunUrl: queued?.runUrl ?? null,
16111
16112
  run: run4
16112
16113
  };
16113
16114
  }
16114
16115
 
16115
- // src/commands/sessions/web/releases/deploymentMaps.ts
16116
- var NOT_YET_LIVE_STATES = /* @__PURE__ */ new Set([
16117
- "WAITING",
16118
- "PENDING",
16119
- "QUEUED",
16120
- "IN_PROGRESS"
16121
- ]);
16116
+ // src/commands/sessions/web/releases/releaseCommit.ts
16122
16117
  function releaseCommit(sha, node) {
16123
16118
  return {
16124
16119
  sha,
@@ -16126,12 +16121,23 @@ function releaseCommit(sha, node) {
16126
16121
  author: node?.author?.name ?? null
16127
16122
  };
16128
16123
  }
16124
+
16125
+ // src/commands/sessions/web/releases/deploymentMaps.ts
16126
+ var NOT_YET_LIVE_STATES = /* @__PURE__ */ new Set([
16127
+ "WAITING",
16128
+ "PENDING",
16129
+ "QUEUED",
16130
+ "IN_PROGRESS"
16131
+ ]);
16129
16132
  function entryOf(node, sha) {
16130
16133
  return {
16131
16134
  commit: releaseCommit(sha, node.commit),
16132
16135
  at: node.latestStatus?.createdAt ?? node.createdAt
16133
16136
  };
16134
16137
  }
16138
+ function queuedEntryOf(node, sha) {
16139
+ return { ...entryOf(node, sha), runUrl: node.latestStatus?.logUrl ?? null };
16140
+ }
16135
16141
  function dropAlreadyLive(maps) {
16136
16142
  for (const [environment, entry] of maps.queued)
16137
16143
  if (maps.live.get(environment)?.commit.sha === entry.commit.sha)
@@ -16148,7 +16154,7 @@ function deploymentMaps(nodes) {
16148
16154
  live.set(node.environment, entryOf(node, node.commitOid));
16149
16155
  queued.delete(node.environment);
16150
16156
  } else if (NOT_YET_LIVE_STATES.has(state))
16151
- queued.set(node.environment, entryOf(node, node.commitOid));
16157
+ queued.set(node.environment, queuedEntryOf(node, node.commitOid));
16152
16158
  }
16153
16159
  return dropAlreadyLive({ live, queued });
16154
16160
  }
@@ -16161,7 +16167,7 @@ function deploymentsAlias(index2) {
16161
16167
  }
16162
16168
  function environmentDeployments(environment, index2) {
16163
16169
  return `${deploymentsAlias(index2)}: deployments(environments:${JSON.stringify([environment])}, last:${DEPLOYMENTS_PER_ENVIRONMENT}, orderBy:{field:CREATED_AT,direction:ASC}){
16164
- nodes{ environment createdAt commitOid commit{ ${COMMIT_FIELDS} } latestStatus{ state createdAt } }
16170
+ nodes{ environment createdAt commitOid commit{ ${COMMIT_FIELDS} } latestStatus{ state createdAt logUrl } }
16165
16171
  }`;
16166
16172
  }
16167
16173
  function deploymentsQuery(environments) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.816.1",
3
+ "version": "0.818.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {