@camerontaylor/paseo-protocol 0.8.0-fork.1

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 (118) hide show
  1. package/README.md +12 -0
  2. package/dist/agent-attention-notification.d.ts +43 -0
  3. package/dist/agent-attention-notification.js +141 -0
  4. package/dist/agent-deep-link.d.ts +8 -0
  5. package/dist/agent-deep-link.js +49 -0
  6. package/dist/agent-labels.d.ts +10 -0
  7. package/dist/agent-labels.js +21 -0
  8. package/dist/agent-lifecycle.d.ts +3 -0
  9. package/dist/agent-lifecycle.js +8 -0
  10. package/dist/agent-state-bucket.d.ts +14 -0
  11. package/dist/agent-state-bucket.js +41 -0
  12. package/dist/agent-title-limits.d.ts +2 -0
  13. package/dist/agent-title-limits.js +2 -0
  14. package/dist/agent-types.d.ts +478 -0
  15. package/dist/agent-types.js +22 -0
  16. package/dist/binary-frames/demux.d.ts +11 -0
  17. package/dist/binary-frames/demux.js +23 -0
  18. package/dist/binary-frames/file-transfer.d.ts +51 -0
  19. package/dist/binary-frames/file-transfer.js +108 -0
  20. package/dist/binary-frames/index.d.ts +4 -0
  21. package/dist/binary-frames/index.js +4 -0
  22. package/dist/binary-frames/terminal.d.ts +35 -0
  23. package/dist/binary-frames/terminal.js +100 -0
  24. package/dist/branch-slug.d.ts +14 -0
  25. package/dist/branch-slug.js +49 -0
  26. package/dist/browser-automation/capabilities.d.ts +7 -0
  27. package/dist/browser-automation/capabilities.js +31 -0
  28. package/dist/browser-automation/rpc-schemas.d.ts +1112 -0
  29. package/dist/browser-automation/rpc-schemas.js +462 -0
  30. package/dist/chat/rpc-schemas.d.ts +158 -0
  31. package/dist/chat/rpc-schemas.js +104 -0
  32. package/dist/chat/types.d.ts +30 -0
  33. package/dist/chat/types.js +23 -0
  34. package/dist/check-traits.d.ts +11 -0
  35. package/dist/check-traits.js +10 -0
  36. package/dist/client-capabilities.d.ts +20 -0
  37. package/dist/client-capabilities.js +47 -0
  38. package/dist/connection-offer.d.ts +36 -0
  39. package/dist/connection-offer.js +53 -0
  40. package/dist/daemon-endpoints.d.ts +47 -0
  41. package/dist/daemon-endpoints.js +201 -0
  42. package/dist/error-utils.d.ts +11 -0
  43. package/dist/error-utils.js +27 -0
  44. package/dist/forge-manifest.d.ts +66 -0
  45. package/dist/forge-manifest.js +92 -0
  46. package/dist/generated/validation/ws-outbound.aot.d.ts +2 -0
  47. package/dist/generated/validation/ws-outbound.aot.js +98097 -0
  48. package/dist/git-remote.d.ts +33 -0
  49. package/dist/git-remote.js +94 -0
  50. package/dist/gitea-status.d.ts +10 -0
  51. package/dist/gitea-status.js +23 -0
  52. package/dist/gitlab-pipeline.d.ts +10 -0
  53. package/dist/gitlab-pipeline.js +17 -0
  54. package/dist/host-connection-schema.d.ts +11 -0
  55. package/dist/host-connection-schema.js +9 -0
  56. package/dist/literal-union.d.ts +2 -0
  57. package/dist/literal-union.js +2 -0
  58. package/dist/loop/rpc-schemas.d.ts +636 -0
  59. package/dist/loop/rpc-schemas.js +164 -0
  60. package/dist/messages.d.ts +60742 -0
  61. package/dist/messages.js +6152 -0
  62. package/dist/paseo-config-schema.d.ts +138 -0
  63. package/dist/paseo-config-schema.js +98 -0
  64. package/dist/paseo-tool-call-detail.d.ts +15 -0
  65. package/dist/paseo-tool-call-detail.js +305 -0
  66. package/dist/path-utils.d.ts +2 -0
  67. package/dist/path-utils.js +16 -0
  68. package/dist/plugin-requirements.d.ts +11 -0
  69. package/dist/plugin-requirements.js +26 -0
  70. package/dist/plugin-source-reference.d.ts +7 -0
  71. package/dist/plugin-source-reference.js +41 -0
  72. package/dist/provider-config.d.ts +139 -0
  73. package/dist/provider-config.js +115 -0
  74. package/dist/provider-icon-names.d.ts +5 -0
  75. package/dist/provider-icon-names.js +54 -0
  76. package/dist/provider-manifest.d.ts +37 -0
  77. package/dist/provider-manifest.js +261 -0
  78. package/dist/provider-snapshot-codec.d.ts +18 -0
  79. package/dist/provider-snapshot-codec.js +71 -0
  80. package/dist/schedule/cadence.d.ts +6 -0
  81. package/dist/schedule/cadence.js +28 -0
  82. package/dist/schedule/cron-expression.d.ts +13 -0
  83. package/dist/schedule/cron-expression.js +97 -0
  84. package/dist/schedule/rpc-schemas.d.ts +568 -0
  85. package/dist/schedule/rpc-schemas.js +155 -0
  86. package/dist/schedule/types.d.ts +201 -0
  87. package/dist/schedule/types.js +68 -0
  88. package/dist/search/text-match.d.ts +71 -0
  89. package/dist/search/text-match.js +291 -0
  90. package/dist/ssh-transport.d.ts +11 -0
  91. package/dist/ssh-transport.js +72 -0
  92. package/dist/terminal-activity.d.ts +21 -0
  93. package/dist/terminal-activity.js +25 -0
  94. package/dist/terminal-input-mode.d.ts +30 -0
  95. package/dist/terminal-input-mode.js +180 -0
  96. package/dist/terminal-key-input.d.ts +13 -0
  97. package/dist/terminal-key-input.js +210 -0
  98. package/dist/terminal-profiles.d.ts +41 -0
  99. package/dist/terminal-profiles.js +270 -0
  100. package/dist/terminal-snapshot.d.ts +3 -0
  101. package/dist/terminal-snapshot.js +184 -0
  102. package/dist/terminal-stream-protocol.d.ts +2 -0
  103. package/dist/terminal-stream-protocol.js +2 -0
  104. package/dist/terminal-subscription-key.d.ts +2 -0
  105. package/dist/terminal-subscription-key.js +9 -0
  106. package/dist/timeline-identity.d.ts +3 -0
  107. package/dist/timeline-identity.js +8 -0
  108. package/dist/tool-call-display.d.ts +11 -0
  109. package/dist/tool-call-display.js +136 -0
  110. package/dist/tool-name-normalization.d.ts +9 -0
  111. package/dist/tool-name-normalization.js +82 -0
  112. package/dist/validation/ws-outbound-schema-metadata.d.ts +11418 -0
  113. package/dist/validation/ws-outbound-schema-metadata.js +3 -0
  114. package/dist/validation/ws-outbound.d.ts +12 -0
  115. package/dist/validation/ws-outbound.js +8 -0
  116. package/dist/workspace-labels.d.ts +9 -0
  117. package/dist/workspace-labels.js +19 -0
  118. package/package.json +44 -0
@@ -0,0 +1,164 @@
1
+ import { z } from "zod";
2
+ import { AgentProviderSchema } from "../provider-manifest.js";
3
+ // COMPAT(agentLoops): retained after the v0.3.0 feature removal; remove after 2027-02-09 when mixed-version peers no longer send legacy messages.
4
+ export const LoopLogEntrySchema = z.object({
5
+ seq: z.number().int().positive(),
6
+ timestamp: z.string(),
7
+ iteration: z.number().int().positive().nullable(),
8
+ source: z.enum(["loop", "worker", "verifier", "verify-check"]),
9
+ level: z.enum(["info", "error"]),
10
+ text: z.string(),
11
+ });
12
+ export const LoopVerifyCheckResultSchema = z.object({
13
+ command: z.string(),
14
+ exitCode: z.number().int(),
15
+ passed: z.boolean(),
16
+ stdout: z.string(),
17
+ stderr: z.string(),
18
+ startedAt: z.string(),
19
+ completedAt: z.string(),
20
+ });
21
+ export const LoopVerifyPromptResultSchema = z.object({
22
+ passed: z.boolean(),
23
+ reason: z.string(),
24
+ verifierAgentId: z.string().nullable(),
25
+ startedAt: z.string(),
26
+ completedAt: z.string(),
27
+ });
28
+ export const LoopIterationRecordSchema = z.object({
29
+ index: z.number().int().positive(),
30
+ workerAgentId: z.string().nullable(),
31
+ workerStartedAt: z.string(),
32
+ workerCompletedAt: z.string().nullable(),
33
+ verifierAgentId: z.string().nullable(),
34
+ status: z.enum(["running", "succeeded", "failed", "stopped"]),
35
+ workerOutcome: z.enum(["completed", "failed", "canceled"]).nullable(),
36
+ failureReason: z.string().nullable(),
37
+ verifyChecks: z.array(LoopVerifyCheckResultSchema),
38
+ verifyPrompt: LoopVerifyPromptResultSchema.nullable(),
39
+ });
40
+ export const LoopRecordSchema = z.object({
41
+ id: z.string(),
42
+ name: z.string().nullable(),
43
+ prompt: z.string(),
44
+ cwd: z.string(),
45
+ provider: AgentProviderSchema,
46
+ model: z.string().nullable(),
47
+ modeId: z.string().nullable().default(null),
48
+ workerProvider: AgentProviderSchema.nullable(),
49
+ workerModel: z.string().nullable(),
50
+ verifierProvider: AgentProviderSchema.nullable(),
51
+ verifierModel: z.string().nullable(),
52
+ verifierModeId: z.string().nullable().default(null),
53
+ verifyPrompt: z.string().nullable(),
54
+ verifyChecks: z.array(z.string()),
55
+ archive: z.boolean(),
56
+ sleepMs: z.number().int().nonnegative(),
57
+ maxIterations: z.number().int().positive().nullable(),
58
+ maxTimeMs: z.number().int().positive().nullable(),
59
+ status: z.enum(["running", "succeeded", "failed", "stopped"]),
60
+ createdAt: z.string(),
61
+ updatedAt: z.string(),
62
+ startedAt: z.string(),
63
+ completedAt: z.string().nullable(),
64
+ stopRequestedAt: z.string().nullable(),
65
+ iterations: z.array(LoopIterationRecordSchema),
66
+ logs: z.array(LoopLogEntrySchema),
67
+ nextLogSeq: z.number().int().positive(),
68
+ activeIteration: z.number().int().positive().nullable(),
69
+ activeWorkerAgentId: z.string().nullable(),
70
+ activeVerifierAgentId: z.string().nullable(),
71
+ });
72
+ export const LoopListItemSchema = z.object({
73
+ id: z.string(),
74
+ name: z.string().nullable(),
75
+ status: z.enum(["running", "succeeded", "failed", "stopped"]),
76
+ cwd: z.string(),
77
+ createdAt: z.string(),
78
+ updatedAt: z.string(),
79
+ activeIteration: z.number().int().positive().nullable(),
80
+ });
81
+ export const LoopRunRequestSchema = z.object({
82
+ type: z.literal("loop/run"),
83
+ requestId: z.string(),
84
+ prompt: z.string().trim().min(1),
85
+ cwd: z.string(),
86
+ provider: AgentProviderSchema.optional(),
87
+ model: z.string().trim().min(1).optional(),
88
+ modeId: z.string().trim().min(1).optional(),
89
+ workerProvider: AgentProviderSchema.optional(),
90
+ workerModel: z.string().trim().min(1).optional(),
91
+ verifierProvider: AgentProviderSchema.optional(),
92
+ verifierModel: z.string().trim().min(1).optional(),
93
+ verifierModeId: z.string().trim().min(1).optional(),
94
+ verifyPrompt: z.string().trim().min(1).optional(),
95
+ verifyChecks: z.array(z.string().trim().min(1)).optional(),
96
+ archive: z.boolean().optional(),
97
+ name: z.string().trim().min(1).optional(),
98
+ sleepMs: z.number().int().nonnegative().optional(),
99
+ maxIterations: z.number().int().positive().optional(),
100
+ maxTimeMs: z.number().int().positive().optional(),
101
+ });
102
+ export const LoopListRequestSchema = z.object({
103
+ type: z.literal("loop/list"),
104
+ requestId: z.string(),
105
+ });
106
+ export const LoopInspectRequestSchema = z.object({
107
+ type: z.literal("loop/inspect"),
108
+ requestId: z.string(),
109
+ id: z.string().trim().min(1),
110
+ });
111
+ export const LoopLogsRequestSchema = z.object({
112
+ type: z.literal("loop/logs"),
113
+ requestId: z.string(),
114
+ id: z.string().trim().min(1),
115
+ afterSeq: z.number().int().nonnegative().optional(),
116
+ });
117
+ export const LoopStopRequestSchema = z.object({
118
+ type: z.literal("loop/stop"),
119
+ requestId: z.string(),
120
+ id: z.string().trim().min(1),
121
+ });
122
+ export const LoopRunResponseSchema = z.object({
123
+ type: z.literal("loop/run/response"),
124
+ payload: z.object({
125
+ requestId: z.string(),
126
+ loop: LoopRecordSchema.nullable(),
127
+ error: z.string().nullable(),
128
+ }),
129
+ });
130
+ export const LoopListResponseSchema = z.object({
131
+ type: z.literal("loop/list/response"),
132
+ payload: z.object({
133
+ requestId: z.string(),
134
+ loops: z.array(LoopListItemSchema),
135
+ error: z.string().nullable(),
136
+ }),
137
+ });
138
+ export const LoopInspectResponseSchema = z.object({
139
+ type: z.literal("loop/inspect/response"),
140
+ payload: z.object({
141
+ requestId: z.string(),
142
+ loop: LoopRecordSchema.nullable(),
143
+ error: z.string().nullable(),
144
+ }),
145
+ });
146
+ export const LoopLogsResponseSchema = z.object({
147
+ type: z.literal("loop/logs/response"),
148
+ payload: z.object({
149
+ requestId: z.string(),
150
+ loop: LoopRecordSchema.nullable(),
151
+ entries: z.array(LoopLogEntrySchema),
152
+ nextCursor: z.number().int().nonnegative(),
153
+ error: z.string().nullable(),
154
+ }),
155
+ });
156
+ export const LoopStopResponseSchema = z.object({
157
+ type: z.literal("loop/stop/response"),
158
+ payload: z.object({
159
+ requestId: z.string(),
160
+ loop: LoopRecordSchema.nullable(),
161
+ error: z.string().nullable(),
162
+ }),
163
+ });
164
+ //# sourceMappingURL=rpc-schemas.js.map