@graphrefly/graphrefly 0.40.0 → 0.41.0
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/{chunk-6XVD5TZV.js → chunk-2W553JJC.js} +1 -1
- package/dist/{chunk-WL6LFPJB.js → chunk-33N4TU3X.js} +1 -1
- package/dist/{chunk-RZJDIV2G.js → chunk-4MKL6Q3K.js} +1 -1
- package/dist/chunk-5B3JDG5F.js +1 -0
- package/dist/{chunk-K2Z7UENB.js → chunk-5QSXEMXG.js} +1 -1
- package/dist/{chunk-ECQRP2UT.js → chunk-5TEFC2ZX.js} +1 -1
- package/dist/{chunk-SVFKHUCW.js → chunk-5TOPVRN6.js} +1 -1
- package/dist/{chunk-XJLYLLIJ.js → chunk-5VEZLQFN.js} +1 -1
- package/dist/{chunk-32N3JALT.js → chunk-7PQLZMOG.js} +1 -1
- package/dist/{chunk-2QXRYP7Q.js → chunk-AI7QC7J6.js} +1 -1
- package/dist/{chunk-FHRBBHJN.js → chunk-AK5RHMC5.js} +1 -1
- package/dist/{chunk-B7LCDQEV.js → chunk-CGNOWGV6.js} +1 -1
- package/dist/{chunk-LCGAVGGV.js → chunk-CYOSWFT2.js} +1 -1
- package/dist/{chunk-VMF23LGB.js → chunk-EC2WNSZ7.js} +1 -1
- package/dist/{chunk-UWA6D7UF.js → chunk-ELAASRBT.js} +1 -1
- package/dist/{chunk-Z4F3DOWS.js → chunk-F7VUYPP6.js} +1 -1
- package/dist/{chunk-LYM4PBMV.js → chunk-G3M3IMEV.js} +1 -1
- package/dist/{chunk-SSCGRYJ2.js → chunk-GI4Q7PNY.js} +1 -1
- package/dist/{chunk-7Q4ZD3YW.js → chunk-H5SCWHWP.js} +1 -1
- package/dist/{chunk-6I726LZU.js → chunk-KNVCCBIU.js} +1 -1
- package/dist/{chunk-CKFQS2CJ.js → chunk-L77I47VU.js} +1 -1
- package/dist/{chunk-I2DEVPMU.js → chunk-M3FQSXEW.js} +1 -1
- package/dist/{chunk-WUT362QV.js → chunk-OLIKJUKI.js} +1 -1
- package/dist/{chunk-QSK3RRII.js → chunk-OV5AA6HJ.js} +1 -1
- package/dist/{chunk-2BX4NB34.js → chunk-POXANAJ6.js} +1 -1
- package/dist/chunk-RSMEXK53.js +43 -0
- package/dist/{chunk-MNZIKXK4.js → chunk-SC27WTSG.js} +1 -1
- package/dist/{chunk-YXDRGKXP.js → chunk-TT4C7DXW.js} +1 -1
- package/dist/{chunk-2DMKW2AD.js → chunk-UISPDFJ3.js} +1 -1
- package/dist/{chunk-J63M5U46.js → chunk-URJ2VFNC.js} +1 -1
- package/dist/{chunk-XW4YDF6G.js → chunk-VV62MIG4.js} +1 -1
- package/dist/{chunk-756D5TFD.js → chunk-VXPLLA4P.js} +1 -1
- package/dist/{chunk-PPUYQ66A.js → chunk-WZYB3JQS.js} +1 -1
- package/dist/{chunk-6VWBPSSY.js → chunk-X7QKTXXC.js} +1 -1
- package/dist/{chunk-JKBOIJ22.js → chunk-YQRN4CIV.js} +1 -1
- package/dist/chunk-Z6X7B6A4.js +61 -0
- package/dist/{chunk-N43XM7BM.js → chunk-ZAJ7J7TO.js} +1 -1
- package/dist/compat/index.js +1 -1
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/zustand/index.js +1 -1
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.js +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/graph/index.js +1 -1
- package/dist/{index-IUCY0OFN.d.ts → index-CG33HeBW.d.ts} +17 -2
- package/dist/{index-BTHOTC0Q.d.cts → index-DGD4_fj6.d.cts} +17 -2
- package/dist/{index-D1IEZUsj.d.ts → index-DfOK_oL5.d.ts} +204 -199
- package/dist/{index-DJ_MPOJ5.d.cts → index-DuRsN9ae.d.cts} +204 -199
- package/dist/index.cjs +46 -46
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +11 -11
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +8 -8
- package/dist/patterns/harness/index.d.cts +4 -4
- package/dist/patterns/harness/index.d.ts +4 -4
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +3 -3
- package/dist/patterns/job-queue/index.d.cts +1 -1
- package/dist/patterns/job-queue/index.d.ts +1 -1
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.js +1 -1
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{resilience-S33JV6XC.js → resilience-JISHQD2F.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-INQFTVZA.js +0 -61
- package/dist/chunk-OSZ22J7O.js +0 -1
- package/dist/chunk-YKD7WUYJ.js +0 -43
|
@@ -112,16 +112,31 @@ type StageDef<T> = string | {
|
|
|
112
112
|
id: string;
|
|
113
113
|
version: string | number;
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Per-stage cap on `claim → work → ack` cycles per pump tick.
|
|
117
|
+
* Overrides {@link JobFlowOptions.maxPerPump} for this stage. Useful
|
|
118
|
+
* when stages have asymmetric cost (e.g. an LLM-execute stage capped
|
|
119
|
+
* at 4 concurrent calls while a cheap verify stage runs unbounded).
|
|
120
|
+
*
|
|
121
|
+
* Falls back to the top-level `JobFlowOptions.maxPerPump`, which in
|
|
122
|
+
* turn falls back to `DEFAULT_MAX_PER_PUMP` (256).
|
|
123
|
+
*/
|
|
124
|
+
maxPerPump?: number;
|
|
115
125
|
};
|
|
116
126
|
type JobFlowOptions<T = unknown> = {
|
|
117
127
|
graph?: GraphOptions;
|
|
118
128
|
/**
|
|
119
129
|
* Stage definitions. Each stage is either a bare name string (pure
|
|
120
|
-
* pass-through) or a `{ name, work?, handlerVersion? }` object.
|
|
130
|
+
* pass-through) or a `{ name, work?, handlerVersion?, maxPerPump? }` object.
|
|
121
131
|
*
|
|
122
132
|
* For back-compat, `string[]` values behave as stages with no work hook.
|
|
123
133
|
*/
|
|
124
134
|
stages?: readonly StageDef<T>[];
|
|
135
|
+
/**
|
|
136
|
+
* Default cap on claims per pump tick across all stages. Per-stage
|
|
137
|
+
* overrides can be set on each {@link StageDef.maxPerPump}; if neither is
|
|
138
|
+
* set, falls back to `DEFAULT_MAX_PER_PUMP` (256).
|
|
139
|
+
*/
|
|
125
140
|
maxPerPump?: number;
|
|
126
141
|
};
|
|
127
142
|
declare class JobFlowGraph<T> extends Graph {
|
|
@@ -168,4 +183,4 @@ declare namespace index {
|
|
|
168
183
|
export { type index_JobEnvelope as JobEnvelope, type index_JobEvent as JobEvent, type index_JobEventAction as JobEventAction, index_JobFlowGraph as JobFlowGraph, type index_JobFlowOptions as JobFlowOptions, index_JobQueueGraph as JobQueueGraph, type index_JobQueueOptions as JobQueueOptions, type index_JobState as JobState, type index_StageDef as StageDef, type index_WorkFn as WorkFn, index_jobEventKeyOf as jobEventKeyOf, index_jobFlow as jobFlow, index_jobQueue as jobQueue };
|
|
169
184
|
}
|
|
170
185
|
|
|
171
|
-
export {
|
|
186
|
+
export { type JobEnvelope as J, type StageDef as S, type WorkFn as W, JobFlowGraph as a, JobQueueGraph as b, type JobEvent as c, type JobEventAction as d, type JobFlowOptions as e, type JobQueueOptions as f, type JobState as g, jobFlow as h, index as i, jobEventKeyOf as j, jobQueue as k };
|
|
@@ -112,16 +112,31 @@ type StageDef<T> = string | {
|
|
|
112
112
|
id: string;
|
|
113
113
|
version: string | number;
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Per-stage cap on `claim → work → ack` cycles per pump tick.
|
|
117
|
+
* Overrides {@link JobFlowOptions.maxPerPump} for this stage. Useful
|
|
118
|
+
* when stages have asymmetric cost (e.g. an LLM-execute stage capped
|
|
119
|
+
* at 4 concurrent calls while a cheap verify stage runs unbounded).
|
|
120
|
+
*
|
|
121
|
+
* Falls back to the top-level `JobFlowOptions.maxPerPump`, which in
|
|
122
|
+
* turn falls back to `DEFAULT_MAX_PER_PUMP` (256).
|
|
123
|
+
*/
|
|
124
|
+
maxPerPump?: number;
|
|
115
125
|
};
|
|
116
126
|
type JobFlowOptions<T = unknown> = {
|
|
117
127
|
graph?: GraphOptions;
|
|
118
128
|
/**
|
|
119
129
|
* Stage definitions. Each stage is either a bare name string (pure
|
|
120
|
-
* pass-through) or a `{ name, work?, handlerVersion? }` object.
|
|
130
|
+
* pass-through) or a `{ name, work?, handlerVersion?, maxPerPump? }` object.
|
|
121
131
|
*
|
|
122
132
|
* For back-compat, `string[]` values behave as stages with no work hook.
|
|
123
133
|
*/
|
|
124
134
|
stages?: readonly StageDef<T>[];
|
|
135
|
+
/**
|
|
136
|
+
* Default cap on claims per pump tick across all stages. Per-stage
|
|
137
|
+
* overrides can be set on each {@link StageDef.maxPerPump}; if neither is
|
|
138
|
+
* set, falls back to `DEFAULT_MAX_PER_PUMP` (256).
|
|
139
|
+
*/
|
|
125
140
|
maxPerPump?: number;
|
|
126
141
|
};
|
|
127
142
|
declare class JobFlowGraph<T> extends Graph {
|
|
@@ -168,4 +183,4 @@ declare namespace index {
|
|
|
168
183
|
export { type index_JobEnvelope as JobEnvelope, type index_JobEvent as JobEvent, type index_JobEventAction as JobEventAction, index_JobFlowGraph as JobFlowGraph, type index_JobFlowOptions as JobFlowOptions, index_JobQueueGraph as JobQueueGraph, type index_JobQueueOptions as JobQueueOptions, type index_JobState as JobState, type index_StageDef as StageDef, type index_WorkFn as WorkFn, index_jobEventKeyOf as jobEventKeyOf, index_jobFlow as jobFlow, index_jobQueue as jobQueue };
|
|
169
184
|
}
|
|
170
185
|
|
|
171
|
-
export {
|
|
186
|
+
export { type JobEnvelope as J, type StageDef as S, type WorkFn as W, JobFlowGraph as a, JobQueueGraph as b, type JobEvent as c, type JobEventAction as d, type JobFlowOptions as e, type JobQueueOptions as f, type JobState as g, jobFlow as h, index as i, jobEventKeyOf as j, jobQueue as k };
|