create-disposabl-app 0.8.13 → 0.8.15
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 +5 -0
- package/dist/disposabl.js +1 -1
- package/dist/index.js +15 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,11 @@ If app creation is interrupted, rerun `bun create disposabl-app@latest my-app` f
|
|
|
33
33
|
|
|
34
34
|
Generated apps do not include the `create-disposabl-app` package, its workspace lockfile entry, or its Turbo build task. The generator and bundled Disposabl CLI run externally.
|
|
35
35
|
|
|
36
|
+
Each new app installs the bundled `disposabl-app` skill and its references into
|
|
37
|
+
`.agents/skills/disposabl-app` for Codex and `.claude/skills/disposabl-app` for
|
|
38
|
+
Claude Code. `AGENTS.md` links to the skill. No separate skill installation or
|
|
39
|
+
global configuration is needed; the source copy remains in `packages/skill`.
|
|
40
|
+
|
|
36
41
|
Generated backends start with only `users: defineTable({})`. The starter keeps
|
|
37
42
|
authentication, static hosting, and API/MCP support, with `users/current` as its
|
|
38
43
|
only application operation. Disposabl's apps, previews, releases, provider
|
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.15",
|
|
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.15";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -305,6 +305,9 @@ async function createApp(template, destination, name, config, overwrite = false)
|
|
|
305
305
|
features: selectFeatures(config.features.join(",") || "none")
|
|
306
306
|
};
|
|
307
307
|
const folders = selectedFolders(config);
|
|
308
|
+
const skill = join(template, "packages/skill");
|
|
309
|
+
if (!existsSync(join(skill, "SKILL.md")))
|
|
310
|
+
throw new Error("The bundled starter is missing the Disposabl skill. Rebuild the CLI.");
|
|
308
311
|
for (const folder of folders) {
|
|
309
312
|
if (!existsSync(join(template, folder, "package.json"))) {
|
|
310
313
|
throw new Error("The bundled starter is missing " + folder + "/package.json. Rebuild the CLI.");
|
|
@@ -321,6 +324,17 @@ async function createApp(template, destination, name, config, overwrite = false)
|
|
|
321
324
|
errorOnExist: true
|
|
322
325
|
});
|
|
323
326
|
}
|
|
327
|
+
for (const agent of [".agents", ".claude"]) {
|
|
328
|
+
const skills = join(destination, agent, "skills");
|
|
329
|
+
await mkdir(skills, { recursive: true });
|
|
330
|
+
await cp(skill, join(skills, "disposabl-app"), { recursive: true });
|
|
331
|
+
}
|
|
332
|
+
const instructions = join(destination, "AGENTS.md");
|
|
333
|
+
await writeFile(instructions, await readFile(instructions, "utf8") + `
|
|
334
|
+
## Disposabl
|
|
335
|
+
|
|
336
|
+
For Disposabl development and delivery, read [.agents/skills/disposabl-app/SKILL.md](.agents/skills/disposabl-app/SKILL.md). Work in this generated app; create another app only when requested.
|
|
337
|
+
`);
|
|
324
338
|
for (const entry of await readdir(join(destination, "apps"))) {
|
|
325
339
|
if (!folders.includes("apps/" + entry))
|
|
326
340
|
await rm(join(destination, "apps", entry), {
|