@goodandready/dsh-github-ops 0.4.0 → 0.4.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Fixed
6
+ - **Mirror Route Registration Lifecycle** (#64): Fixed `MIRROR_PATH` webServer registration by wrapping it in an independent `wctx.effect(registerMirror, ...)` lifecycle hook, ensuring the mirror inspection route is properly registered in Cordis runtime.
7
+
3
8
  ## 0.4.0
4
9
 
5
10
  ### Features
package/lib/routes.js CHANGED
@@ -318,8 +318,9 @@ export function registerRoutes(ctx, deps = {}) {
318
318
  },
319
319
  })
320
320
  if (typeof wctx.effect === 'function') wctx.effect(register, 'dsh-github-ops: panel route')
321
- else
322
- wctx.webServer.register({
321
+ else register()
322
+
323
+ const registerMirror = () => wctx.webServer.register({
323
324
  kind: 'exact',
324
325
  path: MIRROR_PATH,
325
326
  handler: async (req, res) => {
@@ -387,8 +388,8 @@ export function registerRoutes(ctx, deps = {}) {
387
388
  }
388
389
  },
389
390
  })
390
-
391
- register()
391
+ if (typeof wctx.effect === 'function') wctx.effect(registerMirror, 'dsh-github-ops: mirror route')
392
+ else registerMirror()
392
393
  } catch (err) {
393
394
  ctx.logger?.warn?.('[dsh-github-ops] panel route not registered:', err && err.message)
394
395
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-github-ops",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "GitHub operations for DeepSeek Harness: releases, tags, a guarded generic API pass-through, workflow runs, secrets and sanitized mirror publication.",
5
5
  "license": "MIT",
6
6
  "type": "module",