From c935c280c73b14024be464808eaa325ffadaad4f Mon Sep 17 00:00:00 2001 From: os-zhuang Date: Wed, 10 Jun 2026 22:06:01 +0500 Subject: [PATCH] =?UTF-8?q?feat(cli)!:=20`os=20package=20publish`=20defaul?= =?UTF-8?q?ts=20visibility=20to=20org=20(ADR-0007=20=E2=91=A1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A freshly published package should be auto-visible/installable across the owner organization's environments — that's the common "build an app, deploy it to my envs" case. Default `--visibility` private → org. Publishers opt into narrower `private` (grant/ACL) or public `marketplace` explicitly. Co-Authored-By: Claude Opus 4.8 --- packages/cli/src/commands/package/publish.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/package/publish.ts b/packages/cli/src/commands/package/publish.ts index e9414daab8..9e6501c996 100644 --- a/packages/cli/src/commands/package/publish.ts +++ b/packages/cli/src/commands/package/publish.ts @@ -165,9 +165,13 @@ export default class PackagePublish extends Command { description: 'Marketplace category slug (e.g. crm, hr, devtools)', }), visibility: Flags.string({ - description: 'Who can see / install this package', + description: + "Who can see / install this package. " + + "'org' (default): auto-visible/installable across your organization's environments. " + + "'private': only explicitly-granted orgs/envs. " + + "'marketplace': public after review.", options: ['private', 'org', 'marketplace'], - default: 'private', + default: 'org', }), org: Flags.string({ description: 'owner_org_id (required when using a bearer key in service mode; ignored in user mode)',