dsh-rayrun-bots 0.1.0-alpha.0 → 0.1.1-alpha.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/README.md CHANGED
@@ -182,7 +182,7 @@ Install the packed artifact instead of the checkout:
182
182
 
183
183
  ```bash
184
184
  npm pack ./packages/dsh-rayrun-bots --pack-destination /tmp
185
- dsh plugin --profile web add /tmp/dsh-rayrun-bots-0.1.0-alpha.0.tgz
185
+ dsh plugin --profile web add /tmp/dsh-rayrun-bots-0.1.1-alpha.1.tgz
186
186
  ```
187
187
 
188
188
  `test/package-contents.mjs` checks the tarball with `npm pack --dry-run`: the
@@ -69,7 +69,7 @@ DSH session spike on the same dev image (DSH 0.2.0-rc.2):
69
69
  - the host with `DSH_BOT_AGENT=dsh` answered `HOST1_OK` then `BETA`, stored the
70
70
  DSH session id, and wrote the expected transcript/outbox;
71
71
  - automatic projection (2026-11-23): the adapter uploaded these assets to
72
- `/workspace/.rayrun/host/0.1.0-alpha.0/`, verified the SHA-256 manifest, and
72
+ `/workspace/.rayrun/host/0.1.1-alpha.1/`, verified the SHA-256 manifest, and
73
73
  the page E2E replied `HOST_E2E_OK`.
74
74
 
75
75
  The dependency's `dsh.start` produced no `reply.md` on this image because its
@@ -27,6 +27,7 @@ import { createRuntimeRpc } from './runtime-rpc.js'
27
27
  import { RUNTIME_CONTRACT_VERSION } from './runtime.js'
28
28
 
29
29
  const TASK_TIMEOUT_SECONDS = 900
30
+ const HOST_READY_ATTEMPTS = 30
30
31
  const HOST_PROFILE = 'bot'
31
32
  const HOST_RUNTIME = 'bot-host'
32
33
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
@@ -307,13 +308,15 @@ export function createCloudHostRuntime({
307
308
 
308
309
  async function waitHostReady(sandbox) {
309
310
  const statePath = '.rayrun/host/state.json'
310
- for (let attempt = 0; attempt < 15; attempt += 1) {
311
+ // A previous host leaves `stopped` behind. A newly started host may not
312
+ // have overwritten it yet, so wait for a fresh `running`, not the first
313
+ // value read. The bound covers a cold worker bootstrap.
314
+ for (let attempt = 0; attempt < HOST_READY_ATTEMPTS; attempt += 1) {
311
315
  const text = await readFile(sandbox, statePath)
312
316
  if (text !== null) {
313
317
  let state
314
318
  try { state = JSON.parse(text) } catch { state = null }
315
319
  if (state?.state === 'running') return
316
- if (state?.state === 'stopped') break
317
320
  }
318
321
  await sleep(1000)
319
322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-rayrun-bots",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.1-alpha.1",
4
4
  "description": "Rayrun cloud bots for DeepSeek Harness: named bots that live on your own Rayrun cloud computer, run on your DeepSeek key, and come back for approvals.",
5
5
  "license": "MIT",
6
6
  "type": "module",