@powerhousedao/reactor-workflow 6.2.3-dev.16 → 6.2.3-dev.18

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 CHANGED
@@ -122,6 +122,15 @@ Environment:
122
122
  - `WORKFLOW_EGRESS_ALLOW_ADDRESSES` — comma-separated CIDRs a piece may reach.
123
123
  The default policy refuses private and loopback addresses; a suite that talks
124
124
  to a local mock service widens it.
125
+ Pieces are also read from the registry the host installs packages from —
126
+ `packageRegistryUrl` in `powerhouse.config.json`, or `PH_REGISTRY_URL`. It
127
+ serves the same list, detail and bundle endpoints cloud.activepieces.com and
128
+ its CDN do, and is read ahead of both: its listing merges into the catalog and
129
+ into block search, and its tarball is the first download source tried. A host
130
+ that installs packages from no registry reads the Activepieces CDN and npm
131
+ only. There is no second setting: a package installed from that registry
132
+ already ships pieces that run in the worker, so a bundle fetched from it is no
133
+ more trusted than one that arrived inside a package.
125
134
 
126
135
  ## Design documents
127
136
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as EgressPolicy, _ as PieceWorker, a as AttachmentPort, c as ConnectionRequest, d as SecretStore, m as WorkflowRunResult, n as packagePieces, p as StepExecutionRecord, t as PieceRegistry, v as PieceWorkerResult, x as PieceResolver } from "./piece-registry-DxYByELl.js";
1
+ import { C as EgressPolicy, _ as PieceWorker, a as AttachmentPort, c as ConnectionRequest, d as SecretStore, m as WorkflowRunResult, n as packagePieces, p as StepExecutionRecord, t as PieceRegistry, v as PieceWorkerResult, x as PieceResolver } from "./piece-registry-DWTQoft_.js";
2
2
  import { ActionBase, TriggerBase } from "@powerhousedao/pieces-framework";
3
3
  import { ILogger, OperationWithContext } from "document-model";
4
4
  import { BaseReadModel, DocumentViewDatabase, IConsistencyTracker, IOperationIndex, IReactorClient, IWriteCache, ReadModelRegistrationStage } from "@powerhousedao/reactor";
@@ -30,6 +30,9 @@ declare function createAttachmentPort(client: AttachmentClientLike, documentIdFo
30
30
  //#region src/reactor/package-name.d.ts
31
31
  declare const WORKFLOW_PACKAGE_NAME = "@powerhousedao/workflow";
32
32
  //#endregion
33
+ //#region src/pieces/activepieces/registry-source.d.ts
34
+ declare function setPieceRegistryUrl(url: string | undefined): void;
35
+ //#endregion
33
36
  //#region src/reactor/host.d.ts
34
37
  type WorkflowCaller = object;
35
38
  interface WorkflowRuntimeHostDeps {
@@ -19064,5 +19067,5 @@ interface WebhookPayload {
19064
19067
  body: unknown;
19065
19068
  }
19066
19069
  //#endregion
19067
- export { type AttachmentClientLike, type ConnectionCheckResult, type ConnectionSummary, type PersistedRunResult, PieceRegistry, type PieceStoreRow, type PieceTriggerBinding, type RunRow, type ScheduleTriggerBinding, type StepExecutionRow, type TriggerBinding, type TriggerDedupeRow, type TriggerStateRow, WORKFLOW_PACKAGE_NAME, WORKFLOW_TRIGGERS_READ_MODEL, WORKFLOW_TRIGGERS_READ_MODEL_STAGE, type WebhookConfig, type WebhookPayload, type WorkflowCaller, type WorkflowRuntimeDB, type WorkflowRuntimeHostDeps, WorkflowRuntimeService, WorkflowTriggersReadModel, createAttachmentPort, createWorkflowRuntime, packagePieces };
19070
+ export { type AttachmentClientLike, type ConnectionCheckResult, type ConnectionSummary, type PersistedRunResult, PieceRegistry, type PieceStoreRow, type PieceTriggerBinding, type RunRow, type ScheduleTriggerBinding, type StepExecutionRow, type TriggerBinding, type TriggerDedupeRow, type TriggerStateRow, WORKFLOW_PACKAGE_NAME, WORKFLOW_TRIGGERS_READ_MODEL, WORKFLOW_TRIGGERS_READ_MODEL_STAGE, type WebhookConfig, type WebhookPayload, type WorkflowCaller, type WorkflowRuntimeDB, type WorkflowRuntimeHostDeps, WorkflowRuntimeService, WorkflowTriggersReadModel, createAttachmentPort, createWorkflowRuntime, packagePieces, setPieceRegistryUrl };
19068
19071
  //# sourceMappingURL=index.d.ts.map