@otto-code/protocol 0.8.3 → 0.8.4

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.
@@ -22,6 +22,17 @@ export const FORGE_DEFINITIONS = [
22
22
  signIn: { cli: "gh", command: "gh auth login" },
23
23
  cloudHosts: ["github.com", "ssh.github.com"],
24
24
  },
25
+ {
26
+ id: "bitbucket-cloud",
27
+ displayName: "Bitbucket Cloud",
28
+ changeRequestAbbrev: "PR",
29
+ changeRequestNoun: "pull request",
30
+ changeRequestNumberPrefix: "#",
31
+ issueNumberPrefix: "#",
32
+ iconKind: "bitbucket-cloud",
33
+ signIn: null,
34
+ cloudHosts: ["bitbucket.org"],
35
+ },
25
36
  {
26
37
  id: "gitlab",
27
38
  displayName: "GitLab",
package/dist/messages.js CHANGED
@@ -8398,13 +8398,9 @@ export const CheckoutPrStatusSchema = z.object({
8398
8398
  // Provider-neutral per-PR hosting facts. Absent from old daemons; for
8399
8399
  // GitHub projects both this and the legacy `github` field are populated.
8400
8400
  //
8401
- // NOT a shim, and deliberately untagged: this does not collapse into `forge`.
8402
- // Otto registers every hosting provider into the forge registry under the
8403
- // forge id `github`, which is the provider-routing facade rather than the gh
8404
- // CLI (bootstrap.ts, `createGitHostingResolver`). So `forge` reads "github"
8405
- // for a Bitbucket workspace and only `hosting.provider` carries the truth.
8406
- // The two disagree by design; a reader wanting the real provider must use
8407
- // this field.
8401
+ // NOT a shim, and deliberately untagged: this carries provider capabilities
8402
+ // alongside the Forge identity. They match for built-in hosts today, but the
8403
+ // provider remains the source of truth for hosting-specific capabilities.
8408
8404
  hosting: z
8409
8405
  .object({
8410
8406
  provider: GitHostingProviderIdWireSchema,
@@ -8430,9 +8426,8 @@ const CheckoutPrStatusPayloadSchema = z.object({
8430
8426
  githubFeaturesEnabled: z.boolean(),
8431
8427
  // Provider-neutral enablement. Present even when status is null so clients
8432
8428
  // can drive search/create-PR affordances for the workspace's provider.
8433
- // Permanent for the same reason as the `hosting` block on the PR status
8434
- // schema above: `forge` is a routing-facade id and cannot answer "which
8435
- // provider is this really".
8429
+ // Permanent so provider-specific capability decisions do not need to infer
8430
+ // behavior from the Forge presentation identity.
8436
8431
  hosting: z
8437
8432
  .object({
8438
8433
  provider: GitHostingProviderIdWireSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otto-code/protocol",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "Otto shared protocol schemas and wire types",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "files": [
@@ -37,7 +37,7 @@
37
37
  "devDependencies": {
38
38
  "@types/node": "^20.9.0",
39
39
  "typescript": "^5.2.2",
40
- "vitest": "^4.1.6",
40
+ "vitest": "^4.1.10",
41
41
  "zod-aot": "0.20.4"
42
42
  }
43
43
  }