@deepseek-ai/dsh-experimental-client-ui-agent-team 0.1.5-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/lib/index.js ADDED
@@ -0,0 +1,6 @@
1
+ //#region lib/types/index.js
2
+ /** Pure host half for the browser-discovered Agent Teams UI plugin. */
3
+ /** Host plugin body; Team behavior lives in the browser export and Host RPC domain. */
4
+ function apply() {}
5
+ //#endregion
6
+ export { apply };
@@ -0,0 +1,35 @@
1
+ import type { SessionId } from '@deepseek-ai/dsh-session/types';
2
+ import type { TeamMemberView as TeamRosterMember, TeamTaskAction, TeamTaskId, TeamTaskMutationResult, TeamView } from '@deepseek-ai/dsh-experimental-agent-team/client';
3
+ import type { RemoteResult } from '@deepseek-ai/dsh-api-remotes/client';
4
+ import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
5
+ import { NS } from './locales.ts';
6
+ /** Generated Remote result consumed directly by the Team UI. */
7
+ export type TeamActionResult<T> = RemoteResult<T>;
8
+ /** Generated Remote result whose business value preserves Team task rejections. */
9
+ export type TeamTaskActionResult = RemoteResult<TeamTaskMutationResult>;
10
+ /** Business actions injected by the browser plugin. */
11
+ export interface TeamActionInjected {
12
+ load: (sessionId: SessionId) => Promise<TeamActionResult<TeamView>>;
13
+ createTask: (sessionId: SessionId, input: {
14
+ subject: string;
15
+ description: string;
16
+ blockedBy: TeamTaskId[];
17
+ writeScopes: string[];
18
+ }) => Promise<TeamTaskActionResult>;
19
+ updateTask: (sessionId: SessionId, input: {
20
+ taskId: TeamTaskId;
21
+ expectedRevision: number;
22
+ action: TeamTaskAction;
23
+ subject?: string;
24
+ description?: string;
25
+ blockedBy?: TeamTaskId[];
26
+ writeScopes?: string[];
27
+ owner?: string;
28
+ }) => Promise<TeamTaskActionResult>;
29
+ openTeammate: (sessionId: SessionId, member: TeamRosterMember) => Promise<void>;
30
+ }
31
+ /** Full props of the Team conversation-header action. */
32
+ export type TeamActionProps = PropsRuntime<'conversation.session.header.actions'> & TeamActionInjected & PropsLocale<typeof NS>;
33
+ /** Render the live Team roster and compare-and-set task board. */
34
+ export declare function TeamAction({ sessionId, load, createTask, updateTask, openTeammate, t, }: TeamActionProps): import("react").JSX.Element;
35
+ //# sourceMappingURL=TeamAction.d.ts.map
@@ -0,0 +1,8 @@
1
+ /** Browser entry binding the generated Team Remote artifact to its Client UI. */
2
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
3
+ export { inject } from './mount.ts';
4
+ export type { TeamActionInjected, TeamActionProps, TeamActionResult } from './TeamAction.tsx';
5
+ export type { TeamKey } from './locales.ts';
6
+ /** Mount the generated Team Remote contribution and its browser UI. */
7
+ export declare function apply(ctx: ClientContext): Promise<() => Promise<void>>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,82 @@
1
+ /** Agent Teams Web dictionaries. */
2
+ /** Locale namespace owned by the Agent Teams Web UI. */
3
+ export declare const NS = "agent-team";
4
+ /** Simplified Chinese dictionary and key source. */
5
+ export declare const zh: {
6
+ trigger: string;
7
+ refresh: string;
8
+ close: string;
9
+ loading: string;
10
+ empty: string;
11
+ roster: string;
12
+ tasks: string;
13
+ model: string;
14
+ open: string;
15
+ create: string;
16
+ subject: string;
17
+ description: string;
18
+ blockers: string;
19
+ scopes: string;
20
+ save: string;
21
+ cancel: string;
22
+ edit: string;
23
+ complete: string;
24
+ reopen: string;
25
+ delete: string;
26
+ owner: string;
27
+ unowned: string;
28
+ blockedBy: string;
29
+ writeScopes: string;
30
+ ready: string;
31
+ blocked: string;
32
+ conflict: string;
33
+ 'memberStatus.running': string;
34
+ 'memberStatus.idle': string;
35
+ 'memberStatus.inactive': string;
36
+ 'memberStatus.provisioning': string;
37
+ 'memberStatus.failed': string;
38
+ 'status.pending': string;
39
+ 'status.in_progress': string;
40
+ 'status.completed': string;
41
+ };
42
+ /** Agent Teams locale key union. */
43
+ export type TeamKey = keyof typeof zh;
44
+ /** English dictionary checked against the Chinese key set. */
45
+ export declare const en: {
46
+ trigger: string;
47
+ refresh: string;
48
+ close: string;
49
+ loading: string;
50
+ empty: string;
51
+ roster: string;
52
+ tasks: string;
53
+ model: string;
54
+ open: string;
55
+ create: string;
56
+ subject: string;
57
+ description: string;
58
+ blockers: string;
59
+ scopes: string;
60
+ save: string;
61
+ cancel: string;
62
+ edit: string;
63
+ complete: string;
64
+ reopen: string;
65
+ delete: string;
66
+ owner: string;
67
+ unowned: string;
68
+ blockedBy: string;
69
+ writeScopes: string;
70
+ ready: string;
71
+ blocked: string;
72
+ conflict: string;
73
+ 'memberStatus.running': string;
74
+ 'memberStatus.idle': string;
75
+ 'memberStatus.inactive': string;
76
+ 'memberStatus.provisioning': string;
77
+ 'memberStatus.failed': string;
78
+ 'status.pending': string;
79
+ 'status.in_progress': string;
80
+ 'status.completed': string;
81
+ };
82
+ //# sourceMappingURL=locales.d.ts.map
@@ -0,0 +1,20 @@
1
+ /** Source-safe Agent Teams browser registration and Remote mount lifecycle. */
2
+ import type { Context as ClientContext } from '@deepseek-ai/cordis';
3
+ import type { TypertRemoteContribution } from '@deepseek-ai/dsh-typert-protocol';
4
+ import { type TeamKey } from './locales.ts';
5
+ declare module '@deepseek-ai/dsh-client-ui-slots' {
6
+ interface LocaleNamespaceMap {
7
+ /** Agent Teams roster and task-board copy. */
8
+ 'agent-team': TeamKey;
9
+ }
10
+ }
11
+ /** Required browser services for RPC, navigation, slots, and localized copy. */
12
+ export declare const inject: string[];
13
+ /**
14
+ * Mount one generated Team Remote contribution, then register its browser UI.
15
+ * @param ctx - Client Context carrying navigation, locale, slot, and Remote services.
16
+ * @param contribution - generated Team descriptors selected by the browser entry.
17
+ * @returns disposer for both the UI registrations and Remote namespace.
18
+ */
19
+ export declare function mountAgentTeamUi(ctx: ClientContext, contribution: TypertRemoteContribution): Promise<() => Promise<void>>;
20
+ //# sourceMappingURL=mount.d.ts.map
@@ -0,0 +1,4 @@
1
+ /** Pure host half for the browser-discovered Agent Teams UI plugin. */
2
+ /** Host plugin body; Team behavior lives in the browser export and Host RPC domain. */
3
+ export declare function apply(): void;
4
+ //# sourceMappingURL=index.d.ts.map
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@deepseek-ai/dsh-experimental-client-ui-agent-team",
3
+ "description": "Web Agent Teams roster, task board, and teammate navigation",
4
+ "version": "0.1.5-alpha.2",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
11
+ "directory": "packages/experimental/client-ui-agent-team"
12
+ },
13
+ "type": "module",
14
+ "main": "lib/index.js",
15
+ "types": "lib/types/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/types/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./client": {
22
+ "types": "./lib/types/client/index.d.ts",
23
+ "default": "./lib/client.js"
24
+ },
25
+ "./src/*": "./src/*",
26
+ "./package.json": "./package.json"
27
+ },
28
+ "dsh": {
29
+ "client": {
30
+ "inject": [
31
+ "@deepseek-ai/dsh-api-remotes",
32
+ "@deepseek-ai/dsh-api-session-controller",
33
+ "@deepseek-ai/dsh-client-locale",
34
+ "@deepseek-ai/dsh-client-ui-conversation",
35
+ "@deepseek-ai/dsh-client-ui-primitives"
36
+ ],
37
+ "platform": "web"
38
+ }
39
+ },
40
+ "license": "MIT",
41
+ "dependencies": {
42
+ "react": "^18.2.0"
43
+ },
44
+ "peerDependencies": {
45
+ "@deepseek-ai/dsh-api-remotes": "^0.1.5-alpha.2",
46
+ "@deepseek-ai/dsh-client-locale": "^0.1.5-alpha.2",
47
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-alpha.2",
48
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.2",
49
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.5-alpha.2",
50
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.5-alpha.2",
51
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.2",
52
+ "@deepseek-ai/dsh-experimental-agent-team": "^0.1.5-alpha.2",
53
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
54
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.2",
55
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.5-alpha.2",
56
+ "@deepseek-ai/cordis": "^4.0.2"
57
+ },
58
+ "devDependencies": {
59
+ "@testing-library/react": "^16.1.0",
60
+ "@types/react": "~18.3.1",
61
+ "react-dom": "^18.2.0",
62
+ "@deepseek-ai/dsh-api-remotes": "^0.1.5-alpha.2",
63
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.5-alpha.2",
64
+ "@deepseek-ai/dsh-client-locale": "^0.1.5-alpha.2",
65
+ "@deepseek-ai/dsh-client-test-runtime": "^0.1.5-alpha.2",
66
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-alpha.2",
67
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.2",
68
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.2",
69
+ "@deepseek-ai/dsh-experimental-agent-team": "^0.1.5-alpha.2",
70
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
71
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.2",
72
+ "@deepseek-ai/cordis": "^4.0.2",
73
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.5-alpha.2",
74
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.5-alpha.2"
75
+ },
76
+ "files": [
77
+ "lib/index.js",
78
+ "lib/client.js",
79
+ "lib/types/**/*.d.ts"
80
+ ],
81
+ "scripts": {
82
+ "bundle": "tsdown",
83
+ "watch": "tsdown --watch"
84
+ }
85
+ }