internal/

directory
v1.0.59-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: Apache-2.0

Directories

Path Synopsis
Package apiclient provides a lightweight HTTP client for calling DingTalk OpenAPI (https://api.dingtalk.com) directly, bypassing the MCP JSON-RPC transport.
Package apiclient provides a lightweight HTTP client for calling DingTalk OpenAPI (https://api.dingtalk.com) directly, bypassing the MCP JSON-RPC transport.
This file holds deliberate no-op stubs that act as edition-sync anchors for the private wukong edition overlay.
This file holds deliberate no-op stubs that act as edition-sync anchors for the private wukong edition overlay.
agent_code_detect.go resolves the agent_code — which agent HOST is driving dws (claudecode / qoder / cursor / vscode / openclaw / hermes / ...).
agent_code_detect.go resolves the agent_code — which agent HOST is driving dws (claudecode / qoder / cursor / vscode / openclaw / hermes / ...).
cli
homology
Package homology holds Schema/CLI homology and ContractFinal consistency gates that exercise the live command tree and delivered Catalog.
Package homology holds Schema/CLI homology and ContractFinal consistency gates that exercise the live command tree and delivered Catalog.
Package cobracmd provides shared Cobra command utilities used across multiple internal packages (app, cli, compat, helpers).
Package cobracmd provides shared Cobra command utilities used across multiple internal packages (app, cli, compat, helpers).
Package corecmd is the shared, dispatch-agnostic base for building leaf commands.
Package corecmd is the shared, dispatch-agnostic base for building leaf commands.
contract
Package contract owns command-framework declaration DTOs and the ProductDecl registry.
Package contract owns command-framework declaration DTOs and the ProductDecl registry.
contractfinal
Package contractfinal owns the Cobra-keyed ContractFinal runtime store and the annotate+store registration seam.
Package contractfinal owns the Cobra-keyed ContractFinal runtime store and the annotate+store registration seam.
runtimeannotate
Package runtimeannotate owns Cobra dws.schema.* annotation writers and the RuntimeSchemaConstraints helpers used by the command framework.
Package runtimeannotate owns Cobra dws.schema.* annotation writers and the RuntimeSchemaConstraints helpers used by the command framework.
Package event implements the DingTalk Stream event subscription pipeline for dws.
Package event implements the DingTalk Stream event subscription pipeline for dws.
bus
Package bus implements the daemon side of the dws event subsystem: one long-lived process per ClientID that holds the single cloud connection and fans out events to N local consumers over IPC.
Package bus implements the daemon side of the dws event subsystem: one long-lived process per ClientID that holds the single cloud connection and fans out events to N local consumers over IPC.
busctl
Package busctl glues the consume client to the bus daemon.
Package busctl glues the consume client to the bus daemon.
consume
Package consume implements the consumer-side process of `dws event consume`: dial the bus, send Hello, read Event frames, format them, and write them out (stdout / file / dir).
Package consume implements the consumer-side process of `dws event consume`: dial the bus, send Hello, read Event frames, format them, and write them out (stdout / file / dir).
dedup
Package dedup implements a fixed-capacity LRU set used by the bus to suppress duplicate events that the DingTalk Stream SDK redelivers on reconnect (see plan invariant #2).
Package dedup implements a fixed-capacity LRU set used by the bus to suppress duplicate events that the DingTalk Stream SDK redelivers on reconnect (see plan invariant #2).
lock
Package lock implements a cross-platform exclusive file lock primitive used by the bus daemon to enforce the "single bus per ClientID" invariant (plan invariant #3).
Package lock implements a cross-platform exclusive file lock primitive used by the bus daemon to enforce the "single bus per ClientID" invariant (plan invariant #3).
process
Package process provides cross-platform process-existence checks.
Package process provides cross-platform process-existence checks.
registry
Package registry holds two cross-cutting reference data sets used by daemon, consume, and the cobra command layer:
Package registry holds two cross-cutting reference data sets used by daemon, consume, and the cobra command layer:
runtimecred
Package runtimecred provides an in-memory credential broker for event bus processes.
Package runtimecred provides an in-memory credential broker for event bus processes.
source
Package source wraps the open-dingtalk Stream SDK and exposes a small blocking Start interface plus a connection state machine.
Package source wraps the open-dingtalk Stream SDK and exposes a small blocking Start interface plus a connection state machine.
transport
Package transport implements the cross-platform local IPC between the bus daemon and consume clients.
Package transport implements the cross-platform local IPC between the bus daemon and consume clients.
generator
cmd_command_path_fallbacks command
Command cmd_command_path_fallbacks validates the reviewed recovery-only command path table against the live distribution Cobra tree and writes the deterministic runtime lookup source.
Command cmd_command_path_fallbacks validates the reviewed recovery-only command path table against the live distribution Cobra tree and writes the deterministic runtime lookup source.
cmd_param_aliases command
Command cmd_param_aliases reduces the reviewed parameter concept dictionary (internal/cli/param_concepts.json) against the live Cobra command tree and writes the deterministic per-command alias table to internal/cli/param_aliases_generated.go.
Command cmd_param_aliases reduces the reviewed parameter concept dictionary (internal/cli/param_concepts.json) against the live Cobra command tree and writes the deterministic per-command alias table to internal/cli/param_aliases_generated.go.
cmd_schema_registry_smoke command
Command cmd_schema_registry_smoke emits the complete public binary-smoke vector from EffectiveCommandRegistry.
Command cmd_schema_registry_smoke emits the complete public binary-smoke vector from EffectiveCommandRegistry.
outputguard
Package outputguard prevents generators from overwriting reviewed or generated inputs that participate in the same one-way build graph.
Package outputguard prevents generators from overwriting reviewed or generated inputs that participate in the same one-way build graph.
doc
Package i18n provides lightweight internationalization for the DWS CLI.
Package i18n provides lightweight internationalization for the DWS CLI.
Package interfacesnapshot captures and compares the public Cobra command surface without executing commands or contacting runtime services.
Package interfacesnapshot captures and compares the public Cobra command surface without executing commands or contacting runtime services.
Package keychain provides cross-platform secure storage for secrets.
Package keychain provides cross-platform secure storage for secrets.
Package localio owns safe local artifact publication shared by product shortcuts.
Package localio owns safe local artifact publication shared by product shortcuts.
Package logging provides file-based structured logging for diagnostics.
Package logging provides file-based structured logging for diagnostics.
Package pat implements the "dws pat" command group for PAT (Personal Action Token) authorization management.
Package pat implements the "dws pat" command group for PAT (Personal Action Token) authorization management.
Package plugin implements the DWS CLI plugin system.
Package plugin implements the DWS CLI plugin system.
Package profilectx owns the process-local profile selector without importing authentication or transport packages.
Package profilectx owns the process-local profile selector without importing authentication or transport packages.
Package shortcut provides a declarative framework for high-fidelity CLI commands (shortcuts) on top of the DingTalk MCP runtime.
Package shortcut provides a declarative framework for high-fidelity CLI commands (shortcuts) on top of the DingTalk MCP runtime.
aitable
Package aitable provides declarative shortcuts for the DingTalk AI 表格 (aitable) service: Base / table / field / record / view / form / dashboard / chart / workflow / advanced-permission / section management.
Package aitable provides declarative shortcuts for the DingTalk AI 表格 (aitable) service: Base / table / field / record / view / form / dashboard / chart / workflow / advanced-permission / section management.
aitabletarget
Package aitabletarget provides deterministic AI Table URL and name resolution shared by read and write shortcuts.
Package aitabletarget provides deterministic AI Table URL and name resolution shared by read and write shortcuts.
attendance
Package attendance provides declarative shortcuts for the DingTalk attendance (考勤) service: attendance records, check results/records, approvals, shifts, schedules, class/group/rule management, statistics, settings, reports and vacation.
Package attendance provides declarative shortcuts for the DingTalk attendance (考勤) service: attendance records, check results/records, approvals, shifts, schedules, class/group/rule management, statistics, settings, reports and vacation.
builtin
Package builtin aggregates all built-in shortcut service packages via blank imports so their init() registrations run, applies the reviewed semantic and public-catalog decorations in the core registry, then re-exports the compiled cobra commands.
Package builtin aggregates all built-in shortcut service packages via blank imports so their init() registrations run, applies the reviewed semantic and public-catalog decorations in the core registry, then re-exports the compiled cobra commands.
calendar
Package calendar declares the declarative shortcut (+command) layer for the DingTalk calendar MCP product.
Package calendar declares the declarative shortcut (+command) layer for the DingTalk calendar MCP product.
chat
Package chat provides declarative shortcuts for the DingTalk chat service (群聊 / 会话 / 消息 / 机器人).
Package chat provides declarative shortcuts for the DingTalk chat service (群聊 / 会话 / 消息 / 机器人).
chatmsg
Package chatmsg holds the shared, read-only projection helpers for DingTalk message-list responses (list_individual_chat_message, list_conversation_message_v2, search_at_me_message, search_messages_by_keyword, list_topic_replies, …).
Package chatmsg holds the shared, read-only projection helpers for DingTalk message-list responses (list_individual_chat_message, list_conversation_message_v2, search_at_me_message, search_messages_by_keyword, list_topic_replies, …).
contact
Package contact provides declarative shortcuts for the DingTalk contact (通讯录) service: user / department / role / relation queries and the HR roster (花名册) lookups.
Package contact provides declarative shortcuts for the DingTalk contact (通讯录) service: user / department / role / relation queries and the HR roster (花名册) lookups.
devapp
Package devapp declares high-fidelity shortcuts for the DingTalk open-platform developer application ("devapp") MCP service, for the apps command surface.
Package devapp declares high-fidelity shortcuts for the DingTalk open-platform developer application ("devapp") MCP service, for the apps command surface.
ding
Package ding holds the built-in DING (钉) shortcuts.
Package ding holds the built-in DING (钉) shortcuts.
doc
Package doc declares the high-fidelity `dws doc +<command>` shortcuts.
Package doc declares the high-fidelity `dws doc +<command>` shortcuts.
docresolver
Package docresolver resolves document IDs, URLs, and natural titles to one typed document target before a shortcut performs a business operation.
Package docresolver resolves document IDs, URLs, and natural titles to one typed document target before a shortcut performs a business operation.
drive
Package drive declares high-fidelity shortcuts for the DingTalk drive (钉盘) service: file/folder listing, metadata, download link, folder creation, upload credentials, search, recycle bin, internet publish and the document space proxy operations (copy/move/rename/permission/recent).
Package drive declares high-fidelity shortcuts for the DingTalk drive (钉盘) service: file/folder listing, metadata, download link, folder creation, upload credentials, search, recycle bin, internet publish and the document space proxy operations (copy/move/rename/permission/recent).
mail
Package mail provides declarative shortcuts for the DingTalk mail (邮箱) service: mailbox / message / draft / thread / folder / tag / user / attachment / template / contact / auto-reply / rule operations.
Package mail provides declarative shortcuts for the DingTalk mail (邮箱) service: mailbox / message / draft / thread / folder / tag / user / attachment / template / contact / auto-reply / rule operations.
minutes
Package minutes contains declarative shortcuts for DingTalk AI 听记 (minutes).
Package minutes contains declarative shortcuts for DingTalk AI 听记 (minutes).
minutesdata
Package minutesdata owns response validation and pagination facts shared by Minutes shortcuts.
Package minutesdata owns response validation and pagination facts shared by Minutes shortcuts.
oa
Package oa registers declarative shortcuts for the DingTalk OA approval service, wrapping the raw MCP tools exposed by the dws oa helper.
Package oa registers declarative shortcuts for the DingTalk OA approval service, wrapping the raw MCP tools exposed by the dws oa helper.
report
Package report declares declarative shortcuts for the DingTalk "报告/日志" (OA 周报应用) MCP tools.
Package report declares declarative shortcuts for the DingTalk "报告/日志" (OA 周报应用) MCP tools.
sheet
Package sheet declares high-fidelity shortcuts for the DingTalk sheet MCP product.
Package sheet declares high-fidelity shortcuts for the DingTalk sheet MCP product.
smart
Package smart holds genuine multi-step / intelligent shortcuts — commands that orchestrate several MCP calls or resolve names to IDs, so they are NOT a 1:1 wrapper over a single tool.
Package smart holds genuine multi-step / intelligent shortcuts — commands that orchestrate several MCP calls or resolve names to IDs, so they are NOT a 1:1 wrapper over a single tool.
targetresolver
Package targetresolver provides deterministic natural-target resolution for shortcuts.
Package targetresolver provides deterministic natural-target resolution for shortcuts.
todo
Package todo declares high-fidelity shortcuts for the DingTalk "todo" (personal todo) MCP service.
Package todo declares high-fidelity shortcuts for the DingTalk "todo" (personal todo) MCP service.
usage
Package usage records the SHAPE of MCP tool calls (which product/tool, which argument keys, and a redacted sample of ID/enum-like values) so that the shortcut layer can later mine high-frequency patterns and suggest distilling them into custom shortcuts (see docs/shortcut-p2-design.md).
Package usage records the SHAPE of MCP tool calls (which product/tool, which argument keys, and a redacted sample of ID/enum-like values) so that the shortcut layer can later mine high-frequency patterns and suggest distilling them into custom shortcuts (see docs/shortcut-p2-design.md).
userdef
Package userdef loads user-defined shortcuts from ~/.dws/shortcuts/*.yaml and compiles them into the same shortcut.Shortcut model as the built-ins, so a distilled high-frequency operation behaves exactly like a native `+command`.
Package userdef loads user-defined shortcuts from ~/.dws/shortcuts/*.yaml and compiles them into the same shortcut.Shortcut model as the built-ins, so a distilled high-frequency operation behaves exactly like a native `+command`.
wiki
Package wiki declares high-fidelity shortcuts for the DingTalk wiki (knowledge base) service: space management, member management and node management.
Package wiki declares high-fidelity shortcuts for the DingTalk wiki (knowledge base) service: space management, member management and node management.
Package skillprovenance builds the per-Skill provenance records stored in the single ~/.dws/skills-state.json metadata file.
Package skillprovenance builds the per-Skill provenance records stored in the single ~/.dws/skills-state.json metadata file.
Package skillstate persists the official Skill snapshot and centralized ownership metadata written after setup and upgrade.
Package skillstate persists the official Skill snapshot and centralized ownership metadata written after setup and upgrade.
Package syncdata holds the wukong product registry, synced from dws-wukong.
Package syncdata holds the wukong product registry, synced from dws-wukong.
Package testseam turns the package-var injection-seam swap into a mechanism instead of a convention.
Package testseam turns the package-var injection-seam swap into a mechanism instead of a convention.
Package upgrade provides self-update functionality for the DWS CLI using GitHub Releases as the data source.
Package upgrade provides self-update functionality for the DWS CLI using GitHub Releases as the data source.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL