skill-monster 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +155 -2
- package/desk-ui/app.css +73 -0
- package/desk-ui/app.js +182 -0
- package/desk-ui/fonts/bricolage-grotesque-800.woff2 +0 -0
- package/desk-ui/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/desk-ui/fonts/ibm-plex-mono-600.woff2 +0 -0
- package/desk-ui/fonts/ibm-plex-sans-400.woff2 +0 -0
- package/desk-ui/fonts/silkscreen-400.woff2 +0 -0
- package/desk-ui/fonts.css +70 -0
- package/desk-ui/index.html +29 -0
- package/desk-ui/mascot.svg +1 -0
- package/dist/build.json +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +640 -0
- package/dist/cli/ui.d.ts +18 -0
- package/dist/cli/ui.js +120 -0
- package/dist/core/checkup.d.ts +14 -0
- package/dist/core/checkup.js +69 -0
- package/dist/core/corrections.d.ts +54 -0
- package/dist/core/corrections.js +138 -0
- package/dist/core/digest.d.ts +36 -0
- package/dist/core/digest.js +91 -0
- package/dist/core/export.d.ts +8 -0
- package/dist/core/export.js +28 -0
- package/dist/core/external.d.ts +48 -0
- package/dist/core/external.js +127 -0
- package/dist/core/guard.d.ts +10 -0
- package/dist/core/guard.js +48 -0
- package/dist/core/mirror.d.ts +37 -0
- package/dist/core/mirror.js +148 -0
- package/dist/core/release.d.ts +69 -0
- package/dist/core/release.js +173 -0
- package/dist/core/report.d.ts +10 -0
- package/dist/core/report.js +65 -0
- package/dist/core/scrub.d.ts +20 -0
- package/dist/core/scrub.js +67 -0
- package/dist/core/sign.d.ts +25 -0
- package/dist/core/sign.js +86 -0
- package/dist/core/skill.d.ts +26 -0
- package/dist/core/skill.js +68 -0
- package/dist/core/starters.d.ts +54 -0
- package/dist/core/starters.js +184 -0
- package/dist/core/types.d.ts +187 -0
- package/dist/core/types.js +1 -0
- package/dist/core/version.d.ts +4 -0
- package/dist/core/version.js +17 -0
- package/dist/core/workspace.d.ts +23 -0
- package/dist/core/workspace.js +79 -0
- package/dist/desk/server.d.ts +10 -0
- package/dist/desk/server.js +140 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/mcp/server.d.ts +8 -0
- package/dist/mcp/server.js +112 -0
- package/dist/providers/index.d.ts +15 -0
- package/dist/providers/index.js +123 -0
- package/dist/slack/api.d.ts +6 -0
- package/dist/slack/api.js +18 -0
- package/dist/slack/app.d.ts +70 -0
- package/dist/slack/app.js +387 -0
- package/dist/slack/manifest.d.ts +50 -0
- package/dist/slack/manifest.js +71 -0
- package/dist/slack/messages.d.ts +414 -0
- package/dist/slack/messages.js +226 -0
- package/dist/slack/socket.d.ts +24 -0
- package/dist/slack/socket.js +84 -0
- package/dist/stores/airtable.d.ts +26 -0
- package/dist/stores/airtable.js +52 -0
- package/dist/stores/confluence-format.d.ts +34 -0
- package/dist/stores/confluence-format.js +458 -0
- package/dist/stores/confluence.d.ts +55 -0
- package/dist/stores/confluence.js +204 -0
- package/dist/stores/index.d.ts +30 -0
- package/dist/stores/index.js +53 -0
- package/dist/stores/notion.d.ts +43 -0
- package/dist/stores/notion.js +313 -0
- package/docs/SECURITY.md +45 -0
- package/docs/slack.md +78 -0
- package/package.json +48 -4
- package/starters/_core/SKILL.md +30 -0
- package/starters/customer-support-answers/starter.yaml +98 -0
- package/starters/data-warehouse-kb/starter.yaml +119 -0
- package/starters/engineering-house-rules/starter.yaml +106 -0
- package/starters/people-policies/starter.yaml +89 -0
- package/starters/pricing-and-packaging/starter.yaml +90 -0
- package/starters/product-analytics-kb/starter.yaml +109 -0
- package/starters/security-questionnaire-answers/starter.yaml +94 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import zlib from 'node:zlib';
|
|
2
|
+
import { grid } from '../cli/ui.js';
|
|
3
|
+
import { FLAG_SHORTCUT } from './app.js';
|
|
4
|
+
/**
|
|
5
|
+
* The Slack app manifest your org registers itself (api.slack.com/apps → Create from manifest).
|
|
6
|
+
* Socket Mode, three bot scopes, no public URL. It is your app, in your workspace, not ours.
|
|
7
|
+
*/
|
|
8
|
+
export function slackManifest(org = 'your company') {
|
|
9
|
+
return {
|
|
10
|
+
display_information: {
|
|
11
|
+
name: 'Skill Monster',
|
|
12
|
+
description: 'Wrong answers have a natural predator.',
|
|
13
|
+
background_color: '#16140f',
|
|
14
|
+
long_description: `Flag a wrong AI answer from any message, and get a receipt when the fix is live. Curators get the Monday digest and approve fixes right here. ` +
|
|
15
|
+
`This app is registered and run by ${org} on its own server, with its own tokens. It talks only to Slack and sends nothing to Skill Monster.`,
|
|
16
|
+
},
|
|
17
|
+
features: {
|
|
18
|
+
app_home: { home_tab_enabled: false, messages_tab_enabled: true, messages_tab_read_only_enabled: true },
|
|
19
|
+
bot_user: { display_name: 'Skill Monster', always_online: false },
|
|
20
|
+
shortcuts: [{ name: 'Flag a wrong answer', type: 'message', callback_id: FLAG_SHORTCUT, description: "Send a fix to the skill's curator. Names and secrets removed first." }],
|
|
21
|
+
slash_commands: [{ command: '/skill-monster', description: 'Flag a wrong answer, see the digest, or post a release note', usage_hint: 'flag | digest | note <skill> | help', should_escape: false }],
|
|
22
|
+
},
|
|
23
|
+
oauth_config: { scopes: { bot: ['chat:write', 'commands'] } },
|
|
24
|
+
settings: { interactivity: { is_enabled: true }, org_deploy_enabled: false, socket_mode_enabled: true, token_rotation_enabled: false },
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/** The pixel monster as a 512×512 PNG, for the app icon. Built here, so there's no image to download. */
|
|
28
|
+
export function monsterIcon(size = 512) {
|
|
29
|
+
const g = grid('hungry');
|
|
30
|
+
const scale = Math.floor((size * 0.8) / 12), pad = Math.floor((size - scale * 12) / 2);
|
|
31
|
+
const ink = [0x16, 0x14, 0x0f], monster = [0xc6, 0xf4, 0x32];
|
|
32
|
+
const raw = Buffer.alloc((size * 3 + 1) * size);
|
|
33
|
+
for (let y = 0; y < size; y++) {
|
|
34
|
+
raw[y * (size * 3 + 1)] = 0;
|
|
35
|
+
for (let x = 0; x < size; x++) {
|
|
36
|
+
const gx = Math.floor((x - pad) / scale), gy = Math.floor((y - pad) / scale);
|
|
37
|
+
const on = gx >= 0 && gy >= 0 && gx < 12 && gy < 12 && g[gy][gx] === 1;
|
|
38
|
+
const px = on ? monster : ink;
|
|
39
|
+
const o = y * (size * 3 + 1) + 1 + x * 3;
|
|
40
|
+
raw[o] = px[0];
|
|
41
|
+
raw[o + 1] = px[1];
|
|
42
|
+
raw[o + 2] = px[2];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const ihdr = Buffer.alloc(13);
|
|
46
|
+
ihdr.writeUInt32BE(size, 0);
|
|
47
|
+
ihdr.writeUInt32BE(size, 4);
|
|
48
|
+
ihdr[8] = 8;
|
|
49
|
+
ihdr[9] = 2;
|
|
50
|
+
ihdr[10] = 0;
|
|
51
|
+
ihdr[11] = 0;
|
|
52
|
+
ihdr[12] = 0;
|
|
53
|
+
return Buffer.concat([Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), chunk('IHDR', ihdr), chunk('IDAT', zlib.deflateSync(raw)), chunk('IEND', Buffer.alloc(0))]);
|
|
54
|
+
}
|
|
55
|
+
function chunk(type, data) {
|
|
56
|
+
const len = Buffer.alloc(4);
|
|
57
|
+
len.writeUInt32BE(data.length);
|
|
58
|
+
const td = Buffer.concat([Buffer.from(type, 'ascii'), data]);
|
|
59
|
+
const crc = Buffer.alloc(4);
|
|
60
|
+
crc.writeUInt32BE(crc32(td) >>> 0);
|
|
61
|
+
return Buffer.concat([len, td, crc]);
|
|
62
|
+
}
|
|
63
|
+
let table;
|
|
64
|
+
function crc32(b) {
|
|
65
|
+
table ??= Array.from({ length: 256 }, (_, n) => { let c = n; for (let k = 0; k < 8; k++)
|
|
66
|
+
c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1; return c >>> 0; });
|
|
67
|
+
let c = 0xffffffff;
|
|
68
|
+
for (const x of b)
|
|
69
|
+
c = table[(c ^ x) & 0xff] ^ (c >>> 8);
|
|
70
|
+
return (c ^ 0xffffffff) >>> 0;
|
|
71
|
+
}
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import type { Correction, ReleaseRecord, Receipt, SkillMeta, WorkspaceConfig } from '../core/types.js';
|
|
2
|
+
export declare const INVITE = "Want this for your own team's playbook? About 15 minutes, no sign-up, nothing leaves the company.";
|
|
3
|
+
export declare const DEFAULT_SETUP_URL = "https://skillmonster.ai/start";
|
|
4
|
+
/** Adds only a source tag naming the moment (from=receipt). No name, no id, nothing else. */
|
|
5
|
+
export declare function withSource(url: string, tag: string): string;
|
|
6
|
+
export declare const setupUrl: (cfg: WorkspaceConfig, tag: string) => string;
|
|
7
|
+
export declare function receiptMessage(cfg: WorkspaceConfig, r: Receipt): {
|
|
8
|
+
text: string;
|
|
9
|
+
blocks: unknown[];
|
|
10
|
+
};
|
|
11
|
+
export declare function declinedMessage(c: Correction): {
|
|
12
|
+
text: string;
|
|
13
|
+
blocks: ({
|
|
14
|
+
type: string;
|
|
15
|
+
text: {
|
|
16
|
+
type: string;
|
|
17
|
+
text: string;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: string;
|
|
21
|
+
elements: {
|
|
22
|
+
type: string;
|
|
23
|
+
text: string;
|
|
24
|
+
}[];
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
27
|
+
export declare const FLAG_CALLBACK = "sm_flag";
|
|
28
|
+
export declare const FLAG_CONFIRM_CALLBACK = "sm_flag_confirm";
|
|
29
|
+
export interface FlagPrefill {
|
|
30
|
+
answer?: string;
|
|
31
|
+
question?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function flagModal(skills: SkillMeta[], prefill?: FlagPrefill): {
|
|
34
|
+
type: string;
|
|
35
|
+
callback_id: string;
|
|
36
|
+
title: {
|
|
37
|
+
type: string;
|
|
38
|
+
text: string;
|
|
39
|
+
emoji: boolean;
|
|
40
|
+
};
|
|
41
|
+
submit: {
|
|
42
|
+
type: string;
|
|
43
|
+
text: string;
|
|
44
|
+
emoji: boolean;
|
|
45
|
+
};
|
|
46
|
+
close: {
|
|
47
|
+
type: string;
|
|
48
|
+
text: string;
|
|
49
|
+
emoji: boolean;
|
|
50
|
+
};
|
|
51
|
+
blocks: ({
|
|
52
|
+
type: string;
|
|
53
|
+
elements: {
|
|
54
|
+
type: string;
|
|
55
|
+
text: string;
|
|
56
|
+
}[];
|
|
57
|
+
} | {
|
|
58
|
+
type: string;
|
|
59
|
+
block_id: string;
|
|
60
|
+
optional: boolean;
|
|
61
|
+
label: {
|
|
62
|
+
type: string;
|
|
63
|
+
text: string;
|
|
64
|
+
emoji: boolean;
|
|
65
|
+
};
|
|
66
|
+
hint?: {
|
|
67
|
+
type: string;
|
|
68
|
+
text: string;
|
|
69
|
+
emoji: boolean;
|
|
70
|
+
} | undefined;
|
|
71
|
+
element: {
|
|
72
|
+
type: string;
|
|
73
|
+
action_id: string;
|
|
74
|
+
multiline: boolean;
|
|
75
|
+
max_length: number;
|
|
76
|
+
initial_value?: string | undefined;
|
|
77
|
+
placeholder?: {
|
|
78
|
+
type: string;
|
|
79
|
+
text: string;
|
|
80
|
+
emoji: boolean;
|
|
81
|
+
} | undefined;
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
84
|
+
type: string;
|
|
85
|
+
block_id: string;
|
|
86
|
+
label: {
|
|
87
|
+
type: string;
|
|
88
|
+
text: string;
|
|
89
|
+
emoji: boolean;
|
|
90
|
+
};
|
|
91
|
+
element: {
|
|
92
|
+
type: string;
|
|
93
|
+
action_id: string;
|
|
94
|
+
options: {
|
|
95
|
+
text: {
|
|
96
|
+
type: string;
|
|
97
|
+
text: string;
|
|
98
|
+
emoji: boolean;
|
|
99
|
+
};
|
|
100
|
+
value: string;
|
|
101
|
+
}[];
|
|
102
|
+
initial_option?: {
|
|
103
|
+
text: {
|
|
104
|
+
type: string;
|
|
105
|
+
text: string;
|
|
106
|
+
emoji: boolean;
|
|
107
|
+
};
|
|
108
|
+
value: string;
|
|
109
|
+
} | undefined;
|
|
110
|
+
placeholder: {
|
|
111
|
+
type: string;
|
|
112
|
+
text: string;
|
|
113
|
+
emoji: boolean;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
})[];
|
|
117
|
+
};
|
|
118
|
+
export interface FlagPreview {
|
|
119
|
+
skill: string;
|
|
120
|
+
version: string;
|
|
121
|
+
question: string;
|
|
122
|
+
answer_excerpt: string;
|
|
123
|
+
what_was_wrong: string;
|
|
124
|
+
suggested_rule: string;
|
|
125
|
+
reporter_role: string;
|
|
126
|
+
removed: string[];
|
|
127
|
+
}
|
|
128
|
+
/** The serious one. Shown when the text held something that looks like a credential. */
|
|
129
|
+
export declare function securityWarning(removed: string[]): {
|
|
130
|
+
type: string;
|
|
131
|
+
text: {
|
|
132
|
+
type: string;
|
|
133
|
+
text: string;
|
|
134
|
+
};
|
|
135
|
+
} | undefined;
|
|
136
|
+
export declare function flagPreviewModal(p: FlagPreview, owner: string, pendingId: string): {
|
|
137
|
+
type: string;
|
|
138
|
+
callback_id: string;
|
|
139
|
+
private_metadata: string;
|
|
140
|
+
title: {
|
|
141
|
+
type: string;
|
|
142
|
+
text: string;
|
|
143
|
+
emoji: boolean;
|
|
144
|
+
};
|
|
145
|
+
submit: {
|
|
146
|
+
type: string;
|
|
147
|
+
text: string;
|
|
148
|
+
emoji: boolean;
|
|
149
|
+
};
|
|
150
|
+
close: {
|
|
151
|
+
type: string;
|
|
152
|
+
text: string;
|
|
153
|
+
emoji: boolean;
|
|
154
|
+
};
|
|
155
|
+
blocks: ({
|
|
156
|
+
type: string;
|
|
157
|
+
text: {
|
|
158
|
+
type: string;
|
|
159
|
+
text: string;
|
|
160
|
+
};
|
|
161
|
+
} | {
|
|
162
|
+
type: string;
|
|
163
|
+
elements: {
|
|
164
|
+
type: string;
|
|
165
|
+
text: string;
|
|
166
|
+
}[];
|
|
167
|
+
} | {
|
|
168
|
+
type: string;
|
|
169
|
+
} | undefined)[];
|
|
170
|
+
};
|
|
171
|
+
export declare function flagFiledModal(c: Correction, owner: string): {
|
|
172
|
+
type: string;
|
|
173
|
+
title: {
|
|
174
|
+
type: string;
|
|
175
|
+
text: string;
|
|
176
|
+
emoji: boolean;
|
|
177
|
+
};
|
|
178
|
+
close: {
|
|
179
|
+
type: string;
|
|
180
|
+
text: string;
|
|
181
|
+
emoji: boolean;
|
|
182
|
+
};
|
|
183
|
+
blocks: ({
|
|
184
|
+
type: string;
|
|
185
|
+
text: {
|
|
186
|
+
type: string;
|
|
187
|
+
text: string;
|
|
188
|
+
};
|
|
189
|
+
} | {
|
|
190
|
+
type: string;
|
|
191
|
+
elements: {
|
|
192
|
+
type: string;
|
|
193
|
+
text: string;
|
|
194
|
+
}[];
|
|
195
|
+
})[];
|
|
196
|
+
};
|
|
197
|
+
export declare function flagFiledMessage(c: Correction, owner: string): {
|
|
198
|
+
text: string;
|
|
199
|
+
blocks: ({
|
|
200
|
+
type: string;
|
|
201
|
+
text: {
|
|
202
|
+
type: string;
|
|
203
|
+
text: string;
|
|
204
|
+
};
|
|
205
|
+
} | {
|
|
206
|
+
type: string;
|
|
207
|
+
elements: {
|
|
208
|
+
type: string;
|
|
209
|
+
text: string;
|
|
210
|
+
}[];
|
|
211
|
+
})[];
|
|
212
|
+
};
|
|
213
|
+
export declare const APPROVE_CALLBACK = "sm_approve_submit";
|
|
214
|
+
export declare const DECLINE_CALLBACK = "sm_decline_submit";
|
|
215
|
+
export declare function approveModal(cors: Correction[], meta: SkillMeta, nextVersion: string): {
|
|
216
|
+
type: string;
|
|
217
|
+
callback_id: string;
|
|
218
|
+
private_metadata: string;
|
|
219
|
+
title: {
|
|
220
|
+
type: string;
|
|
221
|
+
text: string;
|
|
222
|
+
emoji: boolean;
|
|
223
|
+
};
|
|
224
|
+
submit: {
|
|
225
|
+
type: string;
|
|
226
|
+
text: string;
|
|
227
|
+
emoji: boolean;
|
|
228
|
+
};
|
|
229
|
+
close: {
|
|
230
|
+
type: string;
|
|
231
|
+
text: string;
|
|
232
|
+
emoji: boolean;
|
|
233
|
+
};
|
|
234
|
+
blocks: ({
|
|
235
|
+
type: string;
|
|
236
|
+
text: {
|
|
237
|
+
type: string;
|
|
238
|
+
text: string;
|
|
239
|
+
};
|
|
240
|
+
} | {
|
|
241
|
+
type: string;
|
|
242
|
+
elements: {
|
|
243
|
+
type: string;
|
|
244
|
+
text: string;
|
|
245
|
+
}[];
|
|
246
|
+
} | {
|
|
247
|
+
type: string;
|
|
248
|
+
block_id: string;
|
|
249
|
+
optional: boolean;
|
|
250
|
+
label: {
|
|
251
|
+
type: string;
|
|
252
|
+
text: string;
|
|
253
|
+
emoji: boolean;
|
|
254
|
+
};
|
|
255
|
+
hint?: {
|
|
256
|
+
type: string;
|
|
257
|
+
text: string;
|
|
258
|
+
emoji: boolean;
|
|
259
|
+
} | undefined;
|
|
260
|
+
element: {
|
|
261
|
+
type: string;
|
|
262
|
+
action_id: string;
|
|
263
|
+
multiline: boolean;
|
|
264
|
+
max_length: number;
|
|
265
|
+
initial_value?: string | undefined;
|
|
266
|
+
};
|
|
267
|
+
} | {
|
|
268
|
+
type: string;
|
|
269
|
+
block_id: string;
|
|
270
|
+
label: {
|
|
271
|
+
type: string;
|
|
272
|
+
text: string;
|
|
273
|
+
emoji: boolean;
|
|
274
|
+
};
|
|
275
|
+
element: {
|
|
276
|
+
type: string;
|
|
277
|
+
action_id: string;
|
|
278
|
+
options: {
|
|
279
|
+
text: {
|
|
280
|
+
type: string;
|
|
281
|
+
text: string;
|
|
282
|
+
emoji: boolean;
|
|
283
|
+
};
|
|
284
|
+
value: string;
|
|
285
|
+
}[];
|
|
286
|
+
placeholder: {
|
|
287
|
+
type: string;
|
|
288
|
+
text: string;
|
|
289
|
+
emoji: boolean;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
})[];
|
|
293
|
+
};
|
|
294
|
+
export declare function declineModal(cors: Correction[]): {
|
|
295
|
+
type: string;
|
|
296
|
+
callback_id: string;
|
|
297
|
+
private_metadata: string;
|
|
298
|
+
title: {
|
|
299
|
+
type: string;
|
|
300
|
+
text: string;
|
|
301
|
+
emoji: boolean;
|
|
302
|
+
};
|
|
303
|
+
submit: {
|
|
304
|
+
type: string;
|
|
305
|
+
text: string;
|
|
306
|
+
emoji: boolean;
|
|
307
|
+
};
|
|
308
|
+
close: {
|
|
309
|
+
type: string;
|
|
310
|
+
text: string;
|
|
311
|
+
emoji: boolean;
|
|
312
|
+
};
|
|
313
|
+
blocks: ({
|
|
314
|
+
type: string;
|
|
315
|
+
text: {
|
|
316
|
+
type: string;
|
|
317
|
+
text: string;
|
|
318
|
+
};
|
|
319
|
+
} | {
|
|
320
|
+
type: string;
|
|
321
|
+
block_id: string;
|
|
322
|
+
label: {
|
|
323
|
+
type: string;
|
|
324
|
+
text: string;
|
|
325
|
+
emoji: boolean;
|
|
326
|
+
};
|
|
327
|
+
element: {
|
|
328
|
+
type: string;
|
|
329
|
+
action_id: string;
|
|
330
|
+
multiline: boolean;
|
|
331
|
+
max_length: number;
|
|
332
|
+
};
|
|
333
|
+
})[];
|
|
334
|
+
};
|
|
335
|
+
export declare function workingModal(title: string, line: string): {
|
|
336
|
+
type: string;
|
|
337
|
+
title: {
|
|
338
|
+
type: string;
|
|
339
|
+
text: string;
|
|
340
|
+
emoji: boolean;
|
|
341
|
+
};
|
|
342
|
+
close: {
|
|
343
|
+
type: string;
|
|
344
|
+
text: string;
|
|
345
|
+
emoji: boolean;
|
|
346
|
+
};
|
|
347
|
+
blocks: ({
|
|
348
|
+
type: string;
|
|
349
|
+
text: {
|
|
350
|
+
type: string;
|
|
351
|
+
text: string;
|
|
352
|
+
};
|
|
353
|
+
} | {
|
|
354
|
+
type: string;
|
|
355
|
+
elements: {
|
|
356
|
+
type: string;
|
|
357
|
+
text: string;
|
|
358
|
+
}[];
|
|
359
|
+
})[];
|
|
360
|
+
};
|
|
361
|
+
export declare function approveResultMessage(cfg: WorkspaceConfig, rec: ReleaseRecord, receiptsSent: number, previous?: string): {
|
|
362
|
+
text: string;
|
|
363
|
+
blocks: unknown[];
|
|
364
|
+
};
|
|
365
|
+
export declare function blockedMessage(findings: {
|
|
366
|
+
level: string;
|
|
367
|
+
message: string;
|
|
368
|
+
}[]): {
|
|
369
|
+
text: string;
|
|
370
|
+
blocks: ({
|
|
371
|
+
type: string;
|
|
372
|
+
text: {
|
|
373
|
+
type: string;
|
|
374
|
+
text: string;
|
|
375
|
+
};
|
|
376
|
+
} | {
|
|
377
|
+
type: string;
|
|
378
|
+
elements: {
|
|
379
|
+
type: string;
|
|
380
|
+
text: string;
|
|
381
|
+
}[];
|
|
382
|
+
})[];
|
|
383
|
+
};
|
|
384
|
+
export declare function errorMessage(what: string, err: string): {
|
|
385
|
+
text: string;
|
|
386
|
+
blocks: ({
|
|
387
|
+
type: string;
|
|
388
|
+
text: {
|
|
389
|
+
type: string;
|
|
390
|
+
text: string;
|
|
391
|
+
};
|
|
392
|
+
} | {
|
|
393
|
+
type: string;
|
|
394
|
+
elements: {
|
|
395
|
+
type: string;
|
|
396
|
+
text: string;
|
|
397
|
+
}[];
|
|
398
|
+
})[];
|
|
399
|
+
};
|
|
400
|
+
export declare function notCuratorText(cfg: WorkspaceConfig): string;
|
|
401
|
+
export declare function releaseNote(cfg: WorkspaceConfig, meta: SkillMeta, rec: ReleaseRecord, storeDescription: string): {
|
|
402
|
+
text: string;
|
|
403
|
+
blocks: ({
|
|
404
|
+
type: string;
|
|
405
|
+
text: {
|
|
406
|
+
type: string;
|
|
407
|
+
text: string;
|
|
408
|
+
};
|
|
409
|
+
} | {
|
|
410
|
+
type: string;
|
|
411
|
+
elements: unknown[];
|
|
412
|
+
})[];
|
|
413
|
+
};
|
|
414
|
+
export declare const HELP_TEXT: string;
|