typeclaw 0.37.4 → 0.37.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,10 @@
1
1
  import { mkdir } from 'node:fs/promises'
2
- import { isAbsolute, join, relative, resolve } from 'node:path'
2
+ import { posix } from 'node:path'
3
+
4
+ // Container-only code over the POSIX `/tmp`; pinned to `path.posix` so the test
5
+ // suite produces the same backing paths on a win32 runner (default `node:path`
6
+ // would yield `\tmp\…` and diverge from the Linux runtime).
7
+ const { isAbsolute, join, relative, resolve } = posix
3
8
 
4
9
  // Per-session scratch lives on the REAL container /tmp, namespaced by session id.
5
10
  // It sits OUTSIDE the agent folder on purpose: the agent folder's `sessions/` is
@@ -9,7 +9,7 @@ import {
9
9
  writeFileSync,
10
10
  } from 'node:fs'
11
11
  import { homedir } from 'node:os'
12
- import { dirname, isAbsolute, join, resolve } from 'node:path'
12
+ import { dirname, isAbsolute, join, posix, resolve } from 'node:path'
13
13
 
14
14
  import { decodeClaudeAccessTokenExpiryMs, emitClaudeCredentialsJson } from './claude-credentials-json'
15
15
  import type { ProviderCredential, Providers } from './schema'
@@ -19,7 +19,7 @@ const FILE_MODE = 0o600
19
19
  const DIR_MODE = 0o700
20
20
  export const CLAUDE_CREDENTIALS_FILE_NAME = '.credentials.json'
21
21
  export const CLAUDE_DEFAULT_CONFIG_DIR_NAME = '.claude'
22
- export const CLAUDE_CREDENTIALS_RELATIVE_PATH = join(CLAUDE_DEFAULT_CONFIG_DIR_NAME, CLAUDE_CREDENTIALS_FILE_NAME)
22
+ export const CLAUDE_CREDENTIALS_RELATIVE_PATH = posix.join(CLAUDE_DEFAULT_CONFIG_DIR_NAME, CLAUDE_CREDENTIALS_FILE_NAME)
23
23
 
24
24
  export type ExportClaudeCredentialsFileResult =
25
25
  | { action: 'skipped'; reason: SkipReason }