create-disposabl-app 0.8.12 → 0.8.13
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/dist/disposabl.js
CHANGED
|
@@ -255,7 +255,7 @@ Sign in to Expo if needed and choose Delete project. Then rerun this command to
|
|
|
255
255
|
// ../cli/package.json
|
|
256
256
|
var package_default = {
|
|
257
257
|
name: "@disposabl/cli",
|
|
258
|
-
version: "0.8.
|
|
258
|
+
version: "0.8.13",
|
|
259
259
|
type: "module",
|
|
260
260
|
description: "Command-line access to your Disposabl app",
|
|
261
261
|
license: "MIT",
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8
8
|
import { Command, CommanderError } from "commander";
|
|
9
9
|
import * as p2 from "@clack/prompts";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.8.
|
|
11
|
+
var version = "0.8.13";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -1,52 +1,72 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: disposabl-app
|
|
3
|
-
description:
|
|
3
|
+
description: Create, develop, and deliver Disposabl apps, with preview status updates and verification on the requested platforms.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Build a Disposabl app
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Build the user's requested app and keep its preview visible. Preserve their chosen name and platforms. Use the generated app's `disposabl.json` to identify the app; do not substitute another project's preview.
|
|
9
|
+
|
|
10
|
+
## Create and configure
|
|
11
|
+
|
|
12
|
+
On a fresh machine, check Bun, Git, and Node.js 22.12 or newer. Report a missing prerequisite and follow its official installation instructions; do not assume another machine's tools, login, or credentials exist here.
|
|
13
|
+
|
|
14
|
+
Discover platform and feature IDs, then create the app with explicit selections:
|
|
9
15
|
|
|
10
16
|
```sh
|
|
11
|
-
bun create disposabl-app@latest
|
|
17
|
+
bun create disposabl-app@latest --list-options
|
|
18
|
+
bun create disposabl-app@latest my-app --platforms web,android,mcp --features authentication --yes
|
|
12
19
|
```
|
|
13
20
|
|
|
14
|
-
Use the requested platforms and features. Creation
|
|
21
|
+
Use the requested platforms and features. Creation handles Disposabl login, required GitHub/Convex connections, and the app's scoped development environment. Resume interrupted setup in the same directory. Do not create a replacement Convex project or delete an app unless requested. Never print credentials.
|
|
22
|
+
|
|
23
|
+
The CLI is bundled with `create-disposabl-app`; do not use the retired `@disposabl/cli` package. Commands below use the published CLI and work without a global install:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
bunx --package create-disposabl-app@latest disposabl login status
|
|
27
|
+
bunx --package create-disposabl-app@latest disposabl previews get --help
|
|
28
|
+
```
|
|
15
29
|
|
|
16
|
-
Use
|
|
30
|
+
Use command help and the current API contract for other operations. If login is required, use the supported login flow and an existing authenticated browser when available. Never request provider passwords or copy another project's environment files.
|
|
17
31
|
|
|
18
|
-
|
|
32
|
+
## Implement and deliver
|
|
19
33
|
|
|
20
|
-
|
|
34
|
+
Choose a visual direction suited to the product. Use `frontend-design` when available and read [app branding and visual design](references/design.md). If that skill is unavailable, proceed with the user's brief and report the limitation without blocking development.
|
|
21
35
|
|
|
22
|
-
|
|
36
|
+
Read [delivery checks](references/delivery.md) before native builds or delivery repairs. Aim to show a usable web preview early; first native builds can take longer. Do not promise a build deadline.
|
|
23
37
|
|
|
24
|
-
A
|
|
38
|
+
A generated app already has an Initial commit and a provisioned Git remote. For authorized delivery, publish that scaffold to `main`, then develop on an isolated feature branch/worktree:
|
|
25
39
|
|
|
26
40
|
```sh
|
|
27
41
|
cd my-app
|
|
28
42
|
git push -u origin main
|
|
29
43
|
git worktree add ../my-app-feature -b feat/first-version
|
|
30
44
|
cd ../my-app-feature
|
|
31
|
-
bunx --package create-disposabl-app disposabl previews token create --configure .
|
|
45
|
+
bunx --package create-disposabl-app@latest disposabl previews token create --configure .
|
|
32
46
|
bun install
|
|
33
47
|
bun run dev
|
|
34
48
|
```
|
|
35
49
|
|
|
36
|
-
|
|
50
|
+
Use the host's worktree and delegation tools when required. Keep tokens in ignored environment files. Local development, PR previews, and production are separate deployments. Opening a same-repository PR to `main` triggers its preview; a branch push alone does not. Push only the intended reviewed changes and preserve unrelated work.
|
|
37
51
|
|
|
38
|
-
|
|
52
|
+
## Preview updates every two minutes
|
|
39
53
|
|
|
40
|
-
|
|
54
|
+
Run this in the active app worktree immediately after setup, after opening or updating its PR, and whenever the user asks for a preview:
|
|
41
55
|
|
|
42
|
-
|
|
56
|
+
```sh
|
|
57
|
+
bunx --package create-disposabl-app@latest disposabl previews get --json
|
|
58
|
+
```
|
|
43
59
|
|
|
44
|
-
|
|
60
|
+
While delivery is active, check again every **two minutes**. Track the last check time and continue useful work between checks. Use the host's scheduling/watcher rules; do not start an endless polling process or poll a delegated agent's status. If the host requires yielding to a PR watcher, yield and refresh Disposabl status on wake.
|
|
45
61
|
|
|
46
|
-
|
|
62
|
+
After each check, give a short update: the current stage, requested platforms that are ready or still building, any blocker, and the available preview or download links. If unchanged, say so briefly. On a failed status, diagnose the failure rather than repeatedly polling it. Stop periodic checks when all requested platforms are ready, delivery is blocked on a concrete user action, or the user stops the task.
|
|
47
63
|
|
|
48
|
-
When
|
|
64
|
+
When a preview becomes available, open that app's URL or install/open its APK in the supported device panel promptly, before lengthy verification. Do not replace the requested app preview with a dashboard or landing page. A configured URL, `enabled: true`, successful build, or local APK does not by itself prove the hosted preview is ready. If local and reported cloud states differ, explain the difference.
|
|
65
|
+
|
|
66
|
+
Verify the requested behavior, authentication, and saved data after relaunch on each requested platform. Report compilation, publication, and visible behavior separately. After an authorized merge, use `disposabl releases get --appId <appId>` for production status and verify its URLs separately. APK delivery does not require store submission; do not run `eas submit` unless requested.
|
|
67
|
+
|
|
68
|
+
## Delete an app
|
|
49
69
|
|
|
50
|
-
|
|
70
|
+
Only when requested, run `disposabl apps delete --appId <uuid> --dangerously-delete-app`. Apps with production releases cannot be deleted.
|
|
51
71
|
|
|
52
|
-
|
|
72
|
+
If the response is `expo_manual_delete_required`, GitHub/Convex cleanup has completed but Expo cleanup remains. Open the exact returned `projectUrl`; never substitute a generic dashboard. The user completes Expo sign-in or reauthentication directly. Do not collect passwords or session cookies. Retry the deletion command afterward and report full deletion only when Disposabl confirms it. `--no-browser` prints the URL for headless callers.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# App branding and visual design
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use when creating or substantially redesigning a Disposabl app. Apply `frontend-design` when available; otherwise use the user's brief and the guidance below. Preserve an existing brand when provided.
|
|
4
4
|
|
|
5
5
|
Before implementing screens, derive a short brand direction from the app's purpose, audience, main task, and intended tone. Choose a fitting product name or use the supplied one, a typography hierarchy, color palette, spacing and shape rules, and an image/icon approach. Record the choices briefly in the implementation plan and proceed with reasonable assumptions when the brief is sufficient.
|
|
6
6
|
|