@dsmm/dsmm 0.3.2 → 0.3.4

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 (190) hide show
  1. package/README.md +2 -2
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +1 -1
  3. package/agent-presets/dsmm-clarifier/agent.cordis.yml +1 -1
  4. package/agent-presets/dsmm-code-search/agent.cordis.yml +1 -1
  5. package/agent-presets/dsmm-coding/agent.cordis.yml +3 -2
  6. package/agent-presets/dsmm-complex/agent.cordis.yml +2 -1
  7. package/agent-presets/dsmm-creative/agent.cordis.yml +1 -1
  8. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1 -1
  9. package/agent-presets/dsmm-deep/agent.cordis.yml +2 -1
  10. package/agent-presets/dsmm-doc-search/agent.cordis.yml +1 -1
  11. package/agent-presets/dsmm-documenting/agent.cordis.yml +1 -1
  12. package/agent-presets/dsmm-frontend/agent.cordis.yml +4 -2
  13. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +1 -1
  14. package/agent-presets/dsmm-media-reader/agent.cordis.yml +1 -1
  15. package/agent-presets/dsmm-normal-task/agent.cordis.yml +3 -2
  16. package/agent-presets/dsmm-oracle/agent.cordis.yml +1 -1
  17. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +1 -1
  18. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +11 -1
  19. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +1 -1
  20. package/agent-presets/dsmm-planner/agent.cordis.yml +1 -1
  21. package/agent-presets/dsmm-quick/agent.cordis.yml +2 -1
  22. package/agent-presets/dsmm-research/agent.cordis.yml +1 -1
  23. package/agent-presets/dsmm-reviewer/agent.cordis.yml +1 -1
  24. package/cordis.patch.yml +0 -9
  25. package/docs/agent-presets.md +5 -5
  26. package/docs/compatibility.md +2 -6
  27. package/docs/migration-from-ocmm.md +1 -1
  28. package/docs/native-permissions.md +11 -3
  29. package/docs/roadmap.md +31 -11
  30. package/docs/runtime-recovery.md +30 -2
  31. package/docs/settings-status.md +7 -5
  32. package/docs/skill-sync.md +13 -14
  33. package/lib/client/ChildrenPanel.d.ts +1 -4
  34. package/lib/client/ChildrenPanel.js +3 -3
  35. package/lib/client/DeploymentFields.js +12 -1
  36. package/lib/client/DeploymentPage.d.ts +1 -3
  37. package/lib/client/DeploymentPage.js +30 -18
  38. package/lib/client/NativeCommandEntries.js +47 -37
  39. package/lib/client/PermissionRuleEntries.d.ts +17 -0
  40. package/lib/client/PermissionRuleEntries.js +70 -0
  41. package/lib/client/PermissionsPanel.d.ts +1 -3
  42. package/lib/client/PermissionsPanel.js +5 -4
  43. package/lib/client/children-locales.d.ts +4 -4
  44. package/lib/client/controller.js +4 -1
  45. package/lib/client/deployment-locales.d.ts +2 -2
  46. package/lib/client/deployment-locales.js +8 -9
  47. package/lib/client/deployment-modules.d.ts +5 -3
  48. package/lib/client/deployment-modules.js +4 -4
  49. package/lib/client/deployment-workspace.d.ts +4 -0
  50. package/lib/client/deployment-workspace.js +37 -11
  51. package/lib/client/index.js +2 -7
  52. package/lib/client/locales.js +131 -119
  53. package/lib/client/permission-controller.d.ts +13 -0
  54. package/lib/client/permission-controller.js +50 -23
  55. package/lib/client/permission-locales.d.ts +28 -30
  56. package/lib/client/permission-locales.js +38 -38
  57. package/lib/client/styles.d.ts +1 -1
  58. package/lib/client/styles.js +8 -8
  59. package/lib/client.js +2272 -3773
  60. package/lib/core-permission-authority.js +28 -16
  61. package/lib/index.d.ts +0 -2
  62. package/lib/index.js +11 -31
  63. package/lib/native-admission.d.ts +3 -3
  64. package/lib/native-admission.js +67 -66
  65. package/lib/permission-controller.js +1 -1
  66. package/lib/permission-fs-search.js +1 -2
  67. package/lib/permission-fs.js +1 -2
  68. package/lib/permission-native-command.js +6 -4
  69. package/lib/permission-settings.d.ts +21 -7
  70. package/lib/permission-settings.js +21 -9
  71. package/lib/permission-web.js +1 -2
  72. package/lib/preset-materializer.js +3 -3
  73. package/lib/preset-registry.d.ts +20 -2
  74. package/lib/preset-registry.js +46 -17
  75. package/lib/profile-diagnostics.js +1 -1
  76. package/lib/profile-remote.js +1 -3
  77. package/lib/role-identity.d.ts +1 -1
  78. package/lib/role-identity.js +16 -4
  79. package/lib/role-policy.d.ts +3 -0
  80. package/lib/role-policy.js +30 -6
  81. package/lib/role-subagents.js +6 -4
  82. package/lib/roles.d.ts +2 -0
  83. package/lib/roles.js +2 -0
  84. package/lib/runtime-integration.js +4 -4
  85. package/lib/settings.d.ts +1 -3
  86. package/lib/settings.js +8 -10
  87. package/lib/state.d.ts +4 -1
  88. package/lib/state.js +37 -6
  89. package/package.json +1 -5
  90. package/prompts/deepwork.md +13 -1
  91. package/prompts/source/agents/orchestrator.md +10 -0
  92. package/prompts/source/category/coding.md +2 -1
  93. package/prompts/source/category/complex.md +1 -0
  94. package/prompts/source/category/deep.md +1 -0
  95. package/prompts/source/category/frontend.md +3 -1
  96. package/prompts/source/category/normal-task.md +2 -1
  97. package/prompts/source/category/quick.md +1 -0
  98. package/prompts/source/deepwork/claude-opus-5.md +2 -0
  99. package/prompts/source/deepwork/default.md +12 -0
  100. package/prompts/source/deepwork/gemini.md +6 -1
  101. package/prompts/source/deepwork/glm.md +5 -1
  102. package/prompts/source/deepwork/gpt.md +22 -2
  103. package/prompts/source/deepwork/kimi-k27.md +2 -0
  104. package/prompts/source/deepwork/planner.md +3 -1
  105. package/prompts/source/deepwork/swe-2.md +2 -0
  106. package/prompts/source/manifest.json +3 -68
  107. package/prompts/source/shared/dsh-host-contract.md +1 -1
  108. package/skills/ast-grep/SKILL.md +1 -1
  109. package/skills/brainstorming/SKILL.md +1 -1
  110. package/skills/coding-agent-sessions/SKILL.md +1 -1
  111. package/skills/debugging/SKILL.md +1 -1
  112. package/skills/dispatching-parallel-agents/SKILL.md +1 -1
  113. package/skills/frontend/SKILL.md +1 -1
  114. package/skills/git-master/SKILL.md +1 -1
  115. package/skills/init-deep/SKILL.md +1 -1
  116. package/skills/receiving-code-review/SKILL.md +1 -1
  117. package/skills/remove-ai-slops/SKILL.md +1 -1
  118. package/skills/requesting-code-review/SKILL.md +1 -1
  119. package/skills/subagent-driven-development/SKILL.md +1 -1
  120. package/skills/using-git-worktrees/SKILL.md +1 -1
  121. package/skills/writing-plans/SKILL.md +1 -1
  122. package/lib/client/ChildPermissions.d.ts +0 -43
  123. package/lib/client/ChildPermissions.js +0 -100
  124. package/lib/client/HistoryContinuation.d.ts +0 -7
  125. package/lib/client/HistoryContinuation.js +0 -22
  126. package/lib/client/PermissionPanelEntry.d.ts +0 -8
  127. package/lib/client/PermissionPanelEntry.js +0 -11
  128. package/lib/client/TemporaryPermissions.d.ts +0 -21
  129. package/lib/client/TemporaryPermissions.js +0 -94
  130. package/lib/client/history-controller.d.ts +0 -29
  131. package/lib/client/history-controller.js +0 -111
  132. package/lib/client/history-entry.d.ts +0 -11
  133. package/lib/client/history-entry.js +0 -106
  134. package/lib/client/history-locales.d.ts +0 -95
  135. package/lib/client/history-locales.js +0 -41
  136. package/lib/client/temporary-permission-client.d.ts +0 -20
  137. package/lib/client/temporary-permission-client.js +0 -52
  138. package/lib/client/temporary-permission-entry.d.ts +0 -6
  139. package/lib/client/temporary-permission-entry.js +0 -56
  140. package/lib/history-candidates.d.ts +0 -30
  141. package/lib/history-candidates.js +0 -176
  142. package/lib/history-codec.d.ts +0 -11
  143. package/lib/history-codec.js +0 -102
  144. package/lib/history-contract.d.ts +0 -44
  145. package/lib/history-contract.js +0 -2
  146. package/lib/history-controller.d.ts +0 -42
  147. package/lib/history-controller.js +0 -329
  148. package/lib/history-policy.d.ts +0 -4
  149. package/lib/history-policy.js +0 -8
  150. package/lib/history-remote.d.ts +0 -28
  151. package/lib/history-remote.js +0 -17
  152. package/lib/history-rpc.d.ts +0 -24
  153. package/lib/history-rpc.js +0 -136
  154. package/lib/history-support.d.ts +0 -15
  155. package/lib/history-support.js +0 -21
  156. package/lib/history-types.d.ts +0 -67
  157. package/lib/history-types.js +0 -2
  158. package/lib/permission-child-control.d.ts +0 -36
  159. package/lib/permission-child-control.js +0 -164
  160. package/lib/permission-exec-argv.d.ts +0 -32
  161. package/lib/permission-exec-argv.js +0 -171
  162. package/lib/permission-temporary-files.d.ts +0 -19
  163. package/lib/permission-temporary-files.js +0 -248
  164. package/lib/permission-temporary-grants.d.ts +0 -106
  165. package/lib/permission-temporary-grants.js +0 -198
  166. package/lib/permission-temporary-install.d.ts +0 -25
  167. package/lib/permission-temporary-install.js +0 -86
  168. package/lib/permission-temporary-remote.d.ts +0 -19
  169. package/lib/permission-temporary-remote.js +0 -75
  170. package/lib/permission-temporary-rpc.d.ts +0 -37
  171. package/lib/permission-temporary-rpc.js +0 -154
  172. package/lib/permission-temporary-types.d.ts +0 -47
  173. package/lib/permission-temporary-types.js +0 -2
  174. package/lib/permission-temporary-web.d.ts +0 -11
  175. package/lib/permission-temporary-web.js +0 -154
  176. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-gateway@0.2.1-rc.2.patch +0 -13291
  177. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-remotes@0.2.1-rc.2.patch +0 -9133
  178. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-client-ui-approval@0.2.1-rc.2.patch +0 -156
  179. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-subagent@0.2.1-rc.2.patch +0 -3546
  180. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-user-approval@0.2.1-rc.2.patch +0 -431
  181. package/patches/dsh-approval-settlement/@deepseek-ai__dsh-web@0.2.1-rc.2.patch +0 -119
  182. package/patches/dsh-approval-settlement/README.md +0 -41
  183. package/patches/dsh-approval-settlement/metadata.json +0 -10
  184. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-loop@0.2.1-rc.2.patch +0 -383
  185. package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-preset-registry@0.2.1-rc.2.patch +0 -55
  186. package/patches/dsh-session-activation/@deepseek-ai__dsh-api-session-controller@0.2.1-rc.2.patch +0 -16673
  187. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-subagent@0.2.1-rc.2.patch +0 -29
  188. package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-workspace@0.2.1-rc.2.patch +0 -196
  189. package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence-jsonl@0.2.1-rc.2.patch +0 -35
  190. 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