libpetri 1.5.0 → 1.7.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.
@@ -364,10 +364,28 @@ declare class TransitionContext {
364
364
  /** Returns declared read places (context, not consumed). */
365
365
  readPlaces(): ReadonlySet<Place<any>>;
366
366
  private requireRead;
367
- /** Add output value. Throws if place not declared as output. */
368
- output<T>(place: Place<T>, value: T): this;
369
- /** Add output token with metadata. */
370
- outputToken<T>(place: Place<T>, token: Token<T>): this;
367
+ /**
368
+ * Add one or more output values to the same place in a single call.
369
+ *
370
+ * Validates the place once, then appends each value to the output
371
+ * collector. Calling with zero values is a no-op.
372
+ *
373
+ * @example
374
+ * ctx.output(outPlace, 'a', 'b', 'c');
375
+ * ctx.output(outPlace, ...someArray);
376
+ *
377
+ * @throws if place not declared as output.
378
+ */
379
+ output<T>(place: Place<T>, ...values: T[]): this;
380
+ /**
381
+ * Add one or more pre-built output tokens to the same place in a single call.
382
+ *
383
+ * Validates the place once, then appends each token. Calling with zero
384
+ * tokens is a no-op.
385
+ *
386
+ * @throws if place not declared as output.
387
+ */
388
+ outputToken<T>(place: Place<T>, ...tokens: Token<T>[]): this;
371
389
  /** Returns declared output places. */
372
390
  outputPlaces(): ReadonlySet<Place<any>>;
373
391
  private requireOutput;
@@ -1,4 +1,4 @@
1
- import { P as Place, b as Transition, a as PetriNet, E as EnvironmentPlace } from '../petri-net-C3Jy5HCt.js';
1
+ import { P as Place, b as Transition, a as PetriNet, E as EnvironmentPlace } from '../petri-net-DrTpTRNy.js';
2
2
  import { Expr, init, Bool, FuncDecl } from 'z3-solver';
3
3
 
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libpetri",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "Coloured Time Petri Net engine — TypeScript port",
5
5
  "homepage": "https://libpetri.org",
6
6
  "repository": {