@insitue/claude-plugin 0.7.1 → 0.7.2
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +5 -0
- package/README.md +5 -0
- package/dist/mcp-server.js +0 -65
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @insitue/claude-plugin
|
|
2
2
|
|
|
3
|
+
## 0.7.2
|
|
4
|
+
|
|
5
|
+
- **Consistent slash commands.** Removed the duplicate MCP prompts for connect/login/logout, which Claude Code surfaced as differently-named `…insitue:<name> (MCP)` entries alongside the clean `/insitue:*` slash commands. Now there is one consistent surface: `/insitue:connect`, `/insitue:disconnect`, `/insitue:login`, `/insitue:logout` (from `commands/*.md`). On Claude Desktop, use the equivalent tools (`start_session`, `authenticate`+`complete_authentication`, `logout`).
|
|
6
|
+
- **Docs:** the channels (preview) section now documents the `allowedChannelPlugins` org-policy escape hatch to drop the `--dangerously-load-development-channels` flag.
|
|
7
|
+
|
|
3
8
|
## 0.7.1
|
|
4
9
|
|
|
5
10
|
- **`/insitue:logout`.** New slash command (+ `logout` MCP tool + `npx @insitue/claude-plugin logout` CLI) that signs you out properly: it revokes this machine's token server-side, then clears the local credentials (`~/.insitue/auth.json`). Revoke is best-effort — your local creds are always cleared even if the network call fails. Pairs with the existing `/insitue:login`.
|
package/README.md
CHANGED
|
@@ -201,6 +201,11 @@ channel listener falls back to the normal poll automatically.
|
|
|
201
201
|
- This is a **Claude Code research-preview** feature. The flag
|
|
202
202
|
`--dangerously-load-development-channels` is required during the
|
|
203
203
|
preview period and may change or be renamed in a future release.
|
|
204
|
+
- **Dropping the flag:** on Team/Enterprise, an admin can add `insitue`
|
|
205
|
+
to the `allowedChannelPlugins` org policy — then the channel runs with
|
|
206
|
+
just `claude --channels plugin:insitue` (no dangerous flag). Once
|
|
207
|
+
channels leave research preview / the plugin is on Anthropic's default
|
|
208
|
+
allowlist, the flag won't be needed at all.
|
|
204
209
|
- It works only with the CLI (`claude`), not Claude Desktop.
|
|
205
210
|
- The standard `/insitue:connect` workflow (plain `claude`, no
|
|
206
211
|
extra flags) continues to work exactly as before via polling —
|
package/dist/mcp-server.js
CHANGED
|
@@ -1154,71 +1154,6 @@ server.registerTool(
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
);
|
|
1157
|
-
server.registerPrompt(
|
|
1158
|
-
"connect",
|
|
1159
|
-
{
|
|
1160
|
-
title: "Connect to InSitue",
|
|
1161
|
-
description: "Loads the operating instructions and begins the pick \u2192 edit loop."
|
|
1162
|
-
},
|
|
1163
|
-
() => ({
|
|
1164
|
-
messages: [
|
|
1165
|
-
{
|
|
1166
|
-
role: "user",
|
|
1167
|
-
content: { type: "text", text: loadInstructions() }
|
|
1168
|
-
}
|
|
1169
|
-
]
|
|
1170
|
-
})
|
|
1171
|
-
);
|
|
1172
|
-
server.registerPrompt(
|
|
1173
|
-
"login",
|
|
1174
|
-
{
|
|
1175
|
-
title: "Sign in to InSitue",
|
|
1176
|
-
description: "Browser-based sign-in to InSitue Cloud via PKCE. Opens your browser, confirms a pairing code, then saves credentials and auto-links the repo."
|
|
1177
|
-
},
|
|
1178
|
-
() => ({
|
|
1179
|
-
messages: [
|
|
1180
|
-
{
|
|
1181
|
-
role: "user",
|
|
1182
|
-
content: {
|
|
1183
|
-
type: "text",
|
|
1184
|
-
text: readPkgFile("commands/login.md") ?? loginInstructions()
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
]
|
|
1188
|
-
})
|
|
1189
|
-
);
|
|
1190
|
-
function loginInstructions() {
|
|
1191
|
-
return `# Sign in to InSitue
|
|
1192
|
-
|
|
1193
|
-
Call \`mcp__insitue__authenticate\` to start the browser sign-in flow.
|
|
1194
|
-
Show the user the returned URL and userCode, then call
|
|
1195
|
-
\`mcp__insitue__complete_authentication\` once they approve in the browser.
|
|
1196
|
-
Confirm the result with "Signed in as <login>" and linked project if any.`;
|
|
1197
|
-
}
|
|
1198
|
-
server.registerPrompt(
|
|
1199
|
-
"logout",
|
|
1200
|
-
{
|
|
1201
|
-
title: "Sign out of InSitue",
|
|
1202
|
-
description: "Sign out of InSitue Cloud \u2014 revokes this machine's token and clears local credentials."
|
|
1203
|
-
},
|
|
1204
|
-
() => ({
|
|
1205
|
-
messages: [
|
|
1206
|
-
{
|
|
1207
|
-
role: "user",
|
|
1208
|
-
content: {
|
|
1209
|
-
type: "text",
|
|
1210
|
-
text: readPkgFile("commands/logout.md") ?? logoutInstructions()
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
]
|
|
1214
|
-
})
|
|
1215
|
-
);
|
|
1216
|
-
function logoutInstructions() {
|
|
1217
|
-
return `# Sign out of InSitue
|
|
1218
|
-
|
|
1219
|
-
Call \`mcp__insitue__logout\` (no arguments).
|
|
1220
|
-
Confirm the result in one line, e.g. "Signed out of InSitue." or relay any error message.`;
|
|
1221
|
-
}
|
|
1222
1157
|
function readPkgFile(rel) {
|
|
1223
1158
|
const here = dirname3(fileURLToPath2(import.meta.url));
|
|
1224
1159
|
for (const base of [join3(here, ".."), here]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insitue/claude-plugin",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Drive Claude (Code AND Desktop) from the InSitue browser overlay — pick an element in your app, claude reads the file and proposes the edit.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"insitue",
|