@dsmm/dsmm 0.3.2 → 0.3.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.
Files changed (110) hide show
  1. package/README.md +2 -2
  2. package/cordis.patch.yml +0 -9
  3. package/docs/agent-presets.md +5 -5
  4. package/docs/compatibility.md +2 -6
  5. package/docs/migration-from-ocmm.md +1 -1
  6. package/docs/roadmap.md +5 -12
  7. package/docs/settings-status.md +1 -1
  8. package/lib/client/ChildrenPanel.d.ts +1 -4
  9. package/lib/client/ChildrenPanel.js +3 -3
  10. package/lib/client/DeploymentPage.d.ts +1 -3
  11. package/lib/client/DeploymentPage.js +2 -2
  12. package/lib/client/PermissionsPanel.d.ts +1 -3
  13. package/lib/client/PermissionsPanel.js +2 -3
  14. package/lib/client/children-locales.d.ts +4 -4
  15. package/lib/client/controller.js +4 -1
  16. package/lib/client/deployment-locales.js +0 -1
  17. package/lib/client/deployment-modules.js +1 -1
  18. package/lib/client/index.js +2 -7
  19. package/lib/client/locales.js +131 -119
  20. package/lib/client/permission-locales.d.ts +0 -26
  21. package/lib/client/permission-locales.js +0 -20
  22. package/lib/client.js +1837 -3634
  23. package/lib/index.d.ts +0 -2
  24. package/lib/index.js +9 -22
  25. package/lib/native-admission.d.ts +0 -3
  26. package/lib/native-admission.js +12 -45
  27. package/lib/permission-fs-search.js +1 -2
  28. package/lib/permission-fs.js +1 -2
  29. package/lib/permission-web.js +1 -2
  30. package/lib/preset-materializer.js +3 -3
  31. package/lib/preset-registry.d.ts +20 -2
  32. package/lib/preset-registry.js +46 -17
  33. package/lib/profile-diagnostics.js +1 -1
  34. package/lib/profile-remote.js +1 -3
  35. package/lib/role-policy.js +2 -2
  36. package/lib/role-subagents.js +2 -1
  37. package/lib/roles.d.ts +2 -0
  38. package/lib/roles.js +2 -0
  39. package/lib/settings.d.ts +1 -3
  40. package/lib/settings.js +4 -9
  41. package/package.json +1 -5
  42. package/lib/client/ChildPermissions.d.ts +0 -43
  43. package/lib/client/ChildPermissions.js +0 -100
  44. package/lib/client/HistoryContinuation.d.ts +0 -7
  45. package/lib/client/HistoryContinuation.js +0 -22
  46. package/lib/client/PermissionPanelEntry.d.ts +0 -8
  47. package/lib/client/PermissionPanelEntry.js +0 -11
  48. package/lib/client/TemporaryPermissions.d.ts +0 -21
  49. package/lib/client/TemporaryPermissions.js +0 -94
  50. package/lib/client/history-controller.d.ts +0 -29
  51. package/lib/client/history-controller.js +0 -111
  52. package/lib/client/history-entry.d.ts +0 -11
  53. package/lib/client/history-entry.js +0 -106
  54. package/lib/client/history-locales.d.ts +0 -95
  55. package/lib/client/history-locales.js +0 -41
  56. package/lib/client/temporary-permission-client.d.ts +0 -20
  57. package/lib/client/temporary-permission-client.js +0 -52
  58. package/lib/client/temporary-permission-entry.d.ts +0 -6
  59. package/lib/client/temporary-permission-entry.js +0 -56
  60. package/lib/history-candidates.d.ts +0 -30
  61. package/lib/history-candidates.js +0 -176
  62. package/lib/history-codec.d.ts +0 -11
  63. package/lib/history-codec.js +0 -102
  64. package/lib/history-contract.d.ts +0 -44
  65. package/lib/history-contract.js +0 -2
  66. package/lib/history-controller.d.ts +0 -42
  67. package/lib/history-controller.js +0 -329
  68. package/lib/history-policy.d.ts +0 -4
  69. package/lib/history-policy.js +0 -8
  70. package/lib/history-remote.d.ts +0 -28
  71. package/lib/history-remote.js +0 -17
  72. package/lib/history-rpc.d.ts +0 -24
  73. package/lib/history-rpc.js +0 -136
  74. package/lib/history-support.d.ts +0 -15
  75. package/lib/history-support.js +0 -21
  76. package/lib/history-types.d.ts +0 -67
  77. package/lib/history-types.js +0 -2
  78. package/lib/permission-child-control.d.ts +0 -36
  79. package/lib/permission-child-control.js +0 -164
  80. package/lib/permission-exec-argv.d.ts +0 -32
  81. package/lib/permission-exec-argv.js +0 -171
  82. package/lib/permission-temporary-files.d.ts +0 -19
  83. package/lib/permission-temporary-files.js +0 -248
  84. package/lib/permission-temporary-grants.d.ts +0 -106
  85. package/lib/permission-temporary-grants.js +0 -198
  86. package/lib/permission-temporary-install.d.ts +0 -25
  87. package/lib/permission-temporary-install.js +0 -86
  88. package/lib/permission-temporary-remote.d.ts +0 -19
  89. package/lib/permission-temporary-remote.js +0 -75
  90. package/lib/permission-temporary-rpc.d.ts +0 -37
  91. package/lib/permission-temporary-rpc.js +0 -154
  92. package/lib/permission-temporary-types.d.ts +0 -47
  93. package/lib/permission-temporary-types.js +0 -2
  94. package/lib/permission-temporary-web.d.ts +0 -11
  95. package/lib/permission-temporary-web.js +0 -154
  96. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-gateway@0.2.1-rc.2.patch +0 -13291
  97. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-remotes@0.2.1-rc.2.patch +0 -9133
  98. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-client-ui-approval@0.2.1-rc.2.patch +0 -156
  99. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-subagent@0.2.1-rc.2.patch +0 -3546
  100. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-user-approval@0.2.1-rc.2.patch +0 -431
  101. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-web@0.2.1-rc.2.patch +0 -119
  102. package/patches/dsh-approval-settlement/README.md +0 -41
  103. package/patches/dsh-approval-settlement/metadata.json +0 -10
  104. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-loop@0.2.1-rc.2.patch +0 -383
  105. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-preset-registry@0.2.1-rc.2.patch +0 -55
  106. package/patches/dsh-session-activation/@deepseek-ai__dsh-api-session-controller@0.2.1-rc.2.patch +0 -16673
  107. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-subagent@0.2.1-rc.2.patch +0 -29
  108. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-workspace@0.2.1-rc.2.patch +0 -196
  109. package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence-jsonl@0.2.1-rc.2.patch +0 -35
  110. package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence@0.2.1-rc.2.patch +0 -40
@@ -1,156 +0,0 @@
1
- diff --git a/lib/client.js b/lib/client.js
2
- index 6adcc345a052ccabeb7785bc6087449d79458122..c42ec3a6323b2f12e09d7543e38ea1e0fad78c9a 100644
3
- --- a/lib/client.js
4
- +++ b/lib/client.js
5
- @@ -38,14 +38,16 @@ window.__ModuleLoader__.load({
6
- function ApprovalPanel(props) {
7
- const approval = props.matched;
8
- const detail = approval.callId === void 0 ? null : props.renderSlot("conversation.approval.detail", { callId: approval.callId });
9
- + const permissions = props.renderSlot("conversation.approval.permissions", { pending: approval });
10
- return (0, react_jsx_runtime.jsx)(ApprovalFlow, {
11
- pending: approval,
12
- reason: approval.displayReason === void 0 ? approval.reason : props.resolveReason(approval.displayReason),
13
- detail,
14
- + permissions,
15
- t: props.t
16
- }, approval.key);
17
- }
18
- - function ApprovalFlow({ pending, reason, detail, t }) {
19
- + function ApprovalFlow({ pending, reason, detail, permissions, t }) {
20
- const [answered, setAnswered] = (0, react.useState)(false);
21
- const waiting = (0, react.useRef)(false);
22
- const active = (0, react.useRef)(true);
23
- @@ -114,6 +116,7 @@ window.__ModuleLoader__.load({
24
- children: detail
25
- })]
26
- }),
27
- + permissions,
28
- (0, react_jsx_runtime.jsxs)("div", {
29
- className: ApprovalPanel_module_css_default.actionRow,
30
- children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
31
- @@ -171,11 +174,15 @@ window.__ModuleLoader__.load({
32
- #onAbort;
33
- #delegated = Symbol("pending approval delegated");
34
- #settled = false;
35
- + #settlement;
36
- + get requestId() { return this.#settlement?.delivery?.requestId; }
37
- + get deliveryId() { return this.#settlement?.delivery?.deliveryId; }
38
- /**
39
- * @param sessionId - Agent/Session identity owning the scoped request.
40
- * @param request - Host approval request projected through the Remote Event.
41
- */
42
- - constructor(sessionId, request) {
43
- + constructor(sessionId, request, settlement) {
44
- + this.#settlement = settlement;
45
- this.sessionId = sessionId;
46
- this.kind = "approval";
47
- nextApprovalKey += 1;
48
- @@ -211,9 +218,11 @@ window.__ModuleLoader__.load({
49
- * Resolve the Host waterfall with the user's decision.
50
- * @param outcome - supported interactive decision.
51
- */
52
- - answer(outcome) {
53
- + answer(outcome, options) {
54
- return settlePendingComposer(() => {
55
- + if ((options?.permit !== undefined || options?.retention !== undefined) && this.deliveryId === undefined) throw new Error('temporary approval requires a negotiated delivery');
56
- this.finish(() => {
57
- + this.#settlement?.(outcome, options);
58
- this.#resolve(outcome);
59
- });
60
- }, "pending approval settlement failed");
61
- @@ -281,7 +290,7 @@ window.__ModuleLoader__.load({
62
- ];
63
- const NS = "approval";
64
- /** Present one request until the user answers or its lifetime ends. */
65
- - async function answerApproval(ctx, owner, request, next, registerPendingInteraction) {
66
- + async function answerApproval(ctx, owner, request, next, registerPendingInteraction, settlement) {
67
- const sessionId = ctx.sessions.scopeOf(owner);
68
- if (sessionId === void 0) return next();
69
- const pending = new PendingApproval(sessionId, {
70
- @@ -290,7 +299,7 @@ window.__ModuleLoader__.load({
71
- ...request.reason === void 0 ? {} : { reason: request.reason },
72
- ...request.displayReason === void 0 ? {} : { displayReason: request.displayReason },
73
- ...request.signal === void 0 ? {} : { signal: request.signal }
74
- - });
75
- + }, settlement);
76
- const completed = Promise.withResolvers();
77
- const remove = registerPendingInteraction(pending, async () => {
78
- pending.delegate();
79
- @@ -347,14 +356,15 @@ window.__ModuleLoader__.load({
80
- select: ({ pendingInteraction }) => pendingInteraction instanceof PendingApproval ? pendingInteraction : null,
81
- locale: NS,
82
- inject: () => ({ resolveReason: (reason) => ctx.locale.resolveText(reason) }),
83
- - children: { "conversation.approval.detail": {
84
- + children: { "conversation.approval.permissions": { kind: "single", scope: "session" }, "conversation.approval.detail": {
85
- kind: "single",
86
- scope: "session"
87
- } }
88
- }, ApprovalPanel));
89
- - ctx.remote.$on("approval/request", function(request, next) {
90
- - return answerApproval(ctx, this, request, next, registerPendingInteraction);
91
- - });
92
- + const listener = function(request, next, settlement) {
93
- + return answerApproval(ctx, this, request, next, registerPendingInteraction, settlement);
94
- + };
95
- + ctx.remote.$on("approval/request", ctx.remote.$approvalAnswerer ? ctx.remote.$approvalAnswerer(listener) : listener);
96
- }
97
- //#endregion
98
- exports.apply = apply;
99
- diff --git a/lib/types/client/contract/slots.d.ts b/lib/types/client/contract/slots.d.ts
100
- index c456cf879fe3f1b26b11cca09408f80d3fb5b2ce..4fbde10dbea50eff044c777736d080f6d38104a2 100644
101
- --- a/lib/types/client/contract/slots.d.ts
102
- +++ b/lib/types/client/contract/slots.d.ts
103
- @@ -3,6 +3,7 @@ import type { ToolCallId } from '@deepseek-ai/dsh-llm';
104
- import type { SessionId } from '@deepseek-ai/dsh-session/types';
105
- import type { PropsLocale, PropsRenderSlots, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
106
- import type { ApprovalKey } from '../locales.ts';
107
- +import type { ApprovalAnswerCompletion } from '@deepseek-ai/dsh-api-gateway/client';
108
- declare module '@deepseek-ai/dsh-client-ui-session/client' {
109
- interface SessionPendingInteractionMap {
110
- /** Pending approval request. */
111
- @@ -15,6 +16,9 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
112
- approval: ApprovalKey;
113
- }
114
- interface SlotMap {
115
- + 'conversation.approval.permissions': {
116
- + kind: 'single'; scope: 'session'; owner: { pending: PendingApproval };
117
- + };
118
- /** Optional detail for the Tool call correlated with an approval request. */
119
- 'conversation.approval.detail': {
120
- kind: 'single';
121
- @@ -50,6 +54,8 @@ export type ApprovalDecision = 'allowed-once' | 'rejected';
122
- export type ApprovalInteractionKind = 'approval';
123
- /** One answerable Client presentation of a pending Host waterfall. */
124
- export declare class PendingApproval {
125
- + readonly requestId: string | undefined;
126
- + readonly deliveryId: string | undefined;
127
- #private;
128
- readonly sessionId: SessionId;
129
- /** Domain discriminator used by Session pending-interaction consumers. */
130
- @@ -70,7 +76,7 @@ export declare class PendingApproval {
131
- * @param sessionId - Agent/Session identity owning the scoped request.
132
- * @param request - Host approval request projected through the Remote Event.
133
- */
134
- - constructor(sessionId: SessionId, request: ApprovalPresentationRequest);
135
- + constructor(sessionId: SessionId, request: ApprovalPresentationRequest, settlement?: ApprovalAnswerCompletion);
136
- /**
137
- * Availability of this pending request after answer or withdrawal.
138
- * @returns whether this request can still accept a decision.
139
- @@ -80,7 +86,7 @@ export declare class PendingApproval {
140
- * Resolve the Host waterfall with the user's decision.
141
- * @param outcome - supported interactive decision.
142
- */
143
- - answer(outcome: ApprovalDecision): Promise<void>;
144
- + answer(outcome: ApprovalDecision, options?: { readonly permit?: string; readonly retention?: string }): Promise<void>;
145
- /** Delegate an unanswered request to the next waterfall listener. */
146
- delegate(): void;
147
- /**
148
- @@ -106,7 +112,7 @@ export interface ApprovalInjected {
149
- resolveReason(reason: NonNullable<ApprovalPresentationRequest['displayReason']>): string;
150
- }
151
- /** Full props of the approval composer takeover. */
152
- -export type ApprovalComposerProps = PropsRuntime<'conversation.composer'> & PropsRenderSlots<'conversation.approval.detail'> & {
153
- +export type ApprovalComposerProps = PropsRuntime<'conversation.composer'> & PropsRenderSlots<'conversation.approval.detail' | 'conversation.approval.permissions'> & {
154
- matched: PendingApproval;
155
- } & PropsLocale<'approval'> & ApprovalInjected;
156
- //# sourceMappingURL=slots.d.ts.map