@burdenoff/mcp-libs 2026.1110.5 → 2026.1110.7

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.
Files changed (29) hide show
  1. package/dist/modules/adaptercloud/index.cjs +14 -6
  2. package/dist/modules/adaptercloud/index.cjs.map +1 -1
  3. package/dist/modules/adaptercloud/index.js +14 -6
  4. package/dist/modules/adaptercloud/index.js.map +1 -1
  5. package/dist/modules/billing/index.cjs +248 -0
  6. package/dist/modules/billing/index.cjs.map +1 -1
  7. package/dist/modules/billing/index.js +248 -0
  8. package/dist/modules/billing/index.js.map +1 -1
  9. package/dist/modules/billing/operations.d.ts +7 -0
  10. package/dist/modules/buildmyiq/tools/shared.d.ts +1 -1
  11. package/dist/modules/fluidgrids/extended-operations.d.ts +39 -0
  12. package/dist/modules/fluidgrids/index.cjs +813 -13
  13. package/dist/modules/fluidgrids/index.cjs.map +1 -1
  14. package/dist/modules/fluidgrids/index.js +813 -13
  15. package/dist/modules/fluidgrids/index.js.map +1 -1
  16. package/dist/modules/fluidgrids/operations.d.ts +1 -0
  17. package/dist/modules/fluidgrids/tools/data.d.ts +3 -0
  18. package/dist/modules/fluidgrids/tools/helpers.d.ts +13 -1
  19. package/dist/modules/fluidgrids/tools/inspect.d.ts +3 -0
  20. package/dist/modules/headshotmarketing/tools/shared.d.ts +2 -2
  21. package/dist/modules/hookmovies/index.cjs +252 -0
  22. package/dist/modules/hookmovies/index.cjs.map +1 -1
  23. package/dist/modules/hookmovies/index.js +252 -0
  24. package/dist/modules/hookmovies/index.js.map +1 -1
  25. package/dist/modules/hookmovies/operations.d.ts +9 -0
  26. package/dist/modules/hookmovies/tools/media.d.ts +3 -0
  27. package/dist/modules/subscriberbot/tools/shared.d.ts +1 -1
  28. package/dist/modules/timecampus/tools/shared.d.ts +1 -1
  29. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  export * from './durable-operations.js';
2
+ export * from './extended-operations.js';
2
3
  export declare const LIST_WORKFLOWS = "\n query ListWorkflows($input: ListWorkflowDefinitionsInput!) {\n workflowDefinitions(input: $input) {\n items {\n id\n workflowKey\n name\n description\n version\n status\n category\n tags\n isActive\n totalVersions\n createdAt\n updatedAt\n }\n total\n hasMore\n }\n }\n";
3
4
  export declare const GET_WORKFLOW = "\n query GetWorkflow($id: ID, $workflowKey: String, $version: String) {\n workflowDefinition(id: $id, workflowKey: $workflowKey, version: $version) {\n id\n workflowKey\n name\n description\n version\n status\n category\n tags\n icon\n isActive\n totalVersions\n definitionJson\n createdAt\n updatedAt\n }\n }\n";
4
5
  export declare const GET_WORKFLOW_VERSIONS = "\n query GetWorkflowVersions($workflowKey: String!) {\n workflowVersions(workflowKey: $workflowKey) {\n id\n workflowKey\n name\n description\n version\n status\n category\n tags\n icon\n isActive\n totalVersions\n createdAt\n updatedAt\n }\n }\n";
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerDataTools(server: McpServer, ctx: McpContext, track: (name: string) => string): void;
@@ -1,5 +1,17 @@
1
- import { type McpContext, type ToolResult } from '../../../core/index.js';
1
+ import { z } from 'zod';
2
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
3
+ import { type McpContext, type ToolAnnotations, type ToolResult } from '../../../core/index.js';
2
4
  export declare function safeErrorMessage(error: unknown): string;
3
5
  export declare function runTool(ctx: McpContext, label: string, run: () => Promise<ToolResult>): Promise<ToolResult>;
4
6
  export declare function definedInput(obj: Record<string, unknown>): Record<string, unknown>;
5
7
  export declare function workflowPagination(limit?: number, offset?: number): Record<string, unknown> | undefined;
8
+ export declare function normalizeDate(value: string | undefined, endOfDay: boolean): string | undefined;
9
+ export declare const READ_ONLY: ToolAnnotations;
10
+ export declare const INTERNAL_WRITE: ToolAnnotations;
11
+ export declare const DESTRUCTIVE_WRITE: ToolAnnotations;
12
+ type ToolFn = <Shape extends z.ZodRawShape>(name: string, title: string, description: string, shape: Shape, annotations: ToolAnnotations, handler: (args: z.infer<z.ZodObject<Shape>>) => Promise<ToolResult>) => void;
13
+ export declare function fluidgridsToolkit(server: McpServer, ctx: McpContext, track: (name: string) => string): {
14
+ tool: ToolFn;
15
+ request: <T = unknown>(document: string, root: string, variables?: Record<string, unknown>) => Promise<T | null>;
16
+ };
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type McpContext } from '../../../core/index.js';
3
+ export declare function registerInspectTools(server: McpServer, ctx: McpContext, track: (name: string) => string): void;
@@ -102,10 +102,10 @@ export declare const ContactStatusEnum: z.ZodEnum<{
102
102
  export declare const LeadSourceEnum: z.ZodEnum<{
103
103
  OTHER: "OTHER";
104
104
  EMAIL: "EMAIL";
105
+ REFERRAL: "REFERRAL";
105
106
  EVENT: "EVENT";
106
107
  AD_CAMPAIGN: "AD_CAMPAIGN";
107
108
  COLD_OUTREACH: "COLD_OUTREACH";
108
- REFERRAL: "REFERRAL";
109
109
  SOCIAL_MEDIA: "SOCIAL_MEDIA";
110
110
  WEBSITE: "WEBSITE";
111
111
  }>;
@@ -255,8 +255,8 @@ export declare const WorkflowExecutionStatusEnum: z.ZodEnum<{
255
255
  }>;
256
256
  export declare const DateRangePresetEnum: z.ZodEnum<{
257
257
  CUSTOM: "CUSTOM";
258
- LAST_30_DAYS: "LAST_30_DAYS";
259
258
  LAST_7_DAYS: "LAST_7_DAYS";
259
+ LAST_30_DAYS: "LAST_30_DAYS";
260
260
  LAST_90_DAYS: "LAST_90_DAYS";
261
261
  LAST_MONTH: "LAST_MONTH";
262
262
  THIS_MONTH: "THIS_MONTH";
@@ -402,6 +402,61 @@ const HEALTH = `
402
402
  hokHealth
403
403
  }
404
404
  `;
405
+ const CLIP_FIELDS = `
406
+ id titleId status order caption language durationSeconds
407
+ videoFileId posterFileId workspaceId createdAt updatedAt
408
+ `;
409
+ const EMBED_FIELDS = `
410
+ id titleId clipId kind status publicId label viewCount lastViewedAt revokedAt
411
+ workspaceId createdAt updatedAt
412
+ `;
413
+ const LIST_CLIPS = `
414
+ query HokListClips($pagination: PaginationInput, $titleId: ID, $language: String) {
415
+ hokListClips(pagination: $pagination, titleId: $titleId, language: $language) {
416
+ items { ${CLIP_FIELDS} }
417
+ ${PAGE_INFO}
418
+ totalCount
419
+ }
420
+ }
421
+ `;
422
+ const CREATE_CLIP = `
423
+ mutation HokCreateClip($input: HokCreateClipInput!) {
424
+ hokCreateClip(input: $input) { ${CLIP_FIELDS} }
425
+ }
426
+ `;
427
+ const DELETE_CLIP = `
428
+ mutation HokDeleteClip($id: ID!) {
429
+ hokDeleteClip(id: $id)
430
+ }
431
+ `;
432
+ const LIST_EMBEDS = `
433
+ query HokListEmbeds($pagination: PaginationInput, $status: HokEmbedStatus, $titleId: ID) {
434
+ hokListEmbeds(pagination: $pagination, status: $status, titleId: $titleId) {
435
+ items { ${EMBED_FIELDS} }
436
+ ${PAGE_INFO}
437
+ totalCount
438
+ }
439
+ }
440
+ `;
441
+ const CREATE_EMBED = `
442
+ mutation HokCreateEmbed($input: HokCreateEmbedInput!) {
443
+ hokCreateEmbed(input: $input) { ${EMBED_FIELDS} }
444
+ }
445
+ `;
446
+ const REVOKE_EMBED = `
447
+ mutation HokRevokeEmbed($id: ID!) {
448
+ hokRevokeEmbed(id: $id) { ${EMBED_FIELDS} }
449
+ }
450
+ `;
451
+ /** `@rbac(public: true)`: what an anonymous viewer of an active embed sees. */
452
+ const PUBLIC_EMBED = `
453
+ query HokPublicEmbed($publicId: String!) {
454
+ hokPublicEmbed(publicId: $publicId) {
455
+ publicId kind title synopsis releaseYear runtimeMinutes certification genres
456
+ aiDisclosure caption durationSeconds mediaUrl mediaMimeType posterUrl expiresAt
457
+ }
458
+ }
459
+ `;
405
460
 
406
461
  // src/modules/hookmovies/tools/shared.ts
407
462
  /**
@@ -1597,6 +1652,202 @@ function registerHealthTools(server, ctx, track) {
1597
1652
  });
1598
1653
  }
1599
1654
 
1655
+ // src/modules/hookmovies/tools/media.ts
1656
+ /**
1657
+ * HookMovies clip and embed tools (BOFF-10887).
1658
+ *
1659
+ * Surface (7): clips_{list,create,delete}, embeds_{list,create,revoke,get_public}.
1660
+ * Backed by hokListClips / hokCreateClip / hokDeleteClip and hokListEmbeds /
1661
+ * hokCreateEmbed / hokRevokeEmbed / hokPublicEmbed.
1662
+ *
1663
+ * A clip is a short video attached to a title. An embed is a public player
1664
+ * link for a title, its trailer or one of its clips: creating one makes that
1665
+ * media watchable by anyone with the link until it is revoked, so embeds_create
1666
+ * is open-world and also marked destructive: publishing media cannot be undone
1667
+ * for anyone who already opened the link, so shells that enforce confirmation
1668
+ * ask for confirm: true first. embeds_revoke is destructive too (the backend
1669
+ * stops a revoked embed for good; a new one has to be created).
1670
+ */
1671
+ const READ_ONLY = {
1672
+ readOnlyHint: true,
1673
+ destructiveHint: false,
1674
+ openWorldHint: false
1675
+ };
1676
+ const EmbedKindEnum = zod.z.enum([
1677
+ "CLIP",
1678
+ "FEATURE",
1679
+ "TRAILER"
1680
+ ]).describe("What the embed plays: the feature, its trailer, or one clip");
1681
+ const EmbedStatusEnum = zod.z.enum(["ACTIVE", "REVOKED"]).describe("Embed status");
1682
+ const pagination = {
1683
+ limit: zod.z.number().int().min(1).optional().describe("Page size (default 50)"),
1684
+ offset: zod.z.number().int().min(0).optional().describe("Pagination offset (default 0)"),
1685
+ cursor: zod.z.string().optional().describe("Opaque pagination cursor")
1686
+ };
1687
+ function failed(ctx, tool, what, error) {
1688
+ ctx.logger.error(`hookmovies ${tool} failed`, { error: String(error) });
1689
+ return require_core.errorResult(`Failed to ${what}: ${error instanceof Error ? error.message : String(error)}`);
1690
+ }
1691
+ function registerMediaTools(server, ctx, track) {
1692
+ server.registerTool(track(require_core.mcpToolName(ctx.productName, "clips_list")), {
1693
+ title: "List Clips",
1694
+ description: "List clips in the bound workspace, optionally for one title and/or language, with pagination.",
1695
+ annotations: READ_ONLY,
1696
+ inputSchema: {
1697
+ titleId: zod.z.string().optional().describe("Filter by title ID"),
1698
+ language: zod.z.string().optional().describe("Filter by language code"),
1699
+ ...pagination
1700
+ }
1701
+ }, async ({ titleId, language, limit, offset, cursor }) => {
1702
+ try {
1703
+ const data = await ctx.gql.workspace.request(LIST_CLIPS, {
1704
+ titleId,
1705
+ language,
1706
+ pagination: {
1707
+ limit: limit ?? 50,
1708
+ offset: offset ?? 0,
1709
+ cursor
1710
+ }
1711
+ });
1712
+ return require_core.jsonResult(data.hokListClips);
1713
+ } catch (error) {
1714
+ return failed(ctx, "clips_list", "list clips", error);
1715
+ }
1716
+ });
1717
+ server.registerTool(track(require_core.mcpToolName(ctx.productName, "clips_create")), {
1718
+ title: "Create Clip",
1719
+ description: "Attach a clip to a title. The video (and optional poster) must already be uploaded with the files tools; pass their file IDs. Each clip counts toward the workspace’s monthly clip usage.",
1720
+ annotations: {
1721
+ readOnlyHint: false,
1722
+ destructiveHint: false,
1723
+ openWorldHint: false
1724
+ },
1725
+ inputSchema: {
1726
+ titleId: zod.z.string().min(1).describe("Title the clip belongs to"),
1727
+ videoFileId: zod.z.string().min(1).describe("File ID of the uploaded video"),
1728
+ posterFileId: zod.z.string().optional().describe("File ID of a poster image"),
1729
+ caption: zod.z.string().optional().describe("Caption"),
1730
+ language: zod.z.string().optional().describe("Language code"),
1731
+ durationSeconds: zod.z.number().int().min(0).optional().describe("Length in seconds"),
1732
+ order: zod.z.number().int().optional().describe("Position among the title’s clips")
1733
+ }
1734
+ }, async (args) => {
1735
+ try {
1736
+ const input = {};
1737
+ for (const [key, value] of Object.entries(args)) if (value !== void 0) input[key] = value;
1738
+ const data = await ctx.gql.workspace.request(CREATE_CLIP, { input });
1739
+ return require_core.jsonResult(data.hokCreateClip);
1740
+ } catch (error) {
1741
+ return failed(ctx, "clips_create", "create clip", error);
1742
+ }
1743
+ });
1744
+ server.registerTool(track(require_core.mcpToolName(ctx.productName, "clips_delete")), {
1745
+ title: "Delete Clip",
1746
+ description: "Delete a clip permanently. Returns { deleted: true } on success.",
1747
+ annotations: {
1748
+ readOnlyHint: false,
1749
+ destructiveHint: true,
1750
+ openWorldHint: false
1751
+ },
1752
+ inputSchema: { id: zod.z.string().min(1).describe("Clip ID") }
1753
+ }, async ({ id }) => {
1754
+ try {
1755
+ if (!(await ctx.gql.workspace.request("\n mutation HokDeleteClip($id: ID!) {\n hokDeleteClip(id: $id)\n }\n", { id })).hokDeleteClip) return require_core.errorResult(`Clip ${id} was not deleted`);
1756
+ return require_core.jsonResult({
1757
+ deleted: true,
1758
+ id
1759
+ });
1760
+ } catch (error) {
1761
+ return failed(ctx, "clips_delete", "delete clip", error);
1762
+ }
1763
+ });
1764
+ server.registerTool(track(require_core.mcpToolName(ctx.productName, "embeds_list")), {
1765
+ title: "List Embeds",
1766
+ description: "List public player embeds in the bound workspace, optionally for one title and/or status, with view counts.",
1767
+ annotations: READ_ONLY,
1768
+ inputSchema: {
1769
+ titleId: zod.z.string().optional().describe("Filter by title ID"),
1770
+ status: EmbedStatusEnum.optional(),
1771
+ ...pagination
1772
+ }
1773
+ }, async ({ titleId, status, limit, offset, cursor }) => {
1774
+ try {
1775
+ const data = await ctx.gql.workspace.request(LIST_EMBEDS, {
1776
+ titleId,
1777
+ status,
1778
+ pagination: {
1779
+ limit: limit ?? 50,
1780
+ offset: offset ?? 0,
1781
+ cursor
1782
+ }
1783
+ });
1784
+ return require_core.jsonResult(data.hokListEmbeds);
1785
+ } catch (error) {
1786
+ return failed(ctx, "embeds_list", "list embeds", error);
1787
+ }
1788
+ });
1789
+ server.registerTool(track(require_core.mcpToolName(ctx.productName, "embeds_create")), {
1790
+ title: "Create Embed",
1791
+ description: "Create a public player link for a title. Anyone with the link can watch the media until the embed is revoked. kind CLIP needs a clipId of a published clip of the same title.",
1792
+ annotations: {
1793
+ readOnlyHint: false,
1794
+ destructiveHint: true,
1795
+ openWorldHint: true
1796
+ },
1797
+ inputSchema: {
1798
+ titleId: zod.z.string().min(1).describe("Title to embed"),
1799
+ kind: EmbedKindEnum,
1800
+ clipId: zod.z.string().optional().describe("Clip ID (required when kind is CLIP)"),
1801
+ label: zod.z.string().optional().describe("Label to recognise the embed by")
1802
+ }
1803
+ }, async ({ titleId, kind, clipId, label }) => {
1804
+ if (kind === "CLIP" && clipId === void 0) return require_core.errorResult("clipId is required when kind is CLIP.");
1805
+ if (kind !== "CLIP" && clipId !== void 0) return require_core.errorResult("clipId only goes with kind CLIP.");
1806
+ try {
1807
+ const input = {
1808
+ titleId,
1809
+ kind
1810
+ };
1811
+ if (clipId !== void 0) input.clipId = clipId;
1812
+ if (label !== void 0) input.label = label;
1813
+ const data = await ctx.gql.workspace.request(CREATE_EMBED, { input });
1814
+ return require_core.jsonResult(data.hokCreateEmbed);
1815
+ } catch (error) {
1816
+ return failed(ctx, "embeds_create", "create embed", error);
1817
+ }
1818
+ });
1819
+ server.registerTool(track(require_core.mcpToolName(ctx.productName, "embeds_revoke")), {
1820
+ title: "Revoke Embed",
1821
+ description: "Permanently stop a public player link from playing anywhere. It cannot be re-activated; create a new embed instead. Revoking twice is harmless.",
1822
+ annotations: {
1823
+ readOnlyHint: false,
1824
+ destructiveHint: true,
1825
+ openWorldHint: true
1826
+ },
1827
+ inputSchema: { id: zod.z.string().min(1).describe("Embed ID") }
1828
+ }, async ({ id }) => {
1829
+ try {
1830
+ const data = await ctx.gql.workspace.request(REVOKE_EMBED, { id });
1831
+ return require_core.jsonResult(data.hokRevokeEmbed);
1832
+ } catch (error) {
1833
+ return failed(ctx, "embeds_revoke", "revoke embed", error);
1834
+ }
1835
+ });
1836
+ server.registerTool(track(require_core.mcpToolName(ctx.productName, "embeds_get_public")), {
1837
+ title: "Get Public Embed",
1838
+ description: "What an anonymous viewer of an active embed sees: title details and a presigned media URL valid until expiresAt. Null when the embed is revoked or unknown.",
1839
+ annotations: READ_ONLY,
1840
+ inputSchema: { publicId: zod.z.string().min(1).describe("Public ID from the embed link") }
1841
+ }, async ({ publicId }) => {
1842
+ try {
1843
+ const data = await ctx.gql.workspace.request(PUBLIC_EMBED, { publicId });
1844
+ return require_core.jsonResult(data.hokPublicEmbed ?? null);
1845
+ } catch (error) {
1846
+ return failed(ctx, "embeds_get_public", "read embed", error);
1847
+ }
1848
+ });
1849
+ }
1850
+
1600
1851
  // src/modules/hookmovies/resources.ts
1601
1852
  /**
1602
1853
  * Read-only HookMovies MCP resources. URIs are product-prefixed via
@@ -1838,6 +2089,7 @@ const hookmoviesModule = {
1838
2089
  registerListTools(server, ctx, trackTool);
1839
2090
  registerProgressTools(server, ctx, trackTool);
1840
2091
  registerHealthTools(server, ctx, trackTool);
2092
+ registerMediaTools(server, ctx, trackTool);
1841
2093
  registerHookmoviesResources(server, ctx, trackResource);
1842
2094
  registerHookmoviesPrompts(server, ctx, trackPrompt);
1843
2095
  return {