@staff0rd/assist 0.282.1 → 0.284.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 +2 -0
- package/allowed.cli-reads +1 -0
- package/claude/commands/prs-slack.md +11 -0
- package/dist/allowed.cli-reads +1 -0
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,7 @@ After installation, the `assist` command will be available globally. You can als
|
|
|
47
47
|
- `/forward-comments` - Split a coarse PR comment (e.g. from Slack) into per-line review comments on the current branch's PR, attributed to the original reviewer
|
|
48
48
|
- `/handover` - Write a session handover note (`.assist/HANDOVER.md`) for the next conversation; archives any prior handover first. The SessionStart hook surfaces the handover at the start of the next session
|
|
49
49
|
- `/pr` - Raise a PR with a concise description
|
|
50
|
+
- `/prs-slack <number>` - Post a PR's title and URL to the Slack channel configured in `prs.slack`
|
|
50
51
|
- `/refactor` - Run refactoring checks for code quality
|
|
51
52
|
- `/prompts` - Analyze denied tool calls and suggest settings changes to auto-allow recurring prompts
|
|
52
53
|
- `/recall` - Recall context from the most recent prior session in this repo by summarising its transcript (skips sdk-cli-only sessions); read-only, emits a `# Recall` block in chat
|
|
@@ -149,6 +150,7 @@ The first backlog command in a repository that still has a local `.assist/backlo
|
|
|
149
150
|
- `assist config set <key> <value>` - Set a config value (e.g. commit.push true)
|
|
150
151
|
- `assist config get <key>` - Get a config value
|
|
151
152
|
- `assist config list` - List all config values
|
|
153
|
+
- `prs.slack` - The Slack channel (e.g. `#example`) that `/prs-slack` posts pull requests to via the Slack MCP connector
|
|
152
154
|
- `assist verify` - Run all verify:* commands in parallel (from run configs in assist.yml and scripts in package.json)
|
|
153
155
|
- `assist verify all` - Run all checks, ignoring diff-based filters
|
|
154
156
|
- `assist verify init` - Add verify scripts to a project (writes to `assist.yml` by default; pass `--package-json` to write to `package.json` scripts instead)
|
package/allowed.cli-reads
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Post a PR's title and URL to the configured Slack channel
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Post pull request `$ARGUMENTS` to the configured Slack channel.
|
|
6
|
+
|
|
7
|
+
1. Resolve the channel with `assist config get prs.slack`. If it is unset or empty, stop and tell the user to configure `prs.slack` in `assist.yml` (e.g. `assist config set prs.slack '#example'`). Do not post anything.
|
|
8
|
+
2. Fetch the PR with `gh pr view $ARGUMENTS --json title,url`.
|
|
9
|
+
3. Build the message `PR: [<title>](<url>)` using the fetched title and url.
|
|
10
|
+
4. Show the user the resolved channel and the exact message, and confirm via `AskUserQuestion` before posting.
|
|
11
|
+
5. On confirmation, resolve the channel name to its ID with `mcp__claude_ai_Slack__slack_search_channels`, then post the message to that channel with `mcp__claude_ai_Slack__slack_send_message`.
|
package/dist/allowed.cli-reads
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.284.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -227,6 +227,9 @@ var assistConfigSchema = z2.strictObject({
|
|
|
227
227
|
refreshToken: z2.string().optional(),
|
|
228
228
|
tokenExpiresAt: z2.number().optional()
|
|
229
229
|
}).optional(),
|
|
230
|
+
prs: z2.strictObject({
|
|
231
|
+
slack: z2.string()
|
|
232
|
+
}).optional(),
|
|
230
233
|
run: z2.array(z2.union([runConfigSchema, runLinkSchema])).optional(),
|
|
231
234
|
transcript: transcriptConfigSchema.optional(),
|
|
232
235
|
cliReadVerbs: z2.record(z2.string(), z2.array(z2.string())).optional(),
|
|
@@ -7279,6 +7282,10 @@ var BUILTIN_DENIES = [
|
|
|
7279
7282
|
pattern: "gh pr create",
|
|
7280
7283
|
message: "Do not run 'gh pr create' directly. Use 'assist prs raise --title <title> --what <what> --why <why>' instead \u2014 it assembles and validates the body before delegating to gh. Before running it, get explicit approval via the AskUserQuestion tool, regardless of permission mode, with the full proposed title and body in the approve option's preview field so the user actually sees them."
|
|
7281
7284
|
},
|
|
7285
|
+
{
|
|
7286
|
+
pattern: "gh pr edit",
|
|
7287
|
+
message: "Do not run 'gh pr edit' directly. Use 'assist prs edit [--title <title>] [--what <what>] [--why <why>] [--how <how>]' instead \u2014 it assembles and validates the body before delegating to gh. Before running it, get explicit approval via the AskUserQuestion tool, regardless of permission mode, with the full proposed title and body in the approve option's preview field so the user actually sees them."
|
|
7288
|
+
},
|
|
7282
7289
|
{
|
|
7283
7290
|
pattern: "git commit",
|
|
7284
7291
|
message: `Do not run 'git commit' directly. Use 'assist commit "<message>"' instead.`
|