clawnify 0.11.3 → 0.11.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.
|
@@ -1341,7 +1341,7 @@ function agentByName(name) {
|
|
|
1341
1341
|
var ALL_AGENTS = DETECTORS.map((d) => d.agent);
|
|
1342
1342
|
|
|
1343
1343
|
// src/lib/skills/content.gen.ts
|
|
1344
|
-
var CLI_VERSION = "0.11.
|
|
1344
|
+
var CLI_VERSION = "0.11.4";
|
|
1345
1345
|
var BUNDLED_SKILLS = [
|
|
1346
1346
|
{
|
|
1347
1347
|
name: "build-a-clawnify-app",
|
|
@@ -1847,12 +1847,14 @@ async function initApp(dir, opts) {
|
|
|
1847
1847
|
app: { framework: "react+hono", database: true, storage }
|
|
1848
1848
|
}, null, 2));
|
|
1849
1849
|
const devDeps = {
|
|
1850
|
-
|
|
1850
|
+
// v5 — wrangler >=4.114 declares a peer of ^5.x, and npm (unlike pnpm)
|
|
1851
|
+
// hard-fails the install on the conflict if this is pinned to ^4.
|
|
1852
|
+
"@cloudflare/workers-types": "^5.0.0",
|
|
1851
1853
|
"@tailwindcss/vite": "^4.0.0",
|
|
1852
1854
|
"@types/react": "^19.0.0",
|
|
1853
1855
|
"@types/react-dom": "^19.0.0",
|
|
1854
1856
|
"@vitejs/plugin-react": "^4.0.0",
|
|
1855
|
-
clawnify: "^0.3
|
|
1857
|
+
clawnify: "^0.11.3",
|
|
1856
1858
|
"drizzle-kit": "^0.31.0",
|
|
1857
1859
|
tailwindcss: "^4.0.0",
|
|
1858
1860
|
vite: "^6.0.0",
|
|
@@ -1878,7 +1880,7 @@ async function initApp(dir, opts) {
|
|
|
1878
1880
|
},
|
|
1879
1881
|
devDependencies: devDeps,
|
|
1880
1882
|
engines: { node: ">=22" },
|
|
1881
|
-
pnpm: { onlyBuiltDependencies: ["esbuild"] }
|
|
1883
|
+
pnpm: { onlyBuiltDependencies: ["esbuild", "workerd"] }
|
|
1882
1884
|
}, null, 2));
|
|
1883
1885
|
write(targetDir, "tsconfig.json", JSON.stringify({
|
|
1884
1886
|
compilerOptions: {
|
|
@@ -1967,13 +1969,17 @@ export default defineConfig({
|
|
|
1967
1969
|
});
|
|
1968
1970
|
`);
|
|
1969
1971
|
if (storage) {
|
|
1970
|
-
write(targetDir, "src/server/index.ts", `import {
|
|
1972
|
+
write(targetDir, "src/server/index.ts", `import { createApp } from "@clawnify/app";
|
|
1971
1973
|
import { initUploads } from "./uploads";
|
|
1972
1974
|
import api from "./routes";
|
|
1973
1975
|
|
|
1974
1976
|
type Env = { Bindings: { DB: D1Database; UPLOADS: R2Bucket } };
|
|
1975
1977
|
|
|
1976
|
-
|
|
1978
|
+
// createApp returns an OpenAPIHono with API discovery already mounted \u2014
|
|
1979
|
+
// GET /api/openapi.json + GET /llms.txt, generated from your live routes.
|
|
1980
|
+
// That descriptor is how agents discover this app; never hand-write it.
|
|
1981
|
+
// db:false \u2014 routes read the database per request via getDB(c.env).
|
|
1982
|
+
const app = createApp<Env>({ title: "${name}", version: "1.0.0", db: false });
|
|
1977
1983
|
|
|
1978
1984
|
app.use("*", async (c, next) => {
|
|
1979
1985
|
initUploads(c.env.UPLOADS);
|
|
@@ -1982,11 +1988,6 @@ app.use("*", async (c, next) => {
|
|
|
1982
1988
|
|
|
1983
1989
|
app.route("/", api);
|
|
1984
1990
|
|
|
1985
|
-
app.doc("/api/openapi.json", {
|
|
1986
|
-
openapi: "3.0.0",
|
|
1987
|
-
info: { title: "${name}", version: "1.0.0" },
|
|
1988
|
-
});
|
|
1989
|
-
|
|
1990
1991
|
export default app;
|
|
1991
1992
|
`);
|
|
1992
1993
|
write(targetDir, "src/server/uploads.ts", `let _bucket: R2Bucket;
|
|
@@ -2031,20 +2032,19 @@ export async function readUploadAsBase64DataUrl(
|
|
|
2031
2032
|
}
|
|
2032
2033
|
`);
|
|
2033
2034
|
} else {
|
|
2034
|
-
write(targetDir, "src/server/index.ts", `import {
|
|
2035
|
+
write(targetDir, "src/server/index.ts", `import { createApp } from "@clawnify/app";
|
|
2035
2036
|
import api from "./routes";
|
|
2036
2037
|
|
|
2037
2038
|
type Env = { Bindings: { DB: D1Database } };
|
|
2038
2039
|
|
|
2039
|
-
|
|
2040
|
+
// createApp returns an OpenAPIHono with API discovery already mounted \u2014
|
|
2041
|
+
// GET /api/openapi.json + GET /llms.txt, generated from your live routes.
|
|
2042
|
+
// That descriptor is how agents discover this app; never hand-write it.
|
|
2043
|
+
// db:false \u2014 routes read the database per request via getDB(c.env).
|
|
2044
|
+
const app = createApp<Env>({ title: "${name}", version: "1.0.0", db: false });
|
|
2040
2045
|
|
|
2041
2046
|
app.route("/", api);
|
|
2042
2047
|
|
|
2043
|
-
app.doc("/api/openapi.json", {
|
|
2044
|
-
openapi: "3.0.0",
|
|
2045
|
-
info: { title: "${name}", version: "1.0.0" },
|
|
2046
|
-
});
|
|
2047
|
-
|
|
2048
2048
|
export default app;
|
|
2049
2049
|
`);
|
|
2050
2050
|
}
|
|
@@ -2288,7 +2288,7 @@ logs/
|
|
|
2288
2288
|
console.log();
|
|
2289
2289
|
}
|
|
2290
2290
|
function writeBlankTemplate(dir, name) {
|
|
2291
|
-
write(dir, "src/server/routes.ts", `import { OpenAPIHono, createRoute, z } from "@
|
|
2291
|
+
write(dir, "src/server/routes.ts", `import { OpenAPIHono, createRoute, z } from "@clawnify/app";
|
|
2292
2292
|
import { getDB, desc } from "@clawnify/db";
|
|
2293
2293
|
import * as schema from "./schema";
|
|
2294
2294
|
|
|
@@ -2376,7 +2376,7 @@ export const items = sqliteTable("items", {
|
|
|
2376
2376
|
createdAt: text("created_at").notNull().$default(() => new Date().toISOString()),
|
|
2377
2377
|
});
|
|
2378
2378
|
`);
|
|
2379
|
-
write(dir, "src/server/routes.ts", `import { OpenAPIHono, createRoute, z } from "@
|
|
2379
|
+
write(dir, "src/server/routes.ts", `import { OpenAPIHono, createRoute, z } from "@clawnify/app";
|
|
2380
2380
|
import { getDB, eq, desc } from "@clawnify/db";
|
|
2381
2381
|
import * as schema from "./schema";
|
|
2382
2382
|
|
|
@@ -3634,4 +3634,4 @@ async function runCli() {
|
|
|
3634
3634
|
export {
|
|
3635
3635
|
runCli
|
|
3636
3636
|
};
|
|
3637
|
-
//# sourceMappingURL=cli-
|
|
3637
|
+
//# sourceMappingURL=cli-GUJPA7GL.js.map
|