dsh-live-teams 0.1.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.
Files changed (69) hide show
  1. package/LICENSE +176 -0
  2. package/NOTICE +11 -0
  3. package/README.md +85 -0
  4. package/cordis.patch.yml +25 -0
  5. package/lib/binding.d.ts +18 -0
  6. package/lib/binding.js +42 -0
  7. package/lib/changed-paths.d.ts +26 -0
  8. package/lib/changed-paths.js +69 -0
  9. package/lib/client.js +6753 -0
  10. package/lib/command-queue.d.ts +60 -0
  11. package/lib/command-queue.js +185 -0
  12. package/lib/compatibility.js +109 -0
  13. package/lib/context-provider.d.ts +110 -0
  14. package/lib/context-provider.js +249 -0
  15. package/lib/dispatch.d.ts +174 -0
  16. package/lib/dispatch.js +624 -0
  17. package/lib/errors.d.ts +36 -0
  18. package/lib/errors.js +103 -0
  19. package/lib/git-artifacts.d.ts +50 -0
  20. package/lib/git-artifacts.js +242 -0
  21. package/lib/index.d.ts +14 -0
  22. package/lib/index.js +14 -0
  23. package/lib/mailbox.d.ts +274 -0
  24. package/lib/mailbox.js +721 -0
  25. package/lib/member-tools.d.ts +57 -0
  26. package/lib/member-tools.js +1265 -0
  27. package/lib/migrations.d.ts +17 -0
  28. package/lib/migrations.js +47 -0
  29. package/lib/plugin.d.ts +106 -0
  30. package/lib/plugin.js +1003 -0
  31. package/lib/roles.d.ts +35 -0
  32. package/lib/roles.js +284 -0
  33. package/lib/routes.d.ts +586 -0
  34. package/lib/routes.js +2816 -0
  35. package/lib/scope.d.ts +62 -0
  36. package/lib/scope.js +133 -0
  37. package/lib/session-bridge.d.ts +76 -0
  38. package/lib/session-bridge.js +147 -0
  39. package/lib/session-title.js +35 -0
  40. package/lib/storage.d.ts +9 -0
  41. package/lib/storage.js +65 -0
  42. package/lib/task-store.d.ts +729 -0
  43. package/lib/task-store.js +2205 -0
  44. package/lib/team-store.d.ts +216 -0
  45. package/lib/team-store.js +765 -0
  46. package/lib/tree-snapshot.d.ts +28 -0
  47. package/lib/tree-snapshot.js +80 -0
  48. package/lib/types/client/TeamView.d.ts +26 -0
  49. package/lib/types/client/TeamView.dom.test.d.ts +1 -0
  50. package/lib/types/client/api.d.ts +522 -0
  51. package/lib/types/client/api.test.d.ts +1 -0
  52. package/lib/types/client/attention.d.ts +65 -0
  53. package/lib/types/client/attention.test.d.ts +1 -0
  54. package/lib/types/client/index.d.ts +31 -0
  55. package/lib/types/client/locales.d.ts +577 -0
  56. package/lib/types/client/member-name.d.ts +14 -0
  57. package/lib/types/client/member-name.test.d.ts +1 -0
  58. package/lib/types/client/roster.d.ts +26 -0
  59. package/lib/types/client/roster.test.d.ts +1 -0
  60. package/lib/types/client/styles.d.ts +3 -0
  61. package/package.json +104 -0
  62. package/roles/builder.md +40 -0
  63. package/roles/delegate.md +36 -0
  64. package/roles/lead.md +46 -0
  65. package/roles/oracle.md +36 -0
  66. package/roles/researcher.md +37 -0
  67. package/roles/reviewer.md +45 -0
  68. package/roles/scout.md +36 -0
  69. package/roles/verifier.md +36 -0
@@ -0,0 +1,57 @@
1
+ import { MailboxService } from "./mailbox.js";
2
+ import { MemberRecord, TeamState } from "./team-store.js";
3
+ import { TaskStore } from "./task-store.js";
4
+ import { ToolDefinition } from "@deepseek-ai/dsh-tools";
5
+ //#region src/member-tools.d.ts
6
+ export declare const MEMBER_TOOL_NAMES: readonly ["live_team_send", "live_team_ack_message", "live_team_context", "live_team_status", "live_team_brief", "live_team_member_note", "live_team_grant", "live_team_dispatch", "live_team_create_task", "live_team_read_task", "live_team_list_tasks", "live_team_claim_task", "live_team_ack_task", "live_team_submit", "live_team_review", "live_team_update_task", "live_team_accept_task", "live_team_revise_task", "live_team_revoke_task"];
7
+ export type MemberToolsBinding = {
8
+ readonly mailbox: MailboxService;
9
+ readonly teamId: string;
10
+ readonly teamName: string;
11
+ readonly member: MemberRecord;
12
+ readonly team: TeamState;
13
+ readonly workspacePath?: string;
14
+ readonly live: (member: MemberRecord) => boolean;
15
+ readonly taskStore?: TaskStore;
16
+ readonly setMemberNote?: (memberId: string, note: string, actor: string) => Promise<{
17
+ memberId: string;
18
+ note: string;
19
+ }>;
20
+ readonly appendAudit?: (event: unknown) => Promise<void>;
21
+ readonly updateContactGrant?: (from: string, to: string, action: 'add' | 'remove', actor: string) => Promise<{
22
+ grants: {
23
+ from: string;
24
+ to: string;
25
+ grantedBy: string;
26
+ at: number;
27
+ }[];
28
+ }>;
29
+ /** Flip the dispatch switch under the tool's own lead check (B29). */
30
+ readonly setDispatch?: (request: {
31
+ mode: 'auto' | 'paused';
32
+ actor: string;
33
+ reason?: string;
34
+ }) => Promise<{
35
+ from: string;
36
+ to: string;
37
+ }>;
38
+ };
39
+ export type MemberToolsResolver = (sessionId: string) => Promise<MemberToolsBinding | undefined>;
40
+ type ToolRegistry = {
41
+ register: (tool: ToolDefinition) => unknown;
42
+ };
43
+ export type MemberToolsOptions = {
44
+ includeContext?: boolean;
45
+ includeContact?: boolean;
46
+ includeTasks?: boolean;
47
+ includeSubmissions?: boolean;
48
+ includeReview?: boolean;
49
+ includeAcceptance?: boolean;
50
+ includeDispatch?: boolean;
51
+ };
52
+ /** Mount B13 only when the optional tools service is present. */
53
+ export declare function registerMemberToolsIfAvailable(registry: ToolRegistry | undefined, resolve: MemberToolsResolver, options?: MemberToolsOptions | boolean, legacyB18?: boolean, legacyB19?: boolean, legacyB20?: boolean): boolean;
54
+ /** Register the member-tool surface. Object options prevent positional flag drift as gates grow. */
55
+ export declare function registerMemberTools(registry: ToolRegistry, resolve: MemberToolsResolver, options?: MemberToolsOptions | boolean, legacyB18?: boolean, legacyB19?: boolean, legacyB20?: boolean): void;
56
+ //#endregion
57
+ export type { ToolRegistry };