crewly 1.5.16 → 1.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/config/skills/agent/core/recall/SKILL.md +22 -9
- package/config/skills/agent/core/record-learning/SKILL.md +22 -10
- package/config/skills/agent/core/remember/SKILL.md +23 -10
- package/config/skills/agent/core/report-status/SKILL.md +26 -14
- package/config/skills/agent/core/send-message/SKILL.md +20 -6
- package/config/skills/orchestrator/delegate-task/SKILL.md +33 -15
- package/config/skills/orchestrator/delegate-task/execute.sh +69 -15
- package/config/skills/team-leader/delegate-task/SKILL.md +30 -13
- package/package.json +1 -1
|
@@ -42,18 +42,31 @@ Retrieve stored memories relevant to a given context or query. Use this to look
|
|
|
42
42
|
|
|
43
43
|
## Parameters
|
|
44
44
|
|
|
45
|
-
|
|
|
46
|
-
|
|
47
|
-
| `agentId` | Yes | Your agent ID |
|
|
48
|
-
| `context` | Yes | Search
|
|
49
|
-
| `scope` | No | Filter
|
|
50
|
-
| `limit` | No |
|
|
51
|
-
| `projectPath` | No | Filter by project path |
|
|
45
|
+
| Flag | JSON Field | Required | Description |
|
|
46
|
+
|------|-----------|----------|-------------|
|
|
47
|
+
| `--agent` / `-a` | `agentId` | Yes | Your agent ID / session name |
|
|
48
|
+
| `--context` / `-c` | `context` | Yes | Search query (or pipe via stdin) |
|
|
49
|
+
| `--scope` / `-s` | `scope` | No | Filter: `project`, `team`, or `global` |
|
|
50
|
+
| `--limit` / `-l` | `limit` | No | Max number of results |
|
|
51
|
+
| `--project` / `-p` | `projectPath` | No | Filter by project path |
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Examples — CLI Flags (preferred)
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
|
|
56
|
+
# Search project memory
|
|
57
|
+
bash execute.sh --agent dev-1 --context "authentication implementation patterns" --scope project --project /projects/app
|
|
58
|
+
|
|
59
|
+
# Quick recall with limit
|
|
60
|
+
bash execute.sh --agent dev-1 --context "deployment process" --limit 5
|
|
61
|
+
|
|
62
|
+
# Context via stdin
|
|
63
|
+
echo "how does the relay service work" | bash execute.sh --agent dev-1 --project /projects/app
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Examples — Legacy JSON (backward compatible)
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
bash execute.sh '{"agentId":"dev-1","context":"authentication patterns","scope":"project","limit":5}'
|
|
57
70
|
```
|
|
58
71
|
|
|
59
72
|
## Output
|
|
@@ -42,19 +42,31 @@ Record a learning or insight gained during task execution. These learnings are s
|
|
|
42
42
|
|
|
43
43
|
## Parameters
|
|
44
44
|
|
|
45
|
-
|
|
|
46
|
-
|
|
47
|
-
| `agentId` | Yes | Your agent ID |
|
|
48
|
-
| `agentRole` | Yes | Your role (e.g., `
|
|
49
|
-
| `projectPath` | Yes | Absolute path to the project |
|
|
50
|
-
| `learning` | Yes |
|
|
51
|
-
| `
|
|
52
|
-
| `relatedFiles` | No | Array of file paths related to the learning |
|
|
45
|
+
| Flag | JSON Field | Required | Description |
|
|
46
|
+
|------|-----------|----------|-------------|
|
|
47
|
+
| `--agent` / `-a` | `agentId` | Yes | Your agent ID / session name |
|
|
48
|
+
| `--role` / `-r` | `agentRole` | Yes | Your role (e.g., `developer`, `qa`) |
|
|
49
|
+
| `--project` / `-p` | `projectPath` | Yes | Absolute path to the project |
|
|
50
|
+
| `--learning` / `-l` | `learning` | Yes | The learning or insight (or pipe via stdin) |
|
|
51
|
+
| `--learning-file` | — | No | Read learning from a file path |
|
|
53
52
|
|
|
54
|
-
##
|
|
53
|
+
## Examples — CLI Flags (preferred)
|
|
55
54
|
|
|
56
55
|
```bash
|
|
57
|
-
|
|
56
|
+
# Record a learning
|
|
57
|
+
bash execute.sh --agent dev-1 --role developer --project /projects/app --learning "Jest mock resets are required between tests"
|
|
58
|
+
|
|
59
|
+
# Learning via stdin (for text with special characters)
|
|
60
|
+
echo "Don't use git add -A — it catches .env files" | bash execute.sh --agent dev-1 --role developer --project /projects/app
|
|
61
|
+
|
|
62
|
+
# Learning from file
|
|
63
|
+
bash execute.sh --agent dev-1 --role developer --project /projects/app --learning-file /tmp/insight.txt
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Examples — Legacy JSON (backward compatible)
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
bash execute.sh '{"agentId":"dev-1","agentRole":"developer","projectPath":"/projects/app","learning":"Jest mock resets are required between tests"}'
|
|
58
70
|
```
|
|
59
71
|
|
|
60
72
|
## Output
|
|
@@ -41,19 +41,32 @@ Store a memory entry for future recall. Use this to persist important context, d
|
|
|
41
41
|
|
|
42
42
|
## Parameters
|
|
43
43
|
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
| `agentId` | Yes | Your agent ID |
|
|
47
|
-
| `content` | Yes |
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
44
|
+
| Flag | JSON Field | Required | Description |
|
|
45
|
+
|------|-----------|----------|-------------|
|
|
46
|
+
| `--agent` / `-a` | `agentId` | Yes | Your agent ID / session name |
|
|
47
|
+
| `--content` / `-c` | `content` | Yes | Content to remember (or pipe via stdin) |
|
|
48
|
+
| `--content-file` | — | No | Read content from a file path |
|
|
49
|
+
| `--category` / `-C` | `category` | Yes | Category: `pattern`, `decision`, `gotcha`, `fact`, `preference`, `relationship`, `user_preference` |
|
|
50
|
+
| `--scope` / `-s` | `scope` | Yes | Scope: `agent` or `project` |
|
|
51
|
+
| `--project` / `-p` | `projectPath` | No | Project path (required for `project` scope) |
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Examples — CLI Flags (preferred)
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
|
|
56
|
+
# Store a project-wide pattern
|
|
57
|
+
bash execute.sh --agent dev-1 --content "User prefers PDF delivery in Slack thread" --category user_preference --scope project --project /projects/app
|
|
58
|
+
|
|
59
|
+
# Content via stdin (for text with special characters)
|
|
60
|
+
echo "Jest mock resets are required between tests — don't forget" | bash execute.sh --agent dev-1 --category gotcha --scope project --project /projects/app
|
|
61
|
+
|
|
62
|
+
# Content from file
|
|
63
|
+
bash execute.sh --agent dev-1 --content-file /tmp/finding.txt --category decision --scope project --project /projects/app
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Examples — Legacy JSON (backward compatible)
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
bash execute.sh '{"agentId":"dev-1","content":"User prefers PDF delivery","category":"user_preference","scope":"project","projectPath":"/projects/app"}'
|
|
57
70
|
```
|
|
58
71
|
|
|
59
72
|
## Output
|
|
@@ -45,29 +45,41 @@ When `status` is `done` and a `taskPath` is provided, the task file is automatic
|
|
|
45
45
|
|
|
46
46
|
## Parameters
|
|
47
47
|
|
|
48
|
-
|
|
|
49
|
-
|
|
50
|
-
| `sessionName` | Yes | Your agent session name |
|
|
51
|
-
| `status` | Yes |
|
|
52
|
-
| `summary` | Yes | Brief description
|
|
53
|
-
| `
|
|
48
|
+
| Flag | JSON Field | Required | Description |
|
|
49
|
+
|------|-----------|----------|-------------|
|
|
50
|
+
| `--session` / `-s` | `sessionName` | Yes | Your agent session name |
|
|
51
|
+
| `--status` / `-S` | `status` | Yes | Status: `done`, `blocked`, `failed`, `in_progress`, `active` |
|
|
52
|
+
| `--summary` / `-m` | `summary` | Yes | Brief description (or pipe via stdin) |
|
|
53
|
+
| `--summary-file` | — | No | Read summary from a file path |
|
|
54
|
+
| `--project` / `-p` | `projectPath` | No | Project path for auto-remember on completion |
|
|
55
|
+
| `--task-path` | `taskPath` | No | Task file path; auto-moves to `done/` on completion |
|
|
56
|
+
| `--task-id` | `taskId` | No | Task ID (for structured StatusReport format) |
|
|
57
|
+
| `--progress` | `progress` | No | Progress percentage 0-100 |
|
|
58
|
+
| `--structured` | `structured` | No | Use structured StatusReport format |
|
|
54
59
|
|
|
55
|
-
##
|
|
60
|
+
## Examples — CLI Flags (preferred)
|
|
56
61
|
|
|
57
62
|
```bash
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
# Report done
|
|
64
|
+
bash execute.sh --session dev-1 --status done --summary "Finished auth module, all tests pass" --project /path/to/project
|
|
60
65
|
|
|
61
|
-
|
|
66
|
+
# Report a blocker
|
|
67
|
+
bash execute.sh --session dev-1 --status blocked --summary "Waiting on API credentials from ops team"
|
|
62
68
|
|
|
63
|
-
|
|
64
|
-
bash
|
|
69
|
+
# Report failure
|
|
70
|
+
bash execute.sh --session dev-1 --status failed --summary "Build fails due to missing dependency"
|
|
71
|
+
|
|
72
|
+
# Multi-line summary via stdin (avoids shell escaping)
|
|
73
|
+
echo "Fixed the bug — it's working now" | bash execute.sh --session dev-1 --status done --project /path
|
|
74
|
+
|
|
75
|
+
# Summary from file
|
|
76
|
+
bash execute.sh --session dev-1 --status done --summary-file /tmp/summary.txt --project /path
|
|
65
77
|
```
|
|
66
78
|
|
|
67
|
-
|
|
79
|
+
## Examples — Legacy JSON (backward compatible)
|
|
68
80
|
|
|
69
81
|
```bash
|
|
70
|
-
bash
|
|
82
|
+
bash execute.sh '{"sessionName":"dev-1","status":"done","summary":"Finished implementing auth module","taskPath":"/path/.crewly/tasks/delegated/in_progress/implement_auth_1234.md"}'
|
|
71
83
|
```
|
|
72
84
|
|
|
73
85
|
## Output
|
|
@@ -42,15 +42,29 @@ Send a direct message to another agent's terminal session. The message is writte
|
|
|
42
42
|
|
|
43
43
|
## Parameters
|
|
44
44
|
|
|
45
|
-
|
|
|
46
|
-
|
|
47
|
-
| `to` | Yes | Target agent's PTY session name |
|
|
48
|
-
| `message` | Yes |
|
|
45
|
+
| Flag | JSON Field | Required | Description |
|
|
46
|
+
|------|-----------|----------|-------------|
|
|
47
|
+
| `--to` / `-t` | `to` | Yes | Target agent's PTY session name |
|
|
48
|
+
| `--message` / `-m` | `message` | Yes | Message text (or pipe via stdin) |
|
|
49
|
+
| `--message-file` | — | No | Read message from a file path |
|
|
49
50
|
|
|
50
|
-
##
|
|
51
|
+
## Examples — CLI Flags (preferred)
|
|
51
52
|
|
|
52
53
|
```bash
|
|
53
|
-
|
|
54
|
+
# Simple message
|
|
55
|
+
bash execute.sh --to qa-1 --message "PR #42 is ready for review"
|
|
56
|
+
|
|
57
|
+
# Multi-line message via stdin (avoids shell escaping)
|
|
58
|
+
echo "PR #42 is ready for review. It's passing all tests." | bash execute.sh --to qa-1
|
|
59
|
+
|
|
60
|
+
# Message from file
|
|
61
|
+
bash execute.sh --to qa-1 --message-file /tmp/task-details.txt
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Examples — Legacy JSON (backward compatible)
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
bash execute.sh '{"to":"qa-1","message":"PR #42 is ready for review."}'
|
|
54
68
|
```
|
|
55
69
|
|
|
56
70
|
## Output
|
|
@@ -32,30 +32,48 @@ The script auto-resolves `config/skills/...` references to absolute paths so del
|
|
|
32
32
|
|
|
33
33
|
**Monitoring is enabled by default** — idle event subscriptions and recurring fallback checks (every 5 minutes) are automatically set up for every delegation. These are linked to the task and will be **automatically cleaned up** when the task is completed via `report-status` or `complete-task`. To disable monitoring, explicitly pass `"monitor": {"idleEvent": false, "fallbackCheckMinutes": 0}`.
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Parameters
|
|
36
|
+
|
|
37
|
+
| Flag | JSON Field | Required | Description |
|
|
38
|
+
|------|-----------|----------|-------------|
|
|
39
|
+
| `--to` / `-t` | `to` | Yes | Target agent's PTY session name |
|
|
40
|
+
| `--task` / `-T` | `task` | Yes | Task description (or pipe via stdin) |
|
|
41
|
+
| `--task-file` | — | No | Read task description from a file path |
|
|
42
|
+
| `--priority` / `-P` | `priority` | No | Priority: `low`, `normal`, `high` (default: `normal`) |
|
|
43
|
+
| `--context` / `-c` | `context` | No | Additional context for the task |
|
|
44
|
+
| `--project` / `-p` | `projectPath` | No | Project path; creates task file in `.crewly/tasks/` |
|
|
45
|
+
| `--team` / `-g` | `teamId` | No | Team ID for cross-team validation |
|
|
46
|
+
| `--task-type` | `taskType` | No | Task type: `general`, `technical` (default: `general`) |
|
|
47
|
+
| `--force-cross-team` | `forceCrossTeam` | No | Allow cross-team delegation |
|
|
48
|
+
| `monitor` (JSON only) | `monitor` | No | Auto-monitoring config (see below) |
|
|
49
|
+
|
|
50
|
+
## Usage — CLI Flags (preferred)
|
|
36
51
|
|
|
37
52
|
```bash
|
|
38
|
-
|
|
53
|
+
# Basic delegation
|
|
54
|
+
bash execute.sh --to agent-joe --task "Implement the login form" --priority high --project /path/to/project
|
|
55
|
+
|
|
56
|
+
# With context
|
|
57
|
+
bash execute.sh --to agent-joe --task "Implement login form" --priority high --context "Use React hooks" --project /path
|
|
58
|
+
|
|
59
|
+
# Task from stdin (for long descriptions with special characters)
|
|
60
|
+
echo "Implement the OAuth2 flow — it's critical for launch" | bash execute.sh --to agent-joe --priority high --project /path
|
|
61
|
+
|
|
62
|
+
# Task from file
|
|
63
|
+
bash execute.sh --to agent-joe --task-file /tmp/task-description.txt --priority high --project /path
|
|
39
64
|
```
|
|
40
65
|
|
|
41
|
-
|
|
66
|
+
## Usage — Legacy JSON (backward compatible)
|
|
42
67
|
|
|
43
68
|
```bash
|
|
44
|
-
bash
|
|
69
|
+
bash execute.sh '{"to":"agent-joe","task":"Implement the login form","priority":"high","context":"Use React hooks","projectPath":"/path/to/project"}'
|
|
45
70
|
```
|
|
46
71
|
|
|
47
|
-
|
|
72
|
+
### With monitoring disabled (opt-out, JSON only)
|
|
48
73
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
| `task` | Yes | Task description |
|
|
53
|
-
| `priority` | No | Task priority: `low`, `normal`, `high` (default: `normal`) |
|
|
54
|
-
| `context` | No | Additional context for the task |
|
|
55
|
-
| `projectPath` | No | Project path; when provided, creates a task MD file in `.crewly/tasks/` |
|
|
56
|
-
| `monitor` | No | Auto-monitoring configuration (see below). Enabled by default. |
|
|
57
|
-
| `monitor.idleEvent` | No | If `true`, subscribes to `agent:idle` event for the target agent (default: `true`) |
|
|
58
|
-
| `monitor.fallbackCheckMinutes` | No | If > 0, sets up a recurring fallback check every N minutes (default: `5`) |
|
|
74
|
+
```bash
|
|
75
|
+
bash execute.sh '{"to":"agent-joe","task":"Implement the login form","priority":"high","projectPath":"/path/to/project","monitor":{"idleEvent":false,"fallbackCheckMinutes":0}}'
|
|
76
|
+
```
|
|
59
77
|
|
|
60
78
|
## Examples
|
|
61
79
|
|
|
@@ -6,21 +6,75 @@ set -euo pipefail
|
|
|
6
6
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
7
7
|
source "${SCRIPT_DIR}/../_common/lib.sh"
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
# --- Input parsing: CLI flags (preferred) or legacy JSON ---
|
|
10
|
+
INPUT_JSON=""
|
|
11
|
+
TO=""
|
|
12
|
+
TASK=""
|
|
13
|
+
PRIORITY="normal"
|
|
14
|
+
CONTEXT=""
|
|
15
|
+
PROJECT_PATH=""
|
|
16
|
+
TASK_TYPE="general"
|
|
17
|
+
TEAM_ID=""
|
|
18
|
+
FORCE_CROSS_TEAM="false"
|
|
19
|
+
|
|
20
|
+
# Detect legacy JSON argument
|
|
21
|
+
if [[ $# -gt 0 && ${1:0:1} == '{' ]]; then
|
|
22
|
+
INPUT_JSON="$1"
|
|
23
|
+
shift || true
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
while [[ $# -gt 0 ]]; do
|
|
27
|
+
case "$1" in
|
|
28
|
+
--to|-t) TO="$2"; shift 2 ;;
|
|
29
|
+
--task|-T) TASK="$2"; shift 2 ;;
|
|
30
|
+
--task-file) TASK="$(cat "$2")"; shift 2 ;;
|
|
31
|
+
--priority|-P) PRIORITY="$2"; shift 2 ;;
|
|
32
|
+
--context|-c) CONTEXT="$2"; shift 2 ;;
|
|
33
|
+
--project|-p) PROJECT_PATH="$2"; shift 2 ;;
|
|
34
|
+
--task-type) TASK_TYPE="$2"; shift 2 ;;
|
|
35
|
+
--team|-g) TEAM_ID="$2"; shift 2 ;;
|
|
36
|
+
--force-cross-team) FORCE_CROSS_TEAM="true"; shift ;;
|
|
37
|
+
--json|-j) INPUT_JSON="$2"; shift 2 ;;
|
|
38
|
+
--help|-h)
|
|
39
|
+
echo "Usage: execute.sh --to agent-session --task 'implement feature' --priority high --project /path [--team teamId] [--context 'extra info']"
|
|
40
|
+
exit 0
|
|
41
|
+
;;
|
|
42
|
+
--) shift; break ;;
|
|
43
|
+
*)
|
|
44
|
+
if [[ -z "$INPUT_JSON" && ${1:0:1} == '{' ]]; then
|
|
45
|
+
INPUT_JSON="$1"; shift
|
|
46
|
+
else
|
|
47
|
+
error_exit "Unknown argument: $1"
|
|
48
|
+
fi
|
|
49
|
+
;;
|
|
50
|
+
esac
|
|
51
|
+
done
|
|
52
|
+
|
|
53
|
+
# Read task from stdin if not yet provided
|
|
54
|
+
if [ -z "$INPUT_JSON" ] && [ -z "$TASK" ] && [ ! -t 0 ]; then
|
|
55
|
+
STDIN_DATA="$(cat)"
|
|
56
|
+
if [[ ${STDIN_DATA:0:1} == '{' ]]; then
|
|
57
|
+
INPUT_JSON="$STDIN_DATA"
|
|
58
|
+
else
|
|
59
|
+
TASK="$STDIN_DATA"
|
|
60
|
+
fi
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
# Parse JSON if provided (backward compatible)
|
|
64
|
+
if [ -n "$INPUT_JSON" ]; then
|
|
65
|
+
INPUT=$(read_json_input "$INPUT_JSON")
|
|
66
|
+
[ -z "$TO" ] && TO=$(printf '%s' "$INPUT" | jq -r '.to // empty')
|
|
67
|
+
[ -z "$TASK" ] && TASK=$(printf '%s' "$INPUT" | jq -r '.task // empty')
|
|
68
|
+
[ "$PRIORITY" = "normal" ] && { P=$(printf '%s' "$INPUT" | jq -r '.priority // empty'); [ -n "$P" ] && PRIORITY="$P"; }
|
|
69
|
+
[ -z "$CONTEXT" ] && CONTEXT=$(printf '%s' "$INPUT" | jq -r '.context // empty')
|
|
70
|
+
[ -z "$PROJECT_PATH" ] && PROJECT_PATH=$(printf '%s' "$INPUT" | jq -r '.projectPath // empty')
|
|
71
|
+
[ "$TASK_TYPE" = "general" ] && { TT=$(printf '%s' "$INPUT" | jq -r '.taskType // empty'); [ -n "$TT" ] && TASK_TYPE="$TT"; }
|
|
72
|
+
[ -z "$TEAM_ID" ] && TEAM_ID=$(printf '%s' "$INPUT" | jq -r '.teamId // empty')
|
|
73
|
+
[ "$FORCE_CROSS_TEAM" = "false" ] && FORCE_CROSS_TEAM=$(printf '%s' "$INPUT" | jq -r '.forceCrossTeam // "false"')
|
|
74
|
+
fi
|
|
75
|
+
|
|
76
|
+
require_param "to (--to)" "$TO"
|
|
77
|
+
require_param "task (--task)" "$TASK"
|
|
24
78
|
|
|
25
79
|
# #180: Validate target agent belongs to the specified team
|
|
26
80
|
if [ -n "$TEAM_ID" ] && [ "$FORCE_CROSS_TEAM" != "true" ]; then
|
|
@@ -34,24 +34,41 @@ Assigns a task to a worker within the Team Leader's subordinate scope. Validates
|
|
|
34
34
|
- When `handle-failure` decides to `reassign` a task
|
|
35
35
|
- When a new worker needs to be given work
|
|
36
36
|
|
|
37
|
-
##
|
|
37
|
+
## Parameters
|
|
38
|
+
|
|
39
|
+
| Flag | JSON Field | Required | Description |
|
|
40
|
+
|------|-----------|----------|-------------|
|
|
41
|
+
| `--to` / `-t` | `to` | Yes | Target worker's PTY session name |
|
|
42
|
+
| `--task` / `-T` | `task` | Yes | Task description (or pipe via stdin) |
|
|
43
|
+
| `--task-file` | — | No | Read task description from a file path |
|
|
44
|
+
| `--priority` / `-P` | `priority` | No | Priority: `low`, `normal`, `high` (default: `normal`) |
|
|
45
|
+
| `--context` / `-c` | `context` | No | Additional context for the worker |
|
|
46
|
+
| `--project` / `-p` | `projectPath` | No | Project path; creates task file in `.crewly/tasks/` |
|
|
47
|
+
| `--team` / `-g` | `teamId` | No | Team ID for hierarchy validation |
|
|
48
|
+
| `--tl-member` | `tlMemberId` | No | TL's member ID for hierarchy validation |
|
|
49
|
+
| `--from` | `fromSession` | No | Delegating TL's session name (for monitoring) |
|
|
50
|
+
|
|
51
|
+
## Usage — CLI Flags (preferred)
|
|
38
52
|
|
|
39
53
|
```bash
|
|
40
|
-
|
|
54
|
+
# Basic delegation
|
|
55
|
+
bash execute.sh --to worker-session --task "Implement login form" --priority high --project /path/to/project
|
|
56
|
+
|
|
57
|
+
# With hierarchy validation
|
|
58
|
+
bash execute.sh --to worker-session --task "Implement login form" --priority high --team team-123 --tl-member tl-member-id --project /path/to/project
|
|
59
|
+
|
|
60
|
+
# Task from stdin (for long descriptions with special characters)
|
|
61
|
+
echo "Implement the OAuth2 flow — it's critical for launch" | bash execute.sh --to worker-session --priority high --project /path
|
|
62
|
+
|
|
63
|
+
# Task from file
|
|
64
|
+
bash execute.sh --to worker-session --task-file /tmp/task-description.txt --priority high --project /path
|
|
41
65
|
```
|
|
42
66
|
|
|
43
|
-
##
|
|
67
|
+
## Usage — Legacy JSON (backward compatible)
|
|
44
68
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
| `task` | Yes | Task description (skill paths auto-resolved to absolute) |
|
|
49
|
-
| `priority` | No | Task priority: `low`, `normal`, `high` (default: `normal`) |
|
|
50
|
-
| `context` | No | Additional context for the worker |
|
|
51
|
-
| `teamId` | No | Team ID for hierarchy validation |
|
|
52
|
-
| `tlMemberId` | No | TL's member ID for hierarchy validation |
|
|
53
|
-
| `projectPath` | No | Project path; creates task file in `.crewly/tasks/` |
|
|
54
|
-
| `monitor` | No | Auto-monitoring config (same as orchestrator delegate-task) |
|
|
69
|
+
```bash
|
|
70
|
+
bash execute.sh '{"to":"worker-session","task":"Implement login form","priority":"high","teamId":"team-123","tlMemberId":"tl-member-id","projectPath":"/path/to/project"}'
|
|
71
|
+
```
|
|
55
72
|
|
|
56
73
|
## Hierarchy Validation
|
|
57
74
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crewly",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Multi-agent orchestration platform for AI coding teams — coordinates Claude Code, Gemini CLI, and Codex agents with a real-time web dashboard",
|
|
6
6
|
"main": "dist/cli/cli/src/index.js",
|