@agentstorm/platform-protocol 0.2.5

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 (97) hide show
  1. package/LICENSE +671 -0
  2. package/README.md +12 -0
  3. package/dist/agent-attention-notification.d.ts +43 -0
  4. package/dist/agent-attention-notification.js +141 -0
  5. package/dist/agent-deep-link.d.ts +8 -0
  6. package/dist/agent-deep-link.js +49 -0
  7. package/dist/agent-labels.d.ts +7 -0
  8. package/dist/agent-labels.js +11 -0
  9. package/dist/agent-lifecycle.d.ts +3 -0
  10. package/dist/agent-lifecycle.js +8 -0
  11. package/dist/agent-state-bucket.d.ts +14 -0
  12. package/dist/agent-state-bucket.js +41 -0
  13. package/dist/agent-title-limits.d.ts +2 -0
  14. package/dist/agent-title-limits.js +2 -0
  15. package/dist/agent-types.d.ts +451 -0
  16. package/dist/agent-types.js +22 -0
  17. package/dist/binary-frames/demux.d.ts +11 -0
  18. package/dist/binary-frames/demux.js +23 -0
  19. package/dist/binary-frames/file-transfer.d.ts +51 -0
  20. package/dist/binary-frames/file-transfer.js +108 -0
  21. package/dist/binary-frames/index.d.ts +4 -0
  22. package/dist/binary-frames/index.js +4 -0
  23. package/dist/binary-frames/terminal.d.ts +35 -0
  24. package/dist/binary-frames/terminal.js +100 -0
  25. package/dist/branch-slug.d.ts +14 -0
  26. package/dist/branch-slug.js +49 -0
  27. package/dist/browser-automation/capabilities.d.ts +7 -0
  28. package/dist/browser-automation/capabilities.js +31 -0
  29. package/dist/browser-automation/rpc-schemas.d.ts +1112 -0
  30. package/dist/browser-automation/rpc-schemas.js +462 -0
  31. package/dist/chat/rpc-schemas.d.ts +158 -0
  32. package/dist/chat/rpc-schemas.js +103 -0
  33. package/dist/chat/types.d.ts +30 -0
  34. package/dist/chat/types.js +22 -0
  35. package/dist/client-capabilities.d.ts +11 -0
  36. package/dist/client-capabilities.js +25 -0
  37. package/dist/connection-offer.d.ts +36 -0
  38. package/dist/connection-offer.js +53 -0
  39. package/dist/daemon-endpoints.d.ts +47 -0
  40. package/dist/daemon-endpoints.js +201 -0
  41. package/dist/error-utils.d.ts +11 -0
  42. package/dist/error-utils.js +27 -0
  43. package/dist/forge-manifest.d.ts +66 -0
  44. package/dist/forge-manifest.js +92 -0
  45. package/dist/generated/validation/ws-outbound.aot.d.ts +2 -0
  46. package/dist/generated/validation/ws-outbound.aot.js +65207 -0
  47. package/dist/git-remote.d.ts +33 -0
  48. package/dist/git-remote.js +94 -0
  49. package/dist/host-connection-schema.d.ts +11 -0
  50. package/dist/host-connection-schema.js +9 -0
  51. package/dist/literal-union.d.ts +2 -0
  52. package/dist/literal-union.js +2 -0
  53. package/dist/loop/rpc-schemas.d.ts +636 -0
  54. package/dist/loop/rpc-schemas.js +163 -0
  55. package/dist/messages.d.ts +40580 -0
  56. package/dist/messages.js +4999 -0
  57. package/dist/paseo-config-schema.d.ts +138 -0
  58. package/dist/paseo-config-schema.js +98 -0
  59. package/dist/path-utils.d.ts +2 -0
  60. package/dist/path-utils.js +16 -0
  61. package/dist/provider-config.d.ts +126 -0
  62. package/dist/provider-config.js +110 -0
  63. package/dist/provider-icon-names.d.ts +5 -0
  64. package/dist/provider-icon-names.js +52 -0
  65. package/dist/provider-manifest.d.ts +35 -0
  66. package/dist/provider-manifest.js +254 -0
  67. package/dist/schedule/cadence.d.ts +6 -0
  68. package/dist/schedule/cadence.js +28 -0
  69. package/dist/schedule/cron-expression.d.ts +13 -0
  70. package/dist/schedule/cron-expression.js +97 -0
  71. package/dist/schedule/rpc-schemas.d.ts +624 -0
  72. package/dist/schedule/rpc-schemas.js +155 -0
  73. package/dist/schedule/types.d.ts +222 -0
  74. package/dist/schedule/types.js +78 -0
  75. package/dist/terminal-activity.d.ts +21 -0
  76. package/dist/terminal-activity.js +25 -0
  77. package/dist/terminal-input-mode.d.ts +30 -0
  78. package/dist/terminal-input-mode.js +180 -0
  79. package/dist/terminal-key-input.d.ts +13 -0
  80. package/dist/terminal-key-input.js +210 -0
  81. package/dist/terminal-profiles.d.ts +6 -0
  82. package/dist/terminal-profiles.js +28 -0
  83. package/dist/terminal-snapshot.d.ts +3 -0
  84. package/dist/terminal-snapshot.js +178 -0
  85. package/dist/terminal-stream-protocol.d.ts +2 -0
  86. package/dist/terminal-stream-protocol.js +2 -0
  87. package/dist/terminal-subscription-key.d.ts +2 -0
  88. package/dist/terminal-subscription-key.js +9 -0
  89. package/dist/tool-call-display.d.ts +11 -0
  90. package/dist/tool-call-display.js +135 -0
  91. package/dist/tool-name-normalization.d.ts +9 -0
  92. package/dist/tool-name-normalization.js +82 -0
  93. package/dist/validation/ws-outbound-schema-metadata.d.ts +7570 -0
  94. package/dist/validation/ws-outbound-schema-metadata.js +3 -0
  95. package/dist/validation/ws-outbound.d.ts +12 -0
  96. package/dist/validation/ws-outbound.js +8 -0
  97. package/package.json +32 -0
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Declarative manifest of the git forges Paseo knows how to present, mirroring
3
+ * provider-manifest.ts. Pure build-time data shared by BOTH the client (icon,
4
+ * brand label, PR↔MR relabel) and the server (registry host-matching, prompt
5
+ * branding). It is NEVER serialized over the wire, so adding a forge here is not
6
+ * a protocol change.
7
+ *
8
+ * Keep this a pure leaf: no imports, no zod, no functions with runtime deps.
9
+ * Behavioural concerns (CLI invocation, host probing, REST adapters) live in the
10
+ * server adapter keyed by {@link ForgeDefinition.id}; this file is only the
11
+ * declarative half.
12
+ */
13
+ export const FORGE_DEFINITIONS = [
14
+ {
15
+ id: "github",
16
+ displayName: "GitHub",
17
+ changeRequestAbbrev: "PR",
18
+ changeRequestNoun: "pull request",
19
+ changeRequestNumberPrefix: "#",
20
+ issueNumberPrefix: "#",
21
+ iconKind: "github",
22
+ signIn: { cli: "gh", command: "gh auth login" },
23
+ cloudHosts: ["github.com", "ssh.github.com"],
24
+ },
25
+ {
26
+ id: "gitlab",
27
+ displayName: "GitLab",
28
+ changeRequestAbbrev: "MR",
29
+ changeRequestNoun: "merge request",
30
+ changeRequestNumberPrefix: "!",
31
+ issueNumberPrefix: "#",
32
+ iconKind: "gitlab",
33
+ signIn: { cli: "glab", command: "glab auth login", hostnameFlag: "--hostname" },
34
+ cloudHosts: ["gitlab.com"],
35
+ },
36
+ {
37
+ id: "gitea",
38
+ displayName: "Gitea",
39
+ changeRequestAbbrev: "PR",
40
+ changeRequestNoun: "pull request",
41
+ changeRequestNumberPrefix: "#",
42
+ issueNumberPrefix: "#",
43
+ iconKind: "gitea",
44
+ signIn: { cli: "tea", command: "tea login add" },
45
+ cloudHosts: ["gitea.com"],
46
+ },
47
+ {
48
+ id: "forgejo",
49
+ displayName: "Forgejo",
50
+ changeRequestAbbrev: "PR",
51
+ changeRequestNoun: "pull request",
52
+ changeRequestNumberPrefix: "#",
53
+ issueNumberPrefix: "#",
54
+ iconKind: "forgejo",
55
+ signIn: { cli: "tea", command: "tea login add" },
56
+ },
57
+ {
58
+ id: "codeberg",
59
+ displayName: "Codeberg",
60
+ changeRequestAbbrev: "PR",
61
+ changeRequestNoun: "pull request",
62
+ changeRequestNumberPrefix: "#",
63
+ issueNumberPrefix: "#",
64
+ iconKind: "codeberg",
65
+ signIn: { cli: "tea", command: "tea login add" },
66
+ cloudHosts: ["codeberg.org"],
67
+ },
68
+ ];
69
+ /** Forge definitions only present in dev builds (none today; mirrors providers). */
70
+ export const DEV_FORGE_DEFINITIONS = [];
71
+ export const FORGE_IDS = FORGE_DEFINITIONS.map((definition) => definition.id);
72
+ export function getForgeDefinition(id, definitions = [...FORGE_DEFINITIONS, ...DEV_FORGE_DEFINITIONS]) {
73
+ return definitions.find((definition) => definition.id === id) ?? null;
74
+ }
75
+ /**
76
+ * Resolve a forge definition, synthesizing a neutral one for a forge id the
77
+ * client has never heard of (e.g. a self-hosted forge a newer daemon reports to
78
+ * an older client). The neutral shape renders generic, never GitHub-branded.
79
+ */
80
+ export function getForgeDefinitionOrNeutral(id) {
81
+ return (getForgeDefinition(id) ?? {
82
+ id,
83
+ displayName: id,
84
+ changeRequestAbbrev: "PR",
85
+ changeRequestNoun: "pull request",
86
+ changeRequestNumberPrefix: "#",
87
+ issueNumberPrefix: "#",
88
+ iconKind: "git",
89
+ signIn: null,
90
+ });
91
+ }
92
+ //# sourceMappingURL=forge-manifest.js.map
@@ -0,0 +1,2 @@
1
+ export declare const WSOutboundMessageSchema: any;
2
+ //# sourceMappingURL=ws-outbound.aot.d.ts.map