oh-my-customcode 0.51.1 → 0.51.2
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/cli/index.js
CHANGED
|
@@ -9323,7 +9323,7 @@ var init_package = __esm(() => {
|
|
|
9323
9323
|
package_default = {
|
|
9324
9324
|
name: "oh-my-customcode",
|
|
9325
9325
|
workspaces: ["packages/*"],
|
|
9326
|
-
version: "0.51.
|
|
9326
|
+
version: "0.51.2",
|
|
9327
9327
|
description: "Batteries-included agent harness for Claude Code",
|
|
9328
9328
|
type: "module",
|
|
9329
9329
|
bin: {
|
package/dist/index.js
CHANGED
|
@@ -1668,7 +1668,7 @@ import { join as join6 } from "node:path";
|
|
|
1668
1668
|
var package_default = {
|
|
1669
1669
|
name: "oh-my-customcode",
|
|
1670
1670
|
workspaces: ["packages/*"],
|
|
1671
|
-
version: "0.51.
|
|
1671
|
+
version: "0.51.2",
|
|
1672
1672
|
description: "Batteries-included agent harness for Claude Code",
|
|
1673
1673
|
type: "module",
|
|
1674
1674
|
bin: {
|
package/package.json
CHANGED
|
@@ -21,6 +21,22 @@ if [ -f "$ENV_STATUS" ]; then
|
|
|
21
21
|
fi
|
|
22
22
|
fi
|
|
23
23
|
|
|
24
|
+
# Batch context detection: check for workflow or release-plan state
|
|
25
|
+
BATCH_ISSUES=0
|
|
26
|
+
# Use wildcard to match any workflow name: /tmp/.claude-workflow-*-${PPID}.json
|
|
27
|
+
WORKFLOW_FILE=$(ls /tmp/.claude-workflow-*-"${PPID}".json 2>/dev/null | head -1 || true)
|
|
28
|
+
if [ -n "$WORKFLOW_FILE" ] && [ -f "$WORKFLOW_FILE" ]; then
|
|
29
|
+
BATCH_ISSUES=$(jq -r '.issue_count // 0' "$WORKFLOW_FILE" 2>/dev/null || echo 0)
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
# Also check release-plan context (existence only — if file exists, treat as batch)
|
|
33
|
+
RELEASE_PLAN="/tmp/.claude-release-plan-${PPID}"
|
|
34
|
+
if [ -f "$RELEASE_PLAN" ]; then
|
|
35
|
+
if [ "$BATCH_ISSUES" -lt 3 ]; then
|
|
36
|
+
BATCH_ISSUES=3
|
|
37
|
+
fi
|
|
38
|
+
fi
|
|
39
|
+
|
|
24
40
|
# Extract task info from input
|
|
25
41
|
agent_type=$(echo "$input" | jq -r '.tool_input.subagent_type // "unknown"')
|
|
26
42
|
prompt_preview=$(echo "$input" | jq -r '.tool_input.description // ""' | head -c 60)
|
|
@@ -37,8 +53,14 @@ else
|
|
|
37
53
|
fi
|
|
38
54
|
echo "$COUNT" > "$COUNTER_FILE"
|
|
39
55
|
|
|
40
|
-
# Warn
|
|
41
|
-
if [ "$
|
|
56
|
+
# Warn when batch context detected (even on first call) or from 2nd call onward
|
|
57
|
+
if [ "$BATCH_ISSUES" -ge 3 ] && [ "$COUNT" -eq 1 ]; then
|
|
58
|
+
echo "" >&2
|
|
59
|
+
echo "--- [R018 Advisor] Batch context detected (${BATCH_ISSUES} issues) ---" >&2
|
|
60
|
+
echo " RECOMMENDATION: Use Agent Teams (TeamCreate) for this batch." >&2
|
|
61
|
+
echo " Current: Agent(${agent_type}) -- ${prompt_preview}" >&2
|
|
62
|
+
echo "-----------------------------------------------------------" >&2
|
|
63
|
+
elif [ "$COUNT" -ge 2 ]; then
|
|
42
64
|
echo "" >&2
|
|
43
65
|
echo "--- [R018 Advisor] Agent/Task tool call #${COUNT} in this session ---" >&2
|
|
44
66
|
echo " WARNING: Multiple Task calls detected. Consider Agent Teams if:" >&2
|
package/templates/manifest.json
CHANGED