@whybebabo/dsh-file-review-tab 0.0.0-stage → 0.7.0

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.
@@ -0,0 +1,26 @@
1
+ /** Browser Typert contribution for the Host file-review service. */
2
+ import type { SessionId } from '@deepseek-ai/dsh-session/types';
3
+ import type { RemoteResult, TypertRemoteContribution } from '@deepseek-ai/dsh-typert-protocol';
4
+ import type { FileReviewRequest, FileReviewResult, RecordedRequest, RecordedResult } from './change-types.ts';
5
+ declare module '@deepseek-ai/dsh-typert-protocol' {
6
+ interface TypertRemoteNamespaceMap {
7
+ fileReview: {
8
+ status: (agentId: SessionId, request: FileReviewRequest) => Promise<RemoteResult<FileReviewResult>>;
9
+ apply: (agentId: SessionId, request: FileReviewRequest) => Promise<RemoteResult<FileReviewResult>>;
10
+ recorded: (agentId: SessionId, request: RecordedRequest) => Promise<RemoteResult<RecordedResult>>;
11
+ };
12
+ }
13
+ interface TypertRemoteMap {
14
+ 'fileReview/status': (agentId: SessionId, request: FileReviewRequest) => Promise<RemoteResult<FileReviewResult>>;
15
+ 'fileReview/apply': (agentId: SessionId, request: FileReviewRequest) => Promise<RemoteResult<FileReviewResult>>;
16
+ 'fileReview/recorded': (agentId: SessionId, request: RecordedRequest) => Promise<RemoteResult<RecordedResult>>;
17
+ }
18
+ interface TypertRemoteScopeMap {
19
+ 'agent:fileReview/status': (request: FileReviewRequest) => Promise<RemoteResult<FileReviewResult>>;
20
+ 'agent:fileReview/apply': (request: FileReviewRequest) => Promise<RemoteResult<FileReviewResult>>;
21
+ 'agent:fileReview/recorded': (request: RecordedRequest) => Promise<RemoteResult<RecordedResult>>;
22
+ }
23
+ }
24
+ export declare const TYPERT_REMOTE: TypertRemoteContribution;
25
+ export default TYPERT_REMOTE;
26
+ //# sourceMappingURL=remote.d.ts.map
@@ -0,0 +1,13 @@
1
+ /** Strict Typert codecs shared by the Host and browser contribution artifacts. */
2
+ import type { InvocationDescriptor } from '@deepseek-ai/dsh-typert-protocol';
3
+ /**
4
+ * This package's npm name, which the Typert host face is keyed by.
5
+ *
6
+ * `typert-loader` rejects a host manifest whose `package` differs from the
7
+ * package that exports it ("the manifest must be owned by the package that
8
+ * exports it"), and the registry rejects a duplicate `package` registration —
9
+ * so this string has to be the real published name, not a display label.
10
+ */
11
+ export declare const PACKAGE_NAME = "@whybebabo/dsh-file-review-tab";
12
+ export declare const FILE_REVIEW_INVOCATIONS: readonly InvocationDescriptor[];
13
+ //# sourceMappingURL=typert-descriptors.d.ts.map
@@ -0,0 +1,5 @@
1
+ /** Host Typert contribution discovered through the package's `./typert` export. */
2
+ import type { TypertContribution } from '@deepseek-ai/dsh-typert-registry/types';
3
+ export declare const TYPERT: TypertContribution;
4
+ export default TYPERT;
5
+ //# sourceMappingURL=typert.host.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,140 @@
1
- {
2
- "name": "@whybebabo/dsh-file-review-tab",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@whybebabo/dsh-file-review-tab",
3
+ "description": "Review agent-produced file changes (line-level red/green diff + undo) both as a chat turn-tail row and as a dsh-better-sidebar tab; a port of left0ver's dsh-file-review.",
4
+ "version": "0.7.0",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "keywords": [
9
+ "deepseek-harness",
10
+ "dsh-plugin",
11
+ "diff",
12
+ "code-review",
13
+ "sidebar"
14
+ ],
15
+ "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/whybebabo/dsh-file-review-tab.git"
19
+ },
20
+ "type": "module",
21
+ "main": "lib/index.js",
22
+ "types": "lib/types/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./lib/types/index.d.ts",
26
+ "default": "./lib/index.js"
27
+ },
28
+ "./client": {
29
+ "types": "./lib/types/client/index.d.ts",
30
+ "default": "./lib/client.js"
31
+ },
32
+ "./typert": {
33
+ "types": "./lib/types/typert.host.d.ts",
34
+ "default": "./lib/typert.host.js"
35
+ },
36
+ "./remote": {
37
+ "types": "./lib/types/remote.d.ts",
38
+ "default": "./lib/remote.js"
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
42
+ "files": [
43
+ "lib/index.js",
44
+ "lib/client.js",
45
+ "lib/client.js.map",
46
+ "lib/typert.host.js",
47
+ "lib/remote.js",
48
+ "lib/typert-descriptors.js",
49
+ "lib/types/**/*.d.ts",
50
+ "cordis.patch.yml",
51
+ "README.md"
52
+ ],
53
+ "dsh": {
54
+ "bundle": {
55
+ "patch": "./cordis.patch.yml"
56
+ },
57
+ "client": {
58
+ "inject": [
59
+ "@deepseek-ai/dsh-api-remotes",
60
+ "@deepseek-ai/dsh-api-session-controller",
61
+ "@deepseek-ai/dsh-client-locale",
62
+ "@deepseek-ai/dsh-client-ui-chat",
63
+ "@deepseek-ai/dsh-client-ui-conversation",
64
+ "@deepseek-ai/dsh-client-ui-renderer",
65
+ "dsh-better-sidebar"
66
+ ],
67
+ "external": [
68
+ "@deepseek-ai/dsh-client-ui-primitives"
69
+ ],
70
+ "platform": "web"
71
+ }
72
+ },
73
+ "scripts": {
74
+ "build:types": "tsc --emitDeclarationOnly --outDir lib/types",
75
+ "build": "npm run build:types && tsdown",
76
+ "typecheck": "tsc --noEmit",
77
+ "test": "node test/typert-descriptors.mjs && node test/slot-registration.mjs && node test/host-apply.mjs && node test/review-invalidation.mjs && node test/diff-hunks.mjs && node test/client-bundle.mjs && node test/card-render.mjs && node test/tab-render.mjs && node test/diff-render.mjs"
78
+ },
79
+ "pnpm": {
80
+ "ignoredBuiltDependencies": [
81
+ "node-pty"
82
+ ]
83
+ },
84
+ "dependencies": {
85
+ "diff": "^9.0.0",
86
+ "zod": "^4.4.3"
87
+ },
88
+ "peerDependencies": {
89
+ "@deepseek-ai/cordis": "^4.0.2",
90
+ "@deepseek-ai/dsh-agent": "^0.2.0-rc.2",
91
+ "@deepseek-ai/dsh-api-remotes": "^0.2.0-rc.2",
92
+ "@deepseek-ai/dsh-api-session-controller": "^0.2.0-rc.2",
93
+ "@deepseek-ai/dsh-atomic-write": "^0.2.0-rc.2",
94
+ "@deepseek-ai/dsh-client-locale": "^0.2.0-rc.2",
95
+ "@deepseek-ai/dsh-client-ui-chat": "^0.2.0-rc.2",
96
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.2.0-rc.2",
97
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.2.0-rc.2",
98
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.0-rc.2",
99
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.0-rc.2",
100
+ "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
101
+ "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2",
102
+ "@deepseek-ai/dsh-typert-protocol": "^0.2.0-rc.2",
103
+ "@deepseek-ai/dsh-typert-registry": "^0.2.0-rc.2",
104
+ "dsh-better-sidebar": ">=0.19.1",
105
+ "react": "^18.2.0"
106
+ },
107
+ "peerDependenciesMeta": {
108
+ "dsh-better-sidebar": {
109
+ "optional": true
110
+ }
111
+ },
112
+ "devDependencies": {
113
+ "@deepseek-ai/cordis": "^4.0.2",
114
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
115
+ "@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
116
+ "@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
117
+ "@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.2",
118
+ "@deepseek-ai/dsh-atomic-write": "0.2.0-rc.2",
119
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
120
+ "@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
121
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.0-rc.2",
122
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.2",
123
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
124
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
125
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
126
+ "@deepseek-ai/dsh-session": "0.2.0-rc.2",
127
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
128
+ "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
129
+ "@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
130
+ "@types/node": "^24.0.0",
131
+ "@types/react": "~18.3.1",
132
+ "@types/react-dom": "~18.3.0",
133
+ "dsh-better-sidebar": "0.24.1",
134
+ "lightningcss": "^1.32.0",
135
+ "react": "^18.2.0",
136
+ "react-dom": "^18.2.0",
137
+ "tsdown": "^0.22.14",
138
+ "typescript": "^5.9.0"
139
+ }
140
+ }