@rallycry/conveyor-agent 11.0.44 → 11.0.45

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.
@@ -1854,9 +1854,9 @@ async function runQueryGrafanaLogs(port, params, now = Date.now) {
1854
1854
  // ../shared/dist/index.js
1855
1855
  import { z as z3 } from "zod";
1856
1856
  import { z as z22 } from "zod";
1857
- import { z as z4 } from "zod";
1858
1857
  import { z as z32 } from "zod";
1859
1858
  import { z as z5 } from "zod";
1859
+ import { z as z4 } from "zod";
1860
1860
  import { z as z6 } from "zod";
1861
1861
  import { z as z7 } from "zod";
1862
1862
  import { z as z8 } from "zod";
@@ -1866,6 +1866,7 @@ import { z as z11 } from "zod";
1866
1866
  import { z as z12 } from "zod";
1867
1867
  import { z as z13 } from "zod";
1868
1868
  import { z as z14 } from "zod";
1869
+ import { z as z15 } from "zod";
1869
1870
  var EXTERNAL_AGENT_MESSAGE_SOURCE = "external_agent";
1870
1871
  var TUI_KINDS = ["claude-code", "opencode", "codex"];
1871
1872
  var ACHIEVEMENT_RARITIES = [
@@ -1988,182 +1989,191 @@ var RUNNER_MODES = [
1988
1989
  "shell",
1989
1990
  "serving"
1990
1991
  ];
1991
- var TurnEndToolCallSchema = z22.object({
1992
- tool: z22.string(),
1993
- input: z22.string().optional(),
1994
- output: z22.string().optional(),
1995
- timestamp: z22.string().optional()
1992
+ var siteAssetExtension = z22.string().regex(/^[a-z0-9]{1,10}$/);
1993
+ var RequestSiteAssetUploadRequestSchema = z22.object({
1994
+ projectId: z22.string(),
1995
+ siteId: z22.string().min(1).max(100),
1996
+ sha256: z22.string().regex(/^[a-f0-9]{64}$/),
1997
+ ext: siteAssetExtension,
1998
+ sizeBytes: z22.number().int().positive()
1999
+ });
2000
+ var ListSiteAssetTargetsRequestSchema = z22.object({ projectId: z22.string() });
2001
+ var TurnEndToolCallSchema = z32.object({
2002
+ tool: z32.string(),
2003
+ input: z32.string().optional(),
2004
+ output: z32.string().optional(),
2005
+ timestamp: z32.string().optional()
1996
2006
  }).passthrough();
1997
- var AgentTurnUsageSchema = z22.object({
1998
- inputTokens: z22.number(),
1999
- outputTokens: z22.number(),
2000
- cacheReadInputTokens: z22.number(),
2001
- cacheCreationInputTokens: z22.number(),
2002
- totalTokens: z22.number()
2003
- });
2004
- var KnownAgentEventSchema = z22.discriminatedUnion("type", [
2007
+ var AgentTurnUsageSchema = z32.object({
2008
+ inputTokens: z32.number(),
2009
+ outputTokens: z32.number(),
2010
+ cacheReadInputTokens: z32.number(),
2011
+ cacheCreationInputTokens: z32.number(),
2012
+ totalTokens: z32.number()
2013
+ });
2014
+ var KnownAgentEventSchema = z32.discriminatedUnion("type", [
2005
2015
  // ── Lifecycle / connection ────────────────────────────────────────────
2006
- z22.object({
2007
- type: z22.literal("connected"),
2008
- sessionId: z22.string(),
2009
- projectId: z22.string().optional()
2016
+ z32.object({
2017
+ type: z32.literal("connected"),
2018
+ sessionId: z32.string(),
2019
+ projectId: z32.string().optional()
2010
2020
  }).passthrough(),
2011
2021
  // Open-ended context snapshot spread from buildInitializationContext().
2012
- z22.object({ type: z22.literal("session_manifest") }).passthrough(),
2013
- z22.object({
2014
- type: z22.literal("agent_runner_status"),
2015
- reason: z22.string(),
2016
- attempt: z22.number().optional(),
2017
- attempts: z22.number().optional()
2022
+ z32.object({ type: z32.literal("session_manifest") }).passthrough(),
2023
+ z32.object({
2024
+ type: z32.literal("agent_runner_status"),
2025
+ reason: z32.string(),
2026
+ attempt: z32.number().optional(),
2027
+ attempts: z32.number().optional()
2018
2028
  }).passthrough(),
2019
- z22.object({ type: z22.literal("shutdown"), reason: z22.string().optional() }).passthrough(),
2020
- z22.object({ type: z22.literal("mode_changed"), agentMode: z22.string() }).passthrough(),
2021
- z22.object({ type: z22.literal("mode_transition"), from: z22.string(), to: z22.string() }).passthrough(),
2029
+ z32.object({ type: z32.literal("shutdown"), reason: z32.string().optional() }).passthrough(),
2030
+ z32.object({ type: z32.literal("mode_changed"), agentMode: z32.string() }).passthrough(),
2031
+ z32.object({ type: z32.literal("mode_transition"), from: z32.string(), to: z32.string() }).passthrough(),
2022
2032
  // ── Turn stream ───────────────────────────────────────────────────────
2023
- z22.object({ type: z22.literal("message"), content: z22.string() }).passthrough(),
2024
- z22.object({ type: z22.literal("thinking"), message: z22.string() }).passthrough(),
2025
- z22.object({
2026
- type: z22.literal("tool_use"),
2027
- tool: z22.string(),
2033
+ z32.object({ type: z32.literal("message"), content: z32.string() }).passthrough(),
2034
+ z32.object({ type: z32.literal("thinking"), message: z32.string() }).passthrough(),
2035
+ z32.object({
2036
+ type: z32.literal("tool_use"),
2037
+ tool: z32.string(),
2028
2038
  // Producers send JSON.stringify(input); consumers defend against
2029
2039
  // object inputs from older agents, so the wire stays permissive here.
2030
- input: z22.unknown().optional()
2040
+ input: z32.unknown().optional()
2031
2041
  }).passthrough(),
2032
- z22.object({
2033
- type: z22.literal("tool_result"),
2034
- tool: z22.string(),
2035
- output: z22.unknown().optional(),
2036
- isError: z22.boolean().optional(),
2037
- redactedCount: z22.number().optional()
2042
+ z32.object({
2043
+ type: z32.literal("tool_result"),
2044
+ tool: z32.string(),
2045
+ output: z32.unknown().optional(),
2046
+ isError: z32.boolean().optional(),
2047
+ redactedCount: z32.number().optional()
2038
2048
  }).passthrough(),
2039
- z22.object({ type: z22.literal("turn_end"), toolCalls: z22.array(TurnEndToolCallSchema) }).passthrough(),
2040
- z22.object({
2041
- type: z22.literal("completed"),
2042
- summary: z22.string().optional(),
2043
- durationMs: z22.number().optional(),
2049
+ z32.object({ type: z32.literal("turn_end"), toolCalls: z32.array(TurnEndToolCallSchema) }).passthrough(),
2050
+ z32.object({
2051
+ type: z32.literal("completed"),
2052
+ summary: z32.string().optional(),
2053
+ durationMs: z32.number().optional(),
2044
2054
  /** Tokens this turn consumed, summed from the transcript's assistant
2045
2055
  * records. Optional: an older agent build sends none, and the server
2046
2056
  * then records nothing rather than zeroing the session's totals. */
2047
2057
  usage: AgentTurnUsageSchema.optional()
2048
2058
  }).passthrough(),
2049
- z22.object({ type: z22.literal("error"), message: z22.string() }).passthrough(),
2050
- z22.object({ type: z22.literal("agent_typing_start") }).passthrough(),
2051
- z22.object({ type: z22.literal("agent_typing_stop") }).passthrough(),
2059
+ z32.object({ type: z32.literal("error"), message: z32.string() }).passthrough(),
2060
+ z32.object({ type: z32.literal("agent_typing_start") }).passthrough(),
2061
+ z32.object({ type: z32.literal("agent_typing_stop") }).passthrough(),
2052
2062
  // ── Telemetry ─────────────────────────────────────────────────────────
2053
2063
  // heartbeat/typing: legacy telemetry the server still classifies as
2054
2064
  // transient (TRANSIENT_EVENT_TYPES) — kept in the vocabulary.
2055
- z22.object({ type: z22.literal("heartbeat") }).passthrough(),
2056
- z22.object({ type: z22.literal("typing") }).passthrough(),
2057
- z22.object({
2058
- type: z22.literal("context_update"),
2059
- contextTokens: z22.number(),
2060
- contextWindow: z22.number(),
2061
- inputTokens: z22.number().optional(),
2062
- cacheReadInputTokens: z22.number().optional(),
2063
- cacheCreationInputTokens: z22.number().optional(),
2064
- totalTokensUsed: z22.number().optional()
2065
+ z32.object({ type: z32.literal("heartbeat") }).passthrough(),
2066
+ z32.object({ type: z32.literal("typing") }).passthrough(),
2067
+ z32.object({
2068
+ type: z32.literal("context_update"),
2069
+ contextTokens: z32.number(),
2070
+ contextWindow: z32.number(),
2071
+ inputTokens: z32.number().optional(),
2072
+ cacheReadInputTokens: z32.number().optional(),
2073
+ cacheCreationInputTokens: z32.number().optional(),
2074
+ totalTokensUsed: z32.number().optional()
2065
2075
  }).passthrough(),
2066
2076
  // Four producer shapes share this type: {rateLimitType, utilization, status}
2067
2077
  // (SDK rate_limit_event), {resetsAt} (agent-connection resume notice), the
2068
2078
  // usage-sampler ({rateLimitType, utilization, status, resetsAt, gauges}
2069
2079
  // — resetsAt matches rateLimitType; gauges survives via .passthrough()), and
2070
2080
  // {unmeasurable, reason} (the sampler reporting it cannot read this key).
2071
- z22.object({
2072
- type: z22.literal("rate_limit_update"),
2073
- rateLimitType: z22.string().optional(),
2074
- utilization: z22.number().optional(),
2075
- status: z22.string().optional(),
2076
- resetsAt: z22.string().optional(),
2077
- unmeasurable: z22.boolean().optional(),
2078
- reason: z22.string().optional()
2081
+ z32.object({
2082
+ type: z32.literal("rate_limit_update"),
2083
+ rateLimitType: z32.string().optional(),
2084
+ utilization: z32.number().optional(),
2085
+ status: z32.string().optional(),
2086
+ resetsAt: z32.string().optional(),
2087
+ unmeasurable: z32.boolean().optional(),
2088
+ reason: z32.string().optional()
2079
2089
  }).passthrough(),
2080
- z22.object({
2081
- type: z22.literal("context_compacted"),
2082
- trigger: z22.string().optional(),
2083
- preTokens: z22.number().optional()
2090
+ z32.object({
2091
+ type: z32.literal("context_compacted"),
2092
+ trigger: z32.string().optional(),
2093
+ preTokens: z32.number().optional()
2084
2094
  }).passthrough(),
2085
- z22.object({
2086
- type: z22.literal("tool_progress"),
2087
- toolName: z22.string().optional(),
2088
- elapsedSeconds: z22.number().optional()
2095
+ z32.object({
2096
+ type: z32.literal("tool_progress"),
2097
+ toolName: z32.string().optional(),
2098
+ elapsedSeconds: z32.number().optional()
2089
2099
  }).passthrough(),
2090
- z22.object({
2091
- type: z22.literal("subagent_started"),
2092
- sdkTaskId: z22.string().optional(),
2093
- description: z22.string().optional()
2100
+ z32.object({
2101
+ type: z32.literal("subagent_started"),
2102
+ sdkTaskId: z32.string().optional(),
2103
+ description: z32.string().optional()
2094
2104
  }).passthrough(),
2095
- z22.object({
2096
- type: z22.literal("subagent_progress"),
2097
- sdkTaskId: z22.string().optional(),
2098
- description: z22.string().optional(),
2099
- toolUses: z22.number().optional(),
2100
- durationMs: z22.number().optional()
2105
+ z32.object({
2106
+ type: z32.literal("subagent_progress"),
2107
+ sdkTaskId: z32.string().optional(),
2108
+ description: z32.string().optional(),
2109
+ toolUses: z32.number().optional(),
2110
+ durationMs: z32.number().optional()
2101
2111
  }).passthrough(),
2102
2112
  // ── Work products ─────────────────────────────────────────────────────
2103
- z22.object({ type: z22.literal("pr_created"), url: z22.string(), number: z22.number() }).passthrough(),
2104
- z22.object({
2105
- type: z22.literal("code_review_complete"),
2106
- result: z22.enum(["approved", "changes_requested"]),
2107
- summary: z22.string().optional(),
2108
- issues: z22.array(
2109
- z22.object({
2110
- file: z22.string(),
2111
- line: z22.number().optional(),
2112
- severity: z22.string().optional(),
2113
- description: z22.string().optional()
2113
+ z32.object({ type: z32.literal("pr_created"), url: z32.string(), number: z32.number() }).passthrough(),
2114
+ z32.object({
2115
+ type: z32.literal("code_review_complete"),
2116
+ result: z32.enum(["approved", "changes_requested"]),
2117
+ summary: z32.string().optional(),
2118
+ issues: z32.array(
2119
+ z32.object({
2120
+ file: z32.string(),
2121
+ line: z32.number().optional(),
2122
+ severity: z32.string().optional(),
2123
+ description: z32.string().optional()
2114
2124
  }).passthrough()
2115
2125
  ).optional()
2116
2126
  }).passthrough(),
2117
2127
  // ── Environment setup / start command ─────────────────────────────────
2118
- z22.object({ type: z22.literal("setup_output"), stream: z22.string(), data: z22.string() }).passthrough(),
2119
- z22.object({
2120
- type: z22.literal("setup_complete"),
2121
- startCommandRunning: z22.boolean().optional(),
2122
- startCommandConfigured: z22.boolean().optional(),
2128
+ z32.object({ type: z32.literal("setup_output"), stream: z32.string(), data: z32.string() }).passthrough(),
2129
+ z32.object({
2130
+ type: z32.literal("setup_complete"),
2131
+ startCommandRunning: z32.boolean().optional(),
2132
+ startCommandConfigured: z32.boolean().optional(),
2123
2133
  // Sanitized server-side by sanitizeSessionPreviewPorts — stays unknown.
2124
- previewPorts: z22.unknown().optional(),
2134
+ previewPorts: z32.unknown().optional(),
2125
2135
  // Sanitized server-side by sanitizeSessionPreviewLinks — stays unknown.
2126
- previewLinks: z22.unknown().optional()
2136
+ previewLinks: z32.unknown().optional()
2127
2137
  }).passthrough(),
2128
- z22.object({ type: z22.literal("setup_error"), message: z22.string() }).passthrough(),
2129
- z22.object({ type: z22.literal("start_command_started") }).passthrough(),
2130
- z22.object({ type: z22.literal("start_command_output"), stream: z22.string(), data: z22.string() }).passthrough(),
2131
- z22.object({
2132
- type: z22.literal("start_command_exited"),
2133
- code: z22.number().nullable().optional(),
2134
- signal: z22.string().nullable().optional(),
2135
- message: z22.string().optional()
2138
+ z32.object({ type: z32.literal("setup_error"), message: z32.string() }).passthrough(),
2139
+ z32.object({ type: z32.literal("start_command_started") }).passthrough(),
2140
+ z32.object({ type: z32.literal("start_command_output"), stream: z32.string(), data: z32.string() }).passthrough(),
2141
+ z32.object({
2142
+ type: z32.literal("start_command_exited"),
2143
+ code: z32.number().nullable().optional(),
2144
+ signal: z32.string().nullable().optional(),
2145
+ message: z32.string().optional()
2136
2146
  }).passthrough(),
2137
- z22.object({ type: z22.literal("start_command_error"), message: z22.string() }).passthrough()
2147
+ z32.object({ type: z32.literal("start_command_error"), message: z32.string() }).passthrough()
2138
2148
  ]);
2139
- var AgentEventSchema = z22.union([
2149
+ var AgentEventSchema = z32.union([
2140
2150
  KnownAgentEventSchema,
2141
- z22.object({ type: z22.string().min(1) }).catchall(z22.unknown())
2151
+ z32.object({ type: z32.string().min(1) }).catchall(z32.unknown())
2142
2152
  ]);
2143
- var PtyChatAtSchema = z32.string().max(40).optional();
2144
- var PtyChatTurnUsageSchema = z32.object({
2145
- input: z32.number().int().nonnegative(),
2146
- output: z32.number().int().nonnegative(),
2147
- cacheRead: z32.number().int().nonnegative(),
2148
- cacheWrite: z32.number().int().nonnegative()
2149
- });
2150
- var PtyChatTurnFileSchema = z32.object({
2151
- path: z32.string().max(500),
2152
- added: z32.number().int(),
2153
- removed: z32.number().int()
2153
+ var PtyChatAtSchema = z4.string().max(40).optional();
2154
+ var PtyChatTurnUsageSchema = z4.object({
2155
+ input: z4.number().int().nonnegative(),
2156
+ output: z4.number().int().nonnegative(),
2157
+ cacheRead: z4.number().int().nonnegative(),
2158
+ cacheWrite: z4.number().int().nonnegative()
2159
+ });
2160
+ var PtyChatTurnFileSchema = z4.object({
2161
+ path: z4.string().max(500),
2162
+ added: z4.number().int(),
2163
+ removed: z4.number().int()
2154
2164
  });
2155
2165
  var PTY_CHAT_TURN_FILES_MAX = 50;
2156
- var PtyChatEventPayloadSchema = z32.discriminatedUnion("kind", [
2157
- z32.object({
2158
- kind: z32.literal("init"),
2166
+ var PtyChatEventPayloadSchema = z4.discriminatedUnion("kind", [
2167
+ z4.object({
2168
+ kind: z4.literal("init"),
2159
2169
  at: PtyChatAtSchema,
2160
- model: z32.string().max(200),
2161
- claudeSessionId: z32.string().max(100).optional()
2170
+ model: z4.string().max(200),
2171
+ claudeSessionId: z4.string().max(100).optional()
2162
2172
  }),
2163
- z32.object({
2164
- kind: z32.literal("user_text"),
2173
+ z4.object({
2174
+ kind: z4.literal("user_text"),
2165
2175
  at: PtyChatAtSchema,
2166
- text: z32.string().max(16384),
2176
+ text: z4.string().max(16384),
2167
2177
  // Set by the SERVER (never the agent) when this prompt was injected by
2168
2178
  // Conveyor rather than typed by a human — the routed message's `source`
2169
2179
  // (`ci_success`, `review_trigger`, `automated_feedback`, …). The agent
@@ -2172,88 +2182,88 @@ var PtyChatEventPayloadSchema = z32.discriminatedUnion("kind", [
2172
2182
  // builder chat renders "All CI checks passed on your PR." as the human's
2173
2183
  // own bubble. Absent ⇒ a genuine human prompt. Exception: the AGENT sets
2174
2184
  // `model_switch` on the notice it emits after a live model/effort switch.
2175
- source: z32.string().max(60).optional()
2185
+ source: z4.string().max(60).optional()
2176
2186
  }),
2177
- z32.object({
2178
- kind: z32.literal("assistant_text"),
2187
+ z4.object({
2188
+ kind: z4.literal("assistant_text"),
2179
2189
  at: PtyChatAtSchema,
2180
- text: z32.string().max(16384),
2181
- model: z32.string().max(200).optional()
2190
+ text: z4.string().max(16384),
2191
+ model: z4.string().max(200).optional()
2182
2192
  }),
2183
- z32.object({
2184
- kind: z32.literal("tool_use"),
2193
+ z4.object({
2194
+ kind: z4.literal("tool_use"),
2185
2195
  at: PtyChatAtSchema,
2186
- name: z32.string().max(200),
2196
+ name: z4.string().max(200),
2187
2197
  // Compact preview: JSON.stringify(input) truncated agent-side. The cap
2188
2198
  // matches the text events because AskUserQuestion payloads ride this field
2189
2199
  // and the web lifts them into an interactive card — a tight cap forced
2190
2200
  // option descriptions down to 80 chars, making them unreadable. Every
2191
2201
  // other tool keeps a far smaller agent-side budget (`TOOL_INPUT_MAX` in
2192
2202
  // `chat-record-mapper.ts`), so the ring does not grow for normal calls.
2193
- input: z32.string().max(16384),
2203
+ input: z4.string().max(16384),
2194
2204
  // Transcript tool_use block id — lets the client pair the tool_result.
2195
- id: z32.string().max(100).optional()
2205
+ id: z4.string().max(100).optional()
2196
2206
  }),
2197
- z32.object({
2198
- kind: z32.literal("tool_result"),
2207
+ z4.object({
2208
+ kind: z4.literal("tool_result"),
2199
2209
  at: PtyChatAtSchema,
2200
2210
  // tool_use block id this result answers (absent on malformed records).
2201
- toolUseId: z32.string().max(100).optional(),
2211
+ toolUseId: z4.string().max(100).optional(),
2202
2212
  // Compact output preview, truncated agent-side.
2203
- output: z32.string().max(2e3),
2204
- isError: z32.boolean().optional()
2213
+ output: z4.string().max(2e3),
2214
+ isError: z4.boolean().optional()
2205
2215
  }),
2206
- z32.object({
2207
- kind: z32.literal("turn_end"),
2216
+ z4.object({
2217
+ kind: z4.literal("turn_end"),
2208
2218
  at: PtyChatAtSchema,
2209
2219
  // Wall-clock turn length as the CLI measured it ("Worked for 23s").
2210
- durationMs: z32.number().int().nonnegative().optional(),
2220
+ durationMs: z4.number().int().nonnegative().optional(),
2211
2221
  // Last model that answered in this turn.
2212
- model: z32.string().max(200).optional(),
2222
+ model: z4.string().max(200).optional(),
2213
2223
  // Token usage summed over the turn's API responses.
2214
2224
  usage: PtyChatTurnUsageSchema.optional(),
2215
2225
  // Files the turn edited, with line counts. Absent when nothing was edited.
2216
- files: z32.array(PtyChatTurnFileSchema).max(PTY_CHAT_TURN_FILES_MAX).optional()
2226
+ files: z4.array(PtyChatTurnFileSchema).max(PTY_CHAT_TURN_FILES_MAX).optional()
2217
2227
  })
2218
2228
  ]);
2219
- var PtyChatEventRequestSchema = z32.object({
2220
- sessionId: z32.string(),
2229
+ var PtyChatEventRequestSchema = z4.object({
2230
+ sessionId: z4.string(),
2221
2231
  event: PtyChatEventPayloadSchema
2222
2232
  });
2223
- var PtyChatAttachRequestSchema = z32.object({
2224
- sessionId: z32.string()
2233
+ var PtyChatAttachRequestSchema = z4.object({
2234
+ sessionId: z4.string()
2225
2235
  });
2226
2236
  var PTY_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
2227
- var SetPtyModelEffortRequestSchema = z32.object({
2228
- sessionId: z32.string(),
2229
- model: z32.string().min(1).max(200).optional(),
2230
- effort: z32.enum(PTY_EFFORT_LEVELS).optional()
2237
+ var SetPtyModelEffortRequestSchema = z4.object({
2238
+ sessionId: z4.string(),
2239
+ model: z4.string().min(1).max(200).optional(),
2240
+ effort: z4.enum(PTY_EFFORT_LEVELS).optional()
2231
2241
  }).refine((p) => p.model !== void 0 || p.effort !== void 0, {
2232
2242
  message: "model or effort is required"
2233
2243
  });
2234
- var cardDescription = z4.string().max(CARD_DESCRIPTION_MAX, CARD_DESCRIPTION_LIMIT_MESSAGE).optional();
2235
- var AgentHeartbeatSchema = z4.object({
2236
- sessionId: z4.string().optional(),
2237
- timestamp: z4.string(),
2238
- status: z4.enum(["active", "idle", "building"]),
2239
- currentAction: z4.string().optional(),
2244
+ var cardDescription = z5.string().max(CARD_DESCRIPTION_MAX, CARD_DESCRIPTION_LIMIT_MESSAGE).optional();
2245
+ var AgentHeartbeatSchema = z5.object({
2246
+ sessionId: z5.string().optional(),
2247
+ timestamp: z5.string(),
2248
+ status: z5.enum(["active", "idle", "building"]),
2249
+ currentAction: z5.string().optional(),
2240
2250
  /** Sender-observed main event-loop lag (ms) — see AgentHeartbeat.loopLagMs. */
2241
- loopLagMs: z4.number().nonnegative().optional()
2251
+ loopLagMs: z5.number().nonnegative().optional()
2242
2252
  });
2243
- var CreatePRInputSchema = z4.object({
2244
- title: z4.string().min(1),
2245
- body: z4.string(),
2246
- head: z4.string().optional(),
2247
- base: z4.string().optional()
2253
+ var CreatePRInputSchema = z5.object({
2254
+ title: z5.string().min(1),
2255
+ body: z5.string(),
2256
+ head: z5.string().optional(),
2257
+ base: z5.string().optional()
2248
2258
  });
2249
- var PostToChatInputSchema = z4.object({
2250
- message: z4.string().min(1),
2251
- type: z4.enum(["message", "question", "update"]).optional().default("message"),
2252
- milestone: z4.enum(["plan_ready", "implementation_complete", "blocked"]).optional()
2259
+ var PostToChatInputSchema = z5.object({
2260
+ message: z5.string().min(1),
2261
+ type: z5.enum(["message", "question", "update"]).optional().default("message"),
2262
+ milestone: z5.enum(["plan_ready", "implementation_complete", "blocked"]).optional()
2253
2263
  });
2254
- var GetTaskContextRequestSchema = z4.object({
2255
- sessionId: z4.string(),
2256
- includeHistory: z4.boolean().optional().default(false),
2264
+ var GetTaskContextRequestSchema = z5.object({
2265
+ sessionId: z5.string(),
2266
+ includeHistory: z5.boolean().optional().default(false),
2257
2267
  /**
2258
2268
  * Read the plan-revised marker WITHOUT consuming it. Bookkeeping fetches
2259
2269
  * (the session-identity check, the branch refresh) pass true so they cannot
@@ -2261,293 +2271,293 @@ var GetTaskContextRequestSchema = z4.object({
2261
2271
  * Defaults to false — consuming — so a pod running an older agent build still
2262
2272
  * clears the marker instead of showing the notice on every boot forever.
2263
2273
  */
2264
- peekPlanRevision: z4.boolean().optional().default(false)
2274
+ peekPlanRevision: z5.boolean().optional().default(false)
2265
2275
  });
2266
- var GetChatMessagesRequestSchema = z4.object({
2267
- sessionId: z4.string(),
2268
- limit: z4.number().int().positive().optional().default(50),
2269
- offset: z4.number().int().nonnegative().optional().default(0),
2276
+ var GetChatMessagesRequestSchema = z5.object({
2277
+ sessionId: z5.string(),
2278
+ limit: z5.number().int().positive().optional().default(50),
2279
+ offset: z5.number().int().nonnegative().optional().default(0),
2270
2280
  /** Task id or slug to read chat from. Omit for the session's own task. Only
2271
2281
  * the session's own task or one of its children resolves — anything else is
2272
2282
  * an error, never a silent fallback to the caller's own chat. */
2273
- taskId: z4.string().optional()
2283
+ taskId: z5.string().optional()
2274
2284
  });
2275
- var GetTaskFilesRequestSchema = z4.object({
2276
- sessionId: z4.string(),
2277
- taskId: z4.string().optional()
2285
+ var GetTaskFilesRequestSchema = z5.object({
2286
+ sessionId: z5.string(),
2287
+ taskId: z5.string().optional()
2278
2288
  });
2279
- var GetTaskFileRequestSchema = z4.object({
2280
- sessionId: z4.string(),
2281
- fileId: z4.string(),
2282
- taskId: z4.string().optional()
2289
+ var GetTaskFileRequestSchema = z5.object({
2290
+ sessionId: z5.string(),
2291
+ fileId: z5.string(),
2292
+ taskId: z5.string().optional()
2283
2293
  });
2284
- var DeleteTaskFileRequestSchema = z4.object({
2285
- sessionId: z4.string(),
2286
- fileId: z4.string()
2294
+ var DeleteTaskFileRequestSchema = z5.object({
2295
+ sessionId: z5.string(),
2296
+ fileId: z5.string()
2287
2297
  });
2288
- var SetTaskFileShowcaseRequestSchema = z4.object({
2289
- sessionId: z4.string(),
2290
- fileId: z4.string(),
2291
- showcase: z4.boolean()
2298
+ var SetTaskFileShowcaseRequestSchema = z5.object({
2299
+ sessionId: z5.string(),
2300
+ fileId: z5.string(),
2301
+ showcase: z5.boolean()
2292
2302
  });
2293
- var GetTaskRequestSchema = z4.object({
2294
- sessionId: z4.string(),
2295
- taskSlugOrId: z4.string()
2303
+ var GetTaskRequestSchema = z5.object({
2304
+ sessionId: z5.string(),
2305
+ taskSlugOrId: z5.string()
2296
2306
  });
2297
- var GetCliHistoryRequestSchema = z4.object({
2298
- sessionId: z4.string(),
2299
- limit: z4.number().int().positive().optional().default(100),
2300
- source: z4.enum(["agent", "application"]).optional(),
2307
+ var GetCliHistoryRequestSchema = z5.object({
2308
+ sessionId: z5.string(),
2309
+ limit: z5.number().int().positive().optional().default(100),
2310
+ source: z5.enum(["agent", "application"]).optional(),
2301
2311
  /** Task id or slug to read logs from. Omit for the session's own task. Only
2302
2312
  * the session's own task or one of its children resolves — anything else is
2303
2313
  * an error, never a silent fallback to the caller's own logs. */
2304
- taskId: z4.string().optional()
2314
+ taskId: z5.string().optional()
2305
2315
  });
2306
- var ListSubtasksRequestSchema = z4.object({
2307
- sessionId: z4.string(),
2316
+ var ListSubtasksRequestSchema = z5.object({
2317
+ sessionId: z5.string(),
2308
2318
  /** "compact" returns the slim orchestration view (ListSubtasksCompactResponse:
2309
2319
  * per-child status, agent, story points, PR state, dependencies); "full" (default — wire-compat with older
2310
2320
  * agents) returns the verbose SubtaskSummaryDTO[] including description/plan. */
2311
- view: z4.enum(["compact", "full"]).optional()
2321
+ view: z5.enum(["compact", "full"]).optional()
2312
2322
  });
2313
- var GetDependenciesRequestSchema = z4.object({
2314
- sessionId: z4.string()
2323
+ var GetDependenciesRequestSchema = z5.object({
2324
+ sessionId: z5.string()
2315
2325
  });
2316
- var GetSuggestionsRequestSchema = z4.object({
2317
- sessionId: z4.string(),
2318
- status: z4.string().optional(),
2319
- limit: z4.number().int().min(1).max(100).optional()
2326
+ var GetSuggestionsRequestSchema = z5.object({
2327
+ sessionId: z5.string(),
2328
+ status: z5.string().optional(),
2329
+ limit: z5.number().int().min(1).max(100).optional()
2320
2330
  });
2321
- var ListManualTestsRequestSchema = z4.object({
2322
- sessionId: z4.string()
2331
+ var ListManualTestsRequestSchema = z5.object({
2332
+ sessionId: z5.string()
2323
2333
  });
2324
- var QueryManualTestsRequestSchema = z4.object({
2325
- sessionId: z4.string(),
2326
- cardStatuses: z4.array(z4.string()).optional(),
2327
- testStatuses: z4.array(z4.enum(["open", "approved", "rejected"])).optional()
2334
+ var QueryManualTestsRequestSchema = z5.object({
2335
+ sessionId: z5.string(),
2336
+ cardStatuses: z5.array(z5.string()).optional(),
2337
+ testStatuses: z5.array(z5.enum(["open", "approved", "rejected"])).optional()
2328
2338
  });
2329
- var CreatePullRequestRequestSchema = CreatePRInputSchema.extend({ sessionId: z4.string() });
2330
- var RequestFileUploadRequestSchema = z4.object({
2331
- sessionId: z4.string(),
2332
- fileName: z4.string().min(1).max(255),
2333
- mimeType: z4.string().min(1).max(128),
2334
- fileSize: z4.number().int().positive().max(MAX_FILE_SIZE_BYTES)
2339
+ var CreatePullRequestRequestSchema = CreatePRInputSchema.extend({ sessionId: z5.string() });
2340
+ var RequestFileUploadRequestSchema = z5.object({
2341
+ sessionId: z5.string(),
2342
+ fileName: z5.string().min(1).max(255),
2343
+ mimeType: z5.string().min(1).max(128),
2344
+ fileSize: z5.number().int().positive().max(MAX_FILE_SIZE_BYTES)
2335
2345
  });
2336
- var ConfirmFileUploadRequestSchema = z4.object({
2337
- sessionId: z4.string(),
2338
- fileId: z4.string(),
2339
- title: z4.string().max(500).optional(),
2346
+ var ConfirmFileUploadRequestSchema = z5.object({
2347
+ sessionId: z5.string(),
2348
+ fileId: z5.string(),
2349
+ title: z5.string().max(500).optional(),
2340
2350
  /** Glossary tag names (or ids) this file is an example of. */
2341
- tags: z4.array(z4.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional(),
2351
+ tags: z5.array(z5.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional(),
2342
2352
  /** Mark the file as the card's showcase (the deliverable). */
2343
- showcase: z4.boolean().optional(),
2353
+ showcase: z5.boolean().optional(),
2344
2354
  /** Id of an older file on the same card this upload replaces. */
2345
- supersedes: z4.string().min(1).max(64).optional()
2355
+ supersedes: z5.string().min(1).max(64).optional()
2346
2356
  });
2347
- var UpdateTaskStatusRequestSchema = z4.object({
2348
- sessionId: z4.string(),
2349
- status: z4.string(),
2350
- force: z4.boolean().optional().default(false)
2357
+ var UpdateTaskStatusRequestSchema = z5.object({
2358
+ sessionId: z5.string(),
2359
+ status: z5.string(),
2360
+ force: z5.boolean().optional().default(false)
2351
2361
  });
2352
- var StoreSessionIdRequestSchema = z4.object({
2353
- sessionId: z4.string(),
2354
- sdkSessionId: z4.string()
2362
+ var StoreSessionIdRequestSchema = z5.object({
2363
+ sessionId: z5.string(),
2364
+ sdkSessionId: z5.string()
2355
2365
  });
2356
- var SetManualTestsRequestSchema = z4.object({
2357
- sessionId: z4.string(),
2366
+ var SetManualTestsRequestSchema = z5.object({
2367
+ sessionId: z5.string(),
2358
2368
  items: ManualTestItemsSchema
2359
2369
  });
2360
- var EditManualTestRequestSchema = z4.object({
2361
- sessionId: z4.string(),
2362
- title: z4.string().min(1),
2363
- newTitle: z4.string().min(1)
2370
+ var EditManualTestRequestSchema = z5.object({
2371
+ sessionId: z5.string(),
2372
+ title: z5.string().min(1),
2373
+ newTitle: z5.string().min(1)
2364
2374
  });
2365
- var RemoveManualTestRequestSchema = z4.object({
2366
- sessionId: z4.string(),
2367
- title: z4.string().min(1)
2375
+ var RemoveManualTestRequestSchema = z5.object({
2376
+ sessionId: z5.string(),
2377
+ title: z5.string().min(1)
2368
2378
  });
2369
- var ApproveManualTestRequestSchema = z4.object({
2370
- sessionId: z4.string(),
2371
- title: z4.string().min(1)
2379
+ var ApproveManualTestRequestSchema = z5.object({
2380
+ sessionId: z5.string(),
2381
+ title: z5.string().min(1)
2372
2382
  });
2373
- var RejectManualTestRequestSchema = z4.object({
2374
- sessionId: z4.string(),
2375
- title: z4.string().min(1),
2376
- reason: z4.string().min(1).max(2e3)
2383
+ var RejectManualTestRequestSchema = z5.object({
2384
+ sessionId: z5.string(),
2385
+ title: z5.string().min(1),
2386
+ reason: z5.string().min(1).max(2e3)
2377
2387
  });
2378
- var SessionStartRequestSchema = z4.object({
2379
- sessionId: z4.string(),
2380
- agentVersion: z4.string(),
2381
- capabilities: z4.array(z4.string())
2388
+ var SessionStartRequestSchema = z5.object({
2389
+ sessionId: z5.string(),
2390
+ agentVersion: z5.string(),
2391
+ capabilities: z5.array(z5.string())
2382
2392
  });
2383
- var SessionStopRequestSchema = z4.object({
2384
- sessionId: z4.string(),
2385
- reason: z4.string().optional()
2393
+ var SessionStopRequestSchema = z5.object({
2394
+ sessionId: z5.string(),
2395
+ reason: z5.string().optional()
2386
2396
  });
2387
- var EndReviewSessionRequestSchema = z4.object({
2388
- sessionId: z4.string(),
2389
- reason: z4.enum(["approved", "changes_requested", "finished"]).optional()
2397
+ var EndReviewSessionRequestSchema = z5.object({
2398
+ sessionId: z5.string(),
2399
+ reason: z5.enum(["approved", "changes_requested", "finished"]).optional()
2390
2400
  });
2391
- var ConnectAgentRequestSchema = z4.object({
2392
- sessionId: z4.string()
2401
+ var ConnectAgentRequestSchema = z5.object({
2402
+ sessionId: z5.string()
2393
2403
  });
2394
- var ReportAgentStatusRequestSchema = z4.object({
2395
- sessionId: z4.string(),
2396
- status: z4.string(),
2404
+ var ReportAgentStatusRequestSchema = z5.object({
2405
+ sessionId: z5.string(),
2406
+ status: z5.string(),
2397
2407
  /** Why the agent reports this status (e.g. "user_question" while an AskUserQuestion questionnaire is pending in the TUI). */
2398
- reason: z4.string().optional(),
2408
+ reason: z5.string().optional(),
2399
2409
  /**
2400
2410
  * The pending question text, sent only alongside `reason: "user_question"`
2401
2411
  * so the server can surface it in the user-question notification body (and
2402
2412
  * thus the Attention feed) instead of a generic string. Optional: older
2403
2413
  * agents omit it and the server falls back to the generic wording.
2404
2414
  */
2405
- questionText: z4.string().optional()
2415
+ questionText: z5.string().optional()
2406
2416
  });
2407
- var NotifyAgentVersionRequestSchema = z4.object({
2408
- sessionId: z4.string(),
2409
- agentVersion: z4.string()
2417
+ var NotifyAgentVersionRequestSchema = z5.object({
2418
+ sessionId: z5.string(),
2419
+ agentVersion: z5.string()
2410
2420
  });
2411
- var DiscoveredPortSchema = z4.object({
2412
- port: z4.number().int().min(1).max(65535),
2413
- label: z4.string().min(1).max(64).optional(),
2414
- protocol: z4.enum(["http", "tcp"]).optional(),
2415
- detectedAt: z4.string(),
2416
- hidden: z4.boolean().optional()
2421
+ var DiscoveredPortSchema = z5.object({
2422
+ port: z5.number().int().min(1).max(65535),
2423
+ label: z5.string().min(1).max(64).optional(),
2424
+ protocol: z5.enum(["http", "tcp"]).optional(),
2425
+ detectedAt: z5.string(),
2426
+ hidden: z5.boolean().optional()
2417
2427
  });
2418
- var ReportDiscoveredPortsRequestSchema = z4.object({
2419
- sessionId: z4.string(),
2420
- ports: z4.array(DiscoveredPortSchema).max(64)
2428
+ var ReportDiscoveredPortsRequestSchema = z5.object({
2429
+ sessionId: z5.string(),
2430
+ ports: z5.array(DiscoveredPortSchema).max(64)
2421
2431
  });
2422
- var ReportBootMilestoneRequestSchema = z4.object({
2423
- sessionId: z4.string(),
2424
- key: z4.string().max(64)
2432
+ var ReportBootMilestoneRequestSchema = z5.object({
2433
+ sessionId: z5.string(),
2434
+ key: z5.string().max(64)
2425
2435
  });
2426
- var CreateSubtaskRequestSchema = z4.object({
2427
- sessionId: z4.string(),
2428
- title: z4.string().min(1),
2436
+ var CreateSubtaskRequestSchema = z5.object({
2437
+ sessionId: z5.string(),
2438
+ title: z5.string().min(1),
2429
2439
  description: cardDescription,
2430
- plan: z4.string().optional(),
2431
- storyPointValue: z4.number().int().positive().optional(),
2432
- ordinal: z4.number().int().nonnegative().optional(),
2433
- followParentStatus: z4.boolean().optional(),
2440
+ plan: z5.string().optional(),
2441
+ storyPointValue: z5.number().int().positive().optional(),
2442
+ ordinal: z5.number().int().nonnegative().optional(),
2443
+ followParentStatus: z5.boolean().optional(),
2434
2444
  /** Sibling subtask ids or slugs this subtask blocks on (explicit dependency
2435
2445
  * metadata — preferred over encoding order in plan text / ordinal). */
2436
- dependsOn: z4.array(z4.string().min(1)).max(32).optional(),
2446
+ dependsOn: z5.array(z5.string().min(1)).max(32).optional(),
2437
2447
  /** Glossary tag names to assign to the child. Unmatched names come back in
2438
2448
  * the response rather than failing the create. */
2439
- tags: z4.array(z4.string().min(1)).max(10).optional()
2449
+ tags: z5.array(z5.string().min(1)).max(10).optional()
2440
2450
  });
2441
- var UpdateSubtaskRequestSchema = z4.object({
2442
- sessionId: z4.string(),
2443
- subtaskId: z4.string(),
2444
- title: z4.string().min(1).optional(),
2451
+ var UpdateSubtaskRequestSchema = z5.object({
2452
+ sessionId: z5.string(),
2453
+ subtaskId: z5.string(),
2454
+ title: z5.string().min(1).optional(),
2445
2455
  description: cardDescription,
2446
- plan: z4.string().optional(),
2456
+ plan: z5.string().optional(),
2447
2457
  /** Orchestration statuses only ("Planning" | "Open") — the pack parent's
2448
2458
  * sanctioned promotion path. Execution statuses stay with the build
2449
2459
  * pipeline / force_update_task_status. Enforced server-side. */
2450
- status: z4.string().optional(),
2460
+ status: z5.string().optional(),
2451
2461
  /** Assign a project agent to the child — accepts the agent's id or exact
2452
2462
  * name; resolved against the parent task's project server-side. */
2453
- agentIdOrName: z4.string().min(1).optional(),
2454
- storyPointValue: z4.number().int().positive().optional(),
2455
- followParentStatus: z4.boolean().optional(),
2463
+ agentIdOrName: z5.string().min(1).optional(),
2464
+ storyPointValue: z5.number().int().positive().optional(),
2465
+ followParentStatus: z5.boolean().optional(),
2456
2466
  /** Replace this subtask's dependency edges with these sibling ids/slugs.
2457
2467
  * Empty array clears all. Omit to leave dependencies unchanged. */
2458
- dependsOn: z4.array(z4.string().min(1)).max(32).optional()
2468
+ dependsOn: z5.array(z5.string().min(1)).max(32).optional()
2459
2469
  });
2460
- var DeleteSubtaskRequestSchema = z4.object({
2461
- sessionId: z4.string(),
2462
- subtaskId: z4.string()
2470
+ var DeleteSubtaskRequestSchema = z5.object({
2471
+ sessionId: z5.string(),
2472
+ subtaskId: z5.string()
2463
2473
  });
2464
- var SetSubtaskParentRequestSchema = z4.object({
2465
- sessionId: z4.string(),
2466
- taskId: z4.string().min(1),
2467
- detach: z4.boolean().optional(),
2468
- ordinal: z4.number().int().nonnegative().optional(),
2469
- followParentStatus: z4.boolean().optional()
2474
+ var SetSubtaskParentRequestSchema = z5.object({
2475
+ sessionId: z5.string(),
2476
+ taskId: z5.string().min(1),
2477
+ detach: z5.boolean().optional(),
2478
+ ordinal: z5.number().int().nonnegative().optional(),
2479
+ followParentStatus: z5.boolean().optional()
2470
2480
  });
2471
- var GetTaskPropertiesRequestSchema = z4.object({
2472
- sessionId: z4.string()
2481
+ var GetTaskPropertiesRequestSchema = z5.object({
2482
+ sessionId: z5.string()
2473
2483
  });
2474
- var UpdateTaskFieldsRequestSchema = z4.object({
2475
- sessionId: z4.string(),
2476
- plan: z4.string().optional(),
2484
+ var UpdateTaskFieldsRequestSchema = z5.object({
2485
+ sessionId: z5.string(),
2486
+ plan: z5.string().optional(),
2477
2487
  description: cardDescription
2478
2488
  });
2479
- var UpdateTaskPropertiesRequestSchema = z4.object({
2480
- sessionId: z4.string(),
2481
- title: z4.string().optional(),
2482
- storyPointValue: z4.number().int().positive().optional(),
2483
- tagIds: z4.array(z4.string()).optional(),
2484
- tagNames: z4.array(z4.string()).optional(),
2485
- githubPRUrl: z4.string().url().optional(),
2486
- githubBranch: z4.string().optional(),
2489
+ var UpdateTaskPropertiesRequestSchema = z5.object({
2490
+ sessionId: z5.string(),
2491
+ title: z5.string().optional(),
2492
+ storyPointValue: z5.number().int().positive().optional(),
2493
+ tagIds: z5.array(z5.string()).optional(),
2494
+ tagNames: z5.array(z5.string()).optional(),
2495
+ githubPRUrl: z5.string().url().optional(),
2496
+ githubBranch: z5.string().optional(),
2487
2497
  // Canonical risk level, or null to clear — same semantics as the headless
2488
2498
  // update_task boundary (resolved to the project's Risk row in the handler).
2489
2499
  risk: riskLevelSchema.nullable().optional()
2490
2500
  });
2491
- var ListIconsRequestSchema = z4.object({
2492
- sessionId: z4.string()
2501
+ var ListIconsRequestSchema = z5.object({
2502
+ sessionId: z5.string()
2493
2503
  });
2494
- var GenerateTaskIconRequestSchema = z4.object({
2495
- sessionId: z4.string(),
2496
- prompt: z4.string().min(1),
2497
- aspectRatio: z4.string().optional()
2504
+ var GenerateTaskIconRequestSchema = z5.object({
2505
+ sessionId: z5.string(),
2506
+ prompt: z5.string().min(1),
2507
+ aspectRatio: z5.string().optional()
2498
2508
  });
2499
- var SearchFaIconsRequestSchema = z4.object({
2500
- sessionId: z4.string(),
2501
- query: z4.string().min(1),
2502
- first: z4.number().int().positive().optional()
2509
+ var SearchFaIconsRequestSchema = z5.object({
2510
+ sessionId: z5.string(),
2511
+ query: z5.string().min(1),
2512
+ first: z5.number().int().positive().optional()
2503
2513
  });
2504
- var PickFaIconRequestSchema = z4.object({
2505
- sessionId: z4.string(),
2506
- fontAwesomeId: z4.string().min(1),
2507
- fontAwesomeStyle: z4.string().optional()
2514
+ var PickFaIconRequestSchema = z5.object({
2515
+ sessionId: z5.string(),
2516
+ fontAwesomeId: z5.string().min(1),
2517
+ fontAwesomeStyle: z5.string().optional()
2508
2518
  });
2509
- var CreateFollowUpTaskRequestSchema = z4.object({
2510
- sessionId: z4.string(),
2511
- title: z4.string().min(1),
2519
+ var CreateFollowUpTaskRequestSchema = z5.object({
2520
+ sessionId: z5.string(),
2521
+ title: z5.string().min(1),
2512
2522
  description: cardDescription,
2513
- plan: z4.string().optional(),
2514
- storyPointValue: z4.number().int().positive().optional()
2523
+ plan: z5.string().optional(),
2524
+ storyPointValue: z5.number().int().positive().optional()
2515
2525
  });
2516
- var AddDependencyRequestSchema = z4.object({
2517
- sessionId: z4.string(),
2518
- dependsOnSlugOrId: z4.string()
2526
+ var AddDependencyRequestSchema = z5.object({
2527
+ sessionId: z5.string(),
2528
+ dependsOnSlugOrId: z5.string()
2519
2529
  });
2520
- var RemoveDependencyRequestSchema = z4.object({
2521
- sessionId: z4.string(),
2522
- dependsOnSlugOrId: z4.string()
2530
+ var RemoveDependencyRequestSchema = z5.object({
2531
+ sessionId: z5.string(),
2532
+ dependsOnSlugOrId: z5.string()
2523
2533
  });
2524
- var CreateSuggestionRequestSchema = z4.object({
2525
- sessionId: z4.string(),
2526
- title: z4.string().min(1),
2534
+ var CreateSuggestionRequestSchema = z5.object({
2535
+ sessionId: z5.string(),
2536
+ title: z5.string().min(1),
2527
2537
  description: cardDescription,
2528
- tagNames: z4.array(z4.string()).optional()
2538
+ tagNames: z5.array(z5.string()).optional()
2529
2539
  });
2530
- var VoteSuggestionRequestSchema = z4.object({
2531
- sessionId: z4.string(),
2532
- suggestionId: z4.string(),
2533
- value: z4.union([z4.literal(1), z4.literal(-1)])
2540
+ var VoteSuggestionRequestSchema = z5.object({
2541
+ sessionId: z5.string(),
2542
+ suggestionId: z5.string(),
2543
+ value: z5.union([z5.literal(1), z5.literal(-1)])
2534
2544
  });
2535
- var TriggerIdentificationRequestSchema = z4.object({
2536
- sessionId: z4.string()
2545
+ var TriggerIdentificationRequestSchema = z5.object({
2546
+ sessionId: z5.string()
2537
2547
  });
2538
- var HandoffToImplementerRequestSchema = z4.object({
2539
- sessionId: z4.string(),
2548
+ var HandoffToImplementerRequestSchema = z5.object({
2549
+ sessionId: z5.string(),
2540
2550
  // Optional difficulty sizing — sets the task's story points before resolving
2541
2551
  // the matched implementer agent. Omit to hand off using the task's current
2542
2552
  // story points (or the project's default task agent when unsized).
2543
- storyPoints: z4.number().int().positive().optional(),
2553
+ storyPoints: z5.number().int().positive().optional(),
2544
2554
  // Optional kickoff note posted to the task chat alongside the handoff notice.
2545
- message: z4.string().optional()
2555
+ message: z5.string().optional()
2546
2556
  });
2547
- var SubmitCodeReviewResultRequestSchema = z4.object({
2548
- sessionId: z4.string(),
2549
- approved: z4.boolean(),
2550
- content: z4.string(),
2557
+ var SubmitCodeReviewResultRequestSchema = z5.object({
2558
+ sessionId: z5.string(),
2559
+ approved: z5.boolean(),
2560
+ content: z5.string(),
2551
2561
  // Canonical risk level the reviewer assigned to this change. Required on every
2552
2562
  // verdict — the reviewer must judge it. Applied authoritatively server-side
2553
2563
  // (may raise OR lower an already-set value; the reviewer has that authority).
@@ -2555,199 +2565,199 @@ var SubmitCodeReviewResultRequestSchema = z4.object({
2555
2565
  // The commit SHA the reviewer actually reviewed. When present, the verdict is
2556
2566
  // rejected unless the task is still at this SHA (guards against a late
2557
2567
  // old-SHA verdict overwriting a newer review cycle).
2558
- reviewedSha: z4.string().optional()
2568
+ reviewedSha: z5.string().optional()
2559
2569
  });
2560
- var CycleCodingAgentKeyRequestSchema = z4.object({
2561
- sessionId: z4.string(),
2562
- rateLimitType: z4.string(),
2563
- resetsAt: z4.string().optional(),
2570
+ var CycleCodingAgentKeyRequestSchema = z5.object({
2571
+ sessionId: z5.string(),
2572
+ rateLimitType: z5.string(),
2573
+ resetsAt: z5.string().optional(),
2564
2574
  // The key the pod is actually running (CONVEYOR_CODING_AGENT_KEY_ID). Wins
2565
2575
  // over the session's attribution stamp after owner validation; optional so
2566
2576
  // older agents keep the session fallback.
2567
- codingAgentKeyId: z4.string().optional()
2577
+ codingAgentKeyId: z5.string().optional()
2568
2578
  });
2569
- var PostChildChatMessageRequestSchema = z4.object({
2570
- sessionId: z4.string(),
2571
- childTaskId: z4.string(),
2572
- message: z4.string().min(1)
2579
+ var PostChildChatMessageRequestSchema = z5.object({
2580
+ sessionId: z5.string(),
2581
+ childTaskId: z5.string(),
2582
+ message: z5.string().min(1)
2573
2583
  });
2574
- var UpdateChildStatusRequestSchema = z4.object({
2575
- sessionId: z4.string(),
2576
- childTaskId: z4.string(),
2577
- status: z4.string()
2584
+ var UpdateChildStatusRequestSchema = z5.object({
2585
+ sessionId: z5.string(),
2586
+ childTaskId: z5.string(),
2587
+ status: z5.string()
2578
2588
  });
2579
- var GetAgentStatusRequestSchema = z4.object({
2580
- taskId: z4.string()
2589
+ var GetAgentStatusRequestSchema = z5.object({
2590
+ taskId: z5.string()
2581
2591
  });
2582
- var GetUiCliHistoryRequestSchema = z4.object({
2583
- taskId: z4.string()
2592
+ var GetUiCliHistoryRequestSchema = z5.object({
2593
+ taskId: z5.string()
2584
2594
  });
2585
- var GetActivePtySessionRequestSchema = z4.object({
2586
- taskId: z4.string()
2595
+ var GetActivePtySessionRequestSchema = z5.object({
2596
+ taskId: z5.string()
2587
2597
  });
2588
- var ListActivePtySessionsRequestSchema = z4.object({
2589
- taskId: z4.string()
2598
+ var ListActivePtySessionsRequestSchema = z5.object({
2599
+ taskId: z5.string()
2590
2600
  });
2591
- var SendSoftStopRequestSchema = z4.object({
2592
- taskId: z4.string()
2601
+ var SendSoftStopRequestSchema = z5.object({
2602
+ taskId: z5.string()
2593
2603
  });
2594
- var StopTaskSessionRequestSchema = z4.object({
2595
- taskId: z4.string(),
2596
- sessionId: z4.string()
2604
+ var StopTaskSessionRequestSchema = z5.object({
2605
+ taskId: z5.string(),
2606
+ sessionId: z5.string()
2597
2607
  });
2598
- var FlushTaskQueueRequestSchema = z4.object({
2599
- taskId: z4.string(),
2600
- softStop: z4.boolean().optional()
2608
+ var FlushTaskQueueRequestSchema = z5.object({
2609
+ taskId: z5.string(),
2610
+ softStop: z5.boolean().optional()
2601
2611
  });
2602
- var CancelTaskQueuedMessageRequestSchema = z4.object({
2603
- taskId: z4.string(),
2604
- messageId: z4.string()
2612
+ var CancelTaskQueuedMessageRequestSchema = z5.object({
2613
+ taskId: z5.string(),
2614
+ messageId: z5.string()
2605
2615
  });
2606
- var FlushSingleQueuedMessageRequestSchema = z4.object({
2607
- taskId: z4.string(),
2608
- messageId: z4.string(),
2609
- softStop: z4.boolean().optional()
2616
+ var FlushSingleQueuedMessageRequestSchema = z5.object({
2617
+ taskId: z5.string(),
2618
+ messageId: z5.string(),
2619
+ softStop: z5.boolean().optional()
2610
2620
  });
2611
- var AnswerAgentQuestionRequestSchema = z4.object({
2612
- taskId: z4.string(),
2613
- requestId: z4.string(),
2614
- answers: z4.record(z4.string(), z4.string())
2621
+ var AnswerAgentQuestionRequestSchema = z5.object({
2622
+ taskId: z5.string(),
2623
+ requestId: z5.string(),
2624
+ answers: z5.record(z5.string(), z5.string())
2615
2625
  });
2616
- var ClearAgentTodosRequestSchema = z4.object({
2617
- taskId: z4.string()
2626
+ var ClearAgentTodosRequestSchema = z5.object({
2627
+ taskId: z5.string()
2618
2628
  });
2619
- var AgentQuestionOptionSchema = z4.object({
2620
- label: z4.string(),
2621
- description: z4.string(),
2622
- preview: z4.string().optional()
2629
+ var AgentQuestionOptionSchema = z5.object({
2630
+ label: z5.string(),
2631
+ description: z5.string(),
2632
+ preview: z5.string().optional()
2623
2633
  });
2624
- var AgentQuestionSchema = z4.object({
2625
- question: z4.string(),
2626
- header: z4.string(),
2627
- options: z4.array(AgentQuestionOptionSchema),
2628
- multiSelect: z4.boolean().optional()
2634
+ var AgentQuestionSchema = z5.object({
2635
+ question: z5.string(),
2636
+ header: z5.string(),
2637
+ options: z5.array(AgentQuestionOptionSchema),
2638
+ multiSelect: z5.boolean().optional()
2629
2639
  });
2630
- var AskUserQuestionRequestSchema = z4.object({
2631
- sessionId: z4.string(),
2632
- question: z4.string().min(1),
2633
- requestId: z4.string().min(1),
2634
- questions: z4.array(AgentQuestionSchema).min(1)
2640
+ var AskUserQuestionRequestSchema = z5.object({
2641
+ sessionId: z5.string(),
2642
+ question: z5.string().min(1),
2643
+ requestId: z5.string().min(1),
2644
+ questions: z5.array(AgentQuestionSchema).min(1)
2635
2645
  });
2636
- var PostAgentMessageRequestSchema = z4.object({
2637
- sessionId: z4.string().min(1),
2638
- content: z4.string(),
2639
- milestone: z4.enum(["plan_ready", "implementation_complete", "blocked"]).optional()
2646
+ var PostAgentMessageRequestSchema = z5.object({
2647
+ sessionId: z5.string().min(1),
2648
+ content: z5.string(),
2649
+ milestone: z5.enum(["plan_ready", "implementation_complete", "blocked"]).optional()
2640
2650
  });
2641
- var EmitAgentEventRequestSchema = z4.object({
2642
- sessionId: z4.string(),
2643
- events: z4.array(AgentEventSchema).max(500)
2651
+ var EmitAgentEventRequestSchema = z5.object({
2652
+ sessionId: z5.string(),
2653
+ events: z5.array(AgentEventSchema).max(500)
2644
2654
  });
2645
- var RefreshGithubTokenRequestSchema = z4.object({
2646
- sessionId: z4.string(),
2647
- forceFresh: z4.boolean().optional()
2655
+ var RefreshGithubTokenRequestSchema = z5.object({
2656
+ sessionId: z5.string(),
2657
+ forceFresh: z5.boolean().optional()
2648
2658
  });
2649
- var ReportCredentialFailureRequestSchema = z4.object({
2650
- sessionId: z4.string(),
2651
- error: z4.string().max(2e3).optional(),
2652
- tokenShape: z4.string().max(500).optional(),
2653
- healed: z4.boolean().optional()
2659
+ var ReportCredentialFailureRequestSchema = z5.object({
2660
+ sessionId: z5.string(),
2661
+ error: z5.string().max(2e3).optional(),
2662
+ tokenShape: z5.string().max(500).optional(),
2663
+ healed: z5.boolean().optional()
2654
2664
  });
2655
- var ReportReviewSpawnFailureRequestSchema = z4.object({
2656
- sessionId: z4.string(),
2657
- reviewSessionId: z4.string(),
2658
- error: z4.string().max(2e3).optional()
2665
+ var ReportReviewSpawnFailureRequestSchema = z5.object({
2666
+ sessionId: z5.string(),
2667
+ reviewSessionId: z5.string(),
2668
+ error: z5.string().max(2e3).optional()
2659
2669
  });
2660
2670
  var ReportBuilderSpawnFailureRequestSchema = ReportReviewSpawnFailureRequestSchema.omit({
2661
2671
  reviewSessionId: true
2662
- }).extend({ buildSessionId: z4.string() });
2663
- var SpawnTaskSessionRequestSchema = z4.object({
2664
- taskId: z4.string(),
2665
- kind: z4.enum(["tui", "shell"])
2672
+ }).extend({ buildSessionId: z5.string() });
2673
+ var SpawnTaskSessionRequestSchema = z5.object({
2674
+ taskId: z5.string(),
2675
+ kind: z5.enum(["tui", "shell"])
2666
2676
  });
2667
- var StartCodeReviewRequestSchema = z4.object({
2668
- taskId: z4.string(),
2669
- force: z4.boolean().optional()
2677
+ var StartCodeReviewRequestSchema = z5.object({
2678
+ taskId: z5.string(),
2679
+ force: z5.boolean().optional()
2670
2680
  });
2671
- var StopCodeReviewRequestSchema = z4.object({
2672
- taskId: z4.string()
2681
+ var StopCodeReviewRequestSchema = z5.object({
2682
+ taskId: z5.string()
2673
2683
  });
2674
- var ReportSessionSpawnFailureRequestSchema = z4.object({
2675
- sessionId: z4.string(),
2676
- spawnedSessionId: z4.string(),
2677
- error: z4.string().max(2e3).optional()
2684
+ var ReportSessionSpawnFailureRequestSchema = z5.object({
2685
+ sessionId: z5.string(),
2686
+ spawnedSessionId: z5.string(),
2687
+ error: z5.string().max(2e3).optional()
2678
2688
  });
2679
- var RefreshGithubTokenResponseSchema = z4.object({
2680
- token: z4.string()
2689
+ var RefreshGithubTokenResponseSchema = z5.object({
2690
+ token: z5.string()
2681
2691
  });
2682
2692
  var PTY_FRAME_MAX_CHARS = 256 * 1024;
2683
2693
  var PTY_MAX_DIMENSION = 1e3;
2684
- var PtyOutputRequestSchema = z4.object({
2685
- sessionId: z4.string(),
2686
- data: z4.string().max(PTY_FRAME_MAX_CHARS),
2687
- cols: z4.number().int().positive().max(PTY_MAX_DIMENSION).optional(),
2688
- rows: z4.number().int().positive().max(PTY_MAX_DIMENSION).optional()
2694
+ var PtyOutputRequestSchema = z5.object({
2695
+ sessionId: z5.string(),
2696
+ data: z5.string().max(PTY_FRAME_MAX_CHARS),
2697
+ cols: z5.number().int().positive().max(PTY_MAX_DIMENSION).optional(),
2698
+ rows: z5.number().int().positive().max(PTY_MAX_DIMENSION).optional()
2689
2699
  });
2690
- var PtyEndedRequestSchema = z4.object({
2691
- sessionId: z4.string()
2700
+ var PtyEndedRequestSchema = z5.object({
2701
+ sessionId: z5.string()
2692
2702
  });
2693
- var PtyInputRequestSchema = z4.object({
2694
- sessionId: z4.string(),
2695
- data: z4.string().max(PTY_FRAME_MAX_CHARS)
2703
+ var PtyInputRequestSchema = z5.object({
2704
+ sessionId: z5.string(),
2705
+ data: z5.string().max(PTY_FRAME_MAX_CHARS)
2696
2706
  });
2697
- var PtyResizeRequestSchema = z4.object({
2698
- sessionId: z4.string(),
2699
- cols: z4.number().int().positive().max(PTY_MAX_DIMENSION),
2700
- rows: z4.number().int().positive().max(PTY_MAX_DIMENSION)
2707
+ var PtyResizeRequestSchema = z5.object({
2708
+ sessionId: z5.string(),
2709
+ cols: z5.number().int().positive().max(PTY_MAX_DIMENSION),
2710
+ rows: z5.number().int().positive().max(PTY_MAX_DIMENSION)
2701
2711
  });
2702
- var PtyAttachRequestSchema = z4.object({
2703
- sessionId: z4.string()
2712
+ var PtyAttachRequestSchema = z5.object({
2713
+ sessionId: z5.string()
2704
2714
  });
2705
- var ReportPtyStreamRequestSchema = z4.object({
2706
- sessionId: z4.string(),
2707
- port: z4.number().int().positive().max(65535).nullable()
2715
+ var ReportPtyStreamRequestSchema = z5.object({
2716
+ sessionId: z5.string(),
2717
+ port: z5.number().int().positive().max(65535).nullable()
2708
2718
  });
2709
- var ReportPtyInputRequestSchema = z4.object({
2710
- sessionId: z4.string()
2719
+ var ReportPtyInputRequestSchema = z5.object({
2720
+ sessionId: z5.string()
2711
2721
  });
2712
- var GetPtyStreamEndpointRequestSchema = z4.object({
2713
- sessionId: z4.string()
2722
+ var GetPtyStreamEndpointRequestSchema = z5.object({
2723
+ sessionId: z5.string()
2714
2724
  });
2715
- var CreatePRResponseSchema = z4.object({
2716
- prNumber: z4.number().int().positive(),
2717
- prUrl: z4.string().url(),
2725
+ var CreatePRResponseSchema = z5.object({
2726
+ prNumber: z5.number().int().positive(),
2727
+ prUrl: z5.string().url(),
2718
2728
  /** Advisory glossary-upkeep note derived from the PR's changed files matched
2719
2729
  * against tag contextPaths — rendered into the tool result, never stored. */
2720
- glossaryNote: z4.string().optional()
2730
+ glossaryNote: z5.string().optional()
2721
2731
  });
2722
- var PostToChatResponseSchema = z4.object({
2723
- messageId: z4.string()
2732
+ var PostToChatResponseSchema = z5.object({
2733
+ messageId: z5.string()
2724
2734
  });
2725
- var UpdateTaskStatusResponseSchema = z4.object({
2726
- taskId: z4.string(),
2727
- status: z4.string()
2735
+ var UpdateTaskStatusResponseSchema = z5.object({
2736
+ taskId: z5.string(),
2737
+ status: z5.string()
2728
2738
  });
2729
- var StoreSessionIdResponseSchema = z4.object({
2730
- success: z4.boolean()
2739
+ var StoreSessionIdResponseSchema = z5.object({
2740
+ success: z5.boolean()
2731
2741
  });
2732
- var HeartbeatResponseSchema = z4.object({
2733
- acknowledged: z4.boolean()
2742
+ var HeartbeatResponseSchema = z5.object({
2743
+ acknowledged: z5.boolean()
2734
2744
  });
2735
- var SessionStartResponseSchema = z4.object({
2736
- sessionId: z4.string(),
2737
- startedAt: z4.string()
2745
+ var SessionStartResponseSchema = z5.object({
2746
+ sessionId: z5.string(),
2747
+ startedAt: z5.string()
2738
2748
  });
2739
- var SessionStopResponseSchema = z4.object({
2740
- sessionId: z4.string(),
2741
- stoppedAt: z4.string()
2749
+ var SessionStopResponseSchema = z5.object({
2750
+ sessionId: z5.string(),
2751
+ stoppedAt: z5.string()
2742
2752
  });
2743
- var DeleteSubtaskResponseSchema = z4.object({
2744
- deleted: z4.boolean()
2753
+ var DeleteSubtaskResponseSchema = z5.object({
2754
+ deleted: z5.boolean()
2745
2755
  });
2746
- var ParkOnCheckResultRequestSchema = z5.object({
2747
- sessionId: z5.string(),
2748
- sha: z5.string().regex(/^[0-9a-f]{7,40}$/i).optional(),
2749
- prNumber: z5.number().int().positive().optional(),
2750
- timeoutMinutes: z5.number().int().min(1).max(MAX_CI_WAIT_TIMEOUT_MINUTES).optional()
2756
+ var ParkOnCheckResultRequestSchema = z6.object({
2757
+ sessionId: z6.string(),
2758
+ sha: z6.string().regex(/^[0-9a-f]{7,40}$/i).optional(),
2759
+ prNumber: z6.number().int().positive().optional(),
2760
+ timeoutMinutes: z6.number().int().min(1).max(MAX_CI_WAIT_TIMEOUT_MINUTES).optional()
2751
2761
  });
2752
2762
  var GIT_BRANCH_NAME_MAX = 255;
2753
2763
  var GIT_BRANCH_NAME_MESSAGE = "Invalid git branch name \u2014 use only letters, numbers, '.', '_', '/' and '-', starting with a letter or number, with no '..', '@{' or '//', and no trailing '/', '-', '.' or '.lock'";
@@ -2761,97 +2771,97 @@ function isValidGitBranchName(name) {
2761
2771
  if (name.endsWith(".") || name.endsWith(".lock")) return false;
2762
2772
  return true;
2763
2773
  }
2764
- var cardDescription2 = z6.string().max(CARD_DESCRIPTION_MAX, CARD_DESCRIPTION_LIMIT_MESSAGE).optional();
2765
- var ListAccessibleProjectsRequestSchema = z6.object({
2766
- pageSize: z6.number().int().positive().max(100).optional().default(100)
2774
+ var cardDescription2 = z7.string().max(CARD_DESCRIPTION_MAX, CARD_DESCRIPTION_LIMIT_MESSAGE).optional();
2775
+ var ListAccessibleProjectsRequestSchema = z7.object({
2776
+ pageSize: z7.number().int().positive().max(100).optional().default(100)
2767
2777
  });
2768
- var ListProjectTasksRequestSchema = z6.object({
2769
- projectId: z6.string(),
2770
- status: z6.string().optional(),
2778
+ var ListProjectTasksRequestSchema = z7.object({
2779
+ projectId: z7.string(),
2780
+ status: z7.string().optional(),
2771
2781
  // Card types to include. Omitted/empty → defaults to ["task"] in the handler
2772
2782
  // (mirrors searchProjectTasks) so listing doesn't surface incidents/suggestions
2773
2783
  // unless asked. Enum validation lives at the MCP tool layer.
2774
- typeFilters: z6.array(z6.string()).optional(),
2775
- assigneeId: z6.string().optional(),
2776
- unassigned: z6.boolean().optional(),
2784
+ typeFilters: z7.array(z7.string()).optional(),
2785
+ assigneeId: z7.string().optional(),
2786
+ unassigned: z7.boolean().optional(),
2777
2787
  // Scope to a sub-project board when provided. Unlike the board layer's `?? null`
2778
2788
  // semantics, agents default to seeing the whole project when omitted.
2779
- subProjectId: z6.string().nullable().optional(),
2789
+ subProjectId: z7.string().nullable().optional(),
2780
2790
  // Plain equality on the on-hold flag: true = only parked cards, false =
2781
2791
  // exclude them, omitted = both. Deliberately NOT the board's
2782
2792
  // includeOnHold/surfaceActiveWork bucketing — an agent sweeping a backlog
2783
2793
  // needs the raw column, not a column projection.
2784
- onHold: z6.boolean().optional(),
2785
- limit: z6.number().int().positive().optional().default(50)
2794
+ onHold: z7.boolean().optional(),
2795
+ limit: z7.number().int().positive().optional().default(50)
2786
2796
  }).refine((p) => !(p.unassigned && p.assigneeId), {
2787
2797
  message: "Pass either assigneeId or unassigned, not both"
2788
2798
  });
2789
- var GetProjectTaskRequestSchema = z6.object({
2790
- projectId: z6.string(),
2791
- taskId: z6.string()
2799
+ var GetProjectTaskRequestSchema = z7.object({
2800
+ projectId: z7.string(),
2801
+ taskId: z7.string()
2792
2802
  });
2793
- var SearchProjectTasksRequestSchema = z6.object({
2794
- projectId: z6.string(),
2803
+ var SearchProjectTasksRequestSchema = z7.object({
2804
+ projectId: z7.string(),
2795
2805
  // Tag names, matched case-insensitively against the project glossary.
2796
- tagNames: z6.array(z6.string()).optional(),
2806
+ tagNames: z7.array(z7.string()).optional(),
2797
2807
  // How to combine tagNames: "any" (default) = carries at least one,
2798
2808
  // "all" = carries every one.
2799
- tagMatch: z6.enum(["any", "all"]).optional(),
2809
+ tagMatch: z7.enum(["any", "all"]).optional(),
2800
2810
  // Expand each named tag to its descendants in the tag DAG before matching,
2801
2811
  // so a parent tag sweeps its whole area. Default false.
2802
- includeChildTags: z6.boolean().optional(),
2803
- searchQuery: z6.string().optional(),
2804
- statusFilters: z6.array(z6.string()).optional(),
2812
+ includeChildTags: z7.boolean().optional(),
2813
+ searchQuery: z7.string().optional(),
2814
+ statusFilters: z7.array(z7.string()).optional(),
2805
2815
  // Card types to include. Omitted/empty → defaults to ["task"] in the handler so
2806
2816
  // search doesn't surface incidents/suggestions unless asked. Enum validation lives
2807
2817
  // at the MCP tool layer (mirrors statusFilters).
2808
- typeFilters: z6.array(z6.string()).optional(),
2809
- assigneeId: z6.string().optional(),
2810
- unassigned: z6.boolean().optional(),
2818
+ typeFilters: z7.array(z7.string()).optional(),
2819
+ assigneeId: z7.string().optional(),
2820
+ unassigned: z7.boolean().optional(),
2811
2821
  // Scope to a sub-project board when provided. Unlike the board layer's `?? null`
2812
2822
  // semantics, agents default to seeing the whole project when omitted.
2813
- subProjectId: z6.string().nullable().optional(),
2814
- limit: z6.number().int().positive().optional().default(20)
2823
+ subProjectId: z7.string().nullable().optional(),
2824
+ limit: z7.number().int().positive().optional().default(20)
2815
2825
  }).refine((p) => !(p.unassigned && p.assigneeId), {
2816
2826
  message: "Pass either assigneeId or unassigned, not both"
2817
2827
  });
2818
- var ListProjectTagsRequestSchema = z6.object({
2819
- projectId: z6.string(),
2828
+ var ListProjectTagsRequestSchema = z7.object({
2829
+ projectId: z7.string(),
2820
2830
  /** "summary" (default) omits inline context links; "full" includes them. */
2821
- detail: z6.enum(["summary", "full"]).optional()
2831
+ detail: z7.enum(["summary", "full"]).optional()
2822
2832
  });
2823
- var GetProjectTagRequestSchema = z6.object({
2824
- projectId: z6.string(),
2833
+ var GetProjectTagRequestSchema = z7.object({
2834
+ projectId: z7.string(),
2825
2835
  /** Tag id or exact (case-insensitive) tag name. */
2826
- tag: z6.string().min(1).max(100)
2836
+ tag: z7.string().min(1).max(100)
2827
2837
  });
2828
- var ListProjectTagAttachmentsRequestSchema = z6.object({
2829
- projectId: z6.string(),
2838
+ var ListProjectTagAttachmentsRequestSchema = z7.object({
2839
+ projectId: z7.string(),
2830
2840
  /** Tag id or exact (case-insensitive) tag name. */
2831
- tag: z6.string().min(1).max(100),
2832
- limit: z6.number().int().min(1).max(60).optional(),
2833
- offset: z6.number().int().min(0).optional()
2841
+ tag: z7.string().min(1).max(100),
2842
+ limit: z7.number().int().min(1).max(60).optional(),
2843
+ offset: z7.number().int().min(0).optional()
2834
2844
  });
2835
- var SetProjectFileTagsRequestSchema = z6.object({
2836
- projectId: z6.string(),
2837
- taskId: z6.string(),
2838
- fileId: z6.string(),
2839
- tags: z6.array(z6.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS),
2840
- requestingUserId: z6.string().optional()
2845
+ var SetProjectFileTagsRequestSchema = z7.object({
2846
+ projectId: z7.string(),
2847
+ taskId: z7.string(),
2848
+ fileId: z7.string(),
2849
+ tags: z7.array(z7.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS),
2850
+ requestingUserId: z7.string().optional()
2841
2851
  });
2842
- var GetProjectSummaryRequestSchema = z6.object({
2843
- projectId: z6.string()
2852
+ var GetProjectSummaryRequestSchema = z7.object({
2853
+ projectId: z7.string()
2844
2854
  });
2845
- var GetProjectOnboardingStatusRequestSchema = z6.object({
2846
- projectId: z6.string()
2855
+ var GetProjectOnboardingStatusRequestSchema = z7.object({
2856
+ projectId: z7.string()
2847
2857
  });
2848
- var GetProjectOnboardingStepRequestSchema = z6.object({
2849
- projectId: z6.string()
2858
+ var GetProjectOnboardingStepRequestSchema = z7.object({
2859
+ projectId: z7.string()
2850
2860
  });
2851
- var GetProjectConnectUrlsRequestSchema = z6.object({
2852
- projectId: z6.string()
2861
+ var GetProjectConnectUrlsRequestSchema = z7.object({
2862
+ projectId: z7.string()
2853
2863
  });
2854
- var conveyorCapabilitySchema = z6.enum([
2864
+ var conveyorCapabilitySchema = z7.enum([
2855
2865
  "read",
2856
2866
  "create",
2857
2867
  "update",
@@ -2859,493 +2869,493 @@ var conveyorCapabilitySchema = z6.enum([
2859
2869
  "files",
2860
2870
  "build"
2861
2871
  ]);
2862
- var GetConnectionContextRequestSchema = z6.object({
2863
- projectId: z6.string(),
2872
+ var GetConnectionContextRequestSchema = z7.object({
2873
+ projectId: z7.string(),
2864
2874
  // Optional board scope (CONVEYOR_SUBPROJECT_ID). Validated to belong to the
2865
2875
  // project in the handler; an invalid/foreign id is reported, not silently
2866
2876
  // dropped, so a mis-scoped connection is never presented as board-specific.
2867
- subProjectId: z6.string().nullable().optional()
2877
+ subProjectId: z7.string().nullable().optional()
2868
2878
  });
2869
- var VerifyConnectionRequestSchema = z6.object({
2870
- projectId: z6.string(),
2871
- subProjectId: z6.string().nullable().optional(),
2872
- intendedActions: z6.array(conveyorCapabilitySchema).optional()
2879
+ var VerifyConnectionRequestSchema = z7.object({
2880
+ projectId: z7.string(),
2881
+ subProjectId: z7.string().nullable().optional(),
2882
+ intendedActions: z7.array(conveyorCapabilitySchema).optional()
2873
2883
  });
2874
- var ListAccessibleSubprojectsRequestSchema = z6.object({
2875
- projectId: z6.string()
2884
+ var ListAccessibleSubprojectsRequestSchema = z7.object({
2885
+ projectId: z7.string()
2876
2886
  });
2877
- var CreateProjectTaskRequestSchema = z6.object({
2878
- projectId: z6.string(),
2879
- title: z6.string().min(1),
2887
+ var CreateProjectTaskRequestSchema = z7.object({
2888
+ projectId: z7.string(),
2889
+ title: z7.string().min(1),
2880
2890
  description: cardDescription2,
2881
- plan: z6.string().optional(),
2882
- status: z6.string().optional(),
2891
+ plan: z7.string().optional(),
2892
+ status: z7.string().optional(),
2883
2893
  // Assign to a sub-project board. Validated to belong to `projectId` in the handler.
2884
- subProjectId: z6.string().nullable().optional(),
2894
+ subProjectId: z7.string().nullable().optional(),
2885
2895
  // Priority value. Resolved to the project's configured Priority row in the
2886
2896
  // handler, which rejects an unconfigured value before the card is written.
2887
- priorityValue: z6.number().int().positive().optional(),
2888
- requestingUserId: z6.string().optional()
2897
+ priorityValue: z7.number().int().positive().optional(),
2898
+ requestingUserId: z7.string().optional()
2889
2899
  });
2890
- var SetProjectTaskParentRequestSchema = z6.object({
2891
- projectId: z6.string(),
2900
+ var SetProjectTaskParentRequestSchema = z7.object({
2901
+ projectId: z7.string(),
2892
2902
  /** Card to move — id or slug. */
2893
- taskId: z6.string().min(1),
2903
+ taskId: z7.string().min(1),
2894
2904
  /** New parent (id or slug), or null to detach. */
2895
- parentTaskId: z6.string().min(1).nullable(),
2896
- ordinal: z6.number().int().nonnegative().optional(),
2897
- followParentStatus: z6.boolean().optional(),
2898
- requestingUserId: z6.string().optional()
2905
+ parentTaskId: z7.string().min(1).nullable(),
2906
+ ordinal: z7.number().int().nonnegative().optional(),
2907
+ followParentStatus: z7.boolean().optional(),
2908
+ requestingUserId: z7.string().optional()
2899
2909
  }).strict();
2900
- var UpdateProjectTaskRequestSchema = z6.object({
2901
- projectId: z6.string(),
2902
- taskId: z6.string(),
2903
- title: z6.string().optional(),
2910
+ var UpdateProjectTaskRequestSchema = z7.object({
2911
+ projectId: z7.string(),
2912
+ taskId: z7.string(),
2913
+ title: z7.string().optional(),
2904
2914
  description: cardDescription2,
2905
- plan: z6.string().optional(),
2915
+ plan: z7.string().optional(),
2906
2916
  // Enum validation lives at the MCP tool layer (mirrors createProjectTask);
2907
2917
  // the handler routes through the shared updateStatus core (InProgress
2908
2918
  // dependency check + cleanup/board/Slack side effects), not the stricter
2909
2919
  // card-type-validating path the Socket.IO updateTaskStatus mutation uses.
2910
- status: z6.string().optional(),
2920
+ status: z7.string().optional(),
2911
2921
  // Canonical risk level, or null to clear. Resolved to the project's
2912
2922
  // configured Risk row (by rank) in the handler.
2913
2923
  risk: riskLevelSchema.nullable().optional(),
2914
2924
  // Story-point value, or null to clear. Resolved to the project's configured
2915
2925
  // StoryPoint row in the handler, which rejects an unconfigured value.
2916
- storyPointValue: z6.number().int().positive().nullable().optional(),
2926
+ storyPointValue: z7.number().int().positive().nullable().optional(),
2917
2927
  // Priority value, or null to clear. Resolved to the project's configured
2918
2928
  // Priority row in the handler, which rejects an unconfigured value.
2919
- priorityValue: z6.number().int().positive().nullable().optional(),
2920
- assignedUserId: z6.string().nullish(),
2929
+ priorityValue: z7.number().int().positive().nullable().optional(),
2930
+ assignedUserId: z7.string().nullish(),
2921
2931
  // Move to a different sub-project board, or null to move to the parent board.
2922
2932
  // Validated to belong to `projectId` in the handler.
2923
- subProjectId: z6.string().nullable().optional(),
2933
+ subProjectId: z7.string().nullable().optional(),
2924
2934
  // Record the task's ACTUAL working branch (e.g. a locally-driven pack's
2925
2935
  // branch, so identification never mints a competing name and pack-child
2926
2936
  // merge handling matches reality), or null to detach. Guarded in the
2927
2937
  // handler: the ref must exist on origin and no live workspace may be bound
2928
2938
  // to a different branch.
2929
- githubBranch: z6.string().min(1).max(GIT_BRANCH_NAME_MAX).refine(isValidGitBranchName, { message: GIT_BRANCH_NAME_MESSAGE }).nullable().optional(),
2939
+ githubBranch: z7.string().min(1).max(GIT_BRANCH_NAME_MAX).refine(isValidGitBranchName, { message: GIT_BRANCH_NAME_MESSAGE }).nullable().optional(),
2930
2940
  // Park the card on hold (true) or return it to the active board (false).
2931
2941
  // The handler mirrors the web path's two side effects: a board re-bucket
2932
2942
  // event, and demotion to Open when an active-work card is parked.
2933
- onHold: z6.boolean().optional(),
2934
- requestingUserId: z6.string().optional()
2943
+ onHold: z7.boolean().optional(),
2944
+ requestingUserId: z7.string().optional()
2935
2945
  }).strict().refine(
2936
2946
  (v) => v.title !== void 0 || v.description !== void 0 || v.plan !== void 0 || v.status !== void 0 || v.risk !== void 0 || v.storyPointValue !== void 0 || v.priorityValue !== void 0 || v.assignedUserId !== void 0 || v.subProjectId !== void 0 || v.githubBranch !== void 0 || v.onHold !== void 0,
2937
2947
  {
2938
2948
  message: "update_task requires at least one field to change (title, description, plan, status, risk, storyPointValue, priorityValue, assignedUserId, subProjectId, githubBranch, or onHold)"
2939
2949
  }
2940
2950
  );
2941
- var TransitionProjectTaskStatusRequestSchema = z6.object({
2942
- projectId: z6.string(),
2943
- taskId: z6.string(),
2944
- toStatus: z6.string(),
2945
- expectedFromStatus: z6.string().optional(),
2951
+ var TransitionProjectTaskStatusRequestSchema = z7.object({
2952
+ projectId: z7.string(),
2953
+ taskId: z7.string(),
2954
+ toStatus: z7.string(),
2955
+ expectedFromStatus: z7.string().optional(),
2946
2956
  // Optional raise-only risk to attempt alongside the transition
2947
2957
  // (approve → low, request_changes → medium by default).
2948
2958
  risk: riskLevelSchema.optional(),
2949
- requestingUserId: z6.string().optional()
2950
- });
2951
- var MoveProjectCardRequestSchema = z6.object({
2952
- projectId: z6.string(),
2953
- taskId: z6.string(),
2954
- destinationProjectId: z6.string(),
2955
- requestingUserId: z6.string().optional()
2956
- });
2957
- var PostToProjectTaskChatRequestSchema = z6.object({
2958
- projectId: z6.string(),
2959
- taskId: z6.string(),
2960
- content: z6.string(),
2961
- requestingUserId: z6.string().optional()
2962
- });
2963
- var GetProjectTaskCliRequestSchema = z6.object({
2964
- projectId: z6.string(),
2965
- taskId: z6.string(),
2966
- limit: z6.number().int().positive().optional().default(50),
2967
- source: z6.string().optional()
2968
- });
2969
- var GetProjectTaskSessionsRequestSchema = z6.object({
2970
- projectId: z6.string(),
2971
- taskId: z6.string()
2972
- });
2973
- var QueryProjectGcpLogsRequestSchema = z6.object({
2974
- projectId: z6.string(),
2975
- env: z6.enum(["prod", "dev", "claudespace"]).optional(),
2976
- severity: z6.enum(["DEBUG", "INFO", "NOTICE", "WARNING", "ERROR", "CRITICAL", "ALERT", "EMERGENCY"]).optional(),
2977
- services: z6.array(z6.string().min(1).max(200)).max(25).optional(),
2978
- sqlInstances: z6.array(z6.string().min(1).max(200)).max(25).optional(),
2979
- allServices: z6.boolean().optional(),
2980
- search: z6.string().max(256).optional(),
2981
- filter: z6.string().max(2e3).optional(),
2982
- startTime: z6.string().optional(),
2983
- endTime: z6.string().optional(),
2984
- limit: z6.number().int().min(1).max(200).optional().default(50),
2985
- pageToken: z6.string().max(4096).optional(),
2986
- full: z6.boolean().optional()
2987
- });
2988
- var QueryProjectGrafanaLogsRequestSchema = z6.object({
2989
- projectId: z6.string(),
2990
- env: z6.enum(["prod", "dev"]).optional(),
2991
- services: z6.array(z6.string().min(1).max(200)).max(25).optional(),
2992
- level: z6.enum(["debug", "info", "warn", "error", "fatal"]).optional(),
2993
- search: z6.string().max(256).optional(),
2994
- logql: z6.string().max(2e3).optional(),
2995
- startTime: z6.string().optional(),
2996
- endTime: z6.string().optional(),
2997
- limit: z6.number().int().min(1).max(200).optional().default(50)
2998
- });
2999
- var driveFileNameSchema = z6.string().min(1).max(255).regex(/^[^/\\\r\n]+$/, "File names cannot contain slashes or line breaks");
2959
+ requestingUserId: z7.string().optional()
2960
+ });
2961
+ var MoveProjectCardRequestSchema = z7.object({
2962
+ projectId: z7.string(),
2963
+ taskId: z7.string(),
2964
+ destinationProjectId: z7.string(),
2965
+ requestingUserId: z7.string().optional()
2966
+ });
2967
+ var PostToProjectTaskChatRequestSchema = z7.object({
2968
+ projectId: z7.string(),
2969
+ taskId: z7.string(),
2970
+ content: z7.string(),
2971
+ requestingUserId: z7.string().optional()
2972
+ });
2973
+ var GetProjectTaskCliRequestSchema = z7.object({
2974
+ projectId: z7.string(),
2975
+ taskId: z7.string(),
2976
+ limit: z7.number().int().positive().optional().default(50),
2977
+ source: z7.string().optional()
2978
+ });
2979
+ var GetProjectTaskSessionsRequestSchema = z7.object({
2980
+ projectId: z7.string(),
2981
+ taskId: z7.string()
2982
+ });
2983
+ var QueryProjectGcpLogsRequestSchema = z7.object({
2984
+ projectId: z7.string(),
2985
+ env: z7.enum(["prod", "dev", "claudespace"]).optional(),
2986
+ severity: z7.enum(["DEBUG", "INFO", "NOTICE", "WARNING", "ERROR", "CRITICAL", "ALERT", "EMERGENCY"]).optional(),
2987
+ services: z7.array(z7.string().min(1).max(200)).max(25).optional(),
2988
+ sqlInstances: z7.array(z7.string().min(1).max(200)).max(25).optional(),
2989
+ allServices: z7.boolean().optional(),
2990
+ search: z7.string().max(256).optional(),
2991
+ filter: z7.string().max(2e3).optional(),
2992
+ startTime: z7.string().optional(),
2993
+ endTime: z7.string().optional(),
2994
+ limit: z7.number().int().min(1).max(200).optional().default(50),
2995
+ pageToken: z7.string().max(4096).optional(),
2996
+ full: z7.boolean().optional()
2997
+ });
2998
+ var QueryProjectGrafanaLogsRequestSchema = z7.object({
2999
+ projectId: z7.string(),
3000
+ env: z7.enum(["prod", "dev"]).optional(),
3001
+ services: z7.array(z7.string().min(1).max(200)).max(25).optional(),
3002
+ level: z7.enum(["debug", "info", "warn", "error", "fatal"]).optional(),
3003
+ search: z7.string().max(256).optional(),
3004
+ logql: z7.string().max(2e3).optional(),
3005
+ startTime: z7.string().optional(),
3006
+ endTime: z7.string().optional(),
3007
+ limit: z7.number().int().min(1).max(200).optional().default(50)
3008
+ });
3009
+ var driveFileNameSchema = z7.string().min(1).max(255).regex(/^[^/\\\r\n]+$/, "File names cannot contain slashes or line breaks");
3000
3010
  var DRIVE_MAX_CONTENT_CHARS = 1e6;
3001
- var ListProjectDriveFilesRequestSchema = z6.object({
3002
- projectId: z6.string(),
3003
- folderId: z6.string().max(200).optional(),
3004
- search: z6.string().max(200).optional(),
3005
- limit: z6.number().int().min(1).max(200).optional()
3006
- });
3007
- var ReadProjectDriveFileRequestSchema = z6.object({
3008
- projectId: z6.string(),
3009
- fileId: z6.string().min(1).max(200)
3010
- });
3011
- var CreateProjectDriveFileRequestSchema = z6.object({
3012
- projectId: z6.string(),
3011
+ var ListProjectDriveFilesRequestSchema = z7.object({
3012
+ projectId: z7.string(),
3013
+ folderId: z7.string().max(200).optional(),
3014
+ search: z7.string().max(200).optional(),
3015
+ limit: z7.number().int().min(1).max(200).optional()
3016
+ });
3017
+ var ReadProjectDriveFileRequestSchema = z7.object({
3018
+ projectId: z7.string(),
3019
+ fileId: z7.string().min(1).max(200)
3020
+ });
3021
+ var CreateProjectDriveFileRequestSchema = z7.object({
3022
+ projectId: z7.string(),
3013
3023
  name: driveFileNameSchema,
3014
- content: z6.string().max(DRIVE_MAX_CONTENT_CHARS),
3015
- mimeType: z6.string().max(200).optional(),
3016
- folderId: z6.string().max(200).optional()
3017
- });
3018
- var UpdateProjectDriveFileRequestSchema = z6.object({
3019
- projectId: z6.string(),
3020
- fileId: z6.string().min(1).max(200),
3021
- content: z6.string().max(DRIVE_MAX_CONTENT_CHARS),
3022
- mimeType: z6.string().max(200).optional()
3023
- });
3024
- var DeleteProjectDriveFileRequestSchema = z6.object({
3025
- projectId: z6.string(),
3026
- fileId: z6.string().min(1).max(200)
3027
- });
3028
- var CreateProjectDriveFolderRequestSchema = z6.object({
3029
- projectId: z6.string(),
3024
+ content: z7.string().max(DRIVE_MAX_CONTENT_CHARS),
3025
+ mimeType: z7.string().max(200).optional(),
3026
+ folderId: z7.string().max(200).optional()
3027
+ });
3028
+ var UpdateProjectDriveFileRequestSchema = z7.object({
3029
+ projectId: z7.string(),
3030
+ fileId: z7.string().min(1).max(200),
3031
+ content: z7.string().max(DRIVE_MAX_CONTENT_CHARS),
3032
+ mimeType: z7.string().max(200).optional()
3033
+ });
3034
+ var DeleteProjectDriveFileRequestSchema = z7.object({
3035
+ projectId: z7.string(),
3036
+ fileId: z7.string().min(1).max(200)
3037
+ });
3038
+ var CreateProjectDriveFolderRequestSchema = z7.object({
3039
+ projectId: z7.string(),
3030
3040
  name: driveFileNameSchema,
3031
- folderId: z6.string().max(200).optional()
3041
+ folderId: z7.string().max(200).optional()
3032
3042
  });
3033
- var StartProjectBuildRequestSchema = z6.object({
3034
- projectId: z6.string(),
3035
- taskId: z6.string(),
3036
- requestingUserId: z6.string().optional()
3043
+ var StartProjectBuildRequestSchema = z7.object({
3044
+ projectId: z7.string(),
3045
+ taskId: z7.string(),
3046
+ requestingUserId: z7.string().optional()
3037
3047
  });
3038
- var StopProjectBuildRequestSchema = z6.object({
3039
- projectId: z6.string(),
3040
- taskId: z6.string(),
3041
- requestingUserId: z6.string().optional()
3048
+ var StopProjectBuildRequestSchema = z7.object({
3049
+ projectId: z7.string(),
3050
+ taskId: z7.string(),
3051
+ requestingUserId: z7.string().optional()
3042
3052
  });
3043
- var StartProjectWorkspaceRequestSchema = z6.object({
3044
- projectId: z6.string(),
3045
- requestingUserId: z6.string().optional()
3053
+ var StartProjectWorkspaceRequestSchema = z7.object({
3054
+ projectId: z7.string(),
3055
+ requestingUserId: z7.string().optional()
3046
3056
  });
3047
- var StopProjectWorkspaceRequestSchema = z6.object({
3048
- projectId: z6.string(),
3049
- destroy: z6.boolean().optional(),
3050
- requestingUserId: z6.string().optional()
3057
+ var StopProjectWorkspaceRequestSchema = z7.object({
3058
+ projectId: z7.string(),
3059
+ destroy: z7.boolean().optional(),
3060
+ requestingUserId: z7.string().optional()
3051
3061
  });
3052
- var ListMyLiveSessionsRequestSchema = z6.object({
3053
- projectId: z6.string(),
3062
+ var ListMyLiveSessionsRequestSchema = z7.object({
3063
+ projectId: z7.string(),
3054
3064
  /** Admin-only: list another member's sessions instead of the caller's. */
3055
- targetUserId: z6.string().optional()
3065
+ targetUserId: z7.string().optional()
3056
3066
  });
3057
- var ListProjectSessionGroupsRequestSchema = z6.object({
3058
- projectId: z6.string()
3067
+ var ListProjectSessionGroupsRequestSchema = z7.object({
3068
+ projectId: z7.string()
3059
3069
  });
3060
- var ListMyLiveSessionsAcrossProjectsRequestSchema = z6.object({});
3061
- var ListSessionGroupsAcrossProjectsRequestSchema = z6.object({});
3062
- var GetProjectAvailableTuisRequestSchema = z6.object({
3063
- projectId: z6.string()
3070
+ var ListMyLiveSessionsAcrossProjectsRequestSchema = z7.object({});
3071
+ var ListSessionGroupsAcrossProjectsRequestSchema = z7.object({});
3072
+ var GetProjectAvailableTuisRequestSchema = z7.object({
3073
+ projectId: z7.string()
3064
3074
  });
3065
- var StartAdhocSessionRequestSchema = z6.object({
3066
- projectId: z6.string(),
3067
- label: z6.string().max(200).optional(),
3075
+ var StartAdhocSessionRequestSchema = z7.object({
3076
+ projectId: z7.string(),
3077
+ label: z7.string().max(200).optional(),
3068
3078
  /** Coding-agent key to launch under — validated pick-time (ownership + TUI availability) in the handler. */
3069
- codingAgentKeyId: z6.string().optional(),
3079
+ codingAgentKeyId: z7.string().optional(),
3070
3080
  /** Model override (Claude model id) — overrides the launch key's own model. */
3071
- model: z6.string().max(200).optional(),
3081
+ model: z7.string().max(200).optional(),
3072
3082
  /**
3073
3083
  * Session role. Constrained: other task-less modes fall through to the pm
3074
3084
  * runner in the pod entrypoint, and "review" would crash without a task.
3075
3085
  */
3076
- mode: z6.enum(["adhoc", "pm"]).optional(),
3086
+ mode: z7.enum(["adhoc", "pm"]).optional(),
3077
3087
  /** Base branch to check out (defaults to the project's dev branch). */
3078
- branch: z6.string().max(300).optional(),
3088
+ branch: z7.string().max(300).optional(),
3079
3089
  /**
3080
3090
  * Server-assembled instructions the pod's TUI auto-submits once on first boot
3081
3091
  * (headless kickoff). Used by the onboarding "Set it up for me" flow to seed a
3082
3092
  * setup-driver prompt; the session stays watchable/interactive in the Sessions
3083
3093
  * view. `ensureAdhocWorkspace` persists it and clears it after first submit.
3084
3094
  */
3085
- initialPrompt: z6.string().max(2e4).optional(),
3086
- requestingUserId: z6.string().optional()
3087
- });
3088
- var StopAdhocSessionRequestSchema = z6.object({
3089
- projectId: z6.string(),
3090
- workspaceId: z6.string(),
3091
- destroy: z6.boolean().optional(),
3092
- requestingUserId: z6.string().optional()
3093
- });
3094
- var ResumeAdhocSessionRequestSchema = z6.object({
3095
- projectId: z6.string(),
3096
- workspaceId: z6.string(),
3097
- requestingUserId: z6.string().optional()
3098
- });
3099
- var RefreshCodingAgentKeyUsageRequestSchema = z6.object({
3100
- projectId: z6.string(),
3101
- keyId: z6.string().optional(),
3102
- requestingUserId: z6.string().optional()
3103
- });
3104
- var ListKeysToProbeRequestSchema = z6.object({
3105
- sessionId: z6.string()
3106
- });
3107
- var CreateProjectReleaseRequestSchema = z6.object({
3108
- projectId: z6.string(),
3109
- taskIds: z6.array(z6.string()).optional(),
3110
- requestingUserId: z6.string().optional()
3111
- });
3112
- var AddTasksToProjectReleaseRequestSchema = z6.object({
3113
- projectId: z6.string(),
3114
- taskIds: z6.array(z6.string()).min(1),
3115
- requestingUserId: z6.string().optional()
3116
- });
3117
- var ApproveProjectMergePRRequestSchema = z6.object({
3118
- projectId: z6.string(),
3119
- childTaskId: z6.string(),
3120
- requestingUserId: z6.string().optional()
3121
- });
3122
- var ListProjectSubtasksRequestSchema = z6.object({
3123
- projectId: z6.string(),
3124
- taskId: z6.string()
3125
- });
3126
- var CreateProjectSubtaskRequestSchema = z6.object({
3127
- projectId: z6.string(),
3128
- parentTaskId: z6.string(),
3129
- title: z6.string().min(1),
3095
+ initialPrompt: z7.string().max(2e4).optional(),
3096
+ requestingUserId: z7.string().optional()
3097
+ });
3098
+ var StopAdhocSessionRequestSchema = z7.object({
3099
+ projectId: z7.string(),
3100
+ workspaceId: z7.string(),
3101
+ destroy: z7.boolean().optional(),
3102
+ requestingUserId: z7.string().optional()
3103
+ });
3104
+ var ResumeAdhocSessionRequestSchema = z7.object({
3105
+ projectId: z7.string(),
3106
+ workspaceId: z7.string(),
3107
+ requestingUserId: z7.string().optional()
3108
+ });
3109
+ var RefreshCodingAgentKeyUsageRequestSchema = z7.object({
3110
+ projectId: z7.string(),
3111
+ keyId: z7.string().optional(),
3112
+ requestingUserId: z7.string().optional()
3113
+ });
3114
+ var ListKeysToProbeRequestSchema = z7.object({
3115
+ sessionId: z7.string()
3116
+ });
3117
+ var CreateProjectReleaseRequestSchema = z7.object({
3118
+ projectId: z7.string(),
3119
+ taskIds: z7.array(z7.string()).optional(),
3120
+ requestingUserId: z7.string().optional()
3121
+ });
3122
+ var AddTasksToProjectReleaseRequestSchema = z7.object({
3123
+ projectId: z7.string(),
3124
+ taskIds: z7.array(z7.string()).min(1),
3125
+ requestingUserId: z7.string().optional()
3126
+ });
3127
+ var ApproveProjectMergePRRequestSchema = z7.object({
3128
+ projectId: z7.string(),
3129
+ childTaskId: z7.string(),
3130
+ requestingUserId: z7.string().optional()
3131
+ });
3132
+ var ListProjectSubtasksRequestSchema = z7.object({
3133
+ projectId: z7.string(),
3134
+ taskId: z7.string()
3135
+ });
3136
+ var CreateProjectSubtaskRequestSchema = z7.object({
3137
+ projectId: z7.string(),
3138
+ parentTaskId: z7.string(),
3139
+ title: z7.string().min(1),
3130
3140
  description: cardDescription2,
3131
- plan: z6.string().optional(),
3132
- ordinal: z6.number().int().nonnegative().optional(),
3133
- storyPointValue: z6.number().int().positive().optional(),
3134
- followParentStatus: z6.boolean().optional(),
3141
+ plan: z7.string().optional(),
3142
+ ordinal: z7.number().int().nonnegative().optional(),
3143
+ storyPointValue: z7.number().int().positive().optional(),
3144
+ followParentStatus: z7.boolean().optional(),
3135
3145
  /** Sibling subtask ids or slugs this subtask blocks on (explicit dependency
3136
3146
  * metadata — preferred over encoding order in plan text / ordinal). */
3137
- dependsOn: z6.array(z6.string().min(1)).max(32).optional(),
3138
- requestingUserId: z6.string().optional()
3147
+ dependsOn: z7.array(z7.string().min(1)).max(32).optional(),
3148
+ requestingUserId: z7.string().optional()
3139
3149
  });
3140
- var UpdateProjectSubtaskRequestSchema = z6.object({
3141
- projectId: z6.string(),
3142
- subtaskId: z6.string(),
3143
- title: z6.string().optional(),
3150
+ var UpdateProjectSubtaskRequestSchema = z7.object({
3151
+ projectId: z7.string(),
3152
+ subtaskId: z7.string(),
3153
+ title: z7.string().optional(),
3144
3154
  description: cardDescription2,
3145
- plan: z6.string().optional(),
3146
- status: z6.string().optional(),
3147
- ordinal: z6.number().int().nonnegative().optional(),
3148
- storyPointValue: z6.number().int().positive().optional(),
3149
- followParentStatus: z6.boolean().optional(),
3155
+ plan: z7.string().optional(),
3156
+ status: z7.string().optional(),
3157
+ ordinal: z7.number().int().nonnegative().optional(),
3158
+ storyPointValue: z7.number().int().positive().optional(),
3159
+ followParentStatus: z7.boolean().optional(),
3150
3160
  /** Replace-set of sibling subtask ids/slugs this subtask blocks on ([] clears).
3151
3161
  * Mirrors the in-pod updateSubtask semantics. */
3152
- dependsOn: z6.array(z6.string().min(1)).max(32).optional(),
3153
- requestingUserId: z6.string().optional()
3154
- });
3155
- var DeleteProjectSubtaskRequestSchema = z6.object({
3156
- projectId: z6.string(),
3157
- subtaskId: z6.string(),
3158
- requestingUserId: z6.string().optional()
3159
- });
3160
- var GetProjectTaskChatRequestSchema = z6.object({
3161
- projectId: z6.string(),
3162
- taskId: z6.string(),
3163
- limit: z6.number().int().positive().optional().default(20)
3164
- });
3165
- var AddProjectTaskDependencyRequestSchema = z6.object({
3166
- projectId: z6.string(),
3167
- taskId: z6.string(),
3168
- dependsOnSlugOrId: z6.string(),
3169
- requestingUserId: z6.string().optional()
3170
- });
3171
- var RemoveProjectTaskDependencyRequestSchema = z6.object({
3172
- projectId: z6.string(),
3173
- taskId: z6.string(),
3174
- dependsOnSlugOrId: z6.string(),
3175
- requestingUserId: z6.string().optional()
3176
- });
3177
- var VoteProjectSuggestionRequestSchema = z6.object({
3178
- projectId: z6.string(),
3179
- suggestionId: z6.string(),
3180
- value: z6.union([z6.literal(1), z6.literal(-1)]),
3181
- requestingUserId: z6.string().optional()
3182
- });
3183
- var GetProjectTaskDependenciesRequestSchema = z6.object({
3184
- projectId: z6.string(),
3185
- taskId: z6.string()
3186
- });
3187
- var CreateProjectPullRequestRequestSchema = z6.object({
3188
- projectId: z6.string(),
3189
- taskId: z6.string(),
3190
- title: z6.string().min(1),
3191
- body: z6.string(),
3192
- head: z6.string().optional(),
3193
- base: z6.string().optional(),
3194
- requestingUserId: z6.string().optional()
3195
- });
3196
- var ListProjectMembersRequestSchema = z6.object({
3197
- projectId: z6.string()
3198
- });
3199
- var AddProjectTaskReviewerRequestSchema = z6.object({
3200
- projectId: z6.string(),
3201
- taskId: z6.string(),
3202
- userId: z6.string(),
3203
- requestingUserId: z6.string().optional()
3204
- });
3205
- var RemoveProjectTaskReviewerRequestSchema = z6.object({
3206
- projectId: z6.string(),
3207
- taskId: z6.string(),
3208
- userId: z6.string(),
3209
- requestingUserId: z6.string().optional()
3210
- });
3211
- var ListProjectManualTestsRequestSchema = z6.object({
3212
- projectId: z6.string(),
3213
- taskId: z6.string()
3214
- });
3215
- var QueryProjectManualTestsRequestSchema = z6.object({
3216
- projectId: z6.string(),
3217
- cardStatuses: z6.array(z6.string()).optional(),
3218
- testStatuses: z6.array(z6.enum(["open", "approved", "rejected"])).optional()
3219
- });
3220
- var SetProjectManualTestsRequestSchema = z6.object({
3221
- projectId: z6.string(),
3222
- taskId: z6.string(),
3162
+ dependsOn: z7.array(z7.string().min(1)).max(32).optional(),
3163
+ requestingUserId: z7.string().optional()
3164
+ });
3165
+ var DeleteProjectSubtaskRequestSchema = z7.object({
3166
+ projectId: z7.string(),
3167
+ subtaskId: z7.string(),
3168
+ requestingUserId: z7.string().optional()
3169
+ });
3170
+ var GetProjectTaskChatRequestSchema = z7.object({
3171
+ projectId: z7.string(),
3172
+ taskId: z7.string(),
3173
+ limit: z7.number().int().positive().optional().default(20)
3174
+ });
3175
+ var AddProjectTaskDependencyRequestSchema = z7.object({
3176
+ projectId: z7.string(),
3177
+ taskId: z7.string(),
3178
+ dependsOnSlugOrId: z7.string(),
3179
+ requestingUserId: z7.string().optional()
3180
+ });
3181
+ var RemoveProjectTaskDependencyRequestSchema = z7.object({
3182
+ projectId: z7.string(),
3183
+ taskId: z7.string(),
3184
+ dependsOnSlugOrId: z7.string(),
3185
+ requestingUserId: z7.string().optional()
3186
+ });
3187
+ var VoteProjectSuggestionRequestSchema = z7.object({
3188
+ projectId: z7.string(),
3189
+ suggestionId: z7.string(),
3190
+ value: z7.union([z7.literal(1), z7.literal(-1)]),
3191
+ requestingUserId: z7.string().optional()
3192
+ });
3193
+ var GetProjectTaskDependenciesRequestSchema = z7.object({
3194
+ projectId: z7.string(),
3195
+ taskId: z7.string()
3196
+ });
3197
+ var CreateProjectPullRequestRequestSchema = z7.object({
3198
+ projectId: z7.string(),
3199
+ taskId: z7.string(),
3200
+ title: z7.string().min(1),
3201
+ body: z7.string(),
3202
+ head: z7.string().optional(),
3203
+ base: z7.string().optional(),
3204
+ requestingUserId: z7.string().optional()
3205
+ });
3206
+ var ListProjectMembersRequestSchema = z7.object({
3207
+ projectId: z7.string()
3208
+ });
3209
+ var AddProjectTaskReviewerRequestSchema = z7.object({
3210
+ projectId: z7.string(),
3211
+ taskId: z7.string(),
3212
+ userId: z7.string(),
3213
+ requestingUserId: z7.string().optional()
3214
+ });
3215
+ var RemoveProjectTaskReviewerRequestSchema = z7.object({
3216
+ projectId: z7.string(),
3217
+ taskId: z7.string(),
3218
+ userId: z7.string(),
3219
+ requestingUserId: z7.string().optional()
3220
+ });
3221
+ var ListProjectManualTestsRequestSchema = z7.object({
3222
+ projectId: z7.string(),
3223
+ taskId: z7.string()
3224
+ });
3225
+ var QueryProjectManualTestsRequestSchema = z7.object({
3226
+ projectId: z7.string(),
3227
+ cardStatuses: z7.array(z7.string()).optional(),
3228
+ testStatuses: z7.array(z7.enum(["open", "approved", "rejected"])).optional()
3229
+ });
3230
+ var SetProjectManualTestsRequestSchema = z7.object({
3231
+ projectId: z7.string(),
3232
+ taskId: z7.string(),
3223
3233
  items: ManualTestItemsSchema,
3224
- requestingUserId: z6.string().optional()
3225
- });
3226
- var EditProjectManualTestRequestSchema = z6.object({
3227
- projectId: z6.string(),
3228
- taskId: z6.string(),
3229
- title: z6.string().min(1),
3230
- newTitle: z6.string().min(1),
3231
- requestingUserId: z6.string().optional()
3232
- });
3233
- var RemoveProjectManualTestRequestSchema = z6.object({
3234
- projectId: z6.string(),
3235
- taskId: z6.string(),
3236
- title: z6.string().min(1),
3237
- requestingUserId: z6.string().optional()
3238
- });
3239
- var ApproveProjectManualTestRequestSchema = z6.object({
3240
- projectId: z6.string(),
3241
- taskId: z6.string(),
3242
- title: z6.string().min(1),
3243
- requestingUserId: z6.string().optional()
3244
- });
3245
- var RejectProjectManualTestRequestSchema = z6.object({
3246
- projectId: z6.string(),
3247
- taskId: z6.string(),
3248
- title: z6.string().min(1),
3249
- reason: z6.string().min(1).max(2e3),
3250
- requestingUserId: z6.string().optional()
3251
- });
3252
- var CreateProjectSuggestionRequestSchema = z6.object({
3253
- projectId: z6.string(),
3254
- title: z6.string().min(1),
3234
+ requestingUserId: z7.string().optional()
3235
+ });
3236
+ var EditProjectManualTestRequestSchema = z7.object({
3237
+ projectId: z7.string(),
3238
+ taskId: z7.string(),
3239
+ title: z7.string().min(1),
3240
+ newTitle: z7.string().min(1),
3241
+ requestingUserId: z7.string().optional()
3242
+ });
3243
+ var RemoveProjectManualTestRequestSchema = z7.object({
3244
+ projectId: z7.string(),
3245
+ taskId: z7.string(),
3246
+ title: z7.string().min(1),
3247
+ requestingUserId: z7.string().optional()
3248
+ });
3249
+ var ApproveProjectManualTestRequestSchema = z7.object({
3250
+ projectId: z7.string(),
3251
+ taskId: z7.string(),
3252
+ title: z7.string().min(1),
3253
+ requestingUserId: z7.string().optional()
3254
+ });
3255
+ var RejectProjectManualTestRequestSchema = z7.object({
3256
+ projectId: z7.string(),
3257
+ taskId: z7.string(),
3258
+ title: z7.string().min(1),
3259
+ reason: z7.string().min(1).max(2e3),
3260
+ requestingUserId: z7.string().optional()
3261
+ });
3262
+ var CreateProjectSuggestionRequestSchema = z7.object({
3263
+ projectId: z7.string(),
3264
+ title: z7.string().min(1),
3255
3265
  description: cardDescription2,
3256
- tagNames: z6.array(z6.string()).optional(),
3257
- requestingUserId: z6.string().optional()
3266
+ tagNames: z7.array(z7.string()).optional(),
3267
+ requestingUserId: z7.string().optional()
3258
3268
  });
3259
- var ListProjectChannelsRequestSchema = z7.object({
3260
- projectId: z7.string()
3269
+ var ListProjectChannelsRequestSchema = z8.object({
3270
+ projectId: z8.string()
3261
3271
  });
3262
3272
  var READ_CHANNEL_MESSAGES_MAX_LIMIT = 50;
3263
- var ReadChannelMessagesRequestSchema = z7.object({
3264
- projectId: z7.string(),
3265
- channelId: z7.string().min(1).max(200),
3266
- limit: z7.number().int().min(1).max(READ_CHANNEL_MESSAGES_MAX_LIMIT).optional(),
3273
+ var ReadChannelMessagesRequestSchema = z8.object({
3274
+ projectId: z8.string(),
3275
+ channelId: z8.string().min(1).max(200),
3276
+ limit: z8.number().int().min(1).max(READ_CHANNEL_MESSAGES_MAX_LIMIT).optional(),
3267
3277
  /** Provider-native cursor: return messages OLDER than this one. */
3268
- before: z7.string().max(100).optional(),
3278
+ before: z8.string().max(100).optional(),
3269
3279
  /** Provider-native cursor: return messages NEWER than this one. */
3270
- after: z7.string().max(100).optional(),
3280
+ after: z8.string().max(100).optional(),
3271
3281
  /**
3272
3282
  * Read one thread instead of the channel surface. Slack calls this a
3273
3283
  * `thread_ts`; on Discord it is the thread channel's id. One field for both,
3274
3284
  * because a caller holding a `threadTs` from a previous read should not have
3275
3285
  * to know which provider produced it.
3276
3286
  */
3277
- threadTs: z7.string().max(100).optional()
3287
+ threadTs: z8.string().max(100).optional()
3278
3288
  });
3279
3289
  var POST_CHANNEL_MESSAGE_MAX_CHARS = 1800;
3280
- var PostChannelMessageRequestSchema = z7.object({
3281
- projectId: z7.string(),
3282
- channelId: z7.string().min(1).max(200),
3283
- text: z7.string().min(1).max(POST_CHANNEL_MESSAGE_MAX_CHARS),
3290
+ var PostChannelMessageRequestSchema = z8.object({
3291
+ projectId: z8.string(),
3292
+ channelId: z8.string().min(1).max(200),
3293
+ text: z8.string().min(1).max(POST_CHANNEL_MESSAGE_MAX_CHARS),
3284
3294
  /** Reply inside a thread rather than to the channel. */
3285
- threadTs: z7.string().max(100).optional()
3295
+ threadTs: z8.string().max(100).optional()
3286
3296
  });
3287
3297
  var GET_ANALYTICS_SUMMARY_MAX_RANGE_DAYS = 90;
3288
- var GetProjectAnalyticsSummaryRequestSchema = z7.object({
3289
- projectId: z7.string(),
3290
- rangeDays: z7.number().int().min(1).max(GET_ANALYTICS_SUMMARY_MAX_RANGE_DAYS).optional(),
3291
- campaign: z7.string().max(200).optional()
3292
- });
3293
- var ListProjectTaskFilesRequestSchema = z8.object({
3298
+ var GetProjectAnalyticsSummaryRequestSchema = z8.object({
3294
3299
  projectId: z8.string(),
3295
- taskId: z8.string()
3300
+ rangeDays: z8.number().int().min(1).max(GET_ANALYTICS_SUMMARY_MAX_RANGE_DAYS).optional(),
3301
+ campaign: z8.string().max(200).optional()
3296
3302
  });
3297
- var GetProjectAttachmentRequestSchema = z8.object({
3298
- projectId: z8.string(),
3299
- taskId: z8.string(),
3300
- fileId: z8.string(),
3303
+ var ListProjectTaskFilesRequestSchema = z9.object({
3304
+ projectId: z9.string(),
3305
+ taskId: z9.string()
3306
+ });
3307
+ var GetProjectAttachmentRequestSchema = z9.object({
3308
+ projectId: z9.string(),
3309
+ taskId: z9.string(),
3310
+ fileId: z9.string(),
3301
3311
  /** Byte offset into text content (paging large logs/JSON). Default 0. */
3302
- offset: z8.number().int().nonnegative().optional(),
3312
+ offset: z9.number().int().nonnegative().optional(),
3303
3313
  /** Max bytes of text content to return from `offset`. Server default applies. */
3304
- maxBytes: z8.number().int().positive().optional()
3305
- });
3306
- var DeleteProjectTaskFileRequestSchema = z8.object({
3307
- projectId: z8.string(),
3308
- taskId: z8.string(),
3309
- fileId: z8.string(),
3310
- requestingUserId: z8.string().optional()
3311
- });
3312
- var SetProjectTaskFileShowcaseRequestSchema = z8.object({
3313
- projectId: z8.string(),
3314
- taskId: z8.string(),
3315
- fileId: z8.string(),
3316
- showcase: z8.boolean(),
3317
- requestingUserId: z8.string().optional()
3318
- });
3319
- var RequestProjectFileUploadRequestSchema = z8.object({
3320
- projectId: z8.string(),
3321
- taskId: z8.string(),
3322
- fileName: z8.string().min(1).max(255),
3323
- mimeType: z8.string().min(1).max(128),
3324
- fileSize: z8.number().int().positive().max(MAX_FILE_SIZE_BYTES),
3325
- requestingUserId: z8.string().optional()
3326
- });
3327
- var ConfirmProjectFileUploadRequestSchema = z8.object({
3328
- projectId: z8.string(),
3329
- taskId: z8.string(),
3330
- fileId: z8.string(),
3314
+ maxBytes: z9.number().int().positive().optional()
3315
+ });
3316
+ var DeleteProjectTaskFileRequestSchema = z9.object({
3317
+ projectId: z9.string(),
3318
+ taskId: z9.string(),
3319
+ fileId: z9.string(),
3320
+ requestingUserId: z9.string().optional()
3321
+ });
3322
+ var SetProjectTaskFileShowcaseRequestSchema = z9.object({
3323
+ projectId: z9.string(),
3324
+ taskId: z9.string(),
3325
+ fileId: z9.string(),
3326
+ showcase: z9.boolean(),
3327
+ requestingUserId: z9.string().optional()
3328
+ });
3329
+ var RequestProjectFileUploadRequestSchema = z9.object({
3330
+ projectId: z9.string(),
3331
+ taskId: z9.string(),
3332
+ fileName: z9.string().min(1).max(255),
3333
+ mimeType: z9.string().min(1).max(128),
3334
+ fileSize: z9.number().int().positive().max(MAX_FILE_SIZE_BYTES),
3335
+ requestingUserId: z9.string().optional()
3336
+ });
3337
+ var ConfirmProjectFileUploadRequestSchema = z9.object({
3338
+ projectId: z9.string(),
3339
+ taskId: z9.string(),
3340
+ fileId: z9.string(),
3331
3341
  /** When set, the attachment is also posted to the task chat with this text. */
3332
- comment: z8.string().max(2e3).optional(),
3342
+ comment: z9.string().max(2e3).optional(),
3333
3343
  /** Glossary tag names (or ids) this file is an example of. */
3334
- tags: z8.array(z8.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional(),
3344
+ tags: z9.array(z9.string().min(1).max(MAX_FILE_TAG_LENGTH)).max(MAX_FILE_TAGS).optional(),
3335
3345
  /** The card's showcase (its deliverable); always posts to chat, even with no `comment`. */
3336
- showcase: z8.boolean().optional(),
3346
+ showcase: z9.boolean().optional(),
3337
3347
  /** Id of an older file on the same card this upload replaces. */
3338
- supersedes: z8.string().min(1).max(64).optional(),
3339
- requestingUserId: z8.string().optional()
3348
+ supersedes: z9.string().min(1).max(64).optional(),
3349
+ requestingUserId: z9.string().optional()
3340
3350
  });
3341
- var RequestWorkspaceRecycleRequestSchema = z9.object({
3342
- sessionId: z9.string(),
3343
- reason: z9.string().max(2e3)
3351
+ var RequestWorkspaceRecycleRequestSchema = z10.object({
3352
+ sessionId: z10.string(),
3353
+ reason: z10.string().max(2e3)
3344
3354
  });
3345
- var ReportApiOutageRequestSchema = z9.object({
3346
- sessionId: z9.string(),
3347
- detail: z9.string().max(2e3),
3348
- attempts: z9.number().int().min(0).max(100)
3355
+ var ReportApiOutageRequestSchema = z10.object({
3356
+ sessionId: z10.string(),
3357
+ detail: z10.string().max(2e3),
3358
+ attempts: z10.number().int().min(0).max(100)
3349
3359
  });
3350
3360
  var CONTEXT_LINK_LOCATOR_MAX = 300;
3351
3361
  var TEST_TITLE = /\b(?:it|test|describe)(?:\.\w+)?\s*\(\s*(['"`])((?:(?!\1)[\s\S])*)\1/g;
@@ -3362,130 +3372,130 @@ function locatorMatchesContent(content, locatorType, locator) {
3362
3372
  var TAG_DESCRIPTION_MAX = CARD_DESCRIPTION_MAX;
3363
3373
  var TAG_OVERVIEW_MAX = 32e3;
3364
3374
  var TAG_REASON_MAX = 500;
3365
- var ProjectTagContextPathSchema = z10.object({
3366
- type: z10.enum(["rule", "doc", "file", "folder"]),
3367
- path: z10.string().min(1).max(500),
3368
- label: z10.string().max(100).optional(),
3375
+ var ProjectTagContextPathSchema = z11.object({
3376
+ type: z11.enum(["rule", "doc", "file", "folder"]),
3377
+ path: z11.string().min(1).max(500),
3378
+ label: z11.string().max(100).optional(),
3369
3379
  /** Verified-link tether — text that must keep existing in the file. */
3370
- locator: z10.string().min(1).max(CONTEXT_LINK_LOCATOR_MAX).regex(/^[^\r\n]*$/, "Locator cannot contain line breaks").optional(),
3380
+ locator: z11.string().min(1).max(CONTEXT_LINK_LOCATOR_MAX).regex(/^[^\r\n]*$/, "Locator cannot contain line breaks").optional(),
3371
3381
  /** test = must appear in a real test/describe title; code = any substring. */
3372
- locatorType: z10.enum(["test", "code"]).optional()
3382
+ locatorType: z11.enum(["test", "code"]).optional()
3373
3383
  }).refine((link) => link.locator === void 0 === (link.locatorType === void 0), {
3374
3384
  message: "locator and locatorType must be provided together"
3375
3385
  }).refine((link) => link.locator === void 0 || link.type !== "folder", {
3376
3386
  message: "folder links cannot carry a locator"
3377
3387
  });
3378
- var hexColor = z10.string().regex(/^#[0-9a-fA-F]{6}$/, "Expected #RRGGBB hex color");
3379
- var overviewPathSchema = z10.string().min(1).max(500).regex(/^[^\r\n]*$/, "Overview path cannot contain line breaks");
3380
- var CreateProjectTagRequestSchema = z10.object({
3381
- projectId: z10.string(),
3382
- name: z10.string().min(1).max(50),
3388
+ var hexColor = z11.string().regex(/^#[0-9a-fA-F]{6}$/, "Expected #RRGGBB hex color");
3389
+ var overviewPathSchema = z11.string().min(1).max(500).regex(/^[^\r\n]*$/, "Overview path cannot contain line breaks");
3390
+ var CreateProjectTagRequestSchema = z11.object({
3391
+ projectId: z11.string(),
3392
+ name: z11.string().min(1).max(50),
3383
3393
  color: hexColor.optional(),
3384
- description: z10.string().max(TAG_DESCRIPTION_MAX).optional(),
3385
- overview: z10.string().max(TAG_OVERVIEW_MAX).optional(),
3394
+ description: z11.string().max(TAG_DESCRIPTION_MAX).optional(),
3395
+ overview: z11.string().max(TAG_OVERVIEW_MAX).optional(),
3386
3396
  /** Source the overview from this repo file (stored overview stays as the pending fallback). */
3387
3397
  overviewPath: overviewPathSchema.optional(),
3388
- contextPaths: z10.array(ProjectTagContextPathSchema).max(20).optional(),
3398
+ contextPaths: z11.array(ProjectTagContextPathSchema).max(20).optional(),
3389
3399
  /** Parents to link at create time (multi-parent DAG). */
3390
- parentTagIds: z10.array(z10.string()).max(25).optional(),
3391
- requestingUserId: z10.string().optional()
3400
+ parentTagIds: z11.array(z11.string()).max(25).optional(),
3401
+ requestingUserId: z11.string().optional()
3392
3402
  });
3393
- var UpdateProjectTagRequestSchema = z10.object({
3394
- projectId: z10.string(),
3395
- tagId: z10.string(),
3396
- name: z10.string().min(1).max(50).optional(),
3403
+ var UpdateProjectTagRequestSchema = z11.object({
3404
+ projectId: z11.string(),
3405
+ tagId: z11.string(),
3406
+ name: z11.string().min(1).max(50).optional(),
3397
3407
  color: hexColor.optional(),
3398
- description: z10.string().max(TAG_DESCRIPTION_MAX).optional(),
3408
+ description: z11.string().max(TAG_DESCRIPTION_MAX).optional(),
3399
3409
  /** Full markdown glossary body; null clears it. Rejected while overviewPath is set. */
3400
- overview: z10.string().max(TAG_OVERVIEW_MAX).nullable().optional(),
3410
+ overview: z11.string().max(TAG_OVERVIEW_MAX).nullable().optional(),
3401
3411
  /** Repo file to source the overview from; null clears back to the stored overview. */
3402
3412
  overviewPath: overviewPathSchema.nullable().optional(),
3403
3413
  /** Full replacement of the tag's context links when provided. */
3404
- contextPaths: z10.array(ProjectTagContextPathSchema).max(20).optional(),
3414
+ contextPaths: z11.array(ProjectTagContextPathSchema).max(20).optional(),
3405
3415
  /** Full-set replacement of the tag's parent tags (multi-parent DAG). */
3406
- parentTagIds: z10.array(z10.string()).max(25).optional(),
3416
+ parentTagIds: z11.array(z11.string()).max(25).optional(),
3407
3417
  /** One-line revision provenance, recorded in the tag's history. */
3408
- reason: z10.string().max(TAG_REASON_MAX).optional(),
3418
+ reason: z11.string().max(TAG_REASON_MAX).optional(),
3409
3419
  /** Card the caller was working in — stamped into the revision history. */
3410
- taskId: z10.string().optional(),
3411
- requestingUserId: z10.string().optional()
3420
+ taskId: z11.string().optional(),
3421
+ requestingUserId: z11.string().optional()
3412
3422
  });
3413
- var PostToProjectChatRequestSchema = z10.object({
3414
- projectId: z10.string(),
3415
- content: z10.string().min(1).max(2e4),
3416
- requestingUserId: z10.string().optional(),
3423
+ var PostToProjectChatRequestSchema = z11.object({
3424
+ projectId: z11.string(),
3425
+ content: z11.string().min(1).max(2e4),
3426
+ requestingUserId: z11.string().optional(),
3417
3427
  /** Marks the post so the server can persist it beyond chat (tag-audit summaries land in tag history). */
3418
- kind: z10.enum(["tag_audit_summary"]).optional()
3419
- });
3420
- var StartTagAuditRequestSchema = z10.object({
3421
- projectId: z10.string(),
3422
- requestingUserId: z10.string().optional()
3423
- });
3424
- var StartTaskAuditRequestSchema = z10.object({
3425
- projectId: z10.string(),
3426
- taskIds: z10.array(z10.string()).min(1).max(20),
3427
- requestingUserId: z10.string().optional()
3428
- });
3429
- var GetActiveAuditSessionsRequestSchema = z10.object({
3430
- projectId: z10.string()
3431
- });
3432
- var ReportTaskAuditResultRequestSchema = z10.object({
3433
- projectId: z10.string(),
3434
- taskId: z10.string(),
3435
- summary: z10.string(),
3436
- turnGrades: z10.array(
3437
- z10.object({
3438
- turnIndex: z10.number(),
3439
- phase: z10.enum(["planning", "building", "human"]),
3440
- grade: z10.enum(["correct", "neutral", "blunder"]),
3441
- reasoning: z10.string(),
3442
- eventType: z10.string(),
3443
- eventSummary: z10.string()
3428
+ kind: z11.enum(["tag_audit_summary"]).optional()
3429
+ });
3430
+ var StartTagAuditRequestSchema = z11.object({
3431
+ projectId: z11.string(),
3432
+ requestingUserId: z11.string().optional()
3433
+ });
3434
+ var StartTaskAuditRequestSchema = z11.object({
3435
+ projectId: z11.string(),
3436
+ taskIds: z11.array(z11.string()).min(1).max(20),
3437
+ requestingUserId: z11.string().optional()
3438
+ });
3439
+ var GetActiveAuditSessionsRequestSchema = z11.object({
3440
+ projectId: z11.string()
3441
+ });
3442
+ var ReportTaskAuditResultRequestSchema = z11.object({
3443
+ projectId: z11.string(),
3444
+ taskId: z11.string(),
3445
+ summary: z11.string(),
3446
+ turnGrades: z11.array(
3447
+ z11.object({
3448
+ turnIndex: z11.number(),
3449
+ phase: z11.enum(["planning", "building", "human"]),
3450
+ grade: z11.enum(["correct", "neutral", "blunder"]),
3451
+ reasoning: z11.string(),
3452
+ eventType: z11.string(),
3453
+ eventSummary: z11.string()
3444
3454
  })
3445
3455
  ),
3446
- planningAccuracy: z10.number().nullable(),
3447
- buildingAccuracy: z10.number().nullable(),
3448
- humanAccuracy: z10.number().nullable(),
3449
- planningCorrect: z10.number(),
3450
- planningNeutral: z10.number(),
3451
- planningBlunder: z10.number(),
3452
- buildingCorrect: z10.number(),
3453
- buildingNeutral: z10.number(),
3454
- buildingBlunder: z10.number(),
3455
- humanCorrect: z10.number(),
3456
- humanNeutral: z10.number(),
3457
- humanBlunder: z10.number(),
3458
- humanEvaluations: z10.array(
3459
- z10.object({
3460
- messageIndex: z10.number(),
3461
- rating: z10.union([z10.literal(-1), z10.literal(0), z10.literal(1)]),
3462
- reasoning: z10.string()
3456
+ planningAccuracy: z11.number().nullable(),
3457
+ buildingAccuracy: z11.number().nullable(),
3458
+ humanAccuracy: z11.number().nullable(),
3459
+ planningCorrect: z11.number(),
3460
+ planningNeutral: z11.number(),
3461
+ planningBlunder: z11.number(),
3462
+ buildingCorrect: z11.number(),
3463
+ buildingNeutral: z11.number(),
3464
+ buildingBlunder: z11.number(),
3465
+ humanCorrect: z11.number(),
3466
+ humanNeutral: z11.number(),
3467
+ humanBlunder: z11.number(),
3468
+ humanEvaluations: z11.array(
3469
+ z11.object({
3470
+ messageIndex: z11.number(),
3471
+ rating: z11.union([z11.literal(-1), z11.literal(0), z11.literal(1)]),
3472
+ reasoning: z11.string()
3463
3473
  })
3464
3474
  ).optional(),
3465
- suggestionIds: z10.array(z10.string()),
3466
- auditCostUsd: z10.number().nullable(),
3467
- model: z10.string().nullable(),
3475
+ suggestionIds: z11.array(z11.string()),
3476
+ auditCostUsd: z11.number().nullable(),
3477
+ model: z11.string().nullable(),
3468
3478
  /** When set, the audit is marked failed with this message instead. */
3469
- error: z10.string().optional()
3479
+ error: z11.string().optional()
3470
3480
  });
3471
- var GetTaskAuditsRequestSchema = z10.object({
3472
- projectId: z10.string(),
3473
- limit: z10.number().int().positive().max(200).optional().default(50)
3481
+ var GetTaskAuditsRequestSchema = z11.object({
3482
+ projectId: z11.string(),
3483
+ limit: z11.number().int().positive().max(200).optional().default(50)
3474
3484
  });
3475
- var GetTaskAuditRequestSchema = z10.object({
3476
- projectId: z10.string(),
3477
- auditId: z10.string()
3485
+ var GetTaskAuditRequestSchema = z11.object({
3486
+ projectId: z11.string(),
3487
+ auditId: z11.string()
3478
3488
  });
3479
- var GetTaskAuditAggregatesRequestSchema = z10.object({
3480
- projectId: z10.string()
3489
+ var GetTaskAuditAggregatesRequestSchema = z11.object({
3490
+ projectId: z11.string()
3481
3491
  });
3482
- var DeleteTaskAuditRequestSchema = z10.object({
3483
- projectId: z10.string(),
3484
- auditId: z10.string(),
3485
- requestingUserId: z10.string().optional()
3492
+ var DeleteTaskAuditRequestSchema = z11.object({
3493
+ projectId: z11.string(),
3494
+ auditId: z11.string(),
3495
+ requestingUserId: z11.string().optional()
3486
3496
  });
3487
- var MarkInitialPromptSubmittedRequestSchema = z10.object({
3488
- sessionId: z10.string()
3497
+ var MarkInitialPromptSubmittedRequestSchema = z11.object({
3498
+ sessionId: z11.string()
3489
3499
  });
3490
3500
  var CRITICAL_AUTOMATED_SOURCES = /* @__PURE__ */ new Set([
3491
3501
  "ci_failure",
@@ -3539,165 +3549,165 @@ var DECISION_DEADLINE_MIN_HOURS = 1;
3539
3549
  var DECISION_DEADLINE_MAX_DAYS = 30;
3540
3550
  var DECISION_DEADLINE_MAX_HOURS = DECISION_DEADLINE_MAX_DAYS * 24;
3541
3551
  var DECISION_LIST_MAX_LIMIT = 200;
3542
- var decisionIdSchema = z11.string().cuid("Invalid decision ID");
3543
- var optionInputSchema = z11.object({
3544
- label: z11.string().min(1, "Option label is required").max(DECISION_OPTION_LABEL_MAX),
3545
- description: z11.string().min(1, "Describe the option as GIVEN / WHEN / THEN"),
3546
- kind: z11.enum(DECISION_OPTION_KINDS).optional()
3552
+ var decisionIdSchema = z12.string().cuid("Invalid decision ID");
3553
+ var optionInputSchema = z12.object({
3554
+ label: z12.string().min(1, "Option label is required").max(DECISION_OPTION_LABEL_MAX),
3555
+ description: z12.string().min(1, "Describe the option as GIVEN / WHEN / THEN"),
3556
+ kind: z12.enum(DECISION_OPTION_KINDS).optional()
3547
3557
  });
3548
- var optionsArraySchema = z11.array(optionInputSchema).min(DECISION_OPTIONS_MIN, `A decision needs at least ${DECISION_OPTIONS_MIN} options`).max(
3558
+ var optionsArraySchema = z12.array(optionInputSchema).min(DECISION_OPTIONS_MIN, `A decision needs at least ${DECISION_OPTIONS_MIN} options`).max(
3549
3559
  DECISION_OPTIONS_MAX,
3550
3560
  `A decision takes at most ${DECISION_OPTIONS_MAX} options \u2014 more than that means the question is not framed yet`
3551
3561
  );
3552
- var CreateDecisionRequestSchema = z11.object({
3553
- projectId: z11.string().cuid("Invalid project ID"),
3562
+ var CreateDecisionRequestSchema = z12.object({
3563
+ projectId: z12.string().cuid("Invalid project ID"),
3554
3564
  /** The question, as one plain sentence. */
3555
- title: z11.string().min(1, "A decision needs a question").max(DECISION_QUESTION_MAX),
3556
- description: z11.string().max(CARD_DESCRIPTION_MAX).optional(),
3557
- context: z11.string().min(1, "Context is required \u2014 say why this is being asked now"),
3565
+ title: z12.string().min(1, "A decision needs a question").max(DECISION_QUESTION_MAX),
3566
+ description: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3567
+ context: z12.string().min(1, "Context is required \u2014 say why this is being asked now"),
3558
3568
  options: optionsArraySchema,
3559
3569
  /** 1-based position of the option that wins on silence. */
3560
- defaultOptionOrdinal: z11.number().int().min(1).max(DECISION_OPTIONS_MAX),
3561
- deadlineHours: z11.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional(),
3570
+ defaultOptionOrdinal: z12.number().int().min(1).max(DECISION_OPTIONS_MAX),
3571
+ deadlineHours: z12.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional(),
3562
3572
  /** Cards this decision blocks, by cuid or slug. */
3563
- impactedCardRefs: z11.array(z11.string().min(1)).max(50).optional(),
3564
- tagNames: z11.array(z11.string().min(1)).max(10).optional(),
3565
- raisedByTaskId: z11.string().min(1).optional(),
3566
- raisedByPrNumber: z11.number().int().positive().optional()
3573
+ impactedCardRefs: z12.array(z12.string().min(1)).max(50).optional(),
3574
+ tagNames: z12.array(z12.string().min(1)).max(10).optional(),
3575
+ raisedByTaskId: z12.string().min(1).optional(),
3576
+ raisedByPrNumber: z12.number().int().positive().optional()
3567
3577
  });
3568
- var VoteDecisionRequestSchema = z11.object({
3578
+ var VoteDecisionRequestSchema = z12.object({
3569
3579
  decisionId: decisionIdSchema,
3570
- optionId: z11.string().cuid("Invalid option ID"),
3571
- reason: z11.string().max(DECISION_VOTE_REASON_MAX).optional(),
3572
- source: z11.enum(DECISION_VOTE_SOURCES).optional()
3580
+ optionId: z12.string().cuid("Invalid option ID"),
3581
+ reason: z12.string().max(DECISION_VOTE_REASON_MAX).optional(),
3582
+ source: z12.enum(DECISION_VOTE_SOURCES).optional()
3573
3583
  });
3574
- var RemoveDecisionVoteRequestSchema = z11.object({
3584
+ var RemoveDecisionVoteRequestSchema = z12.object({
3575
3585
  decisionId: decisionIdSchema
3576
3586
  });
3577
- var ResolveDecisionRequestSchema = z11.object({
3587
+ var ResolveDecisionRequestSchema = z12.object({
3578
3588
  decisionId: decisionIdSchema,
3579
- chosenOptionId: z11.string().cuid("Invalid option ID"),
3580
- resolution: z11.string().min(1, "A resolution is required \u2014 say what was decided").max(DECISION_RESOLUTION_MAX),
3581
- resolutionNotes: z11.string().optional()
3589
+ chosenOptionId: z12.string().cuid("Invalid option ID"),
3590
+ resolution: z12.string().min(1, "A resolution is required \u2014 say what was decided").max(DECISION_RESOLUTION_MAX),
3591
+ resolutionNotes: z12.string().optional()
3582
3592
  });
3583
- var CancelDecisionRequestSchema = z11.object({
3593
+ var CancelDecisionRequestSchema = z12.object({
3584
3594
  decisionId: decisionIdSchema,
3585
3595
  /** Why it is being dropped. Posted to the decision thread. */
3586
- reason: z11.string().max(DECISION_RESOLUTION_MAX).optional()
3596
+ reason: z12.string().max(DECISION_RESOLUTION_MAX).optional()
3587
3597
  });
3588
- var BulkDecisionIdsRequestSchema = z11.object({
3589
- projectId: z11.string().cuid("Invalid project ID"),
3590
- decisionIds: z11.array(z11.string().cuid()).min(1).max(200)
3598
+ var BulkDecisionIdsRequestSchema = z12.object({
3599
+ projectId: z12.string().cuid("Invalid project ID"),
3600
+ decisionIds: z12.array(z12.string().cuid()).min(1).max(200)
3591
3601
  });
3592
- var ReopenDecisionRequestSchema = z11.object({
3602
+ var ReopenDecisionRequestSchema = z12.object({
3593
3603
  decisionId: decisionIdSchema,
3594
- deadlineHours: z11.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional()
3604
+ deadlineHours: z12.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional()
3595
3605
  });
3596
- var UpdateDecisionRequestSchema = z11.object({
3606
+ var UpdateDecisionRequestSchema = z12.object({
3597
3607
  decisionId: decisionIdSchema,
3598
- title: z11.string().min(1).max(200).optional(),
3599
- description: z11.string().max(CARD_DESCRIPTION_MAX).optional(),
3600
- context: z11.string().min(1).optional(),
3601
- deadlineAt: z11.string().datetime().optional(),
3608
+ title: z12.string().min(1).max(200).optional(),
3609
+ description: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3610
+ context: z12.string().min(1).optional(),
3611
+ deadlineAt: z12.string().datetime().optional(),
3602
3612
  /** Only accepted while the decision has zero votes. */
3603
3613
  options: optionsArraySchema.optional(),
3604
- defaultOptionOrdinal: z11.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3605
- addImpactedCardRefs: z11.array(z11.string().min(1)).max(50).optional(),
3606
- removeImpactedCardIds: z11.array(z11.string().min(1)).max(50).optional()
3614
+ defaultOptionOrdinal: z12.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3615
+ addImpactedCardRefs: z12.array(z12.string().min(1)).max(50).optional(),
3616
+ removeImpactedCardIds: z12.array(z12.string().min(1)).max(50).optional()
3607
3617
  });
3608
- var GetDecisionRequestSchema = z11.object({
3618
+ var GetDecisionRequestSchema = z12.object({
3609
3619
  /** cuid or slug. A slug needs `projectId` to resolve unambiguously. */
3610
- decisionId: z11.string().min(1),
3611
- projectId: z11.string().cuid().optional()
3620
+ decisionId: z12.string().min(1),
3621
+ projectId: z12.string().cuid().optional()
3612
3622
  });
3613
- var ListDecisionsRequestSchema = z11.object({
3614
- projectId: z11.string().cuid("Invalid project ID"),
3615
- status: z11.enum(DECISION_STATUS_LABELS).optional(),
3623
+ var ListDecisionsRequestSchema = z12.object({
3624
+ projectId: z12.string().cuid("Invalid project ID"),
3625
+ status: z12.enum(DECISION_STATUS_LABELS).optional(),
3616
3626
  /** Tag name, not id — an agent knows the tag it is working under. */
3617
- tag: z11.string().min(1).optional(),
3627
+ tag: z12.string().min(1).optional(),
3618
3628
  /** Decisions that this card is blocked by (cuid or slug). */
3619
- cardId: z11.string().min(1).optional(),
3620
- query: z11.string().min(1).optional(),
3621
- limit: z11.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional()
3629
+ cardId: z12.string().min(1).optional(),
3630
+ query: z12.string().min(1).optional(),
3631
+ limit: z12.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional()
3622
3632
  });
3623
- var optionInput = z12.object({
3624
- label: z12.string().min(1).max(DECISION_OPTION_LABEL_MAX),
3625
- description: z12.string().min(1),
3626
- kind: z12.enum(DECISION_OPTION_KINDS).optional()
3633
+ var optionInput = z13.object({
3634
+ label: z13.string().min(1).max(DECISION_OPTION_LABEL_MAX),
3635
+ description: z13.string().min(1),
3636
+ kind: z13.enum(DECISION_OPTION_KINDS).optional()
3627
3637
  });
3628
- var optionsInput = z12.array(optionInput).min(DECISION_OPTIONS_MIN).max(DECISION_OPTIONS_MAX);
3629
- var deadlineHours = z12.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional();
3630
- var CreateProjectDecisionRequestSchema = z12.object({
3631
- projectId: z12.string(),
3632
- question: z12.string().min(1).max(200),
3633
- summary: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3634
- context: z12.string().min(1),
3638
+ var optionsInput = z13.array(optionInput).min(DECISION_OPTIONS_MIN).max(DECISION_OPTIONS_MAX);
3639
+ var deadlineHours = z13.number().min(DECISION_DEADLINE_MIN_HOURS).max(DECISION_DEADLINE_MAX_HOURS).optional();
3640
+ var CreateProjectDecisionRequestSchema = z13.object({
3641
+ projectId: z13.string(),
3642
+ question: z13.string().min(1).max(200),
3643
+ summary: z13.string().max(CARD_DESCRIPTION_MAX).optional(),
3644
+ context: z13.string().min(1),
3635
3645
  options: optionsInput,
3636
- defaultOption: z12.number().int().min(1).max(DECISION_OPTIONS_MAX),
3646
+ defaultOption: z13.number().int().min(1).max(DECISION_OPTIONS_MAX),
3637
3647
  deadlineHours,
3638
- impactedCards: z12.array(z12.string().min(1)).max(50).optional(),
3648
+ impactedCards: z13.array(z13.string().min(1)).max(50).optional(),
3639
3649
  /**
3640
3650
  * Pod surface only: also block the card this session is working on. The
3641
3651
  * session's task id is resolved SERVER-side from `sessionId` — a
3642
3652
  * client-supplied card id would let a pod block any card in the project.
3643
3653
  */
3644
- includeCurrentCard: z12.boolean().optional(),
3645
- sessionId: z12.string().optional(),
3646
- tagNames: z12.array(z12.string().min(1)).max(10).optional(),
3647
- raisedByPr: z12.number().int().positive().optional(),
3654
+ includeCurrentCard: z13.boolean().optional(),
3655
+ sessionId: z13.string().optional(),
3656
+ tagNames: z13.array(z13.string().min(1)).max(10).optional(),
3657
+ raisedByPr: z13.number().int().positive().optional(),
3648
3658
  /** Slug or id of the card that raised the question. A link back, not a block. */
3649
- raisedByCard: z12.string().min(1).optional(),
3659
+ raisedByCard: z13.string().min(1).optional(),
3650
3660
  /** Absolute deadline (ISO 8601). Wins over `deadlineHours` when both are sent. */
3651
- deadlineAt: z12.string().datetime({ offset: true }).optional(),
3652
- requestingUserId: z12.string().optional()
3661
+ deadlineAt: z13.string().datetime({ offset: true }).optional(),
3662
+ requestingUserId: z13.string().optional()
3653
3663
  });
3654
- var ListProjectDecisionsRequestSchema = z12.object({
3655
- projectId: z12.string(),
3656
- status: z12.enum(DECISION_STATUS_LABELS).optional(),
3657
- tag: z12.string().min(1).optional(),
3658
- card: z12.string().min(1).optional(),
3659
- query: z12.string().min(1).optional(),
3660
- limit: z12.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional(),
3661
- requestingUserId: z12.string().optional()
3662
- });
3663
- var GetProjectDecisionRequestSchema = z12.object({
3664
- projectId: z12.string(),
3665
- decision: z12.string().min(1),
3666
- requestingUserId: z12.string().optional()
3664
+ var ListProjectDecisionsRequestSchema = z13.object({
3665
+ projectId: z13.string(),
3666
+ status: z13.enum(DECISION_STATUS_LABELS).optional(),
3667
+ tag: z13.string().min(1).optional(),
3668
+ card: z13.string().min(1).optional(),
3669
+ query: z13.string().min(1).optional(),
3670
+ limit: z13.number().int().min(1).max(DECISION_LIST_MAX_LIMIT).optional(),
3671
+ requestingUserId: z13.string().optional()
3672
+ });
3673
+ var GetProjectDecisionRequestSchema = z13.object({
3674
+ projectId: z13.string(),
3675
+ decision: z13.string().min(1),
3676
+ requestingUserId: z13.string().optional()
3667
3677
  });
3668
- var VoteProjectDecisionRequestSchema = z12.object({
3669
- projectId: z12.string(),
3670
- decision: z12.string().min(1),
3678
+ var VoteProjectDecisionRequestSchema = z13.object({
3679
+ projectId: z13.string(),
3680
+ decision: z13.string().min(1),
3671
3681
  /** An option id, or its 1-based position. */
3672
- option: z12.string().min(1),
3673
- reason: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3674
- requestingUserId: z12.string().optional()
3675
- });
3676
- var ResolveProjectDecisionRequestSchema = z12.object({
3677
- projectId: z12.string(),
3678
- decision: z12.string().min(1),
3679
- option: z12.string().min(1),
3680
- resolution: z12.string().min(1).max(DECISION_RESOLUTION_MAX),
3681
- notes: z12.string().optional(),
3682
- requestingUserId: z12.string().optional()
3683
- });
3684
- var UpdateProjectDecisionRequestSchema = z12.object({
3685
- projectId: z12.string(),
3686
- decision: z12.string().min(1),
3687
- question: z12.string().min(1).max(200).optional(),
3688
- summary: z12.string().max(CARD_DESCRIPTION_MAX).optional(),
3689
- context: z12.string().min(1).optional(),
3682
+ option: z13.string().min(1),
3683
+ reason: z13.string().max(CARD_DESCRIPTION_MAX).optional(),
3684
+ requestingUserId: z13.string().optional()
3685
+ });
3686
+ var ResolveProjectDecisionRequestSchema = z13.object({
3687
+ projectId: z13.string(),
3688
+ decision: z13.string().min(1),
3689
+ option: z13.string().min(1),
3690
+ resolution: z13.string().min(1).max(DECISION_RESOLUTION_MAX),
3691
+ notes: z13.string().optional(),
3692
+ requestingUserId: z13.string().optional()
3693
+ });
3694
+ var UpdateProjectDecisionRequestSchema = z13.object({
3695
+ projectId: z13.string(),
3696
+ decision: z13.string().min(1),
3697
+ question: z13.string().min(1).max(200).optional(),
3698
+ summary: z13.string().max(CARD_DESCRIPTION_MAX).optional(),
3699
+ context: z13.string().min(1).optional(),
3690
3700
  /** Accepted only while nobody has voted. */
3691
3701
  options: optionsInput.optional(),
3692
- defaultOption: z12.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3693
- tagNames: z12.array(z12.string().min(1)).max(10).optional(),
3702
+ defaultOption: z13.number().int().min(1).max(DECISION_OPTIONS_MAX).optional(),
3703
+ tagNames: z13.array(z13.string().min(1)).max(10).optional(),
3694
3704
  deadlineHours,
3695
3705
  /** Absolute deadline (ISO 8601). Wins over `deadlineHours` when both are sent. */
3696
- deadlineAt: z12.string().datetime({ offset: true }).optional(),
3697
- addImpactedCards: z12.array(z12.string().min(1)).max(50).optional(),
3698
- removeImpactedCards: z12.array(z12.string().min(1)).max(50).optional(),
3699
- status: z12.enum(["Cancelled", "Open"]).optional(),
3700
- requestingUserId: z12.string().optional()
3706
+ deadlineAt: z13.string().datetime({ offset: true }).optional(),
3707
+ addImpactedCards: z13.array(z13.string().min(1)).max(50).optional(),
3708
+ removeImpactedCards: z13.array(z13.string().min(1)).max(50).optional(),
3709
+ status: z13.enum(["Cancelled", "Open"]).optional(),
3710
+ requestingUserId: z13.string().optional()
3701
3711
  });
3702
3712
  var EVALUATE_MAX_QUESTIONS = 32;
3703
3713
  var EVALUATE_MAX_ITEMS = 100;
@@ -3705,29 +3715,29 @@ var EVALUATE_ITEM_MAX_CHARS = 8e3;
3705
3715
  var EVALUATE_REQUEST_MAX_CHARS = 4e5;
3706
3716
  var TEXT_MAX = 1e3;
3707
3717
  var QUESTION_KEY = /^[A-Za-z0-9_-]{1,64}$/;
3708
- var EvaluateQuestionSchema = z13.object({
3709
- key: z13.string().regex(QUESTION_KEY, "key must be 1-64 letters, digits, _ or -"),
3710
- type: z13.enum(["noul", "choice", "score"]),
3711
- instructions: z13.string().min(1).max(4e3),
3712
- options: z13.array(
3713
- z13.object({
3714
- key: z13.string().min(1).max(200),
3715
- description: z13.string().min(1).max(TEXT_MAX)
3718
+ var EvaluateQuestionSchema = z14.object({
3719
+ key: z14.string().regex(QUESTION_KEY, "key must be 1-64 letters, digits, _ or -"),
3720
+ type: z14.enum(["noul", "choice", "score"]),
3721
+ instructions: z14.string().min(1).max(4e3),
3722
+ options: z14.array(
3723
+ z14.object({
3724
+ key: z14.string().min(1).max(200),
3725
+ description: z14.string().min(1).max(TEXT_MAX)
3716
3726
  })
3717
3727
  ).optional(),
3718
- levels: z13.array(z13.string().min(1).max(TEXT_MAX)).optional()
3728
+ levels: z14.array(z14.string().min(1).max(TEXT_MAX)).optional()
3719
3729
  }).superRefine((q, ctx) => {
3720
3730
  if (q.type === "choice") {
3721
3731
  const n = q.options?.length ?? 0;
3722
3732
  if (n < 2 || n > 255) {
3723
3733
  ctx.addIssue({
3724
- code: z13.ZodIssueCode.custom,
3734
+ code: z14.ZodIssueCode.custom,
3725
3735
  path: ["options"],
3726
3736
  message: "a choice question needs 2-255 options"
3727
3737
  });
3728
3738
  } else if (new Set(q.options?.map((o) => o.key)).size !== n) {
3729
3739
  ctx.addIssue({
3730
- code: z13.ZodIssueCode.custom,
3740
+ code: z14.ZodIssueCode.custom,
3731
3741
  path: ["options"],
3732
3742
  message: "option keys must be unique"
3733
3743
  });
@@ -3737,36 +3747,36 @@ var EvaluateQuestionSchema = z13.object({
3737
3747
  const n = q.levels?.length ?? 0;
3738
3748
  if (n < 2 || n > 10) {
3739
3749
  ctx.addIssue({
3740
- code: z13.ZodIssueCode.custom,
3750
+ code: z14.ZodIssueCode.custom,
3741
3751
  path: ["levels"],
3742
3752
  message: "a score question needs 2-10 levels"
3743
3753
  });
3744
3754
  }
3745
3755
  }
3746
3756
  });
3747
- var EvaluateQuestionsRequestSchema = z13.object({
3748
- projectId: z13.string(),
3749
- state: z13.string().max(JEV_STATE_MAX_CHARS).optional(),
3750
- items: z13.array(z13.string().max(EVALUATE_ITEM_MAX_CHARS)).max(EVALUATE_MAX_ITEMS).optional(),
3751
- questions: z13.array(EvaluateQuestionSchema).min(1).max(EVALUATE_MAX_QUESTIONS)
3757
+ var EvaluateQuestionsRequestSchema = z14.object({
3758
+ projectId: z14.string(),
3759
+ state: z14.string().max(JEV_STATE_MAX_CHARS).optional(),
3760
+ items: z14.array(z14.string().max(EVALUATE_ITEM_MAX_CHARS)).max(EVALUATE_MAX_ITEMS).optional(),
3761
+ questions: z14.array(EvaluateQuestionSchema).min(1).max(EVALUATE_MAX_QUESTIONS)
3752
3762
  }).superRefine((req, ctx) => {
3753
3763
  if (req.state === void 0 && (!req.items || req.items.length === 0)) {
3754
3764
  ctx.addIssue({
3755
- code: z13.ZodIssueCode.custom,
3765
+ code: z14.ZodIssueCode.custom,
3756
3766
  path: ["state"],
3757
3767
  message: "pass state, or a non-empty items array"
3758
3768
  });
3759
3769
  }
3760
3770
  if (JSON.stringify(req).length > EVALUATE_REQUEST_MAX_CHARS) {
3761
3771
  ctx.addIssue({
3762
- code: z13.ZodIssueCode.custom,
3772
+ code: z14.ZodIssueCode.custom,
3763
3773
  path: [],
3764
3774
  message: `the request is over ${EVALUATE_REQUEST_MAX_CHARS} characters; split the items across calls`
3765
3775
  });
3766
3776
  }
3767
3777
  if (new Set(req.questions.map((q) => q.key)).size !== req.questions.length) {
3768
3778
  ctx.addIssue({
3769
- code: z13.ZodIssueCode.custom,
3779
+ code: z14.ZodIssueCode.custom,
3770
3780
  path: ["questions"],
3771
3781
  message: "question keys must be unique"
3772
3782
  });
@@ -3804,129 +3814,129 @@ var MEETING_TITLE_MAX = 200;
3804
3814
  var MEETING_OCCURRED_AT_MIN_YEAR = 2e3;
3805
3815
  var MEETING_OCCURRED_AT_MAX_FUTURE_MS = 48 * 60 * 60 * 1e3;
3806
3816
  var OCCURRED_AT_RANGE_MESSAGE = `occurredAt must be a real date: no earlier than ${MEETING_OCCURRED_AT_MIN_YEAR}, and no more than 48 hours in the future.`;
3807
- var MeetingOccurredAtSchema = z14.string().datetime().refine((value) => {
3817
+ var MeetingOccurredAtSchema = z15.string().datetime().refine((value) => {
3808
3818
  const ms = Date.parse(value);
3809
3819
  if (Number.isNaN(ms)) return false;
3810
3820
  if (ms > Date.now() + MEETING_OCCURRED_AT_MAX_FUTURE_MS) return false;
3811
3821
  return new Date(ms).getUTCFullYear() >= MEETING_OCCURRED_AT_MIN_YEAR;
3812
3822
  }, OCCURRED_AT_RANGE_MESSAGE);
3813
- var CreateMeetingFromTranscriptRequestSchema = z14.object({
3814
- projectId: z14.string().cuid(),
3815
- rawText: z14.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3816
- title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3823
+ var CreateMeetingFromTranscriptRequestSchema = z15.object({
3824
+ projectId: z15.string().cuid(),
3825
+ rawText: z15.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3826
+ title: z15.string().min(1).max(MEETING_TITLE_MAX).optional(),
3817
3827
  /** ISO 8601. Defaults to now when the source carries no date. */
3818
3828
  occurredAt: MeetingOccurredAtSchema.optional(),
3819
3829
  /** Override auto-detection. Rarely needed; detection handles the three formats. */
3820
- format: z14.enum(["text", "vtt", "srt"]).optional(),
3821
- source: z14.enum(["manual", "slack"]).optional()
3830
+ format: z15.enum(["text", "vtt", "srt"]).optional(),
3831
+ source: z15.enum(["manual", "slack"]).optional()
3822
3832
  });
3823
- var GetMeetingRequestSchema = z14.object({
3824
- projectId: z14.string().cuid(),
3825
- meetingId: z14.string().cuid()
3833
+ var GetMeetingRequestSchema = z15.object({
3834
+ projectId: z15.string().cuid(),
3835
+ meetingId: z15.string().cuid()
3826
3836
  });
3827
- var UpdateMeetingRequestSchema = z14.object({
3828
- projectId: z14.string().cuid(),
3829
- meetingId: z14.string().cuid(),
3830
- title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3837
+ var UpdateMeetingRequestSchema = z15.object({
3838
+ projectId: z15.string().cuid(),
3839
+ meetingId: z15.string().cuid(),
3840
+ title: z15.string().min(1).max(MEETING_TITLE_MAX).optional(),
3831
3841
  occurredAt: MeetingOccurredAtSchema.optional()
3832
3842
  });
3833
- var RegenerateMeetingSummaryRequestSchema = z14.object({
3834
- projectId: z14.string().cuid(),
3835
- meetingId: z14.string().cuid()
3843
+ var RegenerateMeetingSummaryRequestSchema = z15.object({
3844
+ projectId: z15.string().cuid(),
3845
+ meetingId: z15.string().cuid()
3836
3846
  });
3837
- var DeleteMeetingRequestSchema = z14.object({
3838
- projectId: z14.string().cuid(),
3839
- meetingId: z14.string().cuid()
3847
+ var DeleteMeetingRequestSchema = z15.object({
3848
+ projectId: z15.string().cuid(),
3849
+ meetingId: z15.string().cuid()
3840
3850
  });
3841
- var checklistTitle = z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX);
3842
- var ListMeetingChecklistRequestSchema = z14.object({
3843
- projectId: z14.string().cuid(),
3844
- meetingId: z14.string().cuid()
3851
+ var checklistTitle = z15.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX);
3852
+ var ListMeetingChecklistRequestSchema = z15.object({
3853
+ projectId: z15.string().cuid(),
3854
+ meetingId: z15.string().cuid()
3845
3855
  });
3846
- var AddMeetingChecklistItemsRequestSchema = z14.object({
3847
- projectId: z14.string().cuid(),
3848
- meetingId: z14.string().cuid(),
3849
- items: z14.array(z14.object({ title: checklistTitle })).min(1).max(50)
3856
+ var AddMeetingChecklistItemsRequestSchema = z15.object({
3857
+ projectId: z15.string().cuid(),
3858
+ meetingId: z15.string().cuid(),
3859
+ items: z15.array(z15.object({ title: checklistTitle })).min(1).max(50)
3850
3860
  });
3851
- var UpdateMeetingChecklistItemRequestSchema = z14.object({
3852
- projectId: z14.string().cuid(),
3853
- meetingId: z14.string().cuid(),
3854
- itemId: z14.string().cuid(),
3861
+ var UpdateMeetingChecklistItemRequestSchema = z15.object({
3862
+ projectId: z15.string().cuid(),
3863
+ meetingId: z15.string().cuid(),
3864
+ itemId: z15.string().cuid(),
3855
3865
  title: checklistTitle.optional(),
3856
- ordinal: z14.number().int().min(0).optional(),
3866
+ ordinal: z15.number().int().min(0).optional(),
3857
3867
  /** Explicit null clears the link; undefined leaves it alone. */
3858
- linkedTaskId: z14.string().cuid().nullable().optional()
3868
+ linkedTaskId: z15.string().cuid().nullable().optional()
3859
3869
  }).refine(
3860
3870
  (v) => v.title !== void 0 || v.ordinal !== void 0 || v.linkedTaskId !== void 0,
3861
3871
  "Pass at least one of title, ordinal, or linkedTaskId."
3862
3872
  );
3863
- var DeleteMeetingChecklistItemRequestSchema = z14.object({
3864
- projectId: z14.string().cuid(),
3865
- meetingId: z14.string().cuid(),
3866
- itemId: z14.string().cuid()
3867
- });
3868
- var SetMeetingChecklistItemCheckedRequestSchema = z14.object({
3869
- projectId: z14.string().cuid(),
3870
- meetingId: z14.string().cuid(),
3871
- itemId: z14.string().cuid(),
3872
- checked: z14.boolean(),
3873
+ var DeleteMeetingChecklistItemRequestSchema = z15.object({
3874
+ projectId: z15.string().cuid(),
3875
+ meetingId: z15.string().cuid(),
3876
+ itemId: z15.string().cuid()
3877
+ });
3878
+ var SetMeetingChecklistItemCheckedRequestSchema = z15.object({
3879
+ projectId: z15.string().cuid(),
3880
+ meetingId: z15.string().cuid(),
3881
+ itemId: z15.string().cuid(),
3882
+ checked: z15.boolean(),
3873
3883
  /** Attach the card in the same call that ticks the item. */
3874
- linkedTaskId: z14.string().cuid().nullable().optional()
3884
+ linkedTaskId: z15.string().cuid().nullable().optional()
3875
3885
  });
3876
- var ListMeetingsRequestSchema = z14.object({
3877
- projectId: z14.string().cuid(),
3878
- limit: z14.number().int().min(1).max(50).optional(),
3879
- search: z14.string().max(200).optional()
3886
+ var ListMeetingsRequestSchema = z15.object({
3887
+ projectId: z15.string().cuid(),
3888
+ limit: z15.number().int().min(1).max(50).optional(),
3889
+ search: z15.string().max(200).optional()
3880
3890
  });
3881
- var ReadMeetingTranscriptRequestSchema = z14.object({
3882
- projectId: z14.string().cuid(),
3883
- meetingId: z14.string().cuid(),
3884
- offset: z14.number().int().min(0).optional(),
3885
- limit: z14.number().int().min(1).max(500).optional()
3891
+ var ReadMeetingTranscriptRequestSchema = z15.object({
3892
+ projectId: z15.string().cuid(),
3893
+ meetingId: z15.string().cuid(),
3894
+ offset: z15.number().int().min(0).optional(),
3895
+ limit: z15.number().int().min(1).max(500).optional()
3886
3896
  });
3887
3897
  var MEETING_SUMMARY_MAX_CHARS = 5e4;
3888
- var AddProjectMeetingChecklistItemsRequestSchema = z14.object({
3889
- projectId: z14.string().cuid(),
3890
- meetingId: z14.string().cuid(),
3891
- items: z14.array(z14.object({ title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX) })).min(1).max(50),
3892
- requestingUserId: z14.string().optional()
3893
- });
3894
- var CheckProjectMeetingChecklistItemRequestSchema = z14.object({
3895
- projectId: z14.string().cuid(),
3896
- meetingId: z14.string().cuid(),
3897
- title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3898
- checked: z14.boolean(),
3898
+ var AddProjectMeetingChecklistItemsRequestSchema = z15.object({
3899
+ projectId: z15.string().cuid(),
3900
+ meetingId: z15.string().cuid(),
3901
+ items: z15.array(z15.object({ title: z15.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX) })).min(1).max(50),
3902
+ requestingUserId: z15.string().optional()
3903
+ });
3904
+ var CheckProjectMeetingChecklistItemRequestSchema = z15.object({
3905
+ projectId: z15.string().cuid(),
3906
+ meetingId: z15.string().cuid(),
3907
+ title: z15.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3908
+ checked: z15.boolean(),
3899
3909
  /** Card id or slug. Resolved server-side and required to be in the project. */
3900
- linkedTask: z14.string().min(1).optional(),
3901
- requestingUserId: z14.string().optional()
3902
- });
3903
- var EditProjectMeetingChecklistItemRequestSchema = z14.object({
3904
- projectId: z14.string().cuid(),
3905
- meetingId: z14.string().cuid(),
3906
- title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3907
- newTitle: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3908
- requestingUserId: z14.string().optional()
3909
- });
3910
- var RemoveProjectMeetingChecklistItemRequestSchema = z14.object({
3911
- projectId: z14.string().cuid(),
3912
- meetingId: z14.string().cuid(),
3913
- title: z14.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3914
- requestingUserId: z14.string().optional()
3915
- });
3916
- var CreateProjectMeetingRequestSchema = z14.object({
3917
- projectId: z14.string().cuid(),
3918
- rawText: z14.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3919
- title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3910
+ linkedTask: z15.string().min(1).optional(),
3911
+ requestingUserId: z15.string().optional()
3912
+ });
3913
+ var EditProjectMeetingChecklistItemRequestSchema = z15.object({
3914
+ projectId: z15.string().cuid(),
3915
+ meetingId: z15.string().cuid(),
3916
+ title: z15.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3917
+ newTitle: z15.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3918
+ requestingUserId: z15.string().optional()
3919
+ });
3920
+ var RemoveProjectMeetingChecklistItemRequestSchema = z15.object({
3921
+ projectId: z15.string().cuid(),
3922
+ meetingId: z15.string().cuid(),
3923
+ title: z15.string().min(1).max(MEETING_CHECKLIST_TITLE_MAX),
3924
+ requestingUserId: z15.string().optional()
3925
+ });
3926
+ var CreateProjectMeetingRequestSchema = z15.object({
3927
+ projectId: z15.string().cuid(),
3928
+ rawText: z15.string().min(1).max(MEETING_TRANSCRIPT_MAX_CHARS),
3929
+ title: z15.string().min(1).max(MEETING_TITLE_MAX).optional(),
3920
3930
  occurredAt: MeetingOccurredAtSchema.optional(),
3921
- requestingUserId: z14.string().optional()
3931
+ requestingUserId: z15.string().optional()
3922
3932
  });
3923
- var UpdateProjectMeetingRequestSchema = z14.object({
3924
- projectId: z14.string().cuid(),
3925
- meetingId: z14.string().cuid(),
3926
- title: z14.string().min(1).max(MEETING_TITLE_MAX).optional(),
3933
+ var UpdateProjectMeetingRequestSchema = z15.object({
3934
+ projectId: z15.string().cuid(),
3935
+ meetingId: z15.string().cuid(),
3936
+ title: z15.string().min(1).max(MEETING_TITLE_MAX).optional(),
3927
3937
  occurredAt: MeetingOccurredAtSchema.optional(),
3928
- summary: z14.string().min(1).max(MEETING_SUMMARY_MAX_CHARS).optional(),
3929
- requestingUserId: z14.string().optional()
3938
+ summary: z15.string().min(1).max(MEETING_SUMMARY_MAX_CHARS).optional(),
3939
+ requestingUserId: z15.string().optional()
3930
3940
  }).refine(
3931
3941
  (v) => v.title !== void 0 || v.occurredAt !== void 0 || v.summary !== void 0,
3932
3942
  "Pass at least one of title, occurredAt, or summary."