dsh-github-flow 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.en.md +220 -143
  2. package/README.md +202 -124
  3. package/docs/UPGRADE-NOTES.md +14 -8
  4. package/docs/architecture.md +111 -129
  5. package/lib/api/routes-actions.js +117 -0
  6. package/lib/api/routes-overview.js +94 -2
  7. package/lib/cache.d.ts +4 -0
  8. package/lib/cache.js +14 -0
  9. package/lib/client.d.ts +13 -1
  10. package/lib/client.js +2906 -2475
  11. package/lib/executor/git-parser.d.ts +25 -0
  12. package/lib/executor/git-parser.js +143 -0
  13. package/lib/executor/platform-guide.d.ts +14 -0
  14. package/lib/executor/platform-guide.js +40 -0
  15. package/lib/executor/process-utils.d.ts +51 -0
  16. package/lib/executor/process-utils.js +162 -0
  17. package/lib/executor/version-utils.d.ts +12 -0
  18. package/lib/executor/version-utils.js +27 -0
  19. package/lib/executor.d.ts +45 -48
  20. package/lib/executor.js +184 -353
  21. package/lib/git-watcher.d.ts +36 -0
  22. package/lib/git-watcher.js +91 -0
  23. package/lib/main.js +10 -0
  24. package/lib/renderers/cache.d.ts +8 -0
  25. package/lib/renderers/cache.js +66 -0
  26. package/lib/renderers/common.d.ts +24 -0
  27. package/lib/renderers/common.js +88 -0
  28. package/lib/renderers/gist.d.ts +15 -0
  29. package/lib/renderers/gist.js +99 -0
  30. package/lib/renderers/issue.d.ts +4 -0
  31. package/lib/renderers/issue.js +70 -0
  32. package/lib/renderers/label.d.ts +4 -0
  33. package/lib/renderers/label.js +48 -0
  34. package/lib/renderers/markdown.d.ts +15 -32
  35. package/lib/renderers/markdown.js +15 -624
  36. package/lib/renderers/pr.d.ts +4 -0
  37. package/lib/renderers/pr.js +107 -0
  38. package/lib/renderers/release.d.ts +4 -0
  39. package/lib/renderers/release.js +74 -0
  40. package/lib/renderers/repo.d.ts +4 -0
  41. package/lib/renderers/repo.js +149 -0
  42. package/lib/renderers/ruleset.d.ts +4 -0
  43. package/lib/renderers/ruleset.js +74 -0
  44. package/lib/renderers/run.d.ts +4 -0
  45. package/lib/renderers/run.js +79 -0
  46. package/lib/renderers/skill.d.ts +4 -0
  47. package/lib/renderers/skill.js +61 -0
  48. package/lib/renderers/status.d.ts +23 -0
  49. package/lib/renderers/status.js +124 -0
  50. package/lib/tools/cache.d.ts +64 -0
  51. package/lib/tools/cache.js +186 -0
  52. package/lib/tools/gist.d.ts +155 -0
  53. package/lib/tools/gist.js +190 -0
  54. package/lib/tools/help.js +107 -6
  55. package/lib/tools/image-utils.d.ts +8 -0
  56. package/lib/tools/image-utils.js +34 -0
  57. package/lib/tools/issue.d.ts +8 -1
  58. package/lib/tools/issue.js +26 -4
  59. package/lib/tools/label.d.ts +80 -0
  60. package/lib/tools/label.js +237 -0
  61. package/lib/tools/pr.d.ts +8 -0
  62. package/lib/tools/pr.js +48 -3
  63. package/lib/tools/ruleset.d.ts +80 -0
  64. package/lib/tools/ruleset.js +177 -0
  65. package/lib/tools/status.d.ts +39 -0
  66. package/lib/tools/status.js +53 -0
  67. package/lib/types.d.ts +39 -0
  68. package/lib/ui/auth-guide-card.d.ts +4 -0
  69. package/lib/ui/auth-guide-card.js +161 -0
  70. package/lib/ui/branch-selector.d.ts +10 -0
  71. package/lib/ui/branch-selector.js +163 -0
  72. package/lib/ui/commit-modal.d.ts +8 -0
  73. package/lib/ui/commit-modal.js +89 -0
  74. package/lib/ui/icons.d.ts +7 -0
  75. package/lib/ui/icons.js +53 -0
  76. package/lib/ui/network-banner.d.ts +10 -0
  77. package/lib/ui/network-banner.js +54 -0
  78. package/lib/ui/storage.d.ts +26 -0
  79. package/lib/ui/storage.js +134 -0
  80. package/lib/ui/styles.d.ts +6 -0
  81. package/lib/ui/styles.js +1285 -0
  82. package/lib/ui/sync-settings-modal.d.ts +11 -0
  83. package/lib/ui/sync-settings-modal.js +350 -0
  84. package/lib/ui/sync-status-badge.d.ts +8 -0
  85. package/lib/ui/sync-status-badge.js +64 -0
  86. package/lib/ui/upgrade-card.d.ts +7 -0
  87. package/lib/ui/upgrade-card.js +197 -0
  88. package/lib/ui/utils.d.ts +10 -0
  89. package/lib/ui/utils.js +66 -0
  90. package/lib/ui/workspace-panel.d.ts +4 -0
  91. package/lib/ui/workspace-panel.js +464 -0
  92. package/lib/version.d.ts +1 -1
  93. package/lib/version.js +1 -1
  94. package/package.json +1 -1
package/README.en.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p align="center">
12
12
  <b>Give DeepSeek Harness Agents native hands and feet to operate GitHub, crafting an immersive collaboration cockpit for developers.</b><br>
13
- Natively reuses host <code>gh</code> CLI login credentials to eliminate Personal Access Token (PAT) leaks; deeply bridges local Git workspaces with remote GitHub collaboration, equipped with <b>9 core domain Agent tools</b>, <b>human slash commands</b>, <b>Web UI visual cockpits</b>, and <b>cross-platform one-click seamless upgrades</b>.
13
+ Natively reuses host <code>gh</code> CLI login credentials to eliminate Personal Access Token (PAT) leaks; deeply bridges local Git workspaces with remote GitHub collaboration, equipped with <b>14 core domain Agent tools (85+ actions covering PR review/Issue tracking/Actions workflow & cache governance/clone-free file reads/branch ruleset policy diagnosis/Gist snippets/labels & global status dashboards/secrets & variables)</b>, <b>human slash commands</b>, <b>Web UI visual cockpits</b>, and <b>cross-platform one-click seamless upgrades</b>.
14
14
  </p>
15
15
 
16
16
  <p align="center">
@@ -29,7 +29,8 @@ When using AI Agents for collaborative coding, developers frequently hit these f
29
29
  | **CI / Actions Failure Debugging** | Sifting through pages of Actions logs in a browser, copying stack traces to chat for debugging. | **Pinpoint Error Extraction**: Tell the Agent *"Why did CI fail?"*; Agent calls `github_run(log_failed)` to grab failed step logs and patch code instantly. |
30
30
  | **Security & Token Management** | Pasting plain-text Personal Access Tokens (PATs) in plugin configs, risking token leaks and permission sprawl. | **Zero Token Exposure**: Directly reuses local `gh auth login` credentials via native OS Keychains/Keyrings securely. |
31
31
  | **Context Switching Overhead** | Jumping back and forth between VS Code, browser GitHub tabs, and DSH chat windows. | **Immersive Dual Cockpit**: Live PR status, Actions pipelines, and 3D issue matrices right inside DSH. |
32
- | **First-Screen Latency & Loading** | Staring at full-screen spinners for 8~15s while waiting for heavy background `gh` processes. | **SWR 0ms Instant Render**: Instantly displays local persistent snapshots; dedicated settings modal to switch between SWR auto-sync and manual mode. |
32
+ | **Branch Switching & Real-Time Sync** | Switching branches requires hopping into a terminal, while the sidebar remains stale regarding local stage/commit changes. | **Safe In-UI Branch Switching + Live Git Watch**: Instant keyword filter with uncommitted dirty change guard; 800ms debounced `.git` watcher aligns right sidebar in milliseconds. |
33
+ | **First-Screen Latency & Loading** | Staring at full-screen spinners for 8~15s while waiting for heavy background `gh` processes. | **SWR 0ms Instant Render + Scheduled Sync**: Instantly displays local persistent snapshots; features a 3-way mutually exclusive sync model (SWR, Cloud Auto-Sync with visibility pause, Manual) and standalone local Git watch. |
33
34
  | **Plugin Upgrades & Maintenance** | Manually checking npm registry versions, complicated commands, fear of breaking configs. | **Idle Silent Detection + One-Click Upgrade**: Dual-registry acceleration, auto macOS/Windows adaptation, upgrade with one click. |
34
35
 
35
36
  ---
@@ -72,7 +73,7 @@ dsh plugin --profile web add dsh-github-flow
72
73
 
73
74
  ## 🤖 Core Agent Tools: Equipping Agents with Native GitHub Powers
74
75
 
75
- Consolidates scattered GitHub endpoints into **9 core domain tools (76+ actions covering PR/Issue/Actions workflow governance/clone-free file reads/secrets & variables)**, featuring **Token Budget Protection (default 24KB intelligent truncation)**, **High-density Native Markdown Rendering (70%+ list output token reduction)** and **Zero-argument CWD auto-binding**.
76
+ Consolidates scattered GitHub endpoints into **14 core domain tools (85+ actions)**, featuring **Token Budget Protection (default 24KB intelligent truncation)**, **High-density Native Markdown Rendering (70%+ list output token reduction)** and **Zero-argument CWD auto-binding**.
76
77
 
77
78
  ### 1. `github_pr`: Pull Request Lifecycle & Automated Code Review
78
79
  > **Example Agent Prompts**:
@@ -86,7 +87,9 @@ Consolidates scattered GitHub endpoints into **9 core domain tools (76+ actions
86
87
  * `view`: Inspect PR description, metadata, and mergeability;
87
88
  * `diff`: Retrieve complete code diffs (`stat_only` for file-change overview, safely truncated against token limits);
88
89
  * `checks`: Audit CI gate status (pass/fail/skip category badges, owning workflow, and detail links);
89
- * `create`: Auto-create PRs (supports draft mode & `--dry-run`);
90
+ * `create`: Auto-create PRs (supports draft mode & `--dry-run`, supports `attach_images` local uploads);
91
+ * `edit`: 🆕 Edit PR title, body description, and metadata with image attachment support;
92
+ * `comment`: 🆕 Post comments and reviews to pull requests with image attachment support;
90
93
  * `checkout`: 🆕 Check out PR code to a local branch for sandboxed testing;
91
94
  * `status`: 🆕 Inspect merge conflict status (`CLEAN` / `CONFLICT`) for the current branch's PR;
92
95
  * `review`: Submit code reviews (`APPROVE`, `REQUEST_CHANGES`, `COMMENT`);
@@ -94,151 +97,217 @@ Consolidates scattered GitHub endpoints into **9 core domain tools (76+ actions
94
97
  * `ready`: 🆕 Toggle Draft ↔ Ready (`undo: true` converts back to Draft — fully reversible);
95
98
  * `revert`: 🆕 Create a revert commit (generates a new revert PR on the remote; requires `confirm: true`);
96
99
  * `update_branch`: 🆕 Sync the latest base-branch commits into the PR branch — the self-healing action for "branch is out-of-date" CI gate failures;
97
- * `view_images`: 🆕 Download PR discussion screenshots (body + comments; `image_urls` targeting with budget-overflow resume list).
100
+ * `view_images`: 🆕 Download PR discussion screenshots (body + comments; `image_urls` targeting with budget-overflow resume list);
101
+ * `attach_images` (param): 🆕 Upload local images/attachments to PRs (up to 50 files/batch, symmetric with view_images, requires gh ≥ 2.99).
98
102
 
99
103
  ---
100
104
 
101
- ### 2. `github_run`: Actions CI Pipeline & Failure Diagnostics (Agent Auto-Fix Core)
105
+ ### 2. `github_issue`: Issue Tracking & Branch Creation
102
106
  > **Example Agent Prompts**:
103
- > - *"Why did the latest Actions workflow fail? Extract failed step logs and fix the code."*
104
- > - *"Show me the status of the last 5 CI runs in this repository."*
105
- > - *"Rerun the failed workflow from earlier."*
107
+ > - *"List all open issues assigned to me."*
108
+ > - *"Branch off a local fix branch 'fix-login-error' from Issue #42 and start working."*
109
+ > - *"Add a comment to Issue #15 summarizing the edge cases we just discovered with screenshots."*
106
110
 
107
111
  * **Supported Actions**:
108
- * `log_failed` (🔥 **Killer Feature**): **Optimized for Agents**; automatically extracts isolated error logs from failed steps for instant root-cause analysis;
109
- * `list`: View recent workflow runs and conclusions (`branch` / `status: failure` filters to pin down broken builds);
110
- * `view`: Inspect jobs and steps for a specific run ID;
111
- * `trigger`: 🆕 Manually dispatch `workflow_dispatch` workflows to verify fixes immediately;
112
- * `workflow_list`: 🆕 List workflows (active only by default; `all: true` includes disabled — when diagnosing "why didn't my workflow run", the disabled state itself is the answer);
113
- * `workflow_view`: 🆕 Workflow details (locate by name/ID/filename, with recent runs);
114
- * `workflow_enable` / `workflow_disable`: 🆕 Toggle workflows (disable explicitly warns "the next trigger will fail silently");
115
- * `download`: 🆕 Download build artifacts to a plugin-managed directory (isolated per repo and run, returns file manifest; older gh versions get a security upgrade note);
116
- * `rerun`: Re-trigger failed CI runs;
117
- * `cancel`: Cancel in-progress workflows.
112
+ * `list`: List issues with flexible filtering (`state` / `labels` / `assignees`);
113
+ * `view`: Inspect full issue threads, body descriptions, and assignees;
114
+ * `create`: Create new issue tickets (supports `attach_images` local uploads);
115
+ * `comment`: Add comments to issue threads (supports `attach_images` error screenshot uploads);
116
+ * `edit`: Update titles, `add_labels`, or `remove_labels`;
117
+ * `close` / `reopen`: Manage lifecycle status (`close` requires `confirm: true`);
118
+ * `develop`: 🆕 Automatically branch off a local Git branch linked to the issue;
119
+ * `delete`: 🆕 Irreversible physical deletion (requires `confirm: true`);
120
+ * `transfer`: 🆕 Move issue to another repository with 301 redirects (requires `confirm: true`);
121
+ * `pin` / `unpin`: 🆕 Manage pinned issues on the repository;
122
+ * `lock` / `unlock`: 🆕 Lock discussions with standard reasons (`off_topic`, `resolved`, `spam`, `too_heated`);
123
+ * `status`: 🆕 Retrieve a comprehensive dashboard of issues assigned to the active user;
124
+ * `view_images`: 🆕 Download screenshot attachments from issue descriptions and comments into local image blocks;
125
+ * `attach_images` (param): 🆕 Upload local file screenshots alongside issues (up to 50 local files/batch, requires gh ≥ 2.99).
118
126
 
119
127
  ---
120
128
 
121
- ### 3. `github_issue`: Issue Tracking & Closed-Loop Tasks
129
+ ### 3. `github_run`: Actions Monitoring & Intelligent Troubleshooting
122
130
  > **Example Agent Prompts**:
123
- > - *"File an issue for the memory leak we just reproduced, labeled 'bug' and 'backend'."*
124
- > - *"List all open issues assigned to me."*
125
- > - *"Comment on Issue #45: 'Fixed on master branch, awaiting verification'."*
126
- > - *"Close Issue #45."*
131
+ > - *"Did the latest CI run on main fail?"*
132
+ > - *"Extract the failed step logs from the recent failed run and debug the root cause."*
133
+ > - *"Re-run the latest failed CI pipeline."*
127
134
 
128
135
  * **Supported Actions**:
129
- * `list`: Query issues with flexible filters (`state` / `labels` / `assignees` / `limit`);
130
- * `view`: Read issue body and discussion history;
131
- * `create`: Create new issues (title, body, labels, assignees);
132
- * `edit`: 🆕 Update title, body, and add/remove labels;
133
- * `develop`: 🆕 Create a linked development branch from an issue and check it out locally;
134
- * `comment`: Append debugging updates or notes;
135
- * `close` (requires `confirm: true`) / `reopen`: Manage issue lifecycle states;
136
- * `delete`: 🆕 **Permanently delete** an issue (requires `confirm: true`; the number is gone forever and comments are destroyed — fundamentally different from close, which can be reopened);
137
- * `transfer`: 🆕 Transfer an issue to another repository (requires `confirm: true`; original URL 301-redirects, ownership cannot be silently reverted);
138
- * `pin` / `unpin`: 🆕 Toggle issue pinning (reversible state flag);
139
- * `lock` / `unlock`: 🆕 Lock/unlock conversation (`lock_reason` supports off_topic/resolved/spam/too_heated);
140
- * `status`: 🆕 Account-level assigned-issues panel (Assigned / Mentioning sections);
141
- * `view_images`: 🆕 Download issue attachment screenshots (body + comments; `image_urls` targeting with resume list).
136
+ * `list`: Query workflow runs by branch or status;
137
+ * `view`: Inspect step breakdown and conclusion states;
138
+ * `log_failed`: **🔥 Troubleshooting Swiss Army Knife**! Pinpoints exact failing jobs and steps, extracting only the critical failure lines;
139
+ * `rerun`: Re-trigger failed workflows with one click;
140
+ * `cancel`: Cancel in-progress or queued runs;
141
+ * `trigger`: Manually dispatch `workflow_dispatch` workflows with custom parameters;
142
+ * `workflow_list`: 🆕 List all workflows in the repository (`all: true` includes disabled ones);
143
+ * `workflow_view`: 🆕 Inspect workflow YAML definitions and total run metrics;
144
+ * `workflow_enable` / `workflow_disable`: 🆕 Toggle workflow status dynamically;
145
+ * `download`: 🆕 Download build artifacts (strictly adhering to GHSA path-traversal safeguards).
142
146
 
143
147
  ---
144
148
 
145
- ### 4. `github_repo`: Repository Exploration & Cross-Repo Code Search
149
+ ### 4. `github_repo`: Metadata, Fork Sync, Clone-Free File Reads & Global Search
146
150
  > **Example Agent Prompts**:
147
- > - *"Search for usages of 'createPrTool' across this repository."*
148
- > - *"Search GitHub for popular open-source repositories related to 'dsh-plugin'."*
149
- > - *"Show repository metadata and star count for cli/cli."*
151
+ > - *"Sync my fork with the upstream repository."*
152
+ > - *"Search where 'useAuthToken' is used across this repository."*
153
+ > - *"Read 'src/utils.ts' on the remote repository without cloning."*
154
+ > - *"Fetch the README, and download the architecture diagrams inside it."*
150
155
 
151
156
  * **Supported Actions**:
152
- * `view`: View repository metadata (default branch, stars, description, topics & license);
153
- * `readme`: 🆕 Read repository README raw content (branch-selectable; relative-path screenshots auto-resolved and downloaded);
154
- * `sync`: 🆕 One-click fork sync with upstream to fix stale-fork CI gate failures;
155
- * `search_code`: Search code symbols in current or specified repositories;
156
- * `search_repos`: Search open-source GitHub repositories globally;
157
- * `search_issues` / `search_prs` / `search_commits`: 🆕 Global search over issues / PRs / commits (qualifiers go inline in the query, e.g. `repo:o/r state:open`; commits require search text);
158
- * `read_file`: 🆕 **Clone-free single-file read at any path** (native on gh ≥2.95; older versions auto-degrade to the contents API with an explicit degraded-path note; binary files are rejected with `github_api` guidance);
159
- * `read_dir`: 🆕 Clone-free directory listing (dirs first + file sizes, same degradation path).
157
+ * `view`: Inspect repository metadata, default branch, Star/Fork counts, licenses, and topics;
158
+ * `readme`: 🆕 Read README text and extract all referenced image URLs, with optional `image_urls` batch downloads;
159
+ * `sync`: Sync fork branch with upstream (`--force` hard reset supported);
160
+ * `read_file`: 🆕 Clone-free remote file reading (`gh ≥ 2.95` direct, older CLI versions auto-fallback to REST API);
161
+ * `read_dir`: 🆕 Clone-free remote directory enumeration with file types and sizes;
162
+ * `search_code`: Search code across GitHub repositories;
163
+ * `search_repos`: Search repositories by keywords and topics;
164
+ * `search_issues` / `search_prs`: Global issue and pull request queries;
165
+ * `search_commits`: Global commit message search.
160
166
 
161
167
  ---
162
168
 
163
- ### 5. `github_api`: Low-Level Escape Hatch
169
+ ### 5. `github_release`: Release Governance & Build Artifact Delivery
164
170
  > **Example Agent Prompts**:
165
- > - *"Call GitHub API to fetch latest releases of current repository and parse tag names with jq."*
171
+ > - *"Check the latest release notes and assets for this repository."*
172
+ > - *"Draft a new v0.4.0 release using commits since the last tag."*
173
+ > - *"Upload the local build artifact 'dsh-github-flow-0.4.0.tgz' to the latest release."*
166
174
 
167
- * **Core Strength**: Call any GitHub REST or GraphQL API using local credentials with `--jq` filtering, `raw` text mode, and `paginate` auto-aggregation.
175
+ * **Supported Actions**:
176
+ * `list`: Query release history;
177
+ * `view`: Inspect notes and asset manifests for a given tag;
178
+ * `create`: Publish releases (supports `generate_notes`, drafts, prereleases, and asset attachments);
179
+ * `upload`: Attach build assets to an existing release (`clobber: true` requires `confirm: true`);
180
+ * `download`: Download release artifacts with glob pattern filters;
181
+ * `delete`: Delete releases (`cleanup_tag: true` deletes associated Git tag; requires `confirm: true`).
168
182
 
169
183
  ---
170
184
 
171
- ### 6. `github_release`: Version Releases & Build Asset Delivery 🆕
185
+ ### 6. `github_secret`: CI/CD Secrets & Variables Governance
172
186
  > **Example Agent Prompts**:
173
- > - *"Publish v0.2.0 for this repository with auto-generated release notes."*
174
- > - *"Upload dsh-github-flow-0.2.0.tgz to the v0.2.0 release."*
187
+ > - *"List the names of all configured Actions secrets."*
188
+ > - *"Set a repository secret named 'DEPLOY_KEY'."*
189
+ > - *"Read the value of plaintext variable 'NODE_ENV'."*
175
190
 
176
191
  * **Supported Actions**:
177
- * `list` / `view`: Browse release history and per-version details (assets, notes);
178
- * `create`: Create releases (`generate_notes` auto-notes, `draft` / `prerelease` flags, attach assets directly);
179
- * `upload` / `download`: Upload `.tgz` build artifacts or download assets by glob pattern;
180
- * `delete` (requires `confirm: true`): Delete a release, optionally cleaning up its tag.
192
+ * `list`: Enumerate secret or variable names (secret values are never echoed);
193
+ * `set`: Configure secrets (**Security Invariant: ciphertext safely passed via stdin, never in command arguments or process tables**) or variables;
194
+ * `get`: 🆕 Read variable values (available only for `kind: 'variable'`; secrets are cryptographically shielded by GitHub);
195
+ * `delete`: Remove secrets or variables (secret deletion requires `confirm: true`).
181
196
 
182
197
  ---
183
198
 
184
- ### 7. `github_secret`: CI/CD Secrets & Variables Management 🆕
199
+ ### 7. `github_skill`: Agent Skills Ecosystem Discovery & Local Installation
185
200
  > **Example Agent Prompts**:
186
- > - *"Update the NPM_TOKEN secret for this repository."*
187
- > - *"Show which secrets are configured for this repo."*
188
- > - *"Set the DEPLOY_ENV variable to staging and read it back to confirm."*
201
+ > - *"Search GitHub for open-source Agent skills related to 'markdown'."*
202
+ > - *"Preview and install the code review skill from 'github/awesome-copilot' into this project."*
189
203
 
190
204
  * **Supported Actions**:
191
- * `list`: Show secret/variable names and update times (the GitHub API never exposes secret values);
192
- * `set`: Set/update secret values — **passed via subprocess stdin, never on the command line (ps-safe), never echoed in output**;
193
- * `delete` (requires `confirm: true`): Remove a secret.
194
- * Switch to **Actions plaintext variables** via `kind: 'variable'`: `set` passes the value directly as a flag and `get` can echo it back (that's the design difference from secrets — secrets are encrypted GitHub-side after write and physically unreadable); the two security semantics are physically isolated in the rendering layer.
195
- * Supports repository / organization (`org`) / environment (`env`) scopes across `actions` / `codespaces` / `dependabot` / `agents` apps.
205
+ * `search`: Discover compliant Agent skills across open-source GitHub repositories;
206
+ * `preview`: Preview `SKILL.md` rule instructions without installing;
207
+ * `install`: Install skills locally (`scope: 'project'` or `'user'`; requires `confirm: true`);
208
+ * `list`: Inspect installed skills in the current environment.
196
209
 
197
210
  ---
198
211
 
199
- ### 8. `github_skill`: Cross-Agent Open-Source Skills Discovery 🆕
212
+ ### 8. `github_help`: Comprehensive Mapping, Official Syntax & Self-Healing
200
213
  > **Example Agent Prompts**:
201
- > - *"Search GitHub for an Agent Skill about code review."*
202
- > - *"Preview that skill's content, then install it to this project if it looks good."*
214
+ > - *"I am not sure which tool manages Discussions; check the mapping table for me."*
215
+ > - *"What is the syntax for filtering GitHub search results by date?"*
216
+ > - *"How do I debug 'authentication failed' errors from gh?"*
203
217
 
204
218
  * **Supported Actions**:
205
- * `search`: Search open-source `SKILL.md` skills across GitHub (Code Search based, ranked by stars);
206
- * `preview`: Read-only preview of skill content before installing — nothing touches disk;
207
- * `install` (requires `confirm: true`): Install to local agent hosts (Claude Code / Cursor / Copilot and 50+ others), `project` or `user` scope;
208
- * `list`: List all skills installed on this machine.
209
- * Requires the official `gh skill` preview feature in GitHub CLI 2.9x+.
219
+ * `overview`: Complete toolbox navigation and summary table (14 core tools);
220
+ * `mapping`: **Official gh Command ↔ Tool Action Mapping Table**, detailing exact tool calls and REST/GraphQL fallback routes;
221
+ * `search_syntax`: Date ranges, qualifiers, and boolean query syntax;
222
+ * `troubleshooting`: Self-healing recipes for authentication loss, timeouts, SOCKS5 proxy configs, and permissions;
223
+ * Domain guides: In-depth usage guides for `pr`, `issue`, `run`, `repo`, `release`, `secret`, `skill`, `label`, `ruleset`, `cache`, `gist`, and `status`;
224
+ * `gh_command`: Direct pass-through lookup of official gh manual entries (e.g. `gh_command: 'ruleset'`).
210
225
 
211
226
  ---
212
227
 
213
- ### 9. `github_help`: Meta Guide & Troubleshooting Hub 🆕
228
+ ### 9. `github_api`: Raw GitHub REST & GraphQL Escape Hatch
214
229
  > **Example Agent Prompts**:
215
- > - *"I'm not sure which GitHub tool to use for this task."*
216
- > - *"How do I write advanced GitHub search syntax?"*
230
+ > - *"Call GitHub API to fetch the current user's profile JSON."*
231
+ > - *"Run a GraphQL query to inspect repository Discussions."*
217
232
 
218
- * **Core Capabilities**:
219
- * Task-routing navigation across all 9 tools;
220
- * Official advanced search syntax cheat sheet (date ranges, status qualifiers, code search scopes);
221
- * Self-healing recipes for common errors (403 rate limits, 422 missing params, stale forks, outdated CLI);
222
- * Direct passthrough to the official `gh help <command>` offline manual.
233
+ * **Supported Features**: Direct invocation of arbitrary GitHub REST or GraphQL endpoints using host credentials, supporting `--jq` filtering, auto-pagination (`paginate: true`), and `raw: true` mode.
223
234
 
224
235
  ---
225
236
 
226
- ## 🛡️ Safety Guardrails
237
+ ### 10. `github_label`: Label System Management & Cross-Repo Cloning
238
+ > **Example Agent Prompts**:
239
+ > - *"List all labels in this repository sorted by name."*
240
+ > - *"Create a label 'priority/p0' with color #d73a4a for critical bugs."*
241
+ > - *"Clone the label system from 'cli/cli' repository into our new repository."*
242
+ > - *"Delete the deprecated 'invalid' label."*
227
243
 
228
- * **Destructive-action double confirmation**: `merge`, `close`, `release delete`, clobber uploads, `secret delete`, and `skill install` require an explicit `confirm: true` parameter; without it, only an impact assessment is returned — nothing executes. This prevents accidental merges or deletions from model hallucinations.
229
- * **Secret stdin channel**: Secret values travel via subprocess stdin — never on the command line (ps / task-manager safe), never persisted, never echoed; gh encrypts locally with the repository public key before uploading.
230
- * **Command-injection immunity**: All gh invocations use `execFile` array-argument isolation with zero shell string concatenation.
244
+ * **Supported Actions**:
245
+ * `list`: List repository labels (supports `search` regex/keyword, `sort: 'created' | 'name'`, and `order: 'asc' | 'desc'`);
246
+ * `create`: Create a new label (hex color normalization, optional `force: true` to update existing);
247
+ * `edit`: Update label color, description, or rename via `new_name`;
248
+ * `delete`: Safe deletion (affects associated issues/PRs; requires `confirm: true` confirmation, injects `--yes`);
249
+ * `clone`: 🆕 **One-click cross-repo label cloning**: Copy all labels from a source repository (`source_repo`) into the target repository (supports `force: true` to overwrite conflicts).
231
250
 
232
251
  ---
233
252
 
234
- ## 🖥️ Native Web UI Workspace & Settings Center
253
+ ### 11. `github_ruleset`: Branch Protection Rules & Policy Diagnosis
254
+ > **Example Agent Prompts**:
255
+ > - *"Why can't I merge this PR? Check all applicable rules for this branch."*
256
+ > - *"Verify whether branch master requires CI status checks or 2 approvals."*
257
+ > - *"List all repository rulesets."*
258
+
259
+ * **Supported Actions**:
260
+ * `check`: **🔥 Core PR Merge Blocker Diagnosis**! View all protective rules governing a branch (e.g. required approvals, required status checks, linear history, force-push denial), complementing `github_pr(action: 'checks')` with authoritative policy perspective;
261
+ * `list`: List rulesets for repository or organization (`--org` and `--no-parents` support);
262
+ * `view`: Inspect ruleset configuration and target branches (requires `ruleset_id`).
235
263
 
236
- No more window switching! Seamlessly integrated into DSH with DSW design tokens and instant light/dark theme adaptation.
264
+ ---
265
+
266
+ ### 12. `github_cache`: Actions Build Cache Auditing & Safe Cleanup
267
+ > **Example Agent Prompts**:
268
+ > - *"How much cache space is consumed by GitHub Actions in this repository?"*
269
+ > - *"List build caches sorted by size in descending order."*
270
+ > - *"Purge all build caches in this repository."*
271
+
272
+ * **Supported Actions**:
273
+ * `list`: Audit Actions caches with human-readable size formatting (KB/MB/GB), key prefix and ref filtering, and size/access sorting;
274
+ * `delete`: Precise 3-way cleanup (by `cache_id`, by `key`, or purge everything via `all: true`; purge is destructive and requires `confirm: true`, injects `--succeed-on-no-caches` for idempotency).
275
+
276
+ ---
277
+
278
+ ### 13. `github_gist`: Code Snippets & Diagnostics Archiving
279
+ > **Example Agent Prompts**:
280
+ > - *"Publish this diagnostic error log as a Secret Gist and share the link."*
281
+ > - *"List all gists on my user account."*
282
+ > - *"Inspect the contents of Gist '5b0e0062eb8e9654adad7bb1d81cc75f'."*
237
283
 
238
- ### 1. Global Cockpit (Main Navigation Slot)
239
- Access via the GitHub icon in the main left navigation:
240
- * **⚡ 0ms Instant Render (SWR Persistent Cache)**: Powered by local snapshot persistence; say goodbye to full-screen 8~15s spinner freezes and enjoy instant dashboard loading;
241
- * **📦 Live Freshness Status Pill**: Transparently communicates data freshness right next to the title (`[📦 Local Snapshot (21m ago)]` ➔ `[⏳ Syncing in background...]` ➔ `[✅ Up to date (15:30)]` ➔ `[⚠️ Timeout, cached data preserved]`);
284
+ * **Supported Actions**:
285
+ * `list`: List user gists (structured TSV parser, supports `public` / `secret` / `filter` options);
286
+ * `view`: View raw code contents of a gist (optional `filename` targeting, requires `gist_id`);
287
+ * `create`: Create gists from `content` string (streamed via safe stdin pipeline) or local `files`, defaults to Secret mode with **explicit unlisted security warnings**;
288
+ * `edit`: Update descriptions or files in a gist;
289
+ * `delete`: Permanently delete a gist (requires `confirm: true` and `--yes`).
290
+
291
+ ---
292
+
293
+ ### 14. `github_status`: Cross-Repository Todo & Activity Dashboard
294
+ > **Example Agent Prompts**:
295
+ > - *"What tasks and pull requests need my attention on GitHub today?"*
296
+ > - *"Check recent @mentions and activity across all repositories I follow."*
297
+
298
+ * **Supported Actions**:
299
+ * `view`: **Account-level global status cockpit**, aggregating Assigned Issues, Assigned PRs, Review Requests, Mentions, and Repository Activity across all subscribed repositories without needing repository context; supports `-o` org filtering and `-e` noise repository exclusion.
300
+
301
+ ---
302
+
303
+ ## 🖥️ Web UI Cockpit & Right Sidebar Workspace Panel
304
+
305
+ `dsh-github-flow` delivers native visual controls alongside its Agent toolset:
306
+
307
+ ### 1. Global Cockpit (Main Dashboard)
308
+ Click the **Octocat icon** in DSH's left navigation bar to open the full-screen cockpit:
309
+ * **⚡ 0ms Instant Render (SWR Persistent Cache)**: Powered by local snapshot persistence; enjoy instant dashboard loading;
310
+ * **📦 Live Freshness Status Pill**: Transparently communicates data freshness right next to the title (`[📦 Local Snapshot (21m ago)]` ➔ `[⏳ Syncing in background...]` ➔ `[✅ Up to date (15:30)]` ➔ `[⚠️ Network failed, offline snapshot displayed]`);
242
311
  * **Account-Wide Overview**: Live view of all cloud repositories, default branches, and star counts;
243
312
  * **Local Workspace Matrix**: Automatically detects open projects and bridges local directories with remote repos;
244
313
  * **3D Issue Governance Matrix**: Categorizes issues into *"📥 User Reported"*, *"🎯 Assigned to Me"*, and *"✍️ Created by Me"* with responsive pill filters;
@@ -251,20 +320,24 @@ Access via the GitHub icon in the main left navigation:
251
320
  ### 2. Session Right Sidebar Panel (Workspace Drawer)
252
321
  Located in the right drawer of every chat workspace, seamlessly bridging your local Git workspace with remote GitHub repositories:
253
322
  * **Context Auto-Binding**: Automatically locks onto the active Git repository of the current session;
254
- * **Freshness Pill Alignment**: Compact indicator `[📦 Local Snapshot (2m ago)]` with live `[🔄 Refresh]` button, 100% aligned with global rules for an instant 0ms first render;
323
+ * **Branch Viewing & Safe In-UI Switching (Branch Selector)**:
324
+ * Visual branch dropdown directly inside the repository card;
325
+ * Built with official **Git diamond vector icons (`#1296db` SVG)**;
326
+ * Pre-fetched with the overview payload for an **instant 0ms dropdown opening**, featuring live keyword search across local and remote branches;
327
+ * **Dirty File Guard**: Strict pre-flight checks block switching if there are uncommitted changes, protecting work from destructive overwrites;
328
+ * **Freshness Pill Alignment**: Compact indicator `[📦 Local Snapshot (2m ago)]` with live `[🔄 Refresh]` button;
255
329
  * **Quick Action Grid**: Open repo in browser, jump to Issues/PRs, create PRs with one click;
256
- * **Five Mutually Exclusive Tabs**: Compact tabbed navigation directly below the quick action grid, reducing vertical scrolling:
330
+ * **Five Mutually Exclusive Tabs**: Compact tabbed navigation directly below the quick action grid:
257
331
  * **Git Records (`Git`)** (Default tab):
258
332
  * Branch & Remote Sync: Real-time branch indicator (e.g. `master`) with tracking sync status (`✓ Up to date` or `↑N to push` / `↓N to pull`);
259
333
  * Three-Section Commit View: Unpushed commits (ahead of remote), unpulled commits (behind remote), and recent commit history;
260
334
  * 15 commits displayed by default, with **infinite scroll loading** when scrolling to the bottom (with live `15 / 74` progress counter and click trigger);
261
- * Latest Release badge (`🏷️ v0.2.1`) anchored in the top right with hover details and direct release link;
262
- * **Commit Detail Modal**: Click any commit row to open a clean modal dialog centered within the right sidebar (scoped inside drawer boundaries without overflowing full-screen), featuring smooth vertical scrolling, full 40-char SHA, author email, date, multi-line commit message body, and file diff stat table (`--stat`); pure local 0ms instant display, closable via `Esc`, close button, or backdrop click;
335
+ * Latest Release badge (`🏷️ v0.4.0`) anchored in the top right with hover details and direct release link;
336
+ * **Commit Detail Modal**: Click any commit row to open a clean modal dialog centered within the right sidebar, featuring smooth vertical scrolling, full 40-char SHA, author email, date, multi-line commit message body, and file diff stat table (`--stat`), pure local 0ms instant display;
263
337
  * **Uncommitted Changes (`📁 Uncommitted (N)`)**: Full-width list of uncommitted files with color-coded status codes (`??` untracked, `M` modified, `D` deleted, `R` renamed) and change counts;
264
338
  * **Pull Requests (`🔀 PR (N)`)**: Open PR inspection with 3-state CI check rollup (`✅ CI Passed` / `❌ CI Failed` / `⏳ CI Pending`), merge conflict detection, review decisions (`✔ Approved` / `✋ Changes Requested` / `👀 Review Required`), Draft pills, and humanized relative timestamps;
265
339
  * **Workspace Issues (`📋 Issues (N)`)**: Direct issue task review with assignees, labels, and category pills;
266
340
  * **Actions Pipeline (`⚡ Actions (N)`)**: Real-time CI workflow status tracking with trigger event badges (`push`/`schedule`/`manual`/`PR`), relative time, and self-healing diagnostic notes for failed runs (embedding `run_id` for Agent one-click log inspection);
267
- * **Official Git Vector Icon**: High-definition Git diamond vector icon (`#1296db` SVG) across all Git and branch labels;
268
341
  * **⚙️ Full Settings Access**: Dedicated settings button reusing the same settings modal as the cockpit (all four sections: Sync / Proxy / Update Source / About) — no need to switch back to the main page.
269
342
 
270
343
  <p align="center">
@@ -272,27 +345,27 @@ Located in the right drawer of every chat workspace, seamlessly bridging your lo
272
345
  </p>
273
346
 
274
347
  ### 3. Settings Center (Settings Modal)
275
- Click **`[⚙️ Settings]`** in the top right of the Cockpit (or the ⚙️ button in the right sidebar) to open the sectioned settings modal (left-side navigation, independently scrolling content; collapses to horizontal tabs on narrow screens):
348
+ Click **`[⚙️ Settings]`** in the top right of the Cockpit (or the ⚙️ button in the right sidebar) to open the sectioned settings modal:
276
349
 
277
- **🔄 Data Sync Section** — tune data fetching rhythm:
278
- * **Two Sync Strategies**:
279
- * **⚡ Instant Render (SWR, Recommended)**: Instantly displays local cache (0ms), then silently syncs the latest state within 300ms — no matter how stale the cache is, opening the panel self-heals to fresh data;
350
+ **🔄 Data Sync Section** — tune data fetching rhythm and perception sensitivity:
351
+ * **Three Mutually Exclusive Data Refresh Strategies**:
352
+ * **⚡ Instant Render (SWR, Default)**: Instantly displays local cache (0ms), then silently syncs the latest state in the background on initial load;
353
+ * **☁️ Cloud Scheduled Auto-Sync (SWR + Polling)**: Instantly renders local cache and syncs once on mount, then counts down cyclically (**5/10/30/60 minutes** selectable; features automatic window visibility pause to prevent API quota drain in background tabs);
280
354
  * **📋 Manual Only (Energy Saver)**: Browse local cache only; zero background `gh` processes triggered; click `[🔄 Refresh]` whenever you want updates.
355
+ * **Advanced Automation & Status Perception**:
356
+ * **📁 Local Git Real-Time Watch (Right Sidebar Only, Enabled by Default)**: Monitors `.git/HEAD` and `.git/index` metadata directly; staging, commit, and branch changes synchronize to the sidebar within milliseconds with an 800ms debounce, consuming zero external network quota; omitted from the main cockpit to preserve lightweight performance.
281
357
  * **Visual Cache Management**: Real-time snapshot size and timestamp visibility with one-click `[🗑️ Clear Cache]`.
282
358
 
283
359
  **🌐 Network Proxy Section** — route all plugin traffic through your proxy:
284
- * **Global Scope**: Once configured, the cockpit, right-sidebar panel, all 9 Agent tool invocations, and one-click upgrades route through the proxy; when disabled, system environment proxies (`HTTPS_PROXY` etc.) or direct connections apply;
285
- * **Protocol Support**: `http://` / `https://` / `socks5://` / `socks5h://` (gh and npm chains natively support SOCKS5; `socks5h` delegates DNS resolution to the proxy for stronger pollution resistance; the npm version probe uses Node fetch which does not support SOCKS — it stays direct and the UI states this honestly);
360
+ * **Global Scope**: Once configured, the cockpit, right-sidebar panel, all 9 Agent tool invocations, and one-click upgrades route through the proxy;
361
+ * **Protocol Support**: `http://` / `https://` / `socks5://` / `socks5h://` (`socks5h` delegates DNS resolution to the proxy for stronger pollution resistance);
286
362
  * **`[🧪 Test Connectivity]`**: One-click latency probe against the GitHub API through the current proxy;
287
363
  * **Instant Effect**: Persisted to `~/.dsh/data/dsh-github-flow/proxy.json` (auto-restored on DSH restart) — no restart, no plugin reload;
288
- * **Visibility**: A `🌐 Proxy` badge appears in the cockpit title bar while active; hover to inspect the current proxy URL;
289
- * **NO_PROXY Exclusions**: `localhost` and `127.0.0.1` are forcibly included — loopback Web API requests are never hijacked by the proxy.
364
+ * **NO_PROXY Exclusions**: `localhost` and `127.0.0.1` are forcibly included.
290
365
 
291
366
  **⬆️ Update Source Section** — choose which npm registry checks for new versions:
292
367
  * **Three options**: 🌍 npm official registry (default — new releases visible immediately) / 🇨🇳 npmmirror (fast in China; minutes-level sync delay) / ⛔ No update checks (only silences the upgrade banner; `/gh upgrade` and one-click upgrade remain available);
293
368
  * **Strict single-source**: the selected source is never silently swapped — probe failures are reported honestly;
294
- * **Detection & upgrade traffic follows the global proxy setting** (socks5 boundary stated honestly in the UI);
295
- * **One-click upgrade installs from the selected source** — consistent with version detection;
296
369
  * **Verify on save**: switching sources immediately probes the new registry and shows the latest version.
297
370
 
298
371
  **ℹ️ About Section** — plugin identity & project info:
@@ -312,15 +385,14 @@ Click **`[⚙️ Settings]`** in the top right of the Cockpit (or the ⚙️ but
312
385
  Never miss an update! Built-in industrial-grade update management:
313
386
 
314
387
  1. **Parallel Detection, Zero gh-Dependency**:
315
- - Update checks fire **in parallel with the gh environment chain** (install/login/business data) on mount — never serialized behind gh overviews; gh failures never block upgrade banners;
388
+ - Update checks fire **in parallel with the gh environment chain** on mount — never serialized behind gh overviews; gh failures never block upgrade banners;
316
389
  - Server-side `inFlightPromise` merging + 24h cache keeps multi-panel mounting storm-free.
317
390
  2. **Selectable Update Source** (see the "⬆️ Update Source" settings section):
318
391
  - Defaults to the **npm official registry** (new releases visible immediately), or switch to **npmmirror** (minutes-level sync delay);
319
- - Auto checks can be disabled entirely (only silences prompts — `/gh upgrade` and one-click upgrade stay available).
392
+ - Auto checks can be disabled entirely.
320
393
  3. **Cross-Platform One-Click Upgrade**:
321
394
  - **Click to Upgrade**: Click **`[⚡ Upgrade]`** in the UI to update in the background;
322
395
  - **Auto OS Adaptation**: Differentiates macOS and Windows; auto-injects Homebrew PATH variables on macOS GUI launches;
323
- - **Registry Follows Setting**: One-click upgrades install from the source selected in Update Source settings;
324
396
  - **Source Protection**: Automatically aborts npm overwrites when running in local Git linked development mode (`link:`);
325
397
  - **Restart Guidance**: Clearly notifies users to restart DSH service to reload backend tools, with instant web refresh options.
326
398
 
@@ -330,10 +402,11 @@ Never miss an update! Built-in industrial-grade update management:
330
402
 
331
403
  Why did the Global Cockpit take several seconds to load in earlier releases? Because it concurrently executes a dozen `gh` processes scanning multiple repositories and workspaces. This plugin integrates the **Stale-While-Revalidate (SWR)** caching pattern, putting total control back in your hands:
332
404
 
333
- ```
405
+ ```text
334
406
  Initial Mount (0ms) ──────────> Instantly render local persistent snapshot
335
407
  │
336
- ├── SWR Mode: Idle 300ms delay, silently revalidate in background
408
+ ├── SWR Mode: Idle 300ms delay, silently revalidate in background once
409
+ ├── Cloud Scheduled Sync: Starts countdown after initial sync (5/10/30/60m pause on hide)
337
410
  └── Manual Mode: Browse offline snapshot, only fetch on click [🔄 Refresh]
338
411
  ```
339
412
 
@@ -341,50 +414,50 @@ Initial Mount (0ms) ──────────> Instantly render local persi
341
414
 
342
415
  | Sync Strategy | Mechanism | Recommended Use Case |
343
416
  | :--- | :--- | :--- |
344
- | **⚡ Instant Render (SWR, Default)** | **0ms instantaneous mount** from local cache, silently revalidating in background within 300ms — however stale the snapshot, opening the panel self-heals to fresh data. | **Recommended for all developers**. Eliminates spinner freezes, delivering seamless UX. |
417
+ | **⚡ Instant Render (SWR, Default)** | **0ms instantaneous mount** from local cache, silently revalidating in background once on mount — however stale the snapshot, opening the panel self-heals to fresh data. | **Recommended for all developers**. Eliminates spinner freezes, delivering seamless UX. |
418
+ | **☁️ Cloud Scheduled Auto-Sync (SWR + Polling)** | Instantly renders local cache and revalidates on mount, then starts a recurring timer (5/10/30/60m); features visibility-change pause to prevent background API quota drain. | **Active developers managing multiple repositories, PR workflows, and team issues**. |
345
419
  | **📋 Manual Only (Energy Saver)** | Browse local cache only; zero automated background `gh` processes. | **Battery-powered laptops, low-spec hardware, or metered networks**. Zero background waste. |
346
420
 
347
- * **Offline Resilience (Fail-Safe)**: Even when disconnected or hitting network timeouts, **your dashboard preserves the complete snapshot for searching, navigation, and review—zero blank screens or crash popups!**
421
+ * **Offline Resilience (Fail-Safe)**: Even when disconnected or hitting network timeouts, **your dashboard preserves the complete snapshot for searching, navigation, and review, paired with prominent offline warning banners and toasts—zero blank screens or crash popups!**
348
422
 
349
423
  ---
350
424
 
351
425
  ## 💬 Human Slash Commands
352
426
 
353
- Type directly into the DSH chat box:
427
+ Enter in any DSH chat window:
354
428
 
355
- * `/gh status`: Diagnostics for GitHub account authentication, scopes, repository binding, and plugin version;
356
- * `/gh upgrade`: Check latest npm version with platform-adapted upgrade commands;
357
- * `/gh help`: View command usage and Agent prompt examples.
429
+ * `/gh status`: Diagnostics for GitHub CLI auth status, scopes, active workspace repository, and plugin version;
430
+ * `/gh upgrade`: Check the latest npm release and output platform-tailored upgrade instructions (macOS / Windows / Linux);
431
+ * `/gh help`: View help documentation and example Agent dialogue recipes.
358
432
 
359
433
  ---
360
434
 
361
- ## ⚙️ Configuration (`cordis.patch.yml`)
435
+ ## ⚙️ Plugin Configuration (`cordis.yml`)
362
436
 
363
- Works out of the box, with optional tweaks in `cordis.patch.yml` or your profile:
437
+ Fine-tune options via DSH config:
364
438
 
365
439
  ```yaml
366
- - insert:
367
- - id: github-flow
368
- name: dsh-github-flow
369
- config:
370
- ghPath: 'gh' # GitHub CLI executable path
371
- defaultTimeoutMs: 30000 # Command timeout in milliseconds (default 30s)
372
- maxOutputChars: 24000 # Safe output character ceiling (Token protection)
373
- maxOutputBytes: 96000 # Safe UTF-8 byte ceiling (default maxOutputChars * 4)
374
- defaultListLimit: 20 # Default list size for pr/issue/run/release/skill queries
375
- cacheTtlMs: 15000 # Repository overview cache TTL (default 15s)
376
- checkUpdate: true # Enable automatic update checks (default true)
377
- agentEnvInjection: true # Inject AI_AGENT=dsh identity into gh (auto agent-friendly output on gh ≥2.99; false restores native gh behavior)
378
- updateCheckIntervalMs: 86400000 # Check interval in ms (default 24h)
379
- registryUrl: '' # Custom private npm registry URL
380
- proxyUrl: '' # Preset proxy default (e.g. 'http://127.0.0.1:7890'; only applies before the cockpit setting is saved — UI setting takes precedence)
440
+ - id: github-flow
441
+ name: dsh-github-flow
442
+ config:
443
+ ghPath: 'gh' # GitHub CLI executable path (default 'gh')
444
+ defaultTimeoutMs: 30000 # Command execution timeout in ms (default 30s)
445
+ maxOutputChars: 24000 # Max character output threshold (Token overflow protection)
446
+ maxOutputBytes: 96000 # Hard UTF-8 byte output cap, defaults to maxOutputChars * 4
447
+ defaultListLimit: 20 # Default query limit for list operations across PR/Issue/Run/Release/Skill
448
+ cacheTtlMs: 15000 # Repository overview cache TTL in ms (default 15s)
449
+ checkUpdate: true # Enable automated version checks (default true)
450
+ agentEnvInjection: true # Inject AI_AGENT=dsh for gh CLI recognition (default true)
451
+ updateCheckIntervalMs: 86400000 # Update check interval in ms (default 24h)
452
+ registryUrl: '' # Custom npm registry (defaults to Update Source setting)
453
+ proxyUrl: '' # Default proxy URL (overridden by UI settings)
381
454
  ```
382
455
 
383
456
  ---
384
457
 
385
- ## 🔌 Ecosystem Extensibility (Cordis Service)
458
+ ## 🔌 Cordis Ecosystem Service (`ctx.github`)
386
459
 
387
- Provides standard Cordis service `ctx.github`. Other plugins can reuse it directly:
460
+ Exports a standard Cordis service `ctx.github` for other DSH plugins:
388
461
 
389
462
  ```typescript
390
463
  import type { Context } from '@deepseek-ai/cordis';
@@ -400,16 +473,20 @@ export function apply(ctx: Context) {
400
473
 
401
474
  ---
402
475
 
403
- ## 📚 Documentation
476
+ ## 📚 Documentation & Technical References
404
477
 
405
478
  - [npm Publishing & Automated CI Guide](./docs/npm-publish-guide.md)
406
479
  - [Architecture & Technical Specifications](./docs/architecture.md)
480
+ - [Release Checklist & Pitfall Guide](./docs/UPGRADE-NOTES.md)
407
481
 
408
482
  ---
409
483
 
410
- ## Friendship links
411
- - [LINUX DO - A new ideal community](https://linux.do/)
484
+ ## Community Links
485
+
486
+ - [LINUX DO - A New Community for Developers](https://linux.do/)
487
+
488
+ ---
412
489
 
413
490
  ## 📄 License
414
491
 
415
- Open-sourced under the [MIT License](./LICENSE). Contributions, PRs, and Issues are welcome!
492
+ Open-sourced under the [MIT License](./LICENSE). Contributions and PRs welcome!