feat(install): one-command install and update with staleness checks

オープン
#410 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp, powershell

調査の方向性

Start by reading build.ps1, scripts/install-claude-desktop.ps1, and scripts/package-chat-skill.ps1, then check the dependency issue nevridge/taskflow-assistant#11 and the transfer issue nevridge/taskflow-assistant#38. The issue says this work is complete after the monorepo move in nevridge/TaskFlow#397; verify the new layout and transferred scope before considering any implementation.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Status 2026-11-06: the monorepo move is done (#398), and the dependency nevridge/taskflow-assistant#11 shipped (PR nevridge/taskflow-assistant#23). This issue is no longer blocked by #400 and is first in #420, because it changes how the assistant is run every day. Redesigned the same day: the plugin and the MCP server run from a runtime folder outside the repo, not from the clone.

Background

Before the move, the assistant repo was a standalone clone, and the plugin and Claude Desktop ran from that same folder. It is now assistant/ inside nevridge/TaskFlow, whose working tree changes branch daily. Running the assistant in place means:

  • the skills, agent and chat references you use every day follow whatever branch is checked out;
  • an unfinished assistant change runs as your live tool;
  • build.ps1 refuses to run while a server is using plugin/bin, and the server is always running;
  • the daily tool runs from a code repo, not from an install location.

The #398 work worked around this with a dedicated worktree (C:\code\TaskFlow-live, detached at origin/main). That is a stopgap: another repo-shaped folder to keep current by hand.

Keeping a local environment current after a pull also takes several manual steps across four pieces, and only one of them is scripted:

Piece Today Gap
MCP server (plugin/bin) Manual ./build.ps1 Easy to forget after a pull; unsafe while a server runs (see nevridge/taskflow-assistant#11)
Plugin skills and agents Loaded in place from the local marketplace path; /reload-plugins Follow the checked-out branch
Claude Desktop MCP registration scripts/install-claude-desktop.ps1, run once Holds an absolute path to the DLL; no check that it still points at the right place
Chat skill scripts/package-chat-skill.ps1, then a manual upload of the zip No way to tell whether chat/ changed since the last upload

Both Claude Code (plugin) and Claude Desktop (Chat) are used daily, so both paths need to stay current. A GitHub install is not an option today: plugin/bin is gitignored, so a copy installed from GitHub has no server.

Problem

Forgetting to rebuild or re-upload after a pull is a silent failure: the plugin skills update, but the server or the Chat skill lags behind, so tool behavior and instructions drift apart. And the live tool is tied to the state of a code checkout.

Proposed approach (ungroomed)

  1. An install step that stages everything into a runtime folder outside the repo, by default %LOCALAPPDATA%\TaskFlowAssistant\ (overridable):
    • the built server (TaskFlow.Mcp.dll and its files);
    • a copy of the plugin (skills, agent, .mcp.json, plugin.json) with a marketplace.json that points at it;
    • the packaged Chat skill zip;
    • a build-info.json stamp (source commit or hash).
  2. Claude Code adds the marketplace from the staged folder, and Claude Desktop's config points at the staged DLL. The repo can then be on any branch or in any state. Updating is re-running the script.
  3. A single update.ps1 entry point that:
    • stops if a server is running from the runtime folder (the check from nevridge/taskflow-assistant#11, now against the install folder);
    • builds and stages;
    • re-packages the Chat skill only when chat/ changed;
    • prints the manual steps still needed for this run (/reload-plugins, restart Claude Desktop, upload the zip).
  4. The same script does the first-time install, idempotent on re-run: marketplace add, plugin install, Claude Desktop registration. It also covers the one-time move off a marketplace registered from a repo path (the marketplace name stays taskflow-assistant, so the old one is removed first).
  5. Staleness: update.ps1 -Check reports, without changing anything, whether the staged build is older than src/, whether the Chat zip is older than chat/, and whether Desktop's config points at the runtime folder. build.ps1 exits early when the stamp already matches the source.
  6. The plugin's api_url is lost when the plugin is reinstalled (it resets to the default). The script should keep it or re-apply it (claude plugin configure ... --values-stdin), and install-claude-desktop.ps1 -ApiUrl must stay a parameter.

Out of scope

  • CI-published binaries or a GitHub release install.
  • Automating the Chat skill upload (not possible; the script only reports when it is needed).
  • Killing running processes automatically.

Open questions

  • Overwrite the runtime folder in place, or keep one folder per version for an easy rollback? (Earlier this issue ruled out side-by-side versioned folders; that is open again.)
  • Does Claude Code re-read a staged plugin folder on /reload-plugins the way it did for the worktree? (The reload output named the folder; confirm when building this.)
  • Should update.ps1 run git pull itself, or leave that to the user?
  • Does update.ps1 replace build.ps1, or wrap it? Dev builds in the repo (dotnet test, plugin/bin for local runs) still need to work.
  • Is the default location %LOCALAPPDATA%\TaskFlowAssistant right, and should -InstallDir be remembered?
  • Should the optional post-merge hook warning be included, given hooks are not versioned?
  • Is the plugin.json version bump still needed to refresh an installed copy?

Dependencies

None open. nevridge/taskflow-assistant#11 and the move (#398) are done. Build with the merged pipeline (#400) if it has landed; it does not block this.

主要言語
C#
スター
1
フォーク
0
平均マージ
2時間 2分
マージ済み PR(30日)
98

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nevridge/TaskFlow のほかの issue

nevridge/TaskFlow の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。