You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .kiro/hooks/auto-deploy-app.kiro.hook
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
{
2
2
"enabled": true,
3
3
"name": "Auto Deploy on Code Change",
4
-
"description": "Automatically deploys the SDK app to the router after Kiro finishes making code changes. Uses make.py deploy.",
4
+
"description": "Automatically deploys the SDK app to the router after Kiro finishes making code changes. Uses .kiro/steering/deploy.md.",
5
5
"version": "1",
6
6
"when": {
7
7
"type": "agentStop"
8
8
},
9
9
"then": {
10
10
"type": "askAgent",
11
-
"prompt": "If you already ran a deploy this session, do nothing — the app is already deployed. Otherwise, if you created or modified any SDK app Python files during this session, read sdk_settings.ini to get the app_name, then deploy using the correct Python: if .venv exists, use '.venv/Scripts/python make.py deploy <app_name>' on Windows or '.venv/bin/python make.py deploy <app_name>' on Mac/Linux. If no .venv exists, fall back to 'python3 make.py deploy <app_name>' or 'python make.py deploy <app_name>' whichever is available. After the command completes, review the output for errors. Check that log timestamps are AFTER the deploy started. If logs show the app started successfully, report success briefly. If there are errors, diagnose and suggest fixes. If no app code was changed, do nothing."
11
+
"prompt": "If you already ran a deploy this session, do nothing — the app is already deployed. Otherwise, if you created or modified any SDK app Python files during this session, read .kiro/steering/deploy.md and follow its instructions. Read sdk_settings.ini to get the app_name. If no app code was changed, do nothing."
Copy file name to clipboardExpand all lines: .kiro/steering/coding-standards.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Applications run on Cradlepoint routers using Python 3.8.
34
34
35
35
## Local Development (Running on Your Computer)
36
36
37
-
-**Apps can run locally** - `python3 my_app/my_app.py` runs the app on your computer. cp.py auto-detects it's not on a router and uses HTTP REST to communicate with the dev router specified in `sdk_settings.ini`
37
+
-**Apps can run locally** - `.venv/bin/python my_app/my_app.py` (Mac/Linux) or `.venv\Scripts\python my_app/my_app.py` (Windows) runs the app on your computer. cp.py auto-detects it's not on a router and uses HTTP REST to communicate with the dev router specified in `sdk_settings.ini`
38
38
-**cp.get/put/post/delete work locally** - all API calls route through REST to the dev router
39
39
-**cp.log() prints to stdout locally** - output goes to your terminal instead of syslog
40
40
-**cp.alert() does NOT work locally** - logs the alert text to console but does not send to NCM
@@ -46,8 +46,8 @@ Applications run on Cradlepoint routers using Python 3.8.
After deployment, verify the app started successfully by checking the logs.
20
22
21
-
**Note:**Ensure sdk_settings.ini has correct router IP and credentials before deploying.
23
+
**Note:**Before deploying, read `sdk_settings.ini` and check that `dev_client_password` is not the default `mypassword`. If it is, open `sdk_settings.ini`and tell the user to update it with their router credentials before proceeding.
Copy file name to clipboardExpand all lines: .kiro/steering/setup.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ inclusion: always
4
4
5
5
# Dev Environment Check
6
6
7
-
If the user asks to build, deploy, or run an app and `.venv`does not exist in the workspace root, do NOT auto-run setup. Instead, let the user know:
7
+
The `check-venv` hook automatically runs `make.py setup` if `.venv`is missing at the start of every prompt. No manual intervention needed.
8
8
9
-
> It looks like the Python environment hasn't been set up yet. Click the Kiro ghost icon in the sidebar and run the **Setup Dev Environment** hook, then try again.
10
-
11
-
Do not mention this if `.venv` already exists.
9
+
If setup fails, let the user know they can also run the **Setup Dev Environment** hook manually from the Kiro sidebar.
Do NOT ask the user if they want to deploy — just do it.
36
37
@@ -69,7 +70,10 @@ app_name/
69
70
## Create App
70
71
71
72
```bash
72
-
python3 make.py create {app_name}
73
+
# Windows:
74
+
.venv\Scripts\python make.py create {app_name}
75
+
# Mac/Linux:
76
+
.venv/bin/python make.py create {app_name}
73
77
```
74
78
75
79
This generates all required files from app_template (package.ini, start.sh, cp.py, {app_name}.py, readme.md).
@@ -90,11 +94,11 @@ This generates all required files from app_template (package.ini, start.sh, cp.p
90
94
91
95
**NEVER overwrite package.ini, start.sh, or cp.py after creation** - these are auto-generated and correct.
92
96
93
-
**ALWAYS deploy after creating or modifying an app** - use `python3 make.py deploy {app_name}` immediately after code changes.
97
+
**ALWAYS deploy after creating or modifying an app** - use `.venv/bin/python make.py deploy {app_name}` (Mac/Linux) or `.venv\Scripts\python make.py deploy {app_name}` (Windows) immediately after code changes.
94
98
95
99
## Deploy to Router
96
100
97
-
**ALWAYS use make.py deploy** - `python3 make.py deploy {app_name}`
101
+
**ALWAYS use make.py deploy** - `.venv/bin/python make.py deploy {app_name}` (Mac/Linux) or `.venv\Scripts\python make.py deploy {app_name}` (Windows)
98
102
99
103
This handles:
100
104
- Purging old apps
@@ -103,7 +107,7 @@ This handles:
103
107
- Starting the app (auto_start=true in package.ini)
104
108
- Showing status and logs
105
109
106
-
**Just run `python3 make.py deploy {app_name}`** - no need to run `make.py clean` or remove old tar.gz files first. It handles everything. The app auto-starts after install, so there's no need to run `make.py start` either.
110
+
**Just run `make.py deploy`** - no need to run `make.py clean` or remove old tar.gz files first. It handles everything. The app auto-starts after install, so there's no need to run `make.py start` either.
107
111
108
112
**NEVER use make.py install directly** - always use `make.py deploy` for deployment.
109
113
@@ -114,9 +118,17 @@ This handles:
114
118
## Other Commands
115
119
116
120
```bash
117
-
python3 make.py status {app_name} # Check app status
0 commit comments