newo 2.0.6 → 3.1.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/CHANGELOG.md +338 -224
- package/README.md +257 -0
- package/dist/api.d.ts +23 -1
- package/dist/api.js +114 -0
- package/dist/auth.js +4 -0
- package/dist/cli/commands/create-agent.d.ts +3 -0
- package/dist/cli/commands/create-agent.js +75 -0
- package/dist/cli/commands/create-attribute.d.ts +3 -0
- package/dist/cli/commands/create-attribute.js +63 -0
- package/dist/cli/commands/create-event.d.ts +3 -0
- package/dist/cli/commands/create-event.js +66 -0
- package/dist/cli/commands/create-flow.d.ts +3 -0
- package/dist/cli/commands/create-flow.js +100 -0
- package/dist/cli/commands/create-parameter.d.ts +3 -0
- package/dist/cli/commands/create-parameter.js +47 -0
- package/dist/cli/commands/create-persona.d.ts +3 -0
- package/dist/cli/commands/create-persona.js +43 -0
- package/dist/cli/commands/create-project.d.ts +3 -0
- package/dist/cli/commands/create-project.js +55 -0
- package/dist/cli/commands/create-skill.d.ts +3 -0
- package/dist/cli/commands/create-skill.js +115 -0
- package/dist/cli/commands/create-state.d.ts +3 -0
- package/dist/cli/commands/create-state.js +58 -0
- package/dist/cli/commands/delete-agent.d.ts +3 -0
- package/dist/cli/commands/delete-agent.js +70 -0
- package/dist/cli/commands/delete-flow.d.ts +3 -0
- package/dist/cli/commands/delete-flow.js +83 -0
- package/dist/cli/commands/delete-skill.d.ts +3 -0
- package/dist/cli/commands/delete-skill.js +87 -0
- package/dist/cli/commands/help.js +114 -22
- package/dist/cli/commands/push.js +4 -3
- package/dist/cli/commands/sandbox.d.ts +14 -0
- package/dist/cli/commands/sandbox.js +306 -0
- package/dist/cli.js +57 -0
- package/dist/sandbox/chat.d.ts +40 -0
- package/dist/sandbox/chat.js +280 -0
- package/dist/sync/push.d.ts +1 -1
- package/dist/sync/push.js +372 -4
- package/dist/sync/status.js +178 -1
- package/dist/types.d.ts +181 -1
- package/package.json +6 -3
- package/src/api.ts +172 -1
- package/src/auth.ts +7 -2
- package/src/cli/commands/create-agent.ts +96 -0
- package/src/cli/commands/create-attribute.ts +75 -0
- package/src/cli/commands/create-event.ts +79 -0
- package/src/cli/commands/create-flow.ts +124 -0
- package/src/cli/commands/create-parameter.ts +59 -0
- package/src/cli/commands/create-persona.ts +54 -0
- package/src/cli/commands/create-project.ts +66 -0
- package/src/cli/commands/create-skill.ts +144 -0
- package/src/cli/commands/create-state.ts +71 -0
- package/src/cli/commands/delete-agent.ts +90 -0
- package/src/cli/commands/delete-flow.ts +105 -0
- package/src/cli/commands/delete-skill.ts +110 -0
- package/src/cli/commands/help.ts +114 -22
- package/src/cli/commands/push.ts +5 -3
- package/src/cli/commands/sandbox.ts +365 -0
- package/src/cli.ts +71 -0
- package/src/sandbox/chat.ts +339 -0
- package/src/sync/push.ts +413 -5
- package/src/sync/status.ts +183 -1
- package/src/types.ts +220 -2
package/src/types.ts
CHANGED
|
@@ -306,8 +306,7 @@ export interface AgentMetadata {
|
|
|
306
306
|
idn: string;
|
|
307
307
|
title?: string;
|
|
308
308
|
description?: string;
|
|
309
|
-
|
|
310
|
-
persona?: string;
|
|
309
|
+
persona_id?: string | null;
|
|
311
310
|
created_at?: string;
|
|
312
311
|
updated_at?: string;
|
|
313
312
|
}
|
|
@@ -449,4 +448,223 @@ export interface ConversationsData {
|
|
|
449
448
|
readonly total_personas: number;
|
|
450
449
|
readonly total_acts: number;
|
|
451
450
|
readonly generated_at: string;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// Entity Creation/Deletion Types
|
|
454
|
+
|
|
455
|
+
export interface CreateAgentRequest {
|
|
456
|
+
idn: string;
|
|
457
|
+
title: string;
|
|
458
|
+
description?: string | null;
|
|
459
|
+
persona_id?: string | null;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export interface CreateAgentResponse {
|
|
463
|
+
id: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface CreateFlowRequest {
|
|
467
|
+
idn: string;
|
|
468
|
+
title: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export interface CreateFlowResponse {
|
|
472
|
+
id: string;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export interface CreateSkillRequest {
|
|
476
|
+
idn: string;
|
|
477
|
+
title: string;
|
|
478
|
+
prompt_script?: string;
|
|
479
|
+
runner_type: RunnerType;
|
|
480
|
+
model: ModelConfig;
|
|
481
|
+
path?: string;
|
|
482
|
+
parameters?: SkillParameter[];
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export interface CreateSkillResponse {
|
|
486
|
+
id: string;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface CreateFlowEventRequest {
|
|
490
|
+
idn: string;
|
|
491
|
+
description?: string;
|
|
492
|
+
skill_selector: string;
|
|
493
|
+
skill_idn?: string;
|
|
494
|
+
state_idn?: string | null;
|
|
495
|
+
interrupt_mode: string;
|
|
496
|
+
integration_idn: string;
|
|
497
|
+
connector_idn: string;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export interface CreateFlowEventResponse {
|
|
501
|
+
id: string;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface CreateFlowStateRequest {
|
|
505
|
+
title: string;
|
|
506
|
+
idn: string;
|
|
507
|
+
default_value?: string;
|
|
508
|
+
scope: string;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export interface CreateFlowStateResponse {
|
|
512
|
+
id: string;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export interface CreateSkillParameterRequest {
|
|
516
|
+
name: string;
|
|
517
|
+
default_value?: string;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export interface CreateSkillParameterResponse {
|
|
521
|
+
id: string;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export interface CreateCustomerAttributeRequest {
|
|
525
|
+
idn: string;
|
|
526
|
+
value: string;
|
|
527
|
+
title: string;
|
|
528
|
+
description?: string;
|
|
529
|
+
group: string;
|
|
530
|
+
is_hidden: boolean;
|
|
531
|
+
possible_values: string[];
|
|
532
|
+
value_type: string;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export interface CreateCustomerAttributeResponse {
|
|
536
|
+
id: string;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export interface CreatePersonaRequest {
|
|
540
|
+
name: string;
|
|
541
|
+
title: string;
|
|
542
|
+
description?: string;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export interface CreatePersonaResponse {
|
|
546
|
+
id: string;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export interface CreateProjectRequest {
|
|
550
|
+
idn: string;
|
|
551
|
+
title: string;
|
|
552
|
+
version?: string;
|
|
553
|
+
description?: string;
|
|
554
|
+
is_auto_update_enabled?: boolean;
|
|
555
|
+
registry_idn?: string;
|
|
556
|
+
registry_item_idn?: string | null;
|
|
557
|
+
registry_item_version?: string | null;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export interface CreateProjectResponse {
|
|
561
|
+
id: string;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export interface PublishFlowRequest {
|
|
565
|
+
version: string;
|
|
566
|
+
description: string;
|
|
567
|
+
type: string;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
export interface PublishFlowResponse {
|
|
571
|
+
success: boolean;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// Sandbox Chat Types
|
|
575
|
+
|
|
576
|
+
export interface Integration {
|
|
577
|
+
readonly id: string;
|
|
578
|
+
readonly title: string;
|
|
579
|
+
readonly idn: string;
|
|
580
|
+
readonly description: string;
|
|
581
|
+
readonly is_disabled: boolean;
|
|
582
|
+
readonly channel: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export interface IntegrationSetting {
|
|
586
|
+
readonly title: string;
|
|
587
|
+
readonly idn: string;
|
|
588
|
+
readonly control_type: string;
|
|
589
|
+
readonly value_type: string;
|
|
590
|
+
readonly is_required: boolean;
|
|
591
|
+
readonly default_value?: string | null;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export interface Connector {
|
|
595
|
+
readonly id: string;
|
|
596
|
+
readonly title: string;
|
|
597
|
+
readonly connector_idn: string;
|
|
598
|
+
readonly integration_idn: string;
|
|
599
|
+
readonly status: string;
|
|
600
|
+
readonly api_key?: string;
|
|
601
|
+
readonly settings: readonly ConnectorSetting[];
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export interface ConnectorSetting {
|
|
605
|
+
readonly idn: string;
|
|
606
|
+
readonly value: string;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export interface CreateSandboxPersonaRequest {
|
|
610
|
+
name: string;
|
|
611
|
+
title: string;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export interface CreateSandboxPersonaResponse {
|
|
615
|
+
id: string;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export interface CreateActorRequest {
|
|
619
|
+
name: string;
|
|
620
|
+
external_id: string;
|
|
621
|
+
integration_idn: string;
|
|
622
|
+
connector_idn: string;
|
|
623
|
+
time_zone_identifier?: string;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export interface CreateActorResponse {
|
|
627
|
+
id: string;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export interface SendChatMessageRequest {
|
|
631
|
+
text: string;
|
|
632
|
+
arguments?: readonly any[];
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export interface ConversationActsParams {
|
|
636
|
+
user_persona_id: string;
|
|
637
|
+
user_actor_id: string;
|
|
638
|
+
agent_persona_id?: string; // Optional - can be omitted for first poll
|
|
639
|
+
per?: number;
|
|
640
|
+
page?: number;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export interface ConversationActsResponse {
|
|
644
|
+
readonly items: readonly ConversationAct[];
|
|
645
|
+
readonly metadata?: {
|
|
646
|
+
readonly page: number;
|
|
647
|
+
readonly per: number;
|
|
648
|
+
readonly total: number;
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// Sandbox Chat Session State
|
|
653
|
+
export interface SandboxChatSession {
|
|
654
|
+
user_persona_id: string;
|
|
655
|
+
user_actor_id: string; // This is the chat ID
|
|
656
|
+
agent_persona_id: string | null; // Retrieved from first response
|
|
657
|
+
connector_idn: string;
|
|
658
|
+
session_id: string | null;
|
|
659
|
+
external_id: string; // Random identifier for this chat
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
// Sandbox Chat Debug Info
|
|
663
|
+
export interface ChatDebugInfo {
|
|
664
|
+
flow_idn: string | null;
|
|
665
|
+
skill_idn: string | null;
|
|
666
|
+
session_id: string;
|
|
667
|
+
runtime_context_id: string | null;
|
|
668
|
+
reference_idn: string;
|
|
669
|
+
arguments: readonly any[];
|
|
452
670
|
}
|