@deepseek-ai/dsh-client-test-runtime 0.1.5-rc.2 → 0.1.6-alpha.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-test-runtime",
3
- "description": "jsdom slot test runtime: real Cordis Context + SlotRegistry + UI renderer with test-owned session/workspace doubles for feature specs",
4
- "version": "0.1.5-rc.2",
3
+ "description": "Browser test runtimes: a jsdom slot bench with test-owned Session and Workspace doubles, and a whole-client tier that boots the web roster through the production bootClient over an endpoint-named Remote mock",
4
+ "version": "0.1.6-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -25,48 +25,69 @@
25
25
  "dependencies": {
26
26
  "@testing-library/dom": "^10.4.1",
27
27
  "@testing-library/react": "^16.3.2",
28
+ "js-yaml": "^4.2.0",
28
29
  "vitest": "^4.1.8"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "react": "^18.2.0",
32
33
  "react-dom": "^18.2.0",
33
- "@deepseek-ai/dsh-api-session-controller": "^0.1.5-rc.2",
34
- "@deepseek-ai/dsh-api-workspace-controller": "^0.1.5-rc.2",
35
- "@deepseek-ai/dsh-attachment": "^0.1.5-rc.2",
36
- "@deepseek-ai/dsh-client-connection": "^0.1.5-rc.2",
37
- "@deepseek-ai/dsh-client-store": "^0.1.5-rc.2",
38
- "@deepseek-ai/dsh-client-ui-chat": "^0.1.5-rc.2",
39
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-rc.2",
40
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.5-rc.2",
41
- "@deepseek-ai/dsh-client-ui-session": "^0.1.5-rc.2",
42
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.5-rc.2",
43
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-rc.2",
44
- "@deepseek-ai/dsh-session": "^0.1.5-rc.2",
45
- "@deepseek-ai/dsh-subagent": "^0.1.5-rc.2",
46
- "@deepseek-ai/dsh-typert-protocol": "^0.1.5-rc.2",
47
- "@deepseek-ai/cordis": "^4.0.2"
34
+ "@deepseek-ai/cordis": "^4.0.2",
35
+ "@deepseek-ai/cordis-plugin-include": "^1.0.7",
36
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
37
+ "@deepseek-ai/dsh-api-gateway": "^0.1.6-alpha.2",
38
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.6-alpha.2",
39
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.1.6-alpha.2",
40
+ "@deepseek-ai/dsh-attachment": "^0.1.6-alpha.2",
41
+ "@deepseek-ai/dsh-client-hmr": "^0.1.6-alpha.2",
42
+ "@deepseek-ai/dsh-client-store": "^0.1.6-alpha.2",
43
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.6-alpha.2",
44
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.2",
45
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.6-alpha.2",
46
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.2",
47
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.6-alpha.2",
48
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.2",
49
+ "@deepseek-ai/dsh-client-web": "^0.1.6-alpha.2",
50
+ "@deepseek-ai/dsh-remote-mock": "^0.1.6-alpha.2",
51
+ "@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
52
+ "@deepseek-ai/dsh-subagent": "^0.1.6-alpha.2",
53
+ "@deepseek-ai/dsh-client-modules": "^0.1.6-alpha.2",
54
+ "@deepseek-ai/dsh-client-connection": "^0.1.6-alpha.2",
55
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.6-alpha.2"
48
56
  },
49
57
  "devDependencies": {
58
+ "@types/js-yaml": "^4.0.9",
50
59
  "@types/react": "~18.3.1",
51
60
  "@types/react-dom": "~18.3.0",
52
61
  "react": "^18.2.0",
53
62
  "react-dom": "^18.2.0",
54
- "@deepseek-ai/dsh-api-session-controller": "^0.1.5-rc.2",
55
- "@deepseek-ai/dsh-api-workspace-controller": "^0.1.5-rc.2",
56
- "@deepseek-ai/dsh-attachment": "^0.1.5-rc.2",
57
- "@deepseek-ai/dsh-client-connection": "^0.1.5-rc.2",
58
- "@deepseek-ai/dsh-client-store": "^0.1.5-rc.2",
59
- "@deepseek-ai/dsh-client-ui-chat": "^0.1.5-rc.2",
60
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-rc.2",
61
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.5-rc.2",
62
- "@deepseek-ai/dsh-client-ui-layout": "^0.1.5-rc.2",
63
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-rc.2",
64
- "@deepseek-ai/dsh-session": "^0.1.5-rc.2",
65
- "@deepseek-ai/dsh-client-ui-session": "^0.1.5-rc.2",
66
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.5-rc.2",
67
- "@deepseek-ai/dsh-subagent": "^0.1.5-rc.2",
68
- "@deepseek-ai/dsh-typert-protocol": "^0.1.5-rc.2",
69
- "@deepseek-ai/cordis": "^4.0.2"
63
+ "@deepseek-ai/cordis": "^4.0.2",
64
+ "@deepseek-ai/cordis-plugin-include": "^1.0.7",
65
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
66
+ "@deepseek-ai/dsh-api-remotes": "^0.1.6-alpha.2",
67
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.6-alpha.2",
68
+ "@deepseek-ai/dsh-api-gateway": "^0.1.6-alpha.2",
69
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.1.6-alpha.2",
70
+ "@deepseek-ai/dsh-attachment": "^0.1.6-alpha.2",
71
+ "@deepseek-ai/dsh-base": "^0.1.6-alpha.2",
72
+ "@deepseek-ai/dsh-client-connection": "^0.1.6-alpha.2",
73
+ "@deepseek-ai/dsh-client-hmr": "^0.1.6-alpha.2",
74
+ "@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.2",
75
+ "@deepseek-ai/dsh-client-modules": "^0.1.6-alpha.2",
76
+ "@deepseek-ai/dsh-client-store": "^0.1.6-alpha.2",
77
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.6-alpha.2",
78
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.6-alpha.2",
79
+ "@deepseek-ai/dsh-client-ui-layout": "^0.1.6-alpha.2",
80
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.2",
81
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.2",
82
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.6-alpha.2",
83
+ "@deepseek-ai/dsh-client-web": "^0.1.6-alpha.2",
84
+ "@deepseek-ai/dsh-remote-mock": "^0.1.6-alpha.2",
85
+ "@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
86
+ "@deepseek-ai/dsh-settings": "^0.1.6-alpha.2",
87
+ "@deepseek-ai/dsh-subagent": "^0.1.6-alpha.2",
88
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.6-alpha.2",
89
+ "@deepseek-ai/dsh-web-app": "^0.1.6-alpha.2",
90
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.2"
70
91
  },
71
92
  "files": [
72
93
  "lib/index.js",
@@ -1,83 +0,0 @@
1
- /** Test double for the `settings` Remote namespace a bench's plugins inject. */
2
- import { vi } from 'vitest';
3
- /** The minimum a scripted namespace view carries for the double's own bookkeeping. */
4
- export interface ScriptedNamespace {
5
- /** Namespace key the write addresses. */
6
- ns: string;
7
- }
8
- /** One scripted `settings` namespace face plus the controls a bench drives it with. */
9
- export interface ScriptedSettingsRemote<View extends ScriptedNamespace> {
10
- /**
11
- * The namespace face handed to `TestRemote` as `settings`. A plugin injecting
12
- * `remote.settings` unparks on it, which is what most benches need; the
13
- * describe answer is the same one the shared mirror would read.
14
- */
15
- settings: {
16
- describe(): Promise<{
17
- ok: true;
18
- value: {
19
- writable: boolean;
20
- hasDocument: boolean;
21
- namespaces: readonly View[];
22
- };
23
- }>;
24
- update(ns: string, patch: unknown, expectedRevision: number | undefined): Promise<{
25
- ok: true;
26
- value: View;
27
- } | {
28
- ok: false;
29
- error: {
30
- code: string;
31
- message: string;
32
- details: object;
33
- };
34
- }>;
35
- replace(ns: string, section: unknown, expectedRevision: number | undefined): Promise<{
36
- ok: true;
37
- value: View;
38
- } | {
39
- ok: false;
40
- error: {
41
- code: string;
42
- message: string;
43
- details: object;
44
- };
45
- }>;
46
- mutate(ns: string, ops: unknown, expectedRevision: number | undefined): Promise<{
47
- ok: true;
48
- value: View;
49
- } | {
50
- ok: false;
51
- error: {
52
- code: string;
53
- message: string;
54
- details: object;
55
- };
56
- }>;
57
- };
58
- /** Spy behind `settings.update`, for argument assertions. */
59
- update: ReturnType<typeof vi.fn>;
60
- /** Spy behind `settings.replace`, for argument assertions. */
61
- replace: ReturnType<typeof vi.fn>;
62
- /** Spy behind `settings.mutate`, for argument assertions. */
63
- mutate: ReturnType<typeof vi.fn>;
64
- /**
65
- * Replace what the next describe answers with, as a Host commit would.
66
- * @param namespaces - the namespace views to serve from now on.
67
- */
68
- publish(namespaces: readonly View[]): void;
69
- }
70
- /**
71
- * Build a scripted `settings` Remote namespace for a bench. Each write answers
72
- * with the addressed namespace unchanged, so a bench that only needs its
73
- * plugins to activate scripts nothing; one asserting a write reads the
74
- * corresponding spy or replaces the face.
75
- * @param namespaces - namespace views the first describe answers with.
76
- * @param options - deployment facts the describe answer reports.
77
- * @returns the face and its controls.
78
- */
79
- export declare function scriptedSettingsRemote<View extends ScriptedNamespace>(namespaces?: readonly View[], options?: {
80
- writable?: boolean;
81
- hasDocument?: boolean;
82
- }): ScriptedSettingsRemote<View>;
83
- //# sourceMappingURL=settings-remote.d.ts.map