@antst/roller 0.1.2 → 0.1.3

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/lib/index.js CHANGED
@@ -1,16 +1,11 @@
1
1
  import { CaptureJournal } from './capture.js';
2
2
  import { registerRestoreCommand } from './restore.js';
3
3
  import { rollerDomainSpec } from './spec.js';
4
- import { warnIfUnsupportedDsh } from './version.js';
5
4
  export { MAX_CHECKPOINT_BYTES, RETAINED_TURNS, checkpointRecordSchema, rollerDomainSpec, } from './spec.js';
6
5
  export { formatRestoreReport } from './format.js';
7
6
  export const name = 'roller';
8
7
  export const inject = ['commands', 'fs', 'sandboxPolicy', 'sessions', 'storageDomain'];
9
8
  export async function apply(ctx) {
10
- // A real profile boot installs Loader before mounting config entries
11
- // (DSH packages/boot/app-boot/src/index.ts:779-789); direct test hosts do not.
12
- if (ctx.get('loader') !== undefined)
13
- warnIfUnsupportedDsh();
14
9
  const domain = await ctx.storageDomain.open(rollerDomainSpec);
15
10
  ctx.effect(() => () => domain.close());
16
11
  const journal = new CaptureJournal(ctx, domain.table('checkpoints'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antst/roller",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "File rewind for DeepSeek Harness",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,8 +27,7 @@
27
27
  "files": [
28
28
  "lib/**/*.js",
29
29
  "lib/**/*.d.ts",
30
- "cordis.patch.yml",
31
- "validated-dsh-versions.json"
30
+ "cordis.patch.yml"
32
31
  ],
33
32
  "license": "MIT",
34
33
  "dsh": {
@@ -44,34 +43,38 @@
44
43
  },
45
44
  "peerDependencies": {
46
45
  "@deepseek-ai/cordis": "^4.0.2",
47
- "@deepseek-ai/dsh-commands": "0.1.2-rc.1",
48
- "@deepseek-ai/dsh-fs": "0.1.2-rc.1",
49
- "@deepseek-ai/dsh-sandbox": "0.1.2-rc.1",
50
- "@deepseek-ai/dsh-sandbox-policy": "0.1.2-rc.1",
51
- "@deepseek-ai/dsh-session": "0.1.2-rc.1",
52
- "@deepseek-ai/dsh-storage-domain": "0.1.2-rc.1"
46
+ "@deepseek-ai/dsh-commands": ">=0.1.5-rc.2",
47
+ "@deepseek-ai/dsh-fs": ">=0.1.5-rc.2",
48
+ "@deepseek-ai/dsh-sandbox": ">=0.1.5-rc.2",
49
+ "@deepseek-ai/dsh-sandbox-policy": ">=0.1.5-rc.2",
50
+ "@deepseek-ai/dsh-session": ">=0.1.5-rc.2",
51
+ "@deepseek-ai/dsh-storage-domain": ">=0.1.5-rc.2"
53
52
  },
54
53
  "devDependencies": {
55
54
  "@deepseek-ai/cordis": "4.0.2",
56
- "@deepseek-ai/dsh-agent": "0.1.2-rc.1",
57
- "@deepseek-ai/dsh-agent-loop": "0.1.2-rc.1",
58
- "@deepseek-ai/dsh-agent-loop-testkit": "0.1.2-rc.1",
59
- "@deepseek-ai/dsh-commands": "0.1.2-rc.1",
60
- "@deepseek-ai/dsh-fs": "0.1.2-rc.1",
61
- "@deepseek-ai/dsh-fs-local": "0.1.2-rc.1",
62
- "@deepseek-ai/dsh-fs-observation-policy": "0.1.2-rc.1",
63
- "@deepseek-ai/dsh-fs-sandbox": "0.1.2-rc.1",
64
- "@deepseek-ai/dsh-llm": "0.1.2-rc.1",
65
- "@deepseek-ai/dsh-sandbox": "0.1.2-rc.1",
66
- "@deepseek-ai/dsh-sandbox-policy": "0.1.2-rc.1",
67
- "@deepseek-ai/dsh-session": "0.1.2-rc.1",
68
- "@deepseek-ai/dsh-session-projection": "0.1.2-rc.1",
69
- "@deepseek-ai/dsh-storage": "0.1.2-rc.1",
70
- "@deepseek-ai/dsh-storage-domain": "0.1.2-rc.1",
71
- "@deepseek-ai/dsh-storage-json": "0.1.2-rc.1",
72
- "@deepseek-ai/dsh-system-prompt": "0.1.2-rc.1",
73
- "@deepseek-ai/dsh-tool-fs": "0.1.2-rc.1",
74
- "@deepseek-ai/dsh-tool-str-replace-editor": "0.1.2-rc.1",
75
- "@deepseek-ai/dsh-tools": "0.1.2-rc.1"
55
+ "@deepseek-ai/dsh-agent": "0.1.5-rc.2",
56
+ "@deepseek-ai/dsh-agent-loop": "0.1.5-rc.2",
57
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.1.5-rc.2",
58
+ "@deepseek-ai/dsh-attachment": "0.1.5-rc.2",
59
+ "@deepseek-ai/dsh-commands": "0.1.5-rc.2",
60
+ "@deepseek-ai/dsh-fs": "0.1.5-rc.2",
61
+ "@deepseek-ai/dsh-fs-local": "0.1.5-rc.2",
62
+ "@deepseek-ai/dsh-fs-observation-policy": "0.1.5-rc.2",
63
+ "@deepseek-ai/dsh-fs-sandbox": "0.1.5-rc.2",
64
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.2",
65
+ "@deepseek-ai/dsh-code-runtime": "0.1.5-rc.2",
66
+ "@deepseek-ai/dsh-sandbox": "0.1.5-rc.2",
67
+ "@deepseek-ai/dsh-sandbox-policy": "0.1.5-rc.2",
68
+ "@deepseek-ai/dsh-session": "0.1.5-rc.2",
69
+ "@deepseek-ai/dsh-session-persistence": "0.1.5-rc.2",
70
+ "@deepseek-ai/dsh-session-projection": "0.1.5-rc.2",
71
+ "@deepseek-ai/dsh-settings": "0.1.5-rc.2",
72
+ "@deepseek-ai/dsh-storage": "0.1.5-rc.2",
73
+ "@deepseek-ai/dsh-storage-domain": "0.1.5-rc.2",
74
+ "@deepseek-ai/dsh-storage-json": "0.1.5-rc.2",
75
+ "@deepseek-ai/dsh-system-prompt": "0.1.5-rc.2",
76
+ "@deepseek-ai/dsh-tool-fs": "0.1.5-rc.2",
77
+ "@deepseek-ai/dsh-tool-str-replace-editor": "0.1.5-rc.2",
78
+ "@deepseek-ai/dsh-tools": "0.1.5-rc.2"
76
79
  }
77
80
  }
package/lib/version.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function warnIfUnsupportedDsh(): void;
package/lib/version.js DELETED
@@ -1,19 +0,0 @@
1
- import { readFileSync, realpathSync } from 'node:fs';
2
- import { dirname, resolve } from 'node:path';
3
- const validatedVersions = JSON.parse(readFileSync(new URL('../validated-dsh-versions.json', import.meta.url), 'utf8'));
4
- function runningDshVersion() {
5
- try {
6
- const entry = realpathSync(process.argv[1] ?? '');
7
- const manifest = JSON.parse(readFileSync(resolve(dirname(entry), '../package.json'), 'utf8'));
8
- return typeof manifest.version === 'string' ? manifest.version : 'unknown';
9
- }
10
- catch {
11
- return 'unknown';
12
- }
13
- }
14
- export function warnIfUnsupportedDsh() {
15
- const version = runningDshVersion();
16
- if (!validatedVersions.includes(version)) {
17
- process.stderr.write(`roller: warning: DSH ${version} is not validated; validated: ${validatedVersions.join(', ')}\n`);
18
- }
19
- }
@@ -1,3 +0,0 @@
1
- [
2
- "0.1.2-rc.1"
3
- ]