@linxin666/dsh-client-ui-task-board-ssh 0.4.22 → 0.4.23

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.
package/lib/index.js CHANGED
@@ -5312,6 +5312,7 @@ async function runResult(engine, taskId, args) {
5312
5312
  function buildUnifiedTool(engine) {
5313
5313
  return defineTool({
5314
5314
  name: "task_board_ssh",
5315
+ environment: "explicit",
5315
5316
  description: [
5316
5317
  "Run a task board card on a remote host over SSH, end to end, with the fewest calls: task_board_ssh {action:\"create\", title, prompt, host, workspacePath, run:true, wait:true} creates the card WITH its target, checks the host/agent/directory first, starts the run and blocks until it settles - one call.",
5317
5318
  "Actions: create (new card bound to a target; run:true starts it, wait:true blocks for the verdict), bind (set or replace the target of an existing card), read (current target plus the host aliases), run (start a bound direct card and get its handle: executionId, runId, logPath, target, estimatedDurationMs), status (one uniform shape whether running or settled: phase, exitCode, result, summary, error{code,message,retryHint}, durationMs, remoteSessionId, lastActivityAt, plus lastActivity = the agent's last tool call while running; wait:true with timeoutMs blocks until it settles), log (the run log with thinking_tokens/system noise removed; tail N lines or since a cursor, at most 64 KB per reply, stats.filteredLines/filteredBytes tell the cost first; statsOnly:true returns only the counts; raw:true skips the filter), followup (one more instruction for the remote session; kind rework asks again for wrong work).",
@@ -5467,6 +5468,7 @@ function buildUnifiedTool(engine) {
5467
5468
  function buildTargetTool(engine) {
5468
5469
  return defineTool({
5469
5470
  name: "task_board_ssh_target",
5471
+ environment: "explicit",
5470
5472
  description: "Compatibility entry of task_board_ssh (actions read and bind). Read or pin the SSH execution target of one task board card; pinning now checks the host, the agent program and the directory first and refuses with a stable code before anything is saved. direct mode starts a headless agent on the host and keeps no local session; proxy mode runs a local session that drives the host. Stable refusal codes: host-unreachable (alias unknown to dsh-ssh or the host did not answer: fix the alias or the dsh-ssh credentials), agent-missing (the agent name is not one of dsh/claude/codex/custom, or its program is not on the host PATH), path-missing (an in-place directory does not exist; it is never created), permission-required (the directory exists but the ssh user cannot write it, or a human must confirm in the board UI), run-active (the card already has a run in flight: wait for it or cancel it), invalid-target (the other target fields are malformed; issues says which).",
5471
5473
  parameters: {
5472
5474
  action: {
@@ -5504,6 +5506,7 @@ function buildTargetTool(engine) {
5504
5506
  function buildStatusTool(engine) {
5505
5507
  return defineTool({
5506
5508
  name: "task_board_ssh_status",
5509
+ environment: "independent",
5507
5510
  description: "Compatibility entry of task_board_ssh (actions status and log). Read the remote run state of one card. `state` is the uniform shape (phase, exitCode, result, summary, error, durationMs, remoteSessionId, lastActivityAt) for a running and a settled run alike; wait:true with timeoutMs blocks until it settles. `status` keeps the older shape with the run history. Pass logOffset/logLimit for one raw byte page of the log, or tail/since for the filtered log (at most 64 KB by default).",
5508
5511
  parameters: {
5509
5512
  taskId: {
@@ -5600,6 +5603,7 @@ function buildStatusTool(engine) {
5600
5603
  function buildFollowUpTool(engine) {
5601
5604
  return defineTool({
5602
5605
  name: "task_board_ssh_follow_up",
5606
+ environment: "independent",
5603
5607
  description: "Compatibility entry of task_board_ssh (action followup). Send one more instruction to the remote agent session of a task board card. On a card whose run is still going the instruction waits for that run to finish and then continues the same remote session; on a settled card it re-enters the card run with the earlier session resumed. An agent that cannot resume degrades to a fresh run that carries the previous summary, which the execution record says.",
5604
5608
  parameters: {
5605
5609
  taskId: {
@@ -33,7 +33,7 @@ interface SettingsFormBinder {
33
33
  namespace: string;
34
34
  }): ConfigForm<T>;
35
35
  }
36
- declare module '@deepseek-ai/dsh-client-ui-slots' {
36
+ declare module '@deepseek-ai/dsh-client-ui-slots/client' {
37
37
  interface SlotMap {
38
38
  /** Provider task-detail section; the board declares and renders it. */
39
39
  'task-board.detail.section': {
@@ -18,7 +18,7 @@
18
18
  *
19
19
  * @module dsh-task-board-ssh/client/ssh/settings-section
20
20
  */
21
- import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
21
+ import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots/client';
22
22
  import type { SnapshotStore } from '@deepseek-ai/dsh-client-store';
23
23
  import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
24
24
  import { type CardActions, type CardShell, type FieldState } from '../settings-form.ts';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-client-ui-task-board-ssh",
3
3
  "description": "Task board provider that runs a pinned card as a headless agent session on a remote host reached through dsh-ssh, with a POSIX launcher that survives the local host going away.",
4
- "version": "0.4.22",
4
+ "version": "0.4.23",
5
5
  "icon": "icon.svg",
6
6
  "type": "module",
7
7
  "engines": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dsh": {
27
27
  "engines": {
28
- "dsh": ">=0.2.3-alpha.2"
28
+ "dsh": ">=0.2.3-alpha.4"
29
29
  },
30
30
  "bundle": {
31
31
  "patch": "./cordis.patch.yml"
@@ -41,29 +41,29 @@
41
41
  }
42
42
  },
43
43
  "peerDependencies": {
44
- "@deepseek-ai/dsh": ">=0.2.3-alpha.2",
45
- "react": "^18.2.0"
44
+ "@deepseek-ai/dsh": ">=0.2.3-alpha.4",
45
+ "react": "^19.3.1"
46
46
  },
47
47
  "dependencies": {
48
- "@deepseek-ai/schemastery": "~3.20.0-alpha.1"
48
+ "@deepseek-ai/schemastery": "~3.20.0-alpha.3"
49
49
  },
50
50
  "devDependencies": {
51
- "@deepseek-ai/cordis": "~4.2.0-alpha.1",
52
- "@deepseek-ai/dsh-api-gateway": "^0.2.3-alpha.2",
53
- "@deepseek-ai/dsh-client-locale": "^0.2.3-alpha.2",
54
- "@deepseek-ai/dsh-client-store": "^0.2.3-alpha.2",
55
- "@deepseek-ai/dsh-client-ui-renderer": "^0.2.3-alpha.2",
56
- "@deepseek-ai/dsh-client-ui-settings": "^0.2.3-alpha.2",
57
- "@deepseek-ai/dsh-client-ui-slots": "^0.2.3-alpha.2",
58
- "@deepseek-ai/dsh-llm": "^0.2.3-alpha.2",
59
- "@deepseek-ai/dsh-tools": "^0.2.3-alpha.2",
60
- "@testing-library/react": "^16.1.0",
51
+ "@deepseek-ai/cordis": "~4.2.0-alpha.3",
52
+ "@deepseek-ai/dsh-api-gateway": "^0.2.3-alpha.4",
53
+ "@deepseek-ai/dsh-client-locale": "^0.2.3-alpha.4",
54
+ "@deepseek-ai/dsh-client-store": "^0.2.3-alpha.4",
55
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.3-alpha.4",
56
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.3-alpha.4",
57
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.3-alpha.4",
58
+ "@deepseek-ai/dsh-llm": "^0.2.3-alpha.4",
59
+ "@deepseek-ai/dsh-tools": "^0.2.3-alpha.4",
60
+ "@testing-library/react": "^16.3.3",
61
61
  "@types/node": "^22.20.0",
62
- "@types/react": "~18.3.1",
63
- "@types/react-dom": "^18.3.5",
62
+ "@types/react": "~19.3.2",
63
+ "@types/react-dom": "~19.3.0",
64
64
  "jsdom": "^26.0.0",
65
- "react": "^18.3.1",
66
- "react-dom": "^18.3.1",
65
+ "react": "^19.3.1",
66
+ "react-dom": "^19.3.1",
67
67
  "tsdown": "0.22.2",
68
68
  "typescript": "~5.7.2",
69
69
  "vitest": "^4.1.11"
@@ -24,7 +24,7 @@ import type {} from '@deepseek-ai/dsh-client-ui-settings/client'
24
24
  import type {} from '@deepseek-ai/dsh-client-locale/client'
25
25
  // Type-only: pulls the renderer's Context merge (ctx.slots) and uiRenderer.
26
26
  import type {} from '@deepseek-ai/dsh-client-ui-renderer/client'
27
- import type {} from '@deepseek-ai/dsh-client-ui-slots'
27
+ import type {} from '@deepseek-ai/dsh-client-ui-slots/client'
28
28
  import { SshSettingsCardController, SshSettingsSection, type SshSettings } from './ssh/settings-section.tsx'
29
29
  import { installSshClientHalf, type ExtensionEnabledSource } from './ssh/extension.ts'
30
30
  import { en, setRuntimeTranslate, zh, type TaskBoardSshKey } from './locales.ts'
@@ -55,7 +55,7 @@ interface SettingsFormBinder {
55
55
  bind<T>(spec: { namespace: string }): ConfigForm<T>
56
56
  }
57
57
 
58
- declare module '@deepseek-ai/dsh-client-ui-slots' {
58
+ declare module '@deepseek-ai/dsh-client-ui-slots/client' {
59
59
  interface SlotMap {
60
60
  /** Provider task-detail section; the board declares and renders it. */
61
61
  'task-board.detail.section': { kind: 'list'; scope: 'root'; owner: import('./seat-props.ts').SshDetailSectionProps }
@@ -18,7 +18,7 @@
18
18
  *
19
19
  * @module dsh-task-board-ssh/client/ssh/settings-section
20
20
  */
21
- import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
21
+ import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots/client'
22
22
  import type { SnapshotStore } from '@deepseek-ai/dsh-client-store'
23
23
  import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client'
24
24
  import { BooleanField, ChoiceField, PluginSettingsCard, ValueField } from '../PluginSettingsCard.tsx'
package/src/host/tools.ts CHANGED
@@ -280,6 +280,7 @@ async function runResult(engine: SshRunEngine, taskId: string, args: Record<stri
280
280
  function buildUnifiedTool(engine: SshRunEngine): ToolDefinition {
281
281
  return defineTool({
282
282
  name: 'task_board_ssh',
283
+ environment: 'explicit',
283
284
  description: [
284
285
  'Run a task board card on a remote host over SSH, end to end, with the fewest calls: task_board_ssh {action:"create", title, prompt, host, workspacePath, run:true, wait:true} creates the card WITH its target, checks the host/agent/directory first, starts the run and blocks until it settles - one call.',
285
286
  'Actions: create (new card bound to a target; run:true starts it, wait:true blocks for the verdict), bind (set or replace the target of an existing card), read (current target plus the host aliases), run (start a bound direct card and get its handle: executionId, runId, logPath, target, estimatedDurationMs), status (one uniform shape whether running or settled: phase, exitCode, result, summary, error{code,message,retryHint}, durationMs, remoteSessionId, lastActivityAt, plus lastActivity = the agent\'s last tool call while running; wait:true with timeoutMs blocks until it settles), log (the run log with thinking_tokens/system noise removed; tail N lines or since a cursor, at most 64 KB per reply, stats.filteredLines/filteredBytes tell the cost first; statsOnly:true returns only the counts; raw:true skips the filter), followup (one more instruction for the remote session; kind rework asks again for wrong work).',
@@ -352,6 +353,7 @@ function buildUnifiedTool(engine: SshRunEngine): ToolDefinition {
352
353
  function buildTargetTool(engine: SshRunEngine): ToolDefinition {
353
354
  return defineTool({
354
355
  name: 'task_board_ssh_target',
356
+ environment: 'explicit',
355
357
  description: 'Compatibility entry of task_board_ssh (actions read and bind). Read or pin the SSH execution target of one task board card; pinning now checks the host, the agent program and the directory first and refuses with a stable code before anything is saved. direct mode starts a headless agent on the host and keeps no local session; proxy mode runs a local session that drives the host. ' + CODE_HELP,
356
358
  parameters: {
357
359
  action: { type: 'string', required: true, enum: ['read', 'set'], description: 'read reports the current pin and the hosts available; set stores a new pin.' },
@@ -377,6 +379,7 @@ function buildTargetTool(engine: SshRunEngine): ToolDefinition {
377
379
  function buildStatusTool(engine: SshRunEngine): ToolDefinition {
378
380
  return defineTool({
379
381
  name: 'task_board_ssh_status',
382
+ environment: 'independent',
380
383
  description: 'Compatibility entry of task_board_ssh (actions status and log). Read the remote run state of one card. `state` is the uniform shape (phase, exitCode, result, summary, error, durationMs, remoteSessionId, lastActivityAt) for a running and a settled run alike; wait:true with timeoutMs blocks until it settles. `status` keeps the older shape with the run history. Pass logOffset/logLimit for one raw byte page of the log, or tail/since for the filtered log (at most 64 KB by default).',
381
384
  parameters: {
382
385
  taskId: { type: 'string', required: true, description: 'Card whose remote run to inspect.' },
@@ -422,6 +425,7 @@ function buildStatusTool(engine: SshRunEngine): ToolDefinition {
422
425
  function buildFollowUpTool(engine: SshRunEngine): ToolDefinition {
423
426
  return defineTool({
424
427
  name: 'task_board_ssh_follow_up',
428
+ environment: 'independent',
425
429
  description: 'Compatibility entry of task_board_ssh (action followup). Send one more instruction to the remote agent session of a task board card. On a card whose run is still going the instruction waits for that run to finish and then continues the same remote session; on a settled card it re-enters the card run with the earlier session resumed. An agent that cannot resume degrades to a fresh run that carries the previous summary, which the execution record says.',
426
430
  parameters: {
427
431
  taskId: { type: 'string', required: true, description: 'Card whose remote session receives the instruction.' },