@autoship/react 0.6.0 → 0.6.1
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/README.md +27 -0
- package/package.json +11 -1
package/README.md
CHANGED
|
@@ -138,6 +138,33 @@ export SUPABASE_SERVICE_KEY="your-service-key"
|
|
|
138
138
|
claude "Use the autoship-mcp tools to list pending tasks"
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
+
## AI Prompt
|
|
142
|
+
|
|
143
|
+
Use this prompt with an AI coding assistant (like Claude Code) to automatically set up Autoship in your project:
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
I want to add Autoship to this project - an autonomous coding agent that lets users submit tasks via React components and implements them via GitHub Actions.
|
|
147
|
+
|
|
148
|
+
Please do the following:
|
|
149
|
+
|
|
150
|
+
1. Install the package:
|
|
151
|
+
npm install @autoship/react
|
|
152
|
+
|
|
153
|
+
2. Copy the required files from the Autoship repo (https://github.com/morlinbrot/autoship):
|
|
154
|
+
- Copy `mcp-servers/autoship-mcp/` directory to `mcp-servers/autoship-mcp/` in this project
|
|
155
|
+
- Copy `.github/workflows/claude-agent.yml` to `.github/workflows/claude-agent.yml`
|
|
156
|
+
|
|
157
|
+
3. Find the main App component (or root layout) and integrate the Autoship components:
|
|
158
|
+
- Import AutoshipProvider and AutoshipButton from '@autoship/react'
|
|
159
|
+
- Wrap the app content with AutoshipProvider
|
|
160
|
+
- Add the AutoshipButton component inside the provider (it renders a floating button)
|
|
161
|
+
|
|
162
|
+
I will take care of:
|
|
163
|
+
- Running `npx @autoship/react init` to set up the database
|
|
164
|
+
- Adding the autoship schema to Supabase's exposed schemas
|
|
165
|
+
- Adding the required GitHub secrets (ANTHROPIC_API_KEY, SUPABASE_URL, SUPABASE_SERVICE_KEY)
|
|
166
|
+
```
|
|
167
|
+
|
|
141
168
|
## Manual Trigger
|
|
142
169
|
|
|
143
170
|
You can manually trigger the agent from the GitHub Actions tab, optionally with a custom prompt:
|
package/package.json
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autoship/react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "A drop-in autonomous coding agent that records tasks in your app and implements them in a GitHub Action",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/morlinbrot/autoship.git",
|
|
8
|
+
"directory": "packages/react"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/morlinbrot/autoship#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/morlinbrot/autoship/issues"
|
|
13
|
+
},
|
|
4
14
|
"type": "module",
|
|
5
15
|
"main": "dist/index.js",
|
|
6
16
|
"types": "dist/index.d.ts",
|