ocpipe 0.5.15 → 0.5.17

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/DESIGN.md CHANGED
@@ -10,7 +10,7 @@ A Signature declares **what** an LLM interaction does - its inputs, outputs, and
10
10
 
11
11
  ```typescript
12
12
  import { signature, field } from 'ocpipe'
13
- import { z } from 'zod'
13
+ import { z } from 'zod/v4'
14
14
 
15
15
  const AnalyzeCode = signature({
16
16
  doc: 'Analyze code for potential issues and improvements.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocpipe",
3
- "version": "0.5.15",
3
+ "version": "0.5.17",
4
4
  "description": "SDK for LLM pipelines with OpenCode and Zod",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {},
32
32
  "peerDependencies": {
33
33
  "zod": "4.3.6",
34
- "@anthropic-ai/claude-agent-sdk": "0.2.44"
34
+ "@anthropic-ai/claude-agent-sdk": "0.2.45"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@anthropic-ai/claude-agent-sdk": {
@@ -39,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  "devDependencies": {
42
- "@anthropic-ai/claude-agent-sdk": "^0.2.44",
42
+ "@anthropic-ai/claude-agent-sdk": "^0.2.47",
43
43
  "@eslint/js": "^10.0.1",
44
44
  "bun-types": "^1.3.9",
45
45
  "eslint": "^10.0.0",
@@ -48,7 +48,7 @@
48
48
  "prettier": "^3.8.1",
49
49
  "typescript": "^5.0.0",
50
50
  "typescript-eslint": "^8.56.0",
51
- "@typescript/native-preview": "^7.0.0-dev.20260216.1",
51
+ "@typescript/native-preview": "^7.0.0-dev.20260218.1",
52
52
  "vitest": "^4.0.18"
53
53
  },
54
54
  "scripts": {
package/src/agent.ts CHANGED
@@ -34,7 +34,7 @@ export async function runAgent(
34
34
  async function runOpencodeAgent(
35
35
  options: RunAgentOptions,
36
36
  ): Promise<RunAgentResult> {
37
- const { prompt, agent, model, sessionId, timeoutSec = 600, workdir, signal } = options
37
+ const { prompt, agent, model, sessionId, timeoutSec = 3600, workdir, signal } = options
38
38
 
39
39
  if (!model.providerID) {
40
40
  throw new Error('providerID is required for OpenCode backend')
@@ -7,7 +7,7 @@
7
7
  * sends SIGTERM immediately, which kills the subprocess before it can persist.
8
8
  *
9
9
  * See: https://github.com/s4wave/ocpipe/issues/10
10
- * See: https://github.com/anthropics/anthropic-sdk-typescript/issues/911
10
+ * See: https://github.com/anthropics/claude-agent-sdk-typescript/issues/177
11
11
  */
12
12
 
13
13
  import { execSync } from 'child_process'
@@ -68,7 +68,7 @@ function resolveClaudeCodePath(explicit?: string): string | undefined {
68
68
  try {
69
69
  const found = execSync('which claude', { encoding: 'utf8', timeout: 3000 }).trim()
70
70
  if (found) return found
71
- } catch {}
71
+ } catch { /* which not found or timed out — fall through to defaults */ }
72
72
 
73
73
  const defaults = [
74
74
  join(homedir(), '.local', 'bin', 'claude'),
@@ -150,7 +150,7 @@ export async function runClaudeCodeAgent(
150
150
  agent,
151
151
  model,
152
152
  sessionId,
153
- timeoutSec = 600,
153
+ timeoutSec = 3600,
154
154
  workdir,
155
155
  claudeCode,
156
156
  signal,
package/src/pipeline.ts CHANGED
@@ -31,7 +31,7 @@ export class Pipeline<S extends BaseState> {
31
31
  sessionId: undefined,
32
32
  defaultModel: config.defaultModel,
33
33
  defaultAgent: config.defaultAgent,
34
- timeoutSec: config.timeoutSec ?? 600,
34
+ timeoutSec: config.timeoutSec ?? 3600,
35
35
  workdir: config.workdir,
36
36
  claudeCode: config.claudeCode,
37
37
  }