@shardworks/spider-apparatus 0.1.308 → 0.1.310
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/block-types/animator-paused.d.ts.map +1 -1
- package/dist/block-types/animator-paused.js +18 -7
- package/dist/block-types/animator-paused.js.map +1 -1
- package/dist/engines/review.d.ts.map +1 -1
- package/dist/engines/review.js +12 -0
- package/dist/engines/review.js.map +1 -1
- package/package.json +9 -9
|
@@ -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;
|
|
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
|
|
18
|
+
// The outer wrapper is `.nullish()` so legacy engines persisted under
|
|
19
19
|
// the pre-`attempts[]` schema — `holdReason: 'animator-paused'` with no
|
|
20
|
-
// `holdCondition`
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
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
|
-
.
|
|
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
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"animator-paused.js","sourceRoot":"","sources":["../../src/block-types/animator-paused.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AAS,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/engines/review.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/engines/review.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAiGrE,QAAA,MAAM,YAAY,EAAE,YAoDnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/engines/review.js
CHANGED
|
@@ -72,6 +72,18 @@ Assess the implementation against the spec. Produce your findings in this format
|
|
|
72
72
|
|
|
73
73
|
### Overall: PASS or FAIL
|
|
74
74
|
|
|
75
|
+
The verdict is **FAIL** if any of the following are true, regardless of code quality elsewhere:
|
|
76
|
+
|
|
77
|
+
1. **Unverified upstream contract.** The implementation consumes an external API, file format, or upstream data source whose shape the implementer authored without verifying against a captured real sample. Symptoms: schema fields hand-invented; fixtures synthetic rather than captured-from-real; tests pass against the synthetic fixture but no live verification was performed during implementation; payload schemas with every field \`.optional()\` and \`.passthrough()\` such that the validator accepts any input.
|
|
78
|
+
|
|
79
|
+
2. **URL or endpoint drift from spec.** The spec names a specific external endpoint and the implementation calls a different one without justification recorded in code, comments, or commit message.
|
|
80
|
+
|
|
81
|
+
3. **Load-bearing integration untested against real data.** The spec describes a non-trivial integration (catalog join, schema mapping, upstream-shape consumption) and the test suite exercises only synthetic happy-path fixtures with no anchor in real upstream data.
|
|
82
|
+
|
|
83
|
+
4. **A required change would not be self-discoverable.** If you found something the implementer could not have caught with the tests they wrote, that is a FAIL — not an "improvement." The yardstick: would the implementer have known about this issue from the tests alone? If no, then the bug shipped behind a green test suite, and the test suite itself is the problem.
|
|
84
|
+
|
|
85
|
+
If none of the above conditions hold, the verdict is **PASS**.
|
|
86
|
+
|
|
75
87
|
### Completeness
|
|
76
88
|
- Which spec requirements are addressed?
|
|
77
89
|
- Which are missing or partially addressed?
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../src/engines/review.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAM/C,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAE1C,KAAK,UAAU,OAAO,CAAC,GAAW,EAAE,OAAe;IACjD,IAAI,CAAC;QACH,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,aAAa,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,GAAG,OAAO,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QACrF,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,KAAK,UAAU,SAAS,CAAC,GAAW;IAClC,IAAI,CAAC;QACH,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,aAAa,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QAClF,OAAO,MAAM,CAAC;IAChB,CAAC;IA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EAAE,UAAU,CAAC,CAAC;QACzE,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,gBAAgB,GAAI,OAAO,EAAE,QAAQ,EAAE,gBAAsC,IAAI,EAAE,CAAC;QAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC3D,CAAC;CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shardworks/spider-apparatus",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.310",
|
|
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/
|
|
26
|
-
"@shardworks/
|
|
27
|
-
"@shardworks/
|
|
28
|
-
"@shardworks/
|
|
29
|
-
"@shardworks/
|
|
30
|
-
"@shardworks/
|
|
31
|
-
"@shardworks/codexes-apparatus": "0.1.
|
|
25
|
+
"@shardworks/stacks-apparatus": "0.1.310",
|
|
26
|
+
"@shardworks/clerk-apparatus": "0.1.310",
|
|
27
|
+
"@shardworks/tools-apparatus": "0.1.310",
|
|
28
|
+
"@shardworks/animator-apparatus": "0.1.310",
|
|
29
|
+
"@shardworks/fabricator-apparatus": "0.1.310",
|
|
30
|
+
"@shardworks/loom-apparatus": "0.1.310",
|
|
31
|
+
"@shardworks/codexes-apparatus": "0.1.310"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "25.5.0",
|
|
35
|
-
"@shardworks/nexus-core": "0.1.
|
|
35
|
+
"@shardworks/nexus-core": "0.1.310"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|