@flytedesk/app-kit 7.1.0 → 7.1.1

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 CHANGED
@@ -365,6 +365,14 @@ app-kit's own gate instead. Bumping the supported range means re-running that
365
365
  test against the new version and updating this section — a passing gate is
366
366
  the actual proof, not this paragraph.
367
367
 
368
+ ## Chat (`@flytedesk/app-kit/chat`)
369
+
370
+ `createDanxbotLauncher({ apiUrl, apiToken, board, profile })` dispatches chat turns
371
+ onto a danxbot board. `profile` selects one of the `top_level_agents` declared in
372
+ the consuming app's danxbot config: sms-app uses `audience-chat`, media-planner uses
373
+ `planner-chat`. The name must match a configured entry; danxbot rejects an unknown
374
+ profile with a 4xx.
375
+
368
376
  ## Tests
369
377
 
370
378
  `npm run check` is the full gate: lint, typecheck, build, unit tests, integration tests
@@ -27,7 +27,7 @@
27
27
  * apiUrl: chatEnv.danxbotApiUrl,
28
28
  * apiToken: chatEnv.danxbotApiToken,
29
29
  * board: chatEnv.danxbotBoardId,
30
- * profile: "board-chat",
30
+ * profile: "audience-chat",
31
31
  * });
32
32
  *
33
33
  * const { jobId } = await launcher.dispatchChatTurn({
@@ -27,7 +27,7 @@
27
27
  * apiUrl: chatEnv.danxbotApiUrl,
28
28
  * apiToken: chatEnv.danxbotApiToken,
29
29
  * board: chatEnv.danxbotBoardId,
30
- * profile: "board-chat",
30
+ * profile: "audience-chat",
31
31
  * });
32
32
  *
33
33
  * const { jobId } = await launcher.dispatchChatTurn({
@@ -28,9 +28,9 @@ export interface DanxbotLauncherOptions {
28
28
  apiToken: string;
29
29
  /** The danxbot board this app's chat turns dispatch onto, e.g. "sms-app:sms-app-main". */
30
30
  board: string;
31
- /** The danxbot agent profile to dispatch — the board-level chat profile the
32
- * consuming app registered (see this module's README section on wiring a
33
- * `.danxbot/config` profile override), NOT danxbot's own per-card `board-chat`. */
31
+ /** The name of a `top_level_agents` entry in the consuming app's danxbot
32
+ * config, e.g. sms-app's "audience-chat" or media-planner's "planner-chat"
33
+ * (see the README "Chat" section). */
34
34
  profile: string;
35
35
  }
36
36
  export interface DanxbotLauncher {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flytedesk/app-kit",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
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",