@kizenapps/cli 1.13.0-poc-f34f035 → 1.14.0-8ac42d6
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 +25 -8
- package/dist/index.js +172 -203
- package/dist/index.js.map +1 -1
- package/dist/viewer/assets/{AppDetailPage-CsAJGeXG.js → AppDetailPage-CGrukEIj.js} +1 -1
- package/dist/viewer/assets/CodeStepsPage-D_a3dij6.js +1 -0
- package/dist/viewer/assets/{index-B1r1yKD-.js → index-w3fkjFhR.js} +2 -2
- package/dist/viewer/index.html +1 -1
- package/package.json +2 -3
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -1
- package/dist/viewer/assets/CodeStepsPage-Dd84cmbe.js +0 -1
package/README.md
CHANGED
|
@@ -57,7 +57,9 @@ The wizard first asks where the plugin should live (the current directory, or a
|
|
|
57
57
|
|
|
58
58
|
> **Fill in Description and Business ID.** Both are labelled optional in the wizard, but `create` writes them into `kizen.json` as empty strings and the bundler rejects an empty `description` or `developer_business_id` — so a plugin created with those fields skipped fails `appbuilder build` until you edit `kizen.json` by hand. This is tracked internally (KZN-17594); until that fix lands, treat both as required.
|
|
59
59
|
|
|
60
|
-
`
|
|
60
|
+
It then asks which artifacts to scaffold — Floating frame, Block, Data adornment, Routable page, Toolbar item, Object settings item, JS action — with all seven selected by default (Space toggles, `a` selects all, `n` none). Each selected type gets a working `hello*` directory under `src/`, holding a `config.json` and a script that runs as-is.
|
|
61
|
+
|
|
62
|
+
`create` writes `kizen.json`, `src/`, `releaseNotes/`, a placeholder `src/thumbnail.png` (512×512, colored from the `api_name`), the templates for the artifacts you picked, and the Copilot review files described under [`appbuilder create`](#appbuilder-create). It adds both `.kizenapp/` and `.copilot-docs/` to `.gitignore`.
|
|
61
63
|
|
|
62
64
|
### 2. Set up credentials
|
|
63
65
|
|
|
@@ -102,25 +104,38 @@ Writes `.kizenapp/bundle.json` — the same artifact `dev` serves — after runn
|
|
|
102
104
|
|
|
103
105
|
### `appbuilder create`
|
|
104
106
|
|
|
105
|
-
Scaffolds a new Kizen plugin project. Interactive; no
|
|
107
|
+
Scaffolds a new Kizen plugin project. Interactive by default; passing any flag other than `--include-lib` switches it to a non-interactive run, including `--artifacts` to choose the artifact templates up front (`appbuilder create --help` lists them all). Pass `--include-lib` to also write the Kizen data helper library to `src/lib/kizenData.js`; without it, no library is written. See [Quickstart](#1-scaffold-a-plugin) for the fields it collects, the artifact picker, and everything it writes.
|
|
108
|
+
|
|
109
|
+
The scaffold also includes `.github/copilot-instructions.md`, two path-scoped instruction files under `.github/instructions/`, and `.github/workflows/copilot-code-review.yml`. That workflow fetches the Kizen plugin docs from `kizen/app-engine` into `.copilot-docs/` before Copilot code review runs, so reviews cite the current documentation instead of rules copied into the plugin repo. It only takes effect once it is on the repository's default branch, and `.copilot-docs/` is gitignored. Plugins scaffolded before this setup existed can pick it up with `appbuilder setup-copilot`.
|
|
110
|
+
|
|
111
|
+
### `appbuilder setup-copilot`
|
|
112
|
+
|
|
113
|
+
Writes the same Copilot review files into an existing plugin repo — run it from the repo root (a `kizen.json` must be there). The four files are CLI-owned, so the command overwrites them and prints `created`, `updated`, or `unchanged` per file; a clobbered local customization is recoverable from git. It also adds `.kizenapp/` and `.copilot-docs/` to `.gitignore` if they are missing.
|
|
114
|
+
|
|
115
|
+
| Flag | Default | Purpose |
|
|
116
|
+
| ----------- | ------- | ----------------------------------------------- |
|
|
117
|
+
| `--dry-run` | off | Print the per-file statuses without writing any |
|
|
118
|
+
|
|
119
|
+
As with `create`, the workflow only runs once it has reached the repository's default branch.
|
|
106
120
|
|
|
107
121
|
### `appbuilder setup-claude`
|
|
108
122
|
|
|
109
123
|
Installs or refreshes the Claude Code skill for building custom blocks (`.claude/skills/kizen-custom-block/SKILL.md`) in the plugin in the current directory. `appbuilder create` writes the skill once; run `setup-claude` in an existing plugin to add it, or after upgrading the CLI to pick up the bundled version.
|
|
110
124
|
|
|
111
125
|
```sh
|
|
112
|
-
appbuilder setup-claude [--dry-run]
|
|
126
|
+
appbuilder setup-claude [--dry-run] [--include-lib]
|
|
113
127
|
```
|
|
114
128
|
|
|
115
|
-
| Flag
|
|
116
|
-
|
|
|
117
|
-
| `--dry-run`
|
|
129
|
+
| Flag | Default | Purpose |
|
|
130
|
+
| --------------- | ------- | ------------------------------------------------------------ |
|
|
131
|
+
| `--dry-run` | off | Report what would change without writing files. |
|
|
132
|
+
| `--include-lib` | off | Also install the Kizen data helper library (`kizenData.js`). |
|
|
118
133
|
|
|
119
|
-
It also installs the skill's design guide (`.claude/skills/kizen-custom-block/design.md`), which tells the agent how to make blocks match native dashlets
|
|
134
|
+
It also installs the skill's design guide (`.claude/skills/kizen-custom-block/design.md`), which tells the agent how to make blocks match native dashlets. With `--include-lib`, it installs the Kizen data helper library that block scripts import to read records and apply the dashboard's date and team filters. The library goes under the `entry` directory from `kizen.json` (`<entry>/lib/kizenData.js`, one per entry in a multi-plugin `kizen.json`), and under `src/` when `kizen.json` has no usable `entry`. Without the flag, it refreshes only the libraries that already exist. `appbuilder create --include-lib` writes it to `src/lib/kizenData.js`.
|
|
120
135
|
|
|
121
136
|
It prints one line per file (`created`, `updated` or `unchanged`) and a one-line summary. These files are managed by the CLI, so local edits to them, including edits to `kizenData.js`, are replaced when they're `updated`. Don't edit `kizenData.js`; put your own helpers in another file under `src/lib/`. It only writes these files and never touches the `.github/` Copilot files or block code. It fails with exit code 1 when there's no `kizen.json` in the current directory.
|
|
122
137
|
|
|
123
|
-
`block push` adds the warning `Claude files managed by appbuilder are out of date; run appbuilder setup-claude` when the plugin has the skill and
|
|
138
|
+
`block push` adds the warning `Claude files managed by appbuilder are out of date; run appbuilder setup-claude` when the plugin has the skill and the skill or its design guide is missing or differs from the bundled one, or an existing `kizenData.js` differs from the bundled one. The warning never fails the push.
|
|
124
139
|
|
|
125
140
|
### `appbuilder build`
|
|
126
141
|
|
|
@@ -128,6 +143,8 @@ Reads the plugin in the current directory, validates it against the same rules e
|
|
|
128
143
|
|
|
129
144
|
If validation finds any errors (for example an `api_name` containing hyphens, which the platform rejects) the build fails and prints each issue grouped by file. Fix the reported issues and re-run.
|
|
130
145
|
|
|
146
|
+
Automation step configs are validated the same way — parameter data types, secrets that must be declared in the manifest's `base_config.secrets`, fields removed from the publish contract, and `runtime` — against the list of automation data types bundled in `@kizenapps/packager`. The Plugin Wizard applies the same rules at publish, against the live list read from the target environment, so a build that passes locally is expected to publish clean.
|
|
147
|
+
|
|
131
148
|
### `appbuilder dev`
|
|
132
149
|
|
|
133
150
|
Starts the dev server and opens the viewer. Watches your plugin directory and rebuilds + hot-reloads the viewer on every change. Each rebuild runs the same validation as `build`.
|