@funny-booth/langley-video-mcp 0.9.0 → 0.10.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/dist/client.js CHANGED
@@ -116,8 +116,9 @@ export function planStart(token, body, f = fetch) {
116
116
  export function planAct(token, action, body, f = fetch) {
117
117
  return post(`/plan/${action}`, token, body, f);
118
118
  }
119
- export async function planStatus(token, id, f = fetch) {
119
+ export async function planStatus(token, id, f = fetch, wait = false) {
120
+ // wait: 案を作っている途中なら、受け口ができるまで最大50秒待ってから返す(0.10.0)
120
121
  if (id)
121
- return [(await (await call(`/plan?id=${encodeURIComponent(id)}`, token, {}, f)).json())];
122
+ return [(await (await call(`/plan?id=${encodeURIComponent(id)}${wait ? "&wait=50" : ""}`, token, {}, f)).json())];
122
123
  return (await (await call("/plans", token, {}, f)).json()).plans;
123
124
  }
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ const fail = (e) => ({
16
16
  content: [{ type: "text", text: e instanceof AgentError ? e.message : `動画の受け口につながりません: ${String(e)}` }],
17
17
  isError: true,
18
18
  });
19
- const server = new McpServer({ name: "langley-video", version: "0.9.0" });
19
+ const server = new McpServer({ name: "langley-video", version: "0.10.0" });
20
20
  server.registerTool("video_productions", {
21
21
  description: "ラングレー動画の制作の一覧(新しい順)。どの動画がどの段階か(絵コンテ承認待ち・最終確認待ち・納品できる)と、承認画面のリンクを返す",
22
22
  inputSchema: {},
@@ -108,10 +108,14 @@ server.registerTool("video_plan_start", {
108
108
  server.registerTool("video_plan_status", {
109
109
  description: "台本づくりの様子(今の段・案づくりの途中か・最新の案の要点とシートの名前・OK 済みの段・誰が始めたか・推す特典を聞く必要があるか)。" +
110
110
  "番号を渡せばその1件(ブリーフの全文も)、渡さなければ新しい順に10件",
111
- inputSchema: { id: z.string().optional().describe("台本づくりの番号(p で始まる)") },
112
- }, async ({ id }) => {
111
+ inputSchema: {
112
+ id: z.string().optional().describe("台本づくりの番号(p で始まる)"),
113
+ wait: z.boolean().optional().describe("true なら、案を作っている途中のとき、できるまで最大50秒待ってから返す(番号が要る)。" +
114
+ "まだなら、もう一度 wait: true で呼ぶ(合わせて10分まで)。平山様に「できた?」と声をかけてもらわずに待てる"),
115
+ },
116
+ }, async ({ id, wait }) => {
113
117
  try {
114
- const list = await planStatus(token(), id);
118
+ const list = await planStatus(token(), id, fetch, Boolean(id && wait));
115
119
  return text(list.length ? list.map((p) => planText(p, Boolean(id))).join("\n\n") : "台本づくりはまだありません");
116
120
  }
117
121
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funny-booth/langley-video-mcp",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "ラングレー動画の制作の状況・制作の依頼・納品セットの取得(Langley-AgentOS の「WEBマーケクリエイティブ」から使う MCP・stdio)",
6
6
  "publishConfig": {