@otto-code/protocol 0.7.6 → 0.8.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.
Files changed (54) hide show
  1. package/dist/agent-attention-notification.js +1 -1
  2. package/dist/agent-labels.js +4 -4
  3. package/dist/agent-personalities.d.ts +2 -2
  4. package/dist/agent-personalities.js +17 -17
  5. package/dist/agent-teams.d.ts +4 -4
  6. package/dist/agent-teams.js +5 -5
  7. package/dist/agent-types.d.ts +10 -10
  8. package/dist/agent-types.js +1 -1
  9. package/dist/artifacts/rpc-schemas.js +4 -4
  10. package/dist/artifacts/types.js +3 -3
  11. package/dist/browser-automation/rpc-schemas.js +1 -1
  12. package/dist/daemon-endpoints.d.ts +1 -1
  13. package/dist/default-personalities.js +11 -11
  14. package/dist/effort.d.ts +1 -1
  15. package/dist/effort.js +2 -2
  16. package/dist/forge-manifest.d.ts +3 -3
  17. package/dist/generated/validation/ws-outbound.aot.js +25211 -20528
  18. package/dist/git-hosting.js +3 -3
  19. package/dist/git-remote.js +1 -1
  20. package/dist/judge-verdict.d.ts +1 -1
  21. package/dist/judge-verdict.js +2 -2
  22. package/dist/messages.d.ts +2698 -63
  23. package/dist/messages.js +630 -175
  24. package/dist/model-tiers.d.ts +3 -3
  25. package/dist/model-tiers.js +4 -4
  26. package/dist/observed-subagent-title.d.ts +2 -2
  27. package/dist/observed-subagent-title.js +4 -4
  28. package/dist/orchestration.d.ts +3 -3
  29. package/dist/orchestration.js +32 -32
  30. package/dist/otto-config-schema.js +1 -1
  31. package/dist/provider-config.d.ts +92 -3
  32. package/dist/provider-config.js +58 -6
  33. package/dist/provider-manifest.d.ts +9 -1
  34. package/dist/provider-manifest.js +22 -2
  35. package/dist/schedule/rpc-schemas.d.ts +4 -4
  36. package/dist/schedule/rpc-schemas.js +1 -1
  37. package/dist/schedule/types.d.ts +1 -1
  38. package/dist/schedule/types.js +3 -3
  39. package/dist/tool-call-display.d.ts +1 -1
  40. package/dist/tool-call-display.js +3 -3
  41. package/dist/tool-name-normalization.d.ts +2 -2
  42. package/dist/tool-name-normalization.js +2 -2
  43. package/dist/validation/ws-outbound-schema-metadata.d.ts +526 -8
  44. package/dist/widgets/bridge.d.ts +5 -5
  45. package/dist/widgets/bridge.js +5 -5
  46. package/dist/widgets/document.d.ts +1 -1
  47. package/dist/widgets/document.js +4 -4
  48. package/dist/widgets/icons.d.ts +1 -1
  49. package/dist/widgets/icons.js +1 -1
  50. package/dist/widgets/theme.d.ts +2 -2
  51. package/dist/widgets/theme.js +2 -2
  52. package/dist/widgets/types.d.ts +5 -5
  53. package/dist/widgets/types.js +5 -5
  54. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  // A project's git hosting provider (GitHub, Bitbucket Cloud, ...) is chosen
4
4
  // per project in otto.json; all PR/issue functionality follows that choice.
5
5
  // Shared by messages.ts (wire schemas) and otto-config-schema.ts (project
6
- // config) lives here to avoid a module cycle between those two.
6
+ // config) - lives here to avoid a module cycle between those two.
7
7
  export const GitHostingProviderIdSchema = z.enum(["github", "bitbucket-cloud"]);
8
8
  // Wire form of the provider id. Deliberately an OPEN string, not the enum, so a
9
9
  // newer peer that adds a third provider (e.g. "gitlab") never makes an older
@@ -12,7 +12,7 @@ export const GitHostingProviderIdSchema = z.enum(["github", "bitbucket-cloud"]);
12
12
  // degrade gracefully for unknown ids. Keep the enum for otto.json config and the
13
13
  // GIT_HOSTING_PROVIDER_IDS known-set.
14
14
  export const GitHostingProviderIdWireSchema = z.string();
15
- // What a provider can do. The client renders only capability-true actions
15
+ // What a provider can do. The client renders only capability-true actions -
16
16
  // no emulation of missing features (feature contract).
17
17
  export const GitHostingCapabilitiesSchema = z.object({
18
18
  autoMerge: z.boolean().optional().default(false),
@@ -23,7 +23,7 @@ export const GitHostingCapabilitiesSchema = z.object({
23
23
  reviewDecisions: z.boolean().optional().default(false),
24
24
  issues: z.boolean().optional().default(false),
25
25
  // COMPAT(projectScaffold): added in v0.6.9. Repository-level operations used
26
- // by the New project page enumerate the repos/owners you can reach, and
26
+ // by the New project page - enumerate the repos/owners you can reach, and
27
27
  // create a brand-new remote repository. Absent on older daemons, which is
28
28
  // read as "can't", so the page hides those choices rather than emulating them.
29
29
  listRepositories: z.boolean().optional().default(false),
@@ -32,7 +32,7 @@ export function parseGitRemoteLocation(remoteUrl) {
32
32
  if (!trimmed)
33
33
  return null;
34
34
  // scp form has no scheme. Testing it first would match `ssh://git@host:22/x`
35
- // `[^@]+` happily eats `ssh://git` and swallow the port into the path.
35
+ // - `[^@]+` happily eats `ssh://git` - and swallow the port into the path.
36
36
  const scpLike = trimmed.includes("://") ? null : trimmed.match(/^[^@]+@([^:]+):(.+)$/u);
37
37
  if (scpLike) {
38
38
  const host = normalizeHost(scpLike[1] ?? "");
@@ -4,7 +4,7 @@ export type JudgeOutcome = (typeof JUDGE_OUTCOMES)[number];
4
4
  export declare function isJudgeOutcome(value: string): value is JudgeOutcome;
5
5
  /**
6
6
  * Coerce a raw verdict string to a known outcome. Anything that isn't an exact
7
- * known outcome is treated as `"fail"` an unparseable verdict must not be read
7
+ * known outcome is treated as `"fail"` - an unparseable verdict must not be read
8
8
  * as a pass, so a gate never advances on a value it doesn't understand.
9
9
  */
10
10
  export declare function normalizeJudgeOutcome(value: string | undefined): JudgeOutcome;
@@ -10,7 +10,7 @@ import { z } from "zod";
10
10
  // Wire-forward-compat: kept a pure structural schema with plain leaves (no
11
11
  // transforms), so it can later ride a protocol message without breaking older
12
12
  // peers. The outcome rides as a plain string (like personality roles and effort
13
- // levels) rather than a z.enum, so the vocabulary can grow consumers normalize
13
+ // levels) rather than a z.enum, so the vocabulary can grow - consumers normalize
14
14
  // through `isJudgeOutcome` / `normalizeJudgeOutcome` instead of trusting the raw
15
15
  // value.
16
16
  // The pass/fail decision. Binary is enough for the signature loop-until-N-good
@@ -23,7 +23,7 @@ export function isJudgeOutcome(value) {
23
23
  }
24
24
  /**
25
25
  * Coerce a raw verdict string to a known outcome. Anything that isn't an exact
26
- * known outcome is treated as `"fail"` an unparseable verdict must not be read
26
+ * known outcome is treated as `"fail"` - an unparseable verdict must not be read
27
27
  * as a pass, so a gate never advances on a value it doesn't understand.
28
28
  */
29
29
  export function normalizeJudgeOutcome(value) {