@oxgeneral/orch 1.0.7 → 1.0.9

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.
Files changed (79) hide show
  1. package/dist/App-Q6LOPAZT.js +22 -0
  2. package/dist/{agent-Q34L27AY.js → agent-SI4JF5MV.js} +1 -1
  3. package/dist/{agent-shop-D2RS4BZK.js → agent-shop-JHDTCWCD.js} +1 -1
  4. package/dist/chunk-3AXNSYCM.js +2 -0
  5. package/dist/{chunk-4TDXD3LA.js → chunk-5YSW77VI.js} +104 -21
  6. package/dist/chunk-5YSW77VI.js.map +1 -0
  7. package/dist/{chunk-BCPUTULS.js → chunk-HWEMBO36.js} +83 -54
  8. package/dist/chunk-J7ITYXE6.js +116 -0
  9. package/dist/chunk-J7ITYXE6.js.map +1 -0
  10. package/dist/chunk-U2JVMD2G.js +66 -0
  11. package/dist/chunk-U2JVMD2G.js.map +1 -0
  12. package/dist/{chunk-EH3HRQP4.js → chunk-W3J7CURM.js} +8 -116
  13. package/dist/chunk-W3J7CURM.js.map +1 -0
  14. package/dist/{chunk-UMZEA3JT.js → chunk-XLBV2PFL.js} +1 -1
  15. package/dist/chunk-ZMLF5HI5.js +11 -0
  16. package/dist/cli.js +1 -1
  17. package/dist/container-LV3WOPMS.js +4 -0
  18. package/dist/doctor-Q3GHJNZL.js +2 -0
  19. package/dist/index.d.ts +44 -1
  20. package/dist/index.js +12 -5
  21. package/dist/index.js.map +1 -1
  22. package/dist/init-D4356W7G.js +73 -0
  23. package/dist/orchestrator-PSXVHP2L.js +17 -0
  24. package/dist/orchestrator-WLWIAFXH.js +6 -0
  25. package/dist/{orchestrator-XPEMMBOO.js.map → orchestrator-WLWIAFXH.js.map} +1 -1
  26. package/dist/{org-WAK3CDPG.js → org-KLYK6MMJ.js} +1 -1
  27. package/dist/serve-4RT4HERL.js +3 -0
  28. package/dist/skill-loader-IGRIELEM.js +9 -0
  29. package/dist/skill-loader-RHCFIK74.js +4 -0
  30. package/dist/skill-loader-RHCFIK74.js.map +1 -0
  31. package/dist/{task-QFLIIRKZ.js → task-6Z5P7ODZ.js} +1 -1
  32. package/dist/tui-GH3Z5CO4.js +2 -0
  33. package/dist/{update-FFKCOV63.js → update-XGJZFV4H.js} +1 -1
  34. package/dist/{update-check-HGMBDYHL.js → update-check-CZJC7VW6.js} +1 -1
  35. package/dist/{workspace-manager-5EYCMAEO.js → workspace-manager-RH24FSNT.js} +4 -3
  36. package/dist/workspace-manager-RH24FSNT.js.map +1 -0
  37. package/dist/workspace-manager-VJ4FN5PJ.js +3 -0
  38. package/package.json +1 -1
  39. package/readme.md +2 -2
  40. package/skills/library/autoplan.md +315 -0
  41. package/skills/library/benchmark.md +242 -0
  42. package/skills/library/browse.md +266 -0
  43. package/skills/library/canary.md +248 -0
  44. package/skills/library/careful.md +42 -0
  45. package/skills/library/codex.md +431 -0
  46. package/skills/library/design-consultation.md +367 -0
  47. package/skills/library/design-review.md +744 -0
  48. package/skills/library/document-release.md +365 -0
  49. package/skills/library/freeze.md +60 -0
  50. package/skills/library/guard.md +55 -0
  51. package/skills/library/investigate.md +171 -0
  52. package/skills/library/land-and-deploy.md +636 -0
  53. package/skills/library/office-hours.md +746 -0
  54. package/skills/library/plan-ceo-review.md +1029 -0
  55. package/skills/library/plan-design-review.md +428 -0
  56. package/skills/library/plan-eng-review.md +420 -0
  57. package/skills/library/qa-only.md +388 -0
  58. package/skills/library/qa.md +766 -0
  59. package/skills/library/retro.md +532 -0
  60. package/skills/library/review.md +421 -0
  61. package/skills/library/setup-browser-cookies.md +86 -0
  62. package/skills/library/setup-deploy.md +211 -0
  63. package/skills/library/ship.md +1018 -0
  64. package/skills/library/unfreeze.md +31 -0
  65. package/skills/library/upgrade.md +220 -0
  66. package/skills/orch/SKILL.md +138 -0
  67. package/dist/App-LEVUTWQN.js +0 -22
  68. package/dist/chunk-4TDXD3LA.js.map +0 -1
  69. package/dist/chunk-EH3HRQP4.js.map +0 -1
  70. package/dist/chunk-WVJTXBPL.js +0 -11
  71. package/dist/container-FXUUV6PP.js +0 -4
  72. package/dist/doctor-P2J6VAUX.js +0 -2
  73. package/dist/init-PTAYCSMO.js +0 -53
  74. package/dist/orchestrator-JOTMB5XT.js +0 -13
  75. package/dist/orchestrator-XPEMMBOO.js +0 -6
  76. package/dist/serve-5OAANN6J.js +0 -3
  77. package/dist/tui-BJHZBCIR.js +0 -2
  78. package/dist/workspace-manager-5EYCMAEO.js.map +0 -1
  79. package/dist/workspace-manager-XKOZ5WM6.js +0 -3
@@ -0,0 +1,211 @@
1
+ ---
2
+ name: setup-deploy
3
+ version: 1.0.0
4
+ description: |
5
+ Configure deployment settings for /land-and-deploy. Detects your deploy
6
+ platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom),
7
+ production URL, health check endpoints, and deploy status commands. Writes
8
+ the configuration to CLAUDE.md so all future deploys are automatic.
9
+ Use when: "setup deploy", "configure deployment", "set up land-and-deploy",
10
+ "how do I deploy", "add deploy config".
11
+ ---
12
+
13
+ # /setup-deploy — Configure Deployment for orch
14
+
15
+ You are helping the user configure their deployment so `/land-and-deploy` works
16
+ automatically. Your job is to detect the deploy platform, production URL, health
17
+ checks, and deploy status commands — then persist everything to CLAUDE.md.
18
+
19
+ After this runs once, `/land-and-deploy` reads CLAUDE.md and skips detection entirely.
20
+
21
+ ## User-invocable
22
+ When the user types `/setup-deploy`, run this skill.
23
+
24
+ ## Instructions
25
+
26
+ ### Step 1: Check existing configuration
27
+
28
+ ```bash
29
+ grep -A 20 "## Deploy Configuration" CLAUDE.md 2>/dev/null || echo "NO_CONFIG"
30
+ ```
31
+
32
+ If configuration already exists, show it and ask:
33
+
34
+ - **Context:** Deploy configuration already exists in CLAUDE.md.
35
+ - **RECOMMENDATION:** Choose A to update if your setup changed.
36
+ - A) Reconfigure from scratch (overwrite existing)
37
+ - B) Edit specific fields (show current config, let me change one thing)
38
+ - C) Done — configuration looks correct
39
+
40
+ If the user picks C, stop.
41
+
42
+ ### Step 2: Detect platform
43
+
44
+ Run the platform detection from the deploy bootstrap:
45
+
46
+ ```bash
47
+ # Platform config files
48
+ [ -f fly.toml ] && echo "PLATFORM:fly" && cat fly.toml
49
+ [ -f render.yaml ] && echo "PLATFORM:render" && cat render.yaml
50
+ [ -f vercel.json ] || [ -d .vercel ] && echo "PLATFORM:vercel"
51
+ [ -f netlify.toml ] && echo "PLATFORM:netlify" && cat netlify.toml
52
+ [ -f Procfile ] && echo "PLATFORM:heroku"
53
+ [ -f railway.json ] || [ -f railway.toml ] && echo "PLATFORM:railway"
54
+
55
+ # GitHub Actions deploy workflows
56
+ for f in .github/workflows/*.yml .github/workflows/*.yaml; do
57
+ [ -f "$f" ] && grep -qiE "deploy|release|production|staging|cd" "$f" 2>/dev/null && echo "DEPLOY_WORKFLOW:$f"
58
+ done
59
+
60
+ # Project type
61
+ [ -f package.json ] && grep -q '"bin"' package.json 2>/dev/null && echo "PROJECT_TYPE:cli"
62
+ ls *.gemspec 2>/dev/null && echo "PROJECT_TYPE:library"
63
+ ```
64
+
65
+ ### Step 3: Platform-specific setup
66
+
67
+ Based on what was detected, guide the user through platform-specific configuration.
68
+
69
+ #### Fly.io
70
+
71
+ If `fly.toml` detected:
72
+
73
+ 1. Extract app name: `grep -m1 "^app" fly.toml | sed 's/app = "\(.*\)"/\1/'`
74
+ 2. Check if `fly` CLI is installed: `which fly 2>/dev/null`
75
+ 3. If installed, verify: `fly status --app {app} 2>/dev/null`
76
+ 4. Infer URL: `https://{app}.fly.dev`
77
+ 5. Set deploy status command: `fly status --app {app}`
78
+ 6. Set health check: `https://{app}.fly.dev` (or `/health` if the app has one)
79
+
80
+ Ask the user to confirm the production URL. Some Fly apps use custom domains.
81
+
82
+ #### Render
83
+
84
+ If `render.yaml` detected:
85
+
86
+ 1. Extract service name and type from render.yaml
87
+ 2. Check for Render API key: `echo $RENDER_API_KEY | head -c 4` (don't expose the full key)
88
+ 3. Infer URL: `https://{service-name}.onrender.com`
89
+ 4. Render deploys automatically on push to the connected branch — no deploy workflow needed
90
+ 5. Set health check: the inferred URL
91
+
92
+ Ask the user to confirm. Render uses auto-deploy from the connected git branch — after
93
+ merge to main, Render picks it up automatically. The "deploy wait" in /land-and-deploy
94
+ should poll the Render URL until it responds with the new version.
95
+
96
+ #### Vercel
97
+
98
+ If vercel.json or .vercel detected:
99
+
100
+ 1. Check for `vercel` CLI: `which vercel 2>/dev/null`
101
+ 2. If installed: `vercel ls --prod 2>/dev/null | head -3`
102
+ 3. Vercel deploys automatically on push — preview on PR, production on merge to main
103
+ 4. Set health check: the production URL from vercel project settings
104
+
105
+ #### Netlify
106
+
107
+ If netlify.toml detected:
108
+
109
+ 1. Extract site info from netlify.toml
110
+ 2. Netlify deploys automatically on push
111
+ 3. Set health check: the production URL
112
+
113
+ #### GitHub Actions only
114
+
115
+ If deploy workflows detected but no platform config:
116
+
117
+ 1. Read the workflow file to understand what it does
118
+ 2. Extract the deploy target (if mentioned)
119
+ 3. Ask the user for the production URL
120
+
121
+ #### Custom / Manual
122
+
123
+ If nothing detected:
124
+
125
+ Use AskUserQuestion to gather the information:
126
+
127
+ 1. **How are deploys triggered?**
128
+ - A) Automatically on push to main (Fly, Render, Vercel, Netlify, etc.)
129
+ - B) Via GitHub Actions workflow
130
+ - C) Via a deploy script or CLI command (describe it)
131
+ - D) Manually (SSH, dashboard, etc.)
132
+ - E) This project doesn't deploy (library, CLI, tool)
133
+
134
+ 2. **What's the production URL?** (Free text — the URL where the app runs)
135
+
136
+ 3. **How can we check if a deploy succeeded?**
137
+ - A) HTTP health check at a specific URL (e.g., /health, /api/status)
138
+ - B) CLI command (e.g., `fly status`, `kubectl rollout status`)
139
+ - C) Check the GitHub Actions workflow status
140
+ - D) No automated way — just check the URL loads
141
+
142
+ 4. **Any pre-merge or post-merge hooks?**
143
+ - Commands to run before merging (e.g., `bun run build`)
144
+ - Commands to run after merge but before deploy verification
145
+
146
+ ### Step 4: Write configuration
147
+
148
+ Read CLAUDE.md (or create it). Find and replace the `## Deploy Configuration` section
149
+ if it exists, or append it at the end.
150
+
151
+ ```markdown
152
+ ## Deploy Configuration (configured by /setup-deploy)
153
+ - Platform: {platform}
154
+ - Production URL: {url}
155
+ - Deploy workflow: {workflow file or "auto-deploy on push"}
156
+ - Deploy status command: {command or "HTTP health check"}
157
+ - Merge method: {squash/merge/rebase}
158
+ - Project type: {web app / API / CLI / library}
159
+ - Post-deploy health check: {health check URL or command}
160
+
161
+ ### Custom deploy hooks
162
+ - Pre-merge: {command or "none"}
163
+ - Deploy trigger: {command or "automatic on push to main"}
164
+ - Deploy status: {command or "poll production URL"}
165
+ - Health check: {URL or command}
166
+ ```
167
+
168
+ ### Step 5: Verify
169
+
170
+ After writing, verify the configuration works:
171
+
172
+ 1. If a health check URL was configured, try it:
173
+ ```bash
174
+ curl -sf "{health-check-url}" -o /dev/null -w "%{http_code}" 2>/dev/null || echo "UNREACHABLE"
175
+ ```
176
+
177
+ 2. If a deploy status command was configured, try it:
178
+ ```bash
179
+ {deploy-status-command} 2>/dev/null | head -5 || echo "COMMAND_FAILED"
180
+ ```
181
+
182
+ Report results. If anything failed, note it but don't block — the config is still
183
+ useful even if the health check is temporarily unreachable.
184
+
185
+ ### Step 6: Summary
186
+
187
+ ```
188
+ DEPLOY CONFIGURATION — COMPLETE
189
+ ════════════════════════════════
190
+ Platform: {platform}
191
+ URL: {url}
192
+ Health check: {health check}
193
+ Status cmd: {status command}
194
+ Merge method: {merge method}
195
+
196
+ Saved to CLAUDE.md. /land-and-deploy will use these settings automatically.
197
+
198
+ Next steps:
199
+ - Run /land-and-deploy to merge and deploy your current PR
200
+ - Edit the "## Deploy Configuration" section in CLAUDE.md to change settings
201
+ - Run /setup-deploy again to reconfigure
202
+ ```
203
+
204
+ ## Important Rules
205
+
206
+ - **Never expose secrets.** Don't print full API keys, tokens, or passwords.
207
+ - **Confirm with the user.** Always show the detected config and ask for confirmation before writing.
208
+ - **CLAUDE.md is the source of truth.** All configuration lives there — not in a separate config file.
209
+ - **Idempotent.** Running /setup-deploy multiple times overwrites the previous config cleanly.
210
+ - **Platform CLIs are optional.** If `fly` or `vercel` CLI isn't installed, fall back to URL-based health checks.
211
+