@engenty/wizards-runtime 0.17.0 → 0.17.2
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/apps/runtime/dist/app.js +2 -0
- package/apps/runtime/dist/broker/account.js +20 -1
- package/apps/runtime/dist/broker/call.js +116 -20
- package/apps/runtime/dist/broker/host.js +8 -2
- package/apps/runtime/dist/broker/index.js +3 -2
- package/apps/runtime/dist/broker/log.js +149 -14
- package/apps/runtime/dist/broker/over.js +38 -0
- package/apps/runtime/dist/broker/rights.js +192 -0
- package/apps/runtime/dist/broker/rwx.js +295 -51
- package/apps/runtime/dist/broker/send.js +25 -12
- package/apps/runtime/dist/bundles/discover.js +133 -0
- package/apps/runtime/dist/bundles/fetch.js +119 -0
- package/apps/runtime/dist/bundles/index.js +621 -0
- package/apps/runtime/dist/bundles/read.js +607 -0
- package/apps/runtime/dist/connectors/external.js +540 -61
- package/apps/runtime/dist/connectors/person-sign-ins.js +1 -0
- package/apps/runtime/dist/connectors/reload.js +73 -0
- package/apps/runtime/dist/connectors/space-connections.js +73 -6
- package/apps/runtime/dist/db/migrations/tenant/0058_mcp_state_across_roles.sql +26 -0
- package/apps/runtime/dist/db/migrations/tenant/0059_space_connection_paused.sql +2 -0
- package/apps/runtime/dist/db/migrations/tenant/0060_space_bundle.sql +21 -0
- package/apps/runtime/dist/db/migrations/tenant/0061_space_connection_limits.sql +2 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0058_snapshot.json +6696 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0059_snapshot.json +6710 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0060_snapshot.json +6857 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0061_snapshot.json +6871 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +28 -0
- package/apps/runtime/dist/db/schema.js +81 -3
- package/apps/runtime/dist/docs/dev/broker.md +312 -32
- package/apps/runtime/dist/docs/dev/skills.md +8 -1
- package/apps/runtime/dist/docs/user-guide/capabilities.md +127 -5
- package/apps/runtime/dist/docs/user-guide/connectors.md +103 -5
- package/apps/runtime/dist/docs/user-guide/protocol.md +15 -4
- package/apps/runtime/dist/docs/user-guide/skills.md +11 -1
- package/apps/runtime/dist/docs/user-guide/test-and-share.md +1 -1
- package/apps/runtime/dist/elements/caller.js +2 -2
- package/apps/runtime/dist/engenty/connections-external/build-connector.js +23 -8
- package/apps/runtime/dist/engenty/connections-external/import-service.js +18 -9
- package/apps/runtime/dist/engenty/connections-external/importer/classify.js +12 -0
- package/apps/runtime/dist/engenty/connections-external/invoke/http-invoker.js +1 -0
- package/apps/runtime/dist/engenty/connections-external/net/guarded-fetch.js +6 -3
- package/apps/runtime/dist/engenty/connections-sdk/oauth2.js +2 -2
- package/apps/runtime/dist/engenty/shims/web-ingest.js +64 -0
- package/apps/runtime/dist/engine/resources.js +15 -6
- package/apps/runtime/dist/engine/runner.js +2 -1
- package/apps/runtime/dist/env.js +2 -0
- package/apps/runtime/dist/index.js +11 -2
- package/apps/runtime/dist/mcp/handler.js +2 -2
- package/apps/runtime/dist/mcp/seen.js +71 -51
- package/apps/runtime/dist/mcp/tools.js +5 -1
- package/apps/runtime/dist/prompts/mcp.md +1 -1
- package/apps/runtime/dist/prompts/tools.md +16 -0
- package/apps/runtime/dist/routes/broker.js +1 -1
- package/apps/runtime/dist/routes/bundles.js +91 -0
- package/apps/runtime/dist/routes/connections.js +14 -3
- package/apps/runtime/dist/routes/discover.js +1 -0
- package/apps/runtime/dist/routes/rules.js +53 -9
- package/apps/runtime/dist/routes/studio.js +23 -18
- package/apps/runtime/dist/services/cloud.js +2 -0
- package/apps/runtime/dist/services/discover.js +9 -3
- package/apps/runtime/dist/services/draft-events.js +79 -6
- package/apps/runtime/dist/services/files.js +2 -2
- package/apps/runtime/dist/services/skills.js +61 -5
- package/apps/runtime/dist/services/space-index.js +113 -11
- package/apps/runtime/dist/services/synced-spaces.js +5 -1
- package/apps/runtime/dist/services/wizards.js +48 -2
- package/apps/runtime/dist/sharing/jobs.js +6 -2
- package/apps/runtime/dist/sync/records.js +6 -1
- package/apps/runtime/dist/texts.js +36 -1
- package/apps/runtime/dist/tools/connections.js +8 -0
- package/apps/runtime/dist/tools/connector.js +13 -1
- package/apps/runtime/dist/tools/index.js +8 -3
- package/apps/runtime/dist/tools/skills.js +11 -1
- package/apps/web/dist/assets/{AboutDialog-B2Xmxyj4.js → AboutDialog-NzB-GEj_.js} +1 -1
- package/apps/web/dist/assets/{BlockEditor-D0HoUSih.js → BlockEditor-HyDf8fOb.js} +1 -1
- package/apps/web/dist/assets/Bundle-B0Bhs0By.js +1 -0
- package/apps/web/dist/assets/CapabilitiesPage-CQSaMsWK.js +2 -0
- package/apps/web/dist/assets/{ChangelogDialog-BIrJbAKi.js → ChangelogDialog-Ngxuqubx.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-DUVcXI5P.js → CodeEditor-C2LBf4pS.js} +1 -1
- package/apps/web/dist/assets/EditorPage-Dysvvadu.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-BIag8_Be.js → FlowPreview-CGfSaeYu.js} +1 -1
- package/apps/web/dist/assets/LangSwitch-B7UQlGh5.js +1 -0
- package/apps/web/dist/assets/Marketplace-BkIxd1PW.js +2 -0
- package/apps/web/dist/assets/{NewWizardChannels-DI3SQ4iS.js → NewWizardChannels-BWLaVFld.js} +1 -1
- package/apps/web/dist/assets/NewWizardPage-BpRd8tDF.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-ScEcQcR0.js +1 -0
- package/apps/web/dist/assets/PreviewPane-CaC1FYxZ.js +7 -0
- package/apps/web/dist/assets/ProtocolSection-CILRCYLD.js +1 -0
- package/apps/web/dist/assets/PublicRunner-DHX431Pr.js +1 -0
- package/apps/web/dist/assets/{ReadOnly-CWf5x74a.js → ReadOnly-DqS1UDQs.js} +1 -1
- package/apps/web/dist/assets/SettingsPage-Dp2-rHXu.js +2 -0
- package/apps/web/dist/assets/SetupPage-mzMLQcD5.js +1 -0
- package/apps/web/dist/assets/SharePage-CBDgqEH7.js +1 -0
- package/apps/web/dist/assets/SkillEditor-Cf6FqkkU.js +1 -0
- package/apps/web/dist/assets/{Skills-CN4QE7Kx.js → Skills-DqV5Oqqu.js} +5 -5
- package/apps/web/dist/assets/SpacePage-C3SXe2hs.js +2 -0
- package/apps/web/dist/assets/{UpdateCheck-QhBI3rlQ.js → UpdateCheck-B51jMIhp.js} +2 -2
- package/apps/web/dist/assets/brand-CG35IRgr.js +2 -0
- package/apps/web/dist/assets/changelog-DN6sziTl.js +1 -0
- package/apps/web/dist/assets/{code-editor-DkPo1C-L.js → code-editor-Bsyy7cuT.js} +2 -2
- package/apps/web/dist/assets/{host-D6H6Z9Jp.js → host-DaDyLfqT.js} +16 -16
- package/apps/web/dist/assets/i18n-CyrHWeGk.js +55 -0
- package/apps/web/dist/assets/index-Db9JthZr.css +1 -0
- package/apps/web/dist/assets/index-LjwVRoki.js +10 -0
- package/apps/web/dist/assets/minus-BpYkOkYw.js +1 -0
- package/apps/web/dist/assets/plug-De3mHDFV.js +1 -0
- package/apps/web/dist/assets/{read-aloud-CnFwDSGD.js → read-aloud-DCTouK7J.js} +1 -1
- package/apps/web/dist/assets/{runners-0sTPbWzr.js → runners-DtiBHvG7.js} +1 -1
- package/apps/web/dist/assets/session-DKGZUy6h.js +1 -0
- package/apps/web/dist/assets/{theme-CkNTe-_Z.js → theme-Bcj8TXQr.js} +2 -2
- package/apps/web/dist/assets/{ui-DAk_vjrL.js → ui-C6vSmisV.js} +1 -1
- package/apps/web/dist/assets/{useMutation-isHfB33W.js → useMutation-B8hJ5Z6N.js} +1 -1
- package/apps/web/dist/assets/{viewers-ijNZHJFG.js → viewers-b9FdC42r.js} +2 -2
- package/apps/web/dist/assets/{volume-2-BqlBtCIJ.js → volume-2-B1roRk6x.js} +1 -1
- package/apps/web/dist/index.html +15 -13
- package/apps/web/dist/mcp/flow.html +2 -2
- package/node_modules/@engenty/wizards-shared/dist/bundles.d.ts +219 -0
- package/node_modules/@engenty/wizards-shared/dist/bundles.js +19 -0
- package/node_modules/@engenty/wizards-shared/dist/connectors.d.ts +105 -4
- package/node_modules/@engenty/wizards-shared/dist/connectors.js +6 -0
- package/node_modules/@engenty/wizards-shared/dist/discover.d.ts +28 -1
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +8 -0
- package/node_modules/@engenty/wizards-shared/dist/run.js +16 -0
- package/node_modules/@engenty/wizards-shared/dist/rwx.d.ts +84 -1
- package/node_modules/@engenty/wizards-shared/dist/rwx.js +69 -1
- package/node_modules/@engenty/wizards-shared/dist/skills.d.ts +20 -3
- package/node_modules/@engenty/wizards-shared/dist/skills.js +5 -2
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/apps/web/dist/assets/CapabilitiesPage-C1th2cZE.js +0 -2
- package/apps/web/dist/assets/EditorPage-56sIqEfF.js +0 -3
- package/apps/web/dist/assets/LangSwitch-CJ00IgaO.js +0 -1
- package/apps/web/dist/assets/Marketplace-D7-ot9Dz.js +0 -2
- package/apps/web/dist/assets/NewWizardPage-CytheHxX.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-_91Pa8Ad.js +0 -1
- package/apps/web/dist/assets/PreviewPane-BDsYm-_K.js +0 -7
- package/apps/web/dist/assets/ProtocolSection-D_zaxHEL.js +0 -1
- package/apps/web/dist/assets/PublicRunner-CEgXSk3r.js +0 -1
- package/apps/web/dist/assets/SettingsPage-Dr8SDk-L.js +0 -2
- package/apps/web/dist/assets/SetupPage-B68n0l4I.js +0 -1
- package/apps/web/dist/assets/SharePage-DfznN7ar.js +0 -1
- package/apps/web/dist/assets/SkillEditor-BIcIczRc.js +0 -1
- package/apps/web/dist/assets/SpacePage-DiVTwhnJ.js +0 -2
- package/apps/web/dist/assets/changelog-a_CuplMX.js +0 -1
- package/apps/web/dist/assets/i18n-BaPKbQ1s.js +0 -55
- package/apps/web/dist/assets/index-CCUG6Vnh.css +0 -1
- package/apps/web/dist/assets/index-De0Wb42y.js +0 -10
- package/apps/web/dist/assets/session-BMiUrqHg.js +0 -2
|
@@ -407,6 +407,34 @@
|
|
|
407
407
|
"when": 1793874431733,
|
|
408
408
|
"tag": "0057_run_wake_at",
|
|
409
409
|
"breakpoints": true
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"idx": 58,
|
|
413
|
+
"version": "6",
|
|
414
|
+
"when": 1793920546957,
|
|
415
|
+
"tag": "0058_mcp_state_across_roles",
|
|
416
|
+
"breakpoints": true
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"idx": 59,
|
|
420
|
+
"version": "6",
|
|
421
|
+
"when": 1793921853823,
|
|
422
|
+
"tag": "0059_space_connection_paused",
|
|
423
|
+
"breakpoints": true
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"idx": 60,
|
|
427
|
+
"version": "6",
|
|
428
|
+
"when": 1793945012498,
|
|
429
|
+
"tag": "0060_space_bundle",
|
|
430
|
+
"breakpoints": true
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"idx": 61,
|
|
434
|
+
"version": "6",
|
|
435
|
+
"when": 1793946574442,
|
|
436
|
+
"tag": "0061_space_connection_limits",
|
|
437
|
+
"breakpoints": true
|
|
410
438
|
}
|
|
411
439
|
]
|
|
412
440
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BUNDLE_FORMATS, } from "@engenty/wizards-shared/bundles";
|
|
1
2
|
import { CONNECTION_AUDIENCES, CONNECTION_SIGN_INS, } from "@engenty/wizards-shared/connectors";
|
|
2
3
|
import { upgradeDefinition } from "@engenty/wizards-shared/definition";
|
|
3
4
|
import { RWX_FLAGS, RWX_RESOURCE_KINDS, RWX_SUBJECT_KINDS } from "@engenty/wizards-shared/rwx";
|
|
@@ -271,6 +272,34 @@ export const runEvent = sqliteTable("run_event", {
|
|
|
271
272
|
* A call the runner put to the run's device, open until the device answers or the runner stops
|
|
272
273
|
* waiting: the stream (any web process) carries it to the phone, and the answer comes back here.
|
|
273
274
|
*/
|
|
275
|
+
/** What an AI client did with the MCP server, by app id: the test on "Integrate" (mcp/seen.ts). */
|
|
276
|
+
export const mcpAppSeen = sqliteTable("mcp_app_seen", {
|
|
277
|
+
app: text("app").primaryKey(),
|
|
278
|
+
at: integer("at").notNull(),
|
|
279
|
+
toolAt: integer("tool_at"),
|
|
280
|
+
widgetAt: integer("widget_at"),
|
|
281
|
+
});
|
|
282
|
+
/** An app's tool calls the model policy allowed or refused, per person ("": no name known). */
|
|
283
|
+
export const mcpAppCheck = sqliteTable("mcp_app_check", {
|
|
284
|
+
app: text("app").notNull(),
|
|
285
|
+
person: text("person").notNull(),
|
|
286
|
+
kind: text("kind").notNull(),
|
|
287
|
+
allowed: integer("allowed").notNull().default(0),
|
|
288
|
+
refused: integer("refused").notNull().default(0),
|
|
289
|
+
at: integer("at").notNull(),
|
|
290
|
+
}, (t) => [primaryKey({ columns: [t.app, t.person] })]);
|
|
291
|
+
/** A change to a wizard's draft or files, for the studio's open tabs in any process (services/draft-events.ts). */
|
|
292
|
+
export const draftChange = sqliteTable("draft_change", {
|
|
293
|
+
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
294
|
+
wizardId: text("wizard_id")
|
|
295
|
+
.notNull()
|
|
296
|
+
.references(() => wizard.id, { onDelete: "cascade" }),
|
|
297
|
+
change: text("change", { mode: "json" }).$type().notNull(),
|
|
298
|
+
createdAt: createdAt(),
|
|
299
|
+
}, (t) => [
|
|
300
|
+
index("draft_change_wizard").on(t.wizardId, t.id),
|
|
301
|
+
index("draft_change_at").on(t.createdAt),
|
|
302
|
+
]);
|
|
274
303
|
export const deviceCall = sqliteTable("device_call", {
|
|
275
304
|
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
276
305
|
runId: text("run_id")
|
|
@@ -330,9 +359,40 @@ export const spaceConnector = sqliteTable("space_connector", {
|
|
|
330
359
|
.references(() => space.id, { onDelete: "cascade" }),
|
|
331
360
|
id: text("id").notNull(),
|
|
332
361
|
record: text("record", { mode: "json" }).$type().notNull(),
|
|
362
|
+
/** The `space_bundle` it came with, where a plugin brought it together with skills. */
|
|
363
|
+
bundleId: text("bundle_id"),
|
|
333
364
|
createdAt: createdAt(),
|
|
334
365
|
updatedAt: updatedAt(),
|
|
335
366
|
}, (t) => [primaryKey({ columns: [t.spaceId, t.id] })]);
|
|
367
|
+
/**
|
|
368
|
+
* What came together (docs/plans/capabilities-next.md, piece 4): a plugin for Claude Code or
|
|
369
|
+
* Cursor, taken into a space from a repository on GitHub or an uploaded zip. Its MCP servers over
|
|
370
|
+
* http are `space_connector` rows, its skills `space_skill` rows, and a connection set up on one
|
|
371
|
+
* of its connectors carries the id too. `space_connection.plugin` is something else: an engenty
|
|
372
|
+
* plugin that set a connection up.
|
|
373
|
+
*/
|
|
374
|
+
export const spaceBundle = sqliteTable("space_bundle", {
|
|
375
|
+
id: text("id").primaryKey(),
|
|
376
|
+
tenantId: text("tenant_id").notNull(),
|
|
377
|
+
spaceId: text("space_id")
|
|
378
|
+
.notNull()
|
|
379
|
+
.references(() => space.id, { onDelete: "cascade" }),
|
|
380
|
+
/** The plugin's name, as its manifest says it. */
|
|
381
|
+
name: text("name").notNull(),
|
|
382
|
+
version: text("version"),
|
|
383
|
+
description: text("description"),
|
|
384
|
+
/** Whose manifest was read. */
|
|
385
|
+
format: text("format", { enum: BUNDLE_FORMATS }).notNull(),
|
|
386
|
+
/** Where it came from: a repository, a branch or tag and a folder, or a file's name. */
|
|
387
|
+
origin: text("origin", { mode: "json" }).$type().notNull(),
|
|
388
|
+
/** Of what was taken: „Aktualisieren“ is offered where the origin's differs. */
|
|
389
|
+
hash: text("hash").notNull(),
|
|
390
|
+
/** What the plugin holds and the space does not take: commands, agents, hooks, other servers. */
|
|
391
|
+
leftOut: text("left_out", { mode: "json" }).$type().notNull().default([]),
|
|
392
|
+
addedBy: text("added_by"),
|
|
393
|
+
createdAt: createdAt(),
|
|
394
|
+
updatedAt: updatedAt(),
|
|
395
|
+
}, (t) => [index("space_bundle_space").on(t.spaceId)]);
|
|
336
396
|
/**
|
|
337
397
|
* What a space holds for all its wizards: logos, assets (images, graphics, videos) and
|
|
338
398
|
* documents. Its bytes are a blob, by `hash` (files/blobs.ts): the same bytes in Marke and in
|
|
@@ -864,9 +924,14 @@ export const spaceSkill = sqliteTable("space_skill", {
|
|
|
864
924
|
/** Its scripts run in the sandbox of a step that has one: switched on by a person, never by default. */
|
|
865
925
|
runScripts: integer("run_scripts", { mode: "boolean" }).notNull().default(false),
|
|
866
926
|
source: text("source", { enum: SKILL_SOURCES }).notNull().default("own"),
|
|
867
|
-
/**
|
|
927
|
+
/**
|
|
928
|
+
* skills.sh: `owner/repo/skill`, and the hash of what it had when added. A plugin's skill:
|
|
929
|
+
* its folder in the plugin, and the hash of what the plugin had.
|
|
930
|
+
*/
|
|
868
931
|
origin: text("origin"),
|
|
869
932
|
originHash: text("origin_hash"),
|
|
933
|
+
/** The `space_bundle` it came with: such a skill is read only and goes with its bundle. */
|
|
934
|
+
bundleId: text("bundle_id"),
|
|
870
935
|
createdAt: createdAt(),
|
|
871
936
|
updatedAt: updatedAt(),
|
|
872
937
|
}, (t) => [uniqueIndex("space_skill_name").on(t.spaceId, t.name)]);
|
|
@@ -1101,6 +1166,8 @@ export const spaceConnection = sqliteTable("space_connection", {
|
|
|
1101
1166
|
connectorId: text("connector_id").notNull(),
|
|
1102
1167
|
/** The plugin that set it up through `server.connections`, where one did. */
|
|
1103
1168
|
plugin: text("plugin"),
|
|
1169
|
+
/** The `space_bundle` its connector came with: removing the bundle takes the connection too. */
|
|
1170
|
+
bundleId: text("bundle_id"),
|
|
1104
1171
|
/** What people call it: „Vertrieb“, „Bestellungen“. */
|
|
1105
1172
|
name: text("name").notNull(),
|
|
1106
1173
|
/** A `space` sign-in: the account as the provider names it; null until signed in. */
|
|
@@ -1116,6 +1183,14 @@ export const spaceConnection = sqliteTable("space_connection", {
|
|
|
1116
1183
|
setUpAt: integer("set_up_at", { mode: "timestamp_ms" }).notNull().default(now),
|
|
1117
1184
|
updatedAt: updatedAt(),
|
|
1118
1185
|
lastUsedAt: integer("last_used_at", { mode: "timestamp_ms" }),
|
|
1186
|
+
/** Since when it pauses: the broker refuses every call through it until an admin resumes it. */
|
|
1187
|
+
pausedAt: integer("paused_at", { mode: "timestamp_ms" }),
|
|
1188
|
+
/** The admin who paused it. */
|
|
1189
|
+
pausedBy: text("paused_by"),
|
|
1190
|
+
/** How many calls one run makes through it at most, whoever calls (broker/call.ts). Null: no limit. */
|
|
1191
|
+
callsPerRun: integer("calls_per_run"),
|
|
1192
|
+
/** How many calls it takes per day (UTC), runs, chats and plugins together. Null: no limit. */
|
|
1193
|
+
callsPerDay: integer("calls_per_day"),
|
|
1119
1194
|
}, (t) => [index("space_connection_space").on(t.spaceId)]);
|
|
1120
1195
|
/** A person's own sign-in to a connection in which each person signs in. `secret` is sealed. */
|
|
1121
1196
|
export const spaceConnectionSignIn = sqliteTable("space_connection_sign_in", {
|
|
@@ -1131,7 +1206,10 @@ export const spaceConnectionSignIn = sqliteTable("space_connection_sign_in", {
|
|
|
1131
1206
|
}, (t) => [primaryKey({ columns: [t.connectionId, t.userId] })]);
|
|
1132
1207
|
/**
|
|
1133
1208
|
* Every call that reaches outside through the broker (`broker/call.ts`): who called, where, which
|
|
1134
|
-
* connection and action, what was decided and how it went.
|
|
1209
|
+
* connection and action, what was decided and how it went. A secret never goes in. Rows are only
|
|
1210
|
+
* added, with one exception: a call through a connection of the space that has a limit writes its
|
|
1211
|
+
* row when it starts, which is how it takes its place under the limit, and its end fills in
|
|
1212
|
+
* `result`, `duration_ms` and `result_size` (broker/log.ts, `takePlace`).
|
|
1135
1213
|
*/
|
|
1136
1214
|
export const brokerLog = sqliteTable("broker_log", {
|
|
1137
1215
|
id: text("id").primaryKey(),
|
|
@@ -1159,7 +1237,7 @@ export const brokerLog = sqliteTable("broker_log", {
|
|
|
1159
1237
|
/** Which rule decided (broker/call.ts `decide`): `grant`, `audience`, `rules.write`, `policy`, …; null where none did. */
|
|
1160
1238
|
rule: text("rule"),
|
|
1161
1239
|
reason: text("reason"),
|
|
1162
|
-
/** ok, declined, nobody, not_connected, or the error's class. */
|
|
1240
|
+
/** ok, declined, nobody, not_connected, or the error's class; null while a call that took a place under a limit runs. */
|
|
1163
1241
|
result: text("result"),
|
|
1164
1242
|
resultSize: integer("result_size"),
|
|
1165
1243
|
critical: integer("critical", { mode: "boolean" }).notNull().default(false),
|