post-engineer-mcp 1.54.225 → 1.54.227
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 +7 -1
- package/dist/analytics.d.ts +1 -0
- package/dist/analytics.js +5 -2
- package/dist/analytics.js.map +1 -1
- package/dist/client-prompts.d.ts +6 -1
- package/dist/client-prompts.js +8 -2
- package/dist/client-prompts.js.map +1 -1
- package/dist/contracts/prompts.d.ts +17 -1
- package/dist/contracts/prompts.js +8 -0
- package/dist/contracts/prompts.js.map +1 -1
- package/dist/tools-prompts.d.ts +9 -2
- package/dist/tools-prompts.js +27 -9
- package/dist/tools-prompts.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,6 +81,12 @@ from `apps/mcp/`.
|
|
|
81
81
|
|
|
82
82
|
Each request to the post-engineer API includes the calling tool's name and
|
|
83
83
|
the server version, recorded against your account for product analytics.
|
|
84
|
+
A tool call can make several requests (a `video_tasks (action: status)` wait
|
|
85
|
+
checks status every 10 seconds), so each request also carries the call id
|
|
86
|
+
(`X-MCP-Call-Id`) and its ordinal in the call (`X-MCP-Call-Request`, from 1).
|
|
87
|
+
The web API records one `mcp_tool_called` per call, from the first request,
|
|
88
|
+
and records a later request only when it fails, as `mcp_tool_request_failed`
|
|
89
|
+
with its `call_request` ordinal.
|
|
84
90
|
No script content, media or credentials are sent. The server itself never
|
|
85
91
|
contacts any analytics service.
|
|
86
92
|
|
|
@@ -193,7 +199,7 @@ The server offers **18 intent tools**, not one tool per API endpoint. A tool is
|
|
|
193
199
|
| `voices` | `list`, `preview`, `list_clones`, `create_clone`, `get_clone`, `preview_clone`, `delete_clone` | House voices and voice clones. |
|
|
194
200
|
| `accounts` | `list`, `connect`, `disconnect`, `get_persona_publishing`, `set_persona_publishing`, `list_boards` | Social accounts and the accounts each persona publishes to. |
|
|
195
201
|
| `tool_config` | `get`, `save` | The saved research/stock tool configuration: which search tool (Tavily/Exa/own) and stock sources (Pexels/Pixabay/Coverr) the account has keys for. `save` replaces the whole set; keys are stored encrypted and are never returned in full — `get` shows presence and last 4 characters only. |
|
|
196
|
-
| `prompt_library` | `create`, `update`, `delete` | The account's own prompts, private by default; only the owner can change one. `visibility` `public` makes a prompt readable by anyone (no review while the product is in beta), `private` keeps it to the account. Read and follow prompts with `prompts`: `list` and `get` return the official prompts, the account's own (private ones included) and other users' public ones, which come back with an unverified-content notice. |
|
|
202
|
+
| `prompt_library` | `create`, `update`, `delete` | The account's own prompts, private by default; only the owner can change one. `visibility` `public` makes a prompt readable by anyone (no review while the product is in beta), `private` keeps it to the account. Read and follow prompts with `prompts`: `list` (optional `query` words and `source` official, own or community) and `get` return the official prompts, the account's own (private ones included) and other users' public ones, which come back with an unverified-content notice. |
|
|
197
203
|
| `schedules` | `list`, `cancel`, `get_slot`, `update_slot_title`, `delete_slot` | Future slots. |
|
|
198
204
|
| `posts` | `list`, `get` | Published and scheduled posts. |
|
|
199
205
|
| `insights` | `post_metrics`, `retention_curve` | How posts performed. |
|
package/dist/analytics.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export declare const MCP_TOOL_HEADER = "X-MCP-Tool";
|
|
|
2
2
|
export declare const MCP_CALL_ID_HEADER = "X-MCP-Call-Id";
|
|
3
3
|
export declare const MCP_ACTION_HEADER = "X-MCP-Action";
|
|
4
4
|
export declare const MCP_VERSION_HEADER = "X-MCP-Version";
|
|
5
|
+
export declare const MCP_CALL_REQUEST_HEADER = "X-MCP-Call-Request";
|
|
5
6
|
export declare function withTelemetryHeaders<TResult>(headers: () => Record<string, string>, run: () => Promise<TResult>): Promise<TResult>;
|
|
6
7
|
export declare function mcpTelemetryHeaders(options?: {
|
|
7
8
|
includeVersion?: boolean;
|
package/dist/analytics.js
CHANGED
|
@@ -5,6 +5,7 @@ export const MCP_TOOL_HEADER = 'X-MCP-Tool';
|
|
|
5
5
|
export const MCP_CALL_ID_HEADER = 'X-MCP-Call-Id';
|
|
6
6
|
export const MCP_ACTION_HEADER = 'X-MCP-Action';
|
|
7
7
|
export const MCP_VERSION_HEADER = 'X-MCP-Version';
|
|
8
|
+
export const MCP_CALL_REQUEST_HEADER = 'X-MCP-Call-Request';
|
|
8
9
|
const toolCallContext = new AsyncLocalStorage();
|
|
9
10
|
const extraHeadersContext = new AsyncLocalStorage();
|
|
10
11
|
export function withTelemetryHeaders(headers, run) {
|
|
@@ -19,15 +20,17 @@ export function mcpTelemetryHeaders(options) {
|
|
|
19
20
|
if (context !== undefined) {
|
|
20
21
|
headers[MCP_TOOL_HEADER] = context.toolName;
|
|
21
22
|
headers[MCP_CALL_ID_HEADER] = context.callId;
|
|
23
|
+
context.requests += 1;
|
|
24
|
+
headers[MCP_CALL_REQUEST_HEADER] = String(context.requests);
|
|
22
25
|
if (context.action !== undefined)
|
|
23
26
|
headers[MCP_ACTION_HEADER] = context.action;
|
|
24
27
|
}
|
|
25
28
|
return headers;
|
|
26
29
|
}
|
|
27
30
|
export function withToolCall(toolName, action, run) {
|
|
28
|
-
return toolCallContext.run({ toolName, action, callId: randomUUID() }, run);
|
|
31
|
+
return toolCallContext.run({ toolName, action, callId: randomUUID(), requests: 0 }, run);
|
|
29
32
|
}
|
|
30
33
|
export function withTracking(toolName, handler) {
|
|
31
|
-
return async (args) => toolCallContext.run({ toolName, callId: randomUUID() }, () => handler(args));
|
|
34
|
+
return async (args) => toolCallContext.run({ toolName, callId: randomUUID(), requests: 0 }, () => handler(args));
|
|
32
35
|
}
|
|
33
36
|
//# sourceMappingURL=analytics.js.map
|
package/dist/analytics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,MAAM,MAAM,CAAC,iBAAi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
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PostEngineerClient } from './client.js';
|
|
2
2
|
import { getPrompt as getPromptContract, listPrompts as listPromptsContract } from './contracts/prompts.js';
|
|
3
3
|
import type { ResponseOf } from './contracts/endpoint.js';
|
|
4
|
+
import type { PromptSource } from './contracts/prompts.js';
|
|
4
5
|
export type PromptSummary = ResponseOf<typeof listPromptsContract>['prompts'][number];
|
|
5
6
|
export type PromptDetail = ResponseOf<typeof getPromptContract>['prompt'];
|
|
6
7
|
export declare class UnknownPromptSlugError extends Error {
|
|
@@ -8,5 +9,9 @@ export declare class UnknownPromptSlugError extends Error {
|
|
|
8
9
|
readonly validSlugs: string[];
|
|
9
10
|
constructor(slug: string, validSlugs: string[]);
|
|
10
11
|
}
|
|
11
|
-
export
|
|
12
|
+
export interface PromptListFilter {
|
|
13
|
+
query?: string;
|
|
14
|
+
source?: PromptSource;
|
|
15
|
+
}
|
|
16
|
+
export declare function listPrompts(client: PostEngineerClient, filter?: PromptListFilter): Promise<PromptSummary[]>;
|
|
12
17
|
export declare function getPrompt(client: PostEngineerClient, slug: string): Promise<PromptDetail>;
|
package/dist/client-prompts.js
CHANGED
|
@@ -11,8 +11,14 @@ export class UnknownPromptSlugError extends Error {
|
|
|
11
11
|
this.name = 'UnknownPromptSlugError';
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export async function listPrompts(client) {
|
|
15
|
-
const
|
|
14
|
+
export async function listPrompts(client, filter = {}) {
|
|
15
|
+
const params = new URLSearchParams();
|
|
16
|
+
if (filter.query !== undefined && filter.query.trim() !== '')
|
|
17
|
+
params.set('q', filter.query.trim());
|
|
18
|
+
if (filter.source !== undefined)
|
|
19
|
+
params.set('source', filter.source);
|
|
20
|
+
const search = params.size > 0 ? `?${params.toString()}` : '';
|
|
21
|
+
const raw = await client.request(`/api/prompts${search}`, { method: 'GET', headers: client.getHeaders() }, 'list prompts');
|
|
16
22
|
return parseContractResponse(listPromptsContract, raw).prompts;
|
|
17
23
|
}
|
|
18
24
|
export async function getPrompt(client, slug) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-prompts.js","sourceRoot":"","sources":["../src/client-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EACL,SAAS,IAAI,iBAAiB,EAC9B,WAAW,IAAI,mBAAmB,GACnC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"client-prompts.js","sourceRoot":"","sources":["../src/client-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EACL,SAAS,IAAI,iBAAiB,EAC9B,WAAW,IAAI,mBAAmB,GACnC,MAAM,wBAAwB,CAAC;AAOhC,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC1B;IAAuB;IAA5C,YAAqB,IAAY,EAAW,UAAoB;QAC9D,KAAK,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAD1E,SAAI,GAAJ,IAAI,CAAQ;QAAW,eAAU,GAAV,UAAU,CAAU;QAE9D,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AAOD,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAA0B,EAAE,SAA2B,EAAE;IACzF,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,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M,CAAC;AAC9D,CAAC"}
|
|
@@ -139,7 +139,23 @@ export declare const UpdateUserPromptBodySchema: z.ZodObject<{
|
|
|
139
139
|
export declare const DeleteUserPromptResponseSchema: z.ZodObject<{
|
|
140
140
|
success: z.ZodLiteral<true>;
|
|
141
141
|
}, z.core.$strip>;
|
|
142
|
-
export declare const
|
|
142
|
+
export declare const PROMPT_SEARCH_MAX_LENGTH = 100;
|
|
143
|
+
export declare const ListPromptsQuerySchema: z.ZodObject<{
|
|
144
|
+
q: z.ZodOptional<z.ZodString>;
|
|
145
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
official: "official";
|
|
147
|
+
own: "own";
|
|
148
|
+
community: "community";
|
|
149
|
+
}>>;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
export declare const listPrompts: EndpointDefinition<undefined, z.ZodObject<{
|
|
152
|
+
q: z.ZodOptional<z.ZodString>;
|
|
153
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
154
|
+
official: "official";
|
|
155
|
+
own: "own";
|
|
156
|
+
community: "community";
|
|
157
|
+
}>>;
|
|
158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
143
159
|
success: z.ZodLiteral<true>;
|
|
144
160
|
prompts: z.ZodArray<z.ZodObject<{
|
|
145
161
|
slug: z.ZodString;
|
|
@@ -57,9 +57,17 @@ export const UpdateUserPromptBodySchema = z
|
|
|
57
57
|
export const DeleteUserPromptResponseSchema = z.object({
|
|
58
58
|
success: z.literal(true),
|
|
59
59
|
});
|
|
60
|
+
export const PROMPT_SEARCH_MAX_LENGTH = 100;
|
|
61
|
+
export const ListPromptsQuerySchema = z
|
|
62
|
+
.object({
|
|
63
|
+
q: z.string().max(PROMPT_SEARCH_MAX_LENGTH).optional(),
|
|
64
|
+
source: PromptSourceSchema.optional(),
|
|
65
|
+
})
|
|
66
|
+
.strict();
|
|
60
67
|
export const listPrompts = defineEndpoint({
|
|
61
68
|
method: 'GET',
|
|
62
69
|
path: '/api/prompts',
|
|
70
|
+
query: ListPromptsQuerySchema,
|
|
63
71
|
response: ListPromptsResponseSchema,
|
|
64
72
|
});
|
|
65
73
|
export const getPrompt = defineEndpoint({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../src/contracts/prompts.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,0EAA0E;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,MAAM,UAAU,cAAc,CAK5B,MAMD;IACC,OAAO,MAAM,CAAC;AAChB,CAAC;AA0BD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU,CAAC;AAIlE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,WAAW,CAAU,CAAC;AAExE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAIzD,MAAM,CAAC,MAAM,wBAAwB,GAAG,2BAA2B,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,GAAG;IACV,WAAW,EAAE,GAAG;IAChB,MAAM,EAAE,KAAK;CACL,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,EAAE;KACR,GAAG,CAAC,kBAAkB,CAAC,IAAI,CAAC;KAC5B,KAAK,CAAC,wBAAwB,EAAE,6EAA6E,CAAC,CAAC;AAElH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MA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AAC;IAC7C,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,0BAA0B;IAChC,QAAQ,EAAE,uBAAuB;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc,CAAC;IAC7C,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,8BAA8B;CACzC,CAAC,CAAC"}
|
package/dist/tools-prompts.d.ts
CHANGED
|
@@ -6,8 +6,15 @@ import { RecipeSession, type McpTransportKind } from './recipe-session.js';
|
|
|
6
6
|
export { withRecipeNudge, withScriptOutcome, type McpTransportKind } from './recipe-session.js';
|
|
7
7
|
export declare const SERVER_INSTRUCTIONS: string;
|
|
8
8
|
export declare const ListPromptsDescription = "List the available prompts (slug, title, description, source): official recipes, your own, and other users' public ones. Call this BEFORE writing or generating a video script when the user's request describes a topic rather than a ready script \u2014 news of the day, a real place with its own photos, a concrete subject like a car or a product, GitHub pull requests, or first-time account setup. Then call prompts (action: get) with the matching slug to load the full validated workflow for that recipe.";
|
|
9
|
-
export declare const ListPromptsShape: {
|
|
10
|
-
|
|
9
|
+
export declare const ListPromptsShape: {
|
|
10
|
+
query: z.ZodOptional<z.ZodString>;
|
|
11
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
official: "official";
|
|
13
|
+
own: "own";
|
|
14
|
+
community: "community";
|
|
15
|
+
}>>;
|
|
16
|
+
};
|
|
17
|
+
export declare function handleListPrompts(client: PostEngineerClient, args?: unknown): Promise<McpToolResponse>;
|
|
11
18
|
export declare const GetPromptDescription = "Return the full prompt for one slug from prompts (action: list): an official recipe, one of yours, or a public community prompt. Load only the recipe the agent will follow, and pass its slug as recipe on generate_video. Each recipe carries the complete validated workflow: script structure and word limits, media verification via media (action: check) for photo URLs, pricing rules for the overlay badge, and the generation and publish steps. Unknown slugs fail with the list of valid slugs \u2014 call prompts (action: list) first when unsure.";
|
|
12
19
|
export declare const GetPromptShape: {
|
|
13
20
|
slug: z.ZodString;
|
package/dist/tools-prompts.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { UnknownPromptSlugError, getPrompt, listPrompts } from './client-prompts.js';
|
|
3
3
|
import { getErrorMessage } from './errors.js';
|
|
4
|
+
import { PROMPT_SEARCH_MAX_LENGTH, PROMPT_SOURCES } from './contracts/prompts.js';
|
|
4
5
|
import { actionDescription, actionShape, byAction } from './action-tool.js';
|
|
5
6
|
import { READ_ONLY } from './tool-annotations.js';
|
|
6
7
|
import { RecipeSession, isRecipeSlug, recipeRunText } from './recipe-session.js';
|
|
@@ -12,16 +13,33 @@ export const SERVER_INSTRUCTIONS = [
|
|
|
12
13
|
'The recipes pre-validate scripts, media and prices before any token is spent.',
|
|
13
14
|
].join(' ');
|
|
14
15
|
export const ListPromptsDescription = 'List the available prompts (slug, title, description, source): official recipes, your own, and other users\' public ones. Call this BEFORE writing or generating a video script when the user\'s request describes a topic rather than a ready script — news of the day, a real place with its own photos, a concrete subject like a car or a product, GitHub pull requests, or first-time account setup. Then call prompts (action: get) with the matching slug to load the full validated workflow for that recipe.';
|
|
15
|
-
export const ListPromptsShape = {
|
|
16
|
-
|
|
16
|
+
export const ListPromptsShape = {
|
|
17
|
+
query: z.string().max(PROMPT_SEARCH_MAX_LENGTH).optional().describe('Words to find in slug, title or description.'),
|
|
18
|
+
source: z.enum(PROMPT_SOURCES).optional().describe('Only official, own or community prompts.'),
|
|
19
|
+
};
|
|
20
|
+
const ListPromptsSchema = z.object(ListPromptsShape);
|
|
21
|
+
async function fetchPromptList(client, args) {
|
|
22
|
+
const parsed = ListPromptsSchema.safeParse(args);
|
|
23
|
+
if (!parsed.success) {
|
|
24
|
+
return {
|
|
25
|
+
response: errorResponse('listing prompts', 'query must be at most 100 characters and source one of official, own, community.'),
|
|
26
|
+
includesOfficial: false,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
17
29
|
try {
|
|
18
|
-
const prompts = await listPrompts(client);
|
|
19
|
-
return {
|
|
30
|
+
const prompts = await listPrompts(client, parsed.data);
|
|
31
|
+
return {
|
|
32
|
+
response: { content: [{ type: 'text', text: JSON.stringify(prompts, null, 2) }] },
|
|
33
|
+
includesOfficial: prompts.some((prompt) => prompt.source === 'official'),
|
|
34
|
+
};
|
|
20
35
|
}
|
|
21
36
|
catch (error) {
|
|
22
|
-
return errorResponse('listing prompts', getErrorMessage(error));
|
|
37
|
+
return { response: errorResponse('listing prompts', getErrorMessage(error)), includesOfficial: false };
|
|
23
38
|
}
|
|
24
39
|
}
|
|
40
|
+
export async function handleListPrompts(client, args = {}) {
|
|
41
|
+
return (await fetchPromptList(client, args)).response;
|
|
42
|
+
}
|
|
25
43
|
export const GetPromptDescription = 'Return the full prompt for one slug from prompts (action: list): an official recipe, one of yours, or a public community prompt. Load only the recipe the agent will follow, and pass its slug as recipe on generate_video. Each recipe carries the complete validated workflow: script structure and word limits, media verification via media (action: check) for photo URLs, pricing rules for the overlay badge, and the generation and publish steps. Unknown slugs fail with the list of valid slugs — call prompts (action: list) first when unsure.';
|
|
26
44
|
export const GetPromptShape = {
|
|
27
45
|
slug: z.string().min(1, 'slug is required').describe('Prompt slug from prompts (action: list).'),
|
|
@@ -54,11 +72,11 @@ const PROMPTS_SPECS = { list: ListPromptsShape, get: GetPromptShape };
|
|
|
54
72
|
export function registerPromptTools(server, client, transport) {
|
|
55
73
|
const session = new RecipeSession(transport);
|
|
56
74
|
server.tool('prompts', actionDescription(`${ListPromptsDescription}\n${GetPromptDescription}`, PROMPTS_SPECS), actionShape(PROMPTS_SPECS), READ_ONLY, byAction({
|
|
57
|
-
list: async () => {
|
|
58
|
-
const
|
|
59
|
-
if (response.isError !== true)
|
|
75
|
+
list: async (args) => {
|
|
76
|
+
const listed = await session.run(undefined, () => fetchPromptList(client, args));
|
|
77
|
+
if (listed.response.isError !== true && listed.includesOfficial)
|
|
60
78
|
session.recordRecipesListed();
|
|
61
|
-
return response;
|
|
79
|
+
return listed.response;
|
|
62
80
|
},
|
|
63
81
|
get: async (args) => {
|
|
64
82
|
const fetched = await session.run(args.slug, () => fetchPromptResponse(client, args));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools-prompts.js","sourceRoot":"","sources":["../src/tools-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tools-prompts.js","sourceRoot":"","sources":["../src/tools-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAqB,MAAM,wBAAwB,CAAC;AAGrG,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAyB,MAAM,qBAAqB,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAyB,MAAM,qBAAqB,CAAC;AAEhG,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,4DAA4D;IAC5D,6HAA6H;IAC7H,yTAAyT;IACzT,+EAA+E;CAChF,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,sBAAsB,GACjC,ufAAuf,CAAC;AAE1f,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,K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