claude-flow-novice 2.15.2 → 2.15.3
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/.claude/hooks/cfn-BACKUP_USAGE.md +243 -243
- package/.claude/hooks/cfn-invoke-security-validation.sh +69 -69
- package/.claude/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
- package/.claude/hooks/cfn-post-edit.config.json +44 -44
- package/.claude/skills/agent-lifecycle/SKILL.md +60 -0
- package/.claude/skills/agent-lifecycle/execute-lifecycle-hook.sh +573 -0
- package/.claude/skills/agent-lifecycle/simple-audit.sh +31 -0
- package/.claude/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
- package/.claude/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
- package/.claude/skills/cfn-redis-coordination/get-context.sh +112 -112
- package/.claude/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
- package/.claude/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
- package/.claude/skills/cfn-transparency-middleware/test-integration.sh +161 -161
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
- package/.claude/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
- package/.claude/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
- package/claude-assets/hooks/cfn-BACKUP_USAGE.md +243 -243
- package/claude-assets/hooks/cfn-invoke-security-validation.sh +69 -69
- package/claude-assets/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
- package/claude-assets/hooks/cfn-post-edit.config.json +44 -44
- package/claude-assets/hooks/cfn-post-execution/memory-cleanup.sh +19 -19
- package/claude-assets/hooks/cfn-pre-execution/memory-check.sh +19 -19
- package/claude-assets/skills/agent-lifecycle/execute-lifecycle-hook.sh +572 -572
- package/claude-assets/skills/agent-lifecycle/simple-audit.sh +30 -30
- package/claude-assets/skills/cfn-automatic-memory-persistence/persist-agent-output.sh +48 -48
- package/claude-assets/skills/cfn-automatic-memory-persistence/query-agent-history.sh +34 -34
- package/claude-assets/skills/cfn-deliverable-validation/confidence-calculator.sh +261 -261
- package/claude-assets/skills/cfn-expert-update/update-expert.sh +345 -345
- package/claude-assets/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
- package/claude-assets/skills/cfn-intervention-detector/detect-intervention.sh +110 -110
- package/claude-assets/skills/cfn-intervention-orchestrator/execute-intervention.sh +58 -58
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
- package/claude-assets/skills/cfn-loop2-output-processing/process-validator-output.sh +275 -275
- package/claude-assets/skills/cfn-memory-management/check-memory.sh +159 -159
- package/claude-assets/skills/cfn-memory-management/cleanup-memory.sh +196 -196
- package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +325 -325
- package/claude-assets/skills/cfn-playbook-auto-update/auto-update-playbook.sh +85 -85
- package/claude-assets/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
- package/claude-assets/skills/cfn-redis-coordination/get-context.sh +112 -112
- package/claude-assets/skills/cfn-scope-simplifier/simplify-scope.sh +67 -67
- package/claude-assets/skills/cfn-specialist-injection/recommend-specialist.sh +56 -56
- package/claude-assets/skills/cfn-standardized-error-handling/capture-agent-error.sh +86 -86
- package/claude-assets/skills/cfn-standardized-error-handling/test-error-handling.sh +165 -165
- package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +264 -264
- package/claude-assets/skills/cfn-task-decomposition/task-decomposer.sh +278 -278
- package/claude-assets/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
- package/claude-assets/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
- package/claude-assets/skills/cfn-transparency-middleware/test-integration.sh +161 -161
- package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
- package/claude-assets/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
- package/claude-assets/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
- package/claude-assets/skills/docker-build/SKILL.md +96 -203
- package/claude-assets/skills/docker-build/build.sh +73 -73
- package/claude-assets/skills/integration/agent-handoff.sh +494 -0
- package/claude-assets/skills/integration/file-operations.sh +414 -0
- package/claude-assets/skills/workflow-codification/APPROVAL_WORKFLOW.md +806 -0
- package/claude-assets/skills/workflow-codification/COST_TRACKING.md +637 -0
- package/claude-assets/skills/workflow-codification/EDGE_CASE_TRACKING.md +404 -0
- package/claude-assets/skills/workflow-codification/README_PHASE4.md +457 -0
- package/claude-assets/skills/workflow-codification/SKILL.md +110 -0
- package/claude-assets/skills/workflow-codification/analyze-patterns.sh +899 -0
- package/claude-assets/skills/workflow-codification/approval-workflow.sh +514 -0
- package/claude-assets/skills/workflow-codification/generate-skill-update.sh +525 -0
- package/claude-assets/skills/workflow-codification/review-skill.sh +643 -0
- package/claude-assets/skills/workflow-codification/templates/email-notification.txt +114 -0
- package/claude-assets/skills/workflow-codification/templates/slack-notification.md +85 -0
- package/claude-assets/skills/workflow-codification/test-integration.sh +281 -0
- package/claude-assets/skills/workflow-codification/track-cost-savings.sh +445 -0
- package/claude-assets/skills/workflow-codification/track-edge-case.sh +323 -0
- package/dist/cli/config-manager.js +91 -109
- package/dist/cli/config-manager.js.map +1 -1
- package/dist/integration/DatabaseHandoff.js +507 -0
- package/dist/integration/DatabaseHandoff.js.map +1 -0
- package/dist/integration/StandardAdapter.js +291 -0
- package/dist/integration/StandardAdapter.js.map +1 -0
- package/dist/lib/agent-output-parser.js +518 -0
- package/dist/lib/agent-output-parser.js.map +1 -0
- package/dist/lib/agent-output-validator.js +950 -0
- package/dist/lib/agent-output-validator.js.map +1 -0
- package/dist/lib/artifact-registry.js +443 -0
- package/dist/lib/artifact-registry.js.map +1 -0
- package/dist/lib/config-validator.js +687 -0
- package/dist/lib/config-validator.js.map +1 -0
- package/dist/types/agent-output.js +44 -0
- package/dist/types/agent-output.js.map +1 -0
- package/dist/types/config.js +28 -0
- package/dist/types/config.js.map +1 -0
- package/package.json +2 -1
- package/scripts/artifact-cleanup.sh +392 -0
- package/scripts/deploy-production.sh +355 -355
- package/scripts/docker-playwright-fix.sh +311 -311
- package/scripts/docker-rebuild-all-agents.sh +127 -127
- package/scripts/memory-leak-prevention.sh +305 -305
- package/scripts/migrate-artifacts.sh +563 -0
- package/scripts/migrate-yaml-to-json.sh +465 -0
- package/scripts/run-marketing-tests.sh +42 -42
- package/scripts/update_paths.sh +46 -46
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# Simple Agent Audit Trail Script
|
|
4
|
-
# Usage: ./simple-audit.sh <agent_id> <agent_type> <confidence> <status>
|
|
5
|
-
|
|
6
|
-
AGENT_ID="$1"
|
|
7
|
-
AGENT_TYPE="$2"
|
|
8
|
-
CONFIDENCE="${3:-0.0}"
|
|
9
|
-
STATUS="${4:-spawned}"
|
|
10
|
-
|
|
11
|
-
DB_PATH="./claude-assets/skills/cfn-redis-coordination/data/cfn-loop.db"
|
|
12
|
-
|
|
13
|
-
if [[ -z "$AGENT_ID" || -z "$AGENT_TYPE" ]]; then
|
|
14
|
-
echo "Usage: $0 <agent_id> <agent_type> [confidence] [status]"
|
|
15
|
-
exit 1
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
# Create agents table if not exists
|
|
19
|
-
sqlite3 "$DB_PATH" "CREATE TABLE IF NOT EXISTS agents (id TEXT PRIMARY KEY, type TEXT, status TEXT, confidence REAL, spawned_at TEXT, completed_at TEXT, metadata TEXT);" 2>/dev/null
|
|
20
|
-
|
|
21
|
-
# Record agent activity
|
|
22
|
-
case "$STATUS" in
|
|
23
|
-
"spawned")
|
|
24
|
-
sqlite3 "$DB_PATH" "INSERT OR REPLACE INTO agents (id, type, status, spawned_at, metadata) VALUES ('$AGENT_ID', '$AGENT_TYPE', 'spawned', datetime('now'), '{\"source\": \"task_mode\"}');"
|
|
25
|
-
;;
|
|
26
|
-
"completed")
|
|
27
|
-
sqlite3 "$DB_PATH" "UPDATE agents SET status = 'completed', confidence = $CONFIDENCE, completed_at = datetime('now') WHERE id = '$AGENT_ID';"
|
|
28
|
-
;;
|
|
29
|
-
esac
|
|
30
|
-
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Simple Agent Audit Trail Script
|
|
4
|
+
# Usage: ./simple-audit.sh <agent_id> <agent_type> <confidence> <status>
|
|
5
|
+
|
|
6
|
+
AGENT_ID="$1"
|
|
7
|
+
AGENT_TYPE="$2"
|
|
8
|
+
CONFIDENCE="${3:-0.0}"
|
|
9
|
+
STATUS="${4:-spawned}"
|
|
10
|
+
|
|
11
|
+
DB_PATH="./claude-assets/skills/cfn-redis-coordination/data/cfn-loop.db"
|
|
12
|
+
|
|
13
|
+
if [[ -z "$AGENT_ID" || -z "$AGENT_TYPE" ]]; then
|
|
14
|
+
echo "Usage: $0 <agent_id> <agent_type> [confidence] [status]"
|
|
15
|
+
exit 1
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
# Create agents table if not exists
|
|
19
|
+
sqlite3 "$DB_PATH" "CREATE TABLE IF NOT EXISTS agents (id TEXT PRIMARY KEY, type TEXT, status TEXT, confidence REAL, spawned_at TEXT, completed_at TEXT, metadata TEXT);" 2>/dev/null
|
|
20
|
+
|
|
21
|
+
# Record agent activity
|
|
22
|
+
case "$STATUS" in
|
|
23
|
+
"spawned")
|
|
24
|
+
sqlite3 "$DB_PATH" "INSERT OR REPLACE INTO agents (id, type, status, spawned_at, metadata) VALUES ('$AGENT_ID', '$AGENT_TYPE', 'spawned', datetime('now'), '{\"source\": \"task_mode\"}');"
|
|
25
|
+
;;
|
|
26
|
+
"completed")
|
|
27
|
+
sqlite3 "$DB_PATH" "UPDATE agents SET status = 'completed', confidence = $CONFIDENCE, completed_at = datetime('now') WHERE id = '$AGENT_ID';"
|
|
28
|
+
;;
|
|
29
|
+
esac
|
|
30
|
+
|
|
31
31
|
echo "✅ Agent $AGENT_ID ($AGENT_TYPE) audit recorded: $STATUS"
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Saves agent output to SQLite via TypeScript adapter
|
|
3
|
-
|
|
4
|
-
# Enable strict error handling
|
|
5
|
-
set -euo pipefail
|
|
6
|
-
|
|
7
|
-
# Input validation
|
|
8
|
-
if [[ $# -lt 5 ]]; then
|
|
9
|
-
echo "Usage: $0 <TASK_ID> <AGENT_ID> <AGENT_OUTPUT> <CONFIDENCE> <ITERATION>"
|
|
10
|
-
exit 1
|
|
11
|
-
fi
|
|
12
|
-
|
|
13
|
-
TASK_ID="$1"
|
|
14
|
-
AGENT_ID="$2"
|
|
15
|
-
AGENT_OUTPUT="$3"
|
|
16
|
-
CONFIDENCE="$4"
|
|
17
|
-
ITERATION="$5"
|
|
18
|
-
|
|
19
|
-
# Normalize confidence to float
|
|
20
|
-
NORMALIZED_CONFIDENCE=$(printf "%.2f" "$CONFIDENCE")
|
|
21
|
-
|
|
22
|
-
# Ensure output is properly escaped for JSON
|
|
23
|
-
ESCAPED_OUTPUT=$(echo "$AGENT_OUTPUT" | jq -R -s '.')
|
|
24
|
-
|
|
25
|
-
# Call TypeScript persistence layer
|
|
26
|
-
node -e "
|
|
27
|
-
const { SQLiteAdapter } = require('./src/cli/sqlite-adapter');
|
|
28
|
-
const adapter = new SQLiteAdapter();
|
|
29
|
-
|
|
30
|
-
const memoryKey = \`agent/${AGENT_ID}/output/${TASK_ID}\`;
|
|
31
|
-
const outputRecord = {
|
|
32
|
-
output: $ESCAPED_OUTPUT,
|
|
33
|
-
confidence: parseFloat('$NORMALIZED_CONFIDENCE'),
|
|
34
|
-
iteration: parseInt('$ITERATION'),
|
|
35
|
-
timestamp: new Date().toISOString(),
|
|
36
|
-
parsed_data: null // Optional: Add structured parsing logic here
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
try {
|
|
40
|
-
adapter.set(memoryKey, outputRecord, {
|
|
41
|
-
aclLevel: 1, // Read-only access
|
|
42
|
-
tags: ['agent-output', \`agent-${AGENT_ID}\`, \`task-${TASK_ID}\`]
|
|
43
|
-
});
|
|
44
|
-
console.log(\`Successfully persisted output for agent ${AGENT_ID} in task ${TASK_ID}\`);
|
|
45
|
-
} catch (error) {
|
|
46
|
-
console.error('Memory persistence failed:', error);
|
|
47
|
-
process.exit(1);
|
|
48
|
-
}
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Saves agent output to SQLite via TypeScript adapter
|
|
3
|
+
|
|
4
|
+
# Enable strict error handling
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
# Input validation
|
|
8
|
+
if [[ $# -lt 5 ]]; then
|
|
9
|
+
echo "Usage: $0 <TASK_ID> <AGENT_ID> <AGENT_OUTPUT> <CONFIDENCE> <ITERATION>"
|
|
10
|
+
exit 1
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
TASK_ID="$1"
|
|
14
|
+
AGENT_ID="$2"
|
|
15
|
+
AGENT_OUTPUT="$3"
|
|
16
|
+
CONFIDENCE="$4"
|
|
17
|
+
ITERATION="$5"
|
|
18
|
+
|
|
19
|
+
# Normalize confidence to float
|
|
20
|
+
NORMALIZED_CONFIDENCE=$(printf "%.2f" "$CONFIDENCE")
|
|
21
|
+
|
|
22
|
+
# Ensure output is properly escaped for JSON
|
|
23
|
+
ESCAPED_OUTPUT=$(echo "$AGENT_OUTPUT" | jq -R -s '.')
|
|
24
|
+
|
|
25
|
+
# Call TypeScript persistence layer
|
|
26
|
+
node -e "
|
|
27
|
+
const { SQLiteAdapter } = require('./src/cli/sqlite-adapter');
|
|
28
|
+
const adapter = new SQLiteAdapter();
|
|
29
|
+
|
|
30
|
+
const memoryKey = \`agent/${AGENT_ID}/output/${TASK_ID}\`;
|
|
31
|
+
const outputRecord = {
|
|
32
|
+
output: $ESCAPED_OUTPUT,
|
|
33
|
+
confidence: parseFloat('$NORMALIZED_CONFIDENCE'),
|
|
34
|
+
iteration: parseInt('$ITERATION'),
|
|
35
|
+
timestamp: new Date().toISOString(),
|
|
36
|
+
parsed_data: null // Optional: Add structured parsing logic here
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
adapter.set(memoryKey, outputRecord, {
|
|
41
|
+
aclLevel: 1, // Read-only access
|
|
42
|
+
tags: ['agent-output', \`agent-${AGENT_ID}\`, \`task-${TASK_ID}\`]
|
|
43
|
+
});
|
|
44
|
+
console.log(\`Successfully persisted output for agent ${AGENT_ID} in task ${TASK_ID}\`);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.error('Memory persistence failed:', error);
|
|
47
|
+
process.exit(1);
|
|
48
|
+
}
|
|
49
49
|
"
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Query agent output history from SQLite
|
|
3
|
-
|
|
4
|
-
# Enable strict error handling
|
|
5
|
-
set -euo pipefail
|
|
6
|
-
|
|
7
|
-
# Input validation
|
|
8
|
-
if [[ $# -lt 1 ]]; then
|
|
9
|
-
echo "Usage: $0 <AGENT_ID> [TASK_ID] [MAX_ENTRIES]"
|
|
10
|
-
exit 1
|
|
11
|
-
fi
|
|
12
|
-
|
|
13
|
-
AGENT_ID="$1"
|
|
14
|
-
TASK_ID="${2:-}"
|
|
15
|
-
MAX_ENTRIES="${3:-10}"
|
|
16
|
-
|
|
17
|
-
# Call TypeScript query layer
|
|
18
|
-
node -e "
|
|
19
|
-
const { SQLiteAdapter } = require('./src/cli/sqlite-adapter');
|
|
20
|
-
const adapter = new SQLiteAdapter();
|
|
21
|
-
|
|
22
|
-
const queryPattern = '${AGENT_ID}' + (process.argv[2] ? '/output/${TASK_ID}' : '/output/*');
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
const results = adapter.query(queryPattern, {
|
|
26
|
-
limit: parseInt('${MAX_ENTRIES}'),
|
|
27
|
-
order: 'timestamp DESC'
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
console.log(JSON.stringify(results, null, 2));
|
|
31
|
-
} catch (error) {
|
|
32
|
-
console.error('Query failed:', error);
|
|
33
|
-
process.exit(1);
|
|
34
|
-
}
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Query agent output history from SQLite
|
|
3
|
+
|
|
4
|
+
# Enable strict error handling
|
|
5
|
+
set -euo pipefail
|
|
6
|
+
|
|
7
|
+
# Input validation
|
|
8
|
+
if [[ $# -lt 1 ]]; then
|
|
9
|
+
echo "Usage: $0 <AGENT_ID> [TASK_ID] [MAX_ENTRIES]"
|
|
10
|
+
exit 1
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
AGENT_ID="$1"
|
|
14
|
+
TASK_ID="${2:-}"
|
|
15
|
+
MAX_ENTRIES="${3:-10}"
|
|
16
|
+
|
|
17
|
+
# Call TypeScript query layer
|
|
18
|
+
node -e "
|
|
19
|
+
const { SQLiteAdapter } = require('./src/cli/sqlite-adapter');
|
|
20
|
+
const adapter = new SQLiteAdapter();
|
|
21
|
+
|
|
22
|
+
const queryPattern = '${AGENT_ID}' + (process.argv[2] ? '/output/${TASK_ID}' : '/output/*');
|
|
23
|
+
|
|
24
|
+
try {
|
|
25
|
+
const results = adapter.query(queryPattern, {
|
|
26
|
+
limit: parseInt('${MAX_ENTRIES}'),
|
|
27
|
+
order: 'timestamp DESC'
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
console.log(JSON.stringify(results, null, 2));
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.error('Query failed:', error);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
35
|
" "${TASK_ID}"
|