@songtonyli/dsh-cli 0.1.54 → 0.1.55

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 (67) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +1 -1
  4. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +7 -7
  5. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +61 -61
  6. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +10 -10
  7. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +49 -49
  8. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +207 -207
  9. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +16 -16
  10. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +153 -153
  11. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +74 -74
  12. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +80 -80
  13. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +39 -39
  14. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +16 -16
  15. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +23 -23
  16. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +37 -37
  17. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +9 -9
  18. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +12 -12
  19. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +31 -31
  20. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +8 -8
  21. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +18 -18
  22. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +22 -22
  23. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +139 -139
  24. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +28 -0
  25. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +11 -0
  26. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +182 -182
  27. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +128 -128
  28. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +49 -49
  29. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +87 -87
  30. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +41 -41
  31. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +13 -13
  32. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/client.js +5 -5
  33. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/lib/client.js +24 -24
  34. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +27 -27
  35. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +42 -42
  36. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +44 -44
  37. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +25 -25
  38. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +9 -9
  39. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +70 -70
  40. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +9 -9
  41. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +18 -18
  42. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +26 -26
  43. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +16 -16
  44. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +11 -11
  45. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +19 -19
  46. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +37 -37
  47. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +27 -27
  48. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +99 -99
  49. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +197 -197
  50. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +73 -73
  51. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +26 -26
  52. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +92 -92
  53. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +2 -2
  54. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +1 -1
  55. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +1 -1
  56. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
  57. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +11 -5
  58. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +4 -0
  59. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +32 -32
  60. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +24 -24
  61. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-DxezulnA.js +1324 -0
  62. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +30 -0
  63. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +68 -0
  64. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +22 -0
  65. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
  66. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +1525 -0
  67. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ /** Schedule-owned use of the shared session durability barrier. */
2
+ /** Failure to prove that the current live prefix reached a persistence listener. */
3
+ export class SchedulePersistenceError extends Error {
4
+ /**
5
+ * Construct a contained persistence failure.
6
+ * @param cause - Rejection returned by the shared barrier, when present.
7
+ */
8
+ constructor(cause) {
9
+ super('Schedule persistence did not complete.', cause === undefined ? undefined : { cause });
10
+ this.name = 'SchedulePersistenceError';
11
+ }
12
+ }
13
+ /**
14
+ * Require one successful shared persistence checkpoint.
15
+ * @param ctx - Context carrying the live session store.
16
+ * @param session - Exact live session to checkpoint.
17
+ * @returns After at least one listener explicitly acknowledges completed durability work.
18
+ */
19
+ export async function flushSchedulePersistence(ctx, session) {
20
+ try {
21
+ if (!await ctx.sessions.flush(session))
22
+ throw new SchedulePersistenceError();
23
+ }
24
+ catch (error) {
25
+ if (error instanceof SchedulePersistenceError)
26
+ throw error;
27
+ throw new SchedulePersistenceError(error);
28
+ }
29
+ }
30
+ //# sourceMappingURL=persistence.js.map
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Strict Session projection of the Schedule domain's active reminder set.
3
+ * @module @deepseek-ai/dsh-schedule/projection
4
+ */
5
+ import { z } from 'zod';
6
+ import { SessionLogOffset } from '@deepseek-ai/dsh-session';
7
+ import { applyScheduleChanges, decodeScheduleChange } from "./domain.js";
8
+ const scheduleId = z.unknown().transform((value, context) => {
9
+ try {
10
+ const change = decodeScheduleChange({ version: 1, operation: 'delete', id: value });
11
+ return change.id;
12
+ }
13
+ catch {
14
+ context.addIssue({ code: 'custom', message: 'invalid Schedule id' });
15
+ return z.NEVER;
16
+ }
17
+ });
18
+ const scheduleRecord = z.unknown().transform((value, context) => {
19
+ try {
20
+ const change = decodeScheduleChange({ version: 1, operation: 'create', schedule: value });
21
+ return change.schedule;
22
+ }
23
+ catch {
24
+ context.addIssue({ code: 'custom', message: 'invalid Schedule record' });
25
+ return z.NEVER;
26
+ }
27
+ });
28
+ const scheduleRecords = z.array(scheduleRecord);
29
+ const scheduleProjectionStateSchema = z.object({
30
+ inheritedEventCount: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).transform(SessionLogOffset),
31
+ active: scheduleRecords,
32
+ seenIds: z.array(scheduleId),
33
+ }).strict().superRefine((state, context) => {
34
+ const seen = new Set(state.seenIds);
35
+ if (seen.size !== state.seenIds.length) {
36
+ context.addIssue({ code: 'custom', message: 'seen Schedule ids must be unique' });
37
+ }
38
+ const active = new Set();
39
+ for (const record of state.active) {
40
+ if (!seen.has(record.id)) {
41
+ context.addIssue({ code: 'custom', message: 'every active Schedule id must have been seen' });
42
+ }
43
+ if (active.has(record.id)) {
44
+ context.addIssue({ code: 'custom', message: 'active Schedule ids must be unique' });
45
+ }
46
+ active.add(record.id);
47
+ }
48
+ });
49
+ /** Projection definition sharing the Schedule domain's strict transition authority. */
50
+ export const scheduleProjectionDefinition = {
51
+ key: 'schedule',
52
+ stateSchema: scheduleProjectionStateSchema,
53
+ init: (_header, inheritedEventCount) => ({ inheritedEventCount, active: [], seenIds: [] }),
54
+ apply: (state, event) => {
55
+ if (event.seq < state.inheritedEventCount || event.type !== 'schedule/change')
56
+ return state;
57
+ return {
58
+ inheritedEventCount: state.inheritedEventCount,
59
+ ...applyScheduleChanges(state, [decodeScheduleChange(event.data)]),
60
+ };
61
+ },
62
+ wire: {
63
+ viewSchema: scheduleRecords,
64
+ view: state => state.active,
65
+ },
66
+ stateVersion: 2,
67
+ };
68
+ //# sourceMappingURL=projection.js.map
@@ -0,0 +1,22 @@
1
+ /** Agent-scoped serialization for Schedule reads and durable mutations. */
2
+ const tails = new WeakMap();
3
+ /**
4
+ * Run one complete Schedule transaction after its exact Agent's prior transaction.
5
+ * @param agent - Exact Schedule owner and serialization key.
6
+ * @param operation - Complete preflight, fold, mutation, and postflight operation.
7
+ * @returns The operation result after exclusive execution.
8
+ */
9
+ export async function runScheduleTransaction(agent, operation) {
10
+ const prior = tails.get(agent) ?? Promise.resolve();
11
+ const run = prior.then(operation);
12
+ const tail = run.then(() => undefined, () => undefined);
13
+ tails.set(agent, tail);
14
+ try {
15
+ return await run;
16
+ }
17
+ finally {
18
+ if (tails.get(agent) === tail)
19
+ tails.delete(agent);
20
+ }
21
+ }
22
+ //# sourceMappingURL=transaction.js.map
@@ -169,8 +169,8 @@ window.__ModuleLoader__.load({
169
169
  });
170
170
  }
171
171
  //#endregion
172
- //#region \0dsh-css:/private/tmp/dsh-fork-sync.ZUgSwG/packages/session-query/session-log-export/src/client/HeaderAction.module.css.mjs
173
- const css = ".kKPQbW_moreButton{width:28px;color:var(--dsw-alias-label-secondary);flex:none;padding:0}.kKPQbW_moreButton svg{width:15px;height:15px}";
172
+ //#region \0dsh-css:/Users/songli/deepseek-harness/packages/session-query/session-log-export/src/client/HeaderAction.module.css.mjs
173
+ const css = ".srMG_G_moreButton{width:28px;color:var(--dsw-alias-label-secondary);flex:none;padding:0}.srMG_G_moreButton svg{width:15px;height:15px}";
174
174
  const tagId = "@deepseek-ai/dsh-session-log-export/HeaderAction.module.css";
175
175
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
176
176
  const tag = document.createElement("style");
@@ -179,7 +179,7 @@ window.__ModuleLoader__.load({
179
179
  tag.textContent = css;
180
180
  document.head.appendChild(tag);
181
181
  }
182
- var HeaderAction_module_css_default = { "moreButton": "kKPQbW_moreButton" };
182
+ var HeaderAction_module_css_default = { "moreButton": "srMG_G_moreButton" };
183
183
  //#endregion
184
184
  //#region lib/types/client/HeaderAction.js
185
185
  /**