@app-vitals/agent-runtime 1.72.0 → 1.74.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-vitals/agent-runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.74.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/app-vitals/agent.git",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"./workspace-paths": "./workspace-paths.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@app-vitals/agent-admin": "1.
|
|
45
|
-
"@app-vitals/agent-lib": "1.
|
|
44
|
+
"@app-vitals/agent-admin": "1.74.0",
|
|
45
|
+
"@app-vitals/agent-lib": "1.74.0",
|
|
46
46
|
"@octokit/auth-app": "^8.2.0",
|
|
47
47
|
"@sentry/bun": "^10.63.0",
|
|
48
48
|
"@slack/bolt": "^5.0.0",
|
|
@@ -35,6 +35,34 @@ stripped from the visible message before posting.
|
|
|
35
35
|
| `[react:emoji1,emoji2,...]` | Add emoji reactions to your own posted reply. Use plain names (e.g. `eyes`, `white_check_mark`), no colons. Comma-separated for multiple. |
|
|
36
36
|
| `[speak:text]` | Synthesize speech and upload as audio. |
|
|
37
37
|
|
|
38
|
+
### Slack Style
|
|
39
|
+
|
|
40
|
+
Slack replies are read on a phone. Keep chat short and put the ask where the
|
|
41
|
+
reader's thumb already is.
|
|
42
|
+
|
|
43
|
+
For any message that needs a reply:
|
|
44
|
+
|
|
45
|
+
- **Headline first.** The first line is the headline. Important items go in the
|
|
46
|
+
headline and are never trimmed.
|
|
47
|
+
- **At most 3 bullets** of supporting detail.
|
|
48
|
+
- **Ask last.** The ask goes LAST, on its own line right above the reply box, so
|
|
49
|
+
mobile readers don't scroll up and back down. Use numbered options when there
|
|
50
|
+
are choices.
|
|
51
|
+
- **One screen.** The whole message fits one phone screen (~8-10 lines);
|
|
52
|
+
otherwise trim or link out.
|
|
53
|
+
- **One decision per message.**
|
|
54
|
+
- **Offer drill-down** ("want the full diff?") instead of dumping detail.
|
|
55
|
+
|
|
56
|
+
| Message type | Shape |
|
|
57
|
+
|---|---|
|
|
58
|
+
| Chat / ask | The rules above: headline, at most 3 bullets, ask last |
|
|
59
|
+
| Decision needing a human | Headline + 2-3 facts to decide + link + ask last |
|
|
60
|
+
| PR bodies, review posts, comment replies | Not chat. Bottom line first, then the specific details a reviewer needs as bullets, no narrative |
|
|
61
|
+
| Cron / status | Status line, counts, link; 3-5 lines |
|
|
62
|
+
|
|
63
|
+
Artifacts (PR bodies, reviews, plan/spec files) stay full-length. The
|
|
64
|
+
one-screen cap applies to Slack chat, not to artifacts.
|
|
65
|
+
|
|
38
66
|
### Run Context
|
|
39
67
|
|
|
40
68
|
Every invocation receives two injected Slack env vars (set by the agent runtime):
|
|
@@ -73,3 +73,41 @@ describe("RUNTIME.md.template — GitHub owner hint", () => {
|
|
|
73
73
|
expect(section).toContain("git");
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
|
+
|
|
77
|
+
describe("RUNTIME.md.template — Slack Style section", () => {
|
|
78
|
+
function slackStyle(): string {
|
|
79
|
+
const template = readTemplate();
|
|
80
|
+
const start = template.indexOf("### Slack Style");
|
|
81
|
+
expect(start).toBeGreaterThan(-1);
|
|
82
|
+
return template.slice(start, template.indexOf("\n### ", start + 1));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
it("states the ask-last rule", () => {
|
|
86
|
+
const section = slackStyle();
|
|
87
|
+
expect(section).toContain("Ask last");
|
|
88
|
+
expect(section).toContain("LAST");
|
|
89
|
+
expect(section.toLowerCase()).toContain("reply box");
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
it("states the one-screen cap, headline-first, bullet cap and one decision", () => {
|
|
93
|
+
const section = slackStyle().toLowerCase();
|
|
94
|
+
expect(section).toContain("one phone screen");
|
|
95
|
+
expect(section).toContain("headline");
|
|
96
|
+
expect(section).toContain("at most 3 bullets");
|
|
97
|
+
expect(section).toContain("one decision per message");
|
|
98
|
+
expect(section).toContain("drill-down");
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it("includes the message-types table", () => {
|
|
102
|
+
const section = slackStyle();
|
|
103
|
+
expect(section).toContain("| Message type |");
|
|
104
|
+
expect(section).toContain("Chat / ask");
|
|
105
|
+
expect(section).toContain("Decision needing a human");
|
|
106
|
+
expect(section).toContain("PR bodies, review posts, comment replies");
|
|
107
|
+
expect(section).toContain("Cron / status");
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
it("exempts artifacts from the length cap", () => {
|
|
111
|
+
expect(slackStyle()).toContain("stay full-length");
|
|
112
|
+
});
|
|
113
|
+
});
|