@shardworks/spider-apparatus 0.1.307 → 0.1.309

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.
@@ -1 +1 @@
1
- {"version":3,"file":"animator-paused.d.ts","sourceRoot":"","sources":["../../src/block-types/animator-paused.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AAe1D,QAAA,MAAM,uBAAuB,EAAE,SAwB9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"animator-paused.d.ts","sourceRoot":"","sources":["../../src/block-types/animator-paused.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,aAAa,CAAC;AAkB1D,QAAA,MAAM,uBAAuB,EAAE,SAkC9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -15,18 +15,21 @@
15
15
  import { z } from 'zod';
16
16
  import { guild } from '@shardworks/nexus-core';
17
17
  import { isDispatchable } from '@shardworks/animator-apparatus';
18
- // The outer object is `.optional()` so legacy engines persisted under
18
+ // The outer wrapper is `.nullish()` so legacy engines persisted under
19
19
  // the pre-`attempts[]` schema — `holdReason: 'animator-paused'` with no
20
- // `holdCondition` resolve quietly through `check()` instead of
21
- // throwing a ZodError that the dispatch predicate's catch logs as a
22
- // warning. Populated conditions still validate against the inner shape;
23
- // malformed payloads (e.g. `{ sessionId: 42 }`) are still rejected.
20
+ // `holdCondition` (or with `holdCondition: null`) resolve quietly
21
+ // through `check()`. Populated conditions still validate against the
22
+ // inner shape, but a malformed payload (e.g. `{ sessionId: 42 }`) is
23
+ // no longer fatal: `check()` falls back to `safeParse` and treats
24
+ // validation failure as "no informational session-id available", since
25
+ // the authoritative state lives on the Animator's status book and the
26
+ // condition is purely diagnostic.
24
27
  const conditionSchema = z
25
28
  .object({
26
29
  /** Session id that triggered the pause — informational. */
27
30
  sessionId: z.string().optional(),
28
31
  })
29
- .optional();
32
+ .nullish();
30
33
  const animatorPausedBlockType = {
31
34
  id: 'animator-paused',
32
35
  conditionSchema,
@@ -35,7 +38,15 @@ const animatorPausedBlockType = {
35
38
  // after `pausedUntil` elapses.
36
39
  pollIntervalMs: 10_000,
37
40
  async check(condition) {
38
- conditionSchema.parse(condition);
41
+ // Use safeParse so a malformed `condition` payload (legacy / future
42
+ // schema drift) doesn't propagate as a ZodError that the dispatch
43
+ // predicate's catch turns into a permanent "hold-gate-pending"
44
+ // stall. The condition is informational only — the authoritative
45
+ // dispatch decision comes from the Animator's status below.
46
+ const parsed = conditionSchema.safeParse(condition);
47
+ if (!parsed.success) {
48
+ console.warn(`[animator-paused] ignoring malformed holdCondition: ${parsed.error.message}`);
49
+ }
39
50
  let animator;
40
51
  try {
41
52
  animator = guild().apparatus('animator');
@@ -1 +1 @@
1
- {"version":3,"file":"animator-paused.js","sourceRoot":"","sources":["../../src/block-types/animator-paused.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIhE,sEAAsE;AACtE,wEAAwE;AACxE,iEAAiE;AACjE,oEAAoE;AACpE,wEAAwE;AACxE,oEAAoE;AACpE,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,2DAA2D;IAC3D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,QAAQ,EAAE,CAAC;AAEd,MAAM,uBAAuB,GAAc;IACzC,EAAE,EAAE,iBAAiB;IACrB,eAAe;IACf,qEAAqE;IACrE,mEAAmE;IACnE,+BAA+B;IAC/B,cAAc,EAAE,MAAM;IACtB,KAAK,CAAC,KAAK,CAA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B,cAAc,EAAE,MAAM;IACtB,KAAK,CAAC,KAAK,CAAC,SAAkB;QAC5B,oEAAoE;QACpE,kEAAkE;QAClE,+DAA+D;QAC/D,iEAAiE;QACjE,4DAA4D;QAC5D,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,CAAC,IAAI,CACV,uDAAuD,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAC9E,CAAC;QACJ,CAAC;QACD,IAAI,QAAqB,CAAC;QAC1B,IAAI,CAAC;YACH,QAAQ,GAAG,KAAK,EAAE,CAAC,SAAS,CAAc,UAAU,CAAC,CAAC;QACxD,CAAC;QAAC,MAAM,CAAC;YACP,wDAAwD;YACxD,+DAA+D;YAC/D,8BAA8B;YAC9B,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAC/B,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC1C,mEAAmE;QACnE,gEAAgE;QAChE,qCAAqC;QACrC,OAAO,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACpE,CAAC;CACF,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shardworks/spider-apparatus",
3
- "version": "0.1.307",
3
+ "version": "0.1.309",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,17 +22,17 @@
22
22
  "hono": "^4.7.11",
23
23
  "yaml": "^2.0.0",
24
24
  "zod": "4.3.6",
25
- "@shardworks/fabricator-apparatus": "0.1.307",
26
- "@shardworks/stacks-apparatus": "0.1.307",
27
- "@shardworks/clerk-apparatus": "0.1.307",
28
- "@shardworks/animator-apparatus": "0.1.307",
29
- "@shardworks/codexes-apparatus": "0.1.307",
30
- "@shardworks/tools-apparatus": "0.1.307",
31
- "@shardworks/loom-apparatus": "0.1.307"
25
+ "@shardworks/stacks-apparatus": "0.1.309",
26
+ "@shardworks/fabricator-apparatus": "0.1.309",
27
+ "@shardworks/tools-apparatus": "0.1.309",
28
+ "@shardworks/clerk-apparatus": "0.1.309",
29
+ "@shardworks/codexes-apparatus": "0.1.309",
30
+ "@shardworks/animator-apparatus": "0.1.309",
31
+ "@shardworks/loom-apparatus": "0.1.309"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "25.5.0",
35
- "@shardworks/nexus-core": "0.1.307"
35
+ "@shardworks/nexus-core": "0.1.309"
36
36
  },
37
37
  "files": [
38
38
  "dist",