@cortexkit/aft-opencode 0.22.0 → 0.22.1

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/dist/index.js CHANGED
@@ -28121,7 +28121,6 @@ async function resolveIsSubagent(client, sessionId, _fallbackDirectory) {
28121
28121
  if (cached2) {
28122
28122
  cache2.delete(sessionId);
28123
28123
  cache2.set(sessionId, cached2);
28124
- sessionLog2(sessionId, `[subagent-detect] cache hit: isSubagent=${cached2.isSubagent}`);
28125
28124
  return cached2.isSubagent;
28126
28125
  }
28127
28126
  const c = client;
@@ -28210,7 +28209,6 @@ function createBashTool(ctx) {
28210
28209
  const isSubagent = await resolveIsSubagent(ctx.client, context.sessionID, context.directory);
28211
28210
  const requestedBackground = args.background === true;
28212
28211
  const effectiveBackground = isSubagent ? false : requestedBackground;
28213
- sessionLog2(context.sessionID, `[bash] subagent gate: isSubagent=${isSubagent}, requestedBackground=${requestedBackground}, effectiveBackground=${effectiveBackground}, hasTimeout=${typeof args.timeout === "number"}`);
28214
28212
  if (isSubagent && requestedBackground) {
28215
28213
  sessionLog2(context.sessionID, "[bash] subagent + background:true \u2192 converting to foreground (subagent would lose task_id)");
28216
28214
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAMvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA0EjD,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAwOjE;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAqCvE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAmBrE"}
1
+ {"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../src/tools/bash.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAMvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA0EjD,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAuOjE;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAqCvE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,cAAc,CAmBrE"}
package/dist/tui.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "@cortexkit/aft-opencode",
5
- version: "0.22.0",
5
+ version: "0.22.1",
6
6
  type: "module",
7
7
  description: "OpenCode plugin for Agent File Tools (AFT) \u2014 tree-sitter and lsp powered code analysis",
8
8
  main: "dist/index.js",
@@ -30,7 +30,7 @@ var package_default = {
30
30
  },
31
31
  dependencies: {
32
32
  "@clack/prompts": "^1.2.0",
33
- "@cortexkit/aft-bridge": "0.22.0",
33
+ "@cortexkit/aft-bridge": "0.22.1",
34
34
  "@opencode-ai/plugin": "^1.14.39",
35
35
  "@opencode-ai/sdk": "^1.14.39",
36
36
  "comment-json": "^4.6.2",
@@ -38,11 +38,11 @@ var package_default = {
38
38
  zod: "^4.1.8"
39
39
  },
40
40
  optionalDependencies: {
41
- "@cortexkit/aft-darwin-arm64": "0.22.0",
42
- "@cortexkit/aft-darwin-x64": "0.22.0",
43
- "@cortexkit/aft-linux-arm64": "0.22.0",
44
- "@cortexkit/aft-linux-x64": "0.22.0",
45
- "@cortexkit/aft-win32-x64": "0.22.0"
41
+ "@cortexkit/aft-darwin-arm64": "0.22.1",
42
+ "@cortexkit/aft-darwin-x64": "0.22.1",
43
+ "@cortexkit/aft-linux-arm64": "0.22.1",
44
+ "@cortexkit/aft-linux-x64": "0.22.1",
45
+ "@cortexkit/aft-win32-x64": "0.22.1"
46
46
  },
47
47
  devDependencies: {
48
48
  "@types/node": "^22.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/aft-opencode",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Agent File Tools (AFT) — tree-sitter and lsp powered code analysis",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@clack/prompts": "^1.2.0",
31
- "@cortexkit/aft-bridge": "0.22.0",
31
+ "@cortexkit/aft-bridge": "0.22.1",
32
32
  "@opencode-ai/plugin": "^1.14.39",
33
33
  "@opencode-ai/sdk": "^1.14.39",
34
34
  "comment-json": "^4.6.2",
@@ -36,11 +36,11 @@
36
36
  "zod": "^4.1.8"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@cortexkit/aft-darwin-arm64": "0.22.0",
40
- "@cortexkit/aft-darwin-x64": "0.22.0",
41
- "@cortexkit/aft-linux-arm64": "0.22.0",
42
- "@cortexkit/aft-linux-x64": "0.22.0",
43
- "@cortexkit/aft-win32-x64": "0.22.0"
39
+ "@cortexkit/aft-darwin-arm64": "0.22.1",
40
+ "@cortexkit/aft-darwin-x64": "0.22.1",
41
+ "@cortexkit/aft-linux-arm64": "0.22.1",
42
+ "@cortexkit/aft-linux-x64": "0.22.1",
43
+ "@cortexkit/aft-win32-x64": "0.22.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^22.0.0",
@@ -72,10 +72,10 @@ export async function resolveIsSubagent(
72
72
 
73
73
  const cached = cache.get(sessionId);
74
74
  if (cached) {
75
- // Refresh LRU position
75
+ // Refresh LRU position. Don't log the hit — it's pure noise; the
76
+ // downstream call sites already log their effective gate decisions.
76
77
  cache.delete(sessionId);
77
78
  cache.set(sessionId, cached);
78
- sessionLog(sessionId, `[subagent-detect] cache hit: isSubagent=${cached.isSubagent}`);
79
79
  return cached.isSubagent;
80
80
  }
81
81