@sessionbus/dsh 0.1.0-pre.2 → 0.1.0-pre.4

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/README.md +8 -1
  2. package/package.json +2 -2
  3. package/plugin.cjs +7 -1
package/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # sessionbus for DSH
2
2
 
3
3
  `@sessionbus/dsh` connects DSH roots to sessionbus and runs daemon-managed DSH lanes.
4
- It depends on the exact `@sessionbus/kit` prerelease `0.1.0-pre.3`.
4
+ It depends on the exact `@sessionbus/kit` version `0.5.5`.
5
5
  It supports DeepSeek Harness `0.1.5-rc.2` and later; tested versions are
6
6
  `0.1.5-rc.2`, `0.1.6-alpha.1`, and `0.1.6-alpha.2`.
7
7
  A DSH profile must install every DSH package at one uniform DSH version; adding
8
8
  one prerelease package can otherwise pull newer prereleases through DSH's caret peers.
9
+ The default single-tool permission grant relies on DSH's `tools/pre-execute`
10
+ waterfall, present since the `0.1.5-rc.2` peer floor.
9
11
  `@sessionbus/dsh` is a pkg.pr.new preview until a separately reviewed trusted-
10
12
  publishing workflow exists; its first registry version must be published manually
11
13
  before trusted publishing can be configured.
@@ -13,6 +15,11 @@ The plugin reads the token once, deletes it from process.env, and retains it
13
15
  nowhere in the plugin; DSH's immutable launch snapshot keeps it for the process
14
16
  lifetime (trusted host).
15
17
 
18
+ ## Installation
19
+
20
+ See [Installing a DSH lane host](docs/HOST-INSTALL.md) for the complete
21
+ preflight, installation, verification, and rollback procedure.
22
+
16
23
  Create the base-only lane profile with:
17
24
 
18
25
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sessionbus/dsh",
3
- "version": "0.1.0-pre.2",
3
+ "version": "0.1.0-pre.4",
4
4
  "type": "commonjs",
5
5
  "main": "plugin.cjs",
6
6
  "exports": "./plugin.cjs",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@antst/dsh-file-uploads-none": "0.1.0-alpha.18",
17
- "@sessionbus/kit": "0.1.0-pre.3"
17
+ "@sessionbus/kit": "0.5.5"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@deepseek-ai/cordis": "^4.0.2",
package/plugin.cjs CHANGED
@@ -313,6 +313,12 @@ function createRuntime(ctx, config, dependencies, prepared) {
313
313
  assertKnownArguments(args, argumentsSchema);
314
314
  return client.action(argumentsValue.action, args);
315
315
  };
316
+ let removeGrant;
317
+ try {
318
+ // The peer floor guarantees this waterfall; this catch covers registration errors, not feature detection.
319
+ removeGrant = ctx.on("tools/pre-execute", async (execution, next) =>
320
+ execution.name === "sessionbus" ? { kind: "allow" } : next(), { prepend: true });
321
+ } catch (error) { throw new Error(`cannot grant sessionbus tool permission: ${clean(error)}`); }
316
322
  const removeTool = ctx.tools.register(dependencies.defineTool({
317
323
  name: "sessionbus",
318
324
  description: "List, message, spawn and control Sessionbus sessions. Use trace mode off, events or content to configure live parent tracing for a direct child; spawn trace sets its initial mode.",
@@ -349,7 +355,7 @@ function createRuntime(ctx, config, dependencies, prepared) {
349
355
  };
350
356
  const removeReady = ctx.appReady.onReady(start);
351
357
  const close = () => {
352
- removeReady(); removeCreated(); removeDisposed(); removeTitle(); removeCommand(); removeTool();
358
+ removeReady(); removeCreated(); removeDisposed(); removeTitle(); removeCommand(); removeGrant(); removeTool();
353
359
  for (const agent of peers.keys()) forget(agent);
354
360
  worker?.shutdown(); native.removeEvents();
355
361
  };