edgeone 1.6.40 → 1.6.41-beta.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 +29 -0
- package/edgeone-dist/cli.js +4565 -2515
- package/edgeone-dist/config-schema.js +2 -2
- package/edgeone-dist/edgeone.schema.json +49 -0
- package/edgeone-dist/pages/dev/runner-worker.js +4414 -2364
- package/edgeone-dist/pages/templates/agent-python/adapter.py +111 -0
- package/edgeone-dist/pages/templates/agent-python/mcp_handler.py +393 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -90,6 +90,34 @@ Note:
|
|
|
90
90
|
- The dev service will read `devCommand` from `edgeone.json` to start your dev server. If absent, it will read the `dev` script from your project's `package.json`.
|
|
91
91
|
- Edge Functions debug service has a limit on the number of times it can start up, so try to avoid frequently logging out and starting the dev service (hot updates within the dev service will not increase the startup count).
|
|
92
92
|
|
|
93
|
+
#### Parameters
|
|
94
|
+
|
|
95
|
+
- `--port`: Port of the frontend server (default: 8088)
|
|
96
|
+
- `-n, --name`: Project name to auto-link when `.edgeone/project.json` does not exist (non-interactive)
|
|
97
|
+
- `-a, --area`: Acceleration area for the project, choices: `global` or `overseas` (default: `global`)
|
|
98
|
+
|
|
99
|
+
#### `--area` and project creation
|
|
100
|
+
|
|
101
|
+
`dev` creates and links a Makers project automatically when the project is not linked yet
|
|
102
|
+
(with `--name`, or by choosing "Create and link upload project" in the interactive prompt).
|
|
103
|
+
|
|
104
|
+
`--area` decides the **acceleration area of that new project**. It is a **create-time
|
|
105
|
+
parameter only** — if the project is already linked, the flag is silently ignored, exactly
|
|
106
|
+
like `-a/--area` on `edgeone makers deploy`:
|
|
107
|
+
|
|
108
|
+
```plaintext
|
|
109
|
+
# Auto-create a project in the overseas acceleration area
|
|
110
|
+
edgeone makers dev --name my-app --area overseas
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
> The area is fixed once the project exists. If a project was created as `global`, a later
|
|
114
|
+
> `deploy --area overseas` reuses that project and the flag is ignored — so pass `--area`
|
|
115
|
+
> to whichever command creates the project first.
|
|
116
|
+
>
|
|
117
|
+
> Do not confuse `--area` with the login site (`edgeone login --site china|global`): the
|
|
118
|
+
> site selects which API endpoint the CLI talks to, while `--area` selects the project's
|
|
119
|
+
> acceleration area.
|
|
120
|
+
|
|
93
121
|
### 5. Associated Project
|
|
94
122
|
|
|
95
123
|
If you need to use the Key-Value Storage capability or synchronize the environment variables set in the console to local debugging, you can execute the Associated Project commands, enter the project name as required. The project name here is the one created in the Preparation Work of the Makers project.
|
|
@@ -159,6 +187,7 @@ edgeone makers deploy [<directoryOrZip>] -n <projectName> -t <token> [-e <env>]
|
|
|
159
187
|
- `<directoryOrZip>`: Path of folder or ZIP package to deploy
|
|
160
188
|
- `-n, --name`: Project name for deployment (creates new or updates existing project) (required)
|
|
161
189
|
- `-e, --env`: Environment to deploy to, choices: 'production' or 'preview' (default: 'production')
|
|
190
|
+
- `-a, --area`: Acceleration area for the project when it is created, choices: 'global' or 'overseas' (default: 'global'); ignored if the project already exists
|
|
162
191
|
- `-t, --token`: API Token for CI/CD pipelines (required for automated deployments)
|
|
163
192
|
|
|
164
193
|
Note:
|