@flytedesk/app-kit 16.2.0 → 16.3.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.
@@ -35,17 +35,23 @@ export interface RemoteMcpPluginOptions<Context> {
35
35
  /** The tools this request's context may call. */
36
36
  tools: (context: Context) => AppRegisteredTool[];
37
37
  /**
38
- * Opt in to ending every tool result on this endpoint with one line (AK-80): called after
39
- * the tool ran, with the tool's name and whether it succeeded, it answers the line to append
40
- * (the owed replies not yet answered, for an endpoint serving the owed-reply tool) or null for
41
- * none. The line is added as a last text block of a success and to the end of a failure's
42
- * message. A notice that throws is logged and the tool's own result is returned without the
43
- * line: the tool already ran, so its result is never lost. Left out, results are returned
44
- * exactly as the tools made them, which is what an endpoint with no reply tool wants.
38
+ * Opt in to annotating every tool result on this endpoint (AK-80, AK-85): called after the tool
39
+ * ran, with the tool's name and whether it succeeded, it answers one `notice` line (the owed
40
+ * replies not yet answered, for an endpoint serving the owed-reply tool) and the `meta` entries
41
+ * to merge over a success's own `_meta` (the owed-reply state under `flytebot/reply`, so a
42
+ * runner reads it from any tool of the server); each is null for none. One call answers both, so
43
+ * the line and the `_meta` describe one moment. The notice is added as a last text block of a
44
+ * success and to the end of a failure's message; a failure has no `_meta`, so its `meta` is
45
+ * ignored. A throw fails the request loudly: a result is never sent without the annotation the
46
+ * runner depends on. Left out, results are returned exactly as the tools made them, which is
47
+ * what an endpoint with no reply tool wants.
45
48
  */
46
- resultNotice?: (context: Context, call: {
49
+ annotateResult?: (context: Context, call: {
47
50
  tool: string;
48
51
  ok: boolean;
49
- }) => Promise<string | null>;
52
+ }) => Promise<{
53
+ notice: string | null;
54
+ meta: Record<string, unknown> | null;
55
+ }>;
50
56
  }
51
57
  export declare function createRemoteMcpPlugin<Context>(options: RemoteMcpPluginOptions<Context>): FastifyPluginAsync;
@@ -19,19 +19,17 @@ export function createRemoteMcpPlugin(options) {
19
19
  error: { code: INVALID_REQUEST, message: "The body must be one JSON-RPC message object." },
20
20
  });
21
21
  }
22
- const withNotice = async (tool, result) => {
23
- let notice = null;
24
- try {
25
- notice = options.resultNotice === undefined ? null : await options.resultNotice(context, { tool, ok: result.ok });
26
- }
27
- catch (error) {
28
- request.log.error({ err: error, tool }, "MCP result notice threw");
29
- }
30
- if (notice === null)
22
+ const withAnnotation = async (tool, result) => {
23
+ if (options.annotateResult === undefined)
31
24
  return result;
32
- return result.ok
33
- ? { ...result, content: [...result.content, { type: "text", text: notice }] }
34
- : { ...result, message: `${result.message}\n${notice}` };
25
+ const { notice, meta } = await options.annotateResult(context, { tool, ok: result.ok });
26
+ if (!result.ok)
27
+ return notice === null ? result : { ...result, message: `${result.message}\n${notice}` };
28
+ return {
29
+ ...result,
30
+ ...(notice === null ? {} : { content: [...result.content, { type: "text", text: notice }] }),
31
+ ...(meta === null ? {} : { _meta: { ...result._meta, ...meta } }),
32
+ };
35
33
  };
36
34
  // A tool that throws is reported to the model as a tool error and logged here, so
37
35
  // an internal message never reaches the agent and one bad tool never drops the endpoint.
@@ -50,7 +48,7 @@ export function createRemoteMcpPlugin(options) {
50
48
  message: `Tool "${tool.name}" failed.`,
51
49
  };
52
50
  }
53
- return withNotice(tool.name, result);
51
+ return withAnnotation(tool.name, result);
54
52
  },
55
53
  }));
56
54
  const response = await createChatMcpProtocol({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chat/tools/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AA2B3D,MAAM,eAAe,GAAG,CAAC,KAAK,CAAC;AAE/B,MAAM,UAAU,qBAAqB,CACnC,OAAwC;IAExC,OAAO,KAAK,EAAE,OAAO,EAAE,EAAE;QACvB,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;YACzC,MAAM,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,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AO,CAAC,aAAa;gBACpC,KAAK;aACN,CAAC,CAAC,aAAa,CAAC,OAAkC,CAAC,CAAC;YAErD,IAAI,QAAQ,KAAK,IAAI;gBAAE,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YACrD,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;QAEH,mFAAmF;QACnF,kEAAkE;QAClE,KAAK,MAAM,MAAM,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAU,EAAE,CAAC;YAChD,OAAO,CAAC,KAAK,CAAC;gBACZ,MAAM;gBACN,GAAG,EAAE,GAAG;gBACR,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CACjC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;aAChF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flytedesk/app-kit",
3
- "version": "16.2.0",
3
+ "version": "16.3.0",
4
4
  "description": "Shared platform kit for flytedesk apps: flytedesk-id auth (BFF/OIDC client) and a Postgres-native trace/audit layer.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -1,4 +1,4 @@
1
1
  {
2
- "fragmentVersion": "1.0.0",
2
+ "fragmentVersion": "1.1.0",
3
3
  "minCliVersion": "1.0.0"
4
4
  }
@@ -7,14 +7,16 @@
7
7
  // What this models: a person's chat message is owed an answer. One OwedReply per message
8
8
  // holds the agent's acknowledgement, its reply, or the fixed line shown when the run
9
9
  // ended without answering, plus the revision the app's chat message projects. Which run
10
- // took the message is the row in OwedReplyDispatch. The state (sent, taken, acked,
11
- // answered, failed) is never stored: it is derived on every read from these columns and
12
- // from whether a dispatch row exists (src/chat/owed-replies/state.ts).
10
+ // took the message is the row in OwedReplyDispatch. A background job an app starts for an
11
+ // acknowledged message is a row in OwedReplyHold. The state (sent, taken, acked, answered,
12
+ // failed) and whether a message is held are never stored: they are derived on every read
13
+ // from these columns and rows (src/chat/owed-replies/state.ts).
13
14
  //
14
15
  // Design constraints (the same as every fragment): no `@relation`, since a package that
15
16
  // ships models into a consumer's schema cannot see the consumer's own models; no enum;
16
17
  // tables prefixed `app_kit_` through `@@map`. The CHECK constraints Prisma's schema
17
- // language cannot express are in prisma/migrations/0006_app_kit_owed_reply_init.
18
+ // language cannot express are in prisma/migrations/0006_app_kit_owed_reply_init and
19
+ // 0007_app_kit_owed_reply_holds.
18
20
 
19
21
  /// One row per message of a person that is owed an answer. `messageRef` is the app's own id
20
22
  /// for the message, so a resent message finds its row. `ackText` is replaced by a second
@@ -26,6 +28,8 @@ model OwedReply {
26
28
  personRef String @map("person_ref")
27
29
  ackText String? @map("ack_text")
28
30
  replyText String? @map("reply_text")
31
+ /// What the app's reply fields carried (AK-85), written with `replyText` and never without it.
32
+ replyPayload Json? @map("reply_payload")
29
33
  failure String?
30
34
  /// Raised on every write, so the app's projected chat message can tell a stale write.
31
35
  revision Int @default(0)
@@ -50,3 +54,19 @@ model OwedReplyDispatch {
50
54
  @@index([dispatchId])
51
55
  @@map("app_kit_owed_reply_dispatch")
52
56
  }
57
+
58
+ /// A background job the app started for an acknowledged, unanswered owed reply (AK-85): while a
59
+ /// hold is open, or ended and not yet reported to a wake run, the owed reply is held, and a run
60
+ /// that completes leaves it unanswered instead of failing it. `holdRef` is the app's own id for
61
+ /// the job. A hold is reported when a wake run takes the owed reply, or when the owed reply
62
+ /// fails; `reportedAt` is never set before `endedAt`.
63
+ model OwedReplyHold {
64
+ holdRef String @id @map("hold_ref")
65
+ owedReplyId String @map("owed_reply_id")
66
+ createdAt DateTime @default(now()) @map("created_at")
67
+ endedAt DateTime? @map("ended_at")
68
+ reportedAt DateTime? @map("reported_at")
69
+
70
+ @@index([owedReplyId])
71
+ @@map("app_kit_owed_reply_hold")
72
+ }
@@ -0,0 +1,39 @@
1
+ -- @flytedesk/app-kit/chat/owed-replies :: 0007_app_kit_owed_reply_holds
2
+ --
3
+ -- What an app's reply fields and background jobs add to the owed-reply tables (AK-85): the
4
+ -- payload a reply carries beside its text, and one row per background job that holds an
5
+ -- acknowledged owed reply open. Column names, types and defaults match
6
+ -- prisma/fragments/owed-reply.prisma (Prisma's own mapping: JSONB, TEXT, TIMESTAMP(3)), then
7
+ -- the CHECK constraints Prisma's schema language cannot express. One DO block, so the column,
8
+ -- the table, its index and the checks apply together or not at all. For an app that does not
9
+ -- use Prisma migrate; an app that does writes its own migration from the fragment, and
10
+ -- `owed-reply-sync` prints the CHECK lines below for it to append (see sync-engine.ts).
11
+
12
+ DO $owed_reply_holds$
13
+ BEGIN
14
+ SET LOCAL lock_timeout = '5s';
15
+
16
+ -- AlterTable
17
+ ALTER TABLE "app_kit_owed_reply" ADD COLUMN "reply_payload" JSONB;
18
+
19
+ -- CreateTable
20
+ CREATE TABLE "app_kit_owed_reply_hold" (
21
+ "hold_ref" TEXT NOT NULL,
22
+ "owed_reply_id" TEXT NOT NULL,
23
+ "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
24
+ "ended_at" TIMESTAMP(3),
25
+ "reported_at" TIMESTAMP(3),
26
+
27
+ CONSTRAINT "app_kit_owed_reply_hold_pkey" PRIMARY KEY ("hold_ref")
28
+ );
29
+
30
+ -- CreateIndex
31
+ CREATE INDEX "app_kit_owed_reply_hold_owed_reply_id_idx" ON "app_kit_owed_reply_hold"("owed_reply_id");
32
+
33
+ -- AddCheck: a payload is part of a reply, so it never exists without the reply's text.
34
+ ALTER TABLE "app_kit_owed_reply" ADD CONSTRAINT "app_kit_owed_reply_payload_needs_reply" CHECK ("reply_payload" IS NULL OR "reply_text" IS NOT NULL);
35
+
36
+ -- AddCheck: a hold is reported only after it ended.
37
+ ALTER TABLE "app_kit_owed_reply_hold" ADD CONSTRAINT "app_kit_owed_reply_hold_reported_after_end" CHECK ("reported_at" IS NULL OR "ended_at" IS NOT NULL);
38
+ END
39
+ $owed_reply_holds$;
@@ -40,5 +40,12 @@
40
40
  "file": "0006_app_kit_owed_reply_init/migration.sql",
41
41
  "checksum": "sha256:7e066dfa5a82cf212ac915a7861476ee6a67967ad94a1f1462480c9d4689a4aa",
42
42
  "introducedInFragmentVersion": "1.0.0"
43
+ },
44
+ {
45
+ "id": "0007_app_kit_owed_reply_holds",
46
+ "fragment": "owed-reply",
47
+ "file": "0007_app_kit_owed_reply_holds/migration.sql",
48
+ "checksum": "sha256:6dd6893a8591839e2c68aad6ac30191c9de84855dae834cdb1e557fb503ce818",
49
+ "introducedInFragmentVersion": "1.1.0"
43
50
  }
44
51
  ]