sapiens-mcp 1.11.0 → 1.11.2

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Borderless (Sapiens Sintéticos)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -74,11 +74,11 @@ const FORMAT_GUIDE = {
74
74
  },
75
75
  },
76
76
  cena_visual: {
77
- description: "Cena visual única pra still ou abertura.",
77
+ description: "Vídeo curto programático via Hyperframes (movimento + texto entram por código).",
78
78
  payloadHint: {
79
- prompt: "string",
80
- composition: "string",
81
- imageUrl: "string opcional",
79
+ concept: "string (ideia da cena)",
80
+ scenes: [{ text: "string", motion: "string", durationMs: "number" }],
81
+ durationMs: "number total opcional",
82
82
  },
83
83
  },
84
84
  video_yt: {
@@ -89,20 +89,20 @@ const FORMAT_GUIDE = {
89
89
  scenes: [{ visual: "string", voiceover: "string", duration: "number" }],
90
90
  },
91
91
  },
92
- post_linkedin: {
93
- description: "Post LinkedIn (texto + opcional carrossel curto).",
94
- payloadHint: { text: "string", hashtags: ["string"] },
95
- },
96
- post_twitter: {
97
- description: "Post Twitter/X (single ou thread).",
92
+ mega_grafico: {
93
+ description: "Pôster blueprint denso multi-seção (estilo Pop Chart), texto fiel via gpt-image-2. Tem runner próprio: propose_mega_grafico_plan / run_mega_grafico_full.",
98
94
  payloadHint: {
99
- tweets: ["string (max 280 chars)"],
100
- threadStyle: "boolean",
95
+ title: "string",
96
+ sections: [{ heading: "string", items: ["string"] }],
97
+ withHelen: "boolean (1 painel com a Helen interagindo com o tema)",
101
98
  },
102
99
  },
103
- post_threads: {
104
- description: "Post Threads (parecido com Twitter mas mais longo).",
105
- payloadHint: { posts: ["string"] },
100
+ aula: {
101
+ description: "Aula em slides (deck navegável no site /aulas) destilada do source: framework nomeado + analogia.",
102
+ payloadHint: {
103
+ title: "string",
104
+ slides: [{ title: "string", body: "string", note: "string opcional" }],
105
+ },
106
106
  },
107
107
  };
108
108
  export async function meta(args) {
@@ -1,18 +1,24 @@
1
1
  import { z } from "zod";
2
2
  import { convexAction, convexMutation, convexQuery, getSessionToken, } from "../convexClient.js";
3
+ // Espelho canônico dos formatos do app (peças surface:'format' em PIECES,
4
+ // apps/sapiens/src/features/content-pipeline/registry.jsx). Mantido em sync por
5
+ // lint: `npm run audit:mcp-format-parity` falha o CI se divergir. Ao adicionar
6
+ // ou remover formato, mexa nos dois lados.
3
7
  const FORMATS = [
4
8
  "tirinha",
5
9
  "carrossel_ig",
6
10
  "post_social",
7
- "musica",
8
11
  "mega_grafico",
9
- "post_linkedin",
10
- "post_twitter",
11
- "post_threads",
12
12
  "shorts_yt",
13
13
  "cena_visual",
14
14
  "video_yt",
15
+ "musica",
16
+ "aula",
15
17
  ];
18
+ // Formatos legados: fora do FORMAT_GUIDE (não advertidos), mas ainda aceitos na
19
+ // validação pra editar productions antigas sem quebrar.
20
+ const LEGACY_FORMATS = ["post_linkedin", "post_twitter", "post_threads"];
21
+ const ACCEPTED_FORMATS = [...FORMATS, ...LEGACY_FORMATS];
16
22
  const STATUSES = ["draft", "ready", "finalized"];
17
23
  export const pipelineSchema = z.object({
18
24
  action: z.enum([
@@ -75,7 +81,7 @@ export const pipelineSchema = z.object({
75
81
  publishableId: z.string().optional(),
76
82
  articleId: z.string().optional(),
77
83
  // create / add
78
- format: z.enum(FORMATS).optional(),
84
+ format: z.enum(ACCEPTED_FORMATS).optional(),
79
85
  payload: z.any().optional().describe("Payload livre por formato"),
80
86
  status: z.enum(STATUSES).optional(),
81
87
  notes: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapiens-mcp",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "MCP server pra operar o Sapiens Sintéticos (sapiensinteticos.com) pelo Claude Code: gerar imagem, escrever artigo, voz, música e mais, na sua conta. Login pelo código de sapiensinteticos.com/conectar-claude.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "engines": {
14
14
  "node": ">=18"
15
15
  },
16
- "homepage": "https://sapiensinteticos.com/conectar-claude",
16
+ "homepage": "https://www.sapiensinteticos.com/conectar-claude",
17
17
  "keywords": [
18
18
  "mcp",
19
19
  "model-context-protocol",