@brickkit/core 0.13.2 → 0.13.3
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/chunks/server.d.ts +5 -1
- package/dist/chunks/server.js +1028 -1013
- package/dist/chunks/server.js.map +1 -1
- package/dist/chunks/types.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +1 -1
package/dist/chunks/types.d.ts
CHANGED
|
@@ -206,7 +206,8 @@ interface EventsWorld {
|
|
|
206
206
|
/**
|
|
207
207
|
* Where the workflows of an app are built from. The CLI (`brick dev`,
|
|
208
208
|
* `brick start`) writes the bundle to `<root>/.well-known/workflow/v1` before
|
|
209
|
-
* events start, and events read it from there.
|
|
209
|
+
* events start, and events read it from there. A server compiled by
|
|
210
|
+
* `brick build` reads the bundle shipped beside it instead.
|
|
210
211
|
*/
|
|
211
212
|
interface WorkflowsOptions {
|
|
212
213
|
/** The project root: where the Workflow SDK is installed. Default: the working directory. */
|
|
@@ -1739,12 +1740,14 @@ declare class EventsHub {
|
|
|
1739
1740
|
* Where the workflow bundle is read from, the project it is built from, and
|
|
1740
1741
|
* the world the workflows run on. Only set when a listener runs a workflow.
|
|
1741
1742
|
* The CLI builds the bundle there before events start, and shows the world's
|
|
1742
|
-
* runs in the dev dashboard.
|
|
1743
|
+
* runs in the dev dashboard. `shipped`: a compiled server reads the bundle
|
|
1744
|
+
* `brick build` shipped beside it, so there is nothing to build.
|
|
1743
1745
|
*/
|
|
1744
1746
|
get workflows(): {
|
|
1745
1747
|
root: string;
|
|
1746
1748
|
dir: string;
|
|
1747
1749
|
world: EventsWorld;
|
|
1750
|
+
shipped: boolean;
|
|
1748
1751
|
} | undefined;
|
|
1749
1752
|
/**
|
|
1750
1753
|
* Resume the workflow that waits on a webhook. The server mounts this on the
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as validateName, A as
|
|
1
|
+
import { $ as validateName, A as resolveWorkflowPaths, B as createActionHandler, C as setActionAccess, D as compileBrickApplication, E as bindCompiledApplication, F as crudEventSource, G as useDeps, H as definitionSite, I as eventRefs, J as getPluginEndpoints, K as defineResourcePlugin, L as isCrudEvent, M as checkEvent, N as checkPayload, O as loadCompiledBrickApp, P as crudEventName, Q as segmentClaimant, R as isBrickApp, S as getActionAccess, T as resetGlobalRegistry, U as INTERNALS, V as claimName, W as port, X as installPlugin, Y as hasPlugin, Z as isInstallingPlugin, _ as listSecrets, a as Dispatcher, at as baseContext, b as resolveSecrets, c as isOutboxTable, ct as t, d as registerReferenceRoute, dt as withCallSpan, et as portOf, f as scalarDocsHTML, ft as PLUGIN_COMMIT, g as envSource, h as defineSecret, i as stopAllEvents, it as deny, j as defineListener, k as WORKFLOW_BUNDLE, l as outboxTable, lt as validateWithSchema, m as SecretRef, n as defineServiceSocket, nt as defineAction, o as onTransactionCommit, ot as pickContextEnvelope, p as requestLoggingPlugin, pt as PLUGIN_KIND, q as defineServicePlugin, r as recordingServices, rt as errorsOf, s as runInTransaction, st as Type, t as brick, tt as buildErrorHelpers, u as referencePlugin, ut as traceRoute, v as overrideSecret, w as getGlobalRegistry, x as generateOpenApiSpec, y as resetSecrets, z as requireBrickApp } from "./chunks/server.js";
|
|
2
2
|
import { G as DuplicateNameError, H as GLOBAL_SYMBOL, K as ValidationError, S as actionMeta, U as SPAN, V as ATTR, W as ActionExecutionError, a as isBrickTransportError, d as getActionRoute, f as getPluginActionRoute, i as isBrickServerError, j as compareSocketSeq, l as actionOwners, n as BrickTransportError, r as createBrickClient, s as serializeSocketSchema, t as BrickServerError, x as kebabCase } from "./chunks/client.js";
|
|
3
3
|
import { defineError, stepErrors, stepFailure } from "./workflow.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
package/dist/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as createBrickClient } from "./chunks/client.js";
|
|
2
|
-
import {
|
|
2
|
+
import { T as resetGlobalRegistry, t as brick } from "./chunks/server.js";
|
|
3
3
|
// src/testing.ts
|
|
4
4
|
/**
|
|
5
5
|
* Build an app for a test, with a typed client and a cleanup. Pass a function
|