@mccaskie-labs/workbench-config 0.1.33 → 0.1.35
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/CHANGELOG.md +12 -0
- package/capabilities/forms.json +1 -1
- package/dist/capabilities.gen.d.ts +2 -2
- package/dist/capabilities.gen.js +2 -2
- package/dist/skills.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mccaskie-labs/workbench-config
|
|
2
2
|
|
|
3
|
+
## 0.1.35
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Skills: a must-ask table question (such as a choice's options) is asked on its own with "These are right", "Change some" or "Add or remove", and no recommended answer, so the client never accepts made-up options inside another question's "Accept all".
|
|
8
|
+
|
|
9
|
+
## 0.1.34
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- forms manifest: the same-verdict rule now says to draw a form with renderForm and add both scripts under the page nonce, never hand-written markup or a show-when script.
|
|
14
|
+
|
|
3
15
|
## 0.1.33
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/capabilities/forms.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{
|
|
40
40
|
"id": "forms.same-verdict",
|
|
41
41
|
"kind": "must",
|
|
42
|
-
"text": "
|
|
42
|
+
"text": "Draw the form with renderForm (its config block included), then add FORMS_SCRIPT and workbench-ui's FORM_SCRIPT, in that order, under the page's nonce. Never hand-write a form's markup, a second set of rules or a show-when script, so the page and the endpoint reach the same verdict.",
|
|
43
43
|
"enforced_by": "review",
|
|
44
44
|
"probe": "forms.browser"
|
|
45
45
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const MANIFEST_VERSION: "
|
|
1
|
+
export declare const MANIFEST_VERSION: "d5366f2127fb";
|
|
2
2
|
export declare const capabilities: {
|
|
3
3
|
readonly ai: {
|
|
4
4
|
readonly $schema: "./schema.json";
|
|
@@ -1105,7 +1105,7 @@ export declare const capabilities: {
|
|
|
1105
1105
|
}, {
|
|
1106
1106
|
readonly id: "forms.same-verdict";
|
|
1107
1107
|
readonly kind: "must";
|
|
1108
|
-
readonly text: "
|
|
1108
|
+
readonly text: "Draw the form with renderForm (its config block included), then add FORMS_SCRIPT and workbench-ui's FORM_SCRIPT, in that order, under the page's nonce. Never hand-write a form's markup, a second set of rules or a show-when script, so the page and the endpoint reach the same verdict.";
|
|
1109
1109
|
readonly enforced_by: "review";
|
|
1110
1110
|
readonly probe: "forms.browser";
|
|
1111
1111
|
}, {
|
package/dist/capabilities.gen.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by `npm run capabilities:build` from capabilities/*.json. Do not edit.
|
|
2
2
|
// check:capabilities fails in Checks when this file is stale.
|
|
3
|
-
export const MANIFEST_VERSION = "
|
|
3
|
+
export const MANIFEST_VERSION = "d5366f2127fb";
|
|
4
4
|
export const capabilities = {
|
|
5
5
|
"ai": {
|
|
6
6
|
"$schema": "./schema.json",
|
|
@@ -1518,7 +1518,7 @@ export const capabilities = {
|
|
|
1518
1518
|
{
|
|
1519
1519
|
"id": "forms.same-verdict",
|
|
1520
1520
|
"kind": "must",
|
|
1521
|
-
"text": "
|
|
1521
|
+
"text": "Draw the form with renderForm (its config block included), then add FORMS_SCRIPT and workbench-ui's FORM_SCRIPT, in that order, under the page's nonce. Never hand-write a form's markup, a second set of rules or a show-when script, so the page and the endpoint reach the same verdict.",
|
|
1522
1522
|
"enforced_by": "review",
|
|
1523
1523
|
"probe": "forms.browser"
|
|
1524
1524
|
},
|
package/dist/skills.js
CHANGED
|
@@ -26,7 +26,11 @@ function questionBlock(q, n) {
|
|
|
26
26
|
if (q.must_ask)
|
|
27
27
|
lines.push("**Must ask:** there is no safe default, so always ask it, even when the client accepts every recommendation.");
|
|
28
28
|
lines.push("");
|
|
29
|
-
if (q.style === "table") {
|
|
29
|
+
if (q.style === "table" && q.must_ask) {
|
|
30
|
+
// No safe default means no recommended answer: the client confirms what only they know, on its own.
|
|
31
|
+
lines.push("Ask it on its own, never folded into another question's \"Accept all\": propose a value for each row as a starting point, show the table, then ask \"Are these right?\" with the answers \"These are right\", \"Change some\" and \"Add or remove\". None of them is recommended.");
|
|
32
|
+
}
|
|
33
|
+
else if (q.style === "table") {
|
|
30
34
|
lines.push("Ask as a table: propose a value for each row, show the table, then ask one question with the answers \"Accept all (Recommended)\", \"Change some\" and \"Add or remove\".");
|
|
31
35
|
}
|
|
32
36
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mccaskie-labs/workbench-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "Workbench app configuration: WORKBENCH_ENV, typed variables that fail by name, secrets that are never printed, and the capabilities manifest.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|