@corelayer-ai/cli 0.5.3 → 0.5.4

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.
@@ -125,6 +125,44 @@ function resolveGroupId(args, config) {
125
125
  }
126
126
  return groupId;
127
127
  }
128
+ const SAVED_CI_DESCRIPTIONS = {
129
+ waiting: "awaiting a result; running checks are not confirmed",
130
+ passed: "last recorded result passed",
131
+ failed: "last recorded result failed",
132
+ not_visible: "no successful workflow result recorded; checks may be absent or skipped",
133
+ timed_out: "tracking ended without a final result",
134
+ stopped: "tracking stopped",
135
+ };
136
+ function printIssueFixRecords(issue) {
137
+ process.stdout.write("\nSandbox runs (saved records):\n");
138
+ if (!issue.pullRequestActions) {
139
+ process.stdout.write(" Sandbox records were not included in this response.\n");
140
+ }
141
+ else if (issue.pullRequestActions.length === 0) {
142
+ process.stdout.write(" No recorded sandbox runs.\n");
143
+ }
144
+ else {
145
+ for (const action of issue.pullRequestActions) {
146
+ const step = action.stepNumber === null ? "No step" : `Step ${action.stepNumber}`;
147
+ process.stdout.write(` ${step} · ${action.status} · ${action.repoUrl}\n`);
148
+ process.stdout.write(` Action: ${action.id}\n`);
149
+ process.stdout.write(` PR: ${action.createdPrUrl || "No recorded PR URL"}\n`);
150
+ const ciState = action.referenceJson?.ci?.state;
151
+ const ciDescription = ciState ? SAVED_CI_DESCRIPTIONS[ciState] : null;
152
+ process.stdout.write(` Saved CI: ${ciState || "unavailable"}${ciDescription ? ` — ${ciDescription}` : ""}\n`);
153
+ if (action.errorMessage)
154
+ process.stdout.write(` Run error: ${action.errorMessage}\n`);
155
+ if (action.updatedAt)
156
+ process.stdout.write(` Record updated: ${formatDate(action.updatedAt)}\n`);
157
+ }
158
+ process.stdout.write(" These records do not fetch live checks or verify deployment or recovery.\n");
159
+ }
160
+ if (issue.fixVerification !== undefined) {
161
+ process.stdout.write(issue.fixVerification
162
+ ? `\nVerification (saved): ${issue.fixVerification.status}\n`
163
+ : "\nNo saved verification record.\n");
164
+ }
165
+ }
128
166
  async function runGetIssue(client, commandArgs, ctx) {
129
167
  const issueIdentifier = commandArgs[0];
130
168
  if (!issueIdentifier) {
@@ -141,6 +179,7 @@ async function runGetIssue(client, commandArgs, ctx) {
141
179
  process.stdout.write(`Created: ${formatDate(issue.createdAt || issue.created_at)}\n`);
142
180
  process.stdout.write(`Last seen: ${formatDate(issue.lastSeenAt || issue.last_seen_at)}\n`);
143
181
  process.stdout.write(`Events: ${issue.event_count || 0}\n`);
182
+ printIssueFixRecords(issue);
144
183
  if (issue.whatHappened) {
145
184
  process.stdout.write(`\nWhat happened:\n${issue.whatHappened}\n`);
146
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corelayer-ai/cli",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Corelayer CLI",
5
5
  "type": "module",
6
6
  "bin": {