@cosmicdrift/kumiko-bundled-features 0.415.0 → 0.416.0
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/dist/agent-tools/tool-catalog.js +20 -1
- package/dist/agent-tools/tool-dispatch.js +14 -5
- package/dist/channel-whatsapp/constants.d.ts +1 -0
- package/dist/channel-whatsapp/constants.js +1 -0
- package/dist/channel-whatsapp/graph-client.d.ts +2 -0
- package/dist/channel-whatsapp/graph-client.js +29 -2
- package/dist/handbook-knowledge/constants.d.ts +6 -0
- package/dist/handbook-knowledge/constants.js +6 -0
- package/dist/handbook-knowledge/feature.d.ts +9 -0
- package/dist/handbook-knowledge/feature.js +17 -0
- package/dist/handbook-knowledge/handbook-index.d.ts +26 -0
- package/dist/handbook-knowledge/handbook-index.js +51 -0
- package/dist/handbook-knowledge/handlers.d.ts +28 -0
- package/dist/handbook-knowledge/handlers.js +67 -0
- package/dist/handbook-knowledge/index.d.ts +3 -0
- package/dist/handbook-knowledge/index.js +2 -0
- package/dist/signature/entity.d.ts +552 -0
- package/dist/signature/entity.js +156 -0
- package/dist/signature/feature.d.ts +3 -0
- package/dist/signature/feature.js +91 -0
- package/dist/signature/files.d.ts +23 -0
- package/dist/signature/files.js +64 -0
- package/dist/signature/grant.d.ts +32 -0
- package/dist/signature/grant.js +44 -0
- package/dist/signature/handlers/anonymous.write.d.ts +14 -0
- package/dist/signature/handlers/anonymous.write.js +52 -0
- package/dist/signature/handlers/cancel.write.d.ts +6 -0
- package/dist/signature/handlers/cancel.write.js +30 -0
- package/dist/signature/handlers/issue-link.write.d.ts +9 -0
- package/dist/signature/handlers/issue-link.write.js +57 -0
- package/dist/signature/handlers/lifecycle.write.d.ts +16 -0
- package/dist/signature/handlers/lifecycle.write.js +70 -0
- package/dist/signature/handlers/link-internal.write.d.ts +23 -0
- package/dist/signature/handlers/link-internal.write.js +186 -0
- package/dist/signature/handlers/request.write.d.ts +19 -0
- package/dist/signature/handlers/request.write.js +67 -0
- package/dist/signature/handlers/revoke-link.write.d.ts +6 -0
- package/dist/signature/handlers/revoke-link.write.js +18 -0
- package/dist/signature/handlers/sign-in-person.write.d.ts +8 -0
- package/dist/signature/handlers/sign-in-person.write.js +52 -0
- package/dist/signature/i18n.d.ts +6 -0
- package/dist/signature/i18n.js +49 -0
- package/dist/signature/index.d.ts +5 -0
- package/dist/signature/index.js +2 -0
- package/dist/signature/lib.d.ts +54 -0
- package/dist/signature/lib.js +68 -0
- package/dist/signature/options.d.ts +31 -0
- package/dist/signature/options.js +5 -0
- package/dist/signature/payloads.d.ts +60 -0
- package/dist/signature/payloads.js +53 -0
- package/dist/signature/png.d.ts +11 -0
- package/dist/signature/png.js +159 -0
- package/dist/signature/screens.d.ts +3 -0
- package/dist/signature/screens.js +95 -0
- package/dist/signature/signature-page.d.ts +25 -0
- package/dist/signature/signature-page.js +62 -0
- package/dist/signature/signing.d.ts +19 -0
- package/dist/signature/signing.js +46 -0
- package/dist/signature/static-sign.d.ts +17 -0
- package/dist/signature/static-sign.js +44 -0
- package/dist/signature/sweep.d.ts +3 -0
- package/dist/signature/sweep.js +113 -0
- package/dist/signature/user-data.d.ts +3 -0
- package/dist/signature/user-data.js +135 -0
- package/dist/signature/web/constants.d.ts +69 -0
- package/dist/signature/web/constants.js +68 -0
- package/dist/signature/web/index.d.ts +3 -0
- package/dist/signature/web/index.js +2 -0
- package/dist/signature/web/pad.d.ts +20 -0
- package/dist/signature/web/pad.js +104 -0
- package/dist/signature/web/signature-pad.d.ts +19 -0
- package/dist/signature/web/signature-pad.js +36 -0
- package/dist/subscription-stripe/feature.d.ts +6 -0
- package/dist/subscription-stripe/feature.js +3 -0
- package/dist/subscription-stripe/plugin-methods.d.ts +3 -1
- package/dist/subscription-stripe/plugin-methods.js +2 -1
- package/package.json +43 -11
- package/src/agent-tools/changes.json +6 -0
- package/src/channel-whatsapp/changes.json +6 -0
- package/src/handbook-knowledge/changes.json +8 -0
- package/src/signature/changes.json +15 -0
- package/src/subscription-stripe/changes.json +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-bundled-features",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.416.0",
|
|
4
4
|
"description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -592,6 +592,22 @@
|
|
|
592
592
|
"types": "./dist/waitlist/static-submit.d.ts",
|
|
593
593
|
"default": "./dist/waitlist/static-submit.js"
|
|
594
594
|
},
|
|
595
|
+
"./signature": {
|
|
596
|
+
"types": "./dist/signature/index.d.ts",
|
|
597
|
+
"default": "./dist/signature/index.js"
|
|
598
|
+
},
|
|
599
|
+
"./signature/web": {
|
|
600
|
+
"types": "./dist/signature/web/index.d.ts",
|
|
601
|
+
"default": "./dist/signature/web/index.js"
|
|
602
|
+
},
|
|
603
|
+
"./signature/static-sign": {
|
|
604
|
+
"types": "./dist/signature/static-sign.d.ts",
|
|
605
|
+
"default": "./dist/signature/static-sign.js"
|
|
606
|
+
},
|
|
607
|
+
"./handbook-knowledge": {
|
|
608
|
+
"types": "./dist/handbook-knowledge/index.d.ts",
|
|
609
|
+
"default": "./dist/handbook-knowledge/index.js"
|
|
610
|
+
},
|
|
595
611
|
"./page-render": {
|
|
596
612
|
"types": "./dist/page-render/index.d.ts",
|
|
597
613
|
"default": "./dist/page-render/index.js"
|
|
@@ -626,9 +642,9 @@
|
|
|
626
642
|
}
|
|
627
643
|
},
|
|
628
644
|
"dependencies": {
|
|
629
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
630
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
631
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
645
|
+
"@cosmicdrift/kumiko-framework": "0.416.0",
|
|
646
|
+
"@cosmicdrift/kumiko-renderer": "0.416.0",
|
|
647
|
+
"@cosmicdrift/kumiko-types": "0.416.0",
|
|
632
648
|
"@mollie/api-client": "^4.6.0",
|
|
633
649
|
"@node-rs/argon2": "^2.2.2",
|
|
634
650
|
"@tiptap/core": "^3.32.2",
|
|
@@ -1236,6 +1252,22 @@
|
|
|
1236
1252
|
"types": "./dist/waitlist/static-submit.d.ts",
|
|
1237
1253
|
"default": "./dist/waitlist/static-submit.js"
|
|
1238
1254
|
},
|
|
1255
|
+
"./signature": {
|
|
1256
|
+
"types": "./dist/signature/index.d.ts",
|
|
1257
|
+
"default": "./dist/signature/index.js"
|
|
1258
|
+
},
|
|
1259
|
+
"./signature/web": {
|
|
1260
|
+
"types": "./dist/signature/web/index.d.ts",
|
|
1261
|
+
"default": "./dist/signature/web/index.js"
|
|
1262
|
+
},
|
|
1263
|
+
"./signature/static-sign": {
|
|
1264
|
+
"types": "./dist/signature/static-sign.d.ts",
|
|
1265
|
+
"default": "./dist/signature/static-sign.js"
|
|
1266
|
+
},
|
|
1267
|
+
"./handbook-knowledge": {
|
|
1268
|
+
"types": "./dist/handbook-knowledge/index.d.ts",
|
|
1269
|
+
"default": "./dist/handbook-knowledge/index.js"
|
|
1270
|
+
},
|
|
1239
1271
|
"./page-render": {
|
|
1240
1272
|
"types": "./dist/page-render/index.d.ts",
|
|
1241
1273
|
"default": "./dist/page-render/index.js"
|
|
@@ -1278,19 +1310,19 @@
|
|
|
1278
1310
|
"LICENSE"
|
|
1279
1311
|
],
|
|
1280
1312
|
"devDependencies": {
|
|
1281
|
-
"@cosmicdrift/kumiko-locale-de": "0.
|
|
1282
|
-
"@cosmicdrift/kumiko-locale-es": "0.
|
|
1283
|
-
"@cosmicdrift/kumiko-locale-fr": "0.
|
|
1284
|
-
"@cosmicdrift/kumiko-locale-it": "0.
|
|
1285
|
-
"@cosmicdrift/kumiko-renderer-mail-html": "0.
|
|
1286
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
1313
|
+
"@cosmicdrift/kumiko-locale-de": "0.416.0",
|
|
1314
|
+
"@cosmicdrift/kumiko-locale-es": "0.416.0",
|
|
1315
|
+
"@cosmicdrift/kumiko-locale-fr": "0.416.0",
|
|
1316
|
+
"@cosmicdrift/kumiko-locale-it": "0.416.0",
|
|
1317
|
+
"@cosmicdrift/kumiko-renderer-mail-html": "0.416.0",
|
|
1318
|
+
"@cosmicdrift/kumiko-testing": "0.416.0",
|
|
1287
1319
|
"@testing-library/user-event": "^14.6.8",
|
|
1288
1320
|
"@types/sanitize-html": "^2.16.2",
|
|
1289
1321
|
"jsqr": "^1.4.0",
|
|
1290
1322
|
"unpdf": "^1.9.1"
|
|
1291
1323
|
},
|
|
1292
1324
|
"peerDependencies": {
|
|
1293
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
1325
|
+
"@cosmicdrift/kumiko-testing": "0.416.0"
|
|
1294
1326
|
},
|
|
1295
1327
|
"peerDependenciesMeta": {
|
|
1296
1328
|
"@cosmicdrift/kumiko-testing": {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.416.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "ask_user options can carry a preview",
|
|
6
|
+
"detail": "Each option of the `ask_user` agent tool is a string or `{ label, preview? }`, where `preview` is the text the agent writes if the option is chosen. Plain string options keep working."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.414.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.416.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "WhatsApp sendTemplate takes quickReplyPayloads and headerImageLink",
|
|
6
|
+
"detail": "quickReplyPayloads (1 to 10 entries, each non-empty and at most 256 characters) adds one quick-reply button component per entry, so a tap comes back with that payload. headerImageLink (https only) adds an image header. Components are sent as header, body, buttons; without the new fields the request is unchanged."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.415.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.416.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Handbook pages for the AI assistant, with a process axis in the handbuch CLI",
|
|
6
|
+
"detail": "`createHandbookKnowledgeFeature({ pages, access })` mounts the query handlers `list-pages` (catalog of id, kind, title and questions) and `read-page` (one page in the caller's language, falling back to the default language, cut at 12000 characters with a notice; with `publicPath` it links the page as `<publicPath>/<id>`). Both appear in the agent tool catalog for the roles in `access`; no entity, no migration. The handbuch config takes an optional `processTextsDir` (with `{locale}`): its pages show as an own group in the HTML, and the new command `kumiko handbuch knowledge <config> --out <file>` writes the pages per locale as deterministic JSON without images. A process page may carry `start` (qualified name of a write handler); `list-pages` and `read-page` return it, and their descriptions tell the assistant to answer with the page's steps, link the page and offer to start the task as a plan through exactly that handler. Without `processTextsDir` the built handbook stays byte-identical."
|
|
7
|
+
}
|
|
8
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.416.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Signature requests with in-person and link signing",
|
|
6
|
+
"detail": "`createSignatureFeature({ retention, linkSecret, renderHtmlToPdf, deliverLink, signaturePageUrl })` adds the entities `signatureRequest` and `signatureSigner`, the handlers `request`, `sign-in-person`, `issue-link` (sends the link through `deliverLink(ctx, { signerId, url, ..., issuedBy })` inside its own transaction, so the app can dispatch its mail write and pick the issuer's mailbox; it never returns the token), `revoke-link`, `cancel` and the anonymous, rate-limited `open-by-link`, `sign-by-link`, `decline-by-link`. Links carry a row-bound grant in the URL fragment (14 days, 20 opens, single-use signing, one answer for every rejection). The last signature sets the request to `all-signed`; the `signature:job:sweep` cron renders the signature page through the injected print function, appends it with pdf-lib and completes the request; the events `completed`, `declined` and `expired` report the outcome. The subpaths `./signature/web` (`SignaturePad`) and `./signature/static-sign` (no React) ship the signature field.",
|
|
7
|
+
"migration": "The feature adds the tables `read_signature_requests` and `read_signature_signers`; apps that mount it run the schema pipeline migration."
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"version": "0.416.0",
|
|
11
|
+
"type": "improvement",
|
|
12
|
+
"title": "Access rule option for the signature feature",
|
|
13
|
+
"detail": "`createSignatureFeature({ ..., access })` replaces the default `{ roles: [\"TenantAdmin\", \"TenantMember\"] }` on the signed-in handlers, queries, screens and nav, like `createLedgerFeature({ access })`. Without it, nested `ctx.dispatch` calls fail for users that only hold an app-specific role."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.416.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Stripe checkout can accept promotion codes",
|
|
6
|
+
"detail": "The new option `allowPromotionCodes` sets `allow_promotion_codes` on every Checkout Session of the app, in subscription and payment mode. Coupons and promotion codes are created in the Stripe dashboard. Default false, so existing checkouts show no code field. The consumer-protection confirmation mail still shows the catalog price captured at consent, not the discounted amount."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.415.0",
|
|
4
10
|
"type": "fix",
|