@datalayer/agent-runtimes 1.3.28 → 1.3.29
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/lib/chat/ChatFloating.d.ts +12 -2
- package/lib/chat/ChatFloating.js +196 -25
- package/lib/chat/assistant/AssistantStage.d.ts +70 -0
- package/lib/chat/assistant/AssistantStage.js +192 -0
- package/lib/chat/assistant/SpeechBalloon.d.ts +26 -0
- package/lib/chat/assistant/SpeechBalloon.js +46 -0
- package/lib/chat/assistant/SpriteCharacter.d.ts +26 -0
- package/lib/chat/assistant/SpriteCharacter.js +73 -0
- package/lib/chat/assistant/characters.d.ts +30 -0
- package/lib/chat/assistant/characters.js +41 -0
- package/lib/chat/assistant/formats/acs.d.ts +88 -0
- package/lib/chat/assistant/formats/acs.js +493 -0
- package/lib/chat/assistant/formats/agentCompression.d.ts +5 -0
- package/lib/chat/assistant/formats/agentCompression.js +92 -0
- package/lib/chat/assistant/formats/blobs.d.ts +6 -0
- package/lib/chat/assistant/formats/blobs.js +52 -0
- package/lib/chat/assistant/formats/clippy.d.ts +21 -0
- package/lib/chat/assistant/formats/clippy.js +167 -0
- package/lib/chat/assistant/formats/index.d.ts +13 -0
- package/lib/chat/assistant/formats/index.js +15 -0
- package/lib/chat/assistant/formats/objectLiteral.d.ts +23 -0
- package/lib/chat/assistant/formats/objectLiteral.js +233 -0
- package/lib/chat/assistant/formats/stateAnimations.d.ts +16 -0
- package/lib/chat/assistant/formats/stateAnimations.js +115 -0
- package/lib/chat/assistant/formats/types.d.ts +56 -0
- package/lib/chat/assistant/formats/types.js +11 -0
- package/lib/chat/assistant/state.d.ts +62 -0
- package/lib/chat/assistant/state.js +116 -0
- package/lib/chat/header/ChatViewModeToggle.js +6 -3
- package/lib/{loop/plugins/chat → chat/presence}/Presence.js +1 -1
- package/lib/{loop/plugins/chat → chat/presence}/presenceStatus.d.ts +7 -1
- package/lib/{loop/plugins/chat → chat/presence}/presenceStatus.js +18 -0
- package/lib/chat/viewModes.d.ts +6 -0
- package/lib/chat/viewModes.js +10 -1
- package/lib/examples/ChatAssistantExample.d.ts +8 -0
- package/lib/examples/ChatAssistantExample.js +59 -0
- package/lib/examples/example-selector.js +1 -0
- package/lib/examples/main.js +3 -0
- package/lib/loop/apps/AppRenderer.d.ts +1 -1
- package/lib/loop/apps/appspec.d.ts +5 -1
- package/lib/loop/apps/appspec.js +21 -1
- package/lib/loop/apps/checks.js +3 -1
- package/lib/loop/core/index.d.ts +15 -0
- package/lib/loop/core/index.js +1 -0
- package/lib/loop/plugins/assistant-characters/index.d.ts +30 -0
- package/lib/loop/plugins/assistant-characters/index.js +41 -0
- package/lib/loop/plugins/chat/ChatView.js +3 -14
- package/lib/loop/plugins/chat/index.d.ts +1 -1
- package/lib/loop/plugins/page-layout/index.js +5 -1
- package/lib/specs/actions.js +6 -0
- package/lib/specs/apps.d.ts +3 -0
- package/lib/specs/apps.js +793 -65
- package/lib/specs/appspecSchema.js +20 -2
- package/lib/types/agentspecs.d.ts +10 -1
- package/lib/types/chat.d.ts +1 -1
- package/package.json +1 -1
- /package/lib/{loop/plugins/chat → chat/presence}/Presence.d.ts +0 -0
|
@@ -35,6 +35,8 @@ const promptStance = signal('floating-top');
|
|
|
35
35
|
* page layout to a page, the assumption that signal already makes.
|
|
36
36
|
*/
|
|
37
37
|
let floatingStance = 'floating-top';
|
|
38
|
+
/** The modes the page layout does not place. */
|
|
39
|
+
const PAGE_LAYOUT_DISABLED_MODES = ['assistant'];
|
|
38
40
|
export function pageLayoutForChatMode(mode) {
|
|
39
41
|
switch (mode) {
|
|
40
42
|
case 'sidebar':
|
|
@@ -60,7 +62,9 @@ export function setPageLayoutChatMode(mode) {
|
|
|
60
62
|
/** The toggle in the floating composer's footer. */
|
|
61
63
|
function ChatModeAction() {
|
|
62
64
|
const mode = useSignalValue(pageLayoutChatMode);
|
|
63
|
-
|
|
65
|
+
// The page layout places the chat itself: the floating assistant, which
|
|
66
|
+
// ChatFloating draws, is offered greyed out with its reason (T-21).
|
|
67
|
+
return (_jsx(ChatViewModeToggle, { value: mode, onChange: setPageLayoutChatMode, disabledModes: PAGE_LAYOUT_DISABLED_MODES }));
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
70
|
* The chat view's parts on the page layout.
|
package/lib/specs/actions.js
CHANGED
|
@@ -439,6 +439,7 @@ export const SERVER_ACTIONS = {
|
|
|
439
439
|
* to reproduce.
|
|
440
440
|
*/
|
|
441
441
|
export const APP_BEHAVIOURS = {
|
|
442
|
+
'data-quality': {},
|
|
442
443
|
'inbox-triage': {
|
|
443
444
|
'google-workspace.append_table_rows': 'leave_to_me',
|
|
444
445
|
'google-workspace.batch_modify_gmail_message_labels': 'do_it',
|
|
@@ -561,8 +562,10 @@ export const APP_BEHAVIOURS = {
|
|
|
561
562
|
'google-workspace.update_drive_file': 'leave_to_me',
|
|
562
563
|
'google-workspace.update_paragraph_style': 'leave_to_me',
|
|
563
564
|
},
|
|
565
|
+
'model-choice': {},
|
|
564
566
|
'quote-calculator': {},
|
|
565
567
|
'ship-or-fix': {},
|
|
568
|
+
'supplier-comparison': {},
|
|
566
569
|
'web-research': {
|
|
567
570
|
'tavily.tavily_crawl': 'do_it',
|
|
568
571
|
'tavily.tavily_extract': 'do_it',
|
|
@@ -576,6 +579,7 @@ export const APP_BEHAVIOURS = {
|
|
|
576
579
|
* application and tool, each condition and the behaviour when it holds.
|
|
577
580
|
*/
|
|
578
581
|
export const APP_ESCALATIONS = {
|
|
582
|
+
'data-quality': {},
|
|
579
583
|
'inbox-triage': {
|
|
580
584
|
'google-workspace.batch_modify_gmail_message_labels': [
|
|
581
585
|
{
|
|
@@ -610,7 +614,9 @@ export const APP_ESCALATIONS = {
|
|
|
610
614
|
},
|
|
611
615
|
],
|
|
612
616
|
},
|
|
617
|
+
'model-choice': {},
|
|
613
618
|
'quote-calculator': {},
|
|
614
619
|
'ship-or-fix': {},
|
|
620
|
+
'supplier-comparison': {},
|
|
615
621
|
'web-research': {},
|
|
616
622
|
};
|
package/lib/specs/apps.d.ts
CHANGED
|
@@ -8,9 +8,12 @@
|
|
|
8
8
|
* DO NOT EDIT MANUALLY - run 'make specs' to regenerate.
|
|
9
9
|
*/
|
|
10
10
|
import type { AppKind, AppSpec } from '../types/agentspecs';
|
|
11
|
+
export declare const DATA_QUALITY_APP_0_0_1: AppSpec;
|
|
11
12
|
export declare const INBOX_TRIAGE_APP_0_0_1: AppSpec;
|
|
13
|
+
export declare const MODEL_CHOICE_APP_0_0_1: AppSpec;
|
|
12
14
|
export declare const QUOTE_CALCULATOR_APP_0_0_1: AppSpec;
|
|
13
15
|
export declare const SHIP_OR_FIX_APP_0_0_1: AppSpec;
|
|
16
|
+
export declare const SUPPLIER_COMPARISON_APP_0_0_1: AppSpec;
|
|
14
17
|
export declare const WEB_RESEARCH_APP_0_0_1: AppSpec;
|
|
15
18
|
export declare const APP_CATALOGUE: Record<string, AppSpec>;
|
|
16
19
|
/** An application, by `id` or `id:version`, or undefined. */
|