@vibedropio/publisher 0.23.0 → 0.24.0

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git-publisher",
3
3
  "displayName": "Git Publisher",
4
- "version": "0.23.0",
4
+ "version": "0.24.0",
5
5
  "description": "Publish an app folder to the platform and keep it updated (\"publish my app\", \"update my app\", \"fetch the engineered version\").",
6
6
  "author": { "name": "VibeDrop" },
7
7
  "keywords": ["git", "publish", "deploy", "serverless"]
@@ -28,7 +28,7 @@ Every command accepts `--json` and prints exactly one JSON object on stdout. Exi
28
28
  publisher --version
29
29
  ```
30
30
 
31
- If the command is not found, or the version is older than 0.23.0, install it:
31
+ If the command is not found, or the version is older than 0.24.0, install it:
32
32
  `npm install -g @vibedropio/publisher@latest` (it needs Node.js 22 (22.12 or later) or Node.js 24). In a Claude Cowork task
33
33
  this is normal: the sandbox starts empty every time, so install it without asking. On the person's
34
34
  own computer, say in one line that you are installing the publisher. If `npm` itself is missing,
@@ -187,7 +187,7 @@ following, for when the person asks not to wait.
187
187
  `--no-wait`) and pass on its `hint`:
188
188
  - `kind: "settled"` with `ending` `"live"`: the app is live. A new app opens only to the person
189
189
  and the admins until it is shared: offer `publisher share` (the `sync-app` skill). `"not-deployed"`: published and
190
- checked, and this organization does not deploy automatically. `"failed"` with `findings`: it
190
+ checked, and this workspace does not deploy automatically. `"failed"` with `findings`: it
191
191
  did not pass its checks, and `findings` says why — fix them as "When the checks find something"
192
192
  below says. `"failed"` without `findings`: it stopped at `failedAt`; the portal says why — do
193
193
  not guess the reason. A fault on our side can be tried again: to find out, run `publisher
@@ -210,10 +210,10 @@ following, for when the person asks not to wait.
210
210
  moment between the merge and the publish. Run `publisher sync . --json` once more
211
211
  (`publication.next.command` says the same).
212
212
  - `REF_FORBIDDEN`: the user may not publish this branch; tell them which branch and stop.
213
- When it comes as `error.code` with a `hint`, a limit of the organization refused it: tell them
213
+ When it comes as `error.code` with a `hint`, a limit of the workspace refused it: tell them
214
214
  the reason and whom to ask that the `hint` gives, and stop.
215
- When `error.details.feature` names a feature, that feature is off for the organization: pass on
216
- the `hint` as it is, and stop. Nobody in the organization can turn it on, so name nobody to ask.
215
+ When `error.details.feature` names a feature, that feature is off for the workspace: pass on
216
+ the `hint` as it is, and stop. Nobody in the workspace can turn it on, so name nobody to ask.
217
217
  - `MISSING_OBJECTS`: the local copy is incomplete (for example a shallow clone). Tell the user to
218
218
  publish from a complete copy: `publisher checkout <new folder> --repo <id>`.
219
219
  - `LIMIT_EXCEEDED`, `PACK_INVALID`: quote the message; suggest removing very large files from the
@@ -227,13 +227,13 @@ following, for when the person asks not to wait.
227
227
 
228
228
  ### When the app moved
229
229
 
230
- `REPOSITORY_MOVED` means the app moved to another organization (the person's team adopted it).
230
+ `REPOSITORY_MOVED` means the app moved to another workspace (the person's team adopted it).
231
231
  This folder can no longer publish; nothing was lost, and it can still be read. It comes as a
232
232
  `"rejected"` publication, or as `error.code` when the publish was refused before it started; both
233
233
  carry a `hint` and `details.movedTo` (in `publication.rejection.details` or `error.details`).
234
234
  Pass the `hint` on, then:
235
235
 
236
- 1. Tell the person to sign in again and choose the organization the app moved to:
236
+ 1. Tell the person to sign in again and choose the workspace the app moved to:
237
237
  `publisher login`. Never ask them for a token.
238
238
  2. Find the app there: `publisher checkout <new folder> --repo <details.movedTo> --json` when
239
239
  `details.movedTo` is set; otherwise `publisher list --json` and pick the app by its name.
@@ -292,7 +292,7 @@ folder. Never `init` or `sync` an empty new folder in its place: that makes a se
292
292
  In a sandbox (Claude Cowork, Claude Code on the web) a `NETWORK` error, or `CONNECT tunnel failed,
293
293
  response 403`, usually means the sandbox's network does not allow the platform. Tell the person that
294
294
  their Claude settings must allow the platform's domain and its storage (`*.s3.<region>.amazonaws.com`)
295
- under Settings → Capabilities, or that their organization's owner must, on a Team or Enterprise plan.
295
+ under Settings → Capabilities, or that their workspace's owner must, on a Team or Enterprise plan.
296
296
  Do not retry until they say it is done.
297
297
 
298
298
  ## 6. Interrupted earlier?
@@ -23,9 +23,9 @@ published elsewhere was brought in (`"fast-forward"` or `"merge"`); mention it w
23
23
  ## When the app moved
24
24
 
25
25
  A sync that ends with `REPOSITORY_MOVED` — `publication.rejection.code`, or `error.code` when it
26
- was refused before anything was sent — means the app moved to another organization (the person's
26
+ was refused before anything was sent — means the app moved to another workspace (the person's
27
27
  team adopted it). Pass on its `hint`, and do what the `publish-app` skill's "When the app moved"
28
- says: sign in again with `publisher login` and choose that organization, then
28
+ says: sign in again with `publisher login` and choose that workspace, then
29
29
  `publisher checkout <new folder> --repo <details.movedTo>` (or find the app with
30
30
  `publisher list --json` when `details.movedTo` is `null`), and publish from the new folder. Do not
31
31
  sync this folder again.
@@ -33,7 +33,7 @@ sync this folder again.
33
33
  ## When it waits for an answer
34
34
 
35
35
  Sometimes the app's preparation asks one business question before it can go on (for example
36
- whether to use the organization's data). `follow` then stops with `kind: "waiting"` and
36
+ whether to use the workspace's data). `follow` then stops with `kind: "waiting"` and
37
37
  `next.command`. Read the question:
38
38
 
39
39
  ```bash
@@ -19763,7 +19763,7 @@ var getCapabilities = {
19763
19763
  maxProcessMemoryBytes: external_exports.int().gt(0),
19764
19764
  maxTemporaryBytes: external_exports.int().gt(0),
19765
19765
  gitTimeoutMs: external_exports.int().gt(0),
19766
- maxRepositoriesPerOrganization: external_exports.int().gt(0),
19766
+ maxRepositoriesPerWorkspace: external_exports.int().gt(0),
19767
19767
  maxFilePublicationBytes: external_exports.int().gt(0),
19768
19768
  maxFilePublicationPaths: external_exports.int().gt(0),
19769
19769
  maxShownFileBytes: external_exports.int().gt(0)
@@ -19886,7 +19886,7 @@ var postRepos = {
19886
19886
  maxProcessMemoryBytes: external_exports.int().gt(0),
19887
19887
  maxTemporaryBytes: external_exports.int().gt(0),
19888
19888
  gitTimeoutMs: external_exports.int().gt(0),
19889
- maxRepositoriesPerOrganization: external_exports.int().gt(0),
19889
+ maxRepositoriesPerWorkspace: external_exports.int().gt(0),
19890
19890
  maxFilePublicationBytes: external_exports.int().gt(0),
19891
19891
  maxFilePublicationPaths: external_exports.int().gt(0),
19892
19892
  maxShownFileBytes: external_exports.int().gt(0)
@@ -19945,7 +19945,7 @@ var postRepos = {
19945
19945
  maxProcessMemoryBytes: external_exports.int().gt(0),
19946
19946
  maxTemporaryBytes: external_exports.int().gt(0),
19947
19947
  gitTimeoutMs: external_exports.int().gt(0),
19948
- maxRepositoriesPerOrganization: external_exports.int().gt(0),
19948
+ maxRepositoriesPerWorkspace: external_exports.int().gt(0),
19949
19949
  maxFilePublicationBytes: external_exports.int().gt(0),
19950
19950
  maxFilePublicationPaths: external_exports.int().gt(0),
19951
19951
  maxShownFileBytes: external_exports.int().gt(0)
@@ -20009,7 +20009,7 @@ var getReposByRepoId = {
20009
20009
  maxProcessMemoryBytes: external_exports.int().gt(0),
20010
20010
  maxTemporaryBytes: external_exports.int().gt(0),
20011
20011
  gitTimeoutMs: external_exports.int().gt(0),
20012
- maxRepositoriesPerOrganization: external_exports.int().gt(0),
20012
+ maxRepositoriesPerWorkspace: external_exports.int().gt(0),
20013
20013
  maxFilePublicationBytes: external_exports.int().gt(0),
20014
20014
  maxFilePublicationPaths: external_exports.int().gt(0),
20015
20015
  maxShownFileBytes: external_exports.int().gt(0)
@@ -21823,7 +21823,7 @@ function isRecord(value) {
21823
21823
  }
21824
21824
  function mergedSay(body) {
21825
21825
  const error62 = isRecord(body) ? body["error"] : void 0;
21826
- if (!isRecord(error62) || error62["code"] !== "organization-merged") {
21826
+ if (!isRecord(error62) || error62["code"] !== "workspace-merged") {
21827
21827
  return null;
21828
21828
  }
21829
21829
  const details = error62["details"];
@@ -21840,10 +21840,10 @@ function featureOffSay(body) {
21840
21840
  }
21841
21841
  function featureOffWords(feature) {
21842
21842
  if (feature === TERMINAL_FEATURE) {
21843
- return "The publisher command is not available for this organization, and no one in the organization can turn it on.";
21843
+ return "The publisher command is not available for this workspace, and no one in the workspace can turn it on.";
21844
21844
  }
21845
21845
  const named = typeof feature === "string" && feature !== "" ? ` (the feature "${feature}")` : "";
21846
- return `This is not available for this organization${named}, and no one in the organization can turn it on.`;
21846
+ return `This is not available for this workspace${named}, and no one in the workspace can turn it on.`;
21847
21847
  }
21848
21848
 
21849
21849
  // ../client/src/clients/applications/refusal.ts
@@ -21941,10 +21941,10 @@ var ERROR_CODES = [
21941
21941
  "UNAUTHORIZED",
21942
21942
  "FORBIDDEN",
21943
21943
  "REF_FORBIDDEN",
21944
- // The credential names no organization, so there is nothing to publish a repository FOR. Its own
21945
- // code rather than FORBIDDEN: a caller can act on it (sign in again, choosing an organization),
21944
+ // The credential names no workspace, so there is nothing to publish a repository FOR. Its own
21945
+ // code rather than FORBIDDEN: a caller can act on it (sign in again, choosing a workspace),
21946
21946
  // and a test that could not tell it from "you may not" would prove nothing about the check.
21947
- "ORGANIZATION_REQUIRED",
21947
+ "WORKSPACE_REQUIRED",
21948
21948
  // A repository is created only by the platform's application maker (the portal), for a person,
21949
21949
  // after it has made the application the repository will belong to. Its own code: a terminal that
21950
21950
  // meets it is an older client calling this route directly, and can say "upgrade" rather than
@@ -21959,13 +21959,13 @@ var ERROR_CODES = [
21959
21959
  "REPOSITORY_NOT_FOUND",
21960
21960
  "REPOSITORY_CONFLICT",
21961
21961
  "REPOSITORY_ARCHIVED",
21962
- // The repository moved to another organization (an adoption): it refuses every write and still
21962
+ // The repository moved to another workspace (an adoption): it refuses every write and still
21963
21963
  // admits reads. `details.movedTo` names the new repository only to a caller with a grant on it,
21964
21964
  // and is null for everybody else. A client that does not know the code reads it as its 409.
21965
21965
  "REPOSITORY_MOVED",
21966
- // A copy for an adoption names the organization it moves the application from, and the source
21966
+ // A copy for an adoption names the workspace it moves the application from, and the source
21967
21967
  // repository is in another one. Its own code: the portal tells it from a moved repository.
21968
- "REPOSITORY_NOT_IN_ORGANIZATION",
21968
+ "REPOSITORY_NOT_IN_WORKSPACE",
21969
21969
  "ACCESS_CONFLICT",
21970
21970
  // A write of the grants that names no version in If-Match. The CLI writes no grant.
21971
21971
  "MISSING_IF_MATCH",
@@ -23777,7 +23777,7 @@ async function discoverEndpoint(portal, fetchImpl = fetch) {
23777
23777
 
23778
23778
  // src/terminal/limited.ts
23779
23779
  var REFUSED = /* @__PURE__ */ new Set(["REF_FORBIDDEN", "FORBIDDEN"]);
23780
- var ASK = "Ask the owner or an admin of the organization.";
23780
+ var ASK = "Ask the owner or an admin of the workspace.";
23781
23781
  var Limited = class _Limited {
23782
23782
  /** The lines for a refusal with `code` and `details`, or null when it is not a permission's or names no reason and no maker. */
23783
23783
  static hint(code, details) {
@@ -23796,7 +23796,7 @@ var Limited = class _Limited {
23796
23796
  const text = (value) => typeof value === "string" && value.trim() !== "" ? value.trim() : null;
23797
23797
  const reason = text(details?.["reason"]);
23798
23798
  const contactId = text(details?.["contactId"]);
23799
- return [reason === null ? null : `The organization's reason: ${reason}`, contactId === null ? null : ASK].filter((line) => line !== null);
23799
+ return [reason === null ? null : `The workspace's reason: ${reason}`, contactId === null ? null : ASK].filter((line) => line !== null);
23800
23800
  }
23801
23801
  };
23802
23802
 
@@ -24021,7 +24021,7 @@ function progressHint(r, portal, answerable = false) {
24021
24021
  case "live":
24022
24022
  return "Your app is live.";
24023
24023
  case "not-deployed":
24024
- return "Published and checked; this organization does not deploy automatically.";
24024
+ return "Published and checked; this workspace does not deploy automatically.";
24025
24025
  case "failed":
24026
24026
  return inPortal(portal, `This version stopped at "${r.failedAt ?? "a step"}".${r.reason === null ? "" : ` ${r.reason}`}`, r.reason === null ? "See why" : "See it");
24027
24027
  case "stopped":
@@ -24637,7 +24637,7 @@ var Moved = class {
24637
24637
  }
24638
24638
  const movedTo = details?.["movedTo"];
24639
24639
  const next = typeof movedTo === "string" ? `then run publisher checkout <new folder> --repo ${movedTo}` : "then run publisher list to find it there";
24640
- return `This app moved to another organization. Sign in again with publisher login, choose that organization, ${next}.`;
24640
+ return `This app moved to another workspace. Sign in again with publisher login, choose that workspace, ${next}.`;
24641
24641
  }
24642
24642
  };
24643
24643
 
@@ -24842,9 +24842,9 @@ async function portalAt(endpoint, opts) {
24842
24842
  }
24843
24843
  }
24844
24844
  var REFUSED2 = {
24845
- read: "the portal will not show this sign-in the preparation in this organization",
24846
- answer: "the portal will not let this sign-in answer for this organization (the owner or an admin can, or the app's creator for the first preparation after an adoption)",
24847
- retry: "the portal will not let this sign-in try it again in this organization (the owner or an admin can, or the app's creator, except for the first preparation after an adoption)"
24845
+ read: "the portal will not show this sign-in the preparation in this workspace",
24846
+ answer: "the portal will not let this sign-in answer for this workspace (the owner or an admin can, or the app's creator for the first preparation after an adoption)",
24847
+ retry: "the portal will not let this sign-in try it again in this workspace (the owner or an admin can, or the app's creator, except for the first preparation after an adoption)"
24848
24848
  };
24849
24849
  function shown(portal, r, refused) {
24850
24850
  switch (r.kind) {
@@ -24855,7 +24855,7 @@ function shown(portal, r, refused) {
24855
24855
  case "nothing-prepared":
24856
24856
  return { kind: "nothing-prepared", portal, hint: "Nothing is being prepared for this app, so nothing is waiting for an answer." };
24857
24857
  case "no-application":
24858
- throw new PublisherError("NOT_FOUND", "this repository has no application in your organization yet; publish it first");
24858
+ throw new PublisherError("NOT_FOUND", "this repository has no application in your workspace yet; publish it first");
24859
24859
  case "moved-on":
24860
24860
  throw new PublisherError("UNAVAILABLE", "the preparation moved on before the answer arrived; run publisher question again", { isRetryable: true });
24861
24861
  case "unauthorized":
@@ -24944,11 +24944,7 @@ async function creatorTool(p, endpoint, tool, args, opts = {}) {
24944
24944
  case "unauthorized":
24945
24945
  throw new PublisherError("UNAUTHORIZED", "the portal did not accept this sign-in; run publisher login");
24946
24946
  case "forbidden":
24947
- throw new PublisherError(
24948
- "FORBIDDEN",
24949
- result.say ?? "the portal will not let this sign-in do that in this organization",
24950
- result.limit === null ? {} : { details: result.limit }
24951
- );
24947
+ throw new PublisherError("FORBIDDEN", result.say ?? "the portal will not let this sign-in do that in this workspace", result.limit === null ? {} : { details: result.limit });
24952
24948
  case "unavailable":
24953
24949
  throw new PublisherError("UNAVAILABLE", `the portal could not be asked: ${result.detail}`, { isRetryable: true });
24954
24950
  case "malformed":
@@ -25220,13 +25216,13 @@ var EXIT_CODE = {
25220
25216
  NOT_FOUND: 1,
25221
25217
  METHOD_NOT_ALLOWED: 1,
25222
25218
  REF_FORBIDDEN: 1,
25223
- ORGANIZATION_REQUIRED: 1,
25219
+ WORKSPACE_REQUIRED: 1,
25224
25220
  OWNER_REQUIRED: 1,
25225
25221
  REPOSITORY_NOT_FOUND: 1,
25226
25222
  REPOSITORY_CONFLICT: 1,
25227
25223
  REPOSITORY_ARCHIVED: 1,
25228
25224
  REPOSITORY_MOVED: 1,
25229
- REPOSITORY_NOT_IN_ORGANIZATION: 1,
25225
+ REPOSITORY_NOT_IN_WORKSPACE: 1,
25230
25226
  ACCESS_CONFLICT: 1,
25231
25227
  MISSING_IF_MATCH: 1,
25232
25228
  PUBLICATION_NOT_FOUND: 1,
@@ -25443,7 +25439,7 @@ Usage:
25443
25439
  turn it on for that app (an app you made, or any app as the
25444
25440
  owner or an admin); only you, the owner and the admins can use
25445
25441
  new data until a grant gives access
25446
- publisher data remove <id> --app <app> that app stops using that data; the organization keeps it
25442
+ publisher data remove <id> --app <app> that app stops using that data; the workspace keeps it
25447
25443
  publisher merge-check [dir] --ours <ref> --theirs <ref> [--apply]
25448
25444
  publisher info [dir] repository state as seen by the server
25449
25445
  publisher doctor environment check (node, git, credentials, association)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibedropio/publisher",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "publisher: publish an app's Git history to the serverless Git backend",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",