Skip to content

Commit cd58de3

Browse files
authored
feat(cli)!: remove legacy os publish / os rollback commands (#2237)
1 parent 4cf1296 commit cd58de3

4 files changed

Lines changed: 4 additions & 240 deletions

File tree

packages/cli/src/commands/package/publish.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
* into sys_package_version.manifest_json (status=published).
1313
* 3. (optional) auto-install into a target environment via --env.
1414
*
15-
* This is the "upload my local code to my org" path. It does NOT write
16-
* sys_environment_revision (that's the legacy `objectstack publish` path,
17-
* which still exists for backward compatibility while ADR-0006 v4 Phase B
18-
* transitions complete).
15+
* This is the "upload my local code to my org" path — the single supported
16+
* way to publish. (The legacy direct-to-environment `os publish` / `os
17+
* rollback` commands, which wrote sys_environment_revision, have been
18+
* removed.)
1919
*/
2020

2121
import { readFile } from 'node:fs/promises';

packages/cli/src/commands/publish.ts

Lines changed: 0 additions & 141 deletions
This file was deleted.

packages/cli/src/commands/rollback.ts

Lines changed: 0 additions & 83 deletions
This file was deleted.

packages/client/src/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -866,18 +866,6 @@ export class ObjectStackClient {
866866
return this.unwrapResponse<{ environmentId: string; branch: string; demoted: number; totalRevisions: number }>(res);
867867
},
868868

869-
/**
870-
* Activate (rollback to) a previously-published revision by commit id.
871-
* Marks the target revision is_current=true and demotes the prior one.
872-
*/
873-
activateRevision: async (id: string, commitId: string) => {
874-
const res = await this.fetch(
875-
`${this.baseUrl}/api/v1/cloud/environments/${encodeURIComponent(id)}/revisions/${encodeURIComponent(commitId)}/activate`,
876-
{ method: 'POST' },
877-
);
878-
return this.unwrapResponse<{ environmentId: string; commitId: string; activated: boolean; previousCommitId: string | null }>(res);
879-
},
880-
881869
/**
882870
* Retry provisioning for a project stuck in `failed` (or
883871
* `provisioning`) state. The server re-runs the driver handshake; on

0 commit comments

Comments
 (0)