threadwire 0.1.10 → 0.1.11

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
  "name": "threadwire",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Stream Codex, Claude, Kimi Code, and OpenCode worker progress to an explicit Telegram destination",
5
5
  "keywords": [
6
6
  "ai-agent",
@@ -59,6 +59,7 @@ const EXPECTED_FILES = [
59
59
  "src/notice-queue.js",
60
60
  "src/notifiers/fetch-transport.js",
61
61
  "src/notifiers/telegram.js",
62
+ "src/path-safety.js",
62
63
  "src/providers/claude.js",
63
64
  "src/providers/codex.js",
64
65
  "src/providers/executable.js",
@@ -16,7 +16,9 @@ const ALLOWED_HEADERS = new Set([
16
16
  "accept-language", "sec-fetch-mode", "user-agent",
17
17
  "x-stainless-arch", "x-stainless-lang", "x-stainless-os",
18
18
  "x-stainless-package-version", "x-stainless-runtime", "x-stainless-runtime-version",
19
- "x-stainless-retry-count", "x-stainless-timeout", "x-stainless-async"
19
+ "x-stainless-retry-count", "x-stainless-timeout", "x-stainless-async",
20
+ "x-msh-device-id", "x-msh-device-model", "x-msh-device-name", "x-msh-os-version",
21
+ "x-msh-platform", "x-msh-version"
20
22
  ])
21
23
  const BODY_KEYS = new Set([
22
24
  "model", "messages", "stream", "stream_options", "tools", "thinking",
@@ -0,0 +1,8 @@
1
+ // @ts-check
2
+
3
+ import {isAbsolute} from "node:path"
4
+
5
+ /** @param {string} path */
6
+ export function escapesDirectory(path) {
7
+ return path === ".." || path.startsWith("../") || isAbsolute(path)
8
+ }