docs(dingtalk): document the DingTalk plugin and register it with the doc gates
Add bilingual READMEs for the three packages and their group tables, register the dingtalk Remote's service role and catalog page, and regenerate the catalogs, graphs, and composition reference.
This commit is contained in:
1 parent
36377f459f
commit
26f4abb49d
27 files changed
+1128
-1
No files matched your search
@@ -108,6 +108,9 @@ flowchart LR
|
||||
svc_jobController["ctx.jobController<br/>Host job Remote controller"]
|
||||
pkg_api_settings_controller["api-settings-controller"]
|
||||
svc_credentialsController["ctx.credentialsController<br/>Host credential-surface Remote controller"]
|
||||
pkg_dingtalk_cli["dingtalk-cli"]
|
||||
svc_dingtalk["ctx.dingtalk<br/>DingTalk dws account Remote"]
|
||||
pkg_client_ui_dingtalk["client-ui-dingtalk"]
|
||||
svc_settingsController["ctx.settingsController<br/>Host settings-surface Remote controller"]
|
||||
pkg_api_workspace_files["api-workspace-files"]
|
||||
svc_workspaceFiles["ctx.workspaceFiles<br/>Host workspace file Remote service"]
|
||||
@@ -356,6 +359,7 @@ flowchart LR
|
||||
pkg_deepseek_account --> svc_deepseekAccount
|
||||
pkg_deepseek_account_platform --> svc_deepseekAccount
|
||||
pkg_deepseek_llm_api_extensions --> svc_deepseekLlmApiExtensions
|
||||
pkg_dingtalk_cli --> svc_dingtalk
|
||||
pkg_experimental_agent_team --> svc_agentTeams
|
||||
pkg_experimental_api_speech_to_text --> svc_speechController
|
||||
pkg_experimental_browser_use_chrome_devtools_mcp --> svc_browserUse
|
||||
@@ -514,6 +518,7 @@ flowchart LR
|
||||
svc_deepseekAccount --> pkg_api_account_controller
|
||||
svc_deepseekAccount --> pkg_llm_deepseek
|
||||
svc_deepseekLlmApiExtensions --> pkg_llm_deepseek
|
||||
svc_dingtalk --> pkg_client_ui_dingtalk
|
||||
svc_directoryPicker --> pkg_api_workspace_controller
|
||||
svc_dynamicCordisRunner --> pkg_tool_cordis
|
||||
svc_fileReferences --> pkg_api_session_controller
|
||||
@@ -679,6 +684,7 @@ flowchart LR
|
||||
| `ctx.sessionSkillCatalog` | `core` | [`api-session-controller`](../packages/api/session-controller) | - | - | - | Lists the Session composition's user-invocable skills without activating a cold Agent. |
|
||||
| `ctx.jobController` | `core` | [`api-job-controller`](../packages/api/job-controller) | - | - | - | Streams one background job's observation record over the generated Remote namespace; the roster stays on the session control stream. |
|
||||
| `ctx.credentialsController` | `core` | [`api-settings-controller`](../packages/api/settings-controller) | - | - | - | Projects the credential-reference seam onto the generated Remote namespace: batch fan-out, view projection, and refusal mapping live here, not on the seam Definition. |
|
||||
| `ctx.dingtalk` | `service` | [`dingtalk-cli`](../packages/connector/dingtalk-cli) | - | [`client-ui-dingtalk`](../packages/client/ui-dingtalk) | - | Prepares the pinned dws release, runs one Host-owned dws account check, sign-in, or sign-out at a time, and streams the account view to the Plugins page. |
|
||||
| `ctx.settingsController` | `core` | [`api-settings-controller`](../packages/api/settings-controller) | - | - | - | Projects the user-settings seam onto the generated Remote namespace: the read is always redacted and every refusal is classified here, not on the seam Definition. |
|
||||
| `ctx.workspaceFiles` | `core` | [`api-workspace-files`](../packages/api/workspace-files) | - | - | - | Serves stat, paged text, byte windows, directory listings, and the change feed for files inside a Session's workspace root, confined by lstat, containment, and a stat re-check. |
|
||||
| `ctx.workspaceChanges` | `core` | [`workspace-changes`](../packages/deliverables/workspace-changes) | - | - | - | Serves the summary each workspace/changes event announced and each listed file's turn-start and turn-end comparison, by Session and event sequence, until that Session is disposed; the log carries only the turn. |
|
||||
|
||||
@@ -110,6 +110,9 @@ flowchart LR
|
||||
svc_jobController["ctx.jobController<br/>Host job Remote controller"]
|
||||
pkg_api_settings_controller["api-settings-controller"]
|
||||
svc_credentialsController["ctx.credentialsController<br/>Host credential-surface Remote controller"]
|
||||
pkg_dingtalk_cli["dingtalk-cli"]
|
||||
svc_dingtalk["ctx.dingtalk<br/>DingTalk dws account Remote"]
|
||||
pkg_client_ui_dingtalk["client-ui-dingtalk"]
|
||||
svc_settingsController["ctx.settingsController<br/>Host settings-surface Remote controller"]
|
||||
pkg_api_workspace_files["api-workspace-files"]
|
||||
svc_workspaceFiles["ctx.workspaceFiles<br/>Host workspace file Remote service"]
|
||||
@@ -358,6 +361,7 @@ flowchart LR
|
||||
pkg_deepseek_account --> svc_deepseekAccount
|
||||
pkg_deepseek_account_platform --> svc_deepseekAccount
|
||||
pkg_deepseek_llm_api_extensions --> svc_deepseekLlmApiExtensions
|
||||
pkg_dingtalk_cli --> svc_dingtalk
|
||||
pkg_experimental_agent_team --> svc_agentTeams
|
||||
pkg_experimental_api_speech_to_text --> svc_speechController
|
||||
pkg_experimental_browser_use_chrome_devtools_mcp --> svc_browserUse
|
||||
@@ -516,6 +520,7 @@ flowchart LR
|
||||
svc_deepseekAccount --> pkg_api_account_controller
|
||||
svc_deepseekAccount --> pkg_llm_deepseek
|
||||
svc_deepseekLlmApiExtensions --> pkg_llm_deepseek
|
||||
svc_dingtalk --> pkg_client_ui_dingtalk
|
||||
svc_directoryPicker --> pkg_api_workspace_controller
|
||||
svc_dynamicCordisRunner --> pkg_tool_cordis
|
||||
svc_fileReferences --> pkg_api_session_controller
|
||||
@@ -681,6 +686,7 @@ flowchart LR
|
||||
| `ctx.sessionSkillCatalog` | `core` | [`api-session-controller`](../packages/api/session-controller) | - | - | - | 在不激活冷 Agent 的前提下列出 Session 组合中允许用户调用的 skill。 |
|
||||
| `ctx.jobController` | `core` | [`api-job-controller`](../packages/api/job-controller) | - | - | - | 经生成的 Remote namespace 流式发送一个后台任务的观测 record;名册仍在会话控制流上。 |
|
||||
| `ctx.credentialsController` | `core` | [`api-settings-controller`](../packages/api/settings-controller) | - | - | - | 把凭据引用 seam 投影到生成的 Remote namespace:批量扇出、视图投影与拒绝映射都在这里,而不在 seam Definition 上。 |
|
||||
| `ctx.dingtalk` | `service` | [`dingtalk-cli`](../packages/connector/dingtalk-cli) | - | [`client-ui-dingtalk`](../packages/client/ui-dingtalk) | - | 准备固定版本的 dws,同一时间在 Host 上运行一个 dws 账号检查、登录或退出登录,并把账号视图推送给插件页。 |
|
||||
| `ctx.settingsController` | `core` | [`api-settings-controller`](../packages/api/settings-controller) | - | - | - | 把用户设置 seam 投影到生成的 Remote namespace:读取一律脱敏,所有拒绝在这里分类,而不在 seam Definition 上。 |
|
||||
| `ctx.workspaceFiles` | `core` | [`api-workspace-files`](../packages/api/workspace-files) | - | - | - | 为会话工作区根内的文件提供 stat、分页文本、字节窗口、目录列举与变更流,经 lstat、包含关系与 stat 重检限定。 |
|
||||
| `ctx.workspaceChanges` | `core` | [`workspace-changes`](../packages/deliverables/workspace-changes) | - | - | - | Serves the summary each workspace/changes event announced and each listed file's turn-start and turn-end comparison, by Session and event sequence, until that Session is disposed; the log carries only the turn. |
|
||||
|
||||
@@ -875,6 +875,26 @@ export interface Config {
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-deepseek-account-platform -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-dingtalk-cli -->
|
||||
<a id="deepseek-aidsh-dingtalk-cli"></a>
|
||||
|
||||
## `@deepseek-ai/dsh-dingtalk-cli`
|
||||
|
||||
- `inject`: `skills` · `subprocess` · `shellEnv`
|
||||
- `refs`: [`CliAccountConfig`](../packages/connector/cli-account/src/index.ts)
|
||||
- `source`: [`packages/connector/dingtalk-cli/src/index.ts:32`](../packages/connector/dingtalk-cli/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Where dws and its skills come from and how long a command that does not wait for the user may run. */
|
||||
export interface Config extends CliAccountConfig {
|
||||
/** Directory holding the upstream skills laid out as `multi/` in the release's `dws-skills.zip`; when set, they are not downloaded. */
|
||||
skillsDir?: string
|
||||
/** Release download prefixes tried in order for what `binDir` and `skillsDir` do not provide; each serves `v<version>/<asset name>`. */
|
||||
releaseUrls: string[]
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-dingtalk-cli -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-agent-team -->
|
||||
<a id="deepseek-aidsh-experimental-agent-team"></a>
|
||||
|
||||
@@ -4983,6 +5003,7 @@ Imported as libraries by other packages; a `cordis.yml` cannot load them.
|
||||
| `@deepseek-ai/dsh-cmdline` | — | [`packages/boot/cmdline/src/index.ts`](../packages/boot/cmdline/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-cua-bundle` | — | [`packages/experimental/cua-bundle/src/index.ts`](../packages/experimental/cua-bundle/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-deque` | — | [`packages/util/deque/src/index.ts`](../packages/util/deque/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-dingtalk` | — | [`packages/connector/dingtalk/src/index.ts`](../packages/connector/dingtalk/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-experimental-agent-team-profile` | — | [`packages/experimental/agent-team-profile/src/index.ts`](../packages/experimental/agent-team-profile/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-experimental-badge-skill-bundle` | — | [`packages/experimental/badge-skill-bundle/src/index.ts`](../packages/experimental/badge-skill-bundle/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-experimental-browser-use-runtime` | — | [`packages/experimental/browser-use-runtime/src/index.ts`](../packages/experimental/browser-use-runtime/src/index.ts) |
|
||||
|
||||
@@ -877,6 +877,26 @@ export interface Config {
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-deepseek-account-platform -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-dingtalk-cli -->
|
||||
<a id="deepseek-aidsh-dingtalk-cli"></a>
|
||||
|
||||
## `@deepseek-ai/dsh-dingtalk-cli`
|
||||
|
||||
- `inject`: `skills` · `subprocess` · `shellEnv`
|
||||
- `refs`: [`CliAccountConfig`](../packages/connector/cli-account/src/index.ts)
|
||||
- `source`: [`packages/connector/dingtalk-cli/src/index.ts:32`](../packages/connector/dingtalk-cli/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Where dws and its skills come from and how long a command that does not wait for the user may run. */
|
||||
export interface Config extends CliAccountConfig {
|
||||
/** Directory holding the upstream skills laid out as `multi/` in the release's `dws-skills.zip`; when set, they are not downloaded. */
|
||||
skillsDir?: string
|
||||
/** Release download prefixes tried in order for what `binDir` and `skillsDir` do not provide; each serves `v<version>/<asset name>`. */
|
||||
releaseUrls: string[]
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-dingtalk-cli -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-agent-team -->
|
||||
<a id="deepseek-aidsh-experimental-agent-team"></a>
|
||||
|
||||
@@ -4985,6 +5005,7 @@ export interface Config {
|
||||
| `@deepseek-ai/dsh-cmdline` | — | [`packages/boot/cmdline/src/index.ts`](../packages/boot/cmdline/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-cua-bundle` | — | [`packages/experimental/cua-bundle/src/index.ts`](../packages/experimental/cua-bundle/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-deque` | — | [`packages/util/deque/src/index.ts`](../packages/util/deque/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-dingtalk` | — | [`packages/connector/dingtalk/src/index.ts`](../packages/connector/dingtalk/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-experimental-agent-team-profile` | — | [`packages/experimental/agent-team-profile/src/index.ts`](../packages/experimental/agent-team-profile/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-experimental-badge-skill-bundle` | — | [`packages/experimental/badge-skill-bundle/src/index.ts`](../packages/experimental/badge-skill-bundle/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-experimental-browser-use-runtime` | — | [`packages/experimental/browser-use-runtime/src/index.ts`](../packages/experimental/browser-use-runtime/src/index.ts) |
|
||||
|
||||
@@ -169,6 +169,7 @@ flowchart TD
|
||||
pkg_client_ui_conversation["client-ui-conversation"]
|
||||
pkg_client_ui_deepseek_model_label_1017["client-ui-deepseek-model-label-1017"]
|
||||
pkg_client_ui_deliverables["client-ui-deliverables"]
|
||||
pkg_client_ui_dingtalk["client-ui-dingtalk"]
|
||||
pkg_client_ui_directory_picker_browse["client-ui-directory-picker-browse"]
|
||||
pkg_client_ui_directory_picker_native["client-ui-directory-picker-native"]
|
||||
pkg_client_ui_dockkit["client-ui-dockkit"]
|
||||
@@ -232,6 +233,8 @@ flowchart TD
|
||||
end
|
||||
subgraph group_connector["packages/connector"]
|
||||
pkg_cli_account["cli-account"]
|
||||
pkg_dingtalk["dingtalk"]
|
||||
pkg_dingtalk_cli["dingtalk-cli"]
|
||||
end
|
||||
subgraph group_context["packages/context"]
|
||||
pkg_agent_instructions["agent-instructions"]
|
||||
@@ -1554,6 +1557,7 @@ flowchart TD
|
||||
| [`client-ui-conversation`](../packages/client/ui-conversation) | `client` | — |
|
||||
| [`client-ui-deepseek-model-label-1017`](../packages/client/ui-deepseek-model-label-1017) | `client` | — |
|
||||
| [`client-ui-deliverables`](../packages/client/ui-deliverables) | `client` | — |
|
||||
| [`client-ui-dingtalk`](../packages/client/ui-dingtalk) | `client` | — |
|
||||
| [`client-ui-directory-picker-browse`](../packages/client/ui-directory-picker-browse) | `client` | — |
|
||||
| [`client-ui-directory-picker-native`](../packages/client/ui-directory-picker-native) | `client` | — |
|
||||
| [`client-ui-dockkit`](../packages/client/ui-dockkit) | `client` | — |
|
||||
@@ -1604,6 +1608,7 @@ flowchart TD
|
||||
| [`client-ui-workflow-run`](../packages/client/ui-workflow-run) | `client` | — |
|
||||
| [`client-ui-workspace`](../packages/client/ui-workspace) | `client` | — |
|
||||
| [`client-web`](../packages/client/web) | `client` | — |
|
||||
| [`dingtalk`](../packages/connector/dingtalk) | `connector` | — |
|
||||
| [`credentials`](../packages/credentials/credentials) | `credentials` | — |
|
||||
| [`office-to-pdf`](../packages/document/office-to-pdf) | `document` | — |
|
||||
| [`client-ui-action-cards`](../packages/experimental/client-ui-action-cards) | `experimental` | — |
|
||||
|
||||
@@ -171,6 +171,7 @@ flowchart TD
|
||||
pkg_client_ui_conversation["client-ui-conversation"]
|
||||
pkg_client_ui_deepseek_model_label_1017["client-ui-deepseek-model-label-1017"]
|
||||
pkg_client_ui_deliverables["client-ui-deliverables"]
|
||||
pkg_client_ui_dingtalk["client-ui-dingtalk"]
|
||||
pkg_client_ui_directory_picker_browse["client-ui-directory-picker-browse"]
|
||||
pkg_client_ui_directory_picker_native["client-ui-directory-picker-native"]
|
||||
pkg_client_ui_dockkit["client-ui-dockkit"]
|
||||
@@ -234,6 +235,8 @@ flowchart TD
|
||||
end
|
||||
subgraph group_connector["packages/connector"]
|
||||
pkg_cli_account["cli-account"]
|
||||
pkg_dingtalk["dingtalk"]
|
||||
pkg_dingtalk_cli["dingtalk-cli"]
|
||||
end
|
||||
subgraph group_context["packages/context"]
|
||||
pkg_agent_instructions["agent-instructions"]
|
||||
@@ -1556,6 +1559,7 @@ flowchart TD
|
||||
| [`client-ui-conversation`](../packages/client/ui-conversation) | `client` | — |
|
||||
| [`client-ui-deepseek-model-label-1017`](../packages/client/ui-deepseek-model-label-1017) | `client` | — |
|
||||
| [`client-ui-deliverables`](../packages/client/ui-deliverables) | `client` | — |
|
||||
| [`client-ui-dingtalk`](../packages/client/ui-dingtalk) | `client` | — |
|
||||
| [`client-ui-directory-picker-browse`](../packages/client/ui-directory-picker-browse) | `client` | — |
|
||||
| [`client-ui-directory-picker-native`](../packages/client/ui-directory-picker-native) | `client` | — |
|
||||
| [`client-ui-dockkit`](../packages/client/ui-dockkit) | `client` | — |
|
||||
@@ -1606,6 +1610,7 @@ flowchart TD
|
||||
| [`client-ui-workflow-run`](../packages/client/ui-workflow-run) | `client` | — |
|
||||
| [`client-ui-workspace`](../packages/client/ui-workspace) | `client` | — |
|
||||
| [`client-web`](../packages/client/web) | `client` | — |
|
||||
| [`dingtalk`](../packages/connector/dingtalk) | `connector` | — |
|
||||
| [`credentials`](../packages/credentials/credentials) | `credentials` | — |
|
||||
| [`office-to-pdf`](../packages/document/office-to-pdf) | `document` | — |
|
||||
| [`client-ui-action-cards`](../packages/experimental/client-ui-action-cards) | `experimental` | — |
|
||||
|
||||
@@ -367,6 +367,51 @@ abstract getDeviceIdentity(): Promise<{ deviceId?: string; userId?: AccountUserI
|
||||
|
||||
Source: [`packages/credentials/deepseek-account/src/index.ts`](../../packages/credentials/deepseek-account/src/index.ts)
|
||||
|
||||
<a id="ctxdingtalk--dingtalk"></a>
|
||||
|
||||
### `ctx.dingtalk` — `Dingtalk`
|
||||
|
||||
Registers the CLI and its skill, and owns the account operations the Plugins page drives.
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* Check the account again without changing it; installs dws and its skills first while either is missing.
|
||||
* @returns the operation identity.
|
||||
* @throws while another operation runs.
|
||||
*/
|
||||
@Remote check(): CliOperationId
|
||||
|
||||
/**
|
||||
* Sign in through the browser authorization page that dws serves to this computer.
|
||||
* @returns the operation identity.
|
||||
* @throws while another operation runs.
|
||||
*/
|
||||
@Remote signIn(): CliOperationId
|
||||
|
||||
/**
|
||||
* Sign the current account out, which also signs it out of the user's own terminal.
|
||||
* @returns the operation identity.
|
||||
* @throws while another operation runs.
|
||||
*/
|
||||
@Remote signOut(): CliOperationId
|
||||
|
||||
/**
|
||||
* Cancel a sign-in while it waits for the user's authorization, and wait for its command to exit.
|
||||
* @param id - the operation to cancel; a finished one or another step is ignored.
|
||||
* @returns after the operation settles, or at once when nothing is cancelled.
|
||||
*/
|
||||
@Remote cancel(id: CliOperationId): Promise<void>
|
||||
|
||||
/**
|
||||
* Follow the account and its operations independently of any page; each new subscriber starts a check when none runs.
|
||||
* @param signal - the Client's observation lifetime.
|
||||
* @returns the current view, then each changed view.
|
||||
*/
|
||||
@Remote({ mode: 'stream' }) async *follow(signal: AbortSignal): AsyncIterable<DingtalkState>
|
||||
```
|
||||
|
||||
Source: [`packages/connector/dingtalk-cli/src/index.ts`](../../packages/connector/dingtalk-cli/src/index.ts)
|
||||
|
||||
<a id="authorization-events"></a>
|
||||
|
||||
### `authorization/*` events
|
||||
|
||||
@@ -367,6 +367,51 @@ abstract getDeviceIdentity(): Promise<{ deviceId?: string; userId?: AccountUserI
|
||||
|
||||
Source: [`packages/credentials/deepseek-account/src/index.ts`](../../packages/credentials/deepseek-account/src/index.ts)
|
||||
|
||||
<a id="ctxdingtalk--dingtalk"></a>
|
||||
|
||||
### `ctx.dingtalk` — `Dingtalk`
|
||||
|
||||
Registers the CLI and its skill, and owns the account operations the Plugins page drives.
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* Check the account again without changing it; installs dws and its skills first while either is missing.
|
||||
* @returns the operation identity.
|
||||
* @throws while another operation runs.
|
||||
*/
|
||||
@Remote check(): CliOperationId
|
||||
|
||||
/**
|
||||
* Sign in through the browser authorization page that dws serves to this computer.
|
||||
* @returns the operation identity.
|
||||
* @throws while another operation runs.
|
||||
*/
|
||||
@Remote signIn(): CliOperationId
|
||||
|
||||
/**
|
||||
* Sign the current account out, which also signs it out of the user's own terminal.
|
||||
* @returns the operation identity.
|
||||
* @throws while another operation runs.
|
||||
*/
|
||||
@Remote signOut(): CliOperationId
|
||||
|
||||
/**
|
||||
* Cancel a sign-in while it waits for the user's authorization, and wait for its command to exit.
|
||||
* @param id - the operation to cancel; a finished one or another step is ignored.
|
||||
* @returns after the operation settles, or at once when nothing is cancelled.
|
||||
*/
|
||||
@Remote cancel(id: CliOperationId): Promise<void>
|
||||
|
||||
/**
|
||||
* Follow the account and its operations independently of any page; each new subscriber starts a check when none runs.
|
||||
* @param signal - the Client's observation lifetime.
|
||||
* @returns the current view, then each changed view.
|
||||
*/
|
||||
@Remote({ mode: 'stream' }) async *follow(signal: AbortSignal): AsyncIterable<DingtalkState>
|
||||
```
|
||||
|
||||
Source: [`packages/connector/dingtalk-cli/src/index.ts`](../../packages/connector/dingtalk-cli/src/index.ts)
|
||||
|
||||
<a id="authorization-events"></a>
|
||||
|
||||
### `authorization/*` events
|
||||
|
||||
@@ -83,6 +83,7 @@ The kernel packages boot and serve the page; the UI feature packages present it.
|
||||
| [`ui-settings-subagent/`](ui-settings-subagent/README.md) | Provides the Subagent settings page on the Plugins page | — |
|
||||
| [`ui-settings-web-search/`](ui-settings-web-search/README.md) | Provides the web-search settings page on the Plugins page | — |
|
||||
| [`ui-cli-account/`](ui-cli-account/README.md) | Shares the account section, tag, activation prompt, confirmations, and notices that CLI app plugins show on the Plugins page | — |
|
||||
| [`ui-dingtalk/`](ui-dingtalk/README.md) | Shows the DingTalk plugin's account section, tag, activation guidance, and notices on the Plugins page | — |
|
||||
| [`ui-plugin-manager/`](ui-plugin-manager/README.md) | Contributes the sidebar Plugins panel: install, enable, disable, retry, and compose installed packages | — |
|
||||
| [`ui-entry-customization/`](ui-entry-customization/README.md) | Adds region-local More menus that pin or unpin plugin launchers and start a plugin draft | — |
|
||||
| [`ui-plugin-market/`](ui-plugin-market/README.md) | Contributes the Discover tab to the Plugins page: browse market indexes and install their bundles | — |
|
||||
|
||||
@@ -83,6 +83,7 @@ kind: "package-group"
|
||||
| [`ui-settings-subagent/`](ui-settings-subagent/README.zh.md) | 在插件页提供子智能体设置页 | — |
|
||||
| [`ui-settings-web-search/`](ui-settings-web-search/README.zh.md) | 在插件页提供网页搜索设置页 | — |
|
||||
| [`ui-cli-account/`](ui-cli-account/README.zh.md) | 提供 CLI 应用插件在插件页共用的账号区块、标签、开启引导、确认和提示 | — |
|
||||
| [`ui-dingtalk/`](ui-dingtalk/README.zh.md) | 在插件页显示钉钉插件的账号区块、连接标签、开启引导和提示 | — |
|
||||
| [`ui-plugin-manager/`](ui-plugin-manager/README.zh.md) | 贡献侧栏的“插件”面板:安装、启用、停用、重试与组合已安装的包 | — |
|
||||
| [`ui-entry-customization/`](ui-entry-customization/README.zh.md) | 添加分区域的“更多”菜单,固定或收起插件入口,并开始创建插件的草稿 | — |
|
||||
| [`ui-plugin-market/`](ui-plugin-market/README.zh.md) | 为“插件”页面贡献“发现”标签页:浏览市场索引并安装其中的组合包 | — |
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/client/ui-dingtalk/README.md
|
||||
/:
|
||||
en: 9c02b86812ac6d60
|
||||
zh: 4172274229d6c7ca
|
||||
/deepseek-ai-dsh-client-ui-dingtalk:
|
||||
en: e4fea969e44e3fef
|
||||
zh: 053c532829383d91
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/summary:
|
||||
en: 13454cb5bad19eb5
|
||||
zh: 50d92c87a1d7120a
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/table-of-contents:
|
||||
en: d152484eb41ac6b4
|
||||
zh: 09388d293f9be9cb
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/use-this-package:
|
||||
en: 1a461c2d18572624
|
||||
zh: 393f9da580782a1a
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/understand-the-implementation:
|
||||
en: 05755372a9d516d1
|
||||
zh: 7c348e7681de9672
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/further-exploration:
|
||||
en: 78bfde4e4be100f8
|
||||
zh: a6ce3b114881cf77
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/model-experience:
|
||||
en: 012af7ceabf177e8
|
||||
zh: 6371e371985e2783
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/model-experience/kv-cache-effect:
|
||||
en: ca75c51c89c2c9b0
|
||||
zh: 2064958b0754647e
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/known-limitations-and-deferred-work:
|
||||
en: a526722a542578e2
|
||||
zh: af5eaa02102befff
|
||||
/deepseek-ai-dsh-client-ui-dingtalk/known-limitations-and-deferred-work/dev-note:
|
||||
en: e67f633dc6fe7773
|
||||
zh: 8ec3e73528ddb1a6
|
||||
@@ -0,0 +1,92 @@
|
||||
---
|
||||
description: "The DingTalk plugin's page on the Plugins page: sign in, check, and sign out of DingTalk without starting a conversation."
|
||||
kind: "package-reference"
|
||||
---
|
||||
|
||||
# @deepseek-ai/dsh-client-ui-dingtalk
|
||||
|
||||
English | [中文](README.zh.md)
|
||||
|
||||
## Summary
|
||||
|
||||
This package is the browser row of the [DingTalk plugin](../../connector/dingtalk/README.md). While the plugin is on, its page on the **Plugins** page shows a **DingTalk account** section where the user signs in and out without starting a conversation. Every operation runs on the Host through the [`dingtalk` Remote](../../connector/dingtalk-cli/README.md#account-operations); the page shows its progress and result.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Use this package](#use-this-package)
|
||||
- [Understand the implementation](#understand-the-implementation)
|
||||
- [Further Exploration](#further-exploration)
|
||||
- [Model Experience](#model-experience)
|
||||
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
||||
- [Dev Note](#dev-note)
|
||||
|
||||
-----
|
||||
|
||||
<a id="use-this-package"></a>
|
||||
## Use this package
|
||||
|
||||
Install the [DingTalk plugin bundle](../../connector/dingtalk/README.md), which inserts this package as the `ui-dingtalk` row. Opening the plugin's page checks the account, and a tag beside the title reads Not connected, Connecting, Connected, Unconfirmed, or Not running. Switching the plugin on from the list while the account is not connected offers **Connect DingTalk**, which opens the plugin's page and starts the sign-in.
|
||||
|
||||
| Section state | Action |
|
||||
|---|---|
|
||||
| Checking connection | None; while the Host downloads dws or its skills, the status reads Downloading dws and its skills |
|
||||
| Not connected | **Connect DingTalk** opens the DingTalk authorization page; the section notes that an organization administrator must turn on CLI access first |
|
||||
| Waiting for authorization on the DingTalk page | The browser that clicked opens the authorization page once; **Open authorization page** opens it again, and **Cancel** ends the sign-in |
|
||||
| Connecting | None; the Host checks that dws reports the account signed in |
|
||||
| Connected | Shows the signed-in user and organization; **Sign out** asks for confirmation, then signs out the current account |
|
||||
| Signing out | None |
|
||||
| Cannot confirm sign-in right now | **Retry** checks the account again; when the download of dws or its skills did not finish, the section says so and **Retry** downloads again |
|
||||
| DingTalk component not running | The Host's `dingtalk` row did not load; the section points to the component list for the reason, and **Retry** subscribes to the Host again |
|
||||
|
||||
Leaving the page does not cancel a sign-in, which the Host owns. The authorization page opens from the user's own click, because browsers block a window that opens long after it. A failed sign-in, sign-out, or check shows a failure notice with the command and exit code; a failed sign-in also names CLI access as a cause to check. A failed page action shows a toast, and so does a finished sign-in or sign-out. The section notes that the account is shared with `dws` in the computer's terminal and that turning the plugin off does not sign it out, and the sign-out confirmation says that the terminal is signed out of the account too while other organizations' accounts stay signed in.
|
||||
|
||||
-----
|
||||
|
||||
<a id="understand-the-implementation"></a>
|
||||
## Understand the implementation
|
||||
|
||||
<details>
|
||||
<summary>Implementation internals — click to expand</summary>
|
||||
|
||||
The Host half, [`src/index.ts`](src/index.ts), is an empty `apply`, present only so the package holds the Loader row the client module system serves the browser half for. The browser half, [`src/client/index.ts`](src/client/index.ts), mounts the `dingtalk` Remote itself with `ctx.remote.$mount`, because the shipped Remote assembly does not include on-demand packages, and withdraws its registrations before unmounting it.
|
||||
|
||||
[`src/client/connection.ts`](src/client/connection.ts) creates one `CliAccountConnection` from the [CLI plugin page pieces](../ui-cli-account/README.md) per browser plugin over the `dingtalk` Remote, and derives the page state from the Host's view alone. That connection opens a link only for the operation this browser started, only once, and only over HTTPS. [`src/client/DingtalkConnection.tsx`](src/client/DingtalkConnection.tsx) renders the shared section, sign-out confirmation, tag, activation prompt, and toast with the DingTalk actions; the Web shell supplies the shared library as a platform module, so this package's bundle does not include it. It registers `plugins.bundle.config` keyed by `@deepseek-ai/dsh-dingtalk` for the section, `plugins.bundle.activation` for the guidance, `plugins.detail.badge` for the tag, and a `shell.overlay` toast. The page's copy, including the keys the shared pieces read, lives in this package's `dingtalk` dictionary.
|
||||
|
||||
</details>
|
||||
|
||||
-----
|
||||
|
||||
<a id="further-exploration"></a>
|
||||
## Further Exploration
|
||||
|
||||
- [DingTalk plugin](../../connector/dingtalk/README.md) — the bundle that inserts this row and the Host row.
|
||||
- [DingTalk CLI and skills](../../connector/dingtalk-cli/README.md) — the Host row and the account operations this page drives.
|
||||
- [CLI plugin page pieces](../ui-cli-account/README.md) — the shared connection mirror and components this page renders.
|
||||
- [ui-plugin-manager](../ui-plugin-manager/README.md) — the Plugins page and the bundle slots the page registers into.
|
||||
|
||||
-----
|
||||
|
||||
<a id="model-experience"></a>
|
||||
## Model Experience
|
||||
|
||||
None, as the package is a browser-side page that registers no model surface.
|
||||
|
||||
#### KV Cache effect
|
||||
|
||||
None; this package neither assembles nor sends a provider request.
|
||||
|
||||
## Known Limitations and Deferred Work
|
||||
|
||||
<a id="known-limitations-and-deferred-work"></a>
|
||||
|
||||
- The page checks the account each time it subscribes and has no periodic check, so a sign-in or sign-out in the user's terminal appears after the page reopens.
|
||||
|
||||
<a id="dev-note"></a>
|
||||
### Dev Note
|
||||
|
||||
<details>
|
||||
<summary>Working context for maintainers — click to expand</summary>
|
||||
|
||||
None.
|
||||
|
||||
</details>
|
||||
@@ -0,0 +1,92 @@
|
||||
---
|
||||
description: "钉钉插件在插件页上的页面:不必开始对话即可登录、检查和退出钉钉。"
|
||||
kind: "package-reference"
|
||||
---
|
||||
|
||||
# @deepseek-ai/dsh-client-ui-dingtalk
|
||||
|
||||
[English](README.md) | 中文
|
||||
|
||||
## 概述
|
||||
|
||||
本包是[钉钉插件](../../connector/dingtalk/README.zh.md)的浏览器行。插件开启期间,它在**插件**页面的插件详情中显示**钉钉账号**区块,用户不必开始对话就能在这里登录和退出。每个操作都通过 [`dingtalk` Remote](../../connector/dingtalk-cli/README.zh.md#account-operations) 在 Host 上执行;页面显示其进度和结果。
|
||||
|
||||
## 目录
|
||||
|
||||
- [使用本包](#use-this-package)
|
||||
- [理解实现](#understand-the-implementation)
|
||||
- [进一步探索](#further-exploration)
|
||||
- [模型体验](#model-experience)
|
||||
- [已知限制与延期工作](#known-limitations-and-deferred-work)
|
||||
- [开发备注](#dev-note)
|
||||
|
||||
-----
|
||||
|
||||
<a id="use-this-package"></a>
|
||||
## 使用本包
|
||||
|
||||
安装[钉钉插件 bundle](../../connector/dingtalk/README.zh.md),它会把本包作为 `ui-dingtalk` 行插入。打开插件详情会检查账号,标题旁的标签显示未连接、连接中、已连接、待确认或未运行。账号未连接时,从列表开启插件会提供**连接钉钉**,它会打开插件详情并开始登录。
|
||||
|
||||
| 区块状态 | 操作 |
|
||||
|---|---|
|
||||
| 正在检查连接 | 无;Host 下载 dws 或其技能期间,状态显示正在下载 dws 及其技能 |
|
||||
| 未连接 | **连接钉钉**打开钉钉授权页面;区块说明需要组织管理员先开启 CLI 访问 |
|
||||
| 等待在钉钉页面授权 | 点击的浏览器会打开一次授权页面;**打开授权页面**再次打开它,**取消**结束登录 |
|
||||
| 正在连接 | 无;Host 检查 dws 是否报告该账号已登录 |
|
||||
| 已连接 | 显示已登录的用户和组织;**退出登录**先请求确认,再退出当前账号 |
|
||||
| 正在退出登录 | 无 |
|
||||
| 暂时无法确认登录状态 | **重试**重新检查账号;dws 或其技能没有下载完成时,区块会说明,**重试**会重新下载 |
|
||||
| 钉钉组件未运行 | Host 的 `dingtalk` 行没有加载;区块引导用户到组件列表查看原因,**重试**会重新订阅 Host |
|
||||
|
||||
离开页面不会取消登录,登录归 Host 所有。授权页面由用户自己的点击打开,因为浏览器会拦截很久之后才打开的窗口。登录、退出登录或检查失败时显示失败提示,附带命令和退出码;登录失败时还会提示检查 CLI 访问是否已开启。页面操作失败时显示提示条,登录或退出登录完成时也会显示。区块说明账号与这台电脑终端里的 `dws` 共用,关闭插件不会退出登录;退出确认说明终端也会退出这个账号,其他组织的账号保持登录。
|
||||
|
||||
-----
|
||||
|
||||
<a id="understand-the-implementation"></a>
|
||||
## 理解实现
|
||||
|
||||
<details>
|
||||
<summary>实现细节 — 点击展开</summary>
|
||||
|
||||
Host 部分 [`src/index.ts`](src/index.ts) 是一个空的 `apply`,它的存在只是为了让本包持有一个 Loader 行,客户端模块系统据此提供浏览器部分。浏览器部分 [`src/client/index.ts`](src/client/index.ts) 用 `ctx.remote.$mount` 自行挂载 `dingtalk` Remote,因为随产品发布的 Remote 集合不包含按需安装的包;卸载前它会先撤下自己的注册。
|
||||
|
||||
[`src/client/connection.ts`](src/client/connection.ts) 为每个浏览器插件在 `dingtalk` Remote 上创建一个来自 [CLI 插件页零件](../ui-cli-account/README.zh.md)的 `CliAccountConnection`,并只根据 Host 的视图推导页面状态。该连接只为本浏览器发起的操作打开链接,只打开一次,并且只用 HTTPS。[`src/client/DingtalkConnection.tsx`](src/client/DingtalkConnection.tsx) 用钉钉的操作渲染共享的区块、退出确认、标签、激活提示和提示条;Web shell 以平台模块提供该共享库,因此本包的 bundle 不包含它。它注册以 `@deepseek-ai/dsh-dingtalk` 为 key 的 `plugins.bundle.config` 作为区块,`plugins.bundle.activation` 作为引导,`plugins.detail.badge` 作为标签,以及一个 `shell.overlay` 提示条。页面文案,包括共享零件读取的键,都在本包的 `dingtalk` 字典中。
|
||||
|
||||
</details>
|
||||
|
||||
-----
|
||||
|
||||
<a id="further-exploration"></a>
|
||||
## 进一步探索
|
||||
|
||||
- [钉钉插件](../../connector/dingtalk/README.zh.md) — 插入本行和 Host 行的 bundle。
|
||||
- [钉钉 CLI 与技能](../../connector/dingtalk-cli/README.zh.md) — Host 行,以及本页面发起的账号操作。
|
||||
- [CLI 插件页零件](../ui-cli-account/README.zh.md) — 本页面渲染的共享连接镜像和组件。
|
||||
- [ui-plugin-manager](../ui-plugin-manager/README.zh.md) — 插件页,以及本页面注册进去的 bundle 插槽。
|
||||
|
||||
-----
|
||||
|
||||
<a id="model-experience"></a>
|
||||
## 模型体验
|
||||
|
||||
无,本包是浏览器端页面,不注册任何面向模型的内容。
|
||||
|
||||
#### KV Cache 影响
|
||||
|
||||
无;本包既不组装也不发送 provider 请求。
|
||||
|
||||
## 已知限制与延期工作
|
||||
|
||||
<a id="known-limitations-and-deferred-work"></a>
|
||||
|
||||
- 页面每次订阅时检查账号,没有定期检查,因此在用户终端里的登录或退出会在页面重新打开后显示。
|
||||
|
||||
<a id="dev-note"></a>
|
||||
### 开发备注
|
||||
|
||||
<details>
|
||||
<summary>维护者工作上下文 — 点击展开</summary>
|
||||
|
||||
无。
|
||||
|
||||
</details>
|
||||
@@ -25,6 +25,8 @@ Each application plugin in this group is installed into a profile to use one thi
|
||||
| Package | Role | ctx key |
|
||||
|---|---|---|
|
||||
| [`cli-account/`](cli-account/README.md) | Runs a vendor CLI by its absolute path, gives the model that path in runtime context, and runs one Host-owned account operation at a time for CLI app plugins | — |
|
||||
| [`dingtalk/`](dingtalk/README.md) | Bundles the DingTalk plugin: the `dws` Host row and its Plugins page row | — |
|
||||
| [`dingtalk-cli/`](dingtalk-cli/README.md) | Downloads the pinned official `dws` and its skills, puts `dws` on the private Shell PATH, registers its skill, and runs the account operations the Plugins page drives | `ctx.dingtalk`; registers on `ctx.skills` and `ctx.shellEnv` |
|
||||
|
||||
-----
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ kind: "package-group"
|
||||
| 包 | 职责 | ctx 键 |
|
||||
|---|---|---|
|
||||
| [`cli-account/`](cli-account/README.zh.md) | 为 CLI 应用插件按绝对路径运行厂商 CLI,在运行时上下文中把这个路径告诉模型,并在 Host 上一次执行一个账号操作 | — |
|
||||
| [`dingtalk/`](dingtalk/README.zh.md) | 打包钉钉插件:`dws` Host 行及其插件页行 | — |
|
||||
| [`dingtalk-cli/`](dingtalk-cli/README.zh.md) | 下载固定版本的官方 `dws` 及其技能,把 `dws` 放进私有 Shell PATH,注册其 skill,并执行插件页发起的账号操作 | `ctx.dingtalk`;注册到 `ctx.skills` 与 `ctx.shellEnv` |
|
||||
|
||||
-----
|
||||
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/connector/dingtalk-cli/README.md
|
||||
/:
|
||||
en: 4ec731ba890daff6
|
||||
zh: 7fc760c463b4c0fe
|
||||
/deepseek-ai-dsh-dingtalk-cli:
|
||||
en: 94ae465708c48c43
|
||||
zh: 0f85c239e6a78dac
|
||||
/deepseek-ai-dsh-dingtalk-cli/summary:
|
||||
en: f568854ab70d6bea
|
||||
zh: 4db53b55fb7c7ed9
|
||||
/deepseek-ai-dsh-dingtalk-cli/table-of-contents:
|
||||
en: d152484eb41ac6b4
|
||||
zh: 09388d293f9be9cb
|
||||
/deepseek-ai-dsh-dingtalk-cli/use-this-package:
|
||||
en: bbff250eba0f1b89
|
||||
zh: 0a618f05cc88ee2b
|
||||
/deepseek-ai-dsh-dingtalk-cli/use-this-package/add-it-to-a-profile:
|
||||
en: e76f9b3176b30ca0
|
||||
zh: 12358a76a2ff70fa
|
||||
/deepseek-ai-dsh-dingtalk-cli/use-this-package/what-you-get:
|
||||
en: c1cd50d552740ba3
|
||||
zh: 2f6767ca196e5c47
|
||||
/deepseek-ai-dsh-dingtalk-cli/use-this-package/account-operations:
|
||||
en: c6d1b758cacef5cc
|
||||
zh: b86656bb7bff5fef
|
||||
/deepseek-ai-dsh-dingtalk-cli/use-this-package/configure:
|
||||
en: 6cf4b0c8b6364546
|
||||
zh: 9d98a4f8fa3c754e
|
||||
/deepseek-ai-dsh-dingtalk-cli/understand-the-implementation:
|
||||
en: 7216fac71a709cab
|
||||
zh: c1bca446820d80cd
|
||||
/deepseek-ai-dsh-dingtalk-cli/further-exploration:
|
||||
en: 19e99c3bf9d75c3b
|
||||
zh: 6ff8eafd6c1dae65
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience:
|
||||
en: 215e7ba838619b7b
|
||||
zh: a311da3843709f90
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/skill-catalog-entries:
|
||||
en: 7265024b55daf9ef
|
||||
zh: e99e8d5639c268d9
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/skill-catalog-entries/what-the-model-sees:
|
||||
en: 54a4339eb76f9ed6
|
||||
zh: 5abdee68c500f37b
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/skill-catalog-entries/token-effect:
|
||||
en: 7448b8025cac4857
|
||||
zh: dddee8822f9354fd
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/skill-catalog-entries/kv-cache-effect:
|
||||
en: c755079b7e47e8a7
|
||||
zh: d76f6f3e2679f9f3
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/loaded-skill-body:
|
||||
en: 8955ac196848e69f
|
||||
zh: 698bcd0773a8f094
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/loaded-skill-body/what-the-model-sees:
|
||||
en: b5391b2b65559751
|
||||
zh: ef8ef7740d335624
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/loaded-skill-body/token-effect:
|
||||
en: 3c0c41cf49dd46a4
|
||||
zh: ea0891d94a567606
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/loaded-skill-body/kv-cache-effect:
|
||||
en: 1f6b842a95e14ce4
|
||||
zh: d32b51405eabddc4
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/plugin-clis-entry:
|
||||
en: 821d3974b859741d
|
||||
zh: 127fac5248c9a7f1
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/plugin-clis-entry/what-the-model-sees:
|
||||
en: 738e243ce58c8997
|
||||
zh: 3c6832babf985fe9
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/plugin-clis-entry/token-effect:
|
||||
en: bfc2ae22042ca709
|
||||
zh: 5919b9395c51541e
|
||||
/deepseek-ai-dsh-dingtalk-cli/model-experience/plugin-clis-entry/kv-cache-effect:
|
||||
en: 6def0febc136ef06
|
||||
zh: 12ea269eb16a0b91
|
||||
/deepseek-ai-dsh-dingtalk-cli/known-limitations-and-deferred-work:
|
||||
en: 337575a74e66e3dc
|
||||
zh: b4e1ebd2498d69cf
|
||||
/deepseek-ai-dsh-dingtalk-cli/known-limitations-and-deferred-work/dev-note:
|
||||
en: 7267122aef746a1c
|
||||
zh: a5f28e38bd85d44f
|
||||
@@ -0,0 +1,168 @@
|
||||
---
|
||||
description: "Install the pinned official dws and its skills into the DSH cache, put dws on the private Shell PATH, load its skill, and run the account operations the Plugins page drives."
|
||||
kind: "package-reference"
|
||||
---
|
||||
|
||||
# @deepseek-ai/dsh-dingtalk-cli
|
||||
|
||||
English | [中文](README.zh.md)
|
||||
|
||||
## Summary
|
||||
|
||||
This package is the Host row of the [DingTalk plugin](../dingtalk/README.md). It downloads the official DingTalk Workspace CLI, `dws`, and the official DingTalk skills from one pinned release into the DSH cache, puts `dws` on the private Shell PATH, and registers one `dingtalk` skill whose guides are those skills. Its `dingtalk` Remote checks the CLI's sign-in, signs in through the CLI's browser authorization page, signs out the current account, and cancels, for the [DingTalk plugin page](../../client/ui-dingtalk/README.md). The CLI keeps the sign-in in `~/.dws` and the system keychain, which the user's own terminal shares. Only macOS is supported.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Use this package](#use-this-package)
|
||||
- [Understand the implementation](#understand-the-implementation)
|
||||
- [Further Exploration](#further-exploration)
|
||||
- [Model Experience](#model-experience)
|
||||
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
||||
- [Dev Note](#dev-note)
|
||||
|
||||
-----
|
||||
|
||||
<a id="use-this-package"></a>
|
||||
## Use this package
|
||||
|
||||
### Add it to a profile
|
||||
|
||||
Install the [DingTalk plugin bundle](../dingtalk/README.md), which inserts this package as the `dingtalk` row. The package has no install script. When the row loads, it downloads two assets of dws release 1.0.64: the archive for the computer's platform, 16 to 18 MB, and `dws-skills.zip`, 3.3 MB. Each comes from GitHub Releases, or from the official Gitee mirror when GitHub fails; the row verifies its size and SHA-256 and keeps it in `$DSH_HOME/cache/dingtalk/`. `dws` is missing from the Shell PATH, and the `dingtalk` skill from the catalog, until those downloads finish. On a platform the release has no archive for, the row fails to load and names the platform; set `binDir` to use another `dws`. With both `binDir` and `skillsDir` set, the row downloads nothing.
|
||||
|
||||
Signing in needs a DingTalk account that belongs to an organization whose administrator has turned on CLI access in the DingTalk developer console. Until then, the user can request access on the authorization page.
|
||||
|
||||
### What you get
|
||||
|
||||
After the downloads finish, one `dingtalk` skill joins the skill catalog. The agent loads it with the `skill` tool, opens the guide for the product at hand, such as `dingtalk-calendar` or `dingtalk-doc`, with the file tools, and runs `dws` commands through the ordinary Shell tools under the current sandbox and approval policy. When a command reports a missing or expired sign-in, the agent asks the user to connect DingTalk on the plugin page; it runs `dws auth login --no-browser` only when the user asks to finish it in the conversation, and requests `sandbox_permissions` with a `justification` on the first attempt because the command writes outside the workspace.
|
||||
|
||||
Turning the row off in Plugin Manager withdraws the skill and the private PATH entry for later Shell calls. The CLI sign-in and the downloaded assets stay in place.
|
||||
|
||||
<a id="account-operations"></a>
|
||||
### Account operations
|
||||
|
||||
The `dingtalk` Remote serves the Plugins page. It runs at most one operation at a time, owned by the Host, so leaving the page does not cancel it. Loading the row starts one check, which also downloads dws and its skills while either is missing.
|
||||
|
||||
| Method | Effect |
|
||||
|---|---|
|
||||
| `follow(signal)` | Streams the account, the operation in progress, and the last result; each new follower starts a check when no operation runs |
|
||||
| `check()` | Downloads dws and its skills while either is missing, then checks the account again; returns the operation id |
|
||||
| `signIn()` | Runs `auth login --no-browser --format json`, waits for the user to authorize in a browser on this computer, then checks that dws reports the account signed in |
|
||||
| `signOut()` | Runs `auth logout --profile <corpId>:<userId>` for the account the last check found, which also signs it out of the user's own terminal, then checks again |
|
||||
| `cancel(id)` | Cancels a sign-in while it waits for authorization and waits for its command to exit; other steps and a finished id are ignored |
|
||||
|
||||
A check runs `auth status --format json`, which refreshes an expired access token with the server and exits with code 0 whether or not a user is signed in. The account reads `connected`, with the user and organization names dws reports, when `authenticated` is true; `unverified` when it is false with one of the reasons dws reports as inconclusive (`local_state_requires_repair`, `local_state_unreadable`, `ciphertext_key_mismatch`, `dek_missing`, `keychain_unavailable`); and `signed-out` otherwise. A nonzero exit or output that is not the status JSON fails the check and keeps the previous account; a download that does not finish leaves `not-installed`. Sign-out requires both ids, so it never selects every account of an organization; accounts of other organizations stay signed in, and the next check shows the account dws then reports as current. The link that `auth login` prints alone on an indented stderr line is offered only when it is an HTTPS address on `login.dingtalk.com`. Results report succeeded, cancelled, or failed. Failures include the command and the observed exit code in the Remote result and Host log; the CLI's output is omitted. The process running DSH needs access to `~/.dws` and the CLI's macOS keychain item; `DSH_HOME` does not relocate them.
|
||||
|
||||
### Configure
|
||||
|
||||
| Field | Default | Meaning |
|
||||
|---|---|---|
|
||||
| `binDir` | the cache directory holding the downloaded executable | Absolute directory containing an executable `dws`; when set, the executable is not downloaded |
|
||||
| `skillsDir` | the cache directory holding the downloaded skills | Directory laid out as the `multi/` directory of the release's `dws-skills.zip`; when set, the skills are not downloaded |
|
||||
| `releaseUrls` | the GitHub Releases and Gitee mirror download prefixes of `DingTalk-Real-AI/dingtalk-workspace-cli` | HTTPS prefixes tried in order for what `binDir` and `skillsDir` do not provide; each serves `v<version>/<asset name>` with a `Content-Length` equal to the asset size |
|
||||
| `commandTimeoutMs` | `30000` | Deadline for one account check or sign-out, including executable lookup |
|
||||
|
||||
Sign-in waits up to 10 minutes for the user, and each command keeps at most 1 MiB of stdout; the [CLI account library](../cli-account/README.md) fixes both limits. dws itself stops waiting for authorization after 6 minutes.
|
||||
|
||||
The generated [config catalog](../../../docs/config-catalog.md#deepseek-aidsh-dingtalk-cli) is the exhaustive source of supported fields.
|
||||
|
||||
-----
|
||||
|
||||
<a id="understand-the-implementation"></a>
|
||||
## Understand the implementation
|
||||
|
||||
<details>
|
||||
<summary>Implementation internals — click to expand</summary>
|
||||
|
||||
[`src/index.ts`](src/index.ts) is a Remote service registered as `ctx.dingtalk`. It requires a Host subprocess runtime, registers the `dws` directory with [Shell environment](../../shell/shell-env/README.md) as the `dingtalk` PATH contribution, mounts a [filesystem skill provider](../../skill/skill-filesystem/README.md) named `dingtalk` over the skill root that `src/release.ts` publishes, and starts one check so that a session without a browser also finds `dws` and the skill. The provider omits the default roots and watches the skill root, because the first download publishes it after the catalog may already have been listed. The npm package `dingtalk-workspace-cli` is not used: its install script copies the official skills into `~/.agents/skills`, which the default skill provider scans, and into other agents' skill directories, so they would outlive the plugin. dws embeds the same skills, but `dws skill setup` writes only into such agent directories.
|
||||
|
||||
[`src/release.ts`](src/release.ts) pins the release version, the archive for each platform, and `dws-skills.zip`, each with the name, size, and SHA-256 from the release's `checksums.txt`. It downloads whichever asset is missing, refuses a response whose `Content-Length` differs before reading the body, and verifies the digest. It extracts the platform archive with `tar`, and the `multi/` entries and root `LICENSE` and `NOTICE` of the skills archive with `fflate`, into a sibling staging directory, refusing a skills entry whose path has an empty, `.`, or `..` segment or a backslash; it publishes each result by rename, and a directory another process published first is kept. Each failed source logs a warning. The skill root `$DSH_HOME/cache/dingtalk/skill-<digest>/` holds a copy of the packaged entry at `dingtalk/SKILL.md` and a `dingtalk/guides` symbolic link to the skills directory. The digest covers the entry and the link target, so a published root never changes, and the root is published synchronously at load when the skills directory already exists.
|
||||
|
||||
The [CLI account library](../cli-account/README.md) runs each command on the private PATH, so the backend and the Shell use the same executable, and runs one operation at a time. [`src/account.ts`](src/account.ts) extends that runtime with the dws commands, prepares the release before a check's first command, reads the authorization link from the stderr lines of `auth login`, and parses the `auth status` JSON. It keeps the signed-in account's ids on the Host for sign-out; the Remote view carries only names. Disposal cancels the active operation, aborts running commands and downloads, and settles after their processes exit.
|
||||
|
||||
[`skills/dingtalk/SKILL.md`](skills/dingtalk/SKILL.md) is the only skill: the DSH guidance, an index of the 16 guides, and how to open them. The guides are the `multi/` tree of `dws-skills.zip` in release `v1.0.64`, which the upstream installer uses by default; its `mono/` alternative is one entry that repeats the same content. The filesystem provider discovers only `<root>/<name>/SKILL.md`, so the guides are not separate skills. Guides refer to one another by relative paths such as `../dingtalk-shared/SKILL.md`, which resolve because the guides keep their sibling layout, and run their helper scripts from their own `scripts/` directories. Where the DSH guidance and a guide disagree, the entry tells the agent to follow the DSH guidance: it uses the plugin's `dws` instead of installing or upgrading one, does not run `dws skill setup`, and sends sign-in to the plugin page.
|
||||
|
||||
</details>
|
||||
|
||||
-----
|
||||
|
||||
<a id="further-exploration"></a>
|
||||
## Further Exploration
|
||||
|
||||
- [Connector packages](../README.md) — the group this application plugin belongs to.
|
||||
- [CLI account library](../cli-account/README.md) — command execution and account operations shared by CLI app plugins.
|
||||
- [Shell environment](../../shell/shell-env/README.md) — private PATH contributions shared by backend subprocesses and Shell tools.
|
||||
- [Skills](../../../docs/subsystems/skills.md) — catalog publication, loading, and precedence.
|
||||
- [DingTalk plugin](../dingtalk/README.md) — the bundle that inserts this row and the page row.
|
||||
- [DingTalk plugin page](../../client/ui-dingtalk/README.md) — the Plugins page that drives the account operations.
|
||||
|
||||
-----
|
||||
|
||||
<a id="model-experience"></a>
|
||||
## Model Experience
|
||||
|
||||
### Skill catalog entries
|
||||
|
||||
#### What the model sees
|
||||
|
||||
The skill catalog lists one `dingtalk` skill. Its Chinese description names the DingTalk products it covers and tells the agent to load it, then read the matching guide from its index, whenever the user mentions DingTalk or one of those products, or gives a DingTalk link.
|
||||
|
||||
#### Token effect
|
||||
|
||||
The entry stays in context while the plugin is loaded and its skill root is published. Its name and description total about 160 characters.
|
||||
|
||||
#### KV Cache effect
|
||||
|
||||
The catalog is fixed for one plugin version. Loading or unloading the plugin, or the first download publishing the skill root, changes the catalog, which is republished as a new message and leaves earlier context in place.
|
||||
|
||||
### Loaded skill body
|
||||
|
||||
#### What the model sees
|
||||
|
||||
A `skill` tool result for `dingtalk` contains about 2,100 characters: the DSH guidance, a one-sentence index entry for each of the 16 guides, and how to open them. The DSH guidance tells the agent to run the plugin's `dws` by name without installing or upgrading another, not to run `dws skill setup`, to ask the user to connect on the plugin page before running `dws auth login --no-browser` itself, to request `sandbox_permissions` for that command from its first attempt, and to tell the user that an organization administrator must turn on CLI access when dws reports it off; it takes precedence over the guides where they disagree. Its resource base is the `dingtalk` directory of the skill root in the DSH cache, so the agent opens `guides/<name>/SKILL.md` with the file tools rather than the `skill` tool and resolves each guide's relative paths and scripts against that guide's own directory.
|
||||
|
||||
#### Token effect
|
||||
|
||||
Each load adds the entry body to the retained tool history. A guide's `SKILL.md`, 4,000 to 21,000 characters, and the references it points to arrive as ordinary file-read output.
|
||||
|
||||
#### KV Cache effect
|
||||
|
||||
Loading appends a tool result and does not rewrite earlier context.
|
||||
|
||||
### Plugin CLIs entry
|
||||
|
||||
#### What the model sees
|
||||
|
||||
The row declares `dws` with its private PATH entry, so the [Shell environment](../../shell/shell-env/README.md#model-experience) Plugin CLIs section of the system prompt lists `` `dws` (dingtalk) `` while the row is loaded and the shell runs on this Host.
|
||||
|
||||
#### Token effect
|
||||
|
||||
The entry adds a few tokens to that section; the section's own text belongs to Shell environment.
|
||||
|
||||
#### KV Cache effect
|
||||
|
||||
Loading or unloading the row changes the section text, and provider cache reuse may end at the first changed token.
|
||||
|
||||
## Known Limitations and Deferred Work
|
||||
|
||||
<a id="known-limitations-and-deferred-work"></a>
|
||||
|
||||
- Only macOS is supported. The pinned Linux archives are unverified, and Windows has no pinned archive.
|
||||
- The plugin requires a subprocess runtime on this Host and fails to load when the composition's subprocess runtime runs elsewhere, such as over SSH.
|
||||
- The plugin uses the CLI's default configuration. Signing in or out from DSH affects the user's own terminal and other programs that run dws on this computer, and there is no DSH-private account or account picker.
|
||||
- Sign-in from the plugin page needs a browser on the computer that runs DSH, because the CLI's authorization callback listens on `127.0.0.1`.
|
||||
- The plugin sets no `DWS_CHANNEL`, and it is unverified with organizations that restrict CLI access to registered channels.
|
||||
- Unless `binDir` and `skillsDir` are both set, the first check needs network access to GitHub or Gitee, and the `dingtalk` skill is absent until it succeeds; the Gitee mirror can lag a release by days. Download sources must send `Content-Length`.
|
||||
- dws keeps its default telemetry and update checks; DSH guidance tells the agent not to upgrade it.
|
||||
- In the file sandbox, an ordinary command that refreshes a token or writes `~/.dws` can be denied and then needs a single-command approval.
|
||||
- Removing the plugin or moving to a new release leaves the downloaded assets and skill roots in the Harness cache.
|
||||
- The guides follow release `v1.0.64`; updating the release means changing the pinned sizes and digests, then checking the entry's index and DSH guidance against the new guides.
|
||||
|
||||
<a id="dev-note"></a>
|
||||
### Dev Note
|
||||
|
||||
<details>
|
||||
<summary>Working context for maintainers — click to expand</summary>
|
||||
|
||||
Specs and the `dingtalk-skills` session snapshot use a stand-in executable through `binDir` and stand-in skills through `skillsDir`; the download specs serve fixture archives from a local HTTP server. The skills spec pins the 16 upstream skill names, so a release update also updates that list.
|
||||
|
||||
</details>
|
||||
@@ -0,0 +1,168 @@
|
||||
---
|
||||
description: "把固定版本的官方 dws 及其技能安装到 DSH 缓存目录,把 dws 放进私有 Shell PATH,加载其技能,并执行插件页发起的账号操作。"
|
||||
kind: "package-reference"
|
||||
---
|
||||
|
||||
# @deepseek-ai/dsh-dingtalk-cli
|
||||
|
||||
[English](README.md) | 中文
|
||||
|
||||
## 概述
|
||||
|
||||
本包是[钉钉插件](../dingtalk/README.zh.md)的 Host 行。它从同一个固定版本的 release 下载钉钉官方 CLI(DingTalk Workspace CLI,命令 `dws`)和钉钉官方技能到 DSH 缓存目录,把 `dws` 放进私有 Shell PATH,并注册一个 `dingtalk` skill,其子指南就是这些技能。它的 `dingtalk` Remote 为[钉钉插件页面](../../client/ui-dingtalk/README.zh.md)检查 CLI 的登录、通过 CLI 的浏览器授权页面登录、退出当前账号,以及取消操作。CLI 把登录保存在 `~/.dws` 和系统钥匙串中,与用户自己的终端共用。仅支持 macOS。
|
||||
|
||||
## 目录
|
||||
|
||||
- [使用本包](#use-this-package)
|
||||
- [理解实现](#understand-the-implementation)
|
||||
- [进一步探索](#further-exploration)
|
||||
- [模型体验](#model-experience)
|
||||
- [已知限制与延期工作](#known-limitations-and-deferred-work)
|
||||
- [开发备注](#dev-note)
|
||||
|
||||
-----
|
||||
|
||||
<a id="use-this-package"></a>
|
||||
## 使用本包
|
||||
|
||||
### 加入 profile
|
||||
|
||||
安装[钉钉插件 bundle](../dingtalk/README.zh.md),它会把本包作为 `dingtalk` 行插入。本包没有安装脚本。该行加载时,会下载 dws release 1.0.64 的两个资产:当前平台的归档(16 到 18 MB)和 `dws-skills.zip`(3.3 MB)。每个资产都先从 GitHub Releases 下载,GitHub 失败时改用官方 Gitee 镜像;该行校验大小和 SHA-256 后,保存在 `$DSH_HOME/cache/dingtalk/`。下载完成之前,Shell PATH 上没有 `dws`,技能目录中也没有 `dingtalk` skill。当前平台没有对应的归档时,该行加载失败并给出平台;如需使用其他 `dws`,请设置 `binDir`。同时设置 `binDir` 和 `skillsDir` 时,该行不下载任何内容。
|
||||
|
||||
登录需要一个已加入组织的钉钉账号,并且组织管理员已在钉钉开发者后台开启 CLI 访问。未开启时,用户可以在授权页申请。
|
||||
|
||||
### 你会得到
|
||||
|
||||
下载完成后,技能目录中会多一个 `dingtalk` skill。Agent 用 `skill` 工具加载它,用文件工具打开当前产品对应的子指南(例如 `dingtalk-calendar` 或 `dingtalk-doc`),并在当前沙箱和审批策略下通过普通 Shell 工具运行 `dws` 命令。命令报告未登录或登录过期时,Agent 会请用户在插件页面连接钉钉;只有用户要求在对话中完成时,它才运行 `dws auth login --no-browser`,并且因为该命令会写入工作区之外,第一次尝试就带 `justification` 申请 `sandbox_permissions`。
|
||||
|
||||
在 Plugin Manager 中关闭该行,之后的 Shell 调用就不再有这个 skill 和私有 PATH 条目。CLI 的登录和已下载的资产会保留。
|
||||
|
||||
<a id="account-operations"></a>
|
||||
### 账号操作
|
||||
|
||||
`dingtalk` Remote 为插件页提供服务。它同一时间最多执行一个操作,操作归 Host 所有,因此离开页面不会取消它。该行加载时会启动一次检查,dws 或其技能缺失时这次检查也会下载。
|
||||
|
||||
| 方法 | 效果 |
|
||||
|---|---|
|
||||
| `follow(signal)` | 推送账号、进行中的操作和最近一次结果;没有操作时,每个新订阅者会触发一次检查 |
|
||||
| `check()` | dws 或其技能缺失时先下载,再重新检查账号;返回操作 id |
|
||||
| `signIn()` | 运行 `auth login --no-browser --format json`,等待用户在这台电脑的浏览器中授权,然后检查 dws 是否报告该账号已登录 |
|
||||
| `signOut()` | 对最近一次检查发现的账号运行 `auth logout --profile <corpId>:<userId>`,这也会让用户自己的终端退出该账号,然后重新检查 |
|
||||
| `cancel(id)` | 在登录等待授权时取消该操作,并等待其命令退出;其他步骤和已结束的 id 会被忽略 |
|
||||
|
||||
检查运行 `auth status --format json`,它会向服务端刷新已过期的访问令牌,无论是否有用户登录,退出码都是 0。`authenticated` 为 true 时,账号为 `connected`,并带上 dws 报告的用户名和组织名;为 false 且原因属于 dws 报告为无法判断的几种(`local_state_requires_repair`、`local_state_unreadable`、`ciphertext_key_mismatch`、`dek_missing`、`keychain_unavailable`)时为 `unverified`;其余为 `signed-out`。退出码非零,或输出不是状态 JSON,会使检查失败并保留之前的账号状态;下载没有完成时为 `not-installed`。退出登录要求两个 id 都存在,因此不会选中一个组织的全部账号;其他组织的账号保持登录,下一次检查显示 dws 届时报告的当前账号。`auth login` 在 stderr 中单独一行、带缩进打印的链接,只有是 `login.dingtalk.com` 上的 HTTPS 地址时才会提供。结果分为成功、已取消和失败。失败时,Remote 结果和 Host 日志包含命令和观察到的退出码;CLI 的输出会被省略。运行 DSH 的进程需要能访问 `~/.dws` 和该 CLI 的 macOS 钥匙串项;`DSH_HOME` 不会改变它们的位置。
|
||||
|
||||
### 配置
|
||||
|
||||
| 字段 | 默认值 | 含义 |
|
||||
|---|---|---|
|
||||
| `binDir` | 保存已下载可执行文件的缓存目录 | 包含可执行 `dws` 的绝对目录;设置后不下载可执行文件 |
|
||||
| `skillsDir` | 保存已下载技能的缓存目录 | 布局与 release 的 `dws-skills.zip` 中 `multi/` 目录相同的目录;设置后不下载技能 |
|
||||
| `releaseUrls` | `DingTalk-Real-AI/dingtalk-workspace-cli` 在 GitHub Releases 和 Gitee 镜像的下载前缀 | 按顺序尝试的 HTTPS 前缀,用于下载 `binDir` 和 `skillsDir` 未提供的内容;每个都在 `v<版本>/<资产名>` 下提供资产,且 `Content-Length` 等于资产大小 |
|
||||
| `commandTimeoutMs` | `30000` | 一次账号检查或退出登录的截止时间,包含可执行文件查找 |
|
||||
|
||||
登录最多等待用户 10 分钟,每条命令最多保留 1 MiB stdout;这两个上限由 [CLI 账号库](../cli-account/README.zh.md)固定。dws 自身在 6 分钟后停止等待授权。
|
||||
|
||||
生成的[配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-dingtalk-cli)是支持字段的完整来源。
|
||||
|
||||
-----
|
||||
|
||||
<a id="understand-the-implementation"></a>
|
||||
## 理解实现
|
||||
|
||||
<details>
|
||||
<summary>实现细节 — 点击展开</summary>
|
||||
|
||||
[`src/index.ts`](src/index.ts) 是注册为 `ctx.dingtalk` 的 Remote 服务。它要求 subprocess 运行时位于本 Host,把 `dws` 所在目录作为 `dingtalk` PATH 贡献注册到 [Shell 环境](../../shell/shell-env/README.zh.md),在 `src/release.ts` 发布的 skill 根目录上挂载一个名为 `dingtalk` 的[文件系统 skill 提供方](../../skill/skill-filesystem/README.zh.md),并启动一次检查,使没有浏览器的会话也能找到 `dws` 和该 skill。该提供方不包含默认根目录,并监听 skill 根目录,因为第一次下载发布它时,目录可能已经列出过。本包不使用 npm 包 `dingtalk-workspace-cli`:它的安装脚本会把官方技能复制到默认 skill 提供方扫描的 `~/.agents/skills`,以及其他 Agent 的 skill 目录,插件撤下后它们仍会留下。dws 内嵌了同样的技能,但 `dws skill setup` 只写入这类 Agent 目录。
|
||||
|
||||
[`src/release.ts`](src/release.ts) 固定发布版本、各平台的归档和 `dws-skills.zip`,每项都记录 release 的 `checksums.txt` 中的名称、大小和 SHA-256。它只下载缺少的资产;响应的 `Content-Length` 不符时,在读取正文之前就拒绝,随后校验摘要。它用 `tar` 解压平台归档,用 `fflate` 解压技能归档中 `multi/` 下的条目及根目录的 `LICENSE`、`NOTICE`,都解压到同级的临时目录;技能条目的路径含空段、`.`、`..` 或反斜杠时拒绝。解压结果通过改名发布,另一个进程先发布的目录会被保留。每个失败的下载源记录一条警告。skill 根目录 `$DSH_HOME/cache/dingtalk/skill-<摘要>/` 包含包内总入口在 `dingtalk/SKILL.md` 的副本,以及指向技能目录的符号链接 `dingtalk/guides`。摘要覆盖总入口和链接目标,因此已发布的根目录不会再变;加载时技能目录已经存在,就同步发布根目录。
|
||||
|
||||
[CLI 账号库](../cli-account/README.zh.md)在私有 PATH 上运行每条命令,使后端与 Shell 使用同一个可执行文件,并一次执行一个操作。[`src/account.ts`](src/account.ts) 在该运行时上实现 dws 的命令,在检查的第一条命令之前准备好版本,从 `auth login` 的 stderr 行中读取授权链接,并解析 `auth status` 的 JSON。它把已登录账号的 id 留在 Host 上供退出登录使用;Remote 视图只包含名字。释放时取消进行中的操作,中止正在运行的命令和下载,并在这些进程退出后完成。
|
||||
|
||||
[`skills/dingtalk/SKILL.md`](skills/dingtalk/SKILL.md) 是唯一的 skill:DSH 指引、16 个子指南的索引,以及打开方式。子指南是 release `v1.0.64` 的 `dws-skills.zip` 中的 `multi/` 目录树,上游安装程序默认使用它;另一种 `mono/` 是重复同样内容的单一入口。文件系统提供方只发现 `<root>/<name>/SKILL.md`,因此子指南不是独立的 skill。子指南之间用 `../dingtalk-shared/SKILL.md` 这样的相对路径互相引用,由于子指南保持同级布局,这些路径可以解析;它们的辅助脚本也从各自的 `scripts/` 目录运行。DSH 指引与子指南不一致时,总入口要求 Agent 以 DSH 指引为准:使用插件提供的 `dws`,不另装或升级,不运行 `dws skill setup`,并把登录交给插件页面。
|
||||
|
||||
</details>
|
||||
|
||||
-----
|
||||
|
||||
<a id="further-exploration"></a>
|
||||
## 进一步探索
|
||||
|
||||
- [Connector 包](../README.zh.md) — 本应用插件所属的分组。
|
||||
- [CLI 账号库](../cli-account/README.zh.md) — CLI 应用插件共用的命令执行与账号操作。
|
||||
- [Shell 环境](../../shell/shell-env/README.zh.md) — 后端子进程与 Shell 工具共用的私有 PATH 贡献。
|
||||
- [Skills](../../../docs/subsystems/skills.zh.md) — 目录发布、加载与优先级。
|
||||
- [钉钉插件](../dingtalk/README.zh.md) — 插入本行和页面行的 bundle。
|
||||
- [钉钉插件页面](../../client/ui-dingtalk/README.zh.md) — 发起账号操作的插件页。
|
||||
|
||||
-----
|
||||
|
||||
<a id="model-experience"></a>
|
||||
## 模型体验
|
||||
|
||||
### 技能目录条目
|
||||
|
||||
#### 模型看到的内容
|
||||
|
||||
技能目录列出一个 `dingtalk` skill。它的中文描述列出所覆盖的钉钉产品,并要求 Agent 在用户提到钉钉或这些产品、或给出钉钉链接时先加载它,再按索引读取对应的子指南。
|
||||
|
||||
#### Token 影响
|
||||
|
||||
插件加载且 skill 根目录已发布期间,该条目一直留在上下文中。名称和描述合计约 160 个字符。
|
||||
|
||||
#### KV Cache 影响
|
||||
|
||||
同一插件版本的目录是固定的。加载或卸载插件,或第一次下载发布 skill 根目录,都会改变目录,目录会作为新消息重新发布,之前的上下文保持不变。
|
||||
|
||||
### 加载后的技能正文
|
||||
|
||||
#### 模型看到的内容
|
||||
|
||||
`dingtalk` 的 `skill` 工具结果约 2,100 个字符:DSH 指引、16 个子指南各一句话的索引,以及打开方式。DSH 指引要求 Agent 按名称运行插件提供的 `dws`,不另装或升级,不运行 `dws skill setup`,在自己运行 `dws auth login --no-browser` 之前先请用户在插件页面连接,并在该命令第一次尝试时就申请 `sandbox_permissions`;dws 报告 CLI 访问未开启时,告诉用户需要组织管理员开启;两者不一致时以 DSH 指引为准。它的资源目录是 DSH 缓存中 skill 根目录下的 `dingtalk` 目录,因此 Agent 用文件工具而不是 `skill` 工具打开 `guides/<名字>/SKILL.md`,并以每个子指南自己的目录解析其中的相对路径和脚本。
|
||||
|
||||
#### Token 影响
|
||||
|
||||
每次加载都会把总入口正文加入保留的工具历史。子指南的 `SKILL.md`(4,000 到 21,000 个字符)及其引用的文件作为普通的文件读取输出返回。
|
||||
|
||||
#### KV Cache 影响
|
||||
|
||||
加载会追加一条工具结果,不会改写之前的上下文。
|
||||
|
||||
### Plugin CLIs 条目
|
||||
|
||||
#### 模型看到的内容
|
||||
|
||||
本行在私有 PATH 条目中声明了 `dws`,因此该行加载、且 Shell 在本 Host 上运行时,系统提示词中 [Shell 环境](../../shell/shell-env/README.zh.md#model-experience)的 Plugin CLIs 一节会列出 `` `dws` (dingtalk) ``。
|
||||
|
||||
#### Token 影响
|
||||
|
||||
该条目只给这一节增加几个 token;这一节本身的文字归 Shell 环境所有。
|
||||
|
||||
#### KV Cache 影响
|
||||
|
||||
加载或卸载该行会改变这一节的文字,provider 的缓存复用可能在第一个变化的 token 处结束。
|
||||
|
||||
## 已知限制与延期工作
|
||||
|
||||
<a id="known-limitations-and-deferred-work"></a>
|
||||
|
||||
- 仅支持 macOS。固定的 Linux 归档未经验证,Windows 没有固定的归档。
|
||||
- 插件要求本机 Host 上的 subprocess 运行时;当组合中的 subprocess 运行时在别处运行(例如通过 SSH)时,插件加载会失败。
|
||||
- 插件使用 CLI 的默认配置。在 DSH 中登录或退出登录会影响用户自己的终端,以及这台电脑上其他运行 dws 的程序,没有 DSH 专用的账号,也没有账号选择。
|
||||
- 从插件页面登录需要运行 DSH 的这台电脑上的浏览器,因为 CLI 的授权回调监听 `127.0.0.1`。
|
||||
- 插件不设置 `DWS_CHANNEL`,在只允许已登记渠道访问 CLI 的组织中未经验证。
|
||||
- 除非同时设置了 `binDir` 和 `skillsDir`,第一次检查需要能访问 GitHub 或 Gitee,成功之前没有 `dingtalk` skill;Gitee 镜像可能比 release 晚几天。下载源必须发送 `Content-Length`。
|
||||
- dws 保留其默认的遥测和更新检查;DSH 指引要求 Agent 不要升级它。
|
||||
- 在文件沙箱下,刷新令牌或写入 `~/.dws` 的普通命令可能被拒绝,此时需要单条命令审批。
|
||||
- 移除插件或换到新版本后,已下载的资产和 skill 根目录仍会留在 Harness 缓存中。
|
||||
- 子指南对应 release `v1.0.64`;更新版本需要修改固定的大小和摘要,再对照新的子指南检查总入口的索引和 DSH 指引。
|
||||
|
||||
<a id="dev-note"></a>
|
||||
### 开发备注
|
||||
|
||||
<details>
|
||||
<summary>维护者工作上下文 — 点击展开</summary>
|
||||
|
||||
单元测试和 `dingtalk-skills` 会话快照通过 `binDir` 使用替身可执行文件,通过 `skillsDir` 使用替身技能;下载相关的测试从本地 HTTP 服务提供测试归档。技能测试固定了 16 个上游技能名称,因此更新版本时也要更新这份列表。
|
||||
|
||||
</details>
|
||||
@@ -0,0 +1,43 @@
|
||||
# Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/connector/dingtalk/README.md
|
||||
/:
|
||||
en: 01bcdf13f44a048e
|
||||
zh: 3e03f91a092e6300
|
||||
/deepseek-ai-dsh-dingtalk:
|
||||
en: 5dc926b329defff4
|
||||
zh: 79cd822afca4f832
|
||||
/deepseek-ai-dsh-dingtalk/summary:
|
||||
en: 0756395d8dfa66a4
|
||||
zh: 2b39fb7e3a7aa9da
|
||||
/deepseek-ai-dsh-dingtalk/table-of-contents:
|
||||
en: d152484eb41ac6b4
|
||||
zh: 09388d293f9be9cb
|
||||
/deepseek-ai-dsh-dingtalk/use-this-package:
|
||||
en: bbff250eba0f1b89
|
||||
zh: 0a618f05cc88ee2b
|
||||
/deepseek-ai-dsh-dingtalk/use-this-package/install-into-a-profile:
|
||||
en: 313ff7fb94340070
|
||||
zh: 5cee4d423bbe5ebd
|
||||
/deepseek-ai-dsh-dingtalk/use-this-package/what-you-get:
|
||||
en: 9b49a8f39ba15e99
|
||||
zh: 38ae8c4eb7395500
|
||||
/deepseek-ai-dsh-dingtalk/understand-the-implementation:
|
||||
en: faef7d146ba7de47
|
||||
zh: 69c58ecc8096ff17
|
||||
/deepseek-ai-dsh-dingtalk/further-exploration:
|
||||
en: f023334f6e5b7bdd
|
||||
zh: 6ac4a41966632d9a
|
||||
/deepseek-ai-dsh-dingtalk/model-experience:
|
||||
en: 6abfe9788330e387
|
||||
zh: d04c48a92d5502a5
|
||||
/deepseek-ai-dsh-dingtalk/model-experience/kv-cache-effect:
|
||||
en: 5bfc4142801b1273
|
||||
zh: 0f1b430d21f43532
|
||||
/deepseek-ai-dsh-dingtalk/known-limitations-and-deferred-work:
|
||||
en: 508d1a6842f5af30
|
||||
zh: 8b646239e755168c
|
||||
/deepseek-ai-dsh-dingtalk/known-limitations-and-deferred-work/dev-note:
|
||||
en: e67f633dc6fe7773
|
||||
zh: 8ec3e73528ddb1a6
|
||||
@@ -0,0 +1,95 @@
|
||||
---
|
||||
description: "Add the DingTalk plugin to a profile: the official dws with its skill, and DingTalk sign-in on the Plugins page."
|
||||
kind: "package-bundle"
|
||||
---
|
||||
|
||||
# @deepseek-ai/dsh-dingtalk
|
||||
|
||||
English | [中文](README.zh.md)
|
||||
|
||||
## Summary
|
||||
|
||||
The DingTalk plugin lets conversations use DingTalk through the official DingTalk Workspace CLI, `dws`. Installing this bundle adds two rows: the CLI with its skill, and the DingTalk account section on the Plugins page, where the user signs in and out without starting a conversation. The CLI keeps the sign-in in `~/.dws` and the system keychain, which the user's own terminal shares. Only macOS is supported.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Use this package](#use-this-package)
|
||||
- [Understand the implementation](#understand-the-implementation)
|
||||
- [Further Exploration](#further-exploration)
|
||||
- [Model Experience](#model-experience)
|
||||
- [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
|
||||
- [Dev Note](#dev-note)
|
||||
|
||||
-----
|
||||
|
||||
<a id="use-this-package"></a>
|
||||
## Use this package
|
||||
|
||||
### Install into a profile
|
||||
|
||||
Install the bundle from the Web sidebar's **Plugins** page or with the CLI:
|
||||
|
||||
```sh
|
||||
dsh plugin --profile web add @deepseek-ai/dsh-dingtalk
|
||||
dsh plugin --profile web remove @deepseek-ai/dsh-dingtalk
|
||||
```
|
||||
|
||||
The bundle has no install script to approve. When the plugin loads, the `dingtalk` row downloads dws for this platform and its skills from the pinned release into the Harness cache; the first load therefore needs network access to GitHub or the official Gitee mirror. Signing in needs a DingTalk account that belongs to an organization whose administrator has turned on CLI access.
|
||||
|
||||
### What you get
|
||||
|
||||
| Row | Package | Behavior |
|
||||
|---|---|---|
|
||||
| `dingtalk` | [`@deepseek-ai/dsh-dingtalk-cli`](../dingtalk-cli/README.md) | Downloads `dws` and its skills, puts `dws` on the private Shell PATH, registers its skill, and runs account checks, sign-in, and sign-out on the Host |
|
||||
| `ui-dingtalk` | [`@deepseek-ai/dsh-client-ui-dingtalk`](../../client/ui-dingtalk/README.md) | Shows the DingTalk account section, a connection tag, guidance after the bundle is switched on, and notices on the Plugins page |
|
||||
|
||||
Switching the bundle off withdraws the skill, the private PATH entry, and the page. The CLI sign-in and the downloaded assets stay in place.
|
||||
|
||||
-----
|
||||
|
||||
<a id="understand-the-implementation"></a>
|
||||
## Understand the implementation
|
||||
|
||||
<details>
|
||||
<summary>Implementation internals — click to expand</summary>
|
||||
|
||||
[`cordis.patch.yml`](cordis.patch.yml) inserts the `dingtalk` and `ui-dingtalk` rows after the profile's other layers. The package depends on both row packages so that the rows resolve from this bundle, and [`src/index.ts`](src/index.ts) exports nothing. The Plugins page keys the account section by this package name.
|
||||
|
||||
</details>
|
||||
|
||||
-----
|
||||
|
||||
<a id="further-exploration"></a>
|
||||
## Further Exploration
|
||||
|
||||
- [Connector packages](../README.md) — the group this application plugin belongs to.
|
||||
- [DingTalk CLI and skills](../dingtalk-cli/README.md) — the Host row, its download, account operations, and model guidance.
|
||||
- [DingTalk plugin page](../../client/ui-dingtalk/README.md) — the Plugins page row.
|
||||
- [Plugin Manager](../../boot/plugin-manager/README.md) — installation and enablement.
|
||||
|
||||
-----
|
||||
|
||||
<a id="model-experience"></a>
|
||||
## Model Experience
|
||||
|
||||
Indirectly, through the `dingtalk` row, whose package owns the skill catalog entry and loaded skill body described in its [Model Experience](../dingtalk-cli/README.md#model-experience); the `ui-dingtalk` row adds nothing model-facing.
|
||||
|
||||
#### KV Cache effect
|
||||
|
||||
None beyond the `dingtalk` row's skill catalog; the bundle itself sends no provider request.
|
||||
|
||||
## Known Limitations and Deferred Work
|
||||
|
||||
<a id="known-limitations-and-deferred-work"></a>
|
||||
|
||||
- Only macOS is supported; the row packages list their own limitations.
|
||||
|
||||
<a id="dev-note"></a>
|
||||
### Dev Note
|
||||
|
||||
<details>
|
||||
<summary>Working context for maintainers — click to expand</summary>
|
||||
|
||||
None.
|
||||
|
||||
</details>
|
||||
@@ -0,0 +1,95 @@
|
||||
---
|
||||
description: "把钉钉插件加入 profile:官方 dws 及其技能,以及插件页上的钉钉登录。"
|
||||
kind: "package-bundle"
|
||||
---
|
||||
|
||||
# @deepseek-ai/dsh-dingtalk
|
||||
|
||||
[English](README.md) | 中文
|
||||
|
||||
## 概述
|
||||
|
||||
钉钉插件让对话通过钉钉官方 CLI(DingTalk Workspace CLI,命令 `dws`)使用钉钉。安装本 bundle 会加入两行:CLI 及其技能,以及插件页上的钉钉账号区块,用户不必开始对话就能在这里登录和退出。CLI 把登录保存在 `~/.dws` 和系统钥匙串中,与用户自己的终端共用。仅支持 macOS。
|
||||
|
||||
## 目录
|
||||
|
||||
- [使用本包](#use-this-package)
|
||||
- [理解实现](#understand-the-implementation)
|
||||
- [进一步探索](#further-exploration)
|
||||
- [模型体验](#model-experience)
|
||||
- [已知限制与延期工作](#known-limitations-and-deferred-work)
|
||||
- [开发备注](#dev-note)
|
||||
|
||||
-----
|
||||
|
||||
<a id="use-this-package"></a>
|
||||
## 使用本包
|
||||
|
||||
### 安装到 profile
|
||||
|
||||
在 Web 侧边栏的**插件**页面安装,或使用 CLI:
|
||||
|
||||
```sh
|
||||
dsh plugin --profile web add @deepseek-ai/dsh-dingtalk
|
||||
dsh plugin --profile web remove @deepseek-ai/dsh-dingtalk
|
||||
```
|
||||
|
||||
本 bundle 没有需要批准的安装脚本。插件加载时,`dingtalk` 行会从固定版本的 release 把当前平台的 dws 及其技能下载到 Harness 缓存,因此第一次加载需要能访问 GitHub 或官方 Gitee 镜像。登录需要一个已加入组织的钉钉账号,并且组织管理员已开启 CLI 访问。
|
||||
|
||||
### 你会得到
|
||||
|
||||
| 行 | 包 | 行为 |
|
||||
|---|---|---|
|
||||
| `dingtalk` | [`@deepseek-ai/dsh-dingtalk-cli`](../dingtalk-cli/README.zh.md) | 下载 `dws` 及其技能,把 `dws` 放进私有 Shell PATH,注册其技能,并在 Host 上执行账号检查、登录和退出登录 |
|
||||
| `ui-dingtalk` | [`@deepseek-ai/dsh-client-ui-dingtalk`](../../client/ui-dingtalk/README.zh.md) | 在插件页上显示钉钉账号区块、连接标签、开启 bundle 后的引导和提示 |
|
||||
|
||||
关闭 bundle 会撤下技能、私有 PATH 条目和页面。CLI 的登录和已下载的资产会保留。
|
||||
|
||||
-----
|
||||
|
||||
<a id="understand-the-implementation"></a>
|
||||
## 理解实现
|
||||
|
||||
<details>
|
||||
<summary>实现细节 — 点击展开</summary>
|
||||
|
||||
[`cordis.patch.yml`](cordis.patch.yml) 在 profile 的其他层之后插入 `dingtalk` 和 `ui-dingtalk` 两行。本包依赖这两个行包,使这两行从本 bundle 解析;[`src/index.ts`](src/index.ts) 不导出任何内容。插件页按本包名定位账号区块。
|
||||
|
||||
</details>
|
||||
|
||||
-----
|
||||
|
||||
<a id="further-exploration"></a>
|
||||
## 进一步探索
|
||||
|
||||
- [Connector 包](../README.zh.md) — 本应用插件所属的分组。
|
||||
- [钉钉 CLI 与技能](../dingtalk-cli/README.zh.md) — Host 行、它的下载、账号操作和模型指引。
|
||||
- [钉钉插件页面](../../client/ui-dingtalk/README.zh.md) — 插件页行。
|
||||
- [Plugin Manager](../../boot/plugin-manager/README.zh.md) — 安装与启用。
|
||||
|
||||
-----
|
||||
|
||||
<a id="model-experience"></a>
|
||||
## 模型体验
|
||||
|
||||
间接通过 `dingtalk` 行,其包拥有技能目录条目和加载后的技能正文,见其[模型体验](../dingtalk-cli/README.zh.md#model-experience);`ui-dingtalk` 行不增加任何面向模型的内容。
|
||||
|
||||
#### KV Cache 影响
|
||||
|
||||
除 `dingtalk` 行的技能目录外没有影响;bundle 本身不发送 provider 请求。
|
||||
|
||||
## 已知限制与延期工作
|
||||
|
||||
<a id="known-limitations-and-deferred-work"></a>
|
||||
|
||||
- 仅支持 macOS;各行包列出了各自的限制。
|
||||
|
||||
<a id="dev-note"></a>
|
||||
### 开发备注
|
||||
|
||||
<details>
|
||||
<summary>维护者工作上下文 — 点击展开</summary>
|
||||
|
||||
无。
|
||||
|
||||
</details>
|
||||
@@ -2401,6 +2401,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
slotInject: '',
|
||||
declaredBy: 'an entry in \'main\' (client-ui-plugin-manager), so it exists while that entry is mounted',
|
||||
occupants: [
|
||||
'client-ui-dingtalk DingtalkConnectionActivation',
|
||||
'experimental-client-ui-voice-input VoiceSetupPrompt key \'@deepseek-ai/dsh-experimental-voice-input-bundle\'',
|
||||
'cua PermissionSetup key \'@deepseek-ai/dsh-cua-bundle\'',
|
||||
],
|
||||
@@ -2444,6 +2445,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
slotInject: '',
|
||||
declaredBy: 'an entry in \'main\' (client-ui-plugin-manager), so it exists while that entry is mounted',
|
||||
occupants: [
|
||||
'client-ui-dingtalk DingtalkConnectionSection',
|
||||
'experimental-client-ui-cot-translation TranslationSettings key \'@deepseek-ai/dsh-experimental-cot-translation-bundle\'',
|
||||
'experimental-client-ui-voice-input VoicePreparation key \'@deepseek-ai/dsh-experimental-voice-input-bundle\'',
|
||||
'cua PermissionPanel key \'@deepseek-ai/dsh-cua-bundle\'',
|
||||
@@ -2551,7 +2553,9 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
hookContext: '',
|
||||
slotInject: '',
|
||||
declaredBy: 'an entry in \'main\' (client-ui-plugin-manager), so it exists while that entry is mounted',
|
||||
occupants: [],
|
||||
occupants: [
|
||||
'client-ui-dingtalk DingtalkConnectionBadge id \'dingtalk.connection\'',
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'plugins.detail.badge\', () => ctx.slots.register(\n { name: \'plugins.detail.badge\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
source: 'packages/client/ui-plugin-manager/src/client/slot-contract.ts:161',
|
||||
|
||||
@@ -1119,6 +1119,46 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'dingtalk',
|
||||
summary: 'Registers the CLI and its skill, and owns the account operations the Plugins page drives.',
|
||||
description: 'Registers the CLI and its skill, and owns the account operations the Plugins page drives.',
|
||||
methods: [
|
||||
{
|
||||
signature: '@Remote check(): CliOperationId',
|
||||
description: 'Check the account again without changing it; installs dws and its skills first while either is missing.',
|
||||
parameters: [],
|
||||
returns: 'the operation identity.',
|
||||
throws: ['while another operation runs.'],
|
||||
},
|
||||
{
|
||||
signature: '@Remote signIn(): CliOperationId',
|
||||
description: 'Sign in through the browser authorization page that dws serves to this computer.',
|
||||
parameters: [],
|
||||
returns: 'the operation identity.',
|
||||
throws: ['while another operation runs.'],
|
||||
},
|
||||
{
|
||||
signature: '@Remote signOut(): CliOperationId',
|
||||
description: 'Sign the current account out, which also signs it out of the user\'s own terminal.',
|
||||
parameters: [],
|
||||
returns: 'the operation identity.',
|
||||
throws: ['while another operation runs.'],
|
||||
},
|
||||
{
|
||||
signature: '@Remote cancel(id: CliOperationId): Promise<void>',
|
||||
description: 'Cancel a sign-in while it waits for the user\'s authorization, and wait for its command to exit.',
|
||||
parameters: [{ name: 'id', description: 'the operation to cancel; a finished one or another step is ignored.' }],
|
||||
returns: 'after the operation settles, or at once when nothing is cancelled.',
|
||||
},
|
||||
{
|
||||
signature: '@Remote({ mode: \'stream\' }) async *follow(signal: AbortSignal): AsyncIterable<DingtalkState>',
|
||||
description: 'Follow the account and its operations independently of any page; each new subscriber starts a check when none runs.',
|
||||
parameters: [{ name: 'signal', description: 'the Client\'s observation lifetime.' }],
|
||||
returns: 'the current view, then each changed view.',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'directoryPicker',
|
||||
summary: 'Abstract directory-picking service.',
|
||||
@@ -5624,6 +5664,18 @@ export const TYPE_API: readonly TypeApiEntry[] = [
|
||||
name: 'ClientArtifactBaseline',
|
||||
declaration: 'export interface ClientArtifactBaseline {\n readonly path: string;\n readonly mtimeMs: number;\n readonly ctimeMs: number;\n readonly size: number;\n}',
|
||||
},
|
||||
{
|
||||
name: 'CliOperation',
|
||||
declaration: 'export interface CliOperation<Kind extends string, Phase extends string> {\n readonly id: CliOperationId;\n readonly kind: Kind;\n readonly phase: Phase | \'checking\' | \'cancelling\';\n readonly cancellable: boolean;\n readonly authorizationUrl?: string;\n}',
|
||||
},
|
||||
{
|
||||
name: 'CliOperationId',
|
||||
declaration: 'export type CliOperationId = Branded<\'CliOperationId\'>;',
|
||||
},
|
||||
{
|
||||
name: 'CliOperationResult',
|
||||
declaration: 'export interface CliOperationResult<Kind extends string, Failure extends CliCommandFailure = CliCommandFailure> {\n readonly id: CliOperationId;\n readonly kind: Kind;\n readonly outcome: \'succeeded\' | \'cancelled\' | \'failed\';\n readonly failure?: Failure;\n}',
|
||||
},
|
||||
{
|
||||
name: 'CollectedOutput',
|
||||
declaration: 'export interface CollectedOutput {\n text: string;\n truncated: boolean;\n spillPath?: string;\n}',
|
||||
@@ -6004,6 +6056,26 @@ export const TYPE_API: readonly TypeApiEntry[] = [
|
||||
name: 'DiffResultView',
|
||||
declaration: 'export interface DiffResultView {\n card: \'diff\';\n title?: string;\n diffs: FileDiff[];\n}',
|
||||
},
|
||||
{
|
||||
name: 'DingtalkAccountState',
|
||||
declaration: 'export type DingtalkAccountState = {\n readonly state: \'unchecked\' | \'not-installed\' | \'signed-out\' | \'unverified\';\n} | {\n readonly state: \'connected\';\n readonly userName?: string;\n readonly corpName?: string;\n};',
|
||||
},
|
||||
{
|
||||
name: 'DingtalkOperationFailure',
|
||||
declaration: 'export type DingtalkOperationFailure = CliCommandFailure<\'auth-status\' | \'auth-login\' | \'auth-logout\'>;',
|
||||
},
|
||||
{
|
||||
name: 'DingtalkOperationKind',
|
||||
declaration: 'export type DingtalkOperationKind = \'check\' | \'sign-in\' | \'sign-out\';',
|
||||
},
|
||||
{
|
||||
name: 'DingtalkPhase',
|
||||
declaration: 'export type DingtalkPhase = \'downloading\' | \'authorizing\' | \'signing-out\';',
|
||||
},
|
||||
{
|
||||
name: 'DingtalkState',
|
||||
declaration: 'export type DingtalkState = CliAccountView<DingtalkAccountState, DingtalkOperationKind, DingtalkPhase, DingtalkOperationFailure>;',
|
||||
},
|
||||
{
|
||||
name: 'DirectoryEntry',
|
||||
declaration: 'export interface DirectoryEntry {\n name: string;\n path: string;\n hidden: boolean;\n}',
|
||||
|
||||
+7
@@ -76,6 +76,7 @@ Every package below exports a Cordis plugin that a bundle patch can name in a Lo
|
||||
| `@deepseek-ai/dsh-client-ui-conversation` | no | Target-neutral Conversation assembly, shell, composer, queue, and view navigation |
|
||||
| `@deepseek-ai/dsh-client-ui-deepseek-model-label-1017` | no | Temporary 1017 release badge for official DeepSeek Flash model labels |
|
||||
| `@deepseek-ai/dsh-client-ui-deliverables` | no | Changed-files card with per-file comparison tabs, delivery cards, and clickable final-response file references for Web |
|
||||
| `@deepseek-ai/dsh-client-ui-dingtalk` | no | DingTalk plugin page: sign in to DingTalk and check the account from the Plugins page |
|
||||
| `@deepseek-ai/dsh-client-ui-directory-picker-browse` | no | In-app directory browsing surface: the workspace directory-flow owner rendering the host's listing and creation primitives |
|
||||
| `@deepseek-ai/dsh-client-ui-directory-picker-native` | no | Native directory-picker surface: the renderless workspace directory-flow occupant driving the local Desktop or Host OS chooser |
|
||||
| `@deepseek-ai/dsh-client-ui-entry-customization` | no | Customize plugin entries in the left sidebar, conversation views, and right sidebar, and quickly create new plugins. |
|
||||
@@ -138,6 +139,12 @@ Every package below exports a Cordis plugin that a bundle patch can name in a Lo
|
||||
|---|---|---|
|
||||
| `@deepseek-ai/dsh-computer-use` | no | Exclusive named computer-use provider registration |
|
||||
|
||||
## connector
|
||||
|
||||
| Package | Config | Description |
|
||||
|---|---|---|
|
||||
| `@deepseek-ai/dsh-dingtalk-cli` | yes | DingTalk through the official dws: the CLI on the Shell PATH, its skills, and account operations over Remote |
|
||||
|
||||
## context
|
||||
|
||||
| Package | Config | Description |
|
||||
|
||||
@@ -86,6 +86,7 @@ export const SERVICE_PAGE: Record<string, string> = {
|
||||
compaction: 'compaction.md',
|
||||
cordisInspect: 'extensions.md',
|
||||
authorization: 'credentials.md',
|
||||
dingtalk: 'credentials.md',
|
||||
deepseekAccount: 'credentials.md',
|
||||
credentials: 'credentials.md',
|
||||
credentialsController: 'credentials.md',
|
||||
@@ -965,6 +966,7 @@ export const TYPE_LINK_EXEMPTIONS: Readonly<Record<string, string>> = {
|
||||
Profile: 'resolved profile layers are owned by packages/boot/app-boot/README.md',
|
||||
PatchOptions: 'Include patch entries are owned by vendor/include (vendored upstream)',
|
||||
McpResourceProvider: 'scoped resource provider is owned by packages/mcp/mcp-resources/README.md',
|
||||
DingtalkState: 'account view fields are owned by packages/connector/dingtalk-cli/README.md',
|
||||
CliOperationId: 'account operation id is owned by packages/connector/cli-account/README.md',
|
||||
'z.ZodType': 'Zod response validation API is owned by https://zod.dev/packages/zod',
|
||||
Socket: 'Node.js byte stream API is owned by https://nodejs.org/api/net.html#class-netsocket',
|
||||
|
||||
@@ -374,6 +374,14 @@ const SERVICE_ROLES: ServiceRole[] = [
|
||||
mode: 'core',
|
||||
note: 'Projects the credential-reference seam onto the generated Remote namespace: batch fan-out, view projection, and refusal mapping live here, not on the seam Definition.',
|
||||
},
|
||||
{
|
||||
key: 'dingtalk',
|
||||
pkg: 'dingtalk-cli',
|
||||
title: 'DingTalk dws account Remote',
|
||||
mode: 'service',
|
||||
consumers: ['client-ui-dingtalk'],
|
||||
note: 'Prepares the pinned dws release, runs one Host-owned dws account check, sign-in, or sign-out at a time, and streams the account view to the Plugins page.',
|
||||
},
|
||||
{
|
||||
key: 'settingsController',
|
||||
pkg: 'api-settings-controller',
|
||||
|
||||
@@ -160,6 +160,7 @@ const SENTENCE_MODEL_EXPERIENCE: Readonly<Record<string, SentenceContract>> = {
|
||||
'packages/client/ui-permission-presets': { kind: 'indirect', reason: 'The picker submits the host /permission command; the knob events it appends own the model-visible effect through the sandbox/approval consumers.' },
|
||||
'packages/client/ui-settings-plugins': { kind: 'none', reason: 'Browser-side settings surface; registers no model surface.' },
|
||||
'packages/client/ui-cli-account': { kind: 'none', reason: 'Browser-side Plugins page pieces; registers no model surface.' },
|
||||
'packages/client/ui-dingtalk': { kind: 'none', reason: 'Browser-side Plugins page section; registers no model surface.' },
|
||||
'packages/client/ui-settings-shell': { kind: 'none', reason: 'Browser-side settings surface; registers no model surface.' },
|
||||
'packages/client/ui-settings-session-log': { kind: 'none', reason: 'Browser preference controls request metadata, not model input.' },
|
||||
'packages/client/ui-settings-agent-loop': { kind: 'none', reason: 'Browser-side settings surface; registers no model surface.' },
|
||||
@@ -204,6 +205,7 @@ const SENTENCE_MODEL_EXPERIENCE: Readonly<Record<string, SentenceContract>> = {
|
||||
'packages/experimental/terminal-bundle': { kind: 'indirect', reason: 'The profile layer delegates model-visible behavior to its selected capability.' },
|
||||
'packages/experimental/badge-skill-bundle': { kind: 'indirect', reason: 'The profile layer delegates model-visible behavior to its selected capability.' },
|
||||
'packages/experimental/session-titles-bundle': { kind: 'indirect', reason: 'The profile layer delegates model-visible behavior to its selected capability.' },
|
||||
'packages/connector/dingtalk': { kind: 'indirect', reason: 'The bundle is a patch-list carrier; the dingtalk-cli row owns the skills the model sees.' },
|
||||
'packages/bundle/base': { kind: 'indirect', reason: 'The bundle is a patch-list carrier; each inserted row\'s package owns its model-facing behavior.' },
|
||||
'packages/bundle/headless': { kind: 'none', reason: 'The one-shot runner submits the task as an ordinary user message; prompts and tools belong to the composed base and headless bundles.' },
|
||||
'packages/llm/llm': { kind: 'none', reason: 'The adapter registry forwards already-assembled requests unchanged.' },
|
||||
|
||||
Reference in new issue
Block a user