@dura-run/cli 0.2.0 → 0.3.0
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/LICENSE +201 -21
- package/README.md +42 -2
- package/dist/dura.js +581 -2970
- package/package.json +5 -13
- package/skills/dura-debug.md +1 -1
- package/skills/dura-deploy.md +2 -2
- package/skills/dura-develop.md +2 -2
- package/skills/dura-overview.md +8 -8
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dura-run/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "CLI for the dura.run managed automation platform",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
8
|
"dura": "dist/dura.js"
|
|
@@ -17,14 +17,6 @@
|
|
|
17
17
|
"node": ">=20"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://dura.run",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://github.com/dura-run/dura-run/issues"
|
|
22
|
-
},
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/dura-run/dura-run.git",
|
|
26
|
-
"directory": "packages/cli"
|
|
27
|
-
},
|
|
28
20
|
"publishConfig": {
|
|
29
21
|
"access": "public",
|
|
30
22
|
"registry": "https://registry.npmjs.org"
|
|
@@ -45,11 +37,11 @@
|
|
|
45
37
|
"test": "vitest run"
|
|
46
38
|
},
|
|
47
39
|
"dependencies": {
|
|
48
|
-
"
|
|
40
|
+
"esbuild": "0.28.0",
|
|
41
|
+
"tsx": "4.21.0"
|
|
49
42
|
},
|
|
50
43
|
"devDependencies": {
|
|
51
44
|
"@dura/shared": "workspace:*",
|
|
52
|
-
"commander": "^14.0.3"
|
|
53
|
-
"esbuild": "^0.28.0"
|
|
45
|
+
"commander": "^14.0.3"
|
|
54
46
|
}
|
|
55
47
|
}
|
package/skills/dura-debug.md
CHANGED
package/skills/dura-deploy.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dura.run — Deployment Guide
|
|
2
2
|
|
|
3
3
|
> This skill teaches an AI agent how to deploy automations, manage deployments, handle rollbacks, and configure multi-environment workflows.
|
|
4
4
|
|
|
@@ -217,7 +217,7 @@ dura secrets remove OLD_API_KEY --project proj_abc123 --confirm
|
|
|
217
217
|
|
|
218
218
|
## Deployment Workflow — Step by Step
|
|
219
219
|
|
|
220
|
-
Here is the recommended workflow for deploying a
|
|
220
|
+
Here is the recommended workflow for deploying a dura project:
|
|
221
221
|
|
|
222
222
|
### 1. Develop and Test Locally
|
|
223
223
|
|
package/skills/dura-develop.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dura.run — Development Guide
|
|
2
2
|
|
|
3
3
|
> This skill teaches an AI agent how to scaffold projects, write automation handlers, use SDK globals, and run locally with `dura dev`.
|
|
4
4
|
|
|
@@ -34,7 +34,7 @@ my-api/
|
|
|
34
34
|
|
|
35
35
|
### `dura init` — Initialize an Existing Directory
|
|
36
36
|
|
|
37
|
-
Use `dura init` when you already have a directory and want to turn it into a
|
|
37
|
+
Use `dura init` when you already have a directory and want to turn it into a dura project:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
40
|
cd my-existing-project
|
package/skills/dura-overview.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dura.run — Platform Overview
|
|
2
2
|
|
|
3
|
-
> This skill teaches an AI agent the core concepts, project structure, and deployment lifecycle of the
|
|
3
|
+
> This skill teaches an AI agent the core concepts, project structure, and deployment lifecycle of the dura.run automation platform.
|
|
4
4
|
|
|
5
|
-
## What Is
|
|
5
|
+
## What Is dura.run?
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
dura.run is a managed automation platform where developers build, deploy, and debug JavaScript/TypeScript automations. Automations run in secure V8 isolates on the dura cloud — you write handler functions, define triggers, and dura handles execution, scaling, logging, and monitoring.
|
|
8
8
|
|
|
9
9
|
Think of it as "serverless functions with built-in observability and an automation-first developer experience."
|
|
10
10
|
|
|
@@ -61,7 +61,7 @@ Each environment has its own secrets, deployment state, and URL.
|
|
|
61
61
|
|
|
62
62
|
## Project Structure
|
|
63
63
|
|
|
64
|
-
A
|
|
64
|
+
A dura project is a directory with this layout:
|
|
65
65
|
|
|
66
66
|
```
|
|
67
67
|
my-project/
|
|
@@ -178,9 +178,9 @@ export default async function handler(req: DuraRequest): Promise<DuraResponse> {
|
|
|
178
178
|
|
|
179
179
|
| Command | Purpose |
|
|
180
180
|
|---------|---------|
|
|
181
|
-
| `dura login` | Authenticate with the
|
|
182
|
-
| `dura init` | Initialize a
|
|
183
|
-
| `dura new <name>` | Scaffold a new
|
|
181
|
+
| `dura login` | Authenticate with the dura control plane |
|
|
182
|
+
| `dura init` | Initialize a dura project in the current directory |
|
|
183
|
+
| `dura new <name>` | Scaffold a new dura project in a new directory |
|
|
184
184
|
| `dura dev` | Start local development server with hot-reload |
|
|
185
185
|
| `dura deploy` | Bundle and deploy to an environment |
|
|
186
186
|
| `dura run <name>` | Manually trigger an automation |
|