@staff0rd/assist 0.816.0 → 0.817.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 +1 -1
- package/claude/commands/verify.md +2 -0
- package/dist/commands/sessions/web/bundle.js +370 -370
- package/dist/index.js +21 -11
- package/package.json +1 -1
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.
|
|
9
|
+
version: "0.817.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/
|
|
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,
|
|
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) {
|
|
@@ -41262,7 +41268,11 @@ function registerVerify(program2) {
|
|
|
41262
41268
|
"Write scripts to package.json instead of assist.yml"
|
|
41263
41269
|
).action(init3);
|
|
41264
41270
|
registerVerifyChecks(verifyCommand);
|
|
41265
|
-
configHelp(
|
|
41271
|
+
configHelp(
|
|
41272
|
+
verifyCommand,
|
|
41273
|
+
verifyConfigHelp,
|
|
41274
|
+
"Following MakerXStudio/verify's convention, a verify:<name> / verify:<name>:fix pair runs once: fix mode runs the :fix variant (or verify:<name> when there is none), check mode runs only verify:<name> and skips a :fix with no base. VERIFY_MODE=check|fix picks the mode; otherwise a truthy CI means check, else fix."
|
|
41275
|
+
);
|
|
41266
41276
|
}
|
|
41267
41277
|
|
|
41268
41278
|
// src/commands/watch/simulateDivergence.ts
|