@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 +8 -0
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat/types.d.ts +3 -3
- package/package.json +1 -1
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
|
package/dist/chat/index.d.ts
CHANGED
package/dist/chat/index.js
CHANGED
package/dist/chat/types.d.ts
CHANGED
|
@@ -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
|
|
32
|
-
*
|
|
33
|
-
*
|
|
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