dsh-hive-runner 1.0.5 → 1.0.7

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/index.js +17 -0
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,29 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
  Version 0.6.0 is the first public snapshot; 0.1.0-0.5.0 were local development
8
8
  iterations of the plugin before this repository was published.
9
9
 
10
+ ## [1.0.7] - 2026-12-05
11
+
12
+ ### Diagnostics
13
+
14
+ - `apply()` is wrapped in `try/catch`: a failure during mount now writes the stack to
15
+ `/tmp/dsh-hive-runner-error.txt` before re-throwing. Together with the
16
+ `/tmp/dsh-hive-runner-probe.json` marker from 1.0.6 this tells whether the desktop
17
+ profile mounts the plugin at all, and if the mount fails, where. No behavior, API or
18
+ config change outside the failure path.
19
+
20
+ ## [1.0.6] - 2026-12-05
21
+
22
+ ### Diagnostics
23
+
24
+ - `apply()` now writes `/tmp/dsh-hive-runner-probe.json` (an ISO timestamp) when the
25
+ plugin is mounted. This is a diagnostic marker only: it answers whether the desktop
26
+ profile actually runs the plugin's `apply()` at all, separating a load/compatibility
27
+ problem from a runtime behavior problem. No behavior, API or config change.
28
+
29
+ ### Published
30
+
31
+ - npm: `dsh-hive-runner@1.0.6` on 2026-12-05.
32
+
10
33
  ## [1.0.5] - 2026-12-05
11
34
 
12
35
  ### Fixed
@@ -25,6 +48,10 @@ iterations of the plugin before this repository was published.
25
48
  resolution for linked checkouts; 1.0.5 removes the peer that the host gate rejected, so
26
49
  0.6.0-1.0.4 could not become active in that runtime.
27
50
 
51
+ ### Published
52
+
53
+ - npm: `dsh-hive-runner@1.0.5` on 2026-12-05.
54
+
28
55
  ## [1.0.4] - 2026-12-05
29
56
 
30
57
  ### Fixed
package/index.js CHANGED
@@ -20,6 +20,7 @@
20
20
  * cancellation. Card workers are DSH subagents (`ctx.subagents`), not processes.
21
21
  */
22
22
  import { defineTool } from '@deepseek-ai/dsh-tools';
23
+ import { writeFileSync } from 'node:fs';
23
24
 
24
25
  import { createCommands } from './lib/commands.js';
25
26
  import { normalizeRepoKey, resolveConfig } from './lib/config.js';
@@ -88,6 +89,22 @@ function jsonText(value) {
88
89
  * @param {Record<string, unknown>} [config]
89
90
  */
90
91
  export function apply(ctx, config = {}) {
92
+ try {
93
+ return applyInner(ctx, config);
94
+ } catch (error) {
95
+ try {
96
+ writeFileSync('/tmp/dsh-hive-runner-error.txt', String((error && error.stack) || error) + '\n');
97
+ } catch {}
98
+ throw error;
99
+ }
100
+ }
101
+
102
+ function applyInner(ctx, config = {}) {
103
+ // Load probe: proves the host actually mounted this plugin. Removed once the
104
+ // desktop profile load path is confirmed.
105
+ try {
106
+ writeFileSync('/tmp/dsh-hive-runner-probe.json', JSON.stringify({ at: new Date().toISOString() }) + '\n');
107
+ } catch {}
91
108
  const resolved = resolveConfig(config);
92
109
  const commands = createCommands({ ctx, config: resolved });
93
110
  const limits = new RepoLimits({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-hive-runner",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "DSH host plugin for Hive: a resident supervisor that runs one DSH subagent per ready task card, with per-role worker limits, pause/resume and Hive tools.",
5
5
  "type": "module",
6
6
  "main": "./index.js",