@deepseek-ai/dsh-cordis-client-runner 0.1.7-rc.2 → 0.2.0-rc.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.
Files changed (2) hide show
  1. package/lib/client.js +71 -10
  2. package/package.json +6 -6
package/lib/client.js CHANGED
@@ -1329,11 +1329,11 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
1329
1329
  returns: "bounded results, or a business/transport error."
1330
1330
  },
1331
1331
  {
1332
- signature: "fork(opts: { sessionId: SessionId; atSeq?: number; increaseTitle?: boolean }): Promise<SessionId>",
1332
+ signature: "fork(opts: { sessionId: SessionId atSeq?: number increaseTitle?: boolean onCreated?: (childId: SessionId) => void }): Promise<SessionId>",
1333
1333
  description: "Fork a session from an exact inclusive prefix of the source; on resolution the child is catalogued and can be explicitly retained.",
1334
1334
  parameters: [{
1335
1335
  name: "opts",
1336
- description: "source session id, the optional exact inclusive boundary seq (a real event seq the caller already knows; a cut inside an open turn is balanced Host-side with synthetic closers, and omission selects the latest completed-turn prefix), and whether to increment an inherited durable title before resolving."
1336
+ description: "source session id, the optional exact inclusive boundary seq (a real event seq the caller already knows; a cut inside an open turn is balanced Host-side with synthetic closers, and omission selects the latest completed-turn prefix), and whether to increment an inherited durable title before resolving. `onCreated` observes the catalogued child before that optional rename."
1337
1337
  }],
1338
1338
  returns: "the child session id.",
1339
1339
  throws: ["when the fork fails, or when a requested child-title rename fails after creation."]
@@ -1509,13 +1509,16 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
1509
1509
  throws: ["on failure; a refused creation is also shown through the Workspace notice unless a later navigation or disposal superseded the request."]
1510
1510
  },
1511
1511
  {
1512
- signature: "forkSession(sessionId: SessionId): Promise<void>",
1512
+ signature: "forkSession(sessionId: SessionId, onCreated?: (childId: SessionId) => void): Promise<SessionId>",
1513
1513
  description: "Fork a Session without changing the current selection.",
1514
1514
  parameters: [{
1515
1515
  name: "sessionId",
1516
1516
  description: "source Session."
1517
+ }, {
1518
+ name: "onCreated",
1519
+ description: "observer before the optional child-title update."
1517
1520
  }],
1518
- returns: "completion after child creation and inherited-title increment."
1521
+ returns: "the child SessionId after creation and inherited-title increment."
1519
1522
  },
1520
1523
  {
1521
1524
  signature: "connectWorkspace(workspaceId: WorkspaceId): Promise<SessionId>",
@@ -2529,7 +2532,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
2529
2532
  "useProjection: UseProjection",
2530
2533
  "useTrajectory: UseTrajectory"
2531
2534
  ],
2532
- keyDomain: "fixed by the owner's key table { [Kind in ChatNodeKind]: { node: ChatNode<Kind> } }, already taken: assistant-step, command, command-input, compaction, context, manual-compaction, model-retry, steering, system-prompt, tool-call, turn-error, turn-max-tokens, turn-process, turn-tail, turn-trigger, unknown, user, workflow-run",
2535
+ keyDomain: "fixed by the owner's key table { [Kind in ChatNodeKind]: { node: ChatNode<Kind> } }, already taken: assistant-step, command, command-input, compaction, context, manual-compaction, model-retry, question-reply, steering, system-prompt, tool-call, turn-error, turn-max-tokens, turn-process, turn-tail, turn-trigger, unknown, user, workflow-run",
2533
2536
  hookContext: "ChatNodeHookContext",
2534
2537
  slotInject: "ChatNodeInjected",
2535
2538
  declaredBy: "an entry in 'conversation.view' (client-ui-chat), so it exists while that entry is mounted",
@@ -2551,6 +2554,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
2551
2554
  "client-ui-chat UnknownNodeView key 'unknown'",
2552
2555
  "client-ui-goal GoalCommandInputView key 'command-input'",
2553
2556
  "client-ui-tool ToolCallTree key 'tool-call'",
2557
+ "client-ui-user-questions QuestionReplyView key 'question-reply'",
2554
2558
  "client-ui-workflow-run WorkflowRunPanel key 'workflow-run'"
2555
2559
  ],
2556
2560
  replaceRisk: "shadows-shipped-ui",
@@ -3667,7 +3671,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
3667
3671
  slotInject: "",
3668
3672
  declaredBy: "an entry in 'conversation.session.header' (client-ui-conversation), so it exists while that entry is mounted",
3669
3673
  occupants: [
3670
- "client-ui-open-in-app OpenInAppAction id 'open-in-app'",
3674
+ "client-ui-open-in-app SessionOpenInAppAction id 'open-in-app'",
3671
3675
  "client-ui-schedule ScheduleCatalogAction id 'schedule-catalog'",
3672
3676
  "session-log-export SessionLogDownloadHeaderAction id 'session-log-download'"
3673
3677
  ],
@@ -4442,6 +4446,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
4442
4446
  "client-ui-permission-presets PermissionRow id 'permission'",
4443
4447
  "client-ui-settings-general DeveloperToolsRow id 'developer-tools'",
4444
4448
  "client-ui-settings-general CurrentVersionRow id 'current-version'",
4449
+ "client-ui-settings-session-log UploadRow",
4445
4450
  "client-ui-shortcuts ShortcutsRow id 'shortcuts'",
4446
4451
  "client-ui-theme AppearanceRow id 'appearance'",
4447
4452
  "client-ui-theme FontSizeRow id 'font-size'"
@@ -4850,9 +4855,11 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
4850
4855
  declaredBy: "an entry in 'root' (client-ui-layout), so it exists while that entry is mounted",
4851
4856
  occupants: [
4852
4857
  "client-ui-chat QuotaNoticeHost id 'chat.quota-notice'",
4858
+ "client-ui-plugin-manager PluginRefreshToast id 'plugin-manager.refresh-toast'",
4853
4859
  "client-ui-schedule ScheduleDeleteToast id 'schedule.delete-toast'",
4854
4860
  "client-ui-settings-account DesktopOnboardingEntry id 'desktop-onboarding'",
4855
4861
  "client-ui-settings-account AccountPlatformHost id 'account.platform-page'",
4862
+ "client-ui-settings-session-log UploadToast id 'session-log-upload-toast'",
4856
4863
  "client-ui-shortcuts ShortcutReference id 'shortcuts'",
4857
4864
  "client-ui-workspace SessionRenameDialog id 'workspace.session-rename'",
4858
4865
  "client-ui-workspace SessionArchiveConfirmDialog id 'workspace.session-archive'",
@@ -5437,6 +5444,60 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
5437
5444
  example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.right.tab.document.unpreviewable', () => ctx.slots.register(\n { name: 'sidebar.right.tab.document.unpreviewable', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
5438
5445
  source: "packages/client/ui-sidebar-documentpreview/src/client/document/contract.ts:78"
5439
5446
  },
5447
+ {
5448
+ key: "sidebar.right.tab.files.actions",
5449
+ kind: "list",
5450
+ scope: "session",
5451
+ summary: "Workspace directory actions after the file tree's reload control.",
5452
+ doc: "Workspace directory actions after the file tree's reload control.",
5453
+ registerOptions: [
5454
+ {
5455
+ name: "id",
5456
+ requirement: "required",
5457
+ type: "string",
5458
+ doc: "Your cell key. Use an id of your own: a fresh id is added beside the shipped entries, while reusing a shipped id puts you in THAT cell and replaces it. Owners that filter by id address you by it."
5459
+ },
5460
+ {
5461
+ name: "order",
5462
+ requirement: "optional",
5463
+ type: "number",
5464
+ doc: "Position among the entries, ascending (default 0)."
5465
+ },
5466
+ {
5467
+ name: "label",
5468
+ requirement: "optional",
5469
+ type: "string | (() => string)",
5470
+ doc: "Display text where the owner projects one (nav rows, tabs). A thunk is re-read on every projection, so localized text follows the active locale without re-registering."
5471
+ }
5472
+ ],
5473
+ ownerProps: [],
5474
+ ownerPropsReferences: [],
5475
+ standardProps: [
5476
+ "useResource: UseResource",
5477
+ "useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>",
5478
+ "usePanelInfo: UsePanelInfo",
5479
+ "useSessions: UseSessions",
5480
+ "useSessionStatus: UseSessionStatus",
5481
+ "useSessionRetainInfo: UseSessionRetainInfo",
5482
+ "useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>",
5483
+ "useChat: UseChat",
5484
+ "useConversation: UseConversation",
5485
+ "useInput: SnapshotSelectorHook<InputState>",
5486
+ "inputActions: InputActions",
5487
+ "useSession: SessionSnapshotSelector",
5488
+ "sessionId: SessionId",
5489
+ "useProjection: UseProjection",
5490
+ "useTrajectory: UseTrajectory"
5491
+ ],
5492
+ keyDomain: "",
5493
+ hookContext: "",
5494
+ slotInject: "",
5495
+ declaredBy: "an entry in 'sidebar.right.pane.tab' (client-ui-sidebar-files), so it exists while that entry is mounted",
5496
+ occupants: ["client-ui-open-in-app OpenInAppAction id 'open-in-app'"],
5497
+ replaceRisk: "none",
5498
+ example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.right.tab.files.actions', () => ctx.slots.register(\n { name: 'sidebar.right.tab.files.actions', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
5499
+ source: "packages/client/ui-sidebar-files/src/client/index.ts:34"
5500
+ },
5440
5501
  {
5441
5502
  key: "sidebar.right.tab.guide",
5442
5503
  kind: "chain",
@@ -5797,7 +5858,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
5797
5858
  doc: "Display text where the owner projects one (nav rows, tabs). A thunk is re-read on every projection, so localized text follows the active locale without re-registering."
5798
5859
  }
5799
5860
  ],
5800
- ownerProps: ["/** Owner share of one Session row action occurrence: the row the action belongs to. */\nexport interface SessionRowOwnerProps {\n /** Session the row shows. */\n sessionId: SessionId\n /** Row display title: persisted title, project basename, or Session id. */\n displayTitle: string\n}"],
5861
+ ownerProps: ["/** Owner share of one Session row action occurrence: the row the action belongs to. */\nexport interface SessionRowOwnerProps {\n /** Session the row shows. */\n sessionId: SessionId\n /** Row display title: persisted title, or empty when the Session has none. */\n displayTitle: string\n}"],
5801
5862
  ownerPropsReferences: ["SessionId"],
5802
5863
  standardProps: [
5803
5864
  "useResource: UseResource",
@@ -5848,7 +5909,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
5848
5909
  doc: "Display text where the owner projects one (nav rows, tabs). A thunk is re-read on every projection, so localized text follows the active locale without re-registering."
5849
5910
  }
5850
5911
  ],
5851
- ownerProps: ["/** Owner share of one Session row action occurrence: the row the action belongs to. */\nexport interface SessionRowOwnerProps {\n /** Session the row shows. */\n sessionId: SessionId\n /** Row display title: persisted title, project basename, or Session id. */\n displayTitle: string\n}"],
5912
+ ownerProps: ["/** Owner share of one Session row action occurrence: the row the action belongs to. */\nexport interface SessionRowOwnerProps {\n /** Session the row shows. */\n sessionId: SessionId\n /** Row display title: persisted title, or empty when the Session has none. */\n displayTitle: string\n}"],
5852
5913
  ownerPropsReferences: ["SessionId"],
5853
5914
  standardProps: [
5854
5915
  "useResource: UseResource",
@@ -5901,7 +5962,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
5901
5962
  occupants: ["client-ui-attachment MessageImages"],
5902
5963
  replaceRisk: "shadows-shipped-ui",
5903
5964
  example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('tool.call.images', () => ctx.slots.register(\n { name: 'tool.call.images' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
5904
- source: "packages/client/ui-tool/src/client/contract/slots.ts:45"
5965
+ source: "packages/client/ui-tool/src/client/contract/slots.ts:46"
5905
5966
  },
5906
5967
  {
5907
5968
  key: "tool.call.toolview",
@@ -6007,7 +6068,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
6007
6068
  ],
6008
6069
  replaceRisk: "shadows-shipped-ui",
6009
6070
  example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('tool.call.toolview', () => ctx.slots.register(\n { name: 'tool.call.toolview', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
6010
- source: "packages/client/ui-tool/src/client/contract/slots.ts:25"
6071
+ source: "packages/client/ui-tool/src/client/contract/slots.ts:26"
6011
6072
  },
6012
6073
  {
6013
6074
  key: "tool.view.cordis",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-cordis-client-runner",
3
3
  "description": "Browser half of dynamic dual-half plugin packages: event subscription, closure evaluation, guard facade, and loader entries",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -44,12 +44,12 @@
44
44
  "@types/react": "~18.3.1",
45
45
  "react": "^18.2.0",
46
46
  "@deepseek-ai/cordis-plugin-loader": "~1.0.5",
47
- "@deepseek-ai/dsh-client-modules": "0.1.7-rc.2",
48
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
49
- "@deepseek-ai/dsh-client-ui-theme": "0.1.7-rc.2",
47
+ "@deepseek-ai/dsh-client-modules": "0.2.0-rc.2",
48
+ "@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
49
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
50
50
  "@deepseek-ai/cordis": "~4.0.4",
51
- "@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2",
52
- "@deepseek-ai/dsh-util-values": "0.1.7-rc.2"
51
+ "@deepseek-ai/dsh-client-ui-theme": "0.2.0-rc.2",
52
+ "@deepseek-ai/dsh-util-values": "0.2.0-rc.2"
53
53
  },
54
54
  "files": [
55
55
  "lib/index.js",