create-cellsweb-rpc-api 1.0.10 → 1.0.12

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/bin/create.js CHANGED
@@ -130,7 +130,7 @@ async function main() {
130
130
  "create:middleware": "tsx scripts/create-middleware.ts",
131
131
  },
132
132
  dependencies: {
133
- "@cellsweb/rpc-core": "^1.0.5",
133
+ "@cellsweb/rpc-core": "^1.0.8",
134
134
  "@aws-sdk/client-s3": "^3.700.0",
135
135
  "@paralleldrive/cuid2": "^2.2.2",
136
136
  "@sentry/node": "^8.40.0",
@@ -210,6 +210,13 @@ async function main() {
210
210
  const giPath = path.join(targetDir, ".gitignore");
211
211
  if (!fs.existsSync(giPath)) fs.writeFileSync(giPath, gitignore);
212
212
 
213
+ // ── 7.5 Copy .env.example -> .env ────────────────────────────────────────
214
+ const envExamplePath = path.join(targetDir, ".env.example");
215
+ const envPath = path.join(targetDir, ".env");
216
+ if (fs.existsSync(envExamplePath) && !fs.existsSync(envPath)) {
217
+ fs.copyFileSync(envExamplePath, envPath);
218
+ }
219
+
213
220
  // ── 8. Install ────────────────────────────────────────────────────────────
214
221
  console.log(` ${dim("Installing dependencies with")} ${bold(pm)} ...\n`);
215
222
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cellsweb-rpc-api",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,6 +24,10 @@
24
24
  ],
25
25
  "author": "Minhazur Rahman",
26
26
  "license": "MIT",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/MinhazurSarker/cellsweb-rpc.git"
30
+ },
27
31
  "dependencies": {
28
32
  "@clack/prompts": "^1.7.0"
29
33
  }
@@ -93,9 +93,9 @@ export const inputSchema = Type.Object({
93
93
  });
94
94
 
95
95
  export const outputSchema = Type.Object({
96
- fileName: Type.String(),
97
- fileSize: Type.Number(),
98
- extraFiles: Type.Number(),
96
+ fileName: Type.String({ description: "Original file name" }),
97
+ fileSize: Type.Number({ description: "Size of uploaded file in bytes" }),
98
+ extraFiles: Type.Number({ description: "Count of additional attached files" }),
99
99
  });
100
100
  `;
101
101
  }
@@ -108,8 +108,8 @@ export const outputSchema = Type.Object({
108
108
  * WHAT TO TOUCH:
109
109
  * - metadata: Description, public access, tags.
110
110
  * - contentType: "application/json" (default).
111
- * - inputSchema: Define fields expected in req.body.data.
112
- * - outputSchema: Define structure returned by run().
111
+ * - inputSchema: Define fields expected in req.body.data. Include description in Type properties!
112
+ * - outputSchema: Define structure returned by run(). Include description in Type properties!
113
113
  */
114
114
 
115
115
  import { Type } from "@sinclair/typebox";
@@ -126,11 +126,11 @@ export const contentType = "application/json" as const;
126
126
  export const headersSchema = Type.Object({}, { additionalProperties: true });
127
127
 
128
128
  export const inputSchema = Type.Object({
129
- example: Type.String({ minLength: 1, description: "Example string input" }),
129
+ example: Type.String({ minLength: 1, description: "Example string input parameter" }),
130
130
  });
131
131
 
132
132
  export const outputSchema = Type.Object({
133
- result: Type.String(),
133
+ result: Type.String({ description: "Operation status or execution result message" }),
134
134
  });
135
135
  `;
136
136
  }
@@ -18,9 +18,9 @@ export const contentType = "application/json" as const;
18
18
  export const headersSchema = Type.Object({}, { additionalProperties: true });
19
19
 
20
20
  export const inputSchema = Type.Object({
21
- name: Type.String({ minLength: 1, description: "Your name" }),
21
+ name: Type.String({ minLength: 1, description: "Your full name for personalized greeting" }),
22
22
  });
23
23
 
24
24
  export const outputSchema = Type.Object({
25
- greeting: Type.String(),
25
+ greeting: Type.String({ description: "Personalized greeting response message" }),
26
26
  });