@plitzi/sdk-actions 0.0.0-stage → 0.39.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.
Files changed (168) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +54 -2
  3. package/dist/chunks/credentials-DwxZeAvH.mjs +27 -0
  4. package/dist/chunks/errors-bCBfIe7c.mjs +54 -0
  5. package/dist/chunks/grants-BsD-WlLE.mjs +168 -0
  6. package/dist/chunks/load-DBWRZn7G.mjs +48 -0
  7. package/dist/chunks/module-WdDzbjHy.mjs +7032 -0
  8. package/dist/chunks/queueDocument-xYz-KZ5V.mjs +21 -0
  9. package/dist/chunks/queueRules-BCCVgeUE.mjs +487 -0
  10. package/dist/chunks/remote-DopPgCMK.mjs +404 -0
  11. package/dist/chunks/storeClock-Btm7EaVm.mjs +31 -0
  12. package/dist/chunks/taskCatalog-S1IozUTD.mjs +201 -0
  13. package/dist/connectors/connectors.d.ts +7 -0
  14. package/dist/connectors/engine.d.ts +47 -0
  15. package/dist/connectors/getByPath.d.ts +8 -0
  16. package/dist/connectors/projection.d.ts +18 -0
  17. package/dist/connectors/resolver.d.ts +27 -0
  18. package/dist/connectors/types.d.ts +19 -0
  19. package/dist/engine/configSeam.d.ts +10 -0
  20. package/dist/engine/connectorWrite.d.ts +12 -0
  21. package/dist/engine/fileStore.d.ts +60 -0
  22. package/dist/engine/fleet.d.ts +20 -0
  23. package/dist/engine/jobs/calls.d.ts +49 -0
  24. package/dist/engine/jobs/claimSpaces.d.ts +10 -0
  25. package/dist/engine/jobs/codeMarks.d.ts +10 -0
  26. package/dist/engine/jobs/endings.d.ts +42 -0
  27. package/dist/engine/jobs/failureStreak.d.ts +15 -0
  28. package/dist/engine/jobs/fileQueue.d.ts +34 -0
  29. package/dist/engine/jobs/flow.d.ts +11 -0
  30. package/dist/engine/jobs/jobs.d.ts +36 -0
  31. package/dist/engine/jobs/later.d.ts +27 -0
  32. package/dist/engine/jobs/memoryNeeds.d.ts +24 -0
  33. package/dist/engine/jobs/memoryQueue.d.ts +33 -0
  34. package/dist/engine/jobs/memoryWatch.d.ts +21 -0
  35. package/dist/engine/jobs/notNow.d.ts +39 -0
  36. package/dist/engine/jobs/queueDocument.d.ts +15 -0
  37. package/dist/engine/jobs/queueRules.d.ts +64 -0
  38. package/dist/engine/jobs/scheduler.d.ts +70 -0
  39. package/dist/engine/jobs/schedules.d.ts +24 -0
  40. package/dist/engine/jobs/storeClock.d.ts +16 -0
  41. package/dist/engine/jobs/wake.d.ts +6 -0
  42. package/dist/engine/jobs/worker.d.ts +99 -0
  43. package/dist/engine/module.d.ts +96 -0
  44. package/dist/engine/moduleFor.d.ts +3 -0
  45. package/dist/engine/runtime/check.d.ts +24 -0
  46. package/dist/engine/runtime/credentials.d.ts +8 -0
  47. package/dist/engine/runtime/deadline.d.ts +19 -0
  48. package/dist/engine/runtime/email.d.ts +38 -0
  49. package/dist/engine/runtime/errors.d.ts +28 -0
  50. package/dist/engine/runtime/fileKv.d.ts +35 -0
  51. package/dist/engine/runtime/flags.d.ts +16 -0
  52. package/dist/engine/runtime/guards.d.ts +190 -0
  53. package/dist/engine/runtime/kvList.d.ts +28 -0
  54. package/dist/engine/runtime/kvStore.d.ts +36 -0
  55. package/dist/engine/runtime/limits.d.ts +12 -0
  56. package/dist/engine/runtime/memoryKv.d.ts +28 -0
  57. package/dist/engine/runtime/namespaceKv.d.ts +9 -0
  58. package/dist/engine/runtime/precheck.d.ts +28 -0
  59. package/dist/engine/runtime/rateLimit.d.ts +9 -0
  60. package/dist/engine/runtime/redisKv.d.ts +27 -0
  61. package/dist/engine/runtime/renderFailure.d.ts +24 -0
  62. package/dist/engine/runtime/renderResolver.d.ts +16 -0
  63. package/dist/engine/runtime/renderShare.d.ts +12 -0
  64. package/dist/engine/runtime/report.d.ts +15 -0
  65. package/dist/engine/runtime/runAction.d.ts +26 -0
  66. package/dist/engine/runtime/runLogger.d.ts +37 -0
  67. package/dist/engine/runtime/runStats.d.ts +8 -0
  68. package/dist/engine/runtime/scope.d.ts +40 -0
  69. package/dist/engine/runtime/signing.d.ts +27 -0
  70. package/dist/engine/runtime/taskContext.d.ts +54 -0
  71. package/dist/engine/runtime/triggers.d.ts +12 -0
  72. package/dist/engine/taskCatalog.d.ts +28 -0
  73. package/dist/engine/tasks/auth.d.ts +2 -0
  74. package/dist/engine/tasks/builtins.d.ts +10 -0
  75. package/dist/engine/tasks/connector.d.ts +2 -0
  76. package/dist/engine/tasks/db.d.ts +2 -0
  77. package/dist/engine/tasks/email.d.ts +2 -0
  78. package/dist/engine/tasks/flow.d.ts +3 -0
  79. package/dist/engine/tasks/helpers.d.ts +16 -0
  80. package/dist/engine/tasks/http.d.ts +2 -0
  81. package/dist/engine/tasks/kv.d.ts +2 -0
  82. package/dist/engine/tasks/list.d.ts +2 -0
  83. package/dist/engine/tasks/names.d.ts +8 -0
  84. package/dist/engine/tasks/realtime.d.ts +3 -0
  85. package/dist/engine/tasks/registry.d.ts +19 -0
  86. package/dist/engine/tasks/transform.d.ts +2 -0
  87. package/dist/engine/transport/callHandler.d.ts +34 -0
  88. package/dist/engine/transport/cancelHandler.d.ts +23 -0
  89. package/dist/engine/transport/catalogHandler.d.ts +22 -0
  90. package/dist/engine/transport/stream.d.ts +22 -0
  91. package/dist/engine/transport/verifySignature.d.ts +16 -0
  92. package/dist/engine/transport/webhookHandler.d.ts +26 -0
  93. package/dist/engine/types.d.ts +442 -0
  94. package/dist/functions/build.d.ts +27 -0
  95. package/dist/functions/capabilities.d.ts +11 -0
  96. package/dist/functions/config.d.ts +111 -0
  97. package/dist/functions/context.d.ts +15 -0
  98. package/dist/functions/index.d.ts +17 -0
  99. package/dist/functions/index.mjs +461 -0
  100. package/dist/functions/jobControl.d.ts +22 -0
  101. package/dist/functions/jobs.d.ts +104 -0
  102. package/dist/functions/load.d.ts +22 -0
  103. package/dist/functions/local.d.ts +36 -0
  104. package/dist/functions/manifest.d.ts +32 -0
  105. package/dist/functions/native.d.ts +13 -0
  106. package/dist/functions/oauth.d.ts +33 -0
  107. package/dist/functions/routes.d.ts +50 -0
  108. package/dist/functions/runner/remote.d.ts +26 -0
  109. package/dist/functions/scope.d.ts +28 -0
  110. package/dist/functions/space.d.ts +41 -0
  111. package/dist/functions/tryEntry.d.ts +9 -0
  112. package/dist/index.d.ts +47 -0
  113. package/dist/index.mjs +545 -0
  114. package/dist/mongo/claimable.d.ts +5 -0
  115. package/dist/mongo/index.d.ts +4 -0
  116. package/dist/mongo/index.mjs +779 -0
  117. package/dist/mongo/jobQueue.d.ts +38 -0
  118. package/dist/mongo/kv.d.ts +15 -0
  119. package/dist/mysql/index.d.ts +5 -0
  120. package/dist/mysql/index.mjs +808 -0
  121. package/dist/mysql/jobQueue.d.ts +40 -0
  122. package/dist/mysql/kv.d.ts +18 -0
  123. package/dist/mysql/rows.d.ts +64 -0
  124. package/dist/mysql/schema.d.ts +28 -0
  125. package/dist/mysql/summary.d.ts +7 -0
  126. package/dist/realtime/declarations.d.ts +11 -0
  127. package/dist/realtime/failure.d.ts +6 -0
  128. package/dist/realtime/grants.d.ts +22 -0
  129. package/dist/realtime/handlers.d.ts +86 -0
  130. package/dist/realtime/hub.d.ts +71 -0
  131. package/dist/realtime/index.d.ts +105 -0
  132. package/dist/realtime/index.mjs +824 -0
  133. package/dist/realtime/jobs.d.ts +18 -0
  134. package/dist/realtime/message.d.ts +3 -0
  135. package/dist/realtime/presence.d.ts +33 -0
  136. package/dist/realtime/retained.d.ts +21 -0
  137. package/dist/realtime/socket.d.ts +30 -0
  138. package/dist/render/index.d.ts +10 -0
  139. package/dist/render/index.mjs +1 -0
  140. package/dist/render/protocol.d.ts +47 -0
  141. package/dist/render/remote.d.ts +16 -0
  142. package/dist/runtimes/bundle.d.ts +29 -0
  143. package/dist/runtimes/index.d.ts +3 -0
  144. package/dist/runtimes/index.mjs +229 -0
  145. package/dist/runtimes/stages.d.ts +52 -0
  146. package/dist/sqlite/index.d.ts +4 -0
  147. package/dist/sqlite/index.mjs +160 -0
  148. package/dist/sqlite/jobQueue.d.ts +35 -0
  149. package/dist/sqlite/kv.d.ts +34 -0
  150. package/dist/sqlite/open.d.ts +3 -0
  151. package/dist/types/config.d.ts +293 -0
  152. package/dist/types/index.d.ts +2 -0
  153. package/dist/types/index.mjs +1 -0
  154. package/dist/types/jobs.d.ts +317 -0
  155. package/dist/worker/elsewhere.d.ts +16 -0
  156. package/dist/worker/index.d.ts +5 -0
  157. package/dist/worker/index.mjs +1703 -0
  158. package/dist/worker/origin.d.ts +12 -0
  159. package/dist/worker/pageEngine.d.ts +11 -0
  160. package/dist/worker/stages/action.d.ts +24 -0
  161. package/dist/worker/stages/cors.d.ts +9 -0
  162. package/dist/worker/stages/forward.d.ts +12 -0
  163. package/dist/worker/stages/functionRoutes.d.ts +10 -0
  164. package/dist/worker/stages/queuedCalls.d.ts +15 -0
  165. package/dist/worker/stages/realtime.d.ts +9 -0
  166. package/dist/worker/stages/render.d.ts +9 -0
  167. package/dist/worker/worker.d.ts +39 -0
  168. package/package.json +76 -3
@@ -0,0 +1,13 @@
1
+ import { FunctionScope } from './scope';
2
+ import { ActionTask } from '../engine/types';
3
+ import { FunctionsDefinition } from '@plitzi/sdk-shared/functions';
4
+ export type NativeTasksOptions = {
5
+ scope?: FunctionScope;
6
+ /**
7
+ * Measure each invocation against what a sandbox holds one to — its defaults, with the CPU and time the functions and
8
+ * the task ask for — and say the first one past each limit: what a project's own server does, whose code is the code
9
+ * a hosted space runs in one.
10
+ */
11
+ measure?: boolean;
12
+ };
13
+ export declare const nativeTasks: (definitions?: readonly FunctionsDefinition[], { scope, measure }?: NativeTasksOptions) => ActionTask<Record<string, unknown>>[];
@@ -0,0 +1,33 @@
1
+ import { ActionTaskContext } from '../engine/types';
2
+ import { FunctionOAuthConnection } from '@plitzi/sdk-shared';
3
+ import { FunctionOAuth } from '@plitzi/sdk-shared/functions';
4
+ /**
5
+ * OAuth 2.0 for a space's code (`ctx.oauth`): any provider, declared as data — none is known here by name.
6
+ *
7
+ * The authorization code flow with PKCE: `connect` makes the consent URL and remembers, sealed in the space's `kv` for
8
+ * ten minutes, who asked and where they go back; the provider sends the visitor to `/fn/oauth/callback`, which
9
+ * exchanges the code with the app's id and secret (a credential of the space's, resolved here) and keeps the tokens
10
+ * sealed under the connection and its owner; `fetch` writes the access token into a request, renewing it first when it
11
+ * is about to lapse and once more on a 401. Sealed with the space's own key, which no signature of `ctx.sign` reaches:
12
+ * the code reads only ciphertext, even with `ctx.kv`. The one way out is `token`, for a connection that declares
13
+ * `exposeToken`: the access token, for an SDK in the page — the refresh token never leaves.
14
+ */
15
+ /** Where the provider sends the visitor back, under `/fn` — the one address to register with every provider. */
16
+ export declare const OAUTH_CALLBACK_PATH = "/oauth/callback";
17
+ /** The whole address providers send a visitor back to, on an origin: what is registered with each. */
18
+ export declare const oauthCallbackUrlOn: (origin: string) => string;
19
+ /** What the parts of a run `ctx.oauth` uses are: its fetch, its kv, its credentials, its sealing, who and where. */
20
+ export type OAuthRun = Pick<ActionTaskContext, 'fetch' | 'outbound' | 'kv' | 'credential' | 'seal' | 'open' | 'origin' | 'oauthCallbackOrigin' | 'user' | 'signal'>;
21
+ /**
22
+ * `ctx.oauth` for one run, over the connections its code declared. `hosts` are where `fetch` may write the token — the
23
+ * same `allow.hosts` every request of the code is held to.
24
+ */
25
+ export declare const oauthFor: (run: OAuthRun, connections: Readonly<Record<string, FunctionOAuthConnection>>, allowed: (url: URL) => void) => FunctionOAuth;
26
+ /** `ctx.oauth` where there is none to give — a plugin's code: the space's connections are the space's. */
27
+ export declare const noOAuth: (why: string) => FunctionOAuth;
28
+ /**
29
+ * The visitor back from the provider (`/fn/oauth/callback`): the consent it remembered taken (once), the code
30
+ * exchanged, the tokens kept — and the visitor sent where the code said, told how it went. A visit with no consent
31
+ * under way is answered, not redirected: there is nowhere of the space's to send it.
32
+ */
33
+ export declare const oauthCallback: (run: OAuthRun, query: URLSearchParams) => Promise<Response>;
@@ -0,0 +1,50 @@
1
+ import { FunctionsConfig } from './config';
2
+ import { TaskContextSource } from '../engine/runtime/runAction';
3
+ import { Environment, SpaceRevision, SSRUser } from '@plitzi/sdk-shared';
4
+ import { FunctionsDefinition, SpaceFunctions } from '@plitzi/sdk-shared/functions';
5
+ /** Who is asking a route, as the transport knows them. */
6
+ export type RouteVisit = {
7
+ spaceId: number;
8
+ environment: Environment;
9
+ at?: SpaceRevision;
10
+ user?: SSRUser;
11
+ /** `user:<id>` or `ip:<address>`, as for an action call. */
12
+ callerId: string;
13
+ /** The public origin the request reached (`https://shop.example.com`), as the server resolved it. */
14
+ origin?: string;
15
+ signal: AbortSignal;
16
+ };
17
+ /**
18
+ * What a route answered, and whether it is written as it comes: a runtime's route and the deployment's own code may
19
+ * stream, and are passed on as they are written; a sandbox's is whole, and sent as one.
20
+ */
21
+ export type RouteAnswer = {
22
+ response: Response;
23
+ streamed: boolean;
24
+ };
25
+ export type RouteHandler = {
26
+ key: string;
27
+ handle: (request: Request) => Promise<RouteAnswer>;
28
+ };
29
+ /** The first of `keys` that answers the request, with its params — declared order, as a space reads them. */
30
+ export declare const matchRoute: (keys: readonly string[], method: string, path: string) => {
31
+ key: string;
32
+ params: Record<string, string>;
33
+ } | undefined;
34
+ export type RouteSources = {
35
+ config: FunctionsConfig;
36
+ /** The plugins' server halves this server ships, as they are now — a development server replaces them as they change. */
37
+ plugins?: () => ReadonlyMap<string, FunctionsDefinition>;
38
+ getFunctions?: (spaceId: number, at?: SpaceRevision) => Promise<SpaceFunctions | undefined>;
39
+ getPluginFunctions?: (spaceId: number, at?: SpaceRevision) => Promise<Record<string, SpaceFunctions> | undefined>;
40
+ taskContext: TaskContextSource;
41
+ };
42
+ /**
43
+ * The route a request reaches, if one does: under `/plugins/<type>/`, that plugin's — this server's own, then the one
44
+ * the space's plugin brought; anywhere else, the deployment's own (its native functions') first, then the space's. Each
45
+ * runs with the same context a task of theirs gets, `trigger: 'route'` — a plugin's with a plugin's narrower one.
46
+ */
47
+ export declare const createRoutes: ({ config, plugins, getFunctions, getPluginFunctions, taskContext }: RouteSources) => {
48
+ /** The route that answers `method path` (the path after `/fn`), for this visit — or none. */
49
+ routeFor: (visit: RouteVisit, method: string, path: string) => Promise<RouteHandler | undefined>;
50
+ };
@@ -0,0 +1,26 @@
1
+ import { FunctionRunner } from '@plitzi/sdk-shared/functions';
2
+ export type RemoteRunnerOptions = {
3
+ /**
4
+ * The runner service, `ws://functions-runner:8790`. A function is asked once per try, with the space an invocation is
5
+ * for (none for reading a bundle): what sends a space to the runners it is assigned to. A name that resolves to several
6
+ * addresses — a headless Service, a network alias — is each runner behind it: an invocation is placed on one of them
7
+ * at random, and one a runner turns away as `busy` (no isolate free, or no memory for it: it took nothing) goes to the
8
+ * next at once. With every one full, one of them keeps it until it has room (1.3's `queue`): it waits, never fails
9
+ * for the runners' capacity — its own time starts once one takes it.
10
+ */
11
+ url: string | ((spaceId?: number) => string);
12
+ secret: string;
13
+ /** How long to wait for the runner to accept a connection. */
14
+ connectTimeoutMs?: number;
15
+ /**
16
+ * How long past an invocation's own wall limit this side waits before giving up on the runner and closing the socket.
17
+ * The runner stops an invocation at its limit and says so; this is for a runner that no longer says anything, so a
18
+ * connection never outlives the work it was for.
19
+ */
20
+ graceMs?: number;
21
+ };
22
+ /**
23
+ * The platform's side of the runner service: a {@link FunctionRunner} over one WebSocket per operation. Each call the
24
+ * code makes arrives on it and is answered on it, by this process — the one holding the run.
25
+ */
26
+ export declare const createRemoteRunner: ({ url, secret, connectTimeoutMs, graceMs }: RemoteRunnerOptions) => FunctionRunner;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Whose code a function is when it is not the space's: a plugin's server half, which a plugin brings with it and a space
3
+ * only chose to use.
4
+ *
5
+ * The space trusted the plugin to draw something, not with what it keeps — so a plugin's functions are handed a narrower
6
+ * `ctx`: their own corner of the space's `kv` and rate limits, signatures that only verify as theirs, the hosts they
7
+ * declared, and none of the space's credentials, realtime channels or data.
8
+ */
9
+ export type FunctionScope = {
10
+ plugin: string;
11
+ };
12
+ /** A plugin's keys inside its space's `kv`: nothing of the space's, or of another plugin's, is reachable from it. */
13
+ export declare const pluginKvPrefix: (plugin: string) => string;
14
+ /**
15
+ * What a plugin signs is signed as ITS: the value is bound to the plugin before the space's key sees it, so a plugin
16
+ * cannot mint a value the space's own code — or another plugin — would accept as its own.
17
+ */
18
+ export declare const pluginSigned: (plugin: string, value: string) => string;
19
+ /**
20
+ * The plugin a route path addresses — `/plugins/board/layout` is `board`, with `/layout` left for its own routes — or
21
+ * nothing for a path that is not a plugin's.
22
+ */
23
+ export declare const pluginOfPath: (path: string) => {
24
+ plugin: string;
25
+ path: string;
26
+ } | undefined;
27
+ /** Why a plugin's task is refused: it is named after something else. */
28
+ export declare const pluginTaskProblem: (plugin: string, namespace: string, action: string) => string;
@@ -0,0 +1,41 @@
1
+ import { FunctionsSource } from './build';
2
+ import { FunctionsConfig } from './config';
3
+ import { FunctionScope } from './scope';
4
+ import { ActionTaskRegistry } from '../engine/types';
5
+ import { FunctionsManifest, FunctionsProblem } from '@plitzi/sdk-shared';
6
+ import { FunctionsBundle, FunctionLimits, FunctionRunner, SpaceFunctions } from '@plitzi/sdk-shared/functions';
7
+ export type SpaceRegistries = {
8
+ /**
9
+ * The tasks one run of that space can use: the deployment's, its own functions' when it has any, and those of the
10
+ * plugins it uses that bring a server half (by plugin type).
11
+ */
12
+ registryFor: (functions: SpaceFunctions | undefined, plugins?: Readonly<Record<string, SpaceFunctions>>) => ActionTaskRegistry;
13
+ };
14
+ /**
15
+ * Registries per space bundle, built once per bundle and limits — a space's functions change when they are saved, and
16
+ * a saved bundle is a new id.
17
+ */
18
+ export declare const createSpaceRegistries: (base: ActionTaskRegistry, config?: FunctionsConfig) => SpaceRegistries;
19
+ /** Functions whose code is already in hand — prepared a moment ago, or a deployment's own — as a run reaches them. */
20
+ export declare const functionsInHand: ({ bundle, manifest }: {
21
+ bundle: FunctionsBundle;
22
+ manifest: FunctionsManifest;
23
+ }) => SpaceFunctions;
24
+ /** A source made ready to store: the bundle whole — storing is the one place its code travels — and what it declared. */
25
+ export type PreparedFunctions = {
26
+ ok: true;
27
+ functions: {
28
+ bundle: FunctionsBundle;
29
+ manifest: FunctionsManifest;
30
+ };
31
+ } | {
32
+ ok: false;
33
+ problems: FunctionsProblem[];
34
+ };
35
+ /**
36
+ * A space's source made ready to save: built, read by the runner, and checked — the only way a space's functions are
37
+ * stored, so what is stored always passed every rule. `reserved` is every namespace the deployment's own tasks use;
38
+ * `ceilings`, the most it gives one invocation — what a task may ask for; `scope`, a plugin's server half rather than a
39
+ * space's (its tasks named after it, its routes its own).
40
+ */
41
+ export declare const prepareFunctions: (source: FunctionsSource, runner: FunctionRunner, reserved: ReadonlySet<string>, ceilings: FunctionLimits, scope?: FunctionScope) => Promise<PreparedFunctions>;
@@ -0,0 +1,9 @@
1
+ import { ActionEntry } from '@plitzi/sdk-shared';
2
+ /** The id of the step that runs the task in a {@link functionTryEntry}: where its value, logs and error are found. */
3
+ export declare const TRY_STEP = "task";
4
+ /**
5
+ * One task as the smallest flow that runs it: a session call, the task, and its answer — so trying a function is an
6
+ * ordinary run, with every check, limit and record a run has, and nothing of its own to keep in step. The builder's
7
+ * Try, an agent's and `plitzi functions dev` are all this.
8
+ */
9
+ export declare const functionTryEntry: (task: string, params: Record<string, unknown>) => ActionEntry;
@@ -0,0 +1,47 @@
1
+ export { fetchConnectorRecords, rebaseMedia, writeConnectorRecord } from './connectors/engine';
2
+ export { createConnectorResolver } from './connectors/resolver';
3
+ export { KEPT_CALL_MS, KEPT_CALLS_PER_SPACE } from './engine/jobs/calls';
4
+ export { createFileJobQueue } from './engine/jobs/fileQueue';
5
+ export { createActionJobs } from './engine/jobs/jobs';
6
+ export { createMemoryJobQueue } from './engine/jobs/memoryQueue';
7
+ export { createScheduler } from './engine/jobs/scheduler';
8
+ export { DEFAULT_MAX_ATTEMPTS, scheduleFor, scheduleJobId, schedulesFor } from './engine/jobs/schedules';
9
+ export { createJobWorker } from './engine/jobs/worker';
10
+ export { createActionsModule } from './engine/module';
11
+ export { checkAction } from './engine/runtime/check';
12
+ export { ActionRunError } from './engine/runtime/errors';
13
+ export { createFileKv } from './engine/runtime/fileKv';
14
+ export { MAX_LIST_BYTES, MAX_LIST_ENTRIES } from './engine/runtime/kvList';
15
+ export { createKvStore } from './engine/runtime/kvStore';
16
+ export { DEFAULT_LIMITS } from './engine/runtime/limits';
17
+ export { createMemoryKv } from './engine/runtime/memoryKv';
18
+ export { spaceKvPatterns } from './engine/runtime/namespaceKv';
19
+ export { createRedisKv } from './engine/runtime/redisKv';
20
+ export { createRunLogger, createRejectLogger } from './engine/runtime/runLogger';
21
+ export { MIN_SIGNING_SECRET_LENGTH } from './engine/runtime/signing';
22
+ export { describeCatalog, describeTask } from './engine/taskCatalog';
23
+ export { createTaskRegistry } from './engine/tasks/registry';
24
+ export { taskName } from './engine/tasks/names';
25
+ export { createJobControl } from './functions/jobControl';
26
+ export { createActionRealtime } from './realtime/index';
27
+ export { createSigning } from './engine/runtime/signing';
28
+ export { FileInUseError } from './engine/fileStore';
29
+ export { fleetJobQueue, fleetKv } from './engine/fleet';
30
+ export { credentialsFromEnv } from './engine/runtime/credentials';
31
+ export type { ConnectorLookups, ProviderPagination } from './connectors/resolver';
32
+ export type { ConnectorPageInfo, ConnectorResult } from './connectors/types';
33
+ export type { FileJobQueue, FileJobQueueOptions } from './engine/jobs/fileQueue';
34
+ export type { ActionJobs } from './engine/jobs/jobs';
35
+ export type { MemoryJobQueueOptions } from './engine/jobs/memoryQueue';
36
+ export type { Scheduler, SchedulerOptions, SweepResult } from './engine/jobs/scheduler';
37
+ export type { JobWorker, JobWorkerOptions } from './engine/jobs/worker';
38
+ export type { ActionsModule } from './engine/module';
39
+ export type { ActionCheckDeps } from './engine/runtime/check';
40
+ export type { FileKv, FileKvOptions } from './engine/runtime/fileKv';
41
+ export type { ActiveRun, RunGuards } from './engine/runtime/guards';
42
+ export type { RedisKvClient, RedisKvOptions } from './engine/runtime/redisKv';
43
+ export type { ActionTaskDescriptor } from './engine/taskCatalog';
44
+ export type { TaskRegistryOptions } from './engine/tasks/registry';
45
+ export type { ActionCredential, ActionDbDriver, ActionJobsConfig, ActionKvAdapter, ActionLookups, ActionRunRequest, ActionRunResult, ActionsConfig, ActionTask, ActionTaskContext, ActionTaskOrigin, ActionTaskRegistry, RegisteredTask, ResolvedConnector } from './engine/types';
46
+ export type { JobControl, JobControlOptions } from './functions/jobControl';
47
+ export type { RealtimeModuleOptions as ActionRealtimeOptions } from './realtime/index';