tisty-mcp 1.3.0 → 1.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.
- package/README.md +12 -0
- package/package.json +2 -2
- package/server/install.txt +1 -1
- package/server/launch.mjs +31 -0
package/README.md
CHANGED
|
@@ -51,6 +51,18 @@ Without Tisty, the assistant gets one tool, `install_tisty`, that tells you how
|
|
|
51
51
|
to get it. If Tisty lives somewhere unusual, set `TISTY_PATH` to the full path
|
|
52
52
|
of its `tisty` command.
|
|
53
53
|
|
|
54
|
+
## Hooks
|
|
55
|
+
|
|
56
|
+
From 1.4.0 the plugin also brings Tisty's hooks to Claude Code, and the Gemini
|
|
57
|
+
CLI extension brings them to Gemini CLI. When a session starts, your agent gets
|
|
58
|
+
the tasks it left open and what moved, in about 2,000 characters. When a turn
|
|
59
|
+
edited files and wrote nothing in Tisty, the turn is handed back once: if that
|
|
60
|
+
was work on a task, it ticks what it finished and, if it is done, says so with
|
|
61
|
+
the proof. They need a Tisty whose command line has `tisty hook`; with an older
|
|
62
|
+
one they stay silent.
|
|
63
|
+
Tisty's Settings › Assistants adds the same hooks to Cursor and GitHub Copilot,
|
|
64
|
+
and its switch **Remind it when a turn starts and ends** turns them off.
|
|
65
|
+
|
|
54
66
|
## Any other assistant
|
|
55
67
|
|
|
56
68
|
The same launcher is on npm as `tisty-mcp`, for assistants that take an MCP
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tisty-mcp",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Starts the MCP server of the Tisty app installed on this computer:
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "Starts the MCP server of the Tisty app installed on this computer: shared working memory for you and your AI agent, with notes, documents, tasks and ideas as Markdown on your own disk.",
|
|
5
5
|
"mcpName": "io.github.rgdevment/tisty",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
package/server/install.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Tisty is not installed on this computer, or not where this launcher looks, so its tools are not available.
|
|
2
2
|
Install it from https://www.tisty.app/docs/installation/: on Windows from the Microsoft Store, with `winget install rgdevment.Tisty` or the installer, on macOS with `brew tap rgdevment/tap && brew trust rgdevment/tap && brew install --cask tisty`.
|
|
3
|
-
Open it once,
|
|
3
|
+
Open it once, then restart this assistant. If Tisty turns it away, its door is closed: open it again in Settings › Assistants.
|
|
4
4
|
If Tisty is installed somewhere else, set TISTY_PATH to the full path of its `tisty` command.
|
package/server/launch.mjs
CHANGED
|
@@ -17,6 +17,7 @@ const ASKED = {
|
|
|
17
17
|
LOCALAPPDATA: process.env.LOCALAPPDATA,
|
|
18
18
|
WSL_DISTRO_NAME: process.env.WSL_DISTRO_NAME,
|
|
19
19
|
};
|
|
20
|
+
const ASKED_HOST = { COPILOT_PLUGIN_ROOT: process.env.COPILOT_PLUGIN_ROOT };
|
|
20
21
|
|
|
21
22
|
/** Where a Tisty install leaves its `tisty` command, most likely first; TISTY_PATH alone when it is set. */
|
|
22
23
|
export function places({
|
|
@@ -166,3 +167,33 @@ export function standIn(looked, input = process.stdin, output = process.stdout)
|
|
|
166
167
|
});
|
|
167
168
|
return lines;
|
|
168
169
|
}
|
|
170
|
+
|
|
171
|
+
// Copilot runs a Claude plugin's hooks as its own, and Tisty answers in the shape of whoever runs it.
|
|
172
|
+
export function host(asked, env = ASKED_HOST) {
|
|
173
|
+
return env.COPILOT_PLUGIN_ROOT ? "copilot" : asked;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export async function hooked(candidates, args, heard, start = spawn) {
|
|
177
|
+
for (const file of candidates) {
|
|
178
|
+
const said = await hookedOnce(file, args, heard, start);
|
|
179
|
+
if (said !== undefined) return said;
|
|
180
|
+
}
|
|
181
|
+
return "";
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function hookedOnce(file, args, heard, start) {
|
|
185
|
+
return new Promise((done) => {
|
|
186
|
+
let child;
|
|
187
|
+
try {
|
|
188
|
+
child = start(file, args, { stdio: ["pipe", "pipe", "ignore"], windowsHide: true });
|
|
189
|
+
} catch {
|
|
190
|
+
return done(undefined);
|
|
191
|
+
}
|
|
192
|
+
const out = [];
|
|
193
|
+
child.stdout.on("data", (chunk) => out.push(chunk));
|
|
194
|
+
child.on("error", () => done(undefined));
|
|
195
|
+
child.on("close", (code) => done(code === 0 ? Buffer.concat(out).toString("utf8") : undefined));
|
|
196
|
+
child.stdin.on("error", () => {});
|
|
197
|
+
child.stdin.end(heard);
|
|
198
|
+
});
|
|
199
|
+
}
|