@powerhousedao/reactor-workflow 6.2.3-dev.80 → 6.2.3-dev.81
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/README.md +6 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +343 -115
- package/dist/index.js.map +1 -1
- package/dist/{piece-registry-BbeuE8TB.d.ts → piece-registry-ByALLpvA.d.ts} +23 -4
- package/dist/piece-registry-ByALLpvA.d.ts.map +1 -0
- package/dist/{telemetry-BCXPCbfB.js → telemetry-DE0ALzOJ.js} +82 -12
- package/dist/telemetry-DE0ALzOJ.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/worker-entry.js +163 -11
- package/dist/worker-entry.js.map +1 -1
- package/package.json +7 -7
- package/dist/piece-registry-BbeuE8TB.d.ts.map +0 -1
- package/dist/telemetry-BCXPCbfB.js.map +0 -1
package/README.md
CHANGED
|
@@ -527,6 +527,9 @@ they are true.
|
|
|
527
527
|
is not rerunnable; fire the workflow again instead.
|
|
528
528
|
- A step that DECLARES a `retry` block overrides `defaultRetry`, whatever the
|
|
529
529
|
block resolves to — `{maxAttempts: 1}` is an author saying "not this one".
|
|
530
|
+
- A step with no `retry` takes the workflow's `defaultRetry`, else its action's
|
|
531
|
+
default retry. A `defaultRetry` that retries nothing (the document's initial
|
|
532
|
+
`{maxAttempts: 1}`) counts as unset, so the action's applies.
|
|
530
533
|
- An **INDETERMINATE** step is never retried and never replayed: a retry would
|
|
531
534
|
be a second write. A rerun does execute it again, so it can write twice. See
|
|
532
535
|
**Indeterminate steps** below.
|
|
@@ -849,7 +852,9 @@ releases what an earlier enable registered. The reason reads
|
|
|
849
852
|
|
|
850
853
|
**Actions**
|
|
851
854
|
|
|
852
|
-
- `errorHandlingOptions`
|
|
855
|
+
- `errorHandlingOptions.retryOnFailure` with `defaultValue: true` becomes the
|
|
856
|
+
action's default retry (3 attempts, exponential from 5s) unless the action
|
|
857
|
+
declares a `defaultRetry`. `continueOnFailure` is ignored.
|
|
853
858
|
- `test` is never called.
|
|
854
859
|
- `requireAuth` defaults to `false` in the descriptor; upstream defaults to
|
|
855
860
|
`true`.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as PropertySettingDef, E as ReactorTap, F as BlockMatch, I as BlockResolution, L as PieceOrigin, M as EgressPolicy, T as WorkflowRunResult, b as WorkflowTelemetry, f as SecretStat, g as ModelManifestSource, h as IPieceWorker, i as ReplayedStep, k as PieceResolver, l as ConnectionRequest, n as packagePieces, p as SecretStore, r as CORE_PIECE_NAME, s as AttachmentPort, t as PieceRegistry, v as PieceWorkerResult, w as StepExecutionRecord, x as WorkflowTelemetryOptions, y as TELEMETRY_SCOPE } from "./piece-registry-ByALLpvA.js";
|
|
2
2
|
import { ActionBase, IndexQueryRequest, IndexQueryResult, TriggerBase } from "@powerhousedao/pieces-framework";
|
|
3
3
|
import { ILogger, OperationWithContext } from "document-model";
|
|
4
4
|
import "@powerhousedao/pieces-framework/workflow";
|
|
@@ -19470,6 +19470,19 @@ export declare class WorkflowRuntimeService {
|
|
|
19470
19470
|
private openStore;
|
|
19471
19471
|
secrets(): Promise<SecretStore>;
|
|
19472
19472
|
private secretProvider;
|
|
19473
|
+
private callerAddress;
|
|
19474
|
+
createSecret(input: {
|
|
19475
|
+
value: string;
|
|
19476
|
+
label?: string;
|
|
19477
|
+
ownerId: string;
|
|
19478
|
+
}, ctx?: WorkflowCaller): Promise<SecretStat>;
|
|
19479
|
+
private assertCanManageSecret;
|
|
19480
|
+
canManageSecret(stat: SecretStat, ctx: WorkflowCaller | undefined): Promise<boolean>;
|
|
19481
|
+
rotateSecret(ref: string, value: string, ctx: WorkflowCaller | undefined): Promise<SecretStat>;
|
|
19482
|
+
deleteSecret(ref: string, ctx: WorkflowCaller | undefined): Promise<void>;
|
|
19483
|
+
secretStat(ref: string, ctx: WorkflowCaller | undefined): Promise<SecretStat | null>;
|
|
19484
|
+
listSecrets(ctx: WorkflowCaller | undefined): Promise<SecretStat[]>;
|
|
19485
|
+
private readableSecrets;
|
|
19473
19486
|
private oauthAttempts;
|
|
19474
19487
|
/** The host's OAuth2 apps, their client secrets loaded into the store once. */
|
|
19475
19488
|
private oauthApps;
|
|
@@ -19599,6 +19612,7 @@ export declare class WorkflowRuntimeService {
|
|
|
19599
19612
|
private readonly models;
|
|
19600
19613
|
private modelEntries;
|
|
19601
19614
|
private declaredReactor;
|
|
19615
|
+
private blockDefaults;
|
|
19602
19616
|
private callerRunUser;
|
|
19603
19617
|
private reactorScope;
|
|
19604
19618
|
private stepReactorAccess;
|