@shardworks/spider-apparatus 0.1.229 → 0.1.231

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shardworks/spider-apparatus",
3
- "version": "0.1.229",
3
+ "version": "0.1.231",
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.229",
26
- "@shardworks/tools-apparatus": "0.1.229",
27
- "@shardworks/stacks-apparatus": "0.1.229",
28
- "@shardworks/clerk-apparatus": "0.1.229",
29
- "@shardworks/animator-apparatus": "0.1.229",
30
- "@shardworks/codexes-apparatus": "0.1.229",
31
- "@shardworks/loom-apparatus": "0.1.229"
25
+ "@shardworks/fabricator-apparatus": "0.1.231",
26
+ "@shardworks/stacks-apparatus": "0.1.231",
27
+ "@shardworks/clerk-apparatus": "0.1.231",
28
+ "@shardworks/tools-apparatus": "0.1.231",
29
+ "@shardworks/animator-apparatus": "0.1.231",
30
+ "@shardworks/loom-apparatus": "0.1.231",
31
+ "@shardworks/codexes-apparatus": "0.1.231"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "25.5.0",
35
- "@shardworks/nexus-core": "0.1.229"
35
+ "@shardworks/nexus-core": "0.1.231"
36
36
  },
37
37
  "files": [
38
38
  "dist",
@@ -69,6 +69,25 @@ describe('spider.js rig list row HTML', () => {
69
69
  'writ-title cell must not be rendered as plain (non-linked) text',
70
70
  );
71
71
  });
72
+
73
+ it('writ deep-links target the canonical Clerk writs page path', () => {
74
+ // Regression guard: historically, writ-id anchors in the rig view and
75
+ // rig-list row targeted '/pages/clerk/?writ=…', but no plugin registers
76
+ // a page with id 'clerk' — the Clerk's writs page is registered with id
77
+ // 'writs' and served at '/pages/writs/'. That produced a bare 404 on
78
+ // every click. Pin the canonical URL shape, matching the Ratchet
79
+ // linkDispatch helper, and forbid the broken one.
80
+ assert.match(
81
+ spiderJs,
82
+ /\/pages\/writs\/\?writ=/,
83
+ 'writ deep-links must target /pages/writs/?writ=',
84
+ );
85
+ assert.doesNotMatch(
86
+ spiderJs,
87
+ /\/pages\/clerk\/\?writ=/,
88
+ 'writ deep-links must NOT target the broken /pages/clerk/?writ= path',
89
+ );
90
+ });
72
91
  });
73
92
 
74
93
  // ── Cancellation UI ──────────────────────────────────────────────────────
@@ -352,7 +352,7 @@
352
352
  metaTable.innerHTML =
353
353
  '<tbody>' +
354
354
  '<tr><th>ID</th><td>' + esc(rig.id) + '</td></tr>' +
355
- '<tr><th>Writ</th><td><a href="/pages/clerk/?writ=' + esc(rig.writId) + '">' + esc(rig.writId) + '</a></td></tr>' +
355
+ '<tr><th>Writ</th><td><a href="/pages/writs/?writ=' + esc(rig.writId) + '">' + esc(rig.writId) + '</a></td></tr>' +
356
356
  '<tr><th>Status</th><td>' + badgeHtml(rig.status) + '</td></tr>' +
357
357
  '<tr><th>Created</th><td>' + esc(formatDate(rig.createdAt)) + '</td></tr>' +
358
358
  '</tbody>';
@@ -462,7 +462,7 @@
462
462
  '<td><a class="rig-link" href="#" data-rig-id="' + esc(rig.id) + '">' + esc(writTitle) + '</a></td>' +
463
463
  '<td>' + esc(engineSummary(rig.engines)) + '</td>' +
464
464
  '<td><a class="rig-link" href="#" data-rig-id="' + esc(rig.id) + '">' + esc(rig.id) + '</a></td>' +
465
- '<td><a href="/pages/clerk/?writ=' + esc(rig.writId) + '">' + esc(rig.writId) + '</a></td>' +
465
+ '<td><a href="/pages/writs/?writ=' + esc(rig.writId) + '">' + esc(rig.writId) + '</a></td>' +
466
466
  '<td>' + esc(formatDate(rig.createdAt)) + '</td>' +
467
467
  '</tr>';
468
468
  });
@@ -507,7 +507,7 @@
507
507
  metaTable.innerHTML =
508
508
  '<tbody>' +
509
509
  '<tr><th>ID</th><td>' + esc(rig.id) + '</td></tr>' +
510
- '<tr><th>Writ</th><td><a href="/pages/clerk/?writ=' + esc(rig.writId) + '">' + esc(rig.writId) + '</a></td></tr>' +
510
+ '<tr><th>Writ</th><td><a href="/pages/writs/?writ=' + esc(rig.writId) + '">' + esc(rig.writId) + '</a></td></tr>' +
511
511
  '<tr><th>Status</th><td>' + badgeHtml(rig.status) + '</td></tr>' +
512
512
  '<tr><th>Created</th><td>' + esc(formatDate(rig.createdAt)) + '</td></tr>' +
513
513
  '</tbody>';