@synopackageland/cli 0.53.5 → 0.53.7

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.
@@ -272,6 +272,9 @@ Each real method has one English `summary`, `paramsSchema`, `resultSchema`,
272
272
  | `read` | Read-only ctl and AI tool |
273
273
  | `preview` | Non-mutating preview/dry-run ctl and AI tool |
274
274
  | `draft` | Write/destructive tool produces preview plus plan; a human confirms separately |
275
+ | `propose` | Write that stores a proposal when the turn allows changes; a human reviews and applies it |
276
+ | `local` | Reversible App-local write; runs only with the turn's Allow changes, otherwise a card the person presses |
277
+ | `one-click` | Never runs on a model call; returns a card the person presses |
275
278
  | `human-only` | ctl with normal confirmation; absent from AI tools |
276
279
  | `hidden` | Runtime spec only; absent from ctl and AI tools |
277
280
 
@@ -279,7 +282,22 @@ A draft names its non-mutating `preview` method; both handlers must accept the
279
282
  tool input. Class never replaces backend authentication, App admission, upstream
280
283
  identity or resource ownership. `read`/`preview` with a mutating effect fail.
281
284
  Mark long operations `longRunning: true` and use a `job` flow; synchronous long
282
- operations fail. The AI layer runs whole fixed flows, including polling and
285
+ operations fail.
286
+
287
+ Optional AI semantics, all omitted by default: `consent` (`{category}` or
288
+ `{param: "/json/pointer"}`), `targets` (`{max: 0..1000, traceable}`), `risk`
289
+ (`low|medium|high`), `tier` (App token), `undo` (`{method, from, param}` receipt
290
+ contract), `audit` (`change|sensitive-read|read|none`; writes stay `change`),
291
+ `mcp` (`exposed|hidden|human-only`, narrowing only), `dynamicProvider: true` for an
292
+ operation that runtime tools bind to, and `labels` (App strings, never for
293
+ authorization). Generated `tools.json` adds a field only when it is declared.
294
+ The SDK's AI operation semantics guide has the full rules and the runtime
295
+ namespace API. Apps using them need an SDK and CLI release that lists these
296
+ fields in its changelog; older ctl clients refuse such descriptions.
297
+
298
+ Write each AI tool `summary` as one English sentence: what it does and when to
299
+ use it. `ctl generate` and `check` warn on summaries of four words or fewer;
300
+ set `ctl: {descriptions: error}` to refuse them. The AI layer runs whole fixed flows, including polling and
283
301
  pagination, rather than making the model drive individual steps.
284
302
 
285
303
  Register the real handler, then run `synopkgland ctl generate`,
@@ -316,10 +334,12 @@ Only read RPCs can refresh and replay once. Writes, AI, streams, unknown kinds
316
334
  and batches never replay. Existing `ctx.call` remains opt-in. Commit the generated
317
335
  file and use `ctl generate --check` to verify it with the other artifacts.
318
336
 
319
- For installed Apps, use `ctl tools <app> --host <profile>` and
337
+ For installed Apps, use `ctl tools <app> --host <profile>` (add `--mcp` for the
338
+ list an external MCP client may see) and
320
339
  `ctl tool <app> <method> --input <file|-> --host <profile>`. These require the
321
340
  normal approved package/descriptor pin. A draft tool returns a non-mutating
322
- preview and plan; this interface has no write-confirmation parameter. Obtain
341
+ preview and plan; propose, local and one-click tools return a dry-run plan only;
342
+ this interface has no write-confirmation parameter. Obtain
323
343
  human authorization, inspect the same normal ctl command with `--dry-run`, then
324
344
  execute with `--yes` and read back the result. Never forward a model-supplied
325
345
  confirmation as human authorization.
@@ -5,17 +5,24 @@ Files under ui/ (including mobile.json and entry.html) are public static files r
5
5
  `build` minifies packaged JS/CSS and removes `.map` files and their JS/CSS comments.
6
6
  `check` scans the current UI output; `check path/to/package.spk` scans the final
7
7
  archived public payload, including generated scripts. Build also scans that payload.
8
- Keep LICENSES files in the output. For a verified false positive, declare an exact
9
- file relative to `ui/` with a reason (omit the module snapshot hash):
8
+ Keep LICENSES files in the output. For a verified false positive, declare the
9
+ file relative to `ui/` (omit the module snapshot hash) with a reason and the
10
+ exact flagged text. A bundler-hashed chunk uses one `[hash]`, which must match
11
+ exactly one file and requires `match`:
10
12
 
11
13
  ```yaml
12
14
  ui_secret_ignores:
13
- - file: app/help.json
14
- reason: Documentation example containing a deliberately fake credential
15
+ - file: "app/chunks/Dialog-[hash].js"
16
+ reason: "Placeholder text in a third-party form, reviewed"
17
+ match: 'secret:"example-value"'
15
18
  ```
16
19
 
17
- Exceptions are recorded in the SPK and reported during inspection. They never
18
- allow source maps and do not bypass repository secret checks.
20
+ Only listed texts are exempt: a new hit in the same file still fails, and a
21
+ listed text that disappears fails as stale. `build` and `check` print a
22
+ ready-to-paste entry for each failing file; paste it only after review.
23
+ Exceptions are recorded in the SPK as resolved files and reported during
24
+ inspection. They never allow source maps and do not bypass repository secret
25
+ checks. See docs/release-checks.md.
19
26
 
20
27
  ## Choose Vue or JSON
21
28