ocpipe 0.5.19 → 0.6.0

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": "ocpipe",
3
- "version": "0.5.19",
3
+ "version": "0.6.0",
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.47"
34
+ "@anthropic-ai/claude-agent-sdk": "0.2.62"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@anthropic-ai/claude-agent-sdk": {
@@ -39,16 +39,16 @@
39
39
  }
40
40
  },
41
41
  "devDependencies": {
42
- "@anthropic-ai/claude-agent-sdk": "^0.2.47",
42
+ "@anthropic-ai/claude-agent-sdk": "^0.2.62",
43
43
  "@eslint/js": "^10.0.1",
44
- "bun-types": "^1.3.9",
45
- "eslint": "^10.0.0",
44
+ "bun-types": "^1.3.10",
45
+ "eslint": "^10.0.2",
46
46
  "globals": "^17.3.0",
47
47
  "jiti": "^2.6.1",
48
48
  "prettier": "^3.8.1",
49
49
  "typescript": "^5.0.0",
50
- "typescript-eslint": "^8.56.0",
51
- "@typescript/native-preview": "^7.0.0-dev.20260218.1",
50
+ "typescript-eslint": "^8.56.1",
51
+ "@typescript/native-preview": "^7.0.0-dev.20260227.1",
52
52
  "vitest": "^4.0.18"
53
53
  },
54
54
  "scripts": {
package/src/agent.ts CHANGED
@@ -249,6 +249,8 @@ async function exportSession(
249
249
  sessionId,
250
250
  '--format',
251
251
  'json',
252
+ '--turn',
253
+ '-1',
252
254
  '-o',
253
255
  tmpPath,
254
256
  ])
@@ -271,7 +273,8 @@ async function exportSession(
271
273
  }
272
274
  await Bun.write(tmpPath, '') // Clean up
273
275
 
274
- // Extract all assistant text parts
276
+ // Extract all assistant text parts from the exported turn.
277
+ // The --turn -1 flag ensures we only get the last turn's messages.
275
278
  const messages = data.messages || []
276
279
  const textParts: string[] = []
277
280
 
@@ -222,6 +222,12 @@ export async function runClaudeCodeAgent(
222
222
  })(),
223
223
  }
224
224
 
225
+ if (claudeCode?.agents) {
226
+ console.error(`[ocpipe] Subagents defined: ${Object.keys(claudeCode.agents).join(', ')}`)
227
+ }
228
+ if (claudeCode?.allowedTools) {
229
+ console.error(`[ocpipe] Allowed tools: ${claudeCode.allowedTools.join(', ')}`)
230
+ }
225
231
  console.error(
226
232
  `\n>>> Claude Code [${modelStr}] [${permissionMode}] ${sessionInfo}: ${promptPreview}...`,
227
233
  )