create-disposabl-app 0.8.2 → 0.8.4

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
@@ -22,7 +22,7 @@ import { Command } from "commander";
22
22
  // ../cli/package.json
23
23
  var package_default = {
24
24
  name: "@disposabl/cli",
25
- version: "0.8.2",
25
+ version: "0.8.4",
26
26
  type: "module",
27
27
  description: "Command-line access to your Disposabl app",
28
28
  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.2";
11
+ var version = "0.8.4";
12
12
 
13
13
  // ../disposabl-kit/platforms.ts
14
14
  var platforms = [
@@ -24,6 +24,7 @@ env:
24
24
  RELEASE_PREFIX: app
25
25
  DISPOSABL_ANDROID_VERSION_CODE: ${{ github.run_number }}
26
26
  DISPOSABL_IOS_BUILD_NUMBER: ${{ github.run_number }}
27
+ # Build jobs only read this repository. Keep installation tokens in publishing jobs.
27
28
  GH_TOKEN: ${{ github.token }}
28
29
  GH_REPO: ${{ github.repository }}
29
30
  SOURCE: ${{ github.event.pull_request.head.sha || github.sha }}
@@ -72,9 +73,6 @@ jobs:
72
73
  - &node
73
74
  uses: actions/setup-node@v6
74
75
  with: { node-version: *node-version, package-manager-cache: false }
75
- - &app-token
76
- name: Disposabl GitHub App token
77
- run: node .github/scripts/disposabl.mjs token
78
76
  - &bun
79
77
  uses: oven-sh/setup-bun@v2
80
78
  with: { bun-version: *bun-version }
@@ -173,7 +171,6 @@ jobs:
173
171
  - *checkout
174
172
  - *platforms
175
173
  - *node
176
- - *app-token
177
174
  - *bun
178
175
  - *cache
179
176
  - *install
@@ -226,7 +223,6 @@ jobs:
226
223
  steps:
227
224
  - *checkout
228
225
  - *node
229
- - *app-token
230
226
  - *bun
231
227
  - *cache
232
228
  - *install
@@ -272,7 +268,6 @@ jobs:
272
268
  steps:
273
269
  - *checkout
274
270
  - *node
275
- - *app-token
276
271
  - *bun
277
272
  - *cache
278
273
  - *install
@@ -312,7 +307,6 @@ jobs:
312
307
  steps:
313
308
  - *checkout
314
309
  - *node
315
- - *app-token
316
310
  - *bun
317
311
  - *cache
318
312
  - *install
@@ -378,7 +372,8 @@ jobs:
378
372
  - *bun
379
373
  - *cache
380
374
  - *install
381
- - *app-token
375
+ - name: Disposabl GitHub App token
376
+ run: node .github/scripts/disposabl.mjs token
382
377
  - name: Publish package if configured
383
378
  run: bash .github/scripts/release.sh package-release
384
379
 
@@ -5,7 +5,7 @@ description: Build and deliver a Disposabl app from a request, including develop
5
5
 
6
6
  # Build a Disposabl app
7
7
 
8
- Aim for a first usable preview in five minutes when practical, without promising a deadline. Native platforms may take longer on their first compile. Select platform and feature IDs with `bun create disposabl-app@latest --list-options` and pass them explicitly. For example:
8
+ Aim for a first usable preview in five minutes when practical, without promising a deadline. Treat that as a web-preview target, not a first native-build deadline. In the meal-planner validation, one Android build took about 41 minutes and an iOS simulator job took about 10 minutes; later timings depend on cache and native changes. Select platform and feature IDs with `bun create disposabl-app@latest --list-options` and pass them explicitly. For example:
9
9
 
10
10
  ```sh
11
11
  bun create disposabl-app@latest my-app --platforms web,android --features authentication --setup --yes
@@ -15,6 +15,10 @@ Use the requested platforms and features. Setup creates the app and its scoped d
15
15
 
16
16
  Use the installed `disposabl` bin, or invoke it as `bunx --package create-disposabl-app disposabl`. Check `disposabl login status`; if needed, run `disposabl login` and use the existing authenticated browser session for signup or login when possible. Complete the required GitHub and Convex connections. Respect authorization already given for the task.
17
17
 
18
+ Before starting a native build or repairing delivery, read [delivery checks and failure recovery](references/delivery.md). Confirm account connections survive a page reload and managed development starts without a Convex project-selection prompt.
19
+
20
+ Before designing a new app, locate and read the `frontend-design` skill and use it to choose a visual direction suited to the user's product. If it is unavailable, report that explicitly; do not claim to have applied it. Read [app branding and visual design](references/design.md) for the Disposabl-specific requirements.
21
+
18
22
  Create a separate Git branch and worktree for each change. In that worktree run `disposabl previews token create --configure .`, `bun install`, and `bun dev`. Implement the request and verify the actual behavior on the requested platforms. Commit and push the branch and open a pull request when the task authorizes delivery.
19
23
 
20
24
  For a newly generated app, publish its scaffold to `main` first so GitHub has the trusted publishing workflow. Setup configures `origin` for the provisioned repository. Then work on the requested features in an isolated branch:
@@ -36,3 +40,5 @@ The configured token is scoped to this worktree's development backend. Never cop
36
40
  After pushing the PR, run `disposabl previews get` in the worktree and check each requested platform's status and available preview, workflow, release, or download URLs. Wait for relevant builds or report failures; do not claim readiness without evidence. For Android, install the preview APK on the target and verify the requested behavior and authentication. Do not run `eas submit`. After an authorized merge, verify production status and actual URLs. If a platform or URL is missing, inspect the relevant workflow and report the gap.
37
41
 
38
42
  Use `disposabl previews get --json` when an agent needs structured status. Query again as builds progress, respecting the host's PR watcher rules, and stop waiting when every requested platform has a terminal status. Inspect and repair failures instead of repeatedly polling an unchanged failure. After merging, run `disposabl releases get --appId <appId-from-disposabl.json>`; production results are separate from the worktree's preview. Install the production Android APK alongside its preview and verify login and saved data against the production backend. Store submission is not required for Android APK delivery. TestFlight is available only after Apple signing and App Store Connect submission credentials are configured.
43
+
44
+ When CI fails, compare the notification SHA with the current branch before editing. Diagnose the exact failed step, collect independent platform failures, and batch related fixes before pushing. A push can cancel an expensive preview build. Use available PR watchers instead of polling unchanged checks. Keep separate evidence for compilation, artifact publication, installation, and login/data persistence.
@@ -0,0 +1,43 @@
1
+ # Delivery checks and failure recovery
2
+
3
+ Read before a first native build, a toolchain change, or a failed preview/production delivery. These are operational lessons from the meal-planner rollout, not guarantees that every platform is configured.
4
+
5
+ ## Before expensive builds
6
+
7
+ - Verify GitHub and Convex connections after a browser reload. A completed OAuth screen does not prove that the callback saved a usable connection. Preserve the pending provider across redirects and inspect the account actually selected.
8
+ - Use managed setup and a worktree-scoped development token. If `bun run dev` asks to create or select a Convex project, repair setup instead of creating a personal project. Local worktree, PR preview, and production are separate deployments.
9
+ - Check the generated files, not only the generator source. Confirm the package includes `.github`, helper scripts, native packaging assets, and this skill. Check that provisioned secret names match workflow inputs without printing their values.
10
+ - Inspect the native dependency's compiler requirements and the selected runner's installed Xcode/Swift versions. Pin a compatible toolchain; do not assume the runner default is compatible or disable concurrency diagnostics to make a build pass.
11
+ - Verify production Android signing is configured before compiling. Check Apple signing and App Store Connect readiness separately; a simulator archive does not establish TestFlight readiness. Do not infer store submission authorization from build authorization.
12
+ - Use the job-scoped GitHub token for same-repository reads. Obtain installation tokens in publishing jobs when needed. A credential accepted before a long build may fail afterward; check both stages rather than diagnosing every failed job as a compile failure.
13
+
14
+ ## Avoid repeating expensive work
15
+
16
+ Diagnose independent platform failures in parallel when available, with separate owners and checkouts. Keep each device and browser session under one owner. Give a delivery delegate an observable success condition, such as an uploaded artifact or a verified login on its assigned device; a commit and local checks alone do not satisfy that condition. Batch related repairs before pushing, because PR concurrency can cancel running native builds. Keep source-commit validation when publishing so an old build cannot become the current release.
17
+
18
+ Separate an application change from a starter/pipeline defect. Repair a reusable defect in the generator and the generated app. For a new repository, establish its trusted publishing workflow on `main` before the feature preview; later workflow changes must follow the repository's review and merge policy. Do not weaken workflow-source identity checks to bypass a mismatch.
19
+
20
+ For Android, inspect the existing release's channel, application ID, runtime fingerprint, and artifact digest before rebuilding. Reuse the binary and publish an OTA update only when the existing workflow proves compatibility. Missing or incompatible artifacts require a build. Never guess compatibility from a JavaScript-only diff.
21
+
22
+ If compilation succeeds but verification or publication fails, preserve the completed artifacts when the pipeline allows it. Any recovery path must retain source, digest, signing, and publisher checks. Do not rebuild just to retry a release API call when a verified artifact is already available. Artifact recovery is a pipeline capability to check, not something every current template guarantees.
23
+
24
+ ## Diagnose the failing stage
25
+
26
+ | Symptom | What to inspect first |
27
+ | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
28
+ | Connect remains visible after OAuth | Callback state, stored provider, selected GitHub installation/Convex team, persistence after reload. |
29
+ | Convex asks to create a project during managed development | Missing app configuration or scoped development credentials. Resume managed setup. |
30
+ | Reports fail with upstream 429 | Identity/token issuance frequency and retry headers. Reuse valid identities and use bounded retries; changing app features will not repair rate limiting. |
31
+ | Convex deployment fails loading modules | Server module initialization and dependency side effects. In the rollout, moving eager libsodium initialization into the action preceded a successful deployment; do not assume every module-load error has that cause. |
32
+ | Linux installer cannot find the executable | Align the packaged executable name with Debian/RPM maker `name` and `bin`. Packaging the app alone does not validate installer creation. |
33
+ | RPM cannot copy `usr/*` | Installer staging path versus rpmbuild's working directory. Use the maintained custom spec and build/inspect a real RPM. |
34
+ | Swift package tools version or actor-isolation compilation error | Exact Swift/Xcode version, dependency source and runner inventory. Validate the selected replacement with a real archive build. |
35
+ | `BUILD SUCCESSFUL`, followed by GitHub 401 | The next API operation and its credential source. Expiration is only one possible cause; do not claim it without evidence. |
36
+ | An old commit's failure arrives after a fix | Match job ID and SHA to the already-diagnosed failure. Avoid another edit or rerun for the same stale notification. |
37
+ | Repeated dependency bot comment | Compare the actual findings. An informational dependency inventory is not a new security finding. |
38
+
39
+ ## Evidence and timing
40
+
41
+ Record the source SHA, run/job URL, target, start/end times, failing step, and result. Parallel job durations are not additive wall time. Track queueing, compilation, upload/publication, and device verification separately when estimating delivery time.
42
+
43
+ A green compile is partial evidence. Open the deployed web page and exercise authentication and saved state. Install the preview and production Android APKs in the requested mobile lab, log in, save data, relaunch, and confirm the intended backend. Open the iOS simulator build separately; report device distribution/TestFlight independently. Only call a platform delivered when the requested behavior is visibly verified.
@@ -0,0 +1,13 @@
1
+ # App branding and visual design
2
+
3
+ Use with the `frontend-design` skill whenever creating a new Disposabl app or substantially redesigning one. Preserve a user's existing brand when provided.
4
+
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
+
7
+ Give the app its own identity across the landing page, authentication, dashboard, mobile screens, desktop shell, app icon, favicon, metadata, empty states, and download pages. Replace Disposabl starter branding and generic copy with product-specific content. Keep layouts and interactions appropriate to each platform while sharing the same visual language.
8
+
9
+ Use superscripts, tiny uppercase eyebrows, and decorative labels sparingly. Prefer clear headings and readable body text. Reserve actual superscript formatting for meaningful notation, references, or units; avoid using it as decoration on every section or card. Keep essential labels, prices, and actions at an accessible reading size.
10
+
11
+ Make the design distinctive through choices that suit the product, rather than a repeated starter palette or the same hero, card grid, and badges with a new name. For example, a meal planner's recipe imagery and weekly schedule should guide its design; a finance tool's data hierarchy should lead to a different treatment. These examples are directions, not mandatory themes.
12
+
13
+ Use the app's real tasks and representative content to evaluate the design. Check the landing page and signed-in experience at desktop and mobile widths in the browser, and inspect native layouts on the requested target device. Verify typography, contrast, hierarchy, focus states, wrapping, empty/error/loading states, and consistency with the chosen brand. Fix visible issues before calling the design complete.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",