Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/cli/src/commands/package/publish.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,10 +12,10 @@
* into sys_package_version.manifest_json (status=published).
* 3. (optional) auto-install into a target environment via --env.
*
* This is the "upload my local code to my org" path. It does NOT write
* sys_environment_revision (that's the legacy `objectstack publish` path,
* which still exists for backward compatibility while ADR-0006 v4 Phase B
* transitions complete).
* This is the "upload my local code to my org" path — the single supported
* way to publish. (The legacy direct-to-environment `os publish` / `os
* rollback` commands, which wrote sys_environment_revision, have been
* removed.)
*/

import { readFile } from 'node:fs/promises';
Expand Down
141 changes: 0 additions & 141 deletions packages/cli/src/commands/publish.ts

This file was deleted.

83 changes: 0 additions & 83 deletions packages/cli/src/commands/rollback.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/client/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -866,18 +866,6 @@ export class ObjectStackClient {
return this.unwrapResponse<{ environmentId: string; branch: string; demoted: number; totalRevisions: number }>(res);
},

/**
* Activate (rollback to) a previously-published revision by commit id.
* Marks the target revision is_current=true and demotes the prior one.
*/
activateRevision: async (id: string, commitId: string) => {
const res = await this.fetch(
`${this.baseUrl}/api/v1/cloud/environments/${encodeURIComponent(id)}/revisions/${encodeURIComponent(commitId)}/activate`,
{ method: 'POST' },
);
return this.unwrapResponse<{ environmentId: string; commitId: string; activated: boolean; previousCommitId: string | null }>(res);
},

/**
* Retry provisioning for a project stuck in `failed` (or
* `provisioning`) state. The server re-runs the driver handshake; on
Expand Down