snow-flow 10.0.209 → 10.0.210

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "10.0.209",
3
+ "version": "10.0.210",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - ServiceNow Multi-Agent Development Framework powered by AI",
6
6
  "license": "Elastic-2.0",
@@ -98,7 +98,7 @@
98
98
  "dotenv": "17.2.3",
99
99
  "fuzzysort": "3.1.0",
100
100
  "gray-matter": "4.0.3",
101
- "hono": "4.12.7",
101
+ "hono": "4.12.12",
102
102
  "hono-openapi": "1.2.0",
103
103
  "ignore": "7.0.5",
104
104
  "jsonc-parser": "3.3.1",
@@ -151,7 +151,9 @@ export const PtyRoutes = lazy(() =>
151
151
  }),
152
152
  validator("param", z.object({ ptyID: z.string() })),
153
153
  upgradeWebSocket((c) => {
154
- const id = c.req.param("ptyID")
154
+ // The `validator("param", ...)` middleware above guarantees ptyID is a string at runtime,
155
+ // but hono >= 4.12.12 narrowed c.req.param() to string | undefined regardless of validators.
156
+ const id = c.req.param("ptyID")!
155
157
  let handler: ReturnType<typeof Pty.connect>
156
158
  if (!Pty.get(id)) throw new Error("Session not found")
157
159
  return {