-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
141 lines (105 loc) · 3.56 KB
/
Makefile
File metadata and controls
141 lines (105 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.PHONY: deploy-agentcore-loop smoke-agentcore-loop demo-agentcore-loop setup lint test-unit test-integration test cdk-synth verify verify-aws demo-aws-planner smoke-aws-planner demo-agentcore-base smoke-agentcore-base deploy-agentcore-base deploy-agentcore-tools smoke-agentcore-tools demo-agentcore-tools deploy-agentcore-memory smoke-agentcore-memory demo-agentcore-memory verify-agentcore-memory
setup:
@if command -v uv >/dev/null 2>&1; then \
echo "Using uv to install Python dependencies"; \
uv pip install pydantic boto3 requests certifi pytest ruff; \
else \
echo "uv not found; using pip to install Python dependencies"; \
python3 -m pip install --upgrade pip; \
python3 -m pip install pydantic boto3 requests certifi pytest ruff; \
fi
cd infra/cdk && npm install
lint:
ruff check services tests
test-unit:
pytest tests/unit
test-integration:
pytest tests/integration
test: test-unit test-integration
demo-local:
python3 scripts/demo_local.py
demo-local-planner:
python3 scripts/demo_local_planner.py
demo-local-strategy:
python3 scripts/demo_local_strategy.py
demo-local-tape:
python3 scripts/demo_local_trade_tape.py
demo-local-loop:
python3 scripts/demo_local_loop.py
demo-local-bedrock:
python3 scripts/demo_local_bedrock_planner.py
replay-executions:
python3 scripts/replay_executions.py --executions tmp/demo_local_loop/executions.json
cdk-install:
npm --prefix infra/cdk install
cdk-synth:
@cd infra/cdk && \
if [ -x node_modules/.bin/cdk ]; then \
./node_modules/.bin/cdk synth; \
else \
echo "CDK not initialized yet. Run 'npm install' in infra/cdk once ready."; \
exit 1; \
fi
cdk-deploy:
cd infra/cdk && npx cdk deploy --require-approval never
deploy-agentcore-base:
cd infra/cdk && npx cdk deploy --require-approval never
deploy-agentcore-tools:
cd infra/cdk && npx cdk deploy --require-approval never
smoke-aws:
python3 scripts/smoke_aws.py
demo-aws:
python3 scripts/demo_aws.py
demo-aws-planner:
python3 scripts/demo_aws_planner.py
smoke-aws-planner:
python3 scripts/smoke_aws_planner.py
smoke-agentcore-base:
python3 scripts/smoke_agentcore_hello.py
demo-agentcore-base:
python3 scripts/smoke_agentcore_hello.py
python3 scripts/smoke_agentcore_hello.py
smoke-agentcore-tools:
python3 scripts/smoke_agentcore_tools.py
demo-agentcore-tools:
python3 scripts/demo_agentcore_tools.py
deploy-agentcore-memory:
cd infra/cdk && npx cdk deploy --require-approval never
smoke-agentcore-memory:
python3 scripts/smoke_agentcore_memory.py
demo-agentcore-memory:
python3 scripts/demo_agentcore_memory.py
verify-agentcore-memory: lint test
@if [ "$$RUN_AWS_TESTS" = "1" ]; then \
$(MAKE) smoke-agentcore-memory; \
fi
verify: lint test demo-local
verify-aws:
@if [ -z "$$AWS_PROFILE" ]; then \
echo "AWS_PROFILE is not set. Run: AWS_PROFILE=<profile> make verify-aws"; \
exit 1; \
fi
$(MAKE) cdk-synth
$(MAKE) cdk-deploy
$(MAKE) smoke-aws
$(MAKE) demo-aws
$(MAKE) smoke-aws-planner
$(MAKE) demo-aws-planner
$(MAKE) deploy-agentcore-base
$(MAKE) smoke-agentcore-base
$(MAKE) demo-agentcore-base
$(MAKE) deploy-agentcore-tools
$(MAKE) smoke-agentcore-tools
$(MAKE) demo-agentcore-tools
$(MAKE) deploy-agentcore-memory
$(MAKE) smoke-agentcore-memory
$(MAKE) demo-agentcore-memory
deploy-agentcore-loop:
cd infra/cdk && npm install
cd infra/cdk && npx cdk deploy --require-approval never
smoke-agentcore-loop:
python3 scripts/smoke_agentcore_loop.py
demo-agentcore-loop:
python3 scripts/demo_agentcore_loop.py
deploy-agentcore-loop-planner:
cd infra/cdk && npx cdk deploy --require-approval never -c enableLocalPlanner=1