@kissflow/create-app 0.1.0 → 0.1.1

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 CHANGED
@@ -5,5 +5,18 @@
5
5
  ## To scaffold a custom app project,
6
6
 
7
7
  ```bash
8
- npm create kf-app
8
+ npx @kissflow/create-app@latest
9
+ ```
10
+
11
+ ## Non-interactive usage
12
+
13
+ Any value not supplied as a flag falls back to an interactive prompt, unless `--yes` is set (then a missing required value is an error instead of a prompt). Useful for AI agents or CI.
14
+
15
+ | Flag | Description |
16
+ | ------------- | -------------------------------------------------------------------------|
17
+ | `--name` | Project name. |
18
+ | `--yes`, `-y` | Run non-interactively; error instead of prompting for missing values. |
19
+
20
+ ```bash
21
+ npx @kissflow/create-app@latest --name my-app --yes
9
22
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kissflow/create-app",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI that scaffolds a Kissflow custom app project.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -67,7 +67,7 @@ const { Data, count, Columns } = await form.getItems({
67
67
  }); // returns { Columns, Data, count }
68
68
 
69
69
  const item = await form.getItem({ itemId: "id_123" });
70
- const created = await form.createItem({ data: { Name: "New", Amount: 10 } });
70
+ const created = await form.createItem({ data: { Field1: "New", Amount: 10 } });
71
71
  const updated = await form.updateItem({
72
72
  itemId: "id_123",
73
73
  data: { Amount: 20 }
@@ -128,8 +128,8 @@ const { Data, count, Columns } = await board.getItems({
128
128
  viewId: "AllItems_View"
129
129
  });
130
130
  const item = await board.getItem({ instanceId: "id_123" });
131
- const created = await board.createItem({ data: { Name: "New Item" } });
132
- await board.updateItem({ instanceId: "id_123", data: { Name: "Updated" } });
131
+ const created = await board.createItem({ data: { Field1: "New Item" } });
132
+ await board.updateItem({ instanceId: "id_123", data: { Field1: "Updated" } });
133
133
  await board.deleteItem({ instanceId: "id_123" });
134
134
  await board.submitItem({ instanceId: "id_123" });
135
135
  await board.discardItem({ instanceId: "id_123" });