@vellumai/cli 0.5.8 → 0.5.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/cli",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "CLI tools for vellum-assistant",
5
5
  "type": "module",
6
6
  "exports": {
@@ -173,21 +173,7 @@ async function rollbackPlatformViaEndpoint(
173
173
  }
174
174
  }
175
175
 
176
- // Step 2 — Workspace commit (starting)
177
- await commitWorkspaceViaGateway(
178
- entry.runtimeUrl,
179
- entry.assistantId,
180
- buildUpgradeCommitMessage({
181
- action: "rollback",
182
- phase: "starting",
183
- from: currentVersion ?? "unknown",
184
- to: version ?? "previous",
185
- topology: "managed",
186
- assistantId: entry.assistantId,
187
- }),
188
- );
189
-
190
- // Step 3 — Authenticate
176
+ // Step 2 — Authenticate
191
177
  const token = readPlatformToken();
192
178
  if (!token) {
193
179
  const msg =
@@ -211,15 +197,7 @@ async function rollbackPlatformViaEndpoint(
211
197
  process.exit(1);
212
198
  }
213
199
 
214
- // Step 4Broadcast starting event
215
- console.log("📢 Notifying connected clients...");
216
- await broadcastUpgradeEvent(
217
- entry.runtimeUrl,
218
- entry.assistantId,
219
- buildStartingEvent(version ?? "previous", 90),
220
- );
221
-
222
- // Step 5 — Call rollback endpoint
200
+ // Step 3Call rollback endpoint
223
201
  if (version) {
224
202
  console.log(`Rolling back to ${version}...`);
225
203
  } else {
@@ -270,22 +248,7 @@ async function rollbackPlatformViaEndpoint(
270
248
 
271
249
  const rolledBackVersion = result.version ?? version ?? "unknown";
272
250
 
273
- // Step 6Workspace commit (complete)
274
- await commitWorkspaceViaGateway(
275
- entry.runtimeUrl,
276
- entry.assistantId,
277
- buildUpgradeCommitMessage({
278
- action: "rollback",
279
- phase: "complete",
280
- from: currentVersion ?? "unknown",
281
- to: rolledBackVersion,
282
- topology: "managed",
283
- assistantId: entry.assistantId,
284
- result: "success",
285
- }),
286
- );
287
-
288
- // Step 7 — Print success
251
+ // Step 4Print success
289
252
  console.log(`Rolled back to version ${rolledBackVersion}.`);
290
253
  if (!version) {
291
254
  console.log("Tip: Run 'vellum rollback' again to undo.");
@@ -716,20 +716,6 @@ async function upgradePlatform(
716
716
  }
717
717
  }
718
718
 
719
- // Record version transition start in workspace git history
720
- await commitWorkspaceViaGateway(
721
- entry.runtimeUrl,
722
- entry.assistantId,
723
- buildUpgradeCommitMessage({
724
- action: "upgrade",
725
- phase: "starting",
726
- from: entry.serviceGroupVersion ?? "unknown",
727
- to: version ?? "latest",
728
- topology: "managed",
729
- assistantId: entry.assistantId,
730
- }),
731
- );
732
-
733
719
  console.log(
734
720
  `🔄 Upgrading platform-hosted assistant '${entry.assistantId}'...\n`,
735
721
  );
@@ -753,15 +739,6 @@ async function upgradePlatform(
753
739
  body.version = version;
754
740
  }
755
741
 
756
- // Notify connected clients that an upgrade is about to begin.
757
- const targetVersion = version ?? `v${cliPkg.version}`;
758
- console.log("📢 Notifying connected clients...");
759
- await broadcastUpgradeEvent(
760
- entry.runtimeUrl,
761
- entry.assistantId,
762
- buildStartingEvent(targetVersion, 90),
763
- );
764
-
765
742
  const response = await fetch(url, {
766
743
  method: "POST",
767
744
  headers: {
@@ -799,21 +776,6 @@ async function upgradePlatform(
799
776
  // version-change detection (DaemonConnection.swift) once the new
800
777
  // version actually appears after the platform restarts the service group.
801
778
 
802
- // Record successful upgrade in workspace git history
803
- await commitWorkspaceViaGateway(
804
- entry.runtimeUrl,
805
- entry.assistantId,
806
- buildUpgradeCommitMessage({
807
- action: "upgrade",
808
- phase: "complete",
809
- from: entry.serviceGroupVersion ?? "unknown",
810
- to: version ?? "latest",
811
- topology: "managed",
812
- assistantId: entry.assistantId,
813
- result: "success",
814
- }),
815
- );
816
-
817
779
  console.log(`✅ ${result.detail}`);
818
780
  if (result.version) {
819
781
  console.log(` Version: ${result.version}`);